diff --git a/.gitea/workflows/release-offline.yml b/.gitea/workflows/release-offline.yml index 89c6f79a..02bf7897 100644 --- a/.gitea/workflows/release-offline.yml +++ b/.gitea/workflows/release-offline.yml @@ -56,34 +56,18 @@ jobs: run: | set -euo pipefail - toolchain_root="${MAIBOT_NODE_TOOLCHAIN_ROOT:-/srv/gitea-runner-maibot/toolchains/node}" - dist_bundle_root="${MAIBOT_PREBUILT_DASHBOARD_ROOT:-/srv/gitea-runner-maibot/prebuilt-dashboard}" - commit_sha="${APP_TAG:-$(git -C "$MAIBOT_WORKTREE" rev-parse --short=10 HEAD)}" - dist_bundle="${dist_bundle_root}/${commit_sha}.tar.gz" - - if [ -d "$toolchain_root/bin" ]; then - export PATH="$toolchain_root/bin:$PATH" - fi - cd "$MAIBOT_WORKTREE/dashboard" - if command -v npm >/dev/null 2>&1; then + if [ -f dist/index.html ]; then + echo "Using tracked dashboard/dist from repository" + elif command -v npm >/dev/null 2>&1; then npm_cache_dir="${MAIBOT_NPM_CACHE_DIR:-/srv/gitea-runner-maibot/npm-cache}" mkdir -p "$npm_cache_dir" npm ci --cache "$npm_cache_dir" npm run build - fi - - if [ ! -f dist/index.html ] && [ -f "$dist_bundle" ]; then - echo "Using prebuilt dashboard bundle: $dist_bundle" - rm -rf dist - mkdir -p dist - tar -xzf "$dist_bundle" -C "$MAIBOT_WORKTREE/dashboard" - fi - - if [ ! -f dist/index.html ]; then - echo "dashboard build output not found: $MAIBOT_WORKTREE/dashboard/dist/index.html" >&2 - echo "Provide a working offline npm toolchain or upload a prebuilt dashboard bundle to $dist_bundle." >&2 + else + echo "dashboard/dist is missing and npm is unavailable on the runner." >&2 + echo "For this offline workflow, commit dashboard/dist into the repository before releasing." >&2 exit 127 fi diff --git a/.gitignore b/.gitignore index 17201a56..4431f892 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,6 @@ config/*.bak* # Frontend local outputs dashboard/.vite/ dashboard/node_modules/ -dashboard/dist/ dashboard/dist-ssr/ # Local environment and editor files diff --git a/dashboard/dist/assets/BotInfoSection-D3nfOJyA.js b/dashboard/dist/assets/BotInfoSection-D3nfOJyA.js new file mode 100644 index 00000000..30f16d79 --- /dev/null +++ b/dashboard/dist/assets/BotInfoSection-D3nfOJyA.js @@ -0,0 +1,26 @@ +import{j as e,r as L,R as J}from"./router-zNjPR4CY.js";import{B as Pe}from"./badge-CDs67obV.js";import{u as De,ad as Ve,L as g,g as Me,a7 as ve,a8 as Ne,a9 as ye,aa as _e,I as q,C as ne,b as ie,d as ce,f as xe,ao as Ce,B as C,e as be,A as W,m as U,n as X,o as Y,q as Z,r as ee,s as se,t as te,v as re}from"./index-CuOHsLf7.js";import{S as V,a as M,b as H,c as z,d as A}from"./select-DGqIoF9r.js";import{T as G}from"./textarea-8PIujbf-.js";import{b2 as ue,W as He,w as E,a as ze,C as Re,v as I,ad as Ee,a0 as $e}from"./icons-DTcdLw9j.js";import{S as Ie}from"./separator-B_DSOSdz.js";import{K as Be}from"./key-value-editor-D1uUqXIn.js";import{S as Oe}from"./slider-mDhSC-zv.js";import{S as D}from"./switch-Kc2EZ0Ga.js";import{P as pe,a as he,b as je}from"./popover-DSuRLFDH.js";class Ge{hooks=new Map;register(s,r,n="replace"){this.hooks.set(s,{component:r,type:n})}get(s){return this.hooks.get(s)}has(s){return this.hooks.has(s)}unregister(s){this.hooks.delete(s)}clear(){this.hooks.clear()}getAllPaths(){return Array.from(this.hooks.keys())}}const Je=new Ge,we=({schema:t,value:s,onChange:r})=>{const{i18n:n}=De(),m=Ve(t,n.language),u=t.type==="integer"||t.type==="number",f=(c,w=0)=>{if(typeof c=="number"&&Number.isFinite(c))return c;if(typeof c=="string"){const y=parseFloat(c);if(Number.isFinite(y))return t.type==="integer"?Math.trunc(y):y}return w!==c?f(w,0):0},_=()=>{const c=t.items?.type??"string",w=Array.isArray(s)?s:Array.isArray(t.default)?t.default:[],y=w.map(T=>String(T??"")).join(` +`);return e.jsx(G,{value:y,onChange:T=>{const S=T.target.value.split(` +`).map(P=>P.trim()).filter(P=>P.length>0).map(P=>c==="integer"?parseInt(P,10)||0:c==="number"?parseFloat(P)||0:c==="boolean"?P==="true":P);r(S)},rows:Math.max(4,w.length||4)})},j=()=>{const c=s&&typeof s=="object"&&!Array.isArray(s)?s:{};return e.jsx(Be,{value:c,onChange:r})},N=()=>{if(!t["x-icon"])return null;const c=ue[t["x-icon"]];return c?e.jsx(c,{className:"h-4 w-4"}):null},h=t["x-option-descriptions"]??{},x=Object.keys(h).length>0,l=t["x-description-display"]??"label-hover",a=t.description,i=l==="inline"&&!x?a:"",d=(c,w="top")=>a?e.jsx(ve,{delayDuration:150,children:e.jsxs(Ne,{children:[e.jsx(ye,{asChild:!0,children:c}),e.jsx(_e,{side:w,align:"start",className:"max-w-80 whitespace-pre-line bg-background text-foreground border shadow-lg",children:a})]})}):c,p=()=>e.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",children:[(()=>{const c=e.jsxs(g,{className:Me("inline-flex min-w-0 items-center gap-1.5 text-[15px] leading-6",l==="label-hover"&&a&&"cursor-help",t.advanced?"text-sky-700 dark:text-sky-300":"text-foreground"),children:[N(),e.jsx("span",{className:"break-words",children:m}),t.required&&e.jsx("span",{className:"text-destructive",children:"*"})]});return l==="label-hover"?d(c):c})(),l==="icon"&&a&&d(e.jsx("button",{type:"button","aria-label":`${m} 说明`,className:"inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:e.jsx(He,{className:"h-4 w-4"})}),"right"),i&&e.jsx("span",{className:"text-[13px] leading-6 text-muted-foreground whitespace-pre-line",children:i})]}),$=()=>{const c=t["x-widget"],w=t.type,y=u&&(c==="input"||c==="number"||!c)?"number":c;if(y)switch(y){case"slider":return B();case"input":return v();case"number":return O();case"password":return v("password");case"switch":return R();case"textarea":return k();case"select":return o();case"custom":return w==="array"&&t.items&&t.items.type!=="object"?_():w==="object"?j():e.jsx("div",{className:"rounded-md border border-dashed border-muted-foreground/25 bg-muted/10 p-4 text-center text-sm text-muted-foreground",children:"Custom field requires Hook"})}switch(w){case"boolean":return R();case"number":case"integer":return O();case"string":return v();case"select":return o();case"array":return!t.items||t.items.type==="object"?e.jsx("div",{className:"rounded-md border border-dashed border-muted-foreground/25 bg-muted/10 p-4 text-center text-sm text-muted-foreground",children:"Complex array requires Hook"}):_();case"object":return j();case"textarea":return k();default:return e.jsxs("div",{className:"rounded-md border border-dashed border-muted-foreground/25 bg-muted/10 p-4 text-center text-sm text-muted-foreground",children:["Unknown field type: ",w]})}},R=()=>{const c=!!s;return e.jsxs("div",{className:"flex min-w-0 items-center justify-between gap-4 py-2",children:[e.jsx("div",{className:"min-w-0 pr-4",children:p()}),e.jsx(D,{checked:c,onCheckedChange:w=>r(w)})]})},B=()=>{const c=f(s,t.default),w=t.minValue??0,y=t.maxValue??100,T=t.step??1;return e.jsxs("div",{className:"min-w-0 space-y-2",children:[e.jsx(Oe,{value:[c],onValueChange:S=>r(S[0]),min:w,max:y,step:T}),e.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[e.jsx("span",{children:w}),e.jsx("span",{className:"font-medium text-foreground",children:c}),e.jsx("span",{children:y})]})]})},O=()=>{const c=f(s,t.default),w=t.minValue,y=t.maxValue,T=t.step??(t.type==="integer"?1:.1);return e.jsx(q,{type:"number",value:c,onChange:S=>{const P=t.type==="integer"?parseInt(S.target.value,10):parseFloat(S.target.value);r(Number.isFinite(P)?P:0)},min:w,max:y,step:T})},v=(c="text")=>{const w=typeof s=="string"?s:s==null?String(t.default??""):String(s);return e.jsx(q,{type:c,value:w,onChange:y=>r(y.target.value)})},k=()=>{const c=typeof s=="string"?s:t.default??"",w=typeof t["x-textarea-min-height"]=="number"?t["x-textarea-min-height"]:void 0,y=typeof t["x-textarea-rows"]=="number"?t["x-textarea-rows"]:4;return e.jsx(G,{value:c,onChange:T=>r(T.target.value),rows:y,minHeight:w})},o=()=>{const c=typeof s=="string"?s:t.default??"",w=t.options??[];return w.length===0?e.jsx("div",{className:"rounded-md border border-dashed border-muted-foreground/25 bg-muted/10 p-4 text-center text-sm text-muted-foreground",children:"No options available for select"}):e.jsxs(V,{value:c,onValueChange:y=>r(y),children:[e.jsx(M,{children:e.jsx(H,{placeholder:`Select ${m}`})}),e.jsx(z,{children:x?e.jsx(ve,{delayDuration:150,children:w.map(y=>{const T=h[y];return T?e.jsxs(Ne,{children:[e.jsx(ye,{asChild:!0,children:e.jsx(A,{value:y,title:T,children:y})}),e.jsx(_e,{side:"right",align:"center",className:"max-w-72 bg-background text-foreground border shadow-lg",children:T})]},y):e.jsx(A,{value:y,children:y},y)})}):w.map(y=>e.jsx(A,{value:y,children:y},y))})]})},b=t["x-widget"]==="switch"||!t["x-widget"]&&t.type==="boolean",F=t["x-layout"]==="inline-right"&&["input","number","password","select",void 0].includes(t["x-widget"])&&["string","number","integer","select"].includes(t.type);return b?$():F?e.jsxs("div",{className:"flex flex-col gap-2 py-2 sm:flex-row sm:items-center",style:{"--field-input-width":t["x-input-width"]??"12rem"},children:[e.jsx("div",{className:"min-w-0 sm:shrink-0",children:p()}),e.jsx("div",{className:"min-w-20 flex-1 sm:ml-auto sm:max-w-[var(--field-input-width)]",children:$()})]}):e.jsxs("div",{className:"min-w-0 space-y-2",children:[p(),$()]})};function ae(t,s){return t?`${t}.${s}`:s}function Qe(t){return t.uiLabel||t.classDoc||t.className}function Se({iconName:t}){if(!t)return null;const s=ue[t];return s?e.jsx(s,{className:"h-5 w-5 text-muted-foreground"}):null}function Ke({advancedVisible:t,basePath:s,hooks:r,level:n,nestedSchema:m,onChange:u,sectionKey:f,sectionTitle:_,values:j}){return e.jsxs(ne,{className:"min-w-0",children:[e.jsx(ie,{className:"border-b border-border/50 pb-4",children:e.jsx("div",{className:"flex items-start justify-between gap-4",children:e.jsx("div",{className:"space-y-1",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Se,{iconName:m.uiIcon}),e.jsx(ce,{className:"text-lg text-primary",children:_})]})})})}),e.jsx(xe,{className:"pt-4",children:e.jsx(K,{schema:m,values:j,onChange:(N,h)=>u(`${f}.${N}`,h),basePath:s,hooks:r,level:n,advancedVisible:t,sectionColumns:1})})]})}const K=({schema:t,values:s,onChange:r,basePath:n="",hooks:m=Je,level:u=0,advancedVisible:f,sectionColumns:_=1})=>{const j=f??!1,N=L.useMemo(()=>new Map(t.fields.map(v=>[v.name,v])),[t.fields]),h=v=>{const k=ae(n,v.name),o=t.nested?.[v.name];if(m.has(k)){const b=m.get(k);if(!b||b.type==="hidden")return null;const F=b.component;return b.type==="replace"?e.jsx(F,{fieldPath:k,value:s[v.name],onChange:c=>r(v.name,c),onParentChange:r,schema:v,nestedSchema:o,parentValues:s}):e.jsx(F,{fieldPath:k,value:s[v.name],onChange:c=>r(v.name,c),onParentChange:r,schema:v,nestedSchema:o,parentValues:s,children:e.jsx(we,{schema:v,value:s[v.name],onChange:c=>r(v.name,c),fieldPath:k})})}return e.jsx(we,{schema:v,value:s[v.name],onChange:b=>r(v.name,b),fieldPath:k})},x=v=>{const k=ae(n,v.name);return m.get(k)?.type==="hidden"?!1:t.nested?.[v.name]?m.get(k)?.type==="replace":!0},l=L.useCallback((v,k)=>{const o=v.fields??[];return o.some(F=>{const c=ae(k,F.name),w=m.get(c);return w?.type==="hidden"||v.nested?.[F.name]&&w?.type!=="replace"?!1:j||!F.advanced})?!0:Object.entries(v.nested??{}).some(([F,c])=>{const w=o.find(S=>S.name===F),y=ae(k,F),T=m.get(y);return T?.type==="hidden"||w?.advanced&&!j?!1:T?.type==="replace"?!0:l(c,y)})},[m,j]),a=t.fields.filter(x),i=new Set(a.filter(v=>!!t.nested?.[v.name]).map(v=>v.name)),d=a.filter(v=>!v.advanced),p=a.filter(v=>v.advanced),$=j?[...d,...p]:d,R=v=>{const k=[];let o=[],b;for(const F of v){const c=F["x-row"];if(c&&c===b){o.push(F);continue}o.length>0&&k.push(o),o=[F],b=c}return o.length>0&&k.push(o),k},B=v=>e.jsx(e.Fragment,{children:v.map(k=>k.length>1?e.jsx("div",{className:"grid min-w-0 gap-4 py-1 md:grid-cols-[repeat(var(--field-row-count),minmax(0,1fr))]",style:{"--field-row-count":k.length},children:k.map(o=>e.jsx("div",{className:"min-w-0",children:h(o)},o.name))},k.map(o=>o.name).join("|")):e.jsx("div",{className:"min-w-0 py-1",children:h(k[0])},k[0].name))}),O=v=>e.jsx(e.Fragment,{children:R(v).map((k,o)=>e.jsxs(L.Fragment,{children:[o>0&&e.jsx(Ie,{className:"my-2 bg-border/50"}),B([k])]},k.map(b=>b.name).join("|")))});return e.jsxs("div",{className:"min-w-0 space-y-6",children:[$.length>0&&e.jsx("div",{children:O($)}),t.nested&&(()=>{const k=Object.entries(t.nested).filter(([o])=>!i.has(o)).map(([o,b])=>{const F=N.get(o),c=ae(n,o);if(m.has(c)){const y=m.get(c);if(!y||y.type==="hidden"||F?.advanced&&!j||y.type!=="replace"&&b&&!l(b,c))return null;const T=y.component;return y.type==="replace"?e.jsx("div",{className:"min-w-0",children:e.jsx(T,{fieldPath:c,value:s[o],onChange:S=>r(o,S),onParentChange:r,schema:F??b,nestedSchema:b,parentValues:s})},o):e.jsx("div",{className:"min-w-0",children:e.jsx(T,{fieldPath:c,value:s[o],onChange:S=>r(o,S),onParentChange:r,schema:F??b,nestedSchema:b,parentValues:s,children:e.jsx(K,{schema:b,values:s[o]||{},onChange:(S,P)=>r(`${o}.${S}`,P),basePath:c,hooks:m,level:u+1,advancedVisible:j,sectionColumns:1})})},o)}const w=Qe(b);return l(b,c)?u===0?e.jsx(Ke,{advancedVisible:j,nestedSchema:b,values:s[o]||{},onChange:r,basePath:c,hooks:m,level:u+1,sectionKey:o,sectionTitle:w},o):e.jsxs(ne,{className:"min-w-0 border-border/70 bg-muted/20 shadow-none",children:[e.jsx(ie,{className:"border-b border-border/50 px-4 py-3",children:e.jsx("div",{className:"flex items-start justify-between gap-4",children:e.jsx("div",{className:"space-y-1",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Se,{iconName:b.uiIcon}),e.jsx(ce,{className:"text-sm text-primary",children:w})]})})})}),e.jsx(xe,{className:"px-4 pb-4 pt-4",children:e.jsx(K,{schema:b,values:s[o]||{},onChange:(y,T)=>r(`${o}.${y}`,T),basePath:c,hooks:m,level:u+1,advancedVisible:j,sectionColumns:1})})]},o):null}).filter(o=>!!o);return u===0&&_===2&&k.length>1?e.jsx("div",{className:"grid min-w-0 gap-4 md:grid-cols-2",children:k}):k})()]})};function We(t,s){return t?"label"in t&&t.label?Ce(t.label,void 0,s?.split(".").at(-1)||"JSON 配置"):"uiLabel"in t&&t.uiLabel?t.uiLabel:"classDoc"in t&&t.classDoc?t.classDoc:"className"in t&&t.className?t.className:s?.split(".").at(-1)||"JSON 配置":s?.split(".").at(-1)||"JSON 配置"}function Ue(t){return t?"description"in t?t.description||"":"classDoc"in t&&t.classDoc||"":""}function Fe(t){return({fieldPath:r,onChange:n,schema:m,value:u})=>{const f=L.useMemo(()=>u===void 0?t.emptyValue:u,[u]),[_,j]=L.useState(()=>JSON.stringify(f,null,2)),[N,h]=L.useState("");L.useEffect(()=>{j(JSON.stringify(f,null,2)),h("")},[f]);const x=We(m,r),l=Ue(m);return e.jsxs("div",{className:"space-y-3 rounded-lg border bg-card p-4 sm:p-6",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-base font-semibold",children:x}),l&&e.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:l}),e.jsx("p",{className:"text-xs text-muted-foreground",children:t.helperText})]}),e.jsx(G,{className:"min-h-[220px] font-mono text-sm",placeholder:t.placeholder,value:_,onChange:a=>{const i=a.target.value;j(i);try{const d=JSON.parse(i);h(""),n?.(d)}catch(d){h(d instanceof Error?d.message:"JSON 格式错误")}}}),N?e.jsxs("p",{className:"text-sm text-destructive",children:["JSON 解析失败:",N]}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"JSON 有效,修改会立即写回配置草稿。"})]})}}function Xe(t,s){return t?"label"in t&&t.label?Ce(t.label,void 0,s?.split(".").at(-1)??"列表配置"):"uiLabel"in t&&t.uiLabel?t.uiLabel:"classDoc"in t&&t.classDoc?t.classDoc:"className"in t&&t.className?t.className:s?.split(".").at(-1)??"列表配置":s?.split(".").at(-1)??"列表配置"}function Ye(t){return t?"description"in t&&t.description?t.description:"classDoc"in t&&t.classDoc?t.classDoc:"":""}function Ze(t,s,r){if(t)return t;if(s&&"x-icon"in s&&s["x-icon"])return s["x-icon"];if(r?.uiIcon)return r.uiIcon}function es(t,s){if(!t)return null;const r=ue[t];return r?e.jsx(r,{className:s}):null}function ss(t){if(!t?.fields)return{};const s={};for(const r of t.fields){if("default"in r&&r.default!==void 0){Array.isArray(r.default)?s[r.name]=[...r.default]:r.default!==null&&typeof r.default=="object"?s[r.name]={...r.default}:s[r.name]=r.default;continue}switch(r.type){case"boolean":s[r.name]=!1;break;case"integer":case"number":s[r.name]=0;break;case"array":s[r.name]=[];break;case"object":s[r.name]={};break;case"select":s[r.name]=r.options?.[0]??"";break;default:s[r.name]=""}}return s}function ts(t,s,r){const n=s.split(".");if(n.length===1){t[n[0]]=r;return}let m=t;for(let u=0;u{const j=L.useMemo(()=>Array.isArray(_)?_.map(o=>o&&typeof o=="object"&&!Array.isArray(o)?o:{}):[],[_]),N=L.useCallback(()=>{const o=[...j,ss(u)];n?.(o)},[j,u,n]),h=L.useCallback(o=>{const b=j.filter((F,c)=>c!==o);n?.(b)},[j,n]),x=L.useCallback((o,b,F)=>{const c=j.map((w,y)=>{if(y!==o)return w;const T={...w};return ts(T,b,F),T});n?.(c)},[j,n]),l=(o,b)=>{if(!u)return null;if(!t.fieldRows?.length)return e.jsx(K,{schema:u,values:o,onChange:(S,P)=>x(b,S,P),basePath:"",level:1});const F=S=>({...S,...t.fieldSchemaOverrides?.[S.name]??{}}),c=new Map(u.fields.map(S=>[S.name,F(S)])),w=new Set(t.fieldRows.flat()),y=u.fields.filter(S=>!w.has(S.name)).map(F),T=S=>({...u,fields:S,nested:void 0});return e.jsxs("div",{className:"space-y-3",children:[t.fieldRows.map((S,P)=>{const me=S.map(Q=>c.get(Q)).filter(Q=>!!Q);return me.length===0?null:e.jsx("div",{className:"grid gap-3 md:grid-cols-[repeat(var(--field-count),minmax(0,1fr))]",style:{"--field-count":me.length},children:me.map(Q=>e.jsx(K,{schema:T([Q]),values:o,onChange:(qe,Le)=>x(b,qe,Le),basePath:"",level:1},Q.name))},P)}),y.length>0&&e.jsx(K,{schema:T(y),values:o,onChange:(S,P)=>x(b,S,P),basePath:"",level:1})]})},a=Xe(m,r),i=Ye(m),d=Ze(t.iconName,m,u),p=t.addButtonPlacement??"bottom",$=t.collapseWhen?.({parentValues:f})??!1,[R,B]=L.useState(!1),O=$&&!R,v=O?t.expandLabel??"灞曞紑":t.collapseLabel??"鎶樺彔";L.useEffect(()=>{$||B(!1)},[$]);const k=e.jsxs(C,{type:"button",variant:"outline",size:"sm",onClick:N,className:"w-full",children:[e.jsx(E,{className:"mr-1 h-4 w-4"}),t.addLabel??"添加一项"]});return u?e.jsxs(ne,{children:[e.jsxs(ie,{className:"space-y-2 pb-4",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[es(d,"h-5 w-5 flex-shrink-0 text-muted-foreground"),e.jsx(ce,{className:"truncate text-base",children:a})]}),$&&t.collapseButtonDisplay==="icon"&&e.jsx(C,{type:"button",variant:"outline",size:"icon",onClick:()=>B(o=>!o),"aria-label":v,title:v,className:"inline-flex items-center justify-center",children:O?e.jsx(ze,{className:"h-4 w-4"}):e.jsx(Re,{className:"h-4 w-4"})}),$&&t.collapseButtonDisplay!=="icon"&&e.jsx(C,{type:"button",variant:"outline",size:"sm",onClick:()=>B(o=>!o),"aria-label":v,title:v,children:O?t.expandLabel??"展开":t.collapseLabel??"折叠"})]}),i&&e.jsx(be,{className:"whitespace-pre-line",children:i}),t.helperText&&e.jsx("p",{className:"text-xs text-muted-foreground",children:t.helperText})]}),e.jsx(xe,{className:"space-y-3",children:O?e.jsx("div",{className:"rounded-md border border-dashed border-muted-foreground/25 bg-muted/10 p-4 text-sm text-muted-foreground",children:t.collapsedText??"当前配置已折叠,可手动展开查看或编辑。"}):e.jsxs(e.Fragment,{children:[p==="top"&&k,j.length===0?e.jsx("div",{className:"rounded-md border border-dashed border-muted-foreground/25 bg-muted/10 p-6 text-center text-sm text-muted-foreground",children:t.emptyText??"尚未添加任何条目,点击下方按钮新增。"}):j.map((o,b)=>{const F=t.itemTitle?.(o,b)??`条目 ${b+1}`;return e.jsxs("div",{className:"space-y-3 rounded-lg border bg-card/40 p-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold",children:[e.jsx("span",{className:"inline-flex h-6 min-w-6 items-center justify-center rounded-full bg-muted px-2 text-xs font-medium text-muted-foreground",children:b+1}),e.jsx("span",{className:"truncate",children:F})]}),e.jsxs(C,{type:"button",variant:"ghost",size:"sm",className:"text-destructive hover:text-destructive",onClick:()=>h(b),children:[e.jsx(I,{className:"mr-1 h-4 w-4"}),"删除"]})]}),l(o,b)]},b)}),p==="bottom"&&k]})})]}):e.jsx(ne,{children:e.jsxs(ie,{children:[e.jsx(ce,{className:"text-base",children:a}),e.jsx(be,{children:"未获取到子配置 schema,无法渲染富编辑器。"})]})})}}const oe=t=>t==="private"?"私聊":t==="group"?"群聊":t?String(t):"未指定",fe=t=>{const s=typeof t.platform=="string"?t.platform.trim():"",r=typeof t.item_id=="string"?t.item_id.trim():"";return!s&&!r?"全局":s?r?`${s}:${r}`:s:r},ge=(t,s=32)=>t.length<=s?t:`${t.slice(0,s)}…`,de=t=>Array.isArray(t)?t.map(s=>typeof s=="string"?s.trim():"").filter(s=>s.length>0):[],Te=t=>t==="private"?"private":"group",rs=t=>{const s=t&&typeof t=="object"?t:{};return{platform:typeof s.platform=="string"?s.platform.trim():"qq",item_id:typeof s.item_id=="string"?s.item_id.trim():"",rule_type:Te(s.rule_type)}},as=t=>Array.isArray(t)?t.map(s=>{const r=s&&typeof s=="object"?s:{};return{expression_groups:Array.isArray(r.expression_groups)?r.expression_groups.map(rs):[]}}):[],ls=()=>({platform:"qq",item_id:"",rule_type:"group"}),ns=t=>{const s=t.platform.trim(),r=t.item_id.trim(),n=oe(t.rule_type);return!s&&!r?`全局 · ${n}`:r?`${s}:${r} · ${n}`:`${s} · ${n}`},is=t=>Array.isArray(t)?t.map(s=>String(s??"")):[],cs=t=>{const s=t.indexOf(":");return s<0?{platform:"",account:t}:{platform:t.slice(0,s),account:t.slice(s+1)}},ds=t=>{const s=t.platform.trim(),r=t.account.trim();return s?r?`${s}:${r}`:`${s}:`:r};function Ae(t){return({onChange:s,value:r})=>{const n=Array.isArray(r)?r.map(N=>String(N??"")):[],m=N=>{s?.(N)},u=()=>{m([...n,""])},f=N=>{m(n.filter((h,x)=>x!==N))},_=(N,h)=>{m(n.map((x,l)=>l===N?h:x))},j=t.multiline?G:q;return e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsx(g,{className:"text-[15px] leading-6",children:t.label}),e.jsxs(C,{type:"button",size:"sm",variant:"outline",onClick:u,children:[e.jsx(E,{className:"mr-2 h-4 w-4"}),t.addLabel]})]}),n.length===0?e.jsx("div",{className:"rounded-md border border-dashed bg-muted/30 px-4 py-5 text-center text-sm text-muted-foreground",children:t.emptyText}):e.jsx("div",{className:"space-y-2",children:n.map((N,h)=>e.jsxs("div",{className:"grid gap-2 rounded-md border bg-muted/20 p-3 sm:grid-cols-[minmax(0,1fr)_2.5rem]",children:[e.jsx(j,{value:N,placeholder:t.placeholder,onChange:x=>_(h,x.target.value),...t.multiline?{rows:2}:{}}),e.jsx("div",{className:"flex items-start justify-end",children:e.jsx(C,{type:"button",size:"icon",variant:"ghost","aria-label":`删除${t.label} ${h+1}`,onClick:()=>f(h),children:e.jsx(I,{className:"h-4 w-4"})})})]},h))})]})}}const bs=Ae({addLabel:"添加别名",emptyText:"暂无别名。",label:"别名",placeholder:"小麦"}),ws=Ae({addLabel:"添加表达风格",emptyText:"暂无备用表达风格。",label:"备用表达风格",multiline:!0,placeholder:"输入一种备用表达风格"}),ks=le({addLabel:"添加发言频率规则",addButtonPlacement:"top",collapseWhen:({parentValues:t})=>t?.enable_talk_value_rules===!1,collapsedText:"动态发言频率规则未启用,规则列表已折叠。展开后仍可查看或编辑已有规则。",expandLabel:"展开规则",collapseLabel:"折叠规则",helperText:"可按平台/聊天流/时段分别配置发言频率,留空表示全局。",emptyText:"尚未配置任何规则,将使用全局默认频率。",collapseButtonDisplay:"icon",fieldRows:[["platform","item_id","rule_type"],["time","value"]],itemTitle:t=>{const s=typeof t.time=="string"&&t.time.trim()?t.time.trim():"全天",r=typeof t.value=="number"?t.value.toFixed(2):"—";return`${fe(t)} · ${oe(t.rule_type)} · ${s} · 频率 ${r}`}}),Cs=le({addLabel:"添加额外 Prompt",helperText:"为指定平台和聊天流添加额外提示。platform、item_id 和 prompt 同时留空时表示空条目;填写任意一项后这三项都需要填写。",emptyText:"尚未配置任何聊天额外 Prompt。",addButtonPlacement:"top",fieldRows:[["platform","item_id","rule_type"]],fieldSchemaOverrides:{item_id:{"x-input-width":"8rem","x-layout":"inline-right"},platform:{"x-input-width":"8rem","x-layout":"inline-right"},prompt:{"x-textarea-min-height":38,"x-textarea-rows":1},rule_type:{"x-input-width":"8rem","x-layout":"inline-right"}},iconName:"file-text",itemTitle:t=>{const s=typeof t.prompt=="string"?t.prompt.trim():"";return`${fe(t)} · ${oe(t.rule_type)} · ${s?ge(s):"未填写 Prompt"}`}}),$s=le({addLabel:"添加表达学习规则",helperText:"为不同聊天流单独配置是否启用表达/jargon 学习。",emptyText:"尚未配置任何学习规则。",fieldRows:[["platform","item_id","rule_type"],["use_expression","enable_learning","enable_jargon_learning"]],itemTitle:t=>{const s=[];t.use_expression&&s.push("表达"),t.enable_learning&&s.push("优化学习"),t.enable_jargon_learning&&s.push("jargon");const r=s.length?s.join(" / "):"全部关闭";return`${fe(t)} · ${oe(t.rule_type)} · ${r}`}}),Ss=()=>null,Fs=({onChange:t,onParentChange:s,parentValues:r,value:n})=>{const m=typeof n=="string"?n:"",u=r?.qq_account,f=typeof u=="string"||typeof u=="number"?String(u):"",j=is(r?.platforms).map(cs),N=a=>{s?.("platforms",a.map(ds))},h=()=>{N([...j,{platform:"",account:""}])},x=a=>{N(j.filter((i,d)=>d!==a))},l=(a,i)=>{N(j.map((d,p)=>p===a?{...d,...i}:d))};return e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsx("div",{className:"space-y-1",children:e.jsx(g,{className:"text-[15px] font-semibold leading-6",children:"平台账号"})}),e.jsxs(C,{type:"button",size:"sm",variant:"outline",onClick:h,children:[e.jsx(E,{className:"mr-2 h-4 w-4"}),"添加平台"]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"grid gap-2 rounded-md border bg-muted/20 p-3 sm:grid-cols-[minmax(7rem,0.6fr)_minmax(10rem,1fr)_2.5rem]",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(g,{className:"text-xs",children:"平台"}),e.jsx(q,{value:m,placeholder:"qq",onChange:a=>t?.(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(g,{className:"text-xs",children:"账号"}),e.jsx(q,{className:"font-mono",value:f,placeholder:"2814567326",onChange:a=>s?.("qq_account",a.target.value)})]}),e.jsx("div",{className:"flex items-end justify-end",children:e.jsx("span",{className:"rounded-md bg-primary/10 px-2 py-1 text-xs font-medium text-primary",children:"主"})})]}),j.map((a,i)=>e.jsxs("div",{className:"grid gap-2 rounded-md border bg-muted/20 p-3 sm:grid-cols-[minmax(7rem,0.6fr)_minmax(10rem,1fr)_2.5rem]",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(g,{className:"text-xs",children:"平台"}),e.jsx(q,{value:a.platform,placeholder:"wx",onChange:d=>l(i,{platform:d.target.value})})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(g,{className:"text-xs",children:"账号"}),e.jsx(q,{className:"font-mono",value:a.account,placeholder:"114514",onChange:d=>l(i,{account:d.target.value})})]}),e.jsx("div",{className:"flex items-end justify-end",children:e.jsx(C,{type:"button",size:"icon",variant:"ghost","aria-label":`删除其他平台 ${i+1}`,onClick:()=>x(i),children:e.jsx(I,{className:"h-4 w-4"})})})]},i))]})]})},Ts=le({addLabel:"添加关键词规则",helperText:"匹配命中后会用 reaction 内容作为额外上下文。keywords 至少填一条,或使用正则模式。",emptyText:"尚未添加任何关键词规则。",itemTitle:t=>{const s=de(t.keywords),r=de(t.regex),n=typeof t.reaction=="string"?t.reaction.trim():"",m=s.length?`关键词 ${s.length} 条`:r.length?`正则 ${r.length} 条`:"未配置匹配项",u=n?`→ ${ge(n)}`:"→ 未填写反应";return`${m} ${u}`}}),As=le({addLabel:"添加正则规则",helperText:"正则模式按 Python 语法编写,命中时把 reaction 作为提示注入。",emptyText:"尚未添加任何正则规则。",itemTitle:t=>{const s=de(t.regex),r=de(t.keywords),n=typeof t.reaction=="string"?t.reaction.trim():"",m=s.length?`正则 ${s.length} 条`:r.length?`关键词 ${r.length} 条`:"未配置匹配项",u=n?`→ ${ge(n)}`:"→ 未填写反应";return`${m} ${u}`}}),qs=({onChange:t,value:s})=>{const r=as(s),n=N=>{t?.(N)},m=()=>{n([...r,{expression_groups:[]}])},u=N=>{n(r.filter((h,x)=>x!==N))},f=N=>{n(r.map((h,x)=>x===N?{expression_groups:[...h.expression_groups,ls()]}:h))},_=(N,h)=>{n(r.map((x,l)=>l===N?{expression_groups:x.expression_groups.filter((a,i)=>i!==h)}:x))},j=(N,h,x)=>{n(r.map((l,a)=>a===N?{expression_groups:l.expression_groups.map((i,d)=>d===h?{...i,...x}:i)}:l))};return e.jsxs("div",{className:"space-y-3 rounded-lg border bg-card p-4 sm:p-5",children:[e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-base font-semibold",children:"表达互通组"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"每个互通组内的聊天流会共享已学习的表达方式。成员会保存为 expression_groups 数组结构。"})]}),e.jsxs(C,{type:"button",size:"sm",variant:"outline",onClick:m,children:[e.jsx(E,{className:"mr-2 h-4 w-4"}),"添加互通组"]})]}),r.length===0?e.jsx("div",{className:"rounded-md border border-dashed bg-muted/30 px-4 py-8 text-center text-sm text-muted-foreground",children:"暂无互通组,点击“添加互通组”开始配置。"}):e.jsx("div",{className:"space-y-2",children:r.map((N,h)=>e.jsxs("div",{className:"space-y-2 rounded-md border bg-muted/20 p-2.5 sm:p-3",children:[e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("span",{className:"text-sm font-medium",children:["互通组 ",h+1]}),e.jsxs(Pe,{variant:"secondary",children:[N.expression_groups.length," 个成员"]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(C,{type:"button",size:"sm",variant:"outline",onClick:()=>f(h),children:[e.jsx(E,{className:"mr-2 h-4 w-4"}),"添加成员"]}),e.jsx(C,{type:"button",size:"icon",variant:"ghost","aria-label":`删除互通组 ${h+1}`,onClick:()=>u(h),children:e.jsx(I,{className:"h-4 w-4"})})]})]}),N.expression_groups.length===0?e.jsx("div",{className:"rounded-md bg-background/70 px-3 py-4 text-sm text-muted-foreground",children:"这个互通组还没有成员。"}):e.jsx("div",{className:"space-y-1.5",children:N.expression_groups.map((x,l)=>e.jsxs("div",{className:"grid items-end gap-2 rounded-md bg-background/80 px-2.5 py-2 md:grid-cols-[minmax(6rem,0.65fr)_minmax(9rem,1fr)_minmax(7rem,0.75fr)_2.25rem]",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(g,{className:"text-[11px] leading-none text-muted-foreground",children:"平台"}),e.jsx(q,{className:"h-8",value:x.platform,placeholder:"qq",onChange:a=>j(h,l,{platform:a.target.value})})]}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(g,{className:"text-[11px] leading-none text-muted-foreground",children:"账号 / 群号"}),e.jsx(q,{className:"h-8 font-mono",value:x.item_id,placeholder:"123456",onChange:a=>j(h,l,{item_id:a.target.value})})]}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(g,{className:"text-[11px] leading-none text-muted-foreground",children:"类型"}),e.jsxs(V,{value:x.rule_type,onValueChange:a=>j(h,l,{rule_type:Te(a)}),children:[e.jsx(M,{className:"h-8",children:e.jsx(H,{})}),e.jsxs(z,{children:[e.jsx(A,{value:"group",children:"群聊"}),e.jsx(A,{value:"private",children:"私聊"})]})]})]}),e.jsxs("div",{className:"flex items-end justify-between gap-2 md:justify-end",children:[e.jsx("span",{className:"min-w-0 truncate text-xs text-muted-foreground md:hidden",children:ns(x)}),e.jsx(C,{type:"button",size:"icon",variant:"ghost",className:"h-8 w-8","aria-label":`删除互通组 ${h+1} 的成员 ${l+1}`,onClick:()=>_(h,l),children:e.jsx(I,{className:"h-4 w-4"})})]})]},`${h}-${l}`))})]},h))})]})},Ls=Fe({emptyValue:[],helperText:"MCP Roots 条目为对象数组,使用 JSON 编辑。",placeholder:`[ + { + "enabled": true, + "uri": "file:///Users/example/project", + "name": "project-root" + } +]`}),Ps=Fe({emptyValue:[],helperText:"MCP 服务器配置结构较复杂,使用 JSON 编辑。",placeholder:`[ + { + "name": "example-server", + "enabled": true, + "transport": "stdio", + "command": "uvx", + "args": ["example-server"], + "env": {}, + "url": "", + "headers": {}, + "http_timeout_seconds": 30.0, + "read_timeout_seconds": 300.0, + "authorization": { + "mode": "none", + "bearer_token": "" + } + } +]`});J.memo(function({value:s,onChange:r}){const n=L.useMemo(()=>{const a=s.split("-");if(a.length===2){const[i,d]=a,[p,$]=i.split(":"),[R,B]=d.split(":");return{startHour:p?p.padStart(2,"0"):"00",startMinute:$?$.padStart(2,"0"):"00",endHour:R?R.padStart(2,"0"):"23",endMinute:B?B.padStart(2,"0"):"59"}}return{startHour:"00",startMinute:"00",endHour:"23",endMinute:"59"}},[s]),[m,u]=L.useState(n.startHour),[f,_]=L.useState(n.startMinute),[j,N]=L.useState(n.endHour),[h,x]=L.useState(n.endMinute);L.useEffect(()=>{u(n.startHour),_(n.startMinute),N(n.endHour),x(n.endMinute)},[n]);const l=(a,i,d,p)=>{const $=`${a}:${i}-${d}:${p}`;r($)};return e.jsxs(pe,{children:[e.jsx(he,{asChild:!0,children:e.jsxs(C,{variant:"outline",className:"w-full justify-start font-mono text-sm",children:[e.jsx(Ee,{className:"h-4 w-4 mr-2"}),s||"选择时间段"]})}),e.jsx(je,{className:"w-72 sm:w-80",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium text-sm mb-3",children:"开始时间"}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 sm:gap-3",children:[e.jsxs("div",{children:[e.jsx(g,{className:"text-xs",children:"小时"}),e.jsxs(V,{value:m,onValueChange:a=>{u(a),l(a,f,j,h)},children:[e.jsx(M,{children:e.jsx(H,{})}),e.jsx(z,{children:Array.from({length:24},(a,i)=>i).map(a=>e.jsx(A,{value:a.toString().padStart(2,"0"),children:a.toString().padStart(2,"0")},a))})]})]}),e.jsxs("div",{children:[e.jsx(g,{className:"text-xs",children:"分钟"}),e.jsxs(V,{value:f,onValueChange:a=>{_(a),l(m,a,j,h)},children:[e.jsx(M,{children:e.jsx(H,{})}),e.jsx(z,{children:Array.from({length:60},(a,i)=>i).map(a=>e.jsx(A,{value:a.toString().padStart(2,"0"),children:a.toString().padStart(2,"0")},a))})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium text-sm mb-3",children:"结束时间"}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 sm:gap-3",children:[e.jsxs("div",{children:[e.jsx(g,{className:"text-xs",children:"小时"}),e.jsxs(V,{value:j,onValueChange:a=>{N(a),l(m,f,a,h)},children:[e.jsx(M,{children:e.jsx(H,{})}),e.jsx(z,{children:Array.from({length:24},(a,i)=>i).map(a=>e.jsx(A,{value:a.toString().padStart(2,"0"),children:a.toString().padStart(2,"0")},a))})]})]}),e.jsxs("div",{children:[e.jsx(g,{className:"text-xs",children:"分钟"}),e.jsxs(V,{value:h,onValueChange:a=>{x(a),l(m,f,j,a)},children:[e.jsx(M,{children:e.jsx(H,{})}),e.jsx(z,{children:Array.from({length:60},(a,i)=>i).map(a=>e.jsx(A,{value:a.toString().padStart(2,"0"),children:a.toString().padStart(2,"0")},a))})]})]})]})]})]})})]})});J.memo(function({rule:s}){const r=`{ target = "${s.target}", time = "${s.time}", value = ${s.value.toFixed(1)} }`;return e.jsxs(pe,{children:[e.jsx(he,{asChild:!0,children:e.jsxs(C,{variant:"outline",size:"sm",children:[e.jsx($e,{className:"h-4 w-4 mr-1"}),"预览"]})}),e.jsx(je,{className:"w-80 sm:w-96",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"font-medium text-sm",children:"配置预览"}),e.jsx("div",{className:"rounded-md bg-muted p-3 font-mono text-xs break-all",children:r}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"这是保存到 bot_config.toml 文件中的格式"})]})})]})});J.memo(function({config:s,onChange:r}){const n=()=>{r({...s,states:[...s.states,""]})},m=f=>{r({...s,states:s.states.filter((_,j)=>j!==f)})},u=(f,_)=>{const j=[...s.states];j[f]=_,r({...s,states:j})};return e.jsx("div",{className:"rounded-lg border bg-card p-4 sm:p-6 space-y-6",children:e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold mb-4",children:"人格设置"}),e.jsxs("div",{className:"grid gap-4",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{htmlFor:"personality",children:"人格特质"}),e.jsx(G,{id:"personality",value:s.personality,onChange:f=>r({...s,personality:f.target.value}),placeholder:"描述人格特质和身份特征(建议120字以内)",rows:3}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"建议120字以内,描述人格特质和身份特征"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(g,{children:"多重人格"}),e.jsxs(C,{onClick:n,size:"sm",variant:"outline",children:[e.jsx(E,{className:"h-4 w-4 mr-1"}),"添加人格"]})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"可以定义多个不同的人格状态,麦麦会随机切换"}),e.jsx("div",{className:"space-y-2",children:s.states.map((f,_)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(G,{value:f,onChange:j=>u(_,j.target.value),placeholder:"描述一个人格状态",rows:2}),e.jsxs(W,{children:[e.jsx(U,{asChild:!0,children:e.jsx(C,{size:"icon",variant:"outline",children:e.jsx(I,{className:"h-4 w-4"})})}),e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsx(Z,{children:"确认删除"}),e.jsx(ee,{children:"确定要删除这个人格状态吗?此操作无法撤销。"})]}),e.jsxs(se,{children:[e.jsx(te,{children:"取消"}),e.jsx(re,{onClick:()=>m(_),children:"删除"})]})]})]})]},_))})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{htmlFor:"state_probability",children:"替换为多重人格概率"}),e.jsx(q,{id:"state_probability",type:"number",step:"0.1",min:"0",max:"1",value:s.state_probability,onChange:f=>r({...s,state_probability:parseFloat(f.target.value)})}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"每次构建人格时,用多重人格替换主人格的概率(0.0-1.0)"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{htmlFor:"reply_style",children:"表达风格"}),e.jsx(G,{id:"reply_style",value:s.reply_style,onChange:f=>r({...s,reply_style:f.target.value}),placeholder:"描述说话的表达风格和习惯",rows:3})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{htmlFor:"plan_style",children:"说话规则与行为风格"}),e.jsx(G,{id:"plan_style",value:s.plan_style,onChange:f=>r({...s,plan_style:f.target.value}),placeholder:"麦麦的说话规则和行为风格",rows:5})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{htmlFor:"visual_style",children:"识图规则"}),e.jsx(G,{id:"visual_style",value:s.visual_style,onChange:f=>r({...s,visual_style:f.target.value}),placeholder:"识图时的处理规则",rows:3})]})]})]})})});J.memo(function({config:s,onChange:r}){return e.jsxs("div",{className:"rounded-lg border bg-card p-4 sm:p-6 space-y-4",children:[e.jsx("h3",{className:"text-lg font-semibold",children:"调试配置"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(g,{children:"显示 Prompt"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"是否在日志中显示提示词"})]}),e.jsx(D,{checked:s.show_prompt,onCheckedChange:n=>r({...s,show_prompt:n})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(g,{children:"显示回复器 Prompt"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"是否显示回复器的提示词"})]}),e.jsx(D,{checked:s.show_replyer_prompt,onCheckedChange:n=>r({...s,show_replyer_prompt:n})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(g,{children:"显示回复器推理"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"是否显示回复器的推理过程"})]}),e.jsx(D,{checked:s.show_replyer_reasoning,onCheckedChange:n=>r({...s,show_replyer_reasoning:n})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(g,{children:"显示 Jargon Prompt"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"是否显示术语相关的提示词"})]}),e.jsx(D,{checked:s.show_jargon_prompt,onCheckedChange:n=>r({...s,show_jargon_prompt:n})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(g,{children:"显示记忆检索 Prompt"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"是否显示记忆检索相关的提示词"})]}),e.jsx(D,{checked:s.show_memory_prompt,onCheckedChange:n=>r({...s,show_memory_prompt:n})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(g,{children:"显示 Planner Prompt"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"是否显示 Planner 的提示词和原始返回结果"})]}),e.jsx(D,{checked:s.show_planner_prompt,onCheckedChange:n=>r({...s,show_planner_prompt:n})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(g,{children:"显示 LPMM 相关文段"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"是否显示 LPMM 知识库找到的相关文段日志"})]}),e.jsx(D,{checked:s.show_lpmm_paragraph,onCheckedChange:n=>r({...s,show_lpmm_paragraph:n})})]})]})]})});const os=t=>!t.platform&&!t.item_id?"":`${t.platform}:${t.item_id}:${t.rule_type}`,ke=t=>{const s=t.split(":");return{platform:s[0]||"qq",item_id:s[1]||"",rule_type:s[2]==="private"?"private":"group"}},ms=J.memo(function({member:s,groupIndex:r,memberIndex:n,availableChatIds:m,onUpdate:u,onRemove:f}){const _=os(s),j=m.includes(_)||_==="*",[N,h]=L.useState(!j);return e.jsxs("div",{className:"flex gap-2",children:[e.jsx("div",{className:"flex-1 flex gap-2",children:N?e.jsxs(e.Fragment,{children:[e.jsx(q,{value:_,onChange:x=>u(r,n,ke(x.target.value)),placeholder:'输入 "qq:123456:group"',className:"flex-1"}),m.length>0&&e.jsx(C,{size:"sm",variant:"outline",onClick:()=>h(!1),title:"切换到下拉选择",children:"下拉"})]}):e.jsxs(e.Fragment,{children:[e.jsxs(V,{value:_,onValueChange:x=>u(r,n,ke(x)),children:[e.jsx(M,{className:"flex-1",children:e.jsx(H,{placeholder:"选择聊天流"})}),e.jsx(z,{children:m.map((x,l)=>e.jsx(A,{value:x,children:x},l))})]}),e.jsx(C,{size:"sm",variant:"outline",onClick:()=>h(!0),title:"切换到手动输入",children:"输入"})]})}),e.jsxs(W,{children:[e.jsx(U,{asChild:!0,children:e.jsx(C,{size:"icon",variant:"outline",children:e.jsx(I,{className:"h-4 w-4"})})}),e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsx(Z,{children:"确认删除"}),e.jsxs(ee,{children:['确定要删除组成员 "',_||"(空)",'" 吗?此操作无法撤销。']})]}),e.jsxs(se,{children:[e.jsx(te,{children:"取消"}),e.jsx(re,{onClick:()=>f(r,n),children:"删除"})]})]})]})]})});J.memo(function({config:s,onChange:r}){const n=()=>{const l={platform:"",item_id:"",rule_type:"group",use_expression:!0,enable_learning:!0,enable_jargon_learning:!0};r({...s,learning_list:[...s.learning_list,l]})},m=l=>{r({...s,learning_list:s.learning_list.filter((a,i)=>i!==l)})},u=(l,a,i)=>{const d=s.learning_list.map((p,$)=>$===l?{...p,[a]:i}:p);r({...s,learning_list:d})},f=({rule:l})=>{const a=JSON.stringify(l,null,2);return e.jsxs(pe,{children:[e.jsx(he,{asChild:!0,children:e.jsxs(C,{variant:"outline",size:"sm",children:[e.jsx($e,{className:"h-4 w-4 mr-1"}),"预览"]})}),e.jsx(je,{className:"w-80 sm:w-96",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"font-medium text-sm",children:"配置预览"}),e.jsx("div",{className:"rounded-md bg-muted p-3 font-mono text-xs break-all",children:a}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"这是保存到 bot_config.toml 文件中的格式"})]})})]})},_=()=>{const l={expression_groups:[]};r({...s,expression_groups:[...s.expression_groups,l]})},j=l=>{r({...s,expression_groups:s.expression_groups.filter((a,i)=>i!==l)})},N=l=>{const a=s.expression_groups.map((i,d)=>d===l?{...i,expression_groups:[...i.expression_groups,{platform:"qq",item_id:"",rule_type:"group"}]}:i);r({...s,expression_groups:a})},h=(l,a)=>{const i=s.expression_groups.map((d,p)=>p===l?{...d,expression_groups:d.expression_groups.filter(($,R)=>R!==a)}:d);r({...s,expression_groups:i})},x=(l,a,i)=>{const d=s.expression_groups.map((p,$)=>$===l?{...p,expression_groups:p.expression_groups.map((R,B)=>B===a?i:R)}:p);r({...s,expression_groups:d})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"rounded-lg border bg-card p-4 sm:p-6 space-y-4",children:[e.jsx("h3",{className:"text-lg font-semibold mb-4",children:"黑话设置"}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(D,{id:"all_global_jargon",checked:s.all_global_jargon??!1,onCheckedChange:l=>r({...s,all_global_jargon:l})}),e.jsx(g,{htmlFor:"all_global_jargon",className:"cursor-pointer",children:"全局黑话模式"})]}),e.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"开启后,新增的黑话将默认设为全局(所有聊天流共享)。关闭后,已记录的全局黑话不会改变,需要手动删除。"})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(D,{id:"enable_jargon_explanation",checked:s.enable_jargon_explanation??!0,onCheckedChange:l=>r({...s,enable_jargon_explanation:l})}),e.jsx(g,{htmlFor:"enable_jargon_explanation",className:"cursor-pointer",children:"启用黑话解释"})]}),e.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"在回复前尝试对上下文中的黑话进行解释。关闭可减少一次LLM调用,仅影响回复前的黑话匹配与解释,不影响黑话学习。"})]}),e.jsxs("div",{children:[e.jsx(g,{htmlFor:"jargon_mode",children:"黑话解释来源模式"}),e.jsxs(V,{value:s.jargon_mode??"context",onValueChange:l=>r({...s,jargon_mode:l}),children:[e.jsx(M,{id:"jargon_mode",className:"mt-2",children:e.jsx(H,{placeholder:"选择黑话解释来源"})}),e.jsxs(z,{children:[e.jsx(A,{value:"context",children:"上下文模式(自动匹配黑话)"}),e.jsx(A,{value:"planner",children:"Planner模式(使用unknown_words列表)"})]})]}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:["上下文模式:使用上下文自动匹配黑话并解释",e.jsx("br",{}),"Planner模式:仅使用Planner在reply动作中给出的unknown_words列表进行黑话检索"]})]})]}),e.jsx("div",{className:"rounded-lg border bg-card p-4 sm:p-6 space-y-6",children:e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold",children:"表达学习配置"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"配置麦麦如何学习和使用表达方式"})]}),e.jsxs(C,{onClick:n,size:"sm",variant:"outline",children:[e.jsx(E,{className:"h-4 w-4 mr-1"}),"添加规则"]})]}),e.jsxs("div",{className:"space-y-4",children:[s.learning_list.map((l,a)=>{const i=l.platform===""&&l.item_id==="",d=s.learning_list.some((p,$)=>$!==a&&p.platform===""&&p.item_id==="");return e.jsxs("div",{className:"rounded-lg border p-4 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm font-medium",children:["规则 ",a+1," ",i&&"(全局配置)"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(f,{rule:l}),e.jsxs(W,{children:[e.jsx(U,{asChild:!0,children:e.jsxs(C,{size:"icon",variant:"ghost","aria-label":`删除学习规则 ${a+1}`,children:[e.jsx(I,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"删除"})]})}),e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsx(Z,{children:"确认删除"}),e.jsxs(ee,{children:["确定要删除学习规则 ",a+1," 吗?此操作无法撤销。"]})]}),e.jsxs(se,{children:[e.jsx(te,{children:"取消"}),e.jsx(re,{onClick:()=>m(a),children:"删除"})]})]})]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{className:"text-xs font-medium",children:"配置类型"}),e.jsxs(V,{value:i?"global":"specific",onValueChange:p=>{p==="global"?(u(a,"platform",""),u(a,"item_id","")):u(a,"platform","qq")},disabled:d&&!i,children:[e.jsx(M,{children:e.jsx(H,{})}),e.jsxs(z,{children:[e.jsx(A,{value:"global",children:"全局配置"}),e.jsx(A,{value:"specific",disabled:d&&!i,children:"详细配置"})]})]}),d&&!i&&e.jsx("p",{className:"text-xs text-amber-600",children:"已存在全局配置,无法创建新的全局配置"})]}),!i&&e.jsxs("div",{className:"grid gap-4 p-3 sm:p-4 rounded-lg bg-muted/50",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{className:"text-xs font-medium",children:"平台"}),e.jsxs(V,{value:l.platform||"qq",onValueChange:p=>{u(a,"platform",p)},children:[e.jsx(M,{children:e.jsx(H,{})}),e.jsxs(z,{children:[e.jsx(A,{value:"qq",children:"QQ"}),e.jsx(A,{value:"wx",children:"微信"})]})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{className:"text-xs font-medium",children:"群 ID"}),e.jsx(q,{value:l.item_id,onChange:p=>{u(a,"item_id",p.target.value)},placeholder:"输入群 ID",className:"font-mono text-sm"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{className:"text-xs font-medium",children:"类型"}),e.jsxs(V,{value:l.rule_type,onValueChange:p=>{u(a,"rule_type",p)},children:[e.jsx(M,{children:e.jsx(H,{})}),e.jsxs(z,{children:[e.jsx(A,{value:"group",children:"群组(group)"}),e.jsx(A,{value:"private",children:"私聊(private)"})]})]})]})]}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:["当前聊天流 ID:",l.platform&&l.item_id?`${l.platform}:${l.item_id}:${l.rule_type}`:"(未设置)"]})]}),e.jsx("div",{className:"grid gap-2",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(g,{className:"text-xs font-medium",children:"使用学到的表达"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"允许麦麦使用从聊天中学到的表达方式"})]}),e.jsx(D,{checked:l.use_expression,onCheckedChange:p=>u(a,"use_expression",p)})]})}),e.jsx("div",{className:"grid gap-2",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(g,{className:"text-xs font-medium",children:"学习表达"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"允许麦麦从聊天中学习新的表达方式"})]}),e.jsx(D,{checked:l.enable_learning,onCheckedChange:p=>u(a,"enable_learning",p)})]})}),e.jsx("div",{className:"grid gap-2",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(g,{className:"text-xs font-medium",children:"启用黑话学习"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"允许麦麦在此聊天流中学习和记录黑话"})]}),e.jsx(D,{checked:l.enable_jargon_learning,onCheckedChange:p=>u(a,"enable_jargon_learning",p)})]})})]})]},a)}),s.learning_list.length===0&&e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:'暂无学习规则,点击"添加规则"开始配置'})]})]})}),e.jsx("div",{className:"rounded-lg border bg-card p-4 sm:p-6 space-y-6",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold",children:"表达优化配置"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"配置麦麦如何优化和改进表达方式"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(g,{htmlFor:"expression_self_reflect",className:"cursor-pointer font-medium",children:"自动表达优化"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"启用后,麦麦会自动检查并优化表达方式,无需管理员手动干预"})]}),e.jsx(D,{id:"expression_self_reflect",checked:s.expression_self_reflect??!1,onCheckedChange:l=>r({...s,expression_self_reflect:l})})]}),s.expression_self_reflect&&e.jsxs("div",{className:"space-y-4 pl-4 border-l-2 border-primary/20",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(g,{htmlFor:"expression_auto_check_interval",children:"自动检查间隔(秒)"}),e.jsx(q,{id:"expression_auto_check_interval",type:"number",min:"60",value:s.expression_auto_check_interval??900,onChange:l=>r({...s,expression_auto_check_interval:parseInt(l.target.value)||900})}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"表达方式自动检查的间隔时间(单位:秒),默认值:900秒(15分钟)"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(g,{htmlFor:"expression_auto_check_count",children:"每次检查数量"}),e.jsx(q,{id:"expression_auto_check_count",type:"number",min:"1",max:"100",value:s.expression_auto_check_count??5,onChange:l=>r({...s,expression_auto_check_count:parseInt(l.target.value)||5})}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"每次自动检查时随机选取的表达方式数量,默认值:5条"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(g,{children:"自定义评估标准"}),e.jsxs(C,{onClick:()=>{r({...s,expression_auto_check_custom_criteria:[...s.expression_auto_check_custom_criteria||[],""]})},size:"sm",variant:"outline",children:[e.jsx(E,{className:"h-4 w-4 mr-1"}),"添加标准"]})]}),e.jsxs("div",{className:"space-y-2",children:[(s.expression_auto_check_custom_criteria||[]).map((l,a)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(q,{value:l,onChange:i=>{const d=[...s.expression_auto_check_custom_criteria||[]];d[a]=i.target.value,r({...s,expression_auto_check_custom_criteria:d})},placeholder:"输入评估标准,例如:是否符合角色人设",className:"flex-1"}),e.jsx(C,{onClick:()=>{r({...s,expression_auto_check_custom_criteria:(s.expression_auto_check_custom_criteria||[]).filter((i,d)=>d!==a)})},size:"icon",variant:"ghost",children:e.jsx(I,{className:"h-4 w-4"})})]},a)),(!s.expression_auto_check_custom_criteria||s.expression_auto_check_custom_criteria.length===0)&&e.jsx("div",{className:"text-center py-4 text-muted-foreground text-sm",children:'暂无自定义标准,点击"添加标准"开始配置'})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"这些标准会被添加到评估提示词中,作为额外的评估要求"})]})]})]}),e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(g,{htmlFor:"expression_checked_only",className:"cursor-pointer font-medium",children:"仅使用已审核通过的表达方式"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"开启后,只有通过审核(已检查)的项目会被使用;关闭时,未审核的项目也会被使用。无论开关状态,被拒绝的项目永远不会被使用。"})]}),e.jsx(D,{id:"expression_checked_only",checked:s.expression_checked_only??!1,onCheckedChange:l=>r({...s,expression_checked_only:l})})]})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(g,{htmlFor:"expression_manual_reflect",className:"cursor-pointer font-medium",children:"手动表达优化"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"启用后,麦麦会主动向管理员询问表达方式是否合适"})]}),e.jsx(D,{id:"expression_manual_reflect",checked:s.expression_manual_reflect??!1,onCheckedChange:l=>r({...s,expression_manual_reflect:l})})]}),s.expression_manual_reflect&&e.jsxs("div",{className:"space-y-4 pl-4 border-l-2 border-primary/20",children:[e.jsxs("div",{className:"rounded-lg border p-4 space-y-4",children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsx("span",{className:"text-sm font-medium",children:"反思操作员"})}),e.jsx("div",{className:"space-y-4",children:(()=>{const l=s.manual_reflect_operator_id,a=l?.platform||"qq",i=l?.item_id||"",d=l?.rule_type||"private";return e.jsxs("div",{className:"grid gap-4 p-3 sm:p-4 rounded-lg bg-muted/50",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{className:"text-xs font-medium",children:"平台"}),e.jsxs(V,{value:a,onValueChange:p=>{r({...s,manual_reflect_operator_id:{platform:p,item_id:i,rule_type:d}})},children:[e.jsx(M,{children:e.jsx(H,{})}),e.jsxs(z,{children:[e.jsx(A,{value:"qq",children:"QQ"}),e.jsx(A,{value:"wx",children:"微信"})]})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{className:"text-xs font-medium",children:"用户/群 ID"}),e.jsx(q,{value:i,onChange:p=>{r({...s,manual_reflect_operator_id:{platform:a,item_id:p.target.value,rule_type:d}})},placeholder:"输入 ID",className:"font-mono text-sm"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{className:"text-xs font-medium",children:"类型"}),e.jsxs(V,{value:d,onValueChange:p=>{r({...s,manual_reflect_operator_id:{platform:a,item_id:i,rule_type:p}})},children:[e.jsx(M,{children:e.jsx(H,{})}),e.jsxs(z,{children:[e.jsx(A,{value:"private",children:"私聊(private)"}),e.jsx(A,{value:"group",children:"群组(group)"})]})]})]})]}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:["当前操作员:",l?`${l.platform}:${l.item_id}:${l.rule_type}`:"(未设置)"]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:'手动表达优化操作员ID,格式:platform:id:type (例如 "qq:123456:private" 或 "qq:654321:group")'})]})})()})]}),e.jsxs("div",{className:"rounded-lg border p-4 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-sm font-medium",children:"允许进行表达反思的聊天流"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"只有在此列表中的聊天流才会提出问题并跟踪。如果列表为空,则所有聊天流都可以进行表达反思(前提是启用了手动表达优化)"})]}),e.jsxs(C,{onClick:()=>{const l={platform:"qq",item_id:"",rule_type:"group"};r({...s,allow_reflect:[...s.allow_reflect||[],l]})},size:"sm",variant:"outline",children:[e.jsx(E,{className:"h-4 w-4 mr-1"}),"添加聊天流"]})]}),e.jsxs("div",{className:"space-y-2",children:[(s.allow_reflect||[]).map((l,a)=>e.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-lg bg-muted/50",children:[e.jsxs(V,{value:l.platform||"qq",onValueChange:i=>{const d=s.allow_reflect.map((p,$)=>$===a?{...p,platform:i}:p);r({...s,allow_reflect:d})},children:[e.jsx(M,{className:"w-24",children:e.jsx(H,{})}),e.jsxs(z,{children:[e.jsx(A,{value:"qq",children:"QQ"}),e.jsx(A,{value:"wx",children:"微信"})]})]}),e.jsx(q,{value:l.item_id,onChange:i=>{const d=s.allow_reflect.map((p,$)=>$===a?{...p,item_id:i.target.value}:p);r({...s,allow_reflect:d})},placeholder:"ID",className:"flex-1 font-mono text-sm"}),e.jsxs(V,{value:l.rule_type,onValueChange:i=>{const d=s.allow_reflect.map((p,$)=>$===a?{...p,rule_type:i}:p);r({...s,allow_reflect:d})},children:[e.jsx(M,{className:"w-32",children:e.jsx(H,{})}),e.jsxs(z,{children:[e.jsx(A,{value:"group",children:"群组"}),e.jsx(A,{value:"private",children:"私聊"})]})]}),e.jsx(C,{onClick:()=>{r({...s,allow_reflect:s.allow_reflect.filter((i,d)=>d!==a)})},size:"sm",variant:"ghost",children:e.jsx(I,{className:"h-4 w-4"})})]},a)),(!s.allow_reflect||s.allow_reflect.length===0)&&e.jsx("div",{className:"text-center py-4 text-muted-foreground text-sm",children:"列表为空,所有聊天流都可以进行表达反思"})]})]})]})]})]})}),e.jsx("div",{className:"rounded-lg border bg-card p-4 sm:p-6 space-y-6",children:e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold",children:"表达共享组配置"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"配置不同聊天流之间如何共享学到的表达方式"})]}),e.jsxs(C,{onClick:_,size:"sm",variant:"outline",children:[e.jsx(E,{className:"h-4 w-4 mr-1"}),"添加共享组"]})]}),e.jsxs("div",{className:"space-y-4",children:[s.expression_groups.map((l,a)=>{const i=s.learning_list.filter(d=>d.platform!==""||d.item_id!=="").map(d=>`${d.platform}:${d.item_id}:${d.rule_type}`);return e.jsxs("div",{className:"rounded-lg border p-4 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm font-medium",children:["共享组 ",a+1]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(C,{onClick:()=>N(a),size:"sm",variant:"outline",children:e.jsx(E,{className:"h-4 w-4"})}),e.jsxs(W,{children:[e.jsx(U,{asChild:!0,children:e.jsx(C,{size:"sm",variant:"ghost",children:e.jsx(I,{className:"h-4 w-4"})})}),e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsx(Z,{children:"确认删除"}),e.jsxs(ee,{children:["确定要删除共享组 ",a+1," 吗?此操作无法撤销。"]})]}),e.jsxs(se,{children:[e.jsx(te,{children:"取消"}),e.jsx(re,{onClick:()=>j(a),children:"删除"})]})]})]})]})]}),e.jsx("div",{className:"space-y-2",children:l.expression_groups.map((d,p)=>e.jsx(ms,{member:d,groupIndex:a,memberIndex:p,availableChatIds:i,onUpdate:x,onRemove:h},`${a}-${p}`))}),e.jsx("p",{className:"text-xs text-muted-foreground",children:'提示:可以从下拉框选择已配置的聊天流,或手动输入。输入 "*" 启用全局共享'})]},a)}),s.expression_groups.length===0&&e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:'暂无共享组,点击"添加共享组"开始配置'})]})]})})]})});J.memo(function({config:s,onChange:r}){const n=s.platforms||[],m=s.alias_names||[],u=()=>{r({...s,platforms:[...n,""]})},f=x=>{r({...s,platforms:n.filter((l,a)=>a!==x)})},_=(x,l)=>{const a=[...n];a[x]=l,r({...s,platforms:a})},j=()=>{r({...s,alias_names:[...m,""]})},N=x=>{r({...s,alias_names:m.filter((l,a)=>a!==x)})},h=(x,l)=>{const a=[...m];a[x]=l,r({...s,alias_names:a})};return e.jsx("div",{className:"rounded-lg border bg-card p-4 sm:p-6 space-y-6",children:e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold mb-4",children:"基础"}),e.jsxs("div",{className:"grid gap-4",children:[e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{htmlFor:"platform",children:"平台"}),e.jsx(q,{id:"platform",value:s.platform,onChange:x=>r({...s,platform:x.target.value}),placeholder:"qq"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{htmlFor:"qq_account",children:"QQ账号"}),e.jsx(q,{id:"qq_account",value:s.qq_account,onChange:x=>r({...s,qq_account:x.target.value}),placeholder:"123456789"})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{htmlFor:"nickname",children:"昵称"}),e.jsx(q,{id:"nickname",value:s.nickname,onChange:x=>r({...s,nickname:x.target.value}),placeholder:"麦麦"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(g,{children:"别名"}),e.jsxs(C,{onClick:j,size:"sm",variant:"outline",children:[e.jsx(E,{className:"h-4 w-4 mr-1"}),"添加"]})]}),e.jsxs("div",{className:"space-y-2",children:[m.map((x,l)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(q,{value:x,onChange:a=>h(l,a.target.value),placeholder:"小麦"}),e.jsxs(W,{children:[e.jsx(U,{asChild:!0,children:e.jsx(C,{size:"icon",variant:"outline",children:e.jsx(I,{className:"h-4 w-4"})})}),e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsx(Z,{children:"确认删除"}),e.jsxs(ee,{children:['确定要删除别名 "',x||"(空)",'" 吗?此操作无法撤销。']})]}),e.jsxs(se,{children:[e.jsx(te,{children:"取消"}),e.jsx(re,{onClick:()=>N(l),children:"删除"})]})]})]})]},l)),m.length===0&&e.jsx("p",{className:"text-sm text-muted-foreground",children:"暂无别名"})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(g,{children:"其他平台账号"}),e.jsxs(C,{onClick:u,size:"sm",variant:"outline",children:[e.jsx(E,{className:"h-4 w-4 mr-1"}),"添加"]})]}),e.jsxs("div",{className:"space-y-2",children:[n.map((x,l)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(q,{value:x,onChange:a=>_(l,a.target.value),placeholder:"wx:114514"}),e.jsxs(W,{children:[e.jsx(U,{asChild:!0,children:e.jsx(C,{size:"icon",variant:"outline",children:e.jsx(I,{className:"h-4 w-4"})})}),e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsx(Z,{children:"确认删除"}),e.jsxs(ee,{children:['确定要删除平台账号 "',x||"(空)",'" 吗?此操作无法撤销。']})]}),e.jsxs(se,{children:[e.jsx(te,{children:"取消"}),e.jsx(re,{onClick:()=>f(l),children:"删除"})]})]})]})]},l)),n.length===0&&e.jsx("p",{className:"text-sm text-muted-foreground",children:"暂无其他平台账号"})]})]})]})]})})});export{bs as A,Fs as B,Cs as C,K as D,qs as E,Ss as H,Ts as K,ws as M,As as R,ks as a,$s as b,Ls as c,Ps as d,Je as f}; diff --git a/dashboard/dist/assets/CodeEditor-4JcGD1og.js b/dashboard/dist/assets/CodeEditor-4JcGD1og.js new file mode 100644 index 00000000..a301332c --- /dev/null +++ b/dashboard/dist/assets/CodeEditor-4JcGD1og.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CodeEditorImpl-Drk-3Sr7.js","assets/router-zNjPR4CY.js","assets/codemirror-DTQUzpPo.js","assets/index-CuOHsLf7.js","assets/misc-BwRzHX8c.js","assets/radix-C-ZuImoP.js","assets/utils-DjBw3JGv.js","assets/icons-DTcdLw9j.js","assets/index-B3954xeN.css"])))=>i.map(i=>d[i]); +import{aF as d}from"./index-CuOHsLf7.js";import{j as t,r as a}from"./router-zNjPR4CY.js";const m=a.lazy(()=>d(()=>import("./CodeEditorImpl-Drk-3Sr7.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])));function n({height:e,minHeight:r,maxHeight:o,className:s=""}){return t.jsx("div",{className:`bg-muted animate-pulse rounded-md border ${s}`,style:{height:e,minHeight:r,maxHeight:o}})}function u(e){const{height:r="400px",minHeight:o,maxHeight:s,className:i=""}=e;return t.jsx(a.Suspense,{fallback:t.jsx(n,{height:r,minHeight:o,maxHeight:s,className:i}),children:t.jsx(m,{...e})})}export{u as C}; diff --git a/dashboard/dist/assets/CodeEditorImpl-Drk-3Sr7.js b/dashboard/dist/assets/CodeEditorImpl-Drk-3Sr7.js new file mode 100644 index 00000000..b79958de --- /dev/null +++ b/dashboard/dist/assets/CodeEditorImpl-Drk-3Sr7.js @@ -0,0 +1 @@ +import{j as g}from"./router-zNjPR4CY.js";import{L as Z,E as u,a as G,s as T,t,b as C,c as E,i as V,d as _,f as U,e as q,g as F,N,I,h as p,R as D,o as K,S as B,j as A,l as L,p as J,k as M}from"./codemirror-DTQUzpPo.js";import{a as H}from"./index-CuOHsLf7.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";import"./icons-DTcdLw9j.js";const ee=135,y=1,Oe=136,ae=137,v=2,re=138,te=3,oe=4,w=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],le=58,ie=40,k=95,ne=91,Q=45,se=46,de=35,ce=37,Qe=38,ue=92,pe=10,$e=42;function c(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function j(e){return e>=48&&e<=57}function S(e){return j(e)||e>=97&&e<=102||e>=65&&e<=70}const R=(e,O,o)=>(a,r)=>{for(let l=!1,i=0,n=0;;n++){let{next:s}=a;if(c(s)||s==Q||s==k||l&&j(s))!l&&(s!=Q||n>0)&&(l=!0),i===n&&s==Q&&i++,a.advance();else if(s==ue&&a.peek(1)!=pe){if(a.advance(),S(a.next)){do a.advance();while(S(a.next));a.next==32&&a.advance()}else a.next>-1&&a.advance();l=!0}else{l&&a.acceptToken(i==2&&r.canShift(v)?O:s==ie?o:e);break}}},me=new u(R(Oe,v,ae),{contextual:!0}),je=new u(R(re,te,oe),{contextual:!0}),he=new u(e=>{if(w.includes(e.peek(-1))){let{next:O}=e;(c(O)||O==k||O==de||O==se||O==$e||O==ne||O==le&&c(e.peek(1))||O==Q||O==Qe)&&e.acceptToken(ee)}}),ge=new u(e=>{if(!w.includes(e.peek(-1))){let{next:O}=e;if(O==ce&&(e.advance(),e.acceptToken(y)),c(O)){do e.advance();while(c(e.next)||j(e.next));e.acceptToken(y)}}}),ye=T({"AtKeyword import charset namespace keyframes media supports font-feature-values":t.definitionKeyword,"from to selector scope MatchFlag":t.keyword,NamespaceName:t.namespace,KeyframeName:t.labelName,KeyframeRangeName:t.operatorKeyword,TagName:t.tagName,ClassName:t.className,PseudoClassName:t.constant(t.className),IdName:t.labelName,"FeatureName PropertyName":t.propertyName,AttributeName:t.attributeName,NumberLiteral:t.number,KeywordQuery:t.keyword,UnaryQueryOp:t.operatorKeyword,"CallTag ValueName FontName":t.atom,VariableName:t.variableName,Callee:t.operatorKeyword,Unit:t.unit,"UniversalSelector NestingSelector":t.definitionOperator,"MatchOp CompareOp":t.compareOperator,"ChildOp SiblingOp, LogicOp":t.logicOperator,BinOp:t.arithmeticOperator,Important:t.modifier,Comment:t.blockComment,ColorLiteral:t.color,"ParenthesizedContent StringLiteral":t.string,":":t.punctuation,"PseudoOp #":t.derefOperator,"; , |":t.separator,"( )":t.paren,"[ ]":t.squareBracket,"{ }":t.brace}),Se={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},fe={__proto__:null,or:104,and:104,not:112,only:112,layer:186},Pe={__proto__:null,selector:118,layer:182},Xe={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},be={__proto__:null,to:223},ve=Z.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#EQOOQP'#Fd'#FdO)OQhO'#EsOOQS'#Fc'#FcOOQS'#Ev'#EvQYQdOOO)VQdO'#EWO*cQhO'#E^O)VQdO'#E`O*jQdO'#EbO*uQdO'#EeO)zQhO'#EkO*}QdO'#EmO+YQdO'#EpO+_QaO'#CfO+fQ`O'#ETO+kQ`O'#FnO+vQdO'#FnQOQ`OOP,QO&jO'#CaPOOO)CAR)CAROOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&XQdO,59VO,]QdO,59YO'_QdO,5:`O'dQdO,5:bO'oQdO,5:iO'oQdO,5:kO'oQdO,5:lO'oQdO'#E}O,hQ`O,58}O,pQdO'#ESOOQS,58},58}OOQP'#Cq'#CqOOQO'#Dr'#DrOOQP,59Y,59YO,wQ`O,59YO,|Q`O,59YOOQP'#Du'#DuOOQP,5:`,5:`O-RQpO'#DwO-^QdO'#DxO-cQ`O'#DxO-hQpO,5:bO.RQaO,5:iO.iQaO,5:lOOQW'#D^'#D^O/eQhO'#DgO/xQhO,5;_O)zQhO'#DeO0VQ`O'#DkO0[QhO'#DnOOQW'#Fj'#FjOOQS,5;_,5;_O0aQ`O'#DhOOQS-E8t-E8tOOQ['#Cv'#CvO0fQdO'#CwO0|QdO'#C}O1dQdO'#DQO1zQ!pO'#DSO4TQ!jO,5:rOOQO'#DX'#DXO,|Q`O'#DWO4eQ!nO'#FgO6hQ`O'#DYO6mQ`O'#DoOOQ['#Fg'#FgO6rQhO'#FqO7QQ`O,5:xO7VQ!bO,5:zOOQS'#Ed'#EdO7_Q`O,5:|O7dQdO,5:|OOQO'#Eg'#EgO7lQ`O,5;PO7qQhO,5;VO'oQdO'#DjOOQS,5;X,5;XO0aQ`O,5;XO7yQdO,5;XOOQS'#FU'#FUO8RQdO'#ErO7QQ`O,5;[O8ZQdO,5:oO8kQdO'#FPO8xQ`O,5QQhO'#DlOOQW,5:V,5:VOOQW,5:Y,5:YOOQW,5:S,5:SO>[Q!fO'#FhOOQS'#Fh'#FhOOQS'#Ex'#ExO?lQdO,59cOOQ[,59c,59cO@SQdO,59iOOQ[,59i,59iO@jQdO,59lOOQ[,59l,59lOOQ[,59n,59nO)VQdO,59pOAQQhO'#EYOOQW'#EY'#EYOAlQ`O1G0^O4^QhO1G0^OOQ[,59r,59rO)zQhO'#D[OOQ[,59t,59tOAqQ#tO,5:ZOA|QhO'#FROBZQ`O,5<]OOQS1G0d1G0dOOQS1G0f1G0fOOQS1G0h1G0hOBfQ`O1G0hOBkQdO'#EhOOQS1G0k1G0kOOQS1G0q1G0qOBvQaO,5:UO7QQ`O1G0sOOQS1G0s1G0sO0aQ`O1G0sOOQS-E9S-E9SOOQS1G0v1G0vOB}Q!fO1G0ZOCeQ`O'#EVOOQO1G0Z1G0ZOOQO,5;k,5;kOCjQdO,5;kOOQO-E8}-E8}OCwQ`O1G1tPOOO-E8s-E8sPOOO1G.g1G.gOOQP7+$`7+$`OOQP7+%h7+%hO)VQdO7+%hOOQS1G0Y1G0YODSQaO'#FmOD^Q`O,5:_ODcQ!fO'#EwOEaQdO'#FfOEkQ`O,59aOOQO1G0O1G0OOEpQ!bO7+%hO)VQdO1G/eOE{QhO1G/iOOQW1G/m1G/mOOQW1G/g1G/gOF^QhO,5;qOOQW-E9T-E9TOOQS7+&e7+&eOGRQhO'#D^OGaQhO'#FlOGlQ`O'#FlOGqQ`O,5:WOOQS-E8v-E8vOOQ[1G.}1G.}OOQ[1G/T1G/TOOQ[1G/W1G/WOOQ[1G/[1G/[OGvQdO,5:tOOQS7+%x7+%xOG{Q`O7+%xOHQQhO'#D]OHYQ`O,59vO)zQhO,59vOOQ[1G/u1G/uOHbQ`O1G/uOHgQhO,5;mOOQO-E9P-E9POOQS7+&S7+&SOHuQbO'#DSOOQO'#Ej'#EjOITQ`O'#EiOOQO'#Ei'#EiOI`Q`O'#FSOIhQdO,5;SOOQS,5;S,5;SOOQ[1G/p1G/pOOQS7+&_7+&_O7QQ`O7+&_OIsQ!fO'#FOO)VQdO'#FOOJzQdO7+%uOOQO7+%u7+%uOOQO,5:q,5:qOOQO1G1V1G1VOK_Q!bO<nAN>nO! bQ`OAN>nO! gQaO,5;hOOQO-E8z-E8zO! qQdO,5;gOOQO-E8y-E8yOOQW<ZO)VQdO1G1QO!#nQ`O7+'^OOQO,5;l,5;lOOQO-E9O-E9OOOQW<Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#pIf#p#qIw#q#rJ`#r#sJq#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`KY<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!e`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$Q~OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%j~'yh$Q~!e`OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%jj)jS$dYOy%jz;'S%j;'S;=`%{<%lO%j~)yWOY)vZr)vrs*cs#O)v#O#P*h#P;'S)v;'S;=`+d<%lO)v~*hOw~~*kRO;'S)v;'S;=`*t;=`O)v~*wXOY)vZr)vrs*cs#O)v#O#P*h#P;'S)v;'S;=`+d;=`<%l)v<%lO)v~+gP;=`<%l)vj+oYmYOy%jz!Q%j!Q![,_![!c%j!c!i,_!i#T%j#T#Z,_#Z;'S%j;'S;=`%{<%lO%jj,dY!e`Oy%jz!Q%j!Q![-S![!c%j!c!i-S!i#T%j#T#Z-S#Z;'S%j;'S;=`%{<%lO%jj-XY!e`Oy%jz!Q%j!Q![-w![!c%j!c!i-w!i#T%j#T#Z-w#Z;'S%j;'S;=`%{<%lO%jj.OYuY!e`Oy%jz!Q%j!Q![.n![!c%j!c!i.n!i#T%j#T#Z.n#Z;'S%j;'S;=`%{<%lO%jj.uYuY!e`Oy%jz!Q%j!Q![/e![!c%j!c!i/e!i#T%j#T#Z/e#Z;'S%j;'S;=`%{<%lO%jj/jY!e`Oy%jz!Q%j!Q![0Y![!c%j!c!i0Y!i#T%j#T#Z0Y#Z;'S%j;'S;=`%{<%lO%jj0aYuY!e`Oy%jz!Q%j!Q![1P![!c%j!c!i1P!i#T%j#T#Z1P#Z;'S%j;'S;=`%{<%lO%jj1UY!e`Oy%jz!Q%j!Q![1t![!c%j!c!i1t!i#T%j#T#Z1t#Z;'S%j;'S;=`%{<%lO%jj1{SuY!e`Oy%jz;'S%j;'S;=`%{<%lO%jd2[UOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jd2uS!oS!e`Oy%jz;'S%j;'S;=`%{<%lO%jb3WS^QOy%jz;'S%j;'S;=`%{<%lO%j~3gWOY3dZw3dwx*cx#O3d#O#P4P#P;'S3d;'S;=`4{<%lO3d~4SRO;'S3d;'S;=`4];=`O3d~4`XOY3dZw3dwx*cx#O3d#O#P4P#P;'S3d;'S;=`4{;=`<%l3d<%lO3d~5OP;=`<%l3dj5WShYOy%jz;'S%j;'S;=`%{<%lO%j~5iOg~n5pUWQyWOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jj6ZWyW!uQOy%jz!O%j!O!P6s!P!Q%j!Q![9x![;'S%j;'S;=`%{<%lO%jj6xU!e`Oy%jz!Q%j!Q![7[![;'S%j;'S;=`%{<%lO%jj7cY!e`$]YOy%jz!Q%j!Q![7[![!g%j!g!h8R!h#X%j#X#Y8R#Y;'S%j;'S;=`%{<%lO%jj8WY!e`Oy%jz{%j{|8v|}%j}!O8v!O!Q%j!Q![9_![;'S%j;'S;=`%{<%lO%jj8{U!e`Oy%jz!Q%j!Q![9_![;'S%j;'S;=`%{<%lO%jj9fU!e`$]YOy%jz!Q%j!Q![9_![;'S%j;'S;=`%{<%lO%jj:P[!e`$]YOy%jz!O%j!O!P7[!P!Q%j!Q![9x![!g%j!g!h8R!h#X%j#X#Y8R#Y;'S%j;'S;=`%{<%lO%jj:zS!aYOy%jz;'S%j;'S;=`%{<%lO%jj;]WyWOy%jz!O%j!O!P6s!P!Q%j!Q![9x![;'S%j;'S;=`%{<%lO%jj;zU`YOy%jz!Q%j!Q![7[![;'S%j;'S;=`%{<%lO%j~VUcYOy%jz![%j![!]>i!];'S%j;'S;=`%{<%lO%jj>pSdY!e`Oy%jz;'S%j;'S;=`%{<%lO%jj?RSnYOy%jz;'S%j;'S;=`%{<%lO%jh?dU!WWOy%jz!_%j!_!`?v!`;'S%j;'S;=`%{<%lO%jh?}S!WW!e`Oy%jz;'S%j;'S;=`%{<%lO%jl@bS!WW!oSOy%jz;'S%j;'S;=`%{<%lO%jj@uV!rQ!WWOy%jz!_%j!_!`?v!`!aA[!a;'S%j;'S;=`%{<%lO%jbAcS!rQ!e`Oy%jz;'S%j;'S;=`%{<%lO%jjArYOy%jz}%j}!OBb!O!c%j!c!}CP!}#T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jjBgW!e`Oy%jz!c%j!c!}CP!}#T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jjCW[lY!e`Oy%jz}%j}!OCP!O!Q%j!Q![CP![!c%j!c!}CP!}#T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jhDRS!pWOy%jz;'S%j;'S;=`%{<%lO%jjDdSpYOy%jz;'S%j;'S;=`%{<%lO%jnDuSo^Oy%jz;'S%j;'S;=`%{<%lO%jjEWU!pWOy%jz#a%j#a#bEj#b;'S%j;'S;=`%{<%lO%jbEoU!e`Oy%jz#d%j#d#eFR#e;'S%j;'S;=`%{<%lO%jbFWU!e`Oy%jz#c%j#c#dFj#d;'S%j;'S;=`%{<%lO%jbFoU!e`Oy%jz#f%j#f#gGR#g;'S%j;'S;=`%{<%lO%jbGWU!e`Oy%jz#h%j#h#iGj#i;'S%j;'S;=`%{<%lO%jbGoU!e`Oy%jz#T%j#T#UHR#U;'S%j;'S;=`%{<%lO%jbHWU!e`Oy%jz#b%j#b#cHj#c;'S%j;'S;=`%{<%lO%jbHoU!e`Oy%jz#h%j#h#iIR#i;'S%j;'S;=`%{<%lO%jbIYS$cQ!e`Oy%jz;'S%j;'S;=`%{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|U$XUOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU!uQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[he,ge,me,je,1,2,3,4,new G("m~RRYZ[z{a~~g~aO$T~~dP!P!Qg~lO$U~~",28,142)],topRules:{StyleSheet:[0,6],Styles:[1,116]},dynamicPrecedences:{84:1},specialized:[{term:137,get:e=>Se[e]||-1},{term:138,get:e=>fe[e]||-1},{term:4,get:e=>Pe[e]||-1},{term:28,get:e=>Xe[e]||-1},{term:136,get:e=>be[e]||-1}],tokenPrec:2256});let $=null;function m(){if(!$&&typeof document=="object"&&document.body){let{style:e}=document.body,O=[],o=new Set;for(let a in e)a!="cssText"&&a!="cssFloat"&&typeof e[a]=="string"&&(/[A-Z]/.test(a)&&(a=a.replace(/[A-Z]/g,r=>"-"+r.toLowerCase())),o.has(a)||(O.push(a),o.add(a)));$=O.sort().map(a=>({type:"property",label:a,apply:a+": "}))}return $||[]}const f=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),P=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),we=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),ke=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(e=>({type:"keyword",label:e})),d=/^(\w[\w-]*|-\w[\w-]*|)$/,Re=/^-(-[\w-]*)?$/;function ze(e,O){var o;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let a=(o=e.parent)===null||o===void 0?void 0:o.firstChild;return a?.name!="Callee"?!1:O.sliceString(a.from,a.to)=="var"}const X=new N,xe=["Declaration"];function Ye(e){for(let O=e;;){if(O.type.isTop)return O;if(!(O=O.parent))return e}}function z(e,O,o){if(O.to-O.from>4096){let a=X.get(O);if(a)return a;let r=[],l=new Set,i=O.cursor(I.IncludeAnonymous);if(i.firstChild())do for(let n of z(e,i.node,o))l.has(n.label)||(l.add(n.label),r.push(n));while(i.nextSibling());return X.set(O,r),r}else{let a=[],r=new Set;return O.cursor().iterate(l=>{var i;if(o(l)&&l.matchContext(xe)&&((i=l.node.nextSibling)===null||i===void 0?void 0:i.name)==":"){let n=e.sliceString(l.from,l.to);r.has(n)||(r.add(n),a.push({label:n,type:"variable"}))}}),a}}const We=e=>O=>{let{state:o,pos:a}=O,r=F(o).resolveInner(a,-1),l=r.type.isError&&r.from==r.to-1&&o.doc.sliceString(r.from,r.to)=="-";if(r.name=="PropertyName"||(l||r.name=="TagName")&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:m(),validFor:d};if(r.name=="ValueName")return{from:r.from,options:P,validFor:d};if(r.name=="PseudoClassName")return{from:r.from,options:f,validFor:d};if(e(r)||(O.explicit||l)&&ze(r,o.doc))return{from:e(r)||l?r.from:a,options:z(o.doc,Ye(r),e),validFor:Re};if(r.name=="TagName"){for(let{parent:s}=r;s;s=s.parent)if(s.name=="Block")return{from:r.from,options:m(),validFor:d};return{from:r.from,options:we,validFor:d}}if(r.name=="AtKeyword")return{from:r.from,options:ke,validFor:d};if(!O.explicit)return null;let i=r.resolve(a),n=i.childBefore(a);return n&&n.name==":"&&i.name=="PseudoClassSelector"?{from:a,options:f,validFor:d}:n&&n.name==":"&&i.name=="Declaration"||i.name=="ArgList"?{from:a,options:P,validFor:d}:i.name=="Block"||i.name=="Styles"?{from:a,options:m(),validFor:d}:null},Ze=We(e=>e.name=="VariableName"),b=E.define({name:"css",parser:ve.configure({props:[V.add({Declaration:_()}),U.add({"Block KeyframeList":q})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Ge(){return new C(b,b.data.of({autocomplete:Ze}))}const Te={name:"toml",startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(e,O){let o;if(!O.inString&&(o=e.match(/^('''|"""|'|")/))&&(O.stringType=o[0],O.inString=!0),e.sol()&&!O.inString&&O.inArray===0&&(O.lhs=!0),O.inString){for(;O.inString;)if(e.match(O.stringType))O.inString=!1;else if(e.peek()==="\\")e.next(),e.next();else{if(e.eol())break;e.match(/^.[^\\\"\']*/)}return O.lhs?"property":"string"}else{if(O.inArray&&e.peek()==="]")return e.next(),O.inArray--,"bracket";if(O.lhs&&e.peek()==="["&&e.skipTo("]"))return e.next(),e.peek()==="]"&&e.next(),"atom";if(e.peek()==="#")return e.skipToEnd(),"comment";if(e.eatSpace())return null;if(O.lhs&&e.eatWhile(function(a){return a!="="&&a!=" "}))return"property";if(O.lhs&&e.peek()==="=")return e.next(),O.lhs=!1,null;if(!O.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!O.lhs&&(e.match("true")||e.match("false")))return"atom";if(!O.lhs&&e.peek()==="[")return O.inArray++,e.next(),"bracket";if(!O.lhs&&e.match(/^\-?\d+(?:\.\d+)?/))return"number";e.eatSpace()||e.next()}return null},languageData:{commentTokens:{line:"#"}}},Ce={python:[J()],json:[A(),L(M())],toml:[B.define(Te)],css:[Ge()],text:[]};function Ie({value:e,onChange:O,language:o="text",readOnly:a=!1,height:r="400px",minHeight:l,maxHeight:i,placeholder:n,theme:s,className:x=""}){const{resolvedTheme:Y}=H(),h=[...Ce[o]||[],p.lineWrapping,p.theme({"&":{fontFamily:'"JetBrains Mono", "Fira Code", "Consolas", "Monaco", monospace'},".cm-content":{fontFamily:'"JetBrains Mono", "Fira Code", "Consolas", "Monaco", monospace'},".cm-gutters":{fontFamily:'"JetBrains Mono", "Fira Code", "Consolas", "Monaco", monospace'},".cm-scroller":{fontFamily:'"JetBrains Mono", "Fira Code", "Consolas", "Monaco", monospace'}})];a&&h.push(p.editable.of(!1));const W=s??Y;return g.jsx("div",{className:`custom-scrollbar overflow-hidden rounded-md border ${x}`,children:g.jsx(D,{value:e,height:r,minHeight:l,maxHeight:i,theme:W==="dark"?K:void 0,extensions:h,onChange:O,placeholder:n,basicSetup:{lineNumbers:!0,highlightActiveLineGutter:!0,highlightSpecialChars:!0,history:!0,foldGutter:!0,drawSelection:!0,dropCursor:!0,allowMultipleSelections:!0,indentOnInput:!0,syntaxHighlighting:!0,bracketMatching:!0,closeBrackets:!0,autocompletion:!0,rectangularSelection:!0,crosshairCursor:!0,highlightActiveLine:!0,highlightSelectionMatches:!0,closeBracketsKeymap:!0,defaultKeymap:!0,searchKeymap:!0,historyKeymap:!0,foldKeymap:!0,completionKeymap:!0,lintKeymap:!0}})})}export{Ie as default}; diff --git a/dashboard/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 b/dashboard/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 new file mode 100644 index 00000000..0acaaff0 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff b/dashboard/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff new file mode 100644 index 00000000..b804d7b3 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff differ diff --git a/dashboard/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf b/dashboard/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf new file mode 100644 index 00000000..c6f9a5e7 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf b/dashboard/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf new file mode 100644 index 00000000..9ff4a5e0 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff b/dashboard/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff new file mode 100644 index 00000000..9759710d Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff differ diff --git a/dashboard/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 b/dashboard/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 new file mode 100644 index 00000000..f390922e Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff b/dashboard/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff new file mode 100644 index 00000000..9bdd534f Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff differ diff --git a/dashboard/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 b/dashboard/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 new file mode 100644 index 00000000..75344a1f Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf b/dashboard/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf new file mode 100644 index 00000000..f522294f Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf b/dashboard/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf new file mode 100644 index 00000000..4e98259c Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff b/dashboard/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff new file mode 100644 index 00000000..e7730f66 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff differ diff --git a/dashboard/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 b/dashboard/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 new file mode 100644 index 00000000..395f28be Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf b/dashboard/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf new file mode 100644 index 00000000..b8461b27 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 b/dashboard/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 new file mode 100644 index 00000000..735f6948 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff b/dashboard/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff new file mode 100644 index 00000000..acab069f Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff differ diff --git a/dashboard/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 b/dashboard/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 new file mode 100644 index 00000000..ab2ad21d Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff b/dashboard/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff new file mode 100644 index 00000000..f38136ac Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff differ diff --git a/dashboard/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf b/dashboard/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf new file mode 100644 index 00000000..4060e627 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 b/dashboard/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 new file mode 100644 index 00000000..5931794d Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf b/dashboard/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf new file mode 100644 index 00000000..dc007977 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff b/dashboard/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff new file mode 100644 index 00000000..67807b0b Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff differ diff --git a/dashboard/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf b/dashboard/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf new file mode 100644 index 00000000..0e9b0f35 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff b/dashboard/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff new file mode 100644 index 00000000..6f43b594 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff differ diff --git a/dashboard/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 b/dashboard/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 new file mode 100644 index 00000000..b50920e1 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 b/dashboard/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 new file mode 100644 index 00000000..eb24a7ba Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff b/dashboard/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff new file mode 100644 index 00000000..21f58129 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff differ diff --git a/dashboard/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf b/dashboard/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf new file mode 100644 index 00000000..dd45e1ed Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf b/dashboard/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf new file mode 100644 index 00000000..728ce7a1 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 b/dashboard/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 new file mode 100644 index 00000000..29657023 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff b/dashboard/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff new file mode 100644 index 00000000..0ae390d7 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff differ diff --git a/dashboard/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff b/dashboard/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff new file mode 100644 index 00000000..eb5159d4 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff differ diff --git a/dashboard/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf b/dashboard/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf new file mode 100644 index 00000000..70d559b4 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 b/dashboard/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 new file mode 100644 index 00000000..215c143f Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf b/dashboard/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf new file mode 100644 index 00000000..2f65a8a3 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf differ diff --git a/dashboard/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 b/dashboard/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 new file mode 100644 index 00000000..cfaa3bda Binary files /dev/null and b/dashboard/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff b/dashboard/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff new file mode 100644 index 00000000..8d47c02d Binary files /dev/null and b/dashboard/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff differ diff --git a/dashboard/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 b/dashboard/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 new file mode 100644 index 00000000..349c06dc Binary files /dev/null and b/dashboard/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff b/dashboard/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff new file mode 100644 index 00000000..7e02df96 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff differ diff --git a/dashboard/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf b/dashboard/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf new file mode 100644 index 00000000..d5850df9 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf differ diff --git a/dashboard/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf b/dashboard/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf new file mode 100644 index 00000000..537279f6 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf differ diff --git a/dashboard/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff b/dashboard/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff new file mode 100644 index 00000000..31b84829 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff differ diff --git a/dashboard/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 b/dashboard/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 new file mode 100644 index 00000000..a90eea85 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf b/dashboard/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf new file mode 100644 index 00000000..fd679bf3 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 b/dashboard/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 new file mode 100644 index 00000000..b3048fc1 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_Script-Regular-D5yQViql.woff b/dashboard/dist/assets/KaTeX_Script-Regular-D5yQViql.woff new file mode 100644 index 00000000..0e7da821 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Script-Regular-D5yQViql.woff differ diff --git a/dashboard/dist/assets/KaTeX_Size1-Regular-C195tn64.woff b/dashboard/dist/assets/KaTeX_Size1-Regular-C195tn64.woff new file mode 100644 index 00000000..7f292d91 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Size1-Regular-C195tn64.woff differ diff --git a/dashboard/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf b/dashboard/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf new file mode 100644 index 00000000..871fd7d1 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 b/dashboard/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 new file mode 100644 index 00000000..c5a8462f Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf b/dashboard/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf new file mode 100644 index 00000000..7a212caf Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 b/dashboard/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 new file mode 100644 index 00000000..e1bccfe2 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff b/dashboard/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff new file mode 100644 index 00000000..d241d9be Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff differ diff --git a/dashboard/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff b/dashboard/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff new file mode 100644 index 00000000..e6e9b658 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff differ diff --git a/dashboard/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf b/dashboard/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf new file mode 100644 index 00000000..00bff349 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff b/dashboard/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff new file mode 100644 index 00000000..e1ec5457 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff differ diff --git a/dashboard/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf b/dashboard/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf new file mode 100644 index 00000000..74f08921 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf differ diff --git a/dashboard/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 b/dashboard/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 new file mode 100644 index 00000000..680c1308 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff b/dashboard/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff new file mode 100644 index 00000000..2432419f Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff differ diff --git a/dashboard/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 b/dashboard/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 new file mode 100644 index 00000000..771f1af7 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 differ diff --git a/dashboard/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf b/dashboard/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf new file mode 100644 index 00000000..c83252c5 Binary files /dev/null and b/dashboard/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf differ diff --git a/dashboard/dist/assets/ProviderList-4mOft0xL.js b/dashboard/dist/assets/ProviderList-4mOft0xL.js new file mode 100644 index 00000000..32efe828 --- /dev/null +++ b/dashboard/dist/assets/ProviderList-4mOft0xL.js @@ -0,0 +1 @@ +import{r as o,j as e}from"./router-zNjPR4CY.js";import{g as S,a7 as re,a8 as oe,a9 as ce,aa as de,E as me,D as pe,i as ue,j as he,k as xe,l as ge,a5 as je,L as A,B as p,S as fe,I as F,a3 as be}from"./index-CuOHsLf7.js";import{_ as h}from"./misc-BwRzHX8c.js";import{S as V,Y as ye,an as ve,b as Ne,$ as _e,a0 as Ce,c as ke,L as E,_ as q,u as $,v as H,e as M,W as Q,f as Z,ap as we,G as Ie,y as Ae,aq as Se}from"./icons-DTcdLw9j.js";import{P as Be,a as Fe,b as Te}from"./popover-DSuRLFDH.js";import{S as J,a as Y,b as X,c as ee,d as P}from"./select-DGqIoF9r.js";import{B as N}from"./badge-CDs67obV.js";import{C as K}from"./checkbox-DWiVrbnx.js";import{T as Oe,a as Pe,b as U,c as I,d as Le,e as k}from"./table-DFeDhBY_.js";const Qe="model-assignment-tour",De=[{target:"body",content:"本引导会帮你在同一个页面完成模型厂商、模型列表和功能分配配置。",placement:"center",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!1},{target:'[data-tour="providers-tab-trigger"]',content:'第一步,进入"模型厂商设置"。这里用于配置要连接的模型服务厂商或模型平台。',placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!0,hideFooter:!0},{target:'[data-tour="add-provider-button"]',content:'点击"添加提供商"按钮,开始配置模型厂商的连接信息。',placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!0,hideFooter:!0},{target:'[data-tour="provider-dialog"]',content:"在这里可以选择厂商模板,填写 API Key、URL 和连接参数,保存后即可供模型引用。",placement:"left",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!1},{target:'[data-tour="provider-name-input"]',content:"这里的名称用于在后续模型配置中识别这个厂商。",placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!1},{target:'[data-tour="provider-apikey-input"]',content:"这里填写从模型厂商获取的 API Key,用于验证并调用模型服务。",placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!1},{target:'[data-tour="provider-url-input"]',content:"这里填写模型厂商的 API 访问地址。不同厂商或平台的地址可能不同。",placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!1},{target:'[data-tour="provider-template-select"]',content:"如果不确定如何填写,可以从预设模板中选择常用厂商,相关信息会自动填充。",placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!1},{target:'[data-tour="provider-save-button"]',content:"填写完成后点击保存,模型厂商就配置好了。",placement:"top",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!1},{target:'[data-tour="provider-cancel-button"]',content:"这次只是演示流程,点击取消关闭厂商配置窗口。",placement:"top",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!0,hideFooter:!0},{target:'[data-tour="models-tab-trigger"]',content:'厂商配置完成后,切换到"添加模型",把具体要使用的模型加入列表。',placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!0,hideFooter:!0},{target:'[data-tour="add-model-button"]',content:'点击"添加模型"按钮,开始添加一个可分配给功能的模型。',placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!0,hideFooter:!0},{target:'[data-tour="model-dialog"]',content:"在这里选择刚才配置好的厂商,并填写模型名称、标识符、价格和能力参数。",placement:"left",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!1},{target:'[data-tour="model-name-input"]',content:"模型名称用于在任务分配时识别这个模型。",placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!1},{target:'[data-tour="model-provider-select"]',content:"这里选择模型所属的厂商,系统会根据厂商配置获取或调用对应模型。",placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!1},{target:'[data-tour="model-identifier-input"]',content:"这里填写模型标识符。不同厂商的模型标识符格式可能不同,请参考对应厂商文档。",placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!1},{target:'[data-tour="model-save-button"]',content:"填写完成后点击保存,模型就会加入可用模型列表。",placement:"top",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!1},{target:'[data-tour="model-cancel-button"]',content:"这次只是演示流程,点击取消关闭模型配置窗口。",placement:"top",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!0,hideFooter:!0},{target:'[data-tour="tasks-tab-trigger"]',content:'最后切换到"为模型分配功能",为麦麦的各个组件选择合适的模型。',placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!0,hideFooter:!0},{target:'[data-tour="task-model-select"]',content:"在这里可以为每个组件选择一个或多个模型,选择完成后配置会自动保存。",placement:"bottom",disableBeacon:!0,disableOverlayClose:!0,hideCloseButton:!1,spotlightClicks:!1}],Ze=Object.fromEntries(De.map((a,l)=>[l,"/config/model"])),se=o.forwardRef(({className:a,...l},i)=>e.jsx(h,{ref:i,className:S("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",a),...l}));se.displayName=h.displayName;const ae=o.forwardRef(({className:a,...l},i)=>e.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[e.jsx(V,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e.jsx(h.Input,{ref:i,className:S("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",a),...l})]}));ae.displayName=h.Input.displayName;const te=o.forwardRef(({className:a,...l},i)=>e.jsx(h.List,{ref:i,className:S("max-h-[300px] overflow-y-auto overflow-x-hidden",a),...l}));te.displayName=h.List.displayName;const le=o.forwardRef((a,l)=>e.jsx(h.Empty,{ref:l,className:"py-6 text-center text-sm",...a}));le.displayName=h.Empty.displayName;const ie=o.forwardRef(({className:a,...l},i)=>e.jsx(h.Group,{ref:i,className:S("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",a),...l}));ie.displayName=h.Group.displayName;const Re=o.forwardRef(({className:a,...l},i)=>e.jsx(h.Separator,{ref:i,className:S("-mx-1 h-px bg-border",a),...l}));Re.displayName=h.Separator.displayName;const ne=o.forwardRef(({className:a,...l},i)=>e.jsx(h.Item,{ref:i,className:S("relative flex cursor-pointer gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",a),...l}));ne.displayName=h.Item.displayName;function T({content:a,className:l,iconClassName:i,side:c="top",align:w="center",maxWidth:_="300px"}){return e.jsx(re,{delayDuration:200,children:e.jsxs(oe,{children:[e.jsx(ce,{asChild:!0,children:e.jsxs("button",{type:"button",className:S("inline-flex items-center justify-center rounded-full","text-muted-foreground hover:text-foreground","transition-colors cursor-help","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",l),onClick:C=>C.preventDefault(),children:[e.jsx(ye,{className:S("h-4 w-4",i)}),e.jsx("span",{className:"sr-only",children:"帮助信息"})]})}),e.jsx(de,{side:c,align:w,className:S("max-w-[var(--max-width)] text-sm leading-relaxed","bg-background text-foreground","border-2 border-primary shadow-lg","p-4"),style:{"--max-width":_},children:a})]})})}const D=[{id:"siliconflow",name:"SiliconFlow",base_url:"https://api.siliconflow.cn/v1",client_type:"openai",display_name:"硅基流动 (SiliconFlow)",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"deepseek",name:"DeepSeek",base_url:"https://api.deepseek.com",client_type:"openai",display_name:"DeepSeek",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"rinkoai",name:"RinkoAI",base_url:"https://rinkoai.com/v1",client_type:"openai",display_name:"RinkoAI",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"zhipu",name:"ZhipuAI",base_url:"https://open.bigmodel.cn/api/paas/v4",client_type:"openai",display_name:"智谱 AI (ZhipuAI / GLM)",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"moonshot",name:"Moonshot",base_url:"https://api.moonshot.cn/v1",client_type:"openai",display_name:"月之暗面 (Moonshot / Kimi)",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"doubao",name:"Doubao",base_url:"https://ark.cn-beijing.volces.com/api/v3",client_type:"openai",display_name:"字节豆包 (Doubao)",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"alibaba",name:"Alibaba",base_url:"https://dashscope.aliyuncs.com/compatible-mode/v1",client_type:"openai",display_name:"阿里云百炼 (Alibaba Qwen)",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"baichuan",name:"Baichuan",base_url:"https://api.baichuan-ai.com/v1",client_type:"openai",display_name:"百川智能 (Baichuan)",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"minimax",name:"MiniMax",base_url:"https://api.minimax.chat/v1",client_type:"openai",display_name:"MiniMax (海螺 AI)",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"stepfun",name:"StepFun",base_url:"https://api.stepfun.com/v1",client_type:"openai",display_name:"阶跃星辰 (StepFun)",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"lingyi",name:"Lingyi",base_url:"https://api.lingyiwanwu.com/v1",client_type:"openai",display_name:"零一万物 (Lingyi / Yi)",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"openai",name:"OpenAI",base_url:"https://api.openai.com/v1",client_type:"openai",display_name:"OpenAI",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"xai",name:"xAI",base_url:"https://api.x.ai/v1",client_type:"openai",display_name:"xAI (Grok)",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"anthropic",name:"Anthropic",base_url:"https://api.anthropic.com/v1",client_type:"openai",display_name:"Anthropic (Claude)"},{id:"gemini",name:"Gemini",base_url:"https://generativelanguage.googleapis.com/v1beta",client_type:"gemini",display_name:"Google Gemini",modelFetcher:{endpoint:"/models",parser:"gemini"}},{id:"cohere",name:"Cohere",base_url:"https://api.cohere.ai/v1",client_type:"openai",display_name:"Cohere"},{id:"groq",name:"Groq",base_url:"https://api.groq.com/openai/v1",client_type:"openai",display_name:"Groq",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"together",name:"Together AI",base_url:"https://api.together.xyz/v1",client_type:"openai",display_name:"Together AI",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"fireworks",name:"Fireworks",base_url:"https://api.fireworks.ai/inference/v1",client_type:"openai",display_name:"Fireworks AI",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"mistral",name:"Mistral",base_url:"https://api.mistral.ai/v1",client_type:"openai",display_name:"Mistral AI",modelFetcher:{endpoint:"/models",parser:"openai"}},{id:"perplexity",name:"Perplexity",base_url:"https://api.perplexity.ai",client_type:"openai",display_name:"Perplexity AI"},{id:"custom",name:"",base_url:"",client_type:"openai",display_name:"自定义"}];function W(a){return a?a.replace(/\/+$/,"").toLowerCase():""}function Je(a){if(!a)return null;const l=W(a);return D.find(i=>i.id!=="custom"&&W(i.base_url)===l)||null}const Ye=a=>({...a,max_retry:a.max_retry??2,timeout:a.timeout??30,retry_interval:a.retry_interval??10}),ze=(a,l=[],i=null)=>{const c={};return a?(a.name?.trim()?l.some((_,C)=>i!==null&&C===i?!1:_.name.trim().toLowerCase()===a.name.trim().toLowerCase())&&(c.name="提供商名称已存在,请使用其他名称"):c.name="请输入提供商名称",a.base_url?.trim()||(c.base_url="请输入基础 URL"),a.api_key?.trim()||(c.api_key="请输入 API Key"),{isValid:Object.keys(c).length===0,errors:c}):{isValid:!1,errors:{name:"提供商数据为空"}}};function Xe({open:a,onOpenChange:l,editingProvider:i,editingIndex:c,providers:w,onSave:_,tourState:C}){const[n,f]=o.useState({}),[g,j]=o.useState("custom"),[R,x]=o.useState(!1),[b,y]=o.useState(!1),[u,m]=o.useState(i),{toast:O}=me();o.useEffect(()=>{if(!a){m(null),f({}),y(!1),j("custom");return}if(m(i),f({}),y(!1),i){const t=D.find(s=>s.base_url===i.base_url&&s.client_type===i.client_type);j(t?.id||"custom")}else j("custom")},[a,i,c]);const d=o.useMemo(()=>g!=="custom",[g]),B=o.useCallback(t=>{j(t),x(!1);const s=D.find(r=>r.id===t);s&&s.id!=="custom"?m(r=>({...r,name:s.name,base_url:s.base_url,client_type:s.client_type})):s?.id==="custom"&&m(r=>({...r,name:"",base_url:"",client_type:"openai"}))},[]),L=o.useCallback(async()=>{if(u?.api_key)try{await navigator.clipboard.writeText(u.api_key),O({title:"复制成功",description:"API Key 已复制到剪贴板"})}catch{O({title:"复制失败",description:"无法访问剪贴板",variant:"destructive"})}},[u?.api_key,O]),z=()=>{if(!u)return;const{isValid:t,errors:s}=ze(u,w,c);if(!t){f(s);return}f({}),_(u,c)};return e.jsx(pe,{open:a,onOpenChange:l,children:e.jsxs(ue,{className:"max-w-[95vw] sm:max-w-2xl","data-tour":"provider-dialog",preventOutsideClose:C.isRunning,confirmOnEnter:!0,children:[e.jsxs(he,{children:[e.jsx(xe,{children:c!==null?"编辑提供商":"添加提供商"}),e.jsx(ge,{children:"配置 API 提供商的连接信息和参数"})]}),e.jsxs("form",{onSubmit:t=>{t.preventDefault(),z()},autoComplete:"off",className:"contents",children:[e.jsx(je,{children:e.jsxs("div",{className:"grid gap-4 py-4",children:[e.jsxs("div",{className:"grid gap-2","data-tour":"provider-template-select",children:[e.jsx(A,{htmlFor:"template",children:"提供商模板"}),e.jsxs(Be,{open:R,onOpenChange:x,children:[e.jsx(Fe,{asChild:!0,children:e.jsxs(p,{variant:"outline",role:"combobox","aria-expanded":R,className:"w-full justify-between",children:[g?D.find(t=>t.id===g)?.display_name:"选择提供商模板...",e.jsx(ve,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e.jsx(Te,{className:"p-0",align:"start",style:{width:"var(--radix-popover-trigger-width)"},children:e.jsxs(se,{children:[e.jsx(ae,{placeholder:"搜索提供商模板..."}),e.jsx(fe,{className:"h-[300px]",children:e.jsxs(te,{className:"max-h-none overflow-visible",children:[e.jsx(le,{children:"未找到匹配的模板"}),e.jsx(ie,{children:D.map(t=>e.jsxs(ne,{value:t.display_name,onSelect:()=>B(t.id),children:[e.jsx(Ne,{className:`mr-2 h-4 w-4 ${g===t.id?"opacity-100":"opacity-0"}`}),t.display_name]},t.id))})]})})]})})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"选择预设模板可自动填充 URL 和客户端类型,支持搜索"})]}),e.jsxs("div",{className:"grid gap-2","data-tour":"provider-name-input",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(A,{htmlFor:"name",className:n.name?"text-destructive":"",children:"名称 *"}),e.jsx(T,{content:e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"font-medium",children:"提供商名称"}),e.jsx("p",{children:"为这个 API 提供商设置一个便于识别的名称,用于在模型配置中引用。"}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-xs",children:[e.jsx("li",{children:"推荐使用厂商官方名称,如 DeepSeek、OpenAI"}),e.jsx("li",{children:"名称需要唯一,不能与现有提供商重复"})]})]}),side:"right",maxWidth:"350px"})]}),e.jsx(F,{id:"name",value:u?.name||"",onChange:t=>{m(s=>s?{...s,name:t.target.value}:null),n.name&&f(s=>({...s,name:void 0}))},placeholder:"例如: DeepSeek, SiliconFlow","aria-invalid":n.name?!0:void 0,"aria-describedby":n.name?"name-error":void 0,className:n.name?"border-destructive focus-visible:ring-destructive":""}),n.name&&e.jsx("p",{id:"name-error",role:"alert",className:"text-xs text-destructive",children:n.name})]}),e.jsxs("div",{className:"grid gap-2","data-tour":"provider-url-input",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(A,{htmlFor:"base_url",className:n.base_url?"text-destructive":"",children:"基础 URL *"}),e.jsx(T,{content:e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"font-medium",children:"API 基础地址"}),e.jsx("p",{children:"提供商的 API 端点基础 URL,通常以 /v1 结尾。"}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-xs",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"OpenAI 格式:"}),"https://api.openai.com/v1"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"DeepSeek:"}),"https://api.deepseek.com"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"硅基流动:"}),"https://api.siliconflow.cn/v1"]}),e.jsx("li",{children:"选择模板会自动填充正确的 URL"})]})]}),side:"right",maxWidth:"400px"})]}),e.jsx(F,{id:"base_url",value:u?.base_url||"",onChange:t=>{m(s=>s?{...s,base_url:t.target.value}:null),n.base_url&&f(s=>({...s,base_url:void 0}))},placeholder:"https://api.example.com/v1",disabled:d,"aria-invalid":n.base_url?!0:void 0,"aria-describedby":n.base_url?"base-url-error":void 0,className:`${d?"bg-muted cursor-not-allowed":""} ${n.base_url?"border-destructive focus-visible:ring-destructive":""}`}),n.base_url&&e.jsx("p",{id:"base-url-error",role:"alert",className:"text-xs text-destructive",children:n.base_url}),d&&!n.base_url&&e.jsx("p",{className:"text-xs text-muted-foreground",children:'使用模板时 URL 不可编辑,切换到"自定义"以手动配置'})]}),e.jsxs("div",{className:"grid gap-2","data-tour":"provider-apikey-input",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(A,{htmlFor:"api_key",className:n.api_key?"text-destructive":"",children:"API Key *"}),e.jsx(T,{content:e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"font-medium",children:"API 密钥"}),e.jsx("p",{children:"从提供商平台获取的身份验证密钥。"}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-xs",children:[e.jsxs("li",{children:["通常以 ",e.jsx("code",{children:"sk-"})," 开头"]}),e.jsx("li",{children:"请妥善保管,不要泄露给他人"}),e.jsx("li",{children:"可以点击眼睛图标切换显示/隐藏"}),e.jsx("li",{children:"点击复制图标可快速复制密钥"})]})]}),side:"right",maxWidth:"350px"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(F,{id:"api_key",type:b?"text":"password",value:u?.api_key||"",onChange:t=>{m(s=>s?{...s,api_key:t.target.value}:null),n.api_key&&f(s=>({...s,api_key:void 0}))},placeholder:"sk-...","aria-invalid":n.api_key?!0:void 0,"aria-describedby":n.api_key?"api-key-error":void 0,className:`flex-1 ${n.api_key?"border-destructive focus-visible:ring-destructive":""}`}),e.jsx(p,{type:"button",variant:"outline",size:"icon",onClick:()=>y(!b),title:b?"隐藏密钥":"显示密钥",children:b?e.jsx(_e,{className:"h-4 w-4"}):e.jsx(Ce,{className:"h-4 w-4"})}),e.jsx(p,{type:"button",variant:"outline",size:"icon",onClick:L,title:"复制密钥",children:e.jsx(ke,{className:"h-4 w-4"})})]}),n.api_key&&e.jsx("p",{id:"api-key-error",role:"alert",className:"text-xs text-destructive",children:n.api_key})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(A,{htmlFor:"client_type",children:"客户端类型"}),e.jsx(T,{content:e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"font-medium",children:"API 客户端类型"}),e.jsx("p",{children:"指定与提供商通信时使用的 API 协议格式。"}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-xs",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"OpenAI:"}),"兼容 OpenAI API 格式的提供商"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Gemini:"}),"Google Gemini 专用格式"]}),e.jsx("li",{children:"大部分第三方提供商都兼容 OpenAI 格式"})]})]}),side:"right",maxWidth:"350px"})]}),e.jsxs(J,{value:u?.client_type||"openai",onValueChange:t=>m(s=>s?{...s,client_type:t}:null),disabled:d,children:[e.jsx(Y,{id:"client_type",className:d?"bg-muted cursor-not-allowed":"",children:e.jsx(X,{placeholder:"选择客户端类型"})}),e.jsxs(ee,{children:[e.jsx(P,{value:"openai",children:"OpenAI"}),e.jsx(P,{value:"gemini",children:"Gemini"})]})]}),d&&e.jsx("p",{className:"text-xs text-muted-foreground",children:'使用模板时客户端类型不可编辑,切换到"自定义"以手动配置'})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(A,{htmlFor:"max_retry",children:"最大重试"}),e.jsx(T,{content:"API 请求失败时的最大重试次数。设置为 0 表示不重试。默认值:2",side:"top",maxWidth:"250px"})]}),e.jsx(F,{id:"max_retry",type:"number",min:"0",value:u?.max_retry??"",onChange:t=>{const s=t.target.value===""?null:parseInt(t.target.value);m(r=>r?{...r,max_retry:s}:null)},placeholder:"默认: 2"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(A,{htmlFor:"timeout",children:"超时(秒)"}),e.jsx(T,{content:"单次 API 请求的超时时间(秒)。超时后会触发重试或报错。默认值:30 秒",side:"top",maxWidth:"250px"})]}),e.jsx(F,{id:"timeout",type:"number",min:"1",value:u?.timeout??"",onChange:t=>{const s=t.target.value===""?null:parseInt(t.target.value);m(r=>r?{...r,timeout:s}:null)},placeholder:"默认: 30"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(A,{htmlFor:"retry_interval",children:"重试间隔(秒)"}),e.jsx(T,{content:"两次重试之间的等待时间(秒)。适当的间隔可以避免触发 API 限流。默认值:10 秒",side:"top",maxWidth:"250px"})]}),e.jsx(F,{id:"retry_interval",type:"number",min:"1",value:u?.retry_interval??"",onChange:t=>{const s=t.target.value===""?null:parseInt(t.target.value);m(r=>r?{...r,retry_interval:s}:null)},placeholder:"默认: 10"})]})]})]})}),e.jsxs(be,{children:[e.jsx(p,{type:"button",variant:"outline",onClick:()=>l(!1),"data-tour":"provider-cancel-button",children:"取消"}),e.jsx(p,{type:"submit","data-dialog-action":"confirm","data-tour":"provider-save-button",children:"保存"})]})]})]})})}function Ee({provider:a,actualIndex:l,testingProviders:i,testResults:c,onEdit:w,onDelete:_,onTest:C}){const n=()=>{const f=i.has(a.name),g=c.get(a.name);return f?e.jsxs(N,{variant:"secondary",className:"gap-1",children:[e.jsx(E,{className:"h-3 w-3 animate-spin"}),"测试中"]}):g?g.network_ok?g.api_key_valid===!0?e.jsxs(N,{className:"gap-1 bg-green-600 hover:bg-green-700",children:[e.jsx(M,{className:"h-3 w-3"}),"正常"]}):g.api_key_valid===!1?e.jsxs(N,{variant:"destructive",className:"gap-1",children:[e.jsx(Q,{className:"h-3 w-3"}),"Key无效"]}):e.jsxs(N,{className:"gap-1 bg-blue-600 hover:bg-blue-700",children:[e.jsx(M,{className:"h-3 w-3"}),"可访问"]}):e.jsxs(N,{variant:"destructive",className:"gap-1",children:[e.jsx(Z,{className:"h-3 w-3"}),"离线"]}):null};return e.jsxs("div",{className:"rounded-lg border bg-card p-4 space-y-3",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("h3",{className:"font-semibold text-base truncate",children:a.name}),n()]}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1 break-all",children:a.base_url})]}),e.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[e.jsx(p,{variant:"outline",size:"sm",onClick:()=>C(a.name),disabled:i.has(a.name),title:"测试连接",children:i.has(a.name)?e.jsx(E,{className:"h-4 w-4 animate-spin"}):e.jsx(q,{className:"h-4 w-4"})}),e.jsx(p,{variant:"default",size:"sm",onClick:()=>w(a,l),children:e.jsx($,{className:"h-4 w-4",strokeWidth:2,fill:"none"})}),e.jsx(p,{size:"sm",onClick:()=>_(l),className:"bg-red-600 hover:bg-red-700 text-white",children:e.jsx(H,{className:"h-4 w-4",strokeWidth:2,fill:"none"})})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground text-xs",children:"客户端类型"}),e.jsx("p",{className:"font-medium",children:a.client_type})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground text-xs",children:"最大重试"}),e.jsx("p",{className:"font-medium",children:a.max_retry})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground text-xs",children:"超时(秒)"}),e.jsx("p",{className:"font-medium",children:a.timeout})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground text-xs",children:"重试间隔(秒)"}),e.jsx("p",{className:"font-medium",children:a.retry_interval})]})]})]})}function es({providers:a,testingProviders:l,testResults:i,selectedProviders:c,toolbarActions:w,onEdit:_,onDelete:C,onTest:n,onToggleSelect:f,onToggleSelectAll:g}){const[j,R]=o.useState(""),[x,b]=o.useState(1),[y,u]=o.useState(20),[m,O]=o.useState(""),d=o.useMemo(()=>{if(!j)return a;const s=j.toLowerCase();return a.filter(r=>r.name.toLowerCase().includes(s)||r.base_url.toLowerCase().includes(s)||r.client_type.toLowerCase().includes(s))},[a,j]),{totalPages:B,paginatedProviders:L}=o.useMemo(()=>{const s=Math.ceil(d.length/y),r=d.slice((x-1)*y,x*y);return{totalPages:s,paginatedProviders:r}},[d,x,y]),z=o.useCallback(()=>{const s=parseInt(m);s>=1&&s<=B&&(b(s),O(""))},[m,B]),t=s=>{const r=l.has(s),v=i.get(s);return r?e.jsxs(N,{variant:"secondary",className:"gap-1",children:[e.jsx(E,{className:"h-3 w-3 animate-spin"}),"测试中"]}):v?v.network_ok?v.api_key_valid===!0?e.jsxs(N,{className:"gap-1 bg-green-600 hover:bg-green-700",children:[e.jsx(M,{className:"h-3 w-3"}),"正常"]}):v.api_key_valid===!1?e.jsxs(N,{variant:"destructive",className:"gap-1",children:[e.jsx(Q,{className:"h-3 w-3"}),"Key无效"]}):e.jsxs(N,{className:"gap-1 bg-blue-600 hover:bg-blue-700",children:[e.jsx(M,{className:"h-3 w-3"}),"可访问"]}):e.jsxs(N,{variant:"destructive",className:"gap-1",children:[e.jsx(Z,{className:"h-3 w-3"}),"离线"]}):e.jsx(N,{variant:"outline",className:"text-muted-foreground",children:"未测试"})};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex w-full flex-col gap-2 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"relative w-full sm:flex-1 sm:max-w-sm",children:[e.jsx(V,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(F,{placeholder:"搜索提供商名称、URL 或类型...",value:j,onChange:s=>R(s.target.value),className:"pl-9"})]}),j&&e.jsxs("p",{className:"text-sm text-muted-foreground whitespace-nowrap",children:["找到 ",d.length," 个结果"]})]}),w&&e.jsx("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center sm:justify-end",children:w})]}),e.jsx("div",{className:"md:hidden space-y-3",children:d.length===0?e.jsx("div",{className:"text-center text-muted-foreground py-8 rounded-lg border bg-card",children:j?"未找到匹配的提供商":'暂无提供商配置,点击"添加提供商"开始配置'}):L.map((s,r)=>{const v=a.findIndex(G=>G===s);return e.jsx(Ee,{provider:s,actualIndex:v,testingProviders:l,testResults:i,onEdit:_,onDelete:C,onTest:n},r)})}),e.jsx("div",{className:"hidden md:block rounded-lg border bg-card overflow-hidden",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs(Oe,{"aria-label":"AI 模型提供商列表",children:[e.jsx(Pe,{children:e.jsxs(U,{children:[e.jsx(I,{className:"w-12",children:e.jsx(K,{checked:c.size===d.length&&d.length>0,onCheckedChange:g})}),e.jsx(I,{children:"状态"}),e.jsx(I,{children:"名称"}),e.jsx(I,{children:"基础URL"}),e.jsx(I,{children:"客户端类型"}),e.jsx(I,{className:"text-right",children:"最大重试"}),e.jsx(I,{className:"text-right",children:"超时(秒)"}),e.jsx(I,{className:"text-right",children:"重试间隔(秒)"}),e.jsx(I,{className:"text-right",children:"操作"})]})}),e.jsx(Le,{children:L.length===0?e.jsx(U,{children:e.jsx(k,{colSpan:9,className:"text-center text-muted-foreground py-8",children:j?"未找到匹配的提供商":'暂无提供商配置,点击"添加提供商"开始配置'})}):L.map((s,r)=>{const v=a.findIndex(G=>G===s);return e.jsxs(U,{children:[e.jsx(k,{children:e.jsx(K,{checked:c.has(v),onCheckedChange:()=>f(v)})}),e.jsx(k,{children:t(s.name)}),e.jsx(k,{className:"font-medium",children:s.name}),e.jsx(k,{className:"max-w-xs truncate",title:s.base_url,children:s.base_url}),e.jsx(k,{children:s.client_type}),e.jsx(k,{className:"text-right",children:s.max_retry}),e.jsx(k,{className:"text-right",children:s.timeout}),e.jsx(k,{className:"text-right",children:s.retry_interval}),e.jsx(k,{className:"text-right",children:e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(p,{variant:"outline",size:"sm",onClick:()=>n(s.name),disabled:l.has(s.name),title:"测试连接",children:l.has(s.name)?e.jsx(E,{className:"h-4 w-4 animate-spin"}):e.jsx(q,{className:"h-4 w-4"})}),e.jsxs(p,{variant:"default",size:"sm",onClick:()=>_(s,v),children:[e.jsx($,{className:"h-4 w-4 mr-1",strokeWidth:2,fill:"none"}),"编辑"]}),e.jsxs(p,{size:"sm",onClick:()=>C(v),className:"bg-red-600 hover:bg-red-700 text-white",children:[e.jsx(H,{className:"h-4 w-4 mr-1",strokeWidth:2,fill:"none"}),"删除"]})]})})]},r)})})]})})}),d.length>0&&e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 mt-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(A,{htmlFor:"page-size-provider",className:"text-sm whitespace-nowrap",children:"每页显示"}),e.jsxs(J,{value:y.toString(),onValueChange:s=>{u(parseInt(s)),b(1)},children:[e.jsx(Y,{id:"page-size-provider",className:"w-20",children:e.jsx(X,{})}),e.jsxs(ee,{children:[e.jsx(P,{value:"10",children:"10"}),e.jsx(P,{value:"20",children:"20"}),e.jsx(P,{value:"50",children:"50"}),e.jsx(P,{value:"100",children:"100"})]})]}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:["显示 ",(x-1)*y+1," 到"," ",Math.min(x*y,d.length)," 条,共 ",d.length," 条"]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(p,{variant:"outline",size:"sm",onClick:()=>b(1),disabled:x===1,className:"hidden sm:flex",children:e.jsx(we,{className:"h-4 w-4"})}),e.jsxs(p,{variant:"outline",size:"sm",onClick:()=>b(s=>Math.max(1,s-1)),disabled:x===1,children:[e.jsx(Ie,{className:"h-4 w-4 sm:mr-1"}),e.jsx("span",{className:"hidden sm:inline",children:"上一页"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(F,{type:"number",value:m,onChange:s=>O(s.target.value),onKeyDown:s=>s.key==="Enter"&&z(),placeholder:x.toString(),className:"w-16 h-8 text-center",min:1,max:B}),e.jsx(p,{variant:"outline",size:"sm",onClick:z,disabled:!m,className:"h-8",children:"跳转"})]}),e.jsxs(p,{variant:"outline",size:"sm",onClick:()=>b(s=>s+1),disabled:x>=B,children:[e.jsx("span",{className:"hidden sm:inline",children:"下一页"}),e.jsx(Ae,{className:"h-4 w-4 sm:ml-1"})]}),e.jsx(p,{variant:"outline",size:"sm",onClick:()=>b(B),disabled:x>=B,className:"hidden sm:flex",children:e.jsx(Se,{className:"h-4 w-4"})})]})]})]})}export{se as C,T as H,Qe as M,es as P,Ze as S,Xe as a,ae as b,Ye as c,te as d,le as e,ie as f,ne as g,Je as h,De as m}; diff --git a/dashboard/dist/assets/accordion-BDNDahhI.js b/dashboard/dist/assets/accordion-BDNDahhI.js new file mode 100644 index 00000000..a84917bb --- /dev/null +++ b/dashboard/dist/assets/accordion-BDNDahhI.js @@ -0,0 +1 @@ +import{R as l,j as n,r as y}from"./router-zNjPR4CY.js";import{am as Z,a2 as T,u as ee,g as oe,P as M,an as re,ao as te,ap as ne,aq as ae,U as ce,ar as V,a1 as se}from"./radix-C-ZuImoP.js";import{g as E}from"./index-CuOHsLf7.js";import{a as ie}from"./icons-DTcdLw9j.js";var d="Accordion",le=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[S,de,pe]=Z(d),[g]=se(d,[pe,V]),k=V(),H=l.forwardRef((o,a)=>{const{type:e,...t}=o,c=t,r=t;return n.jsx(S.Provider,{scope:o.__scopeAccordion,children:e==="multiple"?n.jsx(xe,{...r,ref:a}):n.jsx(ue,{...c,ref:a})})});H.displayName=d;var[K,fe]=g(d),[$,me]=g(d,{collapsible:!1}),ue=l.forwardRef((o,a)=>{const{value:e,defaultValue:t,onValueChange:c=()=>{},collapsible:r=!1,...i}=o,[s,p]=T({prop:e,defaultProp:t??"",onChange:c,caller:d});return n.jsx(K,{scope:o.__scopeAccordion,value:l.useMemo(()=>s?[s]:[],[s]),onItemOpen:p,onItemClose:l.useCallback(()=>r&&p(""),[r,p]),children:n.jsx($,{scope:o.__scopeAccordion,collapsible:r,children:n.jsx(L,{...i,ref:a})})})}),xe=l.forwardRef((o,a)=>{const{value:e,defaultValue:t,onValueChange:c=()=>{},...r}=o,[i,s]=T({prop:e,defaultProp:t??[],onChange:c,caller:d}),p=l.useCallback(x=>s((m=[])=>[...m,x]),[s]),u=l.useCallback(x=>s((m=[])=>m.filter(b=>b!==x)),[s]);return n.jsx(K,{scope:o.__scopeAccordion,value:i,onItemOpen:p,onItemClose:u,children:n.jsx($,{scope:o.__scopeAccordion,collapsible:!0,children:n.jsx(L,{...r,ref:a})})})}),[ve,h]=g(d),L=l.forwardRef((o,a)=>{const{__scopeAccordion:e,disabled:t,dir:c,orientation:r="vertical",...i}=o,s=l.useRef(null),p=ne(s,a),u=de(e),m=ae(c)==="ltr",b=ce(o.onKeyDown,v=>{if(!le.includes(v.key))return;const W=v.target,I=u().filter(_=>!_.ref.current?.disabled),A=I.findIndex(_=>_.ref.current===W),O=I.length;if(A===-1)return;v.preventDefault();let f=A;const w=0,j=O-1,R=()=>{f=A+1,f>j&&(f=w)},N=()=>{f=A-1,f{const{__scopeAccordion:e,value:t,...c}=o,r=h(C,e),i=fe(C,e),s=k(e),p=ee(),u=t&&i.value.includes(t)||!1,x=r.disabled||o.disabled;return n.jsx(Ae,{scope:e,open:u,disabled:x,triggerId:p,children:n.jsx(oe,{"data-orientation":r.orientation,"data-state":F(u),...s,...c,ref:a,disabled:x,open:u,onOpenChange:m=>{m?i.onItemOpen(t):i.onItemClose(t)}})})});U.displayName=C;var z="AccordionHeader",G=l.forwardRef((o,a)=>{const{__scopeAccordion:e,...t}=o,c=h(d,e),r=D(z,e);return n.jsx(M.h3,{"data-orientation":c.orientation,"data-state":F(r.open),"data-disabled":r.disabled?"":void 0,...t,ref:a})});G.displayName=z;var P="AccordionTrigger",q=l.forwardRef((o,a)=>{const{__scopeAccordion:e,...t}=o,c=h(d,e),r=D(P,e),i=me(P,e),s=k(e);return n.jsx(S.ItemSlot,{scope:e,children:n.jsx(re,{"aria-disabled":r.open&&!i.collapsible||void 0,"data-orientation":c.orientation,id:r.triggerId,...s,...t,ref:a})})});q.displayName=P;var Y="AccordionContent",B=l.forwardRef((o,a)=>{const{__scopeAccordion:e,...t}=o,c=h(d,e),r=D(Y,e),i=k(e);return n.jsx(te,{role:"region","aria-labelledby":r.triggerId,"data-orientation":c.orientation,...i,...t,ref:a,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...o.style}})});B.displayName=Y;function F(o){return o?"open":"closed"}var Ce=H,ge=U,he=G,J=q,Q=B;const Pe=Ce,be=y.forwardRef(({className:o,...a},e)=>n.jsx(ge,{ref:e,className:E("border-b",o),...a}));be.displayName="AccordionItem";const Ie=y.forwardRef(({className:o,children:a,...e},t)=>n.jsx(he,{className:"flex",children:n.jsxs(J,{ref:t,className:E("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",o),...e,children:[a,n.jsx(ie,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Ie.displayName=J.displayName;const we=y.forwardRef(({className:o,children:a,...e},t)=>n.jsx(Q,{ref:t,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...e,children:n.jsx("div",{className:E("pb-4 pt-0",o),children:a})}));we.displayName=Q.displayName;export{Pe as A,be as a,Ie as b,we as c}; diff --git a/dashboard/dist/assets/adapter-disabled-CLDOktNC.js b/dashboard/dist/assets/adapter-disabled-CLDOktNC.js new file mode 100644 index 00000000..4b432d9a --- /dev/null +++ b/dashboard/dist/assets/adapter-disabled-CLDOktNC.js @@ -0,0 +1 @@ +import{j as s,L as e}from"./router-zNjPR4CY.js";import{S as r,X as a,a6 as t,Y as l,C as i,b as n,d as x,e as c,f as d,B as m}from"./index-CuOHsLf7.js";import{ai as o,A as h}from"./icons-DTcdLw9j.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";function N(){return s.jsx(r,{className:"h-full",children:s.jsxs("div",{className:"mx-auto w-full max-w-3xl space-y-4 p-4 sm:space-y-6 sm:p-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold sm:text-3xl",children:"麦麦适配器配置"}),s.jsx("p",{className:"text-muted-foreground mt-1 text-sm sm:mt-2 sm:text-base",children:"该界面已停用"})]}),s.jsxs(a,{children:[s.jsx(o,{className:"h-4 w-4"}),s.jsx(t,{children:"该配置入口已迁移"}),s.jsx(l,{children:"适配器现已作为插件管理。请前往「插件配置」找到对应适配器插件(如 Napcat 适配器)进行配置。"})]}),s.jsxs(i,{children:[s.jsxs(n,{children:[s.jsx(x,{children:"请前往插件配置"}),s.jsx(c,{children:"在插件配置页面中,选择目标适配器插件即可修改其配置项。原适配器 TOML 直接编辑入口已停用,但相关代码与历史配置文件未被删除,可在需要时由开发者手动恢复。"})]}),s.jsx(d,{children:s.jsx(m,{asChild:!0,children:s.jsxs(e,{to:"/plugin-config",children:["打开插件配置",s.jsx(h,{className:"ml-2 h-4 w-4"})]})})})]})]})})}export{N as AdapterConfigPage}; diff --git a/dashboard/dist/assets/auth-D_7LuZ3W.js b/dashboard/dist/assets/auth-D_7LuZ3W.js new file mode 100644 index 00000000..af272f82 --- /dev/null +++ b/dashboard/dist/assets/auth-D_7LuZ3W.js @@ -0,0 +1,7 @@ +import{r as f,j as e,i as _}from"./router-zNjPR4CY.js";import{u as $,a as H,p as U,c as L,C as I,b as q,d as z,e as O,f as Y,L as Q,I as V,g as G,B as K,D as X,h as Z,i as J,j as ee,k as se,l as te,A as re,m as ae,n as ne,o as oe,q as ie,r as le,s as ce,t as de,v as he,w as ue}from"./index-CuOHsLf7.js";import{u as me}from"./use-animation--6lc2CfN.js";import{K as xe,O as fe,U as R,V as ge,W,Y as pe,Z as ye,F as ve,_ as P}from"./icons-DTcdLw9j.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";const we=Date.now()%1e6;class je{grad3;p;perm;constructor(i=0){this.grad3=[[1,1,0],[-1,1,0],[1,-1,0],[-1,-1,0],[1,0,1],[-1,0,1],[1,0,-1],[-1,0,-1],[0,1,1],[0,-1,1],[0,1,-1],[0,-1,-1]],this.p=[];for(let r=0;r<256;r++)this.p[r]=Math.floor(Math.random()*256);this.perm=[];for(let r=0;r<512;r++)this.perm[r]=this.p[r&255]}dot(i,r,g){return i[0]*r+i[1]*g}mix(i,r,g){return(1-g)*i+g*r}fade(i){return i*i*i*(i*(i*6-15)+10)}perlin2(i,r){const g=Math.floor(i)&255,v=Math.floor(r)&255;i-=Math.floor(i),r-=Math.floor(r);const p=this.fade(i),b=this.fade(r),h=this.perm[g]+v,w=this.perm[h],t=this.perm[h+1],N=this.perm[g+1]+v,A=this.perm[N],M=this.perm[N+1];return this.mix(this.mix(this.dot(this.grad3[w%12],i,r),this.dot(this.grad3[A%12],i-1,r),p),this.mix(this.dot(this.grad3[t%12],i,r-1),this.dot(this.grad3[M%12],i-1,r-1),p),b)}}function F(){const T=f.useRef(null),i=f.useRef(null),r=f.useRef(void 0),[g]=f.useState(()=>new je(we)),v=f.useRef({mouse:{x:-10,y:0,lx:0,ly:0,sx:0,sy:0,v:0,vs:0,a:0,set:!1},lines:[],paths:[],noise:g,bounding:null});return f.useEffect(()=>{const p=i.current,b=T.current;if(!p||!b)return;const h=v.current;h.noise=g;const w=()=>{const o=p.getBoundingClientRect();h.bounding=o,b.style.width=`${o.width}px`,b.style.height=`${o.height}px`},t=()=>{if(!h.bounding)return;const{width:o,height:s}=h.bounding;h.lines=[],h.paths.forEach(d=>d.remove()),h.paths=[];const n=10,y=32,m=o+200,a=s+30,l=Math.ceil(m/n),u=Math.ceil(a/y),c=(o-n*l)/2,x=(s-y*u)/2;for(let d=0;d<=l;d++){const j=[];for(let S=0;S<=u;S++){const B={x:c+n*d,y:x+y*S,wave:{x:0,y:0},cursor:{x:0,y:0,vx:0,vy:0}};j.push(B)}const k=document.createElementNS("http://www.w3.org/2000/svg","path");b.appendChild(k),h.paths.push(k),h.lines.push(j)}},N=o=>{const{lines:s,mouse:n,noise:y}=h;s.forEach(m=>{m.forEach(a=>{const l=y.perlin2((a.x+o*.0125)*.002,(a.y+o*.005)*.0015)*12;a.wave.x=Math.cos(l)*32,a.wave.y=Math.sin(l)*16;const u=a.x-n.sx,c=a.y-n.sy,x=Math.hypot(u,c),d=Math.max(175,n.vs);if(x{const n={x:o.x+o.wave.x+(s?o.cursor.x:0),y:o.y+o.wave.y+(s?o.cursor.y:0)};return n.x=Math.round(n.x*10)/10,n.y=Math.round(n.y*10)/10,n},M=()=>{const{lines:o,paths:s}=h;o.forEach((n,y)=>{let m=A(n[0],!1),a=`M ${m.x} ${m.y}`;n.forEach((l,u)=>{const c=u===n.length-1;m=A(l,!c),a+=`L ${m.x} ${m.y}`}),s[y].setAttribute("d",a)})},E=o=>{const{mouse:s}=h;s.sx+=(s.x-s.sx)*.1,s.sy+=(s.y-s.sy)*.1;const n=s.x-s.lx,y=s.y-s.ly,m=Math.hypot(n,y);s.v=m,s.vs+=(m-s.vs)*.1,s.vs=Math.min(100,s.vs),s.lx=s.x,s.ly=s.y,s.a=Math.atan2(y,n),p&&(p.style.setProperty("--x",`${s.sx}px`),p.style.setProperty("--y",`${s.sy}px`)),N(o),M(),r.current=requestAnimationFrame(E)},D=o=>{if(!h.bounding)return;const{mouse:s}=h;s.x=o.pageX-h.bounding.left,s.y=o.pageY-h.bounding.top+window.scrollY,s.set||(s.sx=s.x,s.sy=s.y,s.lx=s.x,s.ly=s.y,s.set=!0)},C=()=>{w(),t()};return w(),t(),window.addEventListener("resize",C),window.addEventListener("mousemove",D),r.current=requestAnimationFrame(E),()=>{window.removeEventListener("resize",C),window.removeEventListener("mousemove",D),r.current&&cancelAnimationFrame(r.current)}},[g]),e.jsxs("div",{ref:i,className:"waves-background",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",pointerEvents:"none"},children:[e.jsx("div",{className:"waves-cursor",style:{position:"absolute",top:0,left:0,width:"0.5rem",height:"0.5rem",background:"hsl(var(--color-primary) / 0.3)",borderRadius:"50%",transform:"translate3d(calc(var(--x, -0.5rem) - 50%), calc(var(--y, 50%) - 50%), 0)",willChange:"transform",pointerEvents:"none"}}),e.jsx("svg",{ref:T,style:{display:"block",width:"100%",height:"100%"},children:e.jsx("style",{children:` + path { + fill: none; + stroke: hsl(var(--color-primary) / 0.20); + stroke-width: 1px; + } + `})})]})}function Ce(){const[T,i]=f.useState(""),[r,g]=f.useState(!1),[v,p]=f.useState(""),[b,h]=f.useState(!0),w=_(),{t}=$(),{enableWavesBackground:N,setEnableWavesBackground:A}=me(),{theme:M,setTheme:E}=H(),D=f.useRef(!1),C=f.useCallback(()=>{if(typeof window>"u")return"";const l=new URLSearchParams(window.location.search).get("token");if(l&&l.trim())return l.trim();const u=window.location.hash.replace(/^#/,"");if(!u)return"";const c=u.indexOf("?"),x=c>=0?u.slice(c+1):u,d=new URLSearchParams(x).get("token");return d&&d.trim()?d.trim():""},[]),o=f.useCallback(()=>{if(!(typeof window>"u"))try{const l=new URL(window.location.href);let u=!1;l.searchParams.has("token")&&(l.searchParams.delete("token"),u=!0);const c=l.hash.replace(/^#/,"");if(c){const x=c.indexOf("?");if(x>=0){const d=c.slice(0,x),j=new URLSearchParams(c.slice(x+1));if(j.has("token")){j.delete("token");const k=j.toString();l.hash=k?`#${d}?${k}`:`#${d}`,u=!0}}else/^token=/.test(c)&&(l.hash="",u=!0)}u&&window.history.replaceState(null,"",l.toString())}catch{}},[]),n=M==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":M,y=()=>{E(n==="dark"?"light":"dark")},m=f.useCallback(async l=>{const u=l.trim();if(p(""),!u)return p(t("auth.tokenRequired")),!1;g(!0),console.log("开始验证 token...");try{const c=await fetch("/api/webui/auth/verify",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({token:u})});console.log("Token 验证响应状态:",c.status);const x=await U(c);if(!x.success)return console.error("Token 验证失败:",x.error),p(x.error),!1;const d=x.data;if(console.log("Token 验证响应数据:",d),d.valid){console.log("Token 验证成功,准备跳转..."),console.log("is_first_setup:",d.is_first_setup),await new Promise(k=>setTimeout(k,100));const j=await L();return console.log("跳转前认证状态检查:",j),d.is_first_setup?(console.log("跳转到首次配置页面"),w({to:"/setup"})):(console.log("跳转到首页"),w({to:"/"})),!0}return console.error("Token 验证失败:",d.message),p(d.message||t("auth.verifyFailed")),!1}catch(c){return console.error("Token 验证错误:",c),p(c instanceof Error?c.message:t("auth.connFailed")),!1}finally{g(!1)}},[w,t]),a=async l=>{l.preventDefault(),await m(T)};return f.useEffect(()=>{(async()=>{try{if(await L()){o(),w({to:"/"});return}const c=C();c&&!D.current&&(D.current=!0,o(),i(c),m(c))}catch{}finally{h(!1)}})()},[w,C,o,m]),b?e.jsxs("div",{className:"relative flex min-h-screen items-center justify-center overflow-hidden bg-background p-4",children:[N&&e.jsx(F,{}),e.jsx("div",{className:"text-muted-foreground",children:t("auth.checkingAuth")})]}):e.jsxs("div",{className:"relative flex min-h-screen items-center justify-center overflow-hidden bg-background p-4",children:[N&&e.jsx(F,{}),e.jsxs(I,{className:"relative z-10 w-full max-w-md shadow-2xl backdrop-blur-xl bg-card/80 border-border/50",children:[e.jsx("button",{onClick:y,className:"absolute right-4 top-4 rounded-lg p-2 hover:bg-accent transition-colors z-10 text-foreground",title:t(n==="dark"?"auth.switchToLight":"auth.switchToDark"),children:n==="dark"?e.jsx(xe,{className:"h-5 w-5",strokeWidth:2.5,fill:"none"}):e.jsx(fe,{className:"h-5 w-5",strokeWidth:2.5,fill:"none"})}),e.jsxs(q,{className:"space-y-4 text-center",children:[e.jsx("div",{className:"mx-auto flex h-16 w-16 items-center justify-center rounded-2xl bg-primary/10",children:e.jsx(R,{className:"h-8 w-8 text-primary",strokeWidth:2,fill:"none"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(z,{className:"text-2xl font-bold",children:t("auth.welcome")}),e.jsx(O,{className:"text-base",children:t("auth.accessDesc")})]})]}),e.jsx(Y,{children:e.jsxs("form",{onSubmit:a,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"token",className:"text-sm font-medium",children:"Access Token"}),e.jsxs("div",{className:"relative",children:[e.jsx(ge,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground",strokeWidth:2,fill:"none"}),e.jsx(V,{id:"token",type:"password",placeholder:t("auth.tokenPlaceholder"),value:T,onChange:l=>i(l.target.value),className:G("pl-10",v&&"border-red-500 focus-visible:ring-red-500"),disabled:r,autoFocus:!0,autoComplete:"off","aria-invalid":v?!0:void 0,"aria-describedby":v?"token-error":void 0})]})]}),v&&e.jsxs("div",{id:"token-error",role:"alert",className:"flex items-center gap-2 rounded-md bg-red-50 p-3 text-sm text-red-600 dark:bg-red-950/50 dark:text-red-400",children:[e.jsx(W,{className:"h-4 w-4 flex-shrink-0",strokeWidth:2,fill:"none"}),e.jsx("span",{children:v})]}),e.jsx(K,{type:"submit",className:"w-full",disabled:r,children:r?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mr-2 h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"}),t("auth.verifyingLabel")]}):t("auth.verifyEnter")}),e.jsxs(X,{children:[e.jsx(Z,{asChild:!0,children:e.jsxs("button",{className:"w-full text-center text-sm text-primary hover:text-primary/80 transition-colors underline-offset-4 hover:underline flex items-center justify-center gap-1",children:[e.jsx(pe,{className:"h-4 w-4",strokeWidth:2,fill:"none"}),t("auth.helpLink")]})}),e.jsxs(J,{className:"sm:max-w-md",children:[e.jsxs(ee,{children:[e.jsxs(se,{className:"flex items-center gap-2",children:[e.jsx(R,{className:"h-5 w-5 text-primary",strokeWidth:2,fill:"none"}),t("auth.helpTitle")]}),e.jsx(te,{children:t("auth.helpDesc")})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"rounded-lg border bg-muted/50 p-4 space-y-2",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(ye,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5",strokeWidth:2,fill:"none"}),e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsx("h4",{className:"font-semibold text-sm",children:t("auth.method1Title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t("auth.method1Desc")}),e.jsxs("div",{className:"rounded bg-background p-2 font-mono text-xs",children:[e.jsx("p",{className:"text-muted-foreground",children:t("auth.method1Example1")}),e.jsx("p",{className:"text-muted-foreground",children:t("auth.method1Example2")})]})]})]})}),e.jsx("div",{className:"rounded-lg border bg-muted/50 p-4 space-y-2",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(ve,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5",strokeWidth:2,fill:"none"}),e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsx("h4",{className:"font-semibold text-sm",children:t("auth.method2Title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t("auth.method2Desc")}),e.jsx("div",{className:"rounded bg-background p-2 font-mono text-xs break-all",children:e.jsx("code",{className:"text-primary",children:"data/webui.json"})}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[t("auth.method2FileHint")," ",e.jsx("code",{className:"px-1 py-0.5 bg-background rounded",children:"access_token"})]})]})]})}),e.jsx("div",{className:"rounded-lg border border-yellow-200 dark:border-yellow-900 bg-yellow-50 dark:bg-yellow-950/30 p-3",children:e.jsxs("div",{className:"flex gap-2",children:[e.jsx(W,{className:"h-4 w-4 text-yellow-600 dark:text-yellow-500 flex-shrink-0 mt-0.5",strokeWidth:2,fill:"none"}),e.jsxs("div",{className:"text-sm text-yellow-800 dark:text-yellow-300 space-y-1",children:[e.jsx("p",{className:"font-semibold",children:t("auth.securityTipTitle")}),e.jsxs("ul",{className:"list-disc list-inside space-y-0.5 text-xs",children:[e.jsx("li",{children:t("auth.securityTip1")}),e.jsx("li",{children:t("auth.securityTip2")})]})]})]})})]})]})]}),e.jsxs(re,{children:[e.jsx(ae,{asChild:!0,children:e.jsxs("button",{className:"w-full text-center text-sm text-muted-foreground hover:text-foreground transition-colors underline-offset-4 hover:underline flex items-center justify-center gap-1",children:[e.jsx(P,{className:"h-4 w-4",strokeWidth:2,fill:"none"}),t("auth.slowLink")]})}),e.jsxs(ne,{children:[e.jsxs(oe,{children:[e.jsxs(ie,{className:"flex items-center gap-2",children:[e.jsx(P,{className:"h-5 w-5 text-primary",strokeWidth:2,fill:"none"}),t("auth.disableAnimTitle")]}),e.jsx(le,{children:t("auth.disableAnimDesc")})]}),e.jsx("div",{className:"rounded-lg border bg-muted/50 p-4 space-y-2",children:e.jsx("p",{className:"text-sm text-muted-foreground",children:t("auth.disableAnimDetail")})}),e.jsxs(ce,{children:[e.jsx(de,{children:t("common.cancel")}),e.jsx(he,{onClick:()=>A(!1),children:t("auth.disableAnimBtn")})]})]})]})]})})]}),e.jsx("div",{className:"absolute bottom-4 left-0 right-0 text-center text-xs text-muted-foreground",children:e.jsx("p",{children:ue})})]})}export{Ce as AuthPage}; diff --git a/dashboard/dist/assets/badge-CDs67obV.js b/dashboard/dist/assets/badge-CDs67obV.js new file mode 100644 index 00000000..40845616 --- /dev/null +++ b/dashboard/dist/assets/badge-CDs67obV.js @@ -0,0 +1 @@ +import{j as o}from"./router-zNjPR4CY.js";import{O as n}from"./utils-DjBw3JGv.js";import{g as a}from"./index-CuOHsLf7.js";const s=n("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function c({className:r,variant:e,...t}){return o.jsx("div",{className:a(s({variant:e}),r),...t})}export{c as B}; diff --git a/dashboard/dist/assets/bot-zehsWfTg.js b/dashboard/dist/assets/bot-zehsWfTg.js new file mode 100644 index 00000000..b24c0560 --- /dev/null +++ b/dashboard/dist/assets/bot-zehsWfTg.js @@ -0,0 +1,4 @@ +import{r as t,j as s}from"./router-zNjPR4CY.js";import{p as es}from"./parse-BBzU4wsN.js";import{U as ss,E as ts,V as rs,M as Ae,W as as,S as Pe,T as He,O as $e,P as ce,B as P,A as ns,m as os,n as is,o as cs,q as ls,r as us,s as ds,t as ms,v as ps,X as Le,Y as De,Z as Oe,_ as fs,g as gs,R as hs}from"./index-CuOHsLf7.js";import{C as xs}from"./CodeEditor-4JcGD1og.js";import{B as vs,A as bs,H as Ie,M as Cs,C as ys,a as ws,E as js,b as Ss,K as _s,R as ks,c as Ts,d as Ns,f as le,D as Rs}from"./BotInfoSection-D3nfOJyA.js";import"./textarea-8PIujbf-.js";import"./switch-Kc2EZ0Ga.js";import"./select-DGqIoF9r.js";import"./slider-mDhSC-zv.js";import{R as Es,u as Ms,a as As}from"./restart-overlay-B44c6hlE.js";import{af as Ps,ag as Ls,R as Ds,ah as Os,a6 as Is,ai as Ve,G as Vs,y as Bs}from"./icons-DTcdLw9j.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";import"./badge-CDs67obV.js";import"./separator-B_DSOSdz.js";import"./key-value-editor-D1uUqXIn.js";import"./popover-DSuRLFDH.js";import"./progress-C6-hh8fF.js";import"./system-api-DeeJapvB.js";function Hs(h,x,d,l={}){const{debounceMs:m=2e3,onSaveSuccess:r,onSaveError:n}=l,a=t.useRef(null),v=t.useCallback(async(y,C)=>{try{x(!0);const w=await ss(y,C);if(!w.success)throw new Error(w.error);d(!1),r?.()}catch(w){console.error(`自动保存 ${y} 失败:`,w),d(!0),n?.(w instanceof Error?w:new Error(String(w)))}finally{x(!1)}},[x,d,r,n]),k=t.useCallback((y,C)=>{h||(d(!0),a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{v(y,C)},m))},[h,d,v,m]),T=t.useCallback(async(y,C)=>{a.current&&(clearTimeout(a.current),a.current=null),await v(y,C)},[v]),E=t.useCallback(()=>{a.current&&(clearTimeout(a.current),a.current=null)},[]);return t.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]),{triggerAutoSave:k,saveNow:T,cancelPendingAutoSave:E}}function g(h,x,d,l){const m=t.useRef(null);t.useEffect(()=>{if(!h)return;const r=JSON.stringify(h);if(d||m.current===null){m.current=r;return}r!==m.current&&(m.current=r,l(x,h))},[h,d])}const $s=500,Be=["bot","chat","expression","a_memorix","visual","message_receive","emoji","voice","response_post_process","webui","plugin_runtime","log"],A=new Set(["bot","chat","expression","a_memorix"]);function Fs(h){const x=h.nested||{},d=Object.entries(x),l=new Map,m=(r,n=new Set)=>{if(n.has(r))return null;const a=x[r];return a?a.uiParent?(n.add(r),m(a.uiParent,n)):a.uiLabel&&a.uiIcon?r:null:null};for(const[r,n]of d)n.uiLabel&&n.uiIcon&&!n.uiParent&&l.set(r,{id:r,label:n.uiLabel,icon:n.uiIcon||"",sections:[r]});for(const[r]of d){const n=m(r);if(!n||n===r)continue;const a=l.get(n);a&&!a.sections.includes(r)&&a.sections.push(r)}return Array.from(l.values()).sort((r,n)=>{const a=Be.indexOf(r.id),v=Be.indexOf(n.id);return(a===-1?1/0:a)-(v===-1?1/0:v)})}function dt(){return s.jsx(Es,{children:s.jsx(zs,{})})}function zs(){const[h,x]=t.useState(!0),[d,l]=t.useState(!1),[m,r]=t.useState(!1),[n,a]=t.useState(!1),[v,k]=t.useState("visual"),[T,E]=t.useState(""),[y,C]=t.useState(!1),[w,N]=t.useState(""),[ae,i]=t.useState(()=>localStorage.getItem("bot-config-restart-notice-dismissed")!=="true"),{toast:c}=ts(),{triggerRestart:L,isRestarting:M}=Ms(),[b,D]=t.useState(null),[j,O]=t.useState(null),[R,se]=t.useState(null),[I,ue]=t.useState(null),[V,de]=t.useState(null),[B,me]=t.useState(null),[H,pe]=t.useState(null),[$,fe]=t.useState(null),[F,ge]=t.useState(null),[z,he]=t.useState(null),[q,xe]=t.useState(null),[G,ve]=t.useState(null),[U,be]=t.useState(null),[W,Ce]=t.useState(null),[K,ye]=t.useState(null),[Y,we]=t.useState(null),[X,je]=t.useState(null),[J,Se]=t.useState(null),[Z,_e]=t.useState(null),[Q,ke]=t.useState(null),[ee,Te]=t.useState(null),[te,ze]=t.useState(null),u=t.useRef(!0),Ne=t.useRef({}),qe=e=>{const o=e.split(` +`);let f=o[0];f=f.replace(/^Error:\s*/,"");const S=[[/Invalid TOML document: unrecognized escape sequence/,"TOML 文档错误:无法识别的转义序列(提示:在双引号字符串中使用 \\\\ 转义反斜杠,或使用单引号字符串)"],[/Invalid TOML document: only letter, numbers, dashes and underscores are allowed in keys/,"TOML 文档错误:键名只能包含字母、数字、短横线和下划线"],[/Invalid TOML document: (.+)/,"TOML 文档错误:$1"],[/Unexpected character.*at line (\d+), column (\d+)/,"第 $1 行第 $2 列:意外的字符"],[/Expected.*at line (\d+), column (\d+)/,"第 $1 行第 $2 列:缺少必要的字符"],[/Invalid.*at line (\d+), column (\d+)/,"第 $1 行第 $2 列:无效的语法"],[/Unterminated string at line (\d+)/,"第 $1 行:字符串未正常结束(缺少引号)"],[/Duplicate key.*at line (\d+)/,"第 $1 行:重复的键名"],[/Invalid escape sequence at line (\d+)/,"第 $1 行:无效的转义序列(提示:在双引号字符串中使用 \\\\ 转义反斜杠)"],[/Expected.*but got.*at line (\d+)/,"第 $1 行:类型不匹配"],[/line (\d+), column (\d+)/,"第 $1 行第 $2 列"],[/Unexpected end of input/,"意外的文件结束(可能缺少闭合符号)"],[/Unexpected token/,"意外的标记"],[/Invalid number/,"无效的数字"],[/Invalid date/,"无效的日期格式"],[/Invalid boolean/,"无效的布尔值(应为 true 或 false)"],[/Unexpected character/,"意外的字符"],[/unrecognized escape sequence/,"无法识别的转义序列"]];for(const[_,Me]of S)if(_.test(f)){f=f.replace(_,Me);break}return o.length>1?(o[0]=f,o.join(` +`)):f},ne=t.useCallback(e=>{const{memory:o,...f}=e;Ne.current=f,D(e.bot??{}),O(e.personality??{}),se(e.chat??{}),ue(e.expression??{}),de(e.emoji??{}),me(e.visual??{}),pe(e.voice??{}),fe(e.message_receive??{}),ge(e.keyword_reaction??{}),he(e.response_post_process??{}),xe(e.chinese_typo??{}),ve(e.response_splitter??{}),be(e.log??{}),Ce(e.debug??{}),ye(e.maim_message??{}),we(e.telemetry??{}),je(e.webui??{}),Se(e.database??{}),_e(e.mcp??{}),ke(e.plugin_runtime??{}),Te(e.a_memorix??{})},[]),Re=t.useCallback(()=>({...Ne.current,bot:b,personality:j,chat:R,expression:I,emoji:V,visual:B,voice:H,message_receive:$,keyword_reaction:F,response_post_process:z,chinese_typo:q,response_splitter:G,log:U,debug:W,maim_message:K,telemetry:Y,webui:X,database:J,mcp:Z,plugin_runtime:Q,a_memorix:ee}),[b,j,R,I,V,B,H,$,F,z,q,G,U,W,K,Y,X,J,Z,Q,ee]),oe=t.useCallback(async()=>{try{const e=await rs();if(!e.success){c({variant:"destructive",title:"加载失败",description:e.error});return}const f=e.data.content.replace(/"([^"]*)"/g,(S,_)=>`"${_.replace(/\\n/g,` +`).replace(/\\t/g," ").replace(/\\r/g,"\r").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}"`);E(f),C(!1)}catch(e){c({variant:"destructive",title:"加载失败",description:e instanceof Error?e.message:"加载源代码失败"})}},[c]),re=t.useCallback(async()=>{try{x(!0);const[e,o]=await Promise.all([Ae(),as()]);if(!e.success){c({title:"加载失败",description:e.error,variant:"destructive"}),x(!1);return}ne(e.data.config),o.success&&o.data&&ze(o.data.schema),a(!1),u.current=!1,await oe()}catch(e){console.error("加载配置失败:",e),c({title:"加载失败",description:"无法加载配置文件",variant:"destructive"})}finally{x(!1)}},[c,oe,ne]);t.useEffect(()=>{re()},[re]),t.useEffect(()=>{const e=[["bot.platform",vs,"replace"],["bot.alias_names",bs],["bot.qq_account",Ie,"hidden"],["bot.platforms",Ie,"hidden"],["personality.multiple_reply_style",Cs],["chat.chat_prompts",ys],["chat.talk_value_rules",ws],["expression.expression_groups",js],["expression.learning_list",Ss],["keyword_reaction.keyword_rules",_s],["keyword_reaction.regex_rules",ks],["mcp.client.roots.items",Ts],["mcp.servers",Ns]];for(const[o,f,S="replace"]of e)le.register(o,f,S);return()=>{for(const[o]of e)le.unregister(o)}},[]);const{triggerAutoSave:p,cancelPendingAutoSave:ie}=Hs(u.current,r,a);g(b,"bot",u.current,p),g(j,"personality",u.current,p),g(R,"chat",u.current,p),g(I,"expression",u.current,p),g(V,"emoji",u.current,p),g(B,"visual",u.current,p),g(H,"voice",u.current,p),g($,"message_receive",u.current,p),g(F,"keyword_reaction",u.current,p),g(z,"response_post_process",u.current,p),g(q,"chinese_typo",u.current,p),g(G,"response_splitter",u.current,p),g(U,"log",u.current,p),g(W,"debug",u.current,p),g(K,"maim_message",u.current,p),g(Y,"telemetry",u.current,p),g(X,"webui",u.current,p),g(J,"database",u.current,p),g(Z,"mcp",u.current,p),g(Q,"plugin_runtime",u.current,p),g(ee,"a_memorix",u.current,p);const Ge=async()=>{try{l(!0);const e=T.replace(/"([^"]*)"/g,(f,S)=>`"${S.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")}"`);try{es(e)}catch(f){const S=f instanceof Error?f.message:"TOML 格式错误",_=qe(S);C(!0),N(_),c({variant:"destructive",title:"TOML 格式错误",description:_}),l(!1);return}const o=await fs(e);if(!o.success){C(!0);const f=o.error;N(f),c({variant:"destructive",title:"保存失败",description:f});return}a(!1),C(!1),N(""),c({title:"保存成功",description:"配置已保存"}),await re()}catch(e){C(!0);const o=e instanceof Error?e.message:"保存配置失败";N(o),c({variant:"destructive",title:"保存失败",description:o})}finally{l(!1)}},Ue=async e=>{if(n){c({variant:"destructive",title:"切换失败",description:"请先保存当前更改"});return}if(k(e),e==="source")await oe();else try{const o=await Ae();if(!o.success){c({title:"加载失败",description:o.error,variant:"destructive"});return}ne(o.data.config),a(!1)}catch(o){console.error("加载配置失败:",o),c({title:"加载失败",description:"无法加载配置文件",variant:"destructive"})}},We=async()=>{try{l(!0),ie();const e=await Oe(Re());if(!e.success){c({title:"保存失败",description:e.error,variant:"destructive"}),l(!1);return}a(!1),c({title:"保存成功",description:"麦麦设置已保存"})}catch(e){console.error("保存配置失败:",e),c({title:"保存失败",description:e.message,variant:"destructive"})}finally{l(!1)}},Ee=async()=>{await L()},Ke=()=>{localStorage.setItem("bot-config-restart-notice-dismissed","true"),i(!1)},Ye=async()=>{ie(),await re(),a(!1),c({title:"已刷新",description:"已从 bot_config.toml 重新读取配置"})},Xe=async()=>{try{l(!0),ie();const e=await Oe(Re());if(!e.success){c({title:"保存失败",description:e.error,variant:"destructive"}),l(!1);return}a(!1),c({title:"保存成功",description:"配置已保存,即将重启麦麦..."}),await new Promise(o=>setTimeout(o,$s)),await Ee()}catch(e){console.error("保存失败:",e),c({title:"保存失败",description:e.message,variant:"destructive"})}finally{l(!1)}},Je=t.useMemo(()=>te?Fs(te):[],[te]),Ze=t.useMemo(()=>({bot:b,personality:j,chat:R,expression:I,emoji:V,visual:B,voice:H,message_receive:$,keyword_reaction:F,response_post_process:z,chinese_typo:q,response_splitter:G,log:U,debug:W,maim_message:K,telemetry:Y,webui:X,database:J,mcp:Z,plugin_runtime:Q,a_memorix:ee}),[b,j,R,I,V,B,H,$,F,z,q,G,U,W,K,Y,X,J,Z,Q,ee]),Qe=t.useCallback((e,o)=>{({bot:D,personality:O,chat:se,expression:ue,emoji:de,visual:me,voice:pe,message_receive:fe,keyword_reaction:ge,response_post_process:he,chinese_typo:xe,response_splitter:ve,log:be,debug:Ce,maim_message:ye,telemetry:we,webui:je,database:Se,mcp:_e,plugin_runtime:ke,a_memorix:Te})[e]?.(o)},[]);return h?s.jsx(Pe,{className:"h-full",children:s.jsx("div",{className:"space-y-4 sm:space-y-6 p-4 sm:p-6",children:s.jsx("div",{className:"flex items-center justify-center h-64",children:s.jsx("p",{className:"text-muted-foreground",children:"加载中..."})})})}):s.jsx(Pe,{className:"h-full min-w-0",scrollbars:"vertical",children:s.jsxs("div",{className:"max-w-full space-y-4 overflow-x-hidden p-4 sm:space-y-6 sm:p-6",children:[s.jsx("div",{className:"flex flex-col gap-3 sm:gap-4",children:s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("h1",{className:"text-xl sm:text-2xl md:text-3xl font-bold",children:"麦麦设置"}),s.jsx("p",{className:"text-muted-foreground mt-1 text-xs sm:text-sm",children:"管理麦麦的核心功能和行为设置"})]}),s.jsxs("div",{className:"flex w-full min-w-0 flex-wrap gap-2 sm:w-auto sm:flex-shrink-0 sm:justify-end",children:[s.jsx(He,{value:v,onValueChange:e=>Ue(e),className:"w-full min-w-0 sm:w-[14rem]",children:s.jsxs($e,{className:"grid h-8 w-full grid-cols-2 sm:h-9",children:[s.jsxs(ce,{value:"visual",className:"px-2 text-xs",children:[s.jsx(Ps,{className:"mr-1 h-3 w-3 sm:h-4 sm:w-4"}),"可视化"]}),s.jsxs(ce,{value:"source",className:"px-2 text-xs",children:[s.jsx(Ls,{className:"mr-1 h-3 w-3 sm:h-4 sm:w-4"}),"源代码"]})]})}),s.jsxs(P,{onClick:Ye,disabled:d||m||M,size:"sm",variant:"outline",className:"min-w-0 flex-1 sm:w-24 sm:flex-none",children:[s.jsx(Ds,{className:"h-3 w-3 sm:h-4 sm:w-4 mr-1"}),"刷新"]}),s.jsxs(P,{onClick:v==="visual"?We:Ge,disabled:d||m||!n||M,size:"sm",variant:"outline",className:"min-w-0 flex-1 sm:w-24 sm:flex-none",children:[s.jsx(Os,{className:"h-4 w-4 flex-shrink-0",strokeWidth:2,fill:"none"}),s.jsx("span",{className:"ml-1 truncate text-xs sm:text-sm",children:d?"保存中":m?"自动":n?"保存":"已保存"})]}),s.jsxs(ns,{children:[s.jsx(os,{asChild:!0,children:s.jsxs(P,{disabled:d||m||M,size:"sm",className:"min-w-0 flex-1 sm:w-28 sm:flex-none",children:[s.jsx(Is,{className:"h-4 w-4 flex-shrink-0"}),s.jsx("span",{className:"ml-1 truncate text-xs sm:text-sm",children:M?"重启中":n?"保存重启":"重启"})]})}),s.jsxs(is,{children:[s.jsxs(cs,{children:[s.jsx(ls,{children:"确认重启麦麦?"}),s.jsx(us,{asChild:!0,children:s.jsx("div",{children:s.jsx("p",{children:n?"当前有未保存的配置更改。点击确认将先保存配置,然后重启麦麦使新配置生效。重启过程中麦麦将暂时离线。":"即将重启麦麦主程序。重启过程中麦麦将暂时离线,配置将在重启后生效。"})})})]}),s.jsxs(ds,{children:[s.jsx(ms,{children:"取消"}),s.jsx(ps,{onClick:n?Xe:Ee,children:n?"保存并重启":"确认重启"})]})]})]})]})]})}),ae&&s.jsxs(Le,{children:[s.jsx(Ve,{className:"h-4 w-4"}),s.jsxs(De,{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("span",{children:["配置更新后需要",s.jsx("strong",{children:"重启麦麦"}),'才能生效。你可以点击右上角的"保存并重启"按钮一键完成保存和重启。']}),s.jsx(P,{type:"button",variant:"outline",size:"sm",onClick:Ke,children:"我知道了"})]})]}),v==="source"&&s.jsxs("div",{className:"space-y-4",children:[s.jsxs(Le,{children:[s.jsx(Ve,{className:"h-4 w-4"}),s.jsxs(De,{children:[s.jsx("strong",{children:"源代码模式(高级功能):"}),"直接编辑 TOML 配置文件。此功能仅适用于熟悉 TOML 语法的高级用户。保存时会在前端验证格式,只有格式完全正确才能保存。",y&&w&&s.jsxs("div",{className:"text-destructive font-semibold mt-3 p-3 bg-destructive/10 rounded-md",children:[s.jsx("div",{className:"font-bold mb-2",children:"⚠️ TOML 格式错误:"}),s.jsx("pre",{className:"text-sm font-mono whitespace-pre-wrap break-words",children:w})]})]})]}),s.jsx(xs,{value:T,onChange:e=>{E(e),a(!0),y&&(C(!1),N(""))},language:"toml",height:"calc(100vh - 280px)",minHeight:"500px",placeholder:"TOML 配置内容"})]}),v==="visual"&&s.jsx(qs,{configSchema:te,tabGroups:Je,sectionValues:Ze,setSectionValue:Qe,setHasUnsavedChanges:a}),s.jsx(As,{})]})})}function Fe(h,x,d){const l=h&&typeof h=="object"&&!Array.isArray(h)?h:{},[m,...r]=x;return m?r.length===0?{...l,[m]:d}:{...l,[m]:Fe(l[m],r,d)}:l}function qs(h){const{configSchema:x,sectionValues:d,setHasUnsavedChanges:l,setSectionValue:m,tabGroups:r}=h,[n,a]=t.useState(!1),[v,k]=t.useState(r[0]?.id??""),[T,E]=t.useState(!1);if(t.useEffect(()=>{r.some(i=>i.id===v)||k(r[0]?.id??"")},[v,r]),r.length===0||!x?.nested)return null;const y=n?r:r.filter(i=>A.has(i.id)),C=r.some(i=>!A.has(i.id)),w=y.find(i=>!A.has(i.id))?.id,N=()=>{a(i=>{if(i&&!A.has(v)){const c=r.find(L=>A.has(L.id));k(c?.id??r[0]?.id??"")}return!i})},ae=i=>{const c=i.sections.map(b=>[b,x.nested?.[b]]).filter(b=>!!b[1]);if(c.length===0)return null;const L=Object.fromEntries(c.map(([b])=>[b,d[b]??{}])),M={className:i.id,classDoc:i.label,fields:[],nested:Object.fromEntries(c)};return s.jsx(Rs,{schema:M,values:L,onChange:(b,D)=>{const[j,...O]=b.split(".");if(!j)return;const R=d[j]??{},se=O.length===0?D:Fe(R,O,D);m(j,se),l(!0)},hooks:le,advancedVisible:T,sectionColumns:2})};return s.jsxs(He,{value:v,onValueChange:k,className:"w-full",children:[s.jsxs($e,{className:"flex h-auto max-w-full justify-start gap-1 overflow-x-auto p-1 transition-all duration-300 ease-out sm:flex-wrap sm:overflow-x-visible",children:[y.map(i=>{const c=!A.has(i.id);return s.jsxs(t.Fragment,{children:[i.id===w&&s.jsx("span",{className:"mx-1 hidden h-6 w-px bg-border/80 transition-opacity duration-200 sm:block"}),s.jsx(ce,{value:i.id,className:gs("shrink-0 px-2 py-1.5 text-sm transition-all duration-200 ease-out sm:px-3 sm:py-2 data-[state=active]:shadow-sm",c&&"border border-dashed border-border/70 bg-background/45 text-muted-foreground/80 motion-safe:animate-[config-tab-enter_180ms_ease-out_both] hover:bg-background/70 data-[state=active]:border-primary/45 data-[state=active]:bg-primary/10 data-[state=active]:text-primary data-[state=active]:shadow-none"),children:i.label})]},i.id)}),C&&s.jsxs(P,{type:"button",variant:"ghost",size:"sm",className:"group h-8 shrink-0 px-2 text-xs transition-all duration-200 ease-out sm:h-9 sm:px-3",onClick:N,children:[n?s.jsx(Vs,{className:"mr-1 h-3.5 w-3.5 transition-transform duration-200 group-hover:-translate-x-0.5"}):s.jsx(Bs,{className:"mr-1 h-3.5 w-3.5 transition-transform duration-200 group-hover:translate-x-0.5"}),n?"收起":"更多"]}),s.jsx(P,{type:"button",variant:T?"default":"outline",size:"sm",className:"h-8 shrink-0 px-2 text-xs transition-all duration-200 ease-out sm:ml-auto sm:h-9 sm:px-3",onClick:()=>E(i=>!i),children:"高级设置"})]}),r.map(i=>s.jsx(hs,{value:i.id,className:"space-y-4 motion-safe:animate-[config-tab-content-enter_180ms_ease-out_both]",children:ae(i)},i.id))]})}export{dt as BotConfigPage}; diff --git a/dashboard/dist/assets/charts-C6WIfXk3.js b/dashboard/dist/assets/charts-C6WIfXk3.js new file mode 100644 index 00000000..166fdf35 --- /dev/null +++ b/dashboard/dist/assets/charts-C6WIfXk3.js @@ -0,0 +1,36 @@ +import{r as h,g as Qt,w as vb,a as zl,c as hb,e as pb}from"./router-zNjPR4CY.js";import{M as H}from"./utils-DjBw3JGv.js";var mb=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function Bl(e){if(typeof e!="string")return!1;var t=mb;return t.includes(e)}var yb=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],gb=new Set(yb);function pp(e){return typeof e!="string"?!1:gb.has(e)}function mp(e){return typeof e=="string"&&e.startsWith("data-")}function Ze(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(pp(r)||mp(r))&&(t[r]=e[r]);return t}function hr(e){if(e==null)return null;if(h.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Ze(t)}return typeof e=="object"&&!Array.isArray(e)?Ze(e):null}function Re(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(pp(r)||mp(r)||Bl(r))&&(t[r]=e[r]);return t}function bb(e){return e==null?null:h.isValidElement(e)?Re(e.props):typeof e=="object"&&!Array.isArray(e)?Re(e):null}var wb=["children","width","height","viewBox","className","style","title","desc"];function $u(){return $u=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:r,width:n,height:i,viewBox:a,className:o,style:u,title:l,desc:s}=e,c=xb(e,wb),f=a||{width:n,height:i,x:0,y:0},d=H("recharts-surface",o);return h.createElement("svg",$u({},Re(c),{className:d,width:n,height:i,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),h.createElement("title",null,l),h.createElement("desc",null,s),r)}),Ob=["children","className"];function Lu(){return Lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:r,className:n}=e,i=Ab(e,Ob),a=H("recharts-layer",n);return h.createElement("g",Lu({className:a},Re(i),{ref:t}),r)}),yp=h.createContext(null),Eb=()=>h.useContext(yp);function ee(e){return function(){return e}}const gp=Math.cos,bi=Math.sin,ht=Math.sqrt,wi=Math.PI,va=2*wi,zu=Math.PI,Bu=2*zu,ar=1e-6,_b=Bu-ar;function bp(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return bp;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;iar)if(!(Math.abs(f*l-s*c)>ar)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-o,m=i-u,p=l*l+s*s,y=v*v+m*m,g=Math.sqrt(p),w=Math.sqrt(d),b=a*Math.tan((zu-Math.acos((p+d-y)/(2*g*w)))/2),P=b/w,x=b/g;Math.abs(P-1)>ar&&this._append`L${t+P*c},${r+P*f}`,this._append`A${a},${a},0,0,${+(f*v>c*m)},${this._x1=t+x*l},${this._y1=r+x*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),l=n*Math.sin(i),s=t+u,c=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${c}`:(Math.abs(this._x1-s)>ar||Math.abs(this._y1-c)>ar)&&this._append`L${s},${c}`,n&&(d<0&&(d=d%Bu+Bu),d>_b?this._append`A${n},${n},0,1,${f},${t-u},${r-l}A${n},${n},0,1,${f},${this._x1=s},${this._y1=c}`:d>ar&&this._append`A${n},${n},0,${+(d>=zu)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Kl(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new kb(t)}function Wl(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function wp(e){this._context=e}wp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ha(e){return new wp(e)}function xp(e){return e[0]}function Pp(e){return e[1]}function Op(e,t){var r=ee(!0),n=null,i=ha,a=null,o=Kl(u);e=typeof e=="function"?e:e===void 0?xp:ee(e),t=typeof t=="function"?t:t===void 0?Pp:ee(t);function u(l){var s,c=(l=Wl(l)).length,f,d=!1,v;for(n==null&&(a=i(v=o())),s=0;s<=c;++s)!(s=v;--m)u.point(b[m],P[m]);u.lineEnd(),u.areaEnd()}g&&(b[d]=+e(y,d,f),P[d]=+t(y,d,f),u.point(n?+n(y,d,f):b[d],r?+r(y,d,f):P[d]))}if(w)return u=null,w+""||null}function c(){return Op().defined(i).curve(o).context(a)}return s.x=function(f){return arguments.length?(e=typeof f=="function"?f:ee(+f),n=null,s):e},s.x0=function(f){return arguments.length?(e=typeof f=="function"?f:ee(+f),s):e},s.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:ee(+f),s):n},s.y=function(f){return arguments.length?(t=typeof f=="function"?f:ee(+f),r=null,s):t},s.y0=function(f){return arguments.length?(t=typeof f=="function"?f:ee(+f),s):t},s.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:ee(+f),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(n).y(t)},s.defined=function(f){return arguments.length?(i=typeof f=="function"?f:ee(!!f),s):i},s.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),s):o},s.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),s):a},s}class Ap{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Ib(e){return new Ap(e,!0)}function jb(e){return new Ap(e,!1)}const ql={draw(e,t){const r=ht(t/wi);e.moveTo(r,0),e.arc(0,0,r,0,va)}},Tb={draw(e,t){const r=ht(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Sp=ht(1/3),Mb=Sp*2,Db={draw(e,t){const r=ht(t/Mb),n=r*Sp;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Nb={draw(e,t){const r=ht(t),n=-r/2;e.rect(n,n,r,r)}},Rb=.8908130915292852,Ep=bi(wi/10)/bi(7*wi/10),$b=bi(va/10)*Ep,Lb=-gp(va/10)*Ep,zb={draw(e,t){const r=ht(t*Rb),n=$b*r,i=Lb*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=va*a/5,u=gp(o),l=bi(o);e.lineTo(l*r,-u*r),e.lineTo(u*n-l*i,l*n+u*i)}e.closePath()}},ao=ht(3),Bb={draw(e,t){const r=-ht(t/(ao*3));e.moveTo(0,r*2),e.lineTo(-ao*r,-r),e.lineTo(ao*r,-r),e.closePath()}},et=-.5,tt=ht(3)/2,Fu=1/ht(12),Fb=(Fu/2+1)*3,Kb={draw(e,t){const r=ht(t/Fb),n=r/2,i=r*Fu,a=n,o=r*Fu+r,u=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,l),e.lineTo(et*n-tt*i,tt*n+et*i),e.lineTo(et*a-tt*o,tt*a+et*o),e.lineTo(et*u-tt*l,tt*u+et*l),e.lineTo(et*n+tt*i,et*i-tt*n),e.lineTo(et*a+tt*o,et*o-tt*a),e.lineTo(et*u+tt*l,et*l-tt*u),e.closePath()}};function Wb(e,t){let r=null,n=Kl(i);e=typeof e=="function"?e:ee(e||ql),t=typeof t=="function"?t:ee(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ee(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ee(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function xi(){}function Pi(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function _p(e){this._context=e}_p.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Pi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Pi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qb(e){return new _p(e)}function Cp(e){this._context=e}Cp.prototype={areaStart:xi,areaEnd:xi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Pi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ub(e){return new Cp(e)}function kp(e){this._context=e}kp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Pi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Hb(e){return new kp(e)}function Ip(e){this._context=e}Ip.prototype={areaStart:xi,areaEnd:xi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Yb(e){return new Ip(e)}function qs(e){return e<0?-1:1}function Us(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(qs(a)+qs(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Hs(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function oo(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function Oi(e){this._context=e}Oi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:oo(this,this._t0,Hs(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,oo(this,Hs(this,r=Us(this,e,t)),r);break;default:oo(this,this._t0,r=Us(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function jp(e){this._context=new Tp(e)}(jp.prototype=Object.create(Oi.prototype)).point=function(e,t){Oi.prototype.point.call(this,t,e)};function Tp(e){this._context=e}Tp.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Vb(e){return new Oi(e)}function Gb(e){return new jp(e)}function Mp(e){this._context=e}Mp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Ys(e),i=Ys(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Zb(e){return new pa(e,.5)}function Qb(e){return new pa(e,0)}function Jb(e){return new pa(e,1)}function Tr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r=0;)r[t]=t;return r}function ew(e,t){return e[t]}function tw(e){const t=[];return t.key=e,t}function rw(){var e=ee([]),t=Ku,r=Tr,n=ew;function i(a){var o=Array.from(e.apply(this,arguments),tw),u,l=o.length,s=-1,c;for(const f of a)for(u=0,++s;u0){for(var r,n,i=0,a=e[0].length,o;i0){for(var r=0,n=e[t[0]],i,a=n.length;r0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;ne===0?0:e>0?1:-1,dt=e=>typeof e=="number"&&e!=+e,It=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,N=e=>(typeof e=="number"||e instanceof Number)&&!dt(e),bt=e=>N(e)||typeof e=="string",sw=0,cn=e=>{var t=++sw;return"".concat(e||"").concat(t)},je=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!N(t)&&typeof t!="string")return n;var a;if(It(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return dt(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},Np=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;nn&&(typeof t=="function"?t(n):pr(n,t))===r)}var oe=e=>e===null||typeof e>"u",An=e=>oe(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function fw(e){return e!=null}function Sn(){}var dw=["type","size","sizeType"];function Wu(){return Wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t="symbol".concat(An(e));return $p[t]||ql},ww=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*gw;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},xw=(e,t)=>{$p["symbol".concat(An(e))]=t},Vl=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=mw(e,dw),a=rf(rf({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var u=()=>{var d=bw(o),v=Wb().type(d).size(ww(r,n,o)),m=v();if(m!==null)return m},{className:l,cx:s,cy:c}=a,f=Re(a);return N(s)&&N(c)&&N(r)?h.createElement("path",Wu({},f,{className:H("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(c,")"),d:u()})):null};Vl.registerSymbol=xw;var Lp=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Gl=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(h.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{Bl(i)&&(n[i]=(a=>r[i](r,a)))}),n},Pw=(e,t,r)=>n=>(e(t,r,n),null),En=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];Bl(i)&&typeof a=="function"&&(n||(n={}),n[i]=Pw(a,t,r))}),n};function nf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ow(e){for(var t=1;t(o[u]===void 0&&n[u]!==void 0&&(o[u]=n[u]),o),r);return a}function Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var d=c.formatter||i,v=H({"recharts-legend-item":!0,["legend-item-".concat(f)]:!0,inactive:c.inactive});if(c.type==="none")return null;var m=c.inactive?a:c.color,p=d?d(c.value,c,f):c.value;return h.createElement("li",Ai({className:v,style:l,key:"legend-item-".concat(f)},En(e,c,f)),h.createElement(Fl,{width:r,height:r,viewBox:u,style:s,"aria-label":"".concat(p," legend icon")},h.createElement(Tw,{data:c,iconType:o,inactiveColor:a})),h.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},p))})}var Dw=e=>{var t=me(e,jw),{payload:r,layout:n,align:i}=t;if(!r||!r.length)return null;var a={padding:0,margin:0,textAlign:n==="horizontal"?i:"left"};return h.createElement("ul",{className:"recharts-default-legend",style:a},h.createElement(Mw,Ai({},t,{payload:r})))},po={},mo={},of;function Nw(){return of||(of=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const i=new Map;for(let a=0;a=0}e.isLength=t})(xo)),xo}var sf;function Xl(){return sf||(sf=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$w();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(wo)),wo}var Po={},ff;function Lw(){return ff||(ff=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(Po)),Po}var df;function zw(){return df||(df=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xl(),r=Lw();function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n})(bo)),bo}var Oo={},Ao={},vf;function Bw(){return vf||(vf=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Yl();function r(n){return function(i){return t.get(i,n)}}e.property=r})(Ao)),Ao}var So={},Eo={},_o={},Co={},hf;function Bp(){return hf||(hf=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(Co)),Co}var ko={},pf;function Fp(){return pf||(pf=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(ko)),ko}var Io={},mf;function Kp(){return mf||(mf=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.isEqualsSameValueZero=t})(Io)),Io}var yf;function Fw(){return yf||(yf=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bp(),r=Fp(),n=Kp();function i(c,f,d){return typeof d!="function"?i(c,f,()=>{}):a(c,f,function v(m,p,y,g,w,b){const P=d(m,p,y,g,w,b);return P!==void 0?!!P:a(m,p,v,b)},new Map)}function a(c,f,d,v){if(f===c)return!0;switch(typeof f){case"object":return o(c,f,d,v);case"function":return Object.keys(f).length>0?a(c,{...f},d,v):n.isEqualsSameValueZero(c,f);default:return t.isObject(c)?typeof f=="string"?f==="":!0:n.isEqualsSameValueZero(c,f)}}function o(c,f,d,v){if(f==null)return!0;if(Array.isArray(f))return l(c,f,d,v);if(f instanceof Map)return u(c,f,d,v);if(f instanceof Set)return s(c,f,d,v);const m=Object.keys(f);if(c==null||r.isPrimitive(c))return m.length===0;if(m.length===0)return!0;if(v?.has(f))return v.get(f)===c;v?.set(f,c);try{for(let p=0;p{})}e.isMatch=r})(Eo)),Eo}var jo={},To={},Mo={},bf;function Kw(){return bf||(bf=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(Mo)),Mo}var Do={},wf;function Zl(){return wf||(wf=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(Do)),Do}var No={},xf;function qp(){return xf||(xf=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",i="[object Boolean]",a="[object Arguments]",o="[object Symbol]",u="[object Date]",l="[object Map]",s="[object Set]",c="[object Array]",f="[object Function]",d="[object ArrayBuffer]",v="[object Object]",m="[object Error]",p="[object DataView]",y="[object Uint8Array]",g="[object Uint8ClampedArray]",w="[object Uint16Array]",b="[object Uint32Array]",P="[object BigUint64Array]",x="[object Int8Array]",O="[object Int16Array]",S="[object Int32Array]",_="[object BigInt64Array]",I="[object Float32Array]",j="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=d,e.arrayTag=c,e.bigInt64ArrayTag=_,e.bigUint64ArrayTag=P,e.booleanTag=i,e.dataViewTag=p,e.dateTag=u,e.errorTag=m,e.float32ArrayTag=I,e.float64ArrayTag=j,e.functionTag=f,e.int16ArrayTag=O,e.int32ArrayTag=S,e.int8ArrayTag=x,e.mapTag=l,e.numberTag=n,e.objectTag=v,e.regexpTag=t,e.setTag=s,e.stringTag=r,e.symbolTag=o,e.uint16ArrayTag=w,e.uint32ArrayTag=b,e.uint8ArrayTag=y,e.uint8ClampedArrayTag=g})(No)),No}var Ro={},Pf;function Ww(){return Pf||(Pf=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(Ro)),Ro}var Of;function Up(){return Of||(Of=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Kw(),r=Zl(),n=qp(),i=Fp(),a=Ww();function o(c,f){return u(c,void 0,c,new Map,f)}function u(c,f,d,v=new Map,m=void 0){const p=m?.(c,f,d,v);if(p!==void 0)return p;if(i.isPrimitive(c))return c;if(v.has(c))return v.get(c);if(Array.isArray(c)){const y=new Array(c.length);v.set(c,y);for(let g=0;gt.isMatch(a,i)}e.matches=n})(So)),So}var $o={},Lo={},zo={},Ef;function Hw(){return Ef||(Ef=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Up(),r=Zl(),n=qp();function i(a,o){return t.cloneDeepWith(a,(u,l,s,c)=>{const f=o?.(u,l,s,c);if(f!==void 0)return f;if(typeof a=="object"){if(r.getTag(a)===n.objectTag&&typeof a.constructor!="function"){const d={};return c.set(a,d),t.copyProperties(d,a,s,c),d}switch(Object.prototype.toString.call(a)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new a.constructor(a?.valueOf());return t.copyProperties(d,a),d}case n.argumentsTag:{const d={};return t.copyProperties(d,a),d.length=a.length,d[Symbol.iterator]=a[Symbol.iterator],d}default:return}}})}e.cloneDeepWith=i})(zo)),zo}var _f;function Yw(){return _f||(_f=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Hw();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(Lo)),Lo}var Bo={},Fo={},Cf;function Hp(){return Cf||(Cf=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&ne,te=()=>{var e=h.useContext(Ql);return e?e.store.dispatch:tx},hi=()=>{},rx=()=>hi,nx=(e,t)=>e===t;function M(e){var t=h.useContext(Ql);return vb.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:rx,t?t.store.getState:hi,t?t.store.getState:hi,t?e:hi,nx)}function ix(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function ax(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function ox(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Rf=e=>Array.isArray(e)?e:[e];function ux(e){const t=Array.isArray(e[0])?e[0]:e;return ox(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function lx(e,t){const r=[],{length:n}=e;for(let i=0;i{r=Zn(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function dx(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,u,l={},s=i.pop();typeof s=="object"&&(l=s,s=i.pop()),ix(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const c={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:v=Vp,argsMemoizeOptions:m=[]}=c,p=Rf(d),y=Rf(m),g=ux(i),w=f(function(){return a++,s.apply(null,arguments)},...p),b=v(function(){o++;const x=lx(g,arguments);return u=w.apply(null,x),u},...y);return Object.assign(b,{resultFunc:s,memoizedResultFunc:w,dependencies:g,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var A=dx(Vp),vx=Object.assign((e,t=A)=>{ax(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,u,l)=>(o[r[l]]=u,o),{}))},{withTypes:()=>vx}),qo={},Uo={},Ho={},Lf;function hx(){return Lf||(Lf=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const o=t(n),u=t(i);if(o===u&&o===0){if(ni)return a==="desc"?-1:1}return a==="desc"?u-o:o-u}return 0};e.compareValues=r})(Ho)),Ho}var Yo={},Vo={},zf;function Gp(){return zf||(zf=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Vo)),Vo}var Bf;function px(){return Bf||(Bf=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Gp(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i})(Yo)),Yo}var Ff;function mx(){return Ff||(Ff=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hx(),r=px(),n=Hl();function i(a,o,u,l){if(a==null)return[];u=l?void 0:u,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(v=>String(v));const s=(v,m)=>{let p=v;for(let y=0;ym==null||v==null?m:typeof v=="object"&&"key"in v?Object.hasOwn(m,v.key)?m[v.key]:s(m,v.path):typeof v=="function"?v(m):Array.isArray(v)?s(m,v):typeof m=="object"?m[v]:m,f=o.map(v=>(Array.isArray(v)&&v.length===1&&(v=v[0]),v==null||typeof v=="function"||Array.isArray(v)||r.isKey(v)?v:{key:v,path:n.toPath(v)}));return a.map(v=>({original:v,criteria:f.map(m=>c(m,v))})).slice().sort((v,m)=>{for(let p=0;pv.original)}e.orderBy=i})(Uo)),Uo}var Go={},Kf;function yx(){return Kf||(Kf=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(u,l)=>{for(let s=0;s1&&n.isIterateeCall(a,o[0],o[1])?o=[]:u>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,r.flatten(o),["asc"])}e.sortBy=i})(qo)),qo}var Zo,Uf;function bx(){return Uf||(Uf=1,Zo=gx().sortBy),Zo}var wx=bx();const ma=Qt(wx);var Zp=e=>e.legend.settings,xx=e=>e.legend.size,Px=e=>e.legend.payload,Ox=A([Px,Zp],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?ma(n,r):n});function Ax(){return M(Ox)}var Qn=1;function Qp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=h.useState({height:0,left:0,top:0,width:0}),n=h.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),o={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(o.height-t.height)>Qn||Math.abs(o.left-t.left)>Qn||Math.abs(o.top-t.top)>Qn||Math.abs(o.width-t.width)>Qn)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function Ce(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Sx=typeof Symbol=="function"&&Symbol.observable||"@@observable",Hf=Sx,Qo=()=>Math.random().toString(36).substring(7).split("").join("."),Ex={INIT:`@@redux/INIT${Qo()}`,REPLACE:`@@redux/REPLACE${Qo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Qo()}`},Si=Ex;function Jl(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Jp(e,t,r){if(typeof e!="function")throw new Error(Ce(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ce(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ce(1));return r(Jp)(e,t)}let n=e,i=t,a=new Map,o=a,u=0,l=!1;function s(){o===a&&(o=new Map,a.forEach((y,g)=>{o.set(g,y)}))}function c(){if(l)throw new Error(Ce(3));return i}function f(y){if(typeof y!="function")throw new Error(Ce(4));if(l)throw new Error(Ce(5));let g=!0;s();const w=u++;return o.set(w,y),function(){if(g){if(l)throw new Error(Ce(6));g=!1,s(),o.delete(w),a=null}}}function d(y){if(!Jl(y))throw new Error(Ce(7));if(typeof y.type>"u")throw new Error(Ce(8));if(typeof y.type!="string")throw new Error(Ce(17));if(l)throw new Error(Ce(9));try{l=!0,i=n(i,y)}finally{l=!1}return(a=o).forEach(w=>{w()}),y}function v(y){if(typeof y!="function")throw new Error(Ce(10));n=y,d({type:Si.REPLACE})}function m(){const y=f;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(Ce(11));function w(){const P=g;P.next&&P.next(c())}return w(),{unsubscribe:y(w)}},[Hf](){return this}}}return d({type:Si.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:v,[Hf]:m}}function _x(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Si.INIT})>"u")throw new Error(Ce(12));if(typeof r(void 0,{type:Si.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ce(13))})}function em(e){const t=Object.keys(e),r={};for(let a=0;a"u")throw u&&u.type,new Error(Ce(14));s[f]=m,l=l||m!==v}return l=l||n.length!==Object.keys(o).length,l?s:o}}function Ei(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Cx(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(Ce(15))};const o={getState:i.getState,dispatch:(l,...s)=>a(l,...s)},u=e.map(l=>l(o));return a=Ei(...u)(i.dispatch),{...i,dispatch:a}}}function tm(e){return Jl(e)&&"type"in e&&typeof e.type=="string"}var rm=Symbol.for("immer-nothing"),Yf=Symbol.for("immer-draftable"),$e=Symbol.for("immer-state");function lt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ge=Object,Mr=Ge.getPrototypeOf,_i="constructor",ya="prototype",qu="configurable",Ci="enumerable",pi="writable",sn="value",jt=e=>!!e&&!!e[$e];function vt(e){return e?nm(e)||ba(e)||!!e[Yf]||!!e[_i]?.[Yf]||wa(e)||xa(e):!1}var kx=Ge[ya][_i].toString(),Vf=new WeakMap;function nm(e){if(!e||!ec(e))return!1;const t=Mr(e);if(t===null||t===Ge[ya])return!0;const r=Ge.hasOwnProperty.call(t,_i)&&t[_i];if(r===Object)return!0;if(!_r(r))return!1;let n=Vf.get(r);return n===void 0&&(n=Function.toString.call(r),Vf.set(r,n)),n===kx}function ga(e,t,r=!0){_n(e)===0?(r?Reflect.ownKeys(e):Ge.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function _n(e){const t=e[$e];return t?t.type_:ba(e)?1:wa(e)?2:xa(e)?3:0}var Gf=(e,t,r=_n(e))=>r===2?e.has(t):Ge[ya].hasOwnProperty.call(e,t),Uu=(e,t,r=_n(e))=>r===2?e.get(t):e[t],ki=(e,t,r,n=_n(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function Ix(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var ba=Array.isArray,wa=e=>e instanceof Map,xa=e=>e instanceof Set,ec=e=>typeof e=="object",_r=e=>typeof e=="function",Jo=e=>typeof e=="boolean";function jx(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Ot=e=>e.copy_||e.base_,tc=e=>e.modified_?e.copy_:e.base_;function Hu(e,t){if(wa(e))return new Map(e);if(xa(e))return new Set(e);if(ba(e))return Array[ya].slice.call(e);const r=nm(e);if(t===!0||t==="class_only"&&!r){const n=Ge.getOwnPropertyDescriptors(e);delete n[$e];let i=Reflect.ownKeys(n);for(let a=0;a1&&Ge.defineProperties(e,{set:Jn,add:Jn,clear:Jn,delete:Jn}),Ge.freeze(e),t&&ga(e,(r,n)=>{rc(n,!0)},!1)),e}function Tx(){lt(2)}var Jn={[sn]:Tx};function Pa(e){return e===null||!ec(e)?!0:Ge.isFrozen(e)}var Ii="MapSet",Yu="Patches",Xf="ArrayMethods",im={};function mr(e){const t=im[e];return t||lt(0,e),t}var Zf=e=>!!im[e],fn,am=()=>fn,Mx=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Zf(Ii)?mr(Ii):void 0,arrayMethodsPlugin_:Zf(Xf)?mr(Xf):void 0});function Qf(e,t){t&&(e.patchPlugin_=mr(Yu),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Vu(e){Gu(e),e.drafts_.forEach(Dx),e.drafts_=null}function Gu(e){e===fn&&(fn=e.parent_)}var Jf=e=>fn=Mx(fn,e);function Dx(e){const t=e[$e];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ed(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[$e].modified_&&(Vu(t),lt(4)),vt(e)&&(e=td(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[$e].base_,e,t)}else e=td(t,r);return Nx(t,e,!0),Vu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==rm?e:void 0}function td(e,t){if(Pa(t))return t;const r=t[$e];if(!r)return ji(t,e.handledSet_,e);if(!Oa(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);lm(r,e)}return r.copy_}function Nx(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&rc(t,r)}function om(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Oa=(e,t)=>e.scope_===t,Rx=[];function um(e,t,r,n){const i=Ot(e),a=e.type_;if(n!==void 0&&Uu(i,n,a)===t){ki(i,n,r,a);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;ga(i,(l,s)=>{if(jt(s)){const c=u.get(s)||[];c.push(l),u.set(s,c)}})}const o=e.draftLocations_.get(t)??Rx;for(const u of o)ki(i,u,r,a)}function $x(e,t,r){e.callbacks_.push(function(i){const a=t;if(!a||!Oa(a,i))return;i.mapSetPlugin_?.fixSetContents(a);const o=tc(a);um(e,a.draft_??a,o,r),lm(a,i)})}function lm(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const i=n.getPath(e);i&&n.generatePatches_(e,i,t)}om(e)}}function Lx(e,t,r){const{scope_:n}=e;if(jt(r)){const i=r[$e];Oa(i,n)&&i.callbacks_.push(function(){mi(e);const o=tc(i);um(e,r,o,t)})}else vt(r)&&e.callbacks_.push(function(){const a=Ot(e);e.type_===3?a.has(r)&&ji(r,n.handledSet_,n):Uu(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ji(Uu(e.copy_,t,e.type_),n.handledSet_,n)})}function ji(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||jt(e)||t.has(e)||!vt(e)||Pa(e)||(t.add(e),ga(e,(n,i)=>{if(jt(i)){const a=i[$e];if(Oa(a,r)){const o=tc(a);ki(e,n,o,e.type_),om(a)}}else vt(i)&&ji(i,t,r)})),e}function zx(e,t){const r=ba(e),n={type_:r?1:0,scope_:t?t.scope_:am(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,a=Ti;r&&(i=[n],a=dn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,[u,n]}var Ti={get(e,t){if(t===$e)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=Ot(e);if(!Gf(i,t,e.type_))return Bx(e,i,t);const a=i[t];if(e.finalized_||!vt(a)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&jx(t))return a;if(a===eu(e.base_,t)){mi(e);const o=e.type_===1?+t:t,u=Zu(e.scope_,a,e,o);return e.copy_[o]=u}return a},has(e,t){return t in Ot(e)},ownKeys(e){return Reflect.ownKeys(Ot(e))},set(e,t,r){const n=cm(Ot(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=eu(Ot(e),t),a=i?.[$e];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(Ix(r,i)&&(r!==void 0||Gf(e.base_,t,e.type_)))return!0;mi(e),Xu(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Lx(e,t,r)),!0},deleteProperty(e,t){return mi(e),eu(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Xu(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ot(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[pi]:!0,[qu]:e.type_!==1||t!=="length",[Ci]:n[Ci],[sn]:r[t]}},defineProperty(){lt(11)},getPrototypeOf(e){return Mr(e.base_)},setPrototypeOf(){lt(12)}},dn={};for(let e in Ti){let t=Ti[e];dn[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}dn.deleteProperty=function(e,t){return dn.set.call(this,e,t,void 0)};dn.set=function(e,t,r){return Ti.set.call(this,e[0],t,r,e[0])};function eu(e,t){const r=e[$e];return(r?Ot(r):e)[t]}function Bx(e,t,r){const n=cm(t,r);return n?sn in n?n[sn]:n.get?.call(e.draft_):void 0}function cm(e,t){if(!(t in e))return;let r=Mr(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Mr(r)}}function Xu(e){e.modified_||(e.modified_=!0,e.parent_&&Xu(e.parent_))}function mi(e){e.copy_||(e.assigned_=new Map,e.copy_=Hu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Fx=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(_r(r)&&!_r(n)){const o=n;n=r;const u=this;return function(s=o,...c){return u.produce(s,f=>n.call(this,f,...c))}}_r(n)||lt(6),i!==void 0&&!_r(i)&<(7);let a;if(vt(r)){const o=Jf(this),u=Zu(o,r,void 0);let l=!0;try{a=n(u),l=!1}finally{l?Vu(o):Gu(o)}return Qf(o,i),ed(a,o)}else if(!r||!ec(r)){if(a=n(r),a===void 0&&(a=r),a===rm&&(a=void 0),this.autoFreeze_&&rc(a,!0),i){const o=[],u=[];mr(Yu).generateReplacementPatches_(r,a,{patches_:o,inversePatches_:u}),i(o,u)}return a}else lt(1,r)},this.produceWithPatches=(r,n)=>{if(_r(r))return(u,...l)=>this.produceWithPatches(u,s=>r(s,...l));let i,a;return[this.produce(r,n,(u,l)=>{i=u,a=l}),i,a]},Jo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Jo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Jo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){vt(t)||lt(8),jt(t)&&(t=ft(t));const r=Jf(this),n=Zu(r,t,void 0);return n[$e].isManual_=!0,Gu(r),n}finishDraft(t,r){const n=t&&t[$e];(!n||!n.isManual_)&<(9);const{scope_:i}=n;return Qf(i,r),ed(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const a=r[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(r=r.slice(n+1));const i=mr(Yu).applyPatches_;return jt(t)?i(t,r):this.produce(t,a=>i(a,r))}};function Zu(e,t,r,n){const[i,a]=wa(t)?mr(Ii).proxyMap_(t,r):xa(t)?mr(Ii).proxySet_(t,r):zx(t,r);return(r?.scope_??am()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?$x(r,a,n):a.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(a);const{patchPlugin_:s}=l;a.modified_&&s&&s.generatePatches_(a,[],l)}),i}function ft(e){return jt(e)||lt(10,e),sm(e)}function sm(e){if(!vt(e)||Pa(e))return e;const t=e[$e];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Hu(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Hu(e,!0);return ga(r,(i,a)=>{ki(r,i,sm(a))},n),t&&(t.finalized_=!1),r}var Kx=new Fx,fm=Kx.produce;function dm(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var Wx=dm(),qx=dm,Ux=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ei:Ei.apply(null,arguments)};function at(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Xe(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>tm(n)&&n.type===e,r}var vm=class on extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,on.prototype)}static get[Symbol.species](){return on}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new on(...t[0].concat(this)):new on(...t.concat(this))}};function rd(e){return vt(e)?fm(e,()=>{}):e}function ei(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Hx(e){return typeof e=="boolean"}var Yx=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new vm;return r&&(Hx(r)?o.push(Wx):o.push(qx(r.extraArgument))),o},hm="RTK_autoBatch",ne=()=>e=>({payload:e,meta:{[hm]:!0}}),nd=e=>t=>{setTimeout(t,e)},pm=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const u=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:nd(10):e.type==="callback"?e.queueNotification:nd(e.timeout),s=()=>{o=!1,a&&(a=!1,u.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const f=()=>i&&c(),d=n.subscribe(f);return u.add(c),()=>{d(),u.delete(c)}},dispatch(c){try{return i=!c?.meta?.[hm],a=!i,a&&(o||(o=!0,l(s))),n.dispatch(c)}finally{i=!0}}})},Vx=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new vm(e);return n&&i.push(pm(typeof n=="object"?n:void 0)),i};function Gx(e){const t=Yx(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(Jl(r))u=em(r);else throw new Error(Xe(1));let l;typeof n=="function"?l=n(t):l=t();let s=Ei;i&&(s=Ux({trace:!1,...typeof i=="object"&&i}));const c=Cx(...l),f=Vx(c);let d=typeof o=="function"?o(f):f();const v=s(...d);return Jp(u,a,v)}function mm(e){const t={},r=[];let n;const i={addCase(a,o){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(Xe(28));if(u in t)throw new Error(Xe(29));return t[u]=o,i},addAsyncThunk(a,o){return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function Xx(e){return typeof e=="function"}function Zx(e,t){let[r,n,i]=mm(t),a;if(Xx(e))a=()=>rd(e());else{const u=rd(e);a=()=>u}function o(u=a(),l){let s=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return s.filter(c=>!!c).length===0&&(s=[i]),s.reduce((c,f)=>{if(f)if(jt(c)){const v=f(c,l);return v===void 0?c:v}else{if(vt(c))return fm(c,d=>f(d,l));{const d=f(c,l);if(d===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return c},u)}return o.getInitialState=a,o}var Qx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Jx=(e=21)=>{let t="",r=e;for(;r--;)t+=Qx[Math.random()*64|0];return t},eP=Symbol.for("rtk-slice-createasyncthunk");function tP(e,t){return`${e}/${t}`}function rP({creators:e}={}){const t=e?.asyncThunk?.[eP];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(Xe(11));const o=(typeof n.reducers=="function"?n.reducers(iP()):n.reducers)||{},u=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(b,P){const x=typeof b=="string"?b:b.type;if(!x)throw new Error(Xe(12));if(x in l.sliceCaseReducersByType)throw new Error(Xe(13));return l.sliceCaseReducersByType[x]=P,s},addMatcher(b,P){return l.sliceMatchers.push({matcher:b,reducer:P}),s},exposeAction(b,P){return l.actionCreators[b]=P,s},exposeCaseReducer(b,P){return l.sliceCaseReducersByName[b]=P,s}};u.forEach(b=>{const P=o[b],x={reducerName:b,type:tP(i,b),createNotation:typeof n.reducers=="function"};oP(P)?lP(x,P,s,t):aP(x,P,s)});function c(){const[b={},P=[],x=void 0]=typeof n.extraReducers=="function"?mm(n.extraReducers):[n.extraReducers],O={...b,...l.sliceCaseReducersByType};return Zx(n.initialState,S=>{for(let _ in O)S.addCase(_,O[_]);for(let _ of l.sliceMatchers)S.addMatcher(_.matcher,_.reducer);for(let _ of P)S.addMatcher(_.matcher,_.reducer);x&&S.addDefaultCase(x)})}const f=b=>b,d=new Map,v=new WeakMap;let m;function p(b,P){return m||(m=c()),m(b,P)}function y(){return m||(m=c()),m.getInitialState()}function g(b,P=!1){function x(S){let _=S[b];return typeof _>"u"&&P&&(_=ei(v,x,y)),_}function O(S=f){const _=ei(d,P,()=>new WeakMap);return ei(_,S,()=>{const I={};for(const[j,T]of Object.entries(n.selectors??{}))I[j]=nP(T,S,()=>ei(v,S,y),P);return I})}return{reducerPath:b,getSelectors:O,get selectors(){return O(x)},selectSlice:x}}const w={name:i,reducer:p,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:y,...g(a),injectInto(b,{reducerPath:P,...x}={}){const O=P??a;return b.inject({reducerPath:O,reducer:p},x),{...w,...g(O,!0)}}};return w}}function nP(e,t,r,n){function i(a,...o){let u=t(a);return typeof u>"u"&&n&&(u=r()),e(u,...o)}return i.unwrapped=e,i}var We=rP();function iP(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function aP({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!uP(n))throw new Error(Xe(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?at(e,o):at(e))}function oP(e){return e._reducerDefinitionType==="asyncThunk"}function uP(e){return e._reducerDefinitionType==="reducerWithPrepare"}function lP({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Xe(18));const{payloadCreator:a,fulfilled:o,pending:u,rejected:l,settled:s,options:c}=r,f=i(e,a,c);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),u&&n.addCase(f.pending,u),l&&n.addCase(f.rejected,l),s&&n.addMatcher(f.settled,s),n.exposeCaseReducer(t,{fulfilled:o||ti,pending:u||ti,rejected:l||ti,settled:s||ti})}function ti(){}var cP="task",ym="listener",gm="completed",nc="cancelled",sP=`task-${nc}`,fP=`task-${gm}`,Qu=`${ym}-${nc}`,dP=`${ym}-${gm}`,Aa=class{constructor(e){this.code=e,this.message=`${cP} ${nc} (reason: ${e})`}name="TaskAbortError";message},ic=(e,t)=>{if(typeof e!="function")throw new TypeError(Xe(32))},Mi=()=>{},bm=(e,t=Mi)=>(e.catch(t),e),wm=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),fr=e=>{if(e.aborted)throw new Aa(e.reason)};function xm(e,t){let r=Mi;return new Promise((n,i)=>{const a=()=>i(new Aa(e.reason));if(e.aborted){a();return}r=wm(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=Mi})}var vP=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Aa?"cancelled":"rejected",error:r}}finally{t?.()}},Di=e=>t=>bm(xm(e,t).then(r=>(fr(e),r))),Pm=e=>{const t=Di(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Ir}=Object,id={},Sa="listenerMiddleware",hP=(e,t)=>{const r=n=>wm(e,()=>n.abort(e.reason));return(n,i)=>{ic(n);const a=new AbortController;r(a);const o=vP(async()=>{fr(e),fr(a.signal);const u=await n({pause:Di(a.signal),delay:Pm(a.signal),signal:a.signal});return fr(a.signal),u},()=>a.abort(fP));return i?.autoJoin&&t.push(o.catch(Mi)),{result:Di(e)(o),cancel(){a.abort(sP)}}}},pP=(e,t)=>{const r=async(n,i)=>{fr(t);let a=()=>{};const u=[new Promise((l,s)=>{let c=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});a=()=>{c(),s()}})];i!=null&&u.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await xm(t,Promise.race(u));return fr(t),l}finally{a()}};return(n,i)=>bm(r(n,i))},Om=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=at(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Xe(21));return ic(a),{predicate:i,type:t,effect:a}},Am=Ir(e=>{const{type:t,predicate:r,effect:n}=Om(e);return{id:Jx(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Xe(22))}}},{withTypes:()=>Am}),ad=(e,t)=>{const{type:r,effect:n,predicate:i}=Om(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},Ju=e=>{e.pending.forEach(t=>{t.abort(Qu)})},mP=(e,t)=>()=>{for(const r of t.keys())Ju(r);e.clear()},od=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Sm=Ir(at(`${Sa}/add`),{withTypes:()=>Sm}),yP=at(`${Sa}/removeAll`),Em=Ir(at(`${Sa}/remove`),{withTypes:()=>Em}),gP=(...e)=>{console.error(`${Sa}/error`,...e)},Cn=(e={})=>{const t=new Map,r=new Map,n=v=>{const m=r.get(v)??0;r.set(v,m+1)},i=v=>{const m=r.get(v)??1;m===1?r.delete(v):r.set(v,m-1)},{extra:a,onError:o=gP}=e;ic(o);const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),m=>{v.unsubscribe(),m?.cancelActive&&Ju(v)}),l=v=>{const m=ad(t,v)??Am(v);return u(m)};Ir(l,{withTypes:()=>l});const s=v=>{const m=ad(t,v);return m&&(m.unsubscribe(),v.cancelActive&&Ju(m)),!!m};Ir(s,{withTypes:()=>s});const c=async(v,m,p,y)=>{const g=new AbortController,w=pP(l,g.signal),b=[];try{v.pending.add(g),n(v),await Promise.resolve(v.effect(m,Ir({},p,{getOriginalState:y,condition:(P,x)=>w(P,x).then(Boolean),take:w,delay:Pm(g.signal),pause:Di(g.signal),extra:a,signal:g.signal,fork:hP(g.signal,b),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((P,x,O)=>{P!==g&&(P.abort(Qu),O.delete(P))})},cancel:()=>{g.abort(Qu),v.pending.delete(g)},throwIfCancelled:()=>{fr(g.signal)}})))}catch(P){P instanceof Aa||od(o,P,{raisedBy:"effect"})}finally{await Promise.all(b),g.abort(dP),i(v),v.pending.delete(g)}},f=mP(t,r);return{middleware:v=>m=>p=>{if(!tm(p))return m(p);if(Sm.match(p))return l(p.payload);if(yP.match(p)){f();return}if(Em.match(p))return s(p.payload);let y=v.getState();const g=()=>{if(y===id)throw new Error(Xe(23));return y};let w;try{if(w=m(p),t.size>0){const b=v.getState(),P=Array.from(t.values());for(const x of P){let O=!1;try{O=x.predicate(p,b,y)}catch(S){O=!1,od(o,S,{raisedBy:"predicate"})}O&&c(x,p,v,g)}}}finally{y=id}return w},startListening:l,stopListening:s,clearListeners:f}};function Xe(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var bP={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},_m=We({name:"chartLayout",initialState:bP,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:wP,setLayout:xP,setChartSize:PP,setScale:OP}=_m.actions,AP=_m.reducer;function Cm(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function ud(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cr(e){for(var t=1;t{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:u}=t;if((u==="vertical"||u==="horizontal"&&o==="middle")&&a!=="center"&&N(e[a]))return Cr(Cr({},e),{},{[a]:e[a]+(n||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&o!=="middle"&&N(e[o]))return Cr(Cr({},e),{},{[o]:e[o]+(i||0)})}return e},Jt=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",km=(e,t,r,n)=>{if(n)return e.map(u=>u.coordinate);var i,a,o=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===r&&(a=!0),u.coordinate));return i||o.push(t),a||o.push(r),o},Im=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:u,isCategorical:l,categoricalDomain:s,tickCount:c,ticks:f,niceTicks:d,axisType:v}=e;if(!o)return null;var m=u==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,p=i==="category"&&o.bandwidth?o.bandwidth()/m:0;if(p=v==="angleAxis"&&a&&a.length>=2?Se(a[0]-a[1])*2*p:p,f||d){var y=(f||d||[]).map((g,w)=>{var b=n?n.indexOf(g):g;return{coordinate:o(b)+p,value:g,offset:p,index:w}});return y.filter(g=>!dt(g.coordinate))}return l&&s?s.map((g,w)=>({coordinate:o(g)+p,value:g,index:w,offset:p})):o.ticks&&c!=null?o.ticks(c).map((g,w)=>({coordinate:o(g)+p,value:g,offset:p,index:w})):o.domain().map((g,w)=>({coordinate:o(g)+p,value:n?n[g]:g,index:w,offset:p}))},ld=1e-4,kP=e=>{var t=e.domain();if(!(!t||t.length<=2)){var r=t.length,n=e.range(),i=Math.min(n[0],n[1])-ld,a=Math.max(n[0],n[1])+ld,o=e(t[0]),u=e(t[r-1]);(oa||ua)&&e.domain([t[0],t[r-1]])}},IP=(e,t)=>{if(!t||t.length!==2||!N(t[0])||!N(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!N(e[0])||e[0]n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r=0?(e[o][r][0]=i,e[o][r][1]=i+u,i=e[o][r][1]):(e[o][r][0]=a,e[o][r][1]=a+u,a=e[o][r][1])}},TP=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r=0?(e[a][r][0]=i,e[a][r][1]=i+o,i=e[a][r][1]):(e[a][r][0]=0,e[a][r][1]=0)}},MP={sign:jP,expand:nw,none:Tr,silhouette:iw,wiggle:aw,positive:TP},DP=(e,t,r)=>{var n=MP[r],i=rw().keys(t).value((a,o)=>Number(X(a,o,0))).order(Ku).offset(n);return i(e)};function NP(e){return e==null?void 0:String(e)}function cd(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!oe(i[t.dataKey])){var u=Rp(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=X(i,oe(o)?t.dataKey:o);return oe(l)?null:t.scale(l)}var sd=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return r[o]?r[o].coordinate+n:null;var u=X(a,t.dataKey,t.scale.domain()[o]);return oe(u)?null:t.scale(u)-i/2+n},RP=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},$P=e=>{var t=e.flat(2).filter(N);return[Math.min(...t),Math.max(...t)]},LP=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],zP=(e,t,r)=>{if(e!=null)return LP(Object.keys(e).reduce((n,i)=>{var a=e[i],{stackedData:o}=a,u=o.reduce((l,s)=>{var c=Cm(s,t,r),f=$P(c);return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],n[0]),Math.max(u[1],n[1])]},[1/0,-1/0]))},fd=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,dd=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Dr=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=ma(t,c=>c.coordinate),a=1/0,o=1,u=i.length;o{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},FP=(e,t)=>t==="centric"?e.angle:e.radius,$t=e=>e.layout.width,Lt=e=>e.layout.height,KP=e=>e.layout.scale,jm=e=>e.layout.margin,Ea=A(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),_a=A(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Tm="data-recharts-item-index",Mm="data-recharts-item-data-key",kn=60;function hd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ri(e){for(var t=1;te.brush.height;function YP(e){var t=_a(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:kn;return r+i}return r},0)}function VP(e){var t=_a(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:kn;return r+i}return r},0)}function GP(e){var t=Ea(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function XP(e){var t=Ea(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var ge=A([$t,Lt,jm,HP,YP,VP,GP,XP,Zp,xx],(e,t,r,n,i,a,o,u,l,s)=>{var c={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+u},d=ri(ri({},f),c),v=d.bottom;d.bottom+=n,d=CP(d,l,s);var m=e-d.left-d.right,p=t-d.top-d.bottom;return ri(ri({brushBottom:v},d),{},{width:Math.max(m,0),height:Math.max(p,0)})}),ZP=A(ge,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),ac=A($t,Lt,(e,t)=>({x:0,y:0,width:e,height:t})),QP=h.createContext(null),Te=()=>h.useContext(QP)!=null,Ca=e=>e.brush,ka=A([Ca,ge,jm],(e,t,r)=>({height:e.height,x:N(e.x)?e.x:t.left,y:N(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:N(e.width)?e.width:t.width})),tu={},ru={},nu={},pd;function JP(){return pd||(pd=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let o,u=null;const l=a!=null&&a.includes("leading"),s=a==null||a.includes("trailing"),c=()=>{u!==null&&(r.apply(o,u),o=void 0,u=null)},f=()=>{s&&c(),p()};let d=null;const v=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,f()},n)},m=()=>{d!==null&&(clearTimeout(d),d=null)},p=()=>{m(),o=void 0,u=null},y=()=>{c()},g=function(...w){if(i?.aborted)return;o=this,u=w;const b=d==null;v(),l&&b&&c()};return g.schedule=v,g.cancel=p,g.flush=y,i?.addEventListener("abort",p,{once:!0}),g}e.debounce=t})(nu)),nu}var md;function eO(){return md||(md=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=JP();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:o=!1,trailing:u=!0,maxWait:l}=a,s=Array(2);o&&(s[0]="leading"),u&&(s[1]="trailing");let c,f=null;const d=t.debounce(function(...p){c=n.apply(this,p),f=null},i,{edges:s}),v=function(...p){return l!=null&&(f===null&&(f=Date.now()),Date.now()-f>=l)?(c=n.apply(this,p),f=Date.now(),d.cancel(),d.schedule(),c):(d.apply(this,p),c)},m=()=>(d.flush(),c);return v.cancel=d.cancel,v.flush=m,v}e.debounce=r})(ru)),ru}var yd;function tO(){return yd||(yd=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eO();function r(n,i=0,a={}){const{leading:o=!0,trailing:u=!0}=a;return t.debounce(n,i,{leading:o,maxWait:i,trailing:u})}e.throttle=r})(tu)),tu}var iu,gd;function rO(){return gd||(gd=1,iu=tO().throttle),iu}var nO=rO();const iO=Qt(nO);var Ni=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;ai[o++]))}},Dm=(e,t,r)=>{var{width:n="100%",height:i="100%",aspect:a,maxHeight:o}=r,u=It(n)?e:Number(n),l=It(i)?t:Number(i);return a&&a>0&&(u?l=u/a:l&&(u=l*a),o&&l!=null&&l>o&&(l=o)),{calculatedWidth:u,calculatedHeight:l}},aO={width:0,height:0,overflow:"visible"},oO={width:0,overflowX:"visible"},uO={height:0,overflowY:"visible"},lO={},cO=e=>{var{width:t,height:r}=e,n=It(t),i=It(r);return n&&i?aO:n?oO:i?uO:lO};function sO(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i="100%",a="100%"):i===void 0?i=n&&n>0?void 0:"100%":a===void 0&&(a=n&&n>0?void 0:"100%"),{width:i,height:a}}function fe(e){return Number.isFinite(e)}function wt(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function el(){return el=Object.assign?Object.assign.bind():function(e){for(var t=1;t({width:r,height:n}),[r,n]);return hO(i)?h.createElement(Nm.Provider,{value:i},t):null}var oc=()=>h.useContext(Nm),pO=h.forwardRef((e,t)=>{var{aspect:r,initialDimension:n={width:-1,height:-1},width:i,height:a,minWidth:o=0,minHeight:u,maxHeight:l,children:s,debounce:c=0,id:f,className:d,onResize:v,style:m={}}=e,p=h.useRef(null),y=h.useRef();y.current=v,h.useImperativeHandle(t,()=>p.current);var[g,w]=h.useState({containerWidth:n.width,containerHeight:n.height}),b=h.useCallback((_,I)=>{w(j=>{var T=Math.round(_),E=Math.round(I);return j.containerWidth===T&&j.containerHeight===E?j:{containerWidth:T,containerHeight:E}})},[]);h.useEffect(()=>{if(p.current==null||typeof ResizeObserver>"u")return Sn;var _=E=>{var $,{width:R,height:L}=E[0].contentRect;b(R,L),($=y.current)===null||$===void 0||$.call(y,R,L)};c>0&&(_=iO(_,c,{trailing:!0,leading:!1}));var I=new ResizeObserver(_),{width:j,height:T}=p.current.getBoundingClientRect();return b(j,T),I.observe(p.current),()=>{I.disconnect()}},[b,c]);var{containerWidth:P,containerHeight:x}=g;Ni(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:O,calculatedHeight:S}=Dm(P,x,{width:i,height:a,aspect:r,maxHeight:l});return Ni(O!=null&&O>0||S!=null&&S>0,`The width(%s) and height(%s) of chart should be greater than 0, + please check the style of container, or the props width(%s) and height(%s), + or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the + height and width.`,O,S,i,a,o,u,r),h.createElement("div",{id:f?"".concat(f):void 0,className:H("recharts-responsive-container",d),style:wd(wd({},m),{},{width:i,height:a,minWidth:o,minHeight:u,maxHeight:l}),ref:p},h.createElement("div",{style:cO({width:i,height:a})},h.createElement(Rm,{width:O,height:S},s)))}),RR=h.forwardRef((e,t)=>{var r=oc();if(wt(r.width)&&wt(r.height))return e.children;var{width:n,height:i}=sO({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=Dm(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return N(a)&&N(o)?h.createElement(Rm,{width:a,height:o},e.children):h.createElement(pO,el({},e,{width:n,height:i,ref:t}))});function $m(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Ia=()=>{var e,t=Te(),r=M(ZP),n=M(ka),i=(e=M(Ca))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},mO={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Lm=()=>{var e;return(e=M(ge))!==null&&e!==void 0?e:mO},uc=()=>M($t),lc=()=>M(Lt),yO=()=>M(e=>e.layout.margin),K=e=>e.layout.layoutType,In=()=>M(K),gO=()=>{var e=In();return e!==void 0},ja=e=>{var t=te(),r=Te(),{width:n,height:i}=e,a=oc(),o=n,u=i;return a&&(o=a.width>0?a.width:n,u=a.height>0?a.height:i),h.useEffect(()=>{!r&&wt(o)&&wt(u)&&t(PP({width:o,height:u}))},[t,r,o,u]),null},zm=Symbol.for("immer-nothing"),xd=Symbol.for("immer-draftable"),Qe=Symbol.for("immer-state");function ct(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var vn=Object.getPrototypeOf;function Nr(e){return!!e&&!!e[Qe]}function yr(e){return e?Bm(e)||Array.isArray(e)||!!e[xd]||!!e.constructor?.[xd]||jn(e)||Ma(e):!1}var bO=Object.prototype.constructor.toString(),Pd=new WeakMap;function Bm(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=Pd.get(r);return n===void 0&&(n=Function.toString.call(r),Pd.set(r,n)),n===bO}function Ri(e,t,r=!0){Ta(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Ta(e){const t=e[Qe];return t?t.type_:Array.isArray(e)?1:jn(e)?2:Ma(e)?3:0}function tl(e,t){return Ta(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Fm(e,t,r){const n=Ta(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function wO(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function jn(e){return e instanceof Map}function Ma(e){return e instanceof Set}function or(e){return e.copy_||e.base_}function rl(e,t){if(jn(e))return new Map(e);if(Ma(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Bm(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Qe];let i=Reflect.ownKeys(n);for(let a=0;a1&&Object.defineProperties(e,{set:ni,add:ni,clear:ni,delete:ni}),Object.freeze(e),t&&Object.values(e).forEach(r=>cc(r,!0))),e}function xO(){ct(2)}var ni={value:xO};function Da(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var PO={};function gr(e){const t=PO[e];return t||ct(0,e),t}var hn;function Km(){return hn}function OO(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Od(e,t){t&&(gr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function nl(e){il(e),e.drafts_.forEach(AO),e.drafts_=null}function il(e){e===hn&&(hn=e.parent_)}function Ad(e){return hn=OO(hn,e)}function AO(e){const t=e[Qe];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Sd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Qe].modified_&&(nl(t),ct(4)),yr(e)&&(e=$i(t,e),t.parent_||Li(t,e)),t.patches_&&gr("Patches").generateReplacementPatches_(r[Qe].base_,e,t.patches_,t.inversePatches_)):e=$i(t,r,[]),nl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==zm?e:void 0}function $i(e,t,r){if(Da(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[Qe];if(!i)return Ri(t,(a,o)=>Ed(e,i,t,a,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return Li(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let o=a,u=!1;i.type_===3&&(o=new Set(a),a.clear(),u=!0),Ri(o,(l,s)=>Ed(e,i,a,l,s,r,u),n),Li(e,a,!1),r&&e.patches_&&gr("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function Ed(e,t,r,n,i,a,o){if(i==null||typeof i!="object"&&!o)return;const u=Da(i);if(!(u&&!o)){if(Nr(i)){const l=a&&t&&t.type_!==3&&!tl(t.assigned_,n)?a.concat(n):void 0,s=$i(e,i,l);if(Fm(r,n,s),Nr(s))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(yr(i)&&!u){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&u)return;$i(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(jn(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Li(e,i)}}}function Li(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&cc(t,r)}function SO(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Km(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=sc;r&&(i=[n],a=pn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,u}var sc={get(e,t){if(t===Qe)return e;const r=or(e);if(!tl(r,t))return EO(e,r,t);const n=r[t];return e.finalized_||!yr(n)?n:n===au(e.base_,t)?(ou(e),e.copy_[t]=ol(n,e)):n},has(e,t){return t in or(e)},ownKeys(e){return Reflect.ownKeys(or(e))},set(e,t,r){const n=Wm(or(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=au(or(e),t),a=i?.[Qe];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(wO(r,i)&&(r!==void 0||tl(e.base_,t)))return!0;ou(e),al(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return au(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,ou(e),al(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=or(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ct(11)},getPrototypeOf(e){return vn(e.base_)},setPrototypeOf(){ct(12)}},pn={};Ri(sc,(e,t)=>{pn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});pn.deleteProperty=function(e,t){return pn.set.call(this,e,t,void 0)};pn.set=function(e,t,r){return sc.set.call(this,e[0],t,r,e[0])};function au(e,t){const r=e[Qe];return(r?or(r):e)[t]}function EO(e,t,r){const n=Wm(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function Wm(e,t){if(!(t in e))return;let r=vn(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=vn(r)}}function al(e){e.modified_||(e.modified_=!0,e.parent_&&al(e.parent_))}function ou(e){e.copy_||(e.copy_=rl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var _O=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(l=a,...s){return o.produce(l,c=>r.call(this,c,...s))}}typeof r!="function"&&ct(6),n!==void 0&&typeof n!="function"&&ct(7);let i;if(yr(t)){const a=Ad(this),o=ol(t,void 0);let u=!0;try{i=r(o),u=!1}finally{u?nl(a):il(a)}return Od(a,n),Sd(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===zm&&(i=void 0),this.autoFreeze_&&cc(i,!0),n){const a=[],o=[];gr("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else ct(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...u)=>this.produceWithPatches(o,l=>t(l,...u));let n,i;return[this.produce(t,r,(o,u)=>{n=o,i=u}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){yr(e)||ct(8),Nr(e)&&(e=CO(e));const t=Ad(this),r=ol(e,void 0);return r[Qe].isManual_=!0,il(t),r}finishDraft(e,t){const r=e&&e[Qe];(!r||!r.isManual_)&&ct(9);const{scope_:n}=r;return Od(n,t),Sd(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=gr("Patches").applyPatches_;return Nr(e)?n(e,t):this.produce(e,i=>n(i,t))}};function ol(e,t){const r=jn(e)?gr("MapSet").proxyMap_(e,t):Ma(e)?gr("MapSet").proxySet_(e,t):SO(e,t);return(t?t.scope_:Km()).drafts_.push(r),r}function CO(e){return Nr(e)||ct(10,e),qm(e)}function qm(e){if(!yr(e)||Da(e))return e;const t=e[Qe];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=rl(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=rl(e,!0);return Ri(r,(i,a)=>{Fm(r,i,qm(a))},n),t&&(t.finalized_=!1),r}var kO=new _O;kO.produce;var IO={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},Um=We({name:"legend",initialState:IO,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:ne()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ft(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:ne()},removeLegendPayload:{reducer(e,t){var r=ft(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:ne()}}}),{setLegendSize:_d,setLegendSettings:jO,addLegendPayload:Hm,replaceLegendPayload:Ym,removeLegendPayload:Vm}=Um.actions,TO=Um.reducer,MO=["contextPayload"];function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t(jO(e))},[t,e]),null}function WO(e){var t=te();return h.useEffect(()=>(t(_d(e)),()=>{t(_d({width:0,height:0}))}),[t,e]),null}function qO(e,t,r,n){return e==="vertical"&&N(t)?{height:t}:e==="horizontal"?{width:r||n}:null}var UO={align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function HO(e){var t=me(e,UO),r=Ax(),n=Eb(),i=yO(),{width:a,height:o,wrapperStyle:u,portal:l}=t,[s,c]=Qp([r]),f=uc(),d=lc();if(f==null||d==null)return null;var v=f-(i?.left||0)-(i?.right||0),m=qO(t.layout,o,a,v),p=l?u:Rr(Rr({position:"absolute",width:m?.width||a||"auto",height:m?.height||o||"auto"},FO(u,t,i,f,d,s)),u),y=l??n;if(y==null||r==null)return null;var g=h.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:c},h.createElement(KO,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!l&&h.createElement(WO,{width:s.width,height:s.height}),h.createElement(BO,ul({},t,m,{margin:i,chartWidth:f,chartHeight:d,contextPayload:r})));return zl.createPortal(g,y)}HO.displayName="Legend";function ll(){return ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{separator:t=" : ",contentStyle:r={},itemStyle:n={},labelStyle:i={},payload:a,formatter:o,itemSorter:u,wrapperClassName:l,labelClassName:s,label:c,labelFormatter:f,accessibilityLayer:d=!1}=e,v=()=>{if(a&&a.length){var x={padding:0,margin:0},O=(u?ma(a,u):a).map((S,_)=>{if(S.type==="none")return null;var I=S.formatter||o||XO,{value:j,name:T}=S,E=j,$=T;if(I){var R=I(j,T,S,_,a);if(Array.isArray(R))[E,$]=R;else if(R!=null)E=R;else return null}var L=uu({display:"block",paddingTop:4,paddingBottom:4,color:S.color||"#000"},n);return h.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(_),style:L},bt($)?h.createElement("span",{className:"recharts-tooltip-item-name"},$):null,bt($)?h.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,h.createElement("span",{className:"recharts-tooltip-item-value"},E),h.createElement("span",{className:"recharts-tooltip-item-unit"},S.unit||""))});return h.createElement("ul",{className:"recharts-tooltip-item-list",style:x},O)}return null},m=uu({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),p=uu({margin:0},i),y=!oe(c),g=y?c:"",w=H("recharts-default-tooltip",l),b=H("recharts-tooltip-label",s);y&&f&&a!==void 0&&a!==null&&(g=f(c,a));var P=d?{role:"status","aria-live":"assertive"}:{};return h.createElement("div",ll({className:w,style:m},P),h.createElement("p",{className:b,style:p},h.isValidElement(g)?g:"".concat(g)),v())},Zr="recharts-tooltip-wrapper",QO={visibility:"hidden"};function JO(e){var{coordinate:t,translateX:r,translateY:n}=e;return H(Zr,{["".concat(Zr,"-right")]:N(r)&&t&&N(t.x)&&r>=t.x,["".concat(Zr,"-left")]:N(r)&&t&&N(t.x)&&r=t.y,["".concat(Zr,"-top")]:N(n)&&t&&N(t.y)&&n0?i:0),f=r[n]+i;if(t[n])return o[n]?c:f;var d=l[n];if(d==null)return 0;if(o[n]){var v=c,m=d;return vy?Math.max(c,d):Math.max(f,d)}function e1(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function t1(e){var{allowEscapeViewBox:t,coordinate:r,offsetTopLeft:n,position:i,reverseDirection:a,tooltipBox:o,useTranslate3d:u,viewBox:l}=e,s,c,f;return o.height>0&&o.width>0&&r?(c=Id({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=Id({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),s=e1({translateX:c,translateY:f,useTranslate3d:u})):s=QO,{cssProperties:s,cssClasses:JO({translateX:c,translateY:f,coordinate:r})}}function jd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ii(e){for(var t=1;t{if(t.key==="Escape"){var r,n,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:i,children:a,coordinate:o,hasPayload:u,isAnimationActive:l,offset:s,position:c,reverseDirection:f,useTranslate3d:d,viewBox:v,wrapperStyle:m,lastBoundingBox:p,innerRef:y,hasPortalFromProps:g}=this.props,{cssClasses:w,cssProperties:b}=t1({allowEscapeViewBox:r,coordinate:o,offsetTopLeft:s,position:c,reverseDirection:f,tooltipBox:{height:p.height,width:p.width},useTranslate3d:d,viewBox:v}),P=g?{}:ii(ii({transition:l&&t?"transform ".concat(n,"ms ").concat(i):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&u?"visible":"hidden",position:"absolute",top:0,left:0}),x=ii(ii({},P),{},{visibility:!this.state.dismissed&&t&&u?"visible":"hidden"},m);return h.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:w,style:x,ref:y},a)}}var Gm=()=>{var e;return(e=M(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var t=1;tfe(e.x)&&fe(e.y),Nd=e=>e.base!=null&&zi(e.base)&&zi(e),Qr=e=>e.x,Jr=e=>e.y,l1=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(An(e));return(r==="curveMonotone"||r==="curveBump")&&t?Dd["".concat(r).concat(t==="vertical"?"Y":"X")]:Dd[r]||ha},c1=e=>{var{type:t="linear",points:r=[],baseLine:n,layout:i,connectNulls:a=!1}=e,o=l1(t,i),u=a?r.filter(zi):r,l;if(Array.isArray(n)){var s=r.map((v,m)=>Md(Md({},v),{},{base:n[m]}));i==="vertical"?l=Xn().y(Jr).x1(Qr).x0(v=>v.base.x):l=Xn().x(Qr).y1(Jr).y0(v=>v.base.y);var c=l.defined(Nd).curve(o),f=a?s.filter(Nd):s;return c(f)}i==="vertical"&&N(n)?l=Xn().y(Jr).x1(Qr).x0(n):N(n)?l=Xn().x(Qr).y1(Jr).y0(n):l=Op().x(Qr).y(Jr);var d=l.defined(zi).curve(o);return d(u)},fc=e=>{var{className:t,points:r,path:n,pathRef:i}=e;if((!r||!r.length)&&!n)return null;var a=r&&r.length?c1(e):n;return h.createElement("path",sl({},Ze(e),Gl(e),{className:H("recharts-curve",t),d:a===null?void 0:a,ref:i}))},s1=["x","y","top","left","width","height","className"];function fl(){return fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),g1=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:o=0,className:u}=e,l=p1(e,s1),s=f1({x:t,y:r,top:n,left:i,width:a,height:o},l);return!N(t)||!N(r)||!N(a)||!N(o)||!N(n)||!N(i)?null:h.createElement("path",fl({},Re(s),{className:H("recharts-cross",u),d:y1(t,r,a,o,n,i)}))};function b1(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function $d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ld(e){for(var t=1;te.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),Xm=(e,t,r)=>e.map(n=>"".concat(O1(n)," ").concat(t,"ms ").concat(r)).join(","),A1=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),mn=(e,t)=>Object.keys(t).reduce((r,n)=>Ld(Ld({},r),{},{[n]:e(n,t[n])}),{});function zd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ye(e){for(var t=1;te+(t-e)*r,dl=e=>{var{from:t,to:r}=e;return t!==r},Zm=(e,t,r)=>{var n=mn((i,a)=>{if(dl(a)){var[o,u]=e(a.from,a.to,a.velocity);return ye(ye({},a),{},{from:o,velocity:u})}return a},t);return r<1?mn((i,a)=>dl(a)?ye(ye({},a),{},{velocity:Bi(a.velocity,n[i].velocity,r),from:Bi(a.from,n[i].from,r)}):a,t):Zm(e,n,r-1)};function C1(e,t,r,n,i,a){var o,u=n.reduce((d,v)=>ye(ye({},d),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),l=()=>mn((d,v)=>v.from,u),s=()=>!Object.values(u).filter(dl).length,c=null,f=d=>{o||(o=d);var v=d-o,m=v/r.dt;u=Zm(r,u,m),i(ye(ye(ye({},e),t),l())),o=d,s()||(c=a.setTimeout(f))};return()=>(c=a.setTimeout(f),()=>{var d;(d=c)===null||d===void 0||d()})}function k1(e,t,r,n,i,a,o){var u=null,l=i.reduce((f,d)=>ye(ye({},f),{},{[d]:[e[d],t[d]]}),{}),s,c=f=>{s||(s=f);var d=(f-s)/n,v=mn((p,y)=>Bi(...y,r(d)),l);if(a(ye(ye(ye({},e),t),v)),d<1)u=o.setTimeout(c);else{var m=mn((p,y)=>Bi(...y,r(1)),l);a(ye(ye(ye({},e),t),m))}};return()=>(u=o.setTimeout(c),()=>{var f;(f=u)===null||f===void 0||f()})}const I1=(e,t,r,n,i,a)=>{var o=A1(e,t);return r==null?()=>(i(ye(ye({},e),t)),()=>{}):r.isStepper===!0?C1(e,t,r,o,i,a):k1(e,t,r,n,o,i,a)};var Fi=1e-4,Qm=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Jm=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Bd=(e,t)=>r=>{var n=Qm(e,t);return Jm(n,r)},j1=(e,t)=>r=>{var n=Qm(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return Jm(i,r)},T1=function(){for(var t=arguments.length,r=new Array(t),n=0;nparseFloat(u));return[o[0],o[1],o[2],o[3]]}}}return r.length===4?r:[0,0,1,1]},M1=(e,t,r,n)=>{var i=Bd(e,r),a=Bd(t,n),o=j1(e,r),u=s=>s>1?1:s<0?0:s,l=s=>{for(var c=s>1?1:s,f=c,d=0;d<8;++d){var v=i(f)-c,m=o(f);if(Math.abs(v-c)0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(o,u,l)=>{var s=-(o-u)*r,c=l*n,f=l+(s-c)*i/1e3,d=l*i/1e3+o;return Math.abs(d-u){if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Fd(e);case"spring":return D1();default:if(e.split("(")[0]==="cubic-bezier")return Fd(e)}return typeof e=="function"?e:null};function R1(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var u=o,[l,...s]=u;if(typeof l=="number"){i=e.setTimeout(a.bind(null,s),l);return}a(l),i=e.setTimeout(a.bind(null,s));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class $1{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{i!=null&&cancelAnimationFrame(i)}}}function L1(){return R1(new $1)}var z1=h.createContext(L1);function B1(e,t){var r=h.useContext(z1);return h.useMemo(()=>t??r(e),[e,t,r])}var F1=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Tn={devToolsEnabled:!1,isSsr:F1()},K1={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Kd={t:0},lu={t:1};function Mn(e){var t=me(e,K1),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:u,onAnimationStart:l,children:s}=t,c=r==="auto"?!Tn.isSsr:r,f=B1(t.animationId,t.animationManager),[d,v]=h.useState(c?Kd:lu),m=h.useRef(null);return h.useEffect(()=>{c||v(lu)},[c]),h.useEffect(()=>{if(!c||!n)return Sn;var p=I1(Kd,lu,N1(a),i,v,f.getTimeoutController()),y=()=>{m.current=p()};return f.start([l,o,y,i,u]),()=>{f.stop(),m.current&&m.current(),u()}},[c,n,i,a,o,l,u,f]),s(d.t)}function Dn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=h.useRef(cn(t)),n=h.useRef(e);return n.current!==e&&(r.current=cn(t),n.current=e),r.current}var W1=["radius"],q1=["radius"];function Wd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qd(e){for(var t=1;t{var a=Math.min(Math.abs(r)/2,Math.abs(n)/2),o=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0,s;if(a>0&&i instanceof Array){for(var c=[0,0,0,0],f=0,d=4;fa?a:i[f];s="M".concat(e,",").concat(t+o*c[0]),c[0]>0&&(s+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(l,",").concat(e+u*c[0],",").concat(t)),s+="L ".concat(e+r-u*c[1],",").concat(t),c[1]>0&&(s+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(l,`, + `).concat(e+r,",").concat(t+o*c[1])),s+="L ".concat(e+r,",").concat(t+n-o*c[2]),c[2]>0&&(s+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(l,`, + `).concat(e+r-u*c[2],",").concat(t+n)),s+="L ".concat(e+u*c[3],",").concat(t+n),c[3]>0&&(s+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(l,`, + `).concat(e,",").concat(t+n-o*c[3])),s+="Z"}else if(a>0&&i===+i&&i>0){var v=Math.min(a,i);s="M ".concat(e,",").concat(t+o*v,` + A `).concat(v,",").concat(v,",0,0,").concat(l,",").concat(e+u*v,",").concat(t,` + L `).concat(e+r-u*v,",").concat(t,` + A `).concat(v,",").concat(v,",0,0,").concat(l,",").concat(e+r,",").concat(t+o*v,` + L `).concat(e+r,",").concat(t+n-o*v,` + A `).concat(v,",").concat(v,",0,0,").concat(l,",").concat(e+r-u*v,",").concat(t+n,` + L `).concat(e+u*v,",").concat(t+n,` + A `).concat(v,",").concat(v,",0,0,").concat(l,",").concat(e,",").concat(t+n-o*v," Z")}else s="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return s},Yd={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ey=e=>{var t=me(e,Yd),r=h.useRef(null),[n,i]=h.useState(-1);h.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var B=r.current.getTotalLength();B&&i(B)}catch{}},[]);var{x:a,y:o,width:u,height:l,radius:s,className:c}=t,{animationEasing:f,animationDuration:d,animationBegin:v,isAnimationActive:m,isUpdateAnimationActive:p}=t,y=h.useRef(u),g=h.useRef(l),w=h.useRef(a),b=h.useRef(o),P=h.useMemo(()=>({x:a,y:o,width:u,height:l,radius:s}),[a,o,u,l,s]),x=Dn(P,"rectangle-");if(a!==+a||o!==+o||u!==+u||l!==+l||u===0||l===0)return null;var O=H("recharts-rectangle",c);if(!p){var S=Re(t),{radius:_}=S,I=Ud(S,W1);return h.createElement("path",Ki({},I,{radius:typeof s=="number"?s:void 0,className:O,d:Hd(a,o,u,l,s)}))}var j=y.current,T=g.current,E=w.current,$=b.current,R="0px ".concat(n===-1?1:n,"px"),L="".concat(n,"px 0px"),q=Xm(["strokeDasharray"],d,typeof f=="string"?f:Yd.animationEasing);return h.createElement(Mn,{animationId:x,key:x,canBegin:n>0,duration:d,easing:f,isActive:p,begin:v},B=>{var W=ie(j,u,B),z=ie(T,l,B),Q=ie(E,a,B),Me=ie($,o,B);r.current&&(y.current=W,g.current=z,w.current=Q,b.current=Me);var Le;m?B>0?Le={transition:q,strokeDasharray:L}:Le={strokeDasharray:R}:Le={strokeDasharray:L};var Pt=Re(t),{radius:Je}=Pt,nr=Ud(Pt,q1);return h.createElement("path",Ki({},nr,{radius:typeof s=="number"?s:void 0,className:O,d:Hd(Q,Me,W,z,s),ref:r,style:qd(qd({},Le),t.style)}))})};function Vd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gd(e){for(var t=1;te*180/Math.PI,ve=(e,t,r,n)=>({x:e+Math.cos(-Wi*n)*r,y:t+Math.sin(-Wi*n)*r}),ty=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},J1=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},eA=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=J1({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var u=(r-i)/o,l=Math.acos(u);return n>a&&(l=2*Math.PI-l),{radius:o,angle:Q1(l),angleInRadian:l}},tA=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},rA=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return e+o*360},nA=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:i,angle:a}=eA({x:r,y:n},t),{innerRadius:o,outerRadius:u}=t;if(iu||i===0)return null;var{startAngle:l,endAngle:s}=tA(t),c=a,f;if(l<=s){for(;c>s;)c-=360;for(;c=l&&c<=s}else{for(;c>l;)c-=360;for(;c=s&&c<=l}return f?Gd(Gd({},t),{},{radius:i,angle:rA(c,t)}):null};function ry(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,o=ve(t,r,n,i),u=ve(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function vl(){return vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=Se(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},ai=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:o,cornerRadius:u,cornerIsExternal:l}=e,s=u*(o?1:-1)+n,c=Math.asin(u/s)/Wi,f=l?i:i+a*c,d=ve(t,r,s,f),v=ve(t,r,n,f),m=l?i-a*c:i,p=ve(t,r,s*Math.cos(c*Wi),m);return{center:d,circleTangency:v,lineTangency:p,theta:c}},ny=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,u=iA(a,o),l=a+u,s=ve(t,r,i,a),c=ve(t,r,i,l),f="M ".concat(s.x,",").concat(s.y,` + A `).concat(i,",").concat(i,`,0, + `).concat(+(Math.abs(u)>180),",").concat(+(a>l),`, + `).concat(c.x,",").concat(c.y,` + `);if(n>0){var d=ve(t,r,n,a),v=ve(t,r,n,l);f+="L ".concat(v.x,",").concat(v.y,` + A `).concat(n,",").concat(n,`,0, + `).concat(+(Math.abs(u)>180),",").concat(+(a<=l),`, + `).concat(d.x,",").concat(d.y," Z")}else f+="L ".concat(t,",").concat(r," Z");return f},aA=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:u,startAngle:l,endAngle:s}=e,c=Se(s-l),{circleTangency:f,lineTangency:d,theta:v}=ai({cx:t,cy:r,radius:i,angle:l,sign:c,cornerRadius:a,cornerIsExternal:u}),{circleTangency:m,lineTangency:p,theta:y}=ai({cx:t,cy:r,radius:i,angle:s,sign:-c,cornerRadius:a,cornerIsExternal:u}),g=u?Math.abs(l-s):Math.abs(l-s)-v-y;if(g<0)return o?"M ".concat(d.x,",").concat(d.y,` + a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0 + a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0 + `):ny({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:l,endAngle:s});var w="M ".concat(d.x,",").concat(d.y,` + A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(f.x,",").concat(f.y,` + A`).concat(i,",").concat(i,",0,").concat(+(g>180),",").concat(+(c<0),",").concat(m.x,",").concat(m.y,` + A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,` + `);if(n>0){var{circleTangency:b,lineTangency:P,theta:x}=ai({cx:t,cy:r,radius:n,angle:l,sign:c,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),{circleTangency:O,lineTangency:S,theta:_}=ai({cx:t,cy:r,radius:n,angle:s,sign:-c,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),I=u?Math.abs(l-s):Math.abs(l-s)-x-_;if(I<0&&a===0)return"".concat(w,"L").concat(t,",").concat(r,"Z");w+="L".concat(S.x,",").concat(S.y,` + A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(O.x,",").concat(O.y,` + A`).concat(n,",").concat(n,",0,").concat(+(I>180),",").concat(+(c>0),",").concat(b.x,",").concat(b.y,` + A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(P.x,",").concat(P.y,"Z")}else w+="L".concat(t,",").concat(r,"Z");return w},oA={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},iy=e=>{var t=me(e,oA),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:c,className:f}=t;if(a0&&Math.abs(s-c)<360?p=aA({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,v/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:c}):p=ny({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:c}),h.createElement("path",vl({},Re(t),{className:d,d:p}))};function uA(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(Lp(t)){if(e==="centric"){var{cx:n,cy:i,innerRadius:a,outerRadius:o,angle:u}=t,l=ve(n,i,a,u),s=ve(n,i,o,u);return[{x:l.x,y:l.y},{x:s.x,y:s.y}]}return ry(t)}}var cu={},su={},fu={},Xd;function lA(){return Xd||(Xd=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Gp();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(fu)),fu}var Zd;function cA(){return Zd||(Zd=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lA();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(su)),su}var Qd;function sA(){return Qd||(Qd=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xp(),r=cA();function n(i,a,o){o&&typeof o!="number"&&t.isIterateeCall(i,a,o)&&(a=o=void 0),i=r.toFinite(i),a===void 0?(a=i,i=0):a=r.toFinite(a),o=o===void 0?it?1:e>=t?0:NaN}function vA(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function dc(e){let t,r,n;e.length!==2?(t=Ht,r=(u,l)=>Ht(e(u),l),n=(u,l)=>e(u)-l):(t=e===Ht||e===vA?e:hA,r=e,n=e);function i(u,l,s=0,c=u.length){if(s>>1;r(u[f],l)<0?s=f+1:c=f}while(s>>1;r(u[f],l)<=0?s=f+1:c=f}while(ss&&n(u[f-1],l)>-n(u[f],l)?f-1:f}return{left:i,center:o,right:a}}function hA(){return 0}function oy(e){return e===null?NaN:+e}function*pA(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const mA=dc(Ht),Nn=mA.right;dc(oy).center;class ev extends Map{constructor(t,r=bA){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(tv(this,t))}has(t){return super.has(tv(this,t))}set(t,r){return super.set(yA(this,t),r)}delete(t){return super.delete(gA(this,t))}}function tv({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function yA({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function gA({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function bA(e){return e!==null&&typeof e=="object"?e.valueOf():e}function wA(e=Ht){if(e===Ht)return uy;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function uy(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const xA=Math.sqrt(50),PA=Math.sqrt(10),OA=Math.sqrt(2);function qi(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=xA?10:a>=PA?5:a>=OA?2:1;let u,l,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),l=Math.round(t*s),u/st&&--l,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),l=Math.round(t/s),u*st&&--l),l0))return[];if(e===t)return[e];const n=t=i))return[];const u=a-i+1,l=new Array(u);if(n)if(o<0)for(let s=0;s=n)&&(r=n);return r}function nv(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function ly(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?uy:wA(i);n>r;){if(n-r>600){const l=n-r+1,s=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(s-l/2<0?-1:1),v=Math.max(r,Math.floor(t-s*f/l+d)),m=Math.min(n,Math.floor(t+(l-s)*f/l+d));ly(e,t,v,m,i)}const a=e[t];let o=r,u=n;for(en(e,r,t),i(e[n],a)>0&&en(e,r,n);o0;)--u}i(e[r],a)===0?en(e,r,u):(++u,en(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function en(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function AA(e,t,r){if(e=Float64Array.from(pA(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return nv(e);if(t>=1)return rv(e);var n,i=(n-1)*t,a=Math.floor(i),o=rv(ly(e,a).subarray(0,a+1)),u=nv(e.subarray(a+1));return o+(u-o)*(i-a)}}function SA(e,t,r=oy){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function EA(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?oi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?oi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=kA.exec(e))?new Ke(t[1],t[2],t[3],1):(t=IA.exec(e))?new Ke(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jA.exec(e))?oi(t[1],t[2],t[3],t[4]):(t=TA.exec(e))?oi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=MA.exec(e))?sv(t[1],t[2]/100,t[3]/100,1):(t=DA.exec(e))?sv(t[1],t[2]/100,t[3]/100,t[4]):iv.hasOwnProperty(e)?uv(iv[e]):e==="transparent"?new Ke(NaN,NaN,NaN,0):null}function uv(e){return new Ke(e>>16&255,e>>8&255,e&255,1)}function oi(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ke(e,t,r,n)}function $A(e){return e instanceof Rn||(e=bn(e)),e?(e=e.rgb(),new Ke(e.r,e.g,e.b,e.opacity)):new Ke}function gl(e,t,r,n){return arguments.length===1?$A(e):new Ke(e,t,r,n??1)}function Ke(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}pc(Ke,gl,sy(Rn,{brighter(e){return e=e==null?Ui:Math.pow(Ui,e),new Ke(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new Ke(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ke(dr(this.r),dr(this.g),dr(this.b),Hi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:lv,formatHex:lv,formatHex8:LA,formatRgb:cv,toString:cv}));function lv(){return`#${lr(this.r)}${lr(this.g)}${lr(this.b)}`}function LA(){return`#${lr(this.r)}${lr(this.g)}${lr(this.b)}${lr((isNaN(this.opacity)?1:this.opacity)*255)}`}function cv(){const e=Hi(this.opacity);return`${e===1?"rgb(":"rgba("}${dr(this.r)}, ${dr(this.g)}, ${dr(this.b)}${e===1?")":`, ${e})`}`}function Hi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function dr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function lr(e){return e=dr(e),(e<16?"0":"")+e.toString(16)}function sv(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new st(e,t,r,n)}function fy(e){if(e instanceof st)return new st(e.h,e.s,e.l,e.opacity);if(e instanceof Rn||(e=bn(e)),!e)return new st;if(e instanceof st)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,l=(a+i)/2;return u?(t===a?o=(r-n)/u+(r0&&l<1?0:o,new st(o,u,l,e.opacity)}function zA(e,t,r,n){return arguments.length===1?fy(e):new st(e,t,r,n??1)}function st(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}pc(st,zA,sy(Rn,{brighter(e){return e=e==null?Ui:Math.pow(Ui,e),new st(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new st(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ke(vu(e>=240?e-240:e+120,i,n),vu(e,i,n),vu(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new st(fv(this.h),ui(this.s),ui(this.l),Hi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Hi(this.opacity);return`${e===1?"hsl(":"hsla("}${fv(this.h)}, ${ui(this.s)*100}%, ${ui(this.l)*100}%${e===1?")":`, ${e})`}`}}));function fv(e){return e=(e||0)%360,e<0?e+360:e}function ui(e){return Math.max(0,Math.min(1,e||0))}function vu(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const mc=e=>()=>e;function BA(e,t){return function(r){return e+r*t}}function FA(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function KA(e){return(e=+e)==1?dy:function(t,r){return r-t?FA(t,r,e):mc(isNaN(t)?r:t)}}function dy(e,t){var r=t-e;return r?BA(e,r):mc(isNaN(e)?t:e)}const dv=(function e(t){var r=KA(t);function n(i,a){var o=r((i=gl(i)).r,(a=gl(a)).r),u=r(i.g,a.g),l=r(i.b,a.b),s=dy(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=u(c),i.b=l(c),i.opacity=s(c),i+""}}return n.gamma=e,n})(1);function WA(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;ir&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,l.push({i:o,x:pt(n,i)})),r=hu.lastIndex;return r180?c+=360:c-s>180&&(s+=360),d.push({i:f.push(i(f)+"rotate(",null,n)-2,x:pt(s,c)})):c&&f.push(i(f)+"rotate("+c+n)}function u(s,c,f,d){s!==c?d.push({i:f.push(i(f)+"skewX(",null,n)-2,x:pt(s,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(s,c,f,d,v,m){if(s!==f||c!==d){var p=v.push(i(v)+"scale(",null,",",null,")");m.push({i:p-4,x:pt(s,f)},{i:p-2,x:pt(c,d)})}else(f!==1||d!==1)&&v.push(i(v)+"scale("+f+","+d+")")}return function(s,c){var f=[],d=[];return s=e(s),c=e(c),a(s.translateX,s.translateY,c.translateX,c.translateY,f,d),o(s.rotate,c.rotate,f,d),u(s.skewX,c.skewX,f,d),l(s.scaleX,s.scaleY,c.scaleX,c.scaleY,f,d),s=c=null,function(v){for(var m=-1,p=d.length,y;++mt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function aS(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i2?oS:aS,l=s=null,f}function f(d){return d==null||isNaN(d=+d)?a:(l||(l=u(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((s||(s=u(t,e.map(n),pt)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Yi),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=yc,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Ne,c()):o!==Ne},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,v){return n=d,i=v,c()}}function gc(){return Na()(Ne,Ne)}function uS(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Vi(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function $r(e){return e=Vi(Math.abs(e)),e?e[1]:NaN}function lS(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],l=0;i>0&&u>0&&(l+u+1>n&&(u=Math.max(1,n-l)),a.push(r.substring(i-=u,i+u)),!((l+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function cS(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var sS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wn(e){if(!(t=sS.exec(e)))throw new Error("invalid format: "+e);var t;return new bc({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}wn.prototype=bc.prototype;function bc(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}bc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function fS(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Gi;function dS(e,t){var r=Vi(e,t);if(!r)return Gi=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Gi=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Vi(e,Math.max(0,t+a-1))[0]}function mv(e,t){var r=Vi(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const yv={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:uS,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>mv(e*100,t),r:mv,s:dS,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function gv(e){return e}var bv=Array.prototype.map,wv=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function vS(e){var t=e.grouping===void 0||e.thousands===void 0?gv:lS(bv.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?gv:cS(bv.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function s(f,d){f=wn(f);var v=f.fill,m=f.align,p=f.sign,y=f.symbol,g=f.zero,w=f.width,b=f.comma,P=f.precision,x=f.trim,O=f.type;O==="n"?(b=!0,O="g"):yv[O]||(P===void 0&&(P=12),x=!0,O="g"),(g||v==="0"&&m==="=")&&(g=!0,v="0",m="=");var S=(d&&d.prefix!==void 0?d.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),_=(y==="$"?n:/[%p]/.test(O)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),I=yv[O],j=/[defgprs%]/.test(O);P=P===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,P)):Math.max(0,Math.min(20,P));function T(E){var $=S,R=_,L,q,B;if(O==="c")R=I(E)+R,E="";else{E=+E;var W=E<0||1/E<0;if(E=isNaN(E)?l:I(Math.abs(E),P),x&&(E=fS(E)),W&&+E==0&&p!=="+"&&(W=!1),$=(W?p==="("?p:u:p==="-"||p==="("?"":p)+$,R=(O==="s"&&!isNaN(E)&&Gi!==void 0?wv[8+Gi/3]:"")+R+(W&&p==="("?")":""),j){for(L=-1,q=E.length;++LB||B>57){R=(B===46?i+E.slice(L+1):E.slice(L))+R,E=E.slice(0,L);break}}}b&&!g&&(E=t(E,1/0));var z=$.length+E.length+R.length,Q=z>1)+$+E+R+Q.slice(z);break;default:E=Q+$+E+R;break}return a(E)}return T.toString=function(){return f+""},T}function c(f,d){var v=Math.max(-8,Math.min(8,Math.floor($r(d)/3)))*3,m=Math.pow(10,-v),p=s((f=wn(f),f.type="f",f),{suffix:wv[8+v/3]});return function(y){return p(m*y)}}return{format:s,formatPrefix:c}}var ci,wc,py;hS({thousands:",",grouping:[3],currency:["$",""]});function hS(e){return ci=vS(e),wc=ci.format,py=ci.formatPrefix,ci}function pS(e){return Math.max(0,-$r(Math.abs(e)))}function mS(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor($r(t)/3)))*3-$r(Math.abs(e)))}function yS(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,$r(t)-$r(e))+1}function my(e,t,r,n){var i=ml(e,t,r),a;switch(n=wn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=mS(i,o))&&(n.precision=a),py(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=yS(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=pS(i))&&(n.precision=a-(n.type==="%")*2);break}}return wc(n)}function er(e){var t=e.domain;return e.ticks=function(r){var n=t();return hl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return my(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],l,s,c=10;for(u0;){if(s=pl(o,u,r),s===l)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;l=s}return e},e}function yy(){var e=gc();return e.copy=function(){return $n(e,yy())},ut.apply(e,arguments),er(e)}function gy(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Yi),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return gy(e).unknown(t)},e=arguments.length?Array.from(e,Yi):[0,1],er(r)}function by(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return aMath.pow(e,t)}function PS(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Ov(e){return(t,r)=>-e(-t,r)}function xc(e){const t=e(xv,Pv),r=t.domain;let n=10,i,a;function o(){return i=PS(n),a=xS(n),r()[0]<0?(i=Ov(i),a=Ov(a),e(gS,bS)):e(xv,Pv),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const l=r();let s=l[0],c=l[l.length-1];const f=c0){for(;d<=v;++d)for(m=1;mc)break;g.push(p)}}else for(;d<=v;++d)for(m=n-1;m>=1;--m)if(p=d>0?m/a(-d):m*a(d),!(pc)break;g.push(p)}g.length*2{if(u==null&&(u=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=wn(l)).precision==null&&(l.trim=!0),l=wc(l)),u===1/0)return l;const s=Math.max(1,n*u/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*nr(by(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function wy(){const e=xc(Na()).domain([1,10]);return e.copy=()=>$n(e,wy()).base(e.base()),ut.apply(e,arguments),e}function Av(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Sv(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Pc(e){var t=1,r=e(Av(t),Sv(t));return r.constant=function(n){return arguments.length?e(Av(t=+n),Sv(t)):t},er(r)}function xy(){var e=Pc(Na());return e.copy=function(){return $n(e,xy()).constant(e.constant())},ut.apply(e,arguments)}function Ev(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function OS(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function AS(e){return e<0?-e*e:e*e}function Oc(e){var t=e(Ne,Ne),r=1;function n(){return r===1?e(Ne,Ne):r===.5?e(OS,AS):e(Ev(r),Ev(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},er(t)}function Ac(){var e=Oc(Na());return e.copy=function(){return $n(e,Ac()).exponent(e.exponent())},ut.apply(e,arguments),e}function SS(){return Ac.apply(null,arguments).exponent(.5)}function _v(e){return Math.sign(e)*e*e}function ES(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Py(){var e=gc(),t=[0,1],r=!1,n;function i(a){var o=ES(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(_v(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Yi)).map(_v)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Py(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},ut.apply(i,arguments),er(i)}function Oy(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o0?r[u-1]:e[0],u=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Ay().domain([e,t]).range(i).unknown(a)},ut.apply(er(o),arguments)}function Sy(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Nn(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Sy().domain(e).range(t).unknown(r)},ut.apply(i,arguments)}const pu=new Date,mu=new Date;function be(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const l=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a0))return l;let s;do l.push(s=new Date(+a)),t(a,u),e(a);while(sbe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(pu.setTime(+a),mu.setTime(+o),e(pu),e(mu),Math.floor(r(pu,mu))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Xi=be(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Xi.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?be(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Xi);Xi.range;const Et=1e3,it=Et*60,_t=it*60,Tt=_t*24,Sc=Tt*7,Cv=Tt*30,yu=Tt*365,cr=be(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Et)},(e,t)=>(t-e)/Et,e=>e.getUTCSeconds());cr.range;const Ec=be(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Et)},(e,t)=>{e.setTime(+e+t*it)},(e,t)=>(t-e)/it,e=>e.getMinutes());Ec.range;const _c=be(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*it)},(e,t)=>(t-e)/it,e=>e.getUTCMinutes());_c.range;const Cc=be(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Et-e.getMinutes()*it)},(e,t)=>{e.setTime(+e+t*_t)},(e,t)=>(t-e)/_t,e=>e.getHours());Cc.range;const kc=be(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*_t)},(e,t)=>(t-e)/_t,e=>e.getUTCHours());kc.range;const Ln=be(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*it)/Tt,e=>e.getDate()-1);Ln.range;const Ra=be(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tt,e=>e.getUTCDate()-1);Ra.range;const Ey=be(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tt,e=>Math.floor(e/Tt));Ey.range;function Pr(e){return be(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*it)/Sc)}const $a=Pr(0),Zi=Pr(1),_S=Pr(2),CS=Pr(3),Lr=Pr(4),kS=Pr(5),IS=Pr(6);$a.range;Zi.range;_S.range;CS.range;Lr.range;kS.range;IS.range;function Or(e){return be(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Sc)}const La=Or(0),Qi=Or(1),jS=Or(2),TS=Or(3),zr=Or(4),MS=Or(5),DS=Or(6);La.range;Qi.range;jS.range;TS.range;zr.range;MS.range;DS.range;const Ic=be(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Ic.range;const jc=be(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());jc.range;const Mt=be(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Mt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:be(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Mt.range;const Dt=be(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Dt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:be(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Dt.range;function _y(e,t,r,n,i,a){const o=[[cr,1,Et],[cr,5,5*Et],[cr,15,15*Et],[cr,30,30*Et],[a,1,it],[a,5,5*it],[a,15,15*it],[a,30,30*it],[i,1,_t],[i,3,3*_t],[i,6,6*_t],[i,12,12*_t],[n,1,Tt],[n,2,2*Tt],[r,1,Sc],[t,1,Cv],[t,3,3*Cv],[e,1,yu]];function u(s,c,f){const d=cy).right(o,d);if(v===o.length)return e.every(ml(s/yu,c/yu,f));if(v===0)return Xi.every(Math.max(ml(s,c,f),1));const[m,p]=o[d/o[v-1][2]53)return null;"w"in k||(k.w=1),"Z"in k?(J=bu(tn(k.y,0,1)),Ue=J.getUTCDay(),J=Ue>4||Ue===0?Qi.ceil(J):Qi(J),J=Ra.offset(J,(k.V-1)*7),k.y=J.getUTCFullYear(),k.m=J.getUTCMonth(),k.d=J.getUTCDate()+(k.w+6)%7):(J=gu(tn(k.y,0,1)),Ue=J.getDay(),J=Ue>4||Ue===0?Zi.ceil(J):Zi(J),J=Ln.offset(J,(k.V-1)*7),k.y=J.getFullYear(),k.m=J.getMonth(),k.d=J.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),Ue="Z"in k?bu(tn(k.y,0,1)).getUTCDay():gu(tn(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(Ue+5)%7:k.w+k.U*7-(Ue+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,bu(k)):gu(k)}}function _(C,F,U,k){for(var Be=0,J=F.length,Ue=U.length,He,ir;Be=Ue)return-1;if(He=F.charCodeAt(Be++),He===37){if(He=F.charAt(Be++),ir=x[He in kv?F.charAt(Be++):He],!ir||(k=ir(C,U,k))<0)return-1}else if(He!=U.charCodeAt(k++))return-1}return k}function I(C,F,U){var k=s.exec(F.slice(U));return k?(C.p=c.get(k[0].toLowerCase()),U+k[0].length):-1}function j(C,F,U){var k=v.exec(F.slice(U));return k?(C.w=m.get(k[0].toLowerCase()),U+k[0].length):-1}function T(C,F,U){var k=f.exec(F.slice(U));return k?(C.w=d.get(k[0].toLowerCase()),U+k[0].length):-1}function E(C,F,U){var k=g.exec(F.slice(U));return k?(C.m=w.get(k[0].toLowerCase()),U+k[0].length):-1}function $(C,F,U){var k=p.exec(F.slice(U));return k?(C.m=y.get(k[0].toLowerCase()),U+k[0].length):-1}function R(C,F,U){return _(C,t,F,U)}function L(C,F,U){return _(C,r,F,U)}function q(C,F,U){return _(C,n,F,U)}function B(C){return o[C.getDay()]}function W(C){return a[C.getDay()]}function z(C){return l[C.getMonth()]}function Q(C){return u[C.getMonth()]}function Me(C){return i[+(C.getHours()>=12)]}function Le(C){return 1+~~(C.getMonth()/3)}function Pt(C){return o[C.getUTCDay()]}function Je(C){return a[C.getUTCDay()]}function nr(C){return l[C.getUTCMonth()]}function Xr(C){return u[C.getUTCMonth()]}function ze(C){return i[+(C.getUTCHours()>=12)]}function io(C){return 1+~~(C.getUTCMonth()/3)}return{format:function(C){var F=O(C+="",b);return F.toString=function(){return C},F},parse:function(C){var F=S(C+="",!1);return F.toString=function(){return C},F},utcFormat:function(C){var F=O(C+="",P);return F.toString=function(){return C},F},utcParse:function(C){var F=S(C+="",!0);return F.toString=function(){return C},F}}}var kv={"-":"",_:" ",0:"0"},_e=/^\s*\d+/,BS=/^%/,FS=/[\\^$*+?|[\]().{}]/g;function Y(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function WS(e,t,r){var n=_e.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function qS(e,t,r){var n=_e.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function US(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function HS(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function YS(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Iv(e,t,r){var n=_e.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function jv(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function VS(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function GS(e,t,r){var n=_e.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function XS(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Tv(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function ZS(e,t,r){var n=_e.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Mv(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function QS(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function JS(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function eE(e,t,r){var n=_e.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function tE(e,t,r){var n=_e.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function rE(e,t,r){var n=BS.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function nE(e,t,r){var n=_e.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function iE(e,t,r){var n=_e.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Dv(e,t){return Y(e.getDate(),t,2)}function aE(e,t){return Y(e.getHours(),t,2)}function oE(e,t){return Y(e.getHours()%12||12,t,2)}function uE(e,t){return Y(1+Ln.count(Mt(e),e),t,3)}function Cy(e,t){return Y(e.getMilliseconds(),t,3)}function lE(e,t){return Cy(e,t)+"000"}function cE(e,t){return Y(e.getMonth()+1,t,2)}function sE(e,t){return Y(e.getMinutes(),t,2)}function fE(e,t){return Y(e.getSeconds(),t,2)}function dE(e){var t=e.getDay();return t===0?7:t}function vE(e,t){return Y($a.count(Mt(e)-1,e),t,2)}function ky(e){var t=e.getDay();return t>=4||t===0?Lr(e):Lr.ceil(e)}function hE(e,t){return e=ky(e),Y(Lr.count(Mt(e),e)+(Mt(e).getDay()===4),t,2)}function pE(e){return e.getDay()}function mE(e,t){return Y(Zi.count(Mt(e)-1,e),t,2)}function yE(e,t){return Y(e.getFullYear()%100,t,2)}function gE(e,t){return e=ky(e),Y(e.getFullYear()%100,t,2)}function bE(e,t){return Y(e.getFullYear()%1e4,t,4)}function wE(e,t){var r=e.getDay();return e=r>=4||r===0?Lr(e):Lr.ceil(e),Y(e.getFullYear()%1e4,t,4)}function xE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Y(t/60|0,"0",2)+Y(t%60,"0",2)}function Nv(e,t){return Y(e.getUTCDate(),t,2)}function PE(e,t){return Y(e.getUTCHours(),t,2)}function OE(e,t){return Y(e.getUTCHours()%12||12,t,2)}function AE(e,t){return Y(1+Ra.count(Dt(e),e),t,3)}function Iy(e,t){return Y(e.getUTCMilliseconds(),t,3)}function SE(e,t){return Iy(e,t)+"000"}function EE(e,t){return Y(e.getUTCMonth()+1,t,2)}function _E(e,t){return Y(e.getUTCMinutes(),t,2)}function CE(e,t){return Y(e.getUTCSeconds(),t,2)}function kE(e){var t=e.getUTCDay();return t===0?7:t}function IE(e,t){return Y(La.count(Dt(e)-1,e),t,2)}function jy(e){var t=e.getUTCDay();return t>=4||t===0?zr(e):zr.ceil(e)}function jE(e,t){return e=jy(e),Y(zr.count(Dt(e),e)+(Dt(e).getUTCDay()===4),t,2)}function TE(e){return e.getUTCDay()}function ME(e,t){return Y(Qi.count(Dt(e)-1,e),t,2)}function DE(e,t){return Y(e.getUTCFullYear()%100,t,2)}function NE(e,t){return e=jy(e),Y(e.getUTCFullYear()%100,t,2)}function RE(e,t){return Y(e.getUTCFullYear()%1e4,t,4)}function $E(e,t){var r=e.getUTCDay();return e=r>=4||r===0?zr(e):zr.ceil(e),Y(e.getUTCFullYear()%1e4,t,4)}function LE(){return"+0000"}function Rv(){return"%"}function $v(e){return+e}function Lv(e){return Math.floor(+e/1e3)}var Ar,Ty,My;zE({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function zE(e){return Ar=zS(e),Ty=Ar.format,Ar.parse,My=Ar.utcFormat,Ar.utcParse,Ar}function BE(e){return new Date(e)}function FE(e){return e instanceof Date?+e:+new Date(+e)}function Tc(e,t,r,n,i,a,o,u,l,s){var c=gc(),f=c.invert,d=c.domain,v=s(".%L"),m=s(":%S"),p=s("%I:%M"),y=s("%I %p"),g=s("%a %d"),w=s("%b %d"),b=s("%B"),P=s("%Y");function x(O){return(l(O)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>AA(e,a/n))},r.copy=function(){return $y(t).domain(e)},zt.apply(r,arguments)}function Ba(){var e=0,t=.5,r=1,n=1,i,a,o,u,l,s=Ne,c,f=!1,d;function v(p){return isNaN(p=+p)?d:(p=.5+((p=+c(p))-a)*(n*pe.chartData,Nc=A([rr],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Fa=(e,t,r,n)=>n?Nc(e):rr(e);function Yt(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(fe(t)&&fe(r))return!0}return!1}function zv(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Fy(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(fe(r))i=r;else if(typeof r=="function")return;if(fe(n))a=n;else if(typeof n=="function")return;var o=[i,a];if(Yt(o))return o}}function HE(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Yt(n))return zv(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,u;if(i==="auto")t!=null&&(o=Math.min(...t));else if(N(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i=="string"&&fd.test(i)){var l=fd.exec(i);if(l==null||t==null)o=void 0;else{var s=+l[1];o=t[0]-s}}else o=t?.[0];if(a==="auto")t!=null&&(u=Math.max(...t));else if(N(a))u=a;else if(typeof a=="function")try{t!=null&&(u=a(t?.[1]))}catch{}else if(typeof a=="string"&&dd.test(a)){var c=dd.exec(a);if(c==null||t==null)u=void 0;else{var f=+c[1];u=t[1]+f}}else u=t?.[1];var d=[o,u];if(Yt(d))return t==null?d:zv(d,t,r)}}}var Kr=1e9,YE={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},$c,ae=!0,ot="[DecimalError] ",vr=ot+"Invalid argument: ",Rc=ot+"Exponent out of range: ",Wr=Math.floor,ur=Math.pow,VE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ve,Ae=1e7,re=7,Ky=9007199254740991,Ji=Wr(Ky/re),D={};D.absoluteValue=D.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};D.comparedTo=D.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=ne.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};D.decimalPlaces=D.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*re;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};D.dividedBy=D.div=function(e){return Ct(this,new this.constructor(e))};D.dividedToIntegerBy=D.idiv=function(e){var t=this,r=t.constructor;return Z(Ct(t,new r(e),0,1),r.precision)};D.equals=D.eq=function(e){return!this.cmp(e)};D.exponent=function(){return pe(this)};D.greaterThan=D.gt=function(e){return this.cmp(e)>0};D.greaterThanOrEqualTo=D.gte=function(e){return this.cmp(e)>=0};D.isInteger=D.isint=function(){return this.e>this.d.length-2};D.isNegative=D.isneg=function(){return this.s<0};D.isPositive=D.ispos=function(){return this.s>0};D.isZero=function(){return this.s===0};D.lessThan=D.lt=function(e){return this.cmp(e)<0};D.lessThanOrEqualTo=D.lte=function(e){return this.cmp(e)<1};D.logarithm=D.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ve))throw Error(ot+"NaN");if(r.s<1)throw Error(ot+(r.s?"NaN":"-Infinity"));return r.eq(Ve)?new n(0):(ae=!1,t=Ct(xn(r,a),xn(e,a),a),ae=!0,Z(t,i))};D.minus=D.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Uy(t,e):Wy(t,(e.s=-e.s,e))};D.modulo=D.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(ot+"NaN");return r.s?(ae=!1,t=Ct(r,e,0,1).times(e),ae=!0,r.minus(t)):Z(new n(r),i)};D.naturalExponential=D.exp=function(){return qy(this)};D.naturalLogarithm=D.ln=function(){return xn(this)};D.negated=D.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};D.plus=D.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Wy(t,e):Uy(t,(e.s=-e.s,e))};D.precision=D.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(vr+e);if(t=pe(i)+1,n=i.d.length-1,r=n*re+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};D.squareRoot=D.sqrt=function(){var e,t,r,n,i,a,o,u=this,l=u.constructor;if(u.s<1){if(!u.s)return new l(0);throw Error(ot+"NaN")}for(e=pe(u),ae=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=yt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Wr((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(Ct(u,a,o+2)).times(.5),yt(a.d).slice(0,o)===(t=yt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Z(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return ae=!0,Z(n,r)};D.times=D.mul=function(e){var t,r,n,i,a,o,u,l,s,c=this,f=c.constructor,d=c.d,v=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,s=v.length,l=0;){for(t=0,i=l+n;i>n;)u=a[i]+v[n]*d[i-n-1]+t,a[i--]=u%Ae|0,t=u/Ae|0;a[i]=(a[i]+t)%Ae|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ae?Z(e,f.precision):e};D.toDecimalPlaces=D.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(xt(e,0,Kr),t===void 0?t=n.rounding:xt(t,0,8),Z(r,e+pe(r)+1,t))};D.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=br(n,!0):(xt(e,0,Kr),t===void 0?t=i.rounding:xt(t,0,8),n=Z(new i(n),e+1,t),r=br(n,!0,e+1)),r};D.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?br(i):(xt(e,0,Kr),t===void 0?t=a.rounding:xt(t,0,8),n=Z(new a(i),e+pe(i)+1,t),r=br(n.abs(),!1,e+pe(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};D.toInteger=D.toint=function(){var e=this,t=e.constructor;return Z(new t(e),pe(e)+1,t.rounding)};D.toNumber=function(){return+this};D.toPower=D.pow=function(e){var t,r,n,i,a,o,u=this,l=u.constructor,s=12,c=+(e=new l(e));if(!e.s)return new l(Ve);if(u=new l(u),!u.s){if(e.s<1)throw Error(ot+"Infinity");return u}if(u.eq(Ve))return u;if(n=l.precision,e.eq(Ve))return Z(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=c<0?-c:c)<=Ky){for(i=new l(Ve),t=Math.ceil(n/re+4),ae=!1;r%2&&(i=i.times(u),Fv(i.d,t)),r=Wr(r/2),r!==0;)u=u.times(u),Fv(u.d,t);return ae=!0,e.s<0?new l(Ve).div(i):Z(i,n)}}else if(a<0)throw Error(ot+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,ae=!1,i=e.times(xn(u,n+s)),ae=!0,i=qy(i),i.s=a,i};D.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=pe(i),n=br(i,r<=a.toExpNeg||r>=a.toExpPos)):(xt(e,1,Kr),t===void 0?t=a.rounding:xt(t,0,8),i=Z(new a(i),e,t),r=pe(i),n=br(i,e<=r||r<=a.toExpNeg,e)),n};D.toSignificantDigits=D.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(xt(e,1,Kr),t===void 0?t=n.rounding:xt(t,0,8)),Z(new n(r),e,t)};D.toString=D.valueOf=D.val=D.toJSON=D[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=pe(e),r=e.constructor;return br(e,t<=r.toExpNeg||t>=r.toExpPos)};function Wy(e,t){var r,n,i,a,o,u,l,s,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),ae?Z(t,f):t;if(l=e.d,s=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,u=s.length):(n=s,i=o,u=l.length),o=Math.ceil(f/re),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=l.length,a=s.length,u-a<0&&(a=u,n=s,s=l,l=n),r=0;a;)r=(l[--a]=l[a]+s[a]+r)/Ae|0,l[a]%=Ae;for(r&&(l.unshift(r),++i),u=l.length;l[--u]==0;)l.pop();return t.d=l,t.e=i,ae?Z(t,f):t}function xt(e,t,r){if(e!==~~e||er)throw Error(vr+e)}function yt(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(u=l=0;ui[u]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]1;)n.shift()}return function(n,i,a,o){var u,l,s,c,f,d,v,m,p,y,g,w,b,P,x,O,S,_,I=n.constructor,j=n.s==i.s?1:-1,T=n.d,E=i.d;if(!n.s)return new I(n);if(!i.s)throw Error(ot+"Division by zero");for(l=n.e-i.e,S=E.length,x=T.length,v=new I(j),m=v.d=[],s=0;E[s]==(T[s]||0);)++s;if(E[s]>(T[s]||0)&&--l,a==null?w=a=I.precision:o?w=a+(pe(n)-pe(i))+1:w=a,w<0)return new I(0);if(w=w/re+2|0,s=0,S==1)for(c=0,E=E[0],w++;(s1&&(E=e(E,c),T=e(T,c),S=E.length,x=T.length),P=S,p=T.slice(0,S),y=p.length;y=Ae/2&&++O;do c=0,u=t(E,p,S,y),u<0?(g=p[0],S!=y&&(g=g*Ae+(p[1]||0)),c=g/O|0,c>1?(c>=Ae&&(c=Ae-1),f=e(E,c),d=f.length,y=p.length,u=t(f,p,d,y),u==1&&(c--,r(f,S16)throw Error(Rc+pe(e));if(!e.s)return new c(Ve);for(ae=!1,u=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(ur(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new c(Ve),c.precision=u;;){if(i=Z(i.times(e),u),r=r.times(++l),o=a.plus(Ct(i,r,u)),yt(o.d).slice(0,u)===yt(a.d).slice(0,u)){for(;s--;)a=Z(a.times(a),u);return c.precision=f,t==null?(ae=!0,Z(a,f)):a}a=o}}function pe(e){for(var t=e.e*re,r=e.d[0];r>=10;r/=10)t++;return t}function wu(e,t,r){if(t>e.LN10.sd())throw ae=!0,r&&(e.precision=r),Error(ot+"LN10 precision limit exceeded");return Z(new e(e.LN10),t)}function Wt(e){for(var t="";e--;)t+="0";return t}function xn(e,t){var r,n,i,a,o,u,l,s,c,f=1,d=10,v=e,m=v.d,p=v.constructor,y=p.precision;if(v.s<1)throw Error(ot+(v.s?"NaN":"-Infinity"));if(v.eq(Ve))return new p(0);if(t==null?(ae=!1,s=y):s=t,v.eq(10))return t==null&&(ae=!0),wu(p,s);if(s+=d,p.precision=s,r=yt(m),n=r.charAt(0),a=pe(v),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=yt(v.d),n=r.charAt(0),f++;a=pe(v),n>1?(v=new p("0."+r),a++):v=new p(n+"."+r.slice(1))}else return l=wu(p,s+2,y).times(a+""),v=xn(new p(n+"."+r.slice(1)),s-d).plus(l),p.precision=y,t==null?(ae=!0,Z(v,y)):v;for(u=o=v=Ct(v.minus(Ve),v.plus(Ve),s),c=Z(v.times(v),s),i=3;;){if(o=Z(o.times(c),s),l=u.plus(Ct(o,new p(i),s)),yt(l.d).slice(0,s)===yt(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(wu(p,s+2,y).times(a+""))),u=Ct(u,new p(f),s),p.precision=y,t==null?(ae=!0,Z(u,y)):u;u=l,i+=2}}function Bv(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Wr(r/re),e.d=[],n=(r+1)%re,r<0&&(n+=re),nJi||e.e<-Ji))throw Error(Rc+r)}else e.s=0,e.e=0,e.d=[0];return e}function Z(e,t,r){var n,i,a,o,u,l,s,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=re,i=t,s=f[c=0];else{if(c=Math.ceil((n+1)/re),a=f.length,c>=a)return e;for(s=a=f[c],o=1;a>=10;a/=10)o++;n%=re,i=n-re+o}if(r!==void 0&&(a=ur(10,o-i-1),u=s/a%10|0,l=t<0||f[c+1]!==void 0||s%a,l=r<4?(u||l)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||l||r==6&&(n>0?i>0?s/ur(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=pe(e),f.length=1,t=t-a-1,f[0]=ur(10,(re-t%re)%re),e.e=Wr(-t/re)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=ur(10,re-n),f[c]=i>0?(s/ur(10,o-i)%ur(10,i)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==Ae&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=Ae)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(ae&&(e.e>Ji||e.e<-Ji))throw Error(Rc+pe(e));return e}function Uy(e,t){var r,n,i,a,o,u,l,s,c,f,d=e.constructor,v=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ae?Z(t,v):t;if(l=e.d,f=t.d,n=t.e,s=e.e,l=l.slice(),o=s-n,o){for(c=o<0,c?(r=l,o=-o,u=f.length):(r=f,n=s,u=l.length),i=Math.max(Math.ceil(v/re),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,u=f.length,c=i0;--i)l[u++]=0;for(i=f.length;i>o;){if(l[--i]0?a=a.charAt(0)+"."+a.slice(1)+Wt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Wt(-i-1)+a,r&&(n=r-o)>0&&(a+=Wt(n))):i>=o?(a+=Wt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Wt(n))):((n=i+1)0&&(i+1===o&&(a+="."),a+=Wt(n))),e.s<0?"-"+a:a}function Fv(e,t){if(e.length>t)return e.length=t,!0}function Hy(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(vr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Bv(o,a.toString())}else if(typeof a!="string")throw Error(vr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,VE.test(a))Bv(o,a);else throw Error(vr+a)}if(i.prototype=D,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Hy,i.config=i.set=GE,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(vr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(vr+r+": "+n);return this}var $c=Hy(YE);Ve=new $c(1);const V=$c;var XE=e=>e,Yy={},Vy=e=>e===Yy,Kv=e=>function t(){return arguments.length===0||arguments.length===1&&Vy(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},Gy=(e,t)=>e===1?t:Kv(function(){for(var r=arguments.length,n=new Array(r),i=0;io!==Yy).length;return a>=e?t(...n):Gy(e-a,Kv(function(){for(var o=arguments.length,u=new Array(o),l=0;lVy(c)?u.shift():c);return t(...s,...u)}))}),ZE=e=>Gy(e.length,e),Pl=(e,t)=>{for(var r=[],n=e;nArray.isArray(t)?t.map(e):Object.keys(t).map(r=>t[r]).map(e)),JE=function(){for(var t=arguments.length,r=new Array(t),n=0;nl(u),a(...arguments))}},Ol=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join("");function Xy(e){var t;return e===0?t=1:t=Math.floor(new V(e).abs().log(10).toNumber())+1,t}function Zy(e,t,r){for(var n=new V(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var Qy=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},Jy=(e,t,r)=>{if(e.lte(0))return new V(0);var n=Xy(e.toNumber()),i=new V(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new V(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=u.mul(i);return t?new V(l.toNumber()):new V(Math.ceil(l.toNumber()))},e_=(e,t,r)=>{var n=new V(1),i=new V(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new V(10).pow(Xy(e)-1),i=new V(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new V(Math.floor(e)))}else e===0?i=new V(Math.floor((t-1)/2)):r||(i=new V(Math.floor(e)));var o=Math.floor((t-1)/2),u=JE(QE(l=>i.add(new V(l-o).mul(n)).toNumber()),Pl);return u(0,t)},eg=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new V(0),tickMin:new V(0),tickMax:new V(0)};var o=Jy(new V(r).sub(t).div(n-1),i,a),u;t<=0&&r>=0?u=new V(0):(u=new V(t).add(r).div(2),u=u.sub(new V(u).mod(o)));var l=Math.ceil(u.sub(t).div(o).toNumber()),s=Math.ceil(new V(r).sub(u).div(o).toNumber()),c=l+s+1;return c>n?eg(t,r,n,i,a+1):(c0?s+(n-c):s,l=r>0?l:l+(n-c)),{step:o,tickMin:u.sub(new V(l).mul(o)),tickMax:u.add(new V(s).mul(o))})},t_=function(t){var[r,n]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),[u,l]=Qy([r,n]);if(u===-1/0||l===1/0){var s=l===1/0?[u,...Pl(0,i-1).map(()=>1/0)]:[...Pl(0,i-1).map(()=>-1/0),l];return r>n?Ol(s):s}if(u===l)return e_(u,i,a);var{step:c,tickMin:f,tickMax:d}=eg(u,l,o,a,0),v=Zy(f,d.add(new V(.1).mul(c)),c);return r>n?Ol(v):v},r_=function(t,r){var[n,i]=t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[o,u]=Qy([n,i]);if(o===-1/0||u===1/0)return[n,i];if(o===u)return[o];var l=Math.max(r,2),s=Jy(new V(u).sub(o).div(l-1),a,0),c=[...Zy(new V(o),new V(u),s),u];return a===!1&&(c=c.map(f=>Math.round(f))),n>i?Ol(c):c},tg=e=>e.rootProps.maxBarSize,n_=e=>e.rootProps.barGap,rg=e=>e.rootProps.barCategoryGap,i_=e=>e.rootProps.barSize,zn=e=>e.rootProps.stackOffset,ng=e=>e.rootProps.reverseStackOrder,Lc=e=>e.options.chartName,zc=e=>e.rootProps.syncId,ig=e=>e.rootProps.syncMethod,Bc=e=>e.options.eventEmitter,he={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},At={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},Ye={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},Ka=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},a_={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:At.angleAxisId,includeHidden:!1,name:void 0,reversed:At.reversed,scale:At.scale,tick:At.tick,tickCount:void 0,ticks:void 0,type:At.type,unit:void 0},o_={allowDataOverflow:Ye.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Ye.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ye.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Ye.scale,tick:Ye.tick,tickCount:Ye.tickCount,ticks:void 0,type:Ye.type,unit:void 0},u_={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:At.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:At.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:At.scale,tick:At.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},l_={allowDataOverflow:Ye.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Ye.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ye.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Ye.scale,tick:Ye.tick,tickCount:Ye.tickCount,ticks:void 0,type:"category",unit:void 0},Fc=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?u_:a_,Kc=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?l_:o_,Wa=e=>e.polarOptions,Wc=A([$t,Lt,ge],ty),ag=A([Wa,Wc],(e,t)=>{if(e!=null)return je(e.innerRadius,t,0)}),og=A([Wa,Wc],(e,t)=>{if(e!=null)return je(e.outerRadius,t,t*.8)}),c_=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},ug=A([Wa],c_);A([Fc,ug],Ka);var lg=A([Wc,ag,og],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});A([Kc,lg],Ka);var cg=A([K,Wa,ag,og,$t,Lt],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:u,startAngle:l,endAngle:s}=t;return{cx:je(o,i,i/2),cy:je(u,a,a/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:s,clockWise:!1}}}),ue=(e,t)=>t,Bn=(e,t,r)=>r;function qc(e){return e?.id}function sg(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,o=new Map;return e.forEach(u=>{var l,s=(l=u.data)!==null&&l!==void 0?l:n;if(!(s==null||s.length===0)){var c=qc(u);s.forEach((f,d)=>{var v=a==null||i?d:String(X(f,a,null)),m=X(f,u.dataKey,0),p;o.has(v)?p=o.get(v):p={},Object.assign(p,{[c]:m}),o.set(v,p)})}}),Array.from(o.values())}function qa(e){return e.stackId!=null&&e.dataKey!=null}var Ua=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Ha(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function s_(e,t){if(e.length===t.length){for(var r=0;r{var t=K(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},qr=e=>e.tooltip.settings.axisId;function Wv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ea(e){for(var t=1;te.cartesianAxis.xAxis[t],Bt=(e,t)=>{var r=fg(e,t);return r??Pe},Oe={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Al,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:kn},dg=(e,t)=>e.cartesianAxis.yAxis[t],Ft=(e,t)=>{var r=dg(e,t);return r??Oe},h_={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Uc=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??h_},le=(e,t,r)=>{switch(t){case"xAxis":return Bt(e,r);case"yAxis":return Ft(e,r);case"zAxis":return Uc(e,r);case"angleAxis":return Fc(e,r);case"radiusAxis":return Kc(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},p_=(e,t,r)=>{switch(t){case"xAxis":return Bt(e,r);case"yAxis":return Ft(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Fn=(e,t,r)=>{switch(t){case"xAxis":return Bt(e,r);case"yAxis":return Ft(e,r);case"angleAxis":return Fc(e,r);case"radiusAxis":return Kc(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},vg=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function Hc(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var Ya=e=>e.graphicalItems.cartesianItems,m_=A([ue,Bn],Hc),Yc=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),Kn=A([Ya,le,m_],Yc,{memoizeOptions:{resultEqualityCheck:Ha}}),hg=A([Kn],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(qa)),pg=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),y_=A([Kn],pg),Vc=e=>e.map(t=>t.data).filter(Boolean).flat(1),g_=A([Kn],Vc,{memoizeOptions:{resultEqualityCheck:Ha}}),Gc=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},Xc=A([g_,Fa],Gc),Zc=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:X(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:X(i,n)}))):e.map(n=>({value:n})),Va=A([Xc,le,Kn],Zc);function mg(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function yi(e){if(bt(e)||e instanceof Date){var t=Number(e);if(fe(t))return t}}function qv(e){if(Array.isArray(e)){var t=[yi(e[0]),yi(e[1])];return Yt(t)?t:void 0}var r=yi(e);if(r!=null)return[r,r]}function Nt(e){return e.map(yi).filter(fw)}function b_(e,t,r){return!r||typeof t!="number"||dt(t)?[]:r.length?Nt(r.flatMap(n=>{var i=X(e,n.dataKey),a,o;if(Array.isArray(i)?[a,o]=i:a=o=i,!(!fe(a)||!fe(o)))return[t-a,t+o]})):[]}var xe=e=>{var t=we(e),r=qr(e);return Fn(e,t,r)},Wn=A([xe],e=>e?.dataKey),w_=A([hg,Fa,xe],sg),yg=(e,t,r,n)=>{var i={},a=t.reduce((o,u)=>(u.stackId==null||(o[u.stackId]==null&&(o[u.stackId]=[]),o[u.stackId].push(u)),o),i);return Object.fromEntries(Object.entries(a).map(o=>{var[u,l]=o,s=n?[...l].reverse():l,c=s.map(qc);return[u,{stackedData:DP(e,c,r),graphicalItems:s}]}))},Sl=A([w_,hg,zn,ng],yg),gg=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(n==null&&r!=="zAxis"){var o=zP(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},x_=A([le],e=>e.allowDataOverflow),Qc=e=>{var t;if(e==null||!("domain"in e))return Al;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var r=Nt(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:Al},Jc=A([le],Qc),es=A([Jc,x_],Fy),P_=A([Sl,rr,ue,es],gg,{memoizeOptions:{resultEqualityCheck:Ua}}),Ga=e=>e.errorBars,O_=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>mg(r,n)),ta=function(){for(var t=arguments.length,r=new Array(t),n=0;n{var a,o;if(r.length>0&&e.forEach(u=>{r.forEach(l=>{var s,c,f=(s=n[l.id])===null||s===void 0?void 0:s.filter(g=>mg(i,g)),d=X(u,(c=t.dataKey)!==null&&c!==void 0?c:l.dataKey),v=b_(u,d,f);if(v.length>=2){var m=Math.min(...v),p=Math.max(...v);(a==null||mo)&&(o=p)}var y=qv(d);y!=null&&(a=a==null?y[0]:Math.min(a,y[0]),o=o==null?y[1]:Math.max(o,y[1]))})}),t?.dataKey!=null&&e.forEach(u=>{var l=qv(X(u,t.dataKey));l!=null&&(a=a==null?l[0]:Math.min(a,l[0]),o=o==null?l[1]:Math.max(o,l[1]))}),fe(a)&&fe(o))return[a,o]},A_=A([Xc,le,y_,Ga,ue],ts,{memoizeOptions:{resultEqualityCheck:Ua}});function S_(e){var{value:t}=e;if(bt(t)||t instanceof Date)return t}var E_=(e,t,r)=>{var n=e.map(S_).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&Np(n))?ay(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},bg=e=>e.referenceElements.dots,Ur=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),__=A([bg,ue,Bn],Ur),wg=e=>e.referenceElements.areas,C_=A([wg,ue,Bn],Ur),xg=e=>e.referenceElements.lines,k_=A([xg,ue,Bn],Ur),Pg=(e,t)=>{var r=Nt(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},I_=A(__,ue,Pg),Og=(e,t)=>{var r=Nt(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},j_=A([C_,ue],Og);function T_(e){var t;if(e.x!=null)return Nt([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:Nt(r)}function M_(e){var t;if(e.y!=null)return Nt([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:Nt(r)}var Ag=(e,t)=>{var r=e.flatMap(n=>t==="xAxis"?T_(n):M_(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},D_=A([k_,ue],Ag),N_=A(I_,D_,j_,(e,t,r)=>ta(e,r,t)),rs=(e,t,r,n,i,a,o,u)=>{if(r!=null)return r;var l=o==="vertical"&&u==="xAxis"||o==="horizontal"&&u==="yAxis",s=l?ta(n,a,i):ta(a,i);return HE(t,s,e.allowDataOverflow)},R_=A([le,Jc,es,P_,A_,N_,K,ue],rs,{memoizeOptions:{resultEqualityCheck:Ua}}),$_=[0,1],ns=(e,t,r,n,i,a,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:u,type:l}=e,s=Jt(t,a);if(s&&u==null){var c;return ay(0,(c=r?.length)!==null&&c!==void 0?c:0)}return l==="category"?E_(n,e,s):i==="expand"?$_:o}},is=A([le,K,Xc,Va,zn,ue,R_],ns),Sg=(e,t,r,n,i)=>{if(e!=null){var{scale:a,type:o}=e;if(a==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?"point":o==="category"?"band":"linear";if(typeof a=="string"){var u="scale".concat(An(a));return u in un?u:"point"}}},Hr=A([le,K,vg,Lc,ue],Sg);function L_(e){if(e!=null){if(e in un)return un[e]();var t="scale".concat(An(e));if(t in un)return un[t]()}}function as(e,t,r,n){if(!(r==null||n==null)){if(typeof e.scale=="function")return e.scale.copy().domain(r).range(n);var i=L_(t);if(i!=null){var a=i.domain(r).range(n);return kP(a),a}}}var os=(e,t,r)=>{var n=Qc(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Yt(e))return t_(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Yt(e))return r_(e,t.tickCount,t.allowDecimals)}},us=A([is,Fn,Hr],os),ls=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Yt(t)&&Array.isArray(r)&&r.length>0){var i=t[0],a=r[0],o=t[1],u=r[r.length-1];return[Math.min(i,a),Math.max(o,u)]}return t},z_=A([le,is,us,ue],ls),B_=A(Va,le,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Nt(e.map(u=>u.value))).sort((u,l)=>u-l);if(n.length<2)return 1/0;var i=n[n.length-1]-n[0];if(i===0)return 1/0;for(var a=0;an,(e,t,r,n,i)=>{if(!fe(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=je(r,e*a),u=e*a/2;return u-o-(u-o)/a*o}return 0}),F_=(e,t)=>{var r=Bt(e,t);return r==null||typeof r.padding!="string"?0:Eg(e,"xAxis",t,r.padding)},K_=(e,t)=>{var r=Ft(e,t);return r==null||typeof r.padding!="string"?0:Eg(e,"yAxis",t,r.padding)},W_=A(Bt,F_,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),q_=A(Ft,K_,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),U_=A([ge,W_,ka,Ca,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),H_=A([ge,K,q_,ka,Ca,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:o}=i;return a?[n.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),qn=(e,t,r,n)=>{var i;switch(t){case"xAxis":return U_(e,r,n);case"yAxis":return H_(e,r,n);case"zAxis":return(i=Uc(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return ug(e);case"radiusAxis":return lg(e,r);default:return}},_g=A([le,qn],Ka),Yr=A([le,Hr,z_,_g],as);A([Kn,Ga,ue],O_);function Cg(e,t){return e.idt.id?1:0}var Xa=(e,t)=>t,Za=(e,t,r)=>r,Y_=A(Ea,Xa,Za,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Cg)),V_=A(_a,Xa,Za,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Cg)),kg=(e,t)=>({width:e.width,height:t.height}),G_=(e,t)=>{var r=typeof t.width=="number"?t.width:kn;return{width:r,height:e.height}},Ig=A(ge,Bt,kg),X_=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},Z_=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},Q_=A(Lt,ge,Y_,Xa,Za,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var l=kg(t,u);o==null&&(o=X_(t,n,e));var s=n==="top"&&!i||n==="bottom"&&i;a[u.id]=o-Number(s)*l.height,o+=(s?-1:1)*l.height}),a}),J_=A($t,ge,V_,Xa,Za,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var l=G_(t,u);o==null&&(o=Z_(t,n,e));var s=n==="left"&&!i||n==="right"&&i;a[u.id]=o-Number(s)*l.width,o+=(s?-1:1)*l.width}),a}),eC=(e,t)=>{var r=Bt(e,t);if(r!=null)return Q_(e,r.orientation,r.mirror)},tC=A([ge,Bt,eC,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),rC=(e,t)=>{var r=Ft(e,t);if(r!=null)return J_(e,r.orientation,r.mirror)},nC=A([ge,Ft,rC,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),jg=A(ge,Ft,(e,t)=>{var r=typeof t.width=="number"?t.width:kn;return{width:r,height:e.height}}),Uv=(e,t,r)=>{switch(t){case"xAxis":return Ig(e,r).width;case"yAxis":return jg(e,r).height;default:return}},Tg=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,u=Jt(e,n),l=t.map(s=>s.value);if(o&&u&&a==="category"&&i&&Np(l))return l}},cs=A([K,Va,le,ue],Tg),Mg=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,o=Jt(e,n);if(o&&(i==="number"||a!=="auto"))return t.map(u=>u.value)}},ss=A([K,Va,Fn,ue],Mg),Hv=A([K,p_,Hr,Yr,cs,ss,qn,us,ue],(e,t,r,n,i,a,o,u,l)=>{if(t!=null){var s=Jt(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:a,duplicateDomain:i,isCategorical:s,niceTicks:u,range:o,realScaleType:r,scale:n}}}),iC=(e,t,r,n,i,a,o,u,l)=>{if(!(t==null||n==null)){var s=Jt(e,l),{type:c,ticks:f,tickCount:d}=t,v=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,m=c==="category"&&n.bandwidth?n.bandwidth()/v:0;m=l==="angleAxis"&&a!=null&&a.length>=2?Se(a[0]-a[1])*2*m:m;var p=f||i;if(p){var y=p.map((g,w)=>{var b=o?o.indexOf(g):g;return{index:w,coordinate:n(b)+m,value:g,offset:m}});return y.filter(g=>fe(g.coordinate))}return s&&u?u.map((g,w)=>({coordinate:n(g)+m,value:g,index:w,offset:m})).filter(g=>fe(g.coordinate)):n.ticks?n.ticks(d).map(g=>({coordinate:n(g)+m,value:g,offset:m})):n.domain().map((g,w)=>({coordinate:n(g)+m,value:o?o[g]:g,index:w,offset:m}))}},Dg=A([K,Fn,Hr,Yr,us,qn,cs,ss,ue],iC),aC=(e,t,r,n,i,a,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var u=Jt(e,o),{tickCount:l}=t,s=0;return s=o==="angleAxis"&&n?.length>=2?Se(n[0]-n[1])*2*s:s,u&&a?a.map((c,f)=>({coordinate:r(c)+s,value:c,index:f,offset:s})):r.ticks?r.ticks(l).map(c=>({coordinate:r(c)+s,value:c,offset:s})):r.domain().map((c,f)=>({coordinate:r(c)+s,value:i?i[c]:c,index:f,offset:s}))}},Vt=A([K,Fn,Yr,qn,cs,ss,ue],aC),Gt=A(le,Yr,(e,t)=>{if(!(e==null||t==null))return ea(ea({},e),{},{scale:t})}),oC=A([le,Hr,is,_g],as);A((e,t,r)=>Uc(e,r),oC,(e,t)=>{if(!(e==null||t==null))return ea(ea({},e),{},{scale:t})});var uC=A([K,Ea,_a],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),Ng=e=>e.options.defaultTooltipEventType,Rg=e=>e.options.validateTooltipEventTypes;function $g(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function fs(e,t){var r=Ng(e),n=Rg(e);return $g(t,r,n)}function lC(e){return M(t=>fs(t,e))}var Lg=(e,t)=>{var r,n=Number(t);if(!(dt(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},cC=e=>e.tooltip.settings,Ut={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},sC={itemInteraction:{click:Ut,hover:Ut},axisInteraction:{click:Ut,hover:Ut},keyboardInteraction:Ut,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},zg=We({name:"tooltip",initialState:sC,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:ne()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ft(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:ne()},removeTooltipEntrySettings:{reducer(e,t){var r=ft(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:ne()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:fC,replaceTooltipEntrySettings:dC,removeTooltipEntrySettings:vC,setTooltipSettingsState:hC,setActiveMouseOverItemIndex:Bg,mouseLeaveItem:pC,mouseLeaveChart:Fg,setActiveClickItemIndex:mC,setMouseOverAxisIndex:Kg,setMouseClickAxisIndex:yC,setSyncInteraction:El,setKeyboardInteraction:_l}=zg.actions,gC=zg.reducer;function Yv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function si(e){for(var t=1;t{if(t==null)return Ut;var i=PC(e,t,r);if(i==null)return Ut;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(OC(i)){if(a)return si(si({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return si(si({},Ut),{},{coordinate:i.coordinate})};function AC(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function SC(e,t){var r=AC(e),n=t[0],i=t[1];if(r===void 0)return!1;var a=Math.min(n,i),o=Math.max(n,i);return r>=a&&r<=o}function EC(e,t,r){if(r==null||t==null)return!0;var n=X(e,t);return n==null||!Yt(r)?!0:SC(n,r)}var ds=(e,t,r,n)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!fe(a))return i;var o=0,u=1/0;t.length>0&&(u=t.length-1);var l=Math.max(o,Math.min(a,u)),s=t[l];return s==null||EC(s,r,n)?String(l):null},qg=(e,t,r,n,i,a,o,u)=>{if(!(a==null||u==null)){var l=o[0],s=l==null?void 0:u(l.positions,a);if(s!=null)return s;var c=i?.[Number(a)];if(c)return r==="horizontal"?{x:c.coordinate,y:(n.top+t)/2}:{x:(n.left+e)/2,y:c.coordinate}}},Ug=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return r==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&n!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(a=>{var o;return((o=a.settings)===null||o===void 0?void 0:o.dataKey)===i})},Un=e=>e.options.tooltipPayloadSearcher,Vr=e=>e.tooltip;function Vv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gv(e){for(var t=1;t{if(!(t==null||a==null)){var{chartData:u,computedData:l,dataStartIndex:s,dataEndIndex:c}=r,f=[];return e.reduce((d,v)=>{var m,{dataDefinedOnItem:p,settings:y}=v,g=IC(p,u),w=Array.isArray(g)?Cm(g,s,c):g,b=(m=y?.dataKey)!==null&&m!==void 0?m:n,P=y?.nameKey,x;if(n&&Array.isArray(w)&&!Array.isArray(w[0])&&o==="axis"?x=Rp(w,n,i):x=a(w,t,l,P),Array.isArray(x))x.forEach(S=>{var _=Gv(Gv({},y),{},{name:S.name,unit:S.unit,color:void 0,fill:void 0});d.push(vd({tooltipEntrySettings:_,dataKey:S.dataKey,payload:S.payload,value:X(S.payload,S.dataKey),name:S.name}))});else{var O;d.push(vd({tooltipEntrySettings:y,dataKey:b,payload:x,value:X(x,b),name:(O=X(x,P))!==null&&O!==void 0?O:y?.name}))}return d},f)}},vs=A([xe,K,vg,Lc,we],Sg),jC=A([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),TC=A([we,qr],Hc),Hn=A([jC,xe,TC],Yc,{memoizeOptions:{resultEqualityCheck:Ha}}),MC=A([Hn],e=>e.filter(qa)),DC=A([Hn],Vc,{memoizeOptions:{resultEqualityCheck:Ha}}),Gr=A([DC,rr],Gc),NC=A([MC,rr,xe],sg),hs=A([Gr,xe,Hn],Zc),Yg=A([xe],Qc),RC=A([xe],e=>e.allowDataOverflow),Vg=A([Yg,RC],Fy),$C=A([Hn],e=>e.filter(qa)),LC=A([NC,$C,zn,ng],yg),zC=A([LC,rr,we,Vg],gg),BC=A([Hn],pg),FC=A([Gr,xe,BC,Ga,we],ts,{memoizeOptions:{resultEqualityCheck:Ua}}),KC=A([bg,we,qr],Ur),WC=A([KC,we],Pg),qC=A([wg,we,qr],Ur),UC=A([qC,we],Og),HC=A([xg,we,qr],Ur),YC=A([HC,we],Ag),VC=A([WC,YC,UC],ta),GC=A([xe,Yg,Vg,zC,FC,VC,K,we],rs),Yn=A([xe,K,Gr,hs,zn,we,GC],ns),XC=A([Yn,xe,vs],os),ZC=A([xe,Yn,XC,we],ls),Gg=e=>{var t=we(e),r=qr(e),n=!1;return qn(e,t,r,n)},Xg=A([xe,Gg],Ka),Zg=A([xe,vs,ZC,Xg],as),QC=A([K,hs,xe,we],Tg),JC=A([K,hs,xe,we],Mg),ek=(e,t,r,n,i,a,o,u)=>{if(t){var{type:l}=t,s=Jt(e,u);if(n){var c=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=l==="category"&&n.bandwidth?n.bandwidth()/c:0;return f=u==="angleAxis"&&i!=null&&i?.length>=2?Se(i[0]-i[1])*2*f:f,s&&o?o.map((d,v)=>({coordinate:n(d)+f,value:d,index:v,offset:f})):n.domain().map((d,v)=>({coordinate:n(d)+f,value:a?a[d]:d,index:v,offset:f}))}}},Kt=A([K,xe,vs,Zg,Gg,QC,JC,we],ek),ps=A([Ng,Rg,cC],(e,t,r)=>$g(r.shared,e,t)),Qg=e=>e.tooltip.settings.trigger,ms=e=>e.tooltip.settings.defaultIndex,Vn=A([Vr,ps,Qg,ms],Wg),Xt=A([Vn,Gr,Wn,Yn],ds),Jg=A([Kt,Xt],Lg),ys=A([Vn],e=>{if(e)return e.dataKey}),tk=A([Vn],e=>{if(e)return e.graphicalItemId}),e0=A([Vr,ps,Qg,ms],Ug),rk=A([$t,Lt,K,ge,Kt,ms,e0,Un],qg),nk=A([Vn,rk],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),ik=A([Vn],e=>e.active),ak=A([e0,Xt,rr,Wn,Jg,Un,ps],Hg),ok=A([ak],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Xv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zv(e){for(var t=1;tM(xe),fk=()=>{var e=sk(),t=M(Kt),r=M(Zg);return Dr(!e||!r?void 0:Zv(Zv({},e),{},{scale:r}),t)};function Qv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t{var i=t.find(a=>a&&a.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.chartY};if(e==="vertical")return{x:n.chartX,y:i.coordinate}}return{x:0,y:0}},mk=(e,t,r,n)=>{var i=t.find(s=>s&&s.index===r);if(i){if(e==="centric"){var a=i.coordinate,{radius:o}=n;return Sr(Sr(Sr({},n),ve(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var u=i.coordinate,{angle:l}=n;return Sr(Sr(Sr({},n),ve(n.cx,n.cy,u,l)),{},{angle:l,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function yk(e,t){var{chartX:r,chartY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var t0=(e,t,r,n,i)=>{var a,o=-1,u=(a=t?.length)!==null&&a!==void 0?a:0;if(u<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var l=0;l0?r[l-1].coordinate:r[u-1].coordinate,c=r[l].coordinate,f=l>=u-1?r[0].coordinate:r[l+1].coordinate,d=void 0;if(Se(c-s)!==Se(f-c)){var v=[];if(Se(f-c)===Se(i[1]-i[0])){d=f;var m=c+i[1]-i[0];v[0]=Math.min(m,(m+s)/2),v[1]=Math.max(m,(m+s)/2)}else{d=s;var p=f+i[1]-i[0];v[0]=Math.min(c,(p+c)/2),v[1]=Math.max(c,(p+c)/2)}var y=[Math.min(c,(d+c)/2),Math.max(c,(d+c)/2)];if(e>y[0]&&e<=y[1]||e>=v[0]&&e<=v[1]){({index:o}=r[l]);break}}else{var g=Math.min(s,f),w=Math.max(s,f);if(e>(g+c)/2&&e<=(w+c)/2){({index:o}=r[l]);break}}}else if(t){for(var b=0;b0&&b(t[b].coordinate+t[b-1].coordinate)/2&&e<=(t[b].coordinate+t[b+1].coordinate)/2||b===u-1&&e>(t[b].coordinate+t[b-1].coordinate)/2){({index:o}=t[b]);break}}return o},gk=()=>M(Lc),gs=(e,t)=>t,r0=(e,t,r)=>r,bs=(e,t,r,n)=>n,bk=A(Kt,e=>ma(e,t=>t.coordinate)),ws=A([Vr,gs,r0,bs],Wg),xs=A([ws,Gr,Wn,Yn],ds),wk=(e,t,r)=>{if(t!=null){var n=Vr(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},n0=A([Vr,gs,r0,bs],Ug),ra=A([$t,Lt,K,ge,Kt,bs,n0,Un],qg),xk=A([ws,ra],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),i0=A([Kt,xs],Lg),Pk=A([n0,xs,rr,Wn,i0,Un,gs],Hg),Ok=A([ws,xs],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),Ak=(e,t,r,n,i,a,o)=>{if(!(!e||!r||!n||!i)&&yk(e,o)){var u=BP(e,t),l=t0(u,a,i,r,n),s=pk(t,i,l,e);return{activeIndex:String(l),activeCoordinate:s}}},Sk=(e,t,r,n,i,a,o)=>{if(!(!e||!n||!i||!a||!r)){var u=nA(e,r);if(u){var l=FP(u,t),s=t0(l,o,a,n,i),c=mk(t,a,s,u);return{activeIndex:String(s),activeCoordinate:c}}}},Ek=(e,t,r,n,i,a,o,u)=>{if(!(!e||!t||!n||!i||!a))return t==="horizontal"||t==="vertical"?Ak(e,t,n,i,a,o,u):Sk(e,t,r,n,i,a,o)},_k=A(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElementId:n.elementId}}),Ck=A(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(he)),r=Array.from(new Set(t));return r.sort((n,i)=>n-i)},{memoizeOptions:{resultEqualityCheck:s_}});function Jv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function eh(e){for(var t=1;teh(eh({},e),{},{[t]:{elementId:void 0,panoramaElementId:void 0,consumers:0}}),Tk)},Dk=new Set(Object.values(he));function Nk(e){return Dk.has(e)}var a0=We({name:"zIndex",initialState:Mk,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,elementId:void 0,panoramaElementId:void 0}},prepare:ne()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!Nk(r)&&delete e.zIndexMap[r])},prepare:ne()},registerZIndexPortalId:{reducer:(e,t)=>{var{zIndex:r,elementId:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElementId=n:e.zIndexMap[r].elementId=n:e.zIndexMap[r]={consumers:0,elementId:i?void 0:n,panoramaElementId:i?n:void 0}},prepare:ne()},unregisterZIndexPortalId:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElementId=void 0:e.zIndexMap[r].elementId=void 0)},prepare:ne()}}}),{registerZIndexPortal:Rk,unregisterZIndexPortal:$k,registerZIndexPortalId:Lk,unregisterZIndexPortalId:zk}=a0.actions,Bk=a0.reducer;function qe(e){var{zIndex:t,children:r}=e,n=gO(),i=n&&t!==void 0&&t!==0,a=Te(),o=te();h.useLayoutEffect(()=>i?(o(Rk({zIndex:t})),()=>{o($k({zIndex:t}))}):Sn,[o,t,i]);var u=M(s=>_k(s,t,a));if(!i)return r;if(!u)return null;var l=document.getElementById(u);return l?zl.createPortal(r,l):null}function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;th.useContext(o0),xu={exports:{}},rh;function Vk(){return rh||(rh=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,s,c){this.fn=l,this.context=s,this.once=c||!1}function a(l,s,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var v=new i(c,f||l,d),m=r?r+s:s;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],v]:l._events[m].push(v):(l._events[m]=v,l._eventsCount++),l}function o(l,s){--l._eventsCount===0?l._events=new n:delete l._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],c,f;if(this._eventsCount===0)return s;for(f in c=this._events)t.call(c,f)&&s.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(c)):s},u.prototype.listeners=function(s){var c=r?r+s:s,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,v=f.length,m=new Array(v);d{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Qk=u0.reducer,{createEventEmitter:Jk}=u0.actions;function eI(e){return e.tooltip.syncInteraction}var tI={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},l0=We({name:"chartData",initialState:tI,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:ih,setDataStartEndIndexes:rI,setComputedData:BR}=l0.actions,nI=l0.reducer,iI=["x","y"];function ah(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Er(e){for(var t=1;tl.rootProps.className);h.useEffect(()=>{if(e==null)return Sn;var l=(s,c,f)=>{if(t!==f&&e===s){if(n==="index"){var d;if(o&&c!==null&&c!==void 0&&(d=c.payload)!==null&&d!==void 0&&d.coordinate&&c.payload.sourceViewBox){var v=c.payload.coordinate,{x:m,y:p}=v,y=lI(v,iI),{x:g,y:w,width:b,height:P}=c.payload.sourceViewBox,x=Er(Er({},y),{},{x:o.x+(b?(m-g)/b:0)*o.width,y:o.y+(P?(p-w)/P:0)*o.height});r(Er(Er({},c),{},{payload:Er(Er({},c.payload),{},{coordinate:x})}))}else r(c);return}if(i!=null){var O;if(typeof n=="function"){var S={activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate},_=n(i,S);O=i[_]}else n==="value"&&(O=i.find(q=>String(q.value)===c.payload.label));var{coordinate:I}=c.payload;if(O==null||c.payload.active===!1||I==null||o==null){r(El({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:j,y:T}=I,E=Math.min(j,o.x+o.width),$=Math.min(T,o.y+o.height),R={x:a==="horizontal"?O.coordinate:E,y:a==="horizontal"?$:O.coordinate},L=El({active:c.payload.active,coordinate:R,dataKey:c.payload.dataKey,index:String(O.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId});r(L)}}};return Pn.on(kl,l),()=>{Pn.off(kl,l)}},[u,r,t,e,n,i,a,o])}function fI(){var e=M(zc),t=M(Bc),r=te();h.useEffect(()=>{if(e==null)return Sn;var n=(i,a,o)=>{t!==o&&e===i&&r(rI(a))};return Pn.on(nh,n),()=>{Pn.off(nh,n)}},[r,t,e])}function dI(){var e=te();h.useEffect(()=>{e(Jk())},[e]),sI(),fI()}function vI(e,t,r,n,i,a){var o=M(v=>wk(v,e,t)),u=M(Bc),l=M(zc),s=M(ig),c=M(eI),f=c?.active,d=Ia();h.useEffect(()=>{if(!f&&l!=null&&u!=null){var v=El({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:d,graphicalItemId:void 0});Pn.emit(kl,l,v,u)}},[f,r,o,i,n,u,l,s,a,d])}function oh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uh(e){for(var t=1;t{S(hC({shared:w,trigger:b,axisId:O,active:i,defaultIndex:_}))},[S,w,b,O,i,_]);var I=Ia(),j=Gm(),T=lC(w),{activeIndex:E,isActive:$}=(t=M(ze=>Ok(ze,T,b,_)))!==null&&t!==void 0?t:{},R=M(ze=>Pk(ze,T,b,_)),L=M(ze=>i0(ze,T,b,_)),q=M(ze=>xk(ze,T,b,_)),B=R,W=Yk(),z=(r=i??$)!==null&&r!==void 0?r:!1,[Q,Me]=Qp([B,z]),Le=T==="axis"?L:void 0;vI(T,b,q,Le,E,z);var Pt=x??W;if(Pt==null||I==null||T==null)return null;var Je=B??lh;z||(Je=lh),s&&Je.length&&(Je=Yp(Je.filter(ze=>ze.value!=null&&(ze.hide!==!0||n.includeHidden)),d,yI));var nr=Je.length>0,Xr=h.createElement(i1,{allowEscapeViewBox:a,animationDuration:o,animationEasing:u,isAnimationActive:c,active:z,coordinate:q,hasPayload:nr,offset:f,position:v,reverseDirection:m,useTranslate3d:p,viewBox:I,wrapperStyle:y,lastBoundingBox:Q,innerRef:Me,hasPortalFromProps:!!x},gI(l,uh(uh({},n),{},{payload:Je,label:Le,active:z,activeIndex:E,coordinate:q,accessibilityLayer:j})));return h.createElement(h.Fragment,null,zl.createPortal(Xr,Pt),z&&h.createElement(Hk,{cursor:g,tooltipEventType:T,coordinate:q,payload:Je,index:E}))}var Qa=e=>null;Qa.displayName="Cell";function wI(e,t,r){return(t=xI(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xI(e){var t=PI(e,"string");return typeof t=="symbol"?t:t+""}function PI(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class OI{constructor(t){wI(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function ch(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function AI(e){for(var t=1;t{try{var r=document.getElementById(fh);r||(r=document.createElement("span"),r.setAttribute("id",fh),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,kI,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},ln=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Tn.isSsr)return{width:0,height:0};if(!c0.enableCache)return dh(t,r);var n=II(t,r),i=sh.get(n);if(i)return i;var a=dh(t,r);return sh.set(n,a),a},vh=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,hh=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,jI=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,TI=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,s0={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},MI=Object.keys(s0),kr="NaN";function DI(e,t){return e*s0[t]}class Fe{static parse(t){var r,[,n,i]=(r=TI.exec(t))!==null&&r!==void 0?r:[];return new Fe(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,dt(t)&&(this.unit=""),r!==""&&!jI.test(r)&&(this.num=NaN,this.unit=""),MI.includes(r)&&(this.num=DI(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new Fe(NaN,""):new Fe(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Fe(NaN,""):new Fe(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Fe(NaN,""):new Fe(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Fe(NaN,""):new Fe(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return dt(this.num)}}function f0(e){if(e.includes(kr))return kr;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=vh.exec(t))!==null&&r!==void 0?r:[],o=Fe.parse(n??""),u=Fe.parse(a??""),l=i==="*"?o.multiply(u):o.divide(u);if(l.isNaN())return kr;t=t.replace(vh,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var s,[,c,f,d]=(s=hh.exec(t))!==null&&s!==void 0?s:[],v=Fe.parse(c??""),m=Fe.parse(d??""),p=f==="+"?v.add(m):v.subtract(m);if(p.isNaN())return kr;t=t.replace(hh,p.toString())}return t}var ph=/\(([^()]*)\)/;function NI(e){for(var t=e,r;(r=ph.exec(t))!=null;){var[,n]=r;t=t.replace(ph,f0(n))}return t}function RI(e){var t=e.replace(/\s+/g,"");return t=NI(t),t=f0(t),t}function $I(e){try{return RI(e)}catch{return kr}}function Pu(e){var t=$I(e.slice(5,-1));return t===kr?"":t}var LI=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],zI=["dx","dy","angle","className","breakAll"];function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:t,breakAll:r,style:n}=e;try{var i=[];oe(t)||(r?i=t.toString().split(""):i=t.toString().split(d0));var a=i.map(u=>({word:u,width:ln(u,n).width})),o=r?0:ln(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}};function FI(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var h0=(e,t,r,n)=>e.reduce((i,a)=>{var{word:o,width:u}=a,l=i[i.length-1];if(l&&u!=null&&(t==null||n||l.width+u+re.reduce((t,r)=>t.width>r.width?t:r),KI="…",yh=(e,t,r,n,i,a,o,u)=>{var l=e.slice(0,t),s=v0({breakAll:r,style:n,children:l+KI});if(!s)return[!1,[]];var c=h0(s.wordsWithComputedWidth,a,o,u),f=c.length>i||p0(c).width>Number(a);return[f,c]},WI=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:u,breakAll:l}=e,s=N(a),c=String(o),f=h0(t,n,r,i);if(!s||i)return f;var d=f.length>a||p0(f).width>Number(n);if(!d)return f;for(var v=0,m=c.length-1,p=0,y;v<=m&&p<=c.length-1;){var g=Math.floor((v+m)/2),w=g-1,[b,P]=yh(c,w,l,u,a,n,r,i),[x]=yh(c,g,l,u,a,n,r,i);if(!b&&!x&&(v=g+1),b&&x&&(m=g-1),!b&&x){y=P;break}p++}return y||f},gh=e=>{var t=oe(e)?[]:e.toString().split(d0);return[{words:t,width:void 0}]},qI=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!Tn.isSsr){var u,l,s=v0({breakAll:a,children:n,style:i});if(s){var{wordsWithComputedWidth:c,spaceWidth:f}=s;u=c,l=f}else return gh(n);return WI({breakAll:a,children:n,maxLines:o,style:i},u,l,t,!!r)}return gh(n)},m0="#808080",UI={angle:0,breakAll:!1,capHeight:"0.71em",fill:m0,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Ja=h.forwardRef((e,t)=>{var r=me(e,UI),{x:n,y:i,lineHeight:a,capHeight:o,fill:u,scaleToFit:l,textAnchor:s,verticalAnchor:c}=r,f=mh(r,LI),d=h.useMemo(()=>qI({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:l,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,l,f.style,f.width]),{dx:v,dy:m,angle:p,className:y,breakAll:g}=f,w=mh(f,zI);if(!bt(n)||!bt(i)||d.length===0)return null;var b=Number(n)+(N(v)?v:0),P=Number(i)+(N(m)?m:0);if(!fe(b)||!fe(P))return null;var x;switch(c){case"start":x=Pu("calc(".concat(o,")"));break;case"middle":x=Pu("calc(".concat((d.length-1)/2," * -").concat(a," + (").concat(o," / 2))"));break;default:x=Pu("calc(".concat(d.length-1," * -").concat(a,")"));break}var O=[];if(l){var S=d[0].width,{width:_}=f;O.push("scale(".concat(N(_)&&N(S)?_/S:1,")"))}return p&&O.push("rotate(".concat(p,", ").concat(b,", ").concat(P,")")),O.length&&(w.transform=O.join(" ")),h.createElement("text",Il({},Re(w),{ref:t,x:b,y:P,className:H("recharts-text",y),textAnchor:s,fill:u.includes("url")?m0:u}),d.map((I,j)=>{var T=I.words.join(g?"":" ");return h.createElement("tspan",{x:b,dy:j===0?x:a,key:"".concat(T,"-").concat(j)},T)}))});Ja.displayName="Text";var HI=["labelRef"];function YI(e,t){if(e==null)return{};var r,n,i=VI(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o,children:u}=e,l=h.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o}),[t,r,n,i,a,o]);return h.createElement(y0.Provider,{value:l},u)},g0=()=>{var e=h.useContext(y0),t=Ia();return e||$m(t)},JI=h.createContext(null),ej=()=>{var e=h.useContext(JI),t=M(cg);return e||t},tj=e=>{var{value:t,formatter:r}=e,n=oe(e.children)?t:e.children;return typeof r=="function"?r(n):n},Os=e=>e!=null&&typeof e=="function",rj=(e,t)=>{var r=Se(t-e),n=Math.min(Math.abs(t-e),360);return r*n},nj=(e,t,r,n,i)=>{var{offset:a,className:o}=e,{cx:u,cy:l,innerRadius:s,outerRadius:c,startAngle:f,endAngle:d,clockWise:v}=i,m=(s+c)/2,p=rj(f,d),y=p>=0?1:-1,g,w;switch(t){case"insideStart":g=f+y*a,w=v;break;case"insideEnd":g=d-y*a,w=!v;break;case"end":g=d+y*a,w=v;break;default:throw new Error("Unsupported position ".concat(t))}w=p<=0?w:!w;var b=ve(u,l,m,g),P=ve(u,l,m,g+(w?1:-1)*359),x="M".concat(b.x,",").concat(b.y,` + A`).concat(m,",").concat(m,",0,1,").concat(w?0:1,`, + `).concat(P.x,",").concat(P.y),O=oe(e.id)?cn("recharts-radial-line-"):e.id;return h.createElement("text",St({},n,{dominantBaseline:"central",className:H("recharts-radial-bar-label",o)}),h.createElement("defs",null,h.createElement("path",{id:O,d:x})),h.createElement("textPath",{xlinkHref:"#".concat(O)},r))},ij=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:l}=e,s=(u+l)/2;if(r==="outside"){var{x:c,y:f}=ve(n,i,o+t,s);return{x:c,y:f,textAnchor:c>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=(a+o)/2,{x:v,y:m}=ve(n,i,d,s);return{x:v,y:m,textAnchor:"middle",verticalAnchor:"middle"}},jl=e=>"cx"in e&&N(e.cx),aj=(e,t)=>{var{parentViewBox:r,offset:n,position:i}=e,a;r!=null&&!jl(r)&&(a=r);var{x:o,y:u,upperWidth:l,lowerWidth:s,height:c}=t,f=o,d=o+(l-s)/2,v=(f+d)/2,m=(l+s)/2,p=f+l/2,y=c>=0?1:-1,g=y*n,w=y>0?"end":"start",b=y>0?"start":"end",P=l>=0?1:-1,x=P*n,O=P>0?"end":"start",S=P>0?"start":"end";if(i==="top"){var _={x:f+l/2,y:u-g,textAnchor:"middle",verticalAnchor:w};return se(se({},_),a?{height:Math.max(u-a.y,0),width:l}:{})}if(i==="bottom"){var I={x:d+s/2,y:u+c+g,textAnchor:"middle",verticalAnchor:b};return se(se({},I),a?{height:Math.max(a.y+a.height-(u+c),0),width:s}:{})}if(i==="left"){var j={x:v-x,y:u+c/2,textAnchor:O,verticalAnchor:"middle"};return se(se({},j),a?{width:Math.max(j.x-a.x,0),height:c}:{})}if(i==="right"){var T={x:v+m+x,y:u+c/2,textAnchor:S,verticalAnchor:"middle"};return se(se({},T),a?{width:Math.max(a.x+a.width-T.x,0),height:c}:{})}var E=a?{width:m,height:c}:{};return i==="insideLeft"?se({x:v+x,y:u+c/2,textAnchor:S,verticalAnchor:"middle"},E):i==="insideRight"?se({x:v+m-x,y:u+c/2,textAnchor:O,verticalAnchor:"middle"},E):i==="insideTop"?se({x:f+l/2,y:u+g,textAnchor:"middle",verticalAnchor:b},E):i==="insideBottom"?se({x:d+s/2,y:u+c-g,textAnchor:"middle",verticalAnchor:w},E):i==="insideTopLeft"?se({x:f+x,y:u+g,textAnchor:S,verticalAnchor:b},E):i==="insideTopRight"?se({x:f+l-x,y:u+g,textAnchor:O,verticalAnchor:b},E):i==="insideBottomLeft"?se({x:d+x,y:u+c-g,textAnchor:S,verticalAnchor:w},E):i==="insideBottomRight"?se({x:d+s-x,y:u+c-g,textAnchor:O,verticalAnchor:w},E):i&&typeof i=="object"&&(N(i.x)||It(i.x))&&(N(i.y)||It(i.y))?se({x:o+je(i.x,m),y:u+je(i.y,c),textAnchor:"end",verticalAnchor:"end"},E):se({x:p,y:u+c/2,textAnchor:"middle",verticalAnchor:"middle"},E)},oj={angle:0,offset:5,zIndex:he.label,position:"middle",textBreakAll:!1};function qt(e){var t=me(e,oj),{viewBox:r,position:n,value:i,children:a,content:o,className:u="",textBreakAll:l,labelRef:s}=t,c=ej(),f=g0(),d=n==="center"?f:c??f,v,m,p;if(r==null?v=d:jl(r)?v=r:v=$m(r),!v||oe(i)&&oe(a)&&!h.isValidElement(o)&&typeof o!="function")return null;var y=se(se({},t),{},{viewBox:v});if(h.isValidElement(o)){var{labelRef:g}=y,w=YI(y,HI);return h.cloneElement(o,w)}if(typeof o=="function"){if(m=h.createElement(o,y),h.isValidElement(m))return m}else m=tj(t);var b=Re(t);if(jl(v)){if(n==="insideStart"||n==="insideEnd"||n==="end")return nj(t,n,m,b,v);p=ij(v,t.offset,t.position)}else p=aj(t,v);return h.createElement(qe,{zIndex:t.zIndex},h.createElement(Ja,St({ref:s,className:H("recharts-label",u)},b,p,{textAnchor:FI(b.textAnchor)?b.textAnchor:p.textAnchor,breakAll:l}),m))}qt.displayName="Label";var uj=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?h.createElement(qt,St({key:"label-implicit"},n)):bt(e)?h.createElement(qt,St({key:"label-implicit",value:e},n)):h.isValidElement(e)?e.type===qt?h.cloneElement(e,se({key:"label-implicit"},n)):h.createElement(qt,St({key:"label-implicit",content:e},n)):Os(e)?h.createElement(qt,St({key:"label-implicit",content:e},n)):e&&typeof e=="object"?h.createElement(qt,St({},e,{key:"label-implicit"},n)):null};function lj(e){var{label:t,labelRef:r}=e,n=g0();return uj(t,n,r)||null}var Ou={},Au={},wh;function cj(){return wh||(wh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(Au)),Au}var Su={},xh;function sj(){return xh||(xh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(Su)),Su}var Ph;function fj(){return Ph||(Ph=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cj(),r=sj(),n=Xl();function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i})(Ou)),Ou}var Eu,Oh;function dj(){return Oh||(Oh=1,Eu=fj().last),Eu}var vj=dj();const hj=Qt(vj);var pj=["valueAccessor"],mj=["dataKey","clockWise","id","textBreakAll","zIndex"];function na(){return na=Object.assign?Object.assign.bind():function(e){for(var t=1;tArray.isArray(e.value)?hj(e.value):e.value,b0=h.createContext(void 0),w0=b0.Provider,x0=h.createContext(void 0),bj=x0.Provider;function wj(){return h.useContext(b0)}function xj(){return h.useContext(x0)}function gi(e){var{valueAccessor:t=gj}=e,r=Ah(e,pj),{dataKey:n,clockWise:i,id:a,textBreakAll:o,zIndex:u}=r,l=Ah(r,mj),s=wj(),c=xj(),f=s||c;return!f||!f.length?null:h.createElement(qe,{zIndex:u??he.label},h.createElement(Ee,{className:"recharts-label-list"},f.map((d,v)=>{var m,p=oe(n)?t(d,v):X(d&&d.payload,n),y=oe(a)?{}:{id:"".concat(a,"-").concat(v)};return h.createElement(qt,na({key:"label-".concat(v)},Re(d),l,y,{fill:(m=r.fill)!==null&&m!==void 0?m:d.fill,parentViewBox:d.parentViewBox,value:p,textBreakAll:o,viewBox:d.viewBox,index:v,zIndex:0}))})))}gi.displayName="LabelList";function As(e){var{label:t}=e;return t?t===!0?h.createElement(gi,{key:"labelList-implicit"}):h.isValidElement(t)||Os(t)?h.createElement(gi,{key:"labelList-implicit",content:t}):typeof t=="object"?h.createElement(gi,na({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{cx:t,cy:r,r:n,className:i}=e,a=H("recharts-dot",i);return N(t)&&N(r)&&N(n)?h.createElement("circle",Tl({},Ze(e),Gl(e),{className:a,cx:t,cy:r,r:n})):null},O0=e=>e.graphicalItems.polarItems,Pj=A([ue,Bn],Hc),eo=A([O0,le,Pj],Yc),Oj=A([eo],Vc),to=A([Oj,Nc],Gc),Aj=A([to,le,eo],Zc);A([to,le,eo],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(i=>{var a,o=X(n,(a=t.dataKey)!==null&&a!==void 0?a:i.dataKey);return{value:o,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(n=>({value:X(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]})));var Sh=()=>{},Sj=A([to,le,eo,Ga,ue],ts),Ej=A([le,Jc,es,Sh,Sj,Sh,K,ue],rs),A0=A([le,K,to,Aj,zn,ue,Ej],ns),_j=A([A0,le,Hr],os);A([le,A0,_j,ue],ls);var Cj={radiusAxis:{},angleAxis:{}},S0=We({name:"polarAxis",initialState:Cj,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:KR,removeRadiusAxis:WR,addAngleAxis:qR,removeAngleAxis:UR}=S0.actions,kj=S0.reducer;function Eh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _h(e){for(var t=1;tt,Ss=A([O0,Mj],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),Dj=[],Es=(e,t,r)=>r?.length===0?Dj:r,E0=A([Nc,Ss,Es],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var i;if(t?.data!=null&&t.data.length>0?i=t.data:i=n,(!i||!i.length)&&r!=null&&(i=r.map(a=>_h(_h({},t.presentationProps),a.props))),i!=null)return i}}),Nj=A([E0,Ss,Es],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,i)=>{var a,o=X(n,t.nameKey,t.name),u;return r!=null&&(a=r[i])!==null&&a!==void 0&&(a=a.props)!==null&&a!==void 0&&a.fill?u=r[i].props.fill:typeof n=="object"&&n!=null&&"fill"in n?u=n.fill:u=t.fill,{value:Br(o,t.dataKey),color:u,payload:n,type:t.legendType}})}),Rj=A([E0,Ss,Es,ge],(e,t,r,n)=>{if(!(t==null||e==null))return $T({offset:n,pieSettings:t,displayedData:e,cells:r})}),_u={exports:{}},G={};var Ch;function $j(){if(Ch)return G;Ch=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function m(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case e:switch(p=p.type,p){case r:case i:case n:case l:case s:case d:return p;default:switch(p=p&&p.$$typeof,p){case o:case u:case f:case c:return p;case a:return p;default:return y}}case t:return y}}}return G.ContextConsumer=a,G.ContextProvider=o,G.Element=e,G.ForwardRef=u,G.Fragment=r,G.Lazy=f,G.Memo=c,G.Portal=t,G.Profiler=i,G.StrictMode=n,G.Suspense=l,G.SuspenseList=s,G.isContextConsumer=function(p){return m(p)===a},G.isContextProvider=function(p){return m(p)===o},G.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},G.isForwardRef=function(p){return m(p)===u},G.isFragment=function(p){return m(p)===r},G.isLazy=function(p){return m(p)===f},G.isMemo=function(p){return m(p)===c},G.isPortal=function(p){return m(p)===t},G.isProfiler=function(p){return m(p)===i},G.isStrictMode=function(p){return m(p)===n},G.isSuspense=function(p){return m(p)===l},G.isSuspenseList=function(p){return m(p)===s},G.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===l||p===s||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===c||p.$$typeof===o||p.$$typeof===a||p.$$typeof===u||p.$$typeof===v||p.getModuleId!==void 0)},G.typeOf=m,G}var kh;function Lj(){return kh||(kh=1,_u.exports=$j()),_u.exports}var zj=Lj(),Ih=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",jh=null,Cu=null,_0=e=>{if(e===jh&&Array.isArray(Cu))return Cu;var t=[];return h.Children.forEach(e,r=>{oe(r)||(zj.isFragment(r)?t=t.concat(_0(r.props.children)):t.push(r))}),Cu=t,jh=e,t};function _s(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>Ih(i)):n=[Ih(t)],_0(e).forEach(i=>{var a=pr(i,"type.displayName")||pr(i,"type.name");a&&n.indexOf(a)!==-1&&r.push(i)}),r}var C0=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,ku={},Th;function Bj(){return Th||(Th=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const i=r[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${i}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(ku)),ku}var Iu,Mh;function Fj(){return Mh||(Mh=1,Iu=Bj().isPlainObject),Iu}var Kj=Fj();const Wj=Qt(Kj);function Dh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nh(e){for(var t=1;t{var a=r-n,o;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+r,",").concat(t),o+="L ".concat(e+r-a/2,",").concat(t+i),o+="L ".concat(e+r-a/2-n,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z"),o},Yj={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Vj=e=>{var t=me(e,Yj),{x:r,y:n,upperWidth:i,lowerWidth:a,height:o,className:u}=t,{animationEasing:l,animationDuration:s,animationBegin:c,isUpdateAnimationActive:f}=t,d=h.useRef(null),[v,m]=h.useState(-1),p=h.useRef(i),y=h.useRef(a),g=h.useRef(o),w=h.useRef(r),b=h.useRef(n),P=Dn(e,"trapezoid-");if(h.useEffect(()=>{if(d.current&&d.current.getTotalLength)try{var R=d.current.getTotalLength();R&&m(R)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var x=H("recharts-trapezoid",u);if(!f)return h.createElement("g",null,h.createElement("path",ia({},Re(t),{className:x,d:Rh(r,n,i,a,o)})));var O=p.current,S=y.current,_=g.current,I=w.current,j=b.current,T="0px ".concat(v===-1?1:v,"px"),E="".concat(v,"px 0px"),$=Xm(["strokeDasharray"],s,l);return h.createElement(Mn,{animationId:P,key:P,canBegin:v>0,duration:s,easing:l,isActive:f,begin:c},R=>{var L=ie(O,i,R),q=ie(S,a,R),B=ie(_,o,R),W=ie(I,r,R),z=ie(j,n,R);d.current&&(p.current=L,y.current=q,g.current=B,w.current=W,b.current=z);var Q=R>0?{transition:$,strokeDasharray:E}:{strokeDasharray:T};return h.createElement("path",ia({},Re(t),{className:x,d:Rh(W,z,L,q,B),ref:d,style:Nh(Nh({},Q),t.style)}))})},Gj=["option","shapeType","propTransformer","activeClassName"];function Xj(e,t){if(e==null)return{};var r,n,i=Zj(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n{var n=te();return(i,a)=>o=>{e?.(i,a,o),n(Bg({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},Is=e=>{var t=te();return(r,n)=>i=>{e?.(r,n,i),t(pC())}},js=(e,t,r)=>{var n=te();return(i,a)=>o=>{e?.(i,a,o),n(mC({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};function Ts(e){var{tooltipEntrySettings:t}=e,r=te(),n=Te(),i=h.useRef(null);return h.useLayoutEffect(()=>{n||(i.current===null?r(fC(t)):i.current!==t&&r(dC({prev:i.current,next:t})),i.current=t)},[t,r,n]),h.useLayoutEffect(()=>()=>{i.current&&(r(vC(i.current)),i.current=null)},[r]),null}function k0(e){var{legendPayload:t}=e,r=te(),n=Te(),i=h.useRef(null);return h.useLayoutEffect(()=>{n||(i.current===null?r(Hm(t)):i.current!==t&&r(Ym({prev:i.current,next:t})),i.current=t)},[r,n,t]),h.useLayoutEffect(()=>()=>{i.current&&(r(Vm(i.current)),i.current=null)},[r]),null}function iT(e){var{legendPayload:t}=e,r=te(),n=M(K),i=h.useRef(null);return h.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(i.current===null?r(Hm(t)):i.current!==t&&r(Ym({prev:i.current,next:t})),i.current=t)},[r,n,t]),h.useLayoutEffect(()=>()=>{i.current&&(r(Vm(i.current)),i.current=null)},[r]),null}var ju,aT=()=>{var[e]=h.useState(()=>cn("uid-"));return e},oT=(ju=hb.useId)!==null&&ju!==void 0?ju:aT;function I0(e,t){var r=oT();return t||(e?"".concat(e,"-").concat(r):r)}var uT=h.createContext(void 0),Ms=e=>{var{id:t,type:r,children:n}=e,i=I0("recharts-".concat(r),t);return h.createElement(uT.Provider,{value:i},n(i))},lT={cartesianItems:[],polarItems:[]},j0=We({name:"graphicalItems",initialState:lT,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:ne()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ft(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:ne()},removeCartesianGraphicalItem:{reducer(e,t){var r=ft(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:ne()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:ne()},removePolarGraphicalItem:{reducer(e,t){var r=ft(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:ne()}}}),{addCartesianGraphicalItem:cT,replaceCartesianGraphicalItem:sT,removeCartesianGraphicalItem:fT,addPolarGraphicalItem:dT,removePolarGraphicalItem:vT}=j0.actions,hT=j0.reducer,pT=e=>{var t=te(),r=h.useRef(null);return h.useLayoutEffect(()=>{r.current===null?t(cT(e)):r.current!==e&&t(sT({prev:r.current,next:e})),r.current=e},[t,e]),h.useLayoutEffect(()=>()=>{r.current&&(t(fT(r.current)),r.current=null)},[t]),null},T0=h.memo(pT);function mT(e){var t=te();return h.useLayoutEffect(()=>(t(dT(e)),()=>{t(vT(e))}),[t,e]),null}var yT=["key"],gT=["onMouseEnter","onClick","onMouseLeave"],bT=["id"],wT=["id"];function zh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t_s(e.children,Qa),[e.children]),r=M(n=>Nj(n,e.id,t));return r==null?null:h.createElement(iT,{legendPayload:r})}var ET=h.memo(e=>{var{dataKey:t,nameKey:r,sectors:n,stroke:i,strokeWidth:a,fill:o,name:u,hide:l,tooltipType:s}=e,c={dataDefinedOnItem:n.map(f=>f.tooltipPayload),positions:n.map(f=>f.tooltipPosition),settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:r,name:Br(u,t),hide:l,type:s,color:o,unit:""}};return h.createElement(Ts,{tooltipEntrySettings:c})}),_T=(e,t)=>e>t?"start":eje(typeof t=="function"?t(e):t,r,r*.8),kT=(e,t,r)=>{var{top:n,left:i,width:a,height:o}=t,u=ty(a,o),l=i+je(e.cx,a,a/2),s=n+je(e.cy,o,o/2),c=je(e.innerRadius,u,0),f=CT(r,e.outerRadius,u),d=e.maxRadius||Math.sqrt(a*a+o*o)/2;return{cx:l,cy:s,innerRadius:c,outerRadius:f,maxRadius:d}},IT=(e,t)=>{var r=Se(t-e),n=Math.min(Math.abs(t-e),360);return r*n};function jT(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var TT=(e,t)=>{if(h.isValidElement(e))return h.cloneElement(e,t);if(typeof e=="function")return e(t);var r=H("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:n}=t,i=ro(t,yT);return h.createElement(fc,Zt({},i,{type:"linear",className:r}))},MT=(e,t,r)=>{if(h.isValidElement(e))return h.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),h.isValidElement(n)))return n;var i=H("recharts-pie-label-text",jT(e));return h.createElement(Ja,Zt({},t,{alignmentBaseline:"middle",className:i}),n)};function DT(e){var{sectors:t,props:r,showLabels:n}=e,{label:i,labelLine:a,dataKey:o}=r;if(!n||!i||!t)return null;var u=Ze(r),l=hr(i),s=hr(a),c=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,f=t.map((d,v)=>{var m=(d.startAngle+d.endAngle)/2,p=ve(d.cx,d.cy,d.outerRadius+c,m),y=ce(ce(ce(ce({},u),d),{},{stroke:"none"},l),{},{index:v,textAnchor:_T(p.x,d.cx)},p),g=ce(ce(ce(ce({},u),d),{},{fill:"none",stroke:d.fill},s),{},{index:v,points:[ve(d.cx,d.cy,d.outerRadius,m),p],key:"line"});return h.createElement(qe,{zIndex:he.label,key:"label-".concat(d.startAngle,"-").concat(d.endAngle,"-").concat(d.midAngle,"-").concat(v)},h.createElement(Ee,null,a&&TT(a,g),MT(i,y,X(d,o))))});return h.createElement(Ee,{className:"recharts-pie-labels"},f)}function NT(e){var{sectors:t,props:r,showLabels:n}=e,{label:i}=r;return typeof i=="object"&&i!=null&&"position"in i?h.createElement(As,{label:i}):h.createElement(DT,{sectors:t,props:r,showLabels:n})}function RT(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:i,shape:a,id:o}=e,u=M(Xt),l=M(ys),s=M(tk),{onMouseEnter:c,onClick:f,onMouseLeave:d}=i,v=ro(i,gT),m=ks(c,i.dataKey,o),p=Is(d),y=js(f,i.dataKey,o);return t==null||t.length===0?null:h.createElement(h.Fragment,null,t.map((g,w)=>{if(g?.startAngle===0&&g?.endAngle===0&&t.length!==1)return null;var b=s==null||s===o,P=String(w)===u&&(l==null||i.dataKey===l)&&b,x=u?n:null,O=r&&P?r:x,S=ce(ce({},g),{},{stroke:g.stroke,tabIndex:-1,[Tm]:w,[Mm]:i.dataKey});return h.createElement(Ee,Zt({key:"sector-".concat(g?.startAngle,"-").concat(g?.endAngle,"-").concat(g.midAngle,"-").concat(w),tabIndex:-1,className:"recharts-pie-sector"},En(v,g,w),{onMouseEnter:m(g,w),onMouseLeave:p(g,w),onClick:y(g,w)}),h.createElement(Cs,Zt({option:a??O,index:w,shapeType:"sector",isActive:P},S)))}))}function $T(e){var t,{pieSettings:r,displayedData:n,cells:i,offset:a}=e,{cornerRadius:o,startAngle:u,endAngle:l,dataKey:s,nameKey:c,tooltipType:f}=r,d=Math.abs(r.minAngle),v=IT(u,l),m=Math.abs(v),p=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,y=n.filter(O=>X(O,s,0)!==0).length,g=(m>=360?y:y-1)*p,w=m-y*d-g,b=n.reduce((O,S)=>{var _=X(S,s,0);return O+(N(_)?_:0)},0),P;if(b>0){var x;P=n.map((O,S)=>{var _=X(O,s,0),I=X(O,c,S),j=kT(r,a,O),T=(N(_)?_:0)/b,E,$=ce(ce({},O),i&&i[S]&&i[S].props);S?E=x.endAngle+Se(v)*p*(_!==0?1:0):E=u;var R=E+Se(v)*((_!==0?d:0)+T*w),L=(E+R)/2,q=(j.innerRadius+j.outerRadius)/2,B=[{name:I,value:_,payload:$,dataKey:s,type:f}],W=ve(j.cx,j.cy,q,L);return x=ce(ce(ce(ce({},r.presentationProps),{},{percent:T,cornerRadius:typeof o=="string"?parseFloat(o):o,name:I,tooltipPayload:B,midAngle:L,middleRadius:q,tooltipPosition:W},$),j),{},{value:_,dataKey:s,startAngle:E,endAngle:R,payload:$,paddingAngle:Se(v)*p}),x})}return P}function LT(e){var{showLabels:t,sectors:r,children:n}=e,i=h.useMemo(()=>!t||!r?[]:r.map(a=>({value:a.value,payload:a.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:a.cx,cy:a.cy,innerRadius:a.innerRadius,outerRadius:a.outerRadius,startAngle:a.startAngle,endAngle:a.endAngle,clockWise:!1},fill:a.fill})),[r,t]);return h.createElement(bj,{value:t?i:void 0},n)}function zT(e){var{props:t,previousSectorsRef:r,id:n}=e,{sectors:i,isAnimationActive:a,animationBegin:o,animationDuration:u,animationEasing:l,activeShape:s,inactiveShape:c,onAnimationStart:f,onAnimationEnd:d}=t,v=Dn(t,"recharts-pie-"),m=r.current,[p,y]=h.useState(!1),g=h.useCallback(()=>{typeof d=="function"&&d(),y(!1)},[d]),w=h.useCallback(()=>{typeof f=="function"&&f(),y(!0)},[f]);return h.createElement(LT,{showLabels:!p,sectors:i},h.createElement(Mn,{animationId:v,begin:o,duration:u,isActive:a,easing:l,onAnimationStart:w,onAnimationEnd:g,key:v},b=>{var P=[],x=i&&i[0],O=x?.startAngle;return i?.forEach((S,_)=>{var I=m&&m[_],j=_>0?pr(S,"paddingAngle",0):0;if(I){var T=ie(I.endAngle-I.startAngle,S.endAngle-S.startAngle,b),E=ce(ce({},S),{},{startAngle:O+j,endAngle:O+T+j});P.push(E),O=E.endAngle}else{var{endAngle:$,startAngle:R}=S,L=ie(0,$-R,b),q=ce(ce({},S),{},{startAngle:O+j,endAngle:O+L+j});P.push(q),O=q.endAngle}}),r.current=P,h.createElement(Ee,null,h.createElement(RT,{sectors:P,activeShape:s,inactiveShape:c,allOtherPieProps:t,shape:t.shape,id:n}))}),h.createElement(NT,{showLabels:!p,sectors:i,props:t}),t.children)}var BT={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:he.area};function FT(e){var{id:t}=e,r=ro(e,bT),{hide:n,className:i,rootTabIndex:a}=e,o=h.useMemo(()=>_s(e.children,Qa),[e.children]),u=M(c=>Rj(c,t,o)),l=h.useRef(null),s=H("recharts-pie",i);return n||u==null?(l.current=null,h.createElement(Ee,{tabIndex:a,className:s})):h.createElement(qe,{zIndex:e.zIndex},h.createElement(ET,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:u,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType}),h.createElement(Ee,{tabIndex:a,className:s},h.createElement(zT,{props:ce(ce({},r),{},{sectors:u}),previousSectorsRef:l,id:t})))}function KT(e){var t=me(e,BT),{id:r}=t,n=ro(t,wT),i=Ze(n);return h.createElement(Ms,{id:r,type:"pie"},a=>h.createElement(h.Fragment,null,h.createElement(mT,{type:"pie",id:a,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),h.createElement(ST,Zt({},n,{id:a})),h.createElement(FT,Zt({},n,{id:a}))))}KT.displayName="Pie";var WT=["points"];function Bh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tu(e){for(var t=1;t{var y,g,w=Tu(Tu(Tu({r:3},o),f),{},{index:p,cx:(y=m.x)!==null&&y!==void 0?y:void 0,cy:(g=m.y)!==null&&g!==void 0?g:void 0,dataKey:a,value:m.value,payload:m.payload,points:t});return h.createElement(GT,{key:"dot-".concat(p),option:r,dotProps:w,className:i})}),v={};return u&&l!=null&&(v.clipPath="url(#clipPath-".concat(c?"":"dots-").concat(l,")")),h.createElement(qe,{zIndex:s},h.createElement(Ee,oa({className:n},v),d))}function Fh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kh(e){for(var t=1;t({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),fM=A([sM,$t,Lt],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),Ds=()=>M(fM),dM=()=>M(ok);function Wh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mu(e){for(var t=1;t{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:a,clipPath:o}=e;if(i===!1||t.x==null||t.y==null)return null;var u={index:r,dataKey:a,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},l=Mu(Mu(Mu({},u),hr(i)),Gl(i)),s;return h.isValidElement(i)?s=h.cloneElement(i,l):typeof i=="function"?s=i(l):s=h.createElement(P0,l),h.createElement(Ee,{className:"recharts-active-dot",clipPath:o},s)};function yM(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i,clipPath:a,zIndex:o=he.activeDot}=e,u=M(Xt),l=dM();if(t==null||l==null)return null;var s=t.find(c=>l.includes(c.payload));return oe(s)?null:h.createElement(qe,{zIndex:o},h.createElement(mM,{point:s,childIndex:Number(u),mainColor:r,dataKey:i,activeDot:n,clipPath:a}))}var gM="Invariant failed";function bM(e,t){throw new Error(gM)}var wM=["x","y"];function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:0;return(n,i)=>{if(N(t))return t;var a=N(n)||oe(n);return a?t(n,i):(a||bM(),r)}},CM={},D0=We({name:"errorBars",initialState:CM,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(a=>a.dataKey===n.dataKey&&a.direction===n.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:GR,replaceErrorBar:XR,removeErrorBar:ZR}=D0.actions,kM=D0.reducer,IM=["children"];function jM(e,t){if(e==null)return{};var r,n,i=TM(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n({x:0,y:0,value:0}),errorBarOffset:0},DM=h.createContext(MM);function N0(e){var{children:t}=e,r=jM(e,IM);return h.createElement(DM.Provider,{value:r},t)}function Ns(e,t){var r,n,i=M(s=>Bt(s,e)),a=M(s=>Ft(s,t)),o=(r=i?.allowDataOverflow)!==null&&r!==void 0?r:Pe.allowDataOverflow,u=(n=a?.allowDataOverflow)!==null&&n!==void 0?n:Oe.allowDataOverflow,l=o||u;return{needClip:l,needClipX:o,needClipY:u}}function R0(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=Ds(),{needClipX:a,needClipY:o,needClip:u}=Ns(t,r);if(!u||!i)return null;var{x:l,y:s,width:c,height:f}=i;return h.createElement("clipPath",{id:"clipPath-".concat(n)},h.createElement("rect",{x:a?l:l-c/2,y:o?s:s-f/2,width:a?c:c*2,height:o?f:f*2}))}function NM(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&fe(e.zIndex)?e.zIndex:t}var Du={exports:{}},Nu={};var Uh;function RM(){if(Uh)return Nu;Uh=1;var e=pb();function t(l,s){return l===s&&(l!==0||1/l===1/s)||l!==l&&s!==s}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,u=e.useDebugValue;return Nu.useSyncExternalStoreWithSelector=function(l,s,c,f,d){var v=i(null);if(v.current===null){var m={hasValue:!1,value:null};v.current=m}else m=v.current;v=o(function(){function y(x){if(!g){if(g=!0,w=x,x=f(x),d!==void 0&&m.hasValue){var O=m.value;if(d(O,x))return b=O}return b=x}if(O=b,r(w,x))return O;var S=f(x);return d!==void 0&&d(O,S)?(w=x,O):(w=x,b=S)}var g=!1,w,b,P=c===void 0?null:c;return[function(){return y(s())},P===null?void 0:function(){return y(P())}]},[s,c,f,d]);var p=n(l,v[0],v[1]);return a(function(){m.hasValue=!0,m.value=p},[p]),u(p),p},Nu}var Hh;function $M(){return Hh||(Hh=1,Du.exports=RM()),Du.exports}$M();function LM(e){e()}function zM(){let e=null,t=null;return{clear(){e=null,t=null},notify(){LM(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Yh={notify(){},get:()=>[]};function BM(e,t){let r,n=Yh,i=0,a=!1;function o(p){c();const y=n.subscribe(p);let g=!1;return()=>{g||(g=!0,y(),f())}}function u(){n.notify()}function l(){m.onStateChange&&m.onStateChange()}function s(){return a}function c(){i++,r||(r=e.subscribe(l),n=zM())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=Yh)}function d(){a||(a=!0,c())}function v(){a&&(a=!1,f())}const m={addNestedSub:o,notifyNestedSubs:u,handleChangeWrapper:l,isSubscribed:s,trySubscribe:d,tryUnsubscribe:v,getListeners:()=>n};return m}var FM=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",KM=FM(),WM=()=>typeof navigator<"u"&&navigator.product==="ReactNative",qM=WM(),UM=()=>KM||qM?h.useLayoutEffect:h.useEffect,HM=UM();function Vh(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function YM(e,t){if(Vh(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i{const l=BM(i);return{store:i,subscription:l,getServerState:n?()=>n:void 0}},[i,n]),o=h.useMemo(()=>i.getState(),[i]);HM(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,o]);const u=r||ZM;return h.createElement(u.Provider,{value:a},t)}var JM=QM,eD=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle"]);function tD(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function no(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(eD.has(n)){if(e[n]==null&&t[n]==null)continue;if(!YM(e[n],t[n]))return!1}else if(!tD(e[n],t[n]))return!1;return!0}var rD=["onMouseEnter","onMouseLeave","onClick"],nD=["value","background","tooltipPosition"],iD=["id"],aD=["onMouseEnter","onClick","onMouseLeave"];function Rt(){return Rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Br(r,t),payload:e}]},fD=h.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:a,hide:o,unit:u,tooltipType:l}=e,s={dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:Br(a,t),hide:o,type:l,color:i,unit:u}};return h.createElement(Ts,{tooltipEntrySettings:s})});function dD(e){var t=M(Xt),{data:r,dataKey:n,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:u,onClick:l}=a,s=la(a,rD),c=ks(o,n),f=Is(u),d=js(l,n);if(!i||r==null)return null;var v=hr(i);return h.createElement(qe,{zIndex:NM(i,he.barBackground)},r.map((m,p)=>{var{value:y,background:g,tooltipPosition:w}=m,b=la(m,nD);if(!g)return null;var P=c(m,p),x=f(m,p),O=d(m,p),S=De(De(De(De(De({option:i,isActive:String(p)===t},b),{},{fill:"#eee"},g),v),En(s,m,p)),{},{onMouseEnter:P,onMouseLeave:x,onClick:O,dataKey:n,index:p,className:"recharts-bar-background-rectangle"});return h.createElement(ua,Rt({key:"background-bar-".concat(p)},S))}))}function vD(e){var{showLabels:t,children:r,rects:n}=e,i=n?.map(a=>{var o={x:a.x,y:a.y,width:a.width,lowerWidth:a.width,upperWidth:a.width,height:a.height};return De(De({},o),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:o,fill:a.fill})});return h.createElement(w0,{value:t?i:void 0},r)}function hD(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:a,dataKey:o}=e,u=M(Xt),l=M(ys),s=r&&String(a)===u&&(l==null||o===l),c=s?r:t;return s?h.createElement(qe,{zIndex:he.activeBar},h.createElement(ua,Rt({},n,{name:String(n.name)},i,{isActive:s,option:c,index:a,dataKey:o}))):h.createElement(ua,Rt({},n,{name:String(n.name)},i,{isActive:s,option:c,index:a,dataKey:o}))}function pD(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:a}=e;return h.createElement(ua,Rt({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:i,dataKey:a}))}function mD(e){var t,{data:r,props:n}=e,i=(t=Ze(n))!==null&&t!==void 0?t:{},{id:a}=i,o=la(i,iD),{shape:u,dataKey:l,activeBar:s}=n,{onMouseEnter:c,onClick:f,onMouseLeave:d}=n,v=la(n,aD),m=ks(c,l),p=Is(d),y=js(f,l);return r?h.createElement(h.Fragment,null,r.map((g,w)=>h.createElement(Ee,Rt({key:"rectangle-".concat(g?.x,"-").concat(g?.y,"-").concat(g?.value,"-").concat(w),className:"recharts-bar-rectangle"},En(v,g,w),{onMouseEnter:m(g,w),onMouseLeave:p(g,w),onClick:y(g,w)}),s?h.createElement(hD,{shape:u,activeBar:s,baseProps:o,entry:g,index:w,dataKey:l}):h.createElement(pD,{shape:u,baseProps:o,entry:g,index:w,dataKey:l})))):null}function yD(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:u,animationEasing:l,onAnimationEnd:s,onAnimationStart:c}=t,f=r.current,d=Dn(t,"recharts-bar-"),[v,m]=h.useState(!1),p=!v,y=h.useCallback(()=>{typeof s=="function"&&s(),m(!1)},[s]),g=h.useCallback(()=>{typeof c=="function"&&c(),m(!0)},[c]);return h.createElement(vD,{showLabels:p,rects:n},h.createElement(Mn,{animationId:d,begin:o,duration:u,isActive:a,easing:l,onAnimationEnd:y,onAnimationStart:g,key:d},w=>{var b=w===1?n:n?.map((P,x)=>{var O=f&&f[x];if(O)return De(De({},P),{},{x:ie(O.x,P.x,w),y:ie(O.y,P.y,w),width:ie(O.width,P.width,w),height:ie(O.height,P.height,w)});if(i==="horizontal"){var S=ie(0,P.height,w),_=ie(P.stackedBarStart,P.y,w);return De(De({},P),{},{y:_,height:S})}var I=ie(0,P.width,w),j=ie(P.stackedBarStart,P.x,w);return De(De({},P),{},{width:I,x:j})});return w>0&&(r.current=b??null),b==null?null:h.createElement(Ee,null,h.createElement(mD,{props:t,data:b}))}),h.createElement(As,{label:t.label}),t.children)}function gD(e){var t=h.useRef(null);return h.createElement(yD,{previousRectanglesRef:t,props:e})}var $0=0,bD=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:X(e,t)}};class wD extends h.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:i,xAxisId:a,yAxisId:o,needClip:u,background:l,id:s}=this.props;if(t||r==null)return null;var c=H("recharts-bar",i),f=s;return h.createElement(Ee,{className:c,id:s},u&&h.createElement("defs",null,h.createElement(R0,{clipPathId:f,xAxisId:a,yAxisId:o})),h.createElement(Ee,{className:"recharts-bar-rectangles",clipPath:u?"url(#clipPath-".concat(f,")"):void 0},h.createElement(dD,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),h.createElement(gD,this.props)))}}var xD={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:$0,xAxisId:0,yAxisId:0,zIndex:he.bar};function PD(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:u,animationDuration:l,animationEasing:s,isAnimationActive:c}=e,{needClip:f}=Ns(t,r),d=In(),v=Te(),m=_s(e.children,Qa),p=M(w=>ZD(w,t,r,v,e.id,m));if(d!=="vertical"&&d!=="horizontal")return null;var y,g=p?.[0];return g==null||g.height==null||g.width==null?y=0:y=d==="vertical"?g.height/2:g.width/2,h.createElement(N0,{xAxisId:t,yAxisId:r,data:p,dataPointFormatter:bD,errorBarOffset:y},h.createElement(wD,Rt({},e,{layout:d,needClip:f,data:p,xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:u,animationDuration:l,animationEasing:s,isAnimationActive:c})))}function OD(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n},pos:i,bandSize:a,xAxis:o,yAxis:u,xAxisTicks:l,yAxisTicks:s,stackedData:c,displayedData:f,offset:d,cells:v,parentViewBox:m,dataStartIndex:p}=e,y=t==="horizontal"?u:o,g=c?y.scale.domain():null,w=RP({numericAxis:y}),b=y.scale(w);return f.map((P,x)=>{var O,S,_,I,j,T;c?O=IP(c[x+p],g):(O=X(P,r),Array.isArray(O)||(O=[w,O]));var E=_M(n,$0)(O[1],x);if(t==="horizontal"){var $,[R,L]=[u.scale(O[0]),u.scale(O[1])];S=sd({axis:o,ticks:l,bandSize:a,offset:i.offset,entry:P,index:x}),_=($=L??R)!==null&&$!==void 0?$:void 0,I=i.size;var q=R-L;if(j=dt(q)?0:q,T={x:S,y:d.top,width:I,height:d.height},Math.abs(E)>0&&Math.abs(j)0&&Math.abs(I)h.createElement(h.Fragment,null,h.createElement(k0,{legendPayload:sD(t)}),h.createElement(fD,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType}),h.createElement(T0,{type:"bar",id:n,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:NP(t.stackId),hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r}),h.createElement(qe,{zIndex:t.zIndex},h.createElement(PD,Rt({},t,{id:n})))))}var SD=h.memo(AD,no);SD.displayName="Bar";function Xh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function di(e){for(var t=1;tt,ID=(e,t,r)=>r,jD=(e,t,r,n)=>n,TD=(e,t,r,n,i)=>i,Gn=A([Ya,TD],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),MD=A([Gn],e=>e?.maxBarSize),DD=(e,t,r,n,i,a)=>a,Zh=(e,t,r)=>{var n=r??e;if(!oe(n))return je(n,t,0)},ND=A([K,Ya,kD,ID,jD],(e,t,r,n,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===r:a.yAxisId===n).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),RD=(e,t,r,n)=>{var i=K(e);return i==="horizontal"?Sl(e,"yAxis",r,n):Sl(e,"xAxis",t,n)},$D=(e,t,r)=>{var n=K(e);return n==="horizontal"?Uv(e,"xAxis",t):Uv(e,"yAxis",r)},LD=(e,t,r)=>{var n={},i=e.filter(qa),a=e.filter(s=>s.stackId==null),o=i.reduce((s,c)=>(s[c.stackId]||(s[c.stackId]=[]),s[c.stackId].push(c),s),n),u=Object.entries(o).map(s=>{var[c,f]=s,d=f.map(m=>m.dataKey),v=Zh(t,r,f[0].barSize);return{stackId:c,dataKeys:d,barSize:v}}),l=a.map(s=>{var c=[s.dataKey].filter(d=>d!=null),f=Zh(t,r,s.barSize);return{stackId:void 0,dataKeys:c,barSize:f}});return[...u,...l]},zD=A([ND,i_,$D],LD),BD=(e,t,r,n,i)=>{var a,o,u=Gn(e,t,r,n,i);if(u!=null){var l=K(e),s=tg(e),{maxBarSize:c}=u,f=oe(c)?s:c,d,v;return l==="horizontal"?(d=Gt(e,"xAxis",t,n),v=Vt(e,"xAxis",t,n)):(d=Gt(e,"yAxis",r,n),v=Vt(e,"yAxis",r,n)),(a=(o=Dr(d,v,!0))!==null&&o!==void 0?o:f)!==null&&a!==void 0?a:0}},L0=(e,t,r,n)=>{var i=K(e),a,o;return i==="horizontal"?(a=Gt(e,"xAxis",t,n),o=Vt(e,"xAxis",t,n)):(a=Gt(e,"yAxis",r,n),o=Vt(e,"yAxis",r,n)),Dr(a,o)};function FD(e,t,r,n,i){var a=n.length;if(!(a<1)){var o=je(e,r,0,!0),u,l=[];if(fe(n[0].barSize)){var s=!1,c=r/a,f=n.reduce((g,w)=>g+(w.barSize||0),0);f+=(a-1)*o,f>=r&&(f-=(a-1)*o,o=0),f>=r&&c>0&&(s=!0,c*=.9,f=a*c);var d=(r-f)/2>>0,v={offset:d-o,size:0};u=n.reduce((g,w)=>{var b,P={stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:v.offset+v.size+o,size:s?c:(b=w.barSize)!==null&&b!==void 0?b:0}},x=[...g,P];return v=x[x.length-1].position,x},l)}else{var m=je(t,r,0,!0);r-2*m-(a-1)*o<=0&&(o=0);var p=(r-2*m-(a-1)*o)/a;p>1&&(p>>=0);var y=fe(i)?Math.min(p,i):p;u=n.reduce((g,w,b)=>[...g,{stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:m+(p+o)*b+(p-y)/2,size:y}}],l)}return u}}var KD=(e,t,r,n,i,a,o)=>{var u=oe(o)?t:o,l=FD(r,n,i!==a?i:a,e,u);return i!==a&&l!=null&&(l=l.map(s=>di(di({},s),{},{position:di(di({},s.position),{},{offset:s.position.offset-i/2})}))),l},WD=A([zD,tg,n_,rg,BD,L0,MD],KD),qD=(e,t,r,n)=>Gt(e,"xAxis",t,n),UD=(e,t,r,n)=>Gt(e,"yAxis",r,n),HD=(e,t,r,n)=>Vt(e,"xAxis",t,n),YD=(e,t,r,n)=>Vt(e,"yAxis",r,n),VD=A([WD,Gn],(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}}),GD=(e,t)=>{var r=qc(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var i=e[n];if(i){var{stackedData:a}=i;if(a)return a.find(o=>o.key===r)}}}},XD=A([RD,Gn],GD),ZD=A([ge,ac,qD,UD,HD,YD,VD,K,Fa,L0,XD,Gn,DD],(e,t,r,n,i,a,o,u,l,s,c,f,d)=>{var{chartData:v,dataStartIndex:m,dataEndIndex:p}=l;if(!(f==null||o==null||t==null||u!=="horizontal"&&u!=="vertical"||r==null||n==null||i==null||a==null||s==null)){var{data:y}=f,g;if(y!=null&&y.length>0?g=y:g=v?.slice(m,p+1),g!=null)return OD({layout:u,barSettings:f,pos:o,parentViewBox:t,bandSize:s,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,stackedData:c,displayedData:g,offset:e,cells:d,dataStartIndex:m})}}),z0=e=>{var{chartData:t}=e,r=te(),n=Te();return h.useEffect(()=>n?()=>{}:(r(ih(t)),()=>{r(ih(void 0))}),[t,r,n]),null},Qh={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},B0=We({name:"brush",initialState:Qh,reducers:{setBrushSettings(e,t){return t.payload==null?Qh:t.payload}}}),{setBrushSettings:QR}=B0.actions,QD=B0.reducer;function JD(e,t,r){return(t=eN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eN(e){var t=tN(e,"string");return typeof t=="symbol"?t:t+""}function tN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Rs{static create(t){return new Rs(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:r,position:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(n)switch(n){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}default:return this.scale(t)}if(r){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}return this.scale(t)}}isInRange(t){var r=this.range(),n=r[0],i=r[r.length-1];return n<=i?t>=n&&t<=i:t>=i&&t<=n}}JD(Rs,"EPS",1e-4);function rN(e){return(e%180+180)%180}var nN=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=rN(i),o=a*Math.PI/180,u=Math.atan(n/r),l=o>u&&o{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=ft(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=ft(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=ft(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:JR,removeDot:e$,addArea:t$,removeArea:r$,addLine:n$,removeLine:i$}=F0.actions,aN=F0.reducer,oN=h.createContext(void 0),uN=e=>{var{children:t}=e,[r]=h.useState("".concat(cn("recharts"),"-clip")),n=Ds();if(n==null)return null;var{x:i,y:a,width:o,height:u}=n;return h.createElement(oN.Provider,{value:r},h.createElement("defs",null,h.createElement("clipPath",{id:r},h.createElement("rect",{x:i,y:a,height:u,width:o}))),t)};function K0(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;ne*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function sN(e,t){return K0(e,t+1)}function fN(e,t,r,n,i){for(var a=(n||[]).slice(),{start:o,end:u}=t,l=0,s=1,c=o,f=function(){var m=n?.[l];if(m===void 0)return{v:K0(n,s)};var p=l,y,g=()=>(y===void 0&&(y=r(m,p)),y),w=m.coordinate,b=l===0||ca(e,w,g,c,u);b||(l=0,c=o,s+=1),b&&(c=w+e*(g()/2+i),l+=s)},d;s<=a.length;)if(d=f(),d)return d.v;return[]}function Jh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t(m===void 0&&(m=r(v,d)),m);if(d===o-1){var y=e*(v.coordinate+e*p()/2-l);a[d]=v=ke(ke({},v),{},{tickCoord:y>0?v.coordinate-y*e:v.coordinate})}else a[d]=v=ke(ke({},v),{},{tickCoord:v.coordinate});if(v.tickCoord!=null){var g=ca(e,v.tickCoord,p,u,l);g&&(l=v.tickCoord-e*(p()/2+i),a[d]=ke(ke({},v),{},{isShow:!0}))}},c=o-1;c>=0;c--)s(c);return a}function mN(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,{start:l,end:s}=t;if(a){var c=n[u-1],f=r(c,u-1),d=e*(c.coordinate+e*f/2-s);if(o[u-1]=c=ke(ke({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate}),c.tickCoord!=null){var v=ca(e,c.tickCoord,()=>f,l,s);v&&(s=c.tickCoord-e*(f/2+i),o[u-1]=ke(ke({},c),{},{isShow:!0}))}}for(var m=a?u-1:u,p=function(w){var b=o[w],P,x=()=>(P===void 0&&(P=r(b,w)),P);if(w===0){var O=e*(b.coordinate-e*x()/2-l);o[w]=b=ke(ke({},b),{},{tickCoord:O<0?b.coordinate-O*e:b.coordinate})}else o[w]=b=ke(ke({},b),{},{tickCoord:b.coordinate});if(b.tickCoord!=null){var S=ca(e,b.tickCoord,x,l,s);S&&(l=b.tickCoord+e*(x()/2+i),o[w]=ke(ke({},b),{},{isShow:!0}))}},y=0;y{var x=typeof s=="function"?s(b.value,P):b.value;return m==="width"?lN(ln(x,{fontSize:t,letterSpacing:r}),p,f):ln(x,{fontSize:t,letterSpacing:r})[m]},g=i.length>=2?Se(i[1].coordinate-i[0].coordinate):1,w=cN(a,g,m);return l==="equidistantPreserveStart"?fN(g,w,y,i,o):(l==="preserveStart"||l==="preserveStartEnd"?v=mN(g,w,y,i,o,l==="preserveStartEnd"):v=pN(g,w,y,i,o),v.filter(b=>b.isShow))}var yN=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){Array.from(t).forEach(c=>{if(c){var f=c.getBoundingClientRect();f.width>o&&(o=f.width)}});var u=r?r.getBoundingClientRect().width:0,l=i+a,s=o+l+u+(r?n:0);return Math.round(s)}return 0},gN=["axisLine","width","height","className","hide","ticks","axisType"];function bN(e,t){if(e==null)return{};var r,n,i=wN(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n{var{ticks:r=[],tick:n,tickLine:i,stroke:a,tickFormatter:o,unit:u,padding:l,tickTextProps:s,orientation:c,mirror:f,x:d,y:v,width:m,height:p,tickSize:y,tickMargin:g,fontSize:w,letterSpacing:b,getTicksConfig:P,events:x,axisType:O}=e,S=$s(de(de({},P),{},{ticks:r}),w,b),_=EN(c,f),I=_N(c,f),j=Ze(P),T=hr(n),E={};typeof i=="object"&&(E=i);var $=de(de({},j),{},{fill:"none"},E),R=S.map(B=>de({entry:B},SN(B,d,v,m,p,c,y,f,g))),L=R.map(B=>{var{entry:W,line:z}=B;return h.createElement(Ee,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(W.value,"-").concat(W.coordinate,"-").concat(W.tickCoord)},i&&h.createElement("line",wr({},$,z,{className:H("recharts-cartesian-axis-tick-line",pr(i,"className"))})))}),q=R.map((B,W)=>{var{entry:z,tick:Q}=B,Me=de(de(de(de({textAnchor:_,verticalAnchor:I},j),{},{stroke:"none",fill:a},T),Q),{},{index:W,payload:z,visibleTicksCount:S.length,tickFormatter:o,padding:l},s);return h.createElement(Ee,wr({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(z.value,"-").concat(z.coordinate,"-").concat(z.tickCoord)},En(x,z,W)),n&&h.createElement(CN,{option:n,tickProps:Me,value:"".concat(typeof o=="function"?o(z.value,W):z.value).concat(u||"")}))});return h.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(O,"-ticks")},q.length>0&&h.createElement(qe,{zIndex:he.label},h.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(O,"-tick-labels"),ref:t},q)),L.length>0&&h.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(O,"-tick-lines")},L))}),IN=h.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:a,hide:o,ticks:u,axisType:l}=e,s=bN(e,gN),[c,f]=h.useState(""),[d,v]=h.useState(""),m=h.useRef(null);h.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var y;return yN({ticks:m.current,label:(y=e.labelRef)===null||y===void 0?void 0:y.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var p=h.useCallback(y=>{if(y){var g=y.getElementsByClassName("recharts-cartesian-axis-tick-value");m.current=g;var w=g[0];if(w){var b=window.getComputedStyle(w),P=b.fontSize,x=b.letterSpacing;(P!==c||x!==d)&&(f(P),v(x))}}},[c,d]);return o||n!=null&&n<=0||i!=null&&i<=0?null:h.createElement(qe,{zIndex:e.zIndex},h.createElement(Ee,{className:H("recharts-cartesian-axis",a)},h.createElement(AN,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Ze(e)}),h.createElement(kN,{ref:p,axisType:l,events:s,fontSize:c,getTicksConfig:e,height:e.height,letterSpacing:d,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:u,unit:e.unit,width:e.width,x:e.x,y:e.y}),h.createElement(QI,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},h.createElement(lj,{label:e.label,labelRef:e.labelRef}),e.children)))}),Ls=h.forwardRef((e,t)=>{var r=me(e,kt);return h.createElement(IN,wr({},r,{ref:t}))});Ls.displayName="CartesianAxis";var jN=["x1","y1","x2","y2","key"],TN=["offset"],MN=["xAxisId","yAxisId"],DN=["xAxisId","yAxisId"];function tp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:i,width:a,height:o,ry:u}=e;return h.createElement("rect",{x:n,y:i,ry:u,width:a,height:o,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function W0(e){var{option:t,lineItemProps:r}=e,n;if(h.isValidElement(t))n=h.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var i,{x1:a,y1:o,x2:u,y2:l,key:s}=r,c=sa(r,jN),f=(i=Ze(c))!==null&&i!==void 0?i:{},{offset:d}=f,v=sa(f,TN);n=h.createElement("line",sr({},v,{x1:a,y1:o,x2:u,y2:l,fill:"none",key:s}))}return n}function BN(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,u=sa(e,MN),l=i.map((s,c)=>{var f=Ie(Ie({},u),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(c),index:c});return h.createElement(W0,{key:"line-".concat(c),option:n,lineItemProps:f})});return h.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function FN(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,u=sa(e,DN),l=i.map((s,c)=>{var f=Ie(Ie({},u),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(c),index:c});return h.createElement(W0,{option:n,lineItemProps:f,key:"line-".concat(c)})});return h.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function KN(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:o,horizontalPoints:u,horizontal:l=!0}=e;if(!l||!t||!t.length||u==null)return null;var s=u.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==s[0]&&s.unshift(0);var c=s.map((f,d)=>{var v=!s[d+1],m=v?i+o-f:s[d+1]-f;if(m<=0)return null;var p=d%t.length;return h.createElement("rect",{key:"react-".concat(d),y:f,x:n,height:m,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return h.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function WN(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:o,height:u,verticalPoints:l}=e;if(!t||!r||!r.length)return null;var s=l.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==s[0]&&s.unshift(0);var c=s.map((f,d)=>{var v=!s[d+1],m=v?i+o-f:s[d+1]-f;if(m<=0)return null;var p=d%r.length;return h.createElement("rect",{key:"react-".concat(d),x:f,y:a,width:m,height:u,stroke:"none",fill:r[p],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return h.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var qN=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return km($s(Ie(Ie(Ie({},kt),r),{},{ticks:Im(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},UN=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return km($s(Ie(Ie(Ie({},kt),r),{},{ticks:Im(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},HN={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:he.grid};function YN(e){var t=uc(),r=lc(),n=Lm(),i=Ie(Ie({},me(e,HN)),{},{x:N(e.x)?e.x:n.left,y:N(e.y)?e.y:n.top,width:N(e.width)?e.width:n.width,height:N(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:o,x:u,y:l,width:s,height:c,syncWithTicks:f,horizontalValues:d,verticalValues:v}=i,m=Te(),p=M(I=>Hv(I,"xAxis",a,m)),y=M(I=>Hv(I,"yAxis",o,m));if(!wt(s)||!wt(c)||!N(u)||!N(l))return null;var g=i.verticalCoordinatesGenerator||qN,w=i.horizontalCoordinatesGenerator||UN,{horizontalPoints:b,verticalPoints:P}=i;if((!b||!b.length)&&typeof w=="function"){var x=d&&d.length,O=w({yAxis:y?Ie(Ie({},y),{},{ticks:x?d:y.ticks}):void 0,width:t??s,height:r??c,offset:n},x?!0:f);Ni(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(b=O)}if((!P||!P.length)&&typeof g=="function"){var S=v&&v.length,_=g({xAxis:p?Ie(Ie({},p),{},{ticks:S?v:p.ticks}):void 0,width:t??s,height:r??c,offset:n},S?!0:f);Ni(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof _,"]")),Array.isArray(_)&&(P=_)}return h.createElement(qe,{zIndex:i.zIndex},h.createElement("g",{className:"recharts-cartesian-grid"},h.createElement(zN,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),h.createElement(KN,sr({},i,{horizontalPoints:b})),h.createElement(WN,sr({},i,{verticalPoints:P})),h.createElement(BN,sr({},i,{offset:n,horizontalPoints:b,xAxis:p,yAxis:y})),h.createElement(FN,sr({},i,{offset:n,verticalPoints:P,xAxis:p,yAxis:y}))))}YN.displayName="CartesianGrid";var q0=(e,t,r,n)=>Gt(e,"xAxis",t,n),U0=(e,t,r,n)=>Vt(e,"xAxis",t,n),H0=(e,t,r,n)=>Gt(e,"yAxis",r,n),Y0=(e,t,r,n)=>Vt(e,"yAxis",r,n),VN=A([K,q0,H0,U0,Y0],(e,t,r,n,i)=>Jt(e,"xAxis")?Dr(t,n,!1):Dr(r,i,!1)),GN=(e,t,r,n,i)=>i;function XN(e){return e.type==="line"}var ZN=A([Ya,GN],(e,t)=>e.filter(XN).find(r=>r.id===t)),QN=A([K,q0,H0,U0,Y0,ZN,VN,Fa],(e,t,r,n,i,a,o,u)=>{var{chartData:l,dataStartIndex:s,dataEndIndex:c}=u;if(!(a==null||t==null||r==null||n==null||i==null||n.length===0||i.length===0||o==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:f,data:d}=a,v;if(d!=null&&d.length>0?v=d:v=l?.slice(s,c+1),v!=null)return b2({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:f,bandSize:o,displayedData:v})}});function JN(e){var t=hr(e),r=3,n=2;if(t!=null){var{r:i,strokeWidth:a}=t,o=Number(i),u=Number(a);return(Number.isNaN(o)||o<0)&&(o=r),(Number.isNaN(u)||u<0)&&(u=n),{r:o,strokeWidth:u}}return{r,strokeWidth:n}}var e2=["id"],t2=["type","layout","connectNulls","needClip","shape"],r2=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function On(){return On=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{dataKey:t,name:r,stroke:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Br(r,t),payload:e}]},l2=h.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:u,unit:l,tooltipType:s}=e,c={dataDefinedOnItem:r,positions:void 0,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Br(o,t),hide:u,type:s,color:n,unit:l}};return h.createElement(Ts,{tooltipEntrySettings:c})}),V0=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function c2(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],i=0;i{var n=r.reduce((f,d)=>f+d);if(!n)return V0(t,e);for(var i=Math.floor(e/n),a=e%n,o=t-e,u=[],l=0,s=0;la){u=[...r.slice(0,l),a-s];break}var c=u.length%2===0?[0,o]:[o];return[...c2(r,i),...u,...c].map(f=>"".concat(f,"px")).join(", ")};function f2(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:a,needClip:o}=n,{id:u}=n,l=zs(n,e2),s=Ze(l);return h.createElement(ZT,{points:r,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:a,baseProps:s,needClip:o,clipPathId:t})}function d2(e){var{showLabels:t,children:r,points:n}=e,i=h.useMemo(()=>n?.map(a=>{var o,u,l={x:(o=a.x)!==null&&o!==void 0?o:0,y:(u=a.y)!==null&&u!==void 0?u:0,width:0,lowerWidth:0,upperWidth:0,height:0};return mt(mt({},l),{},{value:a.value,payload:a.payload,viewBox:l,parentViewBox:void 0,fill:void 0})}),[n]);return h.createElement(w0,{value:t?i:void 0},r)}function np(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:a}=e,{type:o,layout:u,connectNulls:l,needClip:s,shape:c}=a,f=zs(a,t2),d=mt(mt({},Re(f)),{},{fill:"none",className:"recharts-line-curve",clipPath:s?"url(#clipPath-".concat(t,")"):void 0,points:n,type:o,layout:u,connectNulls:l,strokeDasharray:i??a.strokeDasharray});return h.createElement(h.Fragment,null,n?.length>1&&h.createElement(Cs,On({shapeType:"curve",option:c},d,{pathRef:r})),h.createElement(f2,{points:n,clipPathId:t,props:a}))}function v2(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function h2(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:u,isAnimationActive:l,animationBegin:s,animationDuration:c,animationEasing:f,animateNewValues:d,width:v,height:m,onAnimationEnd:p,onAnimationStart:y}=r,g=i.current,w=Dn(o,"recharts-line-"),b=h.useRef(w),[P,x]=h.useState(!1),O=!P,S=h.useCallback(()=>{typeof p=="function"&&p(),x(!1)},[p]),_=h.useCallback(()=>{typeof y=="function"&&y(),x(!0)},[y]),I=v2(n.current),j=h.useRef(0);b.current!==w&&(j.current=a.current,b.current=w);var T=j.current;return h.createElement(d2,{points:o,showLabels:O},r.children,h.createElement(Mn,{animationId:w,begin:s,duration:c,isActive:l,easing:f,onAnimationEnd:S,onAnimationStart:_,key:w},E=>{var $=ie(T,I+T,E),R=Math.min($,I),L;if(l)if(u){var q="".concat(u).split(/[,\s]+/gim).map(z=>parseFloat(z));L=s2(R,I,q)}else L=V0(I,R);else L=u==null?void 0:String(u);if(E>0&&I>0&&(i.current=o,a.current=Math.max(a.current,R)),g){var B=g.length/o.length,W=E===1?o:o.map((z,Q)=>{var Me=Math.floor(Q*B);if(g[Me]){var Le=g[Me];return mt(mt({},z),{},{x:ie(Le.x,z.x,E),y:ie(Le.y,z.y,E)})}return d?mt(mt({},z),{},{x:ie(v*2,z.x,E),y:ie(m/2,z.y,E)}):mt(mt({},z),{},{x:z.x,y:z.y})});return i.current=W,h.createElement(np,{props:r,points:W,clipPathId:t,pathRef:n,strokeDasharray:L})}return h.createElement(np,{props:r,points:o,clipPathId:t,pathRef:n,strokeDasharray:L})}),h.createElement(As,{label:r.label}))}function p2(e){var{clipPathId:t,props:r}=e,n=h.useRef(null),i=h.useRef(0),a=h.useRef(null);return h.createElement(h2,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:i,pathRef:a})}var m2=(e,t)=>{var r,n;return{x:(r=e.x)!==null&&r!==void 0?r:void 0,y:(n=e.y)!==null&&n!==void 0?n:void 0,value:e.value,errorVal:X(e.payload,t)}};class y2 extends h.Component{render(){var{hide:t,dot:r,points:n,className:i,xAxisId:a,yAxisId:o,top:u,left:l,width:s,height:c,id:f,needClip:d,zIndex:v}=this.props;if(t)return null;var m=H("recharts-line",i),p=f,{r:y,strokeWidth:g}=JN(r),w=C0(r),b=y*2+g,P=d?"url(#clipPath-".concat(w?"":"dots-").concat(p,")"):void 0;return h.createElement(qe,{zIndex:v},h.createElement(Ee,{className:m},d&&h.createElement("defs",null,h.createElement(R0,{clipPathId:p,xAxisId:a,yAxisId:o}),!w&&h.createElement("clipPath",{id:"clipPath-dots-".concat(p)},h.createElement("rect",{x:l-b/2,y:u-b/2,width:s+b,height:c+b}))),h.createElement(N0,{xAxisId:a,yAxisId:o,data:n,dataPointFormatter:m2,errorBarOffset:0},h.createElement(p2,{props:this.props,clipPathId:p}))),h.createElement(yM,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:P}))}}var G0={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:he.line,type:"linear"};function g2(e){var t=me(e,G0),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:u,dot:l,hide:s,isAnimationActive:c,label:f,legendType:d,xAxisId:v,yAxisId:m,id:p}=t,y=zs(t,r2),{needClip:g}=Ns(v,m),w=Ds(),b=In(),P=Te(),x=M(j=>QN(j,v,m,P,p));if(b!=="horizontal"&&b!=="vertical"||x==null||w==null)return null;var{height:O,width:S,x:_,y:I}=w;return h.createElement(y2,On({},y,{id:p,connectNulls:u,dot:l,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:c,hide:s,label:f,legendType:d,xAxisId:v,yAxisId:m,points:x,layout:b,height:O,width:S,left:_,top:I,needClip:g}))}function b2(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:u,displayedData:l}=e;return l.map((s,c)=>{var f=X(s,o);if(t==="horizontal"){var d=cd({axis:r,ticks:i,bandSize:u,entry:s,index:c}),v=oe(f)?null:n.scale(f);return{x:d,y:v,value:f,payload:s}}var m=oe(f)?null:r.scale(f),p=cd({axis:n,ticks:a,bandSize:u,entry:s,index:c});return m==null||p==null?null:{x:m,y:p,value:f,payload:s}}).filter(Boolean)}function w2(e){var t=me(e,G0),r=Te();return h.createElement(Ms,{id:t.id,type:"line"},n=>h.createElement(h.Fragment,null,h.createElement(k0,{legendPayload:u2(t)}),h.createElement(l2,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType}),h.createElement(T0,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),h.createElement(g2,On({},t,{id:n}))))}var x2=h.memo(w2,no);x2.displayName="Line";var P2=["domain","range"],O2=["domain","range"];function ip(e,t){if(e==null)return{};var r,n,i=A2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n{r.current===null?t(rM(e)):r.current!==e&&t(nM({prev:r.current,next:e})),r.current=e},[e,t]),h.useLayoutEffect(()=>()=>{r.current&&(t(iM(r.current)),r.current=null)},[t]),null}var k2=e=>{var{xAxisId:t,className:r}=e,n=M(ac),i=Te(),a="xAxis",o=M(y=>Yr(y,a,t,i)),u=M(y=>Dg(y,a,t,i)),l=M(y=>Ig(y,t)),s=M(y=>tC(y,t)),c=M(y=>fg(y,t));if(l==null||s==null||c==null)return null;var{dangerouslySetInnerHTML:f,ticks:d}=e,v=op(e,S2),{id:m}=c,p=op(c,E2);return h.createElement(Ls,Dl({},v,p,{scale:o,x:s.x,y:s.y,width:l.width,height:l.height,className:H("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:u,axisType:a}))},I2={allowDataOverflow:Pe.allowDataOverflow,allowDecimals:Pe.allowDecimals,allowDuplicatedCategory:Pe.allowDuplicatedCategory,angle:Pe.angle,axisLine:kt.axisLine,height:Pe.height,hide:!1,includeHidden:Pe.includeHidden,interval:Pe.interval,minTickGap:Pe.minTickGap,mirror:Pe.mirror,orientation:Pe.orientation,padding:Pe.padding,reversed:Pe.reversed,scale:Pe.scale,tick:Pe.tick,tickCount:Pe.tickCount,tickLine:kt.tickLine,tickSize:kt.tickSize,type:Pe.type,xAxisId:0},j2=e=>{var t=me(e,I2);return h.createElement(h.Fragment,null,h.createElement(C2,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),h.createElement(k2,t))},T2=h.memo(j2,X0);T2.displayName="XAxis";var M2=["dangerouslySetInnerHTML","ticks"],D2=["id"];function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{r.current===null?t(aM(e)):r.current!==e&&t(oM({prev:r.current,next:e})),r.current=e},[e,t]),h.useLayoutEffect(()=>()=>{r.current&&(t(uM(r.current)),r.current=null)},[t]),null}var $2=e=>{var{yAxisId:t,className:r,width:n,label:i}=e,a=h.useRef(null),o=h.useRef(null),u=M(ac),l=Te(),s=te(),c="yAxis",f=M(x=>Yr(x,c,t,l)),d=M(x=>jg(x,t)),v=M(x=>nC(x,t)),m=M(x=>Dg(x,c,t,l)),p=M(x=>dg(x,t));if(h.useLayoutEffect(()=>{if(!(n!=="auto"||!d||Os(i)||h.isValidElement(i)||p==null)){var x=a.current;if(x){var O=x.getCalculatedWidth();Math.round(d.width)!==Math.round(O)&&s(lM({id:t,width:O}))}}},[m,d,s,i,t,n,p]),d==null||v==null||p==null)return null;var{dangerouslySetInnerHTML:y,ticks:g}=e,w=up(e,M2),{id:b}=p,P=up(p,D2);return h.createElement(Ls,Nl({},w,P,{ref:a,labelRef:o,scale:f,x:v.x,y:v.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:d.width,height:d.height,className:H("recharts-".concat(c," ").concat(c),r),viewBox:u,ticks:m,axisType:c}))},L2={allowDataOverflow:Oe.allowDataOverflow,allowDecimals:Oe.allowDecimals,allowDuplicatedCategory:Oe.allowDuplicatedCategory,angle:Oe.angle,axisLine:kt.axisLine,hide:!1,includeHidden:Oe.includeHidden,interval:Oe.interval,minTickGap:Oe.minTickGap,mirror:Oe.mirror,orientation:Oe.orientation,padding:Oe.padding,reversed:Oe.reversed,scale:Oe.scale,tick:Oe.tick,tickCount:Oe.tickCount,tickLine:kt.tickLine,tickSize:kt.tickSize,type:Oe.type,width:Oe.width,yAxisId:0},z2=e=>{var t=me(e,L2);return h.createElement(h.Fragment,null,h.createElement(R2,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),h.createElement($2,t))},B2=h.memo(z2,X0);B2.displayName="YAxis";var F2=(e,t)=>t,Bs=A([F2,K,cg,we,Xg,Kt,bk,ge],Ek),Fs=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},Z0=at("mouseClick"),Q0=Cn();Q0.startListening({actionCreator:Z0,effect:(e,t)=>{var r=e.payload,n=Bs(t.getState(),Fs(r));n?.activeIndex!=null&&t.dispatch(yC({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Rl=at("mouseMove"),J0=Cn(),vi=null;J0.startListening({actionCreator:Rl,effect:(e,t)=>{var r=e.payload;vi!==null&&cancelAnimationFrame(vi);var n=Fs(r);vi=requestAnimationFrame(()=>{var i=t.getState(),a=fs(i,i.tooltip.settings.shared);if(a==="axis"){var o=Bs(i,n);o?.activeIndex!=null?t.dispatch(Kg({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch(Fg())}vi=null})}});var lp={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},eb=We({name:"rootProps",initialState:lp,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:lp.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),K2=eb.reducer,{updateOptions:W2}=eb.actions,tb=We({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:q2}=tb.actions,U2=tb.reducer,rb=at("keyDown"),nb=at("focus"),Ks=Cn();Ks.startListening({actionCreator:rb,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var o=ds(i,Gr(r),Wn(r),Yn(r)),u=o==null?-1:Number(o);if(!(!Number.isFinite(u)||u<0)){var l=Kt(r);if(a==="Enter"){var s=ra(r,"axis","hover",String(i.index));t.dispatch(_l({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:s}));return}var c=uC(r),f=c==="left-to-right"?1:-1,d=a==="ArrowRight"?1:-1,v=u+d*f;if(!(l==null||v>=l.length||v<0)){var m=ra(r,"axis","hover",String(v));t.dispatch(_l({active:!0,activeIndex:v.toString(),activeDataKey:void 0,activeCoordinate:m}))}}}}}});Ks.startListening({actionCreator:nb,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",o=ra(r,"axis","hover",String(a));t.dispatch(_l({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:o}))}}}});var rt=at("externalEvent"),ib=Cn(),Ru=new Map;ib.startListening({actionCreator:rt,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var i=n.type,a=Ru.get(i);a!==void 0&&cancelAnimationFrame(a);var o=requestAnimationFrame(()=>{try{var u=t.getState(),l={activeCoordinate:nk(u),activeDataKey:ys(u),activeIndex:Xt(u),activeLabel:Jg(u),activeTooltipIndex:Xt(u),isTooltipActive:ik(u)};r(l,n)}finally{Ru.delete(i)}});Ru.set(i,o)}}});var H2=A([Vr],e=>e.tooltipItemPayloads),Y2=A([H2,Un,(e,t,r)=>t,(e,t,r)=>r],(e,t,r,n)=>{var i=e.find(u=>u.settings.dataKey===n);if(i!=null){var{positions:a}=i;if(a!=null){var o=t(a,r);return o}}}),ab=at("touchMove"),ob=Cn();ob.startListening({actionCreator:ab,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),i=fs(n,n.tooltip.settings.shared);if(i==="axis"){var a=Bs(n,Fs({clientX:r.touches[0].clientX,clientY:r.touches[0].clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(Kg({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var o,u=r.touches[0];if(document.elementFromPoint==null)return;var l=document.elementFromPoint(u.clientX,u.clientY);if(!l||!l.getAttribute)return;var s=l.getAttribute(Tm),c=(o=l.getAttribute(Mm))!==null&&o!==void 0?o:void 0,f=Y2(t.getState(),s,c);t.dispatch(Bg({activeDataKey:c,activeIndex:s,activeCoordinate:f}))}}}});var V2=em({brush:QD,cartesianAxis:cM,chartData:nI,errorBars:kM,graphicalItems:hT,layout:AP,legend:TO,options:Qk,polarAxis:kj,polarOptions:U2,referenceElements:aN,rootProps:K2,tooltip:gC,zIndex:Bk}),G2=function(t){return Gx({reducer:V2,preloadedState:t,middleware:r=>{var n;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((n="es6")!==null&&n!==void 0?n:"")}).concat([Q0.middleware,J0.middleware,Ks.middleware,ib.middleware,ob.middleware])},enhancers:r=>{var n=r;return typeof r=="function"&&(n=r()),n.concat(pm({type:"raf"}))},devTools:Tn.devToolsEnabled})};function ub(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Te(),a=h.useRef(null);if(i)return r;a.current==null&&(a.current=G2(t));var o=Ql;return h.createElement(JM,{context:o,store:a.current},r)}function X2(e){var{layout:t,margin:r}=e,n=te(),i=Te();return h.useEffect(()=>{i||(n(xP(t)),n(wP(r)))},[n,i,t,r]),null}var lb=h.memo(X2,no);function cb(e){var t=te();return h.useEffect(()=>{t(W2(e))},[t,e]),null}function cp(e){var{zIndex:t,isPanorama:r}=e,n=r?"recharts-zindex-panorama-":"recharts-zindex-",i=I0("".concat(n).concat(t)),a=te();return h.useLayoutEffect(()=>(a(Lk({zIndex:t,elementId:i,isPanorama:r})),()=>{a(zk({zIndex:t,isPanorama:r}))}),[a,t,i,r]),h.createElement("g",{tabIndex:-1,id:i})}function sp(e){var{children:t,isPanorama:r}=e,n=M(Ck);if(!n||n.length===0)return t;var i=n.filter(o=>o<0),a=n.filter(o=>o>0);return h.createElement(h.Fragment,null,i.map(o=>h.createElement(cp,{key:o,zIndex:o,isPanorama:r})),t,a.map(o=>h.createElement(cp,{key:o,zIndex:o,isPanorama:r})))}var Z2=["children"];function Q2(e,t){if(e==null)return{};var r,n,i=J2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n{var r=uc(),n=lc(),i=Gm();if(!wt(r)||!wt(n))return null;var{children:a,otherAttributes:o,title:u,desc:l}=e,s,c;return o!=null&&(typeof o.tabIndex=="number"?s=o.tabIndex:s=i?0:void 0,typeof o.role=="string"?c=o.role:c=i?"application":void 0),h.createElement(Fl,fa({},o,{title:u,desc:l,role:c,tabIndex:s,width:r,height:n,style:eR,ref:t}),a)}),rR=e=>{var{children:t}=e,r=M(ka);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return h.createElement(Fl,{width:n,height:i,x:o,y:a},t)},fp=h.forwardRef((e,t)=>{var{children:r}=e,n=Q2(e,Z2),i=Te();return i?h.createElement(rR,null,h.createElement(sp,{isPanorama:!0},r)):h.createElement(tR,fa({ref:t},n),h.createElement(sp,{isPanorama:!1},r))});function nR(){var e=te(),[t,r]=h.useState(null),n=M(KP);return h.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;fe(a)&&a!==n&&e(OP(a))}},[t,e,n]),r}function dp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iR(e){for(var t=1;t(dI(),null);function da(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var cR=h.forwardRef((e,t)=>{var r,n,i=h.useRef(null),[a,o]=h.useState({containerWidth:da((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:da((n=e.style)===null||n===void 0?void 0:n.height)}),u=h.useCallback((s,c)=>{o(f=>{var d=Math.round(s),v=Math.round(c);return f.containerWidth===d&&f.containerHeight===v?f:{containerWidth:d,containerHeight:v}})},[]),l=h.useCallback(s=>{if(typeof t=="function"&&t(s),s!=null&&typeof ResizeObserver<"u"){var{width:c,height:f}=s.getBoundingClientRect();u(c,f);var d=m=>{var{width:p,height:y}=m[0].contentRect;u(p,y)},v=new ResizeObserver(d);v.observe(s),i.current=v}},[t,u]);return h.useEffect(()=>()=>{var s=i.current;s?.disconnect()},[u]),h.createElement(h.Fragment,null,h.createElement(ja,{width:a.containerWidth,height:a.containerHeight}),h.createElement("div",xr({ref:l},e)))}),sR=h.forwardRef((e,t)=>{var{width:r,height:n}=e,[i,a]=h.useState({containerWidth:da(r),containerHeight:da(n)}),o=h.useCallback((l,s)=>{a(c=>{var f=Math.round(l),d=Math.round(s);return c.containerWidth===f&&c.containerHeight===d?c:{containerWidth:f,containerHeight:d}})},[]),u=h.useCallback(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:s,height:c}=l.getBoundingClientRect();o(s,c)}},[t,o]);return h.createElement(h.Fragment,null,h.createElement(ja,{width:i.containerWidth,height:i.containerHeight}),h.createElement("div",xr({ref:u},e)))}),fR=h.forwardRef((e,t)=>{var{width:r,height:n}=e;return h.createElement(h.Fragment,null,h.createElement(ja,{width:r,height:n}),h.createElement("div",xr({ref:t},e)))}),dR=h.forwardRef((e,t)=>{var{width:r,height:n}=e;return It(r)||It(n)?h.createElement(sR,xr({},e,{ref:t})):h.createElement(fR,xr({},e,{ref:t}))});function vR(e){return e===!0?cR:dR}var hR=h.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:u,onMouseDown:l,onMouseEnter:s,onMouseLeave:c,onMouseMove:f,onMouseUp:d,onTouchEnd:v,onTouchMove:m,onTouchStart:p,style:y,width:g,responsive:w,dispatchTouchEvents:b=!0}=e,P=h.useRef(null),x=te(),[O,S]=h.useState(null),[_,I]=h.useState(null),j=nR(),T=oc(),E=T?.width>0?T.width:g,$=T?.height>0?T.height:i,R=h.useCallback(C=>{j(C),typeof t=="function"&&t(C),S(C),I(C),C!=null&&(P.current=C)},[j,t,S,I]),L=h.useCallback(C=>{x(Z0(C)),x(rt({handler:a,reactEvent:C}))},[x,a]),q=h.useCallback(C=>{x(Rl(C)),x(rt({handler:s,reactEvent:C}))},[x,s]),B=h.useCallback(C=>{x(Fg()),x(rt({handler:c,reactEvent:C}))},[x,c]),W=h.useCallback(C=>{x(Rl(C)),x(rt({handler:f,reactEvent:C}))},[x,f]),z=h.useCallback(()=>{x(nb())},[x]),Q=h.useCallback(C=>{x(rb(C.key))},[x]),Me=h.useCallback(C=>{x(rt({handler:o,reactEvent:C}))},[x,o]),Le=h.useCallback(C=>{x(rt({handler:u,reactEvent:C}))},[x,u]),Pt=h.useCallback(C=>{x(rt({handler:l,reactEvent:C}))},[x,l]),Je=h.useCallback(C=>{x(rt({handler:d,reactEvent:C}))},[x,d]),nr=h.useCallback(C=>{x(rt({handler:p,reactEvent:C}))},[x,p]),Xr=h.useCallback(C=>{b&&x(ab(C)),x(rt({handler:m,reactEvent:C}))},[x,b,m]),ze=h.useCallback(C=>{x(rt({handler:v,reactEvent:C}))},[x,v]),io=vR(w);return h.createElement(o0.Provider,{value:O},h.createElement(yp.Provider,{value:_},h.createElement(io,{width:E??y?.width,height:$??y?.height,className:H("recharts-wrapper",n),style:iR({position:"relative",cursor:"default",width:E,height:$},y),onClick:L,onContextMenu:Me,onDoubleClick:Le,onFocus:z,onKeyDown:Q,onMouseDown:Pt,onMouseEnter:q,onMouseLeave:B,onMouseMove:W,onMouseUp:Je,onTouchEnd:ze,onTouchMove:Xr,onTouchStart:nr,ref:R},h.createElement(lR,null),r)))}),pR=["width","height","responsive","children","className","style","compact","title","desc"];function mR(e,t){if(e==null)return{};var r,n,i=yR(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n{var{width:r,height:n,responsive:i,children:a,className:o,style:u,compact:l,title:s,desc:c}=e,f=mR(e,pR),d=Ze(f);return l?h.createElement(h.Fragment,null,h.createElement(ja,{width:r,height:n}),h.createElement(fp,{otherAttributes:d,title:s,desc:c},a)):h.createElement(hR,{className:o,style:u,width:r,height:n,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},h.createElement(fp,{otherAttributes:d,title:s,desc:c,ref:t},h.createElement(uN,null,a)))});function $l(){return $l=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(fb,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:wR,tooltipPayloadSearcher:Ps,categoricalChartProps:e,ref:t})),xR=["axis","item"],o$=h.forwardRef((e,t)=>h.createElement(fb,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:xR,tooltipPayloadSearcher:Ps,categoricalChartProps:e,ref:t}));function PR(e){var t=te();return h.useEffect(()=>{t(q2(e))},[t,e]),null}var OR=["layout"];function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=me(e,TR);return h.createElement(_R,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:jR,tooltipPayloadSearcher:Ps,categoricalChartProps:r,ref:t})});export{o$ as B,YN as C,HO as L,u$ as P,RR as R,FR as T,T2 as X,B2 as Y,dv as a,XA as b,bn as c,LR as d,$R as e,zR as f,a$ as g,x2 as h,pt as i,SD as j,KT as k,Qa as l}; diff --git a/dashboard/dist/assets/checkbox-DWiVrbnx.js b/dashboard/dist/assets/checkbox-DWiVrbnx.js new file mode 100644 index 00000000..66a1c0db --- /dev/null +++ b/dashboard/dist/assets/checkbox-DWiVrbnx.js @@ -0,0 +1 @@ +import{r as c,j as e}from"./router-zNjPR4CY.js";import{aE as a,aF as i}from"./radix-C-ZuImoP.js";import{g as r}from"./index-CuOHsLf7.js";import{b as n}from"./icons-DTcdLw9j.js";const d=c.forwardRef(({className:s,...o},t)=>e.jsx(a,{ref:t,className:r("grid place-content-center peer h-4 w-4 shrink-0 cursor-pointer rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...o,children:e.jsx(i,{className:r("grid place-content-center text-current"),children:e.jsx(n,{className:"h-4 w-4"})})}));d.displayName=a.displayName;export{d as C}; diff --git a/dashboard/dist/assets/codemirror-DTQUzpPo.js b/dashboard/dist/assets/codemirror-DTQUzpPo.js new file mode 100644 index 00000000..3ffdd205 --- /dev/null +++ b/dashboard/dist/assets/codemirror-DTQUzpPo.js @@ -0,0 +1,16 @@ +import{r as be,j as Iu}from"./router-zNjPR4CY.js";const vh=1024;let Nu=0,Vs=class{constructor(e,t){this.from=e,this.to=t}};class L{constructor(e={}){this.id=Nu++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=we.match(e)),t=>{let i=e(t);return i===void 0?null:[this,i]}}}L.closedBy=new L({deserialize:n=>n.split(" ")});L.openedBy=new L({deserialize:n=>n.split(" ")});L.group=new L({deserialize:n=>n.split(" ")});L.isolate=new L({deserialize:n=>{if(n&&n!="rtl"&&n!="ltr"&&n!="auto")throw new RangeError("Invalid value for isolate: "+n);return n||"auto"}});L.contextHash=new L({perNode:!0});L.lookAhead=new L({perNode:!0});L.mounted=new L({perNode:!0});class Di{constructor(e,t,i,s=!1){this.tree=e,this.overlay=t,this.parser=i,this.bracketed=s}static get(e){return e&&e.props&&e.props[L.mounted.id]}}const Vu=Object.create(null);class we{constructor(e,t,i,s=0){this.name=e,this.props=t,this.id=i,this.flags=s}static define(e){let t=e.props&&e.props.length?Object.create(null):Vu,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),s=new we(e.name||"",t,e.id,i);if(e.props){for(let r of e.props)if(Array.isArray(r)||(r=r(s)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}}return s}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(L.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let s of i.split(" "))t[s]=e[i];return i=>{for(let s=i.prop(L.group),r=-1;r<(s?s.length:0);r++){let o=t[r<0?i.name:s[r]];if(o)return o}}}}we.none=new we("",Object.create(null),0,8);class vs{constructor(e){this.types=e;for(let t=0;t0;for(let a=this.cursor(o|Y.IncludeAnonymous);;){let h=!1;if(a.from<=r&&a.to>=s&&(!l&&a.type.isAnonymous||t(a)!==!1)){if(a.firstChild())continue;h=!0}for(;h&&i&&(l||!a.type.isAnonymous)&&i(a),!a.nextSibling();){if(!a.parent())return;h=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:vo(we.none,this.children,this.positions,0,this.children.length,0,this.length,(t,i,s)=>new U(this.type,t,i,s,this.propValues),e.makeTree||((t,i,s)=>new U(we.none,t,i,s)))}static build(e){return Uu(e)}}U.empty=new U(we.none,[],[],0);class ko{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new ko(this.buffer,this.index)}}class vt{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return we.none}toString(){let e=[];for(let t=0;t0));a=o[a+3]);return l}slice(e,t,i){let s=this.buffer,r=new Uint16Array(t-e),o=0;for(let l=e,a=0;l=e&&te;case 1:return t<=e&&i>e;case 2:return i>e;case 4:return!0}}function Ii(n,e,t,i){for(var s;n.from==n.to||(t<1?n.from>=e:n.from>e)||(t>-1?n.to<=e:n.to0?l.length:-1;e!=h;e+=t){let c=l[e],f=a[e]+o.from,u;if(!(!(r&Y.EnterBracketed&&c instanceof U&&(u=Di.get(c))&&!u.overlay&&u.bracketed&&i>=f&&i<=f+c.length)&&!Th(s,i,f,f+c.length))){if(c instanceof vt){if(r&Y.ExcludeBuffers)continue;let d=c.findChild(0,c.buffer.length,t,i-f,s);if(d>-1)return new et(new Xu(o,c,e,f),null,d)}else if(r&Y.IncludeAnonymous||!c.type.isAnonymous||wo(c)){let d;if(!(r&Y.IgnoreMounts)&&(d=Di.get(c))&&!d.overlay)return new Pe(d.tree,f,e,o);let p=new Pe(c,f,e,o);return r&Y.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(t<0?c.children.length-1:0,t,i,s,r)}}}if(r&Y.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+t:e=t<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,i=0){let s;if(!(i&Y.IgnoreOverlays)&&(s=Di.get(this._tree))&&s.overlay){let r=e-this.from,o=i&Y.EnterBracketed&&s.bracketed;for(let{from:l,to:a}of s.overlay)if((t>0||o?l<=r:l=r:a>r))return new Pe(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function yl(n,e,t,i){let s=n.cursor(),r=[];if(!s.firstChild())return r;if(t!=null){for(let o=!1;!o;)if(o=s.type.is(t),!s.nextSibling())return r}for(;;){if(i!=null&&s.type.is(i))return r;if(s.type.is(e)&&r.push(s.node),!s.nextSibling())return i==null?r:[]}}function Qr(n,e,t=e.length-1){for(let i=n;t>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[t]&&e[t]!=i.name)return!1;t--}}return!0}class Xu{constructor(e,t,i,s){this.parent=e,this.buffer=t,this.index=i,this.start=s}}class et extends Ch{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.context.start,i);return r<0?null:new et(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,i=0){if(i&Y.ExcludeBuffers)return null;let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new et(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new et(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new et(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,s=this.index+4,r=i.buffer[this.index+3];if(r>s){let o=i.buffer[this.index+1];e.push(i.slice(s,r,o)),t.push(0)}return new U(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Qh(n){if(!n.length)return null;let e=0,t=n[0];for(let r=1;rt.from||o.to=e){let l=new Pe(o.tree,o.overlay[0].from+r.from,-1,r);(s||(s=[i])).push(Ii(l,e,t,!1))}}return s?Qh(s):i}class Pr{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~Y.EnterBracketed,e instanceof Pe)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:i,buffer:s}=this.buffer;return this.type=t||s.set.types[s.buffer[e]],this.from=i+s.buffer[e+1],this.to=i+s.buffer[e+2],!0}yield(e){return e?e instanceof Pe?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:s}=this.buffer,r=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.buffer.start,i);return r<0?!1:(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?i&Y.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Y.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Y.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let s=i<0?0:this.stack[i]+4;if(this.index!=s)return this.yieldBuf(t.findChild(s,this.index,-1,0,4))}else{let s=t.buffer[this.index+3];if(s<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(s)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:s}=this;if(s){if(e>0){if(this.index-1)for(let r=t+e,o=e<0?-1:i._tree.children.length;r!=o;r+=e){let l=i._tree.children[r];if(this.mode&Y.IncludeAnonymous||l instanceof vt||!l.type.isAnonymous||wo(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==s){if(s==this.index)return o;t=o,i=r+1;break e}s=this.stack[--r]}for(let s=i;s=0;r--){if(r<0)return Qr(this._tree,e,s);let o=i[t.buffer[this.stack[r]]];if(!o.isAnonymous){if(e[s]&&e[s]!=o.name)return!1;s--}}return!0}}function wo(n){return n.children.some(e=>e instanceof vt||!e.type.isAnonymous||wo(e))}function Uu(n){var e;let{buffer:t,nodeSet:i,maxBufferLength:s=vh,reused:r=[],minRepeatType:o=i.types.length}=n,l=Array.isArray(t)?new ko(t,t.length):t,a=i.types,h=0,c=0;function f(k,w,v,E,R,I){let{id:q,start:D,end:B,size:$}=l,X=c,ne=h;if($<0)if(l.next(),$==-1){let he=r[q];v.push(he),E.push(D-k);return}else if($==-3){h=q;return}else if($==-4){c=q;return}else throw new RangeError(`Unrecognized record size: ${$}`);let re=a[q],me,F,te=D-k;if(B-D<=s&&(F=g(l.pos-w,R))){let he=new Uint16Array(F.size-F.skip),ge=l.pos-F.size,Ue=he.length;for(;l.pos>ge;)Ue=y(F.start,he,Ue);me=new vt(he,B-F.start,i),te=F.start-k}else{let he=l.pos-$;l.next();let ge=[],Ue=[],Et=q>=o?q:-1,Yt=0,yn=B;for(;l.pos>he;)Et>=0&&l.id==Et&&l.size>=0?(l.end<=yn-s&&(p(ge,Ue,D,Yt,l.end,yn,Et,X,ne),Yt=ge.length,yn=l.end),l.next()):I>2500?u(D,he,ge,Ue):f(D,he,ge,Ue,Et,I+1);if(Et>=0&&Yt>0&&Yt-1&&Yt>0){let gl=d(re,ne);me=vo(re,ge,Ue,0,ge.length,0,B-D,gl,gl)}else me=m(re,ge,Ue,B-D,X-B,ne)}v.push(me),E.push(te)}function u(k,w,v,E){let R=[],I=0,q=-1;for(;l.pos>w;){let{id:D,start:B,end:$,size:X}=l;if(X>4)l.next();else{if(q>-1&&B=0;$-=3)D[X++]=R[$],D[X++]=R[$+1]-B,D[X++]=R[$+2]-B,D[X++]=X;v.push(new vt(D,R[2]-B,i)),E.push(B-k)}}function d(k,w){return(v,E,R)=>{let I=0,q=v.length-1,D,B;if(q>=0&&(D=v[q])instanceof U){if(!q&&D.type==k&&D.length==R)return D;(B=D.prop(L.lookAhead))&&(I=E[q]+D.length+B)}return m(k,v,E,R,I,w)}}function p(k,w,v,E,R,I,q,D,B){let $=[],X=[];for(;k.length>E;)$.push(k.pop()),X.push(w.pop()+v-R);k.push(m(i.types[q],$,X,I-R,D-I,B)),w.push(R-v)}function m(k,w,v,E,R,I,q){if(I){let D=[L.contextHash,I];q=q?[D].concat(q):[D]}if(R>25){let D=[L.lookAhead,R];q=q?[D].concat(q):[D]}return new U(k,w,v,E,q)}function g(k,w){let v=l.fork(),E=0,R=0,I=0,q=v.end-s,D={size:0,start:0,skip:0};e:for(let B=v.pos-k;v.pos>B;){let $=v.size;if(v.id==w&&$>=0){D.size=E,D.start=R,D.skip=I,I+=4,E+=4,v.next();continue}let X=v.pos-$;if($<0||X=o?4:0,re=v.start;for(v.next();v.pos>X;){if(v.size<0)if(v.size==-3||v.size==-4)ne+=4;else break e;else v.id>=o&&(ne+=4);v.next()}R=re,E+=$,I+=ne}return(w<0||E==k)&&(D.size=E,D.start=R,D.skip=I),D.size>4?D:void 0}function y(k,w,v){let{id:E,start:R,end:I,size:q}=l;if(l.next(),q>=0&&E4){let B=l.pos-(q-4);for(;l.pos>B;)v=y(k,w,v)}w[--v]=D,w[--v]=I-k,w[--v]=R-k,w[--v]=E}else q==-3?h=E:q==-4&&(c=E);return v}let x=[],S=[];for(;l.pos>0;)f(n.start||0,n.bufferStart||0,x,S,-1,0);let A=(e=n.length)!==null&&e!==void 0?e:x.length?S[0]+x[0].length:0;return new U(a[n.topID],x.reverse(),S.reverse(),A)}const bl=new WeakMap;function Xn(n,e){if(!n.isAnonymous||e instanceof vt||e.type!=n)return 1;let t=bl.get(e);if(t==null){t=1;for(let i of e.children){if(i.type!=n||!(i instanceof U)){t=1;break}t+=Xn(n,i)}bl.set(e,t)}return t}function vo(n,e,t,i,s,r,o,l,a){let h=0;for(let p=i;p=c)break;w+=v}if(S==A+1){if(w>c){let v=p[A];d(v.children,v.positions,0,v.children.length,m[A]+x);continue}f.push(p[A])}else{let v=m[S-1]+p[S-1].length-k;f.push(vo(n,p,m,A,S,k,v,null,a))}u.push(k+x-r)}}return d(e,t,i,s,0),(l||a)(f,u,o)}class Hu{constructor(){this.map=new WeakMap}setBuffer(e,t,i){let s=this.map.get(e);s||this.map.set(e,s=new Map),s.set(t,i)}getBuffer(e,t){let i=this.map.get(e);return i&&i.get(t)}set(e,t){e instanceof et?this.setBuffer(e.context.buffer,e.index,t):e instanceof Pe&&this.map.set(e.tree,t)}get(e){return e instanceof et?this.getBuffer(e.context.buffer,e.index):e instanceof Pe?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Vt{constructor(e,t,i,s,r=!1,o=!1){this.from=e,this.to=t,this.tree=i,this.offset=s,this.open=(r?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],i=!1){let s=[new Vt(0,e.length,e,0,!1,i)];for(let r of t)r.to>e.length&&s.push(r);return s}static applyChanges(e,t,i=128){if(!t.length)return e;let s=[],r=1,o=e.length?e[0]:null;for(let l=0,a=0,h=0;;l++){let c=l=i)for(;o&&o.from=u.from||f<=u.to||h){let d=Math.max(u.from,a)-h,p=Math.min(u.to,f)-h;u=d>=p?null:new Vt(d,p,u.tree,u.offset+h,l>0,!!c)}if(u&&s.push(u),o.to>f)break;o=rnew Vs(s.from,s.to)):[new Vs(0,0)]:[new Vs(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let s=this.startParse(e,t,i);for(;;){let r=s.advance();if(r)return r}}}class ju{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new L({perNode:!0});var xl={};class es{constructor(e,t,i,s,r,o,l,a,h,c=0,f){this.p=e,this.stack=t,this.state=i,this.reducePos=s,this.pos=r,this.score=o,this.buffer=l,this.bufferBase=a,this.curContext=h,this.lookAhead=c,this.parent=f}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,i=0){let s=e.parser.context;return new es(e,[],t,i,i,0,[],0,s?new Sl(s,s.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let i=e>>19,s=e&65535,{parser:r}=this.p,o=this.reducePos=2e3&&!(!((t=this.p.parser.nodeSet.types[s])===null||t===void 0)&&t.isAnonymous)&&(h==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSizea;)this.stack.pop();this.reduceContext(s,h)}storeNode(e,t,i,s=4,r=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&o.buffer[l-4]==0&&o.buffer[l-1]>-1){if(t==i)return;if(o.buffer[l-2]>=t){o.buffer[l-2]=i;return}}}if(!r||this.pos==i)this.buffer.push(e,t,i,s);else{let o=this.buffer.length;if(o>0&&(this.buffer[o-4]!=0||this.buffer[o-1]<0)){let l=!1;for(let a=o;a>0&&this.buffer[a-2]>i;a-=4)if(this.buffer[a-1]>=0){l=!0;break}if(l)for(;o>0&&this.buffer[o-2]>i;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,s>4&&(s-=4)}this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=i,this.buffer[o+3]=s}}shift(e,t,i,s){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let r=e,{parser:o}=this.p;this.pos=s;let l=o.stateFlag(r,1);!l&&(s>i||t<=o.maxNode)&&(this.reducePos=s),this.pushState(r,l?i:Math.min(i,this.reducePos)),this.shiftContext(t,i),t<=o.maxNode&&this.buffer.push(t,i,s,4)}else this.pos=s,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,s,4)}apply(e,t,i,s){e&65536?this.reduce(e):this.shift(e,t,i,s)}useNode(e,t){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let s=this.pos;this.reducePos=this.pos=s+e.length,this.pushState(t,s),this.buffer.push(i,s,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let i=e.buffer.slice(t),s=e.bufferBase+t;for(;e&&s==e.bufferBase;)e=e.parent;return new es(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,s,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,i?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new Gu(this);;){let i=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(i==0)return!1;if((i&65536)==0)return!0;t.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let s=[];for(let r=0,o;ra&1&&l==o)||s.push(t[r],o)}t=s}let i=[];for(let s=0;s>19,s=t&65535,r=this.stack.length-i*3;if(r<0||e.getGoto(this.stack[r],s,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;t=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],i=(s,r)=>{if(!t.includes(s))return t.push(s),e.allActions(s,o=>{if(!(o&393216))if(o&65536){let l=(o>>19)-r;if(l>1){let a=o&65535,h=this.stack.length-l*3;if(h>=0&&e.getGoto(this.stack[h],a,!1)>=0)return l<<19|65536|a}}else{let l=i(o,r+1);if(l!=null)return l}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t0&&this.emitLookAhead()}}class Sl{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class Gu{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let s=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=s}}class ts{constructor(e,t,i){this.stack=e,this.pos=t,this.index=i,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new ts(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new ts(this.stack,this.pos,this.index)}}function Pi(n,e=Uint16Array){if(typeof n!="string")return n;let t=null;for(let i=0,s=0;i=92&&o--,o>=34&&o--;let a=o-32;if(a>=46&&(a-=46,l=!0),r+=a,l)break;r*=46}t?t[s++]=r:t=new e(r)}return t}class Fn{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const kl=new Fn;class Zu{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=kl,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let i=this.range,s=this.rangeIndex,r=this.pos+e;for(;ri.to:r>=i.to;){if(s==this.ranges.length-1)return null;let o=this.ranges[++s];r+=o.from-i.to,i=o}return r}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,i,s;if(t>=0&&t=this.chunk2Pos&&il.to&&(this.chunk2=this.chunk2.slice(0,l.to-i)),s=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),s}acceptToken(e,t=0){let i=t?this.resolveOffset(t,-1):this.pos;if(i==null||i=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=kl,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let i="";for(let s of this.ranges){if(s.from>=t)break;s.to>e&&(i+=this.input.read(Math.max(s.from,e),Math.min(s.to,t)))}return i}}class si{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:i}=t.p;Ph(this.data,e,t,this.id,i.data,i.tokenPrecTable)}}si.prototype.contextual=si.prototype.fallback=si.prototype.extend=!1;class Yu{constructor(e,t,i){this.precTable=t,this.elseToken=i,this.data=typeof e=="string"?Pi(e):e}token(e,t){let i=e.pos,s=0;for(;;){let r=e.next<0,o=e.resolveOffset(1,1);if(Ph(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(r||s++,o==null)break;e.reset(o,e.token)}s&&(e.reset(i,e.token),e.acceptToken(this.elseToken,s))}}Yu.prototype.contextual=si.prototype.fallback=si.prototype.extend=!1;class Ts{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function Ph(n,e,t,i,s,r){let o=0,l=1<0){let p=n[d];if(a.allows(p)&&(e.token.value==-1||e.token.value==p||Ku(p,e.token.value,s,r))){e.acceptToken(p);break}}let c=e.next,f=0,u=n[o+2];if(e.next<0&&u>f&&n[h+u*3-3]==65535){o=n[h+u*3-1];continue e}for(;f>1,p=h+d+(d<<1),m=n[p],g=n[p+1]||65536;if(c=g)f=d+1;else{o=n[p+2],e.advance();continue e}}break}}function wl(n,e,t){for(let i=e,s;(s=n[i])!=65535;i++)if(s==t)return i-e;return-1}function Ku(n,e,t,i){let s=wl(t,i,e);return s<0||wl(t,i,n)e)&&!i.type.isError)return t<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(n.length,Math.max(i.from+1,e+25));if(t<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return t<0?0:n.length}}class Ju{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?vl(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?vl(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=o,null;if(r instanceof U){if(o==e){if(o=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+r.length}}}class ed{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new Fn)}getActions(e){let t=0,i=null,{parser:s}=e.p,{tokenizers:r}=s,o=s.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,a=0;for(let h=0;hf.end+25&&(a=Math.max(f.lookAhead,a)),f.value!=0)){let u=t;if(f.extended>-1&&(t=this.addActions(e,f.extended,f.end,t)),t=this.addActions(e,f.value,f.end,t),!c.extend&&(i=f,t>u))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),!i&&e.pos==this.stream.end&&(i=new Fn,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,t=this.addActions(e,i.value,i.end,t)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Fn,{pos:i,p:s}=e;return t.start=i,t.end=Math.min(i+1,s.stream.end),t.value=i==s.stream.end?s.parser.eofTerm:0,t}updateCachedToken(e,t,i){let s=this.stream.clipPos(i.pos);if(t.token(this.stream.reset(s,e),i),e.value>-1){let{parser:r}=i.p;for(let o=0;o=0&&i.p.parser.dialect.allows(l>>1)){(l&1)==0?e.value=l>>1:e.extended=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(s+1)}putAction(e,t,i,s){for(let r=0;re.bufferLength*4?new Ju(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,i=this.stacks=[],s,r;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;ot)i.push(l);else{if(this.advanceStack(l,i,e))continue;{s||(s=[],r=[]),s.push(l);let a=this.tokens.getMainToken(l);r.push(a.value,a.end)}}break}}if(!i.length){let o=s&&sd(s);if(o)return Re&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw Re&&s&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&s){let o=this.stoppedAt!=null&&s[0].pos>this.stoppedAt?s[0]:this.runRecovery(s,r,i);if(o)return Re&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(i.length>o)for(i.sort((l,a)=>a.score-l.score);i.length>o;)i.pop();i.some(l=>l.reducePos>t)&&this.recovering--}else if(i.length>1){e:for(let o=0;o500&&h.buffer.length>500)if((l.score-h.score||l.buffer.length-h.buffer.length)>0)i.splice(a--,1);else{i.splice(o--,1);continue e}}}i.length>12&&(i.sort((o,l)=>l.score-o.score),i.splice(12,i.length-12))}this.minStackPos=i[0].pos;for(let o=1;o ":"";if(this.stoppedAt!=null&&s>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let h=e.curContext&&e.curContext.tracker.strict,c=h?e.curContext.hash:0;for(let f=this.fragments.nodeAt(s);f;){let u=this.parser.nodeSet.types[f.type.id]==f.type?r.getGoto(e.state,f.type.id):-1;if(u>-1&&f.length&&(!h||(f.prop(L.contextHash)||0)==c))return e.useNode(f,u),Re&&console.log(o+this.stackID(e)+` (via reuse of ${r.getName(f.type.id)})`),!0;if(!(f instanceof U)||f.children.length==0||f.positions[0]>0)break;let d=f.children[0];if(d instanceof U&&f.positions[0]==0)f=d;else break}}let l=r.stateSlot(e.state,4);if(l>0)return e.reduce(l),Re&&console.log(o+this.stackID(e)+` (via always-reduce ${r.getName(l&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let h=0;hs?t.push(p):i.push(p)}return!1}advanceFully(e,t){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return Tl(e,t),!0}}runRecovery(e,t,i){let s=null,r=!1;for(let o=0;o ":"";if(l.deadEnd&&(r||(r=!0,l.restart(),Re&&console.log(c+this.stackID(l)+" (restarted)"),this.advanceFully(l,i))))continue;let f=l.split(),u=c;for(let d=0;d<10&&f.forceReduce()&&(Re&&console.log(u+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,i));d++)Re&&(u=this.stackID(f)+" -> ");for(let d of l.recoverByInsert(a))Re&&console.log(c+this.stackID(d)+" (via recover-insert)"),this.advanceFully(d,i);this.stream.end>l.pos?(h==l.pos&&(h++,a=0),l.recoverByDelete(a,h),Re&&console.log(c+this.stackID(l)+` (via recover-delete ${this.parser.getName(a)})`),Tl(l,i)):(!s||s.scoren;class nd{constructor(e){this.start=e.start,this.shift=e.shift||Fs,this.reduce=e.reduce||Fs,this.reuse=e.reuse||Fs,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Ni extends To{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;le.topRules[l][1]),s=[];for(let l=0;l=0)r(c,a,l[h++]);else{let f=l[h+-c];for(let u=-c;u>0;u--)r(l[h++],a,f);h++}}}this.nodeSet=new vs(t.map((l,a)=>we.define({name:a>=this.minRepeatTerm?void 0:l,id:a,props:s[a],top:i.indexOf(a)>-1,error:a==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(a)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=vh;let o=Pi(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;ltypeof l=="number"?new si(o,l):l),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,i){let s=new td(this,e,t,i);for(let r of this.wrappers)s=r(s,e,t,i);return s}getGoto(e,t,i=!1){let s=this.goto;if(t>=s[0])return-1;for(let r=s[t+1];;){let o=s[r++],l=o&1,a=s[r++];if(l&&i)return a;for(let h=r+(o>>1);r0}validAction(e,t){return!!this.allActions(e,i=>i==t?!0:null)}allActions(e,t){let i=this.stateSlot(e,4),s=i?t(i):void 0;for(let r=this.stateSlot(e,1);s==null;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=dt(this.data,r+2);else break;s=t(dt(this.data,r+1))}return s}nextStates(e){let t=[];for(let i=this.stateSlot(e,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=dt(this.data,i+2);else break;if((this.data[i+2]&1)==0){let s=this.data[i+1];t.some((r,o)=>o&1&&r==s)||t.push(this.data[i],s)}}return t}configure(e){let t=Object.assign(Object.create(Ni.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=i}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(i=>{let s=e.tokenizers.find(r=>r.from==i);return s?s.to:i})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((i,s)=>{let r=e.specializers.find(l=>l.from==i.external);if(!r)return i;let o=Object.assign(Object.assign({},i),{external:r.to});return t.specializers[s]=Cl(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),i=t.map(()=>!1);if(e)for(let r of e.split(" ")){let o=t.indexOf(r);o>=0&&(i[o]=!0)}let s=null;for(let r=0;ri)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.scoren.external(t,i)<<1|e}return n.get}let rd=0;class We{constructor(e,t,i,s){this.name=e,this.set=t,this.base=i,this.modified=s,this.id=rd++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let i=typeof e=="string"?e:"?";if(e instanceof We&&(t=e),t?.base)throw new Error("Can not derive from a modified tag");let s=new We(i,[],null,[]);if(s.set.push(s),t)for(let r of t.set)s.set.push(r);return s}static defineModifier(e){let t=new is(e);return i=>i.modified.indexOf(t)>-1?i:is.get(i.base||i,i.modified.concat(t).sort((s,r)=>s.id-r.id))}}let od=0;class is{constructor(e){this.name=e,this.instances=[],this.id=od++}static get(e,t){if(!t.length)return e;let i=t[0].instances.find(l=>l.base==e&&ld(t,l.modified));if(i)return i;let s=[],r=new We(e.name,s,e,t);for(let l of t)l.instances.push(r);let o=ad(t);for(let l of e.set)if(!l.modified.length)for(let a of o)s.push(is.get(l,a));return r}}function ld(n,e){return n.length==e.length&&n.every((t,i)=>t==e[i])}function ad(n){let e=[[]];for(let t=0;ti.length-t.length)}function Co(n){let e=Object.create(null);for(let t in n){let i=n[t];Array.isArray(i)||(i=[i]);for(let s of t.split(" "))if(s){let r=[],o=2,l=s;for(let f=0;;){if(l=="..."&&f>0&&f+3==s.length){o=1;break}let u=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!u)throw new RangeError("Invalid path: "+s);if(r.push(u[0]=="*"?"":u[0][0]=='"'?JSON.parse(u[0]):u[0]),f+=u[0].length,f==s.length)break;let d=s[f++];if(f==s.length&&d=="!"){o=0;break}if(d!="/")throw new RangeError("Invalid path: "+s);l=s.slice(f)}let a=r.length-1,h=r[a];if(!h)throw new RangeError("Invalid path: "+s);let c=new Vi(i,o,a>0?r.slice(0,a):null);e[h]=c.sort(e[h])}}return Ah.add(e)}const Ah=new L({combine(n,e){let t,i,s;for(;n||e;){if(!n||e&&n.depth>=e.depth?(s=e,e=e.next):(s=n,n=n.next),t&&t.mode==s.mode&&!s.context&&!t.context)continue;let r=new Vi(s.tags,s.mode,s.context);t?t.next=r:i=r,t=r}return i}});class Vi{constructor(e,t,i,s){this.tags=e,this.mode=t,this.context=i,this.next=s}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let o=s;for(let l of r)for(let a of l.set){let h=t[a.id];if(h){o=o?o+" "+h:h;break}}return o},scope:i}}function hd(n,e){let t=null;for(let i of n){let s=i.style(e);s&&(t=t?t+" "+s:s)}return t}function cd(n,e,t,i=0,s=n.length){let r=new fd(i,Array.isArray(e)?e:[e],t);r.highlightRange(n.cursor(),i,s,"",r.highlighters),r.flush(s)}class fd{constructor(e,t,i){this.at=e,this.highlighters=t,this.span=i,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,i,s,r){let{type:o,from:l,to:a}=e;if(l>=i||a<=t)return;o.isTop&&(r=this.highlighters.filter(d=>!d.scope||d.scope(o)));let h=s,c=ud(e)||Vi.empty,f=hd(r,c.tags);if(f&&(h&&(h+=" "),h+=f,c.mode==1&&(s+=(s?" ":"")+f)),this.startSpan(Math.max(t,l),h),c.opaque)return;let u=e.tree&&e.tree.prop(L.mounted);if(u&&u.overlay){let d=e.node.enter(u.overlay[0].from+l,1),p=this.highlighters.filter(g=>!g.scope||g.scope(u.tree.type)),m=e.firstChild();for(let g=0,y=l;;g++){let x=g=S||!e.nextSibling())););if(!x||S>i)break;y=x.to+l,y>t&&(this.highlightRange(d.cursor(),Math.max(t,x.from+l),Math.min(i,y),"",p),this.startSpan(Math.min(i,y),h))}m&&e.parent()}else if(e.firstChild()){u&&(s="");do if(!(e.to<=t)){if(e.from>=i)break;this.highlightRange(e,t,i,s,r),this.startSpan(Math.min(i,e.to),h)}while(e.nextSibling());e.parent()}}}function ud(n){let e=n.type.prop(Ah);for(;e&&e.context&&!n.matchContext(e.context);)e=e.next;return e||null}const T=We.define,xn=T(),bt=T(),Ql=T(bt),Pl=T(bt),xt=T(),Sn=T(xt),_s=T(xt),Ze=T(),Wt=T(Ze),He=T(),je=T(),Ar=T(),wi=T(Ar),kn=T(),O={comment:xn,lineComment:T(xn),blockComment:T(xn),docComment:T(xn),name:bt,variableName:T(bt),typeName:Ql,tagName:T(Ql),propertyName:Pl,attributeName:T(Pl),className:T(bt),labelName:T(bt),namespace:T(bt),macroName:T(bt),literal:xt,string:Sn,docString:T(Sn),character:T(Sn),attributeValue:T(Sn),number:_s,integer:T(_s),float:T(_s),bool:T(xt),regexp:T(xt),escape:T(xt),color:T(xt),url:T(xt),keyword:He,self:T(He),null:T(He),atom:T(He),unit:T(He),modifier:T(He),operatorKeyword:T(He),controlKeyword:T(He),definitionKeyword:T(He),moduleKeyword:T(He),operator:je,derefOperator:T(je),arithmeticOperator:T(je),logicOperator:T(je),bitwiseOperator:T(je),compareOperator:T(je),updateOperator:T(je),definitionOperator:T(je),typeOperator:T(je),controlOperator:T(je),punctuation:Ar,separator:T(Ar),bracket:wi,angleBracket:T(wi),squareBracket:T(wi),paren:T(wi),brace:T(wi),content:Ze,heading:Wt,heading1:T(Wt),heading2:T(Wt),heading3:T(Wt),heading4:T(Wt),heading5:T(Wt),heading6:T(Wt),contentSeparator:T(Ze),list:T(Ze),quote:T(Ze),emphasis:T(Ze),strong:T(Ze),link:T(Ze),monospace:T(Ze),strikethrough:T(Ze),inserted:T(),deleted:T(),changed:T(),invalid:T(),meta:kn,documentMeta:T(kn),annotation:T(kn),processingInstruction:T(kn),definition:We.defineModifier("definition"),constant:We.defineModifier("constant"),function:We.defineModifier("function"),standard:We.defineModifier("standard"),local:We.defineModifier("local"),special:We.defineModifier("special")};for(let n in O){let e=O[n];e instanceof We&&(e.name=n)}Rh([{tag:O.link,class:"tok-link"},{tag:O.heading,class:"tok-heading"},{tag:O.emphasis,class:"tok-emphasis"},{tag:O.strong,class:"tok-strong"},{tag:O.keyword,class:"tok-keyword"},{tag:O.atom,class:"tok-atom"},{tag:O.bool,class:"tok-bool"},{tag:O.url,class:"tok-url"},{tag:O.labelName,class:"tok-labelName"},{tag:O.inserted,class:"tok-inserted"},{tag:O.deleted,class:"tok-deleted"},{tag:O.literal,class:"tok-literal"},{tag:O.string,class:"tok-string"},{tag:O.number,class:"tok-number"},{tag:[O.regexp,O.escape,O.special(O.string)],class:"tok-string2"},{tag:O.variableName,class:"tok-variableName"},{tag:O.local(O.variableName),class:"tok-variableName tok-local"},{tag:O.definition(O.variableName),class:"tok-variableName tok-definition"},{tag:O.special(O.variableName),class:"tok-variableName2"},{tag:O.definition(O.propertyName),class:"tok-propertyName tok-definition"},{tag:O.typeName,class:"tok-typeName"},{tag:O.namespace,class:"tok-namespace"},{tag:O.className,class:"tok-className"},{tag:O.macroName,class:"tok-macroName"},{tag:O.propertyName,class:"tok-propertyName"},{tag:O.operator,class:"tok-operator"},{tag:O.comment,class:"tok-comment"},{tag:O.meta,class:"tok-meta"},{tag:O.invalid,class:"tok-invalid"},{tag:O.punctuation,class:"tok-punctuation"}]);let Rr=[],Mh=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e>1;if(n=Mh[i])e=i+1;else return!0;if(e==t)return!1}}function Al(n){return n>=127462&&n<=127487}const Rl=8205;function pd(n,e,t=!0,i=!0){return(t?Dh:md)(n,e,i)}function Dh(n,e,t){if(e==n.length)return e;e&&Eh(n.charCodeAt(e))&&Wh(n.charCodeAt(e-1))&&e--;let i=Us(n,e);for(e+=Ml(i);e=0&&Al(Us(n,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function md(n,e,t){for(;e>0;){let i=Dh(n,e-2,t);if(i=56320&&n<57344}function Wh(n){return n>=55296&&n<56320}function Ml(n){return n<65536?1:2}class V{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=fi(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),Ye.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=fi(this,e,t);let i=[];return this.decompose(e,t,i,0),Ye.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new Ei(this),r=new Ei(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new Ei(this,e)}iterRange(e,t=this.length){return new qh(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Bh(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?V.empty:e.length<=32?new ee(e):Ye.from(ee.split(e,[]))}}class ee extends V{constructor(e,t=gd(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?i:l)>=e)return new Od(s,l,i,o);s=l+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new ee(Dl(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),l=_n(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new ee(l,o.length+r.length));else{let a=l.length>>1;i.push(new ee(l.slice(0,a)),new ee(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof ee))return super.replace(e,t,i);[e,t]=fi(this,e,t);let s=_n(this.text,_n(i.text,Dl(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new ee(s,r):Ye.from(ee.split(s,[]),r)}sliceString(e,t=this.length,i=` +`){[e,t]=fi(this,e,t);let s="";for(let r=0,o=0;r<=t&&oe&&o&&(s+=i),er&&(s+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],s=-1;for(let r of e)i.push(r),s+=r.length+1,i.length==32&&(t.push(new ee(i,s)),i=[],s=-1);return s>-1&&t.push(new ee(i,s)),t}}class Ye extends V{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,a=i+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,i,s);s=l+1,i=a+1}}decompose(e,t,i,s){for(let r=0,o=0;o<=t&&r=o){let h=s&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!h?i.push(l):l.decompose(e-o,t-o,i,h)}o=a+1}}replace(e,t,i){if([e,t]=fi(this,e,t),i.lines=r&&t<=l){let a=o.replace(e-r,t-r,i),h=this.lines-o.lines+a.lines;if(a.lines>4&&a.lines>h>>6){let c=this.children.slice();return c[s]=a,new Ye(c,this.length-(t-e)+i.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=` +`){[e,t]=fi(this,e,t);let s="";for(let r=0,o=0;re&&r&&(s+=i),eo&&(s+=l.sliceString(e-o,t-o,i)),o=a+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Ye))return 0;let i=0,[s,r,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,r+=t){if(s==o||r==l)return i;let a=this.children[s],h=e.children[r];if(a!=h)return i+a.scanIdentical(h,t);i+=a.length+1}}static from(e,t=e.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new ee(d,t)}let s=Math.max(32,i>>5),r=s<<1,o=s>>1,l=[],a=0,h=-1,c=[];function f(d){let p;if(d.lines>r&&d instanceof Ye)for(let m of d.children)f(m);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof ee&&a&&(p=c[c.length-1])instanceof ee&&d.lines+p.lines<=32?(a+=d.lines,h+=d.length+1,c[c.length-1]=new ee(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>s&&u(),a+=d.lines,h+=d.length+1,c.push(d))}function u(){a!=0&&(l.push(c.length==1?c[0]:Ye.from(c,h)),h=-1,a=c.length=0)}for(let d of e)f(d);return u(),l.length==1?l[0]:new Ye(l,t)}}V.empty=new ee([""],0);function gd(n){let e=-1;for(let t of n)e+=t.length+1;return e}function _n(n,e,t=0,i=1e9){for(let s=0,r=0,o=!0;r=t&&(a>i&&(l=l.slice(0,i-s)),s0?1:(e instanceof ee?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],o=r>>1,l=s instanceof ee?s.text.length:s.children.length;if(o==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=` +`,this;e--}else if(s instanceof ee){let a=s.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=s.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof ee?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class qh{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Ei(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Bh{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(V.prototype[Symbol.iterator]=function(){return this.iter()},Ei.prototype[Symbol.iterator]=qh.prototype[Symbol.iterator]=Bh.prototype[Symbol.iterator]=function(){return this});class Od{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}}function fi(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function le(n,e,t=!0,i=!0){return pd(n,e,t,i)}function yd(n){return n>=56320&&n<57344}function bd(n){return n>=55296&&n<56320}function ve(n,e){let t=n.charCodeAt(e);if(!bd(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return yd(i)?(t-55296<<10)+(i-56320)+65536:t}function Qo(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function Ke(n){return n<65536?1:2}const Mr=/\r\n?|\n/;var ue=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(ue||(ue={}));class rt{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-s);r+=l}else{if(i!=ue.Simple&&h>=e&&(i==ue.TrackDel&&se||i==ue.TrackBefore&&se))return null;if(h>e||h==e&&t<0&&!l)return e==s||t<0?r:r+a;r+=a}s=h}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return r}touchesRange(e,t=e){for(let i=0,s=0;i=0&&s<=t&&l>=e)return st?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new rt(e)}static create(e){return new rt(e)}}class se extends rt{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Dr(this,(t,i,s,r,o)=>e=e.replace(s,s+(i-t),o),!1),e}mapDesc(e,t=!1){return Er(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let s=0,r=0;s=0){t[s]=l,t[s+1]=o;let a=s>>1;for(;i.length0&&kt(i,t,r.text),r.forward(c),l+=c}let h=e[o++];for(;l>1].toJSON()))}return e}static of(e,t,i){let s=[],r=[],o=0,l=null;function a(c=!1){if(!c&&!s.length)return;ou||f<0||u>t)throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${t})`);let p=d?typeof d=="string"?V.of(d.split(i||Mr)):d:V.empty,m=p.length;if(f==u&&m==0)return;fo&&Oe(s,f-o,-1),Oe(s,u-f,m),kt(r,s,p),o=u}}return h(e),a(!l),l}static empty(e){return new se(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let s=0;sl&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;i.length=0&&t<=0&&t==n[s+1]?n[s]+=e:s>=0&&e==0&&n[s]==0?n[s+1]+=t:i?(n[s]+=e,n[s+1]+=t):n.push(e,t)}function kt(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i>1])),!(t||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],a=n.sections[o++];e(s,h,r,c,f),s=h,r=c}}}function Er(n,e,t,i=!1){let s=[],r=i?[]:null,o=new Xi(n),l=new Xi(e);for(let a=-1;;){if(o.done&&l.len||l.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&l.ins==-1){let h=Math.min(o.len,l.len);Oe(s,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len=0&&a=0){let h=0,c=o.len;for(;c;)if(l.ins==-1){let f=Math.min(c,l.len);h+=f,c-=f,l.forward(f)}else if(l.ins==0&&l.lena||o.ins>=0&&o.len>a)&&(l||i.length>h),r.forward2(a),o.forward(a)}}}}class Xi{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?V.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?V.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Lt{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,s;return this.empty?i=s=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new Lt(i,s,this.flags)}extend(e,t=e,i=0){if(e<=this.anchor&&t>=this.anchor)return b.range(e,t,void 0,void 0,i);let s=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return b.range(this.anchor,s,void 0,void 0,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return b.range(e.anchor,e.head)}static create(e,t,i){return new Lt(e,t,i)}}class b{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:b.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;ie.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new b(e.ranges.map(t=>Lt.fromJSON(t)),e.main)}static single(e,t=e){return new b([b.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;ss.from-r.from),t=e.indexOf(i);for(let s=1;sr.head?b.range(a,l):b.range(l,a))}}return new b(e,t)}}function Lh(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let Po=0;class Q{constructor(e,t,i,s,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=s,this.id=Po++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(e={}){return new Q(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:Ao),!!e.static,e.enables)}of(e){return new Un([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Un(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Un(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function Ao(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class Un{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=Po++}dynamicSlot(e){var t;let i=this.value,s=this.facet.compareInput,r=this.id,o=e[r]>>1,l=this.type==2,a=!1,h=!1,c=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?h=!0:(((t=e[f.id])!==null&&t!==void 0?t:1)&1)==0&&c.push(e[f.id]);return{create(f){return f.values[o]=i(f),1},update(f,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||Wr(f,c)){let d=i(f);if(l?!El(d,f.values[o],s):!s(d,f.values[o]))return f.values[o]=d,1}return 0},reconfigure:(f,u)=>{let d,p=u.config.address[r];if(p!=null){let m=ss(u,p);if(this.dependencies.every(g=>g instanceof Q?u.facet(g)===f.facet(g):g instanceof pe?u.field(g,!1)==f.field(g,!1):!0)||(l?El(d=i(f),m,s):s(d=i(f),m)))return f.values[o]=m,0}else d=i(f);return f.values[o]=d,1}}}}function El(n,e,t){if(n.length!=e.length)return!1;for(let i=0;in[a.id]),s=t.map(a=>a.type),r=i.filter(a=>!(a&1)),o=n[e.id]>>1;function l(a){let h=[];for(let c=0;ci===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(wn).find(i=>i.field==this);return(t?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,s)=>{let r=i.values[t],o=this.updateF(r,s);return this.compareF(r,o)?0:(i.values[t]=o,1)},reconfigure:(i,s)=>{let r=i.facet(wn),o=s.facet(wn),l;return(l=r.find(a=>a.field==this))&&l!=o.find(a=>a.field==this)?(i.values[t]=l.create(i),1):s.config.address[this.id]!=null?(i.values[t]=s.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,wn.of({field:this,create:e})]}get extension(){return this}}const Bt={lowest:4,low:3,default:2,high:1,highest:0};function vi(n){return e=>new zh(e,n)}const Mt={highest:vi(Bt.highest),high:vi(Bt.high),default:vi(Bt.default),low:vi(Bt.low),lowest:vi(Bt.lowest)};class zh{constructor(e,t){this.inner=e,this.prec=t}}class Cs{of(e){return new qr(this,e)}reconfigure(e){return Cs.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class qr{constructor(e,t){this.compartment=e,this.inner=t}}class ns{constructor(e,t,i,s,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,i){let s=[],r=Object.create(null),o=new Map;for(let u of Sd(e,t,o))u instanceof pe?s.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],h=[];for(let u of s)l[u.id]=h.length<<1,h.push(d=>u.slot(d));let c=i?.config.facets;for(let u in r){let d=r[u],p=d[0].facet,m=c&&c[u]||[];if(d.every(g=>g.type==0))if(l[p.id]=a.length<<1|1,Ao(m,d))a.push(i.facet(p));else{let g=p.combine(d.map(y=>y.value));a.push(i&&p.compare(g,i.facet(p))?i.facet(p):g)}else{for(let g of d)g.type==0?(l[g.id]=a.length<<1|1,a.push(g.value)):(l[g.id]=h.length<<1,h.push(y=>g.dynamicSlot(y)));l[p.id]=h.length<<1,h.push(g=>xd(g,p,d))}}let f=h.map(u=>u(l));return new ns(e,o,f,l,a,r)}}function Sd(n,e,t){let i=[[],[],[],[],[]],s=new Map;function r(o,l){let a=s.get(o);if(a!=null){if(a<=l)return;let h=i[a].indexOf(o);h>-1&&i[a].splice(h,1),o instanceof qr&&t.delete(o.compartment)}if(s.set(o,l),Array.isArray(o))for(let h of o)r(h,l);else if(o instanceof qr){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(o.compartment)||o.inner;t.set(o.compartment,h),r(h,l)}else if(o instanceof zh)r(o.inner,o.prec);else if(o instanceof pe)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof Un)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,Bt.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(h,l)}}return r(n,Bt.default),i.reduce((o,l)=>o.concat(l))}function Wi(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let s=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|s}function ss(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const Ih=Q.define(),Br=Q.define({combine:n=>n.some(e=>e),static:!0}),Nh=Q.define({combine:n=>n.length?n[0]:void 0,static:!0}),Vh=Q.define(),Xh=Q.define(),Fh=Q.define(),_h=Q.define({combine:n=>n.length?n[0]:!1});class ot{constructor(e,t){this.type=e,this.value=t}static define(){return new kd}}class kd{of(e){return new ot(this,e)}}class wd{constructor(e){this.map=e}of(e){return new W(this,e)}}class W{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new W(this.type,t)}is(e){return this.type==e}static define(e={}){return new wd(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let s of e){let r=s.map(t);r&&i.push(r)}return i}}W.reconfigure=W.define();W.appendConfig=W.define();class ie{constructor(e,t,i,s,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&Lh(i,t.newLength),r.some(l=>l.type==ie.time)||(this.annotations=r.concat(ie.time.of(Date.now())))}static create(e,t,i,s,r,o){return new ie(e,t,i,s,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ie.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}ie.time=ot.define();ie.userEvent=ot.define();ie.addToHistory=ot.define();ie.remote=ot.define();function vd(n,e){let t=[];for(let i=0,s=0;;){let r,o;if(i=n[i]))r=n[i++],o=n[i++];else if(s=0;s--){let r=i[s](n);r instanceof ie?n=r:Array.isArray(r)&&r.length==1&&r[0]instanceof ie?n=r[0]:n=Hh(e,ri(r),!1)}return n}function Cd(n){let e=n.startState,t=e.facet(Fh),i=n;for(let s=t.length-1;s>=0;s--){let r=t[s](n);r&&Object.keys(r).length&&(i=Uh(i,$r(e,r,n.changes.newLength),!0))}return i==n?n:ie.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const Qd=[];function ri(n){return n==null?Qd:Array.isArray(n)?n:[n]}var Z=(function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n})(Z||(Z={}));const Pd=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Lr;try{Lr=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Ad(n){if(Lr)return Lr.test(n);for(let e=0;e"€"&&(t.toUpperCase()!=t.toLowerCase()||Pd.test(t)))return!0}return!1}function Rd(n){return e=>{if(!/\S/.test(e))return Z.Space;if(Ad(e))return Z.Word;for(let t=0;t-1)return Z.Word;return Z.Other}}class N{constructor(e,t,i,s,r,o){this.config=e,this.doc=t,this.selection=i,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;ls.set(h,a)),t=null),s.set(l.value.compartment,l.value.extension)):l.is(W.reconfigure)?(t=null,i=l.value):l.is(W.appendConfig)&&(t=null,i=ri(i).concat(l.value));let r;t?r=e.startState.values.slice():(t=ns.resolve(i,s,this),r=new N(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,h)=>h.reconfigure(a,this),null).values);let o=e.startState.facet(Br)?e.newSelection:e.newSelection.asSingle();new N(t,e.newDoc,o,r,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:b.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),s=this.changes(i.changes),r=[i.range],o=ri(i.effects);for(let l=1;lo.spec.fromJSON(l,a)))}}return N.create({doc:e.doc,selection:b.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=ns.resolve(e.extensions||[],new Map),i=e.doc instanceof V?e.doc:V.of((e.doc||"").split(t.staticFacet(N.lineSeparator)||Mr)),s=e.selection?e.selection instanceof b?e.selection:b.single(e.selection.anchor,e.selection.head):b.single(0);return Lh(s,i.length),t.staticFacet(Br)||(s=s.asSingle()),new N(t,i,s,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(N.tabSize)}get lineBreak(){return this.facet(N.lineSeparator)||` +`}get readOnly(){return this.facet(_h)}phrase(e,...t){for(let i of this.facet(N.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,s)=>{if(s=="$")return"$";let r=+(s||1);return!r||r>t.length?i:t[r-1]})),e}languageDataAt(e,t,i=-1){let s=[];for(let r of this.facet(Ih))for(let o of r(this,t,i))Object.prototype.hasOwnProperty.call(o,e)&&s.push(o[e]);return s}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return Rd(t.length?t[0]:"")}wordAt(e){let{text:t,from:i,length:s}=this.doc.lineAt(e),r=this.charCategorizer(e),o=e-i,l=e-i;for(;o>0;){let a=le(t,o,!1);if(r(t.slice(a,o))!=Z.Word)break;o=a}for(;ln.length?n[0]:4});N.lineSeparator=Nh;N.readOnly=_h;N.phrases=Q.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(s=>n[s]==e[s])}});N.languageData=Ih;N.changeFilter=Vh;N.transactionFilter=Xh;N.transactionExtender=Fh;Cs.reconfigure=W.define();function lt(n,e,t={}){let i={};for(let s of n)for(let r of Object.keys(s)){let o=s[r],l=i[r];if(l===void 0)i[r]=o;else if(!(l===o||o===void 0))if(Object.hasOwnProperty.call(t,r))i[r]=t[r](l,o);else throw new Error("Config merge conflict for field "+r)}for(let s in e)i[s]===void 0&&(i[s]=e[s]);return i}class Tt{eq(e){return this==e}range(e,t=e){return Fi.create(e,t,this)}}Tt.prototype.startSide=Tt.prototype.endSide=0;Tt.prototype.point=!1;Tt.prototype.mapMode=ue.TrackDel;function Ro(n,e){return n==e||n.constructor==e.constructor&&n.eq(e)}class Fi{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Fi(e,t,i)}}function zr(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class Mo{constructor(e,t,i,s){this.from=e,this.to=t,this.value=i,this.maxPoint=s}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,s=0){let r=i?this.to:this.from;for(let o=s,l=r.length;;){if(o==l)return o;let a=o+l>>1,h=r[a]-e||(i?this.value[a].endSide:this.value[a].startSide)-t;if(a==o)return h>=0?o:l;h>=0?l=a:o=a+1}}between(e,t,i,s){for(let r=this.findIndex(t,-1e9,!0),o=this.findIndex(i,1e9,!1,r);rd||u==d&&h.startSide>0&&h.endSide<=0)continue;(d-u||h.endSide-h.startSide)<0||(o<0&&(o=u),h.point&&(l=Math.max(l,d-u)),i.push(h),s.push(u-o),r.push(d-o))}return{mapped:i.length?new Mo(s,r,i,l):null,pos:o}}}class z{constructor(e,t,i,s){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=s}static create(e,t,i,s){return new z(e,t,i,s)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:s=0,filterTo:r=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(i&&(t=t.slice().sort(zr)),this.isEmpty)return t.length?z.of(t):this;let l=new jh(this,null,-1).goto(0),a=0,h=[],c=new gt;for(;l.value||a=0){let f=t[a++];c.addInner(f.from,f.to,f.value)||h.push(f)}else l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||rl.to||r=r&&e<=r+o.length&&o.between(r,e-r,t-r,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return _i.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return _i.from(e).goto(t)}static compare(e,t,i,s,r=-1){let o=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=r),l=t.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=r),a=Wl(o,l,i),h=new Ti(o,a,r),c=new Ti(l,a,r);i.iterGaps((f,u,d)=>ql(h,f,c,u,d,s)),i.empty&&i.length==0&&ql(h,0,c,0,0,s)}static eq(e,t,i=0,s){s==null&&(s=999999999);let r=e.filter(c=>!c.isEmpty&&t.indexOf(c)<0),o=t.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(r.length!=o.length)return!1;if(!r.length)return!0;let l=Wl(r,o),a=new Ti(r,l,0).goto(i),h=new Ti(o,l,0).goto(i);for(;;){if(a.to!=h.to||!Ir(a.active,h.active)||a.point&&(!h.point||!Ro(a.point,h.point)))return!1;if(a.to>s)return!0;a.next(),h.next()}}static spans(e,t,i,s,r=-1){let o=new Ti(e,null,r).goto(t),l=t,a=o.openStart;for(;;){let h=Math.min(o.to,i);if(o.point){let c=o.activeForPoint(o.to),f=o.pointFroml&&(s.span(l,h,o.active,a),a=o.openEnd(h));if(o.to>i)return a+(o.point&&o.to>i?1:0);l=o.to,o.next()}}static of(e,t=!1){let i=new gt;for(let s of e instanceof Fi?[e]:t?Md(e):e)i.add(s.from,s.to,s.value);return i.finish()}static join(e){if(!e.length)return z.empty;let t=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let s=e[i];s!=z.empty;s=s.nextLayer)t=new z(s.chunkPos,s.chunk,t,Math.max(s.maxPoint,t.maxPoint));return t}}z.empty=new z([],[],null,-1);function Md(n){if(n.length>1)for(let e=n[0],t=1;t0)return n.slice().sort(zr);e=i}return n}z.empty.nextLayer=z.empty;class gt{finishChunk(e){this.chunks.push(new Mo(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new gt)).add(e,t,i)}addInner(e,t,i){let s=e-this.lastTo||i.startSide-this.last.endSide;if(s<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return s<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(z.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=z.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Wl(n,e,t){let i=new Map;for(let r of n)for(let o=0;o=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&s.push(new jh(o,t,i,r));return s.length==1?s[0]:new _i(s)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let i=this.heap.length>>1;i>=0;i--)Hs(this.heap,i);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let i=this.heap.length>>1;i>=0;i--)Hs(this.heap,i);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Hs(this.heap,0)}}}function Hs(n,e){for(let t=n[e];;){let i=(e<<1)+1;if(i>=n.length)break;let s=n[i];if(i+1=0&&(s=n[i+1],i++),t.compare(s)<0)break;n[i]=t,n[e]=s,e=i}}class Ti{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=_i.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){vn(this.active,e),vn(this.activeTo,e),vn(this.activeRank,e),this.minActive=Bl(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:s,rank:r}=this.cursor;for(;t0;)t++;Tn(this.active,t,i),Tn(this.activeTo,t,s),Tn(this.activeRank,t,r),e&&Tn(e,t,this.cursor.from),this.minActive=Bl(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let s=this.minActive;if(s>-1&&(this.activeTo[s]-this.cursor.from||this.active[s].endSide-this.cursor.startSide)<0){if(this.activeTo[s]>e){this.to=this.activeTo[s],this.endSide=this.active[s].endSide;break}this.removeActive(s),i&&vn(i,s)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let r=this.cursor.value;if(!r.point)this.addActive(i),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}}function ql(n,e,t,i,s,r){n.goto(e),t.goto(i);let o=i+s,l=i,a=i-e,h=!!r.boundChange;for(let c=!1;;){let f=n.to+a-t.to,u=f||n.endSide-t.endSide,d=u<0?n.to+a:t.to,p=Math.min(d,o);if(n.point||t.point?(n.point&&t.point&&Ro(n.point,t.point)&&Ir(n.activeForPoint(n.to),t.activeForPoint(t.to))||r.comparePoint(l,p,n.point,t.point),c=!1):(c&&r.boundChange(l),p>l&&!Ir(n.active,t.active)&&r.compareRange(l,p,n.active,t.active),h&&po)break;l=d,u<=0&&n.next(),u>=0&&t.next()}}function Ir(n,e){if(n.length!=e.length)return!1;for(let t=0;t=e;i--)n[i+1]=n[i];n[e]=t}function Bl(n,e){let t=-1,i=1e9;for(let s=0;s=e)return s;if(s==n.length)break;r+=n.charCodeAt(s)==9?t-r%t:1,s=le(n,s)}return i===!0?-1:n.length}const Vr="ͼ",$l=typeof Symbol>"u"?"__"+Vr:Symbol.for(Vr),Xr=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Ll=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Ct{constructor(e,t){this.rules=[];let{finish:i}=t||{};function s(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function r(o,l,a,h){let c=[],f=/^@(\w+)\b/.exec(o[0]),u=f&&f[1]=="keyframes";if(f&&l==null)return a.push(o[0]+";");for(let d in l){let p=l[d];if(/&/.test(d))r(d.split(/,\s*/).map(m=>o.map(g=>m.replace(/&/,g))).reduce((m,g)=>m.concat(g)),p,a);else if(p&&typeof p=="object"){if(!f)throw new RangeError("The value of a property ("+d+") should be a primitive value.");r(s(d),p,c,u)}else p!=null&&c.push(d.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+p+";")}(c.length||u)&&a.push((i&&!f&&!h?o.map(i):o).join(", ")+" {"+c.join(" ")+"}")}for(let o in e)r(s(o),e[o],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let e=Ll[$l]||1;return Ll[$l]=e+1,Vr+e.toString(36)}static mount(e,t,i){let s=e[Xr],r=i&&i.nonce;s?r&&s.setNonce(r):s=new Dd(e,r),s.mount(Array.isArray(t)?t:[t],e)}}let zl=new Map;class Dd{constructor(e,t){let i=e.ownerDocument||e,s=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&s.CSSStyleSheet){let r=zl.get(i);if(r)return e[Xr]=r;this.sheet=new s.CSSStyleSheet,zl.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Xr]=this}mount(e,t){let i=this.sheet,s=0,r=0;for(let o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),a==-1){if(this.modules.splice(r++,0,l),i)for(let h=0;h",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Ed=typeof navigator<"u"&&/Mac/.test(navigator.platform),Wd=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var fe=0;fe<10;fe++)Qt[48+fe]=Qt[96+fe]=String(fe);for(var fe=1;fe<=24;fe++)Qt[fe+111]="F"+fe;for(var fe=65;fe<=90;fe++)Qt[fe]=String.fromCharCode(fe+32),Ui[fe]=String.fromCharCode(fe);for(var js in Qt)Ui.hasOwnProperty(js)||(Ui[js]=Qt[js]);function qd(n){var e=Ed&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||Wd&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Ui:Qt)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function _(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var s=t[i];typeof s=="string"?n.setAttribute(i,s):s!=null&&(n[i]=s)}e++}for(;e2);var P={mac:Vl||/Mac/.test(xe.platform),windows:/Win/.test(xe.platform),linux:/Linux|X11/.test(xe.platform),ie:Qs,ie_version:Zh?Fr.documentMode||6:Ur?+Ur[1]:_r?+_r[1]:0,gecko:Il,gecko_version:Il?+(/Firefox\/(\d+)/.exec(xe.userAgent)||[0,0])[1]:0,chrome:!!Gs,chrome_version:Gs?+Gs[1]:0,ios:Vl,android:/Android\b/.test(xe.userAgent),webkit:Nl,webkit_version:Nl?+(/\bAppleWebKit\/(\d+)/.exec(xe.userAgent)||[0,0])[1]:0,safari:Hr,safari_version:Hr?+(/\bVersion\/(\d+(\.\d+)?)/.exec(xe.userAgent)||[0,0])[1]:0,tabSize:Fr.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function Do(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}const rs=Object.create(null);function Eo(n,e,t){if(n==e)return!0;n||(n=rs),e||(e=rs);let i=Object.keys(n),s=Object.keys(e);if(i.length-0!=s.length-0)return!1;for(let r of i)if(r!=t&&(s.indexOf(r)==-1||n[r]!==e[r]))return!1;return!0}function Bd(n,e){for(let t=n.attributes.length-1;t>=0;t--){let i=n.attributes[t].name;e[i]==null&&n.removeAttribute(i)}for(let t in e){let i=e[t];t=="style"?n.style.cssText=i:n.getAttribute(t)!=i&&n.setAttribute(t,i)}}function Xl(n,e,t){let i=!1;if(e)for(let s in e)t&&s in t||(i=!0,s=="style"?n.style.cssText="":n.removeAttribute(s));if(t)for(let s in t)e&&e[s]==t[s]||(i=!0,s=="style"?n.style.cssText=t[s]:n.setAttribute(s,t[s]));return i}function $d(n){let e=Object.create(null);for(let t=0;t0?3e8:-4e8:t>0?1e8:-1e8,new _t(e,t,t,i,e.widget||null,!1)}static replace(e){let t=!!e.block,i,s;if(e.isBlockGap)i=-5e8,s=4e8;else{let{start:r,end:o}=Yh(e,t);i=(r?t?-3e8:-1:5e8)-1,s=(o?t?2e8:1:-6e8)+1}return new _t(e,i,s,t,e.widget||null,!0)}static line(e){return new hn(e)}static set(e,t=!1){return z.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}M.none=z.empty;class an extends M{constructor(e){let{start:t,end:i}=Yh(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?Do(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||rs}eq(e){return this==e||e instanceof an&&this.tagName==e.tagName&&Eo(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}an.prototype.point=!1;class hn extends M{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof hn&&this.spec.class==e.spec.class&&Eo(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}hn.prototype.mapMode=ue.TrackBefore;hn.prototype.point=!0;class _t extends M{constructor(e,t,i,s,r,o){super(t,i,r,e),this.block=s,this.isReplace=o,this.mapMode=s?t<=0?ue.TrackBefore:ue.TrackAfter:ue.TrackDel}get type(){return this.startSide!=this.endSide?de.WidgetRange:this.startSide<=0?de.WidgetBefore:de.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof _t&&Ld(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}_t.prototype.point=!0;function Yh(n,e=!1){let{inclusiveStart:t,inclusiveEnd:i}=n;return t==null&&(t=n.inclusive),i==null&&(i=n.inclusive),{start:t??e,end:i??e}}function Ld(n,e){return n==e||!!(n&&e&&n.compare(e))}function oi(n,e,t,i=0){let s=t.length-1;s>=0&&t[s]+i>=n?t[s]=Math.max(t[s],e):t.push(n,e)}class Hi extends Tt{constructor(e,t){super(),this.tagName=e,this.attributes=t}eq(e){return e==this||e instanceof Hi&&this.tagName==e.tagName&&Eo(this.attributes,e.attributes)}static create(e){return new Hi(e.tagName,e.attributes||rs)}static set(e,t=!1){return z.of(e,t)}}Hi.prototype.startSide=Hi.prototype.endSide=-1;function ji(n){let e;return n.nodeType==11?e=n.getSelection?n:n.ownerDocument:e=n,e.getSelection()}function jr(n,e){return e?n==e||n.contains(e.nodeType!=1?e.parentNode:e):!1}function qi(n,e){if(!e.anchorNode)return!1;try{return jr(n,e.anchorNode)}catch{return!1}}function Bi(n){return n.nodeType==3?Zi(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function $i(n,e,t,i){return t?Fl(n,e,t,i,-1)||Fl(n,e,t,i,1):!1}function Pt(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e}function os(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function Fl(n,e,t,i,s){for(;;){if(n==t&&e==i)return!0;if(e==(s<0?0:Ot(n))){if(n.nodeName=="DIV")return!1;let r=n.parentNode;if(!r||r.nodeType!=1)return!1;e=Pt(n)+(s<0?0:1),n=r}else if(n.nodeType==1){if(n=n.childNodes[e+(s<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;e=s<0?Ot(n):0}else return!1}}function Ot(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function Gi(n,e){let t=e?n.left:n.right;return{left:t,right:t,top:n.top,bottom:n.bottom}}function zd(n){let e=n.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function Kh(n,e){let t=e.width/n.offsetWidth,i=e.height/n.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-n.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-n.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function Id(n,e,t,i,s,r,o,l){let a=n.ownerDocument,h=a.defaultView||window;for(let c=n,f=!1;c&&!f;)if(c.nodeType==1){let u,d=c==a.body,p=1,m=1;if(d)u=zd(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(f=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let x=c.getBoundingClientRect();({scaleX:p,scaleY:m}=Kh(c,x)),u={left:x.left,right:x.left+c.clientWidth*p,top:x.top,bottom:x.top+c.clientHeight*m}}let g=0,y=0;if(s=="nearest")e.top0&&e.bottom>u.bottom+y&&(y=e.bottom-u.bottom+o)):e.bottom>u.bottom-o&&(y=e.bottom-u.bottom+o,t<0&&e.top-y0&&e.right>u.right+g&&(g=e.right-u.right+r)):e.right>u.right-r&&(g=e.right-u.right+r,t<0&&e.leftu.bottom||e.leftu.right)&&(e={left:Math.max(e.left,u.left),right:Math.min(e.right,u.right),top:Math.max(e.top,u.top),bottom:Math.min(e.bottom,u.bottom)}),c=c.assignedSlot||c.parentNode}else if(c.nodeType==11)c=c.host;else break}function Jh(n,e=!0){let t=n.ownerDocument,i=null,s=null;for(let r=n.parentNode;r&&!(r==t.body||(!e||i)&&s);)if(r.nodeType==1)!s&&r.scrollHeight>r.clientHeight&&(s=r),e&&!i&&r.scrollWidth>r.clientWidth&&(i=r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;return{x:i,y:s}}class Nd{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?Ot(t):0),i,Math.min(e.focusOffset,i?Ot(i):0))}set(e,t,i,s){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=s}}let qt=null;P.safari&&P.safari_version>=26&&(qt=!1);function ec(n){if(n.setActive)return n.setActive();if(qt)return n.focus(qt);let e=[];for(let t=n;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(n.focus(qt==null?{get preventScroll(){return qt={preventScroll:!0},!0}}:void 0),!qt){qt=!1;for(let t=0;tMath.max(0,n.document.documentElement.scrollHeight-n.innerHeight-4):n.scrollTop>Math.max(1,n.scrollHeight-n.clientHeight-4)}function ic(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&i>0)return{node:t,offset:i};if(t.nodeType==1&&i>0){if(t.contentEditable=="false")return null;t=t.childNodes[i-1],i=Ot(t)}else if(t.parentNode&&!os(t))i=Pt(t),t=t.parentNode;else return null}}function nc(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&i=t){if(l.level==i)return o;(r<0||(s!=0?s<0?l.fromt:e[r].level>l.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}function oc(n,e){if(n.length!=e.length)return!1;for(let t=0;t=0;m-=3)if(Ge[m+1]==-d){let g=Ge[m+2],y=g&2?s:g&4?g&1?r:s:0;y&&(H[f]=H[Ge[m]]=y),l=m;break}}else{if(Ge.length==189)break;Ge[l++]=f,Ge[l++]=u,Ge[l++]=a}else if((p=H[f])==2||p==1){let m=p==s;a=m?0:1;for(let g=l-3;g>=0;g-=3){let y=Ge[g+2];if(y&2)break;if(m)Ge[g+2]|=2;else{if(y&4)break;Ge[g+2]|=4}}}}}function Gd(n,e,t,i){for(let s=0,r=i;s<=t.length;s++){let o=s?t[s-1].to:n,l=sa;)p==g&&(p=t[--m].from,g=m?t[m-1].to:n),H[--p]=d;a=c}else r=h,a++}}}function Zr(n,e,t,i,s,r,o){let l=i%2?2:1;if(i%2==s%2)for(let a=e,h=0;aa&&o.push(new tt(a,m.from,d));let g=m.direction==Ut!=!(d%2);Yr(n,g?i+1:i,s,m.inner,m.from,m.to,o),a=m.to}p=m.to}else{if(p==t||(c?H[p]!=l:H[p]==l))break;p++}u?Zr(n,a,p,i+1,s,u,o):ae;){let c=!0,f=!1;if(!h||a>r[h-1].to){let m=H[a-1];m!=l&&(c=!1,f=m==16)}let u=!c&&l==1?[]:null,d=c?i:i+1,p=a;e:for(;;)if(h&&p==r[h-1].to){if(f)break e;let m=r[--h];if(!c)for(let g=m.from,y=h;;){if(g==e)break e;if(y&&r[y-1].to==g)g=r[--y].from;else{if(H[g-1]==l)break e;break}}if(u)u.push(m);else{m.toH.length;)H[H.length]=256;let i=[],s=e==Ut?0:1;return Yr(n,s,s,t,0,n.length,i),i}function lc(n){return[new tt(0,n,0)]}let ac="";function Yd(n,e,t,i,s){var r;let o=i.head-n.from,l=tt.find(e,o,(r=i.bidiLevel)!==null&&r!==void 0?r:-1,i.assoc),a=e[l],h=a.side(s,t);if(o==h){let u=l+=s?1:-1;if(u<0||u>=e.length)return null;a=e[l=u],o=a.side(!s,t),h=a.side(s,t)}let c=le(n.text,o,a.forward(s,t));(ca.to)&&(c=h),ac=n.text.slice(Math.min(o,c),Math.max(o,c));let f=l==(s?e.length-1:0)?null:e[l+(s?1:-1)];return f&&c==h&&f.level+(s?0:1)n.some(e=>e)}),gc=Q.define({combine:n=>n.some(e=>e)}),Oc=Q.define();class ai{constructor(e,t,i,s,r,o=!1){this.range=e,this.y=t,this.x=i,this.yMargin=s,this.xMargin=r,this.isSnapshot=o}map(e){return e.empty?this:new ai(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new ai(b.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Cn=W.define({map:(n,e)=>n.map(e)}),yc=W.define();function Se(n,e,t){let i=n.facet(uc);i.length?i[0](e):window.onerror&&window.onerror(String(e),t,void 0,void 0,e)||(t?console.error(t+":",e):console.error(e))}const pt=Q.define({combine:n=>n.length?n[0]:!0});let Jd=0;const ti=Q.define({combine(n){return n.filter((e,t)=>{for(let i=0;i{let a=[];return o&&a.push(Ps.of(h=>{let c=h.plugin(l);return c?o(c):M.none})),r&&a.push(r(l)),a})}static fromClass(e,t){return K.define((i,s)=>new e(i,s),t)}}class Zs{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(i){if(Se(t.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){Se(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(i){Se(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const bc=Q.define(),$o=Q.define(),Ps=Q.define(),xc=Q.define(),Lo=Q.define(),cn=Q.define(),Sc=Q.define();function Ul(n,e){let t=n.state.facet(Sc);if(!t.length)return t;let i=t.map(r=>r instanceof Function?r(n):r),s=[];return z.spans(i,e.from,e.to,{point(){},span(r,o,l,a){let h=r-e.from,c=o-e.from,f=s;for(let u=l.length-1;u>=0;u--,a--){let d=l[u].spec.bidiIsolate,p;if(d==null&&(d=Kd(e.text,h,c)),a>0&&f.length&&(p=f[f.length-1]).to==h&&p.direction==d)p.to=c,f=p.inner;else{let m={from:h,to:c,direction:d,inner:[]};f.push(m),f=m.inner}}}}),s}const kc=Q.define();function zo(n){let e=0,t=0,i=0,s=0;for(let r of n.state.facet(kc)){let o=r(n);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(t=Math.max(t,o.right)),o.top!=null&&(i=Math.max(i,o.top)),o.bottom!=null&&(s=Math.max(s,o.bottom)))}return{left:e,right:t,top:i,bottom:s}}const Ai=Q.define();class qe{constructor(e,t,i,s){this.fromA=e,this.toA=t,this.fromB=i,this.toB=s}join(e){return new qe(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let s=e[t-1];if(!(s.fromA>i.toA)){if(s.toAs.push(new qe(r,o,l,a))),this.changedRanges=s}static create(e,t,i){return new ls(e,t,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}const ep=[];class J{constructor(e,t,i=0){this.dom=e,this.length=t,this.flags=i,this.parent=null,e.cmTile=this}get breakAfter(){return this.flags&1}get children(){return ep}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,this.flags&4){this.flags&=-5;let t=this.domAttrs;t&&Bd(this.dom,t)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let i=t;for(let s of this.children){if(s==e)return i;i+=s.length+s.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t){return null}domPosFor(e,t){let i=Pt(this.dom),s=this.length?e>0:t>0;return new Ne(this.parent.dom,i+(s?1:0),e==0||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof Rs)return e;return null}static get(e){return e.cmTile}}class As extends J{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(this.flags&2)return;super.sync(e);let t=this.dom,i=null,s,r=e?.node==t?e:null,o=0;for(let l of this.children){if(l.sync(e),o+=l.length+l.breakAfter,s=i?i.nextSibling:t.firstChild,r&&s!=l.dom&&(r.written=!0),l.dom.parentNode==t)for(;s&&s!=l.dom;)s=Hl(s);else t.insertBefore(l.dom,s);i=l.dom}for(s=i?i.nextSibling:t.firstChild,r&&s&&(r.written=!0);s;)s=Hl(s);this.length=o}}function Hl(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class Rs extends As{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=J.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],i=this,s=0,r=0;;)if(s==i.children.length){if(!t.length)return;i=i.parent,i.breakAfter&&r++,s=t.pop()}else{let o=i.children[s++];if(o instanceof mt)t.push(s),i=o,s=0;else{let l=r+o.length,a=e(o,r);if(a!==void 0)return a;r=l+o.breakAfter}}}resolveBlock(e,t){let i,s=-1,r,o=-1;if(this.blockTiles((l,a)=>{let h=a+l.length;if(e>=a&&e<=h){if(l.isWidget()&&t>=-1&&t<=1){if(l.flags&32)return!0;l.flags&16&&(i=void 0)}(ae||e==a&&(t>1?l.length:l.covers(-1)))&&(!r||!l.isWidget()&&r.isWidget())&&(r=l,o=e-a)}}),!i&&!r)throw new Error("No tile at position "+e);return i&&t<0||!r?{tile:i,offset:s}:{tile:r,offset:o}}}class mt extends As{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return this.children.length?e<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(e,t){let i=new mt(t||document.createElement(e.tagName),e);return t||(i.flags|=4),i}}class ui extends As{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,i){let s=new ui(t||document.createElement("div"),e);return(!t||!i)&&(s.flags|=4),s}get domAttrs(){return this.attrs}resolveInline(e,t,i){let s=null,r=-1,o=null,l=-1;function a(c,f){for(let u=0,d=0;u=f&&(p.isComposite()?a(p,f-d):(!o||o.isHidden&&(t>0||i&&ip(o,p)))&&(m>f||p.flags&32)?(o=p,l=f-d):(di&&(e=i);let s=e,r=e,o=0;e==0&&t<0||e==i&&t>=0?P.chrome||P.gecko||(e?(s--,o=1):r=0)?0:l.length-1];return P.safari&&!o&&a.width==0&&(a=Array.prototype.find.call(l,h=>h.width)||a),o?Gi(a,o<0):a||null}static of(e,t){let i=new zt(t||document.createTextNode(e),e);return t||(i.flags|=2),i}}class Ht extends J{constructor(e,t,i,s){super(e,t,s),this.widget=i}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return this.flags&48?!1:(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,i){let s=this.widget.coordsAt(this.dom,e,t);if(s)return s;if(i)return Gi(this.dom.getBoundingClientRect(),this.length?e==0:t<=0);{let r=this.dom.getClientRects(),o=null;if(!r.length)return null;let l=this.flags&16?!0:this.flags&32?!1:e>0;for(let a=l?r.length-1:0;o=r[a],!(e>0?a==0:a==r.length-1||o.top0;)if(s.isComposite())if(o){if(!e)break;i&&i.break(),e--,o=!1}else if(r==s.children.length){if(!e&&!l.length)break;i&&i.leave(s),o=!!s.breakAfter,{tile:s,index:r}=l.pop(),r++}else{let a=s.children[r],h=a.breakAfter;(t>0?a.length<=e:a.length=0;l--){let a=t.marks[l],h=s.lastChild;if(h instanceof Ce&&h.mark.eq(a.mark))h.dom!=a.dom&&h.setDOM(Ys(a.dom)),s=h;else{if(this.cache.reused.get(a)){let f=J.get(a.dom);f&&f.setDOM(Ys(a.dom))}let c=Ce.of(a.mark,a.dom);s.append(c),s=c}this.cache.reused.set(a,2)}let r=J.get(e.text);r&&this.cache.reused.set(r,2);let o=new zt(e.text,e.text.nodeValue);o.flags|=8,s.append(o)}addInlineWidget(e,t,i){let s=this.afterWidget&&e.flags&48&&(this.afterWidget.flags&48)==(e.flags&48);s||this.flushBuffer();let r=this.ensureMarks(t,i);!s&&!(e.flags&16)&&r.append(this.getBuffer(1)),r.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,i){this.flushBuffer(),this.ensureMarks(t,i).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let t=this.afterWidget||this.lastBlock;t.length+=e,this.pos+=e}addLineStart(e,t){var i;e||(e=wc);let s=ui.start(e,t||((i=this.cache.find(ui))===null||i===void 0?void 0:i.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=s)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var i;let s=this.curLine;for(let r=e.length-1;r>=0;r--){let o=e[r],l;if(t>0&&(l=s.lastChild)&&l instanceof Ce&&l.mark.eq(o))s=l,t--;else{let a=Ce.of(o,(i=this.cache.find(Ce,h=>h.mark.eq(o)))===null||i===void 0?void 0:i.dom);s.append(a),s=a,t=0}}return s}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!jl(this.curLine,!1)||e.dom.nodeName!="BR"&&e.isWidget()&&!(P.ios&&jl(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(Ks,0,32)||new Ht(Ks.toDOM(),0,Ks,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to=this.pos){let t=new sp(e.from,e.to,e.value,e.rank),i=this.wrappers.length;for(;i>0&&(this.wrappers[i-1].rank-t.rank||this.wrappers[i-1].to-t.to)<0;)i--;this.wrappers.splice(i,0,t)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let i of this.wrappers){let s=t.lastChild;if(i.fromo.wrapper.eq(i.wrapper)))===null||e===void 0?void 0:e.dom);t.append(r),t=r}}return t}blockPosCovered(){let e=this.lastBlock;return e!=null&&!e.breakAfter&&(!e.isWidget()||(e.flags&160)>0)}getBuffer(e){let t=2|(e<0?16:32),i=this.cache.find(as,void 0,1);return i&&(i.flags=t),i||new as(t)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class op{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:s,lineBreak:r,done:o}=this.cursor.next(this.skipCount);if(this.skipCount=0,o)throw new Error("Ran out of text content when drawing inline views");this.text=s;let l=this.textOff=Math.min(e,s.length);return r?null:s.slice(0,l)}let t=Math.min(this.text.length,this.textOff+e),i=this.text.slice(this.textOff,t);return this.textOff=t,i}}const hs=[Ht,ui,zt,Ce,as,mt,Rs];for(let n=0;n[]),this.index=hs.map(()=>0),this.reused=new Map}add(e){let t=e.constructor.bucket,i=this.buckets[t];i.length<6?i.push(e):i[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,i=2){let s=e.bucket,r=this.buckets[s],o=this.index[s];for(let l=r.length-1;l>=0;l--){let a=(l+o)%r.length,h=r[a];if((!t||t(h))&&!this.reused.has(h))return r.splice(a,1),a{if(this.cache.add(o),o.isComposite())return!1},enter:o=>this.cache.add(o),leave:()=>{},break:()=>{}}}run(e,t){let i=t&&this.getCompositionContext(t.text);for(let s=0,r=0,o=0;;){let l=os){let h=a-s;this.preserve(h,!o,!l),s=a,r+=h}if(!l)break;t&&l.fromA<=t.range.fromA&&l.toA>=t.range.toA?(this.forward(l.fromA,t.range.fromA,t.range.fromA{if(o.isWidget())if(this.openWidget)this.builder.continueWidget(a-l);else{let h=a>0||l{o.isLine()?this.builder.addLineStart(o.attrs,this.cache.maybeReuse(o)):(this.cache.add(o),o instanceof Ce&&s.unshift(o.mark)),this.openWidget=!1},leave:o=>{o.isLine()?s.length&&(s.length=r=0):o instanceof Ce&&(s.shift(),r=Math.min(r,s.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let i=null,s=this.builder,r=0,o=z.spans(this.decorations,e,t,{point:(l,a,h,c,f,u)=>{if(h instanceof _t){if(this.disallowBlockEffectsFor[u]){if(h.block)throw new RangeError("Block decorations may not be specified via plugins");if(a>this.view.state.doc.lineAt(l).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(r=c.length,f>c.length)s.continueWidget(a-l);else{let d=h.widget||(h.block?di.block:di.inline),p=hp(h),m=this.cache.findWidget(d,a-l,p)||Ht.of(d,this.view,a-l,p);h.block?(h.startSide>0&&s.addLineStartIfNotCovered(i),s.addBlockWidget(m)):(s.ensureLine(i),s.addInlineWidget(m,c,f))}i=null}else i=cp(i,h);a>l&&this.text.skip(a-l)},span:(l,a,h,c)=>{for(let f=l;fr,this.openMarks=o}forward(e,t,i=1){t-e<=10?this.old.advance(t-e,i,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,i,this.reuseWalker))}getCompositionContext(e){let t=[],i=null;for(let s=e.parentNode;;s=s.parentNode){let r=J.get(s);if(s==this.view.contentDOM)break;r instanceof Ce?t.push(r):r?.isLine()?i=r:r instanceof mt||(s.nodeName=="DIV"&&!i&&s!=this.view.contentDOM?i=new ui(s,wc):i||t.push(Ce.of(new an({tagName:s.nodeName.toLowerCase(),attributes:$d(s)}),s)))}return{line:i,marks:t}}}function jl(n,e){let t=i=>{for(let s of i.children)if((e?s.isText():s.length)||t(s))return!0;return!1};return t(n)}function hp(n){let e=n.isReplace?(n.startSide<0?64:0)|(n.endSide>0?128:0):n.startSide>0?32:16;return n.block&&(e|=256),e}const wc={class:"cm-line"};function cp(n,e){let t=e.spec.attributes,i=e.spec.class;return!t&&!i||(n||(n={class:"cm-line"}),t&&Do(t,n),i&&(n.class+=" "+i)),n}function fp(n){let e=[];for(let t=n.parents.length;t>1;t--){let i=t==n.parents.length?n.tile:n.parents[t].tile;i instanceof Ce&&e.push(i.mark)}return e}function Ys(n){let e=J.get(n);return e&&e.setDOM(n.cloneNode()),n}class di extends Xe{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}di.inline=new di("span");di.block=new di("div");const Ks=new class extends Xe{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class Gl{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=M.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new Rs(e,e.contentDOM),this.updateInner([new qe(0,0,0,e.state.doc.length)],null)}update(e){var t;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:c,toA:f})=>fthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let s=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?s=this.domChanged.newSel.head:!xp(e.changes,this.hasComposition)&&!e.selectionSet&&(s=e.state.selection.main.head));let r=s>-1?dp(this.view,e.changes,s):null;if(this.domChanged=null,this.hasComposition){let{from:c,to:f}=this.hasComposition;i=new qe(c,f,e.changes.mapPos(c,-1),e.changes.mapPos(f,1)).addToSet(i.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(P.ie||P.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,l=this.blockWrappers;this.updateDeco();let a=gp(o,this.decorations,e.changes);a.length&&(i=qe.extendWithRanges(i,a));let h=yp(l,this.blockWrappers,e.changes);return h.length&&(i=qe.extendWithRanges(i,h)),r&&!i.some(c=>c.fromA<=r.range.fromA&&c.toA>=r.range.toA)&&(i=r.range.addToSet(i.slice())),this.tile.flags&2&&i.length==0?!1:(this.updateInner(i,r),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:i}=this.view;i.ignore(()=>{if(t||e.length){let o=this.tile,l=new ap(this.view,o,this.blockWrappers,this.decorations,this.dynamicDecorationMap);t&&J.get(t.text)&&l.cache.reused.set(J.get(t.text),2),this.tile=l.run(e,t),Jr(o,l.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=P.chrome||P.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(r),r&&(r.written||i.selectionRange.focusNode!=r.node||!this.tile.dom.contains(r.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let s=[];if(this.view.viewport.from||this.view.viewport.to-1)&&qi(i,this.view.observer.selectionRange)&&!(s&&i.contains(s));if(!(r||t||o))return;let l=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,h,c;if(a.empty?c=h=this.inlineDOMNearPos(a.anchor,a.assoc||1):(c=this.inlineDOMNearPos(a.head,a.head==a.from?1:-1),h=this.inlineDOMNearPos(a.anchor,a.anchor==a.from?1:-1)),P.gecko&&a.empty&&!this.hasComposition&&up(h)){let u=document.createTextNode("");this.view.observer.ignore(()=>h.node.insertBefore(u,h.node.childNodes[h.offset]||null)),h=c=new Ne(u,0),l=!0}let f=this.view.observer.selectionRange;(l||!f.focusNode||(!$i(h.node,h.offset,f.anchorNode,f.anchorOffset)||!$i(c.node,c.offset,f.focusNode,f.focusOffset))&&!this.suppressWidgetCursorChange(f,a))&&(this.view.observer.ignore(()=>{P.android&&P.chrome&&i.contains(f.focusNode)&&bp(f.focusNode,i)&&(i.blur(),i.focus({preventScroll:!0}));let u=ji(this.view.root);if(u)if(a.empty){if(P.gecko){let d=pp(h.node,h.offset);if(d&&d!=3){let p=(d==1?ic:nc)(h.node,h.offset);p&&(h=new Ne(p.node,p.offset))}}u.collapse(h.node,h.offset),a.bidiLevel!=null&&u.caretBidiLevel!==void 0&&(u.caretBidiLevel=a.bidiLevel)}else if(u.extend){u.collapse(h.node,h.offset);try{u.extend(c.node,c.offset)}catch{}}else{let d=document.createRange();a.anchor>a.head&&([h,c]=[c,h]),d.setEnd(c.node,c.offset),d.setStart(h.node,h.offset),u.removeAllRanges(),u.addRange(d)}o&&this.view.root.activeElement==i&&(i.blur(),s&&s.focus())}),this.view.observer.setSelectionRange(h,c)),this.impreciseAnchor=h.precise?null:new Ne(f.anchorNode,f.anchorOffset),this.impreciseHead=c.precise?null:new Ne(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&$i(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=ji(e.root),{anchorNode:s,anchorOffset:r}=e.observer.selectionRange;if(!i||!t.empty||!t.assoc||!i.modify)return;let o=this.lineAt(t.head,t.assoc);if(!o)return;let l=o.posAtStart;if(t.head==l||t.head==l+o.length)return;let a=this.coordsAt(t.head,-1),h=this.coordsAt(t.head,1);if(!a||!h||a.bottom>h.top)return;let c=this.domAtPos(t.head+t.assoc,t.assoc);i.collapse(c.node,c.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=t.from&&i.collapse(s,r)}posFromDOM(e,t){let i=this.tile.nearest(e);if(!i)return this.tile.dom.compareDocumentPosition(e)&2?0:this.view.state.doc.length;let s=i.posAtStart;if(i.isComposite()){let r;if(e==i.dom)r=i.dom.childNodes[t];else{let o=Ot(e)==0?0:t==0?-1:1;for(;;){let l=e.parentNode;if(l==i.dom)break;o==0&&l.firstChild!=l.lastChild&&(e==l.firstChild?o=-1:o=1),e=l}o<0?r=e:r=e.nextSibling}if(r==i.dom.firstChild)return s;for(;r&&!J.get(r);)r=r.nextSibling;if(!r)return s+i.length;for(let o=0,l=s;;o++){let a=i.children[o];if(a.dom==r)return l;l+=a.length+a.breakAfter}}else return i.isText()?e==i.dom?s+t:s+(t?i.length:0):s}domAtPos(e,t){let{tile:i,offset:s}=this.tile.resolveBlock(e,t);return i.isWidget()?i.domPosFor(e,t):i.domIn(s,t)}inlineDOMNearPos(e,t){let i,s=-1,r=!1,o,l=-1,a=!1;return this.tile.blockTiles((h,c)=>{if(h.isWidget()){if(h.flags&32&&c>=e)return!0;h.flags&16&&(r=!0)}else{let f=c+h.length;if(c<=e&&(i=h,s=e-c,r=f=e&&!o&&(o=h,l=e-c,a=c>e),c>e&&o)return!0}}),!i&&!o?this.domAtPos(e,t):(r&&o?i=null:a&&i&&(o=null),i&&t<0||!o?i.domIn(s,t):o.domIn(l,t))}coordsAt(e,t){let{tile:i,offset:s}=this.tile.resolveBlock(e,t);return i.isWidget()?i.widget instanceof Js?null:i.coordsInWidget(s,t,!0):i.coordsIn(s,t)}lineAt(e,t){let{tile:i}=this.tile.resolveBlock(e,t);return i.isLine()?i:null}coordsForChar(e){let{tile:t,offset:i}=this.tile.resolveBlock(e,1);if(!t.isLine())return null;function s(r,o){if(r.isComposite())for(let l of r.children){if(l.length>=o){let a=s(l,o);if(a)return a}if(o-=l.length,o<0)break}else if(r.isText()&&oMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,a=this.view.textDirection==j.LTR,h=0,c=(f,u,d)=>{for(let p=0;ps);p++){let m=f.children[p],g=u+m.length,y=m.dom.getBoundingClientRect(),{height:x}=y;if(d&&!p&&(h+=y.top-d.top),m instanceof mt)g>i&&c(m,u,y);else if(u>=i&&(h>0&&t.push(-h),t.push(x+h),h=0,o)){let S=m.dom.lastChild,A=S?Bi(S):[];if(A.length){let k=A[A.length-1],w=a?k.right-y.left:y.right-k.left;w>l&&(l=w,this.minWidth=r,this.minWidthFrom=u,this.minWidthTo=g)}}d&&p==f.children.length-1&&(h+=d.bottom-y.bottom),u=g+m.breakAfter}};return c(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return getComputedStyle(t.dom).direction=="rtl"?j.RTL:j.LTR}measureTextSize(){let e=this.tile.blockTiles(o=>{if(o.isLine()&&o.children.length&&o.length<=20){let l=0,a;for(let h of o.children){if(!h.isText()||/[^ -~]/.test(h.text))return;let c=Bi(h.dom);if(c.length!=1)return;l+=c[0].width,a=c[0].height}if(l)return{lineHeight:o.dom.getBoundingClientRect().height,charWidth:l/o.length,textHeight:a}}});if(e)return e;let t=document.createElement("div"),i,s,r;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(t);let o=Bi(t.firstChild)[0];i=t.getBoundingClientRect().height,s=o&&o.width?o.width/27:7,r=o&&o.height?o.height:i,t.remove()}),{lineHeight:i,charWidth:s,textHeight:r}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,s=0;;s++){let r=s==t.viewports.length?null:t.viewports[s],o=r?r.from-1:this.view.state.doc.length;if(o>i){let l=(t.lineBlockAt(o).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(M.replace({widget:new Js(l),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!r)break;i=r.to+1}return M.set(e)}updateDeco(){let e=1,t=this.view.state.facet(Ps).map(r=>(this.dynamicDecorationMap[e++]=typeof r=="function")?r(this.view):r),i=!1,s=this.view.state.facet(Lo).map((r,o)=>{let l=typeof r=="function";return l&&(i=!0),l?r(this.view):r});for(s.length&&(this.dynamicDecorationMap[e++]=i,t.push(z.join(s))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];etypeof r=="function"?r(this.view):r)}scrollIntoView(e){var t;if(e.isSnapshot){let c=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=c.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let c of this.view.state.facet(Oc))try{if(c(this.view,e.range,e))return!0}catch(f){Se(this.view.state,f,"scroll handler")}let{range:i}=e,s=this.coordsAt(i.head,(t=i.assoc)!==null&&t!==void 0?t:i.empty?0:i.head>i.anchor?-1:1),r;if(!s)return;!i.empty&&(r=this.coordsAt(i.anchor,i.anchor>i.head?-1:1))&&(s={left:Math.min(s.left,r.left),top:Math.min(s.top,r.top),right:Math.max(s.right,r.right),bottom:Math.max(s.bottom,r.bottom)});let o=zo(this.view),l={left:s.left-o.left,top:s.top-o.top,right:s.right+o.right,bottom:s.bottom+o.bottom},{offsetWidth:a,offsetHeight:h}=this.view.scrollDOM;if(Id(this.view.scrollDOM,l,i.head1&&(s.top>window.pageYOffset+window.visualViewport.offsetTop+window.visualViewport.height||s.bottomi.isWidget()||i.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){Jr(this.tile)}}function Jr(n,e){let t=e?.get(n);if(t!=1){t==null&&n.destroy();for(let i of n.children)Jr(i,e)}}function up(n){return n.node.nodeType==1&&n.node.firstChild&&(n.offset==0||n.node.childNodes[n.offset-1].contentEditable=="false")&&(n.offset==n.node.childNodes.length||n.node.childNodes[n.offset].contentEditable=="false")}function vc(n,e){let t=n.observer.selectionRange;if(!t.focusNode)return null;let i=ic(t.focusNode,t.focusOffset),s=nc(t.focusNode,t.focusOffset),r=i||s;if(s&&i&&s.node!=i.node){let l=J.get(s.node);if(!l||l.isText()&&l.text!=s.node.nodeValue)r=s;else if(n.docView.lastCompositionAfterCursor){let a=J.get(i.node);!a||a.isText()&&a.text!=i.node.nodeValue||(r=s)}}if(n.docView.lastCompositionAfterCursor=r!=i,!r)return null;let o=e-r.offset;return{from:o,to:o+r.node.nodeValue.length,node:r.node}}function dp(n,e,t){let i=vc(n,t);if(!i)return null;let{node:s,from:r,to:o}=i,l=s.nodeValue;if(/[\n\r]/.test(l)||n.state.doc.sliceString(i.from,i.to)!=l)return null;let a=e.invertedDesc;return{range:new qe(a.mapPos(r),a.mapPos(o),r,o),text:s}}function pp(n,e){return n.nodeType!=1?0:(e&&n.childNodes[e-1].contentEditable=="false"?1:0)|(e{ie.from&&(t=!0)}),t}class Js extends Xe{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function Sp(n,e,t=1){let i=n.charCategorizer(e),s=n.doc.lineAt(e),r=e-s.from;if(s.length==0)return b.cursor(e);r==0?t=1:r==s.length&&(t=-1);let o=r,l=r;t<0?o=le(s.text,r,!1):l=le(s.text,r);let a=i(s.text.slice(o,l));for(;o>0;){let h=le(s.text,o,!1);if(i(s.text.slice(h,o))!=a)break;o=h}for(;ln.defaultLineHeight*1.5){let l=n.viewState.heightOracle.textHeight,a=Math.floor((s-t.top-(n.defaultLineHeight-l)*.5)/l);r+=a*n.viewState.heightOracle.lineLength}let o=n.state.sliceDoc(t.from,t.to);return t.from+Nr(o,r,n.state.tabSize)}function eo(n,e,t){let i=n.lineBlockAt(e);if(Array.isArray(i.type)){let s;for(let r of i.type){if(r.from>e)break;if(!(r.toe)return r;(!s||r.type==de.Text&&(s.type!=r.type||(t<0?r.frome)))&&(s=r)}}return s||i}return i}function wp(n,e,t,i){let s=eo(n,e.head,e.assoc||-1),r=!i||s.type!=de.Text||!(n.lineWrapping||s.widgetLineBreaks)?null:n.coordsAtPos(e.assoc<0&&e.head>s.from?e.head-1:e.head);if(r){let o=n.dom.getBoundingClientRect(),l=n.textDirectionAt(s.from),a=n.posAtCoords({x:t==(l==j.LTR)?o.right-1:o.left+1,y:(r.top+r.bottom)/2});if(a!=null)return b.cursor(a,t?-1:1)}return b.cursor(t?s.to:s.from,t?-1:1)}function Zl(n,e,t,i){let s=n.state.doc.lineAt(e.head),r=n.bidiSpans(s),o=n.textDirectionAt(s.from);for(let l=e,a=null;;){let h=Yd(s,r,o,l,t),c=ac;if(!h){if(s.number==(t?n.state.doc.lines:1))return l;c=` +`,s=n.state.doc.line(s.number+(t?1:-1)),r=n.bidiSpans(s),h=n.visualLineSide(s,!t)}if(a){if(!a(c))return l}else{if(!i)return h;a=i(c)}l=h}}function vp(n,e,t){let i=n.state.charCategorizer(e),s=i(t);return r=>{let o=i(r);return s==Z.Space&&(s=o),s==o}}function Tp(n,e,t,i){let s=e.head,r=t?1:-1;if(s==(t?n.state.doc.length:0))return b.cursor(s,e.assoc);let o=e.goalColumn,l,a=n.contentDOM.getBoundingClientRect(),h=n.coordsAtPos(s,e.assoc||((e.empty?t:e.head==e.from)?1:-1)),c=n.documentTop;if(h)o==null&&(o=h.left-a.left),l=r<0?h.top:h.bottom;else{let p=n.viewState.lineBlockAt(s);o==null&&(o=Math.min(a.right-a.left,n.defaultCharacterWidth*(s-p.from))),l=(r<0?p.top:p.bottom)+c}let f=a.left+o,u=n.viewState.heightOracle.textHeight>>1,d=i??u;for(let p=0;;p+=u){let m=l+(d+p)*r,g=to(n,{x:f,y:m},!1,r);if(t?m>a.bottom:ml:x{if(e>r&&es(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:b.cursor(i,in.viewState.docHeight)return new Je(n.state.doc.length,-1);if(h=n.elementAtHeight(a),i==null)break;if(h.type==de.Text){if(i<0?h.ton.viewport.to)break;let u=n.docView.coordsAt(i<0?h.from:h.to,i>0?-1:1);if(u&&(i<0?u.top<=a+r:u.bottom>=a+r))break}let f=n.viewState.heightOracle.textHeight/2;a=i>0?h.bottom+f:h.top-f}if(n.viewport.from>=h.to||n.viewport.to<=h.from){if(t)return null;if(h.type==de.Text){let f=kp(n,s,h,o,l);return new Je(f,f==h.from?1:-1)}}if(h.type!=de.Text)return a<(h.top+h.bottom)/2?new Je(h.from,1):new Je(h.to,-1);let c=n.docView.lineAt(h.from,2);return(!c||c.length!=h.length)&&(c=n.docView.lineAt(h.from,-2)),new Cp(n,o,l,n.textDirectionAt(h.from)).scanTile(c,h.from)}class Cp{constructor(e,t,i,s){this.view=e,this.x=t,this.y=i,this.baseDir=s,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to1||i.length&&(i[0].level!=this.baseDir||i[0].to+s.from>1;t:if(r.has(p)){let g=i+Math.floor(Math.random()*d);for(let y=0;y1)){if(y.bottomthis.y)(!a||a.top>y.top)&&(a=y),x=-1;else{let S=y.left>this.x?this.x-y.left:y.rightf.top)return this.y=l.bottom-1,this.scan(e,t);if(a&&a.top(f.left+f.right)/2==u}}scanText(e,t){let i=[];for(let r=0;r{let o=i[r]-t,l=i[r+1]-t;return Zi(e.dom,o,l).getClientRects()});return s.after?new Je(i[s.i+1],-1):new Je(i[s.i],1)}scanTile(e,t){if(!e.length)return new Je(t,1);if(e.children.length==1){let l=e.children[0];if(l.isText())return this.scanText(l,t);if(l.isComposite())return this.scanTile(l,t)}let i=[t];for(let l=0,a=t;l{let a=e.children[l];return a.flags&48?null:(a.dom.nodeType==1?a.dom:Zi(a.dom,0,a.length)).getClientRects()}),r=e.children[s.i],o=i[s.i];return r.isText()?this.scanText(r,o):r.isComposite()?this.scanTile(r,o):s.after?new Je(i[s.i+1],-1):new Je(o,1)}}const Kt="￿";class Qp{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(N.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Kt}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let s=e;;){this.findPointBefore(i,s);let r=this.text.length;this.readNode(s);let o=J.get(s),l=s.nextSibling;if(l==t){o?.breakAfter&&!l&&i!=this.view.contentDOM&&this.lineBreak();break}let a=J.get(l);(o&&a?o.breakAfter:(o?o.breakAfter:os(s))||os(l)&&(s.nodeName!="BR"||o?.isWidget())&&this.text.length>r)&&!Ap(l,t)&&this.lineBreak(),s=l}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let r=-1,o=1,l;if(this.lineSeparator?(r=t.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(l=s.exec(t))&&(r=l.index,o=l[0].length),this.append(t.slice(i,r<0?t.length:r)),r<0)break;if(this.lineBreak(),o>1)for(let a of this.points)a.node==e&&a.pos>this.text.length&&(a.pos-=o-1);i=r+o}}readNode(e){let t=J.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let s=i.iter();!s.next().done;)s.lineBreak?this.lineBreak():this.append(s.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(Pp(e,i.node,i.offset)?t:0))}}function Pp(n,e,t){for(;;){if(!e||t-1;let{impreciseHead:r,impreciseAnchor:o}=e.docView,l=e.state.selection;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=Cc(e.docView.tile,t,i,0))){let a=r||o?[]:Dp(e),h=new Qp(a,e);h.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=h.text,this.newSel=Ep(a,this.bounds.from)}else{let a=e.observer.selectionRange,h=r&&r.node==a.focusNode&&r.offset==a.focusOffset||!jr(e.contentDOM,a.focusNode)?l.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),c=o&&o.node==a.anchorNode&&o.offset==a.anchorOffset||!jr(e.contentDOM,a.anchorNode)?l.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),f=e.viewport;if((P.ios||P.chrome)&&l.main.empty&&h!=c&&(f.from>0||f.to-1&&l.ranges.length>1)this.newSel=l.replaceRange(b.range(c,h));else if(e.lineWrapping&&c==h&&!(l.main.empty&&l.main.head==h)&&e.inputState.lastTouchTime>Date.now()-100){let u=e.coordsAtPos(h,-1),d=0;u&&(d=e.inputState.lastTouchY<=u.bottom?-1:1),this.newSel=b.create([b.cursor(h,d)])}else this.newSel=b.single(c,h)}}}function Cc(n,e,t,i){if(n.isComposite()){let s=-1,r=-1,o=-1,l=-1;for(let a=0,h=i,c=i;at)return Cc(f,e,t,h);if(u>=e&&s==-1&&(s=a,r=h),h>t&&f.dom.parentNode==n.dom){o=a,l=c;break}c=u,h=u+f.breakAfter}return{from:r,to:l<0?i+n.length:l,startDOM:(s?n.children[s-1].dom.nextSibling:null)||n.dom.firstChild,endDOM:o=0?n.children[o].dom:null}}else return n.isText()?{from:i,to:i+n.length,startDOM:n.dom,endDOM:n.dom.nextSibling}:null}function Qc(n,e){let t,{newSel:i}=e,{state:s}=n,r=s.selection.main,o=n.inputState.lastKeyTime>Date.now()-100?n.inputState.lastKeyCode:-1;if(e.bounds){let{from:l,to:a}=e.bounds,h=r.from,c=null;(o===8||P.android&&e.text.length=l&&r.to<=a&&(e.typeOver||f!=e.text)&&f.slice(0,r.from-l)==e.text.slice(0,r.from-l)&&f.slice(r.to-l)==e.text.slice(u=e.text.length-(f.length-(r.to-l)))?t={from:r.from,to:r.to,insert:V.of(e.text.slice(r.from-l,u).split(Kt))}:(d=Pc(f,e.text,h-l,c))&&(P.chrome&&o==13&&d.toB==d.from+2&&e.text.slice(d.from,d.toB)==Kt+Kt&&d.toB--,t={from:l+d.from,to:l+d.toA,insert:V.of(e.text.slice(d.from,d.toB).split(Kt))})}else i&&(!n.hasFocus&&s.facet(pt)||cs(i,r))&&(i=null);if(!t&&!i)return!1;if((P.mac||P.android)&&t&&t.from==t.to&&t.from==r.head-1&&/^\. ?$/.test(t.insert.toString())&&n.contentDOM.getAttribute("autocorrect")=="off"?(i&&t.insert.length==2&&(i=b.single(i.main.anchor-1,i.main.head-1)),t={from:t.from,to:t.to,insert:V.of([t.insert.toString().replace("."," ")])}):s.doc.lineAt(r.from).toDate.now()-50?t={from:r.from,to:r.to,insert:s.toText(n.inputState.insertingText)}:P.chrome&&t&&t.from==t.to&&t.from==r.head&&t.insert.toString()==` + `&&n.lineWrapping&&(i&&(i=b.single(i.main.anchor-1,i.main.head-1)),t={from:r.from,to:r.to,insert:V.of([" "])}),t)return Io(n,t,i,o);if(i&&!cs(i,r)){let l=!1,a="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(l=!0),a=n.inputState.lastSelectionOrigin,a=="select.pointer"&&(i=Tc(s.facet(cn).map(h=>h(n)),i))),n.dispatch({selection:i,scrollIntoView:l,userEvent:a}),!0}else return!1}function Io(n,e,t,i=-1){if(P.ios&&n.inputState.flushIOSKey(e))return!0;let s=n.state.selection.main;if(P.android&&(e.to==s.to&&(e.from==s.from||e.from==s.from-1&&n.state.sliceDoc(e.from,s.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&li(n.contentDOM,"Enter",13)||(e.from==s.from-1&&e.to==s.to&&e.insert.length==0||i==8&&e.insert.lengths.head)&&li(n.contentDOM,"Backspace",8)||e.from==s.from&&e.to==s.to+1&&e.insert.length==0&&li(n.contentDOM,"Delete",46)))return!0;let r=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let o,l=()=>o||(o=Mp(n,e,t));return n.state.facet(dc).some(a=>a(n,e.from,e.to,r,l))||n.dispatch(l()),!0}function Mp(n,e,t){let i,s=n.state,r=s.selection.main,o=-1;if(e.from==e.to&&e.fromr.to){let a=e.fromf(n)),h,a);e.from==c&&(o=c)}if(o>-1)i={changes:e,selection:b.cursor(e.from+e.insert.length,-1)};else if(e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let a=r.frome.to?s.sliceDoc(e.to,r.to):"";i=s.replaceSelection(n.state.toText(a+e.insert.sliceString(0,void 0,n.state.lineBreak)+h))}else{let a=s.changes(e),h=t&&t.main.to<=a.newLength?t.main:void 0;if(s.selection.ranges.length>1&&(n.inputState.composing>=0||n.inputState.compositionPendingChange)&&e.to<=r.to+10&&e.to>=r.to-10){let c=n.state.sliceDoc(e.from,e.to),f,u=t&&vc(n,t.main.head);if(u){let p=e.insert.length-(e.to-e.from);f={from:u.from,to:u.to-p}}else f=n.state.doc.lineAt(r.head);let d=r.to-e.to;i=s.changeByRange(p=>{if(p.from==r.from&&p.to==r.to)return{changes:a,range:h||p.map(a)};let m=p.to-d,g=m-c.length;if(n.state.sliceDoc(g,m)!=c||m>=f.from&&g<=f.to)return{range:p};let y=s.changes({from:g,to:m,insert:e.insert}),x=p.to-r.to;return{changes:y,range:h?b.range(Math.max(0,h.anchor+x),Math.max(0,h.head+x)):p.map(y)}})}else i={changes:a,selection:h&&s.selection.replaceRange(h)}}let l="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,l+=".compose",n.inputState.compositionFirstChange&&(l+=".start",n.inputState.compositionFirstChange=!1)),s.update(i,{userEvent:l,scrollIntoView:!0})}function Pc(n,e,t,i){let s=Math.min(n.length,e.length),r=0;for(;r0&&l>0&&n.charCodeAt(o-1)==e.charCodeAt(l-1);)o--,l--;if(i=="end"){let a=Math.max(0,r-Math.min(o,l));t-=o+a-r}if(o=o?r-t:0;r-=a,l=r+(l-o),o=r}else if(l=l?r-t:0;r-=a,o=r+(o-l),l=r}return{from:r,toA:o,toB:l}}function Dp(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:r}=n.observer.selectionRange;return t&&(e.push(new Yl(t,i)),(s!=t||r!=i)&&e.push(new Yl(s,r))),e}function Ep(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?b.single(t+e,i+e):null}function cs(n,e){return e.head==n.main.head&&e.anchor==n.main.anchor}class Wp{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,P.safari&&e.contentDOM.addEventListener("input",()=>null),P.gecko&&Gp(e.contentDOM.ownerDocument)}handleEvent(e){!Vp(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let s of i.observers)s(this.view,t);for(let s of i.handlers){if(t.defaultPrevented)break;if(s(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=qp(e),i=this.handlers,s=this.view.contentDOM;for(let r in t)if(r!="scroll"){let o=!t[r].handlers.length,l=i[r];l&&o!=!l.handlers.length&&(s.removeEventListener(r,this.handleEvent),l=null),l||s.addEventListener(r,this.handleEvent,{passive:o})}for(let r in i)r!="scroll"&&!t[r]&&s.removeEventListener(r,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&Rc.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),P.android&&P.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return P.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&!e.shiftKey&&((t=Ac.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||Bp.indexOf(e.key)>-1&&e.ctrlKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from0?!0:P.safari&&!P.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Kl(n,e){return(t,i)=>{try{return e.call(n,i,t)}catch(s){Se(t.state,s)}}}function qp(n){let e=Object.create(null);function t(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of n){let s=i.spec,r=s&&s.plugin.domEventHandlers,o=s&&s.plugin.domEventObservers;if(r)for(let l in r){let a=r[l];a&&t(l).handlers.push(Kl(i.value,a))}if(o)for(let l in o){let a=o[l];a&&t(l).observers.push(Kl(i.value,a))}}for(let i in Ve)t(i).handlers.push(Ve[i]);for(let i in Ae)t(i).observers.push(Ae[i]);return e}const Ac=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Bp="dthko",Rc=[16,17,18,20,91,92,224,225],Qn=6;function Pn(n){return Math.max(0,n)*.7+8}function $p(n,e){return Math.max(Math.abs(n.clientX-e.clientX),Math.abs(n.clientY-e.clientY))}class Lp{constructor(e,t,i,s){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=Jh(e.contentDOM),this.atoms=e.state.facet(cn).map(o=>o(e));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(N.allowMultipleSelections)&&zp(e,t),this.dragging=Np(e,t)&&Ec(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&$p(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,i=0,s=0,r=0,o=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:s,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:r,bottom:l}=this.scrollParents.y.getBoundingClientRect());let a=zo(this.view);e.clientX-a.left<=s+Qn?t=-Pn(s-e.clientX):e.clientX+a.right>=o-Qn&&(t=Pn(e.clientX-o)),e.clientY-a.top<=r+Qn?i=-Pn(r-e.clientY):e.clientY+a.bottom>=l-Qn&&(i=Pn(e.clientY-l)),this.setScrollSpeed(t,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}select(e){let{view:t}=this,i=Tc(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!i.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function zp(n,e){let t=n.state.facet(hc);return t.length?t[0](e):P.mac?e.metaKey:e.ctrlKey}function Ip(n,e){let t=n.state.facet(cc);return t.length?t[0](e):P.mac?!e.altKey:!e.ctrlKey}function Np(n,e){let{main:t}=n.state.selection;if(t.empty)return!1;let i=ji(n.root);if(!i||i.rangeCount==0)return!0;let s=i.getRangeAt(0).getClientRects();for(let r=0;r=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function Vp(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,i;t!=n.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(i=J.get(t))&&i.isWidget()&&!i.isHidden&&i.widget.ignoreEvent(e))return!1;return!0}const Ve=Object.create(null),Ae=Object.create(null),Mc=P.ie&&P.ie_version<15||P.ios&&P.webkit_version<604;function Xp(n){let e=n.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{n.focus(),t.remove(),Dc(n,t.value)},50)}function Ms(n,e,t){for(let i of n.facet(e))t=i(t,n);return t}function Dc(n,e){e=Ms(n.state,qo,e);let{state:t}=n,i,s=1,r=t.toText(e),o=r.lines==t.selection.ranges.length;if(io!=null&&t.selection.ranges.every(a=>a.empty)&&io==r.toString()){let a=-1;i=t.changeByRange(h=>{let c=t.doc.lineAt(h.from);if(c.from==a)return{range:h};a=c.from;let f=t.toText((o?r.line(s++).text:e)+t.lineBreak);return{changes:{from:c.from,insert:f},range:b.cursor(h.from+f.length)}})}else o?i=t.changeByRange(a=>{let h=r.line(s++);return{changes:{from:a.from,to:a.to,insert:h.text},range:b.cursor(a.from+h.length)}}):i=t.replaceSelection(r);n.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}Ae.scroll=n=>{n.inputState.lastScrollTop=n.scrollDOM.scrollTop,n.inputState.lastScrollLeft=n.scrollDOM.scrollLeft};Ae.wheel=Ae.mousewheel=n=>{n.inputState.lastWheelEvent=Date.now()};Ve.keydown=(n,e)=>(n.inputState.setSelectionOrigin("select"),e.keyCode==27&&n.inputState.tabFocusMode!=0&&(n.inputState.tabFocusMode=Date.now()+2e3),!1);Ae.touchstart=(n,e)=>{let t=n.inputState,i=e.targetTouches[0];t.lastTouchTime=Date.now(),i&&(t.lastTouchX=i.clientX,t.lastTouchY=i.clientY),t.setSelectionOrigin("select.pointer")};Ae.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer")};Ve.mousedown=(n,e)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let i of n.state.facet(fc))if(t=i(n,e),t)break;if(!t&&e.button==0&&(t=_p(n,e)),t){let i=!n.hasFocus;n.inputState.startMouseSelection(new Lp(n,e,t,i)),i&&n.observer.ignore(()=>{ec(n.contentDOM);let r=n.root.activeElement;r&&!r.contains(n.contentDOM)&&r.blur()});let s=n.inputState.mouseSelection;if(s)return s.start(e),s.dragging===!1}else n.inputState.setSelectionOrigin("select.pointer");return!1};function Jl(n,e,t,i){if(i==1)return b.cursor(e,t);if(i==2)return Sp(n.state,e,t);{let s=n.docView.lineAt(e,t),r=n.state.doc.lineAt(s?s.posAtEnd:e),o=s?s.posAtStart:r.from,l=s?s.posAtEnd:r.to;return lDate.now()-400&&Math.abs(e.clientX-n.clientX)<2&&Math.abs(e.clientY-n.clientY)<2?(ta+1)%3:1}function _p(n,e){let t=n.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),i=Ec(e),s=n.state.selection;return{update(r){r.docChanged&&(t.pos=r.changes.mapPos(t.pos),s=s.map(r.changes))},get(r,o,l){let a=n.posAndSideAtCoords({x:r.clientX,y:r.clientY},!1),h,c=Jl(n,a.pos,a.assoc,i);if(t.pos!=a.pos&&!o){let f=Jl(n,t.pos,t.assoc,i),u=Math.min(f.from,c.from),d=Math.max(f.to,c.to);c=u1&&(h=Up(s,a.pos))?h:l?s.addRange(c):b.create([c])}}}function Up(n,e){for(let t=0;t=e)return b.create(n.ranges.slice(0,t).concat(n.ranges.slice(t+1)),n.mainIndex==t?0:n.mainIndex-(n.mainIndex>t?1:0))}return null}Ve.dragstart=(n,e)=>{let{selection:{main:t}}=n.state;if(e.target.draggable){let s=n.docView.tile.nearest(e.target);if(s&&s.isWidget()){let r=s.posAtStart,o=r+s.length;(r>=t.to||o<=t.from)&&(t=b.range(r,o))}}let{inputState:i}=n;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",Ms(n.state,Bo,n.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1};Ve.dragend=n=>(n.inputState.draggedContent=null,!1);function na(n,e,t,i){if(t=Ms(n.state,qo,t),!t)return;let s=n.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:r}=n.inputState,o=i&&r&&Ip(n,e)?{from:r.from,to:r.to}:null,l={from:s,insert:t},a=n.state.changes(o?[o,l]:l);n.focus(),n.dispatch({changes:a,selection:{anchor:a.mapPos(s,-1),head:a.mapPos(s,1)},userEvent:o?"move.drop":"input.drop"}),n.inputState.draggedContent=null}Ve.drop=(n,e)=>{if(!e.dataTransfer)return!1;if(n.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let i=Array(t.length),s=0,r=()=>{++s==t.length&&na(n,e,i.filter(o=>o!=null).join(n.state.lineBreak),!1)};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(i[o]=l.result),r()},l.readAsText(t[o])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return na(n,e,i,!0),!0}return!1};Ve.paste=(n,e)=>{if(n.state.readOnly)return!0;n.observer.flush();let t=Mc?null:e.clipboardData;return t?(Dc(n,t.getData("text/plain")||t.getData("text/uri-list")),!0):(Xp(n),!1)};function Hp(n,e){let t=n.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),n.focus()},50)}function jp(n){let e=[],t=[],i=!1;for(let s of n.selection.ranges)s.empty||(e.push(n.sliceDoc(s.from,s.to)),t.push(s));if(!e.length){let s=-1;for(let{from:r}of n.selection.ranges){let o=n.doc.lineAt(r);o.number>s&&(e.push(o.text),t.push({from:o.from,to:Math.min(n.doc.length,o.to+1)})),s=o.number}i=!0}return{text:Ms(n,Bo,e.join(n.lineBreak)),ranges:t,linewise:i}}let io=null;Ve.copy=Ve.cut=(n,e)=>{if(!qi(n.contentDOM,n.observer.selectionRange))return!1;let{text:t,ranges:i,linewise:s}=jp(n.state);if(!t&&!s)return!1;io=s?t:null,e.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let r=Mc?null:e.clipboardData;return r?(r.clearData(),r.setData("text/plain",t),!0):(Hp(n,t),!1)};const Wc=ot.define();function qc(n,e){let t=[];for(let i of n.facet(pc)){let s=i(n,e);s&&t.push(s)}return t.length?n.update({effects:t,annotations:Wc.of(!0)}):null}function Bc(n){setTimeout(()=>{let e=n.hasFocus;if(e!=n.inputState.notifiedFocused){let t=qc(n.state,e);t?n.dispatch(t):n.update([])}},10)}Ae.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),Bc(n)};Ae.blur=n=>{n.observer.clearSelectionRange(),Bc(n)};Ae.compositionstart=Ae.compositionupdate=n=>{n.observer.editContext||(n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=!0),n.inputState.composing<0&&(n.inputState.composing=0))};Ae.compositionend=n=>{n.observer.editContext||(n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=!0,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,P.chrome&&P.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.hasComposition&&n.update([])},50))};Ae.contextmenu=n=>{n.inputState.lastContextMenu=Date.now()};Ve.beforeinput=(n,e)=>{var t,i;if((e.inputType=="insertText"||e.inputType=="insertCompositionText")&&(n.inputState.insertingText=e.data,n.inputState.insertingTextAt=Date.now()),e.inputType=="insertReplacementText"&&n.observer.editContext){let r=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),o=e.getTargetRanges();if(r&&o.length){let l=o[0],a=n.posAtDOM(l.startContainer,l.startOffset),h=n.posAtDOM(l.endContainer,l.endOffset);return Io(n,{from:a,to:h,insert:n.state.toText(r)},null),!0}}let s;if(P.chrome&&P.android&&(s=Ac.find(r=>r.inputType==e.inputType))&&(n.observer.delayAndroidKey(s.key,s.keyCode),s.key=="Backspace"||s.key=="Delete")){let r=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>r+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus())},100)}return P.ios&&e.inputType=="deleteContentForward"&&n.observer.flushSoon(),P.safari&&e.inputType=="insertText"&&n.inputState.composing>=0&&setTimeout(()=>Ae.compositionend(n,e),20),!1};const sa=new Set;function Gp(n){sa.has(n)||(sa.add(n),n.addEventListener("copy",()=>{}),n.addEventListener("cut",()=>{}))}const ra=["pre-wrap","normal","pre-line","break-spaces"];let pi=!1;function oa(){pi=!1}class Zp{constructor(e){this.lineWrapping=e,this.doc=V.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return ra.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i-1,a=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=l||Math.abs(i-this.charWidth)>.1;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=i,this.textHeight=s,this.lineLength=r,a){this.heightSamples={};for(let h=0;h0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Hn&&(pi=!0),this.height=e)}replace(e,t,i){return ke.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,s){let r=this,o=i.doc;for(let l=s.length-1;l>=0;l--){let{fromA:a,toA:h,fromB:c,toB:f}=s[l],u=r.lineAt(a,G.ByPosNoHeight,i.setDoc(t),0,0),d=u.to>=h?u:r.lineAt(h,G.ByPosNoHeight,i,0,0);for(f+=d.to-h,h=d.to;l>0&&u.from<=s[l-1].toA;)a=s[l-1].fromA,c=s[l-1].fromB,l--,ar*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),i+=1+l.break,s-=l.size}else if(r>s*2){let l=e[i];l.break?e.splice(i,1,l.left,null,l.right):e.splice(i,1,l.left,l.right),i+=2+l.break,r-=l.size}else break;else if(s=r&&o(this.lineAt(0,G.ByPos,i,s,r))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more&&this.setMeasuredHeight(s),this.outdated=!1,this}toString(){return`block(${this.length})`}}class De extends $c{constructor(e,t,i){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=i}mainBlock(e,t){return new Ie(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,i){let s=i[0];return i.length==1&&(s instanceof De||s instanceof ce&&s.flags&4)&&Math.abs(this.length-s.length)<10?(s instanceof ce?s=new De(s.length,this.height,this.spaceAbove):s.height=this.height,this.outdated||(s.outdated=!1),s):ke.of(i)}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more?this.setMeasuredHeight(s):(i||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ce extends ke{constructor(e){super(e,0)}heightMetrics(e,t){let i=e.doc.lineAt(t).number,s=e.doc.lineAt(t+this.length).number,r=s-i+1,o,l=0;if(e.lineWrapping){let a=Math.min(this.height,e.lineHeight*r);o=a/r,this.length>r+1&&(l=(this.height-a)/(this.length-r-1))}else o=this.height/r;return{firstLine:i,lastLine:s,perLine:o,perChar:l}}blockAt(e,t,i,s){let{firstLine:r,lastLine:o,perLine:l,perChar:a}=this.heightMetrics(t,s);if(t.lineWrapping){let h=s+(e0){let r=i[i.length-1];r instanceof ce?i[i.length-1]=new ce(r.length+s):i.push(null,new ce(s-1))}if(e>0){let r=i[0];r instanceof ce?i[0]=new ce(e+r.length):i.unshift(new ce(e-1),null)}return ke.of(i)}decomposeLeft(e,t){t.push(new ce(e-1),null)}decomposeRight(e,t){t.push(null,new ce(this.length-e-1))}updateHeight(e,t=0,i=!1,s){let r=t+this.length;if(s&&s.from<=t+this.length&&s.more){let o=[],l=Math.max(t,s.from),a=-1;for(s.from>t&&o.push(new ce(s.from-t-1).updateHeight(e,t));l<=r&&s.more;){let c=e.doc.lineAt(l).length;o.length&&o.push(null);let f=s.heights[s.index++],u=0;f<0&&(u=-f,f=s.heights[s.index++]),a==-1?a=f:Math.abs(f-a)>=Hn&&(a=-2);let d=new De(c,f,u);d.outdated=!1,o.push(d),l+=c+1}l<=r&&o.push(null,new ce(r-l).updateHeight(e,l));let h=ke.of(o);return(a<0||Math.abs(h.height-this.height)>=Hn||Math.abs(a-this.heightMetrics(e,t).perLine)>=Hn)&&(pi=!0),fs(this,h)}else(i||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Jp extends ke{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,t,i,s){let r=i+this.left.height;return el))return h;let c=t==G.ByPosNoHeight?G.ByPosNoHeight:G.ByPos;return a?h.join(this.right.lineAt(l,c,i,o,l)):this.left.lineAt(l,c,i,s,r).join(h)}forEachLine(e,t,i,s,r,o){let l=s+this.left.height,a=r+this.left.length+this.break;if(this.break)e=a&&this.right.forEachLine(e,t,i,l,a,o);else{let h=this.lineAt(a,G.ByPos,i,s,r);e=e&&h.from<=t&&o(h),t>h.to&&this.right.forEachLine(h.to+1,t,i,l,a,o)}}replace(e,t,i){let s=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-s,t-s,i));let r=[];e>0&&this.decomposeLeft(e,r);let o=r.length;for(let l of i)r.push(l);if(e>0&&la(r,o-1),t=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,s=i+this.break;if(e>=s)return this.right.decomposeRight(e-s,t);e2*t.size||t.size>2*e.size?ke.of(this.break?[e,null,t]:[e,t]):(this.left=fs(this.left,e),this.right=fs(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,s){let{left:r,right:o}=this,l=t+r.length+this.break,a=null;return s&&s.from<=t+r.length&&s.more?a=r=r.updateHeight(e,t,i,s):r.updateHeight(e,t,i),s&&s.from<=l+o.length&&s.more?a=o=o.updateHeight(e,l,i,s):o.updateHeight(e,l,i),a?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function la(n,e){let t,i;n[e]==null&&(t=n[e-1])instanceof ce&&(i=n[e+1])instanceof ce&&n.splice(e-1,3,new ce(t.length+1+i.length))}const em=5;class No{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let i=Math.min(t,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof De?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new De(i-this.pos,-1,0)),this.writtenTo=i,t>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e=em)&&this.addLineDeco(s,r,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new De(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let i=new ce(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof De)return e;let t=new De(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,i){let s=this.ensureLine();s.length+=i,s.collapsed+=i,s.widgetHeight=Math.max(s.widgetHeight,e),s.breaks+=t,this.writtenTo=this.pos=this.pos+i}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof De)&&!this.isCovered?this.nodes.push(new De(0,-1,0)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&f.overflow!="visible"){let u=c.getBoundingClientRect();r=Math.max(r,u.left),o=Math.min(o,u.right),l=Math.max(l,u.top),a=Math.min(h==n.parentNode?s.innerHeight:a,u.bottom)}h=f.position=="absolute"||f.position=="fixed"?c.offsetParent:c.parentNode}else if(h.nodeType==11)h=h.host;else break;return{left:r-t.left,right:Math.max(r,o)-t.left,top:l-(t.top+e),bottom:Math.max(l,a)-(t.top+e)}}function sm(n){let e=n.getBoundingClientRect(),t=n.ownerDocument.defaultView||window;return e.left0&&e.top0}function rm(n,e){let t=n.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class tr{constructor(e,t,i,s){this.from=e,this.to=t,this.size=i,this.displaySize=s}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;itypeof s!="function"&&s.class=="cm-lineWrapping");this.heightOracle=new Zp(i),this.stateDeco=ca(t),this.heightMap=ke.empty().applyChanges(this.stateDeco,V.empty,this.heightOracle.setDoc(t.doc),[new qe(0,0,0,t.doc.length)]);for(let s=0;s<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());s++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=M.set(this.lineGaps.map(s=>s.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let s=i?t.head:t.anchor;if(!e.some(({from:r,to:o})=>s>=r&&s<=o)){let{from:r,to:o}=this.lineBlockAt(s);e.push(new An(r,o))}}return this.viewports=e.sort((i,s)=>i.from-s.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?ha:new Vo(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Ri(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=ca(this.state);let s=e.changedRanges,r=qe.extendWithRanges(s,tm(i,this.stateDeco,e?e.changes:se.empty(this.state.doc.length))),o=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);oa(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),(this.heightMap.height!=o||pi)&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let a=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let h=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,e.flags|=this.updateForViewport(),(h||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(gc)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:e}=this,t=e.contentDOM,i=window.getComputedStyle(t),s=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?j.RTL:j.LTR;let o=this.heightOracle.mustRefreshForWrapping(r)||this.mustMeasureContent==="refresh",l=t.getBoundingClientRect(),a=o||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let h=0,c=0;if(l.width&&l.height){let{scaleX:k,scaleY:w}=Kh(t,l);(k>.005&&Math.abs(this.scaleX-k)>.005||w>.005&&Math.abs(this.scaleY-w)>.005)&&(this.scaleX=k,this.scaleY=w,h|=16,o=a=!0)}let f=(parseInt(i.paddingTop)||0)*this.scaleY,u=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=u)&&(this.paddingTop=f,this.paddingBottom=u,h|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(s.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,h|=16);let d=Jh(this.view.contentDOM,!1).y;d!=this.scrollParent&&(this.scrollParent=d,this.scrollAnchorHeight=-1,this.scrollOffset=0);let p=this.getScrollOffset();this.scrollOffset!=p&&(this.scrollAnchorHeight=-1,this.scrollOffset=p),this.scrolledToBottom=tc(this.scrollParent||e.win);let m=(this.printing?rm:nm)(t,this.paddingTop),g=m.top-this.pixelViewport.top,y=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let x=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(x!=this.inView&&(this.inView=x,x&&(a=!0)),!this.inView&&!this.scrollTarget&&!sm(e.dom))return 0;let S=l.width;if((this.contentDOMWidth!=S||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,h|=16),a){let k=e.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(k)&&(o=!0),o||s.lineWrapping&&Math.abs(S-this.contentDOMWidth)>s.charWidth){let{lineHeight:w,charWidth:v,textHeight:E}=e.docView.measureTextSize();o=w>0&&s.refresh(r,w,v,E,Math.max(5,S/v),k),o&&(e.docView.minWidth=0,h|=16)}g>0&&y>0?c=Math.max(g,y):g<0&&y<0&&(c=Math.min(g,y)),oa();for(let w of this.viewports){let v=w.from==this.viewport.from?k:e.docView.measureVisibleLineHeights(w);this.heightMap=(o?ke.empty().applyChanges(this.stateDeco,V.empty,this.heightOracle,[new qe(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(s,0,o,new Yp(w.from,v))}pi&&(h|=2)}let A=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return A&&(h&2&&(h|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),h|=this.updateForViewport()),(h&2||A)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),s=this.heightMap,r=this.heightOracle,{visibleTop:o,visibleBottom:l}=this,a=new An(s.lineAt(o-i*1e3,G.ByHeight,r,0,0).from,s.lineAt(l+(1-i)*1e3,G.ByHeight,r,0,0).to);if(t){let{head:h}=t.range;if(ha.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=s.lineAt(h,G.ByPos,r,0,0),u;t.y=="center"?u=(f.top+f.bottom)/2-c/2:t.y=="start"||t.y=="nearest"&&h=l+Math.max(10,Math.min(i,250)))&&s>o-2*1e3&&r>1,o=s<<1;if(this.defaultTextDirection!=j.LTR&&!i)return[];let l=[],a=(c,f,u,d)=>{if(f-cc&&yy.from>=u.from&&y.to<=u.to&&Math.abs(y.from-c)y.fromx));if(!g){if(fS.from<=f&&S.to>=f)){let S=t.moveToLineBoundary(b.cursor(f),!1,!0).head;S>c&&(f=S)}let y=this.gapSize(u,c,f,d),x=i||y<2e6?y:2e6;g=new tr(c,f,y,x)}l.push(g)},h=c=>{if(c.length2e6)for(let w of e)w.from>=c.from&&w.fromc.from&&a(c.from,d,c,f),pt.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let i=[];z.spans(t,this.viewport.from,this.viewport.to,{span(r,o){i.push({from:r,to:o})},point(){}},20);let s=0;if(i.length!=this.visibleRanges.length)s=12;else for(let r=0;r=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||Ri(this.heightMap.lineAt(e,G.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||Ri(this.heightMap.lineAt(this.scaler.fromDOM(e),G.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return(this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top)*this.scaleY}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Ri(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class An{constructor(e,t){this.from=e,this.to=t}}function lm(n,e,t){let i=[],s=n,r=0;return z.spans(t,n,e,{span(){},point(o,l){o>s&&(i.push({from:s,to:o}),r+=o-s),s=l}},20),s=1)return e[e.length-1].to;let i=Math.floor(n*t);for(let s=0;;s++){let{from:r,to:o}=e[s],l=o-r;if(i<=l)return r+i;i-=l}}function Mn(n,e){let t=0;for(let{from:i,to:s}of n.ranges){if(e<=s){t+=e-i;break}t+=s-i}return t/n.total}function am(n,e){for(let t of n)if(e(t))return t}const ha={toDOM(n){return n},fromDOM(n){return n},scale:1,eq(n){return n==this}};function ca(n){let e=n.facet(Ps).filter(i=>typeof i!="function"),t=n.facet(Lo).filter(i=>typeof i!="function");return t.length&&e.push(z.join(t)),e}class Vo{constructor(e,t,i){let s=0,r=0,o=0;this.viewports=i.map(({from:l,to:a})=>{let h=t.lineAt(l,G.ByPos,e,0,0).top,c=t.lineAt(a,G.ByPos,e,0,0).bottom;return s+=c-h,{from:l,to:a,top:h,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(t.height-s);for(let l of this.viewports)l.domTop=o+(l.top-r)*this.scale,o=l.domBottom=l.domTop+(l.bottom-l.top),r=l.bottom}toDOM(e){for(let t=0,i=0,s=0;;t++){let r=tt.from==e.viewports[i].from&&t.to==e.viewports[i].to):!1}}function Ri(n,e){if(e.scale==1)return n;let t=e.toDOM(n.top),i=e.toDOM(n.bottom);return new Ie(n.from,n.length,t,i-t,Array.isArray(n._content)?n._content.map(s=>Ri(s,e)):n._content)}const Dn=Q.define({combine:n=>n.join(" ")}),no=Q.define({combine:n=>n.indexOf(!0)>-1}),so=Ct.newName(),Lc=Ct.newName(),zc=Ct.newName(),Ic={"&light":"."+Lc,"&dark":"."+zc};function ro(n,e,t){return new Ct(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,s=>{if(s=="&")return n;if(!t||!t[s])throw new RangeError(`Unsupported selector: ${s}`);return t[s]}):n+" "+i}})}const hm=ro("."+so,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Ic),cm={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},ir=P.ie&&P.ie_version<=11;class fm{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new Nd,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let i of t)this.queue.push(i);(P.ie&&P.ie_version<=11||P.ios&&e.composing)&&t.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&P.android&&e.constructor.EDIT_CONTEXT!==!1&&!(P.chrome&&P.chrome_version<126)&&(this.editContext=new dm(e),e.state.facet(pt)&&(e.contentDOM.editContext=this.editContext.editContext)),ir&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,i)=>t!=e[i]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(pt)?i.root.activeElement!=this.dom:!qi(this.dom,s))return;let r=s.anchorNode&&i.docView.tile.nearest(s.anchorNode);if(r&&r.isWidget()&&r.widget.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(P.ie&&P.ie_version<=11||P.android&&P.chrome)&&!i.state.selection.main.empty&&s.focusNode&&$i(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=ji(e.root);if(!t)return!1;let i=P.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&um(this.view,t)||t;if(!i||this.selectionRange.eq(i))return!1;let s=qi(this.dom,i);return s&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let r=this.delayedAndroidKey;r&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=r.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&r.force&&li(this.dom,r.key,r.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(s)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,i=-1,s=!1;for(let r of e){let o=this.readMutation(r);o&&(o.typeOver&&(s=!0),t==-1?{from:t,to:i}=o:(t=Math.min(o.from,t),i=Math.max(o.to,i)))}return{from:t,to:i,typeOver:s}}readChange(){let{from:e,to:t,typeOver:i}=this.processRecords(),s=this.selectionChanged&&qi(this.dom,this.selectionRange);if(e<0&&!s)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new Rp(this.view,e,t,i);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let i=this.view.state,s=Qc(this.view,t);return this.view.state==i&&(t.domChanged||t.newSel&&!cs(this.view.state.selection,t.newSel.main))&&this.view.update([]),s}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty(e.type=="attributes"),e.type=="childList"){let i=fa(t,e.previousSibling||e.target.previousSibling,-1),s=fa(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:s?t.posBefore(s):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(pt)!=e.state.facet(pt)&&(e.view.contentDOM.editContext=e.state.facet(pt)?this.editContext.editContext:null))}destroy(){var e,t,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function fa(n,e,t){for(;e;){let i=J.get(e);if(i&&i.parent==n)return i;let s=e.parentNode;e=s!=n.dom?s:t>0?e.nextSibling:e.previousSibling}return null}function ua(n,e){let t=e.startContainer,i=e.startOffset,s=e.endContainer,r=e.endOffset,o=n.docView.domAtPos(n.state.selection.main.anchor,1);return $i(o.node,o.offset,s,r)&&([t,i,s,r]=[s,r,t,i]),{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:r}}function um(n,e){if(e.getComposedRanges){let s=e.getComposedRanges(n.root)[0];if(s)return ua(n,s)}let t=null;function i(s){s.preventDefault(),s.stopImmediatePropagation(),t=s.getTargetRanges()[0]}return n.contentDOM.addEventListener("beforeinput",i,!0),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",i,!0),t?ua(n,t):null}class dm{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let s=e.state.selection.main,{anchor:r,head:o}=s,l=this.toEditorPos(i.updateRangeStart),a=this.toEditorPos(i.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:l,drifted:!1});let h=a-l>i.text.length;l==this.from&&rthis.to&&(a=r);let c=Pc(e.state.sliceDoc(l,a),i.text,(h?s.from:s.to)-l,h?"end":null);if(!c){let u=b.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));cs(u,s)||e.dispatch({selection:u,userEvent:"select"});return}let f={from:c.from+l,to:c.toA+l,insert:V.of(i.text.slice(c.from,c.toB).split(` +`))};if((P.mac||P.android)&&f.from==o-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(f={from:l,to:a,insert:V.of([i.text.replace("."," ")])}),this.pendingContextChange=f,!e.state.readOnly){let u=this.to-this.from+(f.to-f.from+f.insert.length);Io(e,f,b.single(this.toEditorPos(i.selectionStart,u),this.toEditorPos(i.selectionEnd,u)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),f.from=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let s=[],r=null;for(let o=this.toEditorPos(i.rangeStart),l=this.toEditorPos(i.rangeEnd);o{let s=[];for(let r of i.getTextFormats()){let o=r.underlineStyle,l=r.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(l)){let a=this.toEditorPos(r.rangeStart),h=this.toEditorPos(r.rangeEnd);if(a{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let s=ji(i.root);s&&s.rangeCount&&this.editContext.updateSelectionBounds(s.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,s=this.pendingContextChange;return e.changes.iterChanges((r,o,l,a,h)=>{if(i)return;let c=h.length-(o-r);if(s&&o>=s.to)if(s.from==r&&s.to==o&&s.insert.eq(h)){s=this.pendingContextChange=null,t+=c,this.to+=c;return}else s=null,this.revertPending(e.state);if(r+=t,o+=t,o<=this.from)this.from+=c,this.to+=c;else if(rthis.to||this.to-this.from+h.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(r),this.toContextPos(o),h.toString()),this.to+=c}t+=c}),s&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(s=>!s.isUserEvent("input.type")&&s.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),s=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=s)&&this.editContext.updateSelection(i,s)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class C{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(s=>s.forEach(r=>i(r,this)))||(s=>this.update(s)),this.dispatch=this.dispatch.bind(this),this._root=e.root||Vd(e.parent)||document,this.viewState=new aa(this,e.state||N.create(e)),e.scrollTo&&e.scrollTo.is(Cn)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(ti).map(s=>new Zs(s));for(let s of this.plugins)s.update(this);this.observer=new fm(this),this.inputState=new Wp(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Gl(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let t=e.length==1&&e[0]instanceof ie?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,i=!1,s,r=this.state;for(let u of e){if(u.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=u.state}if(this.destroyed){this.viewState.state=r;return}let o=this.hasFocus,l=0,a=null;e.some(u=>u.annotation(Wc))?(this.inputState.notifiedFocused=o,l=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,a=qc(r,o),a||(l=1));let h=this.observer.delayedAndroidKey,c=null;if(h?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(c=null)):this.observer.clear(),r.facet(N.phrases)!=this.state.facet(N.phrases))return this.setState(r);s=ls.create(this,r,e),s.flags|=l;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let u of e){if(f&&(f=f.map(u.changes)),u.scrollIntoView){let{main:d}=u.state.selection,{x:p,y:m}=this.state.facet(C.cursorScrollMargin);f=new ai(d.empty?d:b.cursor(d.head,d.head>d.anchor?-1:1),"nearest","nearest",m,p)}for(let d of u.effects)d.is(Cn)&&(f=d.value.clip(this.state))}this.viewState.update(s,f),this.bidiCache=us.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),t=this.docView.update(s),this.state.facet(Ai)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(u=>u.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(Dn)!=s.state.facet(Dn)&&(this.viewState.mustMeasureContent=!0),(t||i||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!s.empty)for(let u of this.state.facet(Kr))try{u(s)}catch(d){Se(this.state,d,"update listener")}(a||c)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),c&&!Qc(this,c)&&h.force&&li(this.contentDOM,h.key,h.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new aa(this,e),this.plugins=e.facet(ti).map(i=>new Zs(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new Gl(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(ti),i=e.state.facet(ti);if(t!=i){let s=[];for(let r of i){let o=t.indexOf(r);if(o<0)s.push(new Zs(r));else{let l=this.plugins[o];l.mustUpdate=e,s.push(l)}}for(let r of this.plugins)r.mustUpdate!=e&&r.destroy(this);this.plugins=s,this.pluginMap.clear()}else for(let s of this.plugins)s.mustUpdate=e;for(let s=0;s-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,i=this.viewState.scrollParent,s=this.viewState.getScrollOffset(),{scrollAnchorPos:r,scrollAnchorHeight:o}=this.viewState;Math.abs(s-this.viewState.scrollOffset)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(o<0)if(tc(i||this.win))r=-1,o=this.viewState.heightMap.height;else{let d=this.viewState.scrollAnchorAt(s);r=d.from,o=d.top}this.updateState=1;let a=this.viewState.measure();if(!a&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let h=[];a&4||([this.measureRequests,h]=[h,this.measureRequests]);let c=h.map(d=>{try{return d.read(this)}catch(p){return Se(this.state,p),da}}),f=ls.create(this,this.state,[]),u=!1;f.flags|=a,t?t.flags|=a:t=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),u=this.docView.update(f),u&&this.docViewUpdate());for(let d=0;d1||p<-1)&&(i==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){s=s+p,i?i.scrollTop+=p:this.win.scrollBy(0,p),o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(Kr))l(t)}get themeClasses(){return so+" "+(this.state.facet(no)?zc:Lc)+" "+this.state.facet(Dn)}updateAttrs(){let e=pa(this,bc,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(pt)?"true":"false",class:"cm-content",style:`${P.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),pa(this,$o,t);let i=this.observer.ignore(()=>{let s=Xl(this.contentDOM,this.contentAttrs,t),r=Xl(this.dom,this.editorAttrs,e);return s||r});return this.editorAttrs=e,this.contentAttrs=t,i}showAnnouncements(e){let t=!0;for(let i of e)for(let s of i.effects)if(s.is(C.announce)){t&&(this.announceDOM.textContent=""),t=!1;let r=this.announceDOM.appendChild(document.createElement("div"));r.textContent=s.value}}mountStyles(){this.styleModules=this.state.facet(Ai);let e=this.state.facet(C.cspNonce);Ct.mount(this.root,this.styleModules.concat(hm).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;ti.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,i){return er(this,e,Zl(this,e,t,i))}moveByGroup(e,t){return er(this,e,Zl(this,e,t,i=>vp(this,e.head,i)))}visualLineSide(e,t){let i=this.bidiSpans(e),s=this.textDirectionAt(e.from),r=i[t?i.length-1:0];return b.cursor(r.side(t,s)+e.from,r.forward(!t,s)?1:-1)}moveToLineBoundary(e,t,i=!0){return wp(this,e,t,i)}moveVertically(e,t,i){return er(this,e,Tp(this,e,t,i))}domAtPos(e,t=1){return this.docView.domAtPos(e,t)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){this.readMeasured();let i=to(this,e,t);return i&&i.pos}posAndSideAtCoords(e,t=!0){return this.readMeasured(),to(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let i=this.docView.coordsAt(e,t);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(e),r=this.bidiSpans(s),o=r[tt.find(r,e-s.from,-1,t)];return Gi(i,o.dir==j.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(mc)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>pm)return lc(e.length);let t=this.textDirectionAt(e.from),i;for(let r of this.bidiCache)if(r.from==e.from&&r.dir==t&&(r.fresh||oc(r.isolates,i=Ul(this,e))))return r.order;i||(i=Ul(this,e));let s=Zd(e.text,t,i);return this.bidiCache.push(new us(e.from,e.to,t,i,!0,s)),s}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||P.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{ec(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){var i,s,r,o;return Cn.of(new ai(typeof e=="number"?b.cursor(e):e,(i=t.y)!==null&&i!==void 0?i:"nearest",(s=t.x)!==null&&s!==void 0?s:"nearest",(r=t.yMargin)!==null&&r!==void 0?r:5,(o=t.xMargin)!==null&&o!==void 0?o:5))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return Cn.of(new ai(b.cursor(i.from),"start","start",i.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return K.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return K.define(()=>({}),{eventObservers:e})}static theme(e,t){let i=Ct.newName(),s=[Dn.of(i),Ai.of(ro(`.${i}`,e))];return t&&t.dark&&s.push(no.of(!0)),s}static baseTheme(e){return Mt.lowest(Ai.of(ro("."+so,e,Ic)))}static findFromDOM(e){var t;let i=e.querySelector(".cm-content"),s=i&&J.get(i)||J.get(e);return((t=s?.root)===null||t===void 0?void 0:t.view)||null}}C.styleModule=Ai;C.inputHandler=dc;C.clipboardInputFilter=qo;C.clipboardOutputFilter=Bo;C.scrollHandler=Oc;C.focusChangeEffect=pc;C.perLineTextDirection=mc;C.exceptionSink=uc;C.updateListener=Kr;C.editable=pt;C.mouseSelectionStyle=fc;C.dragMovesSelection=cc;C.clickAddsSelectionRange=hc;C.decorations=Ps;C.blockWrappers=xc;C.outerDecorations=Lo;C.atomicRanges=cn;C.bidiIsolatedRanges=Sc;C.cursorScrollMargin=Q.define({combine:n=>{let e=5,t=5;for(let i of n)typeof i=="number"?e=t=i:{x:e,y:t}=i;return{x:e,y:t}}});C.scrollMargins=kc;C.darkTheme=no;C.cspNonce=Q.define({combine:n=>n.length?n[0]:""});C.contentAttributes=$o;C.editorAttributes=bc;C.lineWrapping=C.contentAttributes.of({class:"cm-lineWrapping"});C.announce=W.define();const pm=4096,da={};class us{constructor(e,t,i,s,r,o){this.from=e,this.to=t,this.dir=i,this.isolates=s,this.fresh=r,this.order=o}static update(e,t){if(t.empty&&!e.some(r=>r.fresh))return e;let i=[],s=e.length?e[e.length-1].dir:j.LTR;for(let r=Math.max(0,e.length-10);r=0;s--){let r=i[s],o=typeof r=="function"?r(n):r;o&&Do(o,t)}return t}const mm=P.mac?"mac":P.windows?"win":P.linux?"linux":"key";function gm(n,e){const t=n.split(/-(?!$)/);let i=t[t.length-1];i=="Space"&&(i=" ");let s,r,o,l;for(let a=0;ai.concat(s),[]))),t}function ym(n,e,t){return Vc(Nc(n.state),e,n,t)}let St=null;const bm=4e3;function xm(n,e=mm){let t=Object.create(null),i=Object.create(null),s=(o,l)=>{let a=i[o];if(a==null)i[o]=l;else if(a!=l)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},r=(o,l,a,h,c)=>{var f,u;let d=t[o]||(t[o]=Object.create(null)),p=l.split(/ (?!$)/).map(y=>gm(y,e));for(let y=1;y{let A=St={view:S,prefix:x,scope:o};return setTimeout(()=>{St==A&&(St=null)},bm),!0}]})}let m=p.join(" ");s(m,!1);let g=d[m]||(d[m]={preventDefault:!1,stopPropagation:!1,run:((u=(f=d._any)===null||f===void 0?void 0:f.run)===null||u===void 0?void 0:u.slice())||[]});a&&g.run.push(a),h&&(g.preventDefault=!0),c&&(g.stopPropagation=!0)};for(let o of n){let l=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let h of l){let c=t[h]||(t[h]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=o;for(let u in c)c[u].run.push(d=>f(d,oo))}let a=o[e]||o.key;if(a)for(let h of l)r(h,a,o.run,o.preventDefault,o.stopPropagation),o.shift&&r(h,"Shift-"+a,o.shift,o.preventDefault,o.stopPropagation)}return t}let oo=null;function Vc(n,e,t,i){oo=e;let s=qd(e),r=ve(s,0),o=Ke(r)==s.length&&s!=" ",l="",a=!1,h=!1,c=!1;St&&St.view==t&&St.scope==i&&(l=St.prefix+" ",Rc.indexOf(e.keyCode)<0&&(h=!0,St=null));let f=new Set,u=g=>{if(g){for(let y of g.run)if(!f.has(y)&&(f.add(y),y(t)))return g.stopPropagation&&(c=!0),!0;g.preventDefault&&(g.stopPropagation&&(c=!0),h=!0)}return!1},d=n[i],p,m;return d&&(u(d[l+En(s,e,!o)])?a=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(P.windows&&e.ctrlKey&&e.altKey)&&!(P.mac&&e.altKey&&!(e.ctrlKey||e.metaKey))&&(p=Qt[e.keyCode])&&p!=s?(u(d[l+En(p,e,!0)])||e.shiftKey&&(m=Ui[e.keyCode])!=s&&m!=p&&u(d[l+En(m,e,!1)]))&&(a=!0):o&&e.shiftKey&&u(d[l+En(s,e,!0)])&&(a=!0),!a&&u(d._any)&&(a=!0)),h&&(a=!0),a&&c&&e.stopPropagation(),oo=null,a}class Xt{constructor(e,t,i,s,r){this.className=e,this.left=t,this.top=i,this.width=s,this.height=r}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,i){if(i.empty){let s=e.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let r=Xc(e);return[new Xt(t,s.left-r.left,s.top-r.top,null,s.bottom-s.top)]}else return Sm(e,t,i)}}function Xc(n){let e=n.scrollDOM.getBoundingClientRect();return{left:(n.textDirection==j.LTR?e.left:e.right-n.scrollDOM.clientWidth*n.scaleX)-n.scrollDOM.scrollLeft*n.scaleX,top:e.top-n.scrollDOM.scrollTop*n.scaleY}}function ga(n,e,t,i){let s=n.coordsAtPos(e,t*2);if(!s)return i;let r=n.dom.getBoundingClientRect(),o=(s.top+s.bottom)/2,l=n.posAtCoords({x:r.left+1,y:o}),a=n.posAtCoords({x:r.right-1,y:o});return l==null||a==null?i:{from:Math.max(i.from,Math.min(l,a)),to:Math.min(i.to,Math.max(l,a))}}function Sm(n,e,t){if(t.to<=n.viewport.from||t.from>=n.viewport.to)return[];let i=Math.max(t.from,n.viewport.from),s=Math.min(t.to,n.viewport.to),r=n.textDirection==j.LTR,o=n.contentDOM,l=o.getBoundingClientRect(),a=Xc(n),h=o.querySelector(".cm-line"),c=h&&window.getComputedStyle(h),f=l.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),u=l.right-(c?parseInt(c.paddingRight):0),d=eo(n,i,1),p=eo(n,s,-1),m=d.type==de.Text?d:null,g=p.type==de.Text?p:null;if(m&&(n.lineWrapping||d.widgetLineBreaks)&&(m=ga(n,i,1,m)),g&&(n.lineWrapping||p.widgetLineBreaks)&&(g=ga(n,s,-1,g)),m&&g&&m.from==g.from&&m.to==g.to)return x(S(t.from,t.to,m));{let k=m?S(t.from,null,m):A(d,!1),w=g?S(null,t.to,g):A(p,!0),v=[];return(m||d).to<(g||p).from-(m&&g?1:0)||d.widgetLineBreaks>1&&k.bottom+n.defaultLineHeight/2D&&$.from=ne)break;te>X&&q(Math.max(F,X),k==null&&F<=D,Math.min(te,ne),w==null&&te>=B,me.dir)}if(X=re.to+1,X>=ne)break}return I.length==0&&q(D,k==null,B,w==null,n.textDirection),{top:E,bottom:R,horizontal:I}}function A(k,w){let v=l.top+(w?k.top:k.bottom);return{top:v,bottom:v,horizontal:[]}}}function km(n,e){return n.constructor==e.constructor&&n.eq(e)}class wm{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(jn)!=e.state.facet(jn)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,i=e.facet(jn);for(;t!km(t,this.drawn[i]))){let t=this.dom.firstChild,i=0;for(let s of e)s.update&&t&&s.constructor&&this.drawn[i].constructor&&s.update(t,this.drawn[i])?(t=t.nextSibling,i++):this.dom.insertBefore(s.draw(),t);for(;t;){let s=t.nextSibling;t.remove(),t=s}this.drawn=e,P.webkit&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const jn=Q.define();function Fc(n){return[K.define(e=>new wm(e,n)),jn.of(n)]}const mi=Q.define({combine(n){return lt(n,{cursorBlinkRate:1200,drawRangeCursor:!0,iosSelectionHandles:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function vm(n={}){return[mi.of(n),Tm,Cm,Qm,gc.of(!0)]}function _c(n){return n.startState.facet(mi)!=n.state.facet(mi)}const Tm=Fc({above:!0,markers(n){let{state:e}=n,t=e.facet(mi),i=[];for(let s of e.selection.ranges){let r=s==e.selection.main;if(s.empty||t.drawRangeCursor&&!(r&&P.ios&&t.iosSelectionHandles)){let o=r?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=s.empty?s:b.cursor(s.head,s.assoc);for(let a of Xt.forRange(n,o,l))i.push(a)}}return i},update(n,e){n.transactions.some(i=>i.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=_c(n);return t&&Oa(n.state,e),n.docChanged||n.selectionSet||t},mount(n,e){Oa(e.state,n)},class:"cm-cursorLayer"});function Oa(n,e){e.style.animationDuration=n.facet(mi).cursorBlinkRate+"ms"}const Cm=Fc({above:!1,markers(n){let e=[],{main:t,ranges:i}=n.state.selection;for(let s of i)if(!s.empty)for(let r of Xt.forRange(n,"cm-selectionBackground",s))e.push(r);if(P.ios&&!t.empty&&n.state.facet(mi).iosSelectionHandles){for(let s of Xt.forRange(n,"cm-selectionHandle cm-selectionHandle-start",b.cursor(t.from,1)))e.push(s);for(let s of Xt.forRange(n,"cm-selectionHandle cm-selectionHandle-end",b.cursor(t.to,1)))e.push(s)}return e},update(n,e){return n.docChanged||n.selectionSet||n.viewportChanged||_c(n)},class:"cm-selectionLayer"}),Qm=Mt.highest(C.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),Uc=W.define({map(n,e){return n==null?null:e.mapPos(n)}}),Mi=pe.define({create(){return null},update(n,e){return n!=null&&(n=e.changes.mapPos(n)),e.effects.reduce((t,i)=>i.is(Uc)?i.value:t,n)}}),Pm=K.fromClass(class{constructor(n){this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(n){var e;let t=n.state.field(Mi);t==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field(Mi)!=t||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:n}=this,e=n.state.field(Mi),t=e!=null&&n.coordsAtPos(e);if(!t)return null;let i=n.scrollDOM.getBoundingClientRect();return{left:t.left-i.left+n.scrollDOM.scrollLeft*n.scaleX,top:t.top-i.top+n.scrollDOM.scrollTop*n.scaleY,height:t.bottom-t.top}}drawCursor(n){if(this.cursor){let{scaleX:e,scaleY:t}=this.view;n?(this.cursor.style.left=n.left/e+"px",this.cursor.style.top=n.top/t+"px",this.cursor.style.height=n.height/t+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(n){this.view.state.field(Mi)!=n&&this.view.dispatch({effects:Uc.of(n)})}},{eventObservers:{dragover(n){this.setDropPos(this.view.posAtCoords({x:n.clientX,y:n.clientY}))},dragleave(n){(n.target==this.view.contentDOM||!this.view.contentDOM.contains(n.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Am(){return[Mi,Pm]}function ya(n,e,t,i,s){e.lastIndex=0;for(let r=n.iterRange(t,i),o=t,l;!r.next().done;o+=r.value.length)if(!r.lineBreak)for(;l=e.exec(r.value);)s(o+l.index,l)}function Rm(n,e){let t=n.visibleRanges;if(t.length==1&&t[0].from==n.viewport.from&&t[0].to==n.viewport.to)return t;let i=[];for(let{from:s,to:r}of t)s=Math.max(n.state.doc.lineAt(s).from,s-e),r=Math.min(n.state.doc.lineAt(r).to,r+e),i.length&&i[i.length-1].to>=s?i[i.length-1].to=r:i.push({from:s,to:r});return i}class Mm{constructor(e){const{regexp:t,decoration:i,decorate:s,boundary:r,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,s)this.addMatch=(l,a,h,c)=>s(c,h,h+l[0].length,l,a);else if(typeof i=="function")this.addMatch=(l,a,h,c)=>{let f=i(l,a,h);f&&c(h,h+l[0].length,f)};else if(i)this.addMatch=(l,a,h,c)=>c(h,h+l[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=r,this.maxLength=o}createDeco(e){let t=new gt,i=t.add.bind(t);for(let{from:s,to:r}of Rm(e,this.maxLength))ya(e.state.doc,this.regexp,s,r,(o,l)=>this.addMatch(l,e,o,i));return t.finish()}updateDeco(e,t){let i=1e9,s=-1;return e.docChanged&&e.changes.iterChanges((r,o,l,a)=>{a>=e.view.viewport.from&&l<=e.view.viewport.to&&(i=Math.min(l,i),s=Math.max(a,s))}),e.viewportMoved||s-i>1e3?this.createDeco(e.view):s>-1?this.updateRange(e.view,t.map(e.changes),i,s):t}updateRange(e,t,i,s){for(let r of e.visibleRanges){let o=Math.max(r.from,i),l=Math.min(r.to,s);if(l>=o){let a=e.state.doc.lineAt(o),h=a.toa.from;o--)if(this.boundary.test(a.text[o-1-a.from])){c=o;break}for(;lu.push(y.range(m,g));if(a==h)for(this.regexp.lastIndex=c-a.from;(d=this.regexp.exec(a.text))&&d.indexthis.addMatch(g,e,m,p));t=t.update({filterFrom:c,filterTo:f,filter:(m,g)=>mf,add:u})}}return t}}const lo=/x/.unicode!=null?"gu":"g",Dm=new RegExp(`[\0-\b +--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,lo),Em={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let nr=null;function Wm(){var n;if(nr==null&&typeof document<"u"&&document.body){let e=document.body.style;nr=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return nr||!1}const Gn=Q.define({combine(n){let e=lt(n,{render:null,specialChars:Dm,addSpecialChars:null});return(e.replaceTabs=!Wm())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,lo)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,lo)),e}});function qm(n={}){return[Gn.of(n),Bm()]}let ba=null;function Bm(){return ba||(ba=K.fromClass(class{constructor(n){this.view=n,this.decorations=M.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(Gn)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new Mm({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:s}=t.state,r=ve(e[0],0);if(r==9){let o=s.lineAt(i),l=t.state.tabSize,a=bi(o.text,l,i-o.from);return M.replace({widget:new Im((l-a%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[r]||(this.decorationCache[r]=M.replace({widget:new zm(n,r)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(Gn);n.startState.facet(Gn)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const $m="•";function Lm(n){return n>=32?$m:n==10?"␤":String.fromCharCode(9216+n)}class zm extends Xe{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=Lm(this.code),i=e.state.phrase("Control character")+" "+(Em[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,i,t);if(s)return s;let r=document.createElement("span");return r.textContent=t,r.title=i,r.setAttribute("aria-label",i),r.className="cm-specialChar",r}ignoreEvent(){return!1}}class Im extends Xe{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function Nm(){return Xm}const Vm=M.line({class:"cm-activeLine"}),Xm=K.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=-1,t=[];for(let i of n.state.selection.ranges){let s=n.lineBlockAt(i.head);s.from>e&&(t.push(Vm.range(s.from)),e=s.from)}return M.set(t)}},{decorations:n=>n.decorations});class Fm extends Xe{constructor(e){super(),this.content=e}toDOM(e){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(e):this.content.cloneNode(!0)),t.setAttribute("aria-hidden","true"),t}coordsAt(e){let t=e.firstChild?Bi(e.firstChild):[];if(!t.length)return null;let i=window.getComputedStyle(e.parentNode),s=Gi(t[0],i.direction!="rtl"),r=parseInt(i.lineHeight);return s.bottom-s.top>r*1.5?{left:s.left,right:s.right,top:s.top,bottom:s.top+r}:s}ignoreEvent(){return!1}}function _m(n){let e=K.fromClass(class{constructor(t){this.view=t,this.placeholder=n?M.set([M.widget({widget:new Fm(n),side:1}).range(0)]):M.none}get decorations(){return this.view.state.doc.length?M.none:this.placeholder}},{decorations:t=>t.decorations});return typeof n=="string"?[e,C.contentAttributes.of({"aria-placeholder":n})]:e}const ao=2e3;function Um(n,e,t){let i=Math.min(e.line,t.line),s=Math.max(e.line,t.line),r=[];if(e.off>ao||t.off>ao||e.col<0||t.col<0){let o=Math.min(e.off,t.off),l=Math.max(e.off,t.off);for(let a=i;a<=s;a++){let h=n.doc.line(a);h.length<=l&&r.push(b.range(h.from+o,h.to+l))}}else{let o=Math.min(e.col,t.col),l=Math.max(e.col,t.col);for(let a=i;a<=s;a++){let h=n.doc.line(a),c=Nr(h.text,o,n.tabSize,!0);if(c<0)r.push(b.cursor(h.to));else{let f=Nr(h.text,l,n.tabSize);r.push(b.range(h.from+c,h.from+f))}}}return r}function Hm(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function xa(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),s=t-i.from,r=s>ao?-1:s==i.length?Hm(n,e.clientX):bi(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:r,off:s}}function jm(n,e){let t=xa(n,e),i=n.state.selection;return t?{update(s){if(s.docChanged){let r=s.changes.mapPos(s.startState.doc.line(t.line).from),o=s.state.doc.lineAt(r);t={line:o.number,col:t.col,off:Math.min(t.off,o.length)},i=i.map(s.changes)}},get(s,r,o){let l=xa(n,s);if(!l)return i;let a=Um(n.state,t,l);return a.length?o?b.create(a.concat(i.ranges)):b.create(a):i}}:null}function Gm(n){let e=(t=>t.altKey&&t.button==0);return C.mouseSelectionStyle.of((t,i)=>e(i)?jm(t,i):null)}const Zm={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},Ym={style:"cursor: crosshair"};function Km(n={}){let[e,t]=Zm[n.key||"Alt"],i=K.fromClass(class{constructor(s){this.view=s,this.isDown=!1}set(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}},{eventObservers:{keydown(s){this.set(s.keyCode==e||t(s))},keyup(s){(s.keyCode==e||!t(s))&&this.set(!1)},mousemove(s){this.set(t(s))}}});return[i,C.contentAttributes.of(s=>{var r;return!((r=s.plugin(i))===null||r===void 0)&&r.isDown?Ym:null})]}const Wn="-10000px";class Hc{constructor(e,t,i,s){this.facet=t,this.createTooltipView=i,this.removeTooltipView=s,this.input=e.state.facet(t),this.tooltips=this.input.filter(o=>o);let r=null;this.tooltipViews=this.tooltips.map(o=>r=i(o,r))}update(e,t){var i;let s=e.state.facet(this.facet),r=s.filter(a=>a);if(s===this.input){for(let a of this.tooltipViews)a.update&&a.update(e);return!1}let o=[],l=t?[]:null;for(let a=0;at[h]=a),t.length=l.length),this.input=s,this.tooltips=r,this.tooltipViews=o,!0}}function Jm(n){let e=n.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}const sr=Q.define({combine:n=>{var e,t,i;return{position:P.ios?"absolute":((e=n.find(s=>s.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=n.find(s=>s.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((i=n.find(s=>s.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||Jm}}}),Sa=new WeakMap,Xo=K.fromClass(class{constructor(n){this.view=n,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=n.state.facet(sr);this.position=e.position,this.parent=e.parent,this.classes=n.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new Hc(n,Fo,(t,i)=>this.createTooltip(t,i),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let n of this.manager.tooltipViews)this.intersectionObserver.observe(n.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(n){n.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(n,this.above);e&&this.observeIntersection();let t=e||n.geometryChanged,i=n.state.facet(sr);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let s of this.manager.tooltipViews)s.dom.style.position=this.position;t=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let s of this.manager.tooltipViews)this.container.appendChild(s.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(n,e){let t=n.create(this.view),i=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),n.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let s=document.createElement("div");s.className="cm-tooltip-arrow",t.dom.appendChild(s)}return t.dom.style.position=this.position,t.dom.style.top=Wn,t.dom.style.left="0px",this.container.insertBefore(t.dom,i),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var n,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(n=i.destroy)===null||n===void 0||n.call(i);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let n=1,e=1,t=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:r}=this.manager.tooltipViews[0];if(P.safari){let o=r.getBoundingClientRect();t=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}else t=!!r.offsetParent&&r.offsetParent!=this.container.ownerDocument.body}if(t||this.position=="absolute")if(this.parent){let r=this.parent.getBoundingClientRect();r.width&&r.height&&(n=r.width/this.parent.offsetWidth,e=r.height/this.parent.offsetHeight)}else({scaleX:n,scaleY:e}=this.view.viewState);let i=this.view.scrollDOM.getBoundingClientRect(),s=zo(this.view);return{visible:{left:i.left+s.left,top:i.top+s.top,right:i.right-s.right,bottom:i.bottom-s.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((r,o)=>{let l=this.manager.tooltipViews[o];return l.getCoords?l.getCoords(r.pos):this.view.coordsAtPos(r.pos)}),size:this.manager.tooltipViews.map(({dom:r})=>r.getBoundingClientRect()),space:this.view.state.facet(sr).tooltipSpace(this.view),scaleX:n,scaleY:e,makeAbsolute:t}}writeMeasure(n){var e;if(n.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{visible:t,space:i,scaleX:s,scaleY:r}=n,o=[];for(let l=0;l=Math.min(t.bottom,i.bottom)||f.rightMath.min(t.right,i.right)+.1)){c.style.top=Wn;continue}let d=a.arrow?h.dom.querySelector(".cm-tooltip-arrow"):null,p=d?7:0,m=u.right-u.left,g=(e=Sa.get(h))!==null&&e!==void 0?e:u.bottom-u.top,y=h.offset||tg,x=this.view.textDirection==j.LTR,S=u.width>i.right-i.left?x?i.left:i.right-u.width:x?Math.max(i.left,Math.min(f.left-(d?14:0)+y.x,i.right-m)):Math.min(Math.max(i.left,f.left-m+(d?14:0)-y.x),i.right-m),A=this.above[l];!a.strictSide&&(A?f.top-g-p-y.yi.bottom)&&A==i.bottom-f.bottom>f.top-i.top&&(A=this.above[l]=!A);let k=(A?f.top-i.top:i.bottom-f.bottom)-p;if(kS&&E.topw&&(w=A?E.top-g-2-p:E.bottom+p+2);if(this.position=="absolute"?(c.style.top=(w-n.parent.top)/r+"px",ka(c,(S-n.parent.left)/s)):(c.style.top=w/r+"px",ka(c,S/s)),d){let E=f.left+(x?y.x:-y.x)-(S+14-7);d.style.left=E/s+"px"}h.overlap!==!0&&o.push({left:S,top:w,right:v,bottom:w+g}),c.classList.toggle("cm-tooltip-above",A),c.classList.toggle("cm-tooltip-below",!A),h.positioned&&h.positioned(n.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let n of this.manager.tooltipViews)n.dom.style.top=Wn}},{eventObservers:{scroll(){this.maybeMeasure()}}});function ka(n,e){let t=parseInt(n.style.left,10);(isNaN(t)||Math.abs(e-t)>1)&&(n.style.left=e+"px")}const eg=C.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),tg={x:0,y:0},Fo=Q.define({enables:[Xo,eg]}),ds=Q.define({combine:n=>n.reduce((e,t)=>e.concat(t),[])});class Ds{static create(e){return new Ds(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Hc(e,ds,(t,i)=>this.createHostedView(t,i),t=>t.dom.remove())}createHostedView(e,t){let i=e.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}passProp(e){let t;for(let i of this.manager.tooltipViews){let s=i[e];if(s!==void 0){if(t===void 0)t=s;else if(t!==s)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const ig=Fo.compute([ds],n=>{let e=n.facet(ds);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var i;return(i=t.end)!==null&&i!==void 0?i:t.pos})),create:Ds.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class ng{constructor(e,t,i,s,r){this.view=e,this.source=t,this.field=i,this.setHover=s,this.hoverTime=r,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;el.bottom||t.xl.right+e.defaultCharacterWidth)return;let a=e.bidiSpans(e.state.doc.lineAt(s)).find(c=>c.from<=s&&c.to>=s),h=a&&a.dir==j.RTL?-1:1;r=t.x{this.pending==l&&(this.pending=null,a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])}))},a=>Se(e.state,a,"hover tooltip"))}else o&&!(Array.isArray(o)&&!o.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let e=this.view.plugin(Xo),t=e?e.manager.tooltips.findIndex(i=>i.create==Ds.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,i;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:s,tooltip:r}=this;if(s.length&&r&&!sg(r.dom,e)||this.pending){let{pos:o}=s[0]||this.pending,l=(i=(t=s[0])===null||t===void 0?void 0:t.end)!==null&&i!==void 0?i:o;(o==l?this.view.posAtCoords(this.lastMove)!=o:!rg(this.view,o,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:i}=this;i&&i.dom.contains(e.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=i=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const qn=4;function sg(n,e){let{left:t,right:i,top:s,bottom:r}=n.getBoundingClientRect(),o;if(o=n.querySelector(".cm-tooltip-arrow")){let l=o.getBoundingClientRect();s=Math.min(l.top,s),r=Math.max(l.bottom,r)}return e.clientX>=t-qn&&e.clientX<=i+qn&&e.clientY>=s-qn&&e.clientY<=r+qn}function rg(n,e,t,i,s,r){let o=n.scrollDOM.getBoundingClientRect(),l=n.documentTop+n.documentPadding.top+n.contentHeight;if(o.left>i||o.rights||Math.min(o.bottom,l)=e&&a<=t}function og(n,e={}){let t=W.define(),i=pe.define({create(){return[]},update(s,r){if(s.length&&(e.hideOnChange&&(r.docChanged||r.selection)?s=[]:e.hideOn&&(s=s.filter(o=>!e.hideOn(r,o))),r.docChanged)){let o=[];for(let l of s){let a=r.changes.mapPos(l.pos,-1,ue.TrackDel);if(a!=null){let h=Object.assign(Object.create(null),l);h.pos=a,h.end!=null&&(h.end=r.changes.mapPos(h.end)),o.push(h)}}s=o}for(let o of r.effects)o.is(t)&&(s=o.value),o.is(lg)&&(s=[]);return s},provide:s=>ds.from(s)});return{active:i,extension:[i,K.define(s=>new ng(s,n,i,t,e.hoverTime||300)),ig]}}function jc(n,e){let t=n.plugin(Xo);if(!t)return null;let i=t.manager.tooltips.indexOf(e);return i<0?null:t.manager.tooltipViews[i]}const lg=W.define(),wa=Q.define({combine(n){let e,t;for(let i of n)e=e||i.topContainer,t=t||i.bottomContainer;return{topContainer:e,bottomContainer:t}}});function _o(n,e){let t=n.plugin(Gc),i=t?t.specs.indexOf(e):-1;return i>-1?t.panels[i]:null}const Gc=K.fromClass(class{constructor(n){this.input=n.state.facet(Yi),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(n));let e=n.state.facet(wa);this.top=new Bn(n,!0,e.topContainer),this.bottom=new Bn(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(n){let e=n.state.facet(wa);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Bn(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Bn(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=n.state.facet(Yi);if(t!=this.input){let i=t.filter(a=>a),s=[],r=[],o=[],l=[];for(let a of i){let h=this.specs.indexOf(a),c;h<0?(c=a(n.view),l.push(c)):(c=this.panels[h],c.update&&c.update(n)),s.push(c),(c.top?r:o).push(c)}this.specs=i,this.panels=s,this.top.sync(r),this.bottom.sync(o);for(let a of l)a.dom.classList.add("cm-panel"),a.mount&&a.mount()}else for(let i of this.panels)i.update&&i.update(n)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:n=>C.scrollMargins.of(e=>{let t=e.plugin(n);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class Bn{constructor(e,t,i){this.view=e,this.top=t,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=va(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=va(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function va(n){let e=n.nextSibling;return n.remove(),e}const Yi=Q.define({enables:Gc});function ag(n,e){let t,i=new Promise(o=>t=o),s=o=>hg(o,e,t);n.state.field(rr,!1)?n.dispatch({effects:Zc.of(s)}):n.dispatch({effects:W.appendConfig.of(rr.init(()=>[s]))});let r=Yc.of(s);return{close:r,result:i.then(o=>((n.win.queueMicrotask||(a=>n.win.setTimeout(a,10)))(()=>{n.state.field(rr).indexOf(s)>-1&&n.dispatch({effects:r})}),o))}}const rr=pe.define({create(){return[]},update(n,e){for(let t of e.effects)t.is(Zc)?n=[t.value].concat(n):t.is(Yc)&&(n=n.filter(i=>i!=t.value));return n},provide:n=>Yi.computeN([n],e=>e.field(n))}),Zc=W.define(),Yc=W.define();function hg(n,e,t){let i=e.content?e.content(n,()=>o(null)):null;if(!i){if(i=_("form"),e.input){let l=_("input",e.input);/^(text|password|number|email|tel|url)$/.test(l.type)&&l.classList.add("cm-textfield"),l.name||(l.name="input"),i.appendChild(_("label",(e.label||"")+": ",l))}else i.appendChild(document.createTextNode(e.label||""));i.appendChild(document.createTextNode(" ")),i.appendChild(_("button",{class:"cm-button",type:"submit"},e.submitLabel||"OK"))}let s=i.nodeName=="FORM"?[i]:i.querySelectorAll("form");for(let l=0;l{h.keyCode==27?(h.preventDefault(),o(null)):h.keyCode==13&&(h.preventDefault(),o(a))}),a.addEventListener("submit",h=>{h.preventDefault(),o(a)})}let r=_("div",i,_("button",{onclick:()=>o(null),"aria-label":n.state.phrase("close"),class:"cm-dialog-close",type:"button"},["×"]));e.class&&(r.className=e.class),r.classList.add("cm-dialog");function o(l){r.contains(r.ownerDocument.activeElement)&&n.focus(),t(l)}return{dom:r,top:e.top,mount:()=>{if(e.focus){let l;typeof e.focus=="string"?l=i.querySelector(e.focus):l=i.querySelector("input")||i.querySelector("button"),l&&"select"in l?l.select():l&&"focus"in l&&l.focus()}}}}class yt extends Tt{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}yt.prototype.elementClass="";yt.prototype.toDOM=void 0;yt.prototype.mapMode=ue.TrackBefore;yt.prototype.startSide=yt.prototype.endSide=-1;yt.prototype.point=!0;const Zn=Q.define(),cg=Q.define(),fg={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>z.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},zi=Q.define();function ug(n){return[Kc(),zi.of({...fg,...n})]}const Ta=Q.define({combine:n=>n.some(e=>e)});function Kc(n){return[dg]}const dg=K.fromClass(class{constructor(n){this.view=n,this.domAfter=null,this.prevViewport=n.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=n.state.facet(zi).map(e=>new Qa(n,e)),this.fixed=!n.state.facet(Ta);for(let e of this.gutters)e.config.side=="after"?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),n.scrollDOM.insertBefore(this.dom,n.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(n){if(this.updateGutters(n)){let e=this.prevViewport,t=n.view.viewport,i=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(i<(t.to-t.from)*.8)}if(n.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(Ta)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=n.view.viewport}syncGutters(n){let e=this.dom.nextSibling;n&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let t=z.iter(this.view.state.facet(Zn),this.view.viewport.from),i=[],s=this.gutters.map(r=>new pg(r,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(r.type)){let o=!0;for(let l of r.type)if(l.type==de.Text&&o){ho(t,i,l.from);for(let a of s)a.line(this.view,l,i);o=!1}else if(l.widget)for(let a of s)a.widget(this.view,l)}else if(r.type==de.Text){ho(t,i,r.from);for(let o of s)o.line(this.view,r,i)}else if(r.widget)for(let o of s)o.widget(this.view,r);for(let r of s)r.finish();n&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(n){let e=n.startState.facet(zi),t=n.state.facet(zi),i=n.docChanged||n.heightChanged||n.viewportChanged||!z.eq(n.startState.facet(Zn),n.state.facet(Zn),n.view.viewport.from,n.view.viewport.to);if(e==t)for(let s of this.gutters)s.update(n)&&(i=!0);else{i=!0;let s=[];for(let r of t){let o=e.indexOf(r);o<0?s.push(new Qa(this.view,r)):(this.gutters[o].update(n),s.push(this.gutters[o]))}for(let r of this.gutters)r.dom.remove(),s.indexOf(r)<0&&r.destroy();for(let r of s)r.config.side=="after"?this.getDOMAfter().appendChild(r.dom):this.dom.appendChild(r.dom);this.gutters=s}return i}destroy(){for(let n of this.gutters)n.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:n=>C.scrollMargins.of(e=>{let t=e.plugin(n);if(!t||t.gutters.length==0||!t.fixed)return null;let i=t.dom.offsetWidth*e.scaleX,s=t.domAfter?t.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==j.LTR?{left:i,right:s}:{right:i,left:s}})});function Ca(n){return Array.isArray(n)?n:[n]}function ho(n,e,t){for(;n.value&&n.from<=t;)n.from==t&&e.push(n.value),n.next()}class pg{constructor(e,t,i){this.gutter=e,this.height=i,this.i=0,this.cursor=z.iter(e.markers,t.from)}addElement(e,t,i){let{gutter:s}=this,r=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==s.elements.length){let l=new Jc(e,o,r,i);s.elements.push(l),s.dom.appendChild(l.dom)}else s.elements[this.i].update(e,o,r,i);this.height=t.bottom,this.i++}line(e,t,i){let s=[];ho(this.cursor,s,t.from),i.length&&(s=s.concat(i));let r=this.gutter.config.lineMarker(e,t,s);r&&s.unshift(r);let o=this.gutter;s.length==0&&!o.config.renderEmptyElements||this.addElement(e,t,s)}widget(e,t){let i=this.gutter.config.widgetMarker(e,t.widget,t),s=i?[i]:null;for(let r of e.state.facet(cg)){let o=r(e,t.widget,t);o&&(s||(s=[])).push(o)}s&&this.addElement(e,t,s)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Qa{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in t.domEventHandlers)this.dom.addEventListener(i,s=>{let r=s.target,o;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let a=r.getBoundingClientRect();o=(a.top+a.bottom)/2}else o=s.clientY;let l=e.lineBlockAtHeight(o-e.documentTop);t.domEventHandlers[i](e,l,s)&&s.preventDefault()});this.markers=Ca(t.markers(e)),t.initialSpacer&&(this.spacer=new Jc(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Ca(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let s=this.config.updateSpacer(this.spacer.markers[0],e);s!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[s])}let i=e.view.viewport;return!z.eq(this.markers,t,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class Jc{constructor(e,t,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,i,s)}update(e,t,i,s){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),mg(this.markers,s)||this.setMarkers(e,s)}setMarkers(e,t){let i="cm-gutterElement",s=this.dom.firstChild;for(let r=0,o=0;;){let l=o,a=rr(l,a,h)||o(l,a,h):o}return i}})}});class or extends yt{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function lr(n,e){return n.state.facet(ii).formatNumber(e,n.state)}const yg=zi.compute([ii],n=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(gg)},lineMarker(e,t,i){return i.some(s=>s.toDOM)?null:new or(lr(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,i)=>{for(let s of e.state.facet(Og)){let r=s(e,t,i);if(r)return r}return null},lineMarkerChange:e=>e.startState.facet(ii)!=e.state.facet(ii),initialSpacer(e){return new or(lr(e,Pa(e.state.doc.lines)))},updateSpacer(e,t){let i=lr(t.view,Pa(t.view.state.doc.lines));return i==e.number?e:new or(i)},domEventHandlers:n.facet(ii).domEventHandlers,side:"before"}));function bg(n={}){return[ii.of(n),Kc(),yg]}function Pa(n){let e=9;for(;e{let e=[],t=-1;for(let i of n.selection.ranges){let s=n.doc.lineAt(i.head).from;s>t&&(t=s,e.push(xg.range(s)))}return z.of(e)});function kg(){return Sg}var ar;const It=new L;function ef(n){return Q.define({combine:n?e=>e.concat(n):void 0})}const wg=new L;class Be{constructor(e,t,i=[],s=""){this.data=e,this.name=s,N.prototype.hasOwnProperty("tree")||Object.defineProperty(N.prototype,"tree",{get(){return ae(this)}}),this.parser=t,this.extension=[At.of(this),N.languageData.of((r,o,l)=>{let a=Aa(r,o,l),h=a.type.prop(It);if(!h)return[];let c=r.facet(h),f=a.type.prop(wg);if(f){let u=a.resolve(o-a.from,l);for(let d of f)if(d.test(u,r)){let p=r.facet(d.facet);return d.type=="replace"?p:p.concat(c)}}return c})].concat(i)}isActiveAt(e,t,i=-1){return Aa(e,t,i).type.prop(It)==this.data}findRegions(e){let t=e.facet(At);if(t?.data==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],s=(r,o)=>{if(r.prop(It)==this.data){i.push({from:o,to:o+r.length});return}let l=r.prop(L.mounted);if(l){if(l.tree.prop(It)==this.data){if(l.overlay)for(let a of l.overlay)i.push({from:a.from+o,to:a.to+o});else i.push({from:o,to:o+r.length});return}else if(l.overlay){let a=i.length;if(s(l.tree,l.overlay[0].from+o),i.length>a)return}}for(let a=0;ai.isTop?t:void 0)]}),e.name)}configure(e,t){return new Ki(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function ae(n){let e=n.field(Be.state,!1);return e?e.tree:U.empty}class vg{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}}let Ci=null;class gi{constructor(e,t,i=[],s,r,o,l,a){this.parser=e,this.state=t,this.fragments=i,this.tree=s,this.treeLen=r,this.viewport=o,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new gi(e,t,[],U.empty,0,i,[],null)}startParse(){return this.parser.startParse(new vg(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=U.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let s=Date.now()+e;e=()=>Date.now()>s}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Vt.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Ci;Ci=this;try{return e()}finally{Ci=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Ra(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:s,treeLen:r,viewport:o,skipped:l}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((h,c,f,u)=>a.push({fromA:h,toA:c,fromB:f,toB:u})),i=Vt.applyChanges(i,a),s=U.empty,r=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){l=[];for(let h of this.skipped){let c=e.mapPos(h.from,1),f=e.mapPos(h.to,-1);ce.from&&(this.fragments=Ra(this.fragments,s,r),this.skipped.splice(i--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends To{createParse(t,i,s){let r=s[0].from,o=s[s.length-1].to;return{parsedPos:r,advance(){let a=Ci;if(a){for(let h of s)a.tempSkipped.push(h);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=o,new U(we.none,[],[],o-r)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Ci}}function Ra(n,e,t){return Vt.applyChanges(n,[{fromA:e,toA:t,fromB:e,toB:t}])}class Oi{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new Oi(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=gi.create(e.facet(At).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new Oi(i)}}Be.state=pe.define({create:Oi.init,update(n,e){for(let t of e.effects)if(t.is(Be.setState))return t.value;return e.startState.facet(At)!=e.state.facet(At)?Oi.init(e.state):n.apply(e)}});let tf=n=>{let e=setTimeout(()=>n(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(tf=n=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(n,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const hr=typeof navigator<"u"&&(!((ar=navigator.scheduling)===null||ar===void 0)&&ar.isInputPending)?()=>navigator.scheduling.isInputPending():null,Tg=K.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Be.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Be.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=tf(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnds+1e3,a=r.context.work(()=>hr&&hr()||Date.now()>o,s+(l?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:Be.setState.of(new Oi(r.context))})),this.chunkBudget>0&&!(a&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>Se(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),At=Q.define({combine(n){return n.length?n[0]:null},enables:n=>[Be.state,Tg,C.contentAttributes.compute([n],e=>{let t=e.facet(n);return t&&t.name?{"data-language":t.name}:{}})]});class nf{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const Cg=Q.define(),un=Q.define({combine:n=>{if(!n.length)return" ";let e=n[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return e}});function jt(n){let e=n.facet(un);return e.charCodeAt(0)==9?n.tabSize*e.length:e.length}function Ji(n,e){let t="",i=n.tabSize,s=n.facet(un)[0];if(s==" "){for(;e>=i;)t+=" ",e-=i;s=" "}for(let r=0;r=e?Qg(n,t,e):null}class Es{constructor(e,t={}){this.state=e,this.options=t,this.unit=jt(e)}lineAt(e,t=1){let i=this.state.doc.lineAt(e),{simulateBreak:s,simulateDoubleBreak:r}=this.options;return s!=null&&s>=i.from&&s<=i.to?r&&s==e?{text:"",from:e}:(t<0?s-1&&(r+=o-this.countColumn(i,i.search(/\S|$/))),r}countColumn(e,t=e.length){return bi(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:i,from:s}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let o=r(s);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Ws=new L;function Qg(n,e,t){let i=e.resolveStack(t),s=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(s!=i.node){let r=[];for(let o=s;o&&!(o.fromi.node.to||o.from==i.node.from&&o.type==i.node.type);o=o.parent)r.push(o);for(let o=r.length-1;o>=0;o--)i={node:r[o],next:i}}return sf(i,n,t)}function sf(n,e,t){for(let i=n;i;i=i.next){let s=Ag(i.node);if(s)return s(Ho.create(e,t,i))}return 0}function Pg(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function Ag(n){let e=n.type.prop(Ws);if(e)return e;let t=n.firstChild,i;if(t&&(i=t.type.prop(L.closedBy))){let s=n.lastChild,r=s&&i.indexOf(s.name)>-1;return o=>rf(o,!0,1,void 0,r&&!Pg(o)?s.from:void 0)}return n.parent==null?Rg:null}function Rg(){return 0}class Ho extends Es{constructor(e,t,i){super(e.state,e.options),this.base=e,this.pos=t,this.context=i}get node(){return this.context.node}static create(e,t,i){return new Ho(e,t,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(t.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(Mg(i,e))break;t=this.state.doc.lineAt(i.from)}return this.lineIndent(t.from)}continue(){return sf(this.context.next,this.base,this.pos)}}function Mg(n,e){for(let t=e;t;t=t.parent)if(n==t)return!0;return!1}function Dg(n){let e=n.node,t=e.childAfter(e.from),i=e.lastChild;if(!t)return null;let s=n.options.simulateBreak,r=n.state.doc.lineAt(t.from),o=s==null||s<=r.from?r.to:Math.min(r.to,s);for(let l=t.to;;){let a=e.childAfter(l);if(!a||a==i)return null;if(!a.type.isSkipped){if(a.from>=o)return null;let h=/^ */.exec(r.text.slice(t.to-r.from))[0].length;return{from:t.from,to:t.to+h}}l=a.to}}function cr({closing:n,align:e=!0,units:t=1}){return i=>rf(i,e,t,n)}function rf(n,e,t,i,s){let r=n.textAfter,o=r.match(/^\s*/)[0].length,l=i&&r.slice(o,o+i.length)==i||s==n.pos+o,a=e?Dg(n):null;return a?l?n.column(a.from):n.column(a.to):n.baseIndent+(l?0:n.unit*t)}function Ma({except:n,units:e=1}={}){return t=>{let i=n&&n.test(t.textAfter);return t.baseIndent+(i?0:e*t.unit)}}const Eg=200;function Wg(){return N.transactionFilter.of(n=>{if(!n.docChanged||!n.isUserEvent("input.type")&&!n.isUserEvent("input.complete"))return n;let e=n.startState.languageDataAt("indentOnInput",n.startState.selection.main.head);if(!e.length)return n;let t=n.newDoc,{head:i}=n.newSelection.main,s=t.lineAt(i);if(i>s.from+Eg)return n;let r=t.sliceString(s.from,i);if(!e.some(h=>h.test(r)))return n;let{state:o}=n,l=-1,a=[];for(let{head:h}of o.selection.ranges){let c=o.doc.lineAt(h);if(c.from==l)continue;l=c.from;let f=Uo(o,c.from);if(f==null)continue;let u=/^\s*/.exec(c.text)[0],d=Ji(o,f);u!=d&&a.push({from:c.from,to:c.from+u.length,insert:d})}return a.length?[n,{changes:a,sequential:!0}]:n})}const qg=Q.define(),jo=new L;function of(n){let e=n.firstChild,t=n.lastChild;return e&&e.tot)continue;if(r&&l.from=e&&h.to>t&&(r=h)}}return r}function $g(n){let e=n.lastChild;return e&&e.to==n.to&&e.type.isError}function ps(n,e,t){for(let i of n.facet(qg)){let s=i(n,e,t);if(s)return s}return Bg(n,e,t)}function lf(n,e){let t=e.mapPos(n.from,1),i=e.mapPos(n.to,-1);return t>=i?void 0:{from:t,to:i}}const qs=W.define({map:lf}),dn=W.define({map:lf});function af(n){let e=[];for(let{head:t}of n.state.selection.ranges)e.some(i=>i.from<=t&&i.to>=t)||e.push(n.lineBlockAt(t));return e}const Gt=pe.define({create(){return M.none},update(n,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((t,i)=>n=Da(n,t,i)),n=n.map(e.changes);for(let t of e.effects)if(t.is(qs)&&!Lg(n,t.value.from,t.value.to)){let{preparePlaceholder:i}=e.state.facet(ff),s=i?M.replace({widget:new _g(i(e.state,t.value))}):Ea;n=n.update({add:[s.range(t.value.from,t.value.to)]})}else t.is(dn)&&(n=n.update({filter:(i,s)=>t.value.from!=i||t.value.to!=s,filterFrom:t.value.from,filterTo:t.value.to}));return e.selection&&(n=Da(n,e.selection.main.head)),n},provide:n=>C.decorations.from(n),toJSON(n,e){let t=[];return n.between(0,e.doc.length,(i,s)=>{t.push(i,s)}),t},fromJSON(n){if(!Array.isArray(n)||n.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t{se&&(i=!0)}),i?n.update({filterFrom:e,filterTo:t,filter:(s,r)=>s>=t||r<=e}):n}function ms(n,e,t){var i;let s=null;return(i=n.field(Gt,!1))===null||i===void 0||i.between(e,t,(r,o)=>{(!s||s.from>r)&&(s={from:r,to:o})}),s}function Lg(n,e,t){let i=!1;return n.between(e,e,(s,r)=>{s==e&&r==t&&(i=!0)}),i}function hf(n,e){return n.field(Gt,!1)?e:e.concat(W.appendConfig.of(uf()))}const zg=n=>{for(let e of af(n)){let t=ps(n.state,e.from,e.to);if(t)return n.dispatch({effects:hf(n.state,[qs.of(t),cf(n,t)])}),!0}return!1},Ig=n=>{if(!n.state.field(Gt,!1))return!1;let e=[];for(let t of af(n)){let i=ms(n.state,t.from,t.to);i&&e.push(dn.of(i),cf(n,i,!1))}return e.length&&n.dispatch({effects:e}),e.length>0};function cf(n,e,t=!0){let i=n.state.doc.lineAt(e.from).number,s=n.state.doc.lineAt(e.to).number;return C.announce.of(`${n.state.phrase(t?"Folded lines":"Unfolded lines")} ${i} ${n.state.phrase("to")} ${s}.`)}const Ng=n=>{let{state:e}=n,t=[];for(let i=0;i{let e=n.state.field(Gt,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,n.state.doc.length,(i,s)=>{t.push(dn.of({from:i,to:s}))}),n.dispatch({effects:t}),!0},Xg=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:zg},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Ig},{key:"Ctrl-Alt-[",run:Ng},{key:"Ctrl-Alt-]",run:Vg}],Fg={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},ff=Q.define({combine(n){return lt(n,Fg)}});function uf(n){return[Gt,jg]}function df(n,e){let{state:t}=n,i=t.facet(ff),s=o=>{let l=n.lineBlockAt(n.posAtDOM(o.target)),a=ms(n.state,l.from,l.to);a&&n.dispatch({effects:dn.of(a)}),o.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(n,s,e);let r=document.createElement("span");return r.textContent=i.placeholderText,r.setAttribute("aria-label",t.phrase("folded code")),r.title=t.phrase("unfold"),r.className="cm-foldPlaceholder",r.onclick=s,r}const Ea=M.replace({widget:new class extends Xe{toDOM(n){return df(n,null)}}});class _g extends Xe{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return df(e,this.value)}}const Ug={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class fr extends yt{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function Hg(n={}){let e={...Ug,...n},t=new fr(e,!0),i=new fr(e,!1),s=K.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(At)!=o.state.facet(At)||o.startState.field(Gt,!1)!=o.state.field(Gt,!1)||ae(o.startState)!=ae(o.state)||e.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let l=new gt;for(let a of o.viewportLineBlocks){let h=ms(o.state,a.from,a.to)?i:ps(o.state,a.from,a.to)?t:null;h&&l.add(a.from,a.from,h)}return l.finish()}}),{domEventHandlers:r}=e;return[s,ug({class:"cm-foldGutter",markers(o){var l;return((l=o.plugin(s))===null||l===void 0?void 0:l.markers)||z.empty},initialSpacer(){return new fr(e,!1)},domEventHandlers:{...r,click:(o,l,a)=>{if(r.click&&r.click(o,l,a))return!0;let h=ms(o.state,l.from,l.to);if(h)return o.dispatch({effects:dn.of(h)}),!0;let c=ps(o.state,l.from,l.to);return c?(o.dispatch({effects:qs.of(c)}),!0):!1}}}),uf()]}const jg=C.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class pn{constructor(e,t){this.specs=e;let i;function s(l){let a=Ct.newName();return(i||(i=Object.create(null)))["."+a]=l,a}const r=typeof t.all=="string"?t.all:t.all?s(t.all):void 0,o=t.scope;this.scope=o instanceof Be?l=>l.prop(It)==o.data:o?l=>l==o:void 0,this.style=Rh(e.map(l=>({tag:l.tag,class:l.class||s(Object.assign({},l,{tag:null}))})),{all:r}).style,this.module=i?new Ct(i):null,this.themeType=t.themeType}static define(e,t){return new pn(e,t||{})}}const co=Q.define(),pf=Q.define({combine(n){return n.length?[n[0]]:null}});function ur(n){let e=n.facet(co);return e.length?e:n.facet(pf)}function mf(n,e){let t=[Zg],i;return n instanceof pn&&(n.module&&t.push(C.styleModule.of(n.module)),i=n.themeType),e?.fallback?t.push(pf.of(n)):i?t.push(co.computeN([C.darkTheme],s=>s.facet(C.darkTheme)==(i=="dark")?[n]:[])):t.push(co.of(n)),t}class Gg{constructor(e){this.markCache=Object.create(null),this.tree=ae(e.state),this.decorations=this.buildDeco(e,ur(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=ae(e.state),i=ur(e.state),s=i!=ur(e.startState),{viewport:r}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length=r.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||s)&&(this.tree=t,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=r.to)}buildDeco(e,t){if(!t||!this.tree.length)return M.none;let i=new gt;for(let{from:s,to:r}of e.visibleRanges)cd(this.tree,t,(o,l,a)=>{i.add(o,l,this.markCache[a]||(this.markCache[a]=M.mark({class:a})))},s,r);return i.finish()}}const Zg=Mt.high(K.fromClass(Gg,{decorations:n=>n.decorations})),Yg=pn.define([{tag:O.meta,color:"#404740"},{tag:O.link,textDecoration:"underline"},{tag:O.heading,textDecoration:"underline",fontWeight:"bold"},{tag:O.emphasis,fontStyle:"italic"},{tag:O.strong,fontWeight:"bold"},{tag:O.strikethrough,textDecoration:"line-through"},{tag:O.keyword,color:"#708"},{tag:[O.atom,O.bool,O.url,O.contentSeparator,O.labelName],color:"#219"},{tag:[O.literal,O.inserted],color:"#164"},{tag:[O.string,O.deleted],color:"#a11"},{tag:[O.regexp,O.escape,O.special(O.string)],color:"#e40"},{tag:O.definition(O.variableName),color:"#00f"},{tag:O.local(O.variableName),color:"#30a"},{tag:[O.typeName,O.namespace],color:"#085"},{tag:O.className,color:"#167"},{tag:[O.special(O.variableName),O.macroName],color:"#256"},{tag:O.definition(O.propertyName),color:"#00c"},{tag:O.comment,color:"#940"},{tag:O.invalid,color:"#f00"}]),Kg=C.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),gf=1e4,Of="()[]{}",yf=Q.define({combine(n){return lt(n,{afterCursor:!0,brackets:Of,maxScanDistance:gf,renderMatch:tO})}}),Jg=M.mark({class:"cm-matchingBracket"}),eO=M.mark({class:"cm-nonmatchingBracket"});function tO(n){let e=[],t=n.matched?Jg:eO;return e.push(t.range(n.start.from,n.start.to)),n.end&&e.push(t.range(n.end.from,n.end.to)),e}function Wa(n){let e=[],t=n.facet(yf);for(let i of n.selection.ranges){if(!i.empty)continue;let s=it(n,i.head,-1,t)||i.head>0&&it(n,i.head-1,1,t)||t.afterCursor&&(it(n,i.head,1,t)||i.headn.decorations}),nO=[iO,Kg];function sO(n={}){return[yf.of(n),nO]}const rO=new L;function fo(n,e,t){let i=n.prop(e<0?L.openedBy:L.closedBy);if(i)return i;if(n.name.length==1){let s=t.indexOf(n.name);if(s>-1&&s%2==(e<0?1:0))return[t[s+e]]}return null}function uo(n){let e=n.type.prop(rO);return e?e(n.node):n}function it(n,e,t,i={}){let s=i.maxScanDistance||gf,r=i.brackets||Of,o=ae(n),l=o.resolveInner(e,t);for(let a=l;a;a=a.parent){let h=fo(a.type,t,r);if(h&&a.from0?e>=c.from&&ec.from&&e<=c.to))return oO(n,e,t,a,c,h,r)}}return lO(n,e,t,o,l.type,s,r)}function oO(n,e,t,i,s,r,o){let l=i.parent,a={from:s.from,to:s.to},h=0,c=l?.cursor();if(c&&(t<0?c.childBefore(i.from):c.childAfter(i.to)))do if(t<0?c.to<=i.from:c.from>=i.to){if(h==0&&r.indexOf(c.type.name)>-1&&c.from0)return null;let h={from:t<0?e-1:e,to:t>0?e+1:e},c=n.doc.iterRange(e,t>0?n.doc.length:0),f=0;for(let u=0;!c.next().done&&u<=r;){let d=c.value;t<0&&(u+=d.length);let p=e+u*t;for(let m=t>0?0:d.length-1,g=t>0?d.length:-1;m!=g;m+=t){let y=o.indexOf(d[m]);if(!(y<0||i.resolveInner(p+m,1).type!=s))if(y%2==0==t>0)f++;else{if(f==1)return{start:h,end:{from:p+m,to:p+m+1},matched:y>>1==a>>1};f--}}t>0&&(u+=d.length)}return c.done?{start:h,matched:!1}:null}function qa(n,e,t,i=0,s=0){e==null&&(e=n.search(/[^\s\u00a0]/),e==-1&&(e=n.length));let r=s;for(let o=i;o=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.post}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPosi?o.toLowerCase():o,r=this.string.substr(this.pos,e.length);return s(r)==s(e)?(t!==!1&&(this.pos+=e.length),!0):null}else{let s=this.string.slice(this.pos).match(e);return s&&s.index>0?null:(s&&t!==!1&&(this.pos+=s[0].length),s)}}current(){return this.string.slice(this.start,this.pos)}}function aO(n){return{name:n.name||"",token:n.token,blankLine:n.blankLine||(()=>{}),startState:n.startState||(()=>!0),copyState:n.copyState||hO,indent:n.indent||(()=>null),languageData:n.languageData||{},tokenTable:n.tokenTable||Zo,mergeTokens:n.mergeTokens!==!1}}function hO(n){if(typeof n!="object")return n;let e={};for(let t in n){let i=n[t];e[t]=i instanceof Array?i.slice():i}return e}const Ba=new WeakMap;class xf extends Be{constructor(e){let t=ef(e.languageData),i=aO(e),s,r=new class extends To{createParse(o,l,a){return new fO(s,o,l,a)}};super(t,r,[],e.name),this.topNode=pO(t,this),s=this,this.streamParser=i,this.stateAfter=new L({perNode:!0}),this.tokenTable=e.tokenTable?new vf(i.tokenTable):dO}static define(e){return new xf(e)}getIndent(e){let t,{overrideIndentation:i}=e.options;i&&(t=Ba.get(e.state),t!=null&&t1e4)return null;for(;r=i&&t+e.length<=s&&e.prop(n.stateAfter);if(r)return{state:n.streamParser.copyState(r),pos:t+e.length};for(let o=e.children.length-1;o>=0;o--){let l=e.children[o],a=t+e.positions[o],h=l instanceof U&&a=e.length)return e;!s&&t==0&&e.type==n.topNode&&(s=!0);for(let r=e.children.length-1;r>=0;r--){let o=e.positions[r],l=e.children[r],a;if(ot&&Go(n,r.tree,0-r.offset,t,l),h;if(a&&a.pos<=i&&(h=Sf(n,r.tree,t+r.offset,a.pos+r.offset,!1)))return{state:a.state,tree:h}}return{state:n.streamParser.startState(s?jt(s):4),tree:U.empty}}class fO{constructor(e,t,i,s){this.lang=e,this.input=t,this.fragments=i,this.ranges=s,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=s[s.length-1].to;let r=gi.get(),o=s[0].from,{state:l,tree:a}=cO(e,i,o,this.to,r?.state);this.state=l,this.parsedPos=this.chunkStart=o+a.length;for(let h=0;hh.from<=r.viewport.from&&h.to>=r.viewport.from)&&(this.state=this.lang.streamParser.startState(jt(r.state)),r.skipUntilInView(this.parsedPos,r.viewport.from),this.parsedPos=r.viewport.from),this.moveRangeIndex()}advance(){let e=gi.get(),t=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt),i=Math.min(t,this.chunkStart+512);for(e&&(i=Math.min(i,e.viewport.to));this.parsedPos=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)t==` +`&&(t="");else{let i=t.indexOf(` +`);i>-1&&(t=t.slice(0,i))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),i=e+t.length;for(let s=this.rangeIndex;;){let r=this.ranges[s].to;if(r>=i||(t=t.slice(0,r-(i-t.length)),s++,s==this.ranges.length))break;let o=this.ranges[s].from,l=this.lineAfter(o);t+=l,i=o+l.length}return{line:t,end:i}}skipGapsTo(e,t,i){for(;;){let s=this.ranges[this.rangeIndex].to,r=e+t;if(i>0?s>r:s>=r)break;let o=this.ranges[++this.rangeIndex].from;t+=o-s}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){s=this.skipGapsTo(t,s,1),t+=s;let l=this.chunk.length;s=this.skipGapsTo(i,s,-1),i+=s,r+=this.chunk.length-l}let o=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&r==4&&o>=0&&this.chunk[o]==e&&this.chunk[o+2]==t?this.chunk[o+2]=i:this.chunk.push(e,t,i,r),s}parseLine(e){let{line:t,end:i}=this.nextLine(),s=0,{streamParser:r}=this.lang,o=new bf(t,e?e.state.tabSize:4,e?jt(e.state):2);if(o.eol())r.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let l=kf(r.token,o,this.state);if(l&&(s=this.emitToken(this.lang.tokenTable.resolve(l),this.parsedPos+o.start,this.parsedPos+o.pos,s)),o.start>1e4)break}this.parsedPos=i,this.moveRangeIndex(),this.parsedPose.start)return s}throw new Error("Stream parser failed to advance stream.")}const Zo=Object.create(null),en=[we.none],uO=new vs(en),$a=[],La=Object.create(null),wf=Object.create(null);for(let[n,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])wf[n]=Tf(Zo,e);class vf{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),wf)}resolve(e){return e?this.table[e]||(this.table[e]=Tf(this.extra,e)):0}}const dO=new vf(Zo);function dr(n,e){$a.indexOf(n)>-1||($a.push(n),console.warn(e))}function Tf(n,e){let t=[];for(let l of e.split(" ")){let a=[];for(let h of l.split(".")){let c=n[h]||O[h];c?typeof c=="function"?a.length?a=a.map(c):dr(h,`Modifier ${h} used at start of tag`):a.length?dr(h,`Tag ${h} used as modifier`):a=Array.isArray(c)?c:[c]:dr(h,`Unknown highlighting tag ${h}`)}for(let h of a)t.push(h)}if(!t.length)return 0;let i=e.replace(/ /g,"_"),s=i+" "+t.map(l=>l.id),r=La[s];if(r)return r.id;let o=La[s]=we.define({id:en.length,name:i,props:[Co({[i]:t})]});return en.push(o),o.id}function pO(n,e){let t=we.define({id:en.length,name:"Document",props:[It.add(()=>n),Ws.add(()=>i=>e.getIndent(i))],top:!0});return en.push(t),t}j.RTL,j.LTR;const mO=Co({String:O.string,Number:O.number,"True False":O.bool,PropertyName:O.propertyName,Null:O.null,", :":O.separator,"[ ]":O.squareBracket,"{ }":O.brace}),gO=Ni.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[mO],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),ox=()=>n=>{try{JSON.parse(n.state.doc.toString())}catch(e){if(!(e instanceof SyntaxError))throw e;const t=OO(e,n.state.doc);return[{from:t,message:e.message,severity:"error",to:t}]}return[]};function OO(n,e){let t;return(t=n.message.match(/at position (\d+)/))?Math.min(+t[1],e.length):(t=n.message.match(/at line (\d+) column (\d+)/))?Math.min(e.line(+t[1]).from+ +t[2]-1,e.length):0}const yO=Ki.define({name:"json",parser:gO.configure({props:[Ws.add({Object:Ma({except:/^\s*\}/}),Array:Ma({except:/^\s*\]/})}),jo.add({"Object Array":of})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function lx(){return new nf(yO)}const bO=1,Cf=194,Qf=195,xO=196,za=197,SO=198,kO=199,wO=200,vO=2,Pf=3,Ia=201,TO=24,CO=25,QO=49,PO=50,AO=55,RO=56,MO=57,DO=59,EO=60,WO=61,qO=62,BO=63,$O=65,LO=238,zO=71,IO=241,NO=242,VO=243,XO=244,FO=245,_O=246,UO=247,HO=248,Af=72,jO=249,GO=250,ZO=251,YO=252,KO=253,JO=254,e0=255,t0=256,i0=73,n0=77,s0=263,r0=112,o0=130,l0=151,a0=152,h0=155,Zt=10,tn=13,Yo=32,Bs=9,Ko=35,c0=40,f0=46,po=123,Na=125,Rf=39,Mf=34,Va=92,u0=111,d0=120,p0=78,m0=117,g0=85,O0=new Set([CO,QO,PO,s0,$O,o0,RO,MO,LO,qO,BO,Af,i0,n0,EO,WO,l0,a0,h0,r0]);function pr(n){return n==Zt||n==tn}function mr(n){return n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102}const y0=new Ts((n,e)=>{let t;if(n.next<0)n.acceptToken(kO);else if(e.context.flags&Yn)pr(n.next)&&n.acceptToken(SO,1);else if(((t=n.peek(-1))<0||pr(t))&&e.canShift(za)){let i=0;for(;n.next==Yo||n.next==Bs;)n.advance(),i++;(n.next==Zt||n.next==tn||n.next==Ko)&&n.acceptToken(za,-i)}else pr(n.next)&&n.acceptToken(xO,1)},{contextual:!0}),b0=new Ts((n,e)=>{let t=e.context;if(t.flags)return;let i=n.peek(-1);if(i==Zt||i==tn){let s=0,r=0;for(;;){if(n.next==Yo)s++;else if(n.next==Bs)s+=8-s%8;else break;n.advance(),r++}s!=t.indent&&n.next!=Zt&&n.next!=tn&&n.next!=Ko&&(s[n,e|Df])),k0=new nd({start:x0,reduce(n,e,t,i){return n.flags&Yn&&O0.has(e)||(e==zO||e==Af)&&n.flags&Df?n.parent:n},shift(n,e,t,i){return e==Cf?new Kn(n,S0(i.read(i.pos,t.pos)),0):e==Qf?n.parent:e==TO||e==AO||e==DO||e==Pf?new Kn(n,0,Yn):Xa.has(e)?new Kn(n,0,Xa.get(e)|n.flags&Yn):n},hash(n){return n.hash}}),w0=new Ts(n=>{for(let e=0;e<5;e++){if(n.next!="print".charCodeAt(e))return;n.advance()}if(!/\w/.test(String.fromCharCode(n.next)))for(let e=0;;e++){let t=n.peek(e);if(!(t==Yo||t==Bs)){t!=c0&&t!=f0&&t!=Zt&&t!=tn&&t!=Ko&&n.acceptToken(bO);return}}}),v0=new Ts((n,e)=>{let{flags:t}=e.context,i=t&ht?Mf:Rf,s=(t&ct)>0,r=!(t&ft),o=(t&ut)>0,l=n.pos;for(;!(n.next<0);)if(o&&n.next==po)if(n.peek(1)==po)n.advance(2);else{if(n.pos==l){n.acceptToken(Pf,1);return}break}else if(r&&n.next==Va){if(n.pos==l){n.advance();let a=n.next;a>=0&&(n.advance(),T0(n,a)),n.acceptToken(vO);return}break}else if(n.next==Va&&!r&&n.peek(1)>-1)n.advance(2);else if(n.next==i&&(!s||n.peek(1)==i&&n.peek(2)==i)){if(n.pos==l){n.acceptToken(Ia,s?3:1);return}break}else if(n.next==Zt){if(s)n.advance();else if(n.pos==l){n.acceptToken(Ia);return}break}else n.advance();n.pos>l&&n.acceptToken(wO)});function T0(n,e){if(e==u0)for(let t=0;t<2&&n.next>=48&&n.next<=55;t++)n.advance();else if(e==d0)for(let t=0;t<2&&mr(n.next);t++)n.advance();else if(e==m0)for(let t=0;t<4&&mr(n.next);t++)n.advance();else if(e==g0)for(let t=0;t<8&&mr(n.next);t++)n.advance();else if(e==p0&&n.next==po){for(n.advance();n.next>=0&&n.next!=Na&&n.next!=Rf&&n.next!=Mf&&n.next!=Zt;)n.advance();n.next==Na&&n.advance()}}const C0=Co({'async "*" "**" FormatConversion FormatSpec':O.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":O.controlKeyword,"in not and or is del":O.operatorKeyword,"from def class global nonlocal lambda":O.definitionKeyword,import:O.moduleKeyword,"with as print":O.keyword,Boolean:O.bool,None:O.null,VariableName:O.variableName,"CallExpression/VariableName":O.function(O.variableName),"FunctionDefinition/VariableName":O.function(O.definition(O.variableName)),"ClassDefinition/VariableName":O.definition(O.className),PropertyName:O.propertyName,"CallExpression/MemberExpression/PropertyName":O.function(O.propertyName),Comment:O.lineComment,Number:O.number,String:O.string,FormatString:O.special(O.string),Escape:O.escape,UpdateOp:O.updateOperator,"ArithOp!":O.arithmeticOperator,BitOp:O.bitwiseOperator,CompareOp:O.compareOperator,AssignOp:O.definitionOperator,Ellipsis:O.punctuation,At:O.meta,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace,".":O.derefOperator,", ;":O.separator}),Q0={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},P0=Ni.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO3rQdO'#EfO3zQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO4VQdO'#EyO4^QdO'#FOO4iQdO'#EzO0rQdO'#FOO1XQdO'#FQO1XQdO'#FVO4nQdO'#F[P4uOdO'#GpPOOO)CBd)CBdOOQS'#Ce'#CeOOQS'#Cf'#CfOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Cl'#ClO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO5TQdO'#DoOOQS,5:Y,5:YO5hQdO'#HdOOQS,5:],5:]O5uQ!fO,5:]O5zQtO,59YO1lQdO,59bO1lQdO,59bO1lQdO,59bO8jQdO,59bO8oQdO,59bO8vQdO,59jO8}QdO'#HTO:TQdO'#HSOOQS'#HS'#HSOOQS'#D['#D[O:lQdO,59aO'vQdO,59aO:zQdO,59aOOQS,59y,59yO;PQdO,5:RO'vQdO,5:ROOQS,5:Q,5:QO;_QdO,5:QO;dQdO,5:XO'vQdO,5:XO'vQdO,5:VOOQS,5:U,5:UO;uQdO,5:UO;zQdO,5:WOOOW'#Fy'#FyOOOOQS'#Ds'#DsOOQS1G/w1G/wOOQS1G.|1G.|O!/[QtO1G.|O!/cQtO1G.|O1lQdO1G.|O!0OQdO1G/UOOQS'#DZ'#DZO0rQdO,59tOOQS1G.{1G.{O!0VQdO1G/eO!0gQdO1G/eO!0oQdO1G/fO'vQdO'#H[O!0tQdO'#H[O!0yQtO1G.{O!1ZQdO,59iO!2aQdO,5=zO!2qQdO,5=zO!2yQdO1G/mO!3OQtO1G/mOOQS1G/l1G/lO!3`QdO,5=uO!4VQdO,5=uO0rQdO1G/qO!4tQdO1G/sO!4yQtO1G/sO!5ZQtO1G/qOOQS1G/p1G/pOOQS1G/r1G/rOOOW-E9w-E9wOOQS1G/{1G/{O!5kQdO'#HxO0rQdO'#HxO!5|QdO,5>cOOOW-E9x-E9xOOQS1G/|1G/|OOQS-E9{-E9{O!6[Q#xO1G2zO!6{QtO1G2zO'vQdO,5kOOQS1G1`1G1`O!8RQdO1G1`OOQS'#DV'#DVO0rQdO,5=qOOQS,5=q,5=qO!8WQdO'#FrO!8cQdO,59oO!8kQdO1G/XO!8uQtO,5=uOOQS1G3`1G3`OOQS,5:m,5:mO!9fQdO'#GtOOQS,5jO!;ZQdO,5>jO1XQdO,5>jO!;lQdO,5>iOOQS-E:R-E:RO!;qQdO1G0lO!;|QdO1G0lO!lO!lO!hO!=VQdO,5>hO!=hQdO'#EpO0rQdO1G0tO!=sQdO1G0tO!=xQgO1G0zO!AvQgO1G0}O!EqQdO,5>oO!E{QdO,5>oO!FTQtO,5>oO0rQdO1G1PO!F_QdO1G1PO4iQdO1G1UO!!vQdO1G1WOOQV,5;a,5;aO!FdQfO,5;aO!FiQgO1G1QO!JjQdO'#GZO4iQdO1G1QO4iQdO1G1QO!JzQdO,5>pO!KXQdO,5>pO1XQdO,5>pOOQV1G1U1G1UO!KaQdO'#FSO!KrQ!fO1G1WO!KzQdO1G1WOOQV1G1]1G1]O4iQdO1G1]O!LPQdO1G1]O!LXQdO'#F^OOQV1G1b1G1bO!#ZQtO1G1bPOOO1G2v1G2vP!L^OSO1G2vOOQS,5=},5=}OOQS'#Dp'#DpO0rQdO,5=}O!LfQdO,5=|O!LyQdO,5=|OOQS1G/u1G/uO!MRQdO,5>PO!McQdO,5>PO!MkQdO,5>PO!NOQdO,5>PO!N`QdO,5>POOQS1G3j1G3jOOQS7+$h7+$hO!8kQdO7+$pO#!RQdO1G.|O#!YQdO1G.|OOQS1G/`1G/`OOQS,5<`,5<`O'vQdO,5<`OOQS7+%P7+%PO#!aQdO7+%POOQS-E9r-E9rOOQS7+%Q7+%QO#!qQdO,5=vO'vQdO,5=vOOQS7+$g7+$gO#!vQdO7+%PO##OQdO7+%QO##TQdO1G3fOOQS7+%X7+%XO##eQdO1G3fO##mQdO7+%XOOQS,5<_,5<_O'vQdO,5<_O##rQdO1G3aOOQS-E9q-E9qO#$iQdO7+%]OOQS7+%_7+%_O#$wQdO1G3aO#%fQdO7+%_O#%kQdO1G3gO#%{QdO1G3gO#&TQdO7+%]O#&YQdO,5>dO#&sQdO,5>dO#&sQdO,5>dOOQS'#Dx'#DxO#'UO&jO'#DzO#'aO`O'#HyOOOW1G3}1G3}O#'fQdO1G3}O#'nQdO1G3}O#'yQ#xO7+(fO#(jQtO1G2UP#)TQdO'#GOOOQS,5nQdO,5sQdO1G4OOOQS-E9y-E9yO#?^QdO1G4OO<[QdO'#H{OOOO'#D{'#D{OOOO'#F|'#F|O#?oO&jO,5:fOOOW,5>e,5>eOOOW7+)i7+)iO#?zQdO7+)iO#@SQdO1G2zO#@mQdO1G2zP'vQdO'#FuO0rQdO<mO#BQQdO,5>mOOQS1G0v1G0vOOQS<rO#KgQdO,5>rO#KrQdO,5>rO#K}QdO,5>qO#L`QdO,5>qOOQS1G1Y1G1YOOQS,5;p,5;pOOQV<VAN>VO$ oQdO<cAN>cO0rQdO1G1|O$!PQtO1G1|P$!ZQdO'#FvOOQS1G2R1G2RP$!hQdO'#F{O$!uQdO7+)jO$#`QdO,5>gOOOO-E9z-E9zOOOW<tO$4{QdO,5>tO1XQdO,5vO$)nQdO,5>vOOQS1G1p1G1pOOQS,5<[,5<[OOQU7+'P7+'PO$+zQdO1G/iO$)nQdO,5wO$8zQdO,5>wOOQS1G1s1G1sOOQS7+'S7+'SP$)nQdO'#GdO$9SQdO1G4bO$9^QdO1G4bO$9fQdO1G4bOOQS7+%T7+%TO$9tQdO1G1tO$:SQtO'#FaO$:ZQdO,5<}OOQS,5<},5<}O$:iQdO1G4cOOQS-E:a-E:aO$)nQdO,5<|O$:pQdO,5<|O$:uQdO7+)|OOQS-E:`-E:`O$;PQdO7+)|O$)nQdO,5S~O%cOS%^OSSOS%]PQ~OPdOVaOfoOhYOopOs!POvqO!PrO!Q{O!T!SO!U!RO!XZO!][O!h`O!r`O!s`O!t`O!{tO!}uO#PvO#RwO#TxO#XyO#ZzO#^|O#_|O#a}O#c!OO#l!QO#o!TO#s!UO#u!VO#z!WO#}hO$P!XO%oRO%pRO%tSO%uWO&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O&c^O&d^O&e^O&f^O&g^O&h^O&i^O&j^O~O%]!YO~OV!aO_!aOa!bOh!iO!X!kO!f!mO%j![O%k!]O%l!^O%m!_O%n!_O%o!`O%p!`O%q!aO%r!aO%s!aO~Ok%xXl%xXm%xXn%xXo%xXp%xXs%xXz%xX{%xX!x%xX#g%xX%[%xX%_%xX%z%xXg%xX!T%xX!U%xX%{%xX!W%xX![%xX!Q%xX#[%xXt%xX!m%xX~P%SOfoOhYO!XZO!][O!h`O!r`O!s`O!t`O%oRO%pRO%tSO%uWO&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O&c^O&d^O&e^O&f^O&g^O&h^O&i^O&j^O~Oz%wX{%wX#g%wX%[%wX%_%wX%z%wX~Ok!pOl!qOm!oOn!oOo!rOp!sOs!tO!x%wX~P)pOV!zOg!|Oo0cOv0qO!PrO~P'vOV#OOo0cOv0qO!W#PO~P'vOV#SOa#TOo0cOv0qO![#UO~P'vOQ#XO%`#XO%a#ZO~OQ#^OR#[O%`#^O%a#`O~OV%iX_%iXa%iXh%iXk%iXl%iXm%iXn%iXo%iXp%iXs%iXz%iX!X%iX!f%iX%j%iX%k%iX%l%iX%m%iX%n%iX%o%iX%p%iX%q%iX%r%iX%s%iXg%iX!T%iX!U%iX~O&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O&c^O&d^O&e^O&f^O&g^O&h^O&i^O&j^O{%iX!x%iX#g%iX%[%iX%_%iX%z%iX%{%iX!W%iX![%iX!Q%iX#[%iXt%iX!m%iX~P,eOz#dO{%hX!x%hX#g%hX%[%hX%_%hX%z%hX~Oo0cOv0qO~P'vO#g#gO%[#iO%_#iO~O%uWO~O!T#nO#u!VO#z!WO#}hO~OopO~P'vOV#sOa#tO%uWO{wP~OV#xOo0cOv0qO!Q#yO~P'vO{#{O!x$QO%z#|O#g!yX%[!yX%_!yX~OV#xOo0cOv0qO#g#SX%[#SX%_#SX~P'vOo0cOv0qO#g#WX%[#WX%_#WX~P'vOh$WO%uWO~O!f$YO!r$YO%uWO~OV$eO~P'vO!U$gO#s$hO#u$iO~O{$jO~OV$qO~P'vOS$sO%[$rO%_$rO%c$tO~OV$}Oa$}Og%POo0cOv0qO~P'vOo0cOv0qO{%SO~P'vO&Y%UO~Oa!bOh!iO!X!kO!f!mOVba_bakbalbambanbaobapbasbazba{ba!xba#gba%[ba%_ba%jba%kba%lba%mba%nba%oba%pba%qba%rba%sba%zbagba!Tba!Uba%{ba!Wba![ba!Qba#[batba!mba~On%ZO~Oo%ZO~P'vOo0cO~P'vOk0eOl0fOm0dOn0dOo0mOp0nOs0rOg%wX!T%wX!U%wX%{%wX!W%wX![%wX!Q%wX#[%wX!m%wX~P)pO%{%]Og%vXz%vX!T%vX!U%vX!W%vX{%vX~Og%_Oz%`O!T%dO!U%cO~Og%_O~Oz%gO!T%dO!U%cO!W&SX~O!W%kO~Oz%lO{%nO!T%dO!U%cO![%}X~O![%rO~O![%sO~OQ#XO%`#XO%a%uO~OV%wOo0cOv0qO!PrO~P'vOQ#^OR#[O%`#^O%a%zO~OV!qa_!qaa!qah!qak!qal!qam!qan!qao!qap!qas!qaz!qa{!qa!X!qa!f!qa!x!qa#g!qa%[!qa%_!qa%j!qa%k!qa%l!qa%m!qa%n!qa%o!qa%p!qa%q!qa%r!qa%s!qa%z!qag!qa!T!qa!U!qa%{!qa!W!qa![!qa!Q!qa#[!qat!qa!m!qa~P#yOz%|O{%ha!x%ha#g%ha%[%ha%_%ha%z%ha~P%SOV&OOopOvqO{%ha!x%ha#g%ha%[%ha%_%ha%z%ha~P'vOz%|O{%ha!x%ha#g%ha%[%ha%_%ha%z%ha~OPdOVaOopOvqO!PrO!Q{O!{tO!}uO#PvO#RwO#TxO#XyO#ZzO#^|O#_|O#a}O#c!OO#g$zX%[$zX%_$zX~P'vO#g#gO%[&TO%_&TO~O!f&UOh&sX%[&sXz&sX#[&sX#g&sX%_&sX#Z&sXg&sX~Oh!iO%[&WO~Okealeameaneaoeapeaseazea{ea!xea#gea%[ea%_ea%zeagea!Tea!Uea%{ea!Wea![ea!Qea#[eatea!mea~P%SOsqazqa{qa#gqa%[qa%_qa%zqa~Ok!pOl!qOm!oOn!oOo!rOp!sO!xqa~PEcO%z&YOz%yX{%yX~O%uWOz%yX{%yX~Oz&]O{wX~O{&_O~Oz%lO#g%}X%[%}X%_%}Xg%}X{%}X![%}X!m%}X%z%}X~OV0lOo0cOv0qO!PrO~P'vO%z#|O#gUa%[Ua%_Ua~Oz&hO#g&PX%[&PX%_&PXn&PX~P%SOz&kO!Q&jO#g#Wa%[#Wa%_#Wa~Oz&lO#[&nO#g&rX%[&rX%_&rXg&rX~O!f$YO!r$YO#Z&qO%uWO~O#Z&qO~Oz&sO#g&tX%[&tX%_&tX~Oz&uO#g&pX%[&pX%_&pX{&pX~O!X&wO%z&xO~Oz&|On&wX~P%SOn'PO~OPdOVaOopOvqO!PrO!Q{O!{tO!}uO#PvO#RwO#TxO#XyO#ZzO#^|O#_|O#a}O#c!OO%['UO~P'vOt'YO#p'WO#q'XOP#naV#naf#nah#nao#nas#nav#na!P#na!Q#na!T#na!U#na!X#na!]#na!h#na!r#na!s#na!t#na!{#na!}#na#P#na#R#na#T#na#X#na#Z#na#^#na#_#na#a#na#c#na#l#na#o#na#s#na#u#na#z#na#}#na$P#na%X#na%o#na%p#na%t#na%u#na&Z#na&[#na&]#na&^#na&_#na&`#na&a#na&b#na&c#na&d#na&e#na&f#na&g#na&h#na&i#na&j#na%Z#na%_#na~Oz'ZO#[']O{&xX~Oh'_O!X&wO~Oh!iO{$jO!X&wO~O{'eO~P%SO%['hO%_'hO~OS'iO%['hO%_'hO~OV!aO_!aOa!bOh!iO!X!kO!f!mO%l!^O%m!_O%n!_O%o!`O%p!`O%q!aO%r!aO%s!aOkWilWimWinWioWipWisWizWi{Wi!xWi#gWi%[Wi%_Wi%jWi%zWigWi!TWi!UWi%{Wi!WWi![Wi!QWi#[WitWi!mWi~O%k!]O~P!#uO%kWi~P!#uOV!aO_!aOa!bOh!iO!X!kO!f!mO%o!`O%p!`O%q!aO%r!aO%s!aOkWilWimWinWioWipWisWizWi{Wi!xWi#gWi%[Wi%_Wi%jWi%kWi%lWi%zWigWi!TWi!UWi%{Wi!WWi![Wi!QWi#[WitWi!mWi~O%m!_O%n!_O~P!&pO%mWi%nWi~P!&pOa!bOh!iO!X!kO!f!mOkWilWimWinWioWipWisWizWi{Wi!xWi#gWi%[Wi%_Wi%jWi%kWi%lWi%mWi%nWi%oWi%pWi%zWigWi!TWi!UWi%{Wi!WWi![Wi!QWi#[WitWi!mWi~OV!aO_!aO%q!aO%r!aO%s!aO~P!)nOVWi_Wi%qWi%rWi%sWi~P!)nO!T%dO!U%cOg&VXz&VX~O%z'kO%{'kO~P,eOz'mOg&UX~Og'oO~Oz'pO{'rO!W&XX~Oo0cOv0qOz'pO{'sO!W&XX~P'vO!W'uO~Om!oOn!oOo!rOp!sOkjisjizji{ji!xji#gji%[ji%_ji%zji~Ol!qO~P!.aOlji~P!.aOk0eOl0fOm0dOn0dOo0mOp0nO~Ot'wO~P!/jOV'|Og'}Oo0cOv0qO~P'vOg'}Oz(OO~Og(QO~O!U(SO~Og(TOz(OO!T%dO!U%cO~P%SOk0eOl0fOm0dOn0dOo0mOp0nOgqa!Tqa!Uqa%{qa!Wqa![qa!Qqa#[qatqa!mqa~PEcOV'|Oo0cOv0qO!W&Sa~P'vOz(WO!W&Sa~O!W(XO~Oz(WO!T%dO!U%cO!W&Sa~P%SOV(]Oo0cOv0qO![%}a#g%}a%[%}a%_%}ag%}a{%}a!m%}a%z%}a~P'vOz(^O![%}a#g%}a%[%}a%_%}ag%}a{%}a!m%}a%z%}a~O![(aO~Oz(^O!T%dO!U%cO![%}a~P%SOz(dO!T%dO!U%cO![&Ta~P%SOz(gO{&lX![&lX!m&lX%z&lX~O{(kO![(mO!m(nO%z(jO~OV&OOopOvqO{%hi!x%hi#g%hi%[%hi%_%hi%z%hi~P'vOz(pO{%hi!x%hi#g%hi%[%hi%_%hi%z%hi~O!f&UOh&sa%[&saz&sa#[&sa#g&sa%_&sa#Z&sag&sa~O%[(uO~OV#sOa#tO%uWO~Oz&]O{wa~OopOvqO~P'vOz(^O#g%}a%[%}a%_%}ag%}a{%}a![%}a!m%}a%z%}a~P%SOz(zO#g%hX%[%hX%_%hX%z%hX~O%z#|O#gUi%[Ui%_Ui~O#g&Pa%[&Pa%_&Pan&Pa~P'vOz(}O#g&Pa%[&Pa%_&Pan&Pa~O%uWO#g&ra%[&ra%_&rag&ra~Oz)SO#g&ra%[&ra%_&rag&ra~Og)VO~OV)WOh$WO%uWO~O#Z)XO~O%uWO#g&ta%[&ta%_&ta~Oz)ZO#g&ta%[&ta%_&ta~Oo0cOv0qO#g&pa%[&pa%_&pa{&pa~P'vOz)^O#g&pa%[&pa%_&pa{&pa~OV)`Oa)`O%uWO~O%z)eO~Ot)hO#j)gOP#hiV#hif#hih#hio#his#hiv#hi!P#hi!Q#hi!T#hi!U#hi!X#hi!]#hi!h#hi!r#hi!s#hi!t#hi!{#hi!}#hi#P#hi#R#hi#T#hi#X#hi#Z#hi#^#hi#_#hi#a#hi#c#hi#l#hi#o#hi#s#hi#u#hi#z#hi#}#hi$P#hi%X#hi%o#hi%p#hi%t#hi%u#hi&Z#hi&[#hi&]#hi&^#hi&_#hi&`#hi&a#hi&b#hi&c#hi&d#hi&e#hi&f#hi&g#hi&h#hi&i#hi&j#hi%Z#hi%_#hi~Ot)iOP#kiV#kif#kih#kio#kis#kiv#ki!P#ki!Q#ki!T#ki!U#ki!X#ki!]#ki!h#ki!r#ki!s#ki!t#ki!{#ki!}#ki#P#ki#R#ki#T#ki#X#ki#Z#ki#^#ki#_#ki#a#ki#c#ki#l#ki#o#ki#s#ki#u#ki#z#ki#}#ki$P#ki%X#ki%o#ki%p#ki%t#ki%u#ki&Z#ki&[#ki&]#ki&^#ki&_#ki&`#ki&a#ki&b#ki&c#ki&d#ki&e#ki&f#ki&g#ki&h#ki&i#ki&j#ki%Z#ki%_#ki~OV)kOn&wa~P'vOz)lOn&wa~Oz)lOn&wa~P%SOn)pO~O%Y)tO~Ot)wO#p'WO#q)vOP#niV#nif#nih#nio#nis#niv#ni!P#ni!Q#ni!T#ni!U#ni!X#ni!]#ni!h#ni!r#ni!s#ni!t#ni!{#ni!}#ni#P#ni#R#ni#T#ni#X#ni#Z#ni#^#ni#_#ni#a#ni#c#ni#l#ni#o#ni#s#ni#u#ni#z#ni#}#ni$P#ni%X#ni%o#ni%p#ni%t#ni%u#ni&Z#ni&[#ni&]#ni&^#ni&_#ni&`#ni&a#ni&b#ni&c#ni&d#ni&e#ni&f#ni&g#ni&h#ni&i#ni&j#ni%Z#ni%_#ni~OV)zOo0cOv0qO{$jO~P'vOo0cOv0qO{&xa~P'vOz*OO{&xa~OV*SOa*TOg*WO%q*UO%uWO~O{$jO&{*YO~Oh'_O~Oh!iO{$jO~O%[*_O~O%[*aO%_*aO~OV$}Oa$}Oo0cOv0qOg&Ua~P'vOz*dOg&Ua~Oo0cOv0qO{*gO!W&Xa~P'vOz*hO!W&Xa~Oo0cOv0qOz*hO{*kO!W&Xa~P'vOo0cOv0qOz*hO!W&Xa~P'vOz*hO{*kO!W&Xa~Om0dOn0dOo0mOp0nOgjikjisjizji!Tji!Uji%{ji!Wji{ji![ji#gji%[ji%_ji!Qji#[jitji!mji%zji~Ol0fO~P!NkOlji~P!NkOV'|Og*pOo0cOv0qO~P'vOn*rO~Og*pOz*tO~Og*uO~OV'|Oo0cOv0qO!W&Si~P'vOz*vO!W&Si~O!W*wO~OV(]Oo0cOv0qO![%}i#g%}i%[%}i%_%}ig%}i{%}i!m%}i%z%}i~P'vOz*zO!T%dO!U%cO![&Ti~Oz*}O![%}i#g%}i%[%}i%_%}ig%}i{%}i!m%}i%z%}i~O![+OO~Oa+QOo0cOv0qO![&Ti~P'vOz*zO![&Ti~O![+SO~OV+UOo0cOv0qO{&la![&la!m&la%z&la~P'vOz+VO{&la![&la!m&la%z&la~O!]+YO&n+[O![!nX~O![+^O~O{(kO![+_O~O{(kO![+_O!m+`O~OV&OOopOvqO{%hq!x%hq#g%hq%[%hq%_%hq%z%hq~P'vOz$ri{$ri!x$ri#g$ri%[$ri%_$ri%z$ri~P%SOV&OOopOvqO~P'vOV&OOo0cOv0qO#g%ha%[%ha%_%ha%z%ha~P'vOz+aO#g%ha%[%ha%_%ha%z%ha~Oz$ia#g$ia%[$ia%_$ian$ia~P%SO#g&Pi%[&Pi%_&Pin&Pi~P'vOz+dO#g#Wq%[#Wq%_#Wq~O#[+eOz$va#g$va%[$va%_$vag$va~O%uWO#g&ri%[&ri%_&rig&ri~Oz+gO#g&ri%[&ri%_&rig&ri~OV+iOh$WO%uWO~O%uWO#g&ti%[&ti%_&ti~Oo0cOv0qO#g&pi%[&pi%_&pi{&pi~P'vO{#{Oz#eX!W#eX~Oz+mO!W&uX~O!W+oO~Ot+rO#j)gOP#hqV#hqf#hqh#hqo#hqs#hqv#hq!P#hq!Q#hq!T#hq!U#hq!X#hq!]#hq!h#hq!r#hq!s#hq!t#hq!{#hq!}#hq#P#hq#R#hq#T#hq#X#hq#Z#hq#^#hq#_#hq#a#hq#c#hq#l#hq#o#hq#s#hq#u#hq#z#hq#}#hq$P#hq%X#hq%o#hq%p#hq%t#hq%u#hq&Z#hq&[#hq&]#hq&^#hq&_#hq&`#hq&a#hq&b#hq&c#hq&d#hq&e#hq&f#hq&g#hq&h#hq&i#hq&j#hq%Z#hq%_#hq~On$|az$|a~P%SOV)kOn&wi~P'vOz+yOn&wi~Oz,TO{$jO#[,TO~O#q,VOP#nqV#nqf#nqh#nqo#nqs#nqv#nq!P#nq!Q#nq!T#nq!U#nq!X#nq!]#nq!h#nq!r#nq!s#nq!t#nq!{#nq!}#nq#P#nq#R#nq#T#nq#X#nq#Z#nq#^#nq#_#nq#a#nq#c#nq#l#nq#o#nq#s#nq#u#nq#z#nq#}#nq$P#nq%X#nq%o#nq%p#nq%t#nq%u#nq&Z#nq&[#nq&]#nq&^#nq&_#nq&`#nq&a#nq&b#nq&c#nq&d#nq&e#nq&f#nq&g#nq&h#nq&i#nq&j#nq%Z#nq%_#nq~O#[,WOz%Oa{%Oa~Oo0cOv0qO{&xi~P'vOz,YO{&xi~O{#{O%z,[Og&zXz&zX~O%uWOg&zXz&zX~Oz,`Og&yX~Og,bO~O%Y,eO~O!T%dO!U%cOg&Viz&Vi~OV$}Oa$}Oo0cOv0qOg&Ui~P'vO{,hOz$la!W$la~Oo0cOv0qO{,iOz$la!W$la~P'vOo0cOv0qO{*gO!W&Xi~P'vOz,lO!W&Xi~Oo0cOv0qOz,lO!W&Xi~P'vOz,lO{,oO!W&Xi~Og$hiz$hi!W$hi~P%SOV'|Oo0cOv0qO~P'vOn,qO~OV'|Og,rOo0cOv0qO~P'vOV'|Oo0cOv0qO!W&Sq~P'vOz$gi![$gi#g$gi%[$gi%_$gig$gi{$gi!m$gi%z$gi~P%SOV(]Oo0cOv0qO~P'vOa+QOo0cOv0qO![&Tq~P'vOz,sO![&Tq~O![,tO~OV(]Oo0cOv0qO![%}q#g%}q%[%}q%_%}qg%}q{%}q!m%}q%z%}q~P'vO{,uO~OV+UOo0cOv0qO{&li![&li!m&li%z&li~P'vOz,zO{&li![&li!m&li%z&li~O!]+YO&n+[O![!na~O{(kO![,}O~OV&OOo0cOv0qO#g%hi%[%hi%_%hi%z%hi~P'vOz-OO#g%hi%[%hi%_%hi%z%hi~O%uWO#g&rq%[&rq%_&rqg&rq~Oz-RO#g&rq%[&rq%_&rqg&rq~OV)`Oa)`O%uWO!W&ua~Oz-TO!W&ua~On$|iz$|i~P%SOV)kO~P'vOV)kOn&wq~P'vOt-XOP#myV#myf#myh#myo#mys#myv#my!P#my!Q#my!T#my!U#my!X#my!]#my!h#my!r#my!s#my!t#my!{#my!}#my#P#my#R#my#T#my#X#my#Z#my#^#my#_#my#a#my#c#my#l#my#o#my#s#my#u#my#z#my#}#my$P#my%X#my%o#my%p#my%t#my%u#my&Z#my&[#my&]#my&^#my&_#my&`#my&a#my&b#my&c#my&d#my&e#my&f#my&g#my&h#my&i#my&j#my%Z#my%_#my~O%Z-]O%_-]O~P`O#q-^OP#nyV#nyf#nyh#nyo#nys#nyv#ny!P#ny!Q#ny!T#ny!U#ny!X#ny!]#ny!h#ny!r#ny!s#ny!t#ny!{#ny!}#ny#P#ny#R#ny#T#ny#X#ny#Z#ny#^#ny#_#ny#a#ny#c#ny#l#ny#o#ny#s#ny#u#ny#z#ny#}#ny$P#ny%X#ny%o#ny%p#ny%t#ny%u#ny&Z#ny&[#ny&]#ny&^#ny&_#ny&`#ny&a#ny&b#ny&c#ny&d#ny&e#ny&f#ny&g#ny&h#ny&i#ny&j#ny%Z#ny%_#ny~Oz-aO{$jO#[-aO~Oo0cOv0qO{&xq~P'vOz-dO{&xq~O%z,[Og&zaz&za~O{#{Og&zaz&za~OV*SOa*TO%q*UO%uWOg&ya~Oz-hOg&ya~O$S-lO~OV$}Oa$}Oo0cOv0qO~P'vOo0cOv0qO{-mOz$li!W$li~P'vOo0cOv0qOz$li!W$li~P'vO{-mOz$li!W$li~Oo0cOv0qO{*gO~P'vOo0cOv0qO{*gO!W&Xq~P'vOz-pO!W&Xq~Oo0cOv0qOz-pO!W&Xq~P'vOs-sO!T%dO!U%cOg&Oq!W&Oq![&Oqz&Oq~P!/jOa+QOo0cOv0qO![&Ty~P'vOz$ji![$ji~P%SOa+QOo0cOv0qO~P'vOV+UOo0cOv0qO~P'vOV+UOo0cOv0qO{&lq![&lq!m&lq%z&lq~P'vO{(kO![-xO!m-yO%z-wO~OV&OOo0cOv0qO#g%hq%[%hq%_%hq%z%hq~P'vO%uWO#g&ry%[&ry%_&ryg&ry~OV)`Oa)`O%uWO!W&ui~Ot-}OP#m!RV#m!Rf#m!Rh#m!Ro#m!Rs#m!Rv#m!R!P#m!R!Q#m!R!T#m!R!U#m!R!X#m!R!]#m!R!h#m!R!r#m!R!s#m!R!t#m!R!{#m!R!}#m!R#P#m!R#R#m!R#T#m!R#X#m!R#Z#m!R#^#m!R#_#m!R#a#m!R#c#m!R#l#m!R#o#m!R#s#m!R#u#m!R#z#m!R#}#m!R$P#m!R%X#m!R%o#m!R%p#m!R%t#m!R%u#m!R&Z#m!R&[#m!R&]#m!R&^#m!R&_#m!R&`#m!R&a#m!R&b#m!R&c#m!R&d#m!R&e#m!R&f#m!R&g#m!R&h#m!R&i#m!R&j#m!R%Z#m!R%_#m!R~Oo0cOv0qO{&xy~P'vOV*SOa*TO%q*UO%uWOg&yi~O$S-lO%Z.VO%_.VO~OV.aOh._O!X.^O!].`O!h.YO!s.[O!t.[O%p.XO%uWO&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O~Oo0cOv0qOz$lq!W$lq~P'vO{.fOz$lq!W$lq~Oo0cOv0qO{*gO!W&Xy~P'vOz.gO!W&Xy~Oo0cOv.kO~P'vOs-sO!T%dO!U%cOg&Oy!W&Oy![&Oyz&Oy~P!/jO{(kO![.nO~O{(kO![.nO!m.oO~OV*SOa*TO%q*UO%uWO~Oh.tO!f.rOz$TX#[$TX%j$TXg$TX~Os$TX{$TX!W$TX![$TX~P$-bO%o.vO%p.vOs$UXz$UX{$UX#[$UX%j$UX!W$UXg$UX![$UX~O!h.xO~Oz.|O#[/OO%j.yOs&|X{&|X!W&|Xg&|X~Oa/RO~P$)zOh.tOs&}Xz&}X{&}X#[&}X%j&}X!W&}Xg&}X![&}X~Os/VO{$jO~Oo0cOv0qOz$ly!W$ly~P'vOo0cOv0qO{*gO!W&X!R~P'vOz/ZO!W&X!R~Og&RXs&RX!T&RX!U&RX!W&RX![&RXz&RX~P!/jOs-sO!T%dO!U%cOg&Qa!W&Qa![&Qaz&Qa~O{(kO![/^O~O!f.rOh$[as$[az$[a{$[a#[$[a%j$[a!W$[ag$[a![$[a~O!h/eO~O%o.vO%p.vOs$Uaz$Ua{$Ua#[$Ua%j$Ua!W$Uag$Ua![$Ua~O%j.yOs$Yaz$Ya{$Ya#[$Ya!W$Yag$Ya![$Ya~Os&|a{&|a!W&|ag&|a~P$)nOz/jOs&|a{&|a!W&|ag&|a~O!W/mO~Og/mO~O{/oO~O![/pO~Oo0cOv0qO{*gO!W&X!Z~P'vO{/sO~O%z/tO~P$-bOz/uO#[/OO%j.yOg'PX~Oz/uOg'PX~Og/wO~O!h/xO~O#[/OOs%Saz%Sa{%Sa%j%Sa!W%Sag%Sa![%Sa~O#[/OO%j.yOs%Waz%Wa{%Wa!W%Wag%Wa~Os&|i{&|i!W&|ig&|i~P$)nOz/zO#[/OO%j.yO!['Oa~Og'Pa~P$)nOz0SOg'Pa~Oa0UO!['Oi~P$)zOz0WO!['Oi~Oz0WO#[/OO%j.yO!['Oi~O#[/OO%j.yOg$biz$bi~O%z0ZO~P$-bO#[/OO%j.yOg%Vaz%Va~Og'Pi~P$)nO{0^O~Oa0UO!['Oq~P$)zOz0`O!['Oq~O#[/OO%j.yOz%Ui![%Ui~Oa0UO~P$)zOa0UO!['Oy~P$)zO#[/OO%j.yOg$ciz$ci~O#[/OO%j.yOz%Uq![%Uq~Oz+aO#g%ha%[%ha%_%ha%z%ha~P%SOV&OOo0cOv0qO~P'vOn0hO~Oo0hO~P'vO{0iO~Ot0jO~P!/jO&]&Z&j&h&i&g&f&d&e&c&b&`&a&_&^&[%u~",goto:"!=j'QPPPPPP'RP'Z*s+[+t,_,y-fP.SP'Z.r.r'ZPPP'Z2[PPPPPP2[5PPP5PP7b7k=sPP=v>h>kPP'Z'ZPP>zPP'Z'ZPP'Z'Z'Z'Z'Z?O?w'ZP?zP@QDXGuGyPG|HWH['ZPPPH_Hk'RP'R'RP'RP'RP'RP'RP'R'R'RP'RPP'RPP'RP'RPHqH}IVPI^IdPI^PI^I^PPPI^PKrPK{LVL]KrPI^LfPI^PLmLsPLwM]MzNeLwLwNkNxLwLwLwLw! ^! d! g! l! o! y!!P!!]!!o!!u!#P!#V!#s!#y!$P!$Z!$a!$g!$y!%T!%Z!%a!%k!%q!%w!%}!&T!&Z!&e!&k!&u!&{!'U!'[!'k!'s!'}!(UPPPPPPPPPPP!([!(_!(e!(n!(x!)TPPPPPPPPPPPP!-u!/Z!3^!6oPP!6w!7W!7a!8Y!8P!8c!8i!8l!8o!8r!8z!9jPPPPPPPPPPPPPPPPP!9m!9q!9wP!:]!:a!:m!:v!;S!;j!;m!;p!;v!;|!_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#YJU#Y#Z!#f#Z#fJU#f#g!,|#g#iJU#i#j!.t#j#oJU#o#p!1n#p#q!1s#q#r!2a#r#s!2f#s$g%T$g;'SJU;'S;=`KW<%lOJU`%YT&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T`%lP;=`<%l%To%v]&n`%c_OX%TXY%oY[%T[]%o]p%Tpq%oq#O%T#O#P&o#P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To&tX&n`OY%TYZ%oZ]%T]^%o^#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc'f[&n`O!_%T!_!`([!`#T%T#T#U(r#U#f%T#f#g(r#g#h(r#h#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(cTmR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(yT!mR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk)aV&n`&[ZOr%Trs)vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk){V&n`Or%Trs*bs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk*iT&n`&^ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To+PZS_&n`OY*xYZ%TZ]*x]^%T^#o*x#o#p+r#p#q*x#q#r+r#r;'S*x;'S;=`,^<%lO*x_+wTS_OY+rZ]+r^;'S+r;'S;=`,W<%lO+r_,ZP;=`<%l+ro,aP;=`<%l*xj,kV%rQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-XT!xY&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-oV%lQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.]V&n`&ZZOw%Twx.rx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.wV&n`Ow%Twx/^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/eT&n`&]ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/{ThZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc0cTgR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk0yXVZ&n`Oz%Tz{1f{!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk1mVaR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk2ZV%oZ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc2wTzR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To3_W%pZ&n`O!_%T!_!`-Q!`!a3w!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Td4OT&{S&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk4fX!fQ&n`O!O%T!O!P5R!P!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5WV&n`O!O%T!O!P5m!P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5tT!rZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti6[a!hX&n`O!Q%T!Q![6T![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S6T#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti7fZ&n`O{%T{|8X|}%T}!O8X!O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8^V&n`O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8z]!hX&n`O!Q%T!Q![8s![!l%T!l!m9s!m#R%T#R#S8s#S#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti9zT!hX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk:bX%qR&n`O!P%T!P!Q:}!Q!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj;UV%sQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti;ro!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!d%T!d!e?q!e!g%T!g!h7a!h!l%T!l!m9s!m!q%T!q!rA]!r!z%T!z!{Bq!{#R%T#R#S>_#S#U%T#U#V?q#V#X%T#X#Y7a#Y#^%T#^#_9s#_#c%T#c#dA]#d#l%T#l#mBq#m#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti=xV&n`O!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti>fc!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S>_#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti?vY&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti@mY!hX&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiAbX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBUX!hX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBv]&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiCv]!hX&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToDvV{_&n`O!_%T!_!`E]!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TcEdT%{R&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkEzT#gZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkFbXmR&n`O!^%T!^!_F}!_!`([!`!a([!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjGUV%mQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkGrV%zZ&n`O!_%T!_!`([!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkH`WmR&n`O!_%T!_!`([!`!aHx!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjIPV%nQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkIoV_Q#}P&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToJ_]&n`&YS%uZO!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoKZP;=`<%lJUoKge&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!tJU!t!uLx!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#gLx#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoMRa&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUkN_V&n`&`ZOr%TrsNts#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkNyV&n`Or%Trs! `s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! gT&n`&bZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! }V&n`&_ZOw%Twx!!dx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!!iV&n`Ow%Twx!#Ox#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!#VT&n`&aZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!#oe&n`&YS%uZOr%Trs!%Qsw%Twx!&px!Q%T!Q![JU![!c%T!c!tJU!t!u!(`!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#g!(`#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!%XV&n`&dZOr%Trs!%ns#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!%sV&n`Or%Trs!&Ys#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&aT&n`&fZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&wV&n`&cZOw%Twx!'^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!'cV&n`Ow%Twx!'xx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!(PT&n`&eZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!(ia&n`&YS%uZOr%Trs!)nsw%Twx!+^x!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!)uV&n`&hZOr%Trs!*[s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*aV&n`Or%Trs!*vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*}T&n`&jZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!+eV&n`&gZOw%Twx!+zx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,PV&n`Ow%Twx!,fx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,mT&n`&iZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!-Vi&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!dJU!d!eLx!e!hJU!h!i!(`!i!}JU!}#R%T#R#SJU#S#T%T#T#UJU#U#VLx#V#YJU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[w0,b0,y0,v0,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:n=>Q0[n]||-1}],tokenPrec:7668});class Ef{constructor(e,t,i,s){this.state=e,this.pos=t,this.explicit=i,this.view=s,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=ae(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),i=Math.max(t.from,this.pos-250),s=t.text.slice(i-t.from,this.pos-t.from),r=s.search(qf(e,!1));return r<0?null:{from:i+r,to:this.pos,text:s.slice(r)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,i){e=="abort"&&this.abortListeners&&(this.abortListeners.push(t),i&&i.onDocChange&&(this.abortOnDocChange=!0))}}function Fa(n){let e=Object.keys(n).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function A0(n){let e=Object.create(null),t=Object.create(null);for(let{label:s}of n){e[s[0]]=!0;for(let r=1;rtypeof s=="string"?{label:s}:s),[t,i]=e.every(s=>/^\w+$/.test(s.label))?[/\w*$/,/\w+$/]:A0(e);return s=>{let r=s.matchBefore(i);return r||s.explicit?{from:r?r.from:s.pos,options:e,validFor:t}:null}}function R0(n,e){return t=>{for(let i=ae(t.state).resolveInner(t.pos,-1);i;i=i.parent){if(n.indexOf(i.name)>-1)return null;if(i.type.isTop)break}return e(t)}}class _a{constructor(e,t,i,s){this.completion=e,this.source=t,this.match=i,this.score=s}}function Ft(n){return n.selection.main.from}function qf(n,e){var t;let{source:i}=n,s=e&&i[0]!="^",r=i[i.length-1]!="$";return!s&&!r?n:new RegExp(`${s?"^":""}(?:${i})${r?"$":""}`,(t=n.flags)!==null&&t!==void 0?t:n.ignoreCase?"i":"")}const Jo=ot.define();function M0(n,e,t,i){let{main:s}=n.selection,r=t-s.from,o=i-s.from;return{...n.changeByRange(l=>{if(l!=s&&t!=i&&n.sliceDoc(l.from+r,l.from+o)!=n.sliceDoc(t,i))return{range:l};let a=n.toText(e);return{changes:{from:l.from+r,to:i==s.from?l.to:l.from+o,insert:a},range:b.cursor(l.from+r+a.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}const Ua=new WeakMap;function D0(n){if(!Array.isArray(n))return n;let e=Ua.get(n);return e||Ua.set(n,e=Wf(n)),e}const gs=W.define(),nn=W.define();class E0{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&k<=57||k>=97&&k<=122?2:k>=65&&k<=90?1:0:(w=Qo(k))!=w.toLowerCase()?1:w!=w.toUpperCase()?2:0;(!x||v==1&&g||A==0&&v!=0)&&(t[f]==k||i[f]==k&&(u=!0)?o[f++]=x:o.length&&(y=!1)),A=v,x+=Ke(k)}return f==a&&o[0]==0&&y?this.result(-100+(u?-200:0),o,e):d==a&&p==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):d==a?this.ret(-900-e.length,[p,m]):f==a?this.result(-100+(u?-200:0)+-700+(y?0:-1100),o,e):t.length==2?null:this.result((s[0]?-700:0)+-200+-1100,s,e)}result(e,t,i){let s=[],r=0;for(let o of t){let l=o+(this.astral?Ke(ve(i,o)):1);r&&s[r-1]==o?s[r-1]=l:(s[r++]=o,s[r++]=l)}return this.ret(e-i.length,s)}}class W0{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:q0,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>i=>Ha(e(i),t(i)),optionClass:(e,t)=>i=>Ha(e(i),t(i)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function Ha(n,e){return n?e?n+" "+e:n:e}function q0(n,e,t,i,s,r){let o=n.textDirection==j.RTL,l=o,a=!1,h="top",c,f,u=e.left-s.left,d=s.right-e.right,p=i.right-i.left,m=i.bottom-i.top;if(l&&u=m||x>e.top?c=t.bottom-e.top:(h="bottom",c=e.bottom-t.top)}let g=(e.bottom-e.top)/r.offsetHeight,y=(e.right-e.left)/r.offsetWidth;return{style:`${h}: ${c/g}px; max-width: ${f/y}px`,class:"cm-completionInfo-"+(a?o?"left-narrow":"right-narrow":l?"left":"right")}}const el=W.define();function B0(n){let e=n.addToOptions.slice();return n.icons&&e.push({render(t){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),t.type&&i.classList.add(...t.type.split(/\s+/g).map(s=>"cm-completionIcon-"+s)),i.setAttribute("aria-hidden","true"),i},position:20}),e.push({render(t,i,s,r){let o=document.createElement("span");o.className="cm-completionLabel";let l=t.displayLabel||t.label,a=0;for(let h=0;ha&&o.appendChild(document.createTextNode(l.slice(a,c)));let u=o.appendChild(document.createElement("span"));u.appendChild(document.createTextNode(l.slice(c,f))),u.className="cm-completionMatchedText",a=f}return at.position-i.position).map(t=>t.render)}function gr(n,e,t){if(n<=t)return{from:0,to:n};if(e<0&&(e=0),e<=n>>1){let s=Math.floor(e/t);return{from:s*t,to:(s+1)*t}}let i=Math.floor((n-e)/t);return{from:n-(i+1)*t,to:n-i*t}}class $0{constructor(e,t,i){this.view=e,this.stateField=t,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:a=>this.placeInfo(a),key:this},this.space=null,this.currentClass="";let s=e.state.field(t),{options:r,selected:o}=s.open,l=e.state.facet(oe);this.optionContent=B0(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=gr(r.length,o,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",a=>{let{options:h}=e.state.field(t).open;for(let c=a.target,f;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(f=/-(\d+)$/.exec(c.id))&&+f[1]this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;c!=null&&(e.dispatch({effects:el.of(c)}),a.preventDefault())}}),this.dom.addEventListener("focusout",a=>{let h=e.state.field(this.stateField,!1);h&&h.tooltip&&e.state.facet(oe).closeOnBlur&&a.relatedTarget!=e.contentDOM&&e.dispatch({effects:nn.of(null)})}),this.showOptions(r,s.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let i=e.state.field(this.stateField),s=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=s){let{options:r,selected:o,disabled:l}=i.open;(!s.open||s.open.options!=r)&&(this.range=gr(r.length,o,e.state.facet(oe).maxRenderedOptions),this.showOptions(r,i.id)),this.updateSel(),l!=((t=s.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of t.split(" "))i&&this.dom.classList.add(i);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected=this.range.to)&&(this.range=gr(t.options.length,t.selected,this.view.state.facet(oe).maxRenderedOptions),this.showOptions(t.options,e.id));let i=this.updateSelectedOption(t.selected);if(i){this.destroyInfo();let{completion:s}=t.options[t.selected],{info:r}=s;if(!r)return;let o=typeof r=="string"?document.createTextNode(r):r(s);if(!o)return;"then"in o?o.then(l=>{l&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(l,s)}).catch(l=>Se(this.view.state,l,"completion info")):(this.addInfoPane(o,s),i.setAttribute("aria-describedby",this.info.id))}}addInfoPane(e,t){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",i.id="cm-completionInfo-"+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)i.appendChild(e),this.infoDestroy=null;else{let{dom:s,destroy:r}=e;i.appendChild(s),this.infoDestroy=r||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let i=this.list.firstChild,s=this.range.from;i;i=i.nextSibling,s++)i.nodeName!="LI"||!i.id?s--:s==e?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),t=i):i.hasAttribute("aria-selected")&&(i.removeAttribute("aria-selected"),i.removeAttribute("aria-describedby"));return t&&z0(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),s=e.getBoundingClientRect(),r=this.space;if(!r){let o=this.dom.ownerDocument.documentElement;r={left:0,top:0,right:o.clientWidth,bottom:o.clientHeight}}return s.top>Math.min(r.bottom,t.bottom)-10||s.bottom{o.target==s&&o.preventDefault()});let r=null;for(let o=i.from;oi.from||i.from==0))if(r=u,typeof h!="string"&&h.header)s.appendChild(h.header(h));else{let d=s.appendChild(document.createElement("completion-section"));d.textContent=u}}const c=s.appendChild(document.createElement("li"));c.id=t+"-"+o,c.setAttribute("role","option");let f=this.optionClass(l);f&&(c.className=f);for(let u of this.optionContent){let d=u(l,this.view.state,this.view,a);d&&c.appendChild(d)}}return i.from&&s.classList.add("cm-completionListIncompleteTop"),i.tonew $0(t,n,e)}function z0(n,e){let t=n.getBoundingClientRect(),i=e.getBoundingClientRect(),s=t.height/n.offsetHeight;i.topt.bottom&&(n.scrollTop+=(i.bottom-t.bottom)/s)}function ja(n){return(n.boost||0)*100+(n.apply?10:0)+(n.info?5:0)+(n.type?1:0)}function I0(n,e){let t=[],i=null,s=null,r=c=>{t.push(c);let{section:f}=c.completion;if(f){i||(i=[]);let u=typeof f=="string"?f:f.name;i.some(d=>d.name==u)||i.push(typeof f=="string"?{name:u}:f)}},o=e.facet(oe);for(let c of n)if(c.hasResult()){let f=c.result.getMatch;if(c.result.filter===!1)for(let u of c.result.options)r(new _a(u,c.source,f?f(u):[],1e9-t.length));else{let u=e.sliceDoc(c.from,c.to),d,p=o.filterStrict?new W0(u):new E0(u);for(let m of c.result.options)if(d=p.match(m.label)){let g=m.displayLabel?f?f(m,d.matched):[]:d.matched,y=d.score+(m.boost||0);if(r(new _a(m,c.source,g,y)),typeof m.section=="object"&&m.section.rank==="dynamic"){let{name:x}=m.section;s||(s=Object.create(null)),s[x]=Math.max(y,s[x]||-1e9)}}}}if(i){let c=Object.create(null),f=0,u=(d,p)=>(d.rank==="dynamic"&&p.rank==="dynamic"?s[p.name]-s[d.name]:0)||(typeof d.rank=="number"?d.rank:1e9)-(typeof p.rank=="number"?p.rank:1e9)||(d.nameu.score-f.score||h(f.completion,u.completion))){let f=c.completion;!a||a.label!=f.label||a.detail!=f.detail||a.type!=null&&f.type!=null&&a.type!=f.type||a.apply!=f.apply||a.boost!=f.boost?l.push(c):ja(c.completion)>ja(a)&&(l[l.length-1]=c),a=c.completion}return l}class ni{constructor(e,t,i,s,r,o){this.options=e,this.attrs=t,this.tooltip=i,this.timestamp=s,this.selected=r,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new ni(this.options,Ga(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,i,s,r,o){if(s&&!o&&e.some(h=>h.isPending))return s.setDisabled();let l=I0(e,t);if(!l.length)return s&&e.some(h=>h.isPending)?s.setDisabled():null;let a=t.facet(oe).selectOnOpen?0:-1;if(s&&s.selected!=a&&s.selected!=-1){let h=s.options[s.selected].completion;for(let c=0;cc.hasResult()?Math.min(h,c.from):h,1e8),create:U0,above:r.aboveCursor},s?s.timestamp:Date.now(),a,!1)}map(e){return new ni(this.options,this.attrs,{...this.tooltip,pos:e.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new ni(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class Os{constructor(e,t,i){this.active=e,this.id=t,this.open=i}static start(){return new Os(F0,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,i=t.facet(oe),r=(i.override||t.languageDataAt("autocomplete",Ft(t)).map(D0)).map(a=>(this.active.find(c=>c.source==a)||new $e(a,this.active.some(c=>c.state!=0)?1:0)).update(e,i));r.length==this.active.length&&r.every((a,h)=>a==this.active[h])&&(r=this.active);let o=this.open,l=e.effects.some(a=>a.is(tl));o&&e.docChanged&&(o=o.map(e.changes)),e.selection||r.some(a=>a.hasResult()&&e.changes.touchesRange(a.from,a.to))||!N0(r,this.active)||l?o=ni.build(r,t,this.id,o,i,l):o&&o.disabled&&!r.some(a=>a.isPending)&&(o=null),!o&&r.every(a=>!a.isPending)&&r.some(a=>a.hasResult())&&(r=r.map(a=>a.hasResult()?new $e(a.source,0):a));for(let a of e.effects)a.is(el)&&(o=o&&o.setSelected(a.value,this.id));return r==this.active&&o==this.open?this:new Os(r,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?V0:X0}}function N0(n,e){if(n==e)return!0;for(let t=0,i=0;;){for(;t-1&&(t["aria-activedescendant"]=n+"-"+e),t}const F0=[];function Bf(n,e){if(n.isUserEvent("input.complete")){let i=n.annotation(Jo);if(i&&e.activateOnCompletion(i))return 12}let t=n.isUserEvent("input.type");return t&&e.activateOnTyping?5:t?1:n.isUserEvent("delete.backward")?2:n.selection?8:n.docChanged?16:0}class $e{constructor(e,t,i=!1){this.source=e,this.state=t,this.explicit=i}hasResult(){return!1}get isPending(){return this.state==1}update(e,t){let i=Bf(e,t),s=this;(i&8||i&16&&this.touches(e))&&(s=new $e(s.source,0)),i&4&&s.state==0&&(s=new $e(this.source,1)),s=s.updateFor(e,i);for(let r of e.effects)if(r.is(gs))s=new $e(s.source,1,r.value);else if(r.is(nn))s=new $e(s.source,0);else if(r.is(tl))for(let o of r.value)o.source==s.source&&(s=o);return s}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(Ft(e.state))}}class hi extends $e{constructor(e,t,i,s,r,o){super(e,3,t),this.limit=i,this.result=s,this.from=r,this.to=o}hasResult(){return!0}updateFor(e,t){var i;if(!(t&3))return this.map(e.changes);let s=this.result;s.map&&!e.changes.empty&&(s=s.map(s,e.changes));let r=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),l=Ft(e.state);if(l>o||!s||t&2&&(Ft(e.startState)==this.from||lt.map(e))}}),Te=pe.define({create(){return Os.start()},update(n,e){return n.update(e)},provide:n=>[Fo.from(n,e=>e.tooltip),C.contentAttributes.from(n,e=>e.attrs)]});function il(n,e){const t=e.completion.apply||e.completion.label;let i=n.state.field(Te).active.find(s=>s.source==e.source);return i instanceof hi?(typeof t=="string"?n.dispatch({...M0(n.state,t,i.from,i.to),annotations:Jo.of(e.completion)}):t(n,e.completion,i.from,i.to),!0):!1}const U0=L0(Te,il);function $n(n,e="option"){return t=>{let i=t.state.field(Te,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+s*(n?1:-1):n?0:o-1;return l<0?l=e=="page"?0:o-1:l>=o&&(l=e=="page"?o-1:0),t.dispatch({effects:el.of(l)}),!0}}const H0=n=>{let e=n.state.field(Te,!1);return n.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampn.state.field(Te,!1)?(n.dispatch({effects:gs.of(!0)}),!0):!1,j0=n=>{let e=n.state.field(Te,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(n.dispatch({effects:nn.of(null)}),!0)};class G0{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const Z0=50,Y0=1e3,K0=K.fromClass(class{constructor(n){this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of n.state.field(Te).active)e.isPending&&this.startQuery(e)}update(n){let e=n.state.field(Te),t=n.state.facet(oe);if(!n.selectionSet&&!n.docChanged&&n.startState.field(Te)==e)return;let i=n.transactions.some(r=>{let o=Bf(r,t);return o&8||(r.selection||r.docChanged)&&!(o&3)});for(let r=0;rZ0&&Date.now()-o.time>Y0){for(let l of o.context.abortListeners)try{l()}catch(a){Se(this.view.state,a)}o.context.abortListeners=null,this.running.splice(r--,1)}else o.updates.push(...n.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),n.transactions.some(r=>r.effects.some(o=>o.is(gs)))&&(this.pendingStart=!0);let s=this.pendingStart?50:t.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(r=>r.isPending&&!this.running.some(o=>o.active.source==r.source))?setTimeout(()=>this.startUpdate(),s):-1,this.composing!=0)for(let r of n.transactions)r.isUserEvent("input.type")?this.composing=2:this.composing==2&&r.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:n}=this.view,e=n.field(Te);for(let t of e.active)t.isPending&&!this.running.some(i=>i.active.source==t.source)&&this.startQuery(t);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(oe).updateSyncTime))}startQuery(n){let{state:e}=this.view,t=Ft(e),i=new Ef(e,t,n.explicit,this.view),s=new G0(n,i);this.running.push(s),Promise.resolve(n.source(i)).then(r=>{s.context.aborted||(s.done=r||null,this.scheduleAccept())},r=>{this.view.dispatch({effects:nn.of(null)}),Se(this.view.state,r)})}scheduleAccept(){this.running.every(n=>n.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(oe).updateSyncTime))}accept(){var n;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(oe),i=this.view.state.field(Te);for(let s=0;sl.source==r.active.source);if(o&&o.isPending)if(r.done==null){let l=new $e(r.active.source,0);for(let a of r.updates)l=l.update(a,t);l.isPending||e.push(l)}else this.startQuery(o)}(e.length||i.open&&i.open.disabled)&&this.view.dispatch({effects:tl.of(e)})}},{eventHandlers:{blur(n){let e=this.view.state.field(Te,!1);if(e&&e.tooltip&&this.view.state.facet(oe).closeOnBlur){let t=e.open&&jc(this.view,e.open.tooltip);(!t||!t.dom.contains(n.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:nn.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:gs.of(!1)}),20),this.composing=0}}}),J0=typeof navigator=="object"&&/Win/.test(navigator.platform),ey=Mt.highest(C.domEventHandlers({keydown(n,e){let t=e.state.field(Te,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||n.key.length>1||n.ctrlKey&&!(J0&&n.altKey)||n.metaKey)return!1;let i=t.open.options[t.open.selected],s=t.active.find(o=>o.source==i.source),r=i.completion.commitCharacters||s.result.commitCharacters;return r&&r.indexOf(n.key)>-1&&il(e,i),!1}})),$f=C.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class ty{constructor(e,t,i,s){this.field=e,this.line=t,this.from=i,this.to=s}}class nl{constructor(e,t,i){this.field=e,this.from=t,this.to=i}map(e){let t=e.mapPos(this.from,-1,ue.TrackDel),i=e.mapPos(this.to,1,ue.TrackDel);return t==null||i==null?null:new nl(this.field,t,i)}}class sl{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let i=[],s=[t],r=e.doc.lineAt(t),o=/^\s*/.exec(r.text)[0];for(let a of this.lines){if(i.length){let h=o,c=/^\t*/.exec(a)[0].length;for(let f=0;fnew nl(a.field,s[a.line]+a.from,s[a.line]+a.to));return{text:i,ranges:l}}static parse(e){let t=[],i=[],s=[],r;for(let o of e.split(/\r\n?|\n/)){for(;r=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(o);){let l=r[1]?+r[1]:null,a=r[2]||r[3]||"",h=-1,c=a.replace(/\\[{}]/g,f=>f[1]);for(let f=0;f=h&&u.field++}for(let f of s)if(f.line==i.length&&f.from>r.index){let u=r[2]?3+(r[1]||"").length:2;f.from-=u,f.to-=u}s.push(new ty(h,i.length,r.index,r.index+c.length)),o=o.slice(0,r.index)+a+o.slice(r.index+r[0].length)}o=o.replace(/\\([{}])/g,(l,a,h)=>{for(let c of s)c.line==i.length&&c.from>h&&(c.from--,c.to--);return a}),i.push(o)}return new sl(i,s)}}let iy=M.widget({widget:new class extends Xe{toDOM(){let n=document.createElement("span");return n.className="cm-snippetFieldPosition",n}ignoreEvent(){return!1}}}),ny=M.mark({class:"cm-snippetField"});class xi{constructor(e,t){this.ranges=e,this.active=t,this.deco=M.set(e.map(i=>(i.from==i.to?iy:ny).range(i.from,i.to)),!0)}map(e){let t=[];for(let i of this.ranges){let s=i.map(e);if(!s)return null;t.push(s)}return new xi(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(i=>i.field==this.active&&i.from<=t.from&&i.to>=t.to))}}const mn=W.define({map(n,e){return n&&n.map(e)}}),sy=W.define(),sn=pe.define({create(){return null},update(n,e){for(let t of e.effects){if(t.is(mn))return t.value;if(t.is(sy)&&n)return new xi(n.ranges,t.value)}return n&&e.docChanged&&(n=n.map(e.changes)),n&&e.selection&&!n.selectionInsideField(e.selection)&&(n=null),n},provide:n=>C.decorations.from(n,e=>e?e.deco:M.none)});function rl(n,e){return b.create(n.filter(t=>t.field==e).map(t=>b.range(t.from,t.to)))}function ry(n){let e=sl.parse(n);return(t,i,s,r)=>{let{text:o,ranges:l}=e.instantiate(t.state,s),{main:a}=t.state.selection,h={changes:{from:s,to:r==a.from?a.to:r,insert:V.of(o)},scrollIntoView:!0,annotations:i?[Jo.of(i),ie.userEvent.of("input.complete")]:void 0};if(l.length&&(h.selection=rl(l,0)),l.some(c=>c.field>0)){let c=new xi(l,0),f=h.effects=[mn.of(c)];t.state.field(sn,!1)===void 0&&f.push(W.appendConfig.of([sn,cy,fy,$f]))}t.dispatch(t.state.update(h))}}function Lf(n){return({state:e,dispatch:t})=>{let i=e.field(sn,!1);if(!i||n<0&&i.active==0)return!1;let s=i.active+n,r=n>0&&!i.ranges.some(o=>o.field==s+n);return t(e.update({selection:rl(i.ranges,s),effects:mn.of(r?null:new xi(i.ranges,s)),scrollIntoView:!0})),!0}}const oy=({state:n,dispatch:e})=>n.field(sn,!1)?(e(n.update({effects:mn.of(null)})),!0):!1,ly=Lf(1),ay=Lf(-1),hy=[{key:"Tab",run:ly,shift:ay},{key:"Escape",run:oy}],Za=Q.define({combine(n){return n.length?n[0]:hy}}),cy=Mt.highest(fn.compute([Za],n=>n.facet(Za)));function at(n,e){return{...e,apply:ry(n)}}const fy=C.domEventHandlers({mousedown(n,e){let t=e.state.field(sn,!1),i;if(!t||(i=e.posAtCoords({x:n.clientX,y:n.clientY}))==null)return!1;let s=t.ranges.find(r=>r.from<=i&&r.to>=i);return!s||s.field==t.active?!1:(e.dispatch({selection:rl(t.ranges,s.field),effects:mn.of(t.ranges.some(r=>r.field>s.field)?new xi(t.ranges,s.field):null),scrollIntoView:!0}),!0)}}),rn={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Nt=W.define({map(n,e){let t=e.mapPos(n,-1,ue.TrackAfter);return t??void 0}}),ol=new class extends Tt{};ol.startSide=1;ol.endSide=-1;const zf=pe.define({create(){return z.empty},update(n,e){if(n=n.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);n=n.update({filter:i=>i>=t.from&&i<=t.to})}for(let t of e.effects)t.is(Nt)&&(n=n.update({add:[ol.range(t.value,t.value+1)]}));return n}});function uy(){return[py,zf]}const yr="()[]{}<>«»»«[]{}";function If(n){for(let e=0;e{if((dy?n.composing:n.compositionStarted)||n.state.readOnly)return!1;let s=n.state.selection.main;if(i.length>2||i.length==2&&Ke(ve(i,0))==1||e!=s.from||t!=s.to)return!1;let r=Oy(n.state,i);return r?(n.dispatch(r),!0):!1}),my=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let i=Nf(n,n.selection.main.head).brackets||rn.brackets,s=null,r=n.changeByRange(o=>{if(o.empty){let l=yy(n.doc,o.head);for(let a of i)if(a==l&&$s(n.doc,o.head)==If(ve(a,0)))return{changes:{from:o.head-a.length,to:o.head+a.length},range:b.cursor(o.head-a.length)}}return{range:s=o}});return s||e(n.update(r,{scrollIntoView:!0,userEvent:"delete.backward"})),!s},gy=[{key:"Backspace",run:my}];function Oy(n,e){let t=Nf(n,n.selection.main.head),i=t.brackets||rn.brackets;for(let s of i){let r=If(ve(s,0));if(e==s)return r==s?Sy(n,s,i.indexOf(s+s+s)>-1,t):by(n,s,r,t.before||rn.before);if(e==r&&Vf(n,n.selection.main.from))return xy(n,s,r)}return null}function Vf(n,e){let t=!1;return n.field(zf).between(0,n.doc.length,i=>{i==e&&(t=!0)}),t}function $s(n,e){let t=n.sliceString(e,e+2);return t.slice(0,Ke(ve(t,0)))}function yy(n,e){let t=n.sliceString(e-2,e);return Ke(ve(t,0))==t.length?t:t.slice(1)}function by(n,e,t,i){let s=null,r=n.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:t,from:o.to}],effects:Nt.of(o.to+e.length),range:b.range(o.anchor+e.length,o.head+e.length)};let l=$s(n.doc,o.head);return!l||/\s/.test(l)||i.indexOf(l)>-1?{changes:{insert:e+t,from:o.head},effects:Nt.of(o.head+e.length),range:b.cursor(o.head+e.length)}:{range:s=o}});return s?null:n.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function xy(n,e,t){let i=null,s=n.changeByRange(r=>r.empty&&$s(n.doc,r.head)==t?{changes:{from:r.head,to:r.head+t.length,insert:t},range:b.cursor(r.head+t.length)}:i={range:r});return i?null:n.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function Sy(n,e,t,i){let s=i.stringPrefixes||rn.stringPrefixes,r=null,o=n.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:Nt.of(l.to+e.length),range:b.range(l.anchor+e.length,l.head+e.length)};let a=l.head,h=$s(n.doc,a),c;if(h==e){if(Ya(n,a))return{changes:{insert:e+e,from:a},effects:Nt.of(a+e.length),range:b.cursor(a+e.length)};if(Vf(n,a)){let u=t&&n.sliceDoc(a,a+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:a,to:a+u.length,insert:u},range:b.cursor(a+u.length)}}}else{if(t&&n.sliceDoc(a-2*e.length,a)==e+e&&(c=Ka(n,a-2*e.length,s))>-1&&Ya(n,c))return{changes:{insert:e+e+e+e,from:a},effects:Nt.of(a+e.length),range:b.cursor(a+e.length)};if(n.charCategorizer(a)(h)!=Z.Word&&Ka(n,a,s)>-1&&!ky(n,a,e,s))return{changes:{insert:e+e,from:a},effects:Nt.of(a+e.length),range:b.cursor(a+e.length)}}return{range:r=l}});return r?null:n.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function Ya(n,e){let t=ae(n).resolveInner(e+1);return t.parent&&t.from==e}function ky(n,e,t,i){let s=ae(n).resolveInner(e,-1),r=i.reduce((o,l)=>Math.max(o,l.length),0);for(let o=0;o<5;o++){let l=n.sliceDoc(s.from,Math.min(s.to,s.from+t.length+r)),a=l.indexOf(t);if(!a||a>-1&&i.indexOf(l.slice(0,a))>-1){let c=s.firstChild;for(;c&&c.from==s.from&&c.to-c.from>t.length+a;){if(n.sliceDoc(c.to-t.length,c.to)==t)return!1;c=c.firstChild}return!0}let h=s.to==e&&s.parent;if(!h)break;s=h}return!1}function Ka(n,e,t){let i=n.charCategorizer(e);if(i(n.sliceDoc(e-1,e))!=Z.Word)return e;for(let s of t){let r=e-s.length;if(n.sliceDoc(r,e)==s&&i(n.sliceDoc(r-1,r))!=Z.Word)return r}return-1}function wy(n={}){return[ey,Te,oe.of(n),K0,vy,$f]}const Xf=[{key:"Ctrl-Space",run:Or},{mac:"Alt-`",run:Or},{mac:"Alt-i",run:Or},{key:"Escape",run:j0},{key:"ArrowDown",run:$n(!0)},{key:"ArrowUp",run:$n(!1)},{key:"PageDown",run:$n(!0,"page")},{key:"PageUp",run:$n(!1,"page")},{key:"Enter",run:H0}],vy=Mt.highest(fn.computeN([oe],n=>n.facet(oe).defaultKeymap?[Xf]:[])),Ja=new Hu,Ff=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function Ln(n){return(e,t,i)=>{if(i)return!1;let s=e.node.getChild("VariableName");return s&&t(s,n),!0}}const Ty={FunctionDefinition:Ln("function"),ClassDefinition:Ln("class"),ForStatement(n,e,t){if(t){for(let i=n.node.firstChild;i;i=i.nextSibling)if(i.name=="VariableName")e(i,"variable");else if(i.name=="in")break}},ImportStatement(n,e){var t,i;let{node:s}=n,r=((t=s.firstChild)===null||t===void 0?void 0:t.name)=="from";for(let o=s.getChild("import");o;o=o.nextSibling)o.name=="VariableName"&&((i=o.nextSibling)===null||i===void 0?void 0:i.name)!="as"&&e(o,r?"variable":"namespace")},AssignStatement(n,e){for(let t=n.node.firstChild;t;t=t.nextSibling)if(t.name=="VariableName")e(t,"variable");else if(t.name==":"||t.name=="AssignOp")break},ParamList(n,e){for(let t=null,i=n.node.firstChild;i;i=i.nextSibling)i.name=="VariableName"&&(!t||!/\*|AssignOp/.test(t.name))&&e(i,"variable"),t=i},CapturePattern:Ln("variable"),AsPattern:Ln("variable"),__proto__:null};function _f(n,e){let t=Ja.get(e);if(t)return t;let i=[],s=!0;function r(o,l){let a=n.sliceString(o.from,o.to);i.push({label:a,type:l})}return e.cursor(Y.IncludeAnonymous).iterate(o=>{if(o.name){let l=Ty[o.name];if(l&&l(o,r,s)||!s&&Ff.has(o.name))return!1;s=!1}else if(o.to-o.from>8192){for(let l of _f(n,o.node))i.push(l);return!1}}),Ja.set(e,i),i}const eh=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,Uf=["String","FormatString","Comment","PropertyName"];function Cy(n){let e=ae(n.state).resolveInner(n.pos,-1);if(Uf.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&eh.test(n.state.sliceDoc(e.from,e.to));if(!t&&!n.explicit)return null;let i=[];for(let s=e;s;s=s.parent)Ff.has(s.name)&&(i=i.concat(_f(n.state.doc,s)));return{options:i,from:t?e.from:n.pos,validFor:eh}}const Qy=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(n=>({label:n,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(n=>({label:n,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(n=>({label:n,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(n=>({label:n,type:"function"}))),Py=[at("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),at("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),at("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),at("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),at(`if \${}: + +`,{label:"if",detail:"block",type:"keyword"}),at("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),at("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),at("import ${module}",{label:"import",detail:"statement",type:"keyword"}),at("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],Ay=R0(Uf,Wf(Qy.concat(Py)));function br(n){let{node:e,pos:t}=n,i=n.lineIndent(t,-1),s=null;for(;;){let r=e.childBefore(t);if(r)if(r.name=="Comment")t=r.from;else if(r.name=="Body"||r.name=="MatchBody")n.baseIndentFor(r)+n.unit<=i&&(s=r),e=r;else if(r.name=="MatchClause")e=r;else if(r.type.is("Statement"))e=r;else break;else break}return s}function xr(n,e){let t=n.baseIndentFor(e),i=n.lineAt(n.pos,-1),s=i.from+i.text.length;return/^\s*($|#)/.test(i.text)&&n.node.tot?null:t+n.unit}const Sr=Ki.define({name:"python",parser:P0.configure({props:[Ws.add({Body:n=>{var e;let t=/^\s*(#|$)/.test(n.textAfter)&&br(n)||n.node;return(e=xr(n,t))!==null&&e!==void 0?e:n.continue()},MatchBody:n=>{var e;let t=br(n);return(e=xr(n,t||n.node))!==null&&e!==void 0?e:n.continue()},IfStatement:n=>/^\s*(else:|elif )/.test(n.textAfter)?n.baseIndent:n.continue(),"ForStatement WhileStatement":n=>/^\s*else:/.test(n.textAfter)?n.baseIndent:n.continue(),TryStatement:n=>/^\s*(except[ :]|finally:|else:)/.test(n.textAfter)?n.baseIndent:n.continue(),MatchStatement:n=>/^\s*case /.test(n.textAfter)?n.baseIndent+n.unit:n.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":cr({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":cr({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":cr({closing:"]"}),MemberExpression:n=>n.baseIndent+n.unit,"String FormatString":()=>null,Script:n=>{var e;let t=br(n);return(e=t&&xr(n,t))!==null&&e!==void 0?e:n.continue()}}),jo.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":of,Body:(n,e)=>({from:n.from+1,to:n.to-(n.to==e.doc.length?0:1)}),"String FormatString":(n,e)=>({from:e.doc.lineAt(n.from).to,to:n.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function ax(){return new nf(Sr,[Sr.data.of({autocomplete:Cy}),Sr.data.of({autocomplete:Ay})])}class th{constructor(e,t,i){this.from=e,this.to=t,this.diagnostic=i}}class $t{constructor(e,t,i){this.diagnostics=e,this.panel=t,this.selected=i}static init(e,t,i){let s=i.facet(nt).markerFilter;s&&(e=s(e,i));let r=e.slice().sort((d,p)=>d.from-p.from||d.to-p.to),o=new gt,l=[],a=0,h=i.doc.iter(),c=0,f=i.doc.length;for(let d=0;;){let p=d==r.length?null:r[d];if(!p&&!l.length)break;let m,g;if(l.length)m=a,g=l.reduce((S,A)=>Math.min(S,A.to),p&&p.from>m?p.from:1e8);else{if(m=p.from,m>f)break;g=p.to,l.push(p),d++}for(;dS.from||S.to==m))l.push(S),d++,g=Math.min(S.to,g);else{g=Math.min(S.from,g);break}}g=Math.min(g,f);let y=!1;if(l.some(S=>S.from==m&&(S.to==g||g==f))&&(y=m==g,!y&&g-m<10)){let S=m-(c+h.value.length);S>0&&(h.next(S),c=m);for(let A=m;;){if(A>=g){y=!0;break}if(!h.lineBreak&&c+h.value.length>A)break;A=c+h.value.length,c+=h.value.length,h.next()}}let x=Fy(l);if(y)o.add(m,m,M.widget({widget:new Iy(x),diagnostics:l.slice()}));else{let S=l.reduce((A,k)=>k.markClass?A+" "+k.markClass:A,"");o.add(m,g,M.mark({class:"cm-lintRange cm-lintRange-"+x+S,diagnostics:l.slice(),inclusiveEnd:l.some(A=>A.to>g)}))}if(a=g,a==f)break;for(let S=0;S{if(!(e&&o.diagnostics.indexOf(e)<0))if(!i)i=new th(s,r,e||o.diagnostics[0]);else{if(o.diagnostics.indexOf(i.diagnostic)<0)return!1;i=new th(i.from,r,i.diagnostic)}}),i}function Ry(n,e){let t=e.pos,i=e.end||t,s=n.state.facet(nt).hideOn(n,t,i);if(s!=null)return s;let r=n.startState.doc.lineAt(e.pos);return!!(n.effects.some(o=>o.is(ll))||n.changes.touchesRange(r.from,Math.max(r.to,i)))}function Hf(n,e){return n.field(Ee,!1)?e:e.concat(W.appendConfig.of(Yf))}function My(n,e){return{effects:Hf(n,[ll.of(e)])}}const ll=W.define(),al=W.define(),jf=W.define(),Ee=pe.define({create(){return new $t(M.none,null,null)},update(n,e){if(e.docChanged&&n.diagnostics.size){let t=n.diagnostics.map(e.changes),i=null,s=n.panel;if(n.selected){let r=e.changes.mapPos(n.selected.from,1);i=Rt(t,n.selected.diagnostic,r)||Rt(t,null,r)}!t.size&&s&&e.state.facet(nt).autoPanel&&(s=null),n=new $t(t,s,i)}for(let t of e.effects)if(t.is(ll)){let i=e.state.facet(nt).autoPanel?t.value.length?on.open:null:n.panel;n=$t.init(t.value,i,e.state)}else t.is(al)?n=new $t(n.diagnostics,t.value?on.open:null,n.selected):t.is(jf)&&(n=new $t(n.diagnostics,n.panel,t.value));return n},provide:n=>[Yi.from(n,e=>e.panel),C.decorations.from(n,e=>e.diagnostics)]}),Dy=M.mark({class:"cm-lintRange cm-lintRange-active"});function Ey(n,e,t){let{diagnostics:i}=n.state.field(Ee),s,r=-1,o=-1;i.between(e-(t<0?1:0),e+(t>0?1:0),(a,h,{spec:c})=>{if(e>=a&&e<=h&&(a==h||(e>a||t>0)&&(eZf(n,t,!1)))}const qy=n=>{let e=n.state.field(Ee,!1);(!e||!e.panel)&&n.dispatch({effects:Hf(n.state,[al.of(!0)])});let t=_o(n,on.open);return t&&t.dom.querySelector(".cm-panel-lint ul").focus(),!0},ih=n=>{let e=n.state.field(Ee,!1);return!e||!e.panel?!1:(n.dispatch({effects:al.of(!1)}),!0)},By=n=>{let e=n.state.field(Ee,!1);if(!e)return!1;let t=n.state.selection.main,i=Rt(e.diagnostics,null,t.to+1);return!i&&(i=Rt(e.diagnostics,null,0),!i||i.from==t.from&&i.to==t.to)?!1:(n.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)},$y=[{key:"Mod-Shift-m",run:qy,preventDefault:!0},{key:"F8",run:By}],Ly=K.fromClass(class{constructor(n){this.view=n,this.timeout=-1,this.set=!0;let{delay:e}=n.state.facet(nt);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){clearTimeout(this.timeout);let n=Date.now();if(nPromise.resolve(i(this.view))),i=>{this.view.state.doc==e.doc&&this.view.dispatch(My(this.view.state,i.reduce((s,r)=>s.concat(r))))},i=>{Se(this.view.state,i)})}}update(n){let e=n.state.facet(nt);(n.docChanged||e!=n.startState.facet(nt)||e.needsRefresh&&e.needsRefresh(n))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}});function zy(n,e,t){let i=[],s=-1;for(let r of n)r.then(o=>{i.push(o),clearTimeout(s),i.length==n.length?e(i):s=setTimeout(()=>e(i),200)},t)}const nt=Q.define({combine(n){return{sources:n.map(e=>e.source).filter(e=>e!=null),...lt(n.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:nh,tooltipFilter:nh,needsRefresh:(e,t)=>e?t?i=>e(i)||t(i):e:t,hideOn:(e,t)=>e?t?(i,s,r)=>e(i,s,r)||t(i,s,r):e:t,autoPanel:(e,t)=>e||t})}}});function nh(n,e){return n?e?(t,i)=>e(n(t,i),i):n:e}function hx(n,e={}){return[nt.of({source:n,config:e}),Ly,Yf]}function Gf(n){let e=[];if(n)e:for(let{name:t}of n){for(let i=0;ir.toLowerCase()==s.toLowerCase())){e.push(s);continue e}}e.push("")}return e}function Zf(n,e,t){var i;let s=t?Gf(e.actions):[];return _("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},_("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(n):e.message),(i=e.actions)===null||i===void 0?void 0:i.map((r,o)=>{let l=!1,a=d=>{if(d.preventDefault(),l)return;l=!0;let p=Rt(n.state.field(Ee).diagnostics,e);p&&r.apply(n,p.from,p.to)},{name:h}=r,c=s[o]?h.indexOf(s[o]):-1,f=c<0?h:[h.slice(0,c),_("u",h.slice(c,c+1)),h.slice(c+1)],u=r.markClass?" "+r.markClass:"";return _("button",{type:"button",class:"cm-diagnosticAction"+u,onclick:a,onmousedown:a,"aria-label":` Action: ${h}${c<0?"":` (access key "${s[o]})"`}.`},f)}),e.source&&_("div",{class:"cm-diagnosticSource"},e.source))}class Iy extends Xe{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return _("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class sh{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Zf(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class on{constructor(e){this.view=e,this.items=[];let t=s=>{if(!(s.ctrlKey||s.altKey||s.metaKey)){if(s.keyCode==27)ih(this.view),this.view.focus();else if(s.keyCode==38||s.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(s.keyCode==40||s.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(s.keyCode==36)this.moveSelection(0);else if(s.keyCode==35)this.moveSelection(this.items.length-1);else if(s.keyCode==13)this.view.focus();else if(s.keyCode>=65&&s.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:r}=this.items[this.selectedIndex],o=Gf(r.actions);for(let l=0;l{for(let r=0;rih(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Ee).selected;if(!e)return-1;for(let t=0;t{for(let c of h.diagnostics){if(o.has(c))continue;o.add(c);let f=-1,u;for(let d=i;di&&(this.items.splice(i,f-i),s=!0)),t&&u.diagnostic==t.diagnostic?u.dom.hasAttribute("aria-selected")||(u.dom.setAttribute("aria-selected","true"),r=u):u.dom.hasAttribute("aria-selected")&&u.dom.removeAttribute("aria-selected"),i++}});i({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:l,panel:a})=>{let h=a.height/this.list.offsetHeight;l.topa.bottom&&(this.list.scrollTop+=(l.bottom-a.bottom)/h)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}sync(){let e=this.list.firstChild;function t(){let i=e;e=i.nextSibling,i.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;e!=i.dom;)t();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(Ee),i=Rt(t.diagnostics,this.items[e].diagnostic);i&&this.view.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:jf.of(i)})}static open(e){return new on(e)}}function Ny(n,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(n)}')`}function zn(n){return Ny(``,'width="6" height="3"')}const Vy=C.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:zn("#d11")},".cm-lintRange-warning":{backgroundImage:zn("orange")},".cm-lintRange-info":{backgroundImage:zn("#999")},".cm-lintRange-hint":{backgroundImage:zn("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});function Xy(n){return n=="error"?4:n=="warning"?3:n=="info"?2:1}function Fy(n){let e="hint",t=1;for(let i of n){let s=Xy(i.severity);s>t&&(t=s,e=i.severity)}return e}const Yf=[Ee,C.decorations.compute([Ee],n=>{let{selected:e,panel:t}=n.field(Ee);return!e||!t||e.from==e.to?M.none:M.set([Dy.range(e.from,e.to)])}),og(Ey,{hideOn:Ry}),Vy],_y="#e5c07b",rh="#e06c75",Uy="#56b6c2",Hy="#ffffff",Jn="#abb2bf",mo="#7d8799",jy="#61afef",Gy="#98c379",oh="#d19a66",Zy="#c678dd",Yy="#21252b",lh="#2c313a",ah="#282c34",kr="#353a42",Ky="#3E4451",hh="#528bff",Jy=C.theme({"&":{color:Jn,backgroundColor:ah},".cm-content":{caretColor:hh},".cm-cursor, .cm-dropCursor":{borderLeftColor:hh},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Ky},".cm-panels":{backgroundColor:Yy,color:Jn},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:ah,color:mo,border:"none"},".cm-activeLineGutter":{backgroundColor:lh},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:kr},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:kr,borderBottomColor:kr},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:lh,color:Jn}}},{dark:!0}),eb=pn.define([{tag:O.keyword,color:Zy},{tag:[O.name,O.deleted,O.character,O.propertyName,O.macroName],color:rh},{tag:[O.function(O.variableName),O.labelName],color:jy},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:oh},{tag:[O.definition(O.name),O.separator],color:Jn},{tag:[O.typeName,O.className,O.number,O.changed,O.annotation,O.modifier,O.self,O.namespace],color:_y},{tag:[O.operator,O.operatorKeyword,O.url,O.escape,O.regexp,O.link,O.special(O.string)],color:Uy},{tag:[O.meta,O.comment],color:mo},{tag:O.strong,fontWeight:"bold"},{tag:O.emphasis,fontStyle:"italic"},{tag:O.strikethrough,textDecoration:"line-through"},{tag:O.link,color:mo,textDecoration:"underline"},{tag:O.heading,fontWeight:"bold",color:rh},{tag:[O.atom,O.bool,O.special(O.variableName)],color:oh},{tag:[O.processingInstruction,O.string,O.inserted],color:Gy},{tag:O.invalid,color:Hy}]),tb=[Jy,mf(eb)];function go(){return go=Object.assign?Object.assign.bind():function(n){for(var e=1;e{let{state:e}=n,t=e.doc.lineAt(e.selection.main.from),i=cl(n.state,t.from);return i.line?sb(n):i.block?ob(n):!1};function hl(n,e){return({state:t,dispatch:i})=>{if(t.readOnly)return!1;let s=n(e,t);return s?(i(t.update(s)),!0):!1}}const sb=hl(hb,0),rb=hl(Kf,0),ob=hl((n,e)=>Kf(n,e,ab(e)),0);function cl(n,e){let t=n.languageDataAt("commentTokens",e,1);return t.length?t[0]:{}}const Qi=50;function lb(n,{open:e,close:t},i,s){let r=n.sliceDoc(i-Qi,i),o=n.sliceDoc(s,s+Qi),l=/\s*$/.exec(r)[0].length,a=/^\s*/.exec(o)[0].length,h=r.length-l;if(r.slice(h-e.length,h)==e&&o.slice(a,a+t.length)==t)return{open:{pos:i-l,margin:l&&1},close:{pos:s+a,margin:a&&1}};let c,f;s-i<=2*Qi?c=f=n.sliceDoc(i,s):(c=n.sliceDoc(i,i+Qi),f=n.sliceDoc(s-Qi,s));let u=/^\s*/.exec(c)[0].length,d=/\s*$/.exec(f)[0].length,p=f.length-d-t.length;return c.slice(u,u+e.length)==e&&f.slice(p,p+t.length)==t?{open:{pos:i+u+e.length,margin:/\s/.test(c.charAt(u+e.length))?1:0},close:{pos:s-d-t.length,margin:/\s/.test(f.charAt(p-1))?1:0}}:null}function ab(n){let e=[];for(let t of n.selection.ranges){let i=n.doc.lineAt(t.from),s=t.to<=i.to?i:n.doc.lineAt(t.to);s.from>i.from&&s.from==t.to&&(s=t.to==i.to+1?i:n.doc.lineAt(t.to-1));let r=e.length-1;r>=0&&e[r].to>i.from?e[r].to=s.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:s.to})}return e}function Kf(n,e,t=e.selection.ranges){let i=t.map(r=>cl(e,r.from).block);if(!i.every(r=>r))return null;let s=t.map((r,o)=>lb(e,i[o],r.from,r.to));if(n!=2&&!s.every(r=>r))return{changes:e.changes(t.map((r,o)=>s[o]?[]:[{from:r.from,insert:i[o].open+" "},{from:r.to,insert:" "+i[o].close}]))};if(n!=1&&s.some(r=>r)){let r=[];for(let o=0,l;os&&(r==o||o>f.from)){s=f.from;let u=/^\s*/.exec(f.text)[0].length,d=u==f.length,p=f.text.slice(u,u+h.length)==h?u:-1;ur.comment<0&&(!r.empty||r.single))){let r=[];for(let{line:l,token:a,indent:h,empty:c,single:f}of i)(f||!c)&&r.push({from:l.from+h,insert:a+" "});let o=e.changes(r);return{changes:o,selection:e.selection.map(o,1)}}else if(n!=1&&i.some(r=>r.comment>=0)){let r=[];for(let{line:o,comment:l,token:a}of i)if(l>=0){let h=o.from+l,c=h+a.length;o.text[c-o.from]==" "&&c++,r.push({from:h,to:c})}return{changes:r}}return null}const Oo=ot.define(),cb=ot.define(),fb=Q.define(),Jf=Q.define({combine(n){return lt(n,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(i,s)=>e(i,s)||t(i,s)})}}),eu=pe.define({create(){return st.empty},update(n,e){let t=e.state.facet(Jf),i=e.annotation(Oo);if(i){let a=Qe.fromTransaction(e,i.selection),h=i.side,c=h==0?n.undone:n.done;return a?c=ys(c,c.length,t.minDepth,a):c=nu(c,e.startState.selection),new st(h==0?i.rest:c,h==0?c:i.rest)}let s=e.annotation(cb);if((s=="full"||s=="before")&&(n=n.isolate()),e.annotation(ie.addToHistory)===!1)return e.changes.empty?n:n.addMapping(e.changes.desc);let r=Qe.fromTransaction(e),o=e.annotation(ie.time),l=e.annotation(ie.userEvent);return r?n=n.addChanges(r,o,l,t,e):e.selection&&(n=n.addSelection(e.startState.selection,o,l,t.newGroupDelay)),(s=="full"||s=="after")&&(n=n.isolate()),n},toJSON(n){return{done:n.done.map(e=>e.toJSON()),undone:n.undone.map(e=>e.toJSON())}},fromJSON(n){return new st(n.done.map(Qe.fromJSON),n.undone.map(Qe.fromJSON))}});function ub(n={}){return[eu,Jf.of(n),C.domEventHandlers({beforeinput(e,t){let i=e.inputType=="historyUndo"?tu:e.inputType=="historyRedo"?yo:null;return i?(e.preventDefault(),i(t)):!1}})]}function Ls(n,e){return function({state:t,dispatch:i}){if(!e&&t.readOnly)return!1;let s=t.field(eu,!1);if(!s)return!1;let r=s.pop(n,t,e);return r?(i(r),!0):!1}}const tu=Ls(0,!1),yo=Ls(1,!1),db=Ls(0,!0),pb=Ls(1,!0);class Qe{constructor(e,t,i,s,r){this.changes=e,this.effects=t,this.mapped=i,this.startSelection=s,this.selectionsAfter=r}setSelAfter(e){return new Qe(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,i;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(s=>s.toJSON())}}static fromJSON(e){return new Qe(e.changes&&se.fromJSON(e.changes),[],e.mapped&&rt.fromJSON(e.mapped),e.startSelection&&b.fromJSON(e.startSelection),e.selectionsAfter.map(b.fromJSON))}static fromTransaction(e,t){let i=Le;for(let s of e.startState.facet(fb)){let r=s(e);r.length&&(i=i.concat(r))}return!i.length&&e.changes.empty?null:new Qe(e.changes.invert(e.startState.doc),i,void 0,t||e.startState.selection,Le)}static selection(e){return new Qe(void 0,Le,void 0,void 0,e)}}function ys(n,e,t,i){let s=e+1>t+20?e-t-1:0,r=n.slice(s,e);return r.push(i),r}function mb(n,e){let t=[],i=!1;return n.iterChangedRanges((s,r)=>t.push(s,r)),e.iterChangedRanges((s,r,o,l)=>{for(let a=0;a=h&&o<=c&&(i=!0)}}),i}function gb(n,e){return n.ranges.length==e.ranges.length&&n.ranges.filter((t,i)=>t.empty!=e.ranges[i].empty).length===0}function iu(n,e){return n.length?e.length?n.concat(e):n:e}const Le=[],Ob=200;function nu(n,e){if(n.length){let t=n[n.length-1],i=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-Ob));return i.length&&i[i.length-1].eq(e)?n:(i.push(e),ys(n,n.length-1,1e9,t.setSelAfter(i)))}else return[Qe.selection([e])]}function yb(n){let e=n[n.length-1],t=n.slice();return t[n.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function wr(n,e){if(!n.length)return n;let t=n.length,i=Le;for(;t;){let s=bb(n[t-1],e,i);if(s.changes&&!s.changes.empty||s.effects.length){let r=n.slice(0,t);return r[t-1]=s,r}else e=s.mapped,t--,i=s.selectionsAfter}return i.length?[Qe.selection(i)]:Le}function bb(n,e,t){let i=iu(n.selectionsAfter.length?n.selectionsAfter.map(l=>l.map(e)):Le,t);if(!n.changes)return Qe.selection(i);let s=n.changes.map(e),r=e.mapDesc(n.changes,!0),o=n.mapped?n.mapped.composeDesc(r):r;return new Qe(s,W.mapEffects(n.effects,e),o,n.startSelection.map(r),i)}const xb=/^(input\.type|delete)($|\.)/;class st{constructor(e,t,i=0,s=void 0){this.done=e,this.undone=t,this.prevTime=i,this.prevUserEvent=s}isolate(){return this.prevTime?new st(this.done,this.undone):this}addChanges(e,t,i,s,r){let o=this.done,l=o[o.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!i||xb.test(i))&&(!l.selectionsAfter.length&&t-this.prevTime0&&t-this.prevTimet.empty?n.moveByChar(t,e):zs(t,e))}function ye(n){return n.textDirectionAt(n.state.selection.main.head)==j.LTR}const ru=n=>su(n,!ye(n)),ou=n=>su(n,ye(n));function lu(n,e){return _e(n,t=>t.empty?n.moveByGroup(t,e):zs(t,e))}const kb=n=>lu(n,!ye(n)),wb=n=>lu(n,ye(n));function vb(n,e,t){if(e.type.prop(t))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(n.sliceDoc(e.from,e.to)))||e.firstChild}function Is(n,e,t){let i=ae(n).resolveInner(e.head),s=t?L.closedBy:L.openedBy;for(let a=e.head;;){let h=t?i.childAfter(a):i.childBefore(a);if(!h)break;vb(n,h,s)?i=h:a=t?h.to:h.from}let r=i.type.prop(s),o,l;return r&&(o=t?it(n,i.from,1):it(n,i.to,-1))&&o.matched?l=t?o.end.to:o.end.from:l=t?i.to:i.from,b.cursor(l,t?-1:1)}const Tb=n=>_e(n,e=>Is(n.state,e,!ye(n))),Cb=n=>_e(n,e=>Is(n.state,e,ye(n)));function au(n,e){return _e(n,t=>{if(!t.empty)return zs(t,e);let i=n.moveVertically(t,e);return i.head!=t.head?i:n.moveToLineBoundary(t,e)})}const hu=n=>au(n,!1),cu=n=>au(n,!0);function fu(n){let e=n.scrollDOM.clientHeighto.empty?n.moveVertically(o,e,t.height):zs(o,e));if(s.eq(i.selection))return!1;let r;if(t.selfScroll){let o=n.coordsAtPos(i.selection.main.head),l=n.scrollDOM.getBoundingClientRect(),a=l.top+t.marginTop,h=l.bottom-t.marginBottom;o&&o.top>a&&o.bottomuu(n,!1),bo=n=>uu(n,!0);function Dt(n,e,t){let i=n.lineBlockAt(e.head),s=n.moveToLineBoundary(e,t);if(s.head==e.head&&s.head!=(t?i.to:i.from)&&(s=n.moveToLineBoundary(e,t,!1)),!t&&s.head==i.from&&i.length){let r=/^\s*/.exec(n.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;r&&e.head!=i.from+r&&(s=b.cursor(i.from+r))}return s}const Qb=n=>_e(n,e=>Dt(n,e,!0)),Pb=n=>_e(n,e=>Dt(n,e,!1)),Ab=n=>_e(n,e=>Dt(n,e,!ye(n))),Rb=n=>_e(n,e=>Dt(n,e,ye(n))),Mb=n=>_e(n,e=>b.cursor(n.lineBlockAt(e.head).from,1)),Db=n=>_e(n,e=>b.cursor(n.lineBlockAt(e.head).to,-1));function Eb(n,e,t){let i=!1,s=Si(n.selection,r=>{let o=it(n,r.head,-1)||it(n,r.head,1)||r.head>0&&it(n,r.head-1,1)||r.headEb(n,e);function ze(n,e){let t=Si(n.state.selection,i=>{let s=e(i);return b.range(i.anchor,s.head,s.goalColumn,s.bidiLevel||void 0,s.assoc)});return t.eq(n.state.selection)?!1:(n.dispatch(Fe(n.state,t)),!0)}function du(n,e){return ze(n,t=>n.moveByChar(t,e))}const pu=n=>du(n,!ye(n)),mu=n=>du(n,ye(n));function gu(n,e){return ze(n,t=>n.moveByGroup(t,e))}const qb=n=>gu(n,!ye(n)),Bb=n=>gu(n,ye(n)),$b=n=>ze(n,e=>Is(n.state,e,!ye(n))),Lb=n=>ze(n,e=>Is(n.state,e,ye(n)));function Ou(n,e){return ze(n,t=>n.moveVertically(t,e))}const yu=n=>Ou(n,!1),bu=n=>Ou(n,!0);function xu(n,e){return ze(n,t=>n.moveVertically(t,e,fu(n).height))}const fh=n=>xu(n,!1),uh=n=>xu(n,!0),zb=n=>ze(n,e=>Dt(n,e,!0)),Ib=n=>ze(n,e=>Dt(n,e,!1)),Nb=n=>ze(n,e=>Dt(n,e,!ye(n))),Vb=n=>ze(n,e=>Dt(n,e,ye(n))),Xb=n=>ze(n,e=>b.cursor(n.lineBlockAt(e.head).from)),Fb=n=>ze(n,e=>b.cursor(n.lineBlockAt(e.head).to)),dh=({state:n,dispatch:e})=>(e(Fe(n,{anchor:0})),!0),ph=({state:n,dispatch:e})=>(e(Fe(n,{anchor:n.doc.length})),!0),mh=({state:n,dispatch:e})=>(e(Fe(n,{anchor:n.selection.main.anchor,head:0})),!0),gh=({state:n,dispatch:e})=>(e(Fe(n,{anchor:n.selection.main.anchor,head:n.doc.length})),!0),_b=({state:n,dispatch:e})=>(e(n.update({selection:{anchor:0,head:n.doc.length},userEvent:"select"})),!0),Ub=({state:n,dispatch:e})=>{let t=Ns(n).map(({from:i,to:s})=>b.range(i,Math.min(s+1,n.doc.length)));return e(n.update({selection:b.create(t),userEvent:"select"})),!0},Hb=({state:n,dispatch:e})=>{let t=Si(n.selection,i=>{let s=ae(n),r=s.resolveStack(i.from,1);if(i.empty){let o=s.resolveStack(i.from,-1);o.node.from>=r.node.from&&o.node.to<=r.node.to&&(r=o)}for(let o=r;o;o=o.next){let{node:l}=o;if((l.from=i.to||l.to>i.to&&l.from<=i.from)&&o.next)return b.range(l.to,l.from)}return i});return t.eq(n.selection)?!1:(e(Fe(n,t)),!0)};function Su(n,e){let{state:t}=n,i=t.selection,s=t.selection.ranges.slice();for(let r of t.selection.ranges){let o=t.doc.lineAt(r.head);if(e?o.to0)for(let l=r;;){let a=n.moveVertically(l,e);if(a.heado.to){s.some(h=>h.head==a.head)||s.push(a);break}else{if(a.head==l.head)break;l=a}}}return s.length==i.ranges.length?!1:(n.dispatch(Fe(t,b.create(s,s.length-1))),!0)}const jb=n=>Su(n,!1),Gb=n=>Su(n,!0),Zb=({state:n,dispatch:e})=>{let t=n.selection,i=null;return t.ranges.length>1?i=b.create([t.main]):t.main.empty||(i=b.create([b.cursor(t.main.head)])),i?(e(Fe(n,i)),!0):!1};function gn(n,e){if(n.state.readOnly)return!1;let t="delete.selection",{state:i}=n,s=i.changeByRange(r=>{let{from:o,to:l}=r;if(o==l){let a=e(r);ao&&(t="delete.forward",a=In(n,a,!0)),o=Math.min(o,a),l=Math.max(l,a)}else o=In(n,o,!1),l=In(n,l,!0);return o==l?{range:r}:{changes:{from:o,to:l},range:b.cursor(o,os(n)))i.between(e,e,(s,r)=>{se&&(e=t?r:s)});return e}const ku=(n,e,t)=>gn(n,i=>{let s=i.from,{state:r}=n,o=r.doc.lineAt(s),l,a;if(t&&!e&&s>o.from&&sku(n,!1,!0),wu=n=>ku(n,!0,!1),vu=(n,e)=>gn(n,t=>{let i=t.head,{state:s}=n,r=s.doc.lineAt(i),o=s.charCategorizer(i);for(let l=null;;){if(i==(e?r.to:r.from)){i==t.head&&r.number!=(e?s.doc.lines:1)&&(i+=e?1:-1);break}let a=le(r.text,i-r.from,e)+r.from,h=r.text.slice(Math.min(i,a)-r.from,Math.max(i,a)-r.from),c=o(h);if(l!=null&&c!=l)break;(h!=" "||i!=t.head)&&(l=c),i=a}return i}),Tu=n=>vu(n,!1),Yb=n=>vu(n,!0),Kb=n=>gn(n,e=>{let t=n.lineBlockAt(e.head).to;return e.headgn(n,e=>{let t=n.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),e1=n=>gn(n,e=>{let t=n.moveToLineBoundary(e,!0).head;return e.head{if(n.readOnly)return!1;let t=n.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:V.of(["",""])},range:b.cursor(i.from)}));return e(n.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},i1=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(i=>{if(!i.empty||i.from==0||i.from==n.doc.length)return{range:i};let s=i.from,r=n.doc.lineAt(s),o=s==r.from?s-1:le(r.text,s-r.from,!1)+r.from,l=s==r.to?s+1:le(r.text,s-r.from,!0)+r.from;return{changes:{from:o,to:l,insert:n.doc.slice(s,l).append(n.doc.slice(o,s))},range:b.cursor(l)}});return t.changes.empty?!1:(e(n.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Ns(n){let e=[],t=-1;for(let i of n.selection.ranges){let s=n.doc.lineAt(i.from),r=n.doc.lineAt(i.to);if(!i.empty&&i.to==r.from&&(r=n.doc.lineAt(i.to-1)),t>=s.number){let o=e[e.length-1];o.to=r.to,o.ranges.push(i)}else e.push({from:s.from,to:r.to,ranges:[i]});t=r.number+1}return e}function Cu(n,e,t){if(n.readOnly)return!1;let i=[],s=[];for(let r of Ns(n)){if(t?r.to==n.doc.length:r.from==0)continue;let o=n.doc.lineAt(t?r.to+1:r.from-1),l=o.length+1;if(t){i.push({from:r.to,to:o.to},{from:r.from,insert:o.text+n.lineBreak});for(let a of r.ranges)s.push(b.range(Math.min(n.doc.length,a.anchor+l),Math.min(n.doc.length,a.head+l)))}else{i.push({from:o.from,to:r.from},{from:r.to,insert:n.lineBreak+o.text});for(let a of r.ranges)s.push(b.range(a.anchor-l,a.head-l))}}return i.length?(e(n.update({changes:i,scrollIntoView:!0,selection:b.create(s,n.selection.mainIndex),userEvent:"move.line"})),!0):!1}const n1=({state:n,dispatch:e})=>Cu(n,e,!1),s1=({state:n,dispatch:e})=>Cu(n,e,!0);function Qu(n,e,t){if(n.readOnly)return!1;let i=[];for(let r of Ns(n))t?i.push({from:r.from,insert:n.doc.slice(r.from,r.to)+n.lineBreak}):i.push({from:r.to,insert:n.lineBreak+n.doc.slice(r.from,r.to)});let s=n.changes(i);return e(n.update({changes:s,selection:n.selection.map(s,t?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const r1=({state:n,dispatch:e})=>Qu(n,e,!1),o1=({state:n,dispatch:e})=>Qu(n,e,!0),l1=n=>{if(n.state.readOnly)return!1;let{state:e}=n,t=e.changes(Ns(e).map(({from:s,to:r})=>(s>0?s--:r{let r;if(n.lineWrapping){let o=n.lineBlockAt(s.head),l=n.coordsAtPos(s.head,s.assoc||1);l&&(r=o.bottom+n.documentTop-l.bottom+n.defaultLineHeight/2)}return n.moveVertically(s,!0,r)}).map(t);return n.dispatch({changes:t,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function a1(n,e){if(/\(\)|\[\]|\{\}/.test(n.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=ae(n).resolveInner(e),i=t.childBefore(e),s=t.childAfter(e),r;return i&&s&&i.to<=e&&s.from>=e&&(r=i.type.prop(L.closedBy))&&r.indexOf(s.name)>-1&&n.doc.lineAt(i.to).from==n.doc.lineAt(s.from).from&&!/\S/.test(n.sliceDoc(i.to,s.from))?{from:i.to,to:s.from}:null}const Oh=Pu(!1),h1=Pu(!0);function Pu(n){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=e.changeByRange(s=>{let{from:r,to:o}=s,l=e.doc.lineAt(r),a=!n&&r==o&&a1(e,r);n&&(r=o=(o<=l.to?l:e.doc.lineAt(o)).to);let h=new Es(e,{simulateBreak:r,simulateDoubleBreak:!!a}),c=Uo(h,r);for(c==null&&(c=bi(/^\s*/.exec(e.doc.lineAt(r).text)[0],e.tabSize));ol.from&&r{let s=[];for(let o=i.from;o<=i.to;){let l=n.doc.lineAt(o);l.number>t&&(i.empty||i.to>l.from)&&(e(l,s,i),t=l.number),o=l.to+1}let r=n.changes(s);return{changes:s,range:b.range(r.mapPos(i.anchor,1),r.mapPos(i.head,1))}})}const c1=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=Object.create(null),i=new Es(n,{overrideIndentation:r=>{let o=t[r];return o??-1}}),s=fl(n,(r,o,l)=>{let a=Uo(i,r.from);if(a==null)return;/\S/.test(r.text)||(a=0);let h=/^\s*/.exec(r.text)[0],c=Ji(n,a);(h!=c||l.fromn.readOnly?!1:(e(n.update(fl(n,(t,i)=>{i.push({from:t.from,insert:n.facet(un)})}),{userEvent:"input.indent"})),!0),Ru=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(fl(n,(t,i)=>{let s=/^\s*/.exec(t.text)[0];if(!s)return;let r=bi(s,n.tabSize),o=0,l=Ji(n,Math.max(0,r-jt(n)));for(;o(n.setTabFocusMode(),!0),u1=[{key:"Ctrl-b",run:ru,shift:pu,preventDefault:!0},{key:"Ctrl-f",run:ou,shift:mu},{key:"Ctrl-p",run:hu,shift:yu},{key:"Ctrl-n",run:cu,shift:bu},{key:"Ctrl-a",run:Mb,shift:Xb},{key:"Ctrl-e",run:Db,shift:Fb},{key:"Ctrl-d",run:wu},{key:"Ctrl-h",run:xo},{key:"Ctrl-k",run:Kb},{key:"Ctrl-Alt-h",run:Tu},{key:"Ctrl-o",run:t1},{key:"Ctrl-t",run:i1},{key:"Ctrl-v",run:bo}],d1=[{key:"ArrowLeft",run:ru,shift:pu,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:kb,shift:qb,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Ab,shift:Nb,preventDefault:!0},{key:"ArrowRight",run:ou,shift:mu,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:wb,shift:Bb,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Rb,shift:Vb,preventDefault:!0},{key:"ArrowUp",run:hu,shift:yu,preventDefault:!0},{mac:"Cmd-ArrowUp",run:dh,shift:mh},{mac:"Ctrl-ArrowUp",run:ch,shift:fh},{key:"ArrowDown",run:cu,shift:bu,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ph,shift:gh},{mac:"Ctrl-ArrowDown",run:bo,shift:uh},{key:"PageUp",run:ch,shift:fh},{key:"PageDown",run:bo,shift:uh},{key:"Home",run:Pb,shift:Ib,preventDefault:!0},{key:"Mod-Home",run:dh,shift:mh},{key:"End",run:Qb,shift:zb,preventDefault:!0},{key:"Mod-End",run:ph,shift:gh},{key:"Enter",run:Oh,shift:Oh},{key:"Mod-a",run:_b},{key:"Backspace",run:xo,shift:xo,preventDefault:!0},{key:"Delete",run:wu,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Tu,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:Yb,preventDefault:!0},{mac:"Mod-Backspace",run:Jb,preventDefault:!0},{mac:"Mod-Delete",run:e1,preventDefault:!0}].concat(u1.map(n=>({mac:n.key,run:n.run,shift:n.shift}))),p1=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Tb,shift:$b},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Cb,shift:Lb},{key:"Alt-ArrowUp",run:n1},{key:"Shift-Alt-ArrowUp",run:r1},{key:"Alt-ArrowDown",run:s1},{key:"Shift-Alt-ArrowDown",run:o1},{key:"Mod-Alt-ArrowUp",run:jb},{key:"Mod-Alt-ArrowDown",run:Gb},{key:"Escape",run:Zb},{key:"Mod-Enter",run:h1},{key:"Alt-l",mac:"Ctrl-l",run:Ub},{key:"Mod-i",run:Hb,preventDefault:!0},{key:"Mod-[",run:Ru},{key:"Mod-]",run:Au},{key:"Mod-Alt-\\",run:c1},{key:"Shift-Mod-k",run:l1},{key:"Shift-Mod-\\",run:Wb},{key:"Mod-/",run:nb},{key:"Alt-A",run:rb},{key:"Ctrl-m",mac:"Shift-Alt-m",run:f1}].concat(d1),m1={key:"Tab",run:Au,shift:Ru},yh=typeof String.prototype.normalize=="function"?n=>n.normalize("NFKD"):n=>n;class yi{constructor(e,t,i=0,s=e.length,r,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,s),this.bufferStart=i,this.normalize=r?l=>r(yh(l)):yh,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return ve(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=Qo(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=Ke(e);let s=this.normalize(t);if(s.length)for(let r=0,o=i;;r++){let l=s.charCodeAt(r),a=this.match(l,o,this.bufferPos+this.bufferStart);if(r==s.length-1){if(a)return this.value=a,this;break}o==i&&rthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let i=this.curLineStart+t.index,s=i+t[0].length;if(this.matchPos=bs(this.text,s+(i==s?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,s,t)))return this.value={from:i,to:s,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=i||s.to<=t){let l=new ci(t,e.sliceString(t,i));return vr.set(e,l),l}if(s.from==t&&s.to==i)return s;let{text:r,from:o}=s;return o>t&&(r=e.sliceString(t,o)+r,o=t),s.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let i=this.flat.from+t.index,s=i+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,s,t)))return this.value={from:i,to:s,match:t},this.matchPos=bs(this.text,s+(i==s?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=ci.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Du.prototype[Symbol.iterator]=Eu.prototype[Symbol.iterator]=function(){return this});function g1(n){try{return new RegExp(n,ul),!0}catch{return!1}}function bs(n,e){if(e>=n.length)return e;let t=n.lineAt(e),i;for(;e=56320&&i<57344;)e++;return e}const O1=n=>{let{state:e}=n,t=String(e.doc.lineAt(n.state.selection.main.head).number),{close:i,result:s}=ag(n,{label:e.phrase("Go to line"),input:{type:"text",name:"line",value:t},focus:!0,submitLabel:e.phrase("go")});return s.then(r=>{let o=r&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(r.elements.line.value);if(!o){n.dispatch({effects:i});return}let l=e.doc.lineAt(e.selection.main.head),[,a,h,c,f]=o,u=c?+c.slice(1):0,d=h?+h:l.number;if(h&&f){let g=d/100;a&&(g=g*(a=="-"?-1:1)+l.number/e.doc.lines),d=Math.round(e.doc.lines*g)}else h&&a&&(d=d*(a=="-"?-1:1)+l.number);let p=e.doc.line(Math.max(1,Math.min(e.doc.lines,d))),m=b.cursor(p.from+Math.max(0,Math.min(u,p.length)));n.dispatch({effects:[i,C.scrollIntoView(m.from,{y:"center"})],selection:m})}),!0},y1={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},b1=Q.define({combine(n){return lt(n,y1,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function x1(n){return[T1,v1]}const S1=M.mark({class:"cm-selectionMatch"}),k1=M.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function bh(n,e,t,i){return(t==0||n(e.sliceDoc(t-1,t))!=Z.Word)&&(i==e.doc.length||n(e.sliceDoc(i,i+1))!=Z.Word)}function w1(n,e,t,i){return n(e.sliceDoc(t,t+1))==Z.Word&&n(e.sliceDoc(i-1,i))==Z.Word}const v1=K.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=n.state.facet(b1),{state:t}=n,i=t.selection;if(i.ranges.length>1)return M.none;let s=i.main,r,o=null;if(s.empty){if(!e.highlightWordAroundCursor)return M.none;let a=t.wordAt(s.head);if(!a)return M.none;o=t.charCategorizer(s.head),r=t.sliceDoc(a.from,a.to)}else{let a=s.to-s.from;if(a200)return M.none;if(e.wholeWords){if(r=t.sliceDoc(s.from,s.to),o=t.charCategorizer(s.head),!(bh(o,t,s.from,s.to)&&w1(o,t,s.from,s.to)))return M.none}else if(r=t.sliceDoc(s.from,s.to),!r)return M.none}let l=[];for(let a of n.visibleRanges){let h=new yi(t.doc,r,a.from,a.to);for(;!h.next().done;){let{from:c,to:f}=h.value;if((!o||bh(o,t,c,f))&&(s.empty&&c<=s.from&&f>=s.to?l.push(k1.range(c,f)):(c>=s.to||f<=s.from)&&l.push(S1.range(c,f)),l.length>e.maxMatches))return M.none}}return M.set(l)}},{decorations:n=>n.decorations}),T1=C.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),C1=({state:n,dispatch:e})=>{let{selection:t}=n,i=b.create(t.ranges.map(s=>n.wordAt(s.head)||b.cursor(s.head)),t.mainIndex);return i.eq(t)?!1:(e(n.update({selection:i})),!0)};function Q1(n,e){let{main:t,ranges:i}=n.selection,s=n.wordAt(t.head),r=s&&s.from==t.from&&s.to==t.to;for(let o=!1,l=new yi(n.doc,e,i[i.length-1].to);;)if(l.next(),l.done){if(o)return null;l=new yi(n.doc,e,0,Math.max(0,i[i.length-1].from-1)),o=!0}else{if(o&&i.some(a=>a.from==l.value.from))continue;if(r){let a=n.wordAt(l.value.from);if(!a||a.from!=l.value.from||a.to!=l.value.to)continue}return l.value}}const P1=({state:n,dispatch:e})=>{let{ranges:t}=n.selection;if(t.some(r=>r.from===r.to))return C1({state:n,dispatch:e});let i=n.sliceDoc(t[0].from,t[0].to);if(n.selection.ranges.some(r=>n.sliceDoc(r.from,r.to)!=i))return!1;let s=Q1(n,i);return s?(e(n.update({selection:n.selection.addRange(b.range(s.from,s.to),!1),effects:C.scrollIntoView(s.to)})),!0):!1},ki=Q.define({combine(n){return lt(n,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new V1(e),scrollToMatch:e=>C.scrollIntoView(e)})}});class Wu{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||g1(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,i)=>i=="n"?` +`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new W1(this):new M1(this)}getCursor(e,t=0,i){let s=e.doc?e:N.create({doc:e});return i==null&&(i=s.doc.length),this.regexp?ei(this,s,t,i):Jt(this,s,t,i)}}class qu{constructor(e){this.spec=e}}function A1(n,e,t){return(i,s,r,o)=>{if(t&&!t(i,s,r,o))return!1;let l=i>=o&&s<=o+r.length?r.slice(i-o,s-o):e.doc.sliceString(i,s);return n(l,e,i,s)}}function Jt(n,e,t,i){let s;return n.wholeWord&&(s=R1(e.doc,e.charCategorizer(e.selection.main.head))),n.test&&(s=A1(n.test,e,s)),new yi(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:r=>r.toLowerCase(),s)}function R1(n,e){return(t,i,s,r)=>((r>t||r+s.length=t)return null;s.push(i.value)}return s}highlight(e,t,i,s){let r=Jt(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!r.next().done;)s(r.value.from,r.value.to)}}function D1(n,e,t){return(i,s,r)=>(!t||t(i,s,r))&&n(r[0],e,i,s)}function ei(n,e,t,i){let s;return n.wholeWord&&(s=E1(e.charCategorizer(e.selection.main.head))),n.test&&(s=D1(n.test,e,s)),new Du(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:s},t,i)}function xs(n,e){return n.slice(le(n,e,!1),e)}function Ss(n,e){return n.slice(e,le(n,e))}function E1(n){return(e,t,i)=>!i[0].length||(n(xs(i.input,i.index))!=Z.Word||n(Ss(i.input,i.index))!=Z.Word)&&(n(Ss(i.input,i.index+i[0].length))!=Z.Word||n(xs(i.input,i.index+i[0].length))!=Z.Word)}class W1 extends qu{nextMatch(e,t,i){let s=ei(this.spec,e,i,e.doc.length).next();return s.done&&(s=ei(this.spec,e,0,t).next()),s.done?null:s.value}prevMatchInRange(e,t,i){for(let s=1;;s++){let r=Math.max(t,i-s*1e4),o=ei(this.spec,e,r,i),l=null;for(;!o.next().done;)l=o.value;if(l&&(r==t||l.from>r+10))return l;if(r==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let s=i.length;s>0;s--){let r=+i.slice(0,s);if(r>0&&r=t)return null;s.push(i.value)}return s}highlight(e,t,i,s){let r=ei(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!r.next().done;)s(r.value.from,r.value.to)}}const ln=W.define(),dl=W.define(),wt=pe.define({create(n){return new Tr(So(n).create(),null)},update(n,e){for(let t of e.effects)t.is(ln)?n=new Tr(t.value.create(),n.panel):t.is(dl)&&(n=new Tr(n.query,t.value?pl:null));return n},provide:n=>Yi.from(n,e=>e.panel)});class Tr{constructor(e,t){this.query=e,this.panel=t}}const q1=M.mark({class:"cm-searchMatch"}),B1=M.mark({class:"cm-searchMatch cm-searchMatch-selected"}),$1=K.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(wt))}update(n){let e=n.state.field(wt);(e!=n.startState.field(wt)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return M.none;let{view:t}=this,i=new gt;for(let s=0,r=t.visibleRanges,o=r.length;sr[s+1].from-500;)a=r[++s].to;n.highlight(t.state,l,a,(h,c)=>{let f=t.state.selection.ranges.some(u=>u.from==h&&u.to==c);i.add(h,c,f?B1:q1)})}return i.finish()}},{decorations:n=>n.decorations});function On(n){return e=>{let t=e.state.field(wt,!1);return t&&t.query.spec.valid?n(e,t):Lu(e)}}const ks=On((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let s=b.single(i.from,i.to),r=n.state.facet(ki);return n.dispatch({selection:s,effects:[ml(n,i),r.scrollToMatch(s.main,n)],userEvent:"select.search"}),$u(n),!0}),ws=On((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,s=e.prevMatch(t,i,i);if(!s)return!1;let r=b.single(s.from,s.to),o=n.state.facet(ki);return n.dispatch({selection:r,effects:[ml(n,s),o.scrollToMatch(r.main,n)],userEvent:"select.search"}),$u(n),!0}),L1=On((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:b.create(t.map(i=>b.range(i.from,i.to))),userEvent:"select.search.matches"}),!0)}),z1=({state:n,dispatch:e})=>{let t=n.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:i,to:s}=t.main,r=[],o=0;for(let l=new yi(n.doc,n.sliceDoc(i,s));!l.next().done;){if(r.length>1e3)return!1;l.value.from==i&&(o=r.length),r.push(b.range(l.value.from,l.value.to))}return e(n.update({selection:b.create(r,o),userEvent:"select.search.matches"})),!0},xh=On((n,{query:e})=>{let{state:t}=n,{from:i,to:s}=t.selection.main;if(t.readOnly)return!1;let r=e.nextMatch(t,i,i);if(!r)return!1;let o=r,l=[],a,h,c=[];o.from==i&&o.to==s&&(h=t.toText(e.getReplacement(o)),l.push({from:o.from,to:o.to,insert:h}),o=e.nextMatch(t,o.from,o.to),c.push(C.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(i).number)+".")));let f=n.state.changes(l);return o&&(a=b.single(o.from,o.to).map(f),c.push(ml(n,o)),c.push(t.facet(ki).scrollToMatch(a.main,n))),n.dispatch({changes:f,selection:a,effects:c,userEvent:"input.replace"}),!0}),I1=On((n,{query:e})=>{if(n.state.readOnly)return!1;let t=e.matchAll(n.state,1e9).map(s=>{let{from:r,to:o}=s;return{from:r,to:o,insert:e.getReplacement(s)}});if(!t.length)return!1;let i=n.state.phrase("replaced $ matches",t.length)+".";return n.dispatch({changes:t,effects:C.announce.of(i),userEvent:"input.replace.all"}),!0});function pl(n){return n.state.facet(ki).createPanel(n)}function So(n,e){var t,i,s,r,o;let l=n.selection.main,a=l.empty||l.to>l.from+100?"":n.sliceDoc(l.from,l.to);if(e&&!a)return e;let h=n.facet(ki);return new Wu({search:((t=e?.literal)!==null&&t!==void 0?t:h.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:(i=e?.caseSensitive)!==null&&i!==void 0?i:h.caseSensitive,literal:(s=e?.literal)!==null&&s!==void 0?s:h.literal,regexp:(r=e?.regexp)!==null&&r!==void 0?r:h.regexp,wholeWord:(o=e?.wholeWord)!==null&&o!==void 0?o:h.wholeWord})}function Bu(n){let e=_o(n,pl);return e&&e.dom.querySelector("[main-field]")}function $u(n){let e=Bu(n);e&&e==n.root.activeElement&&e.select()}const Lu=n=>{let e=n.state.field(wt,!1);if(e&&e.panel){let t=Bu(n);if(t&&t!=n.root.activeElement){let i=So(n.state,e.query.spec);i.valid&&n.dispatch({effects:ln.of(i)}),t.focus(),t.select()}}else n.dispatch({effects:[dl.of(!0),e?ln.of(So(n.state,e.query.spec)):W.appendConfig.of(F1)]});return!0},zu=n=>{let e=n.state.field(wt,!1);if(!e||!e.panel)return!1;let t=_o(n,pl);return t&&t.dom.contains(n.root.activeElement)&&n.focus(),n.dispatch({effects:dl.of(!1)}),!0},N1=[{key:"Mod-f",run:Lu,scope:"editor search-panel"},{key:"F3",run:ks,shift:ws,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:ks,shift:ws,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:zu,scope:"editor search-panel"},{key:"Mod-Shift-l",run:z1},{key:"Mod-Alt-g",run:O1},{key:"Mod-d",run:P1,preventDefault:!0}];class V1{constructor(e){this.view=e;let t=this.query=e.state.field(wt).query.spec;this.commit=this.commit.bind(this),this.searchField=_("input",{value:t.search,placeholder:Me(e,"Find"),"aria-label":Me(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=_("input",{value:t.replace,placeholder:Me(e,"Replace"),"aria-label":Me(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=_("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=_("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=_("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function i(s,r,o){return _("button",{class:"cm-button",name:s,onclick:r,type:"button"},o)}this.dom=_("div",{onkeydown:s=>this.keydown(s),class:"cm-search"},[this.searchField,i("next",()=>ks(e),[Me(e,"next")]),i("prev",()=>ws(e),[Me(e,"previous")]),i("select",()=>L1(e),[Me(e,"all")]),_("label",null,[this.caseField,Me(e,"match case")]),_("label",null,[this.reField,Me(e,"regexp")]),_("label",null,[this.wordField,Me(e,"by word")]),...e.state.readOnly?[]:[_("br"),this.replaceField,i("replace",()=>xh(e),[Me(e,"replace")]),i("replaceAll",()=>I1(e),[Me(e,"replace all")])],_("button",{name:"close",onclick:()=>zu(e),"aria-label":Me(e,"close"),type:"button"},["×"])])}commit(){let e=new Wu({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:ln.of(e)}))}keydown(e){ym(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?ws:ks)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),xh(this.view))}update(e){for(let t of e.transactions)for(let i of t.effects)i.is(ln)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(ki).top}}function Me(n,e){return n.state.phrase(e)}const Nn=30,Vn=/[\s\.,:;?!]/;function ml(n,{from:e,to:t}){let i=n.state.doc.lineAt(e),s=n.state.doc.lineAt(t).to,r=Math.max(i.from,e-Nn),o=Math.min(s,t+Nn),l=n.state.sliceDoc(r,o);if(r!=i.from){for(let a=0;al.length-Nn;a--)if(!Vn.test(l[a-1])&&Vn.test(l[a])){l=l.slice(0,a);break}}return C.announce.of(`${n.state.phrase("current match")}. ${l} ${n.state.phrase("on line")} ${i.number}.`)}const X1=C.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),F1=[wt,Mt.low($1),X1];var Sh=function(e){e===void 0&&(e={});var{crosshairCursor:t=!1}=e,i=[];e.closeBracketsKeymap!==!1&&(i=i.concat(gy)),e.defaultKeymap!==!1&&(i=i.concat(p1)),e.searchKeymap!==!1&&(i=i.concat(N1)),e.historyKeymap!==!1&&(i=i.concat(Sb)),e.foldKeymap!==!1&&(i=i.concat(Xg)),e.completionKeymap!==!1&&(i=i.concat(Xf)),e.lintKeymap!==!1&&(i=i.concat($y));var s=[];return e.lineNumbers!==!1&&s.push(bg()),e.highlightActiveLineGutter!==!1&&s.push(kg()),e.highlightSpecialChars!==!1&&s.push(qm()),e.history!==!1&&s.push(ub()),e.foldGutter!==!1&&s.push(Hg()),e.drawSelection!==!1&&s.push(vm()),e.dropCursor!==!1&&s.push(Am()),e.allowMultipleSelections!==!1&&s.push(N.allowMultipleSelections.of(!0)),e.indentOnInput!==!1&&s.push(Wg()),e.syntaxHighlighting!==!1&&s.push(mf(Yg,{fallback:!0})),e.bracketMatching!==!1&&s.push(sO()),e.closeBrackets!==!1&&s.push(uy()),e.autocompletion!==!1&&s.push(wy()),e.rectangularSelection!==!1&&s.push(Gm()),t!==!1&&s.push(Km()),e.highlightActiveLine!==!1&&s.push(Nm()),e.highlightSelectionMatches!==!1&&s.push(x1()),e.tabSize&&typeof e.tabSize=="number"&&s.push(un.of(" ".repeat(e.tabSize))),s.concat([fn.of(i.flat())]).filter(Boolean)},_1=C.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),U1=function(e){e===void 0&&(e={});var{indentWithTab:t=!0,editable:i=!0,readOnly:s=!1,theme:r="light",placeholder:o="",basicSetup:l=!0}=e,a=[];switch(t&&a.unshift(fn.of([m1])),l&&(typeof l=="boolean"?a.unshift(Sh()):a.unshift(Sh(l))),o&&a.unshift(_m(o)),r){case"light":a.push(_1);break;case"dark":a.push(tb);break;case"none":break;default:a.push(r);break}return i===!1&&a.push(C.editable.of(!1)),s&&a.push(N.readOnly.of(!0)),[...a]},H1=n=>({line:n.state.doc.lineAt(n.state.selection.main.from),lineCount:n.state.doc.lines,lineBreak:n.state.lineBreak,length:n.state.doc.length,readOnly:n.state.readOnly,tabSize:n.state.tabSize,selection:n.state.selection,selectionAsSingle:n.state.selection.asSingle().main,ranges:n.state.selection.ranges,selectionCode:n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to),selections:n.state.selection.ranges.map(e=>n.state.sliceDoc(e.from,e.to)),selectedText:n.state.selection.ranges.some(e=>!e.empty)});class j1{constructor(e,t){this.timeLeftMS=void 0,this.timeoutMS=void 0,this.isCancelled=!1,this.isTimeExhausted=!1,this.callbacks=[],this.timeLeftMS=t,this.timeoutMS=t,this.callbacks.push(e)}tick(){if(!this.isCancelled&&!this.isTimeExhausted&&(this.timeLeftMS--,this.timeLeftMS<=0)){this.isTimeExhausted=!0;var e=this.callbacks.slice();this.callbacks.length=0,e.forEach(t=>{try{t()}catch(i){console.error("TimeoutLatch callback error:",i)}})}}cancel(){this.isCancelled=!0,this.callbacks.length=0}reset(){this.timeLeftMS=this.timeoutMS,this.isCancelled=!1,this.isTimeExhausted=!1}get isDone(){return this.isCancelled||this.isTimeExhausted}}class kh{constructor(){this.interval=null,this.latches=new Set}add(e){this.latches.add(e),this.start()}remove(e){this.latches.delete(e),this.latches.size===0&&this.stop()}start(){this.interval===null&&(this.interval=setInterval(()=>{this.latches.forEach(e=>{e.tick(),e.isDone&&this.remove(e)})},1))}stop(){this.interval!==null&&(clearInterval(this.interval),this.interval=null)}}var Cr=null,G1=()=>typeof window>"u"?new kh:(Cr||(Cr=new kh),Cr),wh=ot.define(),Z1=200,Y1=[];function K1(n){var{value:e,selection:t,onChange:i,onStatistics:s,onCreateEditor:r,onUpdate:o,extensions:l=Y1,autoFocus:a,theme:h="light",height:c=null,minHeight:f=null,maxHeight:u=null,width:d=null,minWidth:p=null,maxWidth:m=null,placeholder:g="",editable:y=!0,readOnly:x=!1,indentWithTab:S=!0,basicSetup:A=!0,root:k,initialState:w}=n,[v,E]=be.useState(),[R,I]=be.useState(),[q,D]=be.useState(),B=be.useState(()=>({current:null}))[0],$=be.useState(()=>({current:null}))[0],X=C.theme({"&":{height:c,minHeight:f,maxHeight:u,width:d,minWidth:p,maxWidth:m},"& .cm-scroller":{height:"100% !important"}}),ne=C.updateListener.of(F=>{if(F.docChanged&&typeof i=="function"&&!F.transactions.some(ge=>ge.annotation(wh))){B.current?B.current.reset():(B.current=new j1(()=>{if($.current){var ge=$.current;$.current=null,ge()}B.current=null},Z1),G1().add(B.current));var te=F.state.doc,he=te.toString();i(he,F)}s&&s(H1(F))}),re=U1({theme:h,editable:y,readOnly:x,placeholder:g,indentWithTab:S,basicSetup:A}),me=[ne,X,...re];return o&&typeof o=="function"&&me.push(C.updateListener.of(o)),me=me.concat(l),be.useLayoutEffect(()=>{if(v&&!q){var F={doc:e,selection:t,extensions:me},te=w?N.fromJSON(w.json,F,w.fields):N.create(F);if(D(te),!R){var he=new C({state:te,parent:v,root:k});I(he),r&&r(he,te)}}return()=>{R&&(D(void 0),I(void 0))}},[v,q]),be.useEffect(()=>{n.container&&E(n.container)},[n.container]),be.useEffect(()=>()=>{R&&(R.destroy(),I(void 0)),B.current&&(B.current.cancel(),B.current=null)},[R]),be.useEffect(()=>{a&&R&&R.focus()},[a,R]),be.useEffect(()=>{R&&R.dispatch({effects:W.reconfigure.of(me)})},[h,l,c,f,u,d,p,m,g,y,x,S,A,i,o]),be.useEffect(()=>{if(e!==void 0){var F=R?R.state.doc.toString():"";if(R&&e!==F){var te=B.current&&!B.current.isDone,he=()=>{R&&e!==R.state.doc.toString()&&R.dispatch({changes:{from:0,to:R.state.doc.toString().length,insert:e||""},annotations:[wh.of(!0)]})};te?$.current=he:he()}}},[e,R]),{state:q,setState:D,view:R,setView:I,container:v,setContainer:E}}var J1=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],ex=be.forwardRef((n,e)=>{var{className:t,value:i="",selection:s,extensions:r=[],onChange:o,onStatistics:l,onCreateEditor:a,onUpdate:h,autoFocus:c,theme:f="light",height:u,minHeight:d,maxHeight:p,width:m,minWidth:g,maxWidth:y,basicSetup:x,placeholder:S,indentWithTab:A,editable:k,readOnly:w,root:v,initialState:E}=n,R=ib(n,J1),I=be.useRef(null),{state:q,view:D,container:B,setContainer:$}=K1({root:v,value:i,autoFocus:c,theme:f,height:u,minHeight:d,maxHeight:p,width:m,minWidth:g,maxWidth:y,basicSetup:x,placeholder:S,indentWithTab:A,editable:k,readOnly:w,selection:s,onChange:o,onStatistics:l,onCreateEditor:a,onUpdate:h,extensions:r,initialState:E});be.useImperativeHandle(e,()=>({editor:I.current,state:q,view:D}),[I,B,q,D]);var X=be.useCallback(re=>{I.current=re,$(re)},[$]);if(typeof i!="string")throw new Error("value must be typeof string but got "+typeof i);var ne=typeof f=="string"?"cm-theme-"+f:"cm-theme";return Iu.jsx("div",go({ref:X,className:""+ne+(t?" "+t:"")},R))});ex.displayName="CodeMirror";export{Ts as E,Y as I,Ni as L,Hu as N,ex as R,xf as S,Yu as a,nf as b,Ki as c,Ma as d,of as e,jo as f,ae as g,C as h,Ws as i,lx as j,ox as k,hx as l,tb as o,ax as p,Co as s,O as t}; diff --git a/dashboard/dist/assets/dnd-BoJ1-vkD.js b/dashboard/dist/assets/dnd-BoJ1-vkD.js new file mode 100644 index 00000000..beeaa5e8 --- /dev/null +++ b/dashboard/dist/assets/dnd-BoJ1-vkD.js @@ -0,0 +1,5 @@ +import{r as c,R as P,a as Oe}from"./router-zNjPR4CY.js";function Sn(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(o=>o(r))},t)}const tt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function me(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function bt(e){return"nodeType"in e}function B(e){var t,n;return e?me(e)?e:bt(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function wt(e){const{Document:t}=B(e);return e instanceof t}function Be(e){return me(e)?!1:e instanceof B(e).HTMLElement}function Wt(e){return e instanceof B(e).SVGElement}function ye(e){return e?me(e)?e.document:bt(e)?wt(e)?e:Be(e)||Wt(e)?e.ownerDocument:document:document:document}const Q=tt?c.useLayoutEffect:c.useEffect;function mt(e){const t=c.useRef(e);return Q(()=>{t.current=e}),c.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o{e.current=setInterval(r,o)},[]),n=c.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function ke(e,t){t===void 0&&(t=[e]);const n=c.useRef(e);return Q(()=>{n.current!==e&&(n.current=e)},t),n}function Fe(e,t){const n=c.useRef();return c.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Je(e){const t=mt(e),n=c.useRef(null),r=c.useCallback(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,r]}function ft(e){const t=c.useRef();return c.useEffect(()=>{t.current=e},[e]),t.current}let ct={};function $e(e,t){return c.useMemo(()=>{if(t)return t;const n=ct[e]==null?0:ct[e]+1;return ct[e]=n,e+"-"+n},[e,t])}function Ht(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{const a=Object.entries(s);for(const[l,u]of a){const f=i[l];f!=null&&(i[l]=f+e*u)}return i},{...t})}}const we=Ht(1),ze=Ht(-1);function In(e){return"clientX"in e&&"clientY"in e}function yt(e){if(!e)return!1;const{KeyboardEvent:t}=B(e.target);return t&&e instanceof t}function Mn(e){if(!e)return!1;const{TouchEvent:t}=B(e.target);return t&&e instanceof t}function ht(e){if(Mn(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return In(e)?{x:e.clientX,y:e.clientY}:null}const _e=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[_e.Translate.toString(e),_e.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Tt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function An(e){return e.matches(Tt)?e:e.querySelector(Tt)}const On={display:"none"};function Tn(e){let{id:t,value:n}=e;return P.createElement("div",{id:t,style:On},n)}function Nn(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return P.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Ln(){const[e,t]=c.useState("");return{announce:c.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Kt=c.createContext(null);function kn(e){const t=c.useContext(Kt);c.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function zn(){const[e]=c.useState(()=>new Set),t=c.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[c.useCallback(r=>{let{type:o,event:i}=r;e.forEach(s=>{var a;return(a=s[o])==null?void 0:a.call(s,i)})},[e]),t]}const Pn={draggable:` + To pick up a draggable item, press the space bar. + While dragging, use the arrow keys to move the item. + Press space again to drop the item in its new position, or press escape to cancel. + `},Bn={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Fn(e){let{announcements:t=Bn,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Pn}=e;const{announce:i,announcement:s}=Ln(),a=$e("DndLiveRegion"),[l,u]=c.useState(!1);if(c.useEffect(()=>{u(!0)},[]),kn(c.useMemo(()=>({onDragStart(d){let{active:g}=d;i(t.onDragStart({active:g}))},onDragMove(d){let{active:g,over:h}=d;t.onDragMove&&i(t.onDragMove({active:g,over:h}))},onDragOver(d){let{active:g,over:h}=d;i(t.onDragOver({active:g,over:h}))},onDragEnd(d){let{active:g,over:h}=d;i(t.onDragEnd({active:g,over:h}))},onDragCancel(d){let{active:g,over:h}=d;i(t.onDragCancel({active:g,over:h}))}}),[i,t])),!l)return null;const f=P.createElement(P.Fragment,null,P.createElement(Tn,{id:r,value:o.draggable}),P.createElement(Nn,{id:a,announcement:s}));return n?Oe.createPortal(f,n):f}var O;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(O||(O={}));function Qe(){}function ao(e,t){return c.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function co(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(r=>r!=null),[...t])}const V=Object.freeze({x:0,y:0});function Vt(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function qt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function $n(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Nt(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function Gt(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Lt(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const lo=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=Lt(t,t.left,t.top),i=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const u=Vt(Lt(l),o);i.push({id:a,data:{droppableContainer:s,value:u}})}}return i.sort(qt)},Xn=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=Nt(t),i=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const u=Nt(l),f=o.reduce((g,h,C)=>g+Vt(u[C],h),0),d=Number((f/4).toFixed(4));i.push({id:a,data:{droppableContainer:s,value:d}})}}return i.sort(qt)};function Yn(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=o-r,a=i-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:s}=i,a=n.get(s);if(a){const l=Yn(a,t);l>0&&o.push({id:s,data:{droppableContainer:i,value:l}})}}return o.sort($n)};function Un(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Jt(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:V}function Wn(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const Hn=Wn(1);function Kn(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Vn(e,t,n){const r=Kn(t);if(!r)return e;const{scaleX:o,scaleY:i,x:s,y:a}=r,l=e.left-s-(1-o)*parseFloat(n),u=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),f=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:f,height:d,top:u,right:l+f,bottom:u+d,left:l}}const qn={ignoreTransform:!1};function xe(e,t){t===void 0&&(t=qn);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:f}=B(e).getComputedStyle(e);u&&(n=Vn(n,u,f))}const{top:r,left:o,width:i,height:s,bottom:a,right:l}=n;return{top:r,left:o,width:i,height:s,bottom:a,right:l}}function kt(e){return xe(e,{ignoreTransform:!0})}function Gn(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Jn(e,t){return t===void 0&&(t=B(e).getComputedStyle(e)),t.position==="fixed"}function _n(e,t){t===void 0&&(t=B(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):!1})}function nt(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(wt(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Be(o)||Wt(o)||n.includes(o))return n;const i=B(e).getComputedStyle(o);return o!==e&&_n(o,i)&&n.push(o),Jn(o,i)?n:r(o.parentNode)}return e?r(e):n}function _t(e){const[t]=nt(e,1);return t??null}function lt(e){return!tt||!e?null:me(e)?e:bt(e)?wt(e)||e===ye(e).scrollingElement?window:Be(e)?e:null:null}function Qt(e){return me(e)?e.scrollX:e.scrollLeft}function Zt(e){return me(e)?e.scrollY:e.scrollTop}function gt(e){return{x:Qt(e),y:Zt(e)}}var N;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(N||(N={}));function en(e){return!tt||!e?!1:e===document.scrollingElement}function tn(e){const t={x:0,y:0},n=en(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}const Qn={x:.2,y:.2};function Zn(e,t,n,r,o){let{top:i,left:s,right:a,bottom:l}=n;r===void 0&&(r=10),o===void 0&&(o=Qn);const{isTop:u,isBottom:f,isLeft:d,isRight:g}=tn(e),h={x:0,y:0},C={x:0,y:0},v={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+v.height?(h.y=N.Backward,C.y=r*Math.abs((t.top+v.height-i)/v.height)):!f&&l>=t.bottom-v.height&&(h.y=N.Forward,C.y=r*Math.abs((t.bottom-v.height-l)/v.height)),!g&&a>=t.right-v.width?(h.x=N.Forward,C.x=r*Math.abs((t.right-v.width-a)/v.width)):!d&&s<=t.left+v.width&&(h.x=N.Backward,C.x=r*Math.abs((t.left+v.width-s)/v.width)),{direction:h,speed:C}}function er(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function nn(e){return e.reduce((t,n)=>we(t,gt(n)),V)}function tr(e){return e.reduce((t,n)=>t+Qt(n),0)}function nr(e){return e.reduce((t,n)=>t+Zt(n),0)}function rr(e,t){if(t===void 0&&(t=xe),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);_t(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const or=[["x",["left","right"],tr],["y",["top","bottom"],nr]];class xt{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=nt(n),o=nn(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,s,a]of or)for(const l of s)Object.defineProperty(this,l,{get:()=>{const u=a(r),f=o[i]-u;return this.rect[l]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Te{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function ir(e){const{EventTarget:t}=B(e);return e instanceof t?e:ye(e)}function ut(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var W;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(W||(W={}));function zt(e){e.preventDefault()}function sr(e){e.stopPropagation()}var w;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(w||(w={}));const rn={start:[w.Space,w.Enter],cancel:[w.Esc],end:[w.Space,w.Enter,w.Tab]},ar=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case w.Right:return{...n,x:n.x+25};case w.Left:return{...n,x:n.x-25};case w.Down:return{...n,y:n.y+25};case w.Up:return{...n,y:n.y-25}}};class on{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Te(ye(n)),this.windowListeners=new Te(B(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(W.Resize,this.handleCancel),this.windowListeners.add(W.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(W.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&rr(r),n(V)}handleKeyDown(t){if(yt(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=rn,coordinateGetter:s=ar,scrollBehavior:a="smooth"}=o,{code:l}=t;if(i.end.includes(l)){this.handleEnd(t);return}if(i.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:u}=r.current,f=u?{x:u.left,y:u.top}:V;this.referenceCoordinates||(this.referenceCoordinates=f);const d=s(t,{active:n,context:r.current,currentCoordinates:f});if(d){const g=ze(d,f),h={x:0,y:0},{scrollableAncestors:C}=r.current;for(const v of C){const p=t.code,{isTop:m,isRight:y,isLeft:b,isBottom:R,maxScroll:S,minScroll:E}=tn(v),x=er(v),D={x:Math.min(p===w.Right?x.right-x.width/2:x.right,Math.max(p===w.Right?x.left:x.left+x.width/2,d.x)),y:Math.min(p===w.Down?x.bottom-x.height/2:x.bottom,Math.max(p===w.Down?x.top:x.top+x.height/2,d.y))},A=p===w.Right&&!y||p===w.Left&&!b,T=p===w.Down&&!R||p===w.Up&&!m;if(A&&D.x!==d.x){const M=v.scrollLeft+g.x,H=p===w.Right&&M<=S.x||p===w.Left&&M>=E.x;if(H&&!g.y){v.scrollTo({left:M,behavior:a});return}H?h.x=v.scrollLeft-M:h.x=p===w.Right?v.scrollLeft-S.x:v.scrollLeft-E.x,h.x&&v.scrollBy({left:-h.x,behavior:a});break}else if(T&&D.y!==d.y){const M=v.scrollTop+g.y,H=p===w.Down&&M<=S.y||p===w.Up&&M>=E.y;if(H&&!g.x){v.scrollTo({top:M,behavior:a});return}H?h.y=v.scrollTop-M:h.y=p===w.Down?v.scrollTop-S.y:v.scrollTop-E.y,h.y&&v.scrollBy({top:-h.y,behavior:a});break}}this.handleMove(t,we(ze(d,this.referenceCoordinates),h))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}on.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=rn,onActivation:o}=t,{active:i}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const a=i.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];function Pt(e){return!!(e&&"distance"in e)}function Bt(e){return!!(e&&"delay"in e)}class Dt{constructor(t,n,r){var o;r===void 0&&(r=ir(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=ye(s),this.documentListeners=new Te(this.document),this.listeners=new Te(r),this.windowListeners=new Te(B(s)),this.initialCoordinates=(o=ht(i))!=null?o:V,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(W.Resize,this.handleCancel),this.windowListeners.add(W.DragStart,zt),this.windowListeners.add(W.VisibilityChange,this.handleCancel),this.windowListeners.add(W.ContextMenu,zt),this.documentListeners.add(W.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Bt(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Pt(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(W.Click,sr,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(W.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!o)return;const l=(n=ht(t))!=null?n:V,u=ze(o,l);if(!r&&a){if(Pt(a)){if(a.tolerance!=null&&ut(u,a.tolerance))return this.handleCancel();if(ut(u,a.distance))return this.handleStart()}if(Bt(a)&&ut(u,a.tolerance))return this.handleCancel();this.handlePending(a,u);return}t.cancelable&&t.preventDefault(),s(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===w.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const cr={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class sn extends Dt{constructor(t){const{event:n}=t,r=ye(n.target);super(t,cr,r)}}sn.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const lr={move:{name:"mousemove"},end:{name:"mouseup"}};var vt;(function(e){e[e.RightClick=2]="RightClick"})(vt||(vt={}));class ur extends Dt{constructor(t){super(t,lr,ye(t.event.target))}}ur.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===vt.RightClick?!1:(r?.({event:n}),!0)}}];const dt={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class dr extends Dt{constructor(t){super(t,dt)}static setup(){return window.addEventListener(dt.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(dt.move.name,t)};function t(){}}}dr.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r?.({event:n}),!0)}}];var Ne;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ne||(Ne={}));var Ze;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Ze||(Ze={}));function fr(e){let{acceleration:t,activator:n=Ne.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:a=Ze.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:f,delta:d,threshold:g}=e;const h=gr({delta:d,disabled:!i}),[C,v]=En(),p=c.useRef({x:0,y:0}),m=c.useRef({x:0,y:0}),y=c.useMemo(()=>{switch(n){case Ne.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Ne.DraggableRect:return o}},[n,o,l]),b=c.useRef(null),R=c.useCallback(()=>{const E=b.current;if(!E)return;const x=p.current.x*m.current.x,D=p.current.y*m.current.y;E.scrollBy(x,D)},[]),S=c.useMemo(()=>a===Ze.TreeOrder?[...u].reverse():u,[a,u]);c.useEffect(()=>{if(!i||!u.length||!y){v();return}for(const E of S){if(r?.(E)===!1)continue;const x=u.indexOf(E),D=f[x];if(!D)continue;const{direction:A,speed:T}=Zn(E,D,y,t,g);for(const M of["x","y"])h[M][A[M]]||(T[M]=0,A[M]=0);if(T.x>0||T.y>0){v(),b.current=E,C(R,s),p.current=T,m.current=A;return}}p.current={x:0,y:0},m.current={x:0,y:0},v()},[t,R,r,v,i,s,JSON.stringify(y),JSON.stringify(h),C,u,S,f,JSON.stringify(g)])}const hr={x:{[N.Backward]:!1,[N.Forward]:!1},y:{[N.Backward]:!1,[N.Forward]:!1}};function gr(e){let{delta:t,disabled:n}=e;const r=ft(t);return Fe(o=>{if(n||!r||!o)return hr;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[N.Backward]:o.x[N.Backward]||i.x===-1,[N.Forward]:o.x[N.Forward]||i.x===1},y:{[N.Backward]:o.y[N.Backward]||i.y===-1,[N.Forward]:o.y[N.Forward]||i.y===1}}},[n,t,r])}function vr(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Fe(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function pr(e,t){return c.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...i]},[]),[e,t])}var Pe;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Pe||(Pe={}));var pt;(function(e){e.Optimized="optimized"})(pt||(pt={}));const Ft=new Map;function br(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,s]=c.useState(null),{frequency:a,measure:l,strategy:u}=o,f=c.useRef(e),d=p(),g=ke(d),h=c.useCallback(function(m){m===void 0&&(m=[]),!g.current&&s(y=>y===null?m:y.concat(m.filter(b=>!y.includes(b))))},[g]),C=c.useRef(null),v=Fe(m=>{if(d&&!n)return Ft;if(!m||m===Ft||f.current!==e||i!=null){const y=new Map;for(let b of e){if(!b)continue;if(i&&i.length>0&&!i.includes(b.id)&&b.rect.current){y.set(b.id,b.rect.current);continue}const R=b.node.current,S=R?new xt(l(R),R):null;b.rect.current=S,S&&y.set(b.id,S)}return y}return m},[e,i,n,d,l]);return c.useEffect(()=>{f.current=e},[e]),c.useEffect(()=>{d||h()},[n,d]),c.useEffect(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),c.useEffect(()=>{d||typeof a!="number"||C.current!==null||(C.current=setTimeout(()=>{h(),C.current=null},a))},[a,d,h,...r]),{droppableRects:v,measureDroppableContainers:h,measuringScheduled:i!=null};function p(){switch(u){case Pe.Always:return!1;case Pe.BeforeDragging:return n;default:return!n}}}function an(e,t){return Fe(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function wr(e,t){return an(e,t)}function mr(e){let{callback:t,disabled:n}=e;const r=mt(t),o=c.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return c.useEffect(()=>()=>o?.disconnect(),[o]),o}function rt(e){let{callback:t,disabled:n}=e;const r=mt(t),o=c.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return c.useEffect(()=>()=>o?.disconnect(),[o]),o}function yr(e){return new xt(xe(e),e)}function $t(e,t,n){t===void 0&&(t=yr);const[r,o]=c.useState(null);function i(){o(l=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=l??n)!=null?u:null}const f=t(e);return JSON.stringify(l)===JSON.stringify(f)?l:f})}const s=mr({callback(l){if(e)for(const u of l){const{type:f,target:d}=u;if(f==="childList"&&d instanceof HTMLElement&&d.contains(e)){i();break}}}}),a=rt({callback:i});return Q(()=>{i(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function xr(e){const t=an(e);return Jt(e,t)}const Xt=[];function Dr(e){const t=c.useRef(e),n=Fe(r=>e?r&&r!==Xt&&e&&t.current&&e.parentNode===t.current.parentNode?r:nt(e):Xt,[e]);return c.useEffect(()=>{t.current=e},[e]),n}function Cr(e){const[t,n]=c.useState(null),r=c.useRef(e),o=c.useCallback(i=>{const s=lt(i.target);s&&n(a=>a?(a.set(s,gt(s)),new Map(a)):null)},[]);return c.useEffect(()=>{const i=r.current;if(e!==i){s(i);const a=e.map(l=>{const u=lt(l);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,gt(u)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(i)};function s(a){a.forEach(l=>{const u=lt(l);u?.removeEventListener("scroll",o)})}},[o,e]),c.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>we(i,s),V):nn(e):V,[e,t])}function Yt(e,t){t===void 0&&(t=[]);const n=c.useRef(null);return c.useEffect(()=>{n.current=null},t),c.useEffect(()=>{const r=e!==V;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?ze(e,n.current):V}function Rr(e){c.useEffect(()=>{if(!tt)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function Sr(e,t){return c.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=s=>{i(s,t)},n},{}),[e,t])}function cn(e){return c.useMemo(()=>e?Gn(e):null,[e])}const jt=[];function Er(e,t){t===void 0&&(t=xe);const[n]=e,r=cn(n?B(n):null),[o,i]=c.useState(jt);function s(){i(()=>e.length?e.map(l=>en(l)?r:new xt(t(l),l)):jt)}const a=rt({callback:s});return Q(()=>{a?.disconnect(),s(),e.forEach(l=>a?.observe(l))},[e]),o}function Ir(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Be(t)?t:e}function Mr(e){let{measure:t}=e;const[n,r]=c.useState(null),o=c.useCallback(u=>{for(const{target:f}of u)if(Be(f)){r(d=>{const g=t(f);return d?{...d,width:g.width,height:g.height}:g});break}},[t]),i=rt({callback:o}),s=c.useCallback(u=>{const f=Ir(u);i?.disconnect(),f&&i?.observe(f),r(f?t(f):null)},[t,i]),[a,l]=Je(s);return c.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const Ar=[{sensor:sn,options:{}},{sensor:on,options:{}}],Or={current:{}},Ge={draggable:{measure:kt},droppable:{measure:kt,strategy:Pe.WhileDragging,frequency:pt.Optimized},dragOverlay:{measure:xe}};class Le extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const Tr={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Le,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Qe},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ge,measureDroppableContainers:Qe,windowRect:null,measuringScheduled:!1},Nr={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Qe,draggableNodes:new Map,over:null,measureDroppableContainers:Qe},ot=c.createContext(Nr),ln=c.createContext(Tr);function Lr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Le}}}function kr(e,t){switch(t.type){case O.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case O.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case O.DragEnd:case O.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case O.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Le(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case O.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const s=new Le(e.droppable.containers);return s.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case O.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Le(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function zr(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=c.useContext(ot),i=ft(r),s=ft(n?.id);return c.useEffect(()=>{if(!t&&!r&&i&&s!=null){if(!yt(i)||document.activeElement===i.target)return;const a=o.get(s);if(!a)return;const{activatorNode:l,node:u}=a;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const f of[l.current,u.current]){if(!f)continue;const d=An(f);if(d){d.focus();break}}})}},[r,t,o,s,i]),null}function Pr(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function Br(e){return c.useMemo(()=>({draggable:{...Ge.draggable,...e?.draggable},droppable:{...Ge.droppable,...e?.droppable},dragOverlay:{...Ge.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Fr(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=c.useRef(!1),{x:s,y:a}=typeof o=="boolean"?{x:o,y:o}:o;Q(()=>{if(!s&&!a||!t){i.current=!1;return}if(i.current||!r)return;const u=t?.node.current;if(!u||u.isConnected===!1)return;const f=n(u),d=Jt(f,r);if(s||(d.x=0),a||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const g=_t(u);g&&g.scrollBy({top:d.y,left:d.x})}},[t,s,a,r,n])}const un=c.createContext({...V,scaleX:1,scaleY:1});var ue;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(ue||(ue={}));const uo=c.memo(function(t){var n,r,o,i;let{id:s,accessibility:a,autoScroll:l=!0,children:u,sensors:f=Ar,collisionDetection:d=jn,measuring:g,modifiers:h,...C}=t;const v=c.useReducer(kr,void 0,Lr),[p,m]=v,[y,b]=zn(),[R,S]=c.useState(ue.Uninitialized),E=R===ue.Initialized,{draggable:{active:x,nodes:D,translate:A},droppable:{containers:T}}=p,M=x!=null?D.get(x):null,H=c.useRef({initial:null,translated:null}),K=c.useMemo(()=>{var k;return x!=null?{id:x,data:(k=M?.data)!=null?k:Or,rect:H}:null},[x,M]),q=c.useRef(null),[De,Xe]=c.useState(null),[F,Ye]=c.useState(null),Z=ke(C,Object.values(C)),Ce=$e("DndDescribedBy",s),je=c.useMemo(()=>T.getEnabled(),[T]),z=Br(g),{droppableRects:ee,measureDroppableContainers:de,measuringScheduled:Re}=br(je,{dragging:E,dependencies:[A.x,A.y],config:z.droppable}),j=vr(D,x),Ue=c.useMemo(()=>F?ht(F):null,[F]),oe=Rn(),te=wr(j,z.draggable.measure);Fr({activeNode:x!=null?D.get(x):null,config:oe.layoutShiftCompensation,initialRect:te,measure:z.draggable.measure});const I=$t(j,z.draggable.measure,te),Se=$t(j?j.parentElement:null),G=c.useRef({activatorEvent:null,active:null,activeNode:j,collisionRect:null,collisions:null,droppableRects:ee,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),fe=T.getNodeFor((n=G.current.over)==null?void 0:n.id),ne=Mr({measure:z.dragOverlay.measure}),he=(r=ne.nodeRef.current)!=null?r:j,ge=E?(o=ne.rect)!=null?o:I:null,Ct=!!(ne.nodeRef.current&&ne.rect),Rt=xr(Ct?null:I),it=cn(he?B(he):null),ie=Dr(E?fe??j:null),We=Er(ie),He=Pr(h,{transform:{x:A.x-Rt.x,y:A.y-Rt.y,scaleX:1,scaleY:1},activatorEvent:F,active:K,activeNodeRect:I,containerNodeRect:Se,draggingNodeRect:ge,over:G.current.over,overlayNodeRect:ne.rect,scrollableAncestors:ie,scrollableAncestorRects:We,windowRect:it}),St=Ue?we(Ue,A):null,Et=Cr(ie),bn=Yt(Et),wn=Yt(Et,[I]),ve=we(He,bn),pe=ge?Hn(ge,He):null,Ee=K&&pe?d({active:K,collisionRect:pe,droppableRects:ee,droppableContainers:je,pointerCoordinates:St}):null,It=Gt(Ee,"id"),[se,Mt]=c.useState(null),mn=Ct?He:we(He,wn),yn=Un(mn,(i=se?.rect)!=null?i:null,I),st=c.useRef(null),At=c.useCallback((k,$)=>{let{sensor:X,options:ae}=$;if(q.current==null)return;const U=D.get(q.current);if(!U)return;const Y=k.nativeEvent,J=new X({active:q.current,activeNode:U,event:Y,options:ae,context:G,onAbort(L){if(!D.get(L))return;const{onDragAbort:_}=Z.current,re={id:L};_?.(re),y({type:"onDragAbort",event:re})},onPending(L,ce,_,re){if(!D.get(L))return;const{onDragPending:Me}=Z.current,le={id:L,constraint:ce,initialCoordinates:_,offset:re};Me?.(le),y({type:"onDragPending",event:le})},onStart(L){const ce=q.current;if(ce==null)return;const _=D.get(ce);if(!_)return;const{onDragStart:re}=Z.current,Ie={activatorEvent:Y,active:{id:ce,data:_.data,rect:H}};Oe.unstable_batchedUpdates(()=>{re?.(Ie),S(ue.Initializing),m({type:O.DragStart,initialCoordinates:L,active:ce}),y({type:"onDragStart",event:Ie}),Xe(st.current),Ye(Y)})},onMove(L){m({type:O.DragMove,coordinates:L})},onEnd:be(O.DragEnd),onCancel:be(O.DragCancel)});st.current=J;function be(L){return async function(){const{active:_,collisions:re,over:Ie,scrollAdjustedTranslate:Me}=G.current;let le=null;if(_&&Me){const{cancelDrop:Ae}=Z.current;le={activatorEvent:Y,active:_,collisions:re,delta:Me,over:Ie},L===O.DragEnd&&typeof Ae=="function"&&await Promise.resolve(Ae(le))&&(L=O.DragCancel)}q.current=null,Oe.unstable_batchedUpdates(()=>{m({type:L}),S(ue.Uninitialized),Mt(null),Xe(null),Ye(null),st.current=null;const Ae=L===O.DragEnd?"onDragEnd":"onDragCancel";if(le){const at=Z.current[Ae];at?.(le),y({type:Ae,event:le})}})}}},[D]),xn=c.useCallback((k,$)=>(X,ae)=>{const U=X.nativeEvent,Y=D.get(ae);if(q.current!==null||!Y||U.dndKit||U.defaultPrevented)return;const J={active:Y};k(X,$.options,J)===!0&&(U.dndKit={capturedBy:$.sensor},q.current=ae,At(X,$))},[D,At]),Ot=pr(f,xn);Rr(f),Q(()=>{I&&R===ue.Initializing&&S(ue.Initialized)},[I,R]),c.useEffect(()=>{const{onDragMove:k}=Z.current,{active:$,activatorEvent:X,collisions:ae,over:U}=G.current;if(!$||!X)return;const Y={active:$,activatorEvent:X,collisions:ae,delta:{x:ve.x,y:ve.y},over:U};Oe.unstable_batchedUpdates(()=>{k?.(Y),y({type:"onDragMove",event:Y})})},[ve.x,ve.y]),c.useEffect(()=>{const{active:k,activatorEvent:$,collisions:X,droppableContainers:ae,scrollAdjustedTranslate:U}=G.current;if(!k||q.current==null||!$||!U)return;const{onDragOver:Y}=Z.current,J=ae.get(It),be=J&&J.rect.current?{id:J.id,rect:J.rect.current,data:J.data,disabled:J.disabled}:null,L={active:k,activatorEvent:$,collisions:X,delta:{x:U.x,y:U.y},over:be};Oe.unstable_batchedUpdates(()=>{Mt(be),Y?.(L),y({type:"onDragOver",event:L})})},[It]),Q(()=>{G.current={activatorEvent:F,active:K,activeNode:j,collisionRect:pe,collisions:Ee,droppableRects:ee,draggableNodes:D,draggingNode:he,draggingNodeRect:ge,droppableContainers:T,over:se,scrollableAncestors:ie,scrollAdjustedTranslate:ve},H.current={initial:ge,translated:pe}},[K,j,Ee,pe,D,he,ge,ee,T,se,ie,ve]),fr({...oe,delta:A,draggingRect:pe,pointerCoordinates:St,scrollableAncestors:ie,scrollableAncestorRects:We});const Dn=c.useMemo(()=>({active:K,activeNode:j,activeNodeRect:I,activatorEvent:F,collisions:Ee,containerNodeRect:Se,dragOverlay:ne,draggableNodes:D,droppableContainers:T,droppableRects:ee,over:se,measureDroppableContainers:de,scrollableAncestors:ie,scrollableAncestorRects:We,measuringConfiguration:z,measuringScheduled:Re,windowRect:it}),[K,j,I,F,Ee,Se,ne,D,T,ee,se,de,ie,We,z,Re,it]),Cn=c.useMemo(()=>({activatorEvent:F,activators:Ot,active:K,activeNodeRect:I,ariaDescribedById:{draggable:Ce},dispatch:m,draggableNodes:D,over:se,measureDroppableContainers:de}),[F,Ot,K,I,m,Ce,D,se,de]);return P.createElement(Kt.Provider,{value:b},P.createElement(ot.Provider,{value:Cn},P.createElement(ln.Provider,{value:Dn},P.createElement(un.Provider,{value:yn},u)),P.createElement(zr,{disabled:a?.restoreFocus===!1})),P.createElement(Fn,{...a,hiddenTextDescribedById:Ce}));function Rn(){const k=De?.autoScrollEnabled===!1,$=typeof l=="object"?l.enabled===!1:l===!1,X=E&&!k&&!$;return typeof l=="object"?{...l,enabled:X}:{enabled:X}}}),$r=c.createContext(null),Ut="button",Xr="Draggable";function Yr(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=$e(Xr),{activators:s,activatorEvent:a,active:l,activeNodeRect:u,ariaDescribedById:f,draggableNodes:d,over:g}=c.useContext(ot),{role:h=Ut,roleDescription:C="draggable",tabIndex:v=0}=o??{},p=l?.id===t,m=c.useContext(p?un:$r),[y,b]=Je(),[R,S]=Je(),E=Sr(s,t),x=ke(n);Q(()=>(d.set(t,{id:t,key:i,node:y,activatorNode:R,data:x}),()=>{const A=d.get(t);A&&A.key===i&&d.delete(t)}),[d,t]);const D=c.useMemo(()=>({role:h,tabIndex:v,"aria-disabled":r,"aria-pressed":p&&h===Ut?!0:void 0,"aria-roledescription":C,"aria-describedby":f.draggable}),[r,h,v,p,C,f.draggable]);return{active:l,activatorEvent:a,activeNodeRect:u,attributes:D,isDragging:p,listeners:r?void 0:E,node:y,over:g,setNodeRef:b,setActivatorNodeRef:S,transform:m}}function jr(){return c.useContext(ln)}const Ur="Droppable",Wr={timeout:25};function Hr(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=$e(Ur),{active:s,dispatch:a,over:l,measureDroppableContainers:u}=c.useContext(ot),f=c.useRef({disabled:n}),d=c.useRef(!1),g=c.useRef(null),h=c.useRef(null),{disabled:C,updateMeasurementsFor:v,timeout:p}={...Wr,...o},m=ke(v??r),y=c.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(m.current)?m.current:[m.current]),h.current=null},p)},[p]),b=rt({callback:y,disabled:C||!s}),R=c.useCallback((D,A)=>{b&&(A&&(b.unobserve(A),d.current=!1),D&&b.observe(D))},[b]),[S,E]=Je(R),x=ke(t);return c.useEffect(()=>{!b||!S.current||(b.disconnect(),d.current=!1,b.observe(S.current))},[S,b]),c.useEffect(()=>(a({type:O.RegisterDroppable,element:{id:r,key:i,disabled:n,node:S,rect:g,data:x}}),()=>a({type:O.UnregisterDroppable,key:i,id:r})),[r]),c.useEffect(()=>{n!==f.current.disabled&&(a({type:O.SetDroppableDisabled,id:r,key:i,disabled:n}),f.current.disabled=n)},[r,i,n,a]),{active:s,rect:g,isOver:l?.id===r,node:S,over:l,setNodeRef:E}}function dn(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Kr(e,t){return e.reduce((n,r,o)=>{const i=t.get(r);return i&&(n[o]=i),n},Array(e.length))}function Ke(e){return e!==null&&e>=0}function Vr(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{var t;let{rects:n,activeNodeRect:r,activeIndex:o,overIndex:i,index:s}=e;const a=(t=n[o])!=null?t:r;if(!a)return null;const l=Gr(n,s,o);if(s===o){const u=n[i];return u?{x:oo&&s<=i?{x:-a.width-l,y:0,...Ve}:s=i?{x:a.width+l,y:0,...Ve}:{x:0,y:0,...Ve}};function Gr(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return!r||!o&&!i?0:n{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=dn(t,r,n),s=t[o],a=i[o];return!a||!s?null:{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}},qe={scaleX:1,scaleY:1},ho=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:s}=e;const a=(t=i[n])!=null?t:r;if(!a)return null;if(o===n){const u=i[s];return u?{x:0,y:nn&&o<=s?{x:0,y:-a.height-l,...qe}:o=s?{x:0,y:a.height+l,...qe}:{x:0,y:0,...qe}};function Jr(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?nr.map(E=>typeof E=="object"&&"id"in E?E.id:E),[r]),C=s!=null,v=s?h.indexOf(s.id):-1,p=u?h.indexOf(u.id):-1,m=c.useRef(h),y=!Vr(h,m.current),b=p!==-1&&v===-1||y,R=qr(i);Q(()=>{y&&C&&f(h)},[y,h,C,f]),c.useEffect(()=>{m.current=h},[h]);const S=c.useMemo(()=>({activeIndex:v,containerId:d,disabled:R,disableTransforms:b,items:h,overIndex:p,useDragOverlay:g,sortedRects:Kr(h,l),strategy:o}),[v,d,R.draggable,R.droppable,b,h,p,l,g,o]);return P.createElement(gn.Provider,{value:S},t)}const _r=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return dn(n,r,o).indexOf(t)},Qr=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:s,previousItems:a,previousContainerId:l,transition:u}=e;return!u||!r||a!==i&&o===s?!1:n?!0:s!==o&&t===l},Zr={duration:200,easing:"ease"},vn="transform",eo=_e.Transition.toString({property:vn,duration:0,easing:"linear"}),to={roleDescription:"sortable"};function no(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,s]=c.useState(null),a=c.useRef(n);return Q(()=>{if(!t&&n!==a.current&&r.current){const l=o.current;if(l){const u=xe(r.current,{ignoreTransform:!0}),f={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(f.x||f.y)&&s(f)}}n!==a.current&&(a.current=n)},[t,n,r,o]),c.useEffect(()=>{i&&s(null)},[i]),i}function vo(e){let{animateLayoutChanges:t=Qr,attributes:n,disabled:r,data:o,getNewIndex:i=_r,id:s,strategy:a,resizeObserverConfig:l,transition:u=Zr}=e;const{items:f,containerId:d,activeIndex:g,disabled:h,disableTransforms:C,sortedRects:v,overIndex:p,useDragOverlay:m,strategy:y}=c.useContext(gn),b=ro(r,h),R=f.indexOf(s),S=c.useMemo(()=>({sortable:{containerId:d,index:R,items:f},...o}),[d,o,R,f]),E=c.useMemo(()=>f.slice(f.indexOf(s)),[f,s]),{rect:x,node:D,isOver:A,setNodeRef:T}=Hr({id:s,data:S,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...l}}),{active:M,activatorEvent:H,activeNodeRect:K,attributes:q,setNodeRef:De,listeners:Xe,isDragging:F,over:Ye,setActivatorNodeRef:Z,transform:Ce}=Yr({id:s,data:S,attributes:{...to,...n},disabled:b.draggable}),je=Sn(T,De),z=!!M,ee=z&&!C&&Ke(g)&&Ke(p),de=!m&&F,Re=de&&ee?Ce:null,Ue=ee?Re??(a??y)({rects:v,activeNodeRect:K,activeIndex:g,overIndex:p,index:R}):null,oe=Ke(g)&&Ke(p)?i({id:s,items:f,activeIndex:g,overIndex:p}):R,te=M?.id,I=c.useRef({activeId:te,items:f,newIndex:oe,containerId:d}),Se=f!==I.current.items,G=t({active:M,containerId:d,isDragging:F,isSorting:z,id:s,index:R,items:f,newIndex:I.current.newIndex,previousItems:I.current.items,previousContainerId:I.current.containerId,transition:u,wasDragging:I.current.activeId!=null}),fe=no({disabled:!G,index:R,node:D,rect:x});return c.useEffect(()=>{z&&I.current.newIndex!==oe&&(I.current.newIndex=oe),d!==I.current.containerId&&(I.current.containerId=d),f!==I.current.items&&(I.current.items=f)},[z,oe,d,f]),c.useEffect(()=>{if(te===I.current.activeId)return;if(te!=null&&I.current.activeId==null){I.current.activeId=te;return}const he=setTimeout(()=>{I.current.activeId=te},50);return()=>clearTimeout(he)},[te]),{active:M,activeIndex:g,attributes:q,data:S,rect:x,index:R,newIndex:oe,items:f,isOver:A,isSorting:z,isDragging:F,listeners:Xe,node:D,overIndex:p,over:Ye,setNodeRef:je,setActivatorNodeRef:Z,setDroppableNodeRef:T,setDraggableNodeRef:De,transform:fe??Ue,transition:ne()};function ne(){if(fe||Se&&I.current.newIndex===R)return eo;if(!(de&&!yt(H)||!u)&&(z||G))return _e.Transition.toString({...u,property:vn})}}function ro(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}function et(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const oo=[w.Down,w.Right,w.Up,w.Left],po=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:i,over:s,scrollableAncestors:a}}=t;if(oo.includes(e.code)){if(e.preventDefault(),!n||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const g=o.get(d.id);if(g)switch(e.code){case w.Down:r.topg.top&&l.push(d);break;case w.Left:r.left>g.left&&l.push(d);break;case w.Right:r.left1&&(f=u[1].id),f!=null){const d=i.get(n.id),g=i.get(f),h=g?o.get(g.id):null,C=g?.node.current;if(C&&h&&d&&g){const p=nt(C).some((E,x)=>a[x]!==E),m=pn(d,g),y=io(d,g),b=p||!m?{x:0,y:0}:{x:y?r.width-h.width:0,y:y?r.height-h.height:0},R={x:h.left,y:h.top};return b.x&&b.y?R:ze(R,b)}}}};function pn(e,t){return!et(e)||!et(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function io(e,t){return!et(e)||!et(t)||!pn(e,t)?!1:e.data.current.sortable.indexst(e,Kt),Zt=rt();N.write=e=>st(e,Zt);var yt=rt();N.onStart=e=>st(e,yt);var es=rt();N.onFrame=e=>st(e,es);var ts=rt();N.onFinish=e=>st(e,ts);var ze=[];N.setTimeout=(e,t)=>{const s=N.now()+t,a=()=>{const c=ze.findIndex(o=>o.cancel==a);~c&&ze.splice(c,1),be-=~c?1:0},i={time:s,handler:e,cancel:a};return ze.splice(Hs(s),0,i),be+=1,Ws(),i};var Hs=e=>~(~ze.findIndex(t=>t.time>e)||~ze.length);N.cancel=e=>{yt.delete(e),es.delete(e),ts.delete(e),Kt.delete(e),Zt.delete(e)};N.sync=e=>{Lt=!0,N.batchedUpdates(e),Lt=!1};N.throttle=e=>{let t;function s(){try{e(...t)}finally{t=null}}function a(...i){t=i,N.onStart(s)}return a.handler=e,a.cancel=()=>{yt.delete(s),t=null},a};var ss=typeof window<"u"?window.requestAnimationFrame:(()=>{});N.use=e=>ss=e;N.now=typeof performance<"u"?()=>performance.now():Date.now;N.batchedUpdates=e=>e();N.catch=console.error;N.frameLoop="always";N.advance=()=>{N.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Js()};var ye=-1,be=0,Lt=!1;function st(e,t){Lt?(t.delete(e),e(0)):(t.add(e),Ws())}function Ws(){ye<0&&(ye=0,N.frameLoop!=="demand"&&ss(Ys))}function ja(){ye=-1}function Ys(){~ye&&(ss(Ys),N.batchedUpdates(Js))}function Js(){const e=ye;ye=N.now();const t=Hs(ye);if(t&&(Ks(ze.splice(0,t),s=>s.handler()),be-=t),!be){ja();return}yt.flush(),Kt.flush(e?Math.min(64,ye-e):16.667),es.flush(),Zt.flush(),ts.flush()}function rt(){let e=new Set,t=e;return{add(s){be+=t==e&&!e.has(s)?1:0,e.add(s)},delete(s){return be-=t==e&&e.has(s)?1:0,e.delete(s)},flush(s){t.size&&(e=new Set,be-=t.size,Ks(t,a=>a(s)&&e.add(a)),be+=e.size,t=e)}}}function Ks(e,t){e.forEach(s=>{try{t(s)}catch(a){N.catch(a)}})}var wa=Object.defineProperty,Na=(e,t)=>{for(var s in t)wa(e,s,{get:t[s],enumerable:!0})},ee={};Na(ee,{assign:()=>ka,colors:()=>je,createStringInterpolator:()=>as,skipAnimation:()=>er,to:()=>Zs,willAdvance:()=>ns});function Ut(){}var _a=(e,t,s)=>Object.defineProperty(e,t,{value:s,writable:!0,configurable:!0}),l={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function le(e,t){if(l.arr(e)){if(!l.arr(t)||e.length!==t.length)return!1;for(let s=0;se.forEach(t);function oe(e,t,s){if(l.arr(e)){for(let a=0;al.und(e)?[]:l.arr(e)?e:[e];function Qe(e,t){if(e.size){const s=Array.from(e);e.clear(),C(s,t)}}var Ue=(e,...t)=>Qe(e,s=>s(...t)),rs=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),as,Zs,je=null,er=!1,ns=Ut,ka=e=>{e.to&&(Zs=e.to),e.now&&(N.now=e.now),e.colors!==void 0&&(je=e.colors),e.skipAnimation!=null&&(er=e.skipAnimation),e.createStringInterpolator&&(as=e.createStringInterpolator),e.requestAnimationFrame&&N.use(e.requestAnimationFrame),e.batchedUpdates&&(N.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ns=e.willAdvance),e.frameLoop&&(N.frameLoop=e.frameLoop)},Be=new Set,H=[],Ft=[],xt=0,bt={get idle(){return!Be.size&&!H.length},start(e){xt>e.priority?(Be.add(e),N.onStart(Sa)):(tr(e),N(Qt))},advance:Qt,sort(e){if(xt)N.onFrame(()=>bt.sort(e));else{const t=H.indexOf(e);~t&&(H.splice(t,1),sr(e))}},clear(){H=[],Be.clear()}};function Sa(){Be.forEach(tr),Be.clear(),N(Qt)}function tr(e){H.includes(e)||sr(e)}function sr(e){H.splice(Pa(H,t=>t.priority>e.priority),0,e)}function Qt(e){const t=Ft;for(let s=0;s0}function Pa(e,t){const s=e.findIndex(t);return s<0?e.length:s}var Ca={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Z="[-+]?\\d*\\.?\\d+",gt=Z+"%";function jt(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Aa=new RegExp("rgb"+jt(Z,Z,Z)),Ra=new RegExp("rgba"+jt(Z,Z,Z,Z)),Ea=new RegExp("hsl"+jt(Z,gt,gt)),Ta=new RegExp("hsla"+jt(Z,gt,gt,Z)),Ia=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,za=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Fa=/^#([0-9a-fA-F]{6})$/,Va=/^#([0-9a-fA-F]{8})$/;function Da(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Fa.exec(e))?parseInt(t[1]+"ff",16)>>>0:je&&je[e]!==void 0?je[e]:(t=Aa.exec(e))?(Ie(t[1])<<24|Ie(t[2])<<16|Ie(t[3])<<8|255)>>>0:(t=Ra.exec(e))?(Ie(t[1])<<24|Ie(t[2])<<16|Ie(t[3])<<8|Cs(t[4]))>>>0:(t=Ia.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Va.exec(e))?parseInt(t[1],16)>>>0:(t=za.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ea.exec(e))?(Ss(Ps(t[1]),ht(t[2]),ht(t[3]))|255)>>>0:(t=Ta.exec(e))?(Ss(Ps(t[1]),ht(t[2]),ht(t[3]))|Cs(t[4]))>>>0:null}function Vt(e,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(t-e)*6*s:s<1/2?t:s<2/3?e+(t-e)*(2/3-s)*6:e}function Ss(e,t,s){const a=s<.5?s*(1+t):s+t-s*t,i=2*s-a,c=Vt(i,a,e+1/3),o=Vt(i,a,e),d=Vt(i,a,e-1/3);return Math.round(c*255)<<24|Math.round(o*255)<<16|Math.round(d*255)<<8}function Ie(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ps(e){return(parseFloat(e)%360+360)%360/360}function Cs(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ht(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function As(e){let t=Da(e);if(t===null)return e;t=t||0;const s=(t&4278190080)>>>24,a=(t&16711680)>>>16,i=(t&65280)>>>8,c=(t&255)/255;return`rgba(${s}, ${a}, ${i}, ${c})`}var He=(e,t,s)=>{if(l.fun(e))return e;if(l.arr(e))return He({range:e,output:t,extrapolate:s});if(l.str(e.output[0]))return as(e);const a=e,i=a.output,c=a.range||[0,1],o=a.extrapolateLeft||a.extrapolate||"extend",d=a.extrapolateRight||a.extrapolate||"extend",m=a.easing||(u=>u);return u=>{const x=qa(u,c);return $a(u,c[x],c[x+1],i[x],i[x+1],m,o,d,a.map)}};function $a(e,t,s,a,i,c,o,d,m){let u=m?m(e):e;if(us){if(d==="identity")return u;d==="clamp"&&(u=s)}return a===i?a:t===s?e<=t?a:i:(t===-1/0?u=-u:s===1/0?u=u-t:u=(u-t)/(s-t),u=c(u),a===-1/0?u=-u:i===1/0?u=u+a:u=u*(i-a)+a,u)}function qa(e,t){for(var s=1;s=e);++s);return s-1}var Ma={linear:e=>e},We=Symbol.for("FluidValue.get"),Ve=Symbol.for("FluidValue.observers"),G=e=>!!(e&&e[We]),q=e=>e&&e[We]?e[We]():e,Rs=e=>e[Ve]||null;function Oa(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Ye(e,t){const s=e[Ve];s&&s.forEach(a=>{Oa(a,t)})}var rr=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");La(this,e)}},La=(e,t)=>ar(e,We,t);function De(e,t){if(e[We]){let s=e[Ve];s||ar(e,Ve,s=new Set),s.has(t)||(s.add(t),e.observerAdded&&e.observerAdded(s.size,t))}return t}function Je(e,t){const s=e[Ve];if(s&&s.has(t)){const a=s.size-1;a?s.delete(t):e[Ve]=null,e.observerRemoved&&e.observerRemoved(a,t)}}var ar=(e,t,s)=>Object.defineProperty(e,t,{value:s,writable:!0,configurable:!0}),ft=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ua=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Es=new RegExp(`(${ft.source})(%|[a-z]+)`,"i"),Qa=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,wt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,nr=e=>{const[t,s]=Ba(e);if(!t||rs())return e;const a=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(a)return a.trim();if(s&&s.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(s);return i||e}else{if(s&&wt.test(s))return nr(s);if(s)return s}return e},Ba=e=>{const t=wt.exec(e);if(!t)return[,];const[,s,a]=t;return[s,a]},Dt,Xa=(e,t,s,a,i)=>`rgba(${Math.round(t)}, ${Math.round(s)}, ${Math.round(a)}, ${i})`,ir=e=>{Dt||(Dt=je?new RegExp(`(${Object.keys(je).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(c=>q(c).replace(wt,nr).replace(Ua,As).replace(Dt,As)),s=t.map(c=>c.match(ft).map(Number)),i=s[0].map((c,o)=>s.map(d=>{if(!(o in d))throw Error('The arity of each "output" value must be equal');return d[o]})).map(c=>He({...e,output:c}));return c=>{const o=!Es.test(t[0])&&t.find(m=>Es.test(m))?.replace(ft,"");let d=0;return t[0].replace(ft,()=>`${i[d++](c)}${o||""}`).replace(Qa,Xa)}},is="react-spring: ",cr=e=>{const t=e;let s=!1;if(typeof t!="function")throw new TypeError(`${is}once requires a function parameter`);return(...a)=>{s||(t(...a),s=!0)}},Ga=cr(console.warn);function Ha(){Ga(`${is}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Wa=cr(console.warn);function Ya(){Wa(`${is}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Nt(e){return l.str(e)&&(e[0]=="#"||/\d/.test(e)||!rs()&&wt.test(e)||e in(je||{}))}var cs=rs()?f.useEffect:f.useLayoutEffect,Ja=()=>{const e=f.useRef(!1);return cs(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function or(){const e=f.useState()[1],t=Ja();return()=>{t.current&&e(Math.random())}}var lr=e=>f.useEffect(e,Ka),Ka=[];function Ts(e){const t=f.useRef(void 0);return f.useEffect(()=>{t.current=e}),t.current}var Ke=Symbol.for("Animated:node"),Za=e=>!!e&&e[Ke]===e,ce=e=>e&&e[Ke],os=(e,t)=>_a(e,Ke,t),_t=e=>e&&e[Ke]&&e[Ke].getPayload(),dr=class{constructor(){os(this,this)}getPayload(){return this.payload||[]}},kt=class ur extends dr{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,l.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new ur(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,s){return l.num(t)&&(this.lastPosition=t,s&&(t=Math.round(t/s)*s,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,l.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},pt=class hr extends kt{constructor(t){super(0),this._string=null,this._toString=He({output:[t,t]})}static create(t){return new hr(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(l.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=He({output:[this.getValue(),t]})),this._value=0,super.reset()}},vt={dependencies:null},St=class extends dr{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return oe(this.source,(s,a)=>{Za(s)?t[a]=s.getValue(e):G(s)?t[a]=q(s):e||(t[a]=s)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&C(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return oe(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){vt.dependencies&&G(e)&&vt.dependencies.add(e);const t=_t(e);t&&C(t,s=>this.add(s))}},en=class fr extends St{constructor(t){super(t)}static create(t){return new fr(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const s=this.getPayload();return t.length==s.length?s.map((a,i)=>a.setValue(t[i])).some(Boolean):(super.setValue(t.map(tn)),!0)}};function tn(e){return(Nt(e)?pt:kt).create(e)}function Bt(e){const t=ce(e);return t?t.constructor:l.arr(e)?en:Nt(e)?pt:kt}var Is=(e,t)=>{const s=!l.fun(e)||e.prototype&&e.prototype.isReactComponent;return f.forwardRef((a,i)=>{const c=f.useRef(null),o=s&&f.useCallback(w=>{c.current=an(i,w)},[i]),[d,m]=rn(a,t),u=or(),x=()=>{const w=c.current;if(s&&!w)return;(w?t.applyAnimatedValues(w,d.getValue(!0)):!1)===!1&&u()},p=new sn(x,m),y=f.useRef(void 0);cs(()=>(y.current=p,C(m,w=>De(w,p)),()=>{y.current&&(C(y.current.deps,w=>Je(w,y.current)),N.cancel(y.current.update))})),f.useEffect(x,[]),lr(()=>()=>{const w=y.current;C(w.deps,b=>Je(b,w))});const g=t.getComponentProps(d.getValue());return f.createElement(e,{...g,ref:o})})},sn=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&N.write(this.update)}};function rn(e,t){const s=new Set;return vt.dependencies=s,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new St(e),vt.dependencies=null,[e,s]}function an(e,t){return e&&(l.fun(e)?e(t):e.current=t),t}var zs=Symbol.for("AnimatedComponent"),nn=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:s=i=>new St(i),getComponentProps:a=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:s,getComponentProps:a},c=o=>{const d=Fs(o)||"Anonymous";return l.str(o)?o=c[o]||(c[o]=Is(o,i)):o=o[zs]||(o[zs]=Is(o,i)),o.displayName=`Animated(${d})`,o};return oe(e,(o,d)=>{l.arr(e)&&(d=Fs(o)),c[d]=c(o)}),{animated:c}},Fs=e=>l.str(e)?e:e&&l.str(e.displayName)?e.displayName:l.fun(e)&&e.name||null;function Se(e,...t){return l.fun(e)?e(...t):e}var Xe=(e,t)=>e===!0||!!(t&&e&&(l.fun(e)?e(t):O(e).includes(t))),mr=(e,t)=>l.obj(e)?t&&e[t]:e,xr=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,cn=e=>e,ls=(e,t=cn)=>{let s=on;e.default&&e.default!==!0&&(e=e.default,s=Object.keys(e));const a={};for(const i of s){const c=t(e[i],i);l.und(c)||(a[i]=c)}return a},on=["config","onProps","onStart","onChange","onPause","onResume","onRest"],ln={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function dn(e){const t={};let s=0;if(oe(e,(a,i)=>{ln[i]||(t[i]=a,s++)}),s)return t}function gr(e){const t=dn(e);if(t){const s={to:t};return oe(e,(a,i)=>i in t||(s[i]=a)),s}return{...e}}function Ze(e){return e=q(e),l.arr(e)?e.map(Ze):Nt(e)?ee.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function un(e){for(const t in e)return!0;return!1}function Xt(e){return l.fun(e)||l.arr(e)&&l.obj(e[0])}function hn(e,t){e.ref?.delete(e),t?.delete(e)}function fn(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var mn={default:{tension:170,friction:26}},Gt={...mn.default,mass:1,damping:1,easing:Ma.linear,clamp:!1},xn=class{constructor(){this.velocity=0,Object.assign(this,Gt)}};function gn(e,t,s){s&&(s={...s},Vs(s,t),t={...s,...t}),Vs(e,t),Object.assign(e,t);for(const o in Gt)e[o]==null&&(e[o]=Gt[o]);let{frequency:a,damping:i}=e;const{mass:c}=e;return l.und(a)||(a<.01&&(a=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/a,2)*c,e.friction=4*Math.PI*i*c/a),e}function Vs(e,t){if(!l.und(t.decay))e.duration=void 0;else{const s=!l.und(t.tension)||!l.und(t.friction);(s||!l.und(t.frequency)||!l.und(t.damping)||!l.und(t.mass))&&(e.duration=void 0,e.decay=void 0),s&&(e.frequency=void 0)}}var Ds=[],pn=class{constructor(){this.changed=!1,this.values=Ds,this.toValues=null,this.fromValues=Ds,this.config=new xn,this.immediate=!1}};function pr(e,{key:t,props:s,defaultProps:a,state:i,actions:c}){return new Promise((o,d)=>{let m,u,x=Xe(s.cancel??a?.cancel,t);if(x)g();else{l.und(s.pause)||(i.paused=Xe(s.pause,t));let w=a?.pause;w!==!0&&(w=i.paused||Xe(w,t)),m=Se(s.delay||0,t),w?(i.resumeQueue.add(y),c.pause()):(c.resume(),y())}function p(){i.resumeQueue.add(y),i.timeouts.delete(u),u.cancel(),m=u.time-N.now()}function y(){m>0&&!ee.skipAnimation?(i.delayed=!0,u=N.setTimeout(g,m),i.pauseQueue.add(p),i.timeouts.add(u)):g()}function g(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(p),i.timeouts.delete(u),e<=(i.cancelId||0)&&(x=!0);try{c.start({...s,callId:e,cancel:x},o)}catch(w){d(w)}}})}var ds=(e,t)=>t.length==1?t[0]:t.some(s=>s.cancelled)?Fe(e.get()):t.every(s=>s.noop)?vr(e.get()):K(e.get(),t.every(s=>s.finished)),vr=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),K=(e,t,s=!1)=>({value:e,finished:t,cancelled:s}),Fe=e=>({value:e,cancelled:!0,finished:!1});function yr(e,t,s,a){const{callId:i,parentId:c,onRest:o}=t,{asyncTo:d,promise:m}=s;return!c&&e===d&&!t.reset?m:s.promise=(async()=>{s.asyncId=i,s.asyncTo=e;const u=ls(t,(k,v)=>v==="onRest"?void 0:k);let x,p;const y=new Promise((k,v)=>(x=k,p=v)),g=k=>{const v=i<=(s.cancelId||0)&&Fe(a)||i!==s.asyncId&&K(a,!1);if(v)throw k.result=v,p(k),k},w=(k,v)=>{const S=new $s,j=new qs;return(async()=>{if(ee.skipAnimation)throw et(s),j.result=K(a,!1),p(j),j;g(S);const R=l.obj(k)?{...k}:{...v,to:k};R.parentId=i,oe(u,(E,V)=>{l.und(R[V])&&(R[V]=E)});const A=await a.start(R);return g(S),s.paused&&await new Promise(E=>{s.resumeQueue.add(E)}),A})()};let b;if(ee.skipAnimation)return et(s),K(a,!1);try{let k;l.arr(e)?k=(async v=>{for(const S of v)await w(S)})(e):k=Promise.resolve(e(w,a.stop.bind(a))),await Promise.all([k.then(x),y]),b=K(a.get(),!0,!1)}catch(k){if(k instanceof $s)b=k.result;else if(k instanceof qs)b=k.result;else throw k}finally{i==s.asyncId&&(s.asyncId=c,s.asyncTo=c?d:void 0,s.promise=c?m:void 0)}return l.fun(o)&&N.batchedUpdates(()=>{o(b,a,a.item)}),b})()}function et(e,t){Qe(e.timeouts,s=>s.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var $s=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},qs=class extends Error{constructor(){super("SkipAnimationSignal")}},Ht=e=>e instanceof us,vn=1,us=class extends rr{constructor(){super(...arguments),this.id=vn++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ce(this);return e&&e.getValue()}to(...e){return ee.to(this,e)}interpolate(...e){return Ha(),ee.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ye(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||bt.sort(this),Ye(this,{type:"priority",parent:this,priority:e})}},Pe=Symbol.for("SpringPhase"),br=1,Wt=2,Yt=4,$t=e=>(e[Pe]&br)>0,ve=e=>(e[Pe]&Wt)>0,Me=e=>(e[Pe]&Yt)>0,Ms=(e,t)=>t?e[Pe]|=Wt|br:e[Pe]&=~Wt,Os=(e,t)=>t?e[Pe]|=Yt:e[Pe]&=~Yt,yn=class extends us{constructor(e,t){if(super(),this.animation=new pn,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!l.und(e)||!l.und(t)){const s=l.obj(e)?{...e}:{...t,from:e};l.und(s.default)&&(s.default=!0),this.start(s)}}get idle(){return!(ve(this)||this._state.asyncTo)||Me(this)}get goal(){return q(this.animation.to)}get velocity(){const e=ce(this);return e instanceof kt?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return $t(this)}get isAnimating(){return ve(this)}get isPaused(){return Me(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,s=!1;const a=this.animation;let{toValues:i}=a;const{config:c}=a,o=_t(a.to);!o&&G(a.to)&&(i=O(q(a.to))),a.values.forEach((u,x)=>{if(u.done)return;const p=u.constructor==pt?1:o?o[x].lastPosition:i[x];let y=a.immediate,g=p;if(!y){if(g=u.lastPosition,c.tension<=0){u.done=!0;return}let w=u.elapsedTime+=e;const b=a.fromValues[x],k=u.v0!=null?u.v0:u.v0=l.arr(c.velocity)?c.velocity[x]:c.velocity;let v;const S=c.precision||(b==p?.005:Math.min(1,Math.abs(p-b)*.001));if(l.und(c.duration))if(c.decay){const j=c.decay===!0?.998:c.decay,R=Math.exp(-(1-j)*w);g=b+k/(1-j)*(1-R),y=Math.abs(u.lastPosition-g)<=S,v=k*R}else{v=u.lastVelocity==null?k:u.lastVelocity;const j=c.restVelocity||S/10,R=c.clamp?0:c.bounce,A=!l.und(R),E=b==p?u.v0>0:bj,!(!V&&(y=Math.abs(p-g)<=S,y)));++L){A&&(F=g==p||g>p==E,F&&(v=-v*R,g=p));const ue=-c.tension*1e-6*(g-p),W=-c.friction*.001*v,Ce=(ue+W)/c.mass;v=v+Ce*T,g=g+v*T}}else{let j=1;c.duration>0&&(this._memoizedDuration!==c.duration&&(this._memoizedDuration=c.duration,u.durationProgress>0&&(u.elapsedTime=c.duration*u.durationProgress,w=u.elapsedTime+=e)),j=(c.progress||0)+w/this._memoizedDuration,j=j>1?1:j<0?0:j,u.durationProgress=j),g=b+c.easing(j)*(p-b),v=(g-u.lastPosition)/e,y=j==1}u.lastVelocity=v,Number.isNaN(g)&&(console.warn("Got NaN while animating:",this),y=!0)}o&&!o[x].done&&(y=!1),y?u.done=!0:t=!1,u.setValue(g,c.round)&&(s=!0)});const d=ce(this),m=d.getValue();if(t){const u=q(a.to);(m!==u||s)&&!c.decay?(d.setValue(u),this._onChange(u)):s&&c.decay&&this._onChange(m),this._stop()}else s&&this._onChange(m)}set(e){return N.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ve(this)){const{to:e,config:t}=this.animation;N.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let s;return l.und(e)?(s=this.queue||[],this.queue=[]):s=[l.obj(e)?e:{...t,to:e}],Promise.all(s.map(a=>this._update(a))).then(a=>ds(this,a))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),et(this._state,e&&this._lastCallId),N.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:s,from:a}=e;s=l.obj(s)?s[t]:s,(s==null||Xt(s))&&(s=void 0),a=l.obj(a)?a[t]:a,a==null&&(a=void 0);const i={to:s,from:a};return $t(this)||(e.reverse&&([s,a]=[a,s]),a=q(a),l.und(a)?ce(this)||this._set(s):this._set(a)),i}_update({...e},t){const{key:s,defaultProps:a}=this;e.default&&Object.assign(a,ls(e,(o,d)=>/^on/.test(d)?mr(o,s):o)),Us(this,e,"onProps"),Le(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const c=this._state;return pr(++this._lastCallId,{key:s,props:e,defaultProps:a,state:c,actions:{pause:()=>{Me(this)||(Os(this,!0),Ue(c.pauseQueue),Le(this,"onPause",K(this,Oe(this,this.animation.to)),this))},resume:()=>{Me(this)&&(Os(this,!1),ve(this)&&this._resume(),Ue(c.resumeQueue),Le(this,"onResume",K(this,Oe(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const d=jr(e);if(d)return this._update(d,!0)}return o})}_merge(e,t,s){if(t.cancel)return this.stop(!0),s(Fe(this));const a=!l.und(e.to),i=!l.und(e.from);if(a||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return s(Fe(this));const{key:c,defaultProps:o,animation:d}=this,{to:m,from:u}=d;let{to:x=m,from:p=u}=e;i&&!a&&(!t.default||l.und(x))&&(x=p),t.reverse&&([x,p]=[p,x]);const y=!le(p,u);y&&(d.from=p),p=q(p);const g=!le(x,m);g&&this._focus(x);const w=Xt(t.to),{config:b}=d,{decay:k,velocity:v}=b;(a||i)&&(b.velocity=0),t.config&&!w&&gn(b,Se(t.config,c),t.config!==o.config?Se(o.config,c):void 0);let S=ce(this);if(!S||l.und(x))return s(K(this,!0));const j=l.und(t.reset)?i&&!t.default:!l.und(p)&&Xe(t.reset,c),R=j?p:this.get(),A=Ze(x),E=l.num(A)||l.arr(A)||Nt(A),V=!w&&(!E||Xe(o.immediate||t.immediate,c));if(g){const L=Bt(x);if(L!==S.constructor)if(V)S=this._set(A);else throw Error(`Cannot animate between ${S.constructor.name} and ${L.name}, as the "to" prop suggests`)}const F=S.constructor;let T=G(x),de=!1;if(!T){const L=j||!$t(this)&&y;(g||L)&&(de=le(Ze(R),A),T=!de),(!le(d.immediate,V)&&!V||!le(b.decay,k)||!le(b.velocity,v))&&(T=!0)}if(de&&ve(this)&&(d.changed&&!j?T=!0:T||this._stop(m)),!w&&((T||G(m))&&(d.values=S.getPayload(),d.toValues=G(x)?null:F==pt?[1]:O(A)),d.immediate!=V&&(d.immediate=V,!V&&!j&&this._set(m)),T)){const{onRest:L}=d;C(jn,W=>Us(this,t,W));const ue=K(this,Oe(this,m));Ue(this._pendingCalls,ue),this._pendingCalls.add(s),d.changed&&N.batchedUpdates(()=>{d.changed=!j,L?.(ue,this),j?Se(o.onRest,ue):d.onStart?.(ue,this)})}j&&this._set(R),w?s(yr(t.to,t,this._state,this)):T?this._start():ve(this)&&!g?this._pendingCalls.add(s):s(vr(R))}_focus(e){const t=this.animation;e!==t.to&&(Rs(this)&&this._detach(),t.to=e,Rs(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;G(t)&&(De(t,this),Ht(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;G(e)&&Je(e,this)}_set(e,t=!0){const s=q(e);if(!l.und(s)){const a=ce(this);if(!a||!le(s,a.getValue())){const i=Bt(s);!a||a.constructor!=i?os(this,i.create(s)):a.setValue(s),a&&N.batchedUpdates(()=>{this._onChange(s,t)})}}return ce(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Le(this,"onStart",K(this,Oe(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Se(this.animation.onChange,e,this)),Se(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ce(this).reset(q(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),ve(this)||(Ms(this,!0),Me(this)||this._resume())}_resume(){ee.skipAnimation?this.finish():bt.start(this)}_stop(e,t){if(ve(this)){Ms(this,!1);const s=this.animation;C(s.values,i=>{i.done=!0}),s.toValues&&(s.onChange=s.onPause=s.onResume=void 0),Ye(this,{type:"idle",parent:this});const a=t?Fe(this.get()):K(this.get(),Oe(this,e??s.to));Ue(this._pendingCalls,a),s.changed&&(s.changed=!1,Le(this,"onRest",a,this))}}};function Oe(e,t){const s=Ze(t),a=Ze(e.get());return le(a,s)}function jr(e,t=e.loop,s=e.to){const a=Se(t);if(a){const i=a!==!0&&gr(a),c=(i||e).reverse,o=!i||i.reset;return tt({...e,loop:t,default:!1,pause:void 0,to:!c||Xt(s)?s:void 0,from:o?e.from:void 0,reset:o,...i})}}function tt(e){const{to:t,from:s}=e=gr(e),a=new Set;return l.obj(t)&&Ls(t,a),l.obj(s)&&Ls(s,a),e.keys=a.size?Array.from(a):null,e}function bn(e){const t=tt(e);return l.und(t.default)&&(t.default=ls(t)),t}function Ls(e,t){oe(e,(s,a)=>s!=null&&t.add(a))}var jn=["onStart","onRest","onChange","onPause","onResume"];function Us(e,t,s){e.animation[s]=t[s]!==xr(t,s)?mr(t[s],e.key):void 0}function Le(e,t,...s){e.animation[t]?.(...s),e.defaultProps[t]?.(...s)}var wn=["onStart","onChange","onRest"],Nn=1,_n=class{constructor(e,t){this.id=Nn++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,s)=>e[s]=t.get()),e}set(e){for(const t in e){const s=e[t];l.und(s)||this.springs[t].set(s)}}update(e){return e&&this.queue.push(tt(e)),this}start(e){let{queue:t}=this;return e?t=O(e).map(tt):this.queue=[],this._flush?this._flush(this,t):(Sr(this,t),Jt(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const s=this.springs;C(O(t),a=>s[a].stop(!!e))}else et(this._state,this._lastAsyncId),this.each(s=>s.stop(!!e));return this}pause(e){if(l.und(e))this.start({pause:!0});else{const t=this.springs;C(O(e),s=>t[s].pause())}return this}resume(e){if(l.und(e))this.start({pause:!1});else{const t=this.springs;C(O(e),s=>t[s].resume())}return this}each(e){oe(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:s}=this._events,a=this._active.size>0,i=this._changed.size>0;(a&&!this._started||i&&!this._started)&&(this._started=!0,Qe(e,([d,m])=>{m.value=this.get(),d(m,this,this._item)}));const c=!a&&this._started,o=i||c&&s.size?this.get():null;i&&t.size&&Qe(t,([d,m])=>{m.value=o,d(m,this,this._item)}),c&&(this._started=!1,Qe(s,([d,m])=>{m.value=o,d(m,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;N.onFrame(this._onFrame)}};function Jt(e,t){return Promise.all(t.map(s=>wr(e,s))).then(s=>ds(e,s))}async function wr(e,t,s){const{keys:a,to:i,from:c,loop:o,onRest:d,onResolve:m}=t,u=l.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),c===!1&&(t.from=null);const x=l.arr(i)||l.fun(i)?i:void 0;x?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):C(wn,b=>{const k=t[b];if(l.fun(k)){const v=e._events[b];t[b]=({finished:S,cancelled:j})=>{const R=v.get(k);R?(S||(R.finished=!1),j&&(R.cancelled=!0)):v.set(k,{value:null,finished:S||!1,cancelled:j||!1})},u&&(u[b]=t[b])}});const p=e._state;t.pause===!p.paused?(p.paused=t.pause,Ue(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);const y=(a||Object.keys(e.springs)).map(b=>e.springs[b].start(t)),g=t.cancel===!0||xr(t,"cancel")===!0;(x||g&&p.asyncId)&&y.push(pr(++e._lastAsyncId,{props:t,state:p,actions:{pause:Ut,resume:Ut,start(b,k){g?(et(p,e._lastAsyncId),k(Fe(e))):(b.onRest=d,k(yr(x,b,p,e)))}}})),p.paused&&await new Promise(b=>{p.resumeQueue.add(b)});const w=ds(e,await Promise.all(y));if(o&&w.finished&&!(s&&w.noop)){const b=jr(t,o,i);if(b)return Sr(e,[b]),wr(e,b,!0)}return m&&N.batchedUpdates(()=>m(w,e,e.item)),w}function Qs(e,t){const s={...e.springs};return t&&C(O(t),a=>{l.und(a.keys)&&(a=tt(a)),l.obj(a.to)||(a={...a,to:void 0}),kr(s,a,i=>_r(i))}),Nr(e,s),s}function Nr(e,t){oe(t,(s,a)=>{e.springs[a]||(e.springs[a]=s,De(s,e))})}function _r(e,t){const s=new yn;return s.key=e,t&&De(s,t),s}function kr(e,t,s){t.keys&&C(t.keys,a=>{(e[a]||(e[a]=s(a)))._prepareNode(t)})}function Sr(e,t){C(t,s=>{kr(e.springs,s,a=>_r(a,e))})}var kn=f.createContext({pause:!1,immediate:!1}),Sn=()=>{const e=[],t=function(a){Ya();const i=[];return C(e,(c,o)=>{if(l.und(a))i.push(c.start());else{const d=s(a,c,o);d&&i.push(c.start(d))}}),i};t.current=e,t.add=function(a){e.includes(a)||e.push(a)},t.delete=function(a){const i=e.indexOf(a);~i&&e.splice(i,1)},t.pause=function(){return C(e,a=>a.pause(...arguments)),this},t.resume=function(){return C(e,a=>a.resume(...arguments)),this},t.set=function(a){C(e,(i,c)=>{const o=l.fun(a)?a(c,i):a;o&&i.set(o)})},t.start=function(a){const i=[];return C(e,(c,o)=>{if(l.und(a))i.push(c.start());else{const d=this._getProps(a,c,o);d&&i.push(c.start(d))}}),i},t.stop=function(){return C(e,a=>a.stop(...arguments)),this},t.update=function(a){return C(e,(i,c)=>i.update(this._getProps(a,i,c))),this};const s=function(a,i,c){return l.fun(a)?a(c,i):a};return t._getProps=s,t};function Pn(e,t,s){const a=l.fun(t)&&t;a&&!s&&(s=[]);const i=f.useMemo(()=>a||arguments.length==3?Sn():void 0,[]),c=f.useRef(0),o=or(),d=f.useMemo(()=>({ctrls:[],queue:[],flush(v,S){const j=Qs(v,S);return c.current>0&&!d.queue.length&&!Object.keys(j).some(A=>!v.springs[A])?Jt(v,S):new Promise(A=>{Nr(v,j),d.queue.push(()=>{A(Jt(v,S))}),o()})}}),[]),m=f.useRef([...d.ctrls]),u=f.useRef([]),x=Ts(e)||0;f.useMemo(()=>{C(m.current.slice(e,x),v=>{hn(v,i),v.stop(!0)}),m.current.length=e,p(x,e)},[e]),f.useMemo(()=>{p(0,Math.min(x,e))},s);function p(v,S){for(let j=v;jQs(v,u.current[S])),g=f.useContext(kn),w=Ts(g),b=g!==w&&un(g);cs(()=>{c.current++,d.ctrls=m.current;const{queue:v}=d;v.length&&(d.queue=[],C(v,S=>S())),C(m.current,(S,j)=>{i?.add(S),b&&S.start({default:g});const R=u.current[j];R&&(fn(S,R.ref),S.ref?S.queue.push(R):S.start(R))})}),lr(()=>()=>{C(d.ctrls,v=>v.stop(!0))});const k=y.map(v=>({...v}));return i?[k,i]:k}function Cn(e,t){const s=l.fun(e),[[a],i]=Pn(1,s?e:[e],s?[]:t);return s||arguments.length==2?[a,i]:a}var An=class extends us{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=He(...t);const s=this._get(),a=Bt(s);os(this,a.create(s))}advance(e){const t=this._get(),s=this.get();le(t,s)||(ce(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Bs(this._active)&&qt(this)}_get(){const e=l.arr(this.source)?this.source.map(q):O(q(this.source));return this.calc(...e)}_start(){this.idle&&!Bs(this._active)&&(this.idle=!1,C(_t(this),e=>{e.done=!1}),ee.skipAnimation?(N.batchedUpdates(()=>this.advance()),qt(this)):bt.start(this))}_attach(){let e=1;C(O(this.source),t=>{G(t)&&De(t,this),Ht(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){C(O(this.source),e=>{G(e)&&Je(e,this)}),this._active.clear(),qt(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=O(this.source).reduce((t,s)=>Math.max(t,(Ht(s)?s.priority:0)+1),0))}};function Rn(e){return e.idle!==!1}function Bs(e){return!e.size||Array.from(e).every(Rn)}function qt(e){e.idle||(e.idle=!0,C(_t(e),t=>{t.done=!0}),Ye(e,{type:"idle",parent:e}))}ee.assign({createStringInterpolator:ir,to:(e,t)=>new An(e,t)});var Pr=/^--/;function En(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Pr.test(e)&&!(Ge.hasOwnProperty(e)&&Ge[e])?t+"px":(""+t).trim()}var Xs={};function Tn(e,t){if(!e.nodeType||!e.setAttribute)return!1;const s=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:a,style:i,children:c,scrollTop:o,scrollLeft:d,viewBox:m,...u}=t,x=Object.values(u),p=Object.keys(u).map(y=>s||e.hasAttribute(y)?y:Xs[y]||(Xs[y]=y.replace(/([A-Z])/g,g=>"-"+g.toLowerCase())));c!==void 0&&(e.textContent=c);for(const y in i)if(i.hasOwnProperty(y)){const g=En(y,i[y]);Pr.test(y)?e.style.setProperty(y,g):e.style[y]=g}p.forEach((y,g)=>{e.setAttribute(y,x[g])}),a!==void 0&&(e.className=a),o!==void 0&&(e.scrollTop=o),d!==void 0&&(e.scrollLeft=d),m!==void 0&&e.setAttribute("viewBox",m)}var Ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},In=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),zn=["Webkit","Ms","Moz","O"];Ge=Object.keys(Ge).reduce((e,t)=>(zn.forEach(s=>e[In(s,t)]=e[t]),e),Ge);var Fn=/^(matrix|translate|scale|rotate|skew)/,Vn=/^(translate)/,Dn=/^(rotate|skew)/,Mt=(e,t)=>l.num(e)&&e!==0?e+t:e,mt=(e,t)=>l.arr(e)?e.every(s=>mt(s,t)):l.num(e)?e===t:parseFloat(e)===t,$n=class extends St{constructor({x:e,y:t,z:s,...a}){const i=[],c=[];(e||t||s)&&(i.push([e||0,t||0,s||0]),c.push(o=>[`translate3d(${o.map(d=>Mt(d,"px")).join(",")})`,mt(o,0)])),oe(a,(o,d)=>{if(d==="transform")i.push([o||""]),c.push(m=>[m,m===""]);else if(Fn.test(d)){if(delete a[d],l.und(o))return;const m=Vn.test(d)?"px":Dn.test(d)?"deg":"";i.push(O(o)),c.push(d==="rotate3d"?([u,x,p,y])=>[`rotate3d(${u},${x},${p},${Mt(y,m)})`,mt(y,0)]:u=>[`${d}(${u.map(x=>Mt(x,m)).join(",")})`,mt(u,d.startsWith("scale")?1:0)])}}),i.length&&(a.transform=new qn(i,c)),super(a)}},qn=class extends rr{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return C(this.inputs,(s,a)=>{const i=q(s[0]),[c,o]=this.transforms[a](l.arr(i)?i:s.map(q));e+=" "+c,t=t&&o}),t?"none":e}observerAdded(e){e==1&&C(this.inputs,t=>C(t,s=>G(s)&&De(s,this)))}observerRemoved(e){e==0&&C(this.inputs,t=>C(t,s=>G(s)&&Je(s,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Ye(this,e)}},Mn=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];ee.assign({batchedUpdates:Jr.unstable_batchedUpdates,createStringInterpolator:ir,colors:Ca});var On=nn(Mn,{applyAnimatedValues:Tn,createAnimatedStyle:e=>new $n(e),getComponentProps:({scrollTop:e,scrollLeft:t,...s})=>s}),Ln=On.animated;const se="/api/webui/expression";async function Un(){const e=await te(`${se}/chats`,{});if(!e.ok)try{const t=await e.json();return{success:!1,error:t.detail||t.message||"获取聊天列表失败"}}catch{return{success:!1,error:e.statusText||"获取聊天列表失败"}}try{const t=await e.json();return t.success?{success:!0,data:t.data}:{success:!1,error:"获取聊天列表失败"}}catch{return{success:!1,error:"无法解析聊天列表响应"}}}async function Zn(e){const t=new URLSearchParams;e.page&&t.append("page",e.page.toString()),e.page_size&&t.append("page_size",e.page_size.toString()),e.search&&t.append("search",e.search),e.chat_id&&t.append("chat_id",e.chat_id);const s=await te(`${se}/list?${t}`,{});if(!s.ok)try{const a=await s.json();return{success:!1,error:a.detail||a.message||"获取表达方式列表失败"}}catch{return{success:!1,error:s.statusText||"获取表达方式列表失败"}}try{const a=await s.json();return a.success?{success:!0,data:a}:{success:!1,error:"获取表达方式列表失败"}}catch{return{success:!1,error:"无法解析表达方式列表响应"}}}async function ei(e){const t=await te(`${se}/${e}`,{});if(!t.ok)try{const s=await t.json();return{success:!1,error:s.detail||s.message||"获取表达方式详情失败"}}catch{return{success:!1,error:t.statusText||"获取表达方式详情失败"}}try{const s=await t.json();return s.success?{success:!0,data:s.data}:{success:!1,error:"获取表达方式详情失败"}}catch{return{success:!1,error:"无法解析表达方式详情响应"}}}async function ti(e){const t=await te(`${se}/`,{method:"POST",body:JSON.stringify(e)});if(!t.ok)try{const s=await t.json();return{success:!1,error:s.detail||s.message||"创建表达方式失败"}}catch{return{success:!1,error:t.statusText||"创建表达方式失败"}}try{const s=await t.json();return s.success?{success:!0,data:s.data}:{success:!1,error:s.message||"创建表达方式失败"}}catch{return{success:!1,error:"无法解析创建表达方式响应"}}}async function si(e,t){const s=await te(`${se}/${e}`,{method:"PATCH",body:JSON.stringify(t)});if(!s.ok)try{const a=await s.json();return{success:!1,error:a.detail||a.message||"更新表达方式失败"}}catch{return{success:!1,error:s.statusText||"更新表达方式失败"}}try{const a=await s.json();return a.success?{success:!0,data:a.data||{}}:{success:!1,error:a.message||"更新表达方式失败"}}catch{return{success:!1,error:"无法解析更新表达方式响应"}}}async function ri(e){const t=await te(`${se}/${e}`,{method:"DELETE"});if(!t.ok)try{const s=await t.json();return{success:!1,error:s.detail||s.message||"删除表达方式失败"}}catch{return{success:!1,error:t.statusText||"删除表达方式失败"}}try{const s=await t.json();return s.success?{success:!0,data:{}}:{success:!1,error:s.message||"删除表达方式失败"}}catch{return{success:!1,error:"无法解析删除表达方式响应"}}}async function ai(e){const t=await te(`${se}/batch/delete`,{method:"POST",body:JSON.stringify({ids:e})});if(!t.ok)try{const s=await t.json();return{success:!1,error:s.detail||s.message||"批量删除表达方式失败"}}catch{return{success:!1,error:t.statusText||"批量删除表达方式失败"}}try{const s=await t.json();return s.success?{success:!0,data:{}}:{success:!1,error:s.message||"批量删除表达方式失败"}}catch{return{success:!1,error:"无法解析批量删除表达方式响应"}}}async function ni(){const e=await te(`${se}/stats/summary`,{});if(!e.ok)try{const t=await e.json();return{success:!1,error:t.detail||t.message||"获取统计数据失败"}}catch{return{success:!1,error:e.statusText||"获取统计数据失败"}}try{const t=await e.json();return t.success?{success:!0,data:t.data}:{success:!1,error:"获取统计数据失败"}}catch{return{success:!1,error:"无法解析统计数据响应"}}}async function Qn(){const e=await te(`${se}/review/stats`);if(!e.ok)try{const t=await e.json();return{success:!1,error:t.detail||t.message||"获取审核统计失败"}}catch{return{success:!1,error:e.statusText||"获取审核统计失败"}}try{return{success:!0,data:await e.json()}}catch{return{success:!1,error:"无法解析审核统计响应"}}}async function Gs(e){const t=new URLSearchParams;e.page&&t.append("page",e.page.toString()),e.page_size&&t.append("page_size",e.page_size.toString()),e.filter_type&&t.append("filter_type",e.filter_type),e.order&&t.append("order",e.order),e.search&&t.append("search",e.search),e.chat_id&&t.append("chat_id",e.chat_id),e.exclude_ids?.forEach(a=>t.append("exclude_ids",a.toString()));const s=await te(`${se}/review/list?${t}`);if(!s.ok)try{const a=await s.json();return{success:!1,error:a.detail||a.message||"获取审核列表失败"}}catch{return{success:!1,error:s.statusText||"获取审核列表失败"}}try{const a=await s.json();return a.success?{success:!0,data:a}:{success:!1,error:"获取审核列表失败"}}catch{return{success:!1,error:"无法解析审核列表响应"}}}async function Ot(e){const t=await te(`${se}/review/batch`,{method:"POST",body:JSON.stringify({items:e})});if(!t.ok)try{const s=await t.json();return{success:!1,error:s.detail||s.message||"批量审核失败"}}catch{return{success:!1,error:t.statusText||"批量审核失败"}}try{const s=await t.json();return s.success?{success:!0,data:s}:{success:!1,error:"批量审核失败"}}catch{return{success:!1,error:"无法解析批量审核响应"}}}const Bn=Ln("div");function ii({open:e,onOpenChange:t}){const[s,a]=f.useState("list"),[i,c]=f.useState(null),[o,d]=f.useState([]),[m,u]=f.useState("unchecked"),[x,p]=f.useState([]),y=f.useRef([]),[g,w]=f.useState(0),[b,k]=f.useState(!1),[v,S]=f.useState(0),[j,R]=f.useState(1),A=f.useRef(null),E=f.useRef(!1),[V,F]=Cn(()=>({x:0,opacity:1,rotate:0,config:{tension:300,friction:30}})),T=f.useRef(0),[de,L]=f.useState(null),ue=f.useRef(null),W=f.useRef(null),Ce=f.useRef(!1);f.useEffect(()=>{y.current=x},[x]);const[U,at]=f.useState(!1),[nt,hs]=f.useState(!1),[fs,Cr]=f.useState(0),[re,we]=f.useState(1),[it,Ar]=f.useState(20),[ms,xs]=f.useState(""),[Q,Rr]=f.useState("unchecked"),[Pt,Er]=f.useState(""),[gs,Tr]=f.useState(""),[D,Ne]=f.useState(new Set),[ae,ps]=f.useState(new Set),[Ir,zr]=f.useState(new Map),{toast:z}=Kr(),Y=f.useCallback(async()=>{try{hs(!0);const n=await Qn();n.success?c(n.data):z({title:"错误",description:n.error,variant:"destructive"})}catch(n){console.error("加载统计失败:",n)}finally{hs(!1)}},[z]),$e=f.useCallback(async()=>{try{at(!0);const n=await Gs({page:re,page_size:it,filter_type:Q,search:Pt||void 0});n.success?(d(n.data.data),Cr(n.data.total)):z({title:"加载失败",description:n.error,variant:"destructive"})}catch(n){z({title:"加载失败",description:n instanceof Error?n.message:"无法加载列表",variant:"destructive"})}finally{at(!1)}},[re,it,Q,Pt,z]),vs=f.useCallback(async()=>{try{const n=await Un();if(n.success){const h=new Map;n.data.forEach(_=>{h.set(_.chat_id,_.chat_name)}),zr(h)}}catch(n){console.error("加载聚天名称失败:",n)}},[]),he=f.useCallback(async(n=!0,h=!1)=>{try{k(!0);const _=h?j+1:j,P=await Gs({page:m==="unchecked"?1:_,page_size:20,filter_type:m,order:m==="unchecked"?"random":"latest",exclude_ids:m==="unchecked"&&h?y.current.map($=>$.id):void 0});P.success?(h?(p($=>[...$,...P.data.data]),R(_)):p(P.data.data),S(P.data.total),n&&w(0)):z({title:"加载失败",description:P.error,variant:"destructive"})}catch(_){z({title:"加载失败",description:_ instanceof Error?_.message:"无法加载列表",variant:"destructive"})}finally{k(!1)}},[j,m,z]);f.useEffect(()=>{s==="quick"&&(R(1),w(0))},[m,s]),f.useEffect(()=>{e&&s==="quick"&&(he(),Y())},[e,s,j,m,he,Y]);const ne=f.useCallback(n=>n?m==="unchecked"?{left:!0,right:!0}:m==="passed"?{left:!0,right:!1}:m==="rejected"?{left:!1,right:!0}:n.checked?n.rejected?{left:!1,right:!0}:{left:!0,right:!1}:{left:!0,right:!0}:{left:!1,right:!1},[m]),_e=f.useCallback(async n=>{const h=x[g];if(!h||E.current)return;const _=ne(h);if(!(n&&!_.left||!n&&!_.right)){E.current=!0,A.current=n?"left":"right",F.start({x:n?-400:400,rotate:n?-20:20,opacity:0});try{const P=await Ot([{id:h.id,rejected:n,require_unchecked:m==="unchecked"}]);if(!P.success){z({title:"操作失败",description:P.error,variant:"destructive"});return}P.data.results[0]?.success?(z({title:n?"已拒绝":"已通过",description:`表达方式 #${h.id} ${n?"已拒绝":"已通过"}`}),setTimeout(()=>{p($=>$.filter((ke,J)=>J!==g)),S($=>$-1),g>=x.length-1&&w(Math.max(0,g-1)),A.current=null,T.current=0,F.set({x:0,opacity:1,rotate:0}),E.current=!1,Y(),x.length<=1&&v>1&&he(!1)},300)):(L(h.id),z({title:"数据冲突",description:"该条目已被后台任务处理,正在刷新数据...",variant:"destructive"}),setTimeout(()=>{L(null),A.current=null,T.current=0,F.set({x:0,opacity:1,rotate:0}),E.current=!1,he(!1),Y()},1500))}catch(P){z({title:"操作失败",description:P instanceof Error?P.message:"未知错误",variant:"destructive"}),A.current=null,T.current=0,F.set({x:0,opacity:1,rotate:0}),E.current=!1}}},[x,g,E,ne,m,z,Y,v,he]),ct=f.useCallback((n,h)=>{E.current||(W.current={x:n,y:h},Ce.current=!1)},[E]),Ct=f.useCallback(n=>{E.current||(E.current=!0,F.start({x:n==="left"?-30:30,immediate:!0}),setTimeout(()=>{F.start({x:0}),setTimeout(()=>{E.current=!1},300)},150))},[F]),ot=f.useCallback(n=>{if(!W.current||E.current)return;const h=n-W.current.x,_=x[g],P=ne(_);if(h<0&&!P.left){F.start({x:h*.2,immediate:!0}),T.current=h*.2,A.current=null;return}if(h>0&&!P.right){F.start({x:h*.2,immediate:!0}),T.current=h*.2,A.current=null;return}Ce.current=!0,T.current=h,F.start({x:h,rotate:h*.05,opacity:Math.max(0,1-Math.abs(h)/500),immediate:!0}),F.start({x:h,rotate:h*.05,opacity:Math.max(0,1-Math.abs(h)/500),immediate:!0}),Math.abs(h)>50?A.current=h>0?"right":"left":A.current=null},[x,g,ne,F]),Ae=f.useCallback(()=>{if(!W.current)return;const n=100,h=V.x.get();Math.abs(h)>n&&A.current?_e(A.current==="left"):(F.start({x:0,rotate:0,opacity:1}),T.current=0,A.current=null),W.current=null,Ce.current=!1},[V.x,_e,F]),Fr=f.useCallback(n=>{ct(n.clientX,n.clientY)},[ct]),Vr=f.useCallback(n=>{W.current&&(n.preventDefault(),ot(n.clientX))},[ot]),Dr=f.useCallback(()=>{Ae()},[Ae]),$r=f.useCallback(()=>{W.current&&Ae()},[Ae]),qr=f.useCallback(n=>{const h=n.touches[0];ct(h.clientX,h.clientY)},[ct]),Mr=f.useCallback(n=>{const h=n.touches[0];ot(h.clientX)},[ot]),Or=f.useCallback(()=>{Ae()},[Ae]);f.useEffect(()=>{if(!e||s!=="quick")return;const n=h=>{if(!["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(h.key)||(h.preventDefault(),h.stopPropagation(),h.stopImmediatePropagation(),E.current||b))return;const _=x[g],P=ne(_);h.key==="ArrowLeft"?P.left?_e(!0):Ct("left"):h.key==="ArrowRight"?P.right?_e(!1):Ct("right"):h.key==="ArrowDown"?g$+1):h.key==="ArrowUp"&&g>0&&w($=>$-1)};return window.addEventListener("keydown",n,!0),()=>window.removeEventListener("keydown",n,!0)},[e,s,x,g,E,b,ne,_e,Ct]),f.useEffect(()=>{if(!e||s!=="quick"||b)return;const n=x.length-g-1,h=x.length{e&&(Y(),$e(),vs())},[e,Y,$e,vs]),f.useEffect(()=>{we(1),Ne(new Set)},[Q,Pt]),f.useEffect(()=>{Ne(new Set)},[o]);const ys=()=>{Er(gs),we(1)},Re=n=>n.chat_name||Ir.get(n.chat_id)||n.chat_id,fe=async(n,h)=>{try{ps(P=>new Set(P).add(n));const _=await Ot([{id:n,rejected:h,require_unchecked:Q==="unchecked"}]);if(!_.success){z({title:"操作失败",description:_.error,variant:"destructive"});return}_.data.results[0]?.success?(z({title:h?"已拒绝":"已通过",description:`表达方式 #${n} ${h?"已拒绝":"已通过"}`}),$e(),Y()):z({title:"操作失败",description:_.data.results[0]?.message||"未知错误",variant:"destructive"})}catch(_){z({title:"操作失败",description:_ instanceof Error?_.message:"未知错误",variant:"destructive"})}finally{ps(_=>{const P=new Set(_);return P.delete(n),P})}},Ee=async n=>{if(D.size===0){z({title:"请选择",description:"请先选择要审核的表达方式",variant:"destructive"});return}try{at(!0);const h=Array.from(D).map(P=>({id:P,rejected:n,require_unchecked:Q==="unchecked"})),_=await Ot(h);if(!_.success){z({title:"批量审核失败",description:_.error,variant:"destructive"});return}z({title:"批量审核完成",description:`成功 ${_.data.succeeded} 条,失败 ${_.data.failed} 条`,variant:_.data.failed>0?"destructive":"default"}),Ne(new Set),$e(),Y()}catch(h){z({title:"批量审核失败",description:h instanceof Error?h.message:"未知错误",variant:"destructive"})}finally{at(!1)}},Lr=()=>{D.size===o.length?Ne(new Set):Ne(new Set(o.map(n=>n.id)))},Ur=n=>{Ne(h=>{const _=new Set(h);return _.has(n)?_.delete(n):_.add(n),_})},At=n=>n?new Date(n*1e3).toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}):"-",Rt=n=>n.checked?n.rejected?r.jsxs(pe,{variant:"destructive",className:"gap-1",children:[r.jsx(X,{className:"h-3 w-3"}),"已拒绝"]}):r.jsxs(pe,{variant:"default",className:"gap-1 bg-green-600",children:[r.jsx(M,{className:"h-3 w-3"}),"已通过"]}):r.jsxs(pe,{variant:"outline",className:"gap-1",children:[r.jsx(It,{className:"h-3 w-3"}),"待审核"]}),Et=n=>n?n==="ai"?r.jsxs(pe,{variant:"secondary",className:"gap-1 text-xs",children:[r.jsx(ba,{className:"h-3 w-3"}),"AI"]}):r.jsxs(pe,{variant:"secondary",className:"gap-1 text-xs",children:[r.jsx(zt,{className:"h-3 w-3"}),"人工"]}):null,ie=Math.ceil(fs/it),Qr=()=>{const n=[];if(ie<=7)for(let h=1;h<=ie;h++)n.push(h);else{n.push(1),re>3&&n.push("ellipsis");const h=Math.max(2,re-1),_=Math.min(ie-1,re+1);for(let P=h;P<=_;P++)n.push(P);re1&&n.push(ie)}return n},bs=()=>{const n=parseInt(ms,10);!isNaN(n)&&n>=1&&n<=ie&&(we(n),xs(""))};return r.jsx(Zr,{open:e,onOpenChange:t,children:r.jsxs(ea,{className:"max-w-5xl w-[95vw] sm:w-full h-[90vh] sm:h-[85vh] flex flex-col p-0",hideCloseButton:!0,children:[r.jsxs("div",{className:"flex items-end bg-muted/30 px-2 pt-2 shrink-0",children:[r.jsxs("button",{onClick:()=>a("list"),className:B("group relative flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-t-lg transition-all","hover:bg-background/50",s==="list"?"bg-background text-foreground shadow-sm border border-b-0 border-border":"text-muted-foreground hover:text-foreground"),children:[r.jsx(fa,{className:"h-4 w-4"}),r.jsx("span",{children:"列表模式"}),s==="list"&&r.jsx("span",{className:"absolute bottom-0 left-0 right-0 h-[2px] bg-background"})]}),r.jsxs("button",{onClick:()=>a("quick"),className:B("group relative flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-t-lg transition-all","hover:bg-background/50",s==="quick"?"bg-background text-foreground shadow-sm border border-b-0 border-border":"text-muted-foreground hover:text-foreground"),children:[r.jsx(ma,{className:"h-4 w-4"}),r.jsx("span",{children:"快速审核"}),r.jsx(pe,{variant:"secondary",className:"ml-1 h-5 px-1.5 text-xs",children:"新"}),s==="quick"&&r.jsx("span",{className:"absolute bottom-0 left-0 right-0 h-[2px] bg-background"})]}),r.jsx("div",{className:"flex-1 border-b border-border"}),r.jsx("button",{onClick:()=>t(!1),className:"mb-[1px] p-2 text-muted-foreground hover:text-foreground hover:bg-muted rounded-lg transition-colors",children:r.jsx(xa,{className:"h-4 w-4"})})]}),s==="list"&&r.jsxs(r.Fragment,{children:[r.jsxs(ta,{className:"px-4 sm:px-6 pt-4 sm:pt-6 pb-4 border-b shrink-0",children:[r.jsx(sa,{className:"text-lg sm:text-xl",children:"表达方式审核"}),r.jsx(ra,{className:"text-xs sm:text-sm",children:"审核麦麦学习到的表达方式。通过审核的项目才会被使用(可在配置中调整),被拒绝的项目永远不会被使用。"}),r.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2 sm:gap-3 mt-4",children:[r.jsxs("div",{className:"rounded-lg border p-2 sm:p-3 text-center",children:[r.jsx("div",{className:"text-xl sm:text-2xl font-bold text-orange-500",children:nt?"-":i?.unchecked??0}),r.jsx("div",{className:"text-xs text-muted-foreground",children:"待审核"})]}),r.jsxs("div",{className:"rounded-lg border p-2 sm:p-3 text-center",children:[r.jsx("div",{className:"text-xl sm:text-2xl font-bold text-green-500",children:nt?"-":i?.passed??0}),r.jsx("div",{className:"text-xs text-muted-foreground",children:"已通过"})]}),r.jsxs("div",{className:"rounded-lg border p-2 sm:p-3 text-center",children:[r.jsx("div",{className:"text-xl sm:text-2xl font-bold text-red-500",children:nt?"-":i?.rejected??0}),r.jsx("div",{className:"text-xs text-muted-foreground",children:"已拒绝"})]}),r.jsxs("div",{className:"rounded-lg border p-2 sm:p-3 text-center",children:[r.jsx("div",{className:"text-xl sm:text-2xl font-bold text-blue-500",children:nt?"-":i?.total??0}),r.jsx("div",{className:"text-xs text-muted-foreground",children:"总计"})]})]})]}),r.jsxs("div",{className:"px-4 sm:px-6 py-3 border-b shrink-0 space-y-3",children:[r.jsx(js,{value:Q,onValueChange:n=>Rr(n),className:"w-full",children:r.jsxs(ws,{className:"grid w-full grid-cols-4",children:[r.jsxs(ge,{value:"unchecked",className:"gap-1 text-xs sm:text-sm px-1 sm:px-3",children:[r.jsx(It,{className:"h-3 w-3 sm:h-4 sm:w-4"}),r.jsx("span",{className:"hidden sm:inline",children:"待审核"}),r.jsx("span",{className:"sm:hidden",children:"待审"}),r.jsxs("span",{className:"hidden sm:inline",children:["(",i?.unchecked??0,")"]})]}),r.jsxs(ge,{value:"passed",className:"gap-1 text-xs sm:text-sm px-1 sm:px-3",children:[r.jsx(M,{className:"h-3 w-3 sm:h-4 sm:w-4"}),r.jsx("span",{className:"hidden sm:inline",children:"已通过"}),r.jsx("span",{className:"sm:hidden",children:"通过"}),r.jsxs("span",{className:"hidden sm:inline",children:["(",i?.passed??0,")"]})]}),r.jsxs(ge,{value:"rejected",className:"gap-1 text-xs sm:text-sm px-1 sm:px-3",children:[r.jsx(X,{className:"h-3 w-3 sm:h-4 sm:w-4"}),r.jsx("span",{className:"hidden sm:inline",children:"已拒绝"}),r.jsx("span",{className:"sm:hidden",children:"拒绝"}),r.jsxs("span",{className:"hidden sm:inline",children:["(",i?.rejected??0,")"]})]}),r.jsxs(ge,{value:"all",className:"gap-1 text-xs sm:text-sm px-1 sm:px-3",children:[r.jsx("span",{children:"全部"}),r.jsxs("span",{className:"hidden sm:inline",children:["(",i?.total??0,")"]})]})]})}),r.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-2",children:[r.jsxs("div",{className:"relative flex-1",children:[r.jsx(ks,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),r.jsx(Ns,{placeholder:"搜索情景或风格...",value:gs,onChange:n=>Tr(n.target.value),onKeyDown:n=>n.key==="Enter"&&ys(),className:"pl-9"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(I,{variant:"outline",size:"icon",onClick:ys,children:r.jsx(ks,{className:"h-4 w-4"})}),r.jsx(I,{variant:"outline",size:"icon",onClick:()=>{$e(),Y()},disabled:U,children:r.jsx(qe,{className:B("h-4 w-4",U&&"animate-spin")})})]}),D.size>0&&r.jsx("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:Q==="unchecked"?r.jsxs(r.Fragment,{children:[r.jsxs(I,{variant:"default",size:"sm",className:"bg-green-600 hover:bg-green-700 flex-1 sm:flex-none",onClick:()=>Ee(!1),disabled:U,children:[r.jsx(M,{className:"h-4 w-4 mr-1"}),r.jsx("span",{className:"hidden sm:inline",children:"批量通过"}),r.jsx("span",{className:"sm:hidden",children:"通过"}),"(",D.size,")"]}),r.jsxs(I,{variant:"destructive",size:"sm",className:"flex-1 sm:flex-none",onClick:()=>Ee(!0),disabled:U,children:[r.jsx(X,{className:"h-4 w-4 mr-1"}),r.jsx("span",{className:"hidden sm:inline",children:"批量拒绝"}),r.jsx("span",{className:"sm:hidden",children:"拒绝"}),"(",D.size,")"]})]}):Q==="passed"?r.jsxs(I,{variant:"destructive",size:"sm",className:"flex-1 sm:flex-none",onClick:()=>Ee(!0),disabled:U,children:[r.jsx(X,{className:"h-4 w-4 mr-1"}),r.jsx("span",{className:"hidden sm:inline",children:"批量改为拒绝"}),r.jsx("span",{className:"sm:hidden",children:"改为拒绝"}),"(",D.size,")"]}):Q==="rejected"?r.jsxs(I,{variant:"default",size:"sm",className:"bg-green-600 hover:bg-green-700 flex-1 sm:flex-none",onClick:()=>Ee(!1),disabled:U,children:[r.jsx(M,{className:"h-4 w-4 mr-1"}),r.jsx("span",{className:"hidden sm:inline",children:"批量改为通过"}),r.jsx("span",{className:"sm:hidden",children:"改为通过"}),"(",D.size,")"]}):r.jsxs(r.Fragment,{children:[r.jsxs(I,{variant:"default",size:"sm",className:"bg-green-600 hover:bg-green-700 flex-1 sm:flex-none",onClick:()=>Ee(!1),disabled:U,children:[r.jsx(M,{className:"h-4 w-4 mr-1"}),r.jsx("span",{className:"hidden sm:inline",children:"批量通过"}),r.jsx("span",{className:"sm:hidden",children:"通过"}),"(",D.size,")"]}),r.jsxs(I,{variant:"destructive",size:"sm",className:"flex-1 sm:flex-none",onClick:()=>Ee(!0),disabled:U,children:[r.jsx(X,{className:"h-4 w-4 mr-1"}),r.jsx("span",{className:"hidden sm:inline",children:"批量拒绝"}),r.jsx("span",{className:"sm:hidden",children:"拒绝"}),"(",D.size,")"]})]})})]})]}),r.jsx(aa,{className:"flex-1 px-4 sm:px-6",children:U&&o.length===0?r.jsx("div",{className:"flex items-center justify-center h-40",children:r.jsx(qe,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):o.length===0?r.jsxs("div",{className:"flex flex-col items-center justify-center h-40 text-muted-foreground",children:[r.jsx(ga,{className:"h-8 w-8 mb-2"}),r.jsx("p",{children:"没有找到表达方式"})]}):r.jsxs("div",{className:"space-y-2 py-2",children:[o.length>0&&r.jsxs("div",{className:"flex items-center justify-between py-2 px-3 rounded-lg bg-muted/50",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(_s,{checked:D.size===o.length&&o.length>0,onCheckedChange:Lr}),r.jsx("span",{className:"text-sm text-muted-foreground",children:D.size===o.length&&o.length>0?`已全选当前页 (${o.length} 条)`:`全选当前页 (${o.length} 条)`})]}),D.size>0&&r.jsx(I,{variant:"ghost",size:"sm",onClick:()=>Ne(new Set),className:"h-7 text-xs",children:"取消选择"})]}),o.map(n=>r.jsx("div",{className:B("rounded-lg border p-3 sm:p-4 space-y-2 sm:space-y-3 transition-colors",D.has(n.id)&&"bg-accent border-primary",ae.has(n.id)&&"opacity-50"),children:r.jsxs("div",{className:"flex items-start gap-2 sm:gap-3",children:[r.jsx(_s,{checked:D.has(n.id),onCheckedChange:()=>Ur(n.id),disabled:ae.has(n.id),className:"mt-1"}),r.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[r.jsxs("div",{children:[r.jsx("span",{className:"text-xs text-muted-foreground",children:"情景:"}),r.jsx("p",{className:"text-sm font-medium break-words",children:n.situation})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-xs text-muted-foreground",children:"风格:"}),r.jsx("p",{className:"text-sm text-muted-foreground break-words",children:n.style})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-1 sm:gap-2 text-xs text-muted-foreground",children:[r.jsxs("span",{children:["#",n.id]}),r.jsx("span",{children:"·"}),r.jsx("span",{title:Re(n),className:"truncate max-w-24 sm:max-w-32",children:Re(n)}),r.jsx("span",{children:"·"}),r.jsx("span",{children:At(n.create_date)}),r.jsxs("div",{className:"flex items-center gap-1",children:[Rt(n),Et(n.modified_by)]})]})]}),r.jsx("div",{className:"flex flex-col gap-1 sm:gap-2 shrink-0",children:Q==="unchecked"?r.jsxs(r.Fragment,{children:[r.jsxs(I,{size:"sm",variant:"outline",className:"text-green-600 hover:text-green-700 hover:bg-green-50 h-8 sm:h-9 px-2 sm:px-3",onClick:()=>fe(n.id,!1),disabled:ae.has(n.id),children:[r.jsx(M,{className:"h-4 w-4 sm:mr-1"}),r.jsx("span",{className:"hidden sm:inline",children:"通过"})]}),r.jsxs(I,{size:"sm",variant:"outline",className:"text-red-600 hover:text-red-700 hover:bg-red-50 h-8 sm:h-9 px-2 sm:px-3",onClick:()=>fe(n.id,!0),disabled:ae.has(n.id),children:[r.jsx(X,{className:"h-4 w-4 sm:mr-1"}),r.jsx("span",{className:"hidden sm:inline",children:"拒绝"})]})]}):Q==="passed"?r.jsxs(I,{size:"sm",variant:"outline",className:"text-red-600 hover:text-red-700 hover:bg-red-50 h-8 sm:h-9 px-2 sm:px-3",onClick:()=>fe(n.id,!0),disabled:ae.has(n.id),children:[r.jsx(X,{className:"h-4 w-4 sm:mr-1"}),r.jsx("span",{className:"hidden sm:inline",children:"改为拒绝"})]}):Q==="rejected"?r.jsxs(I,{size:"sm",variant:"outline",className:"text-green-600 hover:text-green-700 hover:bg-green-50 h-8 sm:h-9 px-2 sm:px-3",onClick:()=>fe(n.id,!1),disabled:ae.has(n.id),children:[r.jsx(M,{className:"h-4 w-4 sm:mr-1"}),r.jsx("span",{className:"hidden sm:inline",children:"改为通过"})]}):r.jsx(r.Fragment,{children:n.rejected?r.jsxs(I,{size:"sm",variant:"outline",className:"text-green-600 hover:text-green-700 hover:bg-green-50 h-8 sm:h-9 px-2 sm:px-3",onClick:()=>fe(n.id,!1),disabled:ae.has(n.id),children:[r.jsx(M,{className:"h-4 w-4 sm:mr-1"}),r.jsx("span",{className:"hidden sm:inline",children:"改为通过"})]}):n.checked?r.jsxs(I,{size:"sm",variant:"outline",className:"text-red-600 hover:text-red-700 hover:bg-red-50 h-8 sm:h-9 px-2 sm:px-3",onClick:()=>fe(n.id,!0),disabled:ae.has(n.id),children:[r.jsx(X,{className:"h-4 w-4 sm:mr-1"}),r.jsx("span",{className:"hidden sm:inline",children:"改为拒绝"})]}):r.jsxs(r.Fragment,{children:[r.jsxs(I,{size:"sm",variant:"outline",className:"text-green-600 hover:text-green-700 hover:bg-green-50 h-8 sm:h-9 px-2 sm:px-3",onClick:()=>fe(n.id,!1),disabled:ae.has(n.id),children:[r.jsx(M,{className:"h-4 w-4 sm:mr-1"}),r.jsx("span",{className:"hidden sm:inline",children:"通过"})]}),r.jsxs(I,{size:"sm",variant:"outline",className:"text-red-600 hover:text-red-700 hover:bg-red-50 h-8 sm:h-9 px-2 sm:px-3",onClick:()=>fe(n.id,!0),disabled:ae.has(n.id),children:[r.jsx(X,{className:"h-4 w-4 sm:mr-1"}),r.jsx("span",{className:"hidden sm:inline",children:"拒绝"})]})]})})})]})},n.id))]})}),r.jsxs("div",{className:"px-4 sm:px-6 py-3 border-t shrink-0 flex flex-col sm:flex-row items-center justify-between gap-3",children:[r.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[r.jsx("span",{className:"hidden sm:inline",children:"每页"}),r.jsxs(na,{value:it.toString(),onValueChange:n=>{Ar(parseInt(n,10)),we(1)},children:[r.jsx(ia,{className:"w-[70px] h-8",children:r.jsx(ca,{})}),r.jsxs(oa,{children:[r.jsx(ut,{value:"10",children:"10"}),r.jsx(ut,{value:"20",children:"20"}),r.jsx(ut,{value:"50",children:"50"}),r.jsx(ut,{value:"100",children:"100"})]})]}),r.jsx("span",{className:"hidden sm:inline",children:"条"}),r.jsxs("span",{className:"text-muted-foreground",children:["共 ",fs," 条"]})]}),r.jsx(la,{className:"mx-0 w-auto",children:r.jsxs(da,{children:[r.jsx(Tt,{children:r.jsx(I,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>we(n=>Math.max(1,n-1)),disabled:re<=1||U,children:r.jsx(pa,{className:"h-4 w-4"})})}),Qr().map((n,h)=>r.jsx(Tt,{children:n==="ellipsis"?r.jsx(ua,{}):r.jsx(ha,{href:"#",isActive:n===re,onClick:_=>{_.preventDefault(),we(n)},className:"h-8 w-8 cursor-pointer",children:n})},h)),r.jsx(Tt,{children:r.jsx(I,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>we(n=>Math.min(ie,n+1)),disabled:re>=ie||U,children:r.jsx(va,{className:"h-4 w-4"})})})]})}),r.jsxs("div",{className:"hidden sm:flex items-center gap-2 text-sm",children:[r.jsx("span",{className:"text-muted-foreground",children:"跳至"}),r.jsx(Ns,{type:"number",min:1,max:ie,value:ms,onChange:n=>xs(n.target.value),onKeyDown:n=>n.key==="Enter"&&bs(),className:"w-16 h-8 text-center",placeholder:re.toString()}),r.jsx("span",{className:"text-muted-foreground",children:"页"}),r.jsx(I,{variant:"outline",size:"sm",className:"h-8",onClick:bs,disabled:U,children:"跳转"})]})]})]}),s==="quick"&&r.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[r.jsxs("div",{className:"px-4 sm:px-6 py-3 border-b shrink-0 space-y-3",children:[r.jsxs("div",{className:"flex items-center justify-between text-sm",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsxs("span",{className:"text-muted-foreground",children:["待审核: ",r.jsx("span",{className:"font-medium text-orange-500",children:i?.unchecked??0})]}),r.jsxs("span",{className:"text-muted-foreground",children:["已通过: ",r.jsx("span",{className:"font-medium text-green-500",children:i?.passed??0})]}),r.jsxs("span",{className:"text-muted-foreground",children:["已拒绝: ",r.jsx("span",{className:"font-medium text-red-500",children:i?.rejected??0})]})]}),r.jsxs(I,{variant:"outline",size:"sm",onClick:()=>{he(),Y()},disabled:b,children:[r.jsx(qe,{className:B("h-4 w-4 mr-1",b&&"animate-spin")}),"刷新"]})]}),r.jsx(js,{value:m,onValueChange:n=>u(n),className:"w-full",children:r.jsxs(ws,{className:"grid w-full grid-cols-4",children:[r.jsxs(ge,{value:"unchecked",className:"gap-1 text-xs sm:text-sm",children:[r.jsx(It,{className:"h-3 w-3 sm:h-4 sm:w-4"}),r.jsx("span",{className:"hidden sm:inline",children:"待审核"}),r.jsx("span",{className:"sm:hidden",children:"待审"})]}),r.jsxs(ge,{value:"passed",className:"gap-1 text-xs sm:text-sm",children:[r.jsx(M,{className:"h-3 w-3 sm:h-4 sm:w-4"}),r.jsx("span",{className:"hidden sm:inline",children:"已通过"}),r.jsx("span",{className:"sm:hidden",children:"通过"})]}),r.jsxs(ge,{value:"rejected",className:"gap-1 text-xs sm:text-sm",children:[r.jsx(X,{className:"h-3 w-3 sm:h-4 sm:w-4"}),r.jsx("span",{className:"hidden sm:inline",children:"已拒绝"}),r.jsx("span",{className:"sm:hidden",children:"拒绝"})]}),r.jsx(ge,{value:"all",className:"gap-1 text-xs sm:text-sm",children:"全部"})]})})]}),r.jsx("div",{className:"flex-1 flex flex-col items-center justify-center p-4 sm:p-8 relative overflow-hidden",children:b&&x.length===0?r.jsxs("div",{className:"flex flex-col items-center justify-center",children:[r.jsx(qe,{className:"h-8 w-8 animate-spin text-muted-foreground mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"加载中..."})]}):x.length===0?r.jsxs("div",{className:"flex flex-col items-center justify-center text-center",children:[r.jsx("div",{className:"w-20 h-20 rounded-full bg-muted/50 flex items-center justify-center mb-6",children:r.jsx(M,{className:"h-10 w-10 text-green-500"})}),r.jsx("h3",{className:"text-xl font-semibold mb-2",children:"全部审核完成!"}),r.jsx("p",{className:"text-muted-foreground",children:"当前筛选条件下没有待处理的项目"})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"absolute top-4 left-1/2 -translate-x-1/2 text-sm text-muted-foreground z-50",children:[g+1," / ",x.length,v>x.length&&r.jsxs("span",{className:"ml-1",children:["(共 ",v," 条)"]})]}),r.jsx("div",{className:"absolute inset-x-4 top-1/2 -translate-y-1/2 flex justify-between pointer-events-none z-40",children:(()=>{const n=x[g],h=ne(n);return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:B("flex items-center gap-2 px-4 py-2 rounded-lg transition-all duration-300",A.current==="left"?"bg-red-500/20 text-red-500 scale-110":"bg-muted/50 text-muted-foreground opacity-0",!h.left&&"invisible"),children:[r.jsx(X,{className:"h-8 w-8"}),r.jsx("span",{className:"font-bold text-lg hidden sm:inline",children:"拒绝"})]}),r.jsxs("div",{className:B("flex items-center gap-2 px-4 py-2 rounded-lg transition-all duration-300",A.current==="right"?"bg-green-500/20 text-green-500 scale-110":"bg-muted/50 text-muted-foreground opacity-0",!h.right&&"invisible"),children:[r.jsx("span",{className:"font-bold text-lg hidden sm:inline",children:"通过"}),r.jsx(M,{className:"h-8 w-8"})]})]})})()}),r.jsx("div",{className:"relative w-full max-w-md h-[400px] flex items-center justify-center",role:"listbox",tabIndex:0,"aria-label":"待审核的表达方式","aria-activedescendant":x[g]?`quick-expr-${x[g].id}`:void 0,children:x.slice(g,g+5).reverse().map((n,h,_)=>{const P=_.length-1-h,$=P===0;let ke={zIndex:5-P,position:"absolute",width:"100%",transition:$&&!Ce.current?"all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)":"none"};if($)ke={...ke,cursor:"grab"};else{const J=Math.min(Math.abs(T.current)/200,1),Te=xe=>{const Wr=xe*7%5,Yr=xe*13%7;return{scale:1-xe*.05,translateY:xe*12,rotate:(xe%2===0?1:-1)*(xe*2)+Wr,translateX:(xe%2===0?-1:1)*(xe*4)+Yr}},me=Te(P),lt=Te(P-1),Br=me.scale+(lt.scale-me.scale)*J,Xr=me.translateY+(lt.translateY-me.translateY)*J,Gr=me.rotate+(lt.rotate-me.rotate)*J,Hr=me.translateX+(lt.translateX-me.translateX)*J;ke={...ke,transform:`translate3d(${Hr}px, ${Xr}px, 0) scale(${Br}) rotate(${Gr}deg)`,opacity:1-P*.15,filter:`blur(${Math.max(0,P*1-J)}px)`,pointerEvents:"none"}}return $?r.jsxs(Bn,{ref:ue,role:"option",id:`quick-expr-${n.id}`,"aria-selected":!0,className:B("bg-card border rounded-xl shadow-xl p-6 select-none h-full flex flex-col","active:cursor-grabbing shadow-2xl ring-1 ring-border/50",de===n.id&&"ring-4 ring-orange-500/50 bg-orange-50/10"),style:{...ke,...V},onMouseDown:Fr,onMouseMove:Vr,onMouseUp:Dr,onMouseLeave:$r,onTouchStart:qr,onTouchMove:Mr,onTouchEnd:Or,children:[de===n.id&&r.jsxs("div",{className:"absolute inset-0 z-50 flex flex-col items-center justify-center bg-background/80 backdrop-blur-sm animate-in fade-in duration-300 rounded-xl",children:[r.jsxs("div",{className:"relative",children:[r.jsx("div",{className:"absolute inset-0 bg-orange-500/20 rounded-full animate-ping"}),r.jsx(qe,{className:"relative h-16 w-16 text-orange-500 mb-4 animate-spin duration-1000"})]}),r.jsx("h3",{className:"text-xl font-bold text-foreground animate-in slide-in-from-bottom-2 fade-in duration-500",children:"数据已更新"}),r.jsx("p",{className:"text-muted-foreground mt-2 animate-in slide-in-from-bottom-3 fade-in duration-700",children:"后台任务已处理此条目"})]}),r.jsx("div",{className:B("absolute inset-0 flex items-center justify-center z-20 pointer-events-none transition-opacity duration-200",T.current<-10&&!ne(n).left||T.current>10&&!ne(n).right?"opacity-100":"opacity-0"),children:r.jsx("div",{className:"bg-background/80 backdrop-blur-sm p-4 rounded-full shadow-lg border border-border",children:r.jsx(ya,{className:"h-12 w-12 text-muted-foreground"})})}),r.jsxs("div",{className:"space-y-4 flex-1",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("span",{className:"text-sm text-muted-foreground font-mono",children:["#",n.id]}),r.jsxs("div",{className:"flex items-center gap-2",children:[Rt(n),Et(n.modified_by)]})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"情景"}),r.jsx("div",{className:"p-3 bg-muted/30 rounded-lg border border-border/50",children:r.jsx("p",{className:"text-lg font-medium leading-relaxed",children:n.situation})})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"风格"}),r.jsx("div",{className:"flex flex-wrap gap-2",children:n.style.split(/[,,]/).map((J,Te)=>r.jsx(pe,{variant:"secondary",className:"font-normal",children:J.trim()},Te))})]})]}),r.jsxs("div",{className:"mt-auto pt-4 border-t flex items-center justify-between text-xs text-muted-foreground",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-6 h-6 rounded-full bg-primary/10 flex items-center justify-center text-primary",children:r.jsx(zt,{className:"h-3 w-3"})}),r.jsx("span",{title:Re(n),className:"truncate max-w-[120px] font-medium",children:Re(n)})]}),r.jsx("span",{className:"font-mono",children:At(n.create_date)})]})]},n.id):r.jsxs("div",{role:"option",id:`quick-expr-${n.id}`,"aria-selected":!1,className:B("bg-card border rounded-xl shadow-xl p-6 select-none h-full flex flex-col"),style:ke,children:[r.jsxs("div",{className:"space-y-4 flex-1",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("span",{className:"text-sm text-muted-foreground font-mono",children:["#",n.id]}),r.jsxs("div",{className:"flex items-center gap-2",children:[Rt(n),Et(n.modified_by)]})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"情景"}),r.jsx("div",{className:"p-3 bg-muted/30 rounded-lg border border-border/50",children:r.jsx("p",{className:"text-lg font-medium leading-relaxed",children:n.situation})})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"风格"}),r.jsx("div",{className:"flex flex-wrap gap-2",children:n.style.split(/[,,]/).map((J,Te)=>r.jsx(pe,{variant:"secondary",className:"font-normal",children:J.trim()},Te))})]})]}),r.jsxs("div",{className:"mt-auto pt-4 border-t flex items-center justify-between text-xs text-muted-foreground",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-6 h-6 rounded-full bg-primary/10 flex items-center justify-center text-primary",children:r.jsx(zt,{className:"h-3 w-3"})}),r.jsx("span",{title:Re(n),className:"truncate max-w-[120px] font-medium",children:Re(n)})]}),r.jsx("span",{className:"font-mono",children:At(n.create_date)})]})]},n.id)})}),r.jsx("div",{className:"flex items-center gap-8 mt-8 sm:hidden z-50",children:(()=>{const n=x[g],h=ne(n);return r.jsxs(r.Fragment,{children:[r.jsx(I,{variant:"outline",size:"lg",className:B("w-16 h-16 rounded-full border-2 shadow-lg transition-all active:scale-95",h.left?"hover:bg-red-50 hover:text-red-600 hover:border-red-200":"opacity-30 cursor-not-allowed"),onClick:()=>h.left&&_e(!0),disabled:!h.left||E.current,children:r.jsx(X,{className:"h-8 w-8"})}),r.jsx(I,{variant:"outline",size:"lg",className:B("w-16 h-16 rounded-full border-2 shadow-lg transition-all active:scale-95",h.right?"hover:bg-green-50 hover:text-green-600 hover:border-green-200":"opacity-30 cursor-not-allowed"),onClick:()=>h.right&&_e(!1),disabled:!h.right||E.current,children:r.jsx(M,{className:"h-8 w-8"})})]})})()})]})}),r.jsxs("div",{className:"hidden sm:flex items-center justify-center gap-6 px-6 py-3 border-t text-xs text-muted-foreground",children:[r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx(dt,{size:"sm",keys:["left"]}),r.jsx("span",{children:"拒绝"})]}),r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx(dt,{size:"sm",keys:["right"]}),r.jsx("span",{children:"通过"})]}),r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx(dt,{size:"sm",keys:["up"]}),r.jsx("span",{children:"上一条"})]}),r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx(dt,{size:"sm",keys:["down"]}),r.jsx("span",{children:"下一条"})]}),r.jsx("span",{className:"text-muted-foreground/50",children:"|"}),r.jsx("span",{children:"拖拽卡片滑动审核"})]})]})]})})}export{ii as E,Ln as a,si as b,ti as c,Zn as d,ni as e,Un as f,Qn as g,ei as h,ri as i,ai as j,Cn as u}; diff --git a/dashboard/dist/assets/icons-DTcdLw9j.js b/dashboard/dist/assets/icons-DTcdLw9j.js new file mode 100644 index 00000000..09911290 --- /dev/null +++ b/dashboard/dist/assets/icons-DTcdLw9j.js @@ -0,0 +1 @@ +import{r as L0}from"./router-zNjPR4CY.js";const Y_=c=>c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),eg=c=>c.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,p,s)=>s?s.toUpperCase():p.toLowerCase()),Z_=c=>{const a=eg(c);return a.charAt(0).toUpperCase()+a.slice(1)},W_=(...c)=>c.filter((a,p,s)=>!!a&&a.trim()!==""&&s.indexOf(a)===p).join(" ").trim(),ag=c=>{for(const a in c)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var cg={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"};const E_=L0.forwardRef(({color:c="currentColor",size:a=24,strokeWidth:p=2,absoluteStrokeWidth:s,className:O_="",children:x0,iconNode:X_,...G_},K_)=>L0.createElement("svg",{ref:K_,...cg,width:a,height:a,stroke:c,strokeWidth:s?Number(p)*24/Number(a):p,className:W_("lucide",O_),...!x0&&!ag(G_)&&{"aria-hidden":"true"},...G_},[...X_.map(([Q_,J_])=>L0.createElement(Q_,J_)),...Array.isArray(x0)?x0:[x0]]));const e=(c,a)=>{const p=L0.forwardRef(({className:s,...O_},x0)=>L0.createElement(E_,{ref:x0,iconNode:a,className:W_(`lucide-${Y_(Z_(c))}`,`lucide-${c}`,s),...O_}));return p.displayName=Z_(c),p};const tg=[["path",{d:"m14 12 4 4 4-4",key:"buelq4"}],["path",{d:"M18 16V7",key:"ty0viw"}],["path",{d:"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16",key:"d5nyq2"}],["path",{d:"M3.304 13h6.392",key:"1q3zxz"}]],w0=e("a-arrow-down",tg);const og=[["path",{d:"m14 11 4-4 4 4",key:"1pu57t"}],["path",{d:"M18 16V7",key:"ty0viw"}],["path",{d:"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16",key:"d5nyq2"}],["path",{d:"M3.304 13h6.392",key:"1q3zxz"}]],f0=e("a-arrow-up",og);const dg=[["path",{d:"m15 16 2.536-7.328a1.02 1.02 1 0 1 1.928 0L22 16",key:"xik6mr"}],["path",{d:"M15.697 14h5.606",key:"1stdlc"}],["path",{d:"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16",key:"d5nyq2"}],["path",{d:"M3.304 13h6.392",key:"1q3zxz"}]],I0=e("a-large-small",dg);const ng=[["circle",{cx:"16",cy:"4",r:"1",key:"1grugj"}],["path",{d:"m18 19 1-7-6 1",key:"r0i19z"}],["path",{d:"m5 8 3-3 5.5 3-2.36 3.5",key:"9ptxx2"}],["path",{d:"M4.24 14.5a5 5 0 0 0 6.88 6",key:"10kmtu"}],["path",{d:"M13.76 17.5a5 5 0 0 0-6.88-6",key:"2qq6rc"}]],C0=e("accessibility",ng);const hg=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],N0=e("activity",hg);const ig=[["path",{d:"M18 17.5a2.5 2.5 0 1 1-4 2.03V12",key:"yd12zl"}],["path",{d:"M6 12H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"larmp2"}],["path",{d:"M6 8h12",key:"6g4wlu"}],["path",{d:"M6.6 15.572A2 2 0 1 0 10 17v-5",key:"1x1kqn"}]],b0=e("air-vent",ig);const yg=[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]],$0=e("airplay",yg);const rg=[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}],["path",{d:"m9 13 2 2 4-4",key:"6343dt"}]],l=e("alarm-clock-check",rg);const kg=[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}],["path",{d:"M9 13h6",key:"1uhe8q"}]],u=e("alarm-clock-minus",kg);const pg=[["path",{d:"M6.87 6.87a8 8 0 1 0 11.26 11.26",key:"3on8tj"}],["path",{d:"M19.9 14.25a8 8 0 0 0-9.15-9.15",key:"15ghsc"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.26 18.67 4 21",key:"yzmioq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 4 2 6",key:"1ycko6"}]],q0=e("alarm-clock-off",pg);const sg=[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}]],M=e("alarm-clock-plus",sg);const lg=[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]],z0=e("alarm-clock",lg);const ug=[["path",{d:"M11 21c0-2.5 2-2.5 2-5",key:"1sicvv"}],["path",{d:"M16 21c0-2.5 2-2.5 2-5",key:"1o3eny"}],["path",{d:"m19 8-.8 3a1.25 1.25 0 0 1-1.2 1H7a1.25 1.25 0 0 1-1.2-1L5 8",key:"1bvca4"}],["path",{d:"M21 3a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a1 1 0 0 1 1-1z",key:"x3qr1j"}],["path",{d:"M6 21c0-2.5 2-2.5 2-5",key:"i3w1gp"}]],S0=e("alarm-smoke",ug);const Mg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["polyline",{points:"11 3 11 11 14 8 17 11 17 3",key:"1wcwz3"}]],A0=e("album",Mg);const vg=[["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4",key:"11f1s0"}],["path",{d:"M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4",key:"t14dx9"}],["path",{d:"M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1",key:"1w07xs"}],["path",{d:"M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1",key:"1apec2"}]],H0=e("align-center-horizontal",vg);const mg=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4",key:"14d6g8"}],["path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4",key:"1e2lrw"}],["path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1",key:"1fkdwx"}],["path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",key:"1euafb"}]],j0=e("align-center-vertical",mg);const _g=[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2",key:"z5wdxg"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2",key:"um7a8w"}],["path",{d:"M22 22H2",key:"19qnx5"}]],V0=e("align-end-horizontal",_g);const gg=[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]],P0=e("align-end-vertical",gg);const xg=[["rect",{width:"6",height:"14",x:"4",y:"5",rx:"2",key:"1wwnby"}],["rect",{width:"6",height:"10",x:"14",y:"7",rx:"2",key:"1fe6j6"}],["path",{d:"M17 22v-5",key:"4b6g73"}],["path",{d:"M17 7V2",key:"hnrr36"}],["path",{d:"M7 22v-3",key:"1r4jpn"}],["path",{d:"M7 5V2",key:"liy1u9"}]],B0=e("align-horizontal-distribute-center",xg);const Lg=[["rect",{width:"6",height:"14",x:"4",y:"5",rx:"2",key:"1wwnby"}],["rect",{width:"6",height:"10",x:"14",y:"7",rx:"2",key:"1fe6j6"}],["path",{d:"M10 2v20",key:"uyc634"}],["path",{d:"M20 2v20",key:"1tx262"}]],F0=e("align-horizontal-distribute-end",Lg);const wg=[["rect",{width:"6",height:"14",x:"4",y:"5",rx:"2",key:"1wwnby"}],["rect",{width:"6",height:"10",x:"14",y:"7",rx:"2",key:"1fe6j6"}],["path",{d:"M4 2v20",key:"gtpd5x"}],["path",{d:"M14 2v20",key:"tg6bpw"}]],D0=e("align-horizontal-distribute-start",wg);const fg=[["rect",{width:"6",height:"14",x:"2",y:"5",rx:"2",key:"dy24zr"}],["rect",{width:"6",height:"10",x:"16",y:"7",rx:"2",key:"13zkjt"}],["path",{d:"M12 2v20",key:"t6zp3m"}]],R0=e("align-horizontal-justify-center",fg);const Ig=[["rect",{width:"6",height:"14",x:"2",y:"5",rx:"2",key:"dy24zr"}],["rect",{width:"6",height:"10",x:"12",y:"7",rx:"2",key:"1ht384"}],["path",{d:"M22 2v20",key:"40qfg1"}]],T0=e("align-horizontal-justify-end",Ig);const Cg=[["rect",{width:"6",height:"14",x:"6",y:"5",rx:"2",key:"hsirpf"}],["rect",{width:"6",height:"10",x:"16",y:"7",rx:"2",key:"13zkjt"}],["path",{d:"M2 2v20",key:"1ivd8o"}]],U0=e("align-horizontal-justify-start",Cg);const Ng=[["rect",{width:"6",height:"10",x:"9",y:"7",rx:"2",key:"yn7j0q"}],["path",{d:"M4 22V2",key:"tsjzd3"}],["path",{d:"M20 22V2",key:"1bnhr8"}]],O0=e("align-horizontal-space-around",Ng);const bg=[["rect",{width:"6",height:"14",x:"3",y:"5",rx:"2",key:"j77dae"}],["rect",{width:"6",height:"10",x:"15",y:"7",rx:"2",key:"bq30hj"}],["path",{d:"M3 2v20",key:"1d2pfg"}],["path",{d:"M21 2v20",key:"p059bm"}]],G0=e("align-horizontal-space-between",bg);const $g=[["rect",{width:"6",height:"16",x:"4",y:"6",rx:"2",key:"1n4dg1"}],["rect",{width:"6",height:"9",x:"14",y:"6",rx:"2",key:"17khns"}],["path",{d:"M22 2H2",key:"fhrpnj"}]],Z0=e("align-start-horizontal",$g);const qg=[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]],W0=e("align-start-vertical",qg);const zg=[["path",{d:"M22 17h-3",key:"1lwga1"}],["path",{d:"M22 7h-5",key:"o2endc"}],["path",{d:"M5 17H2",key:"1gx9xc"}],["path",{d:"M7 7H2",key:"6bq26l"}],["rect",{x:"5",y:"14",width:"14",height:"6",rx:"2",key:"1qrzuf"}],["rect",{x:"7",y:"4",width:"10",height:"6",rx:"2",key:"we8e9z"}]],E0=e("align-vertical-distribute-center",zg);const Sg=[["rect",{width:"14",height:"6",x:"5",y:"14",rx:"2",key:"jmoj9s"}],["rect",{width:"10",height:"6",x:"7",y:"4",rx:"2",key:"aza5on"}],["path",{d:"M2 14h20",key:"myj16y"}],["path",{d:"M2 4h20",key:"mda7wb"}]],X0=e("align-vertical-distribute-start",Sg);const Ag=[["rect",{width:"14",height:"6",x:"5",y:"14",rx:"2",key:"jmoj9s"}],["rect",{width:"10",height:"6",x:"7",y:"4",rx:"2",key:"aza5on"}],["path",{d:"M2 20h20",key:"owomy5"}],["path",{d:"M2 10h20",key:"1ir3d8"}]],K0=e("align-vertical-distribute-end",Ag);const Hg=[["rect",{width:"14",height:"6",x:"5",y:"16",rx:"2",key:"1i8z2d"}],["rect",{width:"10",height:"6",x:"7",y:"2",rx:"2",key:"ypihtt"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Q0=e("align-vertical-justify-center",Hg);const jg=[["rect",{width:"14",height:"6",x:"5",y:"12",rx:"2",key:"4l4tp2"}],["rect",{width:"10",height:"6",x:"7",y:"2",rx:"2",key:"ypihtt"}],["path",{d:"M2 22h20",key:"272qi7"}]],J0=e("align-vertical-justify-end",jg);const Vg=[["rect",{width:"14",height:"6",x:"5",y:"16",rx:"2",key:"1i8z2d"}],["rect",{width:"10",height:"6",x:"7",y:"6",rx:"2",key:"13squh"}],["path",{d:"M2 2h20",key:"1ennik"}]],Y0=e("align-vertical-justify-start",Vg);const Pg=[["rect",{width:"10",height:"6",x:"7",y:"9",rx:"2",key:"b1zbii"}],["path",{d:"M22 20H2",key:"1p1f7z"}],["path",{d:"M22 4H2",key:"1b7qnq"}]],ea=e("align-vertical-space-around",Pg);const Bg=[["path",{d:"M10 10H6",key:"1bsnug"}],["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.28a1 1 0 0 0-.684-.948l-1.923-.641a1 1 0 0 1-.578-.502l-1.539-3.076A1 1 0 0 0 16.382 8H14",key:"lrkjwd"}],["path",{d:"M8 8v4",key:"1fwk8c"}],["path",{d:"M9 18h6",key:"x1upvd"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],aa=e("ambulance",Bg);const Fg=[["rect",{width:"14",height:"6",x:"5",y:"15",rx:"2",key:"1w91an"}],["rect",{width:"10",height:"6",x:"7",y:"3",rx:"2",key:"17wqzy"}],["path",{d:"M2 21h20",key:"1nyx9w"}],["path",{d:"M2 3h20",key:"91anmk"}]],ca=e("align-vertical-space-between",Fg);const Dg=[["path",{d:"M16 12h3",key:"4uvgyw"}],["path",{d:"M17.5 12a8 8 0 0 1-8 8A4.5 4.5 0 0 1 5 15.5c0-6 8-4 8-8.5a3 3 0 1 0-6 0c0 3 2.5 8.5 12 13",key:"nfoe1t"}]],ta=e("ampersand",Dg);const Rg=[["path",{d:"M10 17c-5-3-7-7-7-9a2 2 0 0 1 4 0c0 2.5-5 2.5-5 6 0 1.7 1.3 3 3 3 2.8 0 5-2.2 5-5",key:"12lh1k"}],["path",{d:"M22 17c-5-3-7-7-7-9a2 2 0 0 1 4 0c0 2.5-5 2.5-5 6 0 1.7 1.3 3 3 3 2.8 0 5-2.2 5-5",key:"173c68"}]],oa=e("ampersands",Rg);const Tg=[["path",{d:"M10 2v5.632c0 .424-.272.795-.653.982A6 6 0 0 0 6 14c.006 4 3 7 5 8",key:"1h8rid"}],["path",{d:"M10 5H8a2 2 0 0 0 0 4h.68",key:"3ezsi6"}],["path",{d:"M14 2v5.632c0 .424.272.795.652.982A6 6 0 0 1 18 14c0 4-3 7-5 8",key:"yt6q09"}],["path",{d:"M14 5h2a2 2 0 0 1 0 4h-.68",key:"8f95yk"}],["path",{d:"M18 22H6",key:"mg6kv4"}],["path",{d:"M9 2h6",key:"1jrp98"}]],da=e("amphora",Tg);const Ug=[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]],na=e("anchor",Ug);const Og=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["path",{d:"M7.5 8 10 9",key:"olxxln"}],["path",{d:"m14 9 2.5-1",key:"1j6cij"}],["path",{d:"M9 10h.01",key:"qbtxuw"}],["path",{d:"M15 10h.01",key:"1qmjsl"}]],ha=e("angry",Og);const Gg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 15h8",key:"45n4r"}],["path",{d:"M8 9h2",key:"1g203m"}],["path",{d:"M14 9h2",key:"116p9w"}]],ia=e("annoyed",Gg);const Zg=[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],ya=e("antenna",Zg);const Wg=[["path",{d:"M7 10H6a4 4 0 0 1-4-4 1 1 0 0 1 1-1h4",key:"1hjpb6"}],["path",{d:"M7 5a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1 7 7 0 0 1-7 7H8a1 1 0 0 1-1-1z",key:"1qn45f"}],["path",{d:"M9 12v5",key:"3anwtq"}],["path",{d:"M15 12v5",key:"5xh3zn"}],["path",{d:"M5 20a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3 1 1 0 0 1-1 1H6a1 1 0 0 1-1-1",key:"1fi4x8"}]],ra=e("anvil",Wg);const Eg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m14.31 8 5.74 9.94",key:"1y6ab4"}],["path",{d:"M9.69 8h11.48",key:"1wxppr"}],["path",{d:"m7.38 12 5.74-9.94",key:"1grp0k"}],["path",{d:"M9.69 16 3.95 6.06",key:"libnyf"}],["path",{d:"M14.31 16H2.83",key:"x5fava"}],["path",{d:"m16.62 12-5.74 9.94",key:"1vwawt"}]],ka=e("aperture",Eg);const Xg=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M14 8h.01",key:"1primd"}]],pa=e("app-window-mac",Xg);const Kg=[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]],sa=e("app-window",Kg);const Qg=[["path",{d:"M12 6.528V3a1 1 0 0 1 1-1h0",key:"11qiee"}],["path",{d:"M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21",key:"110c12"}]],la=e("apple",Qg);const Jg=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],ua=e("archive-restore",Jg);const Yg=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"m9.5 17 5-5",key:"nakeu6"}],["path",{d:"m9.5 12 5 5",key:"1hccrj"}]],Ma=e("archive-x",Yg);const ex=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],va=e("archive",ex);const ax=[["path",{d:"M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3",key:"irtipd"}],["path",{d:"M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"1qyhux"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],ma=e("armchair",ax);const cx=[["path",{d:"M15 11a1 1 0 0 0 1 1h2.939a1 1 0 0 1 .75 1.811l-6.835 6.836a1.207 1.207 0 0 1-1.707 0L4.31 13.81a1 1 0 0 1 .75-1.811H8a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1z",key:"1eaqc3"}]],_a=e("arrow-big-down",cx);const tx=[["path",{d:"M15 11a1 1 0 0 0 1 1h2.939a1 1 0 0 1 .75 1.811l-6.835 6.836a1.207 1.207 0 0 1-1.707 0L4.31 13.81a1 1 0 0 1 .75-1.811H8a1 1 0 0 0 1-1V9a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1z",key:"1hy3w3"}],["path",{d:"M9 4h6",key:"10am2s"}]],ga=e("arrow-big-down-dash",tx);const ox=[["path",{d:"M13 9a1 1 0 0 1-1-1V5.061a1 1 0 0 0-1.811-.75l-6.835 6.836a1.207 1.207 0 0 0 0 1.707l6.835 6.835a1 1 0 0 0 1.811-.75V16a1 1 0 0 1 1-1h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1z",key:"p8w4w5"}],["path",{d:"M20 9v6",key:"14roy0"}]],xa=e("arrow-big-left-dash",ox);const dx=[["path",{d:"M13 9a1 1 0 0 1-1-1V5.061a1 1 0 0 0-1.811-.75l-6.835 6.836a1.207 1.207 0 0 0 0 1.707l6.835 6.835a1 1 0 0 0 1.811-.75V16a1 1 0 0 1 1-1h6a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1z",key:"aztept"}]],La=e("arrow-big-left",dx);const nx=[["path",{d:"M11 9a1 1 0 0 0 1-1V5.061a1 1 0 0 1 1.811-.75l6.836 6.836a1.207 1.207 0 0 1 0 1.707l-6.836 6.835a1 1 0 0 1-1.811-.75V16a1 1 0 0 0-1-1H9a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z",key:"67vhrh"}],["path",{d:"M4 9v6",key:"bns7oa"}]],wa=e("arrow-big-right-dash",nx);const hx=[["path",{d:"M11 9a1 1 0 0 0 1-1V5.061a1 1 0 0 1 1.811-.75l6.836 6.836a1.207 1.207 0 0 1 0 1.707l-6.836 6.835a1 1 0 0 1-1.811-.75V16a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z",key:"1232du"}]],fa=e("arrow-big-right",hx);const ix=[["path",{d:"M9 13a1 1 0 0 0-1-1H5.061a1 1 0 0 1-.75-1.811l6.836-6.835a1.207 1.207 0 0 1 1.707 0l6.835 6.835a1 1 0 0 1-.75 1.811H16a1 1 0 0 0-1 1v2a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1z",key:"pnzqmc"}],["path",{d:"M9 20h6",key:"s66wpe"}]],Ia=e("arrow-big-up-dash",ix);const yx=[["path",{d:"M9 13a1 1 0 0 0-1-1H5.061a1 1 0 0 1-.75-1.811l6.836-6.835a1.207 1.207 0 0 1 1.707 0l6.835 6.835a1 1 0 0 1-.75 1.811H16a1 1 0 0 0-1 1v6a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1z",key:"lh0v7k"}]],Ca=e("arrow-big-up",yx);const rx=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["rect",{x:"15",y:"4",width:"4",height:"6",ry:"2",key:"1bwicg"}],["path",{d:"M17 20v-6h-2",key:"1qp1so"}],["path",{d:"M15 20h4",key:"1j968p"}]],Na=e("arrow-down-0-1",rx);const kx=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M17 10V4h-2",key:"zcsr5x"}],["path",{d:"M15 10h4",key:"id2lce"}],["rect",{x:"15",y:"14",width:"4",height:"6",ry:"2",key:"33xykx"}]],ba=e("arrow-down-1-0",kx);const px=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]],v=e("arrow-down-a-z",px);const sx=[["path",{d:"M19 3H5",key:"1236rx"}],["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m6 15 6 6 6-6",key:"h15q88"}]],$a=e("arrow-down-from-line",sx);const lx=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h4",key:"6d7r33"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h10",key:"1438ji"}]],qa=e("arrow-down-narrow-wide",lx);const ux=[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]],za=e("arrow-down-left",ux);const Mx=[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]],Sa=e("arrow-down-right",Mx);const vx=[["path",{d:"M12 2v14",key:"jyx4ut"}],["path",{d:"m19 9-7 7-7-7",key:"1oe3oy"}],["circle",{cx:"12",cy:"21",r:"1",key:"o0uj5v"}]],Aa=e("arrow-down-to-dot",vx);const mx=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],Ha=e("arrow-down-to-line",mx);const _x=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"m21 8-4-4-4 4",key:"1c9v7m"}],["path",{d:"M17 4v16",key:"7dpous"}]],ja=e("arrow-down-up",_x);const gx=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]],m=e("arrow-down-wide-narrow",gx);const xx=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M15 4h5l-5 6h5",key:"8asdl1"}],["path",{d:"M15 20v-3.5a2.5 2.5 0 0 1 5 0V20",key:"r6l5cz"}],["path",{d:"M20 18h-5",key:"18j1r2"}]],_=e("arrow-down-z-a",xx);const Lx=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Va=e("arrow-down",Lx);const wx=[["path",{d:"m9 6-6 6 6 6",key:"7v63n9"}],["path",{d:"M3 12h14",key:"13k4hi"}],["path",{d:"M21 19V5",key:"b4bplr"}]],Pa=e("arrow-left-from-line",wx);const fx=[["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"}]],Ba=e("arrow-left-right",fx);const Ix=[["path",{d:"M3 19V5",key:"rwsyhb"}],["path",{d:"m13 6-6 6 6 6",key:"1yhaz7"}],["path",{d:"M7 12h14",key:"uoisry"}]],Fa=e("arrow-left-to-line",Ix);const Cx=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Da=e("arrow-left",Cx);const Nx=[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M21 12H7",key:"13ipq5"}],["path",{d:"m15 18 6-6-6-6",key:"6tx3qv"}]],Ra=e("arrow-right-from-line",Nx);const bx=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],Ta=e("arrow-right-left",bx);const $x=[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]],Ua=e("arrow-right-to-line",$x);const qx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Oa=e("arrow-right",qx);const zx=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["rect",{x:"15",y:"4",width:"4",height:"6",ry:"2",key:"1bwicg"}],["path",{d:"M17 20v-6h-2",key:"1qp1so"}],["path",{d:"M15 20h4",key:"1j968p"}]],Ga=e("arrow-up-0-1",zx);const Sx=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M17 10V4h-2",key:"zcsr5x"}],["path",{d:"M15 10h4",key:"id2lce"}],["rect",{x:"15",y:"14",width:"4",height:"6",ry:"2",key:"33xykx"}]],Za=e("arrow-up-1-0",Sx);const Ax=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]],g=e("arrow-up-a-z",Ax);const Hx=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Wa=e("arrow-up-down",Hx);const jx=[["path",{d:"m5 9 7-7 7 7",key:"1hw5ic"}],["path",{d:"M12 16V2",key:"ywoabb"}],["circle",{cx:"12",cy:"21",r:"1",key:"o0uj5v"}]],Ea=e("arrow-up-from-dot",jx);const Vx=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],Xa=e("arrow-up-from-line",Vx);const Px=[["path",{d:"M7 17V7h10",key:"11bw93"}],["path",{d:"M17 17 7 7",key:"2786uv"}]],Ka=e("arrow-up-left",Px);const Bx=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]],x=e("arrow-up-narrow-wide",Bx);const Fx=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Qa=e("arrow-up-right",Fx);const Dx=[["path",{d:"M5 3h14",key:"7usisc"}],["path",{d:"m18 13-6-6-6 6",key:"1kf1n9"}],["path",{d:"M12 7v14",key:"1akyts"}]],Ja=e("arrow-up-to-line",Dx);const Rx=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]],Ya=e("arrow-up-wide-narrow",Rx);const Tx=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M15 4h5l-5 6h5",key:"8asdl1"}],["path",{d:"M15 20v-3.5a2.5 2.5 0 0 1 5 0V20",key:"r6l5cz"}],["path",{d:"M20 18h-5",key:"18j1r2"}]],L=e("arrow-up-z-a",Tx);const Ux=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],ec=e("arrow-up",Ux);const Ox=[["path",{d:"m4 6 3-3 3 3",key:"9aidw8"}],["path",{d:"M7 17V3",key:"19qxw1"}],["path",{d:"m14 6 3-3 3 3",key:"6iy689"}],["path",{d:"M17 17V3",key:"o0fmgi"}],["path",{d:"M4 21h16",key:"1h09gz"}]],ac=e("arrows-up-from-line",Ox);const Gx=[["path",{d:"M12 6v12",key:"1vza4d"}],["path",{d:"M17.196 9 6.804 15",key:"1ah31z"}],["path",{d:"m6.804 9 10.392 6",key:"1b6pxd"}]],cc=e("asterisk",Gx);const Zx=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]],tc=e("at-sign",Zx);const Wx=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z",key:"1l2ple"}],["path",{d:"M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z",key:"1wam0m"}]],oc=e("atom",Wx);const Ex=[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]],dc=e("audio-lines",Ex);const Xx=[["path",{d:"M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2",key:"57tc96"}]],nc=e("audio-waveform",Xx);const Kx=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],hc=e("award",Kx);const Qx=[["path",{d:"m14 12-8.381 8.38a1 1 0 0 1-3.001-3L11 9",key:"5z9253"}],["path",{d:"M15 15.5a.5.5 0 0 0 .5.5A6.5 6.5 0 0 0 22 9.5a.5.5 0 0 0-.5-.5h-1.672a2 2 0 0 1-1.414-.586l-5.062-5.062a1.205 1.205 0 0 0-1.704 0L9.352 5.648a1.205 1.205 0 0 0 0 1.704l5.062 5.062A2 2 0 0 1 15 13.828z",key:"19zklq"}]],ic=e("axe",Qx);const Jx=[["path",{d:"M13.5 10.5 15 9",key:"1nsxvm"}],["path",{d:"M4 4v15a1 1 0 0 0 1 1h15",key:"1w6lkd"}],["path",{d:"M4.293 19.707 6 18",key:"3g1p8c"}],["path",{d:"m9 15 1.5-1.5",key:"1xfbes"}]],w=e("axis-3d",Jx);const Yx=[["path",{d:"M4 10a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z",key:"1ol0lm"}],["path",{d:"M8 10h8",key:"c7uz4u"}],["path",{d:"M8 18h8",key:"1no2b1"}],["path",{d:"M8 22v-6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v6",key:"1fr6do"}],["path",{d:"M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2",key:"donm21"}]],yc=e("backpack",Yx);const eL=[["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"11xh7x"}],["path",{d:"M9 12h.01",key:"157uk2"}]],rc=e("baby",eL);const aL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],kc=e("badge-alert",aL);const cL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M12 7v10",key:"jspqdw"}],["path",{d:"M15.4 10a4 4 0 1 0 0 4",key:"2eqtx8"}]],pc=e("badge-cent",cL);const tL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],f=e("badge-check",tL);const oL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]],sc=e("badge-dollar-sign",oL);const dL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M7 12h5",key:"gblrwe"}],["path",{d:"M15 9.4a4 4 0 1 0 0 5.2",key:"1makmb"}]],lc=e("badge-euro",dL);const nL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M8 8h8",key:"1bis0t"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m13 17-5-1h1a4 4 0 0 0 0-8",key:"nu2bwa"}]],uc=e("badge-indian-rupee",nL);const hL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"12",x2:"12",y1:"16",y2:"12",key:"1y1yb1"}],["line",{x1:"12",x2:"12.01",y1:"8",y2:"8",key:"110wyk"}]],Mc=e("badge-info",hL);const iL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 8 3 3v7",key:"17yadx"}],["path",{d:"m12 11 3-3",key:"p4cfq1"}],["path",{d:"M9 12h6",key:"1c52cq"}],["path",{d:"M9 16h6",key:"8wimt3"}]],vc=e("badge-japanese-yen",iL);const yL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],mc=e("badge-minus",yL);const rL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]],_c=e("badge-percent",rL);const kL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"12",x2:"12",y1:"8",y2:"16",key:"10p56q"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],gc=e("badge-plus",kL);const pL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M8 12h4",key:"qz6y1c"}],["path",{d:"M10 16V9.5a2.5 2.5 0 0 1 5 0",key:"3mlbjk"}],["path",{d:"M8 16h7",key:"sbedsn"}]],xc=e("badge-pound-sterling",pL);const sL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["line",{x1:"12",x2:"12.01",y1:"17",y2:"17",key:"io3f8k"}]],I=e("badge-question-mark",sL);const lL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M9 16h5",key:"1syiyw"}],["path",{d:"M9 12h5a2 2 0 1 0 0-4h-3v9",key:"1ge9c1"}]],Lc=e("badge-russian-ruble",lL);const uL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M11 17V8h4",key:"1bfq6y"}],["path",{d:"M11 12h3",key:"2eqnfz"}],["path",{d:"M9 16h4",key:"1skf3a"}]],wc=e("badge-swiss-franc",uL);const ML=[["path",{d:"M11 7v10a5 5 0 0 0 5-5",key:"1ja3ih"}],["path",{d:"m15 8-6 3",key:"4x0uwz"}],["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76",key:"18242g"}]],fc=e("badge-turkish-lira",ML);const vL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]],Ic=e("badge-x",vL);const mL=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}]],Cc=e("badge",mL);const _L=[["path",{d:"M22 18H6a2 2 0 0 1-2-2V7a2 2 0 0 0-2-2",key:"4irg2o"}],["path",{d:"M17 14V4a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v10",key:"14fcyx"}],["rect",{width:"13",height:"8",x:"8",y:"6",rx:"1",key:"o6oiis"}],["circle",{cx:"18",cy:"20",r:"2",key:"t9985n"}],["circle",{cx:"9",cy:"20",r:"2",key:"e5v82j"}]],Nc=e("baggage-claim",_L);const gL=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],bc=e("ban",gL);const xL=[["path",{d:"M4 13c3.5-2 8-2 10 2a5.5 5.5 0 0 1 8 5",key:"1cscit"}],["path",{d:"M5.15 17.89c5.52-1.52 8.65-6.89 7-12C11.55 4 11.5 2 13 2c3.22 0 5 5.5 5 8 0 6.5-4.2 12-10.49 12C5.11 22 2 22 2 20c0-1.5 1.14-1.55 3.15-2.11Z",key:"1y1nbv"}]],$c=e("banana",xL);const LL=[["path",{d:"M10 10.01h.01",key:"1e9xi7"}],["path",{d:"M10 14.01h.01",key:"ac23bv"}],["path",{d:"M14 10.01h.01",key:"2wfrvf"}],["path",{d:"M14 14.01h.01",key:"8tw8yn"}],["path",{d:"M18 6v11.5",key:"dkbidh"}],["path",{d:"M6 6v12",key:"vkc79e"}],["rect",{x:"2",y:"6",width:"20",height:"12",rx:"2",key:"1wpnh2"}]],qc=e("bandage",LL);const wL=[["path",{d:"M12 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5",key:"x6cv4u"}],["path",{d:"m16 19 3 3 3-3",key:"1ibux0"}],["path",{d:"M18 12h.01",key:"yjnet6"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M6 12h.01",key:"c2rlol"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],zc=e("banknote-arrow-down",wL);const fL=[["path",{d:"M12 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5",key:"x6cv4u"}],["path",{d:"M18 12h.01",key:"yjnet6"}],["path",{d:"M19 22v-6",key:"qhmiwi"}],["path",{d:"m22 19-3-3-3 3",key:"rn6bg2"}],["path",{d:"M6 12h.01",key:"c2rlol"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Sc=e("banknote-arrow-up",fL);const IL=[["path",{d:"M13 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5",key:"16nib6"}],["path",{d:"m17 17 5 5",key:"p7ous7"}],["path",{d:"M18 12h.01",key:"yjnet6"}],["path",{d:"m22 17-5 5",key:"gqnmv0"}],["path",{d:"M6 12h.01",key:"c2rlol"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Ac=e("banknote-x",IL);const CL=[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]],Hc=e("banknote",CL);const NL=[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M8 5v14",key:"1ybrkv"}],["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"M17 5v14",key:"ycjyhj"}],["path",{d:"M21 5v14",key:"nzette"}]],jc=e("barcode",NL);const bL=[["path",{d:"M10 3a41 41 0 0 0 0 18",key:"1qcnzb"}],["path",{d:"M14 3a41 41 0 0 1 0 18",key:"547vd4"}],["path",{d:"M17 3a2 2 0 0 1 1.68.92 15.25 15.25 0 0 1 0 16.16A2 2 0 0 1 17 21H7a2 2 0 0 1-1.68-.92 15.25 15.25 0 0 1 0-16.16A2 2 0 0 1 7 3z",key:"1wepyy"}],["path",{d:"M3.84 17h16.32",key:"1wh981"}],["path",{d:"M3.84 7h16.32",key:"19jf4x"}]],Vc=e("barrel",bL);const $L=[["path",{d:"M4 20h16",key:"14thso"}],["path",{d:"m6 16 6-12 6 12",key:"1b4byz"}],["path",{d:"M8 12h8",key:"1wcyev"}]],Pc=e("baseline",$L);const qL=[["path",{d:"M10 4 8 6",key:"1rru8s"}],["path",{d:"M17 19v2",key:"ts1sot"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M7 19v2",key:"12npes"}],["path",{d:"M9 5 7.621 3.621A2.121 2.121 0 0 0 4 5v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5",key:"14ym8i"}]],Bc=e("bath",qL);const zL=[["path",{d:"m11 7-3 5h4l-3 5",key:"b4a64w"}],["path",{d:"M14.856 6H16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.935",key:"lre1cr"}],["path",{d:"M22 14v-4",key:"14q9d5"}],["path",{d:"M5.14 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2.936",key:"13q5k0"}]],Fc=e("battery-charging",zL);const SL=[["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"}]],Dc=e("battery-full",SL);const AL=[["path",{d:"M22 14v-4",key:"14q9d5"}],["path",{d:"M6 14v-4",key:"14a6bd"}],["rect",{x:"2",y:"6",width:"16",height:"12",rx:"2",key:"13zb55"}]],Rc=e("battery-low",AL);const HL=[["path",{d:"M10 9v6",key:"17i7lo"}],["path",{d:"M12.543 6H16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.605",key:"o09yah"}],["path",{d:"M22 14v-4",key:"14q9d5"}],["path",{d:"M7 12h6",key:"iekk3h"}],["path",{d:"M7.606 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.606",key:"xyqvf1"}]],Tc=e("battery-plus",HL);const jL=[["path",{d:"M10 14v-4",key:"suye4c"}],["path",{d:"M22 14v-4",key:"14q9d5"}],["path",{d:"M6 14v-4",key:"14a6bd"}],["rect",{x:"2",y:"6",width:"16",height:"12",rx:"2",key:"13zb55"}]],Uc=e("battery-medium",jL);const VL=[["path",{d:"M10 17h.01",key:"nbq80n"}],["path",{d:"M10 7v6",key:"nne03l"}],["path",{d:"M14 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2",key:"1m83kb"}],["path",{d:"M22 14v-4",key:"14q9d5"}],["path",{d:"M6 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2",key:"h8lgfh"}]],Oc=e("battery-warning",VL);const PL=[["path",{d:"M 22 14 L 22 10",key:"nqc4tb"}],["rect",{x:"2",y:"6",width:"16",height:"12",rx:"2",key:"13zb55"}]],Gc=e("battery",PL);const BL=[["path",{d:"M9 9c-.64.64-1.521.954-2.402 1.165A6 6 0 0 0 8 22a13.96 13.96 0 0 0 9.9-4.1",key:"bq3udt"}],["path",{d:"M10.75 5.093A6 6 0 0 1 22 8c0 2.411-.61 4.68-1.683 6.66",key:"17ccse"}],["path",{d:"M5.341 10.62a4 4 0 0 0 6.487 1.208M10.62 5.341a4.015 4.015 0 0 1 2.039 2.04",key:"18zqgq"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],Zc=e("bean-off",BL);const FL=[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]],Wc=e("beaker",FL);const DL=[["path",{d:"M10.165 6.598C9.954 7.478 9.64 8.36 9 9c-.64.64-1.521.954-2.402 1.165A6 6 0 0 0 8 22c7.732 0 14-6.268 14-14a6 6 0 0 0-11.835-1.402Z",key:"1tvzk7"}],["path",{d:"M5.341 10.62a4 4 0 1 0 5.279-5.28",key:"2cyri2"}]],Ec=e("bean",DL);const RL=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Xc=e("bed-double",RL);const TL=[["path",{d:"M3 20v-8a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8",key:"1wm6mi"}],["path",{d:"M5 10V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v4",key:"4k93s5"}],["path",{d:"M3 18h18",key:"1h113x"}]],Kc=e("bed-single",TL);const UL=[["path",{d:"M2 4v16",key:"vw9hq8"}],["path",{d:"M2 8h18a2 2 0 0 1 2 2v10",key:"1dgv2r"}],["path",{d:"M2 17h20",key:"18nfp3"}],["path",{d:"M6 8v9",key:"1yriud"}]],Qc=e("bed",UL);const OL=[["path",{d:"M16.4 13.7A6.5 6.5 0 1 0 6.28 6.6c-1.1 3.13-.78 3.9-3.18 6.08A3 3 0 0 0 5 18c4 0 8.4-1.8 11.4-4.3",key:"cisjcv"}],["path",{d:"m18.5 6 2.19 4.5a6.48 6.48 0 0 1-2.29 7.2C15.4 20.2 11 22 7 22a3 3 0 0 1-2.68-1.66L2.4 16.5",key:"5byaag"}],["circle",{cx:"12.5",cy:"8.5",r:"2.5",key:"9738u8"}]],Jc=e("beef",OL);const GL=[["path",{d:"M13 13v5",key:"igwfh0"}],["path",{d:"M17 11.47V8",key:"16yw0g"}],["path",{d:"M17 11h1a3 3 0 0 1 2.745 4.211",key:"1xbt65"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 8v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-3",key:"c55o3e"}],["path",{d:"M7.536 7.535C6.766 7.649 6.154 8 5.5 8a2.5 2.5 0 0 1-1.768-4.268",key:"1ydug7"}],["path",{d:"M8.727 3.204C9.306 2.767 9.885 2 11 2c1.56 0 2 1.5 3 1.5s1.72-.5 2.5-.5a1 1 0 1 1 0 5c-.78 0-1.5-.5-2.5-.5a3.149 3.149 0 0 0-.842.12",key:"q81o7q"}],["path",{d:"M9 14.6V18",key:"20ek98"}]],Yc=e("beer-off",GL);const ZL=[["path",{d:"M17 11h1a3 3 0 0 1 0 6h-1",key:"1yp76v"}],["path",{d:"M9 12v6",key:"1u1cab"}],["path",{d:"M13 12v6",key:"1sugkk"}],["path",{d:"M14 7.5c-1 0-1.44.5-3 .5s-2-.5-3-.5-1.72.5-2.5.5a2.5 2.5 0 0 1 0-5c.78 0 1.57.5 2.5.5S9.44 2 11 2s2 1.5 3 1.5 1.72-.5 2.5-.5a2.5 2.5 0 0 1 0 5c-.78 0-1.5-.5-2.5-.5Z",key:"1510fo"}],["path",{d:"M5 8v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"19jb7n"}]],et=e("beer",ZL);const WL=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M13.916 2.314A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.74 7.327A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673 9 9 0 0 1-.585-.665",key:"1tip0g"}],["circle",{cx:"18",cy:"8",r:"3",key:"1g0gzu"}]],at=e("bell-dot",WL);const EL=[["path",{d:"M18.518 17.347A7 7 0 0 1 14 19",key:"1emhpo"}],["path",{d:"M18.8 4A11 11 0 0 1 20 9",key:"127b67"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["circle",{cx:"20",cy:"16",r:"2",key:"1v9bxh"}],["circle",{cx:"9",cy:"9",r:"7",key:"p2h5vp"}],["rect",{x:"4",y:"16",width:"10",height:"6",rx:"2",key:"bfnviv"}]],ct=e("bell-electric",EL);const XL=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M15 8h6",key:"8ybuxh"}],["path",{d:"M16.243 3.757A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673A9.4 9.4 0 0 1 18.667 12",key:"bdwj86"}]],tt=e("bell-minus",XL);const KL=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],ot=e("bell-off",KL);const QL=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M15 8h6",key:"8ybuxh"}],["path",{d:"M18 5v6",key:"g5ayrv"}],["path",{d:"M20.002 14.464a9 9 0 0 0 .738.863A1 1 0 0 1 20 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 8.75-5.332",key:"1abcvy"}]],dt=e("bell-plus",QL);const JL=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]],nt=e("bell-ring",JL);const YL=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],ht=e("bell",YL);const ew=[["rect",{width:"13",height:"7",x:"3",y:"3",rx:"1",key:"11xb64"}],["path",{d:"m22 15-3-3 3-3",key:"26chmm"}],["rect",{width:"13",height:"7",x:"3",y:"14",rx:"1",key:"k6ky7n"}]],C=e("between-horizontal-end",ew);const aw=[["rect",{width:"13",height:"7",x:"8",y:"3",rx:"1",key:"pkso9a"}],["path",{d:"m2 9 3 3-3 3",key:"1agib5"}],["rect",{width:"13",height:"7",x:"8",y:"14",rx:"1",key:"1q5fc1"}]],N=e("between-horizontal-start",aw);const cw=[["rect",{width:"7",height:"13",x:"3",y:"3",rx:"1",key:"1fdu0f"}],["path",{d:"m9 22 3-3 3 3",key:"17z65a"}],["rect",{width:"7",height:"13",x:"14",y:"3",rx:"1",key:"1squn4"}]],it=e("between-vertical-end",cw);const tw=[["path",{d:"M12.409 13.017A5 5 0 0 1 22 15c0 3.866-4 7-9 7-4.077 0-8.153-.82-10.371-2.462-.426-.316-.631-.832-.62-1.362C2.118 12.723 2.627 2 10 2a3 3 0 0 1 3 3 2 2 0 0 1-2 2c-1.105 0-1.64-.444-2-1",key:"1pmlyh"}],["path",{d:"M15 14a5 5 0 0 0-7.584 2",key:"5rb254"}],["path",{d:"M9.964 6.825C8.019 7.977 9.5 13 8 15",key:"kbvsx9"}]],yt=e("biceps-flexed",tw);const ow=[["rect",{width:"7",height:"13",x:"3",y:"8",rx:"1",key:"1fjrkv"}],["path",{d:"m15 2-3 3-3-3",key:"1uh6eb"}],["rect",{width:"7",height:"13",x:"14",y:"8",rx:"1",key:"w3fjg8"}]],rt=e("between-vertical-start",ow);const dw=[["circle",{cx:"18.5",cy:"17.5",r:"3.5",key:"15x4ox"}],["circle",{cx:"5.5",cy:"17.5",r:"3.5",key:"1noe27"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["path",{d:"M12 17.5V14l-3-3 4-3 2 3h2",key:"1npguv"}]],kt=e("bike",dw);const nw=[["rect",{x:"14",y:"14",width:"4",height:"6",rx:"2",key:"p02svl"}],["rect",{x:"6",y:"4",width:"4",height:"6",rx:"2",key:"xm4xkj"}],["path",{d:"M6 20h4",key:"1i6q5t"}],["path",{d:"M14 10h4",key:"ru81e7"}],["path",{d:"M6 14h2v6",key:"16z9wg"}],["path",{d:"M14 4h2v6",key:"1idq9u"}]],pt=e("binary",nw);const hw=[["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M19 7V4a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3",key:"3apit1"}],["path",{d:"M20 21a2 2 0 0 0 2-2v-3.851c0-1.39-2-2.962-2-4.829V8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v11a2 2 0 0 0 2 2z",key:"rhpgnw"}],["path",{d:"M 22 16 L 2 16",key:"14lkq7"}],["path",{d:"M4 21a2 2 0 0 1-2-2v-3.851c0-1.39 2-2.962 2-4.829V8a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v11a2 2 0 0 1-2 2z",key:"104b3k"}],["path",{d:"M9 7V4a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v3",key:"14fczp"}]],st=e("binoculars",hw);const iw=[["circle",{cx:"12",cy:"11.9",r:"2",key:"e8h31w"}],["path",{d:"M6.7 3.4c-.9 2.5 0 5.2 2.2 6.7C6.5 9 3.7 9.6 2 11.6",key:"17bolr"}],["path",{d:"m8.9 10.1 1.4.8",key:"15ezny"}],["path",{d:"M17.3 3.4c.9 2.5 0 5.2-2.2 6.7 2.4-1.2 5.2-.6 6.9 1.5",key:"wtwa5u"}],["path",{d:"m15.1 10.1-1.4.8",key:"1r0b28"}],["path",{d:"M16.7 20.8c-2.6-.4-4.6-2.6-4.7-5.3-.2 2.6-2.1 4.8-4.7 5.2",key:"m7qszh"}],["path",{d:"M12 13.9v1.6",key:"zfyyim"}],["path",{d:"M13.5 5.4c-1-.2-2-.2-3 0",key:"1bi9q0"}],["path",{d:"M17 16.4c.7-.7 1.2-1.6 1.5-2.5",key:"1rhjqw"}],["path",{d:"M5.5 13.9c.3.9.8 1.8 1.5 2.5",key:"8gsud3"}]],lt=e("biohazard",iw);const yw=[["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20",key:"oj1oa8"}],["path",{d:"m20 7 2 .5-2 .5",key:"12nv4d"}],["path",{d:"M10 18v3",key:"1yea0a"}],["path",{d:"M14 17.75V21",key:"1pymcb"}],["path",{d:"M7 18a6 6 0 0 0 3.84-10.61",key:"1npnn0"}]],ut=e("bird",yw);const rw=[["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m17 18 1.956-11.468",key:"l5n2ro"}],["path",{d:"m3 8 7.82-5.615a2 2 0 0 1 2.36 0L21 8",key:"1sy6n7"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M7 18 5.044 6.532",key:"1uqdf2"}],["circle",{cx:"12",cy:"10",r:"2",key:"1yojzk"}]],Mt=e("birdhouse",rw);const kw=[["path",{d:"M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894m-1.216 6.894L5.86 18.047m5.908 1.042-.347 1.97m1.563-8.864c4.924.869 6.14-6.025 1.215-6.893m-1.215 6.893-3.94-.694m5.155-6.2L8.29 4.26m5.908 1.042.348-1.97M7.48 20.364l3.126-17.727",key:"yr8idg"}]],vt=e("bitcoin",kw);const pw=[["circle",{cx:"9",cy:"9",r:"7",key:"p2h5vp"}],["circle",{cx:"15",cy:"15",r:"7",key:"19ennj"}]],mt=e("blend",pw);const sw=[["path",{d:"M3 3h18",key:"o7r712"}],["path",{d:"M20 7H8",key:"gd2fo2"}],["path",{d:"M20 11H8",key:"1ynp89"}],["path",{d:"M10 19h10",key:"19hjk5"}],["path",{d:"M8 15h12",key:"1yqzne"}],["path",{d:"M4 3v14",key:"fggqzn"}],["circle",{cx:"4",cy:"19",r:"2",key:"p3m9r0"}]],_t=e("blinds",sw);const lw=[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]],gt=e("blocks",lw);const uw=[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}],["line",{x1:"18",x2:"21",y1:"12",y2:"12",key:"1rsjjs"}],["line",{x1:"3",x2:"6",y1:"12",y2:"12",key:"11yl8c"}]],xt=e("bluetooth-connected",uw);const Mw=[["path",{d:"m17 17-5 5V12l-5 5",key:"v5aci6"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M14.5 9.5 17 7l-5-5v4.5",key:"1kddfz"}]],Lt=e("bluetooth-off",Mw);const vw=[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}],["path",{d:"M20.83 14.83a4 4 0 0 0 0-5.66",key:"k8tn1j"}],["path",{d:"M18 12h.01",key:"yjnet6"}]],wt=e("bluetooth-searching",vw);const mw=[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}]],ft=e("bluetooth",mw);const _w=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],It=e("bold",_w);const gw=[["path",{d:"M21 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.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],Ct=e("bolt",gw);const xw=[["circle",{cx:"11",cy:"13",r:"9",key:"hd149"}],["path",{d:"M14.35 4.65 16.3 2.7a2.41 2.41 0 0 1 3.4 0l1.6 1.6a2.4 2.4 0 0 1 0 3.4l-1.95 1.95",key:"jp4j1b"}],["path",{d:"m22 2-1.5 1.5",key:"ay92ug"}]],Nt=e("bomb",xw);const Lw=[["path",{d:"M17 10c.7-.7 1.69 0 2.5 0a2.5 2.5 0 1 0 0-5 .5.5 0 0 1-.5-.5 2.5 2.5 0 1 0-5 0c0 .81.7 1.8 0 2.5l-7 7c-.7.7-1.69 0-2.5 0a2.5 2.5 0 0 0 0 5c.28 0 .5.22.5.5a2.5 2.5 0 1 0 5 0c0-.81-.7-1.8 0-2.5Z",key:"w610uw"}]],bt=e("bone",Lw);const ww=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"m8 13 4-7 4 7",key:"4rari8"}],["path",{d:"M9.1 11h5.7",key:"1gkovt"}]],$t=e("book-a",ww);const fw=[["path",{d:"M12 13h.01",key:"y0uutt"}],["path",{d:"M12 6v3",key:"1m4b9j"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],qt=e("book-alert",fw);const Iw=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"m9 9.5 2 2 4-4",key:"1dth82"}]],zt=e("book-check",Iw);const Cw=[["path",{d:"M5 7a2 2 0 0 0-2 2v11",key:"1yhqjt"}],["path",{d:"M5.803 18H5a2 2 0 0 0 0 4h9.5a.5.5 0 0 0 .5-.5V21",key:"edzzo5"}],["path",{d:"M9 15V4a2 2 0 0 1 2-2h9.5a.5.5 0 0 1 .5.5v14a.5.5 0 0 1-.5.5H11a2 2 0 0 1 0-4h10",key:"1nwzrg"}]],St=e("book-copy",Cw);const Nw=[["path",{d:"M12 6v7",key:"1f6ttz"}],["path",{d:"M16 8v3",key:"gejaml"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 8v3",key:"1qzp49"}]],At=e("book-audio",Nw);const bw=[["path",{d:"M12 17h1.5",key:"1gkc67"}],["path",{d:"M12 22h1.5",key:"1my7sn"}],["path",{d:"M12 2h1.5",key:"19tvb7"}],["path",{d:"M17.5 22H19a1 1 0 0 0 1-1",key:"10akbh"}],["path",{d:"M17.5 2H19a1 1 0 0 1 1 1v1.5",key:"1vrfjs"}],["path",{d:"M20 14v3h-2.5",key:"1naeju"}],["path",{d:"M20 8.5V10",key:"1ctpfu"}],["path",{d:"M4 10V8.5",key:"1o3zg5"}],["path",{d:"M4 19.5V14",key:"ob81pf"}],["path",{d:"M4 4.5A2.5 2.5 0 0 1 6.5 2H8",key:"s8vcyb"}],["path",{d:"M8 22H6.5a1 1 0 0 1 0-5H8",key:"1cu73q"}]],b=e("book-dashed",bw);const $w=[["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"m9 10 3 3 3-3",key:"zt5b4y"}]],Ht=e("book-down",$w);const qw=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 12v-2a4 4 0 0 1 8 0v2",key:"1vsqkj"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]],jt=e("book-headphones",qw);const zw=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8.62 9.8A2.25 2.25 0 1 1 12 6.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z",key:"9v40y5"}]],Vt=e("book-heart",zw);const Sw=[["path",{d:"m20 13.7-2.1-2.1a2 2 0 0 0-2.8 0L9.7 17",key:"q6ojf0"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["circle",{cx:"10",cy:"8",r:"2",key:"2qkj4p"}]],Pt=e("book-image",Sw);const Aw=[["path",{d:"m19 3 1 1",key:"ze14oc"}],["path",{d:"m20 2-4.5 4.5",key:"1sppr8"}],["path",{d:"M20 7.898V21a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"1xzogz"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2h7.844",key:"vtdg6h"}],["circle",{cx:"14",cy:"8",r:"2",key:"u49eql"}]],Bt=e("book-key",Aw);const Hw=[["path",{d:"M18 6V4a2 2 0 1 0-4 0v2",key:"1aquzs"}],["path",{d:"M20 15v6a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"1rkj32"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H10",key:"18wgow"}],["rect",{x:"12",y:"6",width:"8",height:"5",rx:"1",key:"73l30o"}]],Ft=e("book-lock",Hw);const jw=[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],Dt=e("book-marked",jw);const Vw=[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]],Rt=e("book-open-check",Vw);const Pw=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M9 10h6",key:"9gxzsh"}]],Tt=e("book-minus",Pw);const Bw=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M16 12h2",key:"7q9ll5"}],["path",{d:"M16 8h2",key:"msurwy"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}],["path",{d:"M6 12h2",key:"32wvfc"}],["path",{d:"M6 8h2",key:"30oboj"}]],Ut=e("book-open-text",Bw);const Fw=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Ot=e("book-open",Fw);const Dw=[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M9 10h6",key:"9gxzsh"}]],Gt=e("book-plus",Dw);const Rw=[["path",{d:"M11 22H5.5a1 1 0 0 1 0-5h4.501",key:"mcbepb"}],["path",{d:"m21 22-1.879-1.878",key:"12q7x1"}],["path",{d:"M3 19.5v-15A2.5 2.5 0 0 1 5.5 2H18a1 1 0 0 1 1 1v8",key:"olfd5n"}],["circle",{cx:"17",cy:"18",r:"3",key:"82mm0e"}]],Zt=e("book-search",Rw);const Tw=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]],Wt=e("book-text",Tw);const Uw=[["path",{d:"M10 13h4",key:"ytezjc"}],["path",{d:"M12 6v7",key:"1f6ttz"}],["path",{d:"M16 8V6H8v2",key:"x8j6u4"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],Et=e("book-type",Uw);const Ow=[["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M18 2h1a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"161d7n"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2",key:"1lorq7"}],["path",{d:"m9 10 3-3 3 3",key:"11gsxs"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],Xt=e("book-up-2",Ow);const Gw=[["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"m9 10 3-3 3 3",key:"11gsxs"}]],Kt=e("book-up",Gw);const Zw=[["path",{d:"M15 13a3 3 0 1 0-6 0",key:"10j68g"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}]],Qt=e("book-user",Zw);const Ww=[["path",{d:"m14.5 7-5 5",key:"dy991v"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"m9.5 7 5 5",key:"s45iea"}]],Jt=e("book-x",Ww);const Ew=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],Yt=e("book",Ew);const Xw=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2Z",key:"169p4p"}],["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}]],eo=e("bookmark-check",Xw);const Kw=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}],["line",{x1:"15",x2:"9",y1:"10",y2:"10",key:"1gty7f"}]],ao=e("bookmark-minus",Kw);const Qw=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}],["line",{x1:"12",x2:"12",y1:"7",y2:"13",key:"1cppfj"}],["line",{x1:"15",x2:"9",y1:"10",y2:"10",key:"1gty7f"}]],co=e("bookmark-plus",Qw);const Jw=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2Z",key:"169p4p"}],["path",{d:"m14.5 7.5-5 5",key:"3lb6iw"}],["path",{d:"m9.5 7.5 5 5",key:"ko136h"}]],to=e("bookmark-x",Jw);const Yw=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]],oo=e("bookmark",Yw);const ef=[["path",{d:"M4 9V5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"vvzvr1"}],["path",{d:"M8 8v1",key:"xcqmfk"}],["path",{d:"M12 8v1",key:"1rj8u4"}],["path",{d:"M16 8v1",key:"1q12zr"}],["rect",{width:"20",height:"12",x:"2",y:"9",rx:"2",key:"igpb89"}],["circle",{cx:"8",cy:"15",r:"2",key:"fa4a8s"}],["circle",{cx:"16",cy:"15",r:"2",key:"14c3ya"}]],no=e("boom-box",ef);const af=[["path",{d:"M12 6V2H8",key:"1155em"}],["path",{d:"M15 11v2",key:"i11awn"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 16a2 2 0 0 1-2 2H8.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 4 20.286V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2z",key:"11gyqh"}],["path",{d:"M9 11v2",key:"1ueba0"}]],ho=e("bot-message-square",af);const cf=[["path",{d:"M13.67 8H18a2 2 0 0 1 2 2v4.33",key:"7az073"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M22 22 2 2",key:"1r8tn9"}],["path",{d:"M8 8H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 1.414-.586",key:"s09a7a"}],["path",{d:"M9 13v2",key:"rq6x2g"}],["path",{d:"M9.67 4H12v2.33",key:"110xot"}]],io=e("bot-off",cf);const tf=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],yo=e("bot",tf);const of=[["path",{d:"M10 3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a6 6 0 0 0 1.2 3.6l.6.8A6 6 0 0 1 17 13v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-8a6 6 0 0 1 1.2-3.6l.6-.8A6 6 0 0 0 10 5z",key:"blqgoc"}],["path",{d:"M17 13h-4a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h4",key:"43jbee"}]],ro=e("bottle-wine",of);const df=[["path",{d:"M17 3h4v4",key:"19p9u1"}],["path",{d:"M18.575 11.082a13 13 0 0 1 1.048 9.027 1.17 1.17 0 0 1-1.914.597L14 17",key:"12t3w9"}],["path",{d:"M7 10 3.29 6.29a1.17 1.17 0 0 1 .6-1.91 13 13 0 0 1 9.03 1.05",key:"ogng5l"}],["path",{d:"M7 14a1.7 1.7 0 0 0-1.207.5l-2.646 2.646A.5.5 0 0 0 3.5 18H5a1 1 0 0 1 1 1v1.5a.5.5 0 0 0 .854.354L9.5 18.207A1.7 1.7 0 0 0 10 17v-2a1 1 0 0 0-1-1z",key:"8v3fy2"}],["path",{d:"M9.707 14.293 21 3",key:"ydm3bn"}]],ko=e("bow-arrow",df);const nf=[["path",{d:"M21 8a2 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.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],po=e("box",nf);const hf=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],so=e("boxes",hf);const yf=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],$=e("braces",yf);const rf=[["path",{d:"M16 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3",key:"1kt8lf"}],["path",{d:"M8 21H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3",key:"gduv9"}]],lo=e("brackets",rf);const kf=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],uo=e("brain-circuit",kf);const pf=[["path",{d:"m10.852 14.772-.383.923",key:"11vil6"}],["path",{d:"m10.852 9.228-.383-.923",key:"1fjppe"}],["path",{d:"m13.148 14.772.382.924",key:"je3va1"}],["path",{d:"m13.531 8.305-.383.923",key:"18epck"}],["path",{d:"m14.772 10.852.923-.383",key:"k9m8cz"}],["path",{d:"m14.772 13.148.923.383",key:"1xvhww"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 0 0-5.63-1.446 3 3 0 0 0-.368 1.571 4 4 0 0 0-2.525 5.771",key:"jcbbz1"}],["path",{d:"M17.998 5.125a4 4 0 0 1 2.525 5.771",key:"1kkn7e"}],["path",{d:"M19.505 10.294a4 4 0 0 1-1.5 7.706",key:"18bmuc"}],["path",{d:"M4.032 17.483A4 4 0 0 0 11.464 20c.18-.311.892-.311 1.072 0a4 4 0 0 0 7.432-2.516",key:"uozx0d"}],["path",{d:"M4.5 10.291A4 4 0 0 0 6 18",key:"whdemb"}],["path",{d:"M6.002 5.125a3 3 0 0 0 .4 1.375",key:"1kqy2g"}],["path",{d:"m9.228 10.852-.923-.383",key:"1wtb30"}],["path",{d:"m9.228 13.148-.923.383",key:"1a830x"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Mo=e("brain-cog",pf);const sf=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],vo=e("brain",sf);const lf=[["path",{d:"M16 3v2.107",key:"gq8xun"}],["path",{d:"M17 9c1 3 2.5 3.5 3.5 4.5A5 5 0 0 1 22 17a5 5 0 0 1-10 0c0-.3 0-.6.1-.9a2 2 0 1 0 3.3-2C13 11.5 16 9 17 9",key:"1l2pih"}],["path",{d:"M21 8.274V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.938",key:"jrnqjp"}],["path",{d:"M3 15h5.253",key:"xqg7rb"}],["path",{d:"M3 9h8.228",key:"1ppb70"}],["path",{d:"M8 15v6",key:"1stoo3"}],["path",{d:"M8 3v6",key:"vlvjmk"}]],mo=e("brick-wall-fire",lf);const uf=[["path",{d:"M12 9v1.258",key:"iwpddn"}],["path",{d:"M16 3v5.46",key:"d7ew98"}],["path",{d:"M21 9.118V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h5.75",key:"137t5x"}],["path",{d:"M22 17.5c0 2.499-1.75 3.749-3.83 4.474a.5.5 0 0 1-.335-.005c-2.085-.72-3.835-1.97-3.835-4.47V14a.5.5 0 0 1 .5-.499c1 0 2.25-.6 3.12-1.36a.6.6 0 0 1 .76-.001c.875.765 2.12 1.36 3.12 1.36a.5.5 0 0 1 .5.5z",key:"16j3tf"}],["path",{d:"M3 15h7",key:"1qldh6"}],["path",{d:"M3 9h12.142",key:"1yjd6m"}],["path",{d:"M8 15v6",key:"1stoo3"}],["path",{d:"M8 3v6",key:"vlvjmk"}]],_o=e("brick-wall-shield",uf);const Mf=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 9v6",key:"199k2o"}],["path",{d:"M16 15v6",key:"8rj2es"}],["path",{d:"M16 3v6",key:"1j6rpj"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 15v6",key:"1stoo3"}],["path",{d:"M8 3v6",key:"vlvjmk"}]],go=e("brick-wall",Mf);const vf=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],xo=e("briefcase-business",vf);const mf=[["path",{d:"M10 20v2",key:"1n8e1g"}],["path",{d:"M14 20v2",key:"1lq872"}],["path",{d:"M18 20v2",key:"10uadw"}],["path",{d:"M21 20H3",key:"kdqkdp"}],["path",{d:"M6 20v2",key:"a9bc87"}],["path",{d:"M8 16V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v12",key:"17n9tx"}],["rect",{x:"4",y:"6",width:"16",height:"10",rx:"2",key:"1097i5"}]],Lo=e("briefcase-conveyor-belt",mf);const _f=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],wo=e("briefcase",_f);const gf=[["path",{d:"M12 11v4",key:"a6ujw6"}],["path",{d:"M14 13h-4",key:"1pl8zg"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M18 6v14",key:"1mu4gy"}],["path",{d:"M6 6v14",key:"1s15cj"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],fo=e("briefcase-medical",gf);const xf=[["rect",{x:"8",y:"8",width:"8",height:"8",rx:"2",key:"yj20xf"}],["path",{d:"M4 10a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2",key:"1ltk23"}],["path",{d:"M14 20a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2",key:"1q24h9"}]],Io=e("bring-to-front",xf);const Lf=[["path",{d:"m16 22-1-4",key:"1ow2iv"}],["path",{d:"M19 13.99a1 1 0 0 0 1-1V12a2 2 0 0 0-2-2h-3a1 1 0 0 1-1-1V4a2 2 0 0 0-4 0v5a1 1 0 0 1-1 1H6a2 2 0 0 0-2 2v.99a1 1 0 0 0 1 1",key:"iw8jdu"}],["path",{d:"M5 14h14l1.973 6.767A1 1 0 0 1 20 22H4a1 1 0 0 1-.973-1.233z",key:"1soew8"}],["path",{d:"m8 22 1-4",key:"s3unb"}]],Co=e("brush-cleaning",Lf);const wf=[["path",{d:"m11 10 3 3",key:"fzmg1i"}],["path",{d:"M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z",key:"p4q2r7"}],["path",{d:"M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031",key:"wy6l02"}]],No=e("brush",wf);const ff=[["path",{d:"M7.001 15.085A1.5 1.5 0 0 1 9 16.5",key:"y44lvh"}],["circle",{cx:"18.5",cy:"8.5",r:"3.5",key:"1wadoa"}],["circle",{cx:"7.5",cy:"16.5",r:"5.5",key:"6mdt3g"}],["circle",{cx:"7.5",cy:"4.5",r:"2.5",key:"637s54"}]],bo=e("bubbles",ff);const If=[["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M15 7.13V6a3 3 0 0 0-5.14-2.1L8 2",key:"vl8zik"}],["path",{d:"M18 12.34V11a4 4 0 0 0-4-4h-1.3",key:"sz915m"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-3.34",key:"1y15gv"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M7.7 7.7A4 4 0 0 0 6 11v3a6 6 0 0 0 11.13 3.13",key:"1njkjs"}]],$o=e("bug-off",If);const Cf=[["path",{d:"M10 19.655A6 6 0 0 1 6 14v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 3.97",key:"1gnv52"}],["path",{d:"M14 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"1weqy9"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["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"}]],qo=e("bug-play",Cf);const Nf=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],zo=e("building-2",Nf);const bf=[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],So=e("building",bf);const $f=[["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"}]],Ao=e("bug",$f);const qf=[["path",{d:"M4 6 2 7",key:"1mqr15"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"m22 7-2-1",key:"1umjhc"}],["rect",{width:"16",height:"16",x:"4",y:"3",rx:"2",key:"1wxw4b"}],["path",{d:"M4 11h16",key:"mpoxn0"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M6 19v2",key:"1loha6"}],["path",{d:"M18 21v-2",key:"sqyl04"}]],Ho=e("bus-front",qf);const zf=[["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"}]],jo=e("bus",zf);const Sf=[["path",{d:"M10 3h.01",key:"lbucoy"}],["path",{d:"M14 2h.01",key:"1k8aa1"}],["path",{d:"m2 9 20-5",key:"1kz0j5"}],["path",{d:"M12 12V6.5",key:"1vbrij"}],["rect",{width:"16",height:"10",x:"4",y:"12",rx:"3",key:"if91er"}],["path",{d:"M9 12v5",key:"3anwtq"}],["path",{d:"M15 12v5",key:"5xh3zn"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],Vo=e("cable-car",Sf);const Af=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],Po=e("cable",Af);const Hf=[["path",{d:"M16 13H3",key:"1wpj08"}],["path",{d:"M16 17H3",key:"3lvfcd"}],["path",{d:"m7.2 7.9-3.388 2.5A2 2 0 0 0 3 12.01V20a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-8.654c0-2-2.44-6.026-6.44-8.026a1 1 0 0 0-1.082.057L10.4 5.6",key:"1gmhf7"}],["circle",{cx:"9",cy:"7",r:"2",key:"1305pl"}]],Bo=e("cake-slice",Hf);const jf=[["path",{d:"M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8",key:"1w3rig"}],["path",{d:"M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1",key:"n2jgmb"}],["path",{d:"M2 21h20",key:"1nyx9w"}],["path",{d:"M7 8v3",key:"1qtyvj"}],["path",{d:"M12 8v3",key:"hwp4zt"}],["path",{d:"M17 8v3",key:"1i6e5u"}],["path",{d:"M7 4h.01",key:"1bh4kh"}],["path",{d:"M12 4h.01",key:"1ujb9j"}],["path",{d:"M17 4h.01",key:"1upcoc"}]],Fo=e("cake",jf);const Vf=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],Do=e("calculator",Vf);const Pf=[["path",{d:"M11 14h1v4",key:"fy54vd"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]],Ro=e("calendar-1",Pf);const Bf=[["path",{d:"m14 18 4 4 4-4",key:"1waygx"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M18 14v8",key:"irew45"}],["path",{d:"M21 11.354V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.343",key:"bse4f3"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}]],To=e("calendar-arrow-down",Bf);const Ff=[["path",{d:"m14 18 4-4 4 4",key:"ftkppy"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M18 22v-8",key:"su0gjh"}],["path",{d:"M21 11.343V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h9",key:"1exg90"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}]],Uo=e("calendar-arrow-up",Ff);const Df=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 14V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8",key:"bce9hv"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m16 20 2 2 4-4",key:"13tcca"}]],Oo=e("calendar-check-2",Df);const Rf=[["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"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Go=e("calendar-check",Rf);const Tf=[["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"}]],Zo=e("calendar-clock",Tf);const Uf=[["path",{d:"m15.228 16.852-.923-.383",key:"npixar"}],["path",{d:"m15.228 19.148-.923.383",key:"51cr3n"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"m16.47 14.305.382.923",key:"obybxd"}],["path",{d:"m16.852 20.772-.383.924",key:"dpfhf9"}],["path",{d:"m19.148 15.228.383-.923",key:"1reyyz"}],["path",{d:"m19.53 21.696-.382-.924",key:"1goivc"}],["path",{d:"m20.772 16.852.924-.383",key:"htqkph"}],["path",{d:"m20.772 19.148.924.383",key:"9w9pjp"}],["path",{d:"M21 10.592V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"1pvbig"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]],Wo=e("calendar-cog",Uf);const Of=[["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"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Eo=e("calendar-days",Of);const Gf=[["path",{d:"M3 20a2 2 0 0 0 2 2h10a2.4 2.4 0 0 0 1.706-.706l3.588-3.588A2.4 2.4 0 0 0 21 16V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z",key:"r586nh"}],["path",{d:"M15 22v-5a1 1 0 0 1 1-1h5",key:"xl3app"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}]],Xo=e("calendar-fold",Gf);const Zf=[["path",{d:"M12.127 22H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.125",key:"vxdnp4"}],["path",{d:"M14.62 18.8A2.25 2.25 0 1 1 18 15.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z",key:"15cy7q"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}]],Ko=e("calendar-heart",Zf);const Wf=[["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"}],["path",{d:"M10 16h4",key:"17e571"}]],Qo=e("calendar-minus-2",Wf);const Ef=[["path",{d:"M4.2 4.2A2 2 0 0 0 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 1.82-1.18",key:"16swn3"}],["path",{d:"M21 15.5V6a2 2 0 0 0-2-2H9.5",key:"yhw86o"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h7",key:"1wap6i"}],["path",{d:"M21 10h-5.5",key:"quycpq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Jo=e("calendar-off",Ef);const Xf=[["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 15V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8.5",key:"1scpom"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}]],Yo=e("calendar-minus",Xf);const Kf=[["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"}],["path",{d:"M10 16h4",key:"17e571"}],["path",{d:"M12 14v4",key:"1thi36"}]],ed=e("calendar-plus-2",Kf);const Qf=[["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M21 12.598V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8.5",key:"1glfrc"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}]],ad=e("calendar-plus",Qf);const Jf=[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M17 14h-6",key:"bkmgh3"}],["path",{d:"M13 18H7",key:"bb0bb7"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 18h.01",key:"1bdyru"}]],cd=e("calendar-range",Jf);const Yf=[["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 11.75V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.25",key:"1jrsq6"}],["path",{d:"m22 22-1.875-1.875",key:"13zax7"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]],td=e("calendar-search",Yf);const eI=[["path",{d:"M11 10v4h4",key:"172dkj"}],["path",{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5",key:"vu0qm5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5",key:"1qgeyt"}],["path",{d:"M21 22v-4h-4",key:"hrummi"}],["path",{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3",key:"mctw84"}],["path",{d:"M3 10h4",key:"1el30a"}],["path",{d:"M8 2v4",key:"1cmpym"}]],od=e("calendar-sync",eI);const aI=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8",key:"3spt84"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m17 22 5-5",key:"1k6ppv"}],["path",{d:"m17 17 5 5",key:"p7ous7"}]],dd=e("calendar-x-2",aI);const cI=[["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"}],["path",{d:"m14 14-4 4",key:"rymu2i"}],["path",{d:"m10 14 4 4",key:"3sz06r"}]],nd=e("calendar-x",cI);const tI=[["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"}]],hd=e("calendar",tI);const oI=[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M15.726 21.01A2 2 0 0 1 14 22H4a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2",key:"j6srht"}],["path",{d:"M18 2v2",key:"1kh14s"}],["path",{d:"M2 13h2",key:"13gyu8"}],["path",{d:"M8 8h14",key:"12jxz2"}],["rect",{x:"8",y:"3",width:"14",height:"14",rx:"2",key:"nsru6w"}]],id=e("calendars",oI);const dI=[["path",{d:"M14.564 14.558a3 3 0 1 1-4.122-4.121",key:"1rnrzw"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M20 20H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 .819-.175",key:"1x3arw"}],["path",{d:"M9.695 4.024A2 2 0 0 1 10.004 4h3.993a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v7.344",key:"1i84u0"}]],yd=e("camera-off",dI);const nI=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],rd=e("camera",nI);const hI=[["path",{d:"M5.7 21a2 2 0 0 1-3.5-2l8.6-14a6 6 0 0 1 10.4 6 2 2 0 1 1-3.464-2 2 2 0 1 0-3.464-2Z",key:"isaq8g"}],["path",{d:"M17.75 7 15 2.1",key:"12x7e8"}],["path",{d:"M10.9 4.8 13 9",key:"100a87"}],["path",{d:"m7.9 9.7 2 4.4",key:"ntfhaj"}],["path",{d:"M4.9 14.7 7 18.9",key:"1x43jy"}]],kd=e("candy-cane",hI);const iI=[["path",{d:"M10 10v7.9",key:"m8g9tt"}],["path",{d:"M11.802 6.145a5 5 0 0 1 6.053 6.053",key:"dn87i3"}],["path",{d:"M14 6.1v2.243",key:"1kzysn"}],["path",{d:"m15.5 15.571-.964.964a5 5 0 0 1-7.071 0 5 5 0 0 1 0-7.07l.964-.965",key:"3sxy18"}],["path",{d:"M16 7V3a1 1 0 0 1 1.707-.707 2.5 2.5 0 0 0 2.152.717 1 1 0 0 1 1.131 1.131 2.5 2.5 0 0 0 .717 2.152A1 1 0 0 1 21 8h-4",key:"gpb6xx"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8 17v4a1 1 0 0 1-1.707.707 2.5 2.5 0 0 0-2.152-.717 1 1 0 0 1-1.131-1.131 2.5 2.5 0 0 0-.717-2.152A1 1 0 0 1 3 16h4",key:"qexcha"}]],pd=e("candy-off",iI);const yI=[["path",{d:"M10 7v10.9",key:"1gynux"}],["path",{d:"M14 6.1V17",key:"116kdf"}],["path",{d:"M16 7V3a1 1 0 0 1 1.707-.707 2.5 2.5 0 0 0 2.152.717 1 1 0 0 1 1.131 1.131 2.5 2.5 0 0 0 .717 2.152A1 1 0 0 1 21 8h-4",key:"gpb6xx"}],["path",{d:"M16.536 7.465a5 5 0 0 0-7.072 0l-2 2a5 5 0 0 0 0 7.07 5 5 0 0 0 7.072 0l2-2a5 5 0 0 0 0-7.07",key:"1tsln4"}],["path",{d:"M8 17v4a1 1 0 0 1-1.707.707 2.5 2.5 0 0 0-2.152-.717 1 1 0 0 1-1.131-1.131 2.5 2.5 0 0 0-.717-2.152A1 1 0 0 1 3 16h4",key:"qexcha"}]],sd=e("candy",yI);const rI=[["path",{d:"M12 22v-4",key:"1utk9m"}],["path",{d:"M7 12c-1.5 0-4.5 1.5-5 3 3.5 1.5 6 1 6 1-1.5 1.5-2 3.5-2 5 2.5 0 4.5-1.5 6-3 1.5 1.5 3.5 3 6 3 0-1.5-.5-3.5-2-5 0 0 2.5.5 6-1-.5-1.5-3.5-3-5-3 1.5-1 4-4 4-6-2.5 0-5.5 1.5-7 3 0-2.5-.5-5-2-7-1.5 2-2 4.5-2 7-1.5-1.5-4.5-3-7-3 0 2 2.5 5 4 6",key:"1mezod"}]],ld=e("cannabis",rI);const kI=[["path",{d:"M10.5 5H19a2 2 0 0 1 2 2v8.5",key:"jqtk4d"}],["path",{d:"M17 11h-.5",key:"1961ue"}],["path",{d:"M19 19H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2",key:"1keqsi"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M7 11h4",key:"1o1z6v"}],["path",{d:"M7 15h2.5",key:"1ina1g"}]],ud=e("captions-off",kI);const pI=[["rect",{width:"18",height:"14",x:"3",y:"5",rx:"2",ry:"2",key:"12ruh7"}],["path",{d:"M7 15h4M15 15h2M7 11h2M13 11h4",key:"1ueiar"}]],q=e("captions",pI);const sI=[["path",{d:"m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8",key:"1imjwt"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 14h.01",key:"7oqj8z"}],["rect",{width:"18",height:"8",x:"3",y:"10",rx:"2",key:"a7itu8"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],Md=e("car-front",sI);const lI=[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8",key:"1imjwt"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 14h.01",key:"7oqj8z"}],["rect",{width:"18",height:"8",x:"3",y:"10",rx:"2",key:"a7itu8"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],vd=e("car-taxi-front",lI);const uI=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],md=e("car",uI);const MI=[["path",{d:"M18 19V9a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v8a2 2 0 0 0 2 2h2",key:"19jm3t"}],["path",{d:"M2 9h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H2",key:"13hakp"}],["path",{d:"M22 17v1a1 1 0 0 1-1 1H10v-9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9",key:"1crci8"}],["circle",{cx:"8",cy:"19",r:"2",key:"t8fc5s"}]],_d=e("caravan",MI);const vI=[["path",{d:"M12 14v4",key:"1thi36"}],["path",{d:"M14.172 2a2 2 0 0 1 1.414.586l3.828 3.828A2 2 0 0 1 20 7.828V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z",key:"1o66bk"}],["path",{d:"M8 14h8",key:"1fgep2"}],["rect",{x:"8",y:"10",width:"8",height:"8",rx:"1",key:"1aonk6"}]],gd=e("card-sim",vI);const mI=[["path",{d:"M2.27 21.7s9.87-3.5 12.73-6.36a4.5 4.5 0 0 0-6.36-6.37C5.77 11.84 2.27 21.7 2.27 21.7zM8.64 14l-2.05-2.04M15.34 15l-2.46-2.46",key:"rfqxbe"}],["path",{d:"M22 9s-1.33-2-3.5-2C16.86 7 15 9 15 9s1.33 2 3.5 2S22 9 22 9z",key:"6b25w4"}],["path",{d:"M15 2s-2 1.33-2 3.5S15 9 15 9s2-1.84 2-3.5C17 3.33 15 2 15 2z",key:"fn65lo"}]],xd=e("carrot",mI);const _I=[["path",{d:"M10 9v7",key:"ylp826"}],["path",{d:"M14 6v10",key:"1jy4vg"}],["circle",{cx:"17.5",cy:"12.5",r:"3.5",key:"1a9481"}],["circle",{cx:"6.5",cy:"12.5",r:"3.5",key:"2jlv1r"}]],Ld=e("case-lower",_I);const gI=[["path",{d:"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16",key:"d5nyq2"}],["path",{d:"M22 9v7",key:"pvm9v3"}],["path",{d:"M3.304 13h6.392",key:"1q3zxz"}],["circle",{cx:"18.5",cy:"12.5",r:"3.5",key:"z97x68"}]],wd=e("case-sensitive",gI);const xI=[["path",{d:"M15 11h4.5a1 1 0 0 1 0 5h-4a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h3a1 1 0 0 1 0 5",key:"nxs35"}],["path",{d:"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16",key:"d5nyq2"}],["path",{d:"M3.304 13h6.392",key:"1q3zxz"}]],fd=e("case-upper",xI);const LI=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["circle",{cx:"8",cy:"10",r:"2",key:"1xl4ub"}],["path",{d:"M8 12h8",key:"1wcyev"}],["circle",{cx:"16",cy:"10",r:"2",key:"r14t7q"}],["path",{d:"m6 20 .7-2.9A1.4 1.4 0 0 1 8.1 16h7.8a1.4 1.4 0 0 1 1.4 1l.7 3",key:"l01ucn"}]],Id=e("cassette-tape",LI);const wI=[["path",{d:"M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6",key:"3zrzxg"}],["path",{d:"M2 12a9 9 0 0 1 8 8",key:"g6cvee"}],["path",{d:"M2 16a5 5 0 0 1 4 4",key:"1y1dii"}],["line",{x1:"2",x2:"2.01",y1:"20",y2:"20",key:"xu2jvo"}]],Cd=e("cast",wI);const fI=[["path",{d:"M10 5V3",key:"1y54qe"}],["path",{d:"M14 5V3",key:"m6isi"}],["path",{d:"M15 21v-3a3 3 0 0 0-6 0v3",key:"lbp5hj"}],["path",{d:"M18 3v8",key:"2ollhf"}],["path",{d:"M18 5H6",key:"98imr9"}],["path",{d:"M22 11H2",key:"1lmjae"}],["path",{d:"M22 9v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9",key:"1rly83"}],["path",{d:"M6 3v8",key:"csox7g"}]],Nd=e("castle",fI);const II=[["path",{d:"M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z",key:"x6xyqk"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M11.25 16.25h1.5L12 17l-.75-.75Z",key:"12kq1m"}]],bd=e("cat",II);const CI=[["path",{d:"M16.75 12h3.632a1 1 0 0 1 .894 1.447l-2.034 4.069a1 1 0 0 1-1.708.134l-2.124-2.97",key:"ir91b5"}],["path",{d:"M17.106 9.053a1 1 0 0 1 .447 1.341l-3.106 6.211a1 1 0 0 1-1.342.447L3.61 12.3a2.92 2.92 0 0 1-1.3-3.91L3.69 5.6a2.92 2.92 0 0 1 3.92-1.3z",key:"jlp8i1"}],["path",{d:"M2 19h3.76a2 2 0 0 0 1.8-1.1L9 15",key:"19bib8"}],["path",{d:"M2 21v-4",key:"l40lih"}],["path",{d:"M7 9h.01",key:"19b3jx"}]],$d=e("cctv",CI);const NI=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",key:"q0gr47"}]],z=e("chart-area",NI);const bI=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"7",y:"13",width:"9",height:"4",rx:"1",key:"1iip1u"}],["rect",{x:"7",y:"5",width:"12",height:"4",rx:"1",key:"1anskk"}]],S=e("chart-bar-big",bI);const $I=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11h8",key:"1feolt"}],["path",{d:"M7 16h3",key:"ur6vzw"}],["path",{d:"M7 6h12",key:"sz5b0d"}]],qd=e("chart-bar-decreasing",$I);const qI=[["path",{d:"M11 13v4",key:"vyy2rb"}],["path",{d:"M15 5v4",key:"1gx88a"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"7",y:"13",width:"9",height:"4",rx:"1",key:"1iip1u"}],["rect",{x:"7",y:"5",width:"12",height:"4",rx:"1",key:"1anskk"}]],zd=e("chart-bar-stacked",qI);const zI=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11h8",key:"1feolt"}],["path",{d:"M7 16h12",key:"wsnu98"}],["path",{d:"M7 6h3",key:"w9rmul"}]],Sd=e("chart-bar-increasing",zI);const SI=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16h8",key:"srdodz"}],["path",{d:"M7 11h12",key:"127s9w"}],["path",{d:"M7 6h3",key:"w9rmul"}]],A=e("chart-bar",SI);const AI=[["path",{d:"M9 5v4",key:"14uxtq"}],["rect",{width:"4",height:"6",x:"7",y:"9",rx:"1",key:"f4fvz0"}],["path",{d:"M9 15v2",key:"r5rk32"}],["path",{d:"M17 3v2",key:"1l2re6"}],["rect",{width:"4",height:"8",x:"15",y:"5",rx:"1",key:"z38je5"}],["path",{d:"M17 13v3",key:"5l0wba"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}]],H=e("chart-candlestick",AI);const HI=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"15",y:"5",width:"4",height:"12",rx:"1",key:"q8uenq"}],["rect",{x:"7",y:"8",width:"4",height:"9",rx:"1",key:"sr5ea"}]],j=e("chart-column-big",HI);const jI=[["path",{d:"M13 17V9",key:"1fwyjl"}],["path",{d:"M18 17v-3",key:"1sqioe"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M8 17V5",key:"1wzmnc"}]],Ad=e("chart-column-decreasing",jI);const VI=[["path",{d:"M13 17V9",key:"1fwyjl"}],["path",{d:"M18 17V5",key:"sfb6ij"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M8 17v-3",key:"17ska0"}]],V=e("chart-column-increasing",VI);const PI=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],P=e("chart-column",PI);const BI=[["path",{d:"M11 13H7",key:"t0o9gq"}],["path",{d:"M19 9h-4",key:"rera1j"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"15",y:"5",width:"4",height:"12",rx:"1",key:"q8uenq"}],["rect",{x:"7",y:"8",width:"4",height:"9",rx:"1",key:"sr5ea"}]],Hd=e("chart-column-stacked",BI);const FI=[["path",{d:"M10 6h8",key:"zvc2xc"}],["path",{d:"M12 16h6",key:"yi5mkt"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M8 11h7",key:"wz2hg0"}]],jd=e("chart-gantt",FI);const DI=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],B=e("chart-line",DI);const RI=[["path",{d:"m13.11 7.664 1.78 2.672",key:"go2gg9"}],["path",{d:"m14.162 12.788-3.324 1.424",key:"11x848"}],["path",{d:"m20 4-6.06 1.515",key:"1wxxh7"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["circle",{cx:"12",cy:"6",r:"2",key:"1jj5th"}],["circle",{cx:"16",cy:"12",r:"2",key:"4ma0v8"}],["circle",{cx:"9",cy:"15",r:"2",key:"lf2ghp"}]],Vd=e("chart-network",RI);const TI=[["path",{d:"M5 21V3",key:"clc1r8"}],["path",{d:"M12 21V9",key:"uvy0l4"}],["path",{d:"M19 21v-6",key:"tkawy9"}]],Pd=e("chart-no-axes-column-decreasing",TI);const UI=[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V9",key:"uvy0l4"}],["path",{d:"M19 21V3",key:"11j9sm"}]],F=e("chart-no-axes-column-increasing",UI);const OI=[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]],D=e("chart-no-axes-column",OI);const GI=[["path",{d:"M12 16v5",key:"zza2cw"}],["path",{d:"M16 14v7",key:"1g90b9"}],["path",{d:"M20 10v11",key:"1iqoj0"}],["path",{d:"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15",key:"1fw8x9"}],["path",{d:"M4 18v3",key:"1yp0dc"}],["path",{d:"M8 14v7",key:"n3cwzv"}]],Bd=e("chart-no-axes-combined",GI);const ZI=[["path",{d:"M6 5h12",key:"fvfigv"}],["path",{d:"M4 12h10",key:"oujl3d"}],["path",{d:"M12 19h8",key:"baeox8"}]],R=e("chart-no-axes-gantt",ZI);const WI=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],T=e("chart-pie",WI);const EI=[["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}],["circle",{cx:"18.5",cy:"5.5",r:".5",fill:"currentColor",key:"lysivs"}],["circle",{cx:"11.5",cy:"11.5",r:".5",fill:"currentColor",key:"byv1b8"}],["circle",{cx:"7.5",cy:"16.5",r:".5",fill:"currentColor",key:"nkw3mc"}],["circle",{cx:"17.5",cy:"14.5",r:".5",fill:"currentColor",key:"1gjh6j"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}]],U=e("chart-scatter",EI);const XI=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",key:"lw07rv"}]],Fd=e("chart-spline",XI);const KI=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],Dd=e("check-check",KI);const QI=[["path",{d:"M20 4L9 15",key:"1qkx8z"}],["path",{d:"M21 19L3 19",key:"100sma"}],["path",{d:"M9 15L4 10",key:"9zxff7"}]],Rd=e("check-line",QI);const JI=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Td=e("check",JI);const YI=[["path",{d:"M17 21a1 1 0 0 0 1-1v-5.35c0-.457.316-.844.727-1.041a4 4 0 0 0-2.134-7.589 5 5 0 0 0-9.186 0 4 4 0 0 0-2.134 7.588c.411.198.727.585.727 1.041V20a1 1 0 0 0 1 1Z",key:"1qvrer"}],["path",{d:"M6 17h12",key:"1jwigz"}]],Ud=e("chef-hat",YI);const eC=[["path",{d:"M2 17a5 5 0 0 0 10 0c0-2.76-2.5-5-5-3-2.5-2-5 .24-5 3Z",key:"cvxqlc"}],["path",{d:"M12 17a5 5 0 0 0 10 0c0-2.76-2.5-5-5-3-2.5-2-5 .24-5 3Z",key:"1ostrc"}],["path",{d:"M7 14c3.22-2.91 4.29-8.75 5-12 1.66 2.38 4.94 9 5 12",key:"hqx58h"}],["path",{d:"M22 9c-4.29 0-7.14-2.33-10-7 5.71 0 10 4.67 10 7Z",key:"eykp1o"}]],Od=e("cherry",eC);const aC=[["path",{d:"M5 20a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z",key:"b89hwq"}],["path",{d:"M15 18c1.5-.615 3-2.461 3-4.923C18 8.769 14.5 4.462 12 2 9.5 4.462 6 8.77 6 13.077 6 15.539 7.5 17.385 9 18",key:"8jdkhx"}],["path",{d:"m16 7-2.5 2.5",key:"1jq90w"}],["path",{d:"M9 2h6",key:"1jrp98"}]],Gd=e("chess-bishop",aC);const cC=[["path",{d:"M4 20a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1z",key:"mqzwx6"}],["path",{d:"m6.7 18-1-1C4.35 15.682 3 14.09 3 12a5 5 0 0 1 4.95-5c1.584 0 2.7.455 4.05 1.818C13.35 7.455 14.466 7 16.05 7A5 5 0 0 1 21 12c0 2.082-1.359 3.673-2.7 5l-1 1",key:"1gdt1g"}],["path",{d:"M10 4h4",key:"1xpv9s"}],["path",{d:"M12 2v6.818",key:"b17a49"}]],Zd=e("chess-king",cC);const tC=[["path",{d:"M5 20a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z",key:"b89hwq"}],["path",{d:"M16.5 18c1-2 2.5-5 2.5-9a7 7 0 0 0-7-7H6.635a1 1 0 0 0-.768 1.64L7 5l-2.32 5.802a2 2 0 0 0 .95 2.526l2.87 1.456",key:"axbnlq"}],["path",{d:"m15 5 1.425-1.425",key:"15xz8w"}],["path",{d:"m17 8 1.53-1.53",key:"15zhqh"}],["path",{d:"M9.713 12.185 7 18",key:"1ocm0l"}]],Wd=e("chess-knight",tC);const oC=[["path",{d:"M5 20a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z",key:"b89hwq"}],["path",{d:"m14.5 10 1.5 8",key:"cim3qy"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"m8 18 1.5-8",key:"ja3yjd"}],["circle",{cx:"12",cy:"6",r:"4",key:"1frrej"}]],Ed=e("chess-pawn",oC);const dC=[["path",{d:"M4 20a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1z",key:"mqzwx6"}],["path",{d:"m12.474 5.943 1.567 5.34a1 1 0 0 0 1.75.328l2.616-3.402",key:"1js4gl"}],["path",{d:"m20 9-3 9",key:"r75r3f"}],["path",{d:"m5.594 8.209 2.615 3.403a1 1 0 0 0 1.75-.329l1.567-5.34",key:"1joj19"}],["path",{d:"M7 18 4 9",key:"1mfzj8"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"7",r:"2",key:"9w7p1x"}],["circle",{cx:"4",cy:"7",r:"2",key:"1d9wy8"}]],Xd=e("chess-queen",dC);const nC=[["path",{d:"M5 20a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z",key:"b89hwq"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"m17 18-1-9",key:"10nd7q"}],["path",{d:"M6 2v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2",key:"uxf4yx"}],["path",{d:"M6 4h12",key:"1x2ag7"}],["path",{d:"m7 18 1-9",key:"1si9vq"}]],Kd=e("chess-rook",nC);const hC=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Qd=e("chevron-down",hC);const iC=[["path",{d:"m17 18-6-6 6-6",key:"1yerx2"}],["path",{d:"M7 6v12",key:"1p53r6"}]],Jd=e("chevron-first",iC);const yC=[["path",{d:"m7 18 6-6-6-6",key:"lwmzdw"}],["path",{d:"M17 6v12",key:"1o0aio"}]],Yd=e("chevron-last",yC);const rC=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],en=e("chevron-left",rC);const kC=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],an=e("chevron-right",kC);const pC=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],cn=e("chevron-up",pC);const sC=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],tn=e("chevrons-down-up",sC);const lC=[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]],on=e("chevrons-down",lC);const uC=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"m17 7 5 5-5 5",key:"1xlxn0"}],["path",{d:"m7 7-5 5 5 5",key:"19njba"}],["path",{d:"M8 12h.01",key:"czm47f"}]],dn=e("chevrons-left-right-ellipsis",uC);const MC=[["path",{d:"m9 7-5 5 5 5",key:"j5w590"}],["path",{d:"m15 7 5 5-5 5",key:"1bl6da"}]],nn=e("chevrons-left-right",MC);const vC=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],hn=e("chevrons-left",vC);const mC=[["path",{d:"m20 17-5-5 5-5",key:"30x0n2"}],["path",{d:"m4 17 5-5-5-5",key:"16spf4"}]],yn=e("chevrons-right-left",mC);const _C=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],rn=e("chevrons-right",_C);const gC=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],kn=e("chevrons-up-down",gC);const xC=[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]],pn=e("chevrons-up",xC);const LC=[["path",{d:"M10.88 21.94 15.46 14",key:"xkve6t"}],["path",{d:"M21.17 8H12",key:"19dcdn"}],["path",{d:"M3.95 6.06 8.54 14",key:"g8jz9m"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],O=e("chromium",LC);const wC=[["path",{d:"M10 9h4",key:"u4k05v"}],["path",{d:"M12 7v5",key:"ma6bk"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"m18 9 3.52 2.147a1 1 0 0 1 .48.854V19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6.999a1 1 0 0 1 .48-.854L6 9",key:"flvdwo"}],["path",{d:"M6 21V7a1 1 0 0 1 .376-.782l5-3.999a1 1 0 0 1 1.249.001l5 4A1 1 0 0 1 18 7v14",key:"a5i0n2"}]],sn=e("church",wC);const fC=[["path",{d:"M12 12H3a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h13",key:"1gdiyg"}],["path",{d:"M18 8c0-2.5-2-2.5-2-5",key:"1il607"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M21 12a1 1 0 0 1 1 1v2a1 1 0 0 1-.5.866",key:"166zjj"}],["path",{d:"M22 8c0-2.5-2-2.5-2-5",key:"1gah44"}],["path",{d:"M7 12v4",key:"jqww69"}]],ln=e("cigarette-off",fC);const IC=[["path",{d:"M17 12H3a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h14",key:"1mb5g1"}],["path",{d:"M18 8c0-2.5-2-2.5-2-5",key:"1il607"}],["path",{d:"M21 16a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"1yl5r7"}],["path",{d:"M22 8c0-2.5-2-2.5-2-5",key:"1gah44"}],["path",{d:"M7 12v4",key:"jqww69"}]],un=e("cigarette",IC);const CC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],G=e("circle-alert",CC);const NC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]],Z=e("circle-arrow-down",NC);const bC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m12 8-4 4 4 4",key:"15vm53"}],["path",{d:"M16 12H8",key:"1fr5h0"}]],W=e("circle-arrow-left",bC);const $C=[["path",{d:"M12 22a10 10 0 1 1 10-10",key:"130bv5"}],["path",{d:"M22 22 12 12",key:"131aw7"}],["path",{d:"M22 16v6h-6",key:"1gvm70"}]],E=e("circle-arrow-out-down-right",$C);const qC=[["path",{d:"M2 12a10 10 0 1 1 10 10",key:"1yn6ov"}],["path",{d:"m2 22 10-10",key:"28ilpk"}],["path",{d:"M8 22H2v-6",key:"sulq54"}]],X=e("circle-arrow-out-down-left",qC);const zC=[["path",{d:"M2 8V2h6",key:"hiwtdz"}],["path",{d:"m2 2 10 10",key:"1oh8rs"}],["path",{d:"M12 2A10 10 0 1 1 2 12",key:"rrk4fa"}]],K=e("circle-arrow-out-up-left",zC);const SC=[["path",{d:"M22 12A10 10 0 1 1 12 2",key:"1fm58d"}],["path",{d:"M22 2 12 12",key:"yg2myt"}],["path",{d:"M16 2h6v6",key:"zan5cs"}]],Q=e("circle-arrow-out-up-right",SC);const AC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}],["path",{d:"M8 12h8",key:"1wcyev"}]],J=e("circle-arrow-right",AC);const HC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]],Y=e("circle-arrow-up",HC);const jC=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],e1=e("circle-check-big",jC);const VC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],a1=e("circle-check",VC);const PC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]],c1=e("circle-chevron-down",PC);const BC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m14 16-4-4 4-4",key:"ojs7w8"}]],t1=e("circle-chevron-left",BC);const FC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]],o1=e("circle-chevron-right",FC);const DC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m8 14 4-4 4 4",key:"fy2ptz"}]],d1=e("circle-chevron-up",DC);const RC=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],Mn=e("circle-dashed",RC);const TC=[["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}],["line",{x1:"12",x2:"12",y1:"16",y2:"16",key:"aqc6ln"}],["line",{x1:"12",x2:"12",y1:"8",y2:"8",key:"1mkcni"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],n1=e("circle-divide",TC);const UC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]],vn=e("circle-dollar-sign",UC);const OC=[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],mn=e("circle-dot-dashed",OC);const GC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],_n=e("circle-dot",GC);const ZC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M7 12h.01",key:"eqddd0"}]],gn=e("circle-ellipsis",ZC);const WC=[["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],xn=e("circle-equal",WC);const EC=[["path",{d:"M12 2a10 10 0 0 1 7.38 16.75",key:"175t95"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}],["path",{d:"M2.5 8.875a10 10 0 0 0-.5 3",key:"1vce0s"}],["path",{d:"M2.83 16a10 10 0 0 0 2.43 3.4",key:"o3fkw4"}],["path",{d:"M4.636 5.235a10 10 0 0 1 .891-.857",key:"1szpfk"}],["path",{d:"M8.644 21.42a10 10 0 0 0 7.631-.38",key:"9yhvd4"}]],Ln=e("circle-fading-arrow-up",EC);const XC=[["path",{d:"M12 2a10 10 0 0 1 7.38 16.75",key:"175t95"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"M2.5 8.875a10 10 0 0 0-.5 3",key:"1vce0s"}],["path",{d:"M2.83 16a10 10 0 0 0 2.43 3.4",key:"o3fkw4"}],["path",{d:"M4.636 5.235a10 10 0 0 1 .891-.857",key:"1szpfk"}],["path",{d:"M8.644 21.42a10 10 0 0 0 7.631-.38",key:"9yhvd4"}]],wn=e("circle-fading-plus",XC);const KC=[["path",{d:"M15.6 2.7a10 10 0 1 0 5.7 5.7",key:"1e0p6d"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M13.4 10.6 19 5",key:"1kr7tw"}]],h1=e("circle-gauge",KC);const QC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],i1=e("circle-minus",QC);const JC=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.35 2.69A10 10 0 0 1 21.3 15.65",key:"1pfsoa"}],["path",{d:"M19.08 19.08A10 10 0 1 1 4.92 4.92",key:"1ablyi"}]],fn=e("circle-off",JC);const YC=[["path",{d:"M12.656 7H13a3 3 0 0 1 2.984 3.307",key:"1sjx87"}],["path",{d:"M13 13H9",key:"e2beee"}],["path",{d:"M19.071 19.071A1 1 0 0 1 4.93 4.93",key:"1kb595"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.357 2.687a10 10 0 0 1 12.956 12.956",key:"5bsfdx"}],["path",{d:"M9 17V9",key:"ojradj"}]],y1=e("circle-parking-off",YC);const eN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9 17V7h4a3 3 0 0 1 0 6H9",key:"1dfk2c"}]],r1=e("circle-parking",eN);const aN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],k1=e("circle-pause",aN);const cN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]],p1=e("circle-percent",cN);const tN=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],s1=e("circle-play",tN);const oN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],l1=e("circle-plus",oN);const dN=[["path",{d:"M10 16V9.5a1 1 0 0 1 5 0",key:"1i1are"}],["path",{d:"M8 12h4",key:"qz6y1c"}],["path",{d:"M8 16h7",key:"sbedsn"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],In=e("circle-pound-sterling",dN);const nN=[["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M7.998 9.003a5 5 0 1 0 8-.005",key:"1pek45"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],u1=e("circle-power",nN);const hN=[["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"}]],o=e("circle-question-mark",hN);const iN=[["path",{d:"M22 2 2 22",key:"y4kqgn"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],M1=e("circle-slash-2",iN);const yN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],Cn=e("circle-slash",yN);const rN=[["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}]],Nn=e("circle-small",rN);const kN=[["path",{d:"M11.051 7.616a1 1 0 0 1 1.909.024l.737 1.452a1 1 0 0 0 .737.535l1.634.256a1 1 0 0 1 .588 1.806l-1.172 1.168a1 1 0 0 0-.282.866l.259 1.613a1 1 0 0 1-1.541 1.134l-1.465-.75a1 1 0 0 0-.912 0l-1.465.75a1 1 0 0 1-1.539-1.133l.258-1.613a1 1 0 0 0-.282-.867l-1.156-1.152a1 1 0 0 1 .572-1.822l1.633-.256a1 1 0 0 0 .737-.535z",key:"285bvi"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],bn=e("circle-star",kN);const pN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],v1=e("circle-stop",pN);const sN=[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],m1=e("circle-user-round",sN);const lN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],_1=e("circle-user",lN);const uN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],g1=e("circle-x",uN);const MN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],$n=e("circle",MN);const vN=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M11 9h4a2 2 0 0 0 2-2V3",key:"1ve2rv"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"M7 21v-4a2 2 0 0 1 2-2h4",key:"1fwkro"}],["circle",{cx:"15",cy:"15",r:"2",key:"3i40o0"}]],qn=e("circuit-board",vN);const mN=[["path",{d:"M21.66 17.67a1.08 1.08 0 0 1-.04 1.6A12 12 0 0 1 4.73 2.38a1.1 1.1 0 0 1 1.61-.04z",key:"4ite01"}],["path",{d:"M19.65 15.66A8 8 0 0 1 8.35 4.34",key:"1gxipu"}],["path",{d:"m14 10-5.5 5.5",key:"92pfem"}],["path",{d:"M14 17.85V10H6.15",key:"xqmtsk"}]],zn=e("citrus",mN);const _N=[["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z",key:"1tn4o7"}],["path",{d:"m6.2 5.3 3.1 3.9",key:"iuk76l"}],["path",{d:"m12.4 3.4 3.1 4",key:"6hsd6n"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z",key:"ltgou9"}]],Sn=e("clapperboard",_N);const gN=[["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:"m9 14 2 2 4-4",key:"df797q"}]],An=e("clipboard-check",gN);const xN=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v.832",key:"1ujtp2"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h2",key:"qvpao1"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]],Hn=e("clipboard-clock",xN);const LN=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]],jn=e("clipboard-copy",LN);const wN=[["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"}]],Vn=e("clipboard-list",wN);const fN=[["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:"M9 14h6",key:"159ibu"}]],Pn=e("clipboard-minus",fN);const IN=[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]],Bn=e("clipboard-paste",IN);const CN=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",key:"1oijnt"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-.5",key:"1but9f"}],["path",{d:"M16 4h2a2 2 0 0 1 1.73 1",key:"1p8n7l"}],["path",{d:"M8 18h1",key:"13wk12"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}]],x1=e("clipboard-pen-line",CN);const NN=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",key:"1oijnt"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-5.5",key:"cereej"}],["path",{d:"M4 13.5V6a2 2 0 0 1 2-2h2",key:"5ua5vh"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]],L1=e("clipboard-pen",NN);const bN=[["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:"M9 14h6",key:"159ibu"}],["path",{d:"M12 17v-6",key:"1y8rbf"}]],Fn=e("clipboard-plus",bN);const $N=[["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:"M9 12v-1h6v1",key:"iehl6m"}],["path",{d:"M11 17h2",key:"12w5me"}],["path",{d:"M12 11v6",key:"1bwqyc"}]],Dn=e("clipboard-type",$N);const qN=[["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:"m15 11-6 6",key:"1toa9n"}],["path",{d:"m9 11 6 6",key:"wlibny"}]],Rn=e("clipboard-x",qN);const zN=[["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"}]],Tn=e("clipboard",zN);const SN=[["path",{d:"M12 6v6l2-4",key:"miptyd"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Un=e("clock-1",SN);const AN=[["path",{d:"M12 6v6l-2-4",key:"ns39ag"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],On=e("clock-11",AN);const HN=[["path",{d:"M12 6v6l-4-2",key:"cedpoo"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Gn=e("clock-10",HN);const jN=[["path",{d:"M12 6v6",key:"1ipuwl"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Zn=e("clock-12",jN);const VN=[["path",{d:"M12 6v6l4-2",key:"1r2kuh"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Wn=e("clock-2",VN);const PN=[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],En=e("clock-3",PN);const BN=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Xn=e("clock-4",BN);const FN=[["path",{d:"M12 6v10",key:"wf7rdh"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Kn=e("clock-6",FN);const DN=[["path",{d:"M12 6v6l2 4",key:"1287s9"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Qn=e("clock-5",DN);const RN=[["path",{d:"M12 6v6l-2 4",key:"1095bu"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Jn=e("clock-7",RN);const TN=[["path",{d:"M12 6v6l-4 2",key:"imc3wl"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Yn=e("clock-8",TN);const UN=[["path",{d:"M12 6v6H8",key:"u39vzm"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],eh=e("clock-9",UN);const ON=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["path",{d:"M20 12v5",key:"12wsvk"}],["path",{d:"M20 21h.01",key:"1p6o6n"}],["path",{d:"M21.25 8.2A10 10 0 1 0 16 21.16",key:"17fp9f"}]],ah=e("clock-alert",ON);const GN=[["path",{d:"M12 6v6l2 1",key:"19cm8n"}],["path",{d:"M12.337 21.994a10 10 0 1 1 9.588-8.767",key:"28moa"}],["path",{d:"m14 18 4 4 4-4",key:"1waygx"}],["path",{d:"M18 14v8",key:"irew45"}]],ch=e("clock-arrow-down",GN);const ZN=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["path",{d:"M22 12a10 10 0 1 0-11 9.95",key:"17dhok"}],["path",{d:"m22 16-5.5 5.5L14 19",key:"1eibut"}]],th=e("clock-check",ZN);const WN=[["path",{d:"M12 6v6l1.56.78",key:"14ed3g"}],["path",{d:"M13.227 21.925a10 10 0 1 1 8.767-9.588",key:"jwkls1"}],["path",{d:"m14 18 4-4 4 4",key:"ftkppy"}],["path",{d:"M18 22v-8",key:"su0gjh"}]],oh=e("clock-arrow-up",WN);const EN=[["path",{d:"M12 2a10 10 0 0 1 7.38 16.75",key:"175t95"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["path",{d:"M2.5 8.875a10 10 0 0 0-.5 3",key:"1vce0s"}],["path",{d:"M2.83 16a10 10 0 0 0 2.43 3.4",key:"o3fkw4"}],["path",{d:"M4.636 5.235a10 10 0 0 1 .891-.857",key:"1szpfk"}],["path",{d:"M8.644 21.42a10 10 0 0 0 7.631-.38",key:"9yhvd4"}]],dh=e("clock-fading",EN);const XN=[["path",{d:"M12 6v6l3.644 1.822",key:"1jmett"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M21.92 13.267a10 10 0 1 0-8.653 8.653",key:"1u0osk"}]],nh=e("clock-plus",XN);const KN=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],hh=e("clock",KN);const QN=[["path",{d:"M10 9.17a3 3 0 1 0 0 5.66",key:"h9wayk"}],["path",{d:"M17 9.17a3 3 0 1 0 0 5.66",key:"1v6zke"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]],ih=e("closed-caption",QN);const JN=[["path",{d:"M12 12v4",key:"tww15h"}],["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M17 18h.5a1 1 0 0 0 0-9h-1.79A7 7 0 1 0 7 17.708",key:"xsb5ju"}]],yh=e("cloud-alert",JN);const YN=[["path",{d:"m17 15-5.5 5.5L9 18",key:"15q87x"}],["path",{d:"M5 17.743A7 7 0 1 1 15.71 10h1.79a4.5 4.5 0 0 1 1.5 8.742",key:"9ho6ki"}]],rh=e("cloud-check",YN);const eb=[["path",{d:"m10.852 19.772-.383.924",key:"r7sl7d"}],["path",{d:"m13.148 14.228.383-.923",key:"1d5zpm"}],["path",{d:"M13.148 19.772a3 3 0 1 0-2.296-5.544l-.383-.923",key:"1ydik7"}],["path",{d:"m13.53 20.696-.382-.924a3 3 0 1 1-2.296-5.544",key:"1m1vsf"}],["path",{d:"m14.772 15.852.923-.383",key:"660p6e"}],["path",{d:"m14.772 18.148.923.383",key:"hrcpis"}],["path",{d:"M4.2 15.1a7 7 0 1 1 9.93-9.858A7 7 0 0 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.2",key:"j2q98n"}],["path",{d:"m9.228 15.852-.923-.383",key:"1p9ong"}],["path",{d:"m9.228 18.148-.923.383",key:"6558rz"}]],kh=e("cloud-cog",eb);const ab=[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]],w1=e("cloud-download",ab);const cb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 19v1",key:"1dk2by"}],["path",{d:"M8 14v1",key:"84yxot"}],["path",{d:"M16 19v1",key:"v220m7"}],["path",{d:"M16 14v1",key:"g12gj6"}],["path",{d:"M12 21v1",key:"q8vafk"}],["path",{d:"M12 16v1",key:"1mx6rx"}]],ph=e("cloud-drizzle",cb);const tb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 17H7",key:"pygtm1"}],["path",{d:"M17 21H9",key:"1u2q02"}]],sh=e("cloud-fog",tb);const ob=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v2",key:"a1is7l"}],["path",{d:"M8 14v2",key:"1e9m6t"}],["path",{d:"M16 20h.01",key:"xwek51"}],["path",{d:"M8 20h.01",key:"1vjney"}],["path",{d:"M12 16v2",key:"z66u1j"}],["path",{d:"M12 22h.01",key:"1urd7a"}]],lh=e("cloud-hail",ob);const db=[["path",{d:"M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973",key:"1cez44"}],["path",{d:"m13 12-3 5h4l-3 5",key:"1t22er"}]],uh=e("cloud-lightning",db);const nb=[["path",{d:"M11 20v2",key:"174qtz"}],["path",{d:"M18.376 14.512a6 6 0 0 0 3.461-4.127c.148-.625-.659-.97-1.248-.714a4 4 0 0 1-5.259-5.26c.255-.589-.09-1.395-.716-1.248a6 6 0 0 0-4.594 5.36",key:"zwnc1e"}],["path",{d:"M3 20a5 5 0 1 1 8.9-4H13a3 3 0 0 1 2 5.24",key:"1qmrp3"}],["path",{d:"M7 19v2",key:"12npes"}]],Mh=e("cloud-moon-rain",nb);const hb=[["path",{d:"M13 16a3 3 0 0 1 0 6H7a5 5 0 1 1 4.9-6z",key:"ie2ih4"}],["path",{d:"M18.376 14.512a6 6 0 0 0 3.461-4.127c.148-.625-.659-.97-1.248-.714a4 4 0 0 1-5.259-5.26c.255-.589-.09-1.395-.716-1.248a6 6 0 0 0-4.594 5.36",key:"zwnc1e"}]],vh=e("cloud-moon",hb);const ib=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]],mh=e("cloud-off",ib);const yb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m9.2 22 3-7",key:"sb5f6j"}],["path",{d:"m9 13-3 7",key:"500co5"}],["path",{d:"m17 13-3 7",key:"8t2fiy"}]],_h=e("cloud-rain-wind",yb);const rb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],gh=e("cloud-rain",rb);const kb=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],xh=e("cloud-snow",kb);const pb=[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}],["path",{d:"M3 20a5 5 0 1 1 8.9-4H13a3 3 0 0 1 2 5.24",key:"1qmrp3"}],["path",{d:"M11 20v2",key:"174qtz"}],["path",{d:"M7 19v2",key:"12npes"}]],Lh=e("cloud-sun-rain",pb);const sb=[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}],["path",{d:"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z",key:"s09mg5"}]],wh=e("cloud-sun",sb);const lb=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],f1=e("cloud-upload",lb);const ub=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],fh=e("cloud",ub);const Mb=[["path",{d:"M17.5 21H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"gqqjvc"}],["path",{d:"M22 10a3 3 0 0 0-3-3h-2.207a5.502 5.502 0 0 0-10.702.5",key:"1p2s76"}]],Ih=e("cloudy",Mb);const vb=[["path",{d:"M16.17 7.83 2 22",key:"t58vo8"}],["path",{d:"M4.02 12a2.827 2.827 0 1 1 3.81-4.17A2.827 2.827 0 1 1 12 4.02a2.827 2.827 0 1 1 4.17 3.81A2.827 2.827 0 1 1 19.98 12a2.827 2.827 0 1 1-3.81 4.17A2.827 2.827 0 1 1 12 19.98a2.827 2.827 0 1 1-4.17-3.81A1 1 0 1 1 4 12",key:"17k36q"}],["path",{d:"m7.83 7.83 8.34 8.34",key:"1d7sxk"}]],Ch=e("clover",vb);const mb=[["path",{d:"M17.28 9.05a5.5 5.5 0 1 0-10.56 0A5.5 5.5 0 1 0 12 17.66a5.5 5.5 0 1 0 5.28-8.6Z",key:"27yuqz"}],["path",{d:"M12 17.66L12 22",key:"ogfahf"}]],Nh=e("club",mb);const _b=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],I1=e("code-xml",_b);const gb=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],bh=e("code",gb);const xb=[["polygon",{points:"12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2",key:"srzb37"}],["line",{x1:"12",x2:"12",y1:"22",y2:"15.5",key:"1t73f2"}],["polyline",{points:"22 8.5 12 15.5 2 8.5",key:"ajlxae"}],["polyline",{points:"2 15.5 12 8.5 22 15.5",key:"susrui"}],["line",{x1:"12",x2:"12",y1:"2",y2:"8.5",key:"2cldga"}]],$h=e("codepen",xb);const Lb=[["path",{d:"M21 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.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}],["polyline",{points:"7.5 4.21 12 6.81 16.5 4.21",key:"fabo96"}],["polyline",{points:"7.5 19.79 7.5 14.6 3 12",key:"z377f1"}],["polyline",{points:"21 12 16.5 14.6 16.5 19.79",key:"9nrev1"}],["polyline",{points:"3.27 6.96 12 12.01 20.73 6.96",key:"1180pa"}],["line",{x1:"12",x2:"12",y1:"22.08",y2:"12",key:"3z3uq6"}]],qh=e("codesandbox",Lb);const wb=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],zh=e("coffee",wb);const fb=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],Sh=e("cog",fb);const Ib=[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]],Ah=e("coins",Ib);const Cb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],C1=e("columns-2",Cb);const Nb=[["path",{d:"M10.5 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.5",key:"1g2yzs"}],["path",{d:"m14.3 19.6 1-.4",key:"11sv9r"}],["path",{d:"M15 3v7.5",key:"7lm50a"}],["path",{d:"m15.2 16.9-.9-.3",key:"1t7mvx"}],["path",{d:"m16.6 21.7.3-.9",key:"1j67ps"}],["path",{d:"m16.8 15.3-.4-1",key:"1ei7r6"}],["path",{d:"m19.1 15.2.3-.9",key:"18r7jp"}],["path",{d:"m19.6 21.7-.4-1",key:"z2vh2"}],["path",{d:"m20.7 16.8 1-.4",key:"19m87a"}],["path",{d:"m21.7 19.4-.9-.3",key:"1qgwi9"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]],d=e("columns-3-cog",Nb);const bb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],N1=e("columns-3",bb);const $b=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7.5 3v18",key:"w0wo6v"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M16.5 3v18",key:"10tjh1"}]],Hh=e("columns-4",$b);const qb=[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]],jh=e("combine",qb);const zb=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],Vh=e("command",zb);const Sb=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ph=e("compass",Sb);const Ab=[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1uwlt4"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z",key:"10291m"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z",key:"1tqoq1"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1x6lto"}]],Bh=e("component",Ab);const Hb=[["rect",{width:"14",height:"8",x:"5",y:"2",rx:"2",key:"wc9tft"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h2",key:"rwmk9e"}],["path",{d:"M12 18h6",key:"aqd8w3"}]],Fh=e("computer",Hb);const jb=[["path",{d:"M3 20a1 1 0 0 1-1-1v-1a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1Z",key:"1pvr1r"}],["path",{d:"M20 16a8 8 0 1 0-16 0",key:"1pa543"}],["path",{d:"M12 4v4",key:"1bq03y"}],["path",{d:"M10 4h4",key:"1xpv9s"}]],Dh=e("concierge-bell",jb);const Vb=[["path",{d:"m20.9 18.55-8-15.98a1 1 0 0 0-1.8 0l-8 15.98",key:"53pte7"}],["ellipse",{cx:"12",cy:"19",rx:"9",ry:"3",key:"1ji25f"}]],Rh=e("cone",Vb);const Pb=[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]],Th=e("construction",Pb);const Bb=[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M17.915 22a6 6 0 0 0-12 0",key:"suqz9p"}],["path",{d:"M8 2v2",key:"pbkmx"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]],b1=e("contact-round",Bb);const Fb=[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2",key:"1waht3"}],["path",{d:"M8 2v2",key:"pbkmx"}],["circle",{cx:"12",cy:"11",r:"3",key:"itu57m"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]],Uh=e("contact",Fb);const Db=[["path",{d:"M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z",key:"1t2lqe"}],["path",{d:"M10 21.9V14L2.1 9.1",key:"o7czzq"}],["path",{d:"m10 14 11.9-6.9",key:"zm5e20"}],["path",{d:"M14 19.8v-8.1",key:"159ecu"}],["path",{d:"M18 17.5V9.4",key:"11uown"}]],Oh=e("container",Db);const Rb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 18a6 6 0 0 0 0-12v12z",key:"j4l70d"}]],Gh=e("contrast",Rb);const Tb=[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]],Zh=e("cookie",Tb);const Ub=[["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"}]],Wh=e("cooking-pot",Ub);const Ob=[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Eh=e("copy-check",Ob);const Gb=[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Xh=e("copy-minus",Gb);const Zb=[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Kh=e("copy-plus",Zb);const Wb=[["line",{x1:"12",x2:"18",y1:"18",y2:"12",key:"ebkxgr"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Qh=e("copy-slash",Wb);const Eb=[["line",{x1:"12",x2:"18",y1:"12",y2:"18",key:"1rg63v"}],["line",{x1:"12",x2:"18",y1:"18",y2:"12",key:"ebkxgr"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Jh=e("copy-x",Eb);const Xb=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Yh=e("copy",Xb);const Kb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.17 14.83a4 4 0 1 0 0-5.66",key:"1sveal"}]],ei=e("copyleft",Kb);const Qb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M14.83 14.83a4 4 0 1 1 0-5.66",key:"1i56pz"}]],ai=e("copyright",Qb);const Jb=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],ci=e("corner-down-left",Jb);const Yb=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],ti=e("corner-down-right",Yb);const e$=[["path",{d:"m14 15-5 5-5-5",key:"1eia93"}],["path",{d:"M20 4h-7a4 4 0 0 0-4 4v12",key:"nbpdq2"}]],oi=e("corner-left-down",e$);const a$=[["path",{d:"M14 9 9 4 4 9",key:"1af5af"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]],di=e("corner-left-up",a$);const c$=[["path",{d:"m10 15 5 5 5-5",key:"1hpjnr"}],["path",{d:"M4 4h7a4 4 0 0 1 4 4v12",key:"wcbgct"}]],ni=e("corner-right-down",c$);const t$=[["path",{d:"m10 9 5-5 5 5",key:"9ctzwi"}],["path",{d:"M4 20h7a4 4 0 0 0 4-4V4",key:"1plgdj"}]],hi=e("corner-right-up",t$);const o$=[["path",{d:"M20 20v-7a4 4 0 0 0-4-4H4",key:"1nkjon"}],["path",{d:"M9 14 4 9l5-5",key:"102s5s"}]],ii=e("corner-up-left",o$);const d$=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M4 20v-7a4 4 0 0 1 4-4h12",key:"1lu4f8"}]],yi=e("corner-up-right",d$);const n$=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],ri=e("cpu",n$);const h$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M10 9.3a2.8 2.8 0 0 0-3.5 1 3.1 3.1 0 0 0 0 3.4 2.7 2.7 0 0 0 3.5 1",key:"1ss3eq"}],["path",{d:"M17 9.3a2.8 2.8 0 0 0-3.5 1 3.1 3.1 0 0 0 0 3.4 2.7 2.7 0 0 0 3.5 1",key:"1od56t"}]],ki=e("creative-commons",h$);const i$=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],pi=e("credit-card",i$);const y$=[["path",{d:"M10.2 18H4.774a1.5 1.5 0 0 1-1.352-.97 11 11 0 0 1 .132-6.487",key:"14kkz9"}],["path",{d:"M18 10.2V4.774a1.5 1.5 0 0 0-.97-1.352 11 11 0 0 0-6.486.132",key:"1g7v07"}],["path",{d:"M18 5a4 3 0 0 1 4 3 2 2 0 0 1-2 2 10 10 0 0 0-5.139 1.42",key:"ratg6b"}],["path",{d:"M5 18a3 4 0 0 0 3 4 2 2 0 0 0 2-2 10 10 0 0 1 1.42-5.14",key:"4454f0"}],["path",{d:"M8.709 2.554a10 10 0 0 0-6.155 6.155 1.5 1.5 0 0 0 .676 1.626l9.807 5.42a2 2 0 0 0 2.718-2.718l-5.42-9.807a1.5 1.5 0 0 0-1.626-.676",key:"qmemie"}]],si=e("croissant",y$);const r$=[["path",{d:"M6 2v14a2 2 0 0 0 2 2h14",key:"ron5a4"}],["path",{d:"M18 22V8a2 2 0 0 0-2-2H2",key:"7s9ehn"}]],li=e("crop",r$);const k$=[["path",{d:"M4 9a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h4a1 1 0 0 1 1 1v4a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-4a1 1 0 0 1 1-1h4a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2h-4a1 1 0 0 1-1-1V4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4a1 1 0 0 1-1 1z",key:"1xbrqy"}]],ui=e("cross",k$);const p$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],Mi=e("crosshair",p$);const s$=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],vi=e("crown",s$);const l$=[["path",{d:"m21.12 6.4-6.05-4.06a2 2 0 0 0-2.17-.05L2.95 8.41a2 2 0 0 0-.95 1.7v5.82a2 2 0 0 0 .88 1.66l6.05 4.07a2 2 0 0 0 2.17.05l9.95-6.12a2 2 0 0 0 .95-1.7V8.06a2 2 0 0 0-.88-1.66Z",key:"1u2ovd"}],["path",{d:"M10 22v-8L2.25 9.15",key:"11pn4q"}],["path",{d:"m10 14 11.77-6.87",key:"1kt1wh"}]],mi=e("cuboid",l$);const u$=[["path",{d:"m6 8 1.75 12.28a2 2 0 0 0 2 1.72h4.54a2 2 0 0 0 2-1.72L18 8",key:"8166m8"}],["path",{d:"M5 8h14",key:"pcz4l3"}],["path",{d:"M7 15a6.47 6.47 0 0 1 5 0 6.47 6.47 0 0 0 5 0",key:"yjz344"}],["path",{d:"m12 8 1-6h2",key:"3ybfa4"}]],_i=e("cup-soda",u$);const M$=[["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}],["line",{x1:"3",x2:"6",y1:"3",y2:"6",key:"1jkytn"}],["line",{x1:"21",x2:"18",y1:"3",y2:"6",key:"14zfjt"}],["line",{x1:"3",x2:"6",y1:"21",y2:"18",key:"iusuec"}],["line",{x1:"21",x2:"18",y1:"21",y2:"18",key:"yj2dd7"}]],gi=e("currency",M$);const v$=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5v14a9 3 0 0 0 18 0V5",key:"aqi0yr"}]],xi=e("cylinder",v$);const m$=[["path",{d:"M11 11.31c1.17.56 1.54 1.69 3.5 1.69 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"157kva"}],["path",{d:"M11.75 18c.35.5 1.45 1 2.75 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"d7q6m6"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M7 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1L10 4a1 1 0 0 0-1-1z",key:"pr6s65"}]],Li=e("dam",m$);const _$=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]],wi=e("database-backup",_$);const g$=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]],fi=e("database-zap",g$);const x$=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Ii=e("database",x$);const L$=[["path",{d:"m13 21-3-3 3-3",key:"s3o1nf"}],["path",{d:"M20 18H10",key:"14r3mt"}],["path",{d:"M3 11h.01",key:"1eifu7"}],["rect",{x:"6",y:"3",width:"5",height:"8",rx:"2.5",key:"v9paqo"}]],Ci=e("decimals-arrow-left",L$);const w$=[["path",{d:"M10 18h10",key:"1y5s8o"}],["path",{d:"m17 21 3-3-3-3",key:"1ammt0"}],["path",{d:"M3 11h.01",key:"1eifu7"}],["rect",{x:"15",y:"3",width:"5",height:"8",rx:"2.5",key:"76md6a"}],["rect",{x:"6",y:"3",width:"5",height:"8",rx:"2.5",key:"v9paqo"}]],Ni=e("decimals-arrow-right",w$);const f$=[["path",{d:"M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z",key:"1yo7s0"}],["path",{d:"m12 9 6 6",key:"anjzzh"}],["path",{d:"m18 9-6 6",key:"1fp51s"}]],bi=e("delete",f$);const I$=[["path",{d:"M10.162 3.167A10 10 0 0 0 2 13a2 2 0 0 0 4 0v-1a2 2 0 0 1 4 0v4a2 2 0 0 0 4 0v-4a2 2 0 0 1 4 0v1a2 2 0 0 0 4-.006 10 10 0 0 0-8.161-9.826",key:"xi88qy"}],["path",{d:"M20.804 14.869a9 9 0 0 1-17.608 0",key:"1r28rg"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]],$i=e("dessert",I$);const C$=[["circle",{cx:"19",cy:"19",r:"2",key:"17f5cg"}],["circle",{cx:"5",cy:"5",r:"2",key:"1gwv83"}],["path",{d:"M6.48 3.66a10 10 0 0 1 13.86 13.86",key:"xr8kdq"}],["path",{d:"m6.41 6.41 11.18 11.18",key:"uhpjw7"}],["path",{d:"M3.66 6.48a10 10 0 0 0 13.86 13.86",key:"cldpwv"}]],qi=e("diameter",C$);const N$=[["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]],zi=e("diamond-minus",N$);const b$=[["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0Z",key:"1tpxz2"}],["path",{d:"M9.2 9.2h.01",key:"1b7bvt"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"M14.7 14.8h.01",key:"17nsh4"}]],$1=e("diamond-percent",b$);const $$=[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]],Si=e("diamond-plus",$$);const q$=[["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z",key:"1f1r0c"}]],Ai=e("diamond",q$);const z$=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M12 12h.01",key:"1mp3jc"}]],Hi=e("dice-1",z$);const S$=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M15 9h.01",key:"x1ddxp"}],["path",{d:"M9 15h.01",key:"fzyn71"}]],ji=e("dice-2",S$);const A$=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M16 8h.01",key:"cr5u4v"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Vi=e("dice-3",A$);const H$=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M16 8h.01",key:"cr5u4v"}],["path",{d:"M8 8h.01",key:"1e4136"}],["path",{d:"M8 16h.01",key:"18s6g9"}],["path",{d:"M16 16h.01",key:"1f9h7w"}]],Pi=e("dice-4",H$);const j$=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M16 8h.01",key:"cr5u4v"}],["path",{d:"M8 8h.01",key:"1e4136"}],["path",{d:"M8 16h.01",key:"18s6g9"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M12 12h.01",key:"1mp3jc"}]],Bi=e("dice-5",j$);const V$=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M16 8h.01",key:"cr5u4v"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M8 8h.01",key:"1e4136"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Fi=e("dice-6",V$);const P$=[["rect",{width:"12",height:"12",x:"2",y:"10",rx:"2",ry:"2",key:"6agr2n"}],["path",{d:"m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6",key:"1o487t"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 14h.01",key:"ssrbsk"}],["path",{d:"M15 6h.01",key:"cblpky"}],["path",{d:"M18 9h.01",key:"2061c0"}]],Di=e("dices",P$);const B$=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],Ri=e("diff",B$);const F$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 12h.01",key:"1mp3jc"}]],Ti=e("disc-2",F$);const D$=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["circle",{cx:"12",cy:"12",r:"5",key:"nd82uf"}],["path",{d:"M12 12h.01",key:"1mp3jc"}]],Ui=e("disc-album",D$);const R$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M6 12c0-1.7.7-3.2 1.8-4.2",key:"oqkarx"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M18 12c0 1.7-.7 3.2-1.8 4.2",key:"1eah9h"}]],Oi=e("disc-3",R$);const T$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Gi=e("disc",T$);const U$=[["circle",{cx:"12",cy:"6",r:"1",key:"1bh7o1"}],["line",{x1:"5",x2:"19",y1:"12",y2:"12",key:"13b5wn"}],["circle",{cx:"12",cy:"18",r:"1",key:"lqb9t5"}]],Zi=e("divide",U$);const O$=[["path",{d:"M15 2c-1.35 1.5-2.092 3-2.5 4.5L14 8",key:"1bivrr"}],["path",{d:"m17 6-2.891-2.891",key:"xu6p2f"}],["path",{d:"M2 15c3.333-3 6.667-3 10-3",key:"nxix30"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"m20 9 .891.891",key:"3xwk7g"}],["path",{d:"M22 9c-1.5 1.35-3 2.092-4.5 2.5l-1-1",key:"18cutr"}],["path",{d:"M3.109 14.109 4 15",key:"q76aoh"}],["path",{d:"m6.5 12.5 1 1",key:"cs35ky"}],["path",{d:"m7 18 2.891 2.891",key:"1sisit"}],["path",{d:"M9 22c1.35-1.5 2.092-3 2.5-4.5L10 16",key:"rlvei3"}]],Wi=e("dna-off",O$);const G$=[["path",{d:"m10 16 1.5 1.5",key:"11lckj"}],["path",{d:"m14 8-1.5-1.5",key:"1ohn8i"}],["path",{d:"M15 2c-1.798 1.998-2.518 3.995-2.807 5.993",key:"80uv8i"}],["path",{d:"m16.5 10.5 1 1",key:"696xn5"}],["path",{d:"m17 6-2.891-2.891",key:"xu6p2f"}],["path",{d:"M2 15c6.667-6 13.333 0 20-6",key:"1pyr53"}],["path",{d:"m20 9 .891.891",key:"3xwk7g"}],["path",{d:"M3.109 14.109 4 15",key:"q76aoh"}],["path",{d:"m6.5 12.5 1 1",key:"cs35ky"}],["path",{d:"m7 18 2.891 2.891",key:"1sisit"}],["path",{d:"M9 22c1.798-1.998 2.518-3.995 2.807-5.993",key:"q3hbxp"}]],Ei=e("dna",G$);const Z$=[["path",{d:"M2 8h20",key:"d11cs7"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M6 16h12",key:"u522kt"}]],Xi=e("dock",Z$);const W$=[["path",{d:"M11.25 16.25h1.5L12 17z",key:"w7jh35"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309",key:"u7s9ue"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5",key:"v8hric"}]],Ki=e("dog",W$);const E$=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Qi=e("dollar-sign",E$);const X$=[["path",{d:"M20.5 10a2.5 2.5 0 0 1-2.4-3H18a2.95 2.95 0 0 1-2.6-4.4 10 10 0 1 0 6.3 7.1c-.3.2-.8.3-1.2.3",key:"19sr3x"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ji=e("donut",X$);const K$=[["path",{d:"M10 12h.01",key:"1kxr2c"}],["path",{d:"M18 9V6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14",key:"1bnhmg"}],["path",{d:"M2 20h8",key:"10ntw1"}],["path",{d:"M20 17v-2a2 2 0 1 0-4 0v2",key:"pwaxnr"}],["rect",{x:"14",y:"17",width:"8",height:"5",rx:"1",key:"15pjcy"}]],Yi=e("door-closed-locked",K$);const Q$=[["path",{d:"M10 12h.01",key:"1kxr2c"}],["path",{d:"M18 20V6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14",key:"36qu9e"}],["path",{d:"M2 20h20",key:"owomy5"}]],ey=e("door-closed",Q$);const J$=[["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"}]],ay=e("door-open",J$);const Y$=[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]],cy=e("dot",Y$);const eq=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],ty=e("download",eq);const aq=[["path",{d:"M10 11h.01",key:"d2at3l"}],["path",{d:"M14 6h.01",key:"k028ub"}],["path",{d:"M18 6h.01",key:"1v4wsw"}],["path",{d:"M6.5 13.1h.01",key:"1748ia"}],["path",{d:"M22 5c0 9-4 12-6 12s-6-3-6-12c0-2 2-3 6-3s6 1 6 3",key:"172yzv"}],["path",{d:"M17.4 9.9c-.8.8-2 .8-2.8 0",key:"1obv0w"}],["path",{d:"M10.1 7.1C9 7.2 7.7 7.7 6 8.6c-3.5 2-4.7 3.9-3.7 5.6 4.5 7.8 9.5 8.4 11.2 7.4.9-.5 1.9-2.1 1.9-4.7",key:"rqjl8i"}],["path",{d:"M9.1 16.5c.3-1.1 1.4-1.7 2.4-1.4",key:"1mr6wy"}]],oy=e("drama",aq);const cq=[["path",{d:"m12.99 6.74 1.93 3.44",key:"iwagvd"}],["path",{d:"M19.136 12a10 10 0 0 1-14.271 0",key:"ppmlo4"}],["path",{d:"m21 21-2.16-3.84",key:"vylbct"}],["path",{d:"m3 21 8.02-14.26",key:"1ssaw4"}],["circle",{cx:"12",cy:"5",r:"2",key:"f1ur92"}]],dy=e("drafting-compass",cq);const tq=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M19.13 5.09C15.22 9.14 10 10.44 2.25 10.94",key:"hpej1"}],["path",{d:"M21.75 12.84c-6.62-1.41-12.14 1-16.38 6.32",key:"1tr44o"}],["path",{d:"M8.56 2.75c4.37 6 6 9.42 8 17.72",key:"kbh691"}]],ny=e("dribbble",tq);const oq=[["path",{d:"M10 18a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5a3 3 0 0 1-3-3 1 1 0 0 1 1-1z",key:"ioqxb1"}],["path",{d:"M13 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1l-.81 3.242a1 1 0 0 1-.97.758H8",key:"1rs59n"}],["path",{d:"M14 4h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-3",key:"105ega"}],["path",{d:"M18 6h4",key:"66u95g"}],["path",{d:"m5 10-2 8",key:"xt2lic"}],["path",{d:"m7 18 2-8",key:"1bzku2"}]],hy=e("drill",oq);const dq=[["path",{d:"M10 10 7 7",key:"zp14k7"}],["path",{d:"m10 14-3 3",key:"1jrpxk"}],["path",{d:"m14 10 3-3",key:"7tigam"}],["path",{d:"m14 14 3 3",key:"vm23p3"}],["path",{d:"M14.205 4.139a4 4 0 1 1 5.439 5.863",key:"1tm5p2"}],["path",{d:"M19.637 14a4 4 0 1 1-5.432 5.868",key:"16egi2"}],["path",{d:"M4.367 10a4 4 0 1 1 5.438-5.862",key:"1wta6a"}],["path",{d:"M9.795 19.862a4 4 0 1 1-5.429-5.873",key:"q39hpv"}],["rect",{x:"10",y:"8",width:"4",height:"8",rx:"1",key:"phrjt1"}]],iy=e("drone",dq);const nq=[["path",{d:"M18.715 13.186C18.29 11.858 17.384 10.607 16 9.5c-2-1.6-3.5-4-4-6.5a10.7 10.7 0 0 1-.884 2.586",key:"8suz2t"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.795 8.797A11 11 0 0 1 8 9.5C6 11.1 5 13 5 15a7 7 0 0 0 13.222 3.208",key:"19dw9m"}]],yy=e("droplet-off",nq);const hq=[["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"}]],ry=e("droplet",hq);const iq=[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]],ky=e("droplets",iq);const yq=[["path",{d:"M15.4 15.63a7.875 6 135 1 1 6.23-6.23 4.5 3.43 135 0 0-6.23 6.23",key:"1dtqwm"}],["path",{d:"m8.29 12.71-2.6 2.6a2.5 2.5 0 1 0-1.65 4.65A2.5 2.5 0 1 0 8.7 18.3l2.59-2.59",key:"1oq1fw"}]],py=e("drumstick",yq);const rq=[["path",{d:"M17.596 12.768a2 2 0 1 0 2.829-2.829l-1.768-1.767a2 2 0 0 0 2.828-2.829l-2.828-2.828a2 2 0 0 0-2.829 2.828l-1.767-1.768a2 2 0 1 0-2.829 2.829z",key:"9m4mmf"}],["path",{d:"m2.5 21.5 1.4-1.4",key:"17g3f0"}],["path",{d:"m20.1 3.9 1.4-1.4",key:"1qn309"}],["path",{d:"M5.343 21.485a2 2 0 1 0 2.829-2.828l1.767 1.768a2 2 0 1 0 2.829-2.829l-6.364-6.364a2 2 0 1 0-2.829 2.829l1.768 1.767a2 2 0 0 0-2.828 2.829z",key:"1t2c92"}],["path",{d:"m9.6 14.4 4.8-4.8",key:"6umqxw"}]],sy=e("dumbbell",rq);const kq=[["path",{d:"m2 2 8 8",key:"1v6059"}],["path",{d:"m22 2-8 8",key:"173r8a"}],["ellipse",{cx:"12",cy:"9",rx:"10",ry:"5",key:"liohsx"}],["path",{d:"M7 13.4v7.9",key:"1yi6u9"}],["path",{d:"M12 14v8",key:"1tn2tj"}],["path",{d:"M17 13.4v7.9",key:"eqz2v3"}],["path",{d:"M2 9v8a10 5 0 0 0 20 0V9",key:"1750ul"}]],ly=e("drum",kq);const pq=[["path",{d:"M6 18.5a3.5 3.5 0 1 0 7 0c0-1.57.92-2.52 2.04-3.46",key:"1qngmn"}],["path",{d:"M6 8.5c0-.75.13-1.47.36-2.14",key:"b06bma"}],["path",{d:"M8.8 3.15A6.5 6.5 0 0 1 19 8.5c0 1.63-.44 2.81-1.09 3.76",key:"g10hsz"}],["path",{d:"M12.5 6A2.5 2.5 0 0 1 15 8.5M10 13a2 2 0 0 0 1.82-1.18",key:"ygzou7"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],uy=e("ear-off",pq);const sq=[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]],My=e("ear",sq);const lq=[["path",{d:"M7 3.34V5a3 3 0 0 0 3 3",key:"w732o8"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2 2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"f02343"}],["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M12 2a10 10 0 1 0 9.54 13",key:"zjsr6q"}],["path",{d:"M20 6V4a2 2 0 1 0-4 0v2",key:"1of5e8"}],["rect",{width:"8",height:"5",x:"14",y:"6",rx:"1",key:"1fmf51"}]],vy=e("earth-lock",lq);const uq=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],q1=e("earth",uq);const Mq=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a7 7 0 1 0 10 10",key:"1yuj32"}]],my=e("eclipse",Mq);const vq=[["circle",{cx:"11.5",cy:"12.5",r:"3.5",key:"1cl1mi"}],["path",{d:"M3 8c0-3.5 2.5-6 6.5-6 5 0 4.83 3 7.5 5s5 2 5 6c0 4.5-2.5 6.5-7 6.5-2.5 0-2.5 2.5-6 2.5s-7-2-7-5.5c0-3 1.5-3 1.5-5C3.5 10 3 9 3 8Z",key:"165ef9"}]],_y=e("egg-fried",vq);const mq=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M20 14.347V14c0-6-4-12-8-12-1.078 0-2.157.436-3.157 1.19",key:"13g2jy"}],["path",{d:"M6.206 6.21C4.871 8.4 4 11.2 4 14a8 8 0 0 0 14.568 4.568",key:"1581id"}]],gy=e("egg-off",mq);const _q=[["path",{d:"M12 2C8 2 4 8 4 14a8 8 0 0 0 16 0c0-6-4-12-8-12",key:"1le142"}]],xy=e("egg",_q);const gq=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],z1=e("ellipsis-vertical",gq);const xq=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],S1=e("ellipsis",xq);const Lq=[["path",{d:"M5 15a6.5 6.5 0 0 1 7 0 6.5 6.5 0 0 0 7 0",key:"yrdkhy"}],["path",{d:"M5 9a6.5 6.5 0 0 1 7 0 6.5 6.5 0 0 0 7 0",key:"gzkvyz"}]],Ly=e("equal-approximately",Lq);const wq=[["line",{x1:"5",x2:"19",y1:"9",y2:"9",key:"1nwqeh"}],["line",{x1:"5",x2:"19",y1:"15",y2:"15",key:"g8yjpy"}],["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}]],wy=e("equal-not",wq);const fq=[["line",{x1:"5",x2:"19",y1:"9",y2:"9",key:"1nwqeh"}],["line",{x1:"5",x2:"19",y1:"15",y2:"15",key:"g8yjpy"}]],fy=e("equal",fq);const Iq=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],Iy=e("eraser",Iq);const Cq=[["path",{d:"m15 20 3-3h2a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h2l3 3z",key:"rbahqx"}],["path",{d:"M6 8v1",key:"1636ez"}],["path",{d:"M10 8v1",key:"1talb4"}],["path",{d:"M14 8v1",key:"1rsfgr"}],["path",{d:"M18 8v1",key:"gnkwox"}]],Cy=e("ethernet-port",Cq);const Nq=[["path",{d:"M4 10h12",key:"1y6xl8"}],["path",{d:"M4 14h9",key:"1loblj"}],["path",{d:"M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",key:"1j6lzo"}]],Ny=e("euro",Nq);const bq=[["path",{d:"M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5",key:"1wtuz0"}],["path",{d:"M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16",key:"e09ifn"}],["path",{d:"M2 21h13",key:"1x0fut"}],["path",{d:"M3 7h11",key:"19efrr"}],["path",{d:"m9 11-2 3h3l-2 3",key:"lmzxi1"}]],by=e("ev-charger",bq);const $q=[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]],$y=e("expand",$q);const qq=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],qy=e("external-link",qq);const zq=[["path",{d:"m15 18-.722-3.25",key:"1j64jw"}],["path",{d:"M2 8a10.645 10.645 0 0 0 20 0",key:"1e7gxb"}],["path",{d:"m20 15-1.726-2.05",key:"1cnuld"}],["path",{d:"m4 15 1.726-2.05",key:"1dsqqd"}],["path",{d:"m9 18 .722-3.25",key:"ypw2yx"}]],zy=e("eye-closed",zq);const Sq=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Sy=e("eye-off",Sq);const Aq=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ay=e("eye",Aq);const Hq=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Hy=e("facebook",Hq);const jq=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z",key:"1iv0i2"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],jy=e("factory",jq);const Vq=[["path",{d:"M10.827 16.379a6.082 6.082 0 0 1-8.618-7.002l5.412 1.45a6.082 6.082 0 0 1 7.002-8.618l-1.45 5.412a6.082 6.082 0 0 1 8.618 7.002l-5.412-1.45a6.082 6.082 0 0 1-7.002 8.618l1.45-5.412Z",key:"484a7f"}],["path",{d:"M12 12v.01",key:"u5ubse"}]],Vy=e("fan",Vq);const Pq=[["path",{d:"M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z",key:"18jl4k"}],["path",{d:"M16 8 2 22",key:"vp34q"}],["path",{d:"M17.5 15H9",key:"1oz8nu"}]],Py=e("feather",Pq);const Bq=[["path",{d:"M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z",key:"b19h5q"}],["path",{d:"M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z",key:"h7h5ge"}]],By=e("fast-forward",Bq);const Fq=[["path",{d:"M4 3 2 5v15c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V5Z",key:"1n2rgs"}],["path",{d:"M6 8h4",key:"utf9t1"}],["path",{d:"M6 18h4",key:"12yh4b"}],["path",{d:"m12 3-2 2v15c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V5Z",key:"3ha7mj"}],["path",{d:"M14 8h4",key:"1r8wg2"}],["path",{d:"M14 18h4",key:"1t3kbu"}],["path",{d:"m20 3-2 2v15c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V5Z",key:"dfd4e2"}]],Fy=e("fence",Fq);const Dq=[["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m6.8 15-3.5 2",key:"hjy98k"}],["path",{d:"m20.7 7-3.5 2",key:"f08gto"}],["path",{d:"M6.8 9 3.3 7",key:"1aevh4"}],["path",{d:"m20.7 17-3.5-2",key:"1liqo3"}],["path",{d:"m9 22 3-8 3 8",key:"wees03"}],["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M18 18.7a9 9 0 1 0-12 0",key:"dhzg4g"}]],Dy=e("ferris-wheel",Dq);const Rq=[["path",{d:"M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z",key:"1340ok"}],["path",{d:"M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z",key:"1hz3m3"}],["path",{d:"M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z",key:"1oz8n2"}],["path",{d:"M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z",key:"1ff65i"}],["path",{d:"M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z",key:"pdip6e"}]],Ry=e("figma",Rq);const Tq=[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],Ty=e("file-archive",Tq);const Uq=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m8 18 4-4",key:"12zab0"}],["path",{d:"M8 10v8h8",key:"tlaukw"}]],A1=e("file-axis-3d",Uq);const Oq=[["path",{d:"M13 22h5a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.3",key:"cvl1xm"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m7.69 16.479 1.29 4.88a.5.5 0 0 1-.698.591l-1.843-.849a1 1 0 0 0-.879.001l-1.846.85a.5.5 0 0 1-.692-.593l1.29-4.88",key:"1ff7gj"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}]],H1=e("file-badge",Oq);const Gq=[["path",{d:"M14.5 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.8",key:"1kchwa"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M11.7 14.2 7 17l-4.7-2.8",key:"1yk8tc"}],["path",{d:"M3 13.1a2 2 0 0 0-.999 1.76v3.24a2 2 0 0 0 .969 1.78L6 21.7a2 2 0 0 0 2.03.01L11 19.9a2 2 0 0 0 1-1.76V14.9a2 2 0 0 0-.97-1.78L8 11.3a2 2 0 0 0-2.03-.01z",key:"19flxy"}],["path",{d:"M7 17v5",key:"1yj1jh"}]],Uy=e("file-box",Gq);const Zq=[["path",{d:"M14 22h4a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6",key:"14cnrg"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M5 14a1 1 0 0 0-1 1v2a1 1 0 0 1-1 1 1 1 0 0 1 1 1v2a1 1 0 0 0 1 1",key:"sr0ebq"}],["path",{d:"M9 22a1 1 0 0 0 1-1v-2a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-2a1 1 0 0 0-1-1",key:"w793db"}]],j1=e("file-braces-corner",Zq);const Wq=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],V1=e("file-braces",Wq);const Eq=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M12 18v-4",key:"q1q25u"}],["path",{d:"M16 18v-6",key:"15y0np"}]],P1=e("file-chart-column-increasing",Eq);const Xq=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 18v-1",key:"zg0ygc"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"M16 18v-3",key:"j5jt4h"}]],B1=e("file-chart-column",Xq);const Kq=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m16 13-3.5 3.5-2-2L8 17",key:"zz7yod"}]],F1=e("file-chart-line",Kq);const Qq=[["path",{d:"M15.941 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.704l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.512",key:"13hoie"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M4.017 11.512a6 6 0 1 0 8.466 8.475",key:"s6vs5t"}],["path",{d:"M9 16a1 1 0 0 1-1-1v-4c0-.552.45-1.008.995-.917a6 6 0 0 1 4.922 4.922c.091.544-.365.995-.917.995z",key:"1dl6s6"}]],D1=e("file-chart-pie",Qq);const Jq=[["path",{d:"M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6",key:"g5mvt7"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14 20 2 2 4-4",key:"15kota"}]],R1=e("file-check-corner",Jq);const Yq=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]],Oy=e("file-check",Yq);const ez=[["path",{d:"M16 22h2a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v2.85",key:"ryk6xj"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 14v2.2l1.6 1",key:"6m4bie"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}]],Gy=e("file-clock",ez);const az=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],T1=e("file-code-corner",az);const cz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],Zy=e("file-code",cz);const tz=[["path",{d:"M13.85 22H18a2 2 0 0 0 2-2V8a2 2 0 0 0-.586-1.414l-4-4A2 2 0 0 0 14 2H6a2 2 0 0 0-2 2v6.6",key:"1l4p50"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m3.305 19.53.923-.382",key:"ao1pio"}],["path",{d:"m4.228 16.852-.924-.383",key:"1fv9zy"}],["path",{d:"m5.852 15.228-.383-.923",key:"1a9hc2"}],["path",{d:"m5.852 20.772-.383.924",key:"1sh9ke"}],["path",{d:"m8.148 15.228.383-.923",key:"4yu6lf"}],["path",{d:"m8.53 21.696-.382-.924",key:"18b0s9"}],["path",{d:"m9.773 16.852.922-.383",key:"ti6xop"}],["path",{d:"m9.773 19.148.922.383",key:"rws47d"}],["circle",{cx:"7",cy:"18",r:"3",key:"lvkj7j"}]],U1=e("file-cog",tz);const oz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],Wy=e("file-diff",oz);const dz=[["path",{d:"M4 12V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2",key:"jrl274"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 16h2v6",key:"1bxocy"}],["path",{d:"M10 22h4",key:"ceow96"}],["rect",{x:"2",y:"16",width:"4",height:"6",rx:"2",key:"r45zd0"}]],Ey=e("file-digit",dz);const nz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],Xy=e("file-down",nz);const hz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],O1=e("file-exclamation-point",hz);const iz=[["path",{d:"M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343",key:"1vfytu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0",key:"1etmh7"}]],n=e("file-headphone",iz);const yz=[["path",{d:"M13 22h5a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v7",key:"oagw2b"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M3.62 18.8A2.25 2.25 0 1 1 7 15.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a1 1 0 0 1-1.507 0z",key:"rg3psg"}]],Ky=e("file-heart",yz);const rz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],Qy=e("file-image",rz);const kz=[["path",{d:"M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1",key:"1q9hii"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],Jy=e("file-input",kz);const pz=[["path",{d:"M10.65 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v10.1",key:"1a2hbp"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m10 15 1 1",key:"1h4vmv"}],["path",{d:"m11 14-4.586 4.586",key:"maylof"}],["circle",{cx:"5",cy:"20",r:"2",key:"860zyv"}]],G1=e("file-key",pz);const sz=[["path",{d:"M4 9.8V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3",key:"1432pc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 17v-2a2 2 0 0 0-4 0v2",key:"168m41"}],["rect",{width:"8",height:"5",x:"3",y:"17",rx:"1",key:"o8vfew"}]],Z1=e("file-lock",sz);const lz=[["path",{d:"M20 14V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12",key:"l9p8hp"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],W1=e("file-minus-corner",lz);const uz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}]],Yy=e("file-minus",uz);const Mz=[["path",{d:"M11.65 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v10.35",key:"5ad7z2"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 20v-7l3 1.474",key:"1ggyb9"}],["circle",{cx:"6",cy:"20",r:"2",key:"j7wjp0"}]],e4=e("file-music",Mz);const vz=[["path",{d:"M4.226 20.925A2 2 0 0 0 6 22h12a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.127",key:"wfxp4w"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 11-3 3",key:"1dgrs4"}],["path",{d:"m5 17-3-3h10",key:"1mvvaf"}]],a4=e("file-output",vz);const mz=[["path",{d:"m18.226 5.226-2.52-2.52A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-.351",key:"1k2beg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]],E1=e("file-pen-line",mz);const _z=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],X1=e("file-pen",_z);const gz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z",key:"1tzo1f"}]],K1=e("file-play",gz);const xz=[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]],Q1=e("file-plus-corner",xz);const Lz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],c4=e("file-plus",Lz);const wz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]],J1=e("file-question-mark",wz);const fz=[["path",{d:"M20 10V8a2.4 2.4 0 0 0-.706-1.704l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4.35",key:"1cdjst"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M16 14a2 2 0 0 0-2 2",key:"ceaadl"}],["path",{d:"M16 22a2 2 0 0 1-2-2",key:"1wqh5n"}],["path",{d:"M20 14a2 2 0 0 1 2 2",key:"1ny6zw"}],["path",{d:"M20 22a2 2 0 0 0 2-2",key:"1l9q4k"}]],t4=e("file-scan",fz);const Iz=[["path",{d:"M11.1 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.589 3.588A2.4 2.4 0 0 1 20 8v3.25",key:"uh4ikj"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m21 22-2.88-2.88",key:"9dd25w"}],["circle",{cx:"16",cy:"17",r:"3",key:"11br10"}]],Y1=e("file-search-corner",Iz);const Cz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]],o4=e("file-search",Cz);const Nz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M11.5 13.5a2.5 2.5 0 0 1 0 3",key:"1fccat"}],["path",{d:"M15 12a5 5 0 0 1 0 6",key:"ps46cm"}]],e2=e("file-signal",Nz);const bz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M10 11v2",key:"1s651w"}],["path",{d:"M8 17h8",key:"wh5c61"}],["path",{d:"M14 16v2",key:"12fp5e"}]],d4=e("file-sliders",bz);const $z=[["path",{d:"M11 21a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1",key:"likhh7"}],["path",{d:"M16 16a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1",key:"17ky3x"}],["path",{d:"M21 6a2 2 0 0 0-.586-1.414l-2-2A2 2 0 0 0 17 2h-3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1z",key:"1hyeo0"}]],n4=e("file-stack",$z);const qz=[["path",{d:"M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7",key:"huwfnr"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m10 18 3-3-3-3",key:"18f6ys"}]],h4=e("file-symlink",qz);const zz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],i4=e("file-spreadsheet",zz);const Sz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m8 16 2-2-2-2",key:"10vzyd"}],["path",{d:"M12 18h4",key:"1wd2n7"}]],y4=e("file-terminal",Sz);const Az=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],r4=e("file-text",Az);const Hz=[["path",{d:"M12 22h6a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6",key:"15usau"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M3 16v-1.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5V16",key:"s1gz5"}],["path",{d:"M6 22h2",key:"194x9m"}],["path",{d:"M7 14v8",key:"11ixej"}]],a2=e("file-type-corner",Hz);const jz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M11 18h2",key:"12mj7e"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M9 13v-.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v.5",key:"qbrxap"}]],k4=e("file-type",jz);const Vz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]],p4=e("file-up",Vz);const Pz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M16 22a4 4 0 0 0-8 0",key:"7a83pg"}],["circle",{cx:"12",cy:"15",r:"3",key:"g36mzq"}]],s4=e("file-user",Pz);const Bz=[["path",{d:"M4 12V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2",key:"jrl274"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m10 17.843 3.033-1.755a.64.64 0 0 1 .967.56v4.704a.65.65 0 0 1-.967.56L10 20.157",key:"17aeo9"}],["rect",{width:"7",height:"6",x:"3",y:"16",rx:"1",key:"s27ndx"}]],c2=e("file-video-camera",Bz);const Fz=[["path",{d:"M4 11.55V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-1.95",key:"44gpjv"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 15a5 5 0 0 1 0 6",key:"oxg87a"}],["path",{d:"M8 14.502a.5.5 0 0 0-.826-.381l-1.893 1.631a1 1 0 0 1-.651.243H3.5a.5.5 0 0 0-.5.501v3.006a.5.5 0 0 0 .5.501h1.129a1 1 0 0 1 .652.243l1.893 1.633a.5.5 0 0 0 .826-.38z",key:"8rtoi1"}]],l4=e("file-volume",Fz);const Dz=[["path",{d:"M11 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5",key:"1jo35a"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m15 17 5 5",key:"36xl1x"}],["path",{d:"m20 17-5 5",key:"vdz27y"}]],t2=e("file-x-corner",Dz);const Rz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],u4=e("file-x",Rz);const Tz=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],M4=e("file",Tz);const Uz=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],v4=e("files",Uz);const Oz=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],o2=e("fingerprint-pattern",Oz);const Gz=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],m4=e("film",Gz);const Zz=[["path",{d:"M15 6.5V3a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3.5",key:"sqyvz"}],["path",{d:"M9 18h8",key:"i7pszb"}],["path",{d:"M18 3h-3",key:"7idoqj"}],["path",{d:"M11 3a6 6 0 0 0-6 6v11",key:"1v5je3"}],["path",{d:"M5 13h4",key:"svpcxo"}],["path",{d:"M17 10a4 4 0 0 0-8 0v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2Z",key:"vsjego"}]],_4=e("fire-extinguisher",Zz);const Wz=[["path",{d:"M18 12.47v.03m0-.5v.47m-.475 5.056A6.744 6.744 0 0 1 15 18c-3.56 0-7.56-2.53-8.5-6 .348-1.28 1.114-2.433 2.121-3.38m3.444-2.088A8.802 8.802 0 0 1 15 6c3.56 0 6.06 2.54 7 6-.309 1.14-.786 2.177-1.413 3.058",key:"1j1hse"}],["path",{d:"M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33m7.48-4.372A9.77 9.77 0 0 1 16 6.07m0 11.86a9.77 9.77 0 0 1-1.728-3.618",key:"1q46z8"}],["path",{d:"m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98M8.53 3h5.27a2 2 0 0 1 1.98 1.67l.23 1.4M2 2l20 20",key:"1407gh"}]],g4=e("fish-off",Wz);const Ez=[["path",{d:"M2 16s9-15 20-4C11 23 2 8 2 8",key:"h4oh4o"}]],x4=e("fish-symbol",Ez);const Xz=[["path",{d:"M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z",key:"15baut"}],["path",{d:"M18 12v.5",key:"18hhni"}],["path",{d:"M16 17.93a9.77 9.77 0 0 1 0-11.86",key:"16dt7o"}],["path",{d:"M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33",key:"l9di03"}],["path",{d:"M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4",key:"1kjonw"}],["path",{d:"m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98",key:"1zlm23"}]],L4=e("fish",Xz);const Kz=[["path",{d:"M16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1q158e"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 22V4",key:"1plyxx"}],["path",{d:"M7.656 2H8c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10.347",key:"xj1b71"}]],w4=e("flag-off",Kz);const Qz=[["path",{d:"M18 22V2.8a.8.8 0 0 0-1.17-.71L5.45 7.78a.8.8 0 0 0 0 1.44L18 15.5",key:"rbbtmw"}]],f4=e("flag-triangle-left",Qz);const Jz=[["path",{d:"M6 22V2.8a.8.8 0 0 1 1.17-.71l11.38 5.69a.8.8 0 0 1 0 1.44L6 15.5",key:"kfjsu0"}]],I4=e("flag-triangle-right",Jz);const Yz=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],C4=e("flag",Yz);const eS=[["path",{d:"M12 2c1 3 2.5 3.5 3.5 4.5A5 5 0 0 1 17 10a5 5 0 1 1-10 0c0-.3 0-.6.1-.9a2 2 0 1 0 3.3-2C8 4.5 11 2 12 2Z",key:"1ir223"}],["path",{d:"m5 22 14-4",key:"1brv4h"}],["path",{d:"m5 18 14 4",key:"lgyyje"}]],N4=e("flame-kindling",eS);const aS=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],b4=e("flame",aS);const cS=[["path",{d:"M11.652 6H18",key:"voqkpr"}],["path",{d:"M12 13v1",key:"176q98"}],["path",{d:"M16 16v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V6",key:"dzyf92"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M7.649 2H17a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8a4 4 0 0 0-.55 1.007",key:"1hvcfn"}]],$4=e("flashlight-off",cS);const tS=[["path",{d:"M12 13v1",key:"176q98"}],["path",{d:"M17 2a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8A4 4 0 0 0 16 12v8a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V3a1 1 0 0 1 1-1z",key:"17vh7j"}],["path",{d:"M6 6h12",key:"n6hhss"}]],q4=e("flashlight",tS);const oS=[["path",{d:"M10 2v2.343",key:"15t272"}],["path",{d:"M14 2v6.343",key:"sxr80q"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M20 20a2 2 0 0 1-2 2H6a2 2 0 0 1-1.755-2.96l5.227-9.563",key:"k0duyd"}],["path",{d:"M6.453 15H15",key:"1f0z33"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],z4=e("flask-conical-off",oS);const dS=[["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"}]],S4=e("flask-conical",dS);const nS=[["path",{d:"M10 2v6.292a7 7 0 1 0 4 0V2",key:"1s42pc"}],["path",{d:"M5 15h14",key:"m0yey3"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],A4=e("flask-round",nS);const hS=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3",key:"1i73f7"}],["path",{d:"M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3",key:"saxlbk"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 2v2",key:"tus03m"}]],H4=e("flip-horizontal",hS);const iS=[["path",{d:"m3 7 5 5-5 5V7",key:"couhi7"}],["path",{d:"m21 7-5 5 5 5V7",key:"6ouia7"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 2v2",key:"tus03m"}]],j4=e("flip-horizontal-2",iS);const yS=[["path",{d:"m17 3-5 5-5-5h10",key:"1ftt6x"}],["path",{d:"m17 21-5-5-5 5h10",key:"1m0wmu"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}]],V4=e("flip-vertical-2",yS);const rS=[["path",{d:"M21 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v3",key:"14bfxa"}],["path",{d:"M21 16v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3",key:"14rx03"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}]],P4=e("flip-vertical",rS);const kS=[["path",{d:"M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1",key:"3pnvol"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M12 10v12",key:"6ubwww"}],["path",{d:"M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z",key:"9hd38g"}],["path",{d:"M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z",key:"ufn41s"}]],B4=e("flower-2",kS);const pS=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M12 16.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 1 1 4.5 4.5 4.5 4.5 0 1 1-4.5 4.5",key:"14wa3c"}],["path",{d:"M12 7.5V9",key:"1oy5b0"}],["path",{d:"M7.5 12H9",key:"eltsq1"}],["path",{d:"M16.5 12H15",key:"vk5kw4"}],["path",{d:"M12 16.5V15",key:"k7eayi"}],["path",{d:"m8 8 1.88 1.88",key:"nxy4qf"}],["path",{d:"M14.12 9.88 16 8",key:"1lst6k"}],["path",{d:"m8 16 1.88-1.88",key:"h2eex1"}],["path",{d:"M14.12 14.12 16 16",key:"uqkrx3"}]],F4=e("flower",pS);const sS=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]],D4=e("focus",sS);const lS=[["path",{d:"M2 12h6",key:"1wqiqv"}],["path",{d:"M22 12h-6",key:"1eg9hc"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m19 9-3 3 3 3",key:"12ol22"}],["path",{d:"m5 15 3-3-3-3",key:"1kdhjc"}]],R4=e("fold-horizontal",lS);const uS=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3-3-3 3",key:"e37ymu"}],["path",{d:"m15 5-3 3-3-3",key:"19d6lf"}]],T4=e("fold-vertical",uS);const MS=[["circle",{cx:"15",cy:"19",r:"2",key:"u2pros"}],["path",{d:"M20.9 19.8A2 2 0 0 0 22 18V8a2 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 2h5.1",key:"1jj40k"}],["path",{d:"M15 11v-1",key:"cntcp"}],["path",{d:"M15 17v-2",key:"1279jj"}]],U4=e("folder-archive",MS);const vS=[["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"}],["path",{d:"m9 13 2 2 4-4",key:"6343dt"}]],O4=e("folder-check",vS);const mS=[["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"}],["path",{d:"M2 10h20",key:"1ir3d8"}]],G4=e("folder-closed",mS);const _S=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M7 20H4a2 2 0 0 1-2-2V5a2 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 2",key:"1urifu"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],Z4=e("folder-clock",_S);const gS=[["path",{d:"M10 10.5 8 13l2 2.5",key:"m4t9c1"}],["path",{d:"m14 10.5 2 2.5-2 2.5",key:"14w2eb"}],["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:"1u1bxd"}]],W4=e("folder-code",gS);const xS=[["path",{d:"M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3",key:"128dxu"}],["path",{d:"m14.305 19.53.923-.382",key:"3m78fa"}],["path",{d:"m15.228 16.852-.923-.383",key:"npixar"}],["path",{d:"m16.852 15.228-.383-.923",key:"5xggr7"}],["path",{d:"m16.852 20.772-.383.924",key:"dpfhf9"}],["path",{d:"m19.148 15.228.383-.923",key:"1reyyz"}],["path",{d:"m19.53 21.696-.382-.924",key:"1goivc"}],["path",{d:"m20.772 16.852.924-.383",key:"htqkph"}],["path",{d:"m20.772 19.148.924.383",key:"9w9pjp"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]],d2=e("folder-cog",xS);const LS=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["circle",{cx:"12",cy:"13",r:"1",key:"49l61u"}]],E4=e("folder-dot",LS);const wS=[["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"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m15 13-3 3-3-3",key:"6j2sf0"}]],X4=e("folder-down",wS);const fS=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 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 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],K4=e("folder-git-2",fS);const IS=[["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}],["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"}],["path",{d:"M14 13h3",key:"1dgedf"}],["path",{d:"M7 13h3",key:"1pygq7"}]],Q4=e("folder-git",IS);const CS=[["path",{d:"M10.638 20H4a2 2 0 0 1-2-2V5a2 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 2v3.417",key:"10r6g4"}],["path",{d:"M14.62 18.8A2.25 2.25 0 1 1 18 15.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z",key:"15cy7q"}]],J4=e("folder-heart",CS);const NS=[["path",{d:"M2 9V5a2 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-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]],Y4=e("folder-input",NS);const bS=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]],e5=e("folder-kanban",bS);const $S=[["circle",{cx:"16",cy:"20",r:"2",key:"1vifvg"}],["path",{d:"M10 20H4a2 2 0 0 1-2-2V5a2 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 2v2",key:"3hgo9p"}],["path",{d:"m22 14-4.5 4.5",key:"1ef6z8"}],["path",{d:"m21 15 1 1",key:"1ejcpy"}]],a5=e("folder-key",$S);const qS=[["rect",{width:"8",height:"5",x:"14",y:"17",rx:"1",key:"19aais"}],["path",{d:"M10 20H4a2 2 0 0 1-2-2V5a2 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 2v2.5",key:"1w6v7t"}],["path",{d:"M20 17v-2a2 2 0 1 0-4 0v2",key:"pwaxnr"}]],c5=e("folder-lock",qS);const zS=[["path",{d:"M9 13h6",key:"1uhe8q"}],["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"}]],t5=e("folder-minus",zS);const SS=[["path",{d:"m6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2",key:"1nmvlm"}],["circle",{cx:"14",cy:"15",r:"1",key:"1gm4qj"}]],o5=e("folder-open-dot",SS);const AS=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],d5=e("folder-open",AS);const HS=[["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"}]],n5=e("folder-output",HS);const jS=[["path",{d:"M2 11.5V5a2 2 0 0 1 2-2h3.9c.7 0 1.3.3 1.7.9l.8 1.2c.4.6 1 .9 1.7.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9.5",key:"a8xqs0"}],["path",{d:"M11.378 13.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1saktj"}]],n2=e("folder-pen",jS);const VS=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["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"}]],h5=e("folder-plus",VS);const PS=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}],["path",{d:"M12 15v5",key:"11xva1"}]],i5=e("folder-root",PS);const BS=[["circle",{cx:"11.5",cy:"12.5",r:"2.5",key:"1ea5ju"}],["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"}],["path",{d:"M13.3 14.3 15 16",key:"1y4v1n"}]],y5=e("folder-search-2",BS);const FS=[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 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 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]],r5=e("folder-search",FS);const DS=[["path",{d:"M2 9.35V5a2 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-2v-3a2 2 0 0 1 2-2h7",key:"y8kt7d"}],["path",{d:"m8 16 3-3-3-3",key:"rlqrt1"}]],k5=e("folder-symlink",DS);const RS=[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 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 2v.5",key:"1dkoa9"}],["path",{d:"M12 10v4h4",key:"1czhmt"}],["path",{d:"m12 14 1.535-1.605a5 5 0 0 1 8 1.5",key:"lvuxfi"}],["path",{d:"M22 22v-4h-4",key:"1ewp4q"}],["path",{d:"m22 18-1.535 1.605a5 5 0 0 1-8-1.5",key:"14ync0"}]],p5=e("folder-sync",RS);const TS=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],s5=e("folder-tree",TS);const US=[["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"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m9 13 3-3 3 3",key:"1pxg3c"}]],l5=e("folder-up",US);const OS=[["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"}],["path",{d:"m9.5 10.5 5 5",key:"ra9qjz"}],["path",{d:"m14.5 10.5-5 5",key:"l2rkpq"}]],u5=e("folder-x",OS);const GS=[["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"}]],M5=e("folder",GS);const ZS=[["path",{d:"M20 5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h2.5a1.5 1.5 0 0 1 1.2.6l.6.8a1.5 1.5 0 0 0 1.2.6z",key:"a4852j"}],["path",{d:"M3 8.268a2 2 0 0 0-1 1.738V19a2 2 0 0 0 2 2h11a2 2 0 0 0 1.732-1",key:"yxbcw3"}]],v5=e("folders",ZS);const WS=[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]],m5=e("footprints",WS);const ES=[["path",{d:"M12 12H5a2 2 0 0 0-2 2v5",key:"7zsz91"}],["circle",{cx:"13",cy:"19",r:"2",key:"wjnkru"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}],["path",{d:"M8 19h3m5-17v17h6M6 12V7c0-1.1.9-2 2-2h3l5 5",key:"13bk1p"}]],_5=e("forklift",ES);const XS=[["path",{d:"M4 14h6",key:"77gv2w"}],["path",{d:"M4 2h10",key:"a2b314"}],["rect",{x:"4",y:"18",width:"16",height:"4",rx:"1",key:"sybzq6"}],["rect",{x:"4",y:"6",width:"16",height:"4",rx:"1",key:"1osc9e"}]],g5=e("form",XS);const KS=[["path",{d:"m15 17 5-5-5-5",key:"nf172w"}],["path",{d:"M4 18v-2a4 4 0 0 1 4-4h12",key:"jmiej9"}]],x5=e("forward",KS);const QS=[["line",{x1:"22",x2:"2",y1:"6",y2:"6",key:"15w7dq"}],["line",{x1:"22",x2:"2",y1:"18",y2:"18",key:"1ip48p"}],["line",{x1:"6",x2:"6",y1:"2",y2:"22",key:"a2lnyx"}],["line",{x1:"18",x2:"18",y1:"2",y2:"22",key:"8vb6jd"}]],L5=e("frame",QS);const JS=[["path",{d:"M5 16V9h14V2H5l14 14h-7m-7 0 7 7v-7m-7 0h7",key:"1a2nng"}]],w5=e("framer",JS);const YS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],f5=e("frown",YS);const eA=[["path",{d:"M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5",key:"1wtuz0"}],["path",{d:"M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16",key:"e09ifn"}],["path",{d:"M2 21h13",key:"1x0fut"}],["path",{d:"M3 9h11",key:"1p7c0w"}]],I5=e("fuel",eA);const aA=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["rect",{width:"10",height:"8",x:"7",y:"8",rx:"1",key:"vys8me"}]],C5=e("fullscreen",aA);const cA=[["path",{d:"M13.354 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l1.218-1.348",key:"8mvsmf"}],["path",{d:"M16 6h6",key:"1dogtp"}],["path",{d:"M19 3v6",key:"1ytpjt"}]],N5=e("funnel-plus",cA);const tA=[["path",{d:"M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473",key:"ol2ft2"}],["path",{d:"m16.5 3.5 5 5",key:"15e6fa"}],["path",{d:"m21.5 3.5-5 5",key:"m0lwru"}]],h2=e("funnel-x",tA);const oA=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],i2=e("funnel",oA);const dA=[["path",{d:"M2 7v10",key:"a2pl2d"}],["path",{d:"M6 5v14",key:"1kq3d7"}],["rect",{width:"12",height:"18",x:"10",y:"3",rx:"2",key:"13i7bc"}]],b5=e("gallery-horizontal-end",dA);const nA=[["path",{d:"M2 3v18",key:"pzttux"}],["rect",{width:"12",height:"18",x:"6",y:"3",rx:"2",key:"btr8bg"}],["path",{d:"M22 3v18",key:"6jf3v"}]],$5=e("gallery-horizontal",nA);const hA=[["rect",{width:"18",height:"14",x:"3",y:"3",rx:"2",key:"74y24f"}],["path",{d:"M4 21h1",key:"16zlid"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M19 21h1",key:"edywat"}]],q5=e("gallery-thumbnails",hA);const iA=[["path",{d:"M7 2h10",key:"nczekb"}],["path",{d:"M5 6h14",key:"u2x4p"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}]],z5=e("gallery-vertical-end",iA);const yA=[["path",{d:"M3 2h18",key:"15qxfx"}],["rect",{width:"18",height:"12",x:"3",y:"6",rx:"2",key:"1439r6"}],["path",{d:"M3 22h18",key:"8prr45"}]],S5=e("gallery-vertical",yA);const rA=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],A5=e("gamepad-2",rA);const kA=[["path",{d:"M11.146 15.854a1.207 1.207 0 0 1 1.708 0l1.56 1.56A2 2 0 0 1 15 18.828V21a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-2.172a2 2 0 0 1 .586-1.414z",key:"1re2og"}],["path",{d:"M18.828 15a2 2 0 0 1-1.414-.586l-1.56-1.56a1.207 1.207 0 0 1 0-1.708l1.56-1.56A2 2 0 0 1 18.828 9H21a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1z",key:"1pchrj"}],["path",{d:"M6.586 14.414A2 2 0 0 1 5.172 15H3a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h2.172a2 2 0 0 1 1.414.586l1.56 1.56a1.207 1.207 0 0 1 0 1.708z",key:"16mt4c"}],["path",{d:"M9 3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2.172a2 2 0 0 1-.586 1.414l-1.56 1.56a1.207 1.207 0 0 1-1.708 0l-1.56-1.56A2 2 0 0 1 9 5.172z",key:"19ox6c"}]],H5=e("gamepad-directional",kA);const pA=[["line",{x1:"6",x2:"10",y1:"12",y2:"12",key:"161bw2"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"15",x2:"15.01",y1:"13",y2:"13",key:"dqpgro"}],["line",{x1:"18",x2:"18.01",y1:"11",y2:"11",key:"meh2c"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]],j5=e("gamepad",pA);const sA=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],V5=e("gauge",sA);const lA=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]],P5=e("gavel",lA);const uA=[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]],B5=e("gem",uA);const MA=[["path",{d:"M11.5 21a7.5 7.5 0 1 1 7.35-9",key:"1gyj8k"}],["path",{d:"M13 12V3",key:"18om2a"}],["path",{d:"M4 21h16",key:"1h09gz"}],["path",{d:"M9 12V3",key:"geutu0"}]],F5=e("georgian-lari",MA);const vA=[["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"}]],D5=e("ghost",vA);const mA=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["path",{d:"M21 18h-6",key:"139f0c"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],R5=e("git-branch-minus",mA);const _A=[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]],T5=e("gift",_A);const gA=[["path",{d:"M6 3v12",key:"qpgusn"}],["path",{d:"M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"1d02ji"}],["path",{d:"M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"chk6ph"}],["path",{d:"M15 6a9 9 0 0 0-9 9",key:"or332x"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]],U5=e("git-branch-plus",gA);const xA=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],O5=e("git-branch",xA);const LA=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],y2=e("git-commit-horizontal",LA);const wA=[["path",{d:"M12 3v6",key:"1holv5"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M12 15v6",key:"a9ows0"}]],G5=e("git-commit-vertical",wA);const fA=[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]],Z5=e("git-compare-arrows",fA);const IA=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]],W5=e("git-compare",IA);const CA=[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M5 9v6",key:"158jrl"}],["circle",{cx:"5",cy:"18",r:"3",key:"104gr9"}],["path",{d:"M12 3v18",key:"108xh3"}],["circle",{cx:"19",cy:"6",r:"3",key:"108a5v"}],["path",{d:"M16 15.7A9 9 0 0 0 19 9",key:"1e3vqb"}]],E5=e("git-graph",CA);const NA=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],X5=e("git-fork",NA);const bA=[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M5 9v12",key:"ih889a"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}]],K5=e("git-pull-request-arrow",bA);const $A=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],Q5=e("git-merge",$A);const qA=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 9v12",key:"1sc30k"}],["path",{d:"m21 3-6 6",key:"16nqsk"}],["path",{d:"m21 9-6-6",key:"9j17rh"}],["path",{d:"M18 11.5V15",key:"65xf6f"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]],J5=e("git-pull-request-closed",qA);const zA=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 9v12",key:"1sc30k"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v3",key:"1jb6z3"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]],Y5=e("git-pull-request-create",zA);const SA=[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M5 9v12",key:"ih889a"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v3",key:"1rbwk6"}],["path",{d:"M19 15v6",key:"10aioa"}],["path",{d:"M22 18h-6",key:"1d5gi5"}]],er=e("git-pull-request-create-arrow",SA);const AA=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M18 6V5",key:"1oao2s"}],["path",{d:"M18 11v-1",key:"11c8tz"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],ar=e("git-pull-request-draft",AA);const HA=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],cr=e("git-pull-request",HA);const jA=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],tr=e("github",jA);const VA=[["path",{d:"m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H8.32L6.1 3.26a.42.42 0 0 0-.1-.18.38.38 0 0 0-.26-.08.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18L2 13.29a.74.74 0 0 0 .27.83L12 21l9.69-6.88a.71.71 0 0 0 .31-.83Z",key:"148pdi"}]],or=e("gitlab",VA);const PA=[["path",{d:"M5.116 4.104A1 1 0 0 1 6.11 3h11.78a1 1 0 0 1 .994 1.105L17.19 20.21A2 2 0 0 1 15.2 22H8.8a2 2 0 0 1-2-1.79z",key:"p55z4y"}],["path",{d:"M6 12a5 5 0 0 1 6 0 5 5 0 0 0 6 0",key:"mjntcy"}]],dr=e("glass-water",PA);const BA=[["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"}]],nr=e("glasses",BA);const FA=[["path",{d:"M15.686 15A14.5 14.5 0 0 1 12 22a14.5 14.5 0 0 1 0-20 10 10 0 1 0 9.542 13",key:"qkt0x6"}],["path",{d:"M2 12h8.5",key:"ovaggd"}],["path",{d:"M20 6V4a2 2 0 1 0-4 0v2",key:"1of5e8"}],["rect",{width:"8",height:"5",x:"14",y:"6",rx:"1",key:"1fmf51"}]],hr=e("globe-lock",FA);const DA=[["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"}]],ir=e("globe",DA);const RA=[["path",{d:"M12 13V2l8 4-8 4",key:"5wlwwj"}],["path",{d:"M20.561 10.222a9 9 0 1 1-12.55-5.29",key:"1c0wjv"}],["path",{d:"M8.002 9.997a5 5 0 1 0 8.9 2.02",key:"gb1g7m"}]],yr=e("goal",RA);const TA=[["path",{d:"M2 21V3",key:"1bzk4w"}],["path",{d:"M2 5h18a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2.26",key:"1d64pi"}],["path",{d:"M7 17v3a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-3",key:"5hbqbf"}],["circle",{cx:"16",cy:"11",r:"2",key:"qt15rb"}],["circle",{cx:"8",cy:"11",r:"2",key:"ssideg"}]],rr=e("gpu",TA);const UA=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],kr=e("graduation-cap",UA);const OA=[["path",{d:"M22 5V2l-5.89 5.89",key:"1eenpo"}],["circle",{cx:"16.6",cy:"15.89",r:"3",key:"xjtalx"}],["circle",{cx:"8.11",cy:"7.4",r:"3",key:"u2fv6i"}],["circle",{cx:"12.35",cy:"11.65",r:"3",key:"i6i8g7"}],["circle",{cx:"13.91",cy:"5.85",r:"3",key:"6ye0dv"}],["circle",{cx:"18.15",cy:"10.09",r:"3",key:"snx9no"}],["circle",{cx:"6.56",cy:"13.2",r:"3",key:"17x4xg"}],["circle",{cx:"10.8",cy:"17.44",r:"3",key:"1hogw9"}],["circle",{cx:"5",cy:"19",r:"3",key:"1sn6vo"}]],pr=e("grape",OA);const GA=[["path",{d:"M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3",key:"11za1p"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],r2=e("grid-2x2-check",GA);const ZA=[["path",{d:"M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3",key:"11za1p"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 22v-6",key:"qhmiwi"}]],k2=e("grid-2x2-plus",ZA);const WA=[["path",{d:"M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3",key:"11za1p"}],["path",{d:"m16 16 5 5",key:"8tpb07"}],["path",{d:"m16 21 5-5",key:"193jll"}]],p2=e("grid-2x2-x",WA);const EA=[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 12h18",key:"1i2n21"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]],s2=e("grid-2x2",EA);const XA=[["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]],sr=e("grid-3x2",XA);const KA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],h=e("grid-3x3",KA);const QA=[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]],lr=e("grip-horizontal",QA);const JA=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],ur=e("grip-vertical",JA);const YA=[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"19",cy:"5",r:"1",key:"w8mnmm"}],["circle",{cx:"5",cy:"5",r:"1",key:"lttvr7"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}],["circle",{cx:"19",cy:"19",r:"1",key:"shf9b7"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]],Mr=e("grip",YA);const eH=[["path",{d:"M3 7V5c0-1.1.9-2 2-2h2",key:"adw53z"}],["path",{d:"M17 3h2c1.1 0 2 .9 2 2v2",key:"an4l38"}],["path",{d:"M21 17v2c0 1.1-.9 2-2 2h-2",key:"144t0e"}],["path",{d:"M7 21H5c-1.1 0-2-.9-2-2v-2",key:"rtnfgi"}],["rect",{width:"7",height:"5",x:"7",y:"7",rx:"1",key:"1eyiv7"}],["rect",{width:"7",height:"5",x:"10",y:"12",rx:"1",key:"1qlmkx"}]],vr=e("group",eH);const aH=[["path",{d:"M13.144 21.144A7.274 10.445 45 1 0 2.856 10.856",key:"1k1t7q"}],["path",{d:"M13.144 21.144A7.274 4.365 45 0 0 2.856 10.856a7.274 4.365 45 0 0 10.288 10.288",key:"153t1g"}],["path",{d:"M16.565 10.435 18.6 8.4a2.501 2.501 0 1 0 1.65-4.65 2.5 2.5 0 1 0-4.66 1.66l-2.024 2.025",key:"gzrt0n"}],["path",{d:"m8.5 16.5-1-1",key:"otr954"}]],mr=e("ham",aH);const cH=[["path",{d:"m11.9 12.1 4.514-4.514",key:"109xqo"}],["path",{d:"M20.1 2.3a1 1 0 0 0-1.4 0l-1.114 1.114A2 2 0 0 0 17 4.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 17.828 7h1.344a2 2 0 0 0 1.414-.586L21.7 5.3a1 1 0 0 0 0-1.4z",key:"txyc8t"}],["path",{d:"m6 16 2 2",key:"16qmzd"}],["path",{d:"M8.23 9.85A3 3 0 0 1 11 8a5 5 0 0 1 5 5 3 3 0 0 1-1.85 2.77l-.92.38A2 2 0 0 0 12 18a4 4 0 0 1-4 4 6 6 0 0 1-6-6 4 4 0 0 1 4-4 2 2 0 0 0 1.85-1.23z",key:"1de1vg"}]],_r=e("guitar",cH);const tH=[["path",{d:"M12 16H4a2 2 0 1 1 0-4h16a2 2 0 1 1 0 4h-4.25",key:"5dloqd"}],["path",{d:"M5 12a2 2 0 0 1-2-2 9 7 0 0 1 18 0 2 2 0 0 1-2 2",key:"1vl3my"}],["path",{d:"M5 16a2 2 0 0 0-2 2 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 2 2 0 0 0-2-2q0 0 0 0",key:"1us75o"}],["path",{d:"m6.67 12 6.13 4.6a2 2 0 0 0 2.8-.4l3.15-4.2",key:"qqzweh"}]],gr=e("hamburger",tH);const oH=[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]],xr=e("hammer",oH);const dH=[["path",{d:"M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17",key:"geh8rc"}],["path",{d:"m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"1fto5m"}],["path",{d:"m2 16 6 6",key:"1pfhp9"}],["circle",{cx:"16",cy:"9",r:"2.9",key:"1n0dlu"}],["circle",{cx:"6",cy:"5",r:"3",key:"151irh"}]],Lr=e("hand-coins",dH);const nH=[["path",{d:"M12.035 17.012a3 3 0 0 0-3-3l-.311-.002a.72.72 0 0 1-.505-1.229l1.195-1.195A2 2 0 0 1 10.828 11H12a2 2 0 0 0 0-4H9.243a3 3 0 0 0-2.122.879l-2.707 2.707A4.83 4.83 0 0 0 3 14a8 8 0 0 0 8 8h2a8 8 0 0 0 8-8V7a2 2 0 1 0-4 0v2a2 2 0 1 0 4 0",key:"1ff7rl"}],["path",{d:"M13.888 9.662A2 2 0 0 0 17 8V5A2 2 0 1 0 13 5",key:"1xmd21"}],["path",{d:"M9 5A2 2 0 1 0 5 5V10",key:"f3wfjw"}],["path",{d:"M9 7V4A2 2 0 1 1 13 4V7.268",key:"eaoucv"}]],wr=e("hand-fist",nH);const hH=[["path",{d:"M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4",key:"edstyy"}],["path",{d:"M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"19wdwo"}],["path",{d:"M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5",key:"1lugqo"}],["path",{d:"M6 14a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1hbeus"}],["path",{d:"M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-4a8 8 0 0 1-8-8 2 2 0 1 1 4 0",key:"1etffm"}]],l2=e("hand-grab",hH);const iH=[["path",{d:"M11 14h2a2 2 0 0 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16",key:"1v1a37"}],["path",{d:"m14.45 13.39 5.05-4.694C20.196 8 21 6.85 21 5.75a2.75 2.75 0 0 0-4.797-1.837.276.276 0 0 1-.406 0A2.75 2.75 0 0 0 11 5.75c0 1.2.802 2.248 1.5 2.946L16 11.95",key:"fhfbnt"}],["path",{d:"m2 15 6 6",key:"10dquu"}],["path",{d:"m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a1 1 0 0 0-2.75-2.91",key:"1x6kdw"}]],fr=e("hand-heart",iH);const yH=[["path",{d:"M11 12h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 14",key:"1j4xps"}],["path",{d:"m7 18 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"uospg8"}],["path",{d:"m2 13 6 6",key:"16e5sb"}]],u2=e("hand-helping",yH);const rH=[["path",{d:"M18 12.5V10a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4",key:"wc6myp"}],["path",{d:"M14 11V9a2 2 0 1 0-4 0v2",key:"94qvcw"}],["path",{d:"M10 10.5V5a2 2 0 1 0-4 0v9",key:"m1ah89"}],["path",{d:"m7 15-1.76-1.76a2 2 0 0 0-2.83 2.82l3.6 3.6C7.5 21.14 9.2 22 12 22h2a8 8 0 0 0 8-8V7a2 2 0 1 0-4 0v5",key:"t1skq1"}]],Ir=e("hand-metal",rH);const kH=[["path",{d:"M12 3V2",key:"ar7q03"}],["path",{d:"m15.4 17.4 3.2-2.8a2 2 0 1 1 2.8 2.9l-3.6 3.3c-.7.8-1.7 1.2-2.8 1.2h-4c-1.1 0-2.1-.4-2.8-1.2l-1.302-1.464A1 1 0 0 0 6.151 19H5",key:"n2g93r"}],["path",{d:"M2 14h12a2 2 0 0 1 0 4h-2",key:"1o2jem"}],["path",{d:"M4 10h16",key:"img6z1"}],["path",{d:"M5 10a7 7 0 0 1 14 0",key:"1ega1o"}],["path",{d:"M5 14v6a1 1 0 0 1-1 1H2",key:"1hescx"}]],Cr=e("hand-platter",kH);const pH=[["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"}]],Nr=e("hand",pH);const sH=[["path",{d:"M2.048 18.566A2 2 0 0 0 4 21h16a2 2 0 0 0 1.952-2.434l-2-9A2 2 0 0 0 18 8H6a2 2 0 0 0-1.952 1.566z",key:"1qbui5"}],["path",{d:"M8 11V6a4 4 0 0 1 8 0v5",key:"tcht90"}]],br=e("handbag",sH);const lH=[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]],$r=e("handshake",lH);const uH=[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]],qr=e("hard-drive-download",uH);const MH=[["path",{d:"m16 6-4-4-4 4",key:"13yo43"}],["path",{d:"M12 2v8",key:"1q4o3n"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]],zr=e("hard-drive-upload",MH);const vH=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],Sr=e("hard-drive",vH);const mH=[["path",{d:"M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5",key:"1p9q5i"}],["path",{d:"M14 6a6 6 0 0 1 6 6v3",key:"1hnv84"}],["path",{d:"M4 15v-3a6 6 0 0 1 6-6",key:"9ciidu"}],["rect",{x:"2",y:"15",width:"20",height:"4",rx:"1",key:"g3x8cw"}]],Ar=e("hard-hat",mH);const _H=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],Hr=e("hash",_H);const gH=[["path",{d:"M14 18a2 2 0 0 0-4 0",key:"1v8fkw"}],["path",{d:"m19 11-2.11-6.657a2 2 0 0 0-2.752-1.148l-1.276.61A2 2 0 0 1 12 4H8.5a2 2 0 0 0-1.925 1.456L5 11",key:"1fkr7p"}],["path",{d:"M2 11h20",key:"3eubbj"}],["circle",{cx:"17",cy:"18",r:"3",key:"82mm0e"}],["circle",{cx:"7",cy:"18",r:"3",key:"lvkj7j"}]],jr=e("hat-glasses",gH);const xH=[["path",{d:"m5.2 6.2 1.4 1.4",key:"17imol"}],["path",{d:"M2 13h2",key:"13gyu8"}],["path",{d:"M20 13h2",key:"16rner"}],["path",{d:"m17.4 7.6 1.4-1.4",key:"t4xlah"}],["path",{d:"M22 17H2",key:"1gtaj3"}],["path",{d:"M22 21H2",key:"1gy6en"}],["path",{d:"M16 13a4 4 0 0 0-8 0",key:"1dyczq"}],["path",{d:"M12 5V2.5",key:"1vytko"}]],Vr=e("haze",xH);const LH=[["path",{d:"M22 9a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h1l2 2h12l2-2h1a1 1 0 0 0 1-1Z",key:"2128wb"}],["path",{d:"M7.5 12h9",key:"1t0ckc"}]],Pr=e("hdmi-port",LH);const wH=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]],Br=e("heading-1",wH);const fH=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]],Fr=e("heading-2",fH);const IH=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]],Dr=e("heading-3",IH);const CH=[["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17 10v3a1 1 0 0 0 1 1h3",key:"tj5zdr"}],["path",{d:"M21 10v8",key:"1kdml4"}],["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}]],Rr=e("heading-4",CH);const NH=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17 13v-3h4",key:"1nvgqp"}],["path",{d:"M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17",key:"2nebdn"}]],Tr=e("heading-5",NH);const bH=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["circle",{cx:"19",cy:"16",r:"2",key:"15mx69"}],["path",{d:"M20 10c-2 2-3 3.5-3 6",key:"f35dl0"}]],Ur=e("heading-6",bH);const $H=[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]],Or=e("heading",$H);const qH=[["path",{d:"M21 14h-1.343",key:"1jdnxi"}],["path",{d:"M9.128 3.47A9 9 0 0 1 21 12v3.343",key:"6kipu2"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M20.414 20.414A2 2 0 0 1 19 21h-1a2 2 0 0 1-2-2v-3",key:"9x50f4"}],["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 2.636-6.364",key:"1bkxnm"}]],Gr=e("headphone-off",qH);const zH=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],Zr=e("headphones",zH);const SH=[["path",{d:"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z",key:"12oyoe"}],["path",{d:"M21 16v2a4 4 0 0 1-4 4h-5",key:"1x7m43"}]],Wr=e("headset",SH);const AH=[["path",{d:"M12.409 5.824c-.702.792-1.15 1.496-1.415 2.166l2.153 2.156a.5.5 0 0 1 0 .707l-2.293 2.293a.5.5 0 0 0 0 .707L12 15",key:"idzbju"}],["path",{d:"M13.508 20.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 9.591-3.677.6.6 0 0 0 .818.001A5.5 5.5 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5z",key:"1su70f"}]],Er=e("heart-crack",AH);const HH=[["path",{d:"M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762",key:"17lmqv"}]],Xr=e("heart-handshake",HH);const jH=[["path",{d:"m14.876 18.99-1.368 1.323a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5a5.2 5.2 0 0 1-.244 1.572",key:"15yztm"}],["path",{d:"M15 15h6",key:"1u4692"}]],Kr=e("heart-minus",jH);const VH=[["path",{d:"M10.5 4.893a5.5 5.5 0 0 1 1.091.931.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 1.872-1.002 3.356-2.187 4.655",key:"1inpfl"}],["path",{d:"m16.967 16.967-3.459 3.346a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 2.747-4.761",key:"vbc6x7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Qr=e("heart-off",VH);const PH=[["path",{d:"m14.479 19.374-.971.939a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5a5.2 5.2 0 0 1-.219 1.49",key:"wg5jx"}],["path",{d:"M15 15h6",key:"1u4692"}],["path",{d:"M18 12v6",key:"1houu1"}]],Jr=e("heart-plus",PH);const BH=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]],Yr=e("heart-pulse",BH);const FH=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],ek=e("heart",FH);const DH=[["path",{d:"M11 8c2-3-2-3 0-6",key:"1ldv5m"}],["path",{d:"M15.5 8c2-3-2-3 0-6",key:"1otqoz"}],["path",{d:"M6 10h.01",key:"1lbq93"}],["path",{d:"M6 14h.01",key:"zudwn7"}],["path",{d:"M10 16v-4",key:"1c25yv"}],["path",{d:"M14 16v-4",key:"1dkbt8"}],["path",{d:"M18 16v-4",key:"1yg9me"}],["path",{d:"M20 6a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3",key:"1ubg90"}],["path",{d:"M5 20v2",key:"1abpe8"}],["path",{d:"M19 20v2",key:"kqn6ft"}]],ak=e("heater",DH);const RH=[["path",{d:"M11 17v4",key:"14wq8k"}],["path",{d:"M14 3v8a2 2 0 0 0 2 2h5.865",key:"12oo5h"}],["path",{d:"M17 17v4",key:"hdt4hh"}],["path",{d:"M18 17a4 4 0 0 0 4-4 8 6 0 0 0-8-6 6 5 0 0 0-6 5v3a2 2 0 0 0 2 2z",key:"yynif"}],["path",{d:"M2 10v5",key:"sa5akn"}],["path",{d:"M6 3h16",key:"27qw71"}],["path",{d:"M7 21h14",key:"1ugz0u"}],["path",{d:"M8 13H2",key:"1thz1o"}]],ck=e("helicopter",RH);const TH=[["path",{d:"M21 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.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]],tk=e("hexagon",TH);const UH=[["path",{d:"m9 11-6 6v3h9l3-3",key:"1a3l36"}],["path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4",key:"14a9rk"}]],ok=e("highlighter",UH);const OH=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],dk=e("history",OH);const GH=[["path",{d:"M10.82 16.12c1.69.6 3.91.79 5.18.85.28.01.53-.09.7-.27",key:"qyzcap"}],["path",{d:"M11.14 20.57c.52.24 2.44 1.12 4.08 1.37.46.06.86-.25.9-.71.12-1.52-.3-3.43-.5-4.28",key:"y078lb"}],["path",{d:"M16.13 21.05c1.65.63 3.68.84 4.87.91a.9.9 0 0 0 .7-.26",key:"1utre3"}],["path",{d:"M17.99 5.52a20.83 20.83 0 0 1 3.15 4.5.8.8 0 0 1-.68 1.13c-1.17.1-2.5.02-3.9-.25",key:"17o9hm"}],["path",{d:"M20.57 11.14c.24.52 1.12 2.44 1.37 4.08.04.3-.08.59-.31.75",key:"1d1n4p"}],["path",{d:"M4.93 4.93a10 10 0 0 0-.67 13.4c.35.43.96.4 1.17-.12.69-1.71 1.07-5.07 1.07-6.71 1.34.45 3.1.9 4.88.62a.85.85 0 0 0 .48-.24",key:"9uv3tt"}],["path",{d:"M5.52 17.99c1.05.95 2.91 2.42 4.5 3.15a.8.8 0 0 0 1.13-.68c.2-2.34-.33-5.3-1.57-8.28",key:"1292wz"}],["path",{d:"M8.35 2.68a10 10 0 0 1 9.98 1.58c.43.35.4.96-.12 1.17-1.5.6-4.3.98-6.07 1.05",key:"7ozu9p"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],nk=e("hop-off",GH);const ZH=[["path",{d:"M10.82 16.12c1.69.6 3.91.79 5.18.85.55.03 1-.42.97-.97-.06-1.27-.26-3.5-.85-5.18",key:"18lxf1"}],["path",{d:"M11.5 6.5c1.64 0 5-.38 6.71-1.07.52-.2.55-.82.12-1.17A10 10 0 0 0 4.26 18.33c.35.43.96.4 1.17-.12.69-1.71 1.07-5.07 1.07-6.71 1.34.45 3.1.9 4.88.62a.88.88 0 0 0 .73-.74c.3-2.14-.15-3.5-.61-4.88",key:"vtfxrw"}],["path",{d:"M15.62 16.95c.2.85.62 2.76.5 4.28a.77.77 0 0 1-.9.7 16.64 16.64 0 0 1-4.08-1.36",key:"13hl71"}],["path",{d:"M16.13 21.05c1.65.63 3.68.84 4.87.91a.9.9 0 0 0 .96-.96 17.68 17.68 0 0 0-.9-4.87",key:"1sl8oj"}],["path",{d:"M16.94 15.62c.86.2 2.77.62 4.29.5a.77.77 0 0 0 .7-.9 16.64 16.64 0 0 0-1.36-4.08",key:"19c6kt"}],["path",{d:"M17.99 5.52a20.82 20.82 0 0 1 3.15 4.5.8.8 0 0 1-.68 1.13c-2.33.2-5.3-.32-8.27-1.57",key:"85ghs3"}],["path",{d:"M4.93 4.93 3 3a.7.7 0 0 1 0-1",key:"x087yj"}],["path",{d:"M9.58 12.18c1.24 2.98 1.77 5.95 1.57 8.28a.8.8 0 0 1-1.13.68 20.82 20.82 0 0 1-4.5-3.15",key:"11xdqo"}]],hk=e("hop",ZH);const WH=[["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"}]],ik=e("hospital",WH);const EH=[["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"}]],yk=e("hotel",EH);const XH=[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]],rk=e("hourglass",XH);const KH=[["path",{d:"M8.62 13.8A2.25 2.25 0 1 1 12 10.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z",key:"n9s7kx"}],["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"}]],kk=e("house-heart",KH);const QH=[["path",{d:"M10 12V8.964",key:"1vll13"}],["path",{d:"M14 12V8.964",key:"1x3qvg"}],["path",{d:"M15 12a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-2a1 1 0 0 1 1-1z",key:"ppykja"}],["path",{d:"M8.5 21H5a2 2 0 0 1-2-2v-9a2 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 2h-5a2 2 0 0 1-2-2v-2",key:"365xoy"}]],pk=e("house-plug",QH);const JH=[["path",{d:"M12.35 21H5a2 2 0 0 1-2-2v-9a2 2 0 0 1 .71-1.53l7-6a2 2 0 0 1 2.58 0l7 6A2 2 0 0 1 21 10v2.35",key:"8ek5ge"}],["path",{d:"M14.8 12.4A1 1 0 0 0 14 12h-4a1 1 0 0 0-1 1v8",key:"1rbg29"}],["path",{d:"M15 18h6",key:"3b3c90"}],["path",{d:"M18 15v6",key:"9wciyi"}]],sk=e("house-plus",JH);const YH=[["path",{d:"M9.5 13.866a4 4 0 0 1 5 .01",key:"1wy54i"}],["path",{d:"M12 17h.01",key:"p32p05"}],["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"}],["path",{d:"M7 10.754a8 8 0 0 1 10 0",key:"exoy2g"}]],lk=e("house-wifi",YH);const ej=[["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"}]],M2=e("house",ej);const aj=[["path",{d:"M12 17c5 0 8-2.69 8-6H4c0 3.31 3 6 8 6m-4 4h8m-4-3v3M5.14 11a3.5 3.5 0 1 1 6.71 0",key:"1uxfcu"}],["path",{d:"M12.14 11a3.5 3.5 0 1 1 6.71 0",key:"4k3m1s"}],["path",{d:"M15.5 6.5a3.5 3.5 0 1 0-7 0",key:"zmuahr"}]],v2=e("ice-cream-bowl",aj);const cj=[["path",{d:"m7 11 4.08 10.35a1 1 0 0 0 1.84 0L17 11",key:"1v6356"}],["path",{d:"M17 7A5 5 0 0 0 7 7",key:"151p3v"}],["path",{d:"M17 7a2 2 0 0 1 0 4H7a2 2 0 0 1 0-4",key:"1sdaij"}]],m2=e("ice-cream-cone",cj);const tj=[["path",{d:"M13.5 8h-3",key:"xvov4w"}],["path",{d:"m15 2-1 2h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h3",key:"16uttc"}],["path",{d:"M16.899 22A5 5 0 0 0 7.1 22",key:"1d0ppr"}],["path",{d:"m9 2 3 6",key:"1o7bd9"}],["circle",{cx:"12",cy:"15",r:"3",key:"g36mzq"}]],uk=e("id-card-lanyard",tj);const oj=[["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"}]],Mk=e("id-card",oj);const dj=[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19 3 3v-5.5",key:"9ldu5r"}],["path",{d:"m17 22 3-3",key:"1nkfve"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],vk=e("image-down",dj);const nj=[["path",{d:"M21 9v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7",key:"m87ecr"}],["line",{x1:"16",x2:"22",y1:"5",y2:"5",key:"ez7e4s"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],mk=e("image-minus",nj);const hj=[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]],_k=e("image-off",hj);const ij=[["path",{d:"M15 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"nrt1m3"}],["path",{d:"M21 12.17V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"99hgts"}],["path",{d:"m6 21 5-5",key:"1wyjai"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],gk=e("image-play",ij);const yj=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],xk=e("image-plus",yj);const rj=[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19.5 3-3 3 3",key:"9vmjn0"}],["path",{d:"M17 22v-5.5",key:"1aa6fl"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],Lk=e("image-up",rj);const kj=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M17 21h2a2 2 0 0 0 2-2",key:"130fy9"}],["path",{d:"M21 12v3",key:"1wzk3p"}],["path",{d:"m21 3-5 5",key:"1g5oa7"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2",key:"kk3yz1"}],["path",{d:"m5 21 4.144-4.144a1.21 1.21 0 0 1 1.712 0L13 19",key:"fyekpt"}],["path",{d:"M9 3h3",key:"d52fa"}],["rect",{x:"3",y:"11",width:"10",height:"10",rx:"1",key:"1wpmix"}]],wk=e("image-upscale",kj);const pj=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],fk=e("image",pj);const sj=[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]],Ik=e("images",sj);const lj=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m8 11 4 4 4-4",key:"1dohi6"}],["path",{d:"M8 5H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-4",key:"1ywtjm"}]],Ck=e("import",lj);const uj=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],Nk=e("inbox",uj);const Mj=[["path",{d:"M6 3h12",key:"ggurg9"}],["path",{d:"M6 8h12",key:"6g4wlu"}],["path",{d:"m6 13 8.5 8",key:"u1kupk"}],["path",{d:"M6 13h3",key:"wdp6ag"}],["path",{d:"M9 13c6.667 0 6.667-10 0-10",key:"1nkvk2"}]],bk=e("indian-rupee",Mj);const vj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],$k=e("info",vj);const mj=[["path",{d:"M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8",key:"18ogeb"}]],qk=e("infinity",mj);const _j=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 7h.01",key:"7u93v4"}],["path",{d:"M17 7h.01",key:"14a9sn"}],["path",{d:"M7 17h.01",key:"19xn7k"}],["path",{d:"M17 17h.01",key:"1sd3ek"}]],zk=e("inspection-panel",_j);const gj=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],Sk=e("instagram",gj);const xj=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],Ak=e("italic",xj);const Lj=[["path",{d:"m16 14 4 4-4 4",key:"hkso8o"}],["path",{d:"M20 10a8 8 0 1 0-8 8h8",key:"1bik7b"}]],Hk=e("iteration-ccw",Lj);const wj=[["path",{d:"M4 10a8 8 0 1 1 8 8H4",key:"svv66n"}],["path",{d:"m8 22-4-4 4-4",key:"6g7gki"}]],jk=e("iteration-cw",wj);const fj=[["path",{d:"M12 9.5V21m0-11.5L6 3m6 6.5L18 3",key:"2ej80x"}],["path",{d:"M6 15h12",key:"1hwgt5"}],["path",{d:"M6 11h12",key:"wf4gp6"}]],Vk=e("japanese-yen",fj);const Ij=[["path",{d:"M21 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2Z",key:"jg2n2t"}],["path",{d:"M6 15v-2",key:"gd6mvg"}],["path",{d:"M12 15V9",key:"8c7uyn"}],["circle",{cx:"12",cy:"6",r:"3",key:"1gm2ql"}]],Pk=e("joystick",Ij);const Cj=[["path",{d:"M18 17a1 1 0 0 0-1 1v1a2 2 0 1 0 2-2z",key:"skzb1g"}],["path",{d:"M20.97 3.61a.45.45 0 0 0-.58-.58C10.2 6.6 6.6 10.2 3.03 20.39a.45.45 0 0 0 .58.58C13.8 17.4 17.4 13.8 20.97 3.61",key:"cv9jm7"}],["path",{d:"m6.707 6.707 10.586 10.586",key:"d2l993"}],["path",{d:"M7 5a2 2 0 1 0-2 2h1a1 1 0 0 0 1-1z",key:"i0et4n"}]],Bk=e("kayak",Cj);const Nj=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],Fk=e("kanban",Nj);const bj=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Dk=e("key-round",bj);const $j=[["path",{d:"M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z",key:"165ttr"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814",key:"1ubxi2"}]],Rk=e("key-square",$j);const qj=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Tk=e("key",qj);const zj=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M6 8h4",key:"utf9t1"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M6 12v4",key:"dy92yo"}],["path",{d:"M10 12v4",key:"1fxnav"}],["path",{d:"M14 12v4",key:"1hft58"}],["path",{d:"M18 12v4",key:"tjjnbz"}]],Uk=e("keyboard-music",zj);const Sj=[["path",{d:"M 20 4 A2 2 0 0 1 22 6",key:"1g1fkt"}],["path",{d:"M 22 6 L 22 16.41",key:"1qjg3w"}],["path",{d:"M 7 16 L 16 16",key:"n0yqwb"}],["path",{d:"M 9.69 4 L 20 4",key:"kbpcgx"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M20 20H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2",key:"s23sx2"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M8 12h.01",key:"czm47f"}]],Ok=e("keyboard-off",Sj);const Aj=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],Gk=e("keyboard",Aj);const Hj=[["path",{d:"M12 2v5",key:"nd4vlx"}],["path",{d:"M14.829 15.998a3 3 0 1 1-5.658 0",key:"1pybiy"}],["path",{d:"M20.92 14.606A1 1 0 0 1 20 16H4a1 1 0 0 1-.92-1.394l3-7A1 1 0 0 1 7 7h10a1 1 0 0 1 .92.606z",key:"ma1wor"}]],Zk=e("lamp-ceiling",Hj);const jj=[["path",{d:"M10.293 2.293a1 1 0 0 1 1.414 0l2.5 2.5 5.994 1.227a1 1 0 0 1 .506 1.687l-7 7a1 1 0 0 1-1.687-.506l-1.227-5.994-2.5-2.5a1 1 0 0 1 0-1.414z",key:"sb8slu"}],["path",{d:"m14.207 4.793-3.414 3.414",key:"m2x3oj"}],["path",{d:"M3 20a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z",key:"8b3myj"}],["path",{d:"m9.086 6.5-4.793 4.793a1 1 0 0 0-.18 1.17L7 18",key:"43s6cu"}]],Wk=e("lamp-desk",jj);const Vj=[["path",{d:"M12 10v12",key:"6ubwww"}],["path",{d:"M17.929 7.629A1 1 0 0 1 17 9H7a1 1 0 0 1-.928-1.371l2-5A1 1 0 0 1 9 2h6a1 1 0 0 1 .928.629z",key:"1o95gh"}],["path",{d:"M9 22h6",key:"1rlq3v"}]],Ek=e("lamp-floor",Vj);const Pj=[["path",{d:"M19.929 18.629A1 1 0 0 1 19 20H9a1 1 0 0 1-.928-1.371l2-5A1 1 0 0 1 11 13h6a1 1 0 0 1 .928.629z",key:"u4w2d7"}],["path",{d:"M6 3a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z",key:"15356w"}],["path",{d:"M8 6h4a2 2 0 0 1 2 2v5",key:"1m6m7x"}]],Xk=e("lamp-wall-down",Pj);const Bj=[["path",{d:"M19.929 9.629A1 1 0 0 1 19 11H9a1 1 0 0 1-.928-1.371l2-5A1 1 0 0 1 11 4h6a1 1 0 0 1 .928.629z",key:"1uvrbf"}],["path",{d:"M6 15a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z",key:"154r2a"}],["path",{d:"M8 18h4a2 2 0 0 0 2-2v-5",key:"z9mbu0"}]],Kk=e("lamp-wall-up",Bj);const Fj=[["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M4.077 10.615A1 1 0 0 0 5 12h14a1 1 0 0 0 .923-1.385l-3.077-7.384A2 2 0 0 0 15 2H9a2 2 0 0 0-1.846 1.23Z",key:"1l7kg2"}],["path",{d:"M8 20a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1z",key:"1mmzpi"}]],Qk=e("lamp",Fj);const Dj=[["path",{d:"m12 8 6-3-6-3v10",key:"mvpnpy"}],["path",{d:"m8 11.99-5.5 3.14a1 1 0 0 0 0 1.74l8.5 4.86a2 2 0 0 0 2 0l8.5-4.86a1 1 0 0 0 0-1.74L16 12",key:"ek95tt"}],["path",{d:"m6.49 12.85 11.02 6.3",key:"1kt42w"}],["path",{d:"M17.51 12.85 6.5 19.15",key:"v55bdg"}]],Jk=e("land-plot",Dj);const Rj=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["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"}]],Yk=e("landmark",Rj);const Tj=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],ep=e("languages",Tj);const Uj=[["path",{d:"M2 20h20",key:"owomy5"}],["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}],["rect",{x:"3",y:"4",width:"18",height:"12",rx:"2",key:"8ur36m"}]],ap=e("laptop-minimal-check",Uj);const Oj=[["rect",{width:"18",height:"12",x:"3",y:"4",rx:"2",ry:"2",key:"1qhy41"}],["line",{x1:"2",x2:"22",y1:"20",y2:"20",key:"ni3hll"}]],_2=e("laptop-minimal",Oj);const Gj=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],cp=e("laptop",Gj);const Zj=[["path",{d:"M7 22a5 5 0 0 1-2-4",key:"umushi"}],["path",{d:"M7 16.93c.96.43 1.96.74 2.99.91",key:"ybbtv3"}],["path",{d:"M3.34 14A6.8 6.8 0 0 1 2 10c0-4.42 4.48-8 10-8s10 3.58 10 8a7.19 7.19 0 0 1-.33 2",key:"gt5e1w"}],["path",{d:"M5 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",key:"bq3ynw"}],["path",{d:"M14.33 22h-.09a.35.35 0 0 1-.24-.32v-10a.34.34 0 0 1 .33-.34c.08 0 .15.03.21.08l7.34 6a.33.33 0 0 1-.21.59h-4.49l-2.57 3.85a.35.35 0 0 1-.28.14z",key:"72q637"}]],tp=e("lasso-select",Zj);const Wj=[["path",{d:"M3.704 14.467A10 8 0 0 1 2 10a10 8 0 0 1 20 0 10 8 0 0 1-10 8 10 8 0 0 1-5.181-1.158",key:"1yant3"}],["path",{d:"M7 22a5 5 0 0 1-2-3.994",key:"1xp6a4"}],["circle",{cx:"5",cy:"16",r:"2",key:"18csp3"}]],op=e("lasso",Wj);const Ej=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M18 13a6 6 0 0 1-6 5 6 6 0 0 1-6-5h12Z",key:"b2q4dd"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],dp=e("laugh",Ej);const Xj=[["path",{d:"M13 13.74a2 2 0 0 1-2 0L2.5 8.87a1 1 0 0 1 0-1.74L11 2.26a2 2 0 0 1 2 0l8.5 4.87a1 1 0 0 1 0 1.74z",key:"15q6uc"}],["path",{d:"m20 14.285 1.5.845a1 1 0 0 1 0 1.74L13 21.74a2 2 0 0 1-2 0l-8.5-4.87a1 1 0 0 1 0-1.74l1.5-.845",key:"byia6g"}]],np=e("layers-2",Xj);const Kj=[["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"}]],g2=e("layers",Kj);const Qj=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],hp=e("layout-dashboard",Qj);const Jj=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],ip=e("layout-grid",Jj);const Yj=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]],yp=e("layout-list",Yj);const eV=[["rect",{width:"7",height:"18",x:"3",y:"3",rx:"1",key:"2obqm"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}]],rp=e("layout-panel-left",eV);const aV=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}]],kp=e("layout-panel-top",aV);const cV=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],pp=e("layout-template",cV);const tV=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],sp=e("leaf",tV);const oV=[["path",{d:"M2 22c1.25-.987 2.27-1.975 3.9-2.2a5.56 5.56 0 0 1 3.8 1.5 4 4 0 0 0 6.187-2.353 3.5 3.5 0 0 0 3.69-5.116A3.5 3.5 0 0 0 20.95 8 3.5 3.5 0 1 0 16 3.05a3.5 3.5 0 0 0-5.831 1.373 3.5 3.5 0 0 0-5.116 3.69 4 4 0 0 0-2.348 6.155C3.499 15.42 4.409 16.712 4.2 18.1 3.926 19.743 3.014 20.732 2 22",key:"1134nt"}],["path",{d:"M2 22 17 7",key:"1q7jp2"}]],lp=e("leafy-green",oV);const dV=[["path",{d:"M16 12h3a2 2 0 0 0 1.902-1.38l1.056-3.333A1 1 0 0 0 21 6H3a1 1 0 0 0-.958 1.287l1.056 3.334A2 2 0 0 0 5 12h3",key:"13jjxg"}],["path",{d:"M18 6V3a1 1 0 0 0-1-1h-3",key:"1550fe"}],["rect",{width:"8",height:"12",x:"8",y:"10",rx:"1",key:"qmu8b6"}]],up=e("lectern",dV);const nV=[["rect",{width:"8",height:"18",x:"3",y:"3",rx:"1",key:"oynpb5"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z",key:"1qboyk"}]],Mp=e("library-big",nV);const hV=[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]],vp=e("library",hV);const iV=[["path",{d:"M14 12h2v8",key:"c1fccl"}],["path",{d:"M14 20h4",key:"lzx1xo"}],["path",{d:"M6 12h4",key:"a4o3ry"}],["path",{d:"M6 20h4",key:"1i6q5t"}],["path",{d:"M8 20V8a4 4 0 0 1 7.464-2",key:"wk9t6r"}]],mp=e("ligature",iV);const yV=[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],_p=e("lightbulb-off",yV);const rV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],gp=e("life-buoy",rV);const kV=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],xp=e("lightbulb",kV);const pV=[["path",{d:"M7 3.5c5-2 7 2.5 3 4C1.5 10 2 15 5 16c5 2 9-10 14-7s.5 13.5-4 12c-5-2.5.5-11 6-2",key:"1lrphd"}]],Lp=e("line-squiggle",pV);const sV=[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],wp=e("link-2-off",sV);const lV=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],fp=e("link-2",lV);const uV=[["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"}]],Ip=e("link",uV);const MV=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],Cp=e("linkedin",MV);const vV=[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M16 12H3",key:"1a2rj7"}],["path",{d:"M11 19H3",key:"zflm78"}],["path",{d:"m15 18 2 2 4-4",key:"1szwhi"}]],Np=e("list-check",vV);const mV=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],bp=e("list-checks",mV);const _V=[["path",{d:"M3 5h8",key:"18g2rq"}],["path",{d:"M3 12h8",key:"1xfjp6"}],["path",{d:"M3 19h8",key:"fpbke4"}],["path",{d:"m15 5 3 3 3-3",key:"1t4thf"}],["path",{d:"m15 19 3-3 3 3",key:"y4ckd2"}]],$p=e("list-chevrons-down-up",_V);const gV=[["path",{d:"M3 5h8",key:"18g2rq"}],["path",{d:"M3 12h8",key:"1xfjp6"}],["path",{d:"M3 19h8",key:"fpbke4"}],["path",{d:"m15 8 3-3 3 3",key:"bc4io6"}],["path",{d:"m15 16 3 3 3-3",key:"9wmg1l"}]],qp=e("list-chevrons-up-down",gV);const xV=[["path",{d:"M10 5h11",key:"1hkqpe"}],["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 19h11",key:"14g2nv"}],["path",{d:"m3 10 3-3-3-3",key:"i7pm08"}],["path",{d:"m3 20 3-3-3-3",key:"20gx1n"}]],zp=e("list-collapse",xV);const LV=[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M16 12H3",key:"1a2rj7"}],["path",{d:"M9 19H3",key:"s61nz1"}],["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M21 5v12a2 2 0 0 1-2 2h-6",key:"hey24a"}]],Sp=e("list-end",LV);const wV=[["path",{d:"M12 5H2",key:"1o22fu"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 8V2",key:"1wcffq"}]],Ap=e("list-filter-plus",wV);const fV=[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]],Hp=e("list-filter",fV);const IV=[["path",{d:"M21 5H11",key:"us1j55"}],["path",{d:"M21 12H11",key:"wd7e0v"}],["path",{d:"M21 19H11",key:"saa85w"}],["path",{d:"m7 8-4 4 4 4",key:"o5hrat"}]],i=e("list-indent-decrease",IV);const CV=[["path",{d:"M21 5H11",key:"us1j55"}],["path",{d:"M21 12H11",key:"wd7e0v"}],["path",{d:"M21 19H11",key:"saa85w"}],["path",{d:"m3 8 4 4-4 4",key:"1a3j6y"}]],y=e("list-indent-increase",CV);const NV=[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"M21 12h-6",key:"bt1uis"}]],jp=e("list-minus",NV);const bV=[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M11 19H3",key:"zflm78"}],["path",{d:"M21 16V5",key:"yxg4q8"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],Vp=e("list-music",bV);const $V=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],Pp=e("list-ordered",$V);const qV=[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]],Bp=e("list-plus",qV);const zV=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M7 12H3",key:"13ou7f"}],["path",{d:"M7 19H3",key:"wbqt3n"}],["path",{d:"M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14",key:"qth677"}],["path",{d:"M11 10v4h4",key:"172dkj"}]],Fp=e("list-restart",zV);const SV=[["path",{d:"M3 5h6",key:"1ltk0q"}],["path",{d:"M3 12h13",key:"ppymz1"}],["path",{d:"M3 19h13",key:"bpdczq"}],["path",{d:"m16 8-3-3 3-3",key:"1pjpp6"}],["path",{d:"M21 19V7a2 2 0 0 0-2-2h-6",key:"4zzq67"}]],Dp=e("list-start",SV);const AV=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],Rp=e("list-tree",AV);const HV=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],Tp=e("list-todo",HV);const jV=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 19H3",key:"108z41"}],["path",{d:"M15 12.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"ms4nik"}]],Up=e("list-video",jV);const VV=[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"m15.5 9.5 5 5",key:"ytk86i"}],["path",{d:"m20.5 9.5-5 5",key:"17o44f"}]],Op=e("list-x",VV);const PV=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Gp=e("list",PV);const BV=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],x2=e("loader-circle",BV);const FV=[["path",{d:"M22 12a1 1 0 0 1-10 0 1 1 0 0 0-10 0",key:"1lzz15"}],["path",{d:"M7 20.7a1 1 0 1 1 5-8.7 1 1 0 1 0 5-8.6",key:"1gnrpi"}],["path",{d:"M7 3.3a1 1 0 1 1 5 8.6 1 1 0 1 0 5 8.6",key:"u9yy5q"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Zp=e("loader-pinwheel",FV);const DV=[["line",{x1:"2",x2:"5",y1:"12",y2:"12",key:"bvdh0s"}],["line",{x1:"19",x2:"22",y1:"12",y2:"12",key:"1tbv5k"}],["line",{x1:"12",x2:"12",y1:"2",y2:"5",key:"11lu5j"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}],["circle",{cx:"12",cy:"12",r:"7",key:"fim9np"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Wp=e("locate-fixed",DV);const RV=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],Ep=e("loader",RV);const TV=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M12 2v3",key:"qbqxhf"}],["path",{d:"M18.89 13.24a7 7 0 0 0-8.13-8.13",key:"1v9jrh"}],["path",{d:"M19 12h3",key:"osuazr"}],["path",{d:"M2 12h3",key:"1wrr53"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M7.05 7.05a7 7 0 0 0 9.9 9.9",key:"rc5l2e"}]],Xp=e("locate-off",TV);const UV=[["line",{x1:"2",x2:"5",y1:"12",y2:"12",key:"bvdh0s"}],["line",{x1:"19",x2:"22",y1:"12",y2:"12",key:"1tbv5k"}],["line",{x1:"12",x2:"12",y1:"2",y2:"5",key:"11lu5j"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}],["circle",{cx:"12",cy:"12",r:"7",key:"fim9np"}]],Kp=e("locate",UV);const OV=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}],["path",{d:"M7 10V7a5 5 0 0 1 9.33-2.5",key:"car5b7"}]],L2=e("lock-keyhole-open",OV);const GV=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],Qp=e("lock-keyhole",GV);const ZV=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],w2=e("lock-open",ZV);const WV=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Jp=e("lock",WV);const EV=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],Yp=e("log-in",EV);const XV=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],e3=e("log-out",XV);const KV=[["path",{d:"M3 5h1",key:"1mv5vm"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M3 19h1",key:"w6f3n9"}],["path",{d:"M8 5h1",key:"1nxr5w"}],["path",{d:"M8 12h1",key:"1con00"}],["path",{d:"M8 19h1",key:"k7p10e"}],["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}]],a3=e("logs",KV);const QV=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}],["path",{d:"M11 11a2 2 0 0 0 4 0 4 4 0 0 0-8 0 6 6 0 0 0 12 0",key:"107gwy"}]],c3=e("lollipop",QV);const JV=[["path",{d:"m12 15 4 4",key:"lnac28"}],["path",{d:"M2.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l6.029-6.029a1 1 0 1 1 3 3l-6.029 6.029a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l6.365-6.367A1 1 0 0 0 8.716 4.282z",key:"nlhkjb"}],["path",{d:"m5 8 4 4",key:"j6kj7e"}]],t3=e("magnet",JV);const YV=[["path",{d:"M6 20a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2",key:"1m57jg"}],["path",{d:"M8 18V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v14",key:"1l99gc"}],["path",{d:"M10 20h4",key:"ni2waw"}],["circle",{cx:"16",cy:"20",r:"2",key:"1vifvg"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],o3=e("luggage",YV);const eP=[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],d3=e("mail-check",eP);const aP=[["path",{d:"M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z",key:"1jhwl8"}],["path",{d:"m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10",key:"1qfld7"}]],n3=e("mail-open",aP);const cP=[["path",{d:"M22 15V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"fuxbkv"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M16 19h6",key:"xwg31i"}]],h3=e("mail-minus",cP);const tP=[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M16 19h6",key:"xwg31i"}]],i3=e("mail-plus",tP);const oP=[["path",{d:"M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5",key:"e61zoh"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M18 15.28c.2-.4.5-.8.9-1a2.1 2.1 0 0 1 2.6.4c.3.4.5.8.5 1.3 0 1.3-2 2-2 2",key:"7z9rxb"}],["path",{d:"M20 22v.01",key:"12bgn6"}]],f2=e("mail-question-mark",oP);const dP=[["path",{d:"M22 12.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h7.5",key:"w80f2v"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M18 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",key:"8lzu5m"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["path",{d:"m22 22-1.5-1.5",key:"1x83k4"}]],y3=e("mail-search",dP);const nP=[["path",{d:"M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5",key:"e61zoh"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M20 14v4",key:"1hm744"}],["path",{d:"M20 22v.01",key:"12bgn6"}]],r3=e("mail-warning",nP);const hP=[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h9",key:"1j9vog"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m17 17 4 4",key:"1b3523"}],["path",{d:"m21 17-4 4",key:"uinynz"}]],k3=e("mail-x",hP);const iP=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],p3=e("mail",iP);const yP=[["path",{d:"M22 17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9.5C2 7 4 5 6.5 5H18c2.2 0 4 1.8 4 4v8Z",key:"1lbycx"}],["polyline",{points:"15,9 18,9 18,11",key:"1pm9c0"}],["path",{d:"M6.5 5C9 5 11 7 11 9.5V17a2 2 0 0 1-2 2",key:"15i455"}],["line",{x1:"6",x2:"7",y1:"10",y2:"10",key:"1e2scm"}]],s3=e("mailbox",yP);const rP=[["path",{d:"M17 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 1-1.732",key:"1vyzll"}],["path",{d:"m22 5.5-6.419 4.179a2 2 0 0 1-2.162 0L7 5.5",key:"k7ramc"}],["rect",{x:"7",y:"3",width:"15",height:"12",rx:"2",key:"17196g"}]],l3=e("mails",rP);const kP=[["path",{d:"m11 19-1.106-.552a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0l4.212 2.106a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619V14",key:"40pylx"}],["path",{d:"M15 5.764V14",key:"1bab71"}],["path",{d:"M21 18h-6",key:"139f0c"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],u3=e("map-minus",kP);const pP=[["path",{d:"M19.43 12.935c.357-.967.57-1.955.57-2.935a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32.197 32.197 0 0 0 .813-.728",key:"1dq61d"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"m16 18 2 2 4-4",key:"1mkfmb"}]],M3=e("map-pin-check",pP);const sP=[["path",{d:"M15 22a1 1 0 0 1-1-1v-4a1 1 0 0 1 .445-.832l3-2a1 1 0 0 1 1.11 0l3 2A1 1 0 0 1 22 17v4a1 1 0 0 1-1 1z",key:"1p1rcz"}],["path",{d:"M18 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 .601.2",key:"mcbcs9"}],["path",{d:"M18 22v-3",key:"1t1ugv"}],["circle",{cx:"10",cy:"10",r:"3",key:"1ns7v1"}]],v3=e("map-pin-house",sP);const lP=[["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"}],["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}]],m3=e("map-pin-check-inside",lP);const uP=[["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"}],["path",{d:"M9 10h6",key:"9gxzsh"}]],_3=e("map-pin-minus-inside",uP);const MP=[["path",{d:"M18.977 14C19.6 12.701 20 11.343 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32 32 0 0 0 .824-.738",key:"11uxia"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M16 18h6",key:"987eiv"}]],g3=e("map-pin-minus",MP);const vP=[["path",{d:"M12.75 7.09a3 3 0 0 1 2.16 2.16",key:"1d4wjd"}],["path",{d:"M17.072 17.072c-1.634 2.17-3.527 3.912-4.471 4.727a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 1.432-4.568",key:"12yil7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.475 2.818A8 8 0 0 1 20 10c0 1.183-.31 2.377-.81 3.533",key:"lhrkcz"}],["path",{d:"M9.13 9.13a3 3 0 0 0 3.74 3.74",key:"13wojd"}]],x3=e("map-pin-off",vP);const mP=[["path",{d:"M17.97 9.304A8 8 0 0 0 2 10c0 4.69 4.887 9.562 7.022 11.468",key:"1fahp3"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"10",r:"3",key:"1ns7v1"}]],I2=e("map-pin-pen",mP);const _P=[["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"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]],L3=e("map-pin-plus-inside",_P);const gP=[["path",{d:"M19.914 11.105A7.298 7.298 0 0 0 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32 32 0 0 0 .824-.738",key:"fcdtly"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M16 18h6",key:"987eiv"}],["path",{d:"M19 15v6",key:"10aioa"}]],w3=e("map-pin-plus",gP);const xP=[["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"}],["path",{d:"m14.5 7.5-5 5",key:"3lb6iw"}],["path",{d:"m9.5 7.5 5 5",key:"ko136h"}]],f3=e("map-pin-x-inside",xP);const LP=[["path",{d:"M19.752 11.901A7.78 7.78 0 0 0 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 19 19 0 0 0 .09-.077",key:"y0ewhp"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"m21.5 15.5-5 5",key:"11iqnx"}],["path",{d:"m21.5 20.5-5-5",key:"1bylgx"}]],I3=e("map-pin-x",LP);const wP=[["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"}]],C3=e("map-pin",wP);const fP=[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]],N3=e("map-pinned",fP);const IP=[["path",{d:"m11 19-1.106-.552a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0l4.212 2.106a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619V12",key:"svfegj"}],["path",{d:"M15 5.764V12",key:"1ocw4k"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],b3=e("map-plus",IP);const CP=[["path",{d:"m14 6 4 4",key:"1q72g9"}],["path",{d:"M17 3h4v4",key:"19p9u1"}],["path",{d:"m21 3-7.75 7.75",key:"1cjbfd"}],["circle",{cx:"9",cy:"15",r:"6",key:"bx5svt"}]],$3=e("mars-stroke",CP);const NP=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],q3=e("map",NP);const bP=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"m21 3-6.75 6.75",key:"pv0uzu"}],["circle",{cx:"10",cy:"14",r:"6",key:"1qwbdc"}]],z3=e("mars",bP);const $P=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],S3=e("maximize-2",$P);const qP=[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M12 11v11",key:"ur9y6a"}],["path",{d:"m19 3-7 8-7-8Z",key:"1sgpiw"}]],A3=e("martini",qP);const zP=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],H3=e("maximize",zP);const SP=[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]],j3=e("medal",SP);const AP=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],V3=e("megaphone",AP);const HP=[["path",{d:"M11.636 6A13 13 0 0 0 19.4 3.2 1 1 0 0 1 21 4v11.344",key:"bycexp"}],["path",{d:"M14.378 14.357A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h1",key:"1t17s6"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 8v6",key:"aieo6v"}]],P3=e("megaphone-off",HP);const jP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"8",x2:"16",y1:"15",y2:"15",key:"1xb1d9"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],B3=e("meh",jP);const VP=[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]],F3=e("memory-stick",VP);const PP=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],D3=e("menu",PP);const BP=[["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}],["path",{d:"M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22",key:"1hyw0i"}],["path",{d:"m20 22-5-5",key:"1m27yz"}]],R3=e("merge",BP);const FP=[["path",{d:"m10 9-3 3 3 3",key:"1oro0q"}],["path",{d:"m14 15 3-3-3-3",key:"bz13h7"}],["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],T3=e("message-circle-code",FP);const DP=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.72a10 10 0 0 1 2.69 2.7",key:"jiglxs"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.28 17.61a10 10 0 0 1-2.7 2.69",key:"elg7ff"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"m6.163 21.117-2.906.85a1 1 0 0 1-1.236-1.169l.965-2.98",key:"1qsu07"}]],U3=e("message-circle-dashed",DP);const RP=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M7.828 13.07A3 3 0 0 1 12 8.764a3 3 0 0 1 5.004 2.224 3 3 0 0 1-.832 2.083l-3.447 3.62a1 1 0 0 1-1.45-.001z",key:"hoo97p"}]],O3=e("message-circle-heart",RP);const TP=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]],G3=e("message-circle-more",TP);const UP=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4.93 4.929a10 10 0 0 0-1.938 11.412 2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 0 0 11.302-1.989",key:"7il5tn"}],["path",{d:"M8.35 2.69A10 10 0 0 1 21.3 15.65",key:"1pfsoa"}]],Z3=e("message-circle-off",UP);const OP=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],W3=e("message-circle-plus",OP);const GP=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["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"}]],C2=e("message-circle-question-mark",GP);const ZP=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}],["path",{d:"M7 12h8a2 2 0 0 1 2 2v1",key:"89sh1g"}]],E3=e("message-circle-reply",ZP);const WP=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],X3=e("message-circle-warning",WP);const EP=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],K3=e("message-circle-x",EP);const XP=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Q3=e("message-circle",XP);const KP=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"m10 8-3 3 3 3",key:"fp6dz7"}],["path",{d:"m14 14 3-3-3-3",key:"1yrceu"}]],J3=e("message-square-code",KP);const QP=[["path",{d:"M12 19h.01",key:"1wutuc"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M16 19h.01",key:"1vcnzz"}],["path",{d:"M16 3h.01",key:"ll0zb8"}],["path",{d:"M2 13h.01",key:"1aptou"}],["path",{d:"M2 17v4.286a.71.71 0 0 0 1.212.502l2.202-2.202A2 2 0 0 1 6.828 19H8",key:"4cp7zq"}],["path",{d:"M2 5a2 2 0 0 1 2-2",key:"1iztiu"}],["path",{d:"M2 9h.01",key:"1nzd1v"}],["path",{d:"M20 3a2 2 0 0 1 2 2",key:"m48m3a"}],["path",{d:"M22 13h.01",key:"ke7esy"}],["path",{d:"M22 17a2 2 0 0 1-2 2",key:"17q5fo"}],["path",{d:"M22 9h.01",key:"npkp49"}],["path",{d:"M8 3h.01",key:"133hau"}]],Y3=e("message-square-dashed",QP);const JP=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M10 15h4",key:"192ueg"}],["path",{d:"M10 9h4",key:"u4k05v"}],["path",{d:"M12 7v4",key:"xawao1"}]],es=e("message-square-diff",JP);const YP=[["path",{d:"M12.7 3H4a2 2 0 0 0-2 2v16.286a.71.71 0 0 0 1.212.502l2.202-2.202A2 2 0 0 1 6.828 19H20a2 2 0 0 0 2-2v-4.7",key:"wjb7ig"}],["circle",{cx:"19",cy:"6",r:"3",key:"108a5v"}]],as=e("message-square-dot",YP);const eB=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7.5 9.5c0 .687.265 1.383.697 1.844l3.009 3.264a1.14 1.14 0 0 0 .407.314 1 1 0 0 0 .783-.004 1.14 1.14 0 0 0 .398-.31l3.008-3.264A2.77 2.77 0 0 0 16.5 9.5 2.5 2.5 0 0 0 12 8a2.5 2.5 0 0 0-4.5 1.5",key:"1faxuh"}]],cs=e("message-square-heart",eB);const aB=[["path",{d:"M22 8.5V5a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v16.286a.71.71 0 0 0 1.212.502l2.202-2.202A2 2 0 0 1 6.828 19H10",key:"fu6chl"}],["path",{d:"M20 15v-2a2 2 0 0 0-4 0v2",key:"vl8a78"}],["rect",{x:"14",y:"15",width:"8",height:"5",rx:"1",key:"37aafw"}]],ts=e("message-square-lock",aB);const cB=[["path",{d:"M19 19H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.7.7 0 0 1 2 21.286V5a2 2 0 0 1 1.184-1.826",key:"1wyg69"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.656 3H20a2 2 0 0 1 2 2v11.344",key:"mhl4k6"}]],os=e("message-square-off",cB);const tB=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M8 11h.01",key:"1dfujw"}]],ds=e("message-square-more",tB);const oB=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]],ns=e("message-square-plus",oB);const dB=[["path",{d:"M14 14a2 2 0 0 0 2-2V8h-2",key:"1r06pg"}],["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M8 14a2 2 0 0 0 2-2V8H8",key:"1jzu5j"}]],hs=e("message-square-quote",dB);const nB=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"m10 8-3 3 3 3",key:"fp6dz7"}],["path",{d:"M17 14v-1a2 2 0 0 0-2-2H7",key:"1tkjnz"}]],is=e("message-square-reply",nB);const hB=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],ys=e("message-square-text",hB);const iB=[["path",{d:"M12 3H4a2 2 0 0 0-2 2v16.286a.71.71 0 0 0 1.212.502l2.202-2.202A2 2 0 0 1 6.828 19H20a2 2 0 0 0 2-2v-4",key:"11da1y"}],["path",{d:"M16 3h6v6",key:"1bx56c"}],["path",{d:"m16 9 6-6",key:"m4dnic"}]],rs=e("message-square-share",iB);const yB=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 15h.01",key:"q59x07"}],["path",{d:"M12 7v4",key:"xawao1"}]],ks=e("message-square-warning",yB);const rB=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"m14.5 8.5-5 5",key:"19tnj2"}],["path",{d:"m9.5 8.5 5 5",key:"1oa8ql"}]],ps=e("message-square-x",rB);const kB=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],ss=e("message-square",kB);const pB=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],ls=e("messages-square",pB);const sB=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],us=e("mic-off",sB);const lB=[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]],N2=e("mic-vocal",lB);const uB=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Ms=e("mic",uB);const MB=[["path",{d:"M18 12h2",key:"quuxs7"}],["path",{d:"M18 16h2",key:"zsn3lv"}],["path",{d:"M18 20h2",key:"9x5y9y"}],["path",{d:"M18 4h2",key:"1luxfb"}],["path",{d:"M18 8h2",key:"nxqzg"}],["path",{d:"M4 12h2",key:"1ltxp0"}],["path",{d:"M4 16h2",key:"8a5zha"}],["path",{d:"M4 20h2",key:"27dk57"}],["path",{d:"M4 4h2",key:"10groj"}],["path",{d:"M4 8h2",key:"18vq6w"}],["path",{d:"M8 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-1.5c-.276 0-.494.227-.562.495a2 2 0 0 1-3.876 0C9.994 2.227 9.776 2 9.5 2z",key:"1681fp"}]],vs=e("microchip",MB);const vB=[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]],ms=e("microscope",vB);const mB=[["rect",{width:"20",height:"15",x:"2",y:"4",rx:"2",key:"2no95f"}],["rect",{width:"8",height:"7",x:"6",y:"8",rx:"1",key:"zh9wx"}],["path",{d:"M18 8v7",key:"o5zi4n"}],["path",{d:"M6 19v2",key:"1loha6"}],["path",{d:"M18 19v2",key:"1dawf0"}]],_s=e("microwave",mB);const _B=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M12 3v3",key:"1n5kay"}],["path",{d:"M4 6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h13a2 2 0 0 0 1.152-.365l3.424-2.317a1 1 0 0 0 0-1.635l-3.424-2.318A2 2 0 0 0 17 6z",key:"1btarq"}]],gs=e("milestone",_B);const gB=[["path",{d:"M8 2h8",key:"1ssgc1"}],["path",{d:"M9 2v1.343M15 2v2.789a4 4 0 0 0 .672 2.219l.656.984a4 4 0 0 1 .672 2.22v1.131M7.8 7.8l-.128.192A4 4 0 0 0 7 10.212V20a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-3",key:"y0ejgx"}],["path",{d:"M7 15a6.47 6.47 0 0 1 5 0 6.472 6.472 0 0 0 3.435.435",key:"iaxqsy"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],xs=e("milk-off",gB);const xB=[["path",{d:"M8 2h8",key:"1ssgc1"}],["path",{d:"M9 2v2.789a4 4 0 0 1-.672 2.219l-.656.984A4 4 0 0 0 7 10.212V20a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-9.789a4 4 0 0 0-.672-2.219l-.656-.984A4 4 0 0 1 15 4.788V2",key:"qtp12x"}],["path",{d:"M7 15a6.472 6.472 0 0 1 5 0 6.47 6.47 0 0 0 5 0",key:"ygeh44"}]],Ls=e("milk",xB);const LB=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],ws=e("minimize-2",LB);const wB=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]],fs=e("minimize",wB);const fB=[["path",{d:"M5 12h14",key:"1ays0h"}]],Is=e("minus",fB);const IB=[["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]],Cs=e("monitor-check",IB);const CB=[["path",{d:"M11 13a3 3 0 1 1 2.83-4H14a2 2 0 0 1 0 4z",key:"1da4q6"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]],Ns=e("monitor-cloud",CB);const NB=[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m14.305 7.53.923-.382",key:"1mlnsw"}],["path",{d:"m15.228 4.852-.923-.383",key:"82mpwg"}],["path",{d:"m16.852 3.228-.383-.924",key:"ln4sir"}],["path",{d:"m16.852 8.772-.383.923",key:"1dejw0"}],["path",{d:"m19.148 3.228.383-.924",key:"192kgf"}],["path",{d:"m19.53 9.696-.382-.924",key:"fiavlr"}],["path",{d:"m20.772 4.852.924-.383",key:"1j8mgp"}],["path",{d:"m20.772 7.148.924.383",key:"zix9be"}],["path",{d:"M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7",key:"1tnzv8"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}]],bs=e("monitor-cog",NB);const bB=[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M22 12.307V15a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h8.693",key:"1dx6ho"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["circle",{cx:"19",cy:"6",r:"3",key:"108a5v"}]],$s=e("monitor-dot",bB);const $B=[["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"m15 10-3 3-3-3",key:"lzhmyn"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]],qs=e("monitor-down",$B);const qB=[["path",{d:"M17 17H4a2 2 0 0 1-2-2V5c0-1.5 1-2 1-2",key:"k0q8oc"}],["path",{d:"M22 15V5a2 2 0 0 0-2-2H9",key:"cp1ac0"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],zs=e("monitor-off",qB);const zB=[["path",{d:"M10 13V7",key:"1u13u9"}],["path",{d:"M14 13V7",key:"1vj9om"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]],Ss=e("monitor-pause",zB);const SB=[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z",key:"vbtd3f"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]],As=e("monitor-play",SB);const AB=[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]],Hs=e("monitor-smartphone",AB);const HB=[["path",{d:"M5.5 20H8",key:"1k40s5"}],["path",{d:"M17 9h.01",key:"1j24nn"}],["rect",{width:"10",height:"16",x:"12",y:"4",rx:"2",key:"ixliua"}],["path",{d:"M8 6H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h4",key:"1mp6e1"}],["circle",{cx:"17",cy:"15",r:"1",key:"tqvash"}]],js=e("monitor-speaker",HB);const jB=[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}],["rect",{x:"9",y:"7",width:"6",height:"6",rx:"1",key:"5m2oou"}]],Vs=e("monitor-stop",jB);const VB=[["path",{d:"m9 10 3-3 3 3",key:"11gsxs"}],["path",{d:"M12 13V7",key:"h0r20n"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]],Ps=e("monitor-up",VB);const PB=[["path",{d:"m14.5 12.5-5-5",key:"1jahn5"}],["path",{d:"m9.5 12.5 5-5",key:"1k2t7b"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]],Bs=e("monitor-x",PB);const BB=[["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"}]],Fs=e("monitor",BB);const FB=[["path",{d:"M18 5h4",key:"1lhgn2"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Ds=e("moon-star",FB);const DB=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Rs=e("moon",DB);const RB=[["path",{d:"m18 14-1-3",key:"bdajw9"}],["path",{d:"m3 9 6 2a2 2 0 0 1 2-2h2a2 2 0 0 1 1.99 1.81",key:"f5fotj"}],["path",{d:"M8 17h3a1 1 0 0 0 1-1 6 6 0 0 1 6-6 1 1 0 0 0 1-1v-.75A5 5 0 0 0 17 5",key:"3i90e2"}],["circle",{cx:"19",cy:"17",r:"3",key:"1otbdv"}],["circle",{cx:"5",cy:"17",r:"3",key:"1d8p0c"}]],Ts=e("motorbike",RB);const TB=[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]],Us=e("mountain",TB);const UB=[["path",{d:"M12 6v.343",key:"1gyhex"}],["path",{d:"M18.218 18.218A7 7 0 0 1 5 15V9a7 7 0 0 1 .782-3.218",key:"ukzz01"}],["path",{d:"M19 13.343V9A7 7 0 0 0 8.56 2.902",key:"104jy9"}],["path",{d:"M22 22 2 2",key:"1r8tn9"}]],Os=e("mouse-off",UB);const OB=[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}],["path",{d:"M4.14 15.08c2.62-1.57 5.24-1.43 7.86.42 2.74 1.94 5.49 2 8.23.19",key:"1pvmmp"}]],Gs=e("mountain-snow",OB);const GB=[["path",{d:"m15.55 8.45 5.138 2.087a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063L8.45 15.551",key:"1qoshx"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"m6.816 11.528-2.779-6.84a.495.495 0 0 1 .651-.651l6.84 2.779",key:"mymuvk"}]],Zs=e("mouse-pointer-2-off",GB);const ZB=[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]],Ws=e("mouse-pointer-2",ZB);const WB=[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]],Es=e("mouse-pointer-click",WB);const EB=[["path",{d:"M2.034 2.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.944L8.204 7.545a1 1 0 0 0-.66.66l-1.066 3.443a.5.5 0 0 1-.944.033z",key:"11pp1i"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}],["path",{d:"m11.8 11.8 8.4 8.4",key:"oogvdj"}]],Xs=e("mouse-pointer-ban",EB);const XB=[["path",{d:"M12.586 12.586 19 19",key:"ea5xo7"}],["path",{d:"M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z",key:"277e5u"}]],Ks=e("mouse-pointer",XB);const KB=[["rect",{x:"5",y:"2",width:"14",height:"20",rx:"7",key:"11ol66"}],["path",{d:"M12 6v4",key:"16clxf"}]],Qs=e("mouse",KB);const QB=[["path",{d:"M5 3v16h16",key:"1mqmf9"}],["path",{d:"m5 19 6-6",key:"jh6hbb"}],["path",{d:"m2 6 3-3 3 3",key:"tkyvxa"}],["path",{d:"m18 16 3 3-3 3",key:"1d4glt"}]],b2=e("move-3d",QB);const JB=[["path",{d:"M19 13v6h-6",key:"1hxl6d"}],["path",{d:"M5 11V5h6",key:"12e2xe"}],["path",{d:"m5 5 14 14",key:"11anup"}]],Js=e("move-diagonal-2",JB);const YB=[["path",{d:"M11 19H5v-6",key:"8awifj"}],["path",{d:"M13 5h6v6",key:"7voy1q"}],["path",{d:"M19 5 5 19",key:"wwaj1z"}]],Ys=e("move-diagonal",YB);const eF=[["path",{d:"M11 19H5V13",key:"1akmht"}],["path",{d:"M19 5L5 19",key:"72u4yj"}]],e8=e("move-down-left",eF);const aF=[["path",{d:"M19 13V19H13",key:"10vkzq"}],["path",{d:"M5 5L19 19",key:"5zm2fv"}]],a8=e("move-down-right",aF);const cF=[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]],c8=e("move-down",cF);const tF=[["path",{d:"m18 8 4 4-4 4",key:"1ak13k"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}]],t8=e("move-horizontal",tF);const oF=[["path",{d:"M6 8L2 12L6 16",key:"kyvwex"}],["path",{d:"M2 12H22",key:"1m8cig"}]],o8=e("move-left",oF);const dF=[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]],d8=e("move-right",dF);const nF=[["path",{d:"M5 11V5H11",key:"3q78g9"}],["path",{d:"M5 5L19 19",key:"5zm2fv"}]],n8=e("move-up-left",nF);const hF=[["path",{d:"M13 5H19V11",key:"1n1gyv"}],["path",{d:"M19 5L5 19",key:"72u4yj"}]],h8=e("move-up-right",hF);const iF=[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]],i8=e("move-up",iF);const yF=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m8 18 4 4 4-4",key:"bh5tu3"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]],y8=e("move-vertical",yF);const rF=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],r8=e("move",rF);const kF=[["circle",{cx:"8",cy:"18",r:"4",key:"1fc0mg"}],["path",{d:"M12 18V2l7 4",key:"g04rme"}]],k8=e("music-2",kF);const pF=[["circle",{cx:"12",cy:"18",r:"4",key:"m3r9ws"}],["path",{d:"M16 18V2",key:"40x2m5"}]],p8=e("music-3",pF);const sF=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],s8=e("music",sF);const lF=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["path",{d:"m9 9 12-2",key:"1e64n2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],l8=e("music-4",lF);const uF=[["path",{d:"M9.31 9.31 5 21l7-4 7 4-1.17-3.17",key:"qoq2o2"}],["path",{d:"M14.53 8.88 12 2l-1.17 3.17",key:"k3sjzy"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],u8=e("navigation-2-off",uF);const MF=[["polygon",{points:"12 2 19 21 12 17 5 21 12 2",key:"x8c0qg"}]],M8=e("navigation-2",MF);const vF=[["path",{d:"M8.43 8.43 3 11l8 2 2 8 2.57-5.43",key:"1vdtb7"}],["path",{d:"M17.39 11.73 22 2l-9.73 4.61",key:"tya3r6"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],v8=e("navigation-off",vF);const mF=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],m8=e("navigation",mF);const _F=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],_8=e("network",_F);const gF=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],g8=e("newspaper",gF);const xF=[["path",{d:"M6 8.32a7.43 7.43 0 0 1 0 7.36",key:"9iaqei"}],["path",{d:"M9.46 6.21a11.76 11.76 0 0 1 0 11.58",key:"1yha7l"}],["path",{d:"M12.91 4.1a15.91 15.91 0 0 1 .01 15.8",key:"4iu2gk"}],["path",{d:"M16.37 2a20.16 20.16 0 0 1 0 20",key:"sap9u2"}]],x8=e("nfc",xF);const LF=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"m8.5 4 7 4",key:"m1xjk3"}],["path",{d:"m8.5 8 7-4",key:"t0m5j6"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}]],L8=e("non-binary",LF);const wF=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],w8=e("notebook-pen",wF);const fF=[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M15 2v20",key:"dcj49h"}],["path",{d:"M15 7h5",key:"1xj5lc"}],["path",{d:"M15 12h5",key:"w5shd9"}],["path",{d:"M15 17h5",key:"1qaofu"}]],f8=e("notebook-tabs",fF);const IF=[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M9.5 8h5",key:"11mslq"}],["path",{d:"M9.5 12H16",key:"ktog6x"}],["path",{d:"M9.5 16H14",key:"p1seyn"}]],I8=e("notebook-text",IF);const CF=[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M16 2v20",key:"rotuqe"}]],C8=e("notebook",CF);const NF=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v2",key:"j91f56"}],["path",{d:"M20 12v2",key:"w8o0tu"}],["path",{d:"M20 18v2a2 2 0 0 1-2 2h-1",key:"1c9ggx"}],["path",{d:"M13 22h-2",key:"191ugt"}],["path",{d:"M7 22H6a2 2 0 0 1-2-2v-2",key:"1rt9px"}],["path",{d:"M4 14v-2",key:"1v0sqh"}],["path",{d:"M4 8V6a2 2 0 0 1 2-2h2",key:"1mwabg"}],["path",{d:"M8 10h6",key:"3oa6kw"}],["path",{d:"M8 14h8",key:"1fgep2"}],["path",{d:"M8 18h5",key:"17enja"}]],N8=e("notepad-text-dashed",NF);const bF=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"16",height:"18",x:"4",y:"4",rx:"2",key:"1u9h20"}],["path",{d:"M8 10h6",key:"3oa6kw"}],["path",{d:"M8 14h8",key:"1fgep2"}],["path",{d:"M8 18h5",key:"17enja"}]],b8=e("notepad-text",bF);const $F=[["path",{d:"M12 4V2",key:"1k5q1u"}],["path",{d:"M5 10v4a7.004 7.004 0 0 0 5.277 6.787c.412.104.802.292 1.102.592L12 22l.621-.621c.3-.3.69-.488 1.102-.592a7.01 7.01 0 0 0 4.125-2.939",key:"1xcvy9"}],["path",{d:"M19 10v3.343",key:"163tfc"}],["path",{d:"M12 12c-1.349-.573-1.905-1.005-2.5-2-.546.902-1.048 1.353-2.5 2-1.018-.644-1.46-1.08-2-2-1.028.71-1.69.918-3 1 1.081-1.048 1.757-2.03 2-3 .194-.776.84-1.551 1.79-2.21m11.654 5.997c.887-.457 1.28-.891 1.556-1.787 1.032.916 1.683 1.157 3 1-1.297-1.036-1.758-2.03-2-3-.5-2-4-4-8-4-.74 0-1.461.068-2.15.192",key:"17914v"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],$8=e("nut-off",$F);const qF=[["path",{d:"M12 4V2",key:"1k5q1u"}],["path",{d:"M5 10v4a7.004 7.004 0 0 0 5.277 6.787c.412.104.802.292 1.102.592L12 22l.621-.621c.3-.3.69-.488 1.102-.592A7.003 7.003 0 0 0 19 14v-4",key:"1tgyif"}],["path",{d:"M12 4C8 4 4.5 6 4 8c-.243.97-.919 1.952-2 3 1.31-.082 1.972-.29 3-1 .54.92.982 1.356 2 2 1.452-.647 1.954-1.098 2.5-2 .595.995 1.151 1.427 2.5 2 1.31-.621 1.862-1.058 2.5-2 .629.977 1.162 1.423 2.5 2 1.209-.548 1.68-.967 2-2 1.032.916 1.683 1.157 3 1-1.297-1.036-1.758-2.03-2-3-.5-2-4-4-8-4Z",key:"tnsqj"}]],q8=e("nut",qF);const zF=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],$2=e("octagon-alert",zF);const SF=[["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"M8 12h8",key:"1wcyev"}]],z8=e("octagon-minus",SF);const AF=[["path",{d:"M10 15V9",key:"1lckn7"}],["path",{d:"M14 15V9",key:"1muqhk"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}]],q2=e("octagon-pause",AF);const HF=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],z2=e("octagon-x",HF);const jF=[["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}]],S8=e("octagon",jF);const VF=[["path",{d:"M3 20h4.5a.5.5 0 0 0 .5-.5v-.282a.52.52 0 0 0-.247-.437 8 8 0 1 1 8.494-.001.52.52 0 0 0-.247.438v.282a.5.5 0 0 0 .5.5H21",key:"1x94xo"}]],A8=e("omega",VF);const PF=[["path",{d:"M3 3h6l6 18h6",key:"ph9rgk"}],["path",{d:"M14 3h7",key:"16f0ms"}]],H8=e("option",PF);const BF=[["path",{d:"M20.341 6.484A10 10 0 0 1 10.266 21.85",key:"1enhxb"}],["path",{d:"M3.659 17.516A10 10 0 0 1 13.74 2.152",key:"1crzgf"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}]],j8=e("orbit",BF);const FF=[["path",{d:"M12 12V4a1 1 0 0 1 1-1h6.297a1 1 0 0 1 .651 1.759l-4.696 4.025",key:"1bx4vc"}],["path",{d:"m12 21-7.414-7.414A2 2 0 0 1 4 12.172V6.415a1.002 1.002 0 0 1 1.707-.707L20 20.009",key:"1h3km6"}],["path",{d:"m12.214 3.381 8.414 14.966a1 1 0 0 1-.167 1.199l-1.168 1.163a1 1 0 0 1-.706.291H6.351a1 1 0 0 1-.625-.219L3.25 18.8a1 1 0 0 1 .631-1.781l4.165.027",key:"1hj4wg"}]],V8=e("origami",FF);const DF=[["path",{d:"M12 3v6",key:"1holv5"}],["path",{d:"M16.76 3a2 2 0 0 1 1.8 1.1l2.23 4.479a2 2 0 0 1 .21.891V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9.472a2 2 0 0 1 .211-.894L5.45 4.1A2 2 0 0 1 7.24 3z",key:"187q7i"}],["path",{d:"M3.054 9.013h17.893",key:"grwhos"}]],P8=e("package-2",DF);const RF=[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 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.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]],B8=e("package-check",RF);const TF=[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M21 10V8a2 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.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]],F8=e("package-minus",TF);const UF=[["path",{d:"M12 22v-9",key:"x3hkom"}],["path",{d:"M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z",key:"2ntwy6"}],["path",{d:"M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13",key:"1pmm1c"}],["path",{d:"M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z",key:"12ttoo"}]],D8=e("package-open",UF);const OF=[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M19 13v6",key:"85cyf1"}],["path",{d:"M21 10V8a2 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.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]],R8=e("package-plus",OF);const GF=[["path",{d:"M21 10V8a2 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.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]],T8=e("package-search",GF);const ZF=[["path",{d:"M21 10V8a2 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.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]],U8=e("package-x",ZF);const WF=[["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"}]],O8=e("package",WF);const EF=[["path",{d:"m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z",key:"irua1i"}],["path",{d:"m5 2 5 5",key:"1lls2c"}],["path",{d:"M2 13h15",key:"1hkzvu"}],["path",{d:"M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z",key:"xk76lq"}]],G8=e("paint-bucket",EF);const XF=[["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"}]],Z8=e("paint-roller",XF);const KF=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v4",key:"qmzblu"}],["path",{d:"M17 2a1 1 0 0 1 1 1v9H6V3a1 1 0 0 1 1-1z",key:"ycvu00"}],["path",{d:"M6 12a1 1 0 0 0-1 1v1a2 2 0 0 0 2 2h2a1 1 0 0 1 1 1v2.9a2 2 0 1 0 4 0V17a1 1 0 0 1 1-1h2a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1",key:"iw4wnp"}]],S2=e("paintbrush-vertical",KF);const QF=[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]],W8=e("paintbrush",QF);const JF=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],E8=e("palette",JF);const YF=[["path",{d:"M11.25 17.25h1.5L12 18z",key:"1wmwwj"}],["path",{d:"m15 12 2 2",key:"k60wz4"}],["path",{d:"M18 6.5a.5.5 0 0 0-.5-.5",key:"1ch4h4"}],["path",{d:"M20.69 9.67a4.5 4.5 0 1 0-7.04-5.5 8.35 8.35 0 0 0-3.3 0 4.5 4.5 0 1 0-7.04 5.5C2.49 11.2 2 12.88 2 14.5 2 19.47 6.48 22 12 22s10-2.53 10-7.5c0-1.62-.48-3.3-1.3-4.83",key:"1c660l"}],["path",{d:"M6 6.5a.495.495 0 0 1 .5-.5",key:"eviuep"}],["path",{d:"m9 12-2 2",key:"326nkw"}]],X8=e("panda",YF);const eD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"m15 8-3 3-3-3",key:"1oxy1z"}]],K8=e("panel-bottom-close",eD);const aD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M14 15h1",key:"171nev"}],["path",{d:"M19 15h2",key:"1vnucp"}],["path",{d:"M3 15h2",key:"8bym0q"}],["path",{d:"M9 15h1",key:"1tg3ks"}]],A2=e("panel-bottom-dashed",aD);const cD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"m9 10 3-3 3 3",key:"11gsxs"}]],Q8=e("panel-bottom-open",cD);const tD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}]],J8=e("panel-bottom",tD);const oD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],H2=e("panel-left-close",oD);const dD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 14v1",key:"askpd8"}],["path",{d:"M9 19v2",key:"16tejx"}],["path",{d:"M9 3v2",key:"1noubl"}],["path",{d:"M9 9v1",key:"19ebxg"}]],j2=e("panel-left-dashed",dD);const nD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],V2=e("panel-left-open",nD);const hD=[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M15 15v-1",key:"6a4afx"}],["path",{d:"M15 21v-2",key:"1qshmc"}],["path",{d:"M15 5V3",key:"1fk0mb"}],["path",{d:"M9 10V9",key:"1lazqi"}],["path",{d:"M9 15v-1",key:"9lx740"}],["path",{d:"M9 21v-2",key:"1fwk0n"}],["path",{d:"M9 5V3",key:"2q8zi6"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]],Y8=e("panel-left-right-dashed",hD);const iD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],P2=e("panel-left",iD);const yD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],e6=e("panel-right-close",yD);const rD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 14v1",key:"ilsfch"}],["path",{d:"M15 19v2",key:"1fst2f"}],["path",{d:"M15 3v2",key:"z204g4"}],["path",{d:"M15 9v1",key:"z2a8b1"}]],B2=e("panel-right-dashed",rD);const kD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],a6=e("panel-right-open",kD);const pD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],c6=e("panel-right",pD);const sD=[["path",{d:"M14 15h1",key:"171nev"}],["path",{d:"M14 9h1",key:"l0svgy"}],["path",{d:"M19 15h2",key:"1vnucp"}],["path",{d:"M19 9h2",key:"te2zfg"}],["path",{d:"M3 15h2",key:"8bym0q"}],["path",{d:"M3 9h2",key:"1h4ldw"}],["path",{d:"M9 15h1",key:"1tg3ks"}],["path",{d:"M9 9h1",key:"15jzuz"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]],t6=e("panel-top-bottom-dashed",sD);const lD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m9 16 3-3 3 3",key:"1idcnm"}]],o6=e("panel-top-close",lD);const uD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M14 9h1",key:"l0svgy"}],["path",{d:"M19 9h2",key:"te2zfg"}],["path",{d:"M3 9h2",key:"1h4ldw"}],["path",{d:"M9 9h1",key:"15jzuz"}]],F2=e("panel-top-dashed",uD);const MD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m15 14-3 3-3-3",key:"g215vf"}]],d6=e("panel-top-open",MD);const vD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M9 15h12",key:"5ijen5"}]],n6=e("panels-left-bottom",vD);const mD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]],h6=e("panel-top",mD);const _D=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h12",key:"1wkqb3"}],["path",{d:"M15 3v18",key:"14nvp0"}]],i6=e("panels-right-bottom",_D);const gD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],D2=e("panels-top-left",gD);const xD=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],y6=e("paperclip",xD);const LD=[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}]],r6=e("parentheses",LD);const wD=[["path",{d:"M11 15h2",key:"199qp6"}],["path",{d:"M12 12v3",key:"158kv8"}],["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15.282 19a1 1 0 0 0 .948-.68l2.37-6.988a7 7 0 1 0-13.2 0l2.37 6.988a1 1 0 0 0 .948.68z",key:"1jofit"}],["path",{d:"M9 9a3 3 0 1 1 6 0",key:"jdoeu8"}]],k6=e("parking-meter",wD);const fD=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],p6=e("party-popper",fD);const ID=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],s6=e("pause",ID);const CD=[["circle",{cx:"11",cy:"4",r:"2",key:"vol9p0"}],["circle",{cx:"18",cy:"8",r:"2",key:"17gozi"}],["circle",{cx:"20",cy:"16",r:"2",key:"1v9bxh"}],["path",{d:"M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z",key:"1ydw1z"}]],l6=e("paw-print",CD);const ND=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",key:"1uq1d7"}],["path",{d:"M15 14h.01",key:"1kp3bh"}],["path",{d:"M9 6h6",key:"dgm16u"}],["path",{d:"M9 10h6",key:"9gxzsh"}]],u6=e("pc-case",ND);const bD=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],R2=e("pen-line",bD);const $D=[["path",{d:"m10 10-6.157 6.162a2 2 0 0 0-.5.833l-1.322 4.36a.5.5 0 0 0 .622.624l4.358-1.323a2 2 0 0 0 .83-.5L14 13.982",key:"bjo8r8"}],["path",{d:"m12.829 7.172 4.359-4.346a1 1 0 1 1 3.986 3.986l-4.353 4.353",key:"16h5ne"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],M6=e("pen-off",$D);const qD=[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]],v6=e("pen-tool",qD);const zD=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],T2=e("pen",zD);const SD=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],m6=e("pencil-line",SD);const AD=[["path",{d:"M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13",key:"orapub"}],["path",{d:"m8 6 2-2",key:"115y1s"}],["path",{d:"m18 16 2-2",key:"ee94s4"}],["path",{d:"m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17",key:"cfq27r"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],_6=e("pencil-ruler",AD);const HD=[["path",{d:"m10 10-6.157 6.162a2 2 0 0 0-.5.833l-1.322 4.36a.5.5 0 0 0 .622.624l4.358-1.323a2 2 0 0 0 .83-.5L14 13.982",key:"bjo8r8"}],["path",{d:"m12.829 7.172 4.359-4.346a1 1 0 1 1 3.986 3.986l-4.353 4.353",key:"16h5ne"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],g6=e("pencil-off",HD);const jD=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],x6=e("pencil",jD);const VD=[["path",{d:"M10.83 2.38a2 2 0 0 1 2.34 0l8 5.74a2 2 0 0 1 .73 2.25l-3.04 9.26a2 2 0 0 1-1.9 1.37H7.04a2 2 0 0 1-1.9-1.37L2.1 10.37a2 2 0 0 1 .73-2.25z",key:"2hea0t"}]],L6=e("pentagon",VD);const PD=[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]],w6=e("percent",PD);const BD=[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["path",{d:"m9 20 3-6 3 6",key:"se2kox"}],["path",{d:"m6 8 6 2 6-2",key:"4o3us4"}],["path",{d:"M12 10v4",key:"1kjpxc"}]],f6=e("person-standing",BD);const FD=[["path",{d:"M20 11H4",key:"6ut86h"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"M7 21V4a1 1 0 0 1 1-1h4a1 1 0 0 1 0 12H7",key:"1ana5r"}]],I6=e("philippine-peso",FD);const DD=[["path",{d:"M14 6h8",key:"yd68k4"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],C6=e("phone-forwarded",DD);const RD=[["path",{d:"M16 2v6h6",key:"1mfrl5"}],["path",{d:"m22 2-6 6",key:"6f0sa0"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],N6=e("phone-incoming",RD);const TD=[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],b6=e("phone-call",TD);const UD=[["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"m22 2-6 6",key:"6f0sa0"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],$6=e("phone-missed",UD);const OD=[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]],q6=e("phone-off",OD);const GD=[["path",{d:"m16 8 6-6",key:"oawc05"}],["path",{d:"M22 8V2h-6",key:"oqy2zc"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],z6=e("phone-outgoing",GD);const ZD=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],S6=e("phone",ZD);const WD=[["line",{x1:"9",x2:"9",y1:"4",y2:"20",key:"ovs5a5"}],["path",{d:"M4 7c0-1.7 1.3-3 3-3h13",key:"10pag4"}],["path",{d:"M18 20c-1.7 0-3-1.3-3-3V4",key:"1gaosr"}]],A6=e("pi",WD);const ED=[["path",{d:"M18.5 8c-1.4 0-2.6-.8-3.2-2A6.87 6.87 0 0 0 2 9v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-8.5C22 9.6 20.4 8 18.5 8",key:"lag0yf"}],["path",{d:"M2 14h20",key:"myj16y"}],["path",{d:"M6 14v4",key:"9ng0ue"}],["path",{d:"M10 14v4",key:"1v8uk5"}],["path",{d:"M14 14v4",key:"1tqops"}],["path",{d:"M18 14v4",key:"18uqwm"}]],H6=e("piano",ED);const XD=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3L11 9.999",key:"1lw9ds"}],["path",{d:"M15.973 4.027A13 13 0 0 0 5.902 2.373c-1.398.342-1.092 2.158.277 2.601a19.9 19.9 0 0 1 5.822 3.024",key:"ffj4ej"}],["path",{d:"M16.001 11.999a19.9 19.9 0 0 1 3.024 5.824c.444 1.369 2.26 1.676 2.603.278A13 13 0 0 0 20 8.069",key:"8tj4zw"}],["path",{d:"M18.352 3.352a1.205 1.205 0 0 0-1.704 0l-5.296 5.296a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l5.296-5.296a1.205 1.205 0 0 0 0-1.704z",key:"hh6h97"}]],j6=e("pickaxe",XD);const KD=[["path",{d:"M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4",key:"daa4of"}],["rect",{width:"10",height:"7",x:"12",y:"13",rx:"2",key:"1nb8gs"}]],V6=e("picture-in-picture-2",KD);const QD=[["path",{d:"M2 10h6V4",key:"zwrco"}],["path",{d:"m2 4 6 6",key:"ug085t"}],["path",{d:"M21 10V7a2 2 0 0 0-2-2h-7",key:"git5jr"}],["path",{d:"M3 14v2a2 2 0 0 0 2 2h3",key:"1f7fh3"}],["rect",{x:"12",y:"14",width:"10",height:"7",rx:"1",key:"1wjs3o"}]],P6=e("picture-in-picture",QD);const JD=[["path",{d:"M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z",key:"1piglc"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M2 8v1a2 2 0 0 0 2 2h1",key:"1env43"}]],B6=e("piggy-bank",JD);const YD=[["path",{d:"M14 3v11",key:"mlfb7b"}],["path",{d:"M14 9h-3a3 3 0 0 1 0-6h9",key:"1ulc19"}],["path",{d:"M18 3v11",key:"1phi0r"}],["path",{d:"M22 18H2l4-4",key:"yt65j9"}],["path",{d:"m6 22-4-4",key:"6jgyf5"}]],F6=e("pilcrow-left",YD);const eR=[["path",{d:"M13 4v16",key:"8vvj80"}],["path",{d:"M17 4v16",key:"7dpous"}],["path",{d:"M19 4H9.5a4.5 4.5 0 0 0 0 9H13",key:"sh4n9v"}]],D6=e("pilcrow",eR);const aR=[["path",{d:"M10 3v11",key:"o3l5kj"}],["path",{d:"M10 9H7a1 1 0 0 1 0-6h8",key:"1wb1nc"}],["path",{d:"M14 3v11",key:"mlfb7b"}],["path",{d:"m18 14 4 4H2",key:"4r8io1"}],["path",{d:"m22 18-4 4",key:"1hjjrd"}]],R6=e("pilcrow-right",aR);const cR=[["path",{d:"M18 11h-4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h4",key:"17ldeb"}],["path",{d:"M6 7v13a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7",key:"nc37y6"}],["rect",{width:"16",height:"5",x:"4",y:"2",rx:"1",key:"3jeezo"}]],T6=e("pill-bottle",cR);const tR=[["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"}]],U6=e("pill",tR);const oR=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],O6=e("pin-off",oR);const dR=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],G6=e("pin",dR);const nR=[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]],Z6=e("pipette",nR);const hR=[["path",{d:"m12 14-1 1",key:"11onhr"}],["path",{d:"m13.75 18.25-1.25 1.42",key:"1yisr3"}],["path",{d:"M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12",key:"1qtqk6"}],["path",{d:"M18.8 9.3a1 1 0 0 0 2.1 7.7",key:"fbbbr2"}],["path",{d:"M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z",key:"1hyfdd"}]],W6=e("pizza",hR);const iR=[["path",{d:"M2 22h20",key:"272qi7"}],["path",{d:"M3.77 10.77 2 9l2-4.5 1.1.55c.55.28.9.84.9 1.45s.35 1.17.9 1.45L8 8.5l3-6 1.05.53a2 2 0 0 1 1.09 1.52l.72 5.4a2 2 0 0 0 1.09 1.52l4.4 2.2c.42.22.78.55 1.01.96l.6 1.03c.49.88-.06 1.98-1.06 2.1l-1.18.15c-.47.06-.95-.02-1.37-.24L4.29 11.15a2 2 0 0 1-.52-.38Z",key:"1ma21e"}]],E6=e("plane-landing",iR);const yR=[["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"}]],X6=e("plane-takeoff",yR);const rR=[["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"}]],K6=e("play",rR);const kR=[["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"}]],Q6=e("plane",kR);const pR=[["path",{d:"M9 2v6",key:"17ngun"}],["path",{d:"M15 2v6",key:"s7yy2p"}],["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M5 8h14",key:"pcz4l3"}],["path",{d:"M6 11V8h12v3a6 6 0 1 1-12 0Z",key:"wtfw2c"}]],J6=e("plug-2",pR);const sR=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],U2=e("plug-zap",sR);const lR=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],Y6=e("plug",lR);const uR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],el=e("plus",uR);const MR=[["path",{d:"M3 2v1c0 1 2 1 2 2S3 6 3 7s2 1 2 2-2 1-2 2 2 1 2 2",key:"19w3oe"}],["path",{d:"M18 6h.01",key:"1v4wsw"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M20.83 8.83a4 4 0 0 0-5.66-5.66l-12 12a4 4 0 1 0 5.66 5.66Z",key:"6fykxj"}],["path",{d:"M18 11.66V22a4 4 0 0 0 4-4V6",key:"1utzek"}]],al=e("pocket-knife",MR);const vR=[["path",{d:"M20 3a2 2 0 0 1 2 2v6a1 1 0 0 1-20 0V5a2 2 0 0 1 2-2z",key:"1uodqw"}],["path",{d:"m8 10 4 4 4-4",key:"1mxd5q"}]],cl=e("pocket",vR);const mR=[["path",{d:"M13 17a1 1 0 1 0-2 0l.5 4.5a0.5 0.5 0 0 0 1 0z",fill:"currentColor",key:"x1mxqr"}],["path",{d:"M16.85 18.58a9 9 0 1 0-9.7 0",key:"d71mpg"}],["path",{d:"M8 14a5 5 0 1 1 8 0",key:"fc81rn"}],["circle",{cx:"12",cy:"11",r:"1",fill:"currentColor",key:"vqiwd"}]],tl=e("podcast",mR);const _R=[["path",{d:"M10 4.5V4a2 2 0 0 0-2.41-1.957",key:"jsi14n"}],["path",{d:"M13.9 8.4a2 2 0 0 0-1.26-1.295",key:"hirc7f"}],["path",{d:"M21.7 16.2A8 8 0 0 0 22 14v-3a2 2 0 1 0-4 0v-1a2 2 0 0 0-3.63-1.158",key:"1jxb2e"}],["path",{d:"m7 15-1.8-1.8a2 2 0 0 0-2.79 2.86L6 19.7a7.74 7.74 0 0 0 6 2.3h2a8 8 0 0 0 5.657-2.343",key:"10r7hm"}],["path",{d:"M6 6v8",key:"tv5xkp"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ol=e("pointer-off",_R);const gR=[["path",{d:"M22 14a8 8 0 0 1-8 8",key:"56vcr3"}],["path",{d:"M18 11v-1a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1agjmk"}],["path",{d:"M14 10V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1",key:"wdbh2u"}],["path",{d:"M10 9.5V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v10",key:"1ibuk9"}],["path",{d:"M18 11a2 2 0 1 1 4 0v3a8 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:"g6ys72"}]],dl=e("pointer",gR);const xR=[["path",{d:"M18 8a2 2 0 0 0 0-4 2 2 0 0 0-4 0 2 2 0 0 0-4 0 2 2 0 0 0-4 0 2 2 0 0 0 0 4",key:"10td1f"}],["path",{d:"M10 22 9 8",key:"yjptiv"}],["path",{d:"m14 22 1-14",key:"8jwc8b"}],["path",{d:"M20 8c.5 0 .9.4.8 1l-2.6 12c-.1.5-.7 1-1.2 1H7c-.6 0-1.1-.4-1.2-1L3.2 9c-.1-.6.3-1 .8-1Z",key:"1qo33t"}]],nl=e("popcorn",xR);const LR=[["path",{d:"M18.6 14.4c.8-.8.8-2 0-2.8l-8.1-8.1a4.95 4.95 0 1 0-7.1 7.1l8.1 8.1c.9.7 2.1.7 2.9-.1Z",key:"1o68ps"}],["path",{d:"m22 22-5.5-5.5",key:"17o70y"}]],hl=e("popsicle",LR);const wR=[["path",{d:"M18 7c0-5.333-8-5.333-8 0",key:"1prm2n"}],["path",{d:"M10 7v14",key:"18tmcs"}],["path",{d:"M6 21h12",key:"4dkmi1"}],["path",{d:"M6 13h10",key:"ybwr4a"}]],il=e("pound-sterling",wR);const fR=[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],yl=e("power-off",fR);const IR=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],rl=e("power",IR);const CR=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],kl=e("presentation",CR);const NR=[["path",{d:"M13.5 22H7a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v.5",key:"qeb09x"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}],["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v2",key:"1md90i"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}]],pl=e("printer-check",NR);const bR=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],sl=e("printer",bR);const $R=[["path",{d:"M5 7 3 5",key:"1yys58"}],["path",{d:"M9 6V3",key:"1ptz9u"}],["path",{d:"m13 7 2-2",key:"1w3vmq"}],["circle",{cx:"9",cy:"13",r:"3",key:"1mma13"}],["path",{d:"M11.83 12H20a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h2.17",key:"2frwzc"}],["path",{d:"M16 16h2",key:"dnq2od"}]],ll=e("projector",$R);const qR=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M12 9v11",key:"1fnkrn"}],["path",{d:"M2 9h13a2 2 0 0 1 2 2v9",key:"11z3ex"}]],ul=e("proportions",qR);const zR=[["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"}]],Ml=e("puzzle",zR);const SR=[["path",{d:"M2.5 16.88a1 1 0 0 1-.32-1.43l9-13.02a1 1 0 0 1 1.64 0l9 13.01a1 1 0 0 1-.32 1.44l-8.51 4.86a2 2 0 0 1-1.98 0Z",key:"aenxs0"}],["path",{d:"M12 2v20",key:"t6zp3m"}]],vl=e("pyramid",SR);const AR=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],ml=e("qr-code",AR);const HR=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],_l=e("quote",HR);const jR=[["path",{d:"M13 16a3 3 0 0 1 2.24 5",key:"1epib5"}],["path",{d:"M18 12h.01",key:"yjnet6"}],["path",{d:"M18 21h-8a4 4 0 0 1-4-4 7 7 0 0 1 7-7h.2L9.6 6.4a1 1 0 1 1 2.8-2.8L15.8 7h.2c3.3 0 6 2.7 6 6v1a2 2 0 0 1-2 2h-1a3 3 0 0 0-3 3",key:"ue9ozu"}],["path",{d:"M20 8.54V4a2 2 0 1 0-4 0v3",key:"49iql8"}],["path",{d:"M7.612 12.524a3 3 0 1 0-1.6 4.3",key:"1e33i0"}]],gl=e("rabbit",jR);const VR=[["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"}]],xl=e("radar",VR);const PR=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 15.4641a4 4 0 0 1-4 0L7.52786 19.74597 A 1 1 0 0 0 7.99303 21.16211 10 10 0 0 0 16.00697 21.16211 1 1 0 0 0 16.47214 19.74597z",key:"1y4lzb"}],["path",{d:"M16 12a4 4 0 0 0-2-3.464l2.472-4.282a1 1 0 0 1 1.46-.305 10 10 0 0 1 4.006 6.94A1 1 0 0 1 21 12z",key:"163ggk"}],["path",{d:"M8 12a4 4 0 0 1 2-3.464L7.528 4.254a1 1 0 0 0-1.46-.305 10 10 0 0 0-4.006 6.94A1 1 0 0 0 3 12z",key:"1l9i0b"}]],Ll=e("radiation",PR);const BR=[["path",{d:"M3 12h3.28a1 1 0 0 1 .948.684l2.298 7.934a.5.5 0 0 0 .96-.044L13.82 4.771A1 1 0 0 1 14.792 4H21",key:"1mqj8i"}]],wl=e("radical",BR);const FR=[["path",{d:"M5 16v2",key:"g5qcv5"}],["path",{d:"M19 16v2",key:"1gbaio"}],["rect",{width:"20",height:"8",x:"2",y:"8",rx:"2",key:"vjsjur"}],["path",{d:"M18 12h.01",key:"yjnet6"}]],fl=e("radio-receiver",FR);const DR=[["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"}]],Il=e("radio-tower",DR);const RR=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Cl=e("radio",RR);const TR=[["path",{d:"M20.34 17.52a10 10 0 1 0-2.82 2.82",key:"fydyku"}],["circle",{cx:"19",cy:"19",r:"2",key:"17f5cg"}],["path",{d:"m13.41 13.41 4.18 4.18",key:"1gqbwc"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Nl=e("radius",TR);const UR=[["path",{d:"M5 15h14",key:"m0yey3"}],["path",{d:"M5 9h14",key:"7tsvo6"}],["path",{d:"m14 20-5-5 6-6-5-5",key:"1jo42i"}]],bl=e("rail-symbol",UR);const OR=[["path",{d:"M22 17a10 10 0 0 0-20 0",key:"ozegv"}],["path",{d:"M6 17a6 6 0 0 1 12 0",key:"5giftw"}],["path",{d:"M10 17a2 2 0 0 1 4 0",key:"gnsikk"}]],$l=e("rainbow",OR);const GR=[["path",{d:"M13 22H4a2 2 0 0 1 0-4h12",key:"bt3f23"}],["path",{d:"M13.236 18a3 3 0 0 0-2.2-5",key:"1tbvmo"}],["path",{d:"M16 9h.01",key:"1bdo4e"}],["path",{d:"M16.82 3.94a3 3 0 1 1 3.237 4.868l1.815 2.587a1.5 1.5 0 0 1-1.5 2.1l-2.872-.453a3 3 0 0 0-3.5 3",key:"9ch7kn"}],["path",{d:"M17 4.988a3 3 0 1 0-5.2 2.052A7 7 0 0 0 4 14.015 4 4 0 0 0 8 18",key:"3s7e9i"}]],ql=e("rat",GR);const ZR=[["rect",{width:"12",height:"20",x:"6",y:"2",rx:"2",key:"1oxtiu"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]],zl=e("ratio",ZR);const WR=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M12 6.5v11",key:"ecfhkf"}],["path",{d:"M15 9.4a4 4 0 1 0 0 5.2",key:"1makmb"}]],Sl=e("receipt-cent",WR);const ER=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M8 12h5",key:"1g6qi8"}],["path",{d:"M16 9.5a4 4 0 1 0 0 5.2",key:"b2px4r"}]],Al=e("receipt-euro",ER);const XR=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M8 7h8",key:"i86dvs"}],["path",{d:"M12 17.5 8 15h1a4 4 0 0 0 0-8",key:"grpkl4"}],["path",{d:"M8 11h8",key:"vwpz6n"}]],Hl=e("receipt-indian-rupee",XR);const KR=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M8 13h5",key:"1k9z8w"}],["path",{d:"M10 17V9.5a2.5 2.5 0 0 1 5 0",key:"1dzgp0"}],["path",{d:"M8 17h7",key:"8mjdqu"}]],jl=e("receipt-pound-sterling",KR);const QR=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"m12 10 3-3",key:"1mc12w"}],["path",{d:"m9 7 3 3v7.5",key:"39i0xv"}],["path",{d:"M9 11h6",key:"1fldmi"}],["path",{d:"M9 15h6",key:"cctwl0"}]],Vl=e("receipt-japanese-yen",QR);const JR=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M8 15h5",key:"vxg57a"}],["path",{d:"M8 11h5a2 2 0 1 0 0-4h-3v10",key:"1usi5u"}]],Pl=e("receipt-russian-ruble",JR);const YR=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M10 17V7h5",key:"k7jq18"}],["path",{d:"M10 11h4",key:"1i0mka"}],["path",{d:"M8 15h5",key:"vxg57a"}]],Bl=e("receipt-swiss-franc",YR);const eT=[["path",{d:"M13 16H8",key:"wsln4y"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["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"}]],Fl=e("receipt-text",eT);const aT=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],Dl=e("receipt",aT);const cT=[["path",{d:"M10 6.5v11a5.5 5.5 0 0 0 5.5-5.5",key:"nw10mp"}],["path",{d:"m14 8-6 3",key:"2tb98i"}],["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1z",key:"io9ry0"}]],Rl=e("receipt-turkish-lira",cT);const tT=[["path",{d:"M14 4v16H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z",key:"1m5n7q"}],["circle",{cx:"14",cy:"12",r:"8",key:"1pag6k"}]],Tl=e("rectangle-circle",tT);const oT=[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M7 12h.01",key:"eqddd0"}]],O2=e("rectangle-ellipsis",oT);const dT=[["path",{d:"M20 6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-4a2 2 0 0 1-1.6-.8l-1.6-2.13a1 1 0 0 0-1.6 0L9.6 17.2A2 2 0 0 1 8 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"d5y1f"}]],Ul=e("rectangle-goggles",dT);const nT=[["rect",{width:"12",height:"20",x:"6",y:"2",rx:"2",key:"1oxtiu"}]],Ol=e("rectangle-vertical",nT);const hT=[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]],Gl=e("rectangle-horizontal",hT);const iT=[["path",{d:"M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5",key:"x6z5xu"}],["path",{d:"M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12",key:"1x4zh5"}],["path",{d:"m14 16-3 3 3 3",key:"f6jyew"}],["path",{d:"M8.293 13.596 7.196 9.5 3.1 10.598",key:"wf1obh"}],["path",{d:"m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843",key:"9tzpgr"}],["path",{d:"m13.378 9.633 4.096 1.098 1.097-4.096",key:"1oe83g"}]],Zl=e("recycle",iT);const yT=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],Wl=e("redo-2",yT);const rT=[["circle",{cx:"12",cy:"17",r:"1",key:"1ixnty"}],["path",{d:"M21 7v6h-6",key:"3ptur4"}],["path",{d:"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",key:"1kgawr"}]],El=e("redo-dot",rT);const kT=[["path",{d:"M21 7v6h-6",key:"3ptur4"}],["path",{d:"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",key:"1kgawr"}]],Xl=e("redo",kT);const pT=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Kl=e("refresh-ccw-dot",pT);const sT=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],Ql=e("refresh-ccw",sT);const lT=[["path",{d:"M21 8L18.74 5.74A9.75 9.75 0 0 0 12 3C11 3 10.03 3.16 9.13 3.47",key:"1krf6h"}],["path",{d:"M8 16H3v5",key:"1cv678"}],["path",{d:"M3 12C3 9.51 4 7.26 5.64 5.64",key:"ruvoct"}],["path",{d:"m3 16 2.26 2.26A9.75 9.75 0 0 0 12 21c2.49 0 4.74-1 6.36-2.64",key:"19q130"}],["path",{d:"M21 12c0 1-.16 1.97-.47 2.87",key:"4w8emr"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M22 22 2 2",key:"1r8tn9"}]],Jl=e("refresh-cw-off",lT);const uT=[["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"}]],Yl=e("refresh-cw",uT);const MT=[["path",{d:"M5 6a4 4 0 0 1 4-4h6a4 4 0 0 1 4 4v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6Z",key:"fpq118"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M15 7v6",key:"1nx30x"}]],e7=e("refrigerator",MT);const vT=[["path",{d:"M17 3v10",key:"15fgeh"}],["path",{d:"m12.67 5.5 8.66 5",key:"1gpheq"}],["path",{d:"m12.67 10.5 8.66-5",key:"1dkfa6"}],["path",{d:"M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z",key:"swwfx4"}]],a7=e("regex",vT);const mT=[["path",{d:"M4 7V4h16v3",key:"9msm58"}],["path",{d:"M5 20h6",key:"1h6pxn"}],["path",{d:"M13 4 8 20",key:"kqq6aj"}],["path",{d:"m15 15 5 5",key:"me55sn"}],["path",{d:"m20 15-5 5",key:"11p7ol"}]],c7=e("remove-formatting",mT);const _T=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}],["path",{d:"M11 10h1v4",key:"70cz1p"}]],t7=e("repeat-1",_T);const gT=[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]],o7=e("repeat-2",gT);const xT=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],d7=e("repeat",xT);const LT=[["path",{d:"M14 14a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"zg1ipl"}],["path",{d:"M14 4a1 1 0 0 1 1-1",key:"dhj8ez"}],["path",{d:"M15 10a1 1 0 0 1-1-1",key:"1mnyi5"}],["path",{d:"M19 14a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"txt6k4"}],["path",{d:"M21 4a1 1 0 0 0-1-1",key:"sfs9ap"}],["path",{d:"M21 9a1 1 0 0 1-1 1",key:"mp6qeo"}],["path",{d:"m3 7 3 3 3-3",key:"x25e72"}],["path",{d:"M6 10V5a2 2 0 0 1 2-2h2",key:"15xut4"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}]],n7=e("replace-all",LT);const wT=[["path",{d:"M14 4a1 1 0 0 1 1-1",key:"dhj8ez"}],["path",{d:"M15 10a1 1 0 0 1-1-1",key:"1mnyi5"}],["path",{d:"M21 4a1 1 0 0 0-1-1",key:"sfs9ap"}],["path",{d:"M21 9a1 1 0 0 1-1 1",key:"mp6qeo"}],["path",{d:"m3 7 3 3 3-3",key:"x25e72"}],["path",{d:"M6 10V5a2 2 0 0 1 2-2h2",key:"15xut4"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}]],h7=e("replace",wT);const fT=[["path",{d:"m12 17-5-5 5-5",key:"1s3y5u"}],["path",{d:"M22 18v-2a4 4 0 0 0-4-4H7",key:"1fcyog"}],["path",{d:"m7 17-5-5 5-5",key:"1ed8i2"}]],i7=e("reply-all",fT);const IT=[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]],y7=e("reply",IT);const CT=[["path",{d:"M12 6a2 2 0 0 0-3.414-1.414l-6 6a2 2 0 0 0 0 2.828l6 6A2 2 0 0 0 12 18z",key:"2a1g8i"}],["path",{d:"M22 6a2 2 0 0 0-3.414-1.414l-6 6a2 2 0 0 0 0 2.828l6 6A2 2 0 0 0 22 18z",key:"rg3s36"}]],r7=e("rewind",CT);const NT=[["path",{d:"M12 11.22C11 9.997 10 9 10 8a2 2 0 0 1 4 0c0 1-.998 2.002-2.01 3.22",key:"1rnhq3"}],["path",{d:"m12 18 2.57-3.5",key:"116vt7"}],["path",{d:"M6.243 9.016a7 7 0 0 1 11.507-.009",key:"10dq0b"}],["path",{d:"M9.35 14.53 12 11.22",key:"tdsyp2"}],["path",{d:"M9.35 14.53C7.728 12.246 6 10.221 6 7a6 5 0 0 1 12 0c-.005 3.22-1.778 5.235-3.43 7.5l3.557 4.527a1 1 0 0 1-.203 1.43l-1.894 1.36a1 1 0 0 1-1.384-.215L12 18l-2.679 3.593a1 1 0 0 1-1.39.213l-1.865-1.353a1 1 0 0 1-.203-1.422z",key:"nmifey"}]],k7=e("ribbon",NT);const bT=[["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-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],p7=e("rocket",bT);const $T=[["polyline",{points:"3.5 2 6.5 12.5 18 12.5",key:"y3iy52"}],["line",{x1:"9.5",x2:"5.5",y1:"12.5",y2:"20",key:"19vg5i"}],["line",{x1:"15",x2:"18.5",y1:"12.5",y2:"20",key:"1inpmv"}],["path",{d:"M2.75 18a13 13 0 0 0 18.5 0",key:"1nquas"}]],s7=e("rocking-chair",$T);const qT=[["path",{d:"M17 10h-1a4 4 0 1 1 4-4v.534",key:"7qf5zm"}],["path",{d:"M17 6h1a4 4 0 0 1 1.42 7.74l-2.29.87a6 6 0 0 1-5.339-10.68l2.069-1.31",key:"1et29u"}],["path",{d:"M4.5 17c2.8-.5 4.4 0 5.5.8s1.8 2.2 2.3 3.7c-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2",key:"kiv2lz"}],["path",{d:"M9.77 12C4 15 2 22 2 22",key:"h28rw0"}],["circle",{cx:"17",cy:"8",r:"2",key:"1330xn"}]],l7=e("rose",qT);const zT=[["path",{d:"M6 19V5",key:"1r845m"}],["path",{d:"M10 19V6.8",key:"9j2tfs"}],["path",{d:"M14 19v-7.8",key:"10s8qv"}],["path",{d:"M18 5v4",key:"1tajlv"}],["path",{d:"M18 19v-6",key:"ielfq3"}],["path",{d:"M22 19V9",key:"158nzp"}],["path",{d:"M2 19V9a4 4 0 0 1 4-4c2 0 4 1.33 6 4s4 4 6 4a4 4 0 1 0-3-6.65",key:"1930oh"}]],u7=e("roller-coaster",zT);const ST=[["path",{d:"M16.466 7.5C15.643 4.237 13.952 2 12 2 9.239 2 7 6.477 7 12s2.239 10 5 10c.342 0 .677-.069 1-.2",key:"10n0gc"}],["path",{d:"m15.194 13.707 3.814 1.86-1.86 3.814",key:"16shm9"}],["path",{d:"M19 15.57c-1.804.885-4.274 1.43-7 1.43-5.523 0-10-2.239-10-5s4.477-5 10-5c4.838 0 8.873 1.718 9.8 4",key:"1lxi77"}]],G2=e("rotate-3d",ST);const AT=[["path",{d:"m14.5 9.5 1 1",key:"159eiq"}],["path",{d:"m15.5 8.5-4 4",key:"iirg3q"}],["path",{d:"M3 12a9 9 0 1 0 9-9 9.74 9.74 0 0 0-6.74 2.74L3 8",key:"g2jlw"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["circle",{cx:"10",cy:"14",r:"2",key:"1239so"}]],M7=e("rotate-ccw-key",AT);const HT=[["path",{d:"M20 9V7a2 2 0 0 0-2-2h-6",key:"19z8uc"}],["path",{d:"m15 2-3 3 3 3",key:"177bxs"}],["path",{d:"M20 13v5a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2",key:"d36hnl"}]],v7=e("rotate-ccw-square",HT);const jT=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],m7=e("rotate-ccw",jT);const VT=[["path",{d:"M12 5H6a2 2 0 0 0-2 2v3",key:"l96uqu"}],["path",{d:"m9 8 3-3-3-3",key:"1gzgc3"}],["path",{d:"M4 14v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2",key:"1w2k5h"}]],_7=e("rotate-cw-square",VT);const PT=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5c.4 0 .9-.1 1.3-.2",key:"1effex"}],["path",{d:"M5.2 5.2A3.5 3.53 0 0 0 6.5 12H12",key:"k9y2ds"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M21 15.3a3.5 3.5 0 0 0-3.3-3.3",key:"11nlu2"}],["path",{d:"M15 5h-4.3",key:"6537je"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],g7=e("route-off",PT);const BT=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],x7=e("rotate-cw",BT);const FT=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],L7=e("route",FT);const DT=[["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6.01 18H6",key:"19vcac"}],["path",{d:"M10.01 18H10",key:"uamcmx"}],["path",{d:"M15 10v4",key:"qjz1xs"}],["path",{d:"M17.84 7.17a4 4 0 0 0-5.66 0",key:"1rif40"}],["path",{d:"M20.66 4.34a8 8 0 0 0-11.31 0",key:"6a5xfq"}]],w7=e("router",DT);const RT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]],Z2=e("rows-2",RT);const TT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],W2=e("rows-3",TT);const UT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 7.5H3",key:"1hm9pq"}],["path",{d:"M21 12H3",key:"2avoz0"}],["path",{d:"M21 16.5H3",key:"n7jzkj"}]],f7=e("rows-4",UT);const OT=[["path",{d:"M4 11a9 9 0 0 1 9 9",key:"pv89mb"}],["path",{d:"M4 4a16 16 0 0 1 16 16",key:"k0647b"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]],I7=e("rss",OT);const GT=[["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"}]],C7=e("ruler",GT);const ZT=[["path",{d:"M10 15v-3",key:"1pjskw"}],["path",{d:"M14 15v-3",key:"1o1mqj"}],["path",{d:"M18 15v-3",key:"cws6he"}],["path",{d:"M2 8V4",key:"3jv1jz"}],["path",{d:"M22 6H2",key:"1iqbfk"}],["path",{d:"M22 8V4",key:"16f4ou"}],["path",{d:"M6 15v-3",key:"1ij1qe"}],["rect",{x:"2",y:"12",width:"20",height:"8",rx:"2",key:"1tqiko"}]],N7=e("ruler-dimension-line",ZT);const WT=[["path",{d:"M6 11h8a4 4 0 0 0 0-8H9v18",key:"18ai8t"}],["path",{d:"M6 15h8",key:"1y8f6l"}]],b7=e("russian-ruble",WT);const ET=[["path",{d:"M10 2v15",key:"1qf71f"}],["path",{d:"M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z",key:"1pxcvx"}],["path",{d:"M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z",key:"5oog16"}]],$7=e("sailboat",ET);const XT=[["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1",key:"10xrj0"}],["path",{d:"m13 12 4-4",key:"1hckqy"}],["path",{d:"M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2",key:"1p4srx"}]],q7=e("salad",XT);const KT=[["path",{d:"m2.37 11.223 8.372-6.777a2 2 0 0 1 2.516 0l8.371 6.777",key:"f1wd0e"}],["path",{d:"M21 15a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-5.25",key:"1pfu07"}],["path",{d:"M3 15a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h9",key:"1oq9qw"}],["path",{d:"m6.67 15 6.13 4.6a2 2 0 0 0 2.8-.4l3.15-4.2",key:"1fnwu5"}],["rect",{width:"20",height:"4",x:"2",y:"11",rx:"1",key:"itshg"}]],z7=e("sandwich",KT);const QT=[["path",{d:"M4 10a7.31 7.31 0 0 0 10 10Z",key:"1fzpp3"}],["path",{d:"m9 15 3-3",key:"88sc13"}],["path",{d:"M17 13a6 6 0 0 0-6-6",key:"15cc6u"}],["path",{d:"M21 13A10 10 0 0 0 11 3",key:"11nf8s"}]],S7=e("satellite-dish",QT);const JT=[["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"}]],A7=e("satellite",JT);const YT=[["path",{d:"m20 19.5-5.5 1.2",key:"1aenhr"}],["path",{d:"M14.5 4v11.22a1 1 0 0 0 1.242.97L20 15.2",key:"2rtezt"}],["path",{d:"m2.978 19.351 5.549-1.363A2 2 0 0 0 10 16V2",key:"1kbm92"}],["path",{d:"M20 10 4 13.5",key:"8nums9"}]],H7=e("saudi-riyal",YT);const eU=[["path",{d:"M13 13H8a1 1 0 0 0-1 1v7",key:"h8g396"}],["path",{d:"M14 8h1",key:"1lfen6"}],["path",{d:"M17 21v-4",key:"1yknxs"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M20.41 20.41A2 2 0 0 1 19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 .59-1.41",key:"1t4vdl"}],["path",{d:"M29.5 11.5s5 5 4 5",key:"zzn4i6"}],["path",{d:"M9 3h6.2a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V15",key:"24cby9"}]],j7=e("save-off",eU);const aU=[["path",{d:"M10 2v3a1 1 0 0 0 1 1h5",key:"1xspal"}],["path",{d:"M18 18v-6a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6",key:"1ra60u"}],["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"M8 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9.172a2 2 0 0 1 1.414.586l2.828 2.828A2 2 0 0 1 22 6.828V16a2 2 0 0 1-2.01 2z",key:"1yve0x"}]],V7=e("save-all",aU);const cU=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],P7=e("save",cU);const tU=[["path",{d:"M5 7v11a1 1 0 0 0 1 1h11",key:"13dt1j"}],["path",{d:"M5.293 18.707 11 13",key:"ezgbsx"}],["circle",{cx:"19",cy:"19",r:"2",key:"17f5cg"}],["circle",{cx:"5",cy:"5",r:"2",key:"1gwv83"}]],E2=e("scale-3d",tU);const oU=[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"m19 8 3 8a5 5 0 0 1-6 0zV7",key:"zcdpyk"}],["path",{d:"M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1",key:"1yorad"}],["path",{d:"m5 8 3 8a5 5 0 0 1-6 0zV7",key:"eua70x"}],["path",{d:"M7 21h10",key:"1b0cd5"}]],B7=e("scale",oU);const dU=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M14 15H9v-5",key:"pi4jk9"}],["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M21 3 9 15",key:"15kdhq"}]],F7=e("scaling",dU);const nU=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M8 7v10",key:"23sfjj"}],["path",{d:"M12 7v10",key:"jspqdw"}],["path",{d:"M17 7v10",key:"578dap"}]],D7=e("scan-barcode",nU);const hU=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]],R7=e("scan-eye",hU);const iU=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 9h.01",key:"x1ddxp"}]],T7=e("scan-face",iU);const yU=[["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7.828 13.07A3 3 0 0 1 12 8.764a3 3 0 0 1 4.172 4.306l-3.447 3.62a1 1 0 0 1-1.449 0z",key:"1ak1ef"}]],U7=e("scan-heart",yU);const rU=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 12h10",key:"b7w52i"}]],O7=e("scan-line",rU);const kU=[["path",{d:"M17 12v4a1 1 0 0 1-1 1h-4",key:"uk4fdo"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M17 8V7",key:"q2g9wo"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M7 17h.01",key:"19xn7k"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["rect",{x:"7",y:"7",width:"5",height:"5",rx:"1",key:"m9kyts"}]],G7=e("scan-qr-code",kU);const pU=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]],Z7=e("scan-search",pU);const sU=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 8h8",key:"1jbsf9"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h6",key:"1vyc9m"}]],W7=e("scan-text",sU);const lU=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]],E7=e("scan",lU);const uU=[["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M18 5v16",key:"1ethyx"}],["path",{d:"m4 6 7.106-3.79a2 2 0 0 1 1.788 0L20 6",key:"zywc2d"}],["path",{d:"m6 11-3.52 2.147a1 1 0 0 0-.48.854V19a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a1 1 0 0 0-.48-.853L18 11",key:"1d4ql0"}],["path",{d:"M6 5v16",key:"1sn0nx"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]],X7=e("school",uU);const MU=[["path",{d:"M5.42 9.42 8 12",key:"12pkuq"}],["circle",{cx:"4",cy:"8",r:"2",key:"107mxr"}],["path",{d:"m14 6-8.58 8.58",key:"gvzu5l"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"M10.8 14.8 14 18",key:"ax7m9r"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}]],K7=e("scissors-line-dashed",MU);const vU=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],Q7=e("scissors",vU);const mU=[["path",{d:"M21 4h-3.5l2 11.05",key:"1gktiw"}],["path",{d:"M6.95 17h5.142c.523 0 .95-.406 1.063-.916a6.5 6.5 0 0 1 5.345-5.009",key:"1bq3u3"}],["circle",{cx:"19.5",cy:"17.5",r:"2.5",key:"e4zhv9"}],["circle",{cx:"4.5",cy:"17.5",r:"2.5",key:"50vk4p"}]],J7=e("scooter",mU);const _U=[["path",{d:"M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3",key:"i8wdob"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m22 3-5 5",key:"12jva0"}],["path",{d:"m17 3 5 5",key:"k36vhe"}]],Y7=e("screen-share-off",_U);const gU=[["path",{d:"M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3",key:"i8wdob"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m17 8 5-5",key:"fqif7o"}],["path",{d:"M17 3h5v5",key:"1o3tu8"}]],e9=e("screen-share",gU);const xU=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],a9=e("scroll-text",xU);const LU=[["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],c9=e("scroll",LU);const wU=[["path",{d:"m8 11 2 2 4-4",key:"1sed1v"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],t9=e("search-check",wU);const fU=[["path",{d:"m13 13.5 2-2.5-2-2.5",key:"1rvxrh"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}],["path",{d:"M9 8.5 7 11l2 2.5",key:"6ffwbx"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],o9=e("search-code",fU);const IU=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],d9=e("search-slash",IU);const CU=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],n9=e("search-x",CU);const NU=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],h9=e("search",NU);const bU=[["path",{d:"M16 5a4 3 0 0 0-8 0c0 4 8 3 8 7a4 3 0 0 1-8 0",key:"vqan6v"}],["path",{d:"M8 19a4 3 0 0 0 8 0c0-4-8-3-8-7a4 3 0 0 1 8 0",key:"wdjd8o"}]],i9=e("section",bU);const $U=[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]],X2=e("send-horizontal",$U);const qU=[["rect",{x:"14",y:"14",width:"8",height:"8",rx:"2",key:"1b0bso"}],["rect",{x:"2",y:"2",width:"8",height:"8",rx:"2",key:"1x09vl"}],["path",{d:"M7 14v1a2 2 0 0 0 2 2h1",key:"pao6x6"}],["path",{d:"M14 7h1a2 2 0 0 1 2 2v1",key:"19tdru"}]],y9=e("send-to-back",qU);const zU=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],r9=e("send",zU);const SU=[["path",{d:"m16 16-4 4-4-4",key:"3dv8je"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"m8 8 4-4 4 4",key:"2bscm2"}]],k9=e("separator-horizontal",SU);const AU=[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"m16 16 4-4-4-4",key:"1js579"}],["path",{d:"m8 8-4 4 4 4",key:"1whems"}]],p9=e("separator-vertical",AU);const HU=[["path",{d:"m10.852 14.772-.383.923",key:"11vil6"}],["path",{d:"M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923",key:"1v3clb"}],["path",{d:"m13.148 9.228.383-.923",key:"t2zzyc"}],["path",{d:"m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544",key:"1bxfiv"}],["path",{d:"m14.772 10.852.923-.383",key:"k9m8cz"}],["path",{d:"m14.772 13.148.923.383",key:"1xvhww"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"m9.228 10.852-.923-.383",key:"1wtb30"}],["path",{d:"m9.228 13.148-.923.383",key:"1a830x"}]],s9=e("server-cog",HU);const jU=[["path",{d:"M6 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2",key:"4b9dqc"}],["path",{d:"M6 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2",key:"22nnkd"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m13 6-4 6h6l-4 6",key:"14hqih"}]],l9=e("server-crash",jU);const VU=[["path",{d:"M7 2h13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-5",key:"bt2siv"}],["path",{d:"M10 10 2.5 2.5C2 2 2 2.5 2 5v3a2 2 0 0 0 2 2h6z",key:"1hjrv1"}],["path",{d:"M22 17v-1a2 2 0 0 0-2-2h-1",key:"1iynyr"}],["path",{d:"M4 14a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16.5l1-.5.5.5-8-8H4z",key:"161ggg"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],u9=e("server-off",VU);const PU=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],M9=e("server",PU);const BU=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],v9=e("settings-2",BU);const FU=[["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"}]],m9=e("settings",FU);const DU=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],_9=e("shapes",DU);const RU=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],g9=e("share-2",RU);const TU=[["path",{d:"M12 2v13",key:"1km8f5"}],["path",{d:"m16 6-4-4-4 4",key:"13yo43"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}]],x9=e("share",TU);const UU=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]],L9=e("sheet",UU);const OU=[["path",{d:"M14 11a2 2 0 1 1-4 0 4 4 0 0 1 8 0 6 6 0 0 1-12 0 8 8 0 0 1 16 0 10 10 0 1 1-20 0 11.93 11.93 0 0 1 2.42-7.22 2 2 0 1 1 3.16 2.44",key:"1cn552"}]],w9=e("shell",OU);const GU=[["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"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],f9=e("shield-alert",GU);const ZU=[["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"}],["path",{d:"m4.243 5.21 14.39 12.472",key:"1c9a7c"}]],I9=e("shield-ban",ZU);const WU=[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],C9=e("shield-check",WU);const EU=[["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"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]],N9=e("shield-ellipsis",EU);const XU=[["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"}],["path",{d:"M12 22V2",key:"zs6s6o"}]],b9=e("shield-half",XU);const KU=[["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"}],["path",{d:"M9 12h6",key:"1c52cq"}]],$9=e("shield-minus",KU);const QU=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]],q9=e("shield-off",QU);const JU=[["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"}],["path",{d:"M9 12h6",key:"1c52cq"}],["path",{d:"M12 9v6",key:"199k2o"}]],z9=e("shield-plus",JU);const YU=[["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"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}],["path",{d:"M12 17h.01",key:"p32p05"}]],K2=e("shield-question-mark",YU);const eO=[["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"}],["path",{d:"M6.376 18.91a6 6 0 0 1 11.249.003",key:"hnjrf2"}],["circle",{cx:"12",cy:"11",r:"4",key:"1gt34v"}]],S9=e("shield-user",eO);const aO=[["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"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],Q2=e("shield-x",aO);const cO=[["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"}]],A9=e("shield",cO);const tO=[["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}],["path",{d:"M12 2v7.5",key:"1e5rl5"}],["path",{d:"m19 5-5.23 5.23",key:"1ezxxf"}],["path",{d:"M22 12h-7.5",key:"le1719"}],["path",{d:"m19 19-5.23-5.23",key:"p3fmgn"}],["path",{d:"M12 14.5V22",key:"dgcmos"}],["path",{d:"M10.23 13.77 5 19",key:"qwopd4"}],["path",{d:"M9.5 12H2",key:"r7bup8"}],["path",{d:"M10.23 10.23 5 5",key:"k2y7lj"}],["circle",{cx:"12",cy:"12",r:"2.5",key:"ix0uyj"}]],H9=e("ship-wheel",tO);const oO=[["path",{d:"M12 10.189V14",key:"1p8cqu"}],["path",{d:"M12 2v3",key:"qbqxhf"}],["path",{d:"M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6",key:"qpkstq"}],["path",{d:"M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76",key:"7tigtc"}],["path",{d:"M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1924j5"}]],j9=e("ship",oO);const dO=[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]],V9=e("shirt",dO);const nO=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],P9=e("shopping-bag",nO);const hO=[["path",{d:"m15 11-1 9",key:"5wnq3a"}],["path",{d:"m19 11-4-7",key:"cnml18"}],["path",{d:"M2 11h20",key:"3eubbj"}],["path",{d:"m3.5 11 1.6 7.4a2 2 0 0 0 2 1.6h9.8a2 2 0 0 0 2-1.6l1.7-7.4",key:"yiazzp"}],["path",{d:"M4.5 15.5h15",key:"13mye1"}],["path",{d:"m5 11 4-7",key:"116ra9"}],["path",{d:"m9 11 1 9",key:"1ojof7"}]],B9=e("shopping-basket",hO);const iO=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],F9=e("shopping-cart",iO);const yO=[["path",{d:"M21.56 4.56a1.5 1.5 0 0 1 0 2.122l-.47.47a3 3 0 0 1-4.212-.03 3 3 0 0 1 0-4.243l.44-.44a1.5 1.5 0 0 1 2.121 0z",key:"1gcedi"}],["path",{d:"M3 22a1 1 0 0 1-1-1v-3.586a1 1 0 0 1 .293-.707l3.355-3.355a1.205 1.205 0 0 1 1.704 0l3.296 3.296a1.205 1.205 0 0 1 0 1.704l-3.355 3.355a1 1 0 0 1-.707.293z",key:"pg9kv3"}],["path",{d:"m9 15 7.879-7.878",key:"1o1zgh"}]],D9=e("shovel",yO);const rO=[["path",{d:"M4 13V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5",key:"1eob4r"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 22v-5",key:"sfixh4"}],["path",{d:"M14 19v-2",key:"pdve8j"}],["path",{d:"M18 20v-3",key:"uox2gk"}],["path",{d:"M2 13h20",key:"5evz65"}],["path",{d:"M6 20v-3",key:"c6pdcb"}]],R9=e("shredder",rO);const kO=[["path",{d:"m4 4 2.5 2.5",key:"uv2vmf"}],["path",{d:"M13.5 6.5a4.95 4.95 0 0 0-7 7",key:"frdkwv"}],["path",{d:"M15 5 5 15",key:"1ag8rq"}],["path",{d:"M14 17v.01",key:"eokfpp"}],["path",{d:"M10 16v.01",key:"14uyyl"}],["path",{d:"M13 13v.01",key:"1v1k97"}],["path",{d:"M16 10v.01",key:"5169yg"}],["path",{d:"M11 20v.01",key:"cj92p8"}],["path",{d:"M17 14v.01",key:"11cswd"}],["path",{d:"M20 11v.01",key:"19e0od"}]],T9=e("shower-head",kO);const pO=[["path",{d:"M11 12h.01",key:"1lr4k6"}],["path",{d:"M13 22c.5-.5 1.12-1 2.5-1-1.38 0-2-.5-2.5-1",key:"fatpdi"}],["path",{d:"M14 2a3.28 3.28 0 0 1-3.227 1.798l-6.17-.561A2.387 2.387 0 1 0 4.387 8H15.5a1 1 0 0 1 0 13 1 1 0 0 0 0-5H12a7 7 0 0 1-7-7V8",key:"kehrqe"}],["path",{d:"M14 8a8.5 8.5 0 0 1 0 8",key:"1imjx2"}],["path",{d:"M16 16c2 0 4.5-4 4-6",key:"z0nejz"}]],U9=e("shrimp",pO);const sO=[["path",{d:"m15 15 6 6m-6-6v4.8m0-4.8h4.8",key:"17vawe"}],["path",{d:"M9 19.8V15m0 0H4.2M9 15l-6 6",key:"chjx8e"}],["path",{d:"M15 4.2V9m0 0h4.8M15 9l6-6",key:"lav6yq"}],["path",{d:"M9 4.2V9m0 0H4.2M9 9 3 3",key:"1pxi2q"}]],O9=e("shrink",sO);const lO=[["path",{d:"M12 22v-5.172a2 2 0 0 0-.586-1.414L9.5 13.5",key:"1p17fm"}],["path",{d:"M14.5 14.5 12 17",key:"dy5w4y"}],["path",{d:"M17 8.8A6 6 0 0 1 13.8 20H10A6.5 6.5 0 0 1 7 8a5 5 0 0 1 10 0z",key:"6z7b3o"}]],G9=e("shrub",lO);const uO=[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]],Z9=e("shuffle",uO);const MO=[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]],W9=e("sigma",MO);const vO=[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}]],E9=e("signal-high",vO);const mO=[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}]],X9=e("signal-low",mO);const _O=[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}]],K9=e("signal-medium",_O);const gO=[["path",{d:"M2 20h.01",key:"4haj6o"}]],Q9=e("signal-zero",gO);const xO=[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]],J9=e("signal",xO);const LO=[["path",{d:"m21 17-2.156-1.868A.5.5 0 0 0 18 15.5v.5a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1c0-2.545-3.991-3.97-8.5-4a1 1 0 0 0 0 5c4.153 0 4.745-11.295 5.708-13.5a2.5 2.5 0 1 1 3.31 3.284",key:"y32ogt"}],["path",{d:"M3 21h18",key:"itz85i"}]],Y9=e("signature",LO);const wO=[["path",{d:"M10 9H4L2 7l2-2h6",key:"1hq7x2"}],["path",{d:"M14 5h6l2 2-2 2h-6",key:"bv62ej"}],["path",{d:"M10 22V4a2 2 0 1 1 4 0v18",key:"eqpcf2"}],["path",{d:"M8 22h8",key:"rmew8v"}]],eu=e("signpost-big",wO);const fO=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M12 3v3",key:"1n5kay"}],["path",{d:"M18 6a2 2 0 0 1 1.387.56l2.307 2.22a1 1 0 0 1 0 1.44l-2.307 2.22A2 2 0 0 1 18 13H6a2 2 0 0 1-1.387-.56l-2.306-2.22a1 1 0 0 1 0-1.44l2.306-2.22A2 2 0 0 1 6 6z",key:"gqqp9m"}]],au=e("signpost",fO);const IO=[["path",{d:"M7 18v-6a5 5 0 1 1 10 0v6",key:"pcx96s"}],["path",{d:"M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z",key:"1b4s83"}],["path",{d:"M21 12h1",key:"jtio3y"}],["path",{d:"M18.5 4.5 18 5",key:"g5sp9y"}],["path",{d:"M2 12h1",key:"1uaihz"}],["path",{d:"M12 2v1",key:"11qlp1"}],["path",{d:"m4.929 4.929.707.707",key:"1i51kw"}],["path",{d:"M12 12v6",key:"3ahymv"}]],cu=e("siren",IO);const CO=[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]],tu=e("skip-back",CO);const NO=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],ou=e("skip-forward",NO);const bO=[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",key:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]],du=e("skull",bO);const $O=[["rect",{width:"3",height:"8",x:"13",y:"2",rx:"1.5",key:"diqz80"}],["path",{d:"M19 8.5V10h1.5A1.5 1.5 0 1 0 19 8.5",key:"183iwg"}],["rect",{width:"3",height:"8",x:"8",y:"14",rx:"1.5",key:"hqg7r1"}],["path",{d:"M5 15.5V14H3.5A1.5 1.5 0 1 0 5 15.5",key:"76g71w"}],["rect",{width:"8",height:"3",x:"14",y:"13",rx:"1.5",key:"1kmz0a"}],["path",{d:"M15.5 19H14v1.5a1.5 1.5 0 1 0 1.5-1.5",key:"jc4sz0"}],["rect",{width:"8",height:"3",x:"2",y:"8",rx:"1.5",key:"1omvl4"}],["path",{d:"M8.5 5H10V3.5A1.5 1.5 0 1 0 8.5 5",key:"16f3cl"}]],nu=e("slack",$O);const qO=[["path",{d:"M22 2 2 22",key:"y4kqgn"}]],hu=e("slash",qO);const zO=[["path",{d:"M11 16.586V19a1 1 0 0 1-1 1H2L18.37 3.63a1 1 0 1 1 3 3l-9.663 9.663a1 1 0 0 1-1.414 0L8 14",key:"1sllp5"}]],iu=e("slice",zO);const SO=[["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"}]],yu=e("sliders-horizontal",SO);const AO=[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],J2=e("sliders-vertical",AO);const HO=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12.667 8 10 12h4l-2.667 4",key:"h9lk2d"}]],ru=e("smartphone-charging",HO);const jO=[["rect",{width:"7",height:"12",x:"2",y:"6",rx:"1",key:"5nje8w"}],["path",{d:"M13 8.32a7.43 7.43 0 0 1 0 7.36",key:"1g306n"}],["path",{d:"M16.46 6.21a11.76 11.76 0 0 1 0 11.58",key:"uqvjvo"}],["path",{d:"M19.91 4.1a15.91 15.91 0 0 1 .01 15.8",key:"ujntz3"}]],ku=e("smartphone-nfc",jO);const VO=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],pu=e("smartphone",VO);const PO=[["path",{d:"M22 11v1a10 10 0 1 1-9-10",key:"ew0xw9"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}]],su=e("smile-plus",PO);const BO=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],lu=e("smile",BO);const FO=[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]],uu=e("snowflake",FO);const DO=[["path",{d:"M10.5 2v4",key:"1xt6in"}],["path",{d:"M14 2H7a2 2 0 0 0-2 2",key:"e6xig3"}],["path",{d:"M19.29 14.76A6.67 6.67 0 0 1 17 11a6.6 6.6 0 0 1-2.29 3.76c-1.15.92-1.71 2.04-1.71 3.19 0 2.22 1.8 4.05 4 4.05s4-1.83 4-4.05c0-1.16-.57-2.26-1.71-3.19",key:"adq7uc"}],["path",{d:"M9.607 21H6a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h7V7a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"t9hm96"}]],Mu=e("soap-dispenser-droplet",DO);const RO=[["path",{d:"M2 13a6 6 0 1 0 12 0 4 4 0 1 0-8 0 2 2 0 0 0 4 0",key:"hneq2s"}],["circle",{cx:"10",cy:"13",r:"8",key:"194lz3"}],["path",{d:"M2 21h12c4.4 0 8-3.6 8-8V7a2 2 0 1 0-4 0v6",key:"ixqyt7"}],["path",{d:"M18 3 19.1 5.2",key:"9tjm43"}],["path",{d:"M22 3 20.9 5.2",key:"j3odrs"}]],vu=e("snail",RO);const TO=[["path",{d:"M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3",key:"1dgpiv"}],["path",{d:"M2 16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"xacw8m"}],["path",{d:"M4 18v2",key:"jwo5n2"}],["path",{d:"M20 18v2",key:"1ar1qi"}],["path",{d:"M12 4v9",key:"oqhhn3"}]],mu=e("sofa",TO);const UO=[["path",{d:"M11 2h2",key:"isr7bz"}],["path",{d:"m14.28 14-4.56 8",key:"4anwcf"}],["path",{d:"m21 22-1.558-4H4.558",key:"enk13h"}],["path",{d:"M3 10v2",key:"w8mti9"}],["path",{d:"M6.245 15.04A2 2 0 0 1 8 14h12a1 1 0 0 1 .864 1.505l-3.11 5.457A2 2 0 0 1 16 22H4a1 1 0 0 1-.863-1.506z",key:"pouggg"}],["path",{d:"M7 2a4 4 0 0 1-4 4",key:"78s8of"}],["path",{d:"m8.66 7.66 1.41 1.41",key:"1vaqj8"}]],_u=e("solar-panel",UO);const OO=[["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"}]],gu=e("soup",OO);const GO=[["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]],xu=e("space",GO);const ZO=[["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"M2 14.499a5.5 5.5 0 0 0 9.591 3.675.6.6 0 0 1 .818.001A5.5 5.5 0 0 0 22 14.5c0-2.29-1.5-4-3-5.5l-5.492-5.312a2 2 0 0 0-3-.02L5 8.999c-1.5 1.5-3 3.2-3 5.5",key:"1aw2pz"}]],Lu=e("spade",ZO);const WO=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}]],wu=e("sparkle",WO);const EO=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Y2=e("sparkles",EO);const XO=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["circle",{cx:"12",cy:"14",r:"4",key:"1jruaj"}],["path",{d:"M12 14h.01",key:"1etili"}]],fu=e("speaker",XO);const KO=[["path",{d:"M8.8 20v-4.1l1.9.2a2.3 2.3 0 0 0 2.164-2.1V8.3A5.37 5.37 0 0 0 2 8.25c0 2.8.656 3.054 1 4.55a5.77 5.77 0 0 1 .029 2.758L2 20",key:"11atix"}],["path",{d:"M19.8 17.8a7.5 7.5 0 0 0 .003-10.603",key:"yol142"}],["path",{d:"M17 15a3.5 3.5 0 0 0-.025-4.975",key:"ssbmkc"}]],Iu=e("speech",KO);const QO=[["path",{d:"m6 16 6-12 6 12",key:"1b4byz"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M4 21c1.1 0 1.1-1 2.3-1s1.1 1 2.3 1c1.1 0 1.1-1 2.3-1 1.1 0 1.1 1 2.3 1 1.1 0 1.1-1 2.3-1 1.1 0 1.1 1 2.3 1 1.1 0 1.1-1 2.3-1",key:"8mdmtu"}]],Cu=e("spell-check-2",QO);const JO=[["path",{d:"m6 16 6-12 6 12",key:"1b4byz"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m16 20 2 2 4-4",key:"13tcca"}]],Nu=e("spell-check",JO);const YO=[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M5 17A12 12 0 0 1 17 5",key:"1okkup"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}]],bu=e("spline-pointer",YO);const eG=[["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}],["path",{d:"M5 17A12 12 0 0 1 17 5",key:"1okkup"}]],$u=e("spline",eG);const aG=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]],qu=e("split",aG);const cG=[["path",{d:"M17 13.44 4.442 17.082A2 2 0 0 0 4.982 21H19a2 2 0 0 0 .558-3.921l-1.115-.32A2 2 0 0 1 17 14.837V7.66",key:"13vns8"}],["path",{d:"m7 10.56 12.558-3.642A2 2 0 0 0 19.018 3H5a2 2 0 0 0-.558 3.921l1.115.32A2 2 0 0 1 7 9.163v7.178",key:"s8x3u0"}]],zu=e("spool",cG);const tG=[["path",{d:"M15.295 19.562 16 22",key:"31jsb7"}],["path",{d:"m17 16 3.758 2.098",key:"121ar7"}],["path",{d:"m19 12.5 3.026-.598",key:"19ukd3"}],["path",{d:"M7.61 6.3a3 3 0 0 0-3.92 1.3l-1.38 2.79a3 3 0 0 0 1.3 3.91l6.89 3.597a1 1 0 0 0 1.342-.447l3.106-6.211a1 1 0 0 0-.447-1.341z",key:"lwb9l9"}],["path",{d:"M8 9V2",key:"1xa0v7"}]],Su=e("spotlight",tG);const oG=[["path",{d:"M3 3h.01",key:"159qn6"}],["path",{d:"M7 5h.01",key:"1hq22a"}],["path",{d:"M11 7h.01",key:"1osv80"}],["path",{d:"M3 7h.01",key:"1xzrh3"}],["path",{d:"M7 9h.01",key:"19b3jx"}],["path",{d:"M3 11h.01",key:"1eifu7"}],["rect",{width:"4",height:"4",x:"15",y:"5",key:"mri9e4"}],["path",{d:"m19 9 2 2v10c0 .6-.4 1-1 1h-6c-.6 0-1-.4-1-1V11l2-2",key:"aib6hk"}],["path",{d:"m13 14 8-2",key:"1d7bmk"}],["path",{d:"m13 19 8-2",key:"1y2vml"}]],Au=e("spray-can",oG);const dG=[["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"}]],Hu=e("sprout",dG);const nG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m16 8-8 8",key:"166keh"}],["path",{d:"M16 16H8V8",key:"1w2ppm"}]],ee=e("square-arrow-down-left",nG);const hG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m8 8 8 8",key:"1imecy"}],["path",{d:"M16 8v8H8",key:"1lbpgo"}]],ae=e("square-arrow-down-right",hG);const iG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M17 12h-2l-2 5-2-10-2 5H7",key:"15hlnc"}]],ce=e("square-activity",iG);const yG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]],te=e("square-arrow-down",yG);const rG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m12 8-4 4 4 4",key:"15vm53"}],["path",{d:"M16 12H8",key:"1fr5h0"}]],oe=e("square-arrow-left",rG);const kG=[["path",{d:"M13 21h6a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v6",key:"14qz4y"}],["path",{d:"m3 21 9-9",key:"1jfql5"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],de=e("square-arrow-out-down-left",kG);const pG=[["path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"14rsvq"}],["path",{d:"m21 21-9-9",key:"1et2py"}],["path",{d:"M21 15v6h-6",key:"1jko0i"}]],ne=e("square-arrow-out-down-right",pG);const sG=[["path",{d:"M13 3h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6",key:"14mv1t"}],["path",{d:"m3 3 9 9",key:"rks13r"}],["path",{d:"M3 9V3h6",key:"ira0h2"}]],he=e("square-arrow-out-up-left",sG);const lG=[["path",{d:"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6",key:"y09zxi"}],["path",{d:"m21 3-9 9",key:"mpx6sq"}],["path",{d:"M15 3h6v6",key:"1q9fwt"}]],ie=e("square-arrow-out-up-right",lG);const uG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}]],ye=e("square-arrow-right",uG);const MG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 16V8h8",key:"19xb1h"}],["path",{d:"M16 16 8 8",key:"1qdy8n"}]],re=e("square-arrow-up-left",MG);const vG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 8h8v8",key:"b65dnt"}],["path",{d:"m8 16 8-8",key:"13b9ih"}]],ke=e("square-arrow-up-right",vG);const mG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]],pe=e("square-arrow-up",mG);const _G=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8.5 14 7-4",key:"12hpby"}],["path",{d:"m8.5 10 7 4",key:"wwy2dy"}]],se=e("square-asterisk",_G);const gG=[["line",{x1:"5",y1:"3",x2:"19",y2:"3",key:"x74652"}],["line",{x1:"3",y1:"5",x2:"3",y2:"19",key:"31ivqu"}],["line",{x1:"21",y1:"5",x2:"21",y2:"19",key:"1am4cd"}],["line",{x1:"9",y1:"21",x2:"10",y2:"21",key:"sb02er"}],["line",{x1:"14",y1:"21",x2:"15",y2:"21",key:"1bvb1m"}],["path",{d:"M 3 5 A2 2 0 0 1 5 3",key:"dbypyf"}],["path",{d:"M 19 3 A2 2 0 0 1 21 5",key:"y6haui"}],["path",{d:"M 5 21 A2 2 0 0 1 3 19",key:"kb75wq"}],["path",{d:"M 21 19 A2 2 0 0 1 19 21",key:"1p3zbf"}],["circle",{cx:"8.5",cy:"8.5",r:"1.5",key:"cn5opk"}],["line",{x1:"9.56066",y1:"9.56066",x2:"12",y2:"12",key:"mksg6j"}],["line",{x1:"17",y1:"17",x2:"14.82",y2:"14.82",key:"1lwi1d"}],["circle",{cx:"8.5",cy:"15.5",r:"1.5",key:"12hfy1"}],["line",{x1:"9.56066",y1:"14.43934",x2:"17",y2:"7",key:"4jyfgs"}]],le=e("square-bottom-dashed-scissors",gG);const xG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]],r=e("square-chart-gantt",xG);const LG=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],ue=e("square-check-big",LG);const wG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Me=e("square-check",wG);const fG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]],ve=e("square-chevron-down",fG);const IG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m14 16-4-4 4-4",key:"ojs7w8"}]],me=e("square-chevron-left",IG);const CG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]],_e=e("square-chevron-right",CG);const NG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m8 14 4-4 4 4",key:"fy2ptz"}]],ge=e("square-chevron-up",NG);const bG=[["path",{d:"m10 9-3 3 3 3",key:"1oro0q"}],["path",{d:"m14 15 3-3-3-3",key:"bz13h7"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]],xe=e("square-code",bG);const $G=[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["path",{d:"M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2",key:"as5y1o"}],["path",{d:"M9 21h1",key:"15o7lz"}]],ju=e("square-dashed-bottom-code",$G);const qG=[["path",{d:"M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2",key:"as5y1o"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 21h1",key:"v9vybs"}]],Vu=e("square-dashed-bottom",qG);const zG=[["path",{d:"M8 7v7",key:"1x2jlm"}],["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M16 7v9",key:"1hp2iy"}],["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M21 14v1",key:"169vum"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M3 9v1",key:"1r0deq"}]],Le=e("square-dashed-kanban",zG);const SG=[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h2",key:"1qve2z"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v2",key:"p14lih"}],["path",{d:"M3 14v1",key:"vnatye"}]],we=e("square-dashed-mouse-pointer",SG);const AG=[["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M21 14v1",key:"169vum"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2",key:"89voep"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 21h1",key:"15o7lz"}]],Pu=e("square-dashed-top-solid",AG);const HG=[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]],fe=e("square-dashed",HG);const jG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}],["line",{x1:"12",x2:"12",y1:"16",y2:"16",key:"aqc6ln"}],["line",{x1:"12",x2:"12",y1:"8",y2:"8",key:"1mkcni"}]],Ie=e("square-divide",jG);const VG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Ce=e("square-dot",VG);const PG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]],Ne=e("square-function",PG);const BG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}]],be=e("square-equal",BG);const FG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 7v7",key:"1x2jlm"}],["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M16 7v9",key:"1hp2iy"}]],$e=e("square-kanban",FG);const DG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 7v10",key:"d5nglc"}],["path",{d:"M11 7v10",key:"pptsnr"}],["path",{d:"m15 7 2 10",key:"1m7qm5"}]],qe=e("square-library",DG);const RG=[["path",{d:"M8 16V8.5a.5.5 0 0 1 .9-.3l2.7 3.599a.5.5 0 0 0 .8 0l2.7-3.6a.5.5 0 0 1 .9.3V16",key:"1ywlsj"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]],ze=e("square-m",RG);const TG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 8h10",key:"1jw688"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h10",key:"wp8him"}]],Se=e("square-menu",TG);const UG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}]],Ae=e("square-minus",UG);const OG=[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"14rsvq"}]],He=e("square-mouse-pointer",OG);const GG=[["path",{d:"M3.6 3.6A2 2 0 0 1 5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-.59 1.41",key:"9l1ft6"}],["path",{d:"M3 8.7V19a2 2 0 0 0 2 2h10.3",key:"17knke"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M13 13a3 3 0 1 0 0-6H9v2",key:"uoagbd"}],["path",{d:"M9 17v-2.3",key:"1jxgo2"}]],je=e("square-parking-off",GG);const ZG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 17V7h4a3 3 0 0 1 0 6H9",key:"1dfk2c"}]],Ve=e("square-parking",ZG);const WG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],Bu=e("square-pause",WG);const EG=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],t=e("square-pen",EG);const XG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 7h10",key:"udp07y"}],["path",{d:"M10 7v10",key:"i1d9ee"}],["path",{d:"M16 17a2 2 0 0 1-2-2V7",key:"ftwdc7"}]],Pe=e("square-pi",XG);const KG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]],Be=e("square-percent",KG);const QG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 12H9.5a2.5 2.5 0 0 1 0-5H17",key:"1l9586"}],["path",{d:"M12 7v10",key:"jspqdw"}],["path",{d:"M16 7v10",key:"lavkr4"}]],Fe=e("square-pilcrow",QG);const JG=[["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}]],De=e("square-play",JG);const YG=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],Re=e("square-plus",YG);const eZ=[["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M7.998 9.003a5 5 0 1 0 8-.005",key:"1pek45"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]],Te=e("square-power",eZ);const aZ=[["path",{d:"M7 12h2l2 5 2-10h4",key:"1fxv6h"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]],Fu=e("square-radical",aZ);const cZ=[["path",{d:"M21 11a8 8 0 0 0-8-8",key:"1lxwo5"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1dv2y5"}]],Du=e("square-round-corner",cZ);const tZ=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["circle",{cx:"8.5",cy:"8.5",r:"1.5",key:"cn5opk"}],["line",{x1:"9.56066",y1:"9.56066",x2:"12",y2:"12",key:"mksg6j"}],["line",{x1:"17",y1:"17",x2:"14.82",y2:"14.82",key:"1lwi1d"}],["circle",{cx:"8.5",cy:"15.5",r:"1.5",key:"12hfy1"}],["line",{x1:"9.56066",y1:"14.43934",x2:"17",y2:"7",key:"4jyfgs"}]],Ue=e("square-scissors",tZ);const oZ=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M16 8.9V7H8l4 5-4 5h8v-1.9",key:"9nih0i"}]],Oe=e("square-sigma",oZ);const dZ=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],Ge=e("square-slash",dZ);const nZ=[["path",{d:"M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3",key:"lubmu8"}],["path",{d:"M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3",key:"1ag34g"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]],Ze=e("square-split-horizontal",nZ);const hZ=[["path",{d:"M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3",key:"1pi83i"}],["path",{d:"M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3",key:"ido5k7"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]],We=e("square-split-vertical",hZ);const iZ=[["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Ru=e("square-square",iZ);const yZ=[["path",{d:"M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"4i38lg"}],["path",{d:"M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"mlte4a"}],["rect",{width:"8",height:"8",x:"14",y:"14",rx:"2",key:"1fa9i4"}]],Tu=e("square-stack",yZ);const rZ=[["path",{d:"M11.035 7.69a1 1 0 0 1 1.909.024l.737 1.452a1 1 0 0 0 .737.535l1.634.256a1 1 0 0 1 .588 1.806l-1.172 1.168a1 1 0 0 0-.282.866l.259 1.613a1 1 0 0 1-1.541 1.134l-1.465-.75a1 1 0 0 0-.912 0l-1.465.75a1 1 0 0 1-1.539-1.133l.258-1.613a1 1 0 0 0-.282-.866l-1.156-1.153a1 1 0 0 1 .572-1.822l1.633-.256a1 1 0 0 0 .737-.535z",key:"13edca"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]],Uu=e("square-star",rZ);const kZ=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],Ou=e("square-stop",kZ);const pZ=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],Ee=e("square-terminal",pZ);const sZ=[["path",{d:"M18 21a6 6 0 0 0-12 0",key:"kaz2du"}],["circle",{cx:"12",cy:"11",r:"4",key:"1gt34v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Xe=e("square-user-round",sZ);const lZ=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 21v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2",key:"1m6ac2"}]],Ke=e("square-user",lZ);const uZ=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Qe=e("square-x",uZ);const MZ=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Gu=e("square",MZ);const vZ=[["path",{d:"M16 12v2a2 2 0 0 1-2 2H9a1 1 0 0 0-1 1v3a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2h0",key:"1mcohs"}],["path",{d:"M4 16a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v3a1 1 0 0 1-1 1h-5a2 2 0 0 0-2 2v2",key:"1r1efp"}]],Zu=e("squares-exclude",vZ);const mZ=[["path",{d:"M10 22a2 2 0 0 1-2-2",key:"i7yj1i"}],["path",{d:"M14 2a2 2 0 0 1 2 2",key:"170a0m"}],["path",{d:"M16 22h-2",key:"18d249"}],["path",{d:"M2 10V8",key:"7yj4fe"}],["path",{d:"M2 4a2 2 0 0 1 2-2",key:"ddgnws"}],["path",{d:"M20 8a2 2 0 0 1 2 2",key:"1770vt"}],["path",{d:"M22 14v2",key:"iot8ja"}],["path",{d:"M22 20a2 2 0 0 1-2 2",key:"qj8q6g"}],["path",{d:"M4 16a2 2 0 0 1-2-2",key:"1dnafg"}],["path",{d:"M8 10a2 2 0 0 1 2-2h5a1 1 0 0 1 1 1v5a2 2 0 0 1-2 2H9a1 1 0 0 1-1-1z",key:"ci6f0b"}],["path",{d:"M8 2h2",key:"1gmkwm"}]],Wu=e("squares-intersect",mZ);const _Z=[["path",{d:"M10 22a2 2 0 0 1-2-2",key:"i7yj1i"}],["path",{d:"M16 22h-2",key:"18d249"}],["path",{d:"M16 4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-5a2 2 0 0 1 2-2h5a1 1 0 0 0 1-1z",key:"1njgbb"}],["path",{d:"M20 8a2 2 0 0 1 2 2",key:"1770vt"}],["path",{d:"M22 14v2",key:"iot8ja"}],["path",{d:"M22 20a2 2 0 0 1-2 2",key:"qj8q6g"}]],Eu=e("squares-subtract",_Z);const gZ=[["path",{d:"M4 16a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v3a1 1 0 0 0 1 1h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-3a1 1 0 0 0-1-1z",key:"17jnth"}]],Xu=e("squares-unite",gZ);const xZ=[["path",{d:"M13.77 3.043a34 34 0 0 0-3.54 0",key:"1oaobr"}],["path",{d:"M13.771 20.956a33 33 0 0 1-3.541.001",key:"95iq0j"}],["path",{d:"M20.18 17.74c-.51 1.15-1.29 1.93-2.439 2.44",key:"1u6qty"}],["path",{d:"M20.18 6.259c-.51-1.148-1.291-1.929-2.44-2.438",key:"1ew6g6"}],["path",{d:"M20.957 10.23a33 33 0 0 1 0 3.54",key:"1l9npr"}],["path",{d:"M3.043 10.23a34 34 0 0 0 .001 3.541",key:"1it6jm"}],["path",{d:"M6.26 20.179c-1.15-.508-1.93-1.29-2.44-2.438",key:"14uchd"}],["path",{d:"M6.26 3.82c-1.149.51-1.93 1.291-2.44 2.44",key:"8k4agb"}]],Ku=e("squircle-dashed",xZ);const LZ=[["path",{d:"M12 3c7.2 0 9 1.8 9 9s-1.8 9-9 9-9-1.8-9-9 1.8-9 9-9",key:"garfkc"}]],Qu=e("squircle",LZ);const wZ=[["path",{d:"M15.236 22a3 3 0 0 0-2.2-5",key:"21bitc"}],["path",{d:"M16 20a3 3 0 0 1 3-3h1a2 2 0 0 0 2-2v-2a4 4 0 0 0-4-4V4",key:"oh0fg0"}],["path",{d:"M18 13h.01",key:"9veqaj"}],["path",{d:"M18 6a4 4 0 0 0-4 4 7 7 0 0 0-7 7c0-5 4-5 4-10.5a4.5 4.5 0 1 0-9 0 2.5 2.5 0 0 0 5 0C7 10 3 11 3 17c0 2.8 2.2 5 5 5h10",key:"980v8a"}]],Ju=e("squirrel",wZ);const fZ=[["path",{d:"M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-6 0c0 2 1 2 1 3.5V13",key:"i9gjdv"}],["path",{d:"M20 15.5a2.5 2.5 0 0 0-2.5-2.5h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1z",key:"1vzg3v"}],["path",{d:"M5 22h14",key:"ehvnwv"}]],Yu=e("stamp",fZ);const IZ=[["path",{d:"M12 18.338a2.1 2.1 0 0 0-.987.244L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16l2.309-4.679A.53.53 0 0 1 12 2",key:"2ksp49"}]],eM=e("star-half",IZ);const CZ=[["path",{d:"M8.34 8.34 2 9.27l5 4.87L5.82 21 12 17.77 18.18 21l-.59-3.43",key:"16m0ql"}],["path",{d:"M18.42 12.76 22 9.27l-6.91-1L12 2l-1.44 2.91",key:"1vt8nq"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],aM=e("star-off",CZ);const NZ=[["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"}]],cM=e("star",NZ);const bZ=[["path",{d:"M13.971 4.285A2 2 0 0 1 17 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"19qhus"}],["path",{d:"M21 20V4",key:"cb8qj8"}]],tM=e("step-back",bZ);const $Z=[["path",{d:"M10.029 4.285A2 2 0 0 0 7 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"1ystz2"}],["path",{d:"M3 4v16",key:"1ph11n"}]],oM=e("step-forward",$Z);const qZ=[["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"}]],dM=e("stethoscope",qZ);const zZ=[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M10 16s.8 1 2 1c1.3 0 2-1 2-1",key:"1vvgv3"}]],nM=e("sticker",zZ);const SZ=[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]],hM=e("sticky-note",SZ);const AZ=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],iM=e("store",AZ);const HZ=[["rect",{width:"20",height:"6",x:"2",y:"4",rx:"2",key:"qdearl"}],["rect",{width:"20",height:"6",x:"2",y:"14",rx:"2",key:"1xrn6j"}]],yM=e("stretch-horizontal",HZ);const jZ=[["rect",{width:"6",height:"20",x:"4",y:"2",rx:"2",key:"19qu7m"}],["rect",{width:"6",height:"20",x:"14",y:"2",rx:"2",key:"24v0nk"}]],rM=e("stretch-vertical",jZ);const VZ=[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]],kM=e("strikethrough",VZ);const PZ=[["path",{d:"m4 5 8 8",key:"1eunvl"}],["path",{d:"m12 5-8 8",key:"1ah0jp"}],["path",{d:"M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07",key:"e8ta8j"}]],pM=e("subscript",PZ);const BZ=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 4h.01",key:"1ujb9j"}],["path",{d:"M20 12h.01",key:"1ykeid"}],["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M4 12h.01",key:"158zrr"}],["path",{d:"M17.657 6.343h.01",key:"31pqzk"}],["path",{d:"M17.657 17.657h.01",key:"jehnf4"}],["path",{d:"M6.343 17.657h.01",key:"gdk6ow"}],["path",{d:"M6.343 6.343h.01",key:"1uurf0"}]],sM=e("sun-dim",BZ);const FZ=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 3v1",key:"1asbbs"}],["path",{d:"M12 20v1",key:"1wcdkc"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M20 12h1",key:"1vloll"}],["path",{d:"m18.364 5.636-.707.707",key:"1hakh0"}],["path",{d:"m6.343 17.657-.707.707",key:"18m9nf"}],["path",{d:"m5.636 5.636.707.707",key:"1xv1c5"}],["path",{d:"m17.657 17.657.707.707",key:"vl76zb"}]],lM=e("sun-medium",FZ);const DZ=[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715",key:"xlf6rm"}],["path",{d:"M16 12a4 4 0 0 0-4-4",key:"6vsxu"}],["path",{d:"m19 5-1.256 1.256",key:"1yg6a6"}],["path",{d:"M20 12h2",key:"1q8mjw"}]],uM=e("sun-moon",DZ);const RZ=[["path",{d:"M10 21v-1",key:"1u8rkd"}],["path",{d:"M10 4V3",key:"pkzwkn"}],["path",{d:"M10 9a3 3 0 0 0 0 6",key:"gv75dk"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6 1.5-3H22",key:"o5qa3v"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h1",key:"1uaihz"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"m3.64 18.36.7-.7",key:"105rm9"}],["path",{d:"m4.34 6.34-.7-.7",key:"d3unjp"}]],MM=e("sun-snow",RZ);const TZ=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],vM=e("sun",TZ);const UZ=[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m4.93 10.93 1.41 1.41",key:"2a7f42"}],["path",{d:"M2 18h2",key:"j10viu"}],["path",{d:"M20 18h2",key:"wocana"}],["path",{d:"m19.07 10.93-1.41 1.41",key:"15zs5n"}],["path",{d:"M22 22H2",key:"19qnx5"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}],["path",{d:"M16 18a4 4 0 0 0-8 0",key:"1lzouq"}]],mM=e("sunrise",UZ);const OZ=[["path",{d:"M12 10V2",key:"16sf7g"}],["path",{d:"m4.93 10.93 1.41 1.41",key:"2a7f42"}],["path",{d:"M2 18h2",key:"j10viu"}],["path",{d:"M20 18h2",key:"wocana"}],["path",{d:"m19.07 10.93-1.41 1.41",key:"15zs5n"}],["path",{d:"M22 22H2",key:"19qnx5"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["path",{d:"M16 18a4 4 0 0 0-8 0",key:"1lzouq"}]],_M=e("sunset",OZ);const GZ=[["path",{d:"m4 19 8-8",key:"hr47gm"}],["path",{d:"m12 19-8-8",key:"1dhhmo"}],["path",{d:"M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06",key:"1dfcux"}]],gM=e("superscript",GZ);const ZZ=[["path",{d:"M11 17a4 4 0 0 1-8 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2Z",key:"1ldrpk"}],["path",{d:"M16.7 13H19a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H7",key:"11i5po"}],["path",{d:"M 7 17h.01",key:"1euzgo"}],["path",{d:"m11 8 2.3-2.3a2.4 2.4 0 0 1 3.404.004L18.6 7.6a2.4 2.4 0 0 1 .026 3.434L9.9 19.8",key:"o2gii7"}]],xM=e("swatch-book",ZZ);const WZ=[["path",{d:"M10 21V3h8",key:"br2l0g"}],["path",{d:"M6 16h9",key:"2py0wn"}],["path",{d:"M10 9.5h7",key:"13dmhz"}]],LM=e("swiss-franc",WZ);const EZ=[["path",{d:"M11 19H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5",key:"mtk2lu"}],["path",{d:"M13 5h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-5",key:"120jsl"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m18 22-3-3 3-3",key:"kgdoj7"}],["path",{d:"m6 2 3 3-3 3",key:"1fnbkv"}]],wM=e("switch-camera",EZ);const XZ=[["path",{d:"m11 19-6-6",key:"s7kpr"}],["path",{d:"m5 21-2-2",key:"1kw20b"}],["path",{d:"m8 16-4 4",key:"1oqv8h"}],["path",{d:"M9.5 17.5 21 6V3h-3L6.5 14.5",key:"pkxemp"}]],fM=e("sword",XZ);const KZ=[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]],IM=e("swords",KZ);const QZ=[["path",{d:"m18 2 4 4",key:"22kx64"}],["path",{d:"m17 7 3-3",key:"1w1zoj"}],["path",{d:"M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5",key:"1exhtz"}],["path",{d:"m9 11 4 4",key:"rovt3i"}],["path",{d:"m5 19-3 3",key:"59f2uf"}],["path",{d:"m14 4 6 6",key:"yqp9t2"}]],CM=e("syringe",QZ);const JZ=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],NM=e("table-2",JZ);const YZ=[["path",{d:"M12 21v-6",key:"lihzve"}],["path",{d:"M12 9V3",key:"da5inc"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],bM=e("table-cells-merge",YZ);const eW=[["path",{d:"M12 15V9",key:"8c7uyn"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],$M=e("table-cells-split",eW);const aW=[["path",{d:"M14 14v2",key:"w2a1xv"}],["path",{d:"M14 20v2",key:"1lq872"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M14 8v2",key:"i67w9a"}],["path",{d:"M2 15h8",key:"82wtch"}],["path",{d:"M2 3h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2",key:"up0l64"}],["path",{d:"M2 9h8",key:"yelfik"}],["path",{d:"M22 15h-4",key:"1es58f"}],["path",{d:"M22 3h-2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h2",key:"pdjoqf"}],["path",{d:"M22 9h-4",key:"1luja7"}],["path",{d:"M5 3v18",key:"14hmio"}]],qM=e("table-columns-split",aW);const cW=[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M16 12H3",key:"1a2rj7"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"M21 5h.01",key:"wa75ra"}],["path",{d:"M21 12h.01",key:"msek7k"}],["path",{d:"M21 19h.01",key:"qvbq2j"}]],zM=e("table-of-contents",cW);const tW=[["path",{d:"M15 3v18",key:"14nvp0"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],SM=e("table-properties",tW);const oW=[["path",{d:"M14 10h2",key:"1lstlu"}],["path",{d:"M15 22v-8",key:"1fwwgm"}],["path",{d:"M15 2v4",key:"1044rn"}],["path",{d:"M2 10h2",key:"1r8dkt"}],["path",{d:"M20 10h2",key:"1ug425"}],["path",{d:"M3 19h18",key:"awlh7x"}],["path",{d:"M3 22v-6a2 2 135 0 1 2-2h14a2 2 45 0 1 2 2v6",key:"ibqhof"}],["path",{d:"M3 2v2a2 2 45 0 0 2 2h14a2 2 135 0 0 2-2V2",key:"1uenja"}],["path",{d:"M8 10h2",key:"66od0"}],["path",{d:"M9 22v-8",key:"fmnu31"}],["path",{d:"M9 2v4",key:"j1yeou"}]],AM=e("table-rows-split",oW);const dW=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],HM=e("table",dW);const nW=[["rect",{width:"10",height:"14",x:"3",y:"8",rx:"2",key:"1vrsiq"}],["path",{d:"M5 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-2.4",key:"1j4zmg"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],jM=e("tablet-smartphone",nW);const hW=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]],VM=e("tablet",hW);const iW=[["circle",{cx:"7",cy:"7",r:"5",key:"x29byf"}],["circle",{cx:"17",cy:"17",r:"5",key:"1op1d2"}],["path",{d:"M12 17h10",key:"ls21zv"}],["path",{d:"m3.46 10.54 7.08-7.08",key:"1rehiu"}]],PM=e("tablets",iW);const yW=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],BM=e("tag",yW);const rW=[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]],FM=e("tags",rW);const kW=[["path",{d:"M4 4v16",key:"6qkkli"}]],DM=e("tally-1",kW);const pW=[["path",{d:"M4 4v16",key:"6qkkli"}],["path",{d:"M9 4v16",key:"81ygyz"}]],RM=e("tally-2",pW);const sW=[["path",{d:"M4 4v16",key:"6qkkli"}],["path",{d:"M9 4v16",key:"81ygyz"}],["path",{d:"M14 4v16",key:"12vmem"}]],TM=e("tally-3",sW);const lW=[["path",{d:"M4 4v16",key:"6qkkli"}],["path",{d:"M9 4v16",key:"81ygyz"}],["path",{d:"M14 4v16",key:"12vmem"}],["path",{d:"M19 4v16",key:"8ij5ei"}]],UM=e("tally-4",lW);const uW=[["path",{d:"M4 4v16",key:"6qkkli"}],["path",{d:"M9 4v16",key:"81ygyz"}],["path",{d:"M14 4v16",key:"12vmem"}],["path",{d:"M19 4v16",key:"8ij5ei"}],["path",{d:"M22 6 2 18",key:"h9moai"}]],OM=e("tally-5",uW);const MW=[["circle",{cx:"17",cy:"4",r:"2",key:"y5j2s2"}],["path",{d:"M15.59 5.41 5.41 15.59",key:"l0vprr"}],["circle",{cx:"4",cy:"17",r:"2",key:"9p4efm"}],["path",{d:"M12 22s-4-9-1.5-11.5S22 12 22 12",key:"1twk4o"}]],GM=e("tangent",MW);const vW=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],ZM=e("target",vW);const mW=[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]],WM=e("telescope",mW);const _W=[["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}],["path",{d:"m14 5 3-3 3 3",key:"1sorif"}],["path",{d:"m14 10 3-3 3 3",key:"1jyi9h"}],["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M17 14H7l-5 8h20Z",key:"13ar7p"}],["path",{d:"M8 14v8",key:"1ghmqk"}],["path",{d:"m9 14 5 8",key:"13pgi6"}]],EM=e("tent-tree",_W);const gW=[["path",{d:"M3.5 21 14 3",key:"1szst5"}],["path",{d:"M20.5 21 10 3",key:"1310c3"}],["path",{d:"M15.5 21 12 15l-3.5 6",key:"1ddtfw"}],["path",{d:"M2 21h20",key:"1nyx9w"}]],XM=e("tent",gW);const xW=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],KM=e("terminal",xW);const LW=[["path",{d:"M21 7 6.82 21.18a2.83 2.83 0 0 1-3.99-.01a2.83 2.83 0 0 1 0-4L17 3",key:"1ub6xw"}],["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"M12 16H4",key:"1cjfip"}]],Je=e("test-tube-diagonal",LW);const wW=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],QM=e("test-tube",wW);const fW=[["path",{d:"M9 2v17.5A2.5 2.5 0 0 1 6.5 22A2.5 2.5 0 0 1 4 19.5V2",key:"1hjrqt"}],["path",{d:"M20 2v17.5a2.5 2.5 0 0 1-2.5 2.5a2.5 2.5 0 0 1-2.5-2.5V2",key:"16lc8n"}],["path",{d:"M3 2h7",key:"7s29d5"}],["path",{d:"M14 2h7",key:"7sicin"}],["path",{d:"M9 16H4",key:"1bfye3"}],["path",{d:"M20 16h-5",key:"ddnjpe"}]],JM=e("test-tubes",fW);const IW=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 19H5",key:"vjpgq2"}]],Ye=e("text-align-center",IW);const CW=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 19H7",key:"4cu937"}]],e0=e("text-align-end",CW);const NW=[["path",{d:"M3 5h18",key:"1u36vt"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 19h18",key:"awlh7x"}]],a0=e("text-align-justify",NW);const bW=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],k=e("text-align-start",bW);const $W=[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]],YM=e("text-cursor-input",$W);const qW=[["path",{d:"M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1",key:"uvaxm9"}],["path",{d:"M7 22h1a4 4 0 0 0 4-4v-1",key:"11xy8d"}],["path",{d:"M7 2h1a4 4 0 0 1 4 4v1",key:"1uw06m"}]],ev=e("text-cursor",qW);const zW=[["path",{d:"M15 5h6",key:"1pr8yx"}],["path",{d:"M15 12h6",key:"upa0zy"}],["path",{d:"M3 19h18",key:"awlh7x"}],["path",{d:"m3 12 3.553-7.724a.5.5 0 0 1 .894 0L11 12",key:"6lvno8"}],["path",{d:"M3.92 10h6.16",key:"1tl8ex"}]],c0=e("text-initial",zW);const SW=[["path",{d:"M17 5H3",key:"1cn7zz"}],["path",{d:"M21 12H8",key:"scolzb"}],["path",{d:"M21 19H8",key:"13qgcb"}],["path",{d:"M3 12v7",key:"1ri8j3"}]],av=e("text-quote",SW);const AW=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 19H3",key:"108z41"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]],cv=e("text-search",AW);const HW=[["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 14v1",key:"169vum"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h6",key:"1vyc9m"}],["path",{d:"M7 8h8",key:"1jbsf9"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M9 3h1",key:"1yesri"}]],t0=e("text-select",HW);const jW=[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]],o0=e("text-wrap",jW);const VW=[["path",{d:"M2 10s3-3 3-8",key:"3xiif0"}],["path",{d:"M22 10s-3-3-3-8",key:"ioaa5q"}],["path",{d:"M10 2c0 4.4-3.6 8-8 8",key:"16fkpi"}],["path",{d:"M14 2c0 4.4 3.6 8 8 8",key:"b9eulq"}],["path",{d:"M2 10s2 2 2 5",key:"1au1lb"}],["path",{d:"M22 10s-2 2-2 5",key:"qi2y5e"}],["path",{d:"M8 15h8",key:"45n4r"}],["path",{d:"M2 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1",key:"1vsc2m"}],["path",{d:"M14 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1",key:"hrha4u"}]],tv=e("theater",VW);const PW=[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"M10.585 15H10",key:"4nqulp"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"M20 14.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0z",key:"yu0u2z"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h2",key:"1bbqgq"}]],ov=e("thermometer-snowflake",PW);const BW=[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 8a4 4 0 0 0-1.645 7.647",key:"wz5p04"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 14.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0z",key:"yu0u2z"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}]],dv=e("thermometer-sun",BW);const FW=[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]],nv=e("thermometer",FW);const DW=[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]],hv=e("thumbs-down",DW);const RW=[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]],iv=e("thumbs-up",RW);const TW=[["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:"m9 12 2 2 4-4",key:"dzmm74"}]],yv=e("ticket-check",TW);const UW=[["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:"M9 12h6",key:"1c52cq"}]],rv=e("ticket-minus",UW);const OW=[["path",{d:"M2 9a3 3 0 1 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 1 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"1l48ns"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]],kv=e("ticket-percent",OW);const GW=[["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:"M9 12h6",key:"1c52cq"}],["path",{d:"M12 9v6",key:"199k2o"}]],pv=e("ticket-plus",GW);const ZW=[["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:"m9.5 14.5 5-5",key:"qviqfa"}]],sv=e("ticket-slash",ZW);const WW=[["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:"m9.5 14.5 5-5",key:"qviqfa"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],lv=e("ticket-x",WW);const EW=[["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"}]],uv=e("ticket",EW);const XW=[["path",{d:"M10.5 17h1.227a2 2 0 0 0 1.345-.52L18 12",key:"16muxl"}],["path",{d:"m12 13.5 3.75.5",key:"1i9qhk"}],["path",{d:"m4.5 8 10.58-5.06a1 1 0 0 1 1.342.488L18.5 8",key:"12lg5p"}],["path",{d:"M6 10V8",key:"1y41hn"}],["path",{d:"M6 14v1",key:"cao2tf"}],["path",{d:"M6 19v2",key:"1loha6"}],["rect",{x:"2",y:"8",width:"20",height:"13",rx:"2",key:"p3bz5l"}]],Mv=e("tickets-plane",XW);const KW=[["path",{d:"m4.5 8 10.58-5.06a1 1 0 0 1 1.342.488L18.5 8",key:"12lg5p"}],["path",{d:"M6 10V8",key:"1y41hn"}],["path",{d:"M6 14v1",key:"cao2tf"}],["path",{d:"M6 19v2",key:"1loha6"}],["rect",{x:"2",y:"8",width:"20",height:"13",rx:"2",key:"p3bz5l"}]],vv=e("tickets",KW);const QW=[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M4.6 11a8 8 0 0 0 1.7 8.7 8 8 0 0 0 8.7 1.7",key:"10he05"}],["path",{d:"M7.4 7.4a8 8 0 0 1 10.3 1 8 8 0 0 1 .9 10.2",key:"15f7sh"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M12 12v-2",key:"fwoke6"}]],mv=e("timer-off",QW);const JW=[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M12 14v-4",key:"1evpnu"}],["path",{d:"M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6",key:"1ts96g"}],["path",{d:"M9 17H4v5",key:"8t5av"}]],_v=e("timer-reset",JW);const YW=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],gv=e("timer",YW);const eE=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],xv=e("toggle-left",eE);const aE=[["circle",{cx:"15",cy:"12",r:"3",key:"1afu0r"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],Lv=e("toggle-right",aE);const cE=[["path",{d:"M7 12h13a1 1 0 0 1 1 1 5 5 0 0 1-5 5h-.598a.5.5 0 0 0-.424.765l1.544 2.47a.5.5 0 0 1-.424.765H5.402a.5.5 0 0 1-.424-.765L7 18",key:"kc4kqr"}],["path",{d:"M8 18a5 5 0 0 1-5-5V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8",key:"1tqs57"}]],wv=e("toilet",cE);const tE=[["path",{d:"M10 15h4",key:"192ueg"}],["path",{d:"m14.817 10.995-.971-1.45 1.034-1.232a2 2 0 0 0-2.025-3.238l-1.82.364L9.91 3.885a2 2 0 0 0-3.625.748L6.141 6.55l-1.725.426a2 2 0 0 0-.19 3.756l.657.27",key:"xbnumr"}],["path",{d:"m18.822 10.995 2.26-5.38a1 1 0 0 0-.557-1.318L16.954 2.9a1 1 0 0 0-1.281.533l-.924 2.122",key:"eaw7gc"}],["path",{d:"M4 12.006A1 1 0 0 1 4.994 11H19a1 1 0 0 1 1 1v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z",key:"1vaooh"}]],fv=e("tool-case",tE);const oE=[["path",{d:"M21 4H3",key:"1hwok0"}],["path",{d:"M18 8H6",key:"41n648"}],["path",{d:"M19 12H9",key:"1g4lpz"}],["path",{d:"M16 16h-6",key:"1j5d54"}],["path",{d:"M11 20H9",key:"39obr8"}]],Iv=e("tornado",oE);const dE=[["ellipse",{cx:"12",cy:"11",rx:"3",ry:"2",key:"1b2qxu"}],["ellipse",{cx:"12",cy:"12.5",rx:"10",ry:"8.5",key:"h8emeu"}]],Cv=e("torus",dE);const nE=[["path",{d:"M12 20v-6",key:"1rm09r"}],["path",{d:"M19.656 14H22",key:"170xzr"}],["path",{d:"M2 14h12",key:"d8icqz"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M20 20H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2",key:"s23sx2"}],["path",{d:"M9.656 4H20a2 2 0 0 1 2 2v10.344",key:"ovjcvl"}]],Nv=e("touchpad-off",nE);const hE=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M2 14h20",key:"myj16y"}],["path",{d:"M12 20v-6",key:"1rm09r"}]],bv=e("touchpad",hE);const iE=[["path",{d:"M18.2 12.27 20 6H4l1.8 6.27a1 1 0 0 0 .95.73h10.5a1 1 0 0 0 .96-.73Z",key:"1pledb"}],["path",{d:"M8 13v9",key:"hmv0ci"}],["path",{d:"M16 22v-9",key:"ylnf1u"}],["path",{d:"m9 6 1 7",key:"dpdgam"}],["path",{d:"m15 6-1 7",key:"ls7zgu"}],["path",{d:"M12 6V2",key:"1pj48d"}],["path",{d:"M13 2h-2",key:"mj6ths"}]],$v=e("tower-control",iE);const yE=[["rect",{width:"18",height:"12",x:"3",y:"8",rx:"1",key:"158fvp"}],["path",{d:"M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3",key:"s0042v"}],["path",{d:"M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3",key:"9wmeh2"}]],qv=e("toy-brick",yE);const rE=[["path",{d:"m10 11 11 .9a1 1 0 0 1 .8 1.1l-.665 4.158a1 1 0 0 1-.988.842H20",key:"she1j9"}],["path",{d:"M16 18h-5",key:"bq60fd"}],["path",{d:"M18 5a1 1 0 0 0-1 1v5.573",key:"1kv8ia"}],["path",{d:"M3 4h8.129a1 1 0 0 1 .99.863L13 11.246",key:"1q1ert"}],["path",{d:"M4 11V4",key:"9ft8pt"}],["path",{d:"M7 15h.01",key:"k5ht0j"}],["path",{d:"M8 10.1V4",key:"1jgyzo"}],["circle",{cx:"18",cy:"18",r:"2",key:"1emm8v"}],["circle",{cx:"7",cy:"15",r:"5",key:"ddtuc"}]],zv=e("tractor",rE);const kE=[["path",{d:"M16.05 10.966a5 2.5 0 0 1-8.1 0",key:"m5jpwb"}],["path",{d:"m16.923 14.049 4.48 2.04a1 1 0 0 1 .001 1.831l-8.574 3.9a2 2 0 0 1-1.66 0l-8.574-3.91a1 1 0 0 1 0-1.83l4.484-2.04",key:"rbg3g8"}],["path",{d:"M16.949 14.14a5 2.5 0 1 1-9.9 0L10.063 3.5a2 2 0 0 1 3.874 0z",key:"vap8c8"}],["path",{d:"M9.194 6.57a5 2.5 0 0 0 5.61 0",key:"15hn5c"}]],Sv=e("traffic-cone",kE);const pE=[["path",{d:"M2 22V12a10 10 0 1 1 20 0v10",key:"o0fyp0"}],["path",{d:"M15 6.8v1.4a3 2.8 0 1 1-6 0V6.8",key:"m8q3n9"}],["path",{d:"M10 15h.01",key:"44in9x"}],["path",{d:"M14 15h.01",key:"5mohn5"}],["path",{d:"M10 19a4 4 0 0 1-4-4v-3a6 6 0 1 1 12 0v3a4 4 0 0 1-4 4Z",key:"hckbmu"}],["path",{d:"m9 19-2 3",key:"iij7hm"}],["path",{d:"m15 19 2 3",key:"npx8sa"}]],Av=e("train-front-tunnel",pE);const sE=[["path",{d:"M8 3.1V7a4 4 0 0 0 8 0V3.1",key:"1v71zp"}],["path",{d:"m9 15-1-1",key:"1yrq24"}],["path",{d:"m15 15 1-1",key:"1t0d6s"}],["path",{d:"M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z",key:"1p0hjs"}],["path",{d:"m8 19-2 3",key:"13i0xs"}],["path",{d:"m16 19 2 3",key:"xo31yx"}]],Hv=e("train-front",sE);const lE=[["path",{d:"M2 17 17 2",key:"18b09t"}],["path",{d:"m2 14 8 8",key:"1gv9hu"}],["path",{d:"m5 11 8 8",key:"189pqp"}],["path",{d:"m8 8 8 8",key:"1imecy"}],["path",{d:"m11 5 8 8",key:"ummqn6"}],["path",{d:"m14 2 8 8",key:"1vk7dn"}],["path",{d:"M7 22 22 7",key:"15mb1i"}]],jv=e("train-track",lE);const uE=[["rect",{width:"16",height:"16",x:"4",y:"3",rx:"2",key:"1wxw4b"}],["path",{d:"M4 11h16",key:"mpoxn0"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"m8 19-2 3",key:"13i0xs"}],["path",{d:"m18 22-2-3",key:"1p0ohu"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M16 15h.01",key:"rnfrdf"}]],d0=e("tram-front",uE);const ME=[["path",{d:"M12 16v6",key:"c8a4gj"}],["path",{d:"M14 20h-4",key:"m8m19d"}],["path",{d:"M18 2h4v4",key:"1341mj"}],["path",{d:"m2 2 7.17 7.17",key:"13q8l2"}],["path",{d:"M2 5.355V2h3.357",key:"18136r"}],["path",{d:"m22 2-7.17 7.17",key:"1epvy4"}],["path",{d:"M8 5 5 8",key:"mgbjhz"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],Vv=e("transgender",ME);const vE=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Pv=e("trash-2",vE);const mE=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Bv=e("trash",mE);const _E=[["path",{d:"M8 19a4 4 0 0 1-2.24-7.32A3.5 3.5 0 0 1 9 6.03V6a3 3 0 1 1 6 0v.04a3.5 3.5 0 0 1 3.24 5.65A4 4 0 0 1 16 19Z",key:"oadzkq"}],["path",{d:"M12 19v3",key:"npa21l"}]],Fv=e("tree-deciduous",_E);const gE=[["path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4",key:"foxbe7"}],["path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3",key:"18arnh"}],["path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35",key:"ywahnh"}],["path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14",key:"ft0feo"}]],n0=e("tree-palm",gE);const xE=[["path",{d:"M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z",key:"1l6gj6"}],["path",{d:"M7 16v6",key:"1a82de"}],["path",{d:"M13 19v3",key:"13sx9i"}],["path",{d:"M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5",key:"1sj9kv"}]],Dv=e("trees",xE);const LE=[["path",{d:"m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z",key:"cpyugq"}],["path",{d:"M12 22v-3",key:"kmzjlo"}]],Rv=e("tree-pine",LE);const wE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["rect",{width:"3",height:"9",x:"7",y:"7",key:"14n3xi"}],["rect",{width:"3",height:"5",x:"14",y:"7",key:"s4azjd"}]],Tv=e("trello",wE);const fE=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],Uv=e("trending-down",fE);const IE=[["path",{d:"M14.828 14.828 21 21",key:"ar5fw7"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"m21 3-9 9-4-4-6 6",key:"1h02xo"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}]],Ov=e("trending-up-down",IE);const CE=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Gv=e("trending-up",CE);const NE=[["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"}]],h0=e("triangle-alert",NE);const bE=[["path",{d:"M10.17 4.193a2 2 0 0 1 3.666.013",key:"pltmmw"}],["path",{d:"M14 21h2",key:"v4qezv"}],["path",{d:"m15.874 7.743 1 1.732",key:"10m0iw"}],["path",{d:"m18.849 12.952 1 1.732",key:"zadnam"}],["path",{d:"M21.824 18.18a2 2 0 0 1-1.835 2.824",key:"fvwuk4"}],["path",{d:"M4.024 21a2 2 0 0 1-1.839-2.839",key:"1e1kah"}],["path",{d:"m5.136 12.952-1 1.732",key:"1u4ldi"}],["path",{d:"M8 21h2",key:"i9zjee"}],["path",{d:"m8.102 7.743-1 1.732",key:"1zzo4u"}]],Zv=e("triangle-dashed",bE);const $E=[["path",{d:"M22 18a2 2 0 0 1-2 2H3c-1.1 0-1.3-.6-.4-1.3L20.4 4.3c.9-.7 1.6-.4 1.6.7Z",key:"183wce"}]],Wv=e("triangle-right",$E);const qE=[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]],Ev=e("triangle",qE);const zE=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],Xv=e("trophy",zE);const SE=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],Kv=e("truck",SE);const AE=[["path",{d:"M14 19V7a2 2 0 0 0-2-2H9",key:"15peso"}],["path",{d:"M15 19H9",key:"18q6dt"}],["path",{d:"M19 19h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.62L18.3 9.38a1 1 0 0 0-.78-.38H14",key:"1dkp3j"}],["path",{d:"M2 13v5a1 1 0 0 0 1 1h2",key:"pkmmzz"}],["path",{d:"M4 3 2.15 5.15a.495.495 0 0 0 .35.86h2.15a.47.47 0 0 1 .35.86L3 9.02",key:"1n26pd"}],["circle",{cx:"17",cy:"19",r:"2",key:"1nxcgd"}],["circle",{cx:"7",cy:"19",r:"2",key:"gzo7y7"}]],Qv=e("truck-electric",AE);const HE=[["path",{d:"M15 4 5 9",key:"14bkc9"}],["path",{d:"m15 8.5-10 5",key:"1grtsx"}],["path",{d:"M18 12a9 9 0 0 1-9 9V3",key:"1sst7f"}]],Jv=e("turkish-lira",HE);const jE=[["path",{d:"M10 12.01h.01",key:"7rp0yl"}],["path",{d:"M18 8v4a8 8 0 0 1-1.07 4",key:"1st48v"}],["circle",{cx:"10",cy:"12",r:"4",key:"19levz"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Yv=e("turntable",jE);const VE=[["path",{d:"m12 10 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a8 8 0 1 0-16 0v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3l2-4h4Z",key:"1lbbv7"}],["path",{d:"M4.82 7.9 8 10",key:"m9wose"}],["path",{d:"M15.18 7.9 12 10",key:"p8dp2u"}],["path",{d:"M16.93 10H20a2 2 0 0 1 0 4H2",key:"12nsm7"}]],em=e("turtle",VE);const PE=[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z",key:"vbtd3f"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}]],am=e("tv-minimal-play",PE);const BE=[["path",{d:"M7 21h10",key:"1b0cd5"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}]],i0=e("tv-minimal",BE);const FE=[["path",{d:"m17 2-5 5-5-5",key:"16satq"}],["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",key:"1e6viu"}]],cm=e("tv",FE);const DE=[["path",{d:"M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7",key:"c0yzno"}]],tm=e("twitch",DE);const RE=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],om=e("twitter",RE);const TE=[["path",{d:"M14 16.5a.5.5 0 0 0 .5.5h.5a2 2 0 0 1 0 4H9a2 2 0 0 1 0-4h.5a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5V8a2 2 0 0 1-4 0V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v3a2 2 0 0 1-4 0v-.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5Z",key:"1reda3"}]],dm=e("type-outline",TE);const UE=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],nm=e("type",UE);const OE=[["path",{d:"M12 13v7a2 2 0 0 0 4 0",key:"rpgb42"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M18.656 13h2.336a1 1 0 0 0 .97-1.274 10.284 10.284 0 0 0-12.07-7.51",key:"yawknk"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.961 5.957a10.28 10.28 0 0 0-3.922 5.769A1 1 0 0 0 3 13h10",key:"5sfalc"}]],hm=e("umbrella-off",OE);const GE=[["path",{d:"M12 13v7a2 2 0 0 0 4 0",key:"rpgb42"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M20.992 13a1 1 0 0 0 .97-1.274 10.284 10.284 0 0 0-19.923 0A1 1 0 0 0 3 13z",key:"124nyo"}]],im=e("umbrella",GE);const ZE=[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]],ym=e("underline",ZE);const WE=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],rm=e("undo-2",WE);const EE=[["path",{d:"M3 7v6h6",key:"1v2h90"}],["path",{d:"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13",key:"1r6uu6"}]],km=e("undo",EE);const XE=[["path",{d:"M16 12h6",key:"15xry1"}],["path",{d:"M8 12H2",key:"1jqql6"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m19 15 3-3-3-3",key:"wjy7rq"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}]],pm=e("unfold-horizontal",XE);const KE=[["path",{d:"M21 17a9 9 0 0 0-15-6.7L3 13",key:"8mp6z9"}],["path",{d:"M3 7v6h6",key:"1v2h90"}],["circle",{cx:"12",cy:"17",r:"1",key:"1ixnty"}]],sm=e("undo-dot",KE);const QE=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m15 5-3-3-3 3",key:"itvq4r"}]],lm=e("unfold-vertical",QE);const JE=[["rect",{width:"8",height:"6",x:"5",y:"4",rx:"1",key:"nzclkv"}],["rect",{width:"8",height:"6",x:"11",y:"14",rx:"1",key:"4tytwb"}]],um=e("ungroup",JE);const YE=[["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M18 12h.01",key:"yjnet6"}],["path",{d:"M18 16h.01",key:"plv8zi"}],["path",{d:"M22 7a1 1 0 0 0-1-1h-2a2 2 0 0 1-1.143-.359L13.143 2.36a2 2 0 0 0-2.286-.001L6.143 5.64A2 2 0 0 1 5 6H3a1 1 0 0 0-1 1v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2z",key:"1ogmi3"}],["path",{d:"M6 12h.01",key:"c2rlol"}],["path",{d:"M6 16h.01",key:"1pmjb7"}],["circle",{cx:"12",cy:"10",r:"2",key:"1yojzk"}]],y0=e("university",YE);const eX=[["path",{d:"M15 7h2a5 5 0 0 1 0 10h-2m-6 0H7A5 5 0 0 1 7 7h2",key:"1re2ne"}]],Mm=e("unlink-2",eX);const aX=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],vm=e("unlink",aX);const cX=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],mm=e("unplug",cX);const tX=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],_m=e("upload",tX);const oX=[["circle",{cx:"10",cy:"7",r:"1",key:"dypaad"}],["circle",{cx:"4",cy:"20",r:"1",key:"22iqad"}],["path",{d:"M4.7 19.3 19 5",key:"1enqfc"}],["path",{d:"m21 3-3 1 2 2Z",key:"d3ov82"}],["path",{d:"M9.26 7.68 5 12l2 5",key:"1esawj"}],["path",{d:"m10 14 5 2 3.5-3.5",key:"v8oal5"}],["path",{d:"m18 12 1-1 1 1-1 1Z",key:"1bh22v"}]],gm=e("usb",oX);const dX=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],xm=e("user-check",dX);const nX=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Lm=e("user-cog",nX);const hX=[["circle",{cx:"10",cy:"7",r:"4",key:"e45bow"}],["path",{d:"M10.3 15H7a4 4 0 0 0-4 4v2",key:"3bnktk"}],["path",{d:"M15 15.5V14a2 2 0 0 1 4 0v1.5",key:"12ym5i"}],["rect",{width:"8",height:"5",x:"13",y:"16",rx:".899",key:"4p176n"}]],wm=e("user-lock",hX);const iX=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],fm=e("user-minus",iX);const yX=[["path",{d:"M11.5 15H7a4 4 0 0 0-4 4v2",key:"15lzij"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"7",r:"4",key:"e45bow"}]],Im=e("user-pen",yX);const rX=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],Cm=e("user-plus",rX);const kX=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],r0=e("user-round-check",kX);const pX=[["path",{d:"m14.305 19.53.923-.382",key:"3m78fa"}],["path",{d:"m15.228 16.852-.923-.383",key:"npixar"}],["path",{d:"m16.852 15.228-.383-.923",key:"5xggr7"}],["path",{d:"m16.852 20.772-.383.924",key:"dpfhf9"}],["path",{d:"m19.148 15.228.383-.923",key:"1reyyz"}],["path",{d:"m19.53 21.696-.382-.924",key:"1goivc"}],["path",{d:"M2 21a8 8 0 0 1 10.434-7.62",key:"1yezr2"}],["path",{d:"m20.772 16.852.924-.383",key:"htqkph"}],["path",{d:"m20.772 19.148.924.383",key:"9w9pjp"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]],k0=e("user-round-cog",pX);const sX=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 19h-6",key:"vcuq98"}]],p0=e("user-round-minus",sX);const lX=[["path",{d:"M2 21a8 8 0 0 1 10.821-7.487",key:"1c8h7z"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}]],Nm=e("user-round-pen",lX);const uX=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M22 19h-6",key:"vcuq98"}]],s0=e("user-round-plus",uX);const MX=[["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M2 21a8 8 0 0 1 10.434-7.62",key:"1yezr2"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["path",{d:"m22 22-1.9-1.9",key:"1e5ubv"}]],bm=e("user-round-search",MX);const vX=[["path",{d:"M2 21a8 8 0 0 1 11.873-7",key:"74fkxq"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m17 17 5 5",key:"p7ous7"}],["path",{d:"m22 17-5 5",key:"gqnmv0"}]],l0=e("user-round-x",vX);const mX=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],u0=e("user-round",mX);const _X=[["circle",{cx:"10",cy:"7",r:"4",key:"e45bow"}],["path",{d:"M10.3 15H7a4 4 0 0 0-4 4v2",key:"3bnktk"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}]],$m=e("user-search",_X);const gX=[["path",{d:"M16.051 12.616a1 1 0 0 1 1.909.024l.737 1.452a1 1 0 0 0 .737.535l1.634.256a1 1 0 0 1 .588 1.806l-1.172 1.168a1 1 0 0 0-.282.866l.259 1.613a1 1 0 0 1-1.541 1.134l-1.465-.75a1 1 0 0 0-.912 0l-1.465.75a1 1 0 0 1-1.539-1.133l.258-1.613a1 1 0 0 0-.282-.866l-1.156-1.153a1 1 0 0 1 .572-1.822l1.633-.256a1 1 0 0 0 .737-.535z",key:"1m8t9f"}],["path",{d:"M8 15H7a4 4 0 0 0-4 4v2",key:"l9tmp8"}],["circle",{cx:"10",cy:"7",r:"4",key:"e45bow"}]],qm=e("user-star",gX);const xX=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]],zm=e("user-x",xX);const LX=[["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"}]],Sm=e("user",LX);const wX=[["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"}]],Am=e("users",wX);const fX=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],M0=e("users-round",fX);const IX=[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]],v0=e("utensils-crossed",IX);const CX=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],m0=e("utensils",CX);const NX=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M3 3v2",key:"9imdir"}],["path",{d:"M7 3v2",key:"n0os7"}],["path",{d:"M17 3v2",key:"1l2re6"}],["path",{d:"M21 3v2",key:"1duuac"}],["path",{d:"m19 5-7 7-7-7",key:"133zxf"}]],Hm=e("utility-pole",NX);const bX=[["path",{d:"M13 6v5a1 1 0 0 0 1 1h6.102a1 1 0 0 1 .712.298l.898.91a1 1 0 0 1 .288.702V17a1 1 0 0 1-1 1h-3",key:"k3s650"}],["path",{d:"M5 18H3a1 1 0 0 1-1-1V8a2 2 0 0 1 2-2h12c1.1 0 2.1.8 2.4 1.8l1.176 4.2",key:"fnd93u"}],["path",{d:"M9 18h5",key:"lrx6i"}],["circle",{cx:"16",cy:"18",r:"2",key:"1v4tcr"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],jm=e("van",bX);const $X=[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]],Vm=e("variable",$X);const qX=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}],["path",{d:"m7.9 7.9 2.7 2.7",key:"hpeyl3"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}],["path",{d:"m13.4 10.6 2.7-2.7",key:"264c1n"}],["circle",{cx:"7.5",cy:"16.5",r:".5",fill:"currentColor",key:"nkw3mc"}],["path",{d:"m7.9 16.1 2.7-2.7",key:"p81g5e"}],["circle",{cx:"16.5",cy:"16.5",r:".5",fill:"currentColor",key:"fubopw"}],["path",{d:"m13.4 13.4 2.7 2.7",key:"abhel3"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Pm=e("vault",qX);const zX=[["path",{d:"M19.5 7a24 24 0 0 1 0 10",key:"8n60xe"}],["path",{d:"M4.5 7a24 24 0 0 0 0 10",key:"2lmadr"}],["path",{d:"M7 19.5a24 24 0 0 0 10 0",key:"1q94o2"}],["path",{d:"M7 4.5a24 24 0 0 1 10 0",key:"2z8ypa"}],["rect",{x:"17",y:"17",width:"5",height:"5",rx:"1",key:"1ac74s"}],["rect",{x:"17",y:"2",width:"5",height:"5",rx:"1",key:"1e7h5j"}],["rect",{x:"2",y:"17",width:"5",height:"5",rx:"1",key:"1t4eah"}],["rect",{x:"2",y:"2",width:"5",height:"5",rx:"1",key:"940dhs"}]],Bm=e("vector-square",zX);const SX=[["path",{d:"M16 8q6 0 6-6-6 0-6 6",key:"qsyyc4"}],["path",{d:"M17.41 3.59a10 10 0 1 0 3 3",key:"41m9h7"}],["path",{d:"M2 2a26.6 26.6 0 0 1 10 20c.9-6.82 1.5-9.5 4-14",key:"qiv7li"}]],Fm=e("vegan",SX);const AX=[["path",{d:"M18 11c-1.5 0-2.5.5-3 2",key:"1fod00"}],["path",{d:"M4 6a2 2 0 0 0-2 2v4a5 5 0 0 0 5 5 8 8 0 0 1 5 2 8 8 0 0 1 5-2 5 5 0 0 0 5-5V8a2 2 0 0 0-2-2h-3a8 8 0 0 0-5 2 8 8 0 0 0-5-2z",key:"d70hit"}],["path",{d:"M6 11c1.5 0 2.5.5 3 2",key:"136fht"}]],Dm=e("venetian-mask",AX);const HX=[["path",{d:"M10 20h4",key:"ni2waw"}],["path",{d:"M12 16v6",key:"c8a4gj"}],["path",{d:"M17 2h4v4",key:"vhe59"}],["path",{d:"m21 2-5.46 5.46",key:"19kypf"}],["circle",{cx:"12",cy:"11",r:"5",key:"16gxyc"}]],Rm=e("venus-and-mars",HX);const jX=[["path",{d:"M12 15v7",key:"t2xh3l"}],["path",{d:"M9 19h6",key:"456am0"}],["circle",{cx:"12",cy:"9",r:"6",key:"1nw4tq"}]],Tm=e("venus",jX);const VX=[["path",{d:"m2 8 2 2-2 2 2 2-2 2",key:"sv1b1"}],["path",{d:"m22 8-2 2 2 2-2 2 2 2",key:"101i4y"}],["path",{d:"M8 8v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2",key:"1hbad5"}],["path",{d:"M16 10.34V6c0-.55-.45-1-1-1h-4.34",key:"1x5tf0"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],Um=e("vibrate-off",VX);const PX=[["path",{d:"m2 8 2 2-2 2 2 2-2 2",key:"sv1b1"}],["path",{d:"m22 8-2 2 2 2-2 2 2 2",key:"101i4y"}],["rect",{width:"8",height:"14",x:"8",y:"5",rx:"1",key:"1oyrl4"}]],Om=e("vibrate",PX);const BX=[["path",{d:"M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196",key:"w8jjjt"}],["path",{d:"M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2",key:"1xawa7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Gm=e("video-off",BX);const FX=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],Zm=e("video",FX);const DX=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M2 8h20",key:"d11cs7"}],["circle",{cx:"8",cy:"14",r:"2",key:"1k2qr5"}],["path",{d:"M8 12h8",key:"1wcyev"}],["circle",{cx:"16",cy:"14",r:"2",key:"14k7lr"}]],Wm=e("videotape",DX);const RX=[["path",{d:"M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2",key:"mrq65r"}],["path",{d:"M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2",key:"be3xqs"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]],Em=e("view",RX);const TX=[["path",{d:"M11.1 7.1a16.55 16.55 0 0 1 10.9 4",key:"2880wi"}],["path",{d:"M12 12a12.6 12.6 0 0 1-8.7 5",key:"113sja"}],["path",{d:"M16.8 13.6a16.55 16.55 0 0 1-9 7.5",key:"1qmsgl"}],["path",{d:"M20.7 17a12.8 12.8 0 0 0-8.7-5 13.3 13.3 0 0 1 0-10",key:"1bmeqp"}],["path",{d:"M6.3 3.8a16.55 16.55 0 0 0 1.9 11.5",key:"iekzv9"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Xm=e("volleyball",TX);const UX=[["circle",{cx:"6",cy:"12",r:"4",key:"1ehtga"}],["circle",{cx:"18",cy:"12",r:"4",key:"4vafl8"}],["line",{x1:"6",x2:"18",y1:"16",y2:"16",key:"pmt8us"}]],Km=e("voicemail",UX);const OX=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}]],Qm=e("volume-1",OX);const GX=[["path",{d:"M16 9a5 5 0 0 1 .95 2.293",key:"1fgyg8"}],["path",{d:"M19.364 5.636a9 9 0 0 1 1.889 9.96",key:"l3zxae"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"m7 7-.587.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298V11",key:"1gbwow"}],["path",{d:"M9.828 4.172A.686.686 0 0 1 11 4.657v.686",key:"s2je0y"}]],Jm=e("volume-off",GX);const ZX=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Ym=e("volume-2",ZX);const WX=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],e_=e("volume-x",WX);const EX=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}]],a_=e("volume",EX);const XX=[["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}],["path",{d:"M5 7c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v12H5V7Z",key:"1ezoue"}],["path",{d:"M22 19H2",key:"nuriw5"}]],c_=e("vote",XX);const KX=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2",key:"4125el"}],["path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21",key:"1dpki6"}]],t_=e("wallet-cards",KX);const QX=[["path",{d:"M17 14h.01",key:"7oqj8z"}],["path",{d:"M7 7h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14",key:"u1rqew"}]],_0=e("wallet-minimal",QX);const JX=[["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"}]],o_=e("wallet",JX);const YX=[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["path",{d:"m9 17 6.1-6.1a2 2 0 0 1 2.81.01L22 15",key:"1sl52q"}],["circle",{cx:"8",cy:"9",r:"2",key:"gjzl9d"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]],d_=e("wallpaper",YX);const eK=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],g0=e("wand-sparkles",eK);const aK=[["path",{d:"M15 4V2",key:"z1p9b7"}],["path",{d:"M15 16v-2",key:"px0unx"}],["path",{d:"M8 9h2",key:"1g203m"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M17.8 11.8 19 13",key:"yihg8r"}],["path",{d:"M15 9h.01",key:"x1ddxp"}],["path",{d:"M17.8 6.2 19 5",key:"fd4us0"}],["path",{d:"m3 21 9-9",key:"1jfql5"}],["path",{d:"M12.2 6.2 11 5",key:"i3da3b"}]],n_=e("wand",aK);const cK=[["path",{d:"M18 21V10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v11",key:"pb2vm6"}],["path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 1.132-1.803l7.95-3.974a2 2 0 0 1 1.837 0l7.948 3.974A2 2 0 0 1 22 8z",key:"doq5xv"}],["path",{d:"M6 13h12",key:"yf64js"}],["path",{d:"M6 17h12",key:"1jwigz"}]],h_=e("warehouse",cK);const tK=[["path",{d:"M3 6h3",key:"155dbl"}],["path",{d:"M17 6h.01",key:"e2y6kg"}],["rect",{width:"18",height:"20",x:"3",y:"2",rx:"2",key:"od3kk9"}],["circle",{cx:"12",cy:"13",r:"5",key:"nlbqau"}],["path",{d:"M12 18a2.5 2.5 0 0 0 0-5 2.5 2.5 0 0 1 0-5",key:"17lach"}]],i_=e("washing-machine",tK);const oK=[["path",{d:"M12 10v2.2l1.6 1",key:"n3r21l"}],["path",{d:"m16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05",key:"18k57s"}],["path",{d:"m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05",key:"16ny36"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}]],y_=e("watch",oK);const dK=[["path",{d:"M12 10L12 2",key:"jvb0aw"}],["path",{d:"M16 6L12 10L8 6",key:"9j6vje"}],["path",{d:"M2 15C2.6 15.5 3.2 16 4.5 16C7 16 7 14 9.5 14C12.1 14 11.9 16 14.5 16C17 16 17 14 19.5 14C20.8 14 21.4 14.5 22 15",key:"s2zepw"}],["path",{d:"M2 21C2.6 21.5 3.2 22 4.5 22C7 22 7 20 9.5 20C12.1 20 11.9 22 14.5 22C17 22 17 20 19.5 20C20.8 20 21.4 20.5 22 21",key:"u68omc"}]],r_=e("waves-arrow-down",dK);const nK=[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"M2 15c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1p9f19"}],["path",{d:"M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"vbxynw"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]],k_=e("waves-arrow-up",nK);const hK=[["path",{d:"M19 5a2 2 0 0 0-2 2v11",key:"s41o68"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}],["path",{d:"M7 13h10",key:"1rwob1"}],["path",{d:"M7 9h10",key:"12czzb"}],["path",{d:"M9 5a2 2 0 0 0-2 2v11",key:"x0q4gh"}]],p_=e("waves-ladder",hK);const iK=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],s_=e("waves",iK);const yK=[["circle",{cx:"12",cy:"4.5",r:"2.5",key:"r5ysbb"}],["path",{d:"m10.2 6.3-3.9 3.9",key:"1nzqf6"}],["circle",{cx:"4.5",cy:"12",r:"2.5",key:"jydg6v"}],["path",{d:"M7 12h10",key:"b7w52i"}],["circle",{cx:"19.5",cy:"12",r:"2.5",key:"1piiel"}],["path",{d:"m13.8 17.7 3.9-3.9",key:"1wyg1y"}],["circle",{cx:"12",cy:"19.5",r:"2.5",key:"13o1pw"}]],l_=e("waypoints",yK);const rK=[["circle",{cx:"12",cy:"10",r:"8",key:"1gshiw"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 22h10",key:"10w4w3"}],["path",{d:"M12 22v-4",key:"1utk9m"}]],u_=e("webcam",rK);const kK=[["path",{d:"M17 17h-5c-1.09-.02-1.94.92-2.5 1.9A3 3 0 1 1 2.57 15",key:"1tvl6x"}],["path",{d:"M9 3.4a4 4 0 0 1 6.52.66",key:"q04jfq"}],["path",{d:"m6 17 3.1-5.8a2.5 2.5 0 0 0 .057-2.05",key:"azowf0"}],["path",{d:"M20.3 20.3a4 4 0 0 1-2.3.7",key:"5joiws"}],["path",{d:"M18.6 13a4 4 0 0 1 3.357 3.414",key:"cangb8"}],["path",{d:"m12 6 .6 1",key:"tpjl1n"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],M_=e("webhook-off",kK);const pK=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],v_=e("webhook",pK);const sK=[["path",{d:"M6.5 8a2 2 0 0 0-1.906 1.46L2.1 18.5A2 2 0 0 0 4 21h16a2 2 0 0 0 1.925-2.54L19.4 9.5A2 2 0 0 0 17.48 8z",key:"1wl739"}],["path",{d:"M7.999 15a2.5 2.5 0 0 1 4 0 2.5 2.5 0 0 0 4 0",key:"1egezo"}],["circle",{cx:"12",cy:"5",r:"3",key:"rqqgnr"}]],m_=e("weight-tilde",sK);const lK=[["circle",{cx:"12",cy:"5",r:"3",key:"rqqgnr"}],["path",{d:"M6.5 8a2 2 0 0 0-1.905 1.46L2.1 18.5A2 2 0 0 0 4 21h16a2 2 0 0 0 1.925-2.54L19.4 9.5A2 2 0 0 0 17.48 8Z",key:"56o5sh"}]],__=e("weight",lK);const uK=[["path",{d:"m2 22 10-10",key:"28ilpk"}],["path",{d:"m16 8-1.17 1.17",key:"1qqm82"}],["path",{d:"M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1rdhi6"}],["path",{d:"m8 8-.53.53a3.5 3.5 0 0 0 0 4.94L9 15l1.53-1.53c.55-.55.88-1.25.98-1.97",key:"4wz8re"}],["path",{d:"M10.91 5.26c.15-.26.34-.51.56-.73L13 3l1.53 1.53a3.5 3.5 0 0 1 .28 4.62",key:"rves66"}],["path",{d:"M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z",key:"19rau1"}],["path",{d:"M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"tc8ph9"}],["path",{d:"m16 16-.53.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.49 3.49 0 0 1 1.97-.98",key:"ak46r"}],["path",{d:"M18.74 13.09c.26-.15.51-.34.73-.56L21 11l-1.53-1.53a3.5 3.5 0 0 0-4.62-.28",key:"1tw520"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],g_=e("wheat-off",uK);const MK=[["path",{d:"M2 22 16 8",key:"60hf96"}],["path",{d:"M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1rdhi6"}],["path",{d:"M7.47 8.53 9 7l1.53 1.53a3.5 3.5 0 0 1 0 4.94L9 15l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1sdzmb"}],["path",{d:"M11.47 4.53 13 3l1.53 1.53a3.5 3.5 0 0 1 0 4.94L13 11l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"eoatbi"}],["path",{d:"M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z",key:"19rau1"}],["path",{d:"M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"tc8ph9"}],["path",{d:"M15.47 13.47 17 15l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"2m8kc5"}],["path",{d:"M19.47 9.47 21 11l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L13 11l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"vex3ng"}]],x_=e("wheat",MK);const vK=[["circle",{cx:"7",cy:"12",r:"3",key:"12clwm"}],["path",{d:"M10 9v6",key:"17i7lo"}],["circle",{cx:"17",cy:"12",r:"3",key:"gl7c2s"}],["path",{d:"M14 7v8",key:"dl84cr"}],["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]],L_=e("whole-word",vK);const mK=[["path",{d:"m14.305 19.53.923-.382",key:"3m78fa"}],["path",{d:"m15.228 16.852-.923-.383",key:"npixar"}],["path",{d:"m16.852 15.228-.383-.923",key:"5xggr7"}],["path",{d:"m16.852 20.772-.383.924",key:"dpfhf9"}],["path",{d:"m19.148 15.228.383-.923",key:"1reyyz"}],["path",{d:"m19.53 21.696-.382-.924",key:"1goivc"}],["path",{d:"M2 7.82a15 15 0 0 1 20 0",key:"1ovjuk"}],["path",{d:"m20.772 16.852.924-.383",key:"htqkph"}],["path",{d:"m20.772 19.148.924.383",key:"9w9pjp"}],["path",{d:"M5 11.858a10 10 0 0 1 11.5-1.785",key:"3sn16i"}],["path",{d:"M8.5 15.429a5 5 0 0 1 2.413-1.31",key:"1pxovh"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]],w_=e("wifi-cog",mK);const _K=[["path",{d:"M12 20h.01",key:"zekei9"}],["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"}]],f_=e("wifi-high",_K);const gK=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],I_=e("wifi-low",gK);const xK=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],C_=e("wifi-off",xK);const LK=[["path",{d:"M11.965 10.105v4L13.5 12.5a5 5 0 0 1 8 1.5",key:"1immaq"}],["path",{d:"M11.965 14.105h4",key:"uejny8"}],["path",{d:"M17.965 18.105h4L20.43 19.71a5 5 0 0 1-8-1.5",key:"1i3a7e"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M21.965 22.105v-4",key:"1ku6vx"}],["path",{d:"M5 12.86a10 10 0 0 1 3-2.032",key:"pemdtu"}],["path",{d:"M8.5 16.429h.01",key:"2bm739"}]],N_=e("wifi-sync",LK);const wK=[["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["path",{d:"M5 12.859a10 10 0 0 1 10.5-2.222",key:"rpb7oy"}],["path",{d:"M8.5 16.429a5 5 0 0 1 3-1.406",key:"r8bmzl"}]],b_=e("wifi-pen",wK);const fK=[["path",{d:"M12 20h.01",key:"zekei9"}]],$_=e("wifi-zero",fK);const IK=[["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"}]],q_=e("wifi",IK);const CK=[["path",{d:"M10 2v8",key:"d4bbey"}],["path",{d:"M12.8 21.6A2 2 0 1 0 14 18H2",key:"19kp1d"}],["path",{d:"M17.5 10a2.5 2.5 0 1 1 2 4H2",key:"19kpjc"}],["path",{d:"m6 6 4 4 4-4",key:"k13n16"}]],z_=e("wind-arrow-down",CK);const NK=[["path",{d:"M12.8 19.6A2 2 0 1 0 14 16H2",key:"148xed"}],["path",{d:"M17.5 8a2.5 2.5 0 1 1 2 4H2",key:"1u4tom"}],["path",{d:"M9.8 4.4A2 2 0 1 1 11 8H2",key:"75valh"}]],S_=e("wind",NK);const bK=[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M7 10h3m7 0h-1.343",key:"v48bem"}],["path",{d:"M12 15v7",key:"t2xh3l"}],["path",{d:"M7.307 7.307A12.33 12.33 0 0 0 7 10a5 5 0 0 0 7.391 4.391M8.638 2.981C8.75 2.668 8.872 2.34 9 2h6c1.5 4 2 6 2 8 0 .407-.05.809-.145 1.198",key:"1ymjlu"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],A_=e("wine-off",bK);const $K=[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M12 15v7",key:"t2xh3l"}],["path",{d:"M12 15a5 5 0 0 0 5-5c0-2-.5-4-2-8H9c-1.5 4-2 6-2 8a5 5 0 0 0 5 5Z",key:"10ffi3"}]],H_=e("wine",$K);const qK=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],j_=e("workflow",qK);const zK=[["path",{d:"m19 12-1.5 3",key:"9bcu4o"}],["path",{d:"M19.63 18.81 22 20",key:"121v98"}],["path",{d:"M6.47 8.23a1.68 1.68 0 0 1 2.44 1.93l-.64 2.08a6.76 6.76 0 0 0 10.16 7.67l.42-.27a1 1 0 1 0-2.73-4.21l-.42.27a1.76 1.76 0 0 1-2.63-1.99l.64-2.08A6.66 6.66 0 0 0 3.94 3.9l-.7.4a1 1 0 1 0 2.55 4.34z",key:"1tij6q"}]],V_=e("worm",zK);const SK=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],P_=e("wrench",SK);const AK=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],B_=e("x",AK);const HK=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],F_=e("youtube",HK);const jK=[["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"}]],D_=e("zap",jK);const VK=[["path",{d:"M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317",key:"193nxd"}],["path",{d:"M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773",key:"27a7lr"}],["path",{d:"M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643",key:"1e0qe9"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],R_=e("zap-off",VK);const PK=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],T_=e("zoom-in",PK);const BK=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],U_=e("zoom-out",BK);const FK=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:w0,AArrowUp:f0,ALargeSmall:I0,Accessibility:C0,Activity:N0,AirVent:b0,Airplay:$0,AlarmClock:z0,AlarmClockCheck:l,AlarmClockMinus:u,AlarmClockOff:q0,AlarmClockPlus:M,AlarmSmoke:S0,Album:A0,AlignCenterHorizontal:H0,AlignCenterVertical:j0,AlignEndHorizontal:V0,AlignEndVertical:P0,AlignHorizontalDistributeCenter:B0,AlignHorizontalDistributeEnd:F0,AlignHorizontalDistributeStart:D0,AlignHorizontalJustifyCenter:R0,AlignHorizontalJustifyEnd:T0,AlignHorizontalJustifyStart:U0,AlignHorizontalSpaceAround:O0,AlignHorizontalSpaceBetween:G0,AlignStartHorizontal:Z0,AlignStartVertical:W0,AlignVerticalDistributeCenter:E0,AlignVerticalDistributeEnd:K0,AlignVerticalDistributeStart:X0,AlignVerticalJustifyCenter:Q0,AlignVerticalJustifyEnd:J0,AlignVerticalJustifyStart:Y0,AlignVerticalSpaceAround:ea,AlignVerticalSpaceBetween:ca,Ambulance:aa,Ampersand:ta,Ampersands:oa,Amphora:da,Anchor:na,Angry:ha,Annoyed:ia,Antenna:ya,Anvil:ra,Aperture:ka,AppWindow:sa,AppWindowMac:pa,Apple:la,Archive:va,ArchiveRestore:ua,ArchiveX:Ma,Armchair:ma,ArrowBigDown:_a,ArrowBigDownDash:ga,ArrowBigLeft:La,ArrowBigLeftDash:xa,ArrowBigRight:fa,ArrowBigRightDash:wa,ArrowBigUp:Ca,ArrowBigUpDash:Ia,ArrowDown:Va,ArrowDown01:Na,ArrowDown10:ba,ArrowDownAZ:v,ArrowDownFromLine:$a,ArrowDownLeft:za,ArrowDownNarrowWide:qa,ArrowDownRight:Sa,ArrowDownToDot:Aa,ArrowDownToLine:Ha,ArrowDownUp:ja,ArrowDownWideNarrow:m,ArrowDownZA:_,ArrowLeft:Da,ArrowLeftFromLine:Pa,ArrowLeftRight:Ba,ArrowLeftToLine:Fa,ArrowRight:Oa,ArrowRightFromLine:Ra,ArrowRightLeft:Ta,ArrowRightToLine:Ua,ArrowUp:ec,ArrowUp01:Ga,ArrowUp10:Za,ArrowUpAZ:g,ArrowUpDown:Wa,ArrowUpFromDot:Ea,ArrowUpFromLine:Xa,ArrowUpLeft:Ka,ArrowUpNarrowWide:x,ArrowUpRight:Qa,ArrowUpToLine:Ja,ArrowUpWideNarrow:Ya,ArrowUpZA:L,ArrowsUpFromLine:ac,Asterisk:cc,AtSign:tc,Atom:oc,AudioLines:dc,AudioWaveform:nc,Award:hc,Axe:ic,Axis3d:w,Baby:rc,Backpack:yc,Badge:Cc,BadgeAlert:kc,BadgeCent:pc,BadgeCheck:f,BadgeDollarSign:sc,BadgeEuro:lc,BadgeIndianRupee:uc,BadgeInfo:Mc,BadgeJapaneseYen:vc,BadgeMinus:mc,BadgePercent:_c,BadgePlus:gc,BadgePoundSterling:xc,BadgeQuestionMark:I,BadgeRussianRuble:Lc,BadgeSwissFranc:wc,BadgeTurkishLira:fc,BadgeX:Ic,BaggageClaim:Nc,Ban:bc,Banana:$c,Bandage:qc,Banknote:Hc,BanknoteArrowDown:zc,BanknoteArrowUp:Sc,BanknoteX:Ac,Barcode:jc,Barrel:Vc,Baseline:Pc,Bath:Bc,Battery:Gc,BatteryCharging:Fc,BatteryFull:Dc,BatteryLow:Rc,BatteryMedium:Uc,BatteryPlus:Tc,BatteryWarning:Oc,Beaker:Wc,Bean:Ec,BeanOff:Zc,Bed:Qc,BedDouble:Xc,BedSingle:Kc,Beef:Jc,Beer:et,BeerOff:Yc,Bell:ht,BellDot:at,BellElectric:ct,BellMinus:tt,BellOff:ot,BellPlus:dt,BellRing:nt,BetweenHorizontalEnd:C,BetweenHorizontalStart:N,BetweenVerticalEnd:it,BetweenVerticalStart:rt,BicepsFlexed:yt,Bike:kt,Binary:pt,Binoculars:st,Biohazard:lt,Bird:ut,Birdhouse:Mt,Bitcoin:vt,Blend:mt,Blinds:_t,Blocks:gt,Bluetooth:ft,BluetoothConnected:xt,BluetoothOff:Lt,BluetoothSearching:wt,Bold:It,Bolt:Ct,Bomb:Nt,Bone:bt,Book:Yt,BookA:$t,BookAlert:qt,BookAudio:At,BookCheck:zt,BookCopy:St,BookDashed:b,BookDown:Ht,BookHeadphones:jt,BookHeart:Vt,BookImage:Pt,BookKey:Bt,BookLock:Ft,BookMarked:Dt,BookMinus:Tt,BookOpen:Ot,BookOpenCheck:Rt,BookOpenText:Ut,BookPlus:Gt,BookSearch:Zt,BookText:Wt,BookType:Et,BookUp:Kt,BookUp2:Xt,BookUser:Qt,BookX:Jt,Bookmark:oo,BookmarkCheck:eo,BookmarkMinus:ao,BookmarkPlus:co,BookmarkX:to,BoomBox:no,Bot:yo,BotMessageSquare:ho,BotOff:io,BottleWine:ro,BowArrow:ko,Box:po,Boxes:so,Braces:$,Brackets:lo,Brain:vo,BrainCircuit:uo,BrainCog:Mo,BrickWall:go,BrickWallFire:mo,BrickWallShield:_o,Briefcase:wo,BriefcaseBusiness:xo,BriefcaseConveyorBelt:Lo,BriefcaseMedical:fo,BringToFront:Io,Brush:No,BrushCleaning:Co,Bubbles:bo,Bug:Ao,BugOff:$o,BugPlay:qo,Building:So,Building2:zo,Bus:jo,BusFront:Ho,Cable:Po,CableCar:Vo,Cake:Fo,CakeSlice:Bo,Calculator:Do,Calendar:hd,Calendar1:Ro,CalendarArrowDown:To,CalendarArrowUp:Uo,CalendarCheck:Go,CalendarCheck2:Oo,CalendarClock:Zo,CalendarCog:Wo,CalendarDays:Eo,CalendarFold:Xo,CalendarHeart:Ko,CalendarMinus:Yo,CalendarMinus2:Qo,CalendarOff:Jo,CalendarPlus:ad,CalendarPlus2:ed,CalendarRange:cd,CalendarSearch:td,CalendarSync:od,CalendarX:nd,CalendarX2:dd,Calendars:id,Camera:rd,CameraOff:yd,Candy:sd,CandyCane:kd,CandyOff:pd,Cannabis:ld,Captions:q,CaptionsOff:ud,Car:md,CarFront:Md,CarTaxiFront:vd,Caravan:_d,CardSim:gd,Carrot:xd,CaseLower:Ld,CaseSensitive:wd,CaseUpper:fd,CassetteTape:Id,Cast:Cd,Castle:Nd,Cat:bd,Cctv:$d,ChartArea:z,ChartBar:A,ChartBarBig:S,ChartBarDecreasing:qd,ChartBarIncreasing:Sd,ChartBarStacked:zd,ChartCandlestick:H,ChartColumn:P,ChartColumnBig:j,ChartColumnDecreasing:Ad,ChartColumnIncreasing:V,ChartColumnStacked:Hd,ChartGantt:jd,ChartLine:B,ChartNetwork:Vd,ChartNoAxesColumn:D,ChartNoAxesColumnDecreasing:Pd,ChartNoAxesColumnIncreasing:F,ChartNoAxesCombined:Bd,ChartNoAxesGantt:R,ChartPie:T,ChartScatter:U,ChartSpline:Fd,Check:Td,CheckCheck:Dd,CheckLine:Rd,ChefHat:Ud,Cherry:Od,ChessBishop:Gd,ChessKing:Zd,ChessKnight:Wd,ChessPawn:Ed,ChessQueen:Xd,ChessRook:Kd,ChevronDown:Qd,ChevronFirst:Jd,ChevronLast:Yd,ChevronLeft:en,ChevronRight:an,ChevronUp:cn,ChevronsDown:on,ChevronsDownUp:tn,ChevronsLeft:hn,ChevronsLeftRight:nn,ChevronsLeftRightEllipsis:dn,ChevronsRight:rn,ChevronsRightLeft:yn,ChevronsUp:pn,ChevronsUpDown:kn,Chromium:O,Church:sn,Cigarette:un,CigaretteOff:ln,Circle:$n,CircleAlert:G,CircleArrowDown:Z,CircleArrowLeft:W,CircleArrowOutDownLeft:X,CircleArrowOutDownRight:E,CircleArrowOutUpLeft:K,CircleArrowOutUpRight:Q,CircleArrowRight:J,CircleArrowUp:Y,CircleCheck:a1,CircleCheckBig:e1,CircleChevronDown:c1,CircleChevronLeft:t1,CircleChevronRight:o1,CircleChevronUp:d1,CircleDashed:Mn,CircleDivide:n1,CircleDollarSign:vn,CircleDot:_n,CircleDotDashed:mn,CircleEllipsis:gn,CircleEqual:xn,CircleFadingArrowUp:Ln,CircleFadingPlus:wn,CircleGauge:h1,CircleMinus:i1,CircleOff:fn,CircleParking:r1,CircleParkingOff:y1,CirclePause:k1,CirclePercent:p1,CirclePlay:s1,CirclePlus:l1,CirclePoundSterling:In,CirclePower:u1,CircleQuestionMark:o,CircleSlash:Cn,CircleSlash2:M1,CircleSmall:Nn,CircleStar:bn,CircleStop:v1,CircleUser:_1,CircleUserRound:m1,CircleX:g1,CircuitBoard:qn,Citrus:zn,Clapperboard:Sn,Clipboard:Tn,ClipboardCheck:An,ClipboardClock:Hn,ClipboardCopy:jn,ClipboardList:Vn,ClipboardMinus:Pn,ClipboardPaste:Bn,ClipboardPen:L1,ClipboardPenLine:x1,ClipboardPlus:Fn,ClipboardType:Dn,ClipboardX:Rn,Clock:hh,Clock1:Un,Clock10:Gn,Clock11:On,Clock12:Zn,Clock2:Wn,Clock3:En,Clock4:Xn,Clock5:Qn,Clock6:Kn,Clock7:Jn,Clock8:Yn,Clock9:eh,ClockAlert:ah,ClockArrowDown:ch,ClockArrowUp:oh,ClockCheck:th,ClockFading:dh,ClockPlus:nh,ClosedCaption:ih,Cloud:fh,CloudAlert:yh,CloudCheck:rh,CloudCog:kh,CloudDownload:w1,CloudDrizzle:ph,CloudFog:sh,CloudHail:lh,CloudLightning:uh,CloudMoon:vh,CloudMoonRain:Mh,CloudOff:mh,CloudRain:gh,CloudRainWind:_h,CloudSnow:xh,CloudSun:wh,CloudSunRain:Lh,CloudUpload:f1,Cloudy:Ih,Clover:Ch,Club:Nh,Code:bh,CodeXml:I1,Codepen:$h,Codesandbox:qh,Coffee:zh,Cog:Sh,Coins:Ah,Columns2:C1,Columns3:N1,Columns3Cog:d,Columns4:Hh,Combine:jh,Command:Vh,Compass:Ph,Component:Bh,Computer:Fh,ConciergeBell:Dh,Cone:Rh,Construction:Th,Contact:Uh,ContactRound:b1,Container:Oh,Contrast:Gh,Cookie:Zh,CookingPot:Wh,Copy:Yh,CopyCheck:Eh,CopyMinus:Xh,CopyPlus:Kh,CopySlash:Qh,CopyX:Jh,Copyleft:ei,Copyright:ai,CornerDownLeft:ci,CornerDownRight:ti,CornerLeftDown:oi,CornerLeftUp:di,CornerRightDown:ni,CornerRightUp:hi,CornerUpLeft:ii,CornerUpRight:yi,Cpu:ri,CreativeCommons:ki,CreditCard:pi,Croissant:si,Crop:li,Cross:ui,Crosshair:Mi,Crown:vi,Cuboid:mi,CupSoda:_i,Currency:gi,Cylinder:xi,Dam:Li,Database:Ii,DatabaseBackup:wi,DatabaseZap:fi,DecimalsArrowLeft:Ci,DecimalsArrowRight:Ni,Delete:bi,Dessert:$i,Diameter:qi,Diamond:Ai,DiamondMinus:zi,DiamondPercent:$1,DiamondPlus:Si,Dice1:Hi,Dice2:ji,Dice3:Vi,Dice4:Pi,Dice5:Bi,Dice6:Fi,Dices:Di,Diff:Ri,Disc:Gi,Disc2:Ti,Disc3:Oi,DiscAlbum:Ui,Divide:Zi,Dna:Ei,DnaOff:Wi,Dock:Xi,Dog:Ki,DollarSign:Qi,Donut:Ji,DoorClosed:ey,DoorClosedLocked:Yi,DoorOpen:ay,Dot:cy,Download:ty,DraftingCompass:dy,Drama:oy,Dribbble:ny,Drill:hy,Drone:iy,Droplet:ry,DropletOff:yy,Droplets:ky,Drum:ly,Drumstick:py,Dumbbell:sy,Ear:My,EarOff:uy,Earth:q1,EarthLock:vy,Eclipse:my,Egg:xy,EggFried:_y,EggOff:gy,Ellipsis:S1,EllipsisVertical:z1,Equal:fy,EqualApproximately:Ly,EqualNot:wy,Eraser:Iy,EthernetPort:Cy,Euro:Ny,EvCharger:by,Expand:$y,ExternalLink:qy,Eye:Ay,EyeClosed:zy,EyeOff:Sy,Facebook:Hy,Factory:jy,Fan:Vy,FastForward:By,Feather:Py,Fence:Fy,FerrisWheel:Dy,Figma:Ry,File:M4,FileArchive:Ty,FileAxis3d:A1,FileBadge:H1,FileBox:Uy,FileBraces:V1,FileBracesCorner:j1,FileChartColumn:B1,FileChartColumnIncreasing:P1,FileChartLine:F1,FileChartPie:D1,FileCheck:Oy,FileCheckCorner:R1,FileClock:Gy,FileCode:Zy,FileCodeCorner:T1,FileCog:U1,FileDiff:Wy,FileDigit:Ey,FileDown:Xy,FileExclamationPoint:O1,FileHeadphone:n,FileHeart:Ky,FileImage:Qy,FileInput:Jy,FileKey:G1,FileLock:Z1,FileMinus:Yy,FileMinusCorner:W1,FileMusic:e4,FileOutput:a4,FilePen:X1,FilePenLine:E1,FilePlay:K1,FilePlus:c4,FilePlusCorner:Q1,FileQuestionMark:J1,FileScan:t4,FileSearch:o4,FileSearchCorner:Y1,FileSignal:e2,FileSliders:d4,FileSpreadsheet:i4,FileStack:n4,FileSymlink:h4,FileTerminal:y4,FileText:r4,FileType:k4,FileTypeCorner:a2,FileUp:p4,FileUser:s4,FileVideoCamera:c2,FileVolume:l4,FileX:u4,FileXCorner:t2,Files:v4,Film:m4,FingerprintPattern:o2,FireExtinguisher:_4,Fish:L4,FishOff:g4,FishSymbol:x4,Flag:C4,FlagOff:w4,FlagTriangleLeft:f4,FlagTriangleRight:I4,Flame:b4,FlameKindling:N4,Flashlight:q4,FlashlightOff:$4,FlaskConical:S4,FlaskConicalOff:z4,FlaskRound:A4,FlipHorizontal:H4,FlipHorizontal2:j4,FlipVertical:P4,FlipVertical2:V4,Flower:F4,Flower2:B4,Focus:D4,FoldHorizontal:R4,FoldVertical:T4,Folder:M5,FolderArchive:U4,FolderCheck:O4,FolderClock:Z4,FolderClosed:G4,FolderCode:W4,FolderCog:d2,FolderDot:E4,FolderDown:X4,FolderGit:Q4,FolderGit2:K4,FolderHeart:J4,FolderInput:Y4,FolderKanban:e5,FolderKey:a5,FolderLock:c5,FolderMinus:t5,FolderOpen:d5,FolderOpenDot:o5,FolderOutput:n5,FolderPen:n2,FolderPlus:h5,FolderRoot:i5,FolderSearch:r5,FolderSearch2:y5,FolderSymlink:k5,FolderSync:p5,FolderTree:s5,FolderUp:l5,FolderX:u5,Folders:v5,Footprints:m5,Forklift:_5,Form:g5,Forward:x5,Frame:L5,Framer:w5,Frown:f5,Fuel:I5,Fullscreen:C5,Funnel:i2,FunnelPlus:N5,FunnelX:h2,GalleryHorizontal:$5,GalleryHorizontalEnd:b5,GalleryThumbnails:q5,GalleryVertical:S5,GalleryVerticalEnd:z5,Gamepad:j5,Gamepad2:A5,GamepadDirectional:H5,Gauge:V5,Gavel:P5,Gem:B5,GeorgianLari:F5,Ghost:D5,Gift:T5,GitBranch:O5,GitBranchMinus:R5,GitBranchPlus:U5,GitCommitHorizontal:y2,GitCommitVertical:G5,GitCompare:W5,GitCompareArrows:Z5,GitFork:X5,GitGraph:E5,GitMerge:Q5,GitPullRequest:cr,GitPullRequestArrow:K5,GitPullRequestClosed:J5,GitPullRequestCreate:Y5,GitPullRequestCreateArrow:er,GitPullRequestDraft:ar,Github:tr,Gitlab:or,GlassWater:dr,Glasses:nr,Globe:ir,GlobeLock:hr,Goal:yr,Gpu:rr,GraduationCap:kr,Grape:pr,Grid2x2:s2,Grid2x2Check:r2,Grid2x2Plus:k2,Grid2x2X:p2,Grid3x2:sr,Grid3x3:h,Grip:Mr,GripHorizontal:lr,GripVertical:ur,Group:vr,Guitar:_r,Ham:mr,Hamburger:gr,Hammer:xr,Hand:Nr,HandCoins:Lr,HandFist:wr,HandGrab:l2,HandHeart:fr,HandHelping:u2,HandMetal:Ir,HandPlatter:Cr,Handbag:br,Handshake:$r,HardDrive:Sr,HardDriveDownload:qr,HardDriveUpload:zr,HardHat:Ar,Hash:Hr,HatGlasses:jr,Haze:Vr,HdmiPort:Pr,Heading:Or,Heading1:Br,Heading2:Fr,Heading3:Dr,Heading4:Rr,Heading5:Tr,Heading6:Ur,HeadphoneOff:Gr,Headphones:Zr,Headset:Wr,Heart:ek,HeartCrack:Er,HeartHandshake:Xr,HeartMinus:Kr,HeartOff:Qr,HeartPlus:Jr,HeartPulse:Yr,Heater:ak,Helicopter:ck,Hexagon:tk,Highlighter:ok,History:dk,Hop:hk,HopOff:nk,Hospital:ik,Hotel:yk,Hourglass:rk,House:M2,HouseHeart:kk,HousePlug:pk,HousePlus:sk,HouseWifi:lk,IceCreamBowl:v2,IceCreamCone:m2,IdCard:Mk,IdCardLanyard:uk,Image:fk,ImageDown:vk,ImageMinus:mk,ImageOff:_k,ImagePlay:gk,ImagePlus:xk,ImageUp:Lk,ImageUpscale:wk,Images:Ik,Import:Ck,Inbox:Nk,IndianRupee:bk,Infinity:qk,Info:$k,InspectionPanel:zk,Instagram:Sk,Italic:Ak,IterationCcw:Hk,IterationCw:jk,JapaneseYen:Vk,Joystick:Pk,Kanban:Fk,Kayak:Bk,Key:Tk,KeyRound:Dk,KeySquare:Rk,Keyboard:Gk,KeyboardMusic:Uk,KeyboardOff:Ok,Lamp:Qk,LampCeiling:Zk,LampDesk:Wk,LampFloor:Ek,LampWallDown:Xk,LampWallUp:Kk,LandPlot:Jk,Landmark:Yk,Languages:ep,Laptop:cp,LaptopMinimal:_2,LaptopMinimalCheck:ap,Lasso:op,LassoSelect:tp,Laugh:dp,Layers:g2,Layers2:np,LayoutDashboard:hp,LayoutGrid:ip,LayoutList:yp,LayoutPanelLeft:rp,LayoutPanelTop:kp,LayoutTemplate:pp,Leaf:sp,LeafyGreen:lp,Lectern:up,Library:vp,LibraryBig:Mp,LifeBuoy:gp,Ligature:mp,Lightbulb:xp,LightbulbOff:_p,LineSquiggle:Lp,Link:Ip,Link2:fp,Link2Off:wp,Linkedin:Cp,List:Gp,ListCheck:Np,ListChecks:bp,ListChevronsDownUp:$p,ListChevronsUpDown:qp,ListCollapse:zp,ListEnd:Sp,ListFilter:Hp,ListFilterPlus:Ap,ListIndentDecrease:i,ListIndentIncrease:y,ListMinus:jp,ListMusic:Vp,ListOrdered:Pp,ListPlus:Bp,ListRestart:Fp,ListStart:Dp,ListTodo:Tp,ListTree:Rp,ListVideo:Up,ListX:Op,Loader:Ep,LoaderCircle:x2,LoaderPinwheel:Zp,Locate:Kp,LocateFixed:Wp,LocateOff:Xp,Lock:Jp,LockKeyhole:Qp,LockKeyholeOpen:L2,LockOpen:w2,LogIn:Yp,LogOut:e3,Logs:a3,Lollipop:c3,Luggage:o3,Magnet:t3,Mail:p3,MailCheck:d3,MailMinus:h3,MailOpen:n3,MailPlus:i3,MailQuestionMark:f2,MailSearch:y3,MailWarning:r3,MailX:k3,Mailbox:s3,Mails:l3,Map:q3,MapMinus:u3,MapPin:C3,MapPinCheck:M3,MapPinCheckInside:m3,MapPinHouse:v3,MapPinMinus:g3,MapPinMinusInside:_3,MapPinOff:x3,MapPinPen:I2,MapPinPlus:w3,MapPinPlusInside:L3,MapPinX:I3,MapPinXInside:f3,MapPinned:N3,MapPlus:b3,Mars:z3,MarsStroke:$3,Martini:A3,Maximize:H3,Maximize2:S3,Medal:j3,Megaphone:V3,MegaphoneOff:P3,Meh:B3,MemoryStick:F3,Menu:D3,Merge:R3,MessageCircle:Q3,MessageCircleCode:T3,MessageCircleDashed:U3,MessageCircleHeart:O3,MessageCircleMore:G3,MessageCircleOff:Z3,MessageCirclePlus:W3,MessageCircleQuestionMark:C2,MessageCircleReply:E3,MessageCircleWarning:X3,MessageCircleX:K3,MessageSquare:ss,MessageSquareCode:J3,MessageSquareDashed:Y3,MessageSquareDiff:es,MessageSquareDot:as,MessageSquareHeart:cs,MessageSquareLock:ts,MessageSquareMore:ds,MessageSquareOff:os,MessageSquarePlus:ns,MessageSquareQuote:hs,MessageSquareReply:is,MessageSquareShare:rs,MessageSquareText:ys,MessageSquareWarning:ks,MessageSquareX:ps,MessagesSquare:ls,Mic:Ms,MicOff:us,MicVocal:N2,Microchip:vs,Microscope:ms,Microwave:_s,Milestone:gs,Milk:Ls,MilkOff:xs,Minimize:fs,Minimize2:ws,Minus:Is,Monitor:Fs,MonitorCheck:Cs,MonitorCloud:Ns,MonitorCog:bs,MonitorDot:$s,MonitorDown:qs,MonitorOff:zs,MonitorPause:Ss,MonitorPlay:As,MonitorSmartphone:Hs,MonitorSpeaker:js,MonitorStop:Vs,MonitorUp:Ps,MonitorX:Bs,Moon:Rs,MoonStar:Ds,Motorbike:Ts,Mountain:Us,MountainSnow:Gs,Mouse:Qs,MouseOff:Os,MousePointer:Ks,MousePointer2:Ws,MousePointer2Off:Zs,MousePointerBan:Xs,MousePointerClick:Es,Move:r8,Move3d:b2,MoveDiagonal:Ys,MoveDiagonal2:Js,MoveDown:c8,MoveDownLeft:e8,MoveDownRight:a8,MoveHorizontal:t8,MoveLeft:o8,MoveRight:d8,MoveUp:i8,MoveUpLeft:n8,MoveUpRight:h8,MoveVertical:y8,Music:s8,Music2:k8,Music3:p8,Music4:l8,Navigation:m8,Navigation2:M8,Navigation2Off:u8,NavigationOff:v8,Network:_8,Newspaper:g8,Nfc:x8,NonBinary:L8,Notebook:C8,NotebookPen:w8,NotebookTabs:f8,NotebookText:I8,NotepadText:b8,NotepadTextDashed:N8,Nut:q8,NutOff:$8,Octagon:S8,OctagonAlert:$2,OctagonMinus:z8,OctagonPause:q2,OctagonX:z2,Omega:A8,Option:H8,Orbit:j8,Origami:V8,Package:O8,Package2:P8,PackageCheck:B8,PackageMinus:F8,PackageOpen:D8,PackagePlus:R8,PackageSearch:T8,PackageX:U8,PaintBucket:G8,PaintRoller:Z8,Paintbrush:W8,PaintbrushVertical:S2,Palette:E8,Panda:X8,PanelBottom:J8,PanelBottomClose:K8,PanelBottomDashed:A2,PanelBottomOpen:Q8,PanelLeft:P2,PanelLeftClose:H2,PanelLeftDashed:j2,PanelLeftOpen:V2,PanelLeftRightDashed:Y8,PanelRight:c6,PanelRightClose:e6,PanelRightDashed:B2,PanelRightOpen:a6,PanelTop:h6,PanelTopBottomDashed:t6,PanelTopClose:o6,PanelTopDashed:F2,PanelTopOpen:d6,PanelsLeftBottom:n6,PanelsRightBottom:i6,PanelsTopLeft:D2,Paperclip:y6,Parentheses:r6,ParkingMeter:k6,PartyPopper:p6,Pause:s6,PawPrint:l6,PcCase:u6,Pen:T2,PenLine:R2,PenOff:M6,PenTool:v6,Pencil:x6,PencilLine:m6,PencilOff:g6,PencilRuler:_6,Pentagon:L6,Percent:w6,PersonStanding:f6,PhilippinePeso:I6,Phone:S6,PhoneCall:b6,PhoneForwarded:C6,PhoneIncoming:N6,PhoneMissed:$6,PhoneOff:q6,PhoneOutgoing:z6,Pi:A6,Piano:H6,Pickaxe:j6,PictureInPicture:P6,PictureInPicture2:V6,PiggyBank:B6,Pilcrow:D6,PilcrowLeft:F6,PilcrowRight:R6,Pill:U6,PillBottle:T6,Pin:G6,PinOff:O6,Pipette:Z6,Pizza:W6,Plane:Q6,PlaneLanding:E6,PlaneTakeoff:X6,Play:K6,Plug:Y6,Plug2:J6,PlugZap:U2,Plus:el,Pocket:cl,PocketKnife:al,Podcast:tl,Pointer:dl,PointerOff:ol,Popcorn:nl,Popsicle:hl,PoundSterling:il,Power:rl,PowerOff:yl,Presentation:kl,Printer:sl,PrinterCheck:pl,Projector:ll,Proportions:ul,Puzzle:Ml,Pyramid:vl,QrCode:ml,Quote:_l,Rabbit:gl,Radar:xl,Radiation:Ll,Radical:wl,Radio:Cl,RadioReceiver:fl,RadioTower:Il,Radius:Nl,RailSymbol:bl,Rainbow:$l,Rat:ql,Ratio:zl,Receipt:Dl,ReceiptCent:Sl,ReceiptEuro:Al,ReceiptIndianRupee:Hl,ReceiptJapaneseYen:Vl,ReceiptPoundSterling:jl,ReceiptRussianRuble:Pl,ReceiptSwissFranc:Bl,ReceiptText:Fl,ReceiptTurkishLira:Rl,RectangleCircle:Tl,RectangleEllipsis:O2,RectangleGoggles:Ul,RectangleHorizontal:Gl,RectangleVertical:Ol,Recycle:Zl,Redo:Xl,Redo2:Wl,RedoDot:El,RefreshCcw:Ql,RefreshCcwDot:Kl,RefreshCw:Yl,RefreshCwOff:Jl,Refrigerator:e7,Regex:a7,RemoveFormatting:c7,Repeat:d7,Repeat1:t7,Repeat2:o7,Replace:h7,ReplaceAll:n7,Reply:y7,ReplyAll:i7,Rewind:r7,Ribbon:k7,Rocket:p7,RockingChair:s7,RollerCoaster:u7,Rose:l7,Rotate3d:G2,RotateCcw:m7,RotateCcwKey:M7,RotateCcwSquare:v7,RotateCw:x7,RotateCwSquare:_7,Route:L7,RouteOff:g7,Router:w7,Rows2:Z2,Rows3:W2,Rows4:f7,Rss:I7,Ruler:C7,RulerDimensionLine:N7,RussianRuble:b7,Sailboat:$7,Salad:q7,Sandwich:z7,Satellite:A7,SatelliteDish:S7,SaudiRiyal:H7,Save:P7,SaveAll:V7,SaveOff:j7,Scale:B7,Scale3d:E2,Scaling:F7,Scan:E7,ScanBarcode:D7,ScanEye:R7,ScanFace:T7,ScanHeart:U7,ScanLine:O7,ScanQrCode:G7,ScanSearch:Z7,ScanText:W7,School:X7,Scissors:Q7,ScissorsLineDashed:K7,Scooter:J7,ScreenShare:e9,ScreenShareOff:Y7,Scroll:c9,ScrollText:a9,Search:h9,SearchCheck:t9,SearchCode:o9,SearchSlash:d9,SearchX:n9,Section:i9,Send:r9,SendHorizontal:X2,SendToBack:y9,SeparatorHorizontal:k9,SeparatorVertical:p9,Server:M9,ServerCog:s9,ServerCrash:l9,ServerOff:u9,Settings:m9,Settings2:v9,Shapes:_9,Share:x9,Share2:g9,Sheet:L9,Shell:w9,Shield:A9,ShieldAlert:f9,ShieldBan:I9,ShieldCheck:C9,ShieldEllipsis:N9,ShieldHalf:b9,ShieldMinus:$9,ShieldOff:q9,ShieldPlus:z9,ShieldQuestionMark:K2,ShieldUser:S9,ShieldX:Q2,Ship:j9,ShipWheel:H9,Shirt:V9,ShoppingBag:P9,ShoppingBasket:B9,ShoppingCart:F9,Shovel:D9,ShowerHead:T9,Shredder:R9,Shrimp:U9,Shrink:O9,Shrub:G9,Shuffle:Z9,Sigma:W9,Signal:J9,SignalHigh:E9,SignalLow:X9,SignalMedium:K9,SignalZero:Q9,Signature:Y9,Signpost:au,SignpostBig:eu,Siren:cu,SkipBack:tu,SkipForward:ou,Skull:du,Slack:nu,Slash:hu,Slice:iu,SlidersHorizontal:yu,SlidersVertical:J2,Smartphone:pu,SmartphoneCharging:ru,SmartphoneNfc:ku,Smile:lu,SmilePlus:su,Snail:vu,Snowflake:uu,SoapDispenserDroplet:Mu,Sofa:mu,SolarPanel:_u,Soup:gu,Space:xu,Spade:Lu,Sparkle:wu,Sparkles:Y2,Speaker:fu,Speech:Iu,SpellCheck:Nu,SpellCheck2:Cu,Spline:$u,SplinePointer:bu,Split:qu,Spool:zu,Spotlight:Su,SprayCan:Au,Sprout:Hu,Square:Gu,SquareActivity:ce,SquareArrowDown:te,SquareArrowDownLeft:ee,SquareArrowDownRight:ae,SquareArrowLeft:oe,SquareArrowOutDownLeft:de,SquareArrowOutDownRight:ne,SquareArrowOutUpLeft:he,SquareArrowOutUpRight:ie,SquareArrowRight:ye,SquareArrowUp:pe,SquareArrowUpLeft:re,SquareArrowUpRight:ke,SquareAsterisk:se,SquareBottomDashedScissors:le,SquareChartGantt:r,SquareCheck:Me,SquareCheckBig:ue,SquareChevronDown:ve,SquareChevronLeft:me,SquareChevronRight:_e,SquareChevronUp:ge,SquareCode:xe,SquareDashed:fe,SquareDashedBottom:Vu,SquareDashedBottomCode:ju,SquareDashedKanban:Le,SquareDashedMousePointer:we,SquareDashedTopSolid:Pu,SquareDivide:Ie,SquareDot:Ce,SquareEqual:be,SquareFunction:Ne,SquareKanban:$e,SquareLibrary:qe,SquareM:ze,SquareMenu:Se,SquareMinus:Ae,SquareMousePointer:He,SquareParking:Ve,SquareParkingOff:je,SquarePause:Bu,SquarePen:t,SquarePercent:Be,SquarePi:Pe,SquarePilcrow:Fe,SquarePlay:De,SquarePlus:Re,SquarePower:Te,SquareRadical:Fu,SquareRoundCorner:Du,SquareScissors:Ue,SquareSigma:Oe,SquareSlash:Ge,SquareSplitHorizontal:Ze,SquareSplitVertical:We,SquareSquare:Ru,SquareStack:Tu,SquareStar:Uu,SquareStop:Ou,SquareTerminal:Ee,SquareUser:Ke,SquareUserRound:Xe,SquareX:Qe,SquaresExclude:Zu,SquaresIntersect:Wu,SquaresSubtract:Eu,SquaresUnite:Xu,Squircle:Qu,SquircleDashed:Ku,Squirrel:Ju,Stamp:Yu,Star:cM,StarHalf:eM,StarOff:aM,StepBack:tM,StepForward:oM,Stethoscope:dM,Sticker:nM,StickyNote:hM,Store:iM,StretchHorizontal:yM,StretchVertical:rM,Strikethrough:kM,Subscript:pM,Sun:vM,SunDim:sM,SunMedium:lM,SunMoon:uM,SunSnow:MM,Sunrise:mM,Sunset:_M,Superscript:gM,SwatchBook:xM,SwissFranc:LM,SwitchCamera:wM,Sword:fM,Swords:IM,Syringe:CM,Table:HM,Table2:NM,TableCellsMerge:bM,TableCellsSplit:$M,TableColumnsSplit:qM,TableOfContents:zM,TableProperties:SM,TableRowsSplit:AM,Tablet:VM,TabletSmartphone:jM,Tablets:PM,Tag:BM,Tags:FM,Tally1:DM,Tally2:RM,Tally3:TM,Tally4:UM,Tally5:OM,Tangent:GM,Target:ZM,Telescope:WM,Tent:XM,TentTree:EM,Terminal:KM,TestTube:QM,TestTubeDiagonal:Je,TestTubes:JM,TextAlignCenter:Ye,TextAlignEnd:e0,TextAlignJustify:a0,TextAlignStart:k,TextCursor:ev,TextCursorInput:YM,TextInitial:c0,TextQuote:av,TextSearch:cv,TextSelect:t0,TextWrap:o0,Theater:tv,Thermometer:nv,ThermometerSnowflake:ov,ThermometerSun:dv,ThumbsDown:hv,ThumbsUp:iv,Ticket:uv,TicketCheck:yv,TicketMinus:rv,TicketPercent:kv,TicketPlus:pv,TicketSlash:sv,TicketX:lv,Tickets:vv,TicketsPlane:Mv,Timer:gv,TimerOff:mv,TimerReset:_v,ToggleLeft:xv,ToggleRight:Lv,Toilet:wv,ToolCase:fv,Tornado:Iv,Torus:Cv,Touchpad:bv,TouchpadOff:Nv,TowerControl:$v,ToyBrick:qv,Tractor:zv,TrafficCone:Sv,TrainFront:Hv,TrainFrontTunnel:Av,TrainTrack:jv,TramFront:d0,Transgender:Vv,Trash:Bv,Trash2:Pv,TreeDeciduous:Fv,TreePalm:n0,TreePine:Rv,Trees:Dv,Trello:Tv,TrendingDown:Uv,TrendingUp:Gv,TrendingUpDown:Ov,Triangle:Ev,TriangleAlert:h0,TriangleDashed:Zv,TriangleRight:Wv,Trophy:Xv,Truck:Kv,TruckElectric:Qv,TurkishLira:Jv,Turntable:Yv,Turtle:em,Tv:cm,TvMinimal:i0,TvMinimalPlay:am,Twitch:tm,Twitter:om,Type:nm,TypeOutline:dm,Umbrella:im,UmbrellaOff:hm,Underline:ym,Undo:km,Undo2:rm,UndoDot:sm,UnfoldHorizontal:pm,UnfoldVertical:lm,Ungroup:um,University:y0,Unlink:vm,Unlink2:Mm,Unplug:mm,Upload:_m,Usb:gm,User:Sm,UserCheck:xm,UserCog:Lm,UserLock:wm,UserMinus:fm,UserPen:Im,UserPlus:Cm,UserRound:u0,UserRoundCheck:r0,UserRoundCog:k0,UserRoundMinus:p0,UserRoundPen:Nm,UserRoundPlus:s0,UserRoundSearch:bm,UserRoundX:l0,UserSearch:$m,UserStar:qm,UserX:zm,Users:Am,UsersRound:M0,Utensils:m0,UtensilsCrossed:v0,UtilityPole:Hm,Van:jm,Variable:Vm,Vault:Pm,VectorSquare:Bm,Vegan:Fm,VenetianMask:Dm,Venus:Tm,VenusAndMars:Rm,Vibrate:Om,VibrateOff:Um,Video:Zm,VideoOff:Gm,Videotape:Wm,View:Em,Voicemail:Km,Volleyball:Xm,Volume:a_,Volume1:Qm,Volume2:Ym,VolumeOff:Jm,VolumeX:e_,Vote:c_,Wallet:o_,WalletCards:t_,WalletMinimal:_0,Wallpaper:d_,Wand:n_,WandSparkles:g0,Warehouse:h_,WashingMachine:i_,Watch:y_,Waves:s_,WavesArrowDown:r_,WavesArrowUp:k_,WavesLadder:p_,Waypoints:l_,Webcam:u_,Webhook:v_,WebhookOff:M_,Weight:__,WeightTilde:m_,Wheat:x_,WheatOff:g_,WholeWord:L_,Wifi:q_,WifiCog:w_,WifiHigh:f_,WifiLow:I_,WifiOff:C_,WifiPen:b_,WifiSync:N_,WifiZero:$_,Wind:S_,WindArrowDown:z_,Wine:H_,WineOff:A_,Workflow:j_,Worm:V_,Wrench:P_,X:B_,Youtube:F_,Zap:D_,ZapOff:R_,ZoomIn:T_,ZoomOut:U_},Symbol.toStringTag,{value:"Module"}));const RK=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:w0,AArrowDownIcon:w0,AArrowUp:f0,AArrowUpIcon:f0,ALargeSmall:I0,ALargeSmallIcon:I0,Accessibility:C0,AccessibilityIcon:C0,Activity:N0,ActivityIcon:N0,ActivitySquare:ce,ActivitySquareIcon:ce,AirVent:b0,AirVentIcon:b0,Airplay:$0,AirplayIcon:$0,AlarmCheck:l,AlarmCheckIcon:l,AlarmClock:z0,AlarmClockCheck:l,AlarmClockCheckIcon:l,AlarmClockIcon:z0,AlarmClockMinus:u,AlarmClockMinusIcon:u,AlarmClockOff:q0,AlarmClockOffIcon:q0,AlarmClockPlus:M,AlarmClockPlusIcon:M,AlarmMinus:u,AlarmMinusIcon:u,AlarmPlus:M,AlarmPlusIcon:M,AlarmSmoke:S0,AlarmSmokeIcon:S0,Album:A0,AlbumIcon:A0,AlertCircle:G,AlertCircleIcon:G,AlertOctagon:$2,AlertOctagonIcon:$2,AlertTriangle:h0,AlertTriangleIcon:h0,AlignCenter:Ye,AlignCenterHorizontal:H0,AlignCenterHorizontalIcon:H0,AlignCenterIcon:Ye,AlignCenterVertical:j0,AlignCenterVerticalIcon:j0,AlignEndHorizontal:V0,AlignEndHorizontalIcon:V0,AlignEndVertical:P0,AlignEndVerticalIcon:P0,AlignHorizontalDistributeCenter:B0,AlignHorizontalDistributeCenterIcon:B0,AlignHorizontalDistributeEnd:F0,AlignHorizontalDistributeEndIcon:F0,AlignHorizontalDistributeStart:D0,AlignHorizontalDistributeStartIcon:D0,AlignHorizontalJustifyCenter:R0,AlignHorizontalJustifyCenterIcon:R0,AlignHorizontalJustifyEnd:T0,AlignHorizontalJustifyEndIcon:T0,AlignHorizontalJustifyStart:U0,AlignHorizontalJustifyStartIcon:U0,AlignHorizontalSpaceAround:O0,AlignHorizontalSpaceAroundIcon:O0,AlignHorizontalSpaceBetween:G0,AlignHorizontalSpaceBetweenIcon:G0,AlignJustify:a0,AlignJustifyIcon:a0,AlignLeft:k,AlignLeftIcon:k,AlignRight:e0,AlignRightIcon:e0,AlignStartHorizontal:Z0,AlignStartHorizontalIcon:Z0,AlignStartVertical:W0,AlignStartVerticalIcon:W0,AlignVerticalDistributeCenter:E0,AlignVerticalDistributeCenterIcon:E0,AlignVerticalDistributeEnd:K0,AlignVerticalDistributeEndIcon:K0,AlignVerticalDistributeStart:X0,AlignVerticalDistributeStartIcon:X0,AlignVerticalJustifyCenter:Q0,AlignVerticalJustifyCenterIcon:Q0,AlignVerticalJustifyEnd:J0,AlignVerticalJustifyEndIcon:J0,AlignVerticalJustifyStart:Y0,AlignVerticalJustifyStartIcon:Y0,AlignVerticalSpaceAround:ea,AlignVerticalSpaceAroundIcon:ea,AlignVerticalSpaceBetween:ca,AlignVerticalSpaceBetweenIcon:ca,Ambulance:aa,AmbulanceIcon:aa,Ampersand:ta,AmpersandIcon:ta,Ampersands:oa,AmpersandsIcon:oa,Amphora:da,AmphoraIcon:da,Anchor:na,AnchorIcon:na,Angry:ha,AngryIcon:ha,Annoyed:ia,AnnoyedIcon:ia,Antenna:ya,AntennaIcon:ya,Anvil:ra,AnvilIcon:ra,Aperture:ka,ApertureIcon:ka,AppWindow:sa,AppWindowIcon:sa,AppWindowMac:pa,AppWindowMacIcon:pa,Apple:la,AppleIcon:la,Archive:va,ArchiveIcon:va,ArchiveRestore:ua,ArchiveRestoreIcon:ua,ArchiveX:Ma,ArchiveXIcon:Ma,AreaChart:z,AreaChartIcon:z,Armchair:ma,ArmchairIcon:ma,ArrowBigDown:_a,ArrowBigDownDash:ga,ArrowBigDownDashIcon:ga,ArrowBigDownIcon:_a,ArrowBigLeft:La,ArrowBigLeftDash:xa,ArrowBigLeftDashIcon:xa,ArrowBigLeftIcon:La,ArrowBigRight:fa,ArrowBigRightDash:wa,ArrowBigRightDashIcon:wa,ArrowBigRightIcon:fa,ArrowBigUp:Ca,ArrowBigUpDash:Ia,ArrowBigUpDashIcon:Ia,ArrowBigUpIcon:Ca,ArrowDown:Va,ArrowDown01:Na,ArrowDown01Icon:Na,ArrowDown10:ba,ArrowDown10Icon:ba,ArrowDownAZ:v,ArrowDownAZIcon:v,ArrowDownAz:v,ArrowDownAzIcon:v,ArrowDownCircle:Z,ArrowDownCircleIcon:Z,ArrowDownFromLine:$a,ArrowDownFromLineIcon:$a,ArrowDownIcon:Va,ArrowDownLeft:za,ArrowDownLeftFromCircle:X,ArrowDownLeftFromCircleIcon:X,ArrowDownLeftFromSquare:de,ArrowDownLeftFromSquareIcon:de,ArrowDownLeftIcon:za,ArrowDownLeftSquare:ee,ArrowDownLeftSquareIcon:ee,ArrowDownNarrowWide:qa,ArrowDownNarrowWideIcon:qa,ArrowDownRight:Sa,ArrowDownRightFromCircle:E,ArrowDownRightFromCircleIcon:E,ArrowDownRightFromSquare:ne,ArrowDownRightFromSquareIcon:ne,ArrowDownRightIcon:Sa,ArrowDownRightSquare:ae,ArrowDownRightSquareIcon:ae,ArrowDownSquare:te,ArrowDownSquareIcon:te,ArrowDownToDot:Aa,ArrowDownToDotIcon:Aa,ArrowDownToLine:Ha,ArrowDownToLineIcon:Ha,ArrowDownUp:ja,ArrowDownUpIcon:ja,ArrowDownWideNarrow:m,ArrowDownWideNarrowIcon:m,ArrowDownZA:_,ArrowDownZAIcon:_,ArrowDownZa:_,ArrowDownZaIcon:_,ArrowLeft:Da,ArrowLeftCircle:W,ArrowLeftCircleIcon:W,ArrowLeftFromLine:Pa,ArrowLeftFromLineIcon:Pa,ArrowLeftIcon:Da,ArrowLeftRight:Ba,ArrowLeftRightIcon:Ba,ArrowLeftSquare:oe,ArrowLeftSquareIcon:oe,ArrowLeftToLine:Fa,ArrowLeftToLineIcon:Fa,ArrowRight:Oa,ArrowRightCircle:J,ArrowRightCircleIcon:J,ArrowRightFromLine:Ra,ArrowRightFromLineIcon:Ra,ArrowRightIcon:Oa,ArrowRightLeft:Ta,ArrowRightLeftIcon:Ta,ArrowRightSquare:ye,ArrowRightSquareIcon:ye,ArrowRightToLine:Ua,ArrowRightToLineIcon:Ua,ArrowUp:ec,ArrowUp01:Ga,ArrowUp01Icon:Ga,ArrowUp10:Za,ArrowUp10Icon:Za,ArrowUpAZ:g,ArrowUpAZIcon:g,ArrowUpAz:g,ArrowUpAzIcon:g,ArrowUpCircle:Y,ArrowUpCircleIcon:Y,ArrowUpDown:Wa,ArrowUpDownIcon:Wa,ArrowUpFromDot:Ea,ArrowUpFromDotIcon:Ea,ArrowUpFromLine:Xa,ArrowUpFromLineIcon:Xa,ArrowUpIcon:ec,ArrowUpLeft:Ka,ArrowUpLeftFromCircle:K,ArrowUpLeftFromCircleIcon:K,ArrowUpLeftFromSquare:he,ArrowUpLeftFromSquareIcon:he,ArrowUpLeftIcon:Ka,ArrowUpLeftSquare:re,ArrowUpLeftSquareIcon:re,ArrowUpNarrowWide:x,ArrowUpNarrowWideIcon:x,ArrowUpRight:Qa,ArrowUpRightFromCircle:Q,ArrowUpRightFromCircleIcon:Q,ArrowUpRightFromSquare:ie,ArrowUpRightFromSquareIcon:ie,ArrowUpRightIcon:Qa,ArrowUpRightSquare:ke,ArrowUpRightSquareIcon:ke,ArrowUpSquare:pe,ArrowUpSquareIcon:pe,ArrowUpToLine:Ja,ArrowUpToLineIcon:Ja,ArrowUpWideNarrow:Ya,ArrowUpWideNarrowIcon:Ya,ArrowUpZA:L,ArrowUpZAIcon:L,ArrowUpZa:L,ArrowUpZaIcon:L,ArrowsUpFromLine:ac,ArrowsUpFromLineIcon:ac,Asterisk:cc,AsteriskIcon:cc,AsteriskSquare:se,AsteriskSquareIcon:se,AtSign:tc,AtSignIcon:tc,Atom:oc,AtomIcon:oc,AudioLines:dc,AudioLinesIcon:dc,AudioWaveform:nc,AudioWaveformIcon:nc,Award:hc,AwardIcon:hc,Axe:ic,AxeIcon:ic,Axis3D:w,Axis3DIcon:w,Axis3d:w,Axis3dIcon:w,Baby:rc,BabyIcon:rc,Backpack:yc,BackpackIcon:yc,Badge:Cc,BadgeAlert:kc,BadgeAlertIcon:kc,BadgeCent:pc,BadgeCentIcon:pc,BadgeCheck:f,BadgeCheckIcon:f,BadgeDollarSign:sc,BadgeDollarSignIcon:sc,BadgeEuro:lc,BadgeEuroIcon:lc,BadgeHelp:I,BadgeHelpIcon:I,BadgeIcon:Cc,BadgeIndianRupee:uc,BadgeIndianRupeeIcon:uc,BadgeInfo:Mc,BadgeInfoIcon:Mc,BadgeJapaneseYen:vc,BadgeJapaneseYenIcon:vc,BadgeMinus:mc,BadgeMinusIcon:mc,BadgePercent:_c,BadgePercentIcon:_c,BadgePlus:gc,BadgePlusIcon:gc,BadgePoundSterling:xc,BadgePoundSterlingIcon:xc,BadgeQuestionMark:I,BadgeQuestionMarkIcon:I,BadgeRussianRuble:Lc,BadgeRussianRubleIcon:Lc,BadgeSwissFranc:wc,BadgeSwissFrancIcon:wc,BadgeTurkishLira:fc,BadgeTurkishLiraIcon:fc,BadgeX:Ic,BadgeXIcon:Ic,BaggageClaim:Nc,BaggageClaimIcon:Nc,Ban:bc,BanIcon:bc,Banana:$c,BananaIcon:$c,Bandage:qc,BandageIcon:qc,Banknote:Hc,BanknoteArrowDown:zc,BanknoteArrowDownIcon:zc,BanknoteArrowUp:Sc,BanknoteArrowUpIcon:Sc,BanknoteIcon:Hc,BanknoteX:Ac,BanknoteXIcon:Ac,BarChart:F,BarChart2:D,BarChart2Icon:D,BarChart3:P,BarChart3Icon:P,BarChart4:V,BarChart4Icon:V,BarChartBig:j,BarChartBigIcon:j,BarChartHorizontal:A,BarChartHorizontalBig:S,BarChartHorizontalBigIcon:S,BarChartHorizontalIcon:A,BarChartIcon:F,Barcode:jc,BarcodeIcon:jc,Barrel:Vc,BarrelIcon:Vc,Baseline:Pc,BaselineIcon:Pc,Bath:Bc,BathIcon:Bc,Battery:Gc,BatteryCharging:Fc,BatteryChargingIcon:Fc,BatteryFull:Dc,BatteryFullIcon:Dc,BatteryIcon:Gc,BatteryLow:Rc,BatteryLowIcon:Rc,BatteryMedium:Uc,BatteryMediumIcon:Uc,BatteryPlus:Tc,BatteryPlusIcon:Tc,BatteryWarning:Oc,BatteryWarningIcon:Oc,Beaker:Wc,BeakerIcon:Wc,Bean:Ec,BeanIcon:Ec,BeanOff:Zc,BeanOffIcon:Zc,Bed:Qc,BedDouble:Xc,BedDoubleIcon:Xc,BedIcon:Qc,BedSingle:Kc,BedSingleIcon:Kc,Beef:Jc,BeefIcon:Jc,Beer:et,BeerIcon:et,BeerOff:Yc,BeerOffIcon:Yc,Bell:ht,BellDot:at,BellDotIcon:at,BellElectric:ct,BellElectricIcon:ct,BellIcon:ht,BellMinus:tt,BellMinusIcon:tt,BellOff:ot,BellOffIcon:ot,BellPlus:dt,BellPlusIcon:dt,BellRing:nt,BellRingIcon:nt,BetweenHorizonalEnd:C,BetweenHorizonalEndIcon:C,BetweenHorizonalStart:N,BetweenHorizonalStartIcon:N,BetweenHorizontalEnd:C,BetweenHorizontalEndIcon:C,BetweenHorizontalStart:N,BetweenHorizontalStartIcon:N,BetweenVerticalEnd:it,BetweenVerticalEndIcon:it,BetweenVerticalStart:rt,BetweenVerticalStartIcon:rt,BicepsFlexed:yt,BicepsFlexedIcon:yt,Bike:kt,BikeIcon:kt,Binary:pt,BinaryIcon:pt,Binoculars:st,BinocularsIcon:st,Biohazard:lt,BiohazardIcon:lt,Bird:ut,BirdIcon:ut,Birdhouse:Mt,BirdhouseIcon:Mt,Bitcoin:vt,BitcoinIcon:vt,Blend:mt,BlendIcon:mt,Blinds:_t,BlindsIcon:_t,Blocks:gt,BlocksIcon:gt,Bluetooth:ft,BluetoothConnected:xt,BluetoothConnectedIcon:xt,BluetoothIcon:ft,BluetoothOff:Lt,BluetoothOffIcon:Lt,BluetoothSearching:wt,BluetoothSearchingIcon:wt,Bold:It,BoldIcon:It,Bolt:Ct,BoltIcon:Ct,Bomb:Nt,BombIcon:Nt,Bone:bt,BoneIcon:bt,Book:Yt,BookA:$t,BookAIcon:$t,BookAlert:qt,BookAlertIcon:qt,BookAudio:At,BookAudioIcon:At,BookCheck:zt,BookCheckIcon:zt,BookCopy:St,BookCopyIcon:St,BookDashed:b,BookDashedIcon:b,BookDown:Ht,BookDownIcon:Ht,BookHeadphones:jt,BookHeadphonesIcon:jt,BookHeart:Vt,BookHeartIcon:Vt,BookIcon:Yt,BookImage:Pt,BookImageIcon:Pt,BookKey:Bt,BookKeyIcon:Bt,BookLock:Ft,BookLockIcon:Ft,BookMarked:Dt,BookMarkedIcon:Dt,BookMinus:Tt,BookMinusIcon:Tt,BookOpen:Ot,BookOpenCheck:Rt,BookOpenCheckIcon:Rt,BookOpenIcon:Ot,BookOpenText:Ut,BookOpenTextIcon:Ut,BookPlus:Gt,BookPlusIcon:Gt,BookSearch:Zt,BookSearchIcon:Zt,BookTemplate:b,BookTemplateIcon:b,BookText:Wt,BookTextIcon:Wt,BookType:Et,BookTypeIcon:Et,BookUp:Kt,BookUp2:Xt,BookUp2Icon:Xt,BookUpIcon:Kt,BookUser:Qt,BookUserIcon:Qt,BookX:Jt,BookXIcon:Jt,Bookmark:oo,BookmarkCheck:eo,BookmarkCheckIcon:eo,BookmarkIcon:oo,BookmarkMinus:ao,BookmarkMinusIcon:ao,BookmarkPlus:co,BookmarkPlusIcon:co,BookmarkX:to,BookmarkXIcon:to,BoomBox:no,BoomBoxIcon:no,Bot:yo,BotIcon:yo,BotMessageSquare:ho,BotMessageSquareIcon:ho,BotOff:io,BotOffIcon:io,BottleWine:ro,BottleWineIcon:ro,BowArrow:ko,BowArrowIcon:ko,Box:po,BoxIcon:po,BoxSelect:fe,BoxSelectIcon:fe,Boxes:so,BoxesIcon:so,Braces:$,BracesIcon:$,Brackets:lo,BracketsIcon:lo,Brain:vo,BrainCircuit:uo,BrainCircuitIcon:uo,BrainCog:Mo,BrainCogIcon:Mo,BrainIcon:vo,BrickWall:go,BrickWallFire:mo,BrickWallFireIcon:mo,BrickWallIcon:go,BrickWallShield:_o,BrickWallShieldIcon:_o,Briefcase:wo,BriefcaseBusiness:xo,BriefcaseBusinessIcon:xo,BriefcaseConveyorBelt:Lo,BriefcaseConveyorBeltIcon:Lo,BriefcaseIcon:wo,BriefcaseMedical:fo,BriefcaseMedicalIcon:fo,BringToFront:Io,BringToFrontIcon:Io,Brush:No,BrushCleaning:Co,BrushCleaningIcon:Co,BrushIcon:No,Bubbles:bo,BubblesIcon:bo,Bug:Ao,BugIcon:Ao,BugOff:$o,BugOffIcon:$o,BugPlay:qo,BugPlayIcon:qo,Building:So,Building2:zo,Building2Icon:zo,BuildingIcon:So,Bus:jo,BusFront:Ho,BusFrontIcon:Ho,BusIcon:jo,Cable:Po,CableCar:Vo,CableCarIcon:Vo,CableIcon:Po,Cake:Fo,CakeIcon:Fo,CakeSlice:Bo,CakeSliceIcon:Bo,Calculator:Do,CalculatorIcon:Do,Calendar:hd,Calendar1:Ro,Calendar1Icon:Ro,CalendarArrowDown:To,CalendarArrowDownIcon:To,CalendarArrowUp:Uo,CalendarArrowUpIcon:Uo,CalendarCheck:Go,CalendarCheck2:Oo,CalendarCheck2Icon:Oo,CalendarCheckIcon:Go,CalendarClock:Zo,CalendarClockIcon:Zo,CalendarCog:Wo,CalendarCogIcon:Wo,CalendarDays:Eo,CalendarDaysIcon:Eo,CalendarFold:Xo,CalendarFoldIcon:Xo,CalendarHeart:Ko,CalendarHeartIcon:Ko,CalendarIcon:hd,CalendarMinus:Yo,CalendarMinus2:Qo,CalendarMinus2Icon:Qo,CalendarMinusIcon:Yo,CalendarOff:Jo,CalendarOffIcon:Jo,CalendarPlus:ad,CalendarPlus2:ed,CalendarPlus2Icon:ed,CalendarPlusIcon:ad,CalendarRange:cd,CalendarRangeIcon:cd,CalendarSearch:td,CalendarSearchIcon:td,CalendarSync:od,CalendarSyncIcon:od,CalendarX:nd,CalendarX2:dd,CalendarX2Icon:dd,CalendarXIcon:nd,Calendars:id,CalendarsIcon:id,Camera:rd,CameraIcon:rd,CameraOff:yd,CameraOffIcon:yd,CandlestickChart:H,CandlestickChartIcon:H,Candy:sd,CandyCane:kd,CandyCaneIcon:kd,CandyIcon:sd,CandyOff:pd,CandyOffIcon:pd,Cannabis:ld,CannabisIcon:ld,Captions:q,CaptionsIcon:q,CaptionsOff:ud,CaptionsOffIcon:ud,Car:md,CarFront:Md,CarFrontIcon:Md,CarIcon:md,CarTaxiFront:vd,CarTaxiFrontIcon:vd,Caravan:_d,CaravanIcon:_d,CardSim:gd,CardSimIcon:gd,Carrot:xd,CarrotIcon:xd,CaseLower:Ld,CaseLowerIcon:Ld,CaseSensitive:wd,CaseSensitiveIcon:wd,CaseUpper:fd,CaseUpperIcon:fd,CassetteTape:Id,CassetteTapeIcon:Id,Cast:Cd,CastIcon:Cd,Castle:Nd,CastleIcon:Nd,Cat:bd,CatIcon:bd,Cctv:$d,CctvIcon:$d,ChartArea:z,ChartAreaIcon:z,ChartBar:A,ChartBarBig:S,ChartBarBigIcon:S,ChartBarDecreasing:qd,ChartBarDecreasingIcon:qd,ChartBarIcon:A,ChartBarIncreasing:Sd,ChartBarIncreasingIcon:Sd,ChartBarStacked:zd,ChartBarStackedIcon:zd,ChartCandlestick:H,ChartCandlestickIcon:H,ChartColumn:P,ChartColumnBig:j,ChartColumnBigIcon:j,ChartColumnDecreasing:Ad,ChartColumnDecreasingIcon:Ad,ChartColumnIcon:P,ChartColumnIncreasing:V,ChartColumnIncreasingIcon:V,ChartColumnStacked:Hd,ChartColumnStackedIcon:Hd,ChartGantt:jd,ChartGanttIcon:jd,ChartLine:B,ChartLineIcon:B,ChartNetwork:Vd,ChartNetworkIcon:Vd,ChartNoAxesColumn:D,ChartNoAxesColumnDecreasing:Pd,ChartNoAxesColumnDecreasingIcon:Pd,ChartNoAxesColumnIcon:D,ChartNoAxesColumnIncreasing:F,ChartNoAxesColumnIncreasingIcon:F,ChartNoAxesCombined:Bd,ChartNoAxesCombinedIcon:Bd,ChartNoAxesGantt:R,ChartNoAxesGanttIcon:R,ChartPie:T,ChartPieIcon:T,ChartScatter:U,ChartScatterIcon:U,ChartSpline:Fd,ChartSplineIcon:Fd,Check:Td,CheckCheck:Dd,CheckCheckIcon:Dd,CheckCircle:e1,CheckCircle2:a1,CheckCircle2Icon:a1,CheckCircleIcon:e1,CheckIcon:Td,CheckLine:Rd,CheckLineIcon:Rd,CheckSquare:ue,CheckSquare2:Me,CheckSquare2Icon:Me,CheckSquareIcon:ue,ChefHat:Ud,ChefHatIcon:Ud,Cherry:Od,CherryIcon:Od,ChessBishop:Gd,ChessBishopIcon:Gd,ChessKing:Zd,ChessKingIcon:Zd,ChessKnight:Wd,ChessKnightIcon:Wd,ChessPawn:Ed,ChessPawnIcon:Ed,ChessQueen:Xd,ChessQueenIcon:Xd,ChessRook:Kd,ChessRookIcon:Kd,ChevronDown:Qd,ChevronDownCircle:c1,ChevronDownCircleIcon:c1,ChevronDownIcon:Qd,ChevronDownSquare:ve,ChevronDownSquareIcon:ve,ChevronFirst:Jd,ChevronFirstIcon:Jd,ChevronLast:Yd,ChevronLastIcon:Yd,ChevronLeft:en,ChevronLeftCircle:t1,ChevronLeftCircleIcon:t1,ChevronLeftIcon:en,ChevronLeftSquare:me,ChevronLeftSquareIcon:me,ChevronRight:an,ChevronRightCircle:o1,ChevronRightCircleIcon:o1,ChevronRightIcon:an,ChevronRightSquare:_e,ChevronRightSquareIcon:_e,ChevronUp:cn,ChevronUpCircle:d1,ChevronUpCircleIcon:d1,ChevronUpIcon:cn,ChevronUpSquare:ge,ChevronUpSquareIcon:ge,ChevronsDown:on,ChevronsDownIcon:on,ChevronsDownUp:tn,ChevronsDownUpIcon:tn,ChevronsLeft:hn,ChevronsLeftIcon:hn,ChevronsLeftRight:nn,ChevronsLeftRightEllipsis:dn,ChevronsLeftRightEllipsisIcon:dn,ChevronsLeftRightIcon:nn,ChevronsRight:rn,ChevronsRightIcon:rn,ChevronsRightLeft:yn,ChevronsRightLeftIcon:yn,ChevronsUp:pn,ChevronsUpDown:kn,ChevronsUpDownIcon:kn,ChevronsUpIcon:pn,Chrome:O,ChromeIcon:O,Chromium:O,ChromiumIcon:O,Church:sn,ChurchIcon:sn,Cigarette:un,CigaretteIcon:un,CigaretteOff:ln,CigaretteOffIcon:ln,Circle:$n,CircleAlert:G,CircleAlertIcon:G,CircleArrowDown:Z,CircleArrowDownIcon:Z,CircleArrowLeft:W,CircleArrowLeftIcon:W,CircleArrowOutDownLeft:X,CircleArrowOutDownLeftIcon:X,CircleArrowOutDownRight:E,CircleArrowOutDownRightIcon:E,CircleArrowOutUpLeft:K,CircleArrowOutUpLeftIcon:K,CircleArrowOutUpRight:Q,CircleArrowOutUpRightIcon:Q,CircleArrowRight:J,CircleArrowRightIcon:J,CircleArrowUp:Y,CircleArrowUpIcon:Y,CircleCheck:a1,CircleCheckBig:e1,CircleCheckBigIcon:e1,CircleCheckIcon:a1,CircleChevronDown:c1,CircleChevronDownIcon:c1,CircleChevronLeft:t1,CircleChevronLeftIcon:t1,CircleChevronRight:o1,CircleChevronRightIcon:o1,CircleChevronUp:d1,CircleChevronUpIcon:d1,CircleDashed:Mn,CircleDashedIcon:Mn,CircleDivide:n1,CircleDivideIcon:n1,CircleDollarSign:vn,CircleDollarSignIcon:vn,CircleDot:_n,CircleDotDashed:mn,CircleDotDashedIcon:mn,CircleDotIcon:_n,CircleEllipsis:gn,CircleEllipsisIcon:gn,CircleEqual:xn,CircleEqualIcon:xn,CircleFadingArrowUp:Ln,CircleFadingArrowUpIcon:Ln,CircleFadingPlus:wn,CircleFadingPlusIcon:wn,CircleGauge:h1,CircleGaugeIcon:h1,CircleHelp:o,CircleHelpIcon:o,CircleIcon:$n,CircleMinus:i1,CircleMinusIcon:i1,CircleOff:fn,CircleOffIcon:fn,CircleParking:r1,CircleParkingIcon:r1,CircleParkingOff:y1,CircleParkingOffIcon:y1,CirclePause:k1,CirclePauseIcon:k1,CirclePercent:p1,CirclePercentIcon:p1,CirclePlay:s1,CirclePlayIcon:s1,CirclePlus:l1,CirclePlusIcon:l1,CirclePoundSterling:In,CirclePoundSterlingIcon:In,CirclePower:u1,CirclePowerIcon:u1,CircleQuestionMark:o,CircleQuestionMarkIcon:o,CircleSlash:Cn,CircleSlash2:M1,CircleSlash2Icon:M1,CircleSlashIcon:Cn,CircleSlashed:M1,CircleSlashedIcon:M1,CircleSmall:Nn,CircleSmallIcon:Nn,CircleStar:bn,CircleStarIcon:bn,CircleStop:v1,CircleStopIcon:v1,CircleUser:_1,CircleUserIcon:_1,CircleUserRound:m1,CircleUserRoundIcon:m1,CircleX:g1,CircleXIcon:g1,CircuitBoard:qn,CircuitBoardIcon:qn,Citrus:zn,CitrusIcon:zn,Clapperboard:Sn,ClapperboardIcon:Sn,Clipboard:Tn,ClipboardCheck:An,ClipboardCheckIcon:An,ClipboardClock:Hn,ClipboardClockIcon:Hn,ClipboardCopy:jn,ClipboardCopyIcon:jn,ClipboardEdit:L1,ClipboardEditIcon:L1,ClipboardIcon:Tn,ClipboardList:Vn,ClipboardListIcon:Vn,ClipboardMinus:Pn,ClipboardMinusIcon:Pn,ClipboardPaste:Bn,ClipboardPasteIcon:Bn,ClipboardPen:L1,ClipboardPenIcon:L1,ClipboardPenLine:x1,ClipboardPenLineIcon:x1,ClipboardPlus:Fn,ClipboardPlusIcon:Fn,ClipboardSignature:x1,ClipboardSignatureIcon:x1,ClipboardType:Dn,ClipboardTypeIcon:Dn,ClipboardX:Rn,ClipboardXIcon:Rn,Clock:hh,Clock1:Un,Clock10:Gn,Clock10Icon:Gn,Clock11:On,Clock11Icon:On,Clock12:Zn,Clock12Icon:Zn,Clock1Icon:Un,Clock2:Wn,Clock2Icon:Wn,Clock3:En,Clock3Icon:En,Clock4:Xn,Clock4Icon:Xn,Clock5:Qn,Clock5Icon:Qn,Clock6:Kn,Clock6Icon:Kn,Clock7:Jn,Clock7Icon:Jn,Clock8:Yn,Clock8Icon:Yn,Clock9:eh,Clock9Icon:eh,ClockAlert:ah,ClockAlertIcon:ah,ClockArrowDown:ch,ClockArrowDownIcon:ch,ClockArrowUp:oh,ClockArrowUpIcon:oh,ClockCheck:th,ClockCheckIcon:th,ClockFading:dh,ClockFadingIcon:dh,ClockIcon:hh,ClockPlus:nh,ClockPlusIcon:nh,ClosedCaption:ih,ClosedCaptionIcon:ih,Cloud:fh,CloudAlert:yh,CloudAlertIcon:yh,CloudCheck:rh,CloudCheckIcon:rh,CloudCog:kh,CloudCogIcon:kh,CloudDownload:w1,CloudDownloadIcon:w1,CloudDrizzle:ph,CloudDrizzleIcon:ph,CloudFog:sh,CloudFogIcon:sh,CloudHail:lh,CloudHailIcon:lh,CloudIcon:fh,CloudLightning:uh,CloudLightningIcon:uh,CloudMoon:vh,CloudMoonIcon:vh,CloudMoonRain:Mh,CloudMoonRainIcon:Mh,CloudOff:mh,CloudOffIcon:mh,CloudRain:gh,CloudRainIcon:gh,CloudRainWind:_h,CloudRainWindIcon:_h,CloudSnow:xh,CloudSnowIcon:xh,CloudSun:wh,CloudSunIcon:wh,CloudSunRain:Lh,CloudSunRainIcon:Lh,CloudUpload:f1,CloudUploadIcon:f1,Cloudy:Ih,CloudyIcon:Ih,Clover:Ch,CloverIcon:Ch,Club:Nh,ClubIcon:Nh,Code:bh,Code2:I1,Code2Icon:I1,CodeIcon:bh,CodeSquare:xe,CodeSquareIcon:xe,CodeXml:I1,CodeXmlIcon:I1,Codepen:$h,CodepenIcon:$h,Codesandbox:qh,CodesandboxIcon:qh,Coffee:zh,CoffeeIcon:zh,Cog:Sh,CogIcon:Sh,Coins:Ah,CoinsIcon:Ah,Columns:C1,Columns2:C1,Columns2Icon:C1,Columns3:N1,Columns3Cog:d,Columns3CogIcon:d,Columns3Icon:N1,Columns4:Hh,Columns4Icon:Hh,ColumnsIcon:C1,ColumnsSettings:d,ColumnsSettingsIcon:d,Combine:jh,CombineIcon:jh,Command:Vh,CommandIcon:Vh,Compass:Ph,CompassIcon:Ph,Component:Bh,ComponentIcon:Bh,Computer:Fh,ComputerIcon:Fh,ConciergeBell:Dh,ConciergeBellIcon:Dh,Cone:Rh,ConeIcon:Rh,Construction:Th,ConstructionIcon:Th,Contact:Uh,Contact2:b1,Contact2Icon:b1,ContactIcon:Uh,ContactRound:b1,ContactRoundIcon:b1,Container:Oh,ContainerIcon:Oh,Contrast:Gh,ContrastIcon:Gh,Cookie:Zh,CookieIcon:Zh,CookingPot:Wh,CookingPotIcon:Wh,Copy:Yh,CopyCheck:Eh,CopyCheckIcon:Eh,CopyIcon:Yh,CopyMinus:Xh,CopyMinusIcon:Xh,CopyPlus:Kh,CopyPlusIcon:Kh,CopySlash:Qh,CopySlashIcon:Qh,CopyX:Jh,CopyXIcon:Jh,Copyleft:ei,CopyleftIcon:ei,Copyright:ai,CopyrightIcon:ai,CornerDownLeft:ci,CornerDownLeftIcon:ci,CornerDownRight:ti,CornerDownRightIcon:ti,CornerLeftDown:oi,CornerLeftDownIcon:oi,CornerLeftUp:di,CornerLeftUpIcon:di,CornerRightDown:ni,CornerRightDownIcon:ni,CornerRightUp:hi,CornerRightUpIcon:hi,CornerUpLeft:ii,CornerUpLeftIcon:ii,CornerUpRight:yi,CornerUpRightIcon:yi,Cpu:ri,CpuIcon:ri,CreativeCommons:ki,CreativeCommonsIcon:ki,CreditCard:pi,CreditCardIcon:pi,Croissant:si,CroissantIcon:si,Crop:li,CropIcon:li,Cross:ui,CrossIcon:ui,Crosshair:Mi,CrosshairIcon:Mi,Crown:vi,CrownIcon:vi,Cuboid:mi,CuboidIcon:mi,CupSoda:_i,CupSodaIcon:_i,CurlyBraces:$,CurlyBracesIcon:$,Currency:gi,CurrencyIcon:gi,Cylinder:xi,CylinderIcon:xi,Dam:Li,DamIcon:Li,Database:Ii,DatabaseBackup:wi,DatabaseBackupIcon:wi,DatabaseIcon:Ii,DatabaseZap:fi,DatabaseZapIcon:fi,DecimalsArrowLeft:Ci,DecimalsArrowLeftIcon:Ci,DecimalsArrowRight:Ni,DecimalsArrowRightIcon:Ni,Delete:bi,DeleteIcon:bi,Dessert:$i,DessertIcon:$i,Diameter:qi,DiameterIcon:qi,Diamond:Ai,DiamondIcon:Ai,DiamondMinus:zi,DiamondMinusIcon:zi,DiamondPercent:$1,DiamondPercentIcon:$1,DiamondPlus:Si,DiamondPlusIcon:Si,Dice1:Hi,Dice1Icon:Hi,Dice2:ji,Dice2Icon:ji,Dice3:Vi,Dice3Icon:Vi,Dice4:Pi,Dice4Icon:Pi,Dice5:Bi,Dice5Icon:Bi,Dice6:Fi,Dice6Icon:Fi,Dices:Di,DicesIcon:Di,Diff:Ri,DiffIcon:Ri,Disc:Gi,Disc2:Ti,Disc2Icon:Ti,Disc3:Oi,Disc3Icon:Oi,DiscAlbum:Ui,DiscAlbumIcon:Ui,DiscIcon:Gi,Divide:Zi,DivideCircle:n1,DivideCircleIcon:n1,DivideIcon:Zi,DivideSquare:Ie,DivideSquareIcon:Ie,Dna:Ei,DnaIcon:Ei,DnaOff:Wi,DnaOffIcon:Wi,Dock:Xi,DockIcon:Xi,Dog:Ki,DogIcon:Ki,DollarSign:Qi,DollarSignIcon:Qi,Donut:Ji,DonutIcon:Ji,DoorClosed:ey,DoorClosedIcon:ey,DoorClosedLocked:Yi,DoorClosedLockedIcon:Yi,DoorOpen:ay,DoorOpenIcon:ay,Dot:cy,DotIcon:cy,DotSquare:Ce,DotSquareIcon:Ce,Download:ty,DownloadCloud:w1,DownloadCloudIcon:w1,DownloadIcon:ty,DraftingCompass:dy,DraftingCompassIcon:dy,Drama:oy,DramaIcon:oy,Dribbble:ny,DribbbleIcon:ny,Drill:hy,DrillIcon:hy,Drone:iy,DroneIcon:iy,Droplet:ry,DropletIcon:ry,DropletOff:yy,DropletOffIcon:yy,Droplets:ky,DropletsIcon:ky,Drum:ly,DrumIcon:ly,Drumstick:py,DrumstickIcon:py,Dumbbell:sy,DumbbellIcon:sy,Ear:My,EarIcon:My,EarOff:uy,EarOffIcon:uy,Earth:q1,EarthIcon:q1,EarthLock:vy,EarthLockIcon:vy,Eclipse:my,EclipseIcon:my,Edit:t,Edit2:T2,Edit2Icon:T2,Edit3:R2,Edit3Icon:R2,EditIcon:t,Egg:xy,EggFried:_y,EggFriedIcon:_y,EggIcon:xy,EggOff:gy,EggOffIcon:gy,Ellipsis:S1,EllipsisIcon:S1,EllipsisVertical:z1,EllipsisVerticalIcon:z1,Equal:fy,EqualApproximately:Ly,EqualApproximatelyIcon:Ly,EqualIcon:fy,EqualNot:wy,EqualNotIcon:wy,EqualSquare:be,EqualSquareIcon:be,Eraser:Iy,EraserIcon:Iy,EthernetPort:Cy,EthernetPortIcon:Cy,Euro:Ny,EuroIcon:Ny,EvCharger:by,EvChargerIcon:by,Expand:$y,ExpandIcon:$y,ExternalLink:qy,ExternalLinkIcon:qy,Eye:Ay,EyeClosed:zy,EyeClosedIcon:zy,EyeIcon:Ay,EyeOff:Sy,EyeOffIcon:Sy,Facebook:Hy,FacebookIcon:Hy,Factory:jy,FactoryIcon:jy,Fan:Vy,FanIcon:Vy,FastForward:By,FastForwardIcon:By,Feather:Py,FeatherIcon:Py,Fence:Fy,FenceIcon:Fy,FerrisWheel:Dy,FerrisWheelIcon:Dy,Figma:Ry,FigmaIcon:Ry,File:M4,FileArchive:Ty,FileArchiveIcon:Ty,FileAudio:n,FileAudio2:n,FileAudio2Icon:n,FileAudioIcon:n,FileAxis3D:A1,FileAxis3DIcon:A1,FileAxis3d:A1,FileAxis3dIcon:A1,FileBadge:H1,FileBadge2:H1,FileBadge2Icon:H1,FileBadgeIcon:H1,FileBarChart:P1,FileBarChart2:B1,FileBarChart2Icon:B1,FileBarChartIcon:P1,FileBox:Uy,FileBoxIcon:Uy,FileBraces:V1,FileBracesCorner:j1,FileBracesCornerIcon:j1,FileBracesIcon:V1,FileChartColumn:B1,FileChartColumnIcon:B1,FileChartColumnIncreasing:P1,FileChartColumnIncreasingIcon:P1,FileChartLine:F1,FileChartLineIcon:F1,FileChartPie:D1,FileChartPieIcon:D1,FileCheck:Oy,FileCheck2:R1,FileCheck2Icon:R1,FileCheckCorner:R1,FileCheckCornerIcon:R1,FileCheckIcon:Oy,FileClock:Gy,FileClockIcon:Gy,FileCode:Zy,FileCode2:T1,FileCode2Icon:T1,FileCodeCorner:T1,FileCodeCornerIcon:T1,FileCodeIcon:Zy,FileCog:U1,FileCog2:U1,FileCog2Icon:U1,FileCogIcon:U1,FileDiff:Wy,FileDiffIcon:Wy,FileDigit:Ey,FileDigitIcon:Ey,FileDown:Xy,FileDownIcon:Xy,FileEdit:X1,FileEditIcon:X1,FileExclamationPoint:O1,FileExclamationPointIcon:O1,FileHeadphone:n,FileHeadphoneIcon:n,FileHeart:Ky,FileHeartIcon:Ky,FileIcon:M4,FileImage:Qy,FileImageIcon:Qy,FileInput:Jy,FileInputIcon:Jy,FileJson:V1,FileJson2:j1,FileJson2Icon:j1,FileJsonIcon:V1,FileKey:G1,FileKey2:G1,FileKey2Icon:G1,FileKeyIcon:G1,FileLineChart:F1,FileLineChartIcon:F1,FileLock:Z1,FileLock2:Z1,FileLock2Icon:Z1,FileLockIcon:Z1,FileMinus:Yy,FileMinus2:W1,FileMinus2Icon:W1,FileMinusCorner:W1,FileMinusCornerIcon:W1,FileMinusIcon:Yy,FileMusic:e4,FileMusicIcon:e4,FileOutput:a4,FileOutputIcon:a4,FilePen:X1,FilePenIcon:X1,FilePenLine:E1,FilePenLineIcon:E1,FilePieChart:D1,FilePieChartIcon:D1,FilePlay:K1,FilePlayIcon:K1,FilePlus:c4,FilePlus2:Q1,FilePlus2Icon:Q1,FilePlusCorner:Q1,FilePlusCornerIcon:Q1,FilePlusIcon:c4,FileQuestion:J1,FileQuestionIcon:J1,FileQuestionMark:J1,FileQuestionMarkIcon:J1,FileScan:t4,FileScanIcon:t4,FileSearch:o4,FileSearch2:Y1,FileSearch2Icon:Y1,FileSearchCorner:Y1,FileSearchCornerIcon:Y1,FileSearchIcon:o4,FileSignal:e2,FileSignalIcon:e2,FileSignature:E1,FileSignatureIcon:E1,FileSliders:d4,FileSlidersIcon:d4,FileSpreadsheet:i4,FileSpreadsheetIcon:i4,FileStack:n4,FileStackIcon:n4,FileSymlink:h4,FileSymlinkIcon:h4,FileTerminal:y4,FileTerminalIcon:y4,FileText:r4,FileTextIcon:r4,FileType:k4,FileType2:a2,FileType2Icon:a2,FileTypeCorner:a2,FileTypeCornerIcon:a2,FileTypeIcon:k4,FileUp:p4,FileUpIcon:p4,FileUser:s4,FileUserIcon:s4,FileVideo:K1,FileVideo2:c2,FileVideo2Icon:c2,FileVideoCamera:c2,FileVideoCameraIcon:c2,FileVideoIcon:K1,FileVolume:l4,FileVolume2:e2,FileVolume2Icon:e2,FileVolumeIcon:l4,FileWarning:O1,FileWarningIcon:O1,FileX:u4,FileX2:t2,FileX2Icon:t2,FileXCorner:t2,FileXCornerIcon:t2,FileXIcon:u4,Files:v4,FilesIcon:v4,Film:m4,FilmIcon:m4,Filter:i2,FilterIcon:i2,FilterX:h2,FilterXIcon:h2,Fingerprint:o2,FingerprintIcon:o2,FingerprintPattern:o2,FingerprintPatternIcon:o2,FireExtinguisher:_4,FireExtinguisherIcon:_4,Fish:L4,FishIcon:L4,FishOff:g4,FishOffIcon:g4,FishSymbol:x4,FishSymbolIcon:x4,Flag:C4,FlagIcon:C4,FlagOff:w4,FlagOffIcon:w4,FlagTriangleLeft:f4,FlagTriangleLeftIcon:f4,FlagTriangleRight:I4,FlagTriangleRightIcon:I4,Flame:b4,FlameIcon:b4,FlameKindling:N4,FlameKindlingIcon:N4,Flashlight:q4,FlashlightIcon:q4,FlashlightOff:$4,FlashlightOffIcon:$4,FlaskConical:S4,FlaskConicalIcon:S4,FlaskConicalOff:z4,FlaskConicalOffIcon:z4,FlaskRound:A4,FlaskRoundIcon:A4,FlipHorizontal:H4,FlipHorizontal2:j4,FlipHorizontal2Icon:j4,FlipHorizontalIcon:H4,FlipVertical:P4,FlipVertical2:V4,FlipVertical2Icon:V4,FlipVerticalIcon:P4,Flower:F4,Flower2:B4,Flower2Icon:B4,FlowerIcon:F4,Focus:D4,FocusIcon:D4,FoldHorizontal:R4,FoldHorizontalIcon:R4,FoldVertical:T4,FoldVerticalIcon:T4,Folder:M5,FolderArchive:U4,FolderArchiveIcon:U4,FolderCheck:O4,FolderCheckIcon:O4,FolderClock:Z4,FolderClockIcon:Z4,FolderClosed:G4,FolderClosedIcon:G4,FolderCode:W4,FolderCodeIcon:W4,FolderCog:d2,FolderCog2:d2,FolderCog2Icon:d2,FolderCogIcon:d2,FolderDot:E4,FolderDotIcon:E4,FolderDown:X4,FolderDownIcon:X4,FolderEdit:n2,FolderEditIcon:n2,FolderGit:Q4,FolderGit2:K4,FolderGit2Icon:K4,FolderGitIcon:Q4,FolderHeart:J4,FolderHeartIcon:J4,FolderIcon:M5,FolderInput:Y4,FolderInputIcon:Y4,FolderKanban:e5,FolderKanbanIcon:e5,FolderKey:a5,FolderKeyIcon:a5,FolderLock:c5,FolderLockIcon:c5,FolderMinus:t5,FolderMinusIcon:t5,FolderOpen:d5,FolderOpenDot:o5,FolderOpenDotIcon:o5,FolderOpenIcon:d5,FolderOutput:n5,FolderOutputIcon:n5,FolderPen:n2,FolderPenIcon:n2,FolderPlus:h5,FolderPlusIcon:h5,FolderRoot:i5,FolderRootIcon:i5,FolderSearch:r5,FolderSearch2:y5,FolderSearch2Icon:y5,FolderSearchIcon:r5,FolderSymlink:k5,FolderSymlinkIcon:k5,FolderSync:p5,FolderSyncIcon:p5,FolderTree:s5,FolderTreeIcon:s5,FolderUp:l5,FolderUpIcon:l5,FolderX:u5,FolderXIcon:u5,Folders:v5,FoldersIcon:v5,Footprints:m5,FootprintsIcon:m5,ForkKnife:m0,ForkKnifeCrossed:v0,ForkKnifeCrossedIcon:v0,ForkKnifeIcon:m0,Forklift:_5,ForkliftIcon:_5,Form:g5,FormIcon:g5,FormInput:O2,FormInputIcon:O2,Forward:x5,ForwardIcon:x5,Frame:L5,FrameIcon:L5,Framer:w5,FramerIcon:w5,Frown:f5,FrownIcon:f5,Fuel:I5,FuelIcon:I5,Fullscreen:C5,FullscreenIcon:C5,FunctionSquare:Ne,FunctionSquareIcon:Ne,Funnel:i2,FunnelIcon:i2,FunnelPlus:N5,FunnelPlusIcon:N5,FunnelX:h2,FunnelXIcon:h2,GalleryHorizontal:$5,GalleryHorizontalEnd:b5,GalleryHorizontalEndIcon:b5,GalleryHorizontalIcon:$5,GalleryThumbnails:q5,GalleryThumbnailsIcon:q5,GalleryVertical:S5,GalleryVerticalEnd:z5,GalleryVerticalEndIcon:z5,GalleryVerticalIcon:S5,Gamepad:j5,Gamepad2:A5,Gamepad2Icon:A5,GamepadDirectional:H5,GamepadDirectionalIcon:H5,GamepadIcon:j5,GanttChart:R,GanttChartIcon:R,GanttChartSquare:r,GanttChartSquareIcon:r,Gauge:V5,GaugeCircle:h1,GaugeCircleIcon:h1,GaugeIcon:V5,Gavel:P5,GavelIcon:P5,Gem:B5,GemIcon:B5,GeorgianLari:F5,GeorgianLariIcon:F5,Ghost:D5,GhostIcon:D5,Gift:T5,GiftIcon:T5,GitBranch:O5,GitBranchIcon:O5,GitBranchMinus:R5,GitBranchMinusIcon:R5,GitBranchPlus:U5,GitBranchPlusIcon:U5,GitCommit:y2,GitCommitHorizontal:y2,GitCommitHorizontalIcon:y2,GitCommitIcon:y2,GitCommitVertical:G5,GitCommitVerticalIcon:G5,GitCompare:W5,GitCompareArrows:Z5,GitCompareArrowsIcon:Z5,GitCompareIcon:W5,GitFork:X5,GitForkIcon:X5,GitGraph:E5,GitGraphIcon:E5,GitMerge:Q5,GitMergeIcon:Q5,GitPullRequest:cr,GitPullRequestArrow:K5,GitPullRequestArrowIcon:K5,GitPullRequestClosed:J5,GitPullRequestClosedIcon:J5,GitPullRequestCreate:Y5,GitPullRequestCreateArrow:er,GitPullRequestCreateArrowIcon:er,GitPullRequestCreateIcon:Y5,GitPullRequestDraft:ar,GitPullRequestDraftIcon:ar,GitPullRequestIcon:cr,Github:tr,GithubIcon:tr,Gitlab:or,GitlabIcon:or,GlassWater:dr,GlassWaterIcon:dr,Glasses:nr,GlassesIcon:nr,Globe:ir,Globe2:q1,Globe2Icon:q1,GlobeIcon:ir,GlobeLock:hr,GlobeLockIcon:hr,Goal:yr,GoalIcon:yr,Gpu:rr,GpuIcon:rr,Grab:l2,GrabIcon:l2,GraduationCap:kr,GraduationCapIcon:kr,Grape:pr,GrapeIcon:pr,Grid:h,Grid2X2:s2,Grid2X2Check:r2,Grid2X2CheckIcon:r2,Grid2X2Icon:s2,Grid2X2Plus:k2,Grid2X2PlusIcon:k2,Grid2X2X:p2,Grid2X2XIcon:p2,Grid2x2:s2,Grid2x2Check:r2,Grid2x2CheckIcon:r2,Grid2x2Icon:s2,Grid2x2Plus:k2,Grid2x2PlusIcon:k2,Grid2x2X:p2,Grid2x2XIcon:p2,Grid3X3:h,Grid3X3Icon:h,Grid3x2:sr,Grid3x2Icon:sr,Grid3x3:h,Grid3x3Icon:h,GridIcon:h,Grip:Mr,GripHorizontal:lr,GripHorizontalIcon:lr,GripIcon:Mr,GripVertical:ur,GripVerticalIcon:ur,Group:vr,GroupIcon:vr,Guitar:_r,GuitarIcon:_r,Ham:mr,HamIcon:mr,Hamburger:gr,HamburgerIcon:gr,Hammer:xr,HammerIcon:xr,Hand:Nr,HandCoins:Lr,HandCoinsIcon:Lr,HandFist:wr,HandFistIcon:wr,HandGrab:l2,HandGrabIcon:l2,HandHeart:fr,HandHeartIcon:fr,HandHelping:u2,HandHelpingIcon:u2,HandIcon:Nr,HandMetal:Ir,HandMetalIcon:Ir,HandPlatter:Cr,HandPlatterIcon:Cr,Handbag:br,HandbagIcon:br,Handshake:$r,HandshakeIcon:$r,HardDrive:Sr,HardDriveDownload:qr,HardDriveDownloadIcon:qr,HardDriveIcon:Sr,HardDriveUpload:zr,HardDriveUploadIcon:zr,HardHat:Ar,HardHatIcon:Ar,Hash:Hr,HashIcon:Hr,HatGlasses:jr,HatGlassesIcon:jr,Haze:Vr,HazeIcon:Vr,HdmiPort:Pr,HdmiPortIcon:Pr,Heading:Or,Heading1:Br,Heading1Icon:Br,Heading2:Fr,Heading2Icon:Fr,Heading3:Dr,Heading3Icon:Dr,Heading4:Rr,Heading4Icon:Rr,Heading5:Tr,Heading5Icon:Tr,Heading6:Ur,Heading6Icon:Ur,HeadingIcon:Or,HeadphoneOff:Gr,HeadphoneOffIcon:Gr,Headphones:Zr,HeadphonesIcon:Zr,Headset:Wr,HeadsetIcon:Wr,Heart:ek,HeartCrack:Er,HeartCrackIcon:Er,HeartHandshake:Xr,HeartHandshakeIcon:Xr,HeartIcon:ek,HeartMinus:Kr,HeartMinusIcon:Kr,HeartOff:Qr,HeartOffIcon:Qr,HeartPlus:Jr,HeartPlusIcon:Jr,HeartPulse:Yr,HeartPulseIcon:Yr,Heater:ak,HeaterIcon:ak,Helicopter:ck,HelicopterIcon:ck,HelpCircle:o,HelpCircleIcon:o,HelpingHand:u2,HelpingHandIcon:u2,Hexagon:tk,HexagonIcon:tk,Highlighter:ok,HighlighterIcon:ok,History:dk,HistoryIcon:dk,Home:M2,HomeIcon:M2,Hop:hk,HopIcon:hk,HopOff:nk,HopOffIcon:nk,Hospital:ik,HospitalIcon:ik,Hotel:yk,HotelIcon:yk,Hourglass:rk,HourglassIcon:rk,House:M2,HouseHeart:kk,HouseHeartIcon:kk,HouseIcon:M2,HousePlug:pk,HousePlugIcon:pk,HousePlus:sk,HousePlusIcon:sk,HouseWifi:lk,HouseWifiIcon:lk,IceCream:m2,IceCream2:v2,IceCream2Icon:v2,IceCreamBowl:v2,IceCreamBowlIcon:v2,IceCreamCone:m2,IceCreamConeIcon:m2,IceCreamIcon:m2,Icon:E_,IdCard:Mk,IdCardIcon:Mk,IdCardLanyard:uk,IdCardLanyardIcon:uk,Image:fk,ImageDown:vk,ImageDownIcon:vk,ImageIcon:fk,ImageMinus:mk,ImageMinusIcon:mk,ImageOff:_k,ImageOffIcon:_k,ImagePlay:gk,ImagePlayIcon:gk,ImagePlus:xk,ImagePlusIcon:xk,ImageUp:Lk,ImageUpIcon:Lk,ImageUpscale:wk,ImageUpscaleIcon:wk,Images:Ik,ImagesIcon:Ik,Import:Ck,ImportIcon:Ck,Inbox:Nk,InboxIcon:Nk,Indent:y,IndentDecrease:i,IndentDecreaseIcon:i,IndentIcon:y,IndentIncrease:y,IndentIncreaseIcon:y,IndianRupee:bk,IndianRupeeIcon:bk,Infinity:qk,InfinityIcon:qk,Info:$k,InfoIcon:$k,Inspect:He,InspectIcon:He,InspectionPanel:zk,InspectionPanelIcon:zk,Instagram:Sk,InstagramIcon:Sk,Italic:Ak,ItalicIcon:Ak,IterationCcw:Hk,IterationCcwIcon:Hk,IterationCw:jk,IterationCwIcon:jk,JapaneseYen:Vk,JapaneseYenIcon:Vk,Joystick:Pk,JoystickIcon:Pk,Kanban:Fk,KanbanIcon:Fk,KanbanSquare:$e,KanbanSquareDashed:Le,KanbanSquareDashedIcon:Le,KanbanSquareIcon:$e,Kayak:Bk,KayakIcon:Bk,Key:Tk,KeyIcon:Tk,KeyRound:Dk,KeyRoundIcon:Dk,KeySquare:Rk,KeySquareIcon:Rk,Keyboard:Gk,KeyboardIcon:Gk,KeyboardMusic:Uk,KeyboardMusicIcon:Uk,KeyboardOff:Ok,KeyboardOffIcon:Ok,Lamp:Qk,LampCeiling:Zk,LampCeilingIcon:Zk,LampDesk:Wk,LampDeskIcon:Wk,LampFloor:Ek,LampFloorIcon:Ek,LampIcon:Qk,LampWallDown:Xk,LampWallDownIcon:Xk,LampWallUp:Kk,LampWallUpIcon:Kk,LandPlot:Jk,LandPlotIcon:Jk,Landmark:Yk,LandmarkIcon:Yk,Languages:ep,LanguagesIcon:ep,Laptop:cp,Laptop2:_2,Laptop2Icon:_2,LaptopIcon:cp,LaptopMinimal:_2,LaptopMinimalCheck:ap,LaptopMinimalCheckIcon:ap,LaptopMinimalIcon:_2,Lasso:op,LassoIcon:op,LassoSelect:tp,LassoSelectIcon:tp,Laugh:dp,LaughIcon:dp,Layers:g2,Layers2:np,Layers2Icon:np,Layers3:g2,Layers3Icon:g2,LayersIcon:g2,Layout:D2,LayoutDashboard:hp,LayoutDashboardIcon:hp,LayoutGrid:ip,LayoutGridIcon:ip,LayoutIcon:D2,LayoutList:yp,LayoutListIcon:yp,LayoutPanelLeft:rp,LayoutPanelLeftIcon:rp,LayoutPanelTop:kp,LayoutPanelTopIcon:kp,LayoutTemplate:pp,LayoutTemplateIcon:pp,Leaf:sp,LeafIcon:sp,LeafyGreen:lp,LeafyGreenIcon:lp,Lectern:up,LecternIcon:up,LetterText:c0,LetterTextIcon:c0,Library:vp,LibraryBig:Mp,LibraryBigIcon:Mp,LibraryIcon:vp,LibrarySquare:qe,LibrarySquareIcon:qe,LifeBuoy:gp,LifeBuoyIcon:gp,Ligature:mp,LigatureIcon:mp,Lightbulb:xp,LightbulbIcon:xp,LightbulbOff:_p,LightbulbOffIcon:_p,LineChart:B,LineChartIcon:B,LineSquiggle:Lp,LineSquiggleIcon:Lp,Link:Ip,Link2:fp,Link2Icon:fp,Link2Off:wp,Link2OffIcon:wp,LinkIcon:Ip,Linkedin:Cp,LinkedinIcon:Cp,List:Gp,ListCheck:Np,ListCheckIcon:Np,ListChecks:bp,ListChecksIcon:bp,ListChevronsDownUp:$p,ListChevronsDownUpIcon:$p,ListChevronsUpDown:qp,ListChevronsUpDownIcon:qp,ListCollapse:zp,ListCollapseIcon:zp,ListEnd:Sp,ListEndIcon:Sp,ListFilter:Hp,ListFilterIcon:Hp,ListFilterPlus:Ap,ListFilterPlusIcon:Ap,ListIcon:Gp,ListIndentDecrease:i,ListIndentDecreaseIcon:i,ListIndentIncrease:y,ListIndentIncreaseIcon:y,ListMinus:jp,ListMinusIcon:jp,ListMusic:Vp,ListMusicIcon:Vp,ListOrdered:Pp,ListOrderedIcon:Pp,ListPlus:Bp,ListPlusIcon:Bp,ListRestart:Fp,ListRestartIcon:Fp,ListStart:Dp,ListStartIcon:Dp,ListTodo:Tp,ListTodoIcon:Tp,ListTree:Rp,ListTreeIcon:Rp,ListVideo:Up,ListVideoIcon:Up,ListX:Op,ListXIcon:Op,Loader:Ep,Loader2:x2,Loader2Icon:x2,LoaderCircle:x2,LoaderCircleIcon:x2,LoaderIcon:Ep,LoaderPinwheel:Zp,LoaderPinwheelIcon:Zp,Locate:Kp,LocateFixed:Wp,LocateFixedIcon:Wp,LocateIcon:Kp,LocateOff:Xp,LocateOffIcon:Xp,LocationEdit:I2,LocationEditIcon:I2,Lock:Jp,LockIcon:Jp,LockKeyhole:Qp,LockKeyholeIcon:Qp,LockKeyholeOpen:L2,LockKeyholeOpenIcon:L2,LockOpen:w2,LockOpenIcon:w2,LogIn:Yp,LogInIcon:Yp,LogOut:e3,LogOutIcon:e3,Logs:a3,LogsIcon:a3,Lollipop:c3,LollipopIcon:c3,LucideAArrowDown:w0,LucideAArrowUp:f0,LucideALargeSmall:I0,LucideAccessibility:C0,LucideActivity:N0,LucideActivitySquare:ce,LucideAirVent:b0,LucideAirplay:$0,LucideAlarmCheck:l,LucideAlarmClock:z0,LucideAlarmClockCheck:l,LucideAlarmClockMinus:u,LucideAlarmClockOff:q0,LucideAlarmClockPlus:M,LucideAlarmMinus:u,LucideAlarmPlus:M,LucideAlarmSmoke:S0,LucideAlbum:A0,LucideAlertCircle:G,LucideAlertOctagon:$2,LucideAlertTriangle:h0,LucideAlignCenter:Ye,LucideAlignCenterHorizontal:H0,LucideAlignCenterVertical:j0,LucideAlignEndHorizontal:V0,LucideAlignEndVertical:P0,LucideAlignHorizontalDistributeCenter:B0,LucideAlignHorizontalDistributeEnd:F0,LucideAlignHorizontalDistributeStart:D0,LucideAlignHorizontalJustifyCenter:R0,LucideAlignHorizontalJustifyEnd:T0,LucideAlignHorizontalJustifyStart:U0,LucideAlignHorizontalSpaceAround:O0,LucideAlignHorizontalSpaceBetween:G0,LucideAlignJustify:a0,LucideAlignLeft:k,LucideAlignRight:e0,LucideAlignStartHorizontal:Z0,LucideAlignStartVertical:W0,LucideAlignVerticalDistributeCenter:E0,LucideAlignVerticalDistributeEnd:K0,LucideAlignVerticalDistributeStart:X0,LucideAlignVerticalJustifyCenter:Q0,LucideAlignVerticalJustifyEnd:J0,LucideAlignVerticalJustifyStart:Y0,LucideAlignVerticalSpaceAround:ea,LucideAlignVerticalSpaceBetween:ca,LucideAmbulance:aa,LucideAmpersand:ta,LucideAmpersands:oa,LucideAmphora:da,LucideAnchor:na,LucideAngry:ha,LucideAnnoyed:ia,LucideAntenna:ya,LucideAnvil:ra,LucideAperture:ka,LucideAppWindow:sa,LucideAppWindowMac:pa,LucideApple:la,LucideArchive:va,LucideArchiveRestore:ua,LucideArchiveX:Ma,LucideAreaChart:z,LucideArmchair:ma,LucideArrowBigDown:_a,LucideArrowBigDownDash:ga,LucideArrowBigLeft:La,LucideArrowBigLeftDash:xa,LucideArrowBigRight:fa,LucideArrowBigRightDash:wa,LucideArrowBigUp:Ca,LucideArrowBigUpDash:Ia,LucideArrowDown:Va,LucideArrowDown01:Na,LucideArrowDown10:ba,LucideArrowDownAZ:v,LucideArrowDownAz:v,LucideArrowDownCircle:Z,LucideArrowDownFromLine:$a,LucideArrowDownLeft:za,LucideArrowDownLeftFromCircle:X,LucideArrowDownLeftFromSquare:de,LucideArrowDownLeftSquare:ee,LucideArrowDownNarrowWide:qa,LucideArrowDownRight:Sa,LucideArrowDownRightFromCircle:E,LucideArrowDownRightFromSquare:ne,LucideArrowDownRightSquare:ae,LucideArrowDownSquare:te,LucideArrowDownToDot:Aa,LucideArrowDownToLine:Ha,LucideArrowDownUp:ja,LucideArrowDownWideNarrow:m,LucideArrowDownZA:_,LucideArrowDownZa:_,LucideArrowLeft:Da,LucideArrowLeftCircle:W,LucideArrowLeftFromLine:Pa,LucideArrowLeftRight:Ba,LucideArrowLeftSquare:oe,LucideArrowLeftToLine:Fa,LucideArrowRight:Oa,LucideArrowRightCircle:J,LucideArrowRightFromLine:Ra,LucideArrowRightLeft:Ta,LucideArrowRightSquare:ye,LucideArrowRightToLine:Ua,LucideArrowUp:ec,LucideArrowUp01:Ga,LucideArrowUp10:Za,LucideArrowUpAZ:g,LucideArrowUpAz:g,LucideArrowUpCircle:Y,LucideArrowUpDown:Wa,LucideArrowUpFromDot:Ea,LucideArrowUpFromLine:Xa,LucideArrowUpLeft:Ka,LucideArrowUpLeftFromCircle:K,LucideArrowUpLeftFromSquare:he,LucideArrowUpLeftSquare:re,LucideArrowUpNarrowWide:x,LucideArrowUpRight:Qa,LucideArrowUpRightFromCircle:Q,LucideArrowUpRightFromSquare:ie,LucideArrowUpRightSquare:ke,LucideArrowUpSquare:pe,LucideArrowUpToLine:Ja,LucideArrowUpWideNarrow:Ya,LucideArrowUpZA:L,LucideArrowUpZa:L,LucideArrowsUpFromLine:ac,LucideAsterisk:cc,LucideAsteriskSquare:se,LucideAtSign:tc,LucideAtom:oc,LucideAudioLines:dc,LucideAudioWaveform:nc,LucideAward:hc,LucideAxe:ic,LucideAxis3D:w,LucideAxis3d:w,LucideBaby:rc,LucideBackpack:yc,LucideBadge:Cc,LucideBadgeAlert:kc,LucideBadgeCent:pc,LucideBadgeCheck:f,LucideBadgeDollarSign:sc,LucideBadgeEuro:lc,LucideBadgeHelp:I,LucideBadgeIndianRupee:uc,LucideBadgeInfo:Mc,LucideBadgeJapaneseYen:vc,LucideBadgeMinus:mc,LucideBadgePercent:_c,LucideBadgePlus:gc,LucideBadgePoundSterling:xc,LucideBadgeQuestionMark:I,LucideBadgeRussianRuble:Lc,LucideBadgeSwissFranc:wc,LucideBadgeTurkishLira:fc,LucideBadgeX:Ic,LucideBaggageClaim:Nc,LucideBan:bc,LucideBanana:$c,LucideBandage:qc,LucideBanknote:Hc,LucideBanknoteArrowDown:zc,LucideBanknoteArrowUp:Sc,LucideBanknoteX:Ac,LucideBarChart:F,LucideBarChart2:D,LucideBarChart3:P,LucideBarChart4:V,LucideBarChartBig:j,LucideBarChartHorizontal:A,LucideBarChartHorizontalBig:S,LucideBarcode:jc,LucideBarrel:Vc,LucideBaseline:Pc,LucideBath:Bc,LucideBattery:Gc,LucideBatteryCharging:Fc,LucideBatteryFull:Dc,LucideBatteryLow:Rc,LucideBatteryMedium:Uc,LucideBatteryPlus:Tc,LucideBatteryWarning:Oc,LucideBeaker:Wc,LucideBean:Ec,LucideBeanOff:Zc,LucideBed:Qc,LucideBedDouble:Xc,LucideBedSingle:Kc,LucideBeef:Jc,LucideBeer:et,LucideBeerOff:Yc,LucideBell:ht,LucideBellDot:at,LucideBellElectric:ct,LucideBellMinus:tt,LucideBellOff:ot,LucideBellPlus:dt,LucideBellRing:nt,LucideBetweenHorizonalEnd:C,LucideBetweenHorizonalStart:N,LucideBetweenHorizontalEnd:C,LucideBetweenHorizontalStart:N,LucideBetweenVerticalEnd:it,LucideBetweenVerticalStart:rt,LucideBicepsFlexed:yt,LucideBike:kt,LucideBinary:pt,LucideBinoculars:st,LucideBiohazard:lt,LucideBird:ut,LucideBirdhouse:Mt,LucideBitcoin:vt,LucideBlend:mt,LucideBlinds:_t,LucideBlocks:gt,LucideBluetooth:ft,LucideBluetoothConnected:xt,LucideBluetoothOff:Lt,LucideBluetoothSearching:wt,LucideBold:It,LucideBolt:Ct,LucideBomb:Nt,LucideBone:bt,LucideBook:Yt,LucideBookA:$t,LucideBookAlert:qt,LucideBookAudio:At,LucideBookCheck:zt,LucideBookCopy:St,LucideBookDashed:b,LucideBookDown:Ht,LucideBookHeadphones:jt,LucideBookHeart:Vt,LucideBookImage:Pt,LucideBookKey:Bt,LucideBookLock:Ft,LucideBookMarked:Dt,LucideBookMinus:Tt,LucideBookOpen:Ot,LucideBookOpenCheck:Rt,LucideBookOpenText:Ut,LucideBookPlus:Gt,LucideBookSearch:Zt,LucideBookTemplate:b,LucideBookText:Wt,LucideBookType:Et,LucideBookUp:Kt,LucideBookUp2:Xt,LucideBookUser:Qt,LucideBookX:Jt,LucideBookmark:oo,LucideBookmarkCheck:eo,LucideBookmarkMinus:ao,LucideBookmarkPlus:co,LucideBookmarkX:to,LucideBoomBox:no,LucideBot:yo,LucideBotMessageSquare:ho,LucideBotOff:io,LucideBottleWine:ro,LucideBowArrow:ko,LucideBox:po,LucideBoxSelect:fe,LucideBoxes:so,LucideBraces:$,LucideBrackets:lo,LucideBrain:vo,LucideBrainCircuit:uo,LucideBrainCog:Mo,LucideBrickWall:go,LucideBrickWallFire:mo,LucideBrickWallShield:_o,LucideBriefcase:wo,LucideBriefcaseBusiness:xo,LucideBriefcaseConveyorBelt:Lo,LucideBriefcaseMedical:fo,LucideBringToFront:Io,LucideBrush:No,LucideBrushCleaning:Co,LucideBubbles:bo,LucideBug:Ao,LucideBugOff:$o,LucideBugPlay:qo,LucideBuilding:So,LucideBuilding2:zo,LucideBus:jo,LucideBusFront:Ho,LucideCable:Po,LucideCableCar:Vo,LucideCake:Fo,LucideCakeSlice:Bo,LucideCalculator:Do,LucideCalendar:hd,LucideCalendar1:Ro,LucideCalendarArrowDown:To,LucideCalendarArrowUp:Uo,LucideCalendarCheck:Go,LucideCalendarCheck2:Oo,LucideCalendarClock:Zo,LucideCalendarCog:Wo,LucideCalendarDays:Eo,LucideCalendarFold:Xo,LucideCalendarHeart:Ko,LucideCalendarMinus:Yo,LucideCalendarMinus2:Qo,LucideCalendarOff:Jo,LucideCalendarPlus:ad,LucideCalendarPlus2:ed,LucideCalendarRange:cd,LucideCalendarSearch:td,LucideCalendarSync:od,LucideCalendarX:nd,LucideCalendarX2:dd,LucideCalendars:id,LucideCamera:rd,LucideCameraOff:yd,LucideCandlestickChart:H,LucideCandy:sd,LucideCandyCane:kd,LucideCandyOff:pd,LucideCannabis:ld,LucideCaptions:q,LucideCaptionsOff:ud,LucideCar:md,LucideCarFront:Md,LucideCarTaxiFront:vd,LucideCaravan:_d,LucideCardSim:gd,LucideCarrot:xd,LucideCaseLower:Ld,LucideCaseSensitive:wd,LucideCaseUpper:fd,LucideCassetteTape:Id,LucideCast:Cd,LucideCastle:Nd,LucideCat:bd,LucideCctv:$d,LucideChartArea:z,LucideChartBar:A,LucideChartBarBig:S,LucideChartBarDecreasing:qd,LucideChartBarIncreasing:Sd,LucideChartBarStacked:zd,LucideChartCandlestick:H,LucideChartColumn:P,LucideChartColumnBig:j,LucideChartColumnDecreasing:Ad,LucideChartColumnIncreasing:V,LucideChartColumnStacked:Hd,LucideChartGantt:jd,LucideChartLine:B,LucideChartNetwork:Vd,LucideChartNoAxesColumn:D,LucideChartNoAxesColumnDecreasing:Pd,LucideChartNoAxesColumnIncreasing:F,LucideChartNoAxesCombined:Bd,LucideChartNoAxesGantt:R,LucideChartPie:T,LucideChartScatter:U,LucideChartSpline:Fd,LucideCheck:Td,LucideCheckCheck:Dd,LucideCheckCircle:e1,LucideCheckCircle2:a1,LucideCheckLine:Rd,LucideCheckSquare:ue,LucideCheckSquare2:Me,LucideChefHat:Ud,LucideCherry:Od,LucideChessBishop:Gd,LucideChessKing:Zd,LucideChessKnight:Wd,LucideChessPawn:Ed,LucideChessQueen:Xd,LucideChessRook:Kd,LucideChevronDown:Qd,LucideChevronDownCircle:c1,LucideChevronDownSquare:ve,LucideChevronFirst:Jd,LucideChevronLast:Yd,LucideChevronLeft:en,LucideChevronLeftCircle:t1,LucideChevronLeftSquare:me,LucideChevronRight:an,LucideChevronRightCircle:o1,LucideChevronRightSquare:_e,LucideChevronUp:cn,LucideChevronUpCircle:d1,LucideChevronUpSquare:ge,LucideChevronsDown:on,LucideChevronsDownUp:tn,LucideChevronsLeft:hn,LucideChevronsLeftRight:nn,LucideChevronsLeftRightEllipsis:dn,LucideChevronsRight:rn,LucideChevronsRightLeft:yn,LucideChevronsUp:pn,LucideChevronsUpDown:kn,LucideChrome:O,LucideChromium:O,LucideChurch:sn,LucideCigarette:un,LucideCigaretteOff:ln,LucideCircle:$n,LucideCircleAlert:G,LucideCircleArrowDown:Z,LucideCircleArrowLeft:W,LucideCircleArrowOutDownLeft:X,LucideCircleArrowOutDownRight:E,LucideCircleArrowOutUpLeft:K,LucideCircleArrowOutUpRight:Q,LucideCircleArrowRight:J,LucideCircleArrowUp:Y,LucideCircleCheck:a1,LucideCircleCheckBig:e1,LucideCircleChevronDown:c1,LucideCircleChevronLeft:t1,LucideCircleChevronRight:o1,LucideCircleChevronUp:d1,LucideCircleDashed:Mn,LucideCircleDivide:n1,LucideCircleDollarSign:vn,LucideCircleDot:_n,LucideCircleDotDashed:mn,LucideCircleEllipsis:gn,LucideCircleEqual:xn,LucideCircleFadingArrowUp:Ln,LucideCircleFadingPlus:wn,LucideCircleGauge:h1,LucideCircleHelp:o,LucideCircleMinus:i1,LucideCircleOff:fn,LucideCircleParking:r1,LucideCircleParkingOff:y1,LucideCirclePause:k1,LucideCirclePercent:p1,LucideCirclePlay:s1,LucideCirclePlus:l1,LucideCirclePoundSterling:In,LucideCirclePower:u1,LucideCircleQuestionMark:o,LucideCircleSlash:Cn,LucideCircleSlash2:M1,LucideCircleSlashed:M1,LucideCircleSmall:Nn,LucideCircleStar:bn,LucideCircleStop:v1,LucideCircleUser:_1,LucideCircleUserRound:m1,LucideCircleX:g1,LucideCircuitBoard:qn,LucideCitrus:zn,LucideClapperboard:Sn,LucideClipboard:Tn,LucideClipboardCheck:An,LucideClipboardClock:Hn,LucideClipboardCopy:jn,LucideClipboardEdit:L1,LucideClipboardList:Vn,LucideClipboardMinus:Pn,LucideClipboardPaste:Bn,LucideClipboardPen:L1,LucideClipboardPenLine:x1,LucideClipboardPlus:Fn,LucideClipboardSignature:x1,LucideClipboardType:Dn,LucideClipboardX:Rn,LucideClock:hh,LucideClock1:Un,LucideClock10:Gn,LucideClock11:On,LucideClock12:Zn,LucideClock2:Wn,LucideClock3:En,LucideClock4:Xn,LucideClock5:Qn,LucideClock6:Kn,LucideClock7:Jn,LucideClock8:Yn,LucideClock9:eh,LucideClockAlert:ah,LucideClockArrowDown:ch,LucideClockArrowUp:oh,LucideClockCheck:th,LucideClockFading:dh,LucideClockPlus:nh,LucideClosedCaption:ih,LucideCloud:fh,LucideCloudAlert:yh,LucideCloudCheck:rh,LucideCloudCog:kh,LucideCloudDownload:w1,LucideCloudDrizzle:ph,LucideCloudFog:sh,LucideCloudHail:lh,LucideCloudLightning:uh,LucideCloudMoon:vh,LucideCloudMoonRain:Mh,LucideCloudOff:mh,LucideCloudRain:gh,LucideCloudRainWind:_h,LucideCloudSnow:xh,LucideCloudSun:wh,LucideCloudSunRain:Lh,LucideCloudUpload:f1,LucideCloudy:Ih,LucideClover:Ch,LucideClub:Nh,LucideCode:bh,LucideCode2:I1,LucideCodeSquare:xe,LucideCodeXml:I1,LucideCodepen:$h,LucideCodesandbox:qh,LucideCoffee:zh,LucideCog:Sh,LucideCoins:Ah,LucideColumns:C1,LucideColumns2:C1,LucideColumns3:N1,LucideColumns3Cog:d,LucideColumns4:Hh,LucideColumnsSettings:d,LucideCombine:jh,LucideCommand:Vh,LucideCompass:Ph,LucideComponent:Bh,LucideComputer:Fh,LucideConciergeBell:Dh,LucideCone:Rh,LucideConstruction:Th,LucideContact:Uh,LucideContact2:b1,LucideContactRound:b1,LucideContainer:Oh,LucideContrast:Gh,LucideCookie:Zh,LucideCookingPot:Wh,LucideCopy:Yh,LucideCopyCheck:Eh,LucideCopyMinus:Xh,LucideCopyPlus:Kh,LucideCopySlash:Qh,LucideCopyX:Jh,LucideCopyleft:ei,LucideCopyright:ai,LucideCornerDownLeft:ci,LucideCornerDownRight:ti,LucideCornerLeftDown:oi,LucideCornerLeftUp:di,LucideCornerRightDown:ni,LucideCornerRightUp:hi,LucideCornerUpLeft:ii,LucideCornerUpRight:yi,LucideCpu:ri,LucideCreativeCommons:ki,LucideCreditCard:pi,LucideCroissant:si,LucideCrop:li,LucideCross:ui,LucideCrosshair:Mi,LucideCrown:vi,LucideCuboid:mi,LucideCupSoda:_i,LucideCurlyBraces:$,LucideCurrency:gi,LucideCylinder:xi,LucideDam:Li,LucideDatabase:Ii,LucideDatabaseBackup:wi,LucideDatabaseZap:fi,LucideDecimalsArrowLeft:Ci,LucideDecimalsArrowRight:Ni,LucideDelete:bi,LucideDessert:$i,LucideDiameter:qi,LucideDiamond:Ai,LucideDiamondMinus:zi,LucideDiamondPercent:$1,LucideDiamondPlus:Si,LucideDice1:Hi,LucideDice2:ji,LucideDice3:Vi,LucideDice4:Pi,LucideDice5:Bi,LucideDice6:Fi,LucideDices:Di,LucideDiff:Ri,LucideDisc:Gi,LucideDisc2:Ti,LucideDisc3:Oi,LucideDiscAlbum:Ui,LucideDivide:Zi,LucideDivideCircle:n1,LucideDivideSquare:Ie,LucideDna:Ei,LucideDnaOff:Wi,LucideDock:Xi,LucideDog:Ki,LucideDollarSign:Qi,LucideDonut:Ji,LucideDoorClosed:ey,LucideDoorClosedLocked:Yi,LucideDoorOpen:ay,LucideDot:cy,LucideDotSquare:Ce,LucideDownload:ty,LucideDownloadCloud:w1,LucideDraftingCompass:dy,LucideDrama:oy,LucideDribbble:ny,LucideDrill:hy,LucideDrone:iy,LucideDroplet:ry,LucideDropletOff:yy,LucideDroplets:ky,LucideDrum:ly,LucideDrumstick:py,LucideDumbbell:sy,LucideEar:My,LucideEarOff:uy,LucideEarth:q1,LucideEarthLock:vy,LucideEclipse:my,LucideEdit:t,LucideEdit2:T2,LucideEdit3:R2,LucideEgg:xy,LucideEggFried:_y,LucideEggOff:gy,LucideEllipsis:S1,LucideEllipsisVertical:z1,LucideEqual:fy,LucideEqualApproximately:Ly,LucideEqualNot:wy,LucideEqualSquare:be,LucideEraser:Iy,LucideEthernetPort:Cy,LucideEuro:Ny,LucideEvCharger:by,LucideExpand:$y,LucideExternalLink:qy,LucideEye:Ay,LucideEyeClosed:zy,LucideEyeOff:Sy,LucideFacebook:Hy,LucideFactory:jy,LucideFan:Vy,LucideFastForward:By,LucideFeather:Py,LucideFence:Fy,LucideFerrisWheel:Dy,LucideFigma:Ry,LucideFile:M4,LucideFileArchive:Ty,LucideFileAudio:n,LucideFileAudio2:n,LucideFileAxis3D:A1,LucideFileAxis3d:A1,LucideFileBadge:H1,LucideFileBadge2:H1,LucideFileBarChart:P1,LucideFileBarChart2:B1,LucideFileBox:Uy,LucideFileBraces:V1,LucideFileBracesCorner:j1,LucideFileChartColumn:B1,LucideFileChartColumnIncreasing:P1,LucideFileChartLine:F1,LucideFileChartPie:D1,LucideFileCheck:Oy,LucideFileCheck2:R1,LucideFileCheckCorner:R1,LucideFileClock:Gy,LucideFileCode:Zy,LucideFileCode2:T1,LucideFileCodeCorner:T1,LucideFileCog:U1,LucideFileCog2:U1,LucideFileDiff:Wy,LucideFileDigit:Ey,LucideFileDown:Xy,LucideFileEdit:X1,LucideFileExclamationPoint:O1,LucideFileHeadphone:n,LucideFileHeart:Ky,LucideFileImage:Qy,LucideFileInput:Jy,LucideFileJson:V1,LucideFileJson2:j1,LucideFileKey:G1,LucideFileKey2:G1,LucideFileLineChart:F1,LucideFileLock:Z1,LucideFileLock2:Z1,LucideFileMinus:Yy,LucideFileMinus2:W1,LucideFileMinusCorner:W1,LucideFileMusic:e4,LucideFileOutput:a4,LucideFilePen:X1,LucideFilePenLine:E1,LucideFilePieChart:D1,LucideFilePlay:K1,LucideFilePlus:c4,LucideFilePlus2:Q1,LucideFilePlusCorner:Q1,LucideFileQuestion:J1,LucideFileQuestionMark:J1,LucideFileScan:t4,LucideFileSearch:o4,LucideFileSearch2:Y1,LucideFileSearchCorner:Y1,LucideFileSignal:e2,LucideFileSignature:E1,LucideFileSliders:d4,LucideFileSpreadsheet:i4,LucideFileStack:n4,LucideFileSymlink:h4,LucideFileTerminal:y4,LucideFileText:r4,LucideFileType:k4,LucideFileType2:a2,LucideFileTypeCorner:a2,LucideFileUp:p4,LucideFileUser:s4,LucideFileVideo:K1,LucideFileVideo2:c2,LucideFileVideoCamera:c2,LucideFileVolume:l4,LucideFileVolume2:e2,LucideFileWarning:O1,LucideFileX:u4,LucideFileX2:t2,LucideFileXCorner:t2,LucideFiles:v4,LucideFilm:m4,LucideFilter:i2,LucideFilterX:h2,LucideFingerprint:o2,LucideFingerprintPattern:o2,LucideFireExtinguisher:_4,LucideFish:L4,LucideFishOff:g4,LucideFishSymbol:x4,LucideFlag:C4,LucideFlagOff:w4,LucideFlagTriangleLeft:f4,LucideFlagTriangleRight:I4,LucideFlame:b4,LucideFlameKindling:N4,LucideFlashlight:q4,LucideFlashlightOff:$4,LucideFlaskConical:S4,LucideFlaskConicalOff:z4,LucideFlaskRound:A4,LucideFlipHorizontal:H4,LucideFlipHorizontal2:j4,LucideFlipVertical:P4,LucideFlipVertical2:V4,LucideFlower:F4,LucideFlower2:B4,LucideFocus:D4,LucideFoldHorizontal:R4,LucideFoldVertical:T4,LucideFolder:M5,LucideFolderArchive:U4,LucideFolderCheck:O4,LucideFolderClock:Z4,LucideFolderClosed:G4,LucideFolderCode:W4,LucideFolderCog:d2,LucideFolderCog2:d2,LucideFolderDot:E4,LucideFolderDown:X4,LucideFolderEdit:n2,LucideFolderGit:Q4,LucideFolderGit2:K4,LucideFolderHeart:J4,LucideFolderInput:Y4,LucideFolderKanban:e5,LucideFolderKey:a5,LucideFolderLock:c5,LucideFolderMinus:t5,LucideFolderOpen:d5,LucideFolderOpenDot:o5,LucideFolderOutput:n5,LucideFolderPen:n2,LucideFolderPlus:h5,LucideFolderRoot:i5,LucideFolderSearch:r5,LucideFolderSearch2:y5,LucideFolderSymlink:k5,LucideFolderSync:p5,LucideFolderTree:s5,LucideFolderUp:l5,LucideFolderX:u5,LucideFolders:v5,LucideFootprints:m5,LucideForkKnife:m0,LucideForkKnifeCrossed:v0,LucideForklift:_5,LucideForm:g5,LucideFormInput:O2,LucideForward:x5,LucideFrame:L5,LucideFramer:w5,LucideFrown:f5,LucideFuel:I5,LucideFullscreen:C5,LucideFunctionSquare:Ne,LucideFunnel:i2,LucideFunnelPlus:N5,LucideFunnelX:h2,LucideGalleryHorizontal:$5,LucideGalleryHorizontalEnd:b5,LucideGalleryThumbnails:q5,LucideGalleryVertical:S5,LucideGalleryVerticalEnd:z5,LucideGamepad:j5,LucideGamepad2:A5,LucideGamepadDirectional:H5,LucideGanttChart:R,LucideGanttChartSquare:r,LucideGauge:V5,LucideGaugeCircle:h1,LucideGavel:P5,LucideGem:B5,LucideGeorgianLari:F5,LucideGhost:D5,LucideGift:T5,LucideGitBranch:O5,LucideGitBranchMinus:R5,LucideGitBranchPlus:U5,LucideGitCommit:y2,LucideGitCommitHorizontal:y2,LucideGitCommitVertical:G5,LucideGitCompare:W5,LucideGitCompareArrows:Z5,LucideGitFork:X5,LucideGitGraph:E5,LucideGitMerge:Q5,LucideGitPullRequest:cr,LucideGitPullRequestArrow:K5,LucideGitPullRequestClosed:J5,LucideGitPullRequestCreate:Y5,LucideGitPullRequestCreateArrow:er,LucideGitPullRequestDraft:ar,LucideGithub:tr,LucideGitlab:or,LucideGlassWater:dr,LucideGlasses:nr,LucideGlobe:ir,LucideGlobe2:q1,LucideGlobeLock:hr,LucideGoal:yr,LucideGpu:rr,LucideGrab:l2,LucideGraduationCap:kr,LucideGrape:pr,LucideGrid:h,LucideGrid2X2:s2,LucideGrid2X2Check:r2,LucideGrid2X2Plus:k2,LucideGrid2X2X:p2,LucideGrid2x2:s2,LucideGrid2x2Check:r2,LucideGrid2x2Plus:k2,LucideGrid2x2X:p2,LucideGrid3X3:h,LucideGrid3x2:sr,LucideGrid3x3:h,LucideGrip:Mr,LucideGripHorizontal:lr,LucideGripVertical:ur,LucideGroup:vr,LucideGuitar:_r,LucideHam:mr,LucideHamburger:gr,LucideHammer:xr,LucideHand:Nr,LucideHandCoins:Lr,LucideHandFist:wr,LucideHandGrab:l2,LucideHandHeart:fr,LucideHandHelping:u2,LucideHandMetal:Ir,LucideHandPlatter:Cr,LucideHandbag:br,LucideHandshake:$r,LucideHardDrive:Sr,LucideHardDriveDownload:qr,LucideHardDriveUpload:zr,LucideHardHat:Ar,LucideHash:Hr,LucideHatGlasses:jr,LucideHaze:Vr,LucideHdmiPort:Pr,LucideHeading:Or,LucideHeading1:Br,LucideHeading2:Fr,LucideHeading3:Dr,LucideHeading4:Rr,LucideHeading5:Tr,LucideHeading6:Ur,LucideHeadphoneOff:Gr,LucideHeadphones:Zr,LucideHeadset:Wr,LucideHeart:ek,LucideHeartCrack:Er,LucideHeartHandshake:Xr,LucideHeartMinus:Kr,LucideHeartOff:Qr,LucideHeartPlus:Jr,LucideHeartPulse:Yr,LucideHeater:ak,LucideHelicopter:ck,LucideHelpCircle:o,LucideHelpingHand:u2,LucideHexagon:tk,LucideHighlighter:ok,LucideHistory:dk,LucideHome:M2,LucideHop:hk,LucideHopOff:nk,LucideHospital:ik,LucideHotel:yk,LucideHourglass:rk,LucideHouse:M2,LucideHouseHeart:kk,LucideHousePlug:pk,LucideHousePlus:sk,LucideHouseWifi:lk,LucideIceCream:m2,LucideIceCream2:v2,LucideIceCreamBowl:v2,LucideIceCreamCone:m2,LucideIdCard:Mk,LucideIdCardLanyard:uk,LucideImage:fk,LucideImageDown:vk,LucideImageMinus:mk,LucideImageOff:_k,LucideImagePlay:gk,LucideImagePlus:xk,LucideImageUp:Lk,LucideImageUpscale:wk,LucideImages:Ik,LucideImport:Ck,LucideInbox:Nk,LucideIndent:y,LucideIndentDecrease:i,LucideIndentIncrease:y,LucideIndianRupee:bk,LucideInfinity:qk,LucideInfo:$k,LucideInspect:He,LucideInspectionPanel:zk,LucideInstagram:Sk,LucideItalic:Ak,LucideIterationCcw:Hk,LucideIterationCw:jk,LucideJapaneseYen:Vk,LucideJoystick:Pk,LucideKanban:Fk,LucideKanbanSquare:$e,LucideKanbanSquareDashed:Le,LucideKayak:Bk,LucideKey:Tk,LucideKeyRound:Dk,LucideKeySquare:Rk,LucideKeyboard:Gk,LucideKeyboardMusic:Uk,LucideKeyboardOff:Ok,LucideLamp:Qk,LucideLampCeiling:Zk,LucideLampDesk:Wk,LucideLampFloor:Ek,LucideLampWallDown:Xk,LucideLampWallUp:Kk,LucideLandPlot:Jk,LucideLandmark:Yk,LucideLanguages:ep,LucideLaptop:cp,LucideLaptop2:_2,LucideLaptopMinimal:_2,LucideLaptopMinimalCheck:ap,LucideLasso:op,LucideLassoSelect:tp,LucideLaugh:dp,LucideLayers:g2,LucideLayers2:np,LucideLayers3:g2,LucideLayout:D2,LucideLayoutDashboard:hp,LucideLayoutGrid:ip,LucideLayoutList:yp,LucideLayoutPanelLeft:rp,LucideLayoutPanelTop:kp,LucideLayoutTemplate:pp,LucideLeaf:sp,LucideLeafyGreen:lp,LucideLectern:up,LucideLetterText:c0,LucideLibrary:vp,LucideLibraryBig:Mp,LucideLibrarySquare:qe,LucideLifeBuoy:gp,LucideLigature:mp,LucideLightbulb:xp,LucideLightbulbOff:_p,LucideLineChart:B,LucideLineSquiggle:Lp,LucideLink:Ip,LucideLink2:fp,LucideLink2Off:wp,LucideLinkedin:Cp,LucideList:Gp,LucideListCheck:Np,LucideListChecks:bp,LucideListChevronsDownUp:$p,LucideListChevronsUpDown:qp,LucideListCollapse:zp,LucideListEnd:Sp,LucideListFilter:Hp,LucideListFilterPlus:Ap,LucideListIndentDecrease:i,LucideListIndentIncrease:y,LucideListMinus:jp,LucideListMusic:Vp,LucideListOrdered:Pp,LucideListPlus:Bp,LucideListRestart:Fp,LucideListStart:Dp,LucideListTodo:Tp,LucideListTree:Rp,LucideListVideo:Up,LucideListX:Op,LucideLoader:Ep,LucideLoader2:x2,LucideLoaderCircle:x2,LucideLoaderPinwheel:Zp,LucideLocate:Kp,LucideLocateFixed:Wp,LucideLocateOff:Xp,LucideLocationEdit:I2,LucideLock:Jp,LucideLockKeyhole:Qp,LucideLockKeyholeOpen:L2,LucideLockOpen:w2,LucideLogIn:Yp,LucideLogOut:e3,LucideLogs:a3,LucideLollipop:c3,LucideLuggage:o3,LucideMSquare:ze,LucideMagnet:t3,LucideMail:p3,LucideMailCheck:d3,LucideMailMinus:h3,LucideMailOpen:n3,LucideMailPlus:i3,LucideMailQuestion:f2,LucideMailQuestionMark:f2,LucideMailSearch:y3,LucideMailWarning:r3,LucideMailX:k3,LucideMailbox:s3,LucideMails:l3,LucideMap:q3,LucideMapMinus:u3,LucideMapPin:C3,LucideMapPinCheck:M3,LucideMapPinCheckInside:m3,LucideMapPinHouse:v3,LucideMapPinMinus:g3,LucideMapPinMinusInside:_3,LucideMapPinOff:x3,LucideMapPinPen:I2,LucideMapPinPlus:w3,LucideMapPinPlusInside:L3,LucideMapPinX:I3,LucideMapPinXInside:f3,LucideMapPinned:N3,LucideMapPlus:b3,LucideMars:z3,LucideMarsStroke:$3,LucideMartini:A3,LucideMaximize:H3,LucideMaximize2:S3,LucideMedal:j3,LucideMegaphone:V3,LucideMegaphoneOff:P3,LucideMeh:B3,LucideMemoryStick:F3,LucideMenu:D3,LucideMenuSquare:Se,LucideMerge:R3,LucideMessageCircle:Q3,LucideMessageCircleCode:T3,LucideMessageCircleDashed:U3,LucideMessageCircleHeart:O3,LucideMessageCircleMore:G3,LucideMessageCircleOff:Z3,LucideMessageCirclePlus:W3,LucideMessageCircleQuestion:C2,LucideMessageCircleQuestionMark:C2,LucideMessageCircleReply:E3,LucideMessageCircleWarning:X3,LucideMessageCircleX:K3,LucideMessageSquare:ss,LucideMessageSquareCode:J3,LucideMessageSquareDashed:Y3,LucideMessageSquareDiff:es,LucideMessageSquareDot:as,LucideMessageSquareHeart:cs,LucideMessageSquareLock:ts,LucideMessageSquareMore:ds,LucideMessageSquareOff:os,LucideMessageSquarePlus:ns,LucideMessageSquareQuote:hs,LucideMessageSquareReply:is,LucideMessageSquareShare:rs,LucideMessageSquareText:ys,LucideMessageSquareWarning:ks,LucideMessageSquareX:ps,LucideMessagesSquare:ls,LucideMic:Ms,LucideMic2:N2,LucideMicOff:us,LucideMicVocal:N2,LucideMicrochip:vs,LucideMicroscope:ms,LucideMicrowave:_s,LucideMilestone:gs,LucideMilk:Ls,LucideMilkOff:xs,LucideMinimize:fs,LucideMinimize2:ws,LucideMinus:Is,LucideMinusCircle:i1,LucideMinusSquare:Ae,LucideMonitor:Fs,LucideMonitorCheck:Cs,LucideMonitorCloud:Ns,LucideMonitorCog:bs,LucideMonitorDot:$s,LucideMonitorDown:qs,LucideMonitorOff:zs,LucideMonitorPause:Ss,LucideMonitorPlay:As,LucideMonitorSmartphone:Hs,LucideMonitorSpeaker:js,LucideMonitorStop:Vs,LucideMonitorUp:Ps,LucideMonitorX:Bs,LucideMoon:Rs,LucideMoonStar:Ds,LucideMoreHorizontal:S1,LucideMoreVertical:z1,LucideMotorbike:Ts,LucideMountain:Us,LucideMountainSnow:Gs,LucideMouse:Qs,LucideMouseOff:Os,LucideMousePointer:Ks,LucideMousePointer2:Ws,LucideMousePointer2Off:Zs,LucideMousePointerBan:Xs,LucideMousePointerClick:Es,LucideMousePointerSquareDashed:we,LucideMove:r8,LucideMove3D:b2,LucideMove3d:b2,LucideMoveDiagonal:Ys,LucideMoveDiagonal2:Js,LucideMoveDown:c8,LucideMoveDownLeft:e8,LucideMoveDownRight:a8,LucideMoveHorizontal:t8,LucideMoveLeft:o8,LucideMoveRight:d8,LucideMoveUp:i8,LucideMoveUpLeft:n8,LucideMoveUpRight:h8,LucideMoveVertical:y8,LucideMusic:s8,LucideMusic2:k8,LucideMusic3:p8,LucideMusic4:l8,LucideNavigation:m8,LucideNavigation2:M8,LucideNavigation2Off:u8,LucideNavigationOff:v8,LucideNetwork:_8,LucideNewspaper:g8,LucideNfc:x8,LucideNonBinary:L8,LucideNotebook:C8,LucideNotebookPen:w8,LucideNotebookTabs:f8,LucideNotebookText:I8,LucideNotepadText:b8,LucideNotepadTextDashed:N8,LucideNut:q8,LucideNutOff:$8,LucideOctagon:S8,LucideOctagonAlert:$2,LucideOctagonMinus:z8,LucideOctagonPause:q2,LucideOctagonX:z2,LucideOmega:A8,LucideOption:H8,LucideOrbit:j8,LucideOrigami:V8,LucideOutdent:i,LucidePackage:O8,LucidePackage2:P8,LucidePackageCheck:B8,LucidePackageMinus:F8,LucidePackageOpen:D8,LucidePackagePlus:R8,LucidePackageSearch:T8,LucidePackageX:U8,LucidePaintBucket:G8,LucidePaintRoller:Z8,LucidePaintbrush:W8,LucidePaintbrush2:S2,LucidePaintbrushVertical:S2,LucidePalette:E8,LucidePalmtree:n0,LucidePanda:X8,LucidePanelBottom:J8,LucidePanelBottomClose:K8,LucidePanelBottomDashed:A2,LucidePanelBottomInactive:A2,LucidePanelBottomOpen:Q8,LucidePanelLeft:P2,LucidePanelLeftClose:H2,LucidePanelLeftDashed:j2,LucidePanelLeftInactive:j2,LucidePanelLeftOpen:V2,LucidePanelLeftRightDashed:Y8,LucidePanelRight:c6,LucidePanelRightClose:e6,LucidePanelRightDashed:B2,LucidePanelRightInactive:B2,LucidePanelRightOpen:a6,LucidePanelTop:h6,LucidePanelTopBottomDashed:t6,LucidePanelTopClose:o6,LucidePanelTopDashed:F2,LucidePanelTopInactive:F2,LucidePanelTopOpen:d6,LucidePanelsLeftBottom:n6,LucidePanelsLeftRight:N1,LucidePanelsRightBottom:i6,LucidePanelsTopBottom:W2,LucidePanelsTopLeft:D2,LucidePaperclip:y6,LucideParentheses:r6,LucideParkingCircle:r1,LucideParkingCircleOff:y1,LucideParkingMeter:k6,LucideParkingSquare:Ve,LucideParkingSquareOff:je,LucidePartyPopper:p6,LucidePause:s6,LucidePauseCircle:k1,LucidePauseOctagon:q2,LucidePawPrint:l6,LucidePcCase:u6,LucidePen:T2,LucidePenBox:t,LucidePenLine:R2,LucidePenOff:M6,LucidePenSquare:t,LucidePenTool:v6,LucidePencil:x6,LucidePencilLine:m6,LucidePencilOff:g6,LucidePencilRuler:_6,LucidePentagon:L6,LucidePercent:w6,LucidePercentCircle:p1,LucidePercentDiamond:$1,LucidePercentSquare:Be,LucidePersonStanding:f6,LucidePhilippinePeso:I6,LucidePhone:S6,LucidePhoneCall:b6,LucidePhoneForwarded:C6,LucidePhoneIncoming:N6,LucidePhoneMissed:$6,LucidePhoneOff:q6,LucidePhoneOutgoing:z6,LucidePi:A6,LucidePiSquare:Pe,LucidePiano:H6,LucidePickaxe:j6,LucidePictureInPicture:P6,LucidePictureInPicture2:V6,LucidePieChart:T,LucidePiggyBank:B6,LucidePilcrow:D6,LucidePilcrowLeft:F6,LucidePilcrowRight:R6,LucidePilcrowSquare:Fe,LucidePill:U6,LucidePillBottle:T6,LucidePin:G6,LucidePinOff:O6,LucidePipette:Z6,LucidePizza:W6,LucidePlane:Q6,LucidePlaneLanding:E6,LucidePlaneTakeoff:X6,LucidePlay:K6,LucidePlayCircle:s1,LucidePlaySquare:De,LucidePlug:Y6,LucidePlug2:J6,LucidePlugZap:U2,LucidePlugZap2:U2,LucidePlus:el,LucidePlusCircle:l1,LucidePlusSquare:Re,LucidePocket:cl,LucidePocketKnife:al,LucidePodcast:tl,LucidePointer:dl,LucidePointerOff:ol,LucidePopcorn:nl,LucidePopsicle:hl,LucidePoundSterling:il,LucidePower:rl,LucidePowerCircle:u1,LucidePowerOff:yl,LucidePowerSquare:Te,LucidePresentation:kl,LucidePrinter:sl,LucidePrinterCheck:pl,LucideProjector:ll,LucideProportions:ul,LucidePuzzle:Ml,LucidePyramid:vl,LucideQrCode:ml,LucideQuote:_l,LucideRabbit:gl,LucideRadar:xl,LucideRadiation:Ll,LucideRadical:wl,LucideRadio:Cl,LucideRadioReceiver:fl,LucideRadioTower:Il,LucideRadius:Nl,LucideRailSymbol:bl,LucideRainbow:$l,LucideRat:ql,LucideRatio:zl,LucideReceipt:Dl,LucideReceiptCent:Sl,LucideReceiptEuro:Al,LucideReceiptIndianRupee:Hl,LucideReceiptJapaneseYen:Vl,LucideReceiptPoundSterling:jl,LucideReceiptRussianRuble:Pl,LucideReceiptSwissFranc:Bl,LucideReceiptText:Fl,LucideReceiptTurkishLira:Rl,LucideRectangleCircle:Tl,LucideRectangleEllipsis:O2,LucideRectangleGoggles:Ul,LucideRectangleHorizontal:Gl,LucideRectangleVertical:Ol,LucideRecycle:Zl,LucideRedo:Xl,LucideRedo2:Wl,LucideRedoDot:El,LucideRefreshCcw:Ql,LucideRefreshCcwDot:Kl,LucideRefreshCw:Yl,LucideRefreshCwOff:Jl,LucideRefrigerator:e7,LucideRegex:a7,LucideRemoveFormatting:c7,LucideRepeat:d7,LucideRepeat1:t7,LucideRepeat2:o7,LucideReplace:h7,LucideReplaceAll:n7,LucideReply:y7,LucideReplyAll:i7,LucideRewind:r7,LucideRibbon:k7,LucideRocket:p7,LucideRockingChair:s7,LucideRollerCoaster:u7,LucideRose:l7,LucideRotate3D:G2,LucideRotate3d:G2,LucideRotateCcw:m7,LucideRotateCcwKey:M7,LucideRotateCcwSquare:v7,LucideRotateCw:x7,LucideRotateCwSquare:_7,LucideRoute:L7,LucideRouteOff:g7,LucideRouter:w7,LucideRows:Z2,LucideRows2:Z2,LucideRows3:W2,LucideRows4:f7,LucideRss:I7,LucideRuler:C7,LucideRulerDimensionLine:N7,LucideRussianRuble:b7,LucideSailboat:$7,LucideSalad:q7,LucideSandwich:z7,LucideSatellite:A7,LucideSatelliteDish:S7,LucideSaudiRiyal:H7,LucideSave:P7,LucideSaveAll:V7,LucideSaveOff:j7,LucideScale:B7,LucideScale3D:E2,LucideScale3d:E2,LucideScaling:F7,LucideScan:E7,LucideScanBarcode:D7,LucideScanEye:R7,LucideScanFace:T7,LucideScanHeart:U7,LucideScanLine:O7,LucideScanQrCode:G7,LucideScanSearch:Z7,LucideScanText:W7,LucideScatterChart:U,LucideSchool:X7,LucideSchool2:y0,LucideScissors:Q7,LucideScissorsLineDashed:K7,LucideScissorsSquare:Ue,LucideScissorsSquareDashedBottom:le,LucideScooter:J7,LucideScreenShare:e9,LucideScreenShareOff:Y7,LucideScroll:c9,LucideScrollText:a9,LucideSearch:h9,LucideSearchCheck:t9,LucideSearchCode:o9,LucideSearchSlash:d9,LucideSearchX:n9,LucideSection:i9,LucideSend:r9,LucideSendHorizonal:X2,LucideSendHorizontal:X2,LucideSendToBack:y9,LucideSeparatorHorizontal:k9,LucideSeparatorVertical:p9,LucideServer:M9,LucideServerCog:s9,LucideServerCrash:l9,LucideServerOff:u9,LucideSettings:m9,LucideSettings2:v9,LucideShapes:_9,LucideShare:x9,LucideShare2:g9,LucideSheet:L9,LucideShell:w9,LucideShield:A9,LucideShieldAlert:f9,LucideShieldBan:I9,LucideShieldCheck:C9,LucideShieldClose:Q2,LucideShieldEllipsis:N9,LucideShieldHalf:b9,LucideShieldMinus:$9,LucideShieldOff:q9,LucideShieldPlus:z9,LucideShieldQuestion:K2,LucideShieldQuestionMark:K2,LucideShieldUser:S9,LucideShieldX:Q2,LucideShip:j9,LucideShipWheel:H9,LucideShirt:V9,LucideShoppingBag:P9,LucideShoppingBasket:B9,LucideShoppingCart:F9,LucideShovel:D9,LucideShowerHead:T9,LucideShredder:R9,LucideShrimp:U9,LucideShrink:O9,LucideShrub:G9,LucideShuffle:Z9,LucideSidebar:P2,LucideSidebarClose:H2,LucideSidebarOpen:V2,LucideSigma:W9,LucideSigmaSquare:Oe,LucideSignal:J9,LucideSignalHigh:E9,LucideSignalLow:X9,LucideSignalMedium:K9,LucideSignalZero:Q9,LucideSignature:Y9,LucideSignpost:au,LucideSignpostBig:eu,LucideSiren:cu,LucideSkipBack:tu,LucideSkipForward:ou,LucideSkull:du,LucideSlack:nu,LucideSlash:hu,LucideSlashSquare:Ge,LucideSlice:iu,LucideSliders:J2,LucideSlidersHorizontal:yu,LucideSlidersVertical:J2,LucideSmartphone:pu,LucideSmartphoneCharging:ru,LucideSmartphoneNfc:ku,LucideSmile:lu,LucideSmilePlus:su,LucideSnail:vu,LucideSnowflake:uu,LucideSoapDispenserDroplet:Mu,LucideSofa:mu,LucideSolarPanel:_u,LucideSortAsc:x,LucideSortDesc:m,LucideSoup:gu,LucideSpace:xu,LucideSpade:Lu,LucideSparkle:wu,LucideSparkles:Y2,LucideSpeaker:fu,LucideSpeech:Iu,LucideSpellCheck:Nu,LucideSpellCheck2:Cu,LucideSpline:$u,LucideSplinePointer:bu,LucideSplit:qu,LucideSplitSquareHorizontal:Ze,LucideSplitSquareVertical:We,LucideSpool:zu,LucideSpotlight:Su,LucideSprayCan:Au,LucideSprout:Hu,LucideSquare:Gu,LucideSquareActivity:ce,LucideSquareArrowDown:te,LucideSquareArrowDownLeft:ee,LucideSquareArrowDownRight:ae,LucideSquareArrowLeft:oe,LucideSquareArrowOutDownLeft:de,LucideSquareArrowOutDownRight:ne,LucideSquareArrowOutUpLeft:he,LucideSquareArrowOutUpRight:ie,LucideSquareArrowRight:ye,LucideSquareArrowUp:pe,LucideSquareArrowUpLeft:re,LucideSquareArrowUpRight:ke,LucideSquareAsterisk:se,LucideSquareBottomDashedScissors:le,LucideSquareChartGantt:r,LucideSquareCheck:Me,LucideSquareCheckBig:ue,LucideSquareChevronDown:ve,LucideSquareChevronLeft:me,LucideSquareChevronRight:_e,LucideSquareChevronUp:ge,LucideSquareCode:xe,LucideSquareDashed:fe,LucideSquareDashedBottom:Vu,LucideSquareDashedBottomCode:ju,LucideSquareDashedKanban:Le,LucideSquareDashedMousePointer:we,LucideSquareDashedTopSolid:Pu,LucideSquareDivide:Ie,LucideSquareDot:Ce,LucideSquareEqual:be,LucideSquareFunction:Ne,LucideSquareGanttChart:r,LucideSquareKanban:$e,LucideSquareLibrary:qe,LucideSquareM:ze,LucideSquareMenu:Se,LucideSquareMinus:Ae,LucideSquareMousePointer:He,LucideSquareParking:Ve,LucideSquareParkingOff:je,LucideSquarePause:Bu,LucideSquarePen:t,LucideSquarePercent:Be,LucideSquarePi:Pe,LucideSquarePilcrow:Fe,LucideSquarePlay:De,LucideSquarePlus:Re,LucideSquarePower:Te,LucideSquareRadical:Fu,LucideSquareRoundCorner:Du,LucideSquareScissors:Ue,LucideSquareSigma:Oe,LucideSquareSlash:Ge,LucideSquareSplitHorizontal:Ze,LucideSquareSplitVertical:We,LucideSquareSquare:Ru,LucideSquareStack:Tu,LucideSquareStar:Uu,LucideSquareStop:Ou,LucideSquareTerminal:Ee,LucideSquareUser:Ke,LucideSquareUserRound:Xe,LucideSquareX:Qe,LucideSquaresExclude:Zu,LucideSquaresIntersect:Wu,LucideSquaresSubtract:Eu,LucideSquaresUnite:Xu,LucideSquircle:Qu,LucideSquircleDashed:Ku,LucideSquirrel:Ju,LucideStamp:Yu,LucideStar:cM,LucideStarHalf:eM,LucideStarOff:aM,LucideStars:Y2,LucideStepBack:tM,LucideStepForward:oM,LucideStethoscope:dM,LucideSticker:nM,LucideStickyNote:hM,LucideStopCircle:v1,LucideStore:iM,LucideStretchHorizontal:yM,LucideStretchVertical:rM,LucideStrikethrough:kM,LucideSubscript:pM,LucideSubtitles:q,LucideSun:vM,LucideSunDim:sM,LucideSunMedium:lM,LucideSunMoon:uM,LucideSunSnow:MM,LucideSunrise:mM,LucideSunset:_M,LucideSuperscript:gM,LucideSwatchBook:xM,LucideSwissFranc:LM,LucideSwitchCamera:wM,LucideSword:fM,LucideSwords:IM,LucideSyringe:CM,LucideTable:HM,LucideTable2:NM,LucideTableCellsMerge:bM,LucideTableCellsSplit:$M,LucideTableColumnsSplit:qM,LucideTableConfig:d,LucideTableOfContents:zM,LucideTableProperties:SM,LucideTableRowsSplit:AM,LucideTablet:VM,LucideTabletSmartphone:jM,LucideTablets:PM,LucideTag:BM,LucideTags:FM,LucideTally1:DM,LucideTally2:RM,LucideTally3:TM,LucideTally4:UM,LucideTally5:OM,LucideTangent:GM,LucideTarget:ZM,LucideTelescope:WM,LucideTent:XM,LucideTentTree:EM,LucideTerminal:KM,LucideTerminalSquare:Ee,LucideTestTube:QM,LucideTestTube2:Je,LucideTestTubeDiagonal:Je,LucideTestTubes:JM,LucideText:k,LucideTextAlignCenter:Ye,LucideTextAlignEnd:e0,LucideTextAlignJustify:a0,LucideTextAlignStart:k,LucideTextCursor:ev,LucideTextCursorInput:YM,LucideTextInitial:c0,LucideTextQuote:av,LucideTextSearch:cv,LucideTextSelect:t0,LucideTextSelection:t0,LucideTextWrap:o0,LucideTheater:tv,LucideThermometer:nv,LucideThermometerSnowflake:ov,LucideThermometerSun:dv,LucideThumbsDown:hv,LucideThumbsUp:iv,LucideTicket:uv,LucideTicketCheck:yv,LucideTicketMinus:rv,LucideTicketPercent:kv,LucideTicketPlus:pv,LucideTicketSlash:sv,LucideTicketX:lv,LucideTickets:vv,LucideTicketsPlane:Mv,LucideTimer:gv,LucideTimerOff:mv,LucideTimerReset:_v,LucideToggleLeft:xv,LucideToggleRight:Lv,LucideToilet:wv,LucideToolCase:fv,LucideTornado:Iv,LucideTorus:Cv,LucideTouchpad:bv,LucideTouchpadOff:Nv,LucideTowerControl:$v,LucideToyBrick:qv,LucideTractor:zv,LucideTrafficCone:Sv,LucideTrain:d0,LucideTrainFront:Hv,LucideTrainFrontTunnel:Av,LucideTrainTrack:jv,LucideTramFront:d0,LucideTransgender:Vv,LucideTrash:Bv,LucideTrash2:Pv,LucideTreeDeciduous:Fv,LucideTreePalm:n0,LucideTreePine:Rv,LucideTrees:Dv,LucideTrello:Tv,LucideTrendingDown:Uv,LucideTrendingUp:Gv,LucideTrendingUpDown:Ov,LucideTriangle:Ev,LucideTriangleAlert:h0,LucideTriangleDashed:Zv,LucideTriangleRight:Wv,LucideTrophy:Xv,LucideTruck:Kv,LucideTruckElectric:Qv,LucideTurkishLira:Jv,LucideTurntable:Yv,LucideTurtle:em,LucideTv:cm,LucideTv2:i0,LucideTvMinimal:i0,LucideTvMinimalPlay:am,LucideTwitch:tm,LucideTwitter:om,LucideType:nm,LucideTypeOutline:dm,LucideUmbrella:im,LucideUmbrellaOff:hm,LucideUnderline:ym,LucideUndo:km,LucideUndo2:rm,LucideUndoDot:sm,LucideUnfoldHorizontal:pm,LucideUnfoldVertical:lm,LucideUngroup:um,LucideUniversity:y0,LucideUnlink:vm,LucideUnlink2:Mm,LucideUnlock:w2,LucideUnlockKeyhole:L2,LucideUnplug:mm,LucideUpload:_m,LucideUploadCloud:f1,LucideUsb:gm,LucideUser:Sm,LucideUser2:u0,LucideUserCheck:xm,LucideUserCheck2:r0,LucideUserCircle:_1,LucideUserCircle2:m1,LucideUserCog:Lm,LucideUserCog2:k0,LucideUserLock:wm,LucideUserMinus:fm,LucideUserMinus2:p0,LucideUserPen:Im,LucideUserPlus:Cm,LucideUserPlus2:s0,LucideUserRound:u0,LucideUserRoundCheck:r0,LucideUserRoundCog:k0,LucideUserRoundMinus:p0,LucideUserRoundPen:Nm,LucideUserRoundPlus:s0,LucideUserRoundSearch:bm,LucideUserRoundX:l0,LucideUserSearch:$m,LucideUserSquare:Ke,LucideUserSquare2:Xe,LucideUserStar:qm,LucideUserX:zm,LucideUserX2:l0,LucideUsers:Am,LucideUsers2:M0,LucideUsersRound:M0,LucideUtensils:m0,LucideUtensilsCrossed:v0,LucideUtilityPole:Hm,LucideVan:jm,LucideVariable:Vm,LucideVault:Pm,LucideVectorSquare:Bm,LucideVegan:Fm,LucideVenetianMask:Dm,LucideVenus:Tm,LucideVenusAndMars:Rm,LucideVerified:f,LucideVibrate:Om,LucideVibrateOff:Um,LucideVideo:Zm,LucideVideoOff:Gm,LucideVideotape:Wm,LucideView:Em,LucideVoicemail:Km,LucideVolleyball:Xm,LucideVolume:a_,LucideVolume1:Qm,LucideVolume2:Ym,LucideVolumeOff:Jm,LucideVolumeX:e_,LucideVote:c_,LucideWallet:o_,LucideWallet2:_0,LucideWalletCards:t_,LucideWalletMinimal:_0,LucideWallpaper:d_,LucideWand:n_,LucideWand2:g0,LucideWandSparkles:g0,LucideWarehouse:h_,LucideWashingMachine:i_,LucideWatch:y_,LucideWaves:s_,LucideWavesArrowDown:r_,LucideWavesArrowUp:k_,LucideWavesLadder:p_,LucideWaypoints:l_,LucideWebcam:u_,LucideWebhook:v_,LucideWebhookOff:M_,LucideWeight:__,LucideWeightTilde:m_,LucideWheat:x_,LucideWheatOff:g_,LucideWholeWord:L_,LucideWifi:q_,LucideWifiCog:w_,LucideWifiHigh:f_,LucideWifiLow:I_,LucideWifiOff:C_,LucideWifiPen:b_,LucideWifiSync:N_,LucideWifiZero:$_,LucideWind:S_,LucideWindArrowDown:z_,LucideWine:H_,LucideWineOff:A_,LucideWorkflow:j_,LucideWorm:V_,LucideWrapText:o0,LucideWrench:P_,LucideX:B_,LucideXCircle:g1,LucideXOctagon:z2,LucideXSquare:Qe,LucideYoutube:F_,LucideZap:D_,LucideZapOff:R_,LucideZoomIn:T_,LucideZoomOut:U_,Luggage:o3,LuggageIcon:o3,MSquare:ze,MSquareIcon:ze,Magnet:t3,MagnetIcon:t3,Mail:p3,MailCheck:d3,MailCheckIcon:d3,MailIcon:p3,MailMinus:h3,MailMinusIcon:h3,MailOpen:n3,MailOpenIcon:n3,MailPlus:i3,MailPlusIcon:i3,MailQuestion:f2,MailQuestionIcon:f2,MailQuestionMark:f2,MailQuestionMarkIcon:f2,MailSearch:y3,MailSearchIcon:y3,MailWarning:r3,MailWarningIcon:r3,MailX:k3,MailXIcon:k3,Mailbox:s3,MailboxIcon:s3,Mails:l3,MailsIcon:l3,Map:q3,MapIcon:q3,MapMinus:u3,MapMinusIcon:u3,MapPin:C3,MapPinCheck:M3,MapPinCheckIcon:M3,MapPinCheckInside:m3,MapPinCheckInsideIcon:m3,MapPinHouse:v3,MapPinHouseIcon:v3,MapPinIcon:C3,MapPinMinus:g3,MapPinMinusIcon:g3,MapPinMinusInside:_3,MapPinMinusInsideIcon:_3,MapPinOff:x3,MapPinOffIcon:x3,MapPinPen:I2,MapPinPenIcon:I2,MapPinPlus:w3,MapPinPlusIcon:w3,MapPinPlusInside:L3,MapPinPlusInsideIcon:L3,MapPinX:I3,MapPinXIcon:I3,MapPinXInside:f3,MapPinXInsideIcon:f3,MapPinned:N3,MapPinnedIcon:N3,MapPlus:b3,MapPlusIcon:b3,Mars:z3,MarsIcon:z3,MarsStroke:$3,MarsStrokeIcon:$3,Martini:A3,MartiniIcon:A3,Maximize:H3,Maximize2:S3,Maximize2Icon:S3,MaximizeIcon:H3,Medal:j3,MedalIcon:j3,Megaphone:V3,MegaphoneIcon:V3,MegaphoneOff:P3,MegaphoneOffIcon:P3,Meh:B3,MehIcon:B3,MemoryStick:F3,MemoryStickIcon:F3,Menu:D3,MenuIcon:D3,MenuSquare:Se,MenuSquareIcon:Se,Merge:R3,MergeIcon:R3,MessageCircle:Q3,MessageCircleCode:T3,MessageCircleCodeIcon:T3,MessageCircleDashed:U3,MessageCircleDashedIcon:U3,MessageCircleHeart:O3,MessageCircleHeartIcon:O3,MessageCircleIcon:Q3,MessageCircleMore:G3,MessageCircleMoreIcon:G3,MessageCircleOff:Z3,MessageCircleOffIcon:Z3,MessageCirclePlus:W3,MessageCirclePlusIcon:W3,MessageCircleQuestion:C2,MessageCircleQuestionIcon:C2,MessageCircleQuestionMark:C2,MessageCircleQuestionMarkIcon:C2,MessageCircleReply:E3,MessageCircleReplyIcon:E3,MessageCircleWarning:X3,MessageCircleWarningIcon:X3,MessageCircleX:K3,MessageCircleXIcon:K3,MessageSquare:ss,MessageSquareCode:J3,MessageSquareCodeIcon:J3,MessageSquareDashed:Y3,MessageSquareDashedIcon:Y3,MessageSquareDiff:es,MessageSquareDiffIcon:es,MessageSquareDot:as,MessageSquareDotIcon:as,MessageSquareHeart:cs,MessageSquareHeartIcon:cs,MessageSquareIcon:ss,MessageSquareLock:ts,MessageSquareLockIcon:ts,MessageSquareMore:ds,MessageSquareMoreIcon:ds,MessageSquareOff:os,MessageSquareOffIcon:os,MessageSquarePlus:ns,MessageSquarePlusIcon:ns,MessageSquareQuote:hs,MessageSquareQuoteIcon:hs,MessageSquareReply:is,MessageSquareReplyIcon:is,MessageSquareShare:rs,MessageSquareShareIcon:rs,MessageSquareText:ys,MessageSquareTextIcon:ys,MessageSquareWarning:ks,MessageSquareWarningIcon:ks,MessageSquareX:ps,MessageSquareXIcon:ps,MessagesSquare:ls,MessagesSquareIcon:ls,Mic:Ms,Mic2:N2,Mic2Icon:N2,MicIcon:Ms,MicOff:us,MicOffIcon:us,MicVocal:N2,MicVocalIcon:N2,Microchip:vs,MicrochipIcon:vs,Microscope:ms,MicroscopeIcon:ms,Microwave:_s,MicrowaveIcon:_s,Milestone:gs,MilestoneIcon:gs,Milk:Ls,MilkIcon:Ls,MilkOff:xs,MilkOffIcon:xs,Minimize:fs,Minimize2:ws,Minimize2Icon:ws,MinimizeIcon:fs,Minus:Is,MinusCircle:i1,MinusCircleIcon:i1,MinusIcon:Is,MinusSquare:Ae,MinusSquareIcon:Ae,Monitor:Fs,MonitorCheck:Cs,MonitorCheckIcon:Cs,MonitorCloud:Ns,MonitorCloudIcon:Ns,MonitorCog:bs,MonitorCogIcon:bs,MonitorDot:$s,MonitorDotIcon:$s,MonitorDown:qs,MonitorDownIcon:qs,MonitorIcon:Fs,MonitorOff:zs,MonitorOffIcon:zs,MonitorPause:Ss,MonitorPauseIcon:Ss,MonitorPlay:As,MonitorPlayIcon:As,MonitorSmartphone:Hs,MonitorSmartphoneIcon:Hs,MonitorSpeaker:js,MonitorSpeakerIcon:js,MonitorStop:Vs,MonitorStopIcon:Vs,MonitorUp:Ps,MonitorUpIcon:Ps,MonitorX:Bs,MonitorXIcon:Bs,Moon:Rs,MoonIcon:Rs,MoonStar:Ds,MoonStarIcon:Ds,MoreHorizontal:S1,MoreHorizontalIcon:S1,MoreVertical:z1,MoreVerticalIcon:z1,Motorbike:Ts,MotorbikeIcon:Ts,Mountain:Us,MountainIcon:Us,MountainSnow:Gs,MountainSnowIcon:Gs,Mouse:Qs,MouseIcon:Qs,MouseOff:Os,MouseOffIcon:Os,MousePointer:Ks,MousePointer2:Ws,MousePointer2Icon:Ws,MousePointer2Off:Zs,MousePointer2OffIcon:Zs,MousePointerBan:Xs,MousePointerBanIcon:Xs,MousePointerClick:Es,MousePointerClickIcon:Es,MousePointerIcon:Ks,MousePointerSquareDashed:we,MousePointerSquareDashedIcon:we,Move:r8,Move3D:b2,Move3DIcon:b2,Move3d:b2,Move3dIcon:b2,MoveDiagonal:Ys,MoveDiagonal2:Js,MoveDiagonal2Icon:Js,MoveDiagonalIcon:Ys,MoveDown:c8,MoveDownIcon:c8,MoveDownLeft:e8,MoveDownLeftIcon:e8,MoveDownRight:a8,MoveDownRightIcon:a8,MoveHorizontal:t8,MoveHorizontalIcon:t8,MoveIcon:r8,MoveLeft:o8,MoveLeftIcon:o8,MoveRight:d8,MoveRightIcon:d8,MoveUp:i8,MoveUpIcon:i8,MoveUpLeft:n8,MoveUpLeftIcon:n8,MoveUpRight:h8,MoveUpRightIcon:h8,MoveVertical:y8,MoveVerticalIcon:y8,Music:s8,Music2:k8,Music2Icon:k8,Music3:p8,Music3Icon:p8,Music4:l8,Music4Icon:l8,MusicIcon:s8,Navigation:m8,Navigation2:M8,Navigation2Icon:M8,Navigation2Off:u8,Navigation2OffIcon:u8,NavigationIcon:m8,NavigationOff:v8,NavigationOffIcon:v8,Network:_8,NetworkIcon:_8,Newspaper:g8,NewspaperIcon:g8,Nfc:x8,NfcIcon:x8,NonBinary:L8,NonBinaryIcon:L8,Notebook:C8,NotebookIcon:C8,NotebookPen:w8,NotebookPenIcon:w8,NotebookTabs:f8,NotebookTabsIcon:f8,NotebookText:I8,NotebookTextIcon:I8,NotepadText:b8,NotepadTextDashed:N8,NotepadTextDashedIcon:N8,NotepadTextIcon:b8,Nut:q8,NutIcon:q8,NutOff:$8,NutOffIcon:$8,Octagon:S8,OctagonAlert:$2,OctagonAlertIcon:$2,OctagonIcon:S8,OctagonMinus:z8,OctagonMinusIcon:z8,OctagonPause:q2,OctagonPauseIcon:q2,OctagonX:z2,OctagonXIcon:z2,Omega:A8,OmegaIcon:A8,Option:H8,OptionIcon:H8,Orbit:j8,OrbitIcon:j8,Origami:V8,OrigamiIcon:V8,Outdent:i,OutdentIcon:i,Package:O8,Package2:P8,Package2Icon:P8,PackageCheck:B8,PackageCheckIcon:B8,PackageIcon:O8,PackageMinus:F8,PackageMinusIcon:F8,PackageOpen:D8,PackageOpenIcon:D8,PackagePlus:R8,PackagePlusIcon:R8,PackageSearch:T8,PackageSearchIcon:T8,PackageX:U8,PackageXIcon:U8,PaintBucket:G8,PaintBucketIcon:G8,PaintRoller:Z8,PaintRollerIcon:Z8,Paintbrush:W8,Paintbrush2:S2,Paintbrush2Icon:S2,PaintbrushIcon:W8,PaintbrushVertical:S2,PaintbrushVerticalIcon:S2,Palette:E8,PaletteIcon:E8,Palmtree:n0,PalmtreeIcon:n0,Panda:X8,PandaIcon:X8,PanelBottom:J8,PanelBottomClose:K8,PanelBottomCloseIcon:K8,PanelBottomDashed:A2,PanelBottomDashedIcon:A2,PanelBottomIcon:J8,PanelBottomInactive:A2,PanelBottomInactiveIcon:A2,PanelBottomOpen:Q8,PanelBottomOpenIcon:Q8,PanelLeft:P2,PanelLeftClose:H2,PanelLeftCloseIcon:H2,PanelLeftDashed:j2,PanelLeftDashedIcon:j2,PanelLeftIcon:P2,PanelLeftInactive:j2,PanelLeftInactiveIcon:j2,PanelLeftOpen:V2,PanelLeftOpenIcon:V2,PanelLeftRightDashed:Y8,PanelLeftRightDashedIcon:Y8,PanelRight:c6,PanelRightClose:e6,PanelRightCloseIcon:e6,PanelRightDashed:B2,PanelRightDashedIcon:B2,PanelRightIcon:c6,PanelRightInactive:B2,PanelRightInactiveIcon:B2,PanelRightOpen:a6,PanelRightOpenIcon:a6,PanelTop:h6,PanelTopBottomDashed:t6,PanelTopBottomDashedIcon:t6,PanelTopClose:o6,PanelTopCloseIcon:o6,PanelTopDashed:F2,PanelTopDashedIcon:F2,PanelTopIcon:h6,PanelTopInactive:F2,PanelTopInactiveIcon:F2,PanelTopOpen:d6,PanelTopOpenIcon:d6,PanelsLeftBottom:n6,PanelsLeftBottomIcon:n6,PanelsLeftRight:N1,PanelsLeftRightIcon:N1,PanelsRightBottom:i6,PanelsRightBottomIcon:i6,PanelsTopBottom:W2,PanelsTopBottomIcon:W2,PanelsTopLeft:D2,PanelsTopLeftIcon:D2,Paperclip:y6,PaperclipIcon:y6,Parentheses:r6,ParenthesesIcon:r6,ParkingCircle:r1,ParkingCircleIcon:r1,ParkingCircleOff:y1,ParkingCircleOffIcon:y1,ParkingMeter:k6,ParkingMeterIcon:k6,ParkingSquare:Ve,ParkingSquareIcon:Ve,ParkingSquareOff:je,ParkingSquareOffIcon:je,PartyPopper:p6,PartyPopperIcon:p6,Pause:s6,PauseCircle:k1,PauseCircleIcon:k1,PauseIcon:s6,PauseOctagon:q2,PauseOctagonIcon:q2,PawPrint:l6,PawPrintIcon:l6,PcCase:u6,PcCaseIcon:u6,Pen:T2,PenBox:t,PenBoxIcon:t,PenIcon:T2,PenLine:R2,PenLineIcon:R2,PenOff:M6,PenOffIcon:M6,PenSquare:t,PenSquareIcon:t,PenTool:v6,PenToolIcon:v6,Pencil:x6,PencilIcon:x6,PencilLine:m6,PencilLineIcon:m6,PencilOff:g6,PencilOffIcon:g6,PencilRuler:_6,PencilRulerIcon:_6,Pentagon:L6,PentagonIcon:L6,Percent:w6,PercentCircle:p1,PercentCircleIcon:p1,PercentDiamond:$1,PercentDiamondIcon:$1,PercentIcon:w6,PercentSquare:Be,PercentSquareIcon:Be,PersonStanding:f6,PersonStandingIcon:f6,PhilippinePeso:I6,PhilippinePesoIcon:I6,Phone:S6,PhoneCall:b6,PhoneCallIcon:b6,PhoneForwarded:C6,PhoneForwardedIcon:C6,PhoneIcon:S6,PhoneIncoming:N6,PhoneIncomingIcon:N6,PhoneMissed:$6,PhoneMissedIcon:$6,PhoneOff:q6,PhoneOffIcon:q6,PhoneOutgoing:z6,PhoneOutgoingIcon:z6,Pi:A6,PiIcon:A6,PiSquare:Pe,PiSquareIcon:Pe,Piano:H6,PianoIcon:H6,Pickaxe:j6,PickaxeIcon:j6,PictureInPicture:P6,PictureInPicture2:V6,PictureInPicture2Icon:V6,PictureInPictureIcon:P6,PieChart:T,PieChartIcon:T,PiggyBank:B6,PiggyBankIcon:B6,Pilcrow:D6,PilcrowIcon:D6,PilcrowLeft:F6,PilcrowLeftIcon:F6,PilcrowRight:R6,PilcrowRightIcon:R6,PilcrowSquare:Fe,PilcrowSquareIcon:Fe,Pill:U6,PillBottle:T6,PillBottleIcon:T6,PillIcon:U6,Pin:G6,PinIcon:G6,PinOff:O6,PinOffIcon:O6,Pipette:Z6,PipetteIcon:Z6,Pizza:W6,PizzaIcon:W6,Plane:Q6,PlaneIcon:Q6,PlaneLanding:E6,PlaneLandingIcon:E6,PlaneTakeoff:X6,PlaneTakeoffIcon:X6,Play:K6,PlayCircle:s1,PlayCircleIcon:s1,PlayIcon:K6,PlaySquare:De,PlaySquareIcon:De,Plug:Y6,Plug2:J6,Plug2Icon:J6,PlugIcon:Y6,PlugZap:U2,PlugZap2:U2,PlugZap2Icon:U2,PlugZapIcon:U2,Plus:el,PlusCircle:l1,PlusCircleIcon:l1,PlusIcon:el,PlusSquare:Re,PlusSquareIcon:Re,Pocket:cl,PocketIcon:cl,PocketKnife:al,PocketKnifeIcon:al,Podcast:tl,PodcastIcon:tl,Pointer:dl,PointerIcon:dl,PointerOff:ol,PointerOffIcon:ol,Popcorn:nl,PopcornIcon:nl,Popsicle:hl,PopsicleIcon:hl,PoundSterling:il,PoundSterlingIcon:il,Power:rl,PowerCircle:u1,PowerCircleIcon:u1,PowerIcon:rl,PowerOff:yl,PowerOffIcon:yl,PowerSquare:Te,PowerSquareIcon:Te,Presentation:kl,PresentationIcon:kl,Printer:sl,PrinterCheck:pl,PrinterCheckIcon:pl,PrinterIcon:sl,Projector:ll,ProjectorIcon:ll,Proportions:ul,ProportionsIcon:ul,Puzzle:Ml,PuzzleIcon:Ml,Pyramid:vl,PyramidIcon:vl,QrCode:ml,QrCodeIcon:ml,Quote:_l,QuoteIcon:_l,Rabbit:gl,RabbitIcon:gl,Radar:xl,RadarIcon:xl,Radiation:Ll,RadiationIcon:Ll,Radical:wl,RadicalIcon:wl,Radio:Cl,RadioIcon:Cl,RadioReceiver:fl,RadioReceiverIcon:fl,RadioTower:Il,RadioTowerIcon:Il,Radius:Nl,RadiusIcon:Nl,RailSymbol:bl,RailSymbolIcon:bl,Rainbow:$l,RainbowIcon:$l,Rat:ql,RatIcon:ql,Ratio:zl,RatioIcon:zl,Receipt:Dl,ReceiptCent:Sl,ReceiptCentIcon:Sl,ReceiptEuro:Al,ReceiptEuroIcon:Al,ReceiptIcon:Dl,ReceiptIndianRupee:Hl,ReceiptIndianRupeeIcon:Hl,ReceiptJapaneseYen:Vl,ReceiptJapaneseYenIcon:Vl,ReceiptPoundSterling:jl,ReceiptPoundSterlingIcon:jl,ReceiptRussianRuble:Pl,ReceiptRussianRubleIcon:Pl,ReceiptSwissFranc:Bl,ReceiptSwissFrancIcon:Bl,ReceiptText:Fl,ReceiptTextIcon:Fl,ReceiptTurkishLira:Rl,ReceiptTurkishLiraIcon:Rl,RectangleCircle:Tl,RectangleCircleIcon:Tl,RectangleEllipsis:O2,RectangleEllipsisIcon:O2,RectangleGoggles:Ul,RectangleGogglesIcon:Ul,RectangleHorizontal:Gl,RectangleHorizontalIcon:Gl,RectangleVertical:Ol,RectangleVerticalIcon:Ol,Recycle:Zl,RecycleIcon:Zl,Redo:Xl,Redo2:Wl,Redo2Icon:Wl,RedoDot:El,RedoDotIcon:El,RedoIcon:Xl,RefreshCcw:Ql,RefreshCcwDot:Kl,RefreshCcwDotIcon:Kl,RefreshCcwIcon:Ql,RefreshCw:Yl,RefreshCwIcon:Yl,RefreshCwOff:Jl,RefreshCwOffIcon:Jl,Refrigerator:e7,RefrigeratorIcon:e7,Regex:a7,RegexIcon:a7,RemoveFormatting:c7,RemoveFormattingIcon:c7,Repeat:d7,Repeat1:t7,Repeat1Icon:t7,Repeat2:o7,Repeat2Icon:o7,RepeatIcon:d7,Replace:h7,ReplaceAll:n7,ReplaceAllIcon:n7,ReplaceIcon:h7,Reply:y7,ReplyAll:i7,ReplyAllIcon:i7,ReplyIcon:y7,Rewind:r7,RewindIcon:r7,Ribbon:k7,RibbonIcon:k7,Rocket:p7,RocketIcon:p7,RockingChair:s7,RockingChairIcon:s7,RollerCoaster:u7,RollerCoasterIcon:u7,Rose:l7,RoseIcon:l7,Rotate3D:G2,Rotate3DIcon:G2,Rotate3d:G2,Rotate3dIcon:G2,RotateCcw:m7,RotateCcwIcon:m7,RotateCcwKey:M7,RotateCcwKeyIcon:M7,RotateCcwSquare:v7,RotateCcwSquareIcon:v7,RotateCw:x7,RotateCwIcon:x7,RotateCwSquare:_7,RotateCwSquareIcon:_7,Route:L7,RouteIcon:L7,RouteOff:g7,RouteOffIcon:g7,Router:w7,RouterIcon:w7,Rows:Z2,Rows2:Z2,Rows2Icon:Z2,Rows3:W2,Rows3Icon:W2,Rows4:f7,Rows4Icon:f7,RowsIcon:Z2,Rss:I7,RssIcon:I7,Ruler:C7,RulerDimensionLine:N7,RulerDimensionLineIcon:N7,RulerIcon:C7,RussianRuble:b7,RussianRubleIcon:b7,Sailboat:$7,SailboatIcon:$7,Salad:q7,SaladIcon:q7,Sandwich:z7,SandwichIcon:z7,Satellite:A7,SatelliteDish:S7,SatelliteDishIcon:S7,SatelliteIcon:A7,SaudiRiyal:H7,SaudiRiyalIcon:H7,Save:P7,SaveAll:V7,SaveAllIcon:V7,SaveIcon:P7,SaveOff:j7,SaveOffIcon:j7,Scale:B7,Scale3D:E2,Scale3DIcon:E2,Scale3d:E2,Scale3dIcon:E2,ScaleIcon:B7,Scaling:F7,ScalingIcon:F7,Scan:E7,ScanBarcode:D7,ScanBarcodeIcon:D7,ScanEye:R7,ScanEyeIcon:R7,ScanFace:T7,ScanFaceIcon:T7,ScanHeart:U7,ScanHeartIcon:U7,ScanIcon:E7,ScanLine:O7,ScanLineIcon:O7,ScanQrCode:G7,ScanQrCodeIcon:G7,ScanSearch:Z7,ScanSearchIcon:Z7,ScanText:W7,ScanTextIcon:W7,ScatterChart:U,ScatterChartIcon:U,School:X7,School2:y0,School2Icon:y0,SchoolIcon:X7,Scissors:Q7,ScissorsIcon:Q7,ScissorsLineDashed:K7,ScissorsLineDashedIcon:K7,ScissorsSquare:Ue,ScissorsSquareDashedBottom:le,ScissorsSquareDashedBottomIcon:le,ScissorsSquareIcon:Ue,Scooter:J7,ScooterIcon:J7,ScreenShare:e9,ScreenShareIcon:e9,ScreenShareOff:Y7,ScreenShareOffIcon:Y7,Scroll:c9,ScrollIcon:c9,ScrollText:a9,ScrollTextIcon:a9,Search:h9,SearchCheck:t9,SearchCheckIcon:t9,SearchCode:o9,SearchCodeIcon:o9,SearchIcon:h9,SearchSlash:d9,SearchSlashIcon:d9,SearchX:n9,SearchXIcon:n9,Section:i9,SectionIcon:i9,Send:r9,SendHorizonal:X2,SendHorizonalIcon:X2,SendHorizontal:X2,SendHorizontalIcon:X2,SendIcon:r9,SendToBack:y9,SendToBackIcon:y9,SeparatorHorizontal:k9,SeparatorHorizontalIcon:k9,SeparatorVertical:p9,SeparatorVerticalIcon:p9,Server:M9,ServerCog:s9,ServerCogIcon:s9,ServerCrash:l9,ServerCrashIcon:l9,ServerIcon:M9,ServerOff:u9,ServerOffIcon:u9,Settings:m9,Settings2:v9,Settings2Icon:v9,SettingsIcon:m9,Shapes:_9,ShapesIcon:_9,Share:x9,Share2:g9,Share2Icon:g9,ShareIcon:x9,Sheet:L9,SheetIcon:L9,Shell:w9,ShellIcon:w9,Shield:A9,ShieldAlert:f9,ShieldAlertIcon:f9,ShieldBan:I9,ShieldBanIcon:I9,ShieldCheck:C9,ShieldCheckIcon:C9,ShieldClose:Q2,ShieldCloseIcon:Q2,ShieldEllipsis:N9,ShieldEllipsisIcon:N9,ShieldHalf:b9,ShieldHalfIcon:b9,ShieldIcon:A9,ShieldMinus:$9,ShieldMinusIcon:$9,ShieldOff:q9,ShieldOffIcon:q9,ShieldPlus:z9,ShieldPlusIcon:z9,ShieldQuestion:K2,ShieldQuestionIcon:K2,ShieldQuestionMark:K2,ShieldQuestionMarkIcon:K2,ShieldUser:S9,ShieldUserIcon:S9,ShieldX:Q2,ShieldXIcon:Q2,Ship:j9,ShipIcon:j9,ShipWheel:H9,ShipWheelIcon:H9,Shirt:V9,ShirtIcon:V9,ShoppingBag:P9,ShoppingBagIcon:P9,ShoppingBasket:B9,ShoppingBasketIcon:B9,ShoppingCart:F9,ShoppingCartIcon:F9,Shovel:D9,ShovelIcon:D9,ShowerHead:T9,ShowerHeadIcon:T9,Shredder:R9,ShredderIcon:R9,Shrimp:U9,ShrimpIcon:U9,Shrink:O9,ShrinkIcon:O9,Shrub:G9,ShrubIcon:G9,Shuffle:Z9,ShuffleIcon:Z9,Sidebar:P2,SidebarClose:H2,SidebarCloseIcon:H2,SidebarIcon:P2,SidebarOpen:V2,SidebarOpenIcon:V2,Sigma:W9,SigmaIcon:W9,SigmaSquare:Oe,SigmaSquareIcon:Oe,Signal:J9,SignalHigh:E9,SignalHighIcon:E9,SignalIcon:J9,SignalLow:X9,SignalLowIcon:X9,SignalMedium:K9,SignalMediumIcon:K9,SignalZero:Q9,SignalZeroIcon:Q9,Signature:Y9,SignatureIcon:Y9,Signpost:au,SignpostBig:eu,SignpostBigIcon:eu,SignpostIcon:au,Siren:cu,SirenIcon:cu,SkipBack:tu,SkipBackIcon:tu,SkipForward:ou,SkipForwardIcon:ou,Skull:du,SkullIcon:du,Slack:nu,SlackIcon:nu,Slash:hu,SlashIcon:hu,SlashSquare:Ge,SlashSquareIcon:Ge,Slice:iu,SliceIcon:iu,Sliders:J2,SlidersHorizontal:yu,SlidersHorizontalIcon:yu,SlidersIcon:J2,SlidersVertical:J2,SlidersVerticalIcon:J2,Smartphone:pu,SmartphoneCharging:ru,SmartphoneChargingIcon:ru,SmartphoneIcon:pu,SmartphoneNfc:ku,SmartphoneNfcIcon:ku,Smile:lu,SmileIcon:lu,SmilePlus:su,SmilePlusIcon:su,Snail:vu,SnailIcon:vu,Snowflake:uu,SnowflakeIcon:uu,SoapDispenserDroplet:Mu,SoapDispenserDropletIcon:Mu,Sofa:mu,SofaIcon:mu,SolarPanel:_u,SolarPanelIcon:_u,SortAsc:x,SortAscIcon:x,SortDesc:m,SortDescIcon:m,Soup:gu,SoupIcon:gu,Space:xu,SpaceIcon:xu,Spade:Lu,SpadeIcon:Lu,Sparkle:wu,SparkleIcon:wu,Sparkles:Y2,SparklesIcon:Y2,Speaker:fu,SpeakerIcon:fu,Speech:Iu,SpeechIcon:Iu,SpellCheck:Nu,SpellCheck2:Cu,SpellCheck2Icon:Cu,SpellCheckIcon:Nu,Spline:$u,SplineIcon:$u,SplinePointer:bu,SplinePointerIcon:bu,Split:qu,SplitIcon:qu,SplitSquareHorizontal:Ze,SplitSquareHorizontalIcon:Ze,SplitSquareVertical:We,SplitSquareVerticalIcon:We,Spool:zu,SpoolIcon:zu,Spotlight:Su,SpotlightIcon:Su,SprayCan:Au,SprayCanIcon:Au,Sprout:Hu,SproutIcon:Hu,Square:Gu,SquareActivity:ce,SquareActivityIcon:ce,SquareArrowDown:te,SquareArrowDownIcon:te,SquareArrowDownLeft:ee,SquareArrowDownLeftIcon:ee,SquareArrowDownRight:ae,SquareArrowDownRightIcon:ae,SquareArrowLeft:oe,SquareArrowLeftIcon:oe,SquareArrowOutDownLeft:de,SquareArrowOutDownLeftIcon:de,SquareArrowOutDownRight:ne,SquareArrowOutDownRightIcon:ne,SquareArrowOutUpLeft:he,SquareArrowOutUpLeftIcon:he,SquareArrowOutUpRight:ie,SquareArrowOutUpRightIcon:ie,SquareArrowRight:ye,SquareArrowRightIcon:ye,SquareArrowUp:pe,SquareArrowUpIcon:pe,SquareArrowUpLeft:re,SquareArrowUpLeftIcon:re,SquareArrowUpRight:ke,SquareArrowUpRightIcon:ke,SquareAsterisk:se,SquareAsteriskIcon:se,SquareBottomDashedScissors:le,SquareBottomDashedScissorsIcon:le,SquareChartGantt:r,SquareChartGanttIcon:r,SquareCheck:Me,SquareCheckBig:ue,SquareCheckBigIcon:ue,SquareCheckIcon:Me,SquareChevronDown:ve,SquareChevronDownIcon:ve,SquareChevronLeft:me,SquareChevronLeftIcon:me,SquareChevronRight:_e,SquareChevronRightIcon:_e,SquareChevronUp:ge,SquareChevronUpIcon:ge,SquareCode:xe,SquareCodeIcon:xe,SquareDashed:fe,SquareDashedBottom:Vu,SquareDashedBottomCode:ju,SquareDashedBottomCodeIcon:ju,SquareDashedBottomIcon:Vu,SquareDashedIcon:fe,SquareDashedKanban:Le,SquareDashedKanbanIcon:Le,SquareDashedMousePointer:we,SquareDashedMousePointerIcon:we,SquareDashedTopSolid:Pu,SquareDashedTopSolidIcon:Pu,SquareDivide:Ie,SquareDivideIcon:Ie,SquareDot:Ce,SquareDotIcon:Ce,SquareEqual:be,SquareEqualIcon:be,SquareFunction:Ne,SquareFunctionIcon:Ne,SquareGanttChart:r,SquareGanttChartIcon:r,SquareIcon:Gu,SquareKanban:$e,SquareKanbanIcon:$e,SquareLibrary:qe,SquareLibraryIcon:qe,SquareM:ze,SquareMIcon:ze,SquareMenu:Se,SquareMenuIcon:Se,SquareMinus:Ae,SquareMinusIcon:Ae,SquareMousePointer:He,SquareMousePointerIcon:He,SquareParking:Ve,SquareParkingIcon:Ve,SquareParkingOff:je,SquareParkingOffIcon:je,SquarePause:Bu,SquarePauseIcon:Bu,SquarePen:t,SquarePenIcon:t,SquarePercent:Be,SquarePercentIcon:Be,SquarePi:Pe,SquarePiIcon:Pe,SquarePilcrow:Fe,SquarePilcrowIcon:Fe,SquarePlay:De,SquarePlayIcon:De,SquarePlus:Re,SquarePlusIcon:Re,SquarePower:Te,SquarePowerIcon:Te,SquareRadical:Fu,SquareRadicalIcon:Fu,SquareRoundCorner:Du,SquareRoundCornerIcon:Du,SquareScissors:Ue,SquareScissorsIcon:Ue,SquareSigma:Oe,SquareSigmaIcon:Oe,SquareSlash:Ge,SquareSlashIcon:Ge,SquareSplitHorizontal:Ze,SquareSplitHorizontalIcon:Ze,SquareSplitVertical:We,SquareSplitVerticalIcon:We,SquareSquare:Ru,SquareSquareIcon:Ru,SquareStack:Tu,SquareStackIcon:Tu,SquareStar:Uu,SquareStarIcon:Uu,SquareStop:Ou,SquareStopIcon:Ou,SquareTerminal:Ee,SquareTerminalIcon:Ee,SquareUser:Ke,SquareUserIcon:Ke,SquareUserRound:Xe,SquareUserRoundIcon:Xe,SquareX:Qe,SquareXIcon:Qe,SquaresExclude:Zu,SquaresExcludeIcon:Zu,SquaresIntersect:Wu,SquaresIntersectIcon:Wu,SquaresSubtract:Eu,SquaresSubtractIcon:Eu,SquaresUnite:Xu,SquaresUniteIcon:Xu,Squircle:Qu,SquircleDashed:Ku,SquircleDashedIcon:Ku,SquircleIcon:Qu,Squirrel:Ju,SquirrelIcon:Ju,Stamp:Yu,StampIcon:Yu,Star:cM,StarHalf:eM,StarHalfIcon:eM,StarIcon:cM,StarOff:aM,StarOffIcon:aM,Stars:Y2,StarsIcon:Y2,StepBack:tM,StepBackIcon:tM,StepForward:oM,StepForwardIcon:oM,Stethoscope:dM,StethoscopeIcon:dM,Sticker:nM,StickerIcon:nM,StickyNote:hM,StickyNoteIcon:hM,StopCircle:v1,StopCircleIcon:v1,Store:iM,StoreIcon:iM,StretchHorizontal:yM,StretchHorizontalIcon:yM,StretchVertical:rM,StretchVerticalIcon:rM,Strikethrough:kM,StrikethroughIcon:kM,Subscript:pM,SubscriptIcon:pM,Subtitles:q,SubtitlesIcon:q,Sun:vM,SunDim:sM,SunDimIcon:sM,SunIcon:vM,SunMedium:lM,SunMediumIcon:lM,SunMoon:uM,SunMoonIcon:uM,SunSnow:MM,SunSnowIcon:MM,Sunrise:mM,SunriseIcon:mM,Sunset:_M,SunsetIcon:_M,Superscript:gM,SuperscriptIcon:gM,SwatchBook:xM,SwatchBookIcon:xM,SwissFranc:LM,SwissFrancIcon:LM,SwitchCamera:wM,SwitchCameraIcon:wM,Sword:fM,SwordIcon:fM,Swords:IM,SwordsIcon:IM,Syringe:CM,SyringeIcon:CM,Table:HM,Table2:NM,Table2Icon:NM,TableCellsMerge:bM,TableCellsMergeIcon:bM,TableCellsSplit:$M,TableCellsSplitIcon:$M,TableColumnsSplit:qM,TableColumnsSplitIcon:qM,TableConfig:d,TableConfigIcon:d,TableIcon:HM,TableOfContents:zM,TableOfContentsIcon:zM,TableProperties:SM,TablePropertiesIcon:SM,TableRowsSplit:AM,TableRowsSplitIcon:AM,Tablet:VM,TabletIcon:VM,TabletSmartphone:jM,TabletSmartphoneIcon:jM,Tablets:PM,TabletsIcon:PM,Tag:BM,TagIcon:BM,Tags:FM,TagsIcon:FM,Tally1:DM,Tally1Icon:DM,Tally2:RM,Tally2Icon:RM,Tally3:TM,Tally3Icon:TM,Tally4:UM,Tally4Icon:UM,Tally5:OM,Tally5Icon:OM,Tangent:GM,TangentIcon:GM,Target:ZM,TargetIcon:ZM,Telescope:WM,TelescopeIcon:WM,Tent:XM,TentIcon:XM,TentTree:EM,TentTreeIcon:EM,Terminal:KM,TerminalIcon:KM,TerminalSquare:Ee,TerminalSquareIcon:Ee,TestTube:QM,TestTube2:Je,TestTube2Icon:Je,TestTubeDiagonal:Je,TestTubeDiagonalIcon:Je,TestTubeIcon:QM,TestTubes:JM,TestTubesIcon:JM,Text:k,TextAlignCenter:Ye,TextAlignCenterIcon:Ye,TextAlignEnd:e0,TextAlignEndIcon:e0,TextAlignJustify:a0,TextAlignJustifyIcon:a0,TextAlignStart:k,TextAlignStartIcon:k,TextCursor:ev,TextCursorIcon:ev,TextCursorInput:YM,TextCursorInputIcon:YM,TextIcon:k,TextInitial:c0,TextInitialIcon:c0,TextQuote:av,TextQuoteIcon:av,TextSearch:cv,TextSearchIcon:cv,TextSelect:t0,TextSelectIcon:t0,TextSelection:t0,TextSelectionIcon:t0,TextWrap:o0,TextWrapIcon:o0,Theater:tv,TheaterIcon:tv,Thermometer:nv,ThermometerIcon:nv,ThermometerSnowflake:ov,ThermometerSnowflakeIcon:ov,ThermometerSun:dv,ThermometerSunIcon:dv,ThumbsDown:hv,ThumbsDownIcon:hv,ThumbsUp:iv,ThumbsUpIcon:iv,Ticket:uv,TicketCheck:yv,TicketCheckIcon:yv,TicketIcon:uv,TicketMinus:rv,TicketMinusIcon:rv,TicketPercent:kv,TicketPercentIcon:kv,TicketPlus:pv,TicketPlusIcon:pv,TicketSlash:sv,TicketSlashIcon:sv,TicketX:lv,TicketXIcon:lv,Tickets:vv,TicketsIcon:vv,TicketsPlane:Mv,TicketsPlaneIcon:Mv,Timer:gv,TimerIcon:gv,TimerOff:mv,TimerOffIcon:mv,TimerReset:_v,TimerResetIcon:_v,ToggleLeft:xv,ToggleLeftIcon:xv,ToggleRight:Lv,ToggleRightIcon:Lv,Toilet:wv,ToiletIcon:wv,ToolCase:fv,ToolCaseIcon:fv,Tornado:Iv,TornadoIcon:Iv,Torus:Cv,TorusIcon:Cv,Touchpad:bv,TouchpadIcon:bv,TouchpadOff:Nv,TouchpadOffIcon:Nv,TowerControl:$v,TowerControlIcon:$v,ToyBrick:qv,ToyBrickIcon:qv,Tractor:zv,TractorIcon:zv,TrafficCone:Sv,TrafficConeIcon:Sv,Train:d0,TrainFront:Hv,TrainFrontIcon:Hv,TrainFrontTunnel:Av,TrainFrontTunnelIcon:Av,TrainIcon:d0,TrainTrack:jv,TrainTrackIcon:jv,TramFront:d0,TramFrontIcon:d0,Transgender:Vv,TransgenderIcon:Vv,Trash:Bv,Trash2:Pv,Trash2Icon:Pv,TrashIcon:Bv,TreeDeciduous:Fv,TreeDeciduousIcon:Fv,TreePalm:n0,TreePalmIcon:n0,TreePine:Rv,TreePineIcon:Rv,Trees:Dv,TreesIcon:Dv,Trello:Tv,TrelloIcon:Tv,TrendingDown:Uv,TrendingDownIcon:Uv,TrendingUp:Gv,TrendingUpDown:Ov,TrendingUpDownIcon:Ov,TrendingUpIcon:Gv,Triangle:Ev,TriangleAlert:h0,TriangleAlertIcon:h0,TriangleDashed:Zv,TriangleDashedIcon:Zv,TriangleIcon:Ev,TriangleRight:Wv,TriangleRightIcon:Wv,Trophy:Xv,TrophyIcon:Xv,Truck:Kv,TruckElectric:Qv,TruckElectricIcon:Qv,TruckIcon:Kv,TurkishLira:Jv,TurkishLiraIcon:Jv,Turntable:Yv,TurntableIcon:Yv,Turtle:em,TurtleIcon:em,Tv:cm,Tv2:i0,Tv2Icon:i0,TvIcon:cm,TvMinimal:i0,TvMinimalIcon:i0,TvMinimalPlay:am,TvMinimalPlayIcon:am,Twitch:tm,TwitchIcon:tm,Twitter:om,TwitterIcon:om,Type:nm,TypeIcon:nm,TypeOutline:dm,TypeOutlineIcon:dm,Umbrella:im,UmbrellaIcon:im,UmbrellaOff:hm,UmbrellaOffIcon:hm,Underline:ym,UnderlineIcon:ym,Undo:km,Undo2:rm,Undo2Icon:rm,UndoDot:sm,UndoDotIcon:sm,UndoIcon:km,UnfoldHorizontal:pm,UnfoldHorizontalIcon:pm,UnfoldVertical:lm,UnfoldVerticalIcon:lm,Ungroup:um,UngroupIcon:um,University:y0,UniversityIcon:y0,Unlink:vm,Unlink2:Mm,Unlink2Icon:Mm,UnlinkIcon:vm,Unlock:w2,UnlockIcon:w2,UnlockKeyhole:L2,UnlockKeyholeIcon:L2,Unplug:mm,UnplugIcon:mm,Upload:_m,UploadCloud:f1,UploadCloudIcon:f1,UploadIcon:_m,Usb:gm,UsbIcon:gm,User:Sm,User2:u0,User2Icon:u0,UserCheck:xm,UserCheck2:r0,UserCheck2Icon:r0,UserCheckIcon:xm,UserCircle:_1,UserCircle2:m1,UserCircle2Icon:m1,UserCircleIcon:_1,UserCog:Lm,UserCog2:k0,UserCog2Icon:k0,UserCogIcon:Lm,UserIcon:Sm,UserLock:wm,UserLockIcon:wm,UserMinus:fm,UserMinus2:p0,UserMinus2Icon:p0,UserMinusIcon:fm,UserPen:Im,UserPenIcon:Im,UserPlus:Cm,UserPlus2:s0,UserPlus2Icon:s0,UserPlusIcon:Cm,UserRound:u0,UserRoundCheck:r0,UserRoundCheckIcon:r0,UserRoundCog:k0,UserRoundCogIcon:k0,UserRoundIcon:u0,UserRoundMinus:p0,UserRoundMinusIcon:p0,UserRoundPen:Nm,UserRoundPenIcon:Nm,UserRoundPlus:s0,UserRoundPlusIcon:s0,UserRoundSearch:bm,UserRoundSearchIcon:bm,UserRoundX:l0,UserRoundXIcon:l0,UserSearch:$m,UserSearchIcon:$m,UserSquare:Ke,UserSquare2:Xe,UserSquare2Icon:Xe,UserSquareIcon:Ke,UserStar:qm,UserStarIcon:qm,UserX:zm,UserX2:l0,UserX2Icon:l0,UserXIcon:zm,Users:Am,Users2:M0,Users2Icon:M0,UsersIcon:Am,UsersRound:M0,UsersRoundIcon:M0,Utensils:m0,UtensilsCrossed:v0,UtensilsCrossedIcon:v0,UtensilsIcon:m0,UtilityPole:Hm,UtilityPoleIcon:Hm,Van:jm,VanIcon:jm,Variable:Vm,VariableIcon:Vm,Vault:Pm,VaultIcon:Pm,VectorSquare:Bm,VectorSquareIcon:Bm,Vegan:Fm,VeganIcon:Fm,VenetianMask:Dm,VenetianMaskIcon:Dm,Venus:Tm,VenusAndMars:Rm,VenusAndMarsIcon:Rm,VenusIcon:Tm,Verified:f,VerifiedIcon:f,Vibrate:Om,VibrateIcon:Om,VibrateOff:Um,VibrateOffIcon:Um,Video:Zm,VideoIcon:Zm,VideoOff:Gm,VideoOffIcon:Gm,Videotape:Wm,VideotapeIcon:Wm,View:Em,ViewIcon:Em,Voicemail:Km,VoicemailIcon:Km,Volleyball:Xm,VolleyballIcon:Xm,Volume:a_,Volume1:Qm,Volume1Icon:Qm,Volume2:Ym,Volume2Icon:Ym,VolumeIcon:a_,VolumeOff:Jm,VolumeOffIcon:Jm,VolumeX:e_,VolumeXIcon:e_,Vote:c_,VoteIcon:c_,Wallet:o_,Wallet2:_0,Wallet2Icon:_0,WalletCards:t_,WalletCardsIcon:t_,WalletIcon:o_,WalletMinimal:_0,WalletMinimalIcon:_0,Wallpaper:d_,WallpaperIcon:d_,Wand:n_,Wand2:g0,Wand2Icon:g0,WandIcon:n_,WandSparkles:g0,WandSparklesIcon:g0,Warehouse:h_,WarehouseIcon:h_,WashingMachine:i_,WashingMachineIcon:i_,Watch:y_,WatchIcon:y_,Waves:s_,WavesArrowDown:r_,WavesArrowDownIcon:r_,WavesArrowUp:k_,WavesArrowUpIcon:k_,WavesIcon:s_,WavesLadder:p_,WavesLadderIcon:p_,Waypoints:l_,WaypointsIcon:l_,Webcam:u_,WebcamIcon:u_,Webhook:v_,WebhookIcon:v_,WebhookOff:M_,WebhookOffIcon:M_,Weight:__,WeightIcon:__,WeightTilde:m_,WeightTildeIcon:m_,Wheat:x_,WheatIcon:x_,WheatOff:g_,WheatOffIcon:g_,WholeWord:L_,WholeWordIcon:L_,Wifi:q_,WifiCog:w_,WifiCogIcon:w_,WifiHigh:f_,WifiHighIcon:f_,WifiIcon:q_,WifiLow:I_,WifiLowIcon:I_,WifiOff:C_,WifiOffIcon:C_,WifiPen:b_,WifiPenIcon:b_,WifiSync:N_,WifiSyncIcon:N_,WifiZero:$_,WifiZeroIcon:$_,Wind:S_,WindArrowDown:z_,WindArrowDownIcon:z_,WindIcon:S_,Wine:H_,WineIcon:H_,WineOff:A_,WineOffIcon:A_,Workflow:j_,WorkflowIcon:j_,Worm:V_,WormIcon:V_,WrapText:o0,WrapTextIcon:o0,Wrench:P_,WrenchIcon:P_,X:B_,XCircle:g1,XCircleIcon:g1,XIcon:B_,XOctagon:z2,XOctagonIcon:z2,XSquare:Qe,XSquareIcon:Qe,Youtube:F_,YoutubeIcon:F_,Zap:D_,ZapIcon:D_,ZapOff:R_,ZapOffIcon:R_,ZoomIn:T_,ZoomInIcon:T_,ZoomOut:U_,ZoomOutIcon:U_,createLucideIcon:e,icons:FK},Symbol.toStringTag,{value:"Module"}));export{Sy as $,Oa as A,Ao as B,cn as C,Ii as D,D3 as E,r4 as F,en as G,M2 as H,Ot as I,ir as J,vM as K,x2 as L,Is as M,_8 as N,Rs as O,O8 as P,e3 as Q,Yl as R,h9 as S,h0 as T,Jp as U,Tk as V,G as W,B_ as X,o as Y,KM as Z,D_ as _,Qd as a,hv as a$,Ay as a0,Sm as a1,vo as a2,Y2 as a3,ou as a4,qy as a5,rl as a6,m7 as a7,An as a8,Ml as a9,K6 as aA,A9 as aB,uu as aC,Sr as aD,d5 as aE,V5 as aF,s6 as aG,ty as aH,hd as aI,nm as aJ,T1 as aK,P_ as aL,Cl as aM,_n as aN,Iy as aO,k1 as aP,gv as aQ,r9 as aR,q_ as aS,C_ as aT,m1 as aU,T2 as aV,y7 as aW,cM as aX,x7 as aY,v9 as aZ,iv as a_,P as aa,Vn as ab,Qi as ac,hh as ad,Gv as ae,D2 as af,I1 as ag,P7 as ah,$k as ai,g9 as aj,g2 as ak,bp as al,BM as am,kn as an,ur as ao,hn as ap,rn as aq,kr as ar,_m as as,fk as at,t as au,bc as av,i2 as aw,Gp as ax,Am as ay,Q3 as az,Td as b,O5 as b0,ip as b1,RK as b2,Ip as b3,E8 as b4,ek as b5,Wa as b6,S1 as b7,J1 as b8,Yh as c,yo as d,a1 as e,g1 as f,Da as g,ec as h,Gu as i,N0 as j,so as k,a9 as l,lu as m,ss as n,Hr as o,J2 as p,o4 as q,uo as r,m9 as s,M9 as t,x6 as u,Pv as v,el as w,yu as x,an as y,$n as z}; diff --git a/dashboard/dist/assets/index-5HyjKTOp.js b/dashboard/dist/assets/index-5HyjKTOp.js new file mode 100644 index 00000000..9a0b78f9 --- /dev/null +++ b/dashboard/dist/assets/index-5HyjKTOp.js @@ -0,0 +1,4 @@ +import{j as e,r as i,i as Xe}from"./router-zNjPR4CY.js";import{u as ke,g as oe,K as ds,Q as ms,S as Qe,B as j,L as p,I as de,ap as Ye,aq as Ve,ar as xs,as as us,at as hs,au as es,a as ps,E as Ae,av as je,aw as J,ax as Oe,ay as gs,az as js,T as ss,O as ts,P as K,R as pe,A as ee,m as se,n as te,o as ae,q as ne,r as re,s as ie,t as le,v as ce,aA as Te,aB as fs,aC as vs,x as bs,D as Ns,i as ys,j as ws,k as Cs,l as ks,a3 as Ss}from"./index-CuOHsLf7.js";import{u as Ts}from"./use-animation--6lc2CfN.js";import{S as De}from"./switch-Kc2EZ0Ga.js";import{S as $}from"./slider-mDhSC-zv.js";import{A as Ds,a as fe,b as ve,c as be}from"./accordion-BDNDahhI.js";import{C as as}from"./CodeEditor-4JcGD1og.js";import{S as Ne,a as ye,b as we,c as Ce,d as F}from"./select-DGqIoF9r.js";import{a7 as Z,L as He,v as me,as as ze,b3 as Rs,T as ge,aH as Pe,aD as Le,R as _e,D as ns,at as Fs,a3 as As,b as Ee,c as We,$ as Ge,a0 as Je,e as Ls,f as Ms,b4 as Os,aB as Es,s as Is,ai as Bs}from"./icons-DTcdLw9j.js";import{C as Vs}from"./checkbox-DWiVrbnx.js";import{g as Ps,c as Ke}from"./system-api-DeeJapvB.js";import{g as Q,a as Ze,f as Us,s as Re,c as zs,e as _s,i as $s,r as Hs,D as Fe}from"./unified-ws-CBnrIqHW.js";import{l as Ws}from"./log-websocket-BnMQh0M3.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";function Ie(s){if(!s)return"#000000";const c=s.split(" ").filter(Boolean);if(c.length<3)return"#000000";const t=parseFloat(c[0]),r=parseFloat(c[1].replace("%","")),u=parseFloat(c[2].replace("%","")),N=r/100,g=u/100,x=(1-Math.abs(2*g-1))*N,o=x*(1-Math.abs(t/60%2-1)),A=g-x/2;let h=0,a=0,v=0;t>=0&&t<60?(h=x,a=o,v=0):t>=60&&t<120?(h=o,a=x,v=0):t>=120&&t<180?(h=0,a=x,v=o):t>=180&&t<240?(h=0,a=o,v=x):t>=240&&t<300?(h=o,a=0,v=x):t>=300&&t<360&&(h=x,a=0,v=o);const w=L=>{const l=Math.round((L+A)*255).toString(16);return l.length===1?"0"+l:l};return`#${w(h)}${w(a)}${w(v)}`}function S({name:s,description:c,license:t}){return e.jsxs("div",{className:"flex items-start justify-between gap-2 rounded-lg border bg-muted/30 p-2.5 sm:p-3",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"font-medium text-foreground truncate",children:s}),e.jsx("p",{className:"text-muted-foreground text-xs mt-0.5",children:c})]}),e.jsx("span",{className:"inline-flex items-center rounded-full bg-primary/10 px-2 py-0.5 text-[10px] font-medium text-primary flex-shrink-0",children:t})]})}function Gs(){const{t:s}=ke();return e.jsxs("div",{className:"space-y-4 sm:space-y-6",children:[e.jsx("div",{className:"rounded-lg border-2 border-primary/30 bg-linear-to-r from-primary/5 to-primary/10 p-4 sm:p-6",children:e.jsxs("div",{className:"flex items-start gap-3 sm:gap-4",children:[e.jsx("div",{className:"shrink-0 rounded-lg bg-primary/10 p-2 sm:p-3",children:e.jsx("svg",{className:"h-6 w-6 sm:h-8 sm:w-8 text-primary",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:e.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-lg sm:text-xl font-bold text-foreground mb-2",children:s("settings.about.openSource")}),e.jsx("p",{className:"text-sm sm:text-base text-muted-foreground mb-3",children:s("settings.about.openSourceDesc")}),e.jsxs("a",{href:"https://github.com/Mai-with-u/MaiBot-Dashboard",target:"_blank",rel:"noopener noreferrer",className:oe("inline-flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground font-medium text-sm","hover:bg-primary/90 transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),children:[e.jsx("svg",{className:"h-4 w-4",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:e.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})}),s("settings.about.visitGitHub"),e.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]})]})]})}),e.jsxs("div",{className:"rounded-lg border bg-card p-4 sm:p-6",children:[e.jsxs("h3",{className:"text-base sm:text-lg font-semibold mb-3 sm:mb-4",children:[s("settings.about.aboutApp")," ",ds]}),e.jsxs("div",{className:"space-y-2 text-xs sm:text-sm text-muted-foreground",children:[e.jsxs("p",{children:[s("settings.about.version")," ",ms]}),e.jsx("p",{children:s("settings.about.appDesc")})]})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-4 sm:p-6",children:[e.jsx("h3",{className:"text-base sm:text-lg font-semibold mb-3 sm:mb-4",children:s("settings.about.author")}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium",children:s("settings.about.maimaiCore")}),e.jsx("p",{className:"text-xs sm:text-sm text-muted-foreground",children:"Mai-with-u"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium",children:"WebUI"}),e.jsxs("p",{className:"text-xs sm:text-sm text-muted-foreground",children:["Mai-with-u ",e.jsx("a",{href:"https://github.com/DrSmoothl",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"@MotricSeven"})]})]})]})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-4 sm:p-6",children:[e.jsx("h3",{className:"text-base sm:text-lg font-semibold mb-3 sm:mb-4",children:s("settings.about.techStack")}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 text-xs sm:text-sm text-muted-foreground",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("p",{className:"font-medium text-foreground",children:s("settings.about.frontendFramework")}),e.jsxs("ul",{className:"space-y-0.5 list-disc list-inside",children:[e.jsx("li",{children:"React 19.2.0"}),e.jsx("li",{children:"TypeScript 5.7.2"}),e.jsx("li",{children:"Vite 6.0.7"}),e.jsx("li",{children:"TanStack Router 1.94.2"})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("p",{className:"font-medium text-foreground",children:s("settings.about.uiComponents")}),e.jsxs("ul",{className:"space-y-0.5 list-disc list-inside",children:[e.jsx("li",{children:"shadcn/ui"}),e.jsx("li",{children:"Radix UI"}),e.jsx("li",{children:"Tailwind CSS 4.2.1"}),e.jsx("li",{children:"Lucide Icons"})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("p",{className:"font-medium text-foreground",children:s("settings.about.backend")}),e.jsxs("ul",{className:"space-y-0.5 list-disc list-inside",children:[e.jsx("li",{children:"Python 3.12+"}),e.jsx("li",{children:"FastAPI"}),e.jsx("li",{children:"Uvicorn"}),e.jsx("li",{children:"WebSocket"})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("p",{className:"font-medium text-foreground",children:s("settings.about.buildTool")}),e.jsxs("ul",{className:"space-y-0.5 list-disc list-inside",children:[e.jsx("li",{children:"Bun / npm"}),e.jsx("li",{children:"ESLint 9.17.0"})]})]})]})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-4 sm:p-6",children:[e.jsx("h3",{className:"text-base sm:text-lg font-semibold mb-3 sm:mb-4",children:s("settings.about.openSourceThanks")}),e.jsx("p",{className:"text-xs sm:text-sm text-muted-foreground mb-3",children:s("settings.about.openSourceThanksDesc")}),e.jsx(Qe,{className:"h-[300px] sm:h-[400px]",children:e.jsxs("div",{className:"space-y-4 pr-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:s("settings.about.uiFrameworkGroup")}),e.jsxs("div",{className:"grid gap-2 text-xs sm:text-sm",children:[e.jsx(S,{name:"React",description:s("settings.about.lib.react"),license:"MIT"}),e.jsx(S,{name:"shadcn/ui",description:s("settings.about.lib.shadcn"),license:"MIT"}),e.jsx(S,{name:"Radix UI",description:s("settings.about.lib.radix"),license:"MIT"}),e.jsx(S,{name:"Tailwind CSS",description:s("settings.about.lib.tailwind"),license:"MIT"}),e.jsx(S,{name:"Lucide React",description:s("settings.about.lib.lucide"),license:"ISC"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:s("settings.about.routingStateGroup")}),e.jsxs("div",{className:"grid gap-2 text-xs sm:text-sm",children:[e.jsx(S,{name:"TanStack Router",description:s("settings.about.lib.tanstackRouter"),license:"MIT"}),e.jsx(S,{name:"Zustand",description:s("settings.about.lib.zustand"),license:"MIT"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:s("settings.about.formGroup")}),e.jsxs("div",{className:"grid gap-2 text-xs sm:text-sm",children:[e.jsx(S,{name:"React Hook Form",description:s("settings.about.lib.reactHookForm"),license:"MIT"}),e.jsx(S,{name:"Zod",description:s("settings.about.lib.zod"),license:"MIT"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:s("settings.about.utilsGroup")}),e.jsxs("div",{className:"grid gap-2 text-xs sm:text-sm",children:[e.jsx(S,{name:"clsx",description:s("settings.about.lib.clsx"),license:"MIT"}),e.jsx(S,{name:"tailwind-merge",description:s("settings.about.lib.tailwindMerge"),license:"MIT"}),e.jsx(S,{name:"class-variance-authority",description:s("settings.about.lib.cva"),license:"Apache-2.0"}),e.jsx(S,{name:"date-fns",description:s("settings.about.lib.dateFns"),license:"MIT"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:s("settings.about.animationGroup")}),e.jsxs("div",{className:"grid gap-2 text-xs sm:text-sm",children:[e.jsx(S,{name:"Framer Motion",description:s("settings.about.lib.framerMotion"),license:"MIT"}),e.jsx(S,{name:"vaul",description:s("settings.about.lib.vaul"),license:"MIT"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:s("settings.about.backendGroup")}),e.jsxs("div",{className:"grid gap-2 text-xs sm:text-sm",children:[e.jsx(S,{name:"FastAPI",description:s("settings.about.lib.fastapi"),license:"MIT"}),e.jsx(S,{name:"Uvicorn",description:s("settings.about.lib.uvicorn"),license:"BSD-3-Clause"}),e.jsx(S,{name:"Pydantic",description:s("settings.about.lib.pydantic"),license:"MIT"}),e.jsx(S,{name:"python-multipart",description:s("settings.about.lib.pythonMultipart"),license:"Apache-2.0"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:s("settings.about.devToolsGroup")}),e.jsxs("div",{className:"grid gap-2 text-xs sm:text-sm",children:[e.jsx(S,{name:"TypeScript",description:s("settings.about.lib.typescript"),license:"Apache-2.0"}),e.jsx(S,{name:"Vite",description:s("settings.about.lib.vite"),license:"MIT"}),e.jsx(S,{name:"ESLint",description:s("settings.about.lib.eslint"),license:"MIT"})]})]})]})})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-4 sm:p-6",children:[e.jsx("h3",{className:"text-base sm:text-lg font-semibold mb-3 sm:mb-4",children:s("settings.about.openSourceLicense")}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"rounded-lg bg-primary/5 border border-primary/20 p-3 sm:p-4",children:e.jsxs("div",{className:"flex items-start gap-2 sm:gap-3",children:[e.jsx("div",{className:"mt-0.5 shrink-0",children:e.jsx("div",{className:"rounded-md bg-primary/10 px-2 py-1",children:e.jsx("span",{className:"text-xs sm:text-sm font-bold text-primary",children:"GPLv3"})})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm sm:text-base font-semibold text-foreground mb-1",children:"MaiBot WebUI"}),e.jsx("p",{className:"text-xs sm:text-sm text-muted-foreground",children:s("settings.about.licenseDesc")})]})]})}),e.jsx("p",{className:"text-xs sm:text-sm text-muted-foreground",children:s("settings.about.licenseDeps")})]})]})]})}function qe(s){if(!s)return"#000000";const c=s.split(" ").filter(Boolean);if(c.length<3)return"#000000";const t=parseFloat(c[0]),r=parseFloat(c[1].replace("%","")),u=parseFloat(c[2].replace("%","")),N=r/100,g=u/100,x=(1-Math.abs(2*g-1))*N,o=x*(1-Math.abs(t/60%2-1)),A=g-x/2;let h=0,a=0,v=0;t>=0&&t<60?(h=x,a=o):t>=60&&t<120?(h=o,a=x):t>=120&&t<180?(a=x,v=o):t>=180&&t<240?(a=o,v=x):t>=240&&t<300?(h=o,v=x):t>=300&&t<360&&(h=x,v=o);const w=L=>{const l=Math.round((L+A)*255).toString(16);return l.length===1?`0${l}`:l};return`#${w(h)}${w(a)}${w(v)}`}function Js({effects:s,onChange:c,disabled:t=!1}){const r=(o,A)=>{t||c({...s,[o]:A})},u=o=>{if(t)return;const A=o.target.value,h=Ve(A);c({...s,overlayColor:h})},N=o=>{t||c({...s,position:o})},g=o=>{t||c({...s,gradientOverlay:o.target.value})},x=()=>{t||c(Ye)};return e.jsxs("div",{className:t?"space-y-6 opacity-50":"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"text-sm font-medium",children:"背景效果调节"}),e.jsxs(j,{variant:"outline",size:"sm",onClick:x,disabled:t,className:"h-8 px-2 text-xs",children:[e.jsx(Z,{className:"mr-2 h-3.5 w-3.5"}),"重置默认"]})]}),e.jsxs("div",{className:"grid gap-6",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(p,{children:"模糊程度 (Blur)"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[s.blur,"px"]})]}),e.jsx($,{value:[s.blur],min:0,max:50,step:1,disabled:t,onValueChange:o=>r("blur",o[0])})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(p,{children:"遮罩颜色 (Overlay Color)"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-9 w-9 overflow-hidden rounded-md border shadow-sm",children:e.jsx("input",{type:"color",value:qe(s.overlayColor),onChange:u,disabled:t,className:"h-[150%] w-[150%] -translate-x-1/4 -translate-y-1/4 cursor-pointer border-0 p-0"})}),e.jsx(de,{value:qe(s.overlayColor),readOnly:!0,disabled:t,className:"flex-1 font-mono uppercase"})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(p,{children:"遮罩不透明度 (Opacity)"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[Math.round(s.overlayOpacity*100),"%"]})]}),e.jsx($,{value:[s.overlayOpacity*100],min:0,max:100,step:1,disabled:t,onValueChange:o=>r("overlayOpacity",o[0]/100)})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(p,{children:"背景位置 (Position)"}),e.jsxs(Ne,{value:s.position,onValueChange:N,disabled:t,children:[e.jsx(ye,{disabled:t,children:e.jsx(we,{placeholder:"选择位置"})}),e.jsxs(Ce,{children:[e.jsx(F,{value:"cover",children:"覆盖 (Cover)"}),e.jsx(F,{value:"contain",children:"包含 (Contain)"}),e.jsx(F,{value:"center",children:"居中 (Center)"}),e.jsx(F,{value:"stretch",children:"拉伸 (Stretch)"})]})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(p,{children:"亮度 (Brightness)"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[s.brightness,"%"]})]}),e.jsx($,{value:[s.brightness],min:0,max:200,step:1,disabled:t,onValueChange:o=>r("brightness",o[0])})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(p,{children:"对比度 (Contrast)"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[s.contrast,"%"]})]}),e.jsx($,{value:[s.contrast],min:0,max:200,step:1,disabled:t,onValueChange:o=>r("contrast",o[0])})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(p,{children:"饱和度 (Saturate)"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[s.saturate,"%"]})]}),e.jsx($,{value:[s.saturate],min:0,max:200,step:1,disabled:t,onValueChange:o=>r("saturate",o[0])})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(p,{children:"CSS 渐变叠加 (Gradient Overlay)"}),e.jsx(de,{value:s.gradientOverlay||"",onChange:g,disabled:t,placeholder:"e.g. linear-gradient(to bottom, transparent, black)",className:"font-mono text-xs"}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"可选:输入有效的 CSS gradient 字符串"})]})]})]})}function Ks({assetId:s,onAssetSelect:c,className:t,disabled:r=!1}){const{getAssetUrl:u}=xs(),[N,g]=i.useState(!1),[x,o]=i.useState(null),[A,h]=i.useState(!1),[a,v]=i.useState(void 0),[w,L]=i.useState(void 0),[l,b]=i.useState(""),R=i.useRef(null);i.useEffect(()=>{let m=!0;return(async()=>{if(!s){v(void 0),L(void 0);return}try{const z=await u(s),_=await us(s);m&&(z&&_?(v(z),L(_.type)):c(void 0))}catch(z){console.error("Failed to load asset preview:",z)}})(),()=>{m=!1}},[s,u,c]);const I=async m=>{if(!r){o(null),g(!0);try{if(!m.type.startsWith("image/")&&!m.type.startsWith("video/"))throw new Error("不支持的文件类型。请上传图片或视频。");if(m.size>50*1024*1024)throw new Error("文件过大。请上传小于 50MB 的文件。");const M=await hs(m);c(M),b("")}catch(M){o(M instanceof Error?M.message:"上传失败")}finally{g(!1)}}},B=async()=>{if(!(r||!l)){o(null),g(!0);try{const m=await fetch(l);if(!m.ok)throw new Error(`下载失败: ${m.statusText}`);const M=await m.blob(),z=m.headers.get("content-type")||"",_=l.split("/").pop()||"downloaded-file",q=_.includes(".")?_:`${_}.${z.split("/")[1]||"bin"}`,O=new File([M],q,{type:z});await I(O)}catch(m){o(m instanceof Error?m.message:"从 URL 上传失败")}finally{g(!1)}}},W=m=>{m.preventDefault(),m.stopPropagation(),!r&&(m.type==="dragenter"||m.type==="dragover"?h(!0):m.type==="dragleave"&&h(!1))},U=m=>{m.preventDefault(),m.stopPropagation(),h(!1),!r&&m.dataTransfer.files&&m.dataTransfer.files[0]&&I(m.dataTransfer.files[0])},f=()=>{r||(c(void 0),v(void 0),L(void 0),o(null))};return e.jsxs("div",{className:oe("space-y-4",r&&"opacity-50",t),children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(p,{children:"背景资源"}),e.jsxs("div",{className:oe("relative flex min-h-[200px] flex-col items-center justify-center rounded-lg border-2 border-dashed p-4 transition-colors",r&&"pointer-events-none",A?"border-primary bg-primary/5":"border-muted-foreground/25",x?"border-destructive/50 bg-destructive/5":"",s?"border-solid":""),onDragEnter:W,onDragLeave:W,onDragOver:W,onDrop:U,children:[N?e.jsxs("div",{className:"flex flex-col items-center gap-2 text-muted-foreground",children:[e.jsx(He,{className:"h-8 w-8 animate-spin"}),e.jsx("p",{className:"text-sm",children:"处理中..."})]}):s&&a?e.jsxs("div",{className:"relative h-full w-full",children:[w==="video"?e.jsx("video",{src:a,className:"h-full max-h-[300px] w-full rounded-md object-contain",controls:!1,muted:!0}):e.jsx("img",{src:a,alt:"Background preview",className:"h-full max-h-[300px] w-full rounded-md object-contain"}),e.jsx("div",{className:"absolute right-2 top-2 flex gap-2",children:e.jsx(j,{variant:"destructive",size:"icon",className:"h-8 w-8 shadow-sm",onClick:f,disabled:r,children:e.jsx(me,{className:"h-4 w-4"})})}),e.jsx("div",{className:"absolute bottom-2 left-2 rounded bg-black/50 px-2 py-1 text-xs text-white backdrop-blur",children:w==="video"?"视频":"图片"})]}):e.jsxs("div",{className:"flex flex-col items-center gap-4 text-center",children:[e.jsx("div",{className:"rounded-full bg-muted p-4",children:e.jsx(ze,{className:"h-8 w-8 text-muted-foreground"})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"font-medium",children:"点击或拖拽上传"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"支持 JPG, PNG, GIF, MP4, WebM"})]}),e.jsx(j,{variant:"outline",size:"sm",onClick:()=>R.current?.click(),disabled:r,children:"选择文件"})]}),e.jsx(de,{ref:R,type:"file",className:"hidden",accept:"image/*,video/mp4,video/webm",onChange:m=>{r||(m.target.files?.[0]&&I(m.target.files[0]),m.target.value="")}})]}),x&&e.jsx("div",{className:"rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:x})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(p,{className:"text-xs text-muted-foreground",children:"或从 URL 获取"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(Rs,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"}),e.jsx(de,{placeholder:"https://example.com/image.jpg",className:"pl-9",value:l,disabled:r,onChange:m=>b(m.target.value),onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),B())}})]}),e.jsx(j,{variant:"secondary",onClick:B,disabled:r||!l||N,children:N?e.jsx(He,{className:"h-4 w-4 animate-spin"}):"获取"})]})]})]})}function Zs({componentId:s,value:c,onChange:t,label:r,height:u="200px",disabled:N=!1}){const{warnings:g}=es(c);return e.jsxs("div",{className:N?"space-y-2 opacity-50":"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(p,{className:"text-sm font-medium",children:r||"自定义 CSS"}),e.jsxs(j,{variant:"ghost",size:"sm",onClick:()=>t(""),disabled:N||!c,className:"h-7 px-2 text-xs text-muted-foreground hover:text-destructive",title:"清除所有 CSS",children:[e.jsx(me,{className:"mr-1.5 h-3.5 w-3.5"}),"清除"]})]}),e.jsxs("div",{className:"rounded-md border bg-card overflow-hidden",children:[e.jsx(as,{value:c,onChange:N?void 0:t,language:"css",readOnly:N,height:u,placeholder:`/* 为 ${s} 组件编写自定义 CSS */ + +/* 示例: */ +/* .custom-class { background: red; } */`}),g.length>0&&e.jsxs("div",{className:"border-t border-yellow-200 dark:border-yellow-800 bg-yellow-50 dark:bg-yellow-950/30 p-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-yellow-800 dark:text-yellow-200 text-xs font-medium mb-1",children:[e.jsx(ge,{className:"h-3.5 w-3.5"}),"检测到不安全的 CSS 规则:"]}),e.jsx("ul",{className:"text-[10px] sm:text-xs text-yellow-700 dark:text-yellow-300 space-y-0.5 ml-5 list-disc",children:g.map((x,o)=>e.jsx("li",{children:x},o))})]})]})]})}function Be({value:s,current:c,onChange:t,label:r,description:u}){const N=c===s;return e.jsxs("button",{onClick:()=>t(s),className:oe("relative rounded-lg border-2 p-3 sm:p-4 text-left transition-all","hover:border-primary/50 hover:bg-accent/50",N?"border-primary bg-accent":"border-border"),children:[N&&e.jsx("div",{className:"absolute top-2 right-2 sm:top-3 sm:right-3 h-2 w-2 rounded-full bg-primary"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm sm:text-base font-medium",children:r}),e.jsx("div",{className:"text-[10px] sm:text-xs text-muted-foreground",children:u})]}),e.jsxs("div",{className:"mt-2 sm:mt-3 flex gap-1",children:[s==="light"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-2 w-2 rounded-full bg-slate-200"}),e.jsx("div",{className:"h-2 w-2 rounded-full bg-slate-300"}),e.jsx("div",{className:"h-2 w-2 rounded-full bg-slate-400"})]}),s==="dark"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-2 w-2 rounded-full bg-slate-700"}),e.jsx("div",{className:"h-2 w-2 rounded-full bg-slate-800"}),e.jsx("div",{className:"h-2 w-2 rounded-full bg-slate-900"})]}),s==="system"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-2 w-2 rounded-full bg-gradient-to-r from-slate-200 to-slate-700"}),e.jsx("div",{className:"h-2 w-2 rounded-full bg-gradient-to-r from-slate-300 to-slate-800"}),e.jsx("div",{className:"h-2 w-2 rounded-full bg-gradient-to-r from-slate-400 to-slate-900"})]})]})]})}function P(s,c,t,r){if(!s||!s[c])return r;const u=s[c];return!u||!(t in u)?r:u[t]??r}function qs(){const{theme:s,setTheme:c,themeConfig:t,updateThemeConfig:r,resolvedTheme:u,resetTheme:N}=ps(),{enableAnimations:g,setEnableAnimations:x,enableWavesBackground:o,setEnableWavesBackground:A}=Ts(),{toast:h}=Ae(),{t:a}=ke(),[v,w]=i.useState(t.customCSS||""),[L,l]=i.useState(()=>t.accentColor?Ie(t.accentColor):je),[b,R]=i.useState(()=>t.accentColor?Ie(t.accentColor):je),[I,B]=i.useState(t.backgroundConfig??{}),[W,U]=i.useState([]),f=i.useRef(null),m=i.useRef(null),M=i.useRef(null),z=i.useRef(null),_=i.useCallback(n=>/^#[0-9A-F]{6}$/i.test(n),[]),q=i.useCallback(n=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{r({accentColor:Ve(n)})},160)},[r]),O=i.useCallback((n,d)=>{r({tokenOverrides:{...t.tokenOverrides,[n]:{...J[n],...t.tokenOverrides?.[n],...d}}})},[t.tokenOverrides,r]),X=i.useCallback(n=>{const d={...t.tokenOverrides};delete d[n],r({tokenOverrides:d})},[t.tokenOverrides,r]),y=i.useCallback(n=>{w(n);const d=es(n);U(d.warnings),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{r({customCSS:n})},500)},[r]),V=i.useMemo(()=>_(b)?Ve(b):t.accentColor||Oe,[b,_,t.accentColor]),xe=i.useMemo(()=>({...t,accentColor:V}),[V,t]);i.useEffect(()=>{const n=t.accentColor?Ie(t.accentColor):je;l(n),R(n)},[t.accentColor]),i.useEffect(()=>{B(t.backgroundConfig??{})},[t.backgroundConfig]),i.useEffect(()=>{gs(xe,u==="dark")},[xe,u]),i.useEffect(()=>()=>{f.current&&clearTimeout(f.current),m.current&&clearTimeout(m.current),M.current&&clearTimeout(M.current)},[]);const C=n=>{const d=n.target.value;l(d),R(d),q(d)},T=n=>{const d=n.target.value.toUpperCase();l(d),_(d)&&(R(d),q(d))},ue=()=>{f.current&&clearTimeout(f.current),l(je),R(je),r({accentColor:Oe})},he=()=>{const n=fs(),d=new Blob([n],{type:"application/json"}),D=URL.createObjectURL(d),E=document.createElement("a");E.href=D,E.download=`maibot-theme-${Date.now()}.json`,E.click(),URL.revokeObjectURL(D)},G=n=>{const d=n.target.files?.[0];if(!d)return;const D=new FileReader;D.onload=E=>{const os=E.target?.result,$e=vs(os);$e.success?(h({title:a("settings.appearance.importSuccess"),description:a("settings.appearance.importSuccessDesc")}),setTimeout(()=>window.location.reload(),1e3)):h({title:a("settings.appearance.importFailed"),description:$e.errors.join("; "),variant:"destructive"})},D.readAsText(d),n.target.value=""},Me=()=>{N(),w(""),U([]),h({title:a("settings.appearance.resetSuccess"),description:a("settings.appearance.resetSuccessDesc")})},k=i.useMemo(()=>js(xe,u==="dark").color,[xe,u]),H=I,Se=i.useCallback(n=>{M.current&&clearTimeout(M.current),M.current=setTimeout(()=>{r({backgroundConfig:n})},180)},[r]),rs=(n,d)=>{const D=H[n]??Te,E={...H,[n]:{...D,assetId:d,type:d?"image":"none"}};B(E),Se(E)},is=(n,d)=>{const D=H[n]??Te,E={...H,[n]:{...D,effects:d}};B(E),Se(E)},ls=(n,d)=>{const D=H[n]??Te,E={...H,[n]:{...D,customCSS:d}};B(E),Se(E)},cs=(n,d)=>{const D=H[n]??Te,E={...H,[n]:{...D,inherit:d}};B(E),Se(E)};return e.jsxs("div",{className:"space-y-6 sm:space-y-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-base sm:text-lg font-semibold mb-3 sm:mb-4",children:a("settings.appearance.themeMode")}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3 sm:gap-4",children:[e.jsx(Be,{value:"light",current:s,onChange:c,label:a("settings.appearance.light"),description:a("settings.appearance.lightDesc")}),e.jsx(Be,{value:"dark",current:s,onChange:c,label:a("settings.appearance.dark"),description:a("settings.appearance.darkDesc")}),e.jsx(Be,{value:"system",current:s,onChange:c,label:a("settings.appearance.system"),description:a("settings.appearance.systemDesc")})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-3 sm:mb-4",children:[e.jsx("h3",{className:"text-base sm:text-lg font-semibold",children:a("settings.appearance.accentColor")}),e.jsxs(j,{variant:"outline",size:"sm",onClick:ue,disabled:t.accentColor===Oe,className:"h-8",children:[e.jsx(Z,{className:"mr-2 h-3.5 w-3.5"}),a("settings.appearance.resetDefault")]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 items-start sm:items-center p-4 rounded-lg border bg-card",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-10 w-10 rounded-full border-2 border-border overflow-hidden relative shadow-sm",children:e.jsx("input",{type:"color",value:b,onChange:C,className:"absolute inset-0 w-[150%] h-[150%] -top-1/4 -left-1/4 cursor-pointer p-0 border-0"})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(p,{htmlFor:"accent-color-input",className:"font-medium",children:a("settings.appearance.accentPrimary")}),e.jsx("p",{className:"text-xs text-muted-foreground",children:a("settings.appearance.accentHint")})]})]}),e.jsx("div",{className:"flex-1 w-full sm:w-auto flex items-center gap-2",children:e.jsx(de,{id:"accent-color-input",type:"text",value:L,onChange:T,className:"font-mono uppercase w-32",maxLength:7})})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("h4",{className:"text-sm font-medium text-muted-foreground",children:a("settings.appearance.colorPreview")}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 md:grid-cols-8 gap-3",children:[e.jsx(Y,{name:"primary",value:k.primary,foreground:k["primary-foreground"]}),e.jsx(Y,{name:"secondary",value:k.secondary,foreground:k["secondary-foreground"]}),e.jsx(Y,{name:"muted",value:k.muted,foreground:k["muted-foreground"]}),e.jsx(Y,{name:"accent",value:k.accent,foreground:k["accent-foreground"]}),e.jsx(Y,{name:"destructive",value:k.destructive,foreground:k["destructive-foreground"]}),e.jsx(Y,{name:"background",value:k.background,foreground:k.foreground,border:!0}),e.jsx(Y,{name:"card",value:k.card,foreground:k["card-foreground"],border:!0}),e.jsx(Y,{name:"border",value:k.border})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-base sm:text-lg font-semibold mb-3 sm:mb-4",children:a("settings.appearance.styleTweaks")}),e.jsxs(Ds,{type:"single",collapsible:!0,className:"w-full",children:[e.jsxs(fe,{value:"typography",children:[e.jsx(ve,{children:a("settings.appearance.typographyGroup")}),e.jsx(be,{children:e.jsxs("div",{className:"space-y-4 pt-2",children:[e.jsx("div",{className:"flex justify-end",children:e.jsxs(j,{variant:"ghost",size:"sm",onClick:()=>X("typography"),disabled:!t.tokenOverrides?.typography,className:"h-8 text-xs",children:[e.jsx(Z,{className:"mr-2 h-3.5 w-3.5"}),a("settings.appearance.resetDefault")]})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{children:a("settings.appearance.fontFamilyLabel")}),e.jsxs(Ne,{value:(()=>{const n=P(t.tokenOverrides,"typography","font-family-base","");return n.includes("ui-serif")?"serif":n.includes("ui-monospace")?"mono":n?"sans":"system"})(),onValueChange:n=>{let d=J.typography["font-family-base"];n==="serif"?d='ui-serif, Georgia, Cambria, "Times New Roman", Times, serif':n==="mono"?d='ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace':n==="sans"&&(d='ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'),O("typography",{"font-family-base":d})},children:[e.jsx(ye,{children:e.jsx(we,{placeholder:a("settings.appearance.fontFamilyPlaceholder")})}),e.jsxs(Ce,{children:[e.jsx(F,{value:"system",children:a("settings.appearance.fontFamilySystem")}),e.jsx(F,{value:"sans",children:a("settings.appearance.fontFamilySans")}),e.jsx(F,{value:"serif",children:a("settings.appearance.fontFamilySerif")}),e.jsx(F,{value:"mono",children:a("settings.appearance.fontFamilyMono")})]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx(p,{children:a("settings.appearance.baseFontSize")}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:[parseFloat(P(t.tokenOverrides,"typography","font-size-base","1"))*16,"px"]})]}),e.jsx($,{defaultValue:[16],value:[parseFloat(P(t.tokenOverrides,"typography","font-size-base","1"))*16],min:12,max:20,step:1,onValueChange:n=>{O("typography",{"font-size-base":`${n[0]/16}rem`})}})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{children:a("settings.appearance.lineHeight")}),e.jsxs(Ne,{value:String(P(t.tokenOverrides,"typography","line-height-normal",1.5)),onValueChange:n=>{O("typography",{"line-height-normal":parseFloat(n)})},children:[e.jsx(ye,{children:e.jsx(we,{placeholder:a("settings.appearance.lineHeightPlaceholder")})}),e.jsxs(Ce,{children:[e.jsx(F,{value:"1.2",children:a("settings.appearance.lineHeightCompact")}),e.jsx(F,{value:"1.5",children:a("settings.appearance.lineHeightNormal")}),e.jsx(F,{value:"1.75",children:a("settings.appearance.lineHeightLoose")})]})]})]})]})})]}),e.jsxs(fe,{value:"visual",children:[e.jsx(ve,{children:a("settings.appearance.visualGroup")}),e.jsx(be,{children:e.jsxs("div",{className:"space-y-4 pt-2",children:[e.jsx("div",{className:"flex justify-end",children:e.jsxs(j,{variant:"ghost",size:"sm",onClick:()=>X("visual"),disabled:!t.tokenOverrides?.visual,className:"h-8 text-xs",children:[e.jsx(Z,{className:"mr-2 h-3.5 w-3.5"}),a("settings.appearance.resetDefault")]})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx(p,{children:a("settings.appearance.borderRadiusLabel")}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:[Math.round(parseFloat(P(t.tokenOverrides,"visual","radius-md","0.375"))*16),"px"]})]}),e.jsx($,{defaultValue:[6],value:[Math.round(parseFloat(P(t.tokenOverrides,"visual","radius-md","0.375"))*16)],min:0,max:24,step:1,onValueChange:n=>{O("visual",{"radius-md":`${n[0]/16}rem`})}})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{children:a("settings.appearance.shadowLabel")}),e.jsxs(Ne,{value:(()=>{const n=String(P(t.tokenOverrides,"visual","shadow-md",""));return n==="none"?"none":n===J.visual["shadow-sm"]?"sm":n===J.visual["shadow-lg"]?"lg":n===J.visual["shadow-xl"]?"xl":"md"})(),onValueChange:n=>{let d=J.visual["shadow-md"];n==="none"?d="none":n==="sm"?d=J.visual["shadow-sm"]:n==="lg"?d=J.visual["shadow-lg"]:n==="xl"&&(d=J.visual["shadow-xl"]),O("visual",{"shadow-md":d})},children:[e.jsx(ye,{children:e.jsx(we,{placeholder:a("settings.appearance.shadowPlaceholder")})}),e.jsxs(Ce,{children:[e.jsx(F,{value:"none",children:a("settings.appearance.shadowNone")}),e.jsx(F,{value:"sm",children:a("settings.appearance.shadowSm")}),e.jsx(F,{value:"md",children:a("settings.appearance.shadowMd")}),e.jsx(F,{value:"lg",children:a("settings.appearance.shadowLg")}),e.jsx(F,{value:"xl",children:a("settings.appearance.shadowXl")})]})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(p,{htmlFor:"blur-switch",children:a("settings.appearance.blurLabel")}),e.jsx(De,{id:"blur-switch",checked:P(t.tokenOverrides,"visual","blur-md","0px")!=="0px",onCheckedChange:n=>{O("visual",{"blur-md":n?J.visual["blur-md"]:"0px"})}})]})]})})]}),e.jsxs(fe,{value:"layout",children:[e.jsx(ve,{children:a("settings.appearance.layoutGroup")}),e.jsx(be,{children:e.jsxs("div",{className:"space-y-4 pt-2",children:[e.jsx("div",{className:"flex justify-end",children:e.jsxs(j,{variant:"ghost",size:"sm",onClick:()=>X("layout"),disabled:!t.tokenOverrides?.layout,className:"h-8 text-xs",children:[e.jsx(Z,{className:"mr-2 h-3.5 w-3.5"}),a("settings.appearance.resetDefault")]})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx(p,{children:a("settings.appearance.sidebarWidthLabel")}),e.jsx("span",{className:"text-sm text-muted-foreground",children:P(t.tokenOverrides,"layout","sidebar-width","13rem")})]}),e.jsx($,{defaultValue:[16],value:[parseFloat(P(t.tokenOverrides,"layout","sidebar-width","13"))],min:12,max:24,step:.5,onValueChange:n=>{O("layout",{"sidebar-width":`${n[0]}rem`})}})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx(p,{children:a("settings.appearance.maxContentWidth")}),e.jsx("span",{className:"text-sm text-muted-foreground",children:P(t.tokenOverrides,"layout","max-content-width","1280px")})]}),e.jsx($,{defaultValue:[1280],value:[parseFloat(P(t.tokenOverrides,"layout","max-content-width","1280").replace("px",""))],min:960,max:1600,step:10,onValueChange:n=>{O("layout",{"max-content-width":`${n[0]}px`})}})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx(p,{children:a("settings.appearance.spacingUnit")}),e.jsx("span",{className:"text-sm text-muted-foreground",children:P(t.tokenOverrides,"layout","space-unit","0.25rem")})]}),e.jsx($,{defaultValue:[.25],value:[parseFloat(P(t.tokenOverrides,"layout","space-unit","0.25").replace("rem",""))],min:.2,max:.4,step:.01,onValueChange:n=>{O("layout",{"space-unit":`${n[0]}rem`})}})]})]})})]}),e.jsxs(fe,{value:"animation",children:[e.jsx(ve,{children:a("settings.appearance.animationGroup")}),e.jsx(be,{children:e.jsxs("div",{className:"space-y-4 pt-2",children:[e.jsx("div",{className:"flex justify-end",children:e.jsxs(j,{variant:"ghost",size:"sm",onClick:()=>X("animation"),disabled:!t.tokenOverrides?.animation,className:"h-8 text-xs",children:[e.jsx(Z,{className:"mr-2 h-3.5 w-3.5"}),a("settings.appearance.resetDefault")]})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{children:a("settings.appearance.animationSpeedLabel")}),e.jsxs(Ne,{value:(()=>{const n=String(P(t.tokenOverrides,"animation","anim-duration-normal","300ms"));return n==="100ms"?"fast":n==="500ms"?"slow":n==="0ms"?"off":"normal"})(),onValueChange:n=>{let d="300ms";n==="fast"?d="100ms":n==="slow"?d="500ms":n==="off"&&(d="0ms"),n==="off"&&g?x(!1):n!=="off"&&!g&&x(!0),O("animation",{"anim-duration-normal":d})},children:[e.jsx(ye,{children:e.jsx(we,{placeholder:a("settings.appearance.animationSpeedPlaceholder")})}),e.jsxs(Ce,{children:[e.jsx(F,{value:"fast",children:a("settings.appearance.animationFast")}),e.jsx(F,{value:"normal",children:a("settings.appearance.animationNormal")}),e.jsx(F,{value:"slow",children:a("settings.appearance.animationSlow")}),e.jsx(F,{value:"off",children:a("settings.appearance.animationOff")})]})]})]})]})})]}),e.jsxs(fe,{value:"backgrounds",children:[e.jsx(ve,{children:a("settings.appearance.backgroundGroup")}),e.jsx(be,{children:e.jsx("div",{className:"pt-2",children:e.jsxs(ss,{defaultValue:"page",children:[e.jsxs(ts,{className:"w-full grid grid-cols-5",children:[e.jsx(K,{value:"page",children:a("settings.appearance.bgPage")}),e.jsx(K,{value:"sidebar",children:a("settings.appearance.bgSidebar")}),e.jsx(K,{value:"header",children:"Header"}),e.jsx(K,{value:"card",children:"Card"}),e.jsx(K,{value:"dialog",children:"Dialog"})]}),["page","sidebar","header","card","dialog"].map(n=>e.jsx(pe,{value:n,className:"space-y-4 mt-4",children:(()=>{const d=(n==="sidebar"||n==="header")&&(H[n]?.inherit??!1);return e.jsxs(e.Fragment,{children:[n!=="page"&&e.jsxs("div",{className:"flex items-center justify-between rounded-lg border bg-muted/30 px-4 py-3",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(p,{className:"text-sm font-medium",children:a("settings.appearance.inheritParentBg")}),e.jsx("p",{className:"text-xs text-muted-foreground",children:a("settings.appearance.inheritParentBgDesc")})]}),e.jsx(De,{checked:H[n]?.inherit??!1,onCheckedChange:D=>cs(n,D)})]}),d&&e.jsx("div",{className:"rounded-lg border bg-muted/30 px-4 py-3 text-sm text-muted-foreground",children:"该层当前直接继承界面背景,下面的资源、效果和 CSS 调节已禁用。"}),e.jsx(Ks,{assetId:H[n]?.assetId,onAssetSelect:D=>rs(n,D),disabled:d}),e.jsx(Js,{effects:H[n]?.effects??Ye,onChange:D=>is(n,D),disabled:d}),e.jsx(Zs,{componentId:n,value:H[n]?.customCSS??"",onChange:D=>ls(n,D),disabled:d})]})})()},n))]})})})]})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-3 sm:mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-base sm:text-lg font-semibold",children:a("settings.appearance.customCss")}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:a("settings.appearance.cssDescription")})]}),e.jsxs(j,{variant:"outline",size:"sm",onClick:()=>{w(""),r({customCSS:""}),U([])},disabled:!t.customCSS,children:[e.jsx(me,{className:"h-4 w-4 mr-1"}),a("settings.appearance.clearCss")]})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-3 sm:p-4 space-y-3",children:[e.jsx(as,{value:v,language:"css",height:"250px",placeholder:a("settings.appearance.cssPlaceholder"),onChange:y}),W.length>0&&e.jsxs("div",{className:"rounded-md bg-yellow-50 dark:bg-yellow-950/30 border border-yellow-200 dark:border-yellow-800 p-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-yellow-800 dark:text-yellow-200 text-sm font-medium mb-1",children:[e.jsx(ge,{className:"h-4 w-4"}),a("settings.appearance.cssWarningTitle")]}),e.jsx("ul",{className:"text-xs text-yellow-700 dark:text-yellow-300 space-y-0.5 ml-6 list-disc",children:W.map((n,d)=>e.jsx("li",{children:n},d))})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-base sm:text-lg font-semibold mb-3 sm:mb-4",children:a("settings.appearance.animationEffect")}),e.jsxs("div",{className:"space-y-2 sm:space-y-3",children:[e.jsx("div",{className:"rounded-lg border bg-card p-3 sm:p-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5 flex-1",children:[e.jsx(p,{htmlFor:"animations",className:"text-base font-medium cursor-pointer",children:a("settings.appearance.enableAnimations")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a("settings.appearance.enableAnimationsDesc")})]}),e.jsx(De,{id:"animations",checked:g,onCheckedChange:x})]})}),e.jsx("div",{className:"rounded-lg border bg-card p-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5 flex-1",children:[e.jsx(p,{htmlFor:"waves-background",className:"text-base font-medium cursor-pointer",children:a("settings.appearance.loginWavesBackground")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a("settings.appearance.loginWavesBackgroundDesc")})]}),e.jsx(De,{id:"waves-background",checked:o,onCheckedChange:A})]})})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-base sm:text-lg font-semibold mb-3 sm:mb-4",children:a("settings.appearance.importExportTheme")}),e.jsxs("div",{className:"rounded-lg border bg-card p-3 sm:p-4 space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:[e.jsxs(j,{onClick:he,variant:"outline",className:"gap-2",children:[e.jsx(Pe,{className:"h-4 w-4"}),a("settings.appearance.exportTheme")]}),e.jsxs(j,{onClick:()=>z.current?.click(),variant:"outline",className:"gap-2",children:[e.jsx(ze,{className:"h-4 w-4"}),a("settings.appearance.importTheme")]}),e.jsxs(ee,{children:[e.jsx(se,{asChild:!0,children:e.jsxs(j,{variant:"outline",className:"gap-2",children:[e.jsx(Z,{className:"h-4 w-4"}),a("settings.appearance.resetTheme")]})}),e.jsxs(te,{children:[e.jsxs(ae,{children:[e.jsx(ne,{children:a("settings.appearance.confirmResetTheme")}),e.jsx(re,{children:a("settings.appearance.confirmResetThemeDesc")})]}),e.jsxs(ie,{children:[e.jsx(le,{children:a("common.cancel")}),e.jsx(ce,{onClick:Me,children:a("settings.appearance.confirmResetAction")})]})]})]})]}),e.jsx("input",{ref:z,type:"file",accept:".json",onChange:G,className:"hidden"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:a("settings.appearance.exportDesc")})]})]})]})}function Y({name:s,value:c,foreground:t,border:r}){return e.jsxs("div",{className:"flex flex-col gap-1.5",children:[e.jsx("div",{className:oe("h-16 rounded-md shadow-sm flex items-center justify-center text-xs font-medium",r&&"border border-border"),style:{backgroundColor:`hsl(${c})`,color:t?`hsl(${t})`:void 0},children:"Aa"}),e.jsx("div",{className:"text-xs text-muted-foreground text-center truncate",title:s,children:s})]})}const Xs=[{table:"llm_usage",label:"llm_usage",description:"记录 LLM 调用统计信息"},{table:"tool_records",label:"tool_records",description:"记录工具使用记录"},{table:"mai_messages",label:"mai_messages",description:"清理收到的消息"}];function Ue(s){if(!Number.isFinite(s)||s<=0)return"0 B";const c=["B","KB","MB","GB","TB"],t=Math.min(Math.floor(Math.log(s)/Math.log(1024)),c.length-1),r=s/1024**t;return`${r.toFixed(r>=10||t===0?0:1)} ${c[t]}`}function Qs({cacheKey:s}){return s==="images"?e.jsx(Fs,{className:"h-4 w-4 text-primary"}):s==="emoji"||s==="emoji_thumbnails"?e.jsx(As,{className:"h-4 w-4 text-primary"}):e.jsx(Le,{className:"h-4 w-4 text-primary"})}function Ys({item:s,cleanupDisabled:c,onCleanup:t}){const r=s.key==="images"?"images":s.key==="emoji"?"emoji":s.key==="logs"?"log_files":null,u=r==="log_files"?"这会删除 logs 目录中的日志文件。操作不可撤销。":"这会删除对应目录中的文件,并移除数据库里的相关记录。操作不可撤销。";return e.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[e.jsxs("div",{className:"min-w-0 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Qs,{cacheKey:s.key}),e.jsx("h4",{className:"font-semibold",children:s.label})]}),e.jsx("p",{className:"break-all text-xs text-muted-foreground",children:s.path})]}),r&&e.jsxs(ee,{children:[e.jsx(se,{asChild:!0,children:e.jsxs(j,{variant:"outline",size:"sm",className:"gap-2",disabled:c,children:[e.jsx(me,{className:"h-4 w-4"}),"清理"]})}),e.jsxs(te,{children:[e.jsxs(ae,{children:[e.jsxs(ne,{children:["确认清理",s.label,"?"]}),e.jsx(re,{children:u})]}),e.jsxs(ie,{children:[e.jsx(le,{children:"取消"}),e.jsx(ce,{onClick:()=>t(r),children:"确认清理"})]})]})]})]}),e.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-3 sm:grid-cols-4",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"文件数"}),e.jsx("div",{className:"text-lg font-semibold",children:s.file_count})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"占用空间"}),e.jsx("div",{className:"text-lg font-semibold",children:Ue(s.total_size)})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"数据库记录"}),e.jsx("div",{className:"text-lg font-semibold",children:s.db_records})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"目录状态"}),e.jsx("div",{className:"text-lg font-semibold",children:s.exists?"存在":"未创建"})]})]})]})}function et(){const{toast:s}=Ae(),[c,t]=i.useState(null),[r,u]=i.useState(!1),[N,g]=i.useState(null),[x,o]=i.useState([]),A=i.useMemo(()=>{const l=new Map;for(const b of c?.database.tables??[])l.set(b.name,b.rows);return l},[c?.database.tables]),h=x.reduce((l,b)=>l+(A.get(b)??0),0),a=i.useCallback(async()=>{u(!0);try{t(await Ps())}catch(l){s({title:"获取本地缓存失败",description:l instanceof Error?l.message:"请稍后重试",variant:"destructive"})}finally{u(!1)}},[s]),v=async l=>{g(l);try{const b=await Ke(l);await a(),s({title:b.message,description:`删除 ${b.removed_files} 个文件,释放 ${Ue(b.removed_bytes)},移除 ${b.removed_records} 条记录。`})}catch(b){s({title:"清理失败",description:b instanceof Error?b.message:"请稍后重试",variant:"destructive"})}finally{g(null)}},w=async()=>{g("database_logs");try{const l=await Ke("database_logs",x);o([]),await a(),s({title:l.message,description:`已清理 ${l.removed_records} 条数据库记录。`})}catch(l){s({title:"数据库清理失败",description:l instanceof Error?l.message:"请稍后重试",variant:"destructive"})}finally{g(null)}},L=(l,b)=>{o(R=>b?R.includes(l)?R:[...R,l]:R.filter(I=>I!==l))};return i.useEffect(()=>{a()},[a]),e.jsxs("div",{className:"space-y-4 sm:space-y-6",children:[e.jsx("div",{className:"rounded-lg border bg-card p-4 sm:p-6",children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsxs("h3",{className:"flex items-center gap-2 text-base font-semibold sm:text-lg",children:[e.jsx(Le,{className:"h-5 w-5"}),"本地缓存"]}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground sm:text-sm",children:"浏览 data 目录中的图片、表情包和数据库存储占用。"})]}),e.jsxs(j,{variant:"outline",onClick:a,disabled:r,className:"gap-2",children:[e.jsx(_e,{className:`h-4 w-4 ${r?"animate-spin":""}`}),"刷新"]})]})}),e.jsx("div",{className:"grid gap-4",children:(c?.directories??[]).map(l=>e.jsx(Ys,{item:l,cleanupDisabled:N!==null||r,onCleanup:v},l.key))}),e.jsx("div",{className:"rounded-lg border bg-card p-4 sm:p-6",children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[e.jsxs("div",{children:[e.jsxs("h3",{className:"flex items-center gap-2 text-base font-semibold sm:text-lg",children:[e.jsx(ns,{className:"h-5 w-5"}),"数据库清理"]}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground sm:text-sm",children:"清理数据库中的统计、工具和消息记录,不会删除日志文件、图片、表情文件和配置文件。"})]}),e.jsxs(ee,{children:[e.jsx(se,{asChild:!0,children:e.jsxs(j,{variant:"outline",className:"gap-2",disabled:N!==null||r,children:[e.jsx(me,{className:"h-4 w-4"}),"数据库清理"]})}),e.jsxs(te,{children:[e.jsxs(ae,{children:[e.jsx(ne,{children:"选择要清理的数据库记录范围"}),e.jsxs(re,{children:["数据库当前占用 ",Ue(c?.database.total_size??0),"。请手动勾选需要清理的表,默认不会选择任何内容。"]})]}),e.jsx("div",{className:"space-y-3",children:Xs.map(l=>{const b=A.get(l.table)??0,R=x.includes(l.table),I=`log-cleanup-${l.table}`;return e.jsxs("label",{htmlFor:I,className:"flex cursor-pointer items-start gap-3 rounded-md border p-3 hover:bg-muted/50",children:[e.jsx(Vs,{id:I,checked:R,onCheckedChange:B=>L(l.table,B===!0),className:"mt-0.5"}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsx("span",{className:"block text-sm font-medium",children:l.label}),e.jsx("span",{className:"block text-xs text-muted-foreground",children:l.description}),e.jsxs("span",{className:"mt-1 block text-xs text-muted-foreground",children:["当前 ",b," 条记录"]})]})]},l.table)})}),e.jsxs("div",{className:"rounded-md bg-muted/50 p-3 text-xs text-muted-foreground",children:["将清理 ",x.length," 张表,预计删除 ",h," 条记录。删除后数据库文件大小不一定立即缩小。"]}),e.jsxs(ie,{children:[e.jsx(le,{children:"取消"}),e.jsx(ce,{onClick:w,disabled:x.length===0,children:"确认清理"})]})]})]})]})})]})}function st(){const{t:s}=ke(),c=Xe(),{toast:t}=Ae(),[r,u]=i.useState(!1),[N,g]=i.useState(!1),[x,o]=i.useState(()=>Q("logCacheSize")),[A,h]=i.useState(()=>Q("wsReconnectInterval")),[a,v]=i.useState(()=>Q("wsMaxReconnectAttempts")),[w,L]=i.useState(()=>Q("dataSyncInterval")),[l,b]=i.useState(()=>Ze()),[R,I]=i.useState(!1),[B,W]=i.useState(!1),U=i.useRef(null);if(N)throw new Error("这是一个手动触发的测试错误,用于验证错误边界组件是否正常工作。");const f=()=>{b(Ze())},m=C=>{const T=C[0];o(T),Re("logCacheSize",T)},M=C=>{const T=C[0];h(T),Re("wsReconnectInterval",T)},z=C=>{const T=C[0];v(T),Re("wsMaxReconnectAttempts",T)},_=C=>{const T=C[0];L(T),Re("dataSyncInterval",T)},q=()=>{Ws.clearLogs(),t({title:s("settings.other.logCleared"),description:s("settings.other.logClearedDesc")})},O=()=>{const C=zs();f(),t({title:s("settings.other.cacheCleared"),description:s("settings.other.cacheClearedDesc",{count:C.clearedKeys.length})})},X=()=>{I(!0);try{const C=_s(),T=JSON.stringify(C,null,2),ue=new Blob([T],{type:"application/json"}),he=URL.createObjectURL(ue),G=document.createElement("a");G.href=he,G.download=`maibot-webui-settings-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(G),G.click(),document.body.removeChild(G),URL.revokeObjectURL(he),t({title:s("settings.other.exportSuccess"),description:s("settings.other.exportSuccessDesc")})}catch(C){console.error("导出设置失败:",C),t({title:s("settings.other.exportFailed"),description:s("settings.other.exportFailedDesc"),variant:"destructive"})}finally{I(!1)}},y=C=>{const T=C.target.files?.[0];if(!T)return;W(!0);const ue=new FileReader;ue.onload=he=>{try{const G=he.target?.result,Me=JSON.parse(G),k=$s(Me);k.success?(o(Q("logCacheSize")),h(Q("wsReconnectInterval")),v(Q("wsMaxReconnectAttempts")),L(Q("dataSyncInterval")),f(),t({title:s("settings.other.importSuccess"),description:s("settings.other.importSuccessDesc",{imported:k.imported.length})+(k.skipped.length>0?s("settings.other.importSkippedSuffix",{skipped:k.skipped.length}):"")}),(k.imported.includes("theme")||k.imported.includes("accentColor"))&&t({title:s("settings.other.importRefreshHint"),description:s("settings.other.importRefreshHintDesc")})):t({title:s("settings.other.importFailed"),description:s("settings.other.importNoDataDesc"),variant:"destructive"})}catch(G){console.error("导入设置失败:",G),t({title:s("settings.other.importFailed"),description:s("settings.other.importInvalidDesc"),variant:"destructive"})}finally{W(!1),U.current&&(U.current.value="")}},ue.readAsText(T)},V=()=>{Hs(),o(Fe.logCacheSize),h(Fe.wsReconnectInterval),v(Fe.wsMaxReconnectAttempts),L(Fe.dataSyncInterval),f(),t({title:s("settings.other.resetDone"),description:s("settings.other.resetDoneDesc")})},xe=async()=>{u(!0);try{const C=await bs("/api/webui/setup/reset",{method:"POST"}),T=await C.json();C.ok&&T.success?(t({title:s("settings.other.resetSuccess"),description:s("settings.other.clearStorageSuccess")}),setTimeout(()=>{c({to:"/setup"})},1e3)):t({title:s("settings.other.resetFailed"),description:T.message||s("settings.other.clearStorageFailed"),variant:"destructive"})}catch(C){console.error("重置配置状态错误:",C),t({title:s("settings.other.resetFailed"),description:s("settings.other.clearStorageFailed"),variant:"destructive"})}finally{u(!1)}};return e.jsxs("div",{className:"space-y-4 sm:space-y-6",children:[e.jsxs("div",{className:"rounded-lg border bg-card p-4 sm:p-6",children:[e.jsxs("h3",{className:"text-base sm:text-lg font-semibold mb-3 sm:mb-4 flex items-center gap-2",children:[e.jsx(ns,{className:"h-5 w-5"}),s("settings.other.performance")]}),e.jsxs("div",{className:"space-y-4 sm:space-y-5",children:[e.jsxs("div",{className:"rounded-lg bg-muted/50 p-3 sm:p-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsxs("span",{className:"text-sm font-medium flex items-center gap-2",children:[e.jsx(Le,{className:"h-4 w-4"}),s("settings.other.localStorage")]}),e.jsx(j,{variant:"ghost",size:"sm",onClick:f,className:"h-7 px-2",children:e.jsx(_e,{className:"h-3 w-3"})})]}),e.jsx("div",{className:"text-2xl font-bold text-primary",children:Us(l.used)}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:s("settings.other.storageItems",{count:l.items})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(p,{className:"text-sm font-medium",children:s("settings.other.logCache")}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:[x," ",s("settings.other.logCacheSizeUnit")]})]}),e.jsx($,{value:[x],onValueChange:m,min:100,max:5e3,step:100,className:"w-full"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.other.logCacheSizeDesc")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(p,{className:"text-sm font-medium",children:s("settings.other.dataSyncIntervalLabel")}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:[w," ",s("settings.other.dataSyncIntervalUnit")]})]}),e.jsx($,{value:[w],onValueChange:_,min:10,max:120,step:5,className:"w-full"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.other.dataSyncIntervalDesc")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(p,{className:"text-sm font-medium",children:s("settings.other.wsReconnectLabel")}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:[A/1e3," ",s("settings.other.wsReconnectUnit")]})]}),e.jsx($,{value:[A],onValueChange:M,min:1e3,max:1e4,step:500,className:"w-full"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.other.wsReconnectDesc")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(p,{className:"text-sm font-medium",children:s("settings.other.wsMaxReconnectLabel")}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:[a," ",s("settings.other.wsMaxReconnectUnit")]})]}),e.jsx($,{value:[a],onValueChange:z,min:3,max:30,step:1,className:"w-full"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.other.wsMaxReconnectDesc")})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 pt-2",children:[e.jsxs(j,{variant:"outline",size:"sm",onClick:q,className:"gap-2",children:[e.jsx(me,{className:"h-4 w-4"}),s("settings.other.clearLogCacheFn")]}),e.jsxs(ee,{children:[e.jsx(se,{asChild:!0,children:e.jsxs(j,{variant:"outline",size:"sm",className:"gap-2",children:[e.jsx(me,{className:"h-4 w-4"}),s("settings.other.clearLocalCache")]})}),e.jsxs(te,{children:[e.jsxs(ae,{children:[e.jsx(ne,{children:s("settings.other.confirmClearCache")}),e.jsx(re,{children:s("settings.other.confirmClearCacheDesc")})]}),e.jsxs(ie,{children:[e.jsx(le,{children:s("common.cancel")}),e.jsx(ce,{onClick:O,children:s("settings.other.confirmClear")})]})]})]})]})]})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-4 sm:p-6",children:[e.jsxs("h3",{className:"text-base sm:text-lg font-semibold mb-3 sm:mb-4 flex items-center gap-2",children:[e.jsx(Pe,{className:"h-5 w-5"}),s("settings.other.importExport")]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("p",{className:"text-xs sm:text-sm text-muted-foreground",children:s("settings.other.importExportDesc")}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(j,{variant:"outline",onClick:X,disabled:R,className:"gap-2",children:[e.jsx(Pe,{className:"h-4 w-4"}),s(R?"settings.other.exporting":"settings.other.exportSettings")]}),e.jsx("input",{ref:U,type:"file",accept:".json",onChange:y,className:"hidden"}),e.jsxs(j,{variant:"outline",onClick:()=>U.current?.click(),disabled:B,className:"gap-2",children:[e.jsx(ze,{className:"h-4 w-4"}),s(B?"settings.other.importing":"settings.other.importSettings")]})]}),e.jsx("div",{className:"pt-2 border-t",children:e.jsxs(ee,{children:[e.jsx(se,{asChild:!0,children:e.jsxs(j,{variant:"outline",size:"sm",className:"gap-2 text-destructive hover:text-destructive",children:[e.jsx(Z,{className:"h-4 w-4"}),s("settings.other.resetAllSettingsBtn")]})}),e.jsxs(te,{children:[e.jsxs(ae,{children:[e.jsx(ne,{children:s("settings.other.confirmResetAll")}),e.jsx(re,{children:s("settings.other.confirmResetAllDesc")})]}),e.jsxs(ie,{children:[e.jsx(le,{children:s("common.cancel")}),e.jsx(ce,{onClick:V,children:s("settings.other.resetAllSettingsConfirm")})]})]})]})})]})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-4 sm:p-6",children:[e.jsx("h3",{className:"text-base sm:text-lg font-semibold mb-3 sm:mb-4",children:s("settings.other.configWizard")}),e.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[e.jsx("div",{className:"space-y-2",children:e.jsx("p",{className:"text-xs sm:text-sm text-muted-foreground",children:s("settings.other.configWizardDesc")})}),e.jsxs(ee,{children:[e.jsx(se,{asChild:!0,children:e.jsxs(j,{variant:"outline",disabled:r,className:"gap-2",children:[e.jsx(Z,{className:oe("h-4 w-4",r&&"animate-spin")}),s("settings.other.rerunSetup")]})}),e.jsxs(te,{children:[e.jsxs(ae,{children:[e.jsx(ne,{children:s("settings.other.confirmRerunSetup")}),e.jsx(re,{children:s("settings.other.confirmRerunSetupDesc")})]}),e.jsxs(ie,{children:[e.jsx(le,{children:s("common.cancel")}),e.jsx(ce,{onClick:xe,children:s("settings.other.resetAllSettingsConfirm")})]})]})]})]})]}),e.jsxs("div",{className:"rounded-lg border border-dashed border-yellow-500/50 bg-yellow-500/5 p-4 sm:p-6",children:[e.jsxs("h3",{className:"text-base sm:text-lg font-semibold mb-3 sm:mb-4 flex items-center gap-2",children:[e.jsx(ge,{className:"h-5 w-5 text-yellow-500"}),s("settings.other.devTools")]}),e.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[e.jsx("div",{className:"space-y-2",children:e.jsx("p",{className:"text-xs sm:text-sm text-muted-foreground",children:s("settings.other.devToolsDesc")})}),e.jsxs(ee,{children:[e.jsx(se,{asChild:!0,children:e.jsxs(j,{variant:"destructive",className:"gap-2",children:[e.jsx(ge,{className:"h-4 w-4"}),s("settings.other.triggerError")]})}),e.jsxs(te,{children:[e.jsxs(ae,{children:[e.jsx(ne,{children:s("settings.other.confirmTriggerError")}),e.jsx(re,{children:s("settings.other.confirmTriggerErrorDesc")})]}),e.jsxs(ie,{children:[e.jsx(le,{children:s("common.cancel")}),e.jsx(ce,{onClick:()=>g(!0),className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.other.confirmTrigger")})]})]})]})]})]})]})}const tt=[{id:"minLength",label:"长度至少 10 位",description:"Token 长度必须大于等于 10 个字符",validate:s=>s.length>=10},{id:"hasUppercase",label:"包含大写字母",description:"至少包含一个大写字母 (A-Z)",validate:s=>/[A-Z]/.test(s)},{id:"hasLowercase",label:"包含小写字母",description:"至少包含一个小写字母 (a-z)",validate:s=>/[a-z]/.test(s)},{id:"hasSpecialChar",label:"包含特殊符号",description:"至少包含一个特殊符号 (!@#$%^&*()_+-=[]{}|;:,.<>?/)",validate:s=>/[!@#$%^&*()_+\-=[\]{}|;:,.<>?/]/.test(s)}];function at(s){const c=tt.map(r=>({id:r.id,label:r.label,description:r.description,passed:r.validate(s)}));return{isValid:c.every(r=>r.passed),rules:c}}function nt(){const{t:s}=ke(),c=Xe(),[t,r]=i.useState(""),[u,N]=i.useState(""),[g,x]=i.useState(!1),[o,A]=i.useState(!1),[h,a]=i.useState(!1),[v,w]=i.useState(!1),[L,l]=i.useState(!1),[b,R]=i.useState(!1),[I,B]=i.useState(""),[W,U]=i.useState(!1),{toast:f}=Ae(),m=i.useMemo(()=>at(u),[u]),M=async y=>{if(!t){f({title:s("settings.security.cannotCopy"),description:s("settings.security.cannotCopyDesc"),variant:"destructive"});return}try{await navigator.clipboard.writeText(y),l(!0),f({title:s("settings.security.copySuccess"),description:s("settings.security.copySuccessDesc")}),setTimeout(()=>l(!1),2e3)}catch{f({title:s("settings.security.copyFailed"),description:s("settings.security.copyFailedDesc"),variant:"destructive"})}},z=async()=>{if(!u.trim()){f({title:s("settings.security.inputError"),description:s("settings.security.inputErrorDesc"),variant:"destructive"});return}if(!m.isValid){const y=m.rules.filter(V=>!V.passed).map(V=>V.label).join(", ");f({title:s("settings.security.formatError"),description:s("settings.security.formatErrorDesc",{failedRules:y}),variant:"destructive"});return}a(!0);try{const y=await fetch("/api/webui/auth/update",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({new_token:u.trim()})}),V=await y.json();y.ok&&V.success?(N(""),r(u.trim()),f({title:s("settings.security.updateSuccess"),description:s("settings.security.updateSuccessDesc")}),setTimeout(()=>{c({to:"/auth"})},1500)):f({title:s("settings.security.updateFailed"),description:V.message||s("settings.security.updateFailedDesc"),variant:"destructive"})}catch(y){console.error("更新 Token 错误:",y),f({title:s("settings.security.updateFailed"),description:s("settings.security.updateFailedConn"),variant:"destructive"})}finally{a(!1)}},_=async()=>{w(!0);try{const y=await fetch("/api/webui/auth/regenerate",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include"}),V=await y.json();y.ok&&V.success?(r(V.token),B(V.token),R(!0),U(!1),f({title:s("settings.security.generateSuccess"),description:s("settings.security.generateSuccessDesc")})):f({title:s("settings.security.generateFailed"),description:V.message||s("settings.security.generateFailedDesc"),variant:"destructive"})}catch(y){console.error("生成 Token 错误:",y),f({title:s("settings.security.generateFailed"),description:s("settings.security.generateFailedConn"),variant:"destructive"})}finally{w(!1)}},q=async()=>{try{await navigator.clipboard.writeText(I),U(!0),f({title:s("settings.security.copySuccess"),description:s("settings.security.copySuccessDesc")})}catch{f({title:s("settings.security.copyFailed"),description:s("settings.security.copyFailedDesc"),variant:"destructive"})}},O=()=>{R(!1),setTimeout(()=>{B(""),U(!1)},300),setTimeout(()=>{c({to:"/auth"})},500)},X=y=>{y||O()};return e.jsxs("div",{className:"space-y-4 sm:space-y-6",children:[e.jsx(Ns,{open:b,onOpenChange:X,children:e.jsxs(ys,{className:"sm:max-w-md",children:[e.jsxs(ws,{children:[e.jsxs(Cs,{className:"flex items-center gap-2",children:[e.jsx(ge,{className:"h-5 w-5 text-yellow-500"}),s("settings.security.dialogTitle")]}),e.jsx(ks,{children:s("settings.security.dialogDesc")})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"rounded-lg border-2 border-primary/20 bg-primary/5 p-4",children:[e.jsx(p,{className:"text-xs text-muted-foreground mb-2 block",children:s("settings.security.dialogTokenLabel")}),e.jsx("div",{className:"font-mono text-sm break-all select-all bg-background p-3 rounded border",children:I})]}),e.jsx("div",{className:"rounded-lg border border-yellow-200 dark:border-yellow-900 bg-yellow-50 dark:bg-yellow-950/30 p-3",children:e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ge,{className:"h-4 w-4 text-yellow-600 dark:text-yellow-500 flex-shrink-0 mt-0.5"}),e.jsxs("div",{className:"text-sm text-yellow-800 dark:text-yellow-300 space-y-1",children:[e.jsx("p",{className:"font-semibold",children:s("settings.security.important")}),e.jsxs("ul",{className:"list-disc list-inside space-y-0.5 text-xs",children:[e.jsx("li",{children:s("settings.security.tip1")}),e.jsx("li",{children:s("settings.security.tip2")}),e.jsx("li",{children:s("settings.security.tip3")}),e.jsx("li",{children:s("settings.security.tip4")})]})]})]})})]}),e.jsxs(Ss,{className:"gap-2 sm:gap-0",children:[e.jsx(j,{variant:"outline",onClick:q,className:"gap-2",children:W?e.jsxs(e.Fragment,{children:[e.jsx(Ee,{className:"h-4 w-4 text-green-500"}),s("settings.security.copied")]}):e.jsxs(e.Fragment,{children:[e.jsx(We,{className:"h-4 w-4"}),s("settings.security.copyToken")]})}),e.jsx(j,{onClick:O,children:s("settings.security.savedClose")})]})]})}),e.jsxs("div",{className:"rounded-lg border bg-card p-4 sm:p-6",children:[e.jsx("h3",{className:"text-base sm:text-lg font-semibold mb-3 sm:mb-4",children:s("settings.security.currentToken")}),e.jsx("div",{className:"space-y-3 sm:space-y-4",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{htmlFor:"current-token",className:"text-sm",children:s("settings.security.yourToken")}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(de,{id:"current-token",type:g?"text":"password",value:t||"••••••••••••••••••••••••••••••••",readOnly:!0,className:"pr-10 font-mono text-sm",placeholder:s("settings.security.tokenStorePlaceholder")}),e.jsx("button",{onClick:()=>{t?x(!g):f({title:s("settings.security.cannotView"),description:s("settings.security.cannotViewDesc")})},className:"absolute right-2 top-1/2 -translate-y-1/2 p-1.5 hover:bg-accent rounded",title:s(g?"settings.security.hide":"settings.security.show"),children:g?e.jsx(Ge,{className:"h-4 w-4 text-muted-foreground"}):e.jsx(Je,{className:"h-4 w-4 text-muted-foreground"})})]}),e.jsxs("div",{className:"flex gap-2 w-full sm:w-auto",children:[e.jsx(j,{variant:"outline",size:"icon",onClick:()=>M(t),title:s("settings.security.copyTip"),className:"flex-shrink-0",disabled:!t,children:L?e.jsx(Ee,{className:"h-4 w-4 text-green-500"}):e.jsx(We,{className:"h-4 w-4"})}),e.jsxs(ee,{children:[e.jsx(se,{asChild:!0,children:e.jsxs(j,{variant:"outline",disabled:v,className:"gap-2 flex-1 sm:flex-none",children:[e.jsx(_e,{className:oe("h-4 w-4",v&&"animate-spin")}),e.jsx("span",{className:"hidden sm:inline",children:s("settings.security.regenerate")}),e.jsx("span",{className:"sm:hidden",children:s("settings.security.regenerateShort")})]})}),e.jsxs(te,{children:[e.jsxs(ae,{children:[e.jsx(ne,{children:s("settings.security.confirmRegenerate")}),e.jsx(re,{children:s("settings.security.confirmRegenerateFullDesc")})]}),e.jsxs(ie,{children:[e.jsx(le,{children:s("settings.security.cancel")}),e.jsx(ce,{onClick:_,children:s("settings.security.confirmGenerate")})]})]})]})]})]}),e.jsx("p",{className:"text-[10px] sm:text-xs text-muted-foreground",children:s("settings.security.safekeepTip")})]})})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-4 sm:p-6",children:[e.jsx("h3",{className:"text-base sm:text-lg font-semibold mb-3 sm:mb-4",children:s("settings.security.customToken")}),e.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{htmlFor:"new-token",className:"text-sm",children:s("settings.security.newTokenLabel")}),e.jsxs("div",{className:"relative",children:[e.jsx(de,{id:"new-token",type:o?"text":"password",value:u,onChange:y=>N(y.target.value),className:"pr-10 font-mono text-sm",placeholder:s("settings.security.customTokenPlaceholder")}),e.jsx("button",{onClick:()=>A(!o),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1.5 hover:bg-accent rounded",title:s(o?"settings.security.hide":"settings.security.show"),children:o?e.jsx(Ge,{className:"h-4 w-4 text-muted-foreground"}):e.jsx(Je,{className:"h-4 w-4 text-muted-foreground"})})]}),u&&e.jsxs("div",{className:"mt-3 space-y-2 p-3 rounded-lg bg-muted/50",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:s("settings.security.tokenReqTitle")}),e.jsx("div",{className:"space-y-1.5",children:m.rules.map(y=>e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[y.passed?e.jsx(Ls,{className:"h-4 w-4 text-green-500 flex-shrink-0"}):e.jsx(Ms,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),e.jsx("span",{className:oe(y.passed?"text-green-600 dark:text-green-400":"text-muted-foreground"),children:y.label})]},y.id))}),m.isValid&&e.jsx("div",{className:"mt-2 pt-2 border-t border-border",children:e.jsxs("div",{className:"flex items-center gap-2 text-sm text-green-600 dark:text-green-400",children:[e.jsx(Ee,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium",children:s("settings.security.tokenValid")})]})})]})]}),e.jsx(j,{onClick:z,disabled:h||!m.isValid||!u,className:"w-full sm:w-auto",children:s(h?"settings.security.updating":"settings.security.updateBtn")})]})]}),e.jsxs("div",{className:"rounded-lg border border-yellow-200 dark:border-yellow-900 bg-yellow-50 dark:bg-yellow-950/30 p-3 sm:p-4",children:[e.jsx("h4",{className:"text-sm sm:text-base font-semibold text-yellow-900 dark:text-yellow-200 mb-2",children:s("settings.security.securityTip")}),e.jsxs("ul",{className:"text-xs sm:text-sm text-yellow-800 dark:text-yellow-300 space-y-1 list-disc list-inside",children:[e.jsx("li",{children:s("settings.security.securityTip1")}),e.jsx("li",{children:s("settings.security.securityTip2")}),e.jsx("li",{children:s("settings.security.securityTip3")}),e.jsx("li",{children:s("settings.security.securityTip4")}),e.jsx("li",{children:s("settings.security.securityTip5")}),e.jsx("li",{children:s("settings.security.securityTip6")})]})]})]})}function Nt(){const{t:s}=ke();return e.jsxs("div",{className:"space-y-4 sm:space-y-6 p-4 sm:p-6",children:[e.jsx("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl sm:text-3xl font-bold",children:s("settings.title")}),e.jsx("p",{className:"text-muted-foreground mt-1 sm:mt-2 text-sm sm:text-base",children:s("settings.description")})]})}),e.jsxs(ss,{defaultValue:"appearance",className:"w-full",children:[e.jsxs(ts,{className:"grid w-full grid-cols-2 sm:grid-cols-5 gap-0.5 sm:gap-1 h-auto p-1",children:[e.jsxs(K,{value:"appearance",className:"gap-1 sm:gap-2 text-xs sm:text-sm px-2 sm:px-3 py-2",children:[e.jsx(Os,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4",strokeWidth:2,fill:"none"}),e.jsx("span",{children:s("settings.tabs.appearance")})]}),e.jsxs(K,{value:"security",className:"gap-1 sm:gap-2 text-xs sm:text-sm px-2 sm:px-3 py-2",children:[e.jsx(Es,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4",strokeWidth:2,fill:"none"}),e.jsx("span",{children:s("settings.tabs.security")})]}),e.jsxs(K,{value:"local-cache",className:"gap-1 sm:gap-2 text-xs sm:text-sm px-2 sm:px-3 py-2",children:[e.jsx(Le,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4",strokeWidth:2,fill:"none"}),e.jsx("span",{children:"本地缓存"})]}),e.jsxs(K,{value:"other",className:"gap-1 sm:gap-2 text-xs sm:text-sm px-2 sm:px-3 py-2",children:[e.jsx(Is,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4",strokeWidth:2,fill:"none"}),e.jsx("span",{children:s("settings.tabs.other")})]}),e.jsxs(K,{value:"about",className:"gap-1 sm:gap-2 text-xs sm:text-sm px-2 sm:px-3 py-2",children:[e.jsx(Bs,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4",strokeWidth:2,fill:"none"}),e.jsx("span",{children:s("settings.tabs.about")})]})]}),e.jsxs(Qe,{className:"h-[calc(100vh-240px)] sm:h-[calc(100vh-280px)] mt-4 sm:mt-6",children:[e.jsx(pe,{value:"appearance",className:"mt-0",children:e.jsx(qs,{})}),e.jsx(pe,{value:"security",className:"mt-0",children:e.jsx(nt,{})}),e.jsx(pe,{value:"local-cache",className:"mt-0",children:e.jsx(et,{})}),e.jsx(pe,{value:"other",className:"mt-0",children:e.jsx(st,{})}),e.jsx(pe,{value:"about",className:"mt-0",children:e.jsx(Gs,{})})]})]})]})}export{Nt as SettingsPage}; diff --git a/dashboard/dist/assets/index-9nJ1fKRN.css b/dashboard/dist/assets/index-9nJ1fKRN.css new file mode 100644 index 00000000..52df085b --- /dev/null +++ b/dashboard/dist/assets/index-9nJ1fKRN.css @@ -0,0 +1 @@ +@charset "UTF-8";.uppy-Root{box-sizing:border-box;color:#333;font-family:-apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Segoe UI Symbol,Segoe UI Emoji,Apple Color Emoji,Roboto,Helvetica,Arial,sans-serif;line-height:1;position:relative;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.uppy-Root[dir=rtl],[dir=rtl] .uppy-Root{text-align:right}.uppy-Root *,.uppy-Root :after,.uppy-Root :before{box-sizing:inherit}.uppy-Root [hidden]{display:none}.uppy-u-reset{all:initial;appearance:none;box-sizing:border-box;font-family:-apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Segoe UI Symbol,Segoe UI Emoji,Apple Color Emoji,Roboto,Helvetica,Arial,sans-serif;line-height:1}[dir=rtl] .uppy-u-reset{text-align:right}.uppy-truncate-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uppy-c-textInput{background-color:#fff;border:1px solid #ddd;border-radius:4px;font-family:inherit;font-size:14px;line-height:1.5;padding:6px 8px}.uppy-size--md .uppy-c-textInput{padding:8px 10px}.uppy-c-textInput:focus{border-color:#1269cf99;box-shadow:0 0 0 3px #1269cf26;outline:none}[data-uppy-theme=dark] .uppy-c-textInput{background-color:#333;border-color:#333;color:#eaeaea}[data-uppy-theme=dark] .uppy-c-textInput:focus{border-color:#525252;box-shadow:none}.uppy-c-icon{display:inline-block;max-height:100%;max-width:100%;overflow:hidden;fill:currentColor}.uppy-c-btn{align-items:center;color:inherit;display:inline-flex;font-family:inherit;font-size:inherit;font-weight:500;justify-content:center;line-height:1;transition-duration:.3s;transition-property:background-color,color;-webkit-user-select:none;user-select:none;white-space:nowrap}.uppy-c-btn,[dir=rtl] .uppy-c-btn{text-align:center}.uppy-c-btn:not(:disabled):not(.disabled){cursor:pointer}.uppy-c-btn::-moz-focus-inner{border:0}.uppy-c-btn-primary{background-color:#1269cf;border-radius:4px;color:#fff;font-size:14px;padding:10px 18px}.uppy-c-btn-primary:not(:disabled):hover{background-color:#0e51a0}.uppy-c-btn-primary:focus{box-shadow:0 0 0 3px #1269cf66;outline:none}.uppy-size--md .uppy-c-btn-primary{padding:13px 22px}[data-uppy-theme=dark] .uppy-c-btn-primary{color:#eaeaea}[data-uppy-theme=dark] .uppy-c-btn-primary:focus{outline:none}[data-uppy-theme=dark] .uppy-c-btn-primary::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-c-btn-primary:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-c-btn-primary.uppy-c-btn--disabled{background-color:#8eb2db}.uppy-c-btn-link{background-color:initial;border-radius:4px;color:#525252;font-size:14px;line-height:1;padding:10px 15px}.uppy-c-btn-link:hover{color:#333}.uppy-c-btn-link:focus{box-shadow:0 0 0 3px #1269cf40;outline:none}.uppy-size--md .uppy-c-btn-link{padding:13px 18px}[data-uppy-theme=dark] .uppy-c-btn-link{color:#eaeaea}[data-uppy-theme=dark] .uppy-c-btn-link:focus{outline:none}[data-uppy-theme=dark] .uppy-c-btn-link::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-c-btn-link:focus{box-shadow:0 0 0 2px #aae1ffd9}[data-uppy-theme=dark] .uppy-c-btn-link:hover{color:#939393}.uppy-ProviderBrowser-viewType--grid ul.uppy-ProviderBrowser-list,.uppy-ProviderBrowser-viewType--unsplash ul.uppy-ProviderBrowser-list{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;padding:6px}.uppy-ProviderBrowser-viewType--grid ul.uppy-ProviderBrowser-list:after,.uppy-ProviderBrowser-viewType--unsplash ul.uppy-ProviderBrowser-list:after{content:"";flex:auto}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem{margin:0;position:relative;width:50%}.uppy-size--md .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem,.uppy-size--md .uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem{width:33.3333%}.uppy-size--lg .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem,.uppy-size--lg .uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem{width:25%}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem:before,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem:before{content:"";display:block;padding-top:100%}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--selected img,.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--selected svg,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--selected img,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--selected svg{opacity:.85}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--disabled,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--disabled{opacity:.5}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview .uppy-ProviderBrowserItem-inner,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--noPreview .uppy-ProviderBrowserItem-inner{background-color:#93939333}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview .uppy-ProviderBrowserItem-inner,[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--noPreview .uppy-ProviderBrowserItem-inner{background-color:#eaeaea33}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview svg,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--noPreview svg{height:30%;width:30%;fill:#000000b3}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview svg,[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--noPreview svg{fill:#fffc}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-inner,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-inner{border-radius:4px;height:calc(100% - 14px);inset:7px;overflow:hidden;position:absolute;text-align:center;width:calc(100% - 14px)}@media(hover:none){.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-inner .uppy-ProviderBrowserItem-author,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-inner .uppy-ProviderBrowserItem-author{display:block}}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-inner,[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-inner{box-shadow:0 0 0 3px #aae1ffb3}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-inner img,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-inner img{border-radius:4px;height:100%;object-fit:cover;width:100%}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-author,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-author{background:#0000004d;bottom:0;color:#fff;display:none;font-size:12px;font-weight:500;left:0;margin:0;padding:5px;position:absolute;text-decoration:none;width:100%}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-author:hover,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-author:hover{background:#0006;text-decoration:underline}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox{background-color:#1269cf;border-radius:50%;height:26px;opacity:0;position:absolute;right:16px;top:16px;width:26px;z-index:1002}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox:after,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox:after{height:7px;inset-inline-start:7px;top:8px;width:12px}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem--is-checked .uppy-ProviderBrowserItem-checkbox,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem--is-checked .uppy-ProviderBrowserItem-checkbox{opacity:1}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--grid:focus+label .uppy-ProviderBrowserItem-author,.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--grid:hover+label .uppy-ProviderBrowserItem-author,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--grid:focus+label .uppy-ProviderBrowserItem-author,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--grid:hover+label .uppy-ProviderBrowserItem-author{display:block}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--grid:focus+label,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--grid:focus+label{box-shadow:0 0 0 3px #1269cf80}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--grid:focus+label:focus,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--grid:focus+label:focus{outline:none}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--grid:focus+label::-moz-focus-inner,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--grid:focus+label::-moz-focus-inner{border:0}.uppy-ProviderBrowser-viewType--list{background-color:#fff}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--list{background-color:#1f1f1f}.uppy-ProviderBrowser-viewType--list li.uppy-ProviderBrowserItem{align-items:center;display:flex;margin:0;padding:7px 15px}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--list li.uppy-ProviderBrowserItem{color:#eaeaea}.uppy-ProviderBrowser-viewType--list li.uppy-ProviderBrowserItem--disabled{opacity:.6}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox{background-color:#fff;border:1px solid #cfcfcf;border-radius:3px;height:17px;margin-inline-end:15px;width:17px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox:focus{border:1px solid #1269cf;box-shadow:0 0 0 3px #1269cf40;outline:none}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox:after{height:5px;inset-inline-start:3px;opacity:0;top:4px;width:9px}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox:focus{border-color:#02baf2b3;box-shadow:0 0 0 3px #02baf233}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem--is-checked .uppy-ProviderBrowserItem-checkbox,.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem--is-partial .uppy-ProviderBrowserItem-checkbox{background-color:#1269cf;border-color:#1269cf}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem--is-checked .uppy-ProviderBrowserItem-checkbox:after,.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem--is-partial .uppy-ProviderBrowserItem-checkbox:after{opacity:1}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner{align-items:center;color:inherit;display:flex;font-family:-apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Segoe UI Symbol,Segoe UI Emoji,Apple Color Emoji,Roboto,Helvetica,Arial,sans-serif;overflow:hidden;padding:2px;text-overflow:ellipsis;white-space:nowrap}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner:focus{outline:none;text-decoration:underline}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner img,.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner svg{margin-inline-end:8px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner span{line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem--disabled .uppy-ProviderBrowserItem-inner{cursor:default}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-iconWrap{margin-inline-end:7px;width:20px}.uppy-ProviderBrowserItem-checkbox{cursor:pointer;flex-shrink:0;position:relative}.uppy-ProviderBrowserItem-checkbox:disabled,.uppy-ProviderBrowserItem-checkbox:disabled:after{cursor:default}[data-uppy-theme=dark] .uppy-ProviderBrowserItem-checkbox{background-color:#1f1f1f;border-color:#939393}[data-uppy-theme=dark] .uppy-ProviderBrowserItem--is-checked .uppy-ProviderBrowserItem-checkbox{background-color:#333}.uppy-ProviderBrowserItem--is-checked .uppy-ProviderBrowserItem-checkbox:after{border-bottom:2px solid #eaeaea;border-left:2px solid #eaeaea;content:"";cursor:pointer;position:absolute;transform:rotate(-45deg)}.uppy-ProviderBrowserItem--is-partial .uppy-ProviderBrowserItem-checkbox:after{background-color:#eaeaea!important;content:""!important;height:2px!important;left:20%!important;position:absolute!important;right:20%!important;top:50%!important;transform:translateY(-50%)!important}.uppy-SearchProvider{align-items:center;display:flex;flex:1;flex-direction:column;height:100%;justify-content:center;width:100%}[data-uppy-theme=dark] .uppy-SearchProvider{background-color:#1f1f1f}.uppy-SearchProvider-input{margin-bottom:15px;max-width:650px;width:90%}.uppy-size--md .uppy-SearchProvider-input{margin-bottom:20px}.uppy-SearchProvider-input::-webkit-search-cancel-button{display:none}.uppy-SearchProvider-searchButton{padding:13px 25px}.uppy-size--md .uppy-SearchProvider-searchButton{padding:13px 30px}.uppy-DashboardContent-panelBody{align-items:center;display:flex;flex:1;justify-content:center}[data-uppy-theme=dark] .uppy-DashboardContent-panelBody{background-color:#1f1f1f}.uppy-Provider-auth,.uppy-Provider-empty,.uppy-Provider-error,.uppy-Provider-loading{align-items:center;color:#939393;display:flex;flex:1;flex-flow:column wrap;justify-content:center}.uppy-Provider-empty{color:#939393}.uppy-Provider-authIcon svg{height:75px;width:100px}.uppy-Provider-authTitle{color:#757575;font-size:17px;font-weight:400;line-height:1.4;margin-bottom:30px;max-width:500px;padding:0 15px;text-align:center}.uppy-size--md .uppy-Provider-authTitle{font-size:20px}[data-uppy-theme=dark] .uppy-Provider-authTitle{color:#cfcfcf}.uppy-Provider-btn-google{align-items:center;background:#4285f4;display:flex;padding:8px 12px!important}.uppy-Provider-btn-google:hover{background-color:#1266f1}.uppy-Provider-btn-google:focus{box-shadow:0 0 0 3px #4285f466;outline:none}.uppy-Provider-btn-google svg{margin-right:8px}.uppy-Provider-breadcrumbs{color:#525252;flex:1;font-size:12px;margin-bottom:10px;text-align:start}.uppy-size--md .uppy-Provider-breadcrumbs{margin-bottom:0}[data-uppy-theme=dark] .uppy-Provider-breadcrumbs{color:#eaeaea}.uppy-Provider-breadcrumbsIcon{color:#525252;display:inline-block;line-height:1;margin-inline-end:4px;vertical-align:middle}.uppy-Provider-breadcrumbsIcon svg{height:13px;width:13px;fill:#525252}.uppy-Provider-breadcrumbs button{border-radius:3px;display:inline-block;line-height:inherit;padding:4px}.uppy-Provider-breadcrumbs button:focus{outline:none}.uppy-Provider-breadcrumbs button::-moz-focus-inner{border:0}.uppy-Provider-breadcrumbs button:hover{color:#0e51a0}.uppy-Provider-breadcrumbs button:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-Provider-breadcrumbs button:focus{background-color:#333}.uppy-Provider-breadcrumbs button:not(:last-of-type){text-decoration:underline}.uppy-Provider-breadcrumbs button:last-of-type{color:#333;cursor:normal;font-weight:500;pointer-events:none}.uppy-Provider-breadcrumbs button:hover{cursor:pointer}[data-uppy-theme=dark] .uppy-Provider-breadcrumbs button{color:#eaeaea}.uppy-ProviderBrowser{display:flex;flex:1;flex-direction:column;font-size:14px;font-weight:400;height:100%}.uppy-ProviderBrowser-user{color:#333;font-weight:500;margin:0 8px 0 0}[data-uppy-theme=dark] .uppy-ProviderBrowser-user{color:#eaeaea}.uppy-ProviderBrowser-user:after{color:#939393;content:"·";font-weight:400;inset-inline-start:4px;position:relative}.uppy-ProviderBrowser-header{border-bottom:1px solid #eaeaea;position:relative;z-index:1001}[data-uppy-theme=dark] .uppy-ProviderBrowser-header{border-bottom:1px solid #333}.uppy-ProviderBrowser-headerBar{background-color:#fafafa;color:#757575;font-size:12px;line-height:1.4;padding:7px 15px;z-index:1001}.uppy-size--md .uppy-ProviderBrowser-headerBar{align-items:center;display:flex}[data-uppy-theme=dark] .uppy-ProviderBrowser-headerBar{background-color:#1f1f1f}.uppy-ProviderBrowser-headerBar--simple{display:block;justify-content:center;text-align:center}.uppy-ProviderBrowser-headerBar--simple .uppy-Provider-breadcrumbsWrap{display:inline-block;flex:none;vertical-align:middle}.uppy-ProviderBrowser-searchFilter{align-items:center;display:flex;height:30px;margin-bottom:15px;margin-top:15px;padding-left:8px;padding-right:8px;position:relative;width:100%}.uppy-ProviderBrowser-searchFilterInput{background-color:#eaeaea;border:0;border-radius:4px;color:#333;font-family:-apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Segoe UI Symbol,Segoe UI Emoji,Apple Color Emoji,Roboto,Helvetica,Arial,sans-serif;font-size:13px;height:30px;line-height:1.4;outline:0;padding-inline-end:30px;padding-inline-start:30px;width:100%;z-index:1001}.uppy-ProviderBrowser-searchFilterInput::-webkit-search-cancel-button{display:none}[data-uppy-theme=dark] .uppy-ProviderBrowser-searchFilterInput{background-color:#1f1f1f;color:#eaeaea}.uppy-ProviderBrowser-searchFilterInput:focus{background-color:#cfcfcf;border:0}[data-uppy-theme=dark] .uppy-ProviderBrowser-searchFilterInput:focus{background-color:#333}.uppy-ProviderBrowser-searchFilterIcon{color:#757575;height:12px;inset-inline-start:16px;position:absolute;width:12px;z-index:1002}.uppy-ProviderBrowser-searchFilterInput::placeholder{color:#939393;opacity:1}.uppy-ProviderBrowser-searchFilterReset{border-radius:3px;color:#939393;cursor:pointer;height:22px;inset-inline-end:16px;padding:6px;position:absolute;width:22px;z-index:1002}.uppy-ProviderBrowser-searchFilterReset:focus{outline:none}.uppy-ProviderBrowser-searchFilterReset::-moz-focus-inner{border:0}.uppy-ProviderBrowser-searchFilterReset:focus{box-shadow:0 0 0 3px #1269cf80}.uppy-ProviderBrowser-searchFilterReset:hover{color:#757575}.uppy-ProviderBrowser-searchFilterReset svg{vertical-align:text-top}.uppy-ProviderBrowser-userLogout{border-radius:3px;color:#1269cf;cursor:pointer;line-height:inherit;padding:4px}.uppy-ProviderBrowser-userLogout:focus{outline:none}.uppy-ProviderBrowser-userLogout::-moz-focus-inner{border:0}.uppy-ProviderBrowser-userLogout:hover{color:#0e51a0}.uppy-ProviderBrowser-userLogout:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-ProviderBrowser-userLogout:focus{background-color:#333}.uppy-ProviderBrowser-userLogout:hover{text-decoration:underline}[data-uppy-theme=dark] .uppy-ProviderBrowser-userLogout{color:#eaeaea}.uppy-ProviderBrowser-body{flex:1;position:relative}.uppy-ProviderBrowser-list{background-color:#fff;border-spacing:0;display:block;flex:1;height:100%;inset:0;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;width:100%;-webkit-overflow-scrolling:touch}[data-uppy-theme=dark] .uppy-ProviderBrowser-list{background-color:#1f1f1f}.uppy-ProviderBrowser-list:focus{outline:none}.uppy-ProviderBrowserItem-inner{cursor:pointer;font-size:13px;font-weight:500}.uppy-ProviderBrowser-footer{align-items:center;background-color:#fff;border-top:1px solid #eaeaea;display:flex;justify-content:space-between;padding:15px}.uppy-ProviderBrowser-footer button{margin-inline-end:8px}[data-uppy-theme=dark] .uppy-ProviderBrowser-footer{background-color:#1f1f1f;border-top:1px solid #333}.uppy-ProviderBrowser-footer-buttons{flex-shrink:0}.uppy-ProviderBrowser-footer-error{color:#e32437;line-height:18px}@media(max-width:426px){.uppy-ProviderBrowser-footer{align-items:stretch;flex-direction:column-reverse}.uppy-ProviderBrowser-footer-error{padding-bottom:10px}}.picker-dialog-bg{z-index:20000!important}.picker-dialog{z-index:20001!important}.uppy-Dashboard-Item-previewInnerWrap{align-items:center;border-radius:3px;box-shadow:0 0 2px #0006;display:flex;flex-direction:column;height:100%;justify-content:center;overflow:hidden;position:relative;width:100%}.uppy-size--md .uppy-Dashboard-Item-previewInnerWrap{box-shadow:0 1px 2px #00000026}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-previewInnerWrap{box-shadow:none}.uppy-Dashboard-Item-previewInnerWrap:after{background-color:#000000a6;content:"";display:none;inset:0;position:absolute;z-index:1001}.uppy-Dashboard-Item-previewLink{inset:0;position:absolute;z-index:1002}.uppy-Dashboard-Item-previewLink:focus{box-shadow:inset 0 0 0 3px #579df0}[data-uppy-theme=dark] .uppy-Dashboard-Item-previewLink:focus{box-shadow:inset 0 0 0 3px #016c8d}.uppy-Dashboard-Item-preview img.uppy-Dashboard-Item-previewImg{border-radius:3px;height:100%;object-fit:cover;transform:translateZ(0);width:100%}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-preview img.uppy-Dashboard-Item-previewImg{height:auto;max-height:100%;max-width:100%;object-fit:contain;padding:10px;width:auto}.uppy-Dashboard-Item-progress{color:#fff;left:50%;position:absolute;text-align:center;top:50%;transform:translate(-50%,-50%);transition:all .35 ease;width:120px;z-index:1002}.uppy-Dashboard-Item-progressIndicator{color:#fff;display:inline-block;height:38px;opacity:.9;width:38px}.uppy-size--md .uppy-Dashboard-Item-progressIndicator{height:55px;width:55px}button.uppy-Dashboard-Item-progressIndicator{cursor:pointer}button.uppy-Dashboard-Item-progressIndicator:focus{outline:none}button.uppy-Dashboard-Item-progressIndicator::-moz-focus-inner{border:0}button.uppy-Dashboard-Item-progressIndicator:focus .uppy-Dashboard-Item-progressIcon--bg,button.uppy-Dashboard-Item-progressIndicator:focus .uppy-Dashboard-Item-progressIcon--retry{fill:#579df0}.uppy-Dashboard-Item-progressIcon--circle{height:100%;width:100%}.uppy-Dashboard-Item-progressIcon--bg{stroke:#fff6}.uppy-Dashboard-Item-progressIcon--progress{transition:stroke-dashoffset .5s ease-out;stroke:#fff}.uppy-Dashboard-Item-progressIcon--play{transition:all .2s;fill:#fff;stroke:#fff}.uppy-Dashboard-Item-progressIcon--cancel{transition:all .2s;fill:#fff}.uppy-Dashboard-Item-progressIcon--pause{transition:all .2s;fill:#fff;stroke:#fff}.uppy-Dashboard-Item-progressIcon--check{transition:all .2s;fill:#fff}.uppy-Dashboard-Item-progressIcon--retry{fill:#fff}.uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{inset-inline-end:-8px;inset-inline-start:auto;top:-9px;transform:none;width:auto}.uppy-Dashboard-Item.is-error .uppy-Dashboard-Item-progressIndicator{height:18px;width:18px}.uppy-size--md .uppy-Dashboard-Item.is-error .uppy-Dashboard-Item-progressIndicator{height:28px;width:28px}.uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progressIndicator{height:18px;opacity:1;width:18px}.uppy-size--md .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progressIndicator{height:22px;width:22px}.uppy-Dashboard-Item.is-processing .uppy-Dashboard-Item-progress{opacity:0}.uppy-Dashboard-Item-fileInfo{padding-inline-end:5px}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfo{padding-inline-end:10px}.uppy-size--md.uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfo{padding-inline-end:15px}.uppy-Dashboard-Item-name{font-size:12px;font-weight:500;line-height:1.3;margin-bottom:5px;word-wrap:anywhere;word-break:break-all}[data-uppy-theme=dark] .uppy-Dashboard-Item-name{color:#eaeaea}.uppy-size--md.uppy-Dashboard--singleFile .uppy-Dashboard-Item-name{font-size:14px;line-height:1.4}.uppy-Dashboard-Item-fileName{align-items:baseline;display:flex}.uppy-Dashboard-Item-fileName button{margin-left:5px}.uppy-Dashboard-Item-author{color:#757575;display:inline-block;font-size:11px;font-weight:400;line-height:1;margin-bottom:5px;vertical-align:bottom}.uppy-Dashboard-Item-author a{color:#757575}.uppy-Dashboard-Item-status{color:#757575;font-size:11px;font-weight:400;line-height:1}[data-uppy-theme=dark] .uppy-Dashboard-Item-status{color:#bbb}.uppy-Dashboard-Item-statusSize{display:inline-block;margin-bottom:5px;text-transform:uppercase;vertical-align:bottom}.uppy-Dashboard-Item-reSelect{color:#1269cf;font-family:inherit;font-size:inherit;font-weight:600}.uppy-Dashboard-Item-errorMessage{background-color:#fdeff1;color:#a51523;font-size:11px;font-weight:500;line-height:1.3;padding:5px 6px}.uppy-Dashboard-Item-errorMessageBtn{color:#a51523;cursor:pointer;font-size:11px;font-weight:500;text-decoration:underline}.uppy-Dashboard-Item-preview .uppy-Dashboard-Item-errorMessage{display:none}.uppy-size--md .uppy-Dashboard-Item-preview .uppy-Dashboard-Item-errorMessage{border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:1px solid #f7c2c8;bottom:0;display:block;left:0;line-height:1.4;padding:6px 8px;position:absolute;right:0}.uppy-Dashboard-Item-fileInfo .uppy-Dashboard-Item-errorMessage{border:1px solid #f7c2c8;border-radius:3px;display:inline-block;position:static}.uppy-size--md .uppy-Dashboard-Item-fileInfo .uppy-Dashboard-Item-errorMessage{display:none}.uppy-Dashboard-Item-action{color:#939393;cursor:pointer}.uppy-Dashboard-Item-action:focus{outline:none}.uppy-Dashboard-Item-action::-moz-focus-inner{border:0}.uppy-Dashboard-Item-action:focus{box-shadow:0 0 0 3px #1269cf80}.uppy-Dashboard-Item-action:hover{color:#1f1f1f;opacity:1}[data-uppy-theme=dark] .uppy-Dashboard-Item-action{color:#cfcfcf}[data-uppy-theme=dark] .uppy-Dashboard-Item-action:focus{outline:none}[data-uppy-theme=dark] .uppy-Dashboard-Item-action::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-Dashboard-Item-action:focus{box-shadow:0 0 0 2px #aae1ffd9}[data-uppy-theme=dark] .uppy-Dashboard-Item-action:hover{color:#eaeaea}.uppy-Dashboard-Item-action--remove{color:#1f1f1f;opacity:.95}.uppy-Dashboard-Item-action--remove:hover{color:#000;opacity:1}.uppy-size--md .uppy-Dashboard-Item-action--remove{height:18px;inset-inline-end:-8px;padding:0;position:absolute;top:-8px;width:18px;z-index:1002}.uppy-size--md .uppy-Dashboard-Item-action--remove:focus{border-radius:50%}.uppy-Dashboard--singleFile.uppy-size--height-md .uppy-Dashboard-Item-action--remove{inset-inline-end:8px;position:absolute;top:8px}[data-uppy-theme=dark] .uppy-Dashboard-Item-action--remove{color:#525252}[data-uppy-theme=dark] .uppy-Dashboard-Item-action--remove:hover{color:#333}.uppy-Dashboard:not(.uppy-size--md):not(.uppy-Dashboard--singleFile.uppy-size--height-md) .uppy-Dashboard-Item-actionWrapper{align-items:center;display:flex}.uppy-Dashboard:not(.uppy-size--md):not(.uppy-Dashboard--singleFile.uppy-size--height-md) .uppy-Dashboard-Item-action{height:22px;margin-left:3px;padding:3px;width:22px}.uppy-Dashboard:not(.uppy-size--md):not(.uppy-Dashboard--singleFile.uppy-size--height-md) .uppy-Dashboard-Item-action:focus{border-radius:3px}.uppy-size--md .uppy-Dashboard-Item-action--copyLink,.uppy-size--md .uppy-Dashboard-Item-action--edit{height:16px;padding:0;width:16px}.uppy-size--md .uppy-Dashboard-Item-action--copyLink:focus,.uppy-size--md .uppy-Dashboard-Item-action--edit:focus{border-radius:3px}.uppy-Dashboard-Item{align-items:center;border-bottom:1px solid #eaeaea;display:flex;padding:10px}.uppy-Dashboard:not(.uppy-Dashboard--singleFile) .uppy-Dashboard-Item{padding-inline-end:0}[data-uppy-theme=dark] .uppy-Dashboard-Item{border-bottom:1px solid #333}.uppy-size--md .uppy-Dashboard-Item{border-bottom:0;display:block;float:inline-start;height:215px;margin:5px 15px;padding:0;position:relative;width:calc(33.333% - 30px)}.uppy-size--lg .uppy-Dashboard-Item{height:190px;margin:5px 15px;padding:0;width:calc(25% - 30px)}.uppy-size--xl .uppy-Dashboard-Item{height:210px;padding:0;width:calc(20% - 30px)}.uppy-Dashboard--singleFile .uppy-Dashboard-Item{border-bottom:0;display:flex;flex-direction:column;height:100%;max-width:400px;padding:15px;position:relative;width:100%}.uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-previewInnerWrap{opacity:.2}.uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-name{opacity:.7}.uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-preview:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='35' height='39' viewBox='0 0 35 39'%3E%3Cpath fill='%2523000' d='M1.708 38.66c1.709 0 3.417-3.417 6.834-3.417s5.125 3.417 8.61 3.417c3.348 0 5.056-3.417 8.473-3.417 4.305 0 5.125 3.417 6.833 3.417.889 0 1.709-.889 1.709-1.709v-19.68C34.167-5.757 0-5.757 0 17.271v19.68c0 .82.888 1.709 1.708 1.709m8.542-17.084a3.383 3.383 0 0 1-3.417-3.416 3.383 3.383 0 0 1 3.417-3.417 3.383 3.383 0 0 1 3.417 3.417 3.383 3.383 0 0 1-3.417 3.416m13.667 0A3.383 3.383 0 0 1 20.5 18.16a3.383 3.383 0 0 1 3.417-3.417 3.383 3.383 0 0 1 3.416 3.417 3.383 3.383 0 0 1-3.416 3.416'/%3E%3C/svg%3E");background-position:50% 10px;background-repeat:no-repeat;background-size:25px;content:"";inset:0;opacity:.5;position:absolute;z-index:1005}.uppy-size--md .uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-preview:before{background-position:50% 50%;background-size:40px}.uppy-Dashboard--singleFile .uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-preview:before{background-position:50% 50%;background-size:30%}.uppy-Dashboard-Item-preview{flex-grow:0;flex-shrink:0;height:50px;position:relative;width:50px}.uppy-size--md .uppy-Dashboard-Item-preview{height:140px;width:100%}.uppy-size--lg .uppy-Dashboard-Item-preview{height:120px}.uppy-size--xl .uppy-Dashboard-Item-preview{height:140px}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-preview{flex-grow:1;max-height:75%;width:100%}.uppy-Dashboard--singleFile.uppy-size--md .uppy-Dashboard-Item-preview{max-height:100%}.uppy-Dashboard-Item-fileInfoAndButtons{align-items:center;display:flex;flex-grow:1;justify-content:space-between;padding-inline-end:8px;padding-inline-start:12px}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfoAndButtons,.uppy-size--md .uppy-Dashboard-Item-fileInfoAndButtons{align-items:flex-start;padding:9px 0 0}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfoAndButtons{flex-grow:0;width:100%}.uppy-Dashboard-Item-fileInfo{flex-grow:1;flex-shrink:1}.uppy-Dashboard-Item-actionWrapper{flex-grow:0;flex-shrink:0}.uppy-Dashboard-Item.is-error .uppy-Dashboard-Item-previewInnerWrap:after,.uppy-Dashboard-Item.is-inprogress .uppy-Dashboard-Item-previewInnerWrap:after{display:block}.uppy-Dashboard-Item-errorDetails{appearance:none;background-color:#939393;border:none;border-radius:50%;color:#fff;cursor:help;flex-shrink:0;font-size:10px;font-weight:600;height:13px;inset-inline-start:2px;line-height:12px;position:relative;text-align:center;top:0;width:13px}.uppy-Dashboard-Item-errorDetails:after{line-height:1.3;word-wrap:break-word}.uppy-Dashboard-FileCard{background-color:#fff;border-radius:5px;box-shadow:0 0 10px 4px #0000001a;display:flex;flex-direction:column;height:100%;inset:0;position:absolute;width:100%;z-index:1005}.uppy-Dashboard-FileCard .uppy-DashboardContent-bar{border-top-left-radius:5px;border-top-right-radius:5px}.uppy-Dashboard-FileCard .uppy-Dashboard-FileCard-actions{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.uppy-Dashboard-FileCard-inner{display:flex;flex-direction:column;flex-grow:1;flex-shrink:1;height:100%;min-height:0}.uppy-Dashboard-FileCard-preview{align-items:center;border-bottom:1px solid #eaeaea;display:flex;flex-grow:0;flex-shrink:1;height:60%;justify-content:center;min-height:0;position:relative}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-preview{background-color:#333;border-bottom:0}.uppy-Dashboard-FileCard-preview img.uppy-Dashboard-Item-previewImg{border-radius:3px;box-shadow:0 3px 20px #00000026;flex:0 0 auto;max-height:90%;max-width:90%;object-fit:cover}.uppy-Dashboard-FileCard-edit{background-color:#00000080;border-radius:50px;color:#fff;font-size:13px;inset-inline-end:10px;padding:7px 15px;position:absolute;top:10px}.uppy-Dashboard-FileCard-edit:focus{outline:none}.uppy-Dashboard-FileCard-edit::-moz-focus-inner{border:0}.uppy-Dashboard-FileCard-edit:focus{box-shadow:0 0 0 3px #1269cf80}.uppy-Dashboard-FileCard-edit:hover{background-color:#000c}.uppy-Dashboard-FileCard-info{flex-grow:0;flex-shrink:0;height:40%;overflow-y:auto;padding:30px 20px 20px;-webkit-overflow-scrolling:touch}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-info{background-color:#1f1f1f}.uppy-Dashboard-FileCard-fieldset{border:0;font-size:0;margin:auto auto 12px;max-width:640px;padding:0}.uppy-Dashboard-FileCard-label{color:#525252;display:inline-block;font-size:12px;vertical-align:middle;width:22%}.uppy-size--md .uppy-Dashboard-FileCard-label{font-size:14px}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-label{color:#eaeaea}.uppy-Dashboard-FileCard-input{display:inline-block;vertical-align:middle;width:78%}.uppy-Dashboard-FileCard-actions{align-items:center;background-color:#fafafa;border-top:1px solid #eaeaea;display:flex;flex-grow:0;flex-shrink:0;height:55px;padding:0 15px}.uppy-size--md .uppy-Dashboard-FileCard-actions{height:65px}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-actions{background-color:#1f1f1f;border-top:1px solid #333}.uppy-Dashboard-FileCard-actionsBtn{margin-inline-end:10px}.uppy-Informer{bottom:60px;left:0;position:absolute;right:0;text-align:center;z-index:1005}.uppy-Informer span>div{margin-bottom:6px}.uppy-Informer-animated{opacity:0;transform:translateY(350%);transition:all .3s ease-in;z-index:-1000}.uppy-Informer p{background-color:#757575;border-radius:18px;color:#fff;display:inline-block;font-size:12px;font-weight:400;line-height:1.4;margin:0;max-width:90%;padding:6px 15px}.uppy-size--md .uppy-Informer p{font-size:14px;line-height:1.3;max-width:500px;padding:10px 20px}[data-uppy-theme=dark] .uppy-Informer p{background-color:#333}.uppy-Informer p span{background-color:#fff;border-radius:50%;color:#525252;display:inline-block;font-size:10px;height:13px;inset-inline-start:3px;line-height:12px;margin-inline-start:-1px;position:relative;top:-1px;vertical-align:middle;width:13px}.uppy-Informer p span:hover{cursor:help}.uppy-Informer p span:after{line-height:1.3;word-wrap:break-word}.uppy-Root [aria-label][role~=tooltip]{position:relative}.uppy-Root [aria-label][role~=tooltip]:after,.uppy-Root [aria-label][role~=tooltip]:before{-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box;opacity:0;pointer-events:none;position:absolute;transform:translateZ(0);transform-origin:top;transition:all var(--microtip-transition-duration,.18s) var(--microtip-transition-easing,ease-in-out) var(--microtip-transition-delay,0s);will-change:transform;z-index:10}.uppy-Root [aria-label][role~=tooltip]:before{background-size:100% auto!important;content:""}.uppy-Root [aria-label][role~=tooltip]:after{background:#111111e6;border-radius:4px;box-sizing:initial;color:#fff;content:attr(aria-label);font-size:var(--microtip-font-size,13px);font-weight:var(--microtip-font-weight,normal);padding:.5em 1em;text-transform:var(--microtip-text-transform,none);white-space:nowrap}.uppy-Root [aria-label][role~=tooltip]:focus:after,.uppy-Root [aria-label][role~=tooltip]:focus:before,.uppy-Root [aria-label][role~=tooltip]:hover:after,.uppy-Root [aria-label][role~=tooltip]:hover:before{opacity:1;pointer-events:auto}.uppy-Root [role~=tooltip][data-microtip-position|=top]:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M2.658 0h32.004c-6 0-11.627 12.002-16.002 12.002S8.594 0 2.658 0'/%3E%3C/svg%3E") no-repeat;bottom:100%;height:6px;left:50%;margin-bottom:5px;transform:translate3d(-50%,0,0);width:18px}.uppy-Root [role~=tooltip][data-microtip-position|=top]:after{bottom:100%;left:50%;margin-bottom:11px;transform:translate3d(-50%,0,0)}.uppy-Root [role~=tooltip][data-microtip-position=top]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position|=top]:hover:before{transform:translate3d(-50%,-5px,0)}.uppy-Root [role~=tooltip][data-microtip-position=top-left]:after{bottom:100%;transform:translate3d(calc(-100% + 16px),0,0)}.uppy-Root [role~=tooltip][data-microtip-position=top-left]:hover:after{transform:translate3d(calc(-100% + 16px),-5px,0)}.uppy-Root [role~=tooltip][data-microtip-position=top-right]:after{bottom:100%;transform:translate3d(-16px,0,0)}.uppy-Root [role~=tooltip][data-microtip-position=top-right]:hover:after{transform:translate3d(-16px,-5px,0)}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M33.342 12H1.338c6 0 11.627-12.002 16.002-12.002S27.406 12 33.342 12'/%3E%3C/svg%3E") no-repeat;bottom:auto;height:6px;left:50%;margin-bottom:0;margin-top:5px;top:100%;transform:translate3d(-50%,-10px,0);width:18px}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:after{left:50%;margin-top:11px;top:100%;transform:translate3d(-50%,-10px,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:hover:before{transform:translate3d(-50%,0,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom-left]:after{top:100%;transform:translate3d(calc(-100% + 16px),-10px,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom-left]:hover:after{transform:translate3d(calc(-100% + 16px),0,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom-right]:after{top:100%;transform:translate3d(-16px,-10px,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom-right]:hover:after{transform:translate3d(-16px,0,0)}.uppy-Root [role~=tooltip][data-microtip-position=left]:after,.uppy-Root [role~=tooltip][data-microtip-position=left]:before{inset:50% 100% auto auto;transform:translate3d(10px,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-position=left]:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='36'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M0 33.342V1.338c0 6 12.002 11.627 12.002 16.002S0 27.406 0 33.342'/%3E%3C/svg%3E") no-repeat;height:18px;margin-bottom:0;margin-right:5px;width:6px}.uppy-Root [role~=tooltip][data-microtip-position=left]:after{margin-right:11px}.uppy-Root [role~=tooltip][data-microtip-position=left]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position=left]:hover:before{transform:translate3d(0,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-position=right]:after,.uppy-Root [role~=tooltip][data-microtip-position=right]:before{bottom:auto;left:100%;top:50%;transform:translate3d(-10px,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-position=right]:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='36'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M12 2.658v32.004c0-6-12.002-11.627-12.002-16.002S12 8.594 12 2.658'/%3E%3C/svg%3E") no-repeat;height:18px;margin-bottom:0;margin-left:5px;width:6px}.uppy-Root [role~=tooltip][data-microtip-position=right]:after{margin-left:11px}.uppy-Root [role~=tooltip][data-microtip-position=right]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position=right]:hover:before{transform:translate3d(0,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-size=small]:after{white-space:normal;width:80px}.uppy-Root [role~=tooltip][data-microtip-size=medium]:after{white-space:normal;width:150px}.uppy-Root [role~=tooltip][data-microtip-size=large]:after{white-space:normal;width:260px}.uppy-StatusBar{background-color:#fff;color:#fff;display:flex;font-size:12px;font-weight:400;height:46px;line-height:40px;position:relative;transition:height .2s;z-index:1001}[data-uppy-theme=dark] .uppy-StatusBar{background-color:#1f1f1f}.uppy-StatusBar:before{background-color:#eaeaea;content:"";height:2px;inset:0;position:absolute;width:100%}[data-uppy-theme=dark] .uppy-StatusBar:before{background-color:#757575}.uppy-StatusBar[aria-hidden=true]{height:0;overflow-y:hidden}.uppy-StatusBar.is-complete .uppy-StatusBar-progress{background-color:#1bb240}.uppy-StatusBar.is-error .uppy-StatusBar-progress{background-color:#e32437}.uppy-StatusBar.is-complete .uppy-StatusBar-statusIndicator{color:#1bb240}.uppy-StatusBar.is-error .uppy-StatusBar-statusIndicator{color:#e32437}.uppy-StatusBar:not([aria-hidden=true]).is-waiting{background-color:#fff;border-top:1px solid #eaeaea;height:65px}[data-uppy-theme=dark] .uppy-StatusBar:not([aria-hidden=true]).is-waiting{background-color:#1f1f1f;border-top:1px solid #333}.uppy-StatusBar-progress{background-color:#1269cf;height:2px;position:absolute;transition:background-color,width .3s ease-out;z-index:1001}.uppy-StatusBar-progress.is-indeterminate{animation:uppy-StatusBar-ProgressStripes 1s linear infinite;background-image:linear-gradient(45deg,#0000004d 25%,#0000 0 50%,#0000004d 0 75%,#0000 0,#0000);background-size:64px 64px}@keyframes uppy-StatusBar-ProgressStripes{0%{background-position:0 0}to{background-position:64px 0}}.uppy-StatusBar.is-postprocessing .uppy-StatusBar-progress,.uppy-StatusBar.is-preprocessing .uppy-StatusBar-progress{background-color:#f6a623}.uppy-StatusBar.is-waiting .uppy-StatusBar-progress{display:none}.uppy-StatusBar-content{align-items:center;color:#333;display:flex;height:100%;padding-inline-start:10px;position:relative;text-overflow:ellipsis;white-space:nowrap;z-index:1002}.uppy-size--md .uppy-StatusBar-content{padding-inline-start:15px}[data-uppy-theme=dark] .uppy-StatusBar-content{color:#eaeaea}.uppy-StatusBar-status{display:flex;flex-direction:column;font-weight:400;justify-content:center;line-height:1.4;padding-inline-end:.3em}.uppy-StatusBar-statusPrimary{display:flex;font-weight:500;line-height:1}.uppy-StatusBar-statusPrimary button.uppy-StatusBar-details{margin-left:5px}[data-uppy-theme=dark] .uppy-StatusBar-statusPrimary{color:#eaeaea}.uppy-StatusBar-statusSecondary{color:#757575;display:inline-block;font-size:11px;line-height:1.2;margin-top:1px;white-space:nowrap}[data-uppy-theme=dark] .uppy-StatusBar-statusSecondary{color:#bbb}.uppy-StatusBar-statusSecondaryHint{display:inline-block;line-height:1;margin-inline-end:5px;vertical-align:middle}.uppy-size--md .uppy-StatusBar-statusSecondaryHint{margin-inline-end:8px}.uppy-StatusBar-statusIndicator{color:#525252;margin-inline-end:7px;position:relative;top:1px}.uppy-StatusBar-statusIndicator svg{vertical-align:text-bottom}.uppy-StatusBar-actions{align-items:center;bottom:0;display:flex;inset-inline-end:10px;position:absolute;top:0;z-index:1004}.uppy-StatusBar.is-waiting .uppy-StatusBar-actions{background-color:#fafafa;height:100%;padding:0 15px;position:static;width:100%}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actions{background-color:#1f1f1f}.uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts{flex-direction:column;height:90px}.uppy-size--md .uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts{flex-direction:row;height:65px}.uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts .uppy-StatusBar-actions{flex-direction:column;justify-content:center}.uppy-size--md .uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts .uppy-StatusBar-actions{flex-direction:row;justify-content:normal}.uppy-StatusBar-actionCircleBtn{cursor:pointer;line-height:1;margin:3px;opacity:.9}.uppy-StatusBar-actionCircleBtn:focus{outline:none}.uppy-StatusBar-actionCircleBtn::-moz-focus-inner{border:0}.uppy-StatusBar-actionCircleBtn:focus{box-shadow:0 0 0 3px #1269cf80}[data-uppy-theme=dark] .uppy-StatusBar-actionCircleBtn:focus{outline:none}[data-uppy-theme=dark] .uppy-StatusBar-actionCircleBtn::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-StatusBar-actionCircleBtn:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-StatusBar-actionCircleBtn:hover{opacity:1}.uppy-StatusBar-actionCircleBtn:focus{border-radius:50%}.uppy-StatusBar-actionCircleBtn svg{vertical-align:bottom}.uppy-StatusBar-actionBtn{color:#1269cf;display:inline-block;font-size:10px;line-height:inherit;vertical-align:middle}.uppy-size--md .uppy-StatusBar-actionBtn{font-size:11px}.uppy-StatusBar-actionBtn--disabled{opacity:.4}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--disabled{opacity:.7}.uppy-StatusBar-actionBtn--retry{background-color:#ff4b23;border-radius:8px;color:#fff;height:16px;line-height:1;margin-inline-end:6px;padding:1px 6px 3px 18px;position:relative}.uppy-StatusBar-actionBtn--retry:focus{outline:none}.uppy-StatusBar-actionBtn--retry::-moz-focus-inner{border:0}.uppy-StatusBar-actionBtn--retry:focus{box-shadow:0 0 0 3px #1269cf80}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--retry:focus{outline:none}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--retry::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--retry:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-StatusBar-actionBtn--retry:hover{background-color:#f92d00}.uppy-StatusBar-actionBtn--retry svg{inset-inline-start:6px;position:absolute;top:3px}.uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload{background-color:#1bb240;color:#fff;font-size:14px;line-height:1;padding:15px 10px;width:100%}.uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload:hover{background-color:#189c38}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload{background-color:#1c8b37}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload:hover{background-color:#18762f}.uppy-size--md .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload{padding:13px 22px;width:auto}.uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload.uppy-StatusBar-actionBtn--disabled:hover{background-color:#1bb240;cursor:not-allowed}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload.uppy-StatusBar-actionBtn--disabled:hover{background-color:#1c8b37}.uppy-StatusBar:not(.is-waiting) .uppy-StatusBar-actionBtn--upload{background-color:initial;color:#1269cf}.uppy-StatusBar-actionBtn--uploadNewlyAdded{border-radius:3px;padding-inline-end:3px;padding-bottom:1px;padding-inline-start:3px}.uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{outline:none}.uppy-StatusBar-actionBtn--uploadNewlyAdded::-moz-focus-inner{border:0}.uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{box-shadow:0 0 0 3px #1269cf80}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{outline:none}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--uploadNewlyAdded::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-StatusBar.is-postprocessing .uppy-StatusBar-actionBtn--uploadNewlyAdded,.uppy-StatusBar.is-preprocessing .uppy-StatusBar-actionBtn--uploadNewlyAdded{display:none}.uppy-StatusBar-actionBtn--done{border-radius:3px;line-height:1;padding:7px 8px}.uppy-StatusBar-actionBtn--done:focus{outline:none}.uppy-StatusBar-actionBtn--done::-moz-focus-inner{border:0}.uppy-StatusBar-actionBtn--done:hover{color:#0e51a0}.uppy-StatusBar-actionBtn--done:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--done:focus{background-color:#333}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--done{color:#02baf2}.uppy-size--md .uppy-StatusBar-actionBtn--done{font-size:14px}.uppy-StatusBar-serviceMsg{color:#000;font-size:11px;line-height:1.1;padding-left:10px}.uppy-size--md .uppy-StatusBar-serviceMsg{font-size:14px;padding-left:15px}[data-uppy-theme=dark] .uppy-StatusBar-serviceMsg{color:#eaeaea}.uppy-StatusBar-serviceMsg-ghostsIcon{left:6px;opacity:.5;position:relative;top:2px;vertical-align:text-bottom;width:10px}.uppy-size--md .uppy-StatusBar-serviceMsg-ghostsIcon{left:10px;top:1px;width:15px}.uppy-StatusBar-details{appearance:none;background-color:#939393;border-radius:50%;color:#fff;cursor:help;display:inline-block;font-size:10px;font-weight:600;height:13px;inset-inline-start:2px;line-height:12px;position:relative;text-align:center;top:0;vertical-align:middle;width:13px}.uppy-StatusBar-details:after{line-height:1.3;word-wrap:break-word}.uppy-StatusBar-spinner{animation-duration:1s;animation-iteration-count:infinite;animation-name:uppy-StatusBar-spinnerAnimation;animation-timing-function:linear;fill:#1269cf;margin-inline-end:10px}.uppy-StatusBar.is-postprocessing .uppy-StatusBar-spinner,.uppy-StatusBar.is-preprocessing .uppy-StatusBar-spinner{fill:#f6a623}@keyframes uppy-StatusBar-spinnerAnimation{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.uppy-transition-slideDownUp-enter{opacity:.01;transform:translate3d(0,-105%,0);transition:transform .25s ease-in-out,opacity .25s ease-in-out}.uppy-transition-slideDownUp-enter.uppy-transition-slideDownUp-enter-active{opacity:1;transform:translateZ(0)}.uppy-transition-slideDownUp-leave{opacity:1;transform:translateZ(0);transition:transform .25s ease-in-out,opacity .25s ease-in-out}.uppy-transition-slideDownUp-leave.uppy-transition-slideDownUp-leave-active{opacity:.01;transform:translate3d(0,-105%,0)}@keyframes uppy-Dashboard-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes uppy-Dashboard-fadeOut{0%{opacity:1}to{opacity:0}}@keyframes uppy-Dashboard-slideDownAndFadeIn{0%{opacity:0;transform:translate3d(-50%,-70%,0)}to{opacity:1;transform:translate3d(-50%,-50%,0)}}@keyframes uppy-Dashboard-slideDownAndFadeIn--small{0%{opacity:0;transform:translate3d(0,-20%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes uppy-Dashboard-slideUpFadeOut{0%{opacity:1;transform:translate3d(-50%,-50%,0)}to{opacity:0;transform:translate3d(-50%,-70%,0)}}@keyframes uppy-Dashboard-slideUpFadeOut--small{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20%,0)}}.uppy-Dashboard--modal{z-index:1001}.uppy-Dashboard--modal[aria-hidden=true]{display:none}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideDownAndFadeIn--small .3s cubic-bezier(0,0,.2,1)}@media only screen and (min-width:820px){.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideDownAndFadeIn .3s cubic-bezier(0,0,.2,1)}}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose>.uppy-Dashboard-overlay{animation:uppy-Dashboard-fadeIn .3s cubic-bezier(0,0,.2,1)}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideUpFadeOut--small .3s cubic-bezier(0,0,.2,1)}@media only screen and (min-width:820px){.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideUpFadeOut .3s cubic-bezier(0,0,.2,1)}}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing>.uppy-Dashboard-overlay{animation:uppy-Dashboard-fadeOut .3s cubic-bezier(0,0,.2,1)}.uppy-Dashboard-isFixed{height:100vh;overflow:hidden}.uppy-Dashboard--modal .uppy-Dashboard-overlay{background-color:#00000080;inset:0;position:fixed;z-index:1001}.uppy-Dashboard-inner{background-color:#f4f4f4;border:1px solid #eaeaea;border-radius:5px;max-height:100%;max-width:100%;outline:none;position:relative}.uppy-size--md .uppy-Dashboard-inner{min-height:auto}@media only screen and (min-width:820px){.uppy-Dashboard-inner{height:500px;width:650px}}.uppy-Dashboard--modal .uppy-Dashboard-inner{z-index:1002}[data-uppy-theme=dark] .uppy-Dashboard-inner{background-color:#1f1f1f}.uppy-Dashboard--isDisabled .uppy-Dashboard-inner{cursor:not-allowed}.uppy-Dashboard-innerWrap{border-radius:5px;display:flex;flex-direction:column;height:100%;opacity:0;overflow:hidden;position:relative}.uppy-Dashboard--isInnerWrapVisible .uppy-Dashboard-innerWrap{opacity:1}.uppy-Dashboard--isDisabled .uppy-Dashboard-innerWrap{cursor:not-allowed;filter:grayscale(100%);opacity:.6;-webkit-user-select:none;user-select:none}.uppy-Dashboard--isDisabled .uppy-ProviderIconBg{fill:#9f9f9f}.uppy-Dashboard--isDisabled [aria-disabled],.uppy-Dashboard--isDisabled [disabled]{cursor:not-allowed;pointer-events:none}.uppy-Dashboard--modal .uppy-Dashboard-inner{border:none;inset:35px 15px 15px;position:fixed}@media only screen and (min-width:820px){.uppy-Dashboard--modal .uppy-Dashboard-inner{box-shadow:0 5px 15px 4px #00000026;left:50%;right:auto;top:50%;transform:translate(-50%,-50%)}}.uppy-Dashboard-close{color:#ffffffe6;cursor:pointer;display:block;font-size:27px;inset-inline-end:-2px;position:absolute;top:-33px;z-index:1005}.uppy-Dashboard-close:focus{outline:none}.uppy-Dashboard-close::-moz-focus-inner{border:0}.uppy-Dashboard-close:focus{color:#6eabf2}@media only screen and (min-width:820px){.uppy-Dashboard-close{font-size:35px;inset-inline-end:-35px;top:-10px}}.uppy-Dashboard-serviceMsg{background-color:#fffbf7;border-bottom:1px solid #edd4b9;border-top:1px solid #edd4b9;font-size:12px;font-weight:500;line-height:1.3;padding:12px 0;position:relative;top:-1px;z-index:1004}.uppy-size--md .uppy-Dashboard-serviceMsg{font-size:14px;line-height:1.4}[data-uppy-theme=dark] .uppy-Dashboard-serviceMsg{background-color:#1f1f1f;border-bottom:1px solid #333;border-top:1px solid #333;color:#eaeaea}.uppy-Dashboard-serviceMsg-title{display:block;line-height:1;margin-bottom:4px;padding-left:42px}.uppy-Dashboard-serviceMsg-text{padding:0 15px}.uppy-Dashboard-serviceMsg-actionBtn{color:#1269cf;font-size:inherit;font-weight:inherit;vertical-align:initial}[data-uppy-theme=dark] .uppy-Dashboard-serviceMsg-actionBtn{color:#02baf2e6}.uppy-Dashboard-serviceMsg-icon{left:15px;position:absolute;top:10px}.uppy-Dashboard-AddFiles{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;position:relative;text-align:center}[data-uppy-drag-drop-supported=true] .uppy-Dashboard-AddFiles{border:1px dashed #dfdfdf;border-radius:3px;height:calc(100% - 14px);margin:7px}.uppy-Dashboard-AddFilesPanel .uppy-Dashboard-AddFiles{border:none;height:calc(100% - 54px)}.uppy-Dashboard--modal .uppy-Dashboard-AddFiles{border-color:#cfcfcf}[data-uppy-theme=dark] .uppy-Dashboard-AddFiles{border-color:#757575}.uppy-Dashboard-AddFiles-info{display:none;margin-top:auto;padding-bottom:15px;padding-top:15px}.uppy-size--height-md .uppy-Dashboard-AddFiles-info{display:block}.uppy-size--md .uppy-Dashboard-AddFiles-info{bottom:25px;left:0;padding-bottom:0;padding-top:30px;position:absolute;right:0}[data-uppy-num-acquirers="0"] .uppy-Dashboard-AddFiles-info{margin-top:0}.uppy-Dashboard-browse{color:#1269cf;cursor:pointer}.uppy-Dashboard-browse:focus{outline:none}.uppy-Dashboard-browse::-moz-focus-inner{border:0}.uppy-Dashboard-browse:focus,.uppy-Dashboard-browse:hover{border-bottom:1px solid #1269cf}[data-uppy-theme=dark] .uppy-Dashboard-browse{color:#02baf2e6}[data-uppy-theme=dark] .uppy-Dashboard-browse:focus,[data-uppy-theme=dark] .uppy-Dashboard-browse:hover{border-bottom:1px solid #02baf2}.uppy-Dashboard-browseBtn{display:block;font-size:14px;font-weight:500;margin-bottom:5px;margin-top:8px;width:100%}.uppy-size--md .uppy-Dashboard-browseBtn{font-size:15px;margin:15px auto;padding:13px 44px;width:auto}.uppy-Dashboard-AddFiles-list{display:flex;flex:1;flex-direction:column;margin-top:2px;overflow-y:auto;padding:2px 0;width:100%;-webkit-overflow-scrolling:touch}.uppy-size--md .uppy-Dashboard-AddFiles-list{flex:none;flex-direction:row;flex-wrap:wrap;justify-content:center;margin-top:15px;max-width:600px;overflow-y:visible;padding-top:0}.uppy-DashboardTab{border-bottom:1px solid #eaeaea;text-align:center;width:100%}[data-uppy-theme=dark] .uppy-DashboardTab{border-bottom:1px solid #333}.uppy-size--md .uppy-DashboardTab{border-bottom:none;display:inline-block;margin-bottom:10px;width:auto}.uppy-DashboardTab-btn{align-items:center;-webkit-appearance:none;appearance:none;background-color:initial;color:#525252;cursor:pointer;flex-direction:row;height:100%;justify-content:left;padding:12px 15px;width:100%}.uppy-DashboardTab-btn:focus{outline:none}.uppy-size--md .uppy-DashboardTab-btn{border-radius:5px;flex-direction:column;margin-inline-end:1px;padding:10px 3px;width:86px}[data-uppy-theme=dark] .uppy-DashboardTab-btn{color:#eaeaea}.uppy-DashboardTab-btn::-moz-focus-inner{border:0}.uppy-DashboardTab-btn:hover{background-color:#e9ecef}[data-uppy-theme=dark] .uppy-DashboardTab-btn:hover{background-color:#333}.uppy-DashboardTab-btn:active,.uppy-DashboardTab-btn:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-DashboardTab-btn:active,[data-uppy-theme=dark] .uppy-DashboardTab-btn:focus{background-color:#525252}.uppy-DashboardTab-btn svg{display:inline-block;max-height:100%;max-width:100%;overflow:hidden;transition:transform .15s ease-in-out;vertical-align:text-top}.uppy-DashboardTab-inner{align-items:center;background-color:#fff;border-radius:8px;box-shadow:0 1px 1px #0000001a,0 1px 2px #0000001a,0 2px 3px #00000005;display:flex;height:32px;justify-content:center;margin-inline-end:10px;width:32px}.uppy-size--md .uppy-DashboardTab-inner{margin-inline-end:0}[data-uppy-theme=dark] .uppy-DashboardTab-inner{background-color:#323232;box-shadow:0 1px 1px #0003,0 1px 2px #0003,0 2px 3px #00000014}.uppy-DashboardTab-name{font-size:14px;font-weight:400}.uppy-size--md .uppy-DashboardTab-name{font-size:12px;line-height:15px;margin-bottom:0;margin-top:8px}.uppy-DashboardTab-iconMyDevice{color:#1269cf}[data-uppy-theme=dark] .uppy-DashboardTab-iconMyDevice{color:#02baf2}.uppy-DashboardTab-iconBox{color:#0061d5}[data-uppy-theme=dark] .uppy-DashboardTab-iconBox{color:#eaeaea}.uppy-DashboardTab-iconDropbox{color:#0061fe}[data-uppy-theme=dark] .uppy-DashboardTab-iconDropbox{color:#eaeaea}.uppy-DashboardTab-iconUnsplash{color:#111}[data-uppy-theme=dark] .uppy-DashboardTab-iconUnsplash{color:#eaeaea}.uppy-DashboardTab-iconWebdav{color:#111}[data-uppy-theme=dark] .uppy-DashboardTab-iconWebdav{color:#eaeaea}.uppy-DashboardTab-iconScreenRec{color:#2c3e50}[data-uppy-theme=dark] .uppy-DashboardTab-iconScreenRec{color:#eaeaea}.uppy-DashboardTab-iconAudio{color:#8030a3}[data-uppy-theme=dark] .uppy-DashboardTab-iconAudio{color:#bf6ee3}.uppy-Dashboard-input{height:.1px;opacity:0;overflow:hidden;position:absolute;width:.1px;z-index:-1}.uppy-DashboardContent-bar{align-items:center;background-color:#fafafa;border-bottom:1px solid #eaeaea;display:flex;flex-shrink:0;height:40px;justify-content:space-between;padding:0 10px;position:relative;width:100%;z-index:1004}.uppy-size--md .uppy-DashboardContent-bar{height:50px;padding:0 15px}[data-uppy-theme=dark] .uppy-DashboardContent-bar{background-color:#1f1f1f;border-bottom:1px solid #333}.uppy-DashboardContent-title{font-size:12px;font-weight:500;left:0;line-height:40px;margin:auto;max-width:170px;overflow-x:hidden;position:absolute;right:0;text-align:center;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}.uppy-size--md .uppy-DashboardContent-title{font-size:14px;line-height:50px;max-width:300px}[data-uppy-theme=dark] .uppy-DashboardContent-title{color:#eaeaea}.uppy-DashboardContent-back,.uppy-DashboardContent-save{-webkit-appearance:none;background:none;border:0;border-radius:3px;color:inherit;color:#1269cf;cursor:pointer;font-family:inherit;font-size:inherit;font-size:12px;font-weight:400;line-height:1;margin:0;margin-inline-start:-6px;padding:7px 6px}.uppy-DashboardContent-back:focus,.uppy-DashboardContent-save:focus{outline:none}.uppy-DashboardContent-back::-moz-focus-inner,.uppy-DashboardContent-save::-moz-focus-inner{border:0}.uppy-DashboardContent-back:hover,.uppy-DashboardContent-save:hover{color:#0e51a0}.uppy-DashboardContent-back:focus,.uppy-DashboardContent-save:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-DashboardContent-back:focus,[data-uppy-theme=dark] .uppy-DashboardContent-save:focus{background-color:#333}.uppy-size--md .uppy-DashboardContent-back,.uppy-size--md .uppy-DashboardContent-save{font-size:14px}[data-uppy-theme=dark] .uppy-DashboardContent-back,[data-uppy-theme=dark] .uppy-DashboardContent-save{color:#02baf2}.uppy-DashboardContent-addMore{-webkit-appearance:none;background:none;border:0;border-radius:3px;color:inherit;color:#1269cf;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:500;height:29px;line-height:1;margin:0;margin-inline-end:-5px;padding:7px 8px;width:29px}.uppy-DashboardContent-addMore:focus{outline:none}.uppy-DashboardContent-addMore::-moz-focus-inner{border:0}.uppy-DashboardContent-addMore:hover{color:#0e51a0}.uppy-DashboardContent-addMore:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-DashboardContent-addMore:focus{background-color:#333}.uppy-size--md .uppy-DashboardContent-addMore{font-size:14px;height:auto;margin-inline-end:-8px;width:auto}[data-uppy-theme=dark] .uppy-DashboardContent-addMore{color:#02baf2}.uppy-DashboardContent-addMore svg{margin-inline-end:4px;vertical-align:initial}.uppy-size--md .uppy-DashboardContent-addMore svg{height:11px;width:11px}.uppy-DashboardContent-addMoreCaption{display:none}.uppy-size--md .uppy-DashboardContent-addMoreCaption{display:inline}.uppy-DashboardContent-panel{background-color:#f5f5f5;flex:1}.uppy-Dashboard-AddFilesPanel,.uppy-DashboardContent-panel{border-radius:5px;display:flex;flex-direction:column;inset:0;overflow:hidden;position:absolute;z-index:1005}.uppy-Dashboard-AddFilesPanel{background:#fafafa;background:linear-gradient(0deg,#fafafa 35%,#fafafad9);box-shadow:0 0 10px 5px #00000026}[data-uppy-theme=dark] .uppy-Dashboard-AddFilesPanel{background-color:#333;background-image:linear-gradient(0deg,#1f1f1f 35%,#1f1f1fd9)}.uppy-Dashboard--isAddFilesPanelVisible .uppy-Dashboard-files{filter:blur(2px)}.uppy-Dashboard-progress{bottom:0;height:12%;left:0;position:absolute;width:100%}.uppy-Dashboard-progressBarContainer.is-active{height:100%;left:0;position:absolute;top:0;width:100%;z-index:1004}.uppy-Dashboard-filesContainer{flex:1;margin:0;overflow-y:hidden;position:relative}.uppy-Dashboard-filesContainer:after{clear:both;content:"";display:table}.uppy-Dashboard-files{flex:1;margin:0;overflow-y:auto;padding:0 0 10px;-webkit-overflow-scrolling:touch}.uppy-size--md .uppy-Dashboard-files{padding-top:10px}.uppy-Dashboard--singleFile .uppy-Dashboard-filesInner{align-items:center;display:flex;height:100%;justify-content:center}.uppy-Dashboard-dropFilesHereHint{align-items:center;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath fill='%231269CF' d='M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0zm7.707 19.293a.999.999 0 1 1-1.414 1.414L25 16.414V34a1 1 0 1 1-2 0V16.414l-5.293 5.293a.999.999 0 1 1-1.414-1.414l7-7a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E");background-position:50% 50%;background-repeat:no-repeat;border:1px dashed #1269cf;border-radius:3px;color:#757575;display:flex;font-size:16px;justify-content:center;inset:7px;padding-top:90px;position:absolute;text-align:center;visibility:hidden;z-index:2000}[data-uppy-theme=dark] .uppy-Dashboard-dropFilesHereHint{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath fill='%2302BAF2' d='M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0zm7.707 19.293a.999.999 0 1 1-1.414 1.414L25 16.414V34a1 1 0 1 1-2 0V16.414l-5.293 5.293a.999.999 0 1 1-1.414-1.414l7-7a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E");border-color:#02baf2;color:#bbb}.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-dropFilesHereHint{pointer-events:none;visibility:visible}.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-files,.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-progressindicators,.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-serviceMsg,.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-DashboardContent-bar{opacity:.15}.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-AddFiles{opacity:.03}.uppy-Dashboard-AddFiles-title{color:#000;font-size:17px;font-weight:500;line-height:1.35;margin-bottom:5px;margin-top:15px;padding:0 15px;text-align:inline-start;width:100%}.uppy-size--md .uppy-Dashboard-AddFiles-title{font-size:21px;font-weight:400;margin-top:5px;max-width:480px;padding:0 35px;text-align:center}[data-uppy-num-acquirers="0"] .uppy-Dashboard-AddFiles-title{text-align:center}[data-uppy-theme=dark] .uppy-Dashboard-AddFiles-title{color:#eaeaea}.uppy-Dashboard-AddFiles-title button{font-weight:500}.uppy-size--md .uppy-Dashboard-AddFiles-title button{font-weight:400}.uppy-Dashboard-note{color:#757575;font-size:14px;line-height:1.25;margin:auto;max-width:350px;padding:0 15px;text-align:center}.uppy-size--md .uppy-Dashboard-note{line-height:1.35;max-width:600px}[data-uppy-theme=dark] .uppy-Dashboard-note{color:#cfcfcf}a.uppy-Dashboard-poweredBy{color:#939393;display:inline-block;font-size:11px;margin-top:8px;text-align:center;text-decoration:none}.uppy-Dashboard-poweredByIcon{margin-left:1px;margin-right:1px;opacity:.9;position:relative;top:1px;vertical-align:text-top;fill:none;stroke:#939393}.uppy-Dashboard-Item-previewIcon{height:25px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:25px;z-index:100}.uppy-size--md .uppy-Dashboard-Item-previewIcon{height:38px;width:38px}.uppy-Dashboard-Item-previewIcon svg{height:100%;width:100%}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-previewIcon{height:100%;max-height:60%;max-width:60%;width:100%}.uppy-Dashboard-Item-previewIconWrap{height:76px;max-height:75%;position:relative}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-previewIconWrap{height:100%;width:100%}.uppy-Dashboard-Item-previewIconBg{filter:drop-shadow(rgba(0,0,0,.1) 0 1px 1px);height:100%;width:100%}.uppy-Dashboard-upload{height:50px;position:relative;width:50px}.uppy-size--md .uppy-Dashboard-upload{height:60px;width:60px}.uppy-Dashboard-upload .uppy-c-icon{position:relative;top:1px;width:50%}.uppy-Dashboard-uploadCount{background-color:#1bb240;border-radius:50%;color:#fff;font-size:8px;height:16px;inset-inline-end:-12px;line-height:16px;position:absolute;top:-12px;width:16px}.uppy-size--md .uppy-Dashboard-uploadCount{font-size:9px;height:18px;line-height:18px;width:18px}.uppy-Dashboard-inner{border:none!important;background:transparent!important}.uppy-Dashboard-innerWrap{border-radius:.5rem;overflow:hidden}.uppy-Dashboard-AddFiles{border:2px dashed hsl(var(--color-border))!important;border-radius:.5rem!important;background:hsl(var(--color-muted) / .3)!important;transition:all .2s ease}.uppy-Dashboard-AddFiles:hover{border-color:hsl(var(--color-primary))!important;background:hsl(var(--color-muted) / .5)!important}.uppy-Dashboard-AddFiles-title{color:hsl(var(--color-foreground))!important;font-weight:500!important}.uppy-Dashboard-AddFiles-info{color:hsl(var(--color-muted-foreground))!important}.uppy-Dashboard-browse{color:hsl(var(--color-primary))!important;font-weight:500!important}.uppy-Dashboard-browse:hover{text-decoration:underline!important}.uppy-Dashboard-files{background:transparent!important}.uppy-Dashboard-Item{border-bottom-color:hsl(var(--color-border))!important}.uppy-Dashboard-Item-name{color:hsl(var(--color-foreground))!important}.uppy-Dashboard-Item-status{color:hsl(var(--color-muted-foreground))!important}.uppy-StatusBar{background:hsl(var(--color-muted))!important;border-top:1px solid hsl(var(--color-border))!important}.uppy-StatusBar-progress{background:hsl(var(--color-primary))!important}.uppy-StatusBar-content{color:hsl(var(--color-foreground))!important}.uppy-StatusBar-actionBtn--upload{background:hsl(var(--color-primary))!important;color:hsl(var(--color-primary-foreground))!important;border-radius:.375rem!important;font-weight:500!important;padding:.5rem 1rem!important}.uppy-StatusBar-actionBtn--upload:hover{background:hsl(var(--color-primary) / .9)!important}.uppy-Dashboard-note{color:hsl(var(--color-muted-foreground))!important;font-size:.75rem!important}[data-uppy-theme=dark] .uppy-Dashboard-AddFiles,.dark .uppy-Dashboard-AddFiles{background:hsl(var(--color-muted) / .2)!important}[data-uppy-theme=dark] .uppy-Dashboard-AddFiles-title,.dark .uppy-Dashboard-AddFiles-title{color:hsl(var(--color-foreground))!important}[data-uppy-theme=dark] .uppy-StatusBar,.dark .uppy-StatusBar{background:hsl(var(--color-muted) / .5)!important}.uppy-Dashboard{font-family:inherit!important}.uppy-Dashboard-Item-preview{border-radius:.375rem!important;overflow:hidden}.uppy-Dashboard-Item-action--remove{color:hsl(var(--color-destructive))!important}.uppy-Dashboard-Item-action--remove:hover{opacity:.8}.uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{color:hsl(var(--success, 142 76% 36%))!important}.uppy-Dashboard-Item.is-error .uppy-Dashboard-Item-progress{color:hsl(var(--color-destructive))!important}.uppy-Dashboard-files::-webkit-scrollbar{width:6px}.uppy-Dashboard-files::-webkit-scrollbar-track{background:transparent}.uppy-Dashboard-files::-webkit-scrollbar-thumb{background:hsl(var(--color-muted-foreground) / .3);border-radius:3px}.uppy-Dashboard-files::-webkit-scrollbar-thumb:hover{background:hsl(var(--color-muted-foreground) / .5)} diff --git a/dashboard/dist/assets/index-B3954xeN.css b/dashboard/dist/assets/index-B3954xeN.css new file mode 100644 index 00000000..7147641c --- /dev/null +++ b/dashboard/dist/assets/index-B3954xeN.css @@ -0,0 +1 @@ +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-50:oklch(98% .016 73.684);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-200:oklch(90.1% .076 70.697);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-600:oklch(64.6% .222 41.116);--color-orange-700:oklch(55.3% .195 38.402);--color-orange-800:oklch(47% .157 37.304);--color-orange-900:oklch(40.8% .123 38.172);--color-orange-950:oklch(26.6% .079 36.259);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-900:oklch(42.1% .095 57.708);--color-yellow-950:oklch(28.6% .066 53.813);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-900:oklch(39.3% .095 152.535);--color-green-950:oklch(26.6% .065 152.934);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-500:oklch(71.5% .143 215.221);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-700:oklch(50% .134 242.749);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-violet-500:oklch(60.6% .25 292.717);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-rose-500:oklch(64.5% .246 16.439);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-black:900;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-2xl:1rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--animate-bounce:bounce 1s infinite;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--blur-xl:24px;--blur-3xl:64px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--typography-font-family-base);--default-mono-font-family:var(--typography-font-family-code);--color-border:hsl(var(--border));--color-input:hsl(var(--input));--color-ring:hsl(var(--ring));--color-background:hsl(var(--background));--color-foreground:hsl(var(--foreground));--color-primary:hsl(var(--primary));--color-primary-foreground:hsl(var(--primary-foreground));--color-secondary:hsl(var(--secondary));--color-secondary-foreground:hsl(var(--secondary-foreground));--color-muted:hsl(var(--muted));--color-muted-foreground:hsl(var(--muted-foreground));--color-accent:hsl(var(--accent));--color-accent-foreground:hsl(var(--accent-foreground));--color-card:hsl(var(--card));--color-card-foreground:hsl(var(--card-foreground));--color-popover:hsl(var(--popover));--color-popover-foreground:hsl(var(--popover-foreground));--color-destructive:hsl(var(--destructive));--color-destructive-foreground:hsl(var(--destructive-foreground))}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--color-primary:188.5 100% 45.5%;--color-primary-foreground:210 40% 98%;--color-primary-gradient:none;--color-secondary:188.5 35% 96%;--color-secondary-foreground:222.2 47.4% 11.2%;--color-muted:188.5 12% 96%;--color-muted-foreground:188.5 20% 46.9%;--color-accent:223.5 60% 50.4%;--color-accent-foreground:222.2 47.4% 11.2%;--color-destructive:0 84.2% 45%;--color-destructive-foreground:210 40% 98%;--color-background:0 0% 100%;--color-foreground:222.2 84% 4.9%;--color-card:188.5 14% 98.6%;--color-card-foreground:222.2 84% 4.9%;--color-popover:188.5 16% 99.3%;--color-popover-foreground:222.2 84% 4.9%;--color-border:188.5 20% 91.4%;--color-input:188.5 20% 91.4%;--color-ring:188.5 100% 45.5%;--color-chart-1:188.5 100% 45.5%;--color-chart-2:160 60% 45%;--color-chart-3:30 80% 55%;--color-chart-4:280 65% 60%;--color-chart-5:340 75% 55%;--typography-font-family-base:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--typography-font-family-code:"JetBrains Mono", "Monaco", "Courier New", monospace;--typography-font-size-xs:.75rem;--typography-font-size-sm:.875rem;--typography-font-size-base:1rem;--typography-font-size-lg:1.125rem;--typography-font-size-xl:1.25rem;--typography-font-size-2xl:1.5rem;--typography-font-weight-normal:400;--typography-font-weight-medium:500;--typography-font-weight-semibold:600;--typography-font-weight-bold:700;--typography-line-height-tight:1.2;--typography-line-height-normal:1.5;--typography-line-height-relaxed:1.75;--typography-letter-spacing-tight:-.02em;--typography-letter-spacing-normal:0em;--typography-letter-spacing-wide:.02em;--visual-radius-sm:.25rem;--visual-radius-md:.375rem;--visual-radius-lg:.5rem;--visual-radius-xl:.75rem;--visual-radius-full:9999px;--visual-shadow-sm:0 1px 2px 0 #0000000d;--visual-shadow-md:0 4px 6px -1px #0000001a;--visual-shadow-lg:0 10px 15px -3px #0000001a;--visual-shadow-xl:0 20px 25px -5px #0000001a;--visual-blur-sm:4px;--visual-blur-md:12px;--visual-blur-lg:24px;--visual-opacity-disabled:.5;--visual-opacity-hover:.8;--visual-opacity-overlay:.75;--layout-space-unit:.25rem;--layout-space-xs:.5rem;--layout-space-sm:.75rem;--layout-space-md:1rem;--layout-space-lg:1.5rem;--layout-space-xl:2rem;--layout-space-2xl:3rem;--layout-sidebar-width:13rem;--layout-header-height:3.5rem;--layout-max-content-width:1280px;--animation-anim-duration-fast:.15s;--animation-anim-duration-normal:.3s;--animation-anim-duration-slow:.5s;--animation-anim-easing-default:cubic-bezier(.4, 0, .2, 1);--animation-anim-easing-in:cubic-bezier(.4, 0, 1, 1);--animation-anim-easing-out:cubic-bezier(0, 0, .2, 1);--animation-anim-easing-in-out:cubic-bezier(.4, 0, .2, 1);--animation-transition-colors:color .3s cubic-bezier(.4, 0, .2, 1);--animation-transition-transform:transform .3s cubic-bezier(.4, 0, .2, 1);--animation-transition-opacity:opacity .3s cubic-bezier(.4, 0, .2, 1);--background:var(--color-background);--foreground:var(--color-foreground);--card:var(--color-card);--card-foreground:var(--color-card-foreground);--popover:var(--color-popover);--popover-foreground:var(--color-popover-foreground);--primary:var(--color-primary);--primary-foreground:var(--color-primary-foreground);--primary-gradient:var(--color-primary-gradient);--secondary:var(--color-secondary);--secondary-foreground:var(--color-secondary-foreground);--muted:var(--color-muted);--muted-foreground:var(--color-muted-foreground);--accent:var(--color-accent);--accent-foreground:var(--color-accent-foreground);--destructive:var(--color-destructive);--destructive-foreground:var(--color-destructive-foreground);--border:var(--color-border);--input:var(--color-input);--ring:var(--color-ring);--radius:var(--visual-radius-lg);--chart-1:var(--color-chart-1);--chart-2:var(--color-chart-2);--chart-3:var(--color-chart-3);--chart-4:var(--color-chart-4);--chart-5:var(--color-chart-5)}.dark{--color-primary:188.5 100% 45.5%;--color-primary-foreground:210 40% 98%;--color-primary-gradient:none;--color-secondary:188.5 35% 17.5%;--color-secondary-foreground:210 40% 98%;--color-muted:188.5 12% 17.5%;--color-muted-foreground:188.5 20% 65.1%;--color-accent:223.5 60% 35.3%;--color-accent-foreground:210 40% 98%;--color-destructive:0 62.8% 30.6%;--color-destructive-foreground:210 40% 98%;--color-background:222.2 84% 4.9%;--color-foreground:210 40% 98%;--color-card:188.5 18% 8.8%;--color-card-foreground:210 40% 98%;--color-popover:188.5 21% 10.5%;--color-popover-foreground:210 40% 98%;--color-border:188.5 20% 17.5%;--color-input:188.5 20% 17.5%;--color-ring:188.5 100% 45.5%;--color-chart-1:188.5 100% 45.5%;--color-chart-2:160 60% 50%;--color-chart-3:30 80% 60%;--color-chart-4:280 65% 65%;--color-chart-5:340 75% 60%;--visual-shadow-sm:0 1px 2px 0 #00000040;--visual-shadow-md:0 4px 6px -1px #0000004d;--visual-shadow-lg:0 10px 15px -3px #0006;--visual-shadow-xl:0 20px 25px -5px #00000080;--background:var(--color-background);--foreground:var(--color-foreground);--card:var(--color-card);--card-foreground:var(--color-card-foreground);--popover:var(--color-popover);--popover-foreground:var(--color-popover-foreground);--primary:var(--color-primary);--primary-foreground:var(--color-primary-foreground);--primary-gradient:var(--color-primary-gradient);--secondary:var(--color-secondary);--secondary-foreground:var(--color-secondary-foreground);--muted:var(--color-muted);--muted-foreground:var(--color-muted-foreground);--accent:var(--color-accent);--accent-foreground:var(--color-accent-foreground);--destructive:var(--color-destructive);--destructive-foreground:var(--color-destructive-foreground);--border:var(--color-border);--input:var(--color-input);--ring:var(--color-ring);--chart-1:var(--color-chart-1);--chart-2:var(--color-chart-2);--chart-3:var(--color-chart-3);--chart-4:var(--color-chart-4);--chart-5:var(--color-chart-5)}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{appearance:textfield}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-8{inset:calc(var(--spacing) * 8)}.inset-16{inset:calc(var(--spacing) * 16)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.inset-x-4{inset-inline:calc(var(--spacing) * 4)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.-top-0\.5{top:calc(var(--spacing) * -.5)}.-top-1\/4{top:-25%}.top-0{top:calc(var(--spacing) * 0)}.top-1{top:calc(var(--spacing) * 1)}.top-1\/2{top:50%}.top-1\/4{top:25%}.top-2{top:calc(var(--spacing) * 2)}.top-2\.5{top:calc(var(--spacing) * 2.5)}.top-3{top:calc(var(--spacing) * 3)}.top-3\/4{top:75%}.top-4{top:calc(var(--spacing) * 4)}.top-\[50\%\]{top:50%}.-right-0\.5{right:calc(var(--spacing) * -.5)}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-1\/3{right:33.3333%}.right-1\/4{right:25%}.right-2{right:calc(var(--spacing) * 2)}.right-4{right:calc(var(--spacing) * 4)}.right-8{right:calc(var(--spacing) * 8)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-1\/4{bottom:25%}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-24{bottom:calc(var(--spacing) * 24)}.-left-1\/4{left:-25%}.left-0{left:calc(var(--spacing) * 0)}.left-1{left:calc(var(--spacing) * 1)}.left-1\/2{left:50%}.left-1\/4{left:25%}.left-2{left:calc(var(--spacing) * 2)}.left-2\.5{left:calc(var(--spacing) * 2.5)}.left-3{left:calc(var(--spacing) * 3)}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.-z-10{z-index:-10}.z-1{z-index:1}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.order-1{order:1}.order-2{order:2}.col-span-2{grid-column:span 2/span 2}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing) * 0)}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.-mx-6{margin-inline:calc(var(--spacing) * -6)}.mx-0{margin-inline:calc(var(--spacing) * 0)}.mx-0\.5{margin-inline:calc(var(--spacing) * .5)}.mx-1{margin-inline:calc(var(--spacing) * 1)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-auto{margin-inline:auto}.my-0\.5{margin-block:calc(var(--spacing) * .5)}.my-1{margin-block:calc(var(--spacing) * 1)}.my-2{margin-block:calc(var(--spacing) * 2)}.my-3{margin-block:calc(var(--spacing) * 3)}.my-4{margin-block:calc(var(--spacing) * 4)}.-mt-1{margin-top:calc(var(--spacing) * -1)}.-mt-2{margin-top:calc(var(--spacing) * -2)}.mt-0{margin-top:calc(var(--spacing) * 0)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-auto{margin-top:auto}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-auto{margin-right:auto}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-\[1px\]{margin-bottom:1px}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-5{margin-left:calc(var(--spacing) * 5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-10{margin-left:calc(var(--spacing) * 10)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.\!block{display:block!important}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-\[--cell-size\]{width:--cell-size;height:--cell-size}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1{height:calc(var(--spacing) * 1)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-24{height:calc(var(--spacing) * 24)}.h-32{height:calc(var(--spacing) * 32)}.h-40{height:calc(var(--spacing) * 40)}.h-48{height:calc(var(--spacing) * 48)}.h-60{height:calc(var(--spacing) * 60)}.h-62\.5{height:calc(var(--spacing) * 62.5)}.h-64{height:calc(var(--spacing) * 64)}.h-87\.5{height:calc(var(--spacing) * 87.5)}.h-96{height:calc(var(--spacing) * 96)}.h-100{height:calc(var(--spacing) * 100)}.h-\[--cell-size\]{height:--cell-size}.h-\[1\.25rem\]{height:1.25rem}.h-\[1px\]{height:1px}.h-\[2px\]{height:2px}.h-\[70vh\]{height:70vh}.h-\[90vh\]{height:90vh}.h-\[150\%\]{height:150%}.h-\[188px\]{height:188px}.h-\[200px\]{height:200px}.h-\[208px\]{height:208px}.h-\[220px\]{height:220px}.h-\[240px\]{height:240px}.h-\[250px\]{height:250px}.h-\[260px\]{height:260px}.h-\[280px\]{height:280px}.h-\[300px\]{height:300px}.h-\[320px\]{height:320px}.h-\[400px\]{height:400px}.h-\[420px\]{height:420px}.h-\[520px\]{height:520px}.h-\[600px\]{height:600px}.h-\[720px\]{height:720px}.h-\[calc\(100vh-4rem\)\]{height:calc(100vh - 4rem)}.h-\[calc\(100vh-12rem\)\]{height:calc(100vh - 12rem)}.h-\[calc\(100vh-140px\)\]{height:calc(100vh - 140px)}.h-\[calc\(100vh-180px\)\]{height:calc(100vh - 180px)}.h-\[calc\(100vh-200px\)\]{height:calc(100vh - 200px)}.h-\[calc\(100vh-220px\)\]{height:calc(100vh - 220px)}.h-\[calc\(100vh-240px\)\]{height:calc(100vh - 240px)}.h-\[calc\(100vh-260px\)\]{height:calc(100vh - 260px)}.h-\[calc\(100vh-290px\)\]{height:calc(100vh - 290px)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-\[--radix-context-menu-content-available-height\]{max-height:--radix-context-menu-content-available-height}.max-h-\[--radix-select-content-available-height\]{max-height:--radix-select-content-available-height}.max-h-\[60vh\]{max-height:60vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[85vh\]{max-height:85vh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[200px\]{max-height:200px}.max-h-\[300px\]{max-height:300px}.max-h-\[calc\(100vh-2rem\)\]{max-height:calc(100vh - 2rem)}.max-h-full{max-height:100%}.max-h-none{max-height:none}.max-h-screen{max-height:100vh}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-14{min-height:calc(var(--spacing) * 14)}.min-h-25{min-height:calc(var(--spacing) * 25)}.min-h-\[40px\]{min-height:40px}.min-h-\[60px\]{min-height:60px}.min-h-\[120px\]{min-height:120px}.min-h-\[180px\]{min-height:180px}.min-h-\[200px\]{min-height:200px}.min-h-\[220px\]{min-height:220px}.min-h-\[300px\]{min-height:300px}.min-h-\[320px\]{min-height:320px}.min-h-\[360px\]{min-height:360px}.min-h-\[400px\]{min-height:400px}.min-h-\[720px\]{min-height:720px}.min-h-\[xxx\]{min-height:xxx}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-0{width:calc(var(--spacing) * 0)}.w-1{width:calc(var(--spacing) * 1)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-28{width:calc(var(--spacing) * 28)}.w-32{width:calc(var(--spacing) * 32)}.w-36{width:calc(var(--spacing) * 36)}.w-40{width:calc(var(--spacing) * 40)}.w-52{width:calc(var(--spacing) * 52)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-\[--cell-size\]{width:--cell-size}.w-\[1px\]{width:1px}.w-\[65px\]{width:65px}.w-\[70px\]{width:70px}.w-\[72px\]{width:72px}.w-\[78px\]{width:78px}.w-\[84px\]{width:84px}.w-\[95vw\]{width:95vw}.w-\[100px\]{width:100px}.w-\[108px\]{width:108px}.w-\[120px\]{width:120px}.w-\[130px\]{width:130px}.w-\[140px\]{width:140px}.w-\[150\%\]{width:150%}.w-\[160px\]{width:160px}.w-\[200px\]{width:200px}.w-\[220px\]{width:220px}.w-\[600px\]{width:600px}.w-\[min\(calc\(100vw-2rem\)\,var\(--dialog-width\,32rem\)\)\]{width:min(calc(100vw - 2rem),var(--dialog-width,32rem))}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-24{max-width:calc(var(--spacing) * 24)}.max-w-25{max-width:calc(var(--spacing) * 25)}.max-w-32{max-width:calc(var(--spacing) * 32)}.max-w-40{max-width:calc(var(--spacing) * 40)}.max-w-72{max-width:calc(var(--spacing) * 72)}.max-w-80{max-width:calc(var(--spacing) * 80)}.max-w-\[60px\]{max-width:60px}.max-w-\[80\%\]{max-width:80%}.max-w-\[95vw\]{max-width:95vw}.max-w-\[120px\]{max-width:120px}.max-w-\[150px\]{max-width:150px}.max-w-\[180px\]{max-width:180px}.max-w-\[200px\]{max-width:200px}.max-w-\[280px\]{max-width:280px}.max-w-\[360px\]{max-width:360px}.max-w-\[1800px\]{max-width:1800px}.max-w-\[min\(96vw\,1100px\)\]{max-width:min(96vw,1100px)}.max-w-\[var\(--max-width\)\]{max-width:var(--max-width)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-xl{max-width:var(--container-xl)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-6{min-width:calc(var(--spacing) * 6)}.min-w-20{min-width:calc(var(--spacing) * 20)}.min-w-\[--cell-size\]{min-width:--cell-size}.min-w-\[8rem\]{min-width:8rem}.min-w-\[100px\]{min-width:100px}.min-w-\[120px\]{min-width:120px}.min-w-\[140px\]{min-width:140px}.min-w-\[160px\]{min-width:160px}.min-w-\[200px\]{min-width:200px}.min-w-\[680px\]{min-width:680px}.min-w-\[700px\]{min-width:700px}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.origin-\[--radix-context-menu-content-transform-origin\]{transform-origin:--radix-context-menu-content-transform-origin}.origin-\[--radix-popover-content-transform-origin\]{transform-origin:--radix-popover-content-transform-origin}.origin-\[--radix-select-content-transform-origin\]{transform-origin:--radix-select-content-transform-origin}.origin-\[--radix-tooltip-content-transform-origin\]{transform-origin:--radix-tooltip-content-transform-origin}.origin-center{transform-origin:50%}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-1\/4{--tw-translate-x: -25% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-32{--tw-translate-x:calc(var(--spacing) * 32);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/4{--tw-translate-y: -25% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.-rotate-90{rotate:-90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-\[ping_3s_ease-in-out_infinite\]{animation:3s ease-in-out infinite ping}.animate-\[ping_3s_ease-in-out_infinite_0\.5s\]{animation:3s ease-in-out .5s infinite ping}.animate-\[ping_3s_ease-in-out_infinite_1s\]{animation:3s ease-in-out 1s infinite ping}.animate-bounce{animation:var(--animate-bounce)}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize{resize:both}.resize-none{resize:none}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-rows-\[auto_1fr_auto\]{grid-template-rows:auto 1fr auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing) * 0)}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 0) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 0) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}.gap-y-1{row-gap:calc(var(--spacing) * 1)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[2px\]{border-radius:2px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--visual-radius-lg)}.rounded-md{border-radius:var(--visual-radius-md)}.rounded-none{border-radius:0}.rounded-sm{border-radius:var(--visual-radius-sm)}.rounded-xl{border-radius:var(--visual-radius-xl)}.rounded-t-lg{border-top-left-radius:var(--visual-radius-lg);border-top-right-radius:var(--visual-radius-lg)}.rounded-l-md{border-top-left-radius:var(--visual-radius-md);border-bottom-left-radius:var(--visual-radius-md)}.rounded-r-full{border-top-right-radius:3.40282e38px;border-bottom-right-radius:3.40282e38px}.rounded-r-md{border-top-right-radius:var(--visual-radius-md);border-bottom-right-radius:var(--visual-radius-md)}.rounded-br-md{border-bottom-right-radius:var(--visual-radius-md)}.rounded-bl-md{border-bottom-left-radius:var(--visual-radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-solid{--tw-border-style:solid;border-style:solid}.border-\[--color-border\]{border-color:--color-border}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-300{border-color:var(--color-amber-300)}.border-amber-500\/20{border-color:#f99c0033}@supports (color:color-mix(in lab,red,red)){.border-amber-500\/20{border-color:color-mix(in oklab,var(--color-amber-500) 20%,transparent)}}.border-amber-500\/30{border-color:#f99c004d}@supports (color:color-mix(in lab,red,red)){.border-amber-500\/30{border-color:color-mix(in oklab,var(--color-amber-500) 30%,transparent)}}.border-amber-500\/35{border-color:#f99c0059}@supports (color:color-mix(in lab,red,red)){.border-amber-500\/35{border-color:color-mix(in oklab,var(--color-amber-500) 35%,transparent)}}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-700{border-color:var(--color-blue-700)}.border-border,.border-border\/40{border-color:hsl(var(--border))}@supports (color:color-mix(in lab,red,red)){.border-border\/40{border-color:color-mix(in oklab,hsl(var(--border)) 40%,transparent)}}.border-border\/50{border-color:hsl(var(--border))}@supports (color:color-mix(in lab,red,red)){.border-border\/50{border-color:color-mix(in oklab,hsl(var(--border)) 50%,transparent)}}.border-border\/60{border-color:hsl(var(--border))}@supports (color:color-mix(in lab,red,red)){.border-border\/60{border-color:color-mix(in oklab,hsl(var(--border)) 60%,transparent)}}.border-border\/70{border-color:hsl(var(--border))}@supports (color:color-mix(in lab,red,red)){.border-border\/70{border-color:color-mix(in oklab,hsl(var(--border)) 70%,transparent)}}.border-card{border-color:hsl(var(--card))}.border-current{border-color:currentColor}.border-destructive,.border-destructive\/20{border-color:hsl(var(--destructive))}@supports (color:color-mix(in lab,red,red)){.border-destructive\/20{border-color:color-mix(in oklab,hsl(var(--destructive)) 20%,transparent)}}.border-destructive\/30{border-color:hsl(var(--destructive))}@supports (color:color-mix(in lab,red,red)){.border-destructive\/30{border-color:color-mix(in oklab,hsl(var(--destructive)) 30%,transparent)}}.border-destructive\/50{border-color:hsl(var(--destructive))}@supports (color:color-mix(in lab,red,red)){.border-destructive\/50{border-color:color-mix(in oklab,hsl(var(--destructive)) 50%,transparent)}}.border-emerald-500\/20{border-color:#00bb7f33}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/20{border-color:color-mix(in oklab,var(--color-emerald-500) 20%,transparent)}}.border-emerald-500\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/30{border-color:color-mix(in oklab,var(--color-emerald-500) 30%,transparent)}}.border-gray-800{border-color:var(--color-gray-800)}.border-green-200{border-color:var(--color-green-200)}.border-green-300{border-color:var(--color-green-300)}.border-green-500{border-color:var(--color-green-500)}.border-green-600{border-color:var(--color-green-600)}.border-green-700{border-color:var(--color-green-700)}.border-green-700\/40{border-color:#00813866}@supports (color:color-mix(in lab,red,red)){.border-green-700\/40{border-color:color-mix(in oklab,var(--color-green-700) 40%,transparent)}}.border-input{border-color:hsl(var(--input))}.border-muted{border-color:hsl(var(--muted))}.border-muted-foreground\/20{border-color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.border-muted-foreground\/20{border-color:color-mix(in oklab,hsl(var(--muted-foreground)) 20%,transparent)}}.border-muted-foreground\/25{border-color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.border-muted-foreground\/25{border-color:color-mix(in oklab,hsl(var(--muted-foreground)) 25%,transparent)}}.border-muted-foreground\/30{border-color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.border-muted-foreground\/30{border-color:color-mix(in oklab,hsl(var(--muted-foreground)) 30%,transparent)}}.border-muted-foreground\/50{border-color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.border-muted-foreground\/50{border-color:color-mix(in oklab,hsl(var(--muted-foreground)) 50%,transparent)}}.border-orange-200{border-color:var(--color-orange-200)}.border-orange-500{border-color:var(--color-orange-500)}.border-orange-600{border-color:var(--color-orange-600)}.border-orange-700{border-color:var(--color-orange-700)}.border-primary,.border-primary\/10{border-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.border-primary\/10{border-color:color-mix(in oklab,hsl(var(--primary)) 10%,transparent)}}.border-primary\/20{border-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.border-primary\/20{border-color:color-mix(in oklab,hsl(var(--primary)) 20%,transparent)}}.border-primary\/30{border-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.border-primary\/30{border-color:color-mix(in oklab,hsl(var(--primary)) 30%,transparent)}}.border-primary\/50{border-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.border-primary\/50{border-color:color-mix(in oklab,hsl(var(--primary)) 50%,transparent)}}.border-primary\/60{border-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.border-primary\/60{border-color:color-mix(in oklab,hsl(var(--primary)) 60%,transparent)}}.border-primary\/70{border-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.border-primary\/70{border-color:color-mix(in oklab,hsl(var(--primary)) 70%,transparent)}}.border-purple-500{border-color:var(--color-purple-500)}.border-red-200{border-color:var(--color-red-200)}.border-red-300{border-color:var(--color-red-300)}.border-red-500{border-color:var(--color-red-500)}.border-red-500\/50{border-color:#fb2c3680}@supports (color:color-mix(in lab,red,red)){.border-red-500\/50{border-color:color-mix(in oklab,var(--color-red-500) 50%,transparent)}}.border-sky-500\/20{border-color:#00a5ef33}@supports (color:color-mix(in lab,red,red)){.border-sky-500\/20{border-color:color-mix(in oklab,var(--color-sky-500) 20%,transparent)}}.border-transparent{border-color:#0000}.border-violet-500\/20{border-color:#8d54ff33}@supports (color:color-mix(in lab,red,red)){.border-violet-500\/20{border-color:color-mix(in oklab,var(--color-violet-500) 20%,transparent)}}.border-yellow-200{border-color:var(--color-yellow-200)}.border-yellow-500\/50{border-color:#edb20080}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/50{border-color:color-mix(in oklab,var(--color-yellow-500) 50%,transparent)}}.border-t-transparent{border-top-color:#0000}.border-l-emerald-500\/60{border-left-color:#00bb7f99}@supports (color:color-mix(in lab,red,red)){.border-l-emerald-500\/60{border-left-color:color-mix(in oklab,var(--color-emerald-500) 60%,transparent)}}.border-l-purple-500\/60{border-left-color:#ac4bff99}@supports (color:color-mix(in lab,red,red)){.border-l-purple-500\/60{border-left-color:color-mix(in oklab,var(--color-purple-500) 60%,transparent)}}.border-l-teal-500\/60{border-left-color:#00baa799}@supports (color:color-mix(in lab,red,red)){.border-l-teal-500\/60{border-left-color:color-mix(in oklab,var(--color-teal-500) 60%,transparent)}}.border-l-transparent{border-left-color:#0000}.bg-\[--color-bg\]{background-color:--color-bg}.bg-accent{background-color:hsl(var(--accent))}.bg-amber-50\/40{background-color:#fffbeb66}@supports (color:color-mix(in lab,red,red)){.bg-amber-50\/40{background-color:color-mix(in oklab,var(--color-amber-50) 40%,transparent)}}.bg-amber-50\/50{background-color:#fffbeb80}@supports (color:color-mix(in lab,red,red)){.bg-amber-50\/50{background-color:color-mix(in oklab,var(--color-amber-50) 50%,transparent)}}.bg-amber-500{background-color:var(--color-amber-500)}.bg-amber-500\/5{background-color:#f99c000d}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/5{background-color:color-mix(in oklab,var(--color-amber-500) 5%,transparent)}}.bg-amber-500\/10{background-color:#f99c001a}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/10{background-color:color-mix(in oklab,var(--color-amber-500) 10%,transparent)}}.bg-amber-500\/15{background-color:#f99c0026}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/15{background-color:color-mix(in oklab,var(--color-amber-500) 15%,transparent)}}.bg-amber-600{background-color:var(--color-amber-600)}.bg-background,.bg-background\/40{background-color:hsl(var(--background))}@supports (color:color-mix(in lab,red,red)){.bg-background\/40{background-color:color-mix(in oklab,hsl(var(--background)) 40%,transparent)}}.bg-background\/45{background-color:hsl(var(--background))}@supports (color:color-mix(in lab,red,red)){.bg-background\/45{background-color:color-mix(in oklab,hsl(var(--background)) 45%,transparent)}}.bg-background\/50{background-color:hsl(var(--background))}@supports (color:color-mix(in lab,red,red)){.bg-background\/50{background-color:color-mix(in oklab,hsl(var(--background)) 50%,transparent)}}.bg-background\/60{background-color:hsl(var(--background))}@supports (color:color-mix(in lab,red,red)){.bg-background\/60{background-color:color-mix(in oklab,hsl(var(--background)) 60%,transparent)}}.bg-background\/70{background-color:hsl(var(--background))}@supports (color:color-mix(in lab,red,red)){.bg-background\/70{background-color:color-mix(in oklab,hsl(var(--background)) 70%,transparent)}}.bg-background\/80{background-color:hsl(var(--background))}@supports (color:color-mix(in lab,red,red)){.bg-background\/80{background-color:color-mix(in oklab,hsl(var(--background)) 80%,transparent)}}.bg-background\/85{background-color:hsl(var(--background))}@supports (color:color-mix(in lab,red,red)){.bg-background\/85{background-color:color-mix(in oklab,hsl(var(--background)) 85%,transparent)}}.bg-background\/95{background-color:hsl(var(--background))}@supports (color:color-mix(in lab,red,red)){.bg-background\/95{background-color:color-mix(in oklab,hsl(var(--background)) 95%,transparent)}}.bg-black{background-color:var(--color-black)}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black) 50%,transparent)}}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\/80{background-color:color-mix(in oklab,var(--color-black) 80%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/10{background-color:color-mix(in oklab,var(--color-blue-500) 10%,transparent)}}.bg-blue-500\/15{background-color:#3080ff26}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/15{background-color:color-mix(in oklab,var(--color-blue-500) 15%,transparent)}}.bg-blue-600{background-color:var(--color-blue-600)}.bg-blue-900\/20{background-color:#1c398e33}@supports (color:color-mix(in lab,red,red)){.bg-blue-900\/20{background-color:color-mix(in oklab,var(--color-blue-900) 20%,transparent)}}.bg-border,.bg-border\/50{background-color:hsl(var(--border))}@supports (color:color-mix(in lab,red,red)){.bg-border\/50{background-color:color-mix(in oklab,hsl(var(--border)) 50%,transparent)}}.bg-border\/60{background-color:hsl(var(--border))}@supports (color:color-mix(in lab,red,red)){.bg-border\/60{background-color:color-mix(in oklab,hsl(var(--border)) 60%,transparent)}}.bg-border\/80{background-color:hsl(var(--border))}@supports (color:color-mix(in lab,red,red)){.bg-border\/80{background-color:color-mix(in oklab,hsl(var(--border)) 80%,transparent)}}.bg-card,.bg-card\/40{background-color:hsl(var(--card))}@supports (color:color-mix(in lab,red,red)){.bg-card\/40{background-color:color-mix(in oklab,hsl(var(--card)) 40%,transparent)}}.bg-card\/60{background-color:hsl(var(--card))}@supports (color:color-mix(in lab,red,red)){.bg-card\/60{background-color:color-mix(in oklab,hsl(var(--card)) 60%,transparent)}}.bg-card\/70{background-color:hsl(var(--card))}@supports (color:color-mix(in lab,red,red)){.bg-card\/70{background-color:color-mix(in oklab,hsl(var(--card)) 70%,transparent)}}.bg-card\/80{background-color:hsl(var(--card))}@supports (color:color-mix(in lab,red,red)){.bg-card\/80{background-color:color-mix(in oklab,hsl(var(--card)) 80%,transparent)}}.bg-card\/85{background-color:hsl(var(--card))}@supports (color:color-mix(in lab,red,red)){.bg-card\/85{background-color:color-mix(in oklab,hsl(var(--card)) 85%,transparent)}}.bg-card\/90{background-color:hsl(var(--card))}@supports (color:color-mix(in lab,red,red)){.bg-card\/90{background-color:color-mix(in oklab,hsl(var(--card)) 90%,transparent)}}.bg-destructive,.bg-destructive\/5{background-color:hsl(var(--destructive))}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/5{background-color:color-mix(in oklab,hsl(var(--destructive)) 5%,transparent)}}.bg-destructive\/10{background-color:hsl(var(--destructive))}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/10{background-color:color-mix(in oklab,hsl(var(--destructive)) 10%,transparent)}}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\/5{background-color:#00bb7f0d}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/5{background-color:color-mix(in oklab,var(--color-emerald-500) 5%,transparent)}}.bg-emerald-500\/15{background-color:#00bb7f26}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/15{background-color:color-mix(in oklab,var(--color-emerald-500) 15%,transparent)}}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-gray-800\/20{background-color:#1e293933}@supports (color:color-mix(in lab,red,red)){.bg-gray-800\/20{background-color:color-mix(in oklab,var(--color-gray-800) 20%,transparent)}}.bg-gray-800\/30{background-color:#1e29394d}@supports (color:color-mix(in lab,red,red)){.bg-gray-800\/30{background-color:color-mix(in oklab,var(--color-gray-800) 30%,transparent)}}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-500\/20{background-color:#00c75833}@supports (color:color-mix(in lab,red,red)){.bg-green-500\/20{background-color:color-mix(in oklab,var(--color-green-500) 20%,transparent)}}.bg-green-600{background-color:var(--color-green-600)}.bg-green-950\/20{background-color:#032e1533}@supports (color:color-mix(in lab,red,red)){.bg-green-950\/20{background-color:color-mix(in oklab,var(--color-green-950) 20%,transparent)}}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground\/30{background-color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/30{background-color:color-mix(in oklab,hsl(var(--muted-foreground)) 30%,transparent)}}.bg-muted-foreground\/40{background-color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/40{background-color:color-mix(in oklab,hsl(var(--muted-foreground)) 40%,transparent)}}.bg-muted-foreground\/45{background-color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/45{background-color:color-mix(in oklab,hsl(var(--muted-foreground)) 45%,transparent)}}.bg-muted-foreground\/60{background-color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/60{background-color:color-mix(in oklab,hsl(var(--muted-foreground)) 60%,transparent)}}.bg-muted\/10{background-color:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.bg-muted\/10{background-color:color-mix(in oklab,hsl(var(--muted)) 10%,transparent)}}.bg-muted\/15{background-color:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.bg-muted\/15{background-color:color-mix(in oklab,hsl(var(--muted)) 15%,transparent)}}.bg-muted\/20{background-color:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.bg-muted\/20{background-color:color-mix(in oklab,hsl(var(--muted)) 20%,transparent)}}.bg-muted\/30{background-color:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.bg-muted\/30{background-color:color-mix(in oklab,hsl(var(--muted)) 30%,transparent)}}.bg-muted\/40{background-color:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.bg-muted\/40{background-color:color-mix(in oklab,hsl(var(--muted)) 40%,transparent)}}.bg-muted\/50{background-color:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,hsl(var(--muted)) 50%,transparent)}}.bg-muted\/60{background-color:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.bg-muted\/60{background-color:color-mix(in oklab,hsl(var(--muted)) 60%,transparent)}}.bg-orange-50{background-color:var(--color-orange-50)}.bg-orange-50\/10{background-color:#fff7ed1a}@supports (color:color-mix(in lab,red,red)){.bg-orange-50\/10{background-color:color-mix(in oklab,var(--color-orange-50) 10%,transparent)}}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-500\/20{background-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/20{background-color:color-mix(in oklab,var(--color-orange-500) 20%,transparent)}}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground,.bg-primary-foreground\/50{background-color:hsl(var(--primary-foreground))}@supports (color:color-mix(in lab,red,red)){.bg-primary-foreground\/50{background-color:color-mix(in oklab,hsl(var(--primary-foreground)) 50%,transparent)}}.bg-primary\/5{background-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.bg-primary\/5{background-color:color-mix(in oklab,hsl(var(--primary)) 5%,transparent)}}.bg-primary\/10{background-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.bg-primary\/10{background-color:color-mix(in oklab,hsl(var(--primary)) 10%,transparent)}}.bg-primary\/12{background-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.bg-primary\/12{background-color:color-mix(in oklab,hsl(var(--primary)) 12%,transparent)}}.bg-primary\/15{background-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.bg-primary\/15{background-color:color-mix(in oklab,hsl(var(--primary)) 15%,transparent)}}.bg-primary\/20{background-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.bg-primary\/20{background-color:color-mix(in oklab,hsl(var(--primary)) 20%,transparent)}}.bg-primary\/30{background-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.bg-primary\/30{background-color:color-mix(in oklab,hsl(var(--primary)) 30%,transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.bg-red-500\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/15{background-color:color-mix(in oklab,var(--color-red-500) 15%,transparent)}}.bg-red-500\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/20{background-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-red-900\/20{background-color:#82181a33}@supports (color:color-mix(in lab,red,red)){.bg-red-900\/20{background-color:color-mix(in oklab,var(--color-red-900) 20%,transparent)}}.bg-red-900\/30{background-color:#82181a4d}@supports (color:color-mix(in lab,red,red)){.bg-red-900\/30{background-color:color-mix(in oklab,var(--color-red-900) 30%,transparent)}}.bg-secondary,.bg-secondary\/5{background-color:hsl(var(--secondary))}@supports (color:color-mix(in lab,red,red)){.bg-secondary\/5{background-color:color-mix(in oklab,hsl(var(--secondary)) 5%,transparent)}}.bg-sky-500\/5{background-color:#00a5ef0d}@supports (color:color-mix(in lab,red,red)){.bg-sky-500\/5{background-color:color-mix(in oklab,var(--color-sky-500) 5%,transparent)}}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-300{background-color:var(--color-slate-300)}.bg-slate-400{background-color:var(--color-slate-400)}.bg-slate-700{background-color:var(--color-slate-700)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-teal-500\/15{background-color:#00baa726}@supports (color:color-mix(in lab,red,red)){.bg-teal-500\/15{background-color:color-mix(in oklab,var(--color-teal-500) 15%,transparent)}}.bg-transparent{background-color:#0000}.bg-violet-500\/5{background-color:#8d54ff0d}@supports (color:color-mix(in lab,red,red)){.bg-violet-500\/5{background-color:color-mix(in oklab,var(--color-violet-500) 5%,transparent)}}.bg-violet-500\/10{background-color:#8d54ff1a}@supports (color:color-mix(in lab,red,red)){.bg-violet-500\/10{background-color:color-mix(in oklab,var(--color-violet-500) 10%,transparent)}}.bg-violet-500\/15{background-color:#8d54ff26}@supports (color:color-mix(in lab,red,red)){.bg-violet-500\/15{background-color:color-mix(in oklab,var(--color-violet-500) 15%,transparent)}}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-200{background-color:var(--color-yellow-200)}.bg-yellow-500\/5{background-color:#edb2000d}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/5{background-color:color-mix(in oklab,var(--color-yellow-500) 5%,transparent)}}.bg-yellow-500\/10{background-color:#edb2001a}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/10{background-color:color-mix(in oklab,var(--color-yellow-500) 10%,transparent)}}.bg-yellow-900\/20{background-color:#733e0a33}@supports (color:color-mix(in lab,red,red)){.bg-yellow-900\/20{background-color:color-mix(in oklab,var(--color-yellow-900) 20%,transparent)}}.bg-linear-to-r{--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r{--tw-gradient-position:to right in oklab}}.bg-linear-to-r{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-amber-500{--tw-gradient-from:var(--color-amber-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-background{--tw-gradient-from:hsl(var(--background));--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-blue-500{--tw-gradient-from:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-green-500{--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-muted\/40{--tw-gradient-from:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.from-muted\/40{--tw-gradient-from:color-mix(in oklab, hsl(var(--muted)) 40%, transparent)}}.from-muted\/40{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-primary\/5{--tw-gradient-from:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.from-primary\/5{--tw-gradient-from:color-mix(in oklab, hsl(var(--primary)) 5%, transparent)}}.from-primary\/5{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-primary\/10{--tw-gradient-from:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.from-primary\/10{--tw-gradient-from:color-mix(in oklab, hsl(var(--primary)) 10%, transparent)}}.from-primary\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-slate-200{--tw-gradient-from:var(--color-slate-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-slate-300{--tw-gradient-from:var(--color-slate-300);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-slate-400{--tw-gradient-from:var(--color-slate-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.via-background{--tw-gradient-via:hsl(var(--background));--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-primary\/5{--tw-gradient-via:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.via-primary\/5{--tw-gradient-via:color-mix(in oklab, hsl(var(--primary)) 5%, transparent)}}.via-primary\/5{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-blue-600{--tw-gradient-to:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-green-600{--tw-gradient-to:var(--color-green-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-muted\/15{--tw-gradient-to:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.to-muted\/15{--tw-gradient-to:color-mix(in oklab, hsl(var(--muted)) 15%, transparent)}}.to-muted\/15{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-muted\/30{--tw-gradient-to:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.to-muted\/30{--tw-gradient-to:color-mix(in oklab, hsl(var(--muted)) 30%, transparent)}}.to-muted\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-orange-600{--tw-gradient-to:var(--color-orange-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-primary\/10{--tw-gradient-to:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.to-primary\/10{--tw-gradient-to:color-mix(in oklab, hsl(var(--primary)) 10%, transparent)}}.to-primary\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-secondary\/5{--tw-gradient-to:hsl(var(--secondary))}@supports (color:color-mix(in lab,red,red)){.to-secondary\/5{--tw-gradient-to:color-mix(in oklab, hsl(var(--secondary)) 5%, transparent)}}.to-secondary\/5{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-slate-700{--tw-gradient-to:var(--color-slate-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-slate-800{--tw-gradient-to:var(--color-slate-800);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-slate-900{--tw-gradient-to:var(--color-slate-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.fill-current{fill:currentColor}.fill-red-500{fill:var(--color-red-500)}.fill-yellow-400{fill:var(--color-yellow-400)}.stroke-muted\/40{stroke:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.stroke-muted\/40{stroke:color-mix(in oklab,hsl(var(--muted)) 40%,transparent)}}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-px{padding:1px}.px-0{padding-inline:calc(var(--spacing) * 0)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-\[--cell-size\]{padding-inline:--cell-size}.py-0{padding-block:calc(var(--spacing) * 0)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.py-20{padding-block:calc(var(--spacing) * 20)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pr-0{padding-right:calc(var(--spacing) * 0)}.pr-1{padding-right:calc(var(--spacing) * 1)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pr-16{padding-right:calc(var(--spacing) * 16)}.pb-0{padding-bottom:calc(var(--spacing) * 0)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-10{padding-left:calc(var(--spacing) * 10)}.pl-11{padding-left:calc(var(--spacing) * 11)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:var(--typography-font-family-code)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.8rem\]{font-size:.8rem}.text-\[0\.95em\]{font-size:.95em}.text-\[0px\]{font-size:0}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[150px\]{font-size:150px}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-6{--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.18em\]{--tw-tracking:.18em;letter-spacing:.18em}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words,.wrap-break-word{overflow-wrap:break-word}.break-all{word-break:break-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-amber-800{color:var(--color-amber-800)}.text-amber-900{color:var(--color-amber-900)}.text-amber-950{color:var(--color-amber-950)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-blue-900{color:var(--color-blue-900)}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-cyan-400{color:var(--color-cyan-400)}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-destructive\/80{color:hsl(var(--destructive))}@supports (color:color-mix(in lab,red,red)){.text-destructive\/80{color:color-mix(in oklab,hsl(var(--destructive)) 80%,transparent)}}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-700{color:var(--color-emerald-700)}.text-foreground,.text-foreground\/50{color:hsl(var(--foreground))}@supports (color:color-mix(in lab,red,red)){.text-foreground\/50{color:color-mix(in oklab,hsl(var(--foreground)) 50%,transparent)}}.text-foreground\/80{color:hsl(var(--foreground))}@supports (color:color-mix(in lab,red,red)){.text-foreground\/80{color:color-mix(in oklab,hsl(var(--foreground)) 80%,transparent)}}.text-foreground\/90{color:hsl(var(--foreground))}@supports (color:color-mix(in lab,red,red)){.text-foreground\/90{color:color-mix(in oklab,hsl(var(--foreground)) 90%,transparent)}}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-muted-foreground,.text-muted-foreground\/10{color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/10{color:color-mix(in oklab,hsl(var(--muted-foreground)) 10%,transparent)}}.text-muted-foreground\/40{color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/40{color:color-mix(in oklab,hsl(var(--muted-foreground)) 40%,transparent)}}.text-muted-foreground\/50{color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/50{color:color-mix(in oklab,hsl(var(--muted-foreground)) 50%,transparent)}}.text-muted-foreground\/60{color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/60{color:color-mix(in oklab,hsl(var(--muted-foreground)) 60%,transparent)}}.text-muted-foreground\/80{color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/80{color:color-mix(in oklab,hsl(var(--muted-foreground)) 80%,transparent)}}.text-orange-500{color:var(--color-orange-500)}.text-orange-600{color:var(--color-orange-600)}.text-orange-800{color:var(--color-orange-800)}.text-orange-900{color:var(--color-orange-900)}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-primary\/10{color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.text-primary\/10{color:color-mix(in oklab,hsl(var(--primary)) 10%,transparent)}}.text-primary\/30{color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.text-primary\/30{color:color-mix(in oklab,hsl(var(--primary)) 30%,transparent)}}.text-primary\/70{color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.text-primary\/70{color:color-mix(in oklab,hsl(var(--primary)) 70%,transparent)}}.text-primary\/80{color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.text-primary\/80{color:color-mix(in oklab,hsl(var(--primary)) 80%,transparent)}}.text-purple-500{color:var(--color-purple-500)}.text-purple-600{color:var(--color-purple-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-rose-500{color:var(--color-rose-500)}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-sky-500{color:var(--color-sky-500)}.text-sky-700{color:var(--color-sky-700)}.text-slate-500{color:var(--color-slate-500)}.text-teal-500{color:var(--color-teal-500)}.text-violet-500{color:var(--color-violet-500)}.text-white{color:var(--color-white)}.text-yellow-400{color:var(--color-yellow-400)}.text-yellow-500{color:var(--color-yellow-500)}.text-yellow-600{color:var(--color-yellow-600)}.text-yellow-700{color:var(--color-yellow-700)}.text-yellow-800{color:var(--color-yellow-800)}.text-yellow-900{color:var(--color-yellow-900)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.accent-foreground{accent-color:hsl(var(--foreground))}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow-sm\/30{--tw-shadow-alpha:30%;--tw-shadow:var(--visual-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_0_3px_rgba\(16\,185\,129\,0\.16\)\]{--tw-shadow:0 0 0 3px var(--tw-shadow-color,#10b98129);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_0_3px_rgba\(34\,197\,94\,0\.18\)\]{--tw-shadow:0 0 0 3px var(--tw-shadow-color,#22c55e2e);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_0_3px_rgba\(239\,68\,68\,0\.16\)\]{--tw-shadow:0 0 0 3px var(--tw-shadow-color,#ef444429);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:var(--visual-shadow-lg);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:var(--visual-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:var(--visual-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:var(--visual-shadow-xl);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-background{--tw-ring-color:hsl(var(--background))}.ring-border\/50{--tw-ring-color:hsl(var(--border))}@supports (color:color-mix(in lab,red,red)){.ring-border\/50{--tw-ring-color:color-mix(in oklab, hsl(var(--border)) 50%, transparent)}}.ring-border\/60{--tw-ring-color:hsl(var(--border))}@supports (color:color-mix(in lab,red,red)){.ring-border\/60{--tw-ring-color:color-mix(in oklab, hsl(var(--border)) 60%, transparent)}}.ring-orange-500\/50{--tw-ring-color:#fe6e0080}@supports (color:color-mix(in lab,red,red)){.ring-orange-500\/50{--tw-ring-color:color-mix(in oklab, var(--color-orange-500) 50%, transparent)}}.ring-primary{--tw-ring-color:hsl(var(--primary))}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-3xl{--tw-blur:blur(var(--blur-3xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-lg{--tw-blur:blur(var(--blur-lg));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-md{--tw-blur:blur(var(--blur-md));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-sm{--tw-blur:blur(var(--blur-sm));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-xl{--tw-blur:blur(var(--blur-xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[stroke-dashoffset\]{transition-property:stroke-dashoffset;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.delay-150{transition-delay:.15s}.delay-300{transition-delay:.3s}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.duration-1000{--tw-duration:1s;transition-duration:1s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.\[--cell-size\:2rem\]{--cell-size:2rem}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media(hover:hover){.group-hover\:-translate-x-0\.5:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing) * -.5);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-hover\:translate-x-0\.5:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-hover\:-translate-y-1:is(:where(.group):hover *){--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-data-\[focused\=true\]\/day\:relative:is(:where(.group\/day)[data-focused=true] *){position:relative}.group-data-\[focused\=true\]\/day\:z-10:is(:where(.group\/day)[data-focused=true] *){z-index:10}.group-data-\[focused\=true\]\/day\:border-ring:is(:where(.group\/day)[data-focused=true] *){border-color:hsl(var(--ring))}.group-data-\[focused\=true\]\/day\:ring-\[3px\]:is(:where(.group\/day)[data-focused=true] *){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:hsl(var(--ring))}@supports (color:color-mix(in lab,red,red)){.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:color-mix(in oklab, hsl(var(--ring)) 50%, transparent)}}.group-\[\.destructive\]\:border-muted\/40:is(:where(.group).destructive *){border-color:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.group-\[\.destructive\]\:border-muted\/40:is(:where(.group).destructive *){border-color:color-mix(in oklab,hsl(var(--muted)) 40%,transparent)}}.group-\[\.destructive\]\:text-red-300:is(:where(.group).destructive *){color:var(--color-red-300)}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:mt-0:first-child{margin-top:calc(var(--spacing) * 0)}.focus-within\:border-primary\/60:focus-within{border-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.focus-within\:border-primary\/60:focus-within{border-color:color-mix(in oklab,hsl(var(--primary)) 60%,transparent)}}.focus-within\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:ring-primary\/20:focus-within{--tw-ring-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.focus-within\:ring-primary\/20:focus-within{--tw-ring-color:color-mix(in oklab, hsl(var(--primary)) 20%, transparent)}}@media(hover:hover){.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-border:hover{border-color:hsl(var(--border))}.hover\:border-green-200:hover{border-color:var(--color-green-200)}.hover\:border-muted-foreground\/40:hover{border-color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.hover\:border-muted-foreground\/40:hover{border-color:color-mix(in oklab,hsl(var(--muted-foreground)) 40%,transparent)}}.hover\:border-muted-foreground\/50:hover{border-color:hsl(var(--muted-foreground))}@supports (color:color-mix(in lab,red,red)){.hover\:border-muted-foreground\/50:hover{border-color:color-mix(in oklab,hsl(var(--muted-foreground)) 50%,transparent)}}.hover\:border-primary\/40:hover{border-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.hover\:border-primary\/40:hover{border-color:color-mix(in oklab,hsl(var(--primary)) 40%,transparent)}}.hover\:border-primary\/50:hover{border-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.hover\:border-primary\/50:hover{border-color:color-mix(in oklab,hsl(var(--primary)) 50%,transparent)}}.hover\:border-red-200:hover{border-color:var(--color-red-200)}.hover\:bg-accent:hover,.hover\:bg-accent\/40:hover{background-color:hsl(var(--accent))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/40:hover{background-color:color-mix(in oklab,hsl(var(--accent)) 40%,transparent)}}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/50:hover{background-color:color-mix(in oklab,hsl(var(--accent)) 50%,transparent)}}.hover\:bg-amber-700:hover{background-color:var(--color-amber-700)}.hover\:bg-background:hover,.hover\:bg-background\/50:hover{background-color:hsl(var(--background))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-background\/50:hover{background-color:color-mix(in oklab,hsl(var(--background)) 50%,transparent)}}.hover\:bg-background\/70:hover{background-color:hsl(var(--background))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-background\/70:hover{background-color:color-mix(in oklab,hsl(var(--background)) 70%,transparent)}}.hover\:bg-background\/80:hover{background-color:hsl(var(--background))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-background\/80:hover{background-color:color-mix(in oklab,hsl(var(--background)) 80%,transparent)}}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-destructive:hover,.hover\:bg-destructive\/20:hover{background-color:hsl(var(--destructive))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab,hsl(var(--destructive)) 20%,transparent)}}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/80:hover{background-color:color-mix(in oklab,hsl(var(--destructive)) 80%,transparent)}}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,hsl(var(--destructive)) 90%,transparent)}}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-green-50:hover{background-color:var(--color-green-50)}.hover\:bg-green-700:hover{background-color:var(--color-green-700)}.hover\:bg-muted:hover,.hover\:bg-muted\/20:hover{background-color:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/20:hover{background-color:color-mix(in oklab,hsl(var(--muted)) 20%,transparent)}}.hover\:bg-muted\/40:hover{background-color:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/40:hover{background-color:color-mix(in oklab,hsl(var(--muted)) 40%,transparent)}}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,hsl(var(--muted)) 50%,transparent)}}.hover\:bg-muted\/60:hover{background-color:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/60:hover{background-color:color-mix(in oklab,hsl(var(--muted)) 60%,transparent)}}.hover\:bg-muted\/70:hover{background-color:hsl(var(--muted))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/70:hover{background-color:color-mix(in oklab,hsl(var(--muted)) 70%,transparent)}}.hover\:bg-primary-foreground\/20:hover{background-color:hsl(var(--primary-foreground))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary-foreground\/20:hover{background-color:color-mix(in oklab,hsl(var(--primary-foreground)) 20%,transparent)}}.hover\:bg-primary\/10:hover{background-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/10:hover{background-color:color-mix(in oklab,hsl(var(--primary)) 10%,transparent)}}.hover\:bg-primary\/15:hover{background-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/15:hover{background-color:color-mix(in oklab,hsl(var(--primary)) 15%,transparent)}}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab,hsl(var(--primary)) 80%,transparent)}}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,hsl(var(--primary)) 90%,transparent)}}.hover\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\:bg-secondary:hover,.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,hsl(var(--secondary)) 80%,transparent)}}.hover\:bg-secondary\/90:hover{background-color:hsl(var(--secondary))}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab,hsl(var(--secondary)) 90%,transparent)}}.hover\:bg-transparent:hover{background-color:#0000}.hover\:bg-white\/5:hover{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/5:hover{background-color:color-mix(in oklab,var(--color-white) 5%,transparent)}}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-amber-900:hover{color:var(--color-amber-900)}.hover\:text-destructive:hover{color:hsl(var(--destructive))}.hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-green-600:hover{color:var(--color-green-600)}.hover\:text-green-700:hover{color:var(--color-green-700)}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-orange-700:hover{color:var(--color-orange-700)}.hover\:text-primary:hover,.hover\:text-primary\/80:hover{color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.hover\:text-primary\/80:hover{color:color-mix(in oklab,hsl(var(--primary)) 80%,transparent)}}.hover\:text-red-500:hover{color:var(--color-red-500)}.hover\:text-red-600:hover{color:var(--color-red-600)}.hover\:text-red-700:hover{color:var(--color-red-700)}.hover\:text-yellow-300:hover{color:var(--color-yellow-300)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-2xl:hover{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-lg:hover{--tw-shadow:var(--visual-shadow-lg);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow:var(--visual-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:ring-2:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:ring-primary:hover{--tw-ring-color:hsl(var(--primary))}.group-\[\.destructive\]\:hover\:border-destructive\/30:is(:where(.group).destructive *):hover{border-color:hsl(var(--destructive))}@supports (color:color-mix(in lab,red,red)){.group-\[\.destructive\]\:hover\:border-destructive\/30:is(:where(.group).destructive *):hover{border-color:color-mix(in oklab,hsl(var(--destructive)) 30%,transparent)}}.group-\[\.destructive\]\:hover\:bg-destructive:is(:where(.group).destructive *):hover{background-color:hsl(var(--destructive))}.group-\[\.destructive\]\:hover\:text-destructive-foreground:is(:where(.group).destructive *):hover{color:hsl(var(--destructive-foreground))}.group-\[\.destructive\]\:hover\:text-red-50:is(:where(.group).destructive *):hover{color:var(--color-red-50)}}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-gray-100:focus{background-color:var(--color-gray-100)}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-destructive:focus{--tw-ring-color:hsl(var(--destructive))}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.group-\[\.destructive\]\:focus\:ring-destructive:is(:where(.group).destructive *):focus{--tw-ring-color:hsl(var(--destructive))}.group-\[\.destructive\]\:focus\:ring-red-400:is(:where(.group).destructive *):focus{--tw-ring-color:var(--color-red-400)}.group-\[\.destructive\]\:focus\:ring-offset-red-600:is(:where(.group).destructive *):focus{--tw-ring-offset-color:var(--color-red-600)}.focus-visible\:not-sr-only:focus-visible{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.focus-visible\:fixed:focus-visible{position:fixed}.focus-visible\:top-4:focus-visible{top:calc(var(--spacing) * 4)}.focus-visible\:left-4:focus-visible{left:calc(var(--spacing) * 4)}.focus-visible\:z-\[9999\]:focus-visible{z-index:9999}.focus-visible\:rounded-md:focus-visible{border-radius:var(--visual-radius-md)}.focus-visible\:bg-background:focus-visible{background-color:hsl(var(--background))}.focus-visible\:px-4:focus-visible{padding-inline:calc(var(--spacing) * 4)}.focus-visible\:py-2:focus-visible{padding-block:calc(var(--spacing) * 2)}.focus-visible\:text-sm:focus-visible{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.focus-visible\:font-medium:focus-visible{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.focus-visible\:text-foreground:focus-visible{color:hsl(var(--foreground))}.focus-visible\:opacity-100:focus-visible{opacity:1}.focus-visible\:shadow-md:focus-visible{--tw-shadow:var(--visual-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive:focus-visible{--tw-ring-color:hsl(var(--destructive))}.focus-visible\:ring-red-500:focus-visible{--tw-ring-color:var(--color-red-500)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\:cursor-grabbing:active{cursor:grabbing}.active\:border-primary\/70:active{border-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.active\:border-primary\/70:active{border-color:color-mix(in oklab,hsl(var(--primary)) 70%,transparent)}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.has-focus\:border-ring:has(:focus){border-color:hsl(var(--ring))}.has-focus\:ring-\[3px\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:hsl(var(--ring))}@supports (color:color-mix(in lab,red,red)){.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:color-mix(in oklab, hsl(var(--ring)) 50%, transparent)}}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-selected\:text-muted-foreground[aria-selected=true]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true]{pointer-events:none}.data-\[disabled\=true\]\:opacity-50[data-disabled=true]{opacity:.5}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:hsl(var(--muted-foreground))}.data-\[range-end\=true\]\:rounded-md[data-range-end=true]{border-radius:var(--visual-radius-md)}.data-\[range-end\=true\]\:bg-primary[data-range-end=true]{background-color:hsl(var(--primary))}.data-\[range-end\=true\]\:text-primary-foreground[data-range-end=true]{color:hsl(var(--primary-foreground))}.data-\[range-middle\=true\]\:rounded-none[data-range-middle=true]{border-radius:0}.data-\[range-middle\=true\]\:bg-accent[data-range-middle=true]{background-color:hsl(var(--accent))}.data-\[range-middle\=true\]\:text-accent-foreground[data-range-middle=true]{color:hsl(var(--accent-foreground))}.data-\[range-start\=true\]\:rounded-md[data-range-start=true]{border-radius:var(--visual-radius-md)}.data-\[range-start\=true\]\:bg-primary[data-range-start=true]{background-color:hsl(var(--primary))}.data-\[range-start\=true\]\:text-primary-foreground[data-range-start=true]{color:hsl(var(--primary-foreground))}.data-\[selected-single\=true\]\:bg-primary[data-selected-single=true]{background-color:hsl(var(--primary))}.data-\[selected-single\=true\]\:text-primary-foreground[data-selected-single=true]{color:hsl(var(--primary-foreground))}.data-\[selected\=true\]\:rounded-none[data-selected=true]{border-radius:0}.data-\[selected\=true\]\:bg-accent[data-selected=true]{background-color:hsl(var(--accent))}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[state\=active\]\:border-primary\/45[data-state=active]{border-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.data-\[state\=active\]\:border-primary\/45[data-state=active]{border-color:color-mix(in oklab,hsl(var(--primary)) 45%,transparent)}}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=active\]\:bg-primary\/10[data-state=active]{background-color:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.data-\[state\=active\]\:bg-primary\/10[data-state=active]{background-color:color-mix(in oklab,hsl(var(--primary)) 10%,transparent)}}.data-\[state\=active\]\:bg-transparent[data-state=active]{background-color:#0000}.data-\[state\=active\]\:bg-gradient-to-r[data-state=active]{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.data-\[state\=active\]\:from-primary[data-state=active]{--tw-gradient-from:hsl(var(--primary));--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.data-\[state\=active\]\:to-primary\/80[data-state=active]{--tw-gradient-to:hsl(var(--primary))}@supports (color:color-mix(in lab,red,red)){.data-\[state\=active\]\:to-primary\/80[data-state=active]{--tw-gradient-to:color-mix(in oklab, hsl(var(--primary)) 80%, transparent)}}.data-\[state\=active\]\:to-primary\/80[data-state=active]{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=active\]\:text-primary[data-state=active]{color:hsl(var(--primary))}.data-\[state\=active\]\:text-primary-foreground[data-state=active]{color:hsl(var(--primary-foreground))}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=active\]\:shadow-none[data-state=active]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow:var(--visual-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=active\]\:duration-300[data-state=active]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=closed\]\:animate-fade-out[data-state=closed]{animation:.15s ease-in fade-out}.data-\[state\=closed\]\:animate-slide-out-to-right[data-state=closed]{animation:.2s ease-in slide-out-to-right}.data-\[state\=closed\]\:animate-slide-out-to-top[data-state=closed]{animation:.2s ease-in slide-out-to-top}.data-\[state\=inactive\]\:hidden[data-state=inactive]{display:none}.data-\[state\=inactive\]\:h-0[data-state=inactive]{height:calc(var(--spacing) * 0)}.data-\[state\=open\]\:animate-fade-in[data-state=open]{animation:.2s ease-out fade-in}.data-\[state\=open\]\:animate-slide-in-from-right[data-state=open]{animation:.3s ease-out slide-in-from-right}.data-\[state\=open\]\:animate-slide-in-from-top[data-state=open]{animation:.3s ease-out slide-in-from-top}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[swipe\=cancel\]\:translate-y-0[data-swipe=cancel]{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x:var(--radix-toast-swipe-end-x);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[swipe\=end\]\:translate-y-\[var\(--radix-toast-swipe-end-y\)\][data-swipe=end]{--tw-translate-y:var(--radix-toast-swipe-end-y);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[swipe\=end\]\:animate-slide-out-to-right[data-swipe=end]{animation:.2s ease-in slide-out-to-right}.data-\[swipe\=end\]\:animate-slide-out-to-top[data-swipe=end]{animation:.2s ease-in slide-out-to-top}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x:var(--radix-toast-swipe-move-x);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[swipe\=move\]\:translate-y-\[var\(--radix-toast-swipe-move-y\)\][data-swipe=move]{--tw-translate-y:var(--radix-toast-swipe-move-y);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.supports-backdrop-filter\:bg-card\/65{background-color:hsl(var(--card))}@supports (color:color-mix(in lab,red,red)){.supports-backdrop-filter\:bg-card\/65{background-color:color-mix(in oklab,hsl(var(--card)) 65%,transparent)}}.supports-backdrop-filter\:bg-card\/70{background-color:hsl(var(--card))}@supports (color:color-mix(in lab,red,red)){.supports-backdrop-filter\:bg-card\/70{background-color:color-mix(in oklab,hsl(var(--card)) 70%,transparent)}}.supports-\[backdrop-filter\]\:bg-background\/70{background-color:hsl(var(--background))}@supports (color:color-mix(in lab,red,red)){.supports-\[backdrop-filter\]\:bg-background\/70{background-color:color-mix(in oklab,hsl(var(--background)) 70%,transparent)}}}@media(prefers-reduced-motion:no-preference){.motion-safe\:animate-\[config-tab-content-enter_180ms_ease-out_both\]{animation:.18s ease-out both config-tab-content-enter}.motion-safe\:animate-\[config-tab-enter_180ms_ease-out_both\]{animation:.18s ease-out both config-tab-enter}}@media(min-width:40rem){.sm\:top-3{top:calc(var(--spacing) * 3)}.sm\:right-3{right:calc(var(--spacing) * 3)}.sm\:order-1{order:1}.sm\:order-2{order:2}.sm\:col-span-2{grid-column:span 2/span 2}.sm\:mx-0{margin-inline:calc(var(--spacing) * 0)}.sm\:mt-0{margin-top:calc(var(--spacing) * 0)}.sm\:mt-2{margin-top:calc(var(--spacing) * 2)}.sm\:mt-3{margin-top:calc(var(--spacing) * 3)}.sm\:mt-6{margin-top:calc(var(--spacing) * 6)}.sm\:mr-1{margin-right:calc(var(--spacing) * 1)}.sm\:mb-4{margin-bottom:calc(var(--spacing) * 4)}.sm\:mb-6{margin-bottom:calc(var(--spacing) * 6)}.sm\:ml-0{margin-left:calc(var(--spacing) * 0)}.sm\:ml-1{margin-left:calc(var(--spacing) * 1)}.sm\:ml-auto{margin-left:auto}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:h-2\.5{height:calc(var(--spacing) * 2.5)}.sm\:h-4{height:calc(var(--spacing) * 4)}.sm\:h-7{height:calc(var(--spacing) * 7)}.sm\:h-8{height:calc(var(--spacing) * 8)}.sm\:h-9{height:calc(var(--spacing) * 9)}.sm\:h-11{height:calc(var(--spacing) * 11)}.sm\:h-24{height:calc(var(--spacing) * 24)}.sm\:h-\[85vh\]{height:85vh}.sm\:h-\[300px\]{height:300px}.sm\:h-\[400px\]{height:400px}.sm\:h-\[500px\]{height:500px}.sm\:h-\[calc\(100vh-220px\)\]{height:calc(100vh - 220px)}.sm\:h-\[calc\(100vh-280px\)\]{height:calc(100vh - 280px)}.sm\:w-2\.5{width:calc(var(--spacing) * 2.5)}.sm\:w-4{width:calc(var(--spacing) * 4)}.sm\:w-7{width:calc(var(--spacing) * 7)}.sm\:w-8{width:calc(var(--spacing) * 8)}.sm\:w-9{width:calc(var(--spacing) * 9)}.sm\:w-11{width:calc(var(--spacing) * 11)}.sm\:w-24{width:calc(var(--spacing) * 24)}.sm\:w-28{width:calc(var(--spacing) * 28)}.sm\:w-32{width:calc(var(--spacing) * 32)}.sm\:w-48{width:calc(var(--spacing) * 48)}.sm\:w-80{width:calc(var(--spacing) * 80)}.sm\:w-96{width:calc(var(--spacing) * 96)}.sm\:w-125{width:calc(var(--spacing) * 125)}.sm\:w-\[14rem\]{width:14rem}.sm\:w-\[46\%\]{width:46%}.sm\:w-\[200px\]{width:200px}.sm\:w-auto{width:auto}.sm\:w-full{width:100%}.sm\:max-w-2xl{max-width:var(--container-2xl)}.sm\:max-w-32{max-width:calc(var(--spacing) * 32)}.sm\:max-w-106\.25{max-width:calc(var(--spacing) * 106.25)}.sm\:max-w-125{max-width:calc(var(--spacing) * 125)}.sm\:max-w-225{max-width:calc(var(--spacing) * 225)}.sm\:max-w-\[70\%\]{max-width:70%}.sm\:max-w-\[420px\]{max-width:420px}.sm\:max-w-\[var\(--field-input-width\)\]{max-width:var(--field-input-width)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:min-w-\[120px\]{min-width:120px}.sm\:flex-1{flex:1}.sm\:flex-none{flex:none}.sm\:flex-shrink-0,.sm\:shrink-0{flex-shrink:0}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\:grid-cols-\[minmax\(0\,1fr\)_2\.5rem\]{grid-template-columns:minmax(0,1fr) 2.5rem}.sm\:grid-cols-\[minmax\(0\,1fr\)_auto_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.sm\:grid-cols-\[minmax\(7rem\,0\.6fr\)_minmax\(10rem\,1fr\)_2\.5rem\]{grid-template-columns:minmax(7rem,.6fr) minmax(10rem,1fr) 2.5rem}.sm\:grid-cols-\[minmax\(7rem\,0\.6fr\)_minmax\(10rem\,1fr\)_auto\]{grid-template-columns:minmax(7rem,.6fr) minmax(10rem,1fr) auto}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:items-start{align-items:flex-start}.sm\:items-stretch{align-items:stretch}.sm\:justify-between{justify-content:space-between}.sm\:justify-end{justify-content:flex-end}.sm\:gap-0{gap:calc(var(--spacing) * 0)}.sm\:gap-1{gap:calc(var(--spacing) * 1)}.sm\:gap-2{gap:calc(var(--spacing) * 2)}.sm\:gap-3{gap:calc(var(--spacing) * 3)}.sm\:gap-4{gap:calc(var(--spacing) * 4)}.sm\:gap-6{gap:calc(var(--spacing) * 6)}:where(.sm\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}.sm\:self-auto{align-self:auto}.sm\:overflow-x-visible{overflow-x:visible}.sm\:rounded-lg{border-radius:var(--visual-radius-lg)}.sm\:p-3{padding:calc(var(--spacing) * 3)}.sm\:p-4{padding:calc(var(--spacing) * 4)}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-6{padding:calc(var(--spacing) * 6)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:px-0{padding-inline:calc(var(--spacing) * 0)}.sm\:px-3{padding-inline:calc(var(--spacing) * 3)}.sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:py-2{padding-block:calc(var(--spacing) * 2)}.sm\:py-4{padding-block:calc(var(--spacing) * 4)}.sm\:py-6{padding-block:calc(var(--spacing) * 6)}.sm\:pt-6{padding-top:calc(var(--spacing) * 6)}.sm\:pb-0\.5{padding-bottom:calc(var(--spacing) * .5)}.sm\:pb-3{padding-bottom:calc(var(--spacing) * 3)}.sm\:pl-28{padding-left:calc(var(--spacing) * 28)}.sm\:text-left{text-align:left}.sm\:text-right{text-align:right}.sm\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.sm\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.sm\:text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.sm\:text-\[200px\]{font-size:200px}}@media(min-width:48rem){.md\:top-4{top:calc(var(--spacing) * 4)}.md\:mt-8{margin-top:calc(var(--spacing) * 8)}.md\:mb-4{margin-bottom:calc(var(--spacing) * 4)}.md\:mb-6{margin-bottom:calc(var(--spacing) * 6)}.md\:mb-8{margin-bottom:calc(var(--spacing) * 8)}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:inline{display:inline}.md\:h-4{height:calc(var(--spacing) * 4)}.md\:h-5{height:calc(var(--spacing) * 5)}.md\:h-8{height:calc(var(--spacing) * 8)}.md\:h-16{height:calc(var(--spacing) * 16)}.md\:h-96{height:calc(var(--spacing) * 96)}.md\:h-\[500px\]{height:500px}.md\:min-h-\[400px\]{min-height:400px}.md\:w-4{width:calc(var(--spacing) * 4)}.md\:w-5{width:calc(var(--spacing) * 5)}.md\:w-8{width:calc(var(--spacing) * 8)}.md\:w-16{width:calc(var(--spacing) * 16)}.md\:w-96{width:calc(var(--spacing) * 96)}.md\:max-w-none{max-width:none}.md\:min-w-\[300px\]{min-width:300px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.md\:grid-cols-\[1fr_1fr_auto\]{grid-template-columns:1fr 1fr auto}.md\:grid-cols-\[12rem_1fr\]{grid-template-columns:12rem 1fr}.md\:grid-cols-\[180px_240px_1fr\]{grid-template-columns:180px 240px 1fr}.md\:grid-cols-\[minmax\(0\,1fr\)_140px_auto\]{grid-template-columns:minmax(0,1fr) 140px auto}.md\:grid-cols-\[minmax\(0\,1fr\)_auto_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.md\:grid-cols-\[minmax\(6rem\,0\.65fr\)_minmax\(9rem\,1fr\)_minmax\(7rem\,0\.75fr\)_2\.25rem\]{grid-template-columns:minmax(6rem,.65fr) minmax(9rem,1fr) minmax(7rem,.75fr) 2.25rem}.md\:grid-cols-\[repeat\(var\(--field-count\)\,minmax\(0\,1fr\)\)\]{grid-template-columns:repeat(var(--field-count),minmax(0,1fr))}.md\:grid-cols-\[repeat\(var\(--field-row-count\)\,minmax\(0\,1fr\)\)\]{grid-template-columns:repeat(var(--field-row-count),minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:items-end{align-items:flex-end}.md\:items-stretch{align-items:stretch}.md\:justify-between{justify-content:space-between}.md\:justify-end{justify-content:flex-end}.md\:gap-2{gap:calc(var(--spacing) * 2)}.md\:gap-3{gap:calc(var(--spacing) * 3)}.md\:gap-4{gap:calc(var(--spacing) * 4)}.md\:gap-6{gap:calc(var(--spacing) * 6)}:where(.md\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.md\:space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.md\:p-4{padding:calc(var(--spacing) * 4)}.md\:p-6{padding:calc(var(--spacing) * 6)}.md\:p-8{padding:calc(var(--spacing) * 8)}.md\:p-12{padding:calc(var(--spacing) * 12)}.md\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.md\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.md\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.md\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.md\:text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.md\:whitespace-normal{white-space:normal}}@media(min-width:64rem){.lg\:invisible{visibility:hidden}.lg\:relative{position:relative}.lg\:z-0{z-index:0}.lg\:order-1{order:1}.lg\:order-2{order:2}.lg\:col-span-1{grid-column:span 1/span 1}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:mx-auto{margin-inline:auto}.lg\:mb-1{margin-bottom:calc(var(--spacing) * 1)}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:inline{display:inline}.lg\:h-full{height:100%}.lg\:w-8{width:calc(var(--spacing) * 8)}.lg\:w-12{width:calc(var(--spacing) * 12)}.lg\:w-16{width:calc(var(--spacing) * 16)}.lg\:w-52{width:calc(var(--spacing) * 52)}.lg\:w-80{width:calc(var(--spacing) * 80)}.lg\:w-\[75px\]{width:75px}.lg\:w-\[130px\]{width:130px}.lg\:w-\[160px\]{width:160px}.lg\:w-\[190px\]{width:190px}.lg\:w-auto{width:auto}.lg\:w-full{width:100%}.lg\:max-w-0{max-width:calc(var(--spacing) * 0)}.lg\:max-w-3xl{max-width:var(--container-3xl)}.lg\:max-w-\[280px\]{max-width:280px}.lg\:max-w-sm{max-width:var(--container-sm)}.lg\:min-w-\[180px\]{min-width:180px}.lg\:flex-1{flex:1}.lg\:flex-none{flex:none}.lg\:translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\:grid-cols-\[18rem_minmax\(0\,1fr\)\]{grid-template-columns:18rem minmax(0,1fr)}.lg\:grid-cols-\[360px_1fr\]{grid-template-columns:360px 1fr}.lg\:grid-cols-\[minmax\(0\,1fr\)_180px_180px\]{grid-template-columns:minmax(0,1fr) 180px 180px}.lg\:grid-cols-\[minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) auto}.lg\:grid-cols-\[minmax\(0\,1fr\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.lg\:grid-cols-\[minmax\(0\,1fr\)_minmax\(0\,1fr\)_minmax\(0\,1\.4fr\)_max-content\]{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.4fr) max-content}.lg\:flex-row{flex-direction:row}.lg\:items-center{align-items:center}.lg\:items-start{align-items:flex-start}.lg\:justify-between{justify-content:space-between}.lg\:justify-center{justify-content:center}.lg\:justify-end{justify-content:flex-end}.lg\:gap-0{gap:calc(var(--spacing) * 0)}:where(.lg\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}.lg\:overflow-hidden{overflow:hidden}.lg\:p-2{padding:calc(var(--spacing) * 2)}.lg\:p-4{padding:calc(var(--spacing) * 4)}.lg\:px-0{padding-inline:calc(var(--spacing) * 0)}.lg\:px-4{padding-inline:calc(var(--spacing) * 4)}.lg\:pb-4{padding-bottom:calc(var(--spacing) * 4)}.lg\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.lg\:opacity-0{opacity:0}}@media(min-width:80rem){.xl\:w-80{width:calc(var(--spacing) * 80)}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.xl\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.xl\:grid-cols-\[0\.95fr_1\.05fr\]{grid-template-columns:.95fr 1.05fr}.xl\:grid-cols-\[1\.15fr_0\.85fr\]{grid-template-columns:1.15fr .85fr}.xl\:grid-cols-\[minmax\(0\,0\.8fr\)_minmax\(0\,1\.2fr\)\]{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}.xl\:grid-cols-\[minmax\(0\,0\.9fr\)_minmax\(0\,1\.1fr\)\]{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.xl\:grid-cols-\[minmax\(0\,0\.92fr\)_minmax\(0\,1\.08fr\)\]{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)}.xl\:grid-cols-\[minmax\(0\,0\.95fr\)_minmax\(0\,1\.05fr\)\]{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}.xl\:grid-cols-\[minmax\(0\,1\.05fr\)_minmax\(0\,0\.95fr\)\]{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}.xl\:flex-row{flex-direction:row}.xl\:items-center{align-items:center}}@media(min-width:96rem){.\32xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.dark\:border-amber-500\/40:where(.dark,.dark *){border-color:#f99c0066}@supports (color:color-mix(in lab,red,red)){.dark\:border-amber-500\/40:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-amber-500) 40%,transparent)}}.dark\:border-amber-500\/50:where(.dark,.dark *){border-color:#f99c0080}@supports (color:color-mix(in lab,red,red)){.dark\:border-amber-500\/50:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-amber-500) 50%,transparent)}}.dark\:border-blue-800:where(.dark,.dark *){border-color:var(--color-blue-800)}.dark\:border-blue-900:where(.dark,.dark *){border-color:var(--color-blue-900)}.dark\:border-destructive:where(.dark,.dark *){border-color:hsl(var(--destructive))}.dark\:border-gray-900:where(.dark,.dark *){border-color:var(--color-gray-900)}.dark\:border-green-900:where(.dark,.dark *){border-color:var(--color-green-900)}.dark\:border-orange-900:where(.dark,.dark *){border-color:var(--color-orange-900)}.dark\:border-red-900:where(.dark,.dark *){border-color:var(--color-red-900)}.dark\:border-yellow-800:where(.dark,.dark *){border-color:var(--color-yellow-800)}.dark\:border-yellow-900:where(.dark,.dark *){border-color:var(--color-yellow-900)}.dark\:bg-amber-500\/10:where(.dark,.dark *){background-color:#f99c001a}@supports (color:color-mix(in lab,red,red)){.dark\:bg-amber-500\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-amber-500) 10%,transparent)}}.dark\:bg-blue-500\/20:where(.dark,.dark *){background-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-500\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.dark\:bg-blue-900:where(.dark,.dark *){background-color:var(--color-blue-900)}.dark\:bg-blue-950:where(.dark,.dark *){background-color:var(--color-blue-950)}.dark\:bg-blue-950\/20:where(.dark,.dark *){background-color:#16245633}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-950\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-950) 20%,transparent)}}.dark\:bg-blue-950\/30:where(.dark,.dark *){background-color:#1624564d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-950\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-950) 30%,transparent)}}.dark\:bg-gray-800:where(.dark,.dark *){background-color:var(--color-gray-800)}.dark\:bg-gray-800\/30:where(.dark,.dark *){background-color:#1e29394d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-gray-800\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-800) 30%,transparent)}}.dark\:bg-gray-800\/50:where(.dark,.dark *){background-color:#1e293980}@supports (color:color-mix(in lab,red,red)){.dark\:bg-gray-800\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-800) 50%,transparent)}}.dark\:bg-gray-900:where(.dark,.dark *){background-color:var(--color-gray-900)}.dark\:bg-gray-950:where(.dark,.dark *){background-color:var(--color-gray-950)}.dark\:bg-green-900\/30:where(.dark,.dark *){background-color:#0d542b4d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-green-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-green-900) 30%,transparent)}}.dark\:bg-green-950\/20:where(.dark,.dark *){background-color:#032e1533}@supports (color:color-mix(in lab,red,red)){.dark\:bg-green-950\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-green-950) 20%,transparent)}}.dark\:bg-orange-950\/20:where(.dark,.dark *){background-color:#44130633}@supports (color:color-mix(in lab,red,red)){.dark\:bg-orange-950\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-orange-950) 20%,transparent)}}.dark\:bg-red-500\/20:where(.dark,.dark *){background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.dark\:bg-red-500\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.dark\:bg-red-600\/30:where(.dark,.dark *){background-color:#e400144d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-red-600\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-600) 30%,transparent)}}.dark\:bg-red-900\/30:where(.dark,.dark *){background-color:#82181a4d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-red-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-900) 30%,transparent)}}.dark\:bg-red-950\/20:where(.dark,.dark *){background-color:#46080933}@supports (color:color-mix(in lab,red,red)){.dark\:bg-red-950\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-950) 20%,transparent)}}.dark\:bg-red-950\/50:where(.dark,.dark *){background-color:#46080980}@supports (color:color-mix(in lab,red,red)){.dark\:bg-red-950\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-950) 50%,transparent)}}.dark\:bg-yellow-500\/20:where(.dark,.dark *){background-color:#edb20033}@supports (color:color-mix(in lab,red,red)){.dark\:bg-yellow-500\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-yellow-500) 20%,transparent)}}.dark\:bg-yellow-900:where(.dark,.dark *){background-color:var(--color-yellow-900)}.dark\:bg-yellow-950\/30:where(.dark,.dark *){background-color:#4320044d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-yellow-950\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-yellow-950) 30%,transparent)}}.dark\:text-amber-100:where(.dark,.dark *){color:var(--color-amber-100)}.dark\:text-amber-200:where(.dark,.dark *){color:var(--color-amber-200)}.dark\:text-amber-300:where(.dark,.dark *){color:var(--color-amber-300)}.dark\:text-amber-400:where(.dark,.dark *){color:var(--color-amber-400)}.dark\:text-amber-500:where(.dark,.dark *){color:var(--color-amber-500)}.dark\:text-blue-100:where(.dark,.dark *){color:var(--color-blue-100)}.dark\:text-blue-200:where(.dark,.dark *){color:var(--color-blue-200)}.dark\:text-blue-300:where(.dark,.dark *){color:var(--color-blue-300)}.dark\:text-blue-400:where(.dark,.dark *){color:var(--color-blue-400)}.dark\:text-cyan-500:where(.dark,.dark *){color:var(--color-cyan-500)}.dark\:text-emerald-300:where(.dark,.dark *){color:var(--color-emerald-300)}.dark\:text-emerald-400:where(.dark,.dark *){color:var(--color-emerald-400)}.dark\:text-gray-100:where(.dark,.dark *){color:var(--color-gray-100)}.dark\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\:text-gray-600:where(.dark,.dark *){color:var(--color-gray-600)}.dark\:text-green-300:where(.dark,.dark *){color:var(--color-green-300)}.dark\:text-green-400:where(.dark,.dark *){color:var(--color-green-400)}.dark\:text-orange-100:where(.dark,.dark *){color:var(--color-orange-100)}.dark\:text-orange-200:where(.dark,.dark *){color:var(--color-orange-200)}.dark\:text-red-300:where(.dark,.dark *){color:var(--color-red-300)}.dark\:text-red-400:where(.dark,.dark *){color:var(--color-red-400)}.dark\:text-red-500:where(.dark,.dark *){color:var(--color-red-500)}.dark\:text-sky-300:where(.dark,.dark *){color:var(--color-sky-300)}.dark\:text-yellow-200:where(.dark,.dark *){color:var(--color-yellow-200)}.dark\:text-yellow-300:where(.dark,.dark *){color:var(--color-yellow-300)}.dark\:text-yellow-400:where(.dark,.dark *){color:var(--color-yellow-400)}.dark\:text-yellow-500:where(.dark,.dark *){color:var(--color-yellow-500)}@media(hover:hover){.dark\:hover\:bg-gray-800:where(.dark,.dark *):hover{background-color:var(--color-gray-800)}.dark\:hover\:text-amber-200:where(.dark,.dark *):hover{color:var(--color-amber-200)}}.dark\:focus\:bg-gray-800:where(.dark,.dark *):focus{background-color:var(--color-gray-800)}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border))}@supports (color:color-mix(in lab,red,red)){.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:color-mix(in oklab,hsl(var(--border)) 50%,transparent)}}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:#0000}.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{--tw-outline-style:none;outline-style:none}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-sector\]\:outline-none .recharts-sector{--tw-outline-style:none;outline-style:none}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:#0000}.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{--tw-outline-style:none;outline-style:none}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-inline:calc(var(--spacing) * 2)}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-block:calc(var(--spacing) * 1.5)}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-inline:calc(var(--spacing) * 2)}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:calc(var(--spacing) * 0)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:calc(var(--spacing) * 5)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:calc(var(--spacing) * 5)}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:calc(var(--spacing) * 12)}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-inline:calc(var(--spacing) * 2)}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-block:calc(var(--spacing) * 3)}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:calc(var(--spacing) * 5)}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:calc(var(--spacing) * 5)}.\[\&_\[role\=combobox\]\]\:h-10 [role=combobox],.\[\&_input\]\:h-10 input{height:calc(var(--spacing) * 10)}.\[\&_p\]\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:invisible svg{visibility:hidden}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_textarea\]\:min-h-\[96px\] textarea{min-height:96px}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\+div\]\:text-xs+div{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\:\:-webkit-scrollbar\]\:w-2\.5::-webkit-scrollbar{width:calc(var(--spacing) * 2.5)}.\[\&\:\:-webkit-scrollbar-thumb\]\:rounded-full::-webkit-scrollbar-thumb{border-radius:3.40282e38px}.\[\&\:\:-webkit-scrollbar-thumb\]\:bg-border::-webkit-scrollbar-thumb{background-color:hsl(var(--border))}.\[\&\:\:-webkit-scrollbar-thumb\:hover\]\:bg-border\/80::-webkit-scrollbar-thumb:hover{background-color:hsl(var(--border))}@supports (color:color-mix(in lab,red,red)){.\[\&\:\:-webkit-scrollbar-thumb\:hover\]\:bg-border\/80::-webkit-scrollbar-thumb:hover{background-color:color-mix(in oklab,hsl(var(--border)) 80%,transparent)}}.\[\&\:\:-webkit-scrollbar-track\]\:bg-transparent::-webkit-scrollbar-track{background-color:#0000}.\[\&\:first-child\[data-selected\=true\]_button\]\:rounded-l-md:first-child[data-selected=true] button{border-top-left-radius:var(--visual-radius-md);border-bottom-left-radius:var(--visual-radius-md)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:calc(var(--spacing) * 0)}:is(.rtl\:\*\*\:\[\.rdp-button\\_next\>svg\]\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_next>svg),:is(.rtl\:\*\*\:\[\.rdp-button\\_previous\>svg\]\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_previous>svg){rotate:180deg}.\[\&\:last-child\[data-selected\=true\]_button\]\:rounded-r-md:last-child[data-selected=true] button{border-top-right-radius:var(--visual-radius-md);border-bottom-right-radius:var(--visual-radius-md)}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;translate:var(--tw-translate-x) var(--tw-translate-y)}.\[\&\>div\]\:\!block>div{display:block!important}.\[\&\>div\]\:w-full>div{width:100%}.\[\&\>div\]\:\!min-w-0>div{min-width:calc(var(--spacing) * 0)!important}.\[\&\>div\]\:bg-green-500>div{background-color:var(--color-green-500)}.\[\&\>span\]\:line-clamp-1>span{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.\[\&\>span\]\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\>span\]\:opacity-70>span{opacity:.7}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:top-4>svg{top:calc(var(--spacing) * 4)}.\[\&\>svg\]\:left-4>svg{left:calc(var(--spacing) * 4)}.\[\&\>svg\]\:size-3\.5>svg{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&\>svg\]\:h-2\.5>svg{height:calc(var(--spacing) * 2.5)}.\[\&\>svg\]\:h-3>svg{height:calc(var(--spacing) * 3)}.\[\&\>svg\]\:w-2\.5>svg{width:calc(var(--spacing) * 2.5)}.\[\&\>svg\]\:w-3>svg{width:calc(var(--spacing) * 3)}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\]\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\[\&\>svg\+div\]\:translate-y-0>svg+div{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y:-3px;translate:var(--tw-translate-x) var(--tw-translate-y)}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:calc(var(--spacing) * 7)}.\[\&\>tr\]\:last\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{rotate:180deg}[data-slot=card-content] .\[\[data-slot\=card-content\]_\&\]\:bg-transparent,[data-slot=popover-content] .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent{background-color:#0000}.bg-primary-gradient{background:var(--color-primary-gradient,hsl(var(--color-primary)))}.text-primary-gradient{color:hsl(var(--color-primary))}.has-gradient .text-primary-gradient{background:var(--color-primary-gradient);-webkit-text-fill-color:transparent;color:#0000;-webkit-background-clip:text;background-clip:text}.border-primary-gradient{border-image:var(--color-primary-gradient,linear-gradient(to right, hsl(var(--color-primary)), hsl(var(--color-primary)))) 1}.chat-message-flash{border-radius:.75rem;animation:1.6s ease-out chat-message-flash}}@keyframes slide-in-from-right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes slide-out-to-right{0%{transform:translate(0)}to{transform:translate(100%)}}@keyframes slide-in-from-top{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes slide-out-to-top{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}@keyframes config-tab-enter{0%{opacity:0;transform:translate(-.5rem)}to{opacity:1;transform:translate(0)}}@keyframes config-tab-content-enter{0%{opacity:0;transform:translate(.375rem)}to{opacity:1;transform:translate(0)}}@font-face{font-family:JetBrains Mono;src:url(/fonts/JetBrainsMono-Medium.ttf)format("truetype");font-weight:500;font-style:normal;font-display:swap}@keyframes chat-message-flash{0%{background-color:hsl(var(--color-primary) / .18);box-shadow:0 0 0 4px hsl(var(--color-primary) / .18)}to{background-color:#0000;box-shadow:0 0 #0000}}.no-animations *,.no-animations :before,.no-animations :after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.no-animations :hover{transition-duration:.01ms!important}::view-transition-old(root){mix-blend-mode:normal;animation:none}::view-transition-new(root){mix-blend-mode:normal;animation:none}::view-transition-old(root){z-index:1}::view-transition-new(root){z-index:999}.__floater{z-index:99999!important;pointer-events:auto!important}.react-joyride__overlay,.react-joyride__spotlight{z-index:99998!important}.react-joyride__tooltip{pointer-events:auto!important}#tour-portal-container *{pointer-events:auto}.custom-scrollbar{scrollbar-width:thin;scrollbar-color:hsl(var(--color-border)) transparent}.custom-scrollbar::-webkit-scrollbar{width:8px;height:8px}.custom-scrollbar::-webkit-scrollbar-track{background:0 0;border-radius:4px}.custom-scrollbar::-webkit-scrollbar-thumb{background:hsl(var(--color-border));background-clip:content-box;border:2px solid #0000;border-radius:4px}.custom-scrollbar::-webkit-scrollbar-thumb:hover{background:hsl(var(--color-muted-foreground) / .5);background-clip:content-box}.custom-scrollbar::-webkit-scrollbar-corner{background:0 0}*{touch-action:manipulation}.overflow-auto,.overflow-scroll,.overflow-x-auto,.overflow-x-scroll,.overflow-y-auto,.overflow-y-scroll{touch-action:pan-x pan-y}.recharts-wrapper,.react-flow__renderer{touch-action:none}@media(pointer:coarse){button,[role=button],a,input[type=checkbox],input[type=radio],select,[role=menuitem],[role=option],[role=tab]{min-width:44px;min-height:44px}}@media(hover:none){.hover-only-visible{display:none}}@media(hover:hover)and (pointer:fine){.touch-device-only{display:none}}@media(pointer:coarse){[data-radix-collection-item],button[role=checkbox],[role=checkbox]{position:relative}[data-radix-collection-item]:before,button[role=checkbox]:before,[role=checkbox]:before{content:"";min-width:44px;min-height:44px;position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%)}[role=switch]{position:relative}[role=switch]:before{content:"";min-width:44px;min-height:44px;position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%)}[role=slider]{position:relative}[role=slider]:before{content:"";min-width:44px;min-height:44px;position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}} diff --git a/dashboard/dist/assets/index-B5DZHykP.css b/dashboard/dist/assets/index-B5DZHykP.css new file mode 100644 index 00000000..5b58a00c --- /dev/null +++ b/dashboard/dist/assets/index-B5DZHykP.css @@ -0,0 +1 @@ +.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%} diff --git a/dashboard/dist/assets/index-B_FHivTS.js b/dashboard/dist/assets/index-B_FHivTS.js new file mode 100644 index 00000000..f0ab6cf3 --- /dev/null +++ b/dashboard/dist/assets/index-B_FHivTS.js @@ -0,0 +1,3 @@ +import{r as x,j as e}from"./router-zNjPR4CY.js";import{B as d}from"./badge-CDs67obV.js";import{am as Ie,C as A,b as G,d as U,g as f,B as C,S as me}from"./index-CuOHsLf7.js";import{S as Q}from"./separator-B_DSOSdz.js";import{u as X}from"./unified-ws-CBnrIqHW.js";import{j as ne,y as ye,a as be,n as ve,a2 as ae,aL as F,aM as Pe,aN as _e,aF as Ee,aO as Ae,ad as Re,d as re,e as P,f as H,W as ze,a5 as Le,aP as Be,A as De,aQ as Oe,_ as $e}from"./icons-DTcdLw9j.js";import"./utils-DjBw3JGv.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";class Ge{initialized=!1;listenerIdCounter=0;listeners=new Map;subscriptionActive=!1;subscriptionPromise=null;deferredUnsubTimer=null;initialize(){this.initialized||(X.addEventListener(t=>{if(t.domain!=="maisaka_monitor")return;const n={type:t.event,data:t.data};this.listeners.forEach(a=>{try{a(n)}catch(r){console.error("MaiSaka 监控事件监听器执行失败:",r)}})}),this.initialized=!0)}async ensureSubscribed(){this.subscriptionActive||(this.subscriptionPromise===null&&(this.subscriptionPromise=X.subscribe("maisaka_monitor","main").then(()=>{this.subscriptionActive=!0}).finally(()=>{this.subscriptionPromise=null})),await this.subscriptionPromise)}async subscribe(t){this.initialize();const n=++this.listenerIdCounter;return this.listeners.set(n,t),this.deferredUnsubTimer!==null&&(clearTimeout(this.deferredUnsubTimer),this.deferredUnsubTimer=null),await this.ensureSubscribed(),async()=>{this.listeners.delete(n),this.listeners.size===0&&this.subscriptionActive&&(this.deferredUnsubTimer=setTimeout(()=>{this.deferredUnsubTimer=null,this.listeners.size===0&&this.subscriptionActive&&(this.subscriptionActive=!1,X.unsubscribe("maisaka_monitor","main"))},200))}}}const Ue=new Ge,Y=3e3,Fe=1e4,He=200,Se="maisaka-monitor-background-collection",We="maisaka-monitor-db",qe=1;function ue({fallbackName:s,groupId:t,isGroupChat:n,sessionId:a,userId:r}){const l=n?t:r,o=s?.trim();return l&&o?.endsWith(`(${l})`)?o:o&&l&&o!==l&&o!==a?`${o}(${l})`:n&&t?t:!n&&r?r:s||a.slice(0,8)}let ie=0,S=[],k=new Map,b=new Map,v=null,M=!1,T=!1,Z=!1,B=0,ee=!1,J=null,E=null;const se=new Set;let L=null,xe=null,V=0,D=[],O=new Set,$=!1;function pe(s){const t=typeof s.session_id=="string"?s.session_id:"";return t?{sessionId:t,sessionName:typeof s.session_name=="string"?s.session_name:void 0,stage:typeof s.stage=="string"?s.stage:"",detail:typeof s.detail=="string"?s.detail:"",roundText:typeof s.round_text=="string"?s.round_text:"",agentState:typeof s.agent_state=="string"?s.agent_state:"",stageStartedAt:typeof s.stage_started_at=="number"?s.stage_started_at:Date.now()/1e3,updatedAt:typeof s.updated_at=="number"?s.updated_at:Date.now()/1e3}:null}function j(){se.forEach(s=>s())}function Ke(){return Z||(Z=!0,typeof window<"u"&&(T=window.localStorage.getItem(Se)==="true")),T}function le(){return typeof window>"u"||!window.indexedDB?null:(xe??=Ie(We,qe,{upgrade(s){s.createObjectStore("timeline",{keyPath:"id"}).createIndex("by-timestamp","timestamp"),s.createObjectStore("sessions",{keyPath:"sessionId"}),s.createObjectStore("meta",{keyPath:"key"})}}),xe)}function Xe(s){return{id:s.id,type:s.type,data:s.data,timestamp:s.timestamp,sessionId:s.sessionId}}async function Je(){if(!(typeof window>"u"))try{const s=le();if(!s)return;const t=await s,[n,a,r,l]=await Promise.all([t.getAllFromIndex("timeline","by-timestamp"),t.getAll("sessions"),t.get("meta","selectedSession"),t.get("meta","entryCounter")]);S=n.slice(-Y).map(Xe),k=new Map(a.map(o=>[o.sessionId,o])),v=typeof r?.value=="string"?r.value:null,ie=typeof l?.value=="number"?l.value:S.length,j()}catch(s){console.warn("读取 MaiSaka 观察 IndexedDB 缓存失败,已忽略:",s)}}async function Ve(s){const t=await s.getAllKeysFromIndex("timeline","by-timestamp"),n=t.length-Fe;if(n<=0)return;const a=s.transaction("timeline","readwrite");for(const r of t.slice(0,n))await a.store.delete(r);await a.done}async function Qe(){try{const s=le();if(!s)return;const t=D,n=Array.from(O),a=$;if(D=[],O=new Set,$=!1,t.length===0&&n.length===0&&!a)return;const r=await s,l=r.transaction(["timeline","sessions","meta"],"readwrite"),o=Date.now();for(const i of t)await l.objectStore("timeline").put({...i,persistedAt:o});for(const i of n){const m=k.get(i);m&&await l.objectStore("sessions").put(m)}await l.objectStore("meta").put({key:"selectedSession",value:v}),await l.objectStore("meta").put({key:"entryCounter",value:ie}),await l.done,V+=t.length,V>=He&&(V=0,await Ve(r))}catch(s){console.warn("保存 MaiSaka 观察 IndexedDB 缓存失败,已忽略:",s)}}async function Ye(){try{const s=le();if(!s)return;const n=(await s).transaction(["timeline","sessions","meta"],"readwrite");await Promise.all([n.objectStore("timeline").clear(),n.objectStore("sessions").clear(),n.objectStore("meta").clear()]),await n.done}catch(s){console.warn("清空 MaiSaka 观察 IndexedDB 缓存失败,已忽略:",s)}}function te(s,t){typeof window>"u"||(s&&D.push(s),t&&O.add(t),$=!0,L!==null&&window.clearTimeout(L),L=window.setTimeout(()=>{L=null,Qe()},300))}Je();function ke(){return B>0||T}function Ze(s){const t=[...S,s];S=t.length>Y?t.slice(t.length-Y):t}function fe(s,t,n){const a=s.data,r=typeof a.is_group_chat=="boolean"?a.is_group_chat:void 0,l=typeof a.group_id=="string"?a.group_id:null,o=typeof a.user_id=="string"?a.user_id:null,i=typeof a.platform=="string"?a.platform:void 0,m=typeof a.session_name=="string"?a.session_name:void 0,N=new Map(k),u=N.get(t);s.type==="session.start"||!u?N.set(t,{sessionId:t,sessionName:ue({fallbackName:m,groupId:l,isGroupChat:r,sessionId:t,userId:o}),isGroupChat:r,groupId:l,userId:o,platform:i,lastActivity:n,eventCount:(u?.eventCount??0)+1}):N.set(t,{...u,sessionName:ue({fallbackName:m??u.sessionName,groupId:l??u.groupId,isGroupChat:r??u.isGroupChat,sessionId:t,userId:o??u.userId}),isGroupChat:r??u.isGroupChat,groupId:l??u.groupId,userId:o??u.userId,platform:i??u.platform,lastActivity:n,eventCount:u.eventCount+1}),k=N}function he(s){const t=(n,a)=>{const r=n.get(a.sessionId);r&&a.updatedAt{if(E=s,!ke()){E=null,s(),M=!1,j();return}ee=!0,M=!0,j()}).catch(s=>{console.error("MaiSaka 监控订阅失败:",s),M=!1,j()}).finally(()=>{J=null}))}function je(){if(!ke()&&E){const s=E;E=null,ee=!1,M=!1,j(),s()}}function ss(){const[s,t]=x.useState(S),[n,a]=x.useState(new Map(k)),[r,l]=x.useState(new Map(b)),[o,i]=x.useState(v),[m,N]=x.useState(M),[u,R]=x.useState(Ke);x.useEffect(()=>{B+=1,ge();const h=()=>{t(S),a(new Map(k)),l(new Map(b)),i(v),N(M),R(T)};return se.add(h),h(),()=>{se.delete(h),B=Math.max(0,B-1),je()}},[]);const g=x.useCallback(()=>{S=[],k=new Map,b=new Map,v=null,t([]),a(new Map),l(new Map),i(null),D=[],O=new Set,$=!1,Ye(),j()},[]),W=x.useCallback(h=>{v=h,i(h),te(),j()},[]),w=x.useCallback(h=>{T=h,Z=!0,typeof window<"u"&&window.localStorage.setItem(Se,String(h)),h?ge():je(),j()},[]);return{timeline:o?s.filter(h=>h.sessionId===o):s,allTimeline:s,sessions:n,stageStatuses:r,selectedSession:o,setSelectedSession:W,connected:m,backgroundCollection:u,setBackgroundCollectionEnabled:w,clearTimeline:g}}function _(s){return s<1e3?`${Math.round(s)}ms`:`${(s/1e3).toFixed(2)}s`}function Ne(s,t){return`${s}:${t}`}function oe(s){return new Date(s*1e3).toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function Ce(s){const t=Date.now()/1e3-s;return t<10?"刚刚":t<60?`${Math.round(t)}秒前`:t<3600?`${Math.round(t/60)}分钟前`:`${Math.round(t/3600)}小时前`}function ts({sessions:s,stageStatuses:t,selectedSession:n,onSelect:a,collapsed:r}){const l=Array.from(s.values()).sort((i,m)=>m.lastActivity-i.lastActivity),o=i=>{const m=i.sessionName.trim();return m?m.slice(0,1):i.isGroupChat?"群":"私"};return l.length===0?e.jsxs("div",{className:f("flex flex-col items-center justify-center h-full text-muted-foreground gap-2",r?"p-2":"p-4"),children:[e.jsx(re,{className:"h-8 w-8 opacity-40"}),e.jsx("p",{className:"text-sm text-center",children:"等待 MaiSaka 会话…"})]}):e.jsx("div",{className:f("flex flex-col gap-1",r?"items-center p-2":"p-2"),children:l.map(i=>{const m=t.get(i.sessionId);return e.jsxs("button",{onClick:()=>a(i.sessionId),title:i.sessionName,className:f("max-w-full overflow-hidden rounded-lg text-left text-sm transition-colors","hover:bg-accent/50",r?"flex h-10 w-10 items-center justify-center p-0":"flex w-full min-w-0 flex-col items-start gap-0.5 px-2.5 py-2",n===i.sessionId&&"bg-accent text-accent-foreground"),children:[e.jsxs("div",{className:f("flex w-full min-w-0 items-center",r?"justify-center":"justify-between gap-2"),children:[e.jsxs("div",{className:f("flex min-w-0 items-center gap-2 overflow-hidden",!r&&"flex-1"),children:[e.jsxs("span",{className:"relative flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-primary/10 text-xs font-semibold text-primary",children:[o(i),m&&e.jsx("span",{className:"absolute -right-0.5 -top-0.5 h-2.5 w-2.5 rounded-full bg-emerald-500 ring-2 ring-background"})]}),!1,!r&&e.jsx("span",{className:"block min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap font-medium",title:i.sessionName,children:i.sessionName})]}),!r&&e.jsx(d,{variant:"secondary",className:"h-4 shrink-0 px-1 text-[10px]",children:i.eventCount})]}),!r&&e.jsxs("div",{className:"flex w-full min-w-0 items-center justify-between gap-2 overflow-hidden text-xs text-muted-foreground",children:[e.jsx("span",{className:"shrink-0",children:Ce(i.lastActivity)}),m&&e.jsx("span",{className:"min-w-0 truncate text-primary",children:m.stage})]})]},i.sessionId)})})}function ns({status:s}){return s?e.jsxs("div",{className:"mb-3 rounded-md border bg-background px-3 py-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(d,{variant:"default",className:"gap-1",children:[e.jsx(ne,{className:"h-3 w-3"}),s.stage||"未知阶段"]}),s.roundText&&e.jsx(d,{variant:"secondary",className:"text-[10px]",children:s.roundText}),s.agentState&&e.jsx(d,{variant:s.agentState==="running"?"default":"outline",className:"text-[10px]",children:s.agentState}),e.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:["更新于 ",Ce(s.updatedAt)]})]}),s.detail&&e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:s.detail})]}):e.jsx("div",{className:"mb-3 rounded-md border bg-muted/30 px-3 py-2 text-sm text-muted-foreground",children:"当前聊天流暂无阶段状态"})}function as({data:s}){return e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"mt-1 flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-blue-500/15 text-blue-500",children:e.jsx(ve,{className:"h-3.5 w-3.5"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("span",{className:"font-medium text-sm",children:s.speaker_name}),e.jsx("span",{className:"text-xs text-muted-foreground",children:oe(s.timestamp)})]}),e.jsx("p",{className:"text-sm text-foreground/80 whitespace-pre-wrap wrap-break-word leading-relaxed",children:s.content||"[空消息]"})]})]})}function rs({data:s}){return e.jsxs("div",{className:"flex items-start gap-3 rounded-md border border-emerald-500/30 bg-emerald-500/5 px-3 py-2",children:[e.jsx("div",{className:"mt-1 flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-emerald-500/15 text-emerald-500",children:e.jsx(re,{className:"h-3.5 w-3.5"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[e.jsx("span",{className:"font-medium text-sm",children:s.speaker_name||"麦麦"}),e.jsx(d,{variant:"outline",className:"text-[10px]",children:"已发送"}),e.jsx("span",{className:"text-xs text-muted-foreground",children:oe(s.timestamp)})]}),e.jsx("p",{className:"text-sm text-foreground/80 whitespace-pre-wrap wrap-break-word leading-relaxed",children:s.content||"[非文本消息]"})]})]})}function is({data:s}){return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"mt-0.5 flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-violet-500/15 text-violet-500",children:e.jsx($e,{className:"h-3.5 w-3.5"})}),e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs("span",{className:"text-sm font-medium",children:["推理循环 #",s.cycle_id]}),e.jsxs(d,{variant:"outline",className:"text-[10px]",children:["回合 ",s.round_index+1,"/",s.max_rounds]}),e.jsxs(d,{variant:"secondary",className:"text-[10px]",children:["上下文 ",s.history_count," 条"]})]})]})}function ls({data:s}){const t={continue:{label:"继续执行",variant:"default",icon:De},wait:{label:"等待",variant:"secondary",icon:Be},no_reply:{label:"不回复",variant:"destructive",icon:H}},n=t[s.action]??t.continue,a=n.icon;return e.jsxs("div",{className:"flex items-start gap-3 rounded-md border bg-background px-3 py-2 shadow-sm",children:[e.jsx("div",{className:"mt-1 flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-amber-500/15 text-amber-500",children:e.jsx(Oe,{className:"h-3.5 w-3.5"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1 flex-wrap",children:[e.jsx("span",{className:"text-sm font-medium",children:"反应"}),e.jsx(d,{variant:"outline",className:"text-[10px]",children:"react"}),e.jsxs(d,{variant:n.variant,className:"text-[10px] gap-0.5",children:[e.jsx(a,{className:"h-2.5 w-2.5"}),n.label]}),e.jsx("span",{className:"text-xs text-muted-foreground",children:_(s.duration_ms)})]}),s.content&&e.jsx(I,{text:s.content,maxLines:3})]})]})}function os({toolCalls:s}){return s.length<=0?null:e.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5",children:s.map((t,n)=>e.jsxs(d,{variant:"secondary",className:"text-[10px] gap-1",children:[e.jsx(F,{className:"h-2.5 w-2.5"}),t.name]},`${t.id||t.name}-${n}`))})}function cs(s){const t=s.trim();t&&window.open(t,"_blank","noopener,noreferrer")}function Me(s){const t=s.planner?.content?.trim()??"";return s.interrupted===!0||t.startsWith("Planner ")&&s.planner?.prompt_tokens===0&&s.planner?.completion_tokens===0&&s.planner?.tool_calls.length===0}function ds({data:s}){const t=s.planner;return e.jsxs("div",{className:"rounded-md border border-amber-500/35 bg-amber-500/5 px-3 py-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(ze,{className:"h-4 w-4 shrink-0 text-amber-500"}),e.jsx("span",{className:"font-medium",children:"Planner 被新消息打断"}),e.jsxs(d,{variant:"outline",className:"ml-auto text-[10px]",children:["#",s.cycle_id]}),t&&t.duration_ms>0&&e.jsx("span",{className:"text-xs text-muted-foreground",children:_(t.duration_ms)})]}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:t?.content||"收到新消息,已停止当前思考并准备重新决策。"})]})}function ms({data:s}){return e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"mt-1 flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-emerald-500/15 text-emerald-500",children:e.jsx(ae,{className:"h-3.5 w-3.5"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1 flex-wrap",children:[e.jsx("span",{className:"text-sm font-medium",children:"规划器思考"}),e.jsx("span",{className:"text-xs text-muted-foreground",children:_(s.duration_ms)}),e.jsxs(d,{variant:"outline",className:"text-[10px]",children:[s.prompt_tokens,"+",s.completion_tokens," tokens"]})]}),s.content&&e.jsx(I,{text:s.content,maxLines:6}),e.jsx(os,{toolCalls:s.tool_calls})]})]})}function us({data:s}){const t=s.planner,n=t?.prompt_html_uri?.trim()??"";return e.jsx(A,{className:"border-l-4 border-l-emerald-500/60",children:e.jsxs(G,{className:"py-3 px-4 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx(ae,{className:"h-4 w-4 text-emerald-500"}),e.jsx(U,{className:"text-sm font-medium",children:"主循环 planner"}),n&&e.jsxs(C,{variant:"ghost",size:"sm",className:"h-6 px-2 text-[10px]",onClick:()=>cs(n),title:"打开 planner HTML 记录",children:[e.jsx(Le,{className:"mr-1 h-3 w-3"}),"HTML"]}),e.jsx(d,{variant:"outline",className:"text-xs font-normal ml-auto",children:_(t?.duration_ms??0)}),s.request&&e.jsxs(d,{variant:"secondary",className:"text-[10px]",children:["上下文 ",s.request.selected_history_count," 条 / 可用工具 ",s.request.tool_count]}),t&&(t.prompt_tokens>0||t.completion_tokens>0)&&e.jsxs(d,{variant:"outline",className:"text-[10px]",children:[t.prompt_tokens,"+",t.completion_tokens," tokens"]})]}),t?.content?e.jsx(I,{text:t.content,maxLines:6,className:"text-foreground/90"}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"planner 本轮没有文本内容"})]})})}function xs({data:s}){const t=s.planner?.tool_calls??[],n=s.tools??[],a=n.length>0?n:t.map(i=>({tool_call_id:i.id,tool_name:i.name,tool_args:i.arguments??{},success:!0,duration_ms:0,summary:""})),r=i=>i?.trim().toLowerCase()==="finish",l=a.filter(i=>r(i.tool_name)),o=a.filter(i=>!r(i.tool_name));return a.length<=0?null:o.length<=0&&l.length>0?e.jsx("div",{className:"rounded-md border border-emerald-500/30 bg-emerald-500/5 px-3 py-2",children:e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(P,{className:"h-4 w-4 shrink-0 text-emerald-500"}),e.jsx("span",{className:"font-medium",children:"本轮思考暂时结束"}),e.jsx("span",{className:"text-muted-foreground",children:"等待新的消息。"})]})}):e.jsx(A,{className:"border-l-4 border-l-teal-500/60",children:e.jsxs(G,{className:"py-3 px-4 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(F,{className:"h-4 w-4 text-teal-500"}),e.jsx(U,{className:"text-sm font-medium",children:"Planner 工具调用"}),e.jsxs(d,{variant:"secondary",className:"ml-auto text-[10px]",children:[o.length," 个"]})]}),l.length>0&&e.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-emerald-500/30 bg-emerald-500/5 px-2.5 py-1.5 text-xs",children:[e.jsx(P,{className:"h-3.5 w-3.5 shrink-0 text-emerald-500"}),e.jsx("span",{className:"font-medium",children:"本轮思考暂时结束"}),e.jsx("span",{className:"text-muted-foreground",children:"等待新的消息。"})]}),e.jsx("div",{className:"space-y-2",children:o.map((i,m)=>e.jsxs("div",{className:"rounded-md border bg-muted/40 px-2.5 py-2 text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-mono font-medium",children:i.tool_name||"unknown"}),i.success?e.jsx(P,{className:"h-3.5 w-3.5 text-teal-500"}):e.jsx(H,{className:"h-3.5 w-3.5 text-red-500"}),i.duration_ms>0&&e.jsx("span",{className:"text-muted-foreground",children:_(i.duration_ms)})]}),Object.keys(i.tool_args??{}).length>0&&e.jsx("pre",{className:"mt-1 whitespace-pre-wrap break-all rounded bg-background/70 px-2 py-1 text-[11px] text-muted-foreground",children:JSON.stringify(i.tool_args,null,2)}),i.summary&&e.jsx("p",{className:"mt-1 text-muted-foreground whitespace-pre-wrap break-words",children:i.summary})]},`${i.tool_call_id||i.tool_name}-${m}`))})]})})}function ps({data:s}){return e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:f("mt-1 flex h-7 w-7 shrink-0 items-center justify-center rounded-full",s.success?"bg-teal-500/15 text-teal-500":"bg-red-500/15 text-red-500"),children:e.jsx(F,{className:"h-3.5 w-3.5"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1 flex-wrap",children:[e.jsx("span",{className:"text-sm font-medium font-mono",children:s.tool_name}),s.success?e.jsx(P,{className:"h-3.5 w-3.5 text-teal-500"}):e.jsx(H,{className:"h-3.5 w-3.5 text-red-500"}),e.jsx("span",{className:"text-xs text-muted-foreground",children:_(s.duration_ms)})]}),Object.keys(s.tool_args).length>0&&e.jsx("div",{className:"text-xs text-muted-foreground font-mono bg-muted/50 rounded px-2 py-1 mb-1 whitespace-pre-wrap break-all",children:JSON.stringify(s.tool_args,null,2)}),s.result_summary&&e.jsx(I,{text:s.result_summary,maxLines:3,className:"text-muted-foreground"})]})]})}function fs(s){const t=s.end_reason??"",n=s.end_detail?.trim();return n||(t==="finish"?"Planner 调用 finish,结束本轮思考并等待新消息。":t==="timing_no_reply"?"Timing Gate 选择 no_reply,本轮不会进入 Planner。":t==="max_rounds"?"已达到内部思考轮次上限,本轮处理结束。":t==="planner_interrupted"?"Planner 被新消息打断,当前轮结束。":t.startsWith("tool_pause:")?`工具 ${t.slice(11)} 要求暂停当前思考循环。`:t==="tool_pause"?"工具要求暂停当前思考循环。":t==="empty_planner_response"?"Planner 没有返回文本或工具调用,本轮思考结束。":t==="tool_continue"?"Planner 工具执行完成,继续下一轮内部思考。":"本轮思考完成。")}function hs(s){const t=s.end_reason??"";return t==="finish"?"finish 结束":t==="timing_no_reply"?"no_reply 结束":t==="max_rounds"?"轮次上限":t==="planner_interrupted"?"Planner 打断":t.startsWith("tool_pause:")||t==="tool_pause"?"工具暂停":t==="empty_planner_response"?"空响应":t==="tool_continue"?"继续下一轮":"循环结束"}function gs({data:s}){const t=Object.values(s.time_records).reduce((n,a)=>n+a,0);return e.jsxs("div",{className:"my-1 space-y-1.5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Q,{className:"flex-1"}),e.jsxs("div",{className:"flex items-center gap-2 rounded-full border bg-background px-3 py-1",children:[e.jsx(_e,{className:"h-3.5 w-3.5 text-slate-500"}),e.jsx("span",{className:"text-xs text-muted-foreground",children:hs(s)}),e.jsxs(d,{variant:"outline",className:"text-[10px]",children:["#",s.cycle_id]}),e.jsx("span",{className:"text-[10px] text-muted-foreground",children:_(t*1e3)}),e.jsx(d,{variant:s.agent_state==="running"?"default":"secondary",className:"text-[10px]",children:s.agent_state})]}),e.jsx(Q,{className:"flex-1"})]}),e.jsx("p",{className:"text-center text-xs text-muted-foreground",children:fs(s)})]})}function I({text:s,maxLines:t=4,className:n}){const[a,r]=x.useState(!1),l=s.split(` +`),o=l.length>t;return!o||a?e.jsxs("div",{className:"relative",children:[e.jsx("p",{className:f("text-sm whitespace-pre-wrap wrap-break-word leading-relaxed",n),children:s}),o&&e.jsxs("button",{onClick:()=>r(!1),className:"text-xs text-primary hover:underline mt-1 flex items-center gap-0.5",children:[e.jsx(be,{className:"h-3 w-3"})," 收起"]})]}):e.jsxs("div",{children:[e.jsx("p",{className:f("text-sm whitespace-pre-wrap wrap-break-word leading-relaxed",n),children:l.slice(0,t).join(` +`)}),e.jsxs("button",{onClick:()=>r(!0),className:"text-xs text-primary hover:underline mt-1 flex items-center gap-0.5",children:[e.jsx(ye,{className:"h-3 w-3"})," 展开全部 (",l.length," 行)"]})]})}function js({data:s}){return e.jsx(A,{className:"border-l-4 border-l-purple-500/60",children:e.jsxs(G,{className:"py-2.5 px-4 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(re,{className:"h-4 w-4 text-purple-500"}),e.jsx(U,{className:"text-sm font-medium",children:"回复器响应"}),e.jsx(d,{variant:"outline",className:"text-xs font-normal ml-auto",children:_(s.duration_ms)}),s.success?e.jsxs(d,{variant:"secondary",className:"text-xs gap-1",children:[e.jsx(P,{className:"h-3 w-3"})," 成功"]}):e.jsxs(d,{variant:"destructive",className:"text-xs gap-1",children:[e.jsx(H,{className:"h-3 w-3"})," 失败"]}),e.jsx("span",{className:"text-xs text-muted-foreground",children:oe(s.timestamp)})]}),s.content&&e.jsx(I,{text:s.content,maxLines:6,className:"text-foreground/90"}),s.reasoning&&e.jsxs("details",{className:"mt-1",children:[e.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:"思考过程"}),e.jsx(I,{text:s.reasoning,maxLines:8,className:"mt-1 text-muted-foreground"})]}),(s.prompt_tokens>0||s.completion_tokens>0)&&e.jsxs("div",{className:"flex gap-3 text-xs text-muted-foreground mt-1",children:[s.model_name&&e.jsxs("span",{children:["模型: ",s.model_name]}),e.jsxs("span",{children:["输入: ",s.prompt_tokens]}),e.jsxs("span",{children:["输出: ",s.completion_tokens]}),e.jsxs("span",{children:["总计: ",s.total_tokens]})]})]})})}function we({entry:s,showCycleMarkers:t}){switch(s.type){case"message.ingested":return e.jsx(as,{data:s.data});case"message.sent":return e.jsx(rs,{data:s.data});case"cycle.start":return t?e.jsx(is,{data:s.data}):null;case"timing_gate.result":return e.jsx(ls,{data:s.data});case"planner.response":return e.jsx(ms,{data:s.data});case"planner.finalized":return Me(s.data)?e.jsx(ds,{data:s.data}):s.data.timing_gate?.result?.action==="no_reply"?null:e.jsxs("div",{className:"space-y-2",children:[e.jsx(us,{data:s.data}),e.jsx(xs,{data:s.data})]});case"tool.execution":return e.jsx(ps,{data:s.data});case"cycle.end":return e.jsx(gs,{data:s.data});case"replier.response":return e.jsx(js,{data:s.data});default:return null}}function Ns(){const{timeline:s,sessions:t,stageStatuses:n,selectedSession:a,setSelectedSession:r,connected:l,backgroundCollection:o,setBackgroundCollectionEnabled:i,clearTimeline:m}=ss(),N=x.useRef(null),[u,R]=x.useState(!0),[g,W]=x.useState(()=>localStorage.getItem("maisaka-monitor-sidebar-collapsed")!=="false"),[w,ce]=x.useState(()=>localStorage.getItem("maisaka-monitor-show-cycle-markers")==="true");x.useEffect(()=>{localStorage.setItem("maisaka-monitor-sidebar-collapsed",String(g))},[g]),x.useEffect(()=>{localStorage.setItem("maisaka-monitor-show-cycle-markers",String(w))},[w]),x.useEffect(()=>{if(u&&N.current){const c=N.current.querySelector("[data-radix-scroll-area-viewport]");c&&(c.scrollTop=c.scrollHeight)}},[s,u]);const h=x.useCallback(c=>{const p=c.currentTarget.querySelector("[data-radix-scroll-area-viewport]");if(!p)return;const{scrollTop:z,scrollHeight:y,clientHeight:K}=p;R(y-z-K<80)},[]),q={messages:s.filter(c=>c.type==="message.ingested"||c.type==="message.sent").length,cycles:s.filter(c=>c.type==="cycle.start").length,toolCalls:s.reduce((c,p)=>p.type==="tool.execution"?c+1:p.type==="planner.finalized"?c+(p.data.tools?.length??0):c,0)},Te=a?n.get(a):void 0;return e.jsxs("div",{className:"flex h-[calc(100vh-180px)] gap-4",children:[e.jsxs(A,{className:f("shrink-0 flex flex-col transition-[width] duration-200",g?"w-16":"w-52"),children:[e.jsx(G,{className:f("py-3 space-y-0",g?"px-2":"px-3"),children:e.jsxs(U,{className:f("text-sm font-medium flex items-center gap-2",g&&"justify-center text-[0px]"),children:[!g&&e.jsx(ne,{className:"h-4 w-4"}),"聊天流",l&&e.jsx("span",{className:f("flex h-2 w-2 rounded-full bg-emerald-500",!g&&"ml-auto")}),e.jsx(C,{variant:"ghost",size:"icon",className:"h-6 w-6 shrink-0",onClick:()=>W(c=>!c),title:g?"展开侧边栏":"折叠侧边栏",children:g?e.jsx(ye,{className:"h-3.5 w-3.5"}):e.jsx(be,{className:"h-3.5 w-3.5"})})]})}),e.jsx(Q,{}),e.jsx(me,{className:"flex-1",children:e.jsx(ts,{sessions:t,stageStatuses:n,selectedSession:a,onSelect:r,collapsed:g})})]}),e.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3 flex-wrap",children:[e.jsxs("div",{className:"flex items-center gap-4 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-muted-foreground",children:[e.jsx(ve,{className:"h-3.5 w-3.5"}),e.jsxs("span",{children:[q.messages," 消息"]})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-muted-foreground",children:[e.jsx(ae,{className:"h-3.5 w-3.5"}),e.jsxs("span",{children:[q.cycles," 循环"]})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-muted-foreground",children:[e.jsx(F,{className:"h-3.5 w-3.5"}),e.jsxs("span",{children:[q.toolCalls," 工具调用"]})]})]}),e.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[e.jsxs(C,{variant:o?"secondary":"ghost",size:"sm",className:"h-7 text-xs",onClick:()=>i(!o),title:o?"关闭离开页面后的持续获取":"开启离开页面后的持续获取",children:[e.jsx(Pe,{className:f("h-3.5 w-3.5 mr-1",o&&"text-primary")}),"持续获取"]}),e.jsxs(C,{variant:w?"secondary":"ghost",size:"sm",className:"h-7 text-xs",onClick:()=>ce(c=>!c),title:w?"隐藏推理循环标记":"显示推理循环标记",children:[e.jsx(_e,{className:f("h-3.5 w-3.5 mr-1",w&&"text-primary")}),"循环标记"]}),e.jsxs(C,{variant:"ghost",size:"sm",className:"h-7 text-xs",onClick:()=>R(!u),children:[e.jsx(Ee,{className:f("h-3.5 w-3.5 mr-1",u&&"text-primary")}),u?"跟踪中":"已暂停"]}),e.jsxs(C,{variant:"ghost",size:"sm",className:"h-7 text-xs",onClick:m,children:[e.jsx(Ae,{className:"h-3.5 w-3.5 mr-1"}),"清空"]})]})]}),e.jsx(ns,{status:Te}),e.jsx(A,{className:"flex-1 overflow-hidden",children:e.jsx(me,{className:"h-full",ref:N,onScrollCapture:h,children:e.jsx("div",{className:"p-4 space-y-3",children:s.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-muted-foreground gap-3",children:[e.jsx(Re,{className:"h-10 w-10 opacity-30"}),e.jsx("p",{className:"text-sm",children:"等待 MaiSaka 推理事件…"}),e.jsx("p",{className:"text-xs opacity-60",children:"当 MaiSaka 处理新消息时,推理过程会实时展示在这里"})]}):(()=>{const c=new Set;return s.map(p=>{if(p.type==="timing_gate.result"){const y=p.data;y.action==="no_reply"&&c.add(Ne(y.session_id,y.cycle_id))}if(p.type==="planner.response"||p.type==="planner.finalized"){const y=p.data,K=Ne(y.session_id,y.cycle_id);if(p.type==="planner.finalized"&&Me(y)){const de=e.jsx(we,{entry:p,showCycleMarkers:w});return de?e.jsx("div",{className:"animate-in fade-in-0 slide-in-from-bottom-2 duration-300",children:de},p.id):null}if(c.has(K))return null}const z=e.jsx(we,{entry:p,showCycleMarkers:w});return z?e.jsx("div",{className:"animate-in fade-in-0 slide-in-from-bottom-2 duration-300",children:z},p.id):null})})()})})})]})]})}function Ts(){return e.jsxs("div",{className:"space-y-4 sm:space-y-6 p-4 sm:p-6",children:[e.jsx("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:e.jsx("div",{children:e.jsxs("h1",{className:"text-2xl sm:text-3xl font-bold flex items-center gap-2",children:[e.jsx(ne,{className:"h-6 w-6 sm:h-7 sm:w-7"}),"麦麦观察"]})})}),e.jsx(Ns,{})]})}export{Ts as PlannerMonitorPage}; diff --git a/dashboard/dist/assets/index-BnkN5WGH.js b/dashboard/dist/assets/index-BnkN5WGH.js new file mode 100644 index 00000000..90ede806 --- /dev/null +++ b/dashboard/dist/assets/index-BnkN5WGH.js @@ -0,0 +1 @@ +import{j as e,r as m}from"./router-zNjPR4CY.js";import{u as R,B as $,g as j,a8 as se,a9 as te,aa as ae,S as J,I as re,E as Ce,D as He,i as qe,j as Ke,k as We,l as Ge,a5 as Je,L as ee,a3 as Qe,x as ye}from"./index-CuOHsLf7.js";import{u as M}from"./unified-ws-CBnrIqHW.js";import{T as Xe}from"./textarea-8PIujbf-.js";import{aR as Ye,d as Q,aS as Ze,L as ne,aT as es,aU as B,ay as ie,R as ss,X as Se,w as _e,b as ts,aV as as,aW as rs,a3 as ns,a1 as is,J as os,S as ls}from"./icons-DTcdLw9j.js";import{ac as Te,ad as Me,ae as Re}from"./radix-C-ZuImoP.js";import{S as cs,a as ds,b as us,c as ms,d as hs}from"./select-DGqIoF9r.js";import"./misc-BwRzHX8c.js";import"./utils-DjBw3JGv.js";function ps(s,t){const r=new Set([...Object.keys(s),...Object.keys(t)]);for(const l of r)if(s[l]!==t[l])return!1;return!0}class fs{initialized=!1;listeners=new Map;sessionPayloads=new Map;openedSessions=new Set;pendingOpens=new Map;initialize(){this.initialized||(M.addEventListener(t=>{if(t.domain!=="chat"||!t.session)return;const r=this.listeners.get(t.session);r&&r.forEach(l=>{try{l(t.data)}catch(o){console.error("聊天会话监听器执行失败:",o)}})}),M.onReconnect(()=>{this.openedSessions.clear(),this.pendingOpens.clear(),this.reopenSessions()}),M.onConnectionChange(t=>{t||(this.openedSessions.clear(),this.pendingOpens.clear())}),this.initialized=!0)}async reopenSessions(){const t=Array.from(this.sessionPayloads.entries());for(const[r,l]of t)try{await M.call({domain:"chat",method:"session.open",session:r,data:{...l,restore:!0}}),this.openedSessions.add(r)}catch(o){console.error(`恢复聊天会话失败 (${r}):`,o)}}async openSession(t,r){this.initialize();const l=this.sessionPayloads.get(t);this.sessionPayloads.set(t,r);const o=this.pendingOpens.get(t);if(o){await o;return}if(this.openedSessions.has(t)&&l!==void 0&&ps(l,r))return;const c=M.call({domain:"chat",method:"session.open",session:t,data:r}).then(()=>{this.openedSessions.add(t)});this.pendingOpens.set(t,c);try{await c}finally{this.pendingOpens.delete(t)}}async closeSession(t){if(this.sessionPayloads.delete(t),this.openedSessions.delete(t),this.pendingOpens.delete(t),M.getStatus()==="connected")try{await M.call({domain:"chat",method:"session.close",session:t,data:{}})}catch(r){console.warn(`关闭聊天会话失败 (${t}):`,r)}}async sendMessage(t,r,l){await M.call({domain:"chat",method:"message.send",session:t,data:{content:r,user_name:l}})}async updateNickname(t,r){const l=this.sessionPayloads.get(t);l&&this.sessionPayloads.set(t,{...l,user_name:r}),await M.call({domain:"chat",method:"session.update_nickname",session:t,data:{user_name:r}})}onSessionMessage(t,r){this.initialize();const l=this.listeners.get(t)??new Set;return l.add(r),this.listeners.set(t,l),()=>{const o=this.listeners.get(t);o&&(o.delete(r),o.size===0&&this.listeners.delete(t))}}onConnectionChange(t){return M.onConnectionChange(t)}onStatusChange(t){return M.onStatusChange(t)}async restart(){await M.restart()}}const I=new fs;function xs({value:s,onChange:t,onSend:r,disabled:l,isConnected:o}){const{t:c}=R(),h=i=>{i.key==="Enter"&&!i.shiftKey&&!i.nativeEvent.isComposing&&(i.preventDefault(),l||r())},b=!l&&s.trim().length>0;return e.jsx("div",{className:"bg-card/85 supports-backdrop-filter:bg-card/65 shrink-0 border-t backdrop-blur",children:e.jsxs("div",{className:"mx-auto max-w-4xl px-3 py-3 sm:px-6 sm:py-4",children:[e.jsxs("div",{className:j("group bg-background/80 focus-within:border-primary/60 focus-within:ring-primary/20 relative flex items-end gap-2 rounded-2xl border px-3 py-2 shadow-sm transition focus-within:ring-2",!o&&"opacity-70"),children:[e.jsx(Xe,{"aria-label":c("chat.input.placeholder"),autoResize:!0,className:"max-h-40 min-h-9 flex-1 resize-none border-0 bg-transparent px-1 py-1.5 text-sm shadow-none focus-visible:ring-0",disabled:!o,maxHeight:160,minHeight:36,placeholder:c(o?"chat.input.placeholder":"chat.input.waiting"),value:s,onChange:i=>t(i.target.value),onKeyDown:h}),e.jsx($,{"aria-label":c("chat.actions.send"),className:j("h-9 w-9 shrink-0 rounded-full transition",b?"shadow-md":"opacity-60"),disabled:!b,size:"icon",title:c("chat.actions.send"),onClick:r,children:e.jsx(Ye,{className:"h-4 w-4"})})]}),e.jsx("p",{className:"text-muted-foreground mt-1.5 hidden px-2 text-[11px] sm:block",children:c("chat.composer.hint")})]})})}const F=m.forwardRef(({className:s,...t},r)=>e.jsx(Te,{ref:r,className:j("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",s),...t}));F.displayName=Te.displayName;const Ue=m.forwardRef(({className:s,...t},r)=>e.jsx(Re,{ref:r,className:j("aspect-square h-full w-full",s),...t}));Ue.displayName=Re.displayName;const L=m.forwardRef(({className:s,...t},r)=>e.jsx(Me,{ref:r,className:j("flex h-full w-full items-center justify-center rounded-full bg-muted",s),...t}));L.displayName=Me.displayName;function gs({activeTab:s,botDisplayName:t,isConnecting:r,isLoadingHistory:l,onReconnect:o}){const{t:c}=R(),h=s?.type==="virtual",b=s?.virtualConfig,i=s?.isConnected??!1;return e.jsx("header",{className:"bg-card/85 supports-backdrop-filter:bg-card/65 relative z-1 shrink-0 border-b backdrop-blur",children:e.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3 sm:px-6 sm:py-4",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[e.jsxs("div",{className:"relative shrink-0",children:[e.jsx(F,{className:"h-10 w-10 ring-1 ring-border/60 sm:h-11 sm:w-11",children:e.jsx(L,{className:"bg-primary-gradient text-primary-foreground",children:e.jsx(Q,{className:"h-5 w-5"})})}),e.jsx("span",{"aria-hidden":"true",className:j("absolute right-0 bottom-0 h-3 w-3 rounded-full border-2 border-card transition-colors",i?"bg-emerald-500":r?"bg-amber-500":"bg-muted-foreground/60")})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h1",{className:"truncate text-sm font-semibold leading-tight sm:text-base",children:t}),e.jsxs("div",{className:"text-muted-foreground mt-0.5 flex items-center gap-1.5 text-xs leading-tight",children:[i?e.jsxs(e.Fragment,{children:[e.jsx(Ze,{className:"h-3 w-3 text-emerald-500"}),e.jsx("span",{children:c("chat.status.connected")})]}):r?e.jsxs(e.Fragment,{children:[e.jsx(ne,{className:"h-3 w-3 animate-spin"}),e.jsx("span",{children:c("chat.status.connecting")})]}):e.jsxs(e.Fragment,{children:[e.jsx(es,{className:"h-3 w-3 text-rose-500"}),e.jsx("span",{children:c("chat.status.disconnected")})]}),h&&b&&e.jsxs(e.Fragment,{children:[e.jsx("span",{"aria-hidden":!0,className:"text-muted-foreground/40",children:"·"}),e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(B,{className:"h-3 w-3"}),e.jsx("span",{className:"max-w-40 truncate",children:b.userName})]}),e.jsx("span",{className:"bg-muted text-muted-foreground rounded-full px-1.5 py-0.5 text-[10px] font-medium",children:b.platform}),b.groupName&&e.jsxs("span",{className:"hidden items-center gap-1 sm:inline-flex",children:[e.jsx(ie,{className:"h-3 w-3"}),e.jsx("span",{className:"max-w-40 truncate",children:b.groupName})]})]})]})]})]}),e.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[l&&e.jsx(ne,{className:"text-muted-foreground h-4 w-4 animate-spin","aria-hidden":"true"}),e.jsxs(se,{children:[e.jsx(te,{asChild:!0,children:e.jsx($,{"aria-label":c("chat.actions.reconnect"),className:"h-9 w-9 rounded-full",disabled:r,size:"icon",variant:"ghost",onClick:o,children:e.jsx(ss,{className:j("h-4 w-4",r&&"animate-spin")})})}),e.jsx(ae,{side:"bottom",children:c("chat.actions.reconnect")})]})]})]})})}function bs({tabs:s,activeTabId:t,onSwitch:r,onClose:l,onAddVirtual:o}){const{t:c}=R();return e.jsx("div",{className:"bg-card/85 supports-backdrop-filter:bg-card/65 shrink-0 border-b backdrop-blur",children:e.jsxs("div",{className:"scrollbar-thin flex items-center gap-1 overflow-x-auto px-3 py-2",children:[s.map(h=>{const b=t===h.id,i=h.type==="virtual"?B:Q;return e.jsxs("div",{className:j("group flex shrink-0 items-center rounded-full border text-xs transition",b?"bg-primary text-primary-foreground border-transparent shadow-sm":"bg-background/60 text-muted-foreground hover:text-foreground hover:bg-background border-transparent"),children:[e.jsxs("button",{type:"button",className:"flex items-center gap-1.5 rounded-full px-3 py-1.5",onClick:()=>r(h.id),children:[e.jsx(i,{className:"h-3.5 w-3.5"}),e.jsx("span",{className:"max-w-32 truncate font-medium",children:h.label}),e.jsx("span",{"aria-hidden":!0,className:j("h-1.5 w-1.5 rounded-full transition-colors",b?h.isConnected?"bg-primary-foreground":"bg-primary-foreground/50":h.isConnected?"bg-emerald-500":"bg-muted-foreground/40")})]}),h.id!=="webui-default"&&e.jsx("button",{type:"button","aria-label":c("chat.sidebar.closeConversation",{label:h.label}),className:j("mr-1 rounded-full p-0.5 transition",b?"hover:bg-primary-foreground/20":"hover:bg-muted"),onClick:k=>l(h.id,k),children:e.jsx(Se,{className:"h-3 w-3"})})]},h.id)}),e.jsx("button",{type:"button","aria-label":c("chat.sidebar.newVirtual"),title:c("chat.sidebar.newVirtual"),className:"text-muted-foreground hover:bg-muted hover:text-foreground flex h-7 w-7 shrink-0 items-center justify-center rounded-full border border-dashed transition",onClick:o,children:e.jsx(_e,{className:"h-3.5 w-3.5"})})]})})}function vs(s,t){return s?(s.type==="system"||s.type==="error",s.content||t):t}function ws({tab:s,active:t,onSwitch:r,onClose:l}){const{t:o}=R(),c=s.type==="virtual",h=s.messages[s.messages.length-1],b=vs(h,o("chat.sidebar.emptyPreview")),i=c?B:Q;return e.jsxs("div",{className:j("group relative flex w-full min-w-0 items-center gap-1 rounded-xl pr-1 transition-colors",t?"bg-primary/12 text-foreground shadow-inner":"hover:bg-muted/70 text-foreground/90"),children:[t&&e.jsx("span",{"aria-hidden":!0,className:"bg-primary absolute top-2 bottom-2 left-0 w-1 rounded-full"}),e.jsxs("button",{type:"button",className:"flex w-full min-w-0 flex-1 items-center gap-3 overflow-hidden rounded-xl px-2.5 py-2 text-left",onClick:()=>r(s.id),children:[e.jsxs("div",{className:"relative shrink-0",children:[e.jsx(F,{className:"h-11 w-11 ring-1 ring-border/60",children:e.jsx(L,{className:j("text-xs",c?"bg-secondary text-secondary-foreground":"bg-primary-gradient text-primary-foreground"),children:e.jsx(i,{className:"h-5 w-5"})})}),e.jsx("span",{"aria-hidden":!0,className:j("border-card absolute right-0 bottom-0 h-3 w-3 rounded-full border-2 transition-colors",s.isConnected?"bg-emerald-500":"bg-muted-foreground/40")})]}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex min-w-0 items-center justify-between gap-2",children:[e.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:s.label}),e.jsx("span",{className:j("shrink-0 rounded-full px-1.5 py-0.5 text-[10px] font-medium tracking-wide",c?"bg-secondary text-secondary-foreground":"bg-primary/15 text-primary"),children:o(c?"chat.sidebar.virtualBadge":"chat.sidebar.webuiBadge")})]}),e.jsx("p",{className:"text-muted-foreground mt-0.5 truncate text-xs",children:b})]})]}),s.id!=="webui-default"&&e.jsx("button",{type:"button","aria-label":o("chat.sidebar.closeConversation",{label:s.label}),className:"text-muted-foreground hover:bg-background hover:text-foreground rounded-md p-1 opacity-0 transition group-hover:opacity-100 focus-visible:opacity-100",onClick:k=>l(s.id,k),children:e.jsx(Se,{className:"h-3.5 w-3.5"})})]})}function js({className:s,tabs:t,activeTabId:r,userName:l,onSwitch:o,onClose:c,onAddVirtual:h,onUpdateUserName:b}){const{t:i}=R(),[k,_]=m.useState(!1),[P,y]=m.useState(l),d=()=>{y(l),_(!0)},N=()=>{const x=P.trim()||i("chat.userNameFallback");b(x),_(!1)};return e.jsxs("aside",{className:j("bg-card/90 supports-backdrop-filter:bg-card/70 flex h-full w-72 shrink-0 flex-col border-r backdrop-blur xl:w-80",s),children:[e.jsx("div",{className:"border-b px-4 pt-5 pb-4",children:e.jsxs("div",{className:"flex items-end justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("h2",{className:"truncate text-lg font-semibold tracking-tight",children:i("chat.sidebar.title")}),e.jsx("p",{className:"text-muted-foreground mt-0.5 truncate text-xs",children:i("chat.sidebar.subtitle",{count:t.length})})]}),e.jsxs(se,{children:[e.jsx(te,{asChild:!0,children:e.jsx($,{"aria-label":i("chat.sidebar.newVirtual"),className:"h-9 w-9 shrink-0 rounded-full shadow-sm",size:"icon",onClick:h,children:e.jsx(_e,{className:"h-4 w-4"})})}),e.jsx(ae,{side:"bottom",children:i("chat.sidebar.newVirtual")})]})]})}),e.jsx(J,{className:"min-h-0 flex-1",contentClassName:"!block w-full min-w-0",scrollbars:"vertical",viewportClassName:"[&>div]:!block [&>div]:!min-w-0 [&>div]:w-full",children:e.jsx("nav",{"aria-label":i("chat.sidebar.conversations"),className:"space-y-0.5 p-2",children:t.map(x=>e.jsx(ws,{active:r===x.id,tab:x,onSwitch:o,onClose:c},x.id))})}),e.jsx("div",{className:"border-t p-3",children:e.jsxs("div",{className:"bg-background/70 hover:bg-background flex items-center gap-3 rounded-xl border p-2.5 transition-colors",children:[e.jsx(F,{className:"h-10 w-10 shrink-0 ring-1 ring-border/60",children:e.jsx(L,{className:"bg-secondary text-secondary-foreground",children:e.jsx(B,{className:"h-5 w-5"})})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-muted-foreground text-[11px] uppercase tracking-wide",children:i("chat.sidebar.profileTitle")}),k?e.jsxs("div",{className:"mt-0.5 flex items-center gap-1",children:[e.jsx(re,{autoFocus:!0,className:"h-7 text-sm",placeholder:i("chat.identity.namePlaceholder"),value:P,onChange:x=>y(x.target.value),onKeyDown:x=>{x.key==="Enter"&&!x.nativeEvent.isComposing?(x.preventDefault(),N()):x.key==="Escape"&&_(!1)}}),e.jsx($,{"aria-label":i("chat.sidebar.saveName"),className:"h-7 w-7 shrink-0",size:"icon",variant:"ghost",onClick:N,children:e.jsx(ts,{className:"h-3.5 w-3.5"})})]}):e.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[e.jsx("p",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:l}),e.jsxs(se,{children:[e.jsx(te,{asChild:!0,children:e.jsx($,{"aria-label":i("chat.sidebar.editName"),className:"h-6 w-6 shrink-0 opacity-60 hover:opacity-100",size:"icon",variant:"ghost",onClick:d,children:e.jsx(as,{className:"h-3 w-3"})})}),e.jsx(ae,{side:"top",children:i("chat.sidebar.editName")})]})]})]})]})})]})}const Ie=m.createContext(null);function ys(){return m.useContext(Ie)}function Ns(s){return s.data&&typeof s.data=="object"?s.data:{target_user_id:s.data==null?null:String(s.data)}}function ks(s){return s.data&&typeof s.data=="object"?s.data:{target_message_id:s.data==null?null:String(s.data)}}function Ne({segment:s}){const{t}=R();switch(s.type){case"text":return e.jsx("span",{className:"whitespace-pre-wrap",children:String(s.data)});case"image":case"emoji":{const r=s.type==="emoji"?t("chat.media.emoji"):t("chat.media.image");return e.jsx("img",{src:String(s.data),alt:r,className:j("max-w-full rounded-lg",s.type==="emoji"?"max-h-32":"max-h-64"),loading:"lazy",onError:l=>{const o=l.target;o.style.display="none";const c=document.createElement("span");c.className="text-muted-foreground text-xs",c.textContent=t("chat.media.loadFailed",{type:r}),o.parentElement?.appendChild(c)}})}case"voice":return e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs("audio",{controls:!0,src:String(s.data),className:"h-8 max-w-[200px]",children:[e.jsx("track",{kind:"captions",src:"",label:t("chat.media.noCaptions"),default:!0}),t("chat.media.audioUnsupported")]})});case"video":return e.jsxs("video",{controls:!0,src:String(s.data),className:"max-h-64 max-w-full rounded-lg",children:[e.jsx("track",{kind:"captions",src:"",label:t("chat.media.noCaptions"),default:!0}),t("chat.media.videoUnsupported")]});case"face":return e.jsx("span",{className:"text-muted-foreground",children:t("chat.media.face",{data:String(s.data)})});case"music":return e.jsx("span",{className:"text-muted-foreground",children:t("chat.media.music")});case"file":return e.jsx("span",{className:"text-muted-foreground",children:t("chat.media.file",{data:String(s.data)})});case"reply":{const r=ks(s);return e.jsx(Ss,{data:r})}case"at":{const r=Ns(s),l=r.target_user_cardname||r.target_user_nickname||r.target_user_id||"";return e.jsxs("span",{className:"text-primary bg-primary/10 mx-0.5 inline-flex items-center rounded px-1 text-[0.95em] font-medium",title:r.target_user_id?`@${r.target_user_id}`:"@",children:["@",l||t("chat.media.unknownMessage")]})}case"forward":return e.jsx("span",{className:"text-muted-foreground",children:t("chat.media.forward")});default:return e.jsx("span",{className:"text-muted-foreground",children:t("chat.media.unknown",{type:s.original_type||t("chat.media.unknownMessage")})})}}function Cs({message:s,isBot:t}){if(s.message_type==="rich"&&s.segments&&s.segments.length>0){const r=[],l=[];for(const o of s.segments)o.type==="reply"?l.push(o):r.push(o);return e.jsxs("div",{className:"flex flex-col gap-2",children:[l.map((o,c)=>e.jsx(Ne,{segment:o},`reply-${c}`)),r.length>0&&e.jsx("div",{className:"flex flex-wrap items-baseline whitespace-pre-wrap",children:r.map((o,c)=>e.jsx(Ne,{segment:o},`inline-${c}`))})]})}return e.jsx("span",{className:"whitespace-pre-wrap",children:s.content})}function Ss({data:s}){const{t}=R(),{toast:r}=Ce(),l=ys(),o=s.target_message_sender_cardname||s.target_message_sender_nickname||s.target_message_sender_id||t("chat.message.replyUnknownSender",{defaultValue:"未知发送者"}),c=s.target_message_content?.trim()||t("chat.media.replyMissing",{defaultValue:"原消息内容不可用"}),h=s.target_message_id?String(s.target_message_id):"",b=!!(h&&l),i=()=>{if(!h||!l)return;l.scrollToMessage(h)||r({title:t("chat.toast.replyNotFoundTitle",{defaultValue:"原始消息不在当前视图"}),description:t("chat.toast.replyNotFoundDescription",{defaultValue:"该消息可能已被清除、不在本会话中,或者尚未加载。"}),variant:"destructive"})},k=j("group block w-full rounded-md border-l-2 border-primary/60 bg-background/40 px-2 py-1 text-left text-xs",b&&"cursor-pointer transition hover:bg-background/70"),_=e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(rs,{className:"mt-0.5 h-3 w-3 shrink-0 opacity-70","aria-hidden":!0}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"text-primary/80 truncate text-[11px] font-medium",children:o}),e.jsx("div",{className:"text-muted-foreground truncate",children:c})]})]});return b?e.jsx("button",{type:"button",className:k,onClick:i,children:_}):e.jsx("div",{className:k,children:_})}function _s({type:s,visible:t,imageUrl:r}){return e.jsx("div",{className:"h-8 w-8 shrink-0 sm:h-9 sm:w-9",children:t&&e.jsxs(F,{className:"h-full w-full ring-1 ring-border/60",children:[s==="bot"&&r?e.jsx(Ue,{src:r,alt:"",className:"object-cover"}):null,e.jsx(L,{className:j("text-xs",s==="user"?"bg-secondary text-secondary-foreground":"bg-primary-gradient text-primary-foreground"),children:s==="user"?e.jsx(is,{className:"h-4 w-4"}):e.jsx(Q,{className:"h-4 w-4"})})]})})}function Ts({botName:s}){const{t}=R();return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-3 px-6 py-16 text-center",children:[e.jsxs("div",{className:"bg-primary-gradient text-primary-foreground relative flex h-16 w-16 items-center justify-center rounded-2xl shadow-lg",children:[e.jsx(ns,{className:"h-7 w-7"}),e.jsx("span",{className:"bg-primary/30 absolute inset-0 -z-10 animate-pulse rounded-2xl blur-xl"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h2",{className:"text-base font-semibold sm:text-lg",children:t("chat.message.empty",{bot:s})}),e.jsx("p",{className:"text-muted-foreground text-xs sm:text-sm",children:t("chat.message.emptyHint")})]})]})}function Ms({messages:s,isLoadingHistory:t,botDisplayName:r,botQq:l,userName:o,language:c}){const{t:h}=R(),b=m.useRef(null),i=m.useRef(new Map);m.useEffect(()=>{b.current?.scrollIntoView({behavior:"smooth"})},[s]);const k=m.useCallback(d=>{const N=i.current.get(d);return N?(N.scrollIntoView({behavior:"smooth",block:"center"}),N.classList.add("chat-message-flash"),window.setTimeout(()=>{N.classList.remove("chat-message-flash")},1600),!0):!1},[]),_=m.useMemo(()=>({scrollToMessage:k}),[k]),P=d=>new Date(d*1e3).toLocaleTimeString(c||"zh-CN",{hour:"2-digit",minute:"2-digit"}),y=l&&/^\d+$/.test(l)?`https://q1.qlogo.cn/g?b=qq&nk=${l}&s=640`:void 0;return s.length===0&&!t?e.jsx("div",{className:"min-w-0 min-h-0 flex-1 overflow-hidden",children:e.jsx(J,{className:"h-full w-full",contentClassName:"!block w-full min-w-0",scrollbars:"vertical",viewportClassName:"[&>div]:!block [&>div]:!min-w-0 [&>div]:w-full",children:e.jsx(Ts,{botName:r})})}):e.jsx("div",{className:"min-w-0 min-h-0 flex-1 overflow-hidden",children:e.jsx(J,{className:"h-full w-full",contentClassName:"!block w-full min-w-0",scrollbars:"vertical",viewportClassName:"[&>div]:!block [&>div]:!min-w-0 [&>div]:w-full",children:e.jsx(Ie.Provider,{value:_,children:e.jsxs("div",{className:"mx-auto flex w-full max-w-4xl min-w-0 flex-col gap-1 px-3 py-5 sm:px-6 sm:py-6",children:[s.map((d,N)=>{if(d.type==="system")return e.jsxs("div",{className:"my-2 flex items-center gap-3",children:[e.jsx("div",{className:"bg-border/60 h-px flex-1"}),e.jsx("span",{className:"text-muted-foreground bg-card/70 rounded-full border px-3 py-0.5 text-[11px]",children:d.content}),e.jsx("div",{className:"bg-border/60 h-px flex-1"})]},d.id);if(d.type==="error")return e.jsx("div",{className:"my-2 flex justify-center",children:e.jsx("div",{className:"bg-destructive/10 text-destructive border-destructive/30 rounded-full border px-3 py-1 text-xs",children:d.content})},d.id);const x=d.type==="user",H=x?"user":"bot",z=s[N-1],D=z&&z.type===d.type&&(z.sender?.user_id??z.sender?.name)===(d.sender?.user_id??d.sender?.name),X=d.sender?.name||(x?o:r);return e.jsxs("div",{ref:q=>{q?i.current.set(d.id,q):i.current.delete(d.id)},"data-message-id":d.id,className:j("chat-message-row flex w-full min-w-0 items-end gap-2 sm:gap-3",x?"flex-row-reverse":"flex-row",D?"mt-0.5":"mt-3 first:mt-0"),children:[e.jsx(_s,{type:H,visible:!D,imageUrl:H==="bot"?y:void 0}),e.jsxs("div",{className:j("flex min-w-0 max-w-[80%] flex-col sm:max-w-[70%]",x?"items-end":"items-start"),children:[!D&&e.jsxs("div",{className:j("text-muted-foreground mb-1 flex items-center gap-2 px-1 text-[11px]",x&&"flex-row-reverse"),children:[e.jsx("span",{className:"hidden font-medium sm:inline",children:X}),e.jsx("span",{children:P(d.timestamp)})]}),e.jsx("div",{className:j("shadow-sm/30 wrap-break-word min-w-0 max-w-full overflow-hidden px-3.5 py-2 text-sm leading-relaxed",x?"bg-primary text-primary-foreground rounded-2xl rounded-br-md":"bg-muted text-foreground rounded-2xl rounded-bl-md"),children:e.jsx(Cs,{message:d,isBot:!x})})]})]},d.id)}),e.jsx("div",{ref:b}),e.jsx("span",{className:"sr-only","aria-live":"polite",children:s.length>0?h("chat.sidebar.subtitle",{count:s.length}):""})]})})})})}const Pe="maibot_webui_virtual_tabs";function Rs(){return"webui_"+Math.random().toString(36).substr(2,9)+"_"+Date.now().toString(36)}function Us(){const s="maibot_webui_user_id";let t=localStorage.getItem(s);return t||(t=Rs(),localStorage.setItem(s,t)),t}function Is(){return localStorage.getItem("maibot_webui_user_name")||"WebUI用户"}function Ps(s){localStorage.setItem("maibot_webui_user_name",s)}function Ds(){try{const s=localStorage.getItem(Pe);if(s)return JSON.parse(s)}catch(s){console.error("[Chat] 加载虚拟标签页失败:",s)}return[]}function ke(s){try{localStorage.setItem(Pe,JSON.stringify(s))}catch(t){console.error("[Chat] 保存虚拟标签页失败:",t)}}function Es({open:s,onOpenChange:t,platforms:r,persons:l,isLoadingPlatforms:o,isLoadingPersons:c,personSearchQuery:h,setPersonSearchQuery:b,tempVirtualConfig:i,setTempVirtualConfig:k,onSelectPerson:_,onCreateVirtualTab:P}){const{t:y}=R();return e.jsx(He,{open:s,onOpenChange:t,children:e.jsxs(qe,{className:"flex max-h-[85vh] flex-col overflow-hidden sm:max-w-125",confirmOnEnter:!0,children:[e.jsxs(Ke,{children:[e.jsxs(We,{className:"flex items-center gap-2",children:[e.jsx(B,{className:"h-5 w-5"}),y("chat.dialog.title")]}),e.jsx(Ge,{children:y("chat.dialog.description")})]}),e.jsxs(Je,{className:"flex-1 space-y-4",viewportClassName:"pr-0",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs(ee,{className:"flex items-center gap-2",children:[e.jsx(os,{className:"h-4 w-4"}),y("chat.dialog.platform")]}),e.jsxs(cs,{value:i.platform,onValueChange:d=>{k(N=>({...N,platform:d,personId:"",userId:"",userName:""}))},children:[e.jsx(ds,{disabled:o,children:e.jsx(us,{placeholder:y(o?"chat.dialog.loading":"chat.dialog.platformPlaceholder")})}),e.jsx(ms,{children:r.map(d=>e.jsxs(hs,{value:d.platform,children:[d.platform," ",y("chat.dialog.personCount",{count:d.count})]},d.platform))})]})]}),i.platform&&e.jsxs("div",{className:"flex flex-1 flex-col space-y-2 overflow-hidden",children:[e.jsxs(ee,{className:"flex items-center gap-2",children:[e.jsx(ie,{className:"h-4 w-4"}),y("chat.dialog.user")]}),e.jsxs("div",{className:"relative",children:[e.jsx(ls,{className:"text-muted-foreground absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2"}),e.jsx(re,{placeholder:y("chat.dialog.searchUser"),value:h,onChange:d=>b(d.target.value),className:"pl-9"})]}),e.jsx(J,{className:"bg-background/40 h-62.5 rounded-lg border",children:e.jsx("div",{className:"p-1.5",children:c?e.jsx("div",{className:"flex items-center justify-center py-10",children:e.jsx(ne,{className:"text-muted-foreground h-6 w-6 animate-spin"})}):l.length===0?e.jsxs("div",{className:"text-muted-foreground flex flex-col items-center justify-center py-10",children:[e.jsx(ie,{className:"mb-2 h-8 w-8 opacity-50"}),e.jsx("p",{className:"text-sm",children:y("chat.dialog.noUsers")})]}):e.jsx("div",{className:"space-y-0.5",children:l.map(d=>{const N=i.personId===d.person_id,x=d.nickname||d.person_name;return e.jsxs("button",{type:"button",onClick:()=>_(d),className:j("flex w-full items-center gap-3 rounded-md p-2 text-left transition-colors",N?"bg-primary/12 text-foreground":"hover:bg-muted/70"),children:[e.jsx(F,{className:"h-9 w-9 shrink-0 ring-1 ring-border/60",children:e.jsx(L,{className:j("text-xs font-semibold",N?"bg-primary-gradient text-primary-foreground":"bg-muted text-foreground"),children:(x||"?").charAt(0).toUpperCase()})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"truncate text-sm font-medium",children:x}),d.is_known&&e.jsx("span",{className:"bg-emerald-500/15 text-emerald-600 dark:text-emerald-400 rounded-full px-1.5 py-0.5 text-[10px] font-medium",children:y("chat.dialog.knownUserSuffix").replace(/^\s*·\s*/,"")})]}),e.jsx("div",{className:"text-muted-foreground truncate font-mono text-[11px]",children:d.user_id})]})]},d.person_id)})})})})]}),i.personId&&e.jsxs("div",{className:"space-y-2",children:[e.jsx(ee,{children:y("chat.dialog.groupName")}),e.jsx(re,{placeholder:y("chat.virtualGroupFallback"),value:i.groupName,onChange:d=>k(N=>({...N,groupName:d.target.value}))}),e.jsx("p",{className:"text-muted-foreground text-xs",children:y("chat.dialog.groupNameHint")})]})]}),e.jsxs(Qe,{className:"gap-2 sm:gap-0",children:[e.jsx($,{variant:"outline",onClick:()=>t(!1),children:y("chat.actions.cancel")}),e.jsx($,{"data-dialog-action":"confirm",onClick:P,disabled:!i.platform||!i.personId,children:y("chat.dialog.create")})]})]})})}function qs(){const{t:s,i18n:t}=R(),r={id:"webui-default",type:"webui",label:s("chat.defaultTab"),messages:[],isConnected:!1,isTyping:!1,sessionInfo:{}},l=()=>{const f=Ds().map(u=>{const n=u.virtualConfig;return!n.groupId&&n.platform&&n.userId&&(n.groupId=`webui_virtual_group_${n.platform}_${n.userId}`),{id:u.id,type:"virtual",label:u.label,virtualConfig:n,messages:[],isConnected:!1,isTyping:!1,sessionInfo:{}}});return[r,...f]},[o,c]=m.useState(l),[h,b]=m.useState("webui-default"),i=o.find(a=>a.id===h)||o[0],[k,_]=m.useState(""),[P,y]=m.useState(!1),[d,N]=m.useState(!0),[x,H]=m.useState(Is()),[z,D]=m.useState(!1),[X,q]=m.useState([]),[De,Ee]=m.useState([]),[$e,oe]=m.useState(!1),[ze,le]=m.useState(!1),[Y,ce]=m.useState(""),[S,Z]=m.useState({platform:"",personId:"",userId:"",userName:"",groupName:"",groupId:""}),de=m.useRef(Us()),ue=m.useRef(0),U=m.useRef(new Map),A=m.useRef(new Map),me=m.useRef([]),{toast:T}=Ce();m.useEffect(()=>{me.current=o},[o]);const V=a=>(ue.current+=1,`${a}-${Date.now()}-${ue.current}-${Math.random().toString(36).substr(2,9)}`),E=m.useCallback((a,f)=>{c(u=>u.map(n=>n.id===a?{...n,...f}:n))},[]),O=m.useCallback((a,f)=>{c(u=>u.map(n=>n.id===a?{...n,messages:[...n.messages,f]}:n))},[]),Ve=m.useCallback(async()=>{oe(!0);try{const a=await ye("/api/chat/platforms");if(console.log("[Chat] 平台列表响应:",a.status,a.headers.get("content-type")),a.ok){const f=a.headers.get("content-type");if(f&&f.includes("application/json")){const u=await a.json();console.log("[Chat] 平台列表数据:",u),q(u.platforms||[])}else{const u=await a.text();console.error("[Chat] 获取平台列表失败: 非 JSON 响应:",u.substring(0,200)),T({title:s("chat.toast.connectionFailed"),description:s("chat.toast.backendUnavailable"),variant:"destructive"})}}else console.error("[Chat] 获取平台列表失败: HTTP",a.status),T({title:s("chat.toast.platformFailed"),description:s("chat.toast.serverError",{status:a.status}),variant:"destructive"})}catch(a){console.error("[Chat] 获取平台列表失败:",a),T({title:s("chat.toast.networkError"),description:s("chat.toast.backendUnavailableShort"),variant:"destructive"})}finally{oe(!1)}},[s,T]),he=m.useCallback(async(a,f)=>{le(!0);try{const u=new URLSearchParams;a&&u.append("platform",a),f&&u.append("search",f),u.append("limit","50");const n=await ye(`/api/chat/persons?${u.toString()}`);if(n.ok){const p=n.headers.get("content-type");if(p&&p.includes("application/json")){const w=await n.json();Ee(w.persons||[])}else console.error("[Chat] 获取用户列表失败: 后端返回非 JSON 响应")}}catch(u){console.error("[Chat] 获取用户列表失败:",u)}finally{le(!1)}},[]);m.useEffect(()=>{S.platform&&he(S.platform,Y)},[S.platform,Y,he]);const pe=m.useCallback((a,f,u,n)=>{switch(n.type){case"session_info":E(a,{sessionInfo:{session_id:n.session_id,user_id:n.user_id,user_name:n.user_name,bot_name:n.bot_name,bot_qq:n.bot_qq}});break;case"system":O(a,{id:V("sys"),type:"system",content:n.content||"",timestamp:n.timestamp||Date.now()/1e3});break;case"user_message":{const p=n.sender?.user_id,w=f==="virtual"&&u?u.userId:de.current,v=p?p.replace(/^webui_user_/,""):"",g=w?w.replace(/^webui_user_/,""):"";if(v&&g&&v===g)break;const C=U.current.get(a)||new Set,W=`user-${n.content}-${Math.floor((n.timestamp||0)*1e3)}`;if(C.has(W))break;if(C.add(W),U.current.set(a,C),C.size>100){const G=C.values().next().value;G&&C.delete(G)}O(a,{id:n.message_id||V("user"),type:"user",content:n.content||"",timestamp:n.timestamp||Date.now()/1e3,sender:n.sender});break}case"bot_message":{E(a,{isTyping:!1});const p=U.current.get(a)||new Set,w=`bot-${n.content}-${Math.floor((n.timestamp||0)*1e3)}`;if(p.has(w))break;if(p.add(w),U.current.set(a,p),p.size>100){const v=p.values().next().value;v&&p.delete(v)}c(v=>v.map(g=>{if(g.id!==a)return g;const C={id:V("bot"),type:"bot",content:n.content||"",message_type:n.message_type==="rich"?"rich":"text",segments:n.segments,timestamp:n.timestamp||Date.now()/1e3,sender:n.sender};return{...g,messages:[...g.messages,C]}}));break}case"typing":E(a,{isTyping:n.is_typing||!1});break;case"error":c(p=>p.map(w=>w.id!==a?w:{...w,messages:[...w.messages,{id:V("error"),type:"error",content:n.content||s("chat.message.errorFallback"),timestamp:n.timestamp||Date.now()/1e3}]})),T({title:s("chat.toast.error"),description:n.content,variant:"destructive"});break;case"history":{const p=n.messages||[],w=new Set,v=p.map(g=>{const C=g.is_bot||!1,W=g.id||V(C?"bot":"user"),G=`${C?"bot":"user"}-${g.content}-${Math.floor(g.timestamp*1e3)}`;w.add(G);const je=g.message_type==="rich"&&Array.isArray(g.segments)&&g.segments.length>0;return{id:W,type:C?"bot":"user",content:g.content,timestamp:g.timestamp,message_type:je?"rich":"text",segments:je?g.segments??void 0:void 0,sender:{name:g.sender_name||s(C?"chat.botNameFallback":"chat.userFallback"),user_id:g.sender_id,is_bot:C}}});U.current.set(a,w),E(a,{messages:v}),N(!1);break}}},[O,s,T,E]),fe=m.useCallback((a,f,u)=>{if(A.current.has(a))return;const n=I.onSessionMessage(a,p=>{pe(a,f,u,p)});A.current.set(a,n)},[pe]),xe=m.useCallback(async(a,f,u)=>{fe(a,f,u),N(!0);try{f==="virtual"&&u?await I.openSession(a,{user_id:u.userId,user_name:u.userName,platform:u.platform,person_id:u.personId,group_name:u.groupName||s("chat.virtualGroupFallback"),group_id:u.groupId}):await I.openSession(a,{user_id:de.current,user_name:x}),E(a,{isConnected:!0})}catch(n){console.error(`[Tab ${a}] 打开聊天会话失败:`,n),N(!1),T({title:s("chat.toast.connectionFailed"),description:s("chat.toast.sessionUnavailable"),variant:"destructive"})}},[fe,s,T,E,x]),K=m.useRef(!1);m.useEffect(()=>{K.current=!1;const a=A.current,f=me,u=I.onConnectionChange(p=>{K.current||c(w=>w.map(v=>({...v,isConnected:p})))}),n=I.onStatusChange(p=>{K.current||y(p==="connecting")});return o.forEach(p=>{U.current.set(p.id,new Set),xe(p.id,p.type,p.virtualConfig)}),()=>{K.current=!0,u(),n(),a.forEach(p=>{p()}),a.clear(),f.current.forEach(p=>{I.closeSession(p.id)})}},[]);const Fe=m.useCallback(async()=>{if(!k.trim()||!i?.isConnected)return;const a=i?.type==="virtual"&&i.virtualConfig?.userName||x,f=k.trim(),u=Date.now()/1e3,n=U.current.get(h)||new Set,p=`user-${f}-${Math.floor(u*1e3)}`;if(n.add(p),U.current.set(h,n),n.size>100){const v=n.values().next().value;v&&n.delete(v)}const w={id:V("user"),type:"user",content:f,timestamp:u,sender:{name:a,is_bot:!1}};O(h,w),_("");try{await I.sendMessage(h,f,a)}catch(v){console.error("发送聊天消息失败:",v),c(g=>g.map(C=>C.id!==h?C:{...C,isTyping:!1})),T({title:s("chat.toast.sendFailed"),description:s("chat.toast.currentSessionUnavailable"),variant:"destructive"})}},[i,h,O,k,s,T,x]),Le=m.useCallback(a=>{const f=a.trim()||s("chat.userNameFallback");H(f),Ps(f),i?.isConnected&&I.updateNickname(h,f)},[i?.isConnected,h,s]),Ae=()=>{I.restart()},ge=()=>{Z({platform:"",personId:"",userId:"",userName:"",groupName:"",groupId:""}),ce(""),Ve(),D(!0)},Oe=()=>{if(!S.platform||!S.personId){T({title:s("chat.toast.incompleteConfig"),description:s("chat.toast.selectPlatformAndUser"),variant:"destructive"});return}const a=`webui_virtual_group_${S.platform}_${S.userId}`,f=`virtual-${S.platform}-${S.userId}-${Date.now()}`,u=S.userName||S.userId,n={id:f,type:"virtual",label:u,virtualConfig:{...S,groupId:a},messages:[],isConnected:!1,isTyping:!1,sessionInfo:{}};c(p=>{const w=[...p,n],v=w.filter(g=>g.type==="virtual"&&g.virtualConfig).map(g=>({id:g.id,label:g.label,virtualConfig:g.virtualConfig,createdAt:Date.now()}));return ke(v),w}),b(f),D(!1),U.current.set(f,new Set),xe(f,"virtual",{...S,groupId:a}),T({title:s("chat.toast.virtualTabCreated"),description:s("chat.toast.virtualTabCreatedDesc",{label:u})})},be=(a,f)=>{if(f?.stopPropagation(),a==="webui-default")return;const u=A.current.get(a);u&&(u(),A.current.delete(a)),I.closeSession(a),U.current.delete(a),c(n=>{const p=n.filter(v=>v.id!==a),w=p.filter(v=>v.type==="virtual"&&v.virtualConfig).map(v=>({id:v.id,label:v.label,virtualConfig:v.virtualConfig,createdAt:Date.now()}));return ke(w),p}),h===a&&b("webui-default")},ve=a=>{b(a)},Be=a=>{Z(f=>({...f,personId:a.person_id,userId:a.user_id,userName:a.nickname||a.person_name}))},we=i?.sessionInfo.bot_name||s("chat.botNameFallback");return e.jsxs("div",{className:"bg-background flex h-full min-h-0",children:[e.jsx(Es,{open:z,onOpenChange:D,platforms:X,persons:De,isLoadingPlatforms:$e,isLoadingPersons:ze,personSearchQuery:Y,setPersonSearchQuery:ce,tempVirtualConfig:S,setTempVirtualConfig:Z,onSelectPerson:Be,onCreateVirtualTab:Oe}),e.jsx(js,{className:"hidden md:flex",tabs:o,activeTabId:h,userName:x,onSwitch:ve,onClose:be,onAddVirtual:ge,onUpdateUserName:Le}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[e.jsx("div",{className:"md:hidden",children:e.jsx(bs,{tabs:o,activeTabId:h,onSwitch:ve,onClose:be,onAddVirtual:ge})}),e.jsx(gs,{activeTab:i,botDisplayName:we,isConnecting:P,isLoadingHistory:d,onReconnect:Ae}),e.jsx(Ms,{messages:i?.messages??[],isLoadingHistory:d,botDisplayName:we,botQq:i?.sessionInfo.bot_qq,userName:x,language:t.language}),e.jsx(xs,{value:k,onChange:_,onSend:()=>{Fe()},disabled:!i?.isConnected||!k.trim(),isConnected:!!i?.isConnected})]})]})}export{qs as ChatPage}; diff --git a/dashboard/dist/assets/index-BpTcuomx.js b/dashboard/dist/assets/index-BpTcuomx.js new file mode 100644 index 00000000..2c76f516 --- /dev/null +++ b/dashboard/dist/assets/index-BpTcuomx.js @@ -0,0 +1 @@ +import{r as h,j as e,i as he}from"./router-zNjPR4CY.js";import{B as F}from"./badge-CDs67obV.js";import{D as De,i as $e,j as Ee,k as Ge,l as Ve,T as ve,O as je,P as W,a3 as Ue,B as R,C as U,b as ae,d as ie,e as re,f as ne,an as Me,E as Oe,S as Fe,I as Ae}from"./index-CuOHsLf7.js";import{C as pe}from"./checkbox-DWiVrbnx.js";import{P as Ne}from"./progress-C6-hh8fF.js";import{S as ge,a as we,b as be,c as Ce,d as b}from"./select-DGqIoF9r.js";import{R as Be,u as ze,a as We}from"./restart-overlay-B44c6hlE.js";import{c as He,a as Ye,g as Xe,f as Ze,i as ue,u as qe,b as Je,d as Ke,r as Pe,e as Qe}from"./plugin-stats-Bq_VsOhk.js";import{g as Y,c as X,a as Z}from"./installed-CHw5f9lL.js";import{aH as le,aX as es,R as ss,v as ts,L as ce,e as ye,W as oe,aY as as,aZ as is,ai as rs,T as te,S as ns}from"./icons-DTcdLw9j.js";import"./utils-DjBw3JGv.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./system-api-DeeJapvB.js";import"./unified-ws-CBnrIqHW.js";function ls({open:r,plugin:d,onOpenChange:v,onInstall:S}){const[i,f]=h.useState("main"),[I,g]=h.useState(""),[w,k]=h.useState("preset"),[_,j]=h.useState(!1),T=()=>{const u=w==="custom"?I:i;!u||u.trim()===""||(S(u),v(!1))};return e.jsx(De,{open:r,onOpenChange:v,children:e.jsxs($e,{children:[e.jsxs(Ee,{children:[e.jsx(Ge,{children:"安装插件"}),e.jsxs(Ve,{children:["安装 ",d?.manifest.name]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"text-sm text-muted-foreground",children:["版本: ",d?.manifest.version]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["作者:"," ",typeof d?.manifest.author=="string"?d.manifest.author:d?.manifest.author?.name]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(pe,{id:"advanced-options",checked:_,onCheckedChange:u=>j(u)}),e.jsx("label",{htmlFor:"advanced-options",className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:"高级选项"})]}),_&&e.jsx("div",{className:"space-y-4 p-4 border rounded-lg",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:"分支选择"}),e.jsxs(ve,{value:w,onValueChange:u=>k(u),children:[e.jsxs(je,{className:"grid w-full grid-cols-2",children:[e.jsx(W,{value:"preset",className:"text-xs",children:"预设分支"}),e.jsx(W,{value:"custom",className:"text-xs",children:"自定义分支"})]}),w==="preset"&&e.jsx("div",{className:"mt-3",children:e.jsxs(ge,{value:i,onValueChange:f,children:[e.jsx(we,{children:e.jsx(be,{placeholder:"选择分支"})}),e.jsxs(Ce,{children:[e.jsx(b,{value:"main",children:"main (默认)"}),e.jsx(b,{value:"master",children:"master"}),e.jsx(b,{value:"dev",children:"dev (开发版)"}),e.jsx(b,{value:"develop",children:"develop"}),e.jsx(b,{value:"beta",children:"beta (测试版)"}),e.jsx(b,{value:"stable",children:"stable (稳定版)"})]})]})}),w==="custom"&&e.jsxs("div",{className:"space-y-2 mt-3",children:[e.jsx("input",{type:"text",className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",placeholder:"输入分支名称,例如: feature/new-feature",value:I,onChange:u=>g(u.target.value)}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"输入 Git 分支名称、标签或提交哈希"})]})]})]})}),!_&&e.jsx("p",{className:"text-sm text-muted-foreground",children:"将从默认分支 (main) 安装插件"})]}),e.jsxs(Ue,{children:[e.jsx(R,{variant:"outline",onClick:()=>v(!1),children:"取消"}),e.jsxs(R,{onClick:T,children:[e.jsx(le,{className:"h-4 w-4 mr-2"}),"安装"]})]})]})})}const cs={"Group Management":"群组管理","Entertainment & Interaction":"娱乐互动","Utility Tools":"实用工具","Content Generation":"内容生成",Multimedia:"多媒体","External Integration":"外部集成","Data Analysis & Insights":"数据分析与洞察",Other:"其他"};function de({plugin:r,gitStatus:d,maimaiVersion:v,pluginStats:S,loadProgress:i,onInstall:f,onUpdate:I,onUninstall:g,checkPluginCompatibility:w,needsUpdate:k,getStatusBadge:_,getIncompatibleReason:j}){const T=he();return e.jsxs(U,{className:"flex flex-col hover:shadow-lg transition-shadow h-full",children:[e.jsxs(ae,{className:"p-5 pb-3",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsx(ie,{className:"text-lg leading-snug",children:r.manifest?.name||r.id}),e.jsxs("div",{className:"flex flex-col items-end gap-1 shrink-0",children:[r.manifest?.categories&&r.manifest.categories[0]&&e.jsx(F,{variant:"secondary",className:"text-xs whitespace-nowrap",children:cs[r.manifest.categories[0]]||r.manifest.categories[0]}),_(r)]})]}),e.jsx(re,{className:"line-clamp-2 text-sm leading-snug",children:r.manifest?.description||"无描述"})]}),e.jsx(ne,{className:"px-5 pb-3",children:e.jsxs("div",{className:"space-y-2.5",children:[e.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(le,{className:"h-3.5 w-3.5"}),e.jsx("span",{children:(S[r.id]?.downloads??r.downloads??0).toLocaleString()})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(es,{className:"h-3.5 w-3.5 fill-yellow-400 text-yellow-400"}),e.jsx("span",{children:(S[r.id]?.rating??r.rating??0).toFixed(1)})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[r.manifest?.keywords&&r.manifest.keywords.slice(0,3).map(u=>e.jsx(F,{variant:"outline",className:"text-xs",children:u},u)),r.manifest?.keywords&&r.manifest.keywords.length>3&&e.jsxs(F,{variant:"outline",className:"text-xs",children:["+",r.manifest.keywords.length-3]})]}),e.jsxs("div",{className:"text-xs text-muted-foreground pt-2.5 border-t space-y-1",children:[e.jsxs("div",{children:["v",r.manifest?.version||"unknown"," · ",r.manifest?.author?.name||"Unknown"]}),r.manifest?.host_application&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{children:"支持:"}),e.jsxs("span",{className:"font-medium",children:[r.manifest.host_application.min_version,r.manifest.host_application.max_version?` - ${r.manifest.host_application.max_version}`:" - 最新版本"]})]})]})]})}),e.jsx(Me,{className:"px-5 pt-2 pb-5",children:e.jsxs("div",{className:"flex items-center justify-end gap-2 w-full",children:[e.jsx(R,{variant:"outline",size:"sm",onClick:()=>T({to:"/plugin-detail",search:{pluginId:r.id}}),children:"查看详情"}),r.installed?k(r)?e.jsxs(R,{size:"sm",disabled:!d?.installed||v!==null&&!w(r),title:d?.installed?v!==null&&!w(r)?j(r)??"插件与当前麦麦版本不兼容":void 0:"Git 未安装",onClick:()=>I(r),children:[e.jsx(ss,{className:"h-4 w-4 mr-1"}),"更新"]}):e.jsxs(R,{variant:"destructive",size:"sm",disabled:!d?.installed,title:d?.installed?void 0:"Git 未安装",onClick:()=>g(r),children:[e.jsx(ts,{className:"h-4 w-4 mr-1"}),"卸载"]}):e.jsxs(R,{size:"sm",disabled:!d?.installed||i?.operation==="install"||v!==null&&!w(r),title:d?.installed?v!==null&&!w(r)?j(r)??"插件与当前麦麦版本不兼容":void 0:"Git 未安装",onClick:()=>f(r),children:[e.jsx(le,{className:"h-4 w-4 mr-1"}),i?.operation==="install"&&i?.plugin_id===r.id?"安装中...":"安装"]})]})}),i&&(i.stage==="loading"||i.stage==="success"||i.stage==="error")&&i.operation!=="fetch"&&i.plugin_id===r.id&&e.jsx("div",{className:"px-5 pb-5 -mt-1",children:e.jsxs("div",{className:`space-y-2 p-3 rounded-lg border ${i.stage==="success"?"bg-green-50 dark:bg-green-950/20 border-green-200 dark:border-green-900":i.stage==="error"?"bg-red-50 dark:bg-red-950/20 border-red-200 dark:border-red-900":"bg-muted/50"}`,children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[i.stage==="loading"?e.jsx(ce,{className:"h-3 w-3 animate-spin"}):i.stage==="success"?e.jsx(ye,{className:"h-3 w-3 text-green-600"}):e.jsx(oe,{className:"h-3 w-3 text-red-600"}),e.jsx("span",{className:`text-xs font-medium ${i.stage==="success"?"text-green-700 dark:text-green-300":i.stage==="error"?"text-red-700 dark:text-red-300":""}`,children:i.stage==="loading"?e.jsxs(e.Fragment,{children:[i.operation==="install"&&"正在安装",i.operation==="uninstall"&&"正在卸载",i.operation==="update"&&"正在更新"]}):i.stage==="success"?e.jsxs(e.Fragment,{children:[i.operation==="install"&&"安装完成",i.operation==="uninstall"&&"卸载完成",i.operation==="update"&&"更新完成"]}):e.jsxs(e.Fragment,{children:[i.operation==="install"&&"安装失败",i.operation==="uninstall"&&"卸载失败",i.operation==="update"&&"更新失败"]})})]}),i.stage!=="error"&&e.jsxs("span",{className:`text-xs font-medium ${i.stage==="success"?"text-green-700 dark:text-green-300":""}`,children:[i.progress,"%"]})]}),i.stage!=="error"&&e.jsx(Ne,{value:i.progress,className:`h-1.5 ${i.stage==="success"?"[&>div]:bg-green-500":""}`}),e.jsx("div",{className:`text-xs ${i.stage==="success"?"text-green-600 dark:text-green-400 truncate":i.stage==="error"?"text-red-600 dark:text-red-400":"text-muted-foreground truncate"}`,children:i.stage==="error"?i.error||i.message||"操作失败":i.message})]})})]},r.id)}function os({plugins:r,searchQuery:d,categoryFilter:v,showCompatibleOnly:S,gitStatus:i,maimaiVersion:f,pluginStats:I,loadProgress:g,onInstall:w,onUpdate:k,onUninstall:_,checkPluginCompatibility:j,needsUpdate:T,getStatusBadge:u,getIncompatibleReason:$}){const A=r.filter(l=>{if(!l.manifest||!l.installed)return!1;const M=d===""||l.manifest.name?.toLowerCase().includes(d.toLowerCase())||l.manifest.description?.toLowerCase().includes(d.toLowerCase())||l.manifest.keywords&&l.manifest.keywords.some(O=>O.toLowerCase().includes(d.toLowerCase())),G=v==="all"||l.manifest.categories&&l.manifest.categories.includes(v),C=!S||!f||j(l);return M&&G&&C});return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 gap-5",children:A.map(l=>e.jsx(de,{plugin:l,gitStatus:i,maimaiVersion:f,pluginStats:I,loadProgress:g,onInstall:w,onUpdate:k,onUninstall:_,checkPluginCompatibility:j,needsUpdate:T,getStatusBadge:u,getIncompatibleReason:$},l.id))})}function ds({plugins:r,searchQuery:d,categoryFilter:v,showCompatibleOnly:S,gitStatus:i,maimaiVersion:f,pluginStats:I,loadProgress:g,onInstall:w,onUpdate:k,onUninstall:_,checkPluginCompatibility:j,needsUpdate:T,getStatusBadge:u,getIncompatibleReason:$}){const A=r.filter(l=>{if(!l.manifest)return console.warn("[过滤] 跳过无 manifest 的插件:",l.id),!1;if(l.source==="local")return!1;const M=d===""||l.manifest.name?.toLowerCase().includes(d.toLowerCase())||l.manifest.description?.toLowerCase().includes(d.toLowerCase())||l.manifest.keywords&&l.manifest.keywords.some(O=>O.toLowerCase().includes(d.toLowerCase())),G=v==="all"||l.manifest.categories&&l.manifest.categories.includes(v),C=!S||!f||j(l);return M&&G&&C});return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 gap-5",children:A.map(l=>e.jsx(de,{plugin:l,gitStatus:i,maimaiVersion:f,pluginStats:I,loadProgress:g,onInstall:w,onUpdate:k,onUninstall:_,checkPluginCompatibility:j,needsUpdate:T,getStatusBadge:u,getIncompatibleReason:$},l.id))})}function Ss(){return e.jsx(Be,{children:e.jsx(ms,{})})}function ms(){const r=he(),{triggerRestart:d,isRestarting:v}=ze(),[S,i]=h.useState(()=>localStorage.getItem("plugins-restart-notice-dismissed")!=="true"),[f,I]=h.useState(""),[g,w]=h.useState("all"),[k,_]=h.useState("all"),[j,T]=h.useState(!0),[u,$]=h.useState([]),[A,l]=h.useState(!0),[M,G]=h.useState(null),[C,O]=h.useState(null),[p,me]=h.useState(null),[N,ke]=h.useState(null),[,H]=h.useState([]),[q,_e]=h.useState({}),[Se,J]=h.useState(!1),[E,xe]=h.useState(null),{toast:m}=Oe(),Ie=()=>{localStorage.setItem("plugins-restart-notice-dismissed","true"),i(!1)},Le=async s=>{const t=s.map(async o=>{try{const n=await Qe(o.id);return{id:o.id,stats:n}}catch(n){return console.warn(`Failed to load stats for ${o.id}:`,n),{id:o.id,stats:null}}}),c=await Promise.all(t),a={};c.forEach(({id:o,stats:n})=>{n&&(a[o]=n)}),_e(a)};h.useEffect(()=>{let s=null,t=!1;return(async()=>{if(s=await He(a=>{t||(me(a),a.stage==="success"?setTimeout(()=>{t||me(null)},2e3):a.stage==="error"&&(l(!1),G(a.error||"加载失败")))},a=>{console.error("WebSocket error:",a),t||m({title:"WebSocket 连接失败",description:"无法实时显示加载进度",variant:"destructive"})}),!t){const a=await Ye();a.success?(O(a.data),a.data.installed||m({title:"Git 未安装",description:a.data.error||"请先安装 Git 才能使用插件安装功能",variant:"destructive"})):(m({title:"Git 状态检查失败",description:a.error,variant:"destructive"}),O({installed:!1,error:a.error}))}if(!t){const a=await Xe();a.success?ke(a.data):m({title:"版本获取失败",description:a.error,variant:"destructive"})}if(!t)try{l(!0),G(null);const a=await Ze();if(!a.success){t||(G(a.error),m({title:"加载失败",description:a.error,variant:"destructive"}));return}const o=a.data;if(!t){const n=await Y();if(!n.success){m({title:"获取已安装插件失败",description:n.error,variant:"destructive"});return}const y=n.data;H(y);const L=o.map(x=>{const fe=X(x.id,y),V=Z(x.id,y);return{...x,installed:fe,installed_version:V}});for(const x of y)if(!L.some(V=>V.id===x.id)&&x.manifest){const V=x.manifest.urls;L.push({id:x.id,manifest:{manifest_version:x.manifest.manifest_version||1,id:x.manifest.id||x.id,name:x.manifest.name,version:x.manifest.version,description:x.manifest.description||"",author:x.manifest.author,license:x.manifest.license||"Unknown",host_application:x.manifest.host_application,homepage_url:x.manifest.homepage_url||V?.homepage,repository_url:x.manifest.repository_url||V?.repository,urls:V,keywords:x.manifest.keywords||[],categories:x.manifest.categories||[],default_locale:x.manifest.default_locale||"zh-CN",locales_path:x.manifest.locales_path},downloads:0,rating:0,review_count:0,installed:!0,installed_version:x.manifest.version,source:"local",published_at:new Date().toISOString(),updated_at:new Date().toISOString()})}$(L),Le(L)}}finally{t||l(!1)}})(),()=>{t=!0,s&&s()}},[m]);const K=s=>{if(N&&!D(s))return e.jsxs(F,{variant:"destructive",className:"gap-1",children:[e.jsx(oe,{className:"h-3 w-3"}),"不兼容"]});if(s.installed){const t=s.installed_version?.trim(),c=s.manifest.version?.trim();if(t!==c){const a=t?.split(".").map(Number)||[0,0,0],o=c?.split(".").map(Number)||[0,0,0];for(let n=0;n<3;n++){if((o[n]||0)>(a[n]||0))return e.jsxs(F,{variant:"outline",className:"gap-1 text-orange-600 border-orange-600",children:[e.jsx(oe,{className:"h-3 w-3"}),"可更新"]});if((o[n]||0)<(a[n]||0))break}}return e.jsxs(F,{variant:"default",className:"gap-1",children:[e.jsx(ye,{className:"h-3 w-3"}),"已安装"]})}return null},D=s=>N?(s.manifest?.manifest_version??1)<=1&&N.version_major>=1?!1:s.manifest?.host_application?ue(s.manifest.host_application.min_version,s.manifest.host_application.max_version,N):!0:!0,B=s=>{if(!N)return null;const t=s.manifest?.manifest_version??1;if(t<=1&&N.version_major>=1)return`该插件使用旧版 manifest (v${t}),已不被麦麦 ${N.version} 支持`;if(s.manifest?.host_application&&!ue(s.manifest.host_application.min_version,s.manifest.host_application.max_version,N)){const c=s.manifest.host_application.min_version||"未知",a=s.manifest.host_application.max_version;return`不兼容当前版本 (需要 ${a?`${c} - ${a}`:`${c}+`},当前 ${N.version})`}return null},z=s=>{if(!s.installed||!s.installed_version||!s.manifest?.version||!D(s))return!1;const t=s.installed_version.trim(),c=s.manifest.version.trim();if(t===c)return!1;const a=t.split(".").map(Number),o=c.split(".").map(Number);for(let n=0;n<3;n++){if((o[n]||0)>(a[n]||0))return!0;if((o[n]||0)<(a[n]||0))return!1}return!1},P=s=>{if(!C?.installed){m({title:"无法安装",description:"Git 未安装",variant:"destructive"});return}if(N&&!D(s)){m({title:"无法安装",description:B(s)??"插件与当前麦麦版本不兼容",variant:"destructive"});return}xe(s),J(!0)},Re=async s=>{if(E){if(!s||s.trim()===""){m({title:"分支名称不能为空",variant:"destructive"});return}try{J(!1);const t=await Ke(E.id,E.manifest.repository_url||E.manifest.urls?.repository||"",s);if(!t.success){m({title:"安装失败",description:t.error,variant:"destructive"});return}Pe(E.id).catch(o=>{console.warn("Failed to record download:",o)}),m({title:"安装成功",description:`${E.manifest.name} 已成功安装`});const c=await Y();if(!c.success){m({title:"获取已安装插件失败",description:c.error,variant:"destructive"});return}const a=c.data;H(a),$(o=>o.map(n=>{if(n.id===E.id){const y=X(n.id,a),L=Z(n.id,a);return{...n,installed:y,installed_version:L}}return n}))}catch(t){m({title:"安装失败",description:t instanceof Error?t.message:"未知错误",variant:"destructive"})}finally{xe(null)}}},Q=async s=>{try{const t=await qe(s.id);if(!t.success){m({title:"卸载失败",description:t.error,variant:"destructive"});return}m({title:"卸载成功",description:`${s.manifest.name} 已成功卸载`});const c=await Y();if(!c.success){m({title:"获取已安装插件失败",description:c.error,variant:"destructive"});return}const a=c.data;H(a),$(o=>o.map(n=>{if(n.id===s.id){const y=X(n.id,a),L=Z(n.id,a);return{...n,installed:y,installed_version:L}}return n}))}catch(t){m({title:"卸载失败",description:t instanceof Error?t.message:"未知错误",variant:"destructive"})}},ee=async s=>{if(!C?.installed){m({title:"无法更新",description:"Git 未安装",variant:"destructive"});return}if(N&&!D(s)){m({title:"无法更新",description:B(s)??"插件与当前麦麦版本不兼容",variant:"destructive"});return}try{const t=await Je(s.id,s.manifest.repository_url||s.manifest.urls?.repository||"","main");if(!t.success){m({title:"更新失败",description:t.error,variant:"destructive"});return}m({title:"更新成功",description:`${s.manifest.name} 已从 ${t.data.old_version} 更新到 ${t.data.new_version}`});const c=await Y();if(!c.success){m({title:"获取已安装插件失败",description:c.error,variant:"destructive"});return}const a=c.data;H(a),$(o=>o.map(n=>{if(n.id===s.id){const y=X(n.id,a),L=Z(n.id,a);return{...n,installed:y,installed_version:L}}return n}))}catch(t){m({title:"更新失败",description:t instanceof Error?t.message:"未知错误",variant:"destructive"})}},se=s=>u.filter(t=>{if(!t.manifest||s==="all"&&t.source==="local")return!1;const c=f===""||t.manifest.name?.toLowerCase().includes(f.toLowerCase())||t.manifest.description?.toLowerCase().includes(f.toLowerCase())||t.manifest.keywords&&t.manifest.keywords.some(y=>y.toLowerCase().includes(f.toLowerCase())),a=g==="all"||t.manifest.categories&&t.manifest.categories.includes(g),o=!j||!N||D(t);let n=!0;return s==="installed"?n=t.installed===!0:s==="updates"&&(n=t.installed===!0&&z(t)),c&&a&&o&&n}).length,Te=u.filter(s=>{if(!s.manifest)return!1;const t=f===""||s.manifest.name?.toLowerCase().includes(f.toLowerCase())||s.manifest.description?.toLowerCase().includes(f.toLowerCase())||s.manifest.keywords&&s.manifest.keywords.some(o=>o.toLowerCase().includes(f.toLowerCase())),c=g==="all"||s.manifest.categories&&s.manifest.categories.includes(g),a=!j||!N||D(s);return s.installed&&z(s)&&t&&c&&a});return e.jsx(Fe,{className:"h-full",children:e.jsxs("div",{className:"space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl sm:text-3xl font-bold",children:"插件市场"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"浏览和管理麦麦的插件"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(R,{variant:"outline",onClick:()=>d(),disabled:v,children:[e.jsx(as,{className:`h-4 w-4 mr-2 ${v?"animate-spin":""}`}),"重启麦麦"]}),e.jsxs(R,{onClick:()=>r({to:"/plugin-mirrors"}),children:[e.jsx(is,{className:"h-4 w-4 mr-2"}),"配置镜像源"]})]})]}),S&&e.jsx(U,{className:"border-blue-200 bg-blue-50 dark:bg-blue-950/20 dark:border-blue-900",children:e.jsx(ne,{className:"py-3",children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(rs,{className:"h-4 w-4 text-blue-600 flex-shrink-0"}),e.jsxs("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:["安装、卸载或更新插件后,部分插件需要",e.jsx("span",{className:"font-semibold",children:"重启麦麦"}),"才能生效"]})]}),e.jsx(R,{type:"button",variant:"outline",size:"sm",onClick:Ie,children:"我知道了"})]})})}),C&&!C.installed&&e.jsxs(U,{className:"border-orange-600 bg-orange-50 dark:bg-orange-950/20",children:[e.jsx(ae,{children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(te,{className:"h-5 w-5 text-orange-600"}),e.jsxs("div",{children:[e.jsx(ie,{className:"text-lg text-orange-900 dark:text-orange-100",children:"Git 未安装"}),e.jsx(re,{className:"text-orange-800 dark:text-orange-200",children:C.error||"请先安装 Git 才能使用插件安装功能"})]})]})}),e.jsx(ne,{children:e.jsxs("p",{className:"text-sm text-orange-800 dark:text-orange-200",children:["您可以从"," ",e.jsx("a",{href:"https://git-scm.com/downloads",target:"_blank",rel:"noopener noreferrer",className:"underline font-medium",children:"git-scm.com"})," ","下载并安装 Git。安装完成后,请重启麦麦应用。"]})})]}),e.jsx(U,{className:"p-4",children:e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsxs("div",{className:"flex-1 relative",children:[e.jsx(ns,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(Ae,{placeholder:"搜索插件...",value:f,onChange:s=>I(s.target.value),className:"pl-9"})]}),e.jsxs(ge,{value:g,onValueChange:w,children:[e.jsx(we,{className:"w-full sm:w-[200px]",children:e.jsx(be,{placeholder:"选择分类"})}),e.jsxs(Ce,{children:[e.jsx(b,{value:"all",children:"全部分类"}),e.jsx(b,{value:"Group Management",children:"群组管理"}),e.jsx(b,{value:"Entertainment & Interaction",children:"娱乐互动"}),e.jsx(b,{value:"Utility Tools",children:"实用工具"}),e.jsx(b,{value:"Content Generation",children:"内容生成"}),e.jsx(b,{value:"Multimedia",children:"多媒体"}),e.jsx(b,{value:"External Integration",children:"外部集成"}),e.jsx(b,{value:"Data Analysis & Insights",children:"数据分析与洞察"}),e.jsx(b,{value:"Other",children:"其他"})]})]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(pe,{id:"compatible-only",checked:j,onCheckedChange:s=>T(s===!0)}),e.jsx("label",{htmlFor:"compatible-only",className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer",children:"只显示兼容当前版本的插件"})]})]})}),e.jsx(ve,{value:k,onValueChange:_,className:"w-full",children:e.jsxs(je,{className:"grid w-full grid-cols-3",children:[e.jsxs(W,{value:"all",children:["全部插件 (",se("all"),")"]}),e.jsxs(W,{value:"installed",children:["已安装 (",se("installed"),")"]}),e.jsxs(W,{value:"updates",children:["可更新 (",se("updates"),")"]})]})}),p&&p.stage==="loading"&&p.operation==="fetch"&&e.jsx(U,{className:"p-4",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ce,{className:"h-4 w-4 animate-spin"}),e.jsx("span",{className:"text-sm font-medium",children:"加载插件列表"})]}),e.jsxs("span",{className:"text-sm font-medium",children:[p.progress,"%"]})]}),e.jsx(Ne,{value:p.progress,className:"h-2"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:p.message}),p.total_plugins>0&&e.jsxs("div",{className:"text-xs text-muted-foreground text-center",children:["已加载 ",p.loaded_plugins," / ",p.total_plugins," 个插件"]})]})}),p&&p.stage==="error"&&p.error&&e.jsx(U,{className:"border-destructive bg-destructive/10",children:e.jsx(ae,{children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(te,{className:"h-5 w-5 text-destructive"}),e.jsxs("div",{children:[e.jsx(ie,{className:"text-lg text-destructive",children:"加载失败"}),e.jsx(re,{className:"text-destructive/80",children:p.error})]})]})})}),A?e.jsxs("div",{className:"flex items-center justify-center py-12",children:[e.jsx(ce,{className:"h-8 w-8 animate-spin text-muted-foreground"}),e.jsx("span",{className:"ml-3 text-muted-foreground",children:"加载插件列表中..."})]}):M?e.jsx(U,{className:"p-6",children:e.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[e.jsx(te,{className:"h-12 w-12 text-destructive mb-4"}),e.jsx("h3",{className:"text-lg font-semibold mb-2",children:"加载失败"}),e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:M}),e.jsx(R,{onClick:()=>window.location.reload(),children:"重新加载"})]})}):k==="all"?e.jsx(ds,{plugins:u,searchQuery:f,categoryFilter:g,showCompatibleOnly:j,gitStatus:C,maimaiVersion:N,pluginStats:q,loadProgress:p,onInstall:P,onUpdate:ee,onUninstall:Q,checkPluginCompatibility:D,needsUpdate:z,getStatusBadge:K,getIncompatibleReason:B}):k==="installed"?e.jsx(os,{plugins:u,searchQuery:f,categoryFilter:g,showCompatibleOnly:j,gitStatus:C,maimaiVersion:N,pluginStats:q,loadProgress:p,onInstall:P,onUpdate:ee,onUninstall:Q,checkPluginCompatibility:D,needsUpdate:z,getStatusBadge:K,getIncompatibleReason:B}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 gap-5",children:Te.map(s=>e.jsx(de,{plugin:s,gitStatus:C,maimaiVersion:N,pluginStats:q,loadProgress:p,onInstall:P,onUpdate:ee,onUninstall:Q,checkPluginCompatibility:D,needsUpdate:z,getStatusBadge:K,getIncompatibleReason:B},s.id))}),e.jsx(ls,{open:Se,plugin:E,onOpenChange:J,onInstall:Re}),e.jsx(We,{})]})})}export{Ss as PluginsPage}; diff --git a/dashboard/dist/assets/index-Bsbt9db6.js b/dashboard/dist/assets/index-Bsbt9db6.js new file mode 100644 index 00000000..438ea10b --- /dev/null +++ b/dashboard/dist/assets/index-Bsbt9db6.js @@ -0,0 +1,5 @@ +import{r as a,j as e}from"./router-zNjPR4CY.js";import{x as M,D as ee,i as se,j as te,k as ne,a5 as ce,L as m,E as de,l as ue,a3 as Y,B as f,I as X,S as ve,g as le,C as I,b as A,e as K,d as R,f as ge,A as Ie,n as Ae,o as Re,q as Be,r as ze,s as He,t as Ve,v as We}from"./index-CuOHsLf7.js";import{S as B,a as z,b as H,c as V,d as j}from"./select-DGqIoF9r.js";import{D as Ge,U as Ke}from"./uppy-S0BLpioz.js";import{B as T}from"./badge-CDs67obV.js";import{C as Z}from"./checkbox-DWiVrbnx.js";import{M as Xe}from"./markdown-renderer-CrKRiZ7X.js";import{T as Je}from"./textarea-8PIujbf-.js";import{as as Ce,g as je,b as fe,X as qe,e as oe,at as Ne,au as Qe,ai as Ye,av as Ze,v as be,ap as es,G as ss,y as ts,aq as ns,aw as rs,R as as}from"./icons-DTcdLw9j.js";import{S as is}from"./skeleton-CXI2IV_v.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";import"./charts-C6WIfXk3.js";import"./markdown-6e5N06bH.js";const _="/api/webui/emoji";async function ls(s){const t=new URLSearchParams;s.page&&t.append("page",s.page.toString()),s.page_size&&t.append("page_size",s.page_size.toString()),s.search&&t.append("search",s.search),s.is_registered!==void 0&&t.append("is_registered",s.is_registered.toString()),s.is_banned!==void 0&&t.append("is_banned",s.is_banned.toString()),s.format&&t.append("format",s.format),s.sort_by&&t.append("sort_by",s.sort_by),s.sort_order&&t.append("sort_order",s.sort_order);const r=await M(`${_}/list?${t}`,{});if(!r.ok)throw new Error(`获取表情包列表失败: ${r.statusText}`);return r.json()}async function os(s,t){const r=await M(`${_}/${s}`,{method:"PATCH",body:JSON.stringify(t)});if(!r.ok)throw new Error(`更新表情包失败: ${r.statusText}`);return r.json()}async function cs(s){const t=await M(`${_}/${s}`,{method:"DELETE"});if(!t.ok)throw new Error(`删除表情包失败: ${t.statusText}`);return t.json()}async function ds(){const s=await M(`${_}/stats/summary`,{});if(!s.ok)throw new Error(`获取统计数据失败: ${s.statusText}`);return s.json()}async function us(s){const t=await M(`${_}/${s}/register`,{method:"POST"});if(!t.ok)throw new Error(`注册表情包失败: ${t.statusText}`);return t.json()}async function ms(s){const t=await M(`${_}/${s}/ban`,{method:"POST"});if(!t.ok)throw new Error(`封禁表情包失败: ${t.statusText}`);return t.json()}function hs(s,t=!1){return t?`${_}/${s}/thumbnail?original=true`:`${_}/${s}/thumbnail`}function ps(s){return`${_}/${s}/thumbnail?original=true`}async function xs(s){const t=await M(`${_}/batch/delete`,{method:"POST",body:JSON.stringify({emoji_ids:s})});if(!t.ok){const r=await t.json();throw new Error(r.detail||"批量删除失败")}return t.json()}function gs(){return`${_}/upload`}const js=["defaultChecked","defaultValue","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML","accessKey","className","contentEditable","contextMenu","dir","draggable","hidden","id","lang","placeholder","slot","spellCheck","style","tabIndex","title","translate","radioGroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autoCapitalize","autoCorrect","autoSave","color","itemProp","itemScope","itemType","itemID","itemRef","results","security","unselectable","inputMode","is","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],fs=/^(aria-|data-)/,ye=s=>Object.fromEntries(Object.entries(s).filter(([t])=>fs.test(t)||js.includes(t)));function vs(s,t){const r=ye(s);return Object.keys(s).some(l=>!Object.hasOwn(r,l)&&s[l]!==t[l])}class Cs extends a.Component{container;plugin;componentDidMount(){this.installPlugin()}componentDidUpdate(t){if(t.uppy!==this.props.uppy)this.uninstallPlugin(t),this.installPlugin();else if(vs(this.props,t)){const{uppy:r,...l}={...this.props,target:this.container};this.plugin.setOptions(l)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:t,...r}={id:"Dashboard",...this.props,inline:!0,target:this.container};t.use(Ge,r),this.plugin=t.getPlugin(r.id)}uninstallPlugin(t=this.props){const{uppy:r}=t;r.removePlugin(this.plugin)}render(){return a.createElement("div",{className:"uppy-Container",ref:t=>{this.container=t},...ye(this.props)})}}function Ns({children:s,className:t}){return e.jsx(Xe,{content:s,className:t})}function bs({emoji:s,open:t,onOpenChange:r}){if(!s)return null;const l=p=>p?new Date(p*1e3).toLocaleString("zh-CN"):"-";return e.jsx(ee,{open:t,onOpenChange:r,children:e.jsxs(se,{className:"max-w-2xl max-h-[90vh]",children:[e.jsx(te,{children:e.jsx(ne,{children:"表情包详情"})}),e.jsx(ce,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"flex justify-center",children:e.jsx("div",{className:"w-32 h-32 bg-muted rounded-lg flex items-center justify-center overflow-hidden",children:e.jsx("img",{src:ps(s.id),alt:s.description||"表情包",className:"w-full h-full object-cover",onError:p=>{const c=p.target;c.style.display="none";const h=c.parentElement;h&&(h.innerHTML='')}})})}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx(m,{className:"text-muted-foreground",children:"ID"}),e.jsx("div",{className:"mt-1 font-mono",children:s.id})]}),e.jsxs("div",{children:[e.jsx(m,{className:"text-muted-foreground",children:"格式"}),e.jsx("div",{className:"mt-1",children:e.jsx(T,{variant:"outline",children:s.format.toUpperCase()})})]})]}),e.jsxs("div",{children:[e.jsx(m,{className:"text-muted-foreground",children:"文件路径"}),e.jsx("div",{className:"mt-1 font-mono text-sm break-all bg-muted p-2 rounded",children:s.full_path})]}),e.jsxs("div",{children:[e.jsx(m,{className:"text-muted-foreground",children:"哈希值"}),e.jsx("div",{className:"mt-1 font-mono text-sm break-all bg-muted p-2 rounded",children:s.emoji_hash})]}),e.jsxs("div",{children:[e.jsx(m,{className:"text-muted-foreground",children:"描述"}),s.description?e.jsx("div",{className:"mt-1 rounded-lg border bg-muted/50 p-3",children:e.jsx(Ns,{className:"prose-sm",children:s.description})}):e.jsx("div",{className:"mt-1 text-sm text-muted-foreground",children:"-"})]}),e.jsxs("div",{children:[e.jsx(m,{className:"text-muted-foreground",children:"情绪"}),e.jsx("div",{className:"mt-1",children:s.emotion?e.jsx("span",{className:"text-sm",children:s.emotion}):e.jsx("span",{className:"text-sm text-muted-foreground",children:"-"})})]}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx(m,{className:"text-muted-foreground",children:"状态"}),e.jsxs("div",{className:"mt-2 flex gap-2",children:[s.is_registered&&e.jsx(T,{variant:"default",className:"bg-green-600",children:"已注册"}),s.is_banned&&e.jsx(T,{variant:"destructive",children:"已封禁"}),!s.is_registered&&!s.is_banned&&e.jsx(T,{variant:"outline",children:"未注册"})]})]}),e.jsxs("div",{children:[e.jsx(m,{className:"text-muted-foreground",children:"使用次数"}),e.jsx("div",{className:"mt-1 font-mono text-lg",children:s.usage_count})]})]}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx(m,{className:"text-muted-foreground",children:"记录时间"}),e.jsx("div",{className:"mt-1 text-sm",children:l(s.record_time)})]}),e.jsxs("div",{children:[e.jsx(m,{className:"text-muted-foreground",children:"注册时间"}),e.jsx("div",{className:"mt-1 text-sm",children:l(s.register_time)})]})]}),e.jsxs("div",{children:[e.jsx(m,{className:"text-muted-foreground",children:"最后使用"}),e.jsx("div",{className:"mt-1 text-sm",children:l(s.last_used_time)})]})]})})]})})}function ys({emoji:s,open:t,onOpenChange:r,onSuccess:l}){const[p,c]=a.useState(""),[h,x]=a.useState(!1),[w,N]=a.useState(!1),[S,k]=a.useState(!1),{toast:b}=de();a.useEffect(()=>{s&&(c(s.emotion||""),x(s.is_registered),N(s.is_banned))},[s]);const E=async()=>{if(s)try{k(!0);const d=p.split(/[,,]/).map(D=>D.trim()).filter(Boolean).join(",");await os(s.id,{emotion:d||void 0,is_registered:h,is_banned:w}),b({title:"成功",description:"表情包信息已更新"}),r(!1),l()}catch(d){const D=d instanceof Error?d.message:"保存失败";b({title:"错误",description:D,variant:"destructive"})}finally{k(!1)}};return s?e.jsx(ee,{open:t,onOpenChange:r,children:e.jsxs(se,{className:"max-w-2xl",confirmOnEnter:!0,children:[e.jsxs(te,{children:[e.jsx(ne,{children:"编辑表情包"}),e.jsx(ue,{children:"修改表情包的情绪和状态信息"})]}),e.jsx(ce,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(m,{children:"情绪"}),e.jsx(Je,{value:p,onChange:d=>c(d.target.value),placeholder:"输入情绪描述...",rows:2,className:"mt-1"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"输入情绪相关的文本描述"})]}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Z,{id:"is_registered",checked:h,onCheckedChange:d=>{d===!0?(x(!0),N(!1)):x(!1)}}),e.jsx(m,{htmlFor:"is_registered",className:"cursor-pointer",children:"已注册"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Z,{id:"is_banned",checked:w,onCheckedChange:d=>{d===!0?(N(!0),x(!1)):N(!1)}}),e.jsx(m,{htmlFor:"is_banned",className:"cursor-pointer",children:"已封禁"})]})]})]})}),e.jsxs(Y,{children:[e.jsx(f,{variant:"outline",onClick:()=>r(!1),children:"取消"}),e.jsx(f,{"data-dialog-action":"confirm",onClick:E,disabled:S,children:S?"保存中...":"保存"})]})]})}):null}function ws({open:s,onOpenChange:t,onSuccess:r}){const[l,p]=a.useState("select"),[c,h]=a.useState([]),[x,w]=a.useState(null),[N,S]=a.useState(!1),{toast:k}=de(),b=a.useMemo(()=>new Ke({id:"emoji-uploader",autoProceed:!1,restrictions:{maxFileSize:10485760,allowedFileTypes:["image/jpeg","image/png","image/gif","image/webp"],maxNumberOfFiles:20},locale:{pluralize:()=>0,strings:{addMoreFiles:"添加更多文件",addingMoreFiles:"正在添加更多文件",allowedFileTypes:"允许的文件类型:%{types}",cancel:"取消",closeModal:"关闭",complete:"完成",connectedToInternet:"已连接到互联网",copyLink:"复制链接",copyLinkToClipboardFallback:"复制下方链接",copyLinkToClipboardSuccess:"链接已复制到剪贴板",dashboardTitle:"选择文件",dashboardWindowTitle:"文件选择窗口(按 ESC 关闭)",done:"完成",dropHereOr:"拖放文件到这里或 %{browse}",dropHint:"将文件拖放到此处",dropPasteFiles:"将文件拖放到这里或 %{browseFiles}",dropPasteFolders:"将文件拖放到这里或 %{browseFolders}",dropPasteBoth:"将文件拖放到这里,%{browseFiles} 或 %{browseFolders}",dropPasteImportFiles:"将文件拖放到这里,%{browseFiles} 或从以下位置导入:",dropPasteImportFolders:"将文件拖放到这里,%{browseFolders} 或从以下位置导入:",dropPasteImportBoth:"将文件拖放到这里,%{browseFiles},%{browseFolders} 或从以下位置导入:",editFile:"编辑文件",editing:"正在编辑 %{file}",emptyFolderAdded:"未从空文件夹添加文件",exceedsSize:"%{file} 超过了最大允许大小 %{size}",failedToUpload:"上传 %{file} 失败",fileSource:"文件来源:%{name}",filesUploadedOfTotal:{0:"已上传 %{complete} / %{smart_count} 个文件",1:"已上传 %{complete} / %{smart_count} 个文件"},filter:"筛选",finishEditingFile:"完成编辑文件",folderAdded:{0:"已从 %{folder} 添加 %{smart_count} 个文件",1:"已从 %{folder} 添加 %{smart_count} 个文件"},generatingThumbnails:"正在生成缩略图...",import:"导入",importFiles:"从以下位置导入文件:",importFrom:"从 %{name} 导入",loading:"加载中...",logOut:"登出",myDevice:"我的设备",noFilesFound:"这里没有文件或文件夹",noInternetConnection:"无网络连接",openFolderNamed:"打开文件夹 %{name}",pause:"暂停",pauseUpload:"暂停上传",paused:"已暂停",poweredBy:"技术支持:%{uppy}",processingXFiles:{0:"正在处理 %{smart_count} 个文件",1:"正在处理 %{smart_count} 个文件"},recording:"录制中",removeFile:"移除文件",resetFilter:"重置筛选",resume:"继续",resumeUpload:"继续上传",retry:"重试",retryUpload:"重试上传",save:"保存",saveChanges:"保存更改",selectFileNamed:"选择文件 %{name}",selectX:{0:"选择 %{smart_count}",1:"选择 %{smart_count}"},smile:"笑一个!",startRecording:"开始录制视频",stopRecording:"停止录制视频",takePicture:"拍照",timedOut:"上传已停滞 %{seconds} 秒,正在中止。",upload:"下一步",uploadComplete:"上传完成",uploadFailed:"上传失败",uploadPaused:"上传已暂停",uploadXFiles:{0:"下一步(%{smart_count} 个文件)",1:"下一步(%{smart_count} 个文件)"},uploadXNewFiles:{0:"下一步(+%{smart_count} 个文件)",1:"下一步(+%{smart_count} 个文件)"},uploading:"正在上传",uploadingXFiles:{0:"正在上传 %{smart_count} 个文件",1:"正在上传 %{smart_count} 个文件"},xFilesSelected:{0:"已选择 %{smart_count} 个文件",1:"已选择 %{smart_count} 个文件"},xMoreFilesAdded:{0:"又添加了 %{smart_count} 个文件",1:"又添加了 %{smart_count} 个文件"},xTimeLeft:"剩余 %{time}",youCanOnlyUploadFileTypes:"您只能上传:%{types}",youCanOnlyUploadX:{0:"您只能上传 %{smart_count} 个文件",1:"您只能上传 %{smart_count} 个文件"},youHaveToAtLeastSelectX:{0:"您至少需要选择 %{smart_count} 个文件",1:"您至少需要选择 %{smart_count} 个文件"},browseFiles:"浏览文件",browseFolders:"浏览文件夹",cancelUpload:"取消上传",addMore:"添加更多",back:"返回",editFileWithFilename:"编辑文件 %{file}"}}}),[]);a.useEffect(()=>{const o=()=>{const g=b.getFiles();if(g.length===0)return;const u=g.map(v=>({id:v.id,name:v.name,previewUrl:v.preview||URL.createObjectURL(v.data),emotion:"",description:"",isRegistered:!0,file:v.data}));h(u),g.length===1?(w(u[0].id),p("edit-single")):p("edit-multiple")};return b.on("upload",o),()=>{b.off("upload",o)}},[b]),a.useEffect(()=>{s||(b.cancelAll(),p("select"),h([]),w(null),S(!1))},[s,b]);const E=a.useCallback((o,g)=>{h(u=>u.map(v=>v.id===o?{...v,...g}:v))},[]),d=a.useCallback(o=>o.emotion.trim().length>0,[]),D=a.useMemo(()=>c.length>0&&c.every(d),[c,d]),i=a.useMemo(()=>c.find(o=>o.id===x)||null,[c,x]),C=a.useCallback(()=>{(l==="edit-single"||l==="edit-multiple")&&(p("select"),h([]),w(null))},[l]),L=a.useCallback(async()=>{if(!D){k({title:"请填写必填项",description:"每个表情包的情感标签都是必填的",variant:"destructive"});return}S(!0);let o=0,g=0;try{for(const u of c){const v=new FormData;v.append("file",u.file),v.append("emotion",u.emotion),v.append("description",u.description),v.append("is_registered",u.isRegistered.toString());try{(await M(gs(),{method:"POST",body:v})).ok?o++:g++}catch{g++}}g===0?(k({title:"上传成功",description:`成功上传 ${o} 个表情包`}),t(!1),r()):(k({title:"部分上传失败",description:`成功 ${o} 个,失败 ${g} 个`,variant:"destructive"}),r())}finally{S(!1)}},[D,c,k,t,r]),re=()=>e.jsx("div",{className:"space-y-4",children:e.jsx("div",{className:"border rounded-lg overflow-hidden w-full",children:e.jsx(Cs,{uppy:b,proudlyDisplayPoweredByUppy:!1,hideProgressDetails:!0,height:350,width:"100%",theme:"auto",note:"支持 JPG、PNG、GIF、WebP 格式,最多 20 个文件"})})}),W=()=>{const o=c[0];return o?e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs(f,{variant:"ghost",size:"sm",onClick:C,children:[e.jsx(je,{className:"h-4 w-4 mr-1"}),"返回"]}),e.jsx("span",{className:"text-sm text-muted-foreground",children:"编辑表情包信息"})]}),e.jsxs("div",{className:"flex gap-6",children:[e.jsxs("div",{className:"shrink-0",children:[e.jsx("div",{className:"w-32 h-32 rounded-lg border overflow-hidden bg-muted flex items-center justify-center",children:e.jsx("img",{src:o.previewUrl,alt:o.name,className:"max-w-full max-h-full object-contain"})}),e.jsx("p",{className:"text-xs text-muted-foreground mt-2 text-center truncate max-w-32",children:o.name})]}),e.jsxs("div",{className:"flex-1 space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs(m,{htmlFor:"single-emotion",children:["情感标签 ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(X,{id:"single-emotion",value:o.emotion,onChange:g=>E(o.id,{emotion:g.target.value}),placeholder:"多个标签用逗号分隔,如:开心,高兴",className:o.emotion.trim()?"":"border-destructive"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"用于情感匹配,多个标签用逗号分隔"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(m,{htmlFor:"single-description",children:"描述"}),e.jsx(X,{id:"single-description",value:o.description,onChange:g=>E(o.id,{description:g.target.value}),placeholder:"输入表情包描述..."})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Z,{id:"single-is-registered",checked:o.isRegistered,onCheckedChange:g=>E(o.id,{isRegistered:g===!0})}),e.jsx(m,{htmlFor:"single-is-registered",className:"cursor-pointer",children:"上传后立即注册(可被麦麦使用)"})]})]})]}),e.jsx(Y,{children:e.jsx(f,{onClick:L,disabled:!D||N,children:N?"上传中...":"上传"})})]}):null},ae=()=>{const o=c.filter(d).length,g=c.length;return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs(f,{variant:"ghost",size:"sm",onClick:C,children:[e.jsx(je,{className:"h-4 w-4 mr-1"}),"返回"]}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:["编辑表情包信息(",o,"/",g," 已完成)"]})]}),e.jsx(T,{variant:D?"default":"secondary",children:D?e.jsxs(e.Fragment,{children:[e.jsx(fe,{className:"h-3 w-3 mr-1"}),"全部完成"]}):e.jsxs(e.Fragment,{children:[e.jsx(qe,{className:"h-3 w-3 mr-1"}),"未完成"]})})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(ve,{className:"h-87.5 pr-2",children:e.jsx("div",{className:"space-y-2",children:c.map(u=>{const v=d(u),J=x===u.id;return e.jsxs("div",{onClick:()=>w(u.id),role:"button",tabIndex:0,onKeyDown:$=>{($.key==="Enter"||$.key===" ")&&($.preventDefault(),w(u.id))},className:` + flex items-center gap-3 p-3 rounded-lg border-2 cursor-pointer transition-all + ${J?"ring-2 ring-primary":""} + ${v?"border-green-500 bg-green-50 dark:bg-green-950/20":"border-border hover:border-muted-foreground/50"} + `,children:[e.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center overflow-hidden rounded border bg-muted",children:e.jsx("img",{src:u.previewUrl,alt:u.name,className:"max-w-full max-h-full object-contain"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium truncate",children:u.name}),e.jsx("p",{className:"text-xs text-muted-foreground truncate",children:u.emotion||"未填写情感标签"})]}),v?e.jsx(oe,{className:"h-5 w-5 shrink-0 text-green-500"}):e.jsx("div",{className:"h-5 w-5 shrink-0 rounded-full border-2 border-muted-foreground/30"})]},u.id)})})}),e.jsx("div",{className:"border rounded-lg p-4",children:i?e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-16 h-16 rounded border overflow-hidden bg-muted flex items-center justify-center",children:e.jsx("img",{src:i.previewUrl,alt:i.name,className:"max-w-full max-h-full object-contain"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"font-medium truncate",children:i.name}),d(i)&&e.jsxs(T,{variant:"outline",className:"text-green-600 border-green-600",children:[e.jsx(fe,{className:"h-3 w-3 mr-1"}),"已完成"]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(m,{htmlFor:"multi-emotion",children:["情感标签 ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(X,{id:"multi-emotion",value:i.emotion,onChange:u=>E(i.id,{emotion:u.target.value}),placeholder:"多个标签用逗号分隔,如:开心,高兴",className:i.emotion.trim()?"":"border-destructive"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(m,{htmlFor:"multi-description",children:"描述"}),e.jsx(X,{id:"multi-description",value:i.description,onChange:u=>E(i.id,{description:u.target.value}),placeholder:"输入表情包描述..."})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Z,{id:"multi-is-registered",checked:i.isRegistered,onCheckedChange:u=>E(i.id,{isRegistered:u===!0})}),e.jsx(m,{htmlFor:"multi-is-registered",className:"cursor-pointer text-sm",children:"上传后立即注册"})]})]}):e.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Ne,{className:"h-12 w-12 mx-auto mb-2 opacity-50"}),e.jsx("p",{children:"点击左侧卡片编辑"})]})})})]}),e.jsx(Y,{children:e.jsx(f,{onClick:L,disabled:!D||N,children:N?"上传中...":`上传全部 (${g})`})})]})};return e.jsx(ee,{open:s,onOpenChange:t,children:e.jsxs(se,{className:"max-w-3xl max-h-[90vh] overflow-hidden",confirmOnEnter:!0,children:[e.jsxs(te,{children:[e.jsxs(ne,{className:"flex items-center gap-2",children:[e.jsx(Ce,{className:"h-5 w-5"}),l==="select"&&"上传表情包 - 选择文件",l==="edit-single"&&"上传表情包 - 填写信息",l==="edit-multiple"&&"上传表情包 - 批量编辑"]}),e.jsxs(ue,{children:[l==="select"&&"支持 JPG、PNG、GIF、WebP 格式,单个文件最大 10MB,可同时上传多个文件",l==="edit-single"&&"请填写表情包的情感标签(必填)和描述",l==="edit-multiple"&&"点击左侧卡片编辑每个表情包的信息,情感标签为必填项"]})]}),e.jsxs(ce,{viewportClassName:"pr-1",children:[l==="select"&&re(),l==="edit-single"&&W(),l==="edit-multiple"&&ae()]})]})})}function Ss({src:s,alt:t="表情包",className:r,maxRetries:l=5,retryInterval:p=1500}){const[c,h]=a.useState("loading"),[x,w]=a.useState(0),[N,S]=a.useState(null),[k,b]=a.useState(s);s!==k&&(h("loading"),w(0),S(null),b(s));const E=a.useCallback(async()=>{try{const d=await fetch(s,{credentials:"include"});if(d.status===202){h("generating"),x{w(C=>C+1)},p):h("error");return}if(!d.ok){h("error");return}const D=await d.blob(),i=URL.createObjectURL(D);S(i),h("loaded")}catch(d){console.error("加载缩略图失败:",d),h("error")}},[s,x,l,p]);return a.useEffect(()=>{E()},[E]),a.useEffect(()=>()=>{N&&URL.revokeObjectURL(N)},[N]),c==="loading"||c==="generating"?e.jsx(is,{className:le("w-full h-full",r)}):c==="error"||!N?e.jsx("div",{className:le("w-full h-full flex items-center justify-center bg-muted",r),children:e.jsx(Ne,{className:"h-8 w-8 text-muted-foreground"})}):e.jsx("img",{src:N,alt:t,className:le("w-full h-full object-contain",r)})}function Ds({emojiList:s,total:t,page:r,pageSize:l,selectedIds:p,cardSize:c,jumpToPage:h,onPageChange:x,onJumpToPage:w,onJumpToPageChange:N,onToggleSelect:S,onEdit:k,onViewDetail:b,onRegister:E,onBan:d,onDelete:D}){return s.length===0?e.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"暂无数据"}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`grid gap-3 ${c==="small"?"grid-cols-3 sm:grid-cols-4 md:grid-cols-6 lg:grid-cols-8 xl:grid-cols-10":c==="medium"?"grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8":"grid-cols-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5"}`,children:s.map(i=>e.jsxs("div",{className:`group relative rounded-lg border bg-card overflow-hidden hover:ring-2 hover:ring-primary transition-all cursor-pointer ${p.has(i.id)?"ring-2 ring-primary bg-primary/5":""}`,role:"button",tabIndex:0,onClick:()=>S(i.id),onKeyDown:C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),S(i.id))},children:[e.jsx("div",{className:`absolute top-1 left-1 z-10 transition-opacity ${p.has(i.id)?"opacity-100":"opacity-0 group-hover:opacity-100"}`,children:e.jsx("div",{className:`w-5 h-5 rounded-full border-2 flex items-center justify-center ${p.has(i.id)?"bg-primary border-primary text-primary-foreground":"bg-background/80 border-muted-foreground/50"}`,children:p.has(i.id)&&e.jsx(oe,{className:"h-3 w-3"})})}),e.jsxs("div",{className:"absolute top-1 right-1 z-10 flex flex-col gap-0.5",children:[i.is_registered&&e.jsx(T,{variant:"default",className:"bg-green-600 text-[10px] px-1 py-0",children:"已注册"}),i.is_banned&&e.jsx(T,{variant:"destructive",className:"text-[10px] px-1 py-0",children:"已封禁"})]}),e.jsx("div",{className:`aspect-square bg-muted flex items-center justify-center overflow-hidden ${c==="small"?"p-1":c==="medium"?"p-2":"p-3"}`,children:e.jsx(Ss,{src:hs(i.id),alt:"表情包"})}),e.jsxs("div",{className:`border-t bg-card ${c==="small"?"p-1":"p-2"}`,children:[e.jsxs("div",{className:"flex items-center justify-between gap-1 text-xs text-muted-foreground mb-1",children:[e.jsx(T,{variant:"outline",className:"text-[10px] px-1 py-0",children:i.format.toUpperCase()}),e.jsxs("span",{className:"font-mono",children:[i.usage_count,"次"]})]}),e.jsxs("div",{className:`flex gap-1 justify-center opacity-0 group-hover:opacity-100 transition-opacity ${c==="small"?"flex-wrap":""}`,children:[e.jsx(f,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:C=>{C.stopPropagation(),k(i)},title:"编辑",children:e.jsx(Qe,{className:"h-3 w-3"})}),e.jsx(f,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:C=>{C.stopPropagation(),b(i)},title:"详情",children:e.jsx(Ye,{className:"h-3 w-3"})}),!i.is_registered&&e.jsx(f,{variant:"ghost",size:"icon",className:"h-6 w-6 text-green-600 hover:text-green-700",onClick:C=>{C.stopPropagation(),E(i)},title:"注册",children:e.jsx(oe,{className:"h-3 w-3"})}),!i.is_banned&&e.jsx(f,{variant:"ghost",size:"icon",className:"h-6 w-6 text-orange-600 hover:text-orange-700",onClick:C=>{C.stopPropagation(),d(i)},title:"封禁",children:e.jsx(Ze,{className:"h-3 w-3"})}),e.jsx(f,{variant:"ghost",size:"icon",className:"h-6 w-6 text-red-600 hover:text-red-700",onClick:C=>{C.stopPropagation(),D(i)},title:"删除",children:e.jsx(be,{className:"h-3 w-3"})})]})]})]},i.id))}),t>0&&e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 mt-4",children:[e.jsxs("div",{className:"text-sm text-muted-foreground",children:["显示 ",(r-1)*l+1," 到"," ",Math.min(r*l,t)," 条,共 ",t," 条"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(f,{variant:"outline",size:"sm",onClick:()=>x(1),disabled:r===1,className:"hidden sm:flex",children:e.jsx(es,{className:"h-4 w-4"})}),e.jsxs(f,{variant:"outline",size:"sm",onClick:()=>x(Math.max(1,r-1)),disabled:r===1,children:[e.jsx(ss,{className:"h-4 w-4 sm:mr-1"}),e.jsx("span",{className:"hidden sm:inline",children:"上一页"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(X,{type:"number",value:h,onChange:i=>N(i.target.value),onKeyDown:i=>i.key==="Enter"&&w(),placeholder:r.toString(),className:"w-16 h-8 text-center",min:1,max:Math.ceil(t/l)}),e.jsx(f,{variant:"outline",size:"sm",onClick:w,disabled:!h,className:"h-8",children:"跳转"})]}),e.jsxs(f,{variant:"outline",size:"sm",onClick:()=>x(r+1),disabled:r>=Math.ceil(t/l),children:[e.jsx("span",{className:"hidden sm:inline",children:"下一页"}),e.jsx(ts,{className:"h-4 w-4 sm:ml-1"})]}),e.jsx(f,{variant:"outline",size:"sm",onClick:()=>x(Math.ceil(t/l)),disabled:r>=Math.ceil(t/l),className:"hidden sm:flex",children:e.jsx(ns,{className:"h-4 w-4"})})]})]})]})}function zs(){const[s,t]=a.useState([]),[r,l]=a.useState(null),[p,c]=a.useState(!1),[h,x]=a.useState(1),[w,N]=a.useState(0),[S,k]=a.useState(20),[b,E]=a.useState("registered"),[d,D]=a.useState("all"),[i,C]=a.useState("all"),[L,re]=a.useState("usage_count"),[W,ae]=a.useState("desc"),[o,g]=a.useState(null),[u,v]=a.useState(!1),[J,$]=a.useState(!1),[we,q]=a.useState(!1),[O,Q]=a.useState(new Set),[Se,ie]=a.useState(!1),[me,he]=a.useState(""),[pe,De]=a.useState("medium"),[Ee,xe]=a.useState(!1),{toast:P}=de(),F=a.useCallback(async()=>{try{c(!0);const n=await ls({page:h,page_size:S,is_registered:b==="all"?void 0:b==="registered",is_banned:d==="all"?void 0:d==="banned",format:i==="all"?void 0:i,sort_by:L,sort_order:W});t(n.data),N(n.total)}catch(n){const y=n instanceof Error?n.message:"加载表情包列表失败";P({title:"错误",description:y,variant:"destructive"})}finally{c(!1)}},[h,S,b,d,i,L,W,P]),U=async()=>{try{const n=await ds();l(n.data)}catch(n){console.error("加载统计数据失败:",n)}};a.useEffect(()=>{F()},[F]),a.useEffect(()=>{U()},[]);const ke=async n=>{g(n),v(!0)},Pe=n=>{g(n),$(!0)},_e=n=>{g(n),q(!0)},Fe=async()=>{if(o)try{await cs(o.id),P({title:"成功",description:"表情包已删除"}),q(!1),g(null),F(),U()}catch(n){const y=n instanceof Error?n.message:"删除失败";P({title:"错误",description:y,variant:"destructive"})}},Te=async n=>{try{await us(n.id),P({title:"成功",description:"表情包已注册"}),F(),U()}catch(y){const G=y instanceof Error?y.message:"注册失败";P({title:"错误",description:G,variant:"destructive"})}},Me=async n=>{try{await ms(n.id),P({title:"成功",description:"表情包已封禁"}),F(),U()}catch(y){const G=y instanceof Error?y.message:"封禁失败";P({title:"错误",description:G,variant:"destructive"})}},Oe=n=>{const y=new Set(O);y.has(n)?y.delete(n):y.add(n),Q(y)},Ue=async()=>{try{const n=await xs(Array.from(O));P({title:"批量删除完成",description:n.message}),Q(new Set),ie(!1),F(),U()}catch(n){P({title:"批量删除失败",description:n instanceof Error?n.message:"批量删除失败",variant:"destructive"})}},Le=()=>{const n=parseInt(me),y=Math.ceil(w/S);n>=1&&n<=y?(x(n),he("")):P({title:"无效的页码",description:`请输入1-${y}之间的页码`,variant:"destructive"})},$e=r?.formats?Object.keys(r.formats):[];return e.jsxs("div",{className:"h-[calc(100vh-4rem)] flex flex-col p-4 sm:p-6",children:[e.jsxs("div",{className:"mb-4 sm:mb-6 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl sm:text-3xl font-bold",children:"表情包"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"管理麦麦的表情包资源"})]}),e.jsxs(f,{onClick:()=>xe(!0),className:"gap-2",children:[e.jsx(Ce,{className:"h-4 w-4"}),"上传表情包"]})]}),e.jsx(ve,{className:"flex-1",children:e.jsxs("div",{className:"space-y-4 sm:space-y-6 pr-4",children:[r&&e.jsxs("div",{className:"grid gap-4 grid-cols-2 lg:grid-cols-4",children:[e.jsx(I,{children:e.jsxs(A,{className:"pb-2",children:[e.jsx(K,{children:"总数"}),e.jsx(R,{className:"text-2xl",children:r.total})]})}),e.jsx(I,{children:e.jsxs(A,{className:"pb-2",children:[e.jsx(K,{children:"已注册"}),e.jsx(R,{className:"text-2xl text-green-600",children:r.registered})]})}),e.jsx(I,{children:e.jsxs(A,{className:"pb-2",children:[e.jsx(K,{children:"已封禁"}),e.jsx(R,{className:"text-2xl text-red-600",children:r.banned})]})}),e.jsx(I,{children:e.jsxs(A,{className:"pb-2",children:[e.jsx(K,{children:"未注册"}),e.jsx(R,{className:"text-2xl text-gray-600",children:r.unregistered})]})})]}),e.jsxs(I,{children:[e.jsx(A,{children:e.jsxs(R,{className:"flex items-center gap-2",children:[e.jsx(rs,{className:"h-5 w-5"}),"筛选和排序"]})}),e.jsxs(ge,{className:"space-y-4",children:[e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(m,{children:"排序方式"}),e.jsxs(B,{value:`${L}-${W}`,onValueChange:n=>{const[y,G]=n.split("-");re(y),ae(G),x(1)},children:[e.jsx(z,{children:e.jsx(H,{})}),e.jsxs(V,{children:[e.jsx(j,{value:"usage_count-desc",children:"使用次数 (多→少)"}),e.jsx(j,{value:"usage_count-asc",children:"使用次数 (少→多)"}),e.jsx(j,{value:"register_time-desc",children:"注册时间 (新→旧)"}),e.jsx(j,{value:"register_time-asc",children:"注册时间 (旧→新)"}),e.jsx(j,{value:"record_time-desc",children:"记录时间 (新→旧)"}),e.jsx(j,{value:"record_time-asc",children:"记录时间 (旧→新)"}),e.jsx(j,{value:"last_used_time-desc",children:"最后使用 (新→旧)"}),e.jsx(j,{value:"last_used_time-asc",children:"最后使用 (旧→新)"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(m,{children:"注册状态"}),e.jsxs(B,{value:b,onValueChange:n=>{E(n),x(1)},children:[e.jsx(z,{children:e.jsx(H,{})}),e.jsxs(V,{children:[e.jsx(j,{value:"all",children:"全部"}),e.jsx(j,{value:"registered",children:"已注册"}),e.jsx(j,{value:"unregistered",children:"未注册"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(m,{children:"封禁状态"}),e.jsxs(B,{value:d,onValueChange:n=>{D(n),x(1)},children:[e.jsx(z,{children:e.jsx(H,{})}),e.jsxs(V,{children:[e.jsx(j,{value:"all",children:"全部"}),e.jsx(j,{value:"banned",children:"已封禁"}),e.jsx(j,{value:"unbanned",children:"未封禁"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(m,{children:"格式"}),e.jsxs(B,{value:i,onValueChange:n=>{C(n),x(1)},children:[e.jsx(z,{children:e.jsx(H,{})}),e.jsxs(V,{children:[e.jsx(j,{value:"all",children:"全部"}),$e.map(n=>e.jsxs(j,{value:n,children:[n.toUpperCase()," (",r?.formats[n],")"]},n))]})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-3 border-t pt-4 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[O.size>0&&e.jsxs("span",{className:"text-sm text-muted-foreground",children:["已选择 ",O.size," 个表情包"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(m,{className:"text-sm whitespace-nowrap",children:"卡片大小"}),e.jsxs(B,{value:pe,onValueChange:n=>De(n),children:[e.jsx(z,{className:"w-24",children:e.jsx(H,{})}),e.jsxs(V,{children:[e.jsx(j,{value:"small",children:"小"}),e.jsx(j,{value:"medium",children:"中"}),e.jsx(j,{value:"large",children:"大"})]})]})]}),e.jsxs(f,{variant:"outline",size:"sm",onClick:F,disabled:p,children:[e.jsx(as,{className:`h-4 w-4 mr-2 ${p?"animate-spin":""}`}),"刷新"]}),O.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(f,{variant:"outline",size:"sm",onClick:()=>Q(new Set),children:"取消选择"}),e.jsxs(f,{variant:"destructive",size:"sm",onClick:()=>ie(!0),children:[e.jsx(be,{className:"h-4 w-4 mr-1"}),"批量删除"]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 sm:ml-auto",children:[e.jsx(m,{htmlFor:"emoji-page-size",className:"text-sm whitespace-nowrap",children:"每页显示"}),e.jsxs(B,{value:S.toString(),onValueChange:n=>{k(parseInt(n)),x(1),Q(new Set)},children:[e.jsx(z,{id:"emoji-page-size",className:"w-20",children:e.jsx(H,{})}),e.jsxs(V,{children:[e.jsx(j,{value:"20",children:"20"}),e.jsx(j,{value:"40",children:"40"}),e.jsx(j,{value:"60",children:"60"}),e.jsx(j,{value:"100",children:"100"})]})]})]})]})]})]}),e.jsxs(I,{children:[e.jsxs(A,{children:[e.jsx(R,{children:"表情包列表"}),e.jsxs(K,{children:["共 ",w," 个表情包,当前第 ",h," 页"]})]}),e.jsx(ge,{children:e.jsx(Ds,{emojiList:s,loading:p,total:w,page:h,pageSize:S,selectedIds:O,cardSize:pe,jumpToPage:me,onPageChange:x,onJumpToPage:Le,onJumpToPageChange:he,onToggleSelect:Oe,onEdit:Pe,onViewDetail:ke,onRegister:Te,onBan:Me,onDelete:_e})})]}),e.jsx(bs,{emoji:o,open:u,onOpenChange:v}),e.jsx(ys,{emoji:o,open:J,onOpenChange:$,onSuccess:()=>{F(),U()}}),e.jsx(ws,{open:Ee,onOpenChange:xe,onSuccess:()=>{F(),U()}})]})}),e.jsx(Ie,{open:Se,onOpenChange:ie,children:e.jsxs(Ae,{children:[e.jsxs(Re,{children:[e.jsx(Be,{children:"确认批量删除"}),e.jsxs(ze,{children:["你确定要删除选中的 ",O.size," ","个表情包吗?此操作不可撤销。"]})]}),e.jsxs(He,{children:[e.jsx(Ve,{children:"取消"}),e.jsx(We,{onClick:Ue,children:"确认删除"})]})]})}),e.jsx(ee,{open:we,onOpenChange:q,children:e.jsxs(se,{children:[e.jsxs(te,{children:[e.jsx(ne,{children:"确认删除"}),e.jsx(ue,{children:"确定要删除这个表情包吗?此操作无法撤销。"})]}),e.jsxs(Y,{children:[e.jsx(f,{variant:"outline",onClick:()=>q(!1),children:"取消"}),e.jsx(f,{variant:"destructive",onClick:Fe,children:"删除"})]})]})})]})}export{zs as EmojiManagementPage}; diff --git a/dashboard/dist/assets/index-C5U4NsIF.js b/dashboard/dist/assets/index-C5U4NsIF.js new file mode 100644 index 00000000..455fb574 --- /dev/null +++ b/dashboard/dist/assets/index-C5U4NsIF.js @@ -0,0 +1,7 @@ +import{r as h,j as t,R as ye,L as X}from"./router-zNjPR4CY.js";import{P as _t}from"./utils-DjBw3JGv.js";import{g as M,u as yt,x as $e,M as wt,N as Nt,S as we,T as Be,O as qe,P as q,B as A,C as b,b as _,d as y,f as w,Q as Ne,R as ae,e as V}from"./index-CuOHsLf7.js";import{S as kt}from"./skeleton-CXI2IV_v.js";import{P as Et}from"./progress-C6-hh8fF.js";import{T as Ct,L as Tt,R as St,g as It,C as oe,X as ie,Y as Z,h as Dt,B as ke,j as ce,P as At,k as Lt,l as Rt}from"./charts-C6WIfXk3.js";import{B as le}from"./badge-CDs67obV.js";import{R as Ot,u as Mt,a as Pt}from"./restart-overlay-B44c6hlE.js";import{u as Ft,a as Kt,g as $t,E as Bt}from"./expression-reviewer-HNWlEaz6.js";import{R as de,F as Ee,a5 as Q,a6 as qt,e as Vt,W as zt,_ as Ve,a7 as Ht,a8 as Ut,a9 as Yt,s as Wt,aa as Gt,ab as Xt,n as ze,j as Zt,ac as Qt,D as Jt,ad as es,ae as ts}from"./icons-DTcdLw9j.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./system-api-DeeJapvB.js";import"./checkbox-DWiVrbnx.js";import"./select-DGqIoF9r.js";import"./pagination-DX-kWu7G.js";const ss={light:"",dark:".dark"},nt=h.createContext(null);function at(){const s=h.useContext(nt);if(!s)throw new Error("useChart must be used within a ");return s}const U=h.forwardRef(({id:s,className:e,children:r,config:n,...a},i)=>{const c=h.useId(),l=`chart-${s||c.replace(/:/g,"")}`;return t.jsx(nt,{value:{config:n},children:t.jsxs("div",{"data-chart":l,ref:i,className:M("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",e),...a,children:[t.jsx(rs,{id:l,config:n}),t.jsx(St,{children:r})]})})});U.displayName="Chart";const rs=({id:s,config:e})=>{const r=Object.entries(e).filter(([,n])=>n.theme||n.color);return r.length?t.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(ss).map(([n,a])=>` +${a} [data-chart=${s}] { +${r.map(([i,c])=>{const l=c.theme?.[n]||c.color;return l?` --color-${i}: ${l};`:null}).join(` +`)} +} +`).join(` +`)}}):null},J=Ct,Y=h.forwardRef(({active:s,payload:e,className:r,indicator:n="dot",hideLabel:a=!1,hideIndicator:i=!1,label:c,labelFormatter:l,labelClassName:m,formatter:f,color:u,nameKey:j,labelKey:v},F)=>{const{config:L}=at(),S=h.useMemo(()=>{if(a||!e?.length)return null;const[x]=e,K=`${v||x?.dataKey||x?.name||"value"}`,R=Se(L,x,K),D=!v&&typeof c=="string"?L[c]?.label||c:R?.label;return l?t.jsx("div",{className:M("font-medium",m),children:l(D,e)}):D?t.jsx("div",{className:M("font-medium",m),children:D}):null},[c,l,e,a,m,L,v]);if(!s||!e?.length)return null;const I=e.length===1&&n!=="dot";return t.jsxs("div",{ref:F,className:M("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[I?null:S,t.jsx("div",{className:"grid gap-1.5",children:e.filter(x=>x.type!=="none").map((x,K)=>{const R=`${j||x.name||x.dataKey||"value"}`,D=Se(L,x,R),$=u||x.payload.fill||x.color;return t.jsx("div",{className:M("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",n==="dot"&&"items-center"),children:f&&x?.value!==void 0&&x.name?f(x.value,x.name,x,K,x.payload):t.jsxs(t.Fragment,{children:[D?.icon?t.jsx(D.icon,{}):!i&&t.jsx("div",{className:M("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":I&&n==="dashed"}),style:{"--color-bg":$,"--color-border":$}}),t.jsxs("div",{className:M("flex flex-1 justify-between leading-none",I?"items-end":"items-center"),children:[t.jsxs("div",{className:"grid gap-1.5",children:[I?S:null,t.jsx("span",{className:"text-muted-foreground",children:D?.label||x.name})]}),x.value&&t.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:x.value.toLocaleString()})]})]})},x.dataKey)})})]})});Y.displayName="ChartTooltip";const ns=Tt,ot=h.forwardRef(({className:s,hideIcon:e=!1,payload:r,verticalAlign:n="bottom",nameKey:a},i)=>{const{config:c}=at();return r?.length?t.jsx("div",{ref:i,className:M("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",s),children:r.filter(l=>l.type!=="none").map(l=>{const m=`${a||l.dataKey||"value"}`,f=Se(c,l,m);return t.jsxs("div",{className:M("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[f?.icon&&!e?t.jsx(f.icon,{}):t.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:l.color}}),f?.label]},l.value)})}):null});ot.displayName="ChartLegend";function Se(s,e,r){if(typeof e!="object"||e===null)return;const n="payload"in e&&typeof e.payload=="object"&&e.payload!==null?e.payload:void 0;let a=r;return r in e&&typeof e[r]=="string"?a=e[r]:n&&r in n&&typeof n[r]=="string"&&(a=n[r]),a in s?s[a]:s[r]}function as(s,e,r){return Math.max(e,Math.min(s,r))}const k={toVector(s,e){return s===void 0&&(s=e),Array.isArray(s)?s:[s,s]},add(s,e){return[s[0]+e[0],s[1]+e[1]]},sub(s,e){return[s[0]-e[0],s[1]-e[1]]},addTo(s,e){s[0]+=e[0],s[1]+=e[1]},subTo(s,e){s[0]-=e[0],s[1]-=e[1]}};function He(s,e,r){return e===0||Math.abs(e)===1/0?Math.pow(s,r*5):s*e*r/(e+r*s)}function Ue(s,e,r,n=.15){return n===0?as(s,e,r):sr?+He(s-r,r-e,n)+r:s}function os(s,[e,r],[n,a]){const[[i,c],[l,m]]=s;return[Ue(e,i,c,n),Ue(r,l,m,a)]}function is(s,e){if(typeof s!="object"||s===null)return s;var r=s[Symbol.toPrimitive];if(r!==void 0){var n=r.call(s,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(s)}function cs(s){var e=is(s,"string");return typeof e=="symbol"?e:String(e)}function N(s,e,r){return e=cs(e),e in s?Object.defineProperty(s,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):s[e]=r,s}function Ye(s,e){var r=Object.keys(s);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(s);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(s,a).enumerable})),r.push.apply(r,n)}return r}function g(s){for(var e=1;e{var r,n;return e.target===s.currentTarget||((r=s.currentTarget)===null||r===void 0||(n=r.contains)===null||n===void 0?void 0:n.call(r,e.target))})}function Ie(s,e){try{const r=e.clientX-s.clientX,n=e.clientY-s.clientY,a=(e.clientX+s.clientX)/2,i=(e.clientY+s.clientY)/2,c=Math.hypot(r,n);return{angle:-(Math.atan2(r,n)*180)/Math.PI,distance:c,origin:[a,i]}}catch{}return null}function gs(s){return ps(s).map(e=>e.identifier)}function Ge(s,e){const[r,n]=Array.from(s.touches).filter(a=>e.includes(a.identifier));return Ie(r,n)}const Xe=40,Ze=800;function js(s){let{deltaX:e,deltaY:r,deltaMode:n}=s;return n===1?(e*=Xe,r*=Xe):n===2&&(e*=Ze,r*=Ze),[e,r]}function vs(s){const e={};if("buttons"in s&&(e.buttons=s.buttons),"shiftKey"in s){const{shiftKey:r,altKey:n,metaKey:a,ctrlKey:i}=s;Object.assign(e,{shiftKey:r,altKey:n,metaKey:a,ctrlKey:i})}return e}function he(s,...e){return typeof s=="function"?s(...e):s}function bs(){}function _s(...s){return s.length===0?bs:s.length===1?s[0]:function(){let e;for(const r of s)e=r.apply(this,arguments)||e;return e}}function Qe(s,e){return Object.assign({},e,s||{})}const ys=32;class ws{constructor(e,r,n){this.ctrl=e,this.args=r,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:r,ingKey:n,args:a}=this;r[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=a,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const r=this.state,n=this.config;r._active||(this.reset(),this.computeInitial(),r._active=!0,r.target=e.target,r.currentTarget=e.currentTarget,r.lastOffset=n.from?he(n.from,r):r.offset,r.offset=r.lastOffset,r.startTime=r.timeStamp=e.timeStamp)}computeValues(e){const r=this.state;r._values=e,r.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:r,config:n,shared:a}=this;r.args=this.args;let i=0;if(e&&(r.event=e,n.preventDefault&&e.cancelable&&r.event.preventDefault(),r.type=e.type,a.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,a.locked=!!document.pointerLockElement,Object.assign(a,vs(e)),a.down=a.pressed=a.buttons%2===1||a.touches>0,i=e.timeStamp-r.timeStamp,r.timeStamp=e.timeStamp,r.elapsedTime=r.timeStamp-r.startTime),r._active){const P=r._delta.map(Math.abs);k.addTo(r._distance,P)}this.axisIntent&&this.axisIntent(e);const[c,l]=r._movement,[m,f]=n.threshold,{_step:u,values:j}=r;if(n.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(c)>=m&&j[0]),u[1]===!1&&(u[1]=Math.abs(l)>=f&&j[1])):(u[0]===!1&&(u[0]=Math.abs(c)>=m&&Math.sign(c)*m),u[1]===!1&&(u[1]=Math.abs(l)>=f&&Math.sign(l)*f)),r.intentional=u[0]!==!1||u[1]!==!1,!r.intentional)return;const v=[0,0];if(n.hasCustomTransform){const[P,te]=j;v[0]=u[0]!==!1?P-u[0]:0,v[1]=u[1]!==!1?te-u[1]:0}else v[0]=u[0]!==!1?c-u[0]:0,v[1]=u[1]!==!1?l-u[1]:0;this.restrictToAxis&&!r._blocked&&this.restrictToAxis(v);const F=r.offset,L=r._active&&!r._blocked||r.active;L&&(r.first=r._active&&!r.active,r.last=!r._active&&r.active,r.active=a[this.ingKey]=r._active,e&&(r.first&&("bounds"in n&&(r._bounds=he(n.bounds,r)),this.setup&&this.setup()),r.movement=v,this.computeOffset()));const[S,I]=r.offset,[[x,K],[R,D]]=r._bounds;r.overflow=[SK?1:0,ID?1:0],r._movementBound[0]=r.overflow[0]?r._movementBound[0]===!1?r._movement[0]:r._movementBound[0]:!1,r._movementBound[1]=r.overflow[1]?r._movementBound[1]===!1?r._movement[1]:r._movementBound[1]:!1;const $=r._active?n.rubberband||[0,0]:[0,0];if(r.offset=os(r._bounds,r.offset,$),r.delta=k.sub(r.offset,F),this.computeMovement(),L&&(!r.last||i>ys)){r.delta=k.sub(r.offset,F);const P=r.delta.map(Math.abs);k.addTo(r.distance,P),r.direction=r.delta.map(Math.sign),r._direction=r._delta.map(Math.sign),!r.first&&i>0&&(r.velocity=[P[0]/i,P[1]/i],r.timeDelta=i)}}emit(){const e=this.state,r=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const a=this.handler(g(g(g({},r),e),{},{[this.aliasKey]:e.values}));a!==void 0&&(e.memo=a)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}const Ns=s=>s,Je=.15,ct={enabled(s=!0){return s},eventOptions(s,e,r){return g(g({},r.shared.eventOptions),s)},preventDefault(s=!1){return s},triggerAllEvents(s=!1){return s},rubberband(s=0){switch(s){case!0:return[Je,Je];case!1:return[0,0];default:return k.toVector(s)}},from(s){if(typeof s=="function")return s;if(s!=null)return k.toVector(s)},transform(s,e,r){const n=s||r.shared.transform;return this.hasCustomTransform=!!n,n||Ns},threshold(s){return k.toVector(s,0)}},ks=0,me=g(g({},ct),{},{axis(s,e,{axis:r}){if(this.lockDirection=r==="lock",!this.lockDirection)return r},axisThreshold(s=ks){return s},bounds(s={}){if(typeof s=="function")return i=>me.bounds(s(i));if("current"in s)return()=>s.current;if(typeof HTMLElement=="function"&&s instanceof HTMLElement)return s;const{left:e=-1/0,right:r=1/0,top:n=-1/0,bottom:a=1/0}=s;return[[e,r],[n,a]]}}),ee=typeof window<"u"&&window.document&&window.document.createElement;function lt(){return ee&&"ontouchstart"in window}function Es(){return lt()||ee&&window.navigator.maxTouchPoints>1}function Cs(){return ee&&"onpointerdown"in window}function Ts(){return ee&&"exitPointerLock"in window.document}function Ss(){try{return"constructor"in GestureEvent}catch{return!1}}const T={isBrowser:ee,gesture:Ss(),touch:lt(),touchscreen:Es(),pointer:Cs(),pointerLock:Ts()},Is=250,Ds=180,As=.5,Ls=50,Rs=250,Os=10,et={mouse:0,touch:0,pen:8};g(g({},me),{},{device(s,e,{pointer:{touch:r=!1,lock:n=!1,mouse:a=!1}={}}){return this.pointerLock=n&&T.pointerLock,T.touch&&r?"touch":this.pointerLock?"mouse":T.pointer&&!a?"pointer":T.touch?"touch":"mouse"},preventScrollAxis(s,e,{preventScroll:r}){if(this.preventScrollDelay=typeof r=="number"?r:r||r===void 0&&s?Is:void 0,!(!T.touchscreen||r===!1))return s||(r!==void 0?"y":void 0)},pointerCapture(s,e,{pointer:{capture:r=!0,buttons:n=1,keys:a=!0}={}}){return this.pointerButtons=n,this.keys=a,!this.pointerLock&&this.device==="pointer"&&r},threshold(s,e,{filterTaps:r=!1,tapsThreshold:n=3,axis:a=void 0}){const i=k.toVector(s,r?n:a?1:0);return this.filterTaps=r,this.tapsThreshold=n,i},swipe({velocity:s=As,distance:e=Ls,duration:r=Rs}={}){return{velocity:this.transform(k.toVector(s)),distance:this.transform(k.toVector(e)),duration:r}},delay(s=0){switch(s){case!0:return Ds;case!1:return 0;default:return s}},axisThreshold(s){return s?g(g({},et),s):et},keyboardDisplacement(s=Os){return s}});function Ms(s){const[e,r]=s.overflow,[n,a]=s._delta,[i,c]=s._direction;(e<0&&n>0&&i<0||e>0&&n<0&&i>0)&&(s._movement[0]=s._movementBound[0]),(r<0&&a>0&&c<0||r>0&&a<0&&c>0)&&(s._movement[1]=s._movementBound[1])}const Ps=30,Fs=100;class Ks extends ws{constructor(...e){super(...e),N(this,"ingKey","pinching"),N(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const e=this.state;e._touchIds=[],e.canceled=!1,e.cancel=this.cancel.bind(this),e.turns=0}computeOffset(){const{type:e,movement:r,lastOffset:n}=this.state;e==="wheel"?this.state.offset=k.add(r,n):this.state.offset=[(1+r[0])*n[0],r[1]+n[1]]}computeMovement(){const{offset:e,lastOffset:r}=this.state;this.state.movement=[e[0]/r[0],e[1]-r[1]]}axisIntent(){const e=this.state,[r,n]=e._movement;if(!e.axis){const a=Math.abs(r)*Ps-Math.abs(n);a<0?e.axis="angle":a>0&&(e.axis="scale")}}restrictToAxis(e){this.config.lockDirection&&(this.state.axis==="scale"?e[1]=0:this.state.axis==="angle"&&(e[0]=0))}cancel(){const e=this.state;e.canceled||setTimeout(()=>{e.canceled=!0,e._active=!1,this.compute(),this.emit()},0)}touchStart(e){this.ctrl.setEventIds(e);const r=this.state,n=this.ctrl.touchIds;if(r._active&&r._touchIds.every(i=>n.has(i))||n.size<2)return;this.start(e),r._touchIds=Array.from(n).slice(0,2);const a=Ge(e,r._touchIds);a&&this.pinchStart(e,a)}pointerStart(e){if(e.buttons!=null&&e.buttons%2!==1)return;this.ctrl.setEventIds(e),e.target.setPointerCapture(e.pointerId);const r=this.state,n=r._pointerEvents,a=this.ctrl.pointerIds;if(r._active&&Array.from(n.keys()).every(c=>a.has(c))||(n.size<2&&n.set(e.pointerId,e),r._pointerEvents.size<2))return;this.start(e);const i=Ie(...Array.from(n.values()));i&&this.pinchStart(e,i)}pinchStart(e,r){const n=this.state;n.origin=r.origin,this.computeValues([r.distance,r.angle]),this.computeInitial(),this.compute(e),this.emit()}touchMove(e){if(!this.state._active)return;const r=Ge(e,this.state._touchIds);r&&this.pinchMove(e,r)}pointerMove(e){const r=this.state._pointerEvents;if(r.has(e.pointerId)&&r.set(e.pointerId,e),!this.state._active)return;const n=Ie(...Array.from(r.values()));n&&this.pinchMove(e,n)}pinchMove(e,r){const n=this.state,a=n._values[1],i=r.angle-a;let c=0;Math.abs(i)>270&&(c+=Math.sign(i)),this.computeValues([r.distance,r.angle-360*c]),n.origin=r.origin,n.turns=c,n._movement=[n._values[0]/n._initial[0]-1,n._values[1]-n._initial[1]],this.compute(e),this.emit()}touchEnd(e){this.ctrl.setEventIds(e),this.state._active&&this.state._touchIds.some(r=>!this.ctrl.touchIds.has(r))&&(this.state._active=!1,this.compute(e),this.emit())}pointerEnd(e){const r=this.state;this.ctrl.setEventIds(e);try{e.target.releasePointerCapture(e.pointerId)}catch{}r._pointerEvents.has(e.pointerId)&&r._pointerEvents.delete(e.pointerId),r._active&&r._pointerEvents.size<2&&(r._active=!1,this.compute(e),this.emit())}gestureStart(e){e.cancelable&&e.preventDefault();const r=this.state;r._active||(this.start(e),this.computeValues([e.scale,e.rotation]),r.origin=[e.clientX,e.clientY],this.compute(e),this.emit())}gestureMove(e){if(e.cancelable&&e.preventDefault(),!this.state._active)return;const r=this.state;this.computeValues([e.scale,e.rotation]),r.origin=[e.clientX,e.clientY];const n=r._movement;r._movement=[e.scale-1,e.rotation],r._delta=k.sub(r._movement,n),this.compute(e),this.emit()}gestureEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}wheel(e){const r=this.config.modifierKey;r&&(Array.isArray(r)?!r.find(n=>e[n]):!e[r])||(this.state._active?this.wheelChange(e):this.wheelStart(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(e){this.start(e),this.wheelChange(e)}wheelChange(e){"uv"in e||e.cancelable&&e.preventDefault();const n=this.state;n._delta=[-js(e)[1]/Fs*n.offset[0],0],k.addTo(n._movement,n._delta),Ms(n),this.state.origin=[e.clientX,e.clientY],this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){const r=this.config.device;r&&(e(r,"start",this[r+"Start"].bind(this)),e(r,"change",this[r+"Move"].bind(this)),e(r,"end",this[r+"End"].bind(this)),e(r,"cancel",this[r+"End"].bind(this)),e("lostPointerCapture","",this[r+"End"].bind(this))),this.config.pinchOnWheel&&e("wheel","",this.wheel.bind(this),{passive:!1})}}const $s=g(g({},ct),{},{device(s,e,{shared:r,pointer:{touch:n=!1}={}}){if(r.target&&!T.touch&&T.gesture)return"gesture";if(T.touch&&n)return"touch";if(T.touchscreen){if(T.pointer)return"pointer";if(T.touch)return"touch"}},bounds(s,e,{scaleBounds:r={},angleBounds:n={}}){const a=c=>{const l=Qe(he(r,c),{min:-1/0,max:1/0});return[l.min,l.max]},i=c=>{const l=Qe(he(n,c),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof r!="function"&&typeof n!="function"?[a(),i()]:c=>[a(c),i(c)]},threshold(s,e,r){return this.lockDirection=r.axis==="lock",k.toVector(s,this.lockDirection?[.1,3]:0)},modifierKey(s){return s===void 0?"ctrlKey":s},pinchOnWheel(s=!0){return s}});g(g({},me),{},{mouseOnly:(s=!0)=>s});g(g({},me),{},{mouseOnly:(s=!0)=>s});const dt=new Map,De=new Map;function Bs(s){dt.set(s.key,s.engine),De.set(s.key,s.resolver)}const qs={key:"pinch",engine:Ks,resolver:$s};function Vs(s,e){if(s==null)return{};var r={},n=Object.keys(s),a,i;for(i=0;i=0)&&(r[a]=s[a]);return r}function zs(s,e){if(s==null)return{};var r=Vs(s,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(s,n)&&(r[n]=s[n])}return r}const Hs={target(s){if(s)return()=>"current"in s?s.current:s},enabled(s=!0){return s},window(s=T.isBrowser?window:void 0){return s},eventOptions({passive:s=!0,capture:e=!1}={}){return{passive:s,capture:e}},transform(s){return s}},Us=["target","eventOptions","window","enabled","transform"];function ue(s={},e){const r={};for(const[n,a]of Object.entries(e))switch(typeof a){case"function":r[n]=a.call(r,s[n],n,s);break;case"object":r[n]=ue(s[n],a);break;case"boolean":a&&(r[n]=s[n]);break}return r}function Ys(s,e,r={}){const n=s,{target:a,eventOptions:i,window:c,enabled:l,transform:m}=n,f=zs(n,Us);if(r.shared=ue({target:a,eventOptions:i,window:c,enabled:l,transform:m},Hs),e){const u=De.get(e);r[e]=ue(g({shared:r.shared},f),u)}else for(const u in f){const j=De.get(u);j&&(r[u]=ue(g({shared:r.shared},f[u]),j))}return r}class ut{constructor(e,r){N(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=r}add(e,r,n,a,i){const c=this._listeners,l=fs(r,n),m=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},f=g(g({},m),i);e.addEventListener(l,a,f);const u=()=>{e.removeEventListener(l,a,f),c.delete(u)};return c.add(u),u}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class Ws{constructor(){N(this,"_timeouts",new Map)}add(e,r,n=140,...a){this.remove(e),this._timeouts.set(e,window.setTimeout(r,n,...a))}remove(e){const r=this._timeouts.get(e);r&&window.clearTimeout(r)}clean(){this._timeouts.forEach(e=>{window.clearTimeout(e)}),this._timeouts.clear()}}class Gs{constructor(e){N(this,"gestures",new Set),N(this,"_targetEventStore",new ut(this)),N(this,"gestureEventStores",{}),N(this,"gestureTimeoutStores",{}),N(this,"handlers",{}),N(this,"config",{}),N(this,"pointerIds",new Set),N(this,"touchIds",new Set),N(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),Xs(this,e)}setEventIds(e){if(xs(e))return this.touchIds=new Set(gs(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,r){this.handlers=e,this.nativeHandlers=r}applyConfig(e,r){this.config=Ys(e,r,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const r=this.config.shared,n={};let a;if(!(r.target&&(a=r.target(),!a))){if(r.enabled){for(const c of this.gestures){const l=this.config[c],m=tt(n,l.eventOptions,!!a);if(l.enabled){const f=dt.get(c);new f(this,e,c).bind(m)}}const i=tt(n,r.eventOptions,!!a);for(const c in this.nativeHandlers)i(c,"",l=>this.nativeHandlers[c](g(g({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const i in n)n[i]=_s(...n[i]);if(!a)return n;for(const i in n){const{device:c,capture:l,passive:m}=ms(i);this._targetEventStore.add(a,c,"",n[i],{capture:l,passive:m})}}}}function H(s,e){s.gestures.add(e),s.gestureEventStores[e]=new ut(s,e),s.gestureTimeoutStores[e]=new Ws}function Xs(s,e){e.drag&&H(s,"drag"),e.wheel&&H(s,"wheel"),e.scroll&&H(s,"scroll"),e.move&&H(s,"move"),e.pinch&&H(s,"pinch"),e.hover&&H(s,"hover")}const tt=(s,e,r)=>(n,a,i,c={},l=!1)=>{var m,f;const u=(m=c.capture)!==null&&m!==void 0?m:e.capture,j=(f=c.passive)!==null&&f!==void 0?f:e.passive;let v=l?n:us(n,a,u);r&&j&&(v+="Passive"),s[v]=s[v]||[],s[v].push(i)};function Zs(s,e={},r,n){const a=ye.useMemo(()=>new Gs(s),[]);if(a.applyHandlers(s,n),a.applyConfig(e,r),ye.useEffect(a.effect.bind(a)),ye.useEffect(()=>a.clean.bind(a),[]),e.target===void 0)return a.bind.bind(a)}function Qs(s,e){return Bs(qs),Zs({pinch:s},e||{},"pinch")}const Js=Kt("div");function Ce({children:s,className:e,"aria-label":r,minScale:n=.5,maxScale:a=4}){const i=h.useRef(null),[c,l]=Ft(()=>({scale:1,config:{tension:300,friction:40}}));return Qs(({offset:[m],first:f,last:u})=>{const j=Math.min(Math.max(m,n*.85),a*1.15),v=ja?a+(j-a)*.3:j;l.start({scale:v,immediate:f}),u&&(ma)&&l.start({scale:Math.min(Math.max(m,n),a),config:{tension:200,friction:30}})},{target:i,scaleBounds:{min:n*.85,max:a*1.15},rubberband:!0,preventDefault:!0,eventOptions:{passive:!1}}),t.jsx("div",{ref:i,role:"img","aria-label":r,className:M("overflow-hidden touch-none select-none",e),style:{touchAction:"none"},children:t.jsx(Js,{style:c,className:"w-full h-full origin-center",children:s})})}function _r(){return t.jsx(Ot,{children:t.jsx(tr,{})})}const Te="https://github.com/Mai-with-u/MaiBot/releases",st="https://pypi.org/project/maibot-dashboard/",er=s=>{const e=[];for(let r=0;r(E.current=!0,()=>{E.current=!1,O.current&&(clearInterval(O.current),O.current=null)}),[]),h.useEffect(()=>{let o=!0;return(async()=>o&&(K(null),D(null),P({current_version:Ne,latest_version:null,has_update:!1,package_name:"maibot-dashboard",pypi_url:st})))(),()=>{o=!1}},[]);const pe=h.useCallback(async()=>{try{const o=await $t();o.success&&E.current&&mt(o.data.unchecked)}catch(o){console.error("获取审核统计失败:",o)}},[]),ge=h.useCallback(async()=>{try{L(!0);const o=await _t.get("https://v1.hitokoto.cn/?c=a&c=b&c=c&c=d&c=h&c=i&c=k");E.current&&v({hitokoto:o.data.hitokoto,from:o.data.from||o.data.from_who||s("home.unknownSource")})}catch(o){console.error("获取一言失败:",o),E.current&&v({hitokoto:s("home.hitokotoFallback"),from:s("home.hitokotoFallbackFrom")})}finally{E.current&&L(!1)}},[s]),se=h.useCallback(async()=>{try{const o=await $e("/api/webui/system/status");if(!E.current)return;if(o.ok){const d=await o.json();I(d)}else I(null)}catch(o){console.error("获取机器人状态失败:",o),E.current&&I(null)}},[]),re=h.useCallback(async()=>{try{const[o,d]=await Promise.all([wt(),Nt()]);if(!E.current||!o.success)return;const z=o.data,_e=((z.config??z).a_memorix??{}).plugin??{},ne=d.success?d.data:{},Ke=((ne.config??ne).model_task_config??{}).vlm??{},vt=(Array.isArray(Ke.model_list)?Ke.model_list:[]).some(bt=>String(bt??"").trim().length>0);Ae({memoryEnabled:_e.enabled===!0,visualEnabled:vt})}catch(o){console.error("获取功能启用状态失败:",o),E.current&&Ae({memoryEnabled:!1,visualEnabled:!1})}},[]),xt=async()=>{await ft()},W=h.useCallback(async()=>{try{const o=await $e(`/api/webui/statistics/dashboard?hours=${l}`);if(!E.current)return;if(o.ok){const d=await o.json();r(d)}a(!1),c(100)}catch(o){console.error("Failed to fetch dashboard data:",o),E.current&&(a(!1),c(100))}},[l]);if(h.useEffect(()=>{if(!n)return;c(0);const o=setTimeout(()=>c(15),200),d=setTimeout(()=>c(30),800),z=setTimeout(()=>c(45),2e3),Pe=setTimeout(()=>c(60),4e3),Fe=setTimeout(()=>c(75),6500),_e=setTimeout(()=>c(85),9e3),ne=setTimeout(()=>c(92),11e3);return()=>{clearTimeout(o),clearTimeout(d),clearTimeout(z),clearTimeout(Pe),clearTimeout(Fe),clearTimeout(_e),clearTimeout(ne)}},[n]),h.useEffect(()=>{W(),ge(),se(),re(),pe()},[W,ge,se,re,pe]),h.useEffect(()=>{if(O.current&&(clearInterval(O.current),O.current=null),!!f)return O.current=setInterval(()=>{E.current&&(W(),se(),re())},3e4),()=>{O.current&&(clearInterval(O.current),O.current=null)}},[f,W,se,re]),n||!e)return t.jsx("div",{className:"flex items-center justify-center h-[calc(100vh-200px)]",children:t.jsxs("div",{className:"text-center space-y-6 w-full max-w-md px-4",children:[t.jsx(de,{className:"h-12 w-12 animate-spin mx-auto text-primary"}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("p",{className:"text-lg font-medium",children:s("home.loading")}),t.jsx("p",{className:"text-sm text-muted-foreground",children:s("home.loadingHint")})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(Et,{value:i,className:"h-2"}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:[i,"%"]})]})]})});const{summary:pt,model_stats:G=[],hourly_data:je=[],daily_data:gt=[],recent_activity:jt=[]}=e,p=pt??{total_requests:0,total_cost:0,total_tokens:0,online_time:0,total_messages:0,total_replies:0,avg_response_time:0,cost_per_hour:0,tokens_per_hour:0},Re=o=>{const d=Math.floor(o/3600),z=Math.floor(o%3600/60);return s("home.time.hoursMinutes",{hours:d,minutes:z})},C=o=>{const d=o.toLocaleString("zh-CN");return o>=1e9?{display:`${(o/1e9).toFixed(2)}B`,exact:d,needsExact:!0}:o>=1e6?{display:`${(o/1e6).toFixed(2)}M`,exact:d,needsExact:!0}:o>=1e4?{display:`${(o/1e3).toFixed(1)}K`,exact:d,needsExact:!0}:o>=1e3?{display:`${(o/1e3).toFixed(2)}K`,exact:d,needsExact:!0}:{display:d,exact:d,needsExact:!1}},ve=o=>{const d=`¥${o.toLocaleString("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2})}`;return o>=1e6?{display:`¥${(o/1e6).toFixed(2)}M`,exact:d,needsExact:!0}:o>=1e4?{display:`¥${(o/1e3).toFixed(1)}K`,exact:d,needsExact:!0}:o>=1e3?{display:`¥${(o/1e3).toFixed(2)}K`,exact:d,needsExact:!0}:{display:d,exact:d,needsExact:!1}},B=o=>new Date(o).toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}),Oe=er(G.length),Me=G.map((o,d)=>({name:o.model_name,value:o.request_count,fill:Oe[d]})),be={requests:{label:s("home.charts.requests"),color:"hsl(var(--color-chart-1))"},cost:{label:s("home.charts.cost"),color:"hsl(var(--color-chart-2))"},tokens:{label:"Tokens",color:"hsl(var(--color-chart-3))"}};return t.jsx(we,{className:"h-full",children:t.jsxs("div",{className:"space-y-4 sm:space-y-6 p-4 sm:p-6",children:[t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[t.jsxs("div",{children:[t.jsx("h1",{className:"text-2xl sm:text-3xl font-bold",children:s("home.title")}),t.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:s("home.subtitle")})]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx(Be,{value:l.toString(),onValueChange:o=>m(Number(o)),children:t.jsxs(qe,{className:"grid grid-cols-3 w-full sm:w-auto",children:[t.jsx(q,{value:"24",children:s("home.timeRange.24h")}),t.jsx(q,{value:"168",children:s("home.timeRange.7d")}),t.jsx(q,{value:"720",children:s("home.timeRange.30d")})]})}),t.jsxs(A,{variant:f?"default":"outline",size:"sm",onClick:()=>u(!f),className:"gap-2",children:[t.jsx(de,{className:`h-4 w-4 ${f?"animate-spin":""}`}),t.jsx("span",{className:"hidden sm:inline",children:s("home.autoRefresh")})]}),t.jsx(A,{variant:"outline",size:"sm",onClick:W,children:t.jsx(de,{className:"h-4 w-4"})})]})]}),t.jsxs("div",{className:"flex items-center gap-3 px-4 py-2 rounded-lg border border-dashed border-muted-foreground/30 bg-muted/20",children:[F?t.jsx(kt,{className:"h-5 flex-1"}):j?t.jsxs("p",{className:"flex-1 text-sm text-muted-foreground italic truncate",children:['"',j.hitokoto,'" —— ',j.from]}):null,t.jsx(A,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0",onClick:ge,disabled:F,children:t.jsx(de,{className:`h-3.5 w-3.5 ${F?"animate-spin":""}`})})]}),t.jsxs("div",{className:"grid gap-4 grid-cols-1 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)_minmax(0,1.4fr)_max-content]",children:[t.jsxs(b,{className:"lg:col-span-1",children:[t.jsx(_,{className:"pb-3",children:t.jsxs(y,{className:"text-sm font-medium flex items-center gap-2",children:[t.jsx(Ee,{className:"h-4 w-4"}),"麦麦版本"]})}),t.jsx(w,{children:t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsx("span",{className:"text-sm text-muted-foreground",children:"主程序版本"}),t.jsx(le,{variant:"secondary",className:"border border-primary/20 bg-primary/10 px-2 py-0.5 font-semibold text-primary",children:S?.version?`v${S.version}`:"未知"})]}),t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsx("span",{className:"text-sm text-muted-foreground",children:"WebUI 版本"}),t.jsxs(le,{variant:"secondary",className:"border border-primary/20 bg-primary/10 px-2 py-0.5 font-semibold text-primary",children:["v",Ne]})]}),t.jsxs("div",{className:"hidden",children:["最新版本 v",$?.latest_version||Ne]}),t.jsx("div",{className:"hidden",children:t.jsxs("a",{href:R?.url||Te,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 transition-colors hover:text-muted-foreground",children:["最新版本 ",R?`v${R.version}`:"GitHub Releases",t.jsx(Q,{className:"h-3 w-3"})]})}),t.jsxs("div",{className:"space-y-1 border-t border-border/50 pt-2 text-xs text-muted-foreground/60",children:[t.jsxs("a",{href:x?.url||Te,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 transition-colors hover:text-muted-foreground",children:[t.jsx("span",{children:"查看主程序发布页"}),t.jsxs("span",{className:"inline-flex items-center gap-1",children:["GitHub Releases",t.jsx(Q,{className:"h-3 w-3"})]})]}),t.jsxs("a",{href:R?.url||Te,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 transition-colors hover:text-muted-foreground",children:[t.jsx("span",{children:"查看测试版发布页"}),t.jsxs("span",{className:"inline-flex items-center gap-1",children:["GitHub Releases",t.jsx(Q,{className:"h-3 w-3"})]})]}),t.jsxs("a",{href:$?.pypi_url||st,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 transition-colors hover:text-muted-foreground",children:[t.jsx("span",{children:"查看 WebUI 发布页"}),t.jsxs("span",{className:"inline-flex items-center gap-1",children:["PyPI",t.jsx(Q,{className:"h-3 w-3"})]})]})]})]})})]}),t.jsxs(b,{className:"lg:col-span-1",children:[t.jsx(_,{className:"pb-3",children:t.jsxs(y,{className:"text-sm font-medium flex items-center gap-2",children:[t.jsx(qt,{className:"h-4 w-4"}),s("home.botStatus.title")]})}),t.jsx(w,{children:t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[t.jsx("div",{className:"flex items-center gap-2",children:S?.running?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"h-3 w-3 rounded-full bg-green-500 animate-pulse"}),t.jsxs(le,{variant:"outline",className:"whitespace-nowrap text-green-600 border-green-300 bg-green-50",children:[t.jsx(Vt,{className:"h-3 w-3 mr-1"}),s("home.botStatus.running")]})]}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"h-3 w-3 rounded-full bg-red-500"}),t.jsxs(le,{variant:"outline",className:"whitespace-nowrap text-red-600 border-red-300 bg-red-50",children:[t.jsx(zt,{className:"h-3 w-3 mr-1"}),s("home.botStatus.stopped")]})]})}),S&&t.jsx("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:t.jsx("span",{children:s("home.botStatus.uptime",{time:Re(S.uptime)})})})]}),t.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.jsx(rt,{enabled:te.visualEnabled,label:"启用视觉"}),t.jsx(rt,{enabled:te.memoryEnabled,label:"启用记忆"})]})]})})]}),t.jsxs(b,{children:[t.jsx(_,{className:"pb-3",children:t.jsxs(y,{className:"text-sm font-medium flex items-center gap-2",children:[t.jsx(Ve,{className:"h-4 w-4"}),s("home.quickActions.title")]})}),t.jsx(w,{children:t.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.jsxs(A,{variant:"outline",size:"sm",onClick:xt,disabled:xe,className:"gap-2",children:[t.jsx(Ht,{className:`h-4 w-4 ${xe?"animate-spin":""}`}),s(xe?"home.quickActions.restarting":"home.quickActions.restart")]}),t.jsxs(A,{variant:"outline",size:"sm",onClick:()=>Le(!0),className:"gap-2",children:[t.jsx(Ut,{className:"h-4 w-4"}),s("home.quickActions.expressionReview"),fe>0&&t.jsx("span",{className:"ml-1 px-1.5 py-0.5 text-xs rounded-full bg-orange-500 text-white",children:fe>99?"99+":fe})]}),t.jsx(A,{variant:"outline",size:"sm",asChild:!0,className:"gap-2",children:t.jsxs(X,{to:"/logs",children:[t.jsx(Ee,{className:"h-4 w-4"}),s("home.quickActions.viewLogs")]})}),t.jsx(A,{variant:"outline",size:"sm",asChild:!0,className:"gap-2",children:t.jsxs(X,{to:"/plugins",children:[t.jsx(Yt,{className:"h-4 w-4"}),s("home.quickActions.pluginManage")]})}),t.jsx(A,{variant:"outline",size:"sm",asChild:!0,className:"gap-2",children:t.jsxs(X,{to:"/settings",children:[t.jsx(Wt,{className:"h-4 w-4"}),s("home.quickActions.systemSettings")]})}),t.jsx(A,{variant:"outline",size:"sm",asChild:!0,className:"gap-2",children:t.jsxs("a",{href:"/maibot_statistics.html",target:"_blank",rel:"noopener noreferrer",children:[t.jsx(Gt,{className:"h-4 w-4"}),"详细统计数据",t.jsx(Q,{className:"h-3.5 w-3.5"})]})})]})})]}),t.jsxs(b,{className:"lg:w-[190px]",children:[t.jsx(_,{className:"pb-3",children:t.jsxs(y,{className:"text-sm font-medium flex items-center gap-2",children:[t.jsx(Xt,{className:"h-4 w-4"}),s("home.survey.title")]})}),t.jsx(w,{children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx(A,{variant:"outline",size:"sm",asChild:!0,className:"w-full justify-start gap-2",children:t.jsxs(X,{to:"/survey/webui-feedback",children:[t.jsx(Ee,{className:"h-4 w-4"}),s("home.survey.webui")]})}),t.jsx(A,{variant:"outline",size:"sm",asChild:!0,className:"w-full justify-start gap-2",children:t.jsxs(X,{to:"/survey/maibot-feedback",children:[t.jsx(ze,{className:"h-4 w-4"}),s("home.survey.maibot")]})})]})})]})]}),t.jsxs("div",{className:"grid gap-4 grid-cols-1 xs:grid-cols-2 lg:grid-cols-4",children:[t.jsxs(b,{children:[t.jsxs(_,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t.jsx(y,{className:"text-sm font-medium",children:s("home.stats.totalRequests")}),t.jsx(Zt,{className:"h-4 w-4 text-muted-foreground"})]}),t.jsxs(w,{children:[t.jsxs("div",{className:"text-2xl font-bold",children:[C(p.total_requests).display,C(p.total_requests).needsExact&&t.jsxs("span",{className:"text-xs font-normal text-muted-foreground ml-1",children:["(",C(p.total_requests).exact,")"]})]}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:s("home.stats.recentPeriod",{range:l<48?l+s("home.stats.hours"):Math.floor(l/24)+s("home.stats.days")})})]})]}),t.jsxs(b,{children:[t.jsxs(_,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t.jsx(y,{className:"text-sm font-medium",children:s("home.stats.totalCost")}),t.jsx(Qt,{className:"h-4 w-4 text-muted-foreground"})]}),t.jsxs(w,{children:[t.jsxs("div",{className:"text-2xl font-bold",children:[ve(p.total_cost).display,ve(p.total_cost).needsExact&&t.jsxs("span",{className:"text-xs font-normal text-muted-foreground ml-1",children:["(",ve(p.total_cost).exact,")"]})]}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:p.cost_per_hour>0?s("home.stats.perHour",{value:`¥${p.cost_per_hour.toFixed(2)}`}):s("home.stats.noData")})]})]}),t.jsxs(b,{children:[t.jsxs(_,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t.jsx(y,{className:"text-sm font-medium",children:s("home.stats.tokenUsage")}),t.jsx(Jt,{className:"h-4 w-4 text-muted-foreground"})]}),t.jsxs(w,{children:[t.jsxs("div",{className:"text-2xl font-bold",children:[C(p.total_tokens).display,C(p.total_tokens).needsExact&&t.jsxs("span",{className:"text-xs font-normal text-muted-foreground ml-1",children:["(",C(p.total_tokens).exact,")"]})]}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:p.tokens_per_hour>0?s("home.stats.perHour",{value:C(p.tokens_per_hour).display}):s("home.stats.noData")})]})]}),t.jsxs(b,{children:[t.jsxs(_,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t.jsx(y,{className:"text-sm font-medium",children:s("home.stats.avgResponse")}),t.jsx(Ve,{className:"h-4 w-4 text-muted-foreground"})]}),t.jsxs(w,{children:[t.jsxs("div",{className:"text-2xl font-bold",children:[p.avg_response_time.toFixed(2),"s"]}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:s("home.stats.avgResponseDesc")})]})]})]}),t.jsxs("div",{className:"grid gap-4 grid-cols-1 sm:grid-cols-3",children:[t.jsxs(b,{children:[t.jsxs(_,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t.jsx(y,{className:"text-sm font-medium",children:s("home.stats.onlineTime")}),t.jsx(es,{className:"h-4 w-4 text-muted-foreground"})]}),t.jsx(w,{children:t.jsxs("div",{className:"text-xl font-bold",children:[Re(p.online_time),t.jsxs("span",{className:"text-xs font-normal text-muted-foreground ml-1",children:["(",p.online_time.toLocaleString(),s("home.stats.seconds"),")"]})]})})]}),t.jsxs(b,{children:[t.jsxs(_,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t.jsx(y,{className:"text-sm font-medium",children:s("home.stats.messageProcessing")}),t.jsx(ze,{className:"h-4 w-4 text-muted-foreground"})]}),t.jsxs(w,{children:[t.jsxs("div",{className:"text-xl font-bold",children:[C(p.total_messages).display,C(p.total_messages).needsExact&&t.jsxs("span",{className:"text-xs font-normal text-muted-foreground ml-1",children:["(",C(p.total_messages).exact,")"]})]}),t.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[s("home.stats.replied",{num:C(p.total_replies).display}),C(p.total_replies).needsExact&&t.jsxs("span",{children:["(",C(p.total_replies).exact,")"]})]})]})]}),t.jsxs(b,{children:[t.jsxs(_,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t.jsx(y,{className:"text-sm font-medium",children:s("home.stats.costEfficiency")}),t.jsx(ts,{className:"h-4 w-4 text-muted-foreground"})]}),t.jsxs(w,{children:[t.jsx("div",{className:"text-xl font-bold",children:p.total_messages>0?`¥${(p.total_cost/p.total_messages*100).toFixed(2)}`:"¥0.00"}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:s("home.stats.per100Messages")})]})]})]}),t.jsxs(Be,{defaultValue:"trends",className:"space-y-4",children:[t.jsxs(qe,{className:"grid w-full grid-cols-2 sm:grid-cols-4",children:[t.jsx(q,{value:"trends",children:s("home.charts.tabs.trends")}),t.jsx(q,{value:"models",children:s("home.charts.tabs.models")}),t.jsx(q,{value:"activity",children:s("home.charts.tabs.activity")}),t.jsx(q,{value:"daily",children:s("home.charts.tabs.daily")})]}),t.jsxs(ae,{value:"trends",className:"space-y-4",children:[t.jsxs(b,{children:[t.jsxs(_,{children:[t.jsx(y,{children:s("home.charts.requestTrend")}),t.jsx(V,{children:s("home.charts.requestTrendDesc",{hours:l})})]}),t.jsx(w,{children:t.jsx(Ce,{"aria-label":s("home.ariaLabel.requestTrend"),children:t.jsx(U,{config:be,className:"h-[300px] sm:h-[400px] w-full aspect-auto",children:t.jsxs(It,{data:je,children:[t.jsx(oe,{strokeDasharray:"3 3",stroke:"hsl(var(--color-muted-foreground) / 0.2)"}),t.jsx(ie,{dataKey:"timestamp",tickFormatter:o=>B(o),angle:-45,textAnchor:"end",height:60,stroke:"hsl(var(--color-muted-foreground))",tick:{fill:"hsl(var(--color-muted-foreground))"}}),t.jsx(Z,{stroke:"hsl(var(--color-muted-foreground))",tick:{fill:"hsl(var(--color-muted-foreground))"}}),t.jsx(J,{content:t.jsx(Y,{labelFormatter:o=>B(o)})}),t.jsx(Dt,{type:"monotone",dataKey:"requests",stroke:"var(--color-requests)",strokeWidth:2})]})})})})]}),t.jsxs("div",{className:"grid gap-4 grid-cols-1 lg:grid-cols-2",children:[t.jsxs(b,{children:[t.jsxs(_,{children:[t.jsx(y,{children:s("home.charts.costTrend")}),t.jsx(V,{children:s("home.charts.costTrendDesc")})]}),t.jsx(w,{children:t.jsx(Ce,{"aria-label":s("home.ariaLabel.costTrend"),children:t.jsx(U,{config:be,className:"h-[250px] sm:h-[300px] w-full aspect-auto",children:t.jsxs(ke,{data:je,children:[t.jsx(oe,{strokeDasharray:"3 3",stroke:"hsl(var(--color-muted-foreground) / 0.2)"}),t.jsx(ie,{dataKey:"timestamp",tickFormatter:o=>B(o),angle:-45,textAnchor:"end",height:60,stroke:"hsl(var(--color-muted-foreground))",tick:{fill:"hsl(var(--color-muted-foreground))"}}),t.jsx(Z,{stroke:"hsl(var(--color-muted-foreground))",tick:{fill:"hsl(var(--color-muted-foreground))"}}),t.jsx(J,{content:t.jsx(Y,{labelFormatter:o=>B(o)})}),t.jsx(ce,{dataKey:"cost",fill:"var(--color-cost)"})]})})})})]}),t.jsxs(b,{children:[t.jsxs(_,{children:[t.jsx(y,{children:s("home.charts.tokenUsage")}),t.jsx(V,{children:s("home.charts.tokenUsageDesc")})]}),t.jsx(w,{children:t.jsx(Ce,{"aria-label":s("home.ariaLabel.tokenUsage"),children:t.jsx(U,{config:be,className:"h-[250px] sm:h-[300px] w-full aspect-auto",children:t.jsxs(ke,{data:je,children:[t.jsx(oe,{strokeDasharray:"3 3",stroke:"hsl(var(--color-muted-foreground) / 0.2)"}),t.jsx(ie,{dataKey:"timestamp",tickFormatter:o=>B(o),angle:-45,textAnchor:"end",height:60,stroke:"hsl(var(--color-muted-foreground))",tick:{fill:"hsl(var(--color-muted-foreground))"}}),t.jsx(Z,{stroke:"hsl(var(--color-muted-foreground))",tick:{fill:"hsl(var(--color-muted-foreground))"}}),t.jsx(J,{content:t.jsx(Y,{labelFormatter:o=>B(o)})}),t.jsx(ce,{dataKey:"tokens",fill:"var(--color-tokens)"})]})})})})]})]})]}),t.jsx(ae,{value:"models",className:"space-y-4",children:t.jsxs("div",{className:"grid gap-4 grid-cols-1 lg:grid-cols-2",children:[t.jsxs(b,{children:[t.jsxs(_,{children:[t.jsx(y,{children:s("home.charts.modelDistribution")}),t.jsx(V,{children:s("home.charts.modelDistributionDesc",{count:G.length})})]}),t.jsx(w,{children:t.jsx(U,{config:Object.fromEntries(G.map((o,d)=>[o.model_name,{label:o.model_name,color:Oe[d]}])),className:"h-[300px] sm:h-[400px] w-full aspect-auto",children:t.jsxs(At,{children:[t.jsx(J,{content:t.jsx(Y,{})}),t.jsx(Lt,{data:Me,cx:"50%",cy:"50%",labelLine:!1,label:({name:o,percent:d})=>d&&d<.05?"":`${o} ${d?(d*100).toFixed(0):0}%`,outerRadius:100,dataKey:"value",children:Me.map((o,d)=>t.jsx(Rt,{fill:o.fill},`cell-${d}`))})]})})})]}),t.jsxs(b,{children:[t.jsxs(_,{children:[t.jsx(y,{children:s("home.charts.modelDetails")}),t.jsx(V,{children:s("home.charts.modelDetailsDesc")})]}),t.jsx(w,{children:t.jsx(we,{className:"h-[300px] sm:h-[400px]",children:t.jsx("div",{className:"space-y-3",children:G.map((o,d)=>t.jsxs("div",{className:"p-4 rounded-lg border bg-card hover:bg-accent/50 transition-colors",children:[t.jsxs("div",{className:"flex items-center justify-between mb-2",children:[t.jsx("h4",{className:"font-semibold text-sm truncate flex-1 min-w-0",children:o.model_name}),t.jsx("div",{className:"w-3 h-3 rounded-full ml-2 flex-shrink-0",style:{backgroundColor:`hsl(var(--color-chart-${d%5+1}))`}})]}),t.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[t.jsxs("div",{children:[t.jsxs("span",{className:"text-muted-foreground",children:[s("home.charts.requestCount"),":"]}),t.jsx("span",{className:"ml-1 font-medium",children:o.request_count.toLocaleString()})]}),t.jsxs("div",{children:[t.jsxs("span",{className:"text-muted-foreground",children:[s("home.charts.costLabel"),":"]}),t.jsxs("span",{className:"ml-1 font-medium",children:["¥",o.total_cost.toFixed(2)]})]}),t.jsxs("div",{children:[t.jsx("span",{className:"text-muted-foreground",children:"Tokens:"}),t.jsxs("span",{className:"ml-1 font-medium",children:[(o.total_tokens/1e3).toFixed(1),"K"]})]}),t.jsxs("div",{children:[t.jsxs("span",{className:"text-muted-foreground",children:[s("home.charts.avgTime"),":"]}),t.jsxs("span",{className:"ml-1 font-medium",children:[o.avg_response_time.toFixed(2),"s"]})]})]})]},d))})})})]})]})}),t.jsx(ae,{value:"activity",children:t.jsxs(b,{children:[t.jsxs(_,{children:[t.jsx(y,{children:s("home.charts.recentActivity")}),t.jsx(V,{children:s("home.charts.recentActivityDesc")})]}),t.jsx(w,{children:t.jsx(we,{className:"h-[400px] sm:h-[500px]",children:t.jsx("div",{className:"space-y-2",children:jt.map((o,d)=>t.jsxs("div",{className:"p-3 sm:p-4 rounded-lg border bg-card hover:bg-accent/50 transition-colors",children:[t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-2 mb-2",children:[t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"font-medium text-sm truncate",children:o.model}),t.jsx("div",{className:"text-xs text-muted-foreground",children:o.request_type})]}),t.jsx("div",{className:"text-xs text-muted-foreground flex-shrink-0",children:B(o.timestamp)})]}),t.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2 text-xs",children:[t.jsxs("div",{children:[t.jsx("span",{className:"text-muted-foreground",children:"Tokens:"}),t.jsx("span",{className:"ml-1",children:o.tokens})]}),t.jsxs("div",{children:[t.jsxs("span",{className:"text-muted-foreground",children:[s("home.charts.costLabel"),":"]}),t.jsxs("span",{className:"ml-1",children:["¥",o.cost.toFixed(4)]})]}),t.jsxs("div",{children:[t.jsxs("span",{className:"text-muted-foreground",children:[s("home.charts.timeCost"),":"]}),t.jsxs("span",{className:"ml-1",children:[o.time_cost.toFixed(2),"s"]})]}),t.jsxs("div",{children:[t.jsxs("span",{className:"text-muted-foreground",children:[s("home.charts.status"),":"]}),t.jsx("span",{className:`ml-1 ${o.status==="success"?"text-green-600":"text-red-600"}`,children:o.status})]})]})]},d))})})})]})}),t.jsx(ae,{value:"daily",children:t.jsxs(b,{children:[t.jsxs(_,{children:[t.jsx(y,{children:s("home.charts.dailyStats")}),t.jsx(V,{children:s("home.charts.dailyStatsDesc")})]}),t.jsx(w,{children:t.jsx(U,{config:{requests:{label:s("home.charts.requests"),color:"hsl(var(--color-chart-1))"},cost:{label:s("home.charts.cost"),color:"hsl(var(--color-chart-2))"}},className:"h-[400px] sm:h-[500px] w-full aspect-auto",children:t.jsxs(ke,{data:gt,children:[t.jsx(oe,{strokeDasharray:"3 3",stroke:"hsl(var(--color-muted-foreground) / 0.2)"}),t.jsx(ie,{dataKey:"timestamp",tickFormatter:o=>{const d=new Date(o);return`${d.getMonth()+1}/${d.getDate()}`},stroke:"hsl(var(--color-muted-foreground))",tick:{fill:"hsl(var(--color-muted-foreground))"}}),t.jsx(Z,{yAxisId:"left",stroke:"hsl(var(--color-muted-foreground))",tick:{fill:"hsl(var(--color-muted-foreground))"}}),t.jsx(Z,{yAxisId:"right",orientation:"right",stroke:"hsl(var(--color-muted-foreground))",tick:{fill:"hsl(var(--color-muted-foreground))"}}),t.jsx(J,{content:t.jsx(Y,{labelFormatter:o=>new Date(o).toLocaleDateString("zh-CN")})}),t.jsx(ns,{content:t.jsx(ot,{})}),t.jsx(ce,{yAxisId:"left",dataKey:"requests",fill:"var(--color-requests)"}),t.jsx(ce,{yAxisId:"right",dataKey:"cost",fill:"var(--color-cost)"})]})})})]})})]}),t.jsx(Pt,{}),t.jsx(Bt,{open:ht,onOpenChange:o=>{Le(o),o||pe()}})]})})}export{_r as IndexPage}; diff --git a/dashboard/dist/assets/index-CuOHsLf7.js b/dashboard/dist/assets/index-CuOHsLf7.js new file mode 100644 index 00000000..41d9de27 --- /dev/null +++ b/dashboard/dist/assets/index-CuOHsLf7.js @@ -0,0 +1,42 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/auth-D_7LuZ3W.js","assets/router-zNjPR4CY.js","assets/use-animation--6lc2CfN.js","assets/icons-DTcdLw9j.js","assets/misc-BwRzHX8c.js","assets/radix-C-ZuImoP.js","assets/utils-DjBw3JGv.js","assets/index-x_t_kdGn.js","assets/progress-C6-hh8fF.js","assets/select-DGqIoF9r.js","assets/switch-Kc2EZ0Ga.js","assets/textarea-8PIujbf-.js","assets/restart-overlay-B44c6hlE.js","assets/system-api-DeeJapvB.js","assets/index-C5U4NsIF.js","assets/skeleton-CXI2IV_v.js","assets/charts-C6WIfXk3.js","assets/badge-CDs67obV.js","assets/expression-reviewer-HNWlEaz6.js","assets/checkbox-DWiVrbnx.js","assets/pagination-DX-kWu7G.js","assets/bot-zehsWfTg.js","assets/parse-BBzU4wsN.js","assets/CodeEditor-4JcGD1og.js","assets/BotInfoSection-D3nfOJyA.js","assets/separator-B_DSOSdz.js","assets/key-value-editor-D1uUqXIn.js","assets/slider-mDhSC-zv.js","assets/popover-DSuRLFDH.js","assets/index-V_LLuoFO.js","assets/ProviderList-4mOft0xL.js","assets/table-DFeDhBY_.js","assets/model-Bpgh3xA9.js","assets/pack-api-NsQx-ed4.js","assets/dnd-BoJ1-vkD.js","assets/prompts-Ck1GtTX1.js","assets/adapter-disabled-CLDOktNC.js","assets/index-Bsbt9db6.js","assets/uppy-S0BLpioz.js","assets/markdown-renderer-CrKRiZ7X.js","assets/markdown-6e5N06bH.js","assets/markdown-renderer-CIHdCL6t.css","assets/index-9nJ1fKRN.css","assets/index-DYRlR_zV.js","assets/person-DaV3zh8d.js","assets/index-P80u2Mbr.js","assets/index-DIOXYKVA.js","assets/reactflow-Bd-f2Ch7.js","assets/index-B5DZHykP.css","assets/knowledge-base-Du35OURl.js","assets/unified-ws-CBnrIqHW.js","assets/logs-bFuaYf8z.js","assets/log-websocket-BnMQh0M3.js","assets/reasoning-process-CrCr8cDD.js","assets/index-B_FHivTS.js","assets/index-BnkN5WGH.js","assets/index-BpTcuomx.js","assets/plugin-stats-Bq_VsOhk.js","assets/installed-CHw5f9lL.js","assets/plugin-detail-C98YfI36.js","assets/model-presets-C1oJlh_V.js","assets/plugin-config-Gj4DzZjP.js","assets/plugin-mirrors-Chrh5WMR.js","assets/mcp-settings-6oaCtDHj.js","assets/index-5HyjKTOp.js","assets/accordion-BDNDahhI.js","assets/pack-market-BOV814Tz.js","assets/pack-detail-BOBdaAtu.js","assets/radio-group-BBkaGEpR.js","assets/webui-feedback-D6Zzxnbw.js","assets/survey-renderer-DVA7Y8cR.js","assets/maibot-feedback-BNwa_tM0.js"])))=>i.map(i=>d[i]); +import{e as uw,h as fw,r as T,j as y,a as dw,i as Wf,L as hf,k as hw,l as mw,m as pw,n as gw,o as Te,p as De,q as yw,s as vw,O as tb,t as bw}from"./router-zNjPR4CY.js";import{R as Sw}from"./misc-BwRzHX8c.js";import{s as xw,S as Tw,b as nb,V as ww,d as Cw,e as ab,f as Dw,g as Aw,h as Ew,i as Mw,j as ib,k as sb,l as ob,A as rb,m as lb,T as cb,D as ub,n as kw,o as Nw,p as fb,q as Rw,r as jw,t as Ow,v as db,w as Lw,x as hb,y as mb,z as pb,B as gb,E as yb,F as zw,G as Bw,O as vb,a as Uw,C as bb,H as Vw,I as Sb,J as xb,R as Pw,K as _w,L as Hw,M as Fw,N as Iw,Q as Gw,U as Hr,W as qw,X as Kw,Y as Yw,Z as Xw,_ as Qw,$ as Zw,a0 as Tb,a1 as $w,a2 as Ww,a3 as Jw,u as Kg,a4 as eC,P as tC,c as nC,a5 as aC,a6 as iC,a7 as sC,a8 as wb,a9 as Cb,aa as Db,ab as oC}from"./radix-C-ZuImoP.js";import{N as rC,M as lC,O as Qs}from"./utils-DjBw3JGv.js";import{T as Fr,R as cC,H as Jf,B as uC,C as Yg,a as Xg,b as ed,c as Ab,d as fC,L as mf,e as dC,f as hC,A as mC,X as cl,S as Ir,g as pC,h as gC,M as yC,i as vC,j as bC,F as Eb,k as SC,l as xC,m as TC,n as Mb,o as wC,D as CC,p as DC,P as AC,N as EC,q as MC,r as kC,s as NC,t as kb,u as RC,v as jC,w as OC,x as Nb,y as LC,z as zC,E as BC,G as UC,I as VC,J as PC,K as _C,O as HC,Q as FC}from"./icons-DTcdLw9j.js";(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function s(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(l){if(l.ep)return;l.ep=!0;const u=s(l);fetch(l.href,u)}})();var Uu={exports:{}},Es={},Vu={exports:{}},Pu={};var Qg;function IC(){return Qg||(Qg=1,(function(n){function a(U,q){var Y=U.length;U.push(q);e:for(;0>>1,fe=U[se];if(0>>1;sel(he,Y))Fel(en,he)?(U[se]=en,U[Fe]=Y,se=Fe):(U[se]=he,U[ve]=Y,se=ve);else if(Fel(en,Y))U[se]=en,U[Fe]=Y,se=Fe;else break e}}return q}function l(U,q){var Y=U.sortIndex-q.sortIndex;return Y!==0?Y:U.id-q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var m=[],g=[],b=1,v=null,x=3,D=!1,w=!1,R=!1,L=!1,M=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function j(U){for(var q=s(g);q!==null;){if(q.callback===null)o(g);else if(q.startTime<=U)o(g),q.sortIndex=q.expirationTime,a(m,q);else break;q=s(g)}}function F(U){if(R=!1,j(U),!w)if(s(m)!==null)w=!0,X||(X=!0,ne());else{var q=s(g);q!==null&&Be(F,q.startTime-U)}}var X=!1,ie=-1,Q=5,G=-1;function I(){return L?!0:!(n.unstable_now()-GU&&I());){var se=v.callback;if(typeof se=="function"){v.callback=null,x=v.priorityLevel;var fe=se(v.expirationTime<=U);if(U=n.unstable_now(),typeof fe=="function"){v.callback=fe,j(U),q=!0;break t}v===s(m)&&o(m),j(U)}else o(m);v=s(m)}if(v!==null)q=!0;else{var de=s(g);de!==null&&Be(F,de.startTime-U),q=!1}}break e}finally{v=null,x=Y,D=!1}q=void 0}}finally{q?ne():X=!1}}}var ne;if(typeof z=="function")ne=function(){z(ee)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,ye=le.port2;le.port1.onmessage=ee,ne=function(){ye.postMessage(null)}}else ne=function(){M(ee,0)};function Be(U,q){ie=M(function(){U(n.unstable_now())},q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(U){U.callback=null},n.unstable_forceFrameRate=function(U){0>U||125se?(U.sortIndex=Y,a(g,U),s(m)===null&&U===s(g)&&(R?(V(ie),ie=-1):R=!0,Be(F,Y-se))):(U.sortIndex=fe,a(m,U),w||D||(w=!0,X||(X=!0,ne()))),U},n.unstable_shouldYield=I,n.unstable_wrapCallback=function(U){var q=x;return function(){var Y=x;x=q;try{return U.apply(this,arguments)}finally{x=Y}}}})(Pu)),Pu}var Zg;function GC(){return Zg||(Zg=1,Vu.exports=IC()),Vu.exports}var $g;function qC(){if($g)return Es;$g=1;var n=GC(),a=uw(),s=fw();function o(e){var t="https://react.dev/errors/"+e;if(1fe||(e.current=se[fe],se[fe]=null,fe--)}function he(e,t){fe++,se[fe]=e.current,e.current=t}var Fe=de(null),en=de(null),Rn=de(null),to=de(null);function no(e,t){switch(he(Rn,t),he(en,e),he(Fe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pg(t),e=gg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ve(Fe),he(Fe,e)}function Ba(){ve(Fe),ve(en),ve(Rn)}function vl(e){e.memoizedState!==null&&he(to,e);var t=Fe.current,i=gg(t,e.type);t!==i&&(he(en,e),he(Fe,i))}function ao(e){en.current===e&&(ve(Fe),ve(en)),to.current===e&&(ve(to),ws._currentValue=Y)}var bl,qd;function la(e){if(bl===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);bl=t&&t[1]||"",qd=-1)":-1c||C[r]!==N[c]){var P=` +`+C[r].replace(" at new "," at ");return e.displayName&&P.includes("")&&(P=P.replace("",e.displayName)),P}while(1<=r&&0<=c);break}}}finally{Sl=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?la(i):""}function Hx(e,t){switch(e.tag){case 26:case 27:case 5:return la(e.type);case 16:return la("Lazy");case 13:return e.child!==t&&t!==null?la("Suspense Fallback"):la("Suspense");case 19:return la("SuspenseList");case 0:case 15:return xl(e.type,!1);case 11:return xl(e.type.render,!1);case 1:return xl(e.type,!0);case 31:return la("Activity");default:return""}}function Kd(e){try{var t="",i=null;do t+=Hx(e,i),i=e,e=e.return;while(e);return t}catch(r){return` +Error generating stack: `+r.message+` +`+r.stack}}var Tl=Object.prototype.hasOwnProperty,wl=n.unstable_scheduleCallback,Cl=n.unstable_cancelCallback,Fx=n.unstable_shouldYield,Ix=n.unstable_requestPaint,Tt=n.unstable_now,Gx=n.unstable_getCurrentPriorityLevel,Yd=n.unstable_ImmediatePriority,Xd=n.unstable_UserBlockingPriority,io=n.unstable_NormalPriority,qx=n.unstable_LowPriority,Qd=n.unstable_IdlePriority,Kx=n.log,Yx=n.unstable_setDisableYieldValue,zi=null,wt=null;function jn(e){if(typeof Kx=="function"&&Yx(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(zi,e)}catch{}}var Ct=Math.clz32?Math.clz32:Zx,Xx=Math.log,Qx=Math.LN2;function Zx(e){return e>>>=0,e===0?32:31-(Xx(e)/Qx|0)|0}var so=256,oo=262144,ro=4194304;function ca(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function lo(e,t,i){var r=e.pendingLanes;if(r===0)return 0;var c=0,f=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var S=r&134217727;return S!==0?(r=S&~f,r!==0?c=ca(r):(p&=S,p!==0?c=ca(p):i||(i=S&~e,i!==0&&(c=ca(i))))):(S=r&~f,S!==0?c=ca(S):p!==0?c=ca(p):i||(i=r&~e,i!==0&&(c=ca(i)))),c===0?0:t!==0&&t!==c&&(t&f)===0&&(f=c&-c,i=t&-t,f>=i||f===32&&(i&4194048)!==0)?t:c}function Bi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $x(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zd(){var e=ro;return ro<<=1,(ro&62914560)===0&&(ro=4194304),e}function Dl(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function Ui(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Wx(e,t,i,r,c,f){var p=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var S=e.entanglements,C=e.expirationTimes,N=e.hiddenUpdates;for(i=p&~i;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var iT=/[\n"\\]/g;function zt(e){return e.replace(iT,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Rl(e,t,i,r,c,f,p,S){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Lt(t)):e.value!==""+Lt(t)&&(e.value=""+Lt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?jl(e,p,Lt(t)):i!=null?jl(e,p,Lt(i)):r!=null&&e.removeAttribute("value"),c==null&&f!=null&&(e.defaultChecked=!!f),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Lt(S):e.removeAttribute("name")}function ch(e,t,i,r,c,f,p,S){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||i!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){Nl(e);return}i=i!=null?""+Lt(i):"",t=t!=null?""+Lt(t):i,S||t===e.value||(e.value=t),e.defaultValue=t}r=r??c,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=S?e.checked:!!r,e.defaultChecked=!!r,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Nl(e)}function jl(e,t,i){t==="number"&&fo(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Fa(e,t,i,r){if(e=e.options,t){t={};for(var c=0;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ul=!1;if(mn)try{var Hi={};Object.defineProperty(Hi,"passive",{get:function(){Ul=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{Ul=!1}var Ln=null,Vl=null,mo=null;function gh(){if(mo)return mo;var e,t=Vl,i=t.length,r,c="value"in Ln?Ln.value:Ln.textContent,f=c.length;for(e=0;e=Gi),Th=" ",wh=!1;function Ch(e,t){switch(e){case"keyup":return jT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ka=!1;function LT(e,t){switch(e){case"compositionend":return Dh(t);case"keypress":return t.which!==32?null:(wh=!0,Th);case"textInput":return e=t.data,e===Th&&wh?null:e;default:return null}}function zT(e,t){if(Ka)return e==="compositionend"||!Il&&Ch(e,t)?(e=gh(),mo=Vl=Ln=null,Ka=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:i,offset:t-e};e=r}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Oh(i)}}function zh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=fo(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=fo(e.document)}return t}function Kl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var IT=mn&&"documentMode"in document&&11>=document.documentMode,Ya=null,Yl=null,Xi=null,Xl=!1;function Uh(e,t,i){var r=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Xl||Ya==null||Ya!==fo(r)||(r=Ya,"selectionStart"in r&&Kl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xi&&Yi(Xi,r)||(Xi=r,r=rr(Yl,"onSelect"),0>=p,c-=p,tn=1<<32-Ct(t)+c|i<re?(pe=W,W=null):pe=W.sibling;var Se=O(E,W,k[re],_);if(Se===null){W===null&&(W=pe);break}e&&W&&Se.alternate===null&&t(E,W),A=f(Se,A,re),be===null?J=Se:be.sibling=Se,be=Se,W=pe}if(re===k.length)return i(E,W),ge&&gn(E,re),J;if(W===null){for(;rere?(pe=W,W=null):pe=W.sibling;var na=O(E,W,Se.value,_);if(na===null){W===null&&(W=pe);break}e&&W&&na.alternate===null&&t(E,W),A=f(na,A,re),be===null?J=na:be.sibling=na,be=na,W=pe}if(Se.done)return i(E,W),ge&&gn(E,re),J;if(W===null){for(;!Se.done;re++,Se=k.next())Se=H(E,Se.value,_),Se!==null&&(A=f(Se,A,re),be===null?J=Se:be.sibling=Se,be=Se);return ge&&gn(E,re),J}for(W=r(W);!Se.done;re++,Se=k.next())Se=B(W,E,re,Se.value,_),Se!==null&&(e&&Se.alternate!==null&&W.delete(Se.key===null?re:Se.key),A=f(Se,A,re),be===null?J=Se:be.sibling=Se,be=Se);return e&&W.forEach(function(cw){return t(E,cw)}),ge&&gn(E,re),J}function ke(E,A,k,_){if(typeof k=="object"&&k!==null&&k.type===R&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case D:e:{for(var J=k.key;A!==null;){if(A.key===J){if(J=k.type,J===R){if(A.tag===7){i(E,A.sibling),_=c(A,k.props.children),_.return=E,E=_;break e}}else if(A.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Q&&Sa(J)===A.type){i(E,A.sibling),_=c(A,k.props),es(_,k),_.return=E,E=_;break e}i(E,A);break}else t(E,A);A=A.sibling}k.type===R?(_=pa(k.props.children,E.mode,_,k.key),_.return=E,E=_):(_=Co(k.type,k.key,k.props,null,E.mode,_),es(_,k),_.return=E,E=_)}return p(E);case w:e:{for(J=k.key;A!==null;){if(A.key===J)if(A.tag===4&&A.stateNode.containerInfo===k.containerInfo&&A.stateNode.implementation===k.implementation){i(E,A.sibling),_=c(A,k.children||[]),_.return=E,E=_;break e}else{i(E,A);break}else t(E,A);A=A.sibling}_=tc(k,E.mode,_),_.return=E,E=_}return p(E);case Q:return k=Sa(k),ke(E,A,k,_)}if(Be(k))return Z(E,A,k,_);if(ne(k)){if(J=ne(k),typeof J!="function")throw Error(o(150));return k=J.call(k),te(E,A,k,_)}if(typeof k.then=="function")return ke(E,A,Ro(k),_);if(k.$$typeof===z)return ke(E,A,Eo(E,k),_);jo(E,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,A!==null&&A.tag===6?(i(E,A.sibling),_=c(A,k),_.return=E,E=_):(i(E,A),_=ec(k,E.mode,_),_.return=E,E=_),p(E)):i(E,A)}return function(E,A,k,_){try{Ji=0;var J=ke(E,A,k,_);return ii=null,J}catch(W){if(W===ai||W===ko)throw W;var be=At(29,W,null,E.mode);return be.lanes=_,be.return=E,be}}}var Ta=om(!0),rm=om(!1),Pn=!1;function hc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function _n(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,i){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(xe&2)!==0){var c=r.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),r.pending=t,t=wo(e),Gh(e,null,i),t}return To(e,r,t,i),wo(e)}function ts(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,Wd(e,i)}}function pc(e,t){var i=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,i===r)){var c=null,f=null;if(i=i.firstBaseUpdate,i!==null){do{var p={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};f===null?c=f=p:f=f.next=p,i=i.next}while(i!==null);f===null?c=f=t:f=f.next=t}else c=f=t;i={baseState:r.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:r.shared,callbacks:r.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var gc=!1;function ns(){if(gc){var e=ni;if(e!==null)throw e}}function as(e,t,i,r){gc=!1;var c=e.updateQueue;Pn=!1;var f=c.firstBaseUpdate,p=c.lastBaseUpdate,S=c.shared.pending;if(S!==null){c.shared.pending=null;var C=S,N=C.next;C.next=null,p===null?f=N:p.next=N,p=C;var P=e.alternate;P!==null&&(P=P.updateQueue,S=P.lastBaseUpdate,S!==p&&(S===null?P.firstBaseUpdate=N:S.next=N,P.lastBaseUpdate=C))}if(f!==null){var H=c.baseState;p=0,P=N=C=null,S=f;do{var O=S.lane&-536870913,B=O!==S.lane;if(B?(me&O)===O:(r&O)===O){O!==0&&O===ti&&(gc=!0),P!==null&&(P=P.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var Z=e,te=S;O=t;var ke=i;switch(te.tag){case 1:if(Z=te.payload,typeof Z=="function"){H=Z.call(ke,H,O);break e}H=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=te.payload,O=typeof Z=="function"?Z.call(ke,H,O):Z,O==null)break e;H=v({},H,O);break e;case 2:Pn=!0}}O=S.callback,O!==null&&(e.flags|=64,B&&(e.flags|=8192),B=c.callbacks,B===null?c.callbacks=[O]:B.push(O))}else B={lane:O,tag:S.tag,payload:S.payload,callback:S.callback,next:null},P===null?(N=P=B,C=H):P=P.next=B,p|=O;if(S=S.next,S===null){if(S=c.shared.pending,S===null)break;B=S,S=B.next,B.next=null,c.lastBaseUpdate=B,c.shared.pending=null}}while(!0);P===null&&(C=H),c.baseState=C,c.firstBaseUpdate=N,c.lastBaseUpdate=P,f===null&&(c.shared.lanes=0),Kn|=p,e.lanes=p,e.memoizedState=H}}function lm(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function cm(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;ef?f:8;var p=U.T,S={};U.T=S,zc(e,!1,t,i);try{var C=c(),N=U.S;if(N!==null&&N(S,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var P=WT(C,r);os(e,t,P,Rt(e))}else os(e,t,r,Rt(e))}catch(H){os(e,t,{then:function(){},status:"rejected",reason:H},Rt())}finally{q.p=f,p!==null&&S.types!==null&&(p.types=S.types),U.T=p}}function i1(){}function Oc(e,t,i,r){if(e.tag!==5)throw Error(o(476));var c=Hm(e).queue;_m(e,c,t,Y,i===null?i1:function(){return Fm(e),i(r)})}function Hm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:Y},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fm(e){var t=Hm(e);t.next===null&&(t=e.alternate.memoizedState),os(e,t.next.queue,{},Rt())}function Lc(){return it(ws)}function Im(){return Ge().memoizedState}function Gm(){return Ge().memoizedState}function s1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=Rt();e=_n(i);var r=Hn(t,e,i);r!==null&&(xt(r,t,i),ts(r,t,i)),t={cache:cc()},e.payload=t;return}t=t.return}}function o1(e,t,i){var r=Rt();i={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Fo(e)?Km(t,i):(i=Wl(e,t,i,r),i!==null&&(xt(i,e,r),Ym(i,t,r)))}function qm(e,t,i){var r=Rt();os(e,t,i,r)}function os(e,t,i,r){var c={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Fo(e))Km(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var p=t.lastRenderedState,S=f(p,i);if(c.hasEagerState=!0,c.eagerState=S,Dt(S,p))return To(e,t,c,0),je===null&&xo(),!1}catch{}if(i=Wl(e,t,c,r),i!==null)return xt(i,e,r),Ym(i,t,r),!0}return!1}function zc(e,t,i,r){if(r={lane:2,revertLane:hu(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Fo(e)){if(t)throw Error(o(479))}else t=Wl(e,i,r,2),t!==null&&xt(t,e,2)}function Fo(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function Km(e,t){oi=zo=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Ym(e,t,i){if((i&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,Wd(e,i)}}var rs={readContext:it,use:Vo,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useInsertionEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useSyncExternalStore:Ve,useId:Ve,useHostTransitionStatus:Ve,useFormState:Ve,useActionState:Ve,useOptimistic:Ve,useMemoCache:Ve,useCacheRefresh:Ve};rs.useEffectEvent=Ve;var Xm={readContext:it,use:Vo,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:Rm,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,_o(4194308,4,zm.bind(null,t,e),i)},useLayoutEffect:function(e,t){return _o(4194308,4,e,t)},useInsertionEffect:function(e,t){_o(4,2,e,t)},useMemo:function(e,t){var i=ft();t=t===void 0?null:t;var r=e();if(wa){jn(!0);try{e()}finally{jn(!1)}}return i.memoizedState=[r,t],r},useReducer:function(e,t,i){var r=ft();if(i!==void 0){var c=i(t);if(wa){jn(!0);try{i(t)}finally{jn(!1)}}}else c=t;return r.memoizedState=r.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},r.queue=e,e=e.dispatch=o1.bind(null,oe,e),[r.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:function(e){e=Mc(e);var t=e.queue,i=qm.bind(null,oe,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:Rc,useDeferredValue:function(e,t){var i=ft();return jc(i,e,t)},useTransition:function(){var e=Mc(!1);return e=_m.bind(null,oe,e.queue,!0,!1),ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var r=oe,c=ft();if(ge){if(i===void 0)throw Error(o(407));i=i()}else{if(i=t(),je===null)throw Error(o(349));(me&127)!==0||pm(r,t,i)}c.memoizedState=i;var f={value:i,getSnapshot:t};return c.queue=f,Rm(ym.bind(null,r,f,e),[e]),r.flags|=2048,li(9,{destroy:void 0},gm.bind(null,r,f,i,t),null),i},useId:function(){var e=ft(),t=je.identifierPrefix;if(ge){var i=nn,r=tn;i=(r&~(1<<32-Ct(r)-1)).toString(32)+i,t="_"+t+"R_"+i,i=Bo++,0<\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof r.is=="string"?p.createElement("select",{is:r.is}):p.createElement("select"),r.multiple?f.multiple=!0:r.size&&(f.size=r.size);break;default:f=typeof r.is=="string"?p.createElement(c,{is:r.is}):p.createElement(c)}}f[nt]=t,f[pt]=r;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)f.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=f;e:switch(ot(f,c,r),c){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Tn(t)}}return Le(t),Qc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Tn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(o(166));if(e=Rn.current,Ja(t)){if(e=t.stateNode,i=t.memoizedProps,r=null,c=at,c!==null)switch(c.tag){case 27:case 5:r=c.memoizedProps}e[nt]=t,e=!!(e.nodeValue===i||r!==null&&r.suppressHydrationWarning===!0||hg(e.nodeValue,i)),e||Un(t,!0)}else e=lr(e).createTextNode(r),e[nt]=t,t.stateNode=e}return Le(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ja(t),i!==null){if(e===null){if(!r)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[nt]=t}else ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),e=!1}else i=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(Mt(t),t):(Mt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Le(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Ja(t),r!==null&&r.dehydrated!==null){if(e===null){if(!c)throw Error(o(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[nt]=t}else ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),c=!1}else c=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Mt(t),t):(Mt(t),null)}return Mt(t),(t.flags&128)!==0?(t.lanes=i,t):(i=r!==null,e=e!==null&&e.memoizedState!==null,i&&(r=t.child,c=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(c=r.alternate.memoizedState.cachePool.pool),f=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(f=r.memoizedState.cachePool.pool),f!==c&&(r.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),Yo(t,t.updateQueue),Le(t),null);case 4:return Ba(),e===null&&yu(t.stateNode.containerInfo),Le(t),null;case 10:return vn(t.type),Le(t),null;case 19:if(ve(Ie),r=t.memoizedState,r===null)return Le(t),null;if(c=(t.flags&128)!==0,f=r.rendering,f===null)if(c)cs(r,!1);else{if(Pe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Lo(e),f!==null){for(t.flags|=128,cs(r,!1),e=f.updateQueue,t.updateQueue=e,Yo(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)qh(i,e),i=i.sibling;return he(Ie,Ie.current&1|2),ge&&gn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Tt()>Wo&&(t.flags|=128,c=!0,cs(r,!1),t.lanes=4194304)}else{if(!c)if(e=Lo(f),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Yo(t,e),cs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!f.alternate&&!ge)return Le(t),null}else 2*Tt()-r.renderingStartTime>Wo&&i!==536870912&&(t.flags|=128,c=!0,cs(r,!1),t.lanes=4194304);r.isBackwards?(f.sibling=t.child,t.child=f):(e=r.last,e!==null?e.sibling=f:t.child=f,r.last=f)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Tt(),e.sibling=null,i=Ie.current,he(Ie,c?i&1|2:i&1),ge&&gn(t,r.treeForkCount),e):(Le(t),null);case 22:case 23:return Mt(t),vc(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(i&536870912)!==0&&(t.flags&128)===0&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),i=t.updateQueue,i!==null&&Yo(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==i&&(t.flags|=2048),e!==null&&ve(ba),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),vn(qe),Le(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function f1(e,t){switch(ac(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vn(qe),Ba(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ao(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(o(340));ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(Ie),null;case 4:return Ba(),null;case 10:return vn(t.type),null;case 22:case 23:return Mt(t),vc(),e!==null&&ve(ba),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return vn(qe),null;case 25:return null;default:return null}}function vp(e,t){switch(ac(t),t.tag){case 3:vn(qe),Ba();break;case 26:case 27:case 5:ao(t);break;case 4:Ba();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:ve(Ie);break;case 10:vn(t.type);break;case 22:case 23:Mt(t),vc(),e!==null&&ve(ba);break;case 24:vn(qe)}}function us(e,t){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var c=r.next;i=c;do{if((i.tag&e)===e){r=void 0;var f=i.create,p=i.inst;r=f(),p.destroy=r}i=i.next}while(i!==c)}}catch(S){Ce(t,t.return,S)}}function Gn(e,t,i){try{var r=t.updateQueue,c=r!==null?r.lastEffect:null;if(c!==null){var f=c.next;r=f;do{if((r.tag&e)===e){var p=r.inst,S=p.destroy;if(S!==void 0){p.destroy=void 0,c=t;var C=i,N=S;try{N()}catch(P){Ce(c,C,P)}}}r=r.next}while(r!==f)}}catch(P){Ce(t,t.return,P)}}function bp(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{cm(t,i)}catch(r){Ce(e,e.return,r)}}}function Sp(e,t,i){i.props=Ca(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(r){Ce(e,t,r)}}function fs(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof i=="function"?e.refCleanup=i(r):i.current=r}}catch(c){Ce(e,t,c)}}function an(e,t){var i=e.ref,r=e.refCleanup;if(i!==null)if(typeof r=="function")try{r()}catch(c){Ce(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(c){Ce(e,t,c)}else i.current=null}function xp(e){var t=e.type,i=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&r.focus();break e;case"img":i.src?r.src=i.src:i.srcSet&&(r.srcset=i.srcSet)}}catch(c){Ce(e,e.return,c)}}function Zc(e,t,i){try{var r=e.stateNode;O1(r,e.type,i,t),r[pt]=t}catch(c){Ce(e,e.return,c)}}function Tp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$n(e.type)||e.tag===4}function $c(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$n(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wc(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=hn));else if(r!==4&&(r===27&&$n(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(Wc(e,t,i),e=e.sibling;e!==null;)Wc(e,t,i),e=e.sibling}function Xo(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(r!==4&&(r===27&&$n(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(Xo(e,t,i),e=e.sibling;e!==null;)Xo(e,t,i),e=e.sibling}function wp(e){var t=e.stateNode,i=e.memoizedProps;try{for(var r=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);ot(t,r,i),t[nt]=e,t[pt]=i}catch(f){Ce(e,e.return,f)}}var wn=!1,Xe=!1,Jc=!1,Cp=typeof WeakSet=="function"?WeakSet:Set,tt=null;function d1(e,t){if(e=e.containerInfo,Su=pr,e=Bh(e),Kl(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var r=i.getSelection&&i.getSelection();if(r&&r.rangeCount!==0){i=r.anchorNode;var c=r.anchorOffset,f=r.focusNode;r=r.focusOffset;try{i.nodeType,f.nodeType}catch{i=null;break e}var p=0,S=-1,C=-1,N=0,P=0,H=e,O=null;t:for(;;){for(var B;H!==i||c!==0&&H.nodeType!==3||(S=p+c),H!==f||r!==0&&H.nodeType!==3||(C=p+r),H.nodeType===3&&(p+=H.nodeValue.length),(B=H.firstChild)!==null;)O=H,H=B;for(;;){if(H===e)break t;if(O===i&&++N===c&&(S=p),O===f&&++P===r&&(C=p),(B=H.nextSibling)!==null)break;H=O,O=H.parentNode}H=B}i=S===-1||C===-1?null:{start:S,end:C}}else i=null}i=i||{start:0,end:0}}else i=null;for(xu={focusedElem:e,selectionRange:i},pr=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i title"))),ot(f,r,i),f[nt]=e,et(f),r=f;break e;case"link":var p=Ng("link","href",c).get(r+(i.href||""));if(p){for(var S=0;Ske&&(p=ke,ke=te,te=p);var E=Lh(S,te),A=Lh(S,ke);if(E&&A&&(B.rangeCount!==1||B.anchorNode!==E.node||B.anchorOffset!==E.offset||B.focusNode!==A.node||B.focusOffset!==A.offset)){var k=H.createRange();k.setStart(E.node,E.offset),B.removeAllRanges(),te>ke?(B.addRange(k),B.extend(A.node,A.offset)):(k.setEnd(A.node,A.offset),B.addRange(k))}}}}for(H=[],B=S;B=B.parentNode;)B.nodeType===1&&H.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;Si?32:i,U.T=null,i=ou,ou=null;var f=Xn,p=Mn;if(Ze=0,hi=Xn=null,Mn=0,(xe&6)!==0)throw Error(o(331));var S=xe;if(xe|=4,zp(f.current),jp(f,f.current,p,i),xe=S,ys(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(zi,f)}catch{}return!0}finally{q.p=c,U.T=r,Jp(e,t)}}function tg(e,t,i){t=Ut(i,t),t=Pc(e.stateNode,t,2),e=Hn(e,t,2),e!==null&&(Ui(e,2),sn(e))}function Ce(e,t,i){if(e.tag===3)tg(e,e,i);else for(;t!==null;){if(t.tag===3){tg(t,e,i);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Yn===null||!Yn.has(r))){e=Ut(i,e),i=np(2),r=Hn(t,i,2),r!==null&&(ap(i,r,t,e),Ui(r,2),sn(r));break}}t=t.return}}function uu(e,t,i){var r=e.pingCache;if(r===null){r=e.pingCache=new p1;var c=new Set;r.set(t,c)}else c=r.get(t),c===void 0&&(c=new Set,r.set(t,c));c.has(i)||(nu=!0,c.add(i),e=S1.bind(null,e,t,i),t.then(e,e))}function S1(e,t,i){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,je===e&&(me&i)===i&&(Pe===4||Pe===3&&(me&62914560)===me&&300>Tt()-$o?(xe&2)===0&&mi(e,0):au|=i,di===me&&(di=0)),sn(e)}function ng(e,t){t===0&&(t=Zd()),e=ma(e,t),e!==null&&(Ui(e,t),sn(e))}function x1(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),ng(e,i)}function T1(e,t){var i=0;switch(e.tag){case 31:case 13:var r=e.stateNode,c=e.memoizedState;c!==null&&(i=c.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(t),ng(e,i)}function w1(e,t){return wl(e,t)}var ir=null,gi=null,fu=!1,sr=!1,du=!1,Zn=0;function sn(e){e!==gi&&e.next===null&&(gi===null?ir=gi=e:gi=gi.next=e),sr=!0,fu||(fu=!0,D1())}function ys(e,t){if(!du&&sr){du=!0;do for(var i=!1,r=ir;r!==null;){if(e!==0){var c=r.pendingLanes;if(c===0)var f=0;else{var p=r.suspendedLanes,S=r.pingedLanes;f=(1<<31-Ct(42|e)+1)-1,f&=c&~(p&~S),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(i=!0,og(r,f))}else f=me,f=lo(r,r===je?f:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(f&3)===0||Bi(r,f)||(i=!0,og(r,f));r=r.next}while(i);du=!1}}function C1(){ag()}function ag(){sr=fu=!1;var e=0;Zn!==0&&z1()&&(e=Zn);for(var t=Tt(),i=null,r=ir;r!==null;){var c=r.next,f=ig(r,t);f===0?(r.next=null,i===null?ir=c:i.next=c,c===null&&(gi=i)):(i=r,(e!==0||(f&3)!==0)&&(sr=!0)),r=c}Ze!==0&&Ze!==5||ys(e),Zn!==0&&(Zn=0)}function ig(e,t){for(var i=e.suspendedLanes,r=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes&-62914561;0S)break;var P=C.transferSize,H=C.initiatorType;P&&mg(H)&&(C=C.responseEnd,p+=P*(C"u"?null:document;function Ag(e,t,i){var r=yi;if(r&&typeof t=="string"&&t){var c=zt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof i=="string"&&(c+='[crossorigin="'+i+'"]'),Dg.has(c)||(Dg.add(c),e={rel:e,crossOrigin:i,href:t},r.querySelector(c)===null&&(t=r.createElement("link"),ot(t,"link",e),et(t),r.head.appendChild(t)))}}function G1(e){kn.D(e),Ag("dns-prefetch",e,null)}function q1(e,t){kn.C(e,t),Ag("preconnect",e,t)}function K1(e,t,i){kn.L(e,t,i);var r=yi;if(r&&e&&t){var c='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&i&&i.imageSrcSet?(c+='[imagesrcset="'+zt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(c+='[imagesizes="'+zt(i.imageSizes)+'"]')):c+='[href="'+zt(e)+'"]';var f=c;switch(t){case"style":f=vi(e);break;case"script":f=bi(e)}It.has(f)||(e=v({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),It.set(f,e),r.querySelector(c)!==null||t==="style"&&r.querySelector(xs(f))||t==="script"&&r.querySelector(Ts(f))||(t=r.createElement("link"),ot(t,"link",e),et(t),r.head.appendChild(t)))}}function Y1(e,t){kn.m(e,t);var i=yi;if(i&&e){var r=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+zt(r)+'"][href="'+zt(e)+'"]',f=c;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=bi(e)}if(!It.has(f)&&(e=v({rel:"modulepreload",href:e},t),It.set(f,e),i.querySelector(c)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Ts(f)))return}r=i.createElement("link"),ot(r,"link",e),et(r),i.head.appendChild(r)}}}function X1(e,t,i){kn.S(e,t,i);var r=yi;if(r&&e){var c=_a(r).hoistableStyles,f=vi(e);t=t||"default";var p=c.get(f);if(!p){var S={loading:0,preload:null};if(p=r.querySelector(xs(f)))S.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},i),(i=It.get(f))&&Mu(e,i);var C=p=r.createElement("link");et(C),ot(C,"link",e),C._p=new Promise(function(N,P){C.onload=N,C.onerror=P}),C.addEventListener("load",function(){S.loading|=1}),C.addEventListener("error",function(){S.loading|=2}),S.loading|=4,ur(p,t,r)}p={type:"stylesheet",instance:p,count:1,state:S},c.set(f,p)}}}function Q1(e,t){kn.X(e,t);var i=yi;if(i&&e){var r=_a(i).hoistableScripts,c=bi(e),f=r.get(c);f||(f=i.querySelector(Ts(c)),f||(e=v({src:e,async:!0},t),(t=It.get(c))&&ku(e,t),f=i.createElement("script"),et(f),ot(f,"link",e),i.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},r.set(c,f))}}function Z1(e,t){kn.M(e,t);var i=yi;if(i&&e){var r=_a(i).hoistableScripts,c=bi(e),f=r.get(c);f||(f=i.querySelector(Ts(c)),f||(e=v({src:e,async:!0,type:"module"},t),(t=It.get(c))&&ku(e,t),f=i.createElement("script"),et(f),ot(f,"link",e),i.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},r.set(c,f))}}function Eg(e,t,i,r){var c=(c=Rn.current)?cr(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=vi(i.href),i=_a(c).hoistableStyles,r=i.get(t),r||(r={type:"style",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=vi(i.href);var f=_a(c).hoistableStyles,p=f.get(e);if(p||(c=c.ownerDocument||c,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,p),(f=c.querySelector(xs(e)))&&!f._p&&(p.instance=f,p.state.loading=5),It.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},It.set(e,i),f||$1(c,e,i,p.state))),t&&r===null)throw Error(o(528,""));return p}if(t&&r!==null)throw Error(o(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=bi(i),i=_a(c).hoistableScripts,r=i.get(t),r||(r={type:"script",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function vi(e){return'href="'+zt(e)+'"'}function xs(e){return'link[rel="stylesheet"]['+e+"]"}function Mg(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function $1(e,t,i,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),ot(t,"link",i),et(t),e.head.appendChild(t))}function bi(e){return'[src="'+zt(e)+'"]'}function Ts(e){return"script[async]"+e}function kg(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+zt(i.href)+'"]');if(r)return t.instance=r,et(r),r;var c=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),et(r),ot(r,"style",c),ur(r,i.precedence,e),t.instance=r;case"stylesheet":c=vi(i.href);var f=e.querySelector(xs(c));if(f)return t.state.loading|=4,t.instance=f,et(f),f;r=Mg(i),(c=It.get(c))&&Mu(r,c),f=(e.ownerDocument||e).createElement("link"),et(f);var p=f;return p._p=new Promise(function(S,C){p.onload=S,p.onerror=C}),ot(f,"link",r),t.state.loading|=4,ur(f,i.precedence,e),t.instance=f;case"script":return f=bi(i.src),(c=e.querySelector(Ts(f)))?(t.instance=c,et(c),c):(r=i,(c=It.get(f))&&(r=v({},i),ku(r,c)),e=e.ownerDocument||e,c=e.createElement("script"),et(c),ot(c,"link",r),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,ur(r,i.precedence,e));return t.instance}function ur(e,t,i){for(var r=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=r.length?r[r.length-1]:null,f=c,p=0;p title"):null)}function W1(e,t,i){if(i===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function jg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function J1(e,t,i,r){if(i.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var c=vi(r.href),f=t.querySelector(xs(c));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=dr.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=f,et(f);return}f=t.ownerDocument||t,r=Mg(r),(c=It.get(c))&&Mu(r,c),f=f.createElement("link"),et(f);var p=f;p._p=new Promise(function(S,C){p.onload=S,p.onerror=C}),ot(f,"link",r),i.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=dr.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var Nu=0;function ew(e,t){return e.stylesheets&&e.count===0&&mr(e,e.stylesheets),0Nu?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(c)}}:null}function dr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var hr=null;function mr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,hr=new Map,t.forEach(tw,e),hr=null,dr.call(e))}function tw(e,t){if(!(t.state.loading&4)){var i=hr.get(e);if(i)var r=i.get(null);else{i=new Map,hr.set(e,i);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Uu.exports=qC(),Uu.exports}var YC=KC();const{slice:XC,forEach:QC}=[];function ZC(n){return QC.call(XC.call(arguments,1),a=>{if(a)for(const s in a)n[s]===void 0&&(n[s]=a[s])}),n}function $C(n){return typeof n!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(s=>s.test(n))}const Jg=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,WC=function(n,a){const o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},l=encodeURIComponent(a);let u=`${n}=${l}`;if(o.maxAge>0){const d=o.maxAge-0;if(Number.isNaN(d))throw new Error("maxAge should be a Number");u+=`; Max-Age=${Math.floor(d)}`}if(o.domain){if(!Jg.test(o.domain))throw new TypeError("option domain is invalid");u+=`; Domain=${o.domain}`}if(o.path){if(!Jg.test(o.path))throw new TypeError("option path is invalid");u+=`; Path=${o.path}`}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");u+=`; Expires=${o.expires.toUTCString()}`}if(o.httpOnly&&(u+="; HttpOnly"),o.secure&&(u+="; Secure"),o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o.partitioned&&(u+="; Partitioned"),u},ey={create(n,a,s,o){let l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};s&&(l.expires=new Date,l.expires.setTime(l.expires.getTime()+s*60*1e3)),o&&(l.domain=o),document.cookie=WC(n,a,l)},read(n){const a=`${n}=`,s=document.cookie.split(";");for(let o=0;o-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const u=o.substring(1).split("&");for(let d=0;d0&&u[d].substring(0,h)===a&&(s=u[d].substring(h+1))}}return s}},tD={name:"hash",lookup(n){let{lookupHash:a,lookupFromHashIndex:s}=n,o;if(typeof window<"u"){const{hash:l}=window.location;if(l&&l.length>2){const u=l.substring(1);if(a){const d=u.split("&");for(let h=0;h0&&d[h].substring(0,m)===a&&(o=d[h].substring(m+1))}}if(o)return o;if(!o&&s>-1){const d=l.match(/\/([a-zA-Z-]*)/g);return Array.isArray(d)?d[typeof s=="number"?s:0]?.replace("/",""):void 0}}}return o}};let xi=null;const ty=()=>{if(xi!==null)return xi;try{if(xi=typeof window<"u"&&window.localStorage!==null,!xi)return!1;const n="i18next.translate.boo";window.localStorage.setItem(n,"foo"),window.localStorage.removeItem(n)}catch{xi=!1}return xi};var nD={name:"localStorage",lookup(n){let{lookupLocalStorage:a}=n;if(a&&ty())return window.localStorage.getItem(a)||void 0},cacheUserLanguage(n,a){let{lookupLocalStorage:s}=a;s&&ty()&&window.localStorage.setItem(s,n)}};let Ti=null;const ny=()=>{if(Ti!==null)return Ti;try{if(Ti=typeof window<"u"&&window.sessionStorage!==null,!Ti)return!1;const n="i18next.translate.boo";window.sessionStorage.setItem(n,"foo"),window.sessionStorage.removeItem(n)}catch{Ti=!1}return Ti};var aD={name:"sessionStorage",lookup(n){let{lookupSessionStorage:a}=n;if(a&&ny())return window.sessionStorage.getItem(a)||void 0},cacheUserLanguage(n,a){let{lookupSessionStorage:s}=a;s&&ny()&&window.sessionStorage.setItem(s,n)}},iD={name:"navigator",lookup(n){const a=[];if(typeof navigator<"u"){const{languages:s,userLanguage:o,language:l}=navigator;if(s)for(let u=0;u0?a:void 0}},sD={name:"htmlTag",lookup(n){let{htmlTag:a}=n,s;const o=a||(typeof document<"u"?document.documentElement:null);return o&&typeof o.getAttribute=="function"&&(s=o.getAttribute("lang")),s}},oD={name:"path",lookup(n){let{lookupFromPathIndex:a}=n;if(typeof window>"u")return;const s=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof a=="number"?a:0]?.replace("/",""):void 0}},rD={name:"subdomain",lookup(n){let{lookupFromSubdomainIndex:a}=n;const s=typeof a=="number"?a+1:1,o=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(o)return o[s]}};let Rb=!1;try{document.cookie,Rb=!0}catch{}const jb=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Rb||jb.splice(1,1);const lD=()=>({order:jb,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:n=>n});class Ob{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(a,s)}init(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=a,this.options=ZC(s,this.options||{},lD()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=l=>l.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(JC),this.addDetector(eD),this.addDetector(nD),this.addDetector(aD),this.addDetector(iD),this.addDetector(sD),this.addDetector(oD),this.addDetector(rD),this.addDetector(tD)}addDetector(a){return this.detectors[a.name]=a,this}detect(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,s=[];return a.forEach(o=>{if(this.detectors[o]){let l=this.detectors[o].lookup(this.options);l&&typeof l=="string"&&(l=[l]),l&&(s=s.concat(l))}}),s=s.filter(o=>o!=null&&!$C(o)).map(o=>this.options.convertDetectedLanguage(o)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?s:s.length>0?s[0]:null}cacheUserLanguage(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;s&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(a)>-1||s.forEach(o=>{this.detectors[o]&&this.detectors[o].cacheUserLanguage(a,this.options)}))}}Ob.type="languageDetector";var _u={};const ae=n=>typeof n=="string",Ms=()=>{let n,a;const s=new Promise((o,l)=>{n=o,a=l});return s.resolve=n,s.reject=a,s},ay=n=>n==null?"":""+n,cD=(n,a,s)=>{n.forEach(o=>{a[o]&&(s[o]=a[o])})},uD=/###/g,iy=n=>n&&n.indexOf("###")>-1?n.replace(uD,"."):n,sy=n=>!n||ae(n),Os=(n,a,s)=>{const o=ae(a)?a.split("."):a;let l=0;for(;l{const{obj:o,k:l}=Os(n,a,Object);if(o!==void 0||a.length===1){o[l]=s;return}let u=a[a.length-1],d=a.slice(0,a.length-1),h=Os(n,d,Object);for(;h.obj===void 0&&d.length;)u=`${d[d.length-1]}.${u}`,d=d.slice(0,d.length-1),h=Os(n,d,Object),h?.obj&&typeof h.obj[`${h.k}.${u}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${u}`]=s},fD=(n,a,s,o)=>{const{obj:l,k:u}=Os(n,a,Object);l[u]=l[u]||[],l[u].push(s)},Gr=(n,a)=>{const{obj:s,k:o}=Os(n,a);if(s&&Object.prototype.hasOwnProperty.call(s,o))return s[o]},dD=(n,a,s)=>{const o=Gr(n,s);return o!==void 0?o:Gr(a,s)},Lb=(n,a,s)=>{for(const o in a)o!=="__proto__"&&o!=="constructor"&&(o in n?ae(n[o])||n[o]instanceof String||ae(a[o])||a[o]instanceof String?s&&(n[o]=a[o]):Lb(n[o],a[o],s):n[o]=a[o]);return n},Ea=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var hD={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const mD=n=>ae(n)?n.replace(/[&<>"'\/]/g,a=>hD[a]):n;class pD{constructor(a){this.capacity=a,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(a){const s=this.regExpMap.get(a);if(s!==void 0)return s;const o=new RegExp(a);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(a,o),this.regExpQueue.push(a),o}}const gD=[" ",",","?","!",";"],yD=new pD(20),vD=(n,a,s)=>{a=a||"",s=s||"";const o=gD.filter(d=>a.indexOf(d)<0&&s.indexOf(d)<0);if(o.length===0)return!0;const l=yD.getRegExp(`(${o.map(d=>d==="?"?"\\?":d).join("|")})`);let u=!l.test(n);if(!u){const d=n.indexOf(s);d>0&&!l.test(n.substring(0,d))&&(u=!0)}return u},pf=(n,a,s=".")=>{if(!n)return;if(n[a])return Object.prototype.hasOwnProperty.call(n,a)?n[a]:void 0;const o=a.split(s);let l=n;for(let u=0;u-1&&mn?.replace(/_/g,"-"),bD={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,a){console?.[n]?.apply?.(console,a)}};class qr{constructor(a,s={}){this.init(a,s)}init(a,s={}){this.prefix=s.prefix||"i18next:",this.logger=a||bD,this.options=s,this.debug=s.debug}log(...a){return this.forward(a,"log","",!0)}warn(...a){return this.forward(a,"warn","",!0)}error(...a){return this.forward(a,"error","")}deprecate(...a){return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(a,s,o,l){return l&&!this.debug?null:(ae(a[0])&&(a[0]=`${o}${this.prefix} ${a[0]}`),this.logger[s](a))}create(a){return new qr(this.logger,{prefix:`${this.prefix}:${a}:`,...this.options})}clone(a){return a=a||this.options,a.prefix=a.prefix||this.prefix,new qr(this.logger,a)}}var ln=new qr;class ul{constructor(){this.observers={}}on(a,s){return a.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const l=this.observers[o].get(s)||0;this.observers[o].set(s,l+1)}),this}off(a,s){if(this.observers[a]){if(!s){delete this.observers[a];return}this.observers[a].delete(s)}}emit(a,...s){this.observers[a]&&Array.from(this.observers[a].entries()).forEach(([l,u])=>{for(let d=0;d{for(let d=0;d-1&&this.options.ns.splice(s,1)}getResource(a,s,o,l={}){const u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,d=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;a.indexOf(".")>-1?h=a.split("."):(h=[a,s],o&&(Array.isArray(o)?h.push(...o):ae(o)&&u?h.push(...o.split(u)):h.push(o)));const m=Gr(this.data,h);return!m&&!s&&!o&&a.indexOf(".")>-1&&(a=h[0],s=h[1],o=h.slice(2).join(".")),m||!d||!ae(o)?m:pf(this.data?.[a]?.[s],o,u)}addResource(a,s,o,l,u={silent:!1}){const d=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator;let h=[a,s];o&&(h=h.concat(d?o.split(d):o)),a.indexOf(".")>-1&&(h=a.split("."),l=s,s=h[1]),this.addNamespaces(s),oy(this.data,h,l),u.silent||this.emit("added",a,s,o,l)}addResources(a,s,o,l={silent:!1}){for(const u in o)(ae(o[u])||Array.isArray(o[u]))&&this.addResource(a,s,u,o[u],{silent:!0});l.silent||this.emit("added",a,s,o)}addResourceBundle(a,s,o,l,u,d={silent:!1,skipCopy:!1}){let h=[a,s];a.indexOf(".")>-1&&(h=a.split("."),l=o,o=s,s=h[1]),this.addNamespaces(s);let m=Gr(this.data,h)||{};d.skipCopy||(o=JSON.parse(JSON.stringify(o))),l?Lb(m,o,u):m={...m,...o},oy(this.data,h,m),d.silent||this.emit("added",a,s,o)}removeResourceBundle(a,s){this.hasResourceBundle(a,s)&&delete this.data[a][s],this.removeNamespaces(s),this.emit("removed",a,s)}hasResourceBundle(a,s){return this.getResource(a,s)!==void 0}getResourceBundle(a,s){return s||(s=this.options.defaultNS),this.getResource(a,s)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){const s=this.getDataByLanguage(a);return!!(s&&Object.keys(s)||[]).find(l=>s[l]&&Object.keys(s[l]).length>0)}toJSON(){return this.data}}var zb={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,a,s,o,l){return n.forEach(u=>{a=this.processors[u]?.process(a,s,o,l)??a}),a}};const Bb=Symbol("i18next/PATH_KEY");function SD(){const n=[],a=Object.create(null);let s;return a.get=(o,l)=>(s?.revoke?.(),l===Bb?n:(n.push(l),s=Proxy.revocable(o,a),s.proxy)),Proxy.revocable(Object.create(null),a).proxy}function Ei(n,a){const{[Bb]:s}=n(SD()),o=a?.keySeparator??".",l=a?.nsSeparator??":";if(s.length>1&&l){const u=a?.ns,d=Array.isArray(u)?u:null;if(d&&d.length>1&&d.slice(1).includes(s[0]))return`${s[0]}${l}${s.slice(1).join(o)}`}return s.join(o)}const ly={},Hu=n=>!ae(n)&&typeof n!="boolean"&&typeof n!="number";class Kr extends ul{constructor(a,s={}){super(),cD(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ln.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a,s={interpolation:{}}){const o={...s};if(a==null)return!1;const l=this.resolve(a,o);if(l?.res===void 0)return!1;const u=Hu(l.res);return!(o.returnObjects===!1&&u)}extractFromKey(a,s){let o=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let u=s.ns||this.options.defaultNS||[];const d=o&&a.indexOf(o)>-1,h=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!vD(a,o,l);if(d&&!h){const m=a.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:a,namespaces:ae(u)?[u]:u};const g=a.split(o);(o!==l||o===l&&this.options.ns.indexOf(g[0])>-1)&&(u=g.shift()),a=g.join(l)}return{key:a,namespaces:ae(u)?[u]:u}}translate(a,s,o){let l=typeof s=="object"?{...s}:s;if(typeof l!="object"&&this.options.overloadTranslationOptionHandler&&(l=this.options.overloadTranslationOptionHandler(arguments)),typeof l=="object"&&(l={...l}),l||(l={}),a==null)return"";typeof a=="function"&&(a=Ei(a,{...this.options,...l})),Array.isArray(a)||(a=[String(a)]),a=a.map(le=>typeof le=="function"?Ei(le,{...this.options,...l}):String(le));const u=l.returnDetails!==void 0?l.returnDetails:this.options.returnDetails,d=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,{key:h,namespaces:m}=this.extractFromKey(a[a.length-1],l),g=m[m.length-1];let b=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;b===void 0&&(b=":");const v=l.lng||this.language,x=l.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v?.toLowerCase()==="cimode")return x?u?{res:`${g}${b}${h}`,usedKey:h,exactUsedKey:h,usedLng:v,usedNS:g,usedParams:this.getUsedParamsDetails(l)}:`${g}${b}${h}`:u?{res:h,usedKey:h,exactUsedKey:h,usedLng:v,usedNS:g,usedParams:this.getUsedParamsDetails(l)}:h;const D=this.resolve(a,l);let w=D?.res;const R=D?.usedKey||h,L=D?.exactUsedKey||h,M=["[object Number]","[object Function]","[object RegExp]"],V=l.joinArrays!==void 0?l.joinArrays:this.options.joinArrays,z=!this.i18nFormat||this.i18nFormat.handleAsObject,j=l.count!==void 0&&!ae(l.count),F=Kr.hasDefaultValue(l),X=j?this.pluralResolver.getSuffix(v,l.count,l):"",ie=l.ordinal&&j?this.pluralResolver.getSuffix(v,l.count,{ordinal:!1}):"",Q=j&&!l.ordinal&&l.count===0,G=Q&&l[`defaultValue${this.options.pluralSeparator}zero`]||l[`defaultValue${X}`]||l[`defaultValue${ie}`]||l.defaultValue;let I=w;z&&!w&&F&&(I=G);const ee=Hu(I),ne=Object.prototype.toString.apply(I);if(z&&I&&ee&&M.indexOf(ne)<0&&!(ae(V)&&Array.isArray(I))){if(!l.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const le=this.options.returnedObjectHandler?this.options.returnedObjectHandler(R,I,{...l,ns:m}):`key '${h} (${this.language})' returned an object instead of string.`;return u?(D.res=le,D.usedParams=this.getUsedParamsDetails(l),D):le}if(d){const le=Array.isArray(I),ye=le?[]:{},Be=le?L:R;for(const U in I)if(Object.prototype.hasOwnProperty.call(I,U)){const q=`${Be}${d}${U}`;F&&!w?ye[U]=this.translate(q,{...l,defaultValue:Hu(G)?G[U]:void 0,joinArrays:!1,ns:m}):ye[U]=this.translate(q,{...l,joinArrays:!1,ns:m}),ye[U]===q&&(ye[U]=I[U])}w=ye}}else if(z&&ae(V)&&Array.isArray(w))w=w.join(V),w&&(w=this.extendTranslation(w,a,l,o));else{let le=!1,ye=!1;!this.isValidLookup(w)&&F&&(le=!0,w=G),this.isValidLookup(w)||(ye=!0,w=h);const U=(l.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ye?void 0:w,q=F&&G!==w&&this.options.updateMissing;if(ye||le||q){if(this.logger.log(q?"updateKey":"missingKey",v,g,h,q?G:w),d){const de=this.resolve(h,{...l,keySeparator:!1});de&&de.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Y=[];const se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,l.lng||this.language);if(this.options.saveMissingTo==="fallback"&&se&&se[0])for(let de=0;de{const Fe=F&&he!==w?he:U;this.options.missingKeyHandler?this.options.missingKeyHandler(de,g,ve,Fe,q,l):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(de,g,ve,Fe,q,l),this.emit("missingKey",de,g,ve,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?Y.forEach(de=>{const ve=this.pluralResolver.getSuffixes(de,l);Q&&l[`defaultValue${this.options.pluralSeparator}zero`]&&ve.indexOf(`${this.options.pluralSeparator}zero`)<0&&ve.push(`${this.options.pluralSeparator}zero`),ve.forEach(he=>{fe([de],h+he,l[`defaultValue${he}`]||G)})}):fe(Y,h,G))}w=this.extendTranslation(w,a,l,D,o),ye&&w===h&&this.options.appendNamespaceToMissingKey&&(w=`${g}${b}${h}`),(ye||le)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${g}${b}${h}`:h,le?w:void 0,l))}return u?(D.res=w,D.usedParams=this.getUsedParamsDetails(l),D):w}extendTranslation(a,s,o,l,u){if(this.i18nFormat?.parse)a=this.i18nFormat.parse(a,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const m=ae(a)&&(o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let g;if(m){const v=a.match(this.interpolator.nestingRegexp);g=v&&v.length}let b=o.replace&&!ae(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(b={...this.options.interpolation.defaultVariables,...b}),a=this.interpolator.interpolate(a,b,o.lng||this.language||l.usedLng,o),m){const v=a.match(this.interpolator.nestingRegexp),x=v&&v.length;gu?.[0]===v[0]&&!o.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${s[0]}`),null):this.translate(...v,s),o)),o.interpolation&&this.interpolator.reset()}const d=o.postProcess||this.options.postProcess,h=ae(d)?[d]:d;return a!=null&&h?.length&&o.applyPostProcessor!==!1&&(a=zb.handle(h,a,s,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...l,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),a}resolve(a,s={}){let o,l,u,d,h;return ae(a)&&(a=[a]),Array.isArray(a)&&(a=a.map(m=>typeof m=="function"?Ei(m,{...this.options,...s}):m)),a.forEach(m=>{if(this.isValidLookup(o))return;const g=this.extractFromKey(m,s),b=g.key;l=b;let v=g.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const x=s.count!==void 0&&!ae(s.count),D=x&&!s.ordinal&&s.count===0,w=s.context!==void 0&&(ae(s.context)||typeof s.context=="number")&&s.context!=="",R=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);v.forEach(L=>{this.isValidLookup(o)||(h=L,!ly[`${R[0]}-${L}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(h)&&(ly[`${R[0]}-${L}`]=!0,this.logger.warn(`key "${l}" for languages "${R.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),R.forEach(M=>{if(this.isValidLookup(o))return;d=M;const V=[b];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(V,b,M,L,s);else{let j;x&&(j=this.pluralResolver.getSuffix(M,s.count,s));const F=`${this.options.pluralSeparator}zero`,X=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(x&&(s.ordinal&&j.indexOf(X)===0&&V.push(b+j.replace(X,this.options.pluralSeparator)),V.push(b+j),D&&V.push(b+F)),w){const ie=`${b}${this.options.contextSeparator||"_"}${s.context}`;V.push(ie),x&&(s.ordinal&&j.indexOf(X)===0&&V.push(ie+j.replace(X,this.options.pluralSeparator)),V.push(ie+j),D&&V.push(ie+F))}}let z;for(;z=V.pop();)this.isValidLookup(o)||(u=z,o=this.getResource(M,L,z,s))}))})}),{res:o,usedKey:l,exactUsedKey:u,usedLng:d,usedNS:h}}isValidLookup(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}getResource(a,s,o,l={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(a,s,o,l):this.resourceStore.getResource(a,s,o,l)}getUsedParamsDetails(a={}){const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=a.replace&&!ae(a.replace);let l=o?a.replace:a;if(o&&typeof a.count<"u"&&(l.count=a.count),this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),!o){l={...l};for(const u of s)delete l[u]}return l}static hasDefaultValue(a){const s="defaultValue";for(const o in a)if(Object.prototype.hasOwnProperty.call(a,o)&&s===o.substring(0,s.length)&&a[o]!==void 0)return!0;return!1}}class cy{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ln.create("languageUtils")}getScriptPartFromCode(a){if(a=Hs(a),!a||a.indexOf("-")<0)return null;const s=a.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(a){if(a=Hs(a),!a||a.indexOf("-")<0)return a;const s=a.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(a){if(ae(a)&&a.indexOf("-")>-1){let s;try{s=Intl.getCanonicalLocales(a)[0]}catch{}return s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s||(this.options.lowerCaseLng?a.toLowerCase():a)}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){if(!a)return null;let s;return a.forEach(o=>{if(s)return;const l=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(l))&&(s=l)}),!s&&this.options.supportedLngs&&a.forEach(o=>{if(s)return;const l=this.getScriptPartFromCode(o);if(this.isSupportedCode(l))return s=l;const u=this.getLanguagePartFromCode(o);if(this.isSupportedCode(u))return s=u;s=this.options.supportedLngs.find(d=>{if(d===u)return d;if(!(d.indexOf("-")<0&&u.indexOf("-")<0)&&(d.indexOf("-")>0&&u.indexOf("-")<0&&d.substring(0,d.indexOf("-"))===u||d.indexOf(u)===0&&u.length>1))return d})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(a,s){if(!a)return[];if(typeof a=="function"&&(a=a(s)),ae(a)&&(a=[a]),Array.isArray(a))return a;if(!s)return a.default||[];let o=a[s];return o||(o=a[this.getScriptPartFromCode(s)]),o||(o=a[this.formatLanguageCode(s)]),o||(o=a[this.getLanguagePartFromCode(s)]),o||(o=a.default),o||[]}toResolveHierarchy(a,s){const o=this.getFallbackCodes((s===!1?[]:s)||this.options.fallbackLng||[],a),l=[],u=d=>{d&&(this.isSupportedCode(d)?l.push(d):this.logger.warn(`rejecting language code not found in supportedLngs: ${d}`))};return ae(a)&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&u(this.formatLanguageCode(a)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&u(this.getScriptPartFromCode(a)),this.options.load!=="currentOnly"&&u(this.getLanguagePartFromCode(a))):ae(a)&&u(this.formatLanguageCode(a)),o.forEach(d=>{l.indexOf(d)<0&&u(this.formatLanguageCode(d))}),l}}const uy={zero:0,one:1,two:2,few:3,many:4,other:5},fy={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class xD{constructor(a,s={}){this.languageUtils=a,this.options=s,this.logger=ln.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(a,s={}){const o=Hs(a==="dev"?"en":a),l=s.ordinal?"ordinal":"cardinal",u=JSON.stringify({cleanedCode:o,type:l});if(u in this.pluralRulesCache)return this.pluralRulesCache[u];let d;try{d=new Intl.PluralRules(o,{type:l})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),fy;if(!a.match(/-|_/))return fy;const m=this.languageUtils.getLanguagePartFromCode(a);d=this.getRule(m,s)}return this.pluralRulesCache[u]=d,d}needsPlural(a,s={}){let o=this.getRule(a,s);return o||(o=this.getRule("dev",s)),o?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(a,s,o={}){return this.getSuffixes(a,o).map(l=>`${s}${l}`)}getSuffixes(a,s={}){let o=this.getRule(a,s);return o||(o=this.getRule("dev",s)),o?o.resolvedOptions().pluralCategories.sort((l,u)=>uy[l]-uy[u]).map(l=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${l}`):[]}getSuffix(a,s,o={}){const l=this.getRule(a,o);return l?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${l.select(s)}`:(this.logger.warn(`no plural rule found for: ${a}`),this.getSuffix("dev",s,o))}}const dy=(n,a,s,o=".",l=!0)=>{let u=dD(n,a,s);return!u&&l&&ae(s)&&(u=pf(n,s,o),u===void 0&&(u=pf(a,s,o))),u},Fu=n=>n.replace(/\$/g,"$$$$");class hy{constructor(a={}){this.logger=ln.create("interpolator"),this.options=a,this.format=a?.interpolation?.format||(s=>s),this.init(a)}init(a={}){a.interpolation||(a.interpolation={escapeValue:!0});const{escape:s,escapeValue:o,useRawValueToEscape:l,prefix:u,prefixEscaped:d,suffix:h,suffixEscaped:m,formatSeparator:g,unescapeSuffix:b,unescapePrefix:v,nestingPrefix:x,nestingPrefixEscaped:D,nestingSuffix:w,nestingSuffixEscaped:R,nestingOptionsSeparator:L,maxReplaces:M,alwaysFormat:V}=a.interpolation;this.escape=s!==void 0?s:mD,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=l!==void 0?l:!1,this.prefix=u?Ea(u):d||"{{",this.suffix=h?Ea(h):m||"}}",this.formatSeparator=g||",",this.unescapePrefix=b?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":b||"",this.nestingPrefix=x?Ea(x):D||Ea("$t("),this.nestingSuffix=w?Ea(w):R||Ea(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=M||1e3,this.alwaysFormat=V!==void 0?V:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const a=(s,o)=>s?.source===o?(s.lastIndex=0,s):new RegExp(o,"g");this.regexp=a(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=a(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=a(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(a,s,o,l){let u,d,h;const m=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},g=D=>{if(D.indexOf(this.formatSeparator)<0){const M=dy(s,m,D,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(M,void 0,o,{...l,...s,interpolationkey:D}):M}const w=D.split(this.formatSeparator),R=w.shift().trim(),L=w.join(this.formatSeparator).trim();return this.format(dy(s,m,R,this.options.keySeparator,this.options.ignoreJSONStructure),L,o,{...l,...s,interpolationkey:R})};this.resetRegExp();const b=l?.missingInterpolationHandler||this.options.missingInterpolationHandler,v=l?.interpolation?.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:D=>Fu(D)},{regex:this.regexp,safeValue:D=>this.escapeValue?Fu(this.escape(D)):Fu(D)}].forEach(D=>{for(h=0;u=D.regex.exec(a);){const w=u[1].trim();if(d=g(w),d===void 0)if(typeof b=="function"){const L=b(a,u,l);d=ae(L)?L:""}else if(l&&Object.prototype.hasOwnProperty.call(l,w))d="";else if(v){d=u[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${a}`),d="";else!ae(d)&&!this.useRawValueToEscape&&(d=ay(d));const R=D.safeValue(d);if(a=a.replace(u[0],R),v?(D.regex.lastIndex+=d.length,D.regex.lastIndex-=u[0].length):D.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),a}nest(a,s,o={}){let l,u,d;const h=(m,g)=>{const b=this.nestingOptionsSeparator;if(m.indexOf(b)<0)return m;const v=m.split(new RegExp(`${Ea(b)}[ ]*{`));let x=`{${v[1]}`;m=v[0],x=this.interpolate(x,d);const D=x.match(/'/g),w=x.match(/"/g);((D?.length??0)%2===0&&!w||(w?.length??0)%2!==0)&&(x=x.replace(/'/g,'"'));try{d=JSON.parse(x),g&&(d={...g,...d})}catch(R){return this.logger.warn(`failed parsing options string in nesting for key ${m}`,R),`${m}${b}${x}`}return d.defaultValue&&d.defaultValue.indexOf(this.prefix)>-1&&delete d.defaultValue,m};for(;l=this.nestingRegexp.exec(a);){let m=[];d={...o},d=d.replace&&!ae(d.replace)?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;const g=/{.*}/.test(l[1])?l[1].lastIndexOf("}")+1:l[1].indexOf(this.formatSeparator);if(g!==-1&&(m=l[1].slice(g).split(this.formatSeparator).map(b=>b.trim()).filter(Boolean),l[1]=l[1].slice(0,g)),u=s(h.call(this,l[1].trim(),d),d),u&&l[0]===a&&!ae(u))return u;ae(u)||(u=ay(u)),u||(this.logger.warn(`missed to resolve ${l[1]} for nesting ${a}`),u=""),m.length&&(u=m.reduce((b,v)=>this.format(b,v,o.lng,{...o,interpolationkey:l[1].trim()}),u.trim())),a=a.replace(l[0],u),this.regexp.lastIndex=0}return a}}const TD=n=>{let a=n.toLowerCase().trim();const s={};if(n.indexOf("(")>-1){const o=n.split("(");a=o[0].toLowerCase().trim();const l=o[1].substring(0,o[1].length-1);a==="currency"&&l.indexOf(":")<0?s.currency||(s.currency=l.trim()):a==="relativetime"&&l.indexOf(":")<0?s.range||(s.range=l.trim()):l.split(";").forEach(d=>{if(d){const[h,...m]=d.split(":"),g=m.join(":").trim().replace(/^'+|'+$/g,""),b=h.trim();s[b]||(s[b]=g),g==="false"&&(s[b]=!1),g==="true"&&(s[b]=!0),isNaN(g)||(s[b]=parseInt(g,10))}})}return{formatName:a,formatOptions:s}},my=n=>{const a={};return(s,o,l)=>{let u=l;l&&l.interpolationkey&&l.formatParams&&l.formatParams[l.interpolationkey]&&l[l.interpolationkey]&&(u={...u,[l.interpolationkey]:void 0});const d=o+JSON.stringify(u);let h=a[d];return h||(h=n(Hs(o),l),a[d]=h),h(s)}},wD=n=>(a,s,o)=>n(Hs(s),o)(a);class CD{constructor(a={}){this.logger=ln.create("formatter"),this.options=a,this.init(a)}init(a,s={interpolation:{}}){this.formatSeparator=s.interpolation.formatSeparator||",";const o=s.cacheInBuiltFormats?my:wD;this.formats={number:o((l,u)=>{const d=new Intl.NumberFormat(l,{...u});return h=>d.format(h)}),currency:o((l,u)=>{const d=new Intl.NumberFormat(l,{...u,style:"currency"});return h=>d.format(h)}),datetime:o((l,u)=>{const d=new Intl.DateTimeFormat(l,{...u});return h=>d.format(h)}),relativetime:o((l,u)=>{const d=new Intl.RelativeTimeFormat(l,{...u});return h=>d.format(h,u.range||"day")}),list:o((l,u)=>{const d=new Intl.ListFormat(l,{...u});return h=>d.format(h)})}}add(a,s){this.formats[a.toLowerCase().trim()]=s}addCached(a,s){this.formats[a.toLowerCase().trim()]=my(s)}format(a,s,o,l={}){const u=s.split(this.formatSeparator);if(u.length>1&&u[0].indexOf("(")>1&&u[0].indexOf(")")<0&&u.find(h=>h.indexOf(")")>-1)){const h=u.findIndex(m=>m.indexOf(")")>-1);u[0]=[u[0],...u.splice(1,h)].join(this.formatSeparator)}return u.reduce((h,m)=>{const{formatName:g,formatOptions:b}=TD(m);if(this.formats[g]){let v=h;try{const x=l?.formatParams?.[l.interpolationkey]||{},D=x.locale||x.lng||l.locale||l.lng||o;v=this.formats[g](h,D,{...b,...l,...x})}catch(x){this.logger.warn(x)}return v}else this.logger.warn(`there was no format function for ${g}`);return h},a)}}const DD=(n,a)=>{n.pending[a]!==void 0&&(delete n.pending[a],n.pendingCount--)};class AD extends ul{constructor(a,s,o,l={}){super(),this.backend=a,this.store=s,this.services=o,this.languageUtils=o.languageUtils,this.options=l,this.logger=ln.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=l.maxParallelReads||10,this.readingCalls=0,this.maxRetries=l.maxRetries>=0?l.maxRetries:5,this.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(o,l.backend,l)}queueLoad(a,s,o,l){const u={},d={},h={},m={};return a.forEach(g=>{let b=!0;s.forEach(v=>{const x=`${g}|${v}`;!o.reload&&this.store.hasResourceBundle(g,v)?this.state[x]=2:this.state[x]<0||(this.state[x]===1?d[x]===void 0&&(d[x]=!0):(this.state[x]=1,b=!1,d[x]===void 0&&(d[x]=!0),u[x]===void 0&&(u[x]=!0),m[v]===void 0&&(m[v]=!0)))}),b||(h[g]=!0)}),(Object.keys(u).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(u),pending:Object.keys(d),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(m)}}loaded(a,s,o){const l=a.split("|"),u=l[0],d=l[1];s&&this.emit("failedLoading",u,d,s),!s&&o&&this.store.addResourceBundle(u,d,o,void 0,void 0,{skipCopy:!0}),this.state[a]=s?-1:2,s&&o&&(this.state[a]=0);const h={};this.queue.forEach(m=>{fD(m.loaded,[u],d),DD(m,a),s&&m.errors.push(s),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(g=>{h[g]||(h[g]={});const b=m.loaded[g];b.length&&b.forEach(v=>{h[g][v]===void 0&&(h[g][v]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(m=>!m.done)}read(a,s,o,l=0,u=this.retryTimeout,d){if(!a.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:a,ns:s,fcName:o,tried:l,wait:u,callback:d});return}this.readingCalls++;const h=(g,b)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(g&&b&&l{this.read.call(this,a,s,o,l+1,u*2,d)},u);return}d(g,b)},m=this.backend[o].bind(this.backend);if(m.length===2){try{const g=m(a,s);g&&typeof g.then=="function"?g.then(b=>h(null,b)).catch(h):h(null,g)}catch(g){h(g)}return}return m(a,s,h)}prepareLoading(a,s,o={},l){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();ae(a)&&(a=this.languageUtils.toResolveHierarchy(a)),ae(s)&&(s=[s]);const u=this.queueLoad(a,s,o,l);if(!u.toLoad.length)return u.pending.length||l(),null;u.toLoad.forEach(d=>{this.loadOne(d)})}load(a,s,o){this.prepareLoading(a,s,{},o)}reload(a,s,o){this.prepareLoading(a,s,{reload:!0},o)}loadOne(a,s=""){const o=a.split("|"),l=o[0],u=o[1];this.read(l,u,"read",void 0,void 0,(d,h)=>{d&&this.logger.warn(`${s}loading namespace ${u} for language ${l} failed`,d),!d&&h&&this.logger.log(`${s}loaded namespace ${u} for language ${l}`,h),this.loaded(a,d,h)})}saveMissing(a,s,o,l,u,d={},h=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(s)){this.logger.warn(`did not save key "${o}" as the namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend?.create){const m={...d,isUpdate:u},g=this.backend.create.bind(this.backend);if(g.length<6)try{let b;g.length===5?b=g(a,s,o,l,m):b=g(a,s,o,l),b&&typeof b.then=="function"?b.then(v=>h(null,v)).catch(h):h(null,b)}catch(b){h(b)}else g(a,s,o,l,h,m)}!a||!a[0]||this.store.addResource(a[0],s,o,l)}}}const Iu=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:n=>{let a={};if(typeof n[1]=="object"&&(a=n[1]),ae(n[1])&&(a.defaultValue=n[1]),ae(n[2])&&(a.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const s=n[3]||n[2];Object.keys(s).forEach(o=>{a[o]=s[o]})}return a},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),py=n=>(ae(n.ns)&&(n.ns=[n.ns]),ae(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),ae(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs?.indexOf?.("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n),Tr=()=>{},ED=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(s=>{typeof n[s]=="function"&&(n[s]=n[s].bind(n))})},Ub="__i18next_supportNoticeShown",MD=()=>!!(typeof globalThis<"u"&&globalThis[Ub]||typeof process<"u"&&_u&&_u.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&_u),kD=()=>{typeof globalThis<"u"&&(globalThis[Ub]=!0)},ND=n=>!!(n?.modules?.backend?.name?.indexOf("Locize")>0||n?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||n?.options?.backend?.backends&&n.options.backend.backends.some(a=>a?.name?.indexOf("Locize")>0||a?.constructor?.name?.indexOf("Locize")>0)||n?.options?.backend?.projectId||n?.options?.backend?.backendOptions&&n.options.backend.backendOptions.some(a=>a?.projectId));class Ls extends ul{constructor(a={},s){if(super(),this.options=py(a),this.services={},this.logger=ln,this.modules={external:[]},ED(this),s&&!this.isInitialized&&!a.isClone){if(!this.options.initAsync)return this.init(a,s),this;setTimeout(()=>{this.init(a,s)},0)}}init(a={},s){this.isInitializing=!0,typeof a=="function"&&(s=a,a={}),a.defaultNS==null&&a.ns&&(ae(a.ns)?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));const o=Iu();this.options={...o,...this.options,...py(a)},this.options.interpolation={...o.interpolation,...this.options.interpolation},a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=o.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!ND(this)&&!MD()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),kD());const l=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?ln.init(l(this.modules.logger),this.options):ln.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:g=CD;const b=new cy(this.options);this.store=new ry(this.options.resources,this.options);const v=this.services;v.logger=ln,v.resourceStore=this.store,v.languageUtils=b,v.pluralResolver=new xD(b,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==o.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),g&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(v.formatter=l(g),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new hy(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new AD(l(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(D,...w)=>{this.emit(D,...w)}),this.modules.languageDetector&&(v.languageDetector=l(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=l(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new Kr(this.services,this.options),this.translator.on("*",(D,...w)=>{this.emit(D,...w)}),this.modules.external.forEach(D=>{D.init&&D.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Tr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=(...b)=>this.store[g](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=(...b)=>(this.store[g](...b),this)});const h=Ms(),m=()=>{const g=(b,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(v),s(b,v)};if(this.languages&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initAsync?m():setTimeout(m,0),h}loadResources(a,s=Tr){let o=s;const l=ae(a)?a:this.language;if(typeof a=="function"&&(o=a),!this.options.resources||this.options.partialBundledLanguages){if(l?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const u=[],d=h=>{if(!h||h==="cimode")return;this.services.languageUtils.toResolveHierarchy(h).forEach(g=>{g!=="cimode"&&u.indexOf(g)<0&&u.push(g)})};l?d(l):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(m=>d(m)),this.options.preload?.forEach?.(h=>d(h)),this.services.backendConnector.load(u,this.options.ns,h=>{!h&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(h)})}else o(null)}reloadResources(a,s,o){const l=Ms();return typeof a=="function"&&(o=a,a=void 0),typeof s=="function"&&(o=s,s=void 0),a||(a=this.languages),s||(s=this.options.ns),o||(o=Tr),this.services.backendConnector.reload(a,s,u=>{l.resolve(),o(u)}),l}use(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&zb.addPostProcessor(a),a.type==="formatter"&&(this.modules.formatter=a),a.type==="3rdParty"&&this.modules.external.push(a),this}setResolvedLanguage(a){if(!(!a||!this.languages)&&!(["cimode","dev"].indexOf(a)>-1)){for(let s=0;s-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}!this.resolvedLanguage&&this.languages.indexOf(a)<0&&this.store.hasLanguageSomeTranslations(a)&&(this.resolvedLanguage=a,this.languages.unshift(a))}}changeLanguage(a,s){this.isLanguageChangingTo=a;const o=Ms();this.emit("languageChanging",a);const l=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},u=(h,m)=>{m?this.isLanguageChangingTo===a&&(l(m),this.translator.changeLanguage(m),this.isLanguageChangingTo=void 0,this.emit("languageChanged",m),this.logger.log("languageChanged",m)):this.isLanguageChangingTo=void 0,o.resolve((...g)=>this.t(...g)),s&&s(h,(...g)=>this.t(...g))},d=h=>{!a&&!h&&this.services.languageDetector&&(h=[]);const m=ae(h)?h:h&&h[0],g=this.store.hasLanguageSomeTranslations(m)?m:this.services.languageUtils.getBestMatchFromCodes(ae(h)?[h]:h);g&&(this.language||l(g),this.translator.language||this.translator.changeLanguage(g),this.services.languageDetector?.cacheUserLanguage?.(g)),this.loadResources(g,b=>{u(b,g)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(a),o}getFixedT(a,s,o){const l=(u,d,...h)=>{let m;typeof d!="object"?m=this.options.overloadTranslationOptionHandler([u,d].concat(h)):m={...d},m.lng=m.lng||l.lng,m.lngs=m.lngs||l.lngs,m.ns=m.ns||l.ns,m.keyPrefix!==""&&(m.keyPrefix=m.keyPrefix||o||l.keyPrefix);const g={...this.options,...m};typeof m.keyPrefix=="function"&&(m.keyPrefix=Ei(m.keyPrefix,g));const b=this.options.keySeparator||".";let v;return m.keyPrefix&&Array.isArray(u)?v=u.map(x=>(typeof x=="function"&&(x=Ei(x,g)),`${m.keyPrefix}${b}${x}`)):(typeof u=="function"&&(u=Ei(u,g)),v=m.keyPrefix?`${m.keyPrefix}${b}${u}`:u),this.t(v,m)};return ae(a)?l.lng=a:l.lngs=a,l.ns=s,l.keyPrefix=o,l}t(...a){return this.translator?.translate(...a)}exists(...a){return this.translator?.exists(...a)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a,s={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=s.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const d=(h,m)=>{const g=this.services.backendConnector.state[`${h}|${m}`];return g===-1||g===0||g===2};if(s.precheck){const h=s.precheck(this,d);if(h!==void 0)return h}return!!(this.hasResourceBundle(o,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(o,a)&&(!l||d(u,a)))}loadNamespaces(a,s){const o=Ms();return this.options.ns?(ae(a)&&(a=[a]),a.forEach(l=>{this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}),this.loadResources(l=>{o.resolve(),s&&s(l)}),o):(s&&s(),Promise.resolve())}loadLanguages(a,s){const o=Ms();ae(a)&&(a=[a]);const l=this.options.preload||[],u=a.filter(d=>l.indexOf(d)<0&&this.services.languageUtils.isSupportedCode(d));return u.length?(this.options.preload=l.concat(u),this.loadResources(d=>{o.resolve(),s&&s(d)}),o):(s&&s(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!a)return"rtl";try{const l=new Intl.Locale(a);if(l&&l.getTextInfo){const u=l.getTextInfo();if(u&&u.direction)return u.direction}}catch{}const s=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services?.languageUtils||new cy(Iu());return a.toLowerCase().indexOf("-latn")>1?"ltr":s.indexOf(o.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(a={},s){const o=new Ls(a,s);return o.createInstance=Ls.createInstance,o}cloneInstance(a={},s=Tr){const o=a.forkResourceStore;o&&delete a.forkResourceStore;const l={...this.options,...a,isClone:!0},u=new Ls(l);if((a.debug!==void 0||a.prefix!==void 0)&&(u.logger=u.logger.clone(a)),["store","services","language"].forEach(h=>{u[h]=this[h]}),u.services={...this.services},u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},o){const h=Object.keys(this.store.data).reduce((m,g)=>(m[g]={...this.store.data[g]},m[g]=Object.keys(m[g]).reduce((b,v)=>(b[v]={...m[g][v]},b),m[g]),m),{});u.store=new ry(h,l),u.services.resourceStore=u.store}if(a.interpolation){const m={...Iu().interpolation,...this.options.interpolation,...a.interpolation},g={...l,interpolation:m};u.services.interpolator=new hy(g)}return u.translator=new Kr(u.services,l),u.translator.on("*",(h,...m)=>{u.emit(h,...m)}),u.init(l,s),u.translator.options=l,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ut=Ls.createInstance();ut.createInstance;ut.dir;ut.init;ut.loadResources;ut.reloadResources;ut.use;ut.changeLanguage;ut.getFixedT;ut.t;ut.exists;ut.setDefaultNamespace;ut.hasLoadedNamespace;ut.loadNamespaces;ut.loadLanguages;const RD=(n,a,s,o)=>{const l=[s,{code:a,...o||{}}];if(n?.services?.logger?.forward)return n.services.logger.forward(l,"warn","react-i18next::",!0);za(l[0])&&(l[0]=`react-i18next:: ${l[0]}`),n?.services?.logger?.warn?n.services.logger.warn(...l):console?.warn&&console.warn(...l)},gy={},gf=(n,a,s,o)=>{za(s)&&gy[s]||(za(s)&&(gy[s]=new Date),RD(n,a,s,o))},Vb=(n,a)=>()=>{if(n.isInitialized)a();else{const s=()=>{setTimeout(()=>{n.off("initialized",s)},0),a()};n.on("initialized",s)}},yf=(n,a,s)=>{n.loadNamespaces(a,Vb(n,s))},yy=(n,a,s,o)=>{if(za(s)&&(s=[s]),n.options.preload&&n.options.preload.indexOf(a)>-1)return yf(n,s,o);s.forEach(l=>{n.options.ns.indexOf(l)<0&&n.options.ns.push(l)}),n.loadLanguages(a,Vb(n,o))},jD=(n,a,s={})=>!a.languages||!a.languages.length?(gf(a,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:a.languages}),!0):a.hasLoadedNamespace(n,{lng:s.lng,precheck:(o,l)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!l(o.isLanguageChangingTo,n))return!1}}),za=n=>typeof n=="string",OD=n=>typeof n=="object"&&n!==null,LD=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,zD={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},BD=n=>zD[n],UD=n=>n.replace(LD,BD);let vf={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:UD,transDefaultProps:void 0};const VD=(n={})=>{vf={...vf,...n}},PD=()=>vf;let Pb;const _D=n=>{Pb=n},HD=()=>Pb,FD={type:"3rdParty",init(n){VD(n.options.react),_D(n)}},ID=T.createContext();class GD{constructor(){this.usedNamespaces={}}addUsedNamespaces(a){a.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const qD=(n,a)=>{if(za(a))return a;if(OD(a)&&za(a.defaultValue))return a.defaultValue;if(typeof n=="function")return"";if(Array.isArray(n)){const s=n[n.length-1];return typeof s=="function"?"":s}return n},KD={t:qD,ready:!1},YD=()=>()=>{},Nn=(n,a={})=>{const{i18n:s}=a,{i18n:o,defaultNS:l}=T.useContext(ID)||{},u=s||o||HD();u&&!u.reportNamespaces&&(u.reportNamespaces=new GD),u||gf(u,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const d=T.useMemo(()=>({...PD(),...u?.options?.react,...a}),[u,a]),{useSuspense:h,keyPrefix:m}=d,g=l||u?.options?.defaultNS,b=za(g)?[g]:g||["translation"],v=T.useMemo(()=>b,b);u?.reportNamespaces?.addUsedNamespaces?.(v);const x=T.useRef(0),D=T.useCallback(G=>{if(!u)return YD;const{bindI18n:I,bindI18nStore:ee}=d,ne=()=>{x.current+=1,G()};return I&&u.on(I,ne),ee&&u.store.on(ee,ne),()=>{I&&I.split(" ").forEach(le=>u.off(le,ne)),ee&&ee.split(" ").forEach(le=>u.store.off(le,ne))}},[u,d]),w=T.useRef(),R=T.useCallback(()=>{if(!u)return KD;const G=!!(u.isInitialized||u.initializedStoreOnce)&&v.every(Be=>jD(Be,u,d)),I=a.lng||u.language,ee=x.current,ne=w.current;if(ne&&ne.ready===G&&ne.lng===I&&ne.keyPrefix===m&&ne.revision===ee)return ne;const ye={t:u.getFixedT(I,d.nsMode==="fallback"?v:v[0],m),ready:G,lng:I,keyPrefix:m,revision:ee};return w.current=ye,ye},[u,v,m,d,a.lng]),[L,M]=T.useState(0),{t:V,ready:z}=xw.useSyncExternalStore(D,R,R);T.useEffect(()=>{if(u&&!z&&!h){const G=()=>M(I=>I+1);a.lng?yy(u,a.lng,v,G):yf(u,v,G)}},[u,a.lng,v,z,h,L]);const j=u||{},F=T.useRef(null),X=T.useRef(),ie=G=>{const I=Object.getOwnPropertyDescriptors(G);I.__original&&delete I.__original;const ee=Object.create(Object.getPrototypeOf(G),I);if(!Object.prototype.hasOwnProperty.call(ee,"__original"))try{Object.defineProperty(ee,"__original",{value:G,writable:!1,enumerable:!1,configurable:!1})}catch{}return ee},Q=T.useMemo(()=>{const G=j,I=G?.language;let ee=G;G&&(F.current&&F.current.__original===G?X.current!==I?(ee=ie(G),F.current=ee,X.current=I):ee=F.current:(ee=ie(G),F.current=ee,X.current=I));const ne=!z&&!h?(...ye)=>(gf(u,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),V(...ye)):V,le=[ne,ee,z];return le.t=ne,le.i18n=ee,le.ready=z,le},[V,j,z,j.resolvedLanguage,j.language,j.languages]);if(u&&h&&!z)throw new Promise(G=>{const I=()=>G();a.lng?yy(u,a.lng,v,I):yf(u,v,I)});return Q},XD={collapseSidebar:"Collapse sidebar",expandSidebar:"Expand sidebar",toggleConnection:"Toggle backend connection",viewAnnualSummary:"View annual summary",annualSummary:"2025 Annual Summary",searchPlaceholder:"Search...",viewDocs:"View MaiBot docs",docs:"MaiBot Docs",switchToLight:"Switch to light mode",switchToDark:"Switch to dark mode",logout:"Log out",logoutLabel:"Logout",notConnected:"Not connected"},QD={groups:{overview:"Overview",botConfig:"Bot Configuration",botResources:"Bot Resources",extensionsMonitor:"Plugins & Extensions",system:"System"},menu:{home:"Home",botMainConfig:"Bot Main Config",aiModelProvider:"AI Model Providers",modelManagement:"Model Management",promptManagement:"Prompt Management",adapterConfig:"Adapter Config",emojiManagement:"Emoji Management",expressionManagement:"Expression Management",slangManagement:"Slang Management",personInfo:"Person Info",knowledgeGraph:"Long-Term Memory Graph",knowledgeBase:"Long-Term Memory",pluginMarket:"Plugin Market",configTemplate:"Config Templates",pluginConfig:"Plugin Management",mcpSettings:"MCP Settings",logViewer:"Log Viewer",reasoningProcess:"Reasoning Process",maisakaMonitor:"MaiSaka Chat Monitor",localChat:"Local Chat",settings:"Settings"}},ZD={switcherLabel:"Switch MaiBot workspace",settings:"Mai Settings",chat:"Mai Chat"},$D={defaultTab:"WebUI",botNameFallback:"Mai",userFallback:"User",userNameFallback:"WebUI User",virtualGroupFallback:"WebUI Virtual Group",status:{connected:"Connected",connecting:"Connecting...",disconnected:"Disconnected"},actions:{cancel:"Cancel",reconnect:"Reconnect",save:"Save",send:"Send message"},identity:{current:"Current identity:",editName:"Edit nickname",group:"Group: {{group}}",namePlaceholder:"Enter nickname",virtual:"Virtual identity:"},input:{placeholder:"Type a message...",waiting:"Waiting for connection..."},message:{empty:"Start chatting with {{bot}}!",emptyHint:"Type a message below and press Enter to send",errorFallback:"An error occurred",thinking:"Thinking..."},composer:{hint:"Enter to send · Shift + Enter for newline"},sidebar:{closeConversation:"Close {{label}}",conversations:"Chat conversations",emptyPreview:"No messages yet",identityHint:"Local chat identity",newVirtual:"New virtual identity chat",online:"Online",offline:"Offline",subtitle:"{{count}} conversations",title:"Chats",webuiBadge:"WebUI",virtualBadge:"Virtual",profileTitle:"My identity",editName:"Edit nickname",saveName:"Save"},dialog:{create:"Create chat",description:"Choose a user MaiBot already knows and chat as that user. MaiBot will respond using her memory and understanding of that user.",groupName:"Virtual group name (optional)",groupNameHint:"MaiBot will treat this as a group chat with this name",knownUserSuffix:" · Known",loading:"Loading...",noUsers:"No users found",personCount:"({{count}} people)",platform:"Select platform",platformPlaceholder:"Select platform",searchUser:"Search user...",title:"New virtual identity chat",user:"Select user"},media:{audioUnsupported:"Your browser does not support audio playback",emoji:"Emoji",face:"[Face: {{data}}]",file:"[File: {{data}}]",forward:"[Forwarded message]",image:"Image",loadFailed:"[{{type}} failed to load]",music:"[Music share]",noCaptions:"No captions",reply:"[Reply]",unknown:"[{{type}}]",unknownMessage:"Unknown message",videoUnsupported:"Your browser does not support video playback"},toast:{backendUnavailable:"Cannot connect to the backend. Make sure MaiBot is running.",backendUnavailableShort:"Cannot connect to the backend",connectionFailed:"Connection failed",currentSessionUnavailable:"The current chat session is unavailable. Please try again later.",error:"Error",incompleteConfig:"Incomplete configuration",networkError:"Network error",platformFailed:"Failed to load platforms",selectPlatformAndUser:"Please select a platform and user",sendFailed:"Send failed",serverError:"Server returned error: {{status}}",sessionUnavailable:"Cannot open the chat session. Please try again later.",virtualTabCreated:"Virtual identity tab",virtualTabCreatedDesc:"Created a chat for {{label}}"}},WD={verifyingLogin:"Verifying login status...",logoTitle:"MaiBot WebUI",logoTitleShort:"M"},JD={title:"Security notice: ",message:"You are accessing WebUI over HTTP.",description:"Non-local HTTP connections may expose access tokens and configuration data. Use HTTPS or a trusted private network when possible.",dismiss:"Dismiss HTTP security notice"},eA=JSON.parse('{"title":"Settings","description":"Manage your application preferences","tabs":{"appearance":"Appearance","security":"Security","other":"Other","about":"About"},"appearance":{"themeMode":"Theme Mode","themeModeDesc":"Light / Dark / Follow system","light":"Light","dark":"Dark","system":"System","accentColor":"Accent Color","resetDefault":"Reset Default","colorPreview":"Live Color Preview","styleTweaks":"Style Tweaks","typography":"Typography","visualEffects":"Visual Effects","layout":"Layout","animation":"Animation","background":"Background","customCss":"Custom CSS","animationEffect":"Animation Effect","importExportTheme":"Import / Export Theme","importTheme":"Import Theme","exportTheme":"Export Theme","importSuccess":"Import successful","importFailed":"Import failed","resetSuccess":"Reset successful","fontFamily":"Font Family","fontSize":"Font Size","borderRadius":"Border Radius","contentWidth":"Content Width","sidebarWidth":"Sidebar Width","animationSpeed":"Animation Speed","backgroundImage":"Background Image","backgroundBlur":"Background Blur","backgroundOpacity":"Background Opacity","lightDesc":"Always use light theme","darkDesc":"Always use dark theme","systemDesc":"Auto-switch based on system settings","accentPrimary":"Primary Color","accentHint":"Click the color ring or enter a HEX value","resetTheme":"Reset to Default","confirmResetTheme":"Confirm Reset Theme","confirmResetThemeDesc":"This will reset all theme settings to default, including colors, fonts, layout and custom CSS. This cannot be undone, are you sure?","confirmResetAction":"Confirm Reset","cssWarningTitle":"The following have been filtered for safety:","cssPlaceholder":"/* Enter custom CSS here */\\n\\n/* Example: */\\n/* .sidebar { background: #1a1a2e; } */","cssDescription":"Write custom CSS to further personalize the interface. Dangerous CSS (like @import, url()) will be automatically filtered.","clearCss":"Clear","exportDesc":"Export theme as a JSON file for sharing or backup; all settings will be applied automatically on import.","importSuccessDesc":"Theme config imported, page will reload automatically","resetSuccessDesc":"Theme has been reset to default","enableAnimations":"Enable Animations","enableAnimationsDesc":"Disabling this will turn off all transition animations and effects, improving performance","loginWavesBackground":"Login Page Wave Background","loginWavesBackgroundDesc":"Disabling this will use a solid color background on the login page, suitable for low-performance devices","inheritParentBg":"Inherit Parent Background","inheritParentBgDesc":"When enabled, uses the background config from the parent layer","fontFamilyLabel":"Font Family","fontFamilyPlaceholder":"Select font family","fontFamilySystem":"System Default (System)","fontFamilySans":"Sans-serif","fontFamilySerif":"Serif","fontFamilyMono":"Monospace","baseFontSize":"Base Font Size","lineHeight":"Line Height","lineHeightPlaceholder":"Select line height","lineHeightCompact":"Compact (1.2)","lineHeightNormal":"Normal (1.5)","lineHeightLoose":"Loose (1.75)","borderRadiusLabel":"Border Radius","shadowLabel":"Shadow Intensity","shadowPlaceholder":"Select shadow intensity","shadowNone":"None","shadowSm":"Small","shadowMd":"Medium","shadowLg":"Large","shadowXl":"Extra Large","blurLabel":"Blur Effect","sidebarWidthLabel":"Sidebar Width","maxContentWidth":"Max Content Width","spacingUnit":"Spacing Unit","animationSpeedLabel":"Animation Speed","animationSpeedPlaceholder":"Select animation speed","animationFast":"Fast (100ms)","animationNormal":"Normal (300ms)","animationSlow":"Slow (500ms)","animationOff":"Off (0ms)","bgPage":"Page","bgSidebar":"Sidebar","typographyGroup":"Typography","visualGroup":"Visual Effects","layoutGroup":"Layout","animationGroup":"Animation","backgroundGroup":"Background Settings"},"security":{"currentToken":"Current Access Token","yourToken":"Your Access Token","regenerate":"Regenerate","customToken":"Custom Access Token","securityTip":"Security Tips","cannotCopy":"Cannot copy","copySuccess":"Copied","copyFailed":"Copy failed","updateSuccess":"Updated","updateFailed":"Update failed","generateSuccess":"Generated","generateFailed":"Generation failed","newToken":"New Access Token","confirmRegenerate":"Confirm Regenerate Token","confirmRegenerateDesc":"The old token will be invalidated after regeneration. You will need to log in again.","cancel":"Cancel","confirm":"Confirm","cannotCopyDesc":"Token is stored in a secure Cookie. Please regenerate to get a new Token.","copySuccessDesc":"Token copied to clipboard","copyFailedDesc":"Please copy the Token manually","inputError":"Input error","inputErrorDesc":"Please enter a new Token","formatError":"Format error","formatErrorDesc":"Token does not meet requirements: {{failedRules}}","updateSuccessDesc":"Access Token updated. Redirecting to login page.","updateFailedDesc":"Unable to update Token","updateFailedConn":"Failed to connect to server","generateSuccessDesc":"New Access Token generated. Please save it immediately.","generateFailedDesc":"Unable to generate new Token","generateFailedConn":"Failed to connect to server","cannotView":"Cannot view","cannotViewDesc":"Token is stored in a secure Cookie. Click \\"Regenerate\\" to get a new Token.","hide":"Hide","show":"Show","copyTip":"Copy to clipboard","regenerateShort":"Generate","confirmRegenerateFullDesc":"This will generate a new 64-character secure token, immediately invalidating the current Token. You will need to log in again with the new Token. This action cannot be undone. Are you sure?","confirmGenerate":"Confirm Generate","tokenStorePlaceholder":"Token is stored in a secure Cookie","safekeepTip":"Keep your Access Token safe and do not share it with others.","newTokenLabel":"New Access Token","customTokenPlaceholder":"Enter custom Token","tokenReqTitle":"Token security requirements:","tokenValid":"Token format is valid and ready to use","updateBtn":"Update Custom Token","updating":"Updating...","dialogTitle":"New Access Token","dialogDesc":"This is your new Token. Please save it immediately. You will be redirected to the login page after closing this window.","dialogTokenLabel":"Your new Token (64-char secure token)","important":"Important Notice","tip1":"This Token is only shown once and cannot be viewed after closing","tip2":"Copy and save it to a secure location immediately","tip3":"You will be automatically redirected to the login page after closing","tip4":"Use the new Token to log back in","copied":"Copied","copyToken":"Copy Token","savedClose":"Saved, close","securityTip1":"Regenerating creates a new system-generated 64-character secure token","securityTip2":"Custom Tokens must meet all security requirements","securityTip3":"After updating, the old Token will be immediately invalidated","securityTip4":"View and copy your Token only in a secure environment","securityTip5":"If you suspect a Token leak, regenerate or update it immediately","securityTip6":"System-generated Tokens are recommended for maximum security"},"other":{"performance":"Performance & Storage","localStorage":"Local Storage Usage","logCache":"Log Cache Size","importExport":"Import / Export Settings","configWizard":"Config Wizard","devTools":"Developer Tools","clearStorage":"Clear Local Storage","clearStorageDesc":"Clear all local storage data","clearStorageConfirm":"Confirm Clear","clearLogCache":"Clear Log Cache","clearLogCacheDesc":"Clear all cached log data","clearLogCacheConfirm":"Confirm Clear","importSettings":"Import Settings","exportSettings":"Export Settings","resetAllSettings":"Reset All Settings","resetAllSettingsDesc":"Restore all settings to defaults","resetAllSettingsConfirm":"Confirm Reset","clearStorageSuccess":"Local storage cleared","clearStorageFailed":"Failed to clear","clearLogSuccess":"Log cache cleared","clearLogFailed":"Failed to clear","importSuccess":"Import successful","importFailed":"Import failed","exportSuccess":"Export successful","exportFailed":"Export failed","resetSuccess":"Reset successful","resetFailed":"Reset failed","storageItems":"{{count}} storage items","logCacheSizeDesc":"Controls the maximum number of log entries cached. Larger values use more memory.","logCacheSizeUnit":"entries","dataSyncIntervalLabel":"Home Data Refresh Interval","dataSyncIntervalUnit":"s","dataSyncIntervalDesc":"Controls the auto-refresh interval for home page statistics","wsReconnectLabel":"WebSocket Reconnect Interval","wsReconnectUnit":"s","wsReconnectDesc":"Base reconnect interval after log WebSocket disconnects","wsMaxReconnectLabel":"WebSocket Max Reconnect Attempts","wsMaxReconnectUnit":"times","wsMaxReconnectDesc":"Maximum reconnect attempts after connection failure","clearLogCacheFn":"Clear Log Cache","clearLocalCache":"Clear Local Cache","confirmClearCache":"Confirm Clear Local Cache","confirmClearCacheDesc":"This will clear all locally cached settings and data (excluding login credentials). You may need to reconfigure some preferences. Are you sure?","confirmClear":"Confirm Clear","importExportDesc":"Export current interface settings for backup, or restore from a previously exported file.","exporting":"Exporting...","importing":"Importing...","resetAllSettingsBtn":"Reset All Settings to Defaults","confirmResetAll":"Confirm Reset All Settings","confirmResetAllDesc":"This will restore all interface settings to their defaults, including theme, colors, animation, and other preferences. This will not affect your login status. Are you sure?","configWizardDesc":"Re-run the initial setup wizard to reconfigure system basics.","rerunSetup":"Re-run Initial Setup","confirmRerunSetup":"Confirm Re-run Setup","confirmRerunSetupDesc":"This will take you back to the initial setup wizard. You can reconfigure the system basics. Are you sure?","devToolsDesc":"The following features are for development and debugging only. They may cause crashes or abnormal behavior.","triggerError":"Trigger Test Error","confirmTriggerError":"Confirm Trigger Error","confirmTriggerErrorDesc":"This will manually trigger a React error to test the error boundary component. The page will display an error view; you can recover by refreshing the page or clicking Go Home.","confirmTrigger":"Confirm Trigger","logCleared":"Log cleared","logClearedDesc":"Log cache has been cleared","cacheCleared":"Cache cleared","cacheClearedDesc":"Cleared {{count}} cached items","exportSuccessDesc":"Settings exported as a JSON file","exportFailedDesc":"Unable to export settings","importSuccessDesc":"Successfully imported {{imported}} settings","importSkippedSuffix":", skipped {{skipped}}","importRefreshHint":"Note","importRefreshHintDesc":"Some settings require a page refresh to take full effect","importNoDataDesc":"No valid settings to import","importInvalidDesc":"Invalid file format","resetDone":"Reset done","resetDoneDesc":"All settings restored to defaults. Refresh the page to apply changes."},"about":{"openSource":"Open Source","aboutApp":"About MaiBot Dashboard","version":"Version:","author":"Author","techStack":"Tech Stack","frontendFramework":"Frontend Framework","uiComponents":"UI Components","backend":"Backend","buildTool":"Build Tool","openSourceThanks":"Open Source Libraries","openSourceLicense":"Open Source License","openSourceDesc":"This project is open source on GitHub. Give us a Star ⭐!","visitGitHub":"Visit GitHub","appDesc":"A modern Web management interface for MaiBot","maimaiCore":"MaiBot Core","uiFrameworkGroup":"UI Framework & Components","routingStateGroup":"Routing & State Management","formGroup":"Form Handling","utilsGroup":"Utility Libraries","animationGroup":"Animation","backendGroup":"Backend Framework","devToolsGroup":"Developer Tools","openSourceThanksDesc":"This project uses the following excellent open source libraries. Thank you for your contributions:","licenseDesc":"This project is licensed under the GNU General Public License v3.0. You are free to use, modify, and distribute the software, provided you keep the same open source license.","licenseDeps":"All open source libraries used by this project comply with their respective licenses (MIT, Apache-2.0, BSD, etc.). Thank you to all open source contributors for your selfless work.","lib":{"react":"UI library for building user interfaces","shadcn":"Elegant React component library","radix":"Unstyled accessible component primitives","tailwind":"Utility-first CSS framework","lucide":"Beautiful icon library","tanstackRouter":"Type-safe routing library","zustand":"Lightweight state management","reactHookForm":"High-performance form library","zod":"TypeScript-first schema validation","clsx":"Conditional className builder","tailwindMerge":"Tailwind class name merger","cva":"Component variant management","dateFns":"Modern date utility library","framerMotion":"React animation library","vaul":"Drawer component animation","fastapi":"Modern Python web framework","uvicorn":"ASGI server","pydantic":"Data validation library","pythonMultipart":"File upload support","typescript":"Superset of JavaScript","vite":"Next-generation frontend build tool","eslint":"JavaScript code linter"}}}'),tA={title:"Login",description:"Enter your access token to continue",tokenLabel:"Access Token",tokenPlaceholder:"Enter Access Token",loginButton:"Login",loggingIn:"Logging in...",loginFailed:"Login failed",loginSuccess:"Login successful",checkingAuth:"Checking login status...",welcome:"Welcome to MaiBot",accessDesc:"Enter your Access Token to continue accessing the system",tokenRequired:"Please enter your Access Token",verifyingLabel:"Verifying...",verifyEnter:"Verify & Enter",helpLink:"I don't have a Token. Where can I get one?",helpTitle:"How to Get an Access Token",helpDesc:"Access Token is the only credential to access MaiBot WebUI. Get yours in one of the following ways",method1Title:"Method 1: Check Startup Log",method1Desc:"When MaiBot starts, the console will display the WebUI Access Token.",method1Example1:"🔑 WebUI Access Token: abc123...",method1Example2:"💡 Use this Token to log in to WebUI",method2Title:"Method 2: Check Config File",method2Desc:"The Token is saved in the config file at the project root:",method2FileHint:"Open this file and copy the value of the access_token field",securityTipTitle:"Security Notice",securityTip1:"Keep your Token safe and never share it with others",securityTip2:"To reset the Token, go to System Settings after logging in",slowLink:"The interface feels laggy. What can I do?",disableAnimTitle:"Disable Background Animation",disableAnimDesc:"Background animation may cause lag on low-performance devices. Disabling it can significantly improve smoothness.",disableAnimDetail:"After disabling, the background will be a solid color, but all features remain fully functional. You can re-enable it anytime in System Settings.",disableAnimBtn:"Disable Animation",verifyFailed:"Token verification failed. Please check and try again.",connFailed:"Failed to connect to the server. Please check your network connection.",switchToLight:"Switch to light mode",switchToDark:"Switch to dark mode"},nA={steps:{botBasic:{title:"Bot Basics",description:"Configure the bot's basic information"},personality:{title:"Personality",description:"Define the bot's personality and speaking style"},apiProvider:{title:"API Setup",description:"Configure the API provider"},modelSetup:{title:"Model Setup",description:"Configure planner and replyer models"}},loading:{title:"Loading configuration...",description:"Reading existing configuration"},header:{title:"Initial Setup Wizard",description:"Let's complete the initial setup for {{appName}}"},progress:{stepCounter:"Step {{current}} / {{total}}"},validation:{selectPlatform:"Please select a platform",enterNickname:"Please enter a nickname",enterQqAccount:"Please enter a QQ account",enterAccountId:"Please enter an account ID",enterProviderName:"Please enter an API provider name",enterBaseUrl:"Please enter the API base URL",enterApiKey:"Please enter the API key",enterPlannerModelIdentifier:"Please enter the planner model identifier",enterReplyerModelIdentifier:"Please enter the replyer model identifier"},toast:{loadFailedTitle:"Failed to load configuration",loadFailedDescription:"Unable to load the existing configuration. Default values will be used.",saveSuccessTitle:"Saved successfully",saveSuccessDescription:"{{step}} configuration has been saved",saveFailedTitle:"Save failed",validationFailedTitle:"Validation failed",completeSuccessTitle:"Setup complete",completeSuccessDescription:"{{appName}} is restarting to apply the new configuration...",completeFailedTitle:"Setup failed",skipFailedTitle:"Failed to skip the setup wizard",unknownError:"Unknown error"},actions:{previous:"Previous",next:"Next",skip:"Skip Wizard",complete:"Complete Setup",saving:"Saving...",completing:"Completing..."},skipDialog:{title:"Skip the setup wizard?",description:"You can reopen the setup wizard anytime from System Settings. Are you sure you want to skip it?",confirm:"Skip Anyway"},footer:"You can change these settings anytime in Settings",defaults:{personality:{personality:"She is a sophomore college student who spends time on Tieba.",replyStyle:"Keep replies plain and concise, speak Chinese, and avoid deliberately emphasizing any academic background. You can refer to the reply styles commonly seen on Tieba, Zhihu, and Weibo.",multipleReplyStyles:{plain:"Your style is plain, lightly sarcastic, very short, and colloquial. You can reference Tieba and Weibo reply styles.",shortText:"Reply with 1-2 words",shortSymbol:"Reply with 1-2 symbols",translation:"Use a slightly translated tone, but keep it short"}},emoji:{filtrationPrompt:"Appropriate and safe for general audiences"}},forms:{botBasic:{platform:{label:"Platform *",placeholder:"Select a platform",description:"Choose the platform where the bot runs",options:{custom:"Other Platform"}},customPlatform:{label:"Platform Name *",placeholder:"Enter a platform name, such as matrix"},qqAccount:{label:"QQ Account *",placeholder:"Enter the bot's QQ account",description:"The QQ account used to log in the bot"},primaryAccount:{label:"Account ID *",placeholder:"Enter the bot's account ID",description:"The bot's account identifier on this platform"},nickname:{label:"Nickname *",placeholder:"Enter the bot's nickname",description:"The bot's primary display name"},alias:{label:"Aliases",placeholder:"Type an alias and press Enter to add it",add:"Add",description:"Other names for the bot. You can add multiple aliases.",remove:"Remove alias {{alias}}"}},personality:{personality:{label:"Personality Traits *",placeholder:"Describe the bot's personality and identity traits (recommended within 120 characters)",description:"Example: a sophomore college girl who browses Tieba"},replyStyle:{label:"Reply Style *",placeholder:"Describe how the bot speaks and expresses itself",description:"Example: keep replies plain and concise, speak Chinese, and refer to styles seen on Tieba, Zhihu, and Weibo"},multipleReplyStyle:{label:"Alternate Reply Styles",placeholder:"Enter one alternate reply style per line",description:"When this list is not empty, MaiBot may randomly replace the default reply style using the probability below"},multipleProbability:{label:"Alternate Style Probability",description:"The chance of randomly replacing the default reply style each time a reply is built"}},emoji:{emojiSendNum:{label:"Emoji Candidate Count",description:"How many emojis to choose from before sending. Maximum is 64"},maxRegNum:{label:"Maximum Emoji Count",description:"The maximum number of emojis the bot can store"},doReplace:{label:"Replace When Full",description:"When enabled, old emojis will be removed; when disabled, new emojis will no longer be collected"},checkInterval:{label:"Check Interval (Minutes)",description:"How often to check emoji registration, damage, and deletion"},stealEmoji:{label:"Collect Emojis",description:"Allow the bot to keep certain emojis for itself"},contentFiltration:{label:"Enable Emoji Filtering",description:"Only save emojis that meet the requirements"},filtrationPrompt:{label:"Filter Requirements",placeholder:"For example: appropriate and safe for general audiences",description:"Describe what kind of emojis should be allowed"}},other:{allGlobal:{label:"Enable Global Slang Mode",description:"Allow the bot to learn and use group-specific slang"}},apiProvider:{providerName:{label:"API Provider Name *",placeholder:"For example OpenAI, DeepSeek, or self-hosted",description:"This name is written to model_config.toml and referenced by the models below"},baseUrl:{label:"API Base URL *",description:"Enter an OpenAI-compatible endpoint, for example https://api.example.com/v1"},apiKey:{label:"API Key *",description:"Enter the API key for this provider",show:"Show API key",hide:"Hide API key"}},modelSetup:{planner:{identifier:{label:"planner Model Identifier *",description:"The real model ID provided by the API service; the model name will be initialized from it"},visual:{label:"Enable vision"}},replyer:{identifier:{label:"replyer Model Identifier *",description:"The real model ID provided by the API service; the model name will be initialized from it"},visual:{label:"Enable vision"}},saveHint:"You can configure more detailed task assignment later."}}},aA={loading:"Loading...",error:"Error",retry:"Retry",save:"Save",cancel:"Cancel",confirm:"Confirm",delete:"Delete",edit:"Edit",close:"Close",search:"Search",noData:"No data",success:"Success",failed:"Failed"},iA={preparing:"Preparing to restart",preparingDesc:"Sending restart request...",preparingTip:"🔄 Preparing to restart MaiBot...",restarting:"Restarting MaiBot",restartingDesc:"Please wait, MaiBot is restarting...",restartingTip:"🔄 Config saved, restarting main process...",checking:"Checking service status",checkingDesc:"Waiting for service to recover... ({{current}}/{{max}})",checkingTip:"⏳ Waiting for service to recover, do not close this page...",success:"Restart successful",successDesc:"Redirecting to login page...",successTip:"✅ Config applied, service is running normally",failed:"Restart timed out",failedDesc:"Service failed to recover within the expected time",failedTip:"⚠️ If unresponsive for a long time, try restarting manually",refreshPage:"Refresh page",retryCheck:"Retry check",elapsed:"Elapsed:"},sA={title:"Something went wrong",description:"The application encountered an unexpected error. You can try refreshing the page or going back home.",refreshPage:"Refresh page",goHome:"Go home",footer:"If the problem persists, copy the error info and report it to the developer",copiedToClipboard:"Copied to clipboard",copyError:"Copy error info"},oA={placeholder:"Search pages...",title:"Search",noResults:"No matching pages found",startSearch:"Type a keyword to start searching",navigate:"Navigate",select:"Select",close:"Close",categories:{overview:"Overview",config:"Config",resources:"Resources",monitor:"Monitor",extensions:"Extensions",system:"System"},items:{home:"Home",homeDesc:"View dashboard overview",botConfig:"Bot Main Config",botConfigDesc:"Configure bot core settings",modelProvider:"Model Provider Config",modelProviderDesc:"Configure model providers",model:"Model Config",modelDesc:"Configure model parameters",emoji:"Emoji Management",emojiDesc:"Manage bot emoji",expression:"Expression Management",expressionDesc:"Manage bot expressions",person:"Person Info",personDesc:"Manage person info",jargon:"Slang Management",jargonDesc:"Manage bot learned slang and jargon",statistics:"Statistics",statisticsDesc:"View usage statistics",plugins:"Plugin Market",pluginsDesc:"Browse and install plugins",logs:"Log Viewer",logsDesc:"View system logs",reasoningProcessDesc:"Browse Maisaka prompt reasoning logs",settings:"Settings",settingsDesc:"Configure system settings"}},rA={skipToContent:"Skip to main content",sidebarNav:"Main navigation",closeMenu:"Close menu",navigatedTo:"Navigated to {{page}}"},lA={title:"Live Monitor",subtitle:"MaiBot runtime status and statistics overview",loading:"Loading statistics...",loadingHint:"Fetching MaiBot runtime data",timeRange:{"24h":"24 Hours","7d":"7 Days","30d":"30 Days"},autoRefresh:"Auto Refresh",botStatus:{title:"MaiBot Status",running:"Running",stopped:"Stopped",uptime:"Up {{time}}"},quickActions:{title:"Quick Actions",restart:"Restart MaiBot",restarting:"Restarting...",expressionReview:"Expression Review",viewLogs:"View Logs",pluginManage:"Plugins",systemSettings:"Settings"},survey:{title:"Feedback Survey",description:"Help us improve the experience",webui:"WebUI Feedback",maibot:"MaiBot Feedback"},stats:{totalRequests:"Total Requests",totalCost:"Total Cost",tokenUsage:"Token Usage",avgResponse:"Avg Response",avgResponseDesc:"Avg API latency",onlineTime:"Online Time",messageProcessing:"Messages",costEfficiency:"Cost Efficiency",recentPeriod:"Last {{range}}",perHour:"{{value}}/hr",noData:"No data",replied:"{{num}} replies",per100Messages:"Per 100 messages",seconds:"sec",hours:"hours",days:"days"},charts:{tabs:{trends:"Trends",models:"Models",activity:"Activity",daily:"Daily"},requestTrend:"Request Trend",requestTrendDesc:"Request volume over the last {{hours}} hours",costTrend:"Cost Trend",costTrendDesc:"API call cost over time",tokenUsage:"Token Usage",tokenUsageDesc:"Token consumption over time",modelDistribution:"Model Request Distribution",modelDistributionDesc:"Usage share per model ({{count}} models)",modelDetails:"Model Details",modelDetailsDesc:"Requests, cost and performance",recentActivity:"Recent Activity",recentActivityDesc:"Latest API call records",dailyStats:"Daily Statistics",dailyStatsDesc:"Data summary for the last 7 days",requests:"Requests",cost:"Cost (¥)",requestCount:"Requests",costLabel:"Cost",avgTime:"Avg Time",timeCost:"Duration",status:"Status"},time:{hoursMinutes:"{{hours}}h {{minutes}}m"},hitokotoFallback:"Life is like a box of chocolates, you never know what you're gonna get.",hitokotoFallbackFrom:"Forrest Gump",unknownSource:"Unknown",ariaLabel:{requestTrend:"Hourly request trend chart showing request count changes over recent hours",costTrend:"API cost trend chart showing API call cost changes over recent hours",tokenUsage:"Token usage trend chart showing token consumption over recent hours"}},cA={header:XD,sidebar:QD,workspace:ZD,chat:$D,layout:WD,httpWarning:JD,settings:eA,auth:tA,setupPage:nA,common:aA,restart:iA,errorBoundary:sA,search:oA,a11y:rA,home:lA},uA={collapseSidebar:"サイドバーを折りたたむ",expandSidebar:"サイドバーを展開する",toggleConnection:"バックエンド接続を切り替える",viewAnnualSummary:"年間サマリーを表示",annualSummary:"2025 年間サマリー",searchPlaceholder:"検索...",viewDocs:"MaiBot ドキュメントを表示",docs:"MaiBot ドキュメント",switchToLight:"ライトモードに切り替える",switchToDark:"ダークモードに切り替える",logout:"ログアウト",logoutLabel:"ログアウト",notConnected:"未接続"},fA={groups:{overview:"概要",botConfig:"ボット設定",botResources:"ボットリソース",extensionsMonitor:"プラグインと拡張",system:"システム"},menu:{home:"ホーム",botMainConfig:"ボットメイン設定",aiModelProvider:"AIモデルプロバイダー",modelManagement:"モデル管理",promptManagement:"Prompt 管理",adapterConfig:"アダプター設定",emojiManagement:"絵文字管理",expressionManagement:"表現管理",slangManagement:"スラング管理",personInfo:"人物情報",knowledgeGraph:"長期記憶グラフ",knowledgeBase:"長期記憶",pluginMarket:"プラグインマーケット",configTemplate:"設定テンプレート",pluginConfig:"プラグイン管理",mcpSettings:"MCP 設定",logViewer:"ログビューア",reasoningProcess:"推論プロセス",maisakaMonitor:"MaiSaka チャット監視",localChat:"ローカルチャット",settings:"設定"}},dA={switcherLabel:"麦麦ワークスペースを切り替え",settings:"麦麦設定",chat:"麦麦チャット"},hA={defaultTab:"WebUI",botNameFallback:"麦麦",userFallback:"ユーザー",userNameFallback:"WebUIユーザー",virtualGroupFallback:"WebUI仮想グループチャット",status:{connected:"接続済み",connecting:"接続中...",disconnected:"未接続"},actions:{cancel:"キャンセル",reconnect:"再接続",save:"保存",send:"メッセージを送信"},identity:{current:"現在の身份:",editName:"ニックネームを変更",group:"グループ:{{group}}",namePlaceholder:"ニックネームを入力",virtual:"仮想身份:"},input:{placeholder:"メッセージを入力...",waiting:"接続待ち..."},message:{empty:"{{bot}} と会話を始めましょう!",emptyHint:"下の入力欄にメッセージを入力し、Enter キーで送信",errorFallback:"エラーが発生しました",thinking:"考え中..."},composer:{hint:"Enter で送信・Shift + Enter で改行"},sidebar:{closeConversation:"{{label}} を閉じる",conversations:"チャット会話",emptyPreview:"まだメッセージはありません",identityHint:"ローカルチャット身份",newVirtual:"仮想身份チャットを作成",online:"オンライン",offline:"オフライン",subtitle:"{{count}} 件の会話",title:"チャット",webuiBadge:"WebUI",virtualBadge:"仮想",profileTitle:"自分の身份",editName:"ニックネームを編集",saveName:"保存"},dialog:{create:"会話を作成",description:"麦麦がすでに知っているユーザーを選び、そのユーザーとして麦麦と会話します。麦麦はそのユーザーへの記憶と理解を使って返信します。",groupName:"仮想グループ名(任意)",groupNameHint:"麦麦はこれをこの名前のグループチャットとして認識します",knownUserSuffix:" · 既知",loading:"読み込み中...",noUsers:"ユーザーが見つかりません",personCount:"({{count}} 人)",platform:"プラットフォームを選択",platformPlaceholder:"プラットフォームを選択",searchUser:"ユーザー名を検索...",title:"仮想身份チャットを作成",user:"ユーザーを選択"},media:{audioUnsupported:"お使いのブラウザは音声再生に対応していません",emoji:"絵文字",face:"[表情:{{data}}]",file:"[ファイル: {{data}}]",forward:"[転送メッセージ]",image:"画像",loadFailed:"[{{type}}の読み込みに失敗]",music:"[音楽共有]",noCaptions:"字幕なし",reply:"[返信メッセージ]",unknown:"[{{type}}]",unknownMessage:"不明なメッセージ",videoUnsupported:"お使いのブラウザは動画再生に対応していません"},toast:{backendUnavailable:"バックエンドサービスに接続できません。MaiBot が起動しているか確認してください",backendUnavailableShort:"バックエンドサービスに接続できません",connectionFailed:"接続に失敗しました",currentSessionUnavailable:"現在のチャットセッションは利用できません。しばらくしてから再試行してください",error:"エラー",incompleteConfig:"設定が未完了です",networkError:"ネットワークエラー",platformFailed:"プラットフォームの取得に失敗しました",selectPlatformAndUser:"プラットフォームとユーザーを選択してください",sendFailed:"送信に失敗しました",serverError:"サーバーエラー: {{status}}",sessionUnavailable:"チャットセッションを開始できません。しばらくしてから再試行してください",virtualTabCreated:"仮想身份タブ",virtualTabCreatedDesc:"{{label}} の会話を作成しました"}},mA={verifyingLogin:"ログイン状態を確認中...",logoTitle:"MaiBot WebUI",logoTitleShort:"M"},pA={title:"セキュリティ通知:",message:"WebUI に HTTP でアクセスしています。",description:"ローカル以外の HTTP 接続では、アクセストークンや設定内容が漏えいする可能性があります。可能であれば HTTPS または信頼できる内網接続を使用してください。",dismiss:"HTTP セキュリティ通知を閉じる"},gA={title:"設定",description:"アプリの設定を管理する",tabs:{appearance:"外観",security:"セキュリティ",other:"その他",about:"について"},appearance:{themeMode:"テーマモード",themeModeDesc:"ライト / ダーク / システムに従う",light:"ライト",dark:"ダーク",system:"システム",accentColor:"アクセントカラー",resetDefault:"デフォルトにリセット",colorPreview:"カラープレビュー",styleTweaks:"スタイル調整",typography:"タイポグラフィ",visualEffects:"視覚効果",layout:"レイアウト",animation:"アニメーション",background:"背景",customCss:"カスタム CSS",animationEffect:"アニメーション効果",importExportTheme:"テーマのインポート / エクスポート",importTheme:"テーマをインポート",exportTheme:"テーマをエクスポート",importSuccess:"インポート成功",importFailed:"インポート失敗",resetSuccess:"リセット成功",fontFamily:"フォントファミリー",fontSize:"フォントサイズ",borderRadius:"ボーダー半径",contentWidth:"コンテンツ幅",sidebarWidth:"サイドバー幅",animationSpeed:"アニメーション速度",backgroundImage:"背景画像",backgroundBlur:"背景ぼかし",backgroundOpacity:"背景の透明度",lightDesc:"常にライトテーマを使用",darkDesc:"常にダークテーマを使用",systemDesc:"システム設定に従って自動切り替え",accentPrimary:"メインカラー",accentHint:"カラーリングをクリックするか、HEX 値を入力してください",resetTheme:"デフォルトにリセット",confirmResetTheme:"テーマのリセットを確認",confirmResetThemeDesc:"これにより、色、フォント、レイアウト、カスタム CSS を含むすべてのテーマ設定がデフォルトにリセットされます。この操作は元に戻せません。よろしいですか?",confirmResetAction:"リセットを確認",cssWarningTitle:"以下の内容はセキュリティフィルターされました:",cssPlaceholder:`/* カスタム CSS をここに入力 */ + +/* 例: */ +/* .sidebar { background: #1a1a2e; } */`,cssDescription:"カスタム CSS を記述して、インターフェースをさらにカスタマイズしてください。危険な CSS(@import、url() など)は自動的にフィルターされます。",clearCss:"クリア",exportDesc:"テーマを JSON ファイルとしてエクスポートして共有またはバックアップ。インポート時にすべての設定が自動適用されます。",importSuccessDesc:"テーマ設定がインポートされました。ページが自動的にリロードされます",resetSuccessDesc:"テーマがデフォルトにリセットされました",enableAnimations:"アニメーションを有効にする",enableAnimationsDesc:"無効にすると、すべてのトランジションアニメーションとエフェクトが無効化されパフォーマンスが向上します",loginWavesBackground:"ログインページのウェーブ背景",loginWavesBackgroundDesc:"無効にするとログインページが単色背景になります。低スペックのデバイスに適しています",inheritParentBg:"上位背景を継承",inheritParentBgDesc:"有効にすると上位レイヤーの背景設定を使用します",fontFamilyLabel:"フォントファミリー",fontFamilyPlaceholder:"フォントファミリーを選択",fontFamilySystem:"システムデフォルト (System)",fontFamilySans:"サンセリフ (Sans-serif)",fontFamilySerif:"セリフ (Serif)",fontFamilyMono:"等幅 (Monospace)",baseFontSize:"基準フォントサイズ (Base Size)",lineHeight:"行の高さ (Line Height)",lineHeightPlaceholder:"行高を選択",lineHeightCompact:"コンパクト (1.2)",lineHeightNormal:"標準 (1.5)",lineHeightLoose:"ルーズ (1.75)",borderRadiusLabel:"圆角の大きさ (Radius)",shadowLabel:"シャドウの強度 (Shadow)",shadowPlaceholder:"シャドウの強度を選択",shadowNone:"なし (None)",shadowSm:"軽微 (Small)",shadowMd:"中程度 (Medium)",shadowLg:"強い (Large)",shadowXl:"極強 (Extra Large)",blurLabel:"ボカシ効果 (Blur)",sidebarWidthLabel:"サイドバー幅 (Sidebar Width)",maxContentWidth:"コンテンツ最大幅 (Max Width)",spacingUnit:"基準間隔 (Spacing Unit)",animationSpeedLabel:"アニメーション速度 (Speed)",animationSpeedPlaceholder:"アニメーション速度を選択",animationFast:"高速 (100ms)",animationNormal:"標準 (300ms)",animationSlow:"低速 (500ms)",animationOff:"オフ (0ms)",bgPage:"ページ",bgSidebar:"サイドバー",typographyGroup:"タイポグラフィ (Typography)",visualGroup:"視覚効果 (Visual)",layoutGroup:"レイアウト (Layout)",animationGroup:"アニメーション (Animation)",backgroundGroup:"背景設定 (Backgrounds)"},security:{currentToken:"現在のアクセストークン",yourToken:"あなたのアクセストークン",regenerate:"再生成",customToken:"カスタムアクセストークン",securityTip:"セキュリティのヒント",cannotCopy:"コピーできません",copySuccess:"コピーしました",copyFailed:"コピー失敗",updateSuccess:"更新しました",updateFailed:"更新失敗",generateSuccess:"生成しました",generateFailed:"生成失敗",newToken:"新しいアクセストークン",confirmRegenerate:"トークンの再生成を確認",confirmRegenerateDesc:"再生成後、古いトークンは無効になります。再ログインが必要です。",cancel:"キャンセル",confirm:"確認",cannotCopyDesc:"Token はセキュアな Cookie に保存されています。新しい Token を取得するには再生成してください。",copySuccessDesc:"Token をクリップボードにコピーしました",copyFailedDesc:"Token を手動でコピーしてください",inputError:"入力エラー",inputErrorDesc:"新しい Token を入力してください",formatError:"フォーマットエラー",formatErrorDesc:"Token が要件を満たしていません: {{failedRules}}",updateSuccessDesc:"Access Token を更新しました。ログインページにリダイレクトします。",updateFailedDesc:"Token を更新できません",updateFailedConn:"サーバーへの接続に失敗しました",generateSuccessDesc:"新しい Access Token を生成しました。すぐに保存してください。",generateFailedDesc:"新しい Token を生成できません",generateFailedConn:"サーバーへの接続に失敗しました",cannotView:"表示できません",cannotViewDesc:'Token はセキュアな Cookie に保存されています。新しい Token が必要な場合は"再生成"をクリックしてください。',hide:"非表示",show:"表示",copyTip:"クリップボードにコピー",regenerateShort:"生成する",confirmRegenerateFullDesc:"新しい 64 桁のセキュアトークンを生成し、現在の Token を即座に無効にします。新しい Token で再ログインが必要です。この操作は元に戻せません。続けますか?",confirmGenerate:"生成を確認",tokenStorePlaceholder:"Token はセキュアな Cookie に保存されています",safekeepTip:"Access Token を安全に保管し、他人に漏洩しないでください。",newTokenLabel:"新しいアクセストークン",customTokenPlaceholder:"カスタム Token を入力",tokenReqTitle:"Token セキュリティ要件:",tokenValid:"Token のフォーマットは正しく使用できます",updateBtn:"カスタム Token を更新",updating:"更新しています...",dialogTitle:"新しい Access Token",dialogDesc:"これが新しい Token です。すぐに保存してください。このウィンドウを閉じるとログインページにリダイレクトされます。",dialogTokenLabel:"新しい Token (64 桁セキュアトークン)",important:"重要なお知らせ",tip1:"この Token は一度しか表示されません。閉じた後は表示できません",tip2:"すぐにコピーして安全な場所に保存してください",tip3:"閉じると自動的にログインページにリダイレクトされます",tip4:"新しい Token で再ログインしてください",copied:"コピー済み",copyToken:"Token をコピー",savedClose:"保存しました。閉じる",securityTip1:"再生成するとシステムがランダムに生成した 64 桁のセキュアトークンが作成されます",securityTip2:"カスタム Token はすべてのセキュリティ要件を満たす必要があります",securityTip3:"Token を更新すると、古い Token は即座に無効になります",securityTip4:"安全な環境で Token を表示してコピーしてください",securityTip5:"Token の漏洩が疏われる場合は、すぐに再生成または更新してください",securityTip6:"最高のセキュリティのためにシステム生成の Token を推奨します"},other:{performance:"パフォーマンス & ストレージ",localStorage:"ローカルストレージ使用量",logCache:"ログキャッシュサイズ",importExport:"設定のインポート / エクスポート",configWizard:"設定ウィザード",devTools:"開発者ツール",clearStorage:"ローカルストレージを削除",clearStorageDesc:"すべてのローカルストレージデータを削除します",clearStorageConfirm:"削除を確認",clearLogCache:"ログキャッシュを削除",clearLogCacheDesc:"すべてのキャッシュされたログデータを削除します",clearLogCacheConfirm:"削除を確認",importSettings:"設定をインポート",exportSettings:"設定をエクスポート",resetAllSettings:"すべての設定をリセット",resetAllSettingsDesc:"すべての設定をデフォルトに戻します",resetAllSettingsConfirm:"リセットを確認",clearStorageSuccess:"ローカルストレージを削除しました",clearStorageFailed:"削除失敗",clearLogSuccess:"ログキャッシュを削除しました",clearLogFailed:"削除失敗",importSuccess:"インポート成功",importFailed:"インポート失敗",exportSuccess:"エクスポート成功",exportFailed:"エクスポート失敗",resetSuccess:"リセット成功",resetFailed:"リセット失敗",storageItems:"{{count}} 件のアイテム",logCacheSizeDesc:"ログビューアがキャッシュする最大ログ数を制御します。大きい値はより多くのメモリを使用します。",logCacheSizeUnit:"件",dataSyncIntervalLabel:"ホームデータ更新間隔",dataSyncIntervalUnit:"秒間",dataSyncIntervalDesc:"ホーム画面の統計データの自動更新間隔を制御します",wsReconnectLabel:"WebSocket 再接続間隔",wsReconnectUnit:"秒間",wsReconnectDesc:"ログ WebSocket 切断後の再接続基本間隔",wsMaxReconnectLabel:"WebSocket 最大再接続回数",wsMaxReconnectUnit:"回",wsMaxReconnectDesc:"接続失敗後の最大再接続試行回数",clearLogCacheFn:"ログキャッシュをクリア",clearLocalCache:"ローカルキャッシュをクリア",confirmClearCache:"ローカルキャッシュのクリアを確認",confirmClearCacheDesc:"ローカルにキャッシュされたすべての設定とデータ(ログイン資格情報を除く)をクリアします。一部の設定を再構成する必要があるかもしれません。続けますか?",confirmClear:"クリアを確認",importExportDesc:"現在のインターフェース設定をエクスポートしてバックアップしたり、以前のファイルから復元したりできます。",exporting:"エクスポート中...",importing:"インポート中...",resetAllSettingsBtn:"すべての設定をデフォルトにリセット",confirmResetAll:"すべての設定のリセットを確認",confirmResetAllDesc:"テーマ、色、アニメーションなどのインターフェース設定をデフォルトに戻します。ログイン状態には影響しません。続けますか?",configWizardDesc:"初回設定ウィザードを再実行してシステムの基本設定を再構成できます。",rerunSetup:"初回設定を再実行",confirmRerunSetup:"再構成を確認",confirmRerunSetupDesc:"初回設定ウィザードに戻ります。システムの基本設定を再設定できます。続けますか?",devToolsDesc:"以下の機能は開発・デバッグ目的のみです。クラッシュや異常動作を引き起こす可能性があります。",triggerError:"テストエラーを発生させる",confirmTriggerError:"エラーの発生を確認",confirmTriggerErrorDesc:"React エラーを手動で発生させ、エラーボーダーコンポーネントをテストします。ページを更新するかホームに戻ることで復元できます。",confirmTrigger:"発生を確認",logCleared:"ログをクリアしました",logClearedDesc:"ログキャッシュをクリアしました",cacheCleared:"キャッシュをクリアしました",cacheClearedDesc:"{{count}} 件のキャッシュデータをクリアしました",exportSuccessDesc:"設定を JSON ファイルとしてエクスポートしました",exportFailedDesc:"設定のエクスポートに失敗しました",importSuccessDesc:"{{imported}} 件の設定をインポートしました",importSkippedSuffix:"、{{skipped}} 件をスキップ",importRefreshHint:"お知らせ",importRefreshHintDesc:"一部の設定はページを更新するまで完全に有効になりません",importNoDataDesc:"インポートする有効な設定がありません",importInvalidDesc:"ファイルフォーマットが無効です",resetDone:"リセット完了",resetDoneDesc:"すべての設定がデフォルトに戻りました。変更を適用するにはページを更新してください。"},about:{openSource:"オープンソース",aboutApp:"MaiBot Dashboard について",version:"バージョン:",author:"開発者",techStack:"技術スタック",frontendFramework:"フロントエンドフレームワーク",uiComponents:"UI コンポーネント",backend:"バックエンド",buildTool:"ビルドツール",openSourceThanks:"使用オープンソースライブラリ",openSourceLicense:"オープンソースライセンス",openSourceDesc:"このプロジェクトは GitHub で公開されています。Star ⭐ でサポートしてください!",visitGitHub:"GitHub へ進む",appDesc:"MaiBot のモダンな Web 管理インターフェース",maimaiCore:"MaiBot コア",uiFrameworkGroup:"UI フレームワーク & コンポーネント",routingStateGroup:"ルーティング & 状態管理",formGroup:"フォーム処理",utilsGroup:"ユーティリティライブラリ",animationGroup:"アニメーション",backendGroup:"バックエンドフレームワーク",devToolsGroup:"開発ツール",openSourceThanksDesc:"このプロジェクトは以下の優れたオープンソースライブラリを使用しています。貢献に感謝します:",licenseDesc:"このプロジェクトは GNU General Public License v3.0 でライセンスされています。同じオープンソースライセンスを保持する限り、自由に使用・修改・配布できます。",licenseDeps:"このプロジェクトのすべての依存オープンソースライブラリはそれぞれのライセンス(MIT、Apache-2.0、BSD など)に従っています。すべてのオープンソース貢献者に感謝します。",lib:{react:"UIを構築するためのライブラリ",shadcn:"エレガントな React コンポーネントライブラリ",radix:"スタイルなしのアクセシブルなコンポーネント",tailwind:"ユーティリティファーストの CSS フレームワーク",lucide:"美しいアイコンライブラリ",tanstackRouter:"型安全なルーティングライブラリ",zustand:"軽量な状態管理ライブラリ",reactHookForm:"高パフォーマンスなフォームライブラリ",zod:"TypeScript ファーストのスキーマ検証",clsx:"条件付き className ビルダー",tailwindMerge:"Tailwind クラス名マージツール",cva:"コンポーネントバリアント管理",dateFns:"モダンな日付ユーティリティライブラリ",framerMotion:"React アニメーションライブラリ",vaul:"ドロワーコンポーネントアニメーション",fastapi:"モダンな Python Web フレームワーク",uvicorn:"ASGI サーバー",pydantic:"データ検証ライブラリ",pythonMultipart:"ファイルアップロードサポート",typescript:"JavaScript のスーパーセット",vite:"次世代フロントエンドビルドツール",eslint:"JavaScript コードリンター"}}},yA={title:"ログイン",description:"続行するにはアクセストークンを入力してください",tokenLabel:"アクセストークン",tokenPlaceholder:"アクセストークンを入力",loginButton:"ログイン",loggingIn:"ログイン中...",loginFailed:"ログイン失敗",loginSuccess:"ログイン成功",checkingAuth:"ログイン状態を確認中...",welcome:"MaiBot へようこそ",accessDesc:"システムにアクセスするためにアクセストークンを入力してください",tokenRequired:"アクセストークンを入力してください",verifyingLabel:"验証中...",verifyEnter:"验証して入る",helpLink:"Token がありません。どこで取得できますか?",helpTitle:"Access Token の取得方法",helpDesc:"Access Token は MaiBot WebUI にアクセスする唯一の証明情報です。次の方法で取得してください",method1Title:"方法1:起動ログを確認",method1Desc:"MaiBot 起動時にコンソールに WebUI Access Token が表示されます。",method1Example1:"🔑 WebUI Access Token: abc123...",method1Example2:"💡 この Token で WebUI にログインしてください",method2Title:"方法2:設定ファイルを確認",method2Desc:"Token はプロジェクトルートの設定ファイルに保存されています:",method2FileHint:"このファイルを開いて access_token フィールドの値をコピーしてください",securityTipTitle:"セキュリティノート",securityTip1:"Token を安全に保管し、他人に漏洱しないでください",securityTip2:"Token をリセットするには、ログイン後にシステム設定へ進んでください",slowLink:"インターフェースが重いです。どうすればいいですか?",disableAnimTitle:"バックグラウンドアニメーションを無効にする",disableAnimDesc:"バックグラウンドアニメーションは低スペックのデバイスで遅延を引き起こす可能性があります。無効にすると活百度が大幅に向上します。",disableAnimDetail:"無効にすると背景が単色になりますが、機能には影響しません。システム設定からいつでも再有効化できます。",disableAnimBtn:"アニメーションを無効にする",verifyFailed:"Token の検証に失敗しました。确認して再試行してください。",connFailed:"サーバーへの接続に失敗しました。ネットワーク接続を確認してください。",switchToLight:"ライトモードに切り替える",switchToDark:"ダークモードに切り替える"},vA={steps:{botBasic:{title:"Bot基本設定",description:"ボットの基本情報を設定します"},personality:{title:"人格設定",description:"ボットの性格や話し方を定義します"},apiProvider:{title:"API設定",description:"APIプロバイダーを設定します"},modelSetup:{title:"モデル設定",description:"planner と replyer モデルを設定します"}},loading:{title:"設定を読み込み中...",description:"既存の設定を読み取っています"},header:{title:"初回セットアップウィザード",description:"{{appName}} の初期設定を一緒に完了しましょう"},progress:{stepCounter:"ステップ {{current}} / {{total}}"},validation:{selectPlatform:"プラットフォームを選択してください",enterNickname:"ニックネームを入力してください",enterQqAccount:"QQ アカウントを入力してください",enterAccountId:"アカウント ID を入力してください",enterProviderName:"APIプロバイダー名を入力してください",enterBaseUrl:"API Base URL を入力してください",enterApiKey:"API Key を入力してください",enterPlannerModelIdentifier:"planner モデル識別子を入力してください",enterReplyerModelIdentifier:"replyer モデル識別子を入力してください"},toast:{loadFailedTitle:"設定の読み込みに失敗しました",loadFailedDescription:"既存の設定を読み込めなかったため、デフォルト値を使用します",saveSuccessTitle:"保存しました",saveSuccessDescription:"{{step}} を保存しました",saveFailedTitle:"保存に失敗しました",validationFailedTitle:"入力内容を確認してください",completeSuccessTitle:"設定が完了しました",completeSuccessDescription:"新しい設定を反映するために {{appName}} を再起動しています...",completeFailedTitle:"設定の完了に失敗しました",skipFailedTitle:"セットアップのスキップに失敗しました",unknownError:"不明なエラー"},actions:{previous:"前へ",next:"次へ",skip:"ウィザードをスキップ",complete:"設定を完了",saving:"保存中...",completing:"完了処理中..."},skipDialog:{title:"セットアップウィザードをスキップしますか?",description:"システム設定からいつでも再度セットアップウィザードを開けます。スキップしてもよろしいですか?",confirm:"スキップする"},footer:"これらの設定はいつでも設定画面から変更できます",defaults:{personality:{personality:"女子大生で、現在大学2年生。掲示板を見るのが好き。",replyStyle:"返信は淡々と、短めにし、中国語で話してください。自分の学科背景をわざと強調しないでください。Tieba、Zhihu、Weibo の返信スタイルを参考にできます。",multipleReplyStyles:{plain:"淡々として少し皮肉っぽく、とても短く口語的に返信します。Tieba や Weibo の返信スタイルを参考にできます。",shortText:"1〜2文字で返信する",shortSymbol:"1〜2個の記号で返信する",translation:"少し翻訳調にするが、長くしない"}},emoji:{filtrationPrompt:"公序良俗に反しないこと"}},forms:{botBasic:{platform:{label:"プラットフォーム *",placeholder:"プラットフォームを選択",description:"ボットが動作するプラットフォームを選択します",options:{custom:"その他のプラットフォーム"}},customPlatform:{label:"プラットフォーム名 *",placeholder:"matrix などのプラットフォーム名を入力"},qqAccount:{label:"QQ アカウント *",placeholder:"ボットの QQ アカウントを入力",description:"ボットのログインに使用する QQ アカウントです"},primaryAccount:{label:"アカウント ID *",placeholder:"ボットのアカウント ID を入力",description:"このプラットフォーム上でのボットのアカウント識別子です"},nickname:{label:"ニックネーム *",placeholder:"ボットのニックネームを入力",description:"ボットの主な呼び名です"},alias:{label:"別名",placeholder:"別名を入力して Enter で追加",add:"追加",description:"ボットの他の呼び名を複数追加できます",remove:"別名 {{alias}} を削除"}},personality:{personality:{label:"人格特性 *",placeholder:"ボットの人格や設定を説明してください(120文字以内推奨)",description:"例:大学2年生の女子大生で、Tieba をよく見ている"},replyStyle:{label:"話し方 *",placeholder:"ボットの話し方や表現の癖を説明してください",description:"例:返信は淡々と短めにし、中国語で話し、Tieba・Zhihu・Weibo の雰囲気を参考にする"},multipleReplyStyle:{label:"代替返信スタイル",placeholder:"1行につき1つの代替返信スタイルを入力",description:"リストが空でない場合、MaiBot は下の確率でデフォルトの返信スタイルをランダムに置き換えます"},multipleProbability:{label:"代替スタイルの発動確率",description:"返信を構築するたびに、代替返信スタイルでデフォルトを置き換える確率です"}},emoji:{emojiSendNum:{label:"絵文字候補数",description:"送信前にいくつの絵文字から選ぶかを指定します。最大 64 です"},maxRegNum:{label:"最大絵文字数",description:"ボットが保存できる絵文字の最大数です"},doReplace:{label:"上限到達時に置き換える",description:"有効にすると古い絵文字を削除し、無効にすると新しい絵文字を収集しません"},checkInterval:{label:"確認間隔(分)",description:"絵文字の登録、破損、削除を確認する間隔です"},stealEmoji:{label:"絵文字を収集する",description:"一部の絵文字をボットが自分用に保存できるようにします"},contentFiltration:{label:"絵文字フィルタリングを有効にする",description:"条件に合う絵文字だけを保存します"},filtrationPrompt:{label:"フィルタ条件",placeholder:"例:公序良俗に反しないこと",description:"保存する絵文字の条件を説明してください"}},other:{allGlobal:{label:"グローバルスラングモードを有効にする",description:"グループ内のスラングを学習して使えるようにします"}},apiProvider:{providerName:{label:"APIプロバイダー名 *",placeholder:"例: OpenAI、DeepSeek、自ホストサービス",description:"この名前は model_config.toml に保存され、下のモデルから参照されます"},baseUrl:{label:"API Base URL *",description:"OpenAI互換エンドポイントを入力してください。例: https://api.example.com/v1"},apiKey:{label:"API Key *",description:"このプロバイダーの API Key を入力してください",show:"API Key を表示",hide:"API Key を非表示"}},modelSetup:{planner:{identifier:{label:"planner モデル識別子 *",description:"APIサービスが提供する実際のモデルID。モデル名はこの識別子で初期化されます"},visual:{label:"ビジョンを有効化"}},replyer:{identifier:{label:"replyer モデル識別子 *",description:"APIサービスが提供する実際のモデルID。モデル名はこの識別子で初期化されます"},visual:{label:"ビジョンを有効化"}},saveHint:"より詳細なタスク割り当ては後で設定できます。"}}},bA={loading:"読み込み中...",error:"エラー",retry:"再試行",save:"保存する",cancel:"キャンセル",confirm:"確認",delete:"削除",edit:"編集",close:"閉じる",search:"検索",noData:"データなし",success:"成功しました",failed:"失敗"},SA={preparing:"再起動を準備中",preparingDesc:"再起動リクエストを送信中...",preparingTip:"🔄 MaiBot の再起動を準備中...",restarting:"MaiBot を再起動中",restartingDesc:"しばらお待ちください、MaiBot が再起動中です...",restartingTip:"🔄 設定を保存しました、メインプロセスを再起動中...",checking:"サービス状態を確認中",checkingDesc:"サービスの回復を待機中... ({{current}}/{{max}})",checkingTip:"⏳ サービスの回復を待機中、ページを閉じないでください...",success:"再起動成功",successDesc:"ログインページにリダイレクト中...",successTip:"✅ 設定が適用されました、サービスは正常に動作しています",failed:"再起動タイムアウト",failedDesc:"サービスが予定時間内に回復しませんでした",failedTip:"⚠️ 長時間応答がない場合は、手動で再起動してください",refreshPage:"ページを更新",retryCheck:"再試行",elapsed:"経過時間:"},xA={title:"問題が発生しました",description:"アプリケーションが予期しないエラーを検出しました。ページを更新するかホームに戻ることができます。",refreshPage:"ページを更新",goHome:"ホームに戻る",footer:"問題が解決しない場合は、エラー情報をコピーして開発者に報告してください",copiedToClipboard:"クリップボードにコピーしました",copyError:"エラー情報をコピー"},TA={placeholder:"ページを検索...",title:"検索",noResults:"一致するページが見つかりません",startSearch:"キーワードを入力して検索を開始",navigate:"ナビゲート",select:"選択",close:"閉じる",categories:{overview:"概要",config:"設定",resources:"リソース",monitor:"監視",extensions:"拡張機能",system:"システム"},items:{home:"ホーム",homeDesc:"ダッシュボード概要を表示",botConfig:"ボットメイン設定",botConfigDesc:"ボットのコア設定を構成",modelProvider:"モデルプロバイダー設定",modelProviderDesc:"モデルプロバイダーを設定",model:"モデル設定",modelDesc:"モデルパラメーターを設定",emoji:"絵文字管理",emojiDesc:"ボットの絵文字を管理",expression:"表現管理",expressionDesc:"ボットの表現を管理",person:"人物情報",personDesc:"人物情報を管理",jargon:"スラング管理",jargonDesc:"ボットが学習したスラングを管理",statistics:"統計情報",statisticsDesc:"使用統計を表示",plugins:"プラグインマーケット",pluginsDesc:"プラグインを閉覧してインストール",logs:"ログビューア",logsDesc:"システムログを表示",reasoningProcessDesc:"Maisaka prompt の推論ログを閲覧",settings:"設定",settingsDesc:"システム設定を構成"}},wA={skipToContent:"メインコンテンツにスキップ",sidebarNav:"メインナビゲーション",closeMenu:"メニューを閉じる",navigatedTo:"{{page}} に移動しました"},CA={title:"リアルタイムモニター",subtitle:"MaiBotの稼働状況と統計データの一覧",loading:"統計データを読み込み中...",loadingHint:"MaiBotの稼働データを取得しています",timeRange:{"24h":"24時間","7d":"7日間","30d":"30日間"},autoRefresh:"自動更新",botStatus:{title:"MaiBot ステータス",running:"稼働中",stopped:"停止中",uptime:"稼働 {{time}}"},quickActions:{title:"クイック操作",restart:"MaiBotを再起動",restarting:"再起動中...",expressionReview:"表現レビュー",viewLogs:"ログを見る",pluginManage:"プラグイン管理",systemSettings:"システム設定"},survey:{title:"フィードバック",description:"製品体験の改善にご協力ください",webui:"WebUI フィードバック",maibot:"MaiBot フィードバック"},stats:{totalRequests:"総リクエスト数",totalCost:"総コスト",tokenUsage:"トークン消費",avgResponse:"平均応答",avgResponseDesc:"API平均レイテンシ",onlineTime:"オンライン時間",messageProcessing:"メッセージ処理",costEfficiency:"コスト効率",recentPeriod:"直近{{range}}",perHour:"{{value}}/時",noData:"データなし",replied:"返信 {{num}} 件",per100Messages:"100メッセージあたり",seconds:"秒間",hours:"時間",days:"日"},charts:{tabs:{trends:"トレンド",models:"モデル",activity:"アクティビティ",daily:"日次統計"},requestTrend:"リクエストトレンド",requestTrendDesc:"直近{{hours}}時間のリクエスト量の変化",costTrend:"コストトレンド",costTrendDesc:"API呼び出しコストの変化",tokenUsage:"トークン消費",tokenUsageDesc:"トークン使用量の変化",modelDistribution:"モデルリクエスト分布",modelDistributionDesc:"各モデルの使用割合({{count}}モデル)",modelDetails:"モデル詳細統計",modelDetailsDesc:"リクエスト数、コスト、パフォーマンス",recentActivity:"最近のアクティビティ",recentActivityDesc:"最新のAPI呼び出し記録",dailyStats:"日次統計",dailyStatsDesc:"直近7日間のデータサマリー",requests:"リクエスト数",cost:"コスト(¥)",requestCount:"リクエスト数",costLabel:"コスト",avgTime:"平均所要時間",timeCost:"所要時間",status:"ステータス"},time:{hoursMinutes:"{{hours}}時間{{minutes}}分"},hitokotoFallback:"人生はチョコレートの箱のようなもの、次に何が出てくるか分からない。",hitokotoFallbackFrom:"フォレスト・ガンプ",unknownSource:"不明",ariaLabel:{requestTrend:"時間ごとのリクエスト数トレンドチャート、直近のリクエスト数変化を表示",costTrend:"APIコストトレンドチャート、直近のAPI呼び出しコスト変化を表示",tokenUsage:"Token消費トレンドチャート、直近のToken使用量変化を表示"}},DA={header:uA,sidebar:fA,workspace:dA,chat:hA,layout:mA,httpWarning:pA,settings:gA,auth:yA,setupPage:vA,common:bA,restart:SA,errorBoundary:xA,search:TA,a11y:wA,home:CA},AA={collapseSidebar:"사이드바 접기",expandSidebar:"사이드바 펼치기",toggleConnection:"백엔드 연결 전환",viewAnnualSummary:"연간 요약 보기",annualSummary:"2025 연간 요약",searchPlaceholder:"검색...",viewDocs:"MaiBot 문서 보기",docs:"MaiBot 문서",switchToLight:"라이트 모드로 전환",switchToDark:"다크 모드로 전환",logout:"로그아웃",logoutLabel:"로그아웃",notConnected:"연결 안됨"},EA={groups:{overview:"개요",botConfig:"봇 설정",botResources:"봇 리소스",extensionsMonitor:"플러그인 및 확장",system:"시스템"},menu:{home:"홈",botMainConfig:"봇 메인 설정",aiModelProvider:"AI 모델 공급자",modelManagement:"모델 관리",promptManagement:"Prompt 관리",adapterConfig:"어댑터 설정",emojiManagement:"이모티콘 관리",expressionManagement:"표현 관리",slangManagement:"슬랭 관리",personInfo:"인물 정보",knowledgeGraph:"장기 기억 그래프",knowledgeBase:"장기 기억",pluginMarket:"플러그인 마켓",configTemplate:"설정 템플릿",pluginConfig:"플러그인 관리",mcpSettings:"MCP 설정",logViewer:"로그 뷰어",reasoningProcess:"추론 과정",maisakaMonitor:"MaiSaka 채팅 모니터",localChat:"로컬 채팅",settings:"설정"}},MA={switcherLabel:"MaiBot 작업 공간 전환",settings:"麦麦 설정",chat:"麦麦 채팅"},kA={defaultTab:"WebUI",botNameFallback:"麦麦",userFallback:"사용자",userNameFallback:"WebUI 사용자",virtualGroupFallback:"WebUI 가상 그룹 채팅",status:{connected:"연결됨",connecting:"연결 중...",disconnected:"연결 안됨"},actions:{cancel:"취소",reconnect:"다시 연결",save:"저장",send:"메시지 보내기"},identity:{current:"현재 신분:",editName:"닉네임 수정",group:"그룹: {{group}}",namePlaceholder:"닉네임 입력",virtual:"가상 신분:"},input:{placeholder:"메시지 입력...",waiting:"연결 대기 중..."},message:{empty:"{{bot}}와 대화를 시작해 보세요!",emptyHint:"아래 입력란에 메시지를 입력하고 Enter 키를 눌러 보내세요",errorFallback:"오류가 발생했습니다",thinking:"생각 중..."},composer:{hint:"Enter 전송 · Shift + Enter 줄바꿈"},sidebar:{closeConversation:"{{label}} 닫기",conversations:"채팅 대화",emptyPreview:"아직 메시지가 없습니다",identityHint:"로컬 채팅 신분",newVirtual:"새 가상 신분 대화",online:"온라인",offline:"오프라인",subtitle:"대화 {{count}}개",title:"채팅",webuiBadge:"WebUI",virtualBadge:"가상",profileTitle:"내 신분",editName:"닉네임 편집",saveName:"저장"},dialog:{create:"대화 만들기",description:"麦麦가 이미 알고 있는 사용자를 선택해 그 사용자 신분으로 대화합니다. 麦麦는 해당 사용자에 대한 기억과 이해를 사용해 응답합니다.",groupName:"가상 그룹 이름(선택)",groupNameHint:"麦麦는 이 이름의 그룹 채팅으로 인식합니다",knownUserSuffix:" · 알고 있음",loading:"불러오는 중...",noUsers:"사용자를 찾을 수 없습니다",personCount:"({{count}}명)",platform:"플랫폼 선택",platformPlaceholder:"플랫폼 선택",searchUser:"사용자 이름 검색...",title:"새 가상 신분 대화",user:"사용자 선택"},media:{audioUnsupported:"브라우저가 오디오 재생을 지원하지 않습니다",emoji:"이모티콘",face:"[표정:{{data}}]",file:"[파일: {{data}}]",forward:"[전달 메시지]",image:"이미지",loadFailed:"[{{type}} 로드 실패]",music:"[음악 공유]",noCaptions:"자막 없음",reply:"[답장]",unknown:"[{{type}}]",unknownMessage:"알 수 없는 메시지",videoUnsupported:"브라우저가 비디오 재생을 지원하지 않습니다"},toast:{backendUnavailable:"백엔드 서비스에 연결할 수 없습니다. MaiBot이 실행 중인지 확인하세요.",backendUnavailableShort:"백엔드 서비스에 연결할 수 없습니다",connectionFailed:"연결 실패",currentSessionUnavailable:"현재 채팅 세션을 사용할 수 없습니다. 잠시 후 다시 시도하세요.",error:"오류",incompleteConfig:"설정이 완전하지 않습니다",networkError:"네트워크 오류",platformFailed:"플랫폼을 불러오지 못했습니다",selectPlatformAndUser:"플랫폼과 사용자를 선택하세요",sendFailed:"전송 실패",serverError:"서버 오류: {{status}}",sessionUnavailable:"채팅 세션을 열 수 없습니다. 잠시 후 다시 시도하세요.",virtualTabCreated:"가상 신분 탭",virtualTabCreatedDesc:"{{label}} 대화를 만들었습니다"}},NA={verifyingLogin:"로그인 상태 확인 중...",logoTitle:"MaiBot WebUI",logoTitleShort:"M"},RA={title:"보안 알림: ",message:"현재 HTTP로 WebUI에 접속하고 있습니다.",description:"로컬이 아닌 HTTP 연결에서는 액세스 토큰과 설정 내용이 노출될 수 있습니다. 가능하면 HTTPS 또는 신뢰할 수 있는 내부망 연결을 사용하세요.",dismiss:"HTTP 보안 알림 닫기"},jA={title:"설정",description:"앱 환경 설정 관리",tabs:{appearance:"외관",security:"보안",other:"기타",about:"정보"},appearance:{themeMode:"테마 모드",themeModeDesc:"라이트 / 다크 / 시스템 따라가기",light:"라이트",dark:"다크",system:"시스템",accentColor:"강조 색상",resetDefault:"기본값으로 재설정",colorPreview:"색상 미리보기",styleTweaks:"스타일 조정",typography:"타이포그래피",visualEffects:"시각 효과",layout:"레이아웃",animation:"애니메이션",background:"배경",customCss:"사용자 정의 CSS",animationEffect:"애니메이션 효과",importExportTheme:"테마 가져오기 / 내보내기",importTheme:"테마 가져오기",exportTheme:"테마 내보내기",importSuccess:"가져오기 성공",importFailed:"가져오기 실패",resetSuccess:"재설정 성공",fontFamily:"글꼴",fontSize:"글자 크기",borderRadius:"테두리 반경",contentWidth:"콘텐츠 너비",sidebarWidth:"사이드바 너비",animationSpeed:"애니메이션 속도",backgroundImage:"배경 이미지",backgroundBlur:"배경 흐림",backgroundOpacity:"배경 투명도",lightDesc:"항상 라이트 테마 사용",darkDesc:"항상 다크 테마 사용",systemDesc:"시스템 설정에 따라 자동 전환",accentPrimary:"링 컴러",accentHint:"색상 퐹을 클릭하거나 HEX 값을 입력하세요",resetTheme:"기본값으로 재설정",confirmResetTheme:"테마 재설정 확인",confirmResetThemeDesc:"이렇게 하면 색상, 글꼴, 레이아웃 및 사용자 정의 CSS를 포함한 모든 테마 설정이 기본값으로 재설정됩니다. 이 작업은 되돌릴 수 없습니다. 계속하시겠습니까?",confirmResetAction:"재설정 확인",cssWarningTitle:"다음 내용이 안전 필터를 거쳣습니다:",cssPlaceholder:`/* 사용자 정의 CSS를 여기에 입력 */ + +/* 예시: */ +/* .sidebar { background: #1a1a2e; } */`,cssDescription:"인터페이스를 더욱 개인화하도록 사용자 정의 CSS를 작성하세요. 위험한 CSS(@import, url() 등)는 자동으로 필터됩니다.",clearCss:"지우기",exportDesc:"주제를 JSON 파일로 내보내 공유하거나 백업합니다. 가져올 때 모든 설정이 자동으로 적용됩니다.",importSuccessDesc:"테마 설정을 가져왔습니다. 페이지가 자동으로 새로고침됩니다",resetSuccessDesc:"테마가 기본값으로 재설정되었습니다",enableAnimations:"애니메이션 활성화",enableAnimationsDesc:"비활성화하면 모든 전환 애니메이션과 효과가 긺히고 성능이 향상됩니다",loginWavesBackground:"로그인 페이지 파도 배경",loginWavesBackgroundDesc:"비활성화하면 로그인 페이지가 단색 배경이 됩니다. 저사양 디바이스에 적합합니다",inheritParentBg:"상위 배경 상속",inheritParentBgDesc:"활성화하면 상위 레이어의 배경 설정을 사용합니다",fontFamilyLabel:"글꼴 패밀리",fontFamilyPlaceholder:"글꼴 패밀리 선택",fontFamilySystem:"시스템 기본 (System)",fontFamilySans:"돋움체 (Sans-serif)",fontFamilySerif:"세리프 (Serif)",fontFamilyMono:"등폭 (Monospace)",baseFontSize:"기본 글자 크기 (Base Size)",lineHeight:"줄 높이 (Line Height)",lineHeightPlaceholder:"줄 높이 선택",lineHeightCompact:"콤팬트 (1.2)",lineHeightNormal:"보통 (1.5)",lineHeightLoose:"느슨 (1.75)",borderRadiusLabel:"테두리 반경 (Radius)",shadowLabel:"그림자 강도 (Shadow)",shadowPlaceholder:"그림자 강도 선택",shadowNone:"없음 (None)",shadowSm:"약함 (Small)",shadowMd:"중간 (Medium)",shadowLg:"강함 (Large)",shadowXl:"매우 강함 (Extra Large)",blurLabel:"흘림 효과 (Blur)",sidebarWidthLabel:"사이드바드 너비 (Sidebar Width)",maxContentWidth:"콘텐츠 최대 너비 (Max Width)",spacingUnit:"기본 간격 (Spacing Unit)",animationSpeedLabel:"애니메이션 속도 (Speed)",animationSpeedPlaceholder:"애니메이션 속도 선택",animationFast:"빠름 (100ms)",animationNormal:"보통 (300ms)",animationSlow:"느림 (500ms)",animationOff:"끄기 (0ms)",bgPage:"페이지",bgSidebar:"사이드바드",typographyGroup:"타이포그래피 (Typography)",visualGroup:"시각 효과 (Visual)",layoutGroup:"레이아웃 (Layout)",animationGroup:"애니메이션 (Animation)",backgroundGroup:"배경 설정 (Backgrounds)"},security:{currentToken:"현재 액세스 토큰",yourToken:"액세스 토큰",regenerate:"재생성",customToken:"사용자 정의 액세스 토큰",securityTip:"보안 팁",cannotCopy:"복사할 수 없습니다",copySuccess:"복사됨",copyFailed:"복사 실패",updateSuccess:"업데이트됨",updateFailed:"업데이트 실패",generateSuccess:"생성됨",generateFailed:"생성 실패",newToken:"새 액세스 토큰",confirmRegenerate:"토큰 재생성 확인",confirmRegenerateDesc:"재생성 후 이전 토큰은 무효화됩니다. 다시 로그인해야 합니다.",cancel:"취소",confirm:"확인",cannotCopyDesc:"토큰이 보안 쿠키에 저장되어 있습니다. 새 토큰을 얻으려면 재생성하세요.",copySuccessDesc:"토큰이 클립보드에 복사되었습니다",copyFailedDesc:"토큰을 수동으로 복사하세요",inputError:"입력 오류",inputErrorDesc:"새 토큰을 입력하세요",formatError:"형식 오류",formatErrorDesc:"토큰이 요구 사항을 충족하지 않습니다: {{failedRules}}",updateSuccessDesc:"액세스 토큰이 업데이트되었습니다. 로그인 페이지로 이동합니다.",updateFailedDesc:"토큰을 업데이트할 수 없습니다",updateFailedConn:"서버 연결에 실패했습니다",generateSuccessDesc:"새 액세스 토큰이 생성되었습니다. 즉시 저장하세요.",generateFailedDesc:"새 토큰을 생성할 수 없습니다",generateFailedConn:"서버 연결에 실패했습니다",cannotView:"볼 수 없습니다",cannotViewDesc:'토큰이 보안 쿠키에 저장되어 있습니다. 새 토큰이 필요하면 "재생성"을 클릭하세요.',hide:"숨기기",show:"표시",copyTip:"클립보드에 복사",regenerateShort:"생성",confirmRegenerateFullDesc:"새로운 64자 보안 토큰을 생성하고 현재 토큰을 즉시 무효화합니다. 새 토큰으로 다시 로그인해야 합니다. 이 작업은 되돌릴 수 없습니다. 계속하시겠습니까?",confirmGenerate:"생성 확인",tokenStorePlaceholder:"토큰이 보안 쿠키에 저장되어 있습니다",safekeepTip:"액세스 토큰을 안전하게 보관하고 다른 사람과 공유하지 마세요.",newTokenLabel:"새 액세스 토큰",customTokenPlaceholder:"사용자 정의 토큰 입력",tokenReqTitle:"토큰 보안 요구 사항:",tokenValid:"토큰 형식이 올바르며 사용 가능합니다",updateBtn:"사용자 정의 토큰 업데이트",updating:"업데이트 중...",dialogTitle:"새 액세스 토큰",dialogDesc:"새 토큰입니다. 즉시 저장하세요. 창을 닫으면 로그인 페이지로 이동합니다.",dialogTokenLabel:"새 토큰 (64자 보안 토큰)",important:"중요 공지",tip1:"이 토큰은 한 번만 표시됩니다. 닫은 후에는 볼 수 없습니다",tip2:"즉시 복사하여 안전한 위치에 저장하세요",tip3:"닫으면 자동으로 로그인 페이지로 이동합니다",tip4:"새 토큰으로 다시 로그인하세요",copied:"복사됨",copyToken:"토큰 복사",savedClose:"저장했습니다, 닫기",securityTip1:"재생성하면 시스템이 랜덤 64자 보안 토큰을 생성합니다",securityTip2:"사용자 정의 토큰은 모든 보안 요구 사항을 충족해야 합니다",securityTip3:"토큰을 업데이트하면 이전 토큰이 즉시 무효화됩니다",securityTip4:"안전한 환경에서 토큰을 확인하고 복사하세요",securityTip5:"토큰 유출이 의심되면 즉시 재생성하거나 업데이트하세요",securityTip6:"최고의 보안을 위해 시스템 생성 토큰을 권장합니다"},other:{performance:"성능 & 저장소",localStorage:"로컬 저장소 사용량",logCache:"로그 캐시 크기",importExport:"설정 가져오기 / 내보내기",configWizard:"설정 마법사",devTools:"개발자 도구",clearStorage:"로컬 저장소 지우기",clearStorageDesc:"모든 로컬 저장소 데이터를 지웁니다",clearStorageConfirm:"지우기 확인",clearLogCache:"로그 캐시 지우기",clearLogCacheDesc:"모든 캐시된 로그 데이터를 지웁니다",clearLogCacheConfirm:"지우기 확인",importSettings:"설정 가져오기",exportSettings:"설정 내보내기",resetAllSettings:"모든 설정 재설정",resetAllSettingsDesc:"모든 설정을 기본값으로 되돌립니다",resetAllSettingsConfirm:"재설정 확인",clearStorageSuccess:"로컬 저장소를 지웠습니다",clearStorageFailed:"지우기 실패",clearLogSuccess:"로그 캐시를 지웠습니다",clearLogFailed:"지우기 실패",importSuccess:"가져오기 성공",importFailed:"가져오기 실패",exportSuccess:"내보내기 성공",exportFailed:"내보내기 실패",resetSuccess:"재설정 성공",resetFailed:"재설정 실패",storageItems:"{{count}}개 저장 항목",logCacheSizeDesc:"로그 뷰어가 캐시할 최대 로그 수를 제어합니다. 값이 클수록 메모리를 더 사용합니다.",logCacheSizeUnit:"개",dataSyncIntervalLabel:"홈 데이터 새로고침 간격",dataSyncIntervalUnit:"초",dataSyncIntervalDesc:"홈 화면 통계 데이터의 자동 새로고침 간격을 제어합니다",wsReconnectLabel:"WebSocket 재연결 간격",wsReconnectUnit:"초",wsReconnectDesc:"로그 WebSocket 연결 해제 후 재연결 기본 간격",wsMaxReconnectLabel:"WebSocket 최대 재연결 횟수",wsMaxReconnectUnit:"회",wsMaxReconnectDesc:"연결 실패 후 최대 재연결 시도 횟수",clearLogCacheFn:"로그 캐시 지우기",clearLocalCache:"로컬 캐시 지우기",confirmClearCache:"로컬 캐시 지우기 확인",confirmClearCacheDesc:"로그인 자격 증명을 제외한 모든 로컬 캐시 설정과 데이터를 지웁니다. 일부 기본 설정을 다시 구성해야 할 수 있습니다. 계속하시겠습니까?",confirmClear:"지우기 확인",importExportDesc:"현재 인터페이스 설정을 내보내 백업하거나, 이전에 내보낸 파일에서 복원하세요.",exporting:"내보내는 중...",importing:"가져오는 중...",resetAllSettingsBtn:"모든 설정을 기본값으로 재설정",confirmResetAll:"모든 설정 재설정 확인",confirmResetAllDesc:"테마, 색상, 애니메이션 등 모든 인터페이스 설정을 기본값으로 복원합니다. 로그인 상태에는 영향이 없습니다. 계속하시겠습니까?",configWizardDesc:"초기 설정 마법사를 다시 실행하여 시스템 기본 설정을 재구성할 수 있습니다.",rerunSetup:"초기 설정 다시 실행",confirmRerunSetup:"재구성 확인",confirmRerunSetupDesc:"초기 설정 마법사로 돌아갑니다. 시스템 기본 설정을 재구성할 수 있습니다. 계속하시겠습니까?",devToolsDesc:"아래 기능은 개발 및 디버깅 전용입니다. 페이지 충돌이나 비정상 동작을 유발할 수 있습니다.",triggerError:"테스트 오류 발생",confirmTriggerError:"오류 발생 확인",confirmTriggerErrorDesc:"React 오류를 수동으로 발생시켜 오류 경계 컴포넌트를 테스트합니다. 페이지를 새로고침하거나 홈으로 돌아가면 복구됩니다.",confirmTrigger:"발생 확인",logCleared:"로그 지워짐",logClearedDesc:"로그 캐시가 지워졌습니다",cacheCleared:"캐시 지워짐",cacheClearedDesc:"{{count}}개의 캐시 데이터를 지웠습니다",exportSuccessDesc:"설정을 JSON 파일로 내보냈습니다",exportFailedDesc:"설정을 내보낼 수 없습니다",importSuccessDesc:"{{imported}}개 설정을 가져왔습니다",importSkippedSuffix:", {{skipped}}개 건너뜀",importRefreshHint:"참고",importRefreshHintDesc:"일부 설정은 페이지를 새로고침해야 완전히 적용됩니다",importNoDataDesc:"가져올 유효한 설정이 없습니다",importInvalidDesc:"유효하지 않은 파일 형식",resetDone:"재설정 완료",resetDoneDesc:"모든 설정이 기본값으로 복원되었습니다. 변경 사항을 적용하려면 페이지를 새로고침하세요."},about:{openSource:"오픈 소스",aboutApp:"MaiBot Dashboard 정보",version:"버전:",author:"작성자",techStack:"기술 스택",frontendFramework:"프론트엔드 프레임워크",uiComponents:"UI 컴포넌트",backend:"백엔드",buildTool:"빌드 도구",openSourceThanks:"오픈 소스 라이브러리",openSourceLicense:"오픈 소스 라이선스",openSourceDesc:"이 프로젝트는 GitHub에서 오픈 소스입니다. Star ⭐로 응원해 주세요!",visitGitHub:"GitHub 방문",appDesc:"MaiBot의 현대적인 웹 관리 인터페이스",maimaiCore:"MaiBot 코어",uiFrameworkGroup:"UI 프레임워크 & 컴포넌트",routingStateGroup:"라우팅 & 상태 관리",formGroup:"폼 처리",utilsGroup:"유틸리티 라이브러리",animationGroup:"애니메이션",backendGroup:"백엔드 프레임워크",devToolsGroup:"개발자 도구",openSourceThanksDesc:"이 프로젝트는 다음 훌륭한 오픈 소스 라이브러리를 사용합니다. 기여에 감사드립니다:",licenseDesc:"이 프로젝트는 GNU General Public License v3.0으로 라이선스됩니다. 동일한 오픈 소스 라이선스를 유지하는 한 자유롭게 사용, 수정, 배포할 수 있습니다.",licenseDeps:"이 프로젝트의 모든 오픈 소스 라이브러리는 각각의 라이선스(MIT, Apache-2.0, BSD 등)를 따릅니다. 모든 오픈 소스 기여자에게 감사드립니다.",lib:{react:"UI 구축을 위한 라이브러리",shadcn:"우아한 React 컴포넌트 라이브러리",radix:"스타일 없는 접근 가능한 컴포넌트",tailwind:"유틸리티 우선 CSS 프레임워크",lucide:"아름다운 아이콘 라이브러리",tanstackRouter:"타입 안전한 라우팅 라이브러리",zustand:"경량 상태 관리 라이브러리",reactHookForm:"고성능 폼 라이브러리",zod:"TypeScript 우선 스키마 검증",clsx:"조건부 className 빌더",tailwindMerge:"Tailwind 클래스 이름 병합 도구",cva:"컴포넌트 변형 관리",dateFns:"현대적인 날짜 유틸리티 라이브러리",framerMotion:"React 애니메이션 라이브러리",vaul:"드로어 컴포넌트 애니메이션",fastapi:"현대적인 Python 웹 프레임워크",uvicorn:"ASGI 서버",pydantic:"데이터 검증 라이브러리",pythonMultipart:"파일 업로드 지원",typescript:"JavaScript의 슈퍼셋",vite:"차세대 프론트엔드 빌드 도구",eslint:"JavaScript 코드 린터"}}},OA={title:"로그인",description:"계속하려면 액세스 토큰을 입력하세요",tokenLabel:"액세스 토큰",tokenPlaceholder:"액세스 토큰 입력",loginButton:"로그인",loggingIn:"로그인 중...",loginFailed:"로그인 실패",loginSuccess:"로그인 성공",checkingAuth:"로그인 상태 확인 중...",welcome:"MaiBot에 오신 것을 환영합니다",accessDesc:"시스템에 액세스하려면 액세스 토큰을 입력하세요",tokenRequired:"액세스 토큰을 입력해 주세요",verifyingLabel:"확인 중...",verifyEnter:"확인 후 입장",helpLink:"Token이 없습니다. 어디서 얻을 수 있나요?",helpTitle:"Access Token 얻는 방법",helpDesc:"Access Token은 MaiBot WebUI에 액세스하는 유일한 자격 증명입니다. 다음 방법으로 얻으세요",method1Title:"방법 1: 시작 로그 확인",method1Desc:"MaiBot 시작 시 콘솔에 WebUI Access Token이 표시됩니다.",method1Example1:"🔑 WebUI Access Token: abc123...",method1Example2:"💡 이 Token으로 WebUI에 로그인하세요",method2Title:"방법 2: 설정 파일 확인",method2Desc:"Token은 프로젝트 루트의 설정 파일에 저장됩니다:",method2FileHint:"이 파일을 열고 access_token 필드의 값을 복사하세요",securityTipTitle:"보안 안내",securityTip1:"Token을 안전하게 유지하고 타인에게 노출하지 마세요",securityTip2:"Token을 재설정하려면 로그인 후 시스템 설정으로 이동하세요",slowLink:"인터페이스가 느립니다. 어떻게 하나요?",disableAnimTitle:"배경 애니메이션 비활성화",disableAnimDesc:"배경 애니메이션은 저사양 디바이스에서 느리게 동작할 수 있습니다. 비활성화하면 화면이 훨씬 부드러워집니다.",disableAnimDetail:"비활성화 후 배경은 단색으로 바뀐지지만 모든 기능은 정상 작동합니다. 시스템 설정에서 언제든지 다시 활성화할 수 있습니다.",disableAnimBtn:"애니메이션 비활성화",verifyFailed:"Token 확인에 실패했습니다. 확인 후 다시 시도해 주세요.",connFailed:"서버에 연결하지 못했습니다. 네트워크 연결을 확인해 주세요.",switchToLight:"라이트 모드로 전환",switchToDark:"다크 모드로 전환"},LA={steps:{botBasic:{title:"Bot 기본 설정",description:"봇의 기본 정보를 설정합니다"},personality:{title:"성격 설정",description:"봇의 성격과 말투를 정의합니다"},apiProvider:{title:"API 설정",description:"API 제공자를 설정합니다"},modelSetup:{title:"모델 설정",description:"planner와 replyer 모델을 설정합니다"}},loading:{title:"설정을 불러오는 중...",description:"기존 설정을 읽고 있습니다"},header:{title:"초기 설정 마법사",description:"{{appName}}의 초기 설정을 함께 완료해 봅시다"},progress:{stepCounter:"단계 {{current}} / {{total}}"},validation:{selectPlatform:"플랫폼을 선택해 주세요",enterNickname:"닉네임을 입력해 주세요",enterQqAccount:"QQ 계정을 입력해 주세요",enterAccountId:"계정 ID를 입력해 주세요",enterProviderName:"API 제공자 이름을 입력해 주세요",enterBaseUrl:"API Base URL을 입력해 주세요",enterApiKey:"API Key를 입력해 주세요",enterPlannerModelIdentifier:"planner 모델 식별자를 입력해 주세요",enterReplyerModelIdentifier:"replyer 모델 식별자를 입력해 주세요"},toast:{loadFailedTitle:"설정 불러오기에 실패했습니다",loadFailedDescription:"기존 설정을 불러올 수 없어 기본값을 사용합니다",saveSuccessTitle:"저장되었습니다",saveSuccessDescription:"{{step}} 설정이 저장되었습니다",saveFailedTitle:"저장에 실패했습니다",validationFailedTitle:"입력값을 확인해 주세요",completeSuccessTitle:"설정이 완료되었습니다",completeSuccessDescription:"새 설정을 적용하기 위해 {{appName}}을(를) 재시작하는 중입니다...",completeFailedTitle:"설정 완료에 실패했습니다",skipFailedTitle:"설정 마법사 건너뛰기에 실패했습니다",unknownError:"알 수 없는 오류"},actions:{previous:"이전",next:"다음",skip:"마법사 건너뛰기",complete:"설정 완료",saving:"저장 중...",completing:"완료 중..."},skipDialog:{title:"설정 마법사를 건너뛸까요?",description:"시스템 설정에서 언제든지 다시 설정 마법사를 열 수 있습니다. 정말 건너뛰시겠습니까?",confirm:"건너뛰기"},footer:"이 설정들은 언제든지 설정 화면에서 변경할 수 있습니다",defaults:{personality:{personality:"여자 대학생이며 현재 2학년이고, Tieba 같은 커뮤니티를 자주 봅니다.",replyStyle:"답변은 담백하고 짧게 하며 중국어로 말하세요. 자신의 학과 배경을 일부러 강조하지 마세요. Tieba, Zhihu, Weibo의 답변 스타일을 참고할 수 있습니다.",multipleReplyStyles:{plain:"말투는 담백하지만 약간 냉소적이고, 매우 짧고 구어체입니다. Tieba 와 Weibo 답변 스타일을 참고할 수 있습니다.",shortText:"1-2글자로 답장하기",shortSymbol:"1-2개의 기호로 답장하기",translation:"살짝 번역체로 말하되 길게 쓰지 않기"}},emoji:{filtrationPrompt:"공공질서와 미풍양속에 어긋나지 않음"}},forms:{botBasic:{platform:{label:"플랫폼 *",placeholder:"플랫폼 선택",description:"봇이 실행될 플랫폼을 선택합니다",options:{custom:"기타 플랫폼"}},customPlatform:{label:"플랫폼 이름 *",placeholder:"예: matrix 와 같은 플랫폼 이름 입력"},qqAccount:{label:"QQ 계정 *",placeholder:"봇의 QQ 계정을 입력하세요",description:"봇 로그인에 사용하는 QQ 계정입니다"},primaryAccount:{label:"계정 ID *",placeholder:"봇의 계정 ID를 입력하세요",description:"이 플랫폼에서 봇을 식별하는 계정 ID입니다"},nickname:{label:"닉네임 *",placeholder:"봇의 닉네임을 입력하세요",description:"봇의 대표 호칭입니다"},alias:{label:"별칭",placeholder:"별칭을 입력하고 Enter 로 추가",add:"추가",description:"봇의 다른 호칭을 여러 개 추가할 수 있습니다",remove:"별칭 {{alias}} 제거"}},personality:{personality:{label:"성격 특성 *",placeholder:"봇의 성격과 설정을 설명해 주세요 (권장 120자 이내)",description:"예: 대학 2학년 여자 대학생으로 Tieba 를 자주 본다"},replyStyle:{label:"말투 *",placeholder:"봇이 말하는 방식과 표현 습관을 설명해 주세요",description:"예: 답변은 담백하고 짧게, 중국어로 말하며 Tieba, Zhihu, Weibo 스타일을 참고한다"},multipleReplyStyle:{label:"대체 답변 스타일",placeholder:"한 줄에 하나씩 대체 답변 스타일을 입력하세요",description:"목록이 비어 있지 않으면 MaiBot 이 아래 확률에 따라 기본 답변 스타일을 무작위로 대체합니다"},multipleProbability:{label:"대체 스타일 적용 확률",description:"답변을 만들 때마다 기본 답변 스타일을 대체 스타일로 무작위 교체할 확률입니다"}},emoji:{emojiSendNum:{label:"이모지 후보 수",description:"전송 전에 몇 개의 이모지 중에서 고를지 정합니다. 최대 64개입니다"},maxRegNum:{label:"최대 이모지 수",description:"봇이 저장할 수 있는 이모지의 최대 개수입니다"},doReplace:{label:"최대 수 도달 시 교체",description:"켜면 오래된 이모지를 삭제하고, 끄면 새 이모지를 더 이상 수집하지 않습니다"},checkInterval:{label:"확인 간격 (분)",description:"이모지 등록, 손상, 삭제를 확인하는 간격입니다"},stealEmoji:{label:"이모지 수집",description:"일부 이모지를 봇이 자신의 것으로 저장할 수 있게 합니다"},contentFiltration:{label:"이모지 필터링 사용",description:"조건에 맞는 이모지만 저장합니다"},filtrationPrompt:{label:"필터 조건",placeholder:"예: 공공질서와 미풍양속에 어긋나지 않음",description:"저장할 이모지가 충족해야 하는 조건을 설명해 주세요"}},other:{allGlobal:{label:"전역 슬랭 모드 사용",description:"봇이 그룹 슬랭을 학습하고 사용할 수 있게 합니다"}},apiProvider:{providerName:{label:"API 제공자 이름 *",placeholder:"예: OpenAI, DeepSeek, 자체 호스팅",description:"이 이름은 model_config.toml에 저장되며 아래 모델에서 참조됩니다"},baseUrl:{label:"API Base URL *",description:"OpenAI 호환 엔드포인트를 입력해 주세요. 예: https://api.example.com/v1"},apiKey:{label:"API Key *",description:"이 제공자의 API Key를 입력해 주세요",show:"API Key 표시",hide:"API Key 숨기기"}},modelSetup:{planner:{identifier:{label:"planner 모델 식별자 *",description:"API 서비스가 제공하는 실제 모델 ID입니다. 모델 이름은 이 식별자로 초기화됩니다"},visual:{label:"비전 사용"}},replyer:{identifier:{label:"replyer 모델 식별자 *",description:"API 서비스가 제공하는 실제 모델 ID입니다. 모델 이름은 이 식별자로 초기화됩니다"},visual:{label:"비전 사용"}},saveHint:"더 자세한 작업 할당은 나중에 설정할 수 있습니다."}}},zA={loading:"로딩 중...",error:"오류",retry:"재시도",save:"저장",cancel:"취소",confirm:"확인",delete:"삭제",edit:"편집",close:"닫기",search:"검색",noData:"데이터 없음",success:"성공",failed:"실패"},BA={preparing:"재시작 준비 중",preparingDesc:"재시작 요청 전송 중...",preparingTip:"🔄 MaiBot 재시작을 준비 중...",restarting:"MaiBot 재시작 중",restartingDesc:"잠시 기다려주세요, MaiBot이 재시작 중입니다...",restartingTip:"🔄 설정을 저장했습니다, 메인 프로세스를 재시작 중...",checking:"서비스 상태 확인 중",checkingDesc:"서비스 복구 대기 중... ({{current}}/{{max}})",checkingTip:"⏳ 서비스 복구를 기다리는 중, 페이지를 닫지 마세요...",success:"재시작 성공",successDesc:"로그인 페이지로 이동 중...",successTip:"✅ 설정이 적용되었습니다, 서비스가 정상적으로 실행 중입니다",failed:"재시작 시간 초과",failedDesc:"서비스가 예상 시간 내에 복구되지 않았습니다",failedTip:"⚠️ 장시간 응답이 없으면 수동으로 재시작해 보세요",refreshPage:"페이지 새로고침",retryCheck:"재시도",elapsed:"경과 시간:"},UA={title:"문제가 발생했습니다",description:"앱이 예기치 않은 오류를 만났습니다. 페이지를 새로고침하거나 홈으로 돌아갈 수 있습니다.",refreshPage:"페이지 새로고침",goHome:"홈으로 이동",footer:"문제가 계속되면 오류 정보를 복사하여 개발자에게 보고해 주세요",copiedToClipboard:"클립보드에 복사됨",copyError:"오류 정보 복사"},VA={placeholder:"페이지 검색...",title:"검색",noResults:"일치하는 페이지를 찾을 수 없습니다",startSearch:"키워드를 입력하여 검색 시작",navigate:"탐색",select:"선택",close:"닫기",categories:{overview:"개요",config:"설정",resources:"리소스",monitor:"모니터",extensions:"확장 기능",system:"시스템"},items:{home:"홈",homeDesc:"대시보드 개요 보기",botConfig:"속 메인 설정",botConfigDesc:"속 핵심 설정 구성",modelProvider:"모델 공급자 설정",modelProviderDesc:"모델 공급자 구성",model:"모델 설정",modelDesc:"모델 매개변수 구성",emoji:"이모티콘 관리",emojiDesc:"속 이모티콘 관리",expression:"표현 관리",expressionDesc:"속 표현 관리",person:"인물 정보",personDesc:"인물 정보 관리",jargon:"슬랭 관리",jargonDesc:"속이 학습한 슬랭 관리",statistics:"통계 정보",statisticsDesc:"사용 통계 보기",plugins:"플러그인 마켓",pluginsDesc:"플러그인 탐색 및 설치",logs:"로그 뷰어",logsDesc:"시스템 로그 보기",reasoningProcessDesc:"Maisaka prompt 추론 로그 보기",settings:"설정",settingsDesc:"시스템 설정 구성"}},PA={skipToContent:"메인 콘텐츠로 건너뀐기",sidebarNav:"메인 내비게이션",closeMenu:"메뉴 닫기",navigatedTo:"{{page}}으로 이동했습니다"},_A={title:"실시간 모니터",subtitle:"MaiBot 실행 상태 및 통계 데이터 개요",loading:"통계 데이터 로딩 중...",loadingHint:"MaiBot 실행 데이터를 가져오는 중",timeRange:{"24h":"24시간","7d":"7일","30d":"30일"},autoRefresh:"자동 새로고침",botStatus:{title:"MaiBot 상태",running:"실행 중",stopped:"중지됨",uptime:"가동 {{time}}"},quickActions:{title:"빠른 작업",restart:"MaiBot 재시작",restarting:"재시작 중...",expressionReview:"표현 검토",viewLogs:"로그 보기",pluginManage:"플러그인 관리",systemSettings:"시스템 설정"},survey:{title:"피드백 설문",description:"제품 경험 개선에 도움을 주세요",webui:"WebUI 피드백",maibot:"MaiBot 피드백"},stats:{totalRequests:"총 요청 수",totalCost:"총 비용",tokenUsage:"토큰 소비",avgResponse:"평균 응답",avgResponseDesc:"API 평균 지연",onlineTime:"온라인 시간",messageProcessing:"메시지 처리",costEfficiency:"비용 효율",recentPeriod:"최근 {{range}}",perHour:"{{value}}/시간",noData:"데이터 없음",replied:"답장 {{num}}건",per100Messages:"100건당",seconds:"초",hours:"시간",days:"일"},charts:{tabs:{trends:"트렌드",models:"모델",activity:"활동",daily:"일간 통계"},requestTrend:"요청 트렌드",requestTrendDesc:"최근 {{hours}}시간의 요청량 변화",costTrend:"비용 트렌드",costTrendDesc:"API 호출 비용 변화",tokenUsage:"토큰 소비",tokenUsageDesc:"토큰 사용량 변화",modelDistribution:"모델 요청 분포",modelDistributionDesc:"모델별 사용 비율 ({{count}}개 모델)",modelDetails:"모델 상세 통계",modelDetailsDesc:"요청 수, 비용 및 성능",recentActivity:"최근 활동",recentActivityDesc:"최신 API 호출 기록",dailyStats:"일간 통계",dailyStatsDesc:"최근 7일 데이터 요약",requests:"요청 수",cost:"비용(¥)",requestCount:"요청 수",costLabel:"비용",avgTime:"평균 소요",timeCost:"소요 시간",status:"상태"},time:{hoursMinutes:"{{hours}}시간 {{minutes}}분"},hitokotoFallback:"인생은 초콜릿 상자와 같아서, 다음에 무엇이 나올지 모릅니다.",hitokotoFallbackFrom:"포레스트 검프",unknownSource:"알 수 없음",ariaLabel:{requestTrend:"시간별 요청 트렌드 차트, 최근 시간대별 요청 수 변화 표시",costTrend:"API 비용 트렌드 차트, 최근 시간대별 API 호출 비용 변화 표시",tokenUsage:"토큰 소비 트렌드 차트, 최근 시간대별 토큰 사용량 변화 표시"}},HA={header:AA,sidebar:EA,workspace:MA,chat:kA,layout:NA,httpWarning:RA,settings:jA,auth:OA,setupPage:LA,common:zA,restart:BA,errorBoundary:UA,search:VA,a11y:PA,home:_A},FA={collapseSidebar:"收起侧边栏",expandSidebar:"展开侧边栏",toggleConnection:"切换后端连接",viewAnnualSummary:"查看年度总结",annualSummary:"2025 年度总结",searchPlaceholder:"搜索...",viewDocs:"查看麦麦文档",docs:"麦麦文档",switchToLight:"切换到浅色模式",switchToDark:"切换到深色模式",logout:"登出系统",logoutLabel:"登出",notConnected:"未连接"},IA={groups:{overview:"概览",botConfig:"麦麦配置编辑",botResources:"麦麦资源管理",extensionsMonitor:"插件与扩展",system:"系统"},menu:{home:"首页",botMainConfig:"麦麦设置",aiModelProvider:"模型厂商设置",modelManagement:"模型管理",promptManagement:"Prompt 管理",adapterConfig:"麦麦适配器配置",emojiManagement:"表情包",expressionManagement:"表达方式",slangManagement:"黑话",personInfo:"人物信息管理",knowledgeGraph:"长期记忆图谱",knowledgeBase:"长期记忆",pluginMarket:"插件市场",configTemplate:"配置模板市场",pluginConfig:"插件管理",mcpSettings:"MCP 设置",logViewer:"日志查看器",reasoningProcess:"推理过程",maisakaMonitor:"麦麦观察",localChat:"本地聊天室",settings:"系统设置"}},GA={switcherLabel:"切换麦麦工作区",settings:"麦麦设置",chat:"麦麦聊天"},qA={defaultTab:"WebUI",botNameFallback:"麦麦",userFallback:"用户",userNameFallback:"WebUI用户",virtualGroupFallback:"WebUI虚拟群聊",status:{connected:"已连接",connecting:"连接中...",disconnected:"未连接"},actions:{cancel:"取消",reconnect:"重新连接",save:"保存",send:"发送消息"},identity:{current:"当前身份:",editName:"修改昵称",group:"群:{{group}}",namePlaceholder:"输入昵称",virtual:"虚拟身份:"},input:{placeholder:"输入消息...",waiting:"等待连接..."},message:{empty:"开始与 {{bot}} 对话吧!",emptyHint:"在下方输入框输入消息,按 Enter 发送",errorFallback:"发生错误",thinking:"思考中..."},composer:{hint:"Enter 发送 · Shift + Enter 换行"},sidebar:{closeConversation:"关闭 {{label}}",conversations:"聊天会话",emptyPreview:"暂无消息",identityHint:"本地聊天室身份",newVirtual:"新建虚拟身份对话",online:"在线",offline:"离线",subtitle:"{{count}} 个会话",title:"聊天",webuiBadge:"WebUI",virtualBadge:"虚拟",profileTitle:"我的身份",editName:"编辑昵称",saveName:"保存"},dialog:{create:"创建对话",description:"选择一个麦麦已认识的用户,以该用户的身份与麦麦对话。麦麦将使用她对该用户的记忆和认知来回应。",groupName:"虚拟群名(可选)",groupNameHint:"麦麦会认为这是一个名为此名称的群聊",knownUserSuffix:" · 已认识",loading:"加载中...",noUsers:"没有找到用户",personCount:"({{count}} 人)",platform:"选择平台",platformPlaceholder:"选择平台",searchUser:"搜索用户名...",title:"新建虚拟身份对话",user:"选择用户"},media:{audioUnsupported:"您的浏览器不支持音频播放",emoji:"表情包",face:"[表情:{{data}}]",file:"[文件: {{data}}]",forward:"[转发消息]",image:"图片",loadFailed:"[{{type}}加载失败]",music:"[音乐分享]",noCaptions:"无字幕",reply:"[回复消息]",unknown:"[{{type}}]",unknownMessage:"未知消息",videoUnsupported:"您的浏览器不支持视频播放"},toast:{backendUnavailable:"无法连接到后端服务,请确保 MaiBot 已启动",backendUnavailableShort:"无法连接到后端服务",connectionFailed:"连接失败",currentSessionUnavailable:"当前聊天会话不可用,请稍后重试",error:"错误",incompleteConfig:"配置不完整",networkError:"网络错误",platformFailed:"获取平台失败",selectPlatformAndUser:"请选择平台和用户",sendFailed:"发送失败",serverError:"服务器返回错误: {{status}}",sessionUnavailable:"无法建立聊天会话,请稍后重试",virtualTabCreated:"虚拟身份标签页",virtualTabCreatedDesc:"已创建 {{label}} 的对话"}},KA={verifyingLogin:"正在验证登录状态...",logoTitle:"MaiBot WebUI",logoTitleShort:"M"},YA={title:"安全提示:",message:"当前正在通过 HTTP 访问 WebUI。",description:"非本地 HTTP 连接可能暴露访问令牌和配置内容,建议改用 HTTPS 或受信任的内网连接。",dismiss:"关闭 HTTP 安全提示"},XA={title:"系统设置",description:"管理您的应用偏好设置",tabs:{appearance:"外观",security:"安全",other:"其他",about:"关于"},appearance:{themeMode:"主题模式",themeModeDesc:"浅色/深色/跟随系统",light:"浅色",dark:"深色",system:"跟随系统",accentColor:"主题色",resetDefault:"重置默认",colorPreview:"实时色板预览",styleTweaks:"界面样式微调",typography:"字体排版",visualEffects:"视觉效果",layout:"布局",animation:"动画",background:"背景设置",customCss:"自定义 CSS",animationEffect:"动画效果",importExportTheme:"主题导入/导出",importTheme:"导入主题",exportTheme:"导出主题",importSuccess:"导入成功",importFailed:"导入失败",resetSuccess:"重置成功",fontFamily:"字体",fontSize:"字号",borderRadius:"圆角",contentWidth:"内容宽度",sidebarWidth:"侧边栏宽度",animationSpeed:"动画速度",backgroundImage:"背景图片",backgroundBlur:"背景模糊",backgroundOpacity:"背景透明度",lightDesc:"始终使用浅色主题",darkDesc:"始终使用深色主题",systemDesc:"根据系统设置自动切换",accentPrimary:"主色调",accentHint:"点击色环选择或输入 HEX 值",resetTheme:"重置为默认",confirmResetTheme:"确认重置主题",confirmResetThemeDesc:"这将重置所有主题设置为默认值,包括颜色、字体、布局和自定义 CSS。此操作不可撤销,确定要继续吗?",confirmResetAction:"确认重置",cssWarningTitle:"以下内容已被安全过滤:",cssPlaceholder:`/* 在这里输入自定义 CSS */ + +/* 例如: */ +/* .sidebar { background: #1a1a2e; } */`,cssDescription:"编写自定义 CSS 来进一步个性化界面。危险的 CSS(如 @import、url())将被自动过滤。",clearCss:"清除",exportDesc:"导出主题为 JSON 文件便于分享或备份,导入时会自动应用所有配置。",importSuccessDesc:"主题配置已导入,页面将自动刷新",resetSuccessDesc:"主题已重置为默认值",enableAnimations:"启用动画效果",enableAnimationsDesc:"关闭后将禁用所有过渡动画和特效,提升性能",loginWavesBackground:"登录页波浪背景",loginWavesBackgroundDesc:"关闭后登录页将使用纯色背景,适合低性能设备",inheritParentBg:"继承上级背景",inheritParentBgDesc:"开启后将使用上级层级的背景配置",fontFamilyLabel:"字体族 (Font Family)",fontFamilyPlaceholder:"选择字体族",fontFamilySystem:"系统默认 (System)",fontFamilySans:"无衬线 (Sans-serif)",fontFamilySerif:"衬线 (Serif)",fontFamilyMono:"等宽 (Monospace)",baseFontSize:"基准字体大小 (Base Size)",lineHeight:"行高 (Line Height)",lineHeightPlaceholder:"选择行高",lineHeightCompact:"紧凑 (1.2)",lineHeightNormal:"正常 (1.5)",lineHeightLoose:"宽松 (1.75)",borderRadiusLabel:"圆角大小 (Radius)",shadowLabel:"阴影强度 (Shadow)",shadowPlaceholder:"选择阴影强度",shadowNone:"无阴影 (None)",shadowSm:"轻微 (Small)",shadowMd:"中等 (Medium)",shadowLg:"强烈 (Large)",shadowXl:"极强 (Extra Large)",blurLabel:"模糊效果 (Blur)",sidebarWidthLabel:"侧边栏宽度 (Sidebar Width)",maxContentWidth:"内容区最大宽度 (Max Width)",spacingUnit:"基准间距 (Spacing Unit)",animationSpeedLabel:"动画速度 (Speed)",animationSpeedPlaceholder:"选择动画速度",animationFast:"快速 (100ms)",animationNormal:"正常 (300ms)",animationSlow:"慢速 (500ms)",animationOff:"关闭 (0ms)",bgPage:"页面",bgSidebar:"侧边栏",typographyGroup:"字体排版 (Typography)",visualGroup:"视觉效果 (Visual)",layoutGroup:"布局 (Layout)",animationGroup:"动画 (Animation)",backgroundGroup:"背景设置 (Backgrounds)"},security:{currentToken:"当前 Access Token",yourToken:"您的访问令牌",regenerate:"重新生成",customToken:"自定义 Access Token",securityTip:"安全提示",cannotCopy:"无法复制",copySuccess:"复制成功",copyFailed:"复制失败",updateSuccess:"更新成功",updateFailed:"更新失败",generateSuccess:"生成成功",generateFailed:"生成失败",newToken:"新的 Access Token",confirmRegenerate:"确认重新生成 Token",confirmRegenerateDesc:"重新生成后,旧 Token 将失效,需重新登录",cancel:"取消",confirm:"确认",cannotCopyDesc:"Token 存储在安全 Cookie 中,请重新生成以获取新 Token",copySuccessDesc:"Token 已复制到剪贴板",copyFailedDesc:"请手动复制 Token",inputError:"输入错误",inputErrorDesc:"请输入新的 Token",formatError:"格式错误",formatErrorDesc:"Token 不符合要求: {{failedRules}}",updateSuccessDesc:"Access Token 已更新,即将跳转到登录页",updateFailedDesc:"无法更新 Token",updateFailedConn:"连接服务器失败",generateSuccessDesc:"新的 Access Token 已生成,请及时保存",generateFailedDesc:"无法生成新 Token",generateFailedConn:"连接服务器失败",cannotView:"无法查看",cannotViewDesc:'Token 存储在安全 Cookie 中,如需新 Token 请点击"重新生成"',hide:"隐藏",show:"显示",copyTip:"复制到剪贴板",regenerateShort:"生成",confirmRegenerateFullDesc:"这将生成一个新的 64 位安全令牌,并使当前 Token 立即失效。您需要使用新 Token 重新登录系统。此操作不可撤销,确定要继续吗?",confirmGenerate:"确认生成",tokenStorePlaceholder:"Token 存储在安全 Cookie 中",safekeepTip:"请妥善保管您的 Access Token,不要泄露给他人",newTokenLabel:"新的访问令牌",customTokenPlaceholder:"输入自定义 Token",tokenReqTitle:"Token 安全要求:",tokenValid:"Token 格式正确,可以使用",updateBtn:"更新自定义 Token",updating:"更新中...",dialogTitle:"新的 Access Token",dialogDesc:"这是您的新 Token,请立即保存。关闭此窗口后将跳转到登录页面。",dialogTokenLabel:"您的新 Token (64位安全令牌)",important:"重要提示",tip1:"此 Token 仅显示一次,关闭后无法再查看",tip2:"请立即复制并保存到安全的位置",tip3:"关闭窗口后将自动跳转到登录页面",tip4:"请使用新 Token 重新登录系统",copied:"已复制",copyToken:"复制 Token",savedClose:"我已保存,关闭",securityTip1:"重新生成 Token 会创建系统随机生成的 64 位安全令牌",securityTip2:"自定义 Token 必须满足所有安全要求才能使用",securityTip3:"更新 Token 后,旧的 Token 将立即失效",securityTip4:"请在安全的环境下查看和复制 Token",securityTip5:"如果怀疑 Token 泄露,请立即重新生成或更新",securityTip6:"建议使用系统生成的 Token 以获得最高安全性"},other:{performance:"性能与存储",localStorage:"本地存储使用",logCache:"日志缓存大小",importExport:"导入/导出设置",configWizard:"配置向导",devTools:"开发者工具",clearStorage:"清空本地存储",clearStorageDesc:"清空所有本地存储数据",clearStorageConfirm:"确认清空",clearLogCache:"清空日志缓存",clearLogCacheDesc:"清空所有缓存的日志数据",clearLogCacheConfirm:"确认清空",importSettings:"导入设置",exportSettings:"导出设置",resetAllSettings:"重置所有设置",resetAllSettingsDesc:"将所有设置恢复到默认值",resetAllSettingsConfirm:"确认重置",clearStorageSuccess:"本地存储已清空",clearStorageFailed:"清空失败",clearLogSuccess:"日志缓存已清空",clearLogFailed:"清空失败",importSuccess:"导入成功",importFailed:"导入失败",exportSuccess:"导出成功",exportFailed:"导出失败",resetSuccess:"重置成功",resetFailed:"重置失败",storageItems:"{{count}} 个存储项",logCacheSizeDesc:"控制日志查看器最多缓存的日志条数,较大的值会占用更多内存",logCacheSizeUnit:"条",dataSyncIntervalLabel:"首页数据刷新间隔",dataSyncIntervalUnit:"秒",dataSyncIntervalDesc:"控制首页统计数据的自动刷新间隔",wsReconnectLabel:"WebSocket 重连间隔",wsReconnectUnit:"秒",wsReconnectDesc:"日志 WebSocket 连接断开后的重连基础间隔",wsMaxReconnectLabel:"WebSocket 最大重连次数",wsMaxReconnectUnit:"次",wsMaxReconnectDesc:"连接失败后的最大重连尝试次数",clearLogCacheFn:"清除日志缓存",clearLocalCache:"清除本地缓存",confirmClearCache:"确认清除本地缓存",confirmClearCacheDesc:"这将清除所有本地缓存的设置和数据(不包括登录凭证)。您可能需要重新配置部分偏好设置。确定要继续吗?",confirmClear:"确认清除",importExportDesc:"导出当前的界面设置以便备份,或从之前导出的文件中恢复设置。",exporting:"导出中...",importing:"导入中...",resetAllSettingsBtn:"重置所有设置为默认值",confirmResetAll:"确认重置所有设置",confirmResetAllDesc:"这将把所有界面设置恢复为默认值,包括主题、颜色、动画等偏好设置。此操作不会影响您的登录状态。确定要继续吗?",configWizardDesc:"重新进行初次配置向导,可以帮助您重新设置系统的基础配置。",rerunSetup:"重新进行初次配置",confirmRerunSetup:"确认重新配置",confirmRerunSetupDesc:"这将带您重新进入初次配置向导。您可以重新设置系统的基础配置项。确定要继续吗?",devToolsDesc:"以下功能仅供开发调试使用,可能会导致页面崩溃或异常。",triggerError:"触发测试错误",confirmTriggerError:"确认触发错误",confirmTriggerErrorDesc:"这将手动触发一个 React 错误,用于测试错误边界组件的显示效果。页面将显示错误界面,您可以通过刷新页面或点击返回首页来恢复。",confirmTrigger:"确认触发",logCleared:"日志已清除",logClearedDesc:"日志缓存已清空",cacheCleared:"缓存已清除",cacheClearedDesc:"已清除 {{count}} 项缓存数据",exportSuccessDesc:"设置已导出为 JSON 文件",exportFailedDesc:"无法导出设置",importSuccessDesc:"成功导入 {{imported}} 项设置",importSkippedSuffix:",跳过 {{skipped}} 项",importRefreshHint:"提示",importRefreshHintDesc:"部分设置需要刷新页面才能完全生效",importNoDataDesc:"没有有效的设置项可导入",importInvalidDesc:"文件格式无效",resetDone:"已重置",resetDoneDesc:"所有设置已恢复为默认值,刷新页面以应用更改"},about:{openSource:"开源项目",aboutApp:"关于 MaiBot Dashboard",version:"版本:",author:"作者",techStack:"技术栈",frontendFramework:"前端框架",uiComponents:"UI 组件",backend:"后端",buildTool:"构建工具",openSourceThanks:"开源库感谢",openSourceLicense:"开源许可",openSourceDesc:"本项目在 GitHub 开源,欢迎 Star ⭐ 支持!",visitGitHub:"前往 GitHub",appDesc:"麦麦(MaiBot)的现代化 Web 管理界面",maimaiCore:"MaiBot 核心",uiFrameworkGroup:"UI 框架与组件",routingStateGroup:"路由与状态管理",formGroup:"表单处理",utilsGroup:"工具库",animationGroup:"动画效果",backendGroup:"后端框架",devToolsGroup:"开发工具",openSourceThanksDesc:"本项目使用了以下优秀的开源库,感谢他们的贡献:",licenseDesc:"本项目采用 GNU General Public License v3.0 开源许可证。您可以自由地使用、修改和分发本软件,但必须保持相同的开源许可。",licenseDeps:"本项目依赖的所有开源库均遵循各自的开源许可证(MIT、Apache-2.0、BSD 等)。感谢所有开源贡献者的无私奉献。",lib:{react:"用户界面构建库",shadcn:"优雅的 React 组件库",radix:"无样式的可访问组件库",tailwind:"实用优先的 CSS 框架",lucide:"精美的图标库",tanstackRouter:"类型安全的路由库",zustand:"轻量级状态管理",reactHookForm:"高性能表单库",zod:"TypeScript 优先的 schema 验证",clsx:"条件 className 构建工具",tailwindMerge:"Tailwind 类名合并工具",cva:"组件变体管理",dateFns:"现代化日期处理库",framerMotion:"React 动画库",vaul:"抽屉组件动画",fastapi:"现代化 Python Web 框架",uvicorn:"ASGI 服务器",pydantic:"数据验证库",pythonMultipart:"文件上传支持",typescript:"JavaScript 的超集",vite:"下一代前端构建工具",eslint:"JavaScript 代码检查工具"}}},QA={title:"登录",description:"请输入访问令牌以继续",tokenLabel:"Access Token",tokenPlaceholder:"请输入 Access Token",loginButton:"登录",loggingIn:"登录中...",loginFailed:"登录失败",loginSuccess:"登录成功",checkingAuth:"正在检查登录状态...",welcome:"欢迎使用 MaiBot",accessDesc:"请输入您的 Access Token 以继续访问系统",tokenRequired:"请输入 Access Token",verifyingLabel:"验证中...",verifyEnter:"验证并进入",helpLink:"我没有 Token,我该去哪里获得 Token?",helpTitle:"如何获取 Access Token",helpDesc:"Access Token 是访问 MaiBot WebUI 的唯一凭证,请按以下方式获取",method1Title:"方式一:查看启动日志",method1Desc:"在 MaiBot 启动时,控制台会显示 WebUI Access Token。",method1Example1:"🔑 WebUI Access Token: abc123...",method1Example2:"💡 请使用此 Token 登录 WebUI",method2Title:"方式二:查看配置文件",method2Desc:"Token 保存在项目根目录的配置文件中:",method2FileHint:"打开此文件,复制 access_token 字段的值",securityTipTitle:"安全提示",securityTip1:"请妥善保管您的 Token,不要泄露给他人",securityTip2:"如需重置 Token,请在登录后前往系统设置",slowLink:"我觉得这个界面很卡怎么办?",disableAnimTitle:"关闭背景动画",disableAnimDesc:"背景动画可能会在低性能设备上造成卡顿。关闭动画可以显著提升界面流畅度。",disableAnimDetail:"关闭动画后,背景将变为纯色,但不影响任何功能的使用。您可以随时在系统设置中重新开启动画。",disableAnimBtn:"关闭动画",verifyFailed:"Token 验证失败,请检查后重试",connFailed:"连接服务器失败,请检查网络连接",switchToLight:"切换到浅色模式",switchToDark:"切换到深色模式"},ZA={steps:{botBasic:{title:"Bot基础",description:"配置机器人的基本信息"},personality:{title:"人格配置",description:"定义机器人的性格和说话风格"},apiProvider:{title:"API配置",description:"配置 API 提供商"},modelSetup:{title:"模型配置",description:"配置 planner 和 replyer 模型"}},loading:{title:"加载配置中...",description:"正在读取现有配置"},header:{title:"首次配置向导",description:"让我们一起完成 {{appName}} 的初始配置"},progress:{stepCounter:"步骤 {{current}} / {{total}}"},validation:{selectPlatform:"请选择平台",enterNickname:"请输入昵称",enterQqAccount:"请输入 QQ 账号",enterAccountId:"请输入账号 ID",enterProviderName:"请输入 API 提供商名称",enterBaseUrl:"请输入 API Base URL",enterApiKey:"请输入 API Key",enterPlannerModelIdentifier:"请输入 planner 模型标识符",enterReplyerModelIdentifier:"请输入 replyer 模型标识符"},toast:{loadFailedTitle:"加载配置失败",loadFailedDescription:"无法加载现有配置,将使用默认值",saveSuccessTitle:"保存成功",saveSuccessDescription:"{{step}} 配置已保存",saveFailedTitle:"保存失败",validationFailedTitle:"验证失败",completeSuccessTitle:"配置完成",completeSuccessDescription:"{{appName}} 正在重启以应用新配置...",completeFailedTitle:"配置失败",skipFailedTitle:"跳过失败",unknownError:"未知错误"},actions:{previous:"上一步",next:"下一步",skip:"跳过向导",complete:"完成配置",saving:"保存中...",completing:"完成中..."},skipDialog:{title:"确认跳过配置向导",description:"您可以随时在系统设置中重新进入配置向导。确定要跳过吗?",confirm:"确认跳过"},footer:"您可以随时在设置中修改这些配置",defaults:{personality:{personality:"是一个大二女大学生,现在正在上网和群友聊天。有轻微攻击性",replyStyle:"你的风格平淡简短。可以参考贴吧,知乎和微博的回复风格。不浮夸不长篇大论,不要过分修辞和复杂句。",multipleReplyStyles:{plain:"你的风格平淡但不失讽刺,很简短,很白话。可以参考贴吧、微博的回复风格。",shortText:"用1-2个字进行回复",shortSymbol:"用1-2个符号进行回复",translation:"带点翻译腔,但不要太长"}},emoji:{filtrationPrompt:"符合公序良俗"}},forms:{botBasic:{platform:{label:"平台 *",placeholder:"请选择平台",description:"选择麦麦Bot运行的平台",options:{custom:"其他平台"}},customPlatform:{label:"平台名称 *",placeholder:"请输入平台名称,如 matrix"},qqAccount:{label:"QQ账号 *",placeholder:"请输入机器人的 QQ 账号",description:"运行麦麦Bot的 QQ 账号"},primaryAccount:{label:"账号 ID *",placeholder:"请输入机器人的账号 ID",description:"机器人在该平台上的账号标识"},nickname:{label:"昵称 *",placeholder:"请输入机器人的昵称",description:"麦麦Bot的名称"},alias:{label:"别名",placeholder:"输入别名后按回车添加",add:"添加",description:"机器人的其他称呼,可以添加多个",remove:"移除别名 {{alias}}"}},personality:{personality:{label:"人格特征 *",placeholder:"描述机器人的人格特质和身份特征(建议 120 字以内)",description:"例如:是一个女大学生,现在在读大二,会刷贴吧"},replyStyle:{label:"表达风格 *",placeholder:"描述机器人说话的表达风格、表达习惯",description:"例如:回复平淡一些,简短一些,说中文,参考贴吧、知乎和微博的回复风格"},multipleReplyStyle:{label:"备用表达风格",placeholder:"每行输入一种备用表达风格",description:"当列表不为空时,麦麦会按概率从这些风格中随机替换默认表达风格"},multipleProbability:{label:"备用风格触发概率",description:"每次构建回复时,从备用表达风格中随机替换默认表达风格的概率"}},emoji:{emojiSendNum:{label:"表情包候选数量",description:"每次发送前从多少个表情包中选择,最大为 64"},maxRegNum:{label:"最大表情包数量",description:"机器人最多保存的表情包数量"},doReplace:{label:"达到最大数量时替换",description:"开启后会删除旧表情包,关闭则不再收集新表情包"},checkInterval:{label:"检查间隔(分钟)",description:"检查表情包注册、破损、删除的时间间隔"},stealEmoji:{label:"偷取表情包",description:"允许机器人将一些表情包据为己有"},contentFiltration:{label:"启用表情包过滤",description:"只保存符合要求的表情包"},filtrationPrompt:{label:"过滤要求",placeholder:"例如:符合公序良俗",description:"描述表情包应该符合的要求"}},other:{allGlobal:{label:"启用全局黑话模式",description:"允许机器人学习和使用群组黑话"}},apiProvider:{providerName:{label:"API 提供商名称 *",placeholder:"例如 OpenAI、DeepSeek、自建服务",description:"为api提供商命名"},baseUrl:{label:"API Base URL *",description:"请填写 OpenAI 兼容接口地址,例如 https://api.example.com/v1"},apiKey:{label:"API Key *",description:"请填写该提供商的 API Key",show:"显示 API Key",hide:"隐藏 API Key"}},modelSetup:{planner:{identifier:{label:"planner 模型标识符 *",description:"API 服务商提供的真实模型 ID,模型名称会自动初始化为该标识符"},visual:{label:"启用视觉"}},replyer:{identifier:{label:"replyer 模型标识符 *",description:"API 服务商提供的真实模型 ID,模型名称会自动初始化为该标识符"},visual:{label:"启用视觉"}},saveHint:"你可以稍后配置更详细的任务分配。"}}},$A={loading:"加载中...",error:"错误",retry:"重试",save:"保存",cancel:"取消",confirm:"确认",delete:"删除",edit:"编辑",close:"关闭",search:"搜索",noData:"暂无数据",success:"成功",failed:"失败"},WA={preparing:"准备重启",preparingDesc:"正在发送重启请求...",preparingTip:"🔄 正在准备重启麦麦...",restarting:"正在重启麦麦",restartingDesc:"请稍候,麦麦正在重启中...",restartingTip:"🔄 配置已保存,正在重启主程序...",checking:"检查服务状态",checkingDesc:"等待服务恢复... ({{current}}/{{max}})",checkingTip:"⏳ 正在等待服务恢复,请勿关闭页面...",success:"重启成功",successDesc:"正在跳转到登录页面...",successTip:"✅ 配置已生效,服务运行正常",failed:"重启超时",failedDesc:"服务未能在预期时间内恢复",failedTip:"⚠️ 如果长时间无响应,请尝试手动重启",refreshPage:"刷新页面",retryCheck:"重试检测",elapsed:"已用时:"},JA={title:"页面出现了问题",description:"应用程序遇到了意外错误。您可以尝试刷新页面或返回首页。",refreshPage:"刷新页面",goHome:"返回首页",footer:"如果问题持续存在,请将错误信息复制并反馈给开发者",copiedToClipboard:"已复制到剪贴板",copyError:"复制错误信息"},eE={placeholder:"搜索页面...",title:"搜索",noResults:"未找到匹配的页面",startSearch:"输入关键词开始搜索",navigate:"导航",select:"选择",close:"关闭",categories:{overview:"概览",config:"配置",resources:"资源",monitor:"监控",extensions:"扩展",system:"系统"},items:{home:"首页",homeDesc:"查看仪表板概览",botConfig:"麦麦设置",botConfigDesc:"配置麦麦的核心设置",modelProvider:"模型厂商设置",modelProviderDesc:"配置模型提供商",model:"麦麦模型配置",modelDesc:"配置模型参数",emoji:"表情包",emojiDesc:"管理麦麦的表情包",expression:"表达方式",expressionDesc:"管理麦麦的表达方式",person:"人物信息管理",personDesc:"管理人物信息",jargon:"黑话",jargonDesc:"管理麦麦学习到的黑话和俚语",statistics:"统计信息",statisticsDesc:"查看使用统计",plugins:"插件市场",pluginsDesc:"浏览和安装插件",logs:"日志查看器",logsDesc:"查看系统日志",reasoningProcessDesc:"浏览 Maisaka prompt 推理记录",settings:"系统设置",settingsDesc:"配置系统参数"}},tE={skipToContent:"跳过导航,直达主内容",sidebarNav:"主导航",closeMenu:"关闭菜单",navigatedTo:"已导航至 {{page}}"},nE={title:"实时监控面板",subtitle:"麦麦运行状态和统计数据一览",loading:"加载统计数据中...",loadingHint:"正在获取麦麦运行数据",timeRange:{"24h":"24小时","7d":"7天","30d":"30天"},autoRefresh:"自动刷新",botStatus:{title:"麦麦状态",running:"运行中",stopped:"已停止",uptime:"运行 {{time}}"},quickActions:{title:"快速操作",restart:"重启麦麦",restarting:"重启中...",expressionReview:"表达审核",viewLogs:"查看日志",pluginManage:"插件管理",systemSettings:"系统设置"},survey:{title:"反馈问卷",description:"帮助我们改进产品体验",webui:"WebUI 反馈",maibot:"麦麦反馈"},stats:{totalRequests:"总请求数",totalCost:"总花费",tokenUsage:"Token消耗",avgResponse:"平均响应",avgResponseDesc:"API平均耗时",onlineTime:"在线时长",messageProcessing:"消息处理",costEfficiency:"成本效率",recentPeriod:"最近{{range}}",perHour:"{{value}}/小时",noData:"暂无数据",replied:"回复 {{num}} 条",per100Messages:"每100条消息",seconds:"秒",hours:"小时",days:"天"},charts:{tabs:{trends:"趋势",models:"模型",activity:"活动",daily:"日统计"},requestTrend:"请求趋势",requestTrendDesc:"最近{{hours}}小时的请求量变化",costTrend:"花费趋势",costTrendDesc:"API调用成本变化",tokenUsage:"Token消耗",tokenUsageDesc:"Token使用量变化",modelDistribution:"模型请求分布",modelDistributionDesc:"各模型使用占比 (共 {{count}} 个模型)",modelDetails:"模型详细统计",modelDetailsDesc:"请求数、花费和性能",recentActivity:"最近活动",recentActivityDesc:"最新的API调用记录",dailyStats:"每日统计",dailyStatsDesc:"最近7天的数据汇总",requests:"请求数",cost:"花费(¥)",requestCount:"请求数",costLabel:"花费",avgTime:"平均耗时",timeCost:"耗时",status:"状态"},time:{hoursMinutes:"{{hours}}小时{{minutes}}分钟"},hitokotoFallback:"人生就像一盒巧克力,你永远不知道下一颗是什么味道。",hitokotoFallbackFrom:"阿甘正传",unknownSource:"未知",ariaLabel:{requestTrend:"每小时请求量趋势图,显示最近若干小时的请求次数变化",costTrend:"API花费趋势图,显示最近若干小时的API调用成本变化",tokenUsage:"Token消耗趋势图,显示最近若干小时的Token使用量变化"}},aE={header:FA,sidebar:IA,workspace:GA,chat:qA,layout:KA,httpWarning:YA,settings:XA,auth:QA,setupPage:ZA,common:$A,restart:WA,errorBoundary:JA,search:eE,a11y:tE,home:nE};ut.use(Ob).use(FD).init({resources:{zh:{translation:aE},en:{translation:cA},ja:{translation:DA},ko:{translation:HA}},fallbackLng:"en",supportedLngs:["zh","en","ja","ko"],interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],lookupLocalStorage:"maibot-locale",caches:["localStorage"]},keySeparator:"."});ut.on("languageChanged",n=>{document.documentElement.lang=n});const _b=T.createContext(null);function iE(){const n=T.useContext(_b);return n?n.announce:()=>{}}function sE({children:n}){const[a,s]=T.useState({polite:"",assertive:""}),o=T.useRef(null),l=T.useRef(null),u=T.useCallback((d,h="polite")=>{h==="assertive"?(s(m=>({...m,assertive:""})),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{s(m=>({...m,assertive:d}))},50)):(s(m=>({...m,polite:""})),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{s(m=>({...m,polite:d}))},50))},[]);return y.jsxs(_b.Provider,{value:{announce:u},children:[n,y.jsx("div",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:a.polite}),y.jsx("div",{"aria-live":"assertive","aria-atomic":"true",className:"sr-only",children:a.assertive})]})}const bf=(n,a)=>a.some(s=>n instanceof s);let vy,by;function oE(){return vy||(vy=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function rE(){return by||(by=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Sf=new WeakMap,Gu=new WeakMap,fl=new WeakMap;function lE(n){const a=new Promise((s,o)=>{const l=()=>{n.removeEventListener("success",u),n.removeEventListener("error",d)},u=()=>{s(ja(n.result)),l()},d=()=>{o(n.error),l()};n.addEventListener("success",u),n.addEventListener("error",d)});return fl.set(a,n),a}function cE(n){if(Sf.has(n))return;const a=new Promise((s,o)=>{const l=()=>{n.removeEventListener("complete",u),n.removeEventListener("error",d),n.removeEventListener("abort",d)},u=()=>{s(),l()},d=()=>{o(n.error||new DOMException("AbortError","AbortError")),l()};n.addEventListener("complete",u),n.addEventListener("error",d),n.addEventListener("abort",d)});Sf.set(n,a)}let xf={get(n,a,s){if(n instanceof IDBTransaction){if(a==="done")return Sf.get(n);if(a==="store")return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return ja(n[a])},set(n,a,s){return n[a]=s,!0},has(n,a){return n instanceof IDBTransaction&&(a==="done"||a==="store")?!0:a in n}};function Hb(n){xf=n(xf)}function uE(n){return rE().includes(n)?function(...a){return n.apply(Tf(this),a),ja(this.request)}:function(...a){return ja(n.apply(Tf(this),a))}}function fE(n){return typeof n=="function"?uE(n):(n instanceof IDBTransaction&&cE(n),bf(n,oE())?new Proxy(n,xf):n)}function ja(n){if(n instanceof IDBRequest)return lE(n);if(Gu.has(n))return Gu.get(n);const a=fE(n);return a!==n&&(Gu.set(n,a),fl.set(a,n)),a}const Tf=n=>fl.get(n);function dE(n,a,{blocked:s,upgrade:o,blocking:l,terminated:u}={}){const d=indexedDB.open(n,a),h=ja(d);return o&&d.addEventListener("upgradeneeded",m=>{o(ja(d.result),m.oldVersion,m.newVersion,ja(d.transaction),m)}),s&&d.addEventListener("blocked",m=>s(m.oldVersion,m.newVersion,m)),h.then(m=>{u&&m.addEventListener("close",()=>u()),l&&m.addEventListener("versionchange",g=>l(g.oldVersion,g.newVersion,g))}).catch(()=>{}),h}const hE=["get","getKey","getAll","getAllKeys","count"],mE=["put","add","delete","clear"],qu=new Map;function Sy(n,a){if(!(n instanceof IDBDatabase&&!(a in n)&&typeof a=="string"))return;if(qu.get(a))return qu.get(a);const s=a.replace(/FromIndex$/,""),o=a!==s,l=mE.includes(s);if(!(s in(o?IDBIndex:IDBObjectStore).prototype)||!(l||hE.includes(s)))return;const u=async function(d,...h){const m=this.transaction(d,l?"readwrite":"readonly");let g=m.store;return o&&(g=g.index(h.shift())),(await Promise.all([g[s](...h),l&&m.done]))[0]};return qu.set(a,u),u}Hb(n=>({...n,get:(a,s,o)=>Sy(a,s)||n.get(a,s,o),has:(a,s)=>!!Sy(a,s)||n.has(a,s)}));const pE=["continue","continuePrimaryKey","advance"],xy={},wf=new WeakMap,Fb=new WeakMap,gE={get(n,a){if(!pE.includes(a))return n[a];let s=xy[a];return s||(s=xy[a]=function(...o){wf.set(this,Fb.get(this)[a](...o))}),s}};async function*yE(...n){let a=this;if(a instanceof IDBCursor||(a=await a.openCursor(...n)),!a)return;a=a;const s=new Proxy(a,gE);for(Fb.set(s,a),fl.set(s,Tf(a));a;)yield s,a=await(wf.get(s)||a.continue()),wf.delete(s)}function Ty(n,a){return a===Symbol.asyncIterator&&bf(n,[IDBIndex,IDBObjectStore,IDBCursor])||a==="iterate"&&bf(n,[IDBIndex,IDBObjectStore])}Hb(n=>({...n,get(a,s,o){return Ty(a,s)?yE:n.get(a,s,o)},has(a,s){return Ty(a,s)||n.has(a,s)}}));const vE="maibot-assets",Yr="assets",bE=1;async function Ib(){return dE(vE,bE,{upgrade(n){n.objectStoreNames.contains(Yr)||n.createObjectStore(Yr,{keyPath:"id"})}})}async function UL(n){const a=await Ib(),s=crypto.randomUUID(),o=n.type.startsWith("video/")?"video":"image",l={id:s,filename:n.name,type:o,mimeType:n.type,blob:n,size:n.size,createdAt:Date.now()};return await a.add(Yr,l),s}async function SE(n){return await(await Ib()).get(Yr,n)}const Gb=T.createContext(null);function xE({children:n}){const a=T.useRef(new Map),s=async l=>{const u=a.current.get(l);if(u)return u;const d=await SE(l);if(!d)return;const h=URL.createObjectURL(d.blob);return a.current.set(l,h),h},o=T.useMemo(()=>({getAssetUrl:s}),[]);return T.useEffect(()=>()=>{a.current.forEach(l=>{URL.revokeObjectURL(l)}),a.current.clear()},[]),y.jsx(Gb,{value:o,children:n})}function TE(){const n=T.useContext(Gb);if(!n)throw new Error("useAssetStore must be used within AssetStoreProvider");return n}const wE=T.createContext(void 0);function CE({children:n,defaultEnabled:a=!0,defaultWavesEnabled:s=!0,storageKey:o="enable-animations",wavesStorageKey:l="enable-waves-background"}){const[u,d]=T.useState(()=>{const b=localStorage.getItem(o);return b!==null?b==="true":a}),[h,m]=T.useState(()=>{const b=localStorage.getItem(l);return b!==null?b==="true":s});T.useEffect(()=>{const b=document.documentElement;u?b.classList.remove("no-animations"):b.classList.add("no-animations"),localStorage.setItem(o,String(u))},[u,o]),T.useEffect(()=>{localStorage.setItem(l,String(h))},[h,l]);const g={enableAnimations:u,setEnableAnimations:d,enableWavesBackground:h,setEnableWavesBackground:m};return y.jsx(wE,{value:g,children:n})}const DE={theme:"system",resolvedTheme:"light",setTheme:()=>null,themeConfig:{selectedPreset:"light",accentColor:"",tokenOverrides:{},customCSS:""},updateThemeConfig:()=>null,resetTheme:()=>null},qb=T.createContext(DE),wy="188.5 100% 45.5%",VL="#00c7e8",jt=(n,a,s)=>ns?s:n,Ku=n=>Math.round(n*10)/10,AE=n=>(n%360+360)%360,Ri=n=>{const s=n.trim().replace(/^hsl\(/i,"").replace(/\)$/i,"").replace(/,/g," ").split(/\s+/).filter(Boolean),o=s[0]??"0",l=s[1]??"0%",u=s[2]??"0%",d=Number.parseFloat(o),h=Number.parseFloat(l.replace("%","")),m=Number.parseFloat(u.replace("%",""));return{h:Number.isNaN(d)?0:d,s:Number.isNaN(h)?0:h,l:Number.isNaN(m)?0:m}},lt=(n,a,s)=>{const o=Ku(AE(n)),l=Ku(jt(a,0,100)),u=Ku(jt(s,0,100));return`${o} ${l}% ${u}%`},EE=n=>{const a=n.trim();return/^-?\d+(?:\.\d+)?\s+-?\d+(?:\.\d+)?%\s+-?\d+(?:\.\d+)?%$/i.test(a)},ME=n=>{let a=n.trim().replace("#","");if(a.length===3&&(a=a.split("").map(v=>`${v}${v}`).join("")),a.length!==6)return lt(0,0,0);const s=Number.parseInt(a.slice(0,2),16)/255,o=Number.parseInt(a.slice(2,4),16)/255,l=Number.parseInt(a.slice(4,6),16)/255,u=Math.max(s,o,l),d=Math.min(s,o,l),h=u-d,m=(u+d)/2;let g=0,b=0;if(h!==0){switch(b=m>.5?h/(2-u-d):h/(u+d),u){case s:g=(o-l)/h+(o{const a=n?.trim();if(!a)return wy;if(a.startsWith("#"))return ME(a);if(EE(a)){const{h:s,s:o,l}=Ri(a);return lt(s,o,l)}return wy},kE=(n,a)=>{const{h:s,s:o,l}=Ri(n);return lt(s+a,o,l)},NE=(n,a)=>{const{h:s,s:o}=Ri(n);return lt(s,o,a)},RE=(n,a)=>{const{h:s,l:o}=Ri(n);return lt(s,a,o)},wr=n=>{const{h:a,s,l:o}=Ri(n),l=jt(s*.15,6,20);return o>60?lt(a,l,10):lt(a,l,96)},jE=(n,a)=>{const s=Ri(n),o=lt(s.h,s.s,s.l),l=a?"222.2 84% 4.9%":"0 0% 100%",u=a?"210 40% 98%":"222.2 84% 4.9%",d=lt(s.h,jt(s.s*.35,8,40),a?17.5:96),h=lt(s.h,jt(s.s*.12,2,18),a?17.5:96),m=lt(s.h+35,jt(s.s*.6,20,85),a?jt(s.l*.6+8,25,60):jt(s.l*.8+14,40,75)),g=lt(0,jt(s.s,60,90),a?30.6:60.2),b=lt(s.h,jt(s.s*.2,5,25),a?17.5:91.4),v=RE(NE(h,a?65.1:46.9),jt(s.s*.2,10,30)),x=lt(s.h,s.s,s.l),w=[0,72,144,216,288].map(V=>kE(x,V)),R=jt(s.s*(a?.18:.14),a?10:6,a?24:16),L=lt(s.h,R,a?8.8:98.6),M=lt(s.h,jt(R+(a?3:2),0,100),a?10.5:99.3);return{primary:o,"primary-foreground":wr(o),"primary-gradient":"none",secondary:d,"secondary-foreground":wr(d),muted:h,"muted-foreground":v,accent:m,"accent-foreground":wr(m),destructive:g,"destructive-foreground":wr(g),background:l,foreground:u,card:L,"card-foreground":u,popover:M,"popover-foreground":u,border:b,input:b,ring:o,"chart-1":w[0],"chart-2":w[1],"chart-3":w[2],"chart-4":w[3],"chart-5":w[4]}},We={MODE:"maibot-theme-mode",PRESET:"maibot-theme-preset",ACCENT:"maibot-theme-accent",OVERRIDES:"maibot-theme-overrides",CUSTOM_CSS:"maibot-theme-custom-css",BACKGROUND_CONFIG:"maibot-theme-background"},Cy={selectedPreset:"light",customCSS:""};function Xr(){const n=localStorage.getItem(We.PRESET),a=localStorage.getItem(We.ACCENT),s=localStorage.getItem(We.OVERRIDES),o=localStorage.getItem(We.CUSTOM_CSS);let l={};if(s)try{l=JSON.parse(s)}catch{l={}}const u=localStorage.getItem(We.BACKGROUND_CONFIG);let d={};if(u)try{d=JSON.parse(u)}catch{d={}}return{selectedPreset:n||Cy.selectedPreset,accentColor:td(a),tokenOverrides:l,customCSS:o||Cy.customCSS,backgroundConfig:d}}function Kb(n){localStorage.setItem(We.PRESET,n.selectedPreset),localStorage.setItem(We.ACCENT,td(n.accentColor)),localStorage.setItem(We.OVERRIDES,JSON.stringify(n.tokenOverrides)),localStorage.setItem(We.CUSTOM_CSS,n.customCSS),n.backgroundConfig?localStorage.setItem(We.BACKGROUND_CONFIG,JSON.stringify(n.backgroundConfig)):localStorage.removeItem(We.BACKGROUND_CONFIG)}function OE(n){const s={...Xr(),...n};Kb(s)}function PL(){const n=Xr();return JSON.stringify(n,null,2)}function _L(n){const a=[];let s;try{s=JSON.parse(n)}catch(u){return{success:!1,errors:[`Invalid JSON format: ${u instanceof Error?u.message:"Unknown error"}`]}}if(typeof s!="object"||s===null)return{success:!1,errors:["Configuration must be a JSON object"]};const o=s;if(typeof o.selectedPreset!="string"&&a.push("selectedPreset must be a string"),typeof o.accentColor!="string"&&a.push("accentColor must be a string"),typeof o.customCSS!="string"&&a.push("customCSS must be a string"),o.tokenOverrides!==void 0&&typeof o.tokenOverrides!="object"&&a.push("tokenOverrides must be an object"),a.length>0)return{success:!1,errors:a};const l={selectedPreset:o.selectedPreset,accentColor:o.accentColor,tokenOverrides:o.tokenOverrides||{},customCSS:o.customCSS,backgroundConfig:o.backgroundConfig??{}};return Kb(l),{success:!0,errors:[]}}function LE(){Object.values(We).forEach(n=>{localStorage.removeItem(n)})}function zE(){const n=localStorage.getItem("ui-theme"),a=localStorage.getItem("maibot-ui-theme");localStorage.getItem(We.MODE)||(n?localStorage.setItem(We.MODE,n):a&&localStorage.setItem(We.MODE,a));const o=localStorage.getItem("accent-color"),l=localStorage.getItem(We.ACCENT);o&&!l&&localStorage.setItem(We.ACCENT,td(o)),localStorage.removeItem("ui-theme"),localStorage.removeItem("maibot-ui-theme"),localStorage.removeItem("accent-color")}const Yb={color:{primary:"188.5 100% 45.5%","primary-foreground":"210 40% 98%","primary-gradient":"none",secondary:"188.5 35% 96%","secondary-foreground":"222.2 47.4% 11.2%",muted:"188.5 12% 96%","muted-foreground":"188.5 20% 46.9%",accent:"223.5 60% 50.4%","accent-foreground":"222.2 47.4% 11.2%",destructive:"0 84.2% 60.2%","destructive-foreground":"210 40% 98%",background:"0 0% 100%",foreground:"222.2 84% 4.9%",card:"188.5 14% 98.6%","card-foreground":"222.2 84% 4.9%",popover:"188.5 16% 99.3%","popover-foreground":"222.2 84% 4.9%",border:"188.5 20% 91.4%",input:"188.5 20% 91.4%",ring:"188.5 100% 45.5%","chart-1":"188.5 100% 45.5%","chart-2":"160 60% 45%","chart-3":"30 80% 55%","chart-4":"280 65% 60%","chart-5":"340 75% 55%"},typography:{"font-family-base":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"font-family-code":'"JetBrains Mono", "Monaco", "Courier New", monospace',"font-size-xs":"0.75rem","font-size-sm":"0.875rem","font-size-base":"1rem","font-size-lg":"1.125rem","font-size-xl":"1.25rem","font-size-2xl":"1.5rem","font-weight-normal":400,"font-weight-medium":500,"font-weight-semibold":600,"font-weight-bold":700,"line-height-tight":1.2,"line-height-normal":1.5,"line-height-relaxed":1.75,"letter-spacing-tight":"-0.02em","letter-spacing-normal":"0em","letter-spacing-wide":"0.02em"},visual:{"radius-sm":"0.25rem","radius-md":"0.375rem","radius-lg":"0.5rem","radius-xl":"0.75rem","radius-full":"9999px","shadow-sm":"0 1px 2px 0 rgba(0, 0, 0, 0.05)","shadow-md":"0 4px 6px -1px rgba(0, 0, 0, 0.1)","shadow-lg":"0 10px 15px -3px rgba(0, 0, 0, 0.1)","shadow-xl":"0 20px 25px -5px rgba(0, 0, 0, 0.1)","blur-sm":"4px","blur-md":"12px","blur-lg":"24px","opacity-disabled":.5,"opacity-hover":.8,"opacity-overlay":.75},layout:{"space-unit":"0.25rem","space-xs":"0.5rem","space-sm":"0.75rem","space-md":"1rem","space-lg":"1.5rem","space-xl":"2rem","space-2xl":"3rem","sidebar-width":"13rem","header-height":"3.5rem","max-content-width":"1280px"},animation:{"anim-duration-fast":"150ms","anim-duration-normal":"300ms","anim-duration-slow":"500ms","anim-easing-default":"cubic-bezier(0.4, 0, 0.2, 1)","anim-easing-in":"cubic-bezier(0.4, 0, 1, 1)","anim-easing-out":"cubic-bezier(0, 0, 0.2, 1)","anim-easing-in-out":"cubic-bezier(0.4, 0, 0.2, 1)","transition-colors":"color 300ms cubic-bezier(0.4, 0, 0.2, 1)","transition-transform":"transform 300ms cubic-bezier(0.4, 0, 0.2, 1)","transition-opacity":"opacity 300ms cubic-bezier(0.4, 0, 0.2, 1)"}},Xb={color:{primary:"188.5 100% 45.5%","primary-foreground":"210 40% 98%","primary-gradient":"none",secondary:"188.5 35% 17.5%","secondary-foreground":"210 40% 98%",muted:"188.5 12% 17.5%","muted-foreground":"188.5 20% 65.1%",accent:"223.5 60% 35.3%","accent-foreground":"210 40% 98%",destructive:"0 62.8% 30.6%","destructive-foreground":"210 40% 98%",background:"222.2 84% 4.9%",foreground:"210 40% 98%",card:"188.5 18% 8.8%","card-foreground":"210 40% 98%",popover:"188.5 21% 10.5%","popover-foreground":"210 40% 98%",border:"188.5 20% 17.5%",input:"188.5 20% 17.5%",ring:"188.5 100% 45.5%","chart-1":"188.5 100% 45.5%","chart-2":"160 60% 50%","chart-3":"30 80% 60%","chart-4":"280 65% 65%","chart-5":"340 75% 60%"},typography:{"font-family-base":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"font-family-code":'"JetBrains Mono", "Monaco", "Courier New", monospace',"font-size-xs":"0.75rem","font-size-sm":"0.875rem","font-size-base":"1rem","font-size-lg":"1.125rem","font-size-xl":"1.25rem","font-size-2xl":"1.5rem","font-weight-normal":400,"font-weight-medium":500,"font-weight-semibold":600,"font-weight-bold":700,"line-height-tight":1.2,"line-height-normal":1.5,"line-height-relaxed":1.75,"letter-spacing-tight":"-0.02em","letter-spacing-normal":"0em","letter-spacing-wide":"0.02em"},visual:{"radius-sm":"0.25rem","radius-md":"0.375rem","radius-lg":"0.5rem","radius-xl":"0.75rem","radius-full":"9999px","shadow-sm":"0 1px 2px 0 rgba(0, 0, 0, 0.25)","shadow-md":"0 4px 6px -1px rgba(0, 0, 0, 0.3)","shadow-lg":"0 10px 15px -3px rgba(0, 0, 0, 0.4)","shadow-xl":"0 20px 25px -5px rgba(0, 0, 0, 0.5)","blur-sm":"4px","blur-md":"12px","blur-lg":"24px","opacity-disabled":.5,"opacity-hover":.8,"opacity-overlay":.75},layout:{"space-unit":"0.25rem","space-xs":"0.5rem","space-sm":"0.75rem","space-md":"1rem","space-lg":"1.5rem","space-xl":"2rem","space-2xl":"3rem","sidebar-width":"13rem","header-height":"3.5rem","max-content-width":"1280px"},animation:{"anim-duration-fast":"150ms","anim-duration-normal":"300ms","anim-duration-slow":"500ms","anim-easing-default":"cubic-bezier(0.4, 0, 0.2, 1)","anim-easing-in":"cubic-bezier(0.4, 0, 1, 1)","anim-easing-out":"cubic-bezier(0, 0, 0.2, 1)","anim-easing-in-out":"cubic-bezier(0.4, 0, 0.2, 1)","transition-colors":"color 300ms cubic-bezier(0.4, 0, 0.2, 1)","transition-transform":"transform 300ms cubic-bezier(0.4, 0, 0.2, 1)","transition-opacity":"opacity 300ms cubic-bezier(0.4, 0, 0.2, 1)"}};function ks(n,a){return`--${n}-${a}`}const BE={blur:0,overlayColor:"0 0% 0%",overlayOpacity:0,position:"cover",brightness:100,contrast:100,saturate:100},Dy={type:"none",effects:BE,customCSS:""},UE={id:"light",name:"默认亮色",description:"默认亮色主题",tokens:Yb,isDark:!1},VE={id:"dark",name:"默认暗色",description:"默认暗色主题",tokens:Xb,isDark:!0},PE=[UE,VE];function _E(n){return PE.find(a=>a.id===n)}const HE=[{pattern:/@import\s+(?:url\()?['"]?(?:https?:|\/\/)?[^)'"]+['"]?\)?[;]?/gi,message:"移除 @import 语句(禁止加载外部资源)"},{pattern:/url\s*\(\s*(?:https?:|\/\/|data:|javascript:)[^)]*\)/gi,message:"移除 url() 调用(禁止外部请求)"},{pattern:/javascript:/gi,message:"移除 javascript: 协议(XSS 防护)"},{pattern:/expression\s*\(\s*[^)]*\)/gi,message:"移除 expression() 函数(IE 遗留 XSS 向量)"},{pattern:/-moz-binding\s*:\s*[^;]+/gi,message:"移除 -moz-binding 属性(Firefox XSS 向量)"},{pattern:/behavior\s*:\s*[^;]+/gi,message:"移除 behavior: 属性(IE HTC)"}];function FE(n){return n.split(/\r?\n/)}function IE(n,a){const s=FE(n),o=[];return s.forEach((l,u)=>{a.test(l)&&o.push(u+1)}),o}function Qb(n){let a=n;const s=[];return HE.forEach(o=>{IE(a,o.pattern).forEach(u=>{s.push(`Line ${u}: ${o.message}`)}),a=a.replace(o.pattern,"")}),a=a.replace(/\n\s*\n/g,` +`).trim(),{css:a,warnings:s}}const Cf="maibot-custom-css",Zb="maibot-bg-css-",GE=["page","sidebar","header","card","dialog"],Cr=(n,a)=>({color:{...n.color,...a.color??{}},typography:{...n.typography,...a.typography??{}},visual:{...n.visual,...a.visual??{}},layout:{...n.layout,...a.layout??{}},animation:{...n.animation,...a.animation??{}}}),$b=(n,a)=>{let o=Cr(a?Xb:Yb,{});if(n.accentColor){const l=jE(n.accentColor,a);o=Cr(o,{color:l})}if(n.selectedPreset&&n.selectedPreset!=="light"&&n.selectedPreset!=="dark"){const l=_E(n.selectedPreset);l?.tokens&&(o=Cr(o,l.tokens))}return n.tokenOverrides&&(o=Cr(o,n.tokenOverrides)),o};function HL(n,a){return $b(n,a)}function qE(n,a){Object.entries(n.color).forEach(([s,o])=>{a.style.setProperty(ks("color",s),String(o))}),Object.entries(n.typography).forEach(([s,o])=>{a.style.setProperty(ks("typography",s),String(o))}),Object.entries(n.visual).forEach(([s,o])=>{a.style.setProperty(ks("visual",s),String(o))}),Object.entries(n.layout).forEach(([s,o])=>{a.style.setProperty(ks("layout",s),String(o))}),Object.entries(n.animation).forEach(([s,o])=>{a.style.setProperty(ks("animation",s),String(o))})}function KE(n){if(n.trim().length===0){Qr();return}const a=document.getElementById(Cf);if(a){a.textContent=n;return}const s=document.createElement("style");s.id=Cf,s.textContent=n,document.head.appendChild(s)}function Qr(){const n=document.getElementById(Cf);n&&n.remove()}function YE(n,a){const s=`${Zb}${a}`;if(n.trim().length===0){Zr(a);return}const l=Qb(n).css;if(l.trim().length===0){Zr(a);return}const u=document.getElementById(s);if(u){u.textContent=l;return}const d=document.createElement("style");d.id=s,d.textContent=l,document.head.appendChild(d)}function Zr(n){const a=`${Zb}${n}`;document.getElementById(a)?.remove()}function XE(){GE.forEach(Zr)}function QE(n,a){const s=document.documentElement,o=$b(n,a);if(qE(o,s),n.customCSS){const l=Qb(n.customCSS);l.css.trim().length>0?KE(l.css):Qr()}else Qr();if(n.backgroundConfig){const{page:l,sidebar:u,header:d,card:h,dialog:m}=n.backgroundConfig;[["page",l],["sidebar",u],["header",d],["card",h],["dialog",m]].forEach(([g,b])=>{b&&typeof b=="object"&&"customCSS"in b&&b.customCSS?YE(b.customCSS,g):Zr(g)})}else XE()}function ZE({children:n,defaultTheme:a="system",storageKey:s}){const[o,l]=T.useState(()=>localStorage.getItem(We.MODE)||a),[u,d]=T.useState(()=>Xr()),[h,m]=T.useState(0),g=T.useMemo(()=>o!=="system"?o:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",[o,h]);T.useEffect(()=>{zE()},[]),T.useEffect(()=>{const w=window.matchMedia("(prefers-color-scheme: dark)"),R=()=>{o==="system"&&m(L=>L+1)};return w.addEventListener("change",R),()=>w.removeEventListener("change",R)},[o]),T.useEffect(()=>{const w=document.documentElement;w.classList.remove("light","dark"),w.classList.add(g),QE(u,g==="dark")},[g,u]);const b=T.useCallback(w=>{localStorage.setItem(We.MODE,w),l(w)},[]),v=T.useCallback(w=>{OE(w),d(R=>({...R,...w}))},[]),x=T.useCallback(()=>{LE(),Qr(),d(Xr())},[]),D=T.useMemo(()=>({theme:o,resolvedTheme:g,setTheme:b,themeConfig:u,updateThemeConfig:v,resetTheme:x}),[o,g,b,u,v,x]);return y.jsx(qb,{value:D,children:n})}const Wb=T.createContext(null),Jb="maibot-completed-tours";function $E(){try{const n=localStorage.getItem(Jb);return n?new Set(JSON.parse(n)):new Set}catch{return new Set}}function Ay(n){localStorage.setItem(Jb,JSON.stringify([...n]))}function WE({children:n}){const[a,s]=T.useState({activeTourId:null,stepIndex:0,isRunning:!1}),[o]=T.useState(()=>new Map),[l,u]=T.useState($E),[,d]=T.useState(0),h=T.useCallback((z,j)=>{o.set(z,j),d(F=>F+1)},[o]),m=T.useCallback(z=>{o.delete(z),s(j=>j.activeTourId===z?{...j,activeTourId:null,isRunning:!1,stepIndex:0}:j)},[o]),g=T.useCallback((z,j=0)=>{o.has(z)&&s({activeTourId:z,stepIndex:j,isRunning:!0})},[o]),b=T.useCallback(()=>{s(z=>({...z,isRunning:!1}))},[]),v=T.useCallback(z=>{s(j=>({...j,stepIndex:z}))},[]),x=T.useCallback(()=>{s(z=>({...z,stepIndex:z.stepIndex+1}))},[]),D=T.useCallback(()=>{s(z=>({...z,stepIndex:Math.max(0,z.stepIndex-1)}))},[]),w=T.useCallback(()=>a.activeTourId?o.get(a.activeTourId)||[]:[],[a.activeTourId,o]),R=T.useCallback(z=>{u(j=>{const F=new Set(j);return F.add(z),Ay(F),F})},[]),L=T.useCallback(z=>{const{action:j,index:F,status:X,type:ie}=z,Q=["finished","skipped"];if(j==="close"){s(G=>({...G,isRunning:!1,stepIndex:0}));return}Q.includes(X)?s(G=>(X==="finished"&&G.activeTourId&&setTimeout(()=>R(G.activeTourId),0),{...G,isRunning:!1,stepIndex:0})):ie==="step:after"&&(j==="next"?s(G=>({...G,stepIndex:F+1})):j==="prev"&&s(G=>({...G,stepIndex:F-1})))},[R]),M=T.useCallback(z=>l.has(z),[l]),V=T.useCallback(z=>{u(j=>{const F=new Set(j);return F.delete(z),Ay(F),F})},[]);return y.jsx(Wb,{value:{state:a,tours:o,registerTour:h,unregisterTour:m,startTour:g,stopTour:b,goToStep:v,nextStep:x,prevStep:D,getCurrentSteps:w,handleJoyrideCallback:L,isTourCompleted:M,markTourCompleted:R,resetTourCompleted:V},children:n})}function JE(){const n=T.useContext(Wb);if(!n)throw new Error("useTour must be used within a TourProvider");return n}const eM={options:{zIndex:1e5,primaryColor:"hsl(var(--color-primary))",textColor:"hsl(var(--color-foreground))",backgroundColor:"hsl(var(--color-background))",arrowColor:"hsl(var(--color-background))",overlayColor:"rgba(0, 0, 0, 0.5)"},tooltip:{borderRadius:"var(--radius)",padding:"1rem"},tooltipContainer:{textAlign:"left"},tooltipTitle:{fontSize:"1rem",fontWeight:600,marginBottom:"0.5rem"},tooltipContent:{fontSize:"0.875rem",padding:"0.5rem 0"},buttonNext:{backgroundColor:"hsl(var(--color-primary))",color:"hsl(var(--color-primary-foreground))",borderRadius:"calc(var(--radius) - 2px)",fontSize:"0.875rem",padding:"0.5rem 1rem"},buttonBack:{color:"hsl(var(--color-muted-foreground))",fontSize:"0.875rem",marginRight:"0.5rem"},buttonSkip:{color:"hsl(var(--color-muted-foreground))",fontSize:"0.875rem"},buttonClose:{color:"hsl(var(--color-muted-foreground))"},spotlight:{borderRadius:"var(--radius)"}},tM={back:"上一步",close:"关闭",last:"完成",next:"下一步",nextLabelWithProgress:"下一步 ({step}/{steps})",open:"打开对话框",skip:"跳过"};function nM(){const{state:n,getCurrentSteps:a,handleJoyrideCallback:s}=JE(),o=a(),[l,u]=T.useState(!1),d=T.useRef(n.stepIndex),h=T.useRef(null);T.useEffect(()=>{d.current!==n.stepIndex&&(u(!1),d.current=n.stepIndex)},[n.stepIndex]),T.useEffect(()=>{if(!n.isRunning||o.length===0){u(!1);return}const v=o[n.stepIndex];if(!v){u(!1);return}const x=v.target;if(x==="body"){u(!0);return}u(!1);const D=setTimeout(()=>{const w=()=>{const V=document.querySelector(x);if(V){const z=V.getBoundingClientRect();if(z.width>0&&z.height>0)return!0}return!1};if(w()){setTimeout(()=>u(!0),100);return}const R=setInterval(()=>{w()&&(clearInterval(R),setTimeout(()=>u(!0),100))},100),L=setTimeout(()=>{clearInterval(R),u(!0)},5e3),M=()=>{clearInterval(R),clearTimeout(L)};h.current=M},150);return()=>{clearTimeout(D),h.current&&(h.current(),h.current=null)}},[n.isRunning,n.stepIndex,o]);const[m,g]=T.useState(null);if(T.useEffect(()=>{let v=document.getElementById("tour-portal-container");return v||(v=document.createElement("div"),v.id="tour-portal-container",v.style.cssText="position: fixed; top: 0; left: 0; z-index: 99999; pointer-events: none;",document.body.appendChild(v)),g(v),()=>{}},[]),!n.isRunning||o.length===0||!l)return null;const b=y.jsx(Sw,{steps:o,stepIndex:n.stepIndex,run:n.isRunning,continuous:!0,showSkipButton:!0,showProgress:!0,disableOverlayClose:!0,disableScrolling:!1,disableScrollParentFix:!1,callback:s,styles:eM,locale:tM,scrollOffset:80,scrollToFirstStep:!0},`tour-step-${n.stepIndex}`);return m?dw.createPortal(b,m):b}function K(...n){return rC(lC(n))}const nd=Qs("inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",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-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),He=T.forwardRef(({className:n,variant:a,size:s,asChild:o=!1,...l},u)=>{const d=o?Tw:"button";return y.jsx(d,{className:K(nd({variant:a,size:s,className:n})),ref:u,...l})});He.displayName="Button";const ad=T.forwardRef(({className:n,...a},s)=>y.jsx("div",{ref:s,className:K("rounded-xl border bg-card text-card-foreground shadow",n),...a}));ad.displayName="Card";const id=T.forwardRef(({className:n,...a},s)=>y.jsx("div",{ref:s,className:K("flex flex-col space-y-1.5 p-6",n),...a}));id.displayName="CardHeader";const sd=T.forwardRef(({className:n,...a},s)=>y.jsx("div",{ref:s,className:K("font-semibold leading-none tracking-tight",n),...a}));sd.displayName="CardTitle";const od=T.forwardRef(({className:n,...a},s)=>y.jsx("div",{ref:s,className:K("text-sm text-muted-foreground",n),...a}));od.displayName="CardDescription";const rd=T.forwardRef(({className:n,...a},s)=>y.jsx("div",{ref:s,className:K("p-6 pt-0",n),...a}));rd.displayName="CardContent";const aM=T.forwardRef(({className:n,...a},s)=>y.jsx("div",{ref:s,className:K("flex items-center p-6 pt-0",n),...a}));aM.displayName="CardFooter";const iM=Qs("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),e0=T.forwardRef(({className:n,variant:a,...s},o)=>y.jsx("div",{ref:o,role:"alert",className:K(iM({variant:a}),n),...s}));e0.displayName="Alert";const sM=T.forwardRef(({className:n,...a},s)=>y.jsx("h5",{ref:s,className:K("mb-1 font-medium leading-none tracking-tight",n),...a}));sM.displayName="AlertTitle";const t0=T.forwardRef(({className:n,...a},s)=>y.jsx("div",{ref:s,className:K("text-sm [&_p]:leading-relaxed",n),...a}));t0.displayName="AlertDescription";const Fs=T.forwardRef(({className:n,children:a,viewportRef:s,viewportClassName:o,contentClassName:l,scrollbars:u="both",...d},h)=>y.jsxs(nb,{ref:h,className:K("relative overflow-hidden",n),...d,children:[y.jsx(ww,{ref:s,className:K("h-full w-full rounded-[inherit]",o),children:y.jsx("div",{className:l,children:a})}),u!=="horizontal"&&y.jsx(Df,{}),u!=="vertical"&&y.jsx(Df,{orientation:"horizontal"}),y.jsx(Cw,{})]}));Fs.displayName=nb.displayName;const Df=T.forwardRef(({className:n,orientation:a="vertical",...s},o)=>y.jsx(ab,{ref:o,orientation:a,className:K("flex touch-none select-none transition-colors",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",n),...s,children:y.jsx(Dw,{className:"relative flex-1 rounded-full bg-border"})}));Df.displayName=ab.displayName;const Ey=Aw,My=Ew,ky=Mw;function oM(n){const a=n.split(` +`).slice(1),s=[];for(const o of a){const l=o.trim();if(!l.startsWith("at "))continue;const u=l.match(/at\s+(?:(.+?)\s+\()?(.+?):(\d+):(\d+)\)?$/);u?s.push({functionName:u[1]||"",fileName:u[2],lineNumber:u[3],columnNumber:u[4],raw:l}):s.push({functionName:"",fileName:"",lineNumber:"",columnNumber:"",raw:l})}return s}function rM({error:n,errorInfo:a}){const[s,o]=T.useState(!0),[l,u]=T.useState(!1),[d,h]=T.useState(!1),{t:m}=Nn(),g=n.stack?oM(n.stack):[],b=async()=>{const v=` +Error: ${n.name} +Message: ${n.message} + +Stack Trace: +${n.stack||"No stack trace available"} + +Component Stack: +${a?.componentStack||"No component stack available"} + +URL: ${window.location.href} +User Agent: ${navigator.userAgent} +Time: ${new Date().toISOString()} + `.trim();try{await navigator.clipboard.writeText(v),h(!0),setTimeout(()=>h(!1),2e3)}catch(x){console.error("Failed to copy:",x)}};return y.jsxs("div",{className:"space-y-4",children:[y.jsxs(e0,{variant:"destructive",className:"border-red-500/50 bg-red-500/10",children:[y.jsx(Fr,{className:"h-4 w-4"}),y.jsxs(t0,{className:"font-mono text-sm",children:[y.jsxs("span",{className:"font-semibold",children:[n.name,":"]})," ",n.message]})]}),g.length>0&&y.jsxs(Ey,{open:s,onOpenChange:o,children:[y.jsx(My,{asChild:!0,children:y.jsxs(He,{variant:"ghost",className:"w-full justify-between p-3 h-auto",children:[y.jsxs("span",{className:"font-semibold text-sm flex items-center gap-2",children:[y.jsx(uC,{className:"h-4 w-4"}),"Stack Trace (",g.length," frames)"]}),s?y.jsx(Yg,{className:"h-4 w-4"}):y.jsx(Xg,{className:"h-4 w-4"})]})}),y.jsx(ky,{children:y.jsx(Fs,{className:"h-[280px] rounded-md border bg-muted/30",children:y.jsx("div",{className:"p-3 space-y-1",children:g.map((v,x)=>y.jsx("div",{className:"font-mono text-xs p-2 rounded hover:bg-muted/50 transition-colors",children:y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsxs("span",{className:"text-muted-foreground w-6 text-right flex-shrink-0",children:[x+1,"."]}),y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsx("span",{className:"text-primary font-medium",children:v.functionName}),v.fileName&&y.jsxs("div",{className:"text-muted-foreground mt-0.5 break-all",children:[v.fileName,v.lineNumber&&y.jsxs("span",{className:"text-yellow-600 dark:text-yellow-400",children:[":",v.lineNumber,":",v.columnNumber]})]})]})]})},x))})})})]}),a?.componentStack&&y.jsxs(Ey,{open:l,onOpenChange:u,children:[y.jsx(My,{asChild:!0,children:y.jsxs(He,{variant:"ghost",className:"w-full justify-between p-3 h-auto",children:[y.jsxs("span",{className:"font-semibold text-sm flex items-center gap-2",children:[y.jsx(Fr,{className:"h-4 w-4"}),"Component Stack"]}),l?y.jsx(Yg,{className:"h-4 w-4"}):y.jsx(Xg,{className:"h-4 w-4"})]})}),y.jsx(ky,{children:y.jsx(Fs,{className:"h-[200px] rounded-md border bg-muted/30",children:y.jsx("pre",{className:"p-3 font-mono text-xs whitespace-pre-wrap text-muted-foreground",children:a.componentStack})})})]}),y.jsx(He,{variant:"outline",size:"sm",onClick:b,className:"w-full",children:d?y.jsxs(y.Fragment,{children:[y.jsx(ed,{className:"mr-2 h-4 w-4 text-green-500"}),m("errorBoundary.copiedToClipboard")]}):y.jsxs(y.Fragment,{children:[y.jsx(Ab,{className:"mr-2 h-4 w-4"}),m("errorBoundary.copyError")]})})]})}function n0({error:n,errorInfo:a}){const{t:s}=Nn(),o=()=>{window.location.href="/"},l=()=>{window.location.reload()};return y.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:y.jsxs(ad,{className:"w-full max-w-2xl shadow-lg",children:[y.jsxs(id,{className:"text-center pb-2",children:[y.jsx("div",{className:"mx-auto flex h-16 w-16 items-center justify-center rounded-full bg-red-100 dark:bg-red-900/30 mb-4",children:y.jsx(Fr,{className:"h-8 w-8 text-red-600 dark:text-red-400"})}),y.jsx(sd,{className:"text-2xl font-bold",children:s("errorBoundary.title")}),y.jsx(od,{className:"text-base mt-2",children:s("errorBoundary.description")})]}),y.jsxs(rd,{className:"space-y-4",children:[y.jsx(rM,{error:n,errorInfo:a}),y.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 pt-2",children:[y.jsxs(He,{onClick:l,className:"flex-1",children:[y.jsx(cC,{className:"mr-2 h-4 w-4"}),s("errorBoundary.refreshPage")]}),y.jsxs(He,{onClick:o,variant:"outline",className:"flex-1",children:[y.jsx(Jf,{className:"mr-2 h-4 w-4"}),s("errorBoundary.goHome")]})]}),y.jsx("p",{className:"text-xs text-center text-muted-foreground pt-2",children:s("errorBoundary.footer")})]})]})})}class lM extends T.Component{constructor(a){super(a),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(a){return{hasError:!0,error:a}}componentDidCatch(a,s){console.error("ErrorBoundary caught an error:",a,s),this.setState({errorInfo:s})}handleReset=()=>{this.setState({hasError:!1,error:null,errorInfo:null})};render(){return this.state.hasError&&this.state.error?this.props.fallback?this.props.fallback:y.jsx(n0,{error:this.state.error,errorInfo:this.state.errorInfo}):this.props.children}}function a0({error:n}){return y.jsx(n0,{error:n,errorInfo:null})}const Mi=T.forwardRef(({className:n,type:a,...s},o)=>y.jsx("input",{type:a,className:K("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:o,...s}));Mi.displayName="Input";const cM=Qs("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Is=T.forwardRef(({className:n,...a},s)=>y.jsx(ib,{ref:s,className:K(cM(),n),...a}));Is.displayName=ib.displayName;function uM(){return{kind:"browser",userAgent:typeof navigator<"u"?navigator.userAgent:void 0,source:"fallback"}}function fM(){return typeof globalThis<"u"&&globalThis.__RUNTIME__?globalThis.__RUNTIME__:uM()}function Je(){return fM().kind==="electron"}function dM(){return Je()?typeof window<"u"&&window.electronAPI?.getPlatform?window.electronAPI.getPlatform():"unknown":"browser"}function hM({open:n}){const[a,s]=T.useState(""),[o,l]=T.useState(""),[u,d]=T.useState("idle"),[h,m]=T.useState(""),[g,b]=T.useState(!1),[v,x]=T.useState(""),[D,w]=T.useState("");if(!Je()||!n)return null;const R=j=>j.trim()?(x(""),!0):(x("后端名称不能为空"),!1),L=j=>j.trim()?/^https?:\/\/.+/.test(j)?j.endsWith("/")?(w("地址末尾不能包含 /"),!1):(w(""),!0):(w("地址必须以 http:// 或 https:// 开头"),!1):(w("后端地址不能为空"),!1),M=async()=>{if(L(o)){d("loading"),m("");try{const j=await fetch(`${o}/api/webui/system/health`,{method:"GET",signal:AbortSignal.timeout(1e4)});j.ok?d("success"):(d("error"),m(`服务器返回状态码 ${j.status}`))}catch(j){d("error"),j instanceof DOMException&&j.name==="TimeoutError"?m("连接超时,请检查地址是否正确"):j instanceof TypeError?m("无法连接到服务器,请检查地址和网络"):m(j instanceof Error?j.message:"未知错误")}}},V=async()=>{const j=R(a),F=L(o);if(!(!j||!F)){b(!0);try{const X=await window.electronAPI.addBackend({name:a.trim(),url:o.trim(),isDefault:!0});await window.electronAPI.setActiveBackend(X.id),await window.electronAPI.markFirstLaunchComplete(),window.location.reload()}catch(X){b(!1),d("error"),m(X instanceof Error?X.message:"保存配置失败,请重试")}}},z=a.trim()!==""&&/^https?:\/\/.+/.test(o)&&!o.endsWith("/");return y.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background",children:[y.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[y.jsx("div",{className:"absolute left-1/4 top-1/4 h-64 w-64 md:h-96 md:w-96 rounded-full bg-primary/5 blur-3xl"}),y.jsx("div",{className:"absolute right-1/4 bottom-1/4 h-64 w-64 md:h-96 md:w-96 rounded-full bg-secondary/5 blur-3xl"})]}),y.jsxs(ad,{className:"relative z-10 max-w-md w-full mx-4 shadow-lg",children:[y.jsxs(id,{className:"text-center",children:[y.jsx("div",{className:"mx-auto mb-2 flex h-12 w-12 items-center justify-center rounded-2xl bg-primary/10",children:y.jsx(fC,{className:"h-6 w-6 text-primary"})}),y.jsx(sd,{className:"text-2xl",children:"欢迎使用 MaiBot"}),y.jsx(od,{children:"配置您的第一个后端连接以开始使用"})]}),y.jsxs(rd,{className:"space-y-6",children:[y.jsxs("div",{className:"space-y-2",children:[y.jsxs(Is,{htmlFor:"backend-name",children:["后端名称 ",y.jsx("span",{className:"text-destructive",children:"*"})]}),y.jsx(Mi,{id:"backend-name",placeholder:"例如:本地服务器",value:a,onChange:j=>{s(j.target.value),v&&R(j.target.value)},onBlur:()=>R(a)}),v&&y.jsx("p",{className:"text-sm text-destructive",children:v})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsxs(Is,{htmlFor:"backend-url",children:["后端地址 ",y.jsx("span",{className:"text-destructive",children:"*"})]}),y.jsx(Mi,{id:"backend-url",placeholder:"例如:http://192.168.1.100:8001",value:o,onChange:j=>{l(j.target.value),D&&L(j.target.value),u!=="idle"&&(d("idle"),m(""))},onBlur:()=>L(o)}),D&&y.jsx("p",{className:"text-sm text-destructive",children:D})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(He,{type:"button",variant:"outline",onClick:M,disabled:u==="loading"||!o.trim(),className:"w-full",children:u==="loading"?y.jsxs(y.Fragment,{children:[y.jsx(mf,{className:"h-4 w-4 animate-spin"}),"测试连接中..."]}):"测试连接"}),u==="success"&&y.jsxs("div",{className:"flex items-center gap-2 text-sm text-green-600 dark:text-green-400",children:[y.jsx(dC,{className:"h-4 w-4"}),"连接成功"]}),u==="error"&&y.jsxs("div",{className:"flex items-start gap-2 text-sm text-destructive",children:[y.jsx(hC,{className:"h-4 w-4 mt-0.5 shrink-0"}),y.jsx("span",{children:h||"无法连接"})]})]}),y.jsx(He,{onClick:V,disabled:!z||g,className:"w-full",children:g?y.jsxs(y.Fragment,{children:[y.jsx(mf,{className:"h-4 w-4 animate-spin"}),"配置中..."]}):y.jsxs(y.Fragment,{children:["开始使用",y.jsx(mC,{className:"h-4 w-4"})]})})]})]})]})}const mM=5,pM=5e3;let Yu=0;function gM(){return Yu=(Yu+1)%Number.MAX_SAFE_INTEGER,Yu.toString()}const Xu=new Map,Ny=n=>{if(Xu.has(n))return;const a=setTimeout(()=>{Xu.delete(n),zs({type:"REMOVE_TOAST",toastId:n})},pM);Xu.set(n,a)},yM=(n,a)=>{switch(a.type){case"ADD_TOAST":return{...n,toasts:[a.toast,...n.toasts].slice(0,mM)};case"UPDATE_TOAST":return{...n,toasts:n.toasts.map(s=>s.id===a.toast.id?{...s,...a.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=a;return s?Ny(s):n.toasts.forEach(o=>{Ny(o.id)}),{...n,toasts:n.toasts.map(o=>o.id===s||s===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return a.toastId===void 0?{...n,toasts:[]}:{...n,toasts:n.toasts.filter(s=>s.id!==a.toastId)}}},Nr=[];let Rr={toasts:[]};function zs(n){Rr=yM(Rr,n),Nr.forEach(a=>{a(Rr)})}function vM({...n}){const a=gM(),s=l=>zs({type:"UPDATE_TOAST",toast:{...l,id:a}}),o=()=>zs({type:"DISMISS_TOAST",toastId:a});return zs({type:"ADD_TOAST",toast:{...n,id:a,open:!0,onOpenChange:l=>{l||o()}}}),{id:a,dismiss:o,update:s}}function bM(){const[n,a]=T.useState(Rr);return T.useEffect(()=>(Nr.push(a),()=>{const s=Nr.indexOf(a);s>-1&&Nr.splice(s,1)}),[n]),{...n,toast:vM,dismiss:s=>zs({type:"DISMISS_TOAST",toastId:s})}}function SM(n){const[a,s]=T.useState(()=>typeof window<"u"?window.matchMedia(n).matches:!1);return T.useEffect(()=>{if(typeof window>"u")return;const o=window.matchMedia(n),l=u=>{s(u.matches)};return s(o.matches),o.addEventListener("change",l),()=>{o.removeEventListener("change",l)}},[n]),a}function ld(){return SM("(max-width: 768px)")}const xM=kw,i0=T.forwardRef(({className:n,...a},s)=>{const o=ld();return y.jsx(sb,{ref:s,className:K("fixed z-[100] flex max-h-screen w-full gap-2 p-4",o?"top-0 left-0 right-0 flex-col items-center":"bottom-0 right-0 flex-col-reverse sm:max-w-[420px]",n),...a})});i0.displayName=sb.displayName;const TM=Qs("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all",{variants:{variant:{default:"border bg-primary/5 text-foreground backdrop-blur-sm",destructive:"destructive group border-destructive bg-destructive/10 text-destructive-foreground backdrop-blur-sm"},position:{desktop:"data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-slide-in-from-right data-[state=open]:animate-fade-in data-[state=closed]:animate-slide-out-to-right data-[state=closed]:animate-fade-out data-[swipe=end]:animate-slide-out-to-right",mobile:"data-[swipe=cancel]:translate-y-0 data-[swipe=end]:translate-y-[var(--radix-toast-swipe-end-y)] data-[swipe=move]:translate-y-[var(--radix-toast-swipe-move-y)] data-[swipe=move]:transition-none data-[state=open]:animate-slide-in-from-top data-[state=open]:animate-fade-in data-[state=closed]:animate-slide-out-to-top data-[state=closed]:animate-fade-out data-[swipe=end]:animate-slide-out-to-top"}},defaultVariants:{variant:"default",position:"desktop"}}),s0=T.forwardRef(({className:n,variant:a,...s},o)=>{const u=ld()?"mobile":"desktop";return y.jsx(ob,{ref:o,className:K(TM({variant:a,position:u}),n),...s})});s0.displayName=ob.displayName;const wM=T.forwardRef(({className:n,...a},s)=>y.jsx(rb,{ref:s,className:K("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",n),...a}));wM.displayName=rb.displayName;const o0=T.forwardRef(({className:n,...a},s)=>y.jsx(lb,{ref:s,className:K("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",n),"aria-label":"关闭提示","toast-close":"",...a,children:y.jsx(cl,{className:"h-4 w-4"})}));o0.displayName=lb.displayName;const r0=T.forwardRef(({className:n,...a},s)=>y.jsx(cb,{ref:s,className:K("text-sm font-semibold [&+div]:text-xs",n),...a}));r0.displayName=cb.displayName;const l0=T.forwardRef(({className:n,...a},s)=>y.jsx(ub,{ref:s,className:K("text-sm opacity-90",n),...a}));l0.displayName=ub.displayName;function CM(){const{toasts:n}=bM(),a=ld();return y.jsxs(xM,{swipeDirection:a?"up":"right",children:[n.map(function({id:s,title:o,description:l,action:u,...d}){return y.jsxs(s0,{...d,children:[y.jsxs("div",{className:"grid gap-1",children:[o&&y.jsx(r0,{children:o}),l&&y.jsx(l0,{children:l})]}),u,y.jsx(o0,{})]},s)}),y.jsx(i0,{})]})}const DM="modulepreload",AM=function(n){return"/"+n},Ry={},Ae=function(a,s,o){let l=Promise.resolve();if(s&&s.length>0){let m=function(g){return Promise.all(g.map(b=>Promise.resolve(b).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");l=m(s.map(g=>{if(g=AM(g),g in Ry)return;Ry[g]=!0;const b=g.endsWith(".css"),v=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${v}`))return;const x=document.createElement("link");if(x.rel=b?"stylesheet":DM,b||(x.as="script"),x.crossOrigin="",x.href=g,h&&x.setAttribute("nonce",h),document.head.appendChild(x),b)return new Promise((D,w)=>{x.addEventListener("load",D),x.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${g}`)))})}))}function u(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return l.then(d=>{for(const h of d||[])h.status==="rejected"&&u(h.reason);return a().catch(u)})};function c0(){const n=Wf();return y.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background p-4",children:y.jsxs("div",{className:"w-full max-w-2xl text-center",children:[y.jsxs("div",{className:"relative mb-8",children:[y.jsx("h1",{className:"text-[150px] font-black leading-none text-primary/10 select-none sm:text-[200px]",children:"404"}),y.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:y.jsx(Ir,{className:"h-20 w-20 text-primary/30 sm:h-24 sm:w-24"})})]}),y.jsxs("div",{className:"space-y-4 mb-8",children:[y.jsx("h2",{className:"text-2xl font-bold text-foreground sm:text-3xl",children:"页面未找到"}),y.jsx("p",{className:"text-base text-muted-foreground sm:text-lg max-w-md mx-auto",children:"抱歉,您访问的页面不存在或已被移除。请检查 URL 是否正确,或返回首页继续浏览。"})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[y.jsxs(He,{size:"lg",onClick:()=>n({to:"/"}),className:"gap-2 w-full sm:w-auto",children:[y.jsx(Jf,{className:"h-4 w-4"}),"返回首页"]}),y.jsxs(He,{size:"lg",variant:"outline",onClick:()=>window.history.back(),className:"gap-2 w-full sm:w-auto",children:[y.jsx(pC,{className:"h-4 w-4"}),"返回上一页"]})]}),y.jsx("div",{className:"mt-12 pt-8 border-t border-border",children:y.jsx("p",{className:"text-sm text-muted-foreground",children:"如果您认为这是一个错误,请联系系统管理员"})})]})})}const Gs=T.createContext({});function cd(n){const a=T.useRef(null);return a.current===null&&(a.current=n()),a.current}const EM=typeof window<"u",ud=EM?T.useLayoutEffect:T.useEffect,dl=T.createContext(null);function fd(n,a){n.indexOf(a)===-1&&n.push(a)}function $r(n,a){const s=n.indexOf(a);s>-1&&n.splice(s,1)}const un=(n,a,s)=>s>a?a:s{};const sa={},u0=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function f0(n){return typeof n=="object"&&n!==null}const d0=n=>/^0[^.\s]+$/u.test(n);function h0(n){let a;return()=>(a===void 0&&(a=n()),a)}const qt=n=>n,MM=(n,a)=>s=>a(n(s)),Zs=(...n)=>n.reduce(MM),qs=(n,a,s)=>{const o=a-n;return o===0?1:(s-n)/o};class hd{constructor(){this.subscriptions=[]}add(a){return fd(this.subscriptions,a),()=>$r(this.subscriptions,a)}notify(a,s,o){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](a,s,o);else for(let u=0;un*1e3,Gt=n=>n/1e3;function m0(n,a){return a?n*(1e3/a):0}const p0=(n,a,s)=>(((1-3*s+3*a)*n+(3*s-6*a))*n+3*a)*n,kM=1e-7,NM=12;function RM(n,a,s,o,l){let u,d,h=0;do d=a+(s-a)/2,u=p0(d,o,l)-n,u>0?s=d:a=d;while(Math.abs(u)>kM&&++hRM(u,0,1,n,s);return u=>u===0||u===1?u:p0(l(u),a,o)}const g0=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,y0=n=>a=>1-n(1-a),v0=$s(.33,1.53,.69,.99),md=y0(v0),b0=g0(md),S0=n=>n>=1?1:(n*=2)<1?.5*md(n):.5*(2-Math.pow(2,-10*(n-1))),pd=n=>1-Math.sin(Math.acos(n)),x0=y0(pd),T0=g0(pd),jM=$s(.42,0,1,1),OM=$s(0,0,.58,1),w0=$s(.42,0,.58,1),LM=n=>Array.isArray(n)&&typeof n[0]!="number",C0=n=>Array.isArray(n)&&typeof n[0]=="number",zM={linear:qt,easeIn:jM,easeInOut:w0,easeOut:OM,circIn:pd,circInOut:T0,circOut:x0,backIn:md,backInOut:b0,backOut:v0,anticipate:S0},BM=n=>typeof n=="string",jy=n=>{if(C0(n)){dd(n.length===4);const[a,s,o,l]=n;return $s(a,s,o,l)}else if(BM(n))return zM[n];return n},Dr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function UM(n,a){let s=new Set,o=new Set,l=!1,u=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(b){d.has(b)&&(g.schedule(b),n()),b(h)}const g={schedule:(b,v=!1,x=!1)=>{const w=x&&l?s:o;return v&&d.add(b),w.add(b),b},cancel:b=>{o.delete(b),d.delete(b)},process:b=>{if(h=b,l){u=!0;return}l=!0;const v=s;s=o,o=v,s.forEach(m),s.clear(),l=!1,u&&(u=!1,g.process(b))}};return g}const VM=40;function D0(n,a){let s=!1,o=!0;const l={delta:0,timestamp:0,isProcessing:!1},u=()=>s=!0,d=Dr.reduce((z,j)=>(z[j]=UM(u),z),{}),{setup:h,read:m,resolveKeyframes:g,preUpdate:b,update:v,preRender:x,render:D,postRender:w}=d,R=()=>{const z=sa.useManualTiming,j=z?l.timestamp:performance.now();s=!1,z||(l.delta=o?1e3/60:Math.max(Math.min(j-l.timestamp,VM),1)),l.timestamp=j,l.isProcessing=!0,h.process(l),m.process(l),g.process(l),b.process(l),v.process(l),x.process(l),D.process(l),w.process(l),l.isProcessing=!1,s&&a&&(o=!1,n(R))},L=()=>{s=!0,o=!0,l.isProcessing||n(R)};return{schedule:Dr.reduce((z,j)=>{const F=d[j];return z[j]=(X,ie=!1,Q=!1)=>(s||L(),F.schedule(X,ie,Q)),z},{}),cancel:z=>{for(let j=0;j(jr===void 0&&dt.set(rt.isProcessing||sa.useManualTiming?rt.timestamp:performance.now()),jr),set:n=>{jr=n,queueMicrotask(PM)}},A0=n=>a=>typeof a=="string"&&a.startsWith(n),E0=A0("--"),_M=A0("var(--"),gd=n=>_M(n)?HM.test(n.split("/*")[0].trim()):!1,HM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Oy(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const ji={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},Ks={...ji,transform:n=>un(0,1,n)},Ar={...ji,default:1},Bs=n=>Math.round(n*1e5)/1e5,yd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function FM(n){return n==null}const IM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vd=(n,a)=>s=>!!(typeof s=="string"&&IM.test(s)&&s.startsWith(n)||a&&!FM(s)&&Object.prototype.hasOwnProperty.call(s,a)),M0=(n,a,s)=>o=>{if(typeof o!="string")return o;const[l,u,d,h]=o.match(yd);return{[n]:parseFloat(l),[a]:parseFloat(u),[s]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},GM=n=>un(0,255,n),Zu={...ji,transform:n=>Math.round(GM(n))},Na={test:vd("rgb","red"),parse:M0("red","green","blue"),transform:({red:n,green:a,blue:s,alpha:o=1})=>"rgba("+Zu.transform(n)+", "+Zu.transform(a)+", "+Zu.transform(s)+", "+Bs(Ks.transform(o))+")"};function qM(n){let a="",s="",o="",l="";return n.length>5?(a=n.substring(1,3),s=n.substring(3,5),o=n.substring(5,7),l=n.substring(7,9)):(a=n.substring(1,2),s=n.substring(2,3),o=n.substring(3,4),l=n.substring(4,5),a+=a,s+=s,o+=o,l+=l),{red:parseInt(a,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:l?parseInt(l,16)/255:1}}const Af={test:vd("#"),parse:qM,transform:Na.transform},Ws=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),aa=Ws("deg"),cn=Ws("%"),$=Ws("px"),KM=Ws("vh"),YM=Ws("vw"),Ly={...cn,parse:n=>cn.parse(n)/100,transform:n=>cn.transform(n*100)},Ci={test:vd("hsl","hue"),parse:M0("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:s,alpha:o=1})=>"hsla("+Math.round(n)+", "+cn.transform(Bs(a))+", "+cn.transform(Bs(s))+", "+Bs(Ks.transform(o))+")"},Qe={test:n=>Na.test(n)||Af.test(n)||Ci.test(n),parse:n=>Na.test(n)?Na.parse(n):Ci.test(n)?Ci.parse(n):Af.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Na.transform(n):Ci.transform(n),getAnimatableNone:n=>{const a=Qe.parse(n);return a.alpha=0,Qe.transform(a)}},XM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function QM(n){return isNaN(n)&&typeof n=="string"&&(n.match(yd)?.length||0)+(n.match(XM)?.length||0)>0}const k0="number",N0="color",ZM="var",$M="var(",zy="${}",WM=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ki(n){const a=n.toString(),s=[],o={color:[],number:[],var:[]},l=[];let u=0;const h=a.replace(WM,m=>(Qe.test(m)?(o.color.push(u),l.push(N0),s.push(Qe.parse(m))):m.startsWith($M)?(o.var.push(u),l.push(ZM),s.push(m)):(o.number.push(u),l.push(k0),s.push(parseFloat(m))),++u,zy)).split(zy);return{values:s,split:h,indexes:o,types:l}}function JM(n){return ki(n).values}function R0({split:n,types:a}){const s=n.length;return o=>{let l="";for(let u=0;utypeof n=="number"?0:Qe.test(n)?Qe.getAnimatableNone(n):n,n2=(n,a)=>typeof n=="number"?a?.trim().endsWith("/")?n:0:t2(n);function a2(n){const a=ki(n);return R0(a)(a.values.map((o,l)=>n2(o,a.split[l])))}const Jt={test:QM,parse:JM,createTransformer:e2,getAnimatableNone:a2};function $u(n,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(a-n)*6*s:s<1/2?a:s<2/3?n+(a-n)*(2/3-s)*6:n}function i2({hue:n,saturation:a,lightness:s,alpha:o}){n/=360,a/=100,s/=100;let l=0,u=0,d=0;if(!a)l=u=d=s;else{const h=s<.5?s*(1+a):s+a-s*a,m=2*s-h;l=$u(m,h,n+1/3),u=$u(m,h,n),d=$u(m,h,n-1/3)}return{red:Math.round(l*255),green:Math.round(u*255),blue:Math.round(d*255),alpha:o}}function Wr(n,a){return s=>s>0?a:n}const ze=(n,a,s)=>n+(a-n)*s,Wu=(n,a,s)=>{const o=n*n,l=s*(a*a-o)+o;return l<0?0:Math.sqrt(l)},s2=[Af,Na,Ci],o2=n=>s2.find(a=>a.test(n));function By(n){const a=o2(n);if(!a)return!1;let s=a.parse(n);return a===Ci&&(s=i2(s)),s}const Uy=(n,a)=>{const s=By(n),o=By(a);if(!s||!o)return Wr(n,a);const l={...s};return u=>(l.red=Wu(s.red,o.red,u),l.green=Wu(s.green,o.green,u),l.blue=Wu(s.blue,o.blue,u),l.alpha=ze(s.alpha,o.alpha,u),Na.transform(l))},Ef=new Set(["none","hidden"]);function r2(n,a){return Ef.has(n)?s=>s<=0?n:a:s=>s>=1?a:n}function l2(n,a){return s=>ze(n,a,s)}function bd(n){return typeof n=="number"?l2:typeof n=="string"?gd(n)?Wr:Qe.test(n)?Uy:f2:Array.isArray(n)?j0:typeof n=="object"?Qe.test(n)?Uy:c2:Wr}function j0(n,a){const s=[...n],o=s.length,l=n.map((u,d)=>bd(u)(u,a[d]));return u=>{for(let d=0;d{for(const u in o)s[u]=o[u](l);return s}}function u2(n,a){const s=[],o={color:0,var:0,number:0};for(let l=0;l{const s=Jt.createTransformer(a),o=ki(n),l=ki(a);return o.indexes.var.length===l.indexes.var.length&&o.indexes.color.length===l.indexes.color.length&&o.indexes.number.length>=l.indexes.number.length?Ef.has(n)&&!l.values.length||Ef.has(a)&&!o.values.length?r2(n,a):Zs(j0(u2(o,l),l.values),s):Wr(n,a)};function O0(n,a,s){return typeof n=="number"&&typeof a=="number"&&typeof s=="number"?ze(n,a,s):bd(n)(n,a)}const d2=n=>{const a=({timestamp:s})=>n(s);return{start:(s=!0)=>Ne.update(a,s),stop:()=>oa(a),now:()=>rt.isProcessing?rt.timestamp:dt.now()}},L0=(n,a,s=10)=>{let o="";const l=Math.max(Math.round(a/s),2);for(let u=0;u=Jr?1/0:a}function h2(n,a=100,s){const o=s({...n,keyframes:[0,a]}),l=Math.min(Sd(o),Jr);return{type:"keyframes",ease:u=>o.next(l*u).value/a,duration:Gt(l)}}const _e={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Mf(n,a){return n*Math.sqrt(1-a*a)}const m2=12;function p2(n,a,s){let o=s;for(let l=1;l{const b=g*d,v=b*n,x=b-s,D=Mf(g,d),w=Math.exp(-v);return Ju-x/D*w},u=g=>{const v=g*d*n,x=v*s+s,D=Math.pow(d,2)*Math.pow(g,2)*n,w=Math.exp(-v),R=Mf(Math.pow(g,2),d);return(-l(g)+Ju>0?-1:1)*((x-D)*w)/R}):(l=g=>{const b=Math.exp(-g*n),v=(g-s)*n+1;return-Ju+b*v},u=g=>{const b=Math.exp(-g*n),v=(s-g)*(n*n);return b*v});const h=5/n,m=p2(l,u,h);if(n=Ot(n),isNaN(m))return{stiffness:_e.stiffness,damping:_e.damping,duration:n};{const g=Math.pow(m,2)*o;return{stiffness:g,damping:d*2*Math.sqrt(o*g),duration:n}}}const y2=["duration","bounce"],v2=["stiffness","damping","mass"];function Vy(n,a){return a.some(s=>n[s]!==void 0)}function b2(n){let a={velocity:_e.velocity,stiffness:_e.stiffness,damping:_e.damping,mass:_e.mass,isResolvedFromDuration:!1,...n};if(!Vy(n,v2)&&Vy(n,y2))if(a.velocity=0,n.visualDuration){const s=n.visualDuration,o=2*Math.PI/(s*1.2),l=o*o,u=2*un(.05,1,1-(n.bounce||0))*Math.sqrt(l);a={...a,mass:_e.mass,stiffness:l,damping:u}}else{const s=g2({...n,velocity:0});a={...a,...s,mass:_e.mass},a.isResolvedFromDuration=!0}return a}function el(n=_e.visualDuration,a=_e.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:a}:n;let{restSpeed:o,restDelta:l}=s;const u=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],h={done:!1,value:u},{stiffness:m,damping:g,mass:b,duration:v,velocity:x,isResolvedFromDuration:D}=b2({...s,velocity:-Gt(s.velocity||0)}),w=x||0,R=g/(2*Math.sqrt(m*b)),L=d-u,M=Gt(Math.sqrt(m/b)),V=Math.abs(L)<5;o||(o=V?_e.restSpeed.granular:_e.restSpeed.default),l||(l=V?_e.restDelta.granular:_e.restDelta.default);let z,j,F,X,ie,Q;if(R<1)F=Mf(M,R),X=(w+R*M*L)/F,z=I=>{const ee=Math.exp(-R*M*I);return d-ee*(X*Math.sin(F*I)+L*Math.cos(F*I))},ie=R*M*X+L*F,Q=R*M*L-X*F,j=I=>Math.exp(-R*M*I)*(ie*Math.sin(F*I)+Q*Math.cos(F*I));else if(R===1){z=ee=>d-Math.exp(-M*ee)*(L+(w+M*L)*ee);const I=w+M*L;j=ee=>Math.exp(-M*ee)*(M*I*ee-w)}else{const I=M*Math.sqrt(R*R-1);z=ye=>{const Be=Math.exp(-R*M*ye),U=Math.min(I*ye,300);return d-Be*((w+R*M*L)*Math.sinh(U)+I*L*Math.cosh(U))/I};const ee=(w+R*M*L)/I,ne=R*M*ee-L*I,le=R*M*L-ee*I;j=ye=>{const Be=Math.exp(-R*M*ye),U=Math.min(I*ye,300);return Be*(ne*Math.sinh(U)+le*Math.cosh(U))}}const G={calculatedDuration:D&&v||null,velocity:I=>Ot(j(I)),next:I=>{if(!D&&R<1){const ne=Math.exp(-R*M*I),le=Math.sin(F*I),ye=Math.cos(F*I),Be=d-ne*(X*le+L*ye),U=Ot(ne*(ie*le+Q*ye));return h.done=Math.abs(U)<=o&&Math.abs(d-Be)<=l,h.value=h.done?d:Be,h}const ee=z(I);if(D)h.done=I>=v;else{const ne=Ot(j(I));h.done=Math.abs(ne)<=o&&Math.abs(d-ee)<=l}return h.value=h.done?d:ee,h},toString:()=>{const I=Math.min(Sd(G),Jr),ee=L0(ne=>G.next(I*ne).value,I,30);return I+"ms "+ee},toTransition:()=>{}};return G}el.applyToOptions=n=>{const a=h2(n,100,el);return n.ease=a.ease,n.duration=Ot(a.duration),n.type="keyframes",n};const S2=5;function z0(n,a,s){const o=Math.max(a-S2,0);return m0(s-n(o),a-o)}function kf({keyframes:n,velocity:a=0,power:s=.8,timeConstant:o=325,bounceDamping:l=10,bounceStiffness:u=500,modifyTarget:d,min:h,max:m,restDelta:g=.5,restSpeed:b}){const v=n[0],x={done:!1,value:v},D=Q=>h!==void 0&&Qm,w=Q=>h===void 0?m:m===void 0||Math.abs(h-Q)-R*Math.exp(-Q/o),z=Q=>M+V(Q),j=Q=>{const G=V(Q),I=z(Q);x.done=Math.abs(G)<=g,x.value=x.done?M:I};let F,X;const ie=Q=>{D(x.value)&&(F=Q,X=el({keyframes:[x.value,w(x.value)],velocity:z0(z,Q,x.value),damping:l,stiffness:u,restDelta:g,restSpeed:b}))};return ie(0),{calculatedDuration:null,next:Q=>{let G=!1;return!X&&F===void 0&&(G=!0,j(Q),ie(Q)),F!==void 0&&Q>=F?X.next(Q-F):(!G&&j(Q),x)}}}function x2(n,a,s){const o=[],l=s||sa.mix||O0,u=n.length-1;for(let d=0;da[0];if(u===2&&a[0]===a[1])return()=>a[1];const d=n[0]===n[1];n[0]>n[u-1]&&(n=[...n].reverse(),a=[...a].reverse());const h=x2(a,o,l),m=h.length,g=b=>{if(d&&b1)for(;vg(un(n[0],n[u-1],b)):g}function w2(n,a){const s=n[n.length-1];for(let o=1;o<=a;o++){const l=qs(0,a,o);n.push(ze(s,1,l))}}function C2(n){const a=[0];return w2(a,n.length-1),a}function D2(n,a){return n.map(s=>s*a)}function A2(n,a){return n.map(()=>a||w0).splice(0,n.length-1)}function Us({duration:n=300,keyframes:a,times:s,ease:o="easeInOut"}){const l=LM(o)?o.map(jy):jy(o),u={done:!1,value:a[0]},d=D2(s&&s.length===a.length?s:C2(a),n),h=T2(d,a,{ease:Array.isArray(l)?l:A2(a,l)});return{calculatedDuration:n,next:m=>(u.value=h(m),u.done=m>=n,u)}}const E2=n=>n!==null;function hl(n,{repeat:a,repeatType:s="loop"},o,l=1){const u=n.filter(E2),h=l<0||a&&s!=="loop"&&a%2===1?0:u.length-1;return!h||o===void 0?u[h]:o}const M2={decay:kf,inertia:kf,tween:Us,keyframes:Us,spring:el};function B0(n){typeof n.type=="string"&&(n.type=M2[n.type])}class xd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,s){return this.finished.then(a,s)}}const k2=n=>n/100;class tl extends xd{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==dt.now()&&this.tick(dt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;B0(a);const{type:s=Us,repeat:o=0,repeatDelay:l=0,repeatType:u,velocity:d=0}=a;let{keyframes:h}=a;const m=s||Us;m!==Us&&typeof h[0]!="number"&&(this.mixKeyframes=Zs(k2,O0(h[0],h[1])),h=[0,100]);const g=m({...a,keyframes:h});u==="mirror"&&(this.mirroredGenerator=m({...a,keyframes:[...h].reverse(),velocity:-d})),g.calculatedDuration===null&&(g.calculatedDuration=Sd(g));const{calculatedDuration:b}=g;this.calculatedDuration=b,this.resolvedDuration=b+l,this.totalDuration=this.resolvedDuration*(o+1)-l,this.generator=g}updateTime(a){const s=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(a,s=!1){const{generator:o,totalDuration:l,mixKeyframes:u,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return o.next(0);const{delay:g=0,keyframes:b,repeat:v,repeatType:x,repeatDelay:D,type:w,onUpdate:R,finalKeyframe:L}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-l/this.speed,this.startTime)),s?this.currentTime=a:this.updateTime(a);const M=this.currentTime-g*(this.playbackSpeed>=0?1:-1),V=this.playbackSpeed>=0?M<0:M>l;this.currentTime=Math.max(M,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let z=this.currentTime,j=o;if(v){const Q=Math.min(this.currentTime,l)/h;let G=Math.floor(Q),I=Q%1;!I&&Q>=1&&(I=1),I===1&&G--,G=Math.min(G,v+1),G%2&&(x==="reverse"?(I=1-I,D&&(I-=D/h)):x==="mirror"&&(j=d)),z=un(0,1,I)*h}let F;V?(this.delayState.value=b[0],F=this.delayState):F=j.next(z),u&&!V&&(F.value=u(F.value));let{done:X}=F;!V&&m!==null&&(X=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const ie=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&X);return ie&&w!==kf&&(F.value=hl(b,this.options,L,this.speed)),R&&R(F.value),ie&&this.finish(),F}then(a,s){return this.finished.then(a,s)}get duration(){return Gt(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Gt(a)}get time(){return Gt(this.currentTime)}set time(a){a=Ot(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=a,this.tick(a))}getGeneratorVelocity(){const a=this.currentTime;if(a<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(a);const s=this.generator.next(a).value;return z0(o=>this.generator.next(o).value,a,s)}get speed(){return this.playbackSpeed}set speed(a){const s=this.playbackSpeed!==a;s&&this.driver&&this.updateTime(dt.now()),this.playbackSpeed=a,s&&this.driver&&(this.time=Gt(this.currentTime))}play(){if(this.isStopped)return;const{driver:a=d2,startTime:s}=this.options;this.driver||(this.driver=a(l=>this.tick(l))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=s??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(dt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),a.observe(this)}}function N2(n){for(let a=1;an*180/Math.PI,Nf=n=>{const a=Ra(Math.atan2(n[1],n[0]));return Rf(a)},R2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Nf,rotateZ:Nf,skewX:n=>Ra(Math.atan(n[1])),skewY:n=>Ra(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Rf=n=>(n=n%360,n<0&&(n+=360),n),Py=Nf,_y=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),Hy=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),j2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_y,scaleY:Hy,scale:n=>(_y(n)+Hy(n))/2,rotateX:n=>Rf(Ra(Math.atan2(n[6],n[5]))),rotateY:n=>Rf(Ra(Math.atan2(-n[2],n[0]))),rotateZ:Py,rotate:Py,skewX:n=>Ra(Math.atan(n[4])),skewY:n=>Ra(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function jf(n){return n.includes("scale")?1:0}function Of(n,a){if(!n||n==="none")return jf(a);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,l;if(s)o=j2,l=s;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=R2,l=h}if(!l)return jf(a);const u=o[a],d=l[1].split(",").map(L2);return typeof u=="function"?u(d):d[u]}const O2=(n,a)=>{const{transform:s="none"}=getComputedStyle(n);return Of(s,a)};function L2(n){return parseFloat(n.trim())}const Oi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Li=new Set(Oi),Fy=n=>n===ji||n===$,z2=new Set(["x","y","z"]),B2=Oi.filter(n=>!z2.has(n));function U2(n){const a=[];return B2.forEach(s=>{const o=n.getValue(s);o!==void 0&&(a.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),a}const ia={width:({x:n},{paddingLeft:a="0",paddingRight:s="0",boxSizing:o})=>{const l=n.max-n.min;return o==="border-box"?l:l-parseFloat(a)-parseFloat(s)},height:({y:n},{paddingTop:a="0",paddingBottom:s="0",boxSizing:o})=>{const l=n.max-n.min;return o==="border-box"?l:l-parseFloat(a)-parseFloat(s)},top:(n,{top:a})=>parseFloat(a),left:(n,{left:a})=>parseFloat(a),bottom:({y:n},{top:a})=>parseFloat(a)+(n.max-n.min),right:({x:n},{left:a})=>parseFloat(a)+(n.max-n.min),x:(n,{transform:a})=>Of(a,"x"),y:(n,{transform:a})=>Of(a,"y")};ia.translateX=ia.x;ia.translateY=ia.y;const Oa=new Set;let Lf=!1,zf=!1,Bf=!1;function U0(){if(zf){const n=Array.from(Oa).filter(o=>o.needsMeasurement),a=new Set(n.map(o=>o.element)),s=new Map;a.forEach(o=>{const l=U2(o);l.length&&(s.set(o,l),o.render())}),n.forEach(o=>o.measureInitialState()),a.forEach(o=>{o.render();const l=s.get(o);l&&l.forEach(([u,d])=>{o.getValue(u)?.set(d)})}),n.forEach(o=>o.measureEndState()),n.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}zf=!1,Lf=!1,Oa.forEach(n=>n.complete(Bf)),Oa.clear()}function V0(){Oa.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(zf=!0)})}function V2(){Bf=!0,V0(),U0(),Bf=!1}class Td{constructor(a,s,o,l,u,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=s,this.name=o,this.motionValue=l,this.element=u,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Oa.add(this),Lf||(Lf=!0,Ne.read(V0),Ne.resolveKeyframes(U0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,element:o,motionValue:l}=this;if(a[0]===null){const u=l?.get(),d=a[a.length-1];if(u!==void 0)a[0]=u;else if(o&&s){const h=o.readValue(s,d);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=d),l&&u===void 0&&l.set(a[0])}N2(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),Oa.delete(this)}cancel(){this.state==="scheduled"&&(Oa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const P2=n=>n.startsWith("--");function P0(n,a,s){P2(a)?n.style.setProperty(a,s):n.style[a]=s}const _2={};function _0(n,a){const s=h0(n);return()=>_2[a]??s()}const H2=_0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),H0=_0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Rs=([n,a,s,o])=>`cubic-bezier(${n}, ${a}, ${s}, ${o})`,Iy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Rs([0,.65,.55,1]),circOut:Rs([.55,0,1,.45]),backIn:Rs([.31,.01,.66,-.59]),backOut:Rs([.33,1.53,.69,.99])};function F0(n,a){if(n)return typeof n=="function"?H0()?L0(n,a):"ease-out":C0(n)?Rs(n):Array.isArray(n)?n.map(s=>F0(s,a)||Iy.easeOut):Iy[n]}function F2(n,a,s,{delay:o=0,duration:l=300,repeat:u=0,repeatType:d="loop",ease:h="easeOut",times:m}={},g=void 0){const b={[a]:s};m&&(b.offset=m);const v=F0(h,l);Array.isArray(v)&&(b.easing=v);const x={delay:o,duration:l,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:u+1,direction:d==="reverse"?"alternate":"normal"};return g&&(x.pseudoElement=g),n.animate(b,x)}function I0(n){return typeof n=="function"&&"applyToOptions"in n}function I2({type:n,...a}){return I0(n)&&H0()?n.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class G0 extends xd{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:s,name:o,keyframes:l,pseudoElement:u,allowFlatten:d=!1,finalKeyframe:h,onComplete:m}=a;this.isPseudoElement=!!u,this.allowFlatten=d,this.options=a,dd(typeof a.type!="string");const g=I2(a);this.animation=F2(s,o,l,g,u),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const b=hl(l,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(b),P0(s,o,b),this.animation.cancel()}m?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const a=this.options?.element;!this.isPseudoElement&&a?.isConnected&&this.animation.commitStyles?.()}get duration(){const a=this.animation.effect?.getComputedTiming?.().duration||0;return Gt(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Gt(a)}get time(){return Gt(Number(this.animation.currentTime)||0)}set time(a){const s=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ot(a),s&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,rangeStart:s,rangeEnd:o,observe:l}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,a&&H2()?(this.animation.timeline=a,s&&(this.animation.rangeStart=s),o&&(this.animation.rangeEnd=o),qt):l(this)}}const q0={anticipate:S0,backInOut:b0,circInOut:T0};function G2(n){return n in q0}function q2(n){typeof n.ease=="string"&&G2(n.ease)&&(n.ease=q0[n.ease])}const ef=10;class K2 extends G0{constructor(a){q2(a),B0(a),super(a),a.startTime!==void 0&&a.autoplay!==!1&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:s,onUpdate:o,onComplete:l,element:u,...d}=this.options;if(!s)return;if(a!==void 0){s.set(a);return}const h=new tl({...d,autoplay:!1}),m=Math.max(ef,dt.now()-this.startTime),g=un(0,ef,m-ef),b=h.sample(m).value,{name:v}=this.options;u&&v&&P0(u,v,b),s.setWithVelocity(h.sample(Math.max(0,m-g)).value,b,g),h.stop()}}const Gy=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(Jt.test(n)||n==="0")&&!n.startsWith("url("));function Y2(n){const a=n[0];if(n.length===1)return!0;for(let s=0;sObject.hasOwnProperty.call(Element.prototype,"animate"));function J2(n){const{motionValue:a,name:s,repeatDelay:o,repeatType:l,damping:u,type:d,keyframes:h}=n;if(!(a?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:b}=a.owner.getProps();return W2()&&s&&(K0.has(s)||$2.has(s)&&Z2(h))&&(s!=="transform"||!b)&&!g&&!o&&l!=="mirror"&&u!==0&&d!=="inertia"}const ek=40;class tk extends xd{constructor({autoplay:a=!0,delay:s=0,type:o="keyframes",repeat:l=0,repeatDelay:u=0,repeatType:d="loop",keyframes:h,name:m,motionValue:g,element:b,...v}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=dt.now();const x={autoplay:a,delay:s,type:o,repeat:l,repeatDelay:u,repeatType:d,name:m,motionValue:g,element:b,...v},D=b?.KeyframeResolver||Td;this.keyframeResolver=new D(h,(w,R,L)=>this.onKeyframesResolved(w,R,x,!L),m,g,b),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,s,o,l){this.keyframeResolver=void 0;const{name:u,type:d,velocity:h,delay:m,isHandoff:g,onUpdate:b}=o;this.resolvedAt=dt.now();let v=!0;X2(a,u,d,h)||(v=!1,(sa.instantAnimations||!m)&&b?.(hl(a,o,s)),a[0]=a[a.length-1],Uf(o),o.repeat=0);const D={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>ek?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...o,keyframes:a},w=v&&!g&&J2(D),R=D.motionValue?.owner?.current;let L;if(w)try{L=new K2({...D,element:R})}catch{L=new tl(D)}else L=new tl(D);L.finished.then(()=>{this.notifyFinished()}).catch(qt),this.pendingTimeline&&(this.stopTimeline=L.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=L}get finished(){return this._animation?this.animation.finished:this._finished}then(a,s){return this.finished.finally(a).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),V2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Y0(n,a,s,o=0,l=1){const u=Array.from(n).sort((g,b)=>g.sortNodePosition(b)).indexOf(a),d=n.size,h=(d-1)*o;return typeof s=="function"?s(u,d):l===1?u*o:h-u*o}const nk=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ak(n){const a=nk.exec(n);if(!a)return[,];const[,s,o,l]=a;return[`--${s??o}`,l]}function X0(n,a,s=1){const[o,l]=ak(n);if(!o)return;const u=window.getComputedStyle(a).getPropertyValue(o);if(u){const d=u.trim();return u0(d)?parseFloat(d):d}return gd(l)?X0(l,a,s+1):l}const ik={type:"spring",stiffness:500,damping:25,restSpeed:10},sk=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),ok={type:"keyframes",duration:.8},rk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lk=(n,{keyframes:a})=>a.length>2?ok:Li.has(n)?n.startsWith("scale")?sk(a[1]):ik:rk;function Q0(n,a){if(n?.inherit&&a){const{inherit:s,...o}=n;return{...a,...o}}return n}function wd(n,a){const s=n?.[a]??n?.default??n;return s!==n?Q0(s,n):s}const ck=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function uk(n){for(const a in n)if(!ck.has(a))return!0;return!1}const Cd=(n,a,s,o={},l,u)=>d=>{const h=wd(o,n)||{},m=h.delay||o.delay||0;let{elapsed:g=0}=o;g=g-Ot(m);const b={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-g,onUpdate:x=>{a.set(x),h.onUpdate&&h.onUpdate(x)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:a,element:u?void 0:l};uk(h)||Object.assign(b,lk(n,b)),b.duration&&(b.duration=Ot(b.duration)),b.repeatDelay&&(b.repeatDelay=Ot(b.repeatDelay)),b.from!==void 0&&(b.keyframes[0]=b.from);let v=!1;if((b.type===!1||b.duration===0&&!b.repeatDelay)&&(Uf(b),b.delay===0&&(v=!0)),(sa.instantAnimations||sa.skipAnimations||l?.shouldSkipAnimations)&&(v=!0,Uf(b),b.delay=0),b.allowFlatten=!h.type&&!h.ease,v&&!u&&a.get()!==void 0){const x=hl(b.keyframes,h);if(x!==void 0){Ne.update(()=>{b.onUpdate(x),b.onComplete()});return}}return h.isSync?new tl(b):new tk(b)};function qy(n){const a=[{},{}];return n?.values.forEach((s,o)=>{a[0][o]=s.get(),a[1][o]=s.getVelocity()}),a}function Dd(n,a,s,o){if(typeof a=="function"){const[l,u]=qy(o);a=a(s!==void 0?s:n.custom,l,u)}if(typeof a=="string"&&(a=n.variants&&n.variants[a]),typeof a=="function"){const[l,u]=qy(o);a=a(s!==void 0?s:n.custom,l,u)}return a}function La(n,a,s){const o=n.getProps();return Dd(o,a,s!==void 0?s:o.custom,n)}const Z0=new Set(["width","height","top","left","right","bottom",...Oi]),Ky=30,fk=n=>!isNaN(parseFloat(n));class dk{constructor(a,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const l=dt.now();if(this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=s.owner}setCurrent(a){this.current=a,this.updatedAt=dt.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=fk(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,s){this.events[a]||(this.events[a]=new hd);const o=this.events[a].add(s);return a==="change"?()=>{o(),Ne.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,s){this.passiveEffect=a,this.stopPassiveEffect=s}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-o}jump(a,s=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=dt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Ky)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Ky);return m0(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(a){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=a(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ni(n,a){return new dk(n,a)}const Vf=n=>Array.isArray(n);function hk(n,a,s){n.hasValue(a)?n.getValue(a).set(s):n.addValue(a,Ni(s))}function mk(n){return Vf(n)?n[n.length-1]||0:n}function pk(n,a){const s=La(n,a);let{transitionEnd:o={},transition:l={},...u}=s||{};u={...u,...o};for(const d in u){const h=mk(u[d]);hk(n,d,h)}}const ct=n=>!!(n&&n.getVelocity);function gk(n){return!!(ct(n)&&n.add)}function Pf(n,a){const s=n.getValue("willChange");if(gk(s))return s.add(a);if(!s&&sa.WillChange){const o=new sa.WillChange("auto");n.addValue("willChange",o),o.add(a)}}function Ad(n){return n.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const yk="framerAppearId",$0="data-"+Ad(yk);function W0(n){return n.props[$0]}function vk({protectedKeys:n,needsAnimating:a},s){const o=n.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,o}function J0(n,a,{delay:s=0,transitionOverride:o,type:l}={}){let{transition:u,transitionEnd:d,...h}=a;const m=n.getDefaultTransition();u=u?Q0(u,m):m;const g=u?.reduceMotion;o&&(u=o);const b=[],v=l&&n.animationState&&n.animationState.getState()[l];for(const x in h){const D=n.getValue(x,n.latestValues[x]??null),w=h[x];if(w===void 0||v&&vk(v,x))continue;const R={delay:s,...wd(u||{},x)},L=D.get();if(L!==void 0&&!D.isAnimating()&&!Array.isArray(w)&&w===L&&!R.velocity){Ne.update(()=>D.set(w));continue}let M=!1;if(window.MotionHandoffAnimation){const j=W0(n);if(j){const F=window.MotionHandoffAnimation(j,x,Ne);F!==null&&(R.startTime=F,M=!0)}}Pf(n,x);const V=g??n.shouldReduceMotion;D.start(Cd(x,D,w,V&&Z0.has(x)?{type:!1}:R,n,M));const z=D.animation;z&&b.push(z)}if(d){const x=()=>Ne.update(()=>{d&&pk(n,d)});b.length?Promise.all(b).then(x):x()}return b}function _f(n,a,s={}){const o=La(n,a,s.type==="exit"?n.presenceContext?.custom:void 0);let{transition:l=n.getDefaultTransition()||{}}=o||{};s.transitionOverride&&(l=s.transitionOverride);const u=o?()=>Promise.all(J0(n,o,s)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(m=0)=>{const{delayChildren:g=0,staggerChildren:b,staggerDirection:v}=l;return bk(n,a,m,g,b,v,s)}:()=>Promise.resolve(),{when:h}=l;if(h){const[m,g]=h==="beforeChildren"?[u,d]:[d,u];return m().then(()=>g())}else return Promise.all([u(),d(s.delay)])}function bk(n,a,s=0,o=0,l=0,u=1,d){const h=[];for(const m of n.variantChildren)m.notify("AnimationStart",a),h.push(_f(m,a,{...d,delay:s+(typeof o=="function"?0:o)+Y0(n.variantChildren,m,o,l,u)}).then(()=>m.notify("AnimationComplete",a)));return Promise.all(h)}function Sk(n,a,s={}){n.notify("AnimationStart",a);let o;if(Array.isArray(a)){const l=a.map(u=>_f(n,u,s));o=Promise.all(l)}else if(typeof a=="string")o=_f(n,a,s);else{const l=typeof a=="function"?La(n,a,s.custom):a;o=Promise.all(J0(n,l,s))}return o.then(()=>{n.notify("AnimationComplete",a)})}const xk={test:n=>n==="auto",parse:n=>n},eS=n=>a=>a.test(n),tS=[ji,$,cn,aa,YM,KM,xk],Yy=n=>tS.find(eS(n));function Tk(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||d0(n):!0}const wk=new Set(["brightness","contrast","saturate","opacity"]);function Ck(n){const[a,s]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[o]=s.match(yd)||[];if(!o)return n;const l=s.replace(o,"");let u=wk.has(a)?1:0;return o!==s&&(u*=100),a+"("+u+l+")"}const Dk=/\b([a-z-]*)\(.*?\)/gu,Hf={...Jt,getAnimatableNone:n=>{const a=n.match(Dk);return a?a.map(Ck).join(" "):n}},Ff={...Jt,getAnimatableNone:n=>{const a=Jt.parse(n);return Jt.createTransformer(n)(a.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},Xy={...ji,transform:Math.round},Ak={rotate:aa,rotateX:aa,rotateY:aa,rotateZ:aa,scale:Ar,scaleX:Ar,scaleY:Ar,scaleZ:Ar,skew:aa,skewX:aa,skewY:aa,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:Ks,originX:Ly,originY:Ly,originZ:$},Ed={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,inset:$,insetBlock:$,insetBlockStart:$,insetBlockEnd:$,insetInline:$,insetInlineStart:$,insetInlineEnd:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,paddingBlock:$,paddingBlockStart:$,paddingBlockEnd:$,paddingInline:$,paddingInlineStart:$,paddingInlineEnd:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,marginBlock:$,marginBlockStart:$,marginBlockEnd:$,marginInline:$,marginInlineStart:$,marginInlineEnd:$,fontSize:$,backgroundPositionX:$,backgroundPositionY:$,...Ak,zIndex:Xy,fillOpacity:Ks,strokeOpacity:Ks,numOctaves:Xy},Ek={...Ed,color:Qe,backgroundColor:Qe,outlineColor:Qe,fill:Qe,stroke:Qe,borderColor:Qe,borderTopColor:Qe,borderRightColor:Qe,borderBottomColor:Qe,borderLeftColor:Qe,filter:Hf,WebkitFilter:Hf,mask:Ff,WebkitMask:Ff},nS=n=>Ek[n],Mk=new Set([Hf,Ff]);function aS(n,a){let s=nS(n);return Mk.has(s)||(s=Jt),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const kk=new Set(["auto","none","0"]);function Nk(n,a,s){let o=0,l;for(;o{a.getValue(h).set(m)}),this.resolveNoneKeyframes()}}function iS(n,a,s){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let o=document;const l=s?.[n]??o.querySelectorAll(n);return l?Array.from(l):[]}return Array.from(n).filter(o=>o!=null)}const sS=(n,a)=>a&&typeof n=="number"?a.transform(n):n;function Or(n){return f0(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:Md}=D0(queueMicrotask,!1),Wt={x:!1,y:!1};function oS(){return Wt.x||Wt.y}function jk(n){return n==="x"||n==="y"?Wt[n]?null:(Wt[n]=!0,()=>{Wt[n]=!1}):Wt.x||Wt.y?null:(Wt.x=Wt.y=!0,()=>{Wt.x=Wt.y=!1})}function rS(n,a){const s=iS(n),o=new AbortController,l={passive:!0,...a,signal:o.signal};return[s,l,()=>o.abort()]}function Ok(n){return!(n.pointerType==="touch"||oS())}function Lk(n,a,s={}){const[o,l,u]=rS(n,s);return o.forEach(d=>{let h=!1,m=!1,g;const b=()=>{d.removeEventListener("pointerleave",w)},v=L=>{g&&(g(L),g=void 0),b()},x=L=>{h=!1,window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",x),m&&(m=!1,v(L))},D=()=>{h=!0,window.addEventListener("pointerup",x,l),window.addEventListener("pointercancel",x,l)},w=L=>{if(L.pointerType!=="touch"){if(h){m=!0;return}v(L)}},R=L=>{if(!Ok(L))return;m=!1;const M=a(d,L);typeof M=="function"&&(g=M,d.addEventListener("pointerleave",w,l))};d.addEventListener("pointerenter",R,l),d.addEventListener("pointerdown",D,l)}),u}const lS=(n,a)=>a?n===a?!0:lS(n,a.parentElement):!1,kd=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,zk=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Bk(n){return zk.has(n.tagName)||n.isContentEditable===!0}const Uk=new Set(["INPUT","SELECT","TEXTAREA"]);function Vk(n){return Uk.has(n.tagName)||n.isContentEditable===!0}const Lr=new WeakSet;function Qy(n){return a=>{a.key==="Enter"&&n(a)}}function tf(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const Pk=(n,a)=>{const s=n.currentTarget;if(!s)return;const o=Qy(()=>{if(Lr.has(s))return;tf(s,"down");const l=Qy(()=>{tf(s,"up")}),u=()=>tf(s,"cancel");s.addEventListener("keyup",l,a),s.addEventListener("blur",u,a)});s.addEventListener("keydown",o,a),s.addEventListener("blur",()=>s.removeEventListener("keydown",o),a)};function Zy(n){return kd(n)&&!oS()}const $y=new WeakSet;function _k(n,a,s={}){const[o,l,u]=rS(n,s),d=h=>{const m=h.currentTarget;if(!Zy(h)||$y.has(h))return;Lr.add(m),s.stopPropagation&&$y.add(h);const g=a(m,h),b=(D,w)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",x),Lr.has(m)&&Lr.delete(m),Zy(D)&&typeof g=="function"&&g(D,{success:w})},v=D=>{b(D,m===window||m===document||s.useGlobalTarget||lS(m,D.target))},x=D=>{b(D,!1)};window.addEventListener("pointerup",v,l),window.addEventListener("pointercancel",x,l)};return o.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",d,l),Or(h)&&(h.addEventListener("focus",g=>Pk(g,l)),!Bk(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),u}function Nd(n){return f0(n)&&"ownerSVGElement"in n}const zr=new WeakMap;let Br;const cS=(n,a,s)=>(o,l)=>l&&l[0]?l[0][n+"Size"]:Nd(o)&&"getBBox"in o?o.getBBox()[a]:o[s],Hk=cS("inline","width","offsetWidth"),Fk=cS("block","height","offsetHeight");function Ik({target:n,borderBoxSize:a}){zr.get(n)?.forEach(s=>{s(n,{get width(){return Hk(n,a)},get height(){return Fk(n,a)}})})}function Gk(n){n.forEach(Ik)}function qk(){typeof ResizeObserver>"u"||(Br=new ResizeObserver(Gk))}function Kk(n,a){Br||qk();const s=iS(n);return s.forEach(o=>{let l=zr.get(o);l||(l=new Set,zr.set(o,l)),l.add(a),Br?.observe(o)}),()=>{s.forEach(o=>{const l=zr.get(o);l?.delete(a),l?.size||Br?.unobserve(o)})}}const Ur=new Set;let Di;function Yk(){Di=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ur.forEach(a=>a(n))},window.addEventListener("resize",Di)}function Xk(n){return Ur.add(n),Di||Yk(),()=>{Ur.delete(n),!Ur.size&&typeof Di=="function"&&(window.removeEventListener("resize",Di),Di=void 0)}}function Wy(n,a){return typeof n=="function"?Xk(n):Kk(n,a)}function Qk(n){return Nd(n)&&n.tagName==="svg"}const Zk=[...tS,Qe,Jt],$k=n=>Zk.find(eS(n)),Jy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ai=()=>({x:Jy(),y:Jy()}),ev=()=>({min:0,max:0}),$e=()=>({x:ev(),y:ev()}),Wk=new WeakMap;function ml(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Ys(n){return typeof n=="string"||Array.isArray(n)}const Rd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jd=["initial",...Rd];function pl(n){return ml(n.animate)||jd.some(a=>Ys(n[a]))}function uS(n){return!!(pl(n)||n.variants)}function Jk(n,a,s){for(const o in a){const l=a[o],u=s[o];if(ct(l))n.addValue(o,l);else if(ct(u))n.addValue(o,Ni(l,{owner:n}));else if(u!==l)if(n.hasValue(o)){const d=n.getValue(o);d.liveStyle===!0?d.jump(l):d.hasAnimated||d.set(l)}else{const d=n.getStaticValue(o);n.addValue(o,Ni(d!==void 0?d:l,{owner:n}))}}for(const o in s)a[o]===void 0&&n.removeValue(o);return a}const If={current:null},fS={current:!1},eN=typeof window<"u";function tN(){if(fS.current=!0,!!eN)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),a=()=>If.current=n.matches;n.addEventListener("change",a),a()}else If.current=!1}const tv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let nl={};function dS(n){nl=n}function nN(){return nl}class aN{scrapeMotionValuesFromProps(a,s,o){return{}}constructor({parent:a,props:s,presenceContext:o,reducedMotionConfig:l,skipAnimations:u,blockInitialAnimation:d,visualState:h},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Td,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const D=dt.now();this.renderScheduledAtthis.bindToMotionValue(o,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(fS.current||tN(),this.shouldReduceMotion=If.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),oa(this.notifyUpdate),oa(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const a in this.events)this.events[a].clear();for(const a in this.features){const s=this.features[a];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,s){if(this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)(),s.accelerate&&K0.has(a)&&this.current instanceof HTMLElement){const{factory:d,keyframes:h,times:m,ease:g,duration:b}=s.accelerate,v=new G0({element:this.current,name:a,keyframes:h,times:m,ease:g,duration:Ot(b)}),x=d(v);this.valueSubscriptions.set(a,()=>{x(),v.cancel()});return}const o=Li.has(a);o&&this.onBindTransform&&this.onBindTransform();const l=s.on("change",d=>{this.latestValues[a]=d,this.props.onUpdate&&Ne.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;typeof window<"u"&&window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,a,s)),this.valueSubscriptions.set(a,()=>{l(),u&&u(),s.owner&&s.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in nl){const s=nl[a];if(!s)continue;const{isEnabled:o,Feature:l}=s;if(!this.features[a]&&l&&o(this.props)&&(this.features[a]=new l(this)),this.features[a]){const u=this.features[a];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$e()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,s){this.latestValues[a]=s}update(a,s){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;os.variantChildren.delete(a)}addValue(a,s){const o=this.values.get(a);s!==o&&(o&&this.removeValue(a),this.bindToMotionValue(a,s),this.values.set(a,s),this.latestValues[a]=s.get())}removeValue(a){this.values.delete(a);const s=this.valueSubscriptions.get(a);s&&(s(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,s){if(this.props.values&&this.props.values[a])return this.props.values[a];let o=this.values.get(a);return o===void 0&&s!==void 0&&(o=Ni(s===null?void 0:s,{owner:this}),this.addValue(a,o)),o}readValue(a,s){let o=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return o!=null&&(typeof o=="string"&&(u0(o)||d0(o))?o=parseFloat(o):!$k(o)&&Jt.test(s)&&(o=aS(a,s)),this.setBaseTarget(a,ct(o)?o.get():o)),ct(o)?o.get():o}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const u=Dd(this.props,s,this.presenceContext?.custom);u&&(o=u[a])}if(s&&o!==void 0)return o;const l=this.getBaseTargetFromProps(this.props,a);return l!==void 0&&!ct(l)?l:this.initialValues[a]!==void 0&&o===void 0?void 0:this.baseTarget[a]}on(a,s){return this.events[a]||(this.events[a]=new hd),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}scheduleRenderMicrotask(){Md.render(this.render)}}class hS extends aN{constructor(){super(...arguments),this.KeyframeResolver=Rk}sortInstanceNodePosition(a,s){return a.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(a,s){const o=a.style;return o?o[s]:void 0}removeValueFromRenderState(a,{vars:s,style:o}){delete s[a],delete o[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;ct(a)&&(this.childSubscription=a.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class ra{constructor(a){this.isMounted=!1,this.node=a}update(){}}function mS({top:n,left:a,right:s,bottom:o}){return{x:{min:a,max:s},y:{min:n,max:o}}}function iN({x:n,y:a}){return{top:a.min,right:n.max,bottom:a.max,left:n.min}}function sN(n,a){if(!a)return n;const s=a({x:n.left,y:n.top}),o=a({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function nf(n){return n===void 0||n===1}function Gf({scale:n,scaleX:a,scaleY:s}){return!nf(n)||!nf(a)||!nf(s)}function ka(n){return Gf(n)||pS(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function pS(n){return nv(n.x)||nv(n.y)}function nv(n){return n&&n!=="0%"}function al(n,a,s){const o=n-s,l=a*o;return s+l}function av(n,a,s,o,l){return l!==void 0&&(n=al(n,l,o)),al(n,s,o)+a}function qf(n,a=0,s=1,o,l){n.min=av(n.min,a,s,o,l),n.max=av(n.max,a,s,o,l)}function gS(n,{x:a,y:s}){qf(n.x,a.translate,a.scale,a.originPoint),qf(n.y,s.translate,s.scale,s.originPoint)}const iv=.999999999999,sv=1.0000000000001;function oN(n,a,s,o=!1){const l=s.length;if(!l)return;a.x=a.y=1;let u,d;for(let h=0;hiv&&(a.x=1),a.yiv&&(a.y=1)}function rn(n,a){n.min+=a,n.max+=a}function ov(n,a,s,o,l=.5){const u=ze(n.min,n.max,l);qf(n,a,s,u,o)}function rv(n,a){return typeof n=="string"?parseFloat(n)/100*(a.max-a.min):n}function Vr(n,a,s){const o=s??n;ov(n.x,rv(a.x,o.x),a.scaleX,a.scale,a.originX),ov(n.y,rv(a.y,o.y),a.scaleY,a.scale,a.originY)}function yS(n,a){return mS(sN(n.getBoundingClientRect(),a))}function rN(n,a,s){const o=yS(n,s),{scroll:l}=a;return l&&(rn(o.x,l.offset.x),rn(o.y,l.offset.y)),o}const lN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cN=Oi.length;function uN(n,a,s){let o="",l=!0;for(let u=0;u{if(!a.target)return n;if(typeof n=="string")if($.test(n))n=parseFloat(n);else return n;const s=lv(n,a.target.x),o=lv(n,a.target.y);return`${s}% ${o}%`}},fN={correct:(n,{treeScale:a,projectionDelta:s})=>{const o=n,l=Jt.parse(n);if(l.length>5)return o;const u=Jt.createTransformer(n),d=typeof l[0]!="number"?1:0,h=s.x.scale*a.x,m=s.y.scale*a.y;l[0+d]/=h,l[1+d]/=m;const g=ze(h,m,.5);return typeof l[2+d]=="number"&&(l[2+d]/=g),typeof l[3+d]=="number"&&(l[3+d]/=g),u(l)}},Kf={borderRadius:{...Ns,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ns,borderTopRightRadius:Ns,borderBottomLeftRadius:Ns,borderBottomRightRadius:Ns,boxShadow:fN};function bS(n,{layout:a,layoutId:s}){return Li.has(n)||n.startsWith("origin")||(a||s!==void 0)&&(!!Kf[n]||n==="opacity")}function Ld(n,a,s){const o=n.style,l=a?.style,u={};if(!o)return u;for(const d in o)(ct(o[d])||l&&ct(l[d])||bS(d,n)||s?.getValue(d)?.liveStyle!==void 0)&&(u[d]=o[d]);return u}function dN(n){return window.getComputedStyle(n)}class hN extends hS{constructor(){super(...arguments),this.type="html",this.renderInstance=vS}readValueFromInstance(a,s){if(Li.has(s))return this.projection?.isProjecting?jf(s):O2(a,s);{const o=dN(a),l=(E0(s)?o.getPropertyValue(s):o[s])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(a,{transformPagePoint:s}){return yS(a,s)}build(a,s,o){Od(a,s,o.transformTemplate)}scrapeMotionValuesFromProps(a,s,o){return Ld(a,s,o)}}const mN={offset:"stroke-dashoffset",array:"stroke-dasharray"},pN={offset:"strokeDashoffset",array:"strokeDasharray"};function gN(n,a,s=1,o=0,l=!0){n.pathLength=1;const u=l?mN:pN;n[u.offset]=`${-o}`,n[u.array]=`${a} ${s}`}const yN=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function SS(n,{attrX:a,attrY:s,attrScale:o,pathLength:l,pathSpacing:u=1,pathOffset:d=0,...h},m,g,b){if(Od(n,h,g),m){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:v,style:x}=n;v.transform&&(x.transform=v.transform,delete v.transform),(x.transform||v.transformOrigin)&&(x.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),x.transform&&(x.transformBox=b?.transformBox??"fill-box",delete v.transformBox);for(const D of yN)v[D]!==void 0&&(x[D]=v[D],delete v[D]);a!==void 0&&(v.x=a),s!==void 0&&(v.y=s),o!==void 0&&(v.scale=o),l!==void 0&&gN(v,l,u,d,!1)}const xS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),TS=n=>typeof n=="string"&&n.toLowerCase()==="svg";function vN(n,a,s,o){vS(n,a,void 0,o);for(const l in a.attrs)n.setAttribute(xS.has(l)?l:Ad(l),a.attrs[l])}function wS(n,a,s){const o=Ld(n,a,s);for(const l in n)if(ct(n[l])||ct(a[l])){const u=Oi.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;o[u]=n[l]}return o}class bN extends hS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$e}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(Li.has(s)){const o=nS(s);return o&&o.default||0}return s=xS.has(s)?s:Ad(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,o){return wS(a,s,o)}build(a,s,o){SS(a,s,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(a,s,o,l){vN(a,s,o,l)}mount(a){this.isSVGTag=TS(a.tagName),super.mount(a)}}const SN=jd.length;function CS(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?CS(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const a={};for(let s=0;sPromise.all(a.map(({animation:s,options:o})=>Sk(n,s,o)))}function CN(n){let a=wN(n),s=cv(),o=!0,l=!1;const u=g=>(b,v)=>{const x=La(n,v,g==="exit"?n.presenceContext?.custom:void 0);if(x){const{transition:D,transitionEnd:w,...R}=x;b={...b,...R,...w}}return b};function d(g){a=g(n)}function h(g){const{props:b}=n,v=CS(n.parent)||{},x=[],D=new Set;let w={},R=1/0;for(let M=0;MR&&F,I=!1;const ee=Array.isArray(j)?j:[j];let ne=ee.reduce(u(V),{});X===!1&&(ne={});const{prevResolvedValues:le={}}=z,ye={...le,...ne},Be=Y=>{G=!0,D.has(Y)&&(I=!0,D.delete(Y)),z.needsAnimating[Y]=!0;const se=n.getValue(Y);se&&(se.liveStyle=!1)};for(const Y in ye){const se=ne[Y],fe=le[Y];if(w.hasOwnProperty(Y))continue;let de=!1;Vf(se)&&Vf(fe)?de=!DS(se,fe):de=se!==fe,de?se!=null?Be(Y):D.add(Y):se!==void 0&&D.has(Y)?Be(Y):z.protectedKeys[Y]=!0}z.prevProp=j,z.prevResolvedValues=ne,z.isActive&&(w={...w,...ne}),(o||l)&&n.blockInitialAnimation&&(G=!1);const U=ie&&Q;G&&(!U||I)&&x.push(...ee.map(Y=>{const se={type:V};if(typeof Y=="string"&&(o||l)&&!U&&n.manuallyAnimateOnMount&&n.parent){const{parent:fe}=n,de=La(fe,Y);if(fe.enteringChildren&&de){const{delayChildren:ve}=de.transition||{};se.delay=Y0(fe.enteringChildren,n,ve)}}return{animation:Y,options:se}}))}if(D.size){const M={};if(typeof b.initial!="boolean"){const V=La(n,Array.isArray(b.initial)?b.initial[0]:b.initial);V&&V.transition&&(M.transition=V.transition)}D.forEach(V=>{const z=n.getBaseTarget(V),j=n.getValue(V);j&&(j.liveStyle=!0),M[V]=z??null}),x.push({animation:M})}let L=!!x.length;return o&&(b.initial===!1||b.initial===b.animate)&&!n.manuallyAnimateOnMount&&(L=!1),o=!1,l=!1,L?a(x):Promise.resolve()}function m(g,b){if(s[g].isActive===b)return Promise.resolve();n.variantChildren?.forEach(x=>x.animationState?.setActive(g,b)),s[g].isActive=b;const v=h(g);for(const x in s)s[x].protectedKeys={};return v}return{animateChanges:h,setActive:m,setAnimateFunction:d,getState:()=>s,reset:()=>{s=cv(),l=!0}}}function DN(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!DS(a,n):!1}function Ma(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function cv(){return{animate:Ma(!0),whileInView:Ma(),whileHover:Ma(),whileTap:Ma(),whileDrag:Ma(),whileFocus:Ma(),exit:Ma()}}function Yf(n,a){n.min=a.min,n.max=a.max}function $t(n,a){Yf(n.x,a.x),Yf(n.y,a.y)}function uv(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}const AS=1e-4,AN=1-AS,EN=1+AS,ES=.01,MN=0-ES,kN=0+ES;function ht(n){return n.max-n.min}function NN(n,a,s){return Math.abs(n-a)<=s}function fv(n,a,s,o=.5){n.origin=o,n.originPoint=ze(a.min,a.max,n.origin),n.scale=ht(s)/ht(a),n.translate=ze(s.min,s.max,n.origin)-n.originPoint,(n.scale>=AN&&n.scale<=EN||isNaN(n.scale))&&(n.scale=1),(n.translate>=MN&&n.translate<=kN||isNaN(n.translate))&&(n.translate=0)}function Vs(n,a,s,o){fv(n.x,a.x,s.x,o?o.originX:void 0),fv(n.y,a.y,s.y,o?o.originY:void 0)}function dv(n,a,s,o=0){const l=o?ze(s.min,s.max,o):s.min;n.min=l+a.min,n.max=n.min+ht(a)}function RN(n,a,s,o){dv(n.x,a.x,s.x,o?.x),dv(n.y,a.y,s.y,o?.y)}function hv(n,a,s,o=0){const l=o?ze(s.min,s.max,o):s.min;n.min=a.min-l,n.max=n.min+ht(a)}function il(n,a,s,o){hv(n.x,a.x,s.x,o?.x),hv(n.y,a.y,s.y,o?.y)}function mv(n,a,s,o,l){return n-=a,n=al(n,1/s,o),l!==void 0&&(n=al(n,1/l,o)),n}function jN(n,a=0,s=1,o=.5,l,u=n,d=n){if(cn.test(a)&&(a=parseFloat(a),a=ze(d.min,d.max,a/100)-d.min),typeof a!="number")return;let h=ze(u.min,u.max,o);n===u&&(h-=a),n.min=mv(n.min,a,s,h,l),n.max=mv(n.max,a,s,h,l)}function pv(n,a,[s,o,l],u,d){jN(n,a[s],a[o],a[l],a.scale,u,d)}const ON=["x","scaleX","originX"],LN=["y","scaleY","originY"];function gv(n,a,s,o){pv(n.x,a,ON,s?s.x:void 0,o?o.x:void 0),pv(n.y,a,LN,s?s.y:void 0,o?o.y:void 0)}function yv(n){return n.translate===0&&n.scale===1}function MS(n){return yv(n.x)&&yv(n.y)}function vv(n,a){return n.min===a.min&&n.max===a.max}function zN(n,a){return vv(n.x,a.x)&&vv(n.y,a.y)}function bv(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function kS(n,a){return bv(n.x,a.x)&&bv(n.y,a.y)}function Sv(n){return ht(n.x)/ht(n.y)}function xv(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}function on(n){return[n("x"),n("y")]}function BN(n,a,s){let o="";const l=n.x.translate/a.x,u=n.y.translate/a.y,d=s?.z||0;if((l||u||d)&&(o=`translate3d(${l}px, ${u}px, ${d}px) `),(a.x!==1||a.y!==1)&&(o+=`scale(${1/a.x}, ${1/a.y}) `),s){const{transformPerspective:g,rotate:b,rotateX:v,rotateY:x,skewX:D,skewY:w}=s;g&&(o=`perspective(${g}px) ${o}`),b&&(o+=`rotate(${b}deg) `),v&&(o+=`rotateX(${v}deg) `),x&&(o+=`rotateY(${x}deg) `),D&&(o+=`skewX(${D}deg) `),w&&(o+=`skewY(${w}deg) `)}const h=n.x.scale*a.x,m=n.y.scale*a.y;return(h!==1||m!==1)&&(o+=`scale(${h}, ${m})`),o||"none"}const NS=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],UN=NS.length,Tv=n=>typeof n=="string"?parseFloat(n):n,wv=n=>typeof n=="number"||$.test(n);function VN(n,a,s,o,l,u){l?(n.opacity=ze(0,s.opacity??1,PN(o)),n.opacityExit=ze(a.opacity??1,0,_N(o))):u&&(n.opacity=ze(a.opacity??1,s.opacity??1,o));for(let d=0;doa?1:s(qs(n,a,o))}function HN(n,a,s){const o=ct(n)?n:Ni(n);return o.start(Cd("",o,a,s)),o.animation}function Xs(n,a,s,o={passive:!0}){return n.addEventListener(a,s,o),()=>n.removeEventListener(a,s)}const FN=(n,a)=>n.depth-a.depth;class IN{constructor(){this.children=[],this.isDirty=!1}add(a){fd(this.children,a),this.isDirty=!0}remove(a){$r(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(FN),this.isDirty=!1,this.children.forEach(a)}}function GN(n,a){const s=dt.now(),o=({timestamp:l})=>{const u=l-s;u>=a&&(oa(o),n(u-a))};return Ne.setup(o,!0),()=>oa(o)}function Pr(n){return ct(n)?n.get():n}class qN{constructor(){this.members=[]}add(a){fd(this.members,a);for(let s=this.members.length-1;s>=0;s--){const o=this.members[s];if(o===a||o===this.lead||o===this.prevLead)continue;const l=o.instance;(!l||l.isConnected===!1)&&!o.snapshot&&($r(this.members,o),o.unmount())}a.scheduleRender()}remove(a){if($r(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(a){for(let s=this.members.indexOf(a)-1;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(a,s){const o=this.lead;if(a!==o&&(this.prevLead=o,this.lead=a,a.show(),o)){o.updateSnapshot(),a.scheduleRender();const{layoutDependency:l}=o.options,{layoutDependency:u}=a.options;(l===void 0||l!==u)&&(a.resumeFrom=o,s&&(o.preserveOpacity=!0),o.snapshot&&(a.snapshot=o.snapshot,a.snapshot.latestValues=o.animationValues||o.latestValues),a.root?.isUpdating&&(a.isLayoutDirty=!0)),a.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(a=>{a.options.onExitComplete?.(),a.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(a=>a.instance&&a.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const _r={hasAnimatedSinceResize:!0,hasEverUpdated:!1},af=["","X","Y","Z"],KN=1e3;let YN=0;function sf(n,a,s,o){const{latestValues:l}=a;l[n]&&(s[n]=l[n],a.setStaticValue(n,0),o&&(o[n]=0))}function jS(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const s=W0(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:l,layoutId:u}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",Ne,!(l||u))}const{parent:o}=n;o&&!o.hasCheckedOptimisedAppear&&jS(o)}function OS({attachResizeListener:n,defaultParent:a,measureScroll:s,checkIsScrollRoot:o,resetTransform:l}){return class{constructor(d={},h=a?.()){this.id=YN++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ZN),this.nodes.forEach(nR),this.nodes.forEach(aR),this.nodes.forEach($N)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;mthis.root.updateBlockedByResize=!1;Ne.read(()=>{v=window.innerWidth}),n(d,()=>{const D=window.innerWidth;D!==v&&(v=D,this.root.updateBlockedByResize=!0,b&&b(),b=GN(x,250),_r.hasAnimatedSinceResize&&(_r.hasAnimatedSinceResize=!1,this.nodes.forEach(Ev)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||m)&&this.addEventListener("didUpdate",({delta:b,hasLayoutChanged:v,hasRelativeLayoutChanged:x,layout:D})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||g.getDefaultTransition()||lR,{onLayoutAnimationStart:R,onLayoutAnimationComplete:L}=g.getProps(),M=!this.targetLayout||!kS(this.targetLayout,D),V=!v&&x;if(this.options.layoutRoot||this.resumeFrom||V||v&&(M||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const z={...wd(w,"layout"),onPlay:R,onComplete:L};(g.shouldReduceMotion||this.options.layoutRoot)&&(z.delay=0,z.type=!1),this.startAnimation(z),this.setAnimationOrigin(b,V)}else v||Ev(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=D})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),oa(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(iR),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&jS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let b=0;b{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ht(this.snapshot.measuredBox.x)&&!ht(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m{const F=j/1e3;Mv(v.x,d.x,F),Mv(v.y,d.y,F),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(il(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),oR(this.relativeTarget,this.relativeTargetOrigin,x,F),z&&zN(this.relativeTarget,z)&&(this.isProjectionDirty=!1),z||(z=$e()),$t(z,this.relativeTarget)),R&&(this.animationValues=b,VN(b,g,this.latestValues,F,V,M)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(oa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ne.update(()=>{_r.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ni(0)),this.motionValue.jump(0,!1),this.currentAnimation=HN(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),d.onUpdate&&d.onUpdate(h)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(KN),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:m,layout:g,latestValues:b}=d;if(!(!h||!m||!g)){if(this!==d&&this.layout&&g&&LS(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||$e();const v=ht(this.layout.layoutBox.x);m.x.min=d.target.x.min,m.x.max=m.x.min+v;const x=ht(this.layout.layoutBox.y);m.y.min=d.target.y.min,m.y.max=m.y.min+x}$t(h,m),Vr(h,b),Vs(this.projectionDeltaWithTransform,this.layoutCorrected,h,b)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new qN),this.sharedNodes.get(d).add(h);const g=h.options.initialPromotionConfig;h.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:m}=d;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const g={};m.z&&sf("z",d,g,this.animationValues);for(let b=0;bd.currentAnimation?.stop()),this.root.nodes.forEach(Dv),this.root.sharedNodes.clear()}}}function XN(n){n.updateLayout()}function QN(n){const a=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&a&&n.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=n.layout,{animationType:l}=n.options,u=a.source!==n.layout.source;if(l==="size")on(b=>{const v=u?a.measuredBox[b]:a.layoutBox[b],x=ht(v);v.min=s[b].min,v.max=v.min+x});else if(l==="x"||l==="y"){const b=l==="x"?"y":"x";Yf(u?a.measuredBox[b]:a.layoutBox[b],s[b])}else LS(l,a.layoutBox,s)&&on(b=>{const v=u?a.measuredBox[b]:a.layoutBox[b],x=ht(s[b]);v.max=v.min+x,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[b].max=n.relativeTarget[b].min+x)});const d=Ai();Vs(d,s,a.layoutBox);const h=Ai();u?Vs(h,n.applyTransform(o,!0),a.measuredBox):Vs(h,s,a.layoutBox);const m=!MS(d);let g=!1;if(!n.resumeFrom){const b=n.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:v,layout:x}=b;if(v&&x){const D=n.options.layoutAnchor||void 0,w=$e();il(w,a.layoutBox,v.layoutBox,D);const R=$e();il(R,s,x.layoutBox,D),kS(w,R)||(g=!0),b.options.layoutRoot&&(n.relativeTarget=R,n.relativeTargetOrigin=w,n.relativeParent=b)}}}n.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:h,layoutDelta:d,hasLayoutChanged:m,hasRelativeLayoutChanged:g})}else if(n.isLead()){const{onExitComplete:s}=n.options;s&&s()}n.options.transition=void 0}function ZN(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function $N(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function WN(n){n.clearSnapshot()}function Dv(n){n.clearMeasurements()}function JN(n){n.isLayoutDirty=!0,n.updateLayout()}function Av(n){n.isLayoutDirty=!1}function eR(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function tR(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function Ev(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function nR(n){n.resolveTargetDelta()}function aR(n){n.calcProjection()}function iR(n){n.resetSkewAndRotation()}function sR(n){n.removeLeadSnapshot()}function Mv(n,a,s){n.translate=ze(a.translate,0,s),n.scale=ze(a.scale,1,s),n.origin=a.origin,n.originPoint=a.originPoint}function kv(n,a,s,o){n.min=ze(a.min,s.min,o),n.max=ze(a.max,s.max,o)}function oR(n,a,s,o){kv(n.x,a.x,s.x,o),kv(n.y,a.y,s.y,o)}function rR(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const lR={duration:.45,ease:[.4,0,.1,1]},Nv=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Rv=Nv("applewebkit/")&&!Nv("chrome/")?Math.round:qt;function jv(n){n.min=Rv(n.min),n.max=Rv(n.max)}function cR(n){jv(n.x),jv(n.y)}function LS(n,a,s){return n==="position"||n==="preserve-aspect"&&!NN(Sv(a),Sv(s),.2)}function uR(n){return n!==n.root&&n.scroll?.wasRoot}const fR=OS({attachResizeListener:(n,a)=>Xs(n,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),dR=n=>!n.isLayoutDirty&&n.willUpdate(!1);function Ov(){const n=new Set,a=new WeakMap,s=()=>n.forEach(dR);return{add:o=>{n.add(o),a.set(o,o.addEventListener("willUpdate",s))},remove:o=>{n.delete(o);const l=a.get(o);l&&(l(),a.delete(o)),s()},dirty:s}}const of={current:void 0},zS=OS({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!of.current){const n=new fR({});n.mount(window),n.setOptions({layoutScroll:!0}),of.current=n}return of.current},resetTransform:(n,a)=>{n.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),zd=T.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function Lv(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function hR(...n){return a=>{let s=!1;const o=n.map(l=>{const u=Lv(l,a);return!s&&typeof u=="function"&&(s=!0),u});if(s)return()=>{for(let l=0;l{const{width:x,height:D,top:w,left:R,right:L,bottom:M}=m.current;if(a||u===!1||!h.current||!x||!D)return;const V=s==="left"?`left: ${R}`:`right: ${L}`,z=o==="bottom"?`bottom: ${M}`:`top: ${w}`;h.current.dataset.motionPopId=d;const j=document.createElement("style");g&&(j.nonce=g);const F=l??document.head;return F.appendChild(j),j.sheet&&j.sheet.insertRule(` + [data-motion-pop-id="${d}"] { + position: absolute !important; + width: ${x}px !important; + height: ${D}px !important; + ${V}px !important; + ${z}px !important; + } + `),()=>{h.current?.removeAttribute("data-motion-pop-id"),F.contains(j)&&F.removeChild(j)}},[a]),y.jsx(pR,{isPresent:a,childRef:h,sizeRef:m,pop:u,children:u===!1?n:T.cloneElement(n,{ref:v})})}const yR=({children:n,initial:a,isPresent:s,onExitComplete:o,custom:l,presenceAffectsLayout:u,mode:d,anchorX:h,anchorY:m,root:g})=>{const b=cd(vR),v=T.useId();let x=!0,D=T.useMemo(()=>(x=!1,{id:v,initial:a,isPresent:s,custom:l,onExitComplete:w=>{b.set(w,!0);for(const R of b.values())if(!R)return;o&&o()},register:w=>(b.set(w,!1),()=>b.delete(w))}),[s,b,o]);return u&&x&&(D={...D}),T.useMemo(()=>{b.forEach((w,R)=>b.set(R,!1))},[s]),T.useEffect(()=>{!s&&!b.size&&o&&o()},[s]),n=y.jsx(gR,{pop:d==="popLayout",isPresent:s,anchorX:h,anchorY:m,root:g,children:n}),y.jsx(dl.Provider,{value:D,children:n})};function vR(){return new Map}function BS(n=!0){const a=T.useContext(dl);if(a===null)return[!0,null];const{isPresent:s,onExitComplete:o,register:l}=a,u=T.useId();T.useEffect(()=>{if(n)return l(u)},[n]);const d=T.useCallback(()=>n&&o&&o(u),[u,o,n]);return!s&&o?[!1,d]:[!0]}const Er=n=>n.key||"";function zv(n){const a=[];return T.Children.forEach(n,s=>{T.isValidElement(s)&&a.push(s)}),a}const rf=({children:n,custom:a,initial:s=!0,onExitComplete:o,presenceAffectsLayout:l=!0,mode:u="sync",propagate:d=!1,anchorX:h="left",anchorY:m="top",root:g})=>{const[b,v]=BS(d),x=T.useMemo(()=>zv(n),[n]),D=d&&!b?[]:x.map(Er),w=T.useRef(!0),R=T.useRef(x),L=cd(()=>new Map),M=T.useRef(new Set),[V,z]=T.useState(x),[j,F]=T.useState(x);ud(()=>{w.current=!1,R.current=x;for(let Q=0;Q{const G=Er(Q),I=d&&!b?!1:x===j||D.includes(G),ee=()=>{if(M.current.has(G))return;if(L.has(G))M.current.add(G),L.set(G,!0);else return;let ne=!0;L.forEach(le=>{le||(ne=!1)}),ne&&(ie?.(),F(R.current),d&&v?.(),o&&o())};return y.jsx(yR,{isPresent:I,initial:!w.current||s?void 0:!1,custom:a,presenceAffectsLayout:l,mode:u,root:g,onExitComplete:I?void 0:ee,anchorX:h,anchorY:m,children:Q},G)})})},bR=T.createContext(null);function SR(){const n=T.useRef(!1);return ud(()=>(n.current=!0,()=>{n.current=!1}),[]),n}function xR(){const n=SR(),[a,s]=T.useState(0),o=T.useCallback(()=>{n.current&&s(a+1)},[a]);return[T.useCallback(()=>Ne.postRender(o),[o]),a]}const US=n=>n===!0,TR=n=>US(n===!0)||n==="id",wR=({children:n,id:a,inherit:s=!0})=>{const o=T.useContext(Gs),l=T.useContext(bR),[u,d]=xR(),h=T.useRef(null),m=o.id||l;h.current===null&&(TR(s)&&m&&(a=a?m+"-"+a:m),h.current={id:a,group:US(s)&&o.group||Ov()});const g=T.useMemo(()=>({...h.current,forceRender:u}),[d]);return y.jsx(Gs.Provider,{value:g,children:n})},VS=T.createContext({strict:!1}),Bv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Uv=!1;function CR(){if(Uv)return;const n={};for(const a in Bv)n[a]={isEnabled:s=>Bv[a].some(o=>!!s[o])};dS(n),Uv=!0}function PS(){return CR(),nN()}function DR(n){const a=PS();for(const s in n)a[s]={...a[s],...n[s]};dS(a)}const AR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function sl(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||AR.has(n)}let _S=n=>!sl(n);function ER(n){typeof n=="function"&&(_S=a=>a.startsWith("on")?!sl(a):n(a))}try{ER(require("@emotion/is-prop-valid").default)}catch{}function MR(n,a,s){const o={};for(const l in n)l==="values"&&typeof n.values=="object"||ct(n[l])||(_S(l)||s===!0&&sl(l)||!a&&!sl(l)||n.draggable&&l.startsWith("onDrag"))&&(o[l]=n[l]);return o}const gl=T.createContext({});function kR(n,a){if(pl(n)){const{initial:s,animate:o}=n;return{initial:s===!1||Ys(s)?s:void 0,animate:Ys(o)?o:void 0}}return n.inherit!==!1?a:{}}function NR(n){const{initial:a,animate:s}=kR(n,T.useContext(gl));return T.useMemo(()=>({initial:a,animate:s}),[Vv(a),Vv(s)])}function Vv(n){return Array.isArray(n)?n.join(" "):n}const Bd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function HS(n,a,s){for(const o in a)!ct(a[o])&&!bS(o,s)&&(n[o]=a[o])}function RR({transformTemplate:n},a){return T.useMemo(()=>{const s=Bd();return Od(s,a,n),Object.assign({},s.vars,s.style)},[a])}function jR(n,a){const s=n.style||{},o={};return HS(o,s,n),Object.assign(o,RR(n,a)),o}function OR(n,a){const s={},o=jR(n,a);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=o,s}const FS=()=>({...Bd(),attrs:{}});function LR(n,a,s,o){const l=T.useMemo(()=>{const u=FS();return SS(u,a,TS(o),n.transformTemplate,n.style),{...u.attrs,style:{...u.style}}},[a]);if(n.style){const u={};HS(u,n.style,n),l.style={...u,...l.style}}return l}const zR=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ud(n){return typeof n!="string"||n.includes("-")?!1:!!(zR.indexOf(n)>-1||/[A-Z]/u.test(n))}function BR(n,a,s,{latestValues:o},l,u=!1,d){const m=(d??Ud(n)?LR:OR)(a,o,l,n),g=MR(a,typeof n=="string",u),b=n!==T.Fragment?{...g,...m,ref:s}:{},{children:v}=a,x=T.useMemo(()=>ct(v)?v.get():v,[v]);return T.createElement(n,{...b,children:x})}function UR({scrapeMotionValuesFromProps:n,createRenderState:a},s,o,l){return{latestValues:VR(s,o,l,n),renderState:a()}}function VR(n,a,s,o){const l={},u=o(n,{});for(const x in u)l[x]=Pr(u[x]);let{initial:d,animate:h}=n;const m=pl(n),g=uS(n);a&&g&&!m&&n.inherit!==!1&&(d===void 0&&(d=a.initial),h===void 0&&(h=a.animate));let b=s?s.initial===!1:!1;b=b||d===!1;const v=b?h:d;if(v&&typeof v!="boolean"&&!ml(v)){const x=Array.isArray(v)?v:[v];for(let D=0;D(a,s)=>{const o=T.useContext(gl),l=T.useContext(dl),u=()=>UR(n,a,o,l);return s?u():cd(u)},PR=IS({scrapeMotionValuesFromProps:Ld,createRenderState:Bd}),_R=IS({scrapeMotionValuesFromProps:wS,createRenderState:FS}),HR=Symbol.for("motionComponentSymbol");function FR(n,a,s){const o=T.useRef(s);T.useInsertionEffect(()=>{o.current=s});const l=T.useRef(null);return T.useCallback(u=>{u&&n.onMount?.(u);const d=o.current;if(typeof d=="function")if(u){const h=d(u);typeof h=="function"&&(l.current=h)}else l.current?(l.current(),l.current=null):d(u);else d&&(d.current=u);a&&(u?a.mount(u):a.unmount())},[a])}const GS=T.createContext({});function wi(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function IR(n,a,s,o,l,u){const{visualElement:d}=T.useContext(gl),h=T.useContext(VS),m=T.useContext(dl),g=T.useContext(zd),b=g.reducedMotion,v=g.skipAnimations,x=T.useRef(null),D=T.useRef(!1);o=o||h.renderer,!x.current&&o&&(x.current=o(n,{visualState:a,parent:d,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:b,skipAnimations:v,isSVG:u}),D.current&&x.current&&(x.current.manuallyAnimateOnMount=!0));const w=x.current,R=T.useContext(GS);w&&!w.projection&&l&&(w.type==="html"||w.type==="svg")&&GR(x.current,s,l,R);const L=T.useRef(!1);T.useInsertionEffect(()=>{w&&L.current&&w.update(s,m)});const M=s[$0],V=T.useRef(!!M&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(M)&&window.MotionHasOptimisedAnimation?.(M));return ud(()=>{D.current=!0,w&&(L.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),V.current&&w.animationState&&w.animationState.animateChanges())}),T.useEffect(()=>{w&&(!V.current&&w.animationState&&w.animationState.animateChanges(),V.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(M)}),V.current=!1),w.enteringChildren=void 0)}),w}function GR(n,a,s,o){const{layoutId:l,layout:u,drag:d,dragConstraints:h,layoutScroll:m,layoutRoot:g,layoutAnchor:b,layoutCrossfade:v}=a;n.projection=new s(n.latestValues,a["data-framer-portal-id"]?void 0:qS(n.parent)),n.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!d||h&&wi(h),visualElement:n,animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,crossfade:v,layoutScroll:m,layoutRoot:g,layoutAnchor:b})}function qS(n){if(n)return n.options.allowProjection!==!1?n.projection:qS(n.parent)}function lf(n,{forwardMotionProps:a=!1,type:s}={},o,l){o&&DR(o);const u=s?s==="svg":Ud(n),d=u?_R:PR;function h(g,b){let v;const x={...T.useContext(zd),...g,layoutId:qR(g)},{isStatic:D}=x,w=NR(g),R=d(g,D);if(!D&&typeof window<"u"){KR();const L=YR(x);v=L.MeasureLayout,w.visualElement=IR(n,R,x,l,L.ProjectionNode,u)}return y.jsxs(gl.Provider,{value:w,children:[v&&w.visualElement?y.jsx(v,{visualElement:w.visualElement,...x}):null,BR(n,g,FR(R,w.visualElement,b),R,D,a,u)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const m=T.forwardRef(h);return m[HR]=n,m}function qR({layoutId:n}){const a=T.useContext(Gs).id;return a&&n!==void 0?a+"-"+n:n}function KR(n,a){T.useContext(VS).strict}function YR(n){const a=PS(),{drag:s,layout:o}=a;if(!s&&!o)return{};const l={...s,...o};return{MeasureLayout:s?.isEnabled(n)||o?.isEnabled(n)?l.MeasureLayout:void 0,ProjectionNode:l.ProjectionNode}}function XR(n,a){if(typeof Proxy>"u")return lf;const s=new Map,o=(u,d)=>lf(u,d,n,a),l=(u,d)=>o(u,d);return new Proxy(l,{get:(u,d)=>d==="create"?o:(s.has(d)||s.set(d,lf(d,void 0,n,a)),s.get(d))})}const QR=(n,a)=>a.isSVG??Ud(n)?new bN(a):new hN(a,{allowProjection:n!==T.Fragment});class ZR extends ra{constructor(a){super(a),a.animationState||(a.animationState=CN(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();ml(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:s}=this.node.prevProps||{};a!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let $R=0;class WR extends ra{constructor(){super(...arguments),this.id=$R++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:s}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===o)return;if(a&&o===!1){if(this.isExitComplete){const{initial:u,custom:d}=this.node.getProps();if(typeof u=="string"){const h=La(this.node,u,d);if(h){const{transition:m,transitionEnd:g,...b}=h;for(const v in b)this.node.getValue(v)?.jump(b[v])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const l=this.node.animationState.setActive("exit",!a);s&&!a&&l.then(()=>{this.isExitComplete=!0,s(this.id)})}mount(){const{register:a,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const JR={animation:{Feature:ZR},exit:{Feature:WR}};function Js(n){return{point:{x:n.pageX,y:n.pageY}}}const ej=n=>a=>kd(a)&&n(a,Js(a));function Ps(n,a,s,o){return Xs(n,a,ej(s),o)}const KS=({current:n})=>n?n.ownerDocument.defaultView:null,Pv=(n,a)=>Math.abs(n-a);function tj(n,a){const s=Pv(n.x,a.x),o=Pv(n.y,a.y);return Math.sqrt(s**2+o**2)}const _v=new Set(["auto","scroll"]);class YS{constructor(a,s,{transformPagePoint:o,contextWindow:l=window,dragSnapToOrigin:u=!1,distanceThreshold:d=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=D=>{this.handleScroll(D.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Mr(this.lastRawMoveEventInfo,this.transformPagePoint));const D=cf(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,R=tj(D.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!R)return;const{point:L}=D,{timestamp:M}=rt;this.history.push({...L,timestamp:M});const{onStart:V,onMove:z}=this.handlers;w||(V&&V(this.lastMoveEvent,D),this.startEvent=this.lastMoveEvent),z&&z(this.lastMoveEvent,D)},this.handlePointerMove=(D,w)=>{this.lastMoveEvent=D,this.lastRawMoveEventInfo=w,this.lastMoveEventInfo=Mr(w,this.transformPagePoint),Ne.update(this.updatePoint,!0)},this.handlePointerUp=(D,w)=>{this.end();const{onEnd:R,onSessionEnd:L,resumeAnimation:M}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&M&&M(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const V=cf(D.type==="pointercancel"?this.lastMoveEventInfo:Mr(w,this.transformPagePoint),this.history);this.startEvent&&R&&R(D,V),L&&L(D,V)},!kd(a))return;this.dragSnapToOrigin=u,this.handlers=s,this.transformPagePoint=o,this.distanceThreshold=d,this.contextWindow=l||window;const m=Js(a),g=Mr(m,this.transformPagePoint),{point:b}=g,{timestamp:v}=rt;this.history=[{...b,timestamp:v}];const{onSessionStart:x}=s;x&&x(a,cf(g,this.history)),this.removeListeners=Zs(Ps(this.contextWindow,"pointermove",this.handlePointerMove),Ps(this.contextWindow,"pointerup",this.handlePointerUp),Ps(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(a){let s=a.parentElement;for(;s;){const o=getComputedStyle(s);(_v.has(o.overflowX)||_v.has(o.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(a){const s=this.scrollPositions.get(a);if(!s)return;const o=a===window,l=o?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},u={x:l.x-s.x,y:l.y-s.y};u.x===0&&u.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=u.x,this.lastMoveEventInfo.point.y+=u.y):this.history.length>0&&(this.history[0].x-=u.x,this.history[0].y-=u.y),this.scrollPositions.set(a,l),Ne.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),oa(this.updatePoint)}}function Mr(n,a){return a?{point:a(n.point)}:n}function Hv(n,a){return{x:n.x-a.x,y:n.y-a.y}}function cf({point:n},a){return{point:n,delta:Hv(n,XS(a)),offset:Hv(n,nj(a)),velocity:aj(a,.1)}}function nj(n){return n[0]}function XS(n){return n[n.length-1]}function aj(n,a){if(n.length<2)return{x:0,y:0};let s=n.length-1,o=null;const l=XS(n);for(;s>=0&&(o=n[s],!(l.timestamp-o.timestamp>Ot(a)));)s--;if(!o)return{x:0,y:0};o===n[0]&&n.length>2&&l.timestamp-o.timestamp>Ot(a)*2&&(o=n[1]);const u=Gt(l.timestamp-o.timestamp);if(u===0)return{x:0,y:0};const d={x:(l.x-o.x)/u,y:(l.y-o.y)/u};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function ij(n,{min:a,max:s},o){return a!==void 0&&ns&&(n=o?ze(s,n,o.max):Math.min(n,s)),n}function Fv(n,a,s){return{min:a!==void 0?n.min+a:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function sj(n,{top:a,left:s,bottom:o,right:l}){return{x:Fv(n.x,s,l),y:Fv(n.y,a,o)}}function Iv(n,a){let s=a.min-n.min,o=a.max-n.max;return a.max-a.mino?s=qs(a.min,a.max-o,n.min):o>l&&(s=qs(n.min,n.max-l,a.min)),un(0,1,s)}function lj(n,a){const s={};return a.min!==void 0&&(s.min=a.min-n.min),a.max!==void 0&&(s.max=a.max-n.min),s}const Xf=.35;function cj(n=Xf){return n===!1?n=0:n===!0&&(n=Xf),{x:Gv(n,"left","right"),y:Gv(n,"top","bottom")}}function Gv(n,a,s){return{min:qv(n,a),max:qv(n,s)}}function qv(n,a){return typeof n=="number"?n:n[a]||0}const uj=new WeakMap;class fj{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$e(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:s=!1,distanceThreshold:o}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const u=v=>{s&&this.snapToCursor(Js(v).point),this.stopAnimation()},d=(v,x)=>{const{drag:D,dragPropagation:w,onDragStart:R}=this.getProps();if(D&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=jk(D),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=x,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),on(M=>{let V=this.getAxisMotionValue(M).get()||0;if(cn.test(V)){const{projection:z}=this.visualElement;if(z&&z.layout){const j=z.layout.layoutBox[M];j&&(V=ht(j)*(parseFloat(V)/100))}}this.originPoint[M]=V}),R&&Ne.update(()=>R(v,x),!1,!0),Pf(this.visualElement,"transform");const{animationState:L}=this.visualElement;L&&L.setActive("whileDrag",!0)},h=(v,x)=>{this.latestPointerEvent=v,this.latestPanInfo=x;const{dragPropagation:D,dragDirectionLock:w,onDirectionLock:R,onDrag:L}=this.getProps();if(!D&&!this.openDragLock)return;const{offset:M}=x;if(w&&this.currentDirection===null){this.currentDirection=hj(M),this.currentDirection!==null&&R&&R(this.currentDirection);return}this.updateAxis("x",x.point,M),this.updateAxis("y",x.point,M),this.visualElement.render(),L&&Ne.update(()=>L(v,x),!1,!0)},m=(v,x)=>{this.latestPointerEvent=v,this.latestPanInfo=x,this.stop(v,x),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:b}=this.getProps();this.panSession=new YS(a,{onSessionStart:u,onStart:d,onMove:h,onSessionEnd:m,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:b,distanceThreshold:o,contextWindow:KS(this.visualElement),element:this.visualElement.current})}stop(a,s){const o=a||this.latestPointerEvent,l=s||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!l||!o)return;const{velocity:d}=l;this.startAnimation(d);const{onDragEnd:h}=this.getProps();h&&Ne.postRender(()=>h(o,l))}cancel(){this.isDragging=!1;const{projection:a,animationState:s}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,s,o){const{drag:l}=this.getProps();if(!o||!kr(a,l,this.currentDirection))return;const u=this.getAxisMotionValue(a);let d=this.originPoint[a]+o[a];this.constraints&&this.constraints[a]&&(d=ij(d,this.constraints[a],this.elastic[a])),u.set(d)}resolveConstraints(){const{dragConstraints:a,dragElastic:s}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,l=this.constraints;a&&wi(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&o?this.constraints=sj(o.layoutBox,a):this.constraints=!1,this.elastic=cj(s),l!==this.constraints&&!wi(a)&&o&&this.constraints&&!this.hasMutatedConstraints&&on(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=lj(o.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!wi(a))return!1;const o=a.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const u=rN(o,l.root,this.visualElement.getTransformPagePoint());let d=oj(l.layout.layoutBox,u);if(s){const h=s(iN(d));this.hasMutatedConstraints=!!h,h&&(d=mS(h))}return d}startAnimation(a){const{drag:s,dragMomentum:o,dragElastic:l,dragTransition:u,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},g=on(b=>{if(!kr(b,s,this.currentDirection))return;let v=m&&m[b]||{};(d===!0||d===b)&&(v={min:0,max:0});const x=l?200:1e6,D=l?40:1e7,w={type:"inertia",velocity:o?a[b]:0,bounceStiffness:x,bounceDamping:D,timeConstant:750,restDelta:1,restSpeed:10,...u,...v};return this.startAxisValueAnimation(b,w)});return Promise.all(g).then(h)}startAxisValueAnimation(a,s){const o=this.getAxisMotionValue(a);return Pf(this.visualElement,a),o.start(Cd(a,o,0,s,this.visualElement,!1))}stopAnimation(){on(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){const s=`_drag${a.toUpperCase()}`,o=this.visualElement.getProps(),l=o[s];return l||this.visualElement.getValue(a,(o.initial?o.initial[a]:void 0)||0)}snapToCursor(a){on(s=>{const{drag:o}=this.getProps();if(!kr(s,o,this.currentDirection))return;const{projection:l}=this.visualElement,u=this.getAxisMotionValue(s);if(l&&l.layout){const{min:d,max:h}=l.layout.layoutBox[s],m=u.get()||0;u.set(a[s]-ze(d,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:o}=this.visualElement;if(!wi(s)||!o||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};on(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const m=h.get();l[d]=rj({min:m,max:m},this.constraints[d])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),on(d=>{if(!kr(d,a,null))return;const h=this.getAxisMotionValue(d),{min:m,max:g}=this.constraints[d];h.set(ze(m,g,l[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;uj.set(this.visualElement,this);const a=this.visualElement.current,s=Ps(a,"pointerdown",g=>{const{drag:b,dragListener:v=!0}=this.getProps(),x=g.target,D=x!==a&&Vk(x);b&&v&&!D&&this.start(g)});let o;const l=()=>{const{dragConstraints:g}=this.getProps();wi(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),o||(o=dj(a,g.current,()=>this.scalePositionWithinConstraints())))},{projection:u}=this.visualElement,d=u.addEventListener("measure",l);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),Ne.read(l);const h=Xs(window,"resize",()=>this.scalePositionWithinConstraints()),m=u.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:b})=>{this.isDragging&&b&&(on(v=>{const x=this.getAxisMotionValue(v);x&&(this.originPoint[v]+=g[v].translate,x.set(x.get()+g[v].translate))}),this.visualElement.render())}));return()=>{h(),s(),d(),m&&m(),o&&o()}}getProps(){const a=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:o=!1,dragPropagation:l=!1,dragConstraints:u=!1,dragElastic:d=Xf,dragMomentum:h=!0}=a;return{...a,drag:s,dragDirectionLock:o,dragPropagation:l,dragConstraints:u,dragElastic:d,dragMomentum:h}}}function Kv(n){let a=!0;return()=>{if(a){a=!1;return}n()}}function dj(n,a,s){const o=Wy(n,Kv(s)),l=Wy(a,Kv(s));return()=>{o(),l()}}function kr(n,a,s){return(a===!0||a===n)&&(s===null||s===n)}function hj(n,a=10){let s=null;return Math.abs(n.y)>a?s="y":Math.abs(n.x)>a&&(s="x"),s}class mj extends ra{constructor(a){super(a),this.removeGroupControls=qt,this.removeListeners=qt,this.controls=new fj(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||qt}update(){const{dragControls:a}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};a!==s&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const uf=n=>(a,s)=>{n&&Ne.update(()=>n(a,s),!1,!0)};class pj extends ra{constructor(){super(...arguments),this.removePointerDownListener=qt}onPointerDown(a){this.session=new YS(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:KS(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:o,onPanEnd:l}=this.node.getProps();return{onSessionStart:uf(a),onStart:uf(s),onMove:uf(o),onEnd:(u,d)=>{delete this.session,l&&Ne.postRender(()=>l(u,d))}}}mount(){this.removePointerDownListener=Ps(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ff=!1;class gj extends T.Component{componentDidMount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:o,layoutId:l}=this.props,{projection:u}=a;u&&(s.group&&s.group.add(u),o&&o.register&&l&&o.register(u),ff&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),_r.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:s,visualElement:o,drag:l,isPresent:u}=this.props,{projection:d}=o;return d&&(d.isPresent=u,a.layoutDependency!==s&&d.setOptions({...d.options,layoutDependency:s}),ff=!0,l||a.layoutDependency!==s||s===void 0||a.isPresent!==u?d.willUpdate():this.safeToRemove(),a.isPresent!==u&&(u?d.promote():d.relegate()||Ne.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:a,layoutAnchor:s}=this.props,{projection:o}=a;o&&(o.options.layoutAnchor=s,o.root.didUpdate(),Md.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:o}=this.props,{projection:l}=a;ff=!0,l&&(l.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(l),o&&o.deregister&&o.deregister(l))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function QS(n){const[a,s]=BS(),o=T.useContext(Gs);return y.jsx(gj,{...n,layoutGroup:o,switchLayoutGroup:T.useContext(GS),isPresent:a,safeToRemove:s})}const yj={pan:{Feature:pj},drag:{Feature:mj,ProjectionNode:zS,MeasureLayout:QS}};function Yv(n,a,s){const{props:o}=n;n.animationState&&o.whileHover&&n.animationState.setActive("whileHover",s==="Start");const l="onHover"+s,u=o[l];u&&Ne.postRender(()=>u(a,Js(a)))}class vj extends ra{mount(){const{current:a}=this.node;a&&(this.unmount=Lk(a,(s,o)=>(Yv(this.node,o,"Start"),l=>Yv(this.node,l,"End"))))}unmount(){}}class bj extends ra{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Zs(Xs(this.node.current,"focus",()=>this.onFocus()),Xs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Xv(n,a,s){const{props:o}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&o.whileTap&&n.animationState.setActive("whileTap",s==="Start");const l="onTap"+(s==="End"?"":s),u=o[l];u&&Ne.postRender(()=>u(a,Js(a)))}class Sj extends ra{mount(){const{current:a}=this.node;if(!a)return;const{globalTapTarget:s,propagate:o}=this.node.props;this.unmount=_k(a,(l,u)=>(Xv(this.node,u,"Start"),(d,{success:h})=>Xv(this.node,d,h?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:o?.tap===!1})}unmount(){}}const Qf=new WeakMap,df=new WeakMap,xj=n=>{const a=Qf.get(n.target);a&&a(n)},Tj=n=>{n.forEach(xj)};function wj({root:n,...a}){const s=n||document;df.has(s)||df.set(s,{});const o=df.get(s),l=JSON.stringify(a);return o[l]||(o[l]=new IntersectionObserver(Tj,{root:n,...a})),o[l]}function Cj(n,a,s){const o=wj(a);return Qf.set(n,s),o.observe(n),()=>{Qf.delete(n),o.unobserve(n)}}const Dj={some:0,all:1};class Aj extends ra{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:a={}}=this.node.getProps(),{root:s,margin:o,amount:l="some",once:u}=a,d={root:s?s.current:void 0,rootMargin:o,threshold:typeof l=="number"?l:Dj[l]},h=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,u&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:b,onViewportLeave:v}=this.node.getProps(),x=g?b:v;x&&x(m)};this.stopObserver=Cj(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:s}=this.node;["amount","margin","root"].some(Ej(a,s))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function Ej({viewport:n={}},{viewport:a={}}={}){return s=>n[s]!==a[s]}const Mj={inView:{Feature:Aj},tap:{Feature:Sj},focus:{Feature:bj},hover:{Feature:vj}},kj={layout:{ProjectionNode:zS,MeasureLayout:QS}},Nj={...JR,...Mj,...yj,...kj},_s=XR(Nj,QR);function Rj(n){switch(n){case"page":return .62;case"header":return .72;case"sidebar":return .78;case"card":return .82;case"dialog":return .88;default:return .68}}function jj(n){if(n==="page")return"linear-gradient(to bottom, hsl(var(--background) / 0.82), hsl(var(--background) / 0.52) 28%, hsl(var(--background) / 0.7) 100%)"}function Oj(n){const a=[];return n.blur>0&&a.push(`blur(${n.blur}px)`),n.brightness!==100&&a.push(`brightness(${n.brightness}%)`),n.contrast!==100&&a.push(`contrast(${n.contrast}%)`),n.saturate!==100&&a.push(`saturate(${n.saturate}%)`),a.join(" ")}function Lj(n){switch(n){case"cover":return"cover";case"contain":return"contain";case"center":return"auto";case"stretch":return"100% 100%";default:return"cover"}}function zj(n){switch(n){case"cover":return"cover";case"contain":return"contain";case"center":return"none";case"stretch":return"fill";default:return"cover"}}function Vd({config:n,layerId:a}){const{getAssetUrl:s}=TE(),[o,l]=T.useState(),u=T.useRef(null);if(T.useEffect(()=>{if(!n.assetId){l(void 0);return}s(n.assetId).then(l)},[n.assetId,s]),T.useEffect(()=>{if(n.type!=="video"||!u.current)return;const w=window.matchMedia("(prefers-reduced-motion: reduce)"),R=()=>{u.current&&(w.matches?u.current.pause():u.current.play().catch(()=>{}))};return R(),w.addEventListener("change",R),()=>w.removeEventListener("change",R)},[n.type]),n.type==="none")return null;const d=Oj(n.effects),{overlayColor:h,overlayOpacity:m,gradientOverlay:g}=n.effects,b=m>0,v=b?m:Rj(a),x=b?`hsl(${h} / ${v})`:`hsl(var(--background) / ${v})`,D=g||jj(a);return y.jsxs("div",{"data-background-layer":a,style:{position:"absolute",inset:0,zIndex:0,overflow:"hidden",pointerEvents:"none"},children:[n.type==="image"&&y.jsx("div",{style:{position:"absolute",inset:0,zIndex:0,backgroundImage:o?`url(${o})`:void 0,backgroundSize:Lj(n.effects.position),backgroundPosition:"center",backgroundRepeat:"no-repeat",filter:d||void 0}}),n.type==="video"&&o&&y.jsx("video",{ref:u,src:o,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{position:"absolute",inset:0,zIndex:0,width:"100%",height:"100%",objectFit:zj(n.effects.position),filter:d||void 0},onError:()=>{u.current&&u.current.pause()}}),v>0&&y.jsx("div",{style:{position:"absolute",inset:0,zIndex:1,backgroundColor:x,pointerEvents:"none"}}),D&&y.jsx("div",{style:{position:"absolute",inset:0,zIndex:2,background:D,pointerEvents:"none"}})]},a)}function Bj(){const[n,a]=T.useState(0),[s,o]=T.useState(!1),l=T.useRef(null);T.useEffect(()=>{const g=b=>{const v=b.target;if(v.scrollHeight>v.clientHeight+100){l.current=v;const x=v.scrollTop,D=v.scrollHeight-v.clientHeight,w=D>0?x/D*100:0;a(w),o(x>300)}};return window.addEventListener("scroll",g,{capture:!0,passive:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})},[]);const u=()=>{l.current?.scrollTo({top:0,behavior:"smooth"})},d=18,h=2*Math.PI*d,m=h-n/100*h;return y.jsx("div",{className:K("fixed bottom-24 right-8 z-50 transition-all duration-500 ease-in-out transform",s?"translate-x-0 opacity-100":"translate-x-32 opacity-0 pointer-events-none"),children:y.jsxs(He,{variant:"outline",size:"icon",className:K("relative h-12 w-12 rounded-full shadow-xl","bg-background/80 backdrop-blur-md border-border/50","hover:bg-accent hover:scale-110 hover:shadow-2xl hover:border-primary/50","transition-all duration-300","group"),onClick:u,"aria-label":"回到顶部",children:[y.jsxs("svg",{className:"absolute inset-0 h-full w-full -rotate-90 transform p-1",viewBox:"0 0 44 44",children:[y.jsx("circle",{className:"text-muted-foreground/10",strokeWidth:"3",stroke:"currentColor",fill:"transparent",r:d,cx:"22",cy:"22"}),y.jsx("circle",{className:"text-primary transition-all duration-100 ease-out",strokeWidth:"3",strokeDasharray:h,strokeDashoffset:m,strokeLinecap:"round",stroke:"currentColor",fill:"transparent",r:d,cx:"22",cy:"22"})]}),y.jsx(gC,{className:"h-5 w-5 text-primary transition-transform duration-300 group-hover:-translate-y-1 group-hover:scale-110",strokeWidth:2.5}),y.jsx("div",{className:"absolute inset-0 rounded-full bg-primary/5 opacity-0 group-hover:opacity-100 transition-opacity duration-300"})]})})}function Uj(){const{t:n}=Nn(),a=window.location.protocol==="http:",s=window.location.hostname.toLowerCase(),o=s==="localhost"||s==="127.0.0.1"||s==="::1",l=sessionStorage.getItem("http-warning-dismissed")==="true",[u,d]=T.useState(a&&!o&&!l),[h,m]=T.useState(!1),g=()=>{m(!0),d(!1),sessionStorage.setItem("http-warning-dismissed","true")};return!u||h?null:y.jsx("div",{className:"relative bg-amber-500/10 border-b border-amber-500/20 backdrop-blur-sm",children:y.jsx("div",{className:"container mx-auto px-4 py-3",children:y.jsxs("div",{className:"flex items-center justify-between gap-4",children:[y.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[y.jsx(Fr,{className:"h-5 w-5 text-amber-600 dark:text-amber-500 flex-shrink-0"}),y.jsxs("div",{className:"flex-1",children:[y.jsxs("p",{className:"text-sm font-medium text-amber-900 dark:text-amber-100",children:[y.jsx("span",{className:"font-semibold",children:n("httpWarning.title")}),n("httpWarning.message")]}),y.jsx("p",{className:"text-xs text-amber-800 dark:text-amber-200 mt-1",children:n("httpWarning.description")})]})]}),y.jsx(He,{variant:"ghost",size:"icon",onClick:g,className:"h-8 w-8 text-amber-700 hover:text-amber-900 dark:text-amber-400 dark:hover:text-amber-200 flex-shrink-0","aria-label":n("httpWarning.dismiss"),children:y.jsx(cl,{className:"h-4 w-4"})})]})})})}function Vj(){const{t:n}=Nn();return y.jsx("a",{href:"#main-content",className:["sr-only","focus-visible:not-sr-only","focus-visible:fixed","focus-visible:left-4","focus-visible:top-4","focus-visible:z-[9999]","focus-visible:rounded-md","focus-visible:bg-background","focus-visible:px-4","focus-visible:py-2","focus-visible:text-sm","focus-visible:font-medium","focus-visible:text-foreground","focus-visible:shadow-md","focus-visible:outline-none","focus-visible:ring-2","focus-visible:ring-ring"].join(" "),children:n("a11y.skipToContent")})}const Pj=Rw,_j=jw,Hj=Ow,ZS=T.forwardRef(({className:n,sideOffset:a=4,...s},o)=>y.jsx(Nw,{children:y.jsx(fb,{ref:o,sideOffset:a,className:K("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",n),...s})}));ZS.displayName=fb.displayName;const $S=()=>{const n=T.useContext(qb);if(n===void 0)throw new Error("useTheme must be used within a ThemeProvider");return n},Fj=(n,a,s)=>{const o=document.documentElement.classList.contains("no-animations");if(!document.startViewTransition||o){a(n);return}const l=s.clientX,u=s.clientY,d=Math.hypot(Math.max(l,innerWidth-l),Math.max(u,innerHeight-u));document.startViewTransition(()=>{a(n)}).ready.then(()=>{document.documentElement.animate({clipPath:[`circle(0px at ${l}px ${u}px)`,`circle(${d}px at ${l}px ${u}px)`]},{duration:500,easing:"ease-in-out",pseudoElement:"::view-transition-new(root)"})})};async function Pd(){return Je()?await window.electronAPI?.getActiveBackendUrl()??"":""}async function IL(){if(Je()){const s=await Pd();return s?s.replace(/^https?/,o=>o==="https"?"wss":"ws"):""}const n=window.location.protocol==="https:"?"wss:":"ws:",a=window.location.host;return`${n}//${a}`}async function GL(n){if(Je()){const a=await Pd();return a?`${a}${n}`:n}return n}async function _d(n){if(Je()&&typeof n=="string"&&n.startsWith("/")){const a=await Pd();return a?`${a}${n}`:n}return n}async function Kt(n,a){const o=a?.body instanceof FormData?{...a?.headers}:{"Content-Type":"application/json",...a?.headers},l={...a,credentials:"include",headers:o},u=await fetch(await _d(n),l);if(u.status===401)throw window.location.href="/auth",new Error("认证失败,请重新登录");return u}function qL(){return{"Content-Type":"application/json"}}async function Ij(){try{await fetch(await _d("/api/webui/auth/logout"),{method:"POST",credentials:"include"})}catch(n){console.error("登出请求失败:",n)}window.location.href="/auth"}async function WS(){try{return(await(await fetch(await _d("/api/webui/auth/check"),{method:"GET",credentials:"include"})).json()).authenticated===!0}catch{return!1}}function Gj(){const n=Wf(),[a,s]=T.useState(!0);return T.useEffect(()=>{let o=!1;return(async()=>{try{const u=await WS();!o&&!u&&n({to:"/auth"})}catch{o||n({to:"/auth"})}finally{o||s(!1)}})(),()=>{o=!0}},[n]),{checking:a}}async function qj(){return await WS()}function Hd(n){const{themeConfig:a}=$S(),s=a.backgroundConfig??{},o=s[n]??Dy;return n!=="page"&&o.inherit?{config:s.page??Dy,inheritEnabled:!0,inheritedFrom:"page"}:{config:o,inheritEnabled:!!o.inherit,inheritedFrom:null}}function Kj(){const[n,a]=T.useState(!1);T.useEffect(()=>{if(!Je())return;const u=window.electronAPI;if(!u)return;u.isMaximized().then(a);const d=u.onWindowMaximized(()=>a(!0)),h=u.onWindowUnmaximized(()=>a(!1));return()=>{d?.(),h?.()}},[]);const s=T.useCallback(()=>window.electronAPI?.minimizeWindow(),[]),o=T.useCallback(()=>window.electronAPI?.maximizeWindow(),[]);return{close:T.useCallback(()=>window.electronAPI?.closeWindow(),[]),isMaximized:n,minimize:s,toggleMaximize:o}}const Yj={WebkitAppRegion:"drag"},Qv={WebkitAppRegion:"no-drag"};function Xj(){const{close:n,isMaximized:a,minimize:s,toggleMaximize:o}=Kj(),l=T.useMemo(()=>dM()==="darwin",[]);return Je()?y.jsxs("div",{className:`flex items-center justify-between border-b border-border bg-background select-none ${l?"h-7":"h-8"}`,style:Yj,children:[l&&y.jsx("div",{className:"h-full w-[78px]",style:Qv}),y.jsx("div",{className:"flex flex-1 items-center justify-center text-xs font-semibold text-foreground/80",children:"MaiBot"}),!l&&y.jsxs("div",{className:"flex h-full items-center",style:Qv,children:[y.jsx("button",{className:"flex h-8 w-11 items-center justify-center hover:bg-accent hover:text-accent-foreground",onClick:s,tabIndex:-1,type:"button","aria-label":"最小化",children:y.jsx(yC,{className:"h-3.5 w-3.5"})}),y.jsx("button",{className:"flex h-8 w-11 items-center justify-center hover:bg-accent hover:text-accent-foreground",onClick:o,tabIndex:-1,type:"button","aria-label":a?"还原窗口":"最大化",children:a?y.jsx(Ab,{className:"h-3.5 w-3.5"}):y.jsx(vC,{className:"h-3.5 w-3.5"})}),y.jsx("button",{className:"flex h-8 w-11 items-center justify-center hover:bg-destructive hover:text-destructive-foreground",onClick:n,tabIndex:-1,type:"button","aria-label":"关闭窗口",children:y.jsx(cl,{className:"h-3.5 w-3.5"})})]})]}):null}const Qj=/(Mac|iPhone|iPod|iPad)/i;function Fd(){return typeof navigator>"u"?!1:Qj.test(navigator.platform||navigator.userAgent)}function Zj(n){const a=Fd();switch(n.toLowerCase()){case"mod":return a?"⌘":"Ctrl";case"shift":return a?"⇧":"Shift";case"alt":return a?"⌥":"Alt";case"enter":return a?"↵":"Enter";case"esc":case"escape":return"Esc";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";default:return n.length===1?n.toUpperCase():n}}function $j(){return Fd()?"Command":"Control"}function JS(n,a){const s=a.map(u=>u.toLowerCase()),o=n.key.toLowerCase(),l={mod:Fd()?n.metaKey:n.ctrlKey,shift:n.shiftKey,alt:n.altKey};for(const u of s){if(u in l){if(!l[u])return!1;continue}if(o!==u)return!1}return!0}function Wj(n){return n instanceof HTMLElement?n.tagName==="INPUT"||n.tagName==="TEXTAREA"||n.isContentEditable||n.getAttribute("role")==="textbox":!1}const Id=[{title:"sidebar.groups.overview",items:[{icon:Jf,label:"sidebar.menu.home",path:"/",searchDescription:"search.items.homeDesc"},{icon:bC,label:"sidebar.menu.maisakaMonitor",path:"/planner-monitor"}]},{title:"sidebar.groups.botConfig",items:[{icon:Eb,label:"sidebar.menu.botMainConfig",path:"/config/bot",searchDescription:"search.items.botConfigDesc"},{icon:SC,label:"sidebar.menu.modelManagement",path:"/config/model",searchDescription:"search.items.modelDesc",tourId:"sidebar-model-management"},{icon:xC,label:"sidebar.menu.promptManagement",path:"/config/prompts"}]},{title:"sidebar.groups.botResources",items:[{icon:TC,label:"sidebar.menu.emojiManagement",path:"/resource/emoji",searchDescription:"search.items.emojiDesc"},{icon:Mb,label:"sidebar.menu.expressionManagement",path:"/resource/expression",searchDescription:"search.items.expressionDesc"},{icon:wC,label:"sidebar.menu.slangManagement",path:"/resource/jargon",searchDescription:"search.items.jargonDesc"},{icon:CC,label:"sidebar.menu.knowledgeBase",path:"/resource/knowledge-base"}]},{title:"sidebar.groups.extensionsMonitor",items:[{icon:DC,label:"sidebar.menu.pluginConfig",path:"/plugin-config"},{icon:AC,label:"sidebar.menu.pluginMarket",path:"/plugins",searchDescription:"search.items.pluginsDesc"},{icon:EC,label:"sidebar.menu.mcpSettings",path:"/mcp-settings"}]},{title:"sidebar.groups.system",items:[{icon:MC,label:"sidebar.menu.logViewer",path:"/logs",searchDescription:"search.items.logsDesc"},{icon:kC,label:"sidebar.menu.reasoningProcess",path:"/reasoning-process",searchDescription:"search.items.reasoningProcessDesc"},{icon:NC,label:"sidebar.menu.settings",path:"/settings",searchDescription:"search.items.settingsDesc"}]}],Jj=zw,KL=Bw,eO=Lw,ex=T.forwardRef(({className:n,...a},s)=>y.jsx(db,{className:K("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...a,ref:s}));ex.displayName=db.displayName;const tx=T.forwardRef(({className:n,...a},s)=>y.jsxs(eO,{children:[y.jsx(ex,{}),y.jsx(hb,{ref:s,className:K("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),...a})]}));tx.displayName=hb.displayName;const nx=({className:n,...a})=>y.jsx("div",{className:K("flex flex-col space-y-2 text-center sm:text-left",n),...a});nx.displayName="AlertDialogHeader";const ax=({className:n,...a})=>y.jsx("div",{className:K("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...a});ax.displayName="AlertDialogFooter";const ix=T.forwardRef(({className:n,...a},s)=>y.jsx(mb,{ref:s,className:K("text-lg font-semibold",n),...a}));ix.displayName=mb.displayName;const sx=T.forwardRef(({className:n,...a},s)=>y.jsx(pb,{ref:s,className:K("text-sm text-muted-foreground",n),...a}));sx.displayName=pb.displayName;const ox=T.forwardRef(({className:n,variant:a,...s},o)=>y.jsx(gb,{ref:o,className:K(nd({variant:a}),n),...s}));ox.displayName=gb.displayName;const rx=T.forwardRef(({className:n,...a},s)=>y.jsx(yb,{ref:s,className:K(nd({variant:"outline"}),"mt-2 sm:mt-0",n),...a}));rx.displayName=yb.displayName;const Zf=Pw,YL=_w,tO=Uw,lx=T.forwardRef(({className:n,...a},s)=>y.jsx(vb,{ref:s,className:K("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...a}));lx.displayName=vb.displayName;const ol=T.forwardRef(({className:n,children:a,preventOutsideClose:s=!1,hideCloseButton:o=!1,confirmOnEnter:l=!1,onKeyDownCapture:u,...d},h)=>y.jsxs(tO,{children:[y.jsx(lx,{}),y.jsxs(bb,{ref:h,className:K("fixed left-[50%] top-[50%] z-50 flex w-[min(calc(100vw-2rem),var(--dialog-width,32rem))] max-h-[calc(100vh-2rem)] translate-x-[-50%] translate-y-[-50%] flex-col gap-4 overflow-hidden border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),onPointerDownOutside:s?m=>m.preventDefault():void 0,onInteractOutside:s?m=>m.preventDefault():void 0,onKeyDownCapture:m=>{if(u?.(m),!l||m.defaultPrevented||!JS(m,["enter"])||m.nativeEvent.isComposing||Wj(m.target))return;const g=m.currentTarget.querySelector('[data-dialog-action="confirm"]:not([disabled])');g&&(m.preventDefault(),g.click())},...d,children:[a,!o&&y.jsxs(Vw,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[y.jsx(cl,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"关闭"})]})]})]}));ol.displayName=bb.displayName;const Gd=T.forwardRef(({className:n,children:a,allowHorizontalScroll:s=!1,contentClassName:o,scrollbars:l,viewportClassName:u,type:d,...h},m)=>y.jsx(Fs,{ref:m,className:K("min-h-0 flex-1 flex flex-col",n),contentClassName:K(s&&"min-w-full w-max",o),scrollbars:l??(s?"both":"vertical"),viewportClassName:K("min-h-0 flex-1 pr-4 [&>div]:!block",u),type:d??"always",...h,children:a}));Gd.displayName="DialogBody";const rl=({className:n,...a})=>y.jsx("div",{className:K("flex flex-col space-y-1.5 text-center sm:text-left",n),...a});rl.displayName="DialogHeader";const nO=({className:n,...a})=>y.jsx("div",{className:K("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...a});nO.displayName="DialogFooter";const ll=T.forwardRef(({className:n,...a},s)=>y.jsx(Sb,{ref:s,className:K("text-lg font-semibold leading-none tracking-tight",n),...a}));ll.displayName=Sb.displayName;const aO=T.forwardRef(({className:n,...a},s)=>y.jsx(xb,{ref:s,className:K("text-sm text-muted-foreground",n),...a}));aO.displayName=xb.displayName;function iO(){const[n,a]=T.useState([]),[s,o]=T.useState(null),[l,u]=T.useState(!0),d=T.useCallback(async()=>{if(!Je())return;const[v,x]=await Promise.all([window.electronAPI.getBackends(),window.electronAPI.getActiveBackend()]);a(v),o(x?.id??null),u(!1)},[]);T.useEffect(()=>{d()},[d]);const h=T.useCallback(async v=>{Je()&&(await window.electronAPI.addBackend(v),await d())},[d]),m=T.useCallback(async(v,x)=>{Je()&&(await window.electronAPI.updateBackend(v,x),await d())},[d]),g=T.useCallback(async v=>{Je()&&(await window.electronAPI.removeBackend(v),await d())},[d]),b=T.useCallback(async v=>{Je()&&(await window.electronAPI.setActiveBackend(v),o(v),window.location.reload())},[]);return{backends:n,activeId:s,loading:l,addBackend:h,updateBackend:m,removeBackend:g,switchBackend:b,refresh:d}}function sO({open:n,onOpenChange:a}){const{activeId:s,addBackend:o,backends:l,loading:u,removeBackend:d,switchBackend:h,updateBackend:m}=iO(),[g,b]=T.useState(null),[v,x]=T.useState(null);if(!Je())return null;const D=async()=>{!g?.name||!g?.url||!/^https?:\/\//.test(g.url)||(g.id?await m(g.id,g):await o({name:g.name,url:g.url,isDefault:g.isDefault??!1}),b(null))},w=async()=>{v&&v.id!==s&&(await d(v.id),x(null))},R=async L=>{L!==s&&await h(L)};return y.jsxs(y.Fragment,{children:[y.jsx(Zf,{open:n,onOpenChange:a,children:y.jsxs(ol,{className:"max-w-md sm:max-w-106.25",children:[y.jsx(rl,{children:y.jsx(ll,{children:"后端连接管理"})}),u?y.jsx("div",{className:"flex h-32 items-center justify-center",children:y.jsx(mf,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):y.jsx(Gd,{className:"pr-4",children:y.jsx("div",{className:"flex flex-col gap-3 py-4",children:l.map(L=>{const M=L.id===s;return y.jsxs("div",{className:`flex items-center justify-between rounded-lg border p-3 transition-colors ${M?"border-blue-500 bg-blue-500/10":"border-border"}`,children:[y.jsxs("div",{className:"flex flex-1 items-center gap-3 overflow-hidden",children:[y.jsx("div",{className:"shrink-0",children:M?y.jsx(ed,{className:"h-5 w-5 text-blue-500"}):y.jsx("div",{className:"h-3 w-3 rounded-full bg-muted-foreground/30 ml-1",title:"未知状态"})}),y.jsxs("div",{className:"flex flex-col overflow-hidden",children:[y.jsx("span",{className:"truncate font-medium leading-none",children:L.name}),y.jsx("span",{className:"truncate text-xs text-muted-foreground mt-1",children:L.url})]})]}),y.jsxs("div",{className:"flex items-center gap-1 ml-2",children:[!M&&y.jsxs(He,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>R(L.id),title:"切换到此后端",children:[y.jsx(kb,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"切换到此后端"})]}),y.jsxs(He,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>b(L),title:"编辑",children:[y.jsx(RC,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"编辑"})]}),y.jsxs(He,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>x(L),disabled:M,title:M?"无法删除活跃后端":"删除",children:[y.jsx(jC,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"删除"})]})]})]},L.id)})})}),y.jsx("div",{className:"flex justify-end pt-4 border-t",children:y.jsxs(He,{className:"w-full",onClick:()=>b({name:"",url:"http://",isDefault:!1}),children:[y.jsx(OC,{className:"mr-2 h-4 w-4"}),"添加新连接"]})})]})}),y.jsx(Zf,{open:!!g,onOpenChange:L=>!L&&b(null),children:y.jsxs(ol,{className:"sm:max-w-106.25",confirmOnEnter:!0,children:[y.jsx(rl,{children:y.jsx(ll,{children:g?.id?"编辑连接":"添加连接"})}),y.jsxs("div",{className:"grid gap-4 py-4",children:[y.jsxs("div",{className:"grid gap-2",children:[y.jsx(Is,{htmlFor:"name",children:"名称"}),y.jsx(Mi,{id:"name",value:g?.name||"",onChange:L=>b(M=>M?{...M,name:L.target.value}:null),placeholder:"我的服务器"})]}),y.jsxs("div",{className:"grid gap-2",children:[y.jsx(Is,{htmlFor:"url",children:"URL"}),y.jsx(Mi,{id:"url",value:g?.url||"",onChange:L=>b(M=>M?{...M,url:L.target.value}:null),placeholder:"http://192.168.1.100:8001"})]})]}),y.jsxs("div",{className:"flex justify-end gap-3",children:[y.jsx(He,{variant:"outline",onClick:()=>b(null),children:"取消"}),y.jsx(He,{onClick:D,disabled:!g?.name||!g?.url||!/^https?:\/\//.test(g.url),"data-dialog-action":"confirm",children:"保存"})]})]})}),y.jsx(Jj,{open:!!v,onOpenChange:L=>!L&&x(null),children:y.jsxs(tx,{children:[y.jsxs(nx,{children:[y.jsx(ix,{children:"删除连接"}),y.jsxs(sx,{children:["确定要删除 ",v?.name," 吗?此操作不可撤销。"]})]}),y.jsxs(ax,{children:[y.jsx(rx,{children:"取消"}),y.jsx(ox,{onClick:w,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"删除"})]})]})})]})}const oO=Qs("pointer-events-none inline-flex select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono font-medium opacity-100",{variants:{size:{sm:"h-5 text-[10px]",default:"h-6 text-xs",lg:"h-7 text-sm"}},defaultVariants:{size:"default"}}),cx=T.forwardRef(({className:n,size:a,abbrTitle:s,children:o,...l},u)=>y.jsx("kbd",{className:K(oO({size:a,className:n})),ref:u,...l,children:s?y.jsx("abbr",{title:s,children:o}):o}));cx.displayName="Kbd";function js({keys:n,className:a,size:s,...o}){return y.jsx("span",{className:K("inline-flex items-center gap-1",a),children:n.map(l=>{const u=Zj(l),d=l==="mod"?$j():void 0;return y.jsx(cx,{size:s,abbrTitle:d,...o,children:u},`${l}-${u}`)})})}async function Yt(n){if(n.ok)try{return{success:!0,data:await n.json()}}catch{return{success:!1,error:"Failed to parse response body"}}try{const a=await n.json(),s=a.error?.detail??a.error?.message??a.detail??a.message??n.statusText;return{success:!1,error:String(s)}}catch{return{success:!1,error:n.statusText||"Unknown error"}}}function XL(n){if(n.success)return n.data;throw new Error(n.error)}const fn="/api/webui/config";async function rO(){const n=await Kt(`${fn}/schema/bot`,{cache:"no-store"});return Yt(n)}async function lO(){const n=await Kt(`${fn}/schema/model`,{cache:"no-store"});return Yt(n)}async function QL(){const n=await Kt(`${fn}/bot`,{cache:"no-store"});return Yt(n)}async function ZL(){const n=await Kt(`${fn}/model`,{cache:"no-store"});return Yt(n)}async function $L(n){const a=await Kt(`${fn}/bot`,{method:"POST",body:JSON.stringify(n)});return Yt(a)}async function WL(){const n=await Kt(`${fn}/bot/raw`,{cache:"no-store"});return Yt(n)}async function JL(n){const a=await Kt(`${fn}/bot/raw`,{method:"POST",body:JSON.stringify({raw_content:n})});return Yt(a)}async function e3(n){const a=await Kt(`${fn}/model`,{method:"POST",body:JSON.stringify(n)});return Yt(a)}async function t3(n,a){const s=await Kt(`${fn}/bot/section/${n}`,{method:"POST",body:JSON.stringify(a)});return Yt(s)}async function n3(n,a){const s=await Kt(`${fn}/model/section/${n}`,{method:"POST",body:JSON.stringify(a)});return Yt(s)}async function a3(n,a="openai",s="/models"){const o=new URLSearchParams({provider_name:n,parser:a,endpoint:s}),l=await Kt(`/api/webui/models/list?${o}`),u=await Yt(l);if(!u.success)return u;const d=u.data;return{success:!0,data:Array.isArray(d)?d:Array.isArray(d?.models)?d.models:[]}}async function i3(n){const a=new URLSearchParams({provider_name:n}),s=await Kt(`/api/webui/models/test-connection-by-name?${a}`,{method:"POST"});return Yt(s)}const cO={zh:["zh_CN","zh-CN","zh"],en:["en_US","en-US","en"],ja:["ja_JP","ja-JP","ja"],ko:["ko_KR","ko-KR","ko"]};function uO(n){const a=(n||"").replace("-","_"),s=a.split("_")[0];return[a,n||"",...cO[s]??[],"zh_CN","zh-CN","zh"].filter(Boolean)}function fO(n,a,s=""){if(!n)return s;if(typeof n=="string")return n||s;for(const o of uO(a)){const l=n[o];if(l)return l}return Object.values(n).find(Boolean)??s}function dO(n){return n?typeof n=="string"?[n]:Object.values(n):[]}function ux(n,a){return fO(n.label,a,n.name)}function hO(n,a){return n.uiLabel||n.classDoc||n.className||a}function Zv(n){if(!n||typeof n!="object")return null;if("fields"in n)return n;if("schema"in n){const a=n.schema;if(a&&typeof a=="object"&&"fields"in a)return a}return null}function mO(n){return"/config/model"}function pO(n,a,s,o){const l=n.options?.join(" ")??"",u=n["x-option-descriptions"]?Object.entries(n["x-option-descriptions"]).map(([d,h])=>`${d} ${h}`).join(" "):"";return[ux(n,o),...dO(n.label),n.name,a,n.description,s,n.type,l,u].join(" ")}function $v(n,a,s,o,l){const u=[],d=(h,m,g)=>{const b=hO(h,a),v=[...g,b].filter(Boolean);for(const x of h.fields){const D=m?`${m}.${x.name}`:x.name,w=h.nested?.[x.name],R=ux(x,l),L=x.description||v.join(" / ")||D,M=D,V=o(M);u.push({id:`config:${a}:${M}`,icon:a==="模型配置"?Nb:Eb,title:R,description:`${a} / ${v.join(" / ")} / ${M} · ${L}`,path:V,category:"配置项",keywords:pO(x,M,v.join(" / "),l)}),w&&d(w,D,v)}};return d(n,"",[]),u}function gO({open:n,onOpenChange:a}){const[s,o]=T.useState(""),[l,u]=T.useState(0),[d,h]=T.useState([]),m=T.useRef(null),g=Wf(),{i18n:b,t:v}=Nn();T.useEffect(()=>{h([])},[b.language]),T.useEffect(()=>{if(!n)return;const M=window.requestAnimationFrame(()=>{m.current?.focus()});return()=>window.cancelAnimationFrame(M)},[n]),T.useEffect(()=>{if(!n||d.length>0)return;let M=!1;return(async()=>{const[z,j]=await Promise.all([rO(),lO()]);if(M)return;const F=[];if(z.success){const X=Zv(z.data);X&&F.push(...$v(X,"Bot 配置","",()=>"/config/bot",b.language))}if(j.success){const X=Zv(j.data);X&&F.push(...$v(X,"模型配置","",mO,b.language))}h(F)})().catch(()=>{M||h([])}),()=>{M=!0}},[d.length,b.language,n]);const x=T.useMemo(()=>Id.flatMap(M=>M.items.filter(V=>kL.has(V.path)).map(V=>({id:`route:${V.path}`,icon:V.icon,title:v(V.label),description:V.searchDescription?v(V.searchDescription):V.path,path:V.path,category:v(M.title),keywords:[v(V.label),V.path,V.searchDescription?v(V.searchDescription):"",v(M.title)].join(" ")}))),[v]),D=s.trim().toLowerCase(),w=(D?[...x,...d]:x).filter(M=>M.keywords.toLowerCase().includes(D)).slice(0,80),R=T.useCallback(M=>{g({to:M}),a(!1),o(""),u(0)},[g,a]),L=T.useCallback(M=>{if(M.key==="ArrowDown"){if(M.preventDefault(),w.length===0)return;u(V=>(V+1)%w.length)}else if(M.key==="ArrowUp"){if(M.preventDefault(),w.length===0)return;u(V=>(V-1+w.length)%w.length)}else M.key==="Enter"&&w[l]&&(M.preventDefault(),R(w[l].path))},[w,l,R]);return y.jsx(Zf,{open:n,onOpenChange:a,children:y.jsxs(ol,{className:"max-w-2xl p-0 gap-0",confirmOnEnter:!0,children:[y.jsxs(rl,{className:"px-4 pt-4 pb-0",children:[y.jsx(ll,{className:"sr-only",children:v("search.title")}),y.jsxs("div",{className:"relative",children:[y.jsx(Ir,{className:"absolute left-3 top-1/2 h-5 w-5 -translate-y-1/2 text-muted-foreground"}),y.jsx(Mi,{ref:m,value:s,onChange:M=>{o(M.target.value),u(0)},onKeyDown:L,placeholder:v("search.placeholder"),className:"h-12 pl-11 text-base border-0 focus-visible:ring-0 shadow-none"})]})]}),y.jsx("div",{className:"border-t",children:y.jsx(Gd,{className:"h-100",viewportClassName:"px-0",children:w.length>0?y.jsx("div",{className:"p-2",children:w.map((M,V)=>{const z=M.icon;return y.jsxs("button",{onClick:()=>R(M.path),onMouseEnter:()=>u(V),className:K("w-full flex items-center gap-3 px-3 py-2.5 rounded-md text-left transition-colors",V===l?"bg-accent text-accent-foreground":"hover:bg-accent/50"),children:[y.jsx(z,{className:"h-5 w-5 shrink-0"}),y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsx("div",{className:"font-medium text-sm",children:M.title}),y.jsx("div",{className:"text-xs text-muted-foreground truncate",children:M.description})]}),y.jsx("div",{className:"text-xs text-muted-foreground px-2 py-1 bg-muted rounded",children:M.category})]},M.id)})}):y.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[y.jsx(Ir,{className:"h-12 w-12 text-muted-foreground/50 mb-4"}),y.jsx("p",{className:"text-sm text-muted-foreground",children:v(s?"search.noResults":"search.startSearch")})]})})}),y.jsx("div",{className:"border-t px-4 py-3 flex items-center justify-between text-xs text-muted-foreground",children:y.jsxs("div",{className:"flex items-center gap-4",children:[y.jsxs("span",{className:"flex items-center gap-1",children:[y.jsx(js,{size:"sm",keys:["up"]}),y.jsx(js,{size:"sm",keys:["down"]}),v("search.navigate")]}),y.jsxs("span",{className:"flex items-center gap-1",children:[y.jsx(js,{size:"sm",keys:["enter"]}),v("search.select")]}),y.jsxs("span",{className:"flex items-center gap-1",children:[y.jsx(js,{size:"sm",keys:["esc"]}),v("search.close")]})]})})]})})}var yl="DropdownMenu",[yO]=$w(yl,[Tb]),mt=Tb(),[vO,fx]=yO(yl),dx=n=>{const{__scopeDropdownMenu:a,children:s,dir:o,open:l,defaultOpen:u,onOpenChange:d,modal:h=!0}=n,m=mt(a),g=T.useRef(null),[b,v]=Ww({prop:l,defaultProp:u??!1,onChange:d,caller:yl});return y.jsx(vO,{scope:a,triggerId:Kg(),triggerRef:g,contentId:Kg(),open:b,onOpenChange:v,onOpenToggle:T.useCallback(()=>v(x=>!x),[v]),modal:h,children:y.jsx(Jw,{...m,open:b,onOpenChange:v,dir:o,modal:h,children:s})})};dx.displayName=yl;var hx="DropdownMenuTrigger",mx=T.forwardRef((n,a)=>{const{__scopeDropdownMenu:s,disabled:o=!1,...l}=n,u=fx(hx,s),d=mt(s);return y.jsx(eC,{asChild:!0,...d,children:y.jsx(tC.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...l,ref:nC(a,u.triggerRef),onPointerDown:Hr(n.onPointerDown,h=>{!o&&h.button===0&&h.ctrlKey===!1&&(u.onOpenToggle(),u.open||h.preventDefault())}),onKeyDown:Hr(n.onKeyDown,h=>{o||(["Enter"," "].includes(h.key)&&u.onOpenToggle(),h.key==="ArrowDown"&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(h.key)&&h.preventDefault())})})})});mx.displayName=hx;var bO="DropdownMenuPortal",px=n=>{const{__scopeDropdownMenu:a,...s}=n,o=mt(a);return y.jsx(Iw,{...o,...s})};px.displayName=bO;var gx="DropdownMenuContent",yx=T.forwardRef((n,a)=>{const{__scopeDropdownMenu:s,...o}=n,l=fx(gx,s),u=mt(s),d=T.useRef(!1);return y.jsx(Gw,{id:l.contentId,"aria-labelledby":l.triggerId,...u,...o,ref:a,onCloseAutoFocus:Hr(n.onCloseAutoFocus,h=>{d.current||l.triggerRef.current?.focus(),d.current=!1,h.preventDefault()}),onInteractOutside:Hr(n.onInteractOutside,h=>{const m=h.detail.originalEvent,g=m.button===0&&m.ctrlKey===!0,b=m.button===2||g;(!l.modal||b)&&(d.current=!0)}),style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});yx.displayName=gx;var SO="DropdownMenuGroup",xO=T.forwardRef((n,a)=>{const{__scopeDropdownMenu:s,...o}=n,l=mt(s);return y.jsx(aC,{...l,...o,ref:a})});xO.displayName=SO;var TO="DropdownMenuLabel",vx=T.forwardRef((n,a)=>{const{__scopeDropdownMenu:s,...o}=n,l=mt(s);return y.jsx(Qw,{...l,...o,ref:a})});vx.displayName=TO;var wO="DropdownMenuItem",bx=T.forwardRef((n,a)=>{const{__scopeDropdownMenu:s,...o}=n,l=mt(s);return y.jsx(qw,{...l,...o,ref:a})});bx.displayName=wO;var CO="DropdownMenuCheckboxItem",Sx=T.forwardRef((n,a)=>{const{__scopeDropdownMenu:s,...o}=n,l=mt(s);return y.jsx(Kw,{...l,...o,ref:a})});Sx.displayName=CO;var DO="DropdownMenuRadioGroup",AO=T.forwardRef((n,a)=>{const{__scopeDropdownMenu:s,...o}=n,l=mt(s);return y.jsx(iC,{...l,...o,ref:a})});AO.displayName=DO;var EO="DropdownMenuRadioItem",xx=T.forwardRef((n,a)=>{const{__scopeDropdownMenu:s,...o}=n,l=mt(s);return y.jsx(Xw,{...l,...o,ref:a})});xx.displayName=EO;var MO="DropdownMenuItemIndicator",Tx=T.forwardRef((n,a)=>{const{__scopeDropdownMenu:s,...o}=n,l=mt(s);return y.jsx(Yw,{...l,...o,ref:a})});Tx.displayName=MO;var kO="DropdownMenuSeparator",wx=T.forwardRef((n,a)=>{const{__scopeDropdownMenu:s,...o}=n,l=mt(s);return y.jsx(Zw,{...l,...o,ref:a})});wx.displayName=kO;var NO="DropdownMenuArrow",RO=T.forwardRef((n,a)=>{const{__scopeDropdownMenu:s,...o}=n,l=mt(s);return y.jsx(sC,{...l,...o,ref:a})});RO.displayName=NO;var jO="DropdownMenuSubTrigger",Cx=T.forwardRef((n,a)=>{const{__scopeDropdownMenu:s,...o}=n,l=mt(s);return y.jsx(Hw,{...l,...o,ref:a})});Cx.displayName=jO;var OO="DropdownMenuSubContent",Dx=T.forwardRef((n,a)=>{const{__scopeDropdownMenu:s,...o}=n,l=mt(s);return y.jsx(Fw,{...l,...o,ref:a,style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Dx.displayName=OO;var LO=dx,zO=mx,BO=px,Ax=yx,Ex=vx,Mx=bx,kx=Sx,Nx=xx,Rx=Tx,jx=wx,Ox=Cx,Lx=Dx;const UO=LO,VO=zO,PO=T.forwardRef(({className:n,inset:a,children:s,...o},l)=>y.jsxs(Ox,{ref:l,className:K("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",a&&"pl-8",n),...o,children:[s,y.jsx(LC,{className:"ml-auto h-4 w-4"})]}));PO.displayName=Ox.displayName;const _O=T.forwardRef(({className:n,...a},s)=>y.jsx(Lx,{ref:s,className:K("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...a}));_O.displayName=Lx.displayName;const zx=T.forwardRef(({className:n,sideOffset:a=4,...s},o)=>y.jsx(BO,{children:y.jsx(Ax,{ref:o,sideOffset:a,className:K("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...s})}));zx.displayName=Ax.displayName;const Bx=T.forwardRef(({className:n,inset:a,...s},o)=>y.jsx(Mx,{ref:o,className:K("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a&&"pl-8",n),...s}));Bx.displayName=Mx.displayName;const HO=T.forwardRef(({className:n,children:a,checked:s,...o},l)=>y.jsxs(kx,{ref:l,className:K("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:s,...o,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(Rx,{children:y.jsx(ed,{className:"h-4 w-4"})})}),a]}));HO.displayName=kx.displayName;const FO=T.forwardRef(({className:n,children:a,...s},o)=>y.jsxs(Nx,{ref:o,className:K("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...s,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(Rx,{children:y.jsx(zC,{className:"h-2 w-2 fill-current"})})}),a]}));FO.displayName=Nx.displayName;const IO=T.forwardRef(({className:n,inset:a,...s},o)=>y.jsx(Ex,{ref:o,className:K("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",n),...s}));IO.displayName=Ex.displayName;const GO=T.forwardRef(({className:n,...a},s)=>y.jsx(jx,{ref:s,className:K("-mx-1 my-1 h-px bg-muted",n),...a}));GO.displayName=jx.displayName;const qO=oC,Ux=T.forwardRef(({className:n,...a},s)=>y.jsx(wb,{ref:s,className:K("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",n),...a}));Ux.displayName=wb.displayName;const $f=T.forwardRef(({className:n,...a},s)=>y.jsx(Cb,{ref:s,className:K("inline-flex cursor-pointer items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",n),...a}));$f.displayName=Cb.displayName;const KO=T.forwardRef(({className:n,...a},s)=>y.jsx(Db,{ref:s,className:K("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=active]:animate-in data-[state=active]:fade-in data-[state=active]:duration-300",n),...a}));KO.displayName=Db.displayName;const YO=["zh","en","ja","ko"],Wv={zh:"中文",en:"English",ja:"日本語",ko:"한국어"};function XO({sidebarOpen:n,mobileMenuOpen:a,searchOpen:s,actualTheme:o,onSidebarToggle:l,onMobileMenuToggle:u,onSearchOpenChange:d,onThemeChange:h,workspaceMode:m}){const{t:g,i18n:b}=Nn(),v=b.language||"zh",{config:x,inheritedFrom:D}=Hd("header"),w=D==="page",[R,L]=T.useState(!1),[M,V]=T.useState("");T.useEffect(()=>{Je()&&window.electronAPI.getActiveBackend().then(j=>{V(j?.name??g("header.notConnected"))})},[]);const z=async()=>{await Ij()};return y.jsxs("header",{className:K("sticky top-0 isolate z-10 flex h-16 min-w-0 items-center justify-between gap-2 border-b px-3 backdrop-blur-md sm:px-4",w?"bg-transparent":"bg-card/80"),children:[!w&&y.jsx(Vd,{config:x,layerId:"header"}),y.jsxs("div",{className:"relative z-10 flex min-w-0 shrink-0 items-center gap-2 sm:gap-4",children:[y.jsx("button",{onClick:u,"aria-label":g("a11y.closeMenu"),"aria-expanded":a,className:K("hover:bg-accent rounded-lg p-2 lg:hidden",m==="chat"&&"hidden"),children:y.jsx(BC,{className:"h-5 w-5"})}),y.jsx("button",{onClick:l,"aria-label":g(n?"header.collapseSidebar":"header.expandSidebar"),"aria-expanded":n,className:K("hover:bg-accent hidden rounded-lg p-2 lg:block",m==="chat"&&"lg:hidden"),children:y.jsx(UC,{className:K("h-5 w-5 transition-transform",!n&&"rotate-180")})})]}),y.jsxs("div",{className:"relative z-10 flex min-w-0 flex-1 items-center justify-end gap-1 sm:gap-2",children:[y.jsx(wR,{id:"workspace-switcher",children:y.jsx(qO,{value:m,"aria-label":g("workspace.switcherLabel"),children:y.jsxs(Ux,{className:"bg-background/60 relative h-9 gap-0.5 border p-1 shadow-sm backdrop-blur",children:[y.jsx($f,{asChild:!0,value:"settings",className:"relative h-7 gap-1.5 bg-transparent px-2.5 text-xs font-medium data-[state=active]:bg-transparent data-[state=active]:text-primary-foreground data-[state=active]:shadow-none",children:y.jsxs(hf,{to:"/",children:[m==="settings"&&y.jsx(_s.span,{layoutId:"workspace-tab-pill",className:"bg-primary absolute inset-0 -z-10 rounded-md shadow-sm",transition:{type:"spring",stiffness:480,damping:38,mass:.6}}),y.jsx(Nb,{className:"h-3.5 w-3.5"}),y.jsx("span",{className:"hidden sm:inline",children:g("workspace.settings")})]})}),y.jsx($f,{asChild:!0,value:"chat",className:"relative h-7 gap-1.5 bg-transparent px-2.5 text-xs font-medium data-[state=active]:bg-transparent data-[state=active]:text-primary-foreground data-[state=active]:shadow-none",children:y.jsxs(hf,{to:"/chat",children:[m==="chat"&&y.jsx(_s.span,{layoutId:"workspace-tab-pill",className:"bg-primary absolute inset-0 -z-10 rounded-md shadow-sm",transition:{type:"spring",stiffness:480,damping:38,mass:.6}}),y.jsx(Mb,{className:"h-3.5 w-3.5"}),y.jsx("span",{className:"hidden sm:inline",children:g("workspace.chat")})]})})]})})}),y.jsx("div",{className:"bg-border hidden h-6 w-px sm:block"}),Je()&&y.jsxs(y.Fragment,{children:[y.jsxs(He,{variant:"ghost",size:"sm",className:"gap-2",onClick:()=>L(!0),title:g("header.toggleConnection"),children:[y.jsx(kb,{className:"h-4 w-4"}),y.jsx("span",{className:"text-muted-foreground hidden max-w-25 truncate text-xs sm:inline",children:M})]}),y.jsx(sO,{open:R,onOpenChange:L}),y.jsx("div",{className:"bg-border h-6 w-px"})]}),y.jsxs("button",{onClick:()=>d(!0),"aria-label":g("header.searchPlaceholder"),className:"bg-background/50 hover:bg-accent/50 relative hidden h-9 w-64 items-center rounded-md border pr-16 pl-9 text-left transition-colors md:flex",children:[y.jsx(Ir,{className:"text-muted-foreground absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2","aria-hidden":"true"}),y.jsx("span",{className:"text-muted-foreground text-sm",children:g("header.searchPlaceholder")}),y.jsx(js,{size:"sm",className:"absolute top-1/2 right-2 -translate-y-1/2",keys:["mod","k"]})]}),y.jsx(gO,{open:s,onOpenChange:d}),y.jsxs(He,{variant:"ghost",size:"sm",onClick:()=>window.open("https://docs.mai-mai.org","_blank"),className:"hidden gap-2 sm:inline-flex",title:g("header.viewDocs"),children:[y.jsx(VC,{className:"h-4 w-4"}),y.jsx("span",{className:"hidden sm:inline",children:g("header.docs")})]}),y.jsxs(UO,{children:[y.jsx(VO,{asChild:!0,children:y.jsxs(He,{variant:"ghost",size:"sm",className:"gap-2 px-2 sm:px-3",children:[y.jsx(PC,{className:"h-4 w-4"}),y.jsx("span",{className:"hidden text-xs sm:inline",children:Wv[v.split("-")[0]]??v})]})}),y.jsx(zx,{align:"end",children:YO.map(j=>y.jsxs(Bx,{onClick:()=>b.changeLanguage(j),className:K("cursor-pointer",v.split("-")[0]===j&&"text-primary font-semibold"),children:[v.split("-")[0]===j&&y.jsx("span",{className:"mr-2",children:"✓"}),Wv[j]]},j))})]}),y.jsx("button",{onClick:j=>{Fj(o==="dark"?"light":"dark",h,j)},"aria-label":g(o==="dark"?"header.switchToLight":"header.switchToDark"),className:"hover:bg-accent rounded-lg p-2",children:o==="dark"?y.jsx(_C,{className:"h-5 w-5"}):y.jsx(HC,{className:"h-5 w-5"})}),y.jsx("div",{className:"bg-border hidden h-6 w-px sm:block"}),y.jsxs(He,{variant:"ghost",size:"sm",onClick:z,className:"gap-2 px-2 sm:px-3",title:g("header.logout"),children:[y.jsx(FC,{className:"h-4 w-4"}),y.jsx("span",{className:"hidden sm:inline",children:g("header.logoutLabel")})]})]})]})}const Vx="1.0.10",QO="MaiBot Dashboard",s3=`${QO} v${Vx}`,Jv=(n="v")=>`${n}${Vx}`;function ZO({sidebarOpen:n}){return y.jsx("div",{className:"flex h-20 items-center border-b px-4",children:y.jsxs("div",{className:K("relative flex items-center justify-center flex-1 transition-all overflow-hidden","lg:flex-1",!n&&"lg:flex-none lg:w-8"),children:[y.jsxs("div",{className:K("flex min-w-0 flex-col items-start justify-center gap-1",!n&&"lg:hidden"),children:[y.jsx("span",{className:"max-w-full truncate whitespace-nowrap text-xl font-bold text-primary-gradient",children:"MaiBot WebUI"}),y.jsx("div",{className:"flex max-w-full items-center gap-2 overflow-hidden",children:y.jsx("span",{className:"shrink-0 whitespace-nowrap text-sm font-semibold text-primary/70",children:Jv()})}),y.jsxs("div",{className:"hidden",children:[y.jsx("span",{className:"font-bold text-xl text-primary-gradient whitespace-nowrap",children:"MaiBot WebUI"}),y.jsx("span",{className:"text-base font-semibold text-primary/70 whitespace-nowrap",children:Jv()})]})]}),!n&&y.jsx("span",{className:"hidden lg:block font-bold text-primary-gradient text-2xl",children:"M"})]})})}function $O({item:n,sidebarOpen:a,tooltipsEnabled:s,onMobileMenuClose:o}){const{t:l}=Nn(),d=hw()({to:n.path}),h=n.icon,m=y.jsxs(y.Fragment,{children:[d&&y.jsx("div",{className:"absolute left-0 top-1/2 h-8 w-1 -translate-y-1/2 rounded-r-full bg-primary transition-opacity duration-300"}),y.jsxs("div",{className:K("flex items-center transition-all duration-300",a?"gap-3":"gap-3 lg:gap-0"),children:[y.jsx(h,{className:K("h-5 w-5 flex-shrink-0",d&&"text-primary"),strokeWidth:2,fill:"none"}),y.jsx("span",{className:K("text-sm font-medium whitespace-nowrap transition-all duration-300",d&&"font-semibold",a?"opacity-100 max-w-[200px]":"opacity-100 max-w-[200px] lg:opacity-0 lg:max-w-0 lg:overflow-hidden"),children:l(n.label)})]})]});return y.jsx("li",{className:"relative",children:y.jsxs(_j,{children:[y.jsx(Hj,{asChild:!0,children:y.jsx(hf,{to:n.path,"data-tour":n.tourId,className:K("relative flex items-center rounded-lg py-2 transition-all duration-300","hover:bg-accent hover:text-accent-foreground",d?"bg-accent text-foreground":"text-muted-foreground hover:text-foreground",a?"px-3":"px-3 lg:px-0 lg:justify-center lg:w-12 lg:mx-auto"),onClick:o,children:m})}),s&&y.jsx(ZS,{side:"right",className:"hidden lg:block",children:y.jsx("p",{children:l(n.label)})})]})})}function eb({sidebarOpen:n,mobileMenuOpen:a,tooltipsEnabled:s,onMobileMenuClose:o}){const{t:l}=Nn(),{config:u,inheritedFrom:d}=Hd("sidebar"),h=d==="page";return y.jsxs("aside",{className:K("fixed inset-y-0 left-0 z-50 isolate flex flex-col border-r transition-all duration-300 lg:relative lg:z-0 lg:h-full",h?"bg-transparent":"bg-card","w-52 lg:w-auto",n?"lg:w-52":"lg:w-16",a?"translate-x-0":"-translate-x-full lg:translate-x-0"),children:[!h&&y.jsx(Vd,{config:u,layerId:"sidebar"}),y.jsx("div",{className:"relative z-10",children:y.jsx(ZO,{sidebarOpen:n})}),y.jsx(Fs,{className:K("relative z-10","min-h-0 flex-1 overflow-x-hidden",!n&&"lg:w-16"),viewportClassName:"[&>div]:!block",children:y.jsx("nav",{"aria-label":l("a11y.sidebarNav"),className:K("p-4",!n&&"lg:p-2 lg:w-16"),children:y.jsx("ul",{className:K("space-y-6",!n&&"lg:space-y-3 lg:w-full"),children:Id.map((m,g)=>y.jsxs("li",{children:[y.jsx("div",{className:K("px-3 h-[1.25rem]","mb-2",!n&&"lg:mb-1 lg:invisible"),children:y.jsx("h3",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground/60 whitespace-nowrap",children:l(m.title)})}),!n&&g>0&&y.jsx("div",{className:"hidden lg:block mb-2 border-t border-border"}),y.jsx("ul",{className:"space-y-1",children:m.items.map(b=>y.jsx($O,{item:b,sidebarOpen:n,tooltipsEnabled:s,onMobileMenuClose:o},b.path))})]},m.title))})})})]})}function WO({children:n}){const{t:a}=Nn(),{checking:s}=Gj(),o=mw(),l=pw({select:F=>F.location.pathname}),u=iE(),d=l.startsWith("/chat")?"chat":"settings",h=d==="chat",[m,g]=T.useState(!0),[b,v]=T.useState(!1),[x,D]=T.useState(!1),[w,R]=T.useState(!1),{theme:L,setTheme:M}=$S();T.useEffect(()=>{if(m)R(!1);else{const F=setTimeout(()=>{R(!0)},350);return()=>clearTimeout(F)}},[m]),T.useEffect(()=>{const F=X=>{JS(X,["mod","k"])&&(X.preventDefault(),D(!0))};return window.addEventListener("keydown",F),()=>window.removeEventListener("keydown",F)},[]),T.useEffect(()=>{const F={};for(const X of Id)for(const ie of X.items)F[ie.path]=a(ie.label);return F["/chat"]=a("workspace.chat"),o.subscribe("onResolved",()=>{const X=F[o.state.location.pathname]??"MaiBot Dashboard",ie=X==="MaiBot Dashboard"?"MaiBot Dashboard":`${X} — MaiBot Dashboard`;document.title=ie,u(a("a11y.navigatedTo",{page:X}),"polite");const Q=document.getElementById("main-content");Q&&!Q.contains(document.activeElement)&&requestAnimationFrame(()=>{Q.focus({preventScroll:!0})})})},[o,u,a]);const z=L==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":L,{config:j}=Hd("page");return s?y.jsx("div",{className:"bg-background flex h-screen items-center justify-center",children:y.jsx("div",{className:"text-muted-foreground",children:a("layout.verifyingLogin")})}):y.jsxs(Pj,{delayDuration:300,children:[y.jsx(Vj,{}),Je()&&y.jsx(Xj,{}),y.jsxs("div",{className:K("relative isolate flex h-screen overflow-hidden",Je()&&"pt-8"),children:[y.jsx(Vd,{config:j,layerId:"page"}),y.jsxs("div",{className:"relative z-10 flex h-full w-full overflow-hidden",children:[y.jsx(rf,{initial:!1,children:!h&&y.jsx(_s.div,{className:"relative z-40 hidden shrink-0 lg:block",initial:{width:0,opacity:0},animate:{width:m?208:64,opacity:1},exit:{width:0,opacity:0},transition:{type:"spring",stiffness:320,damping:36,mass:.7,opacity:{duration:.2}},style:{overflow:"hidden"},children:y.jsx(eb,{sidebarOpen:m,mobileMenuOpen:b,tooltipsEnabled:w,onMobileMenuClose:()=>v(!1)})},"settings-sidebar")}),!h&&y.jsx("div",{className:"lg:hidden",children:y.jsx(eb,{sidebarOpen:m,mobileMenuOpen:b,tooltipsEnabled:w,onMobileMenuClose:()=>v(!1)})}),y.jsx(rf,{children:!h&&b&&y.jsx(_s.div,{"aria-hidden":"true",className:"fixed inset-0 z-40 bg-black/50 lg:hidden",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.18},onClick:()=>v(!1)})}),y.jsxs("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[y.jsx(Uj,{}),y.jsx(XO,{sidebarOpen:m,mobileMenuOpen:b,searchOpen:x,actualTheme:z,onSidebarToggle:()=>g(!m),onMobileMenuToggle:()=>v(!b),onSearchOpenChange:D,onThemeChange:M,workspaceMode:d}),y.jsx("main",{id:"main-content",tabIndex:-1,className:K("relative isolate flex-1 overflow-hidden outline-none",h?"bg-transparent":j.type==="none"?"bg-background":"bg-transparent"),children:y.jsx(rf,{mode:"wait",initial:!1,children:y.jsx(_s.div,{className:"relative z-10 h-full min-w-0",initial:{opacity:0,x:h?32:-32,filter:"blur(6px)"},animate:{opacity:1,x:0,filter:"blur(0px)"},exit:{opacity:0,x:h?-32:32,filter:"blur(6px)"},transition:{type:"spring",stiffness:320,damping:34,mass:.7,opacity:{duration:.18},filter:{duration:.22}},children:n},d)})}),!h&&y.jsx(Bj,{})]})]})]})]})}const eo=gw({component:()=>y.jsxs(y.Fragment,{children:[y.jsx(tb,{}),!1]}),beforeLoad:()=>{if(window.location.pathname==="/"&&!qj())throw vw({to:"/auth"})}}),JO=Te({getParentRoute:()=>eo,path:"/auth",component:De(()=>Ae(()=>import("./auth-D_7LuZ3W.js"),__vite__mapDeps([0,1,2,3,4,5,6])),"AuthPage")}),eL=Te({getParentRoute:()=>eo,path:"/setup",component:De(()=>Ae(()=>import("./index-x_t_kdGn.js"),__vite__mapDeps([7,1,8,5,9,3,10,11,12,13,4,6])),"SetupPage")}),Re=Te({getParentRoute:()=>eo,id:"protected",component:()=>y.jsx(WO,{children:y.jsx(tb,{})}),errorComponent:({error:n})=>y.jsx(a0,{error:n})}),tL=Te({getParentRoute:()=>Re,path:"/",component:De(()=>Ae(()=>import("./index-C5U4NsIF.js"),__vite__mapDeps([14,1,6,15,8,5,16,17,12,13,3,18,19,9,20,4])),"IndexPage")}),nL=Te({getParentRoute:()=>Re,path:"/config/bot",component:De(()=>Ae(()=>import("./bot-zehsWfTg.js"),__vite__mapDeps([21,1,22,23,24,17,6,9,5,3,11,25,26,10,27,28,12,8,13,4])),"BotConfigPage")}),aL=Te({getParentRoute:()=>Re,path:"/config/modelProvider",component:De(()=>Ae(()=>import("./index-V_LLuoFO.js"),__vite__mapDeps([29,1,30,4,5,6,3,28,9,17,19,31,12,8,13])),"ModelProviderConfigPage")}),iL=Te({getParentRoute:()=>Re,path:"/config/model",component:De(()=>Ae(()=>import("./model-Bpgh3xA9.js"),__vite__mapDeps([32,1,9,5,3,30,4,6,28,17,19,31,10,27,12,8,13,26,11,25,33,34])),"ModelConfigPage")}),sL=Te({getParentRoute:()=>Re,path:"/config/prompts",component:De(()=>Ae(()=>import("./prompts-Ck1GtTX1.js"),__vite__mapDeps([35,1,23,17,6,9,5,3,25,4])),"PromptManagementPage")}),oL=Te({getParentRoute:()=>Re,path:"/config/adapter",component:De(()=>Ae(()=>import("./adapter-disabled-CLDOktNC.js"),__vite__mapDeps([36,1,3,4,5,6])),"AdapterConfigPage")}),rL=Te({getParentRoute:()=>Re,path:"/resource/emoji",component:De(()=>Ae(()=>import("./index-Bsbt9db6.js"),__vite__mapDeps([37,1,9,5,3,38,16,6,17,19,39,40,41,11,15,4,42])),"EmojiManagementPage")}),lL=Te({getParentRoute:()=>Re,path:"/resource/expression",component:De(()=>Ae(()=>import("./index-DYRlR_zV.js"),__vite__mapDeps([43,1,18,17,6,19,5,3,9,20,10,31,4])),"ExpressionManagementPage")}),cL=Te({getParentRoute:()=>Re,path:"/resource/person",component:De(()=>Ae(()=>import("./person-DaV3zh8d.js"),__vite__mapDeps([44,1,19,5,3,9,10,31,11,4,6])),"PersonManagementPage")}),uL=Te({getParentRoute:()=>Re,path:"/resource/jargon",component:De(()=>Ae(()=>import("./index-P80u2Mbr.js"),__vite__mapDeps([45,1,9,5,3,17,6,39,40,41,10,11,19,31,4])),"JargonManagementPage")}),fL=Te({getParentRoute:()=>Re,path:"/resource/knowledge-graph",component:De(()=>Ae(()=>import("./index-DIOXYKVA.js").then(n=>n.V),__vite__mapDeps([46,1,17,6,3,9,5,19,47,16,38,48])),"KnowledgeGraphPage")}),dL=Te({getParentRoute:()=>Re,path:"/resource/knowledge-base",component:De(()=>Ae(()=>import("./knowledge-base-Du35OURl.js"),__vite__mapDeps([49,1,23,46,17,6,3,9,5,19,47,16,38,48,31,11,50,8,4])),"KnowledgeBasePage")}),hL=Te({getParentRoute:()=>Re,path:"/logs",component:De(()=>Ae(()=>import("./logs-bFuaYf8z.js"),__vite__mapDeps([51,1,9,5,3,27,4,6,28,52,50])),"LogViewerPage")}),mL=Te({getParentRoute:()=>Re,path:"/reasoning-process",component:De(()=>Ae(()=>import("./reasoning-process-CrCr8cDD.js"),__vite__mapDeps([53,1,17,6,9,5,3,4])),"ReasoningProcessPage")}),pL=Te({getParentRoute:()=>Re,path:"/planner-monitor",component:De(()=>Ae(()=>import("./index-B_FHivTS.js"),__vite__mapDeps([54,1,17,6,25,5,50,3,4])),"PlannerMonitorPage")}),gL=Te({getParentRoute:()=>Re,path:"/chat",component:De(()=>Ae(()=>import("./index-BnkN5WGH.js"),__vite__mapDeps([55,1,50,11,3,5,9,4,6])),"ChatPage")}),yL=Te({getParentRoute:()=>Re,path:"/plugins",component:De(()=>Ae(()=>import("./index-BpTcuomx.js"),__vite__mapDeps([56,1,17,6,19,5,3,8,9,12,13,57,50,58,4])),"PluginsPage")}),vL=Te({getParentRoute:()=>Re,path:"/plugin-detail",component:De(()=>Ae(()=>import("./plugin-detail-C98YfI36.js"),__vite__mapDeps([59,1,17,6,57,50,58,39,40,41,11,3,4,5])),"PluginDetailPage")}),bL=Te({getParentRoute:()=>Re,path:"/model-presets",component:De(()=>Ae(()=>import("./model-presets-C1oJlh_V.js"),__vite__mapDeps([60,1,3,4,5,6])),"ModelPresetsPage")}),SL=Te({getParentRoute:()=>Re,path:"/plugin-config",component:De(()=>Ae(()=>import("./plugin-config-Gj4DzZjP.js"),__vite__mapDeps([61,1,10,5,27,11,17,6,34,9,3,23,22,12,8,13,58,4])),"PluginConfigPage")}),xL=Te({getParentRoute:()=>Re,path:"/plugin-mirrors",component:De(()=>Ae(()=>import("./plugin-mirrors-Chrh5WMR.js"),__vite__mapDeps([62,1,17,6,10,5,31,3,4])),"PluginMirrorsPage")}),TL=Te({getParentRoute:()=>Re,path:"/mcp-settings",component:De(()=>Ae(()=>import("./mcp-settings-6oaCtDHj.js"),__vite__mapDeps([63,1,17,6,26,11,10,5,9,3,24,25,27,28,12,8,13,4])),"MCPSettingsPage")}),wL=Te({getParentRoute:()=>Re,path:"/settings",component:De(()=>Ae(()=>import("./index-5HyjKTOp.js"),__vite__mapDeps([64,1,2,10,5,27,65,3,23,9,19,13,50,52,4,6])),"SettingsPage")}),CL=Te({getParentRoute:()=>Re,path:"/config/pack-market",component:De(()=>Ae(()=>import("./pack-market-BOV814Tz.js"),__vite__mapDeps([66,1,17,6,20,3,15,33,4,5])))}),DL=Te({getParentRoute:()=>Re,path:"/config/pack-market/$packId",component:De(()=>Ae(()=>import("./pack-detail-BOBdaAtu.js"),__vite__mapDeps([67,1,17,6,19,5,3,68,9,15,65,31,25,33,4])))}),AL=Te({getParentRoute:()=>Re,path:"/survey/webui-feedback",component:De(()=>Ae(()=>import("./webui-feedback-D6Zzxnbw.js"),__vite__mapDeps([69,1,70,8,5,11,68,3,19,27,9,4,6])),"WebUIFeedbackSurveyPage")}),EL=Te({getParentRoute:()=>Re,path:"/survey/maibot-feedback",component:De(()=>Ae(()=>import("./maibot-feedback-BNwa_tM0.js"),__vite__mapDeps([71,1,70,8,5,11,68,3,19,27,9,13,4,6])),"MaiBotFeedbackSurveyPage")}),ML=Te({getParentRoute:()=>eo,path:"*",component:c0}),Px=eo.addChildren([JO,eL,Re.addChildren([tL,nL,aL,iL,sL,oL,rL,lL,uL,cL,fL,dL,yL,vL,bL,SL,xL,TL,hL,mL,pL,gL,wL,CL,DL,AL,EL]),ML]);function _x(n){const a=n.fullPath?[n.fullPath]:[],s=n.children?.flatMap(_x)??[];return[...a,...s]}const kL=new Set(_x(Px)),NL=yw({routeTree:Px,defaultNotFoundComponent:c0,defaultErrorComponent:({error:n})=>y.jsx(a0,{error:n})});function RL(){const[n,a]=T.useState(!1);return T.useEffect(()=>{window.electronAPI.isFirstLaunch().then(a)},[]),y.jsx(hM,{open:n})}YC.createRoot(document.getElementById("root")).render(y.jsx(T.StrictMode,{children:y.jsx(lM,{children:y.jsx(sE,{children:y.jsx(xE,{children:y.jsx(ZE,{defaultTheme:"system",children:y.jsx(CE,{children:y.jsxs(WE,{children:[Je()&&y.jsx(RL,{}),y.jsx(bw,{router:NL}),y.jsx(nM,{}),y.jsx(CM,{})]})})})})})})}));export{JE as $,Jj as A,He as B,ad as C,Zf as D,bM as E,UO as F,VO as G,zx as H,Mi as I,Bx as J,QO as K,Is as L,QL as M,ZL as N,Ux as O,$f as P,Vx as Q,KO as R,Fs as S,qO as T,t3 as U,WL as V,rO as W,e0 as X,t0 as Y,$L as Z,JL as _,$S as a,n3 as a0,e3 as a1,i3 as a2,nO as a3,vM as a4,Gd as a5,sM as a6,Pj as a7,_j as a8,Hj as a9,Dy as aA,PL as aB,_L as aC,wE as aD,IL as aE,Ae as aF,DL as aG,ZS as aa,a3 as ab,lO as ac,ux as ad,js as ae,Ey as af,My as ag,ky as ah,Je as ai,Pd as aj,nd as ak,GL as al,dE as am,aM as an,fO as ao,BE as ap,ME as aq,TE as ar,SE as as,UL as at,Qb as au,VL as av,Yb as aw,wy as ax,QE as ay,HL as az,id as b,WS as c,sd as d,od as e,rd as f,K as g,YL as h,ol as i,rl as j,ll as k,aO as l,KL as m,tx as n,nx as o,Yt as p,ix as q,sx as r,ax as s,rx as t,Nn as u,ox as v,s3 as w,Kt as x,qL as y,XL as z}; diff --git a/dashboard/dist/assets/index-DIOXYKVA.js b/dashboard/dist/assets/index-DIOXYKVA.js new file mode 100644 index 00000000..2288009d --- /dev/null +++ b/dashboard/dist/assets/index-DIOXYKVA.js @@ -0,0 +1 @@ +import{r as o,j as e,g as Nt,i as wt}from"./router-zNjPR4CY.js";import{D as Y,i as ee,j as te,k as se,l as St,a5 as ne,X as Le,Y as Be,I as We,S as kt,B as b,a3 as _t,ai as Ct,aj as Mt,E as Et,T as Pt,O as $t,P as qe}from"./index-CuOHsLf7.js";import{B as g}from"./badge-CDs67obV.js";import{T as Tt,S as Ke,a7 as Dt,v as F,D as Ot,N as It,R as Rt,x as Lt}from"./icons-DTcdLw9j.js";import{S as Bt,a as qt,b as At,c as Ft,d as de}from"./select-DGqIoF9r.js";import{C as Se}from"./checkbox-DWiVrbnx.js";import{r as Gt,R as Ut,B as Jt,a as zt,C as Ht,M as Vt,P as Wt,H as K,b as Q}from"./reactflow-Bd-f2Ch7.js";const ue=8;function Kt(t){switch(t){case"entity":return"实体删除";case"relation":return"关系删除";case"paragraph":return"段落删除";case"source":return"来源删除";case"mixed":return"混合删除";default:return t||"删除"}}function Ae(t,s){return`${t} ${s}`}function Qt({items:t}){return t.length<=0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"当前预览没有可展示的明细项。"}):e.jsx("div",{className:"space-y-2",children:t.slice(0,16).map(s=>e.jsxs("div",{className:"rounded-lg border bg-muted/30 p-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(g,{variant:"outline",children:s.item_type}),s.source?e.jsx(g,{variant:"secondary",children:s.source}):null]}),e.jsx("div",{className:"mt-2 text-sm font-medium break-words",children:s.label||s.item_key||s.item_hash}),s.preview?e.jsx("div",{className:"mt-1 text-xs text-muted-foreground break-words",children:s.preview}):null,e.jsx("code",{className:"mt-2 block break-all text-[11px] text-muted-foreground",children:s.item_hash||s.item_key})]},`${s.item_type}:${s.item_hash}:${s.item_key??""}`))})}function Zt({open:t,onOpenChange:s,title:n,description:a,preview:l,result:r,loadingPreview:m=!1,executing:p=!1,restoring:y=!1,error:h,onExecute:k,onRestore:N}){const[S,$]=o.useState(""),[E,D]=o.useState(1),T=l?.counts??r?.counts??{},G=Array.isArray(l?.sources)?l.sources:[],C=Array.isArray(l?.items)?l.items:[],M=o.useMemo(()=>{const j=S.trim().toLowerCase();return j?C.filter(_=>[_.item_type,_.item_hash,_.item_key,_.label,_.preview,_.source].map(L=>String(L??"").toLowerCase()).some(L=>L.includes(j))):C},[S,C]),v=Math.max(1,Math.ceil(M.length/ue)),he=o.useMemo(()=>{const j=(E-1)*ue;return M.slice(j,j+ue)},[M,E]),w=[{key:"entities",label:"实体",value:Number(T.entities??0)},{key:"relations",label:"关系",value:Number(T.relations??0)},{key:"paragraphs",label:"段落",value:Number(T.paragraphs??0)},{key:"sources",label:"来源",value:Number(T.sources??0)}].filter(j=>j.value>0);return o.useEffect(()=>{$(""),D(1)},[l?.mode,l?.item_count,t]),o.useEffect(()=>{D(1)},[S]),o.useEffect(()=>{E>v&&D(v)},[E,v]),e.jsx(Y,{open:t,onOpenChange:s,children:e.jsxs(ee,{className:"max-w-3xl max-h-[85vh] grid grid-rows-[auto_1fr_auto]",confirmOnEnter:!0,children:[e.jsxs(te,{children:[e.jsxs(se,{className:"flex items-center gap-2",children:[e.jsx(Tt,{className:"h-5 w-5 text-amber-500"}),n]}),a?e.jsx(St,{children:a}):null]}),e.jsxs(ne,{className:"space-y-4 overflow-y-auto",children:[m?e.jsx("div",{className:"rounded-lg border bg-muted/30 p-4 text-sm text-muted-foreground",children:"正在生成删除预览..."}):null,h?e.jsx(Le,{variant:"destructive",children:e.jsx(Be,{children:h})}):null,l?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"rounded-xl border bg-muted/30 p-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(g,{children:Kt(l.mode)}),e.jsx(g,{variant:"secondary",children:Ae("预览项",Number(l.item_count??C.length))}),w.map(j=>e.jsx(g,{variant:"outline",children:Ae(j.label,j.value)},j.key))]}),G.length>0?e.jsxs("div",{className:"mt-3 text-sm text-muted-foreground break-words",children:["关联来源:",G.join("、")]}):null,l.matched_source_count?e.jsxs("div",{className:"mt-2 text-xs text-muted-foreground",children:["命中来源 ",l.matched_source_count,l.requested_source_count?` / 请求来源 ${l.requested_source_count}`:""]}):null]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-semibold",children:"本次将删除的对象摘要"}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:["命中 ",M.length," / ",C.length," 项"]})]}),e.jsxs("div",{className:"flex flex-col gap-2 md:min-w-[300px]",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Ke,{className:"pointer-events-none absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),e.jsx(We,{value:S,onChange:j=>$(j.target.value),placeholder:"搜索类型 / hash / item_key / source",className:"pl-8"})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[e.jsxs("span",{children:["第 ",E," / ",v," 页"]}),e.jsxs("span",{children:["每页 ",ue," 项"]})]})]})]}),e.jsx(kt,{className:"h-[320px] rounded-lg border bg-background/60",children:e.jsx("div",{className:"p-3",children:e.jsx(Qt,{items:he})})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx(b,{variant:"outline",size:"sm",onClick:()=>D(j=>Math.max(1,j-1)),disabled:E<=1,children:"上一页"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"支持按对象类型、hash、item_key、source 和预览内容检索"}),e.jsx(b,{variant:"outline",size:"sm",onClick:()=>D(j=>Math.min(v,j+1)),disabled:E>=v,children:"下一页"})]})]})]}):null,r?.success?e.jsx(Le,{children:e.jsxs(Be,{className:"space-y-1",children:[e.jsxs("div",{children:["删除执行成功,操作 ID:",e.jsx("code",{children:r.operation_id})]}),e.jsxs("div",{children:["实际删除:实体 ",r.deleted_entity_count,",关系 ",r.deleted_relation_count,",段落 ",r.deleted_paragraph_count,",来源 ",r.deleted_source_count]})]})}):null]}),e.jsxs(_t,{children:[e.jsx(b,{variant:"outline",onClick:()=>s(!1),children:"关闭"}),r?.success&&N?e.jsxs(b,{variant:"outline",onClick:N,disabled:y,children:[e.jsx(Dt,{className:"mr-2 h-4 w-4"}),y?"恢复中...":"恢复本次删除"]}):null,r?.success?null:e.jsxs(b,{"data-dialog-action":"confirm",variant:"destructive",onClick:k,disabled:m||p||!l,children:[e.jsx(F,{className:"mr-2 h-4 w-4"}),p?"执行中...":"确认删除"]})]})]})})}async function Xt(){if(Ct()){const t=await Mt();return Fe(t)}return Fe(void 0)}function Fe(t){const s=String(t??"").replace(/\/+$/,"");return s?s.endsWith("/api/webui/memory")?s:s.endsWith("/api/webui")?`${s}/memory`:`${s}/api/webui/memory`:"/api/webui/memory"}function Yt(t){return{...t,credentials:t?.credentials??"include"}}function es(t){const s=t.trimStart().toLowerCase();return s.startsWith(""u")return t;try{return new URL(t,window.location.href).toString()}catch{return t}}function ts(t){const s=[];if(typeof window<"u"){const n=window.location.hostname;(n==="localhost"||n==="127.0.0.1")&&s.push(`http://${n}:8001/api/webui/memory`)}return s.push("http://127.0.0.1:8001/api/webui/memory"),s.push("http://localhost:8001/api/webui/memory"),Array.from(new Set(s)).filter(n=>n!==t)}async function c(t,s){const n=await Xt(),a=[`${n}${t}`,...ts(n).map(r=>`${r}${t}`)],l=Yt(s);for(let r=0;r{n.append("files",a)}),n.append("payload_json",JSON.stringify(s)),c("/import/upload",{method:"POST",body:n})}async function an(t){return c("/import/paste",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async function rn(t){return c("/import/raw-scan",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async function on(t){return c("/import/lpmm-openie",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async function ln(t){return c("/import/lpmm-convert",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async function cn(t){return c("/import/temporal-backfill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async function dn(t){return c("/import/maibot-migration",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async function un(t){return c(`/import/tasks/${encodeURIComponent(t)}/cancel`,{method:"POST"})}async function mn(t,s={}){return c(`/import/tasks/${encodeURIComponent(t)}/retry`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)})}async function hn(){return c("/retrieval_tuning/profile")}async function xn(t=20){return c(`/retrieval_tuning/tasks?limit=${t}`)}async function pn(t){return c("/retrieval_tuning/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async function fn(t){return c(`/retrieval_tuning/tasks/${encodeURIComponent(t)}/apply-best`,{method:"POST"})}function Qe(t){if(!t)return"未知";const s=new Date(Number(t)*1e3);return Number.isNaN(s.getTime())?"未知":s.toLocaleString()}function Ze({items:t,onDeleteRelation:s}){return t.length<=0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"暂无可展示的关系语义。"}):e.jsx("div",{className:"space-y-2",children:t.map(n=>e.jsxs("div",{className:"rounded-lg border bg-muted/40 p-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(g,{variant:"outline",children:n.predicate||"未命名谓词"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["证据段落 ",n.paragraph_count]}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["置信度 ",n.confidence.toFixed(3)]})]}),s?e.jsxs(b,{size:"sm",variant:"outline",onClick:()=>s(n),children:[e.jsx(F,{className:"mr-2 h-4 w-4"}),"删除关系"]}):null]}),e.jsx("p",{className:"mt-2 text-sm font-medium",children:n.text}),e.jsx("code",{className:"mt-2 block break-all text-xs text-muted-foreground",children:n.hash})]},n.hash))})}function Xe({items:t,onDeleteParagraph:s}){return t.length<=0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"暂无可展示的来源段落。"}):e.jsx("div",{className:"space-y-3",children:t.map(n=>e.jsxs("div",{className:"rounded-lg border bg-muted/40 p-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(g,{variant:"secondary",children:n.source||"未命名来源"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["实体 ",n.entity_count]}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["关系 ",n.relation_count]}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["更新时间 ",Qe(n.updated_at)]})]}),s?e.jsxs(b,{size:"sm",variant:"outline",onClick:()=>s(n),children:[e.jsx(F,{className:"mr-2 h-4 w-4"}),"删除段落"]}):null]}),e.jsx("p",{className:"mt-2 whitespace-pre-wrap text-sm break-words",children:n.preview||n.content}),n.entities.length>0&&e.jsx("div",{className:"mt-2 flex flex-wrap gap-1",children:n.entities.slice(0,8).map(a=>e.jsx(g,{variant:"outline",className:"text-xs",children:a},`${n.hash}-${a}`))})]},n.hash))})}function ls({open:t,onOpenChange:s,selectedNodeData:n,nodeDetail:a,loading:l=!1,onOpenEvidence:r,onDeleteEntity:m,onDeleteRelation:p,onDeleteParagraph:y}){const h=a?.node??n,[k,N]=o.useState(!1);return o.useEffect(()=>{t||N(!1)},[t,h?.id]),e.jsx(Y,{open:t,onOpenChange:s,children:e.jsxs(ee,{className:"max-w-4xl max-h-[85vh] grid grid-rows-[auto_1fr_auto] overflow-hidden",children:[e.jsx(te,{children:e.jsx(se,{children:"实体详情"})}),e.jsx(ne,{className:"h-full overflow-y-auto",children:h?e.jsxs("div",{className:"space-y-6 pb-2",children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3 rounded-xl border bg-muted/30 p-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(g,{children:h.type==="entity"?"实体":h.type}),"appearance_count"in(a?.node??{})&&e.jsxs(g,{variant:"outline",children:["出现次数 ",a?.node.appearance_count??0]})]}),e.jsx("h3",{className:"mt-2 text-lg font-semibold",children:h.content}),e.jsx("code",{className:"mt-2 block break-all text-xs text-muted-foreground",children:h.id})]}),e.jsxs("div",{className:"flex flex-col items-end gap-3",children:[e.jsx(b,{variant:"outline",onClick:r,disabled:!r,children:"切到证据视图"}),m?e.jsxs("div",{className:"flex flex-col items-end gap-2 rounded-lg border bg-background p-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx(Se,{checked:k,onCheckedChange:S=>N(!!S),"aria-label":"删除该实体相关证据段落"}),e.jsx("span",{children:"删除该实体相关证据段落"})]}),e.jsxs(b,{variant:"outline",onClick:()=>m({includeParagraphs:k}),children:[e.jsx(F,{className:"mr-2 h-4 w-4"}),"删除实体"]})]}):null]})]}),l?e.jsx("p",{className:"text-sm text-muted-foreground",children:"正在加载节点证据…"}):e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h4",{className:"text-sm font-semibold",children:"相关关系"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[a?.relations.length??0," 条"]})]}),e.jsx(Ze,{items:a?.relations??[],onDeleteRelation:p})]}),e.jsxs("section",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h4",{className:"text-sm font-semibold",children:"支持段落"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[a?.paragraphs.length??0," 个"]})]}),e.jsx(Xe,{items:a?.paragraphs??[],onDeleteParagraph:y})]})]})]}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"尚未选中实体。"})})]})})}function cs({open:t,onOpenChange:s,selectedEdgeData:n,edgeDetail:a,loading:l=!1,onOpenEvidence:r,onDeleteEdgeGroup:m,onDeleteRelation:p,onDeleteParagraph:y}){const h=n?.source.content??a?.edge.source??"",k=n?.target.content??a?.edge.target??"",[N,S]=o.useState(!1);return o.useEffect(()=>{t||S(!1)},[t,a?.edge.source,a?.edge.target]),e.jsx(Y,{open:t,onOpenChange:s,children:e.jsxs(ee,{className:"max-w-4xl max-h-[85vh] overflow-hidden grid grid-rows-[auto_1fr_auto]",children:[e.jsx(te,{children:e.jsx(se,{children:"关系详情"})}),e.jsx(ne,{className:"overflow-y-auto",children:n||a?e.jsxs("div",{className:"space-y-6 pb-2",children:[e.jsx("div",{className:"rounded-xl border bg-muted/30 p-4",children:e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[(a?.edge.predicates??[]).map($=>e.jsx(g,{variant:"outline",children:$},$)),e.jsxs(g,{variant:"secondary",children:["关系 ",a?.edge.relation_count??n?.edge.relationCount??0]}),e.jsxs(g,{variant:"secondary",children:["证据 ",a?.edge.evidence_count??n?.edge.evidenceCount??0]})]}),e.jsxs("p",{className:"mt-3 text-base font-semibold break-words",children:[h," → ",k]}),e.jsxs("p",{className:"mt-2 text-sm text-muted-foreground",children:["聚合权重 ",(a?.edge.weight??n?.edge.weight??0).toFixed(4)]})]}),e.jsxs("div",{className:"flex flex-col items-end gap-3",children:[e.jsx(b,{variant:"outline",onClick:r,disabled:!r,children:"切到证据视图"}),m?e.jsxs("div",{className:"flex flex-col items-end gap-2 rounded-lg border bg-background p-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx(Se,{checked:N,onCheckedChange:$=>S(!!$),"aria-label":"同时删除支撑段落"}),e.jsx("span",{children:"同时删除支撑段落"})]}),e.jsxs(b,{variant:"outline",onClick:()=>m({includeParagraphs:N}),children:[e.jsx(F,{className:"mr-2 h-4 w-4"}),"删除此关系组"]})]}):null]})]})}),l?e.jsx("p",{className:"text-sm text-muted-foreground",children:"正在加载边的证据…"}):e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h4",{className:"text-sm font-semibold",children:"关系语义"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[a?.relations.length??0," 条"]})]}),e.jsx(Ze,{items:a?.relations??[],onDeleteRelation:p})]}),e.jsxs("section",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h4",{className:"text-sm font-semibold",children:"支持段落"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[a?.paragraphs.length??0," 个"]})]}),e.jsx(Xe,{items:a?.paragraphs??[],onDeleteParagraph:y})]})]})]}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"尚未选中关系。"})})]})})}function ds({open:t,onOpenChange:s,relation:n,metadata:a,onDeleteRelation:l}){const[r,m]=o.useState(!1);return o.useEffect(()=>{t||m(!1)},[t,n?.hash]),n?e.jsx(Y,{open:t,onOpenChange:s,children:e.jsxs(ee,{className:"max-w-2xl max-h-[80vh] grid grid-rows-[auto_1fr_auto] overflow-hidden",children:[e.jsx(te,{children:e.jsx(se,{children:"关系明细"})}),e.jsxs(ne,{className:"space-y-4 overflow-y-auto",children:[e.jsxs("div",{className:"rounded-xl border bg-muted/30 p-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(g,{variant:"outline",children:n.predicate||a?.predicate||"未命名谓词"}),e.jsxs(g,{variant:"secondary",children:["证据段落 ",n.paragraph_count]}),e.jsxs(g,{variant:"secondary",children:["置信度 ",n.confidence.toFixed(3)]})]}),e.jsx("p",{className:"mt-3 text-base font-semibold break-words",children:n.text}),e.jsx("code",{className:"mt-3 block break-all text-xs text-muted-foreground",children:n.hash})]}),l?e.jsxs("div",{className:"rounded-lg border bg-background p-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx(Se,{checked:r,onCheckedChange:p=>m(!!p),"aria-label":"同时删除支撑该关系的段落"}),e.jsx("span",{children:"同时删除支撑该关系的段落"})]}),e.jsxs(b,{className:"mt-3",variant:"outline",onClick:()=>l(n,r),children:[e.jsx(F,{className:"mr-2 h-4 w-4"}),"删除这条关系"]})]}):null]})]})}):null}function us({open:t,onOpenChange:s,paragraph:n,metadata:a,onDeleteParagraph:l}){return n?e.jsx(Y,{open:t,onOpenChange:s,children:e.jsxs(ee,{className:"max-w-2xl max-h-[80vh] grid grid-rows-[auto_1fr_auto] overflow-hidden",children:[e.jsx(te,{children:e.jsx(se,{children:"段落明细"})}),e.jsxs(ne,{className:"space-y-4 overflow-y-auto",children:[e.jsxs("div",{className:"rounded-xl border bg-muted/30 p-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(g,{variant:"secondary",children:n.source||a?.source||"未命名来源"}),e.jsxs(g,{variant:"outline",children:["实体 ",n.entity_count]}),e.jsxs(g,{variant:"outline",children:["关系 ",n.relation_count]}),e.jsxs(g,{variant:"outline",children:["更新时间 ",Qe(n.updated_at??a?.updated_at)]})]}),e.jsx("p",{className:"mt-3 whitespace-pre-wrap text-sm break-words",children:n.content}),e.jsx("code",{className:"mt-3 block break-all text-xs text-muted-foreground",children:n.hash})]}),n.entities.length>0?e.jsx("div",{className:"flex flex-wrap gap-2",children:n.entities.map(r=>e.jsx(g,{variant:"outline",children:r},`${n.hash}-${r}`))}):null,l?e.jsxs(b,{variant:"outline",onClick:()=>l(n),children:[e.jsx(F,{className:"mr-2 h-4 w-4"}),"删除这段证据"]}):null]})]})}):null}var ms=Gt();const Je=Nt(ms),Ye=o.memo(({data:t})=>e.jsxs("div",{className:"px-4 py-2 shadow-md rounded-lg bg-gradient-to-br from-blue-500 to-blue-600 border-2 border-blue-700 min-w-[120px]",children:[e.jsx(K,{type:"target",position:Q.Top}),e.jsx("div",{className:"font-semibold text-white text-sm truncate max-w-[200px]",title:t.content,children:t.label}),e.jsx(K,{type:"source",position:Q.Bottom})]}));Ye.displayName="EntityNode";const et=o.memo(({data:t})=>e.jsxs("div",{className:"px-3 py-2 shadow-md rounded-md bg-gradient-to-br from-green-500 to-green-600 border-2 border-green-700 min-w-[100px]",children:[e.jsx(K,{type:"target",position:Q.Top}),e.jsx("div",{className:"font-medium text-white text-xs truncate max-w-[150px]",title:t.content,children:t.label}),e.jsx(K,{type:"source",position:Q.Bottom})]}));et.displayName="ParagraphNode";const tt=o.memo(({data:t})=>e.jsxs("div",{className:"px-3 py-2 shadow-md rounded-md bg-gradient-to-br from-amber-500 to-orange-600 border-2 border-orange-700 min-w-[140px]",children:[e.jsx(K,{type:"target",position:Q.Top}),e.jsx("div",{className:"font-medium text-white text-xs truncate max-w-[180px]",title:t.content,children:t.label}),e.jsx(K,{type:"source",position:Q.Bottom})]}));tt.displayName="RelationNode";const hs={entity:Ye,relation:tt,paragraph:et};function xs(t,s){const n=new Je.graphlib.Graph;n.setDefaultEdgeLabel(()=>({})),n.setGraph({rankdir:"TB",ranksep:100,nodesep:80});const a=[],l=[];return t.forEach(r=>{const m=r.type==="relation"?{width:180,height:60}:r.type==="paragraph"?{width:190,height:56}:{width:150,height:50};n.setNode(r.id,m)}),s.forEach(r=>{n.setEdge(r.source,r.target)}),Je.layout(n),t.forEach(r=>{const m=n.node(r.id);a.push({id:r.id,type:r.type,position:{x:m.x-75,y:m.y-25},data:{label:r.content.slice(0,20)+(r.content.length>20?"...":""),content:r.content,type:r.type}})}),s.forEach((r,m)=>{const p=r.kind&&r.kind!=="relation",y=r.kind==="mentions"?"#0f766e":r.kind==="supports"?"#b45309":r.kind==="subject"?"#4f46e5":r.kind==="object"?"#7c3aed":"#64748b",h={id:`edge-${m}`,source:r.source,target:r.target,animated:t.length<=200&&(p||r.weight>5),style:{strokeWidth:p?Math.min(Math.max(r.weight,1.5),4):Math.min(r.weight/2,5),opacity:p?.9:.6,stroke:y},labelStyle:{fill:"#334155",fontSize:11,fontWeight:600},labelBgPadding:[6,2],labelBgBorderRadius:6,labelBgStyle:{fill:"rgba(255,255,255,0.88)",fillOpacity:.95}};r.label&&(p||t.length<=120)?h.label=r.label:r.weight>10&&t.length<100&&(h.label=`${r.weight.toFixed(0)}`),l.push(h)}),{nodes:a,edges:l}}function ze({graphData:t,onNodeClick:s,onEdgeClick:n,loading:a=!1}){const{nodes:l,edges:r}=o.useMemo(()=>xs(t.nodes,t.edges),[t.edges,t.nodes]),m=l.length,p=o.useMemo(()=>t.nodes.some(h=>h.type!=="entity")?"evidence":"entity",[t.nodes]),y=o.useCallback(h=>h.type==="entity"?"#6366f1":h.type==="relation"?"#f59e0b":h.type==="paragraph"?"#10b981":"#6b7280",[]);return a?null:e.jsxs("div",{style:{touchAction:"none"},role:"img","aria-label":`知识图谱可视化,共 ${m} 个节点,${r.length} 条关系`,className:"w-full h-full",children:[e.jsx("span",{className:"sr-only",children:`知识图谱包含 ${m} 个节点和 ${r.length} 条关系。`}),e.jsxs(Ut,{nodes:l,edges:r,onNodeClick:s,onEdgeClick:n,nodeTypes:hs,fitView:!0,minZoom:.05,maxZoom:1.5,defaultViewport:{x:0,y:0,zoom:.5},elevateNodesOnSelect:m<=500,nodesDraggable:m<=1e3,attributionPosition:"bottom-left",panOnScroll:!0,panOnScrollMode:void 0,panOnDrag:!0,zoomOnPinch:!0,children:[e.jsx(Jt,{variant:zt.Dots,gap:12,size:1}),e.jsx(Ht,{}),m<=500&&e.jsx(Vt,{nodeColor:y,nodeBorderRadius:8,pannable:!0,zoomable:!0}),e.jsxs(Wt,{position:"top-right",className:"bg-background/95 backdrop-blur-sm rounded-lg border p-3 shadow-lg",children:[e.jsx("div",{className:"text-sm font-semibold mb-2",children:p==="entity"?"实体关系图图例":"证据视图图例"}),e.jsxs("div",{className:"space-y-2 text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-4 h-4 rounded bg-gradient-to-br from-blue-500 to-blue-600 border-2 border-blue-700","aria-hidden":"true"}),e.jsx("span",{children:"实体节点"})]}),p==="evidence"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-4 h-4 rounded bg-gradient-to-br from-amber-500 to-orange-600 border-2 border-orange-700","aria-hidden":"true"}),e.jsx("span",{children:"关系节点"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-4 h-4 rounded bg-gradient-to-br from-green-500 to-green-600 border-2 border-green-700","aria-hidden":"true"}),e.jsx("span",{children:"段落节点"})]}),e.jsx("div",{className:"text-muted-foreground",children:"紫色线表示关系到宾语,蓝色线表示关系到主语,绿色/橙色线表示段落证据。"})]}),p==="entity"&&e.jsx("div",{className:"text-muted-foreground",children:"线条表示实体间聚合关系,边标签优先显示主谓词,更多语义可点击查看详情。"}),m>200&&e.jsxs("div",{className:"mt-2 pt-2 border-t text-yellow-600 dark:text-yellow-500",children:[e.jsx("div",{className:"font-semibold",children:"性能模式"}),e.jsx("div",{children:"已禁用动画"}),m>500&&e.jsx("div",{children:"已禁用缩略图"})]})]})]})]})]})}function ps(t){const s=(t.nodes??[]).map(a=>({id:a.id,type:"entity",content:String(a.name??a.id),metadata:a.attributes??{}})),n=(t.edges??[]).map(a=>({source:a.source,target:a.target,weight:Number(a.weight??1),kind:"relation",label:String(a.label??""),relationHashes:a.relation_hashes??[],predicates:a.predicates??[],relationCount:Number(a.relation_count??a.relation_hashes?.length??0),evidenceCount:Number(a.evidence_count??0)}));return{nodes:s,edges:n}}function He(t){return{nodes:(t?.nodes??[]).map(s=>({id:s.id,type:s.type,content:s.content,metadata:s.metadata??{}})),edges:(t?.edges??[]).map(s=>({source:s.source,target:s.target,weight:Number(s.weight??1),kind:s.kind,label:s.label})),focusEntities:t?.focus_entities??[]}}function Ve(t,s){const n=s.trim().toLowerCase();if(!n)return t;const a=new Set(t.nodes.filter(r=>r.content.toLowerCase().includes(n)||r.id.toLowerCase().includes(n)).map(r=>r.id)),l=t.edges.filter(r=>{const m=String(r.label??"").toLowerCase(),p=(r.predicates??[]).some(h=>h.toLowerCase().includes(n)),y=a.has(r.source)||a.has(r.target)||m.includes(n)||p;return y&&(a.add(r.source),a.add(r.target)),y});return{nodes:t.nodes.filter(r=>a.has(r.id)),edges:l,focusEntities:t.focusEntities}}function fs(t,s){const n=new Set,a=[];for(const l of[...t?.relations??[],...s?.relations??[]])n.has(l.hash)||(n.add(l.hash),a.push(l));return a}function gs(t,s){const n=new Set,a=[];for(const l of[...t?.paragraphs??[],...s?.paragraphs??[]])n.has(l.hash)||(n.add(l.hash),a.push(l));return a}function ys(t){const s=String(t?.hash??"").trim();if(!s)return null;const n=String(t?.subject??"").trim(),a=String(t?.predicate??"").trim(),l=String(t?.object??"").trim(),r=String(t?.text??`${n} ${a} ${l}`).trim();return{hash:s,subject:n,predicate:a,object:l,text:r,confidence:Number(t?.confidence??0),paragraph_count:Number(t?.paragraph_count??0),paragraph_hashes:Array.isArray(t?.paragraph_hashes)?t.paragraph_hashes.map(String):[],source_paragraph:""}}function js(t){const s=String(t?.hash??"").trim();if(!s)return null;const n=String(t?.preview??"").trim();return{hash:s,content:n,preview:n,source:String(t?.source??"").trim(),updated_at:typeof t?.updated_at=="number"?t.updated_at:null,entity_count:Number(t?.entity_count??0),relation_count:Number(t?.relation_count??0),entities:[],relations:[]}}function bs({embedded:t=!1,onOpenConsole:s}={}){const n=wt(),{toast:a}=Et(),[l,r]=o.useState(!1),[m,p]=o.useState("120"),[y,h]=o.useState(""),[k,N]=o.useState(""),[S,$]=o.useState(!1),[E,D]=o.useState([]),[T,G]=o.useState(!1),[C,M]=o.useState("entity"),[v,he]=o.useState({nodes:[],edges:[]}),[w,j]=o.useState({nodes:[],edges:[]}),[_,L]=o.useState({nodes:[],edges:[]}),[xe,st]=o.useState(null),[pe,B]=o.useState(null),[fe,q]=o.useState(null),[O,ae]=o.useState(null),[I,ge]=o.useState(null),[ke,U]=o.useState(null),[nt,re]=o.useState(null),[_e,J]=o.useState(null),[at,ie]=o.useState(null),[ye,z]=o.useState(!1),[H,Ce]=o.useState(null),[rt,Me]=o.useState(!1),[it,oe]=o.useState(null),[Z,je]=o.useState(null),[ot,Ee]=o.useState(!1),[lt,Pe]=o.useState(!1),[ct,be]=o.useState(null),$e=o.useMemo(()=>fs(O,I),[I,O]),Te=o.useMemo(()=>gs(O,I),[I,O]),De=o.useCallback(()=>{B(null),q(null),ae(null),ge(null),U(null),re(null),J(null),ie(null)},[]),A=o.useCallback(async i=>{try{r(!0);const d=await ss(Number(m)),u=ps(d),f=T&&k?Ve(u,k):u;st(d),he(u),j(f),L({nodes:[],edges:[]}),De(),i?.silent||a({title:"图谱已更新",description:`当前加载 ${u.nodes.length} 个节点、${u.edges.length} 条关系`})}catch(d){a({title:"加载失败",description:d instanceof Error?d.message:"未知错误",variant:"destructive"})}finally{r(!1)}},[k,m,De,T,a]);o.useEffect(()=>{A({silent:!0})},[A]);const Oe=o.useCallback(async()=>{const i=y.trim();if(!i){N(""),G(!1),D([]),j(v),a({title:"已重置筛选",description:`当前显示 ${v.nodes.length} 个节点、${v.edges.length} 条关系`});return}$(!0),N(i);try{const d=await ns(i,50);if(!d.success)throw new Error(d.error||"图谱检索失败");const u=Array.isArray(d.items)?d.items:[];D(u),G(!1),j(v),a({title:"全库检索完成",description:`命中 ${d.count??u.length} 条结果`})}catch{const u=Ve(v,i);D([]),G(!0),j(u),a({title:"后端检索失败,已回退本地筛选",description:`仅当前已加载范围(${u.nodes.length} 个节点、${u.edges.length} 条关系)`,variant:"destructive"})}finally{$(!1)}},[v,y,a]),V=o.useMemo(()=>({totalNodes:xe?.total_nodes??v.nodes.length,totalEdges:xe?.total_edges??v.edges.length,visibleNodes:w.nodes.length,visibleEdges:w.edges.length,evidenceNodes:_.nodes.length,evidenceEdges:_.edges.length}),[_.edges.length,_.nodes.length,v.edges.length,v.nodes.length,w.edges.length,w.nodes.length,xe]),R=o.useCallback(async i=>{Ce(i),be(null),je(null),oe(null),Me(!0);try{const d=await rs(i.request);be(d)}catch(d){oe(d instanceof Error?d.message:"删除预览失败")}finally{Me(!1)}},[]),ve=o.useCallback(i=>{i||(Ce(null),be(null),je(null),oe(null))},[]),dt=o.useCallback(async()=>{if(H)try{Ee(!0);const i=await is(H.request);je(i),a({title:i.success?"删除成功":"删除失败",description:i.success?`操作 ${i.operation_id} 已完成`:i.error||"未能执行删除",variant:i.success?"default":"destructive"}),i.success&&await A({silent:!0})}catch(i){oe(i instanceof Error?i.message:"删除失败"),a({title:"删除失败",description:i instanceof Error?i.message:"未知错误",variant:"destructive"})}finally{Ee(!1)}},[H,A,a]),ut=o.useCallback(async()=>{if(Z?.operation_id)try{Pe(!0),await os({operation_id:Z.operation_id,requested_by:"knowledge_graph"}),a({title:"恢复成功",description:`删除操作 ${Z.operation_id} 已恢复`}),ve(!1),await A({silent:!0})}catch(i){a({title:"恢复失败",description:i instanceof Error?i.message:"未知错误",variant:"destructive"})}finally{Pe(!1)}},[ve,Z?.operation_id,A,a]),le=o.useCallback(async(i,d)=>{const u=String(i||"").trim();if(!u)return;const f=w.nodes.find(x=>x.id===u);d?.locateInEvidence?B(null):B(f??{id:u,type:"entity",content:u,metadata:{}}),q(null),ge(null),U(null),re(null),J(null),ie(null);try{z(!0);const x=await Ue(u);ae(x),L(He(x.evidence_graph)),d?.locateInEvidence&&M("evidence")}catch(x){a({title:"加载节点详情失败",description:x instanceof Error?x.message:"未知错误",variant:"destructive"})}finally{z(!1)}},[w.nodes,a]),ce=o.useCallback(async(i,d,u)=>{const f=String(i||"").trim(),x=String(d||"").trim();if(!(!f||!x)){if(B(null),ae(null),U(null),re(null),J(null),ie(null),u?.locateInEvidence)q(null);else{const P=w.nodes.find(W=>W.id===f)??{id:f,type:"entity",content:f,metadata:{}},X=w.nodes.find(W=>W.id===x)??{id:x,type:"entity",content:x,metadata:{}},vt=w.edges.find(W=>W.source===f&&W.target===x)??{source:f,target:x,weight:1,kind:"relation",label:"",relationHashes:[],predicates:[],relationCount:0,evidenceCount:0};q({source:P,target:X,edge:vt})}try{z(!0);const P=await as(f,x);ge(P),L(He(P.evidence_graph)),u?.locateInEvidence&&M("evidence")}catch(P){a({title:"加载关系详情失败",description:P instanceof Error?P.message:"未知错误",variant:"destructive"})}finally{z(!1)}}},[w.edges,w.nodes,a]),mt=o.useCallback((i,d)=>{le(d.id)},[le]),ht=o.useCallback((i,d)=>{ce(d.source,d.target)},[ce]),xt=o.useCallback(i=>{if(i.type==="entity"){const f=String(i.entity_name??i.title??"").trim();if(!f)return;le(f,{locateInEvidence:!0});return}const d=String(i.subject??"").trim(),u=String(i.object??"").trim();if(!d||!u){a({title:"结果缺少定位信息",description:"该关系记录没有可用的 subject/object,无法定位。",variant:"destructive"});return}ce(d,u,{locateInEvidence:!0})},[ce,le,a]),pt=o.useCallback(async(i,d)=>{const u=_.nodes.find(f=>f.id===d.id);if(u){if(u.type==="entity"){const f=String(u.metadata?.entity_name??"").trim()||u.content;try{z(!0);const x=await Ue(f);B({id:x.node.id,type:"entity",content:x.node.content,metadata:{hash:x.node.hash}}),q(null),ae(x)}catch(x){a({title:"加载实体详情失败",description:x instanceof Error?x.message:"未知错误",variant:"destructive"})}finally{z(!1)}return}if(u.type==="relation"){const f=u.metadata??{},x=String(f.hash??"").trim(),P=$e.find(X=>X.hash===x)??ys(f);re(f),U(P),J(null);return}if(u.type==="paragraph"){const f=u.metadata??{},x=String(f.hash??"").trim(),P=Te.find(X=>X.hash===x)??js(f);ie(f),J(P),U(null)}}},[Te,$e,_.nodes,a]),ft=o.useCallback(()=>{M("evidence"),B(null)},[]),gt=o.useCallback(()=>{M("evidence"),q(null)},[]),yt=o.useCallback(({includeParagraphs:i})=>{const d=String(O?.node.hash??"").trim();if(!d){a({title:"缺少实体标识",description:"当前实体没有可用的 hash,无法执行删除。",variant:"destructive"});return}R({title:"删除实体",description:"将删除该实体,并自动包含与该实体关联的关系。可按需额外删除支撑段落。",request:{mode:"mixed",selector:{entity_hashes:[d],paragraph_hashes:i?(O?.paragraphs??[]).map(u=>u.hash):[]},reason:"knowledge_graph_delete_entity",requested_by:"knowledge_graph"}})},[O,R,a]),jt=o.useCallback(({includeParagraphs:i})=>{const d=I?.edge.relation_hashes??[];if(d.length<=0){a({title:"缺少关系标识",description:"当前关系组没有可用的 relation hash。",variant:"destructive"});return}R({title:"删除关系组",description:"将删除这条聚合边对应的全部关系。可按需额外删除支撑段落。",request:{mode:"mixed",selector:{relation_hashes:d,paragraph_hashes:i?(I?.paragraphs??[]).map(u=>u.hash):[]},reason:"knowledge_graph_delete_edge_group",requested_by:"knowledge_graph"}})},[I,R,a]),Ne=o.useCallback((i,d=!1)=>{R({title:"删除关系",description:d?"将删除这条关系及其支撑段落。":"将只删除这条关系,保留段落证据。",request:{mode:"mixed",selector:{relation_hashes:[i.hash],paragraph_hashes:d?i.paragraph_hashes:[]},reason:"knowledge_graph_delete_relation",requested_by:"knowledge_graph"}})},[R]),we=o.useCallback(i=>{R({title:"删除段落证据",description:"将删除这段证据,并自动删除失去全部证据的关系。",request:{mode:"mixed",selector:{paragraph_hashes:[i.hash]},reason:"knowledge_graph_delete_paragraph",requested_by:"knowledge_graph"}})},[R]),Ie=C==="entity"?w:_,bt=!!(pe||fe||O||I),Re=o.useCallback(()=>{if(s){s();return}n({to:"/resource/knowledge-base"})},[n,s]);return e.jsxs("div",{className:"flex h-full flex-col",children:[e.jsxs("div",{className:t?"flex-none border-b bg-card/60 px-4 py-4 backdrop-blur":"flex-none border-b bg-card/60 px-6 py-4 backdrop-blur",children:[e.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between",children:[!t&&e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold",children:"长期记忆图谱"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"基于 A_Memorix 的实体关系图与证据视图"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(g,{variant:"outline",className:"gap-1",children:[e.jsx(Ot,{className:"h-3.5 w-3.5"}),"总节点 ",V.totalNodes]}),e.jsxs(g,{variant:"outline",className:"gap-1",children:[e.jsx(It,{className:"h-3.5 w-3.5"}),"总关系 ",V.totalEdges]}),e.jsx(g,{variant:"secondary",children:C==="entity"?`当前显示 ${V.visibleNodes} / ${V.visibleEdges}`:`证据视图 ${V.evidenceNodes} / ${V.evidenceEdges}`})]})]}),e.jsxs("div",{className:"mt-4 flex flex-col gap-3",children:[e.jsxs("div",{className:"flex flex-col gap-3 xl:flex-row xl:items-center",children:[e.jsxs("div",{className:"flex flex-1 gap-2",children:[e.jsx(We,{value:y,onChange:i=>h(i.target.value),onKeyDown:i=>i.key==="Enter"&&void Oe(),placeholder:"搜索实体、关系、hash(后端全库)"}),e.jsxs(b,{onClick:()=>{Oe()},variant:"secondary",disabled:S,children:[e.jsx(Ke,{className:"mr-2 h-4 w-4"}),S?"检索中":"搜索"]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(Bt,{value:m,onValueChange:p,children:[e.jsx(qt,{className:"w-[140px]",children:e.jsx(At,{placeholder:"节点上限"})}),e.jsxs(Ft,{children:[e.jsx(de,{value:"80",children:"80 节点"}),e.jsx(de,{value:"120",children:"120 节点"}),e.jsx(de,{value:"240",children:"240 节点"}),e.jsx(de,{value:"480",children:"480 节点"})]})]}),e.jsxs(b,{onClick:()=>{A()},disabled:l,children:[e.jsx(Rt,{className:`mr-2 h-4 w-4 ${l?"animate-spin":""}`}),"刷新图谱"]}),e.jsxs(b,{variant:"outline",onClick:Re,className:t?"hidden":void 0,children:[e.jsx(Lt,{className:"mr-2 h-4 w-4"}),"打开控制台"]})]})]}),e.jsx(Pt,{value:C,onValueChange:i=>M(i),children:e.jsxs($t,{className:"h-auto flex-wrap justify-start",children:[e.jsx(qe,{value:"entity",children:"实体关系图"}),e.jsx(qe,{value:"evidence",children:"证据视图"})]})}),k?e.jsxs("div",{className:"rounded-lg border bg-background/80 p-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("div",{className:"text-sm font-medium",children:["搜索词:",k]}),e.jsx(g,{variant:T?"destructive":"secondary",children:T?"仅当前已加载范围":`全库命中 ${E.length} 条`})]}),T?e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"后端检索不可用,当前结果来自已加载图谱范围。请先刷新图谱或稍后重试。"}):E.length<=0?e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"未命中实体或关系。"}):e.jsx("div",{className:"mt-3 max-h-56 space-y-2 overflow-auto pr-1",children:E.map((i,d)=>e.jsxs("button",{type:"button",className:"w-full rounded-md border bg-card px-3 py-2 text-left transition hover:bg-accent/40",onClick:()=>xt(i),children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(g,{variant:"outline",children:i.type==="entity"?"实体":"关系"}),e.jsx("span",{className:"truncate text-sm font-medium",children:i.title||"(无标题结果)"})]}),e.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:["命中字段:",i.matched_field," = ",i.matched_value,i.type==="entity"?` · appearance=${i.appearance_count??0}`:` · confidence=${Number(i.confidence??0).toFixed(2)}`]})]},`${i.type}-${i.entity_hash??i.relation_hash??`${i.title}-${d}`}`))})]}):null]})]}),e.jsx("div",{className:"min-h-0 flex-1 bg-muted/20",children:C==="entity"&&w.nodes.length>0?e.jsx(ze,{graphData:w,loading:l,onNodeClick:mt,onEdgeClick:ht}):C==="evidence"&&Ie.nodes.length>0?e.jsx(ze,{graphData:Ie,loading:ye,onNodeClick:pt,onEdgeClick:()=>{}}):e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx("div",{className:"max-w-xl rounded-xl border bg-background p-8 text-center shadow-sm",children:C==="entity"?e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"text-lg font-semibold",children:"还没有可展示的长期记忆图谱"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"先在长期记忆控制台里完成导入或记忆生成,再回来查看关系网络。"}),e.jsx(b,{className:"mt-4",onClick:Re,children:"前往长期记忆控制台"})]}):e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"text-lg font-semibold",children:"证据视图还没有可展示的选择"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"先在实体关系图里点击某个实体或边,再切换到证据视图查看 paragraph → relation/entity 的牵引。"}),e.jsxs("div",{className:"mt-4 flex justify-center gap-2",children:[e.jsx(b,{variant:"outline",onClick:()=>M("entity"),children:"返回实体关系图"}),bt&&e.jsx(b,{onClick:()=>M("evidence"),children:"刷新证据视图"})]})]})})})}),e.jsx(ls,{open:!!pe,onOpenChange:i=>!i&&B(null),selectedNodeData:pe,nodeDetail:O,loading:ye,onOpenEvidence:ft,onDeleteEntity:yt,onDeleteRelation:i=>Ne(i),onDeleteParagraph:we}),e.jsx(cs,{open:!!fe,onOpenChange:i=>!i&&q(null),selectedEdgeData:fe,edgeDetail:I,loading:ye,onOpenEvidence:gt,onDeleteEdgeGroup:jt,onDeleteRelation:i=>Ne(i),onDeleteParagraph:we}),e.jsx(ds,{open:!!ke,onOpenChange:i=>!i&&U(null),relation:ke,metadata:nt,onDeleteRelation:(i,d)=>Ne(i,d)}),e.jsx(us,{open:!!_e,onOpenChange:i=>!i&&J(null),paragraph:_e,metadata:at,onDeleteParagraph:we}),e.jsx(Zt,{open:!!H,onOpenChange:ve,title:H?.title??"删除预览",description:H?.description,preview:ct,result:Z,loadingPreview:rt,executing:ot,restoring:lt,error:it,onExecute:dt,onRestore:ut})]})}const gn=Object.freeze(Object.defineProperty({__proto__:null,KnowledgeGraphPage:bs},Symbol.toStringTag,{value:"Module"}));export{nn as A,an as B,rn as C,on as D,ln as E,cn as F,dn as G,un as H,mn as I,Ys as J,Es as K,rs as L,is as M,os as N,$s as O,Ts as P,Qs as Q,pn as R,fn as S,bs as T,Zt as U,gn as V,Os as a,Is as b,Js as c,Hs as d,Ws as e,Vs as f,Ls as g,zs as h,qs as i,Gs as j,Us as k,Ks as l,Zs as m,Xs as n,en as o,Bs as p,Fs as q,Rs as r,As as s,hn as t,xn as u,Ds as v,Ms as w,Ps as x,sn as y,tn as z}; diff --git a/dashboard/dist/assets/index-DYRlR_zV.js b/dashboard/dist/assets/index-DYRlR_zV.js new file mode 100644 index 00000000..74122d26 --- /dev/null +++ b/dashboard/dist/assets/index-DYRlR_zV.js @@ -0,0 +1 @@ +import{j as e,r}from"./router-zNjPR4CY.js";import{D as G,i as K,j as U,k as W,l as Y,a5 as Q,L as v,g as $,a3 as Z,B as m,E as L,I as _,X as Fe,Y as Ie,A as xe,n as me,o as ue,q as je,r as ge,s as fe,t as ve,v as pe,S as Pe}from"./index-CuOHsLf7.js";import{c as Be,b as Le,E as Me,d as Re,g as Je,e as He,f as Ve,h as qe,i as $e,j as Xe}from"./expression-reviewer-HNWlEaz6.js";import{S as ee,a as se,b as te,c as ae,d as D}from"./select-DGqIoF9r.js";import{S as ne}from"./switch-Kc2EZ0Ga.js";import{o as Ge,ad as Ke,e as Ue,z as de,f as We,ai as Ye,au as oe,a0 as he,v as X,ap as Qe,G as Ze,y as es,aq as ss,n as ts,a8 as as,w as ls,S as is}from"./icons-DTcdLw9j.js";import{C as q}from"./checkbox-DWiVrbnx.js";import{T as cs,a as rs,b as B,c as T,d as ns,e as w}from"./table-DFeDhBY_.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";import"./badge-CDs67obV.js";import"./pagination-DX-kWu7G.js";function ds({expression:t,open:i,onOpenChange:d,chatNameMap:h}){if(!t)return null;const o=x=>x?new Date(x*1e3).toLocaleString("zh-CN"):"-",l=()=>t.chat_name||h.get(t.chat_id)||t.chat_id;return e.jsx(G,{open:i,onOpenChange:d,children:e.jsxs(K,{className:"max-w-2xl",confirmOnEnter:!0,children:[e.jsxs(U,{children:[e.jsx(W,{children:"表达方式详情"}),e.jsx(Y,{children:"查看表达方式的完整信息"})]}),e.jsx(Q,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(A,{label:"情境",value:t.situation}),e.jsx(A,{label:"风格",value:t.style}),e.jsx(A,{label:"聊天",value:l()}),e.jsx(A,{icon:Ge,label:"记录ID",value:t.id.toString(),mono:!0})]}),e.jsx("div",{className:"grid grid-cols-2 gap-4",children:e.jsx(A,{icon:Ke,label:"创建时间",value:o(t.create_date)})}),e.jsxs("div",{className:"rounded-lg border bg-muted/50 p-4",children:[e.jsx(v,{className:"text-xs text-muted-foreground mb-3 block",children:"状态标记"}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:$("flex h-8 w-8 items-center justify-center rounded-full",t.checked?"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400":"bg-gray-100 text-gray-400 dark:bg-gray-800 dark:text-gray-600"),children:t.checked?e.jsx(Ue,{className:"h-5 w-5"}):e.jsx(de,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:"已检查"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:t.checked?"已通过审核":"未审核"})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:$("flex h-8 w-8 items-center justify-center rounded-full",t.rejected?"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400":"bg-gray-100 text-gray-400 dark:bg-gray-800 dark:text-gray-600"),children:t.rejected?e.jsx(We,{className:"h-5 w-5"}):e.jsx(de,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:"已拒绝"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:t.rejected?"不会被使用":"正常"})]})]})]})]})]})}),e.jsx(Z,{children:e.jsx(m,{onClick:()=>d(!1),children:"关闭"})})]})})}function A({icon:t,label:i,value:d,mono:h=!1}){return e.jsxs("div",{className:"space-y-1",children:[e.jsxs(v,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[t&&e.jsx(t,{className:"h-3 w-3"}),i]}),e.jsx("div",{className:$("text-sm",h&&"font-mono",!d&&"text-muted-foreground"),children:d||"-"})]})}function os({open:t,onOpenChange:i,chatList:d,onSuccess:h}){const[o,l]=r.useState({situation:"",style:"",chat_id:""}),[x,j]=r.useState(!1),{toast:u}=L(),f=async()=>{if(!o.situation||!o.style||!o.chat_id){u({title:"验证失败",description:"请填写必填字段:情境、风格和聚天",variant:"destructive"});return}try{j(!0);const c=await Be(o);c.success?(u({title:"创建成功",description:"表达方式已创建"}),l({situation:"",style:"",chat_id:""}),h()):u({title:"创建失败",description:c.error,variant:"destructive"})}catch(c){u({title:"创建失败",description:c instanceof Error?c.message:"无法创建表达方式",variant:"destructive"})}finally{j(!1)}};return e.jsx(G,{open:t,onOpenChange:i,children:e.jsxs(K,{className:"max-w-2xl",confirmOnEnter:!0,children:[e.jsxs(U,{children:[e.jsx(W,{children:"新增表达方式"}),e.jsx(Y,{children:"创建新的表达方式记录"})]}),e.jsx(Q,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs(v,{htmlFor:"situation",children:["情境 ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(_,{id:"situation",value:o.situation,onChange:c=>l({...o,situation:c.target.value}),placeholder:"描述使用场景"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(v,{htmlFor:"style",children:["风格 ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(_,{id:"style",value:o.style,onChange:c=>l({...o,style:c.target.value}),placeholder:"描述表达风格"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(v,{htmlFor:"chat_id",children:["聊天 ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsxs(ee,{value:o.chat_id,onValueChange:c=>l({...o,chat_id:c}),children:[e.jsx(se,{children:e.jsx(te,{placeholder:"选择关联的聊天"})}),e.jsx(ae,{children:d.map(c=>e.jsx(D,{value:c.chat_id,children:e.jsxs("span",{className:"truncate",style:{wordBreak:"keep-all"},children:[c.chat_name,c.is_group&&e.jsx("span",{className:"text-muted-foreground ml-1",children:"(群聊)"})]})},c.chat_id))})]})]})]})}),e.jsxs(Z,{children:[e.jsx(m,{variant:"outline",onClick:()=>i(!1),children:"取消"}),e.jsx(m,{"data-dialog-action":"confirm",onClick:f,disabled:x,children:x?"创建中...":"创建"})]})]})})}function hs({expression:t,open:i,onOpenChange:d,chatList:h,onSuccess:o}){const[l,x]=r.useState({}),[j,u]=r.useState(!1),{toast:f}=L();r.useEffect(()=>{t&&x({situation:t.situation,style:t.style,chat_id:t.chat_id,checked:t.checked,rejected:t.rejected})},[t]);const c=async()=>{if(t)try{u(!0);const n=await Le(t.id,l);n.success?(f({title:"保存成功",description:"表达方式已更新"}),o()):f({title:"保存失败",description:n.error,variant:"destructive"})}catch(n){f({title:"保存失败",description:n instanceof Error?n.message:"无法更新表达方式",variant:"destructive"})}finally{u(!1)}};return t?e.jsx(G,{open:i,onOpenChange:d,children:e.jsxs(K,{className:"max-w-2xl",confirmOnEnter:!0,children:[e.jsxs(U,{children:[e.jsx(W,{children:"编辑表达方式"}),e.jsx(Y,{children:"修改表达方式的信息"})]}),e.jsx(Q,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(v,{htmlFor:"edit_situation",children:"情境"}),e.jsx(_,{id:"edit_situation",value:l.situation||"",onChange:n=>x({...l,situation:n.target.value}),placeholder:"描述使用场景"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(v,{htmlFor:"edit_style",children:"风格"}),e.jsx(_,{id:"edit_style",value:l.style||"",onChange:n=>x({...l,style:n.target.value}),placeholder:"描述表达风格"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(v,{htmlFor:"edit_chat_id",children:"聊天"}),e.jsxs(ee,{value:l.chat_id||"",onValueChange:n=>x({...l,chat_id:n}),children:[e.jsx(se,{children:e.jsx(te,{placeholder:"选择关联的聊天"})}),e.jsx(ae,{children:h.map(n=>e.jsx(D,{value:n.chat_id,children:e.jsxs("span",{className:"truncate",style:{wordBreak:"keep-all"},children:[n.chat_name,n.is_group&&e.jsx("span",{className:"text-muted-foreground ml-1",children:"(群聊)"})]})},n.chat_id))})]})]}),e.jsxs(Fe,{children:[e.jsx(Ye,{className:"h-4 w-4"}),e.jsx(Ie,{className:"text-xs",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{children:e.jsx("strong",{children:"状态标记说明:"})}),e.jsx("p",{children:"• 已检查:表示该表达方式已通过审核(可由AI自动检查或人工审核)"}),e.jsx("p",{children:"• 已拒绝:表示该表达方式被标记为不合适,将永远不会被使用"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:['根据配置中"仅使用已审核通过的表达方式"设置:',e.jsx("br",{}),"• 开启时:只有通过审核(已检查)的项目会被使用",e.jsx("br",{}),"• 关闭时:未审核的项目也会被使用"]})]})})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"flex items-center justify-between space-x-2 rounded-lg border p-4",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{htmlFor:"edit_checked",className:"text-sm font-medium",children:"已检查"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"已通过审核"})]}),e.jsx(ne,{id:"edit_checked",checked:l.checked??!1,onCheckedChange:n=>x({...l,checked:n})})]}),e.jsxs("div",{className:"flex items-center justify-between space-x-2 rounded-lg border p-4",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{htmlFor:"edit_rejected",className:"text-sm font-medium",children:"已拒绝"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"不会被使用"})]}),e.jsx(ne,{id:"edit_rejected",checked:l.rejected??!1,onCheckedChange:n=>x({...l,rejected:n})})]})]})]})}),e.jsxs(Z,{children:[e.jsx(m,{variant:"outline",onClick:()=>d(!1),children:"取消"}),e.jsx(m,{"data-dialog-action":"confirm",onClick:c,disabled:j,children:j?"保存中...":"保存"})]})]})}):null}function xs({open:t,onOpenChange:i,onConfirm:d,count:h}){return e.jsx(xe,{open:t,onOpenChange:i,children:e.jsxs(me,{children:[e.jsxs(ue,{children:[e.jsx(je,{children:"确认批量删除"}),e.jsxs(ge,{children:["您即将删除 ",h," 个表达方式,此操作无法撤销。确定要继续吗?"]})]}),e.jsxs(fe,{children:[e.jsx(ve,{children:"取消"}),e.jsx(pe,{onClick:d,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"确认删除"})]})]})})}function ms({expression:t,open:i,onOpenChange:d,onConfirm:h}){return e.jsx(xe,{open:i,onOpenChange:d,children:e.jsxs(me,{children:[e.jsxs(ue,{children:[e.jsx(je,{children:"确认删除"}),e.jsxs(ge,{children:['确定要删除表达方式 "',t?.situation,'" 吗? 此操作不可撤销。']})]}),e.jsxs(fe,{children:[e.jsx(ve,{children:"取消"}),e.jsx(pe,{onClick:h,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"删除"})]})]})})}function us({expressions:t,loading:i,total:d,page:h,pageSize:o,selectedIds:l,chatNameMap:x,onEdit:j,onViewDetail:u,onDelete:f,onToggleSelect:c,onToggleSelectAll:n,onPageChange:O,onJumpToPage:F}){const{toast:M}=L(),y=a=>a.chat_name||x.get(a.chat_id)||a.chat_id,I=Math.ceil(d/o),E=a=>{const b=parseInt(a);b>=1&&b<=I?F(a):M({title:"无效的页码",description:`请输入1-${I}之间的页码`,variant:"destructive"})};return e.jsxs("div",{className:"rounded-lg border bg-card",children:[e.jsx("div",{className:"hidden md:block",children:e.jsxs(cs,{"aria-label":"表达方式列表",children:[e.jsx(rs,{children:e.jsxs(B,{children:[e.jsx(T,{className:"w-12",children:e.jsx(q,{checked:l.size===t.length&&t.length>0,onCheckedChange:n})}),e.jsx(T,{children:"情境"}),e.jsx(T,{children:"风格"}),e.jsx(T,{children:"聊天"}),e.jsx(T,{className:"text-right",children:"操作"})]})}),e.jsx(ns,{children:i?e.jsx(B,{children:e.jsx(w,{colSpan:5,className:"text-center py-8 text-muted-foreground",children:"加载中..."})}):t.length===0?e.jsx(B,{children:e.jsx(w,{colSpan:5,className:"text-center py-8 text-muted-foreground",children:"暂无数据"})}):t.map(a=>e.jsxs(B,{children:[e.jsx(w,{children:e.jsx(q,{checked:l.has(a.id),onCheckedChange:()=>c(a.id)})}),e.jsx(w,{className:"font-medium max-w-xs truncate",children:a.situation}),e.jsx(w,{className:"max-w-xs truncate",children:a.style}),e.jsx(w,{className:"max-w-[200px] truncate",title:y(a),style:{wordBreak:"keep-all"},children:e.jsx("span",{className:"whitespace-nowrap overflow-hidden text-ellipsis block",children:y(a)})}),e.jsx(w,{className:"text-right",children:e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsxs(m,{variant:"default",size:"sm",onClick:()=>j(a),children:[e.jsx(oe,{className:"h-4 w-4 mr-1"}),"编辑"]}),e.jsx(m,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>u(a),title:"查看详情",children:e.jsx(he,{className:"h-4 w-4"})}),e.jsxs(m,{size:"sm",onClick:()=>f(a),className:"bg-red-600 hover:bg-red-700 text-white",children:[e.jsx(X,{className:"h-4 w-4 mr-1"}),"删除"]})]})})]},a.id))})]})}),e.jsx("div",{className:"md:hidden space-y-3 p-4",children:i?e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"加载中..."}):t.length===0?e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"暂无数据"}):t.map(a=>e.jsxs("div",{className:"rounded-lg border bg-card p-4 space-y-3 overflow-hidden",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(q,{checked:l.has(a.id),onCheckedChange:()=>c(a.id),className:"mt-1"}),e.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden space-y-2",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:"情境"}),e.jsx("h3",{className:"font-semibold text-sm line-clamp-2 w-full break-all",title:a.situation,children:a.situation})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:"风格"}),e.jsx("p",{className:"text-sm line-clamp-2 w-full break-all",title:a.style,children:a.style})]})]})]}),e.jsxs("div",{className:"text-sm",children:[e.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:"聊天"}),e.jsx("p",{className:"text-sm truncate",title:y(a),style:{wordBreak:"keep-all"},children:y(a)})]}),e.jsxs("div",{className:"flex flex-wrap gap-1 pt-2 border-t overflow-hidden",children:[e.jsxs(m,{variant:"outline",size:"sm",onClick:()=>j(a),className:"text-xs px-2 py-1 h-auto flex-shrink-0",children:[e.jsx(oe,{className:"h-3 w-3 mr-1"}),"编辑"]}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>u(a),className:"text-xs px-2 py-1 h-auto flex-shrink-0",children:e.jsx(he,{className:"h-3 w-3"})}),e.jsxs(m,{variant:"outline",size:"sm",onClick:()=>f(a),className:"text-xs px-2 py-1 h-auto flex-shrink-0 text-destructive hover:text-destructive",children:[e.jsx(X,{className:"h-3 w-3 mr-1"}),"删除"]})]})]},a.id))}),d>0&&e.jsx(js,{total:d,page:h,pageSize:o,onPageChange:O,onJumpToPage:E})]})}function js({total:t,page:i,pageSize:d,onPageChange:h,onJumpToPage:o}){const[l,x]=r.useState(""),j=Math.ceil(t/d),u=()=>{l&&(o(l),x(""))};return e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 px-4 py-3 border-t",children:[e.jsxs("div",{className:"text-sm text-muted-foreground",children:["共 ",t," 条记录,第 ",i," / ",j," 页"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(m,{variant:"outline",size:"sm",onClick:()=>h(1),disabled:i===1,className:"hidden sm:flex",children:e.jsx(Qe,{className:"h-4 w-4"})}),e.jsxs(m,{variant:"outline",size:"sm",onClick:()=>h(i-1),disabled:i===1,children:[e.jsx(Ze,{className:"h-4 w-4 sm:mr-1"}),e.jsx("span",{className:"hidden sm:inline",children:"上一页"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_,{type:"number",value:l,onChange:f=>x(f.target.value),onKeyDown:f=>f.key==="Enter"&&u(),placeholder:i.toString(),className:"w-16 h-8 text-center",min:1,max:j}),e.jsx(m,{variant:"outline",size:"sm",onClick:u,disabled:!l,className:"h-8",children:"跳转"})]}),e.jsxs(m,{variant:"outline",size:"sm",onClick:()=>h(i+1),disabled:i>=j,children:[e.jsx("span",{className:"hidden sm:inline",children:"下一页"}),e.jsx(es,{className:"h-4 w-4 sm:ml-1"})]}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>h(j),disabled:i>=j,className:"hidden sm:flex",children:e.jsx(ss,{className:"h-4 w-4"})})]})]})}function Es(){const[t,i]=r.useState([]),[d,h]=r.useState(!0),[o,l]=r.useState(0),[x,j]=r.useState(1),[u,f]=r.useState(20),[c,n]=r.useState(""),[O,F]=r.useState(null),[M,y]=r.useState(!1),[I,E]=r.useState(!1),[a,b]=r.useState(!1),[z,R]=r.useState(null),[N,C]=r.useState(new Set),[Ne,J]=r.useState(!1),[H,ye]=r.useState({total:0,recent_7days:0,chat_count:0,top_chats:{}}),[le,we]=r.useState([]),[ie,be]=r.useState(new Map),[Ce,ce]=r.useState(!1),[V,ke]=r.useState(0),{toast:p}=L(),k=async()=>{try{h(!0);const s=await Re({page:x,page_size:u,search:c||void 0});s.success?(i(s.data.data),l(s.data.total)):p({title:"加载失败",description:s.error,variant:"destructive"})}catch(s){p({title:"加载失败",description:s instanceof Error?s.message:"无法加载表达方式",variant:"destructive"})}finally{h(!1)}},S=async()=>{try{const s=await He();s.success?ye(s.data):console.error("加载统计数据失败:",s.error)}catch(s){console.error("加载统计数据失败:",s)}},re=async()=>{try{const s=await Je();s.success&&ke(s.data.unchecked)}catch(s){console.error("加载审核统计失败:",s)}},Se=async()=>{try{const s=await Ve();if(s.success){we(s.data);const g=new Map;s.data.forEach(P=>{g.set(P.chat_id,P.chat_name)}),be(g)}}catch(s){console.error("加载聚天列表失败:",s)}};r.useEffect(()=>{k(),re(),S(),Se()},[x,u,c]);const De=async s=>{try{const g=await qe(s.id);g.success?(F(g.data),y(!0)):p({title:"加载详情失败",description:g.error,variant:"destructive"})}catch(g){p({title:"加载详情失败",description:g instanceof Error?g.message:"无法加载表达方式详情",variant:"destructive"})}},_e=s=>{F(s),E(!0)},Ee=async()=>{if(z)try{const s=await $e(z.id);s.success?(p({title:"删除成功",description:`已删除表达方式: ${z.situation}`}),R(null),k(),S()):p({title:"删除失败",description:s.error,variant:"destructive"})}catch(s){p({title:"删除失败",description:s instanceof Error?s.message:"无法删除表达方式",variant:"destructive"})}},ze=s=>{const g=new Set(N);g.has(s)?g.delete(s):g.add(s),C(g)},Te=()=>{N.size===t.length&&t.length>0?C(new Set):C(new Set(t.map(s=>s.id)))},Ae=async()=>{try{const s=await Xe(Array.from(N));s.success?(p({title:"批量删除成功",description:`已删除 ${N.size} 个表达方式`}),C(new Set),J(!1),k(),S()):p({title:"批量删除失败",description:s.error,variant:"destructive"})}catch(s){p({title:"批量删除失败",description:s instanceof Error?s.message:"无法批量删除表达方式",variant:"destructive"})}},Oe=s=>{const g=parseInt(s),P=Math.ceil(o/u);g>=1&&g<=P&&j(g)};return e.jsxs("div",{className:"h-[calc(100vh-4rem)] flex flex-col p-4 sm:p-6",children:[e.jsx("div",{className:"mb-4 sm:mb-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"text-2xl sm:text-3xl font-bold flex items-center gap-2",children:[e.jsx(ts,{className:"h-8 w-8",strokeWidth:2}),"表达方式"]}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm sm:text-base",children:"管理麦麦的表达方式和话术模板"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(m,{variant:"outline",onClick:()=>ce(!0),className:"gap-2",children:[e.jsx(as,{className:"h-4 w-4"}),"人工审核",V>0&&e.jsx("span",{className:"ml-1 px-1.5 py-0.5 text-xs rounded-full bg-orange-500 text-white",children:V>99?"99+":V})]}),e.jsxs(m,{onClick:()=>b(!0),className:"gap-2",children:[e.jsx(ls,{className:"h-4 w-4"}),"新增表达方式"]})]})]})}),e.jsx(Pe,{className:"flex-1",children:e.jsxs("div",{className:"space-y-4 sm:space-y-6 pr-4",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:"总数量"}),e.jsx("div",{className:"text-2xl font-bold mt-1",children:H.total})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:"近7天新增"}),e.jsx("div",{className:"text-2xl font-bold mt-1 text-green-600",children:H.recent_7days})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:"关联聊天数"}),e.jsx("div",{className:"text-2xl font-bold mt-1 text-blue-600",children:H.chat_count})]})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-end",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(v,{htmlFor:"search",children:"搜索"}),e.jsxs("div",{className:"relative mt-1.5",children:[e.jsx(is,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"}),e.jsx(_,{id:"search",placeholder:"搜索情境、风格或上下文...",value:c,onChange:s=>n(s.target.value),className:"pl-9"})]})]}),e.jsxs("div",{className:"flex items-center gap-2 sm:pb-0.5",children:[e.jsx(v,{htmlFor:"page-size",className:"text-sm whitespace-nowrap",children:"每页显示"}),e.jsxs(ee,{value:u.toString(),onValueChange:s=>{f(parseInt(s)),j(1),C(new Set)},children:[e.jsx(se,{id:"page-size",className:"w-20",children:e.jsx(te,{})}),e.jsxs(ae,{children:[e.jsx(D,{value:"10",children:"10"}),e.jsx(D,{value:"20",children:"20"}),e.jsx(D,{value:"50",children:"50"}),e.jsx(D,{value:"100",children:"100"})]})]})]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 mt-4 pt-4 border-t",children:[e.jsx("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:N.size>0&&e.jsxs("span",{children:["已选择 ",N.size," 个表达方式"]})}),e.jsx("div",{className:"flex items-center gap-2",children:N.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(m,{variant:"outline",size:"sm",onClick:()=>C(new Set),children:"取消选择"}),e.jsxs(m,{variant:"destructive",size:"sm",onClick:()=>J(!0),children:[e.jsx(X,{className:"h-4 w-4 mr-1"}),"批量删除"]})]})})]})]}),e.jsx(us,{expressions:t,loading:d,total:o,page:x,pageSize:u,selectedIds:N,chatNameMap:ie,onEdit:_e,onViewDetail:De,onDelete:s=>R(s),onToggleSelect:ze,onToggleSelectAll:Te,onPageChange:j,onJumpToPage:Oe})]})}),e.jsx(ds,{expression:O,open:M,onOpenChange:y,chatNameMap:ie}),e.jsx(os,{open:a,onOpenChange:b,chatList:le,onSuccess:()=>{k(),S(),b(!1)}}),e.jsx(hs,{expression:O,open:I,onOpenChange:E,chatList:le,onSuccess:()=>{k(),S(),E(!1)}}),e.jsx(ms,{expression:z,open:!!z,onOpenChange:()=>R(null),onConfirm:Ee}),e.jsx(xs,{open:Ne,onOpenChange:J,onConfirm:Ae,count:N.size}),e.jsx(Me,{open:Ce,onOpenChange:s=>{ce(s),s||(k(),S(),re())}})]})}export{Es as ExpressionManagementPage}; diff --git a/dashboard/dist/assets/index-P80u2Mbr.js b/dashboard/dist/assets/index-P80u2Mbr.js new file mode 100644 index 00000000..4bb77306 --- /dev/null +++ b/dashboard/dist/assets/index-P80u2Mbr.js @@ -0,0 +1 @@ +import{j as e,r as o,R as Ie}from"./router-zNjPR4CY.js";import{x as _,D as Q,i as X,j as Y,k as Z,l as ee,a5 as se,L as m,a3 as te,B as h,E as ae,I as M,A as he,n as me,o as ue,q as je,r as ge,s as pe,t as fe,v as ve,g as Le,S as Be}from"./index-CuOHsLf7.js";import{S as A,a as O,b as P,c as $,d as p}from"./select-DGqIoF9r.js";import{B as C}from"./badge-CDs67obV.js";import{M as Me}from"./markdown-renderer-CrKRiZ7X.js";import{S as Ne}from"./switch-Kc2EZ0Ga.js";import{T as we}from"./textarea-8PIujbf-.js";import{o as Re,J as ce,au as de,a0 as oe,v as K,ap as Ve,G as He,y as qe,aq as Ge,b as be,X as _e,Y as Ue,az as We,w as Ke,S as Qe}from"./icons-DTcdLw9j.js";import{C as U}from"./checkbox-DWiVrbnx.js";import{T as Xe,a as Ye,b as B,c as E,d as Ze,e as b}from"./table-DFeDhBY_.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";import"./markdown-6e5N06bH.js";const y="/api/webui/jargon";async function es(){const s=await _(`${y}/chats`,{});if(!s.ok){const t=await s.json();throw new Error(t.detail||"获取聊天列表失败")}return s.json()}async function ss(s){const t=new URLSearchParams;s.page&&t.append("page",s.page.toString()),s.page_size&&t.append("page_size",s.page_size.toString()),s.search&&t.append("search",s.search),s.chat_id&&t.append("chat_id",s.chat_id),s.is_jargon!==void 0&&s.is_jargon!==null&&t.append("is_jargon",s.is_jargon.toString()),s.is_global!==void 0&&t.append("is_global",s.is_global.toString());const n=await _(`${y}/list?${t}`,{});if(!n.ok){const i=await n.json();throw new Error(i.detail||"获取黑话列表失败")}return n.json()}async function ts(s){const t=await _(`${y}/${s}`,{});if(!t.ok){const n=await t.json();throw new Error(n.detail||"获取黑话详情失败")}return t.json()}async function as(s){const t=await _(`${y}/`,{method:"POST",body:JSON.stringify(s)});if(!t.ok){const n=await t.json();throw new Error(n.detail||"创建黑话失败")}return t.json()}async function ns(s,t){const n=await _(`${y}/${s}`,{method:"PATCH",body:JSON.stringify(t)});if(!n.ok){const i=await n.json();throw new Error(i.detail||"更新黑话失败")}return n.json()}async function ls(s){const t=await _(`${y}/${s}`,{method:"DELETE"});if(!t.ok){const n=await t.json();throw new Error(n.detail||"删除黑话失败")}return t.json()}async function is(s){const t=await _(`${y}/batch/delete`,{method:"POST",body:JSON.stringify({ids:s})});if(!t.ok){const n=await t.json();throw new Error(n.detail||"批量删除黑话失败")}return t.json()}async function rs(){const s=await _(`${y}/stats/summary`,{});if(!s.ok){const t=await s.json();throw new Error(t.detail||"获取黑话统计失败")}return s.json()}async function cs(s,t){const n=new URLSearchParams;s.forEach(r=>n.append("ids",r.toString())),n.append("is_jargon",t.toString());const i=await _(`${y}/batch/set-jargon?${n}`,{method:"POST"});if(!i.ok){const r=await i.json();throw new Error(r.detail||"批量设置黑话状态失败")}return i.json()}function W({icon:s,label:t,value:n,mono:i=!1}){return e.jsxs("div",{className:"space-y-1",children:[e.jsxs(m,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[s&&e.jsx(s,{className:"h-3 w-3"}),t]}),e.jsx("div",{className:Le("text-sm",i&&"font-mono",!n&&"text-muted-foreground"),children:n||"-"})]})}function ds({jargon:s,open:t,onOpenChange:n}){return s?e.jsx(Q,{open:t,onOpenChange:n,children:e.jsxs(X,{className:"max-w-2xl max-h-[80vh] grid grid-rows-[auto_1fr_auto] overflow-hidden",children:[e.jsxs(Y,{children:[e.jsx(Z,{children:"黑话详情"}),e.jsx(ee,{children:"查看黑话的完整信息"})]}),e.jsx(se,{className:"h-full",children:e.jsxs("div",{className:"space-y-4 pb-2",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(W,{icon:Re,label:"记录ID",value:s.id.toString(),mono:!0}),e.jsx(W,{label:"使用次数",value:s.count.toString()})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(m,{className:"text-xs text-muted-foreground",children:"内容"}),e.jsx("div",{className:"text-sm p-2 bg-muted rounded break-all whitespace-pre-wrap",children:s.content})]}),s.raw_content&&e.jsxs("div",{className:"space-y-1",children:[e.jsx(m,{className:"text-xs text-muted-foreground",children:"原始内容"}),e.jsx("div",{className:"text-sm p-2 bg-muted rounded break-all",children:(()=>{try{const i=JSON.parse(s.raw_content);return Array.isArray(i)?i.map((r,c)=>e.jsxs("div",{children:[c>0&&e.jsx("hr",{className:"my-3 border-border"}),e.jsx("div",{className:"whitespace-pre-wrap",children:r})]},c)):e.jsx("div",{className:"whitespace-pre-wrap",children:s.raw_content})}catch{return e.jsx("div",{className:"whitespace-pre-wrap",children:s.raw_content})}})()})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(m,{className:"text-xs text-muted-foreground",children:"含义"}),e.jsx("div",{className:"text-sm p-2 bg-muted rounded break-all",children:s.meaning?e.jsx(Me,{content:s.meaning}):"-"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(W,{label:"聊天",value:s.chat_name||s.chat_id}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(m,{className:"text-xs text-muted-foreground",children:"状态"}),e.jsxs("div",{className:"flex items-center gap-2",children:[s.is_jargon===!0&&e.jsx(C,{variant:"default",className:"bg-green-600",children:"是黑话"}),s.is_jargon===!1&&e.jsx(C,{variant:"secondary",children:"非黑话"}),s.is_jargon===null&&e.jsx(C,{variant:"outline",children:"未判定"}),s.is_global&&e.jsx(C,{variant:"outline",className:"border-blue-500 text-blue-500",children:"全局"}),s.is_complete&&e.jsx(C,{variant:"outline",className:"border-purple-500 text-purple-500",children:"推断完成"})]})]})]}),s.inference_with_context&&e.jsxs("div",{className:"space-y-1",children:[e.jsx(m,{className:"text-xs text-muted-foreground",children:"上下文推断结果"}),e.jsx("div",{className:"p-2 bg-muted rounded break-all whitespace-pre-wrap font-mono text-xs max-h-[200px] overflow-y-auto",children:s.inference_with_context})]}),s.inference_content_only&&e.jsxs("div",{className:"space-y-1",children:[e.jsx(m,{className:"text-xs text-muted-foreground",children:"纯词条推断结果"}),e.jsx("div",{className:"p-2 bg-muted rounded break-all whitespace-pre-wrap font-mono text-xs max-h-[200px] overflow-y-auto",children:s.inference_content_only})]})]})}),e.jsx(te,{className:"flex-shrink-0",children:e.jsx(h,{onClick:()=>n(!1),children:"关闭"})})]})}):null}function os({open:s,onOpenChange:t,chatList:n,onSuccess:i}){const[r,c]=o.useState({content:"",meaning:"",chat_id:"",is_global:!1}),[u,f]=o.useState(!1),{toast:g}=ae(),N=async()=>{if(!r.content||!r.chat_id){g({title:"验证失败",description:"请填写必填字段:内容和聊天",variant:"destructive"});return}try{f(!0),await as(r),g({title:"创建成功",description:"黑话已创建"}),c({content:"",meaning:"",chat_id:"",is_global:!1}),i()}catch(x){g({title:"创建失败",description:x instanceof Error?x.message:"无法创建黑话",variant:"destructive"})}finally{f(!1)}};return e.jsx(Q,{open:s,onOpenChange:t,children:e.jsxs(X,{className:"max-w-2xl",confirmOnEnter:!0,children:[e.jsxs(Y,{children:[e.jsx(Z,{children:"新增黑话"}),e.jsx(ee,{children:"创建新的黑话记录"})]}),e.jsx(se,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs(m,{htmlFor:"content",children:["内容 ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(M,{id:"content",value:r.content,onChange:x=>c({...r,content:x.target.value}),placeholder:"输入黑话内容"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(m,{htmlFor:"meaning",children:"含义"}),e.jsx(we,{id:"meaning",value:r.meaning||"",onChange:x=>c({...r,meaning:x.target.value}),placeholder:"输入黑话含义(可选)",rows:3})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(m,{htmlFor:"chat_id",children:["聊天 ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsxs(A,{value:r.chat_id,onValueChange:x=>c({...r,chat_id:x}),children:[e.jsx(O,{children:e.jsx(P,{placeholder:"选择关联的聊天"})}),e.jsx($,{children:n.map(x=>e.jsx(p,{value:x.chat_id,children:x.chat_name},x.chat_id))})]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ne,{id:"is_global",checked:r.is_global,onCheckedChange:x=>c({...r,is_global:x})}),e.jsx(m,{htmlFor:"is_global",children:"设为全局黑话"})]})]})}),e.jsxs(te,{children:[e.jsx(h,{variant:"outline",onClick:()=>t(!1),children:"取消"}),e.jsx(h,{"data-dialog-action":"confirm",onClick:N,disabled:u,children:u?"创建中...":"创建"})]})]})})}function xs({jargon:s,open:t,onOpenChange:n,chatList:i,onSuccess:r}){const[c,u]=o.useState({}),[f,g]=o.useState(!1),{toast:N}=ae();o.useEffect(()=>{s&&u({content:s.content,meaning:s.meaning||"",chat_id:s.stream_id||s.chat_id,is_global:s.is_global,is_jargon:s.is_jargon})},[s]);const x=async()=>{if(s)try{g(!0),await ns(s.id,c),N({title:"保存成功",description:"黑话已更新"}),r()}catch(d){N({title:"保存失败",description:d instanceof Error?d.message:"无法更新黑话",variant:"destructive"})}finally{g(!1)}};return s?e.jsx(Q,{open:t,onOpenChange:n,children:e.jsxs(X,{className:"max-w-2xl",confirmOnEnter:!0,children:[e.jsxs(Y,{children:[e.jsx(Z,{children:"编辑黑话"}),e.jsx(ee,{children:"修改黑话的信息"})]}),e.jsx(se,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(m,{htmlFor:"edit_content",children:"内容"}),e.jsx(M,{id:"edit_content",value:c.content||"",onChange:d=>u({...c,content:d.target.value}),placeholder:"输入黑话内容"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(m,{htmlFor:"edit_meaning",children:"含义"}),e.jsx(we,{id:"edit_meaning",value:c.meaning||"",onChange:d=>u({...c,meaning:d.target.value}),placeholder:"输入黑话含义",rows:3})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(m,{htmlFor:"edit_chat_id",children:"聊天"}),e.jsxs(A,{value:c.chat_id||"",onValueChange:d=>u({...c,chat_id:d}),children:[e.jsx(O,{children:e.jsx(P,{placeholder:"选择关联的聊天"})}),e.jsx($,{children:i.map(d=>e.jsx(p,{value:d.chat_id,children:d.chat_name},d.chat_id))})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(m,{children:"黑话状态"}),e.jsxs(A,{value:c.is_jargon===null?"null":c.is_jargon?.toString()||"null",onValueChange:d=>u({...c,is_jargon:d==="null"?null:d==="true"}),children:[e.jsx(O,{children:e.jsx(P,{})}),e.jsxs($,{children:[e.jsx(p,{value:"null",children:"未判定"}),e.jsx(p,{value:"true",children:"是黑话"}),e.jsx(p,{value:"false",children:"非黑话"})]})]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ne,{id:"edit_is_global",checked:c.is_global,onCheckedChange:d=>u({...c,is_global:d})}),e.jsx(m,{htmlFor:"edit_is_global",children:"全局黑话"})]})]})}),e.jsxs(te,{children:[e.jsx(h,{variant:"outline",onClick:()=>n(!1),children:"取消"}),e.jsx(h,{"data-dialog-action":"confirm",onClick:x,disabled:f,children:f?"保存中...":"保存"})]})]})}):null}function hs({jargon:s,open:t,onOpenChange:n,onConfirm:i}){return e.jsx(he,{open:t,onOpenChange:n,children:e.jsxs(me,{children:[e.jsxs(ue,{children:[e.jsx(je,{children:"确认删除"}),e.jsxs(ge,{children:['确定要删除黑话 "',s?.content,'" 吗?此操作不可撤销。']})]}),e.jsxs(pe,{children:[e.jsx(fe,{children:"取消"}),e.jsx(ve,{onClick:i,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"删除"})]})]})})}function ms({open:s,onOpenChange:t,onConfirm:n,count:i}){return e.jsx(he,{open:s,onOpenChange:t,children:e.jsxs(me,{children:[e.jsxs(ue,{children:[e.jsx(je,{children:"确认批量删除"}),e.jsxs(ge,{children:["您即将删除 ",i," 个黑话,此操作无法撤销。确定要继续吗?"]})]}),e.jsxs(pe,{children:[e.jsx(fe,{children:"取消"}),e.jsx(ve,{onClick:n,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"确认删除"})]})]})})}function xe(s){return s===!0?e.jsxs(C,{variant:"default",className:"bg-green-600 hover:bg-green-700",children:[e.jsx(be,{className:"h-3 w-3 mr-1"}),"是黑话"]}):s===!1?e.jsxs(C,{variant:"secondary",children:[e.jsx(_e,{className:"h-3 w-3 mr-1"}),"非黑话"]}):e.jsxs(C,{variant:"outline",children:[e.jsx(Ue,{className:"h-3 w-3 mr-1"}),"未判定"]})}function us({jargons:s,loading:t,total:n,page:i,pageSize:r,selectedIds:c,onEdit:u,onViewDetail:f,onDelete:g,onToggleSelect:N,onToggleSelectAll:x,onPageChange:d,onJumpToPage:J}){const[F,S]=Ie.useState(""),L=()=>{J(F),S("")};return e.jsxs("div",{className:"rounded-lg border bg-card",children:[e.jsx("div",{className:"hidden md:block",children:e.jsxs(Xe,{"aria-label":"黑话列表",children:[e.jsx(Ye,{children:e.jsxs(B,{children:[e.jsx(E,{className:"w-12",children:e.jsx(U,{checked:c.size===s.length&&s.length>0,onCheckedChange:x})}),e.jsx(E,{children:"内容"}),e.jsx(E,{children:"含义"}),e.jsx(E,{children:"聊天"}),e.jsx(E,{children:"状态"}),e.jsx(E,{className:"text-center",children:"次数"}),e.jsx(E,{className:"text-right",children:"操作"})]})}),e.jsx(Ze,{children:t?e.jsx(B,{children:e.jsx(b,{colSpan:7,className:"text-center py-8 text-muted-foreground",children:"加载中..."})}):s.length===0?e.jsx(B,{children:e.jsx(b,{colSpan:7,className:"text-center py-8 text-muted-foreground",children:"暂无数据"})}):s.map(l=>e.jsxs(B,{children:[e.jsx(b,{children:e.jsx(U,{checked:c.has(l.id),onCheckedChange:()=>N(l.id)})}),e.jsx(b,{className:"font-medium max-w-[200px]",children:e.jsxs("div",{className:"flex items-center gap-2",children:[l.is_global&&e.jsx("span",{title:"全局黑话",children:e.jsx(ce,{className:"h-4 w-4 text-blue-500 flex-shrink-0"})}),e.jsx("span",{className:"truncate",title:l.content,children:l.content})]})}),e.jsx(b,{className:"max-w-[200px] truncate",title:l.meaning||"",children:l.meaning||e.jsx("span",{className:"text-muted-foreground",children:"-"})}),e.jsx(b,{className:"max-w-[150px] truncate",title:l.chat_name||l.chat_id,children:l.chat_name||l.chat_id}),e.jsx(b,{children:xe(l.is_jargon)}),e.jsx(b,{className:"text-center",children:l.count}),e.jsx(b,{className:"text-right",children:e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsxs(h,{variant:"default",size:"sm",onClick:()=>u(l),children:[e.jsx(de,{className:"h-4 w-4 mr-1"}),"编辑"]}),e.jsx(h,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>f(l),title:"查看详情",children:e.jsx(oe,{className:"h-4 w-4"})}),e.jsxs(h,{size:"sm",onClick:()=>g(l),className:"bg-red-600 hover:bg-red-700 text-white",children:[e.jsx(K,{className:"h-4 w-4 mr-1"}),"删除"]})]})})]},l.id))})]})}),e.jsx("div",{className:"md:hidden space-y-3 p-4",children:t?e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"加载中..."}):s.length===0?e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"暂无数据"}):s.map(l=>e.jsxs("div",{className:"rounded-lg border bg-card p-4 space-y-3",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(U,{checked:c.has(l.id),onCheckedChange:()=>N(l.id),className:"mt-1"}),e.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[l.is_global&&e.jsx(ce,{className:"h-4 w-4 text-blue-500 flex-shrink-0"}),e.jsx("h3",{className:"font-semibold text-sm break-all",children:l.content})]}),l.meaning&&e.jsx("p",{className:"text-sm text-muted-foreground break-all",children:l.meaning}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[xe(l.is_jargon),e.jsxs("span",{className:"text-muted-foreground",children:["次数: ",l.count]})]}),e.jsxs("div",{className:"text-xs text-muted-foreground truncate",children:["聊天: ",l.chat_name||l.chat_id]})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-1 pt-2 border-t",children:[e.jsxs(h,{variant:"outline",size:"sm",onClick:()=>u(l),className:"text-xs px-2 py-1 h-auto",children:[e.jsx(de,{className:"h-3 w-3 mr-1"}),"编辑"]}),e.jsx(h,{variant:"outline",size:"sm",onClick:()=>f(l),className:"text-xs px-2 py-1 h-auto",children:e.jsx(oe,{className:"h-3 w-3"})}),e.jsxs(h,{variant:"outline",size:"sm",onClick:()=>g(l),className:"text-xs px-2 py-1 h-auto text-destructive hover:text-destructive",children:[e.jsx(K,{className:"h-3 w-3 mr-1"}),"删除"]})]})]},l.id))}),n>0&&e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 px-4 py-3 border-t",children:[e.jsxs("div",{className:"text-sm text-muted-foreground",children:["共 ",n," 条记录,第 ",i," / ",Math.ceil(n/r)," 页"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(h,{variant:"outline",size:"sm",onClick:()=>d(1),disabled:i===1,className:"hidden sm:flex",children:e.jsx(Ve,{className:"h-4 w-4"})}),e.jsxs(h,{variant:"outline",size:"sm",onClick:()=>d(i-1),disabled:i===1,children:[e.jsx(He,{className:"h-4 w-4 sm:mr-1"}),e.jsx("span",{className:"hidden sm:inline",children:"上一页"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(M,{type:"number",value:F,onChange:l=>S(l.target.value),onKeyDown:l=>l.key==="Enter"&&L(),placeholder:i.toString(),className:"w-16 h-8 text-center",min:1,max:Math.ceil(n/r)}),e.jsx(h,{variant:"outline",size:"sm",onClick:L,disabled:!F,className:"h-8",children:"跳转"})]}),e.jsxs(h,{variant:"outline",size:"sm",onClick:()=>d(i+1),disabled:i>=Math.ceil(n/r),children:[e.jsx("span",{className:"hidden sm:inline",children:"下一页"}),e.jsx(qe,{className:"h-4 w-4 sm:ml-1"})]}),e.jsx(h,{variant:"outline",size:"sm",onClick:()=>d(Math.ceil(n/r)),disabled:i>=Math.ceil(n/r),className:"hidden sm:flex",children:e.jsx(Ge,{className:"h-4 w-4"})})]})]})]})}function Es(){const[s,t]=o.useState([]),[n,i]=o.useState(!0),[r,c]=o.useState(0),[u,f]=o.useState(1),[g,N]=o.useState(20),[x,d]=o.useState(""),[J,F]=o.useState("all"),[S,L]=o.useState("all"),[l,ne]=o.useState(null),[ye,le]=o.useState(!1),[Se,R]=o.useState(!1),[Ce,V]=o.useState(!1),[I,H]=o.useState(null),[v,k]=o.useState(new Set),[ke,q]=o.useState(!1),[D,De]=o.useState({total:0,confirmed_jargon:0,confirmed_not_jargon:0,pending:0,global_count:0,complete_count:0,chat_count:0,top_chats:{}}),[G,Ee]=o.useState([]),{toast:w}=ae(),z=async()=>{try{i(!0);const a=await ss({page:u,page_size:g,search:x||void 0,chat_id:J==="all"?void 0:J,is_jargon:S==="all"?void 0:S==="true"?!0:S==="false"?!1:void 0});t(a.data),c(a.total)}catch(a){w({title:"加载失败",description:a instanceof Error?a.message:"无法加载黑话列表",variant:"destructive"})}finally{i(!1)}},T=async()=>{try{const a=await rs();a?.data&&De(a.data)}catch(a){console.error("加载统计数据失败:",a)}},Je=async()=>{try{const a=await es();a?.data&&Ee(a.data)}catch(a){console.error("加载聊天列表失败:",a)}};o.useEffect(()=>{z(),T(),Je()},[u,g,x,J,S]);const ze=async a=>{try{const j=await ts(a.id);ne(j.data),le(!0)}catch(j){w({title:"加载详情失败",description:j instanceof Error?j.message:"无法加载黑话详情",variant:"destructive"})}},Te=a=>{ne(a),R(!0)},Ae=async()=>{if(I)try{await ls(I.id),w({title:"删除成功",description:`已删除黑话: ${I.content}`}),H(null),z(),T()}catch(a){w({title:"删除失败",description:a instanceof Error?a.message:"无法删除黑话",variant:"destructive"})}},Oe=a=>{const j=new Set(v);j.has(a)?j.delete(a):j.add(a),k(j)},Pe=()=>{v.size===s.length&&s.length>0?k(new Set):k(new Set(s.map(a=>a.id)))},$e=async()=>{try{await is(Array.from(v)),w({title:"批量删除成功",description:`已删除 ${v.size} 个黑话`}),k(new Set),q(!1),z(),T()}catch(a){w({title:"批量删除失败",description:a instanceof Error?a.message:"无法批量删除黑话",variant:"destructive"})}},ie=async a=>{try{await cs(Array.from(v),a),w({title:"操作成功",description:`已将 ${v.size} 个词条设为${a?"黑话":"非黑话"}`}),k(new Set),z(),T()}catch(j){w({title:"操作失败",description:j instanceof Error?j.message:"批量设置失败",variant:"destructive"})}},Fe=a=>{const j=parseInt(a),re=Math.ceil(r/g);j>=1&&j<=re?f(j):w({title:"无效的页码",description:`请输入1-${re}之间的页码`,variant:"destructive"})};return e.jsxs("div",{className:"h-[calc(100vh-4rem)] flex flex-col p-4 sm:p-6",children:[e.jsx("div",{className:"mb-4 sm:mb-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"text-2xl sm:text-3xl font-bold flex items-center gap-2",children:[e.jsx(We,{className:"h-8 w-8",strokeWidth:2}),"黑话"]}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm sm:text-base",children:"管理麦麦学习到的黑话和俗语"})]}),e.jsxs(h,{onClick:()=>V(!0),className:"gap-2",children:[e.jsx(Ke,{className:"h-4 w-4"}),"新增黑话"]})]})}),e.jsx(Be,{className:"flex-1",children:e.jsxs("div",{className:"space-y-4 sm:space-y-6 pr-4",children:[e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-7 gap-3",children:[e.jsxs("div",{className:"rounded-lg border bg-card p-3 sm:p-4",children:[e.jsx("div",{className:"text-xs sm:text-sm text-muted-foreground",children:"总数量"}),e.jsx("div",{className:"text-xl sm:text-2xl font-bold mt-1",children:D.total})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-3 sm:p-4",children:[e.jsx("div",{className:"text-xs sm:text-sm text-muted-foreground",children:"已确认黑话"}),e.jsx("div",{className:"text-xl sm:text-2xl font-bold mt-1 text-green-600",children:D.confirmed_jargon})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-3 sm:p-4",children:[e.jsx("div",{className:"text-xs sm:text-sm text-muted-foreground",children:"确认非黑话"}),e.jsx("div",{className:"text-xl sm:text-2xl font-bold mt-1 text-gray-500",children:D.confirmed_not_jargon})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-3 sm:p-4",children:[e.jsx("div",{className:"text-xs sm:text-sm text-muted-foreground",children:"待判定"}),e.jsx("div",{className:"text-xl sm:text-2xl font-bold mt-1 text-yellow-600",children:D.pending})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-3 sm:p-4",children:[e.jsx("div",{className:"text-xs sm:text-sm text-muted-foreground",children:"全局黑话"}),e.jsx("div",{className:"text-xl sm:text-2xl font-bold mt-1 text-blue-600",children:D.global_count})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-3 sm:p-4",children:[e.jsx("div",{className:"text-xs sm:text-sm text-muted-foreground",children:"推断完成"}),e.jsx("div",{className:"text-xl sm:text-2xl font-bold mt-1 text-purple-600",children:D.complete_count})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-3 sm:p-4",children:[e.jsx("div",{className:"text-xs sm:text-sm text-muted-foreground",children:"关联聊天数"}),e.jsx("div",{className:"text-xl sm:text-2xl font-bold mt-1",children:D.chat_count})]})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(m,{htmlFor:"search",children:"搜索"}),e.jsxs("div",{className:"relative",children:[e.jsx(Qe,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"}),e.jsx(M,{id:"search",placeholder:"搜索内容、含义...",value:x,onChange:a=>d(a.target.value),className:"pl-9"})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(m,{children:"聊天筛选"}),e.jsxs(A,{value:J,onValueChange:F,children:[e.jsx(O,{children:e.jsx(P,{placeholder:"全部聊天"})}),e.jsxs($,{children:[e.jsx(p,{value:"all",children:"全部聊天"}),G.map(a=>e.jsx(p,{value:a.chat_id,children:a.chat_name},a.chat_id))]})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(m,{children:"状态筛选"}),e.jsxs(A,{value:S,onValueChange:L,children:[e.jsx(O,{children:e.jsx(P,{placeholder:"全部状态"})}),e.jsxs($,{children:[e.jsx(p,{value:"all",children:"全部状态"}),e.jsx(p,{value:"true",children:"是黑话"}),e.jsx(p,{value:"false",children:"非黑话"})]})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(m,{htmlFor:"page-size",children:"每页显示"}),e.jsxs(A,{value:g.toString(),onValueChange:a=>{N(parseInt(a)),f(1),k(new Set)},children:[e.jsx(O,{id:"page-size",children:e.jsx(P,{})}),e.jsxs($,{children:[e.jsx(p,{value:"10",children:"10"}),e.jsx(p,{value:"20",children:"20"}),e.jsx(p,{value:"50",children:"50"}),e.jsx(p,{value:"100",children:"100"})]})]})]})]}),v.size>0&&e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-4 pt-4 border-t",children:[e.jsxs("span",{className:"text-sm text-muted-foreground",children:["已选择 ",v.size," 个"]}),e.jsxs(h,{variant:"outline",size:"sm",onClick:()=>ie(!0),children:[e.jsx(be,{className:"h-4 w-4 mr-1"}),"标记为黑话"]}),e.jsxs(h,{variant:"outline",size:"sm",onClick:()=>ie(!1),children:[e.jsx(_e,{className:"h-4 w-4 mr-1"}),"标记为非黑话"]}),e.jsx(h,{variant:"outline",size:"sm",onClick:()=>k(new Set),children:"取消选择"}),e.jsxs(h,{variant:"destructive",size:"sm",onClick:()=>q(!0),children:[e.jsx(K,{className:"h-4 w-4 mr-1"}),"批量删除"]})]})]}),e.jsx(us,{jargons:s,loading:n,total:r,page:u,pageSize:g,selectedIds:v,onEdit:Te,onViewDetail:ze,onDelete:a=>H(a),onToggleSelect:Oe,onToggleSelectAll:Pe,onPageChange:f,onJumpToPage:Fe})]})}),e.jsx(ds,{jargon:l,open:ye,onOpenChange:le}),e.jsx(os,{open:Ce,onOpenChange:V,chatList:G,onSuccess:()=>{z(),T(),V(!1)}}),e.jsx(xs,{jargon:l,open:Se,onOpenChange:R,chatList:G,onSuccess:()=>{z(),T(),R(!1)}}),e.jsx(hs,{jargon:I,open:!!I,onOpenChange:()=>H(null),onConfirm:Ae}),e.jsx(ms,{open:ke,onOpenChange:q,onConfirm:$e,count:v.size})]})}export{Es as JargonManagementPage}; diff --git a/dashboard/dist/assets/index-V_LLuoFO.js b/dashboard/dist/assets/index-V_LLuoFO.js new file mode 100644 index 00000000..192249d0 --- /dev/null +++ b/dashboard/dist/assets/index-V_LLuoFO.js @@ -0,0 +1 @@ +import{j as e,r as a,i as Ge}from"./router-zNjPR4CY.js";import{E as Ke,$ as Ve,N as M,a0 as He,B as x,A as I,m as xe,n as z,o as E,q as $,r as L,s as U,t as W,v as J,X as qe,Y as Xe,S as ge,a1 as ie,a2 as Ye}from"./index-CuOHsLf7.js";import{M as q,m as Ze,S as Qe,c as A,P as es,a as ss}from"./ProviderList-4mOft0xL.js";import{R as ts,u as rs,a as is}from"./restart-overlay-B44c6hlE.js";import{v as je,_ as we,w as ye,ah as Se,a6 as Ne,ai as ns}from"./icons-DTcdLw9j.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";import"./popover-DSuRLFDH.js";import"./select-DGqIoF9r.js";import"./badge-CDs67obV.js";import"./checkbox-DWiVrbnx.js";import"./table-DFeDhBY_.js";import"./progress-C6-hh8fF.js";import"./system-api-DeeJapvB.js";function B(o){return o&&typeof o=="object"&&"config"in o?o.config:o}function Ss(){return e.jsx(ts,{children:e.jsx(as,{})})}function as(){const[o,S]=a.useState([]),[Pe,X]=a.useState(!0),[C,m]=a.useState(!1),[D,F]=a.useState(!1),[p,g]=a.useState(!1),[_e,b]=a.useState(!1),[Ce,G]=a.useState(null),[De,Y]=a.useState(null),[Te,Z]=a.useState(!1),[K,ne]=a.useState(null),[h,O]=a.useState(new Set),[ke,Q]=a.useState(!1),[f,R]=a.useState({isOpen:!1,providersToDelete:[],affectedModels:[],pendingProviders:[],context:"auto",oldProviders:[]}),[N,ae]=a.useState(new Set),[Ae,be]=a.useState(new Map),[Oe,Re]=a.useState(()=>localStorage.getItem("model-provider-restart-notice-dismissed")!=="true"),{toast:l}=Ke(),oe=Ge(),{state:c,goToStep:ee,registerTour:le}=Ve(),{triggerRestart:Me,isRestarting:T}=rs(),j=a.useRef(null),se=a.useRef(!0),w=a.useRef(null),ce=a.useRef(c.stepIndex);a.useEffect(()=>{le(q,Ze)},[le]),a.useEffect(()=>{if(c.activeTourId===q&&c.isRunning){const s=Qe[c.stepIndex];s&&!window.location.pathname.endsWith(s.replace("/config/",""))&&oe({to:s})}},[c.stepIndex,c.activeTourId,c.isRunning,oe]),a.useEffect(()=>{if(c.activeTourId===q&&c.isRunning){const s=ce.current,r=c.stepIndex;s>=3&&s<=9&&r<3&&b(!1),s>=10&&r>=3&&r<=9&&(G({name:"",base_url:"",api_key:"",client_type:"openai",max_retry:2,timeout:30,retry_interval:10}),Y(null),b(!0)),ce.current=r}},[c.stepIndex,c.activeTourId,c.isRunning]),a.useEffect(()=>{if(c.activeTourId!==q||!c.isRunning)return;const s=r=>{const t=r.target,i=c.stepIndex;i===2&&t.closest('[data-tour="add-provider-button"]')?setTimeout(()=>ee(3),300):i===9&&t.closest('[data-tour="provider-cancel-button"]')&&setTimeout(()=>ee(10),300)};return document.addEventListener("click",s,!0),()=>document.removeEventListener("click",s,!0)},[c,ee]),a.useEffect(()=>{Ie()},[]);const Ie=async()=>{try{X(!0);const s=await M();if(!s.success){l({title:"加载失败",description:s.error,variant:"destructive"}),X(!1);return}const r=B(s.data),t=Array.isArray(r.api_providers)?r.api_providers:[];S(t),w.current=JSON.stringify(t.map(A)),g(!1),se.current=!1}catch(s){console.error("加载配置失败:",s)}finally{X(!1)}},V=async()=>{await Me()},ze=()=>{localStorage.setItem("model-provider-restart-notice-dismissed","true"),Re(!1)},de=async()=>{try{m(!0),j.current&&clearTimeout(j.current);const s=o.map(n=>({...n,max_retry:n.max_retry??2,timeout:n.timeout??30,retry_interval:n.retry_interval??10})),{shouldProceed:r}=await k(s,"restart");if(!r){m(!1);return}const t=await M();if(!t.success){l({title:"保存失败",description:t.error,variant:"destructive"}),m(!1);return}const i=B(t.data),P=new Set(s.map(n=>n.name)),v=(Array.isArray(i.models)?i.models:[]).filter(n=>typeof n=="object"&&n!==null&&"api_provider"in n&&P.has(n.api_provider));i.api_providers=s,i.models=v;const y=await ie(i);if(!y.success){l({title:"保存失败",description:y.error,variant:"destructive"}),m(!1);return}w.current=JSON.stringify(s),g(!1),l({title:"保存成功",description:"正在重启麦麦..."}),await V()}catch(s){console.error("保存配置失败:",s),l({title:"保存失败",description:s.message,variant:"destructive"}),m(!1)}},k=a.useCallback(async(s,r="auto")=>{try{const t=await M();if(!t.success)return console.error("加载配置失败:",t.error),{shouldProceed:!0,providers:s};const i=B(t.data),P=new Set(o.map(u=>u.name)),_=new Set(s.map(u=>u.name)),v=Array.from(P).filter(u=>!_.has(u));if(v.length===0)return{shouldProceed:!0,providers:s};const n=(Array.isArray(i.models)?i.models:[]).filter(u=>typeof u=="object"&&u!==null&&"api_provider"in u&&v.includes(u.api_provider));return n.length===0?{shouldProceed:!0,providers:s}:(R({isOpen:!0,providersToDelete:v,affectedModels:n,pendingProviders:s,context:r,oldProviders:[...o]}),{shouldProceed:!1,providers:s})}catch(t){return console.error("检查删除影响失败:",t),{shouldProceed:!0,providers:s}}},[o]),Ee=async()=>{try{const s=f.context==="auto"?F:m;s(!0),R(d=>({...d,isOpen:!1}));const r=await M();if(!r.success){l({title:"加载失败",description:r.error,variant:"destructive"}),s(!1);return}const t=B(r.data),i=f.pendingProviders.map(A),P=new Set(i.map(d=>d.name)),v=(Array.isArray(t.models)?t.models:[]).filter(d=>typeof d=="object"&&d!==null&&"api_provider"in d&&P.has(d.api_provider)),y=new Set(f.affectedModels.map(d=>typeof d=="object"&&d!==null&&"name"in d?d.name:"")),n=t.model_task_config;n&&typeof n=="object"&&Object.keys(n).forEach(d=>{const H=n[d];if(H&&typeof H=="object"&&"model_list"in H){const re=H;Array.isArray(re.model_list)&&(re.model_list=re.model_list.filter(ve=>typeof ve=="string"&&!y.has(ve)))}}),t.api_providers=i,t.models=v,t.model_task_config=n;const u=await ie(t);if(!u.success){l({title:"保存失败",description:u.error,variant:"destructive"}),s(!1);return}S(f.pendingProviders),w.current=JSON.stringify(i),g(!1),l({title:"删除成功",description:`已删除 ${f.providersToDelete.length} 个提供商和 ${f.affectedModels.length} 个关联模型`}),R({isOpen:!1,providersToDelete:[],affectedModels:[],pendingProviders:[],context:"auto",oldProviders:[]}),O(new Set),f.context==="restart"&&await V()}catch(s){console.error("删除失败:",s),l({title:"删除失败",description:s.message,variant:"destructive"})}finally{f.context==="auto"?F(!1):m(!1)}},$e=()=>{f.oldProviders.length>0&&S(f.oldProviders),R({isOpen:!1,providersToDelete:[],affectedModels:[],pendingProviders:[],context:"auto",oldProviders:[]}),g(!1)},ue=a.useCallback(async s=>{if(se.current)return;const{shouldProceed:r}=await k(s,"auto");if(!r){g(!0);return}try{F(!0);const t=s.map(A),i=await He("api_providers",t);if(!i.success){console.error("自动保存失败:",i.error),l({title:"自动保存失败",description:i.error,variant:"destructive"}),g(!0);return}w.current=JSON.stringify(t),g(!1)}catch(t){console.error("自动保存失败:",t),l({title:"自动保存失败",description:t.message,variant:"destructive"}),g(!0)}finally{F(!1)}},[o,k]);a.useEffect(()=>{if(se.current)return;const s=JSON.stringify(o.map(A));if(w.current===null){w.current=s;return}if(s!==w.current)return g(!0),j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{ue(o)},2e3),()=>{j.current&&clearTimeout(j.current)}},[o,ue]);const fe=async()=>{try{m(!0),j.current&&clearTimeout(j.current);const s=o.map(A),{shouldProceed:r}=await k(s,"manual");if(!r){m(!1);return}const t=await M();if(!t.success){l({title:"保存失败",description:t.error,variant:"destructive"}),m(!1);return}const i=B(t.data),P=new Set(s.map(n=>n.name)),_=Array.isArray(i.models)?i.models:[],v=_.filter(n=>{if(typeof n!="object"||n===null||!("api_provider"in n))return!1;const u=n,d=P.has(u.api_provider);return d||console.warn(`模型 "${u.name}" 引用了已删除的提供商 "${u.api_provider}"、将被移除`),d});if(_.length!==v.length){const n=_.length-v.length;l({title:"注意",description:`已自动移除 ${n} 个引用已删除提供商的模型`,variant:"default"})}console.log("发送的 providers 数据:",s),i.api_providers=s,i.models=v,console.log("完整配置数据:",i);const y=await ie(i);if(!y.success){l({title:"保存失败",description:y.error,variant:"destructive"}),m(!1);return}w.current=JSON.stringify(s),g(!1),l({title:"保存成功",description:"模型提供商配置已保存"})}catch(s){console.error("保存配置失败:",s),l({title:"保存失败",description:s.message,variant:"destructive"})}finally{m(!1)}},te=(s,r)=>{G(s||{name:"",base_url:"",api_key:"",client_type:"openai",max_retry:2,timeout:30,retry_interval:10}),Y(r),b(!0)},Le=(s,r)=>{const t=A(s);if(r!==null){const i=[...o];i[r]=t,S(i)}else S([...o,t]);b(!1),G(null),Y(null)},Ue=s=>{ne(s),Z(!0)},We=async()=>{if(K!==null){const s=o.filter((t,i)=>i!==K),{shouldProceed:r}=await k(s,"manual");r&&(S(s),l({title:"删除成功",description:"提供商已从列表中移除"}))}Z(!1),ne(null)},Je=s=>{const r=new Set(h);r.has(s)?r.delete(s):r.add(s),O(r)},Be=()=>{if(h.size===o.length)O(new Set);else{const s=o.map((r,t)=>t);O(new Set(s))}},me=()=>{if(h.size===0){l({title:"提示",description:"请先选择要删除的提供商",variant:"default"});return}Q(!0)},Fe=async()=>{const s=o.filter((t,i)=>!h.has(i)),{shouldProceed:r}=await k(s,"manual");r&&(S(s),O(new Set),l({title:"批量删除成功",description:`已删除 ${h.size} 个提供商`})),Q(!1)},pe=async s=>{ae(r=>new Set(r).add(s));try{const r=await Ye(s);if(!r.success){l({title:"测试失败",description:r.error,variant:"destructive"});return}const t=r.data;be(i=>new Map(i).set(s,t)),t.network_ok?t.api_key_valid===!0?l({title:"连接正常",description:`${s} 网络连接正常、API Key 有效 (${t.latency_ms}ms)`}):t.api_key_valid===!1?l({title:"连接正常但 Key 无效",description:`${s} 网络连接正常、但 API Key 无效或已过期`,variant:"destructive"}):l({title:"网络连接正常",description:`${s} 可以访问 (${t.latency_ms}ms)`}):l({title:"连接失败",description:t.error||"无法连接到提供商",variant:"destructive"})}catch(r){l({title:"测试失败",description:r.message,variant:"destructive"})}finally{ae(r=>{const t=new Set(r);return t.delete(s),t})}},he=async()=>{for(const s of o)await pe(s.name)};return Pe?e.jsx("div",{className:"space-y-4 sm:space-y-6 p-4 sm:p-6",children:e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx("p",{className:"text-muted-foreground",children:"加载中..."})})}):e.jsxs("div",{className:"space-y-4 sm:space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl sm:text-3xl font-bold",children:"模型厂商设置"}),e.jsx("p",{className:"text-muted-foreground mt-1 sm:mt-2 text-sm sm:text-base",children:"管理 AI 模型厂商的 API 配置"})]}),e.jsxs("div",{className:"hidden",children:[h.size>0&&e.jsxs(x,{onClick:me,size:"sm",variant:"destructive",className:"w-full sm:w-auto",children:[e.jsx(je,{className:"mr-2 h-4 w-4",strokeWidth:2,fill:"none"}),"批量删除 (",h.size,")"]}),e.jsxs(x,{onClick:he,size:"sm",variant:"outline",className:"w-full sm:w-auto",disabled:o.length===0||N.size>0,children:[e.jsx(we,{className:"mr-2 h-4 w-4"}),N.size>0?`测试中 (${N.size})`:"测试全部"]}),e.jsxs(x,{onClick:()=>te(null,null),size:"sm",className:"w-full sm:w-auto","data-tour":"add-provider-button",children:[e.jsx(ye,{className:"mr-2 h-4 w-4",strokeWidth:2,fill:"none"}),"添加提供商"]}),e.jsxs(x,{onClick:fe,disabled:C||D||!p||T,size:"sm",variant:"outline",className:"w-full sm:w-auto sm:min-w-[120px]",children:[e.jsx(Se,{className:"mr-2 h-4 w-4",strokeWidth:2,fill:"none"}),C?"保存中...":D?"自动保存中...":p?"保存配置":"已保存"]}),e.jsxs(I,{children:[e.jsx(xe,{asChild:!0,children:e.jsxs(x,{disabled:C||D||T,size:"sm",className:"w-full sm:w-auto sm:min-w-[120px]",children:[e.jsx(Ne,{className:"mr-2 h-4 w-4"}),T?"重启中...":p?"保存并重启":"重启麦麦"]})}),e.jsxs(z,{children:[e.jsxs(E,{children:[e.jsx($,{children:"确认重启麦麦?"}),e.jsx(L,{asChild:!0,children:e.jsx("div",{children:e.jsx("p",{children:p?"当前有未保存的配置更改。点击确认将先保存配置,然后重启麦麦使新配置生效。重启过程中麦麦将暂时离线。":"即将重启麦麦主程序。重启过程中麦麦将暂时离线,配置将在重启后生效。"})})})]}),e.jsxs(U,{children:[e.jsx(W,{children:"取消"}),e.jsx(J,{onClick:p?de:V,children:p?"保存并重启":"确认重启"})]})]})]})]})]}),Oe&&e.jsxs(qe,{children:[e.jsx(ns,{className:"h-4 w-4"}),e.jsxs(Xe,{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("span",{children:["配置更新后需要",e.jsx("strong",{children:"重启麦麦"}),'才能生效。你可以点击右上角的"保存并重启"按钮一键完成保存和重启。']}),e.jsx(x,{type:"button",variant:"outline",size:"sm",onClick:ze,children:"我知道了"})]})]}),e.jsx(ge,{className:"h-[calc(100vh-260px)]",children:e.jsx(es,{providers:o,testingProviders:N,testResults:Ae,selectedProviders:h,toolbarActions:e.jsxs(e.Fragment,{children:[h.size>0&&e.jsxs(x,{onClick:me,size:"sm",variant:"destructive",className:"w-full sm:w-auto",children:[e.jsx(je,{className:"mr-2 h-4 w-4",strokeWidth:2,fill:"none"}),e.jsxs("span",{className:"text-sm",children:["批量删除 (",h.size,")"]})]}),e.jsxs(x,{onClick:he,size:"sm",variant:"outline",className:"w-full sm:w-auto",disabled:o.length===0||N.size>0,children:[e.jsx(we,{className:"mr-2 h-4 w-4"}),e.jsx("span",{className:"text-sm",children:N.size>0?`测试中 (${N.size})`:"测试全部连接"})]}),e.jsxs(x,{onClick:()=>te(null,null),size:"sm",className:"w-full sm:w-auto","data-tour":"add-provider-button",children:[e.jsx(ye,{className:"mr-2 h-4 w-4",strokeWidth:2,fill:"none"}),e.jsx("span",{className:"text-sm",children:"添加厂商"})]}),e.jsxs(x,{onClick:fe,disabled:C||D||!p||T,size:"sm",variant:"outline",className:"w-full sm:w-auto sm:min-w-[120px]",children:[e.jsx(Se,{className:"mr-2 h-4 w-4",strokeWidth:2,fill:"none"}),e.jsx("span",{className:"text-sm",children:C?"保存中...":D?"自动保存中...":p?"保存配置":"已保存"})]}),e.jsxs(I,{children:[e.jsx(xe,{asChild:!0,children:e.jsxs(x,{disabled:C||D||T,size:"sm",className:"w-full sm:w-auto sm:min-w-[120px]",children:[e.jsx(Ne,{className:"mr-2 h-4 w-4"}),T?"重启中...":p?"保存并重启":"重启麦麦"]})}),e.jsxs(z,{children:[e.jsxs(E,{children:[e.jsx($,{children:"确认重启麦麦?"}),e.jsx(L,{asChild:!0,children:e.jsx("div",{children:e.jsx("p",{children:p?"当前有未保存的配置更改。确认后会先保存配置,然后重启麦麦使新配置生效。":"即将重启麦麦主程序。配置将在重启后生效。"})})})]}),e.jsxs(U,{children:[e.jsx(W,{children:"取消"}),e.jsx(J,{onClick:p?de:V,children:p?"保存并重启":"确认重启"})]})]})]})]}),onEdit:te,onDelete:Ue,onTest:pe,onToggleSelect:Je,onToggleSelectAll:Be})}),e.jsx(ss,{open:_e,onOpenChange:b,editingProvider:Ce,editingIndex:De,providers:o,onSave:Le,tourState:c}),e.jsx(I,{open:Te,onOpenChange:Z,children:e.jsxs(z,{children:[e.jsxs(E,{children:[e.jsx($,{children:"确认删除"}),e.jsxs(L,{children:['确定要删除提供商 "',K!==null?o[K]?.name:"",'" 吗? 此操作无法撤销。']})]}),e.jsxs(U,{children:[e.jsx(W,{children:"取消"}),e.jsx(J,{onClick:We,children:"删除"})]})]})}),e.jsx(I,{open:ke,onOpenChange:Q,children:e.jsxs(z,{children:[e.jsxs(E,{children:[e.jsx($,{children:"确认批量删除"}),e.jsxs(L,{children:["确定要删除选中的 ",h.size," 个提供商吗? 此操作无法撤销。"]})]}),e.jsxs(U,{children:[e.jsx(W,{children:"取消"}),e.jsx(J,{onClick:Fe,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"批量删除"})]})]})}),e.jsx(I,{open:f.isOpen,onOpenChange:s=>R(r=>({...r,isOpen:s})),children:e.jsxs(z,{className:"max-w-2xl",children:[e.jsxs(E,{children:[e.jsx($,{children:"确认删除提供商"}),e.jsx(L,{asChild:!0,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("p",{children:["您即将删除以下提供商:",e.jsx("strong",{className:"text-foreground ml-1",children:f.providersToDelete.join(", ")})]}),e.jsxs("p",{className:"text-yellow-600 dark:text-yellow-500 font-medium",children:["⚠️ 此操作将同时删除 ",f.affectedModels.length," 个关联的模型:"]}),e.jsx(ge,{className:"h-32 w-full rounded border p-3",children:e.jsx("div",{className:"space-y-1",children:f.affectedModels.map((s,r)=>e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-mono text-muted-foreground",children:"•"}),e.jsx("span",{className:"ml-2 font-medium",children:s.name}),e.jsxs("span",{className:"ml-2 text-xs text-muted-foreground",children:["(",s.model_identifier,")"]})]},r))})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"这些模型将从模型列表和所有任务分配中移除。此操作无法撤销。"})]})})]}),e.jsxs(U,{children:[e.jsx(W,{onClick:$e,children:"取消"}),e.jsx(J,{onClick:Ee,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"确认删除"})]})]})}),e.jsx(is,{})]})}export{Ss as ModelProviderConfigPage}; diff --git a/dashboard/dist/assets/index-x_t_kdGn.js b/dashboard/dist/assets/index-x_t_kdGn.js new file mode 100644 index 00000000..ac4ae082 --- /dev/null +++ b/dashboard/dist/assets/index-x_t_kdGn.js @@ -0,0 +1 @@ +import{j as e,r as h,i as ne}from"./router-zNjPR4CY.js";import{u as M,L as x,I as _,B as A,x as j,y as k,p as P,z as N,E as oe,F as de,G as ce,H as me,J as pe,g as T,K as G,C as ue,f as fe,S as xe,A as he,m as ge,n as ve,o as ye,q as _e,r as be,s as je,t as Pe,v as Ne}from"./index-CuOHsLf7.js";import{P as we}from"./progress-C6-hh8fF.js";import{S as Se,a as ke,b as Ce,c as qe,d as Ae}from"./select-DGqIoF9r.js";import{S as W}from"./switch-Kc2EZ0Ga.js";import{T as J}from"./textarea-8PIujbf-.js";import{$ as Fe,a0 as Be,d as Te,a1 as Me,V as De,a2 as Ee,J as Oe,a3 as Re,e as U,a4 as Ie,A as ze}from"./icons-DTcdLw9j.js";import{R as Le,u as Ke,a as Ge}from"./restart-overlay-B44c6hlE.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";import"./system-api-DeeJapvB.js";const We={qq:"qq",telegram:"telegram",tg:"telegram",discord:"discord",kook:"kook"},Je=["qq","telegram","discord","kook","custom"];function S(s){const t=s.trim().toLowerCase();return We[t]||t}function Ue(s){const t=s.platform;return!t&&s.qq_account.trim()?{selected:"qq",customName:""}:t?Je.find(r=>r===t&&r!=="custom")?{selected:t,customName:""}:{selected:"custom",customName:t}:{selected:"",customName:""}}function H(s,t,a){const r=S(t),n=s.filter(d=>{const p=d.split(":")[0];return S(p)!==r});return a.trim()&&n.push(`${r}:${a.trim()}`),n}function He(s,t){const a=S(t),r=s.find(n=>{const d=n.split(":")[0];return S(d)===a});return r?r.split(":").slice(1).join(":"):""}function Qe({config:s,onChange:t}){const{t:a}=M(),r=Ue(s),[n,d]=h.useState(null),[p,l]=h.useState(null),c=n??r.selected,u=p??r.customName,g=c==="qq"?s.qq_account.trim():s.platform?He(s.platforms,s.platform):"",f=[{value:"qq",label:"QQ"},{value:"telegram",label:"Telegram"},{value:"discord",label:"Discord"},{value:"kook",label:"Kook"},{value:"custom",label:a("setupPage.forms.botBasic.platform.options.custom")}],C=o=>{d(o),t({...s,platform:S(o==="custom"?u:o),qq_account:s.qq_account})},F=o=>{l(o);const v=S(o),b=g?H(s.platforms,v,g):s.platforms;t({...s,platform:v,platforms:b})},w=o=>{const b=S(c==="custom"?u:c);t(b==="qq"?{...s,qq_account:o.trim(),platform:"qq"}:{...s,platform:b,platforms:H(s.platforms,b,o)})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx(x,{htmlFor:"platform",children:a("setupPage.forms.botBasic.platform.label")}),e.jsxs(Se,{value:c,onValueChange:C,children:[e.jsx(ke,{id:"platform",children:e.jsx(Ce,{placeholder:a("setupPage.forms.botBasic.platform.placeholder")})}),e.jsx(qe,{children:f.map(o=>e.jsx(Ae,{value:o.value,children:o.label},o.value))})]}),e.jsx("p",{className:"text-muted-foreground text-xs",children:a("setupPage.forms.botBasic.platform.description")})]}),c==="custom"&&e.jsxs("div",{className:"space-y-3",children:[e.jsx(x,{htmlFor:"custom_platform_name",children:a("setupPage.forms.botBasic.customPlatform.label")}),e.jsx(_,{id:"custom_platform_name",placeholder:a("setupPage.forms.botBasic.customPlatform.placeholder"),value:u,onChange:o=>F(o.target.value)})]}),c==="qq"&&e.jsxs("div",{className:"space-y-3",children:[e.jsx(x,{htmlFor:"qq_account",children:a("setupPage.forms.botBasic.qqAccount.label")}),e.jsx(_,{id:"qq_account",type:"number",placeholder:a("setupPage.forms.botBasic.qqAccount.placeholder"),value:g,onChange:o=>w(o.target.value)}),e.jsx("p",{className:"text-muted-foreground text-xs",children:a("setupPage.forms.botBasic.qqAccount.description")})]}),c&&c!=="qq"&&(c!=="custom"||u)&&e.jsxs("div",{className:"space-y-3",children:[e.jsx(x,{htmlFor:"primary_account",children:a("setupPage.forms.botBasic.primaryAccount.label")}),e.jsx(_,{id:"primary_account",placeholder:a("setupPage.forms.botBasic.primaryAccount.placeholder"),value:g,onChange:o=>w(o.target.value)}),e.jsx("p",{className:"text-muted-foreground text-xs",children:a("setupPage.forms.botBasic.primaryAccount.description")})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(x,{htmlFor:"nickname",children:a("setupPage.forms.botBasic.nickname.label")}),e.jsx(_,{id:"nickname",placeholder:a("setupPage.forms.botBasic.nickname.placeholder"),value:s.nickname,onChange:o=>t({...s,nickname:o.target.value})}),e.jsx("p",{className:"text-muted-foreground text-xs",children:a("setupPage.forms.botBasic.nickname.description")})]})]})}function Ve({config:s,onChange:t}){const{t:a}=M();return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx(x,{htmlFor:"personality",children:a("setupPage.forms.personality.personality.label")}),e.jsx(J,{id:"personality",placeholder:a("setupPage.forms.personality.personality.placeholder"),value:s.personality,onChange:r=>t({...s,personality:r.target.value}),rows:3}),e.jsx("p",{className:"text-muted-foreground text-xs",children:a("setupPage.forms.personality.personality.description")})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(x,{htmlFor:"reply_style",children:a("setupPage.forms.personality.replyStyle.label")}),e.jsx(J,{id:"reply_style",placeholder:a("setupPage.forms.personality.replyStyle.placeholder"),value:s.reply_style,onChange:r=>t({...s,reply_style:r.target.value}),rows:3}),e.jsx("p",{className:"text-muted-foreground text-xs",children:a("setupPage.forms.personality.replyStyle.description")})]})]})}function $e({config:s,onChange:t}){const{t:a}=M(),[r,n]=h.useState(!1),d=a(r?"setupPage.forms.apiProvider.apiKey.hide":"setupPage.forms.apiProvider.apiKey.show");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx(x,{htmlFor:"provider_name",children:a("setupPage.forms.apiProvider.providerName.label")}),e.jsx(_,{id:"provider_name",placeholder:a("setupPage.forms.apiProvider.providerName.placeholder"),value:s.provider_name,onChange:p=>t({...s,provider_name:p.target.value})}),e.jsx("p",{className:"text-muted-foreground text-xs",children:a("setupPage.forms.apiProvider.providerName.description")})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(x,{htmlFor:"base_url",children:a("setupPage.forms.apiProvider.baseUrl.label")}),e.jsx(_,{id:"base_url",placeholder:"https://api.example.com/v1",value:s.base_url,onChange:p=>t({...s,base_url:p.target.value}),className:"font-mono"}),e.jsx("p",{className:"text-muted-foreground text-xs",children:a("setupPage.forms.apiProvider.baseUrl.description")})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(x,{htmlFor:"api_key",children:a("setupPage.forms.apiProvider.apiKey.label")}),e.jsxs("div",{className:"relative",children:[e.jsx(_,{id:"api_key",type:r?"text":"password",placeholder:"sk-...",value:s.api_key,onChange:p=>t({...s,api_key:p.target.value}),className:"pr-10 font-mono"}),e.jsx(A,{type:"button",variant:"ghost",size:"sm",className:"absolute top-0 right-0 h-full px-3 hover:bg-transparent",onClick:()=>n(!r),"aria-label":d,title:d,children:r?e.jsx(Fe,{className:"text-muted-foreground h-4 w-4"}):e.jsx(Be,{className:"text-muted-foreground h-4 w-4"})})]}),e.jsx("p",{className:"text-muted-foreground text-xs",children:a("setupPage.forms.apiProvider.apiKey.description")})]})]})}function Xe({config:s,onChange:t}){const{t:a}=M();return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-4 rounded-lg border p-4",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx(x,{htmlFor:"planner_model_identifier",children:a("setupPage.forms.modelSetup.planner.identifier.label")}),e.jsx(_,{id:"planner_model_identifier",placeholder:"gpt-4.1-mini",value:s.planner_model_identifier,onChange:r=>t({...s,planner_model_identifier:r.target.value,planner_model_name:r.target.value}),className:"font-mono"}),e.jsx("p",{className:"text-muted-foreground text-xs",children:a("setupPage.forms.modelSetup.planner.identifier.description")})]}),e.jsxs("div",{className:"flex items-center justify-between gap-4 rounded-md bg-muted/40 p-3",children:[e.jsx(x,{htmlFor:"planner_visual",className:"text-sm font-medium",children:a("setupPage.forms.modelSetup.planner.visual.label")}),e.jsx(W,{id:"planner_visual",checked:s.planner_visual,onCheckedChange:r=>t({...s,planner_visual:r})})]})]}),e.jsxs("div",{className:"space-y-4 rounded-lg border p-4",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx(x,{htmlFor:"replyer_model_identifier",children:a("setupPage.forms.modelSetup.replyer.identifier.label")}),e.jsx(_,{id:"replyer_model_identifier",placeholder:"gpt-4.1",value:s.replyer_model_identifier,onChange:r=>t({...s,replyer_model_identifier:r.target.value,replyer_model_name:r.target.value}),className:"font-mono"}),e.jsx("p",{className:"text-muted-foreground text-xs",children:a("setupPage.forms.modelSetup.replyer.identifier.description")})]}),e.jsxs("div",{className:"flex items-center justify-between gap-4 rounded-md bg-muted/40 p-3",children:[e.jsx(x,{htmlFor:"replyer_visual",className:"text-sm font-medium",children:a("setupPage.forms.modelSetup.replyer.visual.label")}),e.jsx(W,{id:"replyer_visual",checked:s.replyer_visual,onCheckedChange:r=>t({...s,replyer_visual:r})})]})]})]}),e.jsx("div",{className:"bg-muted/50 rounded-lg p-4 text-sm text-muted-foreground",children:a("setupPage.forms.modelSetup.saveHint")})]})}async function Ye(){const s=await j("/api/webui/config/bot",{method:"GET",headers:k()}),t=await P(s),r=N(t).config.bot||{},n=String(r.qq_account??"").trim();return{platform:r.platform||(n?"qq":""),qq_account:n,platforms:r.platforms||[],nickname:r.nickname||"",alias_names:r.alias_names||[]}}async function Ze(){const s=await j("/api/webui/config/bot",{method:"GET",headers:k()}),t=await P(s),r=N(t).config.personality||{};return{personality:r.personality||"",reply_style:r.reply_style||"",multiple_reply_style:r.multiple_reply_style||[],multiple_probability:r.multiple_probability??.2}}async function E(){const s=await j("/api/webui/config/model",{method:"GET",headers:k()}),t=await P(s);return N(t).config||{}}async function et(){const s=await E(),t=s.models||[],a=s.model_task_config||{},r=a.planner?.model_list?.[0]||"",n=a.replyer?.model_list?.[0]||"",d=t.find(u=>u.name===r),p=t.find(u=>u.name===n),l=d?.api_provider||p?.api_provider||s.api_providers?.[0]?.name||"",c=s.api_providers?.find(u=>u.name===l);return{provider_name:l,base_url:c?.base_url||"",api_key:""}}async function tt(){const s=await E(),t=s.models||[],a=s.model_task_config||{},r=a.planner?.model_list?.[0]||"",n=a.replyer?.model_list?.[0]||"",d=t.find(l=>l.name===r),p=t.find(l=>l.name===n);return{planner_model_name:r,planner_model_identifier:d?.model_identifier||r,planner_visual:!!d?.visual,replyer_model_name:n,replyer_model_identifier:p?.model_identifier||n,replyer_visual:!!p?.visual}}async function st(s){const t=await j("/api/webui/config/bot/section/bot",{method:"POST",headers:k(),body:JSON.stringify(s)}),a=await P(t);return N(a)}async function at(s){const t=await j("/api/webui/config/bot/section/personality",{method:"POST",headers:k(),body:JSON.stringify(s)}),a=await P(t);return N(a)}function Q(s,t,a,r,n){return{price_in:0,cache:!1,cache_price_in:0,price_out:0,force_stream_mode:!1,extra_params:{},...n,visual:r,model_identifier:t,name:s,api_provider:a}}function V(s,t){const a=s.findIndex(r=>r.name===t.name);return a>=0?s.map((r,n)=>n===a?t:r):[...s,t]}async function rt(s){const t=await E(),a=s.provider_name.trim(),r=t.api_providers||[],n=r.findIndex(u=>u.name===a),d={name:a,base_url:s.base_url.trim(),api_key:s.api_key.trim(),client_type:"openai",max_retry:3,timeout:120,retry_interval:5};n>=0?r[n]={...r[n],...d}:r.push(d);const p={...t,api_providers:r},l=await j("/api/webui/config/model",{method:"POST",headers:k(),body:JSON.stringify(p)}),c=await P(l);return N(c)}async function it(s,t){const a=await E(),r=t.trim(),n=s.planner_model_identifier.trim(),d=n,p=s.replyer_model_identifier.trim(),l=p;let c=a.models||[];const u=c.find(v=>v.name===d),g=c.find(v=>v.name===l);c=V(c,Q(d,n,r,s.planner_visual,u)),c=V(c,Q(l,p,r,s.replyer_visual,g));const f=a.model_task_config||{},C={...f,planner:{...f.planner||{},model_list:[d]},replyer:{...f.replyer||{},model_list:[l]},utils:{...f.utils||{},model_list:[d]}},F={...a,models:c,model_task_config:C},w=await j("/api/webui/config/model",{method:"POST",headers:k(),body:JSON.stringify(F)}),o=await P(w);return N(o)}async function $(){const s=await j("/api/webui/setup/complete",{method:"POST"}),t=await P(s);return N(t)}const lt=["zh","en","ja","ko"],X={zh:"中文",en:"English",ja:"日本語",ko:"한국어"};function _t(){return e.jsx(Le,{children:e.jsx(nt,{})})}function nt(){const s=ne(),{t,i18n:a}=M(),{toast:r}=oe(),{triggerRestart:n}=Ke(),d=a.resolvedLanguage||a.language||"zh",p=()=>({personality:t("setupPage.defaults.personality.personality"),reply_style:t("setupPage.defaults.personality.replyStyle"),multiple_reply_style:[t("setupPage.defaults.personality.multipleReplyStyles.plain"),t("setupPage.defaults.personality.multipleReplyStyles.shortText"),t("setupPage.defaults.personality.multipleReplyStyles.shortSymbol"),t("setupPage.defaults.personality.multipleReplyStyles.translation")],multiple_probability:.2}),[l,c]=h.useState(0),[u,g]=h.useState(!1),[f,C]=h.useState(!1),[F,w]=h.useState(!0),[o,v]=h.useState({platform:"",qq_account:"",platforms:[],nickname:"",alias_names:[]}),[b,O]=h.useState(()=>p()),[B,R]=h.useState({provider_name:"",base_url:"",api_key:""}),[D,I]=h.useState({planner_model_name:"",planner_model_identifier:"",planner_visual:!1,replyer_model_name:"",replyer_model_identifier:"",replyer_visual:!1}),y=[{id:"bot-basic",title:t("setupPage.steps.botBasic.title"),description:t("setupPage.steps.botBasic.description"),icon:Te},{id:"personality",title:t("setupPage.steps.personality.title"),description:t("setupPage.steps.personality.description"),icon:Me},{id:"api-provider",title:t("setupPage.steps.apiProvider.title"),description:t("setupPage.steps.apiProvider.description"),icon:De},{id:"model-setup",title:t("setupPage.steps.modelSetup.title"),description:t("setupPage.steps.modelSetup.description"),icon:Ee}],z=(l+1)/y.length*100;h.useEffect(()=>{(async()=>{try{w(!0);const[m,q,ie,le]=await Promise.all([Ye(),Ze(),et(),tt()]);v(m),O(q),R(ie),I(le)}catch(m){r({title:t("setupPage.toast.loadFailedTitle"),description:m instanceof Error?m.message:t("setupPage.toast.loadFailedDescription"),variant:"destructive"})}finally{w(!1)}})()},[t,r]);const L=async()=>{C(!0);try{switch(l){case 0:await st(o);break;case 1:await at(b);break;case 2:await rt(B);break;case 3:await it(D,B.provider_name);break}return r({title:t("setupPage.toast.saveSuccessTitle"),description:t("setupPage.toast.saveSuccessDescription",{step:y[l].title})}),!0}catch(i){return r({title:t("setupPage.toast.saveFailedTitle"),description:i instanceof Error?i.message:t("setupPage.toast.unknownError"),variant:"destructive"}),!1}finally{C(!1)}};function Y(i){if(!i.platform)return t("setupPage.validation.selectPlatform");if(!i.nickname.trim())return t("setupPage.validation.enterNickname");if(i.platform==="qq"){if(!i.qq_account.trim())return t("setupPage.validation.enterQqAccount")}else if(!i.platforms.some(q=>q.startsWith(i.platform+":")&&q.split(":")[1]?.trim()))return t("setupPage.validation.enterAccountId");return null}function Z(i){return i.provider_name.trim()?i.base_url.trim()?i.api_key.trim()?null:t("setupPage.validation.enterApiKey"):t("setupPage.validation.enterBaseUrl"):t("setupPage.validation.enterProviderName")}function K(i){return i.planner_model_identifier.trim()?i.replyer_model_identifier.trim()?B.provider_name.trim()?null:t("setupPage.validation.enterProviderName"):t("setupPage.validation.enterReplyerModelIdentifier"):t("setupPage.validation.enterPlannerModelIdentifier")}const ee=async()=>{if(l===0){const m=Y(o);if(m){r({title:t("setupPage.toast.validationFailedTitle"),description:m,variant:"destructive"});return}}if(l===2){const m=Z(B);if(m){r({title:t("setupPage.toast.validationFailedTitle"),description:m,variant:"destructive"});return}}if(l===3){const m=K(D);if(m){r({title:t("setupPage.toast.validationFailedTitle"),description:m,variant:"destructive"});return}}await L()&&l{l>0&&c(l-1)},se=async()=>{g(!0);try{const i=K(D);if(i){r({title:t("setupPage.toast.validationFailedTitle"),description:i,variant:"destructive"}),g(!1);return}if(!await L()){g(!1);return}await $(),r({title:t("setupPage.toast.completeSuccessTitle"),description:t("setupPage.toast.completeSuccessDescription",{appName:G})}),await n()}catch(i){r({title:t("setupPage.toast.completeFailedTitle"),description:i instanceof Error?i.message:t("setupPage.toast.unknownError"),variant:"destructive"})}finally{g(!1)}},ae=async()=>{try{await $(),s({to:"/"})}catch(i){r({title:t("setupPage.toast.skipFailedTitle"),description:i instanceof Error?i.message:t("setupPage.toast.unknownError"),variant:"destructive"})}},re=()=>{switch(l){case 0:return e.jsx(Qe,{config:o,onChange:v});case 1:return e.jsx(Ve,{config:b,onChange:O});case 2:return e.jsx($e,{config:B,onChange:R});case 3:return e.jsx(Xe,{config:D,onChange:I});default:return null}};return e.jsxs("div",{className:"from-primary/5 via-background to-secondary/5 relative flex min-h-screen flex-col items-center justify-center overflow-hidden bg-gradient-to-br p-4 md:p-6",children:[e.jsx(Ge,{}),e.jsx("div",{className:"absolute top-4 right-4 z-20",children:e.jsxs(de,{children:[e.jsx(ce,{asChild:!0,children:e.jsxs(A,{variant:"ghost",size:"sm",className:"gap-2",children:[e.jsx(Oe,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden text-xs sm:inline",children:X[d.split("-")[0]]??d})]})}),e.jsx(me,{align:"end",children:lt.map(i=>e.jsxs(pe,{onClick:()=>a.changeLanguage(i),className:T("cursor-pointer",d.split("-")[0]===i&&"text-primary font-semibold"),children:[d.split("-")[0]===i&&e.jsx("span",{className:"mr-2",children:"✓"}),X[i]]},i))})]})}),e.jsxs("div",{className:"pointer-events-none absolute inset-0 overflow-hidden",children:[e.jsx("div",{className:"bg-primary/5 absolute top-1/4 left-1/4 h-64 w-64 rounded-full blur-3xl md:h-96 md:w-96"}),e.jsx("div",{className:"bg-secondary/5 absolute right-1/4 bottom-1/4 h-64 w-64 rounded-full blur-3xl md:h-96 md:w-96"})]}),F?e.jsxs("div",{className:"relative z-10 text-center",children:[e.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center",children:e.jsx("div",{className:"border-primary h-12 w-12 animate-spin rounded-full border-4 border-t-transparent"})}),e.jsx("p",{className:"text-lg font-medium",children:t("setupPage.loading.title")}),e.jsx("p",{className:"text-muted-foreground mt-2 text-sm",children:t("setupPage.loading.description")})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"relative z-10 w-full max-w-4xl",children:[e.jsxs("div",{className:"mb-6 text-center md:mb-8",children:[e.jsx("div",{className:"bg-primary/10 mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-2xl md:h-16 md:w-16",children:e.jsx(Re,{className:"text-primary h-6 w-6 md:h-8 md:w-8",strokeWidth:2,fill:"none"})}),e.jsx("h1",{className:"mb-2 text-2xl font-bold md:text-3xl",children:t("setupPage.header.title")}),e.jsx("p",{className:"text-muted-foreground text-sm md:text-base",children:t("setupPage.header.description",{appName:G})})]}),e.jsxs("div",{className:"mb-6 md:mb-8",children:[e.jsxs("div",{className:"mb-2 flex items-center justify-between text-xs md:text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:t("setupPage.progress.stepCounter",{current:l+1,total:y.length})}),e.jsxs("span",{className:"text-primary font-medium",children:[Math.round(z),"%"]})]}),e.jsx(we,{value:z,className:"h-2"})]}),e.jsx("div",{className:"mb-6 flex justify-between md:mb-8",children:y.map((i,m)=>{const q=i.icon;return e.jsxs("div",{className:T("flex flex-1 flex-col items-center gap-1 md:gap-2",ms.id===t)}function l(t,e){const s=e.find(n=>n.id===t);if(s){if("manifest"in s&&s.manifest)return s.manifest.version;if("version"in s)return s.version}}export{l as a,o as c,c as g}; diff --git a/dashboard/dist/assets/key-value-editor-D1uUqXIn.js b/dashboard/dist/assets/key-value-editor-D1uUqXIn.js new file mode 100644 index 00000000..6c6d7eca --- /dev/null +++ b/dashboard/dist/assets/key-value-editor-D1uUqXIn.js @@ -0,0 +1,3 @@ +import{r as o,j as e}from"./router-zNjPR4CY.js";import{B as b,I as T,T as M,O as D,P as J,R as O,g as E}from"./index-CuOHsLf7.js";import{T as K}from"./textarea-8PIujbf-.js";import{S as P}from"./switch-Kc2EZ0Ga.js";import{S as $,a as B,b as F,c as L,d as v}from"./select-DGqIoF9r.js";import{w as V,a as U,y as W,v as q,W as G,b as H}from"./icons-DTcdLw9j.js";function N(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).substring(2,11)}`}function S(t){return t===null?"null":Array.isArray(t)?"array":typeof t=="object"?"object":typeof t=="boolean"?"boolean":typeof t=="number"?"number":"string"}function k(t){return Object.entries(t).map(([n,r])=>{const a=S(r),x={id:N(),key:n,value:r,type:a,expanded:!0};return a==="object"&&r&&typeof r=="object"?x.children=k(r):a==="array"&&Array.isArray(r)&&(x.children=r.map((h,l)=>{const f=S(h),i={id:N(),key:String(l),value:h,type:f,expanded:!0};return f==="object"&&h&&typeof h=="object"?i.children=k(h):f==="array"&&Array.isArray(h)&&(i.children=h.map((y,j)=>({id:N(),key:String(j),value:y,type:S(y),expanded:!0}))),i})),x})}function C(t){const n={};for(const r of t)r.key.trim()&&(r.type==="object"&&r.children?n[r.key]=C(r.children):r.type==="array"&&r.children?n[r.key]=r.children.map(a=>a.type==="object"&&a.children?C(a.children):a.type==="array"&&a.children?a.children.map(x=>x.value):a.value):r.type==="null"?n[r.key]=null:n[r.key]=r.value);return n}function R(t,n){switch(n){case"boolean":return t==="true";case"number":{const r=parseFloat(t);return isNaN(r)?0:r}case"null":return null;default:return t}}function z({node:t,level:n,onUpdate:r,onRemove:a,onAddChild:x,onToggleExpand:h}){const l=t.type==="object"||t.type==="array",f=t.children&&t.children.length>0;return e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"grid gap-2 items-center",style:{gridTemplateColumns:l?"32px 1fr 90px 64px":"32px 1fr 1fr 90px 32px",paddingLeft:`${n*20}px`},children:[e.jsx(b,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>h(t.id),disabled:!l||!f,children:l&&f?t.expanded?e.jsx(U,{className:"h-4 w-4"}):e.jsx(W,{className:"h-4 w-4"}):e.jsx("span",{className:"w-4"})}),e.jsx(T,{value:t.key,onChange:i=>r(t.id,"key",i.target.value),placeholder:"key",className:"h-8 text-sm"}),!l&&e.jsx(e.Fragment,{children:t.type==="boolean"?e.jsxs("div",{className:"flex items-center h-8 px-3 border rounded-md bg-background",children:[e.jsx(P,{checked:t.value===!0,onCheckedChange:i=>r(t.id,"value",i)}),e.jsx("span",{className:"ml-2 text-sm text-muted-foreground",children:t.value?"true":"false"})]}):t.type==="null"?e.jsx("div",{className:"flex items-center h-8 px-3 border rounded-md bg-muted text-sm text-muted-foreground",children:"null"}):e.jsx(T,{type:t.type==="number"?"number":"text",value:t.value,onChange:i=>r(t.id,"value",i.target.value),placeholder:"value",className:"h-8 text-sm",step:t.type==="number"?"any":void 0})}),e.jsxs($,{value:t.type,onValueChange:i=>r(t.id,"type",i),children:[e.jsx(B,{className:"h-8 text-xs",children:e.jsx(F,{})}),e.jsxs(L,{children:[e.jsx(v,{value:"string",children:"字符串"}),e.jsx(v,{value:"number",children:"数字"}),e.jsx(v,{value:"boolean",children:"布尔"}),e.jsx(v,{value:"null",children:"Null"}),e.jsx(v,{value:"object",children:"对象"}),e.jsx(v,{value:"array",children:"数组"})]})]}),e.jsxs("div",{className:"flex gap-1 justify-end",children:[l&&e.jsx(b,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-primary",onClick:()=>x(t.id),title:"添加子项",children:e.jsx(V,{className:"h-4 w-4"})}),e.jsx(b,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-destructive",onClick:()=>a(t.id),title:"删除",children:e.jsx(q,{className:"h-4 w-4"})})]})]}),l&&t.expanded&&t.children&&t.children.length>0&&e.jsx("div",{className:"space-y-1",children:t.children.map(i=>e.jsx(z,{node:i,level:n+1,onUpdate:r,onRemove:a,onAddChild:x,onToggleExpand:h},i.id))})]})}function Q({value:t,onChange:n,placeholder:r="添加参数..."}){const[a,x]=o.useState(()=>k(t||{})),h=o.useRef(null);o.useEffect(()=>{const d=JSON.stringify(t||{});h.current!==d&&x(k(t||{}))},[t]);const l=o.useCallback(d=>{const u=C(d);h.current=JSON.stringify(u),x(d),n(u)},[n]),f=o.useCallback(()=>{const d={id:N(),key:"",value:"",type:"string",expanded:!1};l([...a,d])},[a,l]),i=o.useCallback((d,u,c)=>{const s=w=>w.map(m=>{if(m.id===d)if(u==="type"){const p=c;if(p==="object")return{...m,type:p,value:{},children:[]};if(p==="array")return{...m,type:p,value:[],children:[]};if(p==="null")return{...m,type:p,value:null};{const I=R(String(m.value),p);return{...m,type:p,value:I,children:void 0}}}else if(u==="value"){const p=R(String(c),m.type);return{...m,value:p}}else return{...m,[u]:String(c)};return m.children?{...m,children:s(m.children)}:m});l(s(a))},[a,l]),y=o.useCallback(d=>{const u=c=>c.filter(s=>s.id!==d).map(s=>s.children?{...s,children:u(s.children)}:s);l(u(a))},[a,l]),j=o.useCallback(d=>{const u=c=>c.map(s=>{if(s.id===d){const w={id:N(),key:s.type==="array"?String(s.children?.length||0):"",value:"",type:"string",expanded:!0};return{...s,children:[...s.children||[],w]}}return s.children?{...s,children:u(s.children)}:s});l(u(a))},[a,l]),g=o.useCallback(d=>{const u=c=>c.map(s=>s.id===d?{...s,expanded:!s.expanded}:s.children?{...s,children:u(s.children)}:s);x(u(a))},[a]);return e.jsxs("div",{className:"h-full flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-xs text-muted-foreground",children:[a.length," 个参数"]}),e.jsxs(b,{type:"button",size:"sm",variant:"outline",onClick:f,className:"h-7 text-xs",children:[e.jsx(V,{className:"h-3 w-3 mr-1"}),"添加参数"]})]}),e.jsx("div",{className:"flex-1 overflow-y-auto space-y-1",children:a.length===0?e.jsx("div",{className:"text-sm text-muted-foreground text-center py-4 border border-dashed rounded-md",children:r}):e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"grid gap-2 text-xs text-muted-foreground px-1 sticky top-0 bg-background z-10",style:{gridTemplateColumns:"32px 1fr 1fr 90px 32px"},children:[e.jsx("span",{}),e.jsx("span",{children:"键名"}),e.jsx("span",{children:"值"}),e.jsx("span",{children:"类型"}),e.jsx("span",{})]}),a.map(d=>e.jsx(z,{node:d,level:0,onUpdate:i,onRemove:y,onAddChild:j,onToggleExpand:g},d.id))]})})]})}function A(t){if(!t.trim())return{valid:!0,parsed:{}};try{const n=JSON.parse(t);return typeof n!="object"||n===null||Array.isArray(n)?{valid:!1,error:"必须是一个 JSON 对象 {}"}:{valid:!0,parsed:n}}catch{return{valid:!1,error:"JSON 格式错误"}}}function se({value:t,onChange:n,className:r,placeholder:a="添加额外参数..."}){const[x,h]=o.useState("list"),l=o.useMemo(()=>Object.keys(t||{}).length>0?JSON.stringify(t,null,2):"",[t]),[f,i]=o.useState(l),[y,j]=o.useState(null);o.useEffect(()=>{i(l)},[l]);const g=o.useMemo(()=>{const c=A(f);return c.valid&&c.parsed?{success:!0,data:c.parsed}:{success:!1,data:{}}},[f]),d=o.useCallback(c=>{const s=c;s==="json"&&x==="list"&&(i(Object.keys(t).length>0?JSON.stringify(t,null,2):""),j(null)),h(s)},[x,t]),u=o.useCallback(c=>{i(c);const s=A(c);s.valid&&s.parsed?(j(null),n(s.parsed)):j(s.error||"JSON 格式错误")},[n]);return e.jsx("div",{className:E("h-full flex flex-col",r),children:e.jsxs(M,{value:x,onValueChange:d,className:"w-full flex-1 flex flex-col",children:[e.jsxs(D,{className:"h-8 p-0.5 bg-muted/60 w-fit",children:[e.jsx(J,{value:"list",className:"h-7 px-3 text-xs data-[state=active]:bg-background data-[state=active]:shadow-sm",children:"可视化编辑"}),e.jsx(J,{value:"json",className:"h-7 px-3 text-xs data-[state=active]:bg-background data-[state=active]:shadow-sm",children:"JSON 编辑"})]}),e.jsx(O,{value:"list",className:"mt-2 flex-1 flex flex-col overflow-hidden data-[state=inactive]:hidden data-[state=inactive]:h-0",children:e.jsx(Q,{value:t,onChange:n,placeholder:a})}),e.jsx(O,{value:"json",className:"mt-2 flex-1 flex flex-col overflow-hidden data-[state=inactive]:hidden data-[state=inactive]:h-0",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 flex-1 overflow-hidden",children:[e.jsxs("div",{className:"flex flex-col gap-2 overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-xs text-muted-foreground",children:"编辑"}),y?e.jsxs("div",{className:"flex items-center gap-1 text-xs text-destructive",children:[e.jsx(G,{className:"h-3 w-3"}),e.jsx("span",{className:"truncate max-w-[150px]",children:y})]}):f.trim()&&e.jsxs("div",{className:"flex items-center gap-1 text-xs text-green-600 dark:text-green-400",children:[e.jsx(H,{className:"h-3 w-3"}),e.jsx("span",{children:"有效"})]})]}),e.jsx(K,{value:f,onChange:c=>u(c.target.value),placeholder:`{ + "key": "value" +}`,className:E("font-mono text-sm flex-1 resize-none",y&&"border-destructive focus-visible:ring-destructive")}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"支持任意 JSON 类型(包括嵌套对象和数组)"})]}),e.jsxs("div",{className:"flex flex-col gap-2 overflow-hidden",children:[e.jsx("span",{className:"text-xs text-muted-foreground",children:"预览"}),e.jsx("div",{className:"flex-1 rounded-md border bg-muted/30 p-3 overflow-auto",children:g.success&&Object.keys(g.data).length>0?e.jsx("pre",{className:"font-mono text-xs whitespace-pre-wrap break-words",children:JSON.stringify(g.data,null,2)}):g.success?e.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground",children:"暂无参数"}):e.jsx("div",{className:"flex items-center justify-center h-full text-sm text-destructive",children:"JSON 格式错误"})}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"实时预览解析结果"})]})]})})]})})}export{se as K}; diff --git a/dashboard/dist/assets/knowledge-base-Du35OURl.js b/dashboard/dist/assets/knowledge-base-Du35OURl.js new file mode 100644 index 00000000..99db5719 --- /dev/null +++ b/dashboard/dist/assets/knowledge-base-Du35OURl.js @@ -0,0 +1,2 @@ +import{r as t,j as e}from"./router-zNjPR4CY.js";import{C as Pa}from"./CodeEditor-4JcGD1og.js";import{g as Gi,a as Wi,b as Hi,r as Qi,p as Zi,c as Xi,d as Yi,f as el,e as sl,h as tl,i as rl,s as dn,q as al,j as nl,k as il,l as Ht,m as un,n as mn,o as xn,t as hn,u as fa,v as Qt,w as ja,x as pn,y as ll,z as cl,A as ol,B as dl,C as ul,D as ml,E as xl,F as hl,G as pl,H as gl,I as fl,J as jl,K as vl,L as bl,M as Nl,N as yl,O as gn,P as kl,Q as _l,R as Sl,S as wl,T as Cl,U as Il}from"./index-DIOXYKVA.js";import{E as dr,C as X,b as Y,e as ee,d as se,f as te,L as u,I as p,af as nr,ag as ir,B as k,g as G,ah as lr,S as ye,X as ze,Y as $e,O as Pl,P as Ml,R as xe,T as En,D as Tl,i as El,j as Rl,k as Ol,l as Fl,a3 as Dl}from"./index-CuOHsLf7.js";import{B as N}from"./badge-CDs67obV.js";import{T as We,a as _s,b as D,c as Z,d as He,e as b}from"./table-DFeDhBY_.js";import{T as ys}from"./textarea-8PIujbf-.js";import{S as Ma,a as cr,R as Be,L as Ge,a7 as Je,aA as Ll,aB as fn,U as Al,aC as Bl,ah as zl,v as Ta,W as Ea,as as Ra,G as $l,y as ql,a3 as Oa,e as jn,aD as Jl,aE as Ul,D as vn,aF as bn,x as Kl}from"./icons-DTcdLw9j.js";import{S as Ee,a as Re,b as Oe,c as Fe,d as C}from"./select-DGqIoF9r.js";import{C as me}from"./checkbox-DWiVrbnx.js";import{u as va}from"./unified-ws-CBnrIqHW.js";import{P as er}from"./progress-C6-hh8fF.js";import"./reactflow-Bd-f2Ch7.js";import"./charts-C6WIfXk3.js";import"./utils-DjBw3JGv.js";import"./uppy-S0BLpioz.js";import"./radix-C-ZuImoP.js";import"./misc-BwRzHX8c.js";function Vl(s){if(!s)return"-";const i=s>1e12?s:s*1e3,l=new Date(i);return Number.isNaN(l.getTime())?"-":l.toLocaleString("zh-CN",{hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function Nn(s){const i=s.trim();if(!i)return;const l=Number(i);return Number.isFinite(l)?l:void 0}function Zt(s,i){const l=Number(s);return!Number.isInteger(l)||l<=0?i:l}function gt(s){return String(s?.episode_id??s?.id??"")}function yn(s){return String(s.title??s.summary??s.content??gt(s)??"未命名 Episode")}function Gl(s){const i=s?.paragraphs;return Array.isArray(i)?i:[]}function ba(s,i){const l=s?.counts;if(l&&typeof l[i]=="number")return l[i];const d=s?.[i];return typeof d=="number"?d:0}function Wl(){const{toast:s}=dr(),[i,l]=t.useState(""),[d,_]=t.useState(""),[g,y]=t.useState(""),[S,z]=t.useState(""),[I,$]=t.useState(""),[O,H]=t.useState(!1),[w,re]=t.useState(!1),[v,oe]=t.useState(""),[F,ne]=t.useState(""),[q,L]=t.useState("20"),[x,U]=t.useState([]),[m,P]=t.useState(null),[K,ie]=t.useState(""),[de,he]=t.useState(null),[h,le]=t.useState(!1),[W,Q]=t.useState(!1),[ce,A]=t.useState(!1),[ke,f]=t.useState(""),[J,ue]=t.useState(""),[ae,Qe]=t.useState(!1),[j,M]=t.useState("20"),[pe,De]=t.useState("3"),be=t.useRef(!1),B=t.useMemo(()=>de?.episode??x.find(c=>gt(c)===K),[de?.episode,x,K]),Ne=t.useMemo(()=>Gl(B),[B]),Ue=Array.isArray(m?.failed)?m.failed:[],_e=t.useCallback(async()=>{const c=await Gi(Zt(q,20));P(c)},[q]),Se=t.useCallback(async()=>{le(!0);try{const c=O?I.trim():"",[E]=await Promise.all([Wi({query:i.trim(),source:d.trim(),platform:g.trim(),userId:S.trim(),personId:c,limit:Zt(q,20),timeStart:Nn(v),timeEnd:Nn(F)}),_e()]),Xe=E.items??[];U(Xe),!K&&Xe.length>0&&ie(gt(Xe[0]))}catch(c){s({title:"加载情节记忆失败",description:c instanceof Error?c.message:String(c),variant:"destructive"})}finally{le(!1)}},[q,_e,I,g,i,K,O,d,F,v,s,S]),we=t.useCallback(async c=>{if(!c){he(null);return}Q(!0);try{const E=await Hi(c);he(E)}catch(E){s({title:"加载 Episode 详情失败",description:E instanceof Error?E.message:String(E),variant:"destructive"})}finally{Q(!1)}},[s]);t.useEffect(()=>{be.current||(be.current=!0,Se())},[Se]),t.useEffect(()=>{K&&we(K)},[we,K]);const Ss=t.useCallback(async()=>{if(ae&&!window.confirm("确认重建全部可用来源的 Episode?这个操作可能耗时较长。"))return;const c=J.split(",").map(E=>E.trim()).filter(Boolean);A(!0);try{const E=await Qi({source:ke.trim(),sources:c,all:ae});s({title:E.success?"Episode 重建已提交":"Episode 重建失败",description:String(E.detail??E.error??`影响来源 ${E.rebuilt??0} 个`),variant:E.success?"default":"destructive"}),await Se()}catch(E){s({title:"Episode 重建失败",description:E instanceof Error?E.message:String(E),variant:"destructive"})}finally{A(!1)}},[Se,ae,ke,J,s]),Ze=t.useCallback(async()=>{A(!0);try{const c=await Zi({limit:Zt(j,20),max_retry:Zt(pe,3)});s({title:c.success?"已处理待生成 Episode":"处理待生成 Episode 失败",description:String(c.detail??c.error??`已处理 ${c.processed??0} 项`),variant:c.success?"default":"destructive"}),await Se()}catch(c){s({title:"处理待生成 Episode 失败",description:c instanceof Error?c.message:String(c),variant:"destructive"})}finally{A(!1)}},[Se,j,pe,s]);return e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"grid gap-4 xl:grid-cols-4",children:[{label:"待处理队列",value:Number(m?.pending_queue??0)},{label:"待重建",value:ba(m,"pending")},{label:"运行中",value:ba(m,"running")},{label:"失败来源",value:Ue.length||ba(m,"failed")}].map(c=>e.jsx(X,{children:e.jsxs(Y,{className:"pb-3",children:[e.jsx(ee,{children:c.label}),e.jsx(se,{className:"text-2xl",children:c.value})]})},c.label))}),e.jsxs("div",{className:"grid gap-4 xl:grid-cols-[minmax(0,0.95fr)_minmax(0,1.05fr)]",children:[e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsxs(se,{className:"flex items-center gap-2",children:[e.jsx(Ma,{className:"h-4 w-4"}),"Episode 查询"]}),e.jsx(ee,{children:"按平台账号、来源和时间范围查看情节记忆构建结果;person_id 查询放在高级入口。"})]}),e.jsxs(te,{className:"space-y-4",children:[e.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"episode-platform",children:"平台"}),e.jsx(p,{id:"episode-platform",value:g,onChange:c=>y(c.target.value),placeholder:"例如 qq、telegram、webui"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"episode-user-id",children:"用户账号"}),e.jsx(p,{id:"episode-user-id",value:S,onChange:c=>z(c.target.value),placeholder:"输入平台侧 user_id"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"episode-query",children:"关键词"}),e.jsx(p,{id:"episode-query",value:i,onChange:c=>l(c.target.value),placeholder:"搜索摘要或内容"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"episode-source",children:"来源"}),e.jsx(p,{id:"episode-source",value:d,onChange:c=>_(c.target.value),placeholder:"chat_summary:..."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"episode-limit",children:"数量"}),e.jsx(p,{id:"episode-limit",type:"number",value:q,onChange:c=>L(c.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"episode-time-start",children:"开始时间戳"}),e.jsx(p,{id:"episode-time-start",value:v,onChange:c=>oe(c.target.value),placeholder:"可选"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"episode-time-end",children:"结束时间戳"}),e.jsx(p,{id:"episode-time-end",value:F,onChange:c=>ne(c.target.value),placeholder:"可选"})]})]}),e.jsxs(nr,{open:O,onOpenChange:H,className:"rounded-lg border bg-muted/10",children:[e.jsx(ir,{asChild:!0,children:e.jsxs(k,{variant:"ghost",className:"flex h-10 w-full justify-between px-3",children:[e.jsx("span",{children:"高级查询"}),e.jsx(cr,{className:G("h-4 w-4 transition-transform",O&&"rotate-180")})]})}),e.jsxs(lr,{className:"space-y-2 border-t px-3 py-3",children:[e.jsx(u,{htmlFor:"episode-person",children:"person_id"}),e.jsx(p,{id:"episode-person",value:I,onChange:c=>$(c.target.value),placeholder:"调试或后台管理时直接输入"})]})]}),e.jsxs(k,{onClick:()=>{Se()},disabled:h,children:[e.jsx(Be,{className:G("mr-2 h-4 w-4",h&&"animate-spin")}),"刷新 Episode"]}),e.jsx(ye,{className:"h-[420px] rounded-lg border",children:e.jsxs(We,{children:[e.jsx(_s,{className:"sticky top-0 bg-background",children:e.jsxs(D,{children:[e.jsx(Z,{children:"Episode"}),e.jsx(Z,{children:"来源"}),e.jsx(Z,{children:"更新时间"})]})}),e.jsx(He,{children:x.length>0?x.map(c=>{const E=gt(c);return e.jsxs(D,{className:G("cursor-pointer",K===E&&"bg-muted/60"),onClick:()=>ie(E),children:[e.jsxs(b,{children:[e.jsx("div",{className:"max-w-[280px] truncate font-medium",children:yn(c)}),c.person_name||c.person_id?e.jsxs("div",{className:"max-w-[280px] truncate text-xs text-muted-foreground",children:[String(c.person_name||c.person_id),c.person_name&&c.person_id?e.jsxs("span",{className:"font-mono",children:[" · ",String(c.person_id)]}):null]}):null,e.jsx("div",{className:"font-mono text-[11px] text-muted-foreground break-all",children:E||"-"})]}),e.jsx(b,{className:"max-w-[180px] truncate",children:String(c.source??"-")}),e.jsx(b,{children:Vl(c.updated_at??c.created_at)})]},E||yn(c))}):e.jsx(D,{children:e.jsx(b,{colSpan:3,className:"text-center text-muted-foreground",children:h?"正在加载 Episode...":"没有匹配的 Episode"})})})]})})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsx(se,{children:"Episode 详情"}),e.jsx(ee,{children:"查看情节摘要、原始字段和关联段落。"})]}),e.jsx(te,{className:"space-y-4",children:W?e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(Ge,{className:"h-4 w-4 animate-spin"}),"正在加载详情"]}):B?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(N,{variant:"outline",children:gt(B)||"无 ID"}),B.source?e.jsx(N,{variant:"secondary",children:String(B.source)}):null,B.person_name?e.jsx(N,{children:String(B.person_name)}):null,B.person_id?e.jsx(N,{variant:"outline",children:String(B.person_id)}):null]}),e.jsx(ys,{value:String(B.summary??B.content??""),readOnly:!0,className:"min-h-[120px]"}),e.jsxs(nr,{open:w,onOpenChange:re,className:"rounded-lg border bg-muted/10",children:[e.jsx(ir,{asChild:!0,children:e.jsxs(k,{variant:"ghost",className:"flex h-10 w-full justify-between px-3",children:[e.jsx("span",{children:"原始响应 JSON"}),e.jsx(cr,{className:G("h-4 w-4 transition-transform",w&&"rotate-180")})]})}),e.jsx(lr,{className:"border-t",children:e.jsx("pre",{className:"max-h-56 overflow-auto p-3 text-xs break-words whitespace-pre-wrap",children:JSON.stringify(B,null,2)})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"text-sm font-medium",children:"关联段落"}),Ne.length>0?e.jsx(ye,{className:"h-[220px] rounded-lg border bg-background/60",children:e.jsx("div",{className:"space-y-2 p-3",children:Ne.map((c,E)=>e.jsxs("div",{className:"rounded-lg border bg-muted/20 p-3",children:[e.jsx("div",{className:"font-mono text-[11px] text-muted-foreground break-all",children:String(c.hash??"-")}),e.jsx("div",{className:"mt-2 text-sm break-words",children:String(c.preview??c.content??"")})]},String(c.hash??E)))})}):e.jsx("div",{className:"rounded-lg border border-dashed bg-muted/20 p-4 text-sm text-muted-foreground",children:"当前详情没有段落明细。"})]})]}):e.jsx("div",{className:"rounded-lg border border-dashed bg-muted/20 p-6 text-center text-sm text-muted-foreground",children:"选择一个 Episode 查看详情。"})})]}),e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsxs(se,{className:"flex items-center gap-2",children:[e.jsx(Je,{className:"h-4 w-4"}),"Episode 运维"]}),e.jsx(ee,{children:"重新生成指定来源的情景记忆,或处理后台尚未生成的 Episode 任务。"})]}),e.jsxs(te,{className:"space-y-5",children:[Ue.length>0?e.jsx(ze,{children:e.jsxs($e,{children:["最近失败来源:",Ue.slice(0,3).map(c=>String(c.source??c.id??c.error??"未知")).join("、")]})}):null,e.jsxs("div",{className:"space-y-3 rounded-lg border bg-muted/10 p-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium",children:"重新生成来源 Episode"}),e.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:"适用于导入内容变化、反馈纠错后,需要用来源下的段落替换旧 Episode 的场景。"})]}),e.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"episode-rebuild-source",children:"来源 ID"}),e.jsx(p,{id:"episode-rebuild-source",value:ke,onChange:c=>f(c.target.value),placeholder:"例如 chat_summary:test-webui:coffee"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"episode-rebuild-sources",children:"多个来源 ID"}),e.jsx(p,{id:"episode-rebuild-sources",value:J,onChange:c=>ue(c.target.value),placeholder:"用英文逗号分隔多个来源"})]})]}),e.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[e.jsx("input",{type:"checkbox",checked:ae,onChange:c=>Qe(c.target.checked)}),"重新生成全部可用来源"]}),e.jsxs(k,{onClick:()=>{Ss()},disabled:ce,children:[e.jsx(Je,{className:"mr-2 h-4 w-4"}),"重新生成 Episode"]})]}),e.jsxs("div",{className:"space-y-3 rounded-lg border bg-muted/10 p-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium",children:"处理待生成任务"}),e.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:"适用于后台已有待生成段落时,手动推进这些段落生成 Episode。"})]}),e.jsxs("div",{className:"grid gap-3 md:grid-cols-[1fr_1fr_auto] md:items-end",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"episode-pending-limit",children:"本次处理上限"}),e.jsx(p,{id:"episode-pending-limit",type:"number",value:j,onChange:c=>M(c.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"episode-pending-retry",children:"失败重试上限"}),e.jsx(p,{id:"episode-pending-retry",type:"number",value:pe,onChange:c=>De(c.target.value)})]}),e.jsxs(k,{variant:"outline",onClick:()=>{Ze()},disabled:ce,children:[e.jsx(Ll,{className:"mr-2 h-4 w-4"}),"处理待生成任务"]})]})]})]})]})]})]})]})}function Hl(s){if(!s)return"-";const i=s>1e12?s:s*1e3,l=new Date(i);return Number.isNaN(l.getTime())?"-":l.toLocaleString("zh-CN",{hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function Ql(s,i){const l=Number(s);return!Number.isInteger(l)||l<=0?i:l}function Zl(s){const i=s.trim();if(!i)return;const l=Number(i);return Number.isFinite(l)&&l>=0?l:void 0}function kn(s){return String(s.hash??s.relation_hash??"")}function _n(s){const i=String(s.text??"").trim();return i||[s.subject,s.predicate,s.object].map(l=>String(l??"").trim()).filter(Boolean).join(" ")}function Xt(s){switch(s){case"reinforce":return"强化";case"freeze":return"冻结";case"protect":return"保护";case"restore":return"恢复";default:return s}}function Xl(){const{toast:s}=dr(),[i,l]=t.useState(""),[d,_]=t.useState("reinforce"),[g,y]=t.useState(""),[S,z]=t.useState("50"),[I,$]=t.useState([]),[O,H]=t.useState(!1),[w,re]=t.useState(!1),[v,oe]=t.useState(""),F=t.useRef(!1),ne=t.useMemo(()=>{const x=v.trim().toLowerCase();return x?I.filter(U=>[kn(U),_n(U),U.source,U.subject,U.predicate,U.object].some(m=>String(m??"").toLowerCase().includes(x))):I},[v,I]),q=t.useCallback(async()=>{H(!0);try{const x=await Xi(Ql(S,50));$(x.items??[])}catch(x){s({title:"加载记忆回收站失败",description:x instanceof Error?x.message:String(x),variant:"destructive"})}finally{H(!1)}},[S,s]);t.useEffect(()=>{F.current||(F.current=!0,q())},[q]);const L=t.useCallback(async(x,U)=>{const m=U.trim();if(!m){s({title:"缺少维护目标",description:"请输入关系 hash 或查询文本。",variant:"destructive"});return}if(!(x==="freeze"&&!window.confirm("确认冻结命中的记忆关系?冻结后关系会从活跃图谱中移除。"))&&!(x==="restore"&&!window.confirm("确认恢复命中的记忆关系?"))){re(!0);try{let P;x==="reinforce"?P=await Yi(m):x==="freeze"?P=await el(m):x==="protect"?P=await sl(m,Zl(g)):P=await tl(m),s({title:P.success?`记忆${Xt(x)}完成`:`记忆${Xt(x)}失败`,description:String(P.detail??P.error??""),variant:P.success?"default":"destructive"}),await q()}catch(P){s({title:`记忆${Xt(x)}失败`,description:P instanceof Error?P.message:String(P),variant:"destructive"})}finally{re(!1)}}},[q,g,s]);return e.jsxs("div",{className:"grid gap-4 xl:grid-cols-[minmax(0,0.8fr)_minmax(0,1.2fr)]",children:[e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsxs(se,{className:"flex items-center gap-2",children:[e.jsx(fn,{className:"h-4 w-4"}),"记忆维护操作"]}),e.jsx(ee,{children:"对关系 hash 或查询文本命中的长期记忆执行强化、冻结、保护和恢复。"})]}),e.jsxs(te,{className:"space-y-4",children:[e.jsx(ze,{children:e.jsx($e,{children:"维护目标沿用后端解析规则:优先匹配关系 hash,也可以输入查询文本让后端解析命中的关系。"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"maintenance-target",children:"维护目标"}),e.jsx(p,{id:"maintenance-target",value:i,onChange:x=>l(x.target.value),placeholder:"relation hash 或查询文本"})]}),e.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{children:"动作"}),e.jsxs(Ee,{value:d,onValueChange:x=>_(x),children:[e.jsx(Re,{children:e.jsx(Oe,{})}),e.jsxs(Fe,{children:[e.jsx(C,{value:"reinforce",children:"强化"}),e.jsx(C,{value:"freeze",children:"冻结"}),e.jsx(C,{value:"protect",children:"保护"}),e.jsx(C,{value:"restore",children:"恢复"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"maintenance-hours",children:"保护时长(小时)"}),e.jsx(p,{id:"maintenance-hours",type:"number",value:g,onChange:x=>y(x.target.value),placeholder:"空值表示永久保护",disabled:d!=="protect"})]})]}),e.jsxs(k,{onClick:()=>{L(d,i)},disabled:w,children:[d==="reinforce"?e.jsx(Al,{className:"mr-2 h-4 w-4"}):null,d==="freeze"?e.jsx(Bl,{className:"mr-2 h-4 w-4"}):null,d==="protect"?e.jsx(fn,{className:"mr-2 h-4 w-4"}):null,d==="restore"?e.jsx(Je,{className:"mr-2 h-4 w-4"}):null,"执行",Xt(d)]})]})]}),e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsxs(se,{className:"flex items-center gap-2",children:[e.jsx(Je,{className:"h-4 w-4"}),"记忆回收站"]}),e.jsx(ee,{children:"查看已删除关系,并支持按行恢复。"})]}),e.jsxs(te,{className:"space-y-4",children:[e.jsxs("div",{className:"grid gap-3 md:grid-cols-[minmax(0,1fr)_140px_auto] md:items-end",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"maintenance-search",children:"筛选"}),e.jsx(p,{id:"maintenance-search",value:v,onChange:x=>oe(x.target.value),placeholder:"按 hash、主体、谓词、来源筛选"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"maintenance-limit",children:"数量"}),e.jsx(p,{id:"maintenance-limit",type:"number",value:S,onChange:x=>z(x.target.value)})]}),e.jsxs(k,{variant:"outline",onClick:()=>{q()},disabled:O,children:[e.jsx(Be,{className:G("mr-2 h-4 w-4",O&&"animate-spin")}),"刷新"]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 text-sm text-muted-foreground",children:[e.jsxs(N,{variant:"outline",children:["已加载 ",I.length," 条"]}),e.jsxs(N,{variant:"secondary",children:["当前命中 ",ne.length," 条"]})]}),e.jsx(ye,{className:"h-[520px] rounded-lg border",children:e.jsxs(We,{children:[e.jsx(_s,{className:"sticky top-0 bg-background",children:e.jsxs(D,{children:[e.jsx(Z,{children:"关系"}),e.jsx(Z,{children:"删除时间"}),e.jsx(Z,{children:"操作"})]})}),e.jsx(He,{children:ne.length>0?ne.map((x,U)=>{const m=kn(x);return e.jsxs(D,{children:[e.jsxs(b,{children:[e.jsx("div",{className:"font-medium break-words",children:_n(x)||"-"}),e.jsx("div",{className:"mt-1 font-mono text-[11px] text-muted-foreground break-all",children:m||"-"}),x.source?e.jsx(N,{variant:"outline",className:"mt-2",children:String(x.source)}):null]}),e.jsx(b,{children:Hl(x.deleted_at??x.updated_at)}),e.jsx(b,{children:e.jsx(k,{size:"sm",variant:"outline",onClick:()=>{L("restore",m)},disabled:!m||w,children:"恢复"})})]},`${m}:${U}`)}):e.jsx(D,{children:e.jsx(b,{colSpan:3,className:"text-center text-muted-foreground",children:O?"正在加载回收站...":"回收站没有可展示的关系"})})})]})})]})]})]})}function Rn({items:s,className:i,triggerClassName:l}){return e.jsx(Pl,{className:G("h-auto w-full flex-wrap justify-start gap-1.5 rounded-full border border-border/60","bg-gradient-to-r from-muted/40 via-background to-muted/30 p-1.5 shadow-inner",i),children:s.map(d=>e.jsx(Ml,{value:d.value,title:d.description,className:G("rounded-full px-3.5 py-1.5 text-xs font-medium text-muted-foreground transition-colors","hover:bg-background/80 hover:text-foreground","data-[state=active]:bg-gradient-to-r data-[state=active]:from-primary data-[state=active]:to-primary/80","data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm",l),children:d.label},d.value))})}function Sn(s){if(!s)return"-";const i=s>1e12?s:s*1e3,l=new Date(i);return Number.isNaN(l.getTime())?"-":l.toLocaleString("zh-CN",{hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function Yl(s,i){const l=Number(s);return!Number.isInteger(l)||l<=0?i:l}function ec(s){if(!s)return"";if(typeof s=="string")return s;const i=s.override_text??s.text;return typeof i=="string"?i:JSON.stringify(s,null,2)}function sc(s,i){if(typeof s?.profile_text=="string")return s.profile_text;const l=s?.profile;return l&&typeof l=="object"&&typeof l.profile_text=="string"?l.profile_text:i?.profile_text??""}function tc(){const{toast:s}=dr(),[i,l]=t.useState([]),[d,_]=t.useState("library"),[g,y]=t.useState(""),[S,z]=t.useState(""),[I,$]=t.useState(""),[O,H]=t.useState(""),[w,re]=t.useState(""),[v,oe]=t.useState("12"),[F,ne]=t.useState(!1),[q,L]=t.useState(!1),[x,U]=t.useState(!1),[m,P]=t.useState(""),[K,ie]=t.useState(null),[de,he]=t.useState(!1),[h,le]=t.useState(!1),[W,Q]=t.useState(!1),ce=t.useRef(!1),A=t.useMemo(()=>i.find(j=>j.person_id===g)??null,[i,g]),ke=sc(K,A),f=A?.person_name||g||String(K?.person_id??"未选择"),J=t.useCallback(async()=>{he(!0);try{const M=(await rl(80)).items??[];l(M),_("library"),!g&&M.length>0&&y(M[0].person_id)}catch(j){s({title:"加载人物画像失败",description:j instanceof Error?j.message:String(j),variant:"destructive"})}finally{he(!1)}},[g,s]);t.useEffect(()=>{ce.current||(ce.current=!0,J())},[J]),t.useEffect(()=>{P(ec(A?.manual_override))},[A]);const ue=t.useCallback(async()=>{const j=q?S.trim():"",M=I.trim(),pe=O.trim(),De=w.trim(),be=!!(pe&&De);if(!j&&!M&&!be){s({title:"请输入查询条件",description:"用户账号、关键词、或高级 person_id 至少填写一种。",variant:"destructive"});return}le(!0);try{if(!j&&!be){const we=(await dn({personKeyword:M,limit:80})).items??[];l(we),_("search"),ie(null),y(we[0]?.person_id??""),s({title:"人物画像检索完成",description:`命中 ${we.length} 个画像。`});return}const B=await al({personId:j,personKeyword:M,platform:pe,userId:De,limit:Yl(v,12),forceRefresh:F});if(B.success===!1)throw new Error(String(B.error??"人物画像查询失败"));ie(B);const Ne=String(B.person_id??B.profile?.person_id??j??""),_e=(await dn({personId:Ne||j,personKeyword:M,platform:pe,userId:De,limit:80})).items??[];l(_e),_("search"),Ne?(y(Ne),z(Ne)):_e.length>0&&y(_e[0].person_id),s({title:"人物画像查询完成",description:F?"已请求强制刷新画像。":"已获取画像结果。"})}catch(B){s({title:"人物画像查询失败",description:B instanceof Error?B.message:String(B),variant:"destructive"})}finally{le(!1)}},[F,I,v,S,O,w,q,s]),ae=t.useCallback(async()=>{const j=g||S.trim();if(!j){s({title:"缺少人物 ID",description:"请选择或输入一个 person_id 后再保存 override。",variant:"destructive"});return}Q(!0);try{await nl({person_id:j,override_text:m,updated_by:"knowledge_base",source:"webui"}),s({title:"人物画像 override 已保存"}),await J()}catch(M){s({title:"保存人物画像 override 失败",description:M instanceof Error?M.message:String(M),variant:"destructive"})}finally{Q(!1)}},[J,m,S,g,s]),Qe=t.useCallback(async()=>{const j=g||S.trim();if(j&&window.confirm(`确认删除 ${j} 的人物画像 override?`)){Q(!0);try{await il(j),P(""),s({title:"人物画像 override 已删除"}),await J()}catch(M){s({title:"删除人物画像 override 失败",description:M instanceof Error?M.message:String(M),variant:"destructive"})}finally{Q(!1)}}},[J,S,g,s]);return e.jsxs("div",{className:"grid gap-4 xl:grid-cols-[minmax(0,0.9fr)_minmax(0,1.1fr)]",children:[e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsxs(se,{className:"flex items-center gap-2",children:[e.jsx(Ma,{className:"h-4 w-4"}),"人物画像查询"]}),e.jsx(ee,{children:"按平台账号定位人物画像,可用关键词辅助检索;person_id 查询放在高级入口。"})]}),e.jsxs(te,{className:"space-y-4",children:[e.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"profile-platform",children:"平台"}),e.jsx(p,{id:"profile-platform",value:O,onChange:j=>H(j.target.value),placeholder:"例如 qq、telegram、webui"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"profile-user-id",children:"用户账号"}),e.jsx(p,{id:"profile-user-id",value:w,onChange:j=>re(j.target.value),placeholder:"输入平台侧 user_id"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"profile-keyword",children:"人物关键词"}),e.jsx(p,{id:"profile-keyword",value:I,onChange:j=>$(j.target.value),placeholder:"可选"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"profile-limit",children:"证据数量"}),e.jsx(p,{id:"profile-limit",type:"number",value:v,onChange:j=>oe(j.target.value)})]}),e.jsxs("div",{className:"flex items-center gap-2 self-end pb-2",children:[e.jsx(me,{id:"profile-force-refresh",checked:F,onCheckedChange:j=>ne(!!j)}),e.jsx(u,{htmlFor:"profile-force-refresh",className:"text-sm font-normal",children:"强制刷新画像"})]})]}),e.jsxs(nr,{open:q,onOpenChange:L,className:"rounded-lg border bg-muted/10",children:[e.jsx(ir,{asChild:!0,children:e.jsxs(k,{variant:"ghost",className:"flex h-10 w-full justify-between px-3",children:[e.jsx("span",{children:"高级查询"}),e.jsx(cr,{className:G("h-4 w-4 transition-transform",q&&"rotate-180")})]})}),e.jsxs(lr,{className:"space-y-2 border-t px-3 py-3",children:[e.jsx(u,{htmlFor:"profile-person-id",children:"person_id"}),e.jsx(p,{id:"profile-person-id",value:S,onChange:j=>z(j.target.value),placeholder:"调试或后台管理时直接输入"})]})]}),g||S?e.jsxs("div",{className:"rounded-lg border bg-muted/20 px-3 py-2 text-sm",children:[e.jsx("div",{className:"text-muted-foreground",children:"当前定位 person_id"}),e.jsx("div",{className:"mt-1 break-all font-mono text-xs",children:g||S})]}):null,e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(k,{onClick:()=>{ue()},disabled:h,children:[e.jsx(Ma,{className:"mr-2 h-4 w-4"}),"查询人物画像"]}),e.jsxs(k,{variant:"outline",onClick:()=>{J()},disabled:de,children:[e.jsx(Be,{className:G("mr-2 h-4 w-4",de&&"animate-spin")}),"查看画像库"]})]}),e.jsxs("div",{className:"rounded-lg border bg-muted/10 px-3 py-2",children:[e.jsx("div",{className:"text-sm font-medium",children:d==="search"?"检索结果":"画像库"}),e.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:d==="search"?"根据当前平台账号、关键词或 person_id 筛选出的画像候选。":"系统中已生成的最新人物画像快照,按更新时间排序。"})]}),e.jsx(ye,{className:"h-[520px] rounded-lg border",children:e.jsxs(We,{children:[e.jsx(_s,{className:"sticky top-0 bg-background",children:e.jsxs(D,{children:[e.jsx(Z,{children:"人物"}),e.jsx(Z,{children:"版本"}),e.jsx(Z,{children:"更新时间"})]})}),e.jsx(He,{children:i.length>0?i.map(j=>e.jsxs(D,{className:G("cursor-pointer",g===j.person_id&&"bg-muted/60"),onClick:()=>y(j.person_id),children:[e.jsxs(b,{children:[e.jsx("div",{className:"font-medium break-all",children:j.person_name||j.person_id}),j.person_name?e.jsx("div",{className:"mt-0.5 font-mono text-xs text-muted-foreground break-all",children:j.person_id}):null,e.jsxs("div",{className:"mt-1 flex flex-wrap gap-1",children:[j.has_manual_override?e.jsx(N,{variant:"secondary",children:"手动 override"}):null,j.source_note?e.jsx(N,{variant:"outline",children:j.source_note}):null]})]}),e.jsx(b,{children:Number(j.profile_version??0)}),e.jsx(b,{children:Sn(j.updated_at)})]},j.person_id)):e.jsx(D,{children:e.jsx(b,{colSpan:3,className:"text-center text-muted-foreground",children:de?"正在加载人物画像...":d==="search"?"没有匹配的人物画像":"还没有人物画像快照"})})})]})})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsx(se,{children:"画像详情"}),e.jsx(ee,{children:"展示当前快照、查询结果和原始响应。"})]}),e.jsxs(te,{className:"space-y-4",children:[h?e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(Ge,{className:"h-4 w-4 animate-spin"}),"正在查询人物画像"]}):null,A||K?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(N,{variant:"outline",children:g||String(K?.person_id??"未选择")}),A?.expires_at?e.jsxs(N,{variant:"secondary",children:["过期时间 ",Sn(A.expires_at)]}):null]}),e.jsx(ys,{value:ke,readOnly:!0,className:"min-h-[180px]",placeholder:"当前没有画像文本"}),e.jsxs(nr,{open:x,onOpenChange:U,className:"rounded-lg border bg-muted/10",children:[e.jsx(ir,{asChild:!0,children:e.jsxs(k,{variant:"ghost",className:"flex h-10 w-full justify-between px-3",children:[e.jsx("span",{children:"原始响应 JSON"}),e.jsx(cr,{className:G("h-4 w-4 transition-transform",x&&"rotate-180")})]})}),e.jsx(lr,{className:"border-t",children:e.jsx("pre",{className:"max-h-72 overflow-auto p-3 text-xs break-words whitespace-pre-wrap",children:JSON.stringify(K??A??{},null,2)})})]})]}):e.jsx("div",{className:"rounded-lg border border-dashed bg-muted/20 p-6 text-center text-sm text-muted-foreground",children:"选择一个人物或执行查询后查看详情。"})]})]}),e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsx(se,{children:"手动 Override"}),e.jsx(ee,{children:"用人工画像覆盖自动生成结果;留空保存表示清空文本但保留 override 记录。"})]}),e.jsxs(te,{className:"space-y-3",children:[!g&&!S.trim()?e.jsx(ze,{children:e.jsx($e,{children:"请选择或输入 person_id 后再编辑 override。"})}):null,f?e.jsxs("div",{className:"text-sm text-muted-foreground",children:["当前编辑对象:",f]}):null,e.jsx(ys,{value:m,onChange:j=>P(j.target.value),className:"min-h-[180px]",placeholder:"输入希望固定使用的人物画像文本"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(k,{onClick:()=>{ae()},disabled:W,children:[e.jsx(zl,{className:"mr-2 h-4 w-4"}),"保存 override"]}),e.jsxs(k,{variant:"outline",onClick:()=>{Qe()},disabled:W||!g&&!S.trim(),children:[e.jsx(Ta,{className:"mr-2 h-4 w-4"}),"删除 override"]})]})]})]})]})]})}const Na="memory",wn=["import_progress","delete_progress","feedback_progress"];class rc{initialized=!1;listeners=new Set;activeTopics=new Set;initialize(){this.initialized||(va.addEventListener(i=>{if(i.domain!==Na)return;const l=i.topic??"";if(!wn.includes(l))return;const d={topic:l,event:i.event,data:i.data??{}};this.listeners.forEach(_=>{try{_(d)}catch(g){console.error("长期记忆进度监听器执行失败:",g)}})}),this.initialized=!0)}async subscribe(i,l=wn){this.initialize(),this.listeners.add(i);for(const d of l)if(!this.activeTopics.has(d))try{await va.subscribe(Na,d),this.activeTopics.add(d)}catch(_){console.warn(`订阅长期记忆 topic 失败(将退化到轮询兜底): ${d}`,_)}return async()=>{if(this.listeners.delete(i),this.listeners.size===0){const d=Array.from(this.activeTopics);this.activeTopics.clear();for(const _ of d)try{await va.unsubscribe(Na,_)}catch(g){console.warn(`取消订阅长期记忆 topic 失败: ${_}`,g)}}}}}const ac=new rc,ya=100,sr=6,tr=8,Cn=100,rr=6,ar=8,ft=50,or=new Set(["preparing","running","cancel_requested"]),Fa=new Set(["queued"]),nc={queued:"排队中",preparing:"准备中",running:"运行中",cancel_requested:"取消中",cancelled:"已取消",completed:"已完成",completed_with_errors:"完成(有错误)",failed:"失败"},ic={queued:"排队中",preparing:"准备中",running:"运行中",splitting:"分块中",extracting:"抽取中",writing:"写入中",saving:"保存中",backfilling:"回填中",converting:"转换中",verifying:"校验中",switching:"切换中",cancel_requested:"取消中",cancelled:"已取消",completed:"已完成",completed_with_errors:"完成(有错误)",failed:"失败"},lc=[{value:"upload",label:"上传文件",description:"从本地批量上传资料文件"},{value:"paste",label:"粘贴导入",description:"直接粘贴文本或 JSON 内容创建任务"},{value:"raw_scan",label:"本地扫描",description:"按路径别名和匹配规则批量扫描导入"},{value:"lpmm_openie",label:"LPMM OpenIE",description:"读取 LPMM 数据并抽取关系"},{value:"lpmm_convert",label:"LPMM 转换",description:"将 LPMM 数据转换到目标目录"},{value:"temporal_backfill",label:"时序回填",description:"为已有数据补充时间字段"},{value:"maibot_migration",label:"MaiBot 迁移",description:"从 MaiBot 历史数据迁移长期记忆"}];function jt(s){const i=Number(s??0);if(!Number.isFinite(i))return 0;const l=i>0&&i<=1?i*100:i;return l<0?0:l>100?100:l}function ht(s){return`${jt(s).toFixed(1)}%`}function Ae(s){const i=s.trim();if(!i)return;const l=Number(i);if(!(!Number.isInteger(l)||l<=0))return l}function ka(s){return s.split(",").map(i=>i.trim()).filter(Boolean)}function _a(s){return s==="json"?"json":"text"}function rs(s){const i=String(s??"").trim();return i?nc[i]??i:"-"}function pt(s){const i=String(s??"").trim();return i?ic[i]??i:"-"}function bs(s){return s==="failed"?"destructive":s==="completed"?"default":s==="completed_with_errors"||s==="cancelled"?"secondary":or.has(s)||Fa.has(s)?"outline":"secondary"}function Sa(s){if(!s)return"-";const i=s>1e12?s:s*1e3,l=new Date(i);return Number.isNaN(l.getTime())?"-":l.toLocaleString("zh-CN",{hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function In(s){switch(s){case"entity":return"实体";case"relation":return"关系";case"paragraph":return"段落";case"source":return"来源";case"mixed":return"混合";default:return s||"未知"}}function Pn(s){switch(s){case"executed":return"已执行";case"restored":return"已恢复";default:return s||"未知"}}function Ns(s){if(!s)return"未知时间";const i=s>1e12?s:s*1e3,l=new Date(i);return Number.isNaN(l.getTime())?"未知时间":l.toLocaleString("zh-CN",{hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function On(s,i=140){const l=String(s??"").trim().replace(/\s+/g," ");return l?l.length<=i?l:`${l.slice(0,i)}...`:""}function Da(s,i,l){const d=String(s??"").trim(),_=String(i??"").trim(),g=String(l??"").trim();return[d,_,g].filter(Boolean).join(" -> ")}function cc(s){const i=s.payload??{};if(s.item_type==="entity"){const l=i.entity??{};return String(l.name??s.item_key??s.item_hash??"未命名实体")}if(s.item_type==="relation"){const l=i.relation??{};return Da(String(l.subject??""),String(l.predicate??""),String(l.object??""))||String(s.item_key??s.item_hash??"未命名关系")}if(s.item_type==="paragraph"){const l=i.paragraph??{};return String(l.source??"").trim()||String(s.item_key??s.item_hash??"未命名段落")}return String(s.item_key??s.item_hash??"未命名对象")}function oc(s){const i=s.payload??{};if(s.item_type==="entity"){const l=Array.isArray(i.paragraph_links)?i.paragraph_links:[];return l.length>0?`关联段落 ${l.length} 个`:"实体快照"}if(s.item_type==="relation"){const l=i.relation??{},d=Array.isArray(i.paragraph_hashes)?i.paragraph_hashes:[],{confidence:_}=l,g=[];return d.length>0&&g.push(`证据段落 ${d.length} 个`),typeof _=="number"&&g.push(`置信度 ${_.toFixed(2)}`),g.join(",")||"关系快照"}if(s.item_type==="paragraph"){const l=i.paragraph??{};return On(String(l.content??""))}return""}function dc(s){const i=s.payload??{};if(s.item_type==="paragraph"){const l=i.paragraph??{};return String(l.source??"").trim()}return String(i.source??"").trim()}function wa(s){switch(s){case"correct":return"纠正";case"reject":return"否定";case"confirm":return"确认";case"supplement":return"补充";case"none":return"无动作";default:return s||"未知"}}function Ca(s){switch(s){case"pending":return"待处理";case"running":return"处理中";case"applied":return"已应用";case"skipped":return"已跳过";case"error":return"失败";default:return s||"未知"}}function Ia(s){switch(s){case"none":return"未回退";case"running":return"回退中";case"rolled_back":return"已回退";case"error":return"回退失败";default:return s||"未知"}}function Yt(s){return s==="applied"||s==="rolled_back"?"default":s==="error"?"destructive":s==="running"||s==="pending"?"outline":"secondary"}function ks(s){if(!s)return"";const i=String(s.hash??"").trim(),l=String(s.subject??"").trim(),d=String(s.predicate??"").trim(),_=String(s.object??"").trim();return l&&d&&_?Da(l,d,_):i||(Array.isArray(s.target_hashes)&&s.target_hashes.length>0?`targets ${s.target_hashes.length}`:On(JSON.stringify(s,null,2),120))}function uc(s){if(!s||typeof s!="object")return null;const i=s,l=String(i.subject??"").trim(),d=String(i.predicate??"").trim(),_=String(i.object??"").trim();return!l||!d||!_?null:i}function Mn(s){const i=uc(s);return i?Da(String(i.subject??""),String(i.predicate??""),String(i.object??"")):""}function Fn(s){if(!s)return{headline:"当前没有纠错摘要",oldRelation:"",newRelation:""};const l=s.rollback_plan_summary??{},d=Array.isArray(l.forgotten_relations)?l.forgotten_relations:[],_=l.corrected_write&&typeof l.corrected_write=="object"?l.corrected_write:{},g=Array.isArray(_.corrected_relations)?_.corrected_relations:[],y=Mn(d[0]),S=Mn(g[0]);return y&&S?{headline:`将“${y}”纠正为“${S}”`,oldRelation:y,newRelation:S}:S?{headline:`补充了新的纠错结论:“${S}”`,oldRelation:"",newRelation:S}:y?{headline:`撤销了旧记忆关系:“${y}”`,oldRelation:y,newRelation:""}:{headline:s.query_text||"当前纠错没有可读摘要",oldRelation:"",newRelation:""}}function Dn(s){if(!s)return[];const i=s.affected_counts??{},l=[];return Number(i.relations??0)>0&&l.push(`影响关系 ${Number(i.relations??0)} 条`),Number(i.corrected_relations??0)>0&&l.push(`新增纠正关系 ${Number(i.corrected_relations??0)} 条`),Number(i.correction_paragraphs??0)>0&&l.push(`写入纠错段落 ${Number(i.correction_paragraphs??0)} 条`),Number(i.stale_paragraphs??0)>0&&l.push(`标记旧段落 ${Number(i.stale_paragraphs??0)} 条`),Number(i.episode_sources??0)>0&&l.push(`触发 Episode 修复 ${Number(i.episode_sources??0)} 个来源`),Number(i.profile_person_ids??0)>0&&l.push(`触发 Profile 刷新 ${Number(i.profile_person_ids??0)} 个对象`),l}function mc(s){switch(s){case"classification":return"判定纠错";case"forget_relation":return"撤销旧关系";case"mark_stale_paragraph":return"标记旧段落";case"write_correction":return"写入纠错";case"rollback_restore_relation":return"恢复旧关系";case"rollback_delete_correction_paragraph":return"隐藏纠错段落";case"rollback_revert_corrected_relation":return"撤销纠正关系";case"rollback_clear_stale_mark":return"清除脏段落标记";case"rollback_enqueue_episode_rebuild":return"加入 Episode 修复队列";case"rollback_enqueue_profile_refresh":return"加入 Profile 刷新队列";case"rollback_error":return"回退失败";case"error":return"处理失败";case"skip":return"跳过处理";default:return s||"未知动作"}}function xc(s){const i=ks(s.before_payload),l=ks(s.after_payload);switch(s.action_type){case"classification":return l?`系统完成判定:${l}`:"系统完成纠错判定";case"forget_relation":return i?`旧关系已失效:${i}`:"旧关系已被标记为失效";case"mark_stale_paragraph":return"旧段落已标记为待复核,后续检索会更谨慎地使用它";case"write_correction":return l?`已写入新的纠错结果:${l}`:"已写入新的纠错段落和关系";case"rollback_restore_relation":return l?`已恢复旧关系状态:${l}`:"已恢复旧关系状态";case"rollback_delete_correction_paragraph":return"已隐藏这次纠错写入的段落";case"rollback_revert_corrected_relation":return"已撤销纠错阶段新增的关系";case"rollback_clear_stale_mark":return"已清除旧段落的待复核标记";case"rollback_enqueue_episode_rebuild":return"已重新加入 Episode 修复队列";case"rollback_enqueue_profile_refresh":return"已重新加入 Profile 刷新队列";case"rollback_error":return s.reason||"这次回退执行失败";case"error":return s.reason||"这次纠错处理失败";case"skip":return s.reason||"这次纠错被跳过";default:return l||i||s.reason||"记录了一条动作日志"}}function hc(s){const{sourceSearch:i,setSourceSearch:l,selectedSources:d,setSelectedSources:_,filteredSources:g,openSourceDeletePreview:y,toggleSourceSelection:S,operationSearch:z,setOperationSearch:I,operationModeFilter:$,setOperationModeFilter:O,operationStatusFilter:H,setOperationStatusFilter:w,filteredDeleteOperations:re,deleteOperations:v,operationPage:oe,setOperationPage:F,deleteOperationPageCount:ne,pagedDeleteOperations:q,selectedDeleteOperation:L,setSelectedOperationId:x,restoreDeleteOperation:U,deleteRestoring:m,selectedOperationCounts:P,selectedOperationDetailLoading:K,selectedOperationDetailError:ie,selectedOperationSources:de,selectedOperationItems:he,filteredSelectedOperationItems:h,selectedOperationItemSearch:le,setSelectedOperationItemSearch:W,selectedOperationItemPage:Q,setSelectedOperationItemPage:ce,selectedOperationItemPageCount:A,pagedSelectedOperationItems:ke}=s;return e.jsx(xe,{value:"delete",className:"space-y-4",children:e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs(X,{className:"order-2",children:[e.jsxs(Y,{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsxs(se,{className:"flex items-center gap-2",children:[e.jsx(Ta,{className:"h-4 w-4"}),"来源批量删除"]}),e.jsx(ee,{children:"用于按来源清理测试数据或指定导入批次。该操作不会直接删除实体,只会删除来源段落和失去全部证据的关系。"})]}),e.jsxs(ze,{className:"border-amber-500/30 bg-amber-500/5 text-amber-950 dark:text-amber-200",children:[e.jsx(Ea,{className:"h-4 w-4 text-amber-500"}),e.jsx($e,{children:"建议先在图谱里确认影响范围,再在这里执行批量来源删除。所有删除都会先经过预览,并支持按删除记录恢复。"})]})]}),e.jsxs(te,{className:"space-y-4",children:[e.jsxs("div",{className:"grid gap-3 rounded-xl border bg-muted/20 p-4 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{children:"来源检索"}),e.jsx(p,{value:i,onChange:f=>l(f.target.value),placeholder:"搜索 source 名称"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 lg:justify-end",children:[e.jsx(k,{variant:"outline",onClick:()=>_(g.map(f=>String(f.source??"")).filter(Boolean)),children:"全选当前结果"}),e.jsxs(k,{onClick:()=>{y()},disabled:d.length<=0,children:[e.jsx(Ta,{className:"mr-2 h-4 w-4"}),"预览删除"]})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm text-muted-foreground",children:[e.jsxs(N,{variant:"outline",className:"bg-background/70",children:["当前命中 ",g.length," 个来源"]}),e.jsxs(N,{variant:d.length>0?"secondary":"outline",className:"bg-background/70",children:["已选择 ",d.length," 个来源"]})]}),e.jsx(ye,{className:"h-[320px] rounded-lg border",children:e.jsxs(We,{children:[e.jsx(_s,{className:"sticky top-0 bg-background",children:e.jsxs(D,{children:[e.jsx(Z,{className:"w-12",children:"选中"}),e.jsx(Z,{children:"来源"}),e.jsx(Z,{children:"段落数"}),e.jsx(Z,{children:"关系数"})]})}),e.jsx(He,{children:g.length>0?g.map(f=>{const J=String(f.source??""),ue=d.includes(J);return e.jsxs(D,{children:[e.jsx(b,{children:e.jsx(me,{checked:ue,onCheckedChange:ae=>S(J,!!ae)})}),e.jsx(b,{className:"font-mono text-xs break-all",children:J}),e.jsx(b,{children:Number(f.paragraph_count??0)}),e.jsx(b,{children:Number(f.relation_count??0)})]},J)}):e.jsx(D,{children:e.jsx(b,{colSpan:4,className:"text-center text-muted-foreground",children:"当前没有可删除的来源"})})})]})})]})]}),e.jsxs(X,{className:"order-1",children:[e.jsxs(Y,{children:[e.jsxs(se,{className:"flex items-center gap-2",children:[e.jsx(Je,{className:"h-4 w-4"}),"删除操作恢复"]}),e.jsx(ee,{children:"按列表浏览最近的删除操作,先选中记录,再在下方确认影响范围并执行恢复"})]}),e.jsxs(te,{className:"space-y-4",children:[e.jsxs("div",{className:"grid gap-3 rounded-xl border bg-muted/20 p-4 lg:grid-cols-[minmax(0,1fr)_180px_180px]",children:[e.jsx(p,{value:z,onChange:f=>I(f.target.value),placeholder:"搜索 operation / reason / requested_by / source"}),e.jsxs(Ee,{value:$,onValueChange:O,children:[e.jsx(Re,{children:e.jsx(Oe,{placeholder:"按模式筛选"})}),e.jsxs(Fe,{children:[e.jsx(C,{value:"all",children:"全部模式"}),e.jsx(C,{value:"source",children:"来源删除"}),e.jsx(C,{value:"mixed",children:"混合删除"}),e.jsx(C,{value:"entity",children:"实体删除"}),e.jsx(C,{value:"relation",children:"关系删除"}),e.jsx(C,{value:"paragraph",children:"段落删除"})]})]}),e.jsxs(Ee,{value:H,onValueChange:w,children:[e.jsx(Re,{children:e.jsx(Oe,{placeholder:"按状态筛选"})}),e.jsxs(Fe,{children:[e.jsx(C,{value:"all",children:"全部状态"}),e.jsx(C,{value:"executed",children:"已执行"}),e.jsx(C,{value:"restored",children:"已恢复"})]})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 text-sm text-muted-foreground",children:[e.jsxs("span",{children:["当前命中 ",re.length," 条记录,已加载最近 ",v.length," 条"]}),e.jsxs("span",{children:["第 ",oe," / ",ne," 页,每页显示 ",sr," 条"]})]}),e.jsx(ye,{className:"h-[320px] rounded-lg border",children:e.jsx("div",{className:"space-y-3 p-3",children:q.length>0?q.map(f=>{const ue=(f.summary??{}).counts??{},ae=L?.operation_id===f.operation_id;return e.jsxs("button",{type:"button",onClick:()=>x(f.operation_id),className:G("w-full rounded-xl border p-4 text-left transition-colors",ae?"border-primary bg-primary/5 shadow-sm":"bg-muted/20 hover:border-primary/40 hover:bg-muted/40"),children:[e.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between",children:[e.jsxs("div",{className:"min-w-0 space-y-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(N,{variant:f.status==="restored"?"secondary":"default",children:Pn(String(f.status??""))}),e.jsx(N,{variant:"outline",children:In(String(f.mode??""))})]}),e.jsx("div",{className:"font-mono text-xs break-all",children:f.operation_id}),e.jsx("div",{className:"text-sm text-muted-foreground",children:f.reason||"未填写原因"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 text-xs text-muted-foreground lg:max-w-[280px] lg:justify-end",children:[e.jsxs("span",{children:["实体 ",Number(ue.entities??0)]}),e.jsxs("span",{children:["关系 ",Number(ue.relations??0)]}),e.jsxs("span",{children:["段落 ",Number(ue.paragraphs??0)]}),e.jsxs("span",{children:["来源 ",Number(ue.sources??0)]})]})]}),e.jsx("div",{className:"mt-3 text-xs text-muted-foreground",children:Ns(f.created_at)})]},f.operation_id)}):e.jsx("div",{className:"rounded-lg border border-dashed bg-muted/20 p-6 text-center text-sm text-muted-foreground",children:"当前筛选条件下没有删除操作"})})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx(k,{variant:"outline",size:"sm",onClick:()=>F(f=>Math.max(1,f-1)),disabled:oe<=1,children:"上一页"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"支持按删除记录、模式、状态、发起人和来源检索"}),e.jsx(k,{variant:"outline",size:"sm",onClick:()=>F(f=>Math.min(ne,f+1)),disabled:oe>=ne,children:"下一页"})]}),e.jsx("div",{className:"rounded-xl border bg-muted/20 p-4",children:L?e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(N,{variant:L.status==="restored"?"secondary":"default",children:Pn(String(L.status??""))}),e.jsx(N,{variant:"outline",children:In(String(L.mode??""))})]}),e.jsx("div",{className:"font-mono text-xs break-all",children:L.operation_id}),e.jsx("div",{className:"text-sm text-muted-foreground",children:L.reason||"未填写删除原因"})]}),e.jsxs(k,{size:"sm",variant:"outline",onClick:()=>{U(L.operation_id)},disabled:L.status==="restored"||m,children:[e.jsx(Je,{className:"mr-2 h-4 w-4"}),L.status==="restored"?"已恢复":"恢复这次删除"]})]}),e.jsxs("div",{className:"grid gap-3 lg:grid-cols-4",children:[e.jsxs("div",{className:"rounded-lg border bg-background/60 p-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"发起人"}),e.jsx("div",{className:"mt-1 text-sm",children:L.requested_by||"-"})]}),e.jsxs("div",{className:"rounded-lg border bg-background/60 p-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"创建时间"}),e.jsx("div",{className:"mt-1 text-sm",children:Ns(L.created_at)})]}),e.jsxs("div",{className:"rounded-lg border bg-background/60 p-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"恢复时间"}),e.jsx("div",{className:"mt-1 text-sm",children:Ns(L.restored_at)})]}),e.jsxs("div",{className:"rounded-lg border bg-background/60 p-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"删除摘要"}),e.jsxs("div",{className:"mt-1 flex flex-wrap gap-2",children:[e.jsxs(N,{variant:"outline",children:["实体 ",Number(P.entities??0)]}),e.jsxs(N,{variant:"outline",children:["关系 ",Number(P.relations??0)]}),e.jsxs(N,{variant:"outline",children:["段落 ",Number(P.paragraphs??0)]}),e.jsxs(N,{variant:"outline",children:["来源 ",Number(P.sources??0)]})]})]})]}),K?e.jsx("div",{className:"rounded-lg border bg-background/60 p-4 text-sm text-muted-foreground",children:"正在加载影响对象详情..."}):null,ie?e.jsx(ze,{variant:"destructive",children:e.jsx($e,{children:ie})}):null,de.length>0?e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"text-sm font-semibold",children:"关联来源"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:de.map(f=>e.jsx(N,{variant:"secondary",className:"max-w-full break-all",children:f},f))})]}):null,e.jsxs("div",{className:"grid gap-4 xl:grid-cols-[minmax(0,0.9fr)_minmax(0,1.1fr)]",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"text-sm font-semibold",children:"选择器"}),e.jsx("pre",{className:"max-h-56 overflow-auto rounded-lg border bg-background/70 p-3 text-xs break-words whitespace-pre-wrap",children:JSON.stringify(L.selector??{},null,2)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"text-sm font-semibold",children:"影响对象"}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:["命中 ",h.length," / ",he.length," 项"]})]}),e.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",children:[e.jsx(p,{value:le,onChange:f=>W(f.target.value),placeholder:"搜索对象类型 / 哈希 / 对象键 / 来源",className:"lg:max-w-sm"}),e.jsxs("div",{className:"flex items-center justify-between gap-2 text-xs text-muted-foreground lg:min-w-[180px] lg:justify-end",children:[e.jsxs("span",{children:["第 ",Q," / ",A," 页"]}),e.jsxs("span",{children:["每页 ",tr," 项"]})]})]}),e.jsx(ye,{className:"h-[280px] rounded-lg border bg-background/60",children:e.jsx("div",{className:"space-y-2 p-3",children:ke.length>0?ke.map(f=>{const J=dc(f),ue=cc(f),ae=oc(f);return e.jsxs("div",{className:"rounded-lg border bg-muted/20 p-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(N,{variant:"outline",children:f.item_type}),J?e.jsx(N,{variant:"secondary",children:J}):null,f.item_key&&f.item_key!==f.item_hash?e.jsx("span",{className:"text-xs text-muted-foreground break-all",children:f.item_key}):null]}),e.jsx("div",{className:"mt-2 text-sm font-medium break-words",children:ue}),ae?e.jsx("div",{className:"mt-1 text-xs text-muted-foreground break-words",children:ae}):null,e.jsx("div",{className:"mt-2 font-mono text-[11px] break-all text-muted-foreground",children:f.item_hash})]},`${f.item_type}:${f.item_hash}:${f.item_key??""}`)}):e.jsx("div",{className:"rounded-lg border border-dashed bg-muted/20 p-6 text-center text-sm text-muted-foreground",children:he.length>0?"当前筛选条件下没有明细项":"当前操作没有记录明细项"})})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx(k,{variant:"outline",size:"sm",onClick:()=>ce(f=>Math.max(1,f-1)),disabled:Q<=1,children:"上一页"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"支持按对象类型、哈希、对象键和来源检索"}),e.jsx(k,{variant:"outline",size:"sm",onClick:()=>ce(f=>Math.min(A,f+1)),disabled:Q>=A,children:"下一页"})]})]})]})]}):e.jsx("div",{className:"flex min-h-[320px] items-center justify-center rounded-lg border border-dashed bg-background/40 p-6 text-center text-sm text-muted-foreground",children:"当前没有可查看的删除操作详情"})})]})]})]})})}function pc(s){const{feedbackSearch:i,setFeedbackSearch:l,feedbackStatusFilter:d,setFeedbackStatusFilter:_,feedbackRollbackFilter:g,setFeedbackRollbackFilter:y,filteredFeedbackCorrections:S,feedbackCorrections:z,pagedFeedbackCorrections:I,feedbackPage:$,setFeedbackPage:O,feedbackPageCount:H,selectedFeedbackCorrection:w,setSelectedFeedbackTaskId:re,selectedFeedbackResolved:v,selectedFeedbackPreview:oe,selectedFeedbackImpactSummary:F,openFeedbackRollbackDialog:ne,feedbackRollingBack:q,selectedFeedbackTaskLoading:L,selectedFeedbackTaskError:x,feedbackActionLogPage:U,setFeedbackActionLogPage:m,feedbackActionLogPageCount:P,feedbackActionLogSearch:K,setFeedbackActionLogSearch:ie,pagedFeedbackActionLogs:de,selectedFeedbackActionLogs:he}=s;return e.jsx(xe,{value:"feedback",className:"space-y-4",children:e.jsx("div",{className:"space-y-4",children:e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsxs(se,{className:"flex items-center gap-2",children:[e.jsx(Je,{className:"h-4 w-4"}),"反馈纠错历史"]}),e.jsx(ee,{children:"查看 feedback correction 的判定、修改轨迹与回退结果"})]}),e.jsxs(te,{className:"space-y-4",children:[e.jsxs("div",{className:"grid gap-3 lg:grid-cols-[minmax(0,1fr)_180px_180px]",children:[e.jsx(p,{value:i,onChange:h=>l(h.target.value),placeholder:"搜索查询编号 / 会话 / 查询内容 / 原因"}),e.jsxs(Ee,{value:d,onValueChange:_,children:[e.jsx(Re,{children:e.jsx(Oe,{placeholder:"按任务状态筛选"})}),e.jsxs(Fe,{children:[e.jsx(C,{value:"all",children:"全部任务状态"}),e.jsx(C,{value:"applied",children:"已应用"}),e.jsx(C,{value:"skipped",children:"已跳过"}),e.jsx(C,{value:"error",children:"失败"}),e.jsx(C,{value:"running",children:"处理中"}),e.jsx(C,{value:"pending",children:"待处理"})]})]}),e.jsxs(Ee,{value:g,onValueChange:y,children:[e.jsx(Re,{children:e.jsx(Oe,{placeholder:"按回退状态筛选"})}),e.jsxs(Fe,{children:[e.jsx(C,{value:"all",children:"全部回退状态"}),e.jsx(C,{value:"none",children:"未回退"}),e.jsx(C,{value:"rolled_back",children:"已回退"}),e.jsx(C,{value:"error",children:"回退失败"}),e.jsx(C,{value:"running",children:"回退中"})]})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 rounded-xl border bg-background/70 px-3 py-2 text-sm text-muted-foreground",children:[e.jsxs("span",{children:["当前命中 ",S.length," 条记录,已加载最近 ",z.length," 条"]}),e.jsxs("span",{children:["第 ",$," / ",H," 页,每页显示 ",rr," 条"]})]}),e.jsxs("div",{className:"grid items-start gap-4 xl:grid-cols-[minmax(0,0.92fr)_minmax(0,1.08fr)]",children:[e.jsx(ye,{className:"h-[720px] rounded-lg border",children:e.jsx("div",{className:"space-y-3 p-3",children:I.length>0?I.map(h=>{const le=w?.task_id===h.task_id,W=Fn(h),Q=Dn(h);return e.jsx("button",{type:"button",onClick:()=>re(h.task_id),className:G("w-full rounded-xl border p-4 text-left transition-colors",le?"border-primary bg-primary/5 shadow-sm":"bg-muted/20 hover:border-primary/40 hover:bg-muted/40"),children:e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(N,{variant:Yt(h.task_status),children:Ca(h.task_status)}),e.jsx(N,{variant:Yt(h.rollback_status),children:Ia(h.rollback_status)}),e.jsx(N,{variant:"outline",children:wa(h.decision)})]}),e.jsx("div",{className:"text-[11px] text-muted-foreground",children:Ns(h.query_timestamp??h.created_at)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm font-semibold break-words",children:W.headline}),e.jsxs("div",{className:"text-xs text-muted-foreground break-words",children:["查询:",h.query_text||"无查询文本"]})]}),W.oldRelation||W.newRelation?e.jsx("div",{className:"grid gap-2 rounded-lg border bg-background/70 p-3 text-xs shadow-sm",children:e.jsxs("div",{className:"grid gap-2 sm:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] sm:items-stretch",children:[e.jsxs("div",{className:"rounded-md border border-amber-500/20 bg-amber-500/5 p-2",children:[e.jsx("div",{className:"text-[11px] font-medium text-amber-700 dark:text-amber-300",children:"纠错前"}),e.jsx("div",{className:"mt-1 break-words",children:W.oldRelation||"无"})]}),e.jsx("div",{className:"hidden items-center text-muted-foreground sm:flex",children:"→"}),e.jsxs("div",{className:"rounded-md border border-emerald-500/20 bg-emerald-500/5 p-2",children:[e.jsx("div",{className:"text-[11px] font-medium text-emerald-700 dark:text-emerald-300",children:"纠错后"}),e.jsx("div",{className:"mt-1 break-words",children:W.newRelation||"无"})]})]})}):null,e.jsx("div",{className:"flex flex-wrap gap-2",children:Q.length>0?Q.slice(0,3).map(ce=>e.jsx(N,{variant:"secondary",className:"font-normal",children:ce},`${h.task_id}:${ce}`)):e.jsx(N,{variant:"secondary",className:"font-normal",children:"暂无影响摘要"})}),e.jsx("div",{className:"font-mono text-[11px] break-all text-muted-foreground",children:h.query_tool_id})]})},h.task_id)}):e.jsx("div",{className:"rounded-lg border border-dashed bg-muted/20 p-6 text-center text-sm text-muted-foreground",children:"当前筛选条件下没有纠错历史"})})}),e.jsx("div",{className:"self-start rounded-xl border bg-muted/20 p-4",children:w?e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(N,{variant:Yt(String(v?.task_status??"")),children:Ca(String(v?.task_status??""))}),e.jsx(N,{variant:Yt(String(v?.rollback_status??"none")),children:Ia(String(v?.rollback_status??"none"))}),e.jsx(N,{variant:"outline",children:wa(String(v?.decision??""))})]}),e.jsx("div",{className:"text-base font-semibold break-words",children:oe.headline}),e.jsxs("div",{className:"text-sm text-muted-foreground break-words",children:["查询:",v?.query_text||"无查询文本"]}),e.jsx("div",{className:"font-mono text-xs break-all text-muted-foreground",children:v?.query_tool_id})]}),e.jsxs(k,{size:"sm",variant:"outline",onClick:ne,disabled:String(v?.task_status??"")!=="applied"||String(v?.rollback_status??"none")==="rolled_back"||q,children:[e.jsx(Je,{className:"mr-2 h-4 w-4"}),String(v?.rollback_status??"none")==="rolled_back"?"已回退":"回退本次纠错"]})]}),e.jsxs("div",{className:"grid gap-4 xl:grid-cols-[minmax(0,1.05fr)_minmax(0,0.95fr)]",children:[e.jsxs("div",{className:"rounded-xl border bg-background/70 p-4 shadow-sm",children:[e.jsx("div",{className:"text-sm font-semibold",children:"本次纠错结论"}),e.jsxs("div",{className:"mt-3 grid gap-3 md:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] md:items-stretch",children:[e.jsxs("div",{className:"rounded-lg border border-amber-500/20 bg-amber-500/5 p-3",children:[e.jsx("div",{className:"text-xs font-medium text-amber-700 dark:text-amber-300",children:"纠错前"}),e.jsx("div",{className:"mt-2 text-sm break-words",children:oe.oldRelation||"当前详情没有记录旧结论"})]}),e.jsx("div",{className:"hidden items-center justify-center text-muted-foreground md:flex",children:"→"}),e.jsxs("div",{className:"rounded-lg border border-emerald-500/20 bg-emerald-500/5 p-3",children:[e.jsx("div",{className:"text-xs font-medium text-emerald-700 dark:text-emerald-300",children:"纠错后"}),e.jsx("div",{className:"mt-2 text-sm break-words",children:oe.newRelation||"当前详情没有记录新结论"})]})]})]}),e.jsxs("div",{className:"rounded-xl border bg-background/70 p-4 shadow-sm",children:[e.jsx("div",{className:"text-sm font-semibold",children:"影响范围摘要"}),e.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:F.length>0?F.map(h=>e.jsx(N,{variant:"secondary",className:"bg-primary/10 font-normal text-primary hover:bg-primary/15",children:h},h)):e.jsx("div",{className:"text-sm text-muted-foreground",children:"当前没有可展示的影响范围摘要"})})]})]}),e.jsxs("div",{className:"grid gap-3 lg:grid-cols-4",children:[e.jsxs("div",{className:"rounded-lg border bg-background/60 p-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"会话"}),e.jsx("div",{className:"mt-1 text-sm break-all",children:v?.session_id||"-"})]}),e.jsxs("div",{className:"rounded-lg border bg-background/60 p-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"反馈消息数"}),e.jsx("div",{className:"mt-1 text-sm",children:Number(v?.feedback_message_count??0)})]}),e.jsxs("div",{className:"rounded-lg border bg-background/60 p-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"判定置信度"}),e.jsx("div",{className:"mt-1 text-sm",children:Number(v?.decision_confidence??0).toFixed(2)})]}),e.jsxs("div",{className:"rounded-lg border bg-background/60 p-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"回退时间"}),e.jsx("div",{className:"mt-1 text-sm",children:Ns(v?.rolled_back_at)})]})]}),L?e.jsx("div",{className:"rounded-lg border bg-background/60 p-4 text-sm text-muted-foreground",children:"正在加载纠错详情..."}):null,x?e.jsx(ze,{variant:"destructive",children:e.jsx($e,{children:x})}):null,v?.rollback_error?e.jsx(ze,{variant:"destructive",children:e.jsx($e,{children:v.rollback_error})}):null,e.jsxs("div",{className:"grid gap-4 xl:grid-cols-[minmax(0,1.05fr)_minmax(0,0.95fr)]",children:[e.jsxs("div",{className:"rounded-xl border bg-background/70 p-4",children:[e.jsx("div",{className:"text-sm font-semibold",children:"回退后会发生什么"}),e.jsxs("div",{className:"mt-3 space-y-2 text-sm text-muted-foreground",children:[e.jsx("div",{children:"会恢复旧关系状态,并撤销本次纠错写入的段落与关系。"}),e.jsx("div",{children:"会清理旧段落的待复核标记,并重新触发相关 Episode / Profile 修复。"}),e.jsx("div",{children:"如果你当前只是核对结果,可以先查看下面的详细数据,不必立刻执行回退。"})]})]}),e.jsxs("div",{className:"rounded-xl border bg-background/70 p-4",children:[e.jsx("div",{className:"text-sm font-semibold",children:"处理摘要"}),e.jsxs("div",{className:"mt-3 grid gap-2 text-sm text-muted-foreground",children:[e.jsxs("div",{children:["判定:",wa(String(v?.decision??""))]}),e.jsxs("div",{children:["任务状态:",Ca(String(v?.task_status??""))]}),e.jsxs("div",{children:["回退状态:",Ia(String(v?.rollback_status??"none"))]}),e.jsxs("div",{children:["反馈消息数:",Number(v?.feedback_message_count??0)]})]})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"text-sm font-semibold",children:"详细数据"}),e.jsxs("div",{className:"grid gap-3 xl:grid-cols-2",children:[e.jsxs("details",{className:"rounded-lg border bg-background/70 p-3",children:[e.jsx("summary",{className:"cursor-pointer text-sm font-medium",children:"查询快照 JSON"}),e.jsx("pre",{className:"mt-3 max-h-56 overflow-auto text-xs break-words whitespace-pre-wrap",children:JSON.stringify(v?.query_snapshot??{},null,2)})]}),e.jsxs("details",{className:"rounded-lg border bg-background/70 p-3",children:[e.jsx("summary",{className:"cursor-pointer text-sm font-medium",children:"判定结果 JSON"}),e.jsx("pre",{className:"mt-3 max-h-56 overflow-auto text-xs break-words whitespace-pre-wrap",children:JSON.stringify(v?.decision_payload??{},null,2)})]}),e.jsxs("details",{className:"rounded-lg border bg-background/70 p-3",children:[e.jsx("summary",{className:"cursor-pointer text-sm font-medium",children:"回退计划摘要 JSON"}),e.jsx("pre",{className:"mt-3 max-h-64 overflow-auto text-xs break-words whitespace-pre-wrap",children:JSON.stringify(v?.rollback_plan_summary??{},null,2)})]}),e.jsxs("details",{className:"rounded-lg border bg-background/70 p-3",children:[e.jsx("summary",{className:"cursor-pointer text-sm font-medium",children:"回退结果 JSON"}),e.jsx("pre",{className:"mt-3 max-h-64 overflow-auto text-xs break-words whitespace-pre-wrap",children:JSON.stringify(v?.rollback_result??{},null,2)})]})]})]}),e.jsxs("details",{className:"rounded-xl border bg-background/70 p-4",children:[e.jsx("summary",{className:"cursor-pointer text-sm font-semibold",children:"动作时间线"}),e.jsxs("div",{className:"mt-4 space-y-2",children:[e.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",children:[e.jsxs("div",{className:"text-xs text-muted-foreground",children:["第 ",U," / ",P," 页,每页 ",ar," 项"]}),e.jsx(p,{value:K,onChange:h=>ie(h.target.value),placeholder:"搜索动作 / 目标哈希 / 预览内容",className:"lg:w-80"})]}),e.jsx(ye,{className:"h-[240px] rounded-lg border bg-background/60",children:e.jsx("div",{className:"space-y-2 p-3",children:de.length>0?de.map(h=>e.jsxs("div",{className:"rounded-lg border bg-muted/20 p-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(N,{variant:"outline",children:mc(h.action_type)}),h.target_hash?e.jsx("span",{className:"font-mono text-[11px] break-all text-muted-foreground",children:h.target_hash}):null]}),e.jsx("div",{className:"text-[11px] text-muted-foreground",children:Ns(h.created_at)})]}),e.jsx("div",{className:"mt-2 text-sm break-words",children:xc(h)}),h.reason?e.jsxs("div",{className:"mt-2 text-xs text-muted-foreground break-words",children:["原因:",h.reason]}):null,h.before_payload&&Object.keys(h.before_payload).length>0?e.jsxs("div",{className:"mt-3 rounded-md border bg-background/70 p-2 text-xs break-words",children:[e.jsx("span",{className:"font-medium",children:"处理前:"}),e.jsx("span",{className:"text-muted-foreground",children:ks(h.before_payload)})]}):null,h.after_payload&&Object.keys(h.after_payload).length>0?e.jsxs("div",{className:"mt-2 rounded-md border bg-background/70 p-2 text-xs break-words",children:[e.jsx("span",{className:"font-medium",children:"处理后:"}),e.jsx("span",{className:"text-muted-foreground",children:ks(h.after_payload)})]}):null]},`${h.id}:${h.action_type}`)):e.jsx("div",{className:"rounded-lg border border-dashed bg-muted/20 p-6 text-center text-sm text-muted-foreground",children:he.length>0?"当前筛选条件下没有动作日志":"当前任务没有动作日志"})})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx(k,{variant:"outline",size:"sm",onClick:()=>m(h=>Math.max(1,h-1)),disabled:U<=1,children:"上一页"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"支持按动作类型、目标哈希和摘要检索"}),e.jsx(k,{variant:"outline",size:"sm",onClick:()=>m(h=>Math.min(P,h+1)),disabled:U>=P,children:"下一页"})]})]})]})]}):e.jsx("div",{className:"flex min-h-[360px] items-center justify-center rounded-lg border border-dashed bg-background/40 p-6 text-center text-sm text-muted-foreground",children:"当前没有可查看的纠错详情"})})]}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx(k,{variant:"outline",size:"sm",onClick:()=>O(h=>Math.max(1,h-1)),disabled:$<=1,children:"上一页"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"支持按查询内容、任务状态和回退状态检索"}),e.jsx(k,{variant:"outline",size:"sm",onClick:()=>O(h=>Math.min(H,h+1)),disabled:$>=H,children:"下一页"})]})]})]})})})}const gc={default:"text-primary",success:"text-emerald-500",warning:"text-amber-500",destructive:"text-rose-500",muted:"text-muted-foreground"},fc={default:"default",success:"secondary",warning:"outline",destructive:"destructive",muted:"outline"};function jc({value:s,statusLabel:i,stepLabel:l,tone:d="default",busy:_=!1,compact:g=!1,detail:y,className:S}){const z=Number.isFinite(s)?Math.max(0,Math.min(100,s)):0,I=g?36:56,$=g?4:5,O=(I-$)/2,H=2*Math.PI*O,w=H*(1-z/100);return e.jsxs("div",{className:G("flex items-center gap-3",S),children:[e.jsxs("div",{className:G("relative shrink-0",gc[d]),style:{width:I,height:I},"aria-hidden":"true",children:[e.jsxs("svg",{width:I,height:I,className:"-rotate-90",children:[e.jsx("circle",{cx:I/2,cy:I/2,r:O,strokeWidth:$,className:"stroke-muted/40",fill:"none"}),e.jsx("circle",{cx:I/2,cy:I/2,r:O,strokeWidth:$,strokeLinecap:"round",stroke:"currentColor",fill:"none",strokeDasharray:H,strokeDashoffset:w,className:"transition-[stroke-dashoffset] duration-500 ease-out"})]}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:_?e.jsx(Ge,{className:G("animate-spin",g?"h-3.5 w-3.5":"h-4 w-4")}):e.jsxs("span",{className:G("font-medium tabular-nums",g?"text-[10px]":"text-xs"),children:[Math.round(z),"%"]})})]}),e.jsxs("div",{className:"min-w-0 flex-1 space-y-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[i?e.jsx(N,{variant:fc[d],className:"shrink-0",children:i}):null,l?e.jsx("span",{className:"truncate text-xs text-muted-foreground",children:l}):null,g?null:e.jsxs("span",{className:"ml-auto text-xs tabular-nums text-muted-foreground",children:[z.toFixed(1),"%"]})]}),e.jsx(er,{value:z,className:G(g?"h-1":"h-1.5")}),y?e.jsx("div",{className:"truncate text-xs text-muted-foreground",children:y}):null]})]})}function Tn(s,i,l,d=0){const _=Number(s??0),g=Number(i??0),y=Number(l??0),S=Number(d??0),z=[`成功 ${_} / ${g} 分块`];return y>0&&z.push(`失败 ${y}`),S>0&&z.push(`取消 ${S}`),z.join(" · ")}function vc(s){const{importCreateMode:i,setImportCreateMode:l,importSettings:d,importCommonFileConcurrency:_,setImportCommonFileConcurrency:g,importCommonChunkConcurrency:y,setImportCommonChunkConcurrency:S,importCommonLlmEnabled:z,setImportCommonLlmEnabled:I,importCommonChatLog:$,setImportCommonChatLog:O,importCommonStrategyOverride:H,setImportCommonStrategyOverride:w,importCommonDedupePolicy:re,setImportCommonDedupePolicy:v,importCommonChatReferenceTime:oe,setImportCommonChatReferenceTime:F,importCommonForce:ne,setImportCommonForce:q,importCommonClearManifest:L,setImportCommonClearManifest:x,uploadInputMode:U,setUploadInputMode:m,uploadFiles:P,setUploadFiles:K,pasteName:ie,setPasteName:de,pasteMode:he,setPasteMode:h,pasteContent:le,setPasteContent:W,rawAlias:Q,setRawAlias:ce,rawInputMode:A,setRawInputMode:ke,rawRelativePath:f,setRawRelativePath:J,rawGlob:ue,setRawGlob:ae,rawRecursive:Qe,setRawRecursive:j,openieAlias:M,setOpenieAlias:pe,openieRelativePath:De,setOpenieRelativePath:be,openieIncludeAllJson:B,setOpenieIncludeAllJson:Ne,convertAlias:Ue,setConvertAlias:_e,convertTargetAlias:Se,setConvertTargetAlias:we,convertRelativePath:Ss,setConvertRelativePath:Ze,convertTargetRelativePath:c,setConvertTargetRelativePath:E,convertDimension:Xe,setConvertDimension:ws,convertBatchSize:ur,setConvertBatchSize:Cs,backfillAlias:mr,setBackfillAlias:Is,backfillLimit:xr,setBackfillLimit:as,backfillRelativePath:vt,setBackfillRelativePath:Ps,backfillDryRun:bt,setBackfillDryRun:Ms,backfillNoCreatedFallback:hr,setBackfillNoCreatedFallback:ns,maibotSourceDb:Nt,setMaibotSourceDb:Ts,maibotTimeFrom:yt,setMaibotTimeFrom:Es,maibotTimeTo:pr,setMaibotTimeTo:Rs,maibotStartId:gr,setMaibotStartId:Os,maibotEndId:fr,setMaibotEndId:Fs,maibotStreamIds:jr,setMaibotStreamIds:Ds,maibotGroupIds:kt,setMaibotGroupIds:Ls,maibotUserIds:vr,setMaibotUserIds:As,maibotReadBatchSize:br,setMaibotReadBatchSize:Bs,maibotCommitWindowRows:_t,setMaibotCommitWindowRows:zs,maibotEmbedWorkers:Nr,setMaibotEmbedWorkers:$s,maibotNoResume:St,setMaibotNoResume:qs,maibotResetState:yr,setMaibotResetState:Js,maibotDryRun:kr,setMaibotDryRun:Us,maibotVerifyOnly:_r,setMaibotVerifyOnly:Ks,submitImportByMode:wt,creatingImport:is,pathResolveAlias:Ct,setPathResolveAlias:Vs,importAliasKeys:It,pathResolveRelativePath:Gs,setPathResolveRelativePath:Sr,pathResolveMustExist:Ws,setPathResolveMustExist:wr,resolveImportPath:qe,resolvingPath:ls,pathResolveOutput:Hs,refreshImportQueue:Cr,runningImportTasks:Ke,queuedImportTasks:cs,recentImportTasks:Ve,selectedImportTaskId:Ye,selectImportTask:es,importAutoPolling:Ir,setImportAutoPolling:Qs,importPollInterval:Pr,importErrorText:os,cancelSelectedImportTask:Mr,retrySelectedImportTask:Zs,selectedImportTaskLoading:Tr,selectedImportTaskResolved:V,selectedImportRetrySummary:ss,selectedImportTaskErrorText:ds,selectedImportFiles:Pt,selectedImportFileId:Xs,selectImportFile:Er,importChunkTotal:ts,importChunkOffset:Mt,moveImportChunkPage:us,canImportChunkPrev:Rr,canImportChunkNext:Ys,importChunksLoading:Or,selectedImportChunks:ms}=s;return e.jsxs(xe,{value:"import",className:"space-y-6 [&_input]:h-10 [&_[role=combobox]]:h-10 [&_textarea]:min-h-[96px]",children:[e.jsxs("div",{className:"grid gap-6 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]",children:[e.jsxs("div",{className:"order-2 space-y-6 lg:order-1",children:[e.jsxs(X,{className:"rounded-2xl border-border/70 shadow-sm",children:[e.jsxs(Y,{children:[e.jsxs(se,{className:"flex items-center gap-2",children:[e.jsx(Ra,{className:"h-4 w-4"}),"创建导入任务"]}),e.jsx(ee,{children:"按“选择导入方式 → 检查公共参数 → 创建任务”的顺序完成导入。"})]}),e.jsxs(te,{className:"space-y-6",children:[e.jsxs(En,{value:i,onValueChange:a=>l(a),className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{children:"选择导入方式"}),e.jsx(Rn,{items:lc})]}),e.jsxs("div",{className:"space-y-4 rounded-lg border bg-muted/30 p-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm font-medium",children:"公共参数"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"这些设置会应用到当前导入任务。一般保持默认即可,只在批量导入或排查问题时调整。"})]}),e.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"文件并发数"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"同时处理多少个文件;文件很多时再适当调高。"}),e.jsx(p,{type:"number",min:1,max:Number(d.max_file_concurrency??128),value:_,onChange:a=>g(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"分块并发数"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"单个文件内并行处理多少个分块;过高会增加资源占用。"}),e.jsx(p,{type:"number",min:1,max:Number(d.max_chunk_concurrency??256),value:y,onChange:a=>S(a.target.value)})]}),e.jsxs("div",{className:"rounded-md border bg-background/70 p-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(me,{checked:z,onCheckedChange:a=>I(!!a)}),"启用 LLM 抽取"]}),e.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:"需要模型参与抽取,质量更高但耗时更长。"})]}),e.jsxs("div",{className:"rounded-md border bg-background/70 p-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(me,{checked:$,onCheckedChange:a=>O(!!a)}),"按聊天日志解析"]}),e.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:"适合导入聊天记录,会尽量保留时间和对话上下文。"})]})]}),e.jsxs("details",{className:"rounded-md border bg-background/70 p-3 text-sm",children:[e.jsx("summary",{className:"cursor-pointer text-xs font-medium text-muted-foreground",children:"高级参数(通常不用修改)"}),e.jsxs("div",{className:"mt-3 grid gap-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"指定抽取策略"}),e.jsx(p,{value:H,onChange:a=>w(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"去重策略"}),e.jsx(p,{value:re,onChange:a=>v(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"聊天参考时间"}),e.jsx(p,{value:oe,onChange:a=>F(a.target.value)})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(me,{checked:ne,onCheckedChange:a=>q(!!a)}),"强制导入"]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(me,{checked:L,onCheckedChange:a=>x(!!a)}),"清空导入清单"]})]})]})]}),e.jsx(xe,{value:"upload",className:"mt-0",children:e.jsxs("div",{className:"space-y-3 rounded-xl border bg-background/70 p-4",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"选择一个或多个本地文件创建导入任务,适合批量导入资料或聊天记录。"}),e.jsxs("div",{className:"grid gap-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"输入模式"}),e.jsxs(Ee,{value:U,onValueChange:a=>m(_a(a)),children:[e.jsx(Re,{"aria-label":"upload-input-mode",children:e.jsx(Oe,{})}),e.jsxs(Fe,{children:[e.jsx(C,{value:"text",children:"文本"}),e.jsx(C,{value:"json",children:"结构化 JSON"})]})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"文件选择"}),e.jsx(p,{type:"file",multiple:!0,accept:".txt,.md,.json,.jsonl,.csv,.log,.html,.htm,.xml",onChange:a=>K(Array.from(a.target.files??[]))})]})]}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:["已选择 ",P.length," 个文件"]})]})}),e.jsx(xe,{value:"paste",className:"mt-0",children:e.jsxs("div",{className:"space-y-3 rounded-xl border bg-background/70 p-4",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"直接粘贴少量文本或 JSON,适合临时补充一段资料。"}),e.jsxs("div",{className:"grid gap-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"内容名称"}),e.jsx(p,{value:ie,onChange:a=>de(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"输入模式"}),e.jsxs(Ee,{value:he,onValueChange:a=>h(_a(a)),children:[e.jsx(Re,{"aria-label":"paste-input-mode",children:e.jsx(Oe,{})}),e.jsxs(Fe,{children:[e.jsx(C,{value:"text",children:"文本"}),e.jsx(C,{value:"json",children:"结构化 JSON"})]})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"粘贴内容"}),e.jsx(ys,{value:le,onChange:a=>W(a.target.value),rows:8})]})]})]})}),e.jsx(xe,{value:"raw_scan",className:"mt-0",children:e.jsxs("div",{className:"space-y-3 rounded-xl border bg-background/70 p-4",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"扫描目录文件,适合本地批处理"}),e.jsxs("div",{className:"grid gap-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"路径别名"}),e.jsx(p,{value:Q,onChange:a=>ce(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"输入模式"}),e.jsxs(Ee,{value:A,onValueChange:a=>ke(_a(a)),children:[e.jsx(Re,{"aria-label":"raw-input-mode",children:e.jsx(Oe,{})}),e.jsxs(Fe,{children:[e.jsx(C,{value:"text",children:"文本"}),e.jsx(C,{value:"json",children:"结构化 JSON"})]})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"相对路径"}),e.jsx(p,{value:f,onChange:a=>J(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"匹配规则(Glob)"}),e.jsx(p,{value:ue,onChange:a=>ae(a.target.value)})]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(me,{checked:Qe,onCheckedChange:a=>j(!!a)}),"递归扫描"]})]})}),e.jsx(xe,{value:"lpmm_openie",className:"mt-0",children:e.jsxs("div",{className:"space-y-3 rounded-xl border bg-background/70 p-4",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"读取 LPMM 内容并抽取关系"}),e.jsxs("div",{className:"grid gap-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"路径别名"}),e.jsx(p,{value:M,onChange:a=>pe(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"相对路径"}),e.jsx(p,{value:De,onChange:a=>be(a.target.value)})]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(me,{checked:B,onCheckedChange:a=>Ne(!!a)}),"包含全部 JSON 文件"]})]})}),e.jsx(xe,{value:"lpmm_convert",className:"mt-0",children:e.jsxs("div",{className:"space-y-3 rounded-xl border bg-background/70 p-4",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"将 LPMM 数据转换到目标目录"}),e.jsxs("div",{className:"grid gap-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"源路径别名"}),e.jsx(p,{value:Ue,onChange:a=>_e(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"目标路径别名"}),e.jsx(p,{value:Se,onChange:a=>we(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"源相对路径"}),e.jsx(p,{value:Ss,onChange:a=>Ze(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"目标相对路径"}),e.jsx(p,{value:c,onChange:a=>E(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"向量维度"}),e.jsx(p,{type:"number",min:1,value:Xe,onChange:a=>ws(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"批处理大小"}),e.jsx(p,{type:"number",min:1,value:ur,onChange:a=>Cs(a.target.value)})]})]})]})}),e.jsx(xe,{value:"temporal_backfill",className:"mt-0",children:e.jsxs("div",{className:"space-y-3 rounded-xl border bg-background/70 p-4",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"为已有数据补齐时间字段"}),e.jsxs("div",{className:"grid gap-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"路径别名"}),e.jsx(p,{value:mr,onChange:a=>Is(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"处理上限"}),e.jsx(p,{type:"number",min:1,value:xr,onChange:a=>as(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"相对路径"}),e.jsx(p,{value:vt,onChange:a=>Ps(a.target.value)})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(me,{checked:bt,onCheckedChange:a=>Ms(!!a)}),"只预演,不写入数据"]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(me,{checked:hr,onCheckedChange:a=>ns(!!a)}),"禁用创建时间回退"]})]})]})}),e.jsx(xe,{value:"maibot_migration",className:"mt-0",children:e.jsxs("div",{className:"space-y-3 rounded-xl border bg-background/70 p-4",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"迁移 MaiBot 历史长期记忆"}),e.jsxs("div",{className:"grid gap-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"源数据库路径"}),e.jsx(p,{value:Nt,onChange:a=>Ts(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"起始时间"}),e.jsx(p,{value:yt,onChange:a=>Es(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"结束时间"}),e.jsx(p,{value:pr,onChange:a=>Rs(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"起始 ID"}),e.jsx(p,{type:"number",min:1,value:gr,onChange:a=>Os(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"结束 ID"}),e.jsx(p,{type:"number",min:1,value:fr,onChange:a=>Fs(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"会话 ID 列表"}),e.jsx(p,{value:jr,onChange:a=>Ds(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"群组 ID 列表"}),e.jsx(p,{value:kt,onChange:a=>Ls(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"用户 ID 列表"}),e.jsx(p,{value:vr,onChange:a=>As(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"读取批大小"}),e.jsx(p,{type:"number",min:1,value:br,onChange:a=>Bs(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"提交窗口行数"}),e.jsx(p,{type:"number",min:1,value:_t,onChange:a=>zs(a.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"向量线程数"}),e.jsx(p,{type:"number",min:1,value:Nr,onChange:a=>$s(a.target.value)})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(me,{checked:St,onCheckedChange:a=>qs(!!a)}),"从头开始,不继续上次进度"]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(me,{checked:yr,onCheckedChange:a=>Js(!!a)}),"重置迁移状态"]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(me,{checked:kr,onCheckedChange:a=>Us(!!a)}),"只预演,不写入数据"]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(me,{checked:_r,onCheckedChange:a=>Ks(!!a)}),"仅校验"]})]})]})})]}),e.jsxs(k,{onClick:()=>{wt()},disabled:is,children:[is?e.jsx(Ge,{className:"mr-2 h-4 w-4 animate-spin"}):e.jsx(Ra,{className:"mr-2 h-4 w-4"}),"创建导入任务"]})]})]}),e.jsxs(X,{className:"rounded-2xl border-border/70 bg-card/85 shadow-sm",children:[e.jsxs(Y,{children:[e.jsx(se,{children:"路径预检"}),e.jsx(ee,{children:"在创建本地扫描、转换或迁移任务前,先确认路径会被解析到哪里。"})]}),e.jsxs(te,{className:"space-y-4",children:[e.jsxs("div",{className:"grid gap-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"路径别名"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"选择后端允许访问的数据根目录。"}),e.jsxs(Ee,{value:Ct,onValueChange:Vs,children:[e.jsx(Re,{"aria-label":"import-path-alias",children:e.jsx(Oe,{})}),e.jsx(Fe,{children:It.length>0?It.map(a=>e.jsx(C,{value:a,children:a},a)):e.jsx(C,{value:"raw",children:"raw"})})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{children:"相对路径"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"填写相对于路径别名的子路径,不需要填写完整磁盘路径。"}),e.jsx(p,{value:Gs,onChange:a=>Sr(a.target.value),placeholder:"例如 exports/weekly"})]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(me,{checked:Ws,onCheckedChange:a=>wr(!!a)}),"要求路径已存在"]}),e.jsxs(k,{variant:"outline",onClick:()=>{qe()},disabled:ls||!Ct.trim(),children:[ls?e.jsx(Ge,{className:"mr-2 h-4 w-4 animate-spin"}):e.jsx(Be,{className:"mr-2 h-4 w-4"}),"解析路径"]}),e.jsx(ys,{value:Hs,readOnly:!0,rows:6,placeholder:"解析结果会显示在这里"})]})]})]}),e.jsx("div",{className:"order-1 space-y-6 lg:order-2",children:e.jsxs(X,{className:"rounded-2xl border-border/70 bg-card/90 shadow-sm",children:[e.jsxs(Y,{className:"space-y-4 pb-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsx(se,{children:"导入队列"}),e.jsxs(k,{variant:"outline",size:"sm",onClick:()=>{Cr()},children:[e.jsx(Be,{className:"mr-2 h-4 w-4"}),"刷新"]})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsx(ee,{className:"text-sm",children:"查看任务是否正在运行、排队等待或已经结束。点击任务卡片可查看详情。"}),e.jsxs("div",{className:"flex flex-wrap gap-2 text-xs text-muted-foreground",children:[e.jsxs(N,{variant:"outline",className:"bg-background/70",children:["运行中 ",Ke.length]}),e.jsxs(N,{variant:"outline",className:"bg-background/70",children:["排队中 ",cs.length]}),e.jsxs(N,{variant:"outline",className:"bg-background/70",children:["最近完成 ",Ve.length]})]}),e.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx(me,{checked:Ir,onCheckedChange:a=>Qs(!!a)}),"自动轮询 ",Pr,"ms"]})]})]}),e.jsxs(te,{className:"space-y-6",children:[os?e.jsx(ze,{variant:"destructive",children:e.jsx($e,{children:os})}):null,e.jsxs("div",{className:"space-y-2.5",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("div",{className:"text-sm font-medium",children:"运行中"}),e.jsx(N,{variant:"outline",children:Ke.length})]}),Ke.length>0?e.jsx(ye,{className:"h-[208px] rounded-xl border bg-muted/10",children:e.jsx("div",{className:"space-y-2.5 p-2.5",children:Ke.map(a=>{const fe=a.task_id===Ye;return e.jsxs("button",{type:"button",onClick:()=>{es(a.task_id)},className:G("w-full rounded-xl border p-4 text-left transition-all",fe?"border-primary/70 bg-primary/5 shadow-sm":"bg-background/80 hover:border-muted-foreground/40 hover:bg-muted/20"),children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[e.jsxs("div",{className:"min-w-0 space-y-1",children:[e.jsx("div",{className:"break-all font-mono text-[11px] leading-relaxed text-muted-foreground",children:a.task_id}),e.jsx("div",{className:"text-sm font-medium",children:String(a.task_kind??a.mode??"-")})]}),e.jsx(N,{variant:bs(String(a.status??"")),children:rs(String(a.status??""))})]}),e.jsxs("div",{className:"mt-2 flex items-center justify-between gap-2 text-xs text-muted-foreground",children:[e.jsx("span",{children:pt(String(a.current_step??"running"))}),e.jsx("span",{children:ht(a.progress)})]}),e.jsx(er,{value:jt(a.progress),className:"mt-2 h-1.5"})]},a.task_id)})})}):e.jsx("div",{className:"rounded-xl border bg-muted/20 p-4 text-sm text-muted-foreground",children:"当前没有运行中任务"})]}),e.jsxs("div",{className:"space-y-2.5",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("div",{className:"text-sm font-medium",children:"排队中"}),e.jsx(N,{variant:"outline",children:cs.length})]}),cs.length>0?e.jsx(ye,{className:"h-[188px] rounded-xl border bg-muted/10",children:e.jsx("div",{className:"space-y-2.5 p-2.5",children:cs.map(a=>{const fe=a.task_id===Ye;return e.jsxs("button",{type:"button",onClick:()=>{es(a.task_id)},className:G("w-full rounded-xl border p-4 text-left transition-all",fe?"border-primary/70 bg-primary/5 shadow-sm":"bg-background/80 hover:border-muted-foreground/40 hover:bg-muted/20"),children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[e.jsxs("div",{className:"min-w-0 space-y-1",children:[e.jsx("div",{className:"break-all font-mono text-[11px] leading-relaxed text-muted-foreground",children:a.task_id}),e.jsx("div",{className:"text-sm font-medium",children:String(a.task_kind??a.mode??"-")})]}),e.jsx(N,{variant:bs(String(a.status??"")),children:rs(String(a.status??""))})]}),e.jsxs("div",{className:"mt-2 flex items-center justify-between gap-2 text-xs text-muted-foreground",children:[e.jsx("span",{children:"创建时间"}),e.jsx("span",{children:Sa(a.created_at)})]})]},a.task_id)})})}):e.jsx("div",{className:"rounded-xl border bg-muted/20 p-4 text-sm text-muted-foreground",children:"当前没有排队任务"})]}),e.jsxs("div",{className:"space-y-2.5",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("div",{className:"text-sm font-medium",children:"最近完成"}),e.jsx(N,{variant:"secondary",children:Ve.length})]}),Ve.length>0?e.jsx(ye,{className:"h-[260px] rounded-xl border bg-muted/10",children:e.jsx("div",{className:"space-y-2.5 p-2.5",children:Ve.map(a=>{const fe=a.task_id===Ye;return e.jsxs("button",{type:"button",onClick:()=>{es(a.task_id)},className:G("w-full rounded-xl border p-4 text-left transition-all",fe?"border-primary/70 bg-primary/5 shadow-sm":"bg-background/80 hover:border-muted-foreground/40 hover:bg-muted/20"),children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[e.jsxs("div",{className:"min-w-0 space-y-1",children:[e.jsx("div",{className:"break-all font-mono text-[11px] leading-relaxed text-muted-foreground",children:a.task_id}),e.jsx("div",{className:"text-sm font-medium",children:String(a.task_kind??a.mode??"-")})]}),e.jsx(N,{variant:bs(String(a.status??"")),children:rs(String(a.status??""))})]}),e.jsxs("div",{className:"mt-2 flex items-center justify-between gap-2 text-xs text-muted-foreground",children:[e.jsx("span",{children:"完成进度"}),e.jsx("span",{children:ht(a.progress)})]}),e.jsx(er,{value:jt(a.progress),className:"mt-2 h-1.5"})]},a.task_id)})})}):e.jsx("div",{className:"rounded-xl border bg-muted/20 p-4 text-sm text-muted-foreground",children:"暂时没有历史任务"})]})]})]})})]}),e.jsxs(X,{className:"rounded-2xl border-border/70 bg-card/90 shadow-sm",children:[e.jsxs(Y,{className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsx(se,{children:"任务详情"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(k,{size:"sm",variant:"outline","aria-label":"取消选中导入任务",onClick:()=>{Mr()},disabled:!Ye,children:"取消任务"}),e.jsx(k,{size:"sm","aria-label":"重试选中导入任务",onClick:()=>{Zs()},disabled:!Ye,children:"重试失败项"})]})]}),e.jsx(ee,{children:"支持文件级和分块级状态观察,可直接在当前页面定位失败原因"})]}),e.jsxs(te,{className:"space-y-6",children:[Tr?e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(Ge,{className:"h-4 w-4 animate-spin"}),"正在加载任务详情..."]}):null,V?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"text-sm font-medium",children:"任务摘要"}),e.jsx("div",{className:"overflow-auto rounded-xl border bg-muted/10",children:e.jsx(We,{className:"min-w-[680px]",children:e.jsxs(He,{children:[e.jsxs(D,{children:[e.jsx(b,{className:"w-[140px] text-muted-foreground",children:"任务 ID"}),e.jsx(b,{className:"break-all font-mono text-xs leading-relaxed",children:V.task_id})]}),e.jsxs(D,{children:[e.jsx(b,{className:"text-muted-foreground",children:"任务类型"}),e.jsx(b,{children:String(V.task_kind??V.mode??"-")})]}),e.jsxs(D,{children:[e.jsx(b,{className:"text-muted-foreground",children:"状态 / 步骤"}),e.jsx(b,{children:e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(N,{variant:bs(String(V.status??"")),children:rs(String(V.status??""))}),e.jsx("span",{className:"text-xs text-muted-foreground",children:pt(String(V.current_step??""))})]})})]}),e.jsxs(D,{children:[e.jsx(b,{className:"text-muted-foreground",children:"进度"}),e.jsx(b,{children:e.jsx(jc,{value:jt(V.progress),statusLabel:rs(String(V.status??"")),stepLabel:pt(String(V.current_step??"")),tone:String(V.status??"")==="completed"?"success":String(V.status??"")==="failed"?"destructive":String(V.status??"")==="completed_with_errors"?"warning":String(V.status??"")==="cancelled"?"muted":"default",busy:or.has(String(V.status??"")),detail:Tn(V.done_chunks,V.total_chunks,V.failed_chunks,V.cancelled_chunks)})})]}),e.jsxs(D,{children:[e.jsx(b,{className:"text-muted-foreground",children:"创建时间"}),e.jsx(b,{children:Sa(V.created_at)})]}),e.jsxs(D,{children:[e.jsx(b,{className:"text-muted-foreground",children:"更新时间"}),e.jsx(b,{children:Sa(V.updated_at)})]})]})})})]}),ss?e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"text-sm font-medium",children:"重试摘要"}),e.jsx("div",{className:"overflow-auto rounded-xl border bg-muted/10",children:e.jsx(We,{children:e.jsxs(He,{children:[e.jsxs(D,{children:[e.jsx(b,{className:"w-[220px] text-muted-foreground",children:"按分块重试的文件数"}),e.jsx(b,{children:Number(ss.chunk_retry_files??0)})]}),e.jsxs(D,{children:[e.jsx(b,{className:"text-muted-foreground",children:"按分块重试的分块数"}),e.jsx(b,{children:Number(ss.chunk_retry_chunks??0)})]}),e.jsxs(D,{children:[e.jsx(b,{className:"text-muted-foreground",children:"回退整文件重试数"}),e.jsx(b,{children:Number(ss.file_fallback_files??0)})]}),e.jsxs(D,{children:[e.jsx(b,{className:"text-muted-foreground",children:"跳过文件数"}),e.jsx(b,{children:Number(ss.skipped_files??0)})]})]})})})]}):null,ds?e.jsx(ze,{variant:"destructive",children:e.jsx($e,{children:ds})}):null,e.jsxs("div",{className:"space-y-2.5",children:[e.jsx("div",{className:"text-sm font-medium",children:"文件状态"}),Pt.length>0?e.jsx(ye,{className:"h-[260px] rounded-xl border bg-muted/10",children:e.jsx("div",{className:"space-y-2.5 p-2.5",children:Pt.map(a=>{const fe=a.file_id===Xs;return e.jsxs("button",{type:"button",onClick:()=>{Er(a.file_id)},className:G("w-full rounded-xl border p-4 text-left transition-all",fe?"border-primary/70 bg-primary/5 shadow-sm":"bg-background/80 hover:border-muted-foreground/40 hover:bg-muted/20"),children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsx("span",{className:"truncate text-sm font-medium",children:a.name||a.file_id}),e.jsx(N,{variant:bs(String(a.status??"")),children:rs(String(a.status??""))})]}),e.jsxs("div",{className:"mt-2 flex items-center justify-between gap-2 text-xs text-muted-foreground",children:[e.jsx("span",{children:pt(String(a.current_step??""))}),e.jsx("span",{children:ht(a.progress)})]}),e.jsx(er,{value:jt(a.progress),className:"mt-2 h-1.5"}),e.jsxs("div",{className:"mt-2 text-xs text-muted-foreground",children:[ht(a.progress)," · ",Tn(a.done_chunks,a.total_chunks,a.failed_chunks,a.cancelled_chunks)]}),a.error?e.jsx("div",{className:"mt-2 truncate text-xs text-destructive",children:a.error}):null]},a.file_id)})})}):e.jsx("div",{className:"rounded-xl border bg-muted/20 p-4 text-sm text-muted-foreground",children:"当前任务没有文件明细"})]}),e.jsxs("div",{className:"space-y-2.5",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("div",{className:"text-sm font-medium",children:"分块状态"}),e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx(k,{size:"icon",variant:"outline","aria-label":"上一页分块",onClick:()=>{us(-1)},disabled:!Rr,children:e.jsx($l,{className:"h-4 w-4"})}),e.jsxs("span",{children:[ts>0?`${Mt+1}-${Math.min(Mt+ft,ts)}`:"0-0"," / ",ts]}),e.jsx(k,{size:"icon",variant:"outline","aria-label":"下一页分块",onClick:()=>{us(1)},disabled:!Ys,children:e.jsx(ql,{className:"h-4 w-4"})})]})]}),e.jsx("div",{className:"overflow-auto rounded-xl border bg-background/80",children:e.jsxs(We,{className:"min-w-[700px]",children:[e.jsx(_s,{children:e.jsxs(D,{children:[e.jsx(Z,{className:"w-[72px]",children:"序号"}),e.jsx(Z,{className:"w-[108px]",children:"状态"}),e.jsx(Z,{className:"w-[108px]",children:"步骤"}),e.jsx(Z,{className:"w-[84px]",children:"进度"}),e.jsx(Z,{children:"错误 / 预览"})]})}),e.jsx(He,{children:Or?e.jsx(D,{children:e.jsx(b,{colSpan:5,className:"text-center text-muted-foreground",children:"正在加载分块详情..."})}):ms.length>0?ms.map(a=>e.jsxs(D,{children:[e.jsx(b,{children:a.index}),e.jsx(b,{children:rs(String(a.status??""))}),e.jsx(b,{children:pt(String(a.step??""))}),e.jsx(b,{children:ht(a.progress)}),e.jsx(b,{className:"max-w-[360px]",children:e.jsxs("div",{className:"space-y-2",children:[String(a.error??"").trim()?e.jsx("div",{className:"rounded-md border border-destructive/30 bg-destructive/5 px-2.5 py-2 text-sm leading-relaxed text-destructive",children:String(a.error)}):null,e.jsxs("details",{className:"rounded-md border bg-muted/20 px-2.5 py-2 text-xs text-muted-foreground",children:[e.jsx("summary",{className:"cursor-pointer font-medium text-foreground",children:String(a.error??"").trim()?"查看分块预览":"查看内容详情"}),e.jsx("div",{className:"mt-2 whitespace-pre-wrap break-words leading-relaxed",children:String(a.content_preview??"-")||"-"})]})]})})]},a.chunk_id)):e.jsx(D,{children:e.jsx(b,{colSpan:5,className:"text-center text-muted-foreground",children:"当前页没有分块数据"})})})]})})]})]}):e.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 rounded-xl border border-dashed bg-muted/15 px-6 py-10 text-center",children:[e.jsx("div",{className:"rounded-full bg-muted/40 p-3",children:e.jsx(Ge,{className:"h-5 w-5 text-muted-foreground"})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm font-medium",children:"还没选中任务"}),e.jsxs("div",{className:"text-xs leading-relaxed text-muted-foreground",children:["在左侧/上方的导入队列里点击任意任务卡片",e.jsx("br",{}),"即可在这里查看进度、文件状态和分块详情"]})]})]})]})]})]})}function bc(s){const{tuningObjective:i,setTuningObjective:l,tuningIntensity:d,setTuningIntensity:_,tuningSampleSize:g,setTuningSampleSize:y,tuningTopKEval:S,setTuningTopKEval:z,submitTuningTask:I,creatingTuning:$,tuningProfile:O,tuningProfileToml:H,tuningTasks:w,applyBestTask:re}=s;return e.jsx(xe,{value:"tuning",className:"space-y-4",children:e.jsxs("div",{className:"grid gap-4 xl:grid-cols-[0.95fr_1.05fr]",children:[e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsxs(se,{className:"flex items-center gap-2",children:[e.jsx(Oa,{className:"h-4 w-4"}),"调优任务"]}),e.jsx(ee,{children:"创建一次检索参数评估任务,完成后可在右侧列表中查看并应用最佳结果。"})]}),e.jsxs(te,{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-3 rounded-lg border bg-muted/20 p-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm font-medium",children:"调优策略"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"先选择优化方向和搜索强度。默认的 balanced / standard 适合大多数情况。"})]}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{children:"优化目标"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"决定本次调优更偏向准确率、召回率,还是两者平衡。"}),e.jsxs(Ee,{value:i,onValueChange:l,children:[e.jsx(Re,{children:e.jsx(Oe,{})}),e.jsxs(Fe,{children:[e.jsx(C,{value:"precision_priority",children:"precision_priority"}),e.jsx(C,{value:"balanced",children:"balanced"}),e.jsx(C,{value:"recall_priority",children:"recall_priority"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{children:"评估强度"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"强度越高,评估更充分,但任务耗时也更长。"}),e.jsxs(Ee,{value:d,onValueChange:_,children:[e.jsx(Re,{children:e.jsx(Oe,{})}),e.jsxs(Fe,{children:[e.jsx(C,{value:"quick",children:"quick"}),e.jsx(C,{value:"standard",children:"standard"}),e.jsx(C,{value:"deep",children:"deep"})]})]})]})]})]}),e.jsxs("div",{className:"space-y-3 rounded-lg border bg-muted/20 p-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm font-medium",children:"评估范围"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"控制本次任务使用多少样本,以及每次检索评估多少候选结果。"})]}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{children:"样本量"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"用于评估的样本数量。数量越大,结果越稳定。"}),e.jsx(p,{type:"number",value:g,onChange:v=>y(v.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{children:"评估 Top-K"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"每次检索时用于评估的候选结果数量。"}),e.jsx(p,{type:"number",value:S,onChange:v=>z(v.target.value)})]})]})]}),e.jsxs(k,{onClick:()=>{I()},disabled:$,children:[e.jsx(Oa,{className:"mr-2 h-4 w-4"}),"创建调优任务"]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsx(se,{children:"当前调优配置快照"}),e.jsx(ee,{children:"展示当前生效的检索调优参数,便于在应用新结果前做对照。"})]}),e.jsxs(te,{className:"space-y-3",children:[e.jsx(Pa,{value:JSON.stringify(O,null,2),language:"json",readOnly:!0,height:"220px"}),e.jsx(Pa,{value:H,language:"toml",readOnly:!0,height:"180px"})]})]}),e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsx(se,{children:"最近调优任务"}),e.jsx(ee,{children:"任务完成后,可以把最佳结果应用到当前调优配置。"})]}),e.jsx(te,{className:"space-y-3",children:e.jsxs(We,{children:[e.jsx(_s,{children:e.jsxs(D,{children:[e.jsx(Z,{children:"任务"}),e.jsx(Z,{children:"状态"}),e.jsx(Z,{children:"动作"})]})}),e.jsx(He,{children:w.length>0?w.map(v=>e.jsxs(D,{children:[e.jsx(b,{className:"font-mono text-xs",children:String(v.task_id??"-")}),e.jsx(b,{children:e.jsx(N,{variant:bs(String(v.status??"")),children:String(v.status??"-")})}),e.jsx(b,{children:e.jsx(k,{size:"sm",variant:"outline",onClick:()=>{re(String(v.task_id??""))},disabled:!v.task_id,children:"应用最佳"})})]},String(v.task_id??Math.random()))):e.jsx(D,{children:e.jsx(b,{colSpan:3,className:"text-center text-muted-foreground",children:"还没有调优任务。可以先使用默认参数创建一次评估任务。"})})})]})})]})]})]})})}function Bc(){const{toast:s}=dr(),[i,l]=t.useState(!0),[d,_]=t.useState(!1),[g,y]=t.useState(!1),[S,z]=t.useState(!1),[I,$]=t.useState("overview"),[O,H]=t.useState(()=>new Set),[w,re]=t.useState(null),[v,oe]=t.useState(null),[F,ne]=t.useState({}),[q,L]=t.useState({}),[x,U]=t.useState([]),[m,P]=t.useState(""),[K,ie]=t.useState(null),[de,he]=t.useState(!1),[h,le]=t.useState(""),[W,Q]=t.useState(0),[ce,A]=t.useState(null),[ke,f]=t.useState(!1),[J,ue]=t.useState("upload"),[ae,Qe]=t.useState(!0),[j,M]=t.useState(""),[pe,De]=t.useState("2"),[be,B]=t.useState("4"),[Ne,Ue]=t.useState(!0),[_e,Se]=t.useState("auto"),[we,Ss]=t.useState("content_hash"),[Ze,c]=t.useState(!1),[E,Xe]=t.useState(""),[ws,ur]=t.useState(!1),[Cs,mr]=t.useState(!1),[Is,xr]=t.useState("text"),[as,vt]=t.useState([]),[Ps,bt]=t.useState(""),[Ms,hr]=t.useState("text"),[ns,Nt]=t.useState(""),[Ts,yt]=t.useState("raw"),[Es,pr]=t.useState(""),[Rs,gr]=t.useState("*"),[Os,fr]=t.useState("text"),[Fs,jr]=t.useState(!0),[Ds,kt]=t.useState("lpmm"),[Ls,vr]=t.useState(""),[As,br]=t.useState(!1),[Bs,_t]=t.useState("lpmm"),[zs,Nr]=t.useState(""),[$s,St]=t.useState("plugin_data"),[qs,yr]=t.useState(""),[Js,kr]=t.useState(""),[Us,_r]=t.useState("1024"),[Ks,wt]=t.useState("plugin_data"),[is,Ct]=t.useState(""),[Vs,It]=t.useState("100000"),[Gs,Sr]=t.useState(!1),[Ws,wr]=t.useState(!1),[qe,ls]=t.useState(""),[Hs,Cr]=t.useState(""),[Ke,cs]=t.useState(""),[Ve,Ye]=t.useState(""),[es,Ir]=t.useState(""),[Qs,Pr]=t.useState(""),[os,Mr]=t.useState(""),[Zs,Tr]=t.useState(""),[V,ss]=t.useState("2000"),[ds,Pt]=t.useState("20000"),[Xs,Er]=t.useState(""),[ts,Mt]=t.useState(!1),[us,Rr]=t.useState(!1),[Ys,Or]=t.useState(!1),[ms,a]=t.useState(!1),[fe,Fr]=t.useState("raw"),[Dr,Ln]=t.useState(""),[Lr,An]=t.useState(!0),[Bn,La]=t.useState(""),[zn,Aa]=t.useState(!1),[$n,Ar]=t.useState([]),[Ba,za]=t.useState({}),[qn,$a]=t.useState(""),[Br,Tt]=t.useState([]),[zr,$r]=t.useState([]),[qr,et]=t.useState(null),[Jn,qa]=t.useState(!1),[Un,st]=t.useState(""),[Jr,Kn]=t.useState(""),[Et,Vn]=t.useState(""),[tt,Gn]=t.useState("all"),[rt,Wn]=t.useState("all"),[at,Ur]=t.useState(1),[xs,Kr]=t.useState(""),[Rt,Hn]=t.useState(""),[nt,Vr]=t.useState(1),[Ot,Gr]=t.useState([]),[Qn,Ft]=t.useState(!1),[Zn,Xn]=t.useState("删除预览"),[Yn,ei]=t.useState(""),[si,Wr]=t.useState(null),[ti,Dt]=t.useState(null),[ri,Ja]=t.useState(!1),[ai,Ua]=t.useState(!1),[Ka,Va]=t.useState(!1),[Hr,Qr]=t.useState(null),[Zr,Ga]=t.useState(null),[Xr,Wa]=t.useState([]),[Lt,ni]=t.useState(""),[it,ii]=t.useState("all"),[lt,li]=t.useState("all"),[ct,Yr]=t.useState(1),[hs,ea]=t.useState(0),[At,ps]=t.useState(null),[ci,Ha]=t.useState(!1),[oi,ot]=t.useState(""),[Bt,di]=t.useState(""),[dt,sa]=t.useState(1),[ui,zt]=t.useState(!1),[ta,Qa]=t.useState(""),[$t,Za]=t.useState(!1),[ra,mi]=t.useState("precision_priority"),[aa,xi]=t.useState("standard"),[na,hi]=t.useState("24"),[ia,pi]=t.useState("20"),ut=t.useCallback(async()=>{try{l(!0);const[r,n,o,T,R,ve,Te,pa,ga]=await Promise.all([Ht(),un(),mn(),xn(20),hn(),fa(20),Qt(),ja(ya),pn({limit:Cn})]);if(re(r),ne(n.settings??{}),L(o.path_aliases??{}),U(T.items??[]),za(R.profile??{}),$a(R.toml??""),Ar(ve.items??[]),Tt(Te.items??[]),$r(pa.items??[]),Wa(ga.items??[]),!m&&(T.items??[]).length>0){const xt=String(T.items?.[0]?.task_id??"");xt&&P(xt)}if(!qe&&String(n.settings?.maibot_source_db_default??"").trim()&&ls(String(n.settings?.maibot_source_db_default??"").trim()),!fe){const xt=Object.keys(o.path_aliases??{});xt.length>0&&Fr(xt[0])}}catch(r){s({title:"加载长期记忆控制台失败",description:r instanceof Error?r.message:"未知错误",variant:"destructive"})}finally{l(!1)}},[qe,fe,m,s]);t.useEffect(()=>{ut()},[ut]),t.useEffect(()=>{["episodes","profiles","maintenance"].includes(I)&&H(r=>{if(r.has(I))return r;const n=new Set(r);return n.add(I),n})},[I]);const Xa=t.useMemo(()=>w?[{label:"运行状态",value:w.runtime_ready?"就绪":"未就绪",description:w.embedding_degraded?"Embedding 降级运行":"运行时检查通过",icon:w.runtime_ready?jn:Ea,className:w.runtime_ready?"border-emerald-500/20 bg-emerald-500/5":"border-amber-500/20 bg-amber-500/5",iconClassName:w.runtime_ready?"text-emerald-500":"text-amber-500"},{label:"Embedding 维度",value:String(w.embedding_dimension),description:w.relation_vectors_enabled?"关系向量已启用":"关系向量未启用",icon:Jl,className:"border-sky-500/20 bg-sky-500/5",iconClassName:"text-sky-500"},{label:"自动保存",value:w.auto_save?"开启":"关闭",description:w.auto_save?"运行数据会自动落盘":"请留意手动保存",icon:w.auto_save?jn:Ea,className:w.auto_save?"border-primary/20 bg-primary/5":"border-muted-foreground/20 bg-muted/30",iconClassName:w.auto_save?"text-primary":"text-muted-foreground"},{label:"数据目录",value:w.data_dir,description:"长期记忆存储位置",icon:Ul,className:"border-violet-500/20 bg-violet-500/5",iconClassName:"text-violet-500"}]:[],[w]),la=t.useMemo(()=>Math.max(200,Number(F.poll_interval_ms??1e3)),[F.poll_interval_ms]),gs=t.useMemo(()=>Object.keys(q).sort((r,n)=>r.localeCompare(n)),[q]),gi=t.useMemo(()=>x.filter(r=>or.has(String(r.status??"").trim())),[x]),fi=t.useMemo(()=>x.filter(r=>Fa.has(String(r.status??"").trim())),[x]),ji=t.useMemo(()=>x.filter(r=>{const n=String(r.status??"").trim();return!or.has(n)&&!Fa.has(n)}),[x]),vi=t.useMemo(()=>m?x.find(r=>r.task_id===m)??null:null,[x,m]),bi=t.useMemo(()=>Array.isArray(K?.files)?K.files:[],[K?.files]),Ni=t.useMemo(()=>Array.isArray(ce?.items)?ce.items:[],[ce?.items]),ca=K??vi,yi=String(ca?.error??"").trim(),ki=ca?.retry_summary,Ya=Number(ce?.total??0),_i=W>0,Si=W+ft{const r={llm_enabled:Ne,strategy_override:_e,dedupe_policy:we,chat_log:Ze,force:ws,clear_manifest:Cs},n=Ae(pe),o=Ae(be);return n!==void 0&&(r.file_concurrency=n),o!==void 0&&(r.chunk_concurrency=o),E.trim()&&(r.chat_reference_time=E.trim()),r},[Ze,E,be,Cs,we,pe,ws,Ne,_e]),Pe=t.useCallback(async(r=!1)=>{try{const[n,o,T]=await Promise.all([xn(20),un(),mn()]),R=n.items??[];if(U(R),ne(o.settings??{}),L(T.path_aliases??{}),M(""),R.length<=0){P(""),ie(null),le(""),A(null);return}(!m||!R.some(ve=>ve.task_id===m))&&P(R[0].task_id)}catch(n){const o=n instanceof Error?n.message:"刷新导入任务失败";M(o),r||s({title:"刷新导入任务失败",description:o,variant:"destructive"})}},[m,s]),fs=t.useCallback(async(r,n,o=0,T=!1)=>{if(!r||!n){A(null);return}try{f(!0);const R=await ll(r,n,o,ft);if(!R.success)throw new Error(R.error||"加载分块详情失败");A(R),M("")}catch(R){const ve=R instanceof Error?R.message:"加载分块详情失败";A(null),M(ve),T||s({title:"加载分块详情失败",description:ve,variant:"destructive"})}finally{f(!1)}},[s]),ge=t.useCallback(async(r,n=!1)=>{if(!r){ie(null),le(""),A(null);return}try{n||he(!0);const o=await cl(r,!1);if(!o.success||!o.task)throw new Error(o.error||"任务不存在");const T=o.task;ie(T),M("");const R=Array.isArray(T.files)?T.files:[],ve=R.some(ga=>ga.file_id===h),Te=ve?h:String(R[0]?.file_id??""),pa=ve?W:0;ve||Q(0),le(Te),Te?await fs(r,Te,pa,n):A(null)}catch(o){const T=o instanceof Error?o.message:"加载导入任务详情失败";ie(null),le(""),A(null),M(T),n||s({title:"加载导入任务详情失败",description:T,variant:"destructive"})}finally{n||he(!1)}},[W,fs,h,s]),je=t.useCallback(async(r,n)=>{await Pe(!0),r&&(P(r),await ge(r,!0)),s({title:n,description:r?`任务 ${r.slice(0,12)} 已加入导入队列`:"导入任务已加入队列"})},[ge,Pe,s]),en=t.useCallback(async()=>{if(as.length<=0){s({title:"请选择上传文件",description:"至少选择一个 txt/md/json 文件后再提交",variant:"destructive"});return}try{y(!0);const r={...Le(),input_mode:Is},n=await ol(as,r);if(!n.success)throw new Error(n.error||"创建上传导入任务失败");const o=String(n.task?.task_id??"");vt([]),await je(o,"上传导入任务已创建")}catch(r){const n=r instanceof Error?r.message:"创建上传导入任务失败";M(n),s({title:"创建上传导入任务失败",description:n,variant:"destructive"})}finally{y(!1)}},[je,Le,s,as,Is]),sn=t.useCallback(async()=>{if(!ns.trim()){s({title:"粘贴内容不能为空",description:"请填写导入内容后再提交",variant:"destructive"});return}try{y(!0);const r=await dl({...Le(),name:Ps||void 0,content:ns,input_mode:Ms});if(!r.success)throw new Error(r.error||"创建粘贴导入任务失败");const n=String(r.task?.task_id??"");Nt(""),bt(""),await je(n,"粘贴导入任务已创建")}catch(r){const n=r instanceof Error?r.message:"创建粘贴导入任务失败";M(n),s({title:"创建粘贴导入任务失败",description:n,variant:"destructive"})}finally{y(!1)}},[je,Le,ns,Ms,Ps,s]),tn=t.useCallback(async()=>{try{y(!0);const r=await ul({...Le(),alias:Ts,relative_path:Es,glob:Rs,recursive:Fs,input_mode:Os});if(!r.success)throw new Error(r.error||"创建本地扫描任务失败");await je(String(r.task?.task_id??""),"本地扫描任务已创建")}catch(r){const n=r instanceof Error?r.message:"创建本地扫描任务失败";M(n),s({title:"创建本地扫描任务失败",description:n,variant:"destructive"})}finally{y(!1)}},[je,Le,Ts,Rs,Os,Fs,Es,s]),rn=t.useCallback(async()=>{try{y(!0);const r=await ml({...Le(),alias:Ds,relative_path:Ls,include_all_json:As});if(!r.success)throw new Error(r.error||"创建 LPMM OpenIE 任务失败");await je(String(r.task?.task_id??""),"LPMM OpenIE 任务已创建")}catch(r){const n=r instanceof Error?r.message:"创建 LPMM OpenIE 任务失败";M(n),s({title:"创建 LPMM OpenIE 任务失败",description:n,variant:"destructive"})}finally{y(!1)}},[je,Le,Ds,As,Ls,s]),an=t.useCallback(async()=>{try{y(!0);const r=await xl({alias:Bs,relative_path:zs,target_alias:$s,target_relative_path:qs,dimension:Ae(Js),batch_size:Ae(Us)});if(!r.success)throw new Error(r.error||"创建 LPMM 转换任务失败");await je(String(r.task?.task_id??""),"LPMM 转换任务已创建")}catch(r){const n=r instanceof Error?r.message:"创建 LPMM 转换任务失败";M(n),s({title:"创建 LPMM 转换任务失败",description:n,variant:"destructive"})}finally{y(!1)}},[je,Bs,Us,Js,zs,$s,qs,s]),nn=t.useCallback(async()=>{try{y(!0);const r=await hl({alias:Ks,relative_path:is,limit:Ae(Vs),dry_run:Gs,no_created_fallback:Ws});if(!r.success)throw new Error(r.error||"创建时序回填任务失败");await je(String(r.task?.task_id??""),"时序回填任务已创建")}catch(r){const n=r instanceof Error?r.message:"创建时序回填任务失败";M(n),s({title:"创建时序回填任务失败",description:n,variant:"destructive"})}finally{y(!1)}},[je,Ks,Gs,Vs,Ws,is,s]),ln=t.useCallback(async()=>{try{y(!0);const r=await pl({source_db:qe||void 0,time_from:Hs||void 0,time_to:Ke||void 0,start_id:Ae(Ve),end_id:Ae(es),stream_ids:ka(Qs),group_ids:ka(os),user_ids:ka(Zs),read_batch_size:Ae(V),commit_window_rows:Ae(ds),embed_workers:Ae(Xs),no_resume:ts,reset_state:us,dry_run:Ys,verify_only:ms});if(!r.success)throw new Error(r.error||"创建 MaiBot 迁移任务失败");await je(String(r.task?.task_id??""),"MaiBot 迁移任务已创建")}catch(r){const n=r instanceof Error?r.message:"创建 MaiBot 迁移任务失败";M(n),s({title:"创建 MaiBot 迁移任务失败",description:n,variant:"destructive"})}finally{y(!1)}},[je,ds,Ys,Xs,es,os,ts,V,us,qe,Ve,Qs,Hs,Ke,Zs,ms,s]),wi=t.useCallback(async()=>{if(m)try{const r=await gl(m);if(!r.success)throw new Error(r.error||"取消导入任务失败");await Pe(!0),await ge(m,!0),s({title:"已请求取消任务",description:`任务 ${m.slice(0,12)} 正在取消`})}catch(r){const n=r instanceof Error?r.message:"取消导入任务失败";M(n),s({title:"取消导入任务失败",description:n,variant:"destructive"})}},[ge,Pe,m,s]),Ci=t.useCallback(async()=>{if(m)try{const r=await fl(m,{overrides:Le()});if(!r.success)throw new Error(r.error||"重试失败项失败");const n=String(r.task?.task_id??"");await Pe(!0),n?(P(n),await ge(n,!0)):await ge(m,!0),s({title:"重试任务已创建",description:n?`重试任务 ${n.slice(0,12)} 已进入队列`:"失败项已提交重试"})}catch(r){const n=r instanceof Error?r.message:"重试失败项失败";M(n),s({title:"重试失败项失败",description:n,variant:"destructive"})}},[Le,ge,Pe,m,s]),Ii=t.useCallback(async()=>{if(fe.trim())try{Aa(!0);const r=await jl({alias:fe,relative_path:Dr,must_exist:Lr}),n=[`路径别名: ${r.alias}`,`相对路径: ${r.relative_path||"(空)"}`,`解析结果: ${r.resolved_path}`,`是否存在: ${String(r.exists)}`,`是否文件: ${String(r.is_file)}`,`是否目录: ${String(r.is_dir)}`];La(n.join(` +`))}catch(r){const n=r instanceof Error?r.message:"路径解析失败";La(`解析失败:${n}`)}finally{Aa(!1)}},[fe,Lr,Dr]),mt=t.useCallback(async r=>{P(r),Q(0),await ge(r)},[ge]),Pi=t.useCallback(async r=>{m&&(le(r),Q(0),await fs(m,r,0))},[fs,m]),Mi=t.useCallback(async r=>{if(!m||!h)return;const n=r<0?Math.max(0,W-ft):W+ft;n!==W&&(Q(n),await fs(m,h,n))},[W,fs,h,m]);t.useEffect(()=>{if(gs.length<=0)return;const r=(n,o)=>n&&gs.includes(n)?n:gs.includes(o)?o:gs[0];yt(n=>r(n,"raw")),kt(n=>r(n,"lpmm")),_t(n=>r(n,"lpmm")),St(n=>r(n,"plugin_data")),wt(n=>r(n,"plugin_data")),Fr(n=>r(n,"raw"))},[gs]),t.useEffect(()=>{const r=String(F.default_file_concurrency??"").trim(),n=String(F.default_chunk_concurrency??"").trim();r&&pe==="2"&&De(r),n&&be==="4"&&B(n);const o=String(F.maibot_source_db_default??"").trim();o&&!qe.trim()&&ls(o)},[be,pe,F.default_chunk_concurrency,F.default_file_concurrency,F.maibot_source_db_default,qe]),t.useEffect(()=>{!m&&x.length>0&&mt(x[0].task_id)},[x,mt,m]),t.useEffect(()=>{if(!m){ie(null),le(""),A(null);return}if(!x.some(r=>r.task_id===m)&&x.length>0){mt(x[0].task_id);return}ge(m,!0)},[x,ge,mt,m]),t.useEffect(()=>{if(!ae)return;const r=window.setInterval(()=>{Pe(!0),m&&ge(m,!0)},la);return()=>{window.clearInterval(r)}},[ae,la,ge,Pe,m]);const oa=t.useRef("");t.useEffect(()=>{oa.current=m},[m]),t.useEffect(()=>{let r=!1,n;const o=T=>{T.topic==="import_progress"&&(Pe(!0),oa.current&&ge(oa.current,!0))};return ac.subscribe(o,["import_progress"]).then(T=>{if(r){T();return}n=T}).catch(T=>{console.warn("订阅长期记忆 WebSocket 失败,已退化到轮询兜底",T)}),()=>{r=!0,n&&n()}},[ge,Pe]);const Ti=t.useMemo(()=>{const r=Jr.trim().toLowerCase();return r?Br.filter(n=>String(n.source??"").toLowerCase().includes(r)):Br},[Br,Jr]),js=t.useMemo(()=>{const r=Et.trim().toLowerCase();return zr.filter(n=>{const o=String(n.mode??"").trim(),T=String(n.status??"").trim(),R=n.summary??{},ve=Array.isArray(R.sources)?R.sources:[];return tt!=="all"&&o!==tt||rt!=="all"&&T!==rt?!1:r?[n.operation_id,n.reason,n.requested_by,o,T,...ve.map(Te=>String(Te))].map(Te=>String(Te??"").toLowerCase()).some(Te=>Te.includes(r)):!0})},[zr,tt,Et,rt]),qt=Math.max(1,Math.ceil(js.length/sr)),da=t.useMemo(()=>{const r=(at-1)*sr;return js.slice(r,r+sr)},[js,at]),Ce=t.useMemo(()=>js.find(r=>r.operation_id===xs)??da[0]??null,[js,da,xs]);t.useEffect(()=>{Ur(1)},[Et,tt,rt]),t.useEffect(()=>{at>qt&&Ur(qt)},[qt,at]),t.useEffect(()=>{if(!Ce){xs&&Kr(""),et(null),st("");return}Ce.operation_id!==xs&&Kr(Ce.operation_id)},[Ce,xs]),t.useEffect(()=>{const r=Ce?.operation_id;if(!r){et(null),st("");return}let n=!1;return qa(!0),st(""),vl(r).then(o=>{if(!n){if(!o.success||!o.operation){et(null),st(o.error||"未能加载删除操作详情");return}et(o.operation)}}).catch(o=>{n||(et(null),st(o instanceof Error?o.message:"未能加载删除操作详情"))}).finally(()=>{n||qa(!1)}),()=>{n=!0}},[Ce?.operation_id]);const Ei=t.useCallback((r,n)=>{Gr(o=>n?o.includes(r)?o:[...o,r]:o.filter(T=>T!==r))},[]),Ri=t.useCallback(async()=>{if(Ot.length<=0){s({title:"请选择来源",description:"至少选择一个来源后再进行删除预览",variant:"destructive"});return}const r={mode:"source",selector:{sources:Ot},reason:"knowledge_base_source_delete",requested_by:"knowledge_base"};Xn("批量删除来源"),ei("删除来源只会删除该来源下的段落,以及失去全部证据的关系,不会自动删除实体"),Ga(r),Wr(null),Qr(null),Dt(null),Ft(!0),Ja(!0);try{const n=await bl(r);Wr(n)}catch(n){Dt(n instanceof Error?n.message:"删除预览失败")}finally{Ja(!1)}},[Ot,s]),Oi=t.useCallback(async()=>{if(Zr)try{Ua(!0);const r=await Nl(Zr);if(Qr(r),s({title:r.success?"删除成功":"删除失败",description:r.success?`操作 ${r.operation_id} 已完成`:r.error||"未能执行删除",variant:r.success?"default":"destructive"}),r.success){const[n,o]=await Promise.all([Qt(),ja(ya)]);Tt(n.items??[]),$r(o.items??[]),Gr([])}}catch(r){Dt(r instanceof Error?r.message:"删除失败"),s({title:"删除失败",description:r instanceof Error?r.message:"未知错误",variant:"destructive"})}finally{Ua(!1)}},[Zr,s]),cn=t.useCallback(async r=>{try{Va(!0),await yl({operation_id:r,requested_by:"knowledge_base"}),s({title:"恢复成功",description:`删除操作 ${r} 已恢复`}),Ft(!1);const[n,o]=await Promise.all([Qt(),ja(ya)]);Tt(n.items??[]),$r(o.items??[])}catch(n){s({title:"恢复失败",description:n instanceof Error?n.message:"未知错误",variant:"destructive"})}finally{Va(!1)}},[s]),Fi=t.useCallback(r=>{if(!r){Ft(!1),Wr(null),Qr(null),Dt(null),Ga(null);return}Ft(!0)},[]),vs=t.useMemo(()=>{const r=Lt.trim().toLowerCase();return Xr.filter(n=>{const o=String(n.task_status??"").trim().toLowerCase(),T=String(n.rollback_status??"").trim().toLowerCase();return it!=="all"&&o!==it||lt!=="all"&&T!==lt?!1:r?[n.query_tool_id,n.session_id,n.query_text,n.decision,n.task_status,n.rollback_status].map(R=>String(R??"").toLowerCase()).some(R=>R.includes(r)):!0})},[Xr,lt,Lt,it]),Jt=Math.max(1,Math.ceil(vs.length/rr)),ua=t.useMemo(()=>{const r=(ct-1)*rr;return vs.slice(r,r+rr)},[ct,vs]),Ie=t.useMemo(()=>vs.find(r=>r.task_id===hs)??ua[0]??null,[vs,ua,hs]);t.useEffect(()=>{Yr(1)},[Lt,it,lt]),t.useEffect(()=>{ct>Jt&&Yr(Jt)},[ct,Jt]),t.useEffect(()=>{if(!Ie){hs&&ea(0),ps(null),ot("");return}Ie.task_id!==hs&&ea(Ie.task_id)},[Ie,hs]),t.useEffect(()=>{const r=Ie?.task_id;if(!r){ps(null),ot("");return}let n=!1;return Ha(!0),ot(""),gn(r).then(o=>{if(!n){if(!o.success||!o.task){ps(null),ot(o.error||"未能加载纠错任务详情");return}ps(o.task)}}).catch(o=>{n||(ps(null),ot(o instanceof Error?o.message:"未能加载纠错任务详情"))}).finally(()=>{n||Ha(!1)}),()=>{n=!0}},[Ie?.task_id]);const Me=t.useMemo(()=>Ie?At?.task_id===Ie.task_id?{...Ie,...At}:At??Ie:null,[Ie,At]),Di=t.useMemo(()=>Fn(Me),[Me]),Li=t.useMemo(()=>Dn(Me),[Me]),Ut=Array.isArray(Me?.action_logs)?Me.action_logs:[],ma=t.useMemo(()=>{const r=Bt.trim().toLowerCase();return r?Ut.filter(n=>[n.action_type,n.target_hash,n.reason,ks(n.before_payload),ks(n.after_payload)].map(o=>String(o??"").toLowerCase()).some(o=>o.includes(r))):Ut},[Bt,Ut]),Kt=Math.max(1,Math.ceil(ma.length/ar)),Ai=t.useMemo(()=>{const r=(dt-1)*ar;return ma.slice(r,r+ar)},[dt,ma]);t.useEffect(()=>{sa(1)},[hs,Bt]),t.useEffect(()=>{dt>Kt&&sa(Kt)},[dt,Kt]);const Bi=t.useCallback(()=>{Qa(""),zt(!0)},[]),zi=t.useCallback(async()=>{const r=Me?.task_id;if(r)try{Za(!0);const n=await kl(r,{requested_by:"knowledge_base",reason:ta.trim()});if(!n.success)throw new Error(n.error||"回退失败");s({title:n.already_rolled_back?"该纠错已回退":"纠错回退成功",description:`任务 ${r} 的回退结果已写入日志`}),zt(!1);const[o,T]=await Promise.all([pn({limit:Cn}),gn(r)]);Wa(o.items??[]),ps(T.task??null);const[R,ve]=await Promise.all([Qt(),Ht()]);Tt(R.items??[]),re(ve)}catch(n){s({title:"纠错回退失败",description:n instanceof Error?n.message:"未知错误",variant:"destructive"})}finally{Za(!1)}},[ta,Me?.task_id,s]),xa=t.useMemo(()=>Ce?qr?.operation_id===Ce.operation_id?{...Ce,...qr}:Ce:null,[Ce,qr]),ha=xa?.summary??{},$i=ha.counts??{},qi=Array.isArray(ha.sources)?ha.sources.map(r=>String(r)).filter(Boolean):[],Vt=Array.isArray(xa?.items)?xa.items:[],Gt=t.useMemo(()=>{const r=Rt.trim().toLowerCase();return r?Vt.filter(n=>{const o=n.payload??{},T=String(o.source??"").trim();return[n.item_type,n.item_hash,n.item_key,T].map(R=>String(R??"").toLowerCase()).some(R=>R.includes(r))}):Vt},[Rt,Vt]),Wt=Math.max(1,Math.ceil(Gt.length/tr)),Ji=t.useMemo(()=>{const r=(nt-1)*tr;return Gt.slice(r,r+tr)},[Gt,nt]);t.useEffect(()=>{Vr(1)},[xs,Rt]),t.useEffect(()=>{nt>Wt&&Vr(Wt)},[nt,Wt]);const on=t.useCallback(async()=>{try{_(!0);const r=await _l();oe(r.report??null);const n=await Ht();re(n),s({title:r.success?"自检通过":"自检未通过",description:r.success?"运行时状态正常":"请检查 embedding 配置和外部服务连通性",variant:r.success?"default":"destructive"})}catch(r){s({title:"运行时自检失败",description:r instanceof Error?r.message:"未知错误",variant:"destructive"})}finally{_(!1)}},[s]),Ui=t.useCallback(async()=>{if(!g)switch(J){case"upload":await en();break;case"paste":await sn();break;case"raw_scan":await tn();break;case"lpmm_openie":await rn();break;case"lpmm_convert":await an();break;case"temporal_backfill":await nn();break;case"maibot_migration":await ln();break}},[g,J,nn,an,ln,rn,sn,tn,en]),Ki=t.useCallback(async()=>{try{z(!0),await Sl({objective:ra,intensity:aa,sample_size:Number(na),top_k_eval:Number(ia)});const r=await fa(20);Ar(r.items??[]),s({title:"调优任务已创建",description:"新的检索调优任务已经进入队列"})}catch(r){s({title:"创建调优任务失败",description:r instanceof Error?r.message:"未知错误",variant:"destructive"})}finally{z(!1)}},[s,aa,ra,na,ia]),Vi=t.useCallback(async r=>{try{await wl(r);const[n,o,T]=await Promise.all([hn(),Ht(),fa(20)]);za(n.profile??{}),$a(n.toml??""),re(o),Ar(T.items??[]),s({title:"最佳参数已应用",description:`任务 ${r} 的最佳轮次已经写入运行时`})}catch(n){s({title:"应用最佳参数失败",description:n instanceof Error?n.message:"未知错误",variant:"destructive"})}},[s]);return i?e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx("div",{className:"rounded-xl border bg-background px-6 py-5 text-sm text-muted-foreground shadow-sm",children:"正在加载长期记忆控制台..."})}):e.jsxs("div",{className:"flex h-full flex-col bg-gradient-to-b from-background via-background to-muted/15",children:[e.jsx("div",{className:"flex-none border-b bg-card/70 px-6 py-4 backdrop-blur",children:e.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-[11px] font-medium uppercase tracking-[0.18em] text-primary/80",children:"A_Memorix"}),e.jsx("h1",{className:"mt-1 text-2xl font-bold leading-tight",children:"长期记忆控制台"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"在这里完成自检、导入资料和检索调优——一站式管理记忆库"})]}),e.jsxs("div",{className:"hidden",children:[e.jsxs(k,{variant:"outline",size:"sm",onClick:()=>$("graph"),children:[e.jsx(vn,{className:"mr-2 h-4 w-4"}),"打开图谱"]}),e.jsxs(k,{variant:"outline",size:"sm",onClick:()=>{ut()},children:[e.jsx(Be,{className:"mr-2 h-4 w-4"}),"刷新数据"]})]})]})}),e.jsx("div",{className:"flex-1 overflow-auto",children:e.jsxs("div",{className:"mx-auto flex w-full max-w-[1800px] flex-col gap-6 px-6 py-6",children:[e.jsx("div",{className:"hidden",children:e.jsxs(k,{variant:"outline",size:"sm",onClick:()=>{ut()},children:[e.jsx(Be,{className:"mr-2 h-4 w-4"}),"刷新数据"]})}),Xa.length>0?e.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/60 p-4 shadow-sm backdrop-blur",children:[e.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[e.jsxs("div",{className:"mr-auto flex items-center gap-2 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:[e.jsx(bn,{className:"h-3.5 w-3.5"}),"运行时状态"]}),e.jsxs(k,{variant:"outline",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>{ut()},children:[e.jsx(Be,{className:"mr-1.5 h-3 w-3"}),"刷新数据"]}),e.jsxs(k,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>{on()},disabled:d,children:[e.jsx(Be,{className:G("mr-1.5 h-3 w-3",d&&"animate-spin")}),"自检"]})]}),e.jsx("div",{className:"grid gap-2.5 sm:grid-cols-2 lg:grid-cols-4",children:Xa.map(r=>e.jsxs("div",{className:G("flex items-center gap-3 rounded-xl border px-3 py-2.5 transition-colors",r.className),children:[e.jsx("div",{className:"flex-none rounded-lg border bg-background/70 p-1.5 shadow-sm",children:e.jsx(r.icon,{className:G("h-4 w-4",r.iconClassName)})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"text-[11px] font-medium text-muted-foreground",children:r.label}),e.jsx("div",{className:"truncate text-sm font-semibold leading-snug",title:r.value,children:r.value}),e.jsx("div",{className:"mt-0.5 truncate text-[11px] text-muted-foreground",children:r.description})]})]},r.label))})]}):null,e.jsx("div",{className:"overflow-hidden rounded-2xl border border-primary/20 bg-gradient-to-br from-primary/10 via-primary/5 to-transparent p-5 shadow-sm",children:e.jsxs("div",{className:"flex flex-col gap-5 lg:flex-row lg:items-center lg:justify-between",children:[e.jsxs("div",{className:"space-y-1.5 lg:max-w-sm",children:[e.jsx("div",{className:"text-[11px] font-medium uppercase tracking-[0.18em] text-primary",children:"快速开始"}),e.jsx("h2",{className:"text-lg font-semibold leading-tight",children:"先从这三件事入手"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"不知道该做什么?挑一个最常用的入口,下面的标签页里有更详细的设置。"})]}),e.jsxs("div",{className:"grid w-full gap-2.5 sm:grid-cols-3 lg:max-w-3xl",children:[e.jsxs("button",{type:"button",onClick:()=>$("import"),className:"group flex items-start gap-3 rounded-xl border border-border/70 bg-background/80 p-3.5 text-left transition hover:border-primary/50 hover:bg-background hover:shadow-md",children:[e.jsx("div",{className:"flex-none rounded-lg bg-primary/10 p-2 text-primary transition-transform group-hover:scale-105",children:e.jsx(Ra,{className:"h-4 w-4"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"text-sm font-semibold",children:"导入资料"}),e.jsx("div",{className:"mt-0.5 text-xs leading-relaxed text-muted-foreground",children:"把文件、聊天记录写进记忆库"})]})]}),e.jsxs("button",{type:"button",onClick:()=>$("tuning"),className:"group flex items-start gap-3 rounded-xl border border-border/70 bg-background/80 p-3.5 text-left transition hover:border-primary/50 hover:bg-background hover:shadow-md",children:[e.jsx("div",{className:"flex-none rounded-lg bg-amber-500/10 p-2 text-amber-500 transition-transform group-hover:scale-105",children:e.jsx(Kl,{className:"h-4 w-4"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"text-sm font-semibold",children:"检索调优"}),e.jsx("div",{className:"mt-0.5 text-xs leading-relaxed text-muted-foreground",children:"让回忆变得更准、更聪明"})]})]}),e.jsxs("button",{type:"button",onClick:()=>$("graph"),className:"group flex items-start gap-3 rounded-xl border border-border/70 bg-background/80 p-3.5 text-left transition hover:border-primary/50 hover:bg-background hover:shadow-md",children:[e.jsx("div",{className:"flex-none rounded-lg bg-violet-500/10 p-2 text-violet-500 transition-transform group-hover:scale-105",children:e.jsx(vn,{className:"h-4 w-4"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"text-sm font-semibold",children:"打开图谱"}),e.jsx("div",{className:"mt-0.5 text-xs leading-relaxed text-muted-foreground",children:"可视化已存的实体和关系"})]})]})]})]})}),e.jsxs(En,{value:I,onValueChange:r=>$(r),className:"space-y-5",children:[e.jsx("div",{className:"sticky top-0 z-10 -mx-6 border-b border-border/40 bg-background/85 px-6 pb-2 pt-1 backdrop-blur supports-[backdrop-filter]:bg-background/70",children:e.jsx(Rn,{items:[{value:"overview",label:"概览",description:"运行状态与运行时摘要"},{value:"graph",label:"图谱",description:"实体关系图与证据视图"},{value:"import",label:"导入",description:"创建并管理导入任务"},{value:"tuning",label:"调优",description:"检索策略调优"},{value:"episodes",label:"情景记忆",description:"查看和重建情景记忆"},{value:"profiles",label:"人物画像",description:"查询和维护人物画像"},{value:"maintenance",label:"维护",description:"回收站与记忆状态维护"},{value:"delete",label:"删除",description:"批量删除与历史回溯"},{value:"feedback",label:"纠错历史",description:"查看反馈与回滚"}],triggerClassName:"px-4"})}),e.jsx(xe,{value:"graph",className:"h-[calc(100vh-220px)] min-h-[720px] overflow-hidden rounded-2xl border border-border/60 bg-background shadow-sm",children:e.jsx(Cl,{embedded:!0,onOpenConsole:()=>$("overview")})}),e.jsx(xe,{value:"overview",className:"space-y-4",children:e.jsxs("div",{className:"grid gap-4 xl:grid-cols-[1.15fr_0.85fr]",children:[e.jsxs(X,{children:[e.jsxs(Y,{className:"flex flex-row items-start justify-between space-y-0",children:[e.jsxs("div",{children:[e.jsxs(se,{className:"flex items-center gap-2",children:[e.jsx(bn,{className:"h-4 w-4"}),"运行时自检"]}),e.jsx(ee,{children:"用于确认 embedding、向量库与运行时状态是否一致"})]}),e.jsxs(k,{size:"sm",onClick:()=>{on()},disabled:d,children:[e.jsx(Be,{className:`mr-2 h-4 w-4 ${d?"animate-spin":""}`}),"重新自检"]})]}),e.jsxs(te,{className:"space-y-3",children:[e.jsx(ze,{children:e.jsx($e,{children:"长期记忆配置已移动到主程序配置,请在“主程序配置 / 长期记忆”中调整。"})}),e.jsx(Pa,{value:JSON.stringify(v??w??{},null,2),language:"json",readOnly:!0,height:"320px"})]})]}),e.jsxs(X,{children:[e.jsxs(Y,{children:[e.jsxs(se,{className:"flex items-center gap-2",children:[e.jsx(Oa,{className:"h-4 w-4"}),"关键指标"]}),e.jsx(ee,{children:"用于快速判断是否需要补回向量或重新调优"})]}),e.jsxs(te,{className:"space-y-4 text-sm",children:[e.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[e.jsxs("div",{className:"rounded-lg border bg-muted/30 p-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"待补回段落向量"}),e.jsx("div",{className:"mt-1 text-2xl font-semibold",children:w?.paragraph_vector_backfill_pending??0})]}),e.jsxs("div",{className:"rounded-lg border bg-muted/30 p-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"失败补回任务"}),e.jsx("div",{className:"mt-1 text-2xl font-semibold",children:w?.paragraph_vector_backfill_failed??0})]})]}),e.jsxs("details",{className:"rounded-lg border bg-muted/30 p-3",open:!0,children:[e.jsx("summary",{className:"cursor-pointer text-xs font-medium text-muted-foreground",children:"当前调优配置"}),e.jsx("pre",{className:"mt-2 max-h-48 overflow-auto whitespace-pre-wrap break-words text-xs",children:JSON.stringify(Ba,null,2)})]})]})]})]})}),e.jsx(vc,{importCreateMode:J,setImportCreateMode:ue,importSettings:F,importCommonFileConcurrency:pe,setImportCommonFileConcurrency:De,importCommonChunkConcurrency:be,setImportCommonChunkConcurrency:B,importCommonLlmEnabled:Ne,setImportCommonLlmEnabled:Ue,importCommonChatLog:Ze,setImportCommonChatLog:c,importCommonStrategyOverride:_e,setImportCommonStrategyOverride:Se,importCommonDedupePolicy:we,setImportCommonDedupePolicy:Ss,importCommonChatReferenceTime:E,setImportCommonChatReferenceTime:Xe,importCommonForce:ws,setImportCommonForce:ur,importCommonClearManifest:Cs,setImportCommonClearManifest:mr,uploadInputMode:Is,setUploadInputMode:xr,uploadFiles:as,setUploadFiles:vt,pasteName:Ps,setPasteName:bt,pasteMode:Ms,setPasteMode:hr,pasteContent:ns,setPasteContent:Nt,rawAlias:Ts,setRawAlias:yt,rawInputMode:Os,setRawInputMode:fr,rawRelativePath:Es,setRawRelativePath:pr,rawGlob:Rs,setRawGlob:gr,rawRecursive:Fs,setRawRecursive:jr,openieAlias:Ds,setOpenieAlias:kt,openieRelativePath:Ls,setOpenieRelativePath:vr,openieIncludeAllJson:As,setOpenieIncludeAllJson:br,convertAlias:Bs,setConvertAlias:_t,convertTargetAlias:$s,setConvertTargetAlias:St,convertRelativePath:zs,setConvertRelativePath:Nr,convertTargetRelativePath:qs,setConvertTargetRelativePath:yr,convertDimension:Js,setConvertDimension:kr,convertBatchSize:Us,setConvertBatchSize:_r,backfillAlias:Ks,setBackfillAlias:wt,backfillLimit:Vs,setBackfillLimit:It,backfillRelativePath:is,setBackfillRelativePath:Ct,backfillDryRun:Gs,setBackfillDryRun:Sr,backfillNoCreatedFallback:Ws,setBackfillNoCreatedFallback:wr,maibotSourceDb:qe,setMaibotSourceDb:ls,maibotTimeFrom:Hs,setMaibotTimeFrom:Cr,maibotTimeTo:Ke,setMaibotTimeTo:cs,maibotStartId:Ve,setMaibotStartId:Ye,maibotEndId:es,setMaibotEndId:Ir,maibotStreamIds:Qs,setMaibotStreamIds:Pr,maibotGroupIds:os,setMaibotGroupIds:Mr,maibotUserIds:Zs,setMaibotUserIds:Tr,maibotReadBatchSize:V,setMaibotReadBatchSize:ss,maibotCommitWindowRows:ds,setMaibotCommitWindowRows:Pt,maibotEmbedWorkers:Xs,setMaibotEmbedWorkers:Er,maibotNoResume:ts,setMaibotNoResume:Mt,maibotResetState:us,setMaibotResetState:Rr,maibotDryRun:Ys,setMaibotDryRun:Or,maibotVerifyOnly:ms,setMaibotVerifyOnly:a,submitImportByMode:Ui,creatingImport:g,pathResolveAlias:fe,setPathResolveAlias:Fr,importAliasKeys:gs,pathResolveRelativePath:Dr,setPathResolveRelativePath:Ln,pathResolveMustExist:Lr,setPathResolveMustExist:An,resolveImportPath:Ii,resolvingPath:zn,pathResolveOutput:Bn,refreshImportQueue:Pe,runningImportTasks:gi,queuedImportTasks:fi,recentImportTasks:ji,selectedImportTaskId:m,selectImportTask:mt,importAutoPolling:ae,setImportAutoPolling:Qe,importPollInterval:la,importErrorText:j,cancelSelectedImportTask:wi,retrySelectedImportTask:Ci,selectedImportTaskLoading:de,selectedImportTaskResolved:ca,selectedImportRetrySummary:ki,selectedImportTaskErrorText:yi,selectedImportFiles:bi,selectedImportFileId:h,selectImportFile:Pi,importChunkTotal:Ya,importChunkOffset:W,moveImportChunkPage:Mi,canImportChunkPrev:_i,canImportChunkNext:Si,importChunksLoading:ke,selectedImportChunks:Ni}),e.jsx(bc,{tuningObjective:ra,setTuningObjective:mi,tuningIntensity:aa,setTuningIntensity:xi,tuningSampleSize:na,setTuningSampleSize:hi,tuningTopKEval:ia,setTuningTopKEval:pi,submitTuningTask:Ki,creatingTuning:S,tuningProfile:Ba,tuningProfileToml:qn,tuningTasks:$n,applyBestTask:Vi}),e.jsx(xe,{value:"episodes",className:"space-y-4",children:O.has("episodes")?e.jsx(Wl,{}):null}),e.jsx(xe,{value:"profiles",className:"space-y-4",children:O.has("profiles")?e.jsx(tc,{}):null}),e.jsx(xe,{value:"maintenance",className:"space-y-4",children:O.has("maintenance")?e.jsx(Xl,{}):null}),e.jsx(hc,{sourceSearch:Jr,setSourceSearch:Kn,selectedSources:Ot,setSelectedSources:Gr,filteredSources:Ti,openSourceDeletePreview:Ri,toggleSourceSelection:Ei,operationSearch:Et,setOperationSearch:Vn,operationModeFilter:tt,setOperationModeFilter:Gn,operationStatusFilter:rt,setOperationStatusFilter:Wn,filteredDeleteOperations:js,deleteOperations:zr,operationPage:at,setOperationPage:Ur,deleteOperationPageCount:qt,pagedDeleteOperations:da,selectedDeleteOperation:Ce,setSelectedOperationId:Kr,restoreDeleteOperation:cn,deleteRestoring:Ka,selectedOperationCounts:$i,selectedOperationDetailLoading:Jn,selectedOperationDetailError:Un,selectedOperationSources:qi,selectedOperationItems:Vt,filteredSelectedOperationItems:Gt,selectedOperationItemSearch:Rt,setSelectedOperationItemSearch:Hn,selectedOperationItemPage:nt,setSelectedOperationItemPage:Vr,selectedOperationItemPageCount:Wt,pagedSelectedOperationItems:Ji}),e.jsx(pc,{feedbackSearch:Lt,setFeedbackSearch:ni,feedbackStatusFilter:it,setFeedbackStatusFilter:ii,feedbackRollbackFilter:lt,setFeedbackRollbackFilter:li,filteredFeedbackCorrections:vs,feedbackCorrections:Xr,pagedFeedbackCorrections:ua,feedbackPage:ct,setFeedbackPage:Yr,feedbackPageCount:Jt,selectedFeedbackCorrection:Ie,setSelectedFeedbackTaskId:ea,selectedFeedbackResolved:Me,selectedFeedbackPreview:Di,selectedFeedbackImpactSummary:Li,openFeedbackRollbackDialog:Bi,feedbackRollingBack:$t,selectedFeedbackTaskLoading:ci,selectedFeedbackTaskError:oi,feedbackActionLogPage:dt,setFeedbackActionLogPage:sa,feedbackActionLogPageCount:Kt,feedbackActionLogSearch:Bt,setFeedbackActionLogSearch:di,pagedFeedbackActionLogs:Ai,selectedFeedbackActionLogs:Ut})]})]})}),e.jsx(Il,{open:Qn,onOpenChange:Fi,title:Zn,description:Yn,preview:si,result:Hr,loadingPreview:ri,executing:ai,restoring:Ka,error:ti,onExecute:()=>{Oi()},onRestore:()=>{Hr?.operation_id?cn(Hr.operation_id):Promise.resolve()}}),e.jsx(Tl,{open:ui,onOpenChange:zt,children:e.jsxs(El,{className:"max-w-lg",confirmOnEnter:!0,children:[e.jsxs(Rl,{children:[e.jsx(Ol,{children:"回退本次纠错"}),e.jsx(Fl,{children:"这会恢复旧关系状态、隐藏本次纠错写入的段落,并重新触发 Episode / Profile 的异步修复。"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"rounded-lg border bg-muted/20 p-3 text-sm",children:[e.jsx("div",{className:"font-medium break-words",children:Me?.query_text||"无查询文本"}),e.jsx("div",{className:"mt-1 font-mono text-[11px] break-all text-muted-foreground",children:Me?.query_tool_id})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"feedback-rollback-reason",children:"回退原因"}),e.jsx(ys,{id:"feedback-rollback-reason",value:ta,onChange:r=>Qa(r.target.value),placeholder:"可选,建议填写本次人工回退原因"})]})]}),e.jsxs(Dl,{children:[e.jsx(k,{variant:"outline",onClick:()=>zt(!1),disabled:$t,children:"取消"}),e.jsx(k,{onClick:()=>{zi()},disabled:$t,children:$t?e.jsxs(e.Fragment,{children:[e.jsx(Ge,{className:"mr-2 h-4 w-4 animate-spin"}),"回退中"]}):e.jsxs(e.Fragment,{children:[e.jsx(Je,{className:"mr-2 h-4 w-4"}),"确认回退"]})})]})]})})]})}export{Bc as KnowledgeBasePage}; diff --git a/dashboard/dist/assets/log-websocket-BnMQh0M3.js b/dashboard/dist/assets/log-websocket-BnMQh0M3.js new file mode 100644 index 00000000..d4672c7c --- /dev/null +++ b/dashboard/dist/assets/log-websocket-BnMQh0M3.js @@ -0,0 +1 @@ +import{c as s}from"./index-CuOHsLf7.js";import{g as a,u as n}from"./unified-ws-CBnrIqHW.js";class c{connectionCallbacks=new Set;initialized=!1;isConnected=!1;logCache=[];logCallbacks=new Set;subscriptionActive=!1;getMaxCacheSize(){return a("logCacheSize")}initialize(){this.initialized||(n.addEventListener(t=>{if(t.domain==="logs"){if(t.event==="snapshot"){const e=Array.isArray(t.data.entries)?t.data.entries:[];this.logCache=e.slice(-this.getMaxCacheSize()),this.notifyLogChange();return}t.event==="entry"&&t.data.entry&&this.appendLog(t.data.entry)}}),n.onConnectionChange(t=>{this.isConnected=t,this.notifyConnection(t)}),this.initialized=!0)}appendLog(t){if(this.logCache.some(o=>o.id===t.id))return;this.logCache.push(t);const i=this.getMaxCacheSize();this.logCache.length>i&&(this.logCache=this.logCache.slice(-i)),this.notifyLogChange()}notifyLogChange(){this.logCallbacks.forEach(t=>{try{t()}catch(e){console.error("日志回调执行失败:",e)}})}notifyConnection(t){this.connectionCallbacks.forEach(e=>{try{e(t)}catch(i){console.error("连接状态回调执行失败:",i)}})}async connect(){if(!(window.location.pathname==="/auth"||!await s())&&(this.initialize(),!this.subscriptionActive))try{await n.subscribe("logs","main",{replay:100}),this.subscriptionActive=!0}catch(e){console.error("订阅日志流失败:",e)}}disconnect(){this.subscriptionActive=!1,n.unsubscribe("logs","main"),this.isConnected=!1,this.notifyConnection(!1)}onLog(t){return this.logCallbacks.add(t),()=>this.logCallbacks.delete(t)}onConnectionChange(t){return this.connectionCallbacks.add(t),t(this.isConnected),()=>this.connectionCallbacks.delete(t)}getAllLogs(){return[...this.logCache]}clearLogs(){this.logCache=[],this.notifyLogChange()}getConnectionStatus(){return this.isConnected}}const r=new c;typeof window<"u"&&setTimeout(()=>{r.connect()},100);export{r as l}; diff --git a/dashboard/dist/assets/logs-bFuaYf8z.js b/dashboard/dist/assets/logs-bFuaYf8z.js new file mode 100644 index 00000000..0c74c0ea --- /dev/null +++ b/dashboard/dist/assets/logs-bFuaYf8z.js @@ -0,0 +1,2 @@ +import{j as e,r,v as he}from"./router-zNjPR4CY.js";import{g as s,ak as U,B as x,C as $,af as ge,I as pe,ag as fe,ah as je}from"./index-CuOHsLf7.js";import{S as M,a as V,b as W,c as q,d as j}from"./select-DGqIoF9r.js";import{S as be}from"./slider-mDhSC-zv.js";import{g as te,D as we,z}from"./misc-BwRzHX8c.js";import{G as Ne,y as ve,a as se,S as ye,aG as ke,aA as Ce,v as Se,aH as Q,aw as O,C as Re,aI as J,X as ze,aJ as _e,R as Le}from"./icons-DTcdLw9j.js";import{P as X,a as Y,b as K}from"./popover-DSuRLFDH.js";import{l as R}from"./log-websocket-BnMQh0M3.js";import{f as T}from"./utils-DjBw3JGv.js";import"./radix-C-ZuImoP.js";import"./unified-ws-CBnrIqHW.js";function Z({className:u,classNames:b,showOutsideDays:n=!0,captionLayout:w="label",buttonVariant:h="ghost",formatters:N,components:v,...L}){const a=te();return e.jsx(we,{showOutsideDays:n,className:s("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,u),captionLayout:w,formatters:{formatMonthDropdown:c=>c.toLocaleString("default",{month:"short"}),...N},classNames:{root:s("w-fit",a.root),months:s("relative flex flex-col gap-4 md:flex-row",a.months),month:s("flex w-full flex-col gap-4",a.month),nav:s("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",a.nav),button_previous:s(U({variant:h}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",a.button_previous),button_next:s(U({variant:h}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",a.button_next),month_caption:s("flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",a.month_caption),dropdowns:s("flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",a.dropdowns),dropdown_root:s("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",a.dropdown_root),dropdown:s("bg-popover absolute inset-0 opacity-0",a.dropdown),caption_label:s("select-none font-medium",w==="label"?"text-sm":"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",a.caption_label),table:"w-full border-collapse",weekdays:s("flex",a.weekdays),weekday:s("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",a.weekday),week:s("mt-2 flex w-full",a.week),week_number_header:s("w-[--cell-size] select-none",a.week_number_header),week_number:s("text-muted-foreground select-none text-[0.8rem]",a.week_number),day:s("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",a.day),range_start:s("bg-accent rounded-l-md",a.range_start),range_middle:s("rounded-none",a.range_middle),range_end:s("bg-accent rounded-r-md",a.range_end),today:s("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",a.today),outside:s("text-muted-foreground aria-selected:text-muted-foreground",a.outside),disabled:s("text-muted-foreground opacity-50",a.disabled),hidden:s("invisible",a.hidden),...b},components:{Root:({className:c,rootRef:o,...p})=>e.jsx("div",{"data-slot":"calendar",ref:o,className:s(c),...p}),Chevron:({className:c,orientation:o,...p})=>o==="left"?e.jsx(Ne,{className:s("size-4",c),...p}):o==="right"?e.jsx(ve,{className:s("size-4",c),...p}):e.jsx(se,{className:s("size-4",c),...p}),DayButton:Ie,WeekNumber:({children:c,...o})=>e.jsx("td",{...o,children:e.jsx("div",{className:"flex size-[--cell-size] items-center justify-center text-center",children:c})}),...v},...L})}function Ie({className:u,day:b,modifiers:n,...w}){const h=te(),N=r.useRef(null);return r.useEffect(()=>{n.focused&&N.current?.focus()},[n.focused]),e.jsx(x,{ref:N,variant:"ghost",size:"icon","data-day":b.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:s("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",h.day,u),...w})}const _={xs:{label:"小",rowHeight:28,class:"text-[10px] sm:text-xs"},sm:{label:"中",rowHeight:36,class:"text-xs sm:text-sm"},base:{label:"大",rowHeight:44,class:"text-sm sm:text-base"}},ee={DEBUG:10,INFO:20,WARNING:30,ERROR:40,CRITICAL:50};function $e(){const[u,b]=r.useState([]),[n,w]=r.useState(""),[h,N]=r.useState("INFO"),[v,L]=r.useState("all"),[a,c]=r.useState(void 0),[o,p]=r.useState(void 0),[m,I]=r.useState(!0),[B,ae]=r.useState(!1),[D,le]=r.useState("xs"),[y,re]=r.useState(4),[E,ne]=r.useState(!1),F=r.useRef(null);r.useEffect(()=>{const t=R.getAllLogs();b(t);const l=R.onLog(()=>{b(R.getAllLogs())}),f=R.onConnectionChange(g=>{ae(g)});return()=>{l(),f()}},[]);const oe=r.useMemo(()=>{const t=new Set(u.map(l=>l.module).filter(l=>l&&l.trim()!==""));return Array.from(t).sort()},[u]),P=t=>{switch(t){case"DEBUG":return"text-muted-foreground";case"INFO":return"text-blue-500 dark:text-blue-400";case"WARNING":return"text-yellow-600 dark:text-yellow-500";case"ERROR":return"text-red-600 dark:text-red-500";case"CRITICAL":return"text-red-700 dark:text-red-400 font-bold";default:return"text-foreground"}},ce=t=>{switch(t){case"DEBUG":return"bg-gray-800/30 dark:bg-gray-800/50";case"INFO":return"bg-blue-900/20 dark:bg-blue-500/20";case"WARNING":return"bg-yellow-900/20 dark:bg-yellow-500/20";case"ERROR":return"bg-red-900/20 dark:bg-red-500/20";case"CRITICAL":return"bg-red-900/30 dark:bg-red-600/30";default:return"bg-gray-800/20 dark:bg-gray-800/30"}},de=()=>{window.location.reload()},ie=()=>{R.clearLogs(),b([])},G=()=>{const t=i.map(d=>`${d.timestamp} [${d.level.padEnd(8)}] [${d.module}] ${d.message}`).join(` +`),l=new Blob([t],{type:"text/plain;charset=utf-8"}),f=URL.createObjectURL(l),g=document.createElement("a");g.href=f,g.download=`logs-${T(new Date,"yyyy-MM-dd-HHmmss")}.txt`,g.click(),URL.revokeObjectURL(f)},xe=()=>{I(!m)},me=()=>{c(void 0),p(void 0)},i=r.useMemo(()=>u.filter(t=>{const l=n===""||t.message.toLowerCase().includes(n.toLowerCase())||t.module.toLowerCase().includes(n.toLowerCase()),f=h==="all"||ee[t.level]>=ee[h],g=v==="all"||t.module===v;let d=!0;if(a||o){const C=new Date(t.timestamp);if(a){const S=new Date(a);S.setHours(0,0,0,0),d=d&&C>=S}if(o){const S=new Date(o);S.setHours(23,59,59,999),d=d&&C<=S}}return l&&f&&g&&d}),[u,n,h,v,a,o]),ue=_[D].rowHeight+y,k=he({count:i.length,getScrollElement:()=>F.current,estimateSize:()=>ue,overscan:50}),A=r.useRef(!1),H=r.useRef(i.length);return r.useEffect(()=>{const t=F.current;if(!t)return;const l=()=>{if(A.current)return;const{scrollTop:f,scrollHeight:g,clientHeight:d}=t,C=g-f-d;C>100&&m?I(!1):C<50&&!m&&I(!0)};return t.addEventListener("scroll",l,{passive:!0}),()=>t.removeEventListener("scroll",l)},[m]),r.useEffect(()=>{const t=i.length>H.current;H.current=i.length,m&&i.length>0&&t&&(A.current=!0,k.scrollToIndex(i.length-1,{align:"end",behavior:"auto"}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{A.current=!1})}))},[i.length,m,k]),e.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[e.jsxs("div",{className:"flex-shrink-0 space-y-2 sm:space-y-3 p-2 sm:p-3 lg:p-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg sm:text-xl lg:text-2xl font-bold",children:"日志查看器"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 hidden sm:block",children:"实时查看和分析麦麦运行日志"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:s("h-2 w-2 sm:h-2.5 sm:w-2.5 rounded-full",B?"bg-green-500 animate-pulse":"bg-red-500")}),e.jsx("span",{className:"text-xs text-muted-foreground",children:B?"已连接":"未连接"})]})]}),e.jsx($,{className:"p-2 sm:p-3",children:e.jsx(ge,{open:E,onOpenChange:ne,children:e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("div",{className:"flex-1 relative min-w-0",children:[e.jsx(ye,{className:"absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),e.jsx(pe,{placeholder:"搜索日志...",value:n,onChange:t=>w(t.target.value),className:"pl-8 h-8 text-xs sm:text-sm"})]}),e.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[e.jsxs(x,{variant:m?"default":"outline",size:"sm",onClick:xe,className:"h-8 px-2",title:m?"自动滚动":"已暂停",children:[m?e.jsx(ke,{className:"h-3.5 w-3.5"}):e.jsx(Ce,{className:"h-3.5 w-3.5"}),e.jsx("span",{className:"ml-1 text-xs hidden sm:inline",children:m?"滚动":"暂停"})]}),e.jsxs(x,{variant:"outline",size:"sm",onClick:ie,className:"h-8 px-2",title:"清空日志",children:[e.jsx(Se,{className:"h-3.5 w-3.5"}),e.jsx("span",{className:"ml-1 text-xs hidden md:inline",children:"清空"})]}),e.jsxs(x,{variant:"outline",size:"sm",onClick:G,className:"h-8 px-2 hidden sm:flex",title:"导出日志",children:[e.jsx(Q,{className:"h-3.5 w-3.5"}),e.jsx("span",{className:"ml-1 text-xs hidden lg:inline",children:"导出"})]}),e.jsx(fe,{asChild:!0,children:e.jsxs(x,{variant:"outline",size:"sm",className:"h-8 px-2",title:E?"收起筛选":"展开筛选",children:[e.jsx(O,{className:"h-3.5 w-3.5"}),E?e.jsx(Re,{className:"h-3.5 w-3.5 ml-1"}):e.jsx(se,{className:"h-3.5 w-3.5 ml-1"})]})})]})]}),e.jsxs("div",{className:"text-xs text-muted-foreground text-center sm:text-right -mt-1",children:[e.jsxs("span",{className:"font-mono",children:[i.length," / ",u.length]}),e.jsx("span",{className:"ml-1",children:"条日志"})]}),e.jsxs(je,{className:"space-y-2",children:[e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:gap-2",children:[e.jsxs(M,{value:h,onValueChange:t=>N(t),children:[e.jsxs(V,{className:"w-full sm:flex-1 h-8 text-xs",children:[e.jsx(O,{className:"h-3.5 w-3.5 mr-1.5"}),e.jsx(W,{placeholder:"最低级别"})]}),e.jsxs(q,{children:[e.jsx(j,{value:"all",children:"全部级别"}),e.jsx(j,{value:"DEBUG",children:"DEBUG 及以上"}),e.jsx(j,{value:"INFO",children:"INFO 及以上"}),e.jsx(j,{value:"WARNING",children:"WARNING 及以上"}),e.jsx(j,{value:"ERROR",children:"ERROR 及以上"}),e.jsx(j,{value:"CRITICAL",children:"CRITICAL"})]})]}),e.jsxs(M,{value:v,onValueChange:L,children:[e.jsxs(V,{className:"w-full sm:flex-1 h-8 text-xs",children:[e.jsx(O,{className:"h-3.5 w-3.5 mr-1.5"}),e.jsx(W,{placeholder:"模块"})]}),e.jsxs(q,{children:[e.jsx(j,{value:"all",children:"全部模块"}),oe.map(t=>e.jsx(j,{value:t,children:t},t))]})]})]}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:gap-2",children:[e.jsxs(X,{children:[e.jsx(Y,{asChild:!0,children:e.jsxs(x,{variant:"outline",size:"sm",className:s("w-full sm:flex-1 justify-start text-left font-normal h-8",!a&&"text-muted-foreground"),children:[e.jsx(J,{className:"mr-1.5 h-3.5 w-3.5"}),e.jsx("span",{className:"text-xs",children:a?T(a,"PP",{locale:z}):"开始日期"})]})}),e.jsx(K,{className:"w-auto p-0",align:"start",children:e.jsx(Z,{mode:"single",selected:a,onSelect:c,initialFocus:!0,locale:z})})]}),e.jsxs(X,{children:[e.jsx(Y,{asChild:!0,children:e.jsxs(x,{variant:"outline",size:"sm",className:s("w-full sm:flex-1 justify-start text-left font-normal h-8",!o&&"text-muted-foreground"),children:[e.jsx(J,{className:"mr-1.5 h-3.5 w-3.5"}),e.jsx("span",{className:"text-xs",children:o?T(o,"PP",{locale:z}):"结束日期"})]})}),e.jsx(K,{className:"w-auto p-0",align:"start",children:e.jsx(Z,{mode:"single",selected:o,onSelect:p,initialFocus:!0,locale:z})})]}),(a||o)&&e.jsxs(x,{variant:"outline",size:"sm",onClick:me,className:"w-full sm:w-auto h-8",children:[e.jsx(ze,{className:"h-3.5 w-3.5 sm:mr-1"}),e.jsx("span",{className:"text-xs",children:"清除"})]})]}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3 pt-2 border-t border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[e.jsx(_e,{className:"h-3.5 w-3.5"}),e.jsx("span",{children:"字号"})]}),e.jsx("div",{className:"flex gap-1",children:Object.keys(_).map(t=>e.jsx(x,{variant:D===t?"default":"outline",size:"sm",onClick:()=>le(t),className:"h-6 px-2 text-xs",children:_[t].label},t))})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-1 max-w-[200px]",children:[e.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:"行距"}),e.jsx(be,{value:[y],onValueChange:([t])=>re(t),min:0,max:12,step:2,className:"flex-1"}),e.jsxs("span",{className:"text-xs text-muted-foreground w-7",children:[y,"px"]})]}),e.jsxs("div",{className:"flex gap-2 sm:hidden",children:[e.jsxs(x,{variant:"outline",size:"sm",onClick:de,className:"flex-1 h-8",children:[e.jsx(Le,{className:"h-3.5 w-3.5 mr-1"}),e.jsx("span",{className:"text-xs",children:"刷新"})]}),e.jsxs(x,{variant:"outline",size:"sm",onClick:G,className:"flex-1 h-8",children:[e.jsx(Q,{className:"h-3.5 w-3.5 mr-1"}),e.jsx("span",{className:"text-xs",children:"导出"})]})]})]})]})]})})})]}),e.jsx("div",{className:"flex-1 min-h-0 px-2 sm:px-3 lg:px-4 pb-2 sm:pb-3 lg:pb-4",children:e.jsx($,{className:"bg-black dark:bg-gray-950 border-gray-800 dark:border-gray-900 h-full overflow-hidden",children:e.jsx("div",{ref:F,className:s("h-full overflow-auto","[&::-webkit-scrollbar]:w-2.5","[&::-webkit-scrollbar-track]:bg-transparent","[&::-webkit-scrollbar-thumb]:bg-border [&::-webkit-scrollbar-thumb]:rounded-full","[&::-webkit-scrollbar-thumb:hover]:bg-border/80"),children:e.jsx("div",{className:s("p-2 sm:p-3 font-mono relative",_[D].class),style:{height:`${k.getTotalSize()}px`},children:i.length===0?e.jsx("div",{className:"text-gray-500 dark:text-gray-600 text-center py-8 text-xs sm:text-sm",children:"暂无日志数据"}):k.getVirtualItems().map(t=>{const l=i[t.index];return e.jsxs("div",{"data-index":t.index,ref:k.measureElement,className:s("absolute top-0 left-0 w-full px-2 sm:px-3 rounded hover:bg-white/5 transition-colors",ce(l.level)),style:{transform:`translateY(${t.start}px)`,paddingTop:`${y/2}px`,paddingBottom:`${y/2}px`},children:[e.jsxs("div",{className:"flex flex-col gap-0.5 sm:hidden",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-gray-500 dark:text-gray-600 text-[10px]",children:l.timestamp}),e.jsxs("span",{className:s("font-semibold text-[10px]",P(l.level)),children:["[",l.level,"]"]})]}),e.jsx("div",{className:"text-cyan-400 dark:text-cyan-500 truncate text-[10px]",children:l.module}),e.jsx("div",{className:"text-gray-300 dark:text-gray-400 whitespace-pre-wrap break-words text-[10px]",children:l.message})]}),e.jsxs("div",{className:"hidden sm:flex gap-2 items-start",children:[e.jsx("span",{className:"text-gray-500 dark:text-gray-600 flex-shrink-0 w-[130px] lg:w-[160px]",children:l.timestamp}),e.jsxs("span",{className:s("flex-shrink-0 w-[65px] lg:w-[75px] font-semibold",P(l.level)),children:["[",l.level,"]"]}),e.jsx("span",{className:"text-cyan-400 dark:text-cyan-500 flex-shrink-0 w-[100px] lg:w-[130px] truncate",children:l.module}),e.jsx("span",{className:"text-gray-300 dark:text-gray-400 flex-1 whitespace-pre-wrap break-words",children:l.message})]})]},t.key)})})})})})]})}export{$e as LogViewerPage}; diff --git a/dashboard/dist/assets/maibot-feedback-BNwa_tM0.js b/dashboard/dist/assets/maibot-feedback-BNwa_tM0.js new file mode 100644 index 00000000..970ba13c --- /dev/null +++ b/dashboard/dist/assets/maibot-feedback-BNwa_tM0.js @@ -0,0 +1 @@ +import{r as t,j as e}from"./router-zNjPR4CY.js";import{X as f,Y as x,B as v}from"./index-CuOHsLf7.js";import{S as h}from"./survey-renderer-DVA7Y8cR.js";import"./textarea-8PIujbf-.js";import"./radio-group-BBkaGEpR.js";import"./checkbox-DWiVrbnx.js";import"./slider-mDhSC-zv.js";import"./select-DGqIoF9r.js";import"./progress-C6-hh8fF.js";import{a as b}from"./system-api-DeeJapvB.js";import{L as g,W as y,b8 as S}from"./icons-DTcdLw9j.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";const j={id:"maibot-feedback-v1",version:"1.0.0",title:"麦麦使用体验反馈问卷",description:"感谢您使用麦麦!您的反馈将帮助我们打造更好的 AI 伙伴。",questions:[{id:"maibot_version",type:"text",title:"你正在使用的麦麦版本",description:"此项由系统自动填写",required:!0,readOnly:!0,placeholder:"自动检测中..."},{id:"improvement_areas",type:"textarea",title:"你认为麦麦还有哪些部分可以改进?",required:!0,placeholder:"请分享你认为可以改进的方面...",maxLength:1e3},{id:"problems_encountered",type:"multiple",title:"你在使用麦麦时遇到过哪些问题?",description:"可多选",required:!0,options:[{id:"incomplete",label:"功能不完整",value:"incomplete"},{id:"slow_response",label:"响应速度慢",value:"slow_response"},{id:"complex",label:"操作复杂",value:"complex"},{id:"unstable",label:"运行不稳定",value:"unstable"},{id:"config_difficult",label:"配置困难",value:"config_difficult"},{id:"none",label:"没有遇到问题",value:"none"},{id:"other",label:"其他",value:"other"}]},{id:"problems_other",type:"text",title:'如选择"其他",请说明遇到的问题',required:!1,placeholder:"请描述你遇到的其他问题...",maxLength:500},{id:"helpful_features",type:"textarea",title:"你觉得麦麦的哪些功能对你最有帮助?",required:!0,placeholder:"请分享对你最有帮助的功能...",maxLength:1e3},{id:"feature_requests",type:"textarea",title:"你希望在未来的版本中增加哪些功能?",required:!0,placeholder:"请告诉我们你期望的新功能...",maxLength:1e3},{id:"overall_satisfaction",type:"single",title:"你对麦麦的整体满意度如何?",required:!0,options:[{id:"very_satisfied",label:"非常满意",value:"very_satisfied"},{id:"satisfied",label:"满意",value:"satisfied"},{id:"neutral",label:"一般",value:"neutral"},{id:"dissatisfied",label:"不满意",value:"dissatisfied"},{id:"very_dissatisfied",label:"非常不满意",value:"very_dissatisfied"}]},{id:"would_recommend",type:"single",title:"你愿意推荐麦麦给其他人使用吗?",required:!0,options:[{id:"yes",label:"是",value:"yes"},{id:"no",label:"否",value:"no"}]},{id:"other_suggestions",type:"textarea",title:"其他建议或意见",description:"此项为选填",required:!1,placeholder:"如果你有任何其他想法或建议,请在此分享...",maxLength:2e3}],settings:{allowMultiple:!1,thankYouMessage:"感谢你的反馈!你的意见对麦麦的成长非常重要,我们会认真考虑每一条建议。"}};function J(){const[r,o]=t.useState(null),[n,d]=t.useState(!0),[a,l]=t.useState("未知版本");t.useEffect(()=>{(async()=>{try{const s=await b();l(s.version||"未知版本")}catch(s){console.error("Failed to get MaiBot version:",s),l("获取失败")}const p=JSON.parse(JSON.stringify(j));o(p),d(!1)})()},[]);const u=t.useMemo(()=>[{questionId:"maibot_version",value:a}],[a]),c=t.useCallback(i=>{console.log("MaiBot Survey submitted:",i)},[]),m=t.useCallback(i=>{console.error("MaiBot Survey submission error:",i)},[]);return n?e.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:e.jsx(g,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):r?e.jsxs("div",{className:"h-[calc(100vh-4rem)] flex flex-col p-4 sm:p-6",children:[e.jsxs("div",{className:"mb-4 sm:mb-6 shrink-0",children:[e.jsxs("h1",{className:"text-2xl sm:text-3xl font-bold flex items-center gap-2",children:[e.jsx(S,{className:"h-8 w-8",strokeWidth:2}),"麦麦使用体验反馈问卷"]}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm sm:text-base",children:"感谢您的反馈,帮助我们打造更好的 AI 伙伴"})]}),e.jsx("div",{className:"flex-1 min-h-0",children:e.jsx(h,{config:r,initialAnswers:u,showProgress:!0,paginateQuestions:!1,onSubmitSuccess:c,onSubmitError:m})})]}):e.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:[e.jsxs(f,{variant:"destructive",className:"max-w-md",children:[e.jsx(y,{className:"h-4 w-4"}),e.jsx(x,{children:"无法加载问卷配置"})]}),e.jsx(v,{variant:"outline",onClick:()=>window.location.reload(),children:"重试"})]})}export{J as MaiBotFeedbackSurveyPage,J as default}; diff --git a/dashboard/dist/assets/markdown-6e5N06bH.js b/dashboard/dist/assets/markdown-6e5N06bH.js new file mode 100644 index 00000000..3f310273 --- /dev/null +++ b/dashboard/dist/assets/markdown-6e5N06bH.js @@ -0,0 +1,299 @@ +import{g as Za,j as Dn}from"./router-zNjPR4CY.js";function yi(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const l=r.slice(i,n).trim();(l||!a)&&t.push(l),i=n+1,n=r.indexOf(",",i)}return t}function oo(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const uo=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,co=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ho={};function bi(e,t){return(ho.jsx?co:uo).test(e)}const mo=/[ \t\n\f\r]/g;function fo(e){return typeof e=="object"?e.type==="text"?xi(e.value):!1:xi(e)}function xi(e){return e.replace(mo,"")===""}class Tr{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Tr.prototype.normal={};Tr.prototype.property={};Tr.prototype.space=void 0;function Qa(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Tr(r,n,t)}function xr(e){return e.toLowerCase()}class He{constructor(t,r){this.attribute=r,this.property=t}}He.prototype.attribute="";He.prototype.booleanish=!1;He.prototype.boolean=!1;He.prototype.commaOrSpaceSeparated=!1;He.prototype.commaSeparated=!1;He.prototype.defined=!1;He.prototype.mustUseProperty=!1;He.prototype.number=!1;He.prototype.overloadedBoolean=!1;He.prototype.property="";He.prototype.spaceSeparated=!1;He.prototype.space=void 0;let po=0;const te=qt(),we=qt(),h0=qt(),N=qt(),pe=qt(),Yt=qt(),Ue=qt();function qt(){return 2**++po}const m0=Object.freeze(Object.defineProperty({__proto__:null,boolean:te,booleanish:we,commaOrSpaceSeparated:Ue,commaSeparated:Yt,number:N,overloadedBoolean:h0,spaceSeparated:pe},Symbol.toStringTag,{value:"Module"})),In=Object.keys(m0);class P0 extends He{constructor(t,r,n,i){let a=-1;if(super(t,r),wi(this,"space",i),typeof n=="number")for(;++a4&&r.slice(0,4)==="data"&&xo.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(ki,ko);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!ki.test(a)){let l=a.replace(bo,wo);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=P0}return new i(n,t)}function wo(e){return"-"+e.toLowerCase()}function ko(e){return e.charAt(1).toUpperCase()}const ll=Qa([Ja,go,rl,nl,il],"html"),cn=Qa([Ja,vo,rl,nl,il],"svg");function Si(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function So(e){return e.join(" ").trim()}var Gt={},Bn,Ai;function Ao(){if(Ai)return Bn;Ai=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,o=` +`,u="/",h="*",m="",d="comment",p="declaration";function y(C,A){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];A=A||{};var z=1,D=1;function O(X){var q=X.match(t);q&&(z+=q.length);var le=X.lastIndexOf(o);D=~le?X.length-le:D+X.length}function V(){var X={line:z,column:D};return function(q){return q.position=new M(X),$(),q}}function M(X){this.start=X,this.end={line:z,column:D},this.source=A.source}M.prototype.content=C;function G(X){var q=new Error(A.source+":"+z+":"+D+": "+X);if(q.reason=X,q.filename=A.source,q.line=z,q.column=D,q.source=C,!A.silent)throw q}function K(X){var q=X.exec(C);if(q){var le=q[0];return O(le),C=C.slice(le.length),q}}function $(){K(r)}function E(X){var q;for(X=X||[];q=U();)q!==!1&&X.push(q);return X}function U(){var X=V();if(!(u!=C.charAt(0)||h!=C.charAt(1))){for(var q=2;m!=C.charAt(q)&&(h!=C.charAt(q)||u!=C.charAt(q+1));)++q;if(q+=2,m===C.charAt(q-1))return G("End of comment missing");var le=C.slice(2,q-2);return D+=2,O(le),C=C.slice(q),D+=2,X({type:d,comment:le})}}function j(){var X=V(),q=K(n);if(q){if(U(),!K(i))return G("property missing ':'");var le=K(a),fe=X({type:p,property:w(q[0].replace(e,m)),value:le?w(le[0].replace(e,m)):m});return K(l),fe}}function ae(){var X=[];E(X);for(var q;q=j();)q!==!1&&(X.push(q),E(X));return X}return $(),ae()}function w(C){return C?C.replace(s,m):m}return Bn=y,Bn}var Ti;function To(){if(Ti)return Gt;Ti=1;var e=Gt&&Gt.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.default=r;const t=e(Ao());function r(n,i){let a=null;if(!n||typeof n!="string")return a;const l=(0,t.default)(n),s=typeof i=="function";return l.forEach(o=>{if(o.type!=="declaration")return;const{property:u,value:h}=o;s?i(u,h,o):h&&(a=a||{},a[u]=h)}),a}return Gt}var hr={},zi;function zo(){if(zi)return hr;zi=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(u){return!u||r.test(u)||e.test(u)},l=function(u,h){return h.toUpperCase()},s=function(u,h){return"".concat(h,"-")},o=function(u,h){return h===void 0&&(h={}),a(u)?u:(u=u.toLowerCase(),h.reactCompat?u=u.replace(i,s):u=u.replace(n,s),u.replace(t,l))};return hr.camelCase=o,hr}var mr,Ci;function Co(){if(Ci)return mr;Ci=1;var e=mr&&mr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(To()),r=zo();function n(i,a){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(s,o){s&&o&&(l[(0,r.camelCase)(s,a)]=o)}),l}return n.default=n,mr=n,mr}var Mo=Co();const Eo=Za(Mo),sl=ol("end"),O0=ol("start");function ol(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Do(e){const t=O0(e),r=sl(e);if(t&&r)return{start:t,end:r}}function gr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Mi(e.position):"start"in e||"end"in e?Mi(e):"line"in e||"column"in e?f0(e):""}function f0(e){return Ei(e&&e.line)+":"+Ei(e&&e.column)}function Mi(e){return f0(e&&e.start)+"-"+f0(e&&e.end)}function Ei(e){return e&&typeof e=="number"?e:1}class Ie extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},l=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(l=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const o=n.indexOf(":");o===-1?a.ruleId=n:(a.source=n.slice(0,o),a.ruleId=n.slice(o+1))}if(!a.place&&a.ancestors&&a.ancestors){const o=a.ancestors[a.ancestors.length-1];o&&(a.place=o.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=gr(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=l&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ie.prototype.file="";Ie.prototype.name="";Ie.prototype.reason="";Ie.prototype.message="";Ie.prototype.stack="";Ie.prototype.column=void 0;Ie.prototype.line=void 0;Ie.prototype.ancestors=void 0;Ie.prototype.cause=void 0;Ie.prototype.fatal=void 0;Ie.prototype.place=void 0;Ie.prototype.ruleId=void 0;Ie.prototype.source=void 0;const q0={}.hasOwnProperty,Io=new Map,Bo=/[A-Z]/g,Fo=new Set(["table","tbody","thead","tfoot","tr"]),Ro=new Set(["td","th"]),ul="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function No(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=$o(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=Vo(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?cn:ll,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=cl(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function cl(e,t,r){if(t.type==="element")return Lo(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Po(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return qo(e,t,r);if(t.type==="mdxjsEsm")return Oo(e,t);if(t.type==="root")return Ho(e,t,r);if(t.type==="text")return jo(e,t)}function Lo(e,t,r){const n=e.schema;let i=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=cn,e.schema=i),e.ancestors.push(t);const a=ml(e,t.tagName,!1),l=Uo(e,t);let s=j0(e,t);return Fo.has(t.tagName)&&(s=s.filter(function(o){return typeof o=="string"?!fo(o):!0})),hl(e,l,a,t),H0(l,s),e.ancestors.pop(),e.schema=n,e.create(t,a,l,r)}function Po(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}wr(e,t.position)}function Oo(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);wr(e,t.position)}function qo(e,t,r){const n=e.schema;let i=n;t.name==="svg"&&n.space==="html"&&(i=cn,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:ml(e,t.name,!0),l=Go(e,t),s=j0(e,t);return hl(e,l,a,t),H0(l,s),e.ancestors.pop(),e.schema=n,e.create(t,a,l,r)}function Ho(e,t,r){const n={};return H0(n,j0(e,t)),e.create(t,e.Fragment,n,r)}function jo(e,t){return t.value}function hl(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function H0(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Vo(e,t,r){return n;function n(i,a,l,s){const u=Array.isArray(l.children)?r:t;return s?u(a,l,s):u(a,l)}}function $o(e,t){return r;function r(n,i,a,l){const s=Array.isArray(a.children),o=O0(n);return t(i,a,l,s,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}function Uo(e,t){const r={};let n,i;for(i in t.properties)if(i!=="children"&&q0.call(t.properties,i)){const a=_o(e,i,t.properties[i]);if(a){const[l,s]=a;e.tableCellAlignToStyle&&l==="align"&&typeof s=="string"&&Ro.has(t.tagName)?n=s:r[l]=s}}if(n){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function Go(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];a.type;const l=a.expression;l.type;const s=l.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else wr(e,t.position);else{const i=n.name;let a;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const s=n.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else wr(e,t.position);else a=n.value===null?!0:n.value;r[i]=a}return r}function j0(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Io;for(;++ni?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)l=Array.from(n),l.unshift(t,r),e.splice(...l);else for(r&&e.splice(t,r);a0?(Ge(e,e.length,0,t),e):t}const Bi={}.hasOwnProperty;function pl(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function rt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ne=Dt(/[A-Za-z]/),Ee=Dt(/[\dA-Za-z]/),tu=Dt(/[#-'*+\--9=?A-Z^-~]/);function en(e){return e!==null&&(e<32||e===127)}const p0=Dt(/\d/),ru=Dt(/[\dA-Fa-f]/),nu=Dt(/[!-/:-@[-`{-~]/);function Y(e){return e!==null&&e<-2}function he(e){return e!==null&&(e<0||e===32)}function se(e){return e===-2||e===-1||e===32}const hn=Dt(new RegExp("\\p{P}|\\p{S}","u")),Ot=Dt(/\s/);function Dt(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function rr(e){const t=[];let r=-1,n=0,i=0;for(;++r55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(l=String.fromCharCode(a,s),i=1):l="�"}else l=String.fromCharCode(a);l&&(t.push(e.slice(n,r),encodeURIComponent(l)),n=r+i+1,l=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function ie(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return l;function l(o){return se(o)?(e.enter(r),s(o)):t(o)}function s(o){return se(o)&&a++l))return;const G=t.events.length;let K=G,$,E;for(;K--;)if(t.events[K][0]==="exit"&&t.events[K][1].type==="chunkFlow"){if($){E=t.events[K][1].end;break}$=!0}for(A(n),M=G;MD;){const V=r[O];t.containerState=V[1],V[0].exit.call(t,e)}r.length=D}function z(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function ou(e,t,r){return ie(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Zt(e){if(e===null||he(e)||Ot(e))return 1;if(hn(e))return 2}function mn(e,t,r){const n=[];let i=-1;for(;++i1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const m={...e[n][1].end},d={...e[r][1].start};Ri(m,-o),Ri(d,o),l={type:o>1?"strongSequence":"emphasisSequence",start:m,end:{...e[n][1].end}},s={type:o>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:d},a={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:o>1?"strong":"emphasis",start:{...l.start},end:{...s.end}},e[n][1].end={...l.start},e[r][1].start={...s.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=Ze(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=Ze(u,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",a,t]]),u=Ze(u,mn(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=Ze(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(h=2,u=Ze(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):h=0,Ge(e,n-1,r-n+3,u),r=n+u.length-h-2;break}}for(r=-1;++r0&&se(M)?ie(e,z,"linePrefix",a+1)(M):z(M)}function z(M){return M===null||Y(M)?e.check(Ni,w,O)(M):(e.enter("codeFlowValue"),D(M))}function D(M){return M===null||Y(M)?(e.exit("codeFlowValue"),z(M)):(e.consume(M),D)}function O(M){return e.exit("codeFenced"),t(M)}function V(M,G,K){let $=0;return E;function E(q){return M.enter("lineEnding"),M.consume(q),M.exit("lineEnding"),U}function U(q){return M.enter("codeFencedFence"),se(q)?ie(M,j,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):j(q)}function j(q){return q===s?(M.enter("codeFencedFenceSequence"),ae(q)):K(q)}function ae(q){return q===s?($++,M.consume(q),ae):$>=l?(M.exit("codeFencedFenceSequence"),se(q)?ie(M,X,"whitespace")(q):X(q)):K(q)}function X(q){return q===null||Y(q)?(M.exit("codeFencedFence"),G(q)):K(q)}}}function xu(e,t,r){const n=this;return i;function i(l){return l===null?r(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a)}function a(l){return n.parser.lazy[n.now().line]?r(l):t(l)}}const Rn={name:"codeIndented",tokenize:ku},wu={partial:!0,tokenize:Su};function ku(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),ie(e,a,"linePrefix",5)(u)}function a(u){const h=n.events[n.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?l(u):r(u)}function l(u){return u===null?o(u):Y(u)?e.attempt(wu,l,o)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Y(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),s)}function o(u){return e.exit("codeIndented"),t(u)}}function Su(e,t,r){const n=this;return i;function i(l){return n.parser.lazy[n.now().line]?r(l):Y(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):ie(e,a,"linePrefix",5)(l)}function a(l){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):Y(l)?i(l):r(l)}}const Au={name:"codeText",previous:zu,resolve:Tu,tokenize:Cu};function Tu(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const i=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&fr(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),fr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),fr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(l):e.interrupt(n.parser.constructs.flow,r,t)(l)}}function xl(e,t,r,n,i,a,l,s,o){const u=o||Number.POSITIVE_INFINITY;let h=0;return m;function m(A){return A===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(A),e.exit(a),d):A===null||A===32||A===41||en(A)?r(A):(e.enter(n),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),w(A))}function d(A){return A===62?(e.enter(a),e.consume(A),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(A))}function p(A){return A===62?(e.exit("chunkString"),e.exit(s),d(A)):A===null||A===60||Y(A)?r(A):(e.consume(A),A===92?y:p)}function y(A){return A===60||A===62||A===92?(e.consume(A),p):p(A)}function w(A){return!h&&(A===null||A===41||he(A))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(n),t(A)):h999||p===null||p===91||p===93&&!o||p===94&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?r(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(n),t):Y(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),m(p))}function m(p){return p===null||p===91||p===93||Y(p)||s++>999?(e.exit("chunkString"),h(p)):(e.consume(p),o||(o=!se(p)),p===92?d:m)}function d(p){return p===91||p===92||p===93?(e.consume(p),s++,m):m(p)}}function kl(e,t,r,n,i,a){let l;return s;function s(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),l=d===40?41:d,o):r(d)}function o(d){return d===l?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),u(d))}function u(d){return d===l?(e.exit(a),o(l)):d===null?r(d):Y(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ie(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(d))}function h(d){return d===l||d===null||Y(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?m:h)}function m(d){return d===l||d===92?(e.consume(d),h):h(d)}}function vr(e,t){let r;return n;function n(i){return Y(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):se(i)?ie(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const Nu={name:"definition",tokenize:Pu},Lu={partial:!0,tokenize:Ou};function Pu(e,t,r){const n=this;let i;return a;function a(p){return e.enter("definition"),l(p)}function l(p){return wl.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=rt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),o):r(p)}function o(p){return he(p)?vr(e,u)(p):u(p)}function u(p){return xl(e,h,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function h(p){return e.attempt(Lu,m,m)(p)}function m(p){return se(p)?ie(e,d,"whitespace")(p):d(p)}function d(p){return p===null||Y(p)?(e.exit("definition"),n.parser.defined.push(i),t(p)):r(p)}}function Ou(e,t,r){return n;function n(s){return he(s)?vr(e,i)(s):r(s)}function i(s){return kl(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return se(s)?ie(e,l,"whitespace")(s):l(s)}function l(s){return s===null||Y(s)?t(s):r(s)}}const qu={name:"hardBreakEscape",tokenize:Hu};function Hu(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Y(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const ju={name:"headingAtx",resolve:Vu,tokenize:$u};function Vu(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Ge(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function $u(e,t,r){let n=0;return i;function i(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),l(h)}function l(h){return h===35&&n++<6?(e.consume(h),l):h===null||he(h)?(e.exit("atxHeadingSequence"),s(h)):r(h)}function s(h){return h===35?(e.enter("atxHeadingSequence"),o(h)):h===null||Y(h)?(e.exit("atxHeading"),t(h)):se(h)?ie(e,s,"whitespace")(h):(e.enter("atxHeadingText"),u(h))}function o(h){return h===35?(e.consume(h),o):(e.exit("atxHeadingSequence"),s(h))}function u(h){return h===null||h===35||he(h)?(e.exit("atxHeadingText"),s(h)):(e.consume(h),u)}}const Uu=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Pi=["pre","script","style","textarea"],Gu={concrete:!0,name:"htmlFlow",resolveTo:Xu,tokenize:Yu},_u={partial:!0,tokenize:Zu},Wu={partial:!0,tokenize:Ku};function Xu(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Yu(e,t,r){const n=this;let i,a,l,s,o;return u;function u(S){return h(S)}function h(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),m}function m(S){return S===33?(e.consume(S),d):S===47?(e.consume(S),a=!0,w):S===63?(e.consume(S),i=3,n.interrupt?t:k):Ne(S)?(e.consume(S),l=String.fromCharCode(S),C):r(S)}function d(S){return S===45?(e.consume(S),i=2,p):S===91?(e.consume(S),i=5,s=0,y):Ne(S)?(e.consume(S),i=4,n.interrupt?t:k):r(S)}function p(S){return S===45?(e.consume(S),n.interrupt?t:k):r(S)}function y(S){const Me="CDATA[";return S===Me.charCodeAt(s++)?(e.consume(S),s===Me.length?n.interrupt?t:j:y):r(S)}function w(S){return Ne(S)?(e.consume(S),l=String.fromCharCode(S),C):r(S)}function C(S){if(S===null||S===47||S===62||he(S)){const Me=S===47,nt=l.toLowerCase();return!Me&&!a&&Pi.includes(nt)?(i=1,n.interrupt?t(S):j(S)):Uu.includes(l.toLowerCase())?(i=6,Me?(e.consume(S),A):n.interrupt?t(S):j(S)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(S):a?z(S):D(S))}return S===45||Ee(S)?(e.consume(S),l+=String.fromCharCode(S),C):r(S)}function A(S){return S===62?(e.consume(S),n.interrupt?t:j):r(S)}function z(S){return se(S)?(e.consume(S),z):E(S)}function D(S){return S===47?(e.consume(S),E):S===58||S===95||Ne(S)?(e.consume(S),O):se(S)?(e.consume(S),D):E(S)}function O(S){return S===45||S===46||S===58||S===95||Ee(S)?(e.consume(S),O):V(S)}function V(S){return S===61?(e.consume(S),M):se(S)?(e.consume(S),V):D(S)}function M(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(e.consume(S),o=S,G):se(S)?(e.consume(S),M):K(S)}function G(S){return S===o?(e.consume(S),o=null,$):S===null||Y(S)?r(S):(e.consume(S),G)}function K(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||he(S)?V(S):(e.consume(S),K)}function $(S){return S===47||S===62||se(S)?D(S):r(S)}function E(S){return S===62?(e.consume(S),U):r(S)}function U(S){return S===null||Y(S)?j(S):se(S)?(e.consume(S),U):r(S)}function j(S){return S===45&&i===2?(e.consume(S),le):S===60&&i===1?(e.consume(S),fe):S===62&&i===4?(e.consume(S),xe):S===63&&i===3?(e.consume(S),k):S===93&&i===5?(e.consume(S),je):Y(S)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(_u,Be,ae)(S)):S===null||Y(S)?(e.exit("htmlFlowData"),ae(S)):(e.consume(S),j)}function ae(S){return e.check(Wu,X,Be)(S)}function X(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),q}function q(S){return S===null||Y(S)?ae(S):(e.enter("htmlFlowData"),j(S))}function le(S){return S===45?(e.consume(S),k):j(S)}function fe(S){return S===47?(e.consume(S),l="",Ce):j(S)}function Ce(S){if(S===62){const Me=l.toLowerCase();return Pi.includes(Me)?(e.consume(S),xe):j(S)}return Ne(S)&&l.length<8?(e.consume(S),l+=String.fromCharCode(S),Ce):j(S)}function je(S){return S===93?(e.consume(S),k):j(S)}function k(S){return S===62?(e.consume(S),xe):S===45&&i===2?(e.consume(S),k):j(S)}function xe(S){return S===null||Y(S)?(e.exit("htmlFlowData"),Be(S)):(e.consume(S),xe)}function Be(S){return e.exit("htmlFlow"),t(S)}}function Ku(e,t,r){const n=this;return i;function i(l){return Y(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):r(l)}function a(l){return n.parser.lazy[n.now().line]?r(l):t(l)}}function Zu(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(zr,t,r)}}const Qu={name:"htmlText",tokenize:Ju};function Ju(e,t,r){const n=this;let i,a,l;return s;function s(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),o}function o(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),V):k===63?(e.consume(k),D):Ne(k)?(e.consume(k),K):r(k)}function u(k){return k===45?(e.consume(k),h):k===91?(e.consume(k),a=0,y):Ne(k)?(e.consume(k),z):r(k)}function h(k){return k===45?(e.consume(k),p):r(k)}function m(k){return k===null?r(k):k===45?(e.consume(k),d):Y(k)?(l=m,fe(k)):(e.consume(k),m)}function d(k){return k===45?(e.consume(k),p):m(k)}function p(k){return k===62?le(k):k===45?d(k):m(k)}function y(k){const xe="CDATA[";return k===xe.charCodeAt(a++)?(e.consume(k),a===xe.length?w:y):r(k)}function w(k){return k===null?r(k):k===93?(e.consume(k),C):Y(k)?(l=w,fe(k)):(e.consume(k),w)}function C(k){return k===93?(e.consume(k),A):w(k)}function A(k){return k===62?le(k):k===93?(e.consume(k),A):w(k)}function z(k){return k===null||k===62?le(k):Y(k)?(l=z,fe(k)):(e.consume(k),z)}function D(k){return k===null?r(k):k===63?(e.consume(k),O):Y(k)?(l=D,fe(k)):(e.consume(k),D)}function O(k){return k===62?le(k):D(k)}function V(k){return Ne(k)?(e.consume(k),M):r(k)}function M(k){return k===45||Ee(k)?(e.consume(k),M):G(k)}function G(k){return Y(k)?(l=G,fe(k)):se(k)?(e.consume(k),G):le(k)}function K(k){return k===45||Ee(k)?(e.consume(k),K):k===47||k===62||he(k)?$(k):r(k)}function $(k){return k===47?(e.consume(k),le):k===58||k===95||Ne(k)?(e.consume(k),E):Y(k)?(l=$,fe(k)):se(k)?(e.consume(k),$):le(k)}function E(k){return k===45||k===46||k===58||k===95||Ee(k)?(e.consume(k),E):U(k)}function U(k){return k===61?(e.consume(k),j):Y(k)?(l=U,fe(k)):se(k)?(e.consume(k),U):$(k)}function j(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),i=k,ae):Y(k)?(l=j,fe(k)):se(k)?(e.consume(k),j):(e.consume(k),X)}function ae(k){return k===i?(e.consume(k),i=void 0,q):k===null?r(k):Y(k)?(l=ae,fe(k)):(e.consume(k),ae)}function X(k){return k===null||k===34||k===39||k===60||k===61||k===96?r(k):k===47||k===62||he(k)?$(k):(e.consume(k),X)}function q(k){return k===47||k===62||he(k)?$(k):r(k)}function le(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):r(k)}function fe(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),Ce}function Ce(k){return se(k)?ie(e,je,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):je(k)}function je(k){return e.enter("htmlTextData"),l(k)}}const U0={name:"labelEnd",resolveAll:n1,resolveTo:i1,tokenize:a1},e1={tokenize:l1},t1={tokenize:s1},r1={tokenize:o1};function n1(e){let t=-1;const r=[];for(;++t=3&&(u===null||Y(u))?(e.exit("thematicBreak"),t(u)):r(u)}function o(u){return u===i?(e.consume(u),n++,o):(e.exit("thematicBreakSequence"),se(u)?ie(e,s,"whitespace")(u):s(u))}}const Oe={continuation:{tokenize:y1},exit:x1,name:"list",tokenize:v1},d1={partial:!0,tokenize:w1},g1={partial:!0,tokenize:b1};function v1(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return s;function s(p){const y=n.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!n.containerState.marker||p===n.containerState.marker:p0(p)){if(n.containerState.type||(n.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Zr,r,u)(p):u(p);if(!n.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(p)}return r(p)}function o(p){return p0(p)&&++l<10?(e.consume(p),o):(!n.interrupt||l<2)&&(n.containerState.marker?p===n.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):r(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||p,e.check(zr,n.interrupt?r:h,e.attempt(d1,d,m))}function h(p){return n.containerState.initialBlankLine=!0,a++,d(p)}function m(p){return se(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):r(p)}function d(p){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function y1(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(zr,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ie(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!se(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,l(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(g1,t,l)(s))}function l(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,ie(e,e.attempt(Oe,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function b1(e,t,r){const n=this;return ie(e,i,"listItemIndent",n.containerState.size+1);function i(a){const l=n.events[n.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===n.containerState.size?t(a):r(a)}}function x1(e){e.exit(this.containerState.type)}function w1(e,t,r){const n=this;return ie(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const l=n.events[n.events.length-1];return!se(a)&&l&&l[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const Oi={name:"setextUnderline",resolveTo:k1,tokenize:S1};function k1(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const l={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",l,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=l,e.push(["exit",l,t]),e}function S1(e,t,r){const n=this;let i;return a;function a(u){let h=n.events.length,m;for(;h--;)if(n.events[h][1].type!=="lineEnding"&&n.events[h][1].type!=="linePrefix"&&n.events[h][1].type!=="content"){m=n.events[h][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||m)?(e.enter("setextHeadingLine"),i=u,l(u)):r(u)}function l(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),se(u)?ie(e,o,"lineSuffix")(u):o(u))}function o(u){return u===null||Y(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const A1={tokenize:T1};function T1(e){const t=this,r=e.attempt(zr,n,e.attempt(this.parser.constructs.flowInitial,i,ie(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Du,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const z1={resolveAll:Al()},C1=Sl("string"),M1=Sl("text");function Sl(e){return{resolveAll:Al(e==="text"?E1:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,l,s);return l;function l(h){return u(h)?a(h):s(h)}function s(h){if(h===null){r.consume(h);return}return r.enter("data"),r.consume(h),o}function o(h){return u(h)?(r.exit("data"),a(h)):(r.consume(h),o)}function u(h){if(h===null)return!0;const m=i[h];let d=-1;if(m)for(;++d-1){const s=l[0];typeof s=="string"?l[0]=s.slice(n):l.shift()}a>0&&l.push(e[i].slice(0,a))}return l}function V1(e,t){let r=-1;const n=[];let i;for(;++r0){const tt=Q.tokenStack[Q.tokenStack.length-1];(tt[1]||Hi).call(Q,void 0,tt[0])}for(H.position={start:kt(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:kt(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},ce=-1;++ce0&&(n.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function rc(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nc(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ic(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=rr(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let l,s=e.footnoteCounts.get(n);s===void 0?(s=0,e.footnoteOrder.push(n),l=e.footnoteOrder.length):l=a+1,s+=1,e.footnoteCounts.set(n,s);const o={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,o);const u={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(t,u),e.applyData(t,u)}function ac(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lc(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Cl(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=n:i.push({type:"text",value:n}),i}function sc(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Cl(e,t);const i={src:rr(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function oc(e,t){const r={src:rr(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function uc(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function cc(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Cl(e,t);const i={href:rr(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function hc(e,t){const r={href:rr(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mc(e,t,r){const n=e.all(t),i=r?fc(r):Ml(t),a={},l=[];if(typeof t.checked=="boolean"){const h=n[0];let m;h&&h.type==="element"&&h.tagName==="p"?m=h:(m={type:"element",tagName:"p",properties:{},children:[]},n.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function pc(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=O0(t.children[1]),o=sl(t.children[t.children.length-1]);s&&o&&(l.position={start:s,end:o}),i.push(l)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function bc(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",l=r&&r.type==="table"?r.align:void 0,s=l?l.length:t.children.length;let o=-1;const u=[];for(;++o0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push($i(t.slice(i),i>0,!1)),a.join("")}function $i(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===ji||a===Vi;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===ji||a===Vi;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function kc(e,t){const r={type:"text",value:wc(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Sc(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Ac={blockquote:J1,break:ec,code:tc,delete:rc,emphasis:nc,footnoteReference:ic,heading:ac,html:lc,imageReference:sc,image:oc,inlineCode:uc,linkReference:cc,link:hc,listItem:mc,list:pc,paragraph:dc,root:gc,strong:vc,table:yc,tableCell:xc,tableRow:bc,text:kc,thematicBreak:Sc,toml:Or,yaml:Or,definition:Or,footnoteDefinition:Or};function Or(){}const El=-1,fn=0,yr=1,tn=2,G0=3,_0=4,W0=5,X0=6,Dl=7,Il=8,Ui=typeof self=="object"?self:globalThis,Tc=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,l]=t[i];switch(a){case fn:case El:return r(l,i);case yr:{const s=r([],i);for(const o of l)s.push(n(o));return s}case tn:{const s=r({},i);for(const[o,u]of l)s[n(o)]=n(u);return s}case G0:return r(new Date(l),i);case _0:{const{source:s,flags:o}=l;return r(new RegExp(s,o),i)}case W0:{const s=r(new Map,i);for(const[o,u]of l)s.set(n(o),n(u));return s}case X0:{const s=r(new Set,i);for(const o of l)s.add(n(o));return s}case Dl:{const{name:s,message:o}=l;return r(new Ui[s](o),i)}case Il:return r(BigInt(l),i);case"BigInt":return r(Object(BigInt(l)),i);case"ArrayBuffer":return r(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:s}=new Uint8Array(l);return r(new DataView(s),l)}}return r(new Ui[a](l),i)};return n},Gi=e=>Tc(new Map,e)(0),_t="",{toString:zc}={},{keys:Cc}=Object,pr=e=>{const t=typeof e;if(t!=="object"||!e)return[fn,t];const r=zc.call(e).slice(8,-1);switch(r){case"Array":return[yr,_t];case"Object":return[tn,_t];case"Date":return[G0,_t];case"RegExp":return[_0,_t];case"Map":return[W0,_t];case"Set":return[X0,_t];case"DataView":return[yr,r]}return r.includes("Array")?[yr,r]:r.includes("Error")?[Dl,r]:[tn,r]},qr=([e,t])=>e===fn&&(t==="function"||t==="symbol"),Mc=(e,t,r,n)=>{const i=(l,s)=>{const o=n.push(l)-1;return r.set(s,o),o},a=l=>{if(r.has(l))return r.get(l);let[s,o]=pr(l);switch(s){case fn:{let h=l;switch(o){case"bigint":s=Il,h=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);h=null;break;case"undefined":return i([El],l)}return i([s,h],l)}case yr:{if(o){let d=l;return o==="DataView"?d=new Uint8Array(l.buffer):o==="ArrayBuffer"&&(d=new Uint8Array(l)),i([o,[...d]],l)}const h=[],m=i([s,h],l);for(const d of l)h.push(a(d));return m}case tn:{if(o)switch(o){case"BigInt":return i([o,l.toString()],l);case"Boolean":case"Number":case"String":return i([o,l.valueOf()],l)}if(t&&"toJSON"in l)return a(l.toJSON());const h=[],m=i([s,h],l);for(const d of Cc(l))(e||!qr(pr(l[d])))&&h.push([a(d),a(l[d])]);return m}case G0:return i([s,l.toISOString()],l);case _0:{const{source:h,flags:m}=l;return i([s,{source:h,flags:m}],l)}case W0:{const h=[],m=i([s,h],l);for(const[d,p]of l)(e||!(qr(pr(d))||qr(pr(p))))&&h.push([a(d),a(p)]);return m}case X0:{const h=[],m=i([s,h],l);for(const d of l)(e||!qr(pr(d)))&&h.push(a(d));return m}}const{message:u}=l;return i([s,{name:o,message:u}],l)};return a},_i=(e,{json:t,lossy:r}={})=>{const n=[];return Mc(!(t||r),!!t,new Map,n)(e),n},rn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Gi(_i(e,t)):structuredClone(e):(e,t)=>Gi(_i(e,t));function Ec(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Dc(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ic(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Ec,n=e.options.footnoteBackLabel||Dc,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let o=-1;for(;++o0&&y.push({type:"text",value:" "});let z=typeof r=="string"?r:r(o,p);typeof z=="string"&&(z={type:"text",value:z}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(o,p),className:["data-footnote-backref"]},children:Array.isArray(z)?z:[z]})}const C=h[h.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const z=C.children[C.children.length-1];z&&z.type==="text"?z.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...y)}else h.push(...y);const A={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(h,!0)};e.patch(u,A),s.push(A)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...rn(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` +`}]}}const Cr=(function(e){if(e==null)return Nc;if(typeof e=="function")return pn(e);if(typeof e=="object")return Array.isArray(e)?Bc(e):Fc(e);if(typeof e=="string")return Rc(e);throw new Error("Expected function, string, or object as test")});function Bc(e){const t=[];let r=-1;for(;++r":""))+")"})}return d;function d(){let p=Bl,y,w,C;if((!t||a(o,u,h[h.length-1]||void 0))&&(p=Oc(r(o,h)),p[0]===g0))return p;if("children"in o&&o.children){const A=o;if(A.children&&p[0]!==Fl)for(w=(n?A.children.length:-1)+l,C=h.concat(A);w>-1&&w0&&r.push({type:"text",value:` +`}),r}function Wi(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Xi(e,t){const r=Hc(e,t),n=r.one(e,void 0),i=Ic(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function Gc(e,t){return e&&"run"in e?async function(r,n){const i=Xi(r,{file:n,...t});await e.run(i,n)}:function(r,n){return Xi(r,{file:n,...e||t})}}function Yi(e){if(e)throw e}var Ln,Ki;function _c(){if(Ki)return Ln;Ki=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},a=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var h=e.call(u,"constructor"),m=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!h&&!m)return!1;var d;for(d in u);return typeof d>"u"||e.call(u,d)},l=function(u,h){r&&h.name==="__proto__"?r(u,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):u[h.name]=h.newValue},s=function(u,h){if(h==="__proto__")if(e.call(u,h)){if(n)return n(u,h).value}else return;return u[h]};return Ln=function o(){var u,h,m,d,p,y,w=arguments[0],C=1,A=arguments.length,z=!1;for(typeof w=="boolean"&&(z=w,w=arguments[1]||{},C=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});Cl.length;let o;s&&l.push(i);try{o=e.apply(this,l)}catch(u){const h=u;if(s&&r)throw h;return i(h)}s||(o&&o.then&&typeof o.then=="function"?o.then(a,i):o instanceof Error?i(o):a(o))}function i(l,...s){r||(r=!0,t(l,...s))}function a(l){i(null,l)}}const it={basename:Kc,dirname:Zc,extname:Qc,join:Jc,sep:"/"};function Kc(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Mr(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let l=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else l<0&&(a=!0,l=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=l));return r===n?n=l:n<0&&(n=e.length),e.slice(r,n)}function Zc(e){if(Mr(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Qc(e){Mr(e);let t=e.length,r=-1,n=0,i=-1,a=0,l;for(;t--;){const s=e.codePointAt(t);if(s===47){if(l){n=t+1;break}continue}r<0&&(l=!0,r=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function Jc(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function th(e,t){let r="",n=0,i=-1,a=0,l=-1,s,o;for(;++l<=e.length;){if(l2){if(o=r.lastIndexOf("/"),o!==r.length-1){o<0?(r="",n=0):(r=r.slice(0,o),n=r.length-1-r.lastIndexOf("/")),i=l,a=0;continue}}else if(r.length>0){r="",n=0,i=l,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,l):r=e.slice(i+1,l),n=l-i-1;i=l,a=0}else s===46&&a>-1?a++:a=-1}return r}function Mr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const rh={cwd:nh};function nh(){return"/"}function b0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ih(e){if(typeof e=="string")e=new URL(e);else if(!b0(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return ah(e)}function ah(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r0){let[p,...y]=h;const w=n[d][1];y0(w)&&y0(p)&&(p=Pn(!0,w,p)),n[d]=[u,p,...y]}}}}const uh=new Z0().freeze();function jn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Vn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function $n(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Qi(e){if(!y0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ji(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Hr(e){return ch(e)?e:new Rl(e)}function ch(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function hh(e){return typeof e=="string"||mh(e)}function mh(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const fh="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ea=[],ta={allowDangerousHtml:!0},ph=/^(https?|ircs?|mailto|xmpp)$/i,dh=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function i5(e){const t=gh(e),r=vh(e);return yh(t.runSync(t.parse(r),r),e)}function gh(e){const t=e.rehypePlugins||ea,r=e.remarkPlugins||ea,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ta}:ta;return uh().use(Q1).use(r).use(Gc,n).use(t)}function vh(e){const t=e.children||"",r=new Rl;return typeof t=="string"&&(r.value=t),r}function yh(e,t){const r=t.allowedElements,n=t.allowElement,i=t.components,a=t.disallowedElements,l=t.skipHtml,s=t.unwrapDisallowed,o=t.urlTransform||bh;for(const h of dh)Object.hasOwn(t,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+fh+h.id,void 0);return K0(e,u),No(e,{Fragment:Dn.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Dn.jsx,jsxs:Dn.jsxs,passKeys:!0,passNode:!0});function u(h,m,d){if(h.type==="raw"&&d&&typeof m=="number")return l?d.children.splice(m,1):d.children[m]={type:"text",value:h.value},m;if(h.type==="element"){let p;for(p in Fn)if(Object.hasOwn(Fn,p)&&Object.hasOwn(h.properties,p)){const y=h.properties[p],w=Fn[p];(w===null||w.includes(h.tagName))&&(h.properties[p]=o(String(y||""),p,h))}}if(h.type==="element"){let p=r?!r.includes(h.tagName):a?a.includes(h.tagName):!1;if(!p&&n&&typeof m=="number"&&(p=!n(h,m,d)),p&&d&&typeof m=="number")return s&&h.children?d.children.splice(m,1,...h.children):d.children.splice(m,1),m}}}function bh(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||r!==-1&&t>r||n!==-1&&t>n||ph.test(e.slice(0,t))?e:""}function ra(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}function xh(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function wh(e,t,r){const i=Cr((r||{}).ignore||[]),a=kh(t);let l=-1;for(;++l0?{type:"text",value:M}:void 0),M===!1?d.lastIndex=O+1:(y!==O&&z.push({type:"text",value:u.value.slice(y,O)}),Array.isArray(M)?z.push(...M):M&&z.push(M),y=O+D[0].length,A=!0),!d.global)break;D=d.exec(u.value)}return A?(y?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=ra(e,"(");let a=ra(e,")");for(;n!==-1&&i>a;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),a++;return[e,r]}function Nl(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Ot(r)||hn(r))&&(!t||r!==47)}Ll.peek=Gh;function Ph(){this.buffer()}function Oh(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function qh(){this.buffer()}function Hh(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function jh(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=rt(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Vh(e){this.exit(e)}function $h(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=rt(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Uh(e){this.exit(e)}function Gh(){return"["}function Ll(e,t,r,n){const i=r.createTracker(n);let a=i.move("[^");const l=r.enter("footnoteReference"),s=r.enter("reference");return a+=i.move(r.safe(r.associationId(e),{after:"]",before:a})),s(),l(),a+=i.move("]"),a}function _h(){return{enter:{gfmFootnoteCallString:Ph,gfmFootnoteCall:Oh,gfmFootnoteDefinitionLabelString:qh,gfmFootnoteDefinition:Hh},exit:{gfmFootnoteCallString:jh,gfmFootnoteCall:Vh,gfmFootnoteDefinitionLabelString:$h,gfmFootnoteDefinition:Uh}}}function Wh(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:Ll},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,i,a,l){const s=a.createTracker(l);let o=s.move("[^");const u=a.enter("footnoteDefinition"),h=a.enter("label");return o+=s.move(a.safe(a.associationId(n),{before:o,after:"]"})),h(),o+=s.move("]:"),n.children&&n.children.length>0&&(s.shift(4),o+=s.move((t?` +`:" ")+a.indentLines(a.containerFlow(n,s.current()),t?Pl:Xh))),u(),o}}function Xh(e,t,r){return t===0?e:Pl(e,t,r)}function Pl(e,t,r){return(r?"":" ")+e}const Yh=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ol.peek=e4;function Kh(){return{canContainEols:["delete"],enter:{strikethrough:Qh},exit:{strikethrough:Jh}}}function Zh(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Yh}],handlers:{delete:Ol}}}function Qh(e){this.enter({type:"delete",children:[]},e)}function Jh(e){this.exit(e)}function Ol(e,t,r,n){const i=r.createTracker(n),a=r.enter("strikethrough");let l=i.move("~~");return l+=r.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),a(),l}function e4(){return"~"}function t4(e){return e.length}function r4(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||t4,a=[],l=[],s=[],o=[];let u=0,h=-1;for(;++hu&&(u=e[h].length);++Ao[A])&&(o[A]=D)}w.push(z)}l[h]=w,s[h]=C}let m=-1;if(typeof n=="object"&&"length"in n)for(;++mo[m]&&(o[m]=z),p[m]=z),d[m]=D}l.splice(1,0,d),s.splice(1,0,p),h=-1;const y=[];for(;++h "),a.shift(2);const l=r.indentLines(r.containerFlow(e,a.current()),a4);return i(),l}function a4(e,t,r){return">"+(r?"":" ")+e}function l4(e,t){return ia(e,t.inConstruct,!0)&&!ia(e,t.notInConstruct,!1)}function ia(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++nl&&(l=a):a=1,i=n+t.length,n=r.indexOf(t,i);return l}function s4(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function o4(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function u4(e,t,r,n){const i=o4(r),a=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(s4(e,r)){const m=r.enter("codeIndented"),d=r.indentLines(a,c4);return m(),d}const s=r.createTracker(n),o=i.repeat(Math.max(ql(a,i)+1,3)),u=r.enter("codeFenced");let h=s.move(o);if(e.lang){const m=r.enter(`codeFencedLang${l}`);h+=s.move(r.safe(e.lang,{before:h,after:" ",encode:["`"],...s.current()})),m()}if(e.lang&&e.meta){const m=r.enter(`codeFencedMeta${l}`);h+=s.move(" "),h+=s.move(r.safe(e.meta,{before:h,after:` +`,encode:["`"],...s.current()})),m()}return h+=s.move(` +`),a&&(h+=s.move(a+` +`)),h+=s.move(o),u(),h}function c4(e,t,r){return(r?"":" ")+e}function Q0(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function h4(e,t,r,n){const i=Q0(r),a=i==='"'?"Quote":"Apostrophe",l=r.enter("definition");let s=r.enter("label");const o=r.createTracker(n);let u=o.move("[");return u+=o.move(r.safe(r.associationId(e),{before:u,after:"]",...o.current()})),u+=o.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(r.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(s=r.enter("destinationRaw"),u+=o.move(r.safe(e.url,{before:u,after:e.title?" ":` +`,...o.current()}))),s(),e.title&&(s=r.enter(`title${a}`),u+=o.move(" "+i),u+=o.move(r.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),s()),l(),u}function m4(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function kr(e){return"&#x"+e.toString(16).toUpperCase()+";"}function nn(e,t,r){const n=Zt(e),i=Zt(t);return n===void 0?i===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Hl.peek=f4;function Hl(e,t,r,n){const i=m4(r),a=r.enter("emphasis"),l=r.createTracker(n),s=l.move(i);let o=l.move(r.containerPhrasing(e,{after:i,before:s,...l.current()}));const u=o.charCodeAt(0),h=nn(n.before.charCodeAt(n.before.length-1),u,i);h.inside&&(o=kr(u)+o.slice(1));const m=o.charCodeAt(o.length-1),d=nn(n.after.charCodeAt(0),m,i);d.inside&&(o=o.slice(0,-1)+kr(m));const p=l.move(i);return a(),r.attentionEncodeSurroundingInfo={after:d.outside,before:h.outside},s+o+p}function f4(e,t,r){return r.options.emphasis||"*"}function p4(e,t){let r=!1;return K0(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,g0}),!!((!e.depth||e.depth<3)&&V0(e)&&(t.options.setext||r))}function d4(e,t,r,n){const i=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(n);if(p4(e,r)){const h=r.enter("headingSetext"),m=r.enter("phrasing"),d=r.containerPhrasing(e,{...a.current(),before:` +`,after:` +`});return m(),h(),d+` +`+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(` +`))+1))}const l="#".repeat(i),s=r.enter("headingAtx"),o=r.enter("phrasing");a.move(l+" ");let u=r.containerPhrasing(e,{before:"# ",after:` +`,...a.current()});return/^[\t ]/.test(u)&&(u=kr(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,r.options.closeAtx&&(u+=" "+l),o(),s(),u}jl.peek=g4;function jl(e){return e.value||""}function g4(){return"<"}Vl.peek=v4;function Vl(e,t,r,n){const i=Q0(r),a=i==='"'?"Quote":"Apostrophe",l=r.enter("image");let s=r.enter("label");const o=r.createTracker(n);let u=o.move("![");return u+=o.move(r.safe(e.alt,{before:u,after:"]",...o.current()})),u+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(r.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(s=r.enter("destinationRaw"),u+=o.move(r.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=r.enter(`title${a}`),u+=o.move(" "+i),u+=o.move(r.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),s()),u+=o.move(")"),l(),u}function v4(){return"!"}$l.peek=y4;function $l(e,t,r,n){const i=e.referenceType,a=r.enter("imageReference");let l=r.enter("label");const s=r.createTracker(n);let o=s.move("![");const u=r.safe(e.alt,{before:o,after:"]",...s.current()});o+=s.move(u+"]["),l();const h=r.stack;r.stack=[],l=r.enter("reference");const m=r.safe(r.associationId(e),{before:o,after:"]",...s.current()});return l(),r.stack=h,a(),i==="full"||!u||u!==m?o+=s.move(m+"]"):i==="shortcut"?o=o.slice(0,-1):o+=s.move("]"),o}function y4(){return"!"}Ul.peek=b4;function Ul(e,t,r){let n=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a\u007F]/.test(e.url))}_l.peek=x4;function _l(e,t,r,n){const i=Q0(r),a=i==='"'?"Quote":"Apostrophe",l=r.createTracker(n);let s,o;if(Gl(e,r)){const h=r.stack;r.stack=[],s=r.enter("autolink");let m=l.move("<");return m+=l.move(r.containerPhrasing(e,{before:m,after:">",...l.current()})),m+=l.move(">"),s(),r.stack=h,m}s=r.enter("link"),o=r.enter("label");let u=l.move("[");return u+=l.move(r.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=r.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(r.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),s(),u}function x4(e,t,r){return Gl(e,r)?"<":"["}Wl.peek=w4;function Wl(e,t,r,n){const i=e.referenceType,a=r.enter("linkReference");let l=r.enter("label");const s=r.createTracker(n);let o=s.move("[");const u=r.containerPhrasing(e,{before:o,after:"]",...s.current()});o+=s.move(u+"]["),l();const h=r.stack;r.stack=[],l=r.enter("reference");const m=r.safe(r.associationId(e),{before:o,after:"]",...s.current()});return l(),r.stack=h,a(),i==="full"||!u||u!==m?o+=s.move(m+"]"):i==="shortcut"?o=o.slice(0,-1):o+=s.move("]"),o}function w4(){return"["}function J0(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function k4(e){const t=J0(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function S4(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Xl(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function A4(e,t,r,n){const i=r.enter("list"),a=r.bulletCurrent;let l=e.ordered?S4(r):J0(r);const s=e.ordered?l==="."?")":".":k4(r);let o=t&&r.bulletLastUsed?l===r.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&h&&(!h.children||!h.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(o=!0),Xl(r)===l&&h){let m=-1;for(;++m-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let l=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const s=r.createTracker(n);s.move(a+" ".repeat(l-a.length)),s.shift(l);const o=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,s.current()),h);return o(),u;function h(m,d,p){return d?(p?"":" ".repeat(l))+m:(p?a:a+" ".repeat(l-a.length))+m}}function C4(e,t,r,n){const i=r.enter("paragraph"),a=r.enter("phrasing"),l=r.containerPhrasing(e,n);return a(),i(),l}const M4=Cr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function E4(e,t,r,n){return(e.children.some(function(l){return M4(l)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function D4(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Yl.peek=I4;function Yl(e,t,r,n){const i=D4(r),a=r.enter("strong"),l=r.createTracker(n),s=l.move(i+i);let o=l.move(r.containerPhrasing(e,{after:i,before:s,...l.current()}));const u=o.charCodeAt(0),h=nn(n.before.charCodeAt(n.before.length-1),u,i);h.inside&&(o=kr(u)+o.slice(1));const m=o.charCodeAt(o.length-1),d=nn(n.after.charCodeAt(0),m,i);d.inside&&(o=o.slice(0,-1)+kr(m));const p=l.move(i+i);return a(),r.attentionEncodeSurroundingInfo={after:d.outside,before:h.outside},s+o+p}function I4(e,t,r){return r.options.strong||"*"}function B4(e,t,r,n){return r.safe(e.value,n)}function F4(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function R4(e,t,r){const n=(Xl(r)+(r.options.ruleSpaces?" ":"")).repeat(F4(r));return r.options.ruleSpaces?n.slice(0,-1):n}const Kl={blockquote:i4,break:aa,code:u4,definition:h4,emphasis:Hl,hardBreak:aa,heading:d4,html:jl,image:Vl,imageReference:$l,inlineCode:Ul,link:_l,linkReference:Wl,list:A4,listItem:z4,paragraph:C4,root:E4,strong:Yl,text:B4,thematicBreak:R4};function N4(){return{enter:{table:L4,tableData:la,tableHeader:la,tableRow:O4},exit:{codeText:q4,table:P4,tableData:Wn,tableHeader:Wn,tableRow:Wn}}}function L4(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function P4(e){this.exit(e),this.data.inTable=void 0}function O4(e){this.enter({type:"tableRow",children:[]},e)}function Wn(e){this.exit(e)}function la(e){this.enter({type:"tableCell",children:[]},e)}function q4(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,H4));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function H4(e,t){return t==="|"?t:e}function j4(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:l,tableCell:o,tableRow:s}};function l(p,y,w,C){return u(h(p,w,C),p.align)}function s(p,y,w,C){const A=m(p,w,C),z=u([A]);return z.slice(0,z.indexOf(` +`))}function o(p,y,w,C){const A=w.enter("tableCell"),z=w.enter("phrasing"),D=w.containerPhrasing(p,{...C,before:a,after:a});return z(),A(),D}function u(p,y){return r4(p,{align:y,alignDelimiters:n,padding:r,stringLength:i})}function h(p,y,w){const C=p.children;let A=-1;const z=[],D=y.enter("table");for(;++A0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const am={tokenize:fm,partial:!0};function lm(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:cm,continuation:{tokenize:hm},exit:mm}},text:{91:{name:"gfmFootnoteCall",tokenize:um},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:sm,resolveTo:om}}}}function sm(e,t,r){const n=this;let i=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let l;for(;i--;){const o=n.events[i][1];if(o.type==="labelImage"){l=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return s;function s(o){if(!l||!l._balanced)return r(o);const u=rt(n.sliceSerialize({start:l.end,end:n.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?r(o):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o))}}function om(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",l,t],["exit",l,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function um(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a=0,l;return s;function s(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),o}function o(m){return m!==94?r(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(m){if(a>999||m===93&&!l||m===null||m===91||he(m))return r(m);if(m===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(rt(n.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(m)}return he(m)||(l=!0),a++,e.consume(m),m===92?h:u}function h(m){return m===91||m===92||m===93?(e.consume(m),a++,u):u(m)}}function cm(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,l=0,s;return o;function o(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):r(y)}function h(y){if(l>999||y===93&&!s||y===null||y===91||he(y))return r(y);if(y===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return a=rt(n.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return he(y)||(s=!0),l++,e.consume(y),y===92?m:h}function m(y){return y===91||y===92||y===93?(e.consume(y),l++,h):h(y)}function d(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),i.includes(a)||i.push(a),ie(e,p,"gfmFootnoteDefinitionWhitespace")):r(y)}function p(y){return t(y)}}function hm(e,t,r){return e.check(zr,t,e.attempt(am,t,r))}function mm(e){e.exit("gfmFootnoteDefinition")}function fm(e,t,r){const n=this;return ie(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const l=n.events[n.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(a):r(a)}}function pm(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(l,s){let o=-1;for(;++o1?o(y):(l.consume(y),m++,p);if(m<2&&!r)return o(y);const C=l.exit("strikethroughSequenceTemporary"),A=Zt(y);return C._open=!A||A===2&&!!w,C._close=!w||w===2&&!!A,s(y)}}}class dm{constructor(){this.map=[]}add(t,r,n){gm(this,t,r,n)}consume(t){if(this.map.sort(function(a,l){return a[0]-l[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let i=n.pop();for(;i;){for(const a of i)t.push(a);i=n.pop()}this.map.length=0}}function gm(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i-1;){const X=n.events[U][1].type;if(X==="lineEnding"||X==="linePrefix")U--;else break}const j=U>-1?n.events[U][1].type:null,ae=j==="tableHead"||j==="tableRow"?M:o;return ae===M&&n.parser.lazy[n.now().line]?r(E):ae(E)}function o(E){return e.enter("tableHead"),e.enter("tableRow"),u(E)}function u(E){return E===124||(l=!0,a+=1),h(E)}function h(E){return E===null?r(E):Y(E)?a>1?(a=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),p):r(E):se(E)?ie(e,h,"whitespace")(E):(a+=1,l&&(l=!1,i+=1),E===124?(e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),l=!0,h):(e.enter("data"),m(E)))}function m(E){return E===null||E===124||he(E)?(e.exit("data"),h(E)):(e.consume(E),E===92?d:m)}function d(E){return E===92||E===124?(e.consume(E),m):m(E)}function p(E){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(E):(e.enter("tableDelimiterRow"),l=!1,se(E)?ie(e,y,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):y(E))}function y(E){return E===45||E===58?C(E):E===124?(l=!0,e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),w):V(E)}function w(E){return se(E)?ie(e,C,"whitespace")(E):C(E)}function C(E){return E===58?(a+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(E),e.exit("tableDelimiterMarker"),A):E===45?(a+=1,A(E)):E===null||Y(E)?O(E):V(E)}function A(E){return E===45?(e.enter("tableDelimiterFiller"),z(E)):V(E)}function z(E){return E===45?(e.consume(E),z):E===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(E),e.exit("tableDelimiterMarker"),D):(e.exit("tableDelimiterFiller"),D(E))}function D(E){return se(E)?ie(e,O,"whitespace")(E):O(E)}function O(E){return E===124?y(E):E===null||Y(E)?!l||i!==a?V(E):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(E)):V(E)}function V(E){return r(E)}function M(E){return e.enter("tableRow"),G(E)}function G(E){return E===124?(e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),G):E===null||Y(E)?(e.exit("tableRow"),t(E)):se(E)?ie(e,G,"whitespace")(E):(e.enter("data"),K(E))}function K(E){return E===null||E===124||he(E)?(e.exit("data"),G(E)):(e.consume(E),E===92?$:K)}function $(E){return E===92||E===124?(e.consume(E),K):K(E)}}function xm(e,t){let r=-1,n=!0,i=0,a=[0,0,0,0],l=[0,0,0,0],s=!1,o=0,u,h,m;const d=new dm;for(;++rr[2]+1){const y=r[2]+1,w=r[3]-r[2]-1;e.add(y,w,[])}}e.add(r[3]+1,0,[["exit",m,t]])}return i!==void 0&&(a.end=Object.assign({},Xt(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function oa(e,t,r,n,i){const a=[],l=Xt(t.events,r);i&&(i.end=Object.assign({},l),a.push(["exit",i,t])),n.end=Object.assign({},l),a.push(["exit",n,t]),e.add(r+1,0,a)}function Xt(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const wm={name:"tasklistCheck",tokenize:Sm};function km(){return{text:{91:wm}}}function Sm(e,t,r){const n=this;return i;function i(o){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(o):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),a)}function a(o){return he(o)?(e.enter("taskListCheckValueUnchecked"),e.consume(o),e.exit("taskListCheckValueUnchecked"),l):o===88||o===120?(e.enter("taskListCheckValueChecked"),e.consume(o),e.exit("taskListCheckValueChecked"),l):r(o)}function l(o){return o===93?(e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):r(o)}function s(o){return Y(o)?t(o):se(o)?e.check({tokenize:Am},t,r)(o):r(o)}}function Am(e,t,r){return ie(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function Tm(e){return pl([K4(),lm(),pm(e),ym(),km()])}const zm={};function a5(e){const t=this,r=e||zm,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),l=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(Tm(r)),a.push(_4()),l.push(W4(r))}function Cm(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:s,mathText:l,mathTextData:s}};function e(o){const u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},o)}function t(){this.buffer()}function r(){const o=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=o}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(o){const u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),h=this.stack[this.stack.length-1];h.type,this.exit(o),h.value=u;const m=h.data.hChildren[0];m.type,m.tagName,m.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function a(o){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},o),this.buffer()}function l(o){const u=this.resume(),h=this.stack[this.stack.length-1];h.type,this.exit(o),h.value=u,h.data.hChildren.push({type:"text",value:u})}function s(o){this.config.enter.data.call(this,o),this.config.exit.data.call(this,o)}}function Mm(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` +`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(a,l,s,o){const u=a.value||"",h=s.createTracker(o),m="$".repeat(Math.max(ql(u,"$")+1,2)),d=s.enter("mathFlow");let p=h.move(m);if(a.meta){const y=s.enter("mathFlowMeta");p+=h.move(s.safe(a.meta,{after:` +`,before:p,encode:["$"],...h.current()})),y()}return p+=h.move(` +`),u&&(p+=h.move(u+` +`)),p+=h.move(m),d(),p}function n(a,l,s){let o=a.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(o);)u++;const h="$".repeat(u);/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^\$|\$$/.test(o))&&(o=" "+o+" ");let m=-1;for(;++m15?u="…"+s.slice(i-15,i):u=s.slice(0,i);var h;a+15e.replace(Lm,"-$1").toLowerCase(),Pm={"&":"&",">":">","<":"<",'"':""","'":"'"},Om=/[&><"']/g,De=e=>String(e).replace(Om,t=>Pm[t]),Qr=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Qr(e.body[0]):e:e.type==="font"?Qr(e.body):e,qm=new Set(["mathord","textord","atom"]),bt=e=>qm.has(Qr(e).type),Hm=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},w0={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function jm(e){if("default"in e)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class ri{constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(w0)){var n=w0[r],i=t[r];this[r]=i!==void 0?n.processor?n.processor(i):i:jm(n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new R("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=Hm(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class St{constructor(t,r,n){this.id=t,this.size=r,this.cramped=n}sup(){return at[Vm[this.id]]}sub(){return at[$m[this.id]]}fracNum(){return at[Um[this.id]]}fracDen(){return at[Gm[this.id]]}cramp(){return at[_m[this.id]]}text(){return at[Wm[this.id]]}isTight(){return this.size>=2}}var ni=0,an=1,Kt=2,gt=3,Sr=4,Qe=5,Qt=6,Le=7,at=[new St(ni,0,!1),new St(an,0,!0),new St(Kt,1,!1),new St(gt,1,!0),new St(Sr,2,!1),new St(Qe,2,!0),new St(Qt,3,!1),new St(Le,3,!0)],Vm=[Sr,Qe,Sr,Qe,Qt,Le,Qt,Le],$m=[Qe,Qe,Qe,Qe,Le,Le,Le,Le],Um=[Kt,gt,Sr,Qe,Qt,Le,Qt,Le],Gm=[gt,gt,Qe,Qe,Le,Le,Le,Le],_m=[an,an,gt,gt,Qe,Qe,Le,Le],Wm=[ni,an,Kt,gt,Kt,gt,Kt,gt],ee={DISPLAY:at[ni],TEXT:at[Kt],SCRIPT:at[Sr],SCRIPTSCRIPT:at[Qt]},k0=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Xm(e){for(var t=0;t=i[0]&&e<=i[1])return r.name}return null}var Jr=[];k0.forEach(e=>e.blocks.forEach(t=>Jr.push(...t)));function as(e){for(var t=0;t=Jr[t]&&e<=Jr[t+1])return!0;return!1}var Wt=80,Ym=function(t,r){return"M95,"+(622+t+r)+` +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l`+t/2.075+" -"+t+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+t)+`H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Km=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119 +c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 +c340,-704.7,510.7,-1060.3,512,-1067 +l`+t/2.084+" -"+t+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+t)+`H1012.3 +s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 +c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 +s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 +c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z +M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Zm=function(t,r){return"M983 "+(10+t+r)+` +l`+t/3.13+" -"+t+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` +H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 +s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 +c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 +c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 +c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 +c53.7,-170.3,84.5,-266.8,92.5,-289.5z +M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Qm=function(t,r){return"M424,"+(2398+t+r)+` +c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 +c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 +s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 +s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 +l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+t)+`H1014.6 +s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 +c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+` +h400000v`+(40+t)+"h-400000z"},Jm=function(t,r){return"M473,"+(2713+t+r)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 +s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 +c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 +s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, +606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},ef=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},tf=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+` +H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 +c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 +219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},rf=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=Ym(r,Wt);break;case"sqrtSize1":i=Km(r,Wt);break;case"sqrtSize2":i=Zm(r,Wt);break;case"sqrtSize3":i=Qm(r,Wt);break;case"sqrtSize4":i=Jm(r,Wt);break;case"sqrtTall":i=tf(r,Wt,n)}return i},nf=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},ca={doubleleftarrow:`M262 157 +l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 + 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 + 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 +c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 + 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 +-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 +-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z +m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l +-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 + 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 +-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 +-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 +-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 +c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 +-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 + 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 +-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 +c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 + 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 + 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 + l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 +-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 + 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 +H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 + 435 0h399565z`,leftgroupunder:`M400000 262 +H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 + 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 +-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 +-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 +-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 + 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 +-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 +-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z +m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 + 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 + 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 +-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 + 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 +-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 +v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 +-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 +-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z +M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftbracketunder:`M0 0 h120 V290 H399995 v120 H0z +M0 0 h120 V290 H399995 v120 H0z`,leftbracketover:`M0 440 h120 V150 H399995 v-120 H0z +M0 440 h120 V150 H399995 v-120 H0z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z +M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 +-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 +c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z +M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 +c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 +-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 + 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 + 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 +-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z +m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 +60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 +-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z +m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 +c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 +-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z +m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 +85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 +-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z +m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 +c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 +-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 + 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 + 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 +-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 + 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l +-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 +s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 +c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 + 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 + 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 +-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 +-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 + 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 +-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 + 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z +m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 + 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 +-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 +-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 + 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 + 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 +-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z +m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 + 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 +-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z +M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightbracketunder:`M399995 0 h-120 V290 H0 v120 H400000z +M399995 0 h-120 V290 H0 v120 H400000z`,rightbracketover:`M399995 440 h-120 V150 H0 v-120 H399995z +M399995 440 h-120 V150 H0 v-120 H399995z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 +-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 +-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 + 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 +-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 +-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 +-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 + 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 +c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 + 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 + 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 +-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 + 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 +-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 + 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 + 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 +-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 +-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 + 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 +c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 + 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 +-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 + 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 + 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 + -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 +-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 + 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 + 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 + -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 +3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 +10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 +-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 +-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 +H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 +c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 +c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, +-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 +c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 +c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 +s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 +121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 +s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 +c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z +M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 +-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 +13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 +-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 +-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 +151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 +c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 +c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 +c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z +M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, +1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, +-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z +M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},af=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z +M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z +M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z +M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 +c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, +-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, +949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 +c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, +-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 +l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, +-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, +63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 +c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+` +c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 +c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 +c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 +c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 +l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class nr{constructor(t){this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;rr.toText();return this.children.map(t).join("")}}var S0={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},lf={ex:!0,em:!0,mu:!0},ls=function(t){return typeof t!="string"&&(t=t.unit),t in S0||t in lf||t==="ex"},ye=function(t,r){var n;if(t.unit in S0)n=S0[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new R("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},P=function(t){return+t.toFixed(4)+"em"},zt=function(t){return t.filter(r=>r).join(" ")},ss=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},os=function(t){var r=document.createElement(t);r.className=zt(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,us=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+De(zt(this.classes))+'"');var n="";for(var i of Object.keys(this.style))n+=ti(i)+":"+this.style[i]+";";n&&(r+=' style="'+De(n)+'"');for(var a of Object.keys(this.attributes)){if(sf.test(a))throw new R("Invalid attribute name '"+a+"'");r+=" "+a+'="'+De(this.attributes[a])+'"'}r+=">";for(var l=0;l",r};class ir{constructor(t,r,n,i){ss.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return os.call(this,"span")}toMarkup(){return us.call(this,"span")}}class dn{constructor(t,r,n,i){ss.call(this,r,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return os.call(this,"a")}toMarkup(){return us.call(this,"a")}}class of{constructor(t,r,n){this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r of Object.keys(this.style))t.style[r]=this.style[r];return t}toMarkup(){var t=''+De(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=P(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=zt(this.classes));for(var n of Object.keys(this.style))r=r||document.createElement("span"),r.style[n]=this.style[n];return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="0&&(n+="margin-right:"+P(this.italic)+";");for(var i of Object.keys(this.style))n+=ti(i)+":"+this.style[i]+";";n&&(t=!0,r+=' style="'+De(n)+'"');var a=De(this.text);return t?(r+=">",r+=a,r+="",r):a}}class vt{constructor(t,r){this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i':''}}class A0{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t=" but got "+String(e)+".")}var mf=e=>e instanceof ir||e instanceof dn||e instanceof nr,lt={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Vr={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},ha={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function ff(e,t){lt[e]=t}function ii(e,t,r){if(!lt[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=lt[t][n];if(!i&&e[0]in ha&&(n=ha[e[0]].charCodeAt(0),i=lt[t][n]),!i&&r==="text"&&as(n)&&(i=lt[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Xn={};function pf(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Xn[t]){var r=Xn[t]={cssEmPerMu:Vr.quad[t]/18};for(var n in Vr)Vr.hasOwnProperty(n)&&(r[n]=Vr[n][t])}return Xn[t]}var df={bin:1,close:1,inner:1,open:1,punct:1,rel:1},gf={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},de={math:{},text:{}};function c(e,t,r,n,i,a){de[e][i]={font:t,group:r,replace:n},a&&n&&(de[e][n]=de[e][i])}var f="math",B="text",g="main",b="ams",ge="accent-token",W="bin",Pe="close",ar="inner",Z="mathord",Ae="op-token",Xe="open",Er="punct",x="rel",xt="spacing",T="textord";c(f,g,x,"≡","\\equiv",!0);c(f,g,x,"≺","\\prec",!0);c(f,g,x,"≻","\\succ",!0);c(f,g,x,"∼","\\sim",!0);c(f,g,x,"⊥","\\perp");c(f,g,x,"⪯","\\preceq",!0);c(f,g,x,"⪰","\\succeq",!0);c(f,g,x,"≃","\\simeq",!0);c(f,g,x,"∣","\\mid",!0);c(f,g,x,"≪","\\ll",!0);c(f,g,x,"≫","\\gg",!0);c(f,g,x,"≍","\\asymp",!0);c(f,g,x,"∥","\\parallel");c(f,g,x,"⋈","\\bowtie",!0);c(f,g,x,"⌣","\\smile",!0);c(f,g,x,"⊑","\\sqsubseteq",!0);c(f,g,x,"⊒","\\sqsupseteq",!0);c(f,g,x,"≐","\\doteq",!0);c(f,g,x,"⌢","\\frown",!0);c(f,g,x,"∋","\\ni",!0);c(f,g,x,"∝","\\propto",!0);c(f,g,x,"⊢","\\vdash",!0);c(f,g,x,"⊣","\\dashv",!0);c(f,g,x,"∋","\\owns");c(f,g,Er,".","\\ldotp");c(f,g,Er,"⋅","\\cdotp");c(f,g,Er,"⋅","·");c(B,g,T,"⋅","·");c(f,g,T,"#","\\#");c(B,g,T,"#","\\#");c(f,g,T,"&","\\&");c(B,g,T,"&","\\&");c(f,g,T,"ℵ","\\aleph",!0);c(f,g,T,"∀","\\forall",!0);c(f,g,T,"ℏ","\\hbar",!0);c(f,g,T,"∃","\\exists",!0);c(f,g,T,"∇","\\nabla",!0);c(f,g,T,"♭","\\flat",!0);c(f,g,T,"ℓ","\\ell",!0);c(f,g,T,"♮","\\natural",!0);c(f,g,T,"♣","\\clubsuit",!0);c(f,g,T,"℘","\\wp",!0);c(f,g,T,"♯","\\sharp",!0);c(f,g,T,"♢","\\diamondsuit",!0);c(f,g,T,"ℜ","\\Re",!0);c(f,g,T,"♡","\\heartsuit",!0);c(f,g,T,"ℑ","\\Im",!0);c(f,g,T,"♠","\\spadesuit",!0);c(f,g,T,"§","\\S",!0);c(B,g,T,"§","\\S");c(f,g,T,"¶","\\P",!0);c(B,g,T,"¶","\\P");c(f,g,T,"†","\\dag");c(B,g,T,"†","\\dag");c(B,g,T,"†","\\textdagger");c(f,g,T,"‡","\\ddag");c(B,g,T,"‡","\\ddag");c(B,g,T,"‡","\\textdaggerdbl");c(f,g,Pe,"⎱","\\rmoustache",!0);c(f,g,Xe,"⎰","\\lmoustache",!0);c(f,g,Pe,"⟯","\\rgroup",!0);c(f,g,Xe,"⟮","\\lgroup",!0);c(f,g,W,"∓","\\mp",!0);c(f,g,W,"⊖","\\ominus",!0);c(f,g,W,"⊎","\\uplus",!0);c(f,g,W,"⊓","\\sqcap",!0);c(f,g,W,"∗","\\ast");c(f,g,W,"⊔","\\sqcup",!0);c(f,g,W,"◯","\\bigcirc",!0);c(f,g,W,"∙","\\bullet",!0);c(f,g,W,"‡","\\ddagger");c(f,g,W,"≀","\\wr",!0);c(f,g,W,"⨿","\\amalg");c(f,g,W,"&","\\And");c(f,g,x,"⟵","\\longleftarrow",!0);c(f,g,x,"⇐","\\Leftarrow",!0);c(f,g,x,"⟸","\\Longleftarrow",!0);c(f,g,x,"⟶","\\longrightarrow",!0);c(f,g,x,"⇒","\\Rightarrow",!0);c(f,g,x,"⟹","\\Longrightarrow",!0);c(f,g,x,"↔","\\leftrightarrow",!0);c(f,g,x,"⟷","\\longleftrightarrow",!0);c(f,g,x,"⇔","\\Leftrightarrow",!0);c(f,g,x,"⟺","\\Longleftrightarrow",!0);c(f,g,x,"↦","\\mapsto",!0);c(f,g,x,"⟼","\\longmapsto",!0);c(f,g,x,"↗","\\nearrow",!0);c(f,g,x,"↩","\\hookleftarrow",!0);c(f,g,x,"↪","\\hookrightarrow",!0);c(f,g,x,"↘","\\searrow",!0);c(f,g,x,"↼","\\leftharpoonup",!0);c(f,g,x,"⇀","\\rightharpoonup",!0);c(f,g,x,"↙","\\swarrow",!0);c(f,g,x,"↽","\\leftharpoondown",!0);c(f,g,x,"⇁","\\rightharpoondown",!0);c(f,g,x,"↖","\\nwarrow",!0);c(f,g,x,"⇌","\\rightleftharpoons",!0);c(f,b,x,"≮","\\nless",!0);c(f,b,x,"","\\@nleqslant");c(f,b,x,"","\\@nleqq");c(f,b,x,"⪇","\\lneq",!0);c(f,b,x,"≨","\\lneqq",!0);c(f,b,x,"","\\@lvertneqq");c(f,b,x,"⋦","\\lnsim",!0);c(f,b,x,"⪉","\\lnapprox",!0);c(f,b,x,"⊀","\\nprec",!0);c(f,b,x,"⋠","\\npreceq",!0);c(f,b,x,"⋨","\\precnsim",!0);c(f,b,x,"⪹","\\precnapprox",!0);c(f,b,x,"≁","\\nsim",!0);c(f,b,x,"","\\@nshortmid");c(f,b,x,"∤","\\nmid",!0);c(f,b,x,"⊬","\\nvdash",!0);c(f,b,x,"⊭","\\nvDash",!0);c(f,b,x,"⋪","\\ntriangleleft");c(f,b,x,"⋬","\\ntrianglelefteq",!0);c(f,b,x,"⊊","\\subsetneq",!0);c(f,b,x,"","\\@varsubsetneq");c(f,b,x,"⫋","\\subsetneqq",!0);c(f,b,x,"","\\@varsubsetneqq");c(f,b,x,"≯","\\ngtr",!0);c(f,b,x,"","\\@ngeqslant");c(f,b,x,"","\\@ngeqq");c(f,b,x,"⪈","\\gneq",!0);c(f,b,x,"≩","\\gneqq",!0);c(f,b,x,"","\\@gvertneqq");c(f,b,x,"⋧","\\gnsim",!0);c(f,b,x,"⪊","\\gnapprox",!0);c(f,b,x,"⊁","\\nsucc",!0);c(f,b,x,"⋡","\\nsucceq",!0);c(f,b,x,"⋩","\\succnsim",!0);c(f,b,x,"⪺","\\succnapprox",!0);c(f,b,x,"≆","\\ncong",!0);c(f,b,x,"","\\@nshortparallel");c(f,b,x,"∦","\\nparallel",!0);c(f,b,x,"⊯","\\nVDash",!0);c(f,b,x,"⋫","\\ntriangleright");c(f,b,x,"⋭","\\ntrianglerighteq",!0);c(f,b,x,"","\\@nsupseteqq");c(f,b,x,"⊋","\\supsetneq",!0);c(f,b,x,"","\\@varsupsetneq");c(f,b,x,"⫌","\\supsetneqq",!0);c(f,b,x,"","\\@varsupsetneqq");c(f,b,x,"⊮","\\nVdash",!0);c(f,b,x,"⪵","\\precneqq",!0);c(f,b,x,"⪶","\\succneqq",!0);c(f,b,x,"","\\@nsubseteqq");c(f,b,W,"⊴","\\unlhd");c(f,b,W,"⊵","\\unrhd");c(f,b,x,"↚","\\nleftarrow",!0);c(f,b,x,"↛","\\nrightarrow",!0);c(f,b,x,"⇍","\\nLeftarrow",!0);c(f,b,x,"⇏","\\nRightarrow",!0);c(f,b,x,"↮","\\nleftrightarrow",!0);c(f,b,x,"⇎","\\nLeftrightarrow",!0);c(f,b,x,"△","\\vartriangle");c(f,b,T,"ℏ","\\hslash");c(f,b,T,"▽","\\triangledown");c(f,b,T,"◊","\\lozenge");c(f,b,T,"Ⓢ","\\circledS");c(f,b,T,"®","\\circledR");c(B,b,T,"®","\\circledR");c(f,b,T,"∡","\\measuredangle",!0);c(f,b,T,"∄","\\nexists");c(f,b,T,"℧","\\mho");c(f,b,T,"Ⅎ","\\Finv",!0);c(f,b,T,"⅁","\\Game",!0);c(f,b,T,"‵","\\backprime");c(f,b,T,"▲","\\blacktriangle");c(f,b,T,"▼","\\blacktriangledown");c(f,b,T,"■","\\blacksquare");c(f,b,T,"⧫","\\blacklozenge");c(f,b,T,"★","\\bigstar");c(f,b,T,"∢","\\sphericalangle",!0);c(f,b,T,"∁","\\complement",!0);c(f,b,T,"ð","\\eth",!0);c(B,g,T,"ð","ð");c(f,b,T,"╱","\\diagup");c(f,b,T,"╲","\\diagdown");c(f,b,T,"□","\\square");c(f,b,T,"□","\\Box");c(f,b,T,"◊","\\Diamond");c(f,b,T,"¥","\\yen",!0);c(B,b,T,"¥","\\yen",!0);c(f,b,T,"✓","\\checkmark",!0);c(B,b,T,"✓","\\checkmark");c(f,b,T,"ℶ","\\beth",!0);c(f,b,T,"ℸ","\\daleth",!0);c(f,b,T,"ℷ","\\gimel",!0);c(f,b,T,"ϝ","\\digamma",!0);c(f,b,T,"ϰ","\\varkappa");c(f,b,Xe,"┌","\\@ulcorner",!0);c(f,b,Pe,"┐","\\@urcorner",!0);c(f,b,Xe,"└","\\@llcorner",!0);c(f,b,Pe,"┘","\\@lrcorner",!0);c(f,b,x,"≦","\\leqq",!0);c(f,b,x,"⩽","\\leqslant",!0);c(f,b,x,"⪕","\\eqslantless",!0);c(f,b,x,"≲","\\lesssim",!0);c(f,b,x,"⪅","\\lessapprox",!0);c(f,b,x,"≊","\\approxeq",!0);c(f,b,W,"⋖","\\lessdot");c(f,b,x,"⋘","\\lll",!0);c(f,b,x,"≶","\\lessgtr",!0);c(f,b,x,"⋚","\\lesseqgtr",!0);c(f,b,x,"⪋","\\lesseqqgtr",!0);c(f,b,x,"≑","\\doteqdot");c(f,b,x,"≓","\\risingdotseq",!0);c(f,b,x,"≒","\\fallingdotseq",!0);c(f,b,x,"∽","\\backsim",!0);c(f,b,x,"⋍","\\backsimeq",!0);c(f,b,x,"⫅","\\subseteqq",!0);c(f,b,x,"⋐","\\Subset",!0);c(f,b,x,"⊏","\\sqsubset",!0);c(f,b,x,"≼","\\preccurlyeq",!0);c(f,b,x,"⋞","\\curlyeqprec",!0);c(f,b,x,"≾","\\precsim",!0);c(f,b,x,"⪷","\\precapprox",!0);c(f,b,x,"⊲","\\vartriangleleft");c(f,b,x,"⊴","\\trianglelefteq");c(f,b,x,"⊨","\\vDash",!0);c(f,b,x,"⊪","\\Vvdash",!0);c(f,b,x,"⌣","\\smallsmile");c(f,b,x,"⌢","\\smallfrown");c(f,b,x,"≏","\\bumpeq",!0);c(f,b,x,"≎","\\Bumpeq",!0);c(f,b,x,"≧","\\geqq",!0);c(f,b,x,"⩾","\\geqslant",!0);c(f,b,x,"⪖","\\eqslantgtr",!0);c(f,b,x,"≳","\\gtrsim",!0);c(f,b,x,"⪆","\\gtrapprox",!0);c(f,b,W,"⋗","\\gtrdot");c(f,b,x,"⋙","\\ggg",!0);c(f,b,x,"≷","\\gtrless",!0);c(f,b,x,"⋛","\\gtreqless",!0);c(f,b,x,"⪌","\\gtreqqless",!0);c(f,b,x,"≖","\\eqcirc",!0);c(f,b,x,"≗","\\circeq",!0);c(f,b,x,"≜","\\triangleq",!0);c(f,b,x,"∼","\\thicksim");c(f,b,x,"≈","\\thickapprox");c(f,b,x,"⫆","\\supseteqq",!0);c(f,b,x,"⋑","\\Supset",!0);c(f,b,x,"⊐","\\sqsupset",!0);c(f,b,x,"≽","\\succcurlyeq",!0);c(f,b,x,"⋟","\\curlyeqsucc",!0);c(f,b,x,"≿","\\succsim",!0);c(f,b,x,"⪸","\\succapprox",!0);c(f,b,x,"⊳","\\vartriangleright");c(f,b,x,"⊵","\\trianglerighteq");c(f,b,x,"⊩","\\Vdash",!0);c(f,b,x,"∣","\\shortmid");c(f,b,x,"∥","\\shortparallel");c(f,b,x,"≬","\\between",!0);c(f,b,x,"⋔","\\pitchfork",!0);c(f,b,x,"∝","\\varpropto");c(f,b,x,"◀","\\blacktriangleleft");c(f,b,x,"∴","\\therefore",!0);c(f,b,x,"∍","\\backepsilon");c(f,b,x,"▶","\\blacktriangleright");c(f,b,x,"∵","\\because",!0);c(f,b,x,"⋘","\\llless");c(f,b,x,"⋙","\\gggtr");c(f,b,W,"⊲","\\lhd");c(f,b,W,"⊳","\\rhd");c(f,b,x,"≂","\\eqsim",!0);c(f,g,x,"⋈","\\Join");c(f,b,x,"≑","\\Doteq",!0);c(f,b,W,"∔","\\dotplus",!0);c(f,b,W,"∖","\\smallsetminus");c(f,b,W,"⋒","\\Cap",!0);c(f,b,W,"⋓","\\Cup",!0);c(f,b,W,"⩞","\\doublebarwedge",!0);c(f,b,W,"⊟","\\boxminus",!0);c(f,b,W,"⊞","\\boxplus",!0);c(f,b,W,"⋇","\\divideontimes",!0);c(f,b,W,"⋉","\\ltimes",!0);c(f,b,W,"⋊","\\rtimes",!0);c(f,b,W,"⋋","\\leftthreetimes",!0);c(f,b,W,"⋌","\\rightthreetimes",!0);c(f,b,W,"⋏","\\curlywedge",!0);c(f,b,W,"⋎","\\curlyvee",!0);c(f,b,W,"⊝","\\circleddash",!0);c(f,b,W,"⊛","\\circledast",!0);c(f,b,W,"⋅","\\centerdot");c(f,b,W,"⊺","\\intercal",!0);c(f,b,W,"⋒","\\doublecap");c(f,b,W,"⋓","\\doublecup");c(f,b,W,"⊠","\\boxtimes",!0);c(f,b,x,"⇢","\\dashrightarrow",!0);c(f,b,x,"⇠","\\dashleftarrow",!0);c(f,b,x,"⇇","\\leftleftarrows",!0);c(f,b,x,"⇆","\\leftrightarrows",!0);c(f,b,x,"⇚","\\Lleftarrow",!0);c(f,b,x,"↞","\\twoheadleftarrow",!0);c(f,b,x,"↢","\\leftarrowtail",!0);c(f,b,x,"↫","\\looparrowleft",!0);c(f,b,x,"⇋","\\leftrightharpoons",!0);c(f,b,x,"↶","\\curvearrowleft",!0);c(f,b,x,"↺","\\circlearrowleft",!0);c(f,b,x,"↰","\\Lsh",!0);c(f,b,x,"⇈","\\upuparrows",!0);c(f,b,x,"↿","\\upharpoonleft",!0);c(f,b,x,"⇃","\\downharpoonleft",!0);c(f,g,x,"⊶","\\origof",!0);c(f,g,x,"⊷","\\imageof",!0);c(f,b,x,"⊸","\\multimap",!0);c(f,b,x,"↭","\\leftrightsquigarrow",!0);c(f,b,x,"⇉","\\rightrightarrows",!0);c(f,b,x,"⇄","\\rightleftarrows",!0);c(f,b,x,"↠","\\twoheadrightarrow",!0);c(f,b,x,"↣","\\rightarrowtail",!0);c(f,b,x,"↬","\\looparrowright",!0);c(f,b,x,"↷","\\curvearrowright",!0);c(f,b,x,"↻","\\circlearrowright",!0);c(f,b,x,"↱","\\Rsh",!0);c(f,b,x,"⇊","\\downdownarrows",!0);c(f,b,x,"↾","\\upharpoonright",!0);c(f,b,x,"⇂","\\downharpoonright",!0);c(f,b,x,"⇝","\\rightsquigarrow",!0);c(f,b,x,"⇝","\\leadsto");c(f,b,x,"⇛","\\Rrightarrow",!0);c(f,b,x,"↾","\\restriction");c(f,g,T,"‘","`");c(f,g,T,"$","\\$");c(B,g,T,"$","\\$");c(B,g,T,"$","\\textdollar");c(f,g,T,"%","\\%");c(B,g,T,"%","\\%");c(f,g,T,"_","\\_");c(B,g,T,"_","\\_");c(B,g,T,"_","\\textunderscore");c(f,g,T,"∠","\\angle",!0);c(f,g,T,"∞","\\infty",!0);c(f,g,T,"′","\\prime");c(f,g,T,"△","\\triangle");c(f,g,T,"Γ","\\Gamma",!0);c(f,g,T,"Δ","\\Delta",!0);c(f,g,T,"Θ","\\Theta",!0);c(f,g,T,"Λ","\\Lambda",!0);c(f,g,T,"Ξ","\\Xi",!0);c(f,g,T,"Π","\\Pi",!0);c(f,g,T,"Σ","\\Sigma",!0);c(f,g,T,"Υ","\\Upsilon",!0);c(f,g,T,"Φ","\\Phi",!0);c(f,g,T,"Ψ","\\Psi",!0);c(f,g,T,"Ω","\\Omega",!0);c(f,g,T,"A","Α");c(f,g,T,"B","Β");c(f,g,T,"E","Ε");c(f,g,T,"Z","Ζ");c(f,g,T,"H","Η");c(f,g,T,"I","Ι");c(f,g,T,"K","Κ");c(f,g,T,"M","Μ");c(f,g,T,"N","Ν");c(f,g,T,"O","Ο");c(f,g,T,"P","Ρ");c(f,g,T,"T","Τ");c(f,g,T,"X","Χ");c(f,g,T,"¬","\\neg",!0);c(f,g,T,"¬","\\lnot");c(f,g,T,"⊤","\\top");c(f,g,T,"⊥","\\bot");c(f,g,T,"∅","\\emptyset");c(f,b,T,"∅","\\varnothing");c(f,g,Z,"α","\\alpha",!0);c(f,g,Z,"β","\\beta",!0);c(f,g,Z,"γ","\\gamma",!0);c(f,g,Z,"δ","\\delta",!0);c(f,g,Z,"ϵ","\\epsilon",!0);c(f,g,Z,"ζ","\\zeta",!0);c(f,g,Z,"η","\\eta",!0);c(f,g,Z,"θ","\\theta",!0);c(f,g,Z,"ι","\\iota",!0);c(f,g,Z,"κ","\\kappa",!0);c(f,g,Z,"λ","\\lambda",!0);c(f,g,Z,"μ","\\mu",!0);c(f,g,Z,"ν","\\nu",!0);c(f,g,Z,"ξ","\\xi",!0);c(f,g,Z,"ο","\\omicron",!0);c(f,g,Z,"π","\\pi",!0);c(f,g,Z,"ρ","\\rho",!0);c(f,g,Z,"σ","\\sigma",!0);c(f,g,Z,"τ","\\tau",!0);c(f,g,Z,"υ","\\upsilon",!0);c(f,g,Z,"ϕ","\\phi",!0);c(f,g,Z,"χ","\\chi",!0);c(f,g,Z,"ψ","\\psi",!0);c(f,g,Z,"ω","\\omega",!0);c(f,g,Z,"ε","\\varepsilon",!0);c(f,g,Z,"ϑ","\\vartheta",!0);c(f,g,Z,"ϖ","\\varpi",!0);c(f,g,Z,"ϱ","\\varrho",!0);c(f,g,Z,"ς","\\varsigma",!0);c(f,g,Z,"φ","\\varphi",!0);c(f,g,W,"∗","*",!0);c(f,g,W,"+","+");c(f,g,W,"−","-",!0);c(f,g,W,"⋅","\\cdot",!0);c(f,g,W,"∘","\\circ",!0);c(f,g,W,"÷","\\div",!0);c(f,g,W,"±","\\pm",!0);c(f,g,W,"×","\\times",!0);c(f,g,W,"∩","\\cap",!0);c(f,g,W,"∪","\\cup",!0);c(f,g,W,"∖","\\setminus",!0);c(f,g,W,"∧","\\land");c(f,g,W,"∨","\\lor");c(f,g,W,"∧","\\wedge",!0);c(f,g,W,"∨","\\vee",!0);c(f,g,T,"√","\\surd");c(f,g,Xe,"⟨","\\langle",!0);c(f,g,Xe,"∣","\\lvert");c(f,g,Xe,"∥","\\lVert");c(f,g,Pe,"?","?");c(f,g,Pe,"!","!");c(f,g,Pe,"⟩","\\rangle",!0);c(f,g,Pe,"∣","\\rvert");c(f,g,Pe,"∥","\\rVert");c(f,g,x,"=","=");c(f,g,x,":",":");c(f,g,x,"≈","\\approx",!0);c(f,g,x,"≅","\\cong",!0);c(f,g,x,"≥","\\ge");c(f,g,x,"≥","\\geq",!0);c(f,g,x,"←","\\gets");c(f,g,x,">","\\gt",!0);c(f,g,x,"∈","\\in",!0);c(f,g,x,"","\\@not");c(f,g,x,"⊂","\\subset",!0);c(f,g,x,"⊃","\\supset",!0);c(f,g,x,"⊆","\\subseteq",!0);c(f,g,x,"⊇","\\supseteq",!0);c(f,b,x,"⊈","\\nsubseteq",!0);c(f,b,x,"⊉","\\nsupseteq",!0);c(f,g,x,"⊨","\\models");c(f,g,x,"←","\\leftarrow",!0);c(f,g,x,"≤","\\le");c(f,g,x,"≤","\\leq",!0);c(f,g,x,"<","\\lt",!0);c(f,g,x,"→","\\rightarrow",!0);c(f,g,x,"→","\\to");c(f,b,x,"≱","\\ngeq",!0);c(f,b,x,"≰","\\nleq",!0);c(f,g,xt," ","\\ ");c(f,g,xt," ","\\space");c(f,g,xt," ","\\nobreakspace");c(B,g,xt," ","\\ ");c(B,g,xt," "," ");c(B,g,xt," ","\\space");c(B,g,xt," ","\\nobreakspace");c(f,g,xt,null,"\\nobreak");c(f,g,xt,null,"\\allowbreak");c(f,g,Er,",",",");c(f,g,Er,";",";");c(f,b,W,"⊼","\\barwedge",!0);c(f,b,W,"⊻","\\veebar",!0);c(f,g,W,"⊙","\\odot",!0);c(f,g,W,"⊕","\\oplus",!0);c(f,g,W,"⊗","\\otimes",!0);c(f,g,T,"∂","\\partial",!0);c(f,g,W,"⊘","\\oslash",!0);c(f,b,W,"⊚","\\circledcirc",!0);c(f,b,W,"⊡","\\boxdot",!0);c(f,g,W,"△","\\bigtriangleup");c(f,g,W,"▽","\\bigtriangledown");c(f,g,W,"†","\\dagger");c(f,g,W,"⋄","\\diamond");c(f,g,W,"⋆","\\star");c(f,g,W,"◃","\\triangleleft");c(f,g,W,"▹","\\triangleright");c(f,g,Xe,"{","\\{");c(B,g,T,"{","\\{");c(B,g,T,"{","\\textbraceleft");c(f,g,Pe,"}","\\}");c(B,g,T,"}","\\}");c(B,g,T,"}","\\textbraceright");c(f,g,Xe,"{","\\lbrace");c(f,g,Pe,"}","\\rbrace");c(f,g,Xe,"[","\\lbrack",!0);c(B,g,T,"[","\\lbrack",!0);c(f,g,Pe,"]","\\rbrack",!0);c(B,g,T,"]","\\rbrack",!0);c(f,g,Xe,"(","\\lparen",!0);c(f,g,Pe,")","\\rparen",!0);c(B,g,T,"<","\\textless",!0);c(B,g,T,">","\\textgreater",!0);c(f,g,Xe,"⌊","\\lfloor",!0);c(f,g,Pe,"⌋","\\rfloor",!0);c(f,g,Xe,"⌈","\\lceil",!0);c(f,g,Pe,"⌉","\\rceil",!0);c(f,g,T,"\\","\\backslash");c(f,g,T,"∣","|");c(f,g,T,"∣","\\vert");c(B,g,T,"|","\\textbar",!0);c(f,g,T,"∥","\\|");c(f,g,T,"∥","\\Vert");c(B,g,T,"∥","\\textbardbl");c(B,g,T,"~","\\textasciitilde");c(B,g,T,"\\","\\textbackslash");c(B,g,T,"^","\\textasciicircum");c(f,g,x,"↑","\\uparrow",!0);c(f,g,x,"⇑","\\Uparrow",!0);c(f,g,x,"↓","\\downarrow",!0);c(f,g,x,"⇓","\\Downarrow",!0);c(f,g,x,"↕","\\updownarrow",!0);c(f,g,x,"⇕","\\Updownarrow",!0);c(f,g,Ae,"∐","\\coprod");c(f,g,Ae,"⋁","\\bigvee");c(f,g,Ae,"⋀","\\bigwedge");c(f,g,Ae,"⨄","\\biguplus");c(f,g,Ae,"⋂","\\bigcap");c(f,g,Ae,"⋃","\\bigcup");c(f,g,Ae,"∫","\\int");c(f,g,Ae,"∫","\\intop");c(f,g,Ae,"∬","\\iint");c(f,g,Ae,"∭","\\iiint");c(f,g,Ae,"∏","\\prod");c(f,g,Ae,"∑","\\sum");c(f,g,Ae,"⨂","\\bigotimes");c(f,g,Ae,"⨁","\\bigoplus");c(f,g,Ae,"⨀","\\bigodot");c(f,g,Ae,"∮","\\oint");c(f,g,Ae,"∯","\\oiint");c(f,g,Ae,"∰","\\oiiint");c(f,g,Ae,"⨆","\\bigsqcup");c(f,g,Ae,"∫","\\smallint");c(B,g,ar,"…","\\textellipsis");c(f,g,ar,"…","\\mathellipsis");c(B,g,ar,"…","\\ldots",!0);c(f,g,ar,"…","\\ldots",!0);c(f,g,ar,"⋯","\\@cdots",!0);c(f,g,ar,"⋱","\\ddots",!0);c(f,g,T,"⋮","\\varvdots");c(B,g,T,"⋮","\\varvdots");c(f,g,ge,"ˊ","\\acute");c(f,g,ge,"ˋ","\\grave");c(f,g,ge,"¨","\\ddot");c(f,g,ge,"~","\\tilde");c(f,g,ge,"ˉ","\\bar");c(f,g,ge,"˘","\\breve");c(f,g,ge,"ˇ","\\check");c(f,g,ge,"^","\\hat");c(f,g,ge,"⃗","\\vec");c(f,g,ge,"˙","\\dot");c(f,g,ge,"˚","\\mathring");c(f,g,Z,"","\\@imath");c(f,g,Z,"","\\@jmath");c(f,g,T,"ı","ı");c(f,g,T,"ȷ","ȷ");c(B,g,T,"ı","\\i",!0);c(B,g,T,"ȷ","\\j",!0);c(B,g,T,"ß","\\ss",!0);c(B,g,T,"æ","\\ae",!0);c(B,g,T,"œ","\\oe",!0);c(B,g,T,"ø","\\o",!0);c(B,g,T,"Æ","\\AE",!0);c(B,g,T,"Œ","\\OE",!0);c(B,g,T,"Ø","\\O",!0);c(B,g,ge,"ˊ","\\'");c(B,g,ge,"ˋ","\\`");c(B,g,ge,"ˆ","\\^");c(B,g,ge,"˜","\\~");c(B,g,ge,"ˉ","\\=");c(B,g,ge,"˘","\\u");c(B,g,ge,"˙","\\.");c(B,g,ge,"¸","\\c");c(B,g,ge,"˚","\\r");c(B,g,ge,"ˇ","\\v");c(B,g,ge,"¨",'\\"');c(B,g,ge,"˝","\\H");c(B,g,ge,"◯","\\textcircled");var cs={"--":!0,"---":!0,"``":!0,"''":!0};c(B,g,T,"–","--",!0);c(B,g,T,"–","\\textendash");c(B,g,T,"—","---",!0);c(B,g,T,"—","\\textemdash");c(B,g,T,"‘","`",!0);c(B,g,T,"‘","\\textquoteleft");c(B,g,T,"’","'",!0);c(B,g,T,"’","\\textquoteright");c(B,g,T,"“","``",!0);c(B,g,T,"“","\\textquotedblleft");c(B,g,T,"”","''",!0);c(B,g,T,"”","\\textquotedblright");c(f,g,T,"°","\\degree",!0);c(B,g,T,"°","\\degree");c(B,g,T,"°","\\textdegree",!0);c(f,g,T,"£","\\pounds");c(f,g,T,"£","\\mathsterling",!0);c(B,g,T,"£","\\pounds");c(B,g,T,"£","\\textsterling",!0);c(f,b,T,"✠","\\maltese");c(B,b,T,"✠","\\maltese");var ma='0123456789/@."';for(var Yn=0;Yn{var r=e.charCodeAt(0),n=e.charCodeAt(1),i=(r-55296)*1024+(n-56320)+65536,a=t==="math"?0:1;if(119808<=i&&i<120484){var l=Math.floor((i-119808)/26);return[Gr[l][2],Gr[l][a]]}else if(120782<=i&&i<=120831){var s=Math.floor((i-120782)/10);return[ga[s][2],ga[s][a]]}else{if(i===120485||i===120486)return[Gr[0][2],Gr[0][a]];if(1204860)return Re(a,u,i,r,l.concat(h));if(o){var m,d;if(o==="boldsymbol"){var p=yf(a,i,r,l,n);m=p.fontName,d=[p.fontClass]}else s?(m=z0[o].fontName,d=[o]):(m=_r(o,r.fontWeight,r.fontShape),d=[o,r.fontWeight,r.fontShape]);if(gn(a,m,i).metrics)return Re(a,m,i,r,l.concat(d));if(cs.hasOwnProperty(a)&&m.slice(0,10)==="Typewriter"){for(var y=[],w=0;w{if(zt(e.classes)!==zt(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(e.style))if(e.style[n]!==t.style[n])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},hs=e=>{for(var t=0;tr&&(r=l.height),l.depth>n&&(n=l.depth),l.maxFontSize>i&&(i=l.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},F=function(t,r,n,i){var a=new ir(t,r,n,i);return li(a),a},Mt=(e,t,r,n)=>new ir(e,t,r,n),Jt=function(t,r,n){var i=F([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=P(i.height),i.maxFontSize=1,i},xf=function(t,r,n,i){var a=new dn(t,r,n,i);return li(a),a},wt=function(t){var r=new nr(t);return li(r),r},er=function(t,r){return t instanceof nr?F([],[t],r):t},wf=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,l=1;l{var r=F(["mspace"],[],t),n=ye(e,t);return r.style.marginRight=P(n),r},_r=function(t,r,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},z0={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},fs={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ps=function(t,r){var[n,i,a]=fs[t],l=new Ct(n),s=new vt([l],{width:P(i),height:P(a),style:"width:"+P(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),o=Mt(["overlay"],[s],r);return o.height=a,o.style.height=P(a),o.style.width=P(i),o},ve={number:3,unit:"mu"},Pt={number:4,unit:"mu"},pt={number:5,unit:"mu"},kf={mord:{mop:ve,mbin:Pt,mrel:pt,minner:ve},mop:{mord:ve,mop:ve,mrel:pt,minner:ve},mbin:{mord:Pt,mop:Pt,mopen:Pt,minner:Pt},mrel:{mord:pt,mop:pt,mopen:pt,minner:pt},mopen:{},mclose:{mop:ve,mbin:Pt,mrel:pt,minner:ve},mpunct:{mord:ve,mop:ve,mrel:pt,mopen:ve,mclose:ve,mpunct:ve,minner:ve},minner:{mord:ve,mop:ve,mbin:Pt,mrel:pt,mopen:ve,mpunct:ve,minner:ve}},Sf={mord:{mop:ve},mop:{mord:ve,mop:ve},mbin:{},mrel:{},mopen:{},mclose:{mop:ve},mpunct:{},minner:{mop:ve}},ds={},sn={},on={};function _(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:l}=e,s={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},o=0;o{var C=w.classes[0],A=y.classes[0];C==="mbin"&&Tf.has(A)?w.classes[0]="mord":A==="mbin"&&Af.has(C)&&(y.classes[0]="mord")},{node:m},d,p),C0(a,(y,w)=>{var C,A,z=E0(w),D=E0(y),O=z&&D?y.hasClass("mtight")?(C=Sf[z])==null?void 0:C[D]:(A=kf[z])==null?void 0:A[D]:null;if(O)return ms(O,u)},{node:m},d,p),a},C0=function(t,r,n,i,a){i&&t.push(i);for(var l=0;ld=>{t.splice(m+1,0,d),l++})(l)}i&&t.pop()},gs=function(t){return t instanceof nr||t instanceof dn||t instanceof ir&&t.hasClass("enclosing")?t:null},M0=function(t,r){var n=gs(t);if(n){var i=n.children;if(i.length){if(r==="right")return M0(i[i.length-1],"right");if(r==="left")return M0(i[0],"left")}}return t},E0=function(t,r){if(!t)return null;r&&(t=M0(t,r));var n=t.classes[0];return Cf[n]||null},Ar=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return F(r.concat(n))},ue=function(t,r,n){if(!t)return F();if(sn[t.type]){var i=sn[t.type](t,r);if(n&&r.size!==n.size){i=F(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new R("Got group of unknown type: '"+t.type+"'")};function Wr(e,t){var r=F(["base"],e,t),n=F(["strut"]);return n.style.height=P(r.height+r.depth),r.depth&&(n.style.verticalAlign=P(-r.depth)),r.children.unshift(n),r}function D0(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=ze(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],l=[],s=0;s0&&(a.push(Wr(l,t)),l=[]),a.push(n[s]));l.length>0&&a.push(Wr(l,t));var u;r?(u=Wr(ze(r,t,!0),t),u.classes=["tag"],a.push(u)):i&&a.push(i);var h=F(["katex-html"],a);if(h.setAttribute("aria-hidden","true"),u){var m=u.children[0];m.style.height=P(h.height+h.depth),h.depth&&(m.style.verticalAlign=P(-h.depth))}return h}function vs(e){return new nr(e)}class L{constructor(t,r,n){this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=zt(this.classes));for(var n=0;n0&&(t+=' class ="'+De(zt(this.classes))+'"'),t+=">";for(var n=0;n",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Se{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return De(this.toText())}toText(){return this.text}}class ys{constructor(t){this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",P(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Mf=new Set(["\\imath","\\jmath"]),Ef=new Set(["mrow","mtable"]),Je=function(t,r,n){return de[r][t]&&de[r][t].replace&&t.charCodeAt(0)!==55349&&!(cs.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=de[r][t].replace),new Se(t)},si=function(t){return t.length===1?t[0]:new L("mrow",t)},oi=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=t.text;if(Mf.has(a))return null;if(de[i][a]){var l=de[i][a].replace;l&&(a=l)}var s=z0[n].fontName;return ii(a,s,i)?z0[n].variant:null};function Jn(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Se&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Se&&r.text===","}else return!1}var Ye=function(t,r,n){if(t.length===1){var i=me(t[0],r);return n&&i instanceof L&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],l,s=0;s=1&&(l.type==="mn"||Jn(l))){var u=o.children[0];u instanceof L&&u.type==="mn"&&(u.children=[...l.children,...u.children],a.pop())}else if(l.type==="mi"&&l.children.length===1){var h=l.children[0];if(h instanceof Se&&h.text==="̸"&&(o.type==="mo"||o.type==="mi"||o.type==="mn")){var m=o.children[0];m instanceof Se&&m.text.length>0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),a.pop())}}}a.push(o),l=o}return a},Et=function(t,r,n){return si(Ye(t,r,n))},me=function(t,r){if(!t)return new L("mrow");if(on[t.type]){var n=on[t.type](t,r);return n}else throw new R("Got group of unknown type: '"+t.type+"'")};function va(e,t,r,n,i){var a=Ye(e,r),l;a.length===1&&a[0]instanceof L&&Ef.has(a[0].type)?l=a[0]:l=new L("mrow",a);var s=new L("annotation",[new Se(t)]);s.setAttribute("encoding","application/x-tex");var o=new L("semantics",[l,s]),u=new L("math",[o]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var h=i?"katex":"katex-mathml";return F([h],[u])}var Df=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ya=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ba=function(t,r){return r.size<2?t:Df[t-1][r.size-1]};class dt{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||dt.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=ya[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,t),new dt(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:ba(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:ya[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=ba(dt.BASESIZE,t);return this.size===r&&this.textSize===dt.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==dt.BASESIZE?["sizing","reset-size"+this.size,"size"+dt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=pf(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}dt.BASESIZE=6;var bs=function(t){return new dt({style:t.displayMode?ee.DISPLAY:ee.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},xs=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=F(n,[t])}return t},If=function(t,r,n){var i=bs(n),a;if(n.output==="mathml")return va(t,r,i,n.displayMode,!0);if(n.output==="html"){var l=D0(t,i);a=F(["katex"],[l])}else{var s=va(t,r,i,n.displayMode,!1),o=D0(t,i);a=F(["katex"],[s,o])}return xs(a,n)},Bf=function(t,r,n){var i=bs(n),a=D0(t,i),l=F(["katex"],[a]);return xs(l,n)},Ff={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},yn=function(t){var r=new L("mo",[new Se(Ff[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},Rf={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Nf=new Set(["widehat","widecheck","widetilde","utilde"]),bn=function(t,r){function n(){var s=4e5,o=t.label.slice(1);if(Nf.has(o)){var u=t,h=u.base.type==="ordgroup"?u.base.body.length:1,m,d,p;if(h>5)o==="widehat"||o==="widecheck"?(m=420,s=2364,p=.42,d=o+"4"):(m=312,s=2340,p=.34,d="tilde4");else{var y=[1,1,2,2,3,3][h];o==="widehat"||o==="widecheck"?(s=[0,1062,2364,2364,2364][y],m=[0,239,300,360,420][y],p=[0,.24,.3,.3,.36,.42][y],d=o+y):(s=[0,600,1033,2339,2340][y],m=[0,260,286,306,312][y],p=[0,.26,.286,.3,.306,.34][y],d="tilde"+y)}var w=new Ct(d),C=new vt([w],{width:"100%",height:P(p),viewBox:"0 0 "+s+" "+m,preserveAspectRatio:"none"});return{span:Mt([],[C],r),minWidth:0,height:p}}else{var A=[],z=Rf[o],[D,O,V]=z,M=V/1e3,G=D.length,K,$;if(G===1){var E=z[3];K=["hide-tail"],$=[E]}else if(G===2)K=["halfarrow-left","halfarrow-right"],$=["xMinYMin","xMaxYMin"];else if(G===3)K=["brace-left","brace-center","brace-right"],$=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+G+" children.");for(var U=0;U0&&(i.style.minWidth=P(a)),i},Lf=function(t,r,n,i,a){var l,s=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(l=F(["stretchy",r],[],a),r==="fbox"){var o=a.color&&a.getColor();o&&(l.style.borderColor=o)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new A0({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new A0({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new vt(u,{width:"100%",height:P(s)});l=Mt([],[h],a)}return l.height=s,l.style.height=P(s),l};function re(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function xn(e){var t=wn(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function wn(e){return e&&(e.type==="atom"||gf.hasOwnProperty(e.type))?e:null}var ws=e=>{if(e instanceof We)return e;if(mf(e)&&e.children.length===1)return ws(e.children[0])},ui=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=re(e.base,"accent"),r=n.base,e.base=r,i=hf(ue(e,t)),e.base=n):(n=re(e,"accent"),r=n.base);var a=ue(r,t.havingCrampedStyle()),l=n.isShifty&&bt(r),s=0;if(l){var o,u;s=(o=(u=ws(a))==null?void 0:u.skew)!=null?o:0}var h=n.label==="\\c",m=h?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),d;if(n.isStretchy)d=bn(n,t),d=oe({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:d,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+P(2*s)+")",marginLeft:P(2*s)}:void 0}]});else{var p,y;n.label==="\\vec"?(p=ps("vec",t),y=fs.vec[1]):(p=vn({mode:n.mode,text:n.label},t,"textord"),p=cf(p),p.italic=0,y=p.width,h&&(m+=p.depth)),d=F(["accent-body"],[p]);var w=n.label==="\\textcircled";w&&(d.classes.push("accent-full"),m=a.height);var C=s;w||(C-=y/2),d.style.left=P(C),n.label==="\\textcircled"&&(d.style.top=".2em"),d=oe({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-m},{type:"elem",elem:d}]})}var A=F(["mord","accent"],[d],t);return i?(i.children[0]=A,i.height=Math.max(A.height,i.height),i.classes[0]="mord",i):A},ks=(e,t)=>{var r=e.isStretchy?yn(e.label):new L("mo",[Je(e.label,e.mode)]),n=new L("mover",[me(e.base,t),r]);return n.setAttribute("accent","true"),n},Pf=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));_({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=un(t[0]),n=!Pf.test(e.funcName),i=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:ui,mathmlBuilder:ks});_({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:ui,mathmlBuilder:ks});_({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(e,t)=>{var r=ue(e.base,t),n=bn(e,t),i=e.label==="\\utilde"?.12:0,a=oe({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return F(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var r=yn(e.label),n=new L("munder",[me(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Xr=e=>{var t=new L("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};_({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=er(ue(e.body,n,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var l;e.below&&(n=t.havingStyle(r.sub()),l=er(ue(e.below,n,t),t),l.classes.push(a+"-arrow-pad"));var s=bn(e,t),o=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(u-=i.depth);var h;if(l){var m=-t.fontMetrics().axisHeight+l.height+.5*s.height+.111;h=oe({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:s,shift:o},{type:"elem",elem:l,shift:m}]})}else h=oe({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:s,shift:o}]});return h.children[0].children[0].children[1].classes.push("svg-align"),F(["mrel","x-arrow"],[h],t)},mathmlBuilder(e,t){var r=yn(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=Xr(me(e.body,t));if(e.below){var a=Xr(me(e.below,t));n=new L("munderover",[r,a,i])}else n=new L("mover",[r,i])}else if(e.below){var l=Xr(me(e.below,t));n=new L("munder",[r,l])}else n=Xr(),n=new L("mover",[r,n]);return n}});function Ss(e,t){var r=ze(e.body,t,!0);return F([e.mclass],r,t)}function As(e,t){var r,n=Ye(e.body,t);return e.mclass==="minner"?r=new L("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new L("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new L("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}_({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:ke(i),isCharacterBox:bt(i)}},htmlBuilder:Ss,mathmlBuilder:As});var kn=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};_({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:kn(t[0]),body:ke(t[1]),isCharacterBox:bt(t[1])}}});_({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,i=t[1],a=t[0],l;n!=="\\stackrel"?l=kn(i):l="mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:ke(i)},o={type:"supsub",mode:a.mode,base:s,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:l,body:[o],isCharacterBox:bt(o)}},htmlBuilder:Ss,mathmlBuilder:As});_({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:kn(t[0]),body:ke(t[0])}},htmlBuilder(e,t){var r=ze(e.body,t,!0),n=F([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Ye(e.body,t),n=new L("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var Of={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},xa=()=>({type:"styling",body:[],mode:"math",style:"display"}),wa=e=>e.type==="textord"&&e.text==="@",qf=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Hf(e,t,r){var n=Of[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},l=r.callFunction("\\Big",[a],[]),s=r.callFunction("\\\\cdright",[t[1]],[]),o={type:"ordgroup",mode:"math",body:[i,l,s]};return r.callFunction("\\\\cdparent",[o],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function jf(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new R("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],a=0;aAV".includes(u))for(var m=0;m<2;m++){for(var d=!0,p=o+1;pAV=|." after @',l[o]);var y=Hf(u,h,e),w={type:"styling",body:[y],mode:"math",style:"display"};n.push(w),s=xa()}a%2===0?n.push(s):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var C=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}_({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=er(ue(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=P(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new L("mrow",[me(e.label,t)]);return r=new L("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new L("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});_({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=er(ue(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new L("mrow",[me(e.fragment,t)])}});_({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=re(t[0],"ordgroup"),i=n.body,a="",l=0;l=1114111)throw new R("\\@char with invalid code point "+a);return o<=65535?u=String.fromCharCode(o):(o-=65536,u=String.fromCharCode((o>>10)+55296,(o&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var Ts=(e,t)=>{var r=ze(e.body,t.withColor(e.color),!1);return wt(r)},zs=(e,t)=>{var r=Ye(e.body,t.withColor(e.color)),n=new L("mstyle",r);return n.setAttribute("mathcolor",e.color),n};_({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=re(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:ke(i)}},htmlBuilder:Ts,mathmlBuilder:zs});_({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=re(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:Ts,mathmlBuilder:zs});_({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&re(i,"size").value}},htmlBuilder(e,t){var r=F(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=P(ye(e.size,t)))),r},mathmlBuilder(e,t){var r=new L("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",P(ye(e.size,t)))),r}});var I0={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Cs=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new R("Expected a control sequence",e);return t},Vf=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Ms=(e,t,r,n)=>{var i=e.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)};_({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(I0[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=I0[n.text]),re(t.parseFunction(),"internal");throw new R("Invalid token after macro prefix",n)}});_({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new R("Expected a control sequence",n);for(var a=0,l,s=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){l=t.gullet.future(),s[a].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new R('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new R('Argument number "'+n.text+'" out of order');a++,s.push([])}else{if(n.text==="EOF")throw new R("Expected a macro definition");s[a].push(n.text)}var{tokens:o}=t.gullet.consumeArg();return l&&o.unshift(l),(r==="\\edef"||r==="\\xdef")&&(o=t.gullet.expandTokens(o),o.reverse()),t.gullet.macros.set(i,{tokens:o,numArgs:a,delimiters:s},r===I0[r]),{type:"internal",mode:t.mode}}});_({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Cs(t.gullet.popToken());t.gullet.consumeSpaces();var i=Vf(t);return Ms(t,n,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});_({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Cs(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Ms(t,n,a,r==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var dr=function(t,r,n){var i=de.math[t]&&de.math[t].replace,a=ii(i||t,r,n);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return a},ci=function(t,r,n,i){var a=n.havingBaseStyle(r),l=F(i.concat(a.sizingClasses(n)),[t],n),s=a.sizeMultiplier/n.sizeMultiplier;return l.height*=s,l.depth*=s,l.maxFontSize=a.sizeMultiplier,l},Es=function(t,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=P(a),t.height-=a,t.depth+=a},$f=function(t,r,n,i,a,l){var s=Re(t,"Main-Regular",a,i),o=ci(s,r,i,l);return Es(o,i,r),o},Uf=function(t,r,n,i){return Re(t,"Size"+r+"-Regular",n,i)},Ds=function(t,r,n,i,a,l){var s=Uf(t,r,a,i),o=ci(F(["delimsizing","size"+r],[s],i),ee.TEXT,i,l);return n&&Es(o,i,ee.TEXT),o},e0=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=F(["delimsizinginner",i],[F([],[Re(t,r,n)])]);return{type:"elem",elem:a}},t0=function(t,r,n){var i=lt["Size4-Regular"][t.charCodeAt(0)]?lt["Size4-Regular"][t.charCodeAt(0)][4]:lt["Size1-Regular"][t.charCodeAt(0)][4],a=new Ct("inner",nf(t,Math.round(1e3*r))),l=new vt([a],{width:P(i),height:P(r),style:"width:"+P(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),s=Mt([],[l],n);return s.height=r,s.style.height=P(r),s.style.width=P(i),{type:"elem",elem:s}},B0=.008,Yr={type:"kern",size:-1*B0},Gf=new Set(["|","\\lvert","\\rvert","\\vert"]),_f=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Is=function(t,r,n,i,a,l){var s,o,u,h,m="",d=0;s=u=h=t,o=null;var p="Size1-Regular";t==="\\uparrow"?u=h="⏐":t==="\\Uparrow"?u=h="‖":t==="\\downarrow"?s=u="⏐":t==="\\Downarrow"?s=u="‖":t==="\\updownarrow"?(s="\\uparrow",u="⏐",h="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",u="‖",h="\\Downarrow"):Gf.has(t)?(u="∣",m="vert",d=333):_f.has(t)?(u="∥",m="doublevert",d=556):t==="["||t==="\\lbrack"?(s="⎡",u="⎢",h="⎣",p="Size4-Regular",m="lbrack",d=667):t==="]"||t==="\\rbrack"?(s="⎤",u="⎥",h="⎦",p="Size4-Regular",m="rbrack",d=667):t==="\\lfloor"||t==="⌊"?(u=s="⎢",h="⎣",p="Size4-Regular",m="lfloor",d=667):t==="\\lceil"||t==="⌈"?(s="⎡",u=h="⎢",p="Size4-Regular",m="lceil",d=667):t==="\\rfloor"||t==="⌋"?(u=s="⎥",h="⎦",p="Size4-Regular",m="rfloor",d=667):t==="\\rceil"||t==="⌉"?(s="⎤",u=h="⎥",p="Size4-Regular",m="rceil",d=667):t==="("||t==="\\lparen"?(s="⎛",u="⎜",h="⎝",p="Size4-Regular",m="lparen",d=875):t===")"||t==="\\rparen"?(s="⎞",u="⎟",h="⎠",p="Size4-Regular",m="rparen",d=875):t==="\\{"||t==="\\lbrace"?(s="⎧",o="⎨",h="⎩",u="⎪",p="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="⎫",o="⎬",h="⎭",u="⎪",p="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(s="⎧",h="⎩",u="⎪",p="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(s="⎫",h="⎭",u="⎪",p="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(s="⎧",h="⎭",u="⎪",p="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(s="⎫",h="⎩",u="⎪",p="Size4-Regular");var y=dr(s,p,a),w=y.height+y.depth,C=dr(u,p,a),A=C.height+C.depth,z=dr(h,p,a),D=z.height+z.depth,O=0,V=1;if(o!==null){var M=dr(o,p,a);O=M.height+M.depth,V=2}var G=w+D+O,K=Math.max(0,Math.ceil((r-G)/(V*A))),$=G+K*V*A,E=i.fontMetrics().axisHeight;n&&(E*=i.sizeMultiplier);var U=$/2-E,j=[];if(m.length>0){var ae=$-w-D,X=Math.round($*1e3),q=af(m,Math.round(ae*1e3)),le=new Ct(m,q),fe=P(d/1e3),Ce=P(X/1e3),je=new vt([le],{width:fe,height:Ce,viewBox:"0 0 "+d+" "+X}),k=Mt([],[je],i);k.height=X/1e3,k.style.width=fe,k.style.height=Ce,j.push({type:"elem",elem:k})}else{if(j.push(e0(h,p,a)),j.push(Yr),o===null){var xe=$-w-D+2*B0;j.push(t0(u,xe,i))}else{var Be=($-w-D-O)/2+2*B0;j.push(t0(u,Be,i)),j.push(Yr),j.push(e0(o,p,a)),j.push(Yr),j.push(t0(u,Be,i))}j.push(Yr),j.push(e0(s,p,a))}var S=i.havingBaseStyle(ee.TEXT),Me=oe({positionType:"bottom",positionData:U,children:j});return ci(F(["delimsizing","mult"],[Me],S),ee.TEXT,i,l)},r0=80,n0=.08,i0=function(t,r,n,i,a){var l=rf(t,i,n),s=new Ct(t,l),o=new vt([s],{width:"400em",height:P(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Mt(["hide-tail"],[o],a)},Wf=function(t,r){var n=r.havingBaseSizing(),i=Ls("\\surd",t*n.sizeMultiplier,Ns,n),a=n.sizeMultiplier,l=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),s,o=0,u=0,h=0,m;return i.type==="small"?(h=1e3+1e3*l+r0,t<1?a=1:t<1.4&&(a=.7),o=(1+l+n0)/a,u=(1+l)/a,s=i0("sqrtMain",o,h,l,r),s.style.minWidth="0.853em",m=.833/a):i.type==="large"?(h=(1e3+r0)*br[i.size],u=(br[i.size]+l)/a,o=(br[i.size]+l+n0)/a,s=i0("sqrtSize"+i.size,o,h,l,r),s.style.minWidth="1.02em",m=1/a):(o=t+l+n0,u=t+l,h=Math.floor(1e3*t+l)+r0,s=i0("sqrtTall",o,h,l,r),s.style.minWidth="0.742em",m=1.056),s.height=u,s.style.height=P(o),{span:s,advanceWidth:m,ruleWidth:(r.fontMetrics().sqrtRuleThickness+l)*a}},Bs=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Xf=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Fs=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),br=[0,1.2,1.8,2.4,3],Rs=function(t,r,n,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Bs.has(t)||Fs.has(t))return Ds(t,r,!1,n,i,a);if(Xf.has(t))return Is(t,br[r],!1,n,i,a);throw new R("Illegal delimiter: '"+t+"'")},Yf=[{type:"small",style:ee.SCRIPTSCRIPT},{type:"small",style:ee.SCRIPT},{type:"small",style:ee.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Kf=[{type:"small",style:ee.SCRIPTSCRIPT},{type:"small",style:ee.SCRIPT},{type:"small",style:ee.TEXT},{type:"stack"}],Ns=[{type:"small",style:ee.SCRIPTSCRIPT},{type:"small",style:ee.SCRIPT},{type:"small",style:ee.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Zf=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},Ls=function(t,r,n,i){for(var a=Math.min(2,3-i.style.size),l=a;lr)return s}return n[n.length-1]},F0=function(t,r,n,i,a,l){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var s;Fs.has(t)?s=Yf:Bs.has(t)?s=Ns:s=Kf;var o=Ls(t,r,s,i);return o.type==="small"?$f(t,o.style,n,i,a,l):o.type==="large"?Ds(t,o.size,n,i,a,l):Is(t,r,n,i,a,l)},a0=function(t,r,n,i,a,l){var s=i.fontMetrics().axisHeight*i.sizeMultiplier,o=901,u=5/i.fontMetrics().ptPerEm,h=Math.max(r-s,n+s),m=Math.max(h/500*o,2*h-u);return F0(t,m,!0,i,a,l)},ka={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Qf=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function Sn(e,t){var r=wn(e);if(r&&Qf.has(r.text))return r;throw r?new R("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new R("Invalid delimiter type '"+e.type+"'",e)}_({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=Sn(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:ka[e.funcName].size,mclass:ka[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?F([e.mclass]):Rs(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Je(e.delim,e.mode));var r=new L("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=P(br[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Sa(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}_({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new R("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Sn(t[0],e).text,color:r}}});_({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Sn(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=re(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Sa(e);for(var r=ze(e.body,t,!0,["mopen","mclose"]),n=0,i=0,a=!1,l=0;l{Sa(e);var r=Ye(e.body,t);if(e.left!=="."){var n=new L("mo",[Je(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new L("mo",[Je(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return si(r)}});_({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Sn(t[0],e);if(!e.parser.leftrightDepth)throw new R("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Ar(t,[]);else{r=Rs(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Je("|","text"):Je(e.delim,e.mode),n=new L("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var An=(e,t)=>{var r=er(ue(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,a,l=0,s=bt(e.body);if(n==="sout")a=F(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,l=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var o=ye({number:.6,unit:"pt"},t),u=ye({number:.35,unit:"ex"},t),h=t.havingBaseSizing();i=i/h.sizeMultiplier;var m=r.height+r.depth+o+u;r.style.paddingLeft=P(m/2+o);var d=Math.floor(1e3*m*i),p=ef(d),y=new vt([new Ct("phase",p)],{width:"400em",height:P(d/1e3),viewBox:"0 0 400000 "+d,preserveAspectRatio:"xMinYMin slice"});a=Mt(["hide-tail"],[y],t),a.style.height=P(m),l=r.depth+o+u}else{/cancel/.test(n)?s||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var w=0,C=0,A=0;/box/.test(n)?(A=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),w=t.fontMetrics().fboxsep+(n==="colorbox"?0:A),C=w):n==="angl"?(A=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),w=4*A,C=Math.max(0,.25-r.depth)):(w=s?.2:0,C=w),a=Lf(r,n,w,C,t),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=P(A)):n==="angl"&&A!==.049&&(a.style.borderTopWidth=P(A),a.style.borderRightWidth=P(A)),l=r.depth+C,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var z;if(e.backgroundColor)z=oe({positionType:"individualShift",children:[{type:"elem",elem:a,shift:l},{type:"elem",elem:r,shift:0}]});else{var D=/cancel|phase/.test(n)?["svg-align"]:[];z=oe({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:l,wrapperClasses:D}]})}return/cancel/.test(n)&&(z.height=r.height,z.depth=r.depth),/cancel/.test(n)&&!s?F(["mord","cancel-lap"],[z],t):F(["mord"],[z],t)},Tn=(e,t)=>{var r=0,n=new L(e.label.includes("colorbox")?"mpadded":"menclose",[me(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+P(i)+" solid "+e.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};_({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=re(t[0],"color-token").color,l=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:l}},htmlBuilder:An,mathmlBuilder:Tn});_({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=re(t[0],"color-token").color,l=re(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:l,borderColor:a,body:s}},htmlBuilder:An,mathmlBuilder:Tn});_({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});_({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:An,mathmlBuilder:Tn});_({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:An,mathmlBuilder:Tn});_({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Ps={};function ot(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:l}=e,s={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},o=0;o{var t=e.parser.settings;if(!t.displayMode)throw new R("{"+e.envName+"} can be used only in display mode.")},Jf=new Set(["gather","gather*"]);function hi(e){if(!e.includes("ed"))return!e.includes("*")}function It(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:l,colSeparationType:s,autoTag:o,singleRow:u,emptySingleRow:h,maxNumCols:m,leqno:d}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!l){var p=e.gullet.expandMacroAsText("\\arraystretch");if(p==null)l=1;else if(l=parseFloat(p),!l||l<0)throw new R("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var y=[],w=[y],C=[],A=[],z=o!=null?[]:void 0;function D(){o&&e.gullet.macros.set("\\@eqnsw","1",!0)}function O(){z&&(e.gullet.macros.get("\\df@tag")?(z.push(e.subparse([new _e("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):z.push(!!o&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(D(),A.push(Aa(e));;){var V=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var M={type:"ordgroup",mode:e.mode,body:V};r&&(M={type:"styling",mode:e.mode,style:r,body:[M]}),y.push(M);var G=e.fetch().text;if(G==="&"){if(m&&y.length===m){if(u||s)throw new R("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(G==="\\end"){O(),y.length===1&&M.type==="styling"&&M.body.length===1&&M.body[0].type==="ordgroup"&&M.body[0].body.length===0&&(w.length>1||!h)&&w.pop(),A.length0&&(D+=.25),u.push({pos:D,isDashed:Q[ne]})}for(O(l[0]),n=0;n0&&(U+=z,GQ))for(n=0;n=s)){var Ve=void 0;if(i>0||t.hskipBeforeAndAfter){var ht,Bt;Ve=(ht=(Bt=S)==null?void 0:Bt.pregap)!=null?ht:d,Ve!==0&&(q=F(["arraycolsep"],[]),q.style.width=P(Ve),X.push(q))}var Ir=[];for(n=0;n0){for(var Mn=Jt("hline",r,h),En=Jt("hdashline",r,h),or=[{type:"elem",elem:Ft,shift:0}];u.length>0;){var Lr=u.pop(),Pr=Lr.pos-j;Lr.isDashed?or.push({type:"elem",elem:En,shift:Pr}):or.push({type:"elem",elem:Mn,shift:Pr})}Ft=oe({positionType:"individualShift",children:or})}if(fe.length===0)return F(["mord"],[Ft],r);var I=oe({positionType:"individualShift",children:fe}),H=F(["tag"],[I],r);return wt([Ft,H])},e2={c:"center ",l:"left ",r:"right "},ct=function(t,r){for(var n=[],i=new L("mtd",[],["mtr-glue"]),a=new L("mtd",[],["mml-eqn-num"]),l=0;l0){var y=t.cols,w="",C=!1,A=0,z=y.length;y[0].type==="separator"&&(d+="top ",A=1),y[y.length-1].type==="separator"&&(d+="bottom ",z-=1);for(var D=A;D0?"left ":"",d+=$[$.length-1].length>0?"right ":"";for(var E=1;E<$.length-1;E++)K+=$[E].length===0?"none ":$[E][0]?"dashed ":"solid ";return/[sd]/.test(K)&&h.setAttribute("rowlines",K.trim()),d!==""&&(h=new L("menclose",[h]),h.setAttribute("notation",d.trim())),t.arraystretch&&t.arraystretch<1&&(h=new L("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},qs=function(t,r){t.envName.includes("ed")||zn(t);var n=[],i=t.envName.includes("at")?"alignat":"align",a=t.envName==="split",l=It(t.parser,{cols:n,addJot:!0,autoTag:a?void 0:hi(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),s=0,o=0,u={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var h="",m=0;m0&&p&&(C=1),n[y]={type:"align",align:w,pregap:C,postgap:0}}return l.colSeparationType=p?"align":"alignat",l};ot({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=wn(t[0]),n=r?[t[0]]:re(t[0],"ordgroup").body,i=n.map(function(l){var s=xn(l),o=s.text;if("lcr".includes(o))return{type:"align",align:o};if(o==="|")return{type:"separator",separator:"|"};if(o===":")return{type:"separator",separator:":"};throw new R("Unknown column alignment: "+o,l)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return It(e.parser,a,mi(e.envName))},htmlBuilder:ut,mathmlBuilder:ct});ot({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new R("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=It(e.parser,n,mi(e.envName)),l=Math.max(0,...a.body.map(s=>s.length));return a.cols=new Array(l).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:ut,mathmlBuilder:ct});ot({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=It(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:ut,mathmlBuilder:ct});ot({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=wn(t[0]),n=r?[t[0]]:re(t[0],"ordgroup").body,i=n.map(function(s){var o=xn(s),u=o.text;if("lc".includes(u))return{type:"align",align:u};throw new R("Unknown column alignment: "+u,s)});if(i.length>1)throw new R("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},l=It(e.parser,a,"script");if(l.body.length>0&&l.body[0].length>1)throw new R("{subarray} can contain only one column");return l},htmlBuilder:ut,mathmlBuilder:ct});ot({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=It(e.parser,t,mi(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:ut,mathmlBuilder:ct});ot({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:qs,htmlBuilder:ut,mathmlBuilder:ct});ot({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Jf.has(e.envName)&&zn(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:hi(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return It(e.parser,t,"display")},htmlBuilder:ut,mathmlBuilder:ct});ot({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:qs,htmlBuilder:ut,mathmlBuilder:ct});ot({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){zn(e);var t={autoTag:hi(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return It(e.parser,t,"display")},htmlBuilder:ut,mathmlBuilder:ct});ot({type:"array",names:["CD"],props:{numArgs:0},handler(e){return zn(e),jf(e.parser)},htmlBuilder:ut,mathmlBuilder:ct});v("\\nonumber","\\gdef\\@eqnsw{0}");v("\\notag","\\nonumber");_({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new R(e.funcName+" valid only within array environment")}});var Ta=Ps;_({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new R("Invalid environment name",i);for(var a="",l=0;l{var r=e.font,n=t.withFont(r);return ue(e.body,n)},js=(e,t)=>{var r=e.font,n=t.withFont(r);return me(e.body,n)},za={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};_({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=un(t[0]),a=n;return a in za&&(a=za[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:Hs,mathmlBuilder:js});_({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:kn(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:bt(n)}}});_({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:a}=r,l=r.parseExpression(!0,i),s="math"+n.slice(1);return{type:"font",mode:a,font:s,body:{type:"ordgroup",mode:r.mode,body:l}}},htmlBuilder:Hs,mathmlBuilder:js});var t2=(e,t)=>{var r=t.style,n=r.fracNum(),i=r.fracDen(),a;a=t.havingStyle(n);var l=ue(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,o=3.5/t.fontMetrics().ptPerEm;l.height=l.height0?y=3*d:y=7*d,w=t.fontMetrics().denom1):(m>0?(p=t.fontMetrics().num2,y=d):(p=t.fontMetrics().num3,y=3*d),w=t.fontMetrics().denom2);var C;if(h){var z=t.fontMetrics().axisHeight;p-l.depth-(z+.5*m){var r=new L("mfrac",[me(e.numer,t),me(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=ye(e.barSize,t);r.setAttribute("linethickness",P(n))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new L("mo",[new Se(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),e.rightDelim!=null){var l=new L("mo",[new Se(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),i.push(l)}return si(i)}return r},Vs=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};_({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=t[1],l,s=null,o=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":l=!0;break;case"\\\\atopfrac":l=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":l=!1,s="(",o=")";break;case"\\\\bracefrac":l=!1,s="\\{",o="\\}";break;case"\\\\brackfrac":l=!1,s="[",o="]";break;default:throw new Error("Unrecognized genfrac command")}var u=n==="\\cfrac",h=null;return u||n.startsWith("\\d")?h="display":n.startsWith("\\t")&&(h="text"),Vs({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:u,hasBarLine:l,leftDelim:s,rightDelim:o,barSize:null},h)},htmlBuilder:t2,mathmlBuilder:r2});_({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:n}}});var Ca=["display","text","script","scriptscript"],Ma=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};_({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],i=t[5],a=un(t[0]),l=a.type==="atom"&&a.family==="open"?Ma(a.text):null,s=un(t[1]),o=s.type==="atom"&&s.family==="close"?Ma(s.text):null,u=re(t[2],"size"),h,m=null;u.isBlank?h=!0:(m=u.value,h=m.number>0);var d=null,p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var y=re(p.body[0],"textord");d=Ca[Number(y.text)]}}else p=re(p,"textord"),d=Ca[Number(p.text)];return Vs({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:h,barSize:m,leftDelim:l,rightDelim:o},d)}});_({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:re(t[0],"size").value,token:i}}});_({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=re(t[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var l=t[2],s=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:l,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var $s=(e,t)=>{var r=t.style,n,i;e.type==="supsub"?(n=e.sup?ue(e.sup,t.havingStyle(r.sup()),t):ue(e.sub,t.havingStyle(r.sub()),t),i=re(e.base,"horizBrace")):i=re(e,"horizBrace");var a=ue(i.base,t.havingBaseStyle(ee.DISPLAY)),l=bn(i,t),s;if(i.isOver?(s=oe({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:l}]}),s.children[0].children[0].children[1].classes.push("svg-align")):(s=oe({positionType:"bottom",positionData:a.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:a}]}),s.children[0].children[0].children[0].classes.push("svg-align")),n){var o=F(["minner",i.isOver?"mover":"munder"],[s],t);i.isOver?s=oe({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.2},{type:"elem",elem:n}]}):s=oe({positionType:"bottom",positionData:o.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:o}]})}return F(["minner",i.isOver?"mover":"munder"],[s],t)},n2=(e,t)=>{var r=yn(e.label);return new L(e.isOver?"mover":"munder",[me(e.base,t),r])};_({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:t[0]}},htmlBuilder:$s,mathmlBuilder:n2});_({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],i=re(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:ke(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=ze(e.body,t,!1);return xf(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Et(e.body,t);return r instanceof L||(r=new L("mrow",[r])),r.setAttribute("href",e.href),r}});_({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=re(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:r,funcName:n,token:i}=e,a=re(t[0],"raw").string,l=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,o={};switch(n){case"\\htmlClass":o.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":o.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":o.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),h=0;h{var r=ze(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=F(n,r,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Et(e.body,t)});_({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:ke(t[0]),mathml:ke(t[1])}},htmlBuilder:(e,t)=>{var r=ze(e.html,t,!1);return wt(r)},mathmlBuilder:(e,t)=>Et(e.mathml,t)});var l0=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new R("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!ls(n))throw new R("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};_({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},l={number:0,unit:"em"},s="";if(r[0])for(var o=re(r[0],"raw").string,u=o.split(","),h=0;h{var r=ye(e.height,t),n=0;e.totalheight.number>0&&(n=ye(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=ye(e.width,t));var a={height:P(r+n)};i>0&&(a.width=P(i)),n>0&&(a.verticalAlign=P(-n));var l=new of(e.src,e.alt,a);return l.height=r,l.depth=n,l},mathmlBuilder:(e,t)=>{var r=new L("mglyph",[]);r.setAttribute("alt",e.alt);var n=ye(e.height,t),i=0;if(e.totalheight.number>0&&(i=ye(e.totalheight,t)-n,r.setAttribute("valign",P(-i))),r.setAttribute("height",P(n+i)),e.width.number>0){var a=ye(e.width,t);r.setAttribute("width",P(a))}return r.setAttribute("src",e.src),r}});_({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=re(t[0],"size");if(r.settings.strict){var a=n[1]==="m",l=i.value.unit==="mu";a?(l||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):l&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return ms(e.dimension,t)},mathmlBuilder(e,t){var r=ye(e.dimension,t);return new ys(r)}});_({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=F([],[ue(e.body,t)]),r=F(["inner"],[r],t)):r=F(["inner"],[ue(e.body,t)]);var n=F(["fix"],[]),i=F([e.alignment],[r,n],t),a=F(["strut"]);return a.style.height=P(i.height+i.depth),i.depth&&(a.style.verticalAlign=P(-i.depth)),i.children.unshift(a),i=F(["thinbox"],[i],t),F(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new L("mpadded",[me(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});_({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",l=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:l}}});_({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new R("Mismatched "+e.funcName)}});var Ea=(e,t)=>{switch(t.style.size){case ee.DISPLAY.size:return e.display;case ee.TEXT.size:return e.text;case ee.SCRIPT.size:return e.script;case ee.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};_({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:ke(t[0]),text:ke(t[1]),script:ke(t[2]),scriptscript:ke(t[3])}},htmlBuilder:(e,t)=>{var r=Ea(e,t),n=ze(r,t,!1);return wt(n)},mathmlBuilder:(e,t)=>{var r=Ea(e,t);return Et(r,t)}});var Us=(e,t,r,n,i,a,l)=>{e=F([],[e]);var s=r&&bt(r),o,u;if(t){var h=ue(t,n.havingStyle(i.sup()),n);u={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-h.depth)}}if(r){var m=ue(r,n.havingStyle(i.sub()),n);o={elem:m,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-m.height)}}var d;if(u&&o){var p=n.fontMetrics().bigOpSpacing5+o.elem.height+o.elem.depth+o.kern+e.depth+l;d=oe({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:P(-a)},{type:"kern",size:o.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:P(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(o){var y=e.height-l;d=oe({positionType:"top",positionData:y,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:P(-a)},{type:"kern",size:o.kern},{type:"elem",elem:e}]})}else if(u){var w=e.depth+l;d=oe({positionType:"bottom",positionData:w,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:P(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var C=[d];if(o&&a!==0&&!s){var A=F(["mspace"],[],n);A.style.marginRight=P(a),C.unshift(A)}return F(["mop","op-limits"],C,n)},Gs=new Set(["\\smallint"]),lr=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=re(e.base,"op"),i=!0):a=re(e,"op");var l=t.style,s=!1;l.size===ee.DISPLAY.size&&a.symbol&&!Gs.has(a.name)&&(s=!0);var o;if(a.symbol){var u=s?"Size2-Regular":"Size1-Regular",h="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(h=a.name.slice(1),a.name=h==="oiint"?"\\iint":"\\iiint"),o=Re(a.name,u,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),h.length>0){var m=o.italic,d=ps(h+"Size"+(s?"2":"1"),t);o=oe({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:d,shift:s?.08:0}]}),a.name="\\"+h,o.classes.unshift("mop"),o.italic=m}}else if(a.body){var p=ze(a.body,t,!0);p.length===1&&p[0]instanceof We?(o=p[0],o.classes[0]="mop"):o=F(["mop"],p,t)}else{for(var y=[],w=1;w{var r;if(e.symbol)r=new L("mo",[Je(e.name,e.mode)]),Gs.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new L("mo",Ye(e.body,t));else{r=new L("mi",[new Se(e.name.slice(1))]);var n=new L("mo",[Je("⁡","text")]);e.parentIsSupSub?r=new L("mrow",[r,n]):r=vs([r,n])}return r},i2={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};_({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=n;return i.length===1&&(i=i2[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:lr,mathmlBuilder:Dr});_({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ke(n)}},htmlBuilder:lr,mathmlBuilder:Dr});var a2={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};_({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:lr,mathmlBuilder:Dr});_({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:lr,mathmlBuilder:Dr});_({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=a2[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:lr,mathmlBuilder:Dr});var _s=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=re(e.base,"operatorname"),i=!0):a=re(e,"operatorname");var l;if(a.body.length>0){for(var s=a.body.map(m=>{var d="text"in m?m.text:void 0;return typeof d=="string"?{type:"textord",mode:m.mode,text:d}:m}),o=ze(s,t.withFont("mathrm"),!0),u=0;u{for(var r=Ye(e.body,t.withFont("mathrm")),n=!0,i=0;ih.toText()).join("");r=[new Se(s)]}var o=new L("mi",r);o.setAttribute("mathvariant","normal");var u=new L("mo",[Je("⁡","text")]);return e.parentIsSupSub?new L("mrow",[o,u]):vs([o,u])};_({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:ke(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:_s,mathmlBuilder:l2});v("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Ht({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?wt(ze(e.body,t,!1)):F(["mord"],ze(e.body,t,!0),t)},mathmlBuilder(e,t){return Et(e.body,t,!0)}});_({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=ue(e.body,t.havingCrampedStyle()),n=Jt("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=oe({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return F(["mord","overline"],[a],t)},mathmlBuilder(e,t){var r=new L("mo",[new Se("‾")]);r.setAttribute("stretchy","true");var n=new L("mover",[me(e.body,t),r]);return n.setAttribute("accent","true"),n}});_({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:ke(n)}},htmlBuilder:(e,t)=>{var r=ze(e.body,t.withPhantom(),!1);return wt(r)},mathmlBuilder:(e,t)=>{var r=Ye(e.body,t);return new L("mphantom",r)}});v("\\hphantom","\\smash{\\phantom{#1}}");_({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=F(["inner"],[ue(e.body,t.withPhantom())]),n=F(["fix"],[]);return F(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Ye(ke(e.body),t),n=new L("mphantom",r),i=new L("mpadded",[n]);return i.setAttribute("width","0px"),i}});_({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=re(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=ue(e.body,t),n=ye(e.dy,t);return oe({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new L("mpadded",[me(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});_({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});_({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],a=re(t[0],"size"),l=re(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&re(i,"size").value,width:a.value,height:l.value}},htmlBuilder(e,t){var r=F(["mord","rule"],[],t),n=ye(e.width,t),i=ye(e.height,t),a=e.shift?ye(e.shift,t):0;return r.style.borderRightWidth=P(n),r.style.borderTopWidth=P(i),r.style.bottom=P(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=ye(e.width,t),n=ye(e.height,t),i=e.shift?ye(e.shift,t):0,a=t.color&&t.getColor()||"black",l=new L("mspace");l.setAttribute("mathbackground",a),l.setAttribute("width",P(r)),l.setAttribute("height",P(n));var s=new L("mpadded",[l]);return i>=0?s.setAttribute("height",P(i)):(s.setAttribute("height",P(i)),s.setAttribute("depth",P(-i))),s.setAttribute("voffset",P(i)),s}});function Ws(e,t,r){for(var n=ze(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,a=0;a{var r=t.havingSize(e.size);return Ws(e.body,r,t)};_({type:"sizing",names:Da,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:Da.indexOf(n)+1,body:a}},htmlBuilder:s2,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Ye(e.body,r),i=new L("mstyle",n);return i.setAttribute("mathsize",P(r.sizeMultiplier)),i}});_({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,a=!1,l=r[0]&&re(r[0],"ordgroup");if(l)for(var s="",o=0;o{var r=F([],[ue(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return F(["mord","smash"],[r],t);if(r.children)for(var n=0;n{var r=new L("mpadded",[me(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});_({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],a=t[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(e,t){var r=ue(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=er(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,a=i;t.style.idr.height+r.depth+l&&(l=(l+m-r.height-r.depth)/2);var d=o.height-r.height-l-u;r.style.paddingLeft=P(h);var p=oe({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+d)},{type:"elem",elem:o},{type:"kern",size:u}]});if(e.index){var y=t.havingStyle(ee.SCRIPTSCRIPT),w=ue(e.index,y,t),C=.6*(p.height-p.depth),A=oe({positionType:"shift",positionData:-C,children:[{type:"elem",elem:w}]}),z=F(["root"],[A]);return F(["mord","sqrt"],[z,p],t)}else return F(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new L("mroot",[me(r,t),me(n,t)]):new L("msqrt",[me(r,t)])}});var Ia={display:ee.DISPLAY,text:ee.TEXT,script:ee.SCRIPT,scriptscript:ee.SCRIPTSCRIPT};_({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!0,r),l=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:l,body:a}},htmlBuilder(e,t){var r=Ia[e.style],n=t.havingStyle(r).withFont("");return Ws(e.body,n,t)},mathmlBuilder(e,t){var r=Ia[e.style],n=t.havingStyle(r),i=Ye(e.body,n),a=new L("mstyle",i),l={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=l[e.style];return a.setAttribute("scriptlevel",s[0]),a.setAttribute("displaystyle",s[1]),a}});var o2=function(t,r){var n=t.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===ee.DISPLAY.size||n.alwaysHandleSupSub);return i?lr:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===ee.DISPLAY.size||n.limits);return a?_s:null}else{if(n.type==="accent")return bt(n.base)?ui:null;if(n.type==="horizBrace"){var l=!t.sub;return l===n.isOver?$s:null}else return null}else return null};Ht({type:"supsub",htmlBuilder(e,t){var r=o2(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:a}=e,l=ue(n,t),s,o,u=t.fontMetrics(),h=0,m=0,d=n&&bt(n);if(i){var p=t.havingStyle(t.style.sup());s=ue(i,p,t),d||(h=l.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var y=t.havingStyle(t.style.sub());o=ue(a,y,t),d||(m=l.depth+y.fontMetrics().subDrop*y.sizeMultiplier/t.sizeMultiplier)}var w;t.style===ee.DISPLAY?w=u.sup1:t.style.cramped?w=u.sup3:w=u.sup2;var C=t.sizeMultiplier,A=P(.5/u.ptPerEm/C),z=null;if(o){var D=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(l instanceof We||D)&&(z=P(-l.italic))}var O;if(s&&o){h=Math.max(h,w,s.depth+.25*u.xHeight),m=Math.max(m,u.sub2);var V=u.defaultRuleThickness,M=4*V;if(h-s.depth-(o.height-m)0&&(h+=G,m-=G)}var K=[{type:"elem",elem:o,shift:m,marginRight:A,marginLeft:z},{type:"elem",elem:s,shift:-h,marginRight:A}];O=oe({positionType:"individualShift",children:K})}else if(o){m=Math.max(m,u.sub1,o.height-.8*u.xHeight);var $=[{type:"elem",elem:o,marginLeft:z,marginRight:A}];O=oe({positionType:"shift",positionData:m,children:$})}else if(s)h=Math.max(h,w,s.depth+.25*u.xHeight),O=oe({positionType:"shift",positionData:-h,children:[{type:"elem",elem:s,marginRight:A}]});else throw new Error("supsub must have either sup or sub.");var E=E0(l,"right")||"mord";return F([E],[l,F(["msupsub"],[O])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[me(e.base,t)];e.sub&&a.push(me(e.sub,t)),e.sup&&a.push(me(e.sup,t));var l;if(r)l=n?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===ee.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===ee.DISPLAY||u.limits)?l="munderover":l="msubsup"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===ee.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===ee.DISPLAY)?l="munder":l="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===ee.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===ee.DISPLAY)?l="mover":l="msup"}return new L(l,a)}});Ht({type:"atom",htmlBuilder(e,t){return ai(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new L("mo",[Je(e.text,e.mode)]);if(e.family==="bin"){var n=oi(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var Xs={mi:"italic",mn:"normal",mtext:"normal"};Ht({type:"mathord",htmlBuilder(e,t){return vn(e,t,"mathord")},mathmlBuilder(e,t){var r=new L("mi",[Je(e.text,e.mode,t)]),n=oi(e,t)||"italic";return n!==Xs[r.type]&&r.setAttribute("mathvariant",n),r}});Ht({type:"textord",htmlBuilder(e,t){return vn(e,t,"textord")},mathmlBuilder(e,t){var r=Je(e.text,e.mode,t),n=oi(e,t)||"normal",i;return e.mode==="text"?i=new L("mtext",[r]):/[0-9]/.test(e.text)?i=new L("mn",[r]):e.text==="\\prime"?i=new L("mo",[r]):i=new L("mi",[r]),n!==Xs[i.type]&&i.setAttribute("mathvariant",n),i}});var s0={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},o0={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ht({type:"spacing",htmlBuilder(e,t){if(o0.hasOwnProperty(e.text)){var r=o0[e.text].className||"";if(e.mode==="text"){var n=vn(e,t,"textord");return n.classes.push(r),n}else return F(["mspace",r],[ai(e.text,e.mode,t)],t)}else{if(s0.hasOwnProperty(e.text))return F(["mspace",s0[e.text]],[],t);throw new R('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(o0.hasOwnProperty(e.text))r=new L("mtext",[new Se(" ")]);else{if(s0.hasOwnProperty(e.text))return new L("mspace");throw new R('Unknown type of space "'+e.text+'"')}return r}});var Ba=()=>{var e=new L("mtd",[]);return e.setAttribute("width","50%"),e};Ht({type:"tag",mathmlBuilder(e,t){var r=new L("mtable",[new L("mtr",[Ba(),new L("mtd",[Et(e.body,t)]),Ba(),new L("mtd",[Et(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Fa={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ra={"\\textbf":"textbf","\\textmd":"textmd"},u2={"\\textit":"textit","\\textup":"textup"},Na=(e,t)=>{var r=e.font;if(r){if(Fa[r])return t.withTextFontFamily(Fa[r]);if(Ra[r])return t.withTextFontWeight(Ra[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(u2[r])};_({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:ke(i),font:n}},htmlBuilder(e,t){var r=Na(e,t),n=ze(e.body,r,!0);return F(["mord","text"],n,r)},mathmlBuilder(e,t){var r=Na(e,t);return Et(e.body,r)}});_({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=ue(e.body,t),n=Jt("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=oe({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return F(["mord","underline"],[a],t)},mathmlBuilder(e,t){var r=new L("mo",[new Se("‾")]);r.setAttribute("stretchy","true");var n=new L("munder",[me(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});_({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=ue(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return oe({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){return new L("mpadded",[me(e.body,t)],["vcenter"])}});_({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new R("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=La(e),n=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),Tt=ds,Ys=`[ \r + ]`,c2="\\\\[a-zA-Z@]+",h2="\\\\[^\uD800-\uDFFF]",m2="("+c2+")"+Ys+"*",f2=`\\\\( +|[ \r ]+ +?)[ \r ]*`,R0="[̀-ͯ]",p2=new RegExp(R0+"+$"),d2="("+Ys+"+)|"+(f2+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(R0+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(R0+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+m2)+("|"+h2+")");class Pa{constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp(d2,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new _e("EOF",new qe(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new R("Unexpected character: '"+t[r]+"'",new _e(t[r],new qe(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` +`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new _e(i,new qe(this,r,this.tokenRegex.lastIndex))}}class g2{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new R("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var v2=Os;v("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});v("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});v("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});v("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});v("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});v("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");v("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Oa={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};v("\\char",function(e){var t=e.popToken(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new R("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=Oa[t.text],n==null||n>=r)throw new R("Invalid base-"+r+" digit "+t.text);for(var i;(i=Oa[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new R("\\newcommand's first argument must be a macro name");var a=i[0].text,l=e.isDefined(a);if(l&&!t)throw new R("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!l&&!r)throw new R("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var o="",u=e.expandNextToken();u.text!=="]"&&u.text!=="EOF";)o+=u.text,u=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new R("Invalid number of arguments: "+o);s=parseInt(o),i=e.consumeArg().tokens}return l&&n||e.macros.set(a,{tokens:i,numArgs:s}),""};v("\\newcommand",e=>fi(e,!1,!0,!1));v("\\renewcommand",e=>fi(e,!0,!1,!1));v("\\providecommand",e=>fi(e,!0,!0,!0));v("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});v("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});v("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Tt[r],de.math[r],de.text[r]),""});v("\\bgroup","{");v("\\egroup","}");v("~","\\nobreakspace");v("\\lq","`");v("\\rq","'");v("\\aa","\\r a");v("\\AA","\\r A");v("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");v("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");v("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");v("ℬ","\\mathscr{B}");v("ℰ","\\mathscr{E}");v("ℱ","\\mathscr{F}");v("ℋ","\\mathscr{H}");v("ℐ","\\mathscr{I}");v("ℒ","\\mathscr{L}");v("ℳ","\\mathscr{M}");v("ℛ","\\mathscr{R}");v("ℭ","\\mathfrak{C}");v("ℌ","\\mathfrak{H}");v("ℨ","\\mathfrak{Z}");v("\\Bbbk","\\Bbb{k}");v("\\llap","\\mathllap{\\textrm{#1}}");v("\\rlap","\\mathrlap{\\textrm{#1}}");v("\\clap","\\mathclap{\\textrm{#1}}");v("\\mathstrut","\\vphantom{(}");v("\\underbar","\\underline{\\text{#1}}");v("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');v("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");v("\\ne","\\neq");v("≠","\\neq");v("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");v("∉","\\notin");v("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");v("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");v("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");v("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");v("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");v("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");v("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");v("⟂","\\perp");v("‼","\\mathclose{!\\mkern-0.8mu!}");v("∌","\\notni");v("⌜","\\ulcorner");v("⌝","\\urcorner");v("⌞","\\llcorner");v("⌟","\\lrcorner");v("©","\\copyright");v("®","\\textregistered");v("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');v("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');v("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');v("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');v("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");v("⋮","\\vdots");v("\\varGamma","\\mathit{\\Gamma}");v("\\varDelta","\\mathit{\\Delta}");v("\\varTheta","\\mathit{\\Theta}");v("\\varLambda","\\mathit{\\Lambda}");v("\\varXi","\\mathit{\\Xi}");v("\\varPi","\\mathit{\\Pi}");v("\\varSigma","\\mathit{\\Sigma}");v("\\varUpsilon","\\mathit{\\Upsilon}");v("\\varPhi","\\mathit{\\Phi}");v("\\varPsi","\\mathit{\\Psi}");v("\\varOmega","\\mathit{\\Omega}");v("\\substack","\\begin{subarray}{c}#1\\end{subarray}");v("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");v("\\boxed","\\fbox{$\\displaystyle{#1}$}");v("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");v("\\implies","\\DOTSB\\;\\Longrightarrow\\;");v("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");v("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");v("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var qa={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},y2=new Set(["bin","rel"]);v("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in qa?t=qa[r]:(r.slice(0,4)==="\\not"||r in de.math&&y2.has(de.math[r].group))&&(t="\\dotsb"),t});var pi={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};v("\\dotso",function(e){var t=e.future().text;return t in pi?"\\ldots\\,":"\\ldots"});v("\\dotsc",function(e){var t=e.future().text;return t in pi&&t!==","?"\\ldots\\,":"\\ldots"});v("\\cdots",function(e){var t=e.future().text;return t in pi?"\\@cdots\\,":"\\@cdots"});v("\\dotsb","\\cdots");v("\\dotsm","\\cdots");v("\\dotsi","\\!\\cdots");v("\\dotsx","\\ldots\\,");v("\\DOTSI","\\relax");v("\\DOTSB","\\relax");v("\\DOTSX","\\relax");v("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");v("\\,","\\tmspace+{3mu}{.1667em}");v("\\thinspace","\\,");v("\\>","\\mskip{4mu}");v("\\:","\\tmspace+{4mu}{.2222em}");v("\\medspace","\\:");v("\\;","\\tmspace+{5mu}{.2777em}");v("\\thickspace","\\;");v("\\!","\\tmspace-{3mu}{.1667em}");v("\\negthinspace","\\!");v("\\negmedspace","\\tmspace-{4mu}{.2222em}");v("\\negthickspace","\\tmspace-{5mu}{.277em}");v("\\enspace","\\kern.5em ");v("\\enskip","\\hskip.5em\\relax");v("\\quad","\\hskip1em\\relax");v("\\qquad","\\hskip2em\\relax");v("\\tag","\\@ifstar\\tag@literal\\tag@paren");v("\\tag@paren","\\tag@literal{({#1})}");v("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new R("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});v("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");v("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");v("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");v("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");v("\\newline","\\\\\\relax");v("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Ks=P(lt["Main-Regular"][84][1]-.7*lt["Main-Regular"][65][1]);v("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");v("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");v("\\hspace","\\@ifstar\\@hspacer\\@hspace");v("\\@hspace","\\hskip #1\\relax");v("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");v("\\ordinarycolon",":");v("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");v("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');v("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');v("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');v("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');v("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');v("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');v("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');v("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');v("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');v("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');v("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');v("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');v("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');v("∷","\\dblcolon");v("∹","\\eqcolon");v("≔","\\coloneqq");v("≕","\\eqqcolon");v("⩴","\\Coloneqq");v("\\ratio","\\vcentcolon");v("\\coloncolon","\\dblcolon");v("\\colonequals","\\coloneqq");v("\\coloncolonequals","\\Coloneqq");v("\\equalscolon","\\eqqcolon");v("\\equalscoloncolon","\\Eqqcolon");v("\\colonminus","\\coloneq");v("\\coloncolonminus","\\Coloneq");v("\\minuscolon","\\eqcolon");v("\\minuscoloncolon","\\Eqcolon");v("\\coloncolonapprox","\\Colonapprox");v("\\coloncolonsim","\\Colonsim");v("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");v("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");v("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");v("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");v("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");v("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");v("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");v("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");v("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");v("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");v("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");v("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");v("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");v("\\nleqq","\\html@mathml{\\@nleqq}{≰}");v("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");v("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");v("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");v("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");v("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");v("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");v("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");v("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");v("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");v("\\imath","\\html@mathml{\\@imath}{ı}");v("\\jmath","\\html@mathml{\\@jmath}{ȷ}");v("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");v("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");v("⟦","\\llbracket");v("⟧","\\rrbracket");v("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");v("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");v("⦃","\\lBrace");v("⦄","\\rBrace");v("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");v("⦵","\\minuso");v("\\darr","\\downarrow");v("\\dArr","\\Downarrow");v("\\Darr","\\Downarrow");v("\\lang","\\langle");v("\\rang","\\rangle");v("\\uarr","\\uparrow");v("\\uArr","\\Uparrow");v("\\Uarr","\\Uparrow");v("\\N","\\mathbb{N}");v("\\R","\\mathbb{R}");v("\\Z","\\mathbb{Z}");v("\\alef","\\aleph");v("\\alefsym","\\aleph");v("\\Alpha","\\mathrm{A}");v("\\Beta","\\mathrm{B}");v("\\bull","\\bullet");v("\\Chi","\\mathrm{X}");v("\\clubs","\\clubsuit");v("\\cnums","\\mathbb{C}");v("\\Complex","\\mathbb{C}");v("\\Dagger","\\ddagger");v("\\diamonds","\\diamondsuit");v("\\empty","\\emptyset");v("\\Epsilon","\\mathrm{E}");v("\\Eta","\\mathrm{H}");v("\\exist","\\exists");v("\\harr","\\leftrightarrow");v("\\hArr","\\Leftrightarrow");v("\\Harr","\\Leftrightarrow");v("\\hearts","\\heartsuit");v("\\image","\\Im");v("\\infin","\\infty");v("\\Iota","\\mathrm{I}");v("\\isin","\\in");v("\\Kappa","\\mathrm{K}");v("\\larr","\\leftarrow");v("\\lArr","\\Leftarrow");v("\\Larr","\\Leftarrow");v("\\lrarr","\\leftrightarrow");v("\\lrArr","\\Leftrightarrow");v("\\Lrarr","\\Leftrightarrow");v("\\Mu","\\mathrm{M}");v("\\natnums","\\mathbb{N}");v("\\Nu","\\mathrm{N}");v("\\Omicron","\\mathrm{O}");v("\\plusmn","\\pm");v("\\rarr","\\rightarrow");v("\\rArr","\\Rightarrow");v("\\Rarr","\\Rightarrow");v("\\real","\\Re");v("\\reals","\\mathbb{R}");v("\\Reals","\\mathbb{R}");v("\\Rho","\\mathrm{P}");v("\\sdot","\\cdot");v("\\sect","\\S");v("\\spades","\\spadesuit");v("\\sub","\\subset");v("\\sube","\\subseteq");v("\\supe","\\supseteq");v("\\Tau","\\mathrm{T}");v("\\thetasym","\\vartheta");v("\\weierp","\\wp");v("\\Zeta","\\mathrm{Z}");v("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");v("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");v("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");v("\\bra","\\mathinner{\\langle{#1}|}");v("\\ket","\\mathinner{|{#1}\\rangle}");v("\\braket","\\mathinner{\\langle{#1}\\rangle}");v("\\Bra","\\left\\langle#1\\right|");v("\\Ket","\\left|#1\\right\\rangle");var Zs=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,l=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var o=m=>d=>{e&&(d.macros.set("|",l),i.length&&d.macros.set("\\|",s));var p=m;if(!m&&i.length){var y=d.future();y.text==="|"&&(d.popToken(),p=!0)}return{tokens:p?i:n,numArgs:0}};t.macros.set("|",o(!1)),i.length&&t.macros.set("\\|",o(!0));var u=t.consumeArg().tokens,h=t.expandTokens([...a,...u,...r]);return t.macros.endGroup(),{tokens:h.reverse(),numArgs:0}};v("\\bra@ket",Zs(!1));v("\\bra@set",Zs(!0));v("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");v("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");v("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");v("\\angln","{\\angl n}");v("\\blue","\\textcolor{##6495ed}{#1}");v("\\orange","\\textcolor{##ffa500}{#1}");v("\\pink","\\textcolor{##ff00af}{#1}");v("\\red","\\textcolor{##df0030}{#1}");v("\\green","\\textcolor{##28ae7b}{#1}");v("\\gray","\\textcolor{gray}{#1}");v("\\purple","\\textcolor{##9d38bd}{#1}");v("\\blueA","\\textcolor{##ccfaff}{#1}");v("\\blueB","\\textcolor{##80f6ff}{#1}");v("\\blueC","\\textcolor{##63d9ea}{#1}");v("\\blueD","\\textcolor{##11accd}{#1}");v("\\blueE","\\textcolor{##0c7f99}{#1}");v("\\tealA","\\textcolor{##94fff5}{#1}");v("\\tealB","\\textcolor{##26edd5}{#1}");v("\\tealC","\\textcolor{##01d1c1}{#1}");v("\\tealD","\\textcolor{##01a995}{#1}");v("\\tealE","\\textcolor{##208170}{#1}");v("\\greenA","\\textcolor{##b6ffb0}{#1}");v("\\greenB","\\textcolor{##8af281}{#1}");v("\\greenC","\\textcolor{##74cf70}{#1}");v("\\greenD","\\textcolor{##1fab54}{#1}");v("\\greenE","\\textcolor{##0d923f}{#1}");v("\\goldA","\\textcolor{##ffd0a9}{#1}");v("\\goldB","\\textcolor{##ffbb71}{#1}");v("\\goldC","\\textcolor{##ff9c39}{#1}");v("\\goldD","\\textcolor{##e07d10}{#1}");v("\\goldE","\\textcolor{##a75a05}{#1}");v("\\redA","\\textcolor{##fca9a9}{#1}");v("\\redB","\\textcolor{##ff8482}{#1}");v("\\redC","\\textcolor{##f9685d}{#1}");v("\\redD","\\textcolor{##e84d39}{#1}");v("\\redE","\\textcolor{##bc2612}{#1}");v("\\maroonA","\\textcolor{##ffbde0}{#1}");v("\\maroonB","\\textcolor{##ff92c6}{#1}");v("\\maroonC","\\textcolor{##ed5fa6}{#1}");v("\\maroonD","\\textcolor{##ca337c}{#1}");v("\\maroonE","\\textcolor{##9e034e}{#1}");v("\\purpleA","\\textcolor{##ddd7ff}{#1}");v("\\purpleB","\\textcolor{##c6b9fc}{#1}");v("\\purpleC","\\textcolor{##aa87ff}{#1}");v("\\purpleD","\\textcolor{##7854ab}{#1}");v("\\purpleE","\\textcolor{##543b78}{#1}");v("\\mintA","\\textcolor{##f5f9e8}{#1}");v("\\mintB","\\textcolor{##edf2df}{#1}");v("\\mintC","\\textcolor{##e0e5cc}{#1}");v("\\grayA","\\textcolor{##f6f7f7}{#1}");v("\\grayB","\\textcolor{##f0f1f2}{#1}");v("\\grayC","\\textcolor{##e3e5e6}{#1}");v("\\grayD","\\textcolor{##d6d8da}{#1}");v("\\grayE","\\textcolor{##babec2}{#1}");v("\\grayF","\\textcolor{##888d93}{#1}");v("\\grayG","\\textcolor{##626569}{#1}");v("\\grayH","\\textcolor{##3b3e40}{#1}");v("\\grayI","\\textcolor{##21242c}{#1}");v("\\kaBlue","\\textcolor{##314453}{#1}");v("\\kaGreen","\\textcolor{##71B307}{#1}");var Qs={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class b2{constructor(t,r,n){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new g2(v2,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new Pa(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new _e("EOF",n.loc)),this.pushTokens(i),new _e("",qe.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),a,l=0,s=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++l;else if(a.text==="}"){if(--l,l===-1)throw new R("Extra }",a)}else if(a.text==="EOF")throw new R("Unexpected end of input in a macro argument, expected '"+(t&&n?t[s]:"}")+"'",a);if(t&&n)if((l===0||l===1&&t[s]==="{")&&a.text===t[s]){if(++s,s===t.length){r.splice(-s,s);break}}else s=0}while(l!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new R("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;ithis.settings.maxExpand)throw new R("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new R("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,l=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var s=a.length-1;s>=0;--s){var o=a[s];if(o.text==="#"){if(s===0)throw new R("Incomplete placeholder at end of macro body",o);if(o=a[--s],o.text==="#")a.splice(s+1,1);else if(/^[1-9]$/.test(o.text))a.splice(s,2,...l[+o.text-1]);else throw new R("Not a valid argument number",o)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new _e(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.includes("#"))for(var l=i.replace(/##/g,"");l.includes("#"+(a+1));)++a;for(var s=new Pa(i,this.settings),o=[],u=s.lex();u.text!=="EOF";)o.push(u),u=s.lex();o.reverse();var h={tokens:o,numArgs:a};return h}return i}isDefined(t){return this.macros.has(t)||Tt.hasOwnProperty(t)||de.math.hasOwnProperty(t)||de.text.hasOwnProperty(t)||Qs.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Tt.hasOwnProperty(t)&&!Tt[t].primitive}}var Ha=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Kr=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),u0={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},ja={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Cn{constructor(t,r){this.mode="math",this.gullet=new b2(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new R("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new _e("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(Cn.endOfExpression.has(i.text)||r&&i.text===r||t&&Tt[i.text]&&Tt[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i=128)this.settings.strict&&(as(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),l={type:"textord",mode:"text",loc:qe.range(t),text:r};else return null;if(this.consume(),a)for(var m=0;mu&&(u=h):h&&(u!==void 0&&u>-1&&o.push(` +`.repeat(u)||" "),u=-1,o.push(h))}return o.join("")}function ao(e,t,r){return e.type==="element"?Y2(e,t,r):e.type==="text"?r.whitespace==="normal"?lo(e,r):K2(e):[]}function Y2(e,t,r){const n=so(e,r),i=e.children||[];let a=-1,l=[];if(W2(e))return l;let s,o;for(L0(e)||Ka(e)&&_a(t,e,Ka)?o=` +`:_2(e)?(s=2,o=2):io(e)&&(s=1,o=1);++a.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .smash{display:inline;line-height:0}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo} diff --git a/dashboard/dist/assets/markdown-renderer-CrKRiZ7X.js b/dashboard/dist/assets/markdown-renderer-CrKRiZ7X.js new file mode 100644 index 00000000..a5640fa2 --- /dev/null +++ b/dashboard/dist/assets/markdown-renderer-CrKRiZ7X.js @@ -0,0 +1 @@ +import{j as s}from"./router-zNjPR4CY.js";import{M as m,r as n,a as d,b as x}from"./markdown-6e5N06bH.js";function u({content:o,className:l=""}){return s.jsx("div",{className:`prose prose-sm dark:prose-invert max-w-none ${l}`,children:s.jsx(m,{remarkPlugins:[d,x],rehypePlugins:[n],components:{code({inline:e,className:r,children:t,...a}){return e?s.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-sm font-mono",...a,children:t}):s.jsx("code",{className:`${r} block bg-muted p-4 rounded-lg overflow-x-auto`,...a,children:t})},table({children:e,...r}){return s.jsx("div",{className:"overflow-x-auto",children:s.jsx("table",{className:"border-collapse border border-border",...r,children:e})})},th({children:e,...r}){return s.jsx("th",{className:"border border-border bg-muted px-4 py-2 text-left font-semibold",...r,children:e})},td({children:e,...r}){return s.jsx("td",{className:"border border-border px-4 py-2",...r,children:e})},a({children:e,...r}){return s.jsx("a",{className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",...r,children:e})},blockquote({children:e,...r}){return s.jsx("blockquote",{className:"border-l-4 border-primary pl-4 italic text-muted-foreground",...r,children:e})},h1({children:e,...r}){return s.jsx("h1",{className:"text-3xl font-bold mt-6 mb-4",...r,children:e})},h2({children:e,...r}){return s.jsx("h2",{className:"text-2xl font-bold mt-5 mb-3",...r,children:e})},h3({children:e,...r}){return s.jsx("h3",{className:"text-xl font-bold mt-4 mb-2",...r,children:e})},h4({children:e,...r}){return s.jsx("h4",{className:"text-lg font-semibold mt-3 mb-2",...r,children:e})},ul({children:e,...r}){return s.jsx("ul",{className:"list-disc list-inside space-y-1 my-2",...r,children:e})},ol({children:e,...r}){return s.jsx("ol",{className:"list-decimal list-inside space-y-1 my-2",...r,children:e})},p({children:e,...r}){return s.jsx("p",{className:"my-2 leading-relaxed",...r,children:e})},hr({...e}){return s.jsx("hr",{className:"my-4 border-border",...e})}},children:o})})}export{u as M}; diff --git a/dashboard/dist/assets/mcp-settings-6oaCtDHj.js b/dashboard/dist/assets/mcp-settings-6oaCtDHj.js new file mode 100644 index 00000000..8ccfc967 --- /dev/null +++ b/dashboard/dist/assets/mcp-settings-6oaCtDHj.js @@ -0,0 +1,3 @@ +import{j as e,r as m}from"./router-zNjPR4CY.js";import{E as Y,M as q,W as G,U as J,S as Q,B as j,X as z,Y as A,C as R,b as T,d as Z,e as ee,f as E,I as g}from"./index-CuOHsLf7.js";import{B}from"./badge-CDs67obV.js";import{K as V}from"./key-value-editor-D1uUqXIn.js";import{S as H,a as I,b as D,c as O,d as b}from"./select-DGqIoF9r.js";import{S as se}from"./switch-Kc2EZ0Ga.js";import{T as te}from"./textarea-8PIujbf-.js";import{c as ae,f as P,D as re}from"./BotInfoSection-D3nfOJyA.js";import"./slider-mDhSC-zv.js";import{R as ne,u as oe,a as ie}from"./restart-overlay-B44c6hlE.js";import{ah as ce,a6 as le,ai as U,t as me,w as de,c as ue,v as he}from"./icons-DTcdLw9j.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";import"./separator-B_DSOSdz.js";import"./popover-DSuRLFDH.js";import"./progress-C6-hh8fF.js";import"./system-api-DeeJapvB.js";const v={name:"",enabled:!0,transport:"stdio",command:"",args:[],env:{},url:"",headers:{},http_timeout_seconds:30,read_timeout_seconds:300,authorization:{mode:"none",bearer_token:""}};function y(t){return!t||typeof t!="object"||Array.isArray(t)?{}:Object.fromEntries(Object.entries(t).map(([i,s])=>[i,String(s??"")]))}function xe(t,i){const s=t&&typeof t=="object"&&!Array.isArray(t)?t:{},c=s.authorization&&typeof s.authorization=="object"&&!Array.isArray(s.authorization)?s.authorization:{},d=s.transport==="streamable_http"?"streamable_http":"stdio";return{...v,name:typeof s.name=="string"?s.name:`mcp-server-${i+1}`,enabled:typeof s.enabled=="boolean"?s.enabled:v.enabled,transport:d,command:typeof s.command=="string"?s.command:"",args:Array.isArray(s.args)?s.args.map(u=>String(u??"")):[],env:y(s.env),url:typeof s.url=="string"?s.url:"",headers:y(s.headers),http_timeout_seconds:typeof s.http_timeout_seconds=="number"?s.http_timeout_seconds:v.http_timeout_seconds,read_timeout_seconds:typeof s.read_timeout_seconds=="number"?s.read_timeout_seconds:v.read_timeout_seconds,authorization:{mode:c.mode==="bearer"?"bearer":"none",bearer_token:typeof c.bearer_token=="string"?c.bearer_token:""}}}function pe(t){return Array.isArray(t)?t.map((i,s)=>xe(i,s)):[]}function $(t,i,s){const c=t&&typeof t=="object"&&!Array.isArray(t)?t:{},[d,...u]=i;return d?u.length===0?{...c,[d]:s}:{...c,[d]:$(c[d],u,s)}:c}function fe({servers:t,onChange:i}){const s=(n,r)=>{i(t.map((a,p)=>p===n?{...a,...r}:a))},c=(n,r)=>{const a=t[n];a&&s(n,{authorization:{...a.authorization,...r}})},d=()=>{i([...t,{...v,name:`mcp-server-${t.length+1}`}])},u=n=>{const r=t[n];if(!r)return;const a={...r,name:`${r.name||"mcp-server"}-copy`,args:[...r.args],env:{...r.env},headers:{...r.headers},authorization:{...r.authorization}};i([...t.slice(0,n+1),a,...t.slice(n+1)])},x=n=>{i(t.filter((r,a)=>a!==n))};return e.jsxs(R,{children:[e.jsx(T,{className:"space-y-3",children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(me,{className:"h-5 w-5 text-muted-foreground"}),e.jsx(Z,{className:"text-lg",children:"MCP 服务"}),e.jsxs(B,{variant:"secondary",className:"text-xs",children:[t.length," 个"]})]}),e.jsx(ee,{children:"这里会写入 mcp.servers。stdio 用命令启动本地服务,streamable_http 连接远程 MCP 端点。"})]}),e.jsxs(j,{type:"button",size:"sm",onClick:d,children:[e.jsx(de,{className:"mr-1 h-4 w-4"}),"添加服务"]})]})}),e.jsx(E,{className:"space-y-3",children:t.length===0?e.jsx("div",{className:"rounded-lg border border-dashed bg-muted/20 px-4 py-8 text-center text-sm text-muted-foreground",children:"尚未配置 MCP 服务。添加一个服务后,MaiSaka 可以调用它暴露的工具。"}):t.map((n,r)=>e.jsxs(R,{className:"border-border/70 bg-muted/20 shadow-none",children:[e.jsx(T,{className:"space-y-3 px-4 py-3",children:e.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[e.jsx(se,{checked:n.enabled,onCheckedChange:a=>s(r,{enabled:a})}),e.jsx("div",{className:"min-w-0 flex-1",children:e.jsx(g,{value:n.name,onChange:a=>s(r,{name:a.target.value}),placeholder:"服务名称,必须唯一",className:"h-8 font-medium"})}),e.jsx(B,{variant:n.enabled?"default":"secondary",className:"shrink-0 text-[10px]",children:n.enabled?"启用":"禁用"})]}),e.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[e.jsx(j,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>u(r),title:"复制服务",children:e.jsx(ue,{className:"h-4 w-4"})}),e.jsx(j,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8 text-destructive hover:text-destructive",onClick:()=>x(r),title:"删除服务",children:e.jsx(he,{className:"h-4 w-4"})})]})]})}),e.jsxs(E,{className:"space-y-4 px-4 pb-4 pt-0",children:[e.jsxs("div",{className:"grid gap-3 md:grid-cols-[12rem_1fr]",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"传输方式"}),e.jsxs(H,{value:n.transport,onValueChange:a=>s(r,{transport:a}),children:[e.jsx(I,{children:e.jsx(D,{})}),e.jsxs(O,{children:[e.jsx(b,{value:"stdio",children:"stdio"}),e.jsx(b,{value:"streamable_http",children:"streamable_http"})]})]})]}),n.transport==="stdio"?e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"启动命令"}),e.jsx(g,{value:n.command,onChange:a=>s(r,{command:a.target.value}),placeholder:"例如 uvx、npx、python"})]}):e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"服务 URL"}),e.jsx(g,{value:n.url,onChange:a=>s(r,{url:a.target.value}),placeholder:"https://example.com/mcp"})]})]}),n.transport==="stdio"?e.jsxs("div",{className:"grid gap-3 lg:grid-cols-2",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"命令参数"}),e.jsx(te,{value:n.args.join(` +`),onChange:a=>s(r,{args:a.target.value.split(` +`).map(p=>p.trim()).filter(p=>p.length>0)}),rows:4,placeholder:"每行一个参数"})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"环境变量"}),e.jsx(V,{value:n.env,onChange:a=>s(r,{env:y(a)})})]})]}):e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"认证模式"}),e.jsxs(H,{value:n.authorization.mode,onValueChange:a=>c(r,{mode:a}),children:[e.jsx(I,{children:e.jsx(D,{})}),e.jsxs(O,{children:[e.jsx(b,{value:"none",children:"none"}),e.jsx(b,{value:"bearer",children:"bearer"})]})]})]}),n.authorization.mode==="bearer"&&e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Bearer Token"}),e.jsx(g,{type:"password",value:n.authorization.bearer_token,onChange:a=>c(r,{bearer_token:a.target.value}),placeholder:"HTTP Bearer Token"})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"请求 Headers"}),e.jsx(V,{value:n.headers,onChange:a=>s(r,{headers:y(a)})})]})]}),e.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"HTTP 请求超时(秒)"}),e.jsx(g,{type:"number",min:.1,step:.1,value:n.http_timeout_seconds,onChange:a=>s(r,{http_timeout_seconds:Number.parseFloat(a.target.value)||.1})})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"会话读取超时(秒)"}),e.jsx(g,{type:"number",min:.1,step:.1,value:n.read_timeout_seconds,onChange:a=>s(r,{read_timeout_seconds:Number.parseFloat(a.target.value)||.1})})]})]})]})]},`${n.name}-${r}`))})]})}function Ve(){return e.jsx(ne,{children:e.jsx(ge,{})})}function ge(){const[t,i]=m.useState(!0),[s,c]=m.useState(!1),[d,u]=m.useState(!1),[x,n]=m.useState({}),[r,a]=m.useState(null),[p,F]=m.useState(()=>localStorage.getItem("mcp-settings-restart-notice-dismissed")!=="true"),{toast:h}=Y(),{triggerRestart:w,isRestarting:N}=oe();m.useEffect(()=>{const o=[["mcp.client.roots.items",ae]];for(const[l,f]of o)P.register(l,f,"replace");return()=>{for(const[l]of o)P.unregister(l)}},[]);const k=m.useCallback(async()=>{try{i(!0);const[o,l]=await Promise.all([q(),G()]);if(!o.success){h({title:"加载失败",description:o.error,variant:"destructive"});return}if(!l.success){h({title:"加载失败",description:l.error,variant:"destructive"});return}const f=o.data,_=f.config??f,M=l.data,X=M.schema??M;n(_.mcp??{}),a(X.nested?.mcp??null),u(!1)}catch(o){console.error("加载 MCP 设置失败:",o),h({title:"加载失败",description:o.message,variant:"destructive"})}finally{i(!1)}},[h]);m.useEffect(()=>{k()},[k]);const C=m.useCallback(async()=>{try{c(!0);const o=await J("mcp",x);return o.success?(u(!1),h({title:"保存成功",description:"MCP 设置已保存,重启后生效。"}),!0):(h({title:"保存失败",description:o.error,variant:"destructive"}),!1)}catch(o){return console.error("保存 MCP 设置失败:",o),h({title:"保存失败",description:o.message,variant:"destructive"}),!1}finally{c(!1)}},[x,h]),L=m.useCallback(async()=>{await C()&&await w({delay:500})},[C,w]),K=m.useCallback(()=>{localStorage.setItem("mcp-settings-restart-notice-dismissed","true"),F(!1)},[]),S=r?{className:"MCPSettings",classDoc:"MCP 设置",fields:[],nested:{mcp:{...r,fields:r.fields.filter(o=>o.name!=="servers"),nested:r.nested?Object.fromEntries(Object.entries(r.nested).filter(([o])=>o!=="servers")):void 0}}}:null,W=pe(x.servers);return e.jsx(Q,{className:"h-full",children:e.jsxs("div",{className:"space-y-4 sm:space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("h1",{className:"text-xl sm:text-2xl md:text-3xl font-bold",children:"MCP 设置"}),e.jsx("p",{className:"text-muted-foreground mt-1 text-xs sm:text-sm",children:"管理 MCP 客户端能力与服务器连接配置"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(j,{onClick:C,disabled:t||s||!d||N,size:"sm",variant:"outline",className:"w-24",children:[e.jsx(ce,{className:"h-4 w-4",strokeWidth:2,fill:"none"}),e.jsx("span",{className:"ml-1 text-xs sm:text-sm",children:s?"保存中":d?"保存":"已保存"})]}),e.jsxs(j,{onClick:L,disabled:t||s||N,size:"sm",className:"w-28",children:[e.jsx(le,{className:"h-4 w-4"}),e.jsx("span",{className:"ml-1 text-xs sm:text-sm",children:N?"重启中":"保存重启"})]})]})]}),p&&e.jsxs(z,{children:[e.jsx(U,{className:"h-4 w-4"}),e.jsxs(A,{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsx("span",{children:"MCP 设置保存后需要重启麦麦才会生效。这里与主程序配置中的 MCP 栏目使用同一份配置。"}),e.jsx(j,{type:"button",variant:"outline",size:"sm",onClick:K,children:"我知道了"})]})]}),t&&e.jsx("div",{className:"flex h-64 items-center justify-center text-sm text-muted-foreground",children:"加载中..."}),!t&&e.jsx(fe,{servers:W,onChange:o=>{n(l=>({...l,servers:o})),u(!0)}}),!t&&S&&e.jsx(re,{schema:S,values:{mcp:x},onChange:(o,l)=>{const[,...f]=o.split("."),_=f.length===0?l:$(x,f,l);n(_),u(!0)},hooks:P}),!t&&!S&&e.jsxs(z,{children:[e.jsx(U,{className:"h-4 w-4"}),e.jsx(A,{children:"当前配置 schema 中没有找到 MCP 设置。"})]}),e.jsx(ie,{})]})})}export{Ve as MCPSettingsPage}; diff --git a/dashboard/dist/assets/misc-BwRzHX8c.js b/dashboard/dist/assets/misc-BwRzHX8c.js new file mode 100644 index 00000000..6af3ef3b --- /dev/null +++ b/dashboard/dist/assets/misc-BwRzHX8c.js @@ -0,0 +1,27 @@ +import{r as p,g as fn,j,a as no,R as T}from"./router-zNjPR4CY.js";import{u as Ot,P as it,R as ys,a as gs,O as vs,C as bs,c as Yt}from"./radix-C-ZuImoP.js";import{b as kn,i as ws,a as Pt,c as It,d as Os,e as Wt,f as _t,g as Ss,h as Es,j as ks,k as Ms,l as ro,m as oo,n as xs,o as Cs,p as Ds,q as Ts,r as Ns,s as Ps,t as so,u as Is,v as Ws,w as io,x as Rs,y as As,z as js,A as Fs,B as _s,C as Bs,D as Ls,E as $s,F as Ys,G as Hs,H as zs,I as Us,J as Gs,K as Vs,L as qs}from"./utils-DjBw3JGv.js";function ao(e){return t=>typeof t===e}var Ks=ao("function"),Xs=e=>e===null,hr=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",mr=e=>!Zs(e)&&!Xs(e)&&(Ks(e)||typeof e=="object"),Zs=ao("undefined");function Js(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!he(e[r],t[r]))return!1;return!0}function Qs(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let o=e.byteLength;for(;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}function ei(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!he(n[1],t.get(n[0])))return!1;return!0}function ti(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function he(e,t){if(e===t)return!0;if(e&&mr(e)&&t&&mr(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Js(e,t);if(e instanceof Map&&t instanceof Map)return ei(e,t);if(e instanceof Set&&t instanceof Set)return ti(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Qs(e,t);if(hr(e)&&hr(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=n.length;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=n.length;o--!==0;){const i=n[o];if(!(i==="_owner"&&e.$$typeof)&&!he(e[i],t[i]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function ni(e,t){const n=p.useRef(void 0);(!n.current||!he(t,n.current))&&(n.current=t),p.useEffect(e,n.current)}function ri(){const e=p.useRef(!0);return e.current?(e.current=!1,!0):e.current}function lo(e){const t=p.useRef(null),n=p.useRef(!1),r=p.useRef(e);p.useEffect(()=>(n.current||(t.current=r.current(),n.current=!0),()=>{t.current&&(t.current(),t.current=null)}),[])}function oi(){const e=p.useRef(!1);return p.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),p.useCallback(()=>e.current,[])}function si(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),t}function qn(e={}){const[t,n]=p.useState(e),r=p.useCallback(o=>{n(i=>({...i,...o instanceof Function?o(i):o}))},[]);return[t,r]}function Gt(e){lo(()=>{e()})}function yr(e){const t=p.useRef();return p.useEffect(()=>{t.current=e}),t.current}function Kn(e){const t=p.useRef(!1);t.current||(e(),t.current=!0)}function dn(e){const t=si(e);lo(()=>()=>t.current())}function ii(e,t){const n=ri();p.useEffect(()=>{if(!n)return e()},t)}var Mn,gr;function ai(){if(gr)return Mn;gr=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;Mn={left:o("scrollLeft"),top:o("scrollTop")};function o(s){return function(c,f,u,d){u=u||{},typeof u=="function"&&(d=u,u={}),typeof d!="function"&&(d=a);var h=r(),S=c[s],b=u.ease||i,v=isNaN(u.duration)?350:+u.duration,m=!1;return S===f?d(e,c[s]):requestAnimationFrame(w),y;function y(){m=!0}function w(E){if(m)return d(t,c[s]);var g=r(),O=n(1,(g-h)/v),M=b(O);c[s]=M*(f-S)+S,O<1?requestAnimationFrame(w):requestAnimationFrame(function(){d(null,c[s])})}}}function i(s){return .5*(1-Math.cos(Math.PI*s))}function a(){}return Mn}var li=ai();const ci=fn(li);var on={exports:{}},ui=on.exports,vr;function fi(){return vr||(vr=1,(function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(ui,function(){function t(r){var o=getComputedStyle(r,null).getPropertyValue("overflow");return o.indexOf("scroll")>-1||o.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var o=r.parentNode;o.parentNode;){if(t(o))return o;o=o.parentNode}return document.scrollingElement||document.documentElement}}return n})})(on)),on.exports}var di=fi();const co=fn(di);var xn,br;function pi(){if(br)return xn;br=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,o){return r+n(o)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,xn=n,xn}var hi=pi();const wr=fn(hi);var mi=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],yi=["bigint","boolean","null","number","string","symbol","undefined"];function pn(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(gi(t))return t}function je(e){return t=>pn(t)===e}function gi(e){return mi.includes(e)}function Dt(e){return t=>typeof t===e}function vi(e){return yi.includes(e)}var bi=["innerHTML","ownerDocument","style","attributes","nodeValue"];function N(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(N.array(e))return"Array";if(N.plainFunction(e))return"Function";const t=pn(e);return t||"Object"}N.array=Array.isArray;N.arrayOf=(e,t)=>!N.array(e)&&!N.function(t)?!1:e.every(n=>t(n));N.asyncGeneratorFunction=e=>pn(e)==="AsyncGeneratorFunction";N.asyncFunction=je("AsyncFunction");N.bigint=Dt("bigint");N.boolean=e=>e===!0||e===!1;N.date=je("Date");N.defined=e=>!N.undefined(e);N.domElement=e=>N.object(e)&&!N.plainObject(e)&&e.nodeType===1&&N.string(e.nodeName)&&bi.every(t=>t in e);N.empty=e=>N.string(e)&&e.length===0||N.array(e)&&e.length===0||N.object(e)&&!N.map(e)&&!N.set(e)&&Object.keys(e).length===0||N.set(e)&&e.size===0||N.map(e)&&e.size===0;N.error=je("Error");N.function=Dt("function");N.generator=e=>N.iterable(e)&&N.function(e.next)&&N.function(e.throw);N.generatorFunction=je("GeneratorFunction");N.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;N.iterable=e=>!N.nullOrUndefined(e)&&N.function(e[Symbol.iterator]);N.map=je("Map");N.nan=e=>Number.isNaN(e);N.null=e=>e===null;N.nullOrUndefined=e=>N.null(e)||N.undefined(e);N.number=e=>Dt("number")(e)&&!N.nan(e);N.numericString=e=>N.string(e)&&e.length>0&&!Number.isNaN(Number(e));N.object=e=>!N.nullOrUndefined(e)&&(N.function(e)||typeof e=="object");N.oneOf=(e,t)=>N.array(e)?e.indexOf(t)>-1:!1;N.plainFunction=je("Function");N.plainObject=e=>{if(pn(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};N.primitive=e=>N.null(e)||vi(typeof e);N.promise=je("Promise");N.propertyOf=(e,t,n)=>{if(!N.object(e)||!t)return!1;const r=e[t];return N.function(n)?n(r):N.defined(r)};N.regexp=je("RegExp");N.set=je("Set");N.string=Dt("string");N.symbol=Dt("symbol");N.undefined=Dt("undefined");N.weakMap=je("WeakMap");N.weakSet=je("WeakSet");var A=N,Cn,Or;function wi(){if(Or)return Cn;Or=1;var e=function(y){return t(y)&&!n(y)};function t(m){return!!m&&typeof m=="object"}function n(m){var y=Object.prototype.toString.call(m);return y==="[object RegExp]"||y==="[object Date]"||i(m)}var r=typeof Symbol=="function"&&Symbol.for,o=r?Symbol.for("react.element"):60103;function i(m){return m.$$typeof===o}function a(m){return Array.isArray(m)?[]:{}}function s(m,y){return y.clone!==!1&&y.isMergeableObject(m)?b(a(m),m,y):m}function l(m,y,w){return m.concat(y).map(function(E){return s(E,w)})}function c(m,y){if(!y.customMerge)return b;var w=y.customMerge(m);return typeof w=="function"?w:b}function f(m){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(m).filter(function(y){return Object.propertyIsEnumerable.call(m,y)}):[]}function u(m){return Object.keys(m).concat(f(m))}function d(m,y){try{return y in m}catch{return!1}}function h(m,y){return d(m,y)&&!(Object.hasOwnProperty.call(m,y)&&Object.propertyIsEnumerable.call(m,y))}function S(m,y,w){var E={};return w.isMergeableObject(m)&&u(m).forEach(function(g){E[g]=s(m[g],w)}),u(y).forEach(function(g){h(m,g)||(d(m,g)&&w.isMergeableObject(y[g])?E[g]=c(g,w)(m[g],y[g],w):E[g]=s(y[g],w))}),E}function b(m,y,w){w=w||{},w.arrayMerge=w.arrayMerge||l,w.isMergeableObject=w.isMergeableObject||e,w.cloneUnlessOtherwiseSpecified=s;var E=Array.isArray(y),g=Array.isArray(m),O=E===g;return O?E?w.arrayMerge(m,y,w):S(m,y,w):s(y,w)}b.all=function(y,w){if(!Array.isArray(y))throw new Error("first argument should be an array");return y.reduce(function(E,g){return b(E,g,w)},{})};var v=b;return Cn=v,Cn}var Oi=wi();const nt=fn(Oi);function Si(...e){return e.every(t=>A.string(t)||A.array(t)||A.plainObject(t))}function Ei(e,t,n){return uo(e,t)?[e,t].every(A.array)?!e.some(xr(n))&&t.some(xr(n)):[e,t].every(A.plainObject)?!Object.entries(e).some(Mr(n))&&Object.entries(t).some(Mr(n)):t===n:!1}function Sr(e,t,n){const{actual:r,key:o,previous:i,type:a}=n,s=Ye(e,o),l=Ye(t,o);let c=[s,l].every(A.number)&&(a==="increased"?sl);return A.undefined(r)||(c=c&&l===r),A.undefined(i)||(c=c&&s===i),c}function Er(e,t,n){const{key:r,type:o,value:i}=n,a=Ye(e,r),s=Ye(t,r),l=o==="added"?a:s,c=o==="added"?s:a;if(!A.nullOrUndefined(i)){if(A.defined(l)){if(A.array(l)||A.plainObject(l))return Ei(l,c,i)}else return he(c,i);return!1}return[a,s].every(A.array)?!c.every(Xn(l)):[a,s].every(A.plainObject)?ki(Object.keys(l),Object.keys(c)):![a,s].every(f=>A.primitive(f)&&A.defined(f))&&(o==="added"?!A.defined(a)&&A.defined(s):A.defined(a)&&!A.defined(s))}function kr(e,t,{key:n}={}){let r=Ye(e,n),o=Ye(t,n);if(!uo(r,o))throw new TypeError("Inputs have different types");if(!Si(r,o))throw new TypeError("Inputs don't have length");return[r,o].every(A.plainObject)&&(r=Object.keys(r),o=Object.keys(o)),[r,o]}function Mr(e){return([t,n])=>A.array(e)?he(e,n)||e.some(r=>he(r,n)||A.array(n)&&Xn(n)(r)):A.plainObject(e)&&e[t]?!!e[t]&&he(e[t],n):he(e,n)}function ki(e,t){return t.some(n=>!e.includes(n))}function xr(e){return t=>A.array(e)?e.some(n=>he(n,t)||A.array(t)&&Xn(t)(n)):he(e,t)}function Rt(e,t){return A.array(e)?e.some(n=>he(n,t)):he(e,t)}function Xn(e){return t=>e.some(n=>he(n,t))}function uo(...e){return e.every(A.array)||e.every(A.number)||e.every(A.plainObject)||e.every(A.string)}function Ye(e,t){return A.plainObject(e)||A.array(e)?A.string(t)?t.split(".").reduce((r,o)=>r&&r[o],e):A.number(t)?e[t]:e:e}function Cr(e,t){if([e,t].some(A.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(f=>A.plainObject(f)||A.array(f)))throw new Error("Expected plain objects or array");return{added:(f,u)=>{try{return Er(e,t,{key:f,type:"added",value:u})}catch{return!1}},changed:(f,u,d)=>{try{const h=Ye(e,f),S=Ye(t,f),b=A.defined(u),v=A.defined(d);if(b||v){const m=v?Rt(d,h):!Rt(u,h),y=Rt(u,S);return m&&y}return[h,S].every(A.array)||[h,S].every(A.plainObject)?!he(h,S):h!==S}catch{return!1}},changedFrom:(f,u,d)=>{if(!A.defined(f))return!1;try{const h=Ye(e,f),S=Ye(t,f),b=A.defined(d);return Rt(u,h)&&(b?Rt(d,S):!b)}catch{return!1}},decreased:(f,u,d)=>{if(!A.defined(f))return!1;try{return Sr(e,t,{key:f,actual:u,previous:d,type:"decreased"})}catch{return!1}},emptied:f=>{try{const[u,d]=kr(e,t,{key:f});return!!u.length&&!d.length}catch{return!1}},filled:f=>{try{const[u,d]=kr(e,t,{key:f});return!u.length&&!!d.length}catch{return!1}},increased:(f,u,d)=>{if(!A.defined(f))return!1;try{return Sr(e,t,{key:f,actual:u,previous:d,type:"increased"})}catch{return!1}},removed:(f,u)=>{try{return Er(e,t,{key:f,type:"removed",value:u})}catch{return!1}}}}function St(e){const t=p.useRef(e),n=he(t.current,e),r=p.useRef(n),o=p.useRef(Cr(t.current,e));return p.useEffect(()=>{t.current=e}),(r.current!==n||!n)&&(r.current=n,o.current=Cr(t.current,e)),o.current}var be="top",Te="bottom",Ne="right",we="left",Zn="auto",Vt=[be,Te,Ne,we],Et="start",Ht="end",Mi="clippingParents",fo="viewport",At="popper",xi="reference",Dr=Vt.reduce(function(e,t){return e.concat([t+"-"+Et,t+"-"+Ht])},[]),po=[].concat(Vt,[Zn]).reduce(function(e,t){return e.concat([t,t+"-"+Et,t+"-"+Ht])},[]),Ci="beforeRead",Di="read",Ti="afterRead",Ni="beforeMain",Pi="main",Ii="afterMain",Wi="beforeWrite",Ri="write",Ai="afterWrite",ji=[Ci,Di,Ti,Ni,Pi,Ii,Wi,Ri,Ai];function Ue(e){return e?(e.nodeName||"").toLowerCase():null}function ke(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dt(e){var t=ke(e).Element;return e instanceof t||e instanceof Element}function De(e){var t=ke(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Jn(e){if(typeof ShadowRoot>"u")return!1;var t=ke(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Fi(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!De(i)||!Ue(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function _i(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!De(o)||!Ue(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Bi={name:"applyStyles",enabled:!0,phase:"write",fn:Fi,effect:_i,requires:["computeStyles"]};function ze(e){return e.split("-")[0]}var ft=Math.max,ln=Math.min,kt=Math.round;function Bn(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ho(){return!/^((?!chrome|android).)*safari/i.test(Bn())}function Mt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&De(e)&&(o=e.offsetWidth>0&&kt(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&kt(r.height)/e.offsetHeight||1);var a=dt(e)?ke(e):window,s=a.visualViewport,l=!ho()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,f=(r.top+(l&&s?s.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:f,right:c+u,bottom:f+d,left:c,x:c,y:f}}function Qn(e){var t=Mt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function mo(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Jn(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ze(e){return ke(e).getComputedStyle(e)}function Li(e){return["table","td","th"].indexOf(Ue(e))>=0}function at(e){return((dt(e)?e.ownerDocument:e.document)||window.document).documentElement}function hn(e){return Ue(e)==="html"?e:e.assignedSlot||e.parentNode||(Jn(e)?e.host:null)||at(e)}function Tr(e){return!De(e)||Ze(e).position==="fixed"?null:e.offsetParent}function $i(e){var t=/firefox/i.test(Bn()),n=/Trident/i.test(Bn());if(n&&De(e)){var r=Ze(e);if(r.position==="fixed")return null}var o=hn(e);for(Jn(o)&&(o=o.host);De(o)&&["html","body"].indexOf(Ue(o))<0;){var i=Ze(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function qt(e){for(var t=ke(e),n=Tr(e);n&&Li(n)&&Ze(n).position==="static";)n=Tr(n);return n&&(Ue(n)==="html"||Ue(n)==="body"&&Ze(n).position==="static")?t:n||$i(e)||t}function er(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lt(e,t,n){return ft(e,ln(t,n))}function Yi(e,t,n){var r=Lt(e,t,n);return r>n?n:r}function yo(){return{top:0,right:0,bottom:0,left:0}}function go(e){return Object.assign({},yo(),e)}function vo(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Hi=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,go(typeof t!="number"?t:vo(t,Vt))};function zi(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ze(n.placement),l=er(s),c=[we,Ne].indexOf(s)>=0,f=c?"height":"width";if(!(!i||!a)){var u=Hi(o.padding,n),d=Qn(i),h=l==="y"?be:we,S=l==="y"?Te:Ne,b=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],v=a[l]-n.rects.reference[l],m=qt(i),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,w=b/2-v/2,E=u[h],g=y-d[f]-u[S],O=y/2-d[f]/2+w,M=Lt(E,O,g),D=l;n.modifiersData[r]=(t={},t[D]=M,t.centerOffset=M-O,t)}}function Ui(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||mo(t.elements.popper,o)&&(t.elements.arrow=o))}const Gi={name:"arrow",enabled:!0,phase:"main",fn:zi,effect:Ui,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xt(e){return e.split("-")[1]}var Vi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qi(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:kt(n*o)/o||0,y:kt(r*o)/o||0}}function Nr(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,u=e.isFixed,d=a.x,h=d===void 0?0:d,S=a.y,b=S===void 0?0:S,v=typeof f=="function"?f({x:h,y:b}):{x:h,y:b};h=v.x,b=v.y;var m=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),w=we,E=be,g=window;if(c){var O=qt(n),M="clientHeight",D="clientWidth";if(O===ke(n)&&(O=at(n),Ze(O).position!=="static"&&s==="absolute"&&(M="scrollHeight",D="scrollWidth")),O=O,o===be||(o===we||o===Ne)&&i===Ht){E=Te;var R=u&&O===g&&g.visualViewport?g.visualViewport.height:O[M];b-=R-r.height,b*=l?1:-1}if(o===we||(o===be||o===Te)&&i===Ht){w=Ne;var P=u&&O===g&&g.visualViewport?g.visualViewport.width:O[D];h-=P-r.width,h*=l?1:-1}}var C=Object.assign({position:s},c&&Vi),J=f===!0?qi({x:h,y:b},ke(n)):{x:h,y:b};if(h=J.x,b=J.y,l){var G;return Object.assign({},C,(G={},G[E]=y?"0":"",G[w]=m?"0":"",G.transform=(g.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",G))}return Object.assign({},C,(t={},t[E]=y?b+"px":"",t[w]=m?h+"px":"",t.transform="",t))}function Ki(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:ze(t.placement),variation:xt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Nr(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Nr(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Xi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ki,data:{}};var tn={passive:!0};function Zi(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=ke(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(f){f.addEventListener("scroll",n.update,tn)}),s&&l.addEventListener("resize",n.update,tn),function(){i&&c.forEach(function(f){f.removeEventListener("scroll",n.update,tn)}),s&&l.removeEventListener("resize",n.update,tn)}}const Ji={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Zi,data:{}};var Qi={left:"right",right:"left",bottom:"top",top:"bottom"};function sn(e){return e.replace(/left|right|bottom|top/g,function(t){return Qi[t]})}var ea={start:"end",end:"start"};function Pr(e){return e.replace(/start|end/g,function(t){return ea[t]})}function tr(e){var t=ke(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function nr(e){return Mt(at(e)).left+tr(e).scrollLeft}function ta(e,t){var n=ke(e),r=at(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=ho();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+nr(e),y:l}}function na(e){var t,n=at(e),r=tr(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ft(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ft(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+nr(e),l=-r.scrollTop;return Ze(o||n).direction==="rtl"&&(s+=ft(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function rr(e){var t=Ze(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function bo(e){return["html","body","#document"].indexOf(Ue(e))>=0?e.ownerDocument.body:De(e)&&rr(e)?e:bo(hn(e))}function $t(e,t){var n;t===void 0&&(t=[]);var r=bo(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=ke(r),a=o?[i].concat(i.visualViewport||[],rr(r)?r:[]):r,s=t.concat(a);return o?s:s.concat($t(hn(a)))}function Ln(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ra(e,t){var n=Mt(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ir(e,t,n){return t===fo?Ln(ta(e,n)):dt(t)?ra(t,n):Ln(na(at(e)))}function oa(e){var t=$t(hn(e)),n=["absolute","fixed"].indexOf(Ze(e).position)>=0,r=n&&De(e)?qt(e):e;return dt(r)?t.filter(function(o){return dt(o)&&mo(o,r)&&Ue(o)!=="body"}):[]}function sa(e,t,n,r){var o=t==="clippingParents"?oa(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var f=Ir(e,c,r);return l.top=ft(f.top,l.top),l.right=ln(f.right,l.right),l.bottom=ln(f.bottom,l.bottom),l.left=ft(f.left,l.left),l},Ir(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function wo(e){var t=e.reference,n=e.element,r=e.placement,o=r?ze(r):null,i=r?xt(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case be:l={x:a,y:t.y-n.height};break;case Te:l={x:a,y:t.y+t.height};break;case Ne:l={x:t.x+t.width,y:s};break;case we:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?er(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(i){case Et:l[c]=l[c]-(t[f]/2-n[f]/2);break;case Ht:l[c]=l[c]+(t[f]/2-n[f]/2);break}}return l}function zt(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?Mi:s,c=n.rootBoundary,f=c===void 0?fo:c,u=n.elementContext,d=u===void 0?At:u,h=n.altBoundary,S=h===void 0?!1:h,b=n.padding,v=b===void 0?0:b,m=go(typeof v!="number"?v:vo(v,Vt)),y=d===At?xi:At,w=e.rects.popper,E=e.elements[S?y:d],g=sa(dt(E)?E:E.contextElement||at(e.elements.popper),l,f,a),O=Mt(e.elements.reference),M=wo({reference:O,element:w,placement:o}),D=Ln(Object.assign({},w,M)),R=d===At?D:O,P={top:g.top-R.top+m.top,bottom:R.bottom-g.bottom+m.bottom,left:g.left-R.left+m.left,right:R.right-g.right+m.right},C=e.modifiersData.offset;if(d===At&&C){var J=C[o];Object.keys(P).forEach(function(G){var U=[Ne,Te].indexOf(G)>=0?1:-1,ee=[be,Te].indexOf(G)>=0?"y":"x";P[G]+=J[ee]*U})}return P}function ia(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?po:l,f=xt(r),u=f?s?Dr:Dr.filter(function(S){return xt(S)===f}):Vt,d=u.filter(function(S){return c.indexOf(S)>=0});d.length===0&&(d=u);var h=d.reduce(function(S,b){return S[b]=zt(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[ze(b)],S},{});return Object.keys(h).sort(function(S,b){return h[S]-h[b]})}function aa(e){if(ze(e)===Zn)return[];var t=sn(e);return[Pr(e),t,Pr(t)]}function la(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,f=n.boundary,u=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,S=h===void 0?!0:h,b=n.allowedAutoPlacements,v=t.options.placement,m=ze(v),y=m===v,w=l||(y||!S?[sn(v)]:aa(v)),E=[v].concat(w).reduce(function(B,x){return B.concat(ze(x)===Zn?ia(t,{placement:x,boundary:f,rootBoundary:u,padding:c,flipVariations:S,allowedAutoPlacements:b}):x)},[]),g=t.rects.reference,O=t.rects.popper,M=new Map,D=!0,R=E[0],P=0;P=0,ee=U?"width":"height",W=zt(t,{placement:C,boundary:f,rootBoundary:u,altBoundary:d,padding:c}),te=U?G?Ne:we:G?Te:be;g[ee]>O[ee]&&(te=sn(te));var ue=sn(te),L=[];if(i&&L.push(W[J]<=0),s&&L.push(W[te]<=0,W[ue]<=0),L.every(function(B){return B})){R=C,D=!1;break}M.set(C,L)}if(D)for(var Y=S?3:1,V=function(x){var F=E.find(function(q){var Q=M.get(q);if(Q)return Q.slice(0,x).every(function(oe){return oe})});if(F)return R=F,"break"},k=Y;k>0;k--){var I=V(k);if(I==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const ca={name:"flip",enabled:!0,phase:"main",fn:la,requiresIfExists:["offset"],data:{_skip:!1}};function Wr(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Rr(e){return[be,Ne,Te,we].some(function(t){return e[t]>=0})}function ua(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=zt(t,{elementContext:"reference"}),s=zt(t,{altBoundary:!0}),l=Wr(a,r),c=Wr(s,o,i),f=Rr(l),u=Rr(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":u})}const fa={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ua};function da(e,t,n){var r=ze(e),o=[we,be].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[we,Ne].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function pa(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=po.reduce(function(f,u){return f[u]=da(u,t.rects,i),f},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const ha={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pa};function ma(e){var t=e.state,n=e.name;t.modifiersData[n]=wo({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const ya={name:"popperOffsets",enabled:!0,phase:"read",fn:ma,data:{}};function ga(e){return e==="x"?"y":"x"}function va(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,f=n.altBoundary,u=n.padding,d=n.tether,h=d===void 0?!0:d,S=n.tetherOffset,b=S===void 0?0:S,v=zt(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:f}),m=ze(t.placement),y=xt(t.placement),w=!y,E=er(m),g=ga(E),O=t.modifiersData.popperOffsets,M=t.rects.reference,D=t.rects.popper,R=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,P=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,J={x:0,y:0};if(O){if(i){var G,U=E==="y"?be:we,ee=E==="y"?Te:Ne,W=E==="y"?"height":"width",te=O[E],ue=te+v[U],L=te-v[ee],Y=h?-D[W]/2:0,V=y===Et?M[W]:D[W],k=y===Et?-D[W]:-M[W],I=t.elements.arrow,B=h&&I?Qn(I):{width:0,height:0},x=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yo(),F=x[U],q=x[ee],Q=Lt(0,M[W],B[W]),oe=w?M[W]/2-Y-Q-F-P.mainAxis:V-Q-F-P.mainAxis,ce=w?-M[W]/2+Y+Q+q+P.mainAxis:k+Q+q+P.mainAxis,pe=t.elements.arrow&&qt(t.elements.arrow),Pe=pe?E==="y"?pe.clientTop||0:pe.clientLeft||0:0,Oe=(G=C?.[E])!=null?G:0,Ie=te+oe-Oe-Pe,Je=te+ce-Oe,_e=Lt(h?ln(ue,Ie):ue,te,h?ft(L,Je):L);O[E]=_e,J[E]=_e-te}if(s){var Ve,Nt=E==="x"?be:we,mt=E==="x"?Te:Ne,We=O[g],Qe=g==="y"?"height":"width",yt=We+v[Nt],et=We-v[mt],Be=[be,we].indexOf(m)!==-1,se=(Ve=C?.[g])!=null?Ve:0,de=Be?yt:We-M[Qe]-D[Qe]-se+P.altAxis,me=Be?We+M[Qe]+D[Qe]-se-P.altAxis:et,ge=h&&Be?Yi(de,We,me):Lt(h?de:yt,We,h?me:et);O[g]=ge,J[g]=ge-We}t.modifiersData[r]=J}}const ba={name:"preventOverflow",enabled:!0,phase:"main",fn:va,requiresIfExists:["offset"]};function wa(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Oa(e){return e===ke(e)||!De(e)?tr(e):wa(e)}function Sa(e){var t=e.getBoundingClientRect(),n=kt(t.width)/e.offsetWidth||1,r=kt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ea(e,t,n){n===void 0&&(n=!1);var r=De(t),o=De(t)&&Sa(t),i=at(t),a=Mt(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ue(t)!=="body"||rr(i))&&(s=Oa(t)),De(t)?(l=Mt(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=nr(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ka(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Ma(e){var t=ka(e);return ji.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function xa(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ca(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ar={placement:"bottom",modifiers:[],strategy:"absolute"};function jr(){for(var e=arguments.length,t=new Array(e),n=0;nKt(t)===e}function Ia(e){return Na.includes(e)}function Tt(e){return t=>typeof t===e}function Wa(e){return Pa.includes(e)}var Ra=["innerHTML","ownerDocument","style","attributes","nodeValue"],Xt=e=>Array.isArray(e),Aa=e=>Kt(e)==="AsyncGeneratorFunction",ja=Fe("AsyncFunction"),Fa=Tt("bigint"),_a=e=>e===!0||e===!1,Ba=Fe("Date"),La=Fe("Error"),ot=Tt("function"),$a=Fe("GeneratorFunction"),Ya=e=>typeof e=="number"&&Number.isInteger(e),$n=Fe("Map"),Oo=e=>Number.isNaN(e),or=e=>e===null,So=Fe("Function"),Ha=Fe("Promise"),za=Fe("RegExp"),Yn=Fe("Set"),Zt=Tt("string"),Ua=Tt("symbol"),sr=Tt("undefined"),Ga=Fe("WeakMap"),Va=Fe("WeakSet"),ir=e=>or(e)||sr(e),Eo=e=>!sr(e),qa=e=>Tt("number")(e)&&!Oo(e),Ka=e=>Zt(e)&&e.trim().length>0,Xa=e=>{if(!Zt(e)||e.length===0)return!1;const t=e.trim();return t.length>0&&Number.isFinite(Number(t))},mn=e=>!ir(e)&&(ot(e)||typeof e=="object"),ko=e=>{if(Kt(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})},Za=e=>or(e)||Wa(typeof e),Ja=e=>Kt(e)==="URL",Mo=e=>!ir(e)&&ot(e[Symbol.iterator]),Qa=e=>Mo(e)&&ot(e.next)&&ot(e.throw),el=e=>ot(e)&&/^class\s/.test(e.toString()),tl=(e,t)=>!Xt(e)||!ot(t)?!1:e.every(n=>t(n)),nl=e=>mn(e)&&!ko(e)&&e.nodeType===1&&Zt(e.nodeName)&&Ra.every(t=>t in e),rl=e=>Zt(e)&&e.length===0||Xt(e)&&e.length===0||mn(e)&&!$n(e)&&!Yn(e)&&Object.keys(e).length===0||Yn(e)&&e.size===0||$n(e)&&e.size===0,ol=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype,sl=(e,t)=>Xt(e)?e.indexOf(t)>-1:!1,il=(e,t,n)=>{if(!mn(e)||!t)return!1;const r=e[t];return ot(n)?n(r):Eo(r)};function Z(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Xt(e))return"Array";if(So(e))return"Function";const t=Kt(e);return t||"Object"}Z.array=Xt;Z.arrayOf=tl;Z.asyncGeneratorFunction=Aa;Z.asyncFunction=ja;Z.bigint=Fa;Z.boolean=_a;Z.class=el;Z.date=Ba;Z.defined=Eo;Z.domElement=nl;Z.empty=rl;Z.error=La;Z.function=ot;Z.generator=Qa;Z.generatorFunction=$a;Z.instanceOf=ol;Z.integer=Ya;Z.iterable=Mo;Z.map=$n;Z.nan=Oo;Z.null=or;Z.nullOrUndefined=ir;Z.nonEmptyString=Ka;Z.number=qa;Z.numericString=Xa;Z.object=mn;Z.oneOf=sl;Z.plainFunction=So;Z.plainObject=ko;Z.primitive=Za;Z.promise=Ha;Z.propertyOf=il;Z.regexp=za;Z.set=Yn;Z.string=Zt;Z.symbol=Ua;Z.undefined=sr;Z.url=Ja;Z.weakMap=Ga;Z.weakSet=Va;var Ce=Z;const lt={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};lt.defaultMerge;function al(e,t){return t}function ll(e,t){return e.filter(n=>n!==void 0)}var _r;(function(e){e[e.NOT=0]="NOT",e[e.RECORD=1]="RECORD",e[e.ARRAY=2]="ARRAY",e[e.SET=3]="SET",e[e.MAP=4]="MAP",e[e.OTHER=5]="OTHER"})(_r||(_r={}));function Br(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:fl(e)?1:e instanceof Set?3:e instanceof Map?4:5}function cl(e){const t=new Set;for(const n of e)for(const r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(r);return t}function ul(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}function xo(e){let t=0,n=e[0]?.[Symbol.iterator]();return{[Symbol.iterator](){return{next(){do{if(n===void 0)return{done:!0,value:void 0};const r=n.next();if(r.done===!0){t+=1,n=e[t]?.[Symbol.iterator]();continue}return{done:!1,value:r.value}}while(!0)}}}}}const Lr=["[object Object]","[object Module]"];function fl(e){if(!Lr.includes(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(t===void 0)return!0;const n=t.prototype;return!(n===null||typeof n!="object"||!Lr.includes(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function dl(e,t,n){const r={};for(const o of cl(e)){const i=[];for(const l of e)ul(l,o)&&i.push(l[o]);if(i.length===0)continue;const a=t.metaDataUpdater(n,{key:o,parents:e}),s=Co(i,t,a);s!==lt.skip&&(o==="__proto__"?Object.defineProperty(r,o,{value:s,configurable:!0,enumerable:!0,writable:!0}):r[o]=s)}return r}function pl(e){return e.flat()}function hl(e){return new Set(xo(e))}function ml(e){return new Map(xo(e))}function yl(e){return e.at(-1)}const nn={mergeRecords:dl,mergeArrays:pl,mergeSets:hl,mergeMaps:ml,mergeOthers:yl};function cn(...e){return gl({})(...e)}function gl(e,t){const n=vl(e,r);function r(...o){return Co(o,n,t)}return r}function vl(e,t){return{defaultMergeFunctions:nn,mergeFunctions:{...nn,...Object.fromEntries(Object.entries(e).filter(([n,r])=>Object.hasOwn(nn,n)).map(([n,r])=>r===!1?[n,nn.mergeOthers]:[n,r]))},metaDataUpdater:e.metaDataUpdater??al,deepmerge:t,useImplicitDefaultMerging:e.enableImplicitDefaultMerging??!1,filterValues:e.filterValues===!1?void 0:e.filterValues??ll,actions:lt}}function Co(e,t,n){const r=t.filterValues?.(e,n)??e;if(r.length===0)return;if(r.length===1)return Dn(r,t,n);const o=Br(r[0]);if(o!==0&&o!==5){for(let i=1;i{const{arrow:{size:b},floater:v,floaterCentered:m,floaterClosing:y,floaterOpening:w,floaterWithComponent:E}=c;let g={...v};return o||(s.startsWith("top")?g.padding=`0 0 ${b}px`:s.startsWith("bottom")?g.padding=`${b}px 0 0`:s.startsWith("left")?g.padding=`0 ${b}px 0 0`:s.startsWith("right")&&(g.padding=`0 0 0 ${b}px`)),l===z.CLOSING&&(g={...g,...y}),(l===z.OPENING||l===z.OPEN)&&(g={...g,...w}),s==="center"&&(g={...g,...m}),t&&(g={...g,...E}),g},[t,o,s,l,c]),u=["closing","open","opening","render"].includes(l),d={},h=["__floater"],S={role:"tooltip"};if(t){const b={closeFn:a,id:i,...S};d.content=p.isValidElement(t)?p.cloneElement(t,b):t(b)}else d.content=j.jsx(xl,{...e,content:n});return l===z.OPEN&&h.push("__floater__open"),o||(d.arrow=j.jsx(kl,{...e})),u?j.jsx("div",{ref:r,id:i,style:{zIndex:c.options.zIndex},children:j.jsx("div",{className:h.join(" "),style:f,...S,children:j.jsxs("div",{className:"__floater__body",children:[d.content,d.arrow]})})}):null}var Dl=p.memo(Cl);const Tn="react-floater-portal";function Do(){return!!(typeof window<"u"&&window.document?.createElement)}function $r(e){return{autoOpen:!1,debug:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1},...e}}function Tl(e){if(e.startsWith("left"))return["top","bottom"];if(e.startsWith("right"))return["bottom","top"]}function Nl(e){return cn({flip:{name:"flip",enabled:!0,options:{padding:20}},preventOverflow:{name:"preventOverflow",enabled:!0,options:{padding:10}}},e??{})}function Hn(e){if(!e)return!1;const{nodeName:t}=e;return t==="BODY"||t==="HTML"?!1:getComputedStyle(e).position==="fixed"?!0:e.parentNode instanceof HTMLElement?Hn(e.parentNode):!1}function Nn(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function rn({data:e,debug:t=!1,title:n}){const r=console.log;t&&n&&e&&(console.groupCollapsed(`%creact-floater: ${n}`,"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(o=>{Ce.plainObject(o)&&o.key?r.apply(console,[o.key,o.value]):r.apply(console,[o])}):r.apply(console,[e]),console.groupEnd())}function Pn(e,t){return cn(e,t??{})}function Pl(e,t,n,r=!1){e.removeEventListener(t,n,r)}function Il(e,t,n,r=!1){e.addEventListener(t,n,r)}function Wl(e,t,n,r=!1){let o=i=>{n(i),Pl(e,t,o)};Il(e,t,o,r)}function Rl(){return`rf-${Math.round(Math.random()*1e5)}`}function To(e){p.useEffect(e,[])}function No(e){To(e)}function Al(e){const t=p.useRef(e);t.current=e,To(()=>()=>t.current())}function jl(e,t){const n=p.useRef(!0);p.useEffect(()=>{n.current||e()},t),n.current&&(n.current=!1)}function Fl(e){const{children:t,hasChildren:n,internalId:r,placement:o,portalElement:i,target:a,zIndex:s}=e,l=p.useRef(null),c=p.useCallback(()=>{if(i&&(l.current=Ce.string(i)?document.querySelector(i):i),!i||!l.current){const f=document.getElementById(Tn);if(f){const u=f.dataset.ids?.split(",").filter(Boolean)??[];!u.includes(r)&&r&&u.push(r),f.dataset.ids=u.join(","),l.current=f}else l.current=document.createElement("div"),l.current.id=Tn,l.current.dataset.ids=r,l.current.style.zIndex=`${s}`,document.body.appendChild(l.current)}},[r,i,s]);return No(()=>{c()}),p.useEffect(()=>{c()},[c]),Al(()=>{if(l.current)try{if(l.current.id===Tn){const f=(l.current.dataset.ids?.split(",")??[]).filter(u=>u!==r);l.current.dataset.ids=f.join(","),f.length===0&&(document.body.removeChild(l.current),l.current=null)}}catch{l.current=null}}),l.current?!n&&!a&&o!=="center"?null:no.createPortal(t,l.current):null}function _l(e){const{childRef:t,children:n,id:r,isControlled:o,onClick:i,onMount:a,onMouseEnter:s,onMouseLeave:l,status:c,style:f,styles:u,wrapperRef:d}=e;No(()=>{a()});let h=null;const S={...u,...f,...p.isValidElement(n)?n.props.style:void 0},b=`${r}-wrapper`;let v={"aria-describedby":[z.OPENING,z.OPEN,z.CLOSING].includes(c)?r:void 0,style:S};return o||(v={...v,onClick:i,onMouseEnter:s,onMouseLeave:l}),n&&(p.Children.count(n)===1&&p.isValidElement(n)&&n.type!==p.Fragment?h=Ce.function(n.type)?j.jsx("span",{ref:d,id:b,...v,children:p.cloneElement(p.Children.only(n),{innerRef:t})}):p.cloneElement(p.Children.only(n),{id:b,ref:d,...v}):h=j.jsx("span",{ref:d,id:b,...v,children:n})),h}var Bl=p.memo(_l);const Ll={zIndex:100};function $l(e){const{options:t={},...n}=e??{};return cn({arrow:{base:32,color:"#fff",display:"inline-flex",position:"absolute",size:16},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},content:{fontSize:15},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},floaterClosing:{opacity:0,visibility:"visible"},floaterOpening:{opacity:1,visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},wrapper:{cursor:"help",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},options:cn(Ll,t)},n)}function Yl(e){const{arrow:t,autoOpen:n=!1,callback:r,children:o,component:i,content:a,debug:s=!1,disableFlip:l=!1,disableHoverToClick:c=!1,event:f="click",eventDelay:u=.4,footer:d,getPopper:h,hideArrow:S=!1,id:b,modifiers:v,offset:m=15,open:y,placement:w="bottom",portalElement:E,showCloseButton:g=!1,style:O,styles:M,target:D,title:R,wrapperOptions:P}=$r(e),[C,J]=p.useReducer((se,de)=>({...se,...de}),{currentPlacement:w,positionWrapper:!!P?.position&&!!D,status:z.INIT,statusWrapper:z.INIT}),G=p.useRef(null),U=p.useRef(null),ee=p.useRef(void 0),W=p.useRef(null),te=p.useRef(Rl()),ue=p.useRef(!1),L=p.useRef(void 0),Y=p.useRef(C),V=p.useRef(void 0),k=p.useRef(null),I=p.useRef(void 0),{currentPlacement:B,positionWrapper:x,status:F,statusWrapper:q}=C,{changed:Q}=St(C),{changed:oe}=St(e),ce=p.useCallback((se,de)=>{ue.current&&(J(se),Y.current={...Y.current,...se},de&&de())},[]),pe=p.useCallback(se=>{let de=Y.current.status===z.OPEN?z.CLOSING:z.RENDER;Ce.undefined(se)||(de=se),ce({status:de,statusWrapper:de===z.CLOSING?z.RENDER:z.IDLE})},[ce]),Pe=p.useRef(()=>D?Ce.domElement(D)?D:document.querySelector(D):U.current??k.current),Oe=p.useMemo(()=>Do()&&(s||!!window.ReactFloaterDebug),[s]),Ie=p.useMemo(()=>f==="hover"&&Nn()&&!c?"click":f,[c,f]),Je=p.useMemo(()=>{const se=$l(M),de=Pe.current();if(x){let me;F!==z.IDLE?me=se.wrapperPosition:q===z.RENDER&&(me=V.current?.state.styles),se.wrapper={...se.wrapper,...me}}if(de){const me=window.getComputedStyle(de);I.current?se.wrapper={...se.wrapper,...I.current}:["relative","static"].includes(me.position)||(I.current={},x||(El.forEach(ge=>{I.current[ge]=me[ge]}),se.wrapper={...se.wrapper,...I.current}))}return se},[x,F,q,M]),_e=p.useCallback(()=>{const se=Y.current.status===z.RENDER?z.OPENING:z.IDLE,de=Pe.current();if(w==="center")setTimeout(()=>{ce({status:se})},100);else if(de){if(W.current){const{arrow:me,flip:ge,offset:wn,...On}=Nl(v);L.current=Fr(de,W.current,{placement:w,strategy:Hn(Pe.current())?"fixed":"absolute",modifiers:[Pn({name:"arrow",enabled:!S,options:{element:G.current,padding:8}},me),Pn({name:"flip",enabled:!l,options:{altAxis:!1,fallbackPlacements:Tl(w||"bottom")}},ge),Pn({name:"offset",enabled:!0,options:{offset:[0,m]}},wn),{name:"updatePlacement",enabled:!0,phase:"afterWrite",fn:({instance:tt,state:ve})=>{ve.placement!==Y.current.currentPlacement&&(L.current=tt,ce({currentPlacement:ve.placement}))}},{name:"applyArrowStyle",enabled:!0,phase:"write",fn:({state:tt})=>{const{elements:{arrow:ve},placement:gt}=tt;ve&&(gt.startsWith("top")?(ve.style.bottom="0px",ve.style.right=""):gt.startsWith("bottom")?(ve.style.top="0px",ve.style.right=""):gt.startsWith("left")?(ve.style.right="0px",ve.style.bottom=""):gt.startsWith("right")&&(ve.style.left="0px",ve.style.bottom=""))}},...Object.values(On)],onFirstUpdate:tt=>{ce({currentPlacement:tt.placement,status:se}),w!==tt.placement&&setTimeout(()=>{L.current?.forceUpdate()})}}),h&&L.current&&h(L.current,"floater")}else ce({status:z.IDLE});if(k.current&&!V.current&&Y.current.positionWrapper){const me=P?.offset??0;V.current=Fr(de,k.current,{placement:P?.placement??w,strategy:Hn(Pe.current())?"fixed":"absolute",modifiers:[{name:"arrow",enabled:!1},{name:"offset",options:{offset:[0,me]}},{name:"flip",enabled:!1}],onFirstUpdate:ge=>{ce({statusWrapper:z.RENDER}),w!==ge.placement&&setTimeout(()=>{V.current?.forceUpdate()})}}),h&&h(V.current,"wrapper")}}},[l,h,S,v,m,w,ce,P?.offset,P?.placement]);const Ve=p.useCallback(()=>{L.current&&L.current.forceUpdate(),V.current&&V.current.forceUpdate()},[]);const Nt=p.useCallback(()=>{V.current&&V.current.forceUpdate(),ce({status:Y.current.status===z.OPENING?z.OPEN:z.IDLE},()=>{r&&r(Y.current.status===z.OPEN?"open":"close",$r(e))})},[ce,r,e]),mt=p.useCallback(()=>{Ce.boolean(y)||(Ie==="click"||Ie==="hover"&&x)&&(rn({title:"click",data:[{event:f,status:F===z.OPEN?"closing":"opening"}],debug:Oe}),pe(F==="idle"?z.RENDER:void 0))},[Oe,Ie,f,y,x,F,pe]),We=p.useCallback(()=>{Ce.boolean(y)||Nn()||Ie!=="hover"||(rn({title:"mouseEnter",data:[{key:"originalEvent",value:f}],debug:Oe}),F===z.IDLE&&(clearTimeout(ee.current),ee.current=void 0,pe(z.RENDER)))},[Oe,Ie,f,y,F,pe]),Qe=p.useCallback(()=>{if(!(Ce.boolean(y)||Nn())&&Ie==="hover"){rn({title:"mouseLeave",data:[{key:"originalEvent",value:f}],debug:Oe});const se=[z.OPENING,z.OPEN].includes(F);u?x||se&&(clearTimeout(ee.current),ee.current=window.setTimeout(()=>{pe(),ee.current=void 0},u*1e3)):pe(F===z.CLOSING?z.IDLE:z.CLOSING)}},[Oe,Ie,f,u,y,x,F,pe]),yt=p.useCallback(()=>{x&&_e()},[_e,x]),et=p.useCallback(()=>{L.current&&(L.current.destroy(),L.current=void 0),V.current&&(V.current.destroy(),V.current=void 0)},[]);p.useEffect(()=>{window.addEventListener("load",Ve)},[Ve]),p.useEffect(()=>{ue.current=!0,_e()},[_e]),p.useEffect(()=>{rn({title:"init",data:{hasChildren:!!o,hasTarget:!!D,isControlled:Ce.boolean(y),positionWrapper:x,target:Pe.current(),floater:W.current},debug:Oe})},[o,D,y,x,Oe]),p.useEffect(()=>()=>{ue.current=!1,clearTimeout(ee.current),et(),window.removeEventListener("load",Ve)},[et,Ve]),p.useEffect(()=>{Y.current=C},[C]),jl(()=>{if(oe("open")){let se;Ce.boolean(y)&&(se=y?z.RENDER:z.CLOSING),pe(se)}if((oe("wrapperOptions.position")||oe("target"))&&ce({positionWrapper:!!P?.position&&!!D}),(Q("status",z.IDLE)&&y||Q("status",z.IDLE,z.INIT)&&n)&&pe(z.RENDER),Q("status",z.RENDER)&&(L.current&&L.current.destroy(),_e()),W.current&&Q("status",[z.RENDER,z.CLOSING])&&Wl(W.current,"transitionend",Nt),Q("status",z.IDLE,z.CLOSING)&&L.current){L.current.destroy(),L.current=void 0;V.current&&V.current.forceUpdate()}});const Be=j.jsx(Bl,{childRef:U,id:b??te.current,isControlled:Ce.boolean(y),onClick:mt,onMount:yt,onMouseEnter:We,onMouseLeave:Qe,status:F,style:O,styles:Je.wrapper,wrapperRef:k,children:o});return j.jsxs(j.Fragment,{children:[j.jsxs(Fl,{hasChildren:!!o,internalId:te.current,placement:B,portalElement:E,target:D,zIndex:Je.options.zIndex,children:[j.jsx(Dl,{arrow:t,arrowRef:G,component:i,content:a,floaterRef:W,footer:d,hideArrow:S||B==="center",id:b??te.current,onClick:mt,placement:B,positionWrapper:x,showCloseButton:g,status:F,styles:Je,title:R}),x&&Be]}),!x&&Be]})}function Hl(e){return Do()?j.jsx(Yl,{...e}):null}var zl=Object.defineProperty,Ul=(e,t,n)=>t in e?zl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,re=(e,t,n)=>Ul(e,typeof t!="symbol"?t+"":t,n);function Gl(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function Po(e){return e?e.getBoundingClientRect():null}function Vl(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((i,a)=>i-a),o=Math.floor(r.length/2);return r.length%2===0?(r[o-1]+r[o])/2:r[o]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function rt(e){if(!e)return null;if(typeof e=="string")try{return document.querySelector(e)}catch{return null}return e}function ql(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Ut(e,t,n){if(!e)return ct();const r=co(e);if(r){if(r.isSameNode(ct()))return n?document:ct();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",ct()}return r}function yn(e,t){if(!e)return!1;const n=Ut(e,t);return n?!n.isSameNode(ct()):!1}function Kl(e){return e.offsetParent!==document.body}function Ct(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=ql(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Ct(e.parentNode,t):!1}function Xl(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:o}=getComputedStyle(n);if(r==="none"||o==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function Zl(e,t,n){var r,o,i;const a=Po(e),s=Ut(e,n),l=yn(e,n),c=Ct(e);let f=0,u=(r=a?.top)!=null?r:0;if(l&&c){const d=(o=e?.offsetTop)!=null?o:0,h=(i=s?.scrollTop)!=null?i:0;u=d-h}else s instanceof HTMLElement&&(f=s.scrollTop,!l&&!Ct(e)&&(u+=f),s.isSameNode(ct())||(u+=ct().scrollTop));return Math.floor(u-t)}function Jl(e,t,n){var r;if(!e)return 0;const{offsetTop:o=0,scrollTop:i=0}=(r=co(e))!=null?r:{};let a=e.getBoundingClientRect().top+i;o&&(yn(e,n)||Kl(e))&&(a-=o);const s=Math.floor(a-t);return s<0?0:s}function ct(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Ql(e,t){const{duration:n,element:r}=t;return new Promise((o,i)=>{const{scrollTop:a}=r,s=e>a?e-a:a-e;ci.top(r,e,{duration:s<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?i(l):o())})}var ae={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},qe={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},$={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},K={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"},Io="react-joyride-portal";function ec(e){const t={};for(const n in e)e[n]!==void 0&&(t[n]=e[n]);return t}function Wo(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function an(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function $e(e,t={}){const{defaultValue:n,step:r,steps:o}=t;let i=wr(e);if(i)(i.includes("{step}")||i.includes("{steps}"))&&r&&o&&(i=i.replace("{step}",r.toString()).replace("{steps}",o.toString()));else if(p.isValidElement(e)&&!Object.values(e.props).length&&an(e.type)==="function"){const a=e.type({});i=$e(a,t)}else i=wr(n);return i}function tc(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(o,i,a,s)=>i+i+a+a+s+s),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function nc(e,t,n){const{action:r}=t,o=n&&[ae.PREV,ae.NEXT].includes(r);return e.disableBeacon||e.placement==="center"||o}function Yr(){return!["chrome","safari","firefox","opera"].includes(Wo())}function pt({data:e,debug:t=!1,title:n,warn:r=!1}){var o;const i=r?(o=console.warn)!=null?o:console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(a=>{A.plainObject(a)&&a.key?i.apply(console,[a.key,a.value]):i.apply(console,[a])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function rc(e,t){const n=ec(t);return{...e,...n}}function oc(e,...t){if(!A.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function sc(e,...t){if(!A.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function zn(e,t,n){const r=i=>i.replace("{step}",String(t)).replace("{steps}",String(n));if(an(e)==="string")return r(e);if(!p.isValidElement(e))return e;const{children:o}=e.props;if(an(o)==="string"&&o.includes("{step}"))return p.cloneElement(e,{children:r(o)});if(Array.isArray(o))return p.cloneElement(e,{children:o.map(i=>typeof i=="string"?r(i):zn(i,t,n))});if(an(e.type)==="function"&&!Object.values(e.props).length){const i=e.type({});return zn(i,t,n)}return e}function ic(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:o,step:i,target:a}=e;return!i.disableScrolling&&(!t||o||n===$.TOOLTIP)&&i.placement!=="center"&&(!i.isFixed||!Ct(a))&&r!==n&&[$.BEACON,$.TOOLTIP].includes(n)}var ac={modifiers:{preventOverflow:{options:{rootBoundary:"viewport"}}},wrapperOptions:{offset:-18,position:!0}},Ro={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},lc={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:Ro,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},cc={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},uc={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},jt={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},Hr={borderRadius:4,position:"absolute"};function fc(e,t){var n,r,o,i,a;const{floaterProps:s,styles:l}=e,c=nt((n=t.floaterProps)!=null?n:{},s??{}),f=nt(l??{},(r=t.styles)!=null?r:{}),u=nt(uc,f.options||{}),d=t.placement==="center"||t.disableBeacon;let{width:h}=u;window.innerWidth>480&&(h=380),"width"in u&&(h=typeof u.width=="number"&&window.innerWidthAo(n,t)):(pt({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var pc={action:"init",controlled:!1,index:0,lifecycle:$.INIT,origin:null,size:0,status:K.IDLE},hc=class{constructor(e){re(this,"beaconPopper"),re(this,"tooltipPopper"),re(this,"data",new Map),re(this,"listener"),re(this,"props"),re(this,"store",new Map),re(this,"updateState",(o,i=!1)=>{this.setState({...this.getState(),...this.prepareState(o,i)})}),re(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),re(this,"getPopper",o=>o==="beacon"?this.beaconPopper:this.tooltipPopper),re(this,"setPopper",(o,i)=>{var a,s;i==="wrapper"?this.beaconPopper=o:this.tooltipPopper=o,o&&this.store.get("lifecycle")===$.COMPLETE&&this.updateState({action:ae.UPDATE,lifecycle:$.INIT});const l=(s=(a=this.getStep())==null?void 0:a.floaterProps)==null?void 0:s.getPopper;l&&l(o,i)}),re(this,"addListener",o=>{this.listener=o}),re(this,"setSteps",o=>{const{size:i,status:a}=this.getState(),s={size:o.length,status:a};this.data.set("steps",o),a===K.WAITING&&!i&&o.length&&(s.status=K.RUNNING),this.updateState(s)}),re(this,"close",(o=null)=>{const{index:i,status:a}=this.getState();a===K.RUNNING&&this.updateState({action:ae.CLOSE,index:i+1,origin:o,lifecycle:$.COMPLETE})}),re(this,"go",o=>{const{controlled:i,status:a}=this.getState();if(i||a!==K.RUNNING)return;const s=this.getStep(o);this.updateState({action:ae.GO,index:o,lifecycle:$.COMPLETE,status:s?a:K.FINISHED})}),re(this,"info",()=>this.getState()),re(this,"next",()=>{const{index:o,status:i}=this.getState();i===K.RUNNING&&this.updateState({action:ae.NEXT,index:this.getUpdatedIndex(o+1),lifecycle:$.COMPLETE})}),re(this,"open",()=>{const{status:o}=this.getState();o===K.RUNNING&&this.updateState({action:ae.UPDATE,lifecycle:$.TOOLTIP})}),re(this,"prev",()=>{const{index:o,status:i}=this.getState();i===K.RUNNING&&this.updateState({action:ae.PREV,index:this.getUpdatedIndex(o-1),lifecycle:$.COMPLETE})}),re(this,"reset",(o=!1)=>{const{controlled:i}=this.getState();i||this.updateState({action:ae.RESET,index:0,lifecycle:$.COMPLETE,status:o?K.RUNNING:K.READY})}),re(this,"skip",()=>{const{status:o}=this.getState();o===K.RUNNING&&this.updateState({action:ae.SKIP,lifecycle:$.COMPLETE,status:K.SKIPPED})}),re(this,"start",o=>{const{index:i,size:a}=this.getState();this.updateState({action:ae.START,index:A.number(o)?o:i,status:a?K.RUNNING:K.WAITING},!0)}),re(this,"stop",(o=!1)=>{const{index:i,status:a}=this.getState();[K.FINISHED,K.SKIPPED].includes(a)||this.updateState({action:ae.STOP,index:i+(o?1:0),lifecycle:$.COMPLETE,status:K.PAUSED})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:ae.INIT,controlled:A.number(n),continuous:t,index:A.number(n)?n:0,lifecycle:$.INIT,origin:null,status:r.length?K.READY:K.IDLE},!0),this.setSteps(r),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.props=e??{steps:[]}}getStep(e){const t=this.data.get("steps"),{index:n}=this.getState();return un(this.props,t[e??n])}getUpdatedIndex(e){const{size:t}=this.getState();return Math.min(Math.max(e,0),t)}hasUpdatedState(e){return!he(e,this.getState())}prepareState(e,t=!1){var n,r,o,i,a,s;const{action:l,controlled:c,index:f,size:u,status:d}=this.getState(),h=(n=e.index)!=null?n:f;return{action:(r=e.action)!=null?r:l,controlled:c,index:c&&!t?f:h,lifecycle:(o=e.lifecycle)!=null?o:$.INIT,origin:(i=e.origin)!=null?i:null,size:(a=e.size)!=null?a:u,status:(s=e.status)!=null?s:d}}setState(e,t=!1){const n=this.getState(),{action:r,index:o,lifecycle:i,origin:a=null,size:s,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",o),this.store.set("lifecycle",i),this.store.set("origin",a),this.store.set("size",s),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getState(){var e;return(e=this==null?void 0:this.store)!=null&&e.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...pc}}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function mc(e){return new hc(e)}function yc(e){const{callback:t,continuous:n,debug:r,disableScrollParentFix:o,getHelpers:i,run:a,scrollDuration:s,scrollOffset:l,scrollToFirstStep:c,stepIndex:f,steps:u}=e,d=p.useRef(mc(e)),[h,S]=qn(d.current.getState()),{action:b,controlled:v,index:m,lifecycle:y,size:w,status:E}=h,g=p.useRef(null),O=yr(e),M=yr(h),{changed:D}=St(e),{changed:R,changedFrom:P}=St(h),C=p.useMemo(()=>un(e,u[m]),[m,e,u]),J=p.useMemo(()=>un(e,u[m-1]),[m,e,u]);Kn(()=>{d.current.addListener(U=>{S(U)})});const G=p.useCallback(U=>{var ee,W,te,ue,L,Y;if(!C)return;const V=rt(C.target),k=ic({isFirstStep:m===0,lifecycle:y,previousLifecycle:U.lifecycle,scrollToFirstStep:c,step:C,target:V}),I=d.current.getPopper("beacon"),B=d.current.getPopper("tooltip");if(E===K.RUNNING&&k){const x=yn(V,o),F=Ut(V,o);let q=Math.floor(Jl(V,l,o))||0;if(pt({title:"scrollToStep",data:[{key:"index",value:m},{key:"lifecycle",value:y},{key:"status",value:E}],debug:r}),y===$.BEACON&&I){const{modifiersData:Q,placement:oe}=(ee=I.state)!=null?ee:{},{offset:ce}=Q??{},pe=(te=(W=ce?.top)==null?void 0:W.y)!=null?te:0;!["bottom"].includes(oe)&&!x&&(q=Math.floor(pe-l))}else if(y===$.TOOLTIP&&B){const{modifiersData:Q,placement:oe}=(ue=B.state)!=null?ue:{},{offset:ce}=Q??{},pe=(Y=(L=ce?.top)==null?void 0:L.y)!=null?Y:0,Pe=!!oe&&oe!==C.placement;["top","right","left"].includes(oe)&&!Pe&&!x?q=Math.floor(pe-l):q-=C.spotlightPadding}q=q>=0?q:0,E===K.RUNNING&&Ql(q,{element:F,duration:s}).then(()=>{setTimeout(()=>{var Q;(Q=d.current.getPopper("tooltip"))==null||Q.update()},10)})}},[r,o,m,y,s,l,c,E,C]);return Gt(()=>{a&&w&&zr(u,r)&&d.current.start(),i&&i(d.current.getHelpers())}),ii(()=>{a&&w&&E===K.IDLE&&d.current.updateState({status:K.READY}),i&&i(d.current.getHelpers())},[i,a,w,E]),ni(()=>{var U,ee,W,te;if(!O||!M)return;(R("action",[ae.NEXT,ae.PREV,ae.SKIP,ae.CLOSE])||g.current===ae.CLOSE&&b===ae.START)&&(g.current=b),E===K.RUNNING&&C&&y===$.INIT&&d.current.updateState({action:(U=g.current)!=null?U:ae.UPDATE,lifecycle:$.READY}),w&&!C&&y===$.INIT&&d.current.updateState({action:ae.UPDATE,lifecycle:$.COMPLETE,status:K.FINISHED}),E===K.RUNNING&&C?.placement==="center"&&R("lifecycle",$.COMPLETE)&&d.current.updateState({action:ae.UPDATE,lifecycle:$.INIT});const L=rt(C?.target),Y=!!L;C&&Y&&Xl(L)?P("lifecycle",$.INIT,$.READY)&&t?.({...h,action:(ee=g.current)!=null?ee:b,step:C,type:qe.STEP_BEFORE}):C&&E===K.RUNNING&&(console.warn(Y?"Target not visible":"Target not mounted",C),t?.({...h,type:qe.TARGET_NOT_FOUND,step:C}),v||d.current.updateState({action:ae.UPDATE,index:m+(b===ae.PREV?-1:1)})),C&&R("lifecycle",$.READY)&&d.current.updateState({action:ae.UPDATE,lifecycle:nc(C,h,n)?$.TOOLTIP:$.BEACON}),C&&R("lifecycle",$.BEACON)&&t?.({...h,step:C,type:qe.BEACON}),C&&R("lifecycle",$.TOOLTIP)&&t?.({...h,step:C,type:qe.TOOLTIP});const V=E===K.RUNNING||v&&E===K.PAUSED&&!!C,k=C??J;if(V&&k&&R("lifecycle",$.COMPLETE,$.TOOLTIP)&&(Y||!C)&&t?.({...h,action:(W=g.current)!=null?W:ae.UPDATE,index:(te=M.index)!=null?te:m,lifecycle:y,step:k,type:qe.STEP_AFTER}),E===K.WAITING&&d.current.updateState({status:K.RUNNING}),D()){const{stepIndex:B,steps:x}=O;if(he(x,u)||(zr(u,r)?d.current.updateState({size:u.length}):console.warn("Steps are not valid",u)),D("run"))a?d.current.getState().size&&d.current.start(f):d.current.stop();else if(A.number(f)&&D("stepIndex")){const F=A.number(B)&&B=w&&d.current.updateState({action:ae.UPDATE,lifecycle:$.COMPLETE,status:K.FINISHED}),J&&R("status",[K.FINISHED,K.SKIPPED])&&(t?.({...h,index:m-1,step:J,type:qe.TOUR_END}),d.current.reset()),C&&P("status",[K.IDLE,K.READY,K.PAUSED],K.RUNNING)&&t?.({...h,step:C,type:qe.TOUR_START}),C&&R("action",ae.STOP)&&t?.({...h,step:C,type:qe.TOUR_STATUS}),C&&R("action",ae.RESET)&&t?.({...h,step:C,type:qe.TOUR_STATUS}),G(M)},[b,t,D,R,P,n,v,r,m,y,O,M,J,e,a,G,w,h,E,C,f,u]),d}function gc(e){const[{element:t,useExternalPortal:n},r]=qn({useExternalPortal:!1,element:null});return Gt(()=>{if(e)if(A.domElement(e))r({element:e,useExternalPortal:!0});else{const o=document.querySelector(e);o&&r({element:o})}if(!e){const o=document.createElement("div");o.id=Io,document.body.appendChild(o),r({element:o})}}),dn(()=>{!t||n||t.parentNode===document.body&&document.body.removeChild(t)}),t}function vc({styles:e}){return j.jsx("div",{className:"react-joyride__spotlight","data-test-id":"spotlight",style:e},"JoyrideSpotlight")}function bc(e){const{continuous:t,debug:n,disableOverlay:r,disableOverlayClose:o,disableScrolling:i,disableScrollParentFix:a=!1,lifecycle:s,onClickOverlay:l,placement:c,spotlightClicks:f,spotlightPadding:u=0,styles:d,target:h}=e,S=oi(),{changed:b}=St(e),v=p.useRef(),m=p.useRef(),y=p.useRef(null),[{isScrolling:w,mouseOverSpotlight:E,showSpotlight:g},O]=qn({isScrolling:!1,mouseOverSpotlight:!1,resizedAt:0,showSpotlight:!0}),M=p.useCallback(W=>{S&&O(W)},[S,O]),D=p.useMemo(()=>{let W=d.overlay;return Yr()&&(W=c==="center"?d.overlayLegacyCenter:d.overlayLegacy),{cursor:o?"default":"pointer",height:Vl(),pointerEvents:E?"none":"auto",...W}},[o,E,c,d.overlay,d.overlayLegacy,d.overlayLegacyCenter]),R=p.useMemo(()=>{var W,te,ue;const L=rt(h),Y=Po(L),V=Ct(L),k=Zl(L,u,a);return{height:Math.round(((W=Y?.height)!=null?W:0)+u*2),left:Math.round(((te=Y?.left)!=null?te:0)-u),opacity:g?1:0,pointerEvents:f?"none":"auto",position:V?"fixed":"absolute",top:k,transition:"opacity 0.2s",width:Math.round(((ue=Y?.width)!=null?ue:0)+u*2),...Yr()?d.spotlightLegacy:d.spotlight}},[a,g,f,u,d.spotlight,d.spotlightLegacy,h]),P=p.useCallback(W=>{const{height:te,left:ue,position:L,top:Y,width:V}=R,k=L==="fixed"?W.clientY:W.pageY,I=L==="fixed"?W.clientX:W.pageX,B=k>=Y&&k<=Y+te,F=I>=ue&&I<=ue+V&&B;F!==E&&M({mouseOverSpotlight:F})},[R,E,M]),C=p.useCallback(()=>{clearTimeout(v.current),v.current=window.setTimeout(()=>{S&&O({resizedAt:Date.now()})},100)},[S,O]),J=p.useCallback(()=>{const W=rt(h);y.current!==document?(w||M({isScrolling:!0,showSpotlight:!1}),clearTimeout(m.current),m.current=window.setTimeout(()=>{M({isScrolling:!1,showSpotlight:!0})},50)):Ct(W,"sticky")&&M({})},[w,h,M]);Gt(()=>{const W=rt(h);y.current=Ut(W??document.body,a,!0),window.addEventListener("resize",C)}),dn(()=>{var W;window.removeEventListener("mousemove",P),window.removeEventListener("resize",C),clearTimeout(v.current),clearTimeout(m.current),(W=y?.current)==null||W.removeEventListener("scroll",J)}),p.useEffect(()=>{var W;b("lifecycle",$.TOOLTIP)&&((W=y?.current)==null||W.addEventListener("scroll",J,{passive:!0}),setTimeout(()=>{w||M({showSpotlight:!0})},100))},[b,J,w,M]),p.useEffect(()=>{(b("spotlightClicks")||b("disableOverlay")||b("lifecycle"))&&(f&&s===$.TOOLTIP?window.addEventListener("mousemove",P,!1):s!==$.TOOLTIP&&window.removeEventListener("mousemove",P))},[b,P,s,f]),p.useEffect(()=>{if(b("target")||b("disableScrollParentFix")){const W=rt(h);y.current=Ut(W??document.body,a,!0)}},[b,a,h]);const G=[$.INIT,$.BEACON,$.COMPLETE,$.ERROR];if(r||(t?G.includes(s):s!==$.TOOLTIP))return null;let U=c!=="center"&&g&&j.jsx(vc,{styles:R});const ee={...D};if(Wo()==="safari"){const{mixBlendMode:W,zIndex:te,...ue}=D;U=j.jsx("div",{style:{...ue},children:U}),delete ee.backgroundColor}return j.jsx("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:l,role:"presentation",style:ee,children:U})}function wc(e){const{children:t,element:n}=e;return n?no.createPortal(t,n):null}var Oc=class{constructor(e,t){if(re(this,"element"),re(this,"options"),re(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),re(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,o=n.nodeName.toLowerCase();return(r.test(o)&&!n.getAttribute("disabled")||o==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),re(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),re(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),re(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:o}=n;if(!r.length)return;let i=document.activeElement?r.indexOf(document.activeElement):0;i===-1||!o&&i+1===r.length?i=0:o&&i===0?i=r.length-1:i+=o?-1:1,r[i].focus()}),re(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,o=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&o.getPropertyValue("overflow")!=="visible"||o.getPropertyValue("display")==="none"}),re(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),re(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),re(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),re(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}};function Sc(e){const{beaconComponent:t,continuous:n,index:r,isLastStep:o,locale:i,onClickOrHover:a,shouldFocus:s,size:l,step:c,styles:f}=e,u=p.useRef(null);Kn(()=>{if(t)return;const v=document.head||document.getElementsByTagName("head")[0],m=document.createElement("style");m.id="joyride-beacon-animation",e.nonce&&m.setAttribute("nonce",e.nonce),m.appendChild(document.createTextNode(` + @keyframes joyride-beacon-inner { + 20% { + opacity: 0.9; + } + + 90% { + opacity: 0.7; + } + } + + @keyframes joyride-beacon-outer { + 0% { + transform: scale(1); + } + + 45% { + opacity: 0.7; + transform: scale(0.75); + } + + 100% { + opacity: 0.9; + transform: scale(1); + } + } + `)),v.appendChild(m)}),Gt(()=>{setTimeout(()=>{A.domElement(u.current)&&s&&u.current.focus()},0)}),dn(()=>{const v=document.getElementById("joyride-beacon-animation");v?.parentNode&&v.parentNode.removeChild(v)});const d=v=>{u.current=v},h=$e(i.open),S={"aria-label":h,onClick:a,onMouseEnter:a,ref:d,title:h};let b;if(t){const v=t;b=j.jsx(v,{continuous:n,index:r,isLastStep:o,size:l,step:c,...S})}else b=j.jsxs("button",{className:"react-joyride__beacon","data-test-id":"button-beacon",style:f.beacon,type:"button",...S,children:[j.jsx("span",{style:f.beaconInner}),j.jsx("span",{style:f.beaconOuter})]},"JoyrideBeacon");return b}function Ec({styles:e,...t}){const{color:n,height:r,width:o,...i}=e;return j.jsx("button",{style:i,type:"button",...t,children:j.jsx("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof o=="number"?`${o}px`:o,xmlns:"http://www.w3.org/2000/svg",children:j.jsx("g",{children:j.jsx("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n})})})})}function kc(e){const{backProps:t,closeProps:n,index:r,isLastStep:o,primaryProps:i,skipProps:a,step:s,tooltipProps:l}=e,{content:c,hideBackButton:f,hideCloseButton:u,hideFooter:d,showSkipButton:h,styles:S,title:b}=s,v={};return v.primary=j.jsx("button",{"data-test-id":"button-primary",style:S.buttonNext,type:"button",...i}),h&&!o&&(v.skip=j.jsx("button",{"aria-live":"off","data-test-id":"button-skip",style:S.buttonSkip,type:"button",...a})),!f&&r>0&&(v.back=j.jsx("button",{"data-test-id":"button-back",style:S.buttonBack,type:"button",...t})),v.close=!u&&j.jsx(Ec,{"data-test-id":"button-close",styles:S.buttonClose,...n}),j.jsxs("div",{"aria-label":$e(b??c),className:"react-joyride__tooltip",style:S.tooltip,...l,children:[j.jsxs("div",{style:S.tooltipContainer,children:[b&&j.jsx("h1",{"aria-label":$e(b),style:S.tooltipTitle,children:b}),j.jsx("div",{style:S.tooltipContent,children:c})]}),!d&&j.jsxs("div",{style:S.tooltipFooter,children:[j.jsx("div",{style:S.tooltipFooterSpacer,children:v.skip}),v.back,v.primary]}),v.close]},"JoyrideTooltip")}function Mc(e){const{continuous:t,helpers:n,index:r,isLastStep:o,setTooltipRef:i,size:a,step:s}=e,l=m=>{m.preventDefault(),n.prev()},c=m=>{m.preventDefault(),n.close("button_close")},f=m=>{if(m.preventDefault(),!t){n.close("button_primary");return}n.next()},u=m=>{m.preventDefault(),n.skip()},d=()=>{const{back:m,close:y,last:w,next:E,nextLabelWithProgress:g,skip:O}=s.locale,M=$e(m),D=$e(y),R=$e(w),P=$e(E),C=$e(O);let J=y,G=D;if(t){if(J=E,G=P,s.showProgress&&!o){const U=$e(g,{step:r+1,steps:a});J=zn(g,r+1,a),G=U}o&&(J=w,G=R)}return{backProps:{"aria-label":M,children:m,"data-action":"back",onClick:l,role:"button",title:M},closeProps:{"aria-label":D,children:y,"data-action":"close",onClick:c,role:"button",title:D},primaryProps:{"aria-label":G,children:J,"data-action":"primary",onClick:f,role:"button",title:G},skipProps:{"aria-label":C,children:O,"data-action":"skip",onClick:u,role:"button",title:C},tooltipProps:{"aria-modal":!0,ref:i,role:"alertdialog"}}},{beaconComponent:h,tooltipComponent:S,...b}=s;let v;if(S){const m={...d(),continuous:t,index:r,isLastStep:o,size:a,step:b,setTooltipRef:i},y=S;v=j.jsx(y,{...m})}else v=j.jsx(kc,{...d(),continuous:t,index:r,isLastStep:o,size:a,step:s});return v}function xc(e){const{cleanupPoppers:t,continuous:n,debug:r,helpers:o,index:i,lifecycle:a,nonce:s,setPopper:l,shouldScroll:c,size:f,step:u,updateState:d}=e,h=p.useRef(null),S=p.useRef(null),{changed:b,changedFrom:v}=St(e);Gt(()=>{pt({title:`step:${i}`,data:[{key:"props",value:e}],debug:r})}),dn(()=>{var g;(g=h.current)==null||g.removeScope()}),p.useEffect(()=>{var g;b("lifecycle",$.TOOLTIP)&&c&&S.current&&(h.current=new Oc(S.current,{selector:"[data-action=primary]"}),h.current.setFocus()),v("lifecycle",[$.TOOLTIP,$.INIT],$.INIT)&&((g=h.current)==null||g.removeScope(),t())},[b,v,t,c]);const m=g=>{g.type==="mouseenter"&&u.event!=="hover"||d({lifecycle:$.TOOLTIP})},y=g=>{S.current=g},w=rt(u.target);if(!Ao(u)||!A.domElement(w))return null;const E=g=>j.jsx(Mc,{continuous:n,helpers:o,index:i,isLastStep:i+1===f,setTooltipRef:y,size:f,step:u,...g});return j.jsx("div",{className:"react-joyride__step",children:j.jsx(Hl,{...u.floaterProps,component:E,debug:r,getPopper:l,id:`react-joyride-step-${i}`,open:a===$.TOOLTIP,placement:u.placement,portalElement:`#${Io}`,target:u.target,children:j.jsx(Sc,{beaconComponent:u.beaconComponent,continuous:n,index:i,isLastStep:i+1===f,locale:u.locale,nonce:s,onClickOrHover:m,shouldFocus:c,size:f,step:u,styles:u.styles})},`JoyrideStep-${i}`)})}function Cc(e){const t=rc(cc,e),{continuous:n,debug:r,disableCloseOnEsc:o,nonce:i,portalElement:a,scrollToFirstStep:s,steps:l}=t,c=yc(t),f=gc(a);Kn(()=>{pt({title:"init",data:[{key:"props",value:e},{key:"state",value:c.current.getState()}],debug:r})}),p.useEffect(()=>{const y=w=>{const{index:E,lifecycle:g}=c.current.getState(),O=l[E];g===$.TOOLTIP&&w.code==="Escape"&&!O.disableCloseOnEsc&&c.current.close("keyboard")};return o||document.body.addEventListener("keydown",y,{passive:!0}),()=>{o||document.body.removeEventListener("keydown",y)}},[o,l,c]);const{index:u,lifecycle:d,status:h}=c.current.getState(),S=h===K.RUNNING,b={},v=p.useMemo(()=>un(e,l[u]),[u,e,l]),m=()=>{v?.disableOverlayClose||c.current.close("overlay")};return v?(S&&(b.step=j.jsx(xc,{...c.current.getState(),cleanupPoppers:c.current.cleanupPoppers,continuous:n,debug:r,helpers:c.current.getHelpers(),nonce:i,setPopper:c.current.setPopper,shouldScroll:!v.disableScrolling&&(u!==0||s),step:v,updateState:c.current.updateState}),b.overlay=j.jsx(wc,{element:f,children:j.jsx(bc,{...v,continuous:n,debug:r,lifecycle:d,onClickOverlay:m})})),j.jsxs("div",{className:"react-joyride",children:[b.step,b.overlay]})):null}function id(e){return Gl()?j.jsx(Cc,{...e}):null}var Ur=1,Dc=.9,Tc=.8,Nc=.17,In=.1,Wn=.999,Pc=.9999,Ic=.99,Wc=/[\\\/_+.#"@\[\(\{&]/,Rc=/[\\\/_+.#"@\[\(\{&]/g,Ac=/[\s-]/,jo=/[\s-]/g;function Un(e,t,n,r,o,i,a){if(i===t.length)return o===e.length?Ur:Ic;var s=`${o},${i}`;if(a[s]!==void 0)return a[s];for(var l=r.charAt(i),c=n.indexOf(l,o),f=0,u,d,h,S;c>=0;)u=Un(e,t,n,r,c+1,i+1,a),u>f&&(c===o?u*=Ur:Wc.test(e.charAt(c-1))?(u*=Tc,h=e.slice(o,c-1).match(Rc),h&&o>0&&(u*=Math.pow(Wn,h.length))):Ac.test(e.charAt(c-1))?(u*=Dc,S=e.slice(o,c-1).match(jo),S&&o>0&&(u*=Math.pow(Wn,S.length))):(u*=Nc,o>0&&(u*=Math.pow(Wn,c-o))),e.charAt(c)!==t.charAt(i)&&(u*=Pc)),(uu&&(u=d*In)),u>f&&(f=u),c=n.indexOf(l,c+1);return a[s]=f,f}function Gr(e){return e.toLowerCase().replace(jo," ")}function jc(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Un(e,t,Gr(e),Gr(t),0,0,{})}var Ft='[cmdk-group=""]',Rn='[cmdk-group-items=""]',Fc='[cmdk-group-heading=""]',Fo='[cmdk-item=""]',Vr=`${Fo}:not([aria-disabled="true"])`,Gn="cmdk-item-select",bt="data-value",_c=(e,t,n)=>jc(e,t,n),_o=p.createContext(void 0),Jt=()=>p.useContext(_o),Bo=p.createContext(void 0),ar=()=>p.useContext(Bo),Lo=p.createContext(void 0),$o=p.forwardRef((e,t)=>{let n=wt(()=>{var k,I;return{search:"",value:(I=(k=e.value)!=null?k:e.defaultValue)!=null?I:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=wt(()=>new Set),o=wt(()=>new Map),i=wt(()=>new Map),a=wt(()=>new Set),s=Yo(e),{label:l,children:c,value:f,onValueChange:u,filter:d,shouldFilter:h,loop:S,disablePointerSelection:b=!1,vimBindings:v=!0,...m}=e,y=Ot(),w=Ot(),E=Ot(),g=p.useRef(null),O=Kc();ht(()=>{if(f!==void 0){let k=f.trim();n.current.value=k,M.emit()}},[f]),ht(()=>{O(6,G)},[]);let M=p.useMemo(()=>({subscribe:k=>(a.current.add(k),()=>a.current.delete(k)),snapshot:()=>n.current,setState:(k,I,B)=>{var x,F,q,Q;if(!Object.is(n.current[k],I)){if(n.current[k]=I,k==="search")J(),P(),O(1,C);else if(k==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let oe=document.getElementById(E);oe?oe.focus():(x=document.getElementById(y))==null||x.focus()}if(O(7,()=>{var oe;n.current.selectedItemId=(oe=U())==null?void 0:oe.id,M.emit()}),B||O(5,G),((F=s.current)==null?void 0:F.value)!==void 0){let oe=I??"";(Q=(q=s.current).onValueChange)==null||Q.call(q,oe);return}}M.emit()}},emit:()=>{a.current.forEach(k=>k())}}),[]),D=p.useMemo(()=>({value:(k,I,B)=>{var x;I!==((x=i.current.get(k))==null?void 0:x.value)&&(i.current.set(k,{value:I,keywords:B}),n.current.filtered.items.set(k,R(I,B)),O(2,()=>{P(),M.emit()}))},item:(k,I)=>(r.current.add(k),I&&(o.current.has(I)?o.current.get(I).add(k):o.current.set(I,new Set([k]))),O(3,()=>{J(),P(),n.current.value||C(),M.emit()}),()=>{i.current.delete(k),r.current.delete(k),n.current.filtered.items.delete(k);let B=U();O(4,()=>{J(),B?.getAttribute("id")===k&&C(),M.emit()})}),group:k=>(o.current.has(k)||o.current.set(k,new Set),()=>{i.current.delete(k),o.current.delete(k)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:y,inputId:E,labelId:w,listInnerRef:g}),[]);function R(k,I){var B,x;let F=(x=(B=s.current)==null?void 0:B.filter)!=null?x:_c;return k?F(k,n.current.search,I):0}function P(){if(!n.current.search||s.current.shouldFilter===!1)return;let k=n.current.filtered.items,I=[];n.current.filtered.groups.forEach(x=>{let F=o.current.get(x),q=0;F.forEach(Q=>{let oe=k.get(Q);q=Math.max(oe,q)}),I.push([x,q])});let B=g.current;ee().sort((x,F)=>{var q,Q;let oe=x.getAttribute("id"),ce=F.getAttribute("id");return((q=k.get(ce))!=null?q:0)-((Q=k.get(oe))!=null?Q:0)}).forEach(x=>{let F=x.closest(Rn);F?F.appendChild(x.parentElement===F?x:x.closest(`${Rn} > *`)):B.appendChild(x.parentElement===B?x:x.closest(`${Rn} > *`))}),I.sort((x,F)=>F[1]-x[1]).forEach(x=>{var F;let q=(F=g.current)==null?void 0:F.querySelector(`${Ft}[${bt}="${encodeURIComponent(x[0])}"]`);q?.parentElement.appendChild(q)})}function C(){let k=ee().find(B=>B.getAttribute("aria-disabled")!=="true"),I=k?.getAttribute(bt);M.setState("value",I||void 0)}function J(){var k,I,B,x;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let F=0;for(let q of r.current){let Q=(I=(k=i.current.get(q))==null?void 0:k.value)!=null?I:"",oe=(x=(B=i.current.get(q))==null?void 0:B.keywords)!=null?x:[],ce=R(Q,oe);n.current.filtered.items.set(q,ce),ce>0&&F++}for(let[q,Q]of o.current)for(let oe of Q)if(n.current.filtered.items.get(oe)>0){n.current.filtered.groups.add(q);break}n.current.filtered.count=F}function G(){var k,I,B;let x=U();x&&(((k=x.parentElement)==null?void 0:k.firstChild)===x&&((B=(I=x.closest(Ft))==null?void 0:I.querySelector(Fc))==null||B.scrollIntoView({block:"nearest"})),x.scrollIntoView({block:"nearest"}))}function U(){var k;return(k=g.current)==null?void 0:k.querySelector(`${Fo}[aria-selected="true"]`)}function ee(){var k;return Array.from(((k=g.current)==null?void 0:k.querySelectorAll(Vr))||[])}function W(k){let I=ee()[k];I&&M.setState("value",I.getAttribute(bt))}function te(k){var I;let B=U(),x=ee(),F=x.findIndex(Q=>Q===B),q=x[F+k];(I=s.current)!=null&&I.loop&&(q=F+k<0?x[x.length-1]:F+k===x.length?x[0]:x[F+k]),q&&M.setState("value",q.getAttribute(bt))}function ue(k){let I=U(),B=I?.closest(Ft),x;for(;B&&!x;)B=k>0?Vc(B,Ft):qc(B,Ft),x=B?.querySelector(Vr);x?M.setState("value",x.getAttribute(bt)):te(k)}let L=()=>W(ee().length-1),Y=k=>{k.preventDefault(),k.metaKey?L():k.altKey?ue(1):te(1)},V=k=>{k.preventDefault(),k.metaKey?W(0):k.altKey?ue(-1):te(-1)};return p.createElement(it.div,{ref:t,tabIndex:-1,...m,"cmdk-root":"",onKeyDown:k=>{var I;(I=m.onKeyDown)==null||I.call(m,k);let B=k.nativeEvent.isComposing||k.keyCode===229;if(!(k.defaultPrevented||B))switch(k.key){case"n":case"j":{v&&k.ctrlKey&&Y(k);break}case"ArrowDown":{Y(k);break}case"p":case"k":{v&&k.ctrlKey&&V(k);break}case"ArrowUp":{V(k);break}case"Home":{k.preventDefault(),W(0);break}case"End":{k.preventDefault(),L();break}case"Enter":{k.preventDefault();let x=U();if(x){let F=new Event(Gn);x.dispatchEvent(F)}}}}},p.createElement("label",{"cmdk-label":"",htmlFor:D.inputId,id:D.labelId,style:Zc},l),gn(e,k=>p.createElement(Bo.Provider,{value:M},p.createElement(_o.Provider,{value:D},k))))}),Bc=p.forwardRef((e,t)=>{var n,r;let o=Ot(),i=p.useRef(null),a=p.useContext(Lo),s=Jt(),l=Yo(e),c=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:a?.forceMount;ht(()=>{if(!c)return s.item(o,a?.id)},[c]);let f=Ho(o,i,[e.value,e.children,i],e.keywords),u=ar(),d=st(O=>O.value&&O.value===f.current),h=st(O=>c||s.filter()===!1?!0:O.search?O.filtered.items.get(o)>0:!0);p.useEffect(()=>{let O=i.current;if(!(!O||e.disabled))return O.addEventListener(Gn,S),()=>O.removeEventListener(Gn,S)},[h,e.onSelect,e.disabled]);function S(){var O,M;b(),(M=(O=l.current).onSelect)==null||M.call(O,f.current)}function b(){u.setState("value",f.current,!0)}if(!h)return null;let{disabled:v,value:m,onSelect:y,forceMount:w,keywords:E,...g}=e;return p.createElement(it.div,{ref:Yt(i,t),...g,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!d,"data-disabled":!!v,"data-selected":!!d,onPointerMove:v||s.getDisablePointerSelection()?void 0:b,onClick:v?void 0:S},e.children)}),Lc=p.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,a=Ot(),s=p.useRef(null),l=p.useRef(null),c=Ot(),f=Jt(),u=st(h=>o||f.filter()===!1?!0:h.search?h.filtered.groups.has(a):!0);ht(()=>f.group(a),[]),Ho(a,s,[e.value,e.heading,l]);let d=p.useMemo(()=>({id:a,forceMount:o}),[o]);return p.createElement(it.div,{ref:Yt(s,t),...i,"cmdk-group":"",role:"presentation",hidden:u?void 0:!0},n&&p.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),gn(e,h=>p.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},p.createElement(Lo.Provider,{value:d},h))))}),$c=p.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=p.useRef(null),i=st(a=>!a.search);return!n&&!i?null:p.createElement(it.div,{ref:Yt(o,t),...r,"cmdk-separator":"",role:"separator"})}),Yc=p.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,i=ar(),a=st(c=>c.search),s=st(c=>c.selectedItemId),l=Jt();return p.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),p.createElement(it.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:o?e.value:a,onChange:c=>{o||i.setState("search",c.target.value),n?.(c.target.value)}})}),Hc=p.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=p.useRef(null),a=p.useRef(null),s=st(c=>c.selectedItemId),l=Jt();return p.useEffect(()=>{if(a.current&&i.current){let c=a.current,f=i.current,u,d=new ResizeObserver(()=>{u=requestAnimationFrame(()=>{let h=c.offsetHeight;f.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return d.observe(c),()=>{cancelAnimationFrame(u),d.unobserve(c)}}},[]),p.createElement(it.div,{ref:Yt(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},gn(e,c=>p.createElement("div",{ref:Yt(a,l.listInnerRef),"cmdk-list-sizer":""},c)))}),zc=p.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:a,...s}=e;return p.createElement(ys,{open:n,onOpenChange:r},p.createElement(gs,{container:a},p.createElement(vs,{"cmdk-overlay":"",className:o}),p.createElement(bs,{"aria-label":e.label,"cmdk-dialog":"",className:i},p.createElement($o,{ref:t,...s}))))}),Uc=p.forwardRef((e,t)=>st(n=>n.filtered.count===0)?p.createElement(it.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Gc=p.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return p.createElement(it.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},gn(e,a=>p.createElement("div",{"aria-hidden":!0},a)))}),ad=Object.assign($o,{List:Hc,Item:Bc,Input:Yc,Group:Lc,Separator:$c,Dialog:zc,Empty:Uc,Loading:Gc});function Vc(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function qc(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Yo(e){let t=p.useRef(e);return ht(()=>{t.current=e}),t}var ht=typeof window>"u"?p.useEffect:p.useLayoutEffect;function wt(e){let t=p.useRef();return t.current===void 0&&(t.current=e()),t}function st(e){let t=ar(),n=()=>e(t.snapshot());return p.useSyncExternalStore(t.subscribe,n,n)}function Ho(e,t,n,r=[]){let o=p.useRef(),i=Jt();return ht(()=>{var a;let s=(()=>{var c;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(c=f.current.textContent)==null?void 0:c.trim():o.current}})(),l=r.map(c=>c.trim());i.value(e,s,l),(a=t.current)==null||a.setAttribute(bt,s),o.current=s}),o}var Kc=()=>{let[e,t]=p.useState(),n=wt(()=>new Map);return ht(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function Xc(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function gn({asChild:e,children:t},n){return e&&p.isValidElement(t)?p.cloneElement(Xc(t),{ref:t.ref},n(t.props.children)):n(t)}var Zc={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Jc(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const Qc={},Bt={};function ut(e,t){try{const r=(Qc[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in Bt?Bt[r]:qr(r,r.split(":"))}catch{if(e in Bt)return Bt[e];const n=e?.match(eu);return n?qr(e,n.slice(1)):NaN}}const eu=/([+-]\d\d):?(\d\d)?/;function qr(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return Bt[e]=n*60+r>0?n*60+r+o:n*60-r-o}class He extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(ut(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),zo(this),Vn(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new He(...n,t):new He(Date.now(),t)}withTimeZone(t){return new He(+this,t)}getTimezoneOffset(){const t=-ut(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Vn(this),+this}[Symbol.for("constructDateFrom")](t){return new He(+new Date(t),this.timeZone)}}const Kr=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Kr.test(e))return;const t=e.replace(Kr,"$1UTC");He.prototype[t]&&(e.startsWith("get")?He.prototype[e]=function(){return this.internal[t]()}:(He.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),tu(this),+this},He.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Vn(this),+this}))});function Vn(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-ut(e.timeZone,e)*60))}function tu(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),zo(e)}function zo(e){const t=ut(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),i=-new Date(+r).getTimezoneOffset(),a=o-i,s=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&s&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const l=o-n;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const c=new Date(+e);c.setUTCSeconds(0);const f=o>0?c.getSeconds():(c.getSeconds()-60)%60,u=Math.round(-(ut(e.timeZone,e)*60))%60;(u||f)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+u),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+u+f));const d=ut(e.timeZone,e),h=d>0?Math.floor(d):Math.ceil(d),b=-new Date(+e).getTimezoneOffset()-h,v=h!==n,m=b-l;if(v&&m){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+m);const y=ut(e.timeZone,e),w=y>0?Math.floor(y):Math.ceil(y),E=h-w;E&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+E),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+E))}}class ye extends He{static tz(t,...n){return n.length?new ye(...n,t):new ye(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${Jc(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new ye(+this,t)}[Symbol.for("constructDateFrom")](t){return new ye(+new Date(t),this.timeZone)}}const Xr=5,nu=4;function ru(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),i=t.addDays(o,Xr*7-1);return t.getMonth(e)===t.getMonth(i)?Xr:nu}function Uo(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function ou(e,t){const n=Uo(e,t),r=ru(e,t);return t.addDays(n,r*7-1)}const su={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},iu=(e,t,n)=>{let r;const o=su[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"内":r+"前":r},au={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},lu={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},cu={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},uu={date:kn({formats:au,defaultWidth:"full"}),time:kn({formats:lu,defaultWidth:"full"}),dateTime:kn({formats:cu,defaultWidth:"full"})};function Zr(e,t,n){const r="eeee p";return ws(e,t,n)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}const fu={lastWeek:Zr,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Zr,other:"PP p"},du=(e,t,n,r)=>{const o=fu[e];return typeof o=="function"?o(t,n,r):o},pu={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},hu={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},mu={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},yu={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},gu={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},vu={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},bu=(e,t)=>{const n=Number(e);switch(t?.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},wu={ordinalNumber:bu,era:Pt({values:pu,defaultWidth:"wide"}),quarter:Pt({values:hu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Pt({values:mu,defaultWidth:"wide"}),day:Pt({values:yu,defaultWidth:"wide"}),dayPeriod:Pt({values:gu,defaultWidth:"wide",formattingValues:vu,defaultFormattingWidth:"wide"})},Ou=/^(第\s*)?\d+(日|时|分|秒)?/i,Su=/\d+/i,Eu={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},ku={any:[/^(前)/i,/^(公元)/i]},Mu={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},xu={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Cu={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Du={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Tu={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Nu={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Pu={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Iu={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Wu={ordinalNumber:Os({matchPattern:Ou,parsePattern:Su,valueCallback:e=>parseInt(e,10)}),era:It({matchPatterns:Eu,defaultMatchWidth:"wide",parsePatterns:ku,defaultParseWidth:"any"}),quarter:It({matchPatterns:Mu,defaultMatchWidth:"wide",parsePatterns:xu,defaultParseWidth:"any",valueCallback:e=>e+1}),month:It({matchPatterns:Cu,defaultMatchWidth:"wide",parsePatterns:Du,defaultParseWidth:"any"}),day:It({matchPatterns:Tu,defaultMatchWidth:"wide",parsePatterns:Nu,defaultParseWidth:"any"}),dayPeriod:It({matchPatterns:Pu,defaultMatchWidth:"any",parsePatterns:Iu,defaultParseWidth:"any"})},ld={code:"zh-CN",formatDistance:iu,formatLong:uu,formatRelative:du,localize:wu,match:Wu,options:{weekStartsOn:1,firstWeekContainsDate:4}},Go={...Wt,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,s)=>_t(a,s,{locale:Wt,...n});let i=o(e,"PPPP");return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,i)=>_t(o,i,{locale:Wt,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,s)=>_t(a,s,{locale:Wt,...n});let i=o(e,"PPPP");return t?.today&&(i=`Today, ${i}`),i},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,i)=>_t(o,i,{locale:Wt,...t}),r(e,"cccc")}}};class Me{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?ye.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,i)=>this.overrides?.newDate?this.overrides.newDate(r,o,i):this.options.timeZone?new ye(r,o,i,this.options.timeZone):new Date(r,o,i),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):Ss(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):Es(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):ks(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):Ms(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):ro(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):oo(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):xs(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):Cs(r),i=new Set(o.map(s=>this.getYear(s)));if(i.size===o.length)return o;const a=[];return i.forEach(s=>{a.push(new Date(s,0,1))}),a},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):ou(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):Ds(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):Ts(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):Ns(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):Ps(r),this.format=(r,o,i)=>{const a=this.overrides?.format?this.overrides.format(r,o,this.options):_t(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):so(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):Is(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):Ws(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):io(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):Rs(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):As(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):js(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):Fs(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):_s(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):Bs(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):Ls(r),this.min=r=>this.overrides?.min?this.overrides.min(r):$s(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):Ys(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):Hs(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Uo(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):zs(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):Us(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):Gs(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):Vs(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):qs(r),this.options={locale:Go,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&Me.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,i=n?.code;if(i&&Me.yearFirstLocales.has(i))try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,a)}}Me.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Ge=new Me;class Vo{constructor(t,n,r=Ge){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class Ru{constructor(t,n){this.date=t,this.weeks=n}}class Au{constructor(t,n){this.days=n,this.weekNumber=t}}function ju(e){return T.createElement("button",{...e})}function Fu(e){return T.createElement("span",{...e})}function _u(e){const{size:t=24,orientation:n="left",className:r}=e;return T.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&T.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&T.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&T.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&T.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function Bu(e){const{day:t,modifiers:n,...r}=e;return T.createElement("td",{...r})}function Lu(e){const{day:t,modifiers:n,...r}=e,o=T.useRef(null);return T.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),T.createElement("button",{ref:o,...r})}var _;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(_||(_={}));var fe;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(fe||(fe={}));var Ae;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Ae||(Ae={}));var Ee;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Ee||(Ee={}));function $u(e){const{options:t,className:n,components:r,classNames:o,...i}=e,a=[o[_.Dropdown],n].join(" "),s=t?.find(({value:l})=>l===i.value);return T.createElement("span",{"data-disabled":i.disabled,className:o[_.DropdownRoot]},T.createElement(r.Select,{className:a,...i},t?.map(({value:l,label:c,disabled:f})=>T.createElement(r.Option,{key:l,value:l,disabled:f},c))),T.createElement("span",{className:o[_.CaptionLabel],"aria-hidden":!0},s?.label,T.createElement(r.Chevron,{orientation:"down",size:18,className:o[_.Chevron]})))}function Yu(e){return T.createElement("div",{...e})}function Hu(e){return T.createElement("div",{...e})}function zu(e){const{calendarMonth:t,displayIndex:n,...r}=e;return T.createElement("div",{...r},e.children)}function Uu(e){const{calendarMonth:t,displayIndex:n,...r}=e;return T.createElement("div",{...r})}function Gu(e){return T.createElement("table",{...e})}function Vu(e){return T.createElement("div",{...e})}const qo=p.createContext(void 0);function Qt(){const e=p.useContext(qo);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function qu(e){const{components:t}=Qt();return T.createElement(t.Dropdown,{...e})}function Ku(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...i}=e,{components:a,classNames:s,labels:{labelPrevious:l,labelNext:c}}=Qt(),f=p.useCallback(d=>{o&&n?.(d)},[o,n]),u=p.useCallback(d=>{r&&t?.(d)},[r,t]);return T.createElement("nav",{...i},T.createElement(a.PreviousMonthButton,{type:"button",className:s[_.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:u},T.createElement(a.Chevron,{disabled:r?void 0:!0,className:s[_.Chevron],orientation:"left"})),T.createElement(a.NextMonthButton,{type:"button",className:s[_.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":c(o),onClick:f},T.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:s[_.Chevron]})))}function Xu(e){const{components:t}=Qt();return T.createElement(t.Button,{...e})}function Zu(e){return T.createElement("option",{...e})}function Ju(e){const{components:t}=Qt();return T.createElement(t.Button,{...e})}function Qu(e){const{rootRef:t,...n}=e;return T.createElement("div",{...n,ref:t})}function ef(e){return T.createElement("select",{...e})}function tf(e){const{week:t,...n}=e;return T.createElement("tr",{...n})}function nf(e){return T.createElement("th",{...e})}function rf(e){return T.createElement("thead",{"aria-hidden":!0},T.createElement("tr",{...e}))}function of(e){const{week:t,...n}=e;return T.createElement("th",{...n})}function sf(e){return T.createElement("th",{...e})}function af(e){return T.createElement("tbody",{...e})}function lf(e){const{components:t}=Qt();return T.createElement(t.Dropdown,{...e})}const cf=Object.freeze(Object.defineProperty({__proto__:null,Button:ju,CaptionLabel:Fu,Chevron:_u,Day:Bu,DayButton:Lu,Dropdown:$u,DropdownNav:Yu,Footer:Hu,Month:zu,MonthCaption:Uu,MonthGrid:Gu,Months:Vu,MonthsDropdown:qu,Nav:Ku,NextMonthButton:Xu,Option:Zu,PreviousMonthButton:Ju,Root:Qu,Select:ef,Week:tf,WeekNumber:of,WeekNumberHeader:sf,Weekday:nf,Weekdays:rf,Weeks:af,YearsDropdown:lf},Symbol.toStringTag,{value:"Module"}));function Ke(e,t,n=!1,r=Ge){let{from:o,to:i}=e;const{differenceInCalendarDays:a,isSameDay:s}=r;return o&&i?(a(i,o)<0&&([o,i]=[i,o]),a(t,o)>=(n?1:0)&&a(i,t)>=(n?1:0)):!n&&i?s(i,t):!n&&o?s(o,t):!1}function lr(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function vn(e){return!!(e&&typeof e=="object"&&"from"in e)}function cr(e){return!!(e&&typeof e=="object"&&"after"in e)}function ur(e){return!!(e&&typeof e=="object"&&"before"in e)}function Ko(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Xo(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Xe(e,t,n=Ge){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:i,isAfter:a}=n;return r.some(s=>{if(typeof s=="boolean")return s;if(n.isDate(s))return o(e,s);if(Xo(s,n))return s.some(l=>o(e,l));if(vn(s))return Ke(s,e,!1,n);if(Ko(s))return Array.isArray(s.dayOfWeek)?s.dayOfWeek.includes(e.getDay()):s.dayOfWeek===e.getDay();if(lr(s)){const l=i(s.before,e),c=i(s.after,e),f=l>0,u=c<0;return a(s.before,s.after)?u&&f:f||u}return cr(s)?i(e,s.after)>0:ur(s)?i(s.before,e)>0:typeof s=="function"?s(e):!1})}function uf(e,t,n,r,o){const{disabled:i,hidden:a,modifiers:s,showOutsideDays:l,broadcastCalendar:c,today:f=o.today()}=t,{isSameDay:u,isSameMonth:d,startOfMonth:h,isBefore:S,endOfMonth:b,isAfter:v}=o,m=n&&h(n),y=r&&b(r),w={[fe.focused]:[],[fe.outside]:[],[fe.disabled]:[],[fe.hidden]:[],[fe.today]:[]},E={};for(const g of e){const{date:O,displayMonth:M}=g,D=!!(M&&!d(O,M)),R=!!(m&&S(O,m)),P=!!(y&&v(O,y)),C=!!(i&&Xe(O,i,o)),J=!!(a&&Xe(O,a,o))||R||P||!c&&!l&&D||c&&l===!1&&D,G=u(O,f);D&&w.outside.push(g),C&&w.disabled.push(g),J&&w.hidden.push(g),G&&w.today.push(g),s&&Object.keys(s).forEach(U=>{const ee=s?.[U];ee&&Xe(O,ee,o)&&(E[U]?E[U].push(g):E[U]=[g])})}return g=>{const O={[fe.focused]:!1,[fe.disabled]:!1,[fe.hidden]:!1,[fe.outside]:!1,[fe.today]:!1},M={};for(const D in w){const R=w[D];O[D]=R.some(P=>P===g)}for(const D in E)M[D]=E[D].some(R=>R===g);return{...O,...M}}}function ff(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[i])=>(n[i]?o.push(n[i]):t[fe[i]]?o.push(t[fe[i]]):t[Ae[i]]&&o.push(t[Ae[i]]),o),[t[_.Day]])}function df(e){return{...cf,...e}}function pf(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function hf(){const e={};for(const t in _)e[_[t]]=`rdp-${_[t]}`;for(const t in fe)e[fe[t]]=`rdp-${fe[t]}`;for(const t in Ae)e[Ae[t]]=`rdp-${Ae[t]}`;for(const t in Ee)e[Ee[t]]=`rdp-${Ee[t]}`;return e}function Zo(e,t,n){return(n??new Me(t)).formatMonthYear(e)}const mf=Zo;function yf(e,t,n){return(n??new Me(t)).format(e,"d")}function gf(e,t=Ge){return t.format(e,"LLLL")}function vf(e,t,n){return(n??new Me(t)).format(e,"cccccc")}function bf(e,t=Ge){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function wf(){return""}function Jo(e,t=Ge){return t.format(e,"yyyy")}const Of=Jo,Sf=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Zo,formatDay:yf,formatMonthCaption:mf,formatMonthDropdown:gf,formatWeekNumber:bf,formatWeekNumberHeader:wf,formatWeekdayName:vf,formatYearCaption:Of,formatYearDropdown:Jo},Symbol.toStringTag,{value:"Module"}));function Ef(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...Sf,...e}}function fr(e,t,n,r){let o=(r??new Me(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const kf=fr;function dr(e,t,n){return(n??new Me(t)).formatMonthYear(e)}const Mf=dr;function Qo(e,t,n,r){let o=(r??new Me(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function es(e){return"Choose the Month"}function ts(){return""}const xf="Go to the Next Month";function ns(e,t){return xf}function rs(e){return"Go to the Previous Month"}function os(e,t,n){return(n??new Me(t)).format(e,"cccc")}function ss(e,t){return`Week ${e}`}function is(e){return"Week Number"}function as(e){return"Choose the Year"}const Cf=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:Mf,labelDay:kf,labelDayButton:fr,labelGrid:dr,labelGridcell:Qo,labelMonthDropdown:es,labelNav:ts,labelNext:ns,labelPrevious:rs,labelWeekNumber:ss,labelWeekNumberHeader:is,labelWeekday:os,labelYearDropdown:as},Symbol.toStringTag,{value:"Module"})),Re=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function Df(e,t){const n=t.locale?.labels??{};return{...Cf,...e??{},labelDayButton:Re(fr,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Re(es,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Re(ns,e?.labelNext,n.labelNext),labelPrevious:Re(rs,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Re(ss,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Re(as,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Re(dr,e?.labelGrid,n.labelGrid),labelGridcell:Re(Qo,e?.labelGridcell,n.labelGridcell),labelNav:Re(ts,e?.labelNav,n.labelNav),labelWeekNumberHeader:Re(is,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Re(os,e?.labelWeekday,n.labelWeekday)}}function Tf(e,t,n,r,o){const{startOfMonth:i,startOfYear:a,endOfYear:s,eachMonthOfInterval:l,getMonth:c}=o;return l({start:a(e),end:s(e)}).map(d=>{const h=r.formatMonthDropdown(d,o),S=c(d),b=t&&di(n)||!1;return{value:S,label:h,disabled:b}})}function Nf(e,t={},n={}){let r={...t?.[_.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function Pf(e,t,n,r){const o=r??e.today(),i=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),a=[];for(let s=0;s<7;s++){const l=e.addDays(i,s);a.push(l)}return a}function If(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:i,endOfYear:a,eachYearOfInterval:s,getYear:l}=r,c=i(e),f=a(t),u=s({start:c,end:f});return o&&u.reverse(),u.map(d=>{const h=n.formatYearDropdown(d,r);return{value:l(d),label:h,disabled:!1}})}function Wf(e,t={}){const{weekStartsOn:n,locale:r}=t,o=n??r?.options?.weekStartsOn??0,i=s=>{const l=typeof s=="number"||typeof s=="string"?new Date(s):s;return new ye(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,e)},a=s=>{const l=i(s);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0,0)};return{today:()=>i(ye.tz(e)),newDate:(s,l,c)=>new ye(s,l,c,12,0,0,e),startOfDay:s=>i(s),startOfWeek:(s,l)=>{const c=i(s),f=l?.weekStartsOn??o,u=(c.getDay()-f+7)%7;return c.setDate(c.getDate()-u),c},startOfISOWeek:s=>{const l=i(s),c=(l.getDay()-1+7)%7;return l.setDate(l.getDate()-c),l},startOfMonth:s=>{const l=i(s);return l.setDate(1),l},startOfYear:s=>{const l=i(s);return l.setMonth(0,1),l},endOfWeek:(s,l)=>{const c=i(s),d=(((l?.weekStartsOn??o)+6)%7-c.getDay()+7)%7;return c.setDate(c.getDate()+d),c},endOfISOWeek:s=>{const l=i(s),c=(7-l.getDay())%7;return l.setDate(l.getDate()+c),l},endOfMonth:s=>{const l=i(s);return l.setMonth(l.getMonth()+1,0),l},endOfYear:s=>{const l=i(s);return l.setMonth(11,31),l},eachMonthOfInterval:s=>{const l=i(s.start),c=i(s.end),f=[],u=new ye(l.getFullYear(),l.getMonth(),1,12,0,0,e),d=c.getFullYear()*12+c.getMonth();for(;u.getFullYear()*12+u.getMonth()<=d;)f.push(new ye(u,e)),u.setMonth(u.getMonth()+1,1);return f},addDays:(s,l)=>{const c=i(s);return c.setDate(c.getDate()+l),c},addWeeks:(s,l)=>{const c=i(s);return c.setDate(c.getDate()+l*7),c},addMonths:(s,l)=>{const c=i(s);return c.setMonth(c.getMonth()+l),c},addYears:(s,l)=>{const c=i(s);return c.setFullYear(c.getFullYear()+l),c},eachYearOfInterval:s=>{const l=i(s.start),c=i(s.end),f=[],u=new ye(l.getFullYear(),0,1,12,0,0,e);for(;u.getFullYear()<=c.getFullYear();)f.push(new ye(u,e)),u.setFullYear(u.getFullYear()+1,0,1);return f},getWeek:(s,l)=>{const c=a(s);return io(c,{weekStartsOn:l?.weekStartsOn??o,firstWeekContainsDate:l?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:s=>{const l=a(s);return so(l)},differenceInCalendarDays:(s,l)=>{const c=a(s),f=a(l);return ro(c,f)},differenceInCalendarMonths:(s,l)=>{const c=a(s),f=a(l);return oo(c,f)}}}const en=e=>e instanceof HTMLElement?e:null,An=e=>[...e.querySelectorAll("[data-animated-month]")??[]],Rf=e=>en(e.querySelector("[data-animated-month]")),jn=e=>en(e.querySelector("[data-animated-caption]")),Fn=e=>en(e.querySelector("[data-animated-weeks]")),Af=e=>en(e.querySelector("[data-animated-nav]")),jf=e=>en(e.querySelector("[data-animated-weekdays]"));function Ff(e,t,{classNames:n,months:r,focused:o,dateLib:i}){const a=p.useRef(null),s=p.useRef(r),l=p.useRef(!1);p.useLayoutEffect(()=>{const c=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||c.length===0||r.length!==c.length)return;const f=i.isSameMonth(r[0].date,c[0].date),u=i.isAfter(r[0].date,c[0].date),d=u?n[Ee.caption_after_enter]:n[Ee.caption_before_enter],h=u?n[Ee.weeks_after_enter]:n[Ee.weeks_before_enter],S=a.current,b=e.current.cloneNode(!0);if(b instanceof HTMLElement?(An(b).forEach(w=>{if(!(w instanceof HTMLElement))return;const E=Rf(w);E&&w.contains(E)&&w.removeChild(E);const g=jn(w);g&&g.classList.remove(d);const O=Fn(w);O&&O.classList.remove(h)}),a.current=b):a.current=null,l.current||f||o)return;const v=S instanceof HTMLElement?An(S):[],m=An(e.current);if(m?.every(y=>y instanceof HTMLElement)&&v&&v.every(y=>y instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const y=Af(e.current);y&&(y.style.zIndex="1"),m.forEach((w,E)=>{const g=v[E];if(!g)return;w.style.position="relative",w.style.overflow="hidden";const O=jn(w);O&&O.classList.add(d);const M=Fn(w);M&&M.classList.add(h);const D=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),y&&(y.style.zIndex=""),O&&O.classList.remove(d),M&&M.classList.remove(h),w.style.position="",w.style.overflow="",w.contains(g)&&w.removeChild(g)};g.style.pointerEvents="none",g.style.position="absolute",g.style.overflow="hidden",g.setAttribute("aria-hidden","true");const R=jf(g);R&&(R.style.opacity="0");const P=jn(g);P&&(P.classList.add(u?n[Ee.caption_before_exit]:n[Ee.caption_after_exit]),P.addEventListener("animationend",D));const C=Fn(g);C&&C.classList.add(u?n[Ee.weeks_before_exit]:n[Ee.weeks_after_exit]),w.insertBefore(g,w.firstChild)})}})}function _f(e,t,n,r){const o=e[0],i=e[e.length-1],{ISOWeek:a,fixedWeeks:s,broadcastCalendar:l}=n??{},{addDays:c,differenceInCalendarDays:f,differenceInCalendarMonths:u,endOfBroadcastWeek:d,endOfISOWeek:h,endOfMonth:S,endOfWeek:b,isAfter:v,startOfBroadcastWeek:m,startOfISOWeek:y,startOfWeek:w}=r,E=l?m(o,r):a?y(o):w(o),g=l?d(i):a?h(S(i)):b(S(i)),O=t&&(l?d(t):a?h(t):b(t)),M=O&&v(g,O)?O:g,D=f(M,E),R=u(i,o)+1,P=[];for(let G=0;G<=D;G++){const U=c(E,G);P.push(U)}const J=(l?35:42)*R;if(s&&P.length{const o=r.weeks.reduce((i,a)=>i.concat(a.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function Lf(e,t,n,r){const{numberOfMonths:o=1}=n,i=[];for(let a=0;at)break;i.push(s)}return i}function Jr(e,t,n,r){const{month:o,defaultMonth:i,today:a=r.today(),numberOfMonths:s=1}=e;let l=o||i||a;const{differenceInCalendarMonths:c,addMonths:f,startOfMonth:u}=r;if(n&&c(n,l){const m=n.broadcastCalendar?u(v,r):n.ISOWeek?d(v):h(v),y=n.broadcastCalendar?i(v):n.ISOWeek?a(s(v)):l(s(v)),w=t.filter(M=>M>=m&&M<=y),E=n.broadcastCalendar?35:42;if(n.fixedWeeks&&w.length{const R=E-w.length;return D>y&&D<=o(y,R)});w.push(...M)}const g=w.reduce((M,D)=>{const R=n.ISOWeek?c(D):f(D),P=M.find(J=>J.weekNumber===R),C=new Vo(D,v,r);return P?P.days.push(C):M.push(new Au(R,[C])),M},[]),O=new Ru(v,g);return b.push(O),b},[]);return n.reverseMonths?S.reverse():S}function Yf(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:i,startOfMonth:a,endOfMonth:s,addYears:l,endOfYear:c,newDate:f,today:u}=t,{fromYear:d,toYear:h,fromMonth:S,toMonth:b}=e;!n&&S&&(n=S),!n&&d&&(n=t.newDate(d,0,1)),!r&&b&&(r=b),!r&&h&&(r=f(h,11,31));const v=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=a(n):d?n=f(d,0,1):!n&&v&&(n=o(l(e.today??u(),-100))),r?r=s(r):h?r=f(h,11,31):!r&&v&&(r=c(e.today??u())),[n&&i(n),r&&i(r)]}function Hf(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i=1}=n,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=r,c=o?i:1,f=a(e);if(!t)return s(f,c);if(!(l(t,e)n.concat(r.weeks.slice()),t.slice())}function bn(e,t){const[n,r]=p.useState(e);return[t===void 0?n:t,r]}function Gf(e,t){const[n,r]=Yf(e,t),{startOfMonth:o,endOfMonth:i}=t,a=Jr(e,n,r,t),[s,l]=bn(a,e.month?a:void 0);p.useEffect(()=>{const E=Jr(e,n,r,t);l(E)},[e.timeZone]);const{months:c,weeks:f,days:u,previousMonth:d,nextMonth:h}=p.useMemo(()=>{const E=Lf(s,r,{numberOfMonths:e.numberOfMonths},t),g=_f(E,e.endMonth?i(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),O=$f(E,g,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),M=Uf(O),D=Bf(O),R=zf(s,n,e,t),P=Hf(s,r,e,t);return{months:O,weeks:M,days:D,previousMonth:R,nextMonth:P}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:S,onMonthChange:b}=e,v=E=>f.some(g=>g.days.some(O=>O.isEqualTo(E))),m=E=>{if(S)return;let g=o(E);n&&go(r)&&(g=o(r)),l(g),b?.(g)};return{months:c,weeks:f,days:u,navStart:n,navEnd:r,previousMonth:d,nextMonth:h,goToMonth:m,goToDay:E=>{v(E)||m(E.date)}}}var Le;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(Le||(Le={}));function Qr(e){return!e[fe.disabled]&&!e[fe.hidden]&&!e[fe.outside]}function Vf(e,t,n,r){let o,i=-1;for(const a of e){const s=t(a);Qr(s)&&(s[fe.focused]&&iQr(t(a)))),o}function qf(e,t,n,r,o,i,a){const{ISOWeek:s,broadcastCalendar:l}=i,{addDays:c,addMonths:f,addWeeks:u,addYears:d,endOfBroadcastWeek:h,endOfISOWeek:S,endOfWeek:b,max:v,min:m,startOfBroadcastWeek:y,startOfISOWeek:w,startOfWeek:E}=a;let O={day:c,week:u,month:f,year:d,startOfWeek:M=>l?y(M,a):s?w(M):E(M),endOfWeek:M=>l?h(M):s?S(M):b(M)}[e](n,t==="after"?1:-1);return t==="before"&&r?O=v([r,O]):t==="after"&&o&&(O=m([o,O])),O}function ls(e,t,n,r,o,i,a,s=0){if(s>365)return;const l=qf(e,t,n.date,r,o,i,a),c=!!(i.disabled&&Xe(l,i.disabled,a)),f=!!(i.hidden&&Xe(l,i.hidden,a)),u=l,d=new Vo(l,u,a);return!c&&!f?d:ls(e,t,d,r,o,i,a,s+1)}function Kf(e,t,n,r,o){const{autoFocus:i}=e,[a,s]=p.useState(),l=Vf(t.days,n,r||(()=>!1),a),[c,f]=p.useState(i?l:void 0);return{isFocusTarget:b=>!!l?.isEqualTo(b),setFocused:f,focused:c,blur:()=>{s(c),f(void 0)},moveFocus:(b,v)=>{if(!c)return;const m=ls(b,v,c,t.navStart,t.navEnd,e,o);m&&(e.disableNavigation&&!t.days.some(w=>w.isEqualTo(m))||(t.goToDay(m),f(m)))}}}function Xf(e,t){const{selected:n,required:r,onSelect:o}=e,[i,a]=bn(n,o?n:void 0),s=o?n:i,{isSameDay:l}=t,c=h=>s?.some(S=>l(S,h))??!1,{min:f,max:u}=e;return{selected:s,select:(h,S,b)=>{let v=[...s??[]];if(c(h)){if(s?.length===f||r&&s?.length===1)return;v=s?.filter(m=>!l(m,h))}else s?.length===u?v=[h]:v=[...v,h];return o||a(v),o?.(v,h,S,b),v},isSelected:c}}function Zf(e,t,n=0,r=0,o=!1,i=Ge){const{from:a,to:s}=t||{},{isSameDay:l,isAfter:c,isBefore:f}=i;let u;if(!a&&!s)u={from:e,to:n>0?void 0:e};else if(a&&!s)l(a,e)?n===0?u={from:a,to:e}:o?u={from:a,to:void 0}:u=void 0:f(e,a)?u={from:e,to:a}:u={from:a,to:e};else if(a&&s)if(l(a,e)&&l(s,e))o?u={from:a,to:s}:u=void 0;else if(l(a,e))u={from:a,to:n>0?void 0:e};else if(l(s,e))u={from:e,to:n>0?void 0:e};else if(f(e,a))u={from:e,to:s};else if(c(e,a))u={from:a,to:e};else if(c(e,s))u={from:a,to:e};else throw new Error("Invalid range");if(u?.from&&u?.to){const d=i.differenceInCalendarDays(u.to,u.from);r>0&&d>r?u={from:e,to:void 0}:n>1&&dtypeof s!="function").some(s=>typeof s=="boolean"?s:n.isDate(s)?Ke(e,s,!1,n):Xo(s,n)?s.some(l=>Ke(e,l,!1,n)):vn(s)?s.from&&s.to?eo(e,{from:s.from,to:s.to},n):!1:Ko(s)?Jf(e,s.dayOfWeek,n):lr(s)?n.isAfter(s.before,s.after)?eo(e,{from:n.addDays(s.after,1),to:n.addDays(s.before,-1)},n):Xe(e.from,s,n)||Xe(e.to,s,n):cr(s)||ur(s)?Xe(e.from,s,n)||Xe(e.to,s,n):!1))return!0;const a=r.filter(s=>typeof s=="function");if(a.length){let s=e.from;const l=n.differenceInCalendarDays(e.to,e.from);for(let c=0;c<=l;c++){if(a.some(f=>f(s)))return!0;s=n.addDays(s,1)}}return!1}function ed(e,t){const{disabled:n,excludeDisabled:r,resetOnSelect:o,selected:i,required:a,onSelect:s}=e,[l,c]=bn(i,s?i:void 0),f=s?i:l;return{selected:f,select:(h,S,b)=>{const{min:v,max:m}=e;let y;if(h){const w=f?.from,E=f?.to,g=!!w&&!!E,O=!!w&&!!E&&t.isSameDay(w,E)&&t.isSameDay(h,w);o&&(g||!f?.from)?!a&&O?y=void 0:y={from:h,to:void 0}:y=Zf(h,f,v,m,a,t)}return r&&n&&y?.from&&y.to&&Qf({from:y.from,to:y.to},n,t)&&(y.from=h,y.to=void 0),s||c(y),s?.(y,h,S,b),y},isSelected:h=>f&&Ke(f,h,!1,t)}}function td(e,t){const{selected:n,required:r,onSelect:o}=e,[i,a]=bn(n,o?n:void 0),s=o?n:i,{isSameDay:l}=t;return{selected:s,select:(u,d,h)=>{let S=u;return!r&&s&&s&&l(u,s)&&(S=void 0),o||a(S),o?.(S,u,d,h),S},isSelected:u=>s?l(s,u):!1}}function nd(e,t){const n=td(e,t),r=Xf(e,t),o=ed(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function xe(e,t){return e instanceof ye&&e.timeZone===t?e:new ye(e,t)}function vt(e,t,n){return xe(e,t)}function to(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?vt(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?vt(r,t):r):vn(e)?{...e,from:e.from?xe(e.from,t):e.from,to:e.to?xe(e.to,t):e.to}:lr(e)?{before:vt(e.before,t),after:vt(e.after,t)}:cr(e)?{after:vt(e.after,t)}:ur(e)?{before:vt(e.before,t)}:e}function _n(e,t,n){return e&&(Array.isArray(e)?e.map(r=>to(r,t)):to(e,t))}function cd(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=xe(t.today,n)),t.month&&(t.month=xe(t.month,n)),t.defaultMonth&&(t.defaultMonth=xe(t.defaultMonth,n)),t.startMonth&&(t.startMonth=xe(t.startMonth,n)),t.endMonth&&(t.endMonth=xe(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=xe(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(X=>xe(X,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?xe(t.selected.from,n):t.selected.from,to:t.selected.to?xe(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=_n(t.disabled,n)),t.hidden!==void 0&&(t.hidden=_n(t.hidden,n)),t.modifiers)){const X={};Object.keys(t.modifiers).forEach(le=>{X[le]=_n(t.modifiers?.[le],n)}),t.modifiers=X}const{components:r,formatters:o,labels:i,dateLib:a,locale:s,classNames:l}=p.useMemo(()=>{const X={...Go,...t.locale},le=t.broadcastCalendar?1:t.weekStartsOn,H=t.noonSafe&&t.timeZone?Wf(t.timeZone,{weekStartsOn:le,locale:X}):void 0,ie=t.dateLib&&H?{...H,...t.dateLib}:t.dateLib??H,Se=new Me({locale:X,weekStartsOn:le,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},ie);return{dateLib:Se,components:df(t.components),formatters:Ef(t.formatters),labels:Df(t.labels,Se.options),locale:X,classNames:{...hf(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:a.today()});const{captionLayout:c,mode:f,navLayout:u,numberOfMonths:d=1,onDayBlur:h,onDayClick:S,onDayFocus:b,onDayKeyDown:v,onDayMouseEnter:m,onDayMouseLeave:y,onNextClick:w,onPrevClick:E,showWeekNumber:g,styles:O}=t,{formatCaption:M,formatDay:D,formatMonthDropdown:R,formatWeekNumber:P,formatWeekNumberHeader:C,formatWeekdayName:J,formatYearDropdown:G}=o,U=Gf(t,a),{days:ee,months:W,navStart:te,navEnd:ue,previousMonth:L,nextMonth:Y,goToMonth:V}=U,k=uf(ee,t,te,ue,a),{isSelected:I,select:B,selected:x}=nd(t,a)??{},{blur:F,focused:q,isFocusTarget:Q,moveFocus:oe,setFocused:ce}=Kf(t,U,k,I??(()=>!1),a),{labelDayButton:pe,labelGridcell:Pe,labelGrid:Oe,labelMonthDropdown:Ie,labelNav:Je,labelPrevious:_e,labelNext:Ve,labelWeekday:Nt,labelWeekNumber:mt,labelWeekNumberHeader:We,labelYearDropdown:Qe}=i,yt=p.useMemo(()=>Pf(a,t.ISOWeek,t.broadcastCalendar,t.today),[a,t.ISOWeek,t.broadcastCalendar,t.today]),et=f!==void 0||S!==void 0,Be=p.useCallback(()=>{L&&(V(L),E?.(L))},[L,V,E]),se=p.useCallback(()=>{Y&&(V(Y),w?.(Y))},[V,Y,w]),de=p.useCallback((X,le)=>H=>{H.preventDefault(),H.stopPropagation(),ce(X),!le.disabled&&(B?.(X.date,le,H),S?.(X.date,le,H))},[B,S,ce]),me=p.useCallback((X,le)=>H=>{ce(X),b?.(X.date,le,H)},[b,ce]),ge=p.useCallback((X,le)=>H=>{F(),h?.(X.date,le,H)},[F,h]),wn=p.useCallback((X,le)=>H=>{const ie={ArrowLeft:[H.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[H.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[H.shiftKey?"year":"week","after"],ArrowUp:[H.shiftKey?"year":"week","before"],PageUp:[H.shiftKey?"year":"month","before"],PageDown:[H.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(ie[H.key]){H.preventDefault(),H.stopPropagation();const[Se,ne]=ie[H.key];oe(Se,ne)}v?.(X.date,le,H)},[oe,v,t.dir]),On=p.useCallback((X,le)=>H=>{m?.(X.date,le,H)},[m]),tt=p.useCallback((X,le)=>H=>{y?.(X.date,le,H)},[y]),ve=p.useCallback(X=>le=>{const H=Number(le.target.value),ie=a.setMonth(a.startOfMonth(X),H);V(ie)},[a,V]),gt=p.useCallback(X=>le=>{const H=Number(le.target.value),ie=a.setYear(a.startOfMonth(X),H);V(ie)},[a,V]),{className:cs,style:us}=p.useMemo(()=>({className:[l[_.Root],t.className].filter(Boolean).join(" "),style:{...O?.[_.Root],...t.style}}),[l,t.className,t.style,O]),fs=pf(t),pr=p.useRef(null);Ff(pr,!!t.animate,{classNames:l,months:W,focused:q,dateLib:a});const ds={dayPickerProps:t,selected:x,select:B,isSelected:I,months:W,nextMonth:Y,previousMonth:L,goToMonth:V,getModifiers:k,components:r,classNames:l,styles:O,labels:i,formatters:o};return T.createElement(qo.Provider,{value:ds},T.createElement(r.Root,{rootRef:t.animate?pr:void 0,className:cs,style:us,dir:t.dir,id:t.id,lang:t.lang??s.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...fs},T.createElement(r.Months,{className:l[_.Months],style:O?.[_.Months]},!t.hideNavigation&&!u&&T.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[_.Nav],style:O?.[_.Nav],"aria-label":Je(),onPreviousClick:Be,onNextClick:se,previousMonth:L,nextMonth:Y}),W.map((X,le)=>T.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[_.Month],style:O?.[_.Month],key:le,displayIndex:le,calendarMonth:X},u==="around"&&!t.hideNavigation&&le===0&&T.createElement(r.PreviousMonthButton,{type:"button",className:l[_.PreviousMonthButton],tabIndex:L?void 0:-1,"aria-disabled":L?void 0:!0,"aria-label":_e(L),onClick:Be,"data-animated-button":t.animate?"true":void 0},T.createElement(r.Chevron,{disabled:L?void 0:!0,className:l[_.Chevron],orientation:t.dir==="rtl"?"right":"left"})),T.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[_.MonthCaption],style:O?.[_.MonthCaption],calendarMonth:X,displayIndex:le},c?.startsWith("dropdown")?T.createElement(r.DropdownNav,{className:l[_.Dropdowns],style:O?.[_.Dropdowns]},(()=>{const H=c==="dropdown"||c==="dropdown-months"?T.createElement(r.MonthsDropdown,{key:"month",className:l[_.MonthsDropdown],"aria-label":Ie(),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:ve(X.date),options:Tf(X.date,te,ue,o,a),style:O?.[_.Dropdown],value:a.getMonth(X.date)}):T.createElement("span",{key:"month"},R(X.date,a)),ie=c==="dropdown"||c==="dropdown-years"?T.createElement(r.YearsDropdown,{key:"year",className:l[_.YearsDropdown],"aria-label":Qe(a.options),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:gt(X.date),options:If(te,ue,o,a,!!t.reverseYears),style:O?.[_.Dropdown],value:a.getYear(X.date)}):T.createElement("span",{key:"year"},G(X.date,a));return a.getMonthYearOrder()==="year-first"?[ie,H]:[H,ie]})(),T.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},M(X.date,a.options,a))):T.createElement(r.CaptionLabel,{className:l[_.CaptionLabel],role:"status","aria-live":"polite"},M(X.date,a.options,a))),u==="around"&&!t.hideNavigation&&le===d-1&&T.createElement(r.NextMonthButton,{type:"button",className:l[_.NextMonthButton],tabIndex:Y?void 0:-1,"aria-disabled":Y?void 0:!0,"aria-label":Ve(Y),onClick:se,"data-animated-button":t.animate?"true":void 0},T.createElement(r.Chevron,{disabled:Y?void 0:!0,className:l[_.Chevron],orientation:t.dir==="rtl"?"left":"right"})),le===d-1&&u==="after"&&!t.hideNavigation&&T.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[_.Nav],style:O?.[_.Nav],"aria-label":Je(),onPreviousClick:Be,onNextClick:se,previousMonth:L,nextMonth:Y}),T.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":f==="multiple"||f==="range","aria-label":Oe(X.date,a.options,a)||void 0,className:l[_.MonthGrid],style:O?.[_.MonthGrid]},!t.hideWeekdays&&T.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[_.Weekdays],style:O?.[_.Weekdays]},g&&T.createElement(r.WeekNumberHeader,{"aria-label":We(a.options),className:l[_.WeekNumberHeader],style:O?.[_.WeekNumberHeader],scope:"col"},C()),yt.map(H=>T.createElement(r.Weekday,{"aria-label":Nt(H,a.options,a),className:l[_.Weekday],key:String(H),style:O?.[_.Weekday],scope:"col"},J(H,a.options,a)))),T.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[_.Weeks],style:O?.[_.Weeks]},X.weeks.map(H=>T.createElement(r.Week,{className:l[_.Week],key:H.weekNumber,style:O?.[_.Week],week:H},g&&T.createElement(r.WeekNumber,{week:H,style:O?.[_.WeekNumber],"aria-label":mt(H.weekNumber,{locale:s}),className:l[_.WeekNumber],scope:"row",role:"rowheader"},P(H.weekNumber,a)),H.days.map(ie=>{const{date:Se}=ie,ne=k(ie);if(ne[fe.focused]=!ne.hidden&&!!q?.isEqualTo(ie),ne[Ae.selected]=I?.(Se)||ne.selected,vn(x)){const{from:Sn,to:En}=x;ne[Ae.range_start]=!!(Sn&&En&&a.isSameDay(Se,Sn)),ne[Ae.range_end]=!!(Sn&&En&&a.isSameDay(Se,En)),ne[Ae.range_middle]=Ke(x,Se,!0,a)}const ps=Nf(ne,O,t.modifiersStyles),hs=ff(ne,l,t.modifiersClassNames),ms=!et&&!ne.hidden?Pe(Se,ne,a.options,a):void 0;return T.createElement(r.Day,{key:`${ie.isoDate}_${ie.displayMonthId}`,day:ie,modifiers:ne,className:hs.join(" "),style:ps,role:"gridcell","aria-selected":ne.selected||void 0,"aria-label":ms,"data-day":ie.isoDate,"data-month":ie.outside?ie.dateMonthId:void 0,"data-selected":ne.selected||void 0,"data-disabled":ne.disabled||void 0,"data-hidden":ne.hidden||void 0,"data-outside":ie.outside||void 0,"data-focused":ne.focused||void 0,"data-today":ne.today||void 0},!ne.hidden&&et?T.createElement(r.DayButton,{className:l[_.DayButton],style:O?.[_.DayButton],type:"button",day:ie,modifiers:ne,disabled:!ne.focused&&ne.disabled||void 0,"aria-disabled":ne.focused&&ne.disabled||void 0,tabIndex:Q(ie)?0:-1,"aria-label":pe(Se,ne,a.options,a),onClick:de(ie,ne),onBlur:ge(ie,ne),onFocus:me(ie,ne),onKeyDown:wn(ie,ne),onMouseEnter:On(ie,ne),onMouseLeave:tt(ie,ne)},D(Se,a.options,a)):!ne.hidden&&D(ie.date,a.options,a))})))))))),t.footer&&T.createElement(r.Footer,{className:l[_.Footer],style:O?.[_.Footer],role:"status","aria-live":"polite"},t.footer)))}export{cd as D,id as R,ad as _,hf as g,ld as z}; diff --git a/dashboard/dist/assets/model-Bpgh3xA9.js b/dashboard/dist/assets/model-Bpgh3xA9.js new file mode 100644 index 00000000..9eabcf97 --- /dev/null +++ b/dashboard/dist/assets/model-Bpgh3xA9.js @@ -0,0 +1 @@ +import{r as a,j as e,R as ns,i as va}from"./router-zNjPR4CY.js";import{D as ks,i as ys,j as Cs,k as Ss,l as Ts,a3 as Ps,B as N,a4 as ie,h as Na,a5 as ht,X as oe,a6 as lt,Y as de,T as ft,O as pt,P as Pe,R as Me,L as O,I as W,g as ts,a7 as ba,a8 as _a,a9 as wa,aa as ka,a0 as ws,$ as ya,ab as Ca,u as Sa,E as Ta,N as Ze,ac as Pa,a1 as Ns,S as bs,A as fe,m as Ma,n as pe,o as ge,q as je,r as ve,s as Ne,t as be,v as _e,ad as Da,a2 as Oa}from"./index-CuOHsLf7.js";import{S as Ms,a as Ds,b as Os,c as Es,d as zs}from"./select-DGqIoF9r.js";import{C as gt,b as jt,d as vt,e as Nt,f as bt,g as _t,M as Se,m as Ea,S as za,h as Ia,c as ce,P as Ra,a as Aa,H as it}from"./ProviderList-4mOft0xL.js";import{P as wt,a as kt,b as yt}from"./popover-DSuRLFDH.js";import{S as Ae}from"./switch-Kc2EZ0Ga.js";import{S as Ct}from"./slider-mDhSC-zv.js";import{B as ee}from"./badge-CDs67obV.js";import{R as Fa,u as La,a as $a}from"./restart-overlay-B44c6hlE.js";import{K as Ba}from"./key-value-editor-D1uUqXIn.js";import{T as Ka}from"./textarea-8PIujbf-.js";import{C as Le}from"./checkbox-DWiVrbnx.js";import{S as Va}from"./separator-B_DSOSdz.js";import{e as Wa,c as Ua}from"./pack-api-NsQx-ed4.js";import{aj as St,P as Ga,L as as,ai as rs,t as ct,ak as ot,al as dt,b as Is,am as Ja,an as Tt,ao as qa,X as Ha,u as Pt,v as Te,ap as Qa,G as Xa,y as Ya,aq as Za,ah as er,a6 as sr,T as Fe,ar as tr,_ as mt,w as es,S as ar,R as rr,s as nr}from"./icons-DTcdLw9j.js";import{u as lr,a as ut,D as ir,c as cr,S as or,h as dr,b as mr,s as ur,K as xr,P as hr,d as fr,C as pr}from"./dnd-BoJ1-vkD.js";import{T as gr,a as jr,b as _s,c as Q,d as vr,e as H}from"./table-DFeDhBY_.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";import"./progress-C6-hh8fF.js";import"./system-api-DeeJapvB.js";function Nr({open:T,onOpenChange:c,value:g,onChange:x}){const[w,h]=a.useState(g);a.useEffect(()=>{T&&h(g)},[T,g]);const k=_=>{_&&h(g),c(_)},o=()=>{x(w),c(!1)},P=()=>{h(g),c(!1)};return e.jsx(ks,{open:T,onOpenChange:k,children:e.jsxs(ys,{className:"max-w-3xl h-[70vh] flex flex-col",children:[e.jsxs(Cs,{children:[e.jsx(Ss,{children:"编辑额外参数"}),e.jsx(Ts,{children:"配置模型调用时的额外参数,支持嵌套对象和数组"})]}),e.jsx("div",{className:"flex-1 overflow-hidden min-h-0",children:e.jsx(Ba,{value:w,onChange:h,placeholder:"添加额外参数(如 thinking、top_p 等)..."})}),e.jsxs(Ps,{children:[e.jsx(N,{variant:"outline",onClick:P,children:"取消"}),e.jsx(N,{onClick:o,children:"保存"})]})]})})}const br={utils:"通用工具",utils_small:"轻量工具",tool_use:"工具调用",replyer:"回复生成",planner:"规划推理",vlm:"视觉模型",voice:"语音处理",embedding:"向量嵌入",lpmm_entity_extract:"实体提取",lpmm_rdf_build:"RDF构建",lpmm_qa:"问答模型"},_r=["官方推荐","性价比","高性能","免费模型","国内可用","海外模型","OpenAI","Claude","Gemini","国产模型","多模态","轻量级"];function wr({trigger:T}){const[c,g]=a.useState(!1),[x,w]=a.useState(1),[h,k]=a.useState(!1),[o,P]=a.useState(!1),[_,y]=a.useState([]),[n,i]=a.useState([]),[u,C]=a.useState({}),[R,j]=a.useState(new Set),[v,m]=a.useState(new Set),[f,A]=a.useState(new Set),[se,te]=a.useState(""),[d,E]=a.useState(""),[q,De]=a.useState(""),[X,we]=a.useState([]);a.useEffect(()=>{c&&x===1&&ls()},[c,x]);const ls=async()=>{k(!0);try{const l=await Wa({name:"",description:"",author:""});y(l.providers),i(l.models),C(l.task_config),j(new Set(l.providers.map(S=>S.name))),m(new Set(l.models.map(S=>S.name))),A(new Set(Object.keys(l.task_config)))}catch(l){console.error("加载配置失败:",l),ie({title:"加载当前配置失败",variant:"destructive"})}finally{k(!1)}},Oe=l=>{const S=new Set(R),$=new Set(v),L=new Set(f);S.has(l)?(S.delete(l),n.filter(z=>z.api_provider===l).forEach(z=>$.delete(z.name)),Object.entries(u).forEach(([z,G])=>{G.model_list&&(G.model_list.some(Y=>$.has(Y))||L.delete(z))})):(S.add(l),n.filter(z=>z.api_provider===l).forEach(z=>$.add(z.name)),Object.entries(u).forEach(([z,G])=>{G.model_list&&G.model_list.some(Y=>{const Ve=n.find(ze=>ze.name===Y);return Ve&&Ve.api_provider===l})&&L.add(z)})),j(S),m($),A(L)},me=l=>{const S=new Set(v),$=new Set(f);S.has(l)?(S.delete(l),Object.entries(u).forEach(([L,U])=>{U.model_list&&(U.model_list.some(G=>S.has(G))||$.delete(L))})):(S.add(l),Object.entries(u).forEach(([L,U])=>{U.model_list&&U.model_list.includes(l)&&$.add(L)})),m(S),A($)},$e=l=>{const S=new Set(f);S.has(l)?S.delete(l):S.add(l),A(S)},is=l=>{X.includes(l)?we(X.filter(S=>S!==l)):X.length<5?we([...X,l]):ie({title:"最多选择 5 个标签",variant:"destructive"})},ke=()=>{R.size===_.length?j(new Set):j(new Set(_.map(l=>l.name)))},cs=()=>{v.size===n.length?m(new Set):m(new Set(n.map(l=>l.name)))},Be=()=>{const l=Object.keys(u);f.size===l.length?A(new Set):A(new Set(l))},os=async()=>{if(!se.trim()){ie({title:"请输入模板名称",variant:"destructive"});return}if(!d.trim()){ie({title:"请输入模板描述",variant:"destructive"});return}if(!q.trim()){ie({title:"请输入作者名称",variant:"destructive"});return}if(R.size===0&&v.size===0&&f.size===0){ie({title:"请至少选择一项配置",variant:"destructive"});return}P(!0);try{const l=_.filter(L=>R.has(L.name)),S=n.filter(L=>v.has(L.name)),$={};for(const[L,U]of Object.entries(u))f.has(L)&&($[L]=U);await Ua({name:se.trim(),description:d.trim(),author:q.trim(),tags:X,providers:l,models:S,task_config:$}),ie({title:"模板已提交审核,审核通过后将显示在市场中"}),g(!1),Ee()}catch(l){console.error("提交失败:",l),ie({title:l instanceof Error?l.message:"提交失败",variant:"destructive"})}finally{P(!1)}},Ee=()=>{w(1),te(""),E(""),De(""),we([]),j(new Set),m(new Set),A(new Set)},Ke=2;return e.jsxs(ks,{open:c,onOpenChange:g,children:[e.jsx(Na,{asChild:!0,children:T||e.jsxs(N,{variant:"outline",children:[e.jsx(St,{className:"w-4 h-4 mr-2"}),"分享配置"]})}),e.jsxs(ys,{className:"max-w-2xl flex flex-col",confirmOnEnter:!0,children:[e.jsxs(Cs,{children:[e.jsxs(Ss,{className:"flex items-center gap-2",children:[e.jsx(Ga,{className:"w-5 h-5"}),"分享配置模板"]}),e.jsxs(Ts,{children:["步骤 ",x," / ",Ke,":",x===1&&"选择要分享的配置",x===2&&"填写模板信息"]})]}),e.jsx(ht,{children:h?e.jsxs("div",{className:"py-8 text-center",children:[e.jsx(as,{className:"w-8 h-8 mx-auto animate-spin text-primary"}),e.jsx("p",{className:"mt-4 text-muted-foreground",children:"正在加载当前配置..."})]}):e.jsxs(e.Fragment,{children:[x===1&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs(oe,{children:[e.jsx(rs,{className:"h-4 w-4"}),e.jsx(lt,{children:"安全提示"}),e.jsxs(de,{children:["分享的配置将",e.jsx("strong",{children:"不包含"})," API Key,其他用户需要自行配置。"]})]}),e.jsxs(ft,{defaultValue:"providers",className:"w-full",children:[e.jsxs(pt,{className:"grid w-full grid-cols-3",children:[e.jsxs(Pe,{value:"providers",children:[e.jsx(ct,{className:"w-4 h-4 mr-2"}),"API 提供商",e.jsxs(ee,{variant:"secondary",className:"ml-2",children:[R.size,"/",_.length]})]}),e.jsxs(Pe,{value:"models",children:[e.jsx(ot,{className:"w-4 h-4 mr-2"}),"模型配置",e.jsxs(ee,{variant:"secondary",className:"ml-2",children:[v.size,"/",n.length]})]}),e.jsxs(Pe,{value:"tasks",children:[e.jsx(dt,{className:"w-4 h-4 mr-2"}),"任务配置",e.jsxs(ee,{variant:"secondary",className:"ml-2",children:[f.size,"/",Object.keys(u).length]})]})]}),e.jsx(Me,{value:"providers",className:"space-y-2 mt-4",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"flex justify-end",children:e.jsx(N,{variant:"ghost",size:"sm",onClick:ke,children:R.size===_.length?"取消全选":"全选"})}),_.length===0?e.jsx("p",{className:"text-sm text-muted-foreground text-center py-2",children:"暂无提供商配置"}):_.map(l=>e.jsxs("div",{className:"flex items-center space-x-2 p-2 rounded hover:bg-muted",children:[e.jsx(Le,{id:`provider-${l.name}`,checked:R.has(l.name),onCheckedChange:()=>Oe(l.name)}),e.jsxs(O,{htmlFor:`provider-${l.name}`,className:"flex-1 cursor-pointer",children:[e.jsx("span",{className:"font-medium",children:l.name}),e.jsx("span",{className:"text-xs text-muted-foreground ml-2",children:l.base_url})]}),e.jsx(ee,{variant:"outline",className:"text-xs",children:l.client_type})]},l.name))]})}),e.jsx(Me,{value:"models",className:"space-y-2 mt-4",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"flex justify-end",children:e.jsx(N,{variant:"ghost",size:"sm",onClick:cs,children:v.size===n.length?"取消全选":"全选"})}),n.length===0?e.jsx("p",{className:"text-sm text-muted-foreground text-center py-2",children:"暂无模型配置"}):n.map(l=>e.jsxs("div",{className:"flex items-center space-x-2 p-2 rounded hover:bg-muted",children:[e.jsx(Le,{id:`model-${l.name}`,checked:v.has(l.name),onCheckedChange:()=>me(l.name)}),e.jsxs(O,{htmlFor:`model-${l.name}`,className:"flex-1 cursor-pointer",children:[e.jsx("span",{className:"font-medium",children:l.name}),e.jsx("span",{className:"text-xs text-muted-foreground ml-2",children:l.model_identifier})]}),e.jsx("span",{className:"text-xs text-muted-foreground",children:l.api_provider})]},l.name))]})}),e.jsx(Me,{value:"tasks",className:"space-y-2 mt-4",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"flex justify-end",children:e.jsx(N,{variant:"ghost",size:"sm",onClick:Be,children:f.size===Object.keys(u).length?"取消全选":"全选"})}),Object.keys(u).length===0?e.jsx("p",{className:"text-sm text-muted-foreground text-center py-2",children:"暂无任务配置"}):Object.entries(u).map(([l,S])=>e.jsxs("div",{className:"space-y-2 p-2 rounded hover:bg-muted",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Le,{id:`task-${l}`,checked:f.has(l),onCheckedChange:()=>$e(l)}),e.jsx(O,{htmlFor:`task-${l}`,className:"flex-1 cursor-pointer",children:e.jsx("span",{className:"font-medium",children:br[l]||l})}),e.jsxs(ee,{variant:"outline",className:"text-xs",children:[S.model_list.length," 个模型"]})]}),S.model_list&&S.model_list.length>0&&e.jsx("div",{className:"ml-6 flex flex-wrap gap-1",children:S.model_list.map($=>{const L=n.find(z=>z.name===$),U=v.has($);return e.jsxs(ee,{variant:U?"default":"outline",className:"text-xs cursor-pointer hover:opacity-80 transition-opacity",onClick:()=>me($),children:[$,L&&e.jsxs("span",{className:"ml-1 opacity-70",children:["(",L.api_provider,")"]})]},$)})})]},l))]})})]})]}),x===2&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex gap-4 text-sm p-3 bg-muted rounded-lg",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ct,{className:"w-4 h-4"}),R.size," 个提供商"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ot,{className:"w-4 h-4"}),v.size," 个模型"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(dt,{className:"w-4 h-4"}),f.size," 个任务"]})]}),e.jsx(Va,{}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"pack-name",children:"模板名称 *"}),e.jsx(W,{id:"pack-name",placeholder:"例如:高性价比国产模型配置",value:se,onChange:l=>te(l.target.value),maxLength:50}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[se.length,"/50"]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"pack-description",children:"模板描述 *"}),e.jsx(Ka,{id:"pack-description",placeholder:"详细描述这个配置模板的特点、适用场景等...",value:d,onChange:l=>E(l.target.value),rows:4,maxLength:500}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[d.length,"/500"]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{htmlFor:"pack-author",children:"作者名称 *"}),e.jsx(W,{id:"pack-author",placeholder:"你的昵称或 ID",value:q,onChange:l=>De(l.target.value),maxLength:30})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{children:"标签(可选,最多 5 个)"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:_r.map(l=>e.jsxs(ee,{variant:X.includes(l)?"default":"outline",className:"cursor-pointer transition-colors",onClick:()=>is(l),children:[X.includes(l)&&e.jsx(Is,{className:"w-3 h-3 mr-1"}),e.jsx(Ja,{className:"w-3 h-3 mr-1"}),l]},l))})]})]}),e.jsxs(oe,{children:[e.jsx(rs,{className:"h-4 w-4"}),e.jsx(lt,{children:"审核说明"}),e.jsx(de,{children:"提交后需要经过审核才能在市场中展示。审核通常在 1-3 个工作日内完成。"})]})]})]})}),e.jsxs(Ps,{className:"flex justify-between pt-4 border-t",children:[e.jsx("div",{children:x>1&&e.jsx(N,{variant:"outline",onClick:()=>w(x-1),disabled:o,children:"上一步"})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(N,{variant:"outline",onClick:()=>{g(!1),Ee()},disabled:o,children:"取消"}),xw(x+1),disabled:h||R.size===0&&v.size===0&&f.size===0,children:"下一步"}):e.jsxs(N,{"data-dialog-action":"confirm",onClick:os,disabled:o,children:[o&&e.jsx(as,{className:"w-4 h-4 mr-2 animate-spin"}),"提交审核"]})]})]})]})]})}function kr({value:T,label:c,onRemove:g}){const{attributes:x,listeners:w,setNodeRef:h,transform:k,transition:o,isDragging:P}=fr({id:T}),_={transform:pr.Transform.toString(k),transition:o,opacity:P?.5:1},y=i=>{i.preventDefault(),i.stopPropagation(),g(T)},n=i=>{i.stopPropagation()};return e.jsx("div",{ref:h,style:_,className:ts("inline-flex items-center gap-1",P&&"shadow-lg"),children:e.jsxs(ee,{variant:"secondary",className:"cursor-move hover:bg-secondary/80 flex items-center gap-1",children:[e.jsx("div",{...x,...w,className:"cursor-grab active:cursor-grabbing flex items-center",children:e.jsx(qa,{className:"h-3 w-3 text-muted-foreground"})}),e.jsx("span",{children:c}),e.jsx("span",{role:"button",tabIndex:0,className:"ml-1 rounded-sm hover:bg-destructive/20 focus:outline-none focus:ring-1 focus:ring-destructive cursor-pointer",onClick:y,onPointerDown:n,onMouseDown:i=>i.stopPropagation(),onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),y(i))},children:e.jsx(Ha,{className:"h-3 w-3 hover:text-destructive",strokeWidth:2,fill:"none"})})]})})}function yr({options:T,selected:c,onChange:g,placeholder:x="选择选项...",emptyText:w="未找到选项",className:h}){const[k,o]=a.useState(!1),P=lr(ut(hr,{activationConstraint:{distance:8}}),ut(xr,{coordinateGetter:ur})),_=i=>{c.includes(i)?g(c.filter(u=>u!==i)):g([...c,i])},y=i=>{g(c.filter(u=>u!==i))},n=i=>{const{active:u,over:C}=i;if(C&&u.id!==C.id){const R=c.indexOf(u.id),j=c.indexOf(C.id);g(mr(c,R,j))}};return e.jsxs(wt,{open:k,onOpenChange:o,children:[e.jsx(kt,{asChild:!0,children:e.jsxs(N,{variant:"outline",role:"combobox","aria-expanded":k,className:ts("w-full justify-between min-h-10 h-auto",h),children:[e.jsx(ir,{sensors:P,collisionDetection:cr,onDragEnd:n,children:e.jsx(or,{items:c,strategy:dr,children:e.jsx("div",{className:"flex gap-1 flex-wrap flex-1",children:c.length===0?e.jsx("span",{className:"text-muted-foreground",children:x}):c.map(i=>{const u=T.find(C=>C.value===i);return e.jsx(kr,{value:i,label:u?.label||i,onRemove:y},i)})})})}),e.jsx(Tt,{className:"ml-2 h-4 w-4 shrink-0 opacity-50",strokeWidth:2,fill:"none"})]})}),e.jsx(yt,{className:"w-full p-0",align:"start",children:e.jsxs(gt,{children:[e.jsx(jt,{placeholder:"搜索...",className:"h-9"}),e.jsxs(vt,{children:[e.jsx(Nt,{children:w}),e.jsx(bt,{children:T.map(i=>{const u=c.includes(i.value);return e.jsxs(_t,{value:i.value,onSelect:()=>_(i.value),children:[e.jsx("div",{className:ts("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",u?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(Is,{className:"h-3 w-3",strokeWidth:2,fill:"none"})}),e.jsx("span",{children:i.label})]},i.value)})})]})]})})]})}const Cr=[{value:"balance",label:"负载均衡(balance)",description:"优先选择当前使用次数较少的模型,适合多个同类模型共同承担请求。"},{value:"random",label:"随机选择(random)",description:"每次请求从模型列表中随机选择一个模型,适合简单分散请求。"},{value:"sequential",label:"按顺序优先(sequential)",description:"优先使用模型列表中靠前的模型,前面的模型不可用时再尝试后面的模型。"}],Sr=ns.memo(function({title:c,description:g,taskConfig:x,modelNames:w,onChange:h,hideTemperature:k=!1,hideMaxTokens:o=!1,advanced:P=!1,showAdvancedSettings:_=!1,dataTour:y}){const n=i=>{h("model_list",i)};return e.jsxs("div",{className:ts("rounded-lg border bg-card p-4 sm:p-6 space-y-4",P&&"border-amber-300 bg-amber-50/40 dark:border-amber-500/50 dark:bg-amber-500/10"),children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-base sm:text-lg",children:c}),e.jsx("p",{className:"text-xs sm:text-sm text-muted-foreground mt-1",children:g})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsxs("div",{className:"grid gap-2","data-tour":y,children:[e.jsx(O,{children:"模型列表"}),e.jsx(yr,{options:w.map(i=>({label:i,value:i})),selected:x.model_list||[],onChange:n,placeholder:"选择模型...",emptyText:"暂无可用模型"})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-3",children:[!k&&e.jsxs("div",{className:"grid gap-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(O,{children:"温度"}),e.jsx(W,{type:"number",step:"0.1",min:"0",max:"2",value:x.temperature??.7,onChange:i=>{const u=parseFloat(i.target.value);!isNaN(u)&&u>=0&&u<=2&&h("temperature",u)},className:"w-20 h-8 text-sm"})]}),e.jsx(Ct,{value:[x.temperature??.7],onValueChange:i=>h("temperature",i[0]),min:0,max:2,step:.1,className:"w-full"})]}),!o&&e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{children:"最大 Token"}),e.jsx(W,{type:"number",step:"1",min:"1",value:x.max_tokens??1024,onChange:i=>h("max_tokens",parseInt(i.target.value))})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(O,{children:"模型选择策略"}),e.jsxs(Ms,{value:x.selection_strategy??"balance",onValueChange:i=>h("selection_strategy",i),children:[e.jsx(Ds,{children:e.jsx(Os,{placeholder:"选择模型选择策略"})}),e.jsx(Es,{children:e.jsx(ba,{delayDuration:150,children:Cr.map(i=>e.jsxs(_a,{children:[e.jsx(wa,{asChild:!0,children:e.jsx(zs,{value:i.value,title:i.description,children:i.label})}),e.jsx(ka,{side:"right",align:"center",className:"max-w-72 bg-background text-foreground border shadow-lg",children:i.description})]},i.value))})})]})]})]}),_&&e.jsxs("div",{className:"grid gap-2 rounded-md border border-amber-200 bg-amber-50/50 p-3 dark:border-amber-500/40 dark:bg-amber-500/10",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(O,{children:"慢请求阈值 (秒)"}),e.jsx("span",{className:"text-xs text-muted-foreground",children:"高级配置"})]}),e.jsx(W,{type:"number",step:"1",min:"1",value:x.slow_threshold??15,onChange:i=>{const u=parseInt(i.target.value);!isNaN(u)&&u>=1&&h("slow_threshold",u)},placeholder:"15"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"模型响应时间超过此阈值将输出警告日志"})]})]})]})}),Tr=ns.memo(function({paginatedModels:c,allModels:g,onEdit:x,onDelete:w,isModelUsed:h,searchQuery:k}){return c.length===0?e.jsx("div",{className:"md:hidden text-center text-muted-foreground py-8 rounded-lg border bg-card",children:k?"未找到匹配的模型":"暂无模型配置"}):e.jsx("div",{className:"md:hidden space-y-3",children:c.map((o,P)=>{const _=g.findIndex(n=>n===o),y=h(o.name);return e.jsxs("div",{className:"rounded-lg border bg-card p-4 space-y-3",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("h3",{className:"font-semibold text-base",children:o.name}),e.jsx("span",{className:`block h-3 w-3 shrink-0 rounded-full border ${y?"border-green-500 bg-green-500 shadow-[0_0_0_3px_rgba(34,197,94,0.18)]":"border-green-700/40 bg-green-950/20"}`,title:y?"已使用":"未使用","aria-label":y?"已使用":"未使用"})]}),e.jsx("p",{className:"text-xs text-muted-foreground break-all",title:o.model_identifier,children:o.model_identifier})]}),e.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[e.jsxs(N,{variant:"default",size:"sm",onClick:()=>x(o,_),children:[e.jsx(Pt,{className:"h-4 w-4 mr-1",strokeWidth:2,fill:"none"}),"编辑"]}),e.jsxs(N,{size:"sm",onClick:()=>w(_),className:"bg-red-600 hover:bg-red-700 text-white",children:[e.jsx(Te,{className:"h-4 w-4 mr-1",strokeWidth:2,fill:"none"}),"删除"]})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground text-xs",children:"提供商"}),e.jsx("p",{className:"font-medium",children:o.api_provider})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground text-xs",children:"视觉"}),e.jsx("p",{className:"flex h-5 items-center",children:e.jsx("span",{className:`block h-3 w-3 rounded-full border ${o.visual?"border-green-500 bg-green-500 shadow-[0_0_0_3px_rgba(34,197,94,0.18)]":"border-green-700/40 bg-green-950/20"}`,title:o.visual?"已启用视觉":"未启用视觉","aria-label":o.visual?"已启用视觉":"未启用视觉"})})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground text-xs",children:"输入价格"}),e.jsxs("p",{className:"font-medium",children:["¥",o.price_in,"/M"]})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground text-xs",children:"输出价格"}),e.jsxs("p",{className:"font-medium",children:["¥",o.price_out,"/M"]})]})]})]},P)})})}),Pr=ns.memo(function({paginatedModels:c,allModels:g,filteredModels:x,selectedModels:w,onEdit:h,onDelete:k,onToggleSelection:o,onToggleSelectAll:P,isModelUsed:_,searchQuery:y}){return e.jsx("div",{className:"hidden md:block rounded-lg border bg-card overflow-hidden",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs(gr,{"aria-label":"模型列表",children:[e.jsx(jr,{children:e.jsxs(_s,{children:[e.jsx(Q,{className:"w-12",children:e.jsx(Le,{checked:w.size===x.length&&x.length>0,onCheckedChange:P})}),e.jsx(Q,{className:"w-14 text-center",children:"使用"}),e.jsx(Q,{children:"模型名称"}),e.jsx(Q,{children:"模型标识符"}),e.jsx(Q,{children:"提供商"}),e.jsx(Q,{className:"w-14 text-center",children:"视觉"}),e.jsx(Q,{className:"text-center",children:"温度"}),e.jsx(Q,{className:"text-right",children:"输入价格"}),e.jsx(Q,{className:"text-right",children:"输出价格"}),e.jsx(Q,{className:"text-right",children:"操作"})]})}),e.jsx(vr,{children:c.length===0?e.jsx(_s,{children:e.jsx(H,{colSpan:10,className:"text-center text-muted-foreground py-8",children:y?"未找到匹配的模型":"暂无模型配置"})}):c.map((n,i)=>{const u=g.findIndex(R=>R===n),C=_(n.name);return e.jsxs(_s,{children:[e.jsx(H,{children:e.jsx(Le,{checked:w.has(u),onCheckedChange:()=>o(u)})}),e.jsx(H,{className:"text-center",children:e.jsx("span",{className:`mx-auto block h-3 w-3 rounded-full border ${C?"border-green-500 bg-green-500 shadow-[0_0_0_3px_rgba(34,197,94,0.18)]":"border-green-700/40 bg-green-950/20"}`,title:C?"已使用":"未使用","aria-label":C?"已使用":"未使用"})}),e.jsx(H,{className:"font-medium",children:n.name}),e.jsx(H,{className:"max-w-xs truncate",title:n.model_identifier,children:n.model_identifier}),e.jsx(H,{children:n.api_provider}),e.jsx(H,{className:"text-center",children:e.jsx("span",{className:`mx-auto block h-3 w-3 rounded-full border ${n.visual?"border-green-500 bg-green-500 shadow-[0_0_0_3px_rgba(34,197,94,0.18)]":"border-green-700/40 bg-green-950/20"}`,title:n.visual?"已启用视觉":"未启用视觉","aria-label":n.visual?"已启用视觉":"未启用视觉"})}),e.jsx(H,{className:"text-center",children:n.temperature!=null?n.temperature:e.jsx("span",{className:"text-muted-foreground",children:"-"})}),e.jsxs(H,{className:"text-right",children:["¥",n.price_in,"/M"]}),e.jsxs(H,{className:"text-right",children:["¥",n.price_out,"/M"]}),e.jsx(H,{className:"text-right",children:e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsxs(N,{variant:"default",size:"sm",onClick:()=>h(n,u),children:[e.jsx(Pt,{className:"h-4 w-4 mr-1",strokeWidth:2,fill:"none"}),"编辑"]}),e.jsxs(N,{size:"sm",onClick:()=>k(u),className:"bg-red-600 hover:bg-red-700 text-white",children:[e.jsx(Te,{className:"h-4 w-4 mr-1",strokeWidth:2,fill:"none"}),"删除"]})]})})]},i)})})]})})})}),Mr=300*1e3,xt=new Map,Dr=[10,20,50,100],Or=ns.memo(function({page:c,pageSize:g,totalItems:x,jumpToPage:w,onPageChange:h,onPageSizeChange:k,onJumpToPageChange:o,onJumpToPage:P,onSelectionClear:_}){const y=Math.ceil(x/g),n=u=>{k(parseInt(u)),h(1),_?.()},i=u=>{u.key==="Enter"&&P()};return x===0?null:e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 mt-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(O,{htmlFor:"page-size-model",className:"text-sm whitespace-nowrap",children:"每页显示"}),e.jsxs(Ms,{value:g.toString(),onValueChange:n,children:[e.jsx(Ds,{id:"page-size-model",className:"w-20",children:e.jsx(Os,{})}),e.jsx(Es,{children:Dr.map(u=>e.jsx(zs,{value:u.toString(),children:u},u))})]}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:["显示 ",(c-1)*g+1," 到"," ",Math.min(c*g,x)," 条,共 ",x," 条"]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(N,{variant:"outline",size:"sm",onClick:()=>h(1),disabled:c===1,className:"hidden sm:flex",children:e.jsx(Qa,{className:"h-4 w-4"})}),e.jsxs(N,{variant:"outline",size:"sm",onClick:()=>h(Math.max(1,c-1)),disabled:c===1,children:[e.jsx(Xa,{className:"h-4 w-4 sm:mr-1"}),e.jsx("span",{className:"hidden sm:inline",children:"上一页"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(W,{type:"number",value:w,onChange:u=>o(u.target.value),onKeyDown:i,placeholder:c.toString(),className:"w-16 h-8 text-center",min:1,max:y}),e.jsx(N,{variant:"outline",size:"sm",onClick:P,disabled:!w,className:"h-8",children:"跳转"})]}),e.jsxs(N,{variant:"outline",size:"sm",onClick:()=>h(c+1),disabled:c>=y,children:[e.jsx("span",{className:"hidden sm:inline",children:"下一页"}),e.jsx(Ya,{className:"h-4 w-4 sm:ml-1"})]}),e.jsx(N,{variant:"outline",size:"sm",onClick:()=>h(y),disabled:c>=y,className:"hidden sm:flex",children:e.jsx(Za,{className:"h-4 w-4"})})]})]})});function Er(T){const{models:c,taskConfig:g,debounceMs:x=2e3,onSavingChange:w,onUnsavedChange:h}=T,k=a.useRef(null),o=a.useRef(null),P=a.useRef(!0),_=a.useRef(null),y=a.useRef(null),n=a.useCallback(()=>{k.current&&(clearTimeout(k.current),k.current=null),o.current&&(clearTimeout(o.current),o.current=null)},[]),i=a.useCallback(m=>{const f={model_identifier:m.model_identifier,name:m.name,api_provider:m.api_provider,price_in:m.price_in??0,price_out:m.price_out??0,cache:m.cache??!1,cache_price_in:m.cache_price_in??0,visual:m.visual??!1,force_stream_mode:m.force_stream_mode??!1,extra_params:m.extra_params??{}};return m.temperature!=null&&(f.temperature=m.temperature),m.max_tokens!=null&&(f.max_tokens=m.max_tokens),f},[]),u=a.useCallback(m=>JSON.stringify(m.map(i)),[i]),C=a.useCallback(m=>m?JSON.stringify(m):null,[]),R=a.useCallback((m,f)=>{_.current=u(m),y.current=C(f)},[u,C]),j=a.useCallback(async m=>{try{w?.(!0);const f=m.map(i),A=await ws("models",f);if(!A.success)throw new Error(A.error);_.current=JSON.stringify(f),h?.(!1)}catch(f){console.error("自动保存模型列表失败:",f),h?.(!0)}finally{w?.(!1)}},[w,h,i]),v=a.useCallback(async m=>{try{w?.(!0);const f=await ws("model_task_config",m);if(!f.success)throw new Error(f.error);y.current=JSON.stringify(m),h?.(!1)}catch(f){console.error("自动保存任务配置失败:",f),h?.(!0)}finally{w?.(!1)}},[w,h]);return a.useEffect(()=>{if(P.current)return;const m=u(c);if(_.current===null){_.current=m;return}if(m!==_.current)return h?.(!0),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{j(c)},x),()=>{k.current&&clearTimeout(k.current)}},[c,j,x,h,u]),a.useEffect(()=>{if(P.current||!g)return;const m=C(g);if(y.current===null){y.current=m;return}if(m!==y.current)return h?.(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{v(g)},x),()=>{o.current&&clearTimeout(o.current)}},[g,v,x,h,C]),a.useEffect(()=>()=>{n()},[n]),{clearTimers:n,initialLoadRef:P,resetSnapshots:R}}function zr(T={}){const{onOpenEditDialog:c,onCloseEditDialog:g,onOpenProviderDialog:x,onCloseProviderDialog:w,onOpenProvidersTab:h,onOpenModelsTab:k,onOpenTasksTab:o}=T,P=va(),{registerTour:_,startTour:y,state:n,goToStep:i}=ya(),u=a.useRef(n.stepIndex),C=a.useCallback((j,v)=>{if((j.target instanceof Element?j.target:null)?.closest(v))return!0;const f=document.querySelector(v);if(!f)return!1;const A=f.getBoundingClientRect();return j.clientX>=A.left&&j.clientX<=A.right&&j.clientY>=A.top&&j.clientY<=A.bottom},[]);return a.useEffect(()=>{_(Se,Ea)},[_]),a.useEffect(()=>{if(n.activeTourId!==Se||!n.isRunning)return;const j=za[n.stepIndex];j&&window.location.pathname!==j&&P({to:j})},[n.stepIndex,n.activeTourId,n.isRunning,P]),a.useEffect(()=>{if(n.activeTourId!==Se||!n.isRunning)return;const j=u.current,v=n.stepIndex;v<=2&&h?.(),j>=3&&j<=9&&v<3&&w?.(),j<=2&&v>=3&&v<=9&&x?.(),(v===10||v===11)&&(w?.(),k?.()),j>=12&&j<=17&&v<12&&g?.(),j<=11&&v>=12&&v<=17&&c?.(),v===19&&o?.(),u.current=v},[n.stepIndex,n.activeTourId,n.isRunning,c,g,x,w,h,k,o]),a.useEffect(()=>{if(n.activeTourId!==Se||!n.isRunning)return;const j=v=>{const m=n.stepIndex;m===1&&C(v,'[data-tour="providers-tab-trigger"]')?(h?.(),setTimeout(()=>i(2),300)):m===2&&C(v,'[data-tour="add-provider-button"]')?(x?.(),setTimeout(()=>i(3),300)):m===9&&C(v,'[data-tour="provider-cancel-button"]')?(w?.(),setTimeout(()=>i(10),300)):m===10&&C(v,'[data-tour="models-tab-trigger"]')?(k?.(),setTimeout(()=>i(11),300)):m===11&&C(v,'[data-tour="add-model-button"]')?(c?.(),setTimeout(()=>i(12),300)):m===17&&C(v,'[data-tour="model-cancel-button"]')?(g?.(),setTimeout(()=>i(18),300)):m===18&&C(v,'[data-tour="tasks-tab-trigger"]')&&(o?.(),setTimeout(()=>i(19),300))};return document.addEventListener("click",j,!0),()=>document.removeEventListener("click",j,!0)},[n,i,c,g,x,w,h,k,o,C]),{startTour:a.useCallback(()=>{h?.(),y(Se)},[y,h]),isRunning:n.isRunning&&n.activeTourId===Se,stepIndex:n.stepIndex}}function Ir(T){const{getProviderConfig:c}=T,[g,x]=a.useState([]),[w,h]=a.useState(!1),[k,o]=a.useState(null),[P,_]=a.useState(null),y=a.useCallback(()=>{x([]),o(null),_(null)},[]),n=a.useCallback(async(i,u=!1)=>{const C=c(i);if(!C?.base_url){x([]),_(null),o('提供商配置不完整,请先在"模型厂商设置"中配置');return}if(!C.api_key){x([]),_(null),o('该提供商未配置 API Key,请先在"模型厂商设置"中填写');return}const R=Ia(C.base_url);if(_(R),!R?.modelFetcher){x([]),o(null);return}const j=`${i}:${C.base_url}`,v=xt.get(j);if(!u&&v&&Date.now()-v.timestampc.type==="object"&&!c.advanced).map(c=>c.name))}function ln(){return e.jsx(Fa,{children:e.jsx(Ar,{})})}function Ar(){const{i18n:T}=Sa(),[c,g]=a.useState([]),[x,w]=a.useState([]),[h,k]=a.useState([]),[o,P]=a.useState([]),[_,y]=a.useState([]),[n,i]=a.useState(null),[u,C]=a.useState(!0),[R,j]=a.useState(!1),[v,m]=a.useState(!1),[f,A]=a.useState(!1),[se,te]=a.useState(!1),[d,E]=a.useState(null),[q,De]=a.useState(null),[X,we]=a.useState(!1),[ls,Oe]=a.useState(!1),[me,$e]=a.useState(null),[is,ke]=a.useState(!1),[cs,Be]=a.useState(null),[os,Ee]=a.useState(null),[Ke,l]=a.useState(!1),[S,$]=a.useState(null),[L,U]=a.useState(""),[z,G]=a.useState(new Set),[J,Y]=a.useState(new Set),[Ve,ze]=a.useState(!1),[Mt,ds]=a.useState(!1),[ue,Rs]=a.useState(new Set),[Dt,Ot]=a.useState(new Map),[V,ms]=a.useState({isOpen:!1,providersToDelete:[],affectedModels:[],pendingProviders:[],context:"auto",oldProviders:[]}),[us,Et]=a.useState(null),As=a.useRef(null),[xs,Fs]=a.useState(1),[We,zt]=a.useState(20),[Ls,$s]=a.useState(""),[It,Ue]=a.useState("providers"),[Bs,Ks]=a.useState(!1),[hs,Rt]=a.useState(!1),[At,Ft]=a.useState(()=>localStorage.getItem("model-config-restart-notice-dismissed")!=="true"),[Lt,$t]=a.useState(()=>localStorage.getItem("model-assignment-tour-entry-dismissed")!=="true"),[Vs,Ws]=a.useState(!1),Z=a.useRef(null),xe=a.useRef(null),[Bt,Ge]=a.useState(!1),Je=a.useRef([]),Ie=a.useRef(null),[Us,Gs]=a.useState([]),[Js,Kt]=a.useState([]),[K,ye]=a.useState({}),{toast:D}=Ta(),{triggerRestart:Vt,isRestarting:fs}=La(),{clearTimers:qs,initialLoadRef:Ce,resetSnapshots:qe}=Er({models:c,taskConfig:n,onSavingChange:m,onUnsavedChange:A}),ae=a.useCallback((s,t,r)=>{if(!s)return;const p=new Set(t.map(F=>F.name)),M=Rr(r??As.current),I=[],b=[];for(const[F,B]of Object.entries(s)){if(!B)continue;if(!B.model_list||B.model_list.length===0){M.has(F)&&b.push(F);continue}const nt=B.model_list.filter(ja=>!p.has(ja));nt.length>0&&I.push({taskName:F,invalidModels:nt})}Gs(I),Kt(b)},[]),ps=a.useCallback(async()=>{try{C(!0);const[s,t]=await Promise.all([Ze(),Pa()]);if(!s.success){D({title:"加载失败",description:s.error,variant:"destructive"}),C(!1);return}const r=ss(s.data),p=r.models||[];g(p),y(p.map(B=>B.name));const M=r.api_providers||[];w(M.map(B=>B.name)),k(M),P(M.map(B=>ce(B))),xe.current=JSON.stringify(M.map(B=>ce(B)));const I=r.model_task_config||null;i(I),qe(p,I);let b=null;t.success&&t.data&&(b=t.data.schema.nested?.model_task_config??null,As.current=b,Et(b)),ae(I,p,b);const F=I?.embedding?.model_list||[];Je.current=[...F],A(!1),Ce.current=!1}catch(s){console.error("加载配置失败:",s)}finally{C(!1)}},[Ce,ae,qe]);a.useEffect(()=>{ps()},[ps]);const Wt=a.useCallback(s=>h.find(t=>t.name===s),[h]),{availableModels:Ut,fetchingModels:He,modelFetchError:re,matchedTemplate:ne,fetchModelsForProvider:Qe,clearModels:Gt}=Ir({getProviderConfig:Wt});a.useEffect(()=>{se&&d?.api_provider&&Qe(d.api_provider)},[se,d?.api_provider,Qe]);const gs=async()=>{await Vt()},Jt=()=>{localStorage.setItem("model-config-restart-notice-dismissed","true"),Ft(!1)},qt=s=>{s.stopPropagation(),localStorage.setItem("model-assignment-tour-entry-dismissed","true"),$t(!1)},he=a.useCallback(s=>{const t=s.map(ce);P(t),w(t.map(r=>r.name)),k(t.map(r=>({name:r.name,base_url:r.base_url,api_key:r.api_key,client_type:r.client_type,max_retry:r.max_retry??2,timeout:r.timeout??30,retry_interval:r.retry_interval??10})))},[]),Hs=a.useCallback((s,t,r)=>{const p=new Set(r.map(b=>typeof b=="object"&&b!==null&&"name"in b?String(b.name):"").filter(Boolean));if(p.size===0)return{models:s,taskConfig:t};const M=s.filter(b=>!p.has(b.name));if(!t)return{models:M,taskConfig:t};const I={};for(const[b,F]of Object.entries(t))I[b]={...F,model_list:(F?.model_list||[]).filter(B=>!p.has(B))};return{models:M,taskConfig:I}},[]),Xe=a.useCallback(async(s,t="auto")=>{const r=new Set(o.map(b=>b.name)),p=new Set(s.map(b=>b.name)),M=Array.from(r).filter(b=>!p.has(b));if(M.length===0)return{shouldProceed:!0};const I=c.filter(b=>M.includes(b.api_provider));return I.length===0?{shouldProceed:!0}:(ms({isOpen:!0,providersToDelete:M,affectedModels:I,pendingProviders:s,context:t,oldProviders:[...o]}),{shouldProceed:!1})},[o,c]),js=a.useCallback(async(s,t="auto",r=[])=>{const p=s.map(ce),{models:M,taskConfig:I}=Hs(c,n,r);if(t==="auto"&&r.length===0){const b=await ws("api_providers",p);if(!b.success)throw new Error(b.error||"保存提供商失败")}else{const b=await Ze();if(!b.success)throw new Error(b.error||"加载模型配置失败");const F=ss(b.data);F.api_providers=p,F.models=M.map(vs),F.model_task_config=I;const B=await Ns(F);if(!B.success)throw new Error(B.error||"保存模型配置失败")}he(p),g(M),y(M.map(b=>b.name)),i(I),ae(I,M),xe.current=JSON.stringify(p),A(!1),t==="restart"&&await gs()},[ae,c,Hs,he,n]),Qs=a.useCallback(async s=>{if(Ce.current)return;const{shouldProceed:t}=await Xe(s,"auto");if(!t){A(!0);return}try{m(!0),await js(s,"auto")}catch(r){console.error("自动保存提供商失败:",r),D({title:"自动保存失败",description:r.message,variant:"destructive"}),A(!0)}finally{m(!1)}},[Xe,Ce,js,D]);a.useEffect(()=>{if(Ce.current)return;const s=JSON.stringify(o.map(ce));if(xe.current===null){xe.current=s;return}if(s!==xe.current)return A(!0),Z.current&&clearTimeout(Z.current),Z.current=setTimeout(()=>{Qs(o)},2e3),()=>{Z.current&&clearTimeout(Z.current)}},[o,Qs,Ce]);const Ht=a.useCallback(()=>{if(!n)return;const s=new Set(c.map(r=>r.name)),t={};for(const[r,p]of Object.entries(n))p&&p.model_list?t[r]={...p,model_list:p.model_list.filter(M=>s.has(M))}:t[r]=p;i(t),Gs([]),D({title:"清理完成",description:"已删除所有无效的模型引用"})},[n,c,D]),vs=s=>{const t={model_identifier:s.model_identifier,name:s.name,api_provider:s.api_provider,price_in:s.price_in??0,price_out:s.price_out??0,cache:s.cache??!1,cache_price_in:s.cache_price_in??0,visual:s.visual??!1,force_stream_mode:s.force_stream_mode??!1,extra_params:s.extra_params??{}};return s.temperature!=null&&(t.temperature=s.temperature),s.max_tokens!=null&&(t.max_tokens=s.max_tokens),t},Qt=async()=>{try{j(!0),qs(),Z.current&&clearTimeout(Z.current);const s=await Ze();if(!s.success){D({title:"保存失败",description:s.error,variant:"destructive"}),j(!1);return}const t=ss(s.data);t.api_providers=o.map(ce),t.models=c.map(vs),t.model_task_config=n;const r=await Ns(t);if(!r.success){D({title:"保存失败",description:r.error,variant:"destructive"}),j(!1);return}qe(t.models,n),xe.current=JSON.stringify(t.api_providers),A(!1),D({title:"保存成功",description:"正在重启麦麦..."}),await gs()}catch(s){console.error("保存配置失败:",s),D({title:"保存失败",description:s.message,variant:"destructive"}),j(!1)}},Xt=async()=>{try{j(!0),qs(),Z.current&&clearTimeout(Z.current);const s=await Ze();if(!s.success){D({title:"保存失败",description:s.error,variant:"destructive"}),j(!1);return}const t=ss(s.data);t.api_providers=o.map(ce),t.models=c.map(vs),t.model_task_config=n;const r=await Ns(t);if(!r.success){D({title:"保存失败",description:r.error,variant:"destructive"}),j(!1);return}qe(t.models,n),xe.current=JSON.stringify(t.api_providers),A(!1),D({title:"保存成功",description:"模型配置已保存"}),await ps()}catch(s){console.error("保存配置失败:",s),D({title:"保存失败",description:s.message,variant:"destructive"})}finally{j(!1)}},Re=(s,t)=>{ye({}),E(s||{model_identifier:"",name:"",api_provider:x[0]||"",price_in:0,price_out:0,cache:!1,cache_price_in:0,temperature:null,max_tokens:null,visual:!1,force_stream_mode:!1,extra_params:{}}),Ks(!1),De(t),te(!0)},Ye=(s,t)=>{Be(s||{name:"",base_url:"",api_key:"",client_type:"openai",max_retry:2,timeout:30,retry_interval:10}),Ee(t),ke(!0)},{startTour:Yt,isRunning:Xs}=zr({onOpenEditDialog:()=>Re(null,null),onCloseEditDialog:()=>te(!1),onOpenProviderDialog:()=>Ye(null,null),onCloseProviderDialog:()=>ke(!1),onOpenProvidersTab:()=>Ue("providers"),onOpenModelsTab:()=>Ue("models"),onOpenTasksTab:()=>Ue("tasks")}),Zt=(s,t)=>{const r=ce(s);if(t!==null){const p=[...o];p[t]=r,he(p)}else he([...o,r]);ke(!1),Be(null),Ee(null),D({title:t!==null?"提供商已更新":"提供商已添加",description:'配置将在 2 秒后自动保存,或点击右上角"保存配置"按钮立即保存'})},ea=()=>{if(!d)return;const s={};if(d.name?.trim()?c.some((I,b)=>q!==null&&b===q?!1:I.name.trim().toLowerCase()===d.name.trim().toLowerCase())&&(s.name="模型名称已存在,请使用其他名称"):s.name="请输入模型名称",d.api_provider?.trim()||(s.api_provider="请选择 API 提供商"),d.model_identifier?.trim()||(s.model_identifier="请输入模型标识符"),Object.keys(s).length>0){ye(s);return}ye({});const t={model_identifier:d.model_identifier,name:d.name,api_provider:d.api_provider,price_in:d.price_in??0,price_out:d.price_out??0,cache:d.cache??!1,cache_price_in:d.cache_price_in??0,visual:d.visual??!1,force_stream_mode:d.force_stream_mode??!1,extra_params:d.extra_params??{}};d.temperature!=null&&(t.temperature=d.temperature),d.max_tokens!=null&&(t.max_tokens=d.max_tokens);let r,p=null;if(q!==null?(p=c[q].name,r=[...c],r[q]=t):r=[...c,t],g(r),y(r.map(M=>M.name)),p&&p!==t.name&&n){const M=b=>b.map(F=>F===p?t.name:F),I={};for(const[b,F]of Object.entries(n))I[b]={...F,model_list:M(F?.model_list||[])};i(I)}te(!1),E(null),De(null),D({title:q!==null?"模型已更新":"模型已添加",description:'配置将在 2 秒后自动保存,或点击右上角"保存配置"按钮立即保存'})},sa=s=>{if(!s&&d){const t={...d,price_in:d.price_in??0,price_out:d.price_out??0};E(t)}te(s)},Ys=s=>{$e(s),Oe(!0)},ta=()=>{if(me!==null){const s=c.filter((t,r)=>r!==me);g(s),y(s.map(t=>t.name)),ae(n,s),D({title:"删除成功",description:'配置将在 2 秒后自动保存,或点击右上角"保存配置"按钮立即保存'})}Oe(!1),$e(null)},aa=s=>{$(s),l(!0)},ra=async()=>{if(S!==null){const s=o.filter((r,p)=>p!==S),{shouldProceed:t}=await Xe(s,"manual");t&&(he(s),D({title:"删除成功",description:"提供商已从列表中移除"}))}l(!1),$(null)},na=s=>{const t=new Set(J);t.has(s)?t.delete(s):t.add(s),Y(t)},la=()=>{J.size===o.length?Y(new Set):Y(new Set(o.map((s,t)=>t)))},Zs=()=>{if(J.size===0){D({title:"提示",description:"请先选择要删除的提供商",variant:"default"});return}ds(!0)},ia=async()=>{const s=o.filter((r,p)=>!J.has(p)),{shouldProceed:t}=await Xe(s,"manual");if(t){const r=J.size;he(s),Y(new Set),D({title:"批量删除成功",description:`已删除 ${r} 个提供商`})}ds(!1)},ca=async()=>{try{(V.context==="auto"?m:j)(!0),await js(V.pendingProviders,V.context,V.affectedModels),D({title:"删除成功",description:`已删除 ${V.providersToDelete.length} 个提供商和 ${V.affectedModels.length} 个关联模型`}),ms({isOpen:!1,providersToDelete:[],affectedModels:[],pendingProviders:[],context:"auto",oldProviders:[]}),Y(new Set)}catch(s){D({title:"删除失败",description:s.message,variant:"destructive"})}finally{j(!1),m(!1)}},oa=()=>{V.oldProviders.length>0&&he(V.oldProviders),ms({isOpen:!1,providersToDelete:[],affectedModels:[],pendingProviders:[],context:"auto",oldProviders:[]}),A(!1)},et=async s=>{Rs(t=>new Set(t).add(s));try{const t=await Oa(s);if(!t.success){D({title:"测试失败",description:t.error,variant:"destructive"});return}const r=t.data;Ot(p=>new Map(p).set(s,r)),r.network_ok&&r.api_key_valid!==!1?D({title:r.api_key_valid===!0?"连接正常":"网络连接正常",description:`${s} 可以访问 (${r.latency_ms}ms)`}):D({title:r.network_ok?"连接正常但 Key 无效":"连接失败",description:r.error||`${s} API Key 无效或无法连接`,variant:"destructive"})}catch(t){D({title:"测试失败",description:t.message,variant:"destructive"})}finally{Rs(t=>{const r=new Set(t);return r.delete(s),r})}},st=async()=>{for(const s of o)await et(s.name)},da=s=>{const t=new Set(z);t.has(s)?t.delete(s):t.add(s),G(t)},ma=()=>{if(z.size===le.length)G(new Set);else{const s=le.map((t,r)=>c.findIndex(p=>p===le[r]));G(new Set(s))}},tt=()=>{if(z.size===0){D({title:"提示",description:"请先选择要删除的模型",variant:"default"});return}ze(!0)},ua=()=>{const s=z.size,t=c.filter((r,p)=>!z.has(p));g(t),y(t.map(r=>r.name)),ae(n,t),G(new Set),ze(!1),D({title:"批量删除成功",description:`已删除 ${s} 个模型,配置将在 2 秒后自动保存`})},xa=(s,t,r)=>{if(!n)return;if(s==="embedding"&&t==="model_list"&&Array.isArray(r)){const M=Je.current,I=r;if((M.length!==I.length||M.some(F=>!I.includes(F))||I.some(F=>!M.includes(F)))&&M.length>0){Ie.current={field:t,value:r},Ge(!0);return}}const p={...n,[s]:{...n[s],[t]:r}};i(p),ae(p,c),s==="embedding"&&t==="model_list"&&Array.isArray(r)&&(Je.current=[...r])},ha=()=>{if(!n||!Ie.current)return;const{field:s,value:t}=Ie.current,r={...n,embedding:{...n.embedding,[s]:t}};i(r),ae(r,c),s==="model_list"&&Array.isArray(t)&&(Je.current=[...t]),Ie.current=null,Ge(!1),D({title:"嵌入模型已更新",description:"建议重新生成知识库向量以确保最佳匹配精度"})},fa=()=>{Ie.current=null,Ge(!1)},le=c.filter(s=>{if(!L)return!0;const t=L.toLowerCase();return s.name.toLowerCase().includes(t)||s.model_identifier.toLowerCase().includes(t)||s.api_provider.toLowerCase().includes(t)}),pa=Math.ceil(le.length/We),at=le.slice((xs-1)*We,xs*We),ga=()=>{const s=parseInt(Ls);s>=1&&s<=pa&&(Fs(s),$s(""))},rt=s=>n?Object.values(n).some(t=>t?.model_list?.includes(s)):!1;return u?e.jsx(bs,{className:"h-full",children:e.jsx("div",{className:"space-y-4 sm:space-y-6 p-4 sm:p-6",children:e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx("p",{className:"text-muted-foreground",children:"加载中..."})})})}):e.jsx(bs,{className:"h-full",children:e.jsxs("div",{className:"space-y-4 sm:space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl sm:text-3xl font-bold",children:"模型管理与分配"}),e.jsx("p",{className:"text-muted-foreground mt-1 sm:mt-2 text-sm sm:text-base",children:"添加模型并为模型分配功能"})]}),e.jsxs("div",{className:"flex gap-2 w-full sm:w-auto",children:[e.jsx(wr,{trigger:e.jsxs(N,{variant:"outline",size:"sm",className:"flex-1 sm:flex-none",children:[e.jsx(St,{className:"mr-2 h-4 w-4"}),"分享配置"]})}),e.jsxs(N,{onClick:Xt,disabled:R||v||!f||fs,size:"sm",variant:"outline",className:"flex-1 sm:flex-none sm:min-w-[120px]",children:[e.jsx(er,{className:"mr-2 h-4 w-4",strokeWidth:2,fill:"none"}),R?"保存中...":v?"自动保存中...":f?"保存配置":"已保存"]}),e.jsxs(fe,{children:[e.jsx(Ma,{asChild:!0,children:e.jsxs(N,{disabled:R||v||fs,size:"sm",className:"flex-1 sm:flex-none sm:min-w-[120px]",children:[e.jsx(sr,{className:"mr-2 h-4 w-4"}),fs?"重启中...":f?"保存并重启":"重启麦麦"]})}),e.jsxs(pe,{children:[e.jsxs(ge,{children:[e.jsx(je,{children:"确认重启麦麦?"}),e.jsx(ve,{asChild:!0,children:e.jsx("div",{children:e.jsx("p",{children:f?"当前有未保存的配置更改。点击确认将先保存配置,然后重启麦麦使新配置生效。重启过程中麦麦将暂时离线。":"即将重启麦麦主程序。重启过程中麦麦将暂时离线,配置将在重启后生效。"})})})]}),e.jsxs(Ne,{children:[e.jsx(be,{children:"取消"}),e.jsx(_e,{onClick:f?Qt:gs,children:f?"保存并重启":"确认重启"})]})]})]})]})]}),At&&e.jsxs(oe,{children:[e.jsx(rs,{className:"h-4 w-4"}),e.jsxs(de,{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("span",{children:["配置更新后需要",e.jsx("strong",{children:"重启麦麦"}),'才能生效。你可以点击右上角的"保存并重启"按钮一键完成保存和重启。']}),e.jsx(N,{type:"button",variant:"outline",size:"sm",onClick:Jt,children:"我知道了"})]})]}),Us.length>0&&e.jsxs(oe,{variant:"destructive",children:[e.jsx(Fe,{className:"h-4 w-4"}),e.jsxs(de,{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("strong",{children:"检测到无效的模型引用"}),e.jsx("div",{className:"mt-2 space-y-1",children:Us.map(({taskName:s,invalidModels:t})=>e.jsxs("div",{className:"text-sm",children:[e.jsx("strong",{children:s})," 引用了不存在的模型: ",t.join(", ")]},s))})]}),e.jsx(N,{variant:"outline",size:"sm",className:"shrink-0 bg-background hover:bg-accent",onClick:Ht,children:"一键清理"})]})]}),Js.length>0&&e.jsxs(oe,{variant:"default",className:"border-yellow-500/50 bg-yellow-500/10",children:[e.jsx(Fe,{className:"h-4 w-4 text-yellow-600"}),e.jsxs(de,{children:[e.jsx("strong",{className:"text-yellow-600",children:"以下任务未配置模型"}),e.jsxs("div",{className:"mt-2 text-sm",children:[Js.join("、")," 还未分配模型,这些功能将无法正常工作。"]})]})]}),Lt&&e.jsxs(oe,{className:"hidden lg:flex border-primary/30 bg-primary/5 cursor-pointer hover:bg-primary/10 transition-colors",onClick:Yt,children:[e.jsx(tr,{className:"h-4 w-4 text-primary"}),e.jsxs(de,{className:"flex items-center justify-between",children:[e.jsxs("span",{children:[e.jsx("strong",{className:"text-primary",children:"新手引导:"}),"不知道如何配置模型?点击这里开始学习如何为麦麦的组件分配模型。"]}),e.jsxs("div",{className:"ml-4 flex shrink-0 items-center gap-2",children:[e.jsx(N,{variant:"outline",size:"sm",children:"开始引导"}),e.jsx(N,{type:"button",variant:"ghost",size:"sm",onClick:qt,children:"关闭"})]})]})]}),e.jsxs(ft,{value:It,onValueChange:Ue,className:"w-full",children:[e.jsxs(pt,{className:"grid w-full grid-cols-3",children:[e.jsx(Pe,{value:"providers",className:"w-full","data-tour":"providers-tab-trigger",children:"模型厂商设置"}),e.jsx(Pe,{value:"models",className:"w-full","data-tour":"models-tab-trigger",children:"添加模型"}),e.jsx(Pe,{value:"tasks",className:"w-full","data-tour":"tasks-tab-trigger",children:"为模型分配功能"})]}),e.jsxs(Me,{value:"providers",className:"space-y-4 mt-0",children:[e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"管理 AI 模型厂商的 API 配置"}),e.jsxs("div",{className:"hidden",children:[J.size>0&&e.jsxs(N,{onClick:Zs,size:"sm",variant:"destructive",className:"w-full sm:w-auto",children:[e.jsx(Te,{className:"mr-2 h-4 w-4",strokeWidth:2,fill:"none"}),"批量删除 (",J.size,")"]}),e.jsxs(N,{onClick:st,size:"sm",variant:"outline",className:"w-full sm:w-auto",disabled:o.length===0||ue.size>0,children:[e.jsx(mt,{className:"mr-2 h-4 w-4"}),ue.size>0?`测试中 (${ue.size})`:"测试全部"]}),e.jsxs(N,{onClick:()=>Ye(null,null),size:"sm",variant:"outline",className:"w-full sm:w-auto","data-tour":"add-provider-button",children:[e.jsx(es,{className:"mr-2 h-4 w-4",strokeWidth:2,fill:"none"}),"添加提供商"]})]})]}),e.jsx(Ra,{providers:o,testingProviders:ue,testResults:Dt,selectedProviders:J,toolbarActions:e.jsxs(e.Fragment,{children:[J.size>0&&e.jsxs(N,{onClick:Zs,size:"sm",variant:"destructive",className:"w-full sm:w-auto",children:[e.jsx(Te,{className:"mr-2 h-4 w-4",strokeWidth:2,fill:"none"}),e.jsxs("span",{className:"text-sm",children:["批量删除 (",J.size,")"]})]}),e.jsxs(N,{onClick:st,size:"sm",variant:"outline",className:"w-full sm:w-auto",disabled:o.length===0||ue.size>0,children:[e.jsx(mt,{className:"mr-2 h-4 w-4"}),e.jsx("span",{className:"text-sm",children:ue.size>0?`测试中 (${ue.size})`:"测试全部连接"})]}),e.jsxs(N,{onClick:()=>Ye(null,null),size:"sm",variant:"outline",className:"w-full sm:w-auto","data-tour":"add-provider-button",children:[e.jsx(es,{className:"mr-2 h-4 w-4",strokeWidth:2,fill:"none"}),e.jsx("span",{className:"text-sm",children:"添加厂商"})]})]}),onEdit:Ye,onDelete:aa,onTest:et,onToggleSelect:na,onToggleSelectAll:la})]}),e.jsxs(Me,{value:"models",className:"space-y-4 mt-0",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center gap-2",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"配置可用的模型列表"}),e.jsxs("div",{className:"hidden",children:[z.size>0&&e.jsxs(N,{onClick:tt,size:"sm",variant:"destructive",className:"w-full sm:w-auto",children:[e.jsx(Te,{className:"mr-2 h-4 w-4",strokeWidth:2,fill:"none"}),"批量删除 (",z.size,")"]}),e.jsxs(N,{onClick:()=>Re(null,null),size:"sm",variant:"outline",className:"w-full sm:w-auto","data-tour":"add-model-button",children:[e.jsx(es,{className:"mr-2 h-4 w-4",strokeWidth:2,fill:"none"}),"添加模型"]})]})]}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"relative w-full sm:flex-1 sm:max-w-sm",children:[e.jsx(ar,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(W,{placeholder:"搜索模型名称、标识符或提供商...",value:L,onChange:s=>U(s.target.value),className:"pl-9"})]}),L&&e.jsxs("p",{className:"text-sm text-muted-foreground whitespace-nowrap",children:["找到 ",le.length," 个结果"]}),e.jsxs("div",{className:"flex w-full flex-col gap-2 sm:ml-auto sm:w-auto sm:flex-row sm:items-center sm:justify-end",children:[z.size>0&&e.jsxs(N,{onClick:tt,size:"sm",variant:"destructive",className:"w-full sm:w-auto",children:[e.jsx(Te,{className:"mr-2 h-4 w-4",strokeWidth:2,fill:"none"}),e.jsxs("span",{className:"text-sm",children:["批量删除 (",z.size,")"]})]}),e.jsxs(N,{onClick:()=>Re(null,null),size:"sm",variant:"outline",className:"w-full sm:w-auto","data-tour":"add-model-button",children:[e.jsx(es,{className:"mr-2 h-4 w-4",strokeWidth:2,fill:"none"}),e.jsx("span",{className:"text-sm",children:"添加模型"})]})]})]}),e.jsx(Tr,{paginatedModels:at,allModels:c,onEdit:Re,onDelete:Ys,isModelUsed:rt,searchQuery:L}),e.jsx(Pr,{paginatedModels:at,allModels:c,filteredModels:le,selectedModels:z,onEdit:Re,onDelete:Ys,onToggleSelection:da,onToggleSelectAll:ma,isModelUsed:rt,searchQuery:L}),e.jsx(Or,{page:xs,pageSize:We,totalItems:le.length,jumpToPage:Ls,onPageChange:Fs,onPageSizeChange:zt,onJumpToPageChange:$s,onJumpToPage:ga,onSelectionClear:()=>G(new Set)})]}),e.jsxs(Me,{value:"tasks",className:"space-y-6 mt-0",children:[e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"为不同的任务配置使用的模型和参数"}),us?.fields.some(s=>s.advanced)&&e.jsx(N,{type:"button",variant:hs?"default":"outline",size:"sm",onClick:()=>Rt(s=>!s),children:"高级设置"})]}),n&&us&&e.jsx("div",{className:"grid gap-4 sm:gap-6",children:us.fields.filter(s=>s.type==="object"&&(hs||!s.advanced)).map((s,t)=>e.jsx(Sr,{title:Da(s,T.language),description:s.description,taskConfig:n[s.name]??{model_list:[]},modelNames:_,onChange:(r,p)=>xa(s.name,r,p),advanced:s.advanced,showAdvancedSettings:hs,...t===0?{dataTour:"task-model-select"}:{}},s.name))})]})]}),e.jsx(Aa,{open:is,onOpenChange:ke,editingProvider:cs,editingIndex:os,providers:o,onSave:Zt,tourState:{isRunning:Xs}}),e.jsx(fe,{open:Ke,onOpenChange:l,children:e.jsxs(pe,{children:[e.jsxs(ge,{children:[e.jsx(je,{children:"确认删除提供商"}),e.jsxs(ve,{children:['确定要删除提供商"',S!==null?o[S]?.name:"",'"吗? 如果该提供商下存在模型,确认时会提示一并处理关联模型。']})]}),e.jsxs(Ne,{children:[e.jsx(be,{children:"取消"}),e.jsx(_e,{onClick:ra,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"删除"})]})]})}),e.jsx(fe,{open:Mt,onOpenChange:ds,children:e.jsxs(pe,{children:[e.jsxs(ge,{children:[e.jsx(je,{children:"确认批量删除提供商"}),e.jsxs(ve,{children:["确定要删除选中的 ",J.size," 个提供商吗? 如果这些提供商下存在模型,确认时会提示一并处理关联模型。"]})]}),e.jsxs(Ne,{children:[e.jsx(be,{children:"取消"}),e.jsx(_e,{onClick:ia,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"批量删除"})]})]})}),e.jsx(fe,{open:V.isOpen,children:e.jsxs(pe,{children:[e.jsxs(ge,{children:[e.jsxs(je,{className:"flex items-center gap-2",children:[e.jsx(Fe,{className:"h-5 w-5 text-amber-500"}),"删除提供商会同时移除关联模型"]}),e.jsx(ve,{asChild:!0,children:e.jsxs("div",{className:"space-y-3 text-sm",children:[e.jsxs("p",{children:["将删除 ",V.providersToDelete.length," 个提供商,并移除"," ",V.affectedModels.length," 个使用这些提供商的模型。"]}),V.affectedModels.length>0&&e.jsxs("div",{className:"rounded-md bg-muted p-3 text-muted-foreground",children:[V.affectedModels.slice(0,8).map(s=>e.jsxs("div",{children:[s.name," (",s.api_provider,")"]},s.name)),V.affectedModels.length>8&&e.jsxs("div",{children:["还有 ",V.affectedModels.length-8," 个模型..."]})]}),e.jsx("p",{className:"font-medium text-foreground",children:"关联模型会从模型列表和任务分配中移除,此操作无法撤销。"})]})})]}),e.jsxs(Ne,{children:[e.jsx(be,{onClick:oa,children:"取消"}),e.jsx(_e,{onClick:ca,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"确认删除"})]})]})}),e.jsx(ks,{open:se,onOpenChange:sa,children:e.jsxs(ys,{className:"max-w-[95vw] sm:max-w-2xl","data-tour":"model-dialog",preventOutsideClose:Xs,confirmOnEnter:!0,children:[e.jsxs(Cs,{children:[e.jsx(Ss,{children:q!==null?"编辑模型":"添加模型"}),e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsx(Ts,{children:"配置模型的基本信息和参数"}),e.jsx(N,{type:"button",variant:Bs?"default":"outline",size:"sm",onClick:()=>Ks(s=>!s),className:"self-start sm:self-auto",children:"高级设置"})]})]}),e.jsx(ht,{children:e.jsxs("div",{className:"grid gap-4 py-4",children:[e.jsxs("div",{className:"grid gap-2","data-tour":"model-name-input",children:[e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[e.jsx(O,{htmlFor:"model_name",className:`sm:w-28 sm:flex-shrink-0 ${K.name?"text-destructive":""}`,children:"模型名称 *"}),e.jsx(W,{id:"model_name",value:d?.name||"",onChange:s=>{E(t=>t?{...t,name:s.target.value}:null),K.name&&ye(t=>({...t,name:void 0}))},placeholder:"例如: qwen3-30b",className:`sm:flex-1 ${K.name?"border-destructive focus-visible:ring-destructive":""}`})]}),K.name?e.jsx("p",{className:"text-xs text-destructive sm:pl-28",children:K.name}):null]}),e.jsxs("div",{className:"grid gap-2","data-tour":"model-provider-select",children:[e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[e.jsx(O,{htmlFor:"api_provider",className:`sm:w-28 sm:flex-shrink-0 ${K.api_provider?"text-destructive":""}`,children:"API 提供商 *"}),e.jsxs(Ms,{value:d?.api_provider||"",onValueChange:s=>{E(t=>t?{...t,api_provider:s}:null),Gt(),K.api_provider&&ye(t=>({...t,api_provider:void 0}))},children:[e.jsx(Ds,{id:"api_provider",className:`sm:flex-1 ${K.api_provider?"border-destructive focus-visible:ring-destructive":""}`,children:e.jsx(Os,{placeholder:"选择提供商"})}),e.jsx(Es,{children:x.map(s=>e.jsx(zs,{value:s,children:s},s))})]})]}),K.api_provider&&e.jsx("p",{className:"text-xs text-destructive sm:pl-28",children:K.api_provider})]}),e.jsxs("div",{className:"grid gap-2","data-tour":"model-identifier-input",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(O,{htmlFor:"model_identifier",className:K.model_identifier?"text-destructive":"",children:"模型标识符 *"}),ne?.modelFetcher&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ee,{variant:"secondary",className:"text-xs",children:ne.display_name}),e.jsx(N,{variant:"ghost",size:"sm",className:"h-6 px-2",onClick:()=>d?.api_provider&&Qe(d.api_provider,!0),disabled:He,children:He?e.jsx(as,{className:"h-3 w-3 animate-spin"}):e.jsx(rr,{className:"h-3 w-3"})})]})]}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[ne?.modelFetcher&&e.jsxs(wt,{open:Vs,onOpenChange:Ws,children:[e.jsx(kt,{asChild:!0,children:e.jsxs(N,{variant:"outline",role:"combobox","aria-expanded":Vs,className:"w-full justify-between font-normal sm:w-[46%]",disabled:He||!!re,children:[He?e.jsxs("span",{className:"flex items-center gap-2 text-muted-foreground",children:[e.jsx(as,{className:"h-4 w-4 animate-spin"}),"正在获取模型列表..."]}):re?e.jsx("span",{className:"text-muted-foreground text-sm",children:"手动填写"}):d?.model_identifier?e.jsx("span",{className:"truncate",children:d.model_identifier}):e.jsx("span",{className:"text-muted-foreground",children:"搜索或选择模型..."}),e.jsx(Tt,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e.jsx(yt,{className:"p-0",align:"start",style:{width:"var(--radix-popover-trigger-width)"},children:e.jsxs(gt,{children:[e.jsx(jt,{placeholder:"搜索模型..."}),e.jsx(bs,{className:"h-[300px]",children:e.jsxs(vt,{className:"max-h-none overflow-visible",children:[e.jsx(Nt,{children:re?e.jsxs("div",{className:"py-4 px-2 text-center space-y-2",children:[e.jsx("p",{className:"text-sm text-destructive",children:re}),!re.includes("API Key")&&e.jsx(N,{variant:"link",size:"sm",onClick:()=>d?.api_provider&&Qe(d.api_provider,!0),children:"重试"})]}):"未找到匹配的模型"}),e.jsx(bt,{heading:"可用模型",children:Ut.map(s=>e.jsxs(_t,{value:s.id,onSelect:()=>{E(t=>t?{...t,model_identifier:s.id}:null),Ws(!1)},children:[e.jsx(Is,{className:`mr-2 h-4 w-4 ${d?.model_identifier===s.id?"opacity-100":"opacity-0"}`}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{children:s.id}),s.name!==s.id&&e.jsx("span",{className:"text-xs text-muted-foreground",children:s.name})]})]},s.id))})]})})]})})]}),e.jsx(W,{id:"model_identifier",value:d?.model_identifier||"",onChange:s=>{E(t=>t?{...t,model_identifier:s.target.value}:null),K.model_identifier&&ye(t=>({...t,model_identifier:void 0}))},placeholder:ne?.modelFetcher?"手动输入模型标识符":"Qwen/Qwen3-30B-A3B-Instruct-2507",className:`${ne?.modelFetcher?"sm:flex-1":"w-full"} ${K.model_identifier?"border-destructive focus-visible:ring-destructive":""}`})]}),K.model_identifier&&e.jsx("p",{className:"text-xs text-destructive",children:K.model_identifier}),re&&ne?.modelFetcher&&!K.model_identifier&&e.jsxs(oe,{variant:"destructive",className:"mt-2 py-2",children:[e.jsx(rs,{className:"h-4 w-4"}),e.jsx(de,{className:"text-xs",children:re})]}),!K.model_identifier&&e.jsx("p",{className:"text-xs text-muted-foreground",children:re?'请手动输入模型标识符,或前往"模型厂商设置"检查 API Key':ne?.modelFetcher?`已识别为 ${ne.display_name},支持自动获取模型列表`:"API 提供商提供的模型 ID"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Ae,{id:"model_visual",checked:d?.visual||!1,onCheckedChange:s=>E(t=>t?{...t,visual:s}:null)}),e.jsx(O,{htmlFor:"model_visual",className:"cursor-pointer",children:"启用视觉"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(O,{htmlFor:"price_in",className:"w-36 shrink-0",children:"输入价格 (¥/M token)"}),e.jsx(W,{id:"price_in",type:"number",step:"0.1",min:"0",value:d?.price_in??"",onChange:s=>{const t=s.target.value===""?null:parseFloat(s.target.value);E(r=>r?{...r,price_in:t}:null)},placeholder:"默认: 0",className:"flex-1"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(O,{htmlFor:"price_out",className:"w-36 shrink-0",children:"输出价格 (¥/M token)"}),e.jsx(W,{id:"price_out",type:"number",step:"0.1",min:"0",value:d?.price_out??"",onChange:s=>{const t=s.target.value===""?null:parseFloat(s.target.value);E(r=>r?{...r,price_out:t}:null)},placeholder:"默认: 0",className:"flex-1"})]})]}),Bs&&e.jsxs("div",{className:"rounded-lg border border-amber-200 bg-amber-50/50 p-4 space-y-4 dark:border-amber-500/40 dark:bg-amber-500/10",children:[e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(O,{htmlFor:"model_cache",className:"cursor-pointer",children:"支持缓存计费"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"开启后,命中缓存的输入 token 会按缓存输入价格统计"})]}),e.jsx(Ae,{id:"model_cache",checked:d?.cache||!1,onCheckedChange:s=>E(t=>t?{...t,cache:s}:null)})]}),d?.cache&&e.jsxs("div",{className:"flex items-center gap-3 border-t pt-4",children:[e.jsx(O,{htmlFor:"cache_price_in",className:"w-40 shrink-0",children:"缓存输入价格 (¥/M token)"}),e.jsx(W,{id:"cache_price_in",type:"number",step:"0.1",min:"0",value:d?.cache_price_in??"",onChange:s=>{const t=s.target.value===""?null:parseFloat(s.target.value);E(r=>r?{...r,cache_price_in:t}:null)},placeholder:"默认: 0",className:"flex-1"})]}),e.jsxs("div",{className:"flex items-center justify-between gap-4 border-t pt-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(O,{htmlFor:"force_stream_mode",className:"cursor-pointer",children:"强制流式输出模式"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"用于必须通过流式响应返回内容的模型"})]}),e.jsx(Ae,{id:"force_stream_mode",checked:d?.force_stream_mode||!1,onCheckedChange:s=>E(t=>t?{...t,force_stream_mode:s}:null)})]})]}),e.jsxs("div",{className:"rounded-lg border p-4 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(O,{htmlFor:"enable_model_temperature",className:"cursor-pointer",children:"自定义模型温度"}),e.jsx(it,{content:e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"font-medium",children:"什么是温度(Temperature)?"}),e.jsx("p",{children:"温度控制模型输出的随机性和创造性:"}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-xs",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"低温度(0.1-0.3)"}),":更确定、更保守的输出,适合事实性任务"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"中温度(0.5-0.7)"}),":平衡创造性与可控性"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"高温度(0.8-1.0)"}),":更有创意、更多样化的输出"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"极高温度(1.0-2.0)"}),":极度随机,可能产生不可预测的结果"]})]})]}),side:"right",maxWidth:"400px"})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"启用后将覆盖「为模型分配功能」中的任务温度配置"})]}),e.jsx(Ae,{id:"enable_model_temperature",checked:d?.temperature!=null,onCheckedChange:s=>{E(s?t=>t?{...t,temperature:.7}:null:t=>t?{...t,temperature:null}:null)}})]}),d?.temperature!=null&&e.jsxs("div",{className:"space-y-3 pt-2 border-t",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx(O,{className:"text-sm",children:"温度值"}),e.jsx(W,{type:"number",value:d.temperature,onChange:s=>{const t=parseFloat(s.target.value);!isNaN(t)&&t>=0&&t<=2&&E(r=>r?{...r,temperature:t}:null)},onBlur:s=>{const t=parseFloat(s.target.value);isNaN(t)||t<0?E(r=>r?{...r,temperature:0}:null):t>2&&E(r=>r?{...r,temperature:2}:null)},step:.01,min:0,max:2,className:"w-20 h-8 text-sm text-right tabular-nums"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-xs text-muted-foreground tabular-nums",children:"0"}),e.jsx(Ct,{value:[d.temperature],onValueChange:s=>E(t=>t?{...t,temperature:s[0]}:null),min:0,max:2,step:.05,className:"flex-1"}),e.jsx("span",{className:"text-xs text-muted-foreground tabular-nums",children:"2"})]}),d.temperature>1&&e.jsxs(oe,{className:"bg-amber-500/10 border-amber-500/20 [&>svg+div]:translate-y-0",children:[e.jsx(Fe,{className:"h-4 w-4 text-amber-500"}),e.jsx(de,{className:"text-xs text-amber-600 dark:text-amber-400",children:"温度 > 1 会产生更随机、更不可预测的输出,请谨慎使用"})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"较低(0.1-0.5)产生确定输出,中等(0.5-1.0)平衡创造性,较高(1.0-2.0)产生极度随机输出"})]})]}),e.jsxs("div",{className:"rounded-lg border p-4 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(O,{htmlFor:"enable_model_max_tokens",className:"cursor-pointer",children:"自定义最大 Token"}),e.jsx(it,{content:e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"font-medium",children:"什么是最大 Token?"}),e.jsx("p",{children:"控制模型单次回复的最大长度。1 token ≈ 0.75 个英文单词或 0.5 个中文字符。"}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 text-xs",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"较小值(512-1024)"}),":简短回复,节省成本"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"中等值(2048-4096)"}),":正常对话长度"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"较大值(8192+)"}),":长文本生成,成本较高"]})]})]}),side:"right",maxWidth:"400px"})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"启用后将覆盖「为模型分配功能」中的任务最大 Token 配置"})]}),e.jsx(Ae,{id:"enable_model_max_tokens",checked:d?.max_tokens!=null,onCheckedChange:s=>{E(s?t=>t?{...t,max_tokens:2048}:null:t=>t?{...t,max_tokens:null}:null)}})]}),d?.max_tokens!=null&&e.jsxs("div",{className:"space-y-2 pt-2 border-t",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(O,{className:"text-sm",children:"最大 Token 数"}),e.jsx(W,{type:"number",min:"1",max:"128000",value:d.max_tokens,onChange:s=>{const t=parseInt(s.target.value);!isNaN(t)&&t>=1&&E(r=>r?{...r,max_tokens:t}:null)},className:"w-28 h-8 text-sm"})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"限制模型单次输出的最大 token 数量,不同模型支持的上限不同"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(O,{className:"text-sm font-medium",children:"额外参数"}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs(N,{type:"button",variant:"outline",size:"sm",className:"flex-1 justify-start h-9",onClick:()=>we(!0),children:[e.jsx(nr,{className:"h-4 w-4 mr-2"}),Object.keys(d?.extra_params||{}).length>0?e.jsxs("span",{children:["已配置 ",Object.keys(d?.extra_params||{}).length," 个参数"]}):e.jsx("span",{className:"text-muted-foreground",children:"未配置额外参数"})]})}),Object.keys(d?.extra_params||{}).length>0&&e.jsxs("div",{className:"text-xs text-muted-foreground px-1",children:[Object.keys(d?.extra_params||{}).slice(0,3).map(s=>e.jsx("span",{className:"inline-block mr-2",children:e.jsx("code",{className:"px-1.5 py-0.5 bg-muted rounded",children:s})},s)),Object.keys(d?.extra_params||{}).length>3&&e.jsx("span",{children:"..."})]})]})]})}),e.jsxs(Ps,{children:[e.jsx(N,{variant:"outline",onClick:()=>te(!1),"data-tour":"model-cancel-button",children:"取消"}),e.jsx(N,{"data-dialog-action":"confirm",onClick:ea,"data-tour":"model-save-button",children:"保存"})]})]})}),e.jsx(fe,{open:ls,onOpenChange:Oe,children:e.jsxs(pe,{children:[e.jsxs(ge,{children:[e.jsx(je,{children:"确认删除"}),e.jsxs(ve,{children:['确定要删除模型 "',me!==null?c[me]?.name:"",'" 吗? 此操作无法撤销。']})]}),e.jsxs(Ne,{children:[e.jsx(be,{children:"取消"}),e.jsx(_e,{onClick:ta,children:"删除"})]})]})}),e.jsx(fe,{open:Ve,onOpenChange:ze,children:e.jsxs(pe,{children:[e.jsxs(ge,{children:[e.jsx(je,{children:"确认批量删除"}),e.jsxs(ve,{children:["确定要删除选中的 ",z.size," 个模型吗? 此操作无法撤销。"]})]}),e.jsxs(Ne,{children:[e.jsx(be,{children:"取消"}),e.jsx(_e,{onClick:ua,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"批量删除"})]})]})}),e.jsx(fe,{open:Bt,onOpenChange:Ge,children:e.jsxs(pe,{children:[e.jsxs(ge,{children:[e.jsxs(je,{className:"flex items-center gap-2",children:[e.jsx(Fe,{className:"h-5 w-5 text-amber-500"}),"更换嵌入模型警告"]}),e.jsx(ve,{asChild:!0,children:e.jsxs("div",{className:"space-y-3 text-sm",children:[e.jsxs("p",{children:[e.jsx("strong",{className:"text-foreground",children:"注意:"}),"更换嵌入模型可能会影响知识库的匹配精度!"]}),e.jsxs("ul",{className:"space-y-2 ml-4 list-disc text-muted-foreground",children:[e.jsx("li",{children:"不同的嵌入模型会产生不同的向量表示"}),e.jsx("li",{children:"这可能导致现有知识库的检索结果不准确"}),e.jsx("li",{children:"建议更换嵌入模型后重新生成所有知识库的向量"})]}),e.jsx("p",{className:"text-foreground font-medium",children:"确定要更换嵌入模型吗?"})]})})]}),e.jsxs(Ne,{children:[e.jsx(be,{onClick:fa,children:"取消"}),e.jsx(_e,{onClick:ha,className:"bg-amber-600 hover:bg-amber-700",children:"确认更换"})]})]})}),e.jsx(Nr,{open:X,onOpenChange:we,value:d?.extra_params||{},onChange:s=>E(t=>t?{...t,extra_params:s}:null)}),e.jsx($a,{})]})})}export{ln as ModelConfigPage}; diff --git a/dashboard/dist/assets/model-presets-C1oJlh_V.js b/dashboard/dist/assets/model-presets-C1oJlh_V.js new file mode 100644 index 00000000..ea0ac793 --- /dev/null +++ b/dashboard/dist/assets/model-presets-C1oJlh_V.js @@ -0,0 +1 @@ +import{j as s}from"./router-zNjPR4CY.js";import{S as e,C as a,b as l,d as r,e as c,f as t}from"./index-CuOHsLf7.js";import{b1 as m,P as i}from"./icons-DTcdLw9j.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";function f(){return s.jsxs("div",{className:"h-[calc(100vh-4rem)] flex flex-col p-4 sm:p-6",children:[s.jsx("div",{className:"mb-4 sm:mb-6",children:s.jsx("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:s.jsxs("div",{children:[s.jsxs("h1",{className:"text-2xl sm:text-3xl font-bold flex items-center gap-2",children:[s.jsx(m,{className:"h-8 w-8",strokeWidth:2}),"模型分配预设市场"]}),s.jsx("p",{className:"text-muted-foreground mt-1 text-sm sm:text-base",children:"浏览和下载社区共享的模型分配预设配置"})]})})}),s.jsx(e,{className:"flex-1",children:s.jsx("div",{className:"flex items-center justify-center h-[calc(100vh-12rem)]",children:s.jsxs(a,{className:"max-w-2xl w-full border-dashed",children:[s.jsxs(l,{className:"text-center",children:[s.jsx("div",{className:"flex justify-center mb-4",children:s.jsx(i,{className:"h-16 w-16 text-muted-foreground"})}),s.jsx(r,{className:"text-2xl",children:"功能开发中"}),s.jsx(c,{className:"text-base",children:"模型分配预设市场功能正在开发中,敬请期待!"})]}),s.jsx(t,{children:s.jsxs("div",{className:"space-y-3 text-sm text-muted-foreground",children:[s.jsx("p",{className:"font-medium text-foreground",children:"📦 即将推出的功能:"}),s.jsxs("ul",{className:"space-y-2 ml-6",children:[s.jsxs("li",{className:"flex items-start",children:[s.jsx("span",{className:"mr-2",children:"•"}),s.jsx("span",{children:"浏览社区共享的模型分配预设配置"})]}),s.jsxs("li",{className:"flex items-start",children:[s.jsx("span",{className:"mr-2",children:"•"}),s.jsx("span",{children:"一键下载和应用预设配置"})]}),s.jsxs("li",{className:"flex items-start",children:[s.jsx("span",{className:"mr-2",children:"•"}),s.jsx("span",{children:"分享自己的模型分配方案"})]}),s.jsxs("li",{className:"flex items-start",children:[s.jsx("span",{className:"mr-2",children:"•"}),s.jsx("span",{children:"预设配置评分和评论系统"})]}),s.jsxs("li",{className:"flex items-start",children:[s.jsx("span",{className:"mr-2",children:"•"}),s.jsx("span",{children:"根据使用场景智能推荐配置"})]})]})]})})]})})})]})}export{f as ModelPresetsPage}; diff --git a/dashboard/dist/assets/pack-api-NsQx-ed4.js b/dashboard/dist/assets/pack-api-NsQx-ed4.js new file mode 100644 index 00000000..2600eddd --- /dev/null +++ b/dashboard/dist/assets/pack-api-NsQx-ed4.js @@ -0,0 +1,5 @@ +import{x as u}from"./index-CuOHsLf7.js";const m="https://maibot-plugin-stats.maibot-webui.workers.dev";async function y(e){const s=new URLSearchParams;e?.status&&s.set("status",e.status),e?.page&&s.set("page",e.page.toString()),e?.page_size&&s.set("page_size",e.page_size.toString()),e?.search&&s.set("search",e.search),e?.sort_by&&s.set("sort_by",e.sort_by),e?.sort_order&&s.set("sort_order",e.sort_order);const t=await fetch(`${m}/pack?${s.toString()}`);if(!t.ok)throw new Error(`获取 Pack 列表失败: ${t.status}`);return t.json()}async function v(e){const s=await fetch(`${m}/pack/${e}`);if(!s.ok)throw new Error(`获取 Pack 失败: ${s.status}`);const t=await s.json();if(!t.success)throw new Error(t.error||"获取 Pack 失败");return t.pack}async function P(e){const t=await(await fetch(`${m}/pack`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();if(!t.success)throw new Error(t.error||"创建 Pack 失败");return t}async function $(e,s){await fetch(`${m}/pack/download`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pack_id:e,user_id:s})})}async function b(e,s){const r=await(await fetch(`${m}/pack/like`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pack_id:e,user_id:s})})).json();if(!r.success)throw new Error(r.error||"点赞失败");return{likes:r.likes,liked:r.liked}}async function C(e,s){return(await(await fetch(`${m}/pack/like/check?pack_id=${e}&user_id=${s}`)).json()).liked||!1}async function S(e){const s=await u("/api/webui/config/model");if(!s.ok)throw new Error("获取当前模型配置失败");const t=await s.json(),r=t.config||t;console.log("=== Pack Conflict Detection ==="),console.log("Pack providers:",e.providers),console.log("Local providers:",r.api_providers);const a={existing_providers:[],new_providers:[],conflicting_models:[]},p=r.api_providers||[];for(const i of e.providers){console.log(` +Checking pack provider: ${i.name}`),console.log(` Pack URL: ${i.base_url}`),console.log(` Normalized: ${k(i.base_url)}`);const c=p.filter(o=>{const l=k(o.base_url),d=k(i.base_url);return console.log(` Comparing with local "${o.name}": ${o.base_url}`),console.log(` Local normalized: ${l}`),console.log(` Match: ${l===d}`),l===d});c.length>0?(console.log(` ✓ Matched with ${c.length} local provider(s):`,c.map(o=>o.name).join(", ")),a.existing_providers.push({pack_provider:i,local_providers:c.map(o=>({name:o.name,base_url:o.base_url}))})):(console.log(" ✗ No match found - will need API key"),a.new_providers.push(i))}const n=r.models||[];console.log(` +=== Model Conflict Detection ===`);for(const i of e.models){const c=n.find(o=>o.name===i.name);c&&(console.log(`Model conflict: ${i.name}`),a.conflicting_models.push({pack_model:i.name,local_model:c.name}))}return console.log(` +=== Detection Summary ===`),console.log(`Existing providers: ${a.existing_providers.length}`),console.log(`New providers: ${a.new_providers.length}`),console.log(`Conflicting models: ${a.conflicting_models.length}`),console.log(`=========================== +`),a}async function x(e,s,t,r){const a=await u("/api/webui/config/model");if(!a.ok)throw new Error("获取当前模型配置失败");const p=await a.json(),n=p.config||p;if(s.apply_providers){const c=s.selected_providers?e.providers.filter(o=>s.selected_providers.includes(o.name)):e.providers;for(const o of c){if(t[o.name])continue;const l=r[o.name];if(!l)throw new Error(`提供商 "${o.name}" 缺少 API Key`);const d={...o,api_key:l},f=n.api_providers.findIndex(g=>g.name===o.name);f>=0?n.api_providers[f]=d:n.api_providers.push(d)}}if(s.apply_models){const c=s.selected_models?e.models.filter(o=>s.selected_models.includes(o.name)):e.models;for(const o of c){const l=t[o.api_provider]||o.api_provider,d={...o,api_provider:l},f=n.models.findIndex(g=>g.name===o.name);f>=0?n.models[f]=d:n.models.push(d)}}if(s.apply_task_config){const c=s.selected_tasks||Object.keys(e.task_config);for(const o of c){const l=e.task_config[o];if(!l)continue;const d=new Set(s.selected_models||e.models.map(_=>_.name)),f=l.model_list.filter(_=>d.has(_));if(f.length===0)continue;const g={...l,model_list:f};if(s.task_mode==="replace")n.model_task_config[o]=g;else{const _=n.model_task_config[o];if(_){const w=[...new Set([..._.model_list,...f])];n.model_task_config[o]={..._,model_list:w}}else n.model_task_config[o]=g}}}if(!(await u("/api/webui/config/model",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})).ok)throw new Error("保存配置失败")}async function j(e){const s=await u("/api/webui/config/model");if(!s.ok)throw new Error("获取当前模型配置失败");const t=await s.json();if(!t.success||!t.config)throw new Error("获取配置失败");const r=t.config;let a=(r.api_providers||[]).map(o=>({name:o.name,base_url:o.base_url,client_type:o.client_type,max_retry:o.max_retry,timeout:o.timeout,retry_interval:o.retry_interval}));e.selectedProviders&&(a=a.filter(o=>e.selectedProviders.includes(o.name)));let p=r.models||[];e.selectedModels&&(p=p.filter(o=>e.selectedModels.includes(o.name)));const n={},i=r.model_task_config||{},c=e.selectedTasks||Object.keys(i);for(const o of c)i[o]&&(n[o]=i[o]);return{providers:a,models:p,task_config:n}}function k(e){try{const s=new URL(e);return`${s.protocol}//${s.host}${s.pathname}`.replace(/\/$/,"").toLowerCase()}catch{return e.toLowerCase().replace(/\/$/,"")}}function E(){const e="maibot_pack_user_id";let s=localStorage.getItem(e);return s||(s="pack_user_"+Math.random().toString(36).substring(2,15),localStorage.setItem(e,s)),s}export{C as a,v as b,P as c,S as d,j as e,x as f,E as g,y as l,$ as r,b as t}; diff --git a/dashboard/dist/assets/pack-detail-BOBdaAtu.js b/dashboard/dist/assets/pack-detail-BOBdaAtu.js new file mode 100644 index 00000000..8cbeab33 --- /dev/null +++ b/dashboard/dist/assets/pack-detail-BOBdaAtu.js @@ -0,0 +1 @@ +import{i as ue,r as i,j as e}from"./router-zNjPR4CY.js";import{aG as ve,a4 as w,B as o,S as oe,C as y,f as k,T as we,O as ye,P as $,R as z,b as G,d as Y,e as q,D as ke,i as _e,j as be,k as Ce,l as Se,a5 as Ae,L as _,X as A,a6 as E,Y as P,I as Pe,a3 as Te}from"./index-CuOHsLf7.js";import{B as u}from"./badge-CDs67obV.js";import{C as X}from"./checkbox-DWiVrbnx.js";import{R as De,a as le}from"./radio-group-BBkaGEpR.js";import{S as Ie,a as Le,b as Re,c as Fe,d as Be}from"./select-DGqIoF9r.js";import{S as c}from"./skeleton-CXI2IV_v.js";import{A as Ee,a as Oe,b as He,c as Ke}from"./accordion-BDNDahhI.js";import{T as ce,a as re,b as O,c as f,d as ne,e as g}from"./table-DFeDhBY_.js";import{S as Me}from"./separator-B_DSOSdz.js";import{g as Ue,b as Ve,a as $e,t as ze,d as Ge,f as Ye,r as qe}from"./pack-api-NsQx-ed4.js";import{P as J,g as ie,a1 as Xe,ad as Je,aH as te,b5 as de,am as Qe,t as H,ak as K,al as M,s as We,L as xe,ai as me,b as T,y as Ze,T as he,V as es}from"./icons-DTcdLw9j.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";const ss={utils:"通用工具",utils_small:"轻量工具",tool_use:"工具调用",replyer:"回复生成",planner:"规划推理",vlm:"视觉模型",voice:"语音处理",embedding:"向量嵌入",lpmm_entity_extract:"实体提取",lpmm_rdf_build:"RDF构建",lpmm_qa:"问答模型"};function us(){const{packId:m}=ve.useParams(),b=ue(),[a,n]=i.useState(null),[D,t]=i.useState(!0),[h,j]=i.useState(!1),[r,p]=i.useState(!1),[I,v]=i.useState(!1),[L,R]=i.useState(1),[C,Q]=i.useState(null),[l,x]=i.useState(!1),[N,W]=i.useState(!1),[U,je]=i.useState({apply_providers:!0,apply_models:!0,apply_task_config:!0,task_mode:"append",selected_providers:void 0,selected_models:void 0,selected_tasks:void 0}),[Z,ee]=i.useState({}),[V,se]=i.useState({}),F=Ue(),ae=i.useCallback(async()=>{if(m){t(!0);try{const s=await Ve(m);n(s);const d=await $e(m,F);j(d)}catch(s){console.error("加载 Pack 失败:",s),w({title:"加载模板失败",variant:"destructive"})}finally{t(!1)}}},[m,F]);i.useEffect(()=>{ae()},[ae]);const pe=async()=>{if(!(!m||r)){p(!0);try{const s=await ze(m,F);j(s.liked),a&&n({...a,likes:s.likes})}catch(s){console.error("点赞失败:",s),w({title:"点赞失败",variant:"destructive"})}finally{p(!1)}}},Ne=async()=>{if(a){v(!0),R(1),x(!0);try{const s=await Ge(a);Q(s);const d={};for(const B of s.existing_providers)d[B.pack_provider.name]=B.local_providers[0].name;ee(d);const S={};for(const B of s.new_providers)S[B.name]="";se(S)}catch(s){console.error("检测冲突失败:",s),w({title:"检测配置冲突失败",variant:"destructive"}),v(!1)}finally{x(!1)}}},fe=async()=>{if(a){if(U.apply_providers&&C){for(const s of C.new_providers)if(!V[s.name]){w({title:`请填写提供商 "${s.name}" 的 API Key`,variant:"destructive"});return}}W(!0);try{await Ye(a,U,Z,V),await qe(a.id,F),n({...a,downloads:a.downloads+1}),w({title:"配置模板应用成功!"}),v(!1)}catch(s){console.error("应用 Pack 失败:",s),w({title:s instanceof Error?s.message:"应用配置失败",variant:"destructive"})}finally{W(!1)}}},ge=s=>new Date(s).toLocaleDateString("zh-CN",{year:"numeric",month:"long",day:"numeric"});return D?e.jsx(ls,{}):a?e.jsx("div",{className:"h-[calc(100vh-4rem)] flex flex-col p-4 sm:p-6",children:e.jsx(oe,{className:"flex-1",children:e.jsxs("div",{className:"space-y-4 sm:space-y-6",children:[e.jsxs(o,{variant:"ghost",size:"sm",onClick:()=>b({to:"/config/pack-market"}),className:"gap-2",children:[e.jsx(ie,{className:"w-4 h-4"}),"返回市场"]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsxs("div",{className:"flex-1 space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(J,{className:"w-10 h-10 text-primary mt-1"}),e.jsxs("div",{children:[e.jsxs("h1",{className:"text-2xl font-bold flex items-center gap-2",children:[a.name,e.jsxs(u,{variant:"secondary",children:["v",a.version]})]}),e.jsx("p",{className:"text-muted-foreground mt-1",children:a.description})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-4 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Xe,{className:"w-4 h-4"}),a.author]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Je,{className:"w-4 h-4"}),ge(a.created_at)]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(te,{className:"w-4 h-4"}),a.downloads," 次下载"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(de,{className:`w-4 h-4 ${h?"fill-red-500 text-red-500":""}`}),a.likes," 赞"]})]}),a.tags&&a.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2",children:a.tags.map(s=>e.jsxs(u,{variant:"outline",children:[e.jsx(Qe,{className:"w-3 h-3 mr-1"}),s]},s))})]}),e.jsxs("div",{className:"flex flex-col gap-2 min-w-[160px]",children:[e.jsxs(o,{size:"lg",onClick:Ne,children:[e.jsx(te,{className:"w-4 h-4 mr-2"}),"应用模板"]}),e.jsxs(o,{variant:"outline",onClick:pe,disabled:r,className:h?"text-red-500 border-red-200":"",children:[e.jsx(de,{className:`w-4 h-4 mr-2 ${h?"fill-current":""}`}),h?"已点赞":"点赞"]})]})]}),e.jsx(Me,{}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[e.jsx(y,{children:e.jsxs(k,{className:"flex items-center gap-3 py-4",children:[e.jsx(H,{className:"w-8 h-8 text-blue-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-bold",children:a.providers.length}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"API 提供商"})]})]})}),e.jsx(y,{children:e.jsxs(k,{className:"flex items-center gap-3 py-4",children:[e.jsx(K,{className:"w-8 h-8 text-green-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-bold",children:a.models.length}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"模型配置"})]})]})}),e.jsx(y,{children:e.jsxs(k,{className:"flex items-center gap-3 py-4",children:[e.jsx(M,{className:"w-8 h-8 text-purple-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-bold",children:Object.keys(a.task_config).length}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"任务配置"})]})]})})]}),e.jsxs(we,{defaultValue:"providers",className:"space-y-4",children:[e.jsxs(ye,{className:"w-full sm:w-auto grid grid-cols-3 sm:flex",children:[e.jsxs($,{value:"providers",className:"gap-1 sm:gap-2",children:[e.jsx(H,{className:"w-4 h-4"}),e.jsx("span",{className:"hidden sm:inline",children:"提供商"}),e.jsx("span",{className:"sm:hidden",children:"提供商"}),e.jsxs("span",{className:"hidden sm:inline",children:["(",a.providers.length,")"]})]}),e.jsxs($,{value:"models",className:"gap-1 sm:gap-2",children:[e.jsx(K,{className:"w-4 h-4"}),e.jsx("span",{className:"hidden sm:inline",children:"模型"}),e.jsx("span",{className:"sm:hidden",children:"模型"}),e.jsxs("span",{className:"hidden sm:inline",children:["(",a.models.length,")"]})]}),e.jsxs($,{value:"tasks",className:"gap-1 sm:gap-2",children:[e.jsx(M,{className:"w-4 h-4"}),e.jsx("span",{className:"hidden sm:inline",children:"任务配置"}),e.jsx("span",{className:"sm:hidden",children:"任务"}),e.jsxs("span",{className:"hidden sm:inline",children:["(",Object.keys(a.task_config).length,")"]})]})]}),e.jsx(z,{value:"providers",children:e.jsxs(y,{children:[e.jsxs(G,{children:[e.jsx(Y,{children:"API 提供商"}),e.jsx(q,{children:"模板中包含的 API 提供商配置(不含 API Key)"})]}),e.jsx(k,{children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs(ce,{"aria-label":"API 提供商配置列表",children:[e.jsx(re,{children:e.jsxs(O,{children:[e.jsx(f,{children:"名称"}),e.jsx(f,{children:"Base URL"}),e.jsx(f,{children:"类型"})]})}),e.jsx(ne,{children:a.providers.map(s=>e.jsxs(O,{children:[e.jsx(g,{className:"font-medium whitespace-nowrap",children:s.name}),e.jsx(g,{className:"text-muted-foreground font-mono text-sm max-w-[200px] truncate",children:s.base_url}),e.jsx(g,{children:e.jsx(u,{variant:"outline",children:s.client_type})})]},s.name))})]})})})]})}),e.jsx(z,{value:"models",children:e.jsxs(y,{children:[e.jsxs(G,{children:[e.jsx(Y,{children:"模型配置"}),e.jsx(q,{children:"模板中包含的模型配置"})]}),e.jsx(k,{children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs(ce,{"aria-label":"模型配置列表",children:[e.jsx(re,{children:e.jsxs(O,{children:[e.jsx(f,{children:"模型名称"}),e.jsx(f,{children:"标识符"}),e.jsx(f,{children:"提供商"}),e.jsx(f,{className:"text-right",children:"价格 (入/出)"})]})}),e.jsx(ne,{children:a.models.map(s=>e.jsxs(O,{children:[e.jsx(g,{className:"font-medium whitespace-nowrap",children:s.name}),e.jsx(g,{className:"text-muted-foreground font-mono text-sm max-w-[150px] truncate",children:s.model_identifier}),e.jsx(g,{className:"whitespace-nowrap",children:s.api_provider}),e.jsxs(g,{className:"text-right text-muted-foreground whitespace-nowrap",children:["¥",s.price_in," / ¥",s.price_out]})]},s.name))})]})})})]})}),e.jsx(z,{value:"tasks",children:e.jsxs(y,{children:[e.jsxs(G,{children:[e.jsx(Y,{children:"任务配置"}),e.jsx(q,{children:"模板中各任务类型的模型分配"})]}),e.jsx(k,{children:e.jsx(Ee,{type:"multiple",className:"w-full",children:Object.entries(a.task_config).map(([s,d])=>e.jsxs(Oe,{value:s,children:[e.jsx(He,{children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(We,{className:"w-4 h-4"}),ss[s]||s,e.jsxs(u,{variant:"secondary",className:"ml-2",children:[d.model_list.length," 个模型"]})]})}),e.jsx(Ke,{children:e.jsxs("div",{className:"space-y-2 pl-6",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:"分配的模型:"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:d.model_list.map(S=>e.jsx(u,{variant:"outline",children:S},S))}),d.temperature!==void 0&&e.jsxs("div",{className:"text-sm",children:["Temperature: ",e.jsx("span",{className:"font-mono",children:d.temperature})]}),d.max_tokens!==void 0&&e.jsxs("div",{className:"text-sm",children:["Max Tokens: ",e.jsx("span",{className:"font-mono",children:d.max_tokens})]})]})})]},s))})})]})})]}),e.jsx(as,{open:I,onOpenChange:v,pack:a,step:L,setStep:R,conflicts:C,detectingConflicts:l,applying:N,options:U,setOptions:je,_providerMapping:Z,_setProviderMapping:ee,newProviderApiKeys:V,setNewProviderApiKeys:se,onApply:fe})]})})}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx(J,{className:"w-16 h-16 mx-auto mb-4 opacity-50"}),e.jsx("h2",{className:"text-xl font-semibold",children:"模板不存在"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"该配置模板可能已被删除或尚未通过审核"}),e.jsxs(o,{className:"mt-4",onClick:()=>b({to:"/config/pack-market"}),children:[e.jsx(ie,{className:"w-4 h-4 mr-2"}),"返回市场"]})]})}function as({open:m,onOpenChange:b,pack:a,step:n,setStep:D,conflicts:t,detectingConflicts:h,applying:j,options:r,setOptions:p,_providerMapping:I,_setProviderMapping:v,newProviderApiKeys:L,setNewProviderApiKeys:R,onApply:C}){return e.jsx(ke,{open:m,onOpenChange:b,children:e.jsxs(_e,{className:"max-w-2xl",confirmOnEnter:!0,children:[e.jsxs(be,{children:[e.jsxs(Ce,{className:"flex items-center gap-2",children:[e.jsx(J,{className:"w-5 h-5"}),"应用配置模板"]}),e.jsxs(Se,{children:["步骤 ",n," / ",3,":",n===1&&"选择要应用的内容",n===2&&"配置提供商映射",n===3&&"确认并应用"]})]}),e.jsx(Ae,{children:h?e.jsxs("div",{className:"py-8 text-center",children:[e.jsx(xe,{className:"w-8 h-8 mx-auto animate-spin text-primary"}),e.jsx("p",{className:"mt-4 text-muted-foreground",children:"正在检测配置冲突..."})]}):e.jsxs(e.Fragment,{children:[n===1&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(X,{id:"apply_providers",checked:r.apply_providers,onCheckedChange:l=>p({...r,apply_providers:l})}),e.jsxs(_,{htmlFor:"apply_providers",className:"flex items-center gap-2",children:[e.jsx(H,{className:"w-4 h-4"}),"应用提供商配置 (",a.providers.length," 个)"]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(X,{id:"apply_models",checked:r.apply_models,onCheckedChange:l=>p({...r,apply_models:l})}),e.jsxs(_,{htmlFor:"apply_models",className:"flex items-center gap-2",children:[e.jsx(K,{className:"w-4 h-4"}),"应用模型配置 (",a.models.length," 个)"]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(X,{id:"apply_task_config",checked:r.apply_task_config,onCheckedChange:l=>p({...r,apply_task_config:l})}),e.jsxs(_,{htmlFor:"apply_task_config",className:"flex items-center gap-2",children:[e.jsx(M,{className:"w-4 h-4"}),"应用任务配置 (",Object.keys(a.task_config).length," 个)"]})]})]}),r.apply_task_config&&e.jsxs("div",{className:"pl-6 space-y-2 border-l-2 border-muted",children:[e.jsx(_,{className:"text-sm font-medium",children:"任务配置应用模式"}),e.jsxs(De,{value:r.task_mode,onValueChange:l=>p({...r,task_mode:l}),children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(le,{value:"append",id:"mode_append"}),e.jsx(_,{htmlFor:"mode_append",className:"font-normal",children:"追加模式 - 将模板中的模型添加到现有配置"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(le,{value:"replace",id:"mode_replace"}),e.jsx(_,{htmlFor:"mode_replace",className:"font-normal",children:"替换模式 - 用模板配置完全替换现有配置"})]})]})]})]}),n===2&&t&&e.jsxs("div",{className:"space-y-4",children:[r.apply_providers&&t.existing_providers.length>0&&e.jsxs("div",{className:"space-y-3",children:[e.jsxs(A,{children:[e.jsx(me,{className:"h-4 w-4"}),e.jsx(E,{children:"发现已有的提供商"}),e.jsx(P,{children:"以下提供商的 URL 与您本地配置中的提供商匹配,将自动使用本地提供商:"})]}),e.jsx("div",{className:"space-y-2",children:t.existing_providers.map(({pack_provider:l,local_providers:x})=>e.jsxs("div",{className:"flex items-center gap-2 p-3 bg-muted rounded-lg",children:[e.jsx(T,{className:"w-4 h-4 text-green-500 flex-shrink-0"}),e.jsx("span",{className:"font-medium flex-shrink-0",children:l.name}),e.jsx(Ze,{className:"w-4 h-4 text-muted-foreground flex-shrink-0"}),x.length===1?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-muted-foreground",children:x[0].name}),e.jsx(u,{variant:"outline",className:"ml-auto",children:"URL 匹配"})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Ie,{value:I[l.name]||x[0].name,onValueChange:N=>v({...I,[l.name]:N}),children:[e.jsx(Le,{className:"w-[200px]",children:e.jsx(Re,{})}),e.jsx(Fe,{children:x.map(N=>e.jsx(Be,{value:N.name,children:N.name},N.name))})]}),e.jsxs(u,{variant:"outline",className:"ml-auto",children:[x.length," 个匹配"]})]})]},l.name))})]}),r.apply_providers&&t.new_providers.length>0&&e.jsxs("div",{className:"space-y-3",children:[e.jsxs(A,{variant:"destructive",children:[e.jsx(he,{className:"h-4 w-4"}),e.jsx(E,{children:"需要配置 API Key"}),e.jsx(P,{children:"以下提供商在您的本地配置中不存在,需要填写 API Key:"})]}),e.jsx("div",{className:"space-y-4",children:t.new_providers.map(l=>e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(es,{className:"w-4 h-4 text-amber-500"}),e.jsx("span",{className:"font-medium",children:l.name}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",l.base_url,")"]})]}),e.jsx(Pe,{type:"password",placeholder:`输入 ${l.name} 的 API Key`,value:L[l.name]||"",onChange:x=>R({...L,[l.name]:x.target.value})})]},l.name))})]}),(!r.apply_providers||t.existing_providers.length===0&&t.new_providers.length===0)&&e.jsxs(A,{children:[e.jsx(T,{className:"h-4 w-4"}),e.jsx(E,{children:"无需配置"}),e.jsx(P,{children:"模板中没有提供商配置,或您选择不应用提供商。"})]})]}),n===3&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs(A,{children:[e.jsx(me,{className:"h-4 w-4"}),e.jsx(E,{children:"确认应用"}),e.jsx(P,{children:"请确认以下将要应用的内容:"})]}),e.jsxs("div",{className:"space-y-2",children:[r.apply_providers&&e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(T,{className:"w-4 h-4 text-green-500"}),e.jsx(H,{className:"w-4 h-4"}),e.jsxs("span",{children:["应用 ",a.providers.length," 个提供商配置"]})]}),r.apply_models&&e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(T,{className:"w-4 h-4 text-green-500"}),e.jsx(K,{className:"w-4 h-4"}),e.jsxs("span",{children:["应用 ",a.models.length," 个模型配置"]})]}),r.apply_task_config&&e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(T,{className:"w-4 h-4 text-green-500"}),e.jsx(M,{className:"w-4 h-4"}),e.jsxs("span",{children:[r.task_mode==="append"?"追加":"替换"," ",Object.keys(a.task_config).length," 个任务配置"]})]})]}),t&&t.new_providers.length>0&&e.jsxs(A,{variant:"destructive",children:[e.jsx(he,{className:"h-4 w-4"}),e.jsxs(P,{children:["将添加 ",t.new_providers.length," 个新提供商,请确保已填写正确的 API Key。"]})]})]})]})}),e.jsxs(Te,{className:"flex justify-between",children:[e.jsx("div",{children:n>1&&!h&&e.jsx(o,{variant:"outline",onClick:()=>D(n-1),disabled:j,children:"上一步"})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(o,{variant:"outline",onClick:()=>b(!1),disabled:j,children:"取消"}),n<3?e.jsx(o,{"data-dialog-action":"confirm",onClick:()=>D(n+1),disabled:h,children:"下一步"}):e.jsxs(o,{"data-dialog-action":"confirm",onClick:C,disabled:j,children:[j&&e.jsx(xe,{className:"w-4 h-4 mr-2 animate-spin"}),"应用模板"]})]})]})]})})}function ls(){return e.jsx("div",{className:"h-[calc(100vh-4rem)] flex flex-col p-4 sm:p-6",children:e.jsx(oe,{className:"flex-1",children:e.jsxs("div",{className:"space-y-4 sm:space-y-6",children:[e.jsx(c,{className:"h-9 w-24"}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsxs("div",{className:"flex-1 space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(c,{className:"w-10 h-10"}),e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsx(c,{className:"h-8 w-2/3"}),e.jsx(c,{className:"h-4 w-full"})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-4",children:[e.jsx(c,{className:"h-4 w-24"}),e.jsx(c,{className:"h-4 w-32"}),e.jsx(c,{className:"h-4 w-28"}),e.jsx(c,{className:"h-4 w-20"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(c,{className:"h-6 w-20"}),e.jsx(c,{className:"h-6 w-24"}),e.jsx(c,{className:"h-6 w-16"})]})]}),e.jsxs("div",{className:"flex flex-col gap-2 min-w-[160px]",children:[e.jsx(c,{className:"h-10 w-full"}),e.jsx(c,{className:"h-10 w-full"})]})]}),e.jsx(c,{className:"h-px w-full"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[e.jsx(c,{className:"h-24"}),e.jsx(c,{className:"h-24"}),e.jsx(c,{className:"h-24"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(c,{className:"h-10 w-32"}),e.jsx(c,{className:"h-10 w-32"}),e.jsx(c,{className:"h-10 w-32"})]}),e.jsx(c,{className:"h-96 w-full"})]})]})})})}export{us as default}; diff --git a/dashboard/dist/assets/pack-market-BOV814Tz.js b/dashboard/dist/assets/pack-market-BOV814Tz.js new file mode 100644 index 00000000..13617297 --- /dev/null +++ b/dashboard/dist/assets/pack-market-BOV814Tz.js @@ -0,0 +1 @@ +import{i as V,r as n,j as e}from"./router-zNjPR4CY.js";import{a4 as _,B as k,S as G,I as J,F as W,G as q,H as K,J as X,C as P,b as M,f as y,an as B,d as Y,e as Z}from"./index-CuOHsLf7.js";import{B as w}from"./badge-CDs67obV.js";import{P as ee,a as se,b as v,e as ae,d as te,f as le}from"./pagination-DX-kWu7G.js";import{S as N}from"./skeleton-CXI2IV_v.js";import{g as ne,l as re,a as ie,t as ce}from"./pack-api-NsQx-ed4.js";import{ad as T,aH as A,b5 as $,P as L,R as oe,S as de,b6 as me,a as xe,a1 as he,t as ue,ak as je,al as ge,am as fe}from"./icons-DTcdLw9j.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";const S=[{value:"created_at",label:"最新发布",icon:T},{value:"downloads",label:"下载最多",icon:A},{value:"likes",label:"最受欢迎",icon:$}];function _e(){const t=V(),[o,d]=n.useState([]),[m,j]=n.useState(!0),[x,i]=n.useState(""),[g,E]=n.useState("downloads"),[c,h]=n.useState(1),[u,H]=n.useState(1),[R,z]=n.useState(0),[O,b]=n.useState(new Set),[C,D]=n.useState(new Set),p=ne(),f=n.useCallback(async()=>{j(!0);try{const s=await re({status:"approved",page:c,page_size:12,search:x||void 0,sort_by:g,sort_order:"desc"});d(s.packs),H(s.total_pages),z(s.total);const a=new Set;for(const l of s.packs)await ie(l.id,p)&&a.add(l.id);b(a)}catch(s){console.error("加载 Pack 列表失败:",s),_({title:"加载 Pack 列表失败",variant:"destructive"})}finally{j(!1)}},[c,x,g,p]);n.useEffect(()=>{f()},[f]);const U=s=>{s.preventDefault(),h(1),f()},F=async s=>{if(!C.has(s)){D(a=>new Set(a).add(s));try{const a=await ce(s,p);b(l=>{const r=new Set(l);return a.liked?r.add(s):r.delete(s),r}),d(l=>l.map(r=>r.id===s?{...r,likes:a.likes}:r))}catch(a){console.error("点赞失败:",a),_({title:"点赞失败",variant:"destructive"})}finally{D(a=>{const l=new Set(a);return l.delete(s),l})}}},I=s=>{t({to:"/config/pack-market/$packId",params:{packId:s}})},Q=S.find(s=>s.value===g)||S[0];return e.jsxs("div",{className:"h-[calc(100vh-4rem)] flex flex-col p-4 sm:p-6",children:[e.jsx("div",{className:"mb-4 sm:mb-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"text-2xl sm:text-3xl font-bold flex items-center gap-2",children:[e.jsx(L,{className:"h-8 w-8",strokeWidth:2}),"配置模板市场"]}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm sm:text-base",children:"浏览和应用社区分享的模型配置模板,快速配置你的 MaiBot"})]}),e.jsxs(k,{variant:"outline",onClick:f,disabled:m,className:"gap-2",children:[e.jsx(oe,{className:`h-4 w-4 ${m?"animate-spin":""}`}),"刷新"]})]})}),e.jsx(G,{className:"flex-1",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex gap-4 flex-wrap",children:[e.jsx("form",{onSubmit:U,className:"flex-1 min-w-[200px] max-w-md",children:e.jsxs("div",{className:"relative",children:[e.jsx(de,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(J,{placeholder:"搜索模板名称、描述...",value:x,onChange:s=>i(s.target.value),className:"pl-10"})]})}),e.jsxs(W,{children:[e.jsx(q,{asChild:!0,children:e.jsxs(k,{variant:"outline",className:"min-w-[140px] gap-2",children:[e.jsx(me,{className:"w-4 h-4"}),Q.label,e.jsx(xe,{className:"w-4 h-4 ml-auto"})]})}),e.jsx(K,{align:"end",children:S.map(s=>e.jsxs(X,{onClick:()=>{E(s.value),h(1)},children:[e.jsx(s.icon,{className:"w-4 h-4 mr-2"}),s.label]},s.value))})]})]}),e.jsxs("div",{className:"text-sm text-muted-foreground",children:["共找到 ",e.jsx("span",{className:"font-medium text-foreground",children:R})," 个模板"]}),m?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Array.from({length:6}).map((s,a)=>e.jsxs(P,{children:[e.jsxs(M,{children:[e.jsx(N,{className:"h-6 w-3/4"}),e.jsx(N,{className:"h-4 w-full mt-2"})]}),e.jsx(y,{children:e.jsx(N,{className:"h-20 w-full"})}),e.jsx(B,{children:e.jsx(N,{className:"h-9 w-full"})})]},a))}):o.length===0?e.jsx(P,{className:"py-12",children:e.jsxs(y,{className:"text-center text-muted-foreground",children:[e.jsx(L,{className:"w-12 h-12 mx-auto mb-4 opacity-50"}),e.jsx("p",{className:"text-lg font-medium",children:"暂无模板"}),e.jsx("p",{className:"mt-1",children:"还没有人分享配置模板,快来分享第一个吧!"})]})}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:o.map(s=>e.jsx(Ne,{pack:s,liked:O.has(s.id),liking:C.has(s.id),onLike:()=>F(s.id),onView:()=>I(s.id)},s.id))}),u>1&&e.jsx(ee,{children:e.jsxs(se,{children:[e.jsx(v,{children:e.jsx(ae,{onClick:()=>h(s=>Math.max(1,s-1)),className:c===1?"pointer-events-none opacity-50":"cursor-pointer"})}),Array.from({length:u},(s,a)=>a+1).filter(s=>s===1||s===u||Math.abs(s-c)<=1).map((s,a,l)=>{const r=a>0&&s-l[a-1]>1;return e.jsxs(v,{children:[r&&e.jsx("span",{className:"px-2",children:"..."}),e.jsx(te,{onClick:()=>h(s),isActive:s===c,className:"cursor-pointer",children:s})]},s)}),e.jsx(v,{children:e.jsx(le,{onClick:()=>h(s=>Math.min(u,s+1)),className:c===u?"pointer-events-none opacity-50":"cursor-pointer"})})]})})]})})]})}function Ne({pack:t,liked:o,liking:d,onLike:m,onView:j}){const x=i=>new Date(i).toLocaleDateString("zh-CN",{year:"numeric",month:"short",day:"numeric"});return e.jsxs(P,{className:"flex flex-col hover:shadow-md transition-shadow",children:[e.jsxs(M,{className:"pb-3",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsx(Y,{className:"text-lg line-clamp-1",children:t.name}),e.jsxs(w,{variant:"secondary",className:"text-xs",children:["v",t.version]})]}),e.jsx(Z,{className:"line-clamp-2 min-h-[40px]",children:t.description})]}),e.jsxs(y,{className:"flex-1 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(he,{className:"w-3.5 h-3.5"}),t.author]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(T,{className:"w-3.5 h-3.5"}),x(t.created_at)]})]}),e.jsxs("div",{className:"flex gap-4 text-sm",children:[e.jsxs("span",{className:"flex items-center gap-1 text-muted-foreground",title:"提供商数量",children:[e.jsx(ue,{className:"w-3.5 h-3.5"}),t.provider_count]}),e.jsxs("span",{className:"flex items-center gap-1 text-muted-foreground",title:"模型数量",children:[e.jsx(je,{className:"w-3.5 h-3.5"}),t.model_count]}),e.jsxs("span",{className:"flex items-center gap-1 text-muted-foreground",title:"任务配置数",children:[e.jsx(ge,{className:"w-3.5 h-3.5"}),t.task_count]})]}),t.tags&&t.tags.length>0&&e.jsxs("div",{className:"flex flex-wrap gap-1",children:[t.tags.slice(0,3).map(i=>e.jsxs(w,{variant:"outline",className:"text-xs",children:[e.jsx(fe,{className:"w-2.5 h-2.5 mr-1"}),i]},i)),t.tags.length>3&&e.jsxs(w,{variant:"outline",className:"text-xs",children:["+",t.tags.length-3]})]})]}),e.jsx(B,{className:"pt-3 border-t",children:e.jsxs("div",{className:"flex items-center justify-between w-full",children:[e.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(A,{className:"w-4 h-4"}),t.downloads]}),e.jsxs("button",{onClick:i=>{i.stopPropagation(),m()},disabled:d,className:`flex items-center gap-1 transition-colors ${o?"text-red-500":"hover:text-red-500"} ${d?"opacity-50":""}`,children:[e.jsx($,{className:`w-4 h-4 ${o?"fill-current":""}`}),t.likes]})]}),e.jsx(k,{size:"sm",onClick:j,children:"查看详情"})]})})]})}export{_e as default}; diff --git a/dashboard/dist/assets/pagination-DX-kWu7G.js b/dashboard/dist/assets/pagination-DX-kWu7G.js new file mode 100644 index 00000000..6330c363 --- /dev/null +++ b/dashboard/dist/assets/pagination-DX-kWu7G.js @@ -0,0 +1 @@ +import{j as i,r as o}from"./router-zNjPR4CY.js";import{g as e,ak as r}from"./index-CuOHsLf7.js";import{G as c,y as p,b7 as m}from"./icons-DTcdLw9j.js";const g=({className:s,...a})=>i.jsx("nav",{role:"navigation","aria-label":"pagination",className:e("mx-auto flex w-full justify-center",s),...a});g.displayName="Pagination";const x=o.forwardRef(({className:s,...a},n)=>i.jsx("ul",{ref:n,className:e("flex flex-row items-center gap-1",s),...a}));x.displayName="PaginationContent";const d=o.forwardRef(({className:s,...a},n)=>i.jsx("li",{ref:n,className:e("",s),...a}));d.displayName="PaginationItem";const t=({className:s,isActive:a,size:n="icon",...l})=>i.jsx("a",{"aria-current":a?"page":void 0,className:e(r({variant:a?"outline":"ghost",size:n}),s),...l});t.displayName="PaginationLink";const N=({className:s,...a})=>i.jsxs(t,{"aria-label":"Go to previous page",size:"default",className:e("gap-1 pl-2.5",s),...a,children:[i.jsx(c,{className:"h-4 w-4"}),i.jsx("span",{children:"上一页"})]});N.displayName="PaginationPrevious";const f=({className:s,...a})=>i.jsxs(t,{"aria-label":"Go to next page",size:"default",className:e("gap-1 pr-2.5",s),...a,children:[i.jsx("span",{children:"下一页"}),i.jsx(p,{className:"h-4 w-4"})]});f.displayName="PaginationNext";const j=({className:s,...a})=>i.jsxs("span",{"aria-hidden":!0,className:e("flex h-9 w-9 items-center justify-center",s),...a,children:[i.jsx(m,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"More pages"})]});j.displayName="PaginationEllipsis";export{g as P,x as a,d as b,j as c,t as d,N as e,f}; diff --git a/dashboard/dist/assets/parse-BBzU4wsN.js b/dashboard/dist/assets/parse-BBzU4wsN.js new file mode 100644 index 00000000..4cb4de28 --- /dev/null +++ b/dashboard/dist/assets/parse-BBzU4wsN.js @@ -0,0 +1,22 @@ +function D(e,n){let i=e.slice(0,n).split(/\r\n|\n|\r/g);return[i.length,i.pop().length+1]}function I(e,n,i){let l=e.split(/\r\n|\n|\r/g),o="",f=(Math.log10(n+1)|0)+1;for(let t=n-1;t<=n+1;t++){let r=l[t-1];r&&(o+=t.toString().padEnd(f," "),o+=": ",o+=r,o+=` +`,t===n&&(o+=" ".repeat(f+i+2),o+=`^ +`))}return o}class c extends Error{line;column;codeblock;constructor(n,i){const[l,o]=D(i.toml,i.ptr),f=I(i.toml,l,o);super(`Invalid TOML document: ${n} + +${f}`,i),this.line=l,this.column=o,this.codeblock=f}}function L(e,n){let i=0;for(;e[n-++i]==="\\";);return--i&&i%2}function g(e,n=0,i=e.length){let l=e.indexOf(` +`,n);return e[l-1]==="\r"&&l--,l<=i?l:-1}function m(e,n){for(let i=n;i-1&&i!=="'"&&L(e,n));return n>-1&&(n+=l.length,l.length>1&&(e[n]===i&&n++,e[n]===i&&n++)),n}let p=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;class w extends Date{#n=!1;#i=!1;#e=null;constructor(n){let i=!0,l=!0,o="Z";if(typeof n=="string"){let f=n.match(p);f?(f[1]||(i=!1,n=`0000-01-01T${n}`),l=!!f[2],l&&n[10]===" "&&(n=n.replace(" ","T")),f[2]&&+f[2]>23?n="":(o=f[3]||null,n=n.toUpperCase(),!o&&l&&(n+="Z"))):n=""}super(n),isNaN(this.getTime())||(this.#n=i,this.#i=l,this.#e=o)}isDateTime(){return this.#n&&this.#i}isLocal(){return!this.#n||!this.#i||!this.#e}isDate(){return this.#n&&!this.#i}isTime(){return this.#i&&!this.#n}isValid(){return this.#n||this.#i}toISOString(){let n=super.toISOString();if(this.isDate())return n.slice(0,10);if(this.isTime())return n.slice(11,23);if(this.#e===null)return n.slice(0,-1);if(this.#e==="Z")return n;let i=+this.#e.slice(1,3)*60+ +this.#e.slice(4,6);return i=this.#e[0]==="-"?i:-i,new Date(this.getTime()-i*6e4).toISOString().slice(0,-1)+this.#e}static wrapAsOffsetDateTime(n,i="Z"){let l=new w(n);return l.#e=i,l}static wrapAsLocalDateTime(n){let i=new w(n);return i.#e=null,i}static wrapAsLocalDate(n){let i=new w(n);return i.#i=!1,i.#e=null,i}static wrapAsLocalTime(n){let i=new w(n);return i.#n=!1,i.#e=null,i}}let v=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,N=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,k=/^[+-]?0[0-9_]/,$=/^[0-9a-f]{2,8}$/i,y={b:"\b",t:" ",n:` +`,f:"\f",r:"\r",e:"\x1B",'"':'"',"\\":"\\"};function _(e,n=0,i=e.length){let l=e[n]==="'",o=e[n++]===e[n]&&e[n]===e[n+1];o&&(i-=2,e[n+=2]==="\r"&&n++,e[n]===` +`&&n++);let f=0,t,r="",u=n;for(;n-1&&(m(e,o),l=l.slice(0,o)),[l.trimEnd(),o]}function x(e,n,i,l,o){if(l===0)throw new c("document contains excessively nested structures. aborting.",{toml:e,ptr:n});let f=e[n];if(f==="["||f==="{"){let[u,a]=f==="["?M(e,n,l,o):j(e,n,l,o);if(i){if(a=h(e,a),e[a]===",")a++;else if(e[a]!==i)throw new c("expected comma or end of structure",{toml:e,ptr:a})}return[u,a]}let t;if(f==='"'||f==="'"){t=T(e,n);let u=_(e,n,t);if(i){if(t=h(e,t),e[t]&&e[t]!==","&&e[t]!==i&&e[t]!==` +`&&e[t]!=="\r")throw new c("unexpected character encountered",{toml:e,ptr:t});t+=+(e[t]===",")}return[u,t]}t=P(e,n,",",i);let r=R(e,n,t-+(e[t-1]===","));if(!r[0])throw new c("incomplete key-value declaration: no value specified",{toml:e,ptr:n});return i&&r[1]>-1&&(t=h(e,n+r[1]),t+=+(e[t]===",")),[C(r[0],e,n,o),t]}let Z=/^[a-zA-Z0-9-_]+[ \t]*$/;function b(e,n,i="="){let l=n-1,o=[],f=e.indexOf(i,n);if(f<0)throw new c("incomplete key-value: cannot find end of key",{toml:e,ptr:n});do{let t=e[n=++l];if(t!==" "&&t!==" ")if(t==='"'||t==="'"){if(t===e[n+1]&&t===e[n+2])throw new c("multiline strings are not allowed in keys",{toml:e,ptr:n});let r=T(e,n);if(r<0)throw new c("unfinished string encountered",{toml:e,ptr:n});l=e.indexOf(".",r);let u=e.slice(r,l<0||l>f?f:l),a=g(u);if(a>-1)throw new c("newlines are not allowed in keys",{toml:e,ptr:n+l+a});if(u.trimStart())throw new c("found extra tokens after the string part",{toml:e,ptr:r});if(ff?f:l);if(!Z.test(r))throw new c("only letter, numbers, dashes and underscores are allowed in keys",{toml:e,ptr:n});o.push(r.trimEnd())}}while(l+1&&l{try{n(!0);const s=await Ue({page:m,page_size:x,search:d||void 0,is_known:C,platform:O});if(!s.success)throw new Error(s.error);r(s.data.data),f(s.data.total)}catch(s){N({title:"加载失败",description:s instanceof Error?s.message:"无法加载人物信息",variant:"destructive"})}finally{n(!1)}},T=async()=>{try{const s=await Xe();s.success&&Se(s.data)}catch(s){console.error("加载统计数据失败:",s)}};i.useEffect(()=>{z(),T()},[m,x,d,C,O]);const X=async s=>{try{const c=await We(s.person_id);if(!c.success)throw new Error(c.error);W(c.data),G(!0)}catch(c){N({title:"加载详情失败",description:c instanceof Error?c.message:"无法加载人物详情",variant:"destructive"})}},Y=s=>{W(s),$(!0)},Ce=async s=>{try{const c=await Qe(s.person_id);if(!c.success)throw new Error(c.error);N({title:"删除成功",description:`已删除人物信息: ${s.person_name||s.nickname||s.user_id}`}),P(null),z(),T()}catch(c){N({title:"删除失败",description:c instanceof Error?c.message:"无法删除人物信息",variant:"destructive"})}},Pe=i.useMemo(()=>Object.keys(b.platforms),[b.platforms]),Z=s=>{const c=new Set(j);c.has(s)?c.delete(s):c.add(s),y(c)},ze=()=>{j.size===a.length&&a.length>0?y(new Set):y(new Set(a.map(s=>s.person_id)))},Te=()=>{if(j.size===0){N({title:"未选择任何人物",description:"请先选择要删除的人物",variant:"destructive"});return}I(!0)},Ee=async()=>{try{const s=await Ye(Array.from(j));if(!s.success)throw new Error(s.error);N({title:"批量删除完成",description:s.data.message}),y(new Set),I(!1),z(),T()}catch(s){N({title:"批量删除失败",description:s instanceof Error?s.message:"批量删除失败",variant:"destructive"})}},ee=()=>{const s=parseInt(L),c=Math.ceil(l/x);s>=1&&s<=c?(u(s),Q("")):N({title:"无效的页码",description:`请输入1-${c}之间的页码`,variant:"destructive"})},se=s=>s?new Date(s*1e3).toLocaleString("zh-CN"):"-";return e.jsxs("div",{className:"h-[calc(100vh-4rem)] flex flex-col p-4 sm:p-6",children:[e.jsx("div",{className:"mb-4 sm:mb-6",children:e.jsx("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"text-2xl sm:text-3xl font-bold flex items-center gap-2",children:[e.jsx(Me,{className:"h-8 w-8",strokeWidth:2}),"人物信息管理"]}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm sm:text-base",children:"管理麦麦认识的所有人物信息"})]})})}),e.jsx(Fe,{className:"flex-1",children:e.jsxs("div",{className:"space-y-4 sm:space-y-6 pr-4",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:"总人数"}),e.jsx("div",{className:"text-2xl font-bold mt-1",children:b.total})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:"已认识"}),e.jsx("div",{className:"text-2xl font-bold mt-1 text-green-600",children:b.known})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:"未认识"}),e.jsx("div",{className:"text-2xl font-bold mt-1 text-muted-foreground",children:b.unknown})]})]}),e.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"sm:col-span-2",children:[e.jsx(h,{htmlFor:"search",children:"搜索"}),e.jsxs("div",{className:"relative mt-1.5",children:[e.jsx(Be,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"}),e.jsx(F,{id:"search",placeholder:"搜索名称、昵称或用户ID...",value:d,onChange:s=>we(s.target.value),className:"pl-9"})]})]}),e.jsxs("div",{children:[e.jsx(h,{htmlFor:"filter-known",children:"认识状态"}),e.jsxs(B,{value:C===void 0?"all":C.toString(),onValueChange:s=>{ke(s==="all"?void 0:s==="true"),u(1)},children:[e.jsx(H,{id:"filter-known",className:"mt-1.5",children:e.jsx(q,{})}),e.jsxs(R,{children:[e.jsx(p,{value:"all",children:"全部"}),e.jsx(p,{value:"true",children:"已认识"}),e.jsx(p,{value:"false",children:"未认识"})]})]})]}),e.jsxs("div",{children:[e.jsx(h,{htmlFor:"filter-platform",children:"平台"}),e.jsxs(B,{value:O||"all",onValueChange:s=>{be(s==="all"?void 0:s),u(1)},children:[e.jsx(H,{id:"filter-platform",className:"mt-1.5",children:e.jsx(q,{})}),e.jsxs(R,{children:[e.jsx(p,{value:"all",children:"全部平台"}),Pe.map(s=>e.jsxs(p,{value:s,children:[s," (",b.platforms[s],")"]},s))]})]})]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 mt-4 pt-4 border-t",children:[e.jsx("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:j.size>0&&e.jsxs("span",{children:["已选择 ",j.size," 个人物"]})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(h,{htmlFor:"page-size",className:"text-sm whitespace-nowrap",children:"每页显示"}),e.jsxs(B,{value:x.toString(),onValueChange:s=>{A(parseInt(s)),u(1),y(new Set)},children:[e.jsx(H,{id:"page-size",className:"w-20",children:e.jsx(q,{})}),e.jsxs(R,{children:[e.jsx(p,{value:"10",children:"10"}),e.jsx(p,{value:"20",children:"20"}),e.jsx(p,{value:"50",children:"50"}),e.jsx(p,{value:"100",children:"100"})]})]}),j.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(o,{variant:"outline",size:"sm",onClick:()=>y(new Set),children:"取消选择"}),e.jsxs(o,{variant:"destructive",size:"sm",onClick:Te,children:[e.jsx(V,{className:"h-4 w-4 mr-1"}),"批量删除"]})]})]})]})]}),e.jsxs("div",{className:"rounded-lg border bg-card",children:[e.jsx("div",{className:"hidden md:block",children:e.jsxs(Oe,{"aria-label":"人物信息列表",children:[e.jsx($e,{children:e.jsxs(E,{children:[e.jsx(w,{className:"w-12",children:e.jsx(M,{checked:a.length>0&&j.size===a.length,onCheckedChange:ze,"aria-label":"全选"})}),e.jsx(w,{children:"状态"}),e.jsx(w,{children:"名称"}),e.jsx(w,{children:"昵称"}),e.jsx(w,{children:"平台"}),e.jsx(w,{children:"用户ID"}),e.jsx(w,{children:"最后更新"}),e.jsx(w,{className:"text-right",children:"操作"})]})}),e.jsx(Ie,{children:t?e.jsx(E,{children:e.jsx(g,{colSpan:8,className:"text-center py-8 text-muted-foreground",children:"加载中..."})}):a.length===0?e.jsx(E,{children:e.jsx(g,{colSpan:8,className:"text-center py-8 text-muted-foreground",children:"暂无数据"})}):a.map(s=>e.jsxs(E,{children:[e.jsx(g,{children:e.jsx(M,{checked:j.has(s.person_id),onCheckedChange:()=>Z(s.person_id),"aria-label":`选择 ${s.person_name||s.nickname||s.user_id}`})}),e.jsx(g,{children:e.jsx("div",{className:K("inline-flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium",s.is_known?"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400":"bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-400"),children:s.is_known?"已认识":"未认识"})}),e.jsx(g,{className:"font-medium",children:s.person_name||e.jsx("span",{className:"text-muted-foreground",children:"-"})}),e.jsx(g,{children:s.nickname||"-"}),e.jsx(g,{children:s.platform}),e.jsx(g,{className:"font-mono text-sm",children:s.user_id}),e.jsx(g,{className:"text-sm text-muted-foreground",children:se(s.last_know)}),e.jsx(g,{className:"text-right",children:e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsxs(o,{variant:"default",size:"sm",onClick:()=>X(s),children:[e.jsx(oe,{className:"h-4 w-4 mr-1"}),"详情"]}),e.jsxs(o,{variant:"default",size:"sm",onClick:()=>Y(s),children:[e.jsx(me,{className:"h-4 w-4 mr-1"}),"编辑"]}),e.jsxs(o,{size:"sm",onClick:()=>P(s),className:"bg-red-600 hover:bg-red-700 text-white",children:[e.jsx(V,{className:"h-4 w-4 mr-1"}),"删除"]})]})})]},s.id))})]})}),e.jsx("div",{className:"md:hidden space-y-3 p-4",children:t?e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"加载中..."}):a.length===0?e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"暂无数据"}):a.map(s=>e.jsxs("div",{className:"rounded-lg border bg-card p-4 space-y-3 overflow-hidden",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(M,{checked:j.has(s.person_id),onCheckedChange:()=>Z(s.person_id),className:"mt-1"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:K("inline-flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium mb-2",s.is_known?"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400":"bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-400"),children:s.is_known?"已认识":"未认识"}),e.jsx("h3",{className:"font-semibold text-sm line-clamp-1 w-full break-all",children:s.person_name||e.jsx("span",{className:"text-muted-foreground",children:"未命名"})}),s.nickname&&e.jsxs("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-1 w-full break-all",children:["昵称: ",s.nickname]})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:"平台"}),e.jsx("p",{className:"font-medium text-xs",children:s.platform})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:"用户ID"}),e.jsx("p",{className:"font-mono text-xs truncate",title:s.user_id,children:s.user_id})]}),e.jsxs("div",{className:"col-span-2",children:[e.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:"最后更新"}),e.jsx("p",{className:"text-xs",children:se(s.last_know)})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-1 pt-2 border-t overflow-hidden",children:[e.jsxs(o,{variant:"outline",size:"sm",onClick:()=>X(s),className:"text-xs px-2 py-1 h-auto shrink-0",children:[e.jsx(oe,{className:"h-3 w-3 mr-1"}),"查看"]}),e.jsxs(o,{variant:"outline",size:"sm",onClick:()=>Y(s),className:"text-xs px-2 py-1 h-auto shrink-0",children:[e.jsx(me,{className:"h-3 w-3 mr-1"}),"编辑"]}),e.jsxs(o,{variant:"outline",size:"sm",onClick:()=>P(s),className:"text-xs px-2 py-1 h-auto shrink-0 text-destructive hover:text-destructive",children:[e.jsx(V,{className:"h-3 w-3 mr-1"}),"删除"]})]})]},s.id))}),l>0&&e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 px-4 py-3 border-t",children:[e.jsxs("div",{className:"text-sm text-muted-foreground",children:["共 ",l," 条记录,第 ",m," / ",Math.ceil(l/x)," 页"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(o,{variant:"outline",size:"sm",onClick:()=>u(1),disabled:m===1,className:"hidden sm:flex",children:e.jsx(He,{className:"h-4 w-4"})}),e.jsxs(o,{variant:"outline",size:"sm",onClick:()=>u(m-1),disabled:m===1,children:[e.jsx(qe,{className:"h-4 w-4 sm:mr-1"}),e.jsx("span",{className:"hidden sm:inline",children:"上一页"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(F,{type:"number",value:L,onChange:s=>Q(s.target.value),onKeyDown:s=>s.key==="Enter"&&ee(),placeholder:m.toString(),className:"w-16 h-8 text-center",min:1,max:Math.ceil(l/x)}),e.jsx(o,{variant:"outline",size:"sm",onClick:ee,disabled:!L,className:"h-8",children:"跳转"})]}),e.jsxs(o,{variant:"outline",size:"sm",onClick:()=>u(m+1),disabled:m>=Math.ceil(l/x),children:[e.jsx("span",{className:"hidden sm:inline",children:"下一页"}),e.jsx(Re,{className:"h-4 w-4 sm:ml-1"})]}),e.jsx(o,{variant:"outline",size:"sm",onClick:()=>u(Math.ceil(l/x)),disabled:m>=Math.ceil(l/x),className:"hidden sm:flex",children:e.jsx(Ve,{className:"h-4 w-4"})})]})]})]})]})}),e.jsx(Ze,{person:U,open:ye,onOpenChange:G}),e.jsx(es,{person:U,open:_e,onOpenChange:$,onSuccess:()=>{z(),T(),$(!1)}}),e.jsx(ae,{open:!!k,onOpenChange:()=>P(null),children:e.jsxs(te,{children:[e.jsxs(re,{children:[e.jsx(ne,{children:"确认删除"}),e.jsxs(le,{children:['确定要删除人物信息 "',k?.person_name||k?.nickname||k?.user_id,'" 吗? 此操作不可撤销。']})]}),e.jsxs(ie,{children:[e.jsx(ce,{children:"取消"}),e.jsx(de,{onClick:()=>k&&Ce(k),className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"删除"})]})]})}),e.jsx(ae,{open:De,onOpenChange:I,children:e.jsxs(te,{children:[e.jsxs(re,{children:[e.jsx(ne,{children:"确认批量删除"}),e.jsxs(le,{children:["确定要删除选中的 ",j.size," 个人物信息吗? 此操作不可撤销。"]})]}),e.jsxs(ie,{children:[e.jsx(ce,{children:"取消"}),e.jsx(de,{onClick:Ee,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"批量删除"})]})]})})]})}function Ze({person:a,open:r,onOpenChange:t}){if(!a)return null;const n=l=>l?new Date(l*1e3).toLocaleString("zh-CN"):"-";return e.jsx(ue,{open:r,onOpenChange:t,children:e.jsxs(je,{className:"max-w-2xl",children:[e.jsxs(ge,{children:[e.jsx(fe,{children:"人物详情"}),e.jsxs(pe,{children:["查看 ",a.person_name||a.nickname||a.user_id," 的完整信息"]})]}),e.jsx(ve,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(v,{icon:Je,label:"人物名称",value:a.person_name}),e.jsx(v,{icon:Ke,label:"昵称",value:a.nickname}),e.jsx(v,{icon:xe,label:"用户ID",value:a.user_id,mono:!0}),e.jsx(v,{icon:xe,label:"人物ID",value:a.person_id,mono:!0}),e.jsx(v,{label:"平台",value:a.platform}),e.jsx(v,{label:"状态",value:a.is_known?"已认识":"未认识"})]}),a.name_reason&&e.jsxs("div",{className:"rounded-lg border bg-muted/50 p-3",children:[e.jsx(h,{className:"text-xs text-muted-foreground",children:"名称设定原因"}),e.jsx("p",{className:"mt-1 text-sm",children:a.name_reason})]}),a.memory_points&&e.jsxs("div",{className:"rounded-lg border bg-muted/50 p-3",children:[e.jsx(h,{className:"text-xs text-muted-foreground",children:"个人印象"}),e.jsx("p",{className:"mt-1 text-sm whitespace-pre-wrap",children:a.memory_points})]}),a.group_nick_name&&a.group_nick_name.length>0&&e.jsxs("div",{className:"rounded-lg border bg-muted/50 p-3",children:[e.jsx(h,{className:"text-xs text-muted-foreground",children:"群昵称"}),e.jsx("div",{className:"mt-2 space-y-1",children:a.group_nick_name.map((l,f)=>e.jsxs("div",{className:"text-sm flex items-center gap-2",children:[e.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:l.group_id}),e.jsx("span",{children:"→"}),e.jsx("span",{children:l.group_nick_name})]},f))})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[e.jsx(v,{icon:J,label:"认识时间",value:n(a.know_times)}),e.jsx(v,{icon:J,label:"首次记录",value:n(a.know_since)}),e.jsx(v,{icon:J,label:"最后更新",value:n(a.last_know)})]})]})}),e.jsx(Ne,{children:e.jsx(o,{onClick:()=>t(!1),children:"关闭"})})]})})}function v({icon:a,label:r,value:t,mono:n=!1}){return e.jsxs("div",{className:"space-y-1",children:[e.jsxs(h,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[a&&e.jsx(a,{className:"h-3 w-3"}),r]}),e.jsx("div",{className:K("text-sm",n&&"font-mono",!t&&"text-muted-foreground"),children:t||"-"})]})}function es({person:a,open:r,onOpenChange:t,onSuccess:n}){const[l,f]=i.useState({}),[m,u]=i.useState(!1),{toast:x}=he();i.useEffect(()=>{a&&f({person_name:a.person_name||"",name_reason:a.name_reason||"",nickname:a.nickname||"",is_known:a.is_known})},[a]);const A=async()=>{if(a)try{u(!0);const d=await Ge(a.person_id,l);if(!d.success)throw new Error(d.error);x({title:"保存成功",description:"人物信息已更新"}),n()}catch(d){x({title:"保存失败",description:d instanceof Error?d.message:"无法更新人物信息",variant:"destructive"})}finally{u(!1)}};return a?e.jsx(ue,{open:r,onOpenChange:t,children:e.jsxs(je,{className:"max-w-2xl",confirmOnEnter:!0,children:[e.jsxs(ge,{children:[e.jsx(fe,{children:"编辑人物信息"}),e.jsxs(pe,{children:["修改 ",a.person_name||a.nickname||a.user_id," 的信息"]})]}),e.jsx(ve,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(h,{htmlFor:"person_name",children:"人物名称"}),e.jsx(F,{id:"person_name",value:l.person_name||"",onChange:d=>f({...l,person_name:d.target.value}),placeholder:"为这个人设置一个名称"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(h,{htmlFor:"nickname",children:"昵称"}),e.jsx(F,{id:"nickname",value:l.nickname||"",onChange:d=>f({...l,nickname:d.target.value}),placeholder:"昵称"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(h,{htmlFor:"name_reason",children:"名称设定原因"}),e.jsx(Le,{id:"name_reason",value:l.name_reason||"",onChange:d=>f({...l,name_reason:d.target.value}),placeholder:"为什么这样称呼这个人?",rows:2})]}),e.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-3",children:[e.jsxs("div",{children:[e.jsx(h,{htmlFor:"is_known",className:"text-base font-medium",children:"已认识"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"标记是否已经认识这个人"})]}),e.jsx(Ae,{id:"is_known",checked:l.is_known,onCheckedChange:d=>f({...l,is_known:d})})]})]})}),e.jsxs(Ne,{children:[e.jsx(o,{variant:"outline",onClick:()=>t(!1),children:"取消"}),e.jsx(o,{onClick:A,disabled:m,children:m?"保存中...":"保存"})]})]})}):null}export{xs as PersonManagementPage}; diff --git a/dashboard/dist/assets/plugin-config-Gj4DzZjP.js b/dashboard/dist/assets/plugin-config-Gj4DzZjP.js new file mode 100644 index 00000000..70dabe92 --- /dev/null +++ b/dashboard/dist/assets/plugin-config-Gj4DzZjP.js @@ -0,0 +1 @@ +import{r as m,j as e}from"./router-zNjPR4CY.js";import{x as A,y as L,p as $,B as v,g as I,I as E,C as F,L as N,E as ee,S as q,f as V,b as se,d as te,e as ae,X as G,Y as Q,T as fe,O as ve,P as ye,R as Ne,D as be,i as we,j as Ce,k as Se,l as Pe,a3 as ke,af as Oe,ag as Re,ah as Ee}from"./index-CuOHsLf7.js";import{S as re}from"./switch-Kc2EZ0Ga.js";import{S as ne}from"./slider-mDhSC-zv.js";import{T as Te}from"./textarea-8PIujbf-.js";import{B}from"./badge-CDs67obV.js";import{u as Ae,a as X,s as Le,K as $e,P as _e,b as Fe,D as Me,c as ze,S as Ve,v as Be,d as Je,C as He}from"./dnd-BoJ1-vkD.js";import{S as ce,a as le,b as ie,c as oe,d as de}from"./select-DGqIoF9r.js";import{W as J,w as Ie,ao as Ke,v as Ue,R as We,P as K,e as qe,S as Ge,L as U,s as Qe,y as ue,g as Y,ag as Xe,af as Ye,aY as Ze,a6 as De,a7 as es,ah as ss,ai as Z,a as ts,$ as as,a0 as rs}from"./icons-DTcdLw9j.js";import{C as ns}from"./CodeEditor-4JcGD1og.js";import{p as cs}from"./parse-BBzU4wsN.js";import{R as ls,a as is,u as os}from"./restart-overlay-B44c6hlE.js";import{g as ds}from"./installed-CHw5f9lL.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";import"./progress-C6-hh8fF.js";import"./system-api-DeeJapvB.js";async function us(s){const r=await A(`/api/webui/plugins/config/${s}/schema`,{headers:L()}),a=await $(r);if(!a.success)return a;const n=a.data;return!n.success||!n.schema?{success:!1,error:n.message||"获取配置 Schema 失败"}:{success:!0,data:n.schema}}async function xs(s){const r=await A(`/api/webui/plugins/config/${s}`,{headers:L()}),a=await $(r);if(!a.success)return a;const n=a.data;return!n.success||!n.config?{success:!1,error:n.message||"获取配置失败"}:{success:!0,data:n.config}}async function ms(s){const r=await A(`/api/webui/plugins/config/${s}/raw`,{headers:L()}),a=await $(r);if(!a.success)return a;const n=a.data;return!n.success||!n.config?{success:!1,error:n.message||"获取配置失败"}:{success:!0,data:n.config}}async function hs(s,r){const a=await A(`/api/webui/plugins/config/${s}`,{method:"PUT",headers:L(),body:JSON.stringify({config:r})});return await $(a)}async function gs(s,r){const a=await A(`/api/webui/plugins/config/${s}/raw`,{method:"PUT",headers:L(),body:JSON.stringify({config:r})});return await $(a)}async function ps(s){const r=await A(`/api/webui/plugins/config/${s}/reset`,{method:"POST",headers:L()});return await $(r)}async function js(s){const r=await A(`/api/webui/plugins/config/${s}/toggle`,{method:"POST",headers:L()});return await $(r)}function fs({id:s,index:r,itemType:a,itemFields:n,value:u,onChange:c,onRemove:x,disabled:t,canRemove:d,placeholder:i}){const{attributes:y,listeners:j,setNodeRef:b,transform:f,transition:R,isDragging:S}=Je({id:s,disabled:t}),P={transform:He.Transform.toString(f),transition:R};return e.jsxs("div",{ref:b,style:P,className:I("flex items-start gap-2 group",S&&"opacity-50 z-50"),children:[e.jsx("button",{type:"button",className:I("flex-shrink-0 p-2 cursor-grab active:cursor-grabbing","text-muted-foreground hover:text-foreground transition-colors","opacity-0 group-hover:opacity-100 focus:opacity-100",t&&"cursor-not-allowed opacity-30"),...y,...j,children:e.jsx(Ke,{className:"h-4 w-4"})}),e.jsx("div",{className:"flex-1 min-w-0",children:a==="object"&&n?e.jsx(vs,{value:u,onChange:c,fields:n,disabled:t}):a==="number"?e.jsx(E,{type:"number",value:u??"",onChange:k=>c(parseFloat(k.target.value)||0),placeholder:i??`第 ${r+1} 项`,disabled:t,className:"font-mono"}):e.jsx(E,{type:"text",value:u??"",onChange:k=>c(k.target.value),placeholder:i??`第 ${r+1} 项`,disabled:t})}),e.jsx(v,{type:"button",variant:"ghost",size:"icon",onClick:x,disabled:t||!d,className:I("flex-shrink-0 text-muted-foreground hover:text-destructive","opacity-0 group-hover:opacity-100 focus:opacity-100 transition-opacity"),children:e.jsx(Ue,{className:"h-4 w-4"})})]})}function vs({value:s,onChange:r,fields:a,disabled:n}){const u=m.useCallback((x,t)=>{r({...s,[x]:t})},[s,r]),c=(x,t)=>{const d=s?.[x];if(t.type==="boolean"||t.type==="switch")return e.jsxs("div",{className:"flex items-center justify-between py-1",children:[e.jsx(N,{className:"text-xs text-muted-foreground",children:t.label??x}),e.jsx(re,{checked:!!(d??t.default),onCheckedChange:i=>u(x,i),disabled:n})]});if(t.type==="slider"||t.type==="number"&&t.min!=null&&t.max!=null){const i=d??t.default??t.min??0;return e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(N,{className:"text-xs text-muted-foreground",children:t.label??x}),e.jsx("span",{className:"text-xs text-muted-foreground",children:i})]}),e.jsx(ne,{value:[i],onValueChange:y=>u(x,y[0]),min:t.min??0,max:t.max??100,step:t.step??1,disabled:n,className:"py-1"})]})}return t.type==="select"&&t.choices?e.jsxs("div",{className:"space-y-1",children:[e.jsx(N,{className:"text-xs text-muted-foreground",children:t.label??x}),e.jsxs(ce,{value:String(d??t.default??""),onValueChange:i=>u(x,i),disabled:n,children:[e.jsx(le,{className:"h-8 text-sm",children:e.jsx(ie,{placeholder:t.placeholder??"请选择"})}),e.jsx(oe,{children:t.choices.map(i=>e.jsx(de,{value:String(i),children:String(i)},String(i)))})]})]}):t.type==="number"?e.jsxs("div",{className:"space-y-1",children:[e.jsx(N,{className:"text-xs text-muted-foreground",children:t.label??x}),e.jsx(E,{type:"number",value:d??t.default??"",onChange:i=>u(x,parseFloat(i.target.value)||0),placeholder:t.placeholder,disabled:n,className:"h-8 text-sm"})]}):e.jsxs("div",{className:"space-y-1",children:[e.jsx(N,{className:"text-xs text-muted-foreground",children:t.label??x}),e.jsx(E,{type:"text",value:d??t.default??"",onChange:i=>u(x,i.target.value),placeholder:t.placeholder,disabled:n,className:"h-8 text-sm"})]})};return e.jsx(F,{className:"p-3 space-y-2 bg-muted/30",children:Object.entries(a).map(([x,t])=>e.jsx("div",{children:c(x,t)},x))})}function ys({value:s,onChange:r,itemType:a="string",itemFields:n,minItems:u,maxItems:c,disabled:x,placeholder:t}){const d=m.useMemo(()=>Array.isArray(s)?s:typeof s=="string"&&s.trim()?s.split(",").map(h=>h.trim()):[],[s]),[i]=m.useState(()=>new Map),y=m.useCallback(h=>(i.has(h)||i.set(h,`item-${Date.now()}-${h}-${Math.random().toString(36).slice(2)}`),i.get(h)),[i]),j=m.useMemo(()=>{const h=[];for(let g=0;g{const{active:g,over:l}=h;if(l&&g.id!==l.id){const p=j.indexOf(g.id),C=j.indexOf(l.id),T=Fe(d,p,C);r(T)}},[d,j,r]),R=m.useCallback(()=>{if(c!=null&&d.length>=c)return;let h;a==="object"&&n?h=Object.fromEntries(Object.entries(n).map(([g,l])=>[g,l.default??""])):a==="number"?h=0:h="",r([...d,h])},[d,c,a,n,r]),S=m.useCallback((h,g)=>{const l=[...d];l[h]=g,r(l)},[d,r]),P=m.useCallback(h=>{if(u!=null&&d.length<=u)return;const g=d.filter((l,p)=>p!==h);i.delete(h),r(g)},[d,u,i,r]),k=c==null||d.lengthu;return e.jsxs("div",{className:"space-y-2",children:[d.length===0?e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground py-4 justify-center border border-dashed rounded-md",children:[e.jsx(J,{className:"h-4 w-4"}),e.jsx("span",{children:"暂无数据,点击下方按钮添加"})]}):e.jsx(Me,{sensors:b,collisionDetection:ze,onDragEnd:f,children:e.jsx(Ve,{items:j,strategy:Be,children:e.jsx("div",{className:"space-y-2",children:d.map((h,g)=>e.jsx(fs,{id:j[g],index:g,itemType:a,itemFields:n,value:h,onChange:l=>S(g,l),onRemove:()=>P(g),disabled:x,canRemove:_,placeholder:t},j[g]))})})}),e.jsxs(v,{type:"button",variant:"outline",size:"sm",onClick:R,disabled:x||!k,className:"w-full",children:[e.jsx(Ie,{className:"h-4 w-4 mr-1"}),"添加项目",c!==void 0&&e.jsxs("span",{className:"ml-2 text-xs text-muted-foreground",children:["(",d.length,"/",c,")"]})]}),(u!=null||c!=null)&&(u!==null||c!==null)&&e.jsx("p",{className:"text-xs text-muted-foreground text-center",children:u!=null&&c!=null?`允许 ${u} - ${c} 项`:u!=null?`至少 ${u} 项`:`最多 ${c} 项`})]})}function Ns(s,r){const a=r.split(".").filter(Boolean);let n=s;for(const u of a){if(!n||typeof n!="object"||Array.isArray(n))return;n=n[u]}if(!(!n||typeof n!="object"||Array.isArray(n)))return n}function bs(s,r,a,n){const u=r.split(".").filter(Boolean),c={...s};let x=c,t=s;for(const d of u){const i=t?.[d],y=i&&typeof i=="object"&&!Array.isArray(i)?{...i}:{};x[d]=y,x=y,t=i&&typeof i=="object"&&!Array.isArray(i)?i:void 0}return x[a]=n,c}function ws({field:s,value:r,onChange:a}){const[n,u]=m.useState(!1);switch(s.ui_type){case"switch":return e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(N,{children:s.label}),s.hint&&e.jsx("p",{className:"text-xs text-muted-foreground",children:s.hint})]}),e.jsx(re,{checked:!!(r??s.default),onCheckedChange:a,disabled:s.disabled})]});case"number":return e.jsxs("div",{className:"space-y-2",children:[e.jsx(N,{children:s.label}),e.jsx(E,{type:"number",value:r??s.default,onChange:c=>a(parseFloat(c.target.value)||0),min:s.min,max:s.max,step:s.step??1,placeholder:s.placeholder,disabled:s.disabled}),s.hint&&e.jsx("p",{className:"text-xs text-muted-foreground",children:s.hint})]});case"slider":return e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(N,{children:s.label}),e.jsx("span",{className:"text-sm text-muted-foreground",children:r??s.default})]}),e.jsx(ne,{value:[r??s.default],onValueChange:c=>a(c[0]),min:s.min??0,max:s.max??100,step:s.step??1,disabled:s.disabled}),s.hint&&e.jsx("p",{className:"text-xs text-muted-foreground",children:s.hint})]});case"select":return e.jsxs("div",{className:"space-y-2",children:[e.jsx(N,{children:s.label}),e.jsxs(ce,{value:String(r??s.default),onValueChange:a,disabled:s.disabled,children:[e.jsx(le,{children:e.jsx(ie,{placeholder:s.placeholder??"请选择"})}),e.jsx(oe,{children:s.choices?.map(c=>e.jsx(de,{value:String(c),children:String(c)},String(c)))})]}),s.hint&&e.jsx("p",{className:"text-xs text-muted-foreground",children:s.hint})]});case"textarea":return e.jsxs("div",{className:"space-y-2",children:[e.jsx(N,{children:s.label}),e.jsx(Te,{value:r??s.default,onChange:c=>a(c.target.value),placeholder:s.placeholder,rows:s.rows??3,disabled:s.disabled}),s.hint&&e.jsx("p",{className:"text-xs text-muted-foreground",children:s.hint})]});case"password":return e.jsxs("div",{className:"space-y-2",children:[e.jsx(N,{children:s.label}),e.jsxs("div",{className:"relative",children:[e.jsx(E,{type:n?"text":"password",value:r??"",onChange:c=>a(c.target.value),placeholder:s.placeholder,disabled:s.disabled,className:"pr-10"}),e.jsx(v,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full px-3",onClick:()=>u(!n),children:n?e.jsx(as,{className:"h-4 w-4"}):e.jsx(rs,{className:"h-4 w-4"})})]}),s.hint&&e.jsx("p",{className:"text-xs text-muted-foreground",children:s.hint})]});case"list":return e.jsxs("div",{className:"space-y-2",children:[e.jsx(N,{children:s.label}),e.jsx(ys,{value:Array.isArray(r)?r:Array.isArray(s.default)?s.default:[],onChange:c=>a(c),itemType:s.item_type??"string",itemFields:s.item_fields,minItems:s.min_items,maxItems:s.max_items,disabled:s.disabled,placeholder:s.placeholder}),s.hint&&e.jsx("p",{className:"text-xs text-muted-foreground",children:s.hint})]});default:return e.jsxs("div",{className:"space-y-2",children:[e.jsx(N,{children:s.label}),e.jsx(E,{type:"text",value:r??s.default??"",onChange:c=>a(c.target.value),placeholder:s.placeholder,maxLength:s.max_length,disabled:s.disabled}),s.hint&&e.jsx("p",{className:"text-xs text-muted-foreground",children:s.hint})]})}}function D({section:s,config:r,onChange:a}){const[n,u]=m.useState(!s.collapsed),c=Ns(r,s.name),x=Object.entries(s.fields).filter(([,t])=>!t.hidden).sort(([,t],[,d])=>t.order-d.order);return e.jsx(Oe,{open:n,onOpenChange:u,children:e.jsxs(F,{children:[e.jsx(Re,{asChild:!0,children:e.jsxs(se,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[n?e.jsx(ts,{className:"h-4 w-4 text-muted-foreground"}):e.jsx(ue,{className:"h-4 w-4 text-muted-foreground"}),e.jsx(te,{className:"text-lg",children:s.title})]}),e.jsxs(B,{variant:"secondary",className:"text-xs",children:[x.length," 项"]})]}),s.description&&e.jsx(ae,{className:"ml-6",children:s.description})]})}),e.jsx(Ee,{children:e.jsx(V,{className:"space-y-4 pt-0",children:x.map(([t,d])=>e.jsx(ws,{field:d,value:c?.[t],onChange:i=>a(s.name,t,i),sectionName:s.name},t))})})]})})}function Cs({plugin:s,onBack:r}){const{toast:a}=ee(),{triggerRestart:n,isRestarting:u}=os(),[c,x]=m.useState("visual"),[t,d]=m.useState(null),[i,y]=m.useState({}),[j,b]=m.useState({}),[f,R]=m.useState(""),[S,P]=m.useState(""),[k,_]=m.useState(!0),[h,g]=m.useState(!1),[l,p]=m.useState(!1),[C,T]=m.useState(!1),[xe,M]=m.useState(!1),z=m.useCallback(async()=>{_(!0);try{const[o,w,O]=await Promise.all([us(s.id),xs(s.id),ms(s.id)]);if(!o.success){a({title:"加载配置架构失败",description:o.error,variant:"destructive"});return}if(!w.success){a({title:"加载配置数据失败",description:w.error,variant:"destructive"});return}if(!O.success){a({title:"加载原始配置失败",description:O.error,variant:"destructive"});return}d(o.data),y(w.data),b(JSON.parse(JSON.stringify(w.data))),R(O.data),P(O.data)}catch(o){a({title:"加载配置失败",description:o instanceof Error?o.message:"未知错误",variant:"destructive"})}finally{_(!1)}},[s.id,a]);m.useEffect(()=>{z()},[z]),m.useEffect(()=>{p(c==="visual"?JSON.stringify(i)!==JSON.stringify(j):f!==S)},[i,j,f,S,c]);const W=(o,w,O)=>{y(je=>bs(je,o,w,O))},me=async()=>{g(!0);try{if(c==="source"){try{cs(f)}catch(o){T(!0),a({title:"TOML 格式错误",description:o instanceof Error?o.message:"无法解析 TOML 配置,请检查语法",variant:"destructive"}),g(!1);return}await gs(s.id,f),P(f),T(!1)}else await hs(s.id,i),b(JSON.parse(JSON.stringify(i)));a({title:"配置已保存",description:"更改将在插件重新加载后生效"})}catch(o){a({title:"保存失败",description:o instanceof Error?o.message:"未知错误",variant:"destructive"})}finally{g(!1)}},he=async()=>{try{const o=await ps(s.id);if(!o.success){a({title:"重置失败",description:o.error,variant:"destructive"});return}a({title:"配置已重置",description:"下次加载插件时将使用默认配置"}),M(!1),z()}catch(o){a({title:"重置失败",description:o instanceof Error?o.message:"未知错误",variant:"destructive"})}},ge=async()=>{try{const o=await js(s.id);if(!o.success){a({title:"切换失败",description:o.error,variant:"destructive"});return}a({title:o.data.message,description:o.data.note}),z()}catch(o){a({title:"切换状态失败",description:o instanceof Error?o.message:"未知错误",variant:"destructive"})}};if(k)return e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx(U,{className:"h-8 w-8 animate-spin text-muted-foreground"})});if(!t)return e.jsxs("div",{className:"flex flex-col items-center justify-center h-64 space-y-4",children:[e.jsx(J,{className:"h-12 w-12 text-muted-foreground"}),e.jsx("p",{className:"text-muted-foreground",children:"无法加载配置"}),e.jsxs(v,{onClick:r,variant:"outline",children:[e.jsx(Y,{className:"h-4 w-4 mr-2"}),"返回"]})]});const pe=Object.values(t.sections).sort((o,w)=>o.order-w.order),H=i.plugin?.enabled!==!1;return e.jsxs("div",{className:"space-y-4 sm:space-y-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(v,{variant:"ghost",size:"icon",onClick:r,children:e.jsx(Y,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl sm:text-3xl font-bold",children:t.plugin_info.name||s.manifest.name}),e.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[e.jsx(B,{variant:H?"default":"secondary",children:H?"已启用":"已禁用"}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:["v",t.plugin_info.version||s.manifest.version]})]})]})]}),e.jsxs("div",{className:"flex gap-2 ml-10 sm:ml-0",children:[e.jsx(v,{variant:"outline",size:"sm",onClick:()=>x(c==="visual"?"source":"visual"),children:c==="visual"?e.jsxs(e.Fragment,{children:[e.jsx(Xe,{className:"h-4 w-4 mr-2"}),"源代码"]}):e.jsxs(e.Fragment,{children:[e.jsx(Ye,{className:"h-4 w-4 mr-2"}),"可视化"]})}),e.jsxs(v,{variant:"outline",size:"sm",onClick:()=>n(),disabled:u,children:[e.jsx(Ze,{className:`h-4 w-4 mr-2 ${u?"animate-spin":""}`}),"重启麦麦"]}),e.jsxs(v,{variant:"outline",size:"sm",onClick:ge,children:[e.jsx(De,{className:"h-4 w-4 mr-2"}),H?"禁用":"启用"]}),e.jsxs(v,{variant:"outline",size:"sm",onClick:()=>M(!0),children:[e.jsx(es,{className:"h-4 w-4 mr-2"}),"重置"]}),e.jsxs(v,{size:"sm",onClick:me,disabled:!l||h,children:[h?e.jsx(U,{className:"h-4 w-4 mr-2 animate-spin"}):e.jsx(ss,{className:"h-4 w-4 mr-2"}),"保存"]})]})]}),l&&e.jsx(F,{className:"border-orange-200 bg-orange-50 dark:bg-orange-950/20 dark:border-orange-900",children:e.jsx(V,{className:"py-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Z,{className:"h-4 w-4 text-orange-600"}),e.jsx("p",{className:"text-sm text-orange-800 dark:text-orange-200",children:"有未保存的更改"})]})})}),c==="source"&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs(G,{children:[e.jsx(J,{className:"h-4 w-4"}),e.jsxs(Q,{children:[e.jsx("strong",{children:"源代码模式(高级功能):"}),"直接编辑 TOML 配置文件。保存时会验证格式,只有格式正确才能保存。",C&&e.jsx("span",{className:"text-destructive font-semibold ml-2",children:"⚠️ 上次保存失败,请检查 TOML 格式"})]})]}),e.jsx(ns,{value:f,onChange:o=>{R(o),C&&T(!1)},language:"toml",height:"calc(100vh - 350px)",minHeight:"500px",placeholder:"TOML 配置内容"})]}),c==="visual"&&e.jsxs(e.Fragment,{children:[e.jsxs(G,{children:[e.jsx(Z,{className:"h-4 w-4"}),e.jsxs(Q,{children:[e.jsx("strong",{children:"提示:"}),"如果插件当前未加载或未启用,WebUI 适配器的高级插件可视化编辑功能可能会不可用。 请确保插件已启用并成功加载后,再进行配置编辑。"]})]}),t.layout.type==="tabs"&&t.layout.tabs.length>0?e.jsxs(fe,{defaultValue:t.layout.tabs[0]?.id,children:[e.jsx(ve,{children:t.layout.tabs.map(o=>e.jsxs(ye,{value:o.id,children:[o.title,o.badge&&e.jsx(B,{variant:"secondary",className:"ml-2 text-xs",children:o.badge})]},o.id))}),t.layout.tabs.map(o=>e.jsx(Ne,{value:o.id,className:"space-y-4 mt-4",children:o.sections.map(w=>{const O=t.sections[w];return O?e.jsx(D,{section:O,config:i,onChange:W},w):null})},o.id))]}):e.jsx("div",{className:"space-y-4",children:pe.map(o=>e.jsx(D,{section:o,config:i,onChange:W},o.name))})]}),e.jsx(be,{open:xe,onOpenChange:M,children:e.jsxs(we,{children:[e.jsxs(Ce,{children:[e.jsx(Se,{children:"确认重置配置"}),e.jsx(Pe,{children:"这将删除当前配置文件,下次加载插件时将使用默认配置。此操作不可撤销。"})]}),e.jsxs(ke,{children:[e.jsx(v,{variant:"outline",onClick:()=>M(!1),children:"取消"}),e.jsx(v,{variant:"destructive",onClick:he,children:"确认重置"})]})]})})]})}function Ks(){return e.jsx(ls,{children:e.jsx(Ss,{})})}function Ss(){const{toast:s}=ee(),[r,a]=m.useState([]),[n,u]=m.useState(!0),[c,x]=m.useState(""),[t,d]=m.useState(null),i=async()=>{u(!0);try{const l=await ds();if(!l.success){s({title:"加载插件列表失败",description:l.error,variant:"destructive"});return}a(l.data)}catch(l){s({title:"加载插件列表失败",description:l instanceof Error?l.message:"未知错误",variant:"destructive"})}finally{u(!1)}};m.useEffect(()=>{i()},[]);const j=r.filter(l=>{const p=c.toLowerCase();return l.id.toLowerCase().includes(p)||l.manifest.name.toLowerCase().includes(p)||l.manifest.description?.toLowerCase().includes(p)}).filter((l,p,C)=>p===C.findIndex(T=>T.id===l.id)),b=l=>l.disabled===!0||l.enabled===!1,f=l=>!b(l)&&(l.load_status==="success"||l.loaded===!0),R=l=>!b(l)&&!f(l),S=r.length,P=r.filter(b).length,k=S-P,_=r.filter(f).length,h=r.filter(R).length,g=l=>b(l)?{dotClassName:"bg-muted-foreground/45",label:"已禁用"}:f(l)?{dotClassName:"bg-emerald-500 shadow-[0_0_0_3px_rgba(16,185,129,0.16)]",label:"加载成功"}:{dotClassName:"bg-red-500 shadow-[0_0_0_3px_rgba(239,68,68,0.16)]",label:"加载失败"};return t?e.jsxs(e.Fragment,{children:[e.jsx(q,{className:"h-full",children:e.jsx("div",{className:"p-4 sm:p-6",children:e.jsx(Cs,{plugin:t,onBack:()=>d(null)})})}),e.jsx(is,{})]}):e.jsx(q,{className:"h-full",children:e.jsxs("div",{className:"space-y-4 sm:space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl sm:text-3xl font-bold",children:"插件配置"}),e.jsx("p",{className:"text-muted-foreground mt-1 sm:mt-2 text-sm sm:text-base",children:"管理和配置已安装的插件"})]}),e.jsxs(v,{variant:"outline",size:"sm",onClick:i,children:[e.jsx(We,{className:`h-4 w-4 mr-2 ${n?"animate-spin":""}`}),"刷新"]})]}),e.jsx(F,{children:e.jsxs(V,{className:"space-y-3 p-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2 text-sm",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(K,{className:"h-4 w-4 text-muted-foreground"}),"已安装 ",e.jsx("strong",{children:S})," 个插件"]}),e.jsxs("span",{children:["已启用 ",e.jsx("strong",{className:"text-emerald-600",children:k})," 个"]}),e.jsxs("span",{children:["已禁用 ",e.jsx("strong",{className:"text-muted-foreground",children:P})," 个"]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2 border-t pt-3 text-sm",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(qe,{className:"h-4 w-4 text-emerald-600"}),"加载成功 ",e.jsx("strong",{className:"text-emerald-600",children:_})," 个"]}),e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(J,{className:"h-4 w-4 text-red-600"}),"加载失败 ",e.jsx("strong",{className:"text-red-600",children:h})," 个"]})]})]})}),e.jsxs("div",{className:"relative",children:[e.jsx(Ge,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(E,{placeholder:"搜索插件...",value:c,onChange:l=>x(l.target.value),className:"pl-9"})]}),e.jsxs(F,{children:[e.jsxs(se,{children:[e.jsx(te,{children:"已安装的插件"}),e.jsx(ae,{children:"点击插件查看和编辑配置"})]}),e.jsx(V,{children:n?e.jsx("div",{className:"flex items-center justify-center py-12",children:e.jsx(U,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):j.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 space-y-4",children:[e.jsx(K,{className:"h-16 w-16 text-muted-foreground/50"}),e.jsxs("div",{className:"text-center space-y-2",children:[e.jsx("p",{className:"text-lg font-medium text-muted-foreground",children:c?"没有找到匹配的插件":"暂无已安装的插件"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:c?"尝试其他搜索关键词":"前往插件市场安装插件"})]})]}):e.jsx("div",{className:"space-y-2",children:j.map(l=>{const p=g(l);return e.jsxs("div",{className:`flex items-center justify-between p-4 rounded-lg border hover:bg-muted/50 cursor-pointer transition-colors ${b(l)?"opacity-70":""}`,role:"button",tabIndex:0,onClick:()=>d(l),onKeyDown:C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),d(l))},children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("span",{className:`h-2.5 w-2.5 rounded-full flex-shrink-0 ${p.dotClassName}`,title:p.label,"aria-label":p.label}),e.jsx("div",{className:"h-10 w-10 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:e.jsx(K,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h3",{className:"font-medium truncate",children:l.manifest.name}),e.jsxs(B,{variant:"secondary",className:"text-xs flex-shrink-0",children:["v",l.manifest.version]})]}),e.jsx("p",{className:"text-sm text-muted-foreground truncate",children:l.manifest.description||"暂无描述"})]})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[e.jsx(v,{variant:"ghost",size:"sm",children:e.jsx(Qe,{className:"h-4 w-4"})}),e.jsx(ue,{className:"h-4 w-4 text-muted-foreground"})]})]},l.id)})})})]})]})})}export{Ks as PluginConfigPage}; diff --git a/dashboard/dist/assets/plugin-detail-C98YfI36.js b/dashboard/dist/assets/plugin-detail-C98YfI36.js new file mode 100644 index 00000000..34a08041 --- /dev/null +++ b/dashboard/dist/assets/plugin-detail-C98YfI36.js @@ -0,0 +1 @@ +import{r,j as e,i as xe,x as ue}from"./router-zNjPR4CY.js";import{E as re,B as m,D as he,h as fe,i as pe,j as ge,k as je,l as Ne,a3 as ve,C as _,S as te,b as P,d as I,e as we,f as O,x as q}from"./index-CuOHsLf7.js";import{B as S}from"./badge-CDs67obV.js";import{e as ye,l as be,h as _e,j as Se,a as ke,g as Ce,i as Ee,b as Re,u as De,d as Pe,r as Ie}from"./plugin-stats-Bq_VsOhk.js";import{g as U,c as G,a as z}from"./installed-CHw5f9lL.js";import{M as $e}from"./markdown-renderer-CrKRiZ7X.js";import{T as Le}from"./textarea-8PIujbf-.js";import{aH as B,aX as k,a_ as K,a$ as ae,g as Q,L as $,W as ie,R as ne,v as Me,e as Te,a1 as Ae,a5 as Z,P as Fe,aB as Oe,J as Ue,b0 as Ge,ai as ze,am as Be}from"./icons-DTcdLw9j.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";import"./unified-ws-CBnrIqHW.js";import"./markdown-6e5N06bH.js";function Ve({pluginId:u,compact:f=!1}){const[t,s]=r.useState(null),[V,C]=r.useState(!0),[l,L]=r.useState(0),[p,M]=r.useState(""),[j,N]=r.useState(!1),{toast:x}=re(),o=async()=>{C(!0);const a=await ye(u);a&&s(a),C(!1)};r.useEffect(()=>{o()},[u]);const H=async()=>{const a=await be(u);a.success?(x({title:"已点赞",description:"感谢你的支持!"}),o()):x({title:"点赞失败",description:a.error||"未知错误",variant:"destructive"})},E=async()=>{const a=await _e(u);a.success?(x({title:"已反馈",description:"感谢你的反馈!"}),o()):x({title:"操作失败",description:a.error||"未知错误",variant:"destructive"})},J=async()=>{if(l===0){x({title:"请选择评分",description:"至少选择 1 颗星",variant:"destructive"});return}const a=await Se(u,l,p||void 0);a.success?(x({title:"评分成功",description:"感谢你的评价!"}),N(!1),L(0),M(""),o()):x({title:"评分失败",description:a.error||"未知错误",variant:"destructive"})};return V?e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(B,{className:"h-4 w-4"}),e.jsx("span",{children:"-"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(k,{className:"h-4 w-4"}),e.jsx("span",{children:"-"})]})]}):t?f?e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center gap-1",title:`下载量: ${t.downloads.toLocaleString()}`,children:[e.jsx(B,{className:"h-4 w-4"}),e.jsx("span",{children:t.downloads.toLocaleString()})]}),e.jsxs("div",{className:"flex items-center gap-1",title:`评分: ${t.rating.toFixed(1)} (${t.rating_count} 条评价)`,children:[e.jsx(k,{className:"h-4 w-4 fill-yellow-400 text-yellow-400"}),e.jsx("span",{children:t.rating.toFixed(1)})]}),e.jsxs("div",{className:"flex items-center gap-1",title:`点赞数: ${t.likes}`,children:[e.jsx(K,{className:"h-4 w-4"}),e.jsx("span",{children:t.likes})]})]}):e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center p-3 rounded-lg border bg-card",children:[e.jsx(B,{className:"h-5 w-5 text-muted-foreground mb-1"}),e.jsx("span",{className:"text-2xl font-bold",children:t.downloads.toLocaleString()}),e.jsx("span",{className:"text-xs text-muted-foreground",children:"下载量"})]}),e.jsxs("div",{className:"flex flex-col items-center p-3 rounded-lg border bg-card",children:[e.jsx(k,{className:"h-5 w-5 text-yellow-400 mb-1 fill-yellow-400"}),e.jsx("span",{className:"text-2xl font-bold",children:t.rating.toFixed(1)}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.rating_count," 条评价"]})]}),e.jsxs("div",{className:"flex flex-col items-center p-3 rounded-lg border bg-card",children:[e.jsx(K,{className:"h-5 w-5 text-green-500 mb-1"}),e.jsx("span",{className:"text-2xl font-bold",children:t.likes}),e.jsx("span",{className:"text-xs text-muted-foreground",children:"点赞"})]}),e.jsxs("div",{className:"flex flex-col items-center p-3 rounded-lg border bg-card",children:[e.jsx(ae,{className:"h-5 w-5 text-red-500 mb-1"}),e.jsx("span",{className:"text-2xl font-bold",children:t.dislikes}),e.jsx("span",{className:"text-xs text-muted-foreground",children:"点踩"})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(m,{variant:"outline",size:"sm",onClick:H,children:[e.jsx(K,{className:"h-4 w-4 mr-1"}),"点赞"]}),e.jsxs(m,{variant:"outline",size:"sm",onClick:E,children:[e.jsx(ae,{className:"h-4 w-4 mr-1"}),"点踩"]}),e.jsxs(he,{open:j,onOpenChange:N,children:[e.jsx(fe,{asChild:!0,children:e.jsxs(m,{variant:"default",size:"sm",children:[e.jsx(k,{className:"h-4 w-4 mr-1"}),"评分"]})}),e.jsxs(pe,{children:[e.jsxs(ge,{children:[e.jsx(je,{children:"为插件评分"}),e.jsx(Ne,{children:"分享你的使用体验,帮助其他用户"})]}),e.jsxs("div",{className:"space-y-4 py-4",children:[e.jsxs("div",{className:"flex flex-col items-center gap-2",children:[e.jsx("div",{className:"flex gap-2",children:[1,2,3,4,5].map(a=>e.jsx("button",{onClick:()=>L(a),className:"focus:outline-none",children:e.jsx(k,{className:`h-8 w-8 transition-colors ${a<=l?"fill-yellow-400 text-yellow-400":"text-muted-foreground hover:text-yellow-300"}`})},a))}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:[l===0&&"点击星星进行评分",l===1&&"很差",l===2&&"一般",l===3&&"还行",l===4&&"不错",l===5&&"非常好"]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"plugin-rating-comment",className:"text-sm font-medium mb-2 block",children:"评论(可选)"}),e.jsx(Le,{value:p,id:"plugin-rating-comment",onChange:a=>M(a.target.value),placeholder:"分享你的使用体验...",rows:4,maxLength:500}),e.jsxs("div",{className:"text-xs text-muted-foreground mt-1 text-right",children:[p.length," / 500"]})]})]}),e.jsxs(ve,{children:[e.jsx(m,{variant:"outline",onClick:()=>N(!1),children:"取消"}),e.jsx(m,{onClick:J,disabled:l===0,children:"提交评分"})]})]})]})]}),t.recent_ratings&&t.recent_ratings.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"text-sm font-semibold",children:"最近评价"}),e.jsx("div",{className:"space-y-3",children:t.recent_ratings.map((a,v)=>e.jsxs("div",{className:"p-3 rounded-lg border bg-muted/50",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("div",{className:"flex gap-1",children:[1,2,3,4,5].map(g=>e.jsx(k,{className:`h-3 w-3 ${g<=a.rating?"fill-yellow-400 text-yellow-400":"text-muted-foreground"}`},g))}),e.jsx("span",{className:"text-xs text-muted-foreground",children:new Date(a.created_at).toLocaleDateString()})]}),a.comment&&e.jsx("p",{className:"text-sm text-muted-foreground",children:a.comment})]},v))})]})]}):null}const He={"Group Management":"群组管理","Entertainment & Interaction":"娱乐互动","Utility Tools":"实用工具","Content Generation":"内容生成",Multimedia:"多媒体","External Integration":"外部集成","Data Analysis & Insights":"数据分析与洞察",Other:"其他"};function ns(){const u=xe(),f=ue({strict:!1}),{toast:t}=re(),[s,V]=r.useState(null),[C,l]=r.useState(""),[L,p]=r.useState(!0),[M,j]=r.useState(!0),[N,x]=r.useState(null),[o,H]=r.useState(null),[E,J]=r.useState(null),[a,v]=r.useState(!1),[g,T]=r.useState(),[w,y]=r.useState(!1);r.useEffect(()=>{(async()=>{if(!f.pluginId){x("缺少插件 ID"),p(!1);return}try{p(!0),x(null);const n=await q("/api/webui/plugins/fetch-raw",{method:"POST",body:JSON.stringify({owner:"Mai-with-u",repo:"plugin-repo",branch:"main",file_path:"plugin_details.json"})});if(!n.ok)throw new Error("获取插件列表失败");const c=await n.json();if(!c.success||!c.data)throw new Error(c.error||"获取插件列表失败");const R=JSON.parse(c.data).find(se=>(se.manifest?.id||se.id)===f.pluginId);if(!R)throw new Error("未找到该插件");const d=R.manifest||{},h=d.id||R.id,b=d.repository_url||d.urls?.repository,D=d.homepage_url||d.urls?.homepage,me={id:h,manifest:{...d,id:h,homepage_url:D,repository_url:b,default_locale:d.default_locale||d.i18n?.default_locale||"zh-CN",locales_path:d.locales_path||d.i18n?.locales_path},downloads:0,rating:0,review_count:0,installed:!1,published_at:new Date().toISOString(),updated_at:new Date().toISOString()};V(me);const[X,Y,F]=await Promise.all([ke(),Ce(),U()]);if(X.success?H(X.data):t({title:"Git 状态检查失败",description:X.error,variant:"destructive"}),Y.success?J(Y.data):t({title:"版本获取失败",description:Y.error,variant:"destructive"}),!F.success){t({title:"获取已安装插件失败",description:F.error,variant:"destructive"});return}v(G(h,F.data)),T(z(h,F.data))}catch(n){x(n instanceof Error?n.message:"加载失败")}finally{p(!1)}})()},[f.pluginId]),r.useEffect(()=>{(async()=>{if(!s?.manifest?.repository_url){j(!1);return}try{if(j(!0),a&&f.pluginId)try{const b=await q(`/api/webui/plugins/local-readme/${s.id}`);if(b.ok){const D=await b.json();if(D.success&&D.data){l(D.data),j(!1);return}}}catch(b){console.log("本地 README 获取失败,尝试远程获取:",b)}const n=s.manifest.repository_url.match(/github\.com\/([^/]+)\/([^/\s]+)/);if(!n){l("无法解析仓库地址");return}const[,c,A]=n,R=A.replace(/\.git$/,""),d=await q("/api/webui/plugins/fetch-raw",{method:"POST",body:JSON.stringify({owner:c,repo:R,branch:"main",file_path:"README.md"})});if(!d.ok)throw new Error("获取 README 失败");const h=await d.json();h.success&&h.data?l(h.data):l("该插件暂无 README 文档")}catch(n){console.error("加载 README 失败:",n),l("加载 README 失败")}finally{j(!1)}})()},[s,a,f.pluginId]);const ee=()=>!s||!a||!g?!1:g!==s.manifest.version,le=()=>!s||!E?!0:Ee(s.manifest.host_application.min_version,s.manifest.host_application.max_version,E),ce=async()=>{if(!(!s||!o?.installed))try{y(!0);const i=s.manifest.repository_url||s.manifest.urls?.repository||"",n=await Pe(s.id,i,"main");if(!n.success){t({title:"安装失败",description:n.error,variant:"destructive"});return}Ie(s.id).catch(A=>{console.warn("Failed to record download:",A)}),t({title:"安装成功",description:`${s.manifest.name} 已成功安装`});const c=await U();if(!c.success){t({title:"获取已安装插件失败",description:c.error,variant:"destructive"});return}v(G(s.id,c.data)),T(z(s.id,c.data))}catch(i){t({title:"安装失败",description:i instanceof Error?i.message:"未知错误",variant:"destructive"})}finally{y(!1)}},oe=async()=>{if(s)try{y(!0);const i=await De(s.id);if(!i.success){t({title:"卸载失败",description:i.error,variant:"destructive"});return}t({title:"卸载成功",description:`${s.manifest.name} 已成功卸载`});const n=await U();if(!n.success){t({title:"获取已安装插件失败",description:n.error,variant:"destructive"});return}v(G(s.id,n.data)),T(z(s.id,n.data))}catch(i){t({title:"卸载失败",description:i instanceof Error?i.message:"未知错误",variant:"destructive"})}finally{y(!1)}},de=async()=>{if(!(!s||!o?.installed))try{y(!0);const i=s.manifest.repository_url||s.manifest.urls?.repository||"",n=await Re(s.id,i,"main");if(!n.success){t({title:"更新失败",description:n.error,variant:"destructive"});return}t({title:"更新成功",description:`${s.manifest.name} 已从 ${n.data.old_version} 更新到 ${n.data.new_version}`});const c=await U();if(!c.success){t({title:"获取已安装插件失败",description:c.error,variant:"destructive"});return}v(G(s.id,c.data)),T(z(s.id,c.data))}catch(i){t({title:"更新失败",description:i instanceof Error?i.message:"未知错误",variant:"destructive"})}finally{y(!1)}};if(L)return e.jsxs("div",{className:"space-y-4 sm:space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(m,{variant:"ghost",size:"icon",onClick:()=>u({to:"/plugins"}),children:e.jsx(Q,{className:"h-5 w-5"})}),e.jsx("div",{children:e.jsx("h1",{className:"text-2xl sm:text-3xl font-bold",children:"插件详情"})})]}),e.jsxs("div",{className:"flex items-center justify-center py-12",children:[e.jsx($,{className:"h-8 w-8 animate-spin text-muted-foreground"}),e.jsx("span",{className:"ml-3 text-muted-foreground",children:"加载插件信息中..."})]})]});if(N||!s)return e.jsxs("div",{className:"space-y-4 sm:space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(m,{variant:"ghost",size:"icon",onClick:()=>u({to:"/plugins"}),children:e.jsx(Q,{className:"h-5 w-5"})}),e.jsx("div",{children:e.jsx("h1",{className:"text-2xl sm:text-3xl font-bold",children:"插件详情"})})]}),e.jsx(_,{className:"p-6",children:e.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[e.jsx(ie,{className:"h-12 w-12 text-destructive mb-4"}),e.jsx("h3",{className:"text-lg font-semibold mb-2",children:"加载失败"}),e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:N}),e.jsx(m,{onClick:()=>u({to:"/plugins"}),children:"返回插件列表"})]})})]});const W=le();return e.jsxs("div",{className:"space-y-4 sm:space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(m,{variant:"ghost",size:"icon",onClick:()=>u({to:"/plugins"}),className:"shrink-0",children:e.jsx(Q,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl sm:text-3xl font-bold",children:"插件详情"}),e.jsx("p",{className:"text-muted-foreground mt-1 sm:mt-2 text-sm sm:text-base",children:s.manifest.name})]})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a?e.jsxs(e.Fragment,{children:[ee()?e.jsx(m,{disabled:!o?.installed||w,onClick:de,title:o?.installed?void 0:"Git 未安装",children:w?e.jsxs(e.Fragment,{children:[e.jsx($,{className:"h-4 w-4 mr-2 animate-spin"}),"更新中..."]}):e.jsxs(e.Fragment,{children:[e.jsx(ne,{className:"h-4 w-4 mr-2"}),"更新"]})}):null,e.jsx(m,{variant:"destructive",disabled:!o?.installed||w,onClick:oe,title:o?.installed?void 0:"Git 未安装",children:w?e.jsxs(e.Fragment,{children:[e.jsx($,{className:"h-4 w-4 mr-2 animate-spin"}),"卸载中..."]}):e.jsxs(e.Fragment,{children:[e.jsx(Me,{className:"h-4 w-4 mr-2"}),"卸载"]})})]}):e.jsx(m,{disabled:!o?.installed||!W||w,onClick:ce,title:o?.installed?W?void 0:`不兼容当前版本 (需要 ${s.manifest.host_application.min_version}${s.manifest.host_application.max_version?` - ${s.manifest.host_application.max_version}`:"+"},当前 ${E?.version})`:"Git 未安装",children:w?e.jsxs(e.Fragment,{children:[e.jsx($,{className:"h-4 w-4 mr-2 animate-spin"}),"安装中..."]}):e.jsxs(e.Fragment,{children:[e.jsx(B,{className:"h-4 w-4 mr-2"}),"安装"]})})})]}),e.jsx(te,{className:"h-[calc(100vh-200px)] sm:h-[calc(100vh-220px)]",children:e.jsxs("div",{className:"space-y-6 pr-4",children:[e.jsx(_,{children:e.jsx(P,{children:e.jsx("div",{className:"flex items-start justify-between gap-4",children:e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[e.jsx(I,{className:"text-2xl",children:s.manifest.name}),e.jsxs(S,{variant:"secondary",className:"text-sm",children:["v",s.manifest.version]}),a&&e.jsxs(S,{variant:"default",className:"text-sm",children:[e.jsx(Te,{className:"h-3 w-3 mr-1"}),"已安装 ",g&&`(v${g})`]}),ee()&&e.jsxs(S,{variant:"outline",className:"text-sm border-orange-500 text-orange-500",children:[e.jsx(ne,{className:"h-3 w-3 mr-1"}),"可更新"]}),!W&&e.jsxs(S,{variant:"destructive",className:"text-sm",children:[e.jsx(ie,{className:"h-3 w-3 mr-1"}),"不兼容"]})]}),e.jsx(we,{className:"text-base",children:s.manifest.description})]})})})}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"lg:col-span-1 space-y-6",children:[e.jsxs(_,{children:[e.jsx(P,{children:e.jsx(I,{className:"text-lg",children:"统计信息"})}),e.jsx(O,{children:e.jsx(Ve,{pluginId:s.id})})]}),e.jsxs(_,{children:[e.jsx(P,{children:e.jsx(I,{className:"text-lg",children:"基本信息"})}),e.jsx(O,{className:"space-y-4",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(Ae,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{className:"text-muted-foreground",children:"作者:"}),e.jsx("span",{className:"font-medium",children:s.manifest.author?.name||"Unknown"}),s.manifest.author?.url&&e.jsx("a",{href:s.manifest.author.url,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:e.jsx(Z,{className:"h-3 w-3"})})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(Fe,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{className:"text-muted-foreground",children:"版本:"}),e.jsxs("span",{className:"font-medium",children:["v",s.manifest.version]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(Oe,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{className:"text-muted-foreground",children:"许可证:"}),e.jsx("span",{className:"font-medium",children:s.manifest.license})]}),s.manifest.homepage_url&&e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(Ue,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{className:"text-muted-foreground",children:"主页:"}),e.jsxs("a",{href:s.manifest.homepage_url,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline flex items-center gap-1",children:["访问",e.jsx(Z,{className:"h-3 w-3"})]})]}),s.manifest.repository_url&&e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(Ge,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{className:"text-muted-foreground",children:"仓库:"}),e.jsxs("a",{href:s.manifest.repository_url,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline flex items-center gap-1",children:["GitHub",e.jsx(Z,{className:"h-3 w-3"})]})]}),e.jsxs("div",{className:"pt-2 border-t",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm mb-2",children:[e.jsx(ze,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{className:"text-muted-foreground",children:"支持版本:"})]}),e.jsxs("div",{className:"text-sm pl-6 font-medium",children:[s.manifest.host_application.min_version,s.manifest.host_application.max_version?` - ${s.manifest.host_application.max_version}`:" - 最新版本"]})]})]})})]}),(s.manifest.categories||s.manifest.keywords)&&e.jsxs(_,{children:[e.jsx(P,{children:e.jsx(I,{className:"text-lg",children:"分类与标签"})}),e.jsxs(O,{className:"space-y-4",children:[s.manifest.categories&&s.manifest.categories.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"分类"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:s.manifest.categories.map(i=>e.jsx(S,{variant:"secondary",children:He[i]||i},i))})]}),s.manifest.keywords&&s.manifest.keywords.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"标签"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:s.manifest.keywords.map(i=>e.jsxs(S,{variant:"outline",className:"text-xs",children:[e.jsx(Be,{className:"h-3 w-3 mr-1"}),i]},i))})]})]})]})]}),e.jsxs(_,{className:"lg:col-span-2",children:[e.jsx(P,{children:e.jsx(I,{className:"text-lg",children:"插件说明"})}),e.jsx(O,{children:e.jsx(te,{className:"h-[600px] pr-4",children:M?e.jsxs("div",{className:"flex items-center justify-center py-12",children:[e.jsx($,{className:"h-6 w-6 animate-spin text-muted-foreground"}),e.jsx("span",{className:"ml-3 text-sm text-muted-foreground",children:"加载说明文档中..."})]}):C?e.jsx($e,{content:C}):e.jsx("div",{className:"text-center text-muted-foreground py-12",children:"暂无说明文档"})})})]})]})]})})]})}export{ns as PluginDetailPage}; diff --git a/dashboard/dist/assets/plugin-mirrors-Chrh5WMR.js b/dashboard/dist/assets/plugin-mirrors-Chrh5WMR.js new file mode 100644 index 00000000..494228a9 --- /dev/null +++ b/dashboard/dist/assets/plugin-mirrors-Chrh5WMR.js @@ -0,0 +1 @@ +import{i as Q,r as d,j as e}from"./router-zNjPR4CY.js";import{E as V,x,S as X,B as n,C as f,D as F,i as O,j as P,k as z,l as I,L as r,I as c,a3 as M}from"./index-CuOHsLf7.js";import{B as N}from"./badge-CDs67obV.js";import{S as g}from"./switch-Kc2EZ0Ga.js";import{T as Y,a as Z,b as A,c as h,d as ee,e as m}from"./table-DFeDhBY_.js";import{g as se,w as ae,L as ie,T as ne,C as L,a as R,u as B,v as U}from"./icons-DTcdLw9j.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";import"./utils-DjBw3JGv.js";function pe(){const J=Q(),{toast:l}=V(),[w,$]=d.useState([]),[H,y]=d.useState(!0),[b,C]=d.useState(null),[k,E]=d.useState(null),[G,p]=d.useState(!1),[W,j]=d.useState(!1),[a,t]=d.useState({id:"",name:"",raw_prefix:"",clone_prefix:"",enabled:!0,priority:1}),o=d.useCallback(async()=>{try{y(!0),C(null);const s=await x("/api/webui/plugins/mirrors");if(!s.ok)throw new Error("获取镜像源列表失败");const i=await s.json();$(i.mirrors||[])}catch(s){const i=s instanceof Error?s.message:"加载镜像源失败";C(i),l({title:"加载失败",description:i,variant:"destructive"})}finally{y(!1)}},[l]);d.useEffect(()=>{o()},[o]);const q=async()=>{try{const s=await x("/api/webui/plugins/mirrors",{method:"POST",body:JSON.stringify(a)});if(!s.ok){const i=await s.json();throw new Error(i.detail||"添加镜像源失败")}l({title:"添加成功",description:"镜像源已添加"}),p(!1),t({id:"",name:"",raw_prefix:"",clone_prefix:"",enabled:!0,priority:1}),o()}catch(s){l({title:"添加失败",description:s instanceof Error?s.message:"未知错误",variant:"destructive"})}},K=async()=>{if(k)try{if(!(await x(`/api/webui/plugins/mirrors/${k.id}`,{method:"PUT",body:JSON.stringify({name:a.name,raw_prefix:a.raw_prefix,clone_prefix:a.clone_prefix,enabled:a.enabled,priority:a.priority})})).ok)throw new Error("更新镜像源失败");l({title:"更新成功",description:"镜像源已更新"}),j(!1),E(null),o()}catch(s){l({title:"更新失败",description:s instanceof Error?s.message:"未知错误",variant:"destructive"})}},D=async s=>{if(confirm("确定要删除这个镜像源吗?"))try{if(!(await x(`/api/webui/plugins/mirrors/${s}`,{method:"DELETE"})).ok)throw new Error("删除镜像源失败");l({title:"删除成功",description:"镜像源已删除"}),o()}catch(i){l({title:"删除失败",description:i instanceof Error?i.message:"未知错误",variant:"destructive"})}},_=async s=>{try{if(!(await x(`/api/webui/plugins/mirrors/${s.id}`,{method:"PUT",body:JSON.stringify({enabled:!s.enabled})})).ok)throw new Error("更新状态失败");o()}catch(i){l({title:"更新失败",description:i instanceof Error?i.message:"未知错误",variant:"destructive"})}},T=s=>{E(s),t({id:s.id,name:s.name,raw_prefix:s.raw_prefix,clone_prefix:s.clone_prefix,enabled:s.enabled,priority:s.priority}),j(!0)},u=async(s,i)=>{const S=i==="up"?s.priority-1:s.priority+1;if(!(S<1))try{if(!(await x(`/api/webui/plugins/mirrors/${s.id}`,{method:"PUT",body:JSON.stringify({priority:S})})).ok)throw new Error("更新优先级失败");o()}catch(v){l({title:"更新失败",description:v instanceof Error?v.message:"未知错误",variant:"destructive"})}};return e.jsx(X,{className:"h-full",children:e.jsxs("div",{className:"space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(n,{variant:"ghost",size:"icon",onClick:()=>J({to:"/plugins"}),children:e.jsx(se,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl sm:text-3xl font-bold",children:"镜像源配置"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"管理 Git 克隆和文件下载的镜像源"})]})]}),e.jsxs(n,{onClick:()=>p(!0),children:[e.jsx(ae,{className:"h-4 w-4 mr-2"}),"添加镜像源"]})]}),H?e.jsx(f,{className:"p-6",children:e.jsx("div",{className:"flex items-center justify-center py-8",children:e.jsx(ie,{className:"h-8 w-8 animate-spin text-primary"})})}):b?e.jsx(f,{className:"p-6",children:e.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[e.jsx(ne,{className:"h-12 w-12 text-destructive mb-4"}),e.jsx("h3",{className:"text-lg font-semibold mb-2",children:"加载失败"}),e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:b}),e.jsx(n,{onClick:o,children:"重新加载"})]})}):e.jsxs(f,{children:[e.jsx("div",{className:"hidden md:block",children:e.jsxs(Y,{"aria-label":"插件镜像源列表",children:[e.jsx(Z,{children:e.jsxs(A,{children:[e.jsx(h,{children:"状态"}),e.jsx(h,{children:"名称"}),e.jsx(h,{children:"ID"}),e.jsx(h,{children:"优先级"}),e.jsx(h,{className:"text-right",children:"操作"})]})}),e.jsx(ee,{children:w.map(s=>e.jsxs(A,{children:[e.jsx(m,{children:e.jsx(g,{checked:s.enabled,onCheckedChange:()=>_(s)})}),e.jsx(m,{children:e.jsxs("div",{children:[e.jsx("div",{className:"font-medium",children:s.name}),e.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["Raw: ",s.raw_prefix]})]})}),e.jsx(m,{children:e.jsx(N,{variant:"outline",children:s.id})}),e.jsx(m,{children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-mono",children:s.priority}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(n,{variant:"ghost",size:"icon",className:"h-5 w-5",onClick:()=>u(s,"up"),disabled:s.priority===1,children:e.jsx(L,{className:"h-3 w-3"})}),e.jsx(n,{variant:"ghost",size:"icon",className:"h-5 w-5",onClick:()=>u(s,"down"),children:e.jsx(R,{className:"h-3 w-3"})})]})]})}),e.jsx(m,{className:"text-right",children:e.jsxs("div",{className:"flex items-center justify-end gap-2",children:[e.jsx(n,{variant:"ghost",size:"icon",onClick:()=>T(s),children:e.jsx(B,{className:"h-4 w-4"})}),e.jsx(n,{variant:"ghost",size:"icon",onClick:()=>D(s.id),children:e.jsx(U,{className:"h-4 w-4 text-destructive"})})]})})]},s.id))})]})}),e.jsx("div",{className:"md:hidden p-4 space-y-4",children:w.map(s=>e.jsx(f,{className:"p-4",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h3",{className:"font-semibold",children:s.name}),s.enabled&&e.jsx(N,{variant:"default",className:"text-xs",children:"启用"})]}),e.jsx(N,{variant:"outline",className:"mt-1 text-xs",children:s.id})]}),e.jsx(g,{checked:s.enabled,onCheckedChange:()=>_(s)})]}),e.jsxs("div",{className:"text-sm space-y-1",children:[e.jsxs("div",{className:"text-muted-foreground",children:[e.jsx("span",{className:"font-medium",children:"Raw: "}),e.jsx("span",{className:"break-all",children:s.raw_prefix})]}),e.jsxs("div",{className:"text-muted-foreground",children:[e.jsx("span",{className:"font-medium",children:"优先级: "}),e.jsx("span",{className:"font-mono",children:s.priority})]})]}),e.jsxs("div",{className:"flex items-center gap-2 pt-2 border-t",children:[e.jsxs(n,{variant:"outline",size:"sm",className:"flex-1",onClick:()=>T(s),children:[e.jsx(B,{className:"h-4 w-4 mr-1"}),"编辑"]}),e.jsx(n,{variant:"outline",size:"sm",onClick:()=>u(s,"up"),disabled:s.priority===1,children:e.jsx(L,{className:"h-4 w-4"})}),e.jsx(n,{variant:"outline",size:"sm",onClick:()=>u(s,"down"),children:e.jsx(R,{className:"h-4 w-4"})}),e.jsx(n,{variant:"destructive",size:"sm",onClick:()=>D(s.id),children:e.jsx(U,{className:"h-4 w-4"})})]})]})},s.id))})]}),e.jsx(F,{open:G,onOpenChange:p,children:e.jsxs(O,{className:"max-w-lg",children:[e.jsxs(P,{children:[e.jsx(z,{children:"添加镜像源"}),e.jsx(I,{children:"添加新的 Git 镜像源配置"})]}),e.jsxs("div",{className:"space-y-4 py-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{htmlFor:"add-id",children:"镜像源 ID *"}),e.jsx(c,{id:"add-id",placeholder:"例如: my-mirror",value:a.id,onChange:s=>t({...a,id:s.target.value})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{htmlFor:"add-name",children:"名称 *"}),e.jsx(c,{id:"add-name",placeholder:"例如: 我的镜像源",value:a.name,onChange:s=>t({...a,name:s.target.value})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{htmlFor:"add-raw",children:"Raw 文件前缀 *"}),e.jsx(c,{id:"add-raw",placeholder:"https://example.com/raw",value:a.raw_prefix,onChange:s=>t({...a,raw_prefix:s.target.value})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{htmlFor:"add-clone",children:"克隆前缀 *"}),e.jsx(c,{id:"add-clone",placeholder:"https://example.com/clone",value:a.clone_prefix,onChange:s=>t({...a,clone_prefix:s.target.value})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{htmlFor:"add-priority",children:"优先级"}),e.jsx(c,{id:"add-priority",type:"number",min:"1",value:a.priority,onChange:s=>t({...a,priority:parseInt(s.target.value)||1})}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"数字越小优先级越高"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(g,{id:"add-enabled",checked:a.enabled,onCheckedChange:s=>t({...a,enabled:s})}),e.jsx(r,{htmlFor:"add-enabled",children:"启用此镜像源"})]})]}),e.jsxs(M,{children:[e.jsx(n,{variant:"outline",onClick:()=>p(!1),children:"取消"}),e.jsx(n,{onClick:q,children:"添加"})]})]})}),e.jsx(F,{open:W,onOpenChange:j,children:e.jsxs(O,{className:"max-w-lg",children:[e.jsxs(P,{children:[e.jsx(z,{children:"编辑镜像源"}),e.jsx(I,{children:"修改镜像源配置"})]}),e.jsxs("div",{className:"space-y-4 py-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{children:"镜像源 ID"}),e.jsx(c,{value:a.id,disabled:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{htmlFor:"edit-name",children:"名称 *"}),e.jsx(c,{id:"edit-name",value:a.name,onChange:s=>t({...a,name:s.target.value})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{htmlFor:"edit-raw",children:"Raw 文件前缀 *"}),e.jsx(c,{id:"edit-raw",value:a.raw_prefix,onChange:s=>t({...a,raw_prefix:s.target.value})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{htmlFor:"edit-clone",children:"克隆前缀 *"}),e.jsx(c,{id:"edit-clone",value:a.clone_prefix,onChange:s=>t({...a,clone_prefix:s.target.value})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{htmlFor:"edit-priority",children:"优先级"}),e.jsx(c,{id:"edit-priority",type:"number",min:"1",value:a.priority,onChange:s=>t({...a,priority:parseInt(s.target.value)||1})}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"数字越小优先级越高"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(g,{id:"edit-enabled",checked:a.enabled,onCheckedChange:s=>t({...a,enabled:s})}),e.jsx(r,{htmlFor:"edit-enabled",children:"启用此镜像源"})]})]}),e.jsxs(M,{children:[e.jsx(n,{variant:"outline",onClick:()=>j(!1),children:"取消"}),e.jsx(n,{onClick:K,children:"保存"})]})]})})]})})}export{pe as PluginMirrorsPage}; diff --git a/dashboard/dist/assets/plugin-stats-Bq_VsOhk.js b/dashboard/dist/assets/plugin-stats-Bq_VsOhk.js new file mode 100644 index 00000000..c46ec5f2 --- /dev/null +++ b/dashboard/dist/assets/plugin-stats-Bq_VsOhk.js @@ -0,0 +1 @@ +import{x as i,p as a}from"./index-CuOHsLf7.js";import{u as d}from"./unified-ws-CBnrIqHW.js";class w{initialized=!1;listeners=new Set;subscriptionActive=!1;initialize(){this.initialized||(d.addEventListener(r=>{if(r.domain!=="plugin_progress")return;const e=r.data.progress;e&&this.listeners.forEach(t=>{try{t(e)}catch(n){console.error("插件进度监听器执行失败:",n)}})}),this.initialized=!0)}async subscribe(r){return this.initialize(),this.listeners.add(r),this.subscriptionActive||(await d.subscribe("plugin_progress","main"),this.subscriptionActive=!0),async()=>{this.listeners.delete(r),this.listeners.size===0&&this.subscriptionActive&&(this.subscriptionActive=!1,await d.unsubscribe("plugin_progress","main"))}}}const y=new w,v="Mai-with-u",b="plugin-repo",P="main",m="plugin_details.json";function S(s){const r=s.repository_url||s.urls?.repository,e=s.homepage_url||s.urls?.homepage;return{manifest_version:s.manifest_version||1,id:s.id,name:s.name,version:s.version,description:s.description||"",author:s.author||{name:"Unknown"},license:s.license||"Unknown",host_application:s.host_application||{min_version:"0.0.0"},homepage_url:e,repository_url:r,urls:s.urls,keywords:s.keywords||[],categories:s.categories||[],default_locale:s.default_locale||"zh-CN",locales_path:s.locales_path}}async function E(){const s=await i("/api/webui/plugins/fetch-raw",{method:"POST",body:JSON.stringify({owner:v,repo:b,branch:P,file_path:m})}),r=await a(s);if(!r.success)return r;const e=r.data;return!e.success||!e.data?{success:!1,error:e.error||"获取插件列表失败"}:{success:!0,data:JSON.parse(e.data).filter(o=>o?.manifest?o.manifest.id?!o.manifest.name||!o.manifest.version?(console.warn("跳过缺少必需字段的插件:",o.id),!1):!0:(console.warn("跳过缺少 ID 的插件:",o),!1):(console.warn("跳过无效插件数据:",o),!1)).map(o=>({id:o.manifest.id,manifest:S(o.manifest),downloads:0,rating:0,review_count:0,installed:!1,source:"market",published_at:new Date().toISOString(),updated_at:new Date().toISOString()}))}}async function T(){const s=await i("/api/webui/plugins/git-status"),r=await a(s);return r.success?r:{success:!0,data:{installed:!1,error:"无法检测 Git 安装状态"}}}async function k(){const s=await i("/api/webui/plugins/version"),r=await a(s);return r.success?r:{success:!0,data:{version:"0.0.0",version_major:0,version_minor:0,version_patch:0}}}function N(s,r,e){const t=s.split(".").map(u=>parseInt(u)||0),n=t[0]||0,o=t[1]||0,c=t[2]||0;if(e.version_majorparseInt(_)||0),p=u[0]||0,g=u[1]||0,h=u[2]||0;if(e.version_major>p||e.version_major===p&&e.version_minor>g||e.version_major===p&&e.version_minor===g&&e.version_patch>h)return!1}return!0}async function A(s,r){try{return await y.subscribe(s)}catch(e){const t=e instanceof Error?e:new Error("插件进度订阅失败");return r?.(t),async()=>{}}}async function U(s,r,e="main"){const t=await i("/api/webui/plugins/install",{method:"POST",body:JSON.stringify({plugin_id:s,repository_url:r,branch:e})});return await a(t)}async function C(s){const r=await i("/api/webui/plugins/uninstall",{method:"POST",body:JSON.stringify({plugin_id:s})});return await a(r)}async function D(s,r,e="main"){const t=await i("/api/webui/plugins/update",{method:"POST",body:JSON.stringify({plugin_id:s,repository_url:r,branch:e})});return await a(t)}const l="https://maibot-plugin-stats.maibot-webui.workers.dev";async function L(s){try{const r=await fetch(`${l}/stats/${s}`);return r.ok?await r.json():(console.error("Failed to fetch plugin stats:",r.statusText),null)}catch(r){return console.error("Error fetching plugin stats:",r),null}}async function R(s,r){try{const e=r||f(),t=await fetch(`${l}/stats/like`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plugin_id:s,user_id:e})}),n=await t.json();return t.status===429?{success:!1,error:"操作过于频繁,请稍后再试"}:t.ok?{success:!0,...n}:{success:!1,error:n.error||"点赞失败"}}catch(e){return console.error("Error liking plugin:",e),{success:!1,error:"网络错误"}}}async function z(s,r){try{const e=r||f(),t=await fetch(`${l}/stats/dislike`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plugin_id:s,user_id:e})}),n=await t.json();return t.status===429?{success:!1,error:"操作过于频繁,请稍后再试"}:t.ok?{success:!0,...n}:{success:!1,error:n.error||"点踩失败"}}catch(e){return console.error("Error disliking plugin:",e),{success:!1,error:"网络错误"}}}async function M(s,r,e,t){if(r<1||r>5)return{success:!1,error:"评分必须在 1-5 之间"};try{const n=t||f(),o=await fetch(`${l}/stats/rate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plugin_id:s,rating:r,comment:e,user_id:n})}),c=await o.json();return o.status===429?{success:!1,error:"每天最多评分 3 次"}:o.ok?{success:!0,...c}:{success:!1,error:c.error||"评分失败"}}catch(n){return console.error("Error rating plugin:",n),{success:!1,error:"网络错误"}}}async function $(s){try{const r=await fetch(`${l}/stats/download`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plugin_id:s})}),e=await r.json();return r.status===429?(console.warn("Download recording rate limited"),{success:!0}):r.ok?{success:!0,...e}:(console.error("Failed to record download:",e.error),{success:!1,error:e.error})}catch(r){return console.error("Error recording download:",r),{success:!1,error:"网络错误"}}}function O(){const s=navigator,r=[navigator.userAgent,navigator.language,navigator.languages?.join(",")||"",navigator.platform,navigator.hardwareConcurrency||0,screen.width,screen.height,screen.colorDepth,screen.pixelDepth,new Date().getTimezoneOffset(),Intl.DateTimeFormat().resolvedOptions().timeZone,navigator.maxTouchPoints||0,s.deviceMemory||0].join("|");let e=0;for(let t=0;to.jsx(p,{children:o.jsx(t,{ref:d,align:e,sideOffset:r,className:f("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",a),...s})}));l.displayName=t.displayName;export{u as P,v as a,l as b}; diff --git a/dashboard/dist/assets/progress-C6-hh8fF.js b/dashboard/dist/assets/progress-C6-hh8fF.js new file mode 100644 index 00000000..5f293b4a --- /dev/null +++ b/dashboard/dist/assets/progress-C6-hh8fF.js @@ -0,0 +1 @@ +import{r as e,j as r}from"./router-zNjPR4CY.js";import{as as a,at as i}from"./radix-C-ZuImoP.js";import{g as m}from"./index-CuOHsLf7.js";const f=e.forwardRef(({className:s,value:l,...o},t)=>r.jsx(a,{ref:t,className:m("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",s),...o,children:r.jsx(i,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(l||0)}%)`}})}));f.displayName=a.displayName;export{f as P}; diff --git a/dashboard/dist/assets/prompts-Ck1GtTX1.js b/dashboard/dist/assets/prompts-Ck1GtTX1.js new file mode 100644 index 00000000..73a52ccb --- /dev/null +++ b/dashboard/dist/assets/prompts-Ck1GtTX1.js @@ -0,0 +1 @@ +import{r,j as t}from"./router-zNjPR4CY.js";import{C as Q}from"./CodeEditor-4JcGD1og.js";import{B as f}from"./badge-CDs67obV.js";import{x as v,p as j,E as ie,B as g,g as F,C as q,b as J,d as K,I as oe,S as ce,f as le,D as de,i as me,j as ue,k as pe,l as xe}from"./index-CuOHsLf7.js";import{S as he,a as fe,b as ge,c as ve,d as je}from"./select-DGqIoF9r.js";import{S as Ne}from"./separator-B_DSOSdz.js";import{R as Ce,x as ye,a7 as we,a0 as Se,ah as Pe,F as be,S as Fe,L}from"./icons-DTcdLw9j.js";import"./utils-DjBw3JGv.js";import"./misc-BwRzHX8c.js";import"./radix-C-ZuImoP.js";const N="/api/webui/config/prompts";async function $e(){const s=await v(N);return j(s)}async function Re(s,i){const l=await v(`${N}/${encodeURIComponent(s)}/${encodeURIComponent(i)}`);return j(l)}async function De(s,i){const l=await v(`${N}/${encodeURIComponent(s)}/${encodeURIComponent(i)}/default`);return j(l)}async function ke(s,i,l){const a=await v(`${N}/${encodeURIComponent(s)}/${encodeURIComponent(i)}`,{method:"PUT",body:JSON.stringify({content:l})});return j(a)}async function ze(s,i){const l=await v(`${N}/${encodeURIComponent(s)}/${encodeURIComponent(i)}`,{method:"DELETE"});return j(l)}function W(s){return s<1024?`${s} B`:s<1024*1024?`${(s/1024).toFixed(1)} KB`:`${(s/1024/1024).toFixed(1)} MB`}function Oe(){const{toast:s}=ie(),[i,l]=r.useState(null),[a,U]=r.useState("zh-CN"),[n,C]=r.useState(""),[$,p]=r.useState(""),[G,y]=r.useState(""),[w,B]=r.useState(!0),[S,T]=r.useState(!1),[A,_]=r.useState(!1),[H,M]=r.useState(!1),[R,O]=r.useState(!1),[X,P]=r.useState(!1),[Y,Z]=r.useState(""),[D,V]=r.useState(""),[d,ee]=r.useState(!1),k=$!==G,u=r.useMemo(()=>!i||!a?[]:i.files[a]??[],[i,a]),x=r.useMemo(()=>d?u:u.filter(e=>!e.advanced),[u,d]),z=r.useMemo(()=>{const e=D.trim().toLowerCase();return e?x.filter(o=>[o.name,o.display_name,o.description].join(" ").toLowerCase().includes(e)):x},[x,D]),m=u.find(e=>e.name===n),E=m?.customized??!1;r.useEffect(()=>{!n||d||!u.find(o=>o.name===n)?.advanced||C(x[0]?.name??"")},[n,u,d,x]);const h=r.useCallback(async()=>{try{B(!0);const e=await $e();if(!e.success){s({title:"加载 Prompt 目录失败",description:e.error,variant:"destructive"});return}l(e.data);const o=a&&e.data.languages.includes(a)?a:e.data.languages.includes("zh-CN")?"zh-CN":e.data.languages[0]??"";U(o);const c=o?e.data.files[o]??[]:[],I=c.filter(b=>!b.advanced);C(b=>c.some(re=>re.name===b)?b:I[0]?.name??c[0]?.name??"")}catch(e){s({title:"加载 Prompt 目录失败",description:e.message,variant:"destructive"})}finally{B(!1)}},[a,s]);r.useEffect(()=>{h()},[h]),r.useEffect(()=>{if(!a||!n){p(""),y("");return}let e=!1;return(async()=>{try{T(!0);const c=await Re(a,n);if(e)return;if(!c.success){s({title:"读取 Prompt 失败",description:c.error,variant:"destructive"});return}p(c.data.content),y(c.data.content)}catch(c){e||s({title:"读取 Prompt 失败",description:c.message,variant:"destructive"})}finally{e||T(!1)}})(),()=>{e=!0}},[n,a,s]);const te=e=>{U(e),V("");const o=i?.files[e]??[],c=d?o:o.filter(I=>!I.advanced);C(c[0]?.name??"")},se=async()=>{if(!(!a||!n))try{_(!0);const e=await ke(a,n,$);if(!e.success){s({title:"保存 Prompt 失败",description:e.error,variant:"destructive"});return}p(e.data.content),y(e.data.content),s({title:"Prompt 已保存",description:`${a}/${n}`}),h()}catch(e){s({title:"保存 Prompt 失败",description:e.message,variant:"destructive"})}finally{_(!1)}},ae=async()=>{if(!(!a||!n))try{O(!0),P(!0);const e=await De(a,n);if(!e.success){s({title:"读取默认 Prompt 失败",description:e.error,variant:"destructive"}),P(!1);return}Z(e.data.content)}catch(e){s({title:"读取默认 Prompt 失败",description:e.message,variant:"destructive"}),P(!1)}finally{O(!1)}},ne=async()=>{if(!(!a||!n||!E))try{M(!0);const e=await ze(a,n);if(!e.success){s({title:"恢复默认 Prompt 失败",description:e.error,variant:"destructive"});return}p(e.data.content),y(e.data.content),s({title:"已恢复默认 Prompt",description:`${a}/${n}`}),h()}catch(e){s({title:"恢复默认 Prompt 失败",description:e.message,variant:"destructive"})}finally{M(!1)}};return t.jsxs("div",{className:"flex h-[calc(100vh-140px)] flex-col gap-4 p-4 sm:p-6",children:[t.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[t.jsxs("div",{children:[t.jsx("h1",{className:"text-xl font-bold sm:text-2xl md:text-3xl",children:"Prompt 管理"}),t.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"编辑 prompts 目录下不同语言的系统提示词模板"})]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsxs(he,{value:a,onValueChange:te,disabled:w,children:[t.jsx(fe,{className:"w-[160px]",children:t.jsx(ge,{placeholder:"选择语言"})}),t.jsx(ve,{children:(i?.languages??[]).map(e=>t.jsx(je,{value:e,children:e},e))})]}),t.jsxs(g,{variant:"outline",size:"sm",onClick:()=>{h()},disabled:w,children:[t.jsx(Ce,{className:F("mr-2 h-4 w-4",w&&"animate-spin")}),"刷新"]}),t.jsxs(g,{variant:d?"default":"outline",size:"sm",onClick:()=>ee(e=>!e),children:[t.jsx(ye,{className:"mr-2 h-4 w-4"}),d?"隐藏高级":"显示高级"]}),t.jsxs(g,{variant:"outline",size:"sm",onClick:ne,disabled:!E||H||S||!n,children:[t.jsx(we,{className:F("mr-2 h-4 w-4",H&&"animate-spin")}),"恢复默认"]}),t.jsxs(g,{variant:"outline",size:"sm",onClick:ae,disabled:R||S||!n,children:[t.jsx(Se,{className:F("mr-2 h-4 w-4",R&&"animate-pulse")}),"查看默认"]}),t.jsxs(g,{size:"sm",onClick:se,disabled:!k||A||S||!n,children:[t.jsx(Pe,{className:"mr-2 h-4 w-4"}),A?"保存中":k?"保存":"已保存"]})]})]}),t.jsxs("div",{className:"grid min-h-0 flex-1 gap-4 lg:grid-cols-[18rem_minmax(0,1fr)]",children:[t.jsxs(q,{className:"min-h-0 overflow-hidden",children:[t.jsxs(J,{className:"space-y-3 pb-3",children:[t.jsxs(K,{className:"flex items-center gap-2 text-sm",children:[t.jsx(be,{className:"h-4 w-4"}),"Prompt 文件",t.jsx(f,{variant:"secondary",className:"ml-auto",children:z.length})]}),t.jsxs("div",{className:"relative",children:[t.jsx(Fe,{className:"pointer-events-none absolute left-2 top-2.5 h-4 w-4 text-muted-foreground"}),t.jsx(oe,{value:D,onChange:e=>V(e.target.value),placeholder:"搜索文件",className:"pl-8"})]})]}),t.jsx(Ne,{}),t.jsx(ce,{className:"h-full",children:t.jsx("div",{className:"space-y-1 p-2",children:w?t.jsxs("div",{className:"flex items-center justify-center gap-2 p-6 text-sm text-muted-foreground",children:[t.jsx(L,{className:"h-4 w-4 animate-spin"}),"加载中"]}):z.length>0?z.map(e=>t.jsxs("button",{type:"button",onClick:()=>C(e.name),className:F("w-full rounded-md px-3 py-2 text-left text-sm transition-colors","hover:bg-accent hover:text-accent-foreground",n===e.name?"bg-accent text-accent-foreground":"text-muted-foreground"),children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("div",{className:"truncate font-medium",title:e.display_name||e.name,children:e.display_name||e.name}),e.advanced&&t.jsx(f,{variant:"outline",className:"shrink-0 text-[10px]",children:"高级"}),e.customized&&t.jsx(f,{variant:"secondary",className:"shrink-0 text-[10px]",children:"自定义"})]}),t.jsxs("div",{className:"mt-0.5 truncate text-xs text-muted-foreground",children:[e.name," · ",W(e.size)]}),e.description&&t.jsx("div",{className:"mt-1 line-clamp-2 text-xs text-muted-foreground",children:e.description})]},e.name)):t.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:"没有可编辑的 Prompt 文件"})})})]}),t.jsxs(q,{className:"min-h-0 overflow-hidden",children:[t.jsx(J,{className:"flex flex-row items-center justify-between gap-3 space-y-0 pb-3",children:t.jsxs("div",{className:"min-w-0",children:[t.jsxs(K,{className:"flex items-center gap-2 truncate text-sm",children:[t.jsx("span",{className:"truncate",children:m?.display_name||n||"未选择文件"}),m?.advanced&&t.jsx(f,{variant:"outline",className:"shrink-0",children:"高级"}),E&&t.jsx(f,{variant:"secondary",className:"shrink-0",children:"自定义"})]}),t.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:[a,m?` · ${W(m.size)}`:"",k?" · 有未保存修改":""]}),m?.description&&t.jsx("p",{className:"mt-1 line-clamp-2 text-xs text-muted-foreground",children:m.description})]})}),t.jsx(le,{className:"min-h-0 p-0",children:S?t.jsxs("div",{className:"flex h-[calc(100vh-290px)] items-center justify-center gap-2 text-sm text-muted-foreground",children:[t.jsx(L,{className:"h-4 w-4 animate-spin"}),"读取中"]}):t.jsx(Q,{value:$,onChange:p,language:"text",height:"calc(100vh - 290px)",minHeight:"520px",placeholder:"选择一个 Prompt 文件后开始编辑"})})]})]}),t.jsx(de,{open:X,onOpenChange:P,children:t.jsxs(me,{className:"max-w-[min(96vw,1100px)]",children:[t.jsxs(ue,{children:[t.jsx(pe,{children:"默认 Prompt"}),t.jsxs(xe,{children:[a,"/",n," 的内置模板,只读显示,不会修改或删除自定义内容。"]})]}),R?t.jsxs("div",{className:"flex h-[520px] items-center justify-center gap-2 text-sm text-muted-foreground",children:[t.jsx(L,{className:"h-4 w-4 animate-spin"}),"读取中"]}):t.jsx(Q,{value:Y,readOnly:!0,language:"text",height:"min(62vh, 620px)",minHeight:"420px"})]})})]})}export{Oe as PromptManagementPage}; diff --git a/dashboard/dist/assets/radio-group-BBkaGEpR.js b/dashboard/dist/assets/radio-group-BBkaGEpR.js new file mode 100644 index 00000000..fe61bbc9 --- /dev/null +++ b/dashboard/dist/assets/radio-group-BBkaGEpR.js @@ -0,0 +1 @@ +import{r as n,j as a}from"./router-zNjPR4CY.js";import{aq as U,a2 as K,ay as T,P as x,ap as C,az as V,U as w,aA as E,aB as z,a1 as N,aC as H,aD as $}from"./radix-C-ZuImoP.js";import{g as I}from"./index-CuOHsLf7.js";import{z as W}from"./icons-DTcdLw9j.js";var g="Radio",[X,P]=N(g),[Y,J]=X(g),_=n.forwardRef((r,t)=>{const{__scopeRadio:e,name:d,checked:o=!1,required:s,disabled:i,value:p="on",onCheck:f,form:R,...m}=r,[l,v]=n.useState(null),c=C(t,h=>v(h)),u=n.useRef(!1),y=l?R||!!l.closest("form"):!0;return a.jsxs(Y,{scope:e,checked:o,disabled:i,children:[a.jsx(x.button,{type:"button",role:"radio","aria-checked":o,"data-state":A(o),"data-disabled":i?"":void 0,disabled:i,value:p,...m,ref:c,onClick:w(r.onClick,h=>{o||f?.(),y&&(u.current=h.isPropagationStopped(),u.current||h.stopPropagation())})}),y&&a.jsx(G,{control:l,bubbles:!u.current,name:d,value:p,checked:o,required:s,disabled:i,form:R,style:{transform:"translateX(-100%)"}})]})});_.displayName=g;var j="RadioIndicator",k=n.forwardRef((r,t)=>{const{__scopeRadio:e,forceMount:d,...o}=r,s=J(j,e);return a.jsx(z,{present:d||s.checked,children:a.jsx(x.span,{"data-state":A(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t})})});k.displayName=j;var Q="RadioBubbleInput",G=n.forwardRef(({__scopeRadio:r,control:t,checked:e,bubbles:d=!0,...o},s)=>{const i=n.useRef(null),p=C(i,s),f=H(e),R=$(t);return n.useEffect(()=>{const m=i.current;if(!m)return;const l=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(l,"checked").set;if(f!==e&&c){const u=new Event("click",{bubbles:d});c.call(m,e),m.dispatchEvent(u)}},[f,e,d]),a.jsx(x.input,{type:"radio","aria-hidden":!0,defaultChecked:e,...o,tabIndex:-1,ref:p,style:{...o.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});G.displayName=Q;function A(r){return r?"checked":"unchecked"}var Z=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],b="RadioGroup",[ee]=N(b,[E,P]),S=E(),D=P(),[oe,re]=ee(b),M=n.forwardRef((r,t)=>{const{__scopeRadioGroup:e,name:d,defaultValue:o,value:s,required:i=!1,disabled:p=!1,orientation:f,dir:R,loop:m=!0,onValueChange:l,...v}=r,c=S(e),u=U(R),[y,h]=K({prop:s,defaultProp:o??null,onChange:l,caller:b});return a.jsx(oe,{scope:e,name:d,required:i,disabled:p,value:y,onValueChange:h,children:a.jsx(T,{asChild:!0,...c,orientation:f,dir:u,loop:m,children:a.jsx(x.div,{role:"radiogroup","aria-required":i,"aria-orientation":f,"data-disabled":p?"":void 0,dir:u,...v,ref:t})})})});M.displayName=b;var O="RadioGroupItem",q=n.forwardRef((r,t)=>{const{__scopeRadioGroup:e,disabled:d,...o}=r,s=re(O,e),i=s.disabled||d,p=S(e),f=D(e),R=n.useRef(null),m=C(t,R),l=s.value===o.value,v=n.useRef(!1);return n.useEffect(()=>{const c=y=>{Z.includes(y.key)&&(v.current=!0)},u=()=>v.current=!1;return document.addEventListener("keydown",c),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",c),document.removeEventListener("keyup",u)}},[]),a.jsx(V,{asChild:!0,...p,focusable:!i,active:l,children:a.jsx(_,{disabled:i,required:s.required,checked:l,...f,...o,name:s.name,ref:m,onCheck:()=>s.onValueChange(o.value),onKeyDown:w(c=>{c.key==="Enter"&&c.preventDefault()}),onFocus:w(o.onFocus,()=>{v.current&&R.current?.click()})})})});q.displayName=O;var ae="RadioGroupIndicator",B=n.forwardRef((r,t)=>{const{__scopeRadioGroup:e,...d}=r,o=D(e);return a.jsx(k,{...o,...d,ref:t})});B.displayName=ae;var F=M,L=q,te=B;const se=n.forwardRef(({className:r,...t},e)=>a.jsx(F,{className:I("grid gap-2",r),...t,ref:e}));se.displayName=F.displayName;const ne=n.forwardRef(({className:r,...t},e)=>a.jsx(L,{ref:e,className:I("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),...t,children:a.jsx(te,{className:"flex items-center justify-center",children:a.jsx(W,{className:"h-2.5 w-2.5 fill-current text-current"})})}));ne.displayName=L.displayName;export{se as R,ne as a}; diff --git a/dashboard/dist/assets/radix-C-ZuImoP.js b/dashboard/dist/assets/radix-C-ZuImoP.js new file mode 100644 index 00000000..19338584 --- /dev/null +++ b/dashboard/dist/assets/radix-C-ZuImoP.js @@ -0,0 +1,56 @@ +import{b as Pc,r as i,j as p,c as io,a as ft,R as Me,d as Tc}from"./router-zNjPR4CY.js";var Ac=Pc();function Go(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Se(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Go(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r{let{children:s,...a}=o;Rr(s)&&typeof Lt=="function"&&(s=Lt(s._payload));const c=i.Children.toArray(s),l=c.find(Dc);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}var Nv=pt("Slot");function Nc(e){const t=i.forwardRef((n,o)=>{let{children:r,...s}=n;if(Rr(r)&&typeof Lt=="function"&&(r=Lt(r._payload)),i.isValidElement(r)){const a=Lc(r),c=Mc(s,r.props);return r.type!==i.Fragment&&(c.ref=o?Se(o,a):a),i.cloneElement(r,c)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Oc=Symbol("radix.slottable");function Dc(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Oc}function Mc(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...c)=>{const l=s(...c);return r(...c),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Lc(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 jc(e){const t=kc(e),n=i.forwardRef((o,r)=>{const{children:s,...a}=o,c=i.Children.toArray(s),l=c.find(Fc);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function kc(e){const t=i.forwardRef((n,o)=>{const{children:r,...s}=n;if(i.isValidElement(r)){const a=Bc(r),c=Vc(s,r.props);return r.type!==i.Fragment&&(c.ref=o?Se(o,a):a),i.cloneElement(r,c)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $c=Symbol("radix.slottable");function Fc(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$c}function Vc(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...c)=>{const l=s(...c);return r(...c),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Bc(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)}var Wc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],D=Wc.reduce((e,t)=>{const n=jc(`Primitive.${t}`),o=i.forwardRef((r,s)=>{const{asChild:a,...c}=r,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function ao(e,t){e&&ft.flushSync(()=>e.dispatchEvent(t))}var G=globalThis?.document?i.useLayoutEffect:()=>{};function Hc(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var X=e=>{const{present:t,children:n}=e,o=Kc(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=k(o.ref,Uc(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};X.displayName="Presence";function Kc(e){const[t,n]=i.useState(),o=i.useRef(null),r=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,l]=Hc(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=Rt(o.current);s.current=c==="mounted"?u:"none"},[c]),G(()=>{const u=o.current,f=r.current;if(f!==e){const m=s.current,h=Rt(u);e?l("MOUNT"):h==="none"||u?.display==="none"?l("UNMOUNT"):l(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),G(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,d=h=>{const v=Rt(o.current).includes(CSS.escape(h.animationName));if(h.target===t&&v&&(l("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=h=>{h.target===t&&(s.current=Rt(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{o.current=u?getComputedStyle(u):null,n(u)},[])}}function Rt(e){return e?.animationName||"none"}function Uc(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 zc(e,t){const n=i.createContext(t),o=s=>{const{children:a,...c}=s,l=i.useMemo(()=>c,Object.values(c));return p.jsx(n.Provider,{value:l,children:a})};o.displayName=e+"Provider";function r(s){const a=i.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,r]}function Z(e,t=[]){let n=[];function o(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=d=>{const{scope:m,children:h,...w}=d,v=m?.[e]?.[l]||c,g=i.useMemo(()=>w,Object.values(w));return p.jsx(v.Provider,{value:g,children:h})};u.displayName=s+"Provider";function f(d,m){const h=m?.[e]?.[l]||c,w=i.useContext(h);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const r=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=c?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[o,Gc(r,...t)]}function Gc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=o.reduce((c,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function z(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>t.current?.(...n),[])}var Yc=i.createContext(void 0);function et(e){const t=i.useContext(Yc);return e||t||"ltr"}function at(e,[t,n]){return Math.min(n,Math.max(t,e))}function R(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Xc(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var co="ScrollArea",[Pr]=Z(co),[qc,ce]=Pr(co),Tr=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:o="hover",dir:r,scrollHideDelay:s=600,...a}=e,[c,l]=i.useState(null),[u,f]=i.useState(null),[d,m]=i.useState(null),[h,w]=i.useState(null),[v,g]=i.useState(null),[x,y]=i.useState(0),[b,S]=i.useState(0),[C,P]=i.useState(!1),[E,N]=i.useState(!1),O=k(t,_=>l(_)),M=et(r);return p.jsx(qc,{scope:n,type:o,dir:M,scrollHideDelay:s,scrollArea:c,viewport:u,onViewportChange:f,content:d,onContentChange:m,scrollbarX:h,onScrollbarXChange:w,scrollbarXEnabled:C,onScrollbarXEnabledChange:P,scrollbarY:v,onScrollbarYChange:g,scrollbarYEnabled:E,onScrollbarYEnabledChange:N,onCornerWidthChange:y,onCornerHeightChange:S,children:p.jsx(D.div,{dir:M,...a,ref:O,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})})});Tr.displayName=co;var Ar="ScrollAreaViewport",_r=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:o,nonce:r,...s}=e,a=ce(Ar,n),c=i.useRef(null),l=k(t,c,a.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(D.div,{"data-radix-scroll-area-viewport":"",...s,ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:p.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});_r.displayName=Ar;var ge="ScrollAreaScrollbar",Zc=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=ce(ge,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:a}=r,c=e.orientation==="horizontal";return i.useEffect(()=>(c?s(!0):a(!0),()=>{c?s(!1):a(!1)}),[c,s,a]),r.type==="hover"?p.jsx(Qc,{...o,ref:t,forceMount:n}):r.type==="scroll"?p.jsx(Jc,{...o,ref:t,forceMount:n}):r.type==="auto"?p.jsx(Ir,{...o,ref:t,forceMount:n}):r.type==="always"?p.jsx(lo,{...o,ref:t}):null});Zc.displayName=ge;var Qc=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=ce(ge,e.__scopeScrollArea),[s,a]=i.useState(!1);return i.useEffect(()=>{const c=r.scrollArea;let l=0;if(c){const u=()=>{window.clearTimeout(l),a(!0)},f=()=>{l=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return c.addEventListener("pointerenter",u),c.addEventListener("pointerleave",f),()=>{window.clearTimeout(l),c.removeEventListener("pointerenter",u),c.removeEventListener("pointerleave",f)}}},[r.scrollArea,r.scrollHideDelay]),p.jsx(X,{present:n||s,children:p.jsx(Ir,{"data-state":s?"visible":"hidden",...o,ref:t})})}),Jc=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=ce(ge,e.__scopeScrollArea),s=e.orientation==="horizontal",a=Yt(()=>l("SCROLL_END"),100),[c,l]=Xc("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return i.useEffect(()=>{if(c==="idle"){const u=window.setTimeout(()=>l("HIDE"),r.scrollHideDelay);return()=>window.clearTimeout(u)}},[c,r.scrollHideDelay,l]),i.useEffect(()=>{const u=r.viewport,f=s?"scrollLeft":"scrollTop";if(u){let d=u[f];const m=()=>{const h=u[f];d!==h&&(l("SCROLL"),a()),d=h};return u.addEventListener("scroll",m),()=>u.removeEventListener("scroll",m)}},[r.viewport,s,l,a]),p.jsx(X,{present:n||c!=="hidden",children:p.jsx(lo,{"data-state":c==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:R(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:R(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),Ir=i.forwardRef((e,t)=>{const n=ce(ge,e.__scopeScrollArea),{forceMount:o,...r}=e,[s,a]=i.useState(!1),c=e.orientation==="horizontal",l=Yt(()=>{if(n.viewport){const u=n.viewport.offsetWidth{const{orientation:n="vertical",...o}=e,r=ce(ge,e.__scopeScrollArea),s=i.useRef(null),a=i.useRef(0),[c,l]=i.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Mr(c.viewport,c.content),f={...o,sizes:c,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:m=>s.current=m,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:m=>a.current=m};function d(m,h){return il(m,a.current,c,h)}return n==="horizontal"?p.jsx(el,{...f,ref:t,onThumbPositionChange:()=>{if(r.viewport&&s.current){const m=r.viewport.scrollLeft,h=Yo(m,c,r.dir);s.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:m=>{r.viewport&&(r.viewport.scrollLeft=m)},onDragScroll:m=>{r.viewport&&(r.viewport.scrollLeft=d(m,r.dir))}}):n==="vertical"?p.jsx(tl,{...f,ref:t,onThumbPositionChange:()=>{if(r.viewport&&s.current){const m=r.viewport.scrollTop,h=Yo(m,c);s.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:m=>{r.viewport&&(r.viewport.scrollTop=m)},onDragScroll:m=>{r.viewport&&(r.viewport.scrollTop=d(m))}}):null}),el=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,...r}=e,s=ce(ge,e.__scopeScrollArea),[a,c]=i.useState(),l=i.useRef(null),u=k(t,l,s.onScrollbarXChange);return i.useEffect(()=>{l.current&&c(getComputedStyle(l.current))},[l]),p.jsx(Or,{"data-orientation":"horizontal",...r,ref:u,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Gt(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,d)=>{if(s.viewport){const m=s.viewport.scrollLeft+f.deltaX;e.onWheelScroll(m),jr(m,d)&&f.preventDefault()}},onResize:()=>{l.current&&s.viewport&&a&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:kt(a.paddingLeft),paddingEnd:kt(a.paddingRight)}})}})}),tl=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,...r}=e,s=ce(ge,e.__scopeScrollArea),[a,c]=i.useState(),l=i.useRef(null),u=k(t,l,s.onScrollbarYChange);return i.useEffect(()=>{l.current&&c(getComputedStyle(l.current))},[l]),p.jsx(Or,{"data-orientation":"vertical",...r,ref:u,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Gt(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,d)=>{if(s.viewport){const m=s.viewport.scrollTop+f.deltaY;e.onWheelScroll(m),jr(m,d)&&f.preventDefault()}},onResize:()=>{l.current&&s.viewport&&a&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:kt(a.paddingTop),paddingEnd:kt(a.paddingBottom)}})}})}),[nl,Nr]=Pr(ge),Or=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:o,hasThumb:r,onThumbChange:s,onThumbPointerUp:a,onThumbPointerDown:c,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:f,onResize:d,...m}=e,h=ce(ge,n),[w,v]=i.useState(null),g=k(t,O=>v(O)),x=i.useRef(null),y=i.useRef(""),b=h.viewport,S=o.content-o.viewport,C=z(f),P=z(l),E=Yt(d,10);function N(O){if(x.current){const M=O.clientX-x.current.left,_=O.clientY-x.current.top;u({x:M,y:_})}}return i.useEffect(()=>{const O=M=>{const _=M.target;w?.contains(_)&&C(M,S)};return document.addEventListener("wheel",O,{passive:!1}),()=>document.removeEventListener("wheel",O,{passive:!1})},[b,w,S,C]),i.useEffect(P,[o,P]),qe(w,E),qe(h.content,E),p.jsx(nl,{scope:n,scrollbar:w,hasThumb:r,onThumbChange:z(s),onThumbPointerUp:z(a),onThumbPositionChange:P,onThumbPointerDown:z(c),children:p.jsx(D.div,{...m,ref:g,style:{position:"absolute",...m.style},onPointerDown:R(e.onPointerDown,O=>{O.button===0&&(O.target.setPointerCapture(O.pointerId),x.current=w.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),N(O))}),onPointerMove:R(e.onPointerMove,N),onPointerUp:R(e.onPointerUp,O=>{const M=O.target;M.hasPointerCapture(O.pointerId)&&M.releasePointerCapture(O.pointerId),document.body.style.webkitUserSelect=y.current,h.viewport&&(h.viewport.style.scrollBehavior=""),x.current=null})})})}),jt="ScrollAreaThumb",ol=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=Nr(jt,e.__scopeScrollArea);return p.jsx(X,{present:n||r.hasThumb,children:p.jsx(rl,{ref:t,...o})})}),rl=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:o,...r}=e,s=ce(jt,n),a=Nr(jt,n),{onThumbPositionChange:c}=a,l=k(t,d=>a.onThumbChange(d)),u=i.useRef(void 0),f=Yt(()=>{u.current&&(u.current(),u.current=void 0)},100);return i.useEffect(()=>{const d=s.viewport;if(d){const m=()=>{if(f(),!u.current){const h=al(d,c);u.current=h,c()}};return c(),d.addEventListener("scroll",m),()=>d.removeEventListener("scroll",m)}},[s.viewport,f,c]),p.jsx(D.div,{"data-state":a.hasThumb?"visible":"hidden",...r,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:R(e.onPointerDownCapture,d=>{const h=d.target.getBoundingClientRect(),w=d.clientX-h.left,v=d.clientY-h.top;a.onThumbPointerDown({x:w,y:v})}),onPointerUp:R(e.onPointerUp,a.onThumbPointerUp)})});ol.displayName=jt;var uo="ScrollAreaCorner",Dr=i.forwardRef((e,t)=>{const n=ce(uo,e.__scopeScrollArea),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?p.jsx(sl,{...e,ref:t}):null});Dr.displayName=uo;var sl=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,...o}=e,r=ce(uo,n),[s,a]=i.useState(0),[c,l]=i.useState(0),u=!!(s&&c);return qe(r.scrollbarX,()=>{const f=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(f),l(f)}),qe(r.scrollbarY,()=>{const f=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(f),a(f)}),u?p.jsx(D.div,{...o,ref:t,style:{width:s,height:c,position:"absolute",right:r.dir==="ltr"?0:void 0,left:r.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function kt(e){return e?parseInt(e,10):0}function Mr(e,t){const n=e/t;return isNaN(n)?0:n}function Gt(e){const t=Mr(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*t;return Math.max(o,18)}function il(e,t,n,o="ltr"){const r=Gt(n),s=r/2,a=t||s,c=r-a,l=n.scrollbar.paddingStart+a,u=n.scrollbar.size-n.scrollbar.paddingEnd-c,f=n.content-n.viewport,d=o==="ltr"?[0,f]:[f*-1,0];return Lr([l,u],d)(e)}function Yo(e,t,n="ltr"){const o=Gt(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-r,a=t.content-t.viewport,c=s-o,l=n==="ltr"?[0,a]:[a*-1,0],u=at(e,l);return Lr([0,a],[0,c])(u)}function Lr(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function jr(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},o=0;return(function r(){const s={left:e.scrollLeft,top:e.scrollTop},a=n.left!==s.left,c=n.top!==s.top;(a||c)&&t(),n=s,o=window.requestAnimationFrame(r)})(),()=>window.cancelAnimationFrame(o)};function Yt(e,t){const n=z(e),o=i.useRef(0);return i.useEffect(()=>()=>window.clearTimeout(o.current),[]),i.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(n,t)},[n,t])}function qe(e,t){const n=z(t);G(()=>{let o=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(o),r.unobserve(e)}}},[e,n])}var Ov=Tr,Dv=_r,Mv=Dr,cl=io[" useInsertionEffect ".trim().toString()]||G;function ae({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,a]=ll({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:r;{const f=i.useRef(e!==void 0);i.useEffect(()=>{const d=f.current;d!==c&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=c},[c,o])}const u=i.useCallback(f=>{if(c){const d=ul(f)?f(e):f;d!==e&&a.current?.(d)}else s(f)},[c,e,s,a]);return[l,u]}function ll({defaultProp:e,onChange:t}){const[n,o]=i.useState(e),r=i.useRef(n),s=i.useRef(t);return cl(()=>{s.current=t},[t]),i.useEffect(()=>{r.current!==n&&(s.current?.(n),r.current=n)},[n,r]),[n,o,s]}function ul(e){return typeof e=="function"}var dl=io[" useId ".trim().toString()]||(()=>{}),fl=0;function ue(e){const[t,n]=i.useState(dl());return G(()=>{n(o=>o??String(fl++))},[e]),t?`radix-${t}`:""}var Xt="Collapsible",[pl,Lv]=Z(Xt),[ml,fo]=pl(Xt),kr=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:s,onOpenChange:a,...c}=e,[l,u]=ae({prop:o,defaultProp:r??!1,onChange:a,caller:Xt});return p.jsx(ml,{scope:n,disabled:s,contentId:ue(),open:l,onOpenToggle:i.useCallback(()=>u(f=>!f),[u]),children:p.jsx(D.div,{"data-state":mo(l),"data-disabled":s?"":void 0,...c,ref:t})})});kr.displayName=Xt;var $r="CollapsibleTrigger",Fr=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,r=fo($r,n);return p.jsx(D.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":mo(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:R(e.onClick,r.onOpenToggle)})});Fr.displayName=$r;var po="CollapsibleContent",Vr=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=fo(po,e.__scopeCollapsible);return p.jsx(X,{present:n||r.open,children:({present:s})=>p.jsx(vl,{...o,ref:t,present:s})})});Vr.displayName=po;var vl=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...s}=e,a=fo(po,n),[c,l]=i.useState(o),u=i.useRef(null),f=k(t,u),d=i.useRef(0),m=d.current,h=i.useRef(0),w=h.current,v=a.open||c,g=i.useRef(v),x=i.useRef(void 0);return i.useEffect(()=>{const y=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(y)},[]),G(()=>{const y=u.current;if(y){x.current=x.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const b=y.getBoundingClientRect();d.current=b.height,h.current=b.width,g.current||(y.style.transitionDuration=x.current.transitionDuration,y.style.animationName=x.current.animationName),l(o)}},[a.open,o]),p.jsx(D.div,{"data-state":mo(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...s,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:v&&r})});function mo(e){return e?"open":"closed"}var jv=kr,kv=Fr,$v=Vr,hl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gl=hl.reduce((e,t)=>{const n=pt(`Primitive.${t}`),o=i.forwardRef((r,s)=>{const{asChild:a,...c}=r,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),wl="Label",Br=i.forwardRef((e,t)=>p.jsx(gl.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Br.displayName=wl;var Fv=Br;function Xo(e){const t=xl(e),n=i.forwardRef((o,r)=>{const{children:s,...a}=o,c=i.Children.toArray(s),l=c.find(bl);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function xl(e){const t=i.forwardRef((n,o)=>{const{children:r,...s}=n;if(i.isValidElement(r)){const a=Cl(r),c=Sl(s,r.props);return r.type!==i.Fragment&&(c.ref=o?Se(o,a):a),i.cloneElement(r,c)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yl=Symbol("radix.slottable");function bl(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yl}function Sl(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...c)=>{const l=s(...c);return r(...c),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Cl(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 mt(e){const t=e+"CollectionProvider",[n,o]=Z(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:g,children:x}=v,y=Me.useRef(null),b=Me.useRef(new Map).current;return p.jsx(r,{scope:g,itemMap:b,collectionRef:y,children:x})};a.displayName=t;const c=e+"CollectionSlot",l=Xo(c),u=Me.forwardRef((v,g)=>{const{scope:x,children:y}=v,b=s(c,x),S=k(g,b.collectionRef);return p.jsx(l,{ref:S,children:y})});u.displayName=c;const f=e+"CollectionItemSlot",d="data-radix-collection-item",m=Xo(f),h=Me.forwardRef((v,g)=>{const{scope:x,children:y,...b}=v,S=Me.useRef(null),C=k(g,S),P=s(f,x);return Me.useEffect(()=>(P.itemMap.set(S,{ref:S,...b}),()=>{P.itemMap.delete(S)})),p.jsx(m,{[d]:"",ref:C,children:y})});h.displayName=f;function w(v){const g=s(e+"CollectionConsumer",v);return Me.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((P,E)=>b.indexOf(P.ref.current)-b.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:a,Slot:u,ItemSlot:h},w,o]}function El(e,t=globalThis?.document){const n=z(e);i.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Rl="DismissableLayer",Vn="dismissableLayer.update",Pl="dismissableLayer.pointerDownOutside",Tl="dismissableLayer.focusOutside",qo,Wr=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ve=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=i.useContext(Wr),[f,d]=i.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=i.useState({}),w=k(t,E=>d(E)),v=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(g),y=f?v.indexOf(f):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,S=y>=x,C=_l(E=>{const N=E.target,O=[...u.branches].some(M=>M.contains(N));!S||O||(r?.(E),a?.(E),E.defaultPrevented||c?.())},m),P=Il(E=>{const N=E.target;[...u.branches].some(M=>M.contains(N))||(s?.(E),a?.(E),E.defaultPrevented||c?.())},m);return El(E=>{y===u.layers.size-1&&(o?.(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},m),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qo=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Zo(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=qo)}},[f,m,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Zo())},[f,u]),i.useEffect(()=>{const E=()=>h({});return document.addEventListener(Vn,E),()=>document.removeEventListener(Vn,E)},[]),p.jsx(D.div,{...l,ref:w,style:{pointerEvents:b?S?"auto":"none":void 0,...e.style},onFocusCapture:R(e.onFocusCapture,P.onFocusCapture),onBlurCapture:R(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,C.onPointerDownCapture)})});Ve.displayName=Rl;var Al="DismissableLayerBranch",Hr=i.forwardRef((e,t)=>{const n=i.useContext(Wr),o=i.useRef(null),r=k(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(D.div,{...e,ref:r})});Hr.displayName=Al;function _l(e,t=globalThis?.document){const n=z(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!o.current){let l=function(){Kr(Pl,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Il(e,t=globalThis?.document){const n=z(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&Kr(Tl,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Zo(){const e=new CustomEvent(Vn);document.dispatchEvent(e)}function Kr(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?ao(r,s):r.dispatchEvent(s)}var Nl=Ve,Ol=Hr,Dl="Portal",Be=i.forwardRef((e,t)=>{const{container:n,...o}=e,[r,s]=i.useState(!1);G(()=>s(!0),[]);const a=n||r&&globalThis?.document?.body;return a?Tc.createPortal(p.jsx(D.div,{...o,ref:t}),a):null});Be.displayName=Dl;var Ur=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ml="VisuallyHidden",qt=i.forwardRef((e,t)=>p.jsx(D.span,{...e,ref:t,style:{...Ur,...e.style}}));qt.displayName=Ml;var Ll=qt,vo="ToastProvider",[ho,jl,kl]=mt("Toast"),[zr]=Z("Toast",[kl]),[$l,Zt]=zr(vo),Gr=e=>{const{__scopeToast:t,label:n="Notification",duration:o=5e3,swipeDirection:r="right",swipeThreshold:s=50,children:a}=e,[c,l]=i.useState(null),[u,f]=i.useState(0),d=i.useRef(!1),m=i.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${vo}\`. Expected non-empty \`string\`.`),p.jsx(ho.Provider,{scope:t,children:p.jsx($l,{scope:t,label:n,duration:o,swipeDirection:r,swipeThreshold:s,toastCount:u,viewport:c,onViewportChange:l,onToastAdd:i.useCallback(()=>f(h=>h+1),[]),onToastRemove:i.useCallback(()=>f(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:m,children:a})})};Gr.displayName=vo;var Yr="ToastViewport",Fl=["F8"],Bn="toast.viewportPause",Wn="toast.viewportResume",Xr=i.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:o=Fl,label:r="Notifications ({hotkey})",...s}=e,a=Zt(Yr,n),c=jl(n),l=i.useRef(null),u=i.useRef(null),f=i.useRef(null),d=i.useRef(null),m=k(t,d,a.onViewportChange),h=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=a.toastCount>0;i.useEffect(()=>{const g=x=>{o.length!==0&&o.every(b=>x[b]||x.code===b)&&d.current?.focus()};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[o]),i.useEffect(()=>{const g=l.current,x=d.current;if(w&&g&&x){const y=()=>{if(!a.isClosePausedRef.current){const P=new CustomEvent(Bn);x.dispatchEvent(P),a.isClosePausedRef.current=!0}},b=()=>{if(a.isClosePausedRef.current){const P=new CustomEvent(Wn);x.dispatchEvent(P),a.isClosePausedRef.current=!1}},S=P=>{!g.contains(P.relatedTarget)&&b()},C=()=>{g.contains(document.activeElement)||b()};return g.addEventListener("focusin",y),g.addEventListener("focusout",S),g.addEventListener("pointermove",y),g.addEventListener("pointerleave",C),window.addEventListener("blur",y),window.addEventListener("focus",b),()=>{g.removeEventListener("focusin",y),g.removeEventListener("focusout",S),g.removeEventListener("pointermove",y),g.removeEventListener("pointerleave",C),window.removeEventListener("blur",y),window.removeEventListener("focus",b)}}},[w,a.isClosePausedRef]);const v=i.useCallback(({tabbingDirection:g})=>{const y=c().map(b=>{const S=b.ref.current,C=[S,...Ql(S)];return g==="forwards"?C:C.reverse()});return(g==="forwards"?y.reverse():y).flat()},[c]);return i.useEffect(()=>{const g=d.current;if(g){const x=y=>{const b=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!b){const C=document.activeElement,P=y.shiftKey;if(y.target===g&&P){u.current?.focus();return}const O=v({tabbingDirection:P?"backwards":"forwards"}),M=O.findIndex(_=>_===C);An(O.slice(M+1))?y.preventDefault():P?u.current?.focus():f.current?.focus()}};return g.addEventListener("keydown",x),()=>g.removeEventListener("keydown",x)}},[c,v]),p.jsxs(Ol,{ref:l,role:"region","aria-label":r.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&p.jsx(Hn,{ref:u,onFocusFromOutsideViewport:()=>{const g=v({tabbingDirection:"forwards"});An(g)}}),p.jsx(ho.Slot,{scope:n,children:p.jsx(D.ol,{tabIndex:-1,...s,ref:m})}),w&&p.jsx(Hn,{ref:f,onFocusFromOutsideViewport:()=>{const g=v({tabbingDirection:"backwards"});An(g)}})]})});Xr.displayName=Yr;var qr="ToastFocusProxy",Hn=i.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:o,...r}=e,s=Zt(qr,n);return p.jsx(qt,{tabIndex:0,...r,ref:t,style:{position:"fixed"},onFocus:a=>{const c=a.relatedTarget;!s.viewport?.contains(c)&&o()}})});Hn.displayName=qr;var vt="Toast",Vl="toast.swipeStart",Bl="toast.swipeMove",Wl="toast.swipeCancel",Hl="toast.swipeEnd",Zr=i.forwardRef((e,t)=>{const{forceMount:n,open:o,defaultOpen:r,onOpenChange:s,...a}=e,[c,l]=ae({prop:o,defaultProp:r??!0,onChange:s,caller:vt});return p.jsx(X,{present:n||c,children:p.jsx(zl,{open:c,...a,ref:t,onClose:()=>l(!1),onPause:z(e.onPause),onResume:z(e.onResume),onSwipeStart:R(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:R(e.onSwipeMove,u=>{const{x:f,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:R(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:R(e.onSwipeEnd,u=>{const{x:f,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});Zr.displayName=vt;var[Kl,Ul]=zr(vt,{onClose(){}}),zl=i.forwardRef((e,t)=>{const{__scopeToast:n,type:o="foreground",duration:r,open:s,onClose:a,onEscapeKeyDown:c,onPause:l,onResume:u,onSwipeStart:f,onSwipeMove:d,onSwipeCancel:m,onSwipeEnd:h,...w}=e,v=Zt(vt,n),[g,x]=i.useState(null),y=k(t,A=>x(A)),b=i.useRef(null),S=i.useRef(null),C=r||v.duration,P=i.useRef(0),E=i.useRef(C),N=i.useRef(0),{onToastAdd:O,onToastRemove:M}=v,_=z(()=>{g?.contains(document.activeElement)&&v.viewport?.focus(),a()}),$=i.useCallback(A=>{!A||A===1/0||(window.clearTimeout(N.current),P.current=new Date().getTime(),N.current=window.setTimeout(_,A))},[_]);i.useEffect(()=>{const A=v.viewport;if(A){const V=()=>{$(E.current),u?.()},j=()=>{const F=new Date().getTime()-P.current;E.current=E.current-F,window.clearTimeout(N.current),l?.()};return A.addEventListener(Bn,j),A.addEventListener(Wn,V),()=>{A.removeEventListener(Bn,j),A.removeEventListener(Wn,V)}}},[v.viewport,C,l,u,$]),i.useEffect(()=>{s&&!v.isClosePausedRef.current&&$(C)},[s,C,v.isClosePausedRef,$]),i.useEffect(()=>(O(),()=>M()),[O,M]);const B=i.useMemo(()=>g?rs(g):null,[g]);return v.viewport?p.jsxs(p.Fragment,{children:[B&&p.jsx(Gl,{__scopeToast:n,role:"status","aria-live":o==="foreground"?"assertive":"polite",children:B}),p.jsx(Kl,{scope:n,onClose:_,children:ft.createPortal(p.jsx(ho.ItemSlot,{scope:n,children:p.jsx(Nl,{asChild:!0,onEscapeKeyDown:R(c,()=>{v.isFocusedToastEscapeKeyDownRef.current||_(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:p.jsx(D.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":v.swipeDirection,...w,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:R(e.onKeyDown,A=>{A.key==="Escape"&&(c?.(A.nativeEvent),A.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,_()))}),onPointerDown:R(e.onPointerDown,A=>{A.button===0&&(b.current={x:A.clientX,y:A.clientY})}),onPointerMove:R(e.onPointerMove,A=>{if(!b.current)return;const V=A.clientX-b.current.x,j=A.clientY-b.current.y,F=!!S.current,I=["left","right"].includes(v.swipeDirection),T=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,U=I?T(0,V):0,q=I?0:T(0,j),Q=A.pointerType==="touch"?10:2,te={x:U,y:q},J={originalEvent:A,delta:te};F?(S.current=te,Pt(Bl,d,J,{discrete:!1})):Qo(te,v.swipeDirection,Q)?(S.current=te,Pt(Vl,f,J,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(V)>Q||Math.abs(j)>Q)&&(b.current=null)}),onPointerUp:R(e.onPointerUp,A=>{const V=S.current,j=A.target;if(j.hasPointerCapture(A.pointerId)&&j.releasePointerCapture(A.pointerId),S.current=null,b.current=null,V){const F=A.currentTarget,I={originalEvent:A,delta:V};Qo(V,v.swipeDirection,v.swipeThreshold)?Pt(Hl,h,I,{discrete:!0}):Pt(Wl,m,I,{discrete:!0}),F.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),Gl=e=>{const{__scopeToast:t,children:n,...o}=e,r=Zt(vt,t),[s,a]=i.useState(!1),[c,l]=i.useState(!1);return ql(()=>a(!0)),i.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),c?null:p.jsx(Be,{asChild:!0,children:p.jsx(qt,{...o,children:s&&p.jsxs(p.Fragment,{children:[r.label," ",n]})})})},Yl="ToastTitle",Qr=i.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return p.jsx(D.div,{...o,ref:t})});Qr.displayName=Yl;var Xl="ToastDescription",Jr=i.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return p.jsx(D.div,{...o,ref:t})});Jr.displayName=Xl;var es="ToastAction",ts=i.forwardRef((e,t)=>{const{altText:n,...o}=e;return n.trim()?p.jsx(os,{altText:n,asChild:!0,children:p.jsx(go,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${es}\`. Expected non-empty \`string\`.`),null)});ts.displayName=es;var ns="ToastClose",go=i.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e,r=Ul(ns,n);return p.jsx(os,{asChild:!0,children:p.jsx(D.button,{type:"button",...o,ref:t,onClick:R(e.onClick,r.onClose)})})});go.displayName=ns;var os=i.forwardRef((e,t)=>{const{__scopeToast:n,altText:o,...r}=e;return p.jsx(D.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...r,ref:t})});function rs(e){const t=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),Zl(o)){const r=o.ariaHidden||o.hidden||o.style.display==="none",s=o.dataset.radixToastAnnounceExclude==="";if(!r)if(s){const a=o.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...rs(o))}}),t}function Pt(e,t,n,{discrete:o}){const r=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?ao(r,s):r.dispatchEvent(s)}var Qo=(e,t,n=0)=>{const o=Math.abs(e.x),r=Math.abs(e.y),s=o>r;return t==="left"||t==="right"?s&&o>n:!s&&r>n};function ql(e=()=>{}){const t=z(e);G(()=>{let n=0,o=0;return n=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(o)}},[t])}function Zl(e){return e.nodeType===e.ELEMENT_NODE}function Ql(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function An(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Vv=Gr,Bv=Xr,Wv=Zr,Hv=Qr,Kv=Jr,Uv=ts,zv=go;const Jl=["top","right","bottom","left"],Te=Math.min,oe=Math.max,$t=Math.round,Tt=Math.floor,he=e=>({x:e,y:e}),eu={left:"right",right:"left",bottom:"top",top:"bottom"};function Kn(e,t,n){return oe(e,Te(t,n))}function ye(e,t){return typeof e=="function"?e(t):e}function be(e){return e.split("-")[0]}function tt(e){return e.split("-")[1]}function wo(e){return e==="x"?"y":"x"}function xo(e){return e==="y"?"height":"width"}function ve(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function yo(e){return wo(ve(e))}function tu(e,t,n){n===void 0&&(n=!1);const o=tt(e),r=yo(e),s=xo(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ft(a)),[a,Ft(a)]}function nu(e){const t=Ft(e);return[Un(e),t,Un(t)]}function Un(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Jo=["left","right"],er=["right","left"],ou=["top","bottom"],ru=["bottom","top"];function su(e,t,n){switch(e){case"top":case"bottom":return n?t?er:Jo:t?Jo:er;case"left":case"right":return t?ou:ru;default:return[]}}function iu(e,t,n,o){const r=tt(e);let s=su(be(e),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),t&&(s=s.concat(s.map(Un)))),s}function Ft(e){const t=be(e);return eu[t]+e.slice(t.length)}function au(e){return{top:0,right:0,bottom:0,left:0,...e}}function ss(e){return typeof e!="number"?au(e):{top:e,right:e,bottom:e,left:e}}function Vt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function tr(e,t,n){let{reference:o,floating:r}=e;const s=ve(t),a=yo(t),c=xo(a),l=be(t),u=s==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let h;switch(l){case"top":h={x:f,y:o.y-r.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:d};break;case"left":h={x:o.x-r.width,y:d};break;default:h={x:o.x,y:o.y}}switch(tt(t)){case"start":h[a]-=m*(n&&u?-1:1);break;case"end":h[a]+=m*(n&&u?-1:1);break}return h}async function cu(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:a,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:h=0}=ye(t,e),w=ss(h),g=c[m?d==="floating"?"reference":"floating":d],x=Vt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:l})),y=d==="floating"?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),S=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},C=Vt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:b,strategy:l}):y);return{top:(x.top-C.top+w.top)/S.y,bottom:(C.bottom-x.bottom+w.bottom)/S.y,left:(x.left-C.left+w.left)/S.x,right:(C.right-x.right+w.right)/S.x}}const lu=50,uu=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,c=a.detectOverflow?a:{...a,detectOverflow:cu},l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=tr(u,o,l),m=o,h=0;const w={};for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:a,elements:c,middlewareData:l}=t,{element:u,padding:f=0}=ye(e,t)||{};if(u==null)return{};const d=ss(f),m={x:n,y:o},h=yo(r),w=xo(h),v=await a.getDimensions(u),g=h==="y",x=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",S=s.reference[w]+s.reference[h]-m[h]-s.floating[w],C=m[h]-s.reference[h],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let E=P?P[b]:0;(!E||!await(a.isElement==null?void 0:a.isElement(P)))&&(E=c.floating[b]||s.floating[w]);const N=S/2-C/2,O=E/2-v[w]/2-1,M=Te(d[x],O),_=Te(d[y],O),$=M,B=E-v[w]-_,A=E/2-v[w]/2+N,V=Kn($,A,B),j=!l.arrow&&tt(r)!=null&&A!==V&&s.reference[w]/2-(A<$?M:_)-v[w]/2<0,F=j?A<$?A-$:A-B:0;return{[h]:m[h]+F,data:{[h]:V,centerOffset:A-V-F,...j&&{alignmentOffset:F}},reset:j}}}),fu=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...g}=ye(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=be(r),y=ve(c),b=be(c)===c,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=m||(b||!v?[Ft(c)]:nu(c)),P=w!=="none";!m&&P&&C.push(...iu(c,v,w,S));const E=[c,...C],N=await l.detectOverflow(t,g),O=[];let M=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&O.push(N[x]),d){const A=tu(r,a,S);O.push(N[A[0]],N[A[1]])}if(M=[...M,{placement:r,overflows:O}],!O.every(A=>A<=0)){var _,$;const A=(((_=s.flip)==null?void 0:_.index)||0)+1,V=E[A];if(V&&(!(d==="alignment"?y!==ve(V):!1)||M.every(I=>ve(I.placement)===y?I.overflows[0]>0:!0)))return{data:{index:A,overflows:M},reset:{placement:V}};let j=($=M.filter(F=>F.overflows[0]<=0).sort((F,I)=>F.overflows[1]-I.overflows[1])[0])==null?void 0:$.placement;if(!j)switch(h){case"bestFit":{var B;const F=(B=M.filter(I=>{if(P){const T=ve(I.placement);return T===y||T==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(T=>T>0).reduce((T,U)=>T+U,0)]).sort((I,T)=>I[1]-T[1])[0])==null?void 0:B[0];F&&(j=F);break}case"initialPlacement":j=c;break}if(r!==j)return{reset:{placement:j}}}return{}}}};function nr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function or(e){return Jl.some(t=>e[t]>=0)}const pu=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=ye(e,t);switch(r){case"referenceHidden":{const a=await o.detectOverflow(t,{...s,elementContext:"reference"}),c=nr(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:or(c)}}}case"escaped":{const a=await o.detectOverflow(t,{...s,altBoundary:!0}),c=nr(a,n.floating);return{data:{escapedOffsets:c,escaped:or(c)}}}default:return{}}}}},is=new Set(["left","top"]);async function mu(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=be(n),c=tt(n),l=ve(n)==="y",u=is.has(a)?-1:1,f=s&&l?-1:1,d=ye(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:w}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof w=="number"&&(h=c==="end"?w*-1:w),l?{x:h*f,y:m*u}:{x:m*u,y:h*f}}const vu=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:a,middlewareData:c}=t,l=await mu(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:a}}}}},hu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:l={fn:x=>{let{x:y,y:b}=x;return{x:y,y:b}}},...u}=ye(e,t),f={x:n,y:o},d=await s.detectOverflow(t,u),m=ve(be(r)),h=wo(m);let w=f[h],v=f[m];if(a){const x=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=w+d[x],S=w-d[y];w=Kn(b,w,S)}if(c){const x=m==="y"?"top":"left",y=m==="y"?"bottom":"right",b=v+d[x],S=v-d[y];v=Kn(b,v,S)}const g=l.fn({...t,[h]:w,[m]:v});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[h]:a,[m]:c}}}}}},gu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=ye(e,t),f={x:n,y:o},d=ve(r),m=wo(d);let h=f[m],w=f[d];const v=ye(c,t),g=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const b=m==="y"?"height":"width",S=s.reference[m]-s.floating[b]+g.mainAxis,C=s.reference[m]+s.reference[b]-g.mainAxis;hC&&(h=C)}if(u){var x,y;const b=m==="y"?"width":"height",S=is.has(be(r)),C=s.reference[d]-s.floating[b]+(S&&((x=a.offset)==null?void 0:x[d])||0)+(S?0:g.crossAxis),P=s.reference[d]+s.reference[b]+(S?0:((y=a.offset)==null?void 0:y[d])||0)-(S?g.crossAxis:0);wP&&(w=P)}return{[m]:h,[d]:w}}}},wu=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:a,elements:c}=t,{apply:l=()=>{},...u}=ye(e,t),f=await a.detectOverflow(t,u),d=be(r),m=tt(r),h=ve(r)==="y",{width:w,height:v}=s.floating;let g,x;d==="top"||d==="bottom"?(g=d,x=m===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(x=d,g=m==="end"?"top":"bottom");const y=v-f.top-f.bottom,b=w-f.left-f.right,S=Te(v-f[g],y),C=Te(w-f[x],b),P=!t.middlewareData.shift;let E=S,N=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=b),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(E=y),P&&!m){const M=oe(f.left,0),_=oe(f.right,0),$=oe(f.top,0),B=oe(f.bottom,0);h?N=w-2*(M!==0||_!==0?M+_:oe(f.left,f.right)):E=v-2*($!==0||B!==0?$+B:oe(f.top,f.bottom))}await l({...t,availableWidth:N,availableHeight:E});const O=await a.getDimensions(c.floating);return w!==O.width||v!==O.height?{reset:{rects:!0}}:{}}}};function Qt(){return typeof window<"u"}function nt(e){return as(e)?(e.nodeName||"").toLowerCase():"#document"}function re(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(as(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function as(e){return Qt()?e instanceof Node||e instanceof re(e).Node:!1}function de(e){return Qt()?e instanceof Element||e instanceof re(e).Element:!1}function Ce(e){return Qt()?e instanceof HTMLElement||e instanceof re(e).HTMLElement:!1}function rr(e){return!Qt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof re(e).ShadowRoot}function ht(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function xu(e){return/^(table|td|th)$/.test(nt(e))}function Jt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const yu=/transform|translate|scale|rotate|perspective|filter/,bu=/paint|layout|strict|content/,Le=e=>!!e&&e!=="none";let _n;function bo(e){const t=de(e)?fe(e):e;return Le(t.transform)||Le(t.translate)||Le(t.scale)||Le(t.rotate)||Le(t.perspective)||!So()&&(Le(t.backdropFilter)||Le(t.filter))||yu.test(t.willChange||"")||bu.test(t.contain||"")}function Su(e){let t=Ae(e);for(;Ce(t)&&!Ze(t);){if(bo(t))return t;if(Jt(t))return null;t=Ae(t)}return null}function So(){return _n==null&&(_n=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_n}function Ze(e){return/^(html|body|#document)$/.test(nt(e))}function fe(e){return re(e).getComputedStyle(e)}function en(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(nt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rr(e)&&e.host||we(e);return rr(t)?t.host:t}function cs(e){const t=Ae(e);return Ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ce(t)&&ht(t)?t:cs(t)}function ct(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=cs(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),a=re(r);if(s){const c=zn(a);return t.concat(a,a.visualViewport||[],ht(r)?r:[],c&&n?ct(c):[])}else return t.concat(r,ct(r,[],n))}function zn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ls(e){const t=fe(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ce(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:o,c=$t(n)!==s||$t(o)!==a;return c&&(n=s,o=a),{width:n,height:o,$:c}}function Co(e){return de(e)?e:e.contextElement}function Ge(e){const t=Co(e);if(!Ce(t))return he(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=ls(t);let a=(s?$t(n.width):n.width)/o,c=(s?$t(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const Cu=he(0);function us(e){const t=re(e);return!So()||!t.visualViewport?Cu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Eu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==re(e)?!1:t}function je(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Co(e);let a=he(1);t&&(o?de(o)&&(a=Ge(o)):a=Ge(e));const c=Eu(s,n,o)?us(s):he(0);let l=(r.left+c.x)/a.x,u=(r.top+c.y)/a.y,f=r.width/a.x,d=r.height/a.y;if(s){const m=re(s),h=o&&de(o)?re(o):o;let w=m,v=zn(w);for(;v&&o&&h!==w;){const g=Ge(v),x=v.getBoundingClientRect(),y=fe(v),b=x.left+(v.clientLeft+parseFloat(y.paddingLeft))*g.x,S=x.top+(v.clientTop+parseFloat(y.paddingTop))*g.y;l*=g.x,u*=g.y,f*=g.x,d*=g.y,l+=b,u+=S,w=re(v),v=zn(w)}}return Vt({width:f,height:d,x:l,y:u})}function tn(e,t){const n=en(e).scrollLeft;return t?t.left+n:je(we(e)).left+n}function ds(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-tn(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Ru(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",a=we(o),c=t?Jt(t.floating):!1;if(o===a||c&&s)return n;let l={scrollLeft:0,scrollTop:0},u=he(1);const f=he(0),d=Ce(o);if((d||!d&&!s)&&((nt(o)!=="body"||ht(a))&&(l=en(o)),d)){const h=je(o);u=Ge(o),f.x=h.x+o.clientLeft,f.y=h.y+o.clientTop}const m=a&&!d&&!s?ds(a,l):he(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+m.x,y:n.y*u.y-l.scrollTop*u.y+f.y+m.y}}function Pu(e){return Array.from(e.getClientRects())}function Tu(e){const t=we(e),n=en(e),o=e.ownerDocument.body,r=oe(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=oe(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+tn(e);const c=-n.scrollTop;return fe(o).direction==="rtl"&&(a+=oe(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:c}}const sr=25;function Au(e,t){const n=re(e),o=we(e),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,c=0,l=0;if(r){s=r.width,a=r.height;const f=So();(!f||f&&t==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const u=tn(o);if(u<=0){const f=o.ownerDocument,d=f.body,m=getComputedStyle(d),h=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,w=Math.abs(o.clientWidth-d.clientWidth-h);w<=sr&&(s-=w)}else u<=sr&&(s+=u);return{width:s,height:a,x:c,y:l}}function _u(e,t){const n=je(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Ce(e)?Ge(e):he(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:a,height:c,x:l,y:u}}function ir(e,t,n){let o;if(t==="viewport")o=Au(e,n);else if(t==="document")o=Tu(we(e));else if(de(t))o=_u(t,n);else{const r=us(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Vt(o)}function fs(e,t){const n=Ae(e);return n===t||!de(n)||Ze(n)?!1:fe(n).position==="fixed"||fs(n,t)}function Iu(e,t){const n=t.get(e);if(n)return n;let o=ct(e,[],!1).filter(c=>de(c)&&nt(c)!=="body"),r=null;const s=fe(e).position==="fixed";let a=s?Ae(e):e;for(;de(a)&&!Ze(a);){const c=fe(a),l=bo(a);!l&&c.position==="fixed"&&(r=null),(s?!l&&!r:!l&&c.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||ht(a)&&!l&&fs(e,a))?o=o.filter(f=>f!==a):r=c,a=Ae(a)}return t.set(e,o),o}function Nu(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?Jt(t)?[]:Iu(t,this._c):[].concat(n),o],c=ir(t,a[0],r);let l=c.top,u=c.right,f=c.bottom,d=c.left;for(let m=1;m{a(!1,1e-7)},1e3)}E===1&&!ms(u,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(C,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,b)}n.observe(e)}return a(!0),s}function $u(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Co(e),f=r||s?[...u?ct(u):[],...t?ct(t):[]]:[];f.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const d=u&&c?ku(u,n):null;let m=-1,h=null;a&&(h=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(t)})),n()}),u&&!l&&h.observe(u),t&&h.observe(t));let w,v=l?je(e):null;l&&g();function g(){const x=je(e);v&&!ms(v,x)&&n(),v=x,w=requestAnimationFrame(g)}return n(),()=>{var x;f.forEach(y=>{r&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),d?.(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(w)}}const Fu=vu,Vu=hu,Bu=fu,Wu=wu,Hu=pu,cr=du,Ku=gu,Uu=(e,t,n)=>{const o=new Map,r={platform:ju,...n},s={...r.platform,_c:o};return uu(e,t,{...r,platform:s})};var zu=typeof document<"u",Gu=function(){},Ot=zu?i.useLayoutEffect:Gu;function Bt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Bt(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!Bt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function vs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lr(e,t){const n=vs(e);return Math.round(t*n)/n}function Nn(e){const t=i.useRef(e);return Ot(()=>{t.current=e}),t}function Yu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[f,d]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=i.useState(o);Bt(m,o)||h(o);const[w,v]=i.useState(null),[g,x]=i.useState(null),y=i.useCallback(I=>{I!==P.current&&(P.current=I,v(I))},[]),b=i.useCallback(I=>{I!==E.current&&(E.current=I,x(I))},[]),S=s||w,C=a||g,P=i.useRef(null),E=i.useRef(null),N=i.useRef(f),O=l!=null,M=Nn(l),_=Nn(r),$=Nn(u),B=i.useCallback(()=>{if(!P.current||!E.current)return;const I={placement:t,strategy:n,middleware:m};_.current&&(I.platform=_.current),Uu(P.current,E.current,I).then(T=>{const U={...T,isPositioned:$.current!==!1};A.current&&!Bt(N.current,U)&&(N.current=U,ft.flushSync(()=>{d(U)}))})},[m,t,n,_,$]);Ot(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,d(I=>({...I,isPositioned:!1})))},[u]);const A=i.useRef(!1);Ot(()=>(A.current=!0,()=>{A.current=!1}),[]),Ot(()=>{if(S&&(P.current=S),C&&(E.current=C),S&&C){if(M.current)return M.current(S,C,B);B()}},[S,C,B,M,O]);const V=i.useMemo(()=>({reference:P,floating:E,setReference:y,setFloating:b}),[y,b]),j=i.useMemo(()=>({reference:S,floating:C}),[S,C]),F=i.useMemo(()=>{const I={position:n,left:0,top:0};if(!j.floating)return I;const T=lr(j.floating,f.x),U=lr(j.floating,f.y);return c?{...I,transform:"translate("+T+"px, "+U+"px)",...vs(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:U}},[n,c,j.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:B,refs:V,elements:j,floatingStyles:F}),[f,B,V,j,F])}const Xu=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?cr({element:o.current,padding:r}).fn(n):{}:o?cr({element:o,padding:r}).fn(n):{}}}},qu=(e,t)=>{const n=Fu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Zu=(e,t)=>{const n=Vu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Qu=(e,t)=>({fn:Ku(e).fn,options:[e,t]}),Ju=(e,t)=>{const n=Bu(e);return{name:n.name,fn:n.fn,options:[e,t]}},ed=(e,t)=>{const n=Wu(e);return{name:n.name,fn:n.fn,options:[e,t]}},td=(e,t)=>{const n=Hu(e);return{name:n.name,fn:n.fn,options:[e,t]}},nd=(e,t)=>{const n=Xu(e);return{name:n.name,fn:n.fn,options:[e,t]}};var od="Arrow",hs=i.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return p.jsx(D.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});hs.displayName=od;var rd=hs;function nn(e){const[t,n]=i.useState(void 0);return G(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let a,c;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Eo="Popper",[gs,_e]=Z(Eo),[sd,ws]=gs(Eo),xs=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null);return p.jsx(sd,{scope:t,anchor:o,onAnchorChange:r,children:n})};xs.displayName=Eo;var ys="PopperAnchor",bs=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=ws(ys,n),a=i.useRef(null),c=k(t,a),l=i.useRef(null);return i.useEffect(()=>{const u=l.current;l.current=o?.current||a.current,u!==l.current&&s.onAnchorChange(l.current)}),o?null:p.jsx(D.div,{...r,ref:c})});bs.displayName=ys;var Ro="PopperContent",[id,ad]=gs(Ro),Ss=i.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:w,...v}=e,g=ws(Ro,n),[x,y]=i.useState(null),b=k(t,L=>y(L)),[S,C]=i.useState(null),P=nn(S),E=P?.width??0,N=P?.height??0,O=o+(s!=="center"?"-"+s:""),M=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},_=Array.isArray(u)?u:[u],$=_.length>0,B={padding:M,boundary:_.filter(ld),altBoundary:$},{refs:A,floatingStyles:V,placement:j,isPositioned:F,middlewareData:I}=Yu({strategy:"fixed",placement:O,whileElementsMounted:(...L)=>$u(...L,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[qu({mainAxis:r+N,alignmentAxis:a}),l&&Zu({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Qu():void 0,...B}),l&&Ju({...B}),ed({...B,apply:({elements:L,rects:W,availableWidth:ee,availableHeight:H})=>{const{width:K,height:Y}=W.reference,se=L.floating.style;se.setProperty("--radix-popper-available-width",`${ee}px`),se.setProperty("--radix-popper-available-height",`${H}px`),se.setProperty("--radix-popper-anchor-width",`${K}px`),se.setProperty("--radix-popper-anchor-height",`${Y}px`)}}),S&&nd({element:S,padding:c}),ud({arrowWidth:E,arrowHeight:N}),m&&td({strategy:"referenceHidden",...B})]}),[T,U]=Rs(j),q=z(w);G(()=>{F&&q?.()},[F,q]);const Q=I.arrow?.x,te=I.arrow?.y,J=I.arrow?.centerOffset!==0,[xe,ne]=i.useState();return G(()=>{x&&ne(window.getComputedStyle(x).zIndex)},[x]),p.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:F?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(" "),...I.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(id,{scope:n,placedSide:T,onArrowChange:C,arrowX:Q,arrowY:te,shouldHideArrow:J,children:p.jsx(D.div,{"data-side":T,"data-align":U,...v,ref:b,style:{...v.style,animation:F?void 0:"none"}})})})});Ss.displayName=Ro;var Cs="PopperArrow",cd={top:"bottom",right:"left",bottom:"top",left:"right"},Es=i.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=ad(Cs,o),a=cd[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(rd,{...r,ref:n,style:{...r.style,display:"block"}})})});Es.displayName=Cs;function ld(e){return e!==null}var ud=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,a=r.arrow?.centerOffset!==0,c=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,f]=Rs(n),d={start:"0%",center:"50%",end:"100%"}[f],m=(r.arrow?.x??0)+c/2,h=(r.arrow?.y??0)+l/2;let w="",v="";return u==="bottom"?(w=a?d:`${m}px`,v=`${-l}px`):u==="top"?(w=a?d:`${m}px`,v=`${o.floating.height+l}px`):u==="right"?(w=`${-l}px`,v=a?d:`${h}px`):u==="left"&&(w=`${o.floating.width+l}px`,v=a?d:`${h}px`),{data:{x:w,y:v}}}});function Rs(e){const[t,n="center"]=e.split("-");return[t,n]}var on=xs,gt=bs,rn=Ss,sn=Es,dd=Symbol("radix.slottable");function fd(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=dd,t}var[an]=Z("Tooltip",[_e]),cn=_e(),Ps="TooltipProvider",pd=700,Gn="tooltip.open",[md,Po]=an(Ps),Ts=e=>{const{__scopeTooltip:t,delayDuration:n=pd,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=e,a=i.useRef(!0),c=i.useRef(!1),l=i.useRef(0);return i.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),p.jsx(md,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:i.useCallback(u=>{c.current=u},[]),disableHoverableContent:r,children:s})};Ts.displayName=Ps;var lt="Tooltip",[vd,wt]=an(lt),As=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,l=Po(lt,e.__scopeTooltip),u=cn(t),[f,d]=i.useState(null),m=ue(),h=i.useRef(0),w=a??l.disableHoverableContent,v=c??l.delayDuration,g=i.useRef(!1),[x,y]=ae({prop:o,defaultProp:r??!1,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(Gn))):l.onClose(),s?.(E)},caller:lt}),b=i.useMemo(()=>x?g.current?"delayed-open":"instant-open":"closed",[x]),S=i.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,y(!0)},[y]),C=i.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),P=i.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,y(!0),h.current=0},v)},[v,y]);return i.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),p.jsx(on,{...u,children:p.jsx(vd,{scope:t,contentId:m,open:x,stateAttribute:b,trigger:f,onTriggerChange:d,onTriggerEnter:i.useCallback(()=>{l.isOpenDelayedRef.current?P():S()},[l.isOpenDelayedRef,P,S]),onTriggerLeave:i.useCallback(()=>{w?C():(window.clearTimeout(h.current),h.current=0)},[C,w]),onOpen:S,onClose:C,disableHoverableContent:w,children:n})})};As.displayName=lt;var Yn="TooltipTrigger",_s=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=wt(Yn,n),s=Po(Yn,n),a=cn(n),c=i.useRef(null),l=k(t,c,r.onTriggerChange),u=i.useRef(!1),f=i.useRef(!1),d=i.useCallback(()=>u.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),p.jsx(gt,{asChild:!0,...a,children:p.jsx(D.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:l,onPointerMove:R(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:R(e.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:R(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:R(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:R(e.onBlur,r.onClose),onClick:R(e.onClick,r.onClose)})})});_s.displayName=Yn;var To="TooltipPortal",[hd,gd]=an(To,{forceMount:void 0}),Is=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,s=wt(To,t);return p.jsx(hd,{scope:t,forceMount:n,children:p.jsx(X,{present:n||s.open,children:p.jsx(Be,{asChild:!0,container:r,children:o})})})};Is.displayName=To;var Qe="TooltipContent",Ns=i.forwardRef((e,t)=>{const n=gd(Qe,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...s}=e,a=wt(Qe,e.__scopeTooltip);return p.jsx(X,{present:o||a.open,children:a.disableHoverableContent?p.jsx(Os,{side:r,...s,ref:t}):p.jsx(wd,{side:r,...s,ref:t})})}),wd=i.forwardRef((e,t)=>{const n=wt(Qe,e.__scopeTooltip),o=Po(Qe,e.__scopeTooltip),r=i.useRef(null),s=k(t,r),[a,c]=i.useState(null),{trigger:l,onClose:u}=n,f=r.current,{onPointerInTransitChange:d}=o,m=i.useCallback(()=>{c(null),d(!1)},[d]),h=i.useCallback((w,v)=>{const g=w.currentTarget,x={x:w.clientX,y:w.clientY},y=Cd(x,g.getBoundingClientRect()),b=Ed(x,y),S=Rd(v.getBoundingClientRect()),C=Td([...b,...S]);c(C),d(!0)},[d]);return i.useEffect(()=>()=>m(),[m]),i.useEffect(()=>{if(l&&f){const w=g=>h(g,f),v=g=>h(g,l);return l.addEventListener("pointerleave",w),f.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",v)}}},[l,f,h,m]),i.useEffect(()=>{if(a){const w=v=>{const g=v.target,x={x:v.clientX,y:v.clientY},y=l?.contains(g)||f?.contains(g),b=!Pd(x,a);y?m():b&&(m(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,f,a,u,m]),p.jsx(Os,{...e,ref:s})}),[xd,yd]=an(lt,{isInside:!1}),bd=fd("TooltipContent"),Os=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,l=wt(Qe,n),u=cn(n),{onClose:f}=l;return i.useEffect(()=>(document.addEventListener(Gn,f),()=>document.removeEventListener(Gn,f)),[f]),i.useEffect(()=>{if(l.trigger){const d=m=>{m.target?.contains(l.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,f]),p.jsx(Ve,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:f,children:p.jsxs(rn,{"data-state":l.stateAttribute,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(bd,{children:o}),p.jsx(xd,{scope:n,isInside:!0,children:p.jsx(Ll,{id:l.contentId,role:"tooltip",children:r||o})})]})})});Ns.displayName=Qe;var Ds="TooltipArrow",Sd=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=cn(n);return yd(Ds,n).isInside?null:p.jsx(sn,{...r,...o,ref:t})});Sd.displayName=Ds;function Cd(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Ed(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Rd(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function Pd(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,a=t.length-1;so!=m>o&&n<(d-u)*(o-f)/(m-f)+u&&(r=!r)}return r}function Td(e){const t=e.slice();return t.sort((n,o)=>n.xo.x?1:n.yo.y?1:0),Ad(t)}function Ad(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(r.y-a.y)>=(s.y-a.y)*(r.x-a.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(r.y-a.y)>=(s.y-a.y)*(r.x-a.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Gv=Ts,Yv=As,Xv=_s,qv=Is,Zv=Ns,On="focusScope.autoFocusOnMount",Dn="focusScope.autoFocusOnUnmount",ur={bubbles:!1,cancelable:!0},_d="FocusScope",xt=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=e,[c,l]=i.useState(null),u=z(r),f=z(s),d=i.useRef(null),m=k(t,v=>l(v)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let v=function(b){if(h.paused||!c)return;const S=b.target;c.contains(S)?d.current=S:Re(d.current,{select:!0})},g=function(b){if(h.paused||!c)return;const S=b.relatedTarget;S!==null&&(c.contains(S)||Re(d.current,{select:!0}))},x=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&Re(c)};document.addEventListener("focusin",v),document.addEventListener("focusout",g);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",g),y.disconnect()}}},[o,c,h.paused]),i.useEffect(()=>{if(c){fr.add(h);const v=document.activeElement;if(!c.contains(v)){const x=new CustomEvent(On,ur);c.addEventListener(On,u),c.dispatchEvent(x),x.defaultPrevented||(Id(Ld(Ms(c)),{select:!0}),document.activeElement===v&&Re(c))}return()=>{c.removeEventListener(On,u),setTimeout(()=>{const x=new CustomEvent(Dn,ur);c.addEventListener(Dn,f),c.dispatchEvent(x),x.defaultPrevented||Re(v??document.body,{select:!0}),c.removeEventListener(Dn,f),fr.remove(h)},0)}}},[c,u,f,h]);const w=i.useCallback(v=>{if(!n&&!o||h.paused)return;const g=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,x=document.activeElement;if(g&&x){const y=v.currentTarget,[b,S]=Nd(y);b&&S?!v.shiftKey&&x===S?(v.preventDefault(),n&&Re(b,{select:!0})):v.shiftKey&&x===b&&(v.preventDefault(),n&&Re(S,{select:!0})):x===y&&v.preventDefault()}},[n,o,h.paused]);return p.jsx(D.div,{tabIndex:-1,...a,ref:m,onKeyDown:w})});xt.displayName=_d;function Id(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Re(o,{select:t}),document.activeElement!==n)return}function Nd(e){const t=Ms(e),n=dr(t,e),o=dr(t.reverse(),e);return[n,o]}function Ms(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function dr(e,t){for(const n of e)if(!Od(n,{upTo:t}))return n}function Od(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Dd(e){return e instanceof HTMLInputElement&&"select"in e}function Re(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Dd(e)&&t&&e.select()}}var fr=Md();function Md(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=pr(e,t),e.unshift(t)},remove(t){e=pr(e,t),e[0]?.resume()}}}function pr(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Ld(e){return e.filter(t=>t.tagName!=="A")}var Mn=0;function ln(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??mr()),document.body.insertAdjacentElement("beforeend",e[1]??mr()),Mn++,()=>{Mn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Mn--}},[])}function mr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var me=function(){return me=Object.assign||function(t){for(var n,o=1,r=arguments.length;o"u")return Qd;var t=Jd(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},tf=$s(),Ye="data-scroll-locked",nf=function(e,t,n,o){var r=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),` + .`.concat(kd,` { + overflow: hidden `).concat(o,`; + padding-right: `).concat(c,"px ").concat(o,`; + } + body[`).concat(Ye,`] { + overflow: hidden `).concat(o,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&` + padding-left: `.concat(r,`px; + padding-top: `).concat(s,`px; + padding-right: `).concat(a,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(c,"px ").concat(o,`; + `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(o,";")].filter(Boolean).join(""),` + } + + .`).concat(Dt,` { + right: `).concat(c,"px ").concat(o,`; + } + + .`).concat(Mt,` { + margin-right: `).concat(c,"px ").concat(o,`; + } + + .`).concat(Dt," .").concat(Dt,` { + right: 0 `).concat(o,`; + } + + .`).concat(Mt," .").concat(Mt,` { + margin-right: 0 `).concat(o,`; + } + + body[`).concat(Ye,`] { + `).concat($d,": ").concat(c,`px; + } +`)},hr=function(){var e=parseInt(document.body.getAttribute(Ye)||"0",10);return isFinite(e)?e:0},of=function(){i.useEffect(function(){return document.body.setAttribute(Ye,(hr()+1).toString()),function(){var e=hr()-1;e<=0?document.body.removeAttribute(Ye):document.body.setAttribute(Ye,e.toString())}},[])},rf=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;of();var s=i.useMemo(function(){return ef(r)},[r]);return i.createElement(tf,{styles:nf(s,!t,r,n?"":"!important")})},Xn=!1;if(typeof window<"u")try{var At=Object.defineProperty({},"passive",{get:function(){return Xn=!0,!0}});window.addEventListener("test",At,At),window.removeEventListener("test",At,At)}catch{Xn=!1}var Ke=Xn?{passive:!1}:!1,sf=function(e){return e.tagName==="TEXTAREA"},Fs=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!sf(e)&&n[t]==="visible")},af=function(e){return Fs(e,"overflowY")},cf=function(e){return Fs(e,"overflowX")},gr=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Vs(e,o);if(r){var s=Bs(e,o),a=s[1],c=s[2];if(a>c)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},lf=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},uf=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Vs=function(e,t){return e==="v"?af(t):cf(t)},Bs=function(e,t){return e==="v"?lf(t):uf(t)},df=function(e,t){return e==="h"&&t==="rtl"?-1:1},ff=function(e,t,n,o,r){var s=df(e,window.getComputedStyle(t).direction),a=s*o,c=n.target,l=t.contains(c),u=!1,f=a>0,d=0,m=0;do{if(!c)break;var h=Bs(e,c),w=h[0],v=h[1],g=h[2],x=v-g-s*w;(w||x)&&Vs(e,c)&&(d+=x,m+=w);var y=c.parentNode;c=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(f&&Math.abs(d)<1||!f&&Math.abs(m)<1)&&(u=!0),u},_t=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wr=function(e){return[e.deltaX,e.deltaY]},xr=function(e){return e&&"current"in e?e.current:e},pf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mf=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},vf=0,Ue=[];function hf(e){var t=i.useRef([]),n=i.useRef([0,0]),o=i.useRef(),r=i.useState(vf++)[0],s=i.useState($s)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var v=jd([e.lockRef.current],(e.shards||[]).map(xr),!0).filter(Boolean);return v.forEach(function(g){return g.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),v.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(v,g){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!a.current.allowPinchZoom;var x=_t(v),y=n.current,b="deltaX"in v?v.deltaX:y[0]-x[0],S="deltaY"in v?v.deltaY:y[1]-x[1],C,P=v.target,E=Math.abs(b)>Math.abs(S)?"h":"v";if("touches"in v&&E==="h"&&P.type==="range")return!1;var N=window.getSelection(),O=N&&N.anchorNode,M=O?O===P||O.contains(P):!1;if(M)return!1;var _=gr(E,P);if(!_)return!0;if(_?C=E:(C=E==="v"?"h":"v",_=gr(E,P)),!_)return!1;if(!o.current&&"changedTouches"in v&&(b||S)&&(o.current=C),!C)return!0;var $=o.current||C;return ff($,g,v,$==="h"?b:S)},[]),l=i.useCallback(function(v){var g=v;if(!(!Ue.length||Ue[Ue.length-1]!==s)){var x="deltaY"in g?wr(g):_t(g),y=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&pf(C.delta,x)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var b=(a.current.shards||[]).map(xr).filter(Boolean).filter(function(C){return C.contains(g.target)}),S=b.length>0?c(g,b[0]):!a.current.noIsolation;S&&g.cancelable&&g.preventDefault()}}},[]),u=i.useCallback(function(v,g,x,y){var b={name:v,delta:g,target:x,should:y,shadowParent:gf(x)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(S){return S!==b})},1)},[]),f=i.useCallback(function(v){n.current=_t(v),o.current=void 0},[]),d=i.useCallback(function(v){u(v.type,wr(v),v.target,c(v,e.lockRef.current))},[]),m=i.useCallback(function(v){u(v.type,_t(v),v.target,c(v,e.lockRef.current))},[]);i.useEffect(function(){return Ue.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Ke),document.addEventListener("touchmove",l,Ke),document.addEventListener("touchstart",f,Ke),function(){Ue=Ue.filter(function(v){return v!==s}),document.removeEventListener("wheel",l,Ke),document.removeEventListener("touchmove",l,Ke),document.removeEventListener("touchstart",f,Ke)}},[]);var h=e.removeScrollBar,w=e.inert;return i.createElement(i.Fragment,null,w?i.createElement(s,{styles:mf(r)}):null,h?i.createElement(rf,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function gf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const wf=Ud(ks,hf);var yt=i.forwardRef(function(e,t){return i.createElement(un,me({},e,{ref:t,sideCar:wf}))});yt.classNames=un.classNames;var xf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ze=new WeakMap,It=new WeakMap,Nt={},$n=0,Ws=function(e){return e&&(e.host||Ws(e.parentNode))},yf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Ws(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},bf=function(e,t,n,o){var r=yf(t,Array.isArray(e)?e:[e]);Nt[n]||(Nt[n]=new WeakMap);var s=Nt[n],a=[],c=new Set,l=new Set(r),u=function(d){!d||c.has(d)||(c.add(d),u(d.parentNode))};r.forEach(u);var f=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(m){if(c.has(m))f(m);else try{var h=m.getAttribute(o),w=h!==null&&h!=="false",v=(ze.get(m)||0)+1,g=(s.get(m)||0)+1;ze.set(m,v),s.set(m,g),a.push(m),v===1&&w&&It.set(m,!0),g===1&&m.setAttribute(n,"true"),w||m.setAttribute(o,"true")}catch(x){console.error("aria-hidden: cannot operate on ",m,x)}})};return f(t),c.clear(),$n++,function(){a.forEach(function(d){var m=ze.get(d)-1,h=s.get(d)-1;ze.set(d,m),s.set(d,h),m||(It.has(d)||d.removeAttribute(o),It.delete(d)),h||d.removeAttribute(n)}),$n--,$n||(ze=new WeakMap,ze=new WeakMap,It=new WeakMap,Nt={})}},dn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=xf(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),bf(o,r,n,"aria-hidden")):function(){return null}};function Sf(e){const t=Cf(e),n=i.forwardRef((o,r)=>{const{children:s,...a}=o,c=i.Children.toArray(s),l=c.find(Rf);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function Cf(e){const t=i.forwardRef((n,o)=>{const{children:r,...s}=n;if(i.isValidElement(r)){const a=Tf(r),c=Pf(s,r.props);return r.type!==i.Fragment&&(c.ref=o?Se(o,a):a),i.cloneElement(r,c)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ef=Symbol("radix.slottable");function Rf(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ef}function Pf(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...c)=>{const l=s(...c);return r(...c),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Tf(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)}var fn="Dialog",[Hs,Ks]=Z(fn),[Af,pe]=Hs(fn),Us=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:a=!0}=e,c=i.useRef(null),l=i.useRef(null),[u,f]=ae({prop:o,defaultProp:r??!1,onChange:s,caller:fn});return p.jsx(Af,{scope:t,triggerRef:c,contentRef:l,contentId:ue(),titleId:ue(),descriptionId:ue(),open:u,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(d=>!d),[f]),modal:a,children:n})};Us.displayName=fn;var zs="DialogTrigger",Gs=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=pe(zs,n),s=k(t,r.triggerRef);return p.jsx(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Io(r.open),...o,ref:s,onClick:R(e.onClick,r.onOpenToggle)})});Gs.displayName=zs;var Ao="DialogPortal",[_f,Ys]=Hs(Ao,{forceMount:void 0}),Xs=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=pe(Ao,t);return p.jsx(_f,{scope:t,forceMount:n,children:i.Children.map(o,a=>p.jsx(X,{present:n||s.open,children:p.jsx(Be,{asChild:!0,container:r,children:a})}))})};Xs.displayName=Ao;var Wt="DialogOverlay",qs=i.forwardRef((e,t)=>{const n=Ys(Wt,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=pe(Wt,e.__scopeDialog);return s.modal?p.jsx(X,{present:o||s.open,children:p.jsx(Nf,{...r,ref:t})}):null});qs.displayName=Wt;var If=Sf("DialogOverlay.RemoveScroll"),Nf=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=pe(Wt,n);return p.jsx(yt,{as:If,allowPinchZoom:!0,shards:[r.contentRef],children:p.jsx(D.div,{"data-state":Io(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),ke="DialogContent",Zs=i.forwardRef((e,t)=>{const n=Ys(ke,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=pe(ke,e.__scopeDialog);return p.jsx(X,{present:o||s.open,children:s.modal?p.jsx(Of,{...r,ref:t}):p.jsx(Df,{...r,ref:t})})});Zs.displayName=ke;var Of=i.forwardRef((e,t)=>{const n=pe(ke,e.__scopeDialog),o=i.useRef(null),r=k(t,n.contentRef,o);return i.useEffect(()=>{const s=o.current;if(s)return dn(s)},[]),p.jsx(Qs,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:R(e.onFocusOutside,s=>s.preventDefault())})}),Df=i.forwardRef((e,t)=>{const n=pe(ke,e.__scopeDialog),o=i.useRef(!1),r=i.useRef(!1);return p.jsx(Qs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||n.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Qs=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...a}=e,c=pe(ke,n),l=i.useRef(null),u=k(t,l);return ln(),p.jsxs(p.Fragment,{children:[p.jsx(xt,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:p.jsx(Ve,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Io(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(Lf,{titleId:c.titleId}),p.jsx(kf,{contentRef:l,descriptionId:c.descriptionId})]})]})}),_o="DialogTitle",Js=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=pe(_o,n);return p.jsx(D.h2,{id:r.titleId,...o,ref:t})});Js.displayName=_o;var ei="DialogDescription",ti=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=pe(ei,n);return p.jsx(D.p,{id:r.descriptionId,...o,ref:t})});ti.displayName=ei;var ni="DialogClose",oi=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=pe(ni,n);return p.jsx(D.button,{type:"button",...o,ref:t,onClick:R(e.onClick,()=>r.onOpenChange(!1))})});oi.displayName=ni;function Io(e){return e?"open":"closed"}var ri="DialogTitleWarning",[Mf,si]=zc(ri,{contentName:ke,titleName:_o,docsSlug:"dialog"}),Lf=({titleId:e})=>{const t=si(ri),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},jf="DialogDescriptionWarning",kf=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${si(jf).contentName}}.`;return i.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},$f=Us,Ff=Gs,Vf=Xs,Bf=qs,Wf=Zs,Hf=Js,Kf=ti,ii=oi,Uf=Symbol("radix.slottable");function zf(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Uf,t}var ai="AlertDialog",[Gf]=Z(ai,[Ks]),Ee=Ks(),ci=e=>{const{__scopeAlertDialog:t,...n}=e,o=Ee(t);return p.jsx($f,{...o,...n,modal:!0})};ci.displayName=ai;var Yf="AlertDialogTrigger",li=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Ee(n);return p.jsx(Ff,{...r,...o,ref:t})});li.displayName=Yf;var Xf="AlertDialogPortal",ui=e=>{const{__scopeAlertDialog:t,...n}=e,o=Ee(t);return p.jsx(Vf,{...o,...n})};ui.displayName=Xf;var qf="AlertDialogOverlay",di=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Ee(n);return p.jsx(Bf,{...r,...o,ref:t})});di.displayName=qf;var Xe="AlertDialogContent",[Zf,Qf]=Gf(Xe),Jf=zf("AlertDialogContent"),fi=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:o,...r}=e,s=Ee(n),a=i.useRef(null),c=k(t,a),l=i.useRef(null);return p.jsx(Mf,{contentName:Xe,titleName:pi,docsSlug:"alert-dialog",children:p.jsx(Zf,{scope:n,cancelRef:l,children:p.jsxs(Wf,{role:"alertdialog",...s,...r,ref:c,onOpenAutoFocus:R(r.onOpenAutoFocus,u=>{u.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[p.jsx(Jf,{children:o}),p.jsx(tp,{contentRef:a})]})})})});fi.displayName=Xe;var pi="AlertDialogTitle",mi=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Ee(n);return p.jsx(Hf,{...r,...o,ref:t})});mi.displayName=pi;var vi="AlertDialogDescription",hi=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Ee(n);return p.jsx(Kf,{...r,...o,ref:t})});hi.displayName=vi;var ep="AlertDialogAction",gi=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Ee(n);return p.jsx(ii,{...r,...o,ref:t})});gi.displayName=ep;var wi="AlertDialogCancel",xi=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,{cancelRef:r}=Qf(wi,n),s=Ee(n),a=k(t,r);return p.jsx(ii,{...s,...o,ref:a})});xi.displayName=wi;var tp=({contentRef:e})=>{const t=`\`${Xe}\` requires a description for the component to be accessible for screen reader users. + +You can add a description to the \`${Xe}\` by passing a \`${vi}\` component as a child, which also benefits sighted users by adding visible context to the dialog. + +Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Xe}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. + +For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return i.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Qv=ci,Jv=li,eh=ui,th=di,nh=fi,oh=gi,rh=xi,sh=mi,ih=hi,Fn="rovingFocusGroup.onEntryFocus",np={bubbles:!1,cancelable:!0},bt="RovingFocusGroup",[qn,yi,op]=mt(bt),[rp,pn]=Z(bt,[op]),[sp,ip]=rp(bt),bi=i.forwardRef((e,t)=>p.jsx(qn.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(qn.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(ap,{...e,ref:t})})}));bi.displayName=bt;var ap=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...d}=e,m=i.useRef(null),h=k(t,m),w=et(s),[v,g]=ae({prop:a,defaultProp:c??null,onChange:l,caller:bt}),[x,y]=i.useState(!1),b=z(u),S=yi(n),C=i.useRef(!1),[P,E]=i.useState(0);return i.useEffect(()=>{const N=m.current;if(N)return N.addEventListener(Fn,b),()=>N.removeEventListener(Fn,b)},[b]),p.jsx(sp,{scope:n,orientation:o,dir:w,loop:r,currentTabStopId:v,onItemFocus:i.useCallback(N=>g(N),[g]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>E(N=>N+1),[]),onFocusableItemRemove:i.useCallback(()=>E(N=>N-1),[]),children:p.jsx(D.div,{tabIndex:x||P===0?-1:0,"data-orientation":o,...d,ref:h,style:{outline:"none",...e.style},onMouseDown:R(e.onMouseDown,()=>{C.current=!0}),onFocus:R(e.onFocus,N=>{const O=!C.current;if(N.target===N.currentTarget&&O&&!x){const M=new CustomEvent(Fn,np);if(N.currentTarget.dispatchEvent(M),!M.defaultPrevented){const _=S().filter(j=>j.focusable),$=_.find(j=>j.active),B=_.find(j=>j.id===v),V=[$,B,..._].filter(Boolean).map(j=>j.ref.current);Ei(V,f)}}C.current=!1}),onBlur:R(e.onBlur,()=>y(!1))})})}),Si="RovingFocusGroupItem",Ci=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:a,...c}=e,l=ue(),u=s||l,f=ip(Si,n),d=f.currentTabStopId===u,m=yi(n),{onFocusableItemAdd:h,onFocusableItemRemove:w,currentTabStopId:v}=f;return i.useEffect(()=>{if(o)return h(),()=>w()},[o,h,w]),p.jsx(qn.ItemSlot,{scope:n,id:u,focusable:o,active:r,children:p.jsx(D.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:R(e.onMouseDown,g=>{o?f.onItemFocus(u):g.preventDefault()}),onFocus:R(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:R(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){f.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const x=up(g,f.orientation,f.dir);if(x!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let b=m().filter(S=>S.focusable).map(S=>S.ref.current);if(x==="last")b.reverse();else if(x==="prev"||x==="next"){x==="prev"&&b.reverse();const S=b.indexOf(g.currentTarget);b=f.loop?dp(b,S+1):b.slice(S+1)}setTimeout(()=>Ei(b))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:v!=null}):a})})});Ci.displayName=Si;var cp={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function lp(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function up(e,t,n){const o=lp(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return cp[o]}function Ei(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function dp(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Ri=bi,Pi=Ci;function fp(e){const t=pp(e),n=i.forwardRef((o,r)=>{const{children:s,...a}=o,c=i.Children.toArray(s),l=c.find(vp);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function pp(e){const t=i.forwardRef((n,o)=>{const{children:r,...s}=n;if(i.isValidElement(r)){const a=gp(r),c=hp(s,r.props);return r.type!==i.Fragment&&(c.ref=o?Se(o,a):a),i.cloneElement(r,c)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var mp=Symbol("radix.slottable");function vp(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===mp}function hp(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...c)=>{const l=s(...c);return r(...c),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function gp(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)}var Zn=["Enter"," "],wp=["ArrowDown","PageUp","Home"],Ti=["ArrowUp","PageDown","End"],xp=[...wp,...Ti],yp={ltr:[...Zn,"ArrowRight"],rtl:[...Zn,"ArrowLeft"]},bp={ltr:["ArrowLeft"],rtl:["ArrowRight"]},St="Menu",[ut,Sp,Cp]=mt(St),[We,ah]=Z(St,[Cp,_e,pn]),mn=_e(),Ai=pn(),[Ep,He]=We(St),[Rp,Ct]=We(St),_i=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:a=!0}=e,c=mn(t),[l,u]=i.useState(null),f=i.useRef(!1),d=z(s),m=et(r);return i.useEffect(()=>{const h=()=>{f.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>f.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),p.jsx(on,{...c,children:p.jsx(Ep,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u,children:p.jsx(Rp,{scope:t,onClose:i.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:m,modal:a,children:o})})})};_i.displayName=St;var Pp="MenuAnchor",No=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=mn(n);return p.jsx(gt,{...r,...o,ref:t})});No.displayName=Pp;var Oo="MenuPortal",[Tp,Ii]=We(Oo,{forceMount:void 0}),Ni=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=He(Oo,t);return p.jsx(Tp,{scope:t,forceMount:n,children:p.jsx(X,{present:n||s.open,children:p.jsx(Be,{asChild:!0,container:r,children:o})})})};Ni.displayName=Oo;var ie="MenuContent",[Ap,Do]=We(ie),Oi=i.forwardRef((e,t)=>{const n=Ii(ie,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=He(ie,e.__scopeMenu),a=Ct(ie,e.__scopeMenu);return p.jsx(ut.Provider,{scope:e.__scopeMenu,children:p.jsx(X,{present:o||s.open,children:p.jsx(ut.Slot,{scope:e.__scopeMenu,children:a.modal?p.jsx(_p,{...r,ref:t}):p.jsx(Ip,{...r,ref:t})})})})}),_p=i.forwardRef((e,t)=>{const n=He(ie,e.__scopeMenu),o=i.useRef(null),r=k(t,o);return i.useEffect(()=>{const s=o.current;if(s)return dn(s)},[]),p.jsx(Mo,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:R(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Ip=i.forwardRef((e,t)=>{const n=He(ie,e.__scopeMenu);return p.jsx(Mo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Np=fp("MenuContent.ScrollLock"),Mo=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:m,onDismiss:h,disableOutsideScroll:w,...v}=e,g=He(ie,n),x=Ct(ie,n),y=mn(n),b=Ai(n),S=Sp(n),[C,P]=i.useState(null),E=i.useRef(null),N=k(t,E,g.onContentChange),O=i.useRef(0),M=i.useRef(""),_=i.useRef(0),$=i.useRef(null),B=i.useRef("right"),A=i.useRef(0),V=w?yt:i.Fragment,j=w?{as:Np,allowPinchZoom:!0}:void 0,F=T=>{const U=M.current+T,q=S().filter(L=>!L.disabled),Q=document.activeElement,te=q.find(L=>L.ref.current===Q)?.textValue,J=q.map(L=>L.textValue),xe=Hp(J,U,te),ne=q.find(L=>L.textValue===xe)?.ref.current;(function L(W){M.current=W,window.clearTimeout(O.current),W!==""&&(O.current=window.setTimeout(()=>L(""),1e3))})(U),ne&&setTimeout(()=>ne.focus())};i.useEffect(()=>()=>window.clearTimeout(O.current),[]),ln();const I=i.useCallback(T=>B.current===$.current?.side&&Up(T,$.current?.area),[]);return p.jsx(Ap,{scope:n,searchRef:M,onItemEnter:i.useCallback(T=>{I(T)&&T.preventDefault()},[I]),onItemLeave:i.useCallback(T=>{I(T)||(E.current?.focus(),P(null))},[I]),onTriggerLeave:i.useCallback(T=>{I(T)&&T.preventDefault()},[I]),pointerGraceTimerRef:_,onPointerGraceIntentChange:i.useCallback(T=>{$.current=T},[]),children:p.jsx(V,{...j,children:p.jsx(xt,{asChild:!0,trapped:r,onMountAutoFocus:R(s,T=>{T.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:p.jsx(Ve,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:m,onDismiss:h,children:p.jsx(Ri,{asChild:!0,...b,dir:x.dir,orientation:"vertical",loop:o,currentTabStopId:C,onCurrentTabStopIdChange:P,onEntryFocus:R(l,T=>{x.isUsingKeyboardRef.current||T.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(rn,{role:"menu","aria-orientation":"vertical","data-state":Yi(g.open),"data-radix-menu-content":"",dir:x.dir,...y,...v,ref:N,style:{outline:"none",...v.style},onKeyDown:R(v.onKeyDown,T=>{const q=T.target.closest("[data-radix-menu-content]")===T.currentTarget,Q=T.ctrlKey||T.altKey||T.metaKey,te=T.key.length===1;q&&(T.key==="Tab"&&T.preventDefault(),!Q&&te&&F(T.key));const J=E.current;if(T.target!==J||!xp.includes(T.key))return;T.preventDefault();const ne=S().filter(L=>!L.disabled).map(L=>L.ref.current);Ti.includes(T.key)&&ne.reverse(),Bp(ne)}),onBlur:R(e.onBlur,T=>{T.currentTarget.contains(T.target)||(window.clearTimeout(O.current),M.current="")}),onPointerMove:R(e.onPointerMove,dt(T=>{const U=T.target,q=A.current!==T.clientX;if(T.currentTarget.contains(U)&&q){const Q=T.clientX>A.current?"right":"left";B.current=Q,A.current=T.clientX}}))})})})})})})});Oi.displayName=ie;var Op="MenuGroup",Lo=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return p.jsx(D.div,{role:"group",...o,ref:t})});Lo.displayName=Op;var Dp="MenuLabel",Di=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return p.jsx(D.div,{...o,ref:t})});Di.displayName=Dp;var Ht="MenuItem",yr="menu.itemSelect",vn=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=i.useRef(null),a=Ct(Ht,e.__scopeMenu),c=Do(Ht,e.__scopeMenu),l=k(t,s),u=i.useRef(!1),f=()=>{const d=s.current;if(!n&&d){const m=new CustomEvent(yr,{bubbles:!0,cancelable:!0});d.addEventListener(yr,h=>o?.(h),{once:!0}),ao(d,m),m.defaultPrevented?u.current=!1:a.onClose()}};return p.jsx(Mi,{...r,ref:l,disabled:n,onClick:R(e.onClick,f),onPointerDown:d=>{e.onPointerDown?.(d),u.current=!0},onPointerUp:R(e.onPointerUp,d=>{u.current||d.currentTarget?.click()}),onKeyDown:R(e.onKeyDown,d=>{const m=c.searchRef.current!=="";n||m&&d.key===" "||Zn.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});vn.displayName=Ht;var Mi=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,a=Do(Ht,n),c=Ai(n),l=i.useRef(null),u=k(t,l),[f,d]=i.useState(!1),[m,h]=i.useState("");return i.useEffect(()=>{const w=l.current;w&&h((w.textContent??"").trim())},[s.children]),p.jsx(ut.ItemSlot,{scope:n,disabled:o,textValue:r??m,children:p.jsx(Pi,{asChild:!0,...c,focusable:!o,children:p.jsx(D.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:u,onPointerMove:R(e.onPointerMove,dt(w=>{o?a.onItemLeave(w):(a.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:R(e.onPointerLeave,dt(w=>a.onItemLeave(w))),onFocus:R(e.onFocus,()=>d(!0)),onBlur:R(e.onBlur,()=>d(!1))})})})}),Mp="MenuCheckboxItem",Li=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return p.jsx(Vi,{scope:e.__scopeMenu,checked:n,children:p.jsx(vn,{role:"menuitemcheckbox","aria-checked":Kt(n)?"mixed":n,...r,ref:t,"data-state":ko(n),onSelect:R(r.onSelect,()=>o?.(Kt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Li.displayName=Mp;var ji="MenuRadioGroup",[Lp,jp]=We(ji,{value:void 0,onValueChange:()=>{}}),ki=i.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=z(o);return p.jsx(Lp,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(Lo,{...r,ref:t})})});ki.displayName=ji;var $i="MenuRadioItem",Fi=i.forwardRef((e,t)=>{const{value:n,...o}=e,r=jp($i,e.__scopeMenu),s=n===r.value;return p.jsx(Vi,{scope:e.__scopeMenu,checked:s,children:p.jsx(vn,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":ko(s),onSelect:R(o.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Fi.displayName=$i;var jo="MenuItemIndicator",[Vi,kp]=We(jo,{checked:!1}),Bi=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=kp(jo,n);return p.jsx(X,{present:o||Kt(s.checked)||s.checked===!0,children:p.jsx(D.span,{...r,ref:t,"data-state":ko(s.checked)})})});Bi.displayName=jo;var $p="MenuSeparator",Wi=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return p.jsx(D.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Wi.displayName=$p;var Fp="MenuArrow",Hi=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=mn(n);return p.jsx(sn,{...r,...o,ref:t})});Hi.displayName=Fp;var Vp="MenuSub",[ch,Ki]=We(Vp),st="MenuSubTrigger",Ui=i.forwardRef((e,t)=>{const n=He(st,e.__scopeMenu),o=Ct(st,e.__scopeMenu),r=Ki(st,e.__scopeMenu),s=Do(st,e.__scopeMenu),a=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=s,u={__scopeMenu:e.__scopeMenu},f=i.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return i.useEffect(()=>f,[f]),i.useEffect(()=>{const d=c.current;return()=>{window.clearTimeout(d),l(null)}},[c,l]),p.jsx(No,{asChild:!0,...u,children:p.jsx(Mi,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":Yi(n.open),...e,ref:Se(t,r.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:R(e.onPointerMove,dt(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:R(e.onPointerLeave,dt(d=>{f();const m=n.content?.getBoundingClientRect();if(m){const h=n.content?.dataset.side,w=h==="right",v=w?-5:5,g=m[w?"left":"right"],x=m[w?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+v,y:d.clientY},{x:g,y:m.top},{x,y:m.top},{x,y:m.bottom},{x:g,y:m.bottom}],side:h}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:R(e.onKeyDown,d=>{const m=s.searchRef.current!=="";e.disabled||m&&d.key===" "||yp[o.dir].includes(d.key)&&(n.onOpenChange(!0),n.content?.focus(),d.preventDefault())})})})});Ui.displayName=st;var zi="MenuSubContent",Gi=i.forwardRef((e,t)=>{const n=Ii(ie,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=He(ie,e.__scopeMenu),a=Ct(ie,e.__scopeMenu),c=Ki(zi,e.__scopeMenu),l=i.useRef(null),u=k(t,l);return p.jsx(ut.Provider,{scope:e.__scopeMenu,children:p.jsx(X,{present:o||s.open,children:p.jsx(ut.Slot,{scope:e.__scopeMenu,children:p.jsx(Mo,{id:c.contentId,"aria-labelledby":c.triggerId,...r,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{a.isUsingKeyboardRef.current&&l.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:R(e.onFocusOutside,f=>{f.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:R(e.onEscapeKeyDown,f=>{a.onClose(),f.preventDefault()}),onKeyDown:R(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),m=bp[a.dir].includes(f.key);d&&m&&(s.onOpenChange(!1),c.trigger?.focus(),f.preventDefault())})})})})})});Gi.displayName=zi;function Yi(e){return e?"open":"closed"}function Kt(e){return e==="indeterminate"}function ko(e){return Kt(e)?"indeterminate":e?"checked":"unchecked"}function Bp(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Wp(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Hp(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Wp(e,Math.max(s,0));r.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Kp(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,a=t.length-1;so!=m>o&&n<(d-u)*(o-f)/(m-f)+u&&(r=!r)}return r}function Up(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Kp(n,t)}function dt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var lh=_i,uh=No,dh=Ni,fh=Oi,ph=Lo,mh=Di,vh=vn,hh=Li,gh=ki,wh=Fi,xh=Bi,yh=Wi,bh=Hi,Sh=Ui,Ch=Gi,hn="Tabs",[zp]=Z(hn,[pn]),Xi=pn(),[Gp,$o]=zp(hn),qi=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:r,defaultValue:s,orientation:a="horizontal",dir:c,activationMode:l="automatic",...u}=e,f=et(c),[d,m]=ae({prop:o,onChange:r,defaultProp:s??"",caller:hn});return p.jsx(Gp,{scope:n,baseId:ue(),value:d,onValueChange:m,orientation:a,dir:f,activationMode:l,children:p.jsx(D.div,{dir:f,"data-orientation":a,...u,ref:t})})});qi.displayName=hn;var Zi="TabsList",Qi=i.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...r}=e,s=$o(Zi,n),a=Xi(n);return p.jsx(Ri,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:o,children:p.jsx(D.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:t})})});Qi.displayName=Zi;var Ji="TabsTrigger",ea=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,disabled:r=!1,...s}=e,a=$o(Ji,n),c=Xi(n),l=oa(a.baseId,o),u=ra(a.baseId,o),f=o===a.value;return p.jsx(Pi,{asChild:!0,...c,focusable:!r,active:f,children:p.jsx(D.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:t,onMouseDown:R(e.onMouseDown,d=>{!r&&d.button===0&&d.ctrlKey===!1?a.onValueChange(o):d.preventDefault()}),onKeyDown:R(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&a.onValueChange(o)}),onFocus:R(e.onFocus,()=>{const d=a.activationMode!=="manual";!f&&!r&&d&&a.onValueChange(o)})})})});ea.displayName=Ji;var ta="TabsContent",na=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:r,children:s,...a}=e,c=$o(ta,n),l=oa(c.baseId,o),u=ra(c.baseId,o),f=o===c.value,d=i.useRef(f);return i.useEffect(()=>{const m=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(m)},[]),p.jsx(X,{present:r||f,children:({present:m})=>p.jsx(D.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":l,hidden:!m,id:u,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:m&&s})})});na.displayName=ta;function oa(e,t){return`${e}-trigger-${t}`}function ra(e,t){return`${e}-content-${t}`}var Eh=qi,Rh=Qi,Ph=ea,Th=na;function Yp(e,t=[]){let n=[];function o(s,a){const c=i.createContext(a);c.displayName=s+"Context";const l=n.length;n=[...n,a];const u=d=>{const{scope:m,children:h,...w}=d,v=m?.[e]?.[l]||c,g=i.useMemo(()=>w,Object.values(w));return p.jsx(v.Provider,{value:g,children:h})};u.displayName=s+"Provider";function f(d,m){const h=m?.[e]?.[l]||c,w=i.useContext(h);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const r=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=c?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[o,Xp(r,...t)]}function Xp(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=o.reduce((c,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var qp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sa=qp.reduce((e,t)=>{const n=pt(`Primitive.${t}`),o=i.forwardRef((r,s)=>{const{asChild:a,...c}=r,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),Fo="Progress",Vo=100,[Zp]=Yp(Fo),[Qp,Jp]=Zp(Fo),ia=i.forwardRef((e,t)=>{const{__scopeProgress:n,value:o=null,max:r,getValueLabel:s=em,...a}=e;(r||r===0)&&!br(r)&&console.error(tm(`${r}`,"Progress"));const c=br(r)?r:Vo;o!==null&&!Sr(o,c)&&console.error(nm(`${o}`,"Progress"));const l=Sr(o,c)?o:null,u=Ut(l)?s(l,c):void 0;return p.jsx(Qp,{scope:n,value:l,max:c,children:p.jsx(sa.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":Ut(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":la(l,c),"data-value":l??void 0,"data-max":c,...a,ref:t})})});ia.displayName=Fo;var aa="ProgressIndicator",ca=i.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,r=Jp(aa,n);return p.jsx(sa.div,{"data-state":la(r.value,r.max),"data-value":r.value??void 0,"data-max":r.max,...o,ref:t})});ca.displayName=aa;function em(e,t){return`${Math.round(e/t*100)}%`}function la(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Ut(e){return typeof e=="number"}function br(e){return Ut(e)&&!isNaN(e)&&e>0}function Sr(e,t){return Ut(e)&&!isNaN(e)&&e<=t&&e>=0}function tm(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Vo}\`.`}function nm(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: + - a positive number + - less than the value passed to \`max\` (or ${Vo} if no \`max\` prop is set) + - \`null\` or \`undefined\` if the progress is indeterminate. + +Defaulting to \`null\`.`}var Ah=ia,_h=ca;function om(e){const t=rm(e),n=i.forwardRef((o,r)=>{const{children:s,...a}=o,c=i.Children.toArray(s),l=c.find(im);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function rm(e){const t=i.forwardRef((n,o)=>{const{children:r,...s}=n;if(i.isValidElement(r)){const a=cm(r),c=am(s,r.props);return r.type!==i.Fragment&&(c.ref=o?Se(o,a):a),i.cloneElement(r,c)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sm=Symbol("radix.slottable");function im(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sm}function am(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...c)=>{const l=s(...c);return r(...c),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function cm(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 gn(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var lm=[" ","Enter","ArrowUp","ArrowDown"],um=[" ","Enter"],$e="Select",[wn,xn,dm]=mt($e),[ot]=Z($e,[dm,_e]),yn=_e(),[fm,Ie]=ot($e),[pm,mm]=ot($e),ua=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:a,defaultValue:c,onValueChange:l,dir:u,name:f,autoComplete:d,disabled:m,required:h,form:w}=e,v=yn(t),[g,x]=i.useState(null),[y,b]=i.useState(null),[S,C]=i.useState(!1),P=et(u),[E,N]=ae({prop:o,defaultProp:r??!1,onChange:s,caller:$e}),[O,M]=ae({prop:a,defaultProp:c,onChange:l,caller:$e}),_=i.useRef(null),$=g?w||!!g.closest("form"):!0,[B,A]=i.useState(new Set),V=Array.from(B).map(j=>j.props.value).join(";");return p.jsx(on,{...v,children:p.jsxs(fm,{required:h,scope:t,trigger:g,onTriggerChange:x,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:ue(),value:O,onValueChange:M,open:E,onOpenChange:N,dir:P,triggerPointerDownPosRef:_,disabled:m,children:[p.jsx(wn.Provider,{scope:t,children:p.jsx(pm,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(j=>{A(F=>new Set(F).add(j))},[]),onNativeOptionRemove:i.useCallback(j=>{A(F=>{const I=new Set(F);return I.delete(j),I})},[]),children:n})}),$?p.jsxs(Ma,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:d,value:O,onChange:j=>M(j.target.value),disabled:m,form:w,children:[O===void 0?p.jsx("option",{value:""}):null,Array.from(B)]},V):null]})})};ua.displayName=$e;var da="SelectTrigger",fa=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=yn(n),a=Ie(da,n),c=a.disabled||o,l=k(t,a.onTriggerChange),u=xn(n),f=i.useRef("touch"),[d,m,h]=ja(v=>{const g=u().filter(b=>!b.disabled),x=g.find(b=>b.value===a.value),y=ka(g,v,x);y!==void 0&&a.onValueChange(y.value)}),w=v=>{c||(a.onOpenChange(!0),h()),v&&(a.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return p.jsx(gt,{asChild:!0,...s,children:p.jsx(D.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":La(a.value)?"":void 0,...r,ref:l,onClick:R(r.onClick,v=>{v.currentTarget.focus(),f.current!=="mouse"&&w(v)}),onPointerDown:R(r.onPointerDown,v=>{f.current=v.pointerType;const g=v.target;g.hasPointerCapture(v.pointerId)&&g.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(w(v),v.preventDefault())}),onKeyDown:R(r.onKeyDown,v=>{const g=d.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&m(v.key),!(g&&v.key===" ")&&lm.includes(v.key)&&(w(),v.preventDefault())})})})});fa.displayName=da;var pa="SelectValue",ma=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:a="",...c}=e,l=Ie(pa,n),{onValueNodeHasChildrenChange:u}=l,f=s!==void 0,d=k(t,l.onValueNodeChange);return G(()=>{u(f)},[u,f]),p.jsx(D.span,{...c,ref:d,style:{pointerEvents:"none"},children:La(l.value)?p.jsx(p.Fragment,{children:a}):s})});ma.displayName=pa;var vm="SelectIcon",va=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return p.jsx(D.span,{"aria-hidden":!0,...r,ref:t,children:o||"▼"})});va.displayName=vm;var hm="SelectPortal",ha=e=>p.jsx(Be,{asChild:!0,...e});ha.displayName=hm;var Fe="SelectContent",ga=i.forwardRef((e,t)=>{const n=Ie(Fe,e.__scopeSelect),[o,r]=i.useState();if(G(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?ft.createPortal(p.jsx(wa,{scope:e.__scopeSelect,children:p.jsx(wn.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),s):null}return p.jsx(xa,{...e,ref:t})});ga.displayName=Fe;var le=10,[wa,Ne]=ot(Fe),gm="SelectContentImpl",wm=om("SelectContent.RemoveScroll"),xa=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:m,collisionPadding:h,sticky:w,hideWhenDetached:v,avoidCollisions:g,...x}=e,y=Ie(Fe,n),[b,S]=i.useState(null),[C,P]=i.useState(null),E=k(t,L=>S(L)),[N,O]=i.useState(null),[M,_]=i.useState(null),$=xn(n),[B,A]=i.useState(!1),V=i.useRef(!1);i.useEffect(()=>{if(b)return dn(b)},[b]),ln();const j=i.useCallback(L=>{const[W,...ee]=$().map(Y=>Y.ref.current),[H]=ee.slice(-1),K=document.activeElement;for(const Y of L)if(Y===K||(Y?.scrollIntoView({block:"nearest"}),Y===W&&C&&(C.scrollTop=0),Y===H&&C&&(C.scrollTop=C.scrollHeight),Y?.focus(),document.activeElement!==K))return},[$,C]),F=i.useCallback(()=>j([N,b]),[j,N,b]);i.useEffect(()=>{B&&F()},[B,F]);const{onOpenChange:I,triggerPointerDownPosRef:T}=y;i.useEffect(()=>{if(b){let L={x:0,y:0};const W=H=>{L={x:Math.abs(Math.round(H.pageX)-(T.current?.x??0)),y:Math.abs(Math.round(H.pageY)-(T.current?.y??0))}},ee=H=>{L.x<=10&&L.y<=10?H.preventDefault():b.contains(H.target)||I(!1),document.removeEventListener("pointermove",W),T.current=null};return T.current!==null&&(document.addEventListener("pointermove",W),document.addEventListener("pointerup",ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",W),document.removeEventListener("pointerup",ee,{capture:!0})}}},[b,I,T]),i.useEffect(()=>{const L=()=>I(!1);return window.addEventListener("blur",L),window.addEventListener("resize",L),()=>{window.removeEventListener("blur",L),window.removeEventListener("resize",L)}},[I]);const[U,q]=ja(L=>{const W=$().filter(K=>!K.disabled),ee=W.find(K=>K.ref.current===document.activeElement),H=ka(W,L,ee);H&&setTimeout(()=>H.ref.current.focus())}),Q=i.useCallback((L,W,ee)=>{const H=!V.current&&!ee;(y.value!==void 0&&y.value===W||H)&&(O(L),H&&(V.current=!0))},[y.value]),te=i.useCallback(()=>b?.focus(),[b]),J=i.useCallback((L,W,ee)=>{const H=!V.current&&!ee;(y.value!==void 0&&y.value===W||H)&&_(L)},[y.value]),xe=o==="popper"?Qn:ya,ne=xe===Qn?{side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:m,collisionPadding:h,sticky:w,hideWhenDetached:v,avoidCollisions:g}:{};return p.jsx(wa,{scope:n,content:b,viewport:C,onViewportChange:P,itemRefCallback:Q,selectedItem:N,onItemLeave:te,itemTextRefCallback:J,focusSelectedItem:F,selectedItemText:M,position:o,isPositioned:B,searchRef:U,children:p.jsx(yt,{as:wm,allowPinchZoom:!0,children:p.jsx(xt,{asChild:!0,trapped:y.open,onMountAutoFocus:L=>{L.preventDefault()},onUnmountAutoFocus:R(r,L=>{y.trigger?.focus({preventScroll:!0}),L.preventDefault()}),children:p.jsx(Ve,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:L=>L.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:p.jsx(xe,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:L=>L.preventDefault(),...x,...ne,onPlaced:()=>A(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:R(x.onKeyDown,L=>{const W=L.ctrlKey||L.altKey||L.metaKey;if(L.key==="Tab"&&L.preventDefault(),!W&&L.key.length===1&&q(L.key),["ArrowUp","ArrowDown","Home","End"].includes(L.key)){let H=$().filter(K=>!K.disabled).map(K=>K.ref.current);if(["ArrowUp","End"].includes(L.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(L.key)){const K=L.target,Y=H.indexOf(K);H=H.slice(Y+1)}setTimeout(()=>j(H)),L.preventDefault()}})})})})})})});xa.displayName=gm;var xm="SelectItemAlignedPosition",ya=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=Ie(Fe,n),a=Ne(Fe,n),[c,l]=i.useState(null),[u,f]=i.useState(null),d=k(t,E=>f(E)),m=xn(n),h=i.useRef(!1),w=i.useRef(!0),{viewport:v,selectedItem:g,selectedItemText:x,focusSelectedItem:y}=a,b=i.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&v&&g&&x){const E=s.trigger.getBoundingClientRect(),N=u.getBoundingClientRect(),O=s.valueNode.getBoundingClientRect(),M=x.getBoundingClientRect();if(s.dir!=="rtl"){const K=M.left-N.left,Y=O.left-K,se=E.left-Y,De=E.width+se,Rn=Math.max(De,N.width),Pn=window.innerWidth-le,Tn=at(Y,[le,Math.max(le,Pn-Rn)]);c.style.minWidth=De+"px",c.style.left=Tn+"px"}else{const K=N.right-M.right,Y=window.innerWidth-O.right-K,se=window.innerWidth-E.right-Y,De=E.width+se,Rn=Math.max(De,N.width),Pn=window.innerWidth-le,Tn=at(Y,[le,Math.max(le,Pn-Rn)]);c.style.minWidth=De+"px",c.style.right=Tn+"px"}const _=m(),$=window.innerHeight-le*2,B=v.scrollHeight,A=window.getComputedStyle(u),V=parseInt(A.borderTopWidth,10),j=parseInt(A.paddingTop,10),F=parseInt(A.borderBottomWidth,10),I=parseInt(A.paddingBottom,10),T=V+j+B+I+F,U=Math.min(g.offsetHeight*5,T),q=window.getComputedStyle(v),Q=parseInt(q.paddingTop,10),te=parseInt(q.paddingBottom,10),J=E.top+E.height/2-le,xe=$-J,ne=g.offsetHeight/2,L=g.offsetTop+ne,W=V+j+L,ee=T-W;if(W<=J){const K=_.length>0&&g===_[_.length-1].ref.current;c.style.bottom="0px";const Y=u.clientHeight-v.offsetTop-v.offsetHeight,se=Math.max(xe,ne+(K?te:0)+Y+F),De=W+se;c.style.height=De+"px"}else{const K=_.length>0&&g===_[0].ref.current;c.style.top="0px";const se=Math.max(J,V+v.offsetTop+(K?Q:0)+ne)+ee;c.style.height=se+"px",v.scrollTop=W-J+v.offsetTop}c.style.margin=`${le}px 0`,c.style.minHeight=U+"px",c.style.maxHeight=$+"px",o?.(),requestAnimationFrame(()=>h.current=!0)}},[m,s.trigger,s.valueNode,c,u,v,g,x,s.dir,o]);G(()=>b(),[b]);const[S,C]=i.useState();G(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const P=i.useCallback(E=>{E&&w.current===!0&&(b(),y?.(),w.current=!1)},[b,y]);return p.jsx(bm,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:P,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:p.jsx(D.div,{...r,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});ya.displayName=xm;var ym="SelectPopperPosition",Qn=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=le,...s}=e,a=yn(n);return p.jsx(rn,{...a,...s,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Qn.displayName=ym;var[bm,Bo]=ot(Fe,{}),Jn="SelectViewport",ba=i.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,s=Ne(Jn,n),a=Bo(Jn,n),c=k(t,s.onViewportChange),l=i.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),p.jsx(wn.Slot,{scope:n,children:p.jsx(D.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:R(r.onScroll,u=>{const f=u.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:m}=a;if(m?.current&&d){const h=Math.abs(l.current-f.scrollTop);if(h>0){const w=window.innerHeight-le*2,v=parseFloat(d.style.minHeight),g=parseFloat(d.style.height),x=Math.max(v,g);if(x0?S:0,d.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});ba.displayName=Jn;var Sa="SelectGroup",[Sm,Cm]=ot(Sa),Em=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=ue();return p.jsx(Sm,{scope:n,id:r,children:p.jsx(D.div,{role:"group","aria-labelledby":r,...o,ref:t})})});Em.displayName=Sa;var Ca="SelectLabel",Ea=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Cm(Ca,n);return p.jsx(D.div,{id:r.id,...o,ref:t})});Ea.displayName=Ca;var zt="SelectItem",[Rm,Ra]=ot(zt),Pa=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...a}=e,c=Ie(zt,n),l=Ne(zt,n),u=c.value===o,[f,d]=i.useState(s??""),[m,h]=i.useState(!1),w=k(t,y=>l.itemRefCallback?.(y,o,r)),v=ue(),g=i.useRef("touch"),x=()=>{r||(c.onValueChange(o),c.onOpenChange(!1))};if(o==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(Rm,{scope:n,value:o,disabled:r,textId:v,isSelected:u,onItemTextChange:i.useCallback(y=>{d(b=>b||(y?.textContent??"").trim())},[]),children:p.jsx(wn.ItemSlot,{scope:n,value:o,disabled:r,textValue:f,children:p.jsx(D.div,{role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...a,ref:w,onFocus:R(a.onFocus,()=>h(!0)),onBlur:R(a.onBlur,()=>h(!1)),onClick:R(a.onClick,()=>{g.current!=="mouse"&&x()}),onPointerUp:R(a.onPointerUp,()=>{g.current==="mouse"&&x()}),onPointerDown:R(a.onPointerDown,y=>{g.current=y.pointerType}),onPointerMove:R(a.onPointerMove,y=>{g.current=y.pointerType,r?l.onItemLeave?.():g.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:R(a.onPointerLeave,y=>{y.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:R(a.onKeyDown,y=>{l.searchRef?.current!==""&&y.key===" "||(um.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});Pa.displayName=zt;var it="SelectItemText",Ta=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,a=Ie(it,n),c=Ne(it,n),l=Ra(it,n),u=mm(it,n),[f,d]=i.useState(null),m=k(t,x=>d(x),l.onItemTextChange,x=>c.itemTextRefCallback?.(x,l.value,l.disabled)),h=f?.textContent,w=i.useMemo(()=>p.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:g}=u;return G(()=>(v(w),()=>g(w)),[v,g,w]),p.jsxs(p.Fragment,{children:[p.jsx(D.span,{id:l.textId,...s,ref:m}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?ft.createPortal(s.children,a.valueNode):null]})});Ta.displayName=it;var Aa="SelectItemIndicator",_a=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return Ra(Aa,n).isSelected?p.jsx(D.span,{"aria-hidden":!0,...o,ref:t}):null});_a.displayName=Aa;var eo="SelectScrollUpButton",Ia=i.forwardRef((e,t)=>{const n=Ne(eo,e.__scopeSelect),o=Bo(eo,e.__scopeSelect),[r,s]=i.useState(!1),a=k(t,o.onScrollButtonChange);return G(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=l.scrollTop>0;s(u)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),r?p.jsx(Oa,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}}):null});Ia.displayName=eo;var to="SelectScrollDownButton",Na=i.forwardRef((e,t)=>{const n=Ne(to,e.__scopeSelect),o=Bo(to,e.__scopeSelect),[r,s]=i.useState(!1),a=k(t,o.onScrollButtonChange);return G(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),r?p.jsx(Oa,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}}):null});Na.displayName=to;var Oa=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,s=Ne("SelectScrollButton",n),a=i.useRef(null),c=xn(n),l=i.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return i.useEffect(()=>()=>l(),[l]),G(()=>{c().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),p.jsx(D.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:R(r.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(o,50))}),onPointerMove:R(r.onPointerMove,()=>{s.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(o,50))}),onPointerLeave:R(r.onPointerLeave,()=>{l()})})}),Pm="SelectSeparator",Da=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return p.jsx(D.div,{"aria-hidden":!0,...o,ref:t})});Da.displayName=Pm;var no="SelectArrow",Tm=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=yn(n),s=Ie(no,n),a=Ne(no,n);return s.open&&a.position==="popper"?p.jsx(sn,{...r,...o,ref:t}):null});Tm.displayName=no;var Am="SelectBubbleInput",Ma=i.forwardRef(({__scopeSelect:e,value:t,...n},o)=>{const r=i.useRef(null),s=k(o,r),a=gn(t);return i.useEffect(()=>{const c=r.current;if(!c)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&f){const d=new Event("change",{bubbles:!0});f.call(c,t),c.dispatchEvent(d)}},[a,t]),p.jsx(D.select,{...n,style:{...Ur,...n.style},ref:s,defaultValue:t})});Ma.displayName=Am;function La(e){return e===""||e===void 0}function ja(e){const t=z(e),n=i.useRef(""),o=i.useRef(0),r=i.useCallback(a=>{const c=n.current+a;t(c),(function l(u){n.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>l(""),1e3))})(c)},[t]),s=i.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function ka(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=_m(e,Math.max(s,0));r.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function _m(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Ih=ua,Nh=fa,Oh=ma,Dh=va,Mh=ha,Lh=ga,jh=ba,kh=Ea,$h=Pa,Fh=Ta,Vh=_a,Bh=Ia,Wh=Na,Hh=Da,bn="Switch",[Im]=Z(bn),[Nm,Om]=Im(bn),$a=i.forwardRef((e,t)=>{const{__scopeSwitch:n,name:o,checked:r,defaultChecked:s,required:a,disabled:c,value:l="on",onCheckedChange:u,form:f,...d}=e,[m,h]=i.useState(null),w=k(t,b=>h(b)),v=i.useRef(!1),g=m?f||!!m.closest("form"):!0,[x,y]=ae({prop:r,defaultProp:s??!1,onChange:u,caller:bn});return p.jsxs(Nm,{scope:n,checked:x,disabled:c,children:[p.jsx(D.button,{type:"button",role:"switch","aria-checked":x,"aria-required":a,"data-state":Wa(x),"data-disabled":c?"":void 0,disabled:c,value:l,...d,ref:w,onClick:R(e.onClick,b=>{y(S=>!S),g&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})}),g&&p.jsx(Ba,{control:m,bubbles:!v.current,name:o,value:l,checked:x,required:a,disabled:c,form:f,style:{transform:"translateX(-100%)"}})]})});$a.displayName=bn;var Fa="SwitchThumb",Va=i.forwardRef((e,t)=>{const{__scopeSwitch:n,...o}=e,r=Om(Fa,n);return p.jsx(D.span,{"data-state":Wa(r.checked),"data-disabled":r.disabled?"":void 0,...o,ref:t})});Va.displayName=Fa;var Dm="SwitchBubbleInput",Ba=i.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:o=!0,...r},s)=>{const a=i.useRef(null),c=k(a,s),l=gn(n),u=nn(t);return i.useEffect(()=>{const f=a.current;if(!f)return;const d=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==n&&h){const w=new Event("click",{bubbles:o});h.call(f,n),f.dispatchEvent(w)}},[l,n,o]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:c,style:{...r.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Ba.displayName=Dm;function Wa(e){return e?"checked":"unchecked"}var Kh=$a,Uh=Va,Sn="Checkbox",[Mm]=Z(Sn),[Lm,Wo]=Mm(Sn);function jm(e){const{__scopeCheckbox:t,checked:n,children:o,defaultChecked:r,disabled:s,form:a,name:c,onCheckedChange:l,required:u,value:f="on",internal_do_not_use_render:d}=e,[m,h]=ae({prop:n,defaultProp:r??!1,onChange:l,caller:Sn}),[w,v]=i.useState(null),[g,x]=i.useState(null),y=i.useRef(!1),b=w?!!a||!!w.closest("form"):!0,S={checked:m,disabled:s,setChecked:h,control:w,setControl:v,name:c,form:a,value:f,hasConsumerStoppedPropagationRef:y,required:u,defaultChecked:Pe(r)?!1:r,isFormControl:b,bubbleInput:g,setBubbleInput:x};return p.jsx(Lm,{scope:t,...S,children:Fm(d)?d(S):o})}var Ha="CheckboxTrigger",Ka=i.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...o},r)=>{const{control:s,value:a,disabled:c,checked:l,required:u,setControl:f,setChecked:d,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:w}=Wo(Ha,e),v=k(r,f),g=i.useRef(l);return i.useEffect(()=>{const x=s?.form;if(x){const y=()=>d(g.current);return x.addEventListener("reset",y),()=>x.removeEventListener("reset",y)}},[s,d]),p.jsx(D.button,{type:"button",role:"checkbox","aria-checked":Pe(l)?"mixed":l,"aria-required":u,"data-state":Ya(l),"data-disabled":c?"":void 0,disabled:c,value:a,...o,ref:v,onKeyDown:R(t,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:R(n,x=>{d(y=>Pe(y)?!0:!y),w&&h&&(m.current=x.isPropagationStopped(),m.current||x.stopPropagation())})})});Ka.displayName=Ha;var km=i.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:o,checked:r,defaultChecked:s,required:a,disabled:c,value:l,onCheckedChange:u,form:f,...d}=e;return p.jsx(jm,{__scopeCheckbox:n,checked:r,defaultChecked:s,disabled:c,required:a,onCheckedChange:u,name:o,form:f,value:l,internal_do_not_use_render:({isFormControl:m})=>p.jsxs(p.Fragment,{children:[p.jsx(Ka,{...d,ref:t,__scopeCheckbox:n}),m&&p.jsx(Ga,{__scopeCheckbox:n})]})})});km.displayName=Sn;var Ua="CheckboxIndicator",$m=i.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:o,...r}=e,s=Wo(Ua,n);return p.jsx(X,{present:o||Pe(s.checked)||s.checked===!0,children:p.jsx(D.span,{"data-state":Ya(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});$m.displayName=Ua;var za="CheckboxBubbleInput",Ga=i.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:o,hasConsumerStoppedPropagationRef:r,checked:s,defaultChecked:a,required:c,disabled:l,name:u,value:f,form:d,bubbleInput:m,setBubbleInput:h}=Wo(za,e),w=k(n,h),v=gn(s),g=nn(o);i.useEffect(()=>{const y=m;if(!y)return;const b=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(b,"checked").set,P=!r.current;if(v!==s&&C){const E=new Event("click",{bubbles:P});y.indeterminate=Pe(s),C.call(y,Pe(s)?!1:s),y.dispatchEvent(E)}},[m,v,s,r]);const x=i.useRef(Pe(s)?!1:s);return p.jsx(D.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??x.current,required:c,disabled:l,name:u,value:f,form:d,...t,tabIndex:-1,ref:w,style:{...t.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Ga.displayName=za;function Fm(e){return typeof e=="function"}function Pe(e){return e==="indeterminate"}function Ya(e){return Pe(e)?"indeterminate":e?"checked":"unchecked"}var Vm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Bm=Vm.reduce((e,t)=>{const n=pt(`Primitive.${t}`),o=i.forwardRef((r,s)=>{const{asChild:a,...c}=r,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),Wm="Separator",Cr="horizontal",Hm=["horizontal","vertical"],Xa=i.forwardRef((e,t)=>{const{decorative:n,orientation:o=Cr,...r}=e,s=Km(o)?o:Cr,c=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return p.jsx(Bm.div,{"data-orientation":s,...c,...r,ref:t})});Xa.displayName=Wm;function Km(e){return Hm.includes(e)}var zh=Xa,qa=["PageUp","PageDown"],Za=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Qa={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},rt="Slider",[oo,Um,zm]=mt(rt),[Ja]=Z(rt,[zm]),[Gm,Cn]=Ja(rt),ec=i.forwardRef((e,t)=>{const{name:n,min:o=0,max:r=100,step:s=1,orientation:a="horizontal",disabled:c=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[o],value:f,onValueChange:d=()=>{},onValueCommit:m=()=>{},inverted:h=!1,form:w,...v}=e,g=i.useRef(new Set),x=i.useRef(0),b=a==="horizontal"?Ym:Xm,[S=[],C]=ae({prop:f,defaultProp:u,onChange:_=>{[...g.current][x.current]?.focus(),d(_)}}),P=i.useRef(S);function E(_){const $=ev(S,_);M(_,$)}function N(_){M(_,x.current)}function O(){const _=P.current[x.current];S[x.current]!==_&&m(S)}function M(_,$,{commit:B}={commit:!1}){const A=rv(s),V=sv(Math.round((_-o)/s)*s+o,A),j=at(V,[o,r]);C((F=[])=>{const I=Qm(F,j,$);if(ov(I,l*s)){x.current=I.indexOf(j);const T=String(I)!==String(F);return T&&B&&m(I),T?I:F}else return F})}return p.jsx(Gm,{scope:e.__scopeSlider,name:n,disabled:c,min:o,max:r,valueIndexToChangeRef:x,thumbs:g.current,values:S,orientation:a,form:w,children:p.jsx(oo.Provider,{scope:e.__scopeSlider,children:p.jsx(oo.Slot,{scope:e.__scopeSlider,children:p.jsx(b,{"aria-disabled":c,"data-disabled":c?"":void 0,...v,ref:t,onPointerDown:R(v.onPointerDown,()=>{c||(P.current=S)}),min:o,max:r,inverted:h,onSlideStart:c?void 0:E,onSlideMove:c?void 0:N,onSlideEnd:c?void 0:O,onHomeKeyDown:()=>!c&&M(o,0,{commit:!0}),onEndKeyDown:()=>!c&&M(r,S.length-1,{commit:!0}),onStepKeyDown:({event:_,direction:$})=>{if(!c){const V=qa.includes(_.key)||_.shiftKey&&Za.includes(_.key)?10:1,j=x.current,F=S[j],I=s*V*$;M(F+I,j,{commit:!0})}}})})})})});ec.displayName=rt;var[tc,nc]=Ja(rt,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Ym=i.forwardRef((e,t)=>{const{min:n,max:o,dir:r,inverted:s,onSlideStart:a,onSlideMove:c,onSlideEnd:l,onStepKeyDown:u,...f}=e,[d,m]=i.useState(null),h=k(t,b=>m(b)),w=i.useRef(void 0),v=et(r),g=v==="ltr",x=g&&!s||!g&&s;function y(b){const S=w.current||d.getBoundingClientRect(),C=[0,S.width],E=Ho(C,x?[n,o]:[o,n]);return w.current=S,E(b-S.left)}return p.jsx(tc,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:p.jsx(oc,{dir:v,"data-orientation":"horizontal",...f,ref:h,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{const S=y(b.clientX);a?.(S)},onSlideMove:b=>{const S=y(b.clientX);c?.(S)},onSlideEnd:()=>{w.current=void 0,l?.()},onStepKeyDown:b=>{const C=Qa[x?"from-left":"from-right"].includes(b.key);u?.({event:b,direction:C?-1:1})}})})}),Xm=i.forwardRef((e,t)=>{const{min:n,max:o,inverted:r,onSlideStart:s,onSlideMove:a,onSlideEnd:c,onStepKeyDown:l,...u}=e,f=i.useRef(null),d=k(t,f),m=i.useRef(void 0),h=!r;function w(v){const g=m.current||f.current.getBoundingClientRect(),x=[0,g.height],b=Ho(x,h?[o,n]:[n,o]);return m.current=g,b(v-g.top)}return p.jsx(tc,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:p.jsx(oc,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:v=>{const g=w(v.clientY);s?.(g)},onSlideMove:v=>{const g=w(v.clientY);a?.(g)},onSlideEnd:()=>{m.current=void 0,c?.()},onStepKeyDown:v=>{const x=Qa[h?"from-bottom":"from-top"].includes(v.key);l?.({event:v,direction:x?-1:1})}})})}),oc=i.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:o,onSlideMove:r,onSlideEnd:s,onHomeKeyDown:a,onEndKeyDown:c,onStepKeyDown:l,...u}=e,f=Cn(rt,n);return p.jsx(D.span,{...u,ref:t,onKeyDown:R(e.onKeyDown,d=>{d.key==="Home"?(a(d),d.preventDefault()):d.key==="End"?(c(d),d.preventDefault()):qa.concat(Za).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:R(e.onPointerDown,d=>{const m=d.target;m.setPointerCapture(d.pointerId),d.preventDefault(),f.thumbs.has(m)?m.focus():o(d)}),onPointerMove:R(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&r(d)}),onPointerUp:R(e.onPointerUp,d=>{const m=d.target;m.hasPointerCapture(d.pointerId)&&(m.releasePointerCapture(d.pointerId),s(d))})})}),rc="SliderTrack",sc=i.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=Cn(rc,n);return p.jsx(D.span,{"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation,...o,ref:t})});sc.displayName=rc;var ro="SliderRange",ic=i.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=Cn(ro,n),s=nc(ro,n),a=i.useRef(null),c=k(t,a),l=r.values.length,u=r.values.map(m=>lc(m,r.min,r.max)),f=l>1?Math.min(...u):0,d=100-Math.max(...u);return p.jsx(D.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...o,ref:c,style:{...e.style,[s.startEdge]:f+"%",[s.endEdge]:d+"%"}})});ic.displayName=ro;var so="SliderThumb",ac=i.forwardRef((e,t)=>{const n=Um(e.__scopeSlider),[o,r]=i.useState(null),s=k(t,c=>r(c)),a=i.useMemo(()=>o?n().findIndex(c=>c.ref.current===o):-1,[n,o]);return p.jsx(qm,{...e,ref:s,index:a})}),qm=i.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:r,...s}=e,a=Cn(so,n),c=nc(so,n),[l,u]=i.useState(null),f=k(t,y=>u(y)),d=l?a.form||!!l.closest("form"):!0,m=nn(l),h=a.values[o],w=h===void 0?0:lc(h,a.min,a.max),v=Jm(o,a.values.length),g=m?.[c.size],x=g?tv(g,w,c.direction):0;return i.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:`calc(${w}% + ${x}px)`},children:[p.jsx(oo.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(D.span,{role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":a.min,"aria-valuenow":h,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...s,ref:f,style:h===void 0?{display:"none"}:e.style,onFocus:R(e.onFocus,()=>{a.valueIndexToChangeRef.current=o})})}),d&&p.jsx(cc,{name:r??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:h},o)]})});ac.displayName=so;var Zm="RadioBubbleInput",cc=i.forwardRef(({__scopeSlider:e,value:t,...n},o)=>{const r=i.useRef(null),s=k(r,o),a=gn(t);return i.useEffect(()=>{const c=r.current;if(!c)return;const l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&f){const d=new Event("input",{bubbles:!0});f.call(c,t),c.dispatchEvent(d)}},[a,t]),p.jsx(D.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});cc.displayName=Zm;function Qm(e=[],t,n){const o=[...e];return o[n]=t,o.sort((r,s)=>r-s)}function lc(e,t,n){const s=100/(n-t)*(e-t);return at(s,[0,100])}function Jm(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ev(e,t){if(e.length===1)return 0;const n=e.map(r=>Math.abs(r-t)),o=Math.min(...n);return n.indexOf(o)}function tv(e,t,n){const o=e/2,s=Ho([0,50],[0,o]);return(o-s(t)*n)*n}function nv(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function ov(e,t){if(t>0){const n=nv(e);return Math.min(...n)>=t}return!0}function Ho(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function rv(e){return(String(e).split(".")[1]||"").length}function sv(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Gh=ec,Yh=sc,Xh=ic,qh=ac;function iv(e){const t=av(e),n=i.forwardRef((o,r)=>{const{children:s,...a}=o,c=i.Children.toArray(s),l=c.find(lv);if(l){const u=l.props.children,f=c.map(d=>d===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function av(e){const t=i.forwardRef((n,o)=>{const{children:r,...s}=n;if(i.isValidElement(r)){const a=dv(r),c=uv(s,r.props);return r.type!==i.Fragment&&(c.ref=o?Se(o,a):a),i.cloneElement(r,c)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cv=Symbol("radix.slottable");function lv(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cv}function uv(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...c)=>{const l=s(...c);return r(...c),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function dv(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)}var En="Popover",[uc]=Z(En,[_e]),Et=_e(),[fv,Oe]=uc(En),dc=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:a=!1}=e,c=Et(t),l=i.useRef(null),[u,f]=i.useState(!1),[d,m]=ae({prop:o,defaultProp:r??!1,onChange:s,caller:En});return p.jsx(on,{...c,children:p.jsx(fv,{scope:t,contentId:ue(),triggerRef:l,open:d,onOpenChange:m,onOpenToggle:i.useCallback(()=>m(h=>!h),[m]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>f(!0),[]),onCustomAnchorRemove:i.useCallback(()=>f(!1),[]),modal:a,children:n})})};dc.displayName=En;var fc="PopoverAnchor",pv=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Oe(fc,n),s=Et(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:c}=r;return i.useEffect(()=>(a(),()=>c()),[a,c]),p.jsx(gt,{...s,...o,ref:t})});pv.displayName=fc;var pc="PopoverTrigger",mc=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Oe(pc,n),s=Et(n),a=k(t,r.triggerRef),c=p.jsx(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":xc(r.open),...o,ref:a,onClick:R(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?c:p.jsx(gt,{asChild:!0,...s,children:c})});mc.displayName=pc;var Ko="PopoverPortal",[mv,vv]=uc(Ko,{forceMount:void 0}),vc=e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,s=Oe(Ko,t);return p.jsx(mv,{scope:t,forceMount:n,children:p.jsx(X,{present:n||s.open,children:p.jsx(Be,{asChild:!0,container:r,children:o})})})};vc.displayName=Ko;var Je="PopoverContent",hc=i.forwardRef((e,t)=>{const n=vv(Je,e.__scopePopover),{forceMount:o=n.forceMount,...r}=e,s=Oe(Je,e.__scopePopover);return p.jsx(X,{present:o||s.open,children:s.modal?p.jsx(gv,{...r,ref:t}):p.jsx(wv,{...r,ref:t})})});hc.displayName=Je;var hv=iv("PopoverContent.RemoveScroll"),gv=i.forwardRef((e,t)=>{const n=Oe(Je,e.__scopePopover),o=i.useRef(null),r=k(t,o),s=i.useRef(!1);return i.useEffect(()=>{const a=o.current;if(a)return dn(a)},[]),p.jsx(yt,{as:hv,allowPinchZoom:!0,children:p.jsx(gc,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,a=>{a.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:R(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),wv=i.forwardRef((e,t)=>{const n=Oe(Je,e.__scopePopover),o=i.useRef(!1),r=i.useRef(!1);return p.jsx(gc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||n.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),gc=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,...d}=e,m=Oe(Je,n),h=Et(n);return ln(),p.jsx(xt,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:p.jsx(Ve,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:p.jsx(rn,{"data-state":xc(m.open),role:"dialog",id:m.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),wc="PopoverClose",xv=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Oe(wc,n);return p.jsx(D.button,{type:"button",...o,ref:t,onClick:R(e.onClick,()=>r.onOpenChange(!1))})});xv.displayName=wc;var yv="PopoverArrow",bv=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Et(n);return p.jsx(sn,{...r,...o,ref:t})});bv.displayName=yv;function xc(e){return e?"open":"closed"}var Zh=dc,Qh=mc,Jh=vc,eg=hc;function Sv(e,t=[]){let n=[];function o(s,a){const c=i.createContext(a);c.displayName=s+"Context";const l=n.length;n=[...n,a];const u=d=>{const{scope:m,children:h,...w}=d,v=m?.[e]?.[l]||c,g=i.useMemo(()=>w,Object.values(w));return p.jsx(v.Provider,{value:g,children:h})};u.displayName=s+"Provider";function f(d,m){const h=m?.[e]?.[l]||c,w=i.useContext(h);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const r=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=c?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[o,Cv(r,...t)]}function Cv(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=o.reduce((c,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Ev=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Uo=Ev.reduce((e,t)=>{const n=pt(`Primitive.${t}`),o=i.forwardRef((r,s)=>{const{asChild:a,...c}=r,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Rv(){return Ac.useSyncExternalStore(Pv,()=>!0,()=>!1)}function Pv(){return()=>{}}var zo="Avatar",[Tv]=Sv(zo),[Av,yc]=Tv(zo),bc=i.forwardRef((e,t)=>{const{__scopeAvatar:n,...o}=e,[r,s]=i.useState("idle");return p.jsx(Av,{scope:n,imageLoadingStatus:r,onImageLoadingStatusChange:s,children:p.jsx(Uo.span,{...o,ref:t})})});bc.displayName=zo;var Sc="AvatarImage",Cc=i.forwardRef((e,t)=>{const{__scopeAvatar:n,src:o,onLoadingStatusChange:r=()=>{},...s}=e,a=yc(Sc,n),c=_v(o,s),l=z(u=>{r(u),a.onImageLoadingStatusChange(u)});return G(()=>{c!=="idle"&&l(c)},[c,l]),c==="loaded"?p.jsx(Uo.img,{...s,ref:t,src:o}):null});Cc.displayName=Sc;var Ec="AvatarFallback",Rc=i.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:o,...r}=e,s=yc(Ec,n),[a,c]=i.useState(o===void 0);return i.useEffect(()=>{if(o!==void 0){const l=window.setTimeout(()=>c(!0),o);return()=>window.clearTimeout(l)}},[o]),a&&s.imageLoadingStatus!=="loaded"?p.jsx(Uo.span,{...r,ref:t}):null});Rc.displayName=Ec;function Er(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function _v(e,{referrerPolicy:t,crossOrigin:n}){const o=Rv(),r=i.useRef(null),s=o?(r.current||(r.current=new window.Image),r.current):null,[a,c]=i.useState(()=>Er(s,e));return G(()=>{c(Er(s,e))},[s,e]),G(()=>{const l=d=>()=>{c(d)};if(!s)return;const u=l("loaded"),f=l("error");return s.addEventListener("load",u),s.addEventListener("error",f),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",u),s.removeEventListener("error",f)}},[s,n,t]),a}var tg=bc,ng=Cc,og=Rc;export{yh as $,Uv as A,oh as B,Wf as C,Kv as D,rh as E,Qv as F,Jv as G,ii as H,Hf as I,Kf as J,Ff as K,Sh as L,Ch as M,dh as N,Bf as O,D as P,fh as Q,$f as R,Nv as S,Hv as T,R as U,Dv as V,vh as W,hh as X,xh as Y,wh as Z,mh as _,Vf as a,ah as a0,Z as a1,ae as a2,lh as a3,uh as a4,ph as a5,gh as a6,bh as a7,Rh as a8,Ph as a9,pn as aA,X as aB,gn as aC,nn as aD,km as aE,$m as aF,Ih as aG,Oh as aH,Nh as aI,Dh as aJ,Mh as aK,Lh as aL,jh as aM,$h as aN,Vh as aO,Fh as aP,Bh as aQ,Wh as aR,kh as aS,Hh as aT,Th as aa,Eh as ab,tg as ac,og as ad,ng as ae,Zh as af,Qh as ag,Jh as ah,eg as ai,Kh as aj,Uh as ak,zh as al,mt as am,kv as an,$v as ao,k as ap,et as aq,Lv as ar,Ah as as,_h as at,Gh as au,Yh as av,Xh as aw,qh as ax,Ri as ay,Pi as az,Ov as b,Se as c,Mv as d,Zc as e,ol as f,jv as g,Fr as h,Vr as i,Fv as j,Bv as k,Wv as l,zv as m,Vv as n,qv as o,Zv as p,Gv as q,Yv as r,Ac as s,Xv as t,ue as u,th as v,eh as w,nh as x,sh as y,ih as z}; diff --git a/dashboard/dist/assets/react-vendor-l0sNRNKZ.js b/dashboard/dist/assets/react-vendor-l0sNRNKZ.js new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/dashboard/dist/assets/react-vendor-l0sNRNKZ.js @@ -0,0 +1 @@ + diff --git a/dashboard/dist/assets/reactflow-Bd-f2Ch7.js b/dashboard/dist/assets/reactflow-Bd-f2Ch7.js new file mode 100644 index 00000000..f6087e7e --- /dev/null +++ b/dashboard/dist/assets/reactflow-Bd-f2Ch7.js @@ -0,0 +1,2 @@ +import{u as Dy,R as L,r as D}from"./router-zNjPR4CY.js";import{i as Ly,c as tc,a as rc,b as Fy,d as zy,e as By,f as Hy}from"./charts-C6WIfXk3.js";import{r as wt,a as Te,b as Ge,c as Ue,d as $y,e as vr,f as $t,g as Vy,h as Gy}from"./uppy-S0BLpioz.js";function pe(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let r=0,n;r{let t;const r=new Set,n=(c,f)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const h=t;t=f??(typeof d!="object"||d===null)?d:Object.assign({},t,d),r.forEach(_=>_(t,h))}},i=()=>t,u={setState:n,getState:i,getInitialState:()=>l,subscribe:c=>(r.add(c),()=>r.delete(c)),destroy:()=>{(Uy?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},l=t=e(n,i,u);return u},Ky=e=>e?nc(e):nc,{useDebugValue:jy}=L,{useSyncExternalStoreWithSelector:Yy}=Dy,Wy=e=>e;function Vp(e,t=Wy,r){const n=Yy(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return jy(n),n}const ic=(e,t)=>{const r=Ky(e),n=(i,a=t)=>Vp(r,i,a);return Object.assign(n,r),n},Zy=(e,t)=>e?ic(e,t):ic;function he(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,i]of e)if(!Object.is(i,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(const n of r)if(!Object.prototype.hasOwnProperty.call(t,n)||!Object.is(e[n],t[n]))return!1;return!0}var Xy={value:()=>{}};function gr(){for(var e=0,t=arguments.length,r={},n;e=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}rr.prototype=gr.prototype={constructor:rr,on:function(e,t){var r=this._,n=Jy(e+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a0)for(var r=new Array(i),n=0,i,a;n=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),oc.hasOwnProperty(t)?{space:oc[t],local:e}:e}function em(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===iu&&t.documentElement.namespaceURI===iu?t.createElement(e):t.createElementNS(r,e)}}function tm(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Gp(e){var t=yr(e);return(t.local?tm:em)(t)}function rm(){}function yu(e){return e==null?rm:function(){return this.querySelector(e)}}function nm(e){typeof e!="function"&&(e=yu(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i=b&&(b=y+1);!(E=v[b])&&++b<_;);m._next=E||null}}return o=new Ee(o,n),o._enter=s,o._exit=u,o}function xm(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Sm(){return new Ee(this._exit||this._groups.map(Yp),this._parents)}function qm(e,t,r){var n=this.enter(),i=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function Cm(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,a=n.length,o=Math.min(i,a),s=new Array(i),u=0;u=0;)(o=n[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Am(e){e||(e=Nm);function t(f,d){return f&&d?e(f.__data__,d.__data__):!f-!d}for(var r=this._groups,n=r.length,i=new Array(n),a=0;at?1:e>=t?0:NaN}function Im(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Tm(){return Array.from(this)}function Mm(){for(var e=this._groups,t=0,r=e.length;t1?this.each((t==null?Vm:typeof t=="function"?Um:Gm)(e,t,r??"")):mt(this.node(),e)}function mt(e,t){return e.style.getPropertyValue(t)||Wp(e).getComputedStyle(e,null).getPropertyValue(t)}function jm(e){return function(){delete this[e]}}function Ym(e,t){return function(){this[e]=t}}function Wm(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Zm(e,t){return arguments.length>1?this.each((t==null?jm:typeof t=="function"?Wm:Ym)(e,t)):this.node()[e]}function Zp(e){return e.trim().split(/^|\s+/)}function mu(e){return e.classList||new Xp(e)}function Xp(e){this._node=e,this._names=Zp(e.getAttribute("class")||"")}Xp.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Jp(e,t){for(var r=mu(e),n=-1,i=t.length;++n=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function S_(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,a;r()=>e;function au(e,{sourceEvent:t,subject:r,target:n,identifier:i,active:a,x:o,y:s,dx:u,dy:l,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:c}})}au.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function k_(e){return!e.ctrlKey&&!e.button}function O_(){return this.parentNode}function D_(e,t){return t??{x:e.x,y:e.y}}function L_(){return navigator.maxTouchPoints||"ontouchstart"in this}function F_(){var e=k_,t=O_,r=D_,n=L_,i={},a=gr("start","drag","end"),o=0,s,u,l,c,f=0;function d(m){m.on("mousedown.drag",h).filter(n).on("touchstart.drag",v).on("touchmove.drag",p,P_).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(m,E){if(!(c||!e.call(this,m,E))){var x=b(this,t.call(this,m,E),m,E,"mouse");x&&(xe(m.view).on("mousemove.drag",_,Lt).on("mouseup.drag",g,Lt),rv(m.view),Gr(m),l=!1,s=m.clientX,u=m.clientY,x("start",m))}}function _(m){if(gt(m),!l){var E=m.clientX-s,x=m.clientY-u;l=E*E+x*x>f}i.mouse("drag",m)}function g(m){xe(m.view).on("mousemove.drag mouseup.drag",null),nv(m.view,l),gt(m),i.mouse("end",m)}function v(m,E){if(e.call(this,m,E)){var x=m.changedTouches,S=t.call(this,m,E),N=x.length,q,A;for(q=0;q=0&&e._call.call(void 0,t),e=e._next;--_t}function sc(){at=(ur=Ft.now())+mr,_t=Tt=0;try{B_()}finally{_t=0,$_(),at=0}}function H_(){var e=Ft.now(),t=e-ur;t>iv&&(mr-=t,ur=e)}function $_(){for(var e,t=sr,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:sr=r);Mt=e,ou(n)}function ou(e){if(!_t){Tt&&(Tt=clearTimeout(Tt));var t=e-at;t>24?(e<1/0&&(Tt=setTimeout(sc,e-Ft.now()-mr)),Ct&&(Ct=clearInterval(Ct))):(Ct||(ur=Ft.now(),Ct=setInterval(H_,iv)),_t=1,av(sc))}}function uc(e,t,r){var n=new cr;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var V_=gr("start","end","cancel","interrupt"),G_=[],sv=0,cc=1,su=2,nr=3,lc=4,uu=5,ir=6;function _r(e,t,r,n,i,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;U_(e,r,{name:t,index:n,group:i,on:V_,tween:G_,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:sv})}function bu(e,t){var r=Me(e,t);if(r.state>sv)throw new Error("too late; already scheduled");return r}function De(e,t){var r=Me(e,t);if(r.state>nr)throw new Error("too late; already running");return r}function Me(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function U_(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=ov(a,0,r.time);function a(l){r.state=cc,r.timer.restart(o,r.delay,r.time),r.delay<=l&&o(l-r.delay)}function o(l){var c,f,d,h;if(r.state!==cc)return u();for(c in n)if(h=n[c],h.name===r.name){if(h.state===nr)return uc(o);h.state===lc?(h.state=ir,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete n[c]):+csu&&n.state=0&&(t=t.slice(0,r)),!t||t==="start"})}function wb(e,t,r){var n,i,a=bb(t)?bu:De;return function(){var o=a(this,e),s=o.on;s!==n&&(i=(n=s).copy()).on(t,r),o.on=i}}function Eb(e,t){var r=this._id;return arguments.length<2?Me(this.node(),r).on.on(e):this.each(wb(r,e,t))}function xb(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Sb(){return this.on("end.remove",xb(this._id))}function qb(e){var t=this._name,r=this._id;typeof e!="function"&&(e=yu(e));for(var n=this._groups,i=n.length,a=new Array(i),o=0;o()=>e;function Zb(e,{sourceEvent:t,target:r,transform:n,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:i}})}function Be(e,t,r){this.k=e,this.x=t,this.y=r}Be.prototype={constructor:Be,scale:function(e){return e===1?this:new Be(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Be(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var He=new Be(1,0,0);Be.prototype;function Ur(e){e.stopImmediatePropagation()}function Rt(e){e.preventDefault(),e.stopImmediatePropagation()}function Xb(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Jb(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function fc(){return this.__zoom||He}function Qb(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function e0(){return navigator.maxTouchPoints||"ontouchstart"in this}function t0(e,t,r){var n=e.invertX(t[0][0])-r[0][0],i=e.invertX(t[1][0])-r[1][0],a=e.invertY(t[0][1])-r[0][1],o=e.invertY(t[1][1])-r[1][1];return e.translate(i>n?(n+i)/2:Math.min(0,n)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function fv(){var e=Xb,t=Jb,r=t0,n=Qb,i=e0,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,u=Hy,l=gr("start","zoom","end"),c,f,d,h=500,_=150,g=0,v=10;function p(w){w.property("__zoom",fc).on("wheel.zoom",N,{passive:!1}).on("mousedown.zoom",q).on("dblclick.zoom",A).filter(i).on("touchstart.zoom",I).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(w,T,R,z){var H=w.selection?w.selection():w;H.property("__zoom",fc),w!==H?E(w,T,R,z):H.interrupt().each(function(){x(this,arguments).event(z).start().zoom(null,typeof T=="function"?T.apply(this,arguments):T).end()})},p.scaleBy=function(w,T,R,z){p.scaleTo(w,function(){var H=this.__zoom.k,M=typeof T=="function"?T.apply(this,arguments):T;return H*M},R,z)},p.scaleTo=function(w,T,R,z){p.transform(w,function(){var H=t.apply(this,arguments),M=this.__zoom,B=R==null?m(H):typeof R=="function"?R.apply(this,arguments):R,V=M.invert(B),G=typeof T=="function"?T.apply(this,arguments):T;return r(b(y(M,G),B,V),H,o)},R,z)},p.translateBy=function(w,T,R,z){p.transform(w,function(){return r(this.__zoom.translate(typeof T=="function"?T.apply(this,arguments):T,typeof R=="function"?R.apply(this,arguments):R),t.apply(this,arguments),o)},null,z)},p.translateTo=function(w,T,R,z,H){p.transform(w,function(){var M=t.apply(this,arguments),B=this.__zoom,V=z==null?m(M):typeof z=="function"?z.apply(this,arguments):z;return r(He.translate(V[0],V[1]).scale(B.k).translate(typeof T=="function"?-T.apply(this,arguments):-T,typeof R=="function"?-R.apply(this,arguments):-R),M,o)},z,H)};function y(w,T){return T=Math.max(a[0],Math.min(a[1],T)),T===w.k?w:new Be(T,w.x,w.y)}function b(w,T,R){var z=T[0]-R[0]*w.k,H=T[1]-R[1]*w.k;return z===w.x&&H===w.y?w:new Be(w.k,z,H)}function m(w){return[(+w[0][0]+ +w[1][0])/2,(+w[0][1]+ +w[1][1])/2]}function E(w,T,R,z){w.on("start.zoom",function(){x(this,arguments).event(z).start()}).on("interrupt.zoom end.zoom",function(){x(this,arguments).event(z).end()}).tween("zoom",function(){var H=this,M=arguments,B=x(H,M).event(z),V=t.apply(H,M),G=R==null?m(V):typeof R=="function"?R.apply(H,M):R,U=Math.max(V[1][0]-V[0][0],V[1][1]-V[0][1]),C=H.__zoom,P=typeof T=="function"?T.apply(H,M):T,F=u(C.invert(G).concat(U/C.k),P.invert(G).concat(U/P.k));return function($){if($===1)$=P;else{var K=F($),W=U/K[2];$=new Be(W,G[0]-K[0]*W,G[1]-K[1]*W)}B.zoom(null,$)}})}function x(w,T,R){return!R&&w.__zooming||new S(w,T)}function S(w,T){this.that=w,this.args=T,this.active=0,this.sourceEvent=null,this.extent=t.apply(w,T),this.taps=0}S.prototype={event:function(w){return w&&(this.sourceEvent=w),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(w,T){return this.mouse&&w!=="mouse"&&(this.mouse[1]=T.invert(this.mouse[0])),this.touch0&&w!=="touch"&&(this.touch0[1]=T.invert(this.touch0[0])),this.touch1&&w!=="touch"&&(this.touch1[1]=T.invert(this.touch1[0])),this.that.__zoom=T,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(w){var T=xe(this.that).datum();l.call(w,this.that,new Zb(w,{sourceEvent:this.sourceEvent,target:p,transform:this.that.__zoom,dispatch:l}),T)}};function N(w,...T){if(!e.apply(this,arguments))return;var R=x(this,T).event(w),z=this.__zoom,H=Math.max(a[0],Math.min(a[1],z.k*Math.pow(2,n.apply(this,arguments)))),M=Ae(w);if(R.wheel)(R.mouse[0][0]!==M[0]||R.mouse[0][1]!==M[1])&&(R.mouse[1]=z.invert(R.mouse[0]=M)),clearTimeout(R.wheel);else{if(z.k===H)return;R.mouse=[M,z.invert(M)],ar(this),R.start()}Rt(w),R.wheel=setTimeout(B,_),R.zoom("mouse",r(b(y(z,H),R.mouse[0],R.mouse[1]),R.extent,o));function B(){R.wheel=null,R.end()}}function q(w,...T){if(d||!e.apply(this,arguments))return;var R=w.currentTarget,z=x(this,T,!0).event(w),H=xe(w.view).on("mousemove.zoom",G,!0).on("mouseup.zoom",U,!0),M=Ae(w,R),B=w.clientX,V=w.clientY;rv(w.view),Ur(w),z.mouse=[M,this.__zoom.invert(M)],ar(this),z.start();function G(C){if(Rt(C),!z.moved){var P=C.clientX-B,F=C.clientY-V;z.moved=P*P+F*F>g}z.event(C).zoom("mouse",r(b(z.that.__zoom,z.mouse[0]=Ae(C,R),z.mouse[1]),z.extent,o))}function U(C){H.on("mousemove.zoom mouseup.zoom",null),nv(C.view,z.moved),Rt(C),z.event(C).end()}}function A(w,...T){if(e.apply(this,arguments)){var R=this.__zoom,z=Ae(w.changedTouches?w.changedTouches[0]:w,this),H=R.invert(z),M=R.k*(w.shiftKey?.5:2),B=r(b(y(R,M),z,H),t.apply(this,T),o);Rt(w),s>0?xe(this).transition().duration(s).call(E,B,z,w):xe(this).call(p.transform,B,z,w)}}function I(w,...T){if(e.apply(this,arguments)){var R=w.touches,z=R.length,H=x(this,T,w.changedTouches.length===z).event(w),M,B,V,G;for(Ur(w),B=0;B"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,t)=>`Couldn't create edge for ${e?"target":"source"} handle id: "${e?t.targetHandle:t.sourceHandle}", edge id: ${t.id}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`},dv=Ve.error001();function ne(e,t){const r=D.useContext(br);if(r===null)throw new Error(dv);return Vp(r,e,t)}const fe=()=>{const e=D.useContext(br);if(e===null)throw new Error(dv);return D.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe,destroy:e.destroy}),[e])},n0=e=>e.userSelectionActive?"none":"all";function Eu({position:e,children:t,className:r,style:n,...i}){const a=ne(n0),o=`${e}`.split("-");return L.createElement("div",{className:pe(["react-flow__panel",r,...o]),style:{...n,pointerEvents:a},...i},t)}function i0({proOptions:e,position:t="bottom-right"}){return e?.hideAttribution?null:L.createElement(Eu,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://reactflow.dev/pro"},L.createElement("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution"},"React Flow"))}const a0=({x:e,y:t,label:r,labelStyle:n={},labelShowBg:i=!0,labelBgStyle:a={},labelBgPadding:o=[2,4],labelBgBorderRadius:s=2,children:u,className:l,...c})=>{const f=D.useRef(null),[d,h]=D.useState({x:0,y:0,width:0,height:0}),_=pe(["react-flow__edge-textwrapper",l]);return D.useEffect(()=>{if(f.current){const g=f.current.getBBox();h({x:g.x,y:g.y,width:g.width,height:g.height})}},[r]),typeof r>"u"||!r?null:L.createElement("g",{transform:`translate(${e-d.width/2} ${t-d.height/2})`,className:_,visibility:d.width?"visible":"hidden",...c},i&&L.createElement("rect",{width:d.width+2*o[0],x:-o[0],y:-o[1],height:d.height+2*o[1],className:"react-flow__edge-textbg",style:a,rx:s,ry:s}),L.createElement("text",{className:"react-flow__edge-text",y:d.height/2,dy:"0.3em",ref:f,style:n},r),u)};var o0=D.memo(a0);const xu=e=>({width:e.offsetWidth,height:e.offsetHeight}),bt=(e,t=0,r=1)=>Math.min(Math.max(e,t),r),Su=(e={x:0,y:0},t)=>({x:bt(e.x,t[0][0],t[1][0]),y:bt(e.y,t[0][1],t[1][1])}),dc=(e,t,r)=>er?-bt(Math.abs(e-r),1,50)/50:0,hv=(e,t)=>{const r=dc(e.x,35,t.width-35)*20,n=dc(e.y,35,t.height-35)*20;return[r,n]},pv=e=>e.getRootNode?.()||window?.document,vv=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),zt=({x:e,y:t,width:r,height:n})=>({x:e,y:t,x2:e+r,y2:t+n}),gv=({x:e,y:t,x2:r,y2:n})=>({x:e,y:t,width:r-e,height:n-t}),hc=e=>({...e.positionAbsolute||{x:0,y:0},width:e.width||0,height:e.height||0}),s0=(e,t)=>gv(vv(zt(e),zt(t))),cu=(e,t)=>{const r=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),n=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(r*n)},u0=e=>Se(e.width)&&Se(e.height)&&Se(e.x)&&Se(e.y),Se=e=>!isNaN(e)&&isFinite(e),se=Symbol.for("internals"),yv=["Enter"," ","Escape"],c0=(e,t)=>{},l0=e=>"nativeEvent"in e;function lu(e){const r=(l0(e)?e.nativeEvent:e).composedPath?.()?.[0]||e.target;return["INPUT","SELECT","TEXTAREA"].includes(r?.nodeName)||r?.hasAttribute("contenteditable")||!!r?.closest(".nokey")}const mv=e=>"clientX"in e,Je=(e,t)=>{const r=mv(e),n=r?e.clientX:e.touches?.[0].clientX,i=r?e.clientY:e.touches?.[0].clientY;return{x:n-(t?.left??0),y:i-(t?.top??0)}},lr=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0,Gt=({id:e,path:t,labelX:r,labelY:n,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:u,labelBgBorderRadius:l,style:c,markerEnd:f,markerStart:d,interactionWidth:h=20})=>L.createElement(L.Fragment,null,L.createElement("path",{id:e,style:c,d:t,fill:"none",className:"react-flow__edge-path",markerEnd:f,markerStart:d}),h&&L.createElement("path",{d:t,fill:"none",strokeOpacity:0,strokeWidth:h,className:"react-flow__edge-interaction"}),i&&Se(r)&&Se(n)?L.createElement(o0,{x:r,y:n,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:u,labelBgBorderRadius:l}):null);Gt.displayName="BaseEdge";function At(e,t,r){return r===void 0?r:n=>{const i=t().edges.find(a=>a.id===e);i&&r(n,{...i})}}function _v({sourceX:e,sourceY:t,targetX:r,targetY:n}){const i=Math.abs(r-e)/2,a=r{const[v,p,y]=wv({sourceX:e,sourceY:t,sourcePosition:i,targetX:r,targetY:n,targetPosition:a});return L.createElement(Gt,{path:v,labelX:p,labelY:y,label:o,labelStyle:s,labelShowBg:u,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:f,style:d,markerEnd:h,markerStart:_,interactionWidth:g})});qu.displayName="SimpleBezierEdge";const vc={[J.Left]:{x:-1,y:0},[J.Right]:{x:1,y:0},[J.Top]:{x:0,y:-1},[J.Bottom]:{x:0,y:1}},f0=({source:e,sourcePosition:t=J.Bottom,target:r})=>t===J.Left||t===J.Right?e.xMath.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function d0({source:e,sourcePosition:t=J.Bottom,target:r,targetPosition:n=J.Top,center:i,offset:a}){const o=vc[t],s=vc[n],u={x:e.x+o.x*a,y:e.y+o.y*a},l={x:r.x+s.x*a,y:r.y+s.y*a},c=f0({source:u,sourcePosition:t,target:l}),f=c.x!==0?"x":"y",d=c[f];let h=[],_,g;const v={x:0,y:0},p={x:0,y:0},[y,b,m,E]=_v({sourceX:e.x,sourceY:e.y,targetX:r.x,targetY:r.y});if(o[f]*s[f]===-1){_=i.x??y,g=i.y??b;const S=[{x:_,y:u.y},{x:_,y:l.y}],N=[{x:u.x,y:g},{x:l.x,y:g}];o[f]===d?h=f==="x"?S:N:h=f==="x"?N:S}else{const S=[{x:u.x,y:l.y}],N=[{x:l.x,y:u.y}];if(f==="x"?h=o.x===d?N:S:h=o.y===d?S:N,t===n){const k=Math.abs(e[f]-r[f]);if(k<=a){const w=Math.min(a-1,a-k);o[f]===d?v[f]=(u[f]>e[f]?-1:1)*w:p[f]=(l[f]>r[f]?-1:1)*w}}if(t!==n){const k=f==="x"?"y":"x",w=o[f]===s[k],T=u[k]>l[k],R=u[k]=O?(_=(q.x+A.x)/2,g=h[0].y):(_=h[0].x,g=(q.y+A.y)/2)}return[[e,{x:u.x+v.x,y:u.y+v.y},...h,{x:l.x+p.x,y:l.y+p.y},r],_,g,m,E]}function h0(e,t,r,n){const i=Math.min(gc(e,t)/2,gc(t,r)/2,n),{x:a,y:o}=t;if(e.x===a&&a===r.x||e.y===o&&o===r.y)return`L${a} ${o}`;if(e.y===o){const l=e.x{let b="";return y>0&&y{const[p,y,b]=fu({sourceX:e,sourceY:t,sourcePosition:f,targetX:r,targetY:n,targetPosition:d,borderRadius:g?.borderRadius,offset:g?.offset});return L.createElement(Gt,{path:p,labelX:y,labelY:b,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:u,labelBgBorderRadius:l,style:c,markerEnd:h,markerStart:_,interactionWidth:v})});wr.displayName="SmoothStepEdge";const Cu=D.memo(e=>L.createElement(wr,{...e,pathOptions:D.useMemo(()=>({borderRadius:0,offset:e.pathOptions?.offset}),[e.pathOptions?.offset])}));Cu.displayName="StepEdge";function p0({sourceX:e,sourceY:t,targetX:r,targetY:n}){const[i,a,o,s]=_v({sourceX:e,sourceY:t,targetX:r,targetY:n});return[`M ${e},${t}L ${r},${n}`,i,a,o,s]}const Ru=D.memo(({sourceX:e,sourceY:t,targetX:r,targetY:n,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:u,labelBgBorderRadius:l,style:c,markerEnd:f,markerStart:d,interactionWidth:h})=>{const[_,g,v]=p0({sourceX:e,sourceY:t,targetX:r,targetY:n});return L.createElement(Gt,{path:_,labelX:g,labelY:v,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:u,labelBgBorderRadius:l,style:c,markerEnd:f,markerStart:d,interactionWidth:h})});Ru.displayName="StraightEdge";function Jt(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function yc({pos:e,x1:t,y1:r,x2:n,y2:i,c:a}){switch(e){case J.Left:return[t-Jt(t-n,a),r];case J.Right:return[t+Jt(n-t,a),r];case J.Top:return[t,r-Jt(r-i,a)];case J.Bottom:return[t,r+Jt(i-r,a)]}}function Ev({sourceX:e,sourceY:t,sourcePosition:r=J.Bottom,targetX:n,targetY:i,targetPosition:a=J.Top,curvature:o=.25}){const[s,u]=yc({pos:r,x1:e,y1:t,x2:n,y2:i,c:o}),[l,c]=yc({pos:a,x1:n,y1:i,x2:e,y2:t,c:o}),[f,d,h,_]=bv({sourceX:e,sourceY:t,targetX:n,targetY:i,sourceControlX:s,sourceControlY:u,targetControlX:l,targetControlY:c});return[`M${e},${t} C${s},${u} ${l},${c} ${n},${i}`,f,d,h,_]}const dr=D.memo(({sourceX:e,sourceY:t,targetX:r,targetY:n,sourcePosition:i=J.Bottom,targetPosition:a=J.Top,label:o,labelStyle:s,labelShowBg:u,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:f,style:d,markerEnd:h,markerStart:_,pathOptions:g,interactionWidth:v})=>{const[p,y,b]=Ev({sourceX:e,sourceY:t,sourcePosition:i,targetX:r,targetY:n,targetPosition:a,curvature:g?.curvature});return L.createElement(Gt,{path:p,labelX:y,labelY:b,label:o,labelStyle:s,labelShowBg:u,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:f,style:d,markerEnd:h,markerStart:_,interactionWidth:v})});dr.displayName="BezierEdge";const Au=D.createContext(null),v0=Au.Provider;Au.Consumer;const g0=()=>D.useContext(Au),y0=e=>"id"in e&&"source"in e&&"target"in e,m0=({source:e,sourceHandle:t,target:r,targetHandle:n})=>`reactflow__edge-${e}${t||""}-${r}${n||""}`,du=(e,t)=>typeof e>"u"?"":typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}`,_0=(e,t)=>t.some(r=>r.source===e.source&&r.target===e.target&&(r.sourceHandle===e.sourceHandle||!r.sourceHandle&&!e.sourceHandle)&&(r.targetHandle===e.targetHandle||!r.targetHandle&&!e.targetHandle)),b0=(e,t)=>{if(!e.source||!e.target)return t;let r;return y0(e)?r={...e}:r={...e,id:m0(e)},_0(r,t)?t:t.concat(r)},hu=({x:e,y:t},[r,n,i],a,[o,s])=>{const u={x:(e-r)/i,y:(t-n)/i};return a?{x:o*Math.round(u.x/o),y:s*Math.round(u.y/s)}:u},xv=({x:e,y:t},[r,n,i])=>({x:e*i+r,y:t*i+n}),it=(e,t=[0,0])=>{if(!e)return{x:0,y:0,positionAbsolute:{x:0,y:0}};const r=(e.width??0)*t[0],n=(e.height??0)*t[1],i={x:e.position.x-r,y:e.position.y-n};return{...i,positionAbsolute:e.positionAbsolute?{x:e.positionAbsolute.x-r,y:e.positionAbsolute.y-n}:i}},Er=(e,t=[0,0])=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const r=e.reduce((n,i)=>{const{x:a,y:o}=it(i,t).positionAbsolute;return vv(n,zt({x:a,y:o,width:i.width||0,height:i.height||0}))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return gv(r)},Sv=(e,t,[r,n,i]=[0,0,1],a=!1,o=!1,s=[0,0])=>{const u={x:(t.x-r)/i,y:(t.y-n)/i,width:t.width/i,height:t.height/i},l=[];return e.forEach(c=>{const{width:f,height:d,selectable:h=!0,hidden:_=!1}=c;if(o&&!h||_)return!1;const{positionAbsolute:g}=it(c,s),v={x:g.x,y:g.y,width:f||0,height:d||0},p=cu(u,v),y=typeof f>"u"||typeof d>"u"||f===null||d===null,b=a&&p>0,m=(f||0)*(d||0);(y||b||p>=m||c.dragging)&&l.push(c)}),l},qv=(e,t)=>{const r=e.map(n=>n.id);return t.filter(n=>r.includes(n.source)||r.includes(n.target))},Cv=(e,t,r,n,i,a=.1)=>{const o=t/(e.width*(1+a)),s=r/(e.height*(1+a)),u=Math.min(o,s),l=bt(u,n,i),c=e.x+e.width/2,f=e.y+e.height/2,d=t/2-c*l,h=r/2-f*l;return{x:d,y:h,zoom:l}},rt=(e,t=0)=>e.transition().duration(t);function mc(e,t,r,n){return(t[r]||[]).reduce((i,a)=>(`${e.id}-${a.id}-${r}`!==n&&i.push({id:a.id||null,type:r,nodeId:e.id,x:(e.positionAbsolute?.x??0)+a.x+a.width/2,y:(e.positionAbsolute?.y??0)+a.y+a.height/2}),i),[])}function w0(e,t,r,n,i,a){const{x:o,y:s}=Je(e),l=t.elementsFromPoint(o,s).find(_=>_.classList.contains("react-flow__handle"));if(l){const _=l.getAttribute("data-nodeid");if(_){const g=Nu(void 0,l),v=l.getAttribute("data-handleid"),p=a({nodeId:_,id:v,type:g});if(p){const y=i.find(b=>b.nodeId===_&&b.type===g&&b.id===v);return{handle:{id:v,type:g,nodeId:_,x:y?.x||r.x,y:y?.y||r.y},validHandleResult:p}}}}let c=[],f=1/0;if(i.forEach(_=>{const g=Math.sqrt((_.x-r.x)**2+(_.y-r.y)**2);if(g<=n){const v=a(_);g<=f&&(g_.isValid),h=c.some(({handle:_})=>_.type==="target");return c.find(({handle:_,validHandleResult:g})=>h?_.type==="target":d?g.isValid:!0)||c[0]}const E0={source:null,target:null,sourceHandle:null,targetHandle:null},Rv=()=>({handleDomNode:null,isValid:!1,connection:E0,endHandle:null});function Av(e,t,r,n,i,a,o){const s=i==="target",u=o.querySelector(`.react-flow__handle[data-id="${e?.nodeId}-${e?.id}-${e?.type}"]`),l={...Rv(),handleDomNode:u};if(u){const c=Nu(void 0,u),f=u.getAttribute("data-nodeid"),d=u.getAttribute("data-handleid"),h=u.classList.contains("connectable"),_=u.classList.contains("connectableend"),g={source:s?f:r,sourceHandle:s?d:n,target:s?r:f,targetHandle:s?n:d};l.connection=g,h&&_&&(t===ot.Strict?s&&c==="source"||!s&&c==="target":f!==r||d!==n)&&(l.endHandle={nodeId:f,handleId:d,type:c},l.isValid=a(g))}return l}function x0({nodes:e,nodeId:t,handleId:r,handleType:n}){return e.reduce((i,a)=>{if(a[se]){const{handleBounds:o}=a[se];let s=[],u=[];o&&(s=mc(a,o,"source",`${t}-${r}-${n}`),u=mc(a,o,"target",`${t}-${r}-${n}`)),i.push(...s,...u)}return i},[])}function Nu(e,t){return e||(t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null)}function Kr(e){e?.classList.remove("valid","connecting","react-flow__handle-valid","react-flow__handle-connecting")}function S0(e,t){let r=null;return t?r="valid":e&&!t&&(r="invalid"),r}function Nv({event:e,handleId:t,nodeId:r,onConnect:n,isTarget:i,getState:a,setState:o,isValidConnection:s,edgeUpdaterType:u,onReconnectEnd:l}){const c=pv(e.target),{connectionMode:f,domNode:d,autoPanOnConnect:h,connectionRadius:_,onConnectStart:g,panBy:v,getNodes:p,cancelConnection:y}=a();let b=0,m;const{x:E,y:x}=Je(e),S=c?.elementFromPoint(E,x),N=Nu(u,S),q=d?.getBoundingClientRect();if(!q||!N)return;let A,I=Je(e,q),O=!1,k=null,w=!1,T=null;const R=x0({nodes:p(),nodeId:r,handleId:t,handleType:N}),z=()=>{if(!h)return;const[B,V]=hv(I,q);v({x:B,y:V}),b=requestAnimationFrame(z)};o({connectionPosition:I,connectionStatus:null,connectionNodeId:r,connectionHandleId:t,connectionHandleType:N,connectionStartHandle:{nodeId:r,handleId:t,type:N},connectionEndHandle:null}),g?.(e,{nodeId:r,handleId:t,handleType:N});function H(B){const{transform:V}=a();I=Je(B,q);const{handle:G,validHandleResult:U}=w0(B,c,hu(I,V,!1,[1,1]),_,R,C=>Av(C,f,r,t,i?"target":"source",s,c));if(m=G,O||(z(),O=!0),T=U.handleDomNode,k=U.connection,w=U.isValid,o({connectionPosition:m&&w?xv({x:m.x,y:m.y},V):I,connectionStatus:S0(!!m,w),connectionEndHandle:U.endHandle}),!m&&!w&&!T)return Kr(A);k.source!==k.target&&T&&(Kr(A),A=T,T.classList.add("connecting","react-flow__handle-connecting"),T.classList.toggle("valid",w),T.classList.toggle("react-flow__handle-valid",w))}function M(B){(m||T)&&k&&w&&n?.(k),a().onConnectEnd?.(B),u&&l?.(B),Kr(A),y(),cancelAnimationFrame(b),O=!1,w=!1,k=null,T=null,c.removeEventListener("mousemove",H),c.removeEventListener("mouseup",M),c.removeEventListener("touchmove",H),c.removeEventListener("touchend",M)}c.addEventListener("mousemove",H),c.addEventListener("mouseup",M),c.addEventListener("touchmove",H),c.addEventListener("touchend",M)}const _c=()=>!0,q0=e=>({connectionStartHandle:e.connectionStartHandle,connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName}),C0=(e,t,r)=>n=>{const{connectionStartHandle:i,connectionEndHandle:a,connectionClickStartHandle:o}=n;return{connecting:i?.nodeId===e&&i?.handleId===t&&i?.type===r||a?.nodeId===e&&a?.handleId===t&&a?.type===r,clickConnecting:o?.nodeId===e&&o?.handleId===t&&o?.type===r}},Iv=D.forwardRef(({type:e="source",position:t=J.Top,isValidConnection:r,isConnectable:n=!0,isConnectableStart:i=!0,isConnectableEnd:a=!0,id:o,onConnect:s,children:u,className:l,onMouseDown:c,onTouchStart:f,...d},h)=>{const _=o||null,g=e==="target",v=fe(),p=g0(),{connectOnClick:y,noPanClassName:b}=ne(q0,he),{connecting:m,clickConnecting:E}=ne(C0(p,_,e),he);p||v.getState().onError?.("010",Ve.error010());const x=q=>{const{defaultEdgeOptions:A,onConnect:I,hasDefaultEdges:O}=v.getState(),k={...A,...q};if(O){const{edges:w,setEdges:T}=v.getState();T(b0(k,w))}I?.(k),s?.(k)},S=q=>{if(!p)return;const A=mv(q);i&&(A&&q.button===0||!A)&&Nv({event:q,handleId:_,nodeId:p,onConnect:x,isTarget:g,getState:v.getState,setState:v.setState,isValidConnection:r||v.getState().isValidConnection||_c}),A?c?.(q):f?.(q)},N=q=>{const{onClickConnectStart:A,onClickConnectEnd:I,connectionClickStartHandle:O,connectionMode:k,isValidConnection:w}=v.getState();if(!p||!O&&!i)return;if(!O){A?.(q,{nodeId:p,handleId:_,handleType:e}),v.setState({connectionClickStartHandle:{nodeId:p,type:e,handleId:_}});return}const T=pv(q.target),R=r||w||_c,{connection:z,isValid:H}=Av({nodeId:p,id:_,type:e},k,O.nodeId,O.handleId||null,O.type,R,T);H&&x(z),I?.(q),v.setState({connectionClickStartHandle:null})};return L.createElement("div",{"data-handleid":_,"data-nodeid":p,"data-handlepos":t,"data-id":`${p}-${_}-${e}`,className:pe(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",b,l,{source:!g,target:g,connectable:n,connectablestart:i,connectableend:a,connecting:E,connectionindicator:n&&(i&&!m||a&&m)}]),onMouseDown:S,onTouchStart:S,onClick:y?N:void 0,ref:h,...d},u)});Iv.displayName="Handle";var hr=D.memo(Iv);const Tv=({data:e,isConnectable:t,targetPosition:r=J.Top,sourcePosition:n=J.Bottom})=>L.createElement(L.Fragment,null,L.createElement(hr,{type:"target",position:r,isConnectable:t}),e?.label,L.createElement(hr,{type:"source",position:n,isConnectable:t}));Tv.displayName="DefaultNode";var pu=D.memo(Tv);const Mv=({data:e,isConnectable:t,sourcePosition:r=J.Bottom})=>L.createElement(L.Fragment,null,e?.label,L.createElement(hr,{type:"source",position:r,isConnectable:t}));Mv.displayName="InputNode";var Pv=D.memo(Mv);const kv=({data:e,isConnectable:t,targetPosition:r=J.Top})=>L.createElement(L.Fragment,null,L.createElement(hr,{type:"target",position:r,isConnectable:t}),e?.label);kv.displayName="OutputNode";var Ov=D.memo(kv);const Iu=()=>null;Iu.displayName="GroupNode";const R0=e=>({selectedNodes:e.getNodes().filter(t=>t.selected),selectedEdges:e.edges.filter(t=>t.selected).map(t=>({...t}))}),Qt=e=>e.id;function A0(e,t){return he(e.selectedNodes.map(Qt),t.selectedNodes.map(Qt))&&he(e.selectedEdges.map(Qt),t.selectedEdges.map(Qt))}const Dv=D.memo(({onSelectionChange:e})=>{const t=fe(),{selectedNodes:r,selectedEdges:n}=ne(R0,A0);return D.useEffect(()=>{const i={nodes:r,edges:n};e?.(i),t.getState().onSelectionChange.forEach(a=>a(i))},[r,n,e]),null});Dv.displayName="SelectionListener";const N0=e=>!!e.onSelectionChange;function I0({onSelectionChange:e}){const t=ne(N0);return e||t?L.createElement(Dv,{onSelectionChange:e}):null}const T0=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset});function ft(e,t){D.useEffect(()=>{typeof e<"u"&&t(e)},[e])}function Q(e,t,r){D.useEffect(()=>{typeof t<"u"&&r({[e]:t})},[t])}const M0=({nodes:e,edges:t,defaultNodes:r,defaultEdges:n,onConnect:i,onConnectStart:a,onConnectEnd:o,onClickConnectStart:s,onClickConnectEnd:u,nodesDraggable:l,nodesConnectable:c,nodesFocusable:f,edgesFocusable:d,edgesUpdatable:h,elevateNodesOnSelect:_,minZoom:g,maxZoom:v,nodeExtent:p,onNodesChange:y,onEdgesChange:b,elementsSelectable:m,connectionMode:E,snapGrid:x,snapToGrid:S,translateExtent:N,connectOnClick:q,defaultEdgeOptions:A,fitView:I,fitViewOptions:O,onNodesDelete:k,onEdgesDelete:w,onNodeDrag:T,onNodeDragStart:R,onNodeDragStop:z,onSelectionDrag:H,onSelectionDragStart:M,onSelectionDragStop:B,noPanClassName:V,nodeOrigin:G,rfId:U,autoPanOnConnect:C,autoPanOnNodeDrag:P,onError:F,connectionRadius:$,isValidConnection:K,nodeDragThreshold:W})=>{const{setNodes:Z,setEdges:te,setDefaultNodesAndEdges:ie,setMinZoom:re,setMaxZoom:ee,setTranslateExtent:X,setNodeExtent:ue,reset:j}=ne(T0,he),Y=fe();return D.useEffect(()=>{const oe=n?.map(Ce=>({...Ce,...A}));return ie(r,oe),()=>{j()}},[]),Q("defaultEdgeOptions",A,Y.setState),Q("connectionMode",E,Y.setState),Q("onConnect",i,Y.setState),Q("onConnectStart",a,Y.setState),Q("onConnectEnd",o,Y.setState),Q("onClickConnectStart",s,Y.setState),Q("onClickConnectEnd",u,Y.setState),Q("nodesDraggable",l,Y.setState),Q("nodesConnectable",c,Y.setState),Q("nodesFocusable",f,Y.setState),Q("edgesFocusable",d,Y.setState),Q("edgesUpdatable",h,Y.setState),Q("elementsSelectable",m,Y.setState),Q("elevateNodesOnSelect",_,Y.setState),Q("snapToGrid",S,Y.setState),Q("snapGrid",x,Y.setState),Q("onNodesChange",y,Y.setState),Q("onEdgesChange",b,Y.setState),Q("connectOnClick",q,Y.setState),Q("fitViewOnInit",I,Y.setState),Q("fitViewOnInitOptions",O,Y.setState),Q("onNodesDelete",k,Y.setState),Q("onEdgesDelete",w,Y.setState),Q("onNodeDrag",T,Y.setState),Q("onNodeDragStart",R,Y.setState),Q("onNodeDragStop",z,Y.setState),Q("onSelectionDrag",H,Y.setState),Q("onSelectionDragStart",M,Y.setState),Q("onSelectionDragStop",B,Y.setState),Q("noPanClassName",V,Y.setState),Q("nodeOrigin",G,Y.setState),Q("rfId",U,Y.setState),Q("autoPanOnConnect",C,Y.setState),Q("autoPanOnNodeDrag",P,Y.setState),Q("onError",F,Y.setState),Q("connectionRadius",$,Y.setState),Q("isValidConnection",K,Y.setState),Q("nodeDragThreshold",W,Y.setState),ft(e,Z),ft(t,te),ft(g,re),ft(v,ee),ft(N,X),ft(p,ue),null},bc={display:"none"},P0={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Lv="react-flow__node-desc",Fv="react-flow__edge-desc",k0="react-flow__aria-live",O0=e=>e.ariaLiveMessage;function D0({rfId:e}){const t=ne(O0);return L.createElement("div",{id:`${k0}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:P0},t)}function L0({rfId:e,disableKeyboardA11y:t}){return L.createElement(L.Fragment,null,L.createElement("div",{id:`${Lv}-${e}`,style:bc},"Press enter or space to select a node.",!t&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "),L.createElement("div",{id:`${Fv}-${e}`,style:bc},"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."),!t&&L.createElement(D0,{rfId:e}))}var Ht=(e=null,t={actInsideInputWithModifier:!0})=>{const[r,n]=D.useState(!1),i=D.useRef(!1),a=D.useRef(new Set([])),[o,s]=D.useMemo(()=>{if(e!==null){const l=(Array.isArray(e)?e:[e]).filter(f=>typeof f=="string").map(f=>f.split("+")),c=l.reduce((f,d)=>f.concat(...d),[]);return[l,c]}return[[],[]]},[e]);return D.useEffect(()=>{const u=typeof document<"u"?document:null,l=t?.target||u;if(e!==null){const c=h=>{if(i.current=h.ctrlKey||h.metaKey||h.shiftKey,(!i.current||i.current&&!t.actInsideInputWithModifier)&&lu(h))return!1;const g=Ec(h.code,s);a.current.add(h[g]),wc(o,a.current,!1)&&(h.preventDefault(),n(!0))},f=h=>{if((!i.current||i.current&&!t.actInsideInputWithModifier)&&lu(h))return!1;const g=Ec(h.code,s);wc(o,a.current,!0)?(n(!1),a.current.clear()):a.current.delete(h[g]),h.key==="Meta"&&a.current.clear(),i.current=!1},d=()=>{a.current.clear(),n(!1)};return l?.addEventListener("keydown",c),l?.addEventListener("keyup",f),window.addEventListener("blur",d),()=>{l?.removeEventListener("keydown",c),l?.removeEventListener("keyup",f),window.removeEventListener("blur",d)}}},[e,n]),r};function wc(e,t,r){return e.filter(n=>r||n.length===t.size).some(n=>n.every(i=>t.has(i)))}function Ec(e,t){return t.includes(e)?"code":"key"}function zv(e,t,r,n){const i=e.parentNode||e.parentId;if(!i)return r;const a=t.get(i),o=it(a,n);return zv(a,t,{x:(r.x??0)+o.x,y:(r.y??0)+o.y,z:(a[se]?.z??0)>(r.z??0)?a[se]?.z??0:r.z??0},n)}function Bv(e,t,r){e.forEach(n=>{const i=n.parentNode||n.parentId;if(i&&!e.has(i))throw new Error(`Parent node ${i} not found`);if(i||r?.[n.id]){const{x:a,y:o,z:s}=zv(n,e,{...n.position,z:n[se]?.z??0},t);n.positionAbsolute={x:a,y:o},n[se].z=s,r?.[n.id]&&(n[se].isParent=!0)}})}function jr(e,t,r,n){const i=new Map,a={},o=n?1e3:0;return e.forEach(s=>{const u=(Se(s.zIndex)?s.zIndex:0)+(s.selected?o:0),l=t.get(s.id),c={...s,positionAbsolute:{x:s.position.x,y:s.position.y}},f=s.parentNode||s.parentId;f&&(a[f]=!0);const d=l?.type&&l?.type!==s.type;Object.defineProperty(c,se,{enumerable:!1,value:{handleBounds:d?void 0:l?.[se]?.handleBounds,z:u}}),i.set(s.id,c)}),Bv(i,r,a),i}function Hv(e,t={}){const{getNodes:r,width:n,height:i,minZoom:a,maxZoom:o,d3Zoom:s,d3Selection:u,fitViewOnInitDone:l,fitViewOnInit:c,nodeOrigin:f}=e(),d=t.initial&&!l&&c;if(s&&u&&(d||!t.initial)){const _=r().filter(v=>{const p=t.includeHiddenNodes?v.width&&v.height:!v.hidden;return t.nodes?.length?p&&t.nodes.some(y=>y.id===v.id):p}),g=_.every(v=>v.width&&v.height);if(_.length>0&&g){const v=Er(_,f),{x:p,y,zoom:b}=Cv(v,n,i,t.minZoom??a,t.maxZoom??o,t.padding??.1),m=He.translate(p,y).scale(b);return typeof t.duration=="number"&&t.duration>0?s.transform(rt(u,t.duration),m):s.transform(u,m),!0}}return!1}function F0(e,t){return e.forEach(r=>{const n=t.get(r.id);n&&t.set(n.id,{...n,[se]:n[se],selected:r.selected})}),new Map(t)}function z0(e,t){return t.map(r=>{const n=e.find(i=>i.id===r.id);return n&&(r.selected=n.selected),r})}function er({changedNodes:e,changedEdges:t,get:r,set:n}){const{nodeInternals:i,edges:a,onNodesChange:o,onEdgesChange:s,hasDefaultNodes:u,hasDefaultEdges:l}=r();e?.length&&(u&&n({nodeInternals:F0(e,i)}),o?.(e)),t?.length&&(l&&n({edges:z0(t,a)}),s?.(t))}const dt=()=>{},B0={zoomIn:dt,zoomOut:dt,zoomTo:dt,getZoom:()=>1,setViewport:dt,getViewport:()=>({x:0,y:0,zoom:1}),fitView:()=>!1,setCenter:dt,fitBounds:dt,project:e=>e,screenToFlowPosition:e=>e,flowToScreenPosition:e=>e,viewportInitialized:!1},H0=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection}),$0=()=>{const e=fe(),{d3Zoom:t,d3Selection:r}=ne(H0,he);return D.useMemo(()=>r&&t?{zoomIn:i=>t.scaleBy(rt(r,i?.duration),1.2),zoomOut:i=>t.scaleBy(rt(r,i?.duration),1/1.2),zoomTo:(i,a)=>t.scaleTo(rt(r,a?.duration),i),getZoom:()=>e.getState().transform[2],setViewport:(i,a)=>{const[o,s,u]=e.getState().transform,l=He.translate(i.x??o,i.y??s).scale(i.zoom??u);t.transform(rt(r,a?.duration),l)},getViewport:()=>{const[i,a,o]=e.getState().transform;return{x:i,y:a,zoom:o}},fitView:i=>Hv(e.getState,i),setCenter:(i,a,o)=>{const{width:s,height:u,maxZoom:l}=e.getState(),c=typeof o?.zoom<"u"?o.zoom:l,f=s/2-i*c,d=u/2-a*c,h=He.translate(f,d).scale(c);t.transform(rt(r,o?.duration),h)},fitBounds:(i,a)=>{const{width:o,height:s,minZoom:u,maxZoom:l}=e.getState(),{x:c,y:f,zoom:d}=Cv(i,o,s,u,l,a?.padding??.1),h=He.translate(c,f).scale(d);t.transform(rt(r,a?.duration),h)},project:i=>{const{transform:a,snapToGrid:o,snapGrid:s}=e.getState();return console.warn("[DEPRECATED] `project` is deprecated. Instead use `screenToFlowPosition`. There is no need to subtract the react flow bounds anymore! https://reactflow.dev/api-reference/types/react-flow-instance#screen-to-flow-position"),hu(i,a,o,s)},screenToFlowPosition:i=>{const{transform:a,snapToGrid:o,snapGrid:s,domNode:u}=e.getState();if(!u)return i;const{x:l,y:c}=u.getBoundingClientRect(),f={x:i.x-l,y:i.y-c};return hu(f,a,o,s)},flowToScreenPosition:i=>{const{transform:a,domNode:o}=e.getState();if(!o)return i;const{x:s,y:u}=o.getBoundingClientRect(),l=xv(i,a);return{x:l.x+s,y:l.y+u}},viewportInitialized:!0}:B0,[t,r])};function Tu(){const e=$0(),t=fe(),r=D.useCallback(()=>t.getState().getNodes().map(g=>({...g})),[]),n=D.useCallback(g=>t.getState().nodeInternals.get(g),[]),i=D.useCallback(()=>{const{edges:g=[]}=t.getState();return g.map(v=>({...v}))},[]),a=D.useCallback(g=>{const{edges:v=[]}=t.getState();return v.find(p=>p.id===g)},[]),o=D.useCallback(g=>{const{getNodes:v,setNodes:p,hasDefaultNodes:y,onNodesChange:b}=t.getState(),m=v(),E=typeof g=="function"?g(m):g;if(y)p(E);else if(b){const x=E.length===0?m.map(S=>({type:"remove",id:S.id})):E.map(S=>({item:S,type:"reset"}));b(x)}},[]),s=D.useCallback(g=>{const{edges:v=[],setEdges:p,hasDefaultEdges:y,onEdgesChange:b}=t.getState(),m=typeof g=="function"?g(v):g;if(y)p(m);else if(b){const E=m.length===0?v.map(x=>({type:"remove",id:x.id})):m.map(x=>({item:x,type:"reset"}));b(E)}},[]),u=D.useCallback(g=>{const v=Array.isArray(g)?g:[g],{getNodes:p,setNodes:y,hasDefaultNodes:b,onNodesChange:m}=t.getState();if(b){const x=[...p(),...v];y(x)}else if(m){const E=v.map(x=>({item:x,type:"add"}));m(E)}},[]),l=D.useCallback(g=>{const v=Array.isArray(g)?g:[g],{edges:p=[],setEdges:y,hasDefaultEdges:b,onEdgesChange:m}=t.getState();if(b)y([...p,...v]);else if(m){const E=v.map(x=>({item:x,type:"add"}));m(E)}},[]),c=D.useCallback(()=>{const{getNodes:g,edges:v=[],transform:p}=t.getState(),[y,b,m]=p;return{nodes:g().map(E=>({...E})),edges:v.map(E=>({...E})),viewport:{x:y,y:b,zoom:m}}},[]),f=D.useCallback(({nodes:g,edges:v})=>{const{nodeInternals:p,getNodes:y,edges:b,hasDefaultNodes:m,hasDefaultEdges:E,onNodesDelete:x,onEdgesDelete:S,onNodesChange:N,onEdgesChange:q}=t.getState(),A=(g||[]).map(T=>T.id),I=(v||[]).map(T=>T.id),O=y().reduce((T,R)=>{const z=R.parentNode||R.parentId,H=!A.includes(R.id)&&z&&T.find(B=>B.id===z);return(typeof R.deletable!="boolean"||R.deletable)&&(A.includes(R.id)||H)&&T.push(R),T},[]),k=b.filter(T=>typeof T.deletable=="boolean"?T.deletable:!0),w=k.filter(T=>I.includes(T.id));if(O||w){const T=qv(O,k),R=[...w,...T],z=R.reduce((H,M)=>(H.includes(M.id)||H.push(M.id),H),[]);if((E||m)&&(E&&t.setState({edges:b.filter(H=>!z.includes(H.id))}),m&&(O.forEach(H=>{p.delete(H.id)}),t.setState({nodeInternals:new Map(p)}))),z.length>0&&(S?.(R),q&&q(z.map(H=>({id:H,type:"remove"})))),O.length>0&&(x?.(O),N)){const H=O.map(M=>({id:M.id,type:"remove"}));N(H)}}},[]),d=D.useCallback(g=>{const v=u0(g),p=v?null:t.getState().nodeInternals.get(g.id);return!v&&!p?[null,null,v]:[v?g:hc(p),p,v]},[]),h=D.useCallback((g,v=!0,p)=>{const[y,b,m]=d(g);return y?(p||t.getState().getNodes()).filter(E=>{if(!m&&(E.id===b.id||!E.positionAbsolute))return!1;const x=hc(E),S=cu(x,y);return v&&S>0||S>=y.width*y.height}):[]},[]),_=D.useCallback((g,v,p=!0)=>{const[y]=d(g);if(!y)return!1;const b=cu(y,v);return p&&b>0||b>=y.width*y.height},[]);return D.useMemo(()=>({...e,getNodes:r,getNode:n,getEdges:i,getEdge:a,setNodes:o,setEdges:s,addNodes:u,addEdges:l,toObject:c,deleteElements:f,getIntersectingNodes:h,isNodeIntersecting:_}),[e,r,n,i,a,o,s,u,l,c,f,h,_])}const V0={actInsideInputWithModifier:!1};var G0=({deleteKeyCode:e,multiSelectionKeyCode:t})=>{const r=fe(),{deleteElements:n}=Tu(),i=Ht(e,V0),a=Ht(t);D.useEffect(()=>{if(i){const{edges:o,getNodes:s}=r.getState(),u=s().filter(c=>c.selected),l=o.filter(c=>c.selected);n({nodes:u,edges:l}),r.setState({nodesSelectionActive:!1})}},[i]),D.useEffect(()=>{r.setState({multiSelectionActive:a})},[a])};function U0(e){const t=fe();D.useEffect(()=>{let r;const n=()=>{if(!e.current)return;const i=xu(e.current);(i.height===0||i.width===0)&&t.getState().onError?.("004",Ve.error004()),t.setState({width:i.width||500,height:i.height||500})};return n(),window.addEventListener("resize",n),e.current&&(r=new ResizeObserver(()=>n()),r.observe(e.current)),()=>{window.removeEventListener("resize",n),r&&e.current&&r.unobserve(e.current)}},[])}const Mu={position:"absolute",width:"100%",height:"100%",top:0,left:0},K0=(e,t)=>e.x!==t.x||e.y!==t.y||e.zoom!==t.k,tr=e=>({x:e.x,y:e.y,zoom:e.k}),ht=(e,t)=>e.target.closest(`.${t}`),xc=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),Sc=e=>{const t=e.ctrlKey&&lr()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t},j0=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection,d3ZoomHandler:e.d3ZoomHandler,userSelectionActive:e.userSelectionActive}),Y0=({onMove:e,onMoveStart:t,onMoveEnd:r,onPaneContextMenu:n,zoomOnScroll:i=!0,zoomOnPinch:a=!0,panOnScroll:o=!1,panOnScrollSpeed:s=.5,panOnScrollMode:u=nt.Free,zoomOnDoubleClick:l=!0,elementsSelectable:c,panOnDrag:f=!0,defaultViewport:d,translateExtent:h,minZoom:_,maxZoom:g,zoomActivationKeyCode:v,preventScrolling:p=!0,children:y,noWheelClassName:b,noPanClassName:m})=>{const E=D.useRef(),x=fe(),S=D.useRef(!1),N=D.useRef(!1),q=D.useRef(null),A=D.useRef({x:0,y:0,zoom:0}),{d3Zoom:I,d3Selection:O,d3ZoomHandler:k,userSelectionActive:w}=ne(j0,he),T=Ht(v),R=D.useRef(0),z=D.useRef(!1),H=D.useRef();return U0(q),D.useEffect(()=>{if(q.current){const M=q.current.getBoundingClientRect(),B=fv().scaleExtent([_,g]).translateExtent(h),V=xe(q.current).call(B),G=He.translate(d.x,d.y).scale(bt(d.zoom,_,g)),U=[[0,0],[M.width,M.height]],C=B.constrain()(G,U,h);B.transform(V,C),B.wheelDelta(Sc),x.setState({d3Zoom:B,d3Selection:V,d3ZoomHandler:V.on("wheel.zoom"),transform:[C.x,C.y,C.k],domNode:q.current.closest(".react-flow")})}},[]),D.useEffect(()=>{O&&I&&(o&&!T&&!w?O.on("wheel.zoom",M=>{if(ht(M,b))return!1;M.preventDefault(),M.stopImmediatePropagation();const B=O.property("__zoom").k||1;if(M.ctrlKey&&a){const K=Ae(M),W=Sc(M),Z=B*Math.pow(2,W);I.scaleTo(O,Z,K,M);return}const V=M.deltaMode===1?20:1;let G=u===nt.Vertical?0:M.deltaX*V,U=u===nt.Horizontal?0:M.deltaY*V;!lr()&&M.shiftKey&&u!==nt.Vertical&&(G=M.deltaY*V,U=0),I.translateBy(O,-(G/B)*s,-(U/B)*s,{internal:!0});const C=tr(O.property("__zoom")),{onViewportChangeStart:P,onViewportChange:F,onViewportChangeEnd:$}=x.getState();clearTimeout(H.current),z.current||(z.current=!0,t?.(M,C),P?.(C)),z.current&&(e?.(M,C),F?.(C),H.current=setTimeout(()=>{r?.(M,C),$?.(C),z.current=!1},150))},{passive:!1}):typeof k<"u"&&O.on("wheel.zoom",function(M,B){if(!p&&M.type==="wheel"&&!M.ctrlKey||ht(M,b))return null;M.preventDefault(),k.call(this,M,B)},{passive:!1}))},[w,o,u,O,I,k,T,a,p,b,t,e,r]),D.useEffect(()=>{I&&I.on("start",M=>{if(!M.sourceEvent||M.sourceEvent.internal)return null;R.current=M.sourceEvent?.button;const{onViewportChangeStart:B}=x.getState(),V=tr(M.transform);S.current=!0,A.current=V,M.sourceEvent?.type==="mousedown"&&x.setState({paneDragging:!0}),B?.(V),t?.(M.sourceEvent,V)})},[I,t]),D.useEffect(()=>{I&&(w&&!S.current?I.on("zoom",null):w||I.on("zoom",M=>{const{onViewportChange:B}=x.getState();if(x.setState({transform:[M.transform.x,M.transform.y,M.transform.k]}),N.current=!!(n&&xc(f,R.current??0)),(e||B)&&!M.sourceEvent?.internal){const V=tr(M.transform);B?.(V),e?.(M.sourceEvent,V)}}))},[w,I,e,f,n]),D.useEffect(()=>{I&&I.on("end",M=>{if(!M.sourceEvent||M.sourceEvent.internal)return null;const{onViewportChangeEnd:B}=x.getState();if(S.current=!1,x.setState({paneDragging:!1}),n&&xc(f,R.current??0)&&!N.current&&n(M.sourceEvent),N.current=!1,(r||B)&&K0(A.current,M.transform)){const V=tr(M.transform);A.current=V,clearTimeout(E.current),E.current=setTimeout(()=>{B?.(V),r?.(M.sourceEvent,V)},o?150:0)}})},[I,o,f,r,n]),D.useEffect(()=>{I&&I.filter(M=>{const B=T||i,V=a&&M.ctrlKey;if((f===!0||Array.isArray(f)&&f.includes(1))&&M.button===1&&M.type==="mousedown"&&(ht(M,"react-flow__node")||ht(M,"react-flow__edge")))return!0;if(!f&&!B&&!o&&!l&&!a||w||!l&&M.type==="dblclick"||ht(M,b)&&M.type==="wheel"||ht(M,m)&&(M.type!=="wheel"||o&&M.type==="wheel"&&!T)||!a&&M.ctrlKey&&M.type==="wheel"||!B&&!o&&!V&&M.type==="wheel"||!f&&(M.type==="mousedown"||M.type==="touchstart")||Array.isArray(f)&&!f.includes(M.button)&&M.type==="mousedown")return!1;const G=Array.isArray(f)&&f.includes(M.button)||!M.button||M.button<=1;return(!M.ctrlKey||M.type==="wheel")&&G})},[w,I,i,a,o,l,f,c,T]),L.createElement("div",{className:"react-flow__renderer",ref:q,style:Mu},y)},W0=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function Z0(){const{userSelectionActive:e,userSelectionRect:t}=ne(W0,he);return e&&t?L.createElement("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}function qc(e,t){const r=t.parentNode||t.parentId,n=e.find(i=>i.id===r);if(n){const i=t.position.x+t.width-n.width,a=t.position.y+t.height-n.height;if(i>0||a>0||t.position.x<0||t.position.y<0){if(n.style={...n.style},n.style.width=n.style.width??n.width,n.style.height=n.style.height??n.height,i>0&&(n.style.width+=i),a>0&&(n.style.height+=a),t.position.x<0){const o=Math.abs(t.position.x);n.position.x=n.position.x-o,n.style.width+=o,t.position.x=0}if(t.position.y<0){const o=Math.abs(t.position.y);n.position.y=n.position.y-o,n.style.height+=o,t.position.y=0}n.width=n.style.width,n.height=n.style.height}}}function X0(e,t){if(e.some(n=>n.type==="reset"))return e.filter(n=>n.type==="reset").map(n=>n.item);const r=e.filter(n=>n.type==="add").map(n=>n.item);return t.reduce((n,i)=>{const a=e.filter(s=>s.id===i.id);if(a.length===0)return n.push(i),n;const o={...i};for(const s of a)if(s)switch(s.type){case"select":{o.selected=s.selected;break}case"position":{typeof s.position<"u"&&(o.position=s.position),typeof s.positionAbsolute<"u"&&(o.positionAbsolute=s.positionAbsolute),typeof s.dragging<"u"&&(o.dragging=s.dragging),o.expandParent&&qc(n,o);break}case"dimensions":{typeof s.dimensions<"u"&&(o.width=s.dimensions.width,o.height=s.dimensions.height),typeof s.updateStyle<"u"&&(o.style={...o.style||{},...s.dimensions}),typeof s.resizing=="boolean"&&(o.resizing=s.resizing),o.expandParent&&qc(n,o);break}case"remove":return n}return n.push(o),n},r)}function J0(e,t){return X0(e,t)}const Ze=(e,t)=>({id:e,type:"select",selected:t});function vt(e,t){return e.reduce((r,n)=>{const i=t.includes(n.id);return!n.selected&&i?(n.selected=!0,r.push(Ze(n.id,!0))):n.selected&&!i&&(n.selected=!1,r.push(Ze(n.id,!1))),r},[])}const Yr=(e,t)=>r=>{r.target===t.current&&e?.(r)},Q0=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging}),$v=D.memo(({isSelecting:e,selectionMode:t=Bt.Full,panOnDrag:r,onSelectionStart:n,onSelectionEnd:i,onPaneClick:a,onPaneContextMenu:o,onPaneScroll:s,onPaneMouseEnter:u,onPaneMouseMove:l,onPaneMouseLeave:c,children:f})=>{const d=D.useRef(null),h=fe(),_=D.useRef(0),g=D.useRef(0),v=D.useRef(),{userSelectionActive:p,elementsSelectable:y,dragging:b}=ne(Q0,he),m=()=>{h.setState({userSelectionActive:!1,userSelectionRect:null}),_.current=0,g.current=0},E=k=>{a?.(k),h.getState().resetSelectedElements(),h.setState({nodesSelectionActive:!1})},x=k=>{if(Array.isArray(r)&&r?.includes(2)){k.preventDefault();return}o?.(k)},S=s?k=>s(k):void 0,N=k=>{const{resetSelectedElements:w,domNode:T}=h.getState();if(v.current=T?.getBoundingClientRect(),!y||!e||k.button!==0||k.target!==d.current||!v.current)return;const{x:R,y:z}=Je(k,v.current);w(),h.setState({userSelectionRect:{width:0,height:0,startX:R,startY:z,x:R,y:z}}),n?.(k)},q=k=>{const{userSelectionRect:w,nodeInternals:T,edges:R,transform:z,onNodesChange:H,onEdgesChange:M,nodeOrigin:B,getNodes:V}=h.getState();if(!e||!v.current||!w)return;h.setState({userSelectionActive:!0,nodesSelectionActive:!1});const G=Je(k,v.current),U=w.startX??0,C=w.startY??0,P={...w,x:G.xZ.id),W=$.map(Z=>Z.id);if(_.current!==W.length){_.current=W.length;const Z=vt(F,W);Z.length&&H?.(Z)}if(g.current!==K.length){g.current=K.length;const Z=vt(R,K);Z.length&&M?.(Z)}h.setState({userSelectionRect:P})},A=k=>{if(k.button!==0)return;const{userSelectionRect:w}=h.getState();!p&&w&&k.target===d.current&&E?.(k),h.setState({nodesSelectionActive:_.current>0}),m(),i?.(k)},I=k=>{p&&(h.setState({nodesSelectionActive:_.current>0}),i?.(k)),m()},O=y&&(e||p);return L.createElement("div",{className:pe(["react-flow__pane",{dragging:b,selection:e}]),onClick:O?void 0:Yr(E,d),onContextMenu:Yr(x,d),onWheel:Yr(S,d),onMouseEnter:O?void 0:u,onMouseDown:O?N:void 0,onMouseMove:O?q:l,onMouseUp:O?A:void 0,onMouseLeave:O?I:c,ref:d,style:Mu},f,L.createElement(Z0,null))});$v.displayName="Pane";function Vv(e,t){const r=e.parentNode||e.parentId;if(!r)return!1;const n=t.get(r);return n?n.selected?!0:Vv(n,t):!1}function Cc(e,t,r){let n=e;do{if(n?.matches(t))return!0;if(n===r.current)return!1;n=n.parentElement}while(n);return!1}function ew(e,t,r,n){return Array.from(e.values()).filter(i=>(i.selected||i.id===n)&&(!i.parentNode||i.parentId||!Vv(i,e))&&(i.draggable||t&&typeof i.draggable>"u")).map(i=>({id:i.id,position:i.position||{x:0,y:0},positionAbsolute:i.positionAbsolute||{x:0,y:0},distance:{x:r.x-(i.positionAbsolute?.x??0),y:r.y-(i.positionAbsolute?.y??0)},delta:{x:0,y:0},extent:i.extent,parentNode:i.parentNode||i.parentId,parentId:i.parentNode||i.parentId,width:i.width,height:i.height,expandParent:i.expandParent}))}function tw(e,t){return!t||t==="parent"?t:[t[0],[t[1][0]-(e.width||0),t[1][1]-(e.height||0)]]}function Gv(e,t,r,n,i=[0,0],a){const o=tw(e,e.extent||n);let s=o;const u=e.parentNode||e.parentId;if(e.extent==="parent"&&!e.expandParent)if(u&&e.width&&e.height){const f=r.get(u),{x:d,y:h}=it(f,i).positionAbsolute;s=f&&Se(d)&&Se(h)&&Se(f.width)&&Se(f.height)?[[d+e.width*i[0],h+e.height*i[1]],[d+f.width-e.width+e.width*i[0],h+f.height-e.height+e.height*i[1]]]:s}else a?.("005",Ve.error005()),s=o;else if(e.extent&&u&&e.extent!=="parent"){const f=r.get(u),{x:d,y:h}=it(f,i).positionAbsolute;s=[[e.extent[0][0]+d,e.extent[0][1]+h],[e.extent[1][0]+d,e.extent[1][1]+h]]}let l={x:0,y:0};if(u){const f=r.get(u);l=it(f,i).positionAbsolute}const c=s&&s!=="parent"?Su(t,s):t;return{position:{x:c.x-l.x,y:c.y-l.y},positionAbsolute:c}}function Wr({nodeId:e,dragItems:t,nodeInternals:r}){const n=t.map(i=>({...r.get(i.id),position:i.position,positionAbsolute:i.positionAbsolute}));return[e?n.find(i=>i.id===e):n[0],n]}const Rc=(e,t,r,n)=>{const i=t.querySelectorAll(e);if(!i||!i.length)return null;const a=Array.from(i),o=t.getBoundingClientRect(),s={x:o.width*n[0],y:o.height*n[1]};return a.map(u=>{const l=u.getBoundingClientRect();return{id:u.getAttribute("data-handleid"),position:u.getAttribute("data-handlepos"),x:(l.left-o.left-s.x)/r,y:(l.top-o.top-s.y)/r,...xu(u)}})};function Nt(e,t,r){return r===void 0?r:n=>{const i=t().nodeInternals.get(e);i&&r(n,{...i})}}function vu({id:e,store:t,unselect:r=!1,nodeRef:n}){const{addSelectedNodes:i,unselectNodesAndEdges:a,multiSelectionActive:o,nodeInternals:s,onError:u}=t.getState(),l=s.get(e);if(!l){u?.("012",Ve.error012(e));return}t.setState({nodesSelectionActive:!1}),l.selected?(r||l.selected&&o)&&(a({nodes:[l],edges:[]}),requestAnimationFrame(()=>n?.current?.blur())):i([e])}function rw(){const e=fe();return D.useCallback(({sourceEvent:r})=>{const{transform:n,snapGrid:i,snapToGrid:a}=e.getState(),o=r.touches?r.touches[0].clientX:r.clientX,s=r.touches?r.touches[0].clientY:r.clientY,u={x:(o-n[0])/n[2],y:(s-n[1])/n[2]};return{xSnapped:a?i[0]*Math.round(u.x/i[0]):u.x,ySnapped:a?i[1]*Math.round(u.y/i[1]):u.y,...u}},[])}function Zr(e){return(t,r,n)=>e?.(t,n)}function Uv({nodeRef:e,disabled:t=!1,noDragClassName:r,handleSelector:n,nodeId:i,isSelectable:a,selectNodesOnDrag:o}){const s=fe(),[u,l]=D.useState(!1),c=D.useRef([]),f=D.useRef({x:null,y:null}),d=D.useRef(0),h=D.useRef(null),_=D.useRef({x:0,y:0}),g=D.useRef(null),v=D.useRef(!1),p=D.useRef(!1),y=D.useRef(!1),b=rw();return D.useEffect(()=>{if(e?.current){const m=xe(e.current),E=({x:N,y:q})=>{const{nodeInternals:A,onNodeDrag:I,onSelectionDrag:O,updateNodePositions:k,nodeExtent:w,snapGrid:T,snapToGrid:R,nodeOrigin:z,onError:H}=s.getState();f.current={x:N,y:q};let M=!1,B={x:0,y:0,x2:0,y2:0};if(c.current.length>1&&w){const G=Er(c.current,z);B=zt(G)}if(c.current=c.current.map(G=>{const U={x:N-G.distance.x,y:q-G.distance.y};R&&(U.x=T[0]*Math.round(U.x/T[0]),U.y=T[1]*Math.round(U.y/T[1]));const C=[[w[0][0],w[0][1]],[w[1][0],w[1][1]]];c.current.length>1&&w&&!G.extent&&(C[0][0]=G.positionAbsolute.x-B.x+w[0][0],C[1][0]=G.positionAbsolute.x+(G.width??0)-B.x2+w[1][0],C[0][1]=G.positionAbsolute.y-B.y+w[0][1],C[1][1]=G.positionAbsolute.y+(G.height??0)-B.y2+w[1][1]);const P=Gv(G,U,A,C,z,H);return M=M||G.position.x!==P.position.x||G.position.y!==P.position.y,G.position=P.position,G.positionAbsolute=P.positionAbsolute,G}),!M)return;k(c.current,!0,!0),l(!0);const V=i?I:Zr(O);if(V&&g.current){const[G,U]=Wr({nodeId:i,dragItems:c.current,nodeInternals:A});V(g.current,G,U)}},x=()=>{if(!h.current)return;const[N,q]=hv(_.current,h.current);if(N!==0||q!==0){const{transform:A,panBy:I}=s.getState();f.current.x=(f.current.x??0)-N/A[2],f.current.y=(f.current.y??0)-q/A[2],I({x:N,y:q})&&E(f.current)}d.current=requestAnimationFrame(x)},S=N=>{const{nodeInternals:q,multiSelectionActive:A,nodesDraggable:I,unselectNodesAndEdges:O,onNodeDragStart:k,onSelectionDragStart:w}=s.getState();p.current=!0;const T=i?k:Zr(w);(!o||!a)&&!A&&i&&(q.get(i)?.selected||O()),i&&a&&o&&vu({id:i,store:s,nodeRef:e});const R=b(N);if(f.current=R,c.current=ew(q,I,R,i),T&&c.current){const[z,H]=Wr({nodeId:i,dragItems:c.current,nodeInternals:q});T(N.sourceEvent,z,H)}};if(t)m.on(".drag",null);else{const N=F_().on("start",q=>{const{domNode:A,nodeDragThreshold:I}=s.getState();I===0&&S(q),y.current=!1;const O=b(q);f.current=O,h.current=A?.getBoundingClientRect()||null,_.current=Je(q.sourceEvent,h.current)}).on("drag",q=>{const A=b(q),{autoPanOnNodeDrag:I,nodeDragThreshold:O}=s.getState();if(q.sourceEvent.type==="touchmove"&&q.sourceEvent.touches.length>1&&(y.current=!0),!y.current){if(!v.current&&p.current&&I&&(v.current=!0,x()),!p.current){const k=A.xSnapped-(f?.current?.x??0),w=A.ySnapped-(f?.current?.y??0);Math.sqrt(k*k+w*w)>O&&S(q)}(f.current.x!==A.xSnapped||f.current.y!==A.ySnapped)&&c.current&&p.current&&(g.current=q.sourceEvent,_.current=Je(q.sourceEvent,h.current),E(A))}}).on("end",q=>{if(!(!p.current||y.current)&&(l(!1),v.current=!1,p.current=!1,cancelAnimationFrame(d.current),c.current)){const{updateNodePositions:A,nodeInternals:I,onNodeDragStop:O,onSelectionDragStop:k}=s.getState(),w=i?O:Zr(k);if(A(c.current,!1,!1),w){const[T,R]=Wr({nodeId:i,dragItems:c.current,nodeInternals:I});w(q.sourceEvent,T,R)}}}).filter(q=>{const A=q.target;return!q.button&&(!r||!Cc(A,`.${r}`,e))&&(!n||Cc(A,n,e))});return m.call(N),()=>{m.on(".drag",null)}}}},[e,t,r,n,a,s,i,o,b]),u}function Kv(){const e=fe();return D.useCallback(r=>{const{nodeInternals:n,nodeExtent:i,updateNodePositions:a,getNodes:o,snapToGrid:s,snapGrid:u,onError:l,nodesDraggable:c}=e.getState(),f=o().filter(y=>y.selected&&(y.draggable||c&&typeof y.draggable>"u")),d=s?u[0]:5,h=s?u[1]:5,_=r.isShiftPressed?4:1,g=r.x*d*_,v=r.y*h*_,p=f.map(y=>{if(y.positionAbsolute){const b={x:y.positionAbsolute.x+g,y:y.positionAbsolute.y+v};s&&(b.x=u[0]*Math.round(b.x/u[0]),b.y=u[1]*Math.round(b.y/u[1]));const{positionAbsolute:m,position:E}=Gv(y,b,n,i,void 0,l);y.position=E,y.positionAbsolute=m}return y});a(p,!0,!1)},[])}const yt={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};var It=e=>{const t=({id:r,type:n,data:i,xPos:a,yPos:o,xPosOrigin:s,yPosOrigin:u,selected:l,onClick:c,onMouseEnter:f,onMouseMove:d,onMouseLeave:h,onContextMenu:_,onDoubleClick:g,style:v,className:p,isDraggable:y,isSelectable:b,isConnectable:m,isFocusable:E,selectNodesOnDrag:x,sourcePosition:S,targetPosition:N,hidden:q,resizeObserver:A,dragHandle:I,zIndex:O,isParent:k,noDragClassName:w,noPanClassName:T,initialized:R,disableKeyboardA11y:z,ariaLabel:H,rfId:M,hasHandleBounds:B})=>{const V=fe(),G=D.useRef(null),U=D.useRef(null),C=D.useRef(S),P=D.useRef(N),F=D.useRef(n),$=b||y||c||f||d||h,K=Kv(),W=Nt(r,V.getState,f),Z=Nt(r,V.getState,d),te=Nt(r,V.getState,h),ie=Nt(r,V.getState,_),re=Nt(r,V.getState,g),ee=j=>{const{nodeDragThreshold:Y}=V.getState();if(b&&(!x||!y||Y>0)&&vu({id:r,store:V,nodeRef:G}),c){const oe=V.getState().nodeInternals.get(r);oe&&c(j,{...oe})}},X=j=>{if(!lu(j)&&!z)if(yv.includes(j.key)&&b){const Y=j.key==="Escape";vu({id:r,store:V,unselect:Y,nodeRef:G})}else y&&l&&Object.prototype.hasOwnProperty.call(yt,j.key)&&(V.setState({ariaLiveMessage:`Moved selected node ${j.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~a}, y: ${~~o}`}),K({x:yt[j.key].x,y:yt[j.key].y,isShiftPressed:j.shiftKey}))};D.useEffect(()=>()=>{U.current&&(A?.unobserve(U.current),U.current=null)},[]),D.useEffect(()=>{if(G.current&&!q){const j=G.current;(!R||!B||U.current!==j)&&(U.current&&A?.unobserve(U.current),A?.observe(j),U.current=j)}},[q,R,B]),D.useEffect(()=>{const j=F.current!==n,Y=C.current!==S,oe=P.current!==N;G.current&&(j||Y||oe)&&(j&&(F.current=n),Y&&(C.current=S),oe&&(P.current=N),V.getState().updateNodeDimensions([{id:r,nodeElement:G.current,forceUpdate:!0}]))},[r,n,S,N]);const ue=Uv({nodeRef:G,disabled:q||!y,noDragClassName:w,handleSelector:I,nodeId:r,isSelectable:b,selectNodesOnDrag:x});return q?null:L.createElement("div",{className:pe(["react-flow__node",`react-flow__node-${n}`,{[T]:y},p,{selected:l,selectable:b,parent:k,dragging:ue}]),ref:G,style:{zIndex:O,transform:`translate(${s}px,${u}px)`,pointerEvents:$?"all":"none",visibility:R?"visible":"hidden",...v},"data-id":r,"data-testid":`rf__node-${r}`,onMouseEnter:W,onMouseMove:Z,onMouseLeave:te,onContextMenu:ie,onClick:ee,onDoubleClick:re,onKeyDown:E?X:void 0,tabIndex:E?0:void 0,role:E?"button":void 0,"aria-describedby":z?void 0:`${Lv}-${M}`,"aria-label":H},L.createElement(v0,{value:r},L.createElement(e,{id:r,data:i,type:n,xPos:a,yPos:o,selected:l,isConnectable:m,sourcePosition:S,targetPosition:N,dragging:ue,dragHandle:I,zIndex:O})))};return t.displayName="NodeWrapper",D.memo(t)};const nw=e=>{const t=e.getNodes().filter(r=>r.selected);return{...Er(t,e.nodeOrigin),transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`,userSelectionActive:e.userSelectionActive}};function iw({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:r}){const n=fe(),{width:i,height:a,x:o,y:s,transformString:u,userSelectionActive:l}=ne(nw,he),c=Kv(),f=D.useRef(null);if(D.useEffect(()=>{r||f.current?.focus({preventScroll:!0})},[r]),Uv({nodeRef:f}),l||!i||!a)return null;const d=e?_=>{const g=n.getState().getNodes().filter(v=>v.selected);e(_,g)}:void 0,h=_=>{Object.prototype.hasOwnProperty.call(yt,_.key)&&c({x:yt[_.key].x,y:yt[_.key].y,isShiftPressed:_.shiftKey})};return L.createElement("div",{className:pe(["react-flow__nodesselection","react-flow__container",t]),style:{transform:u}},L.createElement("div",{ref:f,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:r?void 0:-1,onKeyDown:r?void 0:h,style:{width:i,height:a,top:s,left:o}}))}var aw=D.memo(iw);const ow=e=>e.nodesSelectionActive,jv=({children:e,onPaneClick:t,onPaneMouseEnter:r,onPaneMouseMove:n,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:o,deleteKeyCode:s,onMove:u,onMoveStart:l,onMoveEnd:c,selectionKeyCode:f,selectionOnDrag:d,selectionMode:h,onSelectionStart:_,onSelectionEnd:g,multiSelectionKeyCode:v,panActivationKeyCode:p,zoomActivationKeyCode:y,elementsSelectable:b,zoomOnScroll:m,zoomOnPinch:E,panOnScroll:x,panOnScrollSpeed:S,panOnScrollMode:N,zoomOnDoubleClick:q,panOnDrag:A,defaultViewport:I,translateExtent:O,minZoom:k,maxZoom:w,preventScrolling:T,onSelectionContextMenu:R,noWheelClassName:z,noPanClassName:H,disableKeyboardA11y:M})=>{const B=ne(ow),V=Ht(f),G=Ht(p),U=G||A,C=G||x,P=V||d&&U!==!0;return G0({deleteKeyCode:s,multiSelectionKeyCode:v}),L.createElement(Y0,{onMove:u,onMoveStart:l,onMoveEnd:c,onPaneContextMenu:a,elementsSelectable:b,zoomOnScroll:m,zoomOnPinch:E,panOnScroll:C,panOnScrollSpeed:S,panOnScrollMode:N,zoomOnDoubleClick:q,panOnDrag:!V&&U,defaultViewport:I,translateExtent:O,minZoom:k,maxZoom:w,zoomActivationKeyCode:y,preventScrolling:T,noWheelClassName:z,noPanClassName:H},L.createElement($v,{onSelectionStart:_,onSelectionEnd:g,onPaneClick:t,onPaneMouseEnter:r,onPaneMouseMove:n,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:o,panOnDrag:U,isSelecting:!!P,selectionMode:h},e,B&&L.createElement(aw,{onSelectionContextMenu:R,noPanClassName:H,disableKeyboardA11y:M})))};jv.displayName="FlowRenderer";var sw=D.memo(jv);function uw(e){return ne(D.useCallback(r=>e?Sv(r.nodeInternals,{x:0,y:0,width:r.width,height:r.height},r.transform,!0):r.getNodes(),[e]))}function cw(e){const t={input:It(e.input||Pv),default:It(e.default||pu),output:It(e.output||Ov),group:It(e.group||Iu)},r={},n=Object.keys(e).filter(i=>!["input","default","output","group"].includes(i)).reduce((i,a)=>(i[a]=It(e[a]||pu),i),r);return{...t,...n}}const lw=({x:e,y:t,width:r,height:n,origin:i})=>!r||!n?{x:e,y:t}:i[0]<0||i[1]<0||i[0]>1||i[1]>1?{x:e,y:t}:{x:e-r*i[0],y:t-n*i[1]},fw=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,updateNodeDimensions:e.updateNodeDimensions,onError:e.onError}),Yv=e=>{const{nodesDraggable:t,nodesConnectable:r,nodesFocusable:n,elementsSelectable:i,updateNodeDimensions:a,onError:o}=ne(fw,he),s=uw(e.onlyRenderVisibleElements),u=D.useRef(),l=D.useMemo(()=>{if(typeof ResizeObserver>"u")return null;const c=new ResizeObserver(f=>{const d=f.map(h=>({id:h.target.getAttribute("data-id"),nodeElement:h.target,forceUpdate:!0}));a(d)});return u.current=c,c},[]);return D.useEffect(()=>()=>{u?.current?.disconnect()},[]),L.createElement("div",{className:"react-flow__nodes",style:Mu},s.map(c=>{let f=c.type||"default";e.nodeTypes[f]||(o?.("003",Ve.error003(f)),f="default");const d=e.nodeTypes[f]||e.nodeTypes.default,h=!!(c.draggable||t&&typeof c.draggable>"u"),_=!!(c.selectable||i&&typeof c.selectable>"u"),g=!!(c.connectable||r&&typeof c.connectable>"u"),v=!!(c.focusable||n&&typeof c.focusable>"u"),p=e.nodeExtent?Su(c.positionAbsolute,e.nodeExtent):c.positionAbsolute,y=p?.x??0,b=p?.y??0,m=lw({x:y,y:b,width:c.width??0,height:c.height??0,origin:e.nodeOrigin});return L.createElement(d,{key:c.id,id:c.id,className:c.className,style:c.style,type:f,data:c.data,sourcePosition:c.sourcePosition||J.Bottom,targetPosition:c.targetPosition||J.Top,hidden:c.hidden,xPos:y,yPos:b,xPosOrigin:m.x,yPosOrigin:m.y,selectNodesOnDrag:e.selectNodesOnDrag,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,selected:!!c.selected,isDraggable:h,isSelectable:_,isConnectable:g,isFocusable:v,resizeObserver:l,dragHandle:c.dragHandle,zIndex:c[se]?.z??0,isParent:!!c[se]?.isParent,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,initialized:!!c.width&&!!c.height,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,ariaLabel:c.ariaLabel,hasHandleBounds:!!c[se]?.handleBounds})}))};Yv.displayName="NodeRenderer";var dw=D.memo(Yv);const hw=(e,t,r)=>r===J.Left?e-t:r===J.Right?e+t:e,pw=(e,t,r)=>r===J.Top?e-t:r===J.Bottom?e+t:e,Ac="react-flow__edgeupdater",Nc=({position:e,centerX:t,centerY:r,radius:n=10,onMouseDown:i,onMouseEnter:a,onMouseOut:o,type:s})=>L.createElement("circle",{onMouseDown:i,onMouseEnter:a,onMouseOut:o,className:pe([Ac,`${Ac}-${s}`]),cx:hw(t,n,e),cy:pw(r,n,e),r:n,stroke:"transparent",fill:"transparent"}),vw=()=>!0;var pt=e=>{const t=({id:r,className:n,type:i,data:a,onClick:o,onEdgeDoubleClick:s,selected:u,animated:l,label:c,labelStyle:f,labelShowBg:d,labelBgStyle:h,labelBgPadding:_,labelBgBorderRadius:g,style:v,source:p,target:y,sourceX:b,sourceY:m,targetX:E,targetY:x,sourcePosition:S,targetPosition:N,elementsSelectable:q,hidden:A,sourceHandleId:I,targetHandleId:O,onContextMenu:k,onMouseEnter:w,onMouseMove:T,onMouseLeave:R,reconnectRadius:z,onReconnect:H,onReconnectStart:M,onReconnectEnd:B,markerEnd:V,markerStart:G,rfId:U,ariaLabel:C,isFocusable:P,isReconnectable:F,pathOptions:$,interactionWidth:K,disableKeyboardA11y:W})=>{const Z=D.useRef(null),[te,ie]=D.useState(!1),[re,ee]=D.useState(!1),X=fe(),ue=D.useMemo(()=>`url('#${du(G,U)}')`,[G,U]),j=D.useMemo(()=>`url('#${du(V,U)}')`,[V,U]);if(A)return null;const Y=de=>{const{edges:we,addSelectedEdges:ve,unselectNodesAndEdges:ye,multiSelectionActive:lt}=X.getState(),Oe=we.find(et=>et.id===r);Oe&&(q&&(X.setState({nodesSelectionActive:!1}),Oe.selected&<?(ye({nodes:[],edges:[Oe]}),Z.current?.blur()):ve([r])),o&&o(de,Oe))},oe=At(r,X.getState,s),Ce=At(r,X.getState,k),Pe=At(r,X.getState,w),ge=At(r,X.getState,T),ce=At(r,X.getState,R),me=(de,we)=>{if(de.button!==0)return;const{edges:ve,isValidConnection:ye}=X.getState(),lt=we?y:p,Oe=(we?O:I)||null,et=we?"target":"source",Br=ye||vw,Hr=we,qt=ve.find(tt=>tt.id===r);ee(!0),M?.(de,qt,et);const $r=tt=>{ee(!1),B?.(tt,qt,et)};Nv({event:de,handleId:Oe,nodeId:lt,onConnect:tt=>H?.(qt,tt),isTarget:Hr,getState:X.getState,setState:X.setState,isValidConnection:Br,edgeUpdaterType:et,onReconnectEnd:$r})},Re=de=>me(de,!0),Le=de=>me(de,!1),ke=()=>ie(!0),be=()=>ie(!1),Fe=!q&&!o,Ye=de=>{if(!W&&yv.includes(de.key)&&q){const{unselectNodesAndEdges:we,addSelectedEdges:ve,edges:ye}=X.getState();de.key==="Escape"?(Z.current?.blur(),we({edges:[ye.find(Oe=>Oe.id===r)]})):ve([r])}};return L.createElement("g",{className:pe(["react-flow__edge",`react-flow__edge-${i}`,n,{selected:u,animated:l,inactive:Fe,updating:te}]),onClick:Y,onDoubleClick:oe,onContextMenu:Ce,onMouseEnter:Pe,onMouseMove:ge,onMouseLeave:ce,onKeyDown:P?Ye:void 0,tabIndex:P?0:void 0,role:P?"button":"img","data-testid":`rf__edge-${r}`,"aria-label":C===null?void 0:C||`Edge from ${p} to ${y}`,"aria-describedby":P?`${Fv}-${U}`:void 0,ref:Z},!re&&L.createElement(e,{id:r,source:p,target:y,selected:u,animated:l,label:c,labelStyle:f,labelShowBg:d,labelBgStyle:h,labelBgPadding:_,labelBgBorderRadius:g,data:a,style:v,sourceX:b,sourceY:m,targetX:E,targetY:x,sourcePosition:S,targetPosition:N,sourceHandleId:I,targetHandleId:O,markerStart:ue,markerEnd:j,pathOptions:$,interactionWidth:K}),F&&L.createElement(L.Fragment,null,(F==="source"||F===!0)&&L.createElement(Nc,{position:S,centerX:b,centerY:m,radius:z,onMouseDown:Re,onMouseEnter:ke,onMouseOut:be,type:"source"}),(F==="target"||F===!0)&&L.createElement(Nc,{position:N,centerX:E,centerY:x,radius:z,onMouseDown:Le,onMouseEnter:ke,onMouseOut:be,type:"target"})))};return t.displayName="EdgeWrapper",D.memo(t)};function gw(e){const t={default:pt(e.default||dr),straight:pt(e.bezier||Ru),step:pt(e.step||Cu),smoothstep:pt(e.step||wr),simplebezier:pt(e.simplebezier||qu)},r={},n=Object.keys(e).filter(i=>!["default","bezier"].includes(i)).reduce((i,a)=>(i[a]=pt(e[a]||dr),i),r);return{...t,...n}}function Ic(e,t,r=null){const n=(r?.x||0)+t.x,i=(r?.y||0)+t.y,a=r?.width||t.width,o=r?.height||t.height;switch(e){case J.Top:return{x:n+a/2,y:i};case J.Right:return{x:n+a,y:i+o/2};case J.Bottom:return{x:n+a/2,y:i+o};case J.Left:return{x:n,y:i+o/2}}}function Tc(e,t){return e?e.length===1||!t?e[0]:t&&e.find(r=>r.id===t)||null:null}const yw=(e,t,r,n,i,a)=>{const o=Ic(r,e,t),s=Ic(a,n,i);return{sourceX:o.x,sourceY:o.y,targetX:s.x,targetY:s.y}};function mw({sourcePos:e,targetPos:t,sourceWidth:r,sourceHeight:n,targetWidth:i,targetHeight:a,width:o,height:s,transform:u}){const l={x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x+r,t.x+i),y2:Math.max(e.y+n,t.y+a)};l.x===l.x2&&(l.x2+=1),l.y===l.y2&&(l.y2+=1);const c=zt({x:(0-u[0])/u[2],y:(0-u[1])/u[2],width:o/u[2],height:s/u[2]}),f=Math.max(0,Math.min(c.x2,l.x2)-Math.max(c.x,l.x)),d=Math.max(0,Math.min(c.y2,l.y2)-Math.max(c.y,l.y));return Math.ceil(f*d)>0}function Mc(e){const t=e?.[se]?.handleBounds||null,r=t&&e?.width&&e?.height&&typeof e?.positionAbsolute?.x<"u"&&typeof e?.positionAbsolute?.y<"u";return[{x:e?.positionAbsolute?.x||0,y:e?.positionAbsolute?.y||0,width:e?.width||0,height:e?.height||0},t,!!r]}const _w=[{level:0,isMaxLevel:!0,edges:[]}];function bw(e,t,r=!1){let n=-1;const i=e.reduce((o,s)=>{const u=Se(s.zIndex);let l=u?s.zIndex:0;if(r){const c=t.get(s.target),f=t.get(s.source),d=s.selected||c?.selected||f?.selected,h=Math.max(f?.[se]?.z||0,c?.[se]?.z||0,1e3);l=(u?s.zIndex:0)+(d?h:0)}return o[l]?o[l].push(s):o[l]=[s],n=l>n?l:n,o},{}),a=Object.entries(i).map(([o,s])=>{const u=+o;return{edges:s,level:u,isMaxLevel:u===n}});return a.length===0?_w:a}function ww(e,t,r){const n=ne(D.useCallback(i=>e?i.edges.filter(a=>{const o=t.get(a.source),s=t.get(a.target);return o?.width&&o?.height&&s?.width&&s?.height&&mw({sourcePos:o.positionAbsolute||{x:0,y:0},targetPos:s.positionAbsolute||{x:0,y:0},sourceWidth:o.width,sourceHeight:o.height,targetWidth:s.width,targetHeight:s.height,width:i.width,height:i.height,transform:i.transform})}):i.edges,[e,t]));return bw(n,t,r)}const Ew=({color:e="none",strokeWidth:t=1})=>L.createElement("polyline",{style:{stroke:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),xw=({color:e="none",strokeWidth:t=1})=>L.createElement("polyline",{style:{stroke:e,fill:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),Pc={[fr.Arrow]:Ew,[fr.ArrowClosed]:xw};function Sw(e){const t=fe();return D.useMemo(()=>Object.prototype.hasOwnProperty.call(Pc,e)?Pc[e]:(t.getState().onError?.("009",Ve.error009(e)),null),[e])}const qw=({id:e,type:t,color:r,width:n=12.5,height:i=12.5,markerUnits:a="strokeWidth",strokeWidth:o,orient:s="auto-start-reverse"})=>{const u=Sw(t);return u?L.createElement("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${n}`,markerHeight:`${i}`,viewBox:"-10 -10 20 20",markerUnits:a,orient:s,refX:"0",refY:"0"},L.createElement(u,{color:r,strokeWidth:o})):null},Cw=({defaultColor:e,rfId:t})=>r=>{const n=[];return r.edges.reduce((i,a)=>([a.markerStart,a.markerEnd].forEach(o=>{if(o&&typeof o=="object"){const s=du(o,t);n.includes(s)||(i.push({id:s,color:o.color||e,...o}),n.push(s))}}),i),[]).sort((i,a)=>i.id.localeCompare(a.id))},Wv=({defaultColor:e,rfId:t})=>{const r=ne(D.useCallback(Cw({defaultColor:e,rfId:t}),[e,t]),(n,i)=>!(n.length!==i.length||n.some((a,o)=>a.id!==i[o].id)));return L.createElement("defs",null,r.map(n=>L.createElement(qw,{id:n.id,key:n.id,type:n.type,color:n.color,width:n.width,height:n.height,markerUnits:n.markerUnits,strokeWidth:n.strokeWidth,orient:n.orient})))};Wv.displayName="MarkerDefinitions";var Rw=D.memo(Wv);const Aw=e=>({nodesConnectable:e.nodesConnectable,edgesFocusable:e.edgesFocusable,edgesUpdatable:e.edgesUpdatable,elementsSelectable:e.elementsSelectable,width:e.width,height:e.height,connectionMode:e.connectionMode,nodeInternals:e.nodeInternals,onError:e.onError}),Zv=({defaultMarkerColor:e,onlyRenderVisibleElements:t,elevateEdgesOnSelect:r,rfId:n,edgeTypes:i,noPanClassName:a,onEdgeContextMenu:o,onEdgeMouseEnter:s,onEdgeMouseMove:u,onEdgeMouseLeave:l,onEdgeClick:c,onEdgeDoubleClick:f,onReconnect:d,onReconnectStart:h,onReconnectEnd:_,reconnectRadius:g,children:v,disableKeyboardA11y:p})=>{const{edgesFocusable:y,edgesUpdatable:b,elementsSelectable:m,width:E,height:x,connectionMode:S,nodeInternals:N,onError:q}=ne(Aw,he),A=ww(t,N,r);return E?L.createElement(L.Fragment,null,A.map(({level:I,edges:O,isMaxLevel:k})=>L.createElement("svg",{key:I,style:{zIndex:I},width:E,height:x,className:"react-flow__edges react-flow__container"},k&&L.createElement(Rw,{defaultColor:e,rfId:n}),L.createElement("g",null,O.map(w=>{const[T,R,z]=Mc(N.get(w.source)),[H,M,B]=Mc(N.get(w.target));if(!z||!B)return null;let V=w.type||"default";i[V]||(q?.("011",Ve.error011(V)),V="default");const G=i[V]||i.default,U=S===ot.Strict?M.target:(M.target??[]).concat(M.source??[]),C=Tc(R.source,w.sourceHandle),P=Tc(U,w.targetHandle),F=C?.position||J.Bottom,$=P?.position||J.Top,K=!!(w.focusable||y&&typeof w.focusable>"u"),W=w.reconnectable||w.updatable,Z=typeof d<"u"&&(W||b&&typeof W>"u");if(!C||!P)return q?.("008",Ve.error008(C,w)),null;const{sourceX:te,sourceY:ie,targetX:re,targetY:ee}=yw(T,C,F,H,P,$);return L.createElement(G,{key:w.id,id:w.id,className:pe([w.className,a]),type:V,data:w.data,selected:!!w.selected,animated:!!w.animated,hidden:!!w.hidden,label:w.label,labelStyle:w.labelStyle,labelShowBg:w.labelShowBg,labelBgStyle:w.labelBgStyle,labelBgPadding:w.labelBgPadding,labelBgBorderRadius:w.labelBgBorderRadius,style:w.style,source:w.source,target:w.target,sourceHandleId:w.sourceHandle,targetHandleId:w.targetHandle,markerEnd:w.markerEnd,markerStart:w.markerStart,sourceX:te,sourceY:ie,targetX:re,targetY:ee,sourcePosition:F,targetPosition:$,elementsSelectable:m,onContextMenu:o,onMouseEnter:s,onMouseMove:u,onMouseLeave:l,onClick:c,onEdgeDoubleClick:f,onReconnect:d,onReconnectStart:h,onReconnectEnd:_,reconnectRadius:g,rfId:n,ariaLabel:w.ariaLabel,isFocusable:K,isReconnectable:Z,pathOptions:"pathOptions"in w?w.pathOptions:void 0,interactionWidth:w.interactionWidth,disableKeyboardA11y:p})})))),v):null};Zv.displayName="EdgeRenderer";var Nw=D.memo(Zv);const Iw=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function Tw({children:e}){const t=ne(Iw);return L.createElement("div",{className:"react-flow__viewport react-flow__container",style:{transform:t}},e)}function Mw(e){const t=Tu(),r=D.useRef(!1);D.useEffect(()=>{!r.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),r.current=!0)},[e,t.viewportInitialized])}const Pw={[J.Left]:J.Right,[J.Right]:J.Left,[J.Top]:J.Bottom,[J.Bottom]:J.Top},Xv=({nodeId:e,handleType:t,style:r,type:n=Xe.Bezier,CustomComponent:i,connectionStatus:a})=>{const{fromNode:o,handleId:s,toX:u,toY:l,connectionMode:c}=ne(D.useCallback(x=>({fromNode:x.nodeInternals.get(e),handleId:x.connectionHandleId,toX:(x.connectionPosition.x-x.transform[0])/x.transform[2],toY:(x.connectionPosition.y-x.transform[1])/x.transform[2],connectionMode:x.connectionMode}),[e]),he),f=o?.[se]?.handleBounds;let d=f?.[t];if(c===ot.Loose&&(d=d||f?.[t==="source"?"target":"source"]),!o||!d)return null;const h=s?d.find(x=>x.id===s):d[0],_=h?h.x+h.width/2:(o.width??0)/2,g=h?h.y+h.height/2:o.height??0,v=(o.positionAbsolute?.x??0)+_,p=(o.positionAbsolute?.y??0)+g,y=h?.position,b=y?Pw[y]:null;if(!y||!b)return null;if(i)return L.createElement(i,{connectionLineType:n,connectionLineStyle:r,fromNode:o,fromHandle:h,fromX:v,fromY:p,toX:u,toY:l,fromPosition:y,toPosition:b,connectionStatus:a});let m="";const E={sourceX:v,sourceY:p,sourcePosition:y,targetX:u,targetY:l,targetPosition:b};return n===Xe.Bezier?[m]=Ev(E):n===Xe.Step?[m]=fu({...E,borderRadius:0}):n===Xe.SmoothStep?[m]=fu(E):n===Xe.SimpleBezier?[m]=wv(E):m=`M${v},${p} ${u},${l}`,L.createElement("path",{d:m,fill:"none",className:"react-flow__connection-path",style:r})};Xv.displayName="ConnectionLine";const kw=e=>({nodeId:e.connectionNodeId,handleType:e.connectionHandleType,nodesConnectable:e.nodesConnectable,connectionStatus:e.connectionStatus,width:e.width,height:e.height});function Ow({containerStyle:e,style:t,type:r,component:n}){const{nodeId:i,handleType:a,nodesConnectable:o,width:s,height:u,connectionStatus:l}=ne(kw,he);return!(i&&a&&s&&o)?null:L.createElement("svg",{style:e,width:s,height:u,className:"react-flow__edges react-flow__connectionline react-flow__container"},L.createElement("g",{className:pe(["react-flow__connection",l])},L.createElement(Xv,{nodeId:i,handleType:a,style:t,type:r,CustomComponent:n,connectionStatus:l})))}function kc(e,t){return D.useRef(null),fe(),D.useMemo(()=>t(e),[e])}const Jv=({nodeTypes:e,edgeTypes:t,onMove:r,onMoveStart:n,onMoveEnd:i,onInit:a,onNodeClick:o,onEdgeClick:s,onNodeDoubleClick:u,onEdgeDoubleClick:l,onNodeMouseEnter:c,onNodeMouseMove:f,onNodeMouseLeave:d,onNodeContextMenu:h,onSelectionContextMenu:_,onSelectionStart:g,onSelectionEnd:v,connectionLineType:p,connectionLineStyle:y,connectionLineComponent:b,connectionLineContainerStyle:m,selectionKeyCode:E,selectionOnDrag:x,selectionMode:S,multiSelectionKeyCode:N,panActivationKeyCode:q,zoomActivationKeyCode:A,deleteKeyCode:I,onlyRenderVisibleElements:O,elementsSelectable:k,selectNodesOnDrag:w,defaultViewport:T,translateExtent:R,minZoom:z,maxZoom:H,preventScrolling:M,defaultMarkerColor:B,zoomOnScroll:V,zoomOnPinch:G,panOnScroll:U,panOnScrollSpeed:C,panOnScrollMode:P,zoomOnDoubleClick:F,panOnDrag:$,onPaneClick:K,onPaneMouseEnter:W,onPaneMouseMove:Z,onPaneMouseLeave:te,onPaneScroll:ie,onPaneContextMenu:re,onEdgeContextMenu:ee,onEdgeMouseEnter:X,onEdgeMouseMove:ue,onEdgeMouseLeave:j,onReconnect:Y,onReconnectStart:oe,onReconnectEnd:Ce,reconnectRadius:Pe,noDragClassName:ge,noWheelClassName:ce,noPanClassName:me,elevateEdgesOnSelect:Re,disableKeyboardA11y:Le,nodeOrigin:ke,nodeExtent:be,rfId:Fe})=>{const Ye=kc(e,cw),de=kc(t,gw);return Mw(a),L.createElement(sw,{onPaneClick:K,onPaneMouseEnter:W,onPaneMouseMove:Z,onPaneMouseLeave:te,onPaneContextMenu:re,onPaneScroll:ie,deleteKeyCode:I,selectionKeyCode:E,selectionOnDrag:x,selectionMode:S,onSelectionStart:g,onSelectionEnd:v,multiSelectionKeyCode:N,panActivationKeyCode:q,zoomActivationKeyCode:A,elementsSelectable:k,onMove:r,onMoveStart:n,onMoveEnd:i,zoomOnScroll:V,zoomOnPinch:G,zoomOnDoubleClick:F,panOnScroll:U,panOnScrollSpeed:C,panOnScrollMode:P,panOnDrag:$,defaultViewport:T,translateExtent:R,minZoom:z,maxZoom:H,onSelectionContextMenu:_,preventScrolling:M,noDragClassName:ge,noWheelClassName:ce,noPanClassName:me,disableKeyboardA11y:Le},L.createElement(Tw,null,L.createElement(Nw,{edgeTypes:de,onEdgeClick:s,onEdgeDoubleClick:l,onlyRenderVisibleElements:O,onEdgeContextMenu:ee,onEdgeMouseEnter:X,onEdgeMouseMove:ue,onEdgeMouseLeave:j,onReconnect:Y,onReconnectStart:oe,onReconnectEnd:Ce,reconnectRadius:Pe,defaultMarkerColor:B,noPanClassName:me,elevateEdgesOnSelect:!!Re,disableKeyboardA11y:Le,rfId:Fe},L.createElement(Ow,{style:y,type:p,component:b,containerStyle:m})),L.createElement("div",{className:"react-flow__edgelabel-renderer"}),L.createElement(dw,{nodeTypes:Ye,onNodeClick:o,onNodeDoubleClick:u,onNodeMouseEnter:c,onNodeMouseMove:f,onNodeMouseLeave:d,onNodeContextMenu:h,selectNodesOnDrag:w,onlyRenderVisibleElements:O,noPanClassName:me,noDragClassName:ge,disableKeyboardA11y:Le,nodeOrigin:ke,nodeExtent:be,rfId:Fe})))};Jv.displayName="GraphView";var Dw=D.memo(Jv);const gu=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],We={rfId:"1",width:0,height:0,transform:[0,0,1],nodeInternals:new Map,edges:[],onNodesChange:null,onEdgesChange:null,hasDefaultNodes:!1,hasDefaultEdges:!1,d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:gu,nodeExtent:gu,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionStatus:null,connectionMode:ot.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:[0,0],nodeDragThreshold:0,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesUpdatable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,fitViewOnInit:!1,fitViewOnInitDone:!1,fitViewOnInitOptions:void 0,onSelectionChange:[],multiSelectionActive:!1,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,connectionRadius:20,onError:c0,isValidConnection:void 0},Lw=()=>Zy((e,t)=>({...We,setNodes:r=>{const{nodeInternals:n,nodeOrigin:i,elevateNodesOnSelect:a}=t();e({nodeInternals:jr(r,n,i,a)})},getNodes:()=>Array.from(t().nodeInternals.values()),setEdges:r=>{const{defaultEdgeOptions:n={}}=t();e({edges:r.map(i=>({...n,...i}))})},setDefaultNodesAndEdges:(r,n)=>{const i=typeof r<"u",a=typeof n<"u",o=i?jr(r,new Map,t().nodeOrigin,t().elevateNodesOnSelect):new Map;e({nodeInternals:o,edges:a?n:[],hasDefaultNodes:i,hasDefaultEdges:a})},updateNodeDimensions:r=>{const{onNodesChange:n,nodeInternals:i,fitViewOnInit:a,fitViewOnInitDone:o,fitViewOnInitOptions:s,domNode:u,nodeOrigin:l}=t(),c=u?.querySelector(".react-flow__viewport");if(!c)return;const f=window.getComputedStyle(c),{m22:d}=new window.DOMMatrixReadOnly(f.transform),h=r.reduce((g,v)=>{const p=i.get(v.id);if(p?.hidden)i.set(p.id,{...p,[se]:{...p[se],handleBounds:void 0}});else if(p){const y=xu(v.nodeElement);y.width&&y.height&&(p.width!==y.width||p.height!==y.height||v.forceUpdate)&&(i.set(p.id,{...p,[se]:{...p[se],handleBounds:{source:Rc(".source",v.nodeElement,d,l),target:Rc(".target",v.nodeElement,d,l)}},...y}),g.push({id:p.id,type:"dimensions",dimensions:y}))}return g},[]);Bv(i,l);const _=o||a&&!o&&Hv(t,{initial:!0,...s});e({nodeInternals:new Map(i),fitViewOnInitDone:_}),h?.length>0&&n?.(h)},updateNodePositions:(r,n=!0,i=!1)=>{const{triggerNodeChanges:a}=t(),o=r.map(s=>{const u={id:s.id,type:"position",dragging:i};return n&&(u.positionAbsolute=s.positionAbsolute,u.position=s.position),u});a(o)},triggerNodeChanges:r=>{const{onNodesChange:n,nodeInternals:i,hasDefaultNodes:a,nodeOrigin:o,getNodes:s,elevateNodesOnSelect:u}=t();if(r?.length){if(a){const l=J0(r,s()),c=jr(l,i,o,u);e({nodeInternals:c})}n?.(r)}},addSelectedNodes:r=>{const{multiSelectionActive:n,edges:i,getNodes:a}=t();let o,s=null;n?o=r.map(u=>Ze(u,!0)):(o=vt(a(),r),s=vt(i,[])),er({changedNodes:o,changedEdges:s,get:t,set:e})},addSelectedEdges:r=>{const{multiSelectionActive:n,edges:i,getNodes:a}=t();let o,s=null;n?o=r.map(u=>Ze(u,!0)):(o=vt(i,r),s=vt(a(),[])),er({changedNodes:s,changedEdges:o,get:t,set:e})},unselectNodesAndEdges:({nodes:r,edges:n}={})=>{const{edges:i,getNodes:a}=t(),o=r||a(),s=n||i,u=o.map(c=>(c.selected=!1,Ze(c.id,!1))),l=s.map(c=>Ze(c.id,!1));er({changedNodes:u,changedEdges:l,get:t,set:e})},setMinZoom:r=>{const{d3Zoom:n,maxZoom:i}=t();n?.scaleExtent([r,i]),e({minZoom:r})},setMaxZoom:r=>{const{d3Zoom:n,minZoom:i}=t();n?.scaleExtent([i,r]),e({maxZoom:r})},setTranslateExtent:r=>{t().d3Zoom?.translateExtent(r),e({translateExtent:r})},resetSelectedElements:()=>{const{edges:r,getNodes:n}=t(),a=n().filter(s=>s.selected).map(s=>Ze(s.id,!1)),o=r.filter(s=>s.selected).map(s=>Ze(s.id,!1));er({changedNodes:a,changedEdges:o,get:t,set:e})},setNodeExtent:r=>{const{nodeInternals:n}=t();n.forEach(i=>{i.positionAbsolute=Su(i.position,r)}),e({nodeExtent:r,nodeInternals:new Map(n)})},panBy:r=>{const{transform:n,width:i,height:a,d3Zoom:o,d3Selection:s,translateExtent:u}=t();if(!o||!s||!r.x&&!r.y)return!1;const l=He.translate(n[0]+r.x,n[1]+r.y).scale(n[2]),c=[[0,0],[i,a]],f=o?.constrain()(l,c,u);return o.transform(s,f),n[0]!==f.x||n[1]!==f.y||n[2]!==f.k},cancelConnection:()=>e({connectionNodeId:We.connectionNodeId,connectionHandleId:We.connectionHandleId,connectionHandleType:We.connectionHandleType,connectionStatus:We.connectionStatus,connectionStartHandle:We.connectionStartHandle,connectionEndHandle:We.connectionEndHandle}),reset:()=>e({...We})}),Object.is),Qv=({children:e})=>{const t=D.useRef(null);return t.current||(t.current=Lw()),L.createElement(r0,{value:t.current},e)};Qv.displayName="ReactFlowProvider";const eg=({children:e})=>D.useContext(br)?L.createElement(L.Fragment,null,e):L.createElement(Qv,null,e);eg.displayName="ReactFlowWrapper";const Fw={input:Pv,default:pu,output:Ov,group:Iu},zw={default:dr,straight:Ru,step:Cu,smoothstep:wr,simplebezier:qu},Bw=[0,0],Hw=[15,15],$w={x:0,y:0,zoom:1},Vw={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0},Gw=D.forwardRef(({nodes:e,edges:t,defaultNodes:r,defaultEdges:n,className:i,nodeTypes:a=Fw,edgeTypes:o=zw,onNodeClick:s,onEdgeClick:u,onInit:l,onMove:c,onMoveStart:f,onMoveEnd:d,onConnect:h,onConnectStart:_,onConnectEnd:g,onClickConnectStart:v,onClickConnectEnd:p,onNodeMouseEnter:y,onNodeMouseMove:b,onNodeMouseLeave:m,onNodeContextMenu:E,onNodeDoubleClick:x,onNodeDragStart:S,onNodeDrag:N,onNodeDragStop:q,onNodesDelete:A,onEdgesDelete:I,onSelectionChange:O,onSelectionDragStart:k,onSelectionDrag:w,onSelectionDragStop:T,onSelectionContextMenu:R,onSelectionStart:z,onSelectionEnd:H,connectionMode:M=ot.Strict,connectionLineType:B=Xe.Bezier,connectionLineStyle:V,connectionLineComponent:G,connectionLineContainerStyle:U,deleteKeyCode:C="Backspace",selectionKeyCode:P="Shift",selectionOnDrag:F=!1,selectionMode:$=Bt.Full,panActivationKeyCode:K="Space",multiSelectionKeyCode:W=lr()?"Meta":"Control",zoomActivationKeyCode:Z=lr()?"Meta":"Control",snapToGrid:te=!1,snapGrid:ie=Hw,onlyRenderVisibleElements:re=!1,selectNodesOnDrag:ee=!0,nodesDraggable:X,nodesConnectable:ue,nodesFocusable:j,nodeOrigin:Y=Bw,edgesFocusable:oe,edgesUpdatable:Ce,elementsSelectable:Pe,defaultViewport:ge=$w,minZoom:ce=.5,maxZoom:me=2,translateExtent:Re=gu,preventScrolling:Le=!0,nodeExtent:ke,defaultMarkerColor:be="#b1b1b7",zoomOnScroll:Fe=!0,zoomOnPinch:Ye=!0,panOnScroll:de=!1,panOnScrollSpeed:we=.5,panOnScrollMode:ve=nt.Free,zoomOnDoubleClick:ye=!0,panOnDrag:lt=!0,onPaneClick:Oe,onPaneMouseEnter:et,onPaneMouseMove:Br,onPaneMouseLeave:Hr,onPaneScroll:qt,onPaneContextMenu:$r,children:Xu,onEdgeContextMenu:tt,onEdgeDoubleClick:ny,onEdgeMouseEnter:iy,onEdgeMouseMove:ay,onEdgeMouseLeave:oy,onEdgeUpdate:sy,onEdgeUpdateStart:uy,onEdgeUpdateEnd:cy,onReconnect:ly,onReconnectStart:fy,onReconnectEnd:dy,reconnectRadius:hy=10,edgeUpdaterRadius:py=10,onNodesChange:vy,onEdgesChange:gy,noDragClassName:yy="nodrag",noWheelClassName:my="nowheel",noPanClassName:Ju="nopan",fitView:_y=!1,fitViewOptions:by,connectOnClick:wy=!0,attributionPosition:Ey,proOptions:xy,defaultEdgeOptions:Sy,elevateNodesOnSelect:qy=!0,elevateEdgesOnSelect:Cy=!1,disableKeyboardA11y:Qu=!1,autoPanOnConnect:Ry=!0,autoPanOnNodeDrag:Ay=!0,connectionRadius:Ny=20,isValidConnection:Iy,onError:Ty,style:My,id:ec,nodeDragThreshold:Py,...ky},Oy)=>{const Vr=ec||"1";return L.createElement("div",{...ky,style:{...My,...Vw},ref:Oy,className:pe(["react-flow",i]),"data-testid":"rf__wrapper",id:ec},L.createElement(eg,null,L.createElement(Dw,{onInit:l,onMove:c,onMoveStart:f,onMoveEnd:d,onNodeClick:s,onEdgeClick:u,onNodeMouseEnter:y,onNodeMouseMove:b,onNodeMouseLeave:m,onNodeContextMenu:E,onNodeDoubleClick:x,nodeTypes:a,edgeTypes:o,connectionLineType:B,connectionLineStyle:V,connectionLineComponent:G,connectionLineContainerStyle:U,selectionKeyCode:P,selectionOnDrag:F,selectionMode:$,deleteKeyCode:C,multiSelectionKeyCode:W,panActivationKeyCode:K,zoomActivationKeyCode:Z,onlyRenderVisibleElements:re,selectNodesOnDrag:ee,defaultViewport:ge,translateExtent:Re,minZoom:ce,maxZoom:me,preventScrolling:Le,zoomOnScroll:Fe,zoomOnPinch:Ye,zoomOnDoubleClick:ye,panOnScroll:de,panOnScrollSpeed:we,panOnScrollMode:ve,panOnDrag:lt,onPaneClick:Oe,onPaneMouseEnter:et,onPaneMouseMove:Br,onPaneMouseLeave:Hr,onPaneScroll:qt,onPaneContextMenu:$r,onSelectionContextMenu:R,onSelectionStart:z,onSelectionEnd:H,onEdgeContextMenu:tt,onEdgeDoubleClick:ny,onEdgeMouseEnter:iy,onEdgeMouseMove:ay,onEdgeMouseLeave:oy,onReconnect:ly??sy,onReconnectStart:fy??uy,onReconnectEnd:dy??cy,reconnectRadius:hy??py,defaultMarkerColor:be,noDragClassName:yy,noWheelClassName:my,noPanClassName:Ju,elevateEdgesOnSelect:Cy,rfId:Vr,disableKeyboardA11y:Qu,nodeOrigin:Y,nodeExtent:ke}),L.createElement(M0,{nodes:e,edges:t,defaultNodes:r,defaultEdges:n,onConnect:h,onConnectStart:_,onConnectEnd:g,onClickConnectStart:v,onClickConnectEnd:p,nodesDraggable:X,nodesConnectable:ue,nodesFocusable:j,edgesFocusable:oe,edgesUpdatable:Ce,elementsSelectable:Pe,elevateNodesOnSelect:qy,minZoom:ce,maxZoom:me,nodeExtent:ke,onNodesChange:vy,onEdgesChange:gy,snapToGrid:te,snapGrid:ie,connectionMode:M,translateExtent:Re,connectOnClick:wy,defaultEdgeOptions:Sy,fitView:_y,fitViewOptions:by,onNodesDelete:A,onEdgesDelete:I,onNodeDragStart:S,onNodeDrag:N,onNodeDragStop:q,onSelectionDrag:w,onSelectionDragStart:k,onSelectionDragStop:T,noPanClassName:Ju,nodeOrigin:Y,rfId:Vr,autoPanOnConnect:Ry,autoPanOnNodeDrag:Ay,onError:Ty,connectionRadius:Ny,isValidConnection:Iy,nodeDragThreshold:Py}),L.createElement(I0,{onSelectionChange:O}),Xu,L.createElement(i0,{proOptions:xy,position:Ey}),L.createElement(L0,{rfId:Vr,disableKeyboardA11y:Qu})))});Gw.displayName="ReactFlow";const tg=({id:e,x:t,y:r,width:n,height:i,style:a,color:o,strokeColor:s,strokeWidth:u,className:l,borderRadius:c,shapeRendering:f,onClick:d,selected:h})=>{const{background:_,backgroundColor:g}=a||{},v=o||_||g;return L.createElement("rect",{className:pe(["react-flow__minimap-node",{selected:h},l]),x:t,y:r,rx:c,ry:c,width:n,height:i,fill:v,stroke:s,strokeWidth:u,shapeRendering:f,onClick:d?p=>d(p,e):void 0})};tg.displayName="MiniMapNode";var Uw=D.memo(tg);const Kw=e=>e.nodeOrigin,jw=e=>e.getNodes().filter(t=>!t.hidden&&t.width&&t.height),Xr=e=>e instanceof Function?e:()=>e;function Yw({nodeStrokeColor:e="transparent",nodeColor:t="#e2e2e2",nodeClassName:r="",nodeBorderRadius:n=5,nodeStrokeWidth:i=2,nodeComponent:a=Uw,onClick:o}){const s=ne(jw,he),u=ne(Kw),l=Xr(t),c=Xr(e),f=Xr(r),d=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return L.createElement(L.Fragment,null,s.map(h=>{const{x:_,y:g}=it(h,u).positionAbsolute;return L.createElement(a,{key:h.id,x:_,y:g,width:h.width,height:h.height,style:h.style,selected:h.selected,className:f(h),color:l(h),borderRadius:n,strokeColor:c(h),strokeWidth:i,shapeRendering:d,onClick:o,id:h.id})}))}var Ww=D.memo(Yw);const Zw=200,Xw=150,Jw=e=>{const t=e.getNodes(),r={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:r,boundingRect:t.length>0?s0(Er(t,e.nodeOrigin),r):r,rfId:e.rfId}},Qw="react-flow__minimap-desc";function rg({style:e,className:t,nodeStrokeColor:r="transparent",nodeColor:n="#e2e2e2",nodeClassName:i="",nodeBorderRadius:a=5,nodeStrokeWidth:o=2,nodeComponent:s,maskColor:u="rgb(240, 240, 240, 0.6)",maskStrokeColor:l="none",maskStrokeWidth:c=1,position:f="bottom-right",onClick:d,onNodeClick:h,pannable:_=!1,zoomable:g=!1,ariaLabel:v="React Flow mini map",inversePan:p=!1,zoomStep:y=10,offsetScale:b=5}){const m=fe(),E=D.useRef(null),{boundingRect:x,viewBB:S,rfId:N}=ne(Jw,he),q=e?.width??Zw,A=e?.height??Xw,I=x.width/q,O=x.height/A,k=Math.max(I,O),w=k*q,T=k*A,R=b*k,z=x.x-(w-x.width)/2-R,H=x.y-(T-x.height)/2-R,M=w+R*2,B=T+R*2,V=`${Qw}-${N}`,G=D.useRef(0);G.current=k,D.useEffect(()=>{if(E.current){const P=xe(E.current),F=W=>{const{transform:Z,d3Selection:te,d3Zoom:ie}=m.getState();if(W.sourceEvent.type!=="wheel"||!te||!ie)return;const re=-W.sourceEvent.deltaY*(W.sourceEvent.deltaMode===1?.05:W.sourceEvent.deltaMode?1:.002)*y,ee=Z[2]*Math.pow(2,re);ie.scaleTo(te,ee)},$=W=>{const{transform:Z,d3Selection:te,d3Zoom:ie,translateExtent:re,width:ee,height:X}=m.getState();if(W.sourceEvent.type!=="mousemove"||!te||!ie)return;const ue=G.current*Math.max(1,Z[2])*(p?-1:1),j={x:Z[0]-W.sourceEvent.movementX*ue,y:Z[1]-W.sourceEvent.movementY*ue},Y=[[0,0],[ee,X]],oe=He.translate(j.x,j.y).scale(Z[2]),Ce=ie.constrain()(oe,Y,re);ie.transform(te,Ce)},K=fv().on("zoom",_?$:null).on("zoom.wheel",g?F:null);return P.call(K),()=>{P.on("zoom",null)}}},[_,g,p,y]);const U=d?P=>{const F=Ae(P);d(P,{x:F[0],y:F[1]})}:void 0,C=h?(P,F)=>{const $=m.getState().nodeInternals.get(F);h(P,$)}:void 0;return L.createElement(Eu,{position:f,style:e,className:pe(["react-flow__minimap",t]),"data-testid":"rf__minimap"},L.createElement("svg",{width:q,height:A,viewBox:`${z} ${H} ${M} ${B}`,role:"img","aria-labelledby":V,ref:E,onClick:U},v&&L.createElement("title",{id:V},v),L.createElement(Ww,{onClick:C,nodeColor:n,nodeStrokeColor:r,nodeBorderRadius:a,nodeClassName:i,nodeStrokeWidth:o,nodeComponent:s}),L.createElement("path",{className:"react-flow__minimap-mask",d:`M${z-R},${H-R}h${M+R*2}v${B+R*2}h${-M-R*2}z + M${S.x},${S.y}h${S.width}v${S.height}h${-S.width}z`,fill:u,fillRule:"evenodd",stroke:l,strokeWidth:c,pointerEvents:"none"})))}rg.displayName="MiniMap";var ES=D.memo(rg);function e1(){return L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},L.createElement("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"}))}function t1(){return L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},L.createElement("path",{d:"M0 0h32v4.2H0z"}))}function r1(){return L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},L.createElement("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"}))}function n1(){return L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},L.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"}))}function i1(){return L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},L.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"}))}const Pt=({children:e,className:t,...r})=>L.createElement("button",{type:"button",className:pe(["react-flow__controls-button",t]),...r},e);Pt.displayName="ControlButton";const a1=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom}),ng=({style:e,showZoom:t=!0,showFitView:r=!0,showInteractive:n=!0,fitViewOptions:i,onZoomIn:a,onZoomOut:o,onFitView:s,onInteractiveChange:u,className:l,children:c,position:f="bottom-left"})=>{const d=fe(),[h,_]=D.useState(!1),{isInteractive:g,minZoomReached:v,maxZoomReached:p}=ne(a1,he),{zoomIn:y,zoomOut:b,fitView:m}=Tu();if(D.useEffect(()=>{_(!0)},[]),!h)return null;const E=()=>{y(),a?.()},x=()=>{b(),o?.()},S=()=>{m(i),s?.()},N=()=>{d.setState({nodesDraggable:!g,nodesConnectable:!g,elementsSelectable:!g}),u?.(!g)};return L.createElement(Eu,{className:pe(["react-flow__controls",l]),position:f,style:e,"data-testid":"rf__controls"},t&&L.createElement(L.Fragment,null,L.createElement(Pt,{onClick:E,className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",disabled:p},L.createElement(e1,null)),L.createElement(Pt,{onClick:x,className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",disabled:v},L.createElement(t1,null))),r&&L.createElement(Pt,{className:"react-flow__controls-fitview",onClick:S,title:"fit view","aria-label":"fit view"},L.createElement(r1,null)),n&&L.createElement(Pt,{className:"react-flow__controls-interactive",onClick:N,title:"toggle interactivity","aria-label":"toggle interactivity"},g?L.createElement(i1,null):L.createElement(n1,null)),c)};ng.displayName="Controls";var xS=D.memo(ng),Ne;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Ne||(Ne={}));function o1({color:e,dimensions:t,lineWidth:r}){return L.createElement("path",{stroke:e,strokeWidth:r,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`})}function s1({color:e,radius:t}){return L.createElement("circle",{cx:t,cy:t,r:t,fill:e})}const u1={[Ne.Dots]:"#91919a",[Ne.Lines]:"#eee",[Ne.Cross]:"#e2e2e2"},c1={[Ne.Dots]:1,[Ne.Lines]:1,[Ne.Cross]:6},l1=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function ig({id:e,variant:t=Ne.Dots,gap:r=20,size:n,lineWidth:i=1,offset:a=2,color:o,style:s,className:u}){const l=D.useRef(null),{transform:c,patternId:f}=ne(l1,he),d=o||u1[t],h=n||c1[t],_=t===Ne.Dots,g=t===Ne.Cross,v=Array.isArray(r)?r:[r,r],p=[v[0]*c[2]||1,v[1]*c[2]||1],y=h*c[2],b=g?[y,y]:p,m=_?[y/a,y/a]:[b[0]/a,b[1]/a];return L.createElement("svg",{className:pe(["react-flow__background",u]),style:{...s,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:l,"data-testid":"rf__background"},L.createElement("pattern",{id:f+e,x:c[0]%p[0],y:c[1]%p[1],width:p[0],height:p[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${m[0]},-${m[1]})`},_?L.createElement(s1,{color:d,radius:y/a}):L.createElement(o1,{dimensions:b,color:d,lineWidth:i})),L.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${f+e})`}))}ig.displayName="Background";var SS=D.memo(ig);function Pu(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Jr,Oc;function f1(){if(Oc)return Jr;Oc=1;function e(){this.__data__=[],this.size=0}return Jr=e,Jr}var Qr,Dc;function Et(){if(Dc)return Qr;Dc=1;function e(t,r){return t===r||t!==t&&r!==r}return Qr=e,Qr}var en,Lc;function xr(){if(Lc)return en;Lc=1;var e=Et();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return en=t,en}var tn,Fc;function d1(){if(Fc)return tn;Fc=1;var e=xr(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return tn=n,tn}var rn,zc;function h1(){if(zc)return rn;zc=1;var e=xr();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return rn=t,rn}var nn,Bc;function p1(){if(Bc)return nn;Bc=1;var e=xr();function t(r){return e(this.__data__,r)>-1}return nn=t,nn}var an,Hc;function v1(){if(Hc)return an;Hc=1;var e=xr();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return an=t,an}var on,$c;function Sr(){if($c)return on;$c=1;var e=f1(),t=d1(),r=h1(),n=p1(),i=v1();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s-1&&n%1==0&&n-1&&r%1==0&&r<=e}return jn=t,jn}var Yn,Tl;function B1(){if(Tl)return Yn;Tl=1;var e=wt(),t=Lu(),r=Ue(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",u="[object Function]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",_="[object String]",g="[object WeakMap]",v="[object ArrayBuffer]",p="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",m="[object Int8Array]",E="[object Int16Array]",x="[object Int32Array]",S="[object Uint8Array]",N="[object Uint8ClampedArray]",q="[object Uint16Array]",A="[object Uint32Array]",I={};I[y]=I[b]=I[m]=I[E]=I[x]=I[S]=I[N]=I[q]=I[A]=!0,I[n]=I[i]=I[v]=I[a]=I[p]=I[o]=I[s]=I[u]=I[l]=I[c]=I[f]=I[d]=I[h]=I[_]=I[g]=!1;function O(k){return r(k)&&t(k.length)&&!!I[e(k)]}return Yn=O,Yn}var Wn,Ml;function Tr(){if(Ml)return Wn;Ml=1;function e(t){return function(r){return t(r)}}return Wn=e,Wn}var Ot={exports:{}};Ot.exports;var Pl;function Fu(){return Pl||(Pl=1,(function(e,t){var r=$y(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(Ot,Ot.exports)),Ot.exports}var Zn,kl;function Yt(){if(kl)return Zn;kl=1;var e=B1(),t=Tr(),r=Fu(),n=r&&r.isTypedArray,i=n?t(n):e;return Zn=i,Zn}var Xn,Ol;function sg(){if(Ol)return Xn;Ol=1;var e=L1(),t=jt(),r=le(),n=xt(),i=Ir(),a=Yt(),o=Object.prototype,s=o.hasOwnProperty;function u(l,c){var f=r(l),d=!f&&t(l),h=!f&&!d&&n(l),_=!f&&!d&&!h&&a(l),g=f||d||h||_,v=g?e(l.length,String):[],p=v.length;for(var y in l)(c||s.call(l,y))&&!(g&&(y=="length"||h&&(y=="offset"||y=="parent")||_&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||i(y,p)))&&v.push(y);return v}return Xn=u,Xn}var Jn,Dl;function Mr(){if(Dl)return Jn;Dl=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Jn=t,Jn}var Qn,Ll;function ug(){if(Ll)return Qn;Ll=1;function e(t,r){return function(n){return t(r(n))}}return Qn=e,Qn}var ei,Fl;function H1(){if(Fl)return ei;Fl=1;var e=ug(),t=e(Object.keys,Object);return ei=t,ei}var ti,zl;function zu(){if(zl)return ti;zl=1;var e=Mr(),t=H1(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return ti=i,ti}var ri,Bl;function Ke(){if(Bl)return ri;Bl=1;var e=Ut(),t=Lu();function r(n){return n!=null&&t(n.length)&&!e(n)}return ri=r,ri}var ni,Hl;function Qe(){if(Hl)return ni;Hl=1;var e=sg(),t=zu(),r=Ke();function n(i){return r(i)?e(i):t(i)}return ni=n,ni}var ii,$l;function $1(){if($l)return ii;$l=1;var e=Kt(),t=Qe();function r(n,i){return n&&e(i,t(i),n)}return ii=r,ii}var ai,Vl;function V1(){if(Vl)return ai;Vl=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return ai=e,ai}var oi,Gl;function G1(){if(Gl)return oi;Gl=1;var e=Te(),t=Mr(),r=V1(),n=Object.prototype,i=n.hasOwnProperty;function a(o){if(!e(o))return r(o);var s=t(o),u=[];for(var l in o)l=="constructor"&&(s||!i.call(o,l))||u.push(l);return u}return oi=a,oi}var si,Ul;function ut(){if(Ul)return si;Ul=1;var e=sg(),t=G1(),r=Ke();function n(i){return r(i)?e(i,!0):t(i)}return si=n,si}var ui,Kl;function U1(){if(Kl)return ui;Kl=1;var e=Kt(),t=ut();function r(n,i){return n&&e(i,t(i),n)}return ui=r,ui}var Dt={exports:{}};Dt.exports;var jl;function cg(){return jl||(jl=1,(function(e,t){var r=Ge(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,d=s?s(f):new l.constructor(f);return l.copy(d),d}e.exports=u})(Dt,Dt.exports)),Dt.exports}var ci,Yl;function lg(){if(Yl)return ci;Yl=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++nh))return!1;var g=f.get(o),v=f.get(s);if(g&&v)return g==s&&v==o;var p=-1,y=!0,b=u&i?new e:void 0;for(f.set(o,s),f.set(s,o);++p0&&a(c)?i>1?r(c,i-1,a,o,s):e(s,c):o||(s[s.length]=c)}return s}return Qa=r,Qa}var eo,Bd;function $E(){if(Bd)return eo;Bd=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return eo=e,eo}var to,Hd;function Hg(){if(Hd)return to;Hd=1;var e=$E(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,u=t(o.length-i,0),l=Array(u);++s0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return no=n,no}var io,Gd;function $g(){if(Gd)return io;Gd=1;var e=VE(),t=GE(),r=t(e);return io=r,io}var ao,Ud;function Fr(){if(Ud)return ao;Ud=1;var e=ct(),t=Hg(),r=$g();function n(i,a){return r(t(i,a,e),i+"")}return ao=n,ao}var oo,Kd;function Vg(){if(Kd)return oo;Kd=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o-1}return lo=t,lo}var fo,Xd;function WE(){if(Xd)return fo;Xd=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i=o){var p=l?null:i(u);if(p)return a(p);_=!1,d=n,v=new e}else v=l?[]:g;e:for(;++f1?h.setNode(_,f):h.setNode(_)}),this},i.prototype.setNode=function(c,f){return e.has(this._nodes,c)?(arguments.length>1&&(this._nodes[c]=f),this):(this._nodes[c]=arguments.length>1?f:this._defaultNodeLabelFn(c),this._isCompound&&(this._parent[c]=r,this._children[c]={},this._children[r][c]=!0),this._in[c]={},this._preds[c]={},this._out[c]={},this._sucs[c]={},++this._nodeCount,this)},i.prototype.node=function(c){return this._nodes[c]},i.prototype.hasNode=function(c){return e.has(this._nodes,c)},i.prototype.removeNode=function(c){var f=this;if(e.has(this._nodes,c)){var d=function(h){f.removeEdge(f._edgeObjs[h])};delete this._nodes[c],this._isCompound&&(this._removeFromParentsChildList(c),delete this._parent[c],e.each(this.children(c),function(h){f.setParent(h)}),delete this._children[c]),e.each(e.keys(this._in[c]),d),delete this._in[c],delete this._preds[c],e.each(e.keys(this._out[c]),d),delete this._out[c],delete this._sucs[c],--this._nodeCount}return this},i.prototype.setParent=function(c,f){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(f))f=r;else{f+="";for(var d=f;!e.isUndefined(d);d=this.parent(d))if(d===c)throw new Error("Setting "+f+" as parent of "+c+" would create a cycle");this.setNode(f)}return this.setNode(c),this._removeFromParentsChildList(c),this._parent[c]=f,this._children[f][c]=!0,this},i.prototype._removeFromParentsChildList=function(c){delete this._children[this._parent[c]][c]},i.prototype.parent=function(c){if(this._isCompound){var f=this._parent[c];if(f!==r)return f}},i.prototype.children=function(c){if(e.isUndefined(c)&&(c=r),this._isCompound){var f=this._children[c];if(f)return e.keys(f)}else{if(c===r)return this.nodes();if(this.hasNode(c))return[]}},i.prototype.predecessors=function(c){var f=this._preds[c];if(f)return e.keys(f)},i.prototype.successors=function(c){var f=this._sucs[c];if(f)return e.keys(f)},i.prototype.neighbors=function(c){var f=this.predecessors(c);if(f)return e.union(f,this.successors(c))},i.prototype.isLeaf=function(c){var f;return this.isDirected()?f=this.successors(c):f=this.neighbors(c),f.length===0},i.prototype.filterNodes=function(c){var f=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});f.setGraph(this.graph());var d=this;e.each(this._nodes,function(g,v){c(v)&&f.setNode(v,g)}),e.each(this._edgeObjs,function(g){f.hasNode(g.v)&&f.hasNode(g.w)&&f.setEdge(g,d.edge(g))});var h={};function _(g){var v=d.parent(g);return v===void 0||f.hasNode(v)?(h[g]=v,v):v in h?h[v]:_(v)}return this._isCompound&&e.each(f.nodes(),function(g){f.setParent(g,_(g))}),f},i.prototype.setDefaultEdgeLabel=function(c){return e.isFunction(c)||(c=e.constant(c)),this._defaultEdgeLabelFn=c,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return e.values(this._edgeObjs)},i.prototype.setPath=function(c,f){var d=this,h=arguments;return e.reduce(c,function(_,g){return h.length>1?d.setEdge(_,g,f):d.setEdge(_,g),g}),this},i.prototype.setEdge=function(){var c,f,d,h,_=!1,g=arguments[0];typeof g=="object"&&g!==null&&"v"in g?(c=g.v,f=g.w,d=g.name,arguments.length===2&&(h=arguments[1],_=!0)):(c=g,f=arguments[1],d=arguments[3],arguments.length>2&&(h=arguments[2],_=!0)),c=""+c,f=""+f,e.isUndefined(d)||(d=""+d);var v=s(this._isDirected,c,f,d);if(e.has(this._edgeLabels,v))return _&&(this._edgeLabels[v]=h),this;if(!e.isUndefined(d)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(c),this.setNode(f),this._edgeLabels[v]=_?h:this._defaultEdgeLabelFn(c,f,d);var p=u(this._isDirected,c,f,d);return c=p.v,f=p.w,Object.freeze(p),this._edgeObjs[v]=p,a(this._preds[f],c),a(this._sucs[c],f),this._in[f][v]=p,this._out[c][v]=p,this._edgeCount++,this},i.prototype.edge=function(c,f,d){var h=arguments.length===1?l(this._isDirected,arguments[0]):s(this._isDirected,c,f,d);return this._edgeLabels[h]},i.prototype.hasEdge=function(c,f,d){var h=arguments.length===1?l(this._isDirected,arguments[0]):s(this._isDirected,c,f,d);return e.has(this._edgeLabels,h)},i.prototype.removeEdge=function(c,f,d){var h=arguments.length===1?l(this._isDirected,arguments[0]):s(this._isDirected,c,f,d),_=this._edgeObjs[h];return _&&(c=_.v,f=_.w,delete this._edgeLabels[h],delete this._edgeObjs[h],o(this._preds[f],c),o(this._sucs[c],f),delete this._in[f][h],delete this._out[c][h],this._edgeCount--),this},i.prototype.inEdges=function(c,f){var d=this._in[c];if(d){var h=e.values(d);return f?e.filter(h,function(_){return _.v===f}):h}},i.prototype.outEdges=function(c,f){var d=this._out[c];if(d){var h=e.values(d);return f?e.filter(h,function(_){return _.w===f}):h}},i.prototype.nodeEdges=function(c,f){var d=this.inEdges(c,f);if(d)return d.concat(this.outEdges(c,f))};function a(c,f){c[f]?c[f]++:c[f]=1}function o(c,f){--c[f]||delete c[f]}function s(c,f,d,h){var _=""+f,g=""+d;if(!c&&_>g){var v=_;_=g,g=v}return _+n+g+n+(e.isUndefined(h)?t:h)}function u(c,f,d,h){var _=""+f,g=""+d;if(!c&&_>g){var v=_;_=g,g=v}var p={v:_,w:g};return h&&(p.name=h),p}function l(c,f){return s(c,f.v,f.w,f.name)}return wo}var Eo,sh;function tx(){return sh||(sh=1,Eo="2.1.8"),Eo}var xo,uh;function rx(){return uh||(uh=1,xo={Graph:Wu(),version:tx()}),xo}var So,ch;function nx(){if(ch)return So;ch=1;var e=qe(),t=Wu();So={write:r,read:a};function r(o){var s={options:{directed:o.isDirected(),multigraph:o.isMultigraph(),compound:o.isCompound()},nodes:n(o),edges:i(o)};return e.isUndefined(o.graph())||(s.value=e.clone(o.graph())),s}function n(o){return e.map(o.nodes(),function(s){var u=o.node(s),l=o.parent(s),c={v:s};return e.isUndefined(u)||(c.value=u),e.isUndefined(l)||(c.parent=l),c})}function i(o){return e.map(o.edges(),function(s){var u=o.edge(s),l={v:s.v,w:s.w};return e.isUndefined(s.name)||(l.name=s.name),e.isUndefined(u)||(l.value=u),l})}function a(o){var s=new t(o.options).setGraph(o.value);return e.each(o.nodes,function(u){s.setNode(u.v,u.value),u.parent&&s.setParent(u.v,u.parent)}),e.each(o.edges,function(u){s.setEdge({v:u.v,w:u.w,name:u.name},u.value)}),s}return So}var qo,lh;function ix(){if(lh)return qo;lh=1;var e=qe();qo=t;function t(r){var n={},i=[],a;function o(s){e.has(n,s)||(n[s]=!0,a.push(s),e.each(r.successors(s),o),e.each(r.predecessors(s),o))}return e.each(r.nodes(),function(s){a=[],o(s),a.length&&i.push(a)}),i}return qo}var Co,fh;function Kg(){if(fh)return Co;fh=1;var e=qe();Co=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(r){return r.key})},t.prototype.has=function(r){return e.has(this._keyIndices,r)},t.prototype.priority=function(r){var n=this._keyIndices[r];if(n!==void 0)return this._arr[n].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(r,n){var i=this._keyIndices;if(r=String(r),!e.has(i,r)){var a=this._arr,o=a.length;return i[r]=o,a.push({key:r,priority:n}),this._decrease(o),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var r=this._arr.pop();return delete this._keyIndices[r.key],this._heapify(0),r.key},t.prototype.decrease=function(r,n){var i=this._keyIndices[r];if(n>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+r+" Old: "+this._arr[i].priority+" New: "+n);this._arr[i].priority=n,this._decrease(i)},t.prototype._heapify=function(r){var n=this._arr,i=2*r,a=i+1,o=r;i>1,!(n[a].priority0&&(f=c.removeMin(),d=l[f],d.distance!==Number.POSITIVE_INFINITY);)u(f).forEach(h);return l}return Ro}var Ao,hh;function ax(){if(hh)return Ao;hh=1;var e=jg(),t=qe();Ao=r;function r(n,i,a){return t.transform(n.nodes(),function(o,s){o[s]=e(n,s,i,a)},{})}return Ao}var No,ph;function Yg(){if(ph)return No;ph=1;var e=qe();No=t;function t(r){var n=0,i=[],a={},o=[];function s(u){var l=a[u]={onStack:!0,lowlink:n,index:n++};if(i.push(u),r.successors(u).forEach(function(d){e.has(a,d)?a[d].onStack&&(l.lowlink=Math.min(l.lowlink,a[d].index)):(s(d),l.lowlink=Math.min(l.lowlink,a[d].lowlink))}),l.lowlink===l.index){var c=[],f;do f=i.pop(),a[f].onStack=!1,c.push(f);while(u!==f);o.push(c)}}return r.nodes().forEach(function(u){e.has(a,u)||s(u)}),o}return No}var Io,vh;function ox(){if(vh)return Io;vh=1;var e=qe(),t=Yg();Io=r;function r(n){return e.filter(t(n),function(i){return i.length>1||i.length===1&&n.hasEdge(i[0],i[0])})}return Io}var To,gh;function sx(){if(gh)return To;gh=1;var e=qe();To=r;var t=e.constant(1);function r(i,a,o){return n(i,a||t,o||function(s){return i.outEdges(s)})}function n(i,a,o){var s={},u=i.nodes();return u.forEach(function(l){s[l]={},s[l][l]={distance:0},u.forEach(function(c){l!==c&&(s[l][c]={distance:Number.POSITIVE_INFINITY})}),o(l).forEach(function(c){var f=c.v===l?c.w:c.v,d=a(c);s[l][f]={distance:d,predecessor:l}})}),u.forEach(function(l){var c=s[l];u.forEach(function(f){var d=s[f];u.forEach(function(h){var _=d[l],g=c[h],v=d[h],p=_.distance+g.distance;p0;){if(l=u.removeMin(),e.has(s,l))o.setEdge(l,s[l]);else{if(f)throw new Error("Input graph is not connected: "+i);f=!0}i.nodeEdges(l).forEach(c)}return o}return Lo}var Fo,xh;function dx(){return xh||(xh=1,Fo={components:ix(),dijkstra:jg(),dijkstraAll:ax(),findCycles:ox(),floydWarshall:sx(),isAcyclic:ux(),postorder:cx(),preorder:lx(),prim:fx(),tarjan:Yg(),topsort:Wg()}),Fo}var zo,Sh;function hx(){if(Sh)return zo;Sh=1;var e=rx();return zo={Graph:e.Graph,json:nx(),alg:dx(),version:e.version},zo}var Bo,qh;function Ie(){if(qh)return Bo;qh=1;var e;if(typeof Pu=="function")try{e=hx()}catch{}return e||(e=window.graphlib),Bo=e,Bo}var Ho,Ch;function px(){if(Ch)return Ho;Ch=1;var e=wg(),t=1,r=4;function n(i){return e(i,t|r)}return Ho=n,Ho}var $o,Rh;function zr(){if(Rh)return $o;Rh=1;var e=Et(),t=Ke(),r=Ir(),n=Te();function i(a,o,s){if(!n(s))return!1;var u=typeof o;return(u=="number"?t(s)&&r(o,s.length):u=="string"&&o in s)?e(s[o],a):!1}return $o=i,$o}var Vo,Ah;function vx(){if(Ah)return Vo;Ah=1;var e=Fr(),t=Et(),r=zr(),n=ut(),i=Object.prototype,a=i.hasOwnProperty,o=e(function(s,u){s=Object(s);var l=-1,c=u.length,f=c>2?u[2]:void 0;for(f&&r(u[0],u[1],f)&&(c=1);++l-1?u[l?a[c]:c]:void 0}}return Go=n,Go}var Uo,Ih;function Xg(){if(Ih)return Uo;Ih=1;var e=Vy(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return Uo=n,Uo}var Ko,Th;function yx(){if(Th)return Ko;Th=1;var e=Xg();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Ko=t,Ko}var jo,Mh;function mx(){if(Mh)return jo;Mh=1;var e=Vg(),t=je(),r=yx(),n=Math.max;function i(a,o,s){var u=a==null?0:a.length;if(!u)return-1;var l=s==null?0:r(s);return l<0&&(l=n(u+l,0)),e(a,t(o,3),l)}return jo=i,jo}var Yo,Ph;function _x(){if(Ph)return Yo;Ph=1;var e=gx(),t=mx(),r=e(t);return Yo=r,Yo}var Wo,kh;function Jg(){if(kh)return Wo;kh=1;var e=Yu();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return Wo=t,Wo}var Zo,Oh;function bx(){if(Oh)return Zo;Oh=1;var e=Gu(),t=Eg(),r=ut();function n(i,a){return i==null?i:e(i,t(a),r)}return Zo=n,Zo}var Xo,Dh;function wx(){if(Dh)return Xo;Dh=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Xo=e,Xo}var Jo,Lh;function Ex(){if(Lh)return Jo;Lh=1;var e=Ar(),t=Uu(),r=je();function n(i,a){var o={};return a=r(a,3),t(i,function(s,u,l){e(o,u,a(s,u,l))}),o}return Jo=n,Jo}var Qo,Fh;function Zu(){if(Fh)return Qo;Fh=1;var e=$t();function t(r,n,i){for(var a=-1,o=r.length;++ar}return es=e,es}var ts,Bh;function Sx(){if(Bh)return ts;Bh=1;var e=Zu(),t=xx(),r=ct();function n(i){return i&&i.length?e(i,r,t):void 0}return ts=n,ts}var rs,Hh;function Qg(){if(Hh)return rs;Hh=1;var e=Ar(),t=Et();function r(n,i,a){(a!==void 0&&!t(n[i],a)||a===void 0&&!(i in n))&&e(n,i,a)}return rs=r,rs}var ns,$h;function qx(){if($h)return ns;$h=1;var e=wt(),t=Pr(),r=Ue(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,u=o.call(Object);function l(c){if(!r(c)||e(c)!=n)return!1;var f=t(c);if(f===null)return!0;var d=s.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==u}return ns=l,ns}var is,Vh;function ey(){if(Vh)return is;Vh=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return is=e,is}var as,Gh;function Cx(){if(Gh)return as;Gh=1;var e=Kt(),t=ut();function r(n){return e(n,t(n))}return as=r,as}var os,Uh;function Rx(){if(Uh)return os;Uh=1;var e=Qg(),t=cg(),r=mg(),n=lg(),i=bg(),a=jt(),o=le(),s=Gg(),u=xt(),l=Ut(),c=Te(),f=qx(),d=Yt(),h=ey(),_=Cx();function g(v,p,y,b,m,E,x){var S=h(v,y),N=h(p,y),q=x.get(N);if(q){e(v,y,q);return}var A=E?E(S,N,y+"",v,p,x):void 0,I=A===void 0;if(I){var O=o(N),k=!O&&u(N),w=!O&&!k&&d(N);A=N,O||k||w?o(S)?A=S:s(S)?A=n(S):k?(I=!1,A=t(N,!0)):w?(I=!1,A=r(N,!0)):A=[]:f(N)||a(N)?(A=S,a(S)?A=_(S):(!c(S)||l(S))&&(A=i(N))):I=!1}I&&(x.set(N,A),m(A,N,b,E,x),x.delete(N)),e(v,y,A)}return os=g,os}var ss,Kh;function Ax(){if(Kh)return ss;Kh=1;var e=Rr(),t=Qg(),r=Gu(),n=Rx(),i=Te(),a=ut(),o=ey();function s(u,l,c,f,d){u!==l&&r(l,function(h,_){if(d||(d=new e),i(h))n(u,l,_,c,s,f,d);else{var g=f?f(o(u,_),h,_+"",u,l,d):void 0;g===void 0&&(g=h),t(u,_,g)}},a)}return ss=s,ss}var us,jh;function Nx(){if(jh)return us;jh=1;var e=Fr(),t=zr();function r(n){return e(function(i,a){var o=-1,s=a.length,u=s>1?a[s-1]:void 0,l=s>2?a[2]:void 0;for(u=n.length>3&&typeof u=="function"?(s--,u):void 0,l&&t(a[0],a[1],l)&&(u=s<3?void 0:u,s=1),i=Object(i);++on||s&&u&&c&&!l&&!f||a&&u&&c||!i&&c||!o)return 1;if(!a&&!s&&!f&&r=l)return c;var f=i[a];return c*(f=="desc"?-1:1)}}return r.index-n.index}return xs=t,xs}var Ss,cp;function Gx(){if(cp)return Ss;cp=1;var e=Or(),t=Lr(),r=je(),n=Fg(),i=Hx(),a=Tr(),o=Vx(),s=ct(),u=le();function l(c,f,d){f.length?f=e(f,function(g){return u(g)?function(v){return t(v,g.length===1?g[0]:g)}:g}):f=[s];var h=-1;f=e(f,a(r));var _=n(c,function(g,v,p){var y=e(f,function(b){return b(g)});return{criteria:y,index:++h,value:g}});return i(_,function(g,v){return o(g,v,d)})}return Ss=l,Ss}var qs,lp;function Ux(){if(lp)return qs;lp=1;var e=Yu(),t=Gx(),r=Fr(),n=zr(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return qs=i,qs}var Cs,fp;function Kx(){if(fp)return Cs;fp=1;var e=Tg(),t=0;function r(n){var i=++t;return e(n)+i}return Cs=r,Cs}var Rs,dp;function jx(){if(dp)return Rs;dp=1;function e(t,r,n){for(var i=-1,a=t.length,o=r.length,s={};++i0;--v)if(g=c[v].dequeue(),g){d=d.concat(o(l,c,f,g,!0));break}}}return d}function o(l,c,f,d,h){var _=h?[]:void 0;return e.forEach(l.inEdges(d.v),function(g){var v=l.edge(g),p=l.node(g.v);h&&_.push({v:g.v,w:g.w}),p.out-=v,u(c,f,p)}),e.forEach(l.outEdges(d.v),function(g){var v=l.edge(g),p=g.w,y=l.node(p);y.in-=v,u(c,f,y)}),l.removeNode(d.v),_}function s(l,c){var f=new t,d=0,h=0;e.forEach(l.nodes(),function(v){f.setNode(v,{v,in:0,out:0})}),e.forEach(l.edges(),function(v){var p=f.edge(v.v,v.w)||0,y=c(v),b=p+y;f.setEdge(v.v,v.w,b),h=Math.max(h,f.node(v.v).out+=y),d=Math.max(d,f.node(v.w).in+=y)});var _=e.range(h+d+3).map(function(){return new r}),g=d+1;return e.forEach(f.nodes(),function(v){u(_,g,f.node(v))}),{graph:f,buckets:_,zeroIdx:g}}function u(l,c,f){f.out?f.in?l[f.out-f.in+c].enqueue(f):l[l.length-1].enqueue(f):l[0].enqueue(f)}return Ts}var Ms,yp;function Xx(){if(yp)return Ms;yp=1;var e=ae(),t=Zx();Ms={run:r,undo:i};function r(a){var o=a.graph().acyclicer==="greedy"?t(a,s(a)):n(a);e.forEach(o,function(u){var l=a.edge(u);a.removeEdge(u),l.forwardName=u.name,l.reversed=!0,a.setEdge(u.w,u.v,l,e.uniqueId("rev"))});function s(u){return function(l){return u.edge(l).weight}}}function n(a){var o=[],s={},u={};function l(c){e.has(u,c)||(u[c]=!0,s[c]=!0,e.forEach(a.outEdges(c),function(f){e.has(s,f.w)?o.push(f):l(f.w)}),delete s[c])}return e.forEach(a.nodes(),l),o}function i(a){e.forEach(a.edges(),function(o){var s=a.edge(o);if(s.reversed){a.removeEdge(o);var u=s.forwardName;delete s.reversed,delete s.forwardName,a.setEdge(o.w,o.v,s,u)}})}return Ms}var Ps,mp;function _e(){if(mp)return Ps;mp=1;var e=ae(),t=Ie().Graph;Ps={addDummyNode:r,simplify:n,asNonCompoundGraph:i,successorWeights:a,predecessorWeights:o,intersectRect:s,buildLayerMatrix:u,normalizeRanks:l,removeEmptyRanks:c,addBorderNode:f,maxRank:d,partition:h,time:_,notime:g};function r(v,p,y,b){var m;do m=e.uniqueId(b);while(v.hasNode(m));return y.dummy=p,v.setNode(m,y),m}function n(v){var p=new t().setGraph(v.graph());return e.forEach(v.nodes(),function(y){p.setNode(y,v.node(y))}),e.forEach(v.edges(),function(y){var b=p.edge(y.v,y.w)||{weight:0,minlen:1},m=v.edge(y);p.setEdge(y.v,y.w,{weight:b.weight+m.weight,minlen:Math.max(b.minlen,m.minlen)})}),p}function i(v){var p=new t({multigraph:v.isMultigraph()}).setGraph(v.graph());return e.forEach(v.nodes(),function(y){v.children(y).length||p.setNode(y,v.node(y))}),e.forEach(v.edges(),function(y){p.setEdge(y,v.edge(y))}),p}function a(v){var p=e.map(v.nodes(),function(y){var b={};return e.forEach(v.outEdges(y),function(m){b[m.w]=(b[m.w]||0)+v.edge(m).weight}),b});return e.zipObject(v.nodes(),p)}function o(v){var p=e.map(v.nodes(),function(y){var b={};return e.forEach(v.inEdges(y),function(m){b[m.v]=(b[m.v]||0)+v.edge(m).weight}),b});return e.zipObject(v.nodes(),p)}function s(v,p){var y=v.x,b=v.y,m=p.x-y,E=p.y-b,x=v.width/2,S=v.height/2;if(!m&&!E)throw new Error("Not possible to find intersection inside of the rectangle");var N,q;return Math.abs(E)*x>Math.abs(m)*S?(E<0&&(S=-S),N=S*m/E,q=S):(m<0&&(x=-x),N=x,q=x*E/m),{x:y+N,y:b+q}}function u(v){var p=e.map(e.range(d(v)+1),function(){return[]});return e.forEach(v.nodes(),function(y){var b=v.node(y),m=b.rank;e.isUndefined(m)||(p[m][b.order]=y)}),p}function l(v){var p=e.min(e.map(v.nodes(),function(y){return v.node(y).rank}));e.forEach(v.nodes(),function(y){var b=v.node(y);e.has(b,"rank")&&(b.rank-=p)})}function c(v){var p=e.min(e.map(v.nodes(),function(E){return v.node(E).rank})),y=[];e.forEach(v.nodes(),function(E){var x=v.node(E).rank-p;y[x]||(y[x]=[]),y[x].push(E)});var b=0,m=v.graph().nodeRankFactor;e.forEach(y,function(E,x){e.isUndefined(E)&&x%m!==0?--b:b&&e.forEach(E,function(S){v.node(S).rank+=b})})}function f(v,p,y,b){var m={width:0,height:0};return arguments.length>=4&&(m.rank=y,m.order=b),r(v,"border",m,p)}function d(v){return e.max(e.map(v.nodes(),function(p){var y=v.node(p).rank;if(!e.isUndefined(y))return y}))}function h(v,p){var y={lhs:[],rhs:[]};return e.forEach(v,function(b){p(b)?y.lhs.push(b):y.rhs.push(b)}),y}function _(v,p){var y=e.now();try{return p()}finally{console.log(v+" time: "+(e.now()-y)+"ms")}}function g(v,p){return p()}return Ps}var ks,_p;function Jx(){if(_p)return ks;_p=1;var e=ae(),t=_e();ks={run:r,undo:i};function r(a){a.graph().dummyChains=[],e.forEach(a.edges(),function(o){n(a,o)})}function n(a,o){var s=o.v,u=a.node(s).rank,l=o.w,c=a.node(l).rank,f=o.name,d=a.edge(o),h=d.labelRank;if(c!==u+1){a.removeEdge(o);var _,g,v;for(v=0,++u;uq.lim&&(A=q,I=!0);var O=e.filter(m.edges(),function(k){return I===y(b,b.node(k.v),A)&&I!==y(b,b.node(k.w),A)});return e.minBy(O,function(k){return r(m,k)})}function g(b,m,E,x){var S=E.v,N=E.w;b.removeEdge(S,N),b.setEdge(x.v,x.w,{}),f(b),u(b,m),v(b,m)}function v(b,m){var E=e.find(b.nodes(),function(S){return!m.node(S).parent}),x=i(b,E);x=x.slice(1),e.forEach(x,function(S){var N=b.node(S).parent,q=m.edge(S,N),A=!1;q||(q=m.edge(N,S),A=!0),m.node(S).rank=m.node(N).rank+(A?q.minlen:-q.minlen)})}function p(b,m,E){return b.hasEdge(m,E)}function y(b,m,E){return E.low<=m.lim&&m.lim<=E.lim}return Ls}var Fs,xp;function eS(){if(xp)return Fs;xp=1;var e=pr(),t=e.longestPath,r=ry(),n=Qx();Fs=i;function i(u){switch(u.graph().ranker){case"network-simplex":s(u);break;case"tight-tree":o(u);break;case"longest-path":a(u);break;default:s(u)}}var a=t;function o(u){t(u),r(u)}function s(u){n(u)}return Fs}var zs,Sp;function tS(){if(Sp)return zs;Sp=1;var e=ae();zs=t;function t(i){var a=n(i);e.forEach(i.graph().dummyChains,function(o){for(var s=i.node(o),u=s.edgeObj,l=r(i,a,u.v,u.w),c=l.path,f=l.lca,d=0,h=c[d],_=!0;o!==u.w;){if(s=i.node(o),_){for(;(h=c[d])!==f&&i.node(h).maxRankc||f>a[d].lim));for(h=d,d=s;(d=i.parent(d))!==h;)l.push(d);return{path:u.concat(l.reverse()),lca:h}}function n(i){var a={},o=0;function s(u){var l=o;e.forEach(i.children(u),s),a[u]={low:l,lim:o++}}return e.forEach(i.children(),s),a}return zs}var Bs,qp;function rS(){if(qp)return Bs;qp=1;var e=ae(),t=_e();Bs={run:r,cleanup:o};function r(s){var u=t.addDummyNode(s,"root",{},"_root"),l=i(s),c=e.max(e.values(l))-1,f=2*c+1;s.graph().nestingRoot=u,e.forEach(s.edges(),function(h){s.edge(h).minlen*=f});var d=a(s)+1;e.forEach(s.children(),function(h){n(s,u,f,d,c,l,h)}),s.graph().nodeRankFactor=f}function n(s,u,l,c,f,d,h){var _=s.children(h);if(!_.length){h!==u&&s.setEdge(u,h,{weight:0,minlen:l});return}var g=t.addBorderNode(s,"_bt"),v=t.addBorderNode(s,"_bb"),p=s.node(h);s.setParent(g,h),p.borderTop=g,s.setParent(v,h),p.borderBottom=v,e.forEach(_,function(y){n(s,u,l,c,f,d,y);var b=s.node(y),m=b.borderTop?b.borderTop:y,E=b.borderBottom?b.borderBottom:y,x=b.borderTop?c:2*c,S=m!==E?1:f-d[h]+1;s.setEdge(g,m,{weight:x,minlen:S,nestingEdge:!0}),s.setEdge(E,v,{weight:x,minlen:S,nestingEdge:!0})}),s.parent(h)||s.setEdge(u,g,{weight:0,minlen:f+d[h]})}function i(s){var u={};function l(c,f){var d=s.children(c);d&&d.length&&e.forEach(d,function(h){l(h,f+1)}),u[c]=f}return e.forEach(s.children(),function(c){l(c,1)}),u}function a(s){return e.reduce(s.edges(),function(u,l){return u+s.edge(l).weight},0)}function o(s){var u=s.graph();s.removeNode(u.nestingRoot),delete u.nestingRoot,e.forEach(s.edges(),function(l){var c=s.edge(l);c.nestingEdge&&s.removeEdge(l)})}return Bs}var Hs,Cp;function nS(){if(Cp)return Hs;Cp=1;var e=ae(),t=_e();Hs=r;function r(i){function a(o){var s=i.children(o),u=i.node(o);if(s.length&&e.forEach(s,a),e.has(u,"minRank")){u.borderLeft=[],u.borderRight=[];for(var l=u.minRank,c=u.maxRank+1;l0;)h%2&&(_+=c[h+1]),h=h-1>>1,c[h]+=d.weight;f+=d.weight*_})),f}return Gs}var Us,Ip;function sS(){if(Ip)return Us;Ip=1;var e=ae();Us=t;function t(r,n){return e.map(n,function(i){var a=r.inEdges(i);if(a.length){var o=e.reduce(a,function(s,u){var l=r.edge(u),c=r.node(u.v);return{sum:s.sum+l.weight*c.order,weight:s.weight+l.weight}},{sum:0,weight:0});return{v:i,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:i}})}return Us}var Ks,Tp;function uS(){if(Tp)return Ks;Tp=1;var e=ae();Ks=t;function t(i,a){var o={};e.forEach(i,function(u,l){var c=o[u.v]={indegree:0,in:[],out:[],vs:[u.v],i:l};e.isUndefined(u.barycenter)||(c.barycenter=u.barycenter,c.weight=u.weight)}),e.forEach(a.edges(),function(u){var l=o[u.v],c=o[u.w];!e.isUndefined(l)&&!e.isUndefined(c)&&(c.indegree++,l.out.push(o[u.w]))});var s=e.filter(o,function(u){return!u.indegree});return r(s)}function r(i){var a=[];function o(l){return function(c){c.merged||(e.isUndefined(c.barycenter)||e.isUndefined(l.barycenter)||c.barycenter>=l.barycenter)&&n(l,c)}}function s(l){return function(c){c.in.push(l),--c.indegree===0&&i.push(c)}}for(;i.length;){var u=i.pop();a.push(u),e.forEach(u.in.reverse(),o(u)),e.forEach(u.out,s(u))}return e.map(e.filter(a,function(l){return!l.merged}),function(l){return e.pick(l,["vs","i","barycenter","weight"])})}function n(i,a){var o=0,s=0;i.weight&&(o+=i.barycenter*i.weight,s+=i.weight),a.weight&&(o+=a.barycenter*a.weight,s+=a.weight),i.vs=a.vs.concat(i.vs),i.barycenter=o/s,i.weight=s,i.i=Math.min(a.i,i.i),a.merged=!0}return Ks}var js,Mp;function cS(){if(Mp)return js;Mp=1;var e=ae(),t=_e();js=r;function r(a,o){var s=t.partition(a,function(g){return e.has(g,"barycenter")}),u=s.lhs,l=e.sortBy(s.rhs,function(g){return-g.i}),c=[],f=0,d=0,h=0;u.sort(i(!!o)),h=n(c,l,h),e.forEach(u,function(g){h+=g.vs.length,c.push(g.vs),f+=g.barycenter*g.weight,d+=g.weight,h=n(c,l,h)});var _={vs:e.flatten(c,!0)};return d&&(_.barycenter=f/d,_.weight=d),_}function n(a,o,s){for(var u;o.length&&(u=e.last(o)).i<=s;)o.pop(),a.push(u.vs),s++;return s}function i(a){return function(o,s){return o.barycenters.barycenter?1:a?s.i-o.i:o.i-s.i}}return js}var Ys,Pp;function lS(){if(Pp)return Ys;Pp=1;var e=ae(),t=sS(),r=uS(),n=cS();Ys=i;function i(s,u,l,c){var f=s.children(u),d=s.node(u),h=d?d.borderLeft:void 0,_=d?d.borderRight:void 0,g={};h&&(f=e.filter(f,function(E){return E!==h&&E!==_}));var v=t(s,f);e.forEach(v,function(E){if(s.children(E.v).length){var x=i(s,E.v,l,c);g[E.v]=x,e.has(x,"barycenter")&&o(E,x)}});var p=r(v,l);a(p,g);var y=n(p,c);if(h&&(y.vs=e.flatten([h,y.vs,_],!0),s.predecessors(h).length)){var b=s.node(s.predecessors(h)[0]),m=s.node(s.predecessors(_)[0]);e.has(y,"barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+b.order+m.order)/(y.weight+2),y.weight+=2}return y}function a(s,u){e.forEach(s,function(l){l.vs=e.flatten(l.vs.map(function(c){return u[c]?u[c].vs:c}),!0)})}function o(s,u){e.isUndefined(s.barycenter)?(s.barycenter=u.barycenter,s.weight=u.weight):(s.barycenter=(s.barycenter*s.weight+u.barycenter*u.weight)/(s.weight+u.weight),s.weight+=u.weight)}return Ys}var Ws,kp;function fS(){if(kp)return Ws;kp=1;var e=ae(),t=Ie().Graph;Ws=r;function r(i,a,o){var s=n(i),u=new t({compound:!0}).setGraph({root:s}).setDefaultNodeLabel(function(l){return i.node(l)});return e.forEach(i.nodes(),function(l){var c=i.node(l),f=i.parent(l);(c.rank===a||c.minRank<=a&&a<=c.maxRank)&&(u.setNode(l),u.setParent(l,f||s),e.forEach(i[o](l),function(d){var h=d.v===l?d.w:d.v,_=u.edge(h,l),g=e.isUndefined(_)?0:_.weight;u.setEdge(h,l,{weight:i.edge(d).weight+g})}),e.has(c,"minRank")&&u.setNode(l,{borderLeft:c.borderLeft[a],borderRight:c.borderRight[a]}))}),u}function n(i){for(var a;i.hasNode(a=e.uniqueId("_root")););return a}return Ws}var Zs,Op;function dS(){if(Op)return Zs;Op=1;var e=ae();Zs=t;function t(r,n,i){var a={},o;e.forEach(i,function(s){for(var u=r.parent(s),l,c;u;){if(l=r.parent(u),l?(c=a[l],a[l]=u):(c=o,o=u),c&&c!==u){n.setEdge(c,u);return}u=l}})}return Zs}var Xs,Dp;function hS(){if(Dp)return Xs;Dp=1;var e=ae(),t=aS(),r=oS(),n=lS(),i=fS(),a=dS(),o=Ie().Graph,s=_e();Xs=u;function u(d){var h=s.maxRank(d),_=l(d,e.range(1,h+1),"inEdges"),g=l(d,e.range(h-1,-1,-1),"outEdges"),v=t(d);f(d,v);for(var p=Number.POSITIVE_INFINITY,y,b=0,m=0;m<4;++b,++m){c(b%2?_:g,b%4>=2),v=s.buildLayerMatrix(d);var E=r(d,v);EA)&&o(b,k,I)})})}function E(x,S){var N=-1,q,A=0;return e.forEach(S,function(I,O){if(p.node(I).dummy==="border"){var k=p.predecessors(I);k.length&&(q=p.node(k[0]).order,m(S,A,O,N,q),A=O,N=q)}m(S,A,S.length,q,x.length)}),S}return e.reduce(y,E),b}function a(p,y){if(p.node(y).dummy)return e.find(p.predecessors(y),function(b){return p.node(b).dummy})}function o(p,y,b){if(y>b){var m=y;y=b,b=m}var E=p[y];E||(p[y]=E={}),E[b]=!0}function s(p,y,b){if(y>b){var m=y;y=b,b=m}return e.has(p[y],b)}function u(p,y,b,m){var E={},x={},S={};return e.forEach(y,function(N){e.forEach(N,function(q,A){E[q]=q,x[q]=q,S[q]=A})}),e.forEach(y,function(N){var q=-1;e.forEach(N,function(A){var I=m(A);if(I.length){I=e.sortBy(I,function(R){return S[R]});for(var O=(I.length-1)/2,k=Math.floor(O),w=Math.ceil(O);k<=w;++k){var T=I[k];x[A]===A&&q{let s=!1;async function h(){F(!0),A(null);try{const r=await be({stage:o,session:x,search:v,page:m,pageSize:G});if(s)return;d(r.items),Y(r.stages),ee(r.sessions),r.selected_session&&r.selected_session!==x&&j(r.selected_session),re(r.total),N(i=>i&&r.items.some(P=>P.stem===i.stem&&P.stage===i.stage&&P.session_id===i.session_id)?i:r.items[0]??null)}catch(r){s||A(r instanceof Error?r.message:"加载推理过程失败")}finally{s||F(!1)}}return h(),()=>{s=!0}},[m,ae,v,x,o]),n.useEffect(()=>{let s=!1;async function h(){if(!t?.text_path){w("");return}L(!0);try{const i=await Ne(t.text_path);s||w(i.content)}catch(i){s||w(i instanceof Error?i.message:"读取文本失败")}finally{s||L(!1)}}async function r(){if(!t?.html_path){I("");return}const i=await we(t.html_path);s||I(i)}return t?.html_path&&!t.text_path?S("html"):S("text"),h(),r(),()=>{s=!0}},[t]);function C(s){s(),b(1)}async function ie(){if(!u||y){a({title:"暂无可复制内容",description:"请先选择一条包含 txt 的 prompt 记录",variant:"destructive"});return}try{await navigator.clipboard.writeText(u),a({title:"已复制完整 Prompt",description:t?`${t.stage}/${t.session_id}/${t.stem}`:void 0})}catch(s){a({title:"复制失败",description:s instanceof Error?s.message:"请手动选择文本复制",variant:"destructive"})}}return e.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-3 overflow-hidden p-3 lg:p-4",children:[e.jsxs("div",{className:"flex flex-col gap-2 lg:flex-row lg:items-center lg:justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl font-semibold tracking-normal text-foreground",children:"推理过程"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"浏览 logs/maisaka_prompt 下的 prompt 记录"})]}),e.jsxs(f,{variant:"outline",size:"sm",onClick:()=>ne(s=>s+1),disabled:c,children:[e.jsx(ue,{className:B("h-4 w-4",c&&"animate-spin")}),"刷新"]})]}),e.jsxs("div",{className:"grid flex-shrink-0 grid-cols-1 gap-2 md:grid-cols-[180px_240px_1fr]",children:[e.jsxs(K,{value:o,onValueChange:s=>C(()=>{se(s),j(g),N(null)}),children:[e.jsx(V,{children:e.jsx(O,{placeholder:"阶段"})}),e.jsxs(q,{children:[!T.includes(o)&&e.jsx(p,{value:o,children:o}),T.map(s=>e.jsx(p,{value:s,children:s},s))]})]}),e.jsxs(K,{value:x,onValueChange:s=>C(()=>j(s)),disabled:k.length===0&&c,children:[e.jsx(V,{children:e.jsx(O,{placeholder:"会话"})}),e.jsxs(q,{children:[x===g&&e.jsx(p,{value:g,children:"自动选择最近会话"}),k.map(s=>e.jsx(p,{value:s,children:s},s))]})]}),e.jsxs("div",{className:"relative",children:[e.jsx(fe,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(xe,{value:v,onChange:s=>C(()=>te(s.target.value)),className:"pl-9",placeholder:"搜索阶段、会话或文件名"})]})]}),z&&e.jsx("div",{className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:z}),e.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-1 gap-3 lg:grid-cols-[360px_1fr]",children:[e.jsxs("div",{className:"flex min-h-0 flex-col overflow-hidden rounded-md border bg-background",children:[e.jsxs("div",{className:"flex h-11 flex-shrink-0 items-center justify-between border-b px-3 text-sm text-muted-foreground",children:[e.jsxs("span",{children:[E," 条记录"]}),e.jsxs("span",{children:["第 ",m," / ",_," 页"]})]}),e.jsx(M,{className:"min-h-0 flex-1",children:e.jsxs("div",{className:"space-y-1 p-2",children:[l.map(s=>{const h=t?.stage===s.stage&&t?.session_id===s.session_id&&t?.stem===s.stem;return e.jsxs("button",{type:"button",onClick:()=>N(s),className:B("flex w-full flex-col gap-2 rounded-md border px-3 py-2 text-left text-sm transition-colors",h?"border-primary bg-primary/10 text-foreground":"border-transparent hover:border-border hover:bg-muted/60"),children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx(oe,{variant:"secondary",className:"max-w-[150px] truncate",children:s.stage}),e.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[e.jsx(pe,{className:"h-3.5 w-3.5"}),W(s.timestamp,s.modified_at)]})]}),e.jsx("div",{className:"truncate font-medium",children:s.session_id}),e.jsxs("div",{className:"flex items-center justify-between gap-2 text-xs text-muted-foreground",children:[e.jsx("span",{className:"truncate",children:s.stem}),e.jsx("span",{className:"shrink-0",children:X(s.size)})]})]},`${s.stage}/${s.session_id}/${s.stem}`)}),!c&&l.length===0&&e.jsx("div",{className:"px-3 py-10 text-center text-sm text-muted-foreground",children:"没有找到推理过程记录"})]})}),e.jsxs("div",{className:"flex h-12 flex-shrink-0 items-center justify-between border-t px-3",children:[e.jsx(f,{variant:"outline",size:"sm",disabled:m<=1||c,onClick:()=>b(s=>Math.max(1,s-1)),children:"上一页"}),e.jsx(f,{variant:"outline",size:"sm",disabled:m>=_||c,onClick:()=>b(s=>Math.min(_,s+1)),children:"下一页"})]})]}),e.jsxs("div",{className:"flex min-h-0 flex-col overflow-hidden rounded-md border bg-background",children:[e.jsxs("div",{className:"flex min-h-14 flex-shrink-0 flex-col gap-1 border-b px-4 py-3 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"truncate text-sm font-medium",children:t?`${t.stage}/${t.session_id}/${t.stem}`:"未选择记录"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:t?`${X(t.size)} · ${W(t.timestamp,t.modified_at)}`:"从左侧列表选择一条记录"})]}),t&&e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsxs(f,{variant:"outline",size:"sm",className:"h-8 gap-1.5",onClick:ie,disabled:!t.text_path||y||!u,title:"复制完整 Prompt",children:[e.jsx(ge,{className:"h-3.5 w-3.5"}),"复制"]}),t.text_path&&e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(D,{className:"h-3.5 w-3.5"}),"txt"]}),t.html_path&&e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(je,{className:"h-3.5 w-3.5"}),"html"]})]})]}),e.jsxs(me,{value:le,onValueChange:s=>S(s),className:"flex min-h-0 flex-1 flex-col",children:[e.jsx("div",{className:"flex flex-shrink-0 border-b px-3 py-2",children:e.jsxs(he,{children:[e.jsxs(U,{value:"text",disabled:!t?.text_path,children:[e.jsx(D,{className:"mr-1 h-4 w-4"}),"文本"]}),e.jsxs(U,{value:"html",disabled:!t?.html_path,children:[e.jsx(ve,{className:"mr-1 h-4 w-4"}),"HTML"]})]})}),e.jsx(H,{value:"text",className:"m-0 min-h-0 flex-1 overflow-hidden",children:e.jsx(M,{className:"h-full",children:e.jsx("pre",{className:"min-h-full whitespace-pre-wrap break-words p-4 font-mono text-xs leading-5 text-foreground",children:y?"正在读取...":u||"没有文本内容"})})}),e.jsx(H,{value:"html",className:"m-0 min-h-0 flex-1 overflow-hidden",children:t?.html_path&&R?e.jsx("iframe",{title:"推理过程 HTML 预览",src:R,sandbox:"",className:"h-full w-full border-0 bg-white"}):e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"没有 HTML 预览"})})]})]})]})]})}export{Ee as ReasoningProcessPage}; diff --git a/dashboard/dist/assets/restart-overlay-B44c6hlE.js b/dashboard/dist/assets/restart-overlay-B44c6hlE.js new file mode 100644 index 00000000..ca2083e7 --- /dev/null +++ b/dashboard/dist/assets/restart-overlay-B44c6hlE.js @@ -0,0 +1 @@ +import{r as d,j as e}from"./router-zNjPR4CY.js";import{P as R}from"./progress-C6-hh8fF.js";import{u as I,B as N,g as _}from"./index-CuOHsLf7.js";import{r as A}from"./system-api-DeeJapvB.js";import{R as S,a7 as L,W as P,e as D,L as C}from"./icons-DTcdLw9j.js";const y={INITIAL_DELAY:3e3,CHECK_INTERVAL:2e3,CHECK_TIMEOUT:3e3,MAX_ATTEMPTS:60,PROGRESS_INTERVAL:200,SUCCESS_REDIRECT_DELAY:1500},w=d.createContext(null);function q({children:u,onRestartComplete:m,onRestartFailed:p,healthCheckUrl:s="/api/webui/system/status",maxAttempts:a=y.MAX_ATTEMPTS}){const[l,i]=d.useState({status:"idle",progress:0,elapsedTime:0,checkAttempts:0,maxAttempts:a}),n=d.useRef({}),r=d.useCallback(()=>{const t=n.current;t.progress&&(clearInterval(t.progress),t.progress=void 0),t.elapsed&&(clearInterval(t.elapsed),t.elapsed=void 0),t.check&&(clearTimeout(t.check),t.check=void 0)},[]),g=d.useCallback(()=>{r(),i({status:"idle",progress:0,elapsedTime:0,checkAttempts:0,maxAttempts:a})},[r,a]),T=d.useCallback(async()=>{try{const t=new AbortController,x=setTimeout(()=>t.abort(),y.CHECK_TIMEOUT),j=await fetch(s,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include",signal:t.signal});return clearTimeout(x),j.ok}catch{return!1}},[s]),h=d.useCallback(()=>{let t=0;const x=async()=>{if(t++,i(f=>({...f,status:"checking",checkAttempts:t})),await T())r(),i(f=>({...f,status:"success",progress:100})),setTimeout(()=>{m?.(),window.location.href="/auth"},y.SUCCESS_REDIRECT_DELAY);else if(t>=a){r();const f=`健康检查超时 (${t}/${a})`;i(v=>({...v,status:"failed",error:f})),p?.(f)}else{const f=setTimeout(x,y.CHECK_INTERVAL);n.current.check=f}};x()},[T,r,a,m,p]),c=d.useCallback(()=>{i(t=>({...t,status:"checking",checkAttempts:0,error:void 0})),h()},[h]),b=d.useCallback(async t=>{const{delay:x=0,skipApiCall:j=!1}=t??{};if(l.status!=="idle"&&l.status!=="failed")return;if(r(),i({status:"requesting",progress:0,elapsedTime:0,checkAttempts:0,maxAttempts:a}),x>0&&await new Promise(o=>setTimeout(o,x)),j)i(o=>({...o,status:"restarting"}));else try{i(o=>({...o,status:"restarting"})),await Promise.race([A(),new Promise(o=>setTimeout(o,5e3))])}catch{}const f=setInterval(()=>{i(o=>({...o,progress:o.progress>=90?o.progress:o.progress+1}))},y.PROGRESS_INTERVAL),v=setInterval(()=>{i(o=>({...o,elapsedTime:o.elapsedTime+1}))},1e3);n.current.progress=f,n.current.elapsed=v,setTimeout(()=>{h()},y.INITIAL_DELAY)},[l.status,r,a,h]),k={state:l,isRestarting:l.status!=="idle",triggerRestart:b,resetState:g,retryHealthCheck:c};return e.jsx(w,{value:k,children:u})}function H(){const u=d.useContext(w);if(!u)throw new Error("useRestart must be used within a RestartProvider");return u}function M(){try{return H()}catch{return null}}const O=(u,m,p,s,a,l)=>({idle:{icon:null,title:"",description:"",tip:""},requesting:{icon:e.jsx(C,{className:"h-16 w-16 text-primary animate-spin"}),title:a??s("restart.preparing"),description:l??s("restart.preparingDesc"),tip:s("restart.preparingTip")},restarting:{icon:e.jsx(C,{className:"h-16 w-16 text-primary animate-spin"}),title:a??s("restart.restarting"),description:l??s("restart.restartingDesc"),tip:s("restart.restartingTip")},checking:{icon:e.jsx(C,{className:"h-16 w-16 text-primary animate-spin"}),title:s("restart.checking"),description:s("restart.checkingDesc",{current:m,max:p}),tip:s("restart.checkingTip")},success:{icon:e.jsx(D,{className:"h-16 w-16 text-green-500"}),title:s("restart.success"),description:s("restart.successDesc"),tip:s("restart.successTip")},failed:{icon:e.jsx(P,{className:"h-16 w-16 text-destructive"}),title:s("restart.failed"),description:s("restart.failedDesc"),tip:s("restart.failedTip")}})[u];function z({visible:u,onComplete:m,onFailed:p,title:s,description:a,showAnimation:l=!0,className:i}){const n=M();return(n?n.isRestarting:u)?n?e.jsx(E,{state:n.state,onRetry:n.retryHealthCheck,onComplete:m,onFailed:p,title:s,description:a,showAnimation:l,className:i}):e.jsx(V,{onComplete:m,onFailed:p,title:s,description:a,showAnimation:l,className:i}):null}function E({state:u,onRetry:m,onComplete:p,onFailed:s,title:a,description:l,showAnimation:i,className:n}){const{status:r,progress:g,elapsedTime:T,checkAttempts:h,maxAttempts:c}=u,{t:b}=I();d.useEffect(()=>{r==="success"&&p?p():r==="failed"&&s&&s()},[r,p,s]);const k=O(r,h,c,b,a,l),t=x=>{const j=Math.floor(x/60),f=x%60;return`${j}:${f.toString().padStart(2,"0")}`};return e.jsxs("div",{className:_("fixed inset-0 bg-background/95 backdrop-blur-sm z-50 flex items-center justify-center",n),children:[i&&e.jsx(G,{}),e.jsxs("div",{className:"max-w-md w-full mx-4 space-y-8 relative z-10",children:[e.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[e.jsxs("div",{className:"relative",children:[k.icon,(r==="restarting"||r==="checking")&&e.jsx("div",{className:"absolute inset-0 rounded-full bg-primary/20 animate-ping"})]}),e.jsx("h2",{className:"text-2xl font-bold",children:k.title}),e.jsx("p",{className:"text-muted-foreground text-center",children:k.description})]}),r!=="failed"&&r!=="idle"&&e.jsxs("div",{className:"space-y-2",children:[e.jsx(R,{value:g,className:"h-2"}),e.jsxs("div",{className:"flex justify-between text-sm text-muted-foreground",children:[e.jsxs("span",{children:[g,"%"]}),e.jsxs("span",{children:[b("restart.elapsed")," ",t(T)]})]})]}),e.jsx("div",{className:"bg-muted/50 rounded-lg p-4",children:e.jsx("p",{className:"text-sm text-muted-foreground",children:k.tip})}),r==="failed"&&e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(N,{onClick:()=>window.location.reload(),variant:"default",className:"flex-1",children:[e.jsx(S,{className:"mr-2 h-4 w-4"}),b("restart.refreshPage")]}),e.jsxs(N,{onClick:m,variant:"secondary",className:"flex-1",children:[e.jsx(L,{className:"mr-2 h-4 w-4"}),b("restart.retryCheck")]})]})]})]})}function V({onComplete:u,onFailed:m,title:p,description:s,showAnimation:a,className:l}){const[i,n]=d.useState({status:"restarting",progress:0,elapsedTime:0,checkAttempts:0,maxAttempts:60}),r=d.useCallback(()=>{let g=0;const T=60,h=async()=>{g++,n(c=>({...c,status:"checking",checkAttempts:g}));try{if((await fetch("/api/webui/system/status",{method:"GET",signal:AbortSignal.timeout(3e3)})).ok){n(b=>({...b,status:"success",progress:100})),setTimeout(()=>{u?.(),window.location.href="/auth"},1500);return}}catch{}g>=T?(n(c=>({...c,status:"failed"})),m?.()):setTimeout(h,2e3)};h()},[u,m]);return d.useEffect(()=>{const g=setInterval(()=>{n(c=>({...c,progress:c.progress>=90?c.progress:c.progress+1}))},200),T=setInterval(()=>{n(c=>({...c,elapsedTime:c.elapsedTime+1}))},1e3),h=setTimeout(()=>{r()},3e3);return()=>{clearInterval(g),clearInterval(T),clearTimeout(h)}},[r]),e.jsx(E,{state:i,onRetry:r,onComplete:u,onFailed:m,title:p,description:s,showAnimation:a,className:l})}function G(){return e.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[e.jsxs("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px]",children:[e.jsx("div",{className:"absolute inset-0 rounded-full border border-primary/10 animate-[ping_3s_ease-in-out_infinite]"}),e.jsx("div",{className:"absolute inset-8 rounded-full border border-primary/10 animate-[ping_3s_ease-in-out_infinite_0.5s]"}),e.jsx("div",{className:"absolute inset-16 rounded-full border border-primary/10 animate-[ping_3s_ease-in-out_infinite_1s]"})]}),e.jsx("div",{className:"absolute top-1/4 left-1/4 w-2 h-2 bg-primary/20 rounded-full animate-bounce"}),e.jsx("div",{className:"absolute top-3/4 right-1/4 w-3 h-3 bg-primary/15 rounded-full animate-bounce delay-150"}),e.jsx("div",{className:"absolute top-1/2 right-1/3 w-2 h-2 bg-primary/20 rounded-full animate-bounce delay-300"})]})}export{q as R,z as a,H as u}; diff --git a/dashboard/dist/assets/router-zNjPR4CY.js b/dashboard/dist/assets/router-zNjPR4CY.js new file mode 100644 index 00000000..11fdc6ec --- /dev/null +++ b/dashboard/dist/assets/router-zNjPR4CY.js @@ -0,0 +1,4 @@ +function en(t,s){for(var e=0;eo[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var ur=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function we(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ne={exports:{}},It={};var Ne;function sn(){if(Ne)return It;Ne=1;var t=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function e(o,n,r){var i=null;if(r!==void 0&&(i=""+r),n.key!==void 0&&(i=""+n.key),"key"in n){r={};for(var a in n)a!=="key"&&(r[a]=n[a])}else r=n;return n=r.ref,{$$typeof:t,type:o,key:i,ref:n!==void 0?n:null,props:r}}return It.Fragment=s,It.jsx=e,It.jsxs=e,It}var ze;function nn(){return ze||(ze=1,ne.exports=sn()),ne.exports}var T=nn(),oe={exports:{}},A={};var Ue;function on(){if(Ue)return A;Ue=1;var t=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),e=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),h=Symbol.iterator;function d(p){return p===null||typeof p!="object"?null:(p=h&&p[h]||p["@@iterator"],typeof p=="function"?p:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function v(p,_,O){this.props=p,this.context=_,this.refs=y,this.updater=O||m}v.prototype.isReactComponent={},v.prototype.setState=function(p,_){if(typeof p!="object"&&typeof p!="function"&&p!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,p,_,"setState")},v.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function R(){}R.prototype=v.prototype;function b(p,_,O){this.props=p,this.context=_,this.refs=y,this.updater=O||m}var x=b.prototype=new R;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var P=Array.isArray;function I(){}var S={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function w(p,_,O){var M=O.ref;return{$$typeof:t,type:p,key:_,ref:M!==void 0?M:null,props:O}}function k(p,_){return w(p.type,_,p.props)}function L(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function N(p){var _={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(O){return _[O]})}var F=/\/+/g;function V(p,_){return typeof p=="object"&&p!==null&&p.key!=null?N(""+p.key):_.toString(36)}function H(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(I,I):(p.status="pending",p.then(function(_){p.status==="pending"&&(p.status="fulfilled",p.value=_)},function(_){p.status==="pending"&&(p.status="rejected",p.reason=_)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function G(p,_,O,M,j){var B=typeof p;(B==="undefined"||B==="boolean")&&(p=null);var D=!1;if(p===null)D=!0;else switch(B){case"bigint":case"string":case"number":D=!0;break;case"object":switch(p.$$typeof){case t:case s:D=!0;break;case u:return D=p._init,G(D(p._payload),_,O,M,j)}}if(D)return j=j(p),D=M===""?"."+V(p,0):M,P(j)?(O="",D!=null&&(O=D.replace(F,"$&/")+"/"),G(j,_,O,"",function(St){return St})):j!=null&&(L(j)&&(j=k(j,O+(j.key==null||p&&p.key===j.key?"":(""+j.key).replace(F,"$&/")+"/")+D)),_.push(j)),1;D=0;var q=M===""?".":M+":";if(P(p))for(var W=0;W"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(s){console.error(s)}}return t(),re.exports=rn(),re.exports}var Ve=E.use,jt=typeof window<"u"?E.useLayoutEffect:E.useEffect;function ie(t){const s=E.useRef({value:t,prev:null}),e=s.current.value;return t!==e&&(s.current={value:t,prev:e}),s.current.prev}function cn(t,s,e={},o={}){E.useEffect(()=>{if(!t.current||o.disabled||typeof IntersectionObserver!="function")return;const n=new IntersectionObserver(([r])=>{s(r)},e);return n.observe(t.current),()=>{n.disconnect()}},[s,e,o.disabled,t])}function ln(t){const s=E.useRef(null);return E.useImperativeHandle(t,()=>s.current,[]),s}var bs=!1;function Bt(t){return t[t.length-1]}function un(t){return typeof t=="function"}function nt(t,s){return un(t)?t(s):t}var fn=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,hn=()=>Object.create(null),ft=(t,s)=>ot(t,s,hn);function ot(t,s,e=()=>({}),o=0){if(t===s)return t;if(o>500)return s;const n=s,r=Ye(t)&&Ye(n);if(!r&&!(Ct(t)&&Ct(n)))return n;const i=r?t:Ke(t);if(!i)return n;const a=r?n:Ke(n);if(!a)return n;const l=i.length,c=a.length,u=r?new Array(c):e();let f=0;for(let h=0;h"u")return!0;const e=s.prototype;return!(!Ge(e)||!e.hasOwnProperty("isPrototypeOf"))}function Ge(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ye(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function pt(t,s,e){if(t===s)return!0;if(typeof t!=typeof s)return!1;if(Array.isArray(t)&&Array.isArray(s)){if(t.length!==s.length)return!1;for(let o=0,n=t.length;on||!pt(t[i],s[i],e)))return!1;return n===r}return!1}function Mt(t){let s,e;const o=new Promise((n,r)=>{s=n,e=r});return o.status="pending",o.resolve=n=>{o.status="resolved",o.value=n,s(n),t?.(n)},o.reject=n=>{o.status="rejected",e(n)},o}function dn(t){return typeof t?.message!="string"?!1:t.message.startsWith("Failed to fetch dynamically imported module")||t.message.startsWith("error loading dynamically imported module")||t.message.startsWith("Importing a module script failed")}function Dt(t){return!!(t&&typeof t=="object"&&typeof t.then=="function")}function pn(t){return t.replace(/[\x00-\x1f\x7f]/g,"")}function Je(t){let s;try{s=decodeURI(t)}catch{s=t.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return pn(s)}var mn=["http:","https:","mailto:","tel:"];function Kt(t,s){if(!t)return!1;try{const e=new URL(t);return!s.has(e.protocol)}catch{return!1}}function Lt(t){if(!t)return{path:t,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(t)&&!t.startsWith("//"))return{path:t,handledProtocolRelativeURL:!1};const s=/%25|%5C/gi;let e=0,o="",n;for(;(n=s.exec(t))!==null;)o+=Je(t.slice(e,n.index))+n[0],e=s.lastIndex;o=o+Je(e?t.slice(e):t);let r=!1;return o.startsWith("//")&&(r=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:r}}function gn(t){return/\s|[^\u0000-\u007F]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}function vn(t,s){if(t===s)return!0;if(t.length!==s.length)return!1;for(let e=0;e{r.next&&(r.prev?(r.prev.next=r.next,r.next.prev=r.prev,r.next=void 0,o&&(o.next=r,r.prev=o)):(r.next.prev=void 0,e=r.next,r.next=void 0,o&&(r.prev=o,o.next=r)),o=r)};return{get(r){const i=s.get(r);if(i)return n(i),i.value},set(r,i){if(s.size>=t&&e){const l=e;s.delete(l.key),l.next&&(e=l.next,l.next.prev=void 0),l===o&&(o=void 0)}const a=s.get(r);if(a)a.value=i,n(a);else{const l={key:r,value:i,prev:o};o&&(o.next=l),o=l,e||(e=l),s.set(r,l)}},clear(){s.clear(),e=void 0,o=void 0}}}var ht=4,ws=5;function yn(t){const s=t.indexOf("{");if(s===-1)return null;const e=t.indexOf("}",s);return e===-1||s+1>=t.length?null:[s,e]}function Pe(t,s,e=new Uint16Array(6)){const o=t.indexOf("/",s),n=o===-1?t.length:o,r=t.substring(s,n);if(!r||!r.includes("$"))return e[0]=0,e[1]=s,e[2]=s,e[3]=n,e[4]=n,e[5]=n,e;if(r==="$"){const a=t.length;return e[0]=2,e[1]=s,e[2]=s,e[3]=a,e[4]=a,e[5]=a,e}if(r.charCodeAt(0)===36)return e[0]=1,e[1]=s,e[2]=s+1,e[3]=n,e[4]=n,e[5]=n,e;const i=yn(r);if(i){const[a,l]=i,c=r.charCodeAt(a+1);if(c===45){if(a+2!S.skipOnParamError&&S.caseSensitive===b&&S.prefix===x&&S.suffix===P);if(I)m=I;else{const S=ce(1,e.fullPath??e.from,b,x,P);m=S,S.depth=r,S.parent=n,n.dynamic??=[],n.dynamic.push(S)}break}case 3:{const v=l.substring(g,d[1]),R=l.substring(d[4],y),b=u&&!!(v||R),x=v?b?v:v.toLowerCase():void 0,P=R?b?R:R.toLowerCase():void 0,I=!f&&n.optional?.find(S=>!S.skipOnParamError&&S.caseSensitive===b&&S.prefix===x&&S.suffix===P);if(I)m=I;else{const S=ce(3,e.fullPath??e.from,b,x,P);m=S,S.parent=n,S.depth=r,n.optional??=[],n.optional.push(S)}break}case 2:{const v=l.substring(g,d[1]),R=l.substring(d[4],y),b=u&&!!(v||R),x=v?b?v:v.toLowerCase():void 0,P=R?b?R:R.toLowerCase():void 0,I=ce(2,e.fullPath??e.from,b,x,P);m=I,I.parent=n,I.depth=r,n.wildcard??=[],n.wildcard.push(I)}}n=m}if(f&&e.children&&!e.isRoot&&e.id&&e.id.charCodeAt(e.id.lastIndexOf("/")+1)===95){const d=dt(e.fullPath??e.from);d.kind=ws,d.parent=n,r++,d.depth=r,n.pathless??=[],n.pathless.push(d),n=d}const h=(e.path||!e.children)&&!e.isRoot;if(h&&l.endsWith("/")){const d=dt(e.fullPath??e.from);d.kind=ht,d.parent=n,r++,d.depth=r,n.index=d,n=d}n.parse=e.options?.params?.parse??null,n.skipOnParamError=f,n.parsingPriority=e.options?.skipRouteOnParseError?.priority??0,h&&!n.route&&(n.route=e,n.fullPath=e.fullPath??e.from)}if(e.children)for(const l of e.children)Qt(t,s,l,a,n,r,i)}function ae(t,s){if(t.skipOnParamError&&!s.skipOnParamError)return-1;if(!t.skipOnParamError&&s.skipOnParamError)return 1;if(t.skipOnParamError&&s.skipOnParamError&&(t.parsingPriority||s.parsingPriority))return s.parsingPriority-t.parsingPriority;if(t.prefix&&s.prefix&&t.prefix!==s.prefix){if(t.prefix.startsWith(s.prefix))return-1;if(s.prefix.startsWith(t.prefix))return 1}if(t.suffix&&s.suffix&&t.suffix!==s.suffix){if(t.suffix.endsWith(s.suffix))return-1;if(s.suffix.endsWith(t.suffix))return 1}return t.prefix&&!s.prefix?-1:!t.prefix&&s.prefix?1:t.suffix&&!s.suffix?-1:!t.suffix&&s.suffix?1:t.caseSensitive&&!s.caseSensitive?-1:!t.caseSensitive&&s.caseSensitive?1:0}function st(t){if(t.pathless)for(const s of t.pathless)st(s);if(t.static)for(const s of t.static.values())st(s);if(t.staticInsensitive)for(const s of t.staticInsensitive.values())st(s);if(t.dynamic?.length){t.dynamic.sort(ae);for(const s of t.dynamic)st(s)}if(t.optional?.length){t.optional.sort(ae);for(const s of t.optional)st(s)}if(t.wildcard?.length){t.wildcard.sort(ae);for(const s of t.wildcard)st(s)}}function dt(t){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function ce(t,s,e,o,n){return{kind:t,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:s,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:e,prefix:o,suffix:n}}function Sn(t,s){const e=dt("/"),o=new Uint16Array(6);for(const n of t)Qt(!1,o,n,1,e,0);st(e),s.masksTree=e,s.flatCache=Ft(1e3)}function Rn(t,s){t||="/";const e=s.flatCache.get(t);if(e)return e;const o=Ce(t,s.masksTree);return s.flatCache.set(t,o),o}function _n(t,s,e,o,n){t||="/",o||="/";const r=s?`case\0${t}`:t;let i=n.singleCache.get(r);return i||(i=dt("/"),Qt(s,new Uint16Array(6),{from:t},1,i,0),n.singleCache.set(r,i)),Ce(o,i,e)}function xn(t,s,e=!1){const o=e?t:`nofuzz\0${t}`,n=s.matchCache.get(o);if(n!==void 0)return n;t||="/";let r;try{r=Ce(t,s.segmentTree,e)}catch(i){if(i instanceof URIError)r=null;else throw i}return r&&(r.branch=Pn(r.route)),s.matchCache.set(o,r),r}function bn(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function wn(t,s=!1,e){const o=dt(t.fullPath),n=new Uint16Array(6),r={},i={};let a=0;return Qt(s,n,t,1,o,0,l=>{if(e?.(l,a),l.id in r&&et(),r[l.id]=l,a!==0&&l.path){const c=bn(l.fullPath);(!i[c]||l.fullPath.endsWith("/"))&&(i[c]=l)}a++}),st(o),{processedTree:{segmentTree:o,singleCache:Ft(1e3),matchCache:Ft(1e3),flatCache:null,masksTree:null},routesById:r,routesByPath:i}}function Ce(t,s,e=!1){const o=t.split("/"),n=Mn(t,o,s,e);if(!n)return null;const[r]=Ps(t,o,n);return{route:n.node.route,rawParams:r,parsedParams:n.parsedParams}}function Ps(t,s,e){const o=Cn(e.node);let n=null;const r=Object.create(null);let i=e.extract?.part??0,a=e.extract?.node??0,l=e.extract?.path??0,c=e.extract?.segment??0;for(;a=0;L--){const N=h.optional[L];a.push({node:N,index:d,skipped:w,depth:k,statics:y,dynamics:v,optionals:R,extract:b,rawParams:x,parsedParams:P})}if(!I)for(let L=h.optional.length-1;L>=0;L--){const N=h.optional[L],{prefix:F,suffix:V}=N;if(F||V){const H=N.caseSensitive?S:C??=S.toLowerCase();if(F&&!H.startsWith(F)||V&&!H.endsWith(V))continue}a.push({node:N,index:d+1,skipped:m,depth:k,statics:y,dynamics:v,optionals:R+1,extract:b,rawParams:x,parsedParams:P})}}if(!I&&h.dynamic&&S)for(let w=h.dynamic.length-1;w>=0;w--){const k=h.dynamic[w],{prefix:L,suffix:N}=k;if(L||N){const F=k.caseSensitive?S:C??=S.toLowerCase();if(L&&!F.startsWith(L)||N&&!F.endsWith(N))continue}a.push({node:k,index:d+1,skipped:m,depth:g+1,statics:y,dynamics:v+1,optionals:R,extract:b,rawParams:x,parsedParams:P})}if(!I&&h.staticInsensitive){const w=h.staticInsensitive.get(C??=S.toLowerCase());w&&a.push({node:w,index:d+1,skipped:m,depth:g+1,statics:y+1,dynamics:v,optionals:R,extract:b,rawParams:x,parsedParams:P})}if(!I&&h.static){const w=h.static.get(S);w&&a.push({node:w,index:d+1,skipped:m,depth:g+1,statics:y+1,dynamics:v,optionals:R,extract:b,rawParams:x,parsedParams:P})}if(h.pathless){const w=g+1;for(let k=h.pathless.length-1;k>=0;k--){const L=h.pathless[k];a.push({node:L,index:d,skipped:m,depth:w,statics:y,dynamics:v,optionals:R,extract:b,rawParams:x,parsedParams:P})}}}if(u&&l)return Tt(l,u)?u:l;if(u)return u;if(l)return l;if(o&&c){let f=c.index;for(let d=0;dt.statics||s.statics===t.statics&&(s.dynamics>t.dynamics||s.dynamics===t.dynamics&&(s.optionals>t.optionals||s.optionals===t.optionals&&((s.node.kind===ht)>(t.node.kind===ht)||s.node.kind===ht==(t.node.kind===ht)&&s.depth>t.depth))):!0}function Wt(t){return Me(t.filter(s=>s!==void 0).join("/"))}function Me(t){return t.replace(/\/{2,}/g,"/")}function Cs(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function it(t){const s=t.length;return s>1&&t[s-1]==="/"?t.replace(/\/{1,}$/,""):t}function Ms(t){return it(Cs(t))}function Gt(t,s){return t?.endsWith("/")&&t!=="/"&&t!==`${s}/`?t.slice(0,-1):t}function En(t,s,e){return Gt(t,e)===Gt(s,e)}function In({base:t,to:s,trailingSlash:e="never",cache:o}){const n=s.startsWith("/"),r=!n&&s===".";let i;if(o){i=n?s:r?t:t+"\0"+s;const f=o.get(i);if(f)return f}let a;if(r)a=t.split("/");else if(n)a=s.split("/");else{for(a=t.split("/");a.length>1&&Bt(a)==="";)a.pop();const f=s.split("/");for(let h=0,d=f.length;h1&&(Bt(a)===""?e==="never"&&a.pop():e==="always"&&a.push(""));let l,c="";for(let f=0;f0&&(c+="/");const h=a[f];if(!h)continue;l=Pe(h,0,l);const d=l[0];if(d===0){c+=h;continue}const m=l[5],g=h.substring(0,l[1]),y=h.substring(l[4],m),v=h.substring(l[2],l[3]);d===1?c+=g||y?`${g}{$${v}}${y}`:`$${v}`:d===2?c+=g||y?`${g}{$}${y}`:"$":c+=`${g}{-$${v}}${y}`}c=Me(c);const u=c||"/";return i&&o&&o.set(i,u),u}function Ln(t){const s=new Map(t.map(n=>[encodeURIComponent(n),n])),e=Array.from(s.keys()).map(n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(e,"g");return n=>n.replace(o,r=>s.get(r)??r)}function ue(t,s,e){const o=s[t];return typeof o!="string"?o:t==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(o)?o:o.split("/").map(n=>Ze(n,e)).join("/"):Ze(o,e)}function Xe({path:t,params:s,decoder:e,...o}){let n=!1;const r=Object.create(null);if(!t||t==="/")return{interpolatedPath:"/",usedParams:r,isMissingParams:n};if(!t.includes("$"))return{interpolatedPath:t,usedParams:r,isMissingParams:n};const i=t.length;let a=0,l,c="";for(;a{s=nt(o,s)||s},persist:()=>{try{t.setItem(On,JSON.stringify(s))}catch{}}}}var Qe=kn(),An=t=>t.state.__TSR_key||t.href;function jn(t){const s=[];let e;for(;e=t.parentNode;)s.push(`${t.tagName}:nth-child(${Array.prototype.indexOf.call(e.children,t)+1})`),t=e;return`${s.reverse().join(" > ")}`.toLowerCase()}var Ut=!1,Ot="window",ts="data-scroll-restoration-id";function Bn(t,s){if(!Qe)return;const e=Qe;if((t.options.scrollRestoration??!1)&&(t.isScrollRestoring=!0),t.isScrollRestorationSetup||!e)return;t.isScrollRestorationSetup=!0,Ut=!1;const o=t.options.getScrollRestorationKey||An,n=new Map;window.history.scrollRestoration="manual";const r=a=>{if(!(Ut||!t.isScrollRestoring))if(a.target===document||a.target===window)n.set(Ot,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const l=a.target;n.set(l,{scrollX:l.scrollLeft||0,scrollY:l.scrollTop||0})}},i=a=>{if(!t.isScrollRestoring||!a||n.size===0||!e)return;const l=e.state[a]||={};for(const[c,u]of n){let f;if(c===Ot)f=Ot;else if(c.isConnected){const h=c.getAttribute(ts);f=h?`[${ts}="${h}"]`:jn(c)}f&&(l[f]=u)}};document.addEventListener("scroll",r,!0),t.subscribe("onBeforeLoad",a=>{i(a.fromLocation?o(a.fromLocation):void 0),n.clear()}),window.addEventListener("pagehide",()=>{i(o(t.stores.resolvedLocation.state??t.stores.location.state)),e.persist()}),t.subscribe("onRendered",a=>{const l=o(a.toLocation),c=t.options.scrollRestorationBehavior,u=t.options.scrollToTopSelectors;if(n.clear(),!t.resetNextScroll){t.resetNextScroll=!0;return}if(!(typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))){Ut=!0;try{const f=t.isScrollRestoring?e.state[l]:void 0;let h=!1;if(f)for(const d in f){const m=f[d];if(!Ct(m))continue;const{scrollX:g,scrollY:y}=m;if(!(!Number.isFinite(g)||!Number.isFinite(y))){if(d===Ot)window.scrollTo({top:y,left:g,behavior:c}),h=!0;else if(d){let v;try{v=document.querySelector(d)}catch{continue}v&&(v.scrollLeft=g,v.scrollTop=y,h=!0)}}}if(!h){const d=t.history.location.hash.slice(1);if(d){const m=window.history.state?.__hashScrollIntoViewOptions??!0;if(m){const g=document.getElementById(d);g&&g.scrollIntoView(m)}}else{const m={top:0,left:0,behavior:c};if(window.scrollTo(m),u)for(const g of u){if(g===Ot)continue;const y=typeof g=="function"?g():document.querySelector(g);y&&y.scrollTo(m)}}}}finally{Ut=!1}t.isScrollRestoring&&e.set(f=>(f[l]||={},f))}})}function Dn(t,s=String){const e=new URLSearchParams;for(const o in t){const n=t[o];n!==void 0&&e.set(o,s(n))}return e.toString()}function fe(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function Fn(t){const s=new URLSearchParams(t),e=Object.create(null);for(const[o,n]of s.entries()){const r=e[o];r==null?e[o]=fe(n):Array.isArray(r)?r.push(fe(n)):e[o]=[r,fe(n)]}return e}var Nn=Un(JSON.parse),zn=Hn(JSON.stringify,JSON.parse);function Un(t){return s=>{s[0]==="?"&&(s=s.substring(1));const e=Fn(s);for(const o in e){const n=e[o];if(typeof n=="string")try{e[o]=t(n)}catch{}}return e}}function Hn(t,s){const e=typeof s=="function";function o(n){if(typeof n=="object"&&n!==null)try{return t(n)}catch{}else if(e&&typeof n=="string")try{return s(n),t(n)}catch{}return n}return n=>{const r=Dn(n,o);return r?`?${r}`:""}}var mt="__root__";function Wn(t){if(t.statusCode=t.statusCode||t.code||307,!t._builtLocation&&!t.reloadDocument&&typeof t.href=="string")try{new URL(t.href),t.reloadDocument=!0}catch{}const s=new Headers(t.headers);t.href&&s.get("Location")===null&&s.set("Location",t.href);const e=new Response(null,{status:t.statusCode,headers:s});if(e.options=t,t.throw)throw e;return e}function Z(t){return t instanceof Response&&!!t.options}function $n(t){return{input:({url:s})=>{for(const e of t)s=Se(e,s);return s},output:({url:s})=>{for(let e=t.length-1;e>=0;e--)s=Es(t[e],s);return s}}}function Vn(t){const s=Ms(t.basepath),e=`/${s}`,o=`${e}/`,n=t.caseSensitive?e:e.toLowerCase(),r=t.caseSensitive?o:o.toLowerCase();return{input:({url:i})=>{const a=t.caseSensitive?i.pathname:i.pathname.toLowerCase();return a===n?i.pathname="/":a.startsWith(r)&&(i.pathname=i.pathname.slice(e.length)),i},output:({url:i})=>(i.pathname=Wt(["/",s,i.pathname]),i)}}function Se(t,s){const e=t?.input?.({url:s});if(e){if(typeof e=="string")return new URL(e);if(e instanceof URL)return e}return s}function Es(t,s){const e=t?.output?.({url:s});if(e){if(typeof e=="string")return new URL(e);if(e instanceof URL)return e}return s}function qn(t,s){const{createMutableStore:e,createReadonlyStore:o,batch:n,init:r}=s,i=new Map,a=new Map,l=new Map,c=e(t.status),u=e(t.loadedAt),f=e(t.isLoading),h=e(t.isTransitioning),d=e(t.location),m=e(t.resolvedLocation),g=e(t.statusCode),y=e(t.redirect),v=e([]),R=e([]),b=e([]),x=o(()=>he(i,v.state)),P=o(()=>he(a,R.state)),I=o(()=>he(l,b.state)),S=o(()=>v.state[0]),C=o(()=>v.state.some($=>i.get($)?.state.status==="pending")),w=o(()=>({locationHref:d.state.href,resolvedLocationHref:m.state?.href,status:c.state})),k=o(()=>({status:c.state,loadedAt:u.state,isLoading:f.state,isTransitioning:h.state,matches:x.state,location:d.state,resolvedLocation:m.state,statusCode:g.state,redirect:y.state})),L=Ft(64);function N($){let ct=L.get($);return ct||(ct=o(()=>{const Et=v.state;for(const yt of Et){const p=i.get(yt);if(p&&p.routeId===$)return p.state}}),L.set($,ct)),ct}const F={status:c,loadedAt:u,isLoading:f,isTransitioning:h,location:d,resolvedLocation:m,statusCode:g,redirect:y,matchesId:v,pendingMatchesId:R,cachedMatchesId:b,activeMatchesSnapshot:x,pendingMatchesSnapshot:P,cachedMatchesSnapshot:I,firstMatchId:S,hasPendingMatches:C,matchRouteReactivity:w,activeMatchStoresById:i,pendingMatchStoresById:a,cachedMatchStoresById:l,__store:k,getMatchStoreByRouteId:N,setActiveMatches:V,setPendingMatches:H,setCachedMatches:G};V(t.matches),r?.(F);function V($){de($,i,v,e,n)}function H($){de($,a,R,e,n)}function G($){de($,l,b,e,n)}return F}function he(t,s){const e=[];for(const o of s){const n=t.get(o);n&&e.push(n.state)}return e}function de(t,s,e,o,n){const r=t.map(a=>a.id),i=new Set(r);n(()=>{for(const a of s.keys())i.has(a)||s.delete(a);for(const a of t){const l=s.get(a.id);if(!l){const c=o(a);c.routeId=a.routeId,s.set(a.id,c);continue}l.routeId=a.routeId,l.state!==a&&l.setState(()=>a)}vn(e.state,r)||e.setState(()=>r)})}var Re=t=>{if(!t.rendered)return t.rendered=!0,t.onReady?.()},Kn=t=>t.stores.matchesId.state.some(s=>t.stores.activeMatchStoresById.get(s)?.state._forcePending),te=(t,s)=>!!(t.preload&&!t.router.stores.activeMatchStoresById.has(s)),gt=(t,s,e=!0)=>{const o={...t.router.options.context??{}},n=e?s:s-1;for(let r=0;r<=n;r++){const i=t.matches[r];if(!i)continue;const a=t.router.getMatch(i.id);a&&Object.assign(o,a.__routeContext,a.__beforeLoadContext)}return o},es=(t,s)=>{if(!t.matches.length)return;const e=s.routeId,o=t.matches.findIndex(i=>i.routeId===t.router.routeTree.id),n=o>=0?o:0;let r=e?t.matches.findIndex(i=>i.routeId===e):t.firstBadMatchIndex??t.matches.length-1;r<0&&(r=n);for(let i=r;i>=0;i--){const a=t.matches[i];if(t.router.looseRoutesById[a.routeId].options.notFoundComponent)return i}return e?r:n},rt=(t,s,e)=>{if(!(!Z(e)&&!Y(e)))throw Z(e)&&e.redirectHandled&&!e.options.reloadDocument||(s&&(s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.loaderPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,s._nonReactive.loaderPromise=void 0,s._nonReactive.error=e,t.updateMatch(s.id,o=>({...o,status:Z(e)?"redirected":o.status==="pending"?"success":o.status,context:gt(t,s.index),isFetching:!1,error:e})),Y(e)&&!e.routeId&&(e.routeId=s.routeId),s._nonReactive.loadPromise?.resolve()),Z(e)&&(t.rendered=!0,e.options._fromLocation=t.location,e.redirectHandled=!0,e=t.router.resolveRedirect(e))),e},Is=(t,s)=>{const e=t.router.getMatch(s);return!!(!e||e._nonReactive.dehydrated)},ss=(t,s,e)=>{const o=gt(t,e);t.updateMatch(s,n=>({...n,context:o}))},kt=(t,s,e,o)=>{const{id:n,routeId:r}=t.matches[s],i=t.router.looseRoutesById[r];if(e instanceof Promise)throw e;e.routerCode=o,t.firstBadMatchIndex??=s,rt(t,t.router.getMatch(n),e);try{i.options.onError?.(e)}catch(a){e=a,rt(t,t.router.getMatch(n),e)}t.updateMatch(n,a=>(a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,a._nonReactive.loadPromise?.resolve(),{...a,error:e,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!t.preload&&!Z(e)&&!Y(e)&&(t.serialError??=e)},Ls=(t,s,e,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const n=e.options.pendingMs??t.router.options.defaultPendingMs;if(t.onReady&&!te(t,s)&&(e.options.loader||e.options.beforeLoad||Os(e))&&typeof n=="number"&&n!==1/0&&(e.options.pendingComponent??t.router.options?.defaultPendingComponent)){const r=setTimeout(()=>{Re(t)},n);o._nonReactive.pendingTimeout=r}},Gn=(t,s,e)=>{const o=t.router.getMatch(s);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Ls(t,s,e,o);const n=()=>{const r=t.router.getMatch(s);r.preload&&(r.status==="redirected"||r.status==="notFound")&&rt(t,r,r.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(n):n()},Yn=(t,s,e,o)=>{const n=t.router.getMatch(s);let r=n._nonReactive.loadPromise;n._nonReactive.loadPromise=Mt(()=>{r?.resolve(),r=void 0});const{paramsError:i,searchError:a}=n;i&&kt(t,e,i,"PARSE_PARAMS"),a&&kt(t,e,a,"VALIDATE_SEARCH"),Ls(t,s,o,n);const l=new AbortController;let c=!1;const u=()=>{c||(c=!0,t.updateMatch(s,x=>({...x,isFetching:"beforeLoad",fetchCount:x.fetchCount+1,abortController:l})))},f=()=>{n._nonReactive.beforeLoadPromise?.resolve(),n._nonReactive.beforeLoadPromise=void 0,t.updateMatch(s,x=>({...x,isFetching:!1}))};if(!o.options.beforeLoad){t.router.batch(()=>{u(),f()});return}n._nonReactive.beforeLoadPromise=Mt();const h={...gt(t,e,!1),...n.__routeContext},{search:d,params:m,cause:g}=n,y=te(t,s),v={search:d,abortController:l,params:m,preload:y,context:h,location:t.location,navigate:x=>t.router.navigate({...x,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:y?"preload":g,matches:t.matches,routeId:o.id,...t.router.options.additionalContext},R=x=>{if(x===void 0){t.router.batch(()=>{u(),f()});return}(Z(x)||Y(x))&&(u(),kt(t,e,x,"BEFORE_LOAD")),t.router.batch(()=>{u(),t.updateMatch(s,P=>({...P,__beforeLoadContext:x})),f()})};let b;try{if(b=o.options.beforeLoad(v),Dt(b))return u(),b.catch(x=>{kt(t,e,x,"BEFORE_LOAD")}).then(R)}catch(x){u(),kt(t,e,x,"BEFORE_LOAD")}R(b)},Jn=(t,s)=>{const{id:e,routeId:o}=t.matches[s],n=t.router.looseRoutesById[o],r=()=>a(),i=()=>Yn(t,e,s,n),a=()=>{if(Is(t,e))return;const l=Gn(t,e,n);return Dt(l)?l.then(i):i()};return r()},Xn=(t,s,e)=>{const o=t.router.getMatch(s);if(!o||!e.options.head&&!e.options.scripts&&!e.options.headers)return;const n={ssr:t.router.options.ssr,matches:t.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([e.options.head?.(n),e.options.scripts?.(n),e.options.headers?.(n)]).then(([r,i,a])=>({meta:r?.meta,links:r?.links,headScripts:r?.scripts,headers:a,scripts:i,styles:r?.styles}))},Ts=(t,s,e,o,n)=>{const r=s[o-1],{params:i,loaderDeps:a,abortController:l,cause:c}=t.router.getMatch(e),u=gt(t,o),f=te(t,e);return{params:i,deps:a,preload:!!f,parentMatchPromise:r,abortController:l,context:u,location:t.location,navigate:h=>t.router.navigate({...h,_fromLocation:t.location}),cause:f?"preload":c,route:n,...t.router.options.additionalContext}},ns=async(t,s,e,o,n)=>{try{const r=t.router.getMatch(e);try{(!(bs??t.router.isServer)||r.ssr===!0)&&Nt(n);const i=n.options.loader,a=typeof i=="function"?i:i?.handler,l=a?.(Ts(t,s,e,o,n)),c=!!a&&Dt(l);if((c||n._lazyPromise||n._componentsPromise||n.options.head||n.options.scripts||n.options.headers||r._nonReactive.minPendingPromise)&&t.updateMatch(e,f=>({...f,isFetching:"loader"})),a){const f=c?await l:l;rt(t,t.router.getMatch(e),f),f!==void 0&&t.updateMatch(e,h=>({...h,loaderData:f}))}n._lazyPromise&&await n._lazyPromise;const u=r._nonReactive.minPendingPromise;u&&await u,n._componentsPromise&&await n._componentsPromise,t.updateMatch(e,f=>({...f,error:void 0,context:gt(t,o),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(i){let a=i;if(a?.name==="AbortError"){if(r.abortController.signal.aborted){r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loaderPromise=void 0;return}t.updateMatch(e,c=>({...c,status:c.status==="pending"?"success":c.status,isFetching:!1,context:gt(t,o)}));return}const l=r._nonReactive.minPendingPromise;l&&await l,Y(i)&&await n.options.notFoundComponent?.preload?.(),rt(t,t.router.getMatch(e),i);try{n.options.onError?.(i)}catch(c){a=c,rt(t,t.router.getMatch(e),c)}!Z(a)&&!Y(a)&&await Nt(n,["errorComponent"]),t.updateMatch(e,c=>({...c,error:a,context:gt(t,o),status:"error",isFetching:!1}))}}catch(r){const i=t.router.getMatch(e);i&&(i._nonReactive.loaderPromise=void 0),rt(t,i,r)}},Zn=async(t,s,e)=>{async function o(d,m,g,y,v){const R=Date.now()-m.updatedAt,b=d?v.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:v.options.staleTime??t.router.options.defaultStaleTime??0,x=v.options.shouldReload,P=typeof x=="function"?x(Ts(t,s,n,e,v)):x,{status:I,invalid:S}=y,C=R>=b&&(!!t.forceStaleReload||y.cause==="enter"||g!==void 0&&g!==y.id);i=I==="success"&&(S||(P??C)),d&&v.options.preload===!1||(i&&!t.sync&&u?(a=!0,(async()=>{try{await ns(t,s,n,e,v);const w=t.router.getMatch(n);w._nonReactive.loaderPromise?.resolve(),w._nonReactive.loadPromise?.resolve(),w._nonReactive.loaderPromise=void 0,w._nonReactive.loadPromise=void 0}catch(w){Z(w)&&await t.router.navigate(w.options)}})()):I!=="success"||i?await ns(t,s,n,e,v):ss(t,n,e))}const{id:n,routeId:r}=t.matches[e];let i=!1,a=!1;const l=t.router.looseRoutesById[r],c=l.options.loader,u=((typeof c=="function"?void 0:c?.staleReloadMode)??t.router.options.defaultStaleReloadMode)!=="blocking";if(Is(t,n)){if(!t.router.getMatch(n))return t.matches[e];ss(t,n,e)}else{const d=t.router.getMatch(n),m=t.router.stores.matchesId.state[e],g=(m&&t.router.stores.activeMatchStoresById.get(m)||null)?.routeId===r?m:t.router.stores.activeMatchesSnapshot.state.find(v=>v.routeId===r)?.id,y=te(t,n);if(d._nonReactive.loaderPromise){if(d.status==="success"&&!t.sync&&!d.preload&&u)return d;await d._nonReactive.loaderPromise;const v=t.router.getMatch(n),R=v._nonReactive.error||v.error;R&&rt(t,v,R),v.status==="pending"&&await o(y,d,g,v,l)}else{const v=y&&!t.router.stores.activeMatchStoresById.has(n),R=t.router.getMatch(n);R._nonReactive.loaderPromise=Mt(),v!==R.preload&&t.updateMatch(n,b=>({...b,preload:v})),await o(y,d,g,R,l)}}const f=t.router.getMatch(n);a||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve(),f._nonReactive.loadPromise=void 0),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,a||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;const h=a?f.isFetching:!1;return h!==f.isFetching||f.invalid!==!1?(t.updateMatch(n,d=>({...d,isFetching:h,invalid:!1})),t.router.getMatch(n)):f};async function os(t){const s=t,e=[];Kn(s.router)&&Re(s);let o;for(let h=0;h({...v,...y?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:c},isFetching:!1})),u=h,await Nt(m,["notFoundComponent"])}else if(!s.preload){const h=s.matches[0];h.globalNotFound||s.router.getMatch(h.id)?.globalNotFound&&s.updateMatch(h.id,d=>({...d,globalNotFound:!1,error:void 0}))}if(s.serialError&&s.firstBadMatchIndex!==void 0){const h=s.router.looseRoutesById[s.matches[s.firstBadMatchIndex].routeId];await Nt(h,["errorComponent"])}for(let h=0;h<=u;h++){const{id:d,routeId:m}=s.matches[h],g=s.router.looseRoutesById[m];try{const y=Xn(s,d,g);if(y){const v=await y;s.updateMatch(d,R=>({...R,...v}))}}catch(y){console.error(`Error executing head for route ${m}:`,y)}}const f=Re(s);if(Dt(f)&&await f,c)throw c;if(s.serialError&&!s.preload&&!s.onReady)throw s.serialError;return s.matches}function rs(t,s){const e=s.map(o=>t.options[o]?.preload?.()).filter(Boolean);if(e.length!==0)return Promise.all(e)}function Nt(t,s=$t){!t._lazyLoaded&&t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(o=>{const{id:n,...r}=o.options;Object.assign(t.options,r),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0);const e=()=>t._componentsLoaded?void 0:s===$t?(()=>{if(t._componentsPromise===void 0){const o=rs(t,$t);o?t._componentsPromise=o.then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0}):t._componentsLoaded=!0}return t._componentsPromise})():rs(t,s);return t._lazyPromise?t._lazyPromise.then(e):e()}function Os(t){for(const s of $t)if(t.options[s]?.preload)return!0;return!1}var $t=["component","errorComponent","pendingComponent","notFoundComponent"],at="__TSR_index",is="popstate",as="beforeunload";function Qn(t){let s=t.getLocation();const e=new Set,o=i=>{s=t.getLocation(),e.forEach(a=>a({location:s,action:i}))},n=i=>{t.notifyOnIndexChange??!0?o(i):s=t.getLocation()},r=async({task:i,navigateOpts:a,...l})=>{if(a?.ignoreBlocker??!1){i();return}const c=t.getBlockers?.()??[],u=l.type==="PUSH"||l.type==="REPLACE";if(typeof document<"u"&&c.length&&u)for(const f of c){const h=Yt(l.path,l.state);if(await f.blockerFn({currentLocation:s,nextLocation:h,action:l.type})){t.onBlocked?.();return}}i()};return{get location(){return s},get length(){return t.getLength()},subscribers:e,subscribe:i=>(e.add(i),()=>{e.delete(i)}),push:(i,a,l)=>{const c=s.state[at];a=cs(c+1,a),r({task:()=>{t.pushState(i,a),o({type:"PUSH"})},navigateOpts:l,type:"PUSH",path:i,state:a})},replace:(i,a,l)=>{const c=s.state[at];a=cs(c,a),r({task:()=>{t.replaceState(i,a),o({type:"REPLACE"})},navigateOpts:l,type:"REPLACE",path:i,state:a})},go:(i,a)=>{r({task:()=>{t.go(i),n({type:"GO",index:i})},navigateOpts:a,type:"GO"})},back:i=>{r({task:()=>{t.back(i?.ignoreBlocker??!1),n({type:"BACK"})},navigateOpts:i,type:"BACK"})},forward:i=>{r({task:()=>{t.forward(i?.ignoreBlocker??!1),n({type:"FORWARD"})},navigateOpts:i,type:"FORWARD"})},canGoBack:()=>s.state[at]!==0,createHref:i=>t.createHref(i),block:i=>{if(!t.setBlockers)return()=>{};const a=t.getBlockers?.()??[];return t.setBlockers([...a,i]),()=>{const l=t.getBlockers?.()??[];t.setBlockers?.(l.filter(c=>c!==i))}},flush:()=>t.flush?.(),destroy:()=>t.destroy?.(),notify:o}}function cs(t,s){s||(s={});const e=Ee();return{...s,key:e,__TSR_key:e,[at]:t}}function to(t){const s=typeof document<"u"?window:void 0,e=s.history.pushState,o=s.history.replaceState;let n=[];const r=()=>n,i=C=>n=C,a=(C=>C),l=(()=>Yt(`${s.location.pathname}${s.location.search}${s.location.hash}`,s.history.state));if(!s.history.state?.__TSR_key&&!s.history.state?.key){const C=Ee();s.history.replaceState({[at]:0,key:C,__TSR_key:C},"")}let c=l(),u,f=!1,h=!1,d=!1,m=!1;const g=()=>c;let y,v;const R=()=>{y&&(S._ignoreSubscribers=!0,(y.isPush?s.history.pushState:s.history.replaceState)(y.state,"",y.href),S._ignoreSubscribers=!1,y=void 0,v=void 0,u=void 0)},b=(C,w,k)=>{const L=a(w);v||(u=c),c=Yt(w,k),y={href:L,state:k,isPush:y?.isPush||C==="push"},v||(v=Promise.resolve().then(()=>R()))},x=C=>{c=l(),S.notify({type:C})},P=async()=>{if(h){h=!1;return}const C=l(),w=C.state[at]-c.state[at],k=w===1,L=w===-1,N=!k&&!L||f;f=!1;const F=N?"GO":L?"BACK":"FORWARD",V=N?{type:"GO",index:w}:{type:L?"BACK":"FORWARD"};if(d)d=!1;else{const H=r();if(typeof document<"u"&&H.length){for(const G of H)if(await G.blockerFn({currentLocation:c,nextLocation:C,action:F})){h=!0,s.history.go(1),S.notify(V);return}}}c=l(),S.notify(V)},I=C=>{if(m){m=!1;return}let w=!1;const k=r();if(typeof document<"u"&&k.length)for(const L of k){const N=L.enableBeforeUnload??!0;if(N===!0){w=!0;break}if(typeof N=="function"&&N()===!0){w=!0;break}}if(w)return C.preventDefault(),C.returnValue=""},S=Qn({getLocation:g,getLength:()=>s.history.length,pushState:(C,w)=>b("push",C,w),replaceState:(C,w)=>b("replace",C,w),back:C=>(C&&(d=!0),m=!0,s.history.back()),forward:C=>{C&&(d=!0),m=!0,s.history.forward()},go:C=>{f=!0,s.history.go(C)},createHref:C=>a(C),flush:R,destroy:()=>{s.history.pushState=e,s.history.replaceState=o,s.removeEventListener(as,I,{capture:!0}),s.removeEventListener(is,P)},onBlocked:()=>{u&&c!==u&&(c=u)},getBlockers:r,setBlockers:i,notifyOnIndexChange:!1});return s.addEventListener(as,I,{capture:!0}),s.addEventListener(is,P),s.history.pushState=function(...C){const w=e.apply(s.history,C);return S._ignoreSubscribers||x("PUSH"),w},s.history.replaceState=function(...C){const w=o.apply(s.history,C);return S._ignoreSubscribers||x("REPLACE"),w},S}function eo(t){let s=t.replace(/[\x00-\x1f\x7f]/g,"");return s.startsWith("//")&&(s="/"+s.replace(/^\/+/,"")),s}function Yt(t,s){const e=eo(t),o=e.indexOf("#"),n=e.indexOf("?"),r=Ee();return{href:e,pathname:e.substring(0,o>0?n>0?Math.min(o,n):o:n>0?n:e.length),hash:o>-1?e.substring(o):"",search:n>-1?e.slice(n,o===-1?void 0:o):"",state:s||{[at]:0,key:r,__TSR_key:r}}}function Ee(){return(Math.random()+1).toString(36).substring(7)}function wt(t,s){const e=s,o=t;return{fromLocation:e,toLocation:o,pathChanged:e?.pathname!==o.pathname,hrefChanged:e?.href!==o.href,hashChanged:e?.hash!==o.hash}}var so=class{constructor(t,s){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=e=>e(),this.update=e=>{const o=this.options,n=this.basepath??o?.basepath??"/",r=this.basepath===void 0,i=o?.rewrite;if(this.options={...o,...e},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Ln(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=to()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let u;this.resolvePathCache=Ft(1e3),u=this.buildRouteTree(),this.setRoutes(u)}if(!this.stores&&this.latestLocation){const u=this.getStoreConfig(this);this.batch=u.batch,this.stores=qn(oo(this.latestLocation),u),Bn(this)}let a=!1;const l=this.options.basepath??"/",c=this.options.rewrite;if(r||n!==l||i!==c){this.basepath=l;const u=[],f=Ms(l);f&&f!=="/"&&u.push(Vn({basepath:l})),c&&u.push(c),this.rewrite=u.length===0?void 0:u.length===1?u[0]:$n(u),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.setState(()=>this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const e=wn(this.routeTree,this.options.caseSensitive,(o,n)=>{o.init({originalIndex:n})});return this.options.routeMasks&&Sn(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,o)=>{const n={eventType:e,fn:o};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(o=>{o.eventType===e.type&&o.fn(e)})},this.parseLocation=(e,o)=>{const n=({pathname:l,search:c,hash:u,href:f,state:h})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(l)){const v=this.options.parseSearch(c),R=this.options.stringifySearch(v);return{href:l+R+u,publicHref:l+R+u,pathname:Lt(l).path,external:!1,searchStr:R,search:ft(o?.search,v),hash:Lt(u.slice(1)).path,state:ot(o?.state,h)}}const d=new URL(f,this.origin),m=Se(this.rewrite,d),g=this.options.parseSearch(m.search),y=this.options.stringifySearch(g);return m.search=y,{href:m.href.replace(m.origin,""),publicHref:f,pathname:Lt(m.pathname).path,external:!!this.rewrite&&m.origin!==this.origin,searchStr:y,search:ft(o?.search,g),hash:Lt(m.hash.slice(1)).path,state:ot(o?.state,h)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){const l=n(i);return l.state.key=r.state.key,l.state.__TSR_key=r.state.__TSR_key,delete l.state.__tempLocation,{...l,maskedLocation:r}}return r},this.resolvePathWithBase=(e,o)=>In({base:e,to:Me(o),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,o,n)=>typeof e=="string"?this.matchRoutesInternal({pathname:e,search:o},n):this.matchRoutesInternal(e,o),this.getMatchedRoutes=e=>ro({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{const o=this.getMatch(e);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingMatchesId.state.forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.state.forEach(e=>{if(this.stores.pendingMatchStoresById.has(e))return;const o=this.stores.activeMatchStoresById.get(e)?.state;o&&(o.status==="pending"||o.isFetching==="loader")&&this.cancelMatch(e)})},this.buildLocation=e=>{const o=(r={})=>{const i=r._fromLocation||this.pendingBuiltLocation||this.latestLocation,a=this.matchRoutesLightweight(i);r.from;const l=r.unsafeRelative==="path"?i.pathname:r.from??a.fullPath,c=this.resolvePathWithBase(l,"."),u=a.search,f=Object.assign(Object.create(null),a.params),h=r.to?this.resolvePathWithBase(c,`${r.to}`):this.resolvePathWithBase(c,"."),d=r.params===!1||r.params===null?Object.create(null):(r.params??!0)===!0?f:Object.assign(f,nt(r.params,f)),m=this.getMatchedRoutes(h);let g=m.matchedRoutes;if((!m.foundRoute||m.foundRoute.path!=="/"&&m.routeParams["**"])&&this.options.notFoundRoute&&(g=[...g,this.options.notFoundRoute]),Object.keys(d).length>0)for(const k of g){const L=k.options.params?.stringify??k.options.stringifyParams;if(L)try{Object.assign(d,L(d))}catch{}}const y=e.leaveParams?h:Lt(Xe({path:h,params:d,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let v=u;if(e._includeValidateSearch&&this.options.search?.strict){const k={};g.forEach(L=>{if(L.options.validateSearch)try{Object.assign(k,Vt(L.options.validateSearch,{...k,...v}))}catch{}}),v=k}v=io({search:v,dest:r,destRoutes:g,_includeValidateSearch:e._includeValidateSearch}),v=ft(u,v);const R=this.options.stringifySearch(v),b=r.hash===!0?i.hash:r.hash?nt(r.hash,i.hash):void 0,x=b?`#${b}`:"";let P=r.state===!0?i.state:r.state?nt(r.state,i.state):{};P=ot(i.state,P);const I=`${y}${R}${x}`;let S,C,w=!1;if(this.rewrite){const k=new URL(I,this.origin),L=Es(this.rewrite,k);S=k.href.replace(k.origin,""),L.origin!==this.origin?(C=L.href,w=!0):C=L.pathname+L.search+L.hash}else S=gn(I),C=S;return{publicHref:C,href:S,pathname:y,search:v,searchStr:R,state:P,hash:b??"",external:w,unmaskOnReload:r.unmaskOnReload}},n=(r={},i)=>{const a=o(r);let l=i?o(i):void 0;if(!l){const c=Object.create(null);if(this.options.routeMasks){const u=Rn(a.pathname,this.processedTree);if(u){Object.assign(c,u.rawParams);const{from:f,params:h,...d}=u.route,m=h===!1||h===null?Object.create(null):(h??!0)===!0?c:Object.assign(c,nt(h,c));i={from:e.from,...d,params:m},l=o(i)}}}return l&&(a.maskedLocation=l),a};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:o,...n})=>{const r=()=>{const l=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];l.forEach(u=>{n.state[u]=this.latestLocation.state[u]});const c=pt(n.state,this.latestLocation.state);return l.forEach(u=>{delete n.state[u]}),c},i=it(this.latestLocation.href)===it(n.href);let a=this.commitLocationPromise;if(this.commitLocationPromise=Mt(()=>{a?.resolve(),a=void 0}),i&&r())this.load();else{let{maskedLocation:l,hashScrollIntoView:c,...u}=n;l&&(u={...l,state:{...l.state,__tempKey:void 0,__tempLocation:{...u,search:u.searchStr,state:{...u.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(u.unmaskOnReload??this.options.unmaskOnReload??!1)&&(u.state.__tempKey=this.tempLocationKey)),u.state.__hashScrollIntoViewOptions=c??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,this.history[n.replace?"replace":"push"](u.publicHref,u.state,{ignoreBlocker:o})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:o,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...l}={})=>{if(a){const f=this.history.location.state.__TSR_index,h=Yt(a,{__TSR_index:e?f:f+1}),d=new URL(h.pathname,this.origin);l.to=Se(this.rewrite,d).pathname,l.search=this.options.parseSearch(h.search),l.hash=h.hash.slice(1)}const c=this.buildLocation({...l,_includeValidateSearch:!0});this.pendingBuiltLocation=c;const u=this.commitLocation({...c,viewTransition:r,replace:e,resetScroll:o,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===c&&(this.pendingBuiltLocation=void 0)}),u},this.navigate=async({to:e,reloadDocument:o,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!o&&(o=!0),o){if(e!==void 0||!n){const c=this.buildLocation({to:e,...i});n=n??c.publicHref,r=r??c.publicHref}const l=!a&&r?r:n;if(Kt(l,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){const c=this.history.getBlockers?.()??[];for(const u of c)if(u?.blockerFn&&await u.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return i.replace?window.location.replace(l):window.location.href=l,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const e=this.matchRoutes(this.latestLocation),o=this.stores.cachedMatchesSnapshot.state.filter(n=>!e.some(r=>r.id===n.id));this.batch(()=>{this.stores.status.setState(()=>"pending"),this.stores.statusCode.setState(()=>200),this.stores.isLoading.setState(()=>!0),this.stores.location.setState(()=>this.latestLocation),this.stores.setPendingMatches(e),this.stores.setCachedMatches(o)})},this.load=async e=>{let o,n,r;const i=this.stores.resolvedLocation.state??this.stores.location.state;for(r=new Promise(l=>{this.startTransition(async()=>{try{this.beforeLoad();const c=this.latestLocation,u=this.stores.resolvedLocation.state,f=wt(c,u);this.stores.redirect.state||this.emit({type:"onBeforeNavigate",...f}),this.emit({type:"onBeforeLoad",...f}),await os({router:this,sync:e?.sync,forceStaleReload:i.href===c.href,matches:this.stores.pendingMatchesSnapshot.state,location:c,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let h=null,d=null,m=null,g=null;this.batch(()=>{const y=this.stores.pendingMatchesSnapshot.state,v=y.length,R=this.stores.activeMatchesSnapshot.state;h=v?R.filter(P=>!this.stores.pendingMatchStoresById.has(P.id)):null;const b=new Set;for(const P of this.stores.pendingMatchStoresById.values())P.routeId&&b.add(P.routeId);const x=new Set;for(const P of this.stores.activeMatchStoresById.values())P.routeId&&x.add(P.routeId);d=v?R.filter(P=>!b.has(P.routeId)):null,m=v?y.filter(P=>!x.has(P.routeId)):null,g=v?y.filter(P=>x.has(P.routeId)):R,this.stores.isLoading.setState(()=>!1),this.stores.loadedAt.setState(()=>Date.now()),v&&(this.stores.setActiveMatches(y),this.stores.setPendingMatches([]),this.stores.setCachedMatches([...this.stores.cachedMatchesSnapshot.state,...h.filter(P=>P.status!=="error"&&P.status!=="notFound"&&P.status!=="redirected")]),this.clearExpiredCache())});for(const[y,v]of[[d,"onLeave"],[m,"onEnter"],[g,"onStay"]])if(y)for(const R of y)this.looseRoutesById[R.routeId].options[v]?.(R)})})}})}catch(c){Z(c)?(o=c,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):Y(c)&&(n=c);const u=o?o.status:n?404:this.stores.activeMatchesSnapshot.state.some(f=>f.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.setState(()=>u),this.stores.redirect.setState(()=>o)})}this.latestLoadPromise===r&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),l()})}),this.latestLoadPromise=r,await r;this.latestLoadPromise&&r!==this.latestLoadPromise;)await this.latestLoadPromise;let a;this.hasNotFoundMatch()?a=404:this.stores.activeMatchesSnapshot.state.some(l=>l.status==="error")&&(a=500),a!==void 0&&this.stores.statusCode.setState(()=>a)},this.startViewTransition=e=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let n;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const r=this.latestLocation,i=this.stores.resolvedLocation.state,a=typeof o.types=="function"?o.types(wt(r,i)):o.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,o)=>{this.startTransition(()=>{const n=this.stores.pendingMatchStoresById.get(e);if(n){n.setState(o);return}const r=this.stores.activeMatchStoresById.get(e);if(r){r.setState(o);return}const i=this.stores.cachedMatchStoresById.get(e);if(i){const a=o(i.state);a.status==="redirected"?this.stores.cachedMatchStoresById.delete(e)&&this.stores.cachedMatchesId.setState(l=>l.filter(c=>c!==e)):i.setState(()=>a)}})},this.getMatch=e=>this.stores.cachedMatchStoresById.get(e)?.state??this.stores.pendingMatchStoresById.get(e)?.state??this.stores.activeMatchStoresById.get(e)?.state,this.invalidate=e=>{const o=n=>e?.filter?.(n)??!0?{...n,invalid:!0,...e?.forcePending||n.status==="error"||n.status==="notFound"?{status:"pending",error:void 0}:void 0}:n;return this.batch(()=>{this.stores.setActiveMatches(this.stores.activeMatchesSnapshot.state.map(o)),this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.map(o)),this.stores.setPendingMatches(this.stores.pendingMatchesSnapshot.state.map(o))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||"/",this.resolveRedirect=e=>{const o=e.headers.get("Location");if(!e.options.href||e.options._builtLocation){const n=e.options._builtLocation??this.buildLocation(e.options),r=this.getParsedLocationHref(n);e.options.href=r,e.headers.set("Location",r)}else if(o)try{const n=new URL(o);if(this.origin&&n.origin===this.origin){const r=n.pathname+n.search+n.hash;e.options.href=r,e.headers.set("Location",r)}}catch{}if(e.options.href&&!e.options._builtLocation&&Kt(e.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return e.headers.get("Location")||e.headers.set("Location",e.options.href),e},this.clearCache=e=>{const o=e?.filter;o!==void 0?this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.filter(n=>!o(n))):this.stores.setCachedMatches([])},this.clearExpiredCache=()=>{const e=Date.now(),o=n=>{const r=this.looseRoutesById[n.routeId];if(!r.options.loader)return!0;const i=(n.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return n.status==="error"?!0:e-n.updatedAt>=i};this.clearCache({filter:o})},this.loadRouteChunk=Nt,this.preloadRoute=async e=>{const o=e._builtLocation??this.buildLocation(e);let n=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:e});const r=new Set([...this.stores.matchesId.state,...this.stores.pendingMatchesId.state]),i=new Set([...r,...this.stores.cachedMatchesId.state]),a=n.filter(l=>!i.has(l.id));if(a.length){const l=this.stores.cachedMatchesSnapshot.state;this.stores.setCachedMatches([...l,...a])}try{return n=await os({router:this,matches:n,location:o,preload:!0,updateMatch:(l,c)=>{r.has(l)?n=n.map(u=>u.id===l?c(u):u):this.updateMatch(l,c)}}),n}catch(l){if(Z(l))return l.options.reloadDocument?void 0:await this.preloadRoute({...l.options,_fromLocation:o});Y(l)||console.error(l);return}},this.matchRoute=(e,o)=>{const n={...e,to:e.to?this.resolvePathWithBase(e.from||"",e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(o?.pending&&this.stores.status.state!=="pending")return!1;const i=(o?.pending===void 0?!this.stores.isLoading.state:o.pending)?this.latestLocation:this.stores.resolvedLocation.state||this.stores.location.state,a=_n(r.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!pt(a.rawParams,e.params,{partial:!0})?!1:o?.includeSearch??!0?pt(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.activeMatchesSnapshot.state.some(e=>e.status==="notFound"||e.globalNotFound),this.getStoreConfig=s,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??zn,parseSearch:t.parseSearch??Nn,protocolAllowlist:t.protocolAllowlist??mn}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.state}setRoutes({routesById:t,routesByPath:s,processedTree:e}){this.routesById=t,this.routesByPath=s,this.processedTree=e;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)}get looseRoutesById(){return this.routesById}getParentContext(t){return t?.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,s){const e=this.getMatchedRoutes(t.pathname),{foundRoute:o,routeParams:n,parsedParams:r}=e;let{matchedRoutes:i}=e,a=!1;(o?o.path!=="/"&&n["**"]:it(t.pathname))&&(this.options.notFoundRoute?i=[...i,this.options.notFoundRoute]:a=!0);const l=a?co(this.options.notFoundMode,i):void 0,c=new Array(i.length),u=new Map;for(const f of this.stores.activeMatchStoresById.values())f.routeId&&u.set(f.routeId,f.state);for(let f=0;fthis.navigate({...b,_fromLocation:t}),buildLocation:this.buildLocation,cause:h.cause,abortController:h.abortController,preload:!!h.preload,matches:c,routeId:d.id};h.__routeContext=d.options.context(R)??void 0}h.context={...v,...h.__routeContext,...h.__beforeLoadContext}}}return c}matchRoutesLightweight(t){const{matchedRoutes:s,routeParams:e,parsedParams:o}=this.getMatchedRoutes(t.pathname),n=Bt(s),r={...t.search};for(const u of s)try{Object.assign(r,Vt(u.options.validateSearch,r))}catch{}const i=Bt(this.stores.matchesId.state),a=i&&this.stores.activeMatchStoresById.get(i)?.state,l=a&&a.routeId===n.id&&a.pathname===t.pathname;let c;if(l)c=a.params;else{const u=Object.assign(Object.create(null),e);for(const f of s)try{ls(f,e,o??{},u)}catch{}c=u}return{matchedRoutes:s,fullPath:n.fullPath,search:r,params:c}}},Jt=class extends Error{},no=class extends Error{};function oo(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],statusCode:200}}function Vt(t,s){if(t==null)return{};if("~standard"in t){const e=t["~standard"].validate(s);if(e instanceof Promise)throw new Jt("Async validation not supported");if(e.issues)throw new Jt(JSON.stringify(e.issues,void 0,2),{cause:e});return e.value}return"parse"in t?t.parse(s):typeof t=="function"?t(s):{}}function ro({pathname:t,routesById:s,processedTree:e}){const o=Object.create(null),n=it(t);let r,i;const a=xn(n,e,!0);return a&&(r=a.route,Object.assign(o,a.rawParams),i=Object.assign(Object.create(null),a.parsedParams)),{matchedRoutes:a?.branch||[s.__root__],routeParams:o,foundRoute:r,parsedParams:i}}function io({search:t,dest:s,destRoutes:e,_includeValidateSearch:o}){return ao(e)(t,s,o??!1)}function ao(t){const s={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const n of t){if("search"in n.options)n.options.search?.middlewares&&s.middlewares.push(...n.options.search.middlewares);else if(n.options.preSearchFilters||n.options.postSearchFilters){const r=({search:i,next:a})=>{let l=i;"preSearchFilters"in n.options&&n.options.preSearchFilters&&(l=n.options.preSearchFilters.reduce((u,f)=>f(u),i));const c=a(l);return"postSearchFilters"in n.options&&n.options.postSearchFilters?n.options.postSearchFilters.reduce((u,f)=>f(u),c):c};s.middlewares.push(r)}if(n.options.validateSearch){const r=({search:i,next:a})=>{const l=a(i);if(!s._includeValidateSearch)return l;try{return{...l,...Vt(n.options.validateSearch,l)??void 0}}catch{return l}};s.middlewares.push(r)}}const e=({search:n})=>{const r=s.dest;return r.search?r.search===!0?n:nt(r.search,n):{}};s.middlewares.push(e);const o=(n,r,i)=>{if(n>=i.length)return r;const a=i[n];return a({search:r,next:c=>o(n+1,c,i)})};return function(r,i,a){return s.dest=i,s._includeValidateSearch=a,o(0,r,s.middlewares)}}function co(t,s){if(t!=="root")for(let e=s.length-1;e>=0;e--){const o=s[e];if(o.children)return o.id}return mt}function ls(t,s,e,o){const n=t.options.params?.parse??t.options.parseParams;if(n)if(t.options.skipRouteOnParseError)for(const r in s)r in e&&(o[r]=e[r]);else{const r=n(o);Object.assign(o,r)}}var lo="Error preloading route! ☝️",ks=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=s=>{this.originalIndex=s.originalIndex;const e=this.options,o=!e?.path&&!e?.id;this.parentRoute=this.options.getParentRoute?.(),o?this._path=mt:this.parentRoute||et();let n=o?mt:e?.path;n&&n!=="/"&&(n=Cs(n));const r=e?.id||n;let i=o?mt:Wt([this.parentRoute.id==="__root__"?"":this.parentRoute.id,r]);n==="__root__"&&(n="/"),i!=="__root__"&&(i=Wt(["/",i]));const a=i==="__root__"?"/":Wt([this.parentRoute.fullPath,n]);this._path=n,this._id=i,this._fullPath=a,this._to=it(a)},this.addChildren=s=>this._addFileChildren(s),this._addFileChildren=s=>(Array.isArray(s)&&(this.children=s),typeof s=="object"&&s!==null&&(this.children=Object.values(s)),this),this._addFileTypes=()=>this,this.updateLoader=s=>(Object.assign(this.options,s),this),this.update=s=>(Object.assign(this.options,s),this),this.lazy=s=>(this.lazyFn=s,this),this.redirect=s=>Wn({from:this.fullPath,...s}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},uo=class extends ks{constructor(t){super(t)}};function fo(t){if(typeof document<"u"&&document.querySelector){const s=t.stores.location.state,e=s.state.__hashScrollIntoViewOptions??!0;if(e&&s.hash!==""){const o=document.getElementById(s.hash);o&&o.scrollIntoView(e)}}}function Ie(t){const s=t.errorComponent??Le;return T.jsx(ho,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:e,reset:o})=>e?E.createElement(s,{error:e,reset:o}):t.children})}var ho=class extends E.Component{constructor(...t){super(...t),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,s){s.error&&s.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,s){this.props.onCatch&&this.props.onCatch(t,s)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}};function Le({error:t}){const[s,e]=E.useState(!1);return T.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[T.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[T.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),T.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>e(o=>!o),children:s?"Hide Error":"Show Error"})]}),T.jsx("div",{style:{height:".25rem"}}),s?T.jsx("div",{children:T.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?T.jsx("code",{children:t.message}):null})}):null]})}function po({children:t,fallback:s=null}){return As()?T.jsx(Pt.Fragment,{children:t}):T.jsx(Pt.Fragment,{children:s})}function As(){return Pt.useSyncExternalStore(mo,()=>!0,()=>!1)}function mo(){return()=>{}}var js=E.createContext(null);function Q(t){return E.useContext(js)}var ee=E.createContext(void 0),go=E.createContext(void 0),U=(t=>(t[t.None=0]="None",t[t.Mutable=1]="Mutable",t[t.Watching=2]="Watching",t[t.RecursedCheck=4]="RecursedCheck",t[t.Recursed=8]="Recursed",t[t.Dirty=16]="Dirty",t[t.Pending=32]="Pending",t))(U||{});function vo({update:t,notify:s,unwatched:e}){return{link:o,unlink:n,propagate:r,checkDirty:i,shallowPropagate:a};function o(c,u,f){const h=u.depsTail;if(h!==void 0&&h.dep===c)return;const d=h!==void 0?h.nextDep:u.deps;if(d!==void 0&&d.dep===c){d.version=f,u.depsTail=d;return}const m=c.subsTail;if(m!==void 0&&m.version===f&&m.sub===u)return;const g=u.depsTail=c.subsTail={version:f,dep:c,sub:u,prevDep:h,nextDep:d,prevSub:m,nextSub:void 0};d!==void 0&&(d.prevDep=g),h!==void 0?h.nextDep=g:u.deps=g,m!==void 0?m.nextSub=g:c.subs=g}function n(c,u=c.sub){const f=c.dep,h=c.prevDep,d=c.nextDep,m=c.nextSub,g=c.prevSub;return d!==void 0?d.prevDep=h:u.depsTail=h,h!==void 0?h.nextDep=d:u.deps=d,m!==void 0?m.prevSub=g:f.subsTail=g,g!==void 0?g.nextSub=m:(f.subs=m)===void 0&&e(f),d}function r(c){let u=c.nextSub,f;t:do{const h=c.sub;let d=h.flags;if(d&60?d&12?d&4?!(d&48)&&l(c,h)?(h.flags=d|40,d&=1):d=0:h.flags=d&-9|32:d=0:h.flags=d|32,d&2&&s(h),d&1){const m=h.subs;if(m!==void 0){const g=(c=m).nextSub;g!==void 0&&(f={value:u,prev:f},u=g);continue}}if((c=u)!==void 0){u=c.nextSub;continue}for(;f!==void 0;)if(c=f.value,f=f.prev,c!==void 0){u=c.nextSub;continue t}break}while(!0)}function i(c,u){let f,h=0,d=!1;t:do{const m=c.dep,g=m.flags;if(u.flags&16)d=!0;else if((g&17)===17){if(t(m)){const y=m.subs;y.nextSub!==void 0&&a(y),d=!0}}else if((g&33)===33){(c.nextSub!==void 0||c.prevSub!==void 0)&&(f={value:c,prev:f}),c=m.deps,u=m,++h;continue}if(!d){const y=c.nextDep;if(y!==void 0){c=y;continue}}for(;h--;){const y=u.subs,v=y.nextSub!==void 0;if(v?(c=f.value,f=f.prev):c=y,d){if(t(u)){v&&a(y),u=c.sub;continue}d=!1}else u.flags&=-33;u=c.sub;const R=c.nextDep;if(R!==void 0){c=R;continue t}}return d}while(!0)}function a(c){do{const u=c.sub,f=u.flags;(f&48)===32&&(u.flags=f|16,(f&6)===2&&s(u))}while((c=c.nextSub)!==void 0)}function l(c,u){let f=u.depsTail;for(;f!==void 0;){if(f===c)return!0;f=f.prevDep}return!1}}function Te(t,s,e){const o=typeof t=="object",n=o?t:void 0;return{next:(o?t.next:t)?.bind(n),error:(o?t.error:s)?.bind(n),complete:(o?t.complete:e)?.bind(n)}}const _e=[];let qt=0;const{link:us,unlink:yo,propagate:So,checkDirty:Bs,shallowPropagate:fs}=vo({update(t){return t._update()},notify(t){_e[xe++]=t,t.flags&=~U.Watching},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=U.Mutable|U.Dirty,Xt(t))}});let Ht=0,xe=0,tt,be=0;function Ds(t){try{++be,t()}finally{--be||Fs()}}function Xt(t){const s=t.depsTail;let e=s!==void 0?s.nextDep:t.deps;for(;e!==void 0;)e=yo(e,t)}function Fs(){if(!(be>0)){for(;Ht{n.get(),a.current?i.next?.(n._snapshot):a.current=!0});return{unsubscribe:()=>{l.stop()}}},_update(r){const i=tt,a=Object.is;if(e)tt=n,++qt,n.depsTail=void 0;else if(r===void 0)return!1;e&&(n.flags=U.Mutable|U.RecursedCheck);try{const l=n._snapshot,c=typeof r=="function"?r(l):r===void 0&&e?o(l):r;return l===void 0||!a(l,c)?(n._snapshot=c,!0):!1}finally{tt=i,e&&(n.flags&=~U.RecursedCheck),Xt(n)}}};return e?(n.flags=U.Mutable|U.Dirty,n.get=function(){const r=n.flags;if(r&U.Dirty||r&U.Pending&&Bs(n.deps,n)){if(n._update()){const i=n.subs;i!==void 0&&fs(i)}}else r&U.Pending&&(n.flags=r&~U.Pending);return tt!==void 0&&us(n,tt,qt),n._snapshot}):n.set=function(r){if(n._update(r)){const i=n.subs;i!==void 0&&(So(i),fs(i),Fs())}},n}function Ro(t){const s=()=>{const o=tt;tt=e,++qt,e.depsTail=void 0,e.flags=U.Watching|U.RecursedCheck;try{return t()}finally{tt=o,e.flags&=~U.RecursedCheck,Xt(e)}},e={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:U.Watching|U.RecursedCheck,notify(){const o=this.flags;o&U.Dirty||o&U.Pending&&Bs(this.deps,this)?s():this.flags=U.Watching},stop(){this.flags=U.None,this.depsTail=void 0,Xt(this)}};return s(),e}class _o{constructor(s){this.atom=Ns(s)}setState(s){this.atom.set(s)}get state(){return this.atom.get()}get(){return this.state}subscribe(s){return this.atom.subscribe(Te(s))}}class xo{constructor(s){this.atom=Ns(s)}get state(){return this.atom.get()}get(){return this.state}subscribe(s){return this.atom.subscribe(Te(s))}}function hs(t){return typeof t=="function"?new xo(t):new _o(t)}var pe={exports:{}},me={},ge={exports:{}},ve={};var ds;function bo(){if(ds)return ve;ds=1;var t=Zt();function s(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var e=typeof Object.is=="function"?Object.is:s,o=t.useState,n=t.useEffect,r=t.useLayoutEffect,i=t.useDebugValue;function a(f,h){var d=h(),m=o({inst:{value:d,getSnapshot:h}}),g=m[0].inst,y=m[1];return r(function(){g.value=d,g.getSnapshot=h,l(g)&&y({inst:g})},[f,d,h]),n(function(){return l(g)&&y({inst:g}),f(function(){l(g)&&y({inst:g})})},[f]),i(d),d}function l(f){var h=f.getSnapshot;f=f.value;try{var d=h();return!e(f,d)}catch{return!0}}function c(f,h){return h()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return ve.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,ve}var ps;function wo(){return ps||(ps=1,ge.exports=bo()),ge.exports}var ms;function Po(){if(ms)return me;ms=1;var t=Zt(),s=wo();function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var o=typeof Object.is=="function"?Object.is:e,n=s.useSyncExternalStore,r=t.useRef,i=t.useEffect,a=t.useMemo,l=t.useDebugValue;return me.useSyncExternalStoreWithSelector=function(c,u,f,h,d){var m=r(null);if(m.current===null){var g={hasValue:!1,value:null};m.current=g}else g=m.current;m=a(function(){function v(I){if(!R){if(R=!0,b=I,I=h(I),d!==void 0&&g.hasValue){var S=g.value;if(d(S,I))return x=S}return x=I}if(S=x,o(b,I))return S;var C=h(I);return d!==void 0&&d(S,C)?(b=I,S):(b=I,x=C)}var R=!1,b,x,P=f===void 0?null:f;return[function(){return v(u())},P===null?void 0:function(){return v(P())}]},[u,f,h,d]);var y=n(c,m[0],m[1]);return i(function(){g.hasValue=!0,g.value=y},[y]),l(y),y},me}var gs;function Co(){return gs||(gs=1,pe.exports=Po()),pe.exports}var zs=Co();const hr=we(zs);function Mo(t,s){return t===s}function J(t,s,e=Mo){const o=E.useCallback(i=>{if(!t)return()=>{};const{unsubscribe:a}=t.subscribe(i);return a},[t]),n=E.useCallback(()=>t?.get(),[t]);return zs.useSyncExternalStoreWithSelector(o,n,n,s,e)}var Eo={state:void 0,get:()=>{},subscribe:()=>()=>{}};function vt(t){const s=Q(),e=E.useContext(t.from?go:ee),o=t.from??e,n=o?t.from?s.stores.getMatchStoreByRouteId(o):s.stores.activeMatchStoresById.get(o):void 0,r=E.useRef(void 0);return J(n??Eo,i=>{if((t.shouldThrow??!0)&&!i&&et(),i===void 0)return;const a=t.select?t.select(i):i;if(t.structuralSharing??s.options.defaultStructuralSharing){const l=ot(r.current,a);return r.current=l,l}return a})}function Us(t){return vt({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:s=>t.select?t.select(s.loaderData):s.loaderData})}function Hs(t){const{select:s,...e}=t;return vt({...e,select:o=>s?s(o.loaderDeps):o.loaderDeps})}function Ws(t){return vt({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:s=>{const e=t.strict===!1?s.params:s._strictParams;return t.select?t.select(e):e}})}function $s(t){return vt({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:s=>t.select?t.select(s.search):s.search})}function Vs(t){const s=Q();return E.useCallback(e=>s.navigate({...e,from:e.from??t?.from}),[t?.from,s])}function qs(t){return vt({...t,select:s=>t.select?t.select(s.context):s.context})}var Oe=an();const dr=we(Oe);function Io(t,s){const e=Q(),o=ln(s),{activeProps:n,inactiveProps:r,activeOptions:i,to:a,preload:l,preloadDelay:c,hashScrollIntoView:u,replace:f,startTransition:h,resetScroll:d,viewTransition:m,children:g,target:y,disabled:v,style:R,className:b,onClick:x,onBlur:P,onFocus:I,onMouseEnter:S,onMouseLeave:C,onTouchStart:w,ignoreBlocker:k,params:L,search:N,hash:F,state:V,mask:H,reloadDocument:G,unsafeRelative:$,from:ct,_fromLocation:Et,...yt}=t,p=As(),_=E.useMemo(()=>t,[e,t.from,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),O=J(e.stores.location,z=>z,(z,X)=>z.href===X.href),M=E.useMemo(()=>{const z={_fromLocation:O,..._};return e.buildLocation(z)},[e,O,_]),j=M.maskedLocation?M.maskedLocation.publicHref:M.publicHref,B=M.maskedLocation?M.maskedLocation.external:M.external,D=E.useMemo(()=>jo(j,B,e.history,v),[v,B,j,e.history]),q=E.useMemo(()=>{if(D?.external)return Kt(D.href,e.protocolAllowlist)?void 0:D.href;if(!Bo(a)&&!(typeof a!="string"||a.indexOf(":")===-1))try{return new URL(a),Kt(a,e.protocolAllowlist)?void 0:a}catch{}},[a,D,e.protocolAllowlist]),W=E.useMemo(()=>{if(q)return!1;if(i?.exact){if(!En(O.pathname,M.pathname,e.basepath))return!1}else{const z=Gt(O.pathname,e.basepath),X=Gt(M.pathname,e.basepath);if(!(z.startsWith(X)&&(z.length===X.length||z[X.length]==="/")))return!1}return(i?.includeSearch??!0)&&!pt(O.search,M.search,{partial:!i?.exact,ignoreUndefined:!i?.explicitUndefined})?!1:i?.includeHash?p&&O.hash===M.hash:!0},[i?.exact,i?.explicitUndefined,i?.includeHash,i?.includeSearch,O,q,p,M.hash,M.pathname,M.search,e.basepath]),St=W?nt(n,{})??Lo:ye,zt=W?ye:nt(r,{})??ye,ke=[b,St.className,zt.className].filter(Boolean).join(" "),Ae=(R||St.style||zt.style)&&{...R,...St.style,...zt.style},[Xs,je]=E.useState(!1),Be=E.useRef(!1),Rt=t.reloadDocument||q?!1:l??e.options.defaultPreload,se=c??e.options.defaultPreloadDelay??0,lt=E.useCallback(()=>{e.preloadRoute({..._,_builtLocation:M}).catch(z=>{console.warn(z),console.warn(lo)})},[e,_,M]);cn(o,E.useCallback(z=>{z?.isIntersecting&<()},[lt]),Ao,{disabled:!!v||Rt!=="viewport"}),E.useEffect(()=>{Be.current||!v&&Rt==="render"&&(lt(),Be.current=!0)},[v,lt,Rt]);const Zs=z=>{const X=z.currentTarget.getAttribute("target"),ut=y!==void 0?y:X;if(!v&&!Do(z)&&!z.defaultPrevented&&(!ut||ut==="_self")&&z.button===0){z.preventDefault(),Oe.flushSync(()=>{je(!0)});const tn=e.subscribe("onResolved",()=>{tn(),je(!1)});e.navigate({..._,replace:f,resetScroll:d,hashScrollIntoView:u,startTransition:h,viewTransition:m,ignoreBlocker:k})}};if(q)return{...yt,ref:o,href:q,...g&&{children:g},...y&&{target:y},...v&&{disabled:v},...R&&{style:R},...b&&{className:b},...x&&{onClick:x},...P&&{onBlur:P},...I&&{onFocus:I},...S&&{onMouseEnter:S},...C&&{onMouseLeave:C},...w&&{onTouchStart:w}};const De=z=>{if(v||Rt!=="intent")return;if(!se){lt();return}const X=z.currentTarget;if(At.has(X))return;const ut=setTimeout(()=>{At.delete(X),lt()},se);At.set(X,ut)},Qs=z=>{v||Rt!=="intent"||lt()},Fe=z=>{if(v||!Rt||!se)return;const X=z.currentTarget,ut=At.get(X);ut&&(clearTimeout(ut),At.delete(X))};return{...yt,...St,...zt,href:D?.href,ref:o,onClick:_t([x,Zs]),onBlur:_t([P,Fe]),onFocus:_t([I,De]),onMouseEnter:_t([S,De]),onMouseLeave:_t([C,Fe]),onTouchStart:_t([w,Qs]),disabled:!!v,target:y,...Ae&&{style:Ae},...ke&&{className:ke},...v&&To,...W&&Oo,...p&&Xs&&ko}}var ye={},Lo={className:"active"},To={role:"link","aria-disabled":!0},Oo={"data-status":"active","aria-current":"page"},ko={"data-transitioning":"transitioning"},At=new WeakMap,Ao={rootMargin:"100px"},_t=t=>s=>{for(const e of t)if(e){if(s.defaultPrevented)return;e(s)}};function jo(t,s,e,o){if(!o)return s?{href:t,external:!0}:{href:e.createHref(t)||"/",external:!1}}function Bo(t){if(typeof t!="string")return!1;const s=t.charCodeAt(0);return s===47?t.charCodeAt(1)!==47:s===46}var Ks=E.forwardRef((t,s)=>{const{_asChild:e,...o}=t,{type:n,...r}=Io(o,s),i=typeof o.children=="function"?o.children({isActive:r["data-status"]==="active"}):o.children;if(!e){const{disabled:a,...l}=r;return E.createElement("a",l,i)}return E.createElement(e,r,i)});function Do(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var Fo=class extends ks{constructor(t){super(t),this.useMatch=s=>vt({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>qs({...s,from:this.id}),this.useSearch=s=>$s({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>Ws({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Hs({...s,from:this.id}),this.useLoaderData=s=>Us({...s,from:this.id}),this.useNavigate=()=>Vs({from:this.fullPath}),this.Link=Pt.forwardRef((s,e)=>T.jsx(Ks,{ref:e,from:this.fullPath,...s}))}};function pr(t){return new Fo(t)}var No=class extends uo{constructor(t){super(t),this.useMatch=s=>vt({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>qs({...s,from:this.id}),this.useSearch=s=>$s({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>Ws({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Hs({...s,from:this.id}),this.useLoaderData=s=>Us({...s,from:this.id}),this.useNavigate=()=>Vs({from:this.fullPath}),this.Link=Pt.forwardRef((s,e)=>T.jsx(Ks,{ref:e,from:this.fullPath,...s}))}};function mr(t){return new No(t)}function gr(t,s){let e,o,n,r;const i=()=>(e||(e=t().then(l=>{e=void 0,o=l[s??"default"]}).catch(l=>{if(n=l,dn(n)&&n instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const c=`tanstack_router_reload:${n.message}`;sessionStorage.getItem(c)||(sessionStorage.setItem(c,"1"),r=!0)}})),e),a=function(c){if(r)throw window.location.reload(),new Promise(()=>{});if(n)throw n;if(!o)if(Ve)Ve(i());else throw i();return E.createElement(o,c)};return a.preload=i,a}function zo(t){const s=Q(),e=`not-found-${J(s.stores.location,o=>o.pathname)}-${J(s.stores.status,o=>o)}`;return T.jsx(Ie,{getResetKey:()=>e,onCatch:(o,n)=>{if(Y(o))t.onCatch?.(o,n);else throw o},errorComponent:({error:o})=>{if(Y(o))return t.fallback?.(o);throw o},children:t.children})}function Uo(){return T.jsx("p",{children:"Not Found"})}function bt(t){return T.jsx(T.Fragment,{children:t.children})}function Gs(t,s,e){return s.options.notFoundComponent?T.jsx(s.options.notFoundComponent,{...e}):t.options.defaultNotFoundComponent?T.jsx(t.options.defaultNotFoundComponent,{...e}):T.jsx(Uo,{})}function Ho(t){return null}function Wo(){return Ho(Q()),null}var Ys=E.memo(function({matchId:s}){const e=Q(),o=e.stores.activeMatchStoresById.get(s);o||et();const n=J(e.stores.loadedAt,i=>i),r=J(o,i=>i);return T.jsx($o,{router:e,matchId:s,resetKey:n,matchState:E.useMemo(()=>{const i=r.routeId,a=e.routesById[i].parentRoute?.id;return{routeId:i,ssr:r.ssr,_displayPending:r._displayPending,parentRouteId:a}},[r._displayPending,r.routeId,r.ssr,e.routesById])})});function $o({router:t,matchId:s,resetKey:e,matchState:o}){const n=t.routesById[o.routeId],r=n.options.pendingComponent??t.options.defaultPendingComponent,i=r?T.jsx(r,{}):null,a=n.options.errorComponent??t.options.defaultErrorComponent,l=n.options.onCatch??t.options.defaultOnCatch,c=n.isRoot?n.options.notFoundComponent??t.options.notFoundRoute?.options.component:n.options.notFoundComponent,u=o.ssr===!1||o.ssr==="data-only",f=(!n.isRoot||n.options.wrapInSuspense||u)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||u))?E.Suspense:bt,h=a?Ie:bt,d=c?zo:bt;return T.jsxs(n.isRoot?n.options.shellComponent??bt:bt,{children:[T.jsx(ee.Provider,{value:s,children:T.jsx(f,{fallback:i,children:T.jsx(h,{getResetKey:()=>e,errorComponent:a||Le,onCatch:(m,g)=>{if(Y(m))throw m.routeId??=o.routeId,m;l?.(m,g)},children:T.jsx(d,{fallback:m=>{if(m.routeId??=o.routeId,!c||m.routeId&&m.routeId!==o.routeId||!m.routeId&&!n.isRoot)throw m;return E.createElement(c,m)},children:u||o._displayPending?T.jsx(po,{fallback:i,children:T.jsx(vs,{matchId:s})}):T.jsx(vs,{matchId:s})})})})}),o.parentRouteId===mt?T.jsxs(T.Fragment,{children:[T.jsx(Vo,{resetKey:e}),t.options.scrollRestoration&&bs?T.jsx(Wo,{}):null]}):null]})}function Vo({resetKey:t}){const s=Q(),e=E.useRef(void 0);return jt(()=>{const o=s.latestLocation.href;(e.current===void 0||e.current!==o)&&(s.emit({type:"onRendered",...wt(s.stores.location.state,s.stores.resolvedLocation.state)}),e.current=o)},[s.latestLocation.state.__TSR_key,t,s]),null}var vs=E.memo(function({matchId:s}){const e=Q(),o=e.stores.activeMatchStoresById.get(s);o||et();const n=J(o,c=>c),r=n.routeId,i=e.routesById[r],a=E.useMemo(()=>{const c=(e.routesById[r].options.remountDeps??e.options.defaultRemountDeps)?.({routeId:r,loaderDeps:n.loaderDeps,params:n._strictParams,search:n._strictSearch});return c?JSON.stringify(c):void 0},[r,n.loaderDeps,n._strictParams,n._strictSearch,e.options.defaultRemountDeps,e.routesById]),l=E.useMemo(()=>{const c=i.options.component??e.options.defaultComponent;return c?T.jsx(c,{},a):T.jsx(qo,{})},[a,i.options.component,e.options.defaultComponent]);if(n._displayPending)throw e.getMatch(n.id)?._nonReactive.displayPendingPromise;if(n._forcePending)throw e.getMatch(n.id)?._nonReactive.minPendingPromise;if(n.status==="pending"){const c=i.options.pendingMinMs??e.options.defaultPendingMinMs;if(c){const u=e.getMatch(n.id);if(u&&!u._nonReactive.minPendingPromise){const f=Mt();u._nonReactive.minPendingPromise=f,setTimeout(()=>{f.resolve(),u._nonReactive.minPendingPromise=void 0},c)}}throw e.getMatch(n.id)?._nonReactive.loadPromise}if(n.status==="notFound")return Y(n.error)||et(),Gs(e,i,n.error);if(n.status==="redirected")throw Z(n.error)||et(),e.getMatch(n.id)?._nonReactive.loadPromise;if(n.status==="error")throw n.error;return l}),qo=E.memo(function(){const s=Q(),e=E.useContext(ee);let o,n=!1,r;{const c=e?s.stores.activeMatchStoresById.get(e):void 0;[o,n]=J(c,u=>[u?.routeId,u?.globalNotFound??!1]),r=J(s.stores.matchesId,u=>u[u.findIndex(f=>f===e)+1])}const i=o?s.routesById[o]:void 0,a=s.options.defaultPendingComponent?T.jsx(s.options.defaultPendingComponent,{}):null;if(n)return i||et(),Gs(s,i,void 0);if(!r)return null;const l=T.jsx(Ys,{matchId:r});return o===mt?T.jsx(E.Suspense,{fallback:a,children:l}):l});function Ko(){const t=Q(),s=E.useRef({router:t,mounted:!1}),[e,o]=E.useState(!1),n=J(t.stores.isLoading,f=>f),r=J(t.stores.hasPendingMatches,f=>f),i=ie(n),a=n||e||r,l=ie(a),c=n||r,u=ie(c);return t.startTransition=f=>{o(!0),E.startTransition(()=>{f(),o(!1)})},E.useEffect(()=>{const f=t.history.subscribe(t.load),h=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return it(t.latestLocation.publicHref)!==it(h.publicHref)&&t.commitLocation({...h,replace:!0}),()=>{f()}},[t,t.history]),jt(()=>{if(typeof window<"u"&&t.ssr||s.current.router===t&&s.current.mounted)return;s.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch(h){console.error(h)}})()},[t]),jt(()=>{i&&!n&&t.emit({type:"onLoad",...wt(t.stores.location.state,t.stores.resolvedLocation.state)})},[i,t,n]),jt(()=>{u&&!c&&t.emit({type:"onBeforeRouteMount",...wt(t.stores.location.state,t.stores.resolvedLocation.state)})},[c,u,t]),jt(()=>{if(l&&!a){const f=wt(t.stores.location.state,t.stores.resolvedLocation.state);t.emit({type:"onResolved",...f}),Ds(()=>{t.stores.status.setState(()=>"idle"),t.stores.resolvedLocation.setState(()=>t.stores.location.state)}),f.hrefChanged&&fo(t)}},[a,l,t]),null}function Go(){const t=Q(),s=t.routesById[mt].options.pendingComponent??t.options.defaultPendingComponent,e=s?T.jsx(s,{}):null,o=T.jsxs(typeof document<"u"&&t.ssr?bt:E.Suspense,{fallback:e,children:[T.jsx(Ko,{}),T.jsx(Yo,{})]});return t.options.InnerWrap?T.jsx(t.options.InnerWrap,{children:o}):o}function Yo(){const t=Q(),s=J(t.stores.firstMatchId,n=>n),e=J(t.stores.loadedAt,n=>n),o=s?T.jsx(Ys,{matchId:s}):null;return T.jsx(ee.Provider,{value:s,children:t.options.disableGlobalCatchBoundary?o:T.jsx(Ie,{getResetKey:()=>e,errorComponent:Le,onCatch:void 0,children:o})})}function vr(){const t=Q();return J(t.stores.matchRouteReactivity,s=>s),E.useCallback(s=>{const{pending:e,caseSensitive:o,fuzzy:n,includeSearch:r,...i}=s;return t.matchRoute(i,{pending:e,caseSensitive:o,fuzzy:n,includeSearch:r})},[t])}var Jo=t=>({createMutableStore:hs,createReadonlyStore:hs,batch:Ds}),yr=t=>new Xo(t),Xo=class extends so{constructor(t){super(t,Jo)}};function Zo({router:t,children:s,...e}){Object.keys(e).length>0&&t.update({...t.options,...e,context:{...t.options.context,...e.context}});const o=T.jsx(js.Provider,{value:t,children:s});return t.options.Wrap?T.jsx(t.options.Wrap,{children:o}):o}function Sr({router:t,...s}){return T.jsx(Zo,{router:t,...s,children:T.jsx(Go,{})})}function Rr(t){const s=Q({warn:t?.router===void 0}),e=t?.router||s,o=E.useRef(void 0);return J(e.stores.__store,n=>{if(t?.select){if(t.structuralSharing??e.options.defaultStructuralSharing){const r=ot(o.current,t.select(n));return o.current=r,r}return t.select(n)}return n})}function xt(t,s,e){let o=e.initialDeps??[],n,r=!0;function i(){var a,l,c;let u;e.key&&((a=e.debug)!=null&&a.call(e))&&(u=Date.now());const f=t();if(!(f.length!==o.length||f.some((m,g)=>o[g]!==m)))return n;o=f;let d;if(e.key&&((l=e.debug)!=null&&l.call(e))&&(d=Date.now()),n=s(...f),e.key&&((c=e.debug)!=null&&c.call(e))){const m=Math.round((Date.now()-u)*100)/100,g=Math.round((Date.now()-d)*100)/100,y=g/16,v=(R,b)=>{for(R=String(R);R.length{o=a},i}function ys(t,s){if(t===void 0)throw new Error("Unexpected undefined");return t}const Qo=(t,s)=>Math.abs(t-s)<1.01,tr=(t,s,e)=>{let o;return function(...n){t.clearTimeout(o),o=t.setTimeout(()=>s.apply(this,n),e)}},Ss=t=>{const{offsetWidth:s,offsetHeight:e}=t;return{width:s,height:e}},er=t=>t,sr=t=>{const s=Math.max(t.startIndex-t.overscan,0),e=Math.min(t.endIndex+t.overscan,t.count-1),o=[];for(let n=s;n<=e;n++)o.push(n);return o},nr=(t,s)=>{const e=t.scrollElement;if(!e)return;const o=t.targetWindow;if(!o)return;const n=i=>{const{width:a,height:l}=i;s({width:Math.round(a),height:Math.round(l)})};if(n(Ss(e)),!o.ResizeObserver)return()=>{};const r=new o.ResizeObserver(i=>{const a=()=>{const l=i[0];if(l?.borderBoxSize){const c=l.borderBoxSize[0];if(c){n({width:c.inlineSize,height:c.blockSize});return}}n(Ss(e))};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return r.observe(e,{box:"border-box"}),()=>{r.unobserve(e)}},Rs={passive:!0},_s=typeof window>"u"?!0:"onscrollend"in window,or=(t,s)=>{const e=t.scrollElement;if(!e)return;const o=t.targetWindow;if(!o)return;let n=0;const r=t.options.useScrollendEvent&&_s?()=>{}:tr(o,()=>{s(n,!1)},t.options.isScrollingResetDelay),i=u=>()=>{const{horizontal:f,isRtl:h}=t.options;n=f?e.scrollLeft*(h&&-1||1):e.scrollTop,r(),s(n,u)},a=i(!0),l=i(!1);e.addEventListener("scroll",a,Rs);const c=t.options.useScrollendEvent&&_s;return c&&e.addEventListener("scrollend",l,Rs),()=>{e.removeEventListener("scroll",a),c&&e.removeEventListener("scrollend",l)}},rr=(t,s,e)=>{if(s?.borderBoxSize){const o=s.borderBoxSize[0];if(o)return Math.round(o[e.options.horizontal?"inlineSize":"blockSize"])}return t[e.options.horizontal?"offsetWidth":"offsetHeight"]},ir=(t,{adjustments:s=0,behavior:e},o)=>{var n,r;const i=t+s;(r=(n=o.scrollElement)==null?void 0:n.scrollTo)==null||r.call(n,{[o.options.horizontal?"left":"top"]:i,behavior:e})};class ar{constructor(s){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var e,o,n;return((n=(o=(e=this.targetWindow)==null?void 0:e.performance)==null?void 0:o.now)==null?void 0:n.call(o))??Date.now()},this.observer=(()=>{let e=null;const o=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(n=>{n.forEach(r=>{const i=()=>{const a=r.target,l=this.indexFromElement(a);if(!a.isConnected){this.observer.unobserve(a);return}this.shouldMeasureDuringScroll(l)&&this.resizeItem(l,this.options.measureElement(a,r,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()})}));return{disconnect:()=>{var n;(n=o())==null||n.disconnect(),e=null},observe:n=>{var r;return(r=o())==null?void 0:r.observe(n,{box:"border-box"})},unobserve:n=>{var r;return(r=o())==null?void 0:r.unobserve(n)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([o,n])=>{typeof n>"u"&&delete e[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:er,rangeExtractor:sr,onChange:()=>{},measureElement:rr,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var o,n;(n=(o=this.options).onChange)==null||n.call(o,this,e)},this.maybeNotify=xt(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((e=this.scrollElement)==null?void 0:e.window)??null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,r)=>{this.scrollAdjustments=0,this.scrollDirection=r?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,o)=>{const n=new Map,r=new Map;for(let i=o-1;i>=0;i--){const a=e[i];if(n.has(a.lane))continue;const l=r.get(a.lane);if(l==null||a.end>l.end?r.set(a.lane,a):a.endi.end===a.end?i.index-a.index:i.end-a.end)[0]:void 0},this.getMeasurementOptions=xt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,o,n,r,i,a)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:o,scrollMargin:n,getItemKey:r,enabled:i,lanes:a}),{key:!1}),this.getMeasurements=xt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:o,scrollMargin:n,getItemKey:r,enabled:i,lanes:a},l)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const h of this.laneAssignments.keys())h>=e&&this.laneAssignments.delete(h);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const c=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);const u=this.measurementsCache.slice(0,c),f=new Array(a).fill(void 0);for(let h=0;h1){g=m;const x=f[g],P=x!==void 0?u[x]:void 0;y=P?P.end+this.options.gap:o+n}else{const x=this.options.lanes===1?u[h-1]:this.getFurthestMeasurement(u,h);y=x?x.end+this.options.gap:o+n,g=x?x.lane:h%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(h,g)}const v=l.get(d),R=typeof v=="number"?v:this.options.estimateSize(h),b=y+R;u[h]={index:h,start:y,size:R,end:b,key:d,lane:g},f[g]=h}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=xt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,o,n,r)=>this.range=e.length>0&&o>0?cr({measurements:e,outerSize:o,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=xt(()=>{let e=null,o=null;const n=this.calculateRange();return n&&(e=n.startIndex,o=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,o]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,o]},(e,o,n,r,i)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:o,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const o=this.options.indexAttribute,n=e.getAttribute(o);return n?parseInt(n,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var o;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const n=this.scrollState.index??((o=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:o.index);if(n!==void 0&&this.range){const r=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),i=Math.max(0,n-r),a=Math.min(this.options.count-1,n+r);return e>=i&&e<=a}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((i,a)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(a))});return}const o=this.indexFromElement(e),n=this.options.getItemKey(o),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(o)&&this.resizeItem(o,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,o)=>{var n;const r=this.measurementsCache[e];if(!r)return;const i=this.itemSizeCache.get(r.key)??r.size,a=o-i;a!==0&&(((n=this.scrollState)==null?void 0:n.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(r,a,this):r.start[this.getVirtualIndexes(),this.getMeasurements()],(e,o)=>{const n=[];for(let r=0,i=e.length;rthis.options.debug}),this.getVirtualItemForOffset=e=>{const o=this.getMeasurements();if(o.length!==0)return ys(o[Js(0,o.length-1,n=>ys(o[n]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,o,n=0)=>{if(!this.scrollElement)return 0;const r=this.getSize(),i=this.getScrollOffset();o==="auto"&&(o=e>=i+r?"end":"start"),o==="center"?e+=(n-r)/2:o==="end"&&(e-=r);const a=this.getMaxScrollOffset();return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,o="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if(o==="auto")if(i.end>=r+n-this.options.scrollPaddingEnd)o="end";else if(i.start<=r+this.options.scrollPaddingStart)o="start";else return[r,o];if(o==="end"&&e===this.options.count-1)return[this.getMaxScrollOffset(),o];const a=o==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,o,i.size),o]},this.scrollToOffset=(e,{align:o="start",behavior:n="auto"}={})=>{const r=this.getOffsetForAlignment(e,o),i=this.now();this.scrollState={index:null,align:o,behavior:n,startedAt:i,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:o="auto",behavior:n="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));const r=this.getOffsetForIndex(e,o);if(!r)return;const[i,a]=r,l=this.now();this.scrollState={index:e,align:a,behavior:n,startedAt:l,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:o="auto"}={})=>{const n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:"start",behavior:o,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var e;const o=this.getMeasurements();let n;if(o.length===0)n=this.options.paddingStart;else if(this.options.lanes===1)n=((e=o[o.length-1])==null?void 0:e.end)??0;else{const r=Array(this.options.lanes).fill(null);let i=o.length-1;for(;i>=0&&r.some(a=>a===null);){const a=o[i];r[a.lane]===null&&(r[a.lane]=a.end),i--}n=Math.max(...r.filter(a=>a!==null))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:o,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(s)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const o=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,n=o?o[0]:this.scrollState.lastTargetOffset,r=1,i=n!==this.scrollState.lastTargetOffset;if(!i&&Qo(n,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=r){this.scrollState=null;return}}else this.scrollState.stableFrames=0,i&&(this.scrollState.lastTargetOffset=n,this.scrollState.behavior="auto",this._scrollToOffset(n,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Js=(t,s,e,o)=>{for(;t<=s;){const n=(t+s)/2|0,r=e(n);if(ro)s=n-1;else return n}return t>0?t-1:0};function cr({measurements:t,outerSize:s,scrollOffset:e,lanes:o}){const n=t.length-1,r=l=>t[l].start;if(t.length<=o)return{startIndex:0,endIndex:n};let i=Js(0,n,r,e),a=i;if(o===1)for(;a1){const l=Array(o).fill(0);for(;au=0&&c.some(u=>u>=e);){const u=t[i];c[u.lane]=u.start,i--}i=Math.max(0,i-i%o),a=Math.min(n,a+(o-1-a%o))}return{startIndex:i,endIndex:a}}const xs=typeof document<"u"?E.useLayoutEffect:E.useEffect;function lr({useFlushSync:t=!0,...s}){const e=E.useReducer(()=>({}),{})[1],o={...s,onChange:(r,i)=>{var a;t&&i?Oe.flushSync(e):e(),(a=s.onChange)==null||a.call(s,r,i)}},[n]=E.useState(()=>new ar(o));return n.setOptions(o),xs(()=>n._didMount(),[]),xs(()=>n._willUpdate()),n}function _r(t){return lr({observeElementRect:nr,observeElementOffset:or,scrollToFn:ir,...t})}export{Ks as L,qo as O,Pt as R,Oe as a,wo as b,fr as c,dr as d,Zt as e,ur as f,we as g,an as h,Vs as i,T as j,vr as k,Q as l,Rr as m,mr as n,pr as o,gr as p,yr as q,E as r,Wn as s,Sr as t,hr as u,_r as v,zs as w,$s as x}; diff --git a/dashboard/dist/assets/select-DGqIoF9r.js b/dashboard/dist/assets/select-DGqIoF9r.js new file mode 100644 index 00000000..c680b868 --- /dev/null +++ b/dashboard/dist/assets/select-DGqIoF9r.js @@ -0,0 +1 @@ +import{r as o,j as e}from"./router-zNjPR4CY.js";import{aG as y,aH as b,aI as d,aJ as w,aK as N,aL as i,aM as j,aN as n,aO as S,aP as v,aQ as c,aR as m,aS as p,aT as f}from"./radix-C-ZuImoP.js";import{g as r}from"./index-CuOHsLf7.js";import{a as x,b as R,C as k}from"./icons-DTcdLw9j.js";const E=y,P=b,C=o.forwardRef(({className:t,children:s,...a},l)=>e.jsxs(d,{ref:l,className:r("flex h-9 w-full cursor-pointer items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...a,children:[s,e.jsx(w,{asChild:!0,children:e.jsx(x,{className:"h-4 w-4 opacity-50"})})]}));C.displayName=d.displayName;const g=o.forwardRef(({className:t,...s},a)=>e.jsx(c,{ref:a,className:r("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(k,{className:"h-4 w-4"})}));g.displayName=c.displayName;const u=o.forwardRef(({className:t,...s},a)=>e.jsx(m,{ref:a,className:r("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(x,{className:"h-4 w-4"})}));u.displayName=m.displayName;const I=o.forwardRef(({className:t,children:s,position:a="popper",...l},h)=>e.jsx(N,{children:e.jsxs(i,{ref:h,className:r("relative z-[100] max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-hidden rounded-md border border-border bg-white dark:bg-gray-900 text-gray-900 dark:text-gray-100 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,...l,children:[e.jsx(g,{}),e.jsx(j,{className:r("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),e.jsx(u,{})]})}));I.displayName=i.displayName;const B=o.forwardRef(({className:t,...s},a)=>e.jsx(p,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",t),...s}));B.displayName=p.displayName;const T=o.forwardRef(({className:t,children:s,...a},l)=>e.jsxs(n,{ref:l,className:r("relative flex w-full cursor-pointer select-none items-center rounded-sm py-2 pl-2 pr-8 text-sm outline-none bg-white dark:bg-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 focus:bg-gray-100 dark:focus:bg-gray-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...a,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(S,{children:e.jsx(R,{className:"h-4 w-4"})})}),e.jsx(v,{children:s})]}));T.displayName=n.displayName;const z=o.forwardRef(({className:t,...s},a)=>e.jsx(f,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",t),...s}));z.displayName=f.displayName;export{E as S,C as a,P as b,I as c,T as d}; diff --git a/dashboard/dist/assets/separator-B_DSOSdz.js b/dashboard/dist/assets/separator-B_DSOSdz.js new file mode 100644 index 00000000..4055e725 --- /dev/null +++ b/dashboard/dist/assets/separator-B_DSOSdz.js @@ -0,0 +1 @@ +import{r as l,j as m}from"./router-zNjPR4CY.js";import{al as a}from"./radix-C-ZuImoP.js";import{g as e}from"./index-CuOHsLf7.js";const f=l.forwardRef(({className:o,orientation:r="horizontal",decorative:s=!0,...t},p)=>m.jsx(a,{ref:p,decorative:s,orientation:r,className:e("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",o),...t}));f.displayName=a.displayName;export{f as S}; diff --git a/dashboard/dist/assets/skeleton-CXI2IV_v.js b/dashboard/dist/assets/skeleton-CXI2IV_v.js new file mode 100644 index 00000000..20af6226 --- /dev/null +++ b/dashboard/dist/assets/skeleton-CXI2IV_v.js @@ -0,0 +1 @@ +import{j as m}from"./router-zNjPR4CY.js";import{g as o}from"./index-CuOHsLf7.js";function a({className:r,...e}){return m.jsx("div",{className:o("animate-pulse rounded-md bg-primary/10",r),...e})}export{a as S}; diff --git a/dashboard/dist/assets/slider-mDhSC-zv.js b/dashboard/dist/assets/slider-mDhSC-zv.js new file mode 100644 index 00000000..af0e6866 --- /dev/null +++ b/dashboard/dist/assets/slider-mDhSC-zv.js @@ -0,0 +1 @@ +import{r as l,j as e}from"./router-zNjPR4CY.js";import{au as s,av as i,aw as n,ax as t}from"./radix-C-ZuImoP.js";import{g as c}from"./index-CuOHsLf7.js";const d=l.forwardRef(({className:r,...a},o)=>e.jsxs(s,{ref:o,className:c("relative flex w-full touch-none select-none items-center",r),...a,children:[e.jsx(i,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:e.jsx(n,{className:"absolute h-full bg-primary"})}),e.jsx(t,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));d.displayName=s.displayName;export{d as S}; diff --git a/dashboard/dist/assets/survey-renderer-DVA7Y8cR.js b/dashboard/dist/assets/survey-renderer-DVA7Y8cR.js new file mode 100644 index 00000000..d5912080 --- /dev/null +++ b/dashboard/dist/assets/survey-renderer-DVA7Y8cR.js @@ -0,0 +1 @@ +import{r as o,j as e}from"./router-zNjPR4CY.js";import{L as C,g,I as q,C as y,f as w,b as k,d as I,X as L,Y as T,S as ee,B as N}from"./index-CuOHsLf7.js";import{P as se}from"./progress-C6-hh8fF.js";import{T as te}from"./textarea-8PIujbf-.js";import{R as re,a as ae}from"./radio-group-BBkaGEpR.js";import{C as le}from"./checkbox-DWiVrbnx.js";import{S as ne}from"./slider-mDhSC-zv.js";import{S as ie,a as ce,b as de,c as oe,d as ue}from"./select-DGqIoF9r.js";import{aX as me,L as $,W as A,e as xe,G as he,y as je}from"./icons-DTcdLw9j.js";function fe({question:s,value:l,onChange:c,error:m,disabled:x=!1}){const[h,u]=o.useState(null),d=x||s.readOnly,j=()=>{switch(s.type){case"single":return e.jsx(re,{value:l||"",onValueChange:c,disabled:d,className:"space-y-2",children:s.options?.map(a=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(ae,{value:a.value,id:`${s.id}-${a.id}`}),e.jsx(C,{htmlFor:`${s.id}-${a.id}`,className:"cursor-pointer font-normal",children:a.label})]},a.id))});case"multiple":{const a=l||[];return e.jsxs("div",{className:"space-y-2",children:[s.options?.map(i=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(le,{id:`${s.id}-${i.id}`,checked:a.includes(i.value),disabled:d||s.maxSelections!==void 0&&a.length>=s.maxSelections&&!a.includes(i.value),onCheckedChange:f=>{c(f?[...a,i.value]:a.filter(p=>p!==i.value))}}),e.jsx(C,{htmlFor:`${s.id}-${i.id}`,className:"cursor-pointer font-normal",children:i.label})]},i.id)),s.maxSelections&&e.jsxs("p",{className:"text-xs text-muted-foreground",children:["最多选择 ",s.maxSelections," 项"]})]})}case"text":return e.jsx(q,{value:l||"",onChange:a=>c(a.target.value),placeholder:s.placeholder||"请输入...",disabled:d,readOnly:s.readOnly,maxLength:s.maxLength,className:g(s.readOnly&&"bg-muted cursor-not-allowed")});case"textarea":return e.jsxs("div",{className:"space-y-1",children:[e.jsx(te,{value:l||"",onChange:a=>c(a.target.value),placeholder:s.placeholder||"请输入...",disabled:d,readOnly:s.readOnly,maxLength:s.maxLength,rows:4,className:g(s.readOnly&&"bg-muted cursor-not-allowed")}),s.maxLength&&e.jsxs("p",{className:"text-xs text-muted-foreground text-right",children:[(l||"").length," / ",s.maxLength]})]});case"rating":{const a=l||0,i=h!==null?h:a;return e.jsxs("div",{className:"flex items-center gap-1",children:[[1,2,3,4,5].map(f=>e.jsx("button",{type:"button",disabled:d,className:g("p-1 transition-colors focus:outline-none focus:ring-2 focus:ring-ring rounded",d&&"cursor-not-allowed opacity-50"),onMouseEnter:()=>!d&&u(f),onMouseLeave:()=>u(null),onClick:()=>!d&&c(f),children:e.jsx(me,{className:g("h-6 w-6 transition-colors",f<=i?"fill-yellow-400 text-yellow-400":"text-muted-foreground")})},f)),a>0&&e.jsxs("span",{className:"ml-2 text-sm text-muted-foreground",children:[a," / 5"]})]})}case"scale":{const a=s.min??1,i=s.max??10,f=s.step??1,p=l??a;return e.jsxs("div",{className:"space-y-4",children:[e.jsx(ne,{value:[p],onValueChange:([v])=>c(v),min:a,max:i,step:f,disabled:d}),e.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[e.jsx("span",{children:s.minLabel||a}),e.jsx("span",{className:"font-medium text-foreground",children:p}),e.jsx("span",{children:s.maxLabel||i})]})]})}case"dropdown":return e.jsxs(ie,{value:l||"",onValueChange:c,disabled:d,children:[e.jsx(ce,{children:e.jsx(de,{placeholder:s.placeholder||"请选择..."})}),e.jsx(oe,{children:s.options?.map(a=>e.jsx(ue,{value:a.value,children:a.label},a.id))})]});default:return e.jsx("div",{className:"text-muted-foreground",children:"不支持的问题类型"})}};return e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs(C,{className:"text-base font-medium",children:[s.title,s.required&&e.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),s.description&&e.jsx("p",{className:"text-sm text-muted-foreground",children:s.description})]}),j(),m&&e.jsx("p",{className:"text-sm text-destructive",children:m})]})}const U="https://maibot-plugin-stats.maibot-webui.workers.dev";function F(){const s="maibot_user_id";let l=localStorage.getItem(s);if(!l){const c=Math.random().toString(36).substring(2,10),m=Date.now().toString(36),x=Math.random().toString(36).substring(2,10);l=`fp_${c}_${m}_${x}`,localStorage.setItem(s,l)}return l}async function pe(s,l,c,m){try{const x=m?.userId||F(),h={surveyId:s,surveyVersion:l,userId:x,answers:c,submittedAt:new Date().toISOString(),allowMultiple:m?.allowMultiple,metadata:{userAgent:navigator.userAgent,language:navigator.language}},u=await fetch(`${U}/survey/submit`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)}),d=await u.json();return u.status===429?{success:!1,error:"提交过于频繁,请稍后再试"}:u.status===409?{success:!1,error:d.error||"你已经提交过这份问卷了"}:u.ok?{success:!0,submissionId:d.submissionId,message:d.message}:{success:!1,error:d.error||"提交失败"}}catch(x){return console.error("Error submitting survey:",x),{success:!1,error:"网络错误"}}}async function ge(s,l){try{const c=l||F(),m=new URLSearchParams({user_id:c,survey_id:s}),x=await fetch(`${U}/survey/check?${m}`);return x.ok?{success:!0,hasSubmitted:(await x.json()).hasSubmitted}:{success:!1,error:(await x.json()).error||"检查失败"}}catch(c){return console.error("Error checking submission:",c),{success:!1,error:"网络错误"}}}function Le({config:s,initialAnswers:l,onSubmitSuccess:c,onSubmitError:m,showProgress:x=!0,paginateQuestions:h=!1,className:u}){const d=o.useCallback(()=>!l||l.length===0?{}:l.reduce((t,r)=>(t[r.questionId]=r.value,t),{}),[l]),[j,a]=o.useState(()=>d()),[i,f]=o.useState({}),[p,v]=o.useState(0),[b,M]=o.useState(!1),[B,G]=o.useState(!1),[E,S]=o.useState(null),[O,H]=o.useState(null),[W,X]=o.useState(!1),[Y,z]=o.useState(!0);o.useEffect(()=>{l&&l.length>0&&a(t=>({...t,...d()}))},[l,d]),o.useEffect(()=>{(async()=>{if(!s.settings?.allowMultiple){const r=await ge(s.id);r.success&&r.hasSubmitted&&X(!0)}z(!1)})()},[s.id,s.settings?.allowMultiple]);const J=o.useCallback(()=>{const t=new Date;return!(s.settings?.startTime&&new Date(s.settings.startTime)>t||s.settings?.endTime&&new Date(s.settings.endTime){const r=j[t.id];return r==null?!1:Array.isArray(r)?r.length>0:typeof r=="string"?r.trim()!=="":!0}).length,K=R/s.questions.length*100,Z=o.useCallback((t,r)=>{a(n=>({...n,[t]:r})),f(n=>{const V={...n};return delete V[t],V})},[]),_=o.useCallback(()=>{const t={};for(const r of s.questions){if(r.required){const n=j[r.id];if(n==null){t[r.id]="此题为必填项";continue}if(Array.isArray(n)&&n.length===0){t[r.id]="请至少选择一项";continue}if(typeof n=="string"&&n.trim()===""){t[r.id]="此题为必填项";continue}}r.minLength&&typeof j[r.id]=="string"&&j[r.id].length{if(!_()){if(h){const t=s.questions.findIndex(r=>i[r.id]);t>=0&&v(t)}return}M(!0),S(null);try{const t=s.questions.filter(n=>j[n.id]!==void 0).map(n=>({questionId:n.id,value:j[n.id]})),r=await pe(s.id,s.version,t,{allowMultiple:s.settings?.allowMultiple});if(r.success&&r.submissionId)G(!0),H(r.submissionId),c?.(r.submissionId);else{const n=r.error||"提交失败";S(n),m?.(n)}}catch(t){const r=t instanceof Error?t.message:"提交失败";S(r),m?.(r)}finally{M(!1)}},[_,h,s,j,i,c,m]),D=o.useCallback(t=>{t>=0&&te.jsxs("div",{className:g("p-4 rounded-lg border bg-card",i[t.id]?"border-destructive bg-destructive/5":"border-border"),children:[h&&e.jsxs("div",{className:"text-xs text-muted-foreground mb-2",children:["问题 ",p+1," / ",s.questions.length]}),!h&&e.jsxs("div",{className:"text-xs text-muted-foreground mb-2",children:[r+1,"."]}),e.jsx(fe,{question:t,value:j[t.id],onChange:n=>Z(t.id,n),error:i[t.id],disabled:b})]},t.id)),E&&e.jsxs(L,{variant:"destructive",children:[e.jsx(A,{className:"h-4 w-4"}),e.jsx(T,{children:E})]}),e.jsx("div",{className:"flex justify-between items-center py-4",children:h?e.jsxs(e.Fragment,{children:[e.jsxs(N,{variant:"outline",onClick:()=>D(p-1),disabled:p===0||b,children:[e.jsx(he,{className:"h-4 w-4 mr-1"}),"上一题"]}),p===s.questions.length-1?e.jsxs(N,{onClick:P,disabled:b,children:[b&&e.jsx($,{className:"h-4 w-4 mr-2 animate-spin"}),"提交问卷"]}):e.jsxs(N,{onClick:()=>D(p+1),disabled:b,children:["下一题",e.jsx(je,{className:"h-4 w-4 ml-1"})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:Object.keys(i).length>0&&e.jsxs("span",{className:"text-destructive",children:["还有 ",Object.keys(i).length," 个必填项未完成"]})}),e.jsxs(N,{onClick:P,disabled:b,size:"lg",children:[b&&e.jsx($,{className:"h-4 w-4 mr-2 animate-spin"}),"提交问卷"]})]})})]})})]})}export{Le as S}; diff --git a/dashboard/dist/assets/switch-Kc2EZ0Ga.js b/dashboard/dist/assets/switch-Kc2EZ0Ga.js new file mode 100644 index 00000000..a0652d83 --- /dev/null +++ b/dashboard/dist/assets/switch-Kc2EZ0Ga.js @@ -0,0 +1 @@ +import{r as i,j as e}from"./router-zNjPR4CY.js";import{aj as a,ak as n}from"./radix-C-ZuImoP.js";import{g as s}from"./index-CuOHsLf7.js";const c=i.forwardRef(({className:r,...t},o)=>e.jsx(a,{className:s("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm 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-input",r),...t,ref:o,children:e.jsx(n,{className:s("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));c.displayName=a.displayName;export{c as S}; diff --git a/dashboard/dist/assets/system-api-DeeJapvB.js b/dashboard/dist/assets/system-api-DeeJapvB.js new file mode 100644 index 00000000..bfac2d93 --- /dev/null +++ b/dashboard/dist/assets/system-api-DeeJapvB.js @@ -0,0 +1 @@ +import{x as e,y as o}from"./index-CuOHsLf7.js";async function i(){const t=await e("/api/webui/system/restart",{method:"POST",headers:o()});if(!t.ok){const a=await t.json();throw new Error(a.detail||"重启失败")}return await t.json()}async function c(){const t=await e("/api/webui/system/status",{method:"GET",headers:o()});if(!t.ok){const a=await t.json();throw new Error(a.detail||"获取状态失败")}return await t.json()}async function w(){const t=await e("/api/webui/system/local-cache",{method:"GET",headers:o()});if(!t.ok){const a=await t.json();throw new Error(a.detail||"获取本地缓存统计失败")}return await t.json()}async function h(t,a=[]){const s=await e("/api/webui/system/local-cache/cleanup",{method:"POST",headers:{...o(),"Content-Type":"application/json"},body:JSON.stringify({target:t,tables:a})});if(!s.ok){const r=await s.json();throw new Error(r.detail||"清理本地缓存失败")}return await s.json()}export{c as a,h as c,w as g,i as r}; diff --git a/dashboard/dist/assets/table-DFeDhBY_.js b/dashboard/dist/assets/table-DFeDhBY_.js new file mode 100644 index 00000000..dbbdc592 --- /dev/null +++ b/dashboard/dist/assets/table-DFeDhBY_.js @@ -0,0 +1 @@ +import{r as o,j as s}from"./router-zNjPR4CY.js";import{g as l}from"./index-CuOHsLf7.js";const r=o.forwardRef(({className:e,...a},t)=>s.jsx("div",{className:"relative w-full overflow-auto",children:s.jsx("table",{ref:t,className:l("w-full caption-bottom text-sm",e),...a})}));r.displayName="Table";const d=o.forwardRef(({className:e,...a},t)=>s.jsx("thead",{ref:t,className:l("[&_tr]:border-b",e),...a}));d.displayName="TableHeader";const m=o.forwardRef(({className:e,...a},t)=>s.jsx("tbody",{ref:t,className:l("[&_tr:last-child]:border-0",e),...a}));m.displayName="TableBody";const b=o.forwardRef(({className:e,...a},t)=>s.jsx("tfoot",{ref:t,className:l("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...a}));b.displayName="TableFooter";const c=o.forwardRef(({className:e,...a},t)=>s.jsx("tr",{ref:t,className:l("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...a}));c.displayName="TableRow";const f=o.forwardRef(({className:e,...a},t)=>s.jsx("th",{ref:t,className:l("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...a}));f.displayName="TableHead";const i=o.forwardRef(({className:e,...a},t)=>s.jsx("td",{ref:t,className:l("px-4 py-3 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...a}));i.displayName="TableCell";const x=o.forwardRef(({className:e,...a},t)=>s.jsx("caption",{ref:t,className:l("mt-4 text-sm text-muted-foreground",e),...a}));x.displayName="TableCaption";export{r as T,d as a,c as b,f as c,m as d,i as e}; diff --git a/dashboard/dist/assets/textarea-8PIujbf-.js b/dashboard/dist/assets/textarea-8PIujbf-.js new file mode 100644 index 00000000..36c04acc --- /dev/null +++ b/dashboard/dist/assets/textarea-8PIujbf-.js @@ -0,0 +1 @@ +import{r as t,j as m}from"./router-zNjPR4CY.js";import{g}from"./index-CuOHsLf7.js";const w=t.forwardRef(({className:o,autoResize:n=!0,minHeight:a=60,maxHeight:r,value:f,onChange:u,...h},p)=>{const i=t.useRef(null),[l,x]=t.useState(!1);t.useImperativeHandle(p,()=>i.current),t.useEffect(()=>{if(o){const e=/\b(h-\d+|h-\[[\d.]+(?:px|rem|em)\]|min-h-\[[\d.]+(?:px|rem|em)\])\b/.test(o);x(e)}},[o]);const s=t.useCallback(()=>{const e=i.current;if(!e||!n||l)return;e.style.height="auto";const c=e.scrollHeight;let d=Math.max(c,a);r&&r>0&&(d=Math.min(d,r)),e.style.height=`${d}px`,r&&r>0&&c>r?e.style.overflowY="auto":e.style.overflowY="hidden"},[n,l,a,r]);t.useEffect(()=>{s()},[f,s]),t.useEffect(()=>{s()},[s]);const b=t.useCallback(e=>{u?.(e),requestAnimationFrame(()=>{s()})},[u,s]);return m.jsx("textarea",{className:g("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","custom-scrollbar",n&&!l&&"resize-none overflow-hidden",o),ref:i,value:f,onChange:b,style:{minHeight:n&&!l?`${a}px`:void 0},...h})});w.displayName="Textarea";export{w as T}; diff --git a/dashboard/dist/assets/unified-ws-CBnrIqHW.js b/dashboard/dist/assets/unified-ws-CBnrIqHW.js new file mode 100644 index 00000000..a7acbca7 --- /dev/null +++ b/dashboard/dist/assets/unified-ws-CBnrIqHW.js @@ -0,0 +1 @@ +import{ax as d,aE as S,x as g}from"./index-CuOHsLf7.js";const i={THEME:"maibot-ui-theme",ACCENT_COLOR:"accent-color",ENABLE_ANIMATIONS:"maibot-animations",ENABLE_WAVES_BACKGROUND:"maibot-waves-background",LOG_CACHE_SIZE:"maibot-log-cache-size",LOG_AUTO_SCROLL:"maibot-log-auto-scroll",LOG_FONT_SIZE:"maibot-log-font-size",LOG_LINE_SPACING:"maibot-log-line-spacing",DATA_SYNC_INTERVAL:"maibot-data-sync-interval",WS_RECONNECT_INTERVAL:"maibot-ws-reconnect-interval",WS_MAX_RECONNECT_ATTEMPTS:"maibot-ws-max-reconnect-attempts",COMPLETED_TOURS:"maibot-completed-tours"},l={theme:"system",accentColor:d,enableAnimations:!0,enableWavesBackground:!0,logCacheSize:1e3,logAutoScroll:!0,logFontSize:"xs",logLineSpacing:4,dataSyncInterval:30,wsReconnectInterval:3e3,wsMaxReconnectAttempts:10};function c(o){const e=h(o),n=localStorage.getItem(e);if(n===null)return l[o];const t=l[o];if(typeof t=="boolean")return n==="true";if(typeof t=="number"){const s=parseFloat(n);return isNaN(s)?t:s}return n}function u(o,e){const n=h(o);localStorage.setItem(n,String(e)),window.dispatchEvent(new CustomEvent("maibot-settings-change",{detail:{key:o,value:e}}))}function m(){return{theme:c("theme"),accentColor:c("accentColor"),enableAnimations:c("enableAnimations"),enableWavesBackground:c("enableWavesBackground"),logCacheSize:c("logCacheSize"),logAutoScroll:c("logAutoScroll"),logFontSize:c("logFontSize"),logLineSpacing:c("logLineSpacing"),dataSyncInterval:c("dataSyncInterval"),wsReconnectInterval:c("wsReconnectInterval"),wsMaxReconnectAttempts:c("wsMaxReconnectAttempts")}}function A(){const o=m(),e=localStorage.getItem(i.COMPLETED_TOURS),n=e?JSON.parse(e):[];return{...o,completedTours:n}}function R(o){const e=[],n=[];for(const[t,s]of Object.entries(o)){if(t==="completedTours"){Array.isArray(s)?(localStorage.setItem(i.COMPLETED_TOURS,JSON.stringify(s)),e.push("completedTours")):n.push("completedTours");continue}if(t in l){const r=t,a=l[r];if(typeof s==typeof a){if(r==="theme"&&!["light","dark","system"].includes(s)){n.push(t);continue}if(r==="logFontSize"&&!["xs","sm","base"].includes(s)){n.push(t);continue}u(r,s),e.push(t)}else n.push(t)}else n.push(t)}return{success:e.length>0,imported:e,skipped:n}}function T(){for(const o of Object.keys(l))u(o,l[o]);localStorage.removeItem(i.COMPLETED_TOURS),window.dispatchEvent(new CustomEvent("maibot-settings-reset"))}function y(){const o=[],e=[],n=[];for(let t=0;tt.size-n.size),{used:o,items:localStorage.length,details:e}}function C(o){if(o===0)return"0 B";const e=1024,n=["B","KB","MB"],t=Math.floor(Math.log(o)/Math.log(e));return parseFloat((o/Math.pow(e,t)).toFixed(2))+" "+n[t]}function h(o){return{theme:i.THEME,accentColor:i.ACCENT_COLOR,enableAnimations:i.ENABLE_ANIMATIONS,enableWavesBackground:i.ENABLE_WAVES_BACKGROUND,logCacheSize:i.LOG_CACHE_SIZE,logAutoScroll:i.LOG_AUTO_SCROLL,logFontSize:i.LOG_FONT_SIZE,logLineSpacing:i.LOG_LINE_SPACING,dataSyncInterval:i.DATA_SYNC_INTERVAL,wsReconnectInterval:i.WS_RECONNECT_INTERVAL,wsMaxReconnectAttempts:i.WS_MAX_RECONNECT_ATTEMPTS}[o]}function f(o){return o.op==="response"}function w(o){return o.op==="event"}async function p(){try{const o=await g("/api/webui/ws-token",{method:"GET",credentials:"include"});if(!o.ok)return null;const e=await o.json();return e.success&&e.token?e.token:null}catch(o){return console.error("获取统一 WebSocket token 失败:",o),null}}class b{heartbeatIntervalMs=3e4;heartbeatTimeoutMs=9e4;connectPromise=null;connectionListeners=new Set;eventListeners=new Set;hasConnectedOnce=!1;heartbeatIntervalId=null;lastPongAt=0;manualDisconnect=!1;pendingRequests=new Map;reconnectAttempts=0;reconnectListeners=new Set;reconnectTimeout=null;requestCounter=0;status="idle";statusListeners=new Set;subscriptions=new Map;ws=null;getReconnectDelay(){const e=c("wsReconnectInterval");return Math.min(e*Math.max(this.reconnectAttempts,1),3e4)}getMaxReconnectAttempts(){return c("wsMaxReconnectAttempts")}getSubscriptionKey(e,n){return`${e}:${n}`}nextRequestId(){return this.requestCounter+=1,`ws-${Date.now()}-${this.requestCounter}`}setStatus(e){if(this.status===e)return;this.status=e,this.statusListeners.forEach(t=>{try{t(e)}catch(s){console.error("WebSocket 状态监听器执行失败:",s)}});const n=e==="connected";this.connectionListeners.forEach(t=>{try{t(n)}catch(s){console.error("WebSocket 连接监听器执行失败:",s)}})}stopHeartbeat(){this.heartbeatIntervalId!==null&&(clearInterval(this.heartbeatIntervalId),this.heartbeatIntervalId=null)}startHeartbeat(){this.stopHeartbeat(),this.heartbeatIntervalId=window.setInterval(()=>{if(this.ws?.readyState!==WebSocket.OPEN)return;const e=Date.now();if(this.lastPongAt>0&&e-this.lastPongAt>this.heartbeatTimeoutMs){console.warn("统一 WebSocket 心跳超时,准备重连"),this.restart().catch(n=>{console.error("统一 WebSocket 心跳重连失败:",n)});return}this.ws.send(JSON.stringify({op:"ping"}))},this.heartbeatIntervalMs)}clearReconnectTimer(){this.reconnectTimeout!==null&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null)}rejectPendingRequests(e){this.pendingRequests.forEach((n,t)=>{clearTimeout(n.timeoutId),n.reject(e),this.pendingRequests.delete(t)})}scheduleReconnect(){if(this.manualDisconnect)return;if(this.reconnectAttempts>=this.getMaxReconnectAttempts()){console.warn(`统一 WebSocket 达到最大重连次数 (${this.getMaxReconnectAttempts()}),停止重连`);return}this.reconnectAttempts+=1;const e=this.getReconnectDelay();this.clearReconnectTimer(),this.reconnectTimeout=window.setTimeout(()=>{this.connect().catch(n=>{console.error("统一 WebSocket 重连失败:",n)})},e)}async createWebSocketUrl(){const e=await S(),n=await p();return!e||!n?null:`${e}/api/webui/ws?token=${encodeURIComponent(n)}`}async sendRequest(e,n=1e4){if(this.ws?.readyState!==WebSocket.OPEN)throw new Error("统一 WebSocket 尚未连接");const t=e.id;return await new Promise((s,r)=>{const a=window.setTimeout(()=>{this.pendingRequests.delete(t),r(new Error(`统一 WebSocket 请求超时: ${t}`))},n);this.pendingRequests.set(t,{resolve:s,reject:r,timeoutId:a}),this.ws?.send(JSON.stringify(e))})}async restoreState(e){const n=Array.from(this.subscriptions.values());for(const t of n)try{await this.sendRequest({op:"subscribe",id:this.nextRequestId(),domain:t.domain,topic:t.topic,data:t.data??{}})}catch(s){console.error("恢复统一 WebSocket 订阅失败:",s)}e&&this.reconnectListeners.forEach(t=>{try{t()}catch(s){console.error("统一 WebSocket 重连监听器执行失败:",s)}})}handleServerMessage(e,n){if(this.ws!==e)return;let t;try{t=JSON.parse(n)}catch(s){console.error("解析统一 WebSocket 消息失败:",s);return}if(t.op==="pong"){this.lastPongAt=Date.now();return}if(f(t)){const s=t.id;if(!s)return;const r=this.pendingRequests.get(s);if(!r)return;clearTimeout(r.timeoutId),this.pendingRequests.delete(s),t.ok?r.resolve(t.data??{}):r.reject(new Error(t.error?.message??"统一 WebSocket 请求失败"));return}w(t)&&this.eventListeners.forEach(s=>{try{s(t)}catch(r){console.error("统一 WebSocket 事件监听器执行失败:",r)}})}handleClose(e,n){if(this.ws===e){if(this.stopHeartbeat(),this.lastPongAt=0,this.ws=null,this.connectPromise=null,this.setStatus("idle"),this.rejectPendingRequests(new Error(`统一 WebSocket 已关闭 (${n.code})`)),n.code===4001){this.manualDisconnect=!0,window.location.pathname!=="/auth"&&(window.location.href="/auth");return}this.scheduleReconnect()}}async connect(){if(this.ws?.readyState!==WebSocket.OPEN){if(this.connectPromise)return await this.connectPromise;this.manualDisconnect=!1,this.setStatus("connecting"),this.connectPromise=(async()=>{const e=await this.createWebSocketUrl();if(!e)throw this.setStatus("idle"),new Error("无法建立统一 WebSocket 连接");await new Promise((n,t)=>{let s=!1;const r=new WebSocket(e);this.ws=r,r.onopen=()=>{if(this.ws!==r){r.close();return}s=!0;const a=this.hasConnectedOnce;this.hasConnectedOnce=!0,this.reconnectAttempts=0,this.lastPongAt=Date.now(),this.startHeartbeat(),this.setStatus("connected"),n(),this.restoreState(a)},r.onmessage=a=>{this.handleServerMessage(r,a.data)},r.onerror=()=>{this.ws===r&&(s||(s=!0,t(new Error("统一 WebSocket 连接失败"))))},r.onclose=a=>{s||(s=!0,t(new Error(`统一 WebSocket 已关闭 (${a.code})`))),this.handleClose(r,a)}})})();try{await this.connectPromise}finally{this.status!=="connected"&&(this.connectPromise=null)}}}disconnect(){this.manualDisconnect=!0,this.clearReconnectTimer(),this.stopHeartbeat(),this.lastPongAt=0,this.rejectPendingRequests(new Error("统一 WebSocket 已手动断开")),this.connectPromise=null,this.ws&&(this.ws.close(),this.ws=null),this.setStatus("idle")}async restart(){if(this.manualDisconnect=!1,this.clearReconnectTimer(),this.ws){this.ws.close();return}await this.connect()}async call(e){await this.connect();const n=this.nextRequestId();return await this.sendRequest({op:"call",id:n,domain:e.domain,method:e.method,session:e.session,data:e.data??{}})}async subscribe(e,n,t){return await this.connect(),this.subscriptions.set(this.getSubscriptionKey(e,n),{domain:e,topic:n,data:t}),await this.sendRequest({op:"subscribe",id:this.nextRequestId(),domain:e,topic:n,data:t??{}})}async unsubscribe(e,n){return this.subscriptions.delete(this.getSubscriptionKey(e,n)),this.ws?.readyState!==WebSocket.OPEN?null:await this.sendRequest({op:"unsubscribe",id:this.nextRequestId(),domain:e,topic:n,data:{}})}addEventListener(e){return this.eventListeners.add(e),()=>{this.eventListeners.delete(e)}}onConnectionChange(e){return this.connectionListeners.add(e),e(this.status==="connected"),()=>{this.connectionListeners.delete(e)}}onStatusChange(e){return this.statusListeners.add(e),e(this.status),()=>{this.statusListeners.delete(e)}}onReconnect(e){return this.reconnectListeners.add(e),()=>{this.reconnectListeners.delete(e)}}getStatus(){return this.status}}const L=new b;export{l as D,I as a,y as c,A as e,C as f,c as g,R as i,T as r,u as s,L as u}; diff --git a/dashboard/dist/assets/uppy-S0BLpioz.js b/dashboard/dist/assets/uppy-S0BLpioz.js new file mode 100644 index 00000000..d93c31b9 --- /dev/null +++ b/dashboard/dist/assets/uppy-S0BLpioz.js @@ -0,0 +1,11 @@ +import{g as re,f as _e}from"./router-zNjPR4CY.js";import"./charts-C6WIfXk3.js";import"./radix-C-ZuImoP.js";const Ks=/^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/;function Xs(i,e,t){const s=Ks.exec(i),n=e.mimeType??s?.[1]??"plain/text";let r;if(s?.[2]!=null){const a=atob(decodeURIComponent(s[3])),o=new Uint8Array(a.length);for(let u=0;u(e+=`-${Qs(t)}`,"/"))+e}function Js(i,e){let t=e||"uppy";return typeof i.name=="string"&&(t+=`-${Jt(i.name.toLowerCase())}`),i.type!==void 0&&(t+=`-${i.type}`),i.meta&&typeof i.meta.relativePath=="string"&&(t+=`-${Jt(i.meta.relativePath.toLowerCase())}`),i.data?.size!==void 0&&(t+=`-${i.data.size}`),i.data.lastModified!==void 0&&(t+=`-${i.data.lastModified}`),t}function Zs(i){return!i.isRemote||!i.remote?!1:new Set(["box","dropbox","drive","facebook","unsplash"]).has(i.remote.provider)}function en(i,e){if(Zs(i))return i.id;const t=as(i);return Js({...i,type:t},e)}const ue=Array.from;function tn(i){const e=ue(i.files);return Promise.resolve(e)}function os(i,e,t,{onSuccess:s}){i.readEntries(n=>{const r=[...e,...n];n.length?queueMicrotask(()=>{os(i,r,t,{onSuccess:s})}):s(r)},n=>{t(n),s(e)})}function ls(i,e){return i==null?i:{kind:i.isFile?"file":i.isDirectory?"directory":void 0,name:i.name,getFile(){return new Promise((t,s)=>i.file(t,s))},async*values(){const t=i.createReader();yield*await new Promise(n=>{os(t,[],e,{onSuccess:r=>n(r.map(a=>ls(a,e)))})})},isSameEntry:void 0}}async function*ds(i,e,t=void 0){const s=()=>`${e}/${i.name}`;if(i.kind==="file"){const n=await i.getFile();n!=null?(n.relativePath=e?s():null,yield n):t!=null&&(yield t)}else if(i.kind==="directory")for await(const n of i.values())yield*ds(n,e?s():i.name);else t!=null&&(yield t)}async function*sn(i,e){const t=await Promise.all(Array.from(i.items,async s=>{let n;return n??=ls(typeof s.getAsEntry=="function"?s.getAsEntry():s.webkitGetAsEntry(),e),{fileSystemHandle:n,lastResortFile:s.getAsFile()}}));for(const{lastResortFile:s,fileSystemHandle:n}of t)if(n!=null)try{yield*ds(n,"",s)}catch(r){s!=null?yield s:e(r)}else s!=null&&(yield s)}async function nn(i,e){const t=e?.logDropError??Function.prototype;try{const s=[];for await(const n of sn(i,t))s.push(n);return s}catch{return tn(i)}}function rn(i){for(;i&&!i.dir;)i=i.parentNode;return i?.dir}function $e(i){return i<10?`0${i}`:i.toString()}function Ue(){const i=new Date,e=$e(i.getHours()),t=$e(i.getMinutes()),s=$e(i.getSeconds());return`${e}:${t}:${s}`}function an(){if(typeof window>"u")return!1;const i=document.body;return!(i==null||window==null||!("draggable"in i)||!("ondragstart"in i)||!("ondrop"in i)||!("FormData"in window)||!("FileReader"in window))}function Zt(i){return i.startsWith("blob:")}function ei(i){return i?/^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(i):!1}function on(i){const e=Math.floor(i/3600)%24,t=Math.floor(i/60)%60,s=Math.floor(i%60);return{hours:e,minutes:t,seconds:s}}function ln(i){const e=on(i),t=e.hours===0?"":`${e.hours}h`,s=e.minutes===0?"":`${e.hours===0?e.minutes:` ${e.minutes.toString(10).padStart(2,"0")}`}m`,n=e.hours!==0?"":`${e.minutes===0?e.seconds:` ${e.seconds.toString(10).padStart(2,"0")}`}s`;return`${t}${s}${n}`}function dn(i,e,t){const s=[];return i.forEach(n=>typeof n!="string"?s.push(n):e[Symbol.split](n).forEach((r,a,o)=>{r!==""&&s.push(r),a{throw new Error(`missing string: ${i}`)};class us{locale;constructor(e,{onMissingKey:t=un}={}){this.locale={strings:{},pluralize(s){return s===1?0:1}},Array.isArray(e)?e.forEach(this.#t,this):this.#t(e),this.#e=t}#e;#t(e){if(!e?.strings)return;const t=this.locale;Object.assign(this.locale,{strings:{...t.strings,...e.strings},pluralize:e.pluralize||t.pluralize})}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){let s=this.locale.strings[e];if(s==null&&(this.#e(e),s=e),typeof s=="object"){if(t&&typeof t.smart_count<"u"){const r=this.locale.pluralize(t.smart_count);return ti(s[r],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if(typeof s!="string")throw new Error("string was not a string");return ti(s,t)}}const ze="...";function hs(i,e){if(e===0)return"";if(i.length<=e)return i;if(e<=ze.length+1)return`${i.slice(0,e-1)}…`;const t=e-ze.length,s=Math.ceil(t/2),n=Math.floor(t/2);return i.slice(0,s)+ze+i.slice(-n)}var ye,S,cs,K,ii,ps,fs,qe,Ne,he,ms,Et,vt,_t,De={},xe=[],hn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,be=Array.isArray;function j(i,e){for(var t in e)i[t]=e[t];return i}function At(i){i&&i.parentNode&&i.parentNode.removeChild(i)}function Ot(i,e,t){var s,n,r,a={};for(r in e)r=="key"?s=e[r]:r=="ref"?n=e[r]:a[r]=e[r];if(arguments.length>2&&(a.children=arguments.length>3?ye.call(arguments,2):t),typeof i=="function"&&i.defaultProps!=null)for(r in i.defaultProps)a[r]===void 0&&(a[r]=i.defaultProps[r]);return ce(i,a,s,n,null)}function ce(i,e,t,s,n){var r={type:i,props:e,key:t,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:n??++cs,__i:-1,__u:0};return n==null&&S.vnode!=null&&S.vnode(r),r}function cn(){return{current:null}}function W(i){return i.children}function H(i,e){this.props=i,this.context=e}function se(i,e){if(e==null)return i.__?se(i.__,i.__i+1):null;for(var t;ee&&K.sort(fs),i=K.shift(),e=K.length,pn(i)}finally{K.length=Be.__r=0}}function ys(i,e,t,s,n,r,a,o,u,d,c){var h,p,f,m,y,v,b,g=s&&s.__k||xe,_=e.length;for(u=fn(t,e,g,u,_),h=0;h<_;h++)(f=t.__k[h])!=null&&(p=f.__i!=-1&&g[f.__i]||De,f.__i=h,v=Ut(i,f,p,n,r,a,o,u,d,c),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Nt(p.ref,null,f),c.push(f.ref,f.__c||m,f)),y==null&&m!=null&&(y=m),(b=!!(4&f.__u))||p.__k===f.__k?(u=bs(f,u,i,b),b&&p.__e&&(p.__e=null)):typeof f.type=="function"&&v!==void 0?u=v:m&&(u=m.nextSibling),f.__u&=-7);return t.__e=y,u}function fn(i,e,t,s,n){var r,a,o,u,d,c=t.length,h=c,p=0;for(i.__k=new Array(n),r=0;r0?a=i.__k[r]=ce(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):i.__k[r]=a,u=r+p,a.__=i,a.__b=i.__b+1,o=null,(d=a.__i=mn(a,t,u,h))!=-1&&(h--,(o=t[d])&&(o.__u|=2)),o==null||o.__v==null?(d==-1&&(n>c?p--:nu?p--:p++,a.__u|=4))):i.__k[r]=null;if(h)for(r=0;r(c?1:0)){for(n=t-1,r=t+1;n>=0||r=0?n--:r++])!=null&&(2&d.__u)==0&&o==d.key&&u==d.type)return a}return-1}function ni(i,e,t){e[0]=="-"?i.setProperty(e,t??""):i[e]=t==null?"":typeof t!="number"||hn.test(e)?t:t+"px"}function we(i,e,t,s,n){var r,a;e:if(e=="style")if(typeof t=="string")i.style.cssText=t;else{if(typeof s=="string"&&(i.style.cssText=s=""),s)for(e in s)t&&e in t||ni(i.style,e,"");if(t)for(e in t)s&&t[e]==s[e]||ni(i.style,e,t[e])}else if(e[0]=="o"&&e[1]=="n")r=e!=(e=e.replace(ms,"$1")),a=e.toLowerCase(),e=a in i||e=="onFocusOut"||e=="onFocusIn"?a.slice(2):e.slice(2),i.l||(i.l={}),i.l[e+r]=t,t?s?t[he]=s[he]:(t[he]=Et,i.addEventListener(e,r?_t:vt,r)):i.removeEventListener(e,r?_t:vt,r);else{if(n=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in i)try{i[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!="-"?i.removeAttribute(e):i.setAttribute(e,e=="popover"&&t==1?"":t))}}function ri(i){return function(e){if(this.l){var t=this.l[e.type+i];if(e[Ne]==null)e[Ne]=Et++;else if(e[Ne]0?i:be(i)?i.map(_s):j({},i)}function gn(i,e,t,s,n,r,a,o,u){var d,c,h,p,f,m,y,v=t.props||De,b=e.props,g=e.type;if(g=="svg"?n="http://www.w3.org/2000/svg":g=="math"?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),r!=null){for(d=0;d2&&(o.children=arguments.length>3?ye.call(arguments,2):t),ce(i.type,o,s||i.key,n||i.ref,null)}ye=xe.slice,S={__e:function(i,e,t,s){for(var n,r,a;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(i)),a=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(i,s||{}),a=n.__d),a)return n.__E=n}catch(o){i=o}throw i}},cs=0,H.prototype.setState=function(i,e){var t;t=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=j({},this.state),typeof i=="function"&&(i=i(j({},t),this.props)),i&&j(t,i),i!=null&&this.__v&&(e&&this._sb.push(e),si(this))},H.prototype.forceUpdate=function(i){this.__v&&(this.__e=!0,i&&this.__h.push(i),si(this))},H.prototype.render=W,K=[],ps=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,fs=function(i,e){return i.__v.__b-e.__v.__b},Be.__r=0,qe=Math.random().toString(8),Ne="__d"+qe,he="__a"+qe,ms=/(PointerCapture)$|Capture$/i,Et=0,vt=ri(!1),_t=ri(!0);var bn=0;function l(i,e,t,s,n,r){e||(e={});var a,o,u=e;if("ref"in u)for(o in u={},e)o=="ref"?a=e[o]:u[o]=e[o];var d={type:i,props:u,key:t,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--bn,__i:-1,__u:0,__source:n,__self:r};if(typeof i=="function"&&(a=i.defaultProps))for(o in a)u[o]===void 0&&(u[o]=a[o]);return S.vnode&&S.vnode(d),d}var pe,E,je,oi,fe=0,Ss=[],O=S,li=O.__b,di=O.__r,ui=O.diffed,hi=O.__c,ci=O.unmount,pi=O.__;function It(i,e){O.__h&&O.__h(E,i,fe||e),fe=0;var t=E.__H||(E.__H={__:[],__h:[]});return i>=t.__.length&&t.__.push({}),t.__[i]}function ne(i){return fe=1,vn(Ps,i)}function vn(i,e,t){var s=It(pe++,2);if(s.t=i,!s.__c&&(s.__=[Ps(void 0,e),function(o){var u=s.__N?s.__N[0]:s.__[0],d=s.t(u,o);u!==d&&(s.__N=[d,s.__[1]],s.__c.setState({}))}],s.__c=E,!E.__f)){var n=function(o,u,d){if(!s.__c.__H)return!0;var c=s.__c.__H.__.filter(function(p){return p.__c});if(c.every(function(p){return!p.__N}))return!r||r.call(this,o,u,d);var h=s.__c.props!==o;return c.some(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(h=!0)}}),r&&r.call(this,o,u,d)||h};E.__f=!0;var r=E.shouldComponentUpdate,a=E.componentWillUpdate;E.componentWillUpdate=function(o,u,d){if(this.__e){var c=r;r=void 0,n(o,u,d),r=c}a&&a.call(this,o,u,d)},E.shouldComponentUpdate=n}return s.__N||s.__}function Re(i,e){var t=It(pe++,3);!O.__s&&Ts(t.__H,e)&&(t.__=i,t.u=e,E.__H.__h.push(t))}function ie(i){return fe=5,Dt(function(){return{current:i}},[])}function Dt(i,e){var t=It(pe++,7);return Ts(t.__H,e)&&(t.__=i(),t.__H=e,t.__h=i),t.__}function Me(i,e){return fe=8,Dt(function(){return i},e)}function _n(){for(var i;i=Ss.shift();){var e=i.__H;if(i.__P&&e)try{e.__h.some(Ie),e.__h.some(Ft),e.__h=[]}catch(t){e.__h=[],O.__e(t,i.__v)}}}O.__b=function(i){E=null,li&&li(i)},O.__=function(i,e){i&&e.__k&&e.__k.__m&&(i.__m=e.__k.__m),pi&&pi(i,e)},O.__r=function(i){di&&di(i),pe=0;var e=(E=i.__c).__H;e&&(je===E?(e.__h=[],E.__h=[],e.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(e.__h.some(Ie),e.__h.some(Ft),e.__h=[],pe=0)),je=E},O.diffed=function(i){ui&&ui(i);var e=i.__c;e&&e.__H&&(e.__H.__h.length&&(Ss.push(e)!==1&&oi===O.requestAnimationFrame||((oi=O.requestAnimationFrame)||wn)(_n)),e.__H.__.some(function(t){t.u&&(t.__H=t.u),t.u=void 0})),je=E=null},O.__c=function(i,e){e.some(function(t){try{t.__h.some(Ie),t.__h=t.__h.filter(function(s){return!s.__||Ft(s)})}catch(s){e.some(function(n){n.__h&&(n.__h=[])}),e=[],O.__e(s,t.__v)}}),hi&&hi(i,e)},O.unmount=function(i){ci&&ci(i);var e,t=i.__c;t&&t.__H&&(t.__H.__.some(function(s){try{Ie(s)}catch(n){e=n}}),t.__H=void 0,e&&O.__e(e,t.__v))};var fi=typeof requestAnimationFrame=="function";function wn(i){var e,t=function(){clearTimeout(s),fi&&cancelAnimationFrame(e),setTimeout(i)},s=setTimeout(t,35);fi&&(e=requestAnimationFrame(t))}function Ie(i){var e=E,t=i.__c;typeof t=="function"&&(i.__c=void 0,t()),E=e}function Ft(i){var e=E;i.__c=i.__(),E=e}function Ts(i,e){return!i||i.length!==e.length||e.some(function(t,s){return t!==i[s]})}function Ps(i,e){return typeof e=="function"?e(i):e}const Fn={position:"relative",width:"100%",minHeight:"100%"},Sn={position:"absolute",top:0,left:0,width:"100%",overflow:"visible"};function Tn({data:i,rowHeight:e,renderRow:t,overscanCount:s=10,padding:n=4,...r}){const a=ie(null),[o,u]=ne(0),[d,c]=ne(0);Re(()=>{function g(){a.current!=null&&d!==a.current.offsetHeight&&c(a.current.offsetHeight)}return g(),window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}},[d]);const h=Me(()=>{a.current&&u(a.current.scrollTop)},[]);let p=Math.floor(o/e),f=Math.floor(d/e);s&&(p=Math.max(0,p-p%s),f+=s);const m=p+f+n,y=i.slice(p,m),v={...Fn,height:i.length*e},b={...Sn,top:p*e};return l("div",{onScroll:h,ref:a,...r,children:l("div",{role:"presentation",style:v,children:l("div",{role:"presentation",style:b,children:y.map(t)})})})}class Pn{uppy;opts;id;defaultLocale;i18n;i18nArray;type;VERSION;constructor(e,t){this.uppy=e,this.opts=t??{}}getPluginState(){const{plugins:e}=this.uppy.getState();return e?.[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(void 0),this.i18nInit()}i18nInit(){const e=new us([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState(void 0)}addTarget(e){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(e){}afterUpdate(){}}const Cn={debug:()=>{},warn:()=>{},error:(...i)=>console.error(`[Uppy] [${Ue()}]`,...i)},kn={debug:(...i)=>console.debug(`[Uppy] [${Ue()}]`,...i),warn:(...i)=>console.warn(`[Uppy] [${Ue()}]`,...i),error:(...i)=>console.error(`[Uppy] [${Ue()}]`,...i)};var He,mi;function En(){return mi||(mi=1,He=function(e){if(typeof e!="number"||Number.isNaN(e))throw new TypeError(`Expected a number, got ${typeof e}`);const t=e<0;let s=Math.abs(e);if(t&&(s=-s),s===0)return"0 B";const n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],r=Math.min(Math.floor(Math.log(s)/Math.log(1024)),n.length-1),a=Number(s/1024**r),o=n[r];return`${a>=10||a%1===0?Math.round(a):a.toFixed(1)} ${o}`}),He}var An=En();const J=re(An);var Ve,gi;function On(){if(gi)return Ve;gi=1;function i(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}return i.prototype.match=function(e){var t=!0,s=this.parts,n,r=s.length,a;if(typeof e=="string"||e instanceof String)if(!this.hasWild&&this.text!=e)t=!1;else{for(a=(e||"").split(this.separator),n=0;t&&n=2}return s?n(s.split(";")[0]):n},We}var Nn=Un();const In=re(Nn),Dn={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class B extends Error{isUserFacing;file;constructor(e,t){super(e),this.isUserFacing=t?.isUserFacing??!0,t?.file&&(this.file=t.file)}isRestriction=!0}class xn{getI18n;getOpts;constructor(e,t){this.getI18n=t,this.getOpts=()=>{const s=e();if(s.restrictions?.allowedFileTypes!=null&&!Array.isArray(s.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return s}}validateAggregateRestrictions(e,t){const{maxTotalFileSize:s,maxNumberOfFiles:n}=this.getOpts().restrictions;if(n&&e.filter(a=>!a.isGhost).length+t.length>n)throw new B(`${this.getI18n()("youCanOnlyUploadX",{smart_count:n})}`);if(s){const r=[...e,...t].reduce((a,o)=>a+(o.size??0),0);if(r>s)throw new B(this.getI18n()("aggregateExceedsSize",{sizeAllowed:J(s),size:J(r)}))}}validateSingleFile(e){const{maxFileSize:t,minFileSize:s,allowedFileTypes:n}=this.getOpts().restrictions;if(n&&!n.some(a=>a.includes("/")?e.type?In(e.type.replace(/;.*?$/,""),a):!1:a[0]==="."&&e.extension?e.extension.toLowerCase()===a.slice(1).toLowerCase():!1)){const a=n.join(", ");throw new B(this.getI18n()("youCanOnlyUploadFileTypes",{types:a}),{file:e})}if(t&&e.size!=null&&e.size>t)throw new B(this.getI18n()("exceedsSize",{size:J(t),file:e.name??this.getI18n()("unnamed")}),{file:e});if(s&&e.size!=null&&e.size{this.validateSingleFile(s)}),this.validateAggregateRestrictions(e,t)}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(t&&Object.keys(e).length(t=s,e||(e=Promise.resolve().then(()=>(e=null,i(...t)))),e)}class me extends Pn{#e;isTargetDOMEl;el;parent;title;getTargetPlugin(e){let t;if(typeof e?.addTarget=="function")t=e,t instanceof me||console.warn(new Error("The provided plugin is not an instance of UIPlugin. This is an indication of a bug with the way Uppy is bundled.",{cause:{targetPlugin:t,UIPlugin:me}}));else if(typeof e=="function"){const s=e;this.uppy.iteratePlugins(n=>{n instanceof s&&(t=n)})}return t}mount(e,t){const s=t.id,n=Ys(e);if(n){this.isTargetDOMEl=!0;const o=document.createElement("div");return o.classList.add("uppy-Root"),this.#e=Bn(u=>{this.uppy.getPlugin(this.id)&&(ai(this.render(u,o),o),this.afterUpdate())}),this.uppy.log(`Installing ${s} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(n.innerHTML=""),ai(this.render(this.uppy.getState(),o),o),this.el=o,n.appendChild(o),o.dir=this.opts.direction||rn(o)||"ltr",this.onMount(),this.el}const r=this.getTargetPlugin(e);if(r)return this.uppy.log(`Installing ${s} to ${r.id}`),this.parent=r,this.el=r.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${s}`);let a=`Invalid target option given to ${s}.`;throw typeof e=="function"?a+=" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":a+="If you meant to target an HTML element, please make sure that the element exists. Check that the + + + + + + + + + +
+ + diff --git a/dashboard/dist/maimai.ico b/dashboard/dist/maimai.ico new file mode 100644 index 00000000..3c1b131e Binary files /dev/null and b/dashboard/dist/maimai.ico differ