@coffer-org/web 1.5.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ExtendReasonInfo-C9TZgX6o.js +1 -0
- package/dist/assets/GeoMap-Gfe3Mxlk.js +1 -0
- package/dist/assets/MarkdownEditor-BRFu6dnQ.js +1057 -0
- package/dist/assets/NewRecordView-DqJNxHM0.js +1 -0
- package/dist/assets/{NoMac-BhpqH06Q.js → NoMac-D7iyE4U0.js} +1 -1
- package/dist/assets/PageBody-CvuReTKD.js +1 -0
- package/dist/assets/PluginSettingsPage-BiBoejjn.js +1 -0
- package/dist/assets/{ScanSummary-CmBQJkl4.js → ScanSummary-BtTfSAGX.js} +1 -1
- package/dist/assets/SettingsForm-D9kBgf6H.js +1 -0
- package/dist/assets/SettingsPage-CSzqxAX9.js +2 -0
- package/dist/assets/Toolbar-DFtG8IB3.js +2 -0
- package/dist/assets/{apl-CnwPGSsG.js → apl-gfMMiTNf.js} +1 -1
- package/dist/assets/auth-context-zE-2rDEl.js +1 -0
- package/dist/assets/button-Dlm2GmQs.js +5 -0
- package/dist/assets/chunk-KS7C4IRE-B1_Zk64s.js +3 -0
- package/dist/assets/clike-CVjTFI47.js +1 -0
- package/dist/assets/clsx-enQ3xCtU.js +1 -0
- package/dist/assets/cobol-DHLQUbN7.js +1 -0
- package/dist/assets/{data-size-D-ZPRlPP.js → data-size-DGgafqIa.js} +1 -1
- package/dist/assets/{development-C9_TDKdP.js → development-ChLInqDF.js} +1 -1
- package/dist/assets/dist-0L0REEL4.js +6 -0
- package/dist/assets/{dist-IN8WN7NI2.js → dist-3a5PKdzH.js} +1 -1
- package/dist/assets/{dist-yZ96GF-e.js → dist-6HUZUxgD.js} +1 -1
- package/dist/assets/{dist-CkDdxx6J.js → dist-B02SqOKT.js} +1 -1
- package/dist/assets/{dist-CMmmtl3f.js → dist-B2pI4xAT.js} +1 -1
- package/dist/assets/{dist-Ds6n3XvW.js → dist-B3teaDxf.js} +1 -1
- package/dist/assets/dist-BKBBNg6L.js +13 -0
- package/dist/assets/{dist-BWI-HTj0.js → dist-BRl6D2sz.js} +1 -1
- package/dist/assets/{dist-DBnWo8ZP2.js → dist-BVqKJBMt2.js} +1 -1
- package/dist/assets/dist-BnXQsAyw.js +1 -0
- package/dist/assets/{dist-C-pDVZl4.js → dist-C9iafu0r.js} +1 -1
- package/dist/assets/{dist-BAJKKN4w.js → dist-CFDxfp5Q.js} +1 -1
- package/dist/assets/{dist-BCZEBITw.js → dist-CJsxDt1W2.js} +1 -1
- package/dist/assets/{dist-C-Tg23jc.js → dist-CTOneYOu.js} +1 -1
- package/dist/assets/{dist-Cs9CnlPI.js → dist-CUwIxyXc2.js} +1 -1
- package/dist/assets/dist-CdqdWApy.js +1 -0
- package/dist/assets/{dist-CjIVK3I-.js → dist-D0lzj0II.js} +1 -1
- package/dist/assets/dist-DCRaLcSL.js +11 -0
- package/dist/assets/dist-DKL_233B.js +1 -0
- package/dist/assets/dist-DdxaiEI9.js +23 -0
- package/dist/assets/dist-DkJnaE0X.js +1 -0
- package/dist/assets/dist-DnLPZbvG.js +2 -0
- package/dist/assets/dist-DxZ6aduu.js +1 -0
- package/dist/assets/{dist-6pnKfkc3.js → dist-MrrIHPUp.js} +1 -1
- package/dist/assets/dist-TJOGNsUr.js +9 -0
- package/dist/assets/{dist-BjPTMVeT.js → dist-bjTa-oQ7.js} +1 -1
- package/dist/assets/{dist-CbMhiYBq.js → dist-mpdotBBM.js} +1 -1
- package/dist/assets/dist-nHZzrtBn.js +1 -0
- package/dist/assets/dist-qu79xOH5.js +1 -0
- package/dist/assets/{dist-DvWZsW-D.js → dist-ySmyIRea.js} +1 -1
- package/dist/assets/esm-BNZSV1P6.js +24 -0
- package/dist/assets/esm-DCMdnC8o.js +1 -0
- package/dist/assets/extend-DrbW8fXY.js +1 -0
- package/dist/assets/field-frame-9VMMov4O.js +1 -0
- package/dist/assets/fields-CQxZPdka.js +64 -0
- package/dist/assets/floating-ui.dom-BiC1_AXf.js +1 -0
- package/dist/assets/index-C94DLfRb.css +2 -0
- package/dist/assets/index-D5IQ3-ik.js +381 -0
- package/dist/assets/json-2IEVhd4i.js +41 -0
- package/dist/assets/jsx-dev-runtime-CSfA-jUb.js +6 -0
- package/dist/assets/jsx-runtime-JUshM5qe.js +6 -0
- package/dist/assets/lib-Co4B8qAy.js +1 -0
- package/dist/assets/lib-DqTnDi2O.js +1 -0
- package/dist/assets/micromark-extension-gfm-Cu0AwUgc.js +2 -0
- package/dist/assets/plugin-q1oOYqt7.js +1 -0
- package/dist/assets/purify.es-sLXpNpJ5.js +3 -0
- package/dist/assets/python-2zlmcyof.js +1 -0
- package/dist/assets/{react-D4J6PwTK.js → react-n93t21jb.js} +1 -1
- package/dist/assets/scheme-tChLYBuY.js +1 -0
- package/dist/assets/shared-D0511v9d.js +1 -0
- package/dist/assets/shelf-iRNXQLvo.js +1 -0
- package/dist/assets/{src-C2Pe7TE7.js → src-AaMeWnPg.js} +1 -1
- package/dist/assets/{src-B8iacye4.js → src-BBa4IgZu.js} +1 -1
- package/dist/assets/src-BGSRFSIw.js +1 -0
- package/dist/assets/src-BZoeScha.js +1 -0
- package/dist/assets/{src-29EVe5AR.js → src-BfR4XKOl.js} +2 -2
- package/dist/assets/src-BkfNNzHS.js +1 -0
- package/dist/assets/src-BxsItvRt.js +1 -0
- package/dist/assets/src-C76fLvMo.js +4 -0
- package/dist/assets/src-CSK1-7o-.js +1 -0
- package/dist/assets/src-CVrkkuph.js +1 -0
- package/dist/assets/{src-YMuIAAH1.js → src-Coppd4mf.js} +1 -1
- package/dist/assets/src-Cp_tlXaj2.js +1 -0
- package/dist/assets/{src-CXN5nPkW.js → src-CwtznTUh.js} +1 -1
- package/dist/assets/{src-7ex3j1NP.js → src-DBWRsAkM.js} +1 -1
- package/dist/assets/src-DEDH6rgD.js +1 -0
- package/dist/assets/src-DdtX_tOa.js +1 -0
- package/dist/assets/{src-CEDC2fUY.js → src-Dh23dKOF.js} +2 -2
- package/dist/assets/{src-BAMTf8UD.js → src-DrOECW8l.js} +1 -1
- package/dist/assets/src-Ds0SdDJ_.js +7 -0
- package/dist/assets/src-GOwr0Acm.js +1 -0
- package/dist/assets/src-P7xgnaCz.js +1 -0
- package/dist/assets/src-YSzd3JaE.js +1 -0
- package/dist/assets/src-kp91nAOQ.js +1 -0
- package/dist/assets/textile-CyzeGT9J.js +1 -0
- package/dist/assets/ui-uxAWrOIV.js +2 -0
- package/dist/assets/{verilog-D-x6ne0Z.js → verilog-BKSQ5RMB.js} +1 -1
- package/dist/assets/vhdl-CBDDcIJ_.js +1 -0
- package/dist/assets/{xquery-fj_R-kMw.js → xquery-Cda5K8Gy.js} +1 -1
- package/dist/index.html +28 -27
- package/dist-vendor/i18next.js +16 -12
- package/dist-vendor/jsx-runtime.js +1 -1
- package/dist-vendor/{react-DvUFLPdc.js → react-CdP73OPv.js} +1 -1
- package/dist-vendor/react-dom.js +2 -2
- package/dist-vendor/react.js +2 -2
- package/dist-vendor/web-sdk.js +42 -15
- package/package.json +4 -2
- package/dist/assets/ExtendReasonInfo--21FkkoL.js +0 -1
- package/dist/assets/GeoMap-BQkjLI1p.js +0 -1
- package/dist/assets/MarkdownEditor-DojqYLfa.js +0 -1059
- package/dist/assets/NewRecordView-BJ1XG82z.js +0 -1
- package/dist/assets/PageBody-DXEdPT8C.js +0 -1
- package/dist/assets/PluginSettingsPage-BzNvTqpx.js +0 -1
- package/dist/assets/SettingsForm-Bhsv5BEu.js +0 -1
- package/dist/assets/SettingsPage-Bp3-IuWr.js +0 -2
- package/dist/assets/Toolbar-CXro4MxC.js +0 -1
- package/dist/assets/auth-context-C4OfTBfT.js +0 -1
- package/dist/assets/button-CbB4uqRh.js +0 -5
- package/dist/assets/chunk-6CSD65Y2-FavEEIOj.js +0 -3
- package/dist/assets/clike-DHH8Ad3s.js +0 -1
- package/dist/assets/clsx-CjYvs854.js +0 -1
- package/dist/assets/cobol-B_OZ4V-R.js +0 -1
- package/dist/assets/dist-B23pu61m.js +0 -11
- package/dist/assets/dist-BoeBnK7R.js +0 -23
- package/dist/assets/dist-C-RcoeMS.js +0 -1
- package/dist/assets/dist-CPIHW9BK.js +0 -1
- package/dist/assets/dist-CXFe4x2x.js +0 -6
- package/dist/assets/dist-CbTzBiwL.js +0 -13
- package/dist/assets/dist-CdBkAqXL.js +0 -1
- package/dist/assets/dist-DWl5C27n.js +0 -1
- package/dist/assets/dist-DchZ6_p12.js +0 -1
- package/dist/assets/dist-TV5I3hnS.js +0 -1
- package/dist/assets/dist-V4Bgz1i_.js +0 -9
- package/dist/assets/dist-gp7nAbF-.js +0 -2
- package/dist/assets/dist-iFwZyFpC.js +0 -1
- package/dist/assets/esm-Bpmih92m.js +0 -24
- package/dist/assets/esm-C4bBicMr.js +0 -1
- package/dist/assets/extend-DLMSdMhy.js +0 -1
- package/dist/assets/field-frame-BY_3TvHn.js +0 -1
- package/dist/assets/fields-DVMUyXbG.js +0 -64
- package/dist/assets/floating-ui.dom-CRUx2QLQ.js +0 -1
- package/dist/assets/index-Bkh3f49V.css +0 -2
- package/dist/assets/index-CPz8IKjT.js +0 -330
- package/dist/assets/json-Dm-WBmNs.js +0 -41
- package/dist/assets/jsx-dev-runtime-BMBl2lag.js +0 -6
- package/dist/assets/jsx-runtime-DV9KAPzc.js +0 -6
- package/dist/assets/lib-CMoTMQza.js +0 -1
- package/dist/assets/lib-lakrpPuj.js +0 -1
- package/dist/assets/micromark-extension-gfm-BCNbxHdH.js +0 -3
- package/dist/assets/module-DytlXfXo.js +0 -1
- package/dist/assets/objectWithoutPropertiesLoose-DBYSo7QU.js +0 -1
- package/dist/assets/plugin-b0fDTTXJ.js +0 -1
- package/dist/assets/python-BqYw9LYJ.js +0 -1
- package/dist/assets/scheme-CyDdOh7e.js +0 -1
- package/dist/assets/shared-QzShdLB7.js +0 -1
- package/dist/assets/src-791s3ufb.js +0 -1
- package/dist/assets/src-BiPG5Wj0.js +0 -1
- package/dist/assets/src-C-Dv1uXg.js +0 -1
- package/dist/assets/src-CLRRfAdi.js +0 -1
- package/dist/assets/src-CsYFDJmY.js +0 -1
- package/dist/assets/src-Ct5XUesp.js +0 -1
- package/dist/assets/src-CuLO2WBn2.js +0 -1
- package/dist/assets/src-D6UndSMF.js +0 -1
- package/dist/assets/src-D8ptIyqZ.js +0 -1
- package/dist/assets/src-DLcSAptE.js +0 -1
- package/dist/assets/src-DW-wOHmI.js +0 -1
- package/dist/assets/src-DiUhYfl4.js +0 -1
- package/dist/assets/src-Do7Z4dhu.js +0 -4
- package/dist/assets/src-pd92-ym6.js +0 -1
- package/dist/assets/src-zakS1nJb.js +0 -7
- package/dist/assets/textile-DWBqthVk.js +0 -1
- package/dist/assets/ui-Bl7rNE-K.js +0 -2
- package/dist/assets/vhdl-CMrOq2q1.js +0 -1
- /package/dist/assets/{chunk-QTnfLwEv.js → rolldown-runtime-QTnfLwEv.js} +0 -0
- /package/dist-vendor/{chunk-3b4jIN3o.js → rolldown-runtime-3b4jIN3o.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./chunk-QTnfLwEv.js";import{t}from"./react-D4J6PwTK.js";import{T as n,i as r,t as i}from"./button-CbB4uqRh.js";import{c as a,l as o}from"./chunk-6CSD65Y2-FavEEIOj.js";import{t as s}from"./jsx-dev-runtime-BMBl2lag.js";import{t as c}from"./json-Dm-WBmNs.js";import{r as l,t as u}from"./ExtendReasonInfo--21FkkoL.js";import{_ as d,f,l as p,n as m,o as h,r as g,s as _,t as v,u as y,y as b}from"./Toolbar-CXro4MxC.js";import{T as x,f as S,g as C,m as w}from"./fields-DVMUyXbG.js";import{a as T,h as E,m as D,n as O,o as k,t as A}from"./module-DytlXfXo.js";import{S as j,o as M}from"./api-j5etRnzW.js";var N=e(t(),1),P=s(),F=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/form.tsx`;function I(e,t){let n={};n.name=t?.name==null?``:String(t.name);for(let[r,i]of T(e.fields))if(!i.virtual)if(t){let e=t[r];e==null?n[r]=i.prim===`checkbox`?!1:``:i.prim===`checkbox`?n[r]=e===1||e===!0||e===`1`:w(i)?n[r]=e===``?``:c(e,i.hints.multiple===!0?[]:{}):n[r]=e}else n[r]=i.prim===`checkbox`?!1:w(i)&&i.hints.multiple===!0?[]:``;for(let r of e.fields){if(!S(r)||!C(r))continue;let e=r.key;t?n[e]=t[e]??(r.multiple?[]:{}):n[e]=r.multiple?[]:{}}return n}function L(e){let t={};for(let[n,r]of Object.entries(e))r===``||r===void 0||Array.isArray(r)&&r.length===0||typeof r==`object`&&r&&!Array.isArray(r)&&Object.keys(r).length===0||(t[n]=r);return t}function R({ext:e,values:t,onChange:i,recordId:a,fieldLabel:o}){let{t:s}=n();return(0,P.jsxDEV)(`fieldset`,{className:`border border-accent/30 rounded-xl p-4 pt-2 flex flex-col min-w-0 gap-4`,children:[(0,P.jsxDEV)(`legend`,{className:`px-2 inline-flex items-center gap-1.5 text-sm font-semibold text-accent`,children:[(0,P.jsxDEV)(r,{name:e.icon,size:14,className:`shrink-0`},void 0,!1,{fileName:F,lineNumber:115,columnNumber:9},this),` `,s(e.label),(0,P.jsxDEV)(u,{ext:e,fieldLabel:o},void 0,!1,{fileName:F,lineNumber:116,columnNumber:9},this)]},void 0,!0,{fileName:F,lineNumber:114,columnNumber:7},this),(0,P.jsxDEV)(g,{items:e.fields,ctx:{renderField:(n,r)=>E(r.hidden,t)?null:(0,P.jsxDEV)(l,{mode:`create`,field:r,label:r.label?s(r.label):void 0,required:E(r.required,t),value:t[n]??``,recordCtx:{vault:``,module:e.id,recordId:a},onChange:t=>i(e.id,n,t)},void 0,!1,{fileName:F,lineNumber:101,columnNumber:9},this)}},void 0,!1,{fileName:F,lineNumber:118,columnNumber:7},this)]},void 0,!0,{fileName:F,lineNumber:113,columnNumber:5},this)}function z({module:e,record:t,defaults:r,hiddenFields:a,onSuccess:o,onCancel:s}){let{t:l}=n(),u=p(l),d=!!t,h=(0,N.useMemo)(()=>A(e),[e]),v=(0,N.useMemo)(()=>k(e.fields),[e]),{values:b,setValues:S,errors:C,setErrors:E,touched:z,setTouched:B,bridge:V}=m({fm:v,mode:d?`edit`:`create`,recordCtx:{vault:e.vault,module:e.module,recordId:t?String(t.id):null},initial:()=>I(e,t??r),hiddenFields:a}),[H,U]=(0,N.useState)([]),[W,G]=(0,N.useState)(!1),K=(0,N.useMemo)(()=>f().filter(t=>t.attachTo.some(t=>t.vault===e.vault&&(!t.module||t.module===e.module))),[e]),[q,J]=(0,N.useState)(()=>{let e={};for(let n of K){let r=t?._extends?.[n.id];e[n.id]={};for(let[t,i]of T(n.fields)){let a=r?.[t];a==null?e[n.id][t]=i.prim===`checkbox`?!1:w(i)&&i.hints.multiple===!0?[]:``:i.prim===`checkbox`?e[n.id][t]=a===1||a===!0||a===`1`:w(i)?e[n.id][t]=a===``?``:c(a,i.hints.multiple===!0?[]:{}):e[n.id][t]=a}}return e}),Y=(0,N.useMemo)(()=>K.filter(e=>D(e.showWhen,b)),[K,b]);function X(e,t,n){J(r=>({...r,[e]:{...r[e],[t]:n}}))}let Z=(0,N.useRef)(!0);(0,N.useEffect)(()=>{if(Z.current){Z.current=!1;return}S(I(e,t??r)),E({}),U([]),B(new Set)},[e,t,r]);async function Q(n){n.preventDefault(),U([]);let r=L(b),i=String(b.name??``).trim(),a=(d?O(e):h).safeParse(r),s={};if(!d&&!i&&(s.name=l(`validation.required`)),!a.success)for(let e of a.error.issues){let t=String(e.path[0]??``);if(!s[t]){let{code:n,params:r}=x(e.message);s[t]=u(n,r)}}if(Object.keys(s).length){E(s),B(new Set(Object.keys(s)));return}E({}),G(!0);let c={...r};for(let e of Y){let t=q[e.id]??{},n=Object.fromEntries(Object.entries(t).filter(([,e])=>e!==``&&e!==!1));c[`_extend_${e.id}`]=n}let f=String(t?.id??``),p=d?await j(e.vault,e.module,f,c):await M(e.vault,e.module,c);if(G(!1),p.ok)return o(p.row);let m=p.issues??[],g={},_=[];for(let e of m)e.field&&v[e.field]?g[e.field]=u(e.code,e.params):_.push(e);let S=y(m,u);(Object.keys(g).length||Object.keys(S).length)&&(E(e=>({...e,...g,...S})),B(e=>new Set([...e,...Object.keys(g)]))),U(_)}return(0,P.jsxDEV)(`div`,{children:(0,P.jsxDEV)(`form`,{onSubmit:Q,noValidate:!0,className:`flex flex-col gap-5`,children:[(0,P.jsxDEV)(_.Provider,{value:e=>C[e.join(`.`)],children:(0,P.jsxDEV)(g,{items:e.fields,ctx:{bridge:V}},void 0,!1,{fileName:F,lineNumber:264,columnNumber:11},this)},void 0,!1,{fileName:F,lineNumber:263,columnNumber:9},this),Y.map(e=>(0,P.jsxDEV)(R,{ext:e,values:q[e.id]??{},onChange:X,recordId:t?String(t.id):null,fieldLabel:e=>v[e]?.label?l(v[e].label):e},e.id,!1,{fileName:F,lineNumber:269,columnNumber:11},this)),H.length>0&&(0,P.jsxDEV)(`div`,{className:`bg-danger/10 border border-danger/30 rounded-xl p-3.5 text-sm`,children:[(0,P.jsxDEV)(`p`,{className:`font-semibold text-danger mb-2`,children:l(`form.serverRejected`)},void 0,!1,{fileName:F,lineNumber:281,columnNumber:13},this),(0,P.jsxDEV)(`ul`,{className:`space-y-1 text-text/80`,children:H.map((e,t)=>{let n=v[e.field],r=n?l(n.label):e.field,i=e.code===`pattern`&&e.params?.messageKey?l(String(e.params.messageKey)):l(`validation.${e.code}`,e.params);return(0,P.jsxDEV)(`li`,{className:`flex gap-1.5`,children:[r&&(0,P.jsxDEV)(`span`,{className:`text-muted font-medium`,children:[r,`:`]},void 0,!0,{fileName:F,lineNumber:292,columnNumber:31},this),i]},t,!0,{fileName:F,lineNumber:291,columnNumber:19},this)})},void 0,!1,{fileName:F,lineNumber:282,columnNumber:13},this)]},void 0,!0,{fileName:F,lineNumber:280,columnNumber:11},this),(0,P.jsxDEV)(`div`,{className:`flex gap-3 pt-2 border-t border-border`,children:[(0,P.jsxDEV)(i,{type:`submit`,disabled:W,size:`lg`,className:`flex-1`,children:W?(0,P.jsxDEV)(P.Fragment,{children:[(0,P.jsxDEV)(`span`,{className:`animate-spin inline-block w-4 h-4 border-2 border-white/30 border-t-white rounded-full`},void 0,!1,{fileName:F,lineNumber:306,columnNumber:17},this),` `,l(`common.saving`)]},void 0,!0,{fileName:F,lineNumber:305,columnNumber:15},this):l(d?`actions.save`:`actions.create`)},void 0,!1,{fileName:F,lineNumber:303,columnNumber:11},this),s&&(0,P.jsxDEV)(i,{type:`button`,variant:`secondary`,size:`lg`,onClick:s,className:`flex-1`,children:l(`actions.cancel`)},void 0,!1,{fileName:F,lineNumber:316,columnNumber:13},this)]},void 0,!0,{fileName:F,lineNumber:302,columnNumber:9},this)]},void 0,!0,{fileName:F,lineNumber:262,columnNumber:7},this)},void 0,!1,{fileName:F,lineNumber:261,columnNumber:5},this)}var B=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/app/record/NewRecordView.tsx`;function V(){let{t:e}=n(),{vault:t,type:r}=o(),s=a(),c=d().flatMap(e=>e.modules).find(e=>e.vault===t&&e.module===r);return!c||c.standalone===!1?(0,P.jsxDEV)(`div`,{className:`p-6 text-muted`,children:e(`common.notFound`)},void 0,!1,{fileName:B,lineNumber:19,columnNumber:44},this):(0,P.jsxDEV)(`div`,{className:`flex flex-col`,children:[(0,P.jsxDEV)(v,{children:(0,P.jsxDEV)(i,{variant:`ghost`,size:`sm`,className:`px-2`,onClick:()=>s(`/${t}/${r}`),children:[(0,P.jsxDEV)(b,{size:18},void 0,!1,{fileName:B,lineNumber:25,columnNumber:11},this),(0,P.jsxDEV)(`span`,{className:`text-sm`,children:e(c.label)},void 0,!1,{fileName:B,lineNumber:26,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:24,columnNumber:9},this)},void 0,!1,{fileName:B,lineNumber:23,columnNumber:7},this),(0,P.jsxDEV)(`div`,{className:`flex-1 min-w-0`,children:(0,P.jsxDEV)(`div`,{className:`max-w-2xl mx-auto px-6 py-6`,children:(0,P.jsxDEV)(h,{vault:c.vault,module:c.module,children:(0,P.jsxDEV)(z,{module:c,onSuccess:e=>{e?.id?s(`/${t}/${r}/${e.id}`):s(`/${t}/${r}`)},onCancel:()=>s(`/${t}/${r}`)},void 0,!1,{fileName:B,lineNumber:32,columnNumber:13},this)},void 0,!1,{fileName:B,lineNumber:31,columnNumber:11},this)},void 0,!1,{fileName:B,lineNumber:30,columnNumber:9},this)},void 0,!1,{fileName:B,lineNumber:29,columnNumber:7},this)]},void 0,!0,{fileName:B,lineNumber:22,columnNumber:5},this)}export{V as NewRecordView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-QTnfLwEv.js";import{t as e}from"./react-D4J6PwTK.js";import{t}from"./jsx-dev-runtime-BMBl2lag.js";e();var n=t(),r=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/PageBody.tsx`;function i({children:e}){return(0,n.jsxDEV)(`div`,{className:`flex-1 overflow-y-auto`,children:(0,n.jsxDEV)(`div`,{className:`mx-auto max-w-7xl px-5 py-8 md:px-8`,children:e},void 0,!1,{fileName:r,lineNumber:11,columnNumber:7},this)},void 0,!1,{fileName:r,lineNumber:10,columnNumber:5},this)}export{i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e}from"./button-CbB4uqRh.js";import{l as t}from"./chunk-6CSD65Y2-FavEEIOj.js";import{t as n}from"./jsx-dev-runtime-BMBl2lag.js";import{g as r}from"./Toolbar-CXro4MxC.js";import{t as i}from"./PageBody-DXEdPT8C.js";import{t as a}from"./SettingsForm-Bhsv5BEu.js";var o=n(),s=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/app/PluginSettingsPage.tsx`;function c(){let{pluginId:n}=t(),{t:c}=e(),l=r().find(e=>e.id===n);if(!l||!l.settings||l.settings.fields.length===0)return(0,o.jsxDEV)(i,{children:(0,o.jsxDEV)(`p`,{className:`text-muted`,children:c(`common.notFound`)},void 0,!1,{fileName:s,lineNumber:17,columnNumber:9},this)},void 0,!1,{fileName:s,lineNumber:16,columnNumber:7},this);async function u(){let e=await fetch(`/api/plugins/${n}/settings`);return e.ok?e.json():{}}async function d(e){let t=await fetch(`/api/plugins/${n}/settings`,{method:`PUT`,headers:{"content-type":`application/json`},body:JSON.stringify(e)});return t.ok?{ok:!0,row:(await t.json()).row??{}}:t.status===422?{ok:!1,status:422,issues:(await t.json()).issues}:{ok:!1,status:t.status}}return(0,o.jsxDEV)(a,{fields:l.settings.fields,recordCtx:{vault:``,module:n??``,recordId:`settings`},load:u,save:d,title:c(`${n}.plugin.label`,{defaultValue:n??``}),backTo:`/settings`,backLabel:c(`settings.title`)},void 0,!1,{fileName:s,lineNumber:45,columnNumber:5},this)}export{c as PluginSettingsPage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./chunk-QTnfLwEv.js";import{t}from"./react-D4J6PwTK.js";import{T as n,t as r,v as i}from"./button-CbB4uqRh.js";import{n as a}from"./chunk-6CSD65Y2-FavEEIOj.js";import{w as o}from"./field-frame-BY_3TvHn.js";import{t as s}from"./jsx-dev-runtime-BMBl2lag.js";import{n as c,r as l,t as u,y as d}from"./Toolbar-CXro4MxC.js";import{a as f,o as p}from"./module-DytlXfXo.js";import{t as m}from"./PageBody-DXEdPT8C.js";var h=e(t(),1),g=s(),_=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/app/SettingsForm.tsx`;function v(e){let{t}=n(),s=(0,h.useMemo)(()=>f(e.fields),[e.fields]),v=(0,h.useMemo)(()=>p(e.fields),[e.fields]),[y,b]=(0,h.useState)(!1),[x,S]=(0,h.useState)(null),{values:C,setValues:w,errors:T,setErrors:E,bridge:D}=c({fm:v,mode:`edit`,recordCtx:e.recordCtx,initial:{}});function O(e){let t={};for(let[n,r]of s)t[n]=e[n]??r.default??(r.prim===`checkbox`?!1:``);return t}(0,h.useEffect)(()=>{w({}),E({});let n=!0;return e.load().then(e=>n&&w(O(e))).catch(()=>n&&S(t(`common.loadError`,{defaultValue:`Помилка завантаження`}))),()=>{n=!1}},[`${e.recordCtx.vault}/${e.recordCtx.module}/${e.recordCtx.recordId}`]);async function k(){b(!0),E({});let n=o.loading(t(`save.saving`)),r=await e.save(C);if(b(!1),r.ok){w(O(r.row)),o.success(t(`save.done`),{id:n});return}if(r.status===422&&r.issues){let e={};for(let n of r.issues)n.field&&(e[n.field]=t(`validation.${n.code}`,n.params));E(e)}o.error(t(`save.failed`),{id:n})}return(0,g.jsxDEV)(`div`,{className:`flex flex-col h-full`,children:[(0,g.jsxDEV)(u,{actions:(0,g.jsxDEV)(r,{onClick:k,disabled:y,children:[(0,g.jsxDEV)(i,{size:16},void 0,!1,{fileName:_,lineNumber:101,columnNumber:13},this),(0,g.jsxDEV)(`span`,{className:`hidden sm:inline`,children:t(`actions.save`)},void 0,!1,{fileName:_,lineNumber:102,columnNumber:13},this)]},void 0,!0,{fileName:_,lineNumber:100,columnNumber:11},this),children:(0,g.jsxDEV)(r,{variant:`ghost`,size:`sm`,className:`px-2`,asChild:!0,children:(0,g.jsxDEV)(a,{to:e.backTo,"aria-label":e.backLabel,children:[(0,g.jsxDEV)(d,{size:18},void 0,!1,{fileName:_,lineNumber:108,columnNumber:13},this),(0,g.jsxDEV)(`span`,{className:`text-sm`,children:e.backLabel},void 0,!1,{fileName:_,lineNumber:109,columnNumber:13},this)]},void 0,!0,{fileName:_,lineNumber:107,columnNumber:11},this)},void 0,!1,{fileName:_,lineNumber:106,columnNumber:9},this)},void 0,!1,{fileName:_,lineNumber:98,columnNumber:7},this),(0,g.jsxDEV)(m,{children:[(0,g.jsxDEV)(`h1`,{className:`mb-6 text-[28px] font-bold text-text`,children:e.title},void 0,!1,{fileName:_,lineNumber:115,columnNumber:9},this),x&&(0,g.jsxDEV)(`div`,{className:`mb-5 rounded-xl border border-danger/40 bg-danger/10 px-4 py-3 text-sm text-danger`,children:x},void 0,!1,{fileName:_,lineNumber:118,columnNumber:11},this),(0,g.jsxDEV)(`div`,{className:`flex flex-col gap-5`,children:(0,g.jsxDEV)(l,{items:e.fields,ctx:{bridge:D}},void 0,!1,{fileName:_,lineNumber:122,columnNumber:11},this)},void 0,!1,{fileName:_,lineNumber:121,columnNumber:9},this)]},void 0,!0,{fileName:_,lineNumber:114,columnNumber:7},this)]},void 0,!0,{fileName:_,lineNumber:97,columnNumber:5},this)}export{v as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./chunk-QTnfLwEv.js";import{t}from"./react-D4J6PwTK.js";import{C as n,T as r,i,r as a,t as o,w as s}from"./button-CbB4uqRh.js";import{n as c}from"./chunk-6CSD65Y2-FavEEIOj.js";import{t as l}from"./jsx-dev-runtime-BMBl2lag.js";import{c as u,i as d,n as f,s as p,t as m}from"./dist-CdBkAqXL.js";import{t as h}from"./jsx-runtime-DV9KAPzc.js";import{t as g}from"./dist-iFwZyFpC.js";import{b as _,d as v,f as y,x as b,y as x}from"./api-j5etRnzW.js";import{n as S,r as C}from"./auth-context-C4OfTBfT.js";import{t as w}from"./PageBody-DXEdPT8C.js";var T=e(t(),1),E=h(),D=`Switch`,[O,k]=p(D),[A,j]=O(D);function M(e){let{__scopeSwitch:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=m({prop:n,defaultProp:i??!1,onChange:c,caller:D}),[h,g]=T.useState(null),[_,v]=T.useState(null),y={checked:f,setChecked:p,disabled:a,control:h,setControl:g,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:T.useRef(!1),required:l,defaultChecked:i,isFormControl:h?!!o||!!h.closest(`form`):!0,bubbleInput:_,setBubbleInput:v};return(0,E.jsx)(A,{scope:t,...y,children:B(d)?d(y):r})}var N=`SwitchTrigger`,P=T.forwardRef(({__scopeSwitch:e,onClick:t,...r},i)=>{let{value:a,disabled:o,checked:s,required:c,setControl:l,setChecked:f,hasConsumerStoppedPropagationRef:p,isFormControl:m,bubbleInput:h}=j(N,e),g=n(i,l);return(0,E.jsx)(d.button,{type:`button`,role:`switch`,"aria-checked":s,"aria-required":c,"data-state":V(s),"data-disabled":o?``:void 0,disabled:o,value:a,...r,ref:g,onClick:u(t,e=>{f(e=>!e),h&&m&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())})})});P.displayName=N;var F=T.forwardRef((e,t)=>{let{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,E.jsx)(M,{__scopeSwitch:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(P,{...d,ref:t,__scopeSwitch:n}),e&&(0,E.jsx)(z,{__scopeSwitch:n})]})})});F.displayName=D;var I=`SwitchThumb`,L=T.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,i=j(I,n);return(0,E.jsx)(d.span,{"data-state":V(i.checked),"data-disabled":i.disabled?``:void 0,...r,ref:t})});L.displayName=I;var R=`SwitchBubbleInput`,z=T.forwardRef(({__scopeSwitch:e,...t},r)=>{let{control:i,hasConsumerStoppedPropagationRef:a,checked:o,defaultChecked:s,required:c,disabled:l,name:u,value:p,form:m,bubbleInput:h,setBubbleInput:_}=j(R,e),v=n(r,_),y=g(o),b=f(i);T.useEffect(()=>{let e=h;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!a.current;if(y!==o&&n){let t=new Event(`click`,{bubbles:r});n.call(e,o),e.dispatchEvent(t)}},[h,y,o,a]);let x=T.useRef(o);return(0,E.jsx)(d.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:s??x.current,required:c,disabled:l,name:u,value:p,form:m,...t,tabIndex:-1,ref:v,style:{...t.style,...b,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});z.displayName=R;function B(e){return typeof e==`function`}function V(e){return e?`checked`:`unchecked`}var H=l(),U=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/ui/switch.tsx`,W=T.forwardRef(({className:e,...t},n)=>(0,H.jsxDEV)(F,{ref:n,className:s(`peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background`,`disabled:cursor-not-allowed disabled:opacity-50`,`data-[state=checked]:bg-primary data-[state=unchecked]:bg-border`,e),...t,children:(0,H.jsxDEV)(L,{className:s(`pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform`,`data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0`)},void 0,!1,{fileName:U,lineNumber:20,columnNumber:5},void 0)},void 0,!1,{fileName:U,lineNumber:9,columnNumber:3},void 0));W.displayName=F.displayName;var G=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/ui/badge.tsx`,K=a(`inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-semibold transition-colors`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground`,secondary:`border-transparent bg-secondary text-secondary-foreground`,destructive:`border-transparent bg-destructive text-destructive-foreground`,outline:`border-border text-text`,accent:`border-accent/30 bg-accent/15 text-accent`}},defaultVariants:{variant:`default`}});function q({className:e,variant:t,...n}){return(0,H.jsxDEV)(`div`,{className:s(K({variant:t}),e),...n},void 0,!1,{fileName:G,lineNumber:24,columnNumber:10},this)}var J=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/app/SettingsPage.tsx`;function Y(){let{t:e}=r(),{role:t}=S(),n=t===`admin`,[a,s]=(0,T.useState)([]),[l,u]=(0,T.useState)(!0),[d,f]=(0,T.useState)(null),p=e=>d===e||d===`*`,[m,h]=(0,T.useState)(null),g=a.filter(e=>e.latestVersion&&e.latestVersion!==e.installedVersion),E=!!(m?.latestVersion&&m.latestVersion!==m.installedVersion),D=g.length+ +!!E,[O,k]=(0,T.useState)(null),[A,j]=(0,T.useState)(!1),M=t=>e(`${t}.plugin.label`,{defaultValue:t}),N=t=>e(`${t}.plugin.description`,{defaultValue:``}),P=t=>e(`${t}.vault.label`,{defaultValue:t}),F=(t,n)=>e(`${t}.${n}.label`,{defaultValue:n}),I={core_required:()=>e(`plugins.errors.core_required`),has_dependents:t=>e(`plugins.errors.has_dependents`,{list:t.dependents.join(`, `)}),missing_deps:t=>e(`plugins.errors.missing_deps`,{list:t.deps.join(`, `)}),unknown_plugin:()=>e(`plugins.errors.unknown_plugin`)},L=()=>Promise.all([y(),v()]).then(([e,t])=>{s(e),h(t),u(!1)});(0,T.useEffect)(()=>{L()},[]);async function R(t){if(!window.confirm(e(`plugins.confirmPurge`,{id:t.id})))return;f(t.id),k(null);let n=await fetch(`/api/plugins/${t.id}/data`,{method:`DELETE`}),r=await n.json().catch(()=>({}));if(f(null),!n.ok){k(I[r.error]?.(r)??e(`plugins.genericError`,{code:r.error??n.status}));return}j(!0),await L()}async function z(t){f(t.id),k(null);let n=await x(t.id,!t.enabled);if(!n.ok){f(null),k(I[n.error]?.(n.data??{})??e(`plugins.genericError`,{code:n.error}));return}window.location.reload()}async function B(){let e=Date.now();for(;Date.now()-e<3e4;){await new Promise(e=>setTimeout(e,1e3));try{if((await fetch(`/health`)).ok)return!0}catch{}}return!1}async function V(t){if(!t.latestVersion||!window.confirm(e(`plugins.confirmUpdate`,{id:t.id,from:t.installedVersion,to:t.latestVersion})))return;f(t.id),k(null);let n=await b(t.id);if(!n.ok){f(null),k(n.stderr?`${e(`plugins.updateError`)}: ${n.stderr}`:e(`plugins.genericError`,{code:n.error}));return}j(!0),await B()&&window.location.reload()}async function U(){if(D===0)return;let t=g.map(e=>`${M(e.id)}: v${e.installedVersion} → v${e.latestVersion}`);E&&t.push(`${e(`plugins.runtimeLabel`)}: v${m.installedVersion} → v${m.latestVersion}`);let n=t.join(`
|
|
2
|
-
`);if(!window.confirm(e(`plugins.confirmUpdateAll`,{count:D,list:n})))return;f(`*`),k(null);let r=await _();if(!r.ok){f(null),k(r.stderr?`${e(`plugins.updateError`)}: ${r.stderr}`:e(`plugins.genericError`,{code:r.error}));return}j(!0),await B()&&window.location.reload()}let G=a.find(e=>e.id===`core`);return(0,H.jsxDEV)(w,{children:[(0,H.jsxDEV)(`h1`,{className:`mb-6 text-[28px] font-bold text-text`,children:e(`settings.title`)},void 0,!1,{fileName:J,lineNumber:154,columnNumber:7},this),(0,H.jsxDEV)(`section`,{className:`mb-6`,children:[(0,H.jsxDEV)(`h2`,{className:`mb-1 text-sm font-semibold uppercase tracking-wide text-muted`,children:e(`settings.personalTitle`)},void 0,!1,{fileName:J,lineNumber:158,columnNumber:9},this),(0,H.jsxDEV)(C,{className:`flex items-center gap-4 px-4 py-3`,children:[(0,H.jsxDEV)(`div`,{className:`min-w-0 flex-1`,children:(0,H.jsxDEV)(`span`,{className:`font-semibold text-text`,children:e(`auth.accountTitle`)},void 0,!1,{fileName:J,lineNumber:161,columnNumber:13},this)},void 0,!1,{fileName:J,lineNumber:160,columnNumber:11},this),(0,H.jsxDEV)(o,{variant:`ghost`,size:`sm`,type:`button`,className:`shrink-0 border border-border`,asChild:!0,children:(0,H.jsxDEV)(c,{to:`/settings/account`,title:e(`auth.accountTitle`),"aria-label":e(`auth.accountTitle`),children:(0,H.jsxDEV)(i,{name:`lucide:settings`,size:16},void 0,!1,{fileName:J,lineNumber:165,columnNumber:15},this)},void 0,!1,{fileName:J,lineNumber:164,columnNumber:13},this)},void 0,!1,{fileName:J,lineNumber:163,columnNumber:11},this)]},void 0,!0,{fileName:J,lineNumber:159,columnNumber:9},this)]},void 0,!0,{fileName:J,lineNumber:157,columnNumber:7},this),n&&(0,H.jsxDEV)(H.Fragment,{children:[(0,H.jsxDEV)(`section`,{className:`mb-6`,children:[(0,H.jsxDEV)(`h2`,{className:`mb-1 text-sm font-semibold uppercase tracking-wide text-muted`,children:e(`settings.systemTitle`)},void 0,!1,{fileName:J,lineNumber:175,columnNumber:13},this),(0,H.jsxDEV)(`p`,{className:`mb-3 text-sm text-muted`,children:e(`settings.systemDescription`)},void 0,!1,{fileName:J,lineNumber:176,columnNumber:13},this),(0,H.jsxDEV)(C,{className:`flex items-center gap-4 px-4 py-3`,children:[(0,H.jsxDEV)(`div`,{className:`min-w-0 flex-1 flex items-center gap-2`,children:[(0,H.jsxDEV)(`span`,{className:`font-semibold text-text`,children:e(`core.settings.label`)},void 0,!1,{fileName:J,lineNumber:179,columnNumber:17},this),G&&(0,H.jsxDEV)(X,{plugin:G,busy:p(`core`),onUpdate:()=>V(G)},void 0,!1,{fileName:J,lineNumber:180,columnNumber:26},this)]},void 0,!0,{fileName:J,lineNumber:178,columnNumber:15},this),(0,H.jsxDEV)(o,{variant:`ghost`,size:`sm`,type:`button`,className:`shrink-0 border border-border`,asChild:!0,children:(0,H.jsxDEV)(c,{to:`/settings/core`,title:e(`core.settings.label`),"aria-label":e(`core.settings.label`),children:(0,H.jsxDEV)(i,{name:`lucide:settings`,size:16},void 0,!1,{fileName:J,lineNumber:184,columnNumber:19},this)},void 0,!1,{fileName:J,lineNumber:183,columnNumber:17},this)},void 0,!1,{fileName:J,lineNumber:182,columnNumber:15},this)]},void 0,!0,{fileName:J,lineNumber:177,columnNumber:13},this)]},void 0,!0,{fileName:J,lineNumber:174,columnNumber:11},this),(0,H.jsxDEV)(`section`,{className:`mb-6`,children:[(0,H.jsxDEV)(`h2`,{className:`mb-1 text-sm font-semibold uppercase tracking-wide text-muted`,children:e(`settings.usersTitle`)},void 0,!1,{fileName:J,lineNumber:192,columnNumber:13},this),(0,H.jsxDEV)(`p`,{className:`mb-3 text-sm text-muted`,children:e(`settings.usersDescription`)},void 0,!1,{fileName:J,lineNumber:193,columnNumber:13},this),(0,H.jsxDEV)(C,{className:`flex items-center gap-4 px-4 py-3`,children:[(0,H.jsxDEV)(`div`,{className:`min-w-0 flex-1`,children:(0,H.jsxDEV)(`span`,{className:`font-semibold text-text`,children:e(`settings.usersTitle`)},void 0,!1,{fileName:J,lineNumber:196,columnNumber:17},this)},void 0,!1,{fileName:J,lineNumber:195,columnNumber:15},this),(0,H.jsxDEV)(o,{variant:`ghost`,size:`sm`,type:`button`,className:`shrink-0 border border-border`,asChild:!0,children:(0,H.jsxDEV)(c,{to:`/settings/users`,title:e(`settings.usersTitle`),"aria-label":e(`settings.usersTitle`),children:(0,H.jsxDEV)(i,{name:`lucide:settings`,size:16},void 0,!1,{fileName:J,lineNumber:200,columnNumber:19},this)},void 0,!1,{fileName:J,lineNumber:199,columnNumber:17},this)},void 0,!1,{fileName:J,lineNumber:198,columnNumber:15},this)]},void 0,!0,{fileName:J,lineNumber:194,columnNumber:13},this)]},void 0,!0,{fileName:J,lineNumber:191,columnNumber:11},this),(0,H.jsxDEV)(`section`,{children:[(0,H.jsxDEV)(`div`,{className:`mb-1 flex items-center gap-3`,children:[(0,H.jsxDEV)(`h2`,{className:`text-sm font-semibold uppercase tracking-wide text-muted`,children:e(`plugins.title`)},void 0,!1,{fileName:J,lineNumber:209,columnNumber:15},this),D>0&&(0,H.jsxDEV)(o,{variant:`ghost`,size:`sm`,type:`button`,disabled:d!==null,onClick:U,className:`shrink-0 border border-accent/40 text-accent hover:bg-accent/10 hover:text-accent`,children:e(`plugins.updateAllButton`,{count:D})},void 0,!1,{fileName:J,lineNumber:211,columnNumber:17},this)]},void 0,!0,{fileName:J,lineNumber:208,columnNumber:13},this),(0,H.jsxDEV)(`p`,{className:`mb-3 text-sm text-muted`,children:e(`plugins.description`)},void 0,!1,{fileName:J,lineNumber:223,columnNumber:13},this),l?(0,H.jsxDEV)(`p`,{className:`text-muted`,children:e(`plugins.loading`)},void 0,!1,{fileName:J,lineNumber:226,columnNumber:15},this):(0,H.jsxDEV)(H.Fragment,{children:[A&&(0,H.jsxDEV)(`div`,{className:`mb-5 rounded-xl border border-accent/40 bg-accent/10 px-4 py-3 text-sm text-accent`,children:[e(`plugins.restartBannerBefore`),(0,H.jsxDEV)(`b`,{children:e(`plugins.restartBannerBold`)},void 0,!1,{fileName:J,lineNumber:232,columnNumber:21},this),e(`plugins.restartBannerAfter`)]},void 0,!0,{fileName:J,lineNumber:230,columnNumber:19},this),O&&(0,H.jsxDEV)(`div`,{className:`mb-5 rounded-xl border border-danger/40 bg-danger/10 px-4 py-3 text-sm text-danger`,children:O},void 0,!1,{fileName:J,lineNumber:237,columnNumber:19},this),(0,H.jsxDEV)(`div`,{className:`flex flex-col gap-2`,children:a.filter(e=>e.id!==`core`).map(t=>{let n=N(t.id),r=t.enabled?a.filter(e=>e.enabled&&e.id!==t.id&&e.dependsOn.includes(t.id)):[],s=r.length>0,l=s?e(`plugins.blockedByDependents`,{list:r.map(e=>M(e.id)).join(`, `)}):t.enabled?e(`plugins.switchDisable`):e(`plugins.switchEnable`),u=[t.dependsOn.length>0&&`${e(`plugins.metaDepends`)} ${t.dependsOn.map(M).join(`, `)}`,t.vaults.length>0&&`${e(`plugins.metaVaults`)} ${t.vaults.map(P).join(`, `)}`,t.extends.length>0&&`${e(`plugins.metaExtends`)} ${t.extends.map(e=>F(t.id,e)).join(`, `)}`].filter(Boolean).join(` · `)||`—`;return(0,H.jsxDEV)(C,{className:`flex items-center gap-4 px-4 py-3`,children:[(0,H.jsxDEV)(`div`,{className:`min-w-0 flex-1`,children:[(0,H.jsxDEV)(`div`,{className:`flex items-center gap-2`,children:[(0,H.jsxDEV)(`span`,{className:`font-semibold text-text`,children:M(t.id)},void 0,!1,{fileName:J,lineNumber:274,columnNumber:31},this),(0,H.jsxDEV)(X,{plugin:t,busy:p(t.id),onUpdate:()=>V(t)},void 0,!1,{fileName:J,lineNumber:275,columnNumber:31},this)]},void 0,!0,{fileName:J,lineNumber:273,columnNumber:29},this),n&&(0,H.jsxDEV)(`div`,{className:`text-xs text-muted mt-0.5 truncate`,children:n},void 0,!1,{fileName:J,lineNumber:277,columnNumber:45},this),(0,H.jsxDEV)(`div`,{className:`text-xs text-muted mt-0.5 truncate`,children:u},void 0,!1,{fileName:J,lineNumber:278,columnNumber:29},this)]},void 0,!0,{fileName:J,lineNumber:272,columnNumber:27},this),t.hasSettings&&(0,H.jsxDEV)(o,{variant:`ghost`,size:`sm`,type:`button`,className:`shrink-0 border border-border`,asChild:!0,children:(0,H.jsxDEV)(c,{to:`/settings/${t.id}`,title:e(`plugins.settingsTitle`,{defaultValue:`Налаштування`}),"aria-label":e(`plugins.settingsTitle`,{defaultValue:`Налаштування`}),children:(0,H.jsxDEV)(i,{name:`lucide:settings`,size:16},void 0,!1,{fileName:J,lineNumber:293,columnNumber:33},this)},void 0,!1,{fileName:J,lineNumber:288,columnNumber:31},this)},void 0,!1,{fileName:J,lineNumber:281,columnNumber:29},this),(0,H.jsxDEV)(o,{variant:`ghost`,size:`sm`,type:`button`,disabled:p(t.id),onClick:()=>R(t),title:e(`plugins.purgeTitle`),className:`shrink-0 border border-danger/40 text-danger hover:bg-danger/10 hover:text-danger`,children:e(`plugins.purgeButton`)},void 0,!1,{fileName:J,lineNumber:297,columnNumber:27},this),(0,H.jsxDEV)(`span`,{title:l,className:`shrink-0`,children:(0,H.jsxDEV)(W,{checked:t.enabled,disabled:p(t.id)||s,onCheckedChange:()=>z(t),title:l},void 0,!1,{fileName:J,lineNumber:311,columnNumber:29},this)},void 0,!1,{fileName:J,lineNumber:310,columnNumber:27},this)]},t.id,!0,{fileName:J,lineNumber:271,columnNumber:25},this)})},void 0,!1,{fileName:J,lineNumber:242,columnNumber:17},this)]},void 0,!0,{fileName:J,lineNumber:228,columnNumber:15},this)]},void 0,!0,{fileName:J,lineNumber:207,columnNumber:11},this)]},void 0,!0,{fileName:J,lineNumber:172,columnNumber:9},this)]},void 0,!0,{fileName:J,lineNumber:153,columnNumber:5},this)}function X({plugin:e,busy:t,onUpdate:n}){let{t:i}=r(),a=!!e.latestVersion&&e.latestVersion!==e.installedVersion;return(0,H.jsxDEV)(H.Fragment,{children:[(0,H.jsxDEV)(q,{variant:`secondary`,className:`text-[10px] font-medium`,children:[`v`,e.installedVersion]},void 0,!0,{fileName:J,lineNumber:344,columnNumber:7},this),a&&(0,H.jsxDEV)(o,{variant:`ghost`,size:`sm`,type:`button`,disabled:t,onClick:n,title:i(`plugins.updateTitle`,{from:e.installedVersion,to:e.latestVersion}),className:`shrink-0 border border-accent/40 text-accent hover:bg-accent/10 hover:text-accent`,children:i(`plugins.updateButton`)},void 0,!1,{fileName:J,lineNumber:348,columnNumber:9},this)]},void 0,!0,{fileName:J,lineNumber:343,columnNumber:5},this)}export{Y as SettingsPage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./chunk-QTnfLwEv.js";import{t}from"./react-D4J6PwTK.js";import{T as n,y as r}from"./button-CbB4uqRh.js";import{d as i,h as a,i as o,l as s,m as c,n as l,r as u,y as d}from"./field-frame-BY_3TvHn.js";import{t as f}from"./jsx-dev-runtime-BMBl2lag.js";import{O as p,d as m,f as h,g,h as _,l as v,n as ee,o as y,p as b,s as x}from"./fields-DVMUyXbG.js";import{a as S,h as C}from"./module-DytlXfXo.js";import{n as te}from"./extend-DLMSdMhy.js";import{t as ne}from"./plugin-b0fDTTXJ.js";import{n as re,r as ie,t as w}from"./micromark-extension-gfm-BCNbxHdH.js";var T=r(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),E=e(t(),1);function ae(e,t={}){let n=t.disabled??new Set,r=e.filter(e=>!n.has(e.id)),i=new Map;for(let e of r){for(let t of e.vaults??[])for(let n of t.modules)i.set(`${n.vault}/${n.module}`,e.id);for(let t of e.vaultModules??[])i.set(`${t.vault}/${t.module}`,e.id)}let a=(e,t)=>i.get(`${e}/${t}`);for(let e of r)for(let t of e.dependsOn)if(n.has(t))throw Error(`[plugin] '${e.id}' is enabled, but its dependency '${t}' is disabled`);let{order:o,vaults:s,modules:c,extends_:l}=ne(r),u=new Map;for(let e of r)for(let t of e.fieldContribs??[]){let e=`${t.vault}/${t.module}/${t.field}`,n=u.get(e)??{options:[],suggestions:[]};t.options&&n.options.push(...t.options),t.suggestions&&n.suggestions.push(...t.suggestions),u.set(e,n)}let d=new Map;for(let e of r)for(let t of e.optionLists??[])d.set(t.name,t.options);let f=e=>d.get(e)??[];for(let e of c)for(let[t,n]of S(e.fields)){let r=u.get(`${e.vault}/${e.module}/${t}`);if(r){if(r.options.length){let e=new Set((n.options??[]).map(e=>e.value));n.options=[...n.options??[],...r.options.filter(t=>!e.has(t.value))]}if(r.suggestions.length){let e=n.hints.suggestions??[],t=new Set(e);n.hints.suggestions=[...e,...r.suggestions.filter(e=>!t.has(e))]}}}let p=new Map;for(let e of c)for(let[t,n]of S(e.fields)){let r=n.hints.source,i=n.options??[],a=r?d.get(r)??[]:[],o=new Set(i.map(e=>e.value)),s=[...i,...a.filter(e=>!o.has(e.value))];n.prim===`select`&&s.length&&ee(n,s.map(e=>e.value)),s.length&&(n.options=s,p.set(`${e.vault}/${e.module}/${t}`,s))}return{order:o,vaults:s,modules:c,extends_:l,getModule:(e,t)=>c.find(n=>n.vault===e&&n.module===t),getVault:e=>s.find(t=>t.meta.id===e),getExtendsFor:(e,t)=>l.filter(n=>te(n,e,t)),getFieldOptions:(e,t,n)=>p.get(`${e}/${t}/${n}`)??[],getOptionList:f,getModuleOwner:a}}var D=null;function oe(e){D=ae(e)}function O(){if(!D)throw Error(`[registry] not initialized — call initRegistry() in the boot loader`);return D}var k=(e,t)=>O().getModule(e,t),A=(e,t)=>O().getExtendsFor(e,t),j=e=>O().getOptionList(e),se=(e,t)=>O().getModuleOwner(e,t),ce=()=>O().vaults,le=()=>O().extends_,ue=()=>O().order,M=f(),N=(0,E.createContext)(()=>void 0),de=()=>(0,E.useContext)(N),fe=e=>e.join(`.`);function P(e){return(t,n)=>t===`pattern`&&n?.messageKey?e(String(n.messageKey)):e(`validation.${t}`,n)}function F(e,t){let n={};for(let r of e){let e=fe(r.path?.length?r.path:[r.field]);n[e]||(n[e]=t(r.code,r.params))}return n}function I(e,t){let n={};for(let[r,i]of Object.entries(e))r===t||r.startsWith(t+`.`)||(n[r]=i);return n}var L=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/render/computed-ctx.tsx`,R={settings:{},global:{}},z=(0,E.createContext)(R),B=()=>(0,E.useContext)(z);function pe(e,t){return{record:e.values??{},settings:t.settings,global:t.global,meta:{vault:e.recordCtx.vault,module:e.recordCtx.module}}}async function V(e){let t=await fetch(`/api/plugins/${e}/settings`);return t.ok?await t.json():{}}function me({vault:e,module:t,children:n}){let[r,i]=(0,E.useState)(R),a=se(e,t);return(0,E.useEffect)(()=>{let e=!0;return Promise.all([a?V(a):Promise.resolve({}),V(`core`)]).then(([t,n])=>{e&&i({settings:t,global:n})}),()=>{e=!1}},[a]),(0,M.jsxDEV)(z.Provider,{value:r,children:n},void 0,!1,{fileName:L,lineNumber:57,columnNumber:10},this)}var he=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/Markdown.tsx`;function ge(e){return ie(e,{allowDangerousHtml:!0,extensions:[w()],htmlExtensions:[re()]})}function H({value:e}){return(0,M.jsxDEV)(`div`,{className:`md-static`,dangerouslySetInnerHTML:{__html:ge(e)}},void 0,!1,{fileName:he,lineNumber:19,columnNumber:10},this)}var U=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/layout.tsx`;function _e({text:e}){return(0,M.jsxDEV)(H,{value:e},void 0,!1,{fileName:U,lineNumber:29,columnNumber:10},this)}function W(e,{bridge:t,t:n,computed:r}){if(m(e)){let r=e.key;if(t.isHidden(r))return null;let i=d({kind:c(e)});if(!i)return console.warn(`[LayoutRenderer] no renderer for kind '${c(e)}'`),null;let o=e.type;return{node:(0,M.jsxDEV)(`div`,{onBlur:e=>{l(e.relatedTarget)||t.touch(r)},children:(0,M.jsxDEV)(i.Page,{el:e,field:o,value:t.getValue(r),onChange:e=>t.setValue(r,e),error:t.error(r),mode:t.mode,label:o.label?n(o.label):void 0,required:t.requiredOf(r),recordCtx:t.recordCtx},void 0,!1,{fileName:U,lineNumber:80,columnNumber:9},this)},void 0,!1,{fileName:U,lineNumber:79,columnNumber:7},this),layout:a(o)}}if(_(e)){let i=d({kind:c(e)});if(!i)return console.warn(`[LayoutRenderer] no renderer for static kind '${c(e)}'`),null;let o=e.type,s=e.value;if(typeof e.value==`function`)try{s=e.value(pe(t,r))}catch(e){console.warn(`[computed] value function threw`,e),s=void 0}return{node:(0,M.jsxDEV)(i.Page,{el:e,field:o,value:s,mode:`view`,label:o.label?n(o.label):void 0,recordCtx:t.recordCtx},void 0,!1,{fileName:U,lineNumber:113,columnNumber:7},this),layout:a(o)}}if(v(e)||b(e))return null;if(x(e)){let n=d({kind:`button`});return n?{node:(0,M.jsxDEV)(n.Page,{el:e,value:void 0,mode:t.mode,recordCtx:t.recordCtx},void 0,!1,{fileName:U,lineNumber:136,columnNumber:18},this),layout:`scalar`}:null}return null}function G(e,t,n,r=`wrap`){let i=[],o=[],s=0,c=()=>{o.length&&(i.push({kind:`flow`,items:o,scroll:r===`scroll`}),o=[])};for(let r of e){if(n){if(v(r)){c(),i.push({kind:`divider`});continue}if(b(r)){c(),i.push({kind:`block`,node:(0,M.jsxDEV)(K,{textKey:r.text},void 0,!1,{fileName:U,lineNumber:170,columnNumber:41},this)});continue}if(y(r)){c();continue}if(m(r)||_(r)||x(r)){let e=W(r,n);if(e==null)continue;if(e.layout===`block`)c(),i.push({kind:`block`,node:e.node});else{let t=m(r)?r.key:`static-${s++}`;o.push({key:t,node:(0,M.jsxDEV)(E.Fragment,{children:e.node},t,!1,{fileName:U,lineNumber:187,columnNumber:19},this)})}continue}continue}if(m(r)){let e=t.renderField(r.key,r.type);if(e==null)continue;a(r.type)===`block`?(c(),i.push({kind:`block`,node:e})):o.push({key:r.key,node:(0,M.jsxDEV)(E.Fragment,{children:e},r.key,!1,{fileName:U,lineNumber:203,columnNumber:47},this)})}else v(r)?(c(),i.push({kind:`divider`})):b(r)?(c(),i.push({kind:`block`,node:(0,M.jsxDEV)(K,{textKey:r.text},void 0,!1,{fileName:U,lineNumber:209,columnNumber:39},this)})):y(r)&&c()}return c(),i}function K({textKey:e}){let{t}=n();return(0,M.jsxDEV)(_e,{text:t(e)},void 0,!1,{fileName:U,lineNumber:221,columnNumber:10},this)}function q(e){let t=[];for(let n of e)n.kind===`divider`&&(!t.length||t[t.length-1].kind===`divider`)||t.push(n);for(;t.length&&t[t.length-1].kind===`divider`;)t.pop();return t}function J({label:e,icon:t,labelAfter:n,children:r}){return(0,M.jsxDEV)(`section`,{className:`flex flex-col min-w-0 ${i}`,children:[e&&(0,M.jsxDEV)(s,{label:e,icon:t,actions:n},void 0,!1,{fileName:U,lineNumber:259,columnNumber:17},this),(0,M.jsxDEV)(`div`,{className:`flex flex-col min-w-0 ${i}`,children:r},void 0,!1,{fileName:U,lineNumber:260,columnNumber:7},this)]},void 0,!0,{fileName:U,lineNumber:258,columnNumber:5},this)}function Y({group:e,children:t}){let{t:r}=n();return(0,M.jsxDEV)(J,{label:e.label?r(e.label):void 0,icon:e.icon,children:t},void 0,!1,{fileName:U,lineNumber:273,columnNumber:5},this)}function X({group:e,children:t}){let{t:r}=n();return(0,M.jsxDEV)(`div`,{className:`flex flex-col gap-1 min-w-0`,children:[e.label&&(0,M.jsxDEV)(`span`,{className:`text-xs text-muted`,children:r(e.label)},void 0,!1,{fileName:U,lineNumber:284,columnNumber:23},this),t]},void 0,!0,{fileName:U,lineNumber:283,columnNumber:5},this)}function Z({group:e,renderCell:t}){let{t:r}=n(),i=[[]];for(let t of e.fields)y(t)?i.push([]):i[i.length-1].push(t);let a=Math.max(1,...i.map(e=>e.length)),o=!1,s=[];return i.forEach((e,n)=>{for(let r=0;r<a;r++){let i=e[r],a=i?t(i):null;a&&(o=!0),s.push((0,M.jsxDEV)(`div`,{className:`min-w-0`,children:a},`${n}-${r}`,!1,{fileName:U,lineNumber:320,columnNumber:9},this))}}),o?(0,M.jsxDEV)(u.Provider,{value:!0,children:(0,M.jsxDEV)(J,{label:e.label?r(e.label):void 0,icon:e.icon,children:(0,M.jsxDEV)(`div`,{className:`overflow-x-auto`,children:(0,M.jsxDEV)(`div`,{className:`grid gap-x-4 gap-y-2 items-start`,style:{gridTemplateColumns:`repeat(${a}, max-content)`},children:s},void 0,!1,{fileName:U,lineNumber:331,columnNumber:11},this)},void 0,!1,{fileName:U,lineNumber:330,columnNumber:9},this)},void 0,!1,{fileName:U,lineNumber:329,columnNumber:7},this)},void 0,!1,{fileName:U,lineNumber:328,columnNumber:5},this):null}function Q(e,t){return e.filter(e=>e.kind!==`divider`).length?e.map((e,n)=>{let r=`${t}-${n}`;switch(e.kind){case`flow`:return(0,M.jsxDEV)(o,{items:e.items,scroll:e.scroll},r,!1,{fileName:U,lineNumber:351,columnNumber:16},this);case`block`:return(0,M.jsxDEV)(E.Fragment,{children:e.node},r,!1,{fileName:U,lineNumber:353,columnNumber:16},this);case`group`:return(0,M.jsxDEV)(E.Fragment,{children:e.node},r,!1,{fileName:U,lineNumber:355,columnNumber:16},this);case`divider`:return(0,M.jsxDEV)(`hr`,{className:`border-border`},r,!1,{fileName:U,lineNumber:357,columnNumber:16},this)}}):null}function ve({items:e,ctx:t}){let{t:r}=n(),a=B(),o=t.bridge?{bridge:t.bridge,t:r,computed:a}:void 0,s=[],l=[],u=()=>{l.length&&(s.push(...G(l,t,o)),l=[])};for(let n of e)if(h(n))if(u(),o)if(g(n)){let e=n.key;if(!o.bridge.isHidden(e)){let t=d({kind:c(n)});if(t){let r=(0,M.jsxDEV)(t.Page,{el:n,value:o.bridge.getValue(e),onChange:t=>o.bridge.setValue(e,t),error:o.bridge.error(e),mode:o.bridge.mode,recordCtx:o.bridge.recordCtx},void 0,!1,{fileName:U,lineNumber:392,columnNumber:17},this);s.push({kind:`group`,node:r})}else console.warn(`[LayoutRenderer] no renderer for storage group kind '${c(n)}'`)}}else if(n.display===`sheet`)s.push({kind:`group`,node:(0,M.jsxDEV)(Z,{group:n,renderCell:e=>h(e)?null:W(e,o)?.node??null},void 0,!1,{fileName:U,lineNumber:411,columnNumber:15},this)});else{let e=Q(q(G(n.fields,t,o,n.display===`scroll`?`scroll`:`wrap`)),`g`);if(e)if(n.display===`scroll`)s.push({kind:`group`,node:(0,M.jsxDEV)(X,{group:n,children:e},void 0,!1,{fileName:U,lineNumber:425,columnNumber:49},this)});else{let t=d({kind:`group`});t?s.push({kind:`group`,node:(0,M.jsxDEV)(t.Page,{el:n,value:void 0,mode:o.bridge.mode,recordCtx:o.bridge.recordCtx,children:e},void 0,!1,{fileName:U,lineNumber:432,columnNumber:21},this)}):s.push({kind:`group`,node:(0,M.jsxDEV)(Y,{group:n,children:e},void 0,!1,{fileName:U,lineNumber:438,columnNumber:51},this)})}}else if(g(n)){let e=t.renderGroup?.(n.key,n);e&&s.push({kind:`group`,node:e})}else if(n.display===`sheet`)s.push({kind:`group`,node:(0,M.jsxDEV)(Z,{group:n,renderCell:e=>m(e)?t.renderField(e.key,e.type):null},void 0,!1,{fileName:U,lineNumber:453,columnNumber:13},this)});else{let e=Q(q(G(n.fields,t,void 0,n.display===`scroll`?`scroll`:`wrap`)),`g`);e&&s.push({kind:`group`,node:n.display===`scroll`?(0,M.jsxDEV)(X,{group:n,children:e},void 0,!1,{fileName:U,lineNumber:470,columnNumber:17},this):(0,M.jsxDEV)(Y,{group:n,children:e},void 0,!1,{fileName:U,lineNumber:471,columnNumber:17},this)})}else l.push(n);u();let f=Q(q(s),`l`);return f==null?null:(0,M.jsxDEV)(`div`,{className:`@container flex flex-col min-w-0 ${i}`,children:f},void 0,!1,{fileName:U,lineNumber:484,columnNumber:10},this)}function ye(e){let{fm:t,mode:r,recordCtx:i}=e,{t:a}=n(),o=P(a),[s,c]=(0,E.useState)(e.initial),[l,u]=(0,E.useState)({}),[d,f]=(0,E.useState)(()=>new Set),m=(0,E.useMemo)(()=>new Set(e.hiddenFields??[]),[e.hiddenFields]);return{values:s,setValues:c,errors:l,setErrors:u,touched:d,setTouched:f,bridge:(0,E.useMemo)(()=>({mode:r,recordCtx:i,values:s,getValue:e=>s[e],setValue:(e,n)=>{if(c(t=>({...t,[e]:n})),d.has(e)){let r=t[e],i=r?p(r,n):null;u(t=>{let n={...t};return i?n[e]=o(i.code,i.params):delete n[e],n})}},touch:e=>{f(t=>t.has(e)?t:new Set(t).add(e));let n=t[e],r=n?p(n,s[e]):null;u(t=>{let n={...t};return r?n[e]=o(r.code,r.params):delete n[e],n})},isHidden:e=>{let n=t[e];return!!n?.virtual||m.has(e)||C(n?.hidden,s)},requiredOf:e=>C(t[e]?.required,s),error:e=>l[e]}),[s,l,d,m,t,r,i,o])}}var $=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/Toolbar.tsx`;function be({children:e,actions:t}){return(0,M.jsxDEV)(`div`,{className:`eink-solid sticky top-0 z-20 flex h-[52px] items-center justify-between gap-3 bg-bg/85 px-4 backdrop-blur md:px-6 border-b border-border2 shrink-0`,children:[(0,M.jsxDEV)(`div`,{className:`flex items-center gap-2.5 min-w-0`,children:e},void 0,!1,{fileName:$,lineNumber:10,columnNumber:7},this),t&&(0,M.jsxDEV)(`div`,{className:`flex items-center gap-2 shrink-0`,children:t},void 0,!1,{fileName:$,lineNumber:11,columnNumber:19},this)]},void 0,!0,{fileName:$,lineNumber:9,columnNumber:5},this)}export{ce as _,H as a,I as c,de as d,le as f,ue as g,j as h,J as i,P as l,k as m,ye as n,me as o,A as p,ve as r,N as s,be as t,F as u,oe as v,T as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./chunk-QTnfLwEv.js";import{t}from"./react-D4J6PwTK.js";import{w as n}from"./button-CbB4uqRh.js";import{i as r,s as i}from"./chunk-6CSD65Y2-FavEEIOj.js";import{t as a}from"./jsx-dev-runtime-BMBl2lag.js";import{i as o,n as s}from"./api-j5etRnzW.js";var c=e(t(),1),l=a(),u=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/ui/card.tsx`,d=c.forwardRef(({className:e,...t},r)=>(0,l.jsxDEV)(`div`,{ref:r,className:n(`rounded-xl border border-border bg-card text-card-foreground`,e),...t},void 0,!1,{fileName:u,lineNumber:5,columnNumber:3},void 0));d.displayName=`Card`;var f=c.forwardRef(({className:e,...t},r)=>(0,l.jsxDEV)(`div`,{ref:r,className:n(`flex flex-col gap-1.5 p-5`,e),...t},void 0,!1,{fileName:u,lineNumber:10,columnNumber:37},void 0));f.displayName=`CardHeader`;var p=c.forwardRef(({className:e,...t},r)=>(0,l.jsxDEV)(`div`,{ref:r,className:n(`font-semibold leading-none text-text`,e),...t},void 0,!1,{fileName:u,lineNumber:16,columnNumber:5},void 0));p.displayName=`CardTitle`;var m=c.forwardRef(({className:e,...t},r)=>(0,l.jsxDEV)(`div`,{ref:r,className:n(`text-sm text-muted-foreground`,e),...t},void 0,!1,{fileName:u,lineNumber:23,columnNumber:5},void 0));m.displayName=`CardDescription`;var h=c.forwardRef(({className:e,...t},r)=>(0,l.jsxDEV)(`div`,{ref:r,className:n(`p-5 pt-0`,e),...t},void 0,!1,{fileName:u,lineNumber:29,columnNumber:37},void 0));h.displayName=`CardContent`;var g=c.forwardRef(({className:e,...t},r)=>(0,l.jsxDEV)(`div`,{ref:r,className:n(`flex items-center p-5 pt-0`,e),...t},void 0,!1,{fileName:u,lineNumber:35,columnNumber:5},void 0));g.displayName=`CardFooter`;var _=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/auth-context.tsx`,v=(0,c.createContext)(null);function y(){let e=(0,c.useContext)(v);if(!e)throw Error(`useAuth() called outside <AuthGate>`);return e}function b({children:e}){let[t,n]=(0,c.useState)({kind:`loading`});return(0,c.useEffect)(()=>{let e=!1;return(async()=>{try{let t=await o();if(e)return;if(t.needsSetup)return n({kind:`needsSetup`});let r=await s();if(e)return;n(r?{kind:`ready`,user:r}:{kind:`needsLogin`})}catch{e||n({kind:`error`})}})(),()=>{e=!0}},[i().pathname]),t.kind===`loading`?null:t.kind===`needsSetup`?(0,l.jsxDEV)(r,{to:`/setup`,replace:!0},void 0,!1,{fileName:_,lineNumber:41,columnNumber:44},this):t.kind===`needsLogin`?(0,l.jsxDEV)(r,{to:`/login`,replace:!0},void 0,!1,{fileName:_,lineNumber:42,columnNumber:44},this):t.kind===`error`?(0,l.jsxDEV)(`div`,{style:{display:`flex`,minHeight:`100dvh`,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:`1rem`},children:[(0,l.jsxDEV)(`p`,{children:`Could not check your session.`},void 0,!1,{fileName:_,lineNumber:46,columnNumber:9},this),(0,l.jsxDEV)(`button`,{onClick:()=>window.location.reload(),children:`Reload`},void 0,!1,{fileName:_,lineNumber:47,columnNumber:9},this)]},void 0,!0,{fileName:_,lineNumber:45,columnNumber:7},this):(0,l.jsxDEV)(v.Provider,{value:t.user,children:e},void 0,!1,{fileName:_,lineNumber:51,columnNumber:10},this)}export{y as n,d as r,b as t};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{r as e,t}from"./chunk-QTnfLwEv.js";import{t as n}from"./react-D4J6PwTK.js";import{t as r}from"./clsx-CjYvs854.js";import{t as i}from"./color-names-CKKZbleV.js";import{t as a}from"./jsx-dev-runtime-BMBl2lag.js";import{t as o}from"./jsx-runtime-DV9KAPzc.js";var s=t((e=>{(function(){function t(){}function r(e){return``+e}function i(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{r(i);var a=!1}catch{a=!0}return a&&(console.error(`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,typeof Symbol==`function`&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||`Object`),r(i)),{$$typeof:d,key:i==null?null:``+i,children:e,containerInfo:t,implementation:n}}function a(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}function o(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:`something with type "`+typeof e+`"`}function s(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:typeof e==`string`?JSON.stringify(e):typeof e==`number`?"`"+e+"`":`something with type "`+typeof e+`"`}function c(){var e=f.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
2
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
3
|
-
2. You might be breaking the Rules of Hooks
|
|
4
|
-
3. You might have more than one copy of React in the same app
|
|
5
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var l=n(),u={d:{f:t,r:function(){throw Error(`Invalid form element. requestFormReset must be passed a form that was rendered by React.`)},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},d=Symbol.for(`react.portal`),f=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(`Target container is not a DOM element.`);return i(e,t,null,n)},e.flushSync=function(e){var t=f.T,n=u.p;try{if(f.T=null,u.p=2,e)return e()}finally{f.T=t,u.p=n,u.d.f()&&console.error(`flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.`)}},e.preconnect=function(e,t){typeof e==`string`&&e?t!=null&&typeof t!=`object`?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",s(t)):t!=null&&typeof t.crossOrigin!=`string`&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e)),typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,u.d.C(e,t))},e.prefetchDNS=function(e){if(typeof e!=`string`||!e)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e));else if(1<arguments.length){var t=arguments[1];typeof t==`object`&&t.hasOwnProperty(`crossOrigin`)?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(t))}typeof e==`string`&&u.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&e?typeof t!=`object`||!t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",s(t)):t.as!==`style`&&t.as!==`script`&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',s(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e)),typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=a(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,c=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?u.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:c}):n===`script`&&u.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:c,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+o(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+o(t)+`.`:t&&`as`in t&&t.as!==`script`&&(n+=" The `as` option encountered was "+s(t.as)+`.`),n)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",n);else switch(n=t&&typeof t.as==`string`?t.as:`script`,n){case`script`:break;default:n=s(n),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',n,e)}typeof e==`string`&&(typeof t==`object`&&t?(t.as==null||t.as===`script`)&&(n=a(t.as,t.crossOrigin),u.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})):t??u.d.M(e))},e.preload=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+o(e)+`.`),typeof t!=`object`||!t?n+=" The `options` argument encountered was "+o(t)+`.`:typeof t.as==`string`&&t.as||(n+=" The `as` option encountered was "+o(t.as)+`.`),n&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=a(n,t.crossOrigin);u.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+o(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+o(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+o(t.as)+`.`),n&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',n),typeof e==`string`&&(t?(n=a(t.as,t.crossOrigin),u.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})):u.d.m(e))},e.requestFormReset=function(e){u.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c().useFormState(e,t,n)},e.useFormStatus=function(){return c().useHostTransitionStatus()},e.version=`19.2.7`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),c=t(((e,t)=>{t.exports=s()})),l=e(n()),u=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);_(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},d={},f=(e,t,n,r)=>{_(n)&&d[n]||(_(n)&&(d[n]=new Date),u(e,t,n,r))},p=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},m=(e,t,n)=>{e.loadNamespaces(t,p(e,n))},h=(e,t,n,r)=>{if(_(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return m(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,p(e,r))},g=(e,t,n={})=>!t.languages||!t.languages.length?(f(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),_=e=>typeof e==`string`,v=e=>typeof e==`object`&&!!e,y=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,b={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":` `," ":` `,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},x=e=>b[e],S={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(y,x),transDefaultProps:void 0},C=(e={})=>{S={...S,...e}},w=()=>S,T,E=e=>{T=e},ee=()=>T,D={type:`3rdParty`,init(e){C(e.options.react),E(e)}},te=(0,l.createContext)(),ne=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},O=t((e=>{(function(){function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function r(e,t){f||o.startTransition===void 0||(f=!0,console.error(`You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.`));var n=t();if(!p){var r=t();s(n,r)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),p=!0)}r=c({inst:{value:n,getSnapshot:t}});var a=r[0].inst,m=r[1];return u(function(){a.value=n,a.getSnapshot=t,i(a)&&m({inst:a})},[e,n,t]),l(function(){return i(a)&&m({inst:a}),e(function(){i(a)&&m({inst:a})})},[e]),d(n),n}function i(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!s(e,n)}catch{return!0}}function a(e,t){return t()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=n(),s=typeof Object.is==`function`?Object.is:t,c=o.useState,l=o.useEffect,u=o.useLayoutEffect,d=o.useDebugValue,f=!1,p=!1,m=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?a:r;e.useSyncExternalStore=o.useSyncExternalStore===void 0?m:o.useSyncExternalStore,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),k=t(((e,t)=>{t.exports=O()})),A=k(),re={t:(e,t)=>{if(_(t))return t;if(v(t)&&_(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},ie=()=>()=>{},j=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,l.useContext)(te)||{},a=n||r||ee();a&&!a.reportNamespaces&&(a.reportNamespaces=new ne),a||f(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next`);let o=(0,l.useMemo)(()=>({...w(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c}=o,u=e||i||a?.options?.defaultNS,d=_(u)?[u]:u||[`translation`],p=(0,l.useMemo)(()=>d,d);a?.reportNamespaces?.addUsedNamespaces?.(p);let v=(0,l.useRef)(0),y=(0,l.useCallback)(e=>{if(!a)return ie;let{bindI18n:t,bindI18nStore:n}=o,r=()=>{v.current+=1,e()};return t&&a.on(t,r),n&&a.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>a.off(e,r)),n&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,o]),b=(0,l.useRef)(),x=(0,l.useCallback)(()=>{if(!a)return re;let e=!!(a.isInitialized||a.initializedStoreOnce)&&p.every(e=>g(e,a,o)),n=t.lng||a.language,r=v.current,i=b.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;let s={t:a.getFixedT(n,o.nsMode===`fallback`?p:p[0],c,{scopeNs:p}),ready:e,lng:n,keyPrefix:c,revision:r};return b.current=s,s},[a,p,c,o,t.lng]),[S,C]=(0,l.useState)(0),{t:T,ready:E}=(0,A.useSyncExternalStore)(y,x,x);(0,l.useEffect)(()=>{if(a&&!E&&!s){let e=()=>C(e=>e+1);t.lng?h(a,t.lng,p,e):m(a,p,e)}},[a,t.lng,p,E,s,S]);let D=a||{},O=(0,l.useRef)(null),k=(0,l.useRef)(),j=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},ae=(0,l.useMemo)(()=>{let e=D,t=e?.language,n=e;e&&(O.current&&O.current.__original===e&&k.current===t?n=O.current:(n=j(e),O.current=n,k.current=t));let r=!E&&!s?(...e)=>(f(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),T(...e)):T,i=[r,n,E];return i.t=r,i.i18n=n,i.ready=E,i},[T,D,E,D.resolvedLanguage,D.language,D.languages]);if(a&&s&&!E)throw new Promise(e=>{let n=()=>e();t.lng?h(a,t.lng,p,n):m(a,p,n)});return ae},ae=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},oe=(e,t)=>({classGroupId:e,validator:t}),se=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),M=`-`,N=[],P=`arbitrary..`,F=e=>{let t=le(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return I(e);let n=e.split(M);return ce(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?ae(i,t):t:i||N}return n[e]||N}}},ce=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=ce(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(M):e.slice(t).join(M),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},I=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?P+r:void 0})(),le=e=>{let{theme:t,classGroups:n}=e;return L(n,t)},L=(e,t)=>{let n=se();for(let r in e){let i=e[r];R(i,n,r,t)}return n},R=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];ue(i,t,n,r)}},ue=(e,t,n,r)=>{if(typeof e==`string`){z(e,t,n);return}if(typeof e==`function`){de(e,t,n,r);return}fe(e,t,n,r)},z=(e,t,n)=>{let r=e===``?t:pe(t,e);r.classGroupId=n},de=(e,t,n,r)=>{if(me(e)){R(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(oe(n,e))},fe=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];R(o,pe(t,a),n,r)}},pe=(e,t)=>{let n=e,r=t.split(M),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=se(),n.nextPart.set(t,i)),n=i}return n},me=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,he=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},ge=`!`,_e=`:`,ve=[],ye=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),be=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===_e){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(ge)?(c=s.slice(0,-1),l=!0):s.startsWith(ge)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return ye(t,l,c,u)};if(t){let e=t+_e,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):ye(ve,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},xe=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Se=e=>({cache:he(e.cacheSize),parseClassName:be(e),sortModifiers:xe(e),postfixLookupClassGroupIds:Ce(e),...F(e)}),Ce=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},we=/\s+/,Te=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(we),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+ge:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Ee=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=De(n))&&(i&&(i+=` `),i+=r);return i},De=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=De(e[r]))&&(n&&(n+=` `),n+=t);return n},Oe=(e,...t)=>{let n,r,i,a,o=o=>(n=Se(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Te(e,n);return i(e,a),a};return a=o,(...e)=>a(Ee(...e))},ke=[],B=e=>{let t=t=>t[e]||ke;return t.isThemeGetter=!0,t},Ae=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,je=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Me=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ne=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pe=/\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$/,Fe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ie=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Le=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,V=e=>Me.test(e),H=e=>!!e&&!Number.isNaN(Number(e)),U=e=>!!e&&Number.isInteger(Number(e)),Re=e=>e.endsWith(`%`)&&H(e.slice(0,-1)),W=e=>Ne.test(e),ze=()=>!0,Be=e=>Pe.test(e)&&!Fe.test(e),Ve=()=>!1,He=e=>Ie.test(e),Ue=e=>Le.test(e),We=e=>!G(e)&&!q(e),Ge=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Ke=e=>Y(e,st,Ve),G=e=>Ae.test(e),K=e=>Y(e,ct,Be),qe=e=>Y(e,lt,H),Je=e=>Y(e,dt,ze),Ye=e=>Y(e,ut,Ve),Xe=e=>Y(e,at,Ve),Ze=e=>Y(e,ot,Ue),Qe=e=>Y(e,ft,He),q=e=>je.test(e),J=e=>X(e,ct),$e=e=>X(e,ut),et=e=>X(e,at),tt=e=>X(e,st),nt=e=>X(e,ot),rt=e=>X(e,ft,!0),it=e=>X(e,dt,!0),Y=(e,t,n)=>{let r=Ae.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},X=(e,t,n=!1)=>{let r=je.exec(e);return r?r[1]?t(r[1]):n:!1},at=e=>e===`position`||e===`percentage`,ot=e=>e===`image`||e===`url`,st=e=>e===`length`||e===`size`||e===`bg-size`,ct=e=>e===`length`,lt=e=>e===`number`,ut=e=>e===`family-name`,dt=e=>e===`number`||e===`weight`,ft=e=>e===`shadow`,pt=Oe(()=>{let e=B(`color`),t=B(`font`),n=B(`text`),r=B(`font-weight`),i=B(`tracking`),a=B(`leading`),o=B(`breakpoint`),s=B(`container`),c=B(`spacing`),l=B(`radius`),u=B(`shadow`),d=B(`inset-shadow`),f=B(`text-shadow`),p=B(`drop-shadow`),m=B(`blur`),h=B(`perspective`),g=B(`aspect`),_=B(`ease`),v=B(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),q,G],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[q,G,c],T=()=>[V,`full`,`auto`,...w()],E=()=>[U,`none`,`subgrid`,q,G],ee=()=>[`auto`,{span:[`full`,U,q,G]},U,q,G],D=()=>[U,`auto`,q,G],te=()=>[`auto`,`min`,`max`,`fr`,q,G],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],O=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],k=()=>[`auto`,...w()],A=()=>[V,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],re=()=>[V,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ie=()=>[V,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,q,G],ae=()=>[...b(),et,Xe,{position:[q,G]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,tt,Ke,{size:[q,G]}],M=()=>[Re,J,K],N=()=>[``,`none`,`full`,l,q,G],P=()=>[``,H,J,K],F=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],I=()=>[H,Re,et,Xe],le=()=>[``,`none`,m,q,G],L=()=>[`none`,H,q,G],R=()=>[`none`,H,q,G],ue=()=>[H,q,G],z=()=>[V,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[W],breakpoint:[W],color:[ze],container:[W],"drop-shadow":[W],ease:[`in`,`out`,`in-out`],font:[We],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[W],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[W],shadow:[W],spacing:[`px`,H],text:[W],"text-shadow":[W],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,V,G,q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,q,G]}],"container-named":[Ge],columns:[{columns:[H,G,q,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[U,`auto`,q,G]}],basis:[{basis:[V,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[H,V,`auto`,`initial`,`none`,G]}],grow:[{grow:[``,H,q,G]}],shrink:[{shrink:[``,H,q,G]}],order:[{order:[U,`first`,`last`,`none`,q,G]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...O(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...O()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...O(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...O(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...O(),`baseline`]}],"place-self":[{"place-self":[`auto`,...O()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:A()}],"inline-size":[{inline:[`auto`,...re()]}],"min-inline-size":[{"min-inline":[`auto`,...re()]}],"max-inline-size":[{"max-inline":[`none`,...re()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...A()]}],"min-w":[{"min-w":[s,`screen`,`none`,...A()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...A()]}],h:[{h:[`screen`,`lh`,...A()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...A()]}],"max-h":[{"max-h":[`screen`,`lh`,...A()]}],"font-size":[{text:[`base`,n,J,K]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,it,Je]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Re,G]}],"font-family":[{font:[$e,Ye,t]}],"font-features":[{"font-features":[G]}],"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:[i,q,G]}],"line-clamp":[{"line-clamp":[H,`none`,q,qe]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,q,G]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,q,G]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...F(),`wavy`]}],"text-decoration-thickness":[{decoration:[H,`from-font`,`auto`,q,K]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[H,`auto`,q,G]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[U,q,G]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,q,G]}],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`,q,G]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},U,q,G],radial:[``,q,G],conic:[U,q,G]},nt,Ze]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...F(),`hidden`,`none`]}],"divide-style":[{divide:[...F(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...F(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[H,q,G]}],"outline-w":[{outline:[``,H,J,K]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,rt,Qe]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,rt,Qe]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[H,K]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,rt,Qe]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[H,q,G]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"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":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[q,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,q,G]}],filter:[{filter:[``,`none`,q,G]}],blur:[{blur:le()}],brightness:[{brightness:[H,q,G]}],contrast:[{contrast:[H,q,G]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,rt,Qe]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,H,q,G]}],"hue-rotate":[{"hue-rotate":[H,q,G]}],invert:[{invert:[``,H,q,G]}],saturate:[{saturate:[H,q,G]}],sepia:[{sepia:[``,H,q,G]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,q,G]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[H,q,G]}],"backdrop-contrast":[{"backdrop-contrast":[H,q,G]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,H,q,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,q,G]}],"backdrop-invert":[{"backdrop-invert":[``,H,q,G]}],"backdrop-opacity":[{"backdrop-opacity":[H,q,G]}],"backdrop-saturate":[{"backdrop-saturate":[H,q,G]}],"backdrop-sepia":[{"backdrop-sepia":[``,H,q,G]}],"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`,q,G]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[H,`initial`,q,G]}],ease:[{ease:[`linear`,`initial`,_,q,G]}],delay:[{delay:[H,q,G]}],animate:[{animate:[`none`,v,q,G]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,q,G]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:R()}],"scale-x":[{"scale-x":R()}],"scale-y":[{"scale-y":R()}],"scale-z":[{"scale-z":R()}],"scale-3d":[`scale-3d`],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[q,G,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":[`translate-none`],zoom:[{zoom:[U,q,G]}],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"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`,q,G]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"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-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":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-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":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`,q,G]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[H,J,K,qe]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-bs`,`border-w-be`,`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-bs`,`border-color-be`,`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-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function mt(...e){return pt(r(e))}var Z=a();function ht(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function gt(...e){return t=>{let n=!1,r=e.map(e=>{let r=ht(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():ht(e[t],null)}}}}function _t(...e){return l.useCallback(gt(...e),e)}var Q=o();function vt(e){let t=l.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Et(r)&&typeof At==`function`&&(r=At(r._payload)),l.Children.forEach(r,e=>{if(wt(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Et(n)&&typeof At==`function`&&(n=At(n._payload)),a=xt(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=l.cloneElement(a,void 0,s):!o&&l.Children.count(r)===1&&l.isValidElement(r)&&(a=r);let c=a?Ct(a):void 0,u=_t(n,c);if(!a){if(r||r===0)throw Error(o?kt(e):Ot(e));return r}let d=St(i,a.props??{});return a.type!==l.Fragment&&(d.ref=n?u:c),l.cloneElement(a,d)});return t.displayName=`${e}.Slot`,t}var yt=vt(`Slot`),bt=Symbol.for(`radix.slottable`),xt=(e,t)=>{if(`child`in e.props){let t=e.props.child;return l.isValidElement(t)?l.cloneElement(t,void 0,e.props.children(t.props.children)):null}return l.isValidElement(t)?t:null};function St(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Ct(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function wt(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===bt}var Tt=Symbol.for(`react.lazy`);function Et(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Tt&&`_payload`in e&&Dt(e._payload)}function Dt(e){return typeof e==`object`&&!!e&&`then`in e}var Ot=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,kt=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,At=l.use,jt=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Mt=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Nt=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Pt=e=>{let t=Nt(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ft={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},It=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Lt=(0,l.createContext)({}),Rt=()=>(0,l.useContext)(Lt),zt=(0,l.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:u=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:p=`currentColor`,className:m=``}=Rt()??{},h=r??f?Number(n??d)*24/Number(t??u):n??d;return(0,l.createElement)(`svg`,{ref:c,...Ft,width:t??u??Ft.width,height:t??u??Ft.height,stroke:e??p,strokeWidth:h,className:jt(`lucide`,m,i),...!a&&!It(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,l.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),$=(e,t)=>{let n=(0,l.forwardRef)(({className:n,...r},i)=>(0,l.createElement)(zt,{ref:i,iconNode:t,className:jt(`lucide-${Mt(Pt(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Pt(e),n},Bt=$(`arrow-left-right`,[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]),Vt=$(`battery-full`,[[`path`,{d:`M10 10v4`,key:`1mb2ec`}],[`path`,{d:`M14 10v4`,key:`1nt88p`}],[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M6 10v4`,key:`1n77qd`}],[`rect`,{x:`2`,y:`6`,width:`16`,height:`12`,rx:`2`,key:`13zb55`}]]),Ht=$(`bug`,[[`path`,{d:`M12 20v-9`,key:`1qisl0`}],[`path`,{d:`M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z`,key:`uouzyp`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M21 21a4 4 0 0 0-3.81-4`,key:`1b0z45`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M22 13h-4`,key:`1jl80f`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9 7.13V6a3 3 0 1 1 6 0v1.13`,key:`1vgav8`}]]),Ut=$(`bus`,[[`path`,{d:`M8 6v6`,key:`18i7km`}],[`path`,{d:`M15 6v6`,key:`1sg6z9`}],[`path`,{d:`M2 12h19.6`,key:`de5uta`}],[`path`,{d:`M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3`,key:`1wwztk`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}],[`path`,{d:`M9 18h5`,key:`lrx6i`}],[`circle`,{cx:`16`,cy:`18`,r:`2`,key:`1v4tcr`}]]),Wt=$(`calendar-clock`,[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5`,key:`1osxxc`}],[`path`,{d:`M3 10h5`,key:`r794hk`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]),Gt=$(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),Kt=$(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),qt=$(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Jt=$(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),Yt=$(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Xt=$(`cooking-pot`,[[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`M20 12v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8`,key:`u0tga0`}],[`path`,{d:`m4 8 16-4`,key:`16g0ng`}],[`path`,{d:`m8.86 6.78-.45-1.81a2 2 0 0 1 1.45-2.43l1.94-.48a2 2 0 0 1 2.43 1.46l.45 1.8`,key:`12cejc`}]]),Zt=$(`door-open`,[[`path`,{d:`M11 20H2`,key:`nlcfvz`}],[`path`,{d:`M11 4.562v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561z`,key:`au4z13`}],[`path`,{d:`M11 4H8a2 2 0 0 0-2 2v14`,key:`74r1mk`}],[`path`,{d:`M14 12h.01`,key:`1jfl7z`}],[`path`,{d:`M22 20h-3`,key:`vhrsz`}]]),Qt=$(`droplet`,[[`path`,{d:`M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z`,key:`c7niix`}]]),$t=$(`flask-conical`,[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),en=$(`folder-output`,[[`path`,{d:`M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5`,key:`1yk7aj`}],[`path`,{d:`M2 13h10`,key:`pgb2dq`}],[`path`,{d:`m5 10-3 3 3 3`,key:`1r8ie0`}]]),tn=$(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),nn=$(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),rn=$(`ghost`,[[`path`,{d:`M9 10h.01`,key:`qbtxuw`}],[`path`,{d:`M15 10h.01`,key:`1qmjsl`}],[`path`,{d:`M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z`,key:`uwwb07`}]]),an=$(`glasses`,[[`circle`,{cx:`6`,cy:`15`,r:`4`,key:`vux9w4`}],[`circle`,{cx:`18`,cy:`15`,r:`4`,key:`18o8ve`}],[`path`,{d:`M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2`,key:`1ag4bs`}],[`path`,{d:`M2.5 13 5 7c.7-1.3 1.4-2 3-2`,key:`1hm1gs`}],[`path`,{d:`M21.5 13 19 7c-.7-1.3-1.5-2-3-2`,key:`1r31ai`}]]),on=$(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),sn=$(`hand`,[[`path`,{d:`M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1fvzgz`}],[`path`,{d:`M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`1kc0my`}],[`path`,{d:`M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8`,key:`10h0bg`}],[`path`,{d:`M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`1s1gnw`}]]),cn=$(`hospital`,[[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M14 9h-4`,key:`1w2s2s`}],[`path`,{d:`M18 11h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h2`,key:`1tthqt`}],[`path`,{d:`M18 21V5a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16`,key:`dw4p4i`}]]),ln=$(`hotel`,[[`path`,{d:`M10 22v-6.57`,key:`1wmca3`}],[`path`,{d:`M12 11h.01`,key:`z322tv`}],[`path`,{d:`M12 7h.01`,key:`1ivr5q`}],[`path`,{d:`M14 15.43V22`,key:`1q2vjd`}],[`path`,{d:`M15 16a5 5 0 0 0-6 0`,key:`o9wqvi`}],[`path`,{d:`M16 11h.01`,key:`xkw8gn`}],[`path`,{d:`M16 7h.01`,key:`1kdx03`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 7h.01`,key:`1vti4s`}],[`rect`,{x:`4`,y:`2`,width:`16`,height:`20`,rx:`2`,key:`1uxh74`}]]),un=$(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),dn=$(`id-card`,[[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`path`,{d:`M6.17 15a3 3 0 0 1 5.66 0`,key:`n6f512`}],[`circle`,{cx:`9`,cy:`11`,r:`2`,key:`yxgjnd`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),fn=$(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),pn=$(`landmark`,[[`path`,{d:`M10 18v-7`,key:`wt116b`}],[`path`,{d:`M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z`,key:`yxxwt6`}],[`path`,{d:`M14 18v-7`,key:`vav6t3`}],[`path`,{d:`M18 18v-7`,key:`aexdmj`}],[`path`,{d:`M3 22h18`,key:`8prr45`}],[`path`,{d:`M6 18v-7`,key:`1ivflk`}]]),mn=$(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),hn=$(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),gn=$(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),_n=$(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),vn=$(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),yn=$(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),bn=$(`paint-roller`,[[`rect`,{width:`16`,height:`6`,x:`2`,y:`2`,rx:`2`,key:`jcyz7m`}],[`path`,{d:`M10 16v-2a2 2 0 0 1 2-2h8a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2`,key:`1b9h7c`}],[`rect`,{width:`4`,height:`6`,x:`8`,y:`16`,rx:`1`,key:`d6e7yl`}]]),xn=$(`pill`,[[`path`,{d:`m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z`,key:`wa1lgi`}],[`path`,{d:`m8.5 8.5 7 7`,key:`rvfmvr`}]]),Sn=$(`plane-takeoff`,[[`path`,{d:`M2 22h20`,key:`272qi7`}],[`path`,{d:`M6.36 17.4 4 17l-2-4 1.1-.55a2 2 0 0 1 1.8 0l.17.1a2 2 0 0 0 1.8 0L8 12 5 6l.9-.45a2 2 0 0 1 2.09.2l4.02 3a2 2 0 0 0 2.1.2l4.19-2.06a2.41 2.41 0 0 1 1.73-.17L21 7a1.4 1.4 0 0 1 .87 1.99l-.38.76c-.23.46-.6.84-1.07 1.08L7.58 17.2a2 2 0 0 1-1.22.18Z`,key:`fkigj9`}]]),Cn=$(`plane`,[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]),wn=$(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),Tn=$(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),En=$(`puzzle`,[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]),Dn=$(`radar`,[[`path`,{d:`M19.07 4.93A10 10 0 0 0 6.99 3.34`,key:`z3du51`}],[`path`,{d:`M4 6h.01`,key:`oypzma`}],[`path`,{d:`M2.29 9.62A10 10 0 1 0 21.31 8.35`,key:`qzzz0`}],[`path`,{d:`M16.24 7.76A6 6 0 1 0 8.23 16.67`,key:`1yjesh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M17.99 11.66A6 6 0 0 1 15.77 16.67`,key:`1u2y91`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`m13.41 10.59 5.66-5.66`,key:`mhq4k0`}]]),On=$(`radio-tower`,[[`path`,{d:`M4.9 16.1C1 12.2 1 5.8 4.9 1.9`,key:`s0qx1y`}],[`path`,{d:`M7.8 4.7a6.14 6.14 0 0 0-.8 7.5`,key:`1idnkw`}],[`circle`,{cx:`12`,cy:`9`,r:`2`,key:`1092wv`}],[`path`,{d:`M16.2 4.8c2 2 2.26 5.11.8 7.47`,key:`ojru2q`}],[`path`,{d:`M19.1 1.9a9.96 9.96 0 0 1 0 14.1`,key:`rhi7fg`}],[`path`,{d:`M9.5 18h5`,key:`mfy3pd`}],[`path`,{d:`m8 22 4-11 4 11`,key:`25yftu`}]]),kn=$(`receipt`,[[`path`,{d:`M12 17V7`,key:`pyj7ub`}],[`path`,{d:`M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8`,key:`1elt7d`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]),An=$(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),jn=$(`rocket`,[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]),Mn=$(`ruler`,[[`path`,{d:`M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z`,key:`icamh8`}],[`path`,{d:`m14.5 12.5 2-2`,key:`inckbg`}],[`path`,{d:`m11.5 9.5 2-2`,key:`fmmyf7`}],[`path`,{d:`m8.5 6.5 2-2`,key:`vc6u1g`}],[`path`,{d:`m17.5 15.5 2-2`,key:`wo5hmg`}]]),Nn=$(`satellite`,[[`path`,{d:`m13.5 6.5-3.148-3.148a1.205 1.205 0 0 0-1.704 0L6.352 5.648a1.205 1.205 0 0 0 0 1.704L9.5 10.5`,key:`dzhfyz`}],[`path`,{d:`M16.5 7.5 19 5`,key:`1ltcjm`}],[`path`,{d:`m17.5 10.5 3.148 3.148a1.205 1.205 0 0 1 0 1.704l-2.296 2.296a1.205 1.205 0 0 1-1.704 0L13.5 14.5`,key:`nfoymv`}],[`path`,{d:`M9 21a6 6 0 0 0-6-6`,key:`1iajcf`}],[`path`,{d:`M9.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l4.296-4.296a1.205 1.205 0 0 0 0-1.704l-2.296-2.296a1.205 1.205 0 0 0-1.704 0z`,key:`nv9zqy`}]]),Pn=$(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Fn=$(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),In=$(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Ln=$(`soup`,[[`path`,{d:`M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z`,key:`4rw317`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}],[`path`,{d:`M19.5 12 22 6`,key:`shfsr5`}],[`path`,{d:`M16.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.73 1.62`,key:`rpc6vp`}],[`path`,{d:`M11.25 3c.27.1.8.53.74 1.36-.05.83-.93 1.2-.98 2.02-.06.78.33 1.24.72 1.62`,key:`1lf63m`}],[`path`,{d:`M6.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.74 1.62`,key:`97tijn`}]]),Rn=$(`sprout`,[[`path`,{d:`M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3`,key:`139s4v`}],[`path`,{d:`M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4`,key:`1dlkgp`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),zn=$(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),Bn=$(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),Vn=$(`stethoscope`,[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]),Hn=$(`ticket`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`M13 5v2`,key:`dyzc3o`}],[`path`,{d:`M13 17v2`,key:`1ont0d`}],[`path`,{d:`M13 11v2`,key:`1wjjxi`}]]),Un=$(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Wn=$(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),Gn=$(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Kn=$(`wallet`,[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]),qn=$(`wifi`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),Jn=$(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Yn=$(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),Xn=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/icons/lucide.tsx`,Zn={"id-card":dn,plane:Cn,plus:Tn,globe:on,sprout:Rn,"cooking-pot":Xt,"sliders-horizontal":In,ticket:Hn,hospital:cn,hotel:ln,user:Wn,users:Gn,pill:xn,"clipboard-list":Jt,"radio-tower":On,package:yn,"battery-full":Vt,link:hn,monitor:vn,rocket:jn,bus:Ut,shield:Fn,"plane-takeoff":Sn,satellite:Nn,"flask-conical":$t,stethoscope:Vn,soup:Ln,glasses:an,puzzle:En,settings:Pn,"alert-triangle":Un,hand:sn,"map-pin":gn,gauge:nn,"door-open":Zt,"paint-roller":bn,zap:Yn,calendar:Gt,clock:Yt,"calendar-clock":Wt,"arrow-left-right":Bt,bug:Ht,check:Kt,droplet:Qt,folder:tn,"folder-output":en,ghost:rn,house:un,info:fn,landmark:pn,layers:mn,play:wn,radar:Dn,receipt:kn,"refresh-cw":An,ruler:Mn,square:zn,wallet:Kn,wifi:qn,x:Jn,star:Bn,minus:_n};function Qn(e,t,n,r){let i=Zn[e];return i?(0,Z.jsxDEV)(i,{size:t,className:n,strokeWidth:r},void 0,!1,{fileName:Xn,lineNumber:137,columnNumber:10},this):null}var $n=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/icons/flag.tsx`;function er(e,t,n){return(0,Z.jsxDEV)(`span`,{className:`fi fi-${e.toLowerCase()} ${n??``}`,style:{width:t,height:t*.75,display:`inline-block`,borderRadius:2}},void 0,!1,{fileName:$n,lineNumber:7,columnNumber:5},this)}var tr={outline:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},filled:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`}},nr=((e,t,n,r)=>{let i=(0,l.forwardRef)(({color:n=`currentColor`,size:i=24,stroke:a=2,title:o,className:s,children:c,...u},d)=>(0,l.createElement)(`svg`,{ref:d,...tr[e],width:i,height:i,className:[`tabler-icon`,`tabler-icon-${t}`,s].join(` `),...e===`filled`?{fill:n}:{strokeWidth:a,stroke:n},...u},[o&&(0,l.createElement)(`title`,{key:`svg-title`},o),...r.map(([e,t])=>(0,l.createElement)(e,t)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i})(`outline`,`drone`,`Drone`,[[`path`,{d:`M10 10h4v4h-4l0 -4`,key:`svg-0`}],[`path`,{d:`M10 10l-3.5 -3.5`,key:`svg-1`}],[`path`,{d:`M9.96 6a3.5 3.5 0 1 0 -3.96 3.96`,key:`svg-2`}],[`path`,{d:`M14 10l3.5 -3.5`,key:`svg-3`}],[`path`,{d:`M18 9.96a3.5 3.5 0 1 0 -3.96 -3.96`,key:`svg-4`}],[`path`,{d:`M14 14l3.5 3.5`,key:`svg-5`}],[`path`,{d:`M14.04 18a3.5 3.5 0 1 0 3.96 -3.96`,key:`svg-6`}],[`path`,{d:`M10 14l-3.5 3.5`,key:`svg-7`}],[`path`,{d:`M6 14.04a3.5 3.5 0 1 0 3.96 3.96`,key:`svg-8`}]]),rr=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/icons/tabler.tsx`,ir={drone:nr};function ar(e,t,n,r){let i=ir[e];return i?(0,Z.jsxDEV)(i,{size:t,className:n,stroke:r??2},void 0,!1,{fileName:rr,lineNumber:12,columnNumber:10},this):null}var or=`#2496ED`,sr=l.forwardRef(function({title:e=`Docker`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=or),(0,Q.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,Q.jsx)(`title`,{children:e}),(0,Q.jsx)(`path`,{d:`M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z`})]})}),cr=`#181717`,lr=l.forwardRef(function({title:e=`GitHub`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=cr),(0,Q.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,Q.jsx)(`title`,{children:e}),(0,Q.jsx)(`path`,{d:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`})]})}),ur=`#18BCF2`,dr=l.forwardRef(function({title:e=`Home Assistant`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=ur),(0,Q.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,Q.jsx)(`title`,{children:e}),(0,Q.jsx)(`path`,{d:`M22.939 10.627 13.061.749a1.505 1.505 0 0 0-2.121 0l-9.879 9.878C.478 11.21 0 12.363 0 13.187v9c0 .826.675 1.5 1.5 1.5h9.227l-4.063-4.062a2.034 2.034 0 0 1-.664.113c-1.13 0-2.05-.92-2.05-2.05s.92-2.05 2.05-2.05 2.05.92 2.05 2.05c0 .233-.041.456-.113.665l3.163 3.163V9.928a2.05 2.05 0 0 1-1.15-1.84c0-1.13.92-2.05 2.05-2.05s2.05.92 2.05 2.05a2.05 2.05 0 0 1-1.15 1.84v8.127l3.146-3.146A2.051 2.051 0 0 1 18 12.239c1.13 0 2.05.92 2.05 2.05s-.92 2.05-2.05 2.05c-.25 0-.488-.047-.709-.13L12.9 20.602v3.088h9.6c.825 0 1.5-.675 1.5-1.5v-9c0-.825-.477-1.977-1.061-2.561z`})]})}),fr=`#0082C9`,pr=l.forwardRef(function({title:e=`Nextcloud`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=fr),(0,Q.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,Q.jsx)(`title`,{children:e}),(0,Q.jsx)(`path`,{d:`M12.018 6.537c-2.5 0-4.6 1.712-5.241 4.015-.56-1.232-1.793-2.105-3.225-2.105A3.569 3.569 0 0 0 0 12a3.569 3.569 0 0 0 3.552 3.553c1.432 0 2.664-.874 3.224-2.106.641 2.304 2.742 4.016 5.242 4.016 2.487 0 4.576-1.693 5.231-3.977.569 1.21 1.783 2.067 3.198 2.067A3.568 3.568 0 0 0 24 12a3.569 3.569 0 0 0-3.553-3.553c-1.416 0-2.63.858-3.199 2.067-.654-2.284-2.743-3.978-5.23-3.977zm0 2.085c1.878 0 3.378 1.5 3.378 3.378 0 1.878-1.5 3.378-3.378 3.378A3.362 3.362 0 0 1 8.641 12c0-1.878 1.5-3.378 3.377-3.378zm-8.466 1.91c.822 0 1.467.645 1.467 1.468s-.644 1.467-1.467 1.468A1.452 1.452 0 0 1 2.085 12c0-.823.644-1.467 1.467-1.467zm16.895 0c.823 0 1.468.645 1.468 1.468s-.645 1.468-1.468 1.468A1.452 1.452 0 0 1 18.98 12c0-.823.644-1.467 1.467-1.467z`})]})}),mr=`#0891D1`,hr=l.forwardRef(function({title:e=`Syncthing`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=mr),(0,Q.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,Q.jsx)(`title`,{children:e}),(0,Q.jsx)(`path`,{d:`M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm0 2.412c3.115 0 5.885 1.5 7.629 3.815a1.834 1.834 0 0 1 1.564 3.162c.23.818.354 1.68.354 2.57a9.504 9.504 0 0 1-2.166 6.05c.128.281.189.595.162.92a1.854 1.854 0 0 1-2.004 1.678 1.86 1.86 0 0 1-.877-.322A9.486 9.486 0 0 1 12 21.505c-3.84 0-7.154-2.277-8.668-5.552-.3-.01-.601-.092-.879-.254-.858-.51-1.144-1.634-.633-2.513.164-.276.39-.493.653-.643a9.62 9.62 0 0 1-.02-.584c0-5.265 4.282-9.547 9.547-9.547zm0 1.227a8.311 8.311 0 0 0-8.31 8.683c.22.036.439.111.644.23.323.2.564.484.713.805l6.984-.644a1.78 1.78 0 0 1 .787-1.08c.288-.19.612-.286.936-.295.34-.01.68.08.978.254l3.51-2.914a1.82 1.82 0 0 1 .317-1.84A8.3 8.3 0 0 0 12 3.638zm7.027 5.98-3.502 2.91a1.829 1.829 0 0 1-.23 1.719l1.904 2.744c.212-.06.436-.085.668-.066.238.024.46.092.66.193a8.285 8.285 0 0 0 1.793-5.16 8.38 8.38 0 0 0-.265-2.092 1.835 1.835 0 0 1-1.028-.248zm-6.886 4.315-6.975.644a1.8 1.8 0 0 1-.66 1.004A8.312 8.312 0 0 0 12 20.279a8.294 8.294 0 0 0 3.938-.986 1.845 1.845 0 0 1-.075-.69c.028-.341.148-.65.332-.908L14.29 14.95a1.839 1.839 0 0 1-2.148-1.015z`})]})}),gr=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/icons/simple.tsx`,_r={github:lr,syncthing:hr,docker:sr,"home-assistant":dr,nextcloud:pr};function vr(e,t,n){let r=_r[e];return r?(0,Z.jsxDEV)(r,{size:t,className:n,color:`currentColor`},void 0,!1,{fileName:gr,lineNumber:23,columnNumber:10},this):null}var yr=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/icons/color.tsx`,br=new Map(i.map(e=>[e.name,e.hex])),xr=/^#[0-9a-fA-F]{6}$/;function Sr(e,t,n){let r=xr.test(e)?e:br.get(e);return r?(0,Z.jsxDEV)(`span`,{className:`shrink-0 inline-block rounded-full border border-border/60 ${n??``}`,style:{width:t,height:t,backgroundColor:r}},void 0,!1,{fileName:yr,lineNumber:13,columnNumber:5},this):null}var Cr={lucide:Qn,flag:er,tb:ar,si:vr,color:Sr};function wr(e,t,n,r){let i=e.indexOf(`:`);if(i===-1)return;let a=Cr[e.slice(0,i)];if(a)return a(e.slice(i+1),t,n,r)??void 0}var Tr=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/Icon.tsx`;function Er({name:e,size:t=16,className:n,strokeWidth:r}){if(!e)return null;let i=wr(e,t,n,r);return i===void 0?(console.warn(`[Icon] невідома іконка: ${e}`),(0,Z.jsxDEV)(qt,{size:t,className:n,strokeWidth:r},void 0,!1,{fileName:Tr,lineNumber:24,columnNumber:10},this)):(0,Z.jsxDEV)(Z.Fragment,{children:i},void 0,!1,{fileName:Tr,lineNumber:22,columnNumber:34},this)}var Dr=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Or=r,kr=(e,t)=>n=>{if(t?.variants==null)return Or(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Dr(t)||Dr(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Or(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Ar=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/ui/button.tsx`,jr=kr(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-accent2`,destructive:`bg-destructive text-destructive-foreground hover:opacity-90`,outline:`border border-border bg-transparent text-text hover:bg-elevated hover:border-border2`,secondary:`bg-secondary text-secondary-foreground hover:bg-border`,ghost:`text-muted hover:bg-elevated hover:text-text`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-md px-3 text-xs`,lg:`h-10 rounded-lg px-6`,icon:`h-9 w-9`,iconSm:`h-8 w-8 rounded-md`,iconXs:`h-8 w-8 rounded-md`}},defaultVariants:{variant:`default`,size:`default`}}),Mr=l.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,Z.jsxDEV)(r?yt:`button`,{className:mt(jr({variant:t,size:n,className:e})),ref:a,...i},void 0,!1,{fileName:Ar,lineNumber:40,columnNumber:12},void 0));Mr.displayName=`Button`;export{_t as C,D,k as E,c as O,gt as S,j as T,Yt as _,Jn as a,yt as b,An as c,vn as d,_n as f,tn as g,on as h,Er as i,Tn as l,un as m,jr as n,Bn as o,gn as p,kr as r,Pn as s,Mr as t,wn as u,Kt as v,mt as w,vt as x,$ as y};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./chunk-QTnfLwEv.js";import{t}from"./react-D4J6PwTK.js";import{n}from"./clsx-CjYvs854.js";var r=e(t(),1),i=`popstate`;function a(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function o(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return d(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:f(t)}return m(t,n,null,e)}function s(e,t){if(e===!1||e==null)throw Error(t)}function c(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function l(){return Math.random().toString(36).substring(2,10)}function u(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function d(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?p(t):t,state:n,key:t&&t.key||r||l(),mask:i}}function f({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function p(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function m(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:s=!1}=r,c=o.history,l=`POP`,f=null,p=m();p??(p=0,c.replaceState({...c.state,idx:p},``));function m(){return(c.state||{idx:null}).idx}function g(){l=`POP`;let e=m(),t=e==null?null:e-p;p=e,f&&f({action:l,location:b.location,delta:t})}function _(e,t){l=`PUSH`;let r=a(e)?e:d(b.location,e,t);n&&n(r,e),p=m()+1;let i=u(r,p),h=b.createHref(r.mask||r);try{c.pushState(i,``,h)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;o.location.assign(h)}s&&f&&f({action:l,location:b.location,delta:1})}function v(e,t){l=`REPLACE`;let r=a(e)?e:d(b.location,e,t);n&&n(r,e),p=m();let i=u(r,p),o=b.createHref(r.mask||r);c.replaceState(i,``,o),s&&f&&f({action:l,location:b.location,delta:0})}function y(e){return h(o,e)}let b={get action(){return l},get location(){return e(o,c)},listen(e){if(f)throw Error(`A history only accepts one active listener`);return o.addEventListener(i,g),f=e,()=>{o.removeEventListener(i,g),f=null}},createHref(e){return t(o,e)},createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:_,replace:v,go(e){return c.go(e)}};return b}function h(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),s(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:f(t);return i=i.replace(/ $/,`%20`),!n&&i.startsWith(`//`)&&(i=r+i),new URL(i,r)}function g(e,t,n=`/`){return _(e,t,n,!1)}function _(e,t,n,r,i){let a=O((typeof t==`string`?p(t):t).pathname||`/`,n);if(a==null)return null;let o=i??y(e),s=null,c=se(a);for(let e=0;s==null&&e<o.length;++e)s=ae(o[e],c,r);return s}function v(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function y(e){let t=b(e);return S(t),t}function b(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,c)=>{let l={relativePath:c===void 0?e.path||``:c,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(l.relativePath.startsWith(`/`)){if(!l.relativePath.startsWith(r)&&o)return;s(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length)}let u=A([r,l.relativePath]),d=n.concat(l);e.children&&e.children.length>0&&(s(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),b(e.children,t,d,u,o)),!(e.path==null&&!e.index)&&t.push({path:u,score:re(u,e.index),routesMeta:d})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of x(e.path))a(e,t,!0,n)}),t}function x(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=x(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function S(e){e.sort((e,t)=>e.score===t.score?ie(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var C=/^:[\w-]+$/,ee=3,w=2,T=1,te=10,ne=-2,E=e=>e===`*`;function re(e,t){let n=e.split(`/`),r=n.length;return n.some(E)&&(r+=ne),t&&(r+=w),n.filter(e=>!E(e)).reduce((e,t)=>e+(C.test(t)?ee:t===``?T:te),r)}function ie(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function ae(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=D({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=D({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:A([a,u.pathname]),pathnameBase:he(A([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=A([a,u.pathnameBase]))}return o}function D(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=oe(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function oe(e,t=!1,n=!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 r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function se(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).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 O(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var ce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function le(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?p(e):e,a;return n?(n=me(n),a=n.startsWith(`/`)?ue(n.substring(1),`/`):ue(n,t)):a=t,{pathname:a,search:ge(r),hash:_e(i)}}function ue(e,t){let n=j(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function de(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function fe(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function pe(e){let t=fe(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function k(e,t,n,r=!1){let i;typeof e==`string`?i=p(e):(i={...e},s(!i.pathname||!i.pathname.includes(`?`),de(`?`,`pathname`,`search`,i)),s(!i.pathname||!i.pathname.includes(`#`),de(`#`,`pathname`,`hash`,i)),s(!i.search||!i.search.includes(`#`),de(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,c;if(o==null)c=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}c=e>=0?t[e]:`/`}let l=le(i,c),u=o&&o!==`/`&&o.endsWith(`/`),d=(a||o===`.`)&&n.endsWith(`/`);return!l.pathname.endsWith(`/`)&&(u||d)&&(l.pathname+=`/`),l}var me=e=>e.replace(/\/\/+/g,`/`),A=e=>me(e.join(`/`)),j=e=>e.replace(/\/+$/,``),he=e=>j(e).replace(/^\/*/,`/`),ge=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,_e=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,ve=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function ye(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function be(e){return A(e.map(e=>e.route.path).filter(Boolean))||`/`}var xe=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Se(e,t){let n=e;if(typeof n!=`string`||!ce.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(xe)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=O(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{c(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Ce=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Ce);var we=[`GET`,...Ce];new Set(we);var M=r.createContext(null);M.displayName=`DataRouter`;var N=r.createContext(null);N.displayName=`DataRouterState`;var Te=r.createContext(!1);function Ee(){return r.useContext(Te)}var De=r.createContext({isTransitioning:!1});De.displayName=`ViewTransition`;var Oe=r.createContext(new Map);Oe.displayName=`Fetchers`;var ke=r.createContext(null);ke.displayName=`Await`;var P=r.createContext(null);P.displayName=`Navigation`;var F=r.createContext(null);F.displayName=`Location`;var I=r.createContext({outlet:null,matches:[],isDataRoute:!1});I.displayName=`Route`;var L=r.createContext(null);L.displayName=`RouteError`;var Ae=`REACT_ROUTER_ERROR`,je=`REDIRECT`,Me=`ROUTE_ERROR_RESPONSE`;function Ne(e){if(e.startsWith(`${Ae}:${je}:{`))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 Pe(e){if(e.startsWith(`${Ae}:${Me}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new ve(t.status,t.statusText,t.data)}catch{}}function Fe(e,{relative:t}={}){s(R(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:i}=r.useContext(P),{hash:a,pathname:o,search:c}=V(e,{relative:t}),l=o;return n!==`/`&&(l=o===`/`?n:A([n,o])),i.createHref({pathname:l,search:c,hash:a})}function R(){return r.useContext(F)!=null}function z(){return s(R(),`useLocation() may be used only in the context of a <Router> component.`),r.useContext(F).location}var Ie=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Le(e){r.useContext(P).static||r.useLayoutEffect(e)}function B(){let{isDataRoute:e}=r.useContext(I);return e?et():Re()}function Re(){s(R(),`useNavigate() may be used only in the context of a <Router> component.`);let e=r.useContext(M),{basename:t,navigator:n}=r.useContext(P),{matches:i}=r.useContext(I),{pathname:a}=z(),o=JSON.stringify(pe(i)),l=r.useRef(!1);return Le(()=>{l.current=!0}),r.useCallback((r,i={})=>{if(c(l.current,Ie),!l.current)return;if(typeof r==`number`){n.go(r);return}let s=k(r,JSON.parse(o),a,i.relative===`path`);e==null&&t!==`/`&&(s.pathname=s.pathname===`/`?t:A([t,s.pathname])),(i.replace?n.replace:n.push)(s,i.state,i)},[t,n,o,a,e])}r.createContext(null);function ze(){let{matches:e}=r.useContext(I);return e[e.length-1]?.params??{}}function V(e,{relative:t}={}){let{matches:n}=r.useContext(I),{pathname:i}=z(),a=JSON.stringify(pe(n));return r.useMemo(()=>k(e,JSON.parse(a),i,t===`path`),[e,a,i,t])}function Be(e,t){return Ve(e,t)}function Ve(e,t,n){s(R(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:i}=r.useContext(P),{matches:a}=r.useContext(I),o=a[a.length-1],l=o?o.params:{},u=o?o.pathname:`/`,d=o?o.pathnameBase:`/`,f=o&&o.route;{let e=f&&f.path||``;nt(u,!f||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) 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="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let m=z(),h;if(t){let e=typeof t==`string`?p(t):t;s(d===`/`||e.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 "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=m;let _=h.pathname||`/`,v=_;if(d!==`/`){let e=d.replace(/^\//,``).split(`/`);v=`/`+_.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let y=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):g(e,{pathname:v});c(f||y!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),c(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.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 b=qe(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:A([d,i.encodeLocation?i.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?d:A([d,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),a,n);return t&&b?r.createElement(F.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...h},navigationType:`POP`}},b):b}function He(){let e=$e(),t=ye(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i=`rgba(200,200,200, 0.5)`,a={padding:`0.5rem`,backgroundColor:i},o={padding:`2px 4px`,backgroundColor:i},s=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),s=r.createElement(r.Fragment,null,r.createElement(`p`,null,`💿 Hey developer 👋`),r.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,r.createElement(`code`,{style:o},`ErrorBoundary`),` or`,` `,r.createElement(`code`,{style:o},`errorElement`),` prop on your route.`)),r.createElement(r.Fragment,null,r.createElement(`h2`,null,`Unexpected Application Error!`),r.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?r.createElement(`pre`,{style:a},n):null,s)}var Ue=r.createElement(He,null),We=class extends r.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?t.error:e.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`){let t=Pe(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:r.createElement(I.Provider,{value:this.props.routeContext},r.createElement(L.Provider,{value:e,children:this.props.component}));return this.context?r.createElement(Ge,{error:e},t):t}};We.contextType=Te;var H=new WeakMap;function Ge({children:e,error:t}){let{basename:n}=r.useContext(P);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Ne(t.digest);if(e){let i=H.get(t);if(i)throw i;let a=Se(e.location,n);if(xe&&!H.get(t))if(a.isExternal||e.reloadDocument)window.location.href=a.absoluteURL||a.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw H.set(t,n),n}return r.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a.absoluteURL||a.to}`})}}return e}function Ke({routeContext:e,match:t,children:n}){let i=r.useContext(M);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),r.createElement(I.Provider,{value:e},n)}function qe(e,t=[],n){let i=n?.state;if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(t.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let a=e,o=i?.errors;if(o!=null){let e=a.findIndex(e=>e.route.id&&o?.[e.route.id]!==void 0);s(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(`,`)}`),a=a.slice(0,Math.min(a.length,e+1))}let c=!1,l=-1;if(n&&i){c=i.renderFallback;for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=i,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||r[t.route.id]===void 0);if(t.route.lazy||o){n.isStatic&&(c=!0),a=l>=0?a.slice(0,l+1):[a[0]];break}}}}let u=n?.onError,d=i&&u?(e,t)=>{u(e,{location:i.location,params:i.matches?.[0]?.params??{},pattern:be(i.matches),errorInfo:t})}:void 0;return a.reduceRight((e,n,s)=>{let u,f=!1,p=null,m=null;i&&(u=o&&n.route.id?o[n.route.id]:void 0,p=n.route.errorElement||Ue,c&&(l<0&&s===0?(nt(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,m=null):l===s&&(f=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,s+1)),g=()=>{let t;return t=u?p:f?m:n.route.Component?r.createElement(n.route.Component,null):n.route.element?n.route.element:e,r.createElement(Ke,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:i!=null},children:t})};return i&&(n.route.ErrorBoundary||n.route.errorElement||s===0)?r.createElement(We,{location:i.location,revalidation:i.revalidation,component:p,error:u,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:d}):g()},null)}function U(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Je(e){let t=r.useContext(M);return s(t,U(e)),t}function W(e){let t=r.useContext(N);return s(t,U(e)),t}function Ye(e){let t=r.useContext(I);return s(t,U(e)),t}function G(e){let t=Ye(e),n=t.matches[t.matches.length-1];return s(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Xe(){return G(`useRouteId`)}function Ze(){let e=W(`useNavigation`);return r.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function Qe(){let{matches:e,loaderData:t}=W(`useMatches`);return r.useMemo(()=>e.map(e=>v(e,t)),[e,t])}function $e(){let e=r.useContext(L),t=W(`useRouteError`),n=G(`useRouteError`);return e===void 0?t.errors?.[n]:e}function et(){let{router:e}=Je(`useNavigate`),t=G(`useNavigate`),n=r.useRef(!1);return Le(()=>{n.current=!0}),r.useCallback(async(r,i={})=>{c(n.current,Ie),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var tt={};function nt(e,t,n){!t&&!tt[e]&&(tt[e]=!0,c(!1,n))}r.memo(rt);function rt({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Ve(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function it({to:e,replace:t,state:n,relative:i}){s(R(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:a}=r.useContext(P);c(!a,`<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:o}=r.useContext(I),{pathname:l}=z(),u=B(),d=k(e,pe(o),l,i===`path`),f=JSON.stringify(d);return r.useEffect(()=>{u(JSON.parse(f),{replace:t,state:n,relative:i})},[u,f,i,t,n]),null}function at(e){s(!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 ot({basename:e=`/`,children:t=null,location:n,navigationType:i=`POP`,navigator:a,static:o=!1,useTransitions:l}){s(!R(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let u=e.replace(/^\/*/,`/`),d=r.useMemo(()=>({basename:u,navigator:a,static:o,useTransitions:l,future:{}}),[u,a,o,l]);typeof n==`string`&&(n=p(n));let{pathname:f=`/`,search:m=``,hash:h=``,state:g=null,key:_=`default`,mask:v}=n,y=r.useMemo(()=>{let e=O(f,u);return e==null?null:{location:{pathname:e,search:m,hash:h,state:g,key:_,mask:v},navigationType:i}},[u,f,m,h,g,_,i,v]);return c(y!=null,`<Router basename="${u}"> is not able to match the URL "${f}${m}${h}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:r.createElement(P.Provider,{value:d},r.createElement(F.Provider,{children:t,value:y}))}function st({children:e,location:t}){return Be(ct(e),t)}r.Component;function ct(e,t=[]){let n=[];return r.Children.forEach(e,(e,i)=>{if(!r.isValidElement(e))return;let a=[...t,i];if(e.type===r.Fragment){n.push.apply(n,ct(e.props.children,a));return}s(e.type===at,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),s(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let o={id:e.props.id||a.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=ct(e.props.children,a)),n.push(o)}),n}var K=`get`,q=`application/x-www-form-urlencoded`;function J(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function lt(e){return J(e)&&e.tagName.toLowerCase()===`button`}function ut(e){return J(e)&&e.tagName.toLowerCase()===`form`}function dt(e){return J(e)&&e.tagName.toLowerCase()===`input`}function ft(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pt(e,t){return e.button===0&&(!t||t===`_self`)&&!ft(e)}function mt(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function ht(e,t){let n=mt(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Y=null;function gt(){if(Y===null)try{new FormData(document.createElement(`form`),0),Y=!1}catch{Y=!0}return Y}var _t=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function vt(e){return e!=null&&!_t.has(e)?(c(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${q}"`),null):e}function yt(e,t){let n,r,i,a,o;if(ut(e)){let o=e.getAttribute(`action`);r=o?O(o,t):null,n=e.getAttribute(`method`)||K,i=vt(e.getAttribute(`enctype`))||q,a=new FormData(e)}else if(lt(e)||dt(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?O(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||K,i=vt(e.getAttribute(`formenctype`))||vt(o.getAttribute(`enctype`))||q,a=new FormData(o,e),!gt()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(J(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=K,r=null,i=q,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var bt={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},xt=/[&><\u2028\u2029]/g;function St(e){return e.replace(xt,e=>bt[e])}function Ct(e,t){if(e===!1||e==null)throw Error(t)}function wt(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&O(i.pathname,t)===`/`?i.pathname=`${j(t)}/_root.${r}`:i.pathname=`${j(i.pathname)}.${r}`,i}async function Tt(e,t){if(e.id in t)return t[e.id];try{let r=await n(()=>import(e.module),[]);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Et(e){return e!=null&&typeof e.page==`string`}function Dt(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 Ot(e,t,n){return Nt((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Tt(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Dt).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function kt(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function At(e,t,{includeHydrateFallback:n}={}){return jt(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function jt(e){return[...new Set(e)]}function Mt(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Nt(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Et(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Mt(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Pt(){let e=r.useContext(M);return Ct(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Ft(){let e=r.useContext(N);return Ct(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var X=r.createContext(void 0);X.displayName=`FrameworkContext`;function It(){let e=r.useContext(X);return Ct(e,`You must render this element inside a <HydratedRouter> element`),e}function Lt(e,t){let n=r.useContext(X),[i,a]=r.useState(!1),[o,s]=r.useState(!1),{onFocus:c,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=r.useRef(null);r.useEffect(()=>{if(e===`render`&&s(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),r.useEffect(()=>{if(i){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[i]);let m=()=>{a(!0)},h=()=>{a(!1),s(!1)};return n?e===`intent`?[o,p,{onFocus:Z(c,m),onBlur:Z(l,h),onMouseEnter:Z(u,m),onMouseLeave:Z(d,h),onTouchStart:Z(f,m)}]:[o,p,{}]:[!1,p,{}]}function Z(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Rt({page:e,...t}){let n=Ee(),{router:i}=Pt(),a=r.useMemo(()=>g(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?n?r.createElement(Bt,{page:e,matches:a,...t}):r.createElement(Vt,{page:e,matches:a,...t}):null}function zt(e){let{manifest:t,routeModules:n}=It(),[i,a]=r.useState([]);return r.useEffect(()=>{let r=!1;return Ot(e,t,n).then(e=>{r||a(e)}),()=>{r=!0}},[e,t,n]),i}function Bt({page:e,matches:t,...n}){let i=z(),{future:a}=It(),{basename:o}=Pt(),s=r.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let n=wt(e,o,a.v8_trailingSlashAwareDataRequests,`rsc`),r=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?r=!0:s.push(e.route.id);return r&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[o,a.v8_trailingSlashAwareDataRequests,e,i,t]);return r.createElement(r.Fragment,null,s.map(e=>r.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Vt({page:e,matches:t,...n}){let i=z(),{future:a,manifest:o,routeModules:s}=It(),{basename:c}=Pt(),{loaderData:l,matches:u}=Ft(),d=r.useMemo(()=>kt(e,t,u,o,i,`data`),[e,t,u,o,i]),f=r.useMemo(()=>kt(e,t,u,o,i,`assets`),[e,t,u,o,i]),p=r.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let n=new Set,r=!1;if(t.forEach(e=>{let t=o.routes[e.route.id];!t||!t.hasLoader||(!d.some(t=>t.route.id===e.route.id)&&e.route.id in l&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?r=!0:n.add(e.route.id))}),n.size===0)return[];let u=wt(e,c,a.v8_trailingSlashAwareDataRequests,`data`);return r&&n.size>0&&u.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[u.pathname+u.search]},[c,a.v8_trailingSlashAwareDataRequests,l,i,o,d,t,e,s]),m=r.useMemo(()=>At(f,o),[f,o]),h=zt(f);return r.createElement(r.Fragment,null,p.map(e=>r.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),m.map(e=>r.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),h.map(({key:e,link:t})=>r.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Ht(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}r.Component;var Ut=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Ut&&(window.__reactRouterVersion=`7.17.0`)}catch{}function Wt({basename:e,children:t,useTransitions:n,window:i}){let a=r.useRef();a.current??=o({window:i,v5Compat:!0});let s=a.current,[c,l]=r.useState({action:s.action,location:s.location}),u=r.useCallback(e=>{n===!1?l(e):r.startTransition(()=>l(e))},[n]);return r.useLayoutEffect(()=>s.listen(u),[s,u]),r.createElement(ot,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:s,useTransitions:n})}function Gt({basename:e,children:t,history:n,useTransitions:i}){let[a,o]=r.useState({action:n.action,location:n.location}),s=r.useCallback(e=>{i===!1?o(e):r.startTransition(()=>o(e))},[i]);return r.useLayoutEffect(()=>n.listen(s),[n,s]),r.createElement(ot,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:n,useTransitions:i})}Gt.displayName=`unstable_HistoryRouter`;var Kt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qt=r.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:i,reloadDocument:a,replace:o,mask:s,state:c,target:l,to:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h){let{basename:g,navigator:_,useTransitions:v}=r.useContext(P),y=typeof u==`string`&&Kt.test(u),b=Se(u,g);u=b.to;let x=Fe(u,{relative:i}),S=z(),C=null;if(s){let e=k(s,[],S.mask?S.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:A([g,e.pathname])),C=_.createHref(e)}let[ee,w,T]=Lt(n,m),te=$t(u,{replace:o,mask:s,state:c,target:l,preventScrollReset:d,relative:i,viewTransition:f,defaultShouldRevalidate:p,useTransitions:v});function ne(t){e&&e(t),t.defaultPrevented||te(t)}let E=!(b.isExternal||a),re=r.createElement(`a`,{...m,...T,href:(E?C:void 0)||b.absoluteURL||x,onClick:E?ne:e,ref:Ht(h,w),target:l,"data-discover":!y&&t===`render`?`true`:void 0});return ee&&!y?r.createElement(r.Fragment,null,re,r.createElement(Rt,{page:x})):re});qt.displayName=`Link`;var Jt=r.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:i=!1,style:a,to:o,viewTransition:s,children:c,...l},u){let d=V(o,{relative:l.relative}),f=z(),p=r.useContext(N),{navigator:m,basename:h}=r.useContext(P),g=p!=null&&un(d)&&s===!0,_=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,v=f.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=O(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!i&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!i&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},ee=x?e:void 0,w;w=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let T=typeof a==`function`?a(C):a;return r.createElement(qt,{...l,"aria-current":ee,className:w,ref:u,style:T,to:o,viewTransition:s},typeof c==`function`?c(C):c)});Jt.displayName=`NavLink`;var Yt=r.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:i,replace:a,state:o,method:s=K,action:c,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h)=>{let{useTransitions:g}=r.useContext(P),_=rn(),v=an(c,{relative:u}),y=s.toLowerCase()===`get`?`get`:`post`,b=typeof c==`string`&&Kt.test(c);return r.createElement(`form`,{ref:h,method:y,action:v,onSubmit:i?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let i=e.nativeEvent.submitter,c=i?.getAttribute(`formmethod`)||s,m=()=>_(i||e.currentTarget,{fetcherKey:t,method:c,navigate:n,replace:a,state:o,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p});g&&n!==!1?r.startTransition(()=>m()):m()},...m,"data-discover":!b&&e===`render`?`true`:void 0})});Yt.displayName=`Form`;function Xt({getKey:e,storageKey:t,...n}){let i=r.useContext(X),{basename:a}=r.useContext(P),o=z(),s=Qe();cn({getKey:e,storageKey:t});let c=r.useMemo(()=>{if(!i||!e)return null;let t=sn(o,s,a,e);return t===o.key?null:t},[]);if(!i||i.isSpaMode)return null;let l=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return r.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${St(JSON.stringify(t||on))}, ${St(JSON.stringify(c))})`}})}Xt.displayName=`ScrollRestoration`;function Zt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Q(e){let t=r.useContext(M);return s(t,Zt(e)),t}function Qt(e){let t=r.useContext(N);return s(t,Zt(e)),t}function $t(e,{target:t,replace:n,mask:i,state:a,preventScrollReset:o,relative:s,viewTransition:c,defaultShouldRevalidate:l,useTransitions:u}={}){let d=B(),p=z(),m=V(e,{relative:s});return r.useCallback(h=>{if(pt(h,t)){h.preventDefault();let t=n===void 0?f(p)===f(m):n,g=()=>d(e,{replace:t,mask:i,state:a,preventScrollReset:o,relative:s,viewTransition:c,defaultShouldRevalidate:l});u?r.startTransition(()=>g()):g()}},[p,d,m,n,i,a,t,e,o,s,c,l,u])}function en(e){c(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=r.useRef(mt(e)),n=r.useRef(!1),i=z(),a=r.useMemo(()=>ht(i.search,n.current?null:t.current),[i.search]),o=B();return[a,r.useCallback((e,t)=>{let r=mt(typeof e==`function`?e(new URLSearchParams(a)):e);n.current=!0,o(`?`+r,t)},[o,a])]}var tn=0,nn=()=>`__${String(++tn)}__`;function rn(){let{router:e}=Q(`useSubmit`),{basename:t}=r.useContext(P),n=Xe(),i=e.fetch,a=e.navigate;return r.useCallback(async(e,r={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=yt(e,t);r.navigate===!1?await i(r.fetcherKey||nn(),n,r.action||o,{defaultShouldRevalidate:r.defaultShouldRevalidate,preventScrollReset:r.preventScrollReset,formData:l,body:u,formMethod:r.method||s,formEncType:r.encType||c,flushSync:r.flushSync}):await a(r.action||o,{defaultShouldRevalidate:r.defaultShouldRevalidate,preventScrollReset:r.preventScrollReset,formData:l,body:u,formMethod:r.method||s,formEncType:r.encType||c,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[i,a,t,n])}function an(e,{relative:t}={}){let{basename:n}=r.useContext(P),i=r.useContext(I);s(i,`useFormAction must be used inside a RouteContext`);let[a]=i.matches.slice(-1),o={...V(e||`.`,{relative:t})},c=z();if(e==null){o.search=c.search;let e=new URLSearchParams(o.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();o.search=n?`?${n}`:``}}return(!e||e===`.`)&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(o.pathname=o.pathname===`/`?n:A([n,o.pathname])),f(o)}var on=`react-router-scroll-positions`,$={};function sn(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:O(e.pathname,n)||e.pathname},t)),i??=e.key,i}function cn({getKey:e,storageKey:t}={}){let{router:n}=Q(`useScrollRestoration`),{restoreScrollPosition:i,preventScrollReset:a}=Qt(`useScrollRestoration`),{basename:o}=r.useContext(P),s=z(),l=Qe(),u=Ze();r.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),ln(r.useCallback(()=>{if(u.state===`idle`){let t=sn(s,l,o,e);$[t]=window.scrollY}try{sessionStorage.setItem(t||on,JSON.stringify($))}catch(e){c(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[u.state,e,o,s,l,t])),typeof document<`u`&&(r.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||on);e&&($=JSON.parse(e))}catch{}},[t]),r.useLayoutEffect(()=>{let t=n?.enableScrollRestoration($,()=>window.scrollY,e?(t,n)=>sn(t,n,o,e):void 0);return()=>t&&t()},[n,o,e]),r.useLayoutEffect(()=>{if(i!==!1){if(typeof i==`number`){window.scrollTo(0,i);return}try{if(s.hash){let e=document.getElementById(decodeURIComponent(s.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{c(!1,`"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}a!==!0&&window.scrollTo(0,0)}},[s,i,a]))}function ln(e,t){let{capture:n}=t||{};r.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function un(e,{relative:t}={}){let n=r.useContext(De);s(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Q(`useViewTransitionState`),a=V(e,{relative:t});if(!n.isTransitioning)return!1;let o=O(n.currentLocation.pathname,i)||n.currentLocation.pathname,c=O(n.nextLocation.pathname,i)||n.nextLocation.pathname;return D(a.pathname,c)!=null||D(a.pathname,o)!=null}export{at as a,B as c,it as i,ze as l,qt as n,st as o,Jt as r,z as s,Wt as t,en as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e,t,n,r,i,a){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=i,this.prev=a}function t(t,n,r,i){var a=t.indented;return t.context&&t.context.type==`statement`&&r!=`statement`&&(a=t.context.indented),t.context=new e(a,n,r,i,null,t.context)}function n(e){var t=e.context.type;return(t==`)`||t==`]`||t==`}`)&&(e.indented=e.context.indented),e.context=e.context.prev}function r(e,t,n){if(t.prevToken==`variable`||t.prevToken==`type`||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||t.typeAtEndOfLine&&e.column()==e.indentation())return!0}function i(e){for(;;){if(!e||e.type==`top`)return!0;if(e.type==`}`&&e.prev.info!=`namespace`)return!1;e=e.prev}}function a(a){var o=a.statementIndentUnit,c=a.dontAlignCalls,l=a.keywords||{},u=a.types||{},d=a.builtin||{},f=a.blockKeywords||{},p=a.defKeywords||{},m=a.atoms||{},h=a.hooks||{},g=a.multiLineStrings,_=a.indentStatements!==!1,v=a.indentSwitch!==!1,y=a.namespaceSeparator,b=a.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,x=a.numberStart||/[\d\.]/,S=a.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,C=a.isOperatorChar||/[+\-*&%=<>!?|\/]/,w=a.isIdentifierChar||/[\w\$_\xa1-\uffff]/,T=a.isReservedIdentifier||!1,E,D;function O(e,t){var n=e.next();if(h[n]){var r=h[n](e,t);if(r!==!1)return r}if(n==`"`||n==`'`)return t.tokenize=k(n),t.tokenize(e,t);if(x.test(n)){if(e.backUp(1),e.match(S))return`number`;e.next()}if(b.test(n))return E=n,null;if(n==`/`){if(e.eat(`*`))return t.tokenize=A,A(e,t);if(e.eat(`/`))return e.skipToEnd(),`comment`}if(C.test(n)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(C););return`operator`}if(e.eatWhile(w),y)for(;e.match(y);)e.eatWhile(w);var i=e.current();return s(l,i)?(s(f,i)&&(E=`newstatement`),s(p,i)&&(D=!0),`keyword`):s(u,i)?`type`:s(d,i)||T&&T(i)?(s(f,i)&&(E=`newstatement`),`builtin`):s(m,i)?`atom`:`variable`}function k(e){return function(t,n){for(var r=!1,i,a=!1;(i=t.next())!=null;){if(i==e&&!r){a=!0;break}r=!r&&i==`\\`}return(a||!(r||g))&&(n.tokenize=null),`string`}}function A(e,t){for(var n=!1,r;r=e.next();){if(r==`/`&&n){t.tokenize=null;break}n=r==`*`}return`comment`}function j(e,t){a.typeFirstDefinitions&&e.eol()&&i(t.context)&&(t.typeAtEndOfLine=r(e,t,e.pos))}return{name:a.name,startState:function(t){return{tokenize:null,context:new e(-t,0,`top`,null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,o){var s=o.context;if(e.sol()&&(s.align??=!1,o.indented=e.indentation(),o.startOfLine=!0),e.eatSpace())return j(e,o),null;E=D=null;var c=(o.tokenize||O)(e,o);if(c==`comment`||c==`meta`)return c;if(s.align??=!0,E==`;`||E==`:`||E==`,`&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;o.context.type==`statement`;)n(o);else if(E==`{`)t(o,e.column(),`}`);else if(E==`[`)t(o,e.column(),`]`);else if(E==`(`)t(o,e.column(),`)`);else if(E==`}`){for(;s.type==`statement`;)s=n(o);for(s.type==`}`&&(s=n(o));s.type==`statement`;)s=n(o)}else E==s.type?n(o):_&&((s.type==`}`||s.type==`top`)&&E!=`;`||s.type==`statement`&&E==`newstatement`)&&t(o,e.column(),`statement`,e.current());if(c==`variable`&&(o.prevToken==`def`||a.typeFirstDefinitions&&r(e,o,e.start)&&i(o.context)&&e.match(/^\s*\(/,!1))&&(c=`def`),h.token){var l=h.token(e,o,c);l!==void 0&&(c=l)}return c==`def`&&a.styleDefs===!1&&(c=`variable`),o.startOfLine=!1,o.prevToken=D?`def`:c||E,j(e,o),c},indent:function(e,t,n){if(e.tokenize!=O&&e.tokenize!=null||e.typeAtEndOfLine&&i(e.context))return null;var r=e.context,s=t&&t.charAt(0),l=s==r.type;if(r.type==`statement`&&s==`}`&&(r=r.prev),a.dontIndentStatements)for(;r.type==`statement`&&a.dontIndentStatements.test(r.info);)r=r.prev;if(h.indent){var u=h.indent(e,r,t,n.unit);if(typeof u==`number`)return u}var d=r.prev&&r.prev.info==`switch`;if(a.allmanIndentation&&/[{(]/.test(s)){for(;r.type!=`top`&&r.type!=`}`;)r=r.prev;return r.indented}return r.type==`statement`?r.indented+(s==`{`?0:o||n.unit):r.align&&(!c||r.type!=`)`)?r.column+ +!l:r.type==`)`&&!l?r.indented+(o||n.unit):r.indented+(l?0:n.unit)+(!l&&d&&!/^(?:case|default)\b/.test(t)?n.unit:0)},languageData:{indentOnInput:v?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,commentTokens:{line:`//`,block:{open:`/*`,close:`*/`}},autocomplete:Object.keys(l).concat(Object.keys(u)).concat(Object.keys(d)).concat(Object.keys(m)),...a.languageData}}}function o(e){for(var t={},n=e.split(` `),r=0;r<n.length;++r)t[n[r]]=!0;return t}function s(e,t){return typeof e==`function`?e(t):e.propertyIsEnumerable(t)}var c=`auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran`,l=`alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq`,u=`bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available`,d=`FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT`,f=o(`int long char short double float unsigned signed void bool`),p=o(`SEL instancetype id Class Protocol BOOL`);function m(e){return s(f,e)||/.+_t$/.test(e)}function h(e){return m(e)||s(p,e)}var g=`case do else for if switch while struct enum union`,_=`struct enum union`;function v(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if(n==`\\`&&e.match(/^.$/)){r=v;break}else if(n==`/`&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,`meta`}function y(e,t){return t.prevToken==`type`?`type`:!1}function b(e){return!e||e.length<2||e[0]!=`_`?!1:e[1]==`_`||e[1]!==e[1].toLowerCase()}function x(e){return e.eatWhile(/[\w\.']/),`number`}function S(e,t){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var n=e.match(/^"([^\s\\()]{0,16})\(/);return n?(t.cpp11RawStringDelim=n[1],t.tokenize=T,T(e,t)):!1}return e.match(/^(?:u8|u|U|L)/)?e.match(/^["']/,!1)?`string`:!1:(e.next(),!1)}function C(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function w(e,t){for(var n;(n=e.next())!=null;)if(n==`"`&&!e.eat(`"`)){t.tokenize=null;break}return`string`}function T(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,`\\$&`);return e.match(RegExp(`.*?\\)`+n+`"`))?t.tokenize=null:e.skipToEnd(),`string`}a({name:`c`,keywords:o(c),types:m,blockKeywords:o(g),defKeywords:o(_),typeFirstDefinitions:!0,atoms:o(`NULL true false`),isReservedIdentifier:b,hooks:{"#":v,"*":y}}),a({name:`cpp`,keywords:o(c+` `+l),types:m,blockKeywords:o(g+` class try catch`),defKeywords:o(_+` class namespace`),typeFirstDefinitions:!0,atoms:o(`true false NULL nullptr`),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:b,hooks:{"#":v,"*":y,u:S,U:S,L:S,R:S,0:x,1:x,2:x,3:x,4:x,5:x,6:x,7:x,8:x,9:x,token:function(e,t,n){if(n==`variable`&&e.peek()==`(`&&(t.prevToken==`;`||t.prevToken==null||t.prevToken==`}`)&&C(e.current()))return`def`}},namespaceSeparator:`::`}),a({name:`java`,keywords:o(`abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface`),types:o(`var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void`),blockKeywords:o(`catch class do else finally for if switch try while`),defKeywords:o(`class interface enum @interface`),typeFirstDefinitions:!0,atoms:o(`true false null`),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return e.match(`interface`,!1)?!1:(e.eatWhile(/[\w\$_]/),`meta`)},'"':function(e,t){return e.match(/""$/)?(t.tokenize=D,t.tokenize(e,t)):!1}}});var E=a({name:`csharp`,keywords:o(`abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield`),types:o(`Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong`),blockKeywords:o(`catch class do else finally for foreach if struct switch try while`),defKeywords:o(`class interface namespace record struct var`),typeFirstDefinitions:!0,atoms:o(`true false null`),hooks:{"@":function(e,t){return e.eat(`"`)?(t.tokenize=w,w(e,t)):(e.eatWhile(/[\w\$_]/),`meta`)}}});function D(e,t){for(var n=!1;!e.eol();){if(!n&&e.match(`"""`)){t.tokenize=null;break}n=e.next()==`\\`&&!n}return`string`}function O(e){return function(t,n){for(var r;r=t.next();)if(r==`*`&&t.eat(`/`))if(e==1){n.tokenize=null;break}else return n.tokenize=O(e-1),n.tokenize(t,n);else if(r==`/`&&t.eat(`*`))return n.tokenize=O(e+1),n.tokenize(t,n);return`comment`}}var k=a({name:`scala`,keywords:o(`abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble`),types:o(`AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void`),multiLineStrings:!0,blockKeywords:o(`catch class enum do else finally for forSome if match switch try while`),defKeywords:o(`class enum def object package trait type val var`),atoms:o(`true false null`),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),`meta`},'"':function(e,t){return e.match(`""`)?(t.tokenize=D,t.tokenize(e,t)):!1},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?`character`:(e.eatWhile(/[\w\$_\xa1-\uffff]/),`atom`)},"=":function(t,n){var r=n.context;return r.type==`}`&&r.align&&t.eat(`>`)?(n.context=new e(r.indented,r.column,r.type,r.info,null,r.prev),`operator`):!1},"/":function(e,t){return e.eat(`*`)?(t.tokenize=O(1),t.tokenize(e,t)):!1}},languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,`"""`]}}});function A(e){return function(t,n){for(var r=!1,i,a=!1;!t.eol();){if(!e&&!r&&t.match(`"`)){a=!0;break}if(e&&t.match(`"""`)){a=!0;break}i=t.next(),!r&&i==`$`&&t.match(`{`)&&t.skipTo(`}`),r=!r&&i==`\\`&&!e}return(a||!e)&&(n.tokenize=null),`string`}}var j=a({name:`kotlin`,keywords:o(`package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam`),types:o(`Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit`),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(ul?|l|f)?/i,blockKeywords:o(`catch class do else finally for if where try while enum`),defKeywords:o(`class val var object interface fun`),atoms:o(`true false null this`),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),`meta`},"*":function(e,t){return t.prevToken==`.`?`variable`:`operator`},'"':function(e,t){return t.tokenize=A(e.match(`""`)),t.tokenize(e,t)},"/":function(e,t){return e.eat(`*`)?(t.tokenize=O(1),t.tokenize(e,t)):!1},indent:function(e,t,n,r){var i=n&&n.charAt(0);if((e.prevToken==`}`||e.prevToken==`)`)&&n==``)return e.indented;if(e.prevToken==`operator`&&n!=`}`&&e.context.type!=`}`||e.prevToken==`variable`&&i==`.`||(e.prevToken==`}`||e.prevToken==`)`)&&i==`.`)return r*2+t.indented;if(t.align&&t.type==`}`)return t.indented+(e.context.type==(n||``).charAt(0)?0:r)}},languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,`"""`]}}});a({name:`shader`,keywords:o(`sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout`),types:o(`float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4`),blockKeywords:o(`for while do if else struct`),builtin:o(`radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4`),atoms:o(`true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers`),indentSwitch:!1,hooks:{"#":v}}),a({name:`nesc`,keywords:o(c+` as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends`),types:m,blockKeywords:o(g),atoms:o(`null true false`),hooks:{"#":v}});var M=a({name:`objectivec`,keywords:o(c+` `+u),types:h,builtin:o(d),blockKeywords:o(g+` @synthesize @try @catch @finally @autoreleasepool @synchronized`),defKeywords:o(_+` @interface @implementation @protocol @class`),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:o(`YES NO NULL Nil nil true false nullptr`),isReservedIdentifier:b,hooks:{"#":v,"*":y}}),N=a({name:`objectivecpp`,keywords:o(c+` `+u+` `+l),types:h,builtin:o(d),blockKeywords:o(g+` @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch`),defKeywords:o(_+` @interface @implementation @protocol @class class namespace`),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:o(`YES NO NULL Nil nil true false nullptr`),isReservedIdentifier:b,hooks:{"#":v,"*":y,u:S,U:S,L:S,R:S,0:x,1:x,2:x,3:x,4:x,5:x,6:x,7:x,8:x,9:x,token:function(e,t,n){if(n==`variable`&&e.peek()==`(`&&(t.prevToken==`;`||t.prevToken==null||t.prevToken==`}`)&&C(e.current()))return`def`}},namespaceSeparator:`::`}),P=a({name:`squirrel`,keywords:o(`base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static`),types:m,blockKeywords:o(`case catch class else for foreach if switch try while`),defKeywords:o(`function local class`),typeFirstDefinitions:!0,atoms:o(`true false null`),hooks:{"#":v}}),F=null;function I(e){return function(t,n){for(var r=!1,i,a=!1;!t.eol();){if(!r&&t.match(`"`)&&(e==`single`||t.match(`""`))){a=!0;break}if(!r&&t.match("``")){F=I(e),a=!0;break}i=t.next(),r=e==`single`&&!r&&i==`\\`}return a&&(n.tokenize=null),`string`}}a({name:`ceylon`,keywords:o(`abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while`),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:o(`case catch class dynamic else finally for function if interface module new object switch try while`),defKeywords:o(`class dynamic function interface module object package value`),builtin:o(`abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable`),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:o(`true false null larger smaller equal empty finished`),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),`meta`},'"':function(e,t){return t.tokenize=I(e.match(`""`)?`triple`:`single`),t.tokenize(e,t)},"`":function(e,t){return!F||!e.match("`")?!1:(t.tokenize=F,F=null,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?`string.special`:(e.eatWhile(/[\w\$_\xa1-\uffff]/),`atom`)},token:function(e,t,n){if((n==`variable`||n==`type`)&&t.prevToken==`.`)return`variableName.special`}},languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,`"""`]}}});function L(e){(e.interpolationStack||=[]).push(e.tokenize)}function R(e){return(e.interpolationStack||=[]).pop()}function z(e){return e.interpolationStack?e.interpolationStack.length:0}function B(e,t,n,r){var i=!1;if(t.eat(e))if(t.eat(e))i=!0;else return`string`;function a(t,n){for(var a=!1;!t.eol();){if(!r&&!a&&t.peek()==`$`)return L(n),n.tokenize=V,`string`;var o=t.next();if(o==e&&!a&&(!i||t.match(e+e))){n.tokenize=null;break}a=!r&&!a&&o==`\\`}return`string`}return n.tokenize=a,a(t,n)}function V(e,t){return e.eat(`$`),e.eat(`{`)?t.tokenize=null:t.tokenize=H,null}function H(e,t){return e.eatWhile(/[\w_]/),t.tokenize=R(t),`variable`}var U=a({name:`dart`,keywords:o(`this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline`),blockKeywords:o(`try catch finally do else for if switch while`),builtin:o(`void bool num int double dynamic var String Null Never`),atoms:o(`true false null`),number:/^(?:0x[a-f\d_]+|(?:[\d_]+\.?[\d_]*|\.[\d_]+)(?:e[-+]?[\d_]+)?)/i,hooks:{"@":function(e){return e.eatWhile(/[\w\$_\.]/),`meta`},"'":function(e,t){return B(`'`,e,t,!1)},'"':function(e,t){return B(`"`,e,t,!1)},r:function(e,t){var n=e.peek();return n==`'`||n==`"`?B(e.next(),e,t,!0):!1},"}":function(e,t){return z(t)>0?(t.tokenize=R(t),null):!1},"/":function(e,t){return e.eat(`*`)?(t.tokenize=O(1),t.tokenize(e,t)):!1},token:function(e,t,n){if(n==`variable`&&RegExp(`^[_$]*[A-Z][a-zA-Z0-9_$]*$`,`g`).test(e.current()))return`type`}}});export{E as csharp,U as dart,j as kotlin,M as objectiveC,N as objectiveCpp,k as scala,P as squirrel};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=`modulepreload`,t=function(e){return`/`+e},n={},r=function(r,i,a){let o=Promise.resolve();if(i&&i.length>0){let r=document.getElementsByTagName(`link`),s=document.querySelector(`meta[property=csp-nonce]`),c=s?.nonce||s?.getAttribute(`nonce`);function l(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}o=l(i.map(i=>{if(i=t(i,a),i in n)return;n[i]=!0;let o=i.endsWith(`.css`),s=o?`[rel="stylesheet"]`:``;if(a)for(let e=r.length-1;e>=0;e--){let t=r[e];if(t.href===i&&(!o||t.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;let l=document.createElement(`link`);if(l.rel=o?`stylesheet`:e,o||(l.as=`script`),l.crossOrigin=``,l.href=i,c&&l.setAttribute(`nonce`,c),document.head.appendChild(l),o)return new Promise((e,t)=>{l.addEventListener(`load`,e),l.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${i}`)))})}))}function s(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return o.then(e=>{for(let t of e||[])t.status===`rejected`&&s(t.reason);return r().catch(s)})};function i(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function a(){for(var e,t,n=0,r=``,a=arguments.length;n<a;n++)(e=arguments[n])&&(t=i(e))&&(r&&(r+=` `),r+=t);return r}export{r as n,a as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=`builtin`,t=`comment`,n=`string`,r=`atom`,i=`number`,a=`keyword`,o=`header`,s=`def`,c=`link`;function l(e){for(var t={},n=e.split(` `),r=0;r<n.length;++r)t[n[r]]=!0;return t}var u=l(`TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES `),d=l(`ACCEPT ACCESS ACQUIRE ADD ADDRESS ADVANCING AFTER ALIAS ALL ALPHABET ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER ALPHANUMERIC ALPHANUMERIC-EDITED ALSO ALTER ALTERNATE AND ANY ARE AREA AREAS ARITHMETIC ASCENDING ASSIGN AT ATTRIBUTE AUTHOR AUTO AUTO-SKIP AUTOMATIC B-AND B-EXOR B-LESS B-NOT B-OR BACKGROUND-COLOR BACKGROUND-COLOUR BEEP BEFORE BELL BINARY BIT BITS BLANK BLINK BLOCK BOOLEAN BOTTOM BY CALL CANCEL CD CF CH CHARACTER CHARACTERS CLASS CLOCK-UNITS CLOSE COBOL CODE CODE-SET COL COLLATING COLUMN COMMA COMMIT COMMITMENT COMMON COMMUNICATION COMP COMP-0 COMP-1 COMP-2 COMP-3 COMP-4 COMP-5 COMP-6 COMP-7 COMP-8 COMP-9 COMPUTATIONAL COMPUTATIONAL-0 COMPUTATIONAL-1 COMPUTATIONAL-2 COMPUTATIONAL-3 COMPUTATIONAL-4 COMPUTATIONAL-5 COMPUTATIONAL-6 COMPUTATIONAL-7 COMPUTATIONAL-8 COMPUTATIONAL-9 COMPUTE CONFIGURATION CONNECT CONSOLE CONTAINED CONTAINS CONTENT CONTINUE CONTROL CONTROL-AREA CONTROLS CONVERTING COPY CORR CORRESPONDING COUNT CRT CRT-UNDER CURRENCY CURRENT CURSOR DATA DATE DATE-COMPILED DATE-WRITTEN DAY DAY-OF-WEEK DB DB-ACCESS-CONTROL-KEY DB-DATA-NAME DB-EXCEPTION DB-FORMAT-NAME DB-RECORD-NAME DB-SET-NAME DB-STATUS DBCS DBCS-EDITED DE DEBUG-CONTENTS DEBUG-ITEM DEBUG-LINE DEBUG-NAME DEBUG-SUB-1 DEBUG-SUB-2 DEBUG-SUB-3 DEBUGGING DECIMAL-POINT DECLARATIVES DEFAULT DELETE DELIMITED DELIMITER DEPENDING DESCENDING DESCRIBED DESTINATION DETAIL DISABLE DISCONNECT DISPLAY DISPLAY-1 DISPLAY-2 DISPLAY-3 DISPLAY-4 DISPLAY-5 DISPLAY-6 DISPLAY-7 DISPLAY-8 DISPLAY-9 DIVIDE DIVISION DOWN DROP DUPLICATE DUPLICATES DYNAMIC EBCDIC EGI EJECT ELSE EMI EMPTY EMPTY-CHECK ENABLE END END. END-ACCEPT END-ACCEPT. END-ADD END-CALL END-COMPUTE END-DELETE END-DISPLAY END-DIVIDE END-EVALUATE END-IF END-INVOKE END-MULTIPLY END-OF-PAGE END-PERFORM END-READ END-RECEIVE END-RETURN END-REWRITE END-SEARCH END-START END-STRING END-SUBTRACT END-UNSTRING END-WRITE END-XML ENTER ENTRY ENVIRONMENT EOP EQUAL EQUALS ERASE ERROR ESI EVALUATE EVERY EXCEEDS EXCEPTION EXCLUSIVE EXIT EXTEND EXTERNAL EXTERNALLY-DESCRIBED-KEY FD FETCH FILE FILE-CONTROL FILE-STREAM FILES FILLER FINAL FIND FINISH FIRST FOOTING FOR FOREGROUND-COLOR FOREGROUND-COLOUR FORMAT FREE FROM FULL FUNCTION GENERATE GET GIVING GLOBAL GO GOBACK GREATER GROUP HEADING HIGH-VALUE HIGH-VALUES HIGHLIGHT I-O I-O-CONTROL ID IDENTIFICATION IF IN INDEX INDEX-1 INDEX-2 INDEX-3 INDEX-4 INDEX-5 INDEX-6 INDEX-7 INDEX-8 INDEX-9 INDEXED INDIC INDICATE INDICATOR INDICATORS INITIAL INITIALIZE INITIATE INPUT INPUT-OUTPUT INSPECT INSTALLATION INTO INVALID INVOKE IS JUST JUSTIFIED KANJI KEEP KEY LABEL LAST LD LEADING LEFT LEFT-JUSTIFY LENGTH LENGTH-CHECK LESS LIBRARY LIKE LIMIT LIMITS LINAGE LINAGE-COUNTER LINE LINE-COUNTER LINES LINKAGE LOCAL-STORAGE LOCALE LOCALLY LOCK MEMBER MEMORY MERGE MESSAGE METACLASS MODE MODIFIED MODIFY MODULES MOVE MULTIPLE MULTIPLY NATIONAL NATIVE NEGATIVE NEXT NO NO-ECHO NONE NOT NULL NULL-KEY-MAP NULL-MAP NULLS NUMBER NUMERIC NUMERIC-EDITED OBJECT OBJECT-COMPUTER OCCURS OF OFF OMITTED ON ONLY OPEN OPTIONAL OR ORDER ORGANIZATION OTHER OUTPUT OVERFLOW OWNER PACKED-DECIMAL PADDING PAGE PAGE-COUNTER PARSE PERFORM PF PH PIC PICTURE PLUS POINTER POSITION POSITIVE PREFIX PRESENT PRINTING PRIOR PROCEDURE PROCEDURE-POINTER PROCEDURES PROCEED PROCESS PROCESSING PROGRAM PROGRAM-ID PROMPT PROTECTED PURGE QUEUE QUOTE QUOTES RANDOM RD READ READY REALM RECEIVE RECONNECT RECORD RECORD-NAME RECORDS RECURSIVE REDEFINES REEL REFERENCE REFERENCE-MONITOR REFERENCES RELATION RELATIVE RELEASE REMAINDER REMOVAL RENAMES REPEATED REPLACE REPLACING REPORT REPORTING REPORTS REPOSITORY REQUIRED RERUN RESERVE RESET RETAINING RETRIEVAL RETURN RETURN-CODE RETURNING REVERSE-VIDEO REVERSED REWIND REWRITE RF RH RIGHT RIGHT-JUSTIFY ROLLBACK ROLLING ROUNDED RUN SAME SCREEN SD SEARCH SECTION SECURE SECURITY SEGMENT SEGMENT-LIMIT SELECT SEND SENTENCE SEPARATE SEQUENCE SEQUENTIAL SET SHARED SIGN SIZE SKIP1 SKIP2 SKIP3 SORT SORT-MERGE SORT-RETURN SOURCE SOURCE-COMPUTER SPACE-FILL SPECIAL-NAMES STANDARD STANDARD-1 STANDARD-2 START STARTING STATUS STOP STORE STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3 SUB-SCHEMA SUBFILE SUBSTITUTE SUBTRACT SUM SUPPRESS SYMBOLIC SYNC SYNCHRONIZED SYSIN SYSOUT TABLE TALLYING TAPE TENANT TERMINAL TERMINATE TEST TEXT THAN THEN THROUGH THRU TIME TIMES TITLE TO TOP TRAILING TRAILING-SIGN TRANSACTION TYPE TYPEDEF UNDERLINE UNEQUAL UNIT UNSTRING UNTIL UP UPDATE UPON USAGE USAGE-MODE USE USING VALID VALIDATE VALUE VALUES VARYING VLR WAIT WHEN WHEN-COMPILED WITH WITHIN WORDS WORKING-STORAGE WRITE XML XML-CODE XML-EVENT XML-NTEXT XML-TEXT ZERO ZERO-FILL `),f=l(`- * ** / + < <= = > >= `),p={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};function m(e,t){return e===`0`&&t.eat(/x/i)?(t.eatWhile(p.hex),!0):((e==`+`||e==`-`)&&p.digit.test(t.peek())&&(t.eat(p.sign),e=t.next()),p.digit.test(e)?(t.eat(e),t.eatWhile(p.digit),t.peek()==`.`&&(t.eat(`.`),t.eatWhile(p.digit)),t.eat(p.exponent)&&(t.eat(p.sign),t.eatWhile(p.digit)),!0):!1)}var h={name:`cobol`,startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(l,h){if(h.indentStack==null&&l.sol()&&(h.indentation=6),l.eatSpace())return null;var g=null;switch(h.mode){case`string`:for(var _=!1;(_=l.next())!=null;)if((_==`"`||_==`'`)&&!l.match(/['"]/,!1)){h.mode=!1;break}g=n;break;default:var v=l.next(),y=l.column();if(y>=0&&y<=5)g=s;else if(y>=72&&y<=79)l.skipToEnd(),g=o;else if(v==`*`&&y==6)l.skipToEnd(),g=t;else if(v==`"`||v==`'`)h.mode=`string`,g=n;else if(v==`'`&&!p.digit_or_colon.test(l.peek()))g=r;else if(v==`.`)g=c;else if(m(v,l))g=i;else{if(l.current().match(p.symbol))for(;y<71&&l.eat(p.symbol)!==void 0;)y++;g=d&&d.propertyIsEnumerable(l.current().toUpperCase())?a:f&&f.propertyIsEnumerable(l.current().toUpperCase())?e:u&&u.propertyIsEnumerable(l.current().toUpperCase())?r:null}}return g},indent:function(e){return e.indentStack==null?e.indentation:e.indentStack.indent}};export{h as cobol};
|