diff --git a/assets/Translatex-83019934.js b/assets/Translatex-37dc0dc8.js similarity index 93% rename from assets/Translatex-83019934.js rename to assets/Translatex-37dc0dc8.js index 91d16ea..907bbeb 100644 --- a/assets/Translatex-83019934.js +++ b/assets/Translatex-37dc0dc8.js @@ -1 +1 @@ -var p=Object.defineProperty;var o=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var i=(a,e,t)=>e in a?p(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,n=(a,e)=>{for(var t in e||(e={}))x.call(e,t)&&i(a,t,e[t]);if(o)for(var t of o(e))u.call(e,t)&&i(a,t,e[t]);return a};import{j as g}from"./antd-66264537.js";import{u as Y,a as y}from"./entry/index-49ff40a5.1715612414483.js";import{a as l}from"./react-f288da4a.js";function E(a){const{children:e,direction:t="left",delay:c=3e3,run:s=!1,config:f={tension:100,friction:26}}=a,[r,m]=l.useState(!1);l.useEffect(()=>{m(s)},[s]);const d=Y({opacity:r?1:0,transform:r?`${t==="left"?"translateX(0px) scale(1) rotateY(0deg)":"translateY(0px) scale(1) rotateY(0deg)"}`:`${t==="left"?"translateX(80px) scale(1) rotateY(10deg)":"translateY(80px) scale(0.9) rotateY(10deg)"}`,delay:c,config:n({},f),onRest:()=>{}});return g.jsx(y.div,{className:a.className,style:n({},d),children:s&&e})}export{E as T}; +var p=Object.defineProperty;var o=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var i=(a,e,t)=>e in a?p(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,n=(a,e)=>{for(var t in e||(e={}))x.call(e,t)&&i(a,t,e[t]);if(o)for(var t of o(e))u.call(e,t)&&i(a,t,e[t]);return a};import{j as g}from"./antd-66264537.js";import{u as Y,a as y}from"./entry/index-03014cdd.1715615595704.js";import{a as l}from"./react-f288da4a.js";function E(a){const{children:e,direction:t="left",delay:c=3e3,run:s=!1,config:f={tension:100,friction:26}}=a,[r,m]=l.useState(!1);l.useEffect(()=>{m(s)},[s]);const d=Y({opacity:r?1:0,transform:r?`${t==="left"?"translateX(0px) scale(1) rotateY(0deg)":"translateY(0px) scale(1) rotateY(0deg)"}`:`${t==="left"?"translateX(80px) scale(1) rotateY(10deg)":"translateY(80px) scale(0.9) rotateY(10deg)"}`,delay:c,config:n({},f),onRest:()=>{}});return g.jsx(y.div,{className:a.className,style:n({},d),children:s&&e})}export{E as T}; diff --git a/assets/api-3af9db57.js b/assets/api-fb89cc47.js similarity index 99% rename from assets/api-3af9db57.js rename to assets/api-fb89cc47.js index e137ff2..9c51fd1 100644 --- a/assets/api-3af9db57.js +++ b/assets/api-fb89cc47.js @@ -1,2 +1,2 @@ -var k=Object.defineProperty;var S=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var V=(a,e,n)=>e in a?k(a,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[e]=n,G=(a,e)=>{for(var n in e||(e={}))R.call(e,n)&&V(a,n,e[n]);if(S)for(var n of S(e))w.call(e,n)&&V(a,n,e[n]);return a};import{S as z,g as C,aw as _,o as U,aj as D,ab as x,j as y,M as L,ax as F,as as K}from"./antd-66264537.js";import{r as f,a as c}from"./react-f288da4a.js";import{n as $,C as B,q as H,s as j,G as W,v as J,w as X}from"./entry/index-49ff40a5.1715612414483.js";function g(a){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(a)}function q(a,e){return ee(a)||Z(a,e)||Y(a,e)||Q()}function Q(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +var k=Object.defineProperty;var S=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var V=(a,e,n)=>e in a?k(a,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[e]=n,G=(a,e)=>{for(var n in e||(e={}))R.call(e,n)&&V(a,n,e[n]);if(S)for(var n of S(e))w.call(e,n)&&V(a,n,e[n]);return a};import{S as z,g as C,aw as _,o as U,aj as D,ab as x,j as y,M as L,ax as F,as as K}from"./antd-66264537.js";import{r as f,a as c}from"./react-f288da4a.js";import{n as $,C as B,q as H,s as j,G as W,v as J,w as X}from"./entry/index-03014cdd.1715615595704.js";function g(a){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(a)}function q(a,e){return ee(a)||Z(a,e)||Y(a,e)||Q()}function Q(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y(a,e){if(a){if(typeof a=="string")return P(a,e);var n=Object.prototype.toString.call(a).slice(8,-1);if(n==="Object"&&a.constructor&&(n=a.constructor.name),n==="Map"||n==="Set")return Array.from(a);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(a,e)}}function P(a,e){(e==null||e>a.length)&&(e=a.length);for(var n=0,t=new Array(e);ns+1){for(var p=[],h=s;h{const[e,n]=f.useState(!1),[,t]=f.useState("1"),[s,d]=f.useState([]),l=i=>y.jsx(K,{checkable:!0,treeData:i,fieldNames:{title:"displayName",key:"name"},defaultExpandAll:!0,checkStrictly:!0,defaultCheckedKeys:s,onCheck:(r,o)=>{const u=new Set(s);o.checked?r.checked.forEach(p=>u.add(p)):u.delete(o.node.key),d(Array.from(u))}}),m=f.useMemo(()=>{const i=[],r=re.map(o=>{const u=X(o.permissions).filter(p=>p.isGranted).map(p=>p.name);return i.push(...u),{key:o.name,label:o.displayName,children:l(o.permissions)}});return d(i),r},[e]);return y.jsxs(y.Fragment,{children:[y.jsx(j,{sub:!0,type:"link",onClick:()=>n(!0),children:"授权"}),y.jsx(L,{title:"授权",open:e,onCancel:()=>n(!1),onOk:()=>{},children:e&&y.jsx(F,{tabPosition:"left",defaultActiveKey:"1",items:m,onChange:t})})]})};let b=[];const le=()=>{if(!b.length){const a=localStorage.getItem("CHARA_DATA_1015");a?b=JSON.parse(a):fetch("https://sunflower-assets.oss-cn-hangzhou.aliyuncs.com/data/data.json").then(e=>e.json()).then(e=>{b=e.reverse(),localStorage.setItem("CHARA_DATA_1015",JSON.stringify(b))})}};le();const ye=a=>{const e=G(G({},a.search),a.filters);return new Promise(n=>{setTimeout(()=>{let t=b.filter(l=>{let m=!0;for(const i in e){const r=e[i];l.hasOwnProperty(i)&&l[i]!==void 0&&r!==null&&(Array.isArray(r)&&!r.includes(l[i])||typeof r=="number"&&Number(l[i])===r||typeof r=="string"&&!`${l[i]}`.includes(`${r}`))&&(m=!1)}return m});(a.sorts||[]).forEach(l=>{const{key:m,order:i}=l;t.sort((r,o)=>i==="descend"?r[m]-o[m]:o[m]-r[m])});const d=t.length;t=t.slice(a.pageSize*(a.pageIndex-1),a.pageSize*a.pageIndex),n({content:t,totalCount:d})},300)})};export{pe as A,ue as G,ye as l}; diff --git a/assets/count-up-94605701.js b/assets/count-up-ad6a268a.js similarity index 95% rename from assets/count-up-94605701.js rename to assets/count-up-ad6a268a.js index 7ef6f92..c75cea2 100644 --- a/assets/count-up-94605701.js +++ b/assets/count-up-ad6a268a.js @@ -1 +1 @@ -var I=Object.defineProperty;var h=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var f=(r,t,s)=>t in r?I(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,l=(r,t)=>{for(var s in t||(t={}))C.call(t,s)&&f(r,s,t[s]);if(h)for(var s of h(t))w.call(t,s)&&f(r,s,t[s]);return r};import{G as a,j as e,J as S,K as x,n as o,t as i,I as d,S as N,i as j}from"./antd-66264537.js";import{t as n}from"./entry/index-49ff40a5.1715612414483.js";import{r as m}from"./react-f288da4a.js";import{u as U,_ as u}from"./index-646dffa4.js";import{P,C as R}from"./websiteSetting-168278cd.js";const k=()=>{const[r]=a.useForm(),[t,s]=m.useState({start:0,end:2020,duration:4,decimals:0,separator:",",prefix:"¥ ",suffix:" rmb"}),p=m.useRef(null),{start:y,reset:c}=U(l({ref:p},t));m.useEffect(()=>{c()},[]);const b=g=>{s(l(l({},t),g))};return e.jsx(P,{plugin:R,children:e.jsxs(S,{gutter:12,children:[e.jsx(x,{span:6,children:e.jsx(o,{title:n("正向增加"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(u,{start:0,end:2020,duration:4,style:{height:"100%",fontSize:"40px",color:"#e65d6e"},className:"flex-center"})})}),e.jsx(x,{span:12,children:e.jsxs(o,{title:n("自定义配置"),bordered:!1,bodyStyle:{height:"300px"},children:[e.jsx("div",{className:"flex-center",style:{marginBottom:"30px"},children:e.jsx("span",{ref:p,style:{fontSize:"40px",color:"#e65d6e"}})}),e.jsxs(a,{form:r,initialValues:l({},t),layout:"inline",labelAlign:"left",labelCol:{style:{width:"80px",marginBottom:"12px"}},onValuesChange:b,children:[e.jsx(a.Item,{label:"startVal:",name:"start",children:e.jsx(i,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"endVal:",name:"end",children:e.jsx(i,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"duration:",name:"duration",children:e.jsx(i,{min:1,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"decimals:",name:"decimals",children:e.jsx(i,{min:0,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"separator:",name:"separator",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"prefix:",name:"prefix",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"suffix:",name:"suffix",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{children:e.jsxs(N,{children:[e.jsx(j,{type:"primary",onClick:y,children:n("开始")}),e.jsx(j,{type:"primary",danger:!0,onClick:c,children:n("重置")})]})})]})]})}),e.jsx(x,{span:6,children:e.jsx(o,{title:n("反向减少"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(u,{start:2020,end:0,duration:4,style:{height:"100%",fontSize:"40px",color:"#30b08f"},className:"flex-center"})})})]})})};export{k as default}; +var I=Object.defineProperty;var h=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var f=(r,t,s)=>t in r?I(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,l=(r,t)=>{for(var s in t||(t={}))C.call(t,s)&&f(r,s,t[s]);if(h)for(var s of h(t))w.call(t,s)&&f(r,s,t[s]);return r};import{G as a,j as e,J as S,K as x,n as o,t as i,I as d,S as N,i as j}from"./antd-66264537.js";import{t as n}from"./entry/index-03014cdd.1715615595704.js";import{r as m}from"./react-f288da4a.js";import{u as U,_ as u}from"./index-646dffa4.js";import{P,C as R}from"./websiteSetting-6d372edc.js";const k=()=>{const[r]=a.useForm(),[t,s]=m.useState({start:0,end:2020,duration:4,decimals:0,separator:",",prefix:"¥ ",suffix:" rmb"}),p=m.useRef(null),{start:y,reset:c}=U(l({ref:p},t));m.useEffect(()=>{c()},[]);const b=g=>{s(l(l({},t),g))};return e.jsx(P,{plugin:R,children:e.jsxs(S,{gutter:12,children:[e.jsx(x,{span:6,children:e.jsx(o,{title:n("正向增加"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(u,{start:0,end:2020,duration:4,style:{height:"100%",fontSize:"40px",color:"#e65d6e"},className:"flex-center"})})}),e.jsx(x,{span:12,children:e.jsxs(o,{title:n("自定义配置"),bordered:!1,bodyStyle:{height:"300px"},children:[e.jsx("div",{className:"flex-center",style:{marginBottom:"30px"},children:e.jsx("span",{ref:p,style:{fontSize:"40px",color:"#e65d6e"}})}),e.jsxs(a,{form:r,initialValues:l({},t),layout:"inline",labelAlign:"left",labelCol:{style:{width:"80px",marginBottom:"12px"}},onValuesChange:b,children:[e.jsx(a.Item,{label:"startVal:",name:"start",children:e.jsx(i,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"endVal:",name:"end",children:e.jsx(i,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"duration:",name:"duration",children:e.jsx(i,{min:1,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"decimals:",name:"decimals",children:e.jsx(i,{min:0,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"separator:",name:"separator",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"prefix:",name:"prefix",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"suffix:",name:"suffix",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{children:e.jsxs(N,{children:[e.jsx(j,{type:"primary",onClick:y,children:n("开始")}),e.jsx(j,{type:"primary",danger:!0,onClick:c,children:n("重置")})]})})]})]})}),e.jsx(x,{span:6,children:e.jsx(o,{title:n("反向减少"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(u,{start:2020,end:0,duration:4,style:{height:"100%",fontSize:"40px",color:"#30b08f"},className:"flex-center"})})})]})})};export{k as default}; diff --git a/assets/drag-list-930fb960.js b/assets/drag-list-bcbff0a8.js similarity index 99% rename from assets/drag-list-930fb960.js rename to assets/drag-list-bcbff0a8.js index c9f5643..71297b5 100644 --- a/assets/drag-list-930fb960.js +++ b/assets/drag-list-bcbff0a8.js @@ -1,4 +1,4 @@ -var mn=Object.defineProperty,bn=Object.defineProperties;var vn=Object.getOwnPropertyDescriptors;var Je=Object.getOwnPropertySymbols;var Lt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable;var gt=(o,e,t)=>e in o?mn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,ce=(o,e)=>{for(var t in e||(e={}))Lt.call(e,t)&>(o,t,e[t]);if(Je)for(var t of Je(e))Ft.call(e,t)&>(o,t,e[t]);return o},Me=(o,e)=>bn(o,vn(e));var kt=(o,e)=>{var t={};for(var n in o)Lt.call(o,n)&&e.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&Je)for(var n of Je(o))e.indexOf(n)<0&&Ft.call(o,n)&&(t[n]=o[n]);return t};var Ht=(o,e,t)=>(gt(o,typeof e!="symbol"?e+"":e,t),t);import{j as U,J as wn,K as Pe,n as we}from"./antd-66264537.js";import{t as fe,c as yn}from"./entry/index-49ff40a5.1715612414483.js";import{f as Qt,r as ot}from"./react-f288da4a.js";import{P as En,S as Sn}from"./websiteSetting-168278cd.js";var en={exports:{}};/**! +var mn=Object.defineProperty,bn=Object.defineProperties;var vn=Object.getOwnPropertyDescriptors;var Je=Object.getOwnPropertySymbols;var Lt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable;var gt=(o,e,t)=>e in o?mn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,ce=(o,e)=>{for(var t in e||(e={}))Lt.call(e,t)&>(o,t,e[t]);if(Je)for(var t of Je(e))Ft.call(e,t)&>(o,t,e[t]);return o},Me=(o,e)=>bn(o,vn(e));var kt=(o,e)=>{var t={};for(var n in o)Lt.call(o,n)&&e.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&Je)for(var n of Je(o))e.indexOf(n)<0&&Ft.call(o,n)&&(t[n]=o[n]);return t};var Ht=(o,e,t)=>(gt(o,typeof e!="symbol"?e+"":e,t),t);import{j as U,J as wn,K as Pe,n as we}from"./antd-66264537.js";import{t as fe,c as yn}from"./entry/index-03014cdd.1715615595704.js";import{f as Qt,r as ot}from"./react-f288da4a.js";import{P as En,S as Sn}from"./websiteSetting-6d372edc.js";var en={exports:{}};/**! * Sortable 1.15.2 * @author RubaXa * @author owenm diff --git a/assets/drag-resize-ce500749.js b/assets/drag-resize-b57a8ad5.js similarity index 99% rename from assets/drag-resize-ce500749.js rename to assets/drag-resize-b57a8ad5.js index f57884d..7f00c36 100644 --- a/assets/drag-resize-ce500749.js +++ b/assets/drag-resize-b57a8ad5.js @@ -1,4 +1,4 @@ -var _e=Object.defineProperty,Oe=Object.defineProperties;var Re=Object.getOwnPropertyDescriptors;var Kt=Object.getOwnPropertySymbols;var Ee=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable;var Jt=(e,i,r)=>i in e?_e(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r,bt=(e,i)=>{for(var r in i||(i={}))Ee.call(i,r)&&Jt(e,r,i[r]);if(Kt)for(var r of Kt(i))Me.call(i,r)&&Jt(e,r,i[r]);return e},Wt=(e,i)=>Oe(e,Re(i));import{j as J,n as Ce}from"./antd-66264537.js";import{r as k,c as ae,g as se}from"./react-f288da4a.js";import{p as le,r as Ne}from"./entry/index-49ff40a5.1715612414483.js";import{P as Te,R as We}from"./websiteSetting-168278cd.js";var Ot={exports:{}},ue={},E={},Q={};Object.defineProperty(Q,"__esModule",{value:!0});Q.dontSetMe=Be;Q.findInArray=Ae;Q.int=Le;Q.isFunction=He;Q.isNum=je;function Ae(e,i){for(var r=0,t=e.length;r0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var t=(e=window.document)===null||e===void 0||(i=e.documentElement)===null||i===void 0?void 0:i.style;if(!t||r in t)return"";for(var n=0;ni in e?_e(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r,bt=(e,i)=>{for(var r in i||(i={}))Ee.call(i,r)&&Jt(e,r,i[r]);if(Kt)for(var r of Kt(i))Me.call(i,r)&&Jt(e,r,i[r]);return e},Wt=(e,i)=>Oe(e,Re(i));import{j as J,n as Ce}from"./antd-66264537.js";import{r as k,c as ae,g as se}from"./react-f288da4a.js";import{p as le,r as Ne}from"./entry/index-03014cdd.1715615595704.js";import{P as Te,R as We}from"./websiteSetting-6d372edc.js";var Ot={exports:{}},ue={},E={},Q={};Object.defineProperty(Q,"__esModule",{value:!0});Q.dontSetMe=Be;Q.findInArray=Ae;Q.int=Le;Q.isFunction=He;Q.isNum=je;function Ae(e,i){for(var r=0,t=e.length;r0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var t=(e=window.document)===null||e===void 0||(i=e.documentElement)===null||i===void 0?void 0:i.style;if(!t||r in t)return"";for(var n=0;n: Unmounted during event!");return i}var Rt={},Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et.default=hr;function hr(){}function Dt(e){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Dt(e)}Object.defineProperty(Rt,"__esModule",{value:!0});Rt.default=void 0;var Ht=dr(k),I=Xt(le),cr=Xt(ae),W=E,rt=tt,jt=Q,ct=Xt(Et);function Xt(e){return e&&e.__esModule?e:{default:e}}function me(e){if(typeof WeakMap!="function")return null;var i=new WeakMap,r=new WeakMap;return(me=function(n){return n?r:i})(e)}function dr(e,i){if(!i&&e&&e.__esModule)return e;if(e===null||Dt(e)!=="object"&&typeof e!="function")return{default:e};var r=me(i);if(r&&r.has(e))return r.get(e);var t={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(t,o,a):t[o]=e[o]}return t.default=e,r&&r.set(e,t),t}function te(e,i){return mr(e)||yr(e,i)||vr(e,i)||gr()}function gr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vr(e,i){if(e){if(typeof e=="string")return ee(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ee(e,i)}}function ee(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,t=new Array(i);r not mounted on DragStart!");var p=f.ownerDocument;if(!(t.props.disabled||!(s.target instanceof p.defaultView.Node)||t.props.handle&&!(0,W.matchesSelectorAndParentsTo)(s.target,t.props.handle,f)||t.props.cancel&&(0,W.matchesSelectorAndParentsTo)(s.target,t.props.cancel,f))){s.type==="touchstart"&&s.preventDefault();var g=(0,W.getTouchIdentifier)(s);t.setState({touchIdentifier:g});var y=(0,rt.getControlPosition)(s,g,A(t));if(y!=null){var v=y.x,m=y.y,w=(0,rt.createCoreData)(A(t),v,m);(0,ct.default)("DraggableCore: handleDragStart: %j",w),(0,ct.default)("calling",t.props.onStart);var S=t.props.onStart(s,w);S===!1||t.mounted===!1||(t.props.enableUserSelectHack&&(0,W.addUserSelectStyles)(p),t.setState({dragging:!0,lastX:v,lastY:m}),(0,W.addEvent)(p,it.move,t.handleDrag),(0,W.addEvent)(p,it.stop,t.handleDragStop))}}}),G(A(t),"handleDrag",function(s){var f=(0,rt.getControlPosition)(s,t.state.touchIdentifier,A(t));if(f!=null){var p=f.x,g=f.y;if(Array.isArray(t.props.grid)){var y=p-t.state.lastX,v=g-t.state.lastY,m=(0,rt.snapToGrid)(t.props.grid,y,v),w=te(m,2);if(y=w[0],v=w[1],!y&&!v)return;p=t.state.lastX+y,g=t.state.lastY+v}var S=(0,rt.createCoreData)(A(t),p,g);(0,ct.default)("DraggableCore: handleDrag: %j",S);var P=t.props.onDrag(s,S);if(P===!1||t.mounted===!1){try{t.handleDragStop(new MouseEvent("mouseup"))}catch(D){var R=document.createEvent("MouseEvents");R.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.handleDragStop(R)}return}t.setState({lastX:p,lastY:g})}}),G(A(t),"handleDragStop",function(s){if(t.state.dragging){var f=(0,rt.getControlPosition)(s,t.state.touchIdentifier,A(t));if(f!=null){var p=f.x,g=f.y;if(Array.isArray(t.props.grid)){var y=p-t.state.lastX||0,v=g-t.state.lastY||0,m=(0,rt.snapToGrid)(t.props.grid,y,v),w=te(m,2);y=w[0],v=w[1],p=t.state.lastX+y,g=t.state.lastY+v}var S=(0,rt.createCoreData)(A(t),p,g),P=t.props.onStop(s,S);if(P===!1||t.mounted===!1)return!1;var R=t.findDOMNode();R&&t.props.enableUserSelectHack&&(0,W.removeUserSelectStyles)(R.ownerDocument),(0,ct.default)("DraggableCore: handleDragStop: %j",S),t.setState({dragging:!1,lastX:NaN,lastY:NaN}),R&&((0,ct.default)("DraggableCore: Removing handlers"),(0,W.removeEvent)(R.ownerDocument,it.move,t.handleDrag),(0,W.removeEvent)(R.ownerDocument,it.stop,t.handleDragStop))}}}),G(A(t),"onMouseDown",function(s){return it=V.mouse,t.handleDragStart(s)}),G(A(t),"onMouseUp",function(s){return it=V.mouse,t.handleDragStop(s)}),G(A(t),"onTouchStart",function(s){return it=V.touch,t.handleDragStart(s)}),G(A(t),"onTouchEnd",function(s){return it=V.touch,t.handleDragStop(s)}),t}return wr(r,[{key:"componentDidMount",value:function(){this.mounted=!0;var n=this.findDOMNode();n&&(0,W.addEvent)(n,V.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var n=this.findDOMNode();if(n){var o=n.ownerDocument;(0,W.removeEvent)(o,V.mouse.move,this.handleDrag),(0,W.removeEvent)(o,V.touch.move,this.handleDrag),(0,W.removeEvent)(o,V.mouse.stop,this.handleDragStop),(0,W.removeEvent)(o,V.touch.stop,this.handleDragStop),(0,W.removeEvent)(n,V.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,W.removeUserSelectStyles)(o)}}},{key:"findDOMNode",value:function(){var n,o,a;return(n=this.props)!==null&&n!==void 0&&n.nodeRef?(o=this.props)===null||o===void 0||(a=o.nodeRef)===null||a===void 0?void 0:a.current:cr.default.findDOMNode(this)}},{key:"render",value:function(){return Ht.cloneElement(Ht.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),r}(Ht.Component);Rt.default=Mt;G(Mt,"displayName","DraggableCore");G(Mt,"propTypes",{allowAnyClick:I.default.bool,disabled:I.default.bool,enableUserSelectHack:I.default.bool,offsetParent:function(i,r){if(i[r]&&i[r].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:I.default.arrayOf(I.default.number),handle:I.default.string,cancel:I.default.string,nodeRef:I.default.object,onStart:I.default.func,onDrag:I.default.func,onStop:I.default.func,onMouseDown:I.default.func,scale:I.default.number,className:jt.dontSetMe,style:jt.dontSetMe,transform:jt.dontSetMe});G(Mt,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(e){function i(l){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},i(l)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return p.default}}),e.default=void 0;var r=w(k),t=v(le),n=v(ae),o=v(Ne),a=E,s=tt,f=Q,p=v(Rt),g=v(Et),y=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function v(l){return l&&l.__esModule?l:{default:l}}function m(l){if(typeof WeakMap!="function")return null;var u=new WeakMap,h=new WeakMap;return(m=function(d){return d?h:u})(l)}function w(l,u){if(!u&&l&&l.__esModule)return l;if(l===null||i(l)!=="object"&&typeof l!="function")return{default:l};var h=m(u);if(h&&h.has(l))return h.get(l);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in l)if(b!=="default"&&Object.prototype.hasOwnProperty.call(l,b)){var z=d?Object.getOwnPropertyDescriptor(l,b):null;z&&(z.get||z.set)?Object.defineProperty(c,b,z):c[b]=l[b]}return c.default=l,h&&h.set(l,c),c}function S(){return S=Object.assign||function(l){for(var u=1;u=0)&&Object.prototype.propertyIsEnumerable.call(l,c)&&(h[c]=l[c])}return h}function R(l,u){if(l==null)return{};var h={},c=Object.keys(l),d,b;for(b=0;b=0)&&(h[d]=l[d]);return h}function D(l,u){var h=Object.keys(l);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(l);u&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(l,d).enumerable})),h.push.apply(h,c)}return h}function x(l){for(var u=1;u/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim());function matchHeaderValue(o,a,s,c,f){if(utils$1.isFunction(c))return c.call(this,a,s);if(f&&(a=s),!!utils$1.isString(a)){if(utils$1.isString(c))return a.indexOf(c)!==-1;if(utils$1.isRegExp(c))return c.test(a)}}function formatHeader(o){return o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,s,c)=>s.toUpperCase()+c)}function buildAccessors(o,a){const s=utils$1.toCamelCase(" "+a);["get","set","has"].forEach(c=>{Object.defineProperty(o,c+s,{value:function(f,d,y){return this[c].call(this,a,f,d,y)},configurable:!0})})}class AxiosHeaders{constructor(a){a&&this.set(a)}set(a,s,c){const f=this;function d(_,S,b){const $=normalizeHeader(S);if(!$)throw new Error("header name must be a non-empty string");const P=utils$1.findKey(f,$);(!P||f[P]===void 0||b===!0||b===void 0&&f[P]!==!1)&&(f[P||S]=normalizeValue(_))}const y=(_,S)=>utils$1.forEach(_,(b,$)=>d(b,$,S));return utils$1.isPlainObject(a)||a instanceof this.constructor?y(a,s):utils$1.isString(a)&&(a=a.trim())&&!isValidHeaderName(a)?y(parseHeaders(a),s):a!=null&&d(s,a,c),this}get(a,s){if(a=normalizeHeader(a),a){const c=utils$1.findKey(this,a);if(c){const f=this[c];if(!s)return f;if(s===!0)return parseTokens(f);if(utils$1.isFunction(s))return s.call(this,f,c);if(utils$1.isRegExp(s))return s.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,s){if(a=normalizeHeader(a),a){const c=utils$1.findKey(this,a);return!!(c&&this[c]!==void 0&&(!s||matchHeaderValue(this,this[c],c,s)))}return!1}delete(a,s){const c=this;let f=!1;function d(y){if(y=normalizeHeader(y),y){const _=utils$1.findKey(c,y);_&&(!s||matchHeaderValue(c,c[_],_,s))&&(delete c[_],f=!0)}}return utils$1.isArray(a)?a.forEach(d):d(a),f}clear(a){const s=Object.keys(this);let c=s.length,f=!1;for(;c--;){const d=s[c];(!a||matchHeaderValue(this,this[d],d,a,!0))&&(delete this[d],f=!0)}return f}normalize(a){const s=this,c={};return utils$1.forEach(this,(f,d)=>{const y=utils$1.findKey(c,d);if(y){s[y]=normalizeValue(f),delete s[d];return}const _=a?formatHeader(d):String(d).trim();_!==d&&delete s[d],s[_]=normalizeValue(f),c[_]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const s=Object.create(null);return utils$1.forEach(this,(c,f)=>{c!=null&&c!==!1&&(s[f]=a&&utils$1.isArray(c)?c.join(", "):c)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,s])=>a+": "+s).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...s){const c=new this(a);return s.forEach(f=>c.set(f)),c}static accessor(a){const c=(this[$internals]=this[$internals]={accessors:{}}).accessors,f=this.prototype;function d(y){const _=normalizeHeader(y);c[_]||(buildAccessors(f,y),c[_]=!0)}return utils$1.isArray(a)?a.forEach(d):d(a),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:o},a)=>{let s=a[0].toUpperCase()+a.slice(1);return{get:()=>o,set(c){this[s]=c}}});utils$1.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(o,a){const s=this||defaults$1,c=a||s,f=AxiosHeaders$1.from(c.headers);let d=c.data;return utils$1.forEach(o,function(_){d=_.call(s,d,f.normalize(),a?a.status:void 0)}),f.normalize(),d}function isCancel(o){return!!(o&&o.__CANCEL__)}function CanceledError(o,a,s){AxiosError.call(this,o==null?"canceled":o,AxiosError.ERR_CANCELED,a,s),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(o,a,s){const c=s.config.validateStatus;!s.status||!c||c(s.status)?o(s):a(new AxiosError("Request failed with status code "+s.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}const cookies=platform.hasStandardBrowserEnv?{write(o,a,s,c,f,d){const y=[o+"="+encodeURIComponent(a)];utils$1.isNumber(s)&&y.push("expires="+new Date(s).toGMTString()),utils$1.isString(c)&&y.push("path="+c),utils$1.isString(f)&&y.push("domain="+f),d===!0&&y.push("secure"),document.cookie=y.join("; ")},read(o){const a=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function combineURLs(o,a){return a?o.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):o}function buildFullPath(o,a){return o&&!isAbsoluteURL(a)?combineURLs(o,a):a}const isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");let c;function f(d){let y=d;return a&&(s.setAttribute("href",y),y=s.href),s.setAttribute("href",y),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return c=f(window.location.href),function(y){const _=utils$1.isString(y)?f(y):y;return _.protocol===c.protocol&&_.host===c.host}}():function(){return function(){return!0}}();function parseProtocol(o){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return a&&a[1]||""}function speedometer(o,a){o=o||10;const s=new Array(o),c=new Array(o);let f=0,d=0,y;return a=a!==void 0?a:1e3,function(S){const b=Date.now(),$=c[d];y||(y=b),s[f]=S,c[f]=b;let P=d,T=0;for(;P!==f;)T+=s[P++],P=P%o;if(f=(f+1)%o,f===d&&(d=(d+1)%o),b-y{const d=f.loaded,y=f.lengthComputable?f.total:void 0,_=d-s,S=c(_),b=d<=y;s=d;const $={loaded:d,total:y,progress:y?d/y:void 0,bytes:_,rate:S||void 0,estimated:S&&y&&b?(y-d)/S:void 0,event:f};$[a?"download":"upload"]=!0,o($)}}const isXHRAdapterSupported=typeof XMLHttpRequest!="undefined",xhrAdapter=isXHRAdapterSupported&&function(o){return new Promise(function(s,c){let f=o.data;const d=AxiosHeaders$1.from(o.headers).normalize();let{responseType:y,withXSRFToken:_}=o,S;function b(){o.cancelToken&&o.cancelToken.unsubscribe(S),o.signal&&o.signal.removeEventListener("abort",S)}let $;if(utils$1.isFormData(f)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)d.setContentType(!1);else if(($=d.getContentType())!==!1){const[A,...F]=$?$.split(";").map(j=>j.trim()).filter(Boolean):[];d.setContentType([A||"multipart/form-data",...F].join("; "))}}let P=new XMLHttpRequest;if(o.auth){const A=o.auth.username||"",F=o.auth.password?unescape(encodeURIComponent(o.auth.password)):"";d.set("Authorization","Basic "+btoa(A+":"+F))}const T=buildFullPath(o.baseURL,o.url);P.open(o.method.toUpperCase(),buildURL(T,o.params,o.paramsSerializer),!0),P.timeout=o.timeout;function C(){if(!P)return;const A=AxiosHeaders$1.from("getAllResponseHeaders"in P&&P.getAllResponseHeaders()),j={data:!y||y==="text"||y==="json"?P.responseText:P.response,status:P.status,statusText:P.statusText,headers:A,config:o,request:P};settle(function(M){s(M),b()},function(M){c(M),b()},j),P=null}if("onloadend"in P?P.onloadend=C:P.onreadystatechange=function(){!P||P.readyState!==4||P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0)||setTimeout(C)},P.onabort=function(){P&&(c(new AxiosError("Request aborted",AxiosError.ECONNABORTED,o,P)),P=null)},P.onerror=function(){c(new AxiosError("Network Error",AxiosError.ERR_NETWORK,o,P)),P=null},P.ontimeout=function(){let F=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||transitionalDefaults;o.timeoutErrorMessage&&(F=o.timeoutErrorMessage),c(new AxiosError(F,j.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,o,P)),P=null},platform.hasStandardBrowserEnv&&(_&&utils$1.isFunction(_)&&(_=_(o)),_||_!==!1&&isURLSameOrigin(T))){const A=o.xsrfHeaderName&&o.xsrfCookieName&&cookies.read(o.xsrfCookieName);A&&d.set(o.xsrfHeaderName,A)}f===void 0&&d.setContentType(null),"setRequestHeader"in P&&utils$1.forEach(d.toJSON(),function(F,j){P.setRequestHeader(j,F)}),utils$1.isUndefined(o.withCredentials)||(P.withCredentials=!!o.withCredentials),y&&y!=="json"&&(P.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&P.addEventListener("progress",progressEventReducer(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&P.upload&&P.upload.addEventListener("progress",progressEventReducer(o.onUploadProgress)),(o.cancelToken||o.signal)&&(S=A=>{P&&(c(!A||A.type?new CanceledError(null,o,P):A),P.abort(),P=null)},o.cancelToken&&o.cancelToken.subscribe(S),o.signal&&(o.signal.aborted?S():o.signal.addEventListener("abort",S)));const O=parseProtocol(T);if(O&&platform.protocols.indexOf(O)===-1){c(new AxiosError("Unsupported protocol "+O+":",AxiosError.ERR_BAD_REQUEST,o));return}P.send(f||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$1.forEach(knownAdapters,(o,a)=>{if(o){try{Object.defineProperty(o,"name",{value:a})}catch(s){}Object.defineProperty(o,"adapterName",{value:a})}});const renderReason=o=>`- ${o}`,isResolvedHandle=o=>utils$1.isFunction(o)||o===null||o===!1,adapters={getAdapter:o=>{o=utils$1.isArray(o)?o:[o];const{length:a}=o;let s,c;const f={};for(let d=0;d`adapter ${_} `+(S===!1?"is not supported by the environment":"is not available in the build"));let y=a?d.length>1?`since : `+d.map(renderReason).join(` -`):" "+renderReason(d[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return c},adapters:knownAdapters};function throwIfCancellationRequested(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new CanceledError(null,o)}function dispatchRequest(o){return throwIfCancellationRequested(o),o.headers=AxiosHeaders$1.from(o.headers),o.data=transformData.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(o.adapter||defaults$1.adapter)(o).then(function(c){return throwIfCancellationRequested(o),c.data=transformData.call(o,o.transformResponse,c),c.headers=AxiosHeaders$1.from(c.headers),c},function(c){return isCancel(c)||(throwIfCancellationRequested(o),c&&c.response&&(c.response.data=transformData.call(o,o.transformResponse,c.response),c.response.headers=AxiosHeaders$1.from(c.response.headers))),Promise.reject(c)})}const headersToObject=o=>o instanceof AxiosHeaders$1?o.toJSON():o;function mergeConfig(o,a){a=a||{};const s={};function c(b,$,P){return utils$1.isPlainObject(b)&&utils$1.isPlainObject($)?utils$1.merge.call({caseless:P},b,$):utils$1.isPlainObject($)?utils$1.merge({},$):utils$1.isArray($)?$.slice():$}function f(b,$,P){if(utils$1.isUndefined($)){if(!utils$1.isUndefined(b))return c(void 0,b,P)}else return c(b,$,P)}function d(b,$){if(!utils$1.isUndefined($))return c(void 0,$)}function y(b,$){if(utils$1.isUndefined($)){if(!utils$1.isUndefined(b))return c(void 0,b)}else return c(void 0,$)}function _(b,$,P){if(P in a)return c(b,$);if(P in o)return c(void 0,b)}const S={url:d,method:d,data:d,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:_,headers:(b,$)=>f(headersToObject(b),headersToObject($),!0)};return utils$1.forEach(Object.keys(Object.assign({},o,a)),function($){const P=S[$]||f,T=P(o[$],a[$],$);utils$1.isUndefined(T)&&P!==_||(s[$]=T)}),s}const VERSION="1.6.5",validators$1={};["object","boolean","number","function","string","symbol"].forEach((o,a)=>{validators$1[o]=function(c){return typeof c===o||"a"+(a<1?"n ":" ")+o}});const deprecatedWarnings={};validators$1.transitional=function(a,s,c){function f(d,y){return"[Axios v"+VERSION+"] Transitional option '"+d+"'"+y+(c?". "+c:"")}return(d,y,_)=>{if(a===!1)throw new AxiosError(f(y," has been removed"+(s?" in "+s:"")),AxiosError.ERR_DEPRECATED);return s&&!deprecatedWarnings[y]&&(deprecatedWarnings[y]=!0),a?a(d,y,_):!0}};function assertOptions(o,a,s){if(typeof o!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const c=Object.keys(o);let f=c.length;for(;f-- >0;){const d=c[f],y=a[d];if(y){const _=o[d],S=_===void 0||y(_,d,o);if(S!==!0)throw new AxiosError("option "+d+" must be "+S,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new AxiosError("Unknown option "+d,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(a){this.defaults=a,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(a,s){typeof a=="string"?(s=s||{},s.url=a):s=a||{},s=mergeConfig(this.defaults,s);const{transitional:c,paramsSerializer:f,headers:d}=s;c!==void 0&&validator.assertOptions(c,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),f!=null&&(utils$1.isFunction(f)?s.paramsSerializer={serialize:f}:validator.assertOptions(f,{encode:validators.function,serialize:validators.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let y=d&&utils$1.merge(d.common,d[s.method]);d&&utils$1.forEach(["delete","get","head","post","put","patch","common"],O=>{delete d[O]}),s.headers=AxiosHeaders$1.concat(y,d);const _=[];let S=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(s)===!1||(S=S&&A.synchronous,_.unshift(A.fulfilled,A.rejected))});const b=[];this.interceptors.response.forEach(function(A){b.push(A.fulfilled,A.rejected)});let $,P=0,T;if(!S){const O=[dispatchRequest.bind(this),void 0];for(O.unshift.apply(O,_),O.push.apply(O,b),T=O.length,$=Promise.resolve(s);P{if(!c._listeners)return;let d=c._listeners.length;for(;d-- >0;)c._listeners[d](f);c._listeners=null}),this.promise.then=f=>{let d;const y=new Promise(_=>{c.subscribe(_),d=_}).then(f);return y.cancel=function(){c.unsubscribe(d)},y},a(function(d,y,_){c.reason||(c.reason=new CanceledError(d,y,_),s(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const s=this._listeners.indexOf(a);s!==-1&&this._listeners.splice(s,1)}static source(){let a;return{token:new CancelToken(function(f){a=f}),cancel:a}}}const CancelToken$1=CancelToken;function spread(o){return function(s){return o.apply(null,s)}}function isAxiosError(o){return utils$1.isObject(o)&&o.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([o,a])=>{HttpStatusCode[a]=o});const HttpStatusCode$1=HttpStatusCode;function createInstance(o){const a=new Axios$1(o),s=bind(Axios$1.prototype.request,a);return utils$1.extend(s,Axios$1.prototype,a,{allOwnKeys:!0}),utils$1.extend(s,a,null,{allOwnKeys:!0}),s.create=function(f){return createInstance(mergeConfig(o,f))},s}const axios=createInstance(defaults$1);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(a){return Promise.all(a)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=o=>formDataToJSON(utils$1.isHTMLForm(o)?new FormData(o):o);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios,pendingMap=new Map;class AxiosCanceler{addPending(a){this.removePending(a);const s=getPendingUrl(a),c=new AbortController;a.signal=a.signal||c.signal,pendingMap.has(s)||pendingMap.set(s,c)}removePending(a){const s=getPendingUrl(a);if(pendingMap.has(s)){const c=pendingMap.get(s);c&&c.abort(s),pendingMap.delete(s)}}reset(){pendingMap.clear()}removeAllPending(){pendingMap.forEach(a=>{a&&a.abort()}),this.reset()}}function getPendingUrl(o){return[o.method,o.url].join("&")}class GAxios{constructor(a){tr(this,"axiosInstance");tr(this,"options");this.options=a,this.axiosInstance=axios$1.create(a),this.setupInterceptors()}createAxios(a){this.axiosInstance=axios$1.create(a)}getTransform(){const{transform:a}=this.options;return a}getAxios(){return this.axiosInstance}configAxios(a){this.axiosInstance&&this.createAxios(a)}setHeader(a){this.axiosInstance&&Object.assign(this.axiosInstance.defaults.headers,a)}setupInterceptors(){const{axiosInstance:a,options:{transform:s}}=this;if(!s)return;const{requestInterceptors:c,requestInterceptorsCatch:f,responseInterceptors:d,responseInterceptorsCatch:y}=s,_=new AxiosCanceler;this.axiosInstance.interceptors.request.use(S=>{var P,T;const b=(P=S.requestOptions)!=null?P:this.options.requestOptions;return!((T=b==null?void 0:b.ignoreCancelToken)!=null?T:!0)&&_.addPending(S),c&&isFunction$2(c)&&(S=c(S,this.options)),S},void 0),f&&isFunction$2(f)&&this.axiosInstance.interceptors.request.use(void 0,f),this.axiosInstance.interceptors.response.use(S=>(S&&_.removePending(S.config),d&&isFunction$2(d)&&(S=d(S)),S),void 0),y&&isFunction$2(y)&&this.axiosInstance.interceptors.response.use(void 0,S=>y(a,S))}uploadFile(a,s){const c=new window.FormData,f=s.name||"file";return s.filename?c.append(f,s.file,s.filename):c.append(f,s.file),s.data&&Object.keys(s.data).forEach(d=>{const y=s.data[d];if(Array.isArray(y)){y.forEach(_=>{c.append(`${d}[]`,_)});return}c.append(d,s.data[d])}),this.axiosInstance.request($e(se({},a),{method:"POST",data:c,headers:{"Content-type":ContentTypeEnum.FORM_DATA,ignoreCancelToken:!0}}))}supportFormData(a){var f;const s=a.headers||this.options.headers;return((s==null?void 0:s["Content-Type"])||(s==null?void 0:s["content-type"]))!==ContentTypeEnum.FORM_URLENCODED||!Reflect.has(a,"data")||((f=a.method)==null?void 0:f.toUpperCase())===RequestEnum.GET?a:$e(se({},a),{data:qs.stringify(a.data,{arrayFormat:"brackets"})})}get(a,s){return this.request($e(se({},a),{method:"GET"}),s)}post(a,s){return this.request($e(se({},a),{method:"POST"}),s)}put(a,s){return this.request($e(se({},a),{method:"PUT"}),s)}delete(a,s){return this.request($e(se({},a),{method:"DELETE"}),s)}request(a,s){let c=cloneDeep(a);a.cancelToken&&(c.cancelToken=a.cancelToken),a.signal&&(c.signal=a.signal);const f=this.getTransform(),{requestOptions:d}=this.options,y=Object.assign({},d,s),{beforeRequestHook:_,requestCatchHook:S,transformResponseHook:b}=f||{};return _&&isFunction$2(_)&&(c=_(c,y)),c.requestOptions=y,c=this.supportFormData(c),new Promise(($,P)=>{this.axiosInstance.request(c).then(T=>{if(b&&isFunction$2(b)){try{const C=b(T,y);$(C)}catch(C){P(C||new Error("request error!"))}return}$(T)}).catch(T=>{if(S&&isFunction$2(S)){P(S(T,y));return}axios$1.isAxiosError(T),P(T)})})}}const transform={transformResponseHook:(o,a)=>{const{isReturnNativeResponse:s,isTransformResponse:c}=a;if(s)return o;if(!c)return o.data.data;const{data:f}=o;if(!o.data)throw new Error("请求接口错误");const{code:d,message:y}=f;if(f&&Reflect.has(f,"code")&&d===ResultEnum.SUCCESS)return f.data;let S="";switch(d){case ResultEnum.TIMEOUT:S="登录超时,请重新登录";break;default:y&&(S=y)}throw new Error(S)},responseInterceptorsCatch:(o,a)=>{var S,b;const{response:s,code:c,message:f,config:d}=a||{},y=(b=(S=a==null?void 0:a.toString)==null?void 0:S.call(a))!=null?b:"";let _="";if(axios$1.isCancel(a))return Promise.reject(a);try{c==="ECONNABORTED"&&f.indexOf("timeout")!==-1&&(_="接口请求超时,请刷新页面重试!"),y!=null&&y.includes("Network Error")&&(_="网络异常,请检查您的网络连接是否正常")}catch($){throw new Error($)}switch(s==null?void 0:s.status){case 401:_="登录失效";break;case 403:_="拒绝访问";break;case 404:_="请求地址不存在";break;case 500:_="服务器内部错误";break;case 501:_="服务未实现";break;case 502:_="网关错误";break;case 503:_="服务不可用";break}return Promise.reject(a)},beforeRequestHook:(o,a)=>{var $;const{apiUrl:s,joinPrefix:c,joinParamsToUrl:f,formatDate:d,joinTime:y=!0,urlPrefix:_}=a;c&&(o.url=`${_}${o.url}`);const S=o.params||{},b=o.data||!1;return d&&b&&!isString$3(b)&&formatRequestDate(b),(($=o.method)==null?void 0:$.toUpperCase())===RequestEnum.GET?isString$3(S)?(o.url=o.url+S+`${joinTimestamp(y,!0)}`,o.params=void 0):o.params=Object.assign(S||{},joinTimestamp(y,!1)):isString$3(S)?(o.url=o.url+S,o.params=void 0):(d&&formatRequestDate(S),Reflect.has(o,"data")&&o.data&&(Object.keys(o.data).length>0||o.data instanceof FormData)?(o.data=b,o.params=S):(o.data=S,o.params=void 0),f&&(o.url=setObjToUrlParams(o.url,Object.assign({},o.params,o.data)))),o},requestInterceptors:(o,a)=>{var c;const s=getItem$1(StorageEnum.Token);return s&&((c=o.requestOptions)==null?void 0:c.withToken)!==!1&&(o.headers.Authorization=a.authenticationScheme?`${a.authenticationScheme} ${s}`:s),o}};function createAxios(o){return new GAxios(deepMerge({authenticationScheme:"Bearer",timeout:10*1e3,header:{"Content-Type":ContentTypeEnum.JSON},transform:clone(transform),requestOptions:{joinPrefix:!0,isReturnNativeResponse:!1,joinParamsToUrl:!1,joinTime:!0,ignoreCancelToken:!0,withToken:!0,retryRequest:{isOpenRetry:!0,count:5,waitTime:100},apiUrl:"",urlPrefix:"/api",formatDate:!0}},o||{}))}const defHttp=createAxios(),PREFIX="",GRequest=extend$1({timeout:6e4,prefix:PREFIX});let isRefreshingToken=!1;const requestQueue=[];GRequest.interceptors.request.use((o,a)=>{const{headers:s}=a;return{url:o,options:$e(se({},a),{headers:s})}});GRequest.interceptors.response.use((o,a)=>xt(void 0,null,function*(){const{status:s}=o;if(s===200){const c=yield o.clone().json();return c.code!==0?(notification.error({message:"请求错误",description:c.msg}),Promise.reject(c.msg)):c}if(s===401){if(!isRefreshingToken){const c=JSON.parse(localStorage.getItem("userInfo")||"{}");isRefreshingToken=!0;const f=yield GRequest("/User/ReLogin",{method:"POST",data:c});localStorage.setItem("userInfo",JSON.stringify(f.data)),isRefreshingToken=!1;const d=GRequest(a.url,a);return requestQueue.forEach(y=>y.resolve(GRequest(y.url,y.options))),d}return new Promise((c,f)=>{requestQueue.push({url:a.url,options:a,resolve:c,reject:f})})}return notification.error({message:"请求错误",description:o.statusText}),Promise.reject(o.statusText)}));const loginApi=o=>defHttp.post({url:"/login",data:o});function logoutApi(){return defHttp.get({url:"/logout"})}function getJueJinList(o){return defHttp.post({url:"/article/queryList",data:o})}function getUsersList(){return defHttp.get({url:"/user/getUserList"})}const headerImg="/react-antd-admin-pnpm/assets/avatar-9ee092e3.jpeg",useUserStore=create(o=>({userInfo:getItem$1(StorageEnum$1.User)||{},userToken:getItem$1(StorageEnum$1.Token)||{},actions:{setUserInfo:a=>{o({userInfo:a}),setItem(StorageEnum$1.User,a)},setUserToken:a=>{o({userToken:a}),setItem(StorageEnum$1.Token,a)},clearUserInfoAndToken:()=>{o({userInfo:{},userToken:{}}),removeItem(StorageEnum$1.User),removeItem(StorageEnum$1.Token)}}})),useUserToken=()=>useUserStore(o=>o.userToken),useUserActions=()=>useUserStore(o=>o.actions),useSignIn=()=>{const{t:o}=useTranslation(),{notification:a,message:s}=App$1.useApp(),{setUserToken:c,setUserInfo:f}=useUserActions(),d=useMutation({mutationFn:loginApi}),y=_=>xt(void 0,null,function*(){try{const b=yield d.mutateAsync(_),S=b,{token:$}=S,P=er(S,["token"]);return c({token:$}),f(P),a.success({message:o("登录成功"),description:`欢迎回来: ${_.username}`,duration:3}),yield Promise.resolve(b)}catch(b){return s.error({content:b.message,duration:3}),Promise.reject(b)}});return reactExports.useCallback(y,[])};function UserDropdown(){const{createConfirm:o,contextHolder:a,createMessage:s}=useMessage(),{clearUserInfoAndToken:c}=useUserActions(),{t:f}=useTranslation(),{token:d}=useUserToken(),y=[{key:"lock",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(LockOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:f("锁定屏幕")})]})},{key:"logout",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(PoweroffOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:f("退出登录")})]})}],_=({key:P})=>{switch(P){case"lock":break;case"logout":b();break}},S=useNavigate(),b=()=>{o({title:jsxRuntimeExports.jsx("span",{children:f("温馨提醒")}),content:jsxRuntimeExports.jsx("span",{children:f("是否确认退出系统?")}),onOk:()=>xt(this,null,function*(){yield $(!0)})})},$=(P=!1)=>xt(this,null,function*(){if(d)try{yield logoutApi()}catch(T){s.error(f("注销失败!"))}c(),P&&S("/login")});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a,jsxRuntimeExports.jsx(Dropdown,{menu:{items:y,onClick:_},placement:"bottomRight",arrow:!0,children:jsxRuntimeExports.jsx("span",{className:"flex-center",style:{cursor:"pointer"},children:jsxRuntimeExports.jsx("img",{src:headerImg,style:{width:"24px",height:"24px",borderRadius:"50%"},alt:""})})})]})}const matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(o,a,s,c="")=>{const f=o.split(":");if(o.slice(0,1)==="@"){if(f.length<2||f.length>3)return null;c=f.shift().slice(1)}if(f.length>3||!f.length)return null;if(f.length>1){const _=f.pop(),S=f.pop(),b={provider:f.length>0?f[0]:c,prefix:S,name:_};return a&&!validateIconName(b)?null:b}const d=f[0],y=d.split("-");if(y.length>1){const _={provider:c,prefix:y.shift(),name:y.join("-")};return a&&!validateIconName(_)?null:_}if(s&&c===""){const _={provider:c,prefix:"",name:d};return a&&!validateIconName(_,s)?null:_}return null},validateIconName=(o,a)=>o?!!((o.provider===""||o.provider.match(matchIconName))&&(a&&o.prefix===""||o.prefix.match(matchIconName))&&o.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze(se(se({},defaultIconDimensions),defaultIconTransformations)),defaultExtendedIconProps=Object.freeze($e(se({},defaultIconProps),{body:"",hidden:!1}));function mergeIconTransformations(o,a){const s={};!o.hFlip!=!a.hFlip&&(s.hFlip=!0),!o.vFlip!=!a.vFlip&&(s.vFlip=!0);const c=((o.rotate||0)+(a.rotate||0))%4;return c&&(s.rotate=c),s}function mergeIconData(o,a){const s=mergeIconTransformations(o,a);for(const c in defaultExtendedIconProps)c in defaultIconTransformations?c in o&&!(c in s)&&(s[c]=defaultIconTransformations[c]):c in a?s[c]=a[c]:c in o&&(s[c]=o[c]);return s}function getIconsTree(o,a){const s=o.icons,c=o.aliases||Object.create(null),f=Object.create(null);function d(y){if(s[y])return f[y]=[];if(!(y in f)){f[y]=null;const _=c[y]&&c[y].parent,S=_&&d(_);S&&(f[y]=[_].concat(S))}return f[y]}return(a||Object.keys(s).concat(Object.keys(c))).forEach(d),f}function internalGetIconData(o,a,s){const c=o.icons,f=o.aliases||Object.create(null);let d={};function y(_){d=mergeIconData(c[_]||f[_],d)}return y(a),s.forEach(y),mergeIconData(o,d)}function parseIconSet(o,a){const s=[];if(typeof o!="object"||typeof o.icons!="object")return s;o.not_found instanceof Array&&o.not_found.forEach(f=>{a(f,null),s.push(f)});const c=getIconsTree(o);for(const f in c){const d=c[f];d&&(a(f,internalGetIconData(o,f,d)),s.push(f))}return s}const optionalPropertyDefaults=se({provider:"",aliases:{},not_found:{}},defaultIconDimensions);function checkOptionalProps(o,a){for(const s in a)if(s in o&&typeof o[s]!=typeof a[s])return!1;return!0}function quicklyValidateIconSet(o){if(typeof o!="object"||o===null)return null;const a=o;if(typeof a.prefix!="string"||!o.icons||typeof o.icons!="object"||!checkOptionalProps(o,optionalPropertyDefaults))return null;const s=a.icons;for(const f in s){const d=s[f];if(!f.match(matchIconName)||typeof d.body!="string"||!checkOptionalProps(d,defaultExtendedIconProps))return null}const c=a.aliases||Object.create(null);for(const f in c){const d=c[f],y=d.parent;if(!f.match(matchIconName)||typeof y!="string"||!s[y]&&!c[y]||!checkOptionalProps(d,defaultExtendedIconProps))return null}return a}const dataStorage=Object.create(null);function newStorage(o,a){return{provider:o,prefix:a,icons:Object.create(null),missing:new Set}}function getStorage$2(o,a){const s=dataStorage[o]||(dataStorage[o]=Object.create(null));return s[a]||(s[a]=newStorage(o,a))}function addIconSet(o,a){return quicklyValidateIconSet(a)?parseIconSet(a,(s,c)=>{c?o.icons[s]=c:o.missing.add(s)}):[]}function addIconToStorage(o,a,s){try{if(typeof s.body=="string")return o.icons[a]=se({},s),!0}catch(c){}return!1}let simpleNames=!1;function allowSimpleNames(o){return typeof o=="boolean"&&(simpleNames=o),simpleNames}function getIconData(o){const a=typeof o=="string"?stringToIcon(o,!0,simpleNames):o;if(a){const s=getStorage$2(a.provider,a.prefix),c=a.name;return s.icons[c]||(s.missing.has(c)?null:void 0)}}function addIcon(o,a){const s=stringToIcon(o,!0,simpleNames);if(!s)return!1;const c=getStorage$2(s.provider,s.prefix);return addIconToStorage(c,s.name,a)}function addCollection(o,a){if(typeof o!="object")return!1;if(typeof a!="string"&&(a=o.provider||""),simpleNames&&!a&&!o.prefix){let f=!1;return quicklyValidateIconSet(o)&&(o.prefix="",parseIconSet(o,(d,y)=>{y&&addIcon(d,y)&&(f=!0)})),f}const s=o.prefix;if(!validateIconName({provider:a,prefix:s,name:"a"}))return!1;const c=getStorage$2(a,s);return!!addIconSet(c,o)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze(se(se({},defaultIconSizeCustomisations),defaultIconTransformations)),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(o,a,s){if(a===1)return o;if(s=s||100,typeof o=="number")return Math.ceil(o*a*s)/s;if(typeof o!="string")return o;const c=o.split(unitsSplit);if(c===null||!c.length)return o;const f=[];let d=c.shift(),y=unitsTest.test(d);for(;;){if(y){const _=parseFloat(d);isNaN(_)?f.push(d):f.push(Math.ceil(_*a*s)/s)}else f.push(d);if(d=c.shift(),d===void 0)return f.join("");y=!y}}const isUnsetKeyword=o=>o==="unset"||o==="undefined"||o==="none";function iconToSVG(o,a){const s=se(se({},defaultIconProps),o),c=se(se({},defaultIconCustomisations),a),f={left:s.left,top:s.top,width:s.width,height:s.height};let d=s.body;[s,c].forEach(O=>{const A=[],F=O.hFlip,j=O.vFlip;let L=O.rotate;F?j?L+=2:(A.push("translate("+(f.width+f.left).toString()+" "+(0-f.top).toString()+")"),A.push("scale(-1 1)"),f.top=f.left=0):j&&(A.push("translate("+(0-f.left).toString()+" "+(f.height+f.top).toString()+")"),A.push("scale(1 -1)"),f.top=f.left=0);let M;switch(L<0&&(L-=Math.floor(L/4)*4),L=L%4,L){case 1:M=f.height/2+f.top,A.unshift("rotate(90 "+M.toString()+" "+M.toString()+")");break;case 2:A.unshift("rotate(180 "+(f.width/2+f.left).toString()+" "+(f.height/2+f.top).toString()+")");break;case 3:M=f.width/2+f.left,A.unshift("rotate(-90 "+M.toString()+" "+M.toString()+")");break}L%2===1&&(f.left!==f.top&&(M=f.left,f.left=f.top,f.top=M),f.width!==f.height&&(M=f.width,f.width=f.height,f.height=M)),A.length&&(d=''+d+"")});const y=c.width,_=c.height,S=f.width,b=f.height;let $,P;y===null?(P=_===null?"1em":_==="auto"?b:_,$=calculateSize(P,S/b)):($=y==="auto"?S:y,P=_===null?calculateSize($,b/S):_==="auto"?b:_);const T={},C=(O,A)=>{isUnsetKeyword(A)||(T[O]=A.toString())};return C("width",$),C("height",P),T.viewBox=f.left.toString()+" "+f.top.toString()+" "+S.toString()+" "+b.toString(),{attributes:T,body:d}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(o,a=randomPrefix){const s=[];let c;for(;c=regex.exec(o);)s.push(c[1]);if(!s.length)return o;const f="suffix"+(Math.random()*16777216|Date.now()).toString(16);return s.forEach(d=>{const y=typeof a=="function"?a(d):a+(counter++).toString(),_=d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");o=o.replace(new RegExp('([#;"])('+_+')([")]|\\.[a-z])',"g"),"$1"+y+f+"$3")}),o=o.replace(new RegExp(f,"g"),""),o}const storage=Object.create(null);function setAPIModule(o,a){storage[o]=a}function getAPIModule(o){return storage[o]||storage[""]}function createAPIConfig(o){let a;if(typeof o.resources=="string")a=[o.resources];else if(a=o.resources,!(a instanceof Array)||!a.length)return null;return{resources:a,path:o.path||"/",maxURL:o.maxURL||500,rotate:o.rotate||750,timeout:o.timeout||5e3,random:o.random===!0,index:o.index||0,dataAfterTimeout:o.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(o,a){const s=createAPIConfig(a);return s===null?!1:(configStorage[o]=s,!0)}function getAPIConfig(o){return configStorage[o]}const detectFetch=()=>{let o;try{if(o=fetch,typeof o=="function")return o}catch(a){}};let fetchModule=detectFetch();function calculateMaxLength(o,a){const s=getAPIConfig(o);if(!s)return 0;let c;if(!s.maxURL)c=0;else{let f=0;s.resources.forEach(y=>{f=Math.max(f,y.length)});const d=a+".json?icons=";c=s.maxURL-f-s.path.length-d.length}return c}function shouldAbort(o){return o===404}const prepare=(o,a,s)=>{const c=[],f=calculateMaxLength(o,a),d="icons";let y={type:d,provider:o,prefix:a,icons:[]},_=0;return s.forEach((S,b)=>{_+=S.length+1,_>=f&&b>0&&(c.push(y),y={type:d,provider:o,prefix:a,icons:[]},_=S.length),y.icons.push(S)}),c.push(y),c};function getPath(o){if(typeof o=="string"){const a=getAPIConfig(o);if(a)return a.path}return"/"}const send=(o,a,s)=>{if(!fetchModule){s("abort",424);return}let c=getPath(a.provider);switch(a.type){case"icons":{const d=a.prefix,_=a.icons.join(","),S=new URLSearchParams({icons:_});c+=d+".json?"+S.toString();break}case"custom":{const d=a.uri;c+=d.slice(0,1)==="/"?d.slice(1):d;break}default:s("abort",400);return}let f=503;fetchModule(o+c).then(d=>{const y=d.status;if(y!==200){setTimeout(()=>{s(shouldAbort(y)?"abort":"next",y)});return}return f=501,d.json()}).then(d=>{if(typeof d!="object"||d===null){setTimeout(()=>{d===404?s("abort",d):s("next",f)});return}setTimeout(()=>{s("success",d)})}).catch(()=>{s("next",f)})},fetchAPIModule={prepare,send};function sortIcons(o){const a={loaded:[],missing:[],pending:[]},s=Object.create(null);o.sort((f,d)=>f.provider!==d.provider?f.provider.localeCompare(d.provider):f.prefix!==d.prefix?f.prefix.localeCompare(d.prefix):f.name.localeCompare(d.name));let c={provider:"",prefix:"",name:""};return o.forEach(f=>{if(c.name===f.name&&c.prefix===f.prefix&&c.provider===f.provider)return;c=f;const d=f.provider,y=f.prefix,_=f.name,S=s[d]||(s[d]=Object.create(null)),b=S[y]||(S[y]=getStorage$2(d,y));let $;_ in b.icons?$=a.loaded:y===""||b.missing.has(_)?$=a.missing:$=a.pending;const P={provider:d,prefix:y,name:_};$.push(P)}),a}function removeCallback(o,a){o.forEach(s=>{const c=s.loaderCallbacks;c&&(s.loaderCallbacks=c.filter(f=>f.id!==a))})}function updateCallbacks(o){o.pendingCallbacksFlag||(o.pendingCallbacksFlag=!0,setTimeout(()=>{o.pendingCallbacksFlag=!1;const a=o.loaderCallbacks?o.loaderCallbacks.slice(0):[];if(!a.length)return;let s=!1;const c=o.provider,f=o.prefix;a.forEach(d=>{const y=d.icons,_=y.pending.length;y.pending=y.pending.filter(S=>{if(S.prefix!==f)return!0;const b=S.name;if(o.icons[b])y.loaded.push({provider:c,prefix:f,name:b});else if(o.missing.has(b))y.missing.push({provider:c,prefix:f,name:b});else return s=!0,!0;return!1}),y.pending.length!==_&&(s||removeCallback([o],d.id),d.callback(y.loaded.slice(0),y.missing.slice(0),y.pending.slice(0),d.abort))})}))}let idCounter=0;function storeCallback(o,a,s){const c=idCounter++,f=removeCallback.bind(null,s,c);if(!a.pending.length)return f;const d={id:c,icons:a,callback:o,abort:f};return s.forEach(y=>{(y.loaderCallbacks||(y.loaderCallbacks=[])).push(d)}),f}function listToIcons(o,a=!0,s=!1){const c=[];return o.forEach(f=>{const d=typeof f=="string"?stringToIcon(f,a,s):f;d&&c.push(d)}),c}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(o,a,s,c){const f=o.resources.length,d=o.random?Math.floor(Math.random()*f):o.index;let y;if(o.random){let z=o.resources.slice(0);for(y=[];z.length>1;){const H=Math.floor(Math.random()*z.length);y.push(z[H]),z=z.slice(0,H).concat(z.slice(H+1))}y=y.concat(z)}else y=o.resources.slice(d).concat(o.resources.slice(0,d));const _=Date.now();let S="pending",b=0,$,P=null,T=[],C=[];typeof c=="function"&&C.push(c);function O(){P&&(clearTimeout(P),P=null)}function A(){S==="pending"&&(S="aborted"),O(),T.forEach(z=>{z.status==="pending"&&(z.status="aborted")}),T=[]}function F(z,H){H&&(C=[]),typeof z=="function"&&C.push(z)}function j(){return{startTime:_,payload:a,status:S,queriesSent:b,queriesPending:T.length,subscribe:F,abort:A}}function L(){S="failed",C.forEach(z=>{z(void 0,$)})}function M(){T.forEach(z=>{z.status==="pending"&&(z.status="aborted")}),T=[]}function I(z,H,G){const X=H!=="success";switch(T=T.filter(W=>W!==z),S){case"pending":break;case"failed":if(X||!o.dataAfterTimeout)return;break;default:return}if(H==="abort"){$=G,L();return}if(X){$=G,T.length||(y.length?U():L());return}if(O(),M(),!o.random){const W=o.resources.indexOf(z.resource);W!==-1&&W!==o.index&&(o.index=W)}S="completed",C.forEach(W=>{W(G)})}function U(){if(S!=="pending")return;O();const z=y.shift();if(z===void 0){if(T.length){P=setTimeout(()=>{O(),S==="pending"&&(M(),L())},o.timeout);return}L();return}const H={status:"pending",resource:z,callback:(G,X)=>{I(H,G,X)}};T.push(H),b++,P=setTimeout(U,o.rotate),s(z,a,H.callback)}return setTimeout(U),j}function initRedundancy(o){const a=se(se({},defaultConfig),o);let s=[];function c(){s=s.filter(_=>_().status==="pending")}function f(_,S,b){const $=sendQuery(a,_,S,(P,T)=>{c(),b&&b(P,T)});return s.push($),$}function d(_){return s.find(S=>_(S))||null}return{query:f,find:d,setIndex:_=>{a.index=_},getIndex:()=>a.index,cleanup:c}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(o){if(!redundancyCache[o]){const a=getAPIConfig(o);if(!a)return;const s=initRedundancy(a),c={config:a,redundancy:s};redundancyCache[o]=c}return redundancyCache[o]}function sendAPIQuery(o,a,s){let c,f;if(typeof o=="string"){const d=getAPIModule(o);if(!d)return s(void 0,424),emptyCallback$1;f=d.send;const y=getRedundancyCache(o);y&&(c=y.redundancy)}else{const d=createAPIConfig(o);if(d){c=initRedundancy(d);const y=o.resources?o.resources[0]:"",_=getAPIModule(y);_&&(f=_.send)}}return!c||!f?(s(void 0,424),emptyCallback$1):c.query(a,f,s)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem(o,a){try{return o.getItem(a)}catch(s){}}function setStoredItem(o,a,s){try{return o.setItem(a,s),!0}catch(c){}}function removeStoredItem(o,a){try{o.removeItem(a)}catch(s){}}function setBrowserStorageItemsCount(o,a){return setStoredItem(o,browserCacheCountKey,a.toString())}function getBrowserStorageItemsCount(o){return parseInt(getStoredItem(o,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(o){browserStorageStatus=o}let _window=typeof window=="undefined"?{}:window;function getBrowserStorage(o){const a=o+"Storage";try{if(_window&&_window[a]&&typeof _window[a].length=="number")return _window[a]}catch(s){}browserStorageConfig[o]=!1}function iterateBrowserStorage(o,a){const s=getBrowserStorage(o);if(!s)return;const c=getStoredItem(s,browserCacheVersionKey);if(c!==browserCacheVersion){if(c){const _=getBrowserStorageItemsCount(s);for(let S=0;S<_;S++)removeStoredItem(s,browserCachePrefix+S.toString())}setStoredItem(s,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(s,0);return}const f=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,d=_=>{const S=browserCachePrefix+_.toString(),b=getStoredItem(s,S);if(typeof b=="string"){try{const $=JSON.parse(b);if(typeof $=="object"&&typeof $.cached=="number"&&$.cached>f&&typeof $.provider=="string"&&typeof $.data=="object"&&typeof $.data.prefix=="string"&&a($,_))return!0}catch($){}removeStoredItem(s,S)}};let y=getBrowserStorageItemsCount(s);for(let _=y-1;_>=0;_--)d(_)||(_===y-1?(y--,setBrowserStorageItemsCount(s,y)):browserStorageEmptyItems[o].add(_))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const o in browserStorageConfig)iterateBrowserStorage(o,a=>{const s=a.data,c=a.provider,f=s.prefix,d=getStorage$2(c,f);if(!addIconSet(d,s).length)return!1;const y=s.lastModified||-1;return d.lastModifiedCached=d.lastModifiedCached?Math.min(d.lastModifiedCached,y):y,!0})}}function updateLastModified(o,a){const s=o.lastModifiedCached;if(s&&s>=a)return s===a;if(o.lastModifiedCached=a,s)for(const c in browserStorageConfig)iterateBrowserStorage(c,f=>{const d=f.data;return f.provider!==o.provider||d.prefix!==o.prefix||d.lastModified===a});return!0}function storeInBrowserStorage(o,a){browserStorageStatus||initBrowserStorage();function s(c){let f;if(!browserStorageConfig[c]||!(f=getBrowserStorage(c)))return;const d=browserStorageEmptyItems[c];let y;if(d.size)d.delete(y=Array.from(d).shift());else if(y=getBrowserStorageItemsCount(f),!setBrowserStorageItemsCount(f,y+1))return;const _={cached:Math.floor(Date.now()/browserStorageHour),provider:o.provider,data:a};return setStoredItem(f,browserCachePrefix+y.toString(),JSON.stringify(_))}a.lastModified&&!updateLastModified(o,a.lastModified)||Object.keys(a.icons).length&&(a.not_found&&(a=Object.assign({},a),delete a.not_found),s("local")||s("session"))}function emptyCallback(){}function loadedNewIcons(o){o.iconsLoaderFlag||(o.iconsLoaderFlag=!0,setTimeout(()=>{o.iconsLoaderFlag=!1,updateCallbacks(o)}))}function loadNewIcons(o,a){o.iconsToLoad?o.iconsToLoad=o.iconsToLoad.concat(a).sort():o.iconsToLoad=a,o.iconsQueueFlag||(o.iconsQueueFlag=!0,setTimeout(()=>{o.iconsQueueFlag=!1;const{provider:s,prefix:c}=o,f=o.iconsToLoad;delete o.iconsToLoad;let d;if(!f||!(d=getAPIModule(s)))return;d.prepare(s,c,f).forEach(_=>{sendAPIQuery(s,_,S=>{if(typeof S!="object")_.icons.forEach(b=>{o.missing.add(b)});else try{const b=addIconSet(o,S);if(!b.length)return;const $=o.pendingIcons;$&&b.forEach(P=>{$.delete(P)}),storeInBrowserStorage(o,S)}catch(b){}loadedNewIcons(o)})})}))}const loadIcons=(o,a)=>{const s=listToIcons(o,!0,allowSimpleNames()),c=sortIcons(s);if(!c.pending.length){let S=!0;return a&&setTimeout(()=>{S&&a(c.loaded,c.missing,c.pending,emptyCallback)}),()=>{S=!1}}const f=Object.create(null),d=[];let y,_;return c.pending.forEach(S=>{const{provider:b,prefix:$}=S;if($===_&&b===y)return;y=b,_=$,d.push(getStorage$2(b,$));const P=f[b]||(f[b]=Object.create(null));P[$]||(P[$]=[])}),c.pending.forEach(S=>{const{provider:b,prefix:$,name:P}=S,T=getStorage$2(b,$),C=T.pendingIcons||(T.pendingIcons=new Set);C.has(P)||(C.add(P),f[b][$].push(P))}),d.forEach(S=>{const{provider:b,prefix:$}=S;f[b][$].length&&loadNewIcons(S,f[b][$])}),a?storeCallback(a,c,d):emptyCallback};function mergeCustomisations(o,a){const s=se({},o);for(const c in a){const f=a[c],d=typeof f;c in defaultIconSizeCustomisations?(f===null||f&&(d==="string"||d==="number"))&&(s[c]=f):d===typeof s[c]&&(s[c]=c==="rotate"?f%4:f)}return s}const separator=/[\s,]+/;function flipFromString(o,a){a.split(separator).forEach(s=>{switch(s.trim()){case"horizontal":o.hFlip=!0;break;case"vertical":o.vFlip=!0;break}})}function rotateFromString(o,a=0){const s=o.replace(/^-?[0-9.]*/,"");function c(f){for(;f<0;)f+=4;return f%4}if(s===""){const f=parseInt(o);return isNaN(f)?0:c(f)}else if(s!==o){let f=0;switch(s){case"%":f=25;break;case"deg":f=90}if(f){let d=parseFloat(o.slice(0,o.length-s.length));return isNaN(d)?0:(d=d/f,d%1===0?c(d):0)}}return a}function iconToHTML(o,a){let s=o.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const c in a)s+=" "+c+'="'+a[c]+'"';return'"+o+""}function encodeSVGforURL(o){return o.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function svgToData(o){return"data:image/svg+xml,"+encodeSVGforURL(o)}function svgToURL(o){return'url("'+svgToData(o)+'")'}let policy;function createPolicy(){try{policy=window.trustedTypes.createPolicy("iconify",{createHTML:o=>o})}catch(o){policy=null}}function cleanUpInnerHTML(o){return policy===void 0&&createPolicy(),policy?policy.createHTML(o):o}const defaultExtendedIconCustomisations=$e(se({},defaultIconCustomisations),{inline:!1}),svgDefaults={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={WebkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const o in propsToAddTo){const a=propsToAddTo[o];for(const s in propsToAdd)a[o+s]=propsToAdd[s]}const inlineDefaults=$e(se({},defaultExtendedIconCustomisations),{inline:!0});function fixSize(o){return o+(o.match(/^[-0-9.]+$/)?"px":"")}const render=(o,a,s,c)=>{const f=s?inlineDefaults:defaultExtendedIconCustomisations,d=mergeCustomisations(f,a),y=a.mode||"svg",_={},S=a.style||{},b=$e(se({},y==="svg"?svgDefaults:{}),{ref:c});for(let j in a){const L=a[j];if(L!==void 0)switch(j){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":d[j]=L===!0||L==="true"||L===1;break;case"flip":typeof L=="string"&&flipFromString(d,L);break;case"color":_.color=L;break;case"rotate":typeof L=="string"?d[j]=rotateFromString(L):typeof L=="number"&&(d[j]=L);break;case"ariaHidden":case"aria-hidden":L!==!0&&L!=="true"&&delete b["aria-hidden"];break;default:f[j]===void 0&&(b[j]=L)}}const $=iconToSVG(o,d),P=$.attributes;if(d.inline&&(_.verticalAlign="-0.125em"),y==="svg"){b.style=se(se({},_),S),Object.assign(b,P);let j=0,L=a.id;return typeof L=="string"&&(L=L.replace(/-/g,"_")),b.dangerouslySetInnerHTML={__html:cleanUpInnerHTML(replaceIDs($.body,L?()=>L+"ID"+j++:"iconifyReact"))},React$4.createElement("svg",b)}const{body:T,width:C,height:O}=o,A=y==="mask"||(y==="bg"?!1:T.indexOf("currentColor")!==-1),F=iconToHTML(T,$e(se({},P),{width:C+"",height:O+""}));return b.style=se(se(se($e(se({},_),{"--svg":svgToURL(F),width:fixSize(P.width),height:fixSize(P.height)}),commonProps),A?monotoneProps:coloredProps),S),React$4.createElement("span",b)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document!="undefined"&&typeof window!="undefined"){initBrowserStorage();const o=window;if(o.IconifyPreload!==void 0){const a=o.IconifyPreload,s="Invalid IconifyPreload syntax.";typeof a=="object"&&a!==null&&(a instanceof Array?a:[a]).forEach(c=>{try{typeof c!="object"||c===null||c instanceof Array||typeof c.icons!="object"||typeof c.prefix!="string"||addCollection(c)}catch(f){}})}if(o.IconifyProviders!==void 0){const a=o.IconifyProviders;if(typeof a=="object"&&a!==null)for(let s in a){const c="IconifyProviders["+s+"] is invalid.";try{const f=a[s];if(typeof f!="object"||!f||f.resources===void 0)continue;addAPIProvider(s,f)}catch(f){}}}}class IconComponent extends React$4.Component{constructor(a){super(a),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(a){this.state.icon!==a&&this.setState({icon:a})}_checkIcon(a){const s=this.state,c=this.props.icon;if(typeof c=="object"&&c!==null&&typeof c.body=="string"){this._icon="",this._abortLoading(),(a||s.icon===null)&&this._setData({data:c});return}let f;if(typeof c!="string"||(f=stringToIcon(c,!1,!0))===null){this._abortLoading(),this._setData(null);return}const d=getIconData(f);if(!d){(!this._loading||this._loading.name!==c)&&(this._abortLoading(),this._icon="",this._setData(null),d!==null&&(this._loading={name:c,abort:loadIcons([f],this._checkIcon.bind(this,!1))}));return}if(this._icon!==c||s.icon===null){this._abortLoading(),this._icon=c;const y=["iconify"];f.prefix!==""&&y.push("iconify--"+f.prefix),f.provider!==""&&y.push("iconify--"+f.provider),this._setData({data:d,classes:y}),this.props.onLoad&&this.props.onLoad(c)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(a){a.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const a=this.props,s=this.state.icon;if(s===null)return a.children?a.children:React$4.createElement("span",{});let c=a;return s.classes&&(c=$e(se({},a),{className:(typeof a.className=="string"?a.className+" ":"")+s.classes.join(" ")})),render(se(se({},defaultIconProps),s.data),c,a._inline,a._ref)}}const Icon=React$4.forwardRef(function(a,s){const c=$e(se({},a),{_ref:s,_inline:!1});return React$4.createElement(IconComponent,c)});React$4.forwardRef(function(a,s){const c=$e(se({},a),{_ref:s,_inline:!0});return React$4.createElement(IconComponent,c)});const Selectlangulage=()=>{const{i18n:o}=useTranslation(),a=[{key:"zh",label:"中文"},{key:"en",label:"English"}];return jsxRuntimeExports.jsx(Dropdown,{menu:{items:a,onClick:({key:s})=>o.changeLanguage(s)},trigger:["click"],children:jsxRuntimeExports.jsx(Button,{shape:"circle",size:"small",icon:jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(Icon,{icon:"ant-design:global-outlined"})})})})};function LayoutFeature(){return jsxRuntimeExports.jsxs(Space,{size:"middle",children:[jsxRuntimeExports.jsx(GlobalSearch,{}),jsxRuntimeExports.jsx(Selectlangulage,{}),jsxRuntimeExports.jsx(DocLink,{}),jsxRuntimeExports.jsx(GithubLink,{}),jsxRuntimeExports.jsx(Settings,{}),jsxRuntimeExports.jsx(UserDropdown,{})]})}function formatProdErrorMessage$2(o){return`Minified Redux error #${o}; visit https://redux.js.org/Errors?code=${o} for the full message or use the non-minified dev environment for full errors. `}var $$observable$1=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),symbol_observable_default=$$observable$1,randomString$1=()=>Math.random().toString(36).substring(7).split("").join("."),ActionTypes$1={INIT:`@@redux/INIT${randomString$1()}`,REPLACE:`@@redux/REPLACE${randomString$1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString$1()}`},actionTypes_default=ActionTypes$1;function isPlainObject$2(o){if(typeof o!="object"||o===null)return!1;let a=o;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(o)===a||Object.getPrototypeOf(o)===null}function createStore$1(o,a,s){if(typeof o!="function")throw new Error(formatProdErrorMessage$2(2));if(typeof a=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$2(0));if(typeof a=="function"&&typeof s=="undefined"&&(s=a,a=void 0),typeof s!="undefined"){if(typeof s!="function")throw new Error(formatProdErrorMessage$2(1));return s(createStore$1)(o,a)}let c=o,f=a,d=new Map,y=d,_=0,S=!1;function b(){y===d&&(y=new Map,d.forEach((F,j)=>{y.set(j,F)}))}function $(){if(S)throw new Error(formatProdErrorMessage$2(3));return f}function P(F){if(typeof F!="function")throw new Error(formatProdErrorMessage$2(4));if(S)throw new Error(formatProdErrorMessage$2(5));let j=!0;b();const L=_++;return y.set(L,F),function(){if(j){if(S)throw new Error(formatProdErrorMessage$2(6));j=!1,b(),y.delete(L),d=null}}}function T(F){if(!isPlainObject$2(F))throw new Error(formatProdErrorMessage$2(7));if(typeof F.type=="undefined")throw new Error(formatProdErrorMessage$2(8));if(typeof F.type!="string")throw new Error(formatProdErrorMessage$2(17));if(S)throw new Error(formatProdErrorMessage$2(9));try{S=!0,f=c(f,F)}finally{S=!1}return(d=y).forEach(L=>{L()}),F}function C(F){if(typeof F!="function")throw new Error(formatProdErrorMessage$2(10));c=F,T({type:actionTypes_default.REPLACE})}function O(){const F=P;return{subscribe(j){if(typeof j!="object"||j===null)throw new Error(formatProdErrorMessage$2(11));function L(){const I=j;I.next&&I.next($())}return L(),{unsubscribe:F(L)}},[symbol_observable_default](){return this}}}return T({type:actionTypes_default.INIT}),{dispatch:T,subscribe:P,getState:$,replaceReducer:C,[symbol_observable_default]:O}}function assertReducerShape(o){Object.keys(o).forEach(a=>{const s=o[a];if(typeof s(void 0,{type:actionTypes_default.INIT})=="undefined")throw new Error(formatProdErrorMessage$2(12));if(typeof s(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(formatProdErrorMessage$2(13))})}function combineReducers(o){const a=Object.keys(o),s={};for(let d=0;da:o.length===1?o[0]:o.reduce((a,s)=>(...c)=>a(s(...c)))}function applyMiddleware(...o){return a=>(s,c)=>{const f=a(s,c);let d=()=>{throw new Error(formatProdErrorMessage$2(15))};const y={getState:f.getState,dispatch:(S,...b)=>d(S,...b)},_=o.map(S=>S(y));return d=compose(..._)(f.dispatch),$e(se({},f),{dispatch:d})}}function isAction(o){return isPlainObject$2(o)&&"type"in o&&typeof o.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(o,...a){throw new Error(`[Immer] minified error nr: ${o}. Full error at: https://bit.ly/3cXEKWf`)}var getPrototypeOf=Object.getPrototypeOf;function isDraft(o){return!!o&&!!o[DRAFT_STATE]}function isDraftable(o){var a;return o?isPlainObject$1(o)||Array.isArray(o)||!!o[DRAFTABLE]||!!((a=o.constructor)!=null&&a[DRAFTABLE])||isMap(o)||isSet(o):!1}var objectCtorString=Object.prototype.constructor.toString();function isPlainObject$1(o){if(!o||typeof o!="object")return!1;const a=getPrototypeOf(o);if(a===null)return!0;const s=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return s===Object?!0:typeof s=="function"&&Function.toString.call(s)===objectCtorString}function each(o,a){getArchtype(o)===0?Object.entries(o).forEach(([s,c])=>{a(s,c,o)}):o.forEach((s,c)=>a(c,s,o))}function getArchtype(o){const a=o[DRAFT_STATE];return a?a.type_:Array.isArray(o)?1:isMap(o)?2:isSet(o)?3:0}function has(o,a){return getArchtype(o)===2?o.has(a):Object.prototype.hasOwnProperty.call(o,a)}function set(o,a,s){const c=getArchtype(o);c===2?o.set(a,s):c===3?o.add(s):o[a]=s}function is(o,a){return o===a?o!==0||1/o===1/a:o!==o&&a!==a}function isMap(o){return o instanceof Map}function isSet(o){return o instanceof Set}function latest(o){return o.copy_||o.base_}function shallowCopy(o,a){if(isMap(o))return new Map(o);if(isSet(o))return new Set(o);if(Array.isArray(o))return Array.prototype.slice.call(o);if(!a&&isPlainObject$1(o))return getPrototypeOf(o)?se({},o):Object.assign(Object.create(null),o);const s=Object.getOwnPropertyDescriptors(o);delete s[DRAFT_STATE];let c=Reflect.ownKeys(s);for(let f=0;f1&&(o.set=o.add=o.clear=o.delete=dontMutateFrozenCollections),Object.freeze(o),a&&each(o,(s,c)=>freeze(c,!0))),o}function dontMutateFrozenCollections(){die(2)}function isFrozen(o){return Object.isFrozen(o)}var plugins={};function getPlugin(o){const a=plugins[o];return a||die(0,o),a}var currentScope;function getCurrentScope(){return currentScope}function createScope(o,a){return{drafts_:[],parent_:o,immer_:a,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope(o,a){a&&(getPlugin("Patches"),o.patches_=[],o.inversePatches_=[],o.patchListener_=a)}function revokeScope(o){leaveScope(o),o.drafts_.forEach(revokeDraft),o.drafts_=null}function leaveScope(o){o===currentScope&&(currentScope=o.parent_)}function enterScope(o){return currentScope=createScope(currentScope,o)}function revokeDraft(o){const a=o[DRAFT_STATE];a.type_===0||a.type_===1?a.revoke_():a.revoked_=!0}function processResult(o,a){a.unfinalizedDrafts_=a.drafts_.length;const s=a.drafts_[0];return o!==void 0&&o!==s?(s[DRAFT_STATE].modified_&&(revokeScope(a),die(4)),isDraftable(o)&&(o=finalize(a,o),a.parent_||maybeFreeze(a,o)),a.patches_&&getPlugin("Patches").generateReplacementPatches_(s[DRAFT_STATE].base_,o,a.patches_,a.inversePatches_)):o=finalize(a,s,[]),revokeScope(a),a.patches_&&a.patchListener_(a.patches_,a.inversePatches_),o!==NOTHING?o:void 0}function finalize(o,a,s){if(isFrozen(a))return a;const c=a[DRAFT_STATE];if(!c)return each(a,(f,d)=>finalizeProperty(o,c,a,f,d,s)),a;if(c.scope_!==o)return a;if(!c.modified_)return maybeFreeze(o,c.base_,!0),c.base_;if(!c.finalized_){c.finalized_=!0,c.scope_.unfinalizedDrafts_--;const f=c.copy_;let d=f,y=!1;c.type_===3&&(d=new Set(f),f.clear(),y=!0),each(d,(_,S)=>finalizeProperty(o,c,f,_,S,s,y)),maybeFreeze(o,f,!1),s&&o.patches_&&getPlugin("Patches").generatePatches_(c,s,o.patches_,o.inversePatches_)}return c.copy_}function finalizeProperty(o,a,s,c,f,d,y){if(isDraft(f)){const _=d&&a&&a.type_!==3&&!has(a.assigned_,c)?d.concat(c):void 0,S=finalize(o,f,_);if(set(s,c,S),isDraft(S))o.canAutoFreeze_=!1;else return}else y&&s.add(f);if(isDraftable(f)&&!isFrozen(f)){if(!o.immer_.autoFreeze_&&o.unfinalizedDrafts_<1)return;finalize(o,f),(!a||!a.scope_.parent_)&&maybeFreeze(o,f)}}function maybeFreeze(o,a,s=!1){!o.parent_&&o.immer_.autoFreeze_&&o.canAutoFreeze_&&freeze(a,s)}function createProxyProxy(o,a){const s=Array.isArray(o),c={type_:s?1:0,scope_:a?a.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:a,base_:o,draft_:null,copy_:null,revoke_:null,isManual_:!1};let f=c,d=objectTraps;s&&(f=[c],d=arrayTraps);const{revoke:y,proxy:_}=Proxy.revocable(f,d);return c.draft_=_,c.revoke_=y,_}var objectTraps={get(o,a){if(a===DRAFT_STATE)return o;const s=latest(o);if(!has(s,a))return readPropFromProto(o,s,a);const c=s[a];return o.finalized_||!isDraftable(c)?c:c===peek(o.base_,a)?(prepareCopy(o),o.copy_[a]=createProxy(c,o)):c},has(o,a){return a in latest(o)},ownKeys(o){return Reflect.ownKeys(latest(o))},set(o,a,s){const c=getDescriptorFromProto(latest(o),a);if(c!=null&&c.set)return c.set.call(o.draft_,s),!0;if(!o.modified_){const f=peek(latest(o),a),d=f==null?void 0:f[DRAFT_STATE];if(d&&d.base_===s)return o.copy_[a]=s,o.assigned_[a]=!1,!0;if(is(s,f)&&(s!==void 0||has(o.base_,a)))return!0;prepareCopy(o),markChanged(o)}return o.copy_[a]===s&&(s!==void 0||a in o.copy_)||Number.isNaN(s)&&Number.isNaN(o.copy_[a])||(o.copy_[a]=s,o.assigned_[a]=!0),!0},deleteProperty(o,a){return peek(o.base_,a)!==void 0||a in o.base_?(o.assigned_[a]=!1,prepareCopy(o),markChanged(o)):delete o.assigned_[a],o.copy_&&delete o.copy_[a],!0},getOwnPropertyDescriptor(o,a){const s=latest(o),c=Reflect.getOwnPropertyDescriptor(s,a);return c&&{writable:!0,configurable:o.type_!==1||a!=="length",enumerable:c.enumerable,value:s[a]}},defineProperty(){die(11)},getPrototypeOf(o){return getPrototypeOf(o.base_)},setPrototypeOf(){die(12)}},arrayTraps={};each(objectTraps,(o,a)=>{arrayTraps[o]=function(){return arguments[0]=arguments[0][0],a.apply(this,arguments)}});arrayTraps.deleteProperty=function(o,a){return arrayTraps.set.call(this,o,a,void 0)};arrayTraps.set=function(o,a,s){return objectTraps.set.call(this,o[0],a,s,o[0])};function peek(o,a){const s=o[DRAFT_STATE];return(s?latest(s):o)[a]}function readPropFromProto(o,a,s){var f;const c=getDescriptorFromProto(a,s);return c?"value"in c?c.value:(f=c.get)==null?void 0:f.call(o.draft_):void 0}function getDescriptorFromProto(o,a){if(!(a in o))return;let s=getPrototypeOf(o);for(;s;){const c=Object.getOwnPropertyDescriptor(s,a);if(c)return c;s=getPrototypeOf(s)}}function markChanged(o){o.modified_||(o.modified_=!0,o.parent_&&markChanged(o.parent_))}function prepareCopy(o){o.copy_||(o.copy_=shallowCopy(o.base_,o.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(o){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(a,s,c)=>{if(typeof a=="function"&&typeof s!="function"){const d=s;s=a;const y=this;return function(S=d,...b){return y.produce(S,$=>s.call(this,$,...b))}}typeof s!="function"&&die(6),c!==void 0&&typeof c!="function"&&die(7);let f;if(isDraftable(a)){const d=enterScope(this),y=createProxy(a,void 0);let _=!0;try{f=s(y),_=!1}finally{_?revokeScope(d):leaveScope(d)}return usePatchesInScope(d,c),processResult(f,d)}else if(!a||typeof a!="object"){if(f=s(a),f===void 0&&(f=a),f===NOTHING&&(f=void 0),this.autoFreeze_&&freeze(f,!0),c){const d=[],y=[];getPlugin("Patches").generateReplacementPatches_(a,f,d,y),c(d,y)}return f}else die(1,a)},this.produceWithPatches=(a,s)=>{if(typeof a=="function")return(y,..._)=>this.produceWithPatches(y,S=>a(S,..._));let c,f;return[this.produce(a,s,(y,_)=>{c=y,f=_}),c,f]},typeof(o==null?void 0:o.autoFreeze)=="boolean"&&this.setAutoFreeze(o.autoFreeze),typeof(o==null?void 0:o.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(o.useStrictShallowCopy)}createDraft(o){isDraftable(o)||die(8),isDraft(o)&&(o=current(o));const a=enterScope(this),s=createProxy(o,void 0);return s[DRAFT_STATE].isManual_=!0,leaveScope(a),s}finishDraft(o,a){const s=o&&o[DRAFT_STATE];(!s||!s.isManual_)&&die(9);const{scope_:c}=s;return usePatchesInScope(c,a),processResult(void 0,c)}setAutoFreeze(o){this.autoFreeze_=o}setUseStrictShallowCopy(o){this.useStrictShallowCopy_=o}applyPatches(o,a){let s;for(s=a.length-1;s>=0;s--){const f=a[s];if(f.path.length===0&&f.op==="replace"){o=f.value;break}}s>-1&&(a=a.slice(s+1));const c=getPlugin("Patches").applyPatches_;return isDraft(o)?c(o,a):this.produce(o,f=>c(f,a))}};function createProxy(o,a){const s=isMap(o)?getPlugin("MapSet").proxyMap_(o,a):isSet(o)?getPlugin("MapSet").proxySet_(o,a):createProxyProxy(o,a);return(a?a.scope_:getCurrentScope()).drafts_.push(s),s}function current(o){return isDraft(o)||die(10,o),currentImpl(o)}function currentImpl(o){if(!isDraftable(o)||isFrozen(o))return o;const a=o[DRAFT_STATE];let s;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,s=shallowCopy(o,a.scope_.immer_.useStrictShallowCopy_)}else s=shallowCopy(o,!0);return each(s,(c,f)=>{set(s,c,currentImpl(f))}),a&&(a.finalized_=!1),s}var immer=new Immer2,produce=immer.produce;immer.produceWithPatches.bind(immer);immer.setAutoFreeze.bind(immer);immer.setUseStrictShallowCopy.bind(immer);immer.applyPatches.bind(immer);immer.createDraft.bind(immer);immer.finishDraft.bind(immer);function assertIsFunction(o,a=`expected a function, instead received ${typeof o}`){if(typeof o!="function")throw new TypeError(a)}function assertIsObject(o,a=`expected an object, instead received ${typeof o}`){if(typeof o!="object")throw new TypeError(a)}function assertIsArrayOfFunctions(o,a="expected all items to be functions, instead received the following types: "){if(!o.every(s=>typeof s=="function")){const s=o.map(c=>typeof c=="function"?`function ${c.name||"unnamed"}()`:typeof c).join(", ");throw new TypeError(`${a}[${s}]`)}}var ensureIsArray=o=>Array.isArray(o)?o:[o];function getDependencies(o){const a=Array.isArray(o[0])?o[0]:o;return assertIsArrayOfFunctions(a,"createSelector expects all input-selectors to be functions, but received the following types: "),a}function collectInputSelectorResults(o,a){const s=[],{length:c}=o;for(let f=0;f{s=createCacheNode(),y.resetResultsCount()},y.resultsCount=()=>d,y.resetResultsCount=()=>{d=0},y}function createSelectorCreator(o,...a){const s=typeof o=="function"?{memoize:o,memoizeOptions:a}:o,c=(...f)=>{let d=0,y=0,_,S={},b=f.pop();typeof b=="object"&&(S=b,b=f.pop()),assertIsFunction(b,`createSelector expects an output function after the inputs, but received: [${typeof b}]`);const $=se(se({},s),S),{memoize:P,memoizeOptions:T=[],argsMemoize:C=weakMapMemoize,argsMemoizeOptions:O=[],devModeChecks:A={}}=$,F=ensureIsArray(T),j=ensureIsArray(O),L=getDependencies(f),M=P(function(){return d++,b.apply(null,arguments)},...F),I=C(function(){y++;const z=collectInputSelectorResults(L,arguments);return _=M.apply(null,z),_},...j);return Object.assign(I,{resultFunc:b,memoizedResultFunc:M,dependencies:L,dependencyRecomputations:()=>y,resetDependencyRecomputations:()=>{y=0},lastResult:()=>_,recomputations:()=>d,resetRecomputations:()=>{d=0},memoize:P,argsMemoize:C})};return Object.assign(c,{withTypes:()=>c}),c}var createSelector=createSelectorCreator(weakMapMemoize),createStructuredSelector=Object.assign((o,a=createSelector)=>{assertIsObject(o,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof o}`);const s=Object.keys(o),c=s.map(d=>o[d]);return a(c,(...d)=>d.reduce((y,_,S)=>(y[s[S]]=_,y),{}))},{withTypes:()=>createStructuredSelector});function createThunkMiddleware(o){return({dispatch:s,getState:c})=>f=>d=>typeof d=="function"?d(s,c,o):f(d)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,createDraftSafeSelectorCreator=(...o)=>{const a=createSelectorCreator(...o);return(...s)=>{const c=a(...s),f=(d,...y)=>c(isDraft(d)?current(d):d,...y);return Object.assign(f,c),f}};createDraftSafeSelectorCreator(weakMapMemoize);var composeWithDevTools=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose:compose.apply(null,arguments)},hasMatchFunction=o=>o&&typeof o.match=="function";function createAction(o,a){function s(...c){if(a){let f=a(...c);if(!f)throw new Error(formatProdErrorMessage$1(0));return se(se({type:o,payload:f.payload},"meta"in f&&{meta:f.meta}),"error"in f&&{error:f.error})}return{type:o,payload:c[0]}}return s.toString=()=>`${o}`,s.type=o,s.match=c=>isAction(c)&&c.type===o,s}var Tuple=class ba extends Array{constructor(...a){super(...a),Object.setPrototypeOf(this,ba.prototype)}static get[Symbol.species](){return ba}concat(...a){return super.concat.apply(this,a)}prepend(...a){return a.length===1&&Array.isArray(a[0])?new ba(...a[0].concat(this)):new ba(...a.concat(this))}};function freezeDraftable(o){return isDraftable(o)?produce(o,()=>{}):o}function emplace(o,a,s){if(o.has(a)){let f=o.get(a);return s.update&&(f=s.update(f,a,o),o.set(a,f)),f}if(!s.insert)throw new Error(formatProdErrorMessage$1(10));const c=s.insert(a,o);return o.set(a,c),c}function isBoolean(o){return typeof o=="boolean"}var buildGetDefaultMiddleware=()=>function(a){const{thunk:s=!0,immutableCheck:c=!0,serializableCheck:f=!0,actionCreatorCheck:d=!0}=a!=null?a:{};let y=new Tuple;return s&&(isBoolean(s)?y.push(thunk):y.push(withExtraArgument(s.extraArgument))),y},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=o=>a=>{setTimeout(a,o)},rAF=typeof window!="undefined"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10),autoBatchEnhancer=(o={type:"raf"})=>a=>(...s)=>{const c=a(...s);let f=!0,d=!1,y=!1;const _=new Set,S=o.type==="tick"?queueMicrotask:o.type==="raf"?rAF:o.type==="callback"?o.queueNotification:createQueueWithTimer(o.timeout),b=()=>{y=!1,d&&(d=!1,_.forEach($=>$()))};return Object.assign({},c,{subscribe($){const P=()=>f&&$(),T=c.subscribe(P);return _.add($),()=>{T(),_.delete($)}},dispatch($){var P;try{return f=!((P=$==null?void 0:$.meta)!=null&&P[SHOULD_AUTOBATCH]),d=!f,d&&(y||(y=!0,S(b))),c.dispatch($)}finally{f=!0}}})},buildGetDefaultEnhancers=o=>function(s){const{autoBatch:c=!0}=s!=null?s:{};let f=new Tuple(o);return c&&f.push(autoBatchEnhancer(typeof c=="object"?c:void 0)),f},IS_PRODUCTION=!0;function configureStore(o){const a=buildGetDefaultMiddleware(),{reducer:s=void 0,middleware:c,devTools:f=!0,preloadedState:d=void 0,enhancers:y=void 0}=o||{};let _;if(typeof s=="function")_=s;else if(isPlainObject$2(s))_=combineReducers(s);else throw new Error(formatProdErrorMessage$1(1));let S;typeof c=="function"?S=c(a):S=a();let b=compose;f&&(b=composeWithDevTools(se({trace:!IS_PRODUCTION},typeof f=="object"&&f)));const $=applyMiddleware(...S),P=buildGetDefaultEnhancers($);let T=typeof y=="function"?y(P):P();const C=b(...T);return createStore$1(_,d,C)}function executeReducerBuilderCallback(o){const a={},s=[];let c;const f={addCase(d,y){const _=typeof d=="string"?d:d.type;if(!_)throw new Error(formatProdErrorMessage$1(28));if(_ in a)throw new Error(formatProdErrorMessage$1(29));return a[_]=y,f},addMatcher(d,y){return s.push({matcher:d,reducer:y}),f},addDefaultCase(d){return c=d,f}};return o(f),[a,s,c]}function isStateFunction(o){return typeof o=="function"}function createReducer(o,a){let[s,c,f]=executeReducerBuilderCallback(a),d;if(isStateFunction(o))d=()=>freezeDraftable(o());else{const _=freezeDraftable(o);d=()=>_}function y(_=d(),S){let b=[s[S.type],...c.filter(({matcher:$})=>$(S)).map(({reducer:$})=>$)];return b.filter($=>!!$).length===0&&(b=[f]),b.reduce(($,P)=>{if(P)if(isDraft($)){const C=P($,S);return C===void 0?$:C}else{if(isDraftable($))return produce($,T=>P(T,S));{const T=P($,S);if(T===void 0){if($===null)return $;throw new Error(formatProdErrorMessage$1(9))}return T}}return $},_)}return y.getInitialState=d,y}var urlAlphabet="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nanoid=(o=21)=>{let a="",s=o;for(;s--;)a+=urlAlphabet[Math.random()*64|0];return a},matches=(o,a)=>hasMatchFunction(o)?o.match(a):o(a);function isAnyOf(...o){return a=>o.some(s=>matches(s,a))}var commonProperties=["name","message","stack","code"],RejectWithValue=class{constructor(o,a){tr(this,"_type");this.payload=o,this.meta=a}},FulfillWithMeta=class{constructor(o,a){tr(this,"_type");this.payload=o,this.meta=a}},miniSerializeError=o=>{if(typeof o=="object"&&o!==null){const a={};for(const s of commonProperties)typeof o[s]=="string"&&(a[s]=o[s]);return a}return{message:String(o)}},createAsyncThunk=(()=>{function o(a,s,c){const f=createAction(a+"/fulfilled",(S,b,$,P)=>({payload:S,meta:$e(se({},P||{}),{arg:$,requestId:b,requestStatus:"fulfilled"})})),d=createAction(a+"/pending",(S,b,$)=>({payload:void 0,meta:$e(se({},$||{}),{arg:b,requestId:S,requestStatus:"pending"})})),y=createAction(a+"/rejected",(S,b,$,P,T)=>({payload:P,error:(c&&c.serializeError||miniSerializeError)(S||"Rejected"),meta:$e(se({},T||{}),{arg:$,requestId:b,rejectedWithValue:!!P,requestStatus:"rejected",aborted:(S==null?void 0:S.name)==="AbortError",condition:(S==null?void 0:S.name)==="ConditionError"})}));function _(S){return(b,$,P)=>{const T=c!=null&&c.idGenerator?c.idGenerator(S):nanoid(),C=new AbortController;let O;function A(j){O=j,C.abort()}const F=function(){return xt(this,null,function*(){var M,I;let j;try{let U=(M=c==null?void 0:c.condition)==null?void 0:M.call(c,S,{getState:$,extra:P});if(isThenable(U)&&(U=yield U),U===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const z=new Promise((H,G)=>C.signal.addEventListener("abort",()=>G({name:"AbortError",message:O||"Aborted"})));b(d(T,S,(I=c==null?void 0:c.getPendingMeta)==null?void 0:I.call(c,{requestId:T,arg:S},{getState:$,extra:P}))),j=yield Promise.race([z,Promise.resolve(s(S,{dispatch:b,getState:$,extra:P,requestId:T,signal:C.signal,abort:A,rejectWithValue:(H,G)=>new RejectWithValue(H,G),fulfillWithValue:(H,G)=>new FulfillWithMeta(H,G)})).then(H=>{if(H instanceof RejectWithValue)throw H;return H instanceof FulfillWithMeta?f(H.payload,T,S,H.meta):f(H,T,S)})])}catch(U){j=U instanceof RejectWithValue?y(null,T,S,U.payload,U.meta):y(U,T,S)}return c&&!c.dispatchConditionRejection&&y.match(j)&&j.meta.condition||b(j),j})}();return Object.assign(F,{abort:A,requestId:T,arg:S,unwrap(){return F.then(unwrapResult)}})}}return Object.assign(_,{pending:d,rejected:y,fulfilled:f,settled:isAnyOf(y,f),typePrefix:a})}return o.withTypes=()=>o,o})();function unwrapResult(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function isThenable(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(o,a){return`${o}/${a}`}function buildCreateSlice({creators:o}={}){var s;const a=(s=o==null?void 0:o.asyncThunk)==null?void 0:s[asyncThunkSymbol];return function(f){const{name:d,reducerPath:y=d}=f;if(!d)throw new Error(formatProdErrorMessage$1(11));const _=(typeof f.reducers=="function"?f.reducers(buildReducerCreators()):f.reducers)||{},S=Object.keys(_),b={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},$={addCase(F,j){const L=typeof F=="string"?F:F.type;if(!L)throw new Error(formatProdErrorMessage$1(12));if(L in b.sliceCaseReducersByType)throw new Error(formatProdErrorMessage$1(13));return b.sliceCaseReducersByType[L]=j,$},addMatcher(F,j){return b.sliceMatchers.push({matcher:F,reducer:j}),$},exposeAction(F,j){return b.actionCreators[F]=j,$},exposeCaseReducer(F,j){return b.sliceCaseReducersByName[F]=j,$}};S.forEach(F=>{const j=_[F],L={reducerName:F,type:getType(d,F),createNotation:typeof f.reducers=="function"};isAsyncThunkSliceReducerDefinition(j)?handleThunkCaseReducerDefinition(L,j,$,a):handleNormalReducerDefinition(L,j,$)});function P(){const[F={},j=[],L=void 0]=typeof f.extraReducers=="function"?executeReducerBuilderCallback(f.extraReducers):[f.extraReducers],M=se(se({},F),b.sliceCaseReducersByType);return createReducer(f.initialState,I=>{for(let U in M)I.addCase(U,M[U]);for(let U of b.sliceMatchers)I.addMatcher(U.matcher,U.reducer);for(let U of j)I.addMatcher(U.matcher,U.reducer);L&&I.addDefaultCase(L)})}const T=F=>F,C=new WeakMap;let O;const A={name:d,reducerPath:y,reducer(F,j){return O||(O=P()),O(F,j)},actions:b.actionCreators,caseReducers:b.sliceCaseReducersByName,getInitialState(){return O||(O=P()),O.getInitialState()},getSelectors(F=T){const j=emplace(C,this,{insert:()=>new WeakMap});return emplace(j,F,{insert:()=>{var M;const L={};for(const[I,U]of Object.entries((M=f.selectors)!=null?M:{}))L[I]=wrapSelector(this,U,F,this!==A);return L}})},selectSlice(F){let j=F[this.reducerPath];return typeof j=="undefined"&&this!==A&&(j=this.getInitialState()),j},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(F,M={}){var I=M,{reducerPath:j}=I,L=er(I,["reducerPath"]);const U=j!=null?j:this.reducerPath;return F.inject({reducerPath:U,reducer:this.reducer},L),$e(se({},this),{reducerPath:U})}};return A}}function wrapSelector(o,a,s,c){function f(d,...y){let _=s.call(o,d);return typeof _=="undefined"&&c&&(_=o.getInitialState()),a(_,...y)}return f.unwrapped=a,f}var createSlice=buildCreateSlice();function buildReducerCreators(){function o(a,s){return se({_reducerDefinitionType:"asyncThunk",payloadCreator:a},s)}return o.withTypes=()=>o,{reducer(a){return Object.assign({[a.name](...s){return a(...s)}}[a.name],{_reducerDefinitionType:"reducer"})},preparedReducer(a,s){return{_reducerDefinitionType:"reducerWithPrepare",prepare:a,reducer:s}},asyncThunk:o}}function handleNormalReducerDefinition({type:o,reducerName:a,createNotation:s},c,f){let d,y;if("reducer"in c){if(s&&!isCaseReducerWithPrepareDefinition(c))throw new Error(formatProdErrorMessage$1(17));d=c.reducer,y=c.prepare}else d=c;f.addCase(o,d).exposeCaseReducer(a,d).exposeAction(a,y?createAction(o,y):createAction(o))}function isAsyncThunkSliceReducerDefinition(o){return o._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(o){return o._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:o,reducerName:a},s,c,f){if(!f)throw new Error(formatProdErrorMessage$1(18));const{payloadCreator:d,fulfilled:y,pending:_,rejected:S,settled:b,options:$}=s,P=f(o,d,$);c.exposeAction(a,P),y&&c.addCase(P.fulfilled,y),_&&c.addCase(P.pending,_),S&&c.addCase(P.rejected,S),b&&c.addMatcher(P.settled,b),c.exposeCaseReducer(a,{fulfilled:y||noop$1,pending:_||noop$1,rejected:S||noop$1,settled:b||noop$1})}function noop$1(){}var alm="listenerMiddleware";createAction(`${alm}/add`);createAction(`${alm}/removeAll`);createAction(`${alm}/remove`);function formatProdErrorMessage$1(o){return`Minified Redux Toolkit error #${o}; visit https://redux-toolkit.js.org/Errors?code=${o} for the full message or use the non-minified dev environment for full errors. `}var KEY_PREFIX="persist:",FLUSH="persist/FLUSH",REHYDRATE="persist/REHYDRATE",PAUSE="persist/PAUSE",PERSIST="persist/PERSIST",PURGE="persist/PURGE",REGISTER="persist/REGISTER",DEFAULT_VERSION=-1;function _typeof$1(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(s){return typeof s}:_typeof$1=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$1(o)}function ownKeys$2(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$2(o){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}var DEFAULT_TIMEOUT=5e3;function persistReducer(o,a){var s=o.version!==void 0?o.version:DEFAULT_VERSION;o.debug;var c=o.stateReconciler===void 0?autoMergeLevel1:o.stateReconciler,f=o.getStoredState||getStoredState,d=o.timeout!==void 0?o.timeout:DEFAULT_TIMEOUT,y=null,_=!1,S=!0,b=function(P){return P._persist.rehydrated&&y&&!S&&y.update(P),P};return function($,P){var T=$||{},C=T._persist,O=_objectWithoutProperties(T,["_persist"]),A=O;if(P.type===PERSIST){var F=!1,j=function(G,X){F||(P.rehydrate(o.key,G,X),F=!0)};if(d&&setTimeout(function(){!F&&j(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(o.key,'"')))},d),S=!1,y||(y=createPersistoid(o)),C)return _objectSpread$1({},a(A,P),{_persist:C});if(typeof P.rehydrate!="function"||typeof P.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return P.register(o.key),f(o).then(function(H){var G=o.migrate||function(X,W){return Promise.resolve(X)};G(H,s).then(function(X){j(X)},function(X){j(void 0,X)})},function(H){j(void 0,H)}),_objectSpread$1({},a(A,P),{_persist:{version:s,rehydrated:!1}})}else{if(P.type===PURGE)return _=!0,P.result(purgeStoredState(o)),_objectSpread$1({},a(A,P),{_persist:C});if(P.type===FLUSH)return P.result(y&&y.flush()),_objectSpread$1({},a(A,P),{_persist:C});if(P.type===PAUSE)S=!0;else if(P.type===REHYDRATE){if(_)return _objectSpread$1({},A,{_persist:_objectSpread$1({},C,{rehydrated:!0})});if(P.key===o.key){var L=a(A,P),M=P.payload,I=c!==!1&&M!==void 0?c(M,$,L,o):L,U=_objectSpread$1({},I,{_persist:_objectSpread$1({},C,{rehydrated:!0})});return b(U)}}}if(!C)return a($,P);var z=a(A,P);return z===A?$:b(_objectSpread$1({},z,{_persist:C}))}}function formatProdErrorMessage(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var $$observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(o){if(typeof o!="object"||o===null)return!1;for(var a=o;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(o)===a}function createStore(o,a,s){var c;if(typeof a=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage(0));if(typeof a=="function"&&typeof s=="undefined"&&(s=a,a=void 0),typeof s!="undefined"){if(typeof s!="function")throw new Error(formatProdErrorMessage(1));return s(createStore)(o,a)}if(typeof o!="function")throw new Error(formatProdErrorMessage(2));var f=o,d=a,y=[],_=y,S=!1;function b(){_===y&&(_=y.slice())}function $(){if(S)throw new Error(formatProdErrorMessage(3));return d}function P(A){if(typeof A!="function")throw new Error(formatProdErrorMessage(4));if(S)throw new Error(formatProdErrorMessage(5));var F=!0;return b(),_.push(A),function(){if(F){if(S)throw new Error(formatProdErrorMessage(6));F=!1,b();var L=_.indexOf(A);_.splice(L,1),y=null}}}function T(A){if(!isPlainObject(A))throw new Error(formatProdErrorMessage(7));if(typeof A.type=="undefined")throw new Error(formatProdErrorMessage(8));if(S)throw new Error(formatProdErrorMessage(9));try{S=!0,d=f(d,A)}finally{S=!1}for(var F=y=_,j=0;j0&&arguments[0]!==void 0?arguments[0]:initialState$2,s=arguments.length>1?arguments[1]:void 0;switch(s.type){case REGISTER:return _objectSpread({},a,{registry:[].concat(_toConsumableArray(a.registry),[s.key])});case REHYDRATE:var c=a.registry.indexOf(s.key),f=_toConsumableArray(a.registry);return f.splice(c,1),_objectSpread({},a,{registry:f,bootstrapped:f.length===0});default:return a}};function persistStore(o,a,s){var c=s||!1,f=createStore(persistorReducer,initialState$2,a&&a.enhancer?a.enhancer:void 0),d=function(b){f.dispatch({type:REGISTER,key:b})},y=function(b,$,P){var T={type:REHYDRATE,payload:$,err:P,key:b};o.dispatch(T),f.dispatch(T),c&&_.getState().bootstrapped&&(c(),c=!1)},_=_objectSpread({},f,{purge:function(){var b=[];return o.dispatch({type:PURGE,result:function(P){b.push(P)}}),Promise.all(b)},flush:function(){var b=[];return o.dispatch({type:FLUSH,result:function(P){b.push(P)}}),Promise.all(b)},pause:function(){o.dispatch({type:PAUSE})},persist:function(){o.dispatch({type:PERSIST,register:d,rehydrate:y})}});return a&&a.manualPersist||_.persist(),_}var createWebStorage$1={},getStorage$1={};getStorage$1.__esModule=!0;getStorage$1.default=getStorage;function _typeof(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(s){return typeof s}:_typeof=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof(o)}function noop(){}var noopStorage={getItem:noop,setItem:noop,removeItem:noop};function hasStorage(o){if((typeof self=="undefined"?"undefined":_typeof(self))!=="object"||!(o in self))return!1;try{var a=self[o],s="redux-persist ".concat(o," test");a.setItem(s,"test"),a.getItem(s),a.removeItem(s)}catch(c){return!1}return!0}function getStorage(o){var a="".concat(o,"Storage");return hasStorage(a)?self[a]:noopStorage}createWebStorage$1.__esModule=!0;createWebStorage$1.default=createWebStorage;var _getStorage=_interopRequireDefault$1(getStorage$1);function _interopRequireDefault$1(o){return o&&o.__esModule?o:{default:o}}function createWebStorage(o){var a=(0,_getStorage.default)(o);return{getItem:function(c){return new Promise(function(f,d){f(a.getItem(c))})},setItem:function(c,f){return new Promise(function(d,y){d(a.setItem(c,f))})},removeItem:function(c){return new Promise(function(f,d){f(a.removeItem(c))})}}}var default_1=void 0,_createWebStorage=_interopRequireDefault(createWebStorage$1);function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}var _default=(0,_createWebStorage.default)("local");default_1=_default;const initialState$1={menuList:[],isCollapse:!1},menu=createSlice({name:"menu",initialState:initialState$1,reducers:{setMenuList:(o,a)=>{o.menuList=a.payload},updateCollapse:(o,a)=>{o.isCollapse=a.payload}}}),{setMenuList,updateCollapse}=menu.actions,menuSlice=menu.reducer,initialState={visitedTags:[],cachedTags:[]},createAppAsyncThunk=createAsyncThunk.withTypes(),tags=createSlice({name:"tags",initialState,reducers:{addVisitedTags:(o,a)=>{const s=o.visitedTags.findIndex(c=>c.path===a.payload.path);s<0?o.visitedTags.push(a.payload):o.visitedTags[s]=se(se({},o.visitedTags[s]),a.payload)},updateVisitedTags:(o,a)=>{o.visitedTags=a.payload},closeTagsByType:(o,a)=>{let s=[];const{type:c,path:f}=a.payload,{visitedTags:d}=o,y=d.findIndex(S=>S.fullPath===f),_=d.filter(S=>{var b;return(b=S==null?void 0:S.meta)==null?void 0:b.affix});switch(c){case"left":s=d.slice(y);break;case"right":s=d.slice(0,y+1);break;case"other":s=d.filter(S=>S.fullPath===f);break}o.visitedTags=_.concat(s.filter(S=>{var b;return!((b=S.meta)!=null&&b.affix)}))}}}),closeTagByKey=createAppAsyncThunk("tags/closeTagByKey",(o,{getState:a,dispatch:s})=>{const{visitedTags:c}=a().tags,f=c.findIndex(y=>y.fullPath===o),d=c.filter(y=>y.fullPath!==o);return s(updateVisitedTags(d)),Promise.resolve({tagIndex:f,tagsList:d})}),closeAllTags=createAppAsyncThunk("tags/closeAllTags",(o,{getState:a,dispatch:s})=>{const{visitedTags:c}=a().tags,f=c.filter(d=>{var y;return(y=d==null?void 0:d.meta)==null?void 0:y.affix});return s(updateVisitedTags(f)),Promise.resolve(f)}),{addVisitedTags,updateVisitedTags,closeTagsByType}=tags.actions,tagsSlice=tags.reducer,persistConfig={key:"redux-persist",storage:default_1},store=configureStore({reducer:{menu:persistReducer(persistConfig,menuSlice),tags:persistReducer(persistConfig,tagsSlice)},middleware:o=>o({serializableCheck:!1}),devTools:!0}),persistor=persistStore(store),useAppDispatch=useDispatch,useAppSelector=useSelector,useStyles$7=createStyles(({token:o},a)=>{const{active:s}=a;return{"compo_tag-item":{display:"inline-block",verticalAlign:"top",height:"24px",margin:"0 2px",padding:"0 8px",borderRadius:"3px",lineHeight:"24px",color:s?"#fff":"#555",background:s?o.colorPrimary:"#fff",overflow:"hidden",cursor:"pointer","&__dot":{display:"inline-block",verticalAlign:"baseline",width:"8px",height:"8px",marginRight:"6px",borderRadius:"50%",background:s?"#fff":"#dcdee0"},"&__name":{fontSize:"12px"}},verticalAlign:"baseline",svg:{width:"8px",height:"8px"},active:{border:"none",color:"#fff",background:o.colorPrimary,".anticon-close":{color:"#fff"}}}}),TagItem=({name:o,fixed:a,active:s=!1,closeTag:c,onClick:f})=>{const{styles:d}=useStyles$7({active:s});return jsxRuntimeExports.jsxs(Tag$1,{className:classNames(d["compo_tag-item"],{[d.active]:s}),closable:!a,onClose:c,onClick:f,children:[jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__dot`}),jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__name`,children:o})]})},useStyles$6=createStyles(()=>({layout_tags:{zIndex:"299",display:"flex",justifyContent:"space-between",height:"32px",padding:"4px 12px",lineHeight:"32px","&__main":{position:"relative",width:"calc(100% - 116px)",height:"24px",overflow:"hidden","&-body":{position:"absolute",height:"100%",padding:"0 2px",overflow:"visible",whiteSpace:"nowrap",transition:"left .5s ease"}},"&__btn-space":{marginLeft:"4px"}}})),LayoutTags=()=>{const{t:o}=useTranslation(),{styles:a}=useStyles$6(),s=[{key:"left",label:o("关闭左侧")},{key:"right",label:o("关闭右侧")},{key:"other",label:o("关闭其它")},{key:"all",label:o("关闭所有")}],c=({key:z})=>{z==="all"?P(closeAllTags()).then(({payload:H})=>{const G=H.slice(-1)[0];T!==(G==null?void 0:G.fullPath)&&b(G==null?void 0:G.fullPath)}):P(closeTagsByType({type:z,path:T}))},f=reactExports.useRef(null),d=reactExports.useRef(null),[y,_]=reactExports.useState(0),{pathname:S}=useLocation(),b=useNavigate(),$=useAppSelector(z=>z.tags.visitedTags),P=useAppDispatch(),[T,C]=reactExports.useState(S);reactExports.useEffect(()=>{O(routeList).forEach(H=>{P(addVisitedTags(H))})},[]),reactExports.useEffect(()=>{const z=searchRoute(S,routeList);z&&P(addVisitedTags(z)),C(S)},[S]),reactExports.useEffect(()=>{var G;const z=(G=d.current)==null?void 0:G.childNodes,H=Array.from(z).find(X=>X.dataset.path===T);A(H)},[T]);const O=(z,H="/")=>{const G=[],X=W=>{var K;if((K=W.meta)!=null&&K.affix){const ie=W.path.startsWith("/")?W.path:H+W.path;G.push($e(se({},W),{path:ie}))}W.children&&W.children.length&&W.children.forEach(ie=>X(ie))};return z.forEach(W=>X(W)),G},A=z=>{var K,ie,ee,de,Z,Q,J,ne,fe,le,ae;let H=0;const G=4,X=(K=f.current)==null?void 0:K.offsetWidth;((ie=d.current)==null?void 0:ie.offsetWidth)-y&&((Q=z==null?void 0:z.offsetLeft)!=null?Q:0)+((J=z==null?void 0:z.offsetWidth)!=null?J:0)<-y+X?H=Math.min(0,X-((ne=z==null?void 0:z.offsetWidth)!=null?ne:0)-((fe=z==null?void 0:z.offsetLeft)!=null?fe:0)-G):H=-(((le=z==null?void 0:z.offsetLeft)!=null?le:0)-(X-G-((ae=z==null?void 0:z.offsetWidth)!=null?ae:0))),_(H)},F=z=>{var W,K;let H=0;const G=(W=f.current)==null?void 0:W.offsetWidth,X=(K=d.current)==null?void 0:K.offsetWidth;z>0?H=Math.min(0,y+z):G=-(X-G)&&(H=Math.max(y+z,G-X)):H=0,_(H)},j=z=>{const{type:H}=z;let G=0;H==="wheel"&&(G=z.deltaY?z.deltaY*2:-(z.detail||0)*2),F(G)},L=z=>{P(closeTagByKey(z)).then(({payload:H})=>{let G={};const{tagIndex:X,tagsList:W}=H,K=W.length;z===T&&(X<=K-1?G=W[X]:G=W[K-1],b(G==null?void 0:G.fullPath))})},M=z=>{C(z),b(z)};function I(){return new Date().getTime().toString()}const U=()=>{$.findIndex(H=>H.fullPath===T)>=0&&b(T,{replace:!0,state:{key:I()}})};return jsxRuntimeExports.jsxs("div",{className:a.layout_tags,children:[jsxRuntimeExports.jsx(Button,{className:`${a.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(LeftOutlined,{}),size:"small",onClick:()=>F(200)}),jsxRuntimeExports.jsx("div",{ref:f,className:`${a.layout_tags}__main`,onWheel:j,children:jsxRuntimeExports.jsx("div",{ref:d,className:`${a.layout_tags}__main-body`,style:{left:`${y}px`},children:$.map(z=>{var H,G;return jsxRuntimeExports.jsx("span",{"data-path":z.fullPath,children:jsxRuntimeExports.jsx(TagItem,{name:o((H=z.meta)==null?void 0:H.title),active:T===z.fullPath,fixed:(G=z.meta)==null?void 0:G.affix,onClick:()=>M(z.fullPath),closeTag:()=>L(z.fullPath)},z.key)},z.fullPath)})})}),jsxRuntimeExports.jsx(Button,{className:`${a.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(RightOutlined,{}),size:"small",onClick:()=>F(-200)}),jsxRuntimeExports.jsx(Button,{className:classNames(`${a.layout_tags}__btn`,`${a.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(RedoOutlined,{}),size:"small",onClick:()=>U()}),jsxRuntimeExports.jsx(Dropdown,{menu:{items:s,onClick:c},placement:"bottomLeft",children:jsxRuntimeExports.jsx(Button,{className:classNames(`${a.layout_tags}__btn`,`${a.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(CloseOutlined,{}),size:"small"})})]})};function LayoutBreadcrumb(o){const{t:a,i18n:s}=useTranslation(),[c,f]=reactExports.useState([]),{pathname:d}=useLocation(),y=useAppSelector(_=>_.menu.menuList);return reactExports.useEffect(()=>{const S=(matchRoutes(y,d)||[]).map(b=>{const{name:$,icon:P=""}=b==null?void 0:b.route;return{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[P&&jsxRuntimeExports.jsx(SvgIcon,{name:P,style:{marginRight:8}}),jsxRuntimeExports.jsx("span",{children:a($)})]})}});f(S)},[d,s.language]),jsxRuntimeExports.jsx("div",{className:"flex-center-v",style:{padding:"0 16px"},children:jsxRuntimeExports.jsx(Breadcrumb,{items:c})})}const useStyles$5=createStyles(()=>({"compo_fold-trigger":{display:"flex",alignItems:"center",cursor:"pointer"},unfold:{svg:{transform:"scaleX(-1)",transition:"transform 0.2s"}}}));function FoldTrigger(){const{styles:o,cx:a}=useStyles$5(),s=useSettings(),{setSettings:c}=useSettingActions();function f(){c($e(se({},s),{unfold:!s.unfold}))}return jsxRuntimeExports.jsx("span",{className:a(o["compo_fold-trigger"],{[o.unfold]:!s.unfold}),onClick:f,children:jsxRuntimeExports.jsx(SvgIcon,{name:"unfold",size:20})})}const useStyles$4=createStyles(({token:o})=>({"layout-header":{flexDirection:"column",height:"auto",background:o.colorBgBase,padding:0,boxShadow:o.boxShadowTertiary}})),LayoutHeader=o=>{const{Header:a}=Layout,{styles:s}=useStyles$4(),{hasCrumbs:c,hasTabs:f}=useGlobalStore();return jsxRuntimeExports.jsxs(a,{className:classNames("flex-between-h",s["layout-header"]),children:[jsxRuntimeExports.jsxs("div",{className:"flex-between-h",style:{padding:"0 12px"},children:[jsxRuntimeExports.jsxs("div",{className:"flex-center-v",children:[jsxRuntimeExports.jsx(FoldTrigger,{}),c&&jsxRuntimeExports.jsx(LayoutBreadcrumb,{})]}),jsxRuntimeExports.jsx(LayoutFeature,{})]}),f?jsxRuntimeExports.jsx(LayoutTags,{}):null]})},useStyles$3=createStyles(({token:o})=>({layout_wrapper:{display:"flex",width:"100%",height:"100vh",overflowX:"hidden",background:o.colorBgContainer,".ant-layout-content":{height:"calc(100vh - 48px)",boxSizing:"border-box",flex:"1",padding:o.paddingMD,overflowX:"hidden"},".ant-layout-sider":{height:"calc(100vh)",borderInlineEnd:"1px solid rgba(5, 5, 5, 0.06)",marginInlineEnd:"-1px"},".ant-layout":{background:o.colorBgContainer}}})),useStyles$2=createStyles(()=>({anticon:{display:"inline-flex",alignItems:"center",verticalAlign:"middle",cursor:"pointer",svg:{display:"inline-block"}}}));function IconifyIcon(c){var f=c,{icon:o,size:a}=f,s=er(f,["icon","size"]);const{styles:d}=useStyles$2();return jsxRuntimeExports.jsx(Icon,$e(se({icon:o},s),{className:d.anticon,width:a}))}const getOpenKeys=o=>{let a="";const s=[];return o.split("/").forEach(c=>{c&&(a+=`/${c}`,s.push(a))}),s.slice(0,-1)},getItem=(o,a,s,c,f)=>({label:o,key:a,icon:s,children:c,type:f}),LayoutMenu=o=>{const{pathname:a}=useLocation(),{setMenuList:s}=o,[c,f]=reactExports.useState(!1),[d,y]=reactExports.useState([]),[_,S]=reactExports.useState([]),[b,$]=reactExports.useState([a]),{t:P,i18n:T}=useTranslation();reactExports.useEffect(()=>{$([a]),S(getOpenKeys(a))},[a]);const C=(M,I)=>M?M.startsWith("gbeata-")?jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(IconifyIcon,{icon:M.replace("gbeata-",""),size:I||16})}):jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(SvgIcon,{name:M,size:I||16})}):null,O=(M,I=[])=>(M.forEach(U=>{var z;if(!((z=U==null?void 0:U.children)!=null&&z.length))return I.push(getItem(P(U.name),U.path,C(U.icon,U.iconSize)));I.push(getItem(P(U.name),U.path,C(U.icon,U.iconSize),O(U.children)))}),I),A=()=>xt(void 0,null,function*(){f(!0);try{const M=yield getAsyncMenus();y(O(M)),s(M)}finally{f(!1)}});reactExports.useEffect(()=>{A()},[T.language]);const F=M=>{if(M.length===0||M.length===1)return S(M);const I=M[M.length-1];if(I.includes(M[0]))return S(M);S([I])},j=useNavigate(),L=({key:M})=>{j(M)};return jsxRuntimeExports.jsx("div",{className:"layout_menu",children:jsxRuntimeExports.jsx(Spin,{spinning:c,tip:"Loading...",children:jsxRuntimeExports.jsx(Menu,{style:{border:"none"},mode:"inline",triggerSubMenuAction:"click",inlineIndent:20,subMenuOpenDelay:.2,openKeys:_,selectedKeys:b,items:d,onClick:L,onOpenChange:F})})})},mapStateToProps=o=>o.menu,mapDispatchToProps={setMenuList},LayoutMenu$1=connect(mapStateToProps,mapDispatchToProps)(LayoutMenu),BasicLayout=o=>{const{state:a}=useLocation(),{unfold:s}=useSettings(),{key:c="key"}=a||{};useTitle();const{Sider:f,Content:d}=Layout,{styles:y}=useStyles$3();return jsxRuntimeExports.jsxs(Layout,{className:y.layout_wrapper,children:[jsxRuntimeExports.jsxs(f,{width:240,trigger:null,theme:"light",collapsed:s,className:"ant-layout-sider",children:[jsxRuntimeExports.jsx(AppLogo,{}),jsxRuntimeExports.jsx(LayoutMenu$1,{})]}),jsxRuntimeExports.jsxs(Layout,{children:[jsxRuntimeExports.jsx(LayoutHeader,{}),jsxRuntimeExports.jsx(d,{children:jsxRuntimeExports.jsx(ErrorBoundary,{children:jsxRuntimeExports.jsx(Outlet,{},c)})})]})]})},GuardRoute=({children:o})=>{const a=["/","/home","/login"],{pathname:s}=useLocation(),{token:c}=useUserToken();return c?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:o}):a.includes(s)?jsxRuntimeExports.jsx(Navigate,{to:"/login",replace:!0}):jsxRuntimeExports.jsx(Navigate,{to:`/login?redirect=${s}`,replace:!0})},LayoutGuard=()=>jsxRuntimeExports.jsx(GuardRoute,{children:jsxRuntimeExports.jsx(BasicLayout,{})}),CompoRoute={path:"/compo",name:"Compo",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"组件",icon:"compo",orderNo:6},children:[{path:"image-upload",name:"ImageUpload",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../image-upload-acb1eff1.js"),["assets/image-upload-acb1eff1.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-168278cd.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"图片上传",key:"imageUpload"}},{path:"drag",name:"Drag",meta:{title:"拖拽"},children:[{path:"drag-list",name:"DragList",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-list-930fb960.js"),["assets/drag-list-930fb960.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-168278cd.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"列表拖拽",key:"dragList"}},{path:"drag-resize",name:"DragResize",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-resize-ce500749.js"),["assets/drag-resize-ce500749.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-168278cd.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"组件拖拽",key:"dragResize"}}]},{path:"transfer",name:"Transfer",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-dcf004a0.js"),["assets/index-dcf004a0.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-168278cd.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"穿梭框"}},{path:"count-up",name:"CountUp",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../count-up-94605701.js"),["assets/count-up-94605701.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-646dffa4.js","assets/websiteSetting-168278cd.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"数字滚动",key:"countUp"}}]},__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:CompoRoute},Symbol.toStringTag,{value:"Module"}));var ExceptionEnum=(o=>(o[o.PAGE_NOT_ACCESS=403]="PAGE_NOT_ACCESS",o[o.PAGE_NOT_FOUND=404]="PAGE_NOT_FOUND",o[o.SERVER_ERROR=500]="SERVER_ERROR",o))(ExceptionEnum||{});const ExceptionRoute={path:"/exception",name:"ExceptionPage",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"异常页面",icon:"bug",orderNo:11},children:[{path:"page-403",name:"Page403",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"403页面",key:"page403"},loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!0})},{path:"page-404",name:"Page404",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"404页面",key:"page404"},loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!0})},{path:"page-500",name:"Page500",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"500页面",key:"page500"},loader:()=>({status:ExceptionEnum.SERVER_ERROR,withCard:!0})}]},__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:ExceptionRoute},Symbol.toStringTag,{value:"Module"})),FormRoute={path:"/form",name:"Form",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"表单",icon:"form",orderNo:3},children:[{path:"basic-form",name:"BasicForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-67537c9a.js"),["assets/index-67537c9a.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-168278cd.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"基础表单",key:"basicForm"}},{path:"search-form",name:"SearchForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-8e157b2c.js"),["assets/index-8e157b2c.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-c5e45b02.js","assets/websiteSetting-168278cd.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"查询表单",key:"searchForm"}}]},__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormRoute},Symbol.toStringTag,{value:"Module"})),HomePage=lazy$2(()=>__vitePreload(()=>import("../index-fe7bf50c.js"),["assets/index-fe7bf50c.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-6d20d62b.js","assets/Translatex-83019934.js","assets/index-646dffa4.js","assets/index-e22d6806.js","assets/index-c5e45b02.js"])),HomeRoute={path:"/home",element:jsxRuntimeExports.jsx(LayoutGuard,{}),loader:()=>null,meta:{title:"首页",icon:"home",affix:!0,orderNo:1,hideChildrenInMenu:!0},children:[{path:"",element:LazyLoad(HomePage),meta:{title:"首页",key:"home",icon:"home",orderNo:1,hideMenu:!0}}]},__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:HomeRoute},Symbol.toStringTag,{value:"Module"})),UserRoute$1={path:"/system",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:t("系统设置"),icon:"gbeata-ant-design:setting-outlined",orderNo:13,iconSize:20},children:[{path:"role",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-a2f2c8dc.js"),["assets/index-a2f2c8dc.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/api-3af9db57.js","assets/index-e22d6806.js","assets/index-c5e45b02.js"]))),meta:{title:t("角色管理"),key:"role"}},{path:"user",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-bf85aa66.js"),["assets/index-bf85aa66.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/api-3af9db57.js","assets/index-e22d6806.js","assets/index-c5e45b02.js"]))),meta:{title:t("用户管理"),key:"user"}}]},__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:UserRoute$1},Symbol.toStringTag,{value:"Module"})),UserRoute={path:"/user",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"用户管理",icon:"ic_user",orderNo:2,iconSize:20},children:[{path:"profile",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-6578acfa.js"),["assets/index-6578acfa.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/Translatex-83019934.js","assets/index-6d20d62b.js"]))),meta:{title:"个人中心",key:"profile"}},{path:"user-list",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-e62f32ec.js"),["assets/index-e62f32ec.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-6d20d62b.js","assets/Translatex-83019934.js"]))),meta:{title:"用户列表",key:"userList"}},{path:"add-user",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-8c013014.js"),["assets/index-8c013014.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/Translatex-83019934.js"]))),meta:{title:"添加用户",key:"addUser"}}]},__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:UserRoute},Symbol.toStringTag,{value:"Module"})),TOKEN_KEY="TOKEN_KEY",APP_LOCAL_CACHE_KEY="APP_LOCAL_CACHE_KEY",APP_SESSION_CACHE_KEY="APP_SESSION_CACHE_KEY";var CacheTypeEnum=(o=>(o[o.SESSION=0]="SESSION",o[o.LOCAL=1]="LOCAL",o))(CacheTypeEnum||{}),MenuTypeEnum=(o=>(o.SIDER_MENU="sider-menu",o.HEADER_MENU="header-menu",o.HYBRID_MENU="hybrid-menu",o))(MenuTypeEnum||{}),MenuModeEnum=(o=>(o.VERTICAL="vertical",o.HORIZONTAL="horizontal",o.INLINE="inline",o))(MenuModeEnum||{}),MenuFoldBtnEnum=(o=>(o.NONE="none",o.HEADER="header",o.SIDER="sider",o))(MenuFoldBtnEnum||{});const appSetting={themeColor:"#1890ff",permissionCacheType:CacheTypeEnum.LOCAL,headerSetting:{showBreadCrumb:!0,showTags:!0,showSearch:!0,showFullScreen:!0,showLocale:!1,showDoc:!1,showGithub:!0},menuSetting:{menuType:MenuTypeEnum.SIDER_MENU,menuMode:MenuModeEnum.INLINE,menuTheme:ThemeEnum.DARK,menuSplit:!1,menuCanDrag:!1,menuFold:!1,menuFoldBtn:MenuFoldBtnEnum.HEADER,menuFoldShowTitle:!1,menuWidth:210,menuFixed:!1,menuHidden:!1},transitionSetting:{openNProgress:!1,openPageLoading:!1,openTransition:!0,basicTransition:PageTransitionEnum.FADE},permissionMode:PermissionModeEnum.MAPPING,tagsCached:!1,openKeepAlive:!0,lockScreenTime:0,showFooter:!1,colorWeak:!1,grayMode:!1};function isDevMode(){return!1}const DEFAULT_CACHE_TIME=60*60*24*7,cacheCipher={key:"_11111000001111@",iv:"@11111000001111_"},enableStorageEncryption=!isDevMode();var aes={exports:{}},core={exports:{}},hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(o,a){(function(s,c){o.exports=c()})(commonjsGlobal,function(){var s=s||function(c,f){var d;if(typeof window!="undefined"&&window.crypto&&(d=window.crypto),typeof self!="undefined"&&self.crypto&&(d=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(d=globalThis.crypto),!d&&typeof window!="undefined"&&window.msCrypto&&(d=window.msCrypto),!d&&typeof commonjsGlobal!="undefined"&&commonjsGlobal.crypto&&(d=commonjsGlobal.crypto),!d&&typeof commonjsRequire=="function")try{d=require$$0}catch(L){}var y=function(){if(d){if(typeof d.getRandomValues=="function")try{return d.getRandomValues(new Uint32Array(1))[0]}catch(L){}if(typeof d.randomBytes=="function")try{return d.randomBytes(4).readInt32LE()}catch(L){}}throw new Error("Native crypto module could not be used to get secure random number.")},_=Object.create||function(){function L(){}return function(M){var I;return L.prototype=M,I=new L,L.prototype=null,I}}(),S={},b=S.lib={},$=b.Base=function(){return{extend:function(L){var M=_(this);return L&&M.mixIn(L),(!M.hasOwnProperty("init")||this.init===M.init)&&(M.init=function(){M.$super.init.apply(this,arguments)}),M.init.prototype=M,M.$super=this,M},create:function(){var L=this.extend();return L.init.apply(L,arguments),L},init:function(){},mixIn:function(L){for(var M in L)L.hasOwnProperty(M)&&(this[M]=L[M]);L.hasOwnProperty("toString")&&(this.toString=L.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),P=b.WordArray=$.extend({init:function(L,M){L=this.words=L||[],M!=f?this.sigBytes=M:this.sigBytes=L.length*4},toString:function(L){return(L||C).stringify(this)},concat:function(L){var M=this.words,I=L.words,U=this.sigBytes,z=L.sigBytes;if(this.clamp(),U%4)for(var H=0;H>>2]>>>24-H%4*8&255;M[U+H>>>2]|=G<<24-(U+H)%4*8}else for(var X=0;X>>2]=I[X>>>2];return this.sigBytes+=z,this},clamp:function(){var L=this.words,M=this.sigBytes;L[M>>>2]&=4294967295<<32-M%4*8,L.length=c.ceil(M/4)},clone:function(){var L=$.clone.call(this);return L.words=this.words.slice(0),L},random:function(L){for(var M=[],I=0;I>>2]>>>24-z%4*8&255;U.push((H>>>4).toString(16)),U.push((H&15).toString(16))}return U.join("")},parse:function(L){for(var M=L.length,I=[],U=0;U>>3]|=parseInt(L.substr(U,2),16)<<24-U%8*4;return new P.init(I,M/2)}},O=T.Latin1={stringify:function(L){for(var M=L.words,I=L.sigBytes,U=[],z=0;z>>2]>>>24-z%4*8&255;U.push(String.fromCharCode(H))}return U.join("")},parse:function(L){for(var M=L.length,I=[],U=0;U>>2]|=(L.charCodeAt(U)&255)<<24-U%4*8;return new P.init(I,M)}},A=T.Utf8={stringify:function(L){try{return decodeURIComponent(escape(O.stringify(L)))}catch(M){throw new Error("Malformed UTF-8 data")}},parse:function(L){return O.parse(unescape(encodeURIComponent(L)))}},F=b.BufferedBlockAlgorithm=$.extend({reset:function(){this._data=new P.init,this._nDataBytes=0},_append:function(L){typeof L=="string"&&(L=A.parse(L)),this._data.concat(L),this._nDataBytes+=L.sigBytes},_process:function(L){var M,I=this._data,U=I.words,z=I.sigBytes,H=this.blockSize,G=H*4,X=z/G;L?X=c.ceil(X):X=c.max((X|0)-this._minBufferSize,0);var W=X*H,K=c.min(W*4,z);if(W){for(var ie=0;ie>>2]>>>24-C%4*8&255,A=b[C+1>>>2]>>>24-(C+1)%4*8&255,F=b[C+2>>>2]>>>24-(C+2)%4*8&255,j=O<<16|A<<8|F,L=0;L<4&&C+L*.75<$;L++)T.push(P.charAt(j>>>6*(3-L)&63));var M=P.charAt(64);if(M)for(;T.length%4;)T.push(M);return T.join("")},parse:function(S){var b=S.length,$=this._map,P=this._reverseMap;if(!P){P=this._reverseMap=[];for(var T=0;T<$.length;T++)P[$.charCodeAt(T)]=T}var C=$.charAt(64);if(C){var O=S.indexOf(C);O!==-1&&(b=O)}return _(S,b,P)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function _(S,b,$){for(var P=[],T=0,C=0;C>>6-C%4*2,F=O|A;P[T>>>2]|=F<<24-T%4*8,T++}return d.create(P,T)}}(),s.enc.Base64})}(encBase64)),encBase64.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return function(c){var f=s,d=f.lib,y=d.WordArray,_=d.Hasher,S=f.algo,b=[];(function(){for(var A=0;A<64;A++)b[A]=c.abs(c.sin(A+1))*4294967296|0})();var $=S.MD5=_.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(A,F){for(var j=0;j<16;j++){var L=F+j,M=A[L];A[L]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}var I=this._hash.words,U=A[F+0],z=A[F+1],H=A[F+2],G=A[F+3],X=A[F+4],W=A[F+5],K=A[F+6],ie=A[F+7],ee=A[F+8],de=A[F+9],Z=A[F+10],Q=A[F+11],J=A[F+12],ne=A[F+13],fe=A[F+14],le=A[F+15],ae=I[0],ce=I[1],ge=I[2],pe=I[3];ae=P(ae,ce,ge,pe,U,7,b[0]),pe=P(pe,ae,ce,ge,z,12,b[1]),ge=P(ge,pe,ae,ce,H,17,b[2]),ce=P(ce,ge,pe,ae,G,22,b[3]),ae=P(ae,ce,ge,pe,X,7,b[4]),pe=P(pe,ae,ce,ge,W,12,b[5]),ge=P(ge,pe,ae,ce,K,17,b[6]),ce=P(ce,ge,pe,ae,ie,22,b[7]),ae=P(ae,ce,ge,pe,ee,7,b[8]),pe=P(pe,ae,ce,ge,de,12,b[9]),ge=P(ge,pe,ae,ce,Z,17,b[10]),ce=P(ce,ge,pe,ae,Q,22,b[11]),ae=P(ae,ce,ge,pe,J,7,b[12]),pe=P(pe,ae,ce,ge,ne,12,b[13]),ge=P(ge,pe,ae,ce,fe,17,b[14]),ce=P(ce,ge,pe,ae,le,22,b[15]),ae=T(ae,ce,ge,pe,z,5,b[16]),pe=T(pe,ae,ce,ge,K,9,b[17]),ge=T(ge,pe,ae,ce,Q,14,b[18]),ce=T(ce,ge,pe,ae,U,20,b[19]),ae=T(ae,ce,ge,pe,W,5,b[20]),pe=T(pe,ae,ce,ge,Z,9,b[21]),ge=T(ge,pe,ae,ce,le,14,b[22]),ce=T(ce,ge,pe,ae,X,20,b[23]),ae=T(ae,ce,ge,pe,de,5,b[24]),pe=T(pe,ae,ce,ge,fe,9,b[25]),ge=T(ge,pe,ae,ce,G,14,b[26]),ce=T(ce,ge,pe,ae,ee,20,b[27]),ae=T(ae,ce,ge,pe,ne,5,b[28]),pe=T(pe,ae,ce,ge,H,9,b[29]),ge=T(ge,pe,ae,ce,ie,14,b[30]),ce=T(ce,ge,pe,ae,J,20,b[31]),ae=C(ae,ce,ge,pe,W,4,b[32]),pe=C(pe,ae,ce,ge,ee,11,b[33]),ge=C(ge,pe,ae,ce,Q,16,b[34]),ce=C(ce,ge,pe,ae,fe,23,b[35]),ae=C(ae,ce,ge,pe,z,4,b[36]),pe=C(pe,ae,ce,ge,X,11,b[37]),ge=C(ge,pe,ae,ce,ie,16,b[38]),ce=C(ce,ge,pe,ae,Z,23,b[39]),ae=C(ae,ce,ge,pe,ne,4,b[40]),pe=C(pe,ae,ce,ge,U,11,b[41]),ge=C(ge,pe,ae,ce,G,16,b[42]),ce=C(ce,ge,pe,ae,K,23,b[43]),ae=C(ae,ce,ge,pe,de,4,b[44]),pe=C(pe,ae,ce,ge,J,11,b[45]),ge=C(ge,pe,ae,ce,le,16,b[46]),ce=C(ce,ge,pe,ae,H,23,b[47]),ae=O(ae,ce,ge,pe,U,6,b[48]),pe=O(pe,ae,ce,ge,ie,10,b[49]),ge=O(ge,pe,ae,ce,fe,15,b[50]),ce=O(ce,ge,pe,ae,W,21,b[51]),ae=O(ae,ce,ge,pe,J,6,b[52]),pe=O(pe,ae,ce,ge,G,10,b[53]),ge=O(ge,pe,ae,ce,Z,15,b[54]),ce=O(ce,ge,pe,ae,z,21,b[55]),ae=O(ae,ce,ge,pe,ee,6,b[56]),pe=O(pe,ae,ce,ge,le,10,b[57]),ge=O(ge,pe,ae,ce,K,15,b[58]),ce=O(ce,ge,pe,ae,ne,21,b[59]),ae=O(ae,ce,ge,pe,X,6,b[60]),pe=O(pe,ae,ce,ge,Q,10,b[61]),ge=O(ge,pe,ae,ce,H,15,b[62]),ce=O(ce,ge,pe,ae,de,21,b[63]),I[0]=I[0]+ae|0,I[1]=I[1]+ce|0,I[2]=I[2]+ge|0,I[3]=I[3]+pe|0},_doFinalize:function(){var A=this._data,F=A.words,j=this._nDataBytes*8,L=A.sigBytes*8;F[L>>>5]|=128<<24-L%32;var M=c.floor(j/4294967296),I=j;F[(L+64>>>9<<4)+15]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,F[(L+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,A.sigBytes=(F.length+1)*4,this._process();for(var U=this._hash,z=U.words,H=0;H<4;H++){var G=z[H];z[H]=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360}return U},clone:function(){var A=_.clone.call(this);return A._hash=this._hash.clone(),A}});function P(A,F,j,L,M,I,U){var z=A+(F&j|~F&L)+M+U;return(z<>>32-I)+F}function T(A,F,j,L,M,I,U){var z=A+(F&L|j&~L)+M+U;return(z<>>32-I)+F}function C(A,F,j,L,M,I,U){var z=A+(F^j^L)+M+U;return(z<>>32-I)+F}function O(A,F,j,L,M,I,U){var z=A+(j^(F|~L))+M+U;return(z<>>32-I)+F}f.MD5=_._createHelper($),f.HmacMD5=_._createHmacHelper($)}(Math),s.MD5})}(md5)),md5.exports}var evpkdf={exports:{}},sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return function(){var c=s,f=c.lib,d=f.WordArray,y=f.Hasher,_=c.algo,S=[],b=_.SHA1=y.extend({_doReset:function(){this._hash=new d.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function($,P){for(var T=this._hash.words,C=T[0],O=T[1],A=T[2],F=T[3],j=T[4],L=0;L<80;L++){if(L<16)S[L]=$[P+L]|0;else{var M=S[L-3]^S[L-8]^S[L-14]^S[L-16];S[L]=M<<1|M>>>31}var I=(C<<5|C>>>27)+j+S[L];L<20?I+=(O&A|~O&F)+1518500249:L<40?I+=(O^A^F)+1859775393:L<60?I+=(O&A|O&F|A&F)-1894007588:I+=(O^A^F)-899497514,j=F,F=A,A=O<<30|O>>>2,O=C,C=I}T[0]=T[0]+C|0,T[1]=T[1]+O|0,T[2]=T[2]+A|0,T[3]=T[3]+F|0,T[4]=T[4]+j|0},_doFinalize:function(){var $=this._data,P=$.words,T=this._nDataBytes*8,C=$.sigBytes*8;return P[C>>>5]|=128<<24-C%32,P[(C+64>>>9<<4)+14]=Math.floor(T/4294967296),P[(C+64>>>9<<4)+15]=T,$.sigBytes=P.length*4,this._process(),this._hash},clone:function(){var $=y.clone.call(this);return $._hash=this._hash.clone(),$}});c.SHA1=y._createHelper(b),c.HmacSHA1=y._createHmacHelper(b)}(),s.SHA1})}(sha1)),sha1.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){(function(){var c=s,f=c.lib,d=f.Base,y=c.enc,_=y.Utf8,S=c.algo;S.HMAC=d.extend({init:function(b,$){b=this._hasher=new b.init,typeof $=="string"&&($=_.parse($));var P=b.blockSize,T=P*4;$.sigBytes>T&&($=b.finalize($)),$.clamp();for(var C=this._oKey=$.clone(),O=this._iKey=$.clone(),A=C.words,F=O.words,j=0;j>>2]&255;W.sigBytes-=K}};d.BlockCipher=C.extend({cfg:C.cfg.extend({mode:F,padding:L}),reset:function(){var W;C.reset.call(this);var K=this.cfg,ie=K.iv,ee=K.mode;this._xformMode==this._ENC_XFORM_MODE?W=ee.createEncryptor:(W=ee.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==W?this._mode.init(this,ie&&ie.words):(this._mode=W.call(ee,this,ie&&ie.words),this._mode.__creator=W)},_doProcessBlock:function(W,K){this._mode.processBlock(W,K)},_doFinalize:function(){var W,K=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(K.pad(this._data,this.blockSize),W=this._process(!0)):(W=this._process(!0),K.unpad(W)),W},blockSize:128/32});var M=d.CipherParams=y.extend({init:function(W){this.mixIn(W)},toString:function(W){return(W||this.formatter).stringify(this)}}),I=f.format={},U=I.OpenSSL={stringify:function(W){var K,ie=W.ciphertext,ee=W.salt;return ee?K=_.create([1398893684,1701076831]).concat(ee).concat(ie):K=ie,K.toString($)},parse:function(W){var K,ie=$.parse(W),ee=ie.words;return ee[0]==1398893684&&ee[1]==1701076831&&(K=_.create(ee.slice(2,4)),ee.splice(0,4),ie.sigBytes-=16),M.create({ciphertext:ie,salt:K})}},z=d.SerializableCipher=y.extend({cfg:y.extend({format:U}),encrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee);var de=W.createEncryptor(ie,ee),Z=de.finalize(K),Q=de.cfg;return M.create({ciphertext:Z,key:ie,iv:Q.iv,algorithm:W,mode:Q.mode,padding:Q.padding,blockSize:W.blockSize,formatter:ee.format})},decrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee),K=this._parse(K,ee.format);var de=W.createDecryptor(ie,ee).finalize(K.ciphertext);return de},_parse:function(W,K){return typeof W=="string"?K.parse(W,this):W}}),H=f.kdf={},G=H.OpenSSL={execute:function(W,K,ie,ee,de){if(ee||(ee=_.random(64/8)),de)var Z=T.create({keySize:K+ie,hasher:de}).compute(W,ee);else var Z=T.create({keySize:K+ie}).compute(W,ee);var Q=_.create(Z.words.slice(K),ie*4);return Z.sigBytes=K*4,M.create({key:Z,iv:Q,salt:ee})}},X=d.PasswordBasedCipher=z.extend({cfg:z.cfg.extend({kdf:G}),encrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee);var de=ee.kdf.execute(ie,W.keySize,W.ivSize,ee.salt,ee.hasher);ee.iv=de.iv;var Z=z.encrypt.call(this,W,K,de.key,ee);return Z.mixIn(de),Z},decrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee),K=this._parse(K,ee.format);var de=ee.kdf.execute(ie,W.keySize,W.ivSize,K.salt,ee.hasher);ee.iv=de.iv;var Z=z.decrypt.call(this,W,K,de.key,ee);return Z}})}()})}(cipherCore)),cipherCore.exports}(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(s){return function(){var c=s,f=c.lib,d=f.BlockCipher,y=c.algo,_=[],S=[],b=[],$=[],P=[],T=[],C=[],O=[],A=[],F=[];(function(){for(var M=[],I=0;I<256;I++)I<128?M[I]=I<<1:M[I]=I<<1^283;for(var U=0,z=0,I=0;I<256;I++){var H=z^z<<1^z<<2^z<<3^z<<4;H=H>>>8^H&255^99,_[U]=H,S[H]=U;var G=M[U],X=M[G],W=M[X],K=M[H]*257^H*16843008;b[U]=K<<24|K>>>8,$[U]=K<<16|K>>>16,P[U]=K<<8|K>>>24,T[U]=K;var K=W*16843009^X*65537^G*257^U*16843008;C[H]=K<<24|K>>>8,O[H]=K<<16|K>>>16,A[H]=K<<8|K>>>24,F[H]=K,U?(U=G^M[M[M[W^G]]],z^=M[M[z]]):U=z=1}})();var j=[0,1,2,4,8,16,32,64,128,27,54],L=y.AES=d.extend({_doReset:function(){var M;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var I=this._keyPriorReset=this._key,U=I.words,z=I.sigBytes/4,H=this._nRounds=z+6,G=(H+1)*4,X=this._keySchedule=[],W=0;W6&&W%z==4&&(M=_[M>>>24]<<24|_[M>>>16&255]<<16|_[M>>>8&255]<<8|_[M&255]):(M=M<<8|M>>>24,M=_[M>>>24]<<24|_[M>>>16&255]<<16|_[M>>>8&255]<<8|_[M&255],M^=j[W/z|0]<<24),X[W]=X[W-z]^M);for(var K=this._invKeySchedule=[],ie=0;ie>>24]]^O[_[M>>>16&255]]^A[_[M>>>8&255]]^F[_[M&255]]}}},encryptBlock:function(M,I){this._doCryptBlock(M,I,this._keySchedule,b,$,P,T,_)},decryptBlock:function(M,I){var U=M[I+1];M[I+1]=M[I+3],M[I+3]=U,this._doCryptBlock(M,I,this._invKeySchedule,C,O,A,F,S);var U=M[I+1];M[I+1]=M[I+3],M[I+3]=U},_doCryptBlock:function(M,I,U,z,H,G,X,W){for(var K=this._nRounds,ie=M[I]^U[0],ee=M[I+1]^U[1],de=M[I+2]^U[2],Z=M[I+3]^U[3],Q=4,J=1;J>>24]^H[ee>>>16&255]^G[de>>>8&255]^X[Z&255]^U[Q++],fe=z[ee>>>24]^H[de>>>16&255]^G[Z>>>8&255]^X[ie&255]^U[Q++],le=z[de>>>24]^H[Z>>>16&255]^G[ie>>>8&255]^X[ee&255]^U[Q++],ae=z[Z>>>24]^H[ie>>>16&255]^G[ee>>>8&255]^X[de&255]^U[Q++];ie=ne,ee=fe,de=le,Z=ae}var ne=(W[ie>>>24]<<24|W[ee>>>16&255]<<16|W[de>>>8&255]<<8|W[Z&255])^U[Q++],fe=(W[ee>>>24]<<24|W[de>>>16&255]<<16|W[Z>>>8&255]<<8|W[ie&255])^U[Q++],le=(W[de>>>24]<<24|W[Z>>>16&255]<<16|W[ie>>>8&255]<<8|W[ee&255])^U[Q++],ae=(W[Z>>>24]<<24|W[ie>>>16&255]<<16|W[ee>>>8&255]<<8|W[de&255])^U[Q++];M[I]=ne,M[I+1]=fe,M[I+2]=le,M[I+3]=ae},keySize:256/32});c.AES=d._createHelper(L)}(),s.AES})})(aes);var aesExports=aes.exports,encUtf8={exports:{}};(function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return s.enc.Utf8})})(encUtf8);var encUtf8Exports=encUtf8.exports;const UTF8=getDefaultExportFromCjs(encUtf8Exports);var modeEcb={exports:{}};(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.mode.ECB=function(){var c=s.lib.BlockCipherMode.extend();return c.Encryptor=c.extend({processBlock:function(f,d){this._cipher.encryptBlock(f,d)}}),c.Decryptor=c.extend({processBlock:function(f,d){this._cipher.decryptBlock(f,d)}}),c}(),s.mode.ECB})})(modeEcb);var modeEcbExports=modeEcb.exports;const ECB=getDefaultExportFromCjs(modeEcbExports);var padPkcs7={exports:{}};(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.pad.Pkcs7})})(padPkcs7);var padPkcs7Exports=padPkcs7.exports;const PKCS7=getDefaultExportFromCjs(padPkcs7Exports);class AesEncrypt{constructor(a={}){tr(this,"key");tr(this,"iv");const{key:s,iv:c}=a;s&&(this.key=encUtf8Exports.parse(s)),c&&(this.iv=encUtf8Exports.parse(c))}get getOptions(){return{mode:ECB,padding:PKCS7,iv:this.iv}}encryptByAES(a){return aesExports.encrypt(a,this.key,this.getOptions).toString()}decryptByAES(a){return aesExports.decrypt(a,this.key,this.getOptions).toString(UTF8)}}const createStorage$1=({prefixKey:o="",storage:a=sessionStorage,hasEncrypt:s=!0,key:c=cacheCipher.key,iv:f=cacheCipher.iv,timeout:d=null}={})=>{if(s&&[c.length,f.length].some(S=>S!==16))throw new Error("When hasEncrypt is true, the key or iv must be 16 bits!");const y=new AesEncrypt({key:c,iv:f}),_=class{constructor(){tr(this,"storage");tr(this,"prefixKey");tr(this,"encrypt");tr(this,"hasEncrypt");this.storage=a,this.prefixKey=o,this.encrypt=y,this.hasEncrypt=s}getKey(b){return`${this.prefixKey}${b}`.toUpperCase()}set(b,$,P=d){const T=JSON.stringify({value:$,time:Date.now(),expire:isNullOrUnDef(P)?null:new Date().getTime()+P*1e3}),C=this.hasEncrypt?this.encrypt.encryptByAES(T):T;this.storage.setItem(this.getKey(b),C)}get(b,$=null){const P=this.storage.getItem(this.getKey(b));if(!P)return $;try{const T=this.hasEncrypt?this.encrypt.decryptByAES(P):P,C=JSON.parse(T),{value:O,expire:A}=C;if(isNullOrUnDef(A)||A>=new Date().getTime())return O;this.remove(b)}catch(T){return $}}remove(b){this.storage.removeItem(this.getKey(b))}clear(){this.storage.clear()}};return new _},createOptions=(o,a={})=>se({hasEncrypt:enableStorageEncryption,storage:o,prefixKey:"react-admin-design__"},a);createStorage$1(createOptions(sessionStorage));const createStorage=(o=sessionStorage,a={})=>createStorage$1(createOptions(o,a)),createSessionStorage=(o={})=>createStorage(sessionStorage,$e(se({},o),{timeout:DEFAULT_CACHE_TIME})),createLocalStorage=(o={})=>createStorage(localStorage,$e(se({},o),{timeout:DEFAULT_CACHE_TIME}));class Memory{constructor(a=0){tr(this,"cache",{});tr(this,"alive");this.alive=a*1e3}get getCache(){return this.cache}get(a){return this.cache[a]}set(a,s,c){let f=this.get(a);if((!c||c<=0)&&(c=this.alive),f?(f.timeoutId&&(clearTimeout(f.timeoutId),f.timeoutId=void 0),f.value=s):(f={value:s,alive:c},this.cache[a]=f),!c)return s;const d=new Date().getTime();return f.time=d+this.alive,f.timeoutId=setTimeout(()=>{this.remove(a)},c>d?c-d:c),s}remove(a){const s=this.get(a);if(Reflect.deleteProperty(this.cache,a),s)return clearTimeout(s.timeoutId),s.value}resetCache(a){Object.keys(a).forEach(s=>{const c=s,f=a[c];if(f&&f.time){const d=new Date().getTime(),y=f.time;y>d&&this.set(c,f.value,y)}})}clear(){Object.keys(this.cache).forEach(a=>{const s=this.cache[a];s.timeoutId&&clearTimeout(s.timeoutId)}),this.cache={}}}const ls=createLocalStorage(),ss=createSessionStorage(),localMemory=new Memory(DEFAULT_CACHE_TIME),sessionMemory=new Memory(DEFAULT_CACHE_TIME);function initPersistentMemory(){const o=ls.get(APP_LOCAL_CACHE_KEY),a=ss.get(APP_SESSION_CACHE_KEY);o&&localMemory.resetCache(o),a&&sessionMemory.resetCache(a)}class Persistent{static getLocal(a){var s;return(s=localMemory.get(a))==null?void 0:s.value}static setLocal(a,s,c=!1){localMemory.set(a,s),c&&ls.set(APP_LOCAL_CACHE_KEY,localMemory.getCache)}static removeLocal(a,s=!1){localMemory.remove(a),s&&ls.set(APP_LOCAL_CACHE_KEY,localMemory.getCache)}static clearLocal(a=!1){localMemory.clear(),a&&ls.clear()}static getSession(a){var s;return(s=sessionMemory.get(a))==null?void 0:s.value}static setSession(a,s,c=!1){sessionMemory.set(a,s),c&&ss.set(APP_SESSION_CACHE_KEY,sessionMemory.getCache)}static removeSession(a,s=!1){sessionMemory.remove(a),s&&ss.set(APP_SESSION_CACHE_KEY,sessionMemory.getCache)}static clearSession(a=!1){sessionMemory.clear(),a&&ss.clear()}static clearAll(a=!1){sessionMemory.clear(),localMemory.clear(),a&&(ls.clear(),ss.clear())}}function storageChange(o){const{key:a,newValue:s,oldValue:c}=o;if(!a){Persistent.clearAll();return}s&&c&&(APP_LOCAL_CACHE_KEY===a&&Persistent.clearLocal(),APP_SESSION_CACHE_KEY===a&&Persistent.clearSession())}window.addEventListener("storage",storageChange);initPersistentMemory();const{permissionCacheType}=appSetting,isLocal=permissionCacheType===CacheTypeEnum.LOCAL;function getAuthCache(o){return(isLocal?Persistent.getLocal:Persistent.getSession)(o)}const subTitleMap=new Map([[403,t("对不起,您没有权限访问此页面。")],[404,t("对不起,您访问的页面不存在。")],[500,t("对不起,服务器发生错误。")]]),PageException=()=>{const o=useNavigate(),{status:a,withCard:s}=useLoaderData(),c=()=>{o("/home")},f=({children:d})=>s?jsxRuntimeExports.jsx(Card,{bordered:!1,children:d}):jsxRuntimeExports.jsx("div",{className:"flex-center",style:{height:"100vh"},children:d});return jsxRuntimeExports.jsx(f,{children:jsxRuntimeExports.jsx(Result,{title:a,icon:jsxRuntimeExports.jsx(SvgIcon,{size:380,name:a}),subTitle:subTitleMap.get(a),extra:jsxRuntimeExports.jsx(Button,{type:"primary",onClick:c,children:t("返回首页")})})})},index=Object.freeze(Object.defineProperty({__proto__:null,default:PageException},Symbol.toStringTag,{value:"Module"})),illustrationDashboard="/react-antd-admin-pnpm/assets/illustration_dashboard-e36a7900.png",overlay="/react-antd-admin-pnpm/assets/overlay_2-613a921a.jpg",useStyles$1=createStyles(({token:o})=>({"login-container":{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center",height:"100vh"},"login-img":{maxWidth:"560px",height:"auto"},"login-form":{padding:`${o.paddingLG*7}px ${o.paddingLG*5}px`,".title":{margin:0},".login-info":{margin:`${o.marginLG}px 0`},".login-btn":{backgroundColor:o.colorDefault}},"login-left":{gap:"80px",flexGrow:1,height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",background:`linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)) center center / cover no-repeat, url(${overlay})`,".logo":{width:"100%",padding:o.paddingSM,position:"absolute",top:0,left:0,svg:{color:o.colorPrimary}}}})),{Title,Text}=Typography,LoginPage=()=>{const[o]=Form.useForm(),a=reactExports.useRef(null),[s,c]=reactExports.useState(!1),f=useSignIn(),d=useNavigate(),[y]=useSearchParams(),{styles:_}=useStyles$1(),S=b=>xt(void 0,null,function*(){c(!0);try{(yield f({username:b.username,password:b.password}))&&d(y.get("redirect")||"/")}catch($){message.error($.message)}finally{c(!1)}});return jsxRuntimeExports.jsxs("div",{className:_["login-container"],children:[jsxRuntimeExports.jsxs("div",{className:_["login-left"],children:[jsxRuntimeExports.jsx(Title,{className:"logo",level:3,children:jsxRuntimeExports.jsx(SvgIcon,{name:"logo",size:30})}),jsxRuntimeExports.jsx(Title,{level:2,children:t("Hi, 欢迎回来!")}),jsxRuntimeExports.jsx("img",{src:illustrationDashboard,alt:"",className:_["login-img"]})]}),jsxRuntimeExports.jsxs("div",{className:_["login-form"],children:[jsxRuntimeExports.jsxs("div",{className:"login-info",children:[jsxRuntimeExports.jsx(Title,{className:"title",level:3,children:t("登录 Gbeata Admin")}),jsxRuntimeExports.jsxs(Text,{type:"secondary",children:[" ",t("新用户?"),jsxRuntimeExports.jsx(Button,{type:"link",style:{padding:0},color:"primary",children:t("立即注册")})]}),jsxRuntimeExports.jsx(Alert,{message:t("登录信息: 用户名:admin 密码:123456"),type:"info",showIcon:!0})]}),jsxRuntimeExports.jsxs(Form,{ref:a,form:o,initialValues:{username:"admin",password:"123456",remember:!0},className:"login-box-form",onFinish:S,children:[jsxRuntimeExports.jsx(Form.Item,{name:"username",rules:[{required:!0,message:t("请输入账号")}],children:jsxRuntimeExports.jsx(Input,{placeholder:t("请输入账号"),size:"large",prefix:jsxRuntimeExports.jsx(UserOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsx(Form.Item,{name:"password",rules:[{required:!0,message:t("请输入密码")}],children:jsxRuntimeExports.jsx(Input,{type:"password",placeholder:t("请输入密码"),size:"large",prefix:jsxRuntimeExports.jsx(LockOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsxs(Form.Item,{children:[jsxRuntimeExports.jsx(Form.Item,{name:"remember",className:classNames("fl","no-margin"),valuePropName:"checked",children:jsxRuntimeExports.jsx(Checkbox,{children:t("记住我")})}),jsxRuntimeExports.jsx(Form.Item,{className:classNames("fr","no-margin"),children:jsxRuntimeExports.jsx("a",{href:"",children:t("忘记密码?")})})]}),jsxRuntimeExports.jsx(Form.Item,{children:jsxRuntimeExports.jsx(Button,{type:"primary",block:!0,htmlType:"submit",size:"large",className:"login-btn",loading:s,children:t("登 录")})})]})]})]})},metaRoutes=Object.assign({"./routes/compo.tsx":__vite_glob_0_0$1,"./routes/exception.tsx":__vite_glob_0_1$1,"./routes/form.tsx":__vite_glob_0_2$1,"./routes/home.tsx":__vite_glob_0_3,"./routes/management.tsx":__vite_glob_0_4,"./routes/user.tsx":__vite_glob_0_5}),routeList=[];Object.keys(metaRoutes).forEach(o=>{const a=metaRoutes[o].default||{},s=Array.isArray(a)?[...a]:[a];genFullPath(s),routeList.push(...s)});const rootRoutes=[{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/home"})},{path:"/login",element:jsxRuntimeExports.jsx(LoginPage,{}),meta:{title:t("登录页"),key:"login"},loader:()=>getAuthCache(TOKEN_KEY)?redirect("/"):null},...routeList,{path:"*",element:jsxRuntimeExports.jsx(Navigate,{to:"/404"})},{path:"/403",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!1})},{path:"/404",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!1})}],router=createHashRouter(rootRoutes),CustomGlobal=createGlobalStyle` +`):" "+renderReason(d[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return c},adapters:knownAdapters};function throwIfCancellationRequested(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new CanceledError(null,o)}function dispatchRequest(o){return throwIfCancellationRequested(o),o.headers=AxiosHeaders$1.from(o.headers),o.data=transformData.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(o.adapter||defaults$1.adapter)(o).then(function(c){return throwIfCancellationRequested(o),c.data=transformData.call(o,o.transformResponse,c),c.headers=AxiosHeaders$1.from(c.headers),c},function(c){return isCancel(c)||(throwIfCancellationRequested(o),c&&c.response&&(c.response.data=transformData.call(o,o.transformResponse,c.response),c.response.headers=AxiosHeaders$1.from(c.response.headers))),Promise.reject(c)})}const headersToObject=o=>o instanceof AxiosHeaders$1?o.toJSON():o;function mergeConfig(o,a){a=a||{};const s={};function c(b,$,P){return utils$1.isPlainObject(b)&&utils$1.isPlainObject($)?utils$1.merge.call({caseless:P},b,$):utils$1.isPlainObject($)?utils$1.merge({},$):utils$1.isArray($)?$.slice():$}function f(b,$,P){if(utils$1.isUndefined($)){if(!utils$1.isUndefined(b))return c(void 0,b,P)}else return c(b,$,P)}function d(b,$){if(!utils$1.isUndefined($))return c(void 0,$)}function y(b,$){if(utils$1.isUndefined($)){if(!utils$1.isUndefined(b))return c(void 0,b)}else return c(void 0,$)}function _(b,$,P){if(P in a)return c(b,$);if(P in o)return c(void 0,b)}const S={url:d,method:d,data:d,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:_,headers:(b,$)=>f(headersToObject(b),headersToObject($),!0)};return utils$1.forEach(Object.keys(Object.assign({},o,a)),function($){const P=S[$]||f,T=P(o[$],a[$],$);utils$1.isUndefined(T)&&P!==_||(s[$]=T)}),s}const VERSION="1.6.5",validators$1={};["object","boolean","number","function","string","symbol"].forEach((o,a)=>{validators$1[o]=function(c){return typeof c===o||"a"+(a<1?"n ":" ")+o}});const deprecatedWarnings={};validators$1.transitional=function(a,s,c){function f(d,y){return"[Axios v"+VERSION+"] Transitional option '"+d+"'"+y+(c?". "+c:"")}return(d,y,_)=>{if(a===!1)throw new AxiosError(f(y," has been removed"+(s?" in "+s:"")),AxiosError.ERR_DEPRECATED);return s&&!deprecatedWarnings[y]&&(deprecatedWarnings[y]=!0),a?a(d,y,_):!0}};function assertOptions(o,a,s){if(typeof o!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const c=Object.keys(o);let f=c.length;for(;f-- >0;){const d=c[f],y=a[d];if(y){const _=o[d],S=_===void 0||y(_,d,o);if(S!==!0)throw new AxiosError("option "+d+" must be "+S,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new AxiosError("Unknown option "+d,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(a){this.defaults=a,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(a,s){typeof a=="string"?(s=s||{},s.url=a):s=a||{},s=mergeConfig(this.defaults,s);const{transitional:c,paramsSerializer:f,headers:d}=s;c!==void 0&&validator.assertOptions(c,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),f!=null&&(utils$1.isFunction(f)?s.paramsSerializer={serialize:f}:validator.assertOptions(f,{encode:validators.function,serialize:validators.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let y=d&&utils$1.merge(d.common,d[s.method]);d&&utils$1.forEach(["delete","get","head","post","put","patch","common"],O=>{delete d[O]}),s.headers=AxiosHeaders$1.concat(y,d);const _=[];let S=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(s)===!1||(S=S&&A.synchronous,_.unshift(A.fulfilled,A.rejected))});const b=[];this.interceptors.response.forEach(function(A){b.push(A.fulfilled,A.rejected)});let $,P=0,T;if(!S){const O=[dispatchRequest.bind(this),void 0];for(O.unshift.apply(O,_),O.push.apply(O,b),T=O.length,$=Promise.resolve(s);P{if(!c._listeners)return;let d=c._listeners.length;for(;d-- >0;)c._listeners[d](f);c._listeners=null}),this.promise.then=f=>{let d;const y=new Promise(_=>{c.subscribe(_),d=_}).then(f);return y.cancel=function(){c.unsubscribe(d)},y},a(function(d,y,_){c.reason||(c.reason=new CanceledError(d,y,_),s(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const s=this._listeners.indexOf(a);s!==-1&&this._listeners.splice(s,1)}static source(){let a;return{token:new CancelToken(function(f){a=f}),cancel:a}}}const CancelToken$1=CancelToken;function spread(o){return function(s){return o.apply(null,s)}}function isAxiosError(o){return utils$1.isObject(o)&&o.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([o,a])=>{HttpStatusCode[a]=o});const HttpStatusCode$1=HttpStatusCode;function createInstance(o){const a=new Axios$1(o),s=bind(Axios$1.prototype.request,a);return utils$1.extend(s,Axios$1.prototype,a,{allOwnKeys:!0}),utils$1.extend(s,a,null,{allOwnKeys:!0}),s.create=function(f){return createInstance(mergeConfig(o,f))},s}const axios=createInstance(defaults$1);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(a){return Promise.all(a)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=o=>formDataToJSON(utils$1.isHTMLForm(o)?new FormData(o):o);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios,pendingMap=new Map;class AxiosCanceler{addPending(a){this.removePending(a);const s=getPendingUrl(a),c=new AbortController;a.signal=a.signal||c.signal,pendingMap.has(s)||pendingMap.set(s,c)}removePending(a){const s=getPendingUrl(a);if(pendingMap.has(s)){const c=pendingMap.get(s);c&&c.abort(s),pendingMap.delete(s)}}reset(){pendingMap.clear()}removeAllPending(){pendingMap.forEach(a=>{a&&a.abort()}),this.reset()}}function getPendingUrl(o){return[o.method,o.url].join("&")}class GAxios{constructor(a){tr(this,"axiosInstance");tr(this,"options");this.options=a,this.axiosInstance=axios$1.create(a),this.setupInterceptors()}createAxios(a){this.axiosInstance=axios$1.create(a)}getTransform(){const{transform:a}=this.options;return a}getAxios(){return this.axiosInstance}configAxios(a){this.axiosInstance&&this.createAxios(a)}setHeader(a){this.axiosInstance&&Object.assign(this.axiosInstance.defaults.headers,a)}setupInterceptors(){const{axiosInstance:a,options:{transform:s}}=this;if(!s)return;const{requestInterceptors:c,requestInterceptorsCatch:f,responseInterceptors:d,responseInterceptorsCatch:y}=s,_=new AxiosCanceler;this.axiosInstance.interceptors.request.use(S=>{var P,T;const b=(P=S.requestOptions)!=null?P:this.options.requestOptions;return!((T=b==null?void 0:b.ignoreCancelToken)!=null?T:!0)&&_.addPending(S),c&&isFunction$2(c)&&(S=c(S,this.options)),S},void 0),f&&isFunction$2(f)&&this.axiosInstance.interceptors.request.use(void 0,f),this.axiosInstance.interceptors.response.use(S=>(S&&_.removePending(S.config),d&&isFunction$2(d)&&(S=d(S)),S),void 0),y&&isFunction$2(y)&&this.axiosInstance.interceptors.response.use(void 0,S=>y(a,S))}uploadFile(a,s){const c=new window.FormData,f=s.name||"file";return s.filename?c.append(f,s.file,s.filename):c.append(f,s.file),s.data&&Object.keys(s.data).forEach(d=>{const y=s.data[d];if(Array.isArray(y)){y.forEach(_=>{c.append(`${d}[]`,_)});return}c.append(d,s.data[d])}),this.axiosInstance.request($e(se({},a),{method:"POST",data:c,headers:{"Content-type":ContentTypeEnum.FORM_DATA,ignoreCancelToken:!0}}))}supportFormData(a){var f;const s=a.headers||this.options.headers;return((s==null?void 0:s["Content-Type"])||(s==null?void 0:s["content-type"]))!==ContentTypeEnum.FORM_URLENCODED||!Reflect.has(a,"data")||((f=a.method)==null?void 0:f.toUpperCase())===RequestEnum.GET?a:$e(se({},a),{data:qs.stringify(a.data,{arrayFormat:"brackets"})})}get(a,s){return this.request($e(se({},a),{method:"GET"}),s)}post(a,s){return this.request($e(se({},a),{method:"POST"}),s)}put(a,s){return this.request($e(se({},a),{method:"PUT"}),s)}delete(a,s){return this.request($e(se({},a),{method:"DELETE"}),s)}request(a,s){let c=cloneDeep(a);a.cancelToken&&(c.cancelToken=a.cancelToken),a.signal&&(c.signal=a.signal);const f=this.getTransform(),{requestOptions:d}=this.options,y=Object.assign({},d,s),{beforeRequestHook:_,requestCatchHook:S,transformResponseHook:b}=f||{};return _&&isFunction$2(_)&&(c=_(c,y)),c.requestOptions=y,c=this.supportFormData(c),new Promise(($,P)=>{this.axiosInstance.request(c).then(T=>{if(b&&isFunction$2(b)){try{const C=b(T,y);$(C)}catch(C){P(C||new Error("request error!"))}return}$(T)}).catch(T=>{if(S&&isFunction$2(S)){P(S(T,y));return}axios$1.isAxiosError(T),P(T)})})}}const transform={transformResponseHook:(o,a)=>{const{isReturnNativeResponse:s,isTransformResponse:c}=a;if(s)return o;if(!c)return o.data.data;const{data:f}=o;if(!o.data)throw new Error("请求接口错误");const{code:d,message:y}=f;if(f&&Reflect.has(f,"code")&&d===ResultEnum.SUCCESS)return f.data;let S="";switch(d){case ResultEnum.TIMEOUT:S="登录超时,请重新登录";break;default:y&&(S=y)}throw new Error(S)},responseInterceptorsCatch:(o,a)=>{var S,b;const{response:s,code:c,message:f,config:d}=a||{},y=(b=(S=a==null?void 0:a.toString)==null?void 0:S.call(a))!=null?b:"";let _="";if(axios$1.isCancel(a))return Promise.reject(a);try{c==="ECONNABORTED"&&f.indexOf("timeout")!==-1&&(_="接口请求超时,请刷新页面重试!"),y!=null&&y.includes("Network Error")&&(_="网络异常,请检查您的网络连接是否正常")}catch($){throw new Error($)}switch(s==null?void 0:s.status){case 401:_="登录失效";break;case 403:_="拒绝访问";break;case 404:_="请求地址不存在";break;case 500:_="服务器内部错误";break;case 501:_="服务未实现";break;case 502:_="网关错误";break;case 503:_="服务不可用";break}return Promise.reject(a)},beforeRequestHook:(o,a)=>{var $;const{apiUrl:s,joinPrefix:c,joinParamsToUrl:f,formatDate:d,joinTime:y=!0,urlPrefix:_}=a;c&&(o.url=`${_}${o.url}`);const S=o.params||{},b=o.data||!1;return d&&b&&!isString$3(b)&&formatRequestDate(b),(($=o.method)==null?void 0:$.toUpperCase())===RequestEnum.GET?isString$3(S)?(o.url=o.url+S+`${joinTimestamp(y,!0)}`,o.params=void 0):o.params=Object.assign(S||{},joinTimestamp(y,!1)):isString$3(S)?(o.url=o.url+S,o.params=void 0):(d&&formatRequestDate(S),Reflect.has(o,"data")&&o.data&&(Object.keys(o.data).length>0||o.data instanceof FormData)?(o.data=b,o.params=S):(o.data=S,o.params=void 0),f&&(o.url=setObjToUrlParams(o.url,Object.assign({},o.params,o.data)))),o},requestInterceptors:(o,a)=>{var c;const s=getItem$1(StorageEnum.Token);return s&&((c=o.requestOptions)==null?void 0:c.withToken)!==!1&&(o.headers.Authorization=a.authenticationScheme?`${a.authenticationScheme} ${s}`:s),o}};function createAxios(o){return new GAxios(deepMerge({authenticationScheme:"Bearer",timeout:10*1e3,header:{"Content-Type":ContentTypeEnum.JSON},transform:clone(transform),requestOptions:{joinPrefix:!0,isReturnNativeResponse:!1,joinParamsToUrl:!1,joinTime:!0,ignoreCancelToken:!0,withToken:!0,retryRequest:{isOpenRetry:!0,count:5,waitTime:100},apiUrl:"",urlPrefix:"/api",formatDate:!0}},o||{}))}const defHttp=createAxios(),PREFIX="",GRequest=extend$1({timeout:6e4,prefix:PREFIX});let isRefreshingToken=!1;const requestQueue=[];GRequest.interceptors.request.use((o,a)=>{const{headers:s}=a;return{url:o,options:$e(se({},a),{headers:s})}});GRequest.interceptors.response.use((o,a)=>xt(void 0,null,function*(){const{status:s}=o;if(s===200){const c=yield o.clone().json();return c.code!==0?(notification.error({message:"请求错误",description:c.msg}),Promise.reject(c.msg)):c}if(s===401){if(!isRefreshingToken){const c=JSON.parse(localStorage.getItem("userInfo")||"{}");isRefreshingToken=!0;const f=yield GRequest("/User/ReLogin",{method:"POST",data:c});localStorage.setItem("userInfo",JSON.stringify(f.data)),isRefreshingToken=!1;const d=GRequest(a.url,a);return requestQueue.forEach(y=>y.resolve(GRequest(y.url,y.options))),d}return new Promise((c,f)=>{requestQueue.push({url:a.url,options:a,resolve:c,reject:f})})}return notification.error({message:"请求错误",description:o.statusText}),Promise.reject(o.statusText)}));const loginApi=o=>defHttp.post({url:"/login",data:o});function logoutApi(){return defHttp.get({url:"/logout"})}function getJueJinList(o){return defHttp.post({url:"/article/queryList",data:o})}function getUsersList(){return defHttp.get({url:"/user/getUserList"})}const headerImg="/react-antd-admin-pnpm/assets/avatar-9ee092e3.jpeg",useUserStore=create(o=>({userInfo:getItem$1(StorageEnum$1.User)||{},userToken:getItem$1(StorageEnum$1.Token)||{},actions:{setUserInfo:a=>{o({userInfo:a}),setItem(StorageEnum$1.User,a)},setUserToken:a=>{o({userToken:a}),setItem(StorageEnum$1.Token,a)},clearUserInfoAndToken:()=>{o({userInfo:{},userToken:{}}),removeItem(StorageEnum$1.User),removeItem(StorageEnum$1.Token)}}})),useUserToken=()=>useUserStore(o=>o.userToken),useUserActions=()=>useUserStore(o=>o.actions),useSignIn=()=>{const{t:o}=useTranslation(),{notification:a,message:s}=App$1.useApp(),{setUserToken:c,setUserInfo:f}=useUserActions(),d=useMutation({mutationFn:loginApi}),y=_=>xt(void 0,null,function*(){try{const b=yield d.mutateAsync(_),S=b,{token:$}=S,P=er(S,["token"]);return c({token:$}),f(P),a.success({message:o("登录成功"),description:`欢迎回来: ${_.username}`,duration:3}),yield Promise.resolve(b)}catch(b){return s.error({content:b.message,duration:3}),Promise.reject(b)}});return reactExports.useCallback(y,[])};function UserDropdown(){const{createConfirm:o,contextHolder:a,createMessage:s}=useMessage(),{clearUserInfoAndToken:c}=useUserActions(),{t:f}=useTranslation(),{token:d}=useUserToken(),y=[{key:"lock",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(LockOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:f("锁定屏幕")})]})},{key:"logout",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(PoweroffOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:f("退出登录")})]})}],_=({key:P})=>{switch(P){case"lock":break;case"logout":b();break}},S=useNavigate(),b=()=>{o({title:jsxRuntimeExports.jsx("span",{children:f("温馨提醒")}),content:jsxRuntimeExports.jsx("span",{children:f("是否确认退出系统?")}),onOk:()=>xt(this,null,function*(){yield $(!0)})})},$=(P=!1)=>xt(this,null,function*(){if(d)try{yield logoutApi()}catch(T){s.error(f("注销失败!"))}c(),P&&S("/login")});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a,jsxRuntimeExports.jsx(Dropdown,{menu:{items:y,onClick:_},placement:"bottomRight",arrow:!0,children:jsxRuntimeExports.jsx("span",{className:"flex-center",style:{cursor:"pointer"},children:jsxRuntimeExports.jsx("img",{src:headerImg,style:{width:"24px",height:"24px",borderRadius:"50%"},alt:""})})})]})}const matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(o,a,s,c="")=>{const f=o.split(":");if(o.slice(0,1)==="@"){if(f.length<2||f.length>3)return null;c=f.shift().slice(1)}if(f.length>3||!f.length)return null;if(f.length>1){const _=f.pop(),S=f.pop(),b={provider:f.length>0?f[0]:c,prefix:S,name:_};return a&&!validateIconName(b)?null:b}const d=f[0],y=d.split("-");if(y.length>1){const _={provider:c,prefix:y.shift(),name:y.join("-")};return a&&!validateIconName(_)?null:_}if(s&&c===""){const _={provider:c,prefix:"",name:d};return a&&!validateIconName(_,s)?null:_}return null},validateIconName=(o,a)=>o?!!((o.provider===""||o.provider.match(matchIconName))&&(a&&o.prefix===""||o.prefix.match(matchIconName))&&o.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze(se(se({},defaultIconDimensions),defaultIconTransformations)),defaultExtendedIconProps=Object.freeze($e(se({},defaultIconProps),{body:"",hidden:!1}));function mergeIconTransformations(o,a){const s={};!o.hFlip!=!a.hFlip&&(s.hFlip=!0),!o.vFlip!=!a.vFlip&&(s.vFlip=!0);const c=((o.rotate||0)+(a.rotate||0))%4;return c&&(s.rotate=c),s}function mergeIconData(o,a){const s=mergeIconTransformations(o,a);for(const c in defaultExtendedIconProps)c in defaultIconTransformations?c in o&&!(c in s)&&(s[c]=defaultIconTransformations[c]):c in a?s[c]=a[c]:c in o&&(s[c]=o[c]);return s}function getIconsTree(o,a){const s=o.icons,c=o.aliases||Object.create(null),f=Object.create(null);function d(y){if(s[y])return f[y]=[];if(!(y in f)){f[y]=null;const _=c[y]&&c[y].parent,S=_&&d(_);S&&(f[y]=[_].concat(S))}return f[y]}return(a||Object.keys(s).concat(Object.keys(c))).forEach(d),f}function internalGetIconData(o,a,s){const c=o.icons,f=o.aliases||Object.create(null);let d={};function y(_){d=mergeIconData(c[_]||f[_],d)}return y(a),s.forEach(y),mergeIconData(o,d)}function parseIconSet(o,a){const s=[];if(typeof o!="object"||typeof o.icons!="object")return s;o.not_found instanceof Array&&o.not_found.forEach(f=>{a(f,null),s.push(f)});const c=getIconsTree(o);for(const f in c){const d=c[f];d&&(a(f,internalGetIconData(o,f,d)),s.push(f))}return s}const optionalPropertyDefaults=se({provider:"",aliases:{},not_found:{}},defaultIconDimensions);function checkOptionalProps(o,a){for(const s in a)if(s in o&&typeof o[s]!=typeof a[s])return!1;return!0}function quicklyValidateIconSet(o){if(typeof o!="object"||o===null)return null;const a=o;if(typeof a.prefix!="string"||!o.icons||typeof o.icons!="object"||!checkOptionalProps(o,optionalPropertyDefaults))return null;const s=a.icons;for(const f in s){const d=s[f];if(!f.match(matchIconName)||typeof d.body!="string"||!checkOptionalProps(d,defaultExtendedIconProps))return null}const c=a.aliases||Object.create(null);for(const f in c){const d=c[f],y=d.parent;if(!f.match(matchIconName)||typeof y!="string"||!s[y]&&!c[y]||!checkOptionalProps(d,defaultExtendedIconProps))return null}return a}const dataStorage=Object.create(null);function newStorage(o,a){return{provider:o,prefix:a,icons:Object.create(null),missing:new Set}}function getStorage$2(o,a){const s=dataStorage[o]||(dataStorage[o]=Object.create(null));return s[a]||(s[a]=newStorage(o,a))}function addIconSet(o,a){return quicklyValidateIconSet(a)?parseIconSet(a,(s,c)=>{c?o.icons[s]=c:o.missing.add(s)}):[]}function addIconToStorage(o,a,s){try{if(typeof s.body=="string")return o.icons[a]=se({},s),!0}catch(c){}return!1}let simpleNames=!1;function allowSimpleNames(o){return typeof o=="boolean"&&(simpleNames=o),simpleNames}function getIconData(o){const a=typeof o=="string"?stringToIcon(o,!0,simpleNames):o;if(a){const s=getStorage$2(a.provider,a.prefix),c=a.name;return s.icons[c]||(s.missing.has(c)?null:void 0)}}function addIcon(o,a){const s=stringToIcon(o,!0,simpleNames);if(!s)return!1;const c=getStorage$2(s.provider,s.prefix);return addIconToStorage(c,s.name,a)}function addCollection(o,a){if(typeof o!="object")return!1;if(typeof a!="string"&&(a=o.provider||""),simpleNames&&!a&&!o.prefix){let f=!1;return quicklyValidateIconSet(o)&&(o.prefix="",parseIconSet(o,(d,y)=>{y&&addIcon(d,y)&&(f=!0)})),f}const s=o.prefix;if(!validateIconName({provider:a,prefix:s,name:"a"}))return!1;const c=getStorage$2(a,s);return!!addIconSet(c,o)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze(se(se({},defaultIconSizeCustomisations),defaultIconTransformations)),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(o,a,s){if(a===1)return o;if(s=s||100,typeof o=="number")return Math.ceil(o*a*s)/s;if(typeof o!="string")return o;const c=o.split(unitsSplit);if(c===null||!c.length)return o;const f=[];let d=c.shift(),y=unitsTest.test(d);for(;;){if(y){const _=parseFloat(d);isNaN(_)?f.push(d):f.push(Math.ceil(_*a*s)/s)}else f.push(d);if(d=c.shift(),d===void 0)return f.join("");y=!y}}const isUnsetKeyword=o=>o==="unset"||o==="undefined"||o==="none";function iconToSVG(o,a){const s=se(se({},defaultIconProps),o),c=se(se({},defaultIconCustomisations),a),f={left:s.left,top:s.top,width:s.width,height:s.height};let d=s.body;[s,c].forEach(O=>{const A=[],F=O.hFlip,j=O.vFlip;let L=O.rotate;F?j?L+=2:(A.push("translate("+(f.width+f.left).toString()+" "+(0-f.top).toString()+")"),A.push("scale(-1 1)"),f.top=f.left=0):j&&(A.push("translate("+(0-f.left).toString()+" "+(f.height+f.top).toString()+")"),A.push("scale(1 -1)"),f.top=f.left=0);let M;switch(L<0&&(L-=Math.floor(L/4)*4),L=L%4,L){case 1:M=f.height/2+f.top,A.unshift("rotate(90 "+M.toString()+" "+M.toString()+")");break;case 2:A.unshift("rotate(180 "+(f.width/2+f.left).toString()+" "+(f.height/2+f.top).toString()+")");break;case 3:M=f.width/2+f.left,A.unshift("rotate(-90 "+M.toString()+" "+M.toString()+")");break}L%2===1&&(f.left!==f.top&&(M=f.left,f.left=f.top,f.top=M),f.width!==f.height&&(M=f.width,f.width=f.height,f.height=M)),A.length&&(d=''+d+"")});const y=c.width,_=c.height,S=f.width,b=f.height;let $,P;y===null?(P=_===null?"1em":_==="auto"?b:_,$=calculateSize(P,S/b)):($=y==="auto"?S:y,P=_===null?calculateSize($,b/S):_==="auto"?b:_);const T={},C=(O,A)=>{isUnsetKeyword(A)||(T[O]=A.toString())};return C("width",$),C("height",P),T.viewBox=f.left.toString()+" "+f.top.toString()+" "+S.toString()+" "+b.toString(),{attributes:T,body:d}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(o,a=randomPrefix){const s=[];let c;for(;c=regex.exec(o);)s.push(c[1]);if(!s.length)return o;const f="suffix"+(Math.random()*16777216|Date.now()).toString(16);return s.forEach(d=>{const y=typeof a=="function"?a(d):a+(counter++).toString(),_=d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");o=o.replace(new RegExp('([#;"])('+_+')([")]|\\.[a-z])',"g"),"$1"+y+f+"$3")}),o=o.replace(new RegExp(f,"g"),""),o}const storage=Object.create(null);function setAPIModule(o,a){storage[o]=a}function getAPIModule(o){return storage[o]||storage[""]}function createAPIConfig(o){let a;if(typeof o.resources=="string")a=[o.resources];else if(a=o.resources,!(a instanceof Array)||!a.length)return null;return{resources:a,path:o.path||"/",maxURL:o.maxURL||500,rotate:o.rotate||750,timeout:o.timeout||5e3,random:o.random===!0,index:o.index||0,dataAfterTimeout:o.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(o,a){const s=createAPIConfig(a);return s===null?!1:(configStorage[o]=s,!0)}function getAPIConfig(o){return configStorage[o]}const detectFetch=()=>{let o;try{if(o=fetch,typeof o=="function")return o}catch(a){}};let fetchModule=detectFetch();function calculateMaxLength(o,a){const s=getAPIConfig(o);if(!s)return 0;let c;if(!s.maxURL)c=0;else{let f=0;s.resources.forEach(y=>{f=Math.max(f,y.length)});const d=a+".json?icons=";c=s.maxURL-f-s.path.length-d.length}return c}function shouldAbort(o){return o===404}const prepare=(o,a,s)=>{const c=[],f=calculateMaxLength(o,a),d="icons";let y={type:d,provider:o,prefix:a,icons:[]},_=0;return s.forEach((S,b)=>{_+=S.length+1,_>=f&&b>0&&(c.push(y),y={type:d,provider:o,prefix:a,icons:[]},_=S.length),y.icons.push(S)}),c.push(y),c};function getPath(o){if(typeof o=="string"){const a=getAPIConfig(o);if(a)return a.path}return"/"}const send=(o,a,s)=>{if(!fetchModule){s("abort",424);return}let c=getPath(a.provider);switch(a.type){case"icons":{const d=a.prefix,_=a.icons.join(","),S=new URLSearchParams({icons:_});c+=d+".json?"+S.toString();break}case"custom":{const d=a.uri;c+=d.slice(0,1)==="/"?d.slice(1):d;break}default:s("abort",400);return}let f=503;fetchModule(o+c).then(d=>{const y=d.status;if(y!==200){setTimeout(()=>{s(shouldAbort(y)?"abort":"next",y)});return}return f=501,d.json()}).then(d=>{if(typeof d!="object"||d===null){setTimeout(()=>{d===404?s("abort",d):s("next",f)});return}setTimeout(()=>{s("success",d)})}).catch(()=>{s("next",f)})},fetchAPIModule={prepare,send};function sortIcons(o){const a={loaded:[],missing:[],pending:[]},s=Object.create(null);o.sort((f,d)=>f.provider!==d.provider?f.provider.localeCompare(d.provider):f.prefix!==d.prefix?f.prefix.localeCompare(d.prefix):f.name.localeCompare(d.name));let c={provider:"",prefix:"",name:""};return o.forEach(f=>{if(c.name===f.name&&c.prefix===f.prefix&&c.provider===f.provider)return;c=f;const d=f.provider,y=f.prefix,_=f.name,S=s[d]||(s[d]=Object.create(null)),b=S[y]||(S[y]=getStorage$2(d,y));let $;_ in b.icons?$=a.loaded:y===""||b.missing.has(_)?$=a.missing:$=a.pending;const P={provider:d,prefix:y,name:_};$.push(P)}),a}function removeCallback(o,a){o.forEach(s=>{const c=s.loaderCallbacks;c&&(s.loaderCallbacks=c.filter(f=>f.id!==a))})}function updateCallbacks(o){o.pendingCallbacksFlag||(o.pendingCallbacksFlag=!0,setTimeout(()=>{o.pendingCallbacksFlag=!1;const a=o.loaderCallbacks?o.loaderCallbacks.slice(0):[];if(!a.length)return;let s=!1;const c=o.provider,f=o.prefix;a.forEach(d=>{const y=d.icons,_=y.pending.length;y.pending=y.pending.filter(S=>{if(S.prefix!==f)return!0;const b=S.name;if(o.icons[b])y.loaded.push({provider:c,prefix:f,name:b});else if(o.missing.has(b))y.missing.push({provider:c,prefix:f,name:b});else return s=!0,!0;return!1}),y.pending.length!==_&&(s||removeCallback([o],d.id),d.callback(y.loaded.slice(0),y.missing.slice(0),y.pending.slice(0),d.abort))})}))}let idCounter=0;function storeCallback(o,a,s){const c=idCounter++,f=removeCallback.bind(null,s,c);if(!a.pending.length)return f;const d={id:c,icons:a,callback:o,abort:f};return s.forEach(y=>{(y.loaderCallbacks||(y.loaderCallbacks=[])).push(d)}),f}function listToIcons(o,a=!0,s=!1){const c=[];return o.forEach(f=>{const d=typeof f=="string"?stringToIcon(f,a,s):f;d&&c.push(d)}),c}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(o,a,s,c){const f=o.resources.length,d=o.random?Math.floor(Math.random()*f):o.index;let y;if(o.random){let z=o.resources.slice(0);for(y=[];z.length>1;){const H=Math.floor(Math.random()*z.length);y.push(z[H]),z=z.slice(0,H).concat(z.slice(H+1))}y=y.concat(z)}else y=o.resources.slice(d).concat(o.resources.slice(0,d));const _=Date.now();let S="pending",b=0,$,P=null,T=[],C=[];typeof c=="function"&&C.push(c);function O(){P&&(clearTimeout(P),P=null)}function A(){S==="pending"&&(S="aborted"),O(),T.forEach(z=>{z.status==="pending"&&(z.status="aborted")}),T=[]}function F(z,H){H&&(C=[]),typeof z=="function"&&C.push(z)}function j(){return{startTime:_,payload:a,status:S,queriesSent:b,queriesPending:T.length,subscribe:F,abort:A}}function L(){S="failed",C.forEach(z=>{z(void 0,$)})}function M(){T.forEach(z=>{z.status==="pending"&&(z.status="aborted")}),T=[]}function I(z,H,G){const X=H!=="success";switch(T=T.filter(W=>W!==z),S){case"pending":break;case"failed":if(X||!o.dataAfterTimeout)return;break;default:return}if(H==="abort"){$=G,L();return}if(X){$=G,T.length||(y.length?U():L());return}if(O(),M(),!o.random){const W=o.resources.indexOf(z.resource);W!==-1&&W!==o.index&&(o.index=W)}S="completed",C.forEach(W=>{W(G)})}function U(){if(S!=="pending")return;O();const z=y.shift();if(z===void 0){if(T.length){P=setTimeout(()=>{O(),S==="pending"&&(M(),L())},o.timeout);return}L();return}const H={status:"pending",resource:z,callback:(G,X)=>{I(H,G,X)}};T.push(H),b++,P=setTimeout(U,o.rotate),s(z,a,H.callback)}return setTimeout(U),j}function initRedundancy(o){const a=se(se({},defaultConfig),o);let s=[];function c(){s=s.filter(_=>_().status==="pending")}function f(_,S,b){const $=sendQuery(a,_,S,(P,T)=>{c(),b&&b(P,T)});return s.push($),$}function d(_){return s.find(S=>_(S))||null}return{query:f,find:d,setIndex:_=>{a.index=_},getIndex:()=>a.index,cleanup:c}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(o){if(!redundancyCache[o]){const a=getAPIConfig(o);if(!a)return;const s=initRedundancy(a),c={config:a,redundancy:s};redundancyCache[o]=c}return redundancyCache[o]}function sendAPIQuery(o,a,s){let c,f;if(typeof o=="string"){const d=getAPIModule(o);if(!d)return s(void 0,424),emptyCallback$1;f=d.send;const y=getRedundancyCache(o);y&&(c=y.redundancy)}else{const d=createAPIConfig(o);if(d){c=initRedundancy(d);const y=o.resources?o.resources[0]:"",_=getAPIModule(y);_&&(f=_.send)}}return!c||!f?(s(void 0,424),emptyCallback$1):c.query(a,f,s)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem(o,a){try{return o.getItem(a)}catch(s){}}function setStoredItem(o,a,s){try{return o.setItem(a,s),!0}catch(c){}}function removeStoredItem(o,a){try{o.removeItem(a)}catch(s){}}function setBrowserStorageItemsCount(o,a){return setStoredItem(o,browserCacheCountKey,a.toString())}function getBrowserStorageItemsCount(o){return parseInt(getStoredItem(o,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(o){browserStorageStatus=o}let _window=typeof window=="undefined"?{}:window;function getBrowserStorage(o){const a=o+"Storage";try{if(_window&&_window[a]&&typeof _window[a].length=="number")return _window[a]}catch(s){}browserStorageConfig[o]=!1}function iterateBrowserStorage(o,a){const s=getBrowserStorage(o);if(!s)return;const c=getStoredItem(s,browserCacheVersionKey);if(c!==browserCacheVersion){if(c){const _=getBrowserStorageItemsCount(s);for(let S=0;S<_;S++)removeStoredItem(s,browserCachePrefix+S.toString())}setStoredItem(s,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(s,0);return}const f=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,d=_=>{const S=browserCachePrefix+_.toString(),b=getStoredItem(s,S);if(typeof b=="string"){try{const $=JSON.parse(b);if(typeof $=="object"&&typeof $.cached=="number"&&$.cached>f&&typeof $.provider=="string"&&typeof $.data=="object"&&typeof $.data.prefix=="string"&&a($,_))return!0}catch($){}removeStoredItem(s,S)}};let y=getBrowserStorageItemsCount(s);for(let _=y-1;_>=0;_--)d(_)||(_===y-1?(y--,setBrowserStorageItemsCount(s,y)):browserStorageEmptyItems[o].add(_))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const o in browserStorageConfig)iterateBrowserStorage(o,a=>{const s=a.data,c=a.provider,f=s.prefix,d=getStorage$2(c,f);if(!addIconSet(d,s).length)return!1;const y=s.lastModified||-1;return d.lastModifiedCached=d.lastModifiedCached?Math.min(d.lastModifiedCached,y):y,!0})}}function updateLastModified(o,a){const s=o.lastModifiedCached;if(s&&s>=a)return s===a;if(o.lastModifiedCached=a,s)for(const c in browserStorageConfig)iterateBrowserStorage(c,f=>{const d=f.data;return f.provider!==o.provider||d.prefix!==o.prefix||d.lastModified===a});return!0}function storeInBrowserStorage(o,a){browserStorageStatus||initBrowserStorage();function s(c){let f;if(!browserStorageConfig[c]||!(f=getBrowserStorage(c)))return;const d=browserStorageEmptyItems[c];let y;if(d.size)d.delete(y=Array.from(d).shift());else if(y=getBrowserStorageItemsCount(f),!setBrowserStorageItemsCount(f,y+1))return;const _={cached:Math.floor(Date.now()/browserStorageHour),provider:o.provider,data:a};return setStoredItem(f,browserCachePrefix+y.toString(),JSON.stringify(_))}a.lastModified&&!updateLastModified(o,a.lastModified)||Object.keys(a.icons).length&&(a.not_found&&(a=Object.assign({},a),delete a.not_found),s("local")||s("session"))}function emptyCallback(){}function loadedNewIcons(o){o.iconsLoaderFlag||(o.iconsLoaderFlag=!0,setTimeout(()=>{o.iconsLoaderFlag=!1,updateCallbacks(o)}))}function loadNewIcons(o,a){o.iconsToLoad?o.iconsToLoad=o.iconsToLoad.concat(a).sort():o.iconsToLoad=a,o.iconsQueueFlag||(o.iconsQueueFlag=!0,setTimeout(()=>{o.iconsQueueFlag=!1;const{provider:s,prefix:c}=o,f=o.iconsToLoad;delete o.iconsToLoad;let d;if(!f||!(d=getAPIModule(s)))return;d.prepare(s,c,f).forEach(_=>{sendAPIQuery(s,_,S=>{if(typeof S!="object")_.icons.forEach(b=>{o.missing.add(b)});else try{const b=addIconSet(o,S);if(!b.length)return;const $=o.pendingIcons;$&&b.forEach(P=>{$.delete(P)}),storeInBrowserStorage(o,S)}catch(b){}loadedNewIcons(o)})})}))}const loadIcons=(o,a)=>{const s=listToIcons(o,!0,allowSimpleNames()),c=sortIcons(s);if(!c.pending.length){let S=!0;return a&&setTimeout(()=>{S&&a(c.loaded,c.missing,c.pending,emptyCallback)}),()=>{S=!1}}const f=Object.create(null),d=[];let y,_;return c.pending.forEach(S=>{const{provider:b,prefix:$}=S;if($===_&&b===y)return;y=b,_=$,d.push(getStorage$2(b,$));const P=f[b]||(f[b]=Object.create(null));P[$]||(P[$]=[])}),c.pending.forEach(S=>{const{provider:b,prefix:$,name:P}=S,T=getStorage$2(b,$),C=T.pendingIcons||(T.pendingIcons=new Set);C.has(P)||(C.add(P),f[b][$].push(P))}),d.forEach(S=>{const{provider:b,prefix:$}=S;f[b][$].length&&loadNewIcons(S,f[b][$])}),a?storeCallback(a,c,d):emptyCallback};function mergeCustomisations(o,a){const s=se({},o);for(const c in a){const f=a[c],d=typeof f;c in defaultIconSizeCustomisations?(f===null||f&&(d==="string"||d==="number"))&&(s[c]=f):d===typeof s[c]&&(s[c]=c==="rotate"?f%4:f)}return s}const separator=/[\s,]+/;function flipFromString(o,a){a.split(separator).forEach(s=>{switch(s.trim()){case"horizontal":o.hFlip=!0;break;case"vertical":o.vFlip=!0;break}})}function rotateFromString(o,a=0){const s=o.replace(/^-?[0-9.]*/,"");function c(f){for(;f<0;)f+=4;return f%4}if(s===""){const f=parseInt(o);return isNaN(f)?0:c(f)}else if(s!==o){let f=0;switch(s){case"%":f=25;break;case"deg":f=90}if(f){let d=parseFloat(o.slice(0,o.length-s.length));return isNaN(d)?0:(d=d/f,d%1===0?c(d):0)}}return a}function iconToHTML(o,a){let s=o.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const c in a)s+=" "+c+'="'+a[c]+'"';return'"+o+""}function encodeSVGforURL(o){return o.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function svgToData(o){return"data:image/svg+xml,"+encodeSVGforURL(o)}function svgToURL(o){return'url("'+svgToData(o)+'")'}let policy;function createPolicy(){try{policy=window.trustedTypes.createPolicy("iconify",{createHTML:o=>o})}catch(o){policy=null}}function cleanUpInnerHTML(o){return policy===void 0&&createPolicy(),policy?policy.createHTML(o):o}const defaultExtendedIconCustomisations=$e(se({},defaultIconCustomisations),{inline:!1}),svgDefaults={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={WebkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const o in propsToAddTo){const a=propsToAddTo[o];for(const s in propsToAdd)a[o+s]=propsToAdd[s]}const inlineDefaults=$e(se({},defaultExtendedIconCustomisations),{inline:!0});function fixSize(o){return o+(o.match(/^[-0-9.]+$/)?"px":"")}const render=(o,a,s,c)=>{const f=s?inlineDefaults:defaultExtendedIconCustomisations,d=mergeCustomisations(f,a),y=a.mode||"svg",_={},S=a.style||{},b=$e(se({},y==="svg"?svgDefaults:{}),{ref:c});for(let j in a){const L=a[j];if(L!==void 0)switch(j){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":d[j]=L===!0||L==="true"||L===1;break;case"flip":typeof L=="string"&&flipFromString(d,L);break;case"color":_.color=L;break;case"rotate":typeof L=="string"?d[j]=rotateFromString(L):typeof L=="number"&&(d[j]=L);break;case"ariaHidden":case"aria-hidden":L!==!0&&L!=="true"&&delete b["aria-hidden"];break;default:f[j]===void 0&&(b[j]=L)}}const $=iconToSVG(o,d),P=$.attributes;if(d.inline&&(_.verticalAlign="-0.125em"),y==="svg"){b.style=se(se({},_),S),Object.assign(b,P);let j=0,L=a.id;return typeof L=="string"&&(L=L.replace(/-/g,"_")),b.dangerouslySetInnerHTML={__html:cleanUpInnerHTML(replaceIDs($.body,L?()=>L+"ID"+j++:"iconifyReact"))},React$4.createElement("svg",b)}const{body:T,width:C,height:O}=o,A=y==="mask"||(y==="bg"?!1:T.indexOf("currentColor")!==-1),F=iconToHTML(T,$e(se({},P),{width:C+"",height:O+""}));return b.style=se(se(se($e(se({},_),{"--svg":svgToURL(F),width:fixSize(P.width),height:fixSize(P.height)}),commonProps),A?monotoneProps:coloredProps),S),React$4.createElement("span",b)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document!="undefined"&&typeof window!="undefined"){initBrowserStorage();const o=window;if(o.IconifyPreload!==void 0){const a=o.IconifyPreload,s="Invalid IconifyPreload syntax.";typeof a=="object"&&a!==null&&(a instanceof Array?a:[a]).forEach(c=>{try{typeof c!="object"||c===null||c instanceof Array||typeof c.icons!="object"||typeof c.prefix!="string"||addCollection(c)}catch(f){}})}if(o.IconifyProviders!==void 0){const a=o.IconifyProviders;if(typeof a=="object"&&a!==null)for(let s in a){const c="IconifyProviders["+s+"] is invalid.";try{const f=a[s];if(typeof f!="object"||!f||f.resources===void 0)continue;addAPIProvider(s,f)}catch(f){}}}}class IconComponent extends React$4.Component{constructor(a){super(a),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(a){this.state.icon!==a&&this.setState({icon:a})}_checkIcon(a){const s=this.state,c=this.props.icon;if(typeof c=="object"&&c!==null&&typeof c.body=="string"){this._icon="",this._abortLoading(),(a||s.icon===null)&&this._setData({data:c});return}let f;if(typeof c!="string"||(f=stringToIcon(c,!1,!0))===null){this._abortLoading(),this._setData(null);return}const d=getIconData(f);if(!d){(!this._loading||this._loading.name!==c)&&(this._abortLoading(),this._icon="",this._setData(null),d!==null&&(this._loading={name:c,abort:loadIcons([f],this._checkIcon.bind(this,!1))}));return}if(this._icon!==c||s.icon===null){this._abortLoading(),this._icon=c;const y=["iconify"];f.prefix!==""&&y.push("iconify--"+f.prefix),f.provider!==""&&y.push("iconify--"+f.provider),this._setData({data:d,classes:y}),this.props.onLoad&&this.props.onLoad(c)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(a){a.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const a=this.props,s=this.state.icon;if(s===null)return a.children?a.children:React$4.createElement("span",{});let c=a;return s.classes&&(c=$e(se({},a),{className:(typeof a.className=="string"?a.className+" ":"")+s.classes.join(" ")})),render(se(se({},defaultIconProps),s.data),c,a._inline,a._ref)}}const Icon=React$4.forwardRef(function(a,s){const c=$e(se({},a),{_ref:s,_inline:!1});return React$4.createElement(IconComponent,c)});React$4.forwardRef(function(a,s){const c=$e(se({},a),{_ref:s,_inline:!0});return React$4.createElement(IconComponent,c)});const Selectlangulage=()=>{const{i18n:o}=useTranslation(),a=[{key:"zh",label:"中文"},{key:"en",label:"English"}];return jsxRuntimeExports.jsx(Dropdown,{menu:{items:a,onClick:({key:s})=>o.changeLanguage(s)},trigger:["click"],children:jsxRuntimeExports.jsx(Button,{shape:"circle",size:"small",icon:jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(Icon,{icon:"ant-design:global-outlined"})})})})};function LayoutFeature(){return jsxRuntimeExports.jsxs(Space,{size:"middle",children:[jsxRuntimeExports.jsx(GlobalSearch,{}),jsxRuntimeExports.jsx(Selectlangulage,{}),jsxRuntimeExports.jsx(DocLink,{}),jsxRuntimeExports.jsx(GithubLink,{}),jsxRuntimeExports.jsx(Settings,{}),jsxRuntimeExports.jsx(UserDropdown,{})]})}function formatProdErrorMessage$2(o){return`Minified Redux error #${o}; visit https://redux.js.org/Errors?code=${o} for the full message or use the non-minified dev environment for full errors. `}var $$observable$1=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),symbol_observable_default=$$observable$1,randomString$1=()=>Math.random().toString(36).substring(7).split("").join("."),ActionTypes$1={INIT:`@@redux/INIT${randomString$1()}`,REPLACE:`@@redux/REPLACE${randomString$1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString$1()}`},actionTypes_default=ActionTypes$1;function isPlainObject$2(o){if(typeof o!="object"||o===null)return!1;let a=o;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(o)===a||Object.getPrototypeOf(o)===null}function createStore$1(o,a,s){if(typeof o!="function")throw new Error(formatProdErrorMessage$2(2));if(typeof a=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$2(0));if(typeof a=="function"&&typeof s=="undefined"&&(s=a,a=void 0),typeof s!="undefined"){if(typeof s!="function")throw new Error(formatProdErrorMessage$2(1));return s(createStore$1)(o,a)}let c=o,f=a,d=new Map,y=d,_=0,S=!1;function b(){y===d&&(y=new Map,d.forEach((F,j)=>{y.set(j,F)}))}function $(){if(S)throw new Error(formatProdErrorMessage$2(3));return f}function P(F){if(typeof F!="function")throw new Error(formatProdErrorMessage$2(4));if(S)throw new Error(formatProdErrorMessage$2(5));let j=!0;b();const L=_++;return y.set(L,F),function(){if(j){if(S)throw new Error(formatProdErrorMessage$2(6));j=!1,b(),y.delete(L),d=null}}}function T(F){if(!isPlainObject$2(F))throw new Error(formatProdErrorMessage$2(7));if(typeof F.type=="undefined")throw new Error(formatProdErrorMessage$2(8));if(typeof F.type!="string")throw new Error(formatProdErrorMessage$2(17));if(S)throw new Error(formatProdErrorMessage$2(9));try{S=!0,f=c(f,F)}finally{S=!1}return(d=y).forEach(L=>{L()}),F}function C(F){if(typeof F!="function")throw new Error(formatProdErrorMessage$2(10));c=F,T({type:actionTypes_default.REPLACE})}function O(){const F=P;return{subscribe(j){if(typeof j!="object"||j===null)throw new Error(formatProdErrorMessage$2(11));function L(){const I=j;I.next&&I.next($())}return L(),{unsubscribe:F(L)}},[symbol_observable_default](){return this}}}return T({type:actionTypes_default.INIT}),{dispatch:T,subscribe:P,getState:$,replaceReducer:C,[symbol_observable_default]:O}}function assertReducerShape(o){Object.keys(o).forEach(a=>{const s=o[a];if(typeof s(void 0,{type:actionTypes_default.INIT})=="undefined")throw new Error(formatProdErrorMessage$2(12));if(typeof s(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(formatProdErrorMessage$2(13))})}function combineReducers(o){const a=Object.keys(o),s={};for(let d=0;da:o.length===1?o[0]:o.reduce((a,s)=>(...c)=>a(s(...c)))}function applyMiddleware(...o){return a=>(s,c)=>{const f=a(s,c);let d=()=>{throw new Error(formatProdErrorMessage$2(15))};const y={getState:f.getState,dispatch:(S,...b)=>d(S,...b)},_=o.map(S=>S(y));return d=compose(..._)(f.dispatch),$e(se({},f),{dispatch:d})}}function isAction(o){return isPlainObject$2(o)&&"type"in o&&typeof o.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(o,...a){throw new Error(`[Immer] minified error nr: ${o}. Full error at: https://bit.ly/3cXEKWf`)}var getPrototypeOf=Object.getPrototypeOf;function isDraft(o){return!!o&&!!o[DRAFT_STATE]}function isDraftable(o){var a;return o?isPlainObject$1(o)||Array.isArray(o)||!!o[DRAFTABLE]||!!((a=o.constructor)!=null&&a[DRAFTABLE])||isMap(o)||isSet(o):!1}var objectCtorString=Object.prototype.constructor.toString();function isPlainObject$1(o){if(!o||typeof o!="object")return!1;const a=getPrototypeOf(o);if(a===null)return!0;const s=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return s===Object?!0:typeof s=="function"&&Function.toString.call(s)===objectCtorString}function each(o,a){getArchtype(o)===0?Object.entries(o).forEach(([s,c])=>{a(s,c,o)}):o.forEach((s,c)=>a(c,s,o))}function getArchtype(o){const a=o[DRAFT_STATE];return a?a.type_:Array.isArray(o)?1:isMap(o)?2:isSet(o)?3:0}function has(o,a){return getArchtype(o)===2?o.has(a):Object.prototype.hasOwnProperty.call(o,a)}function set(o,a,s){const c=getArchtype(o);c===2?o.set(a,s):c===3?o.add(s):o[a]=s}function is(o,a){return o===a?o!==0||1/o===1/a:o!==o&&a!==a}function isMap(o){return o instanceof Map}function isSet(o){return o instanceof Set}function latest(o){return o.copy_||o.base_}function shallowCopy(o,a){if(isMap(o))return new Map(o);if(isSet(o))return new Set(o);if(Array.isArray(o))return Array.prototype.slice.call(o);if(!a&&isPlainObject$1(o))return getPrototypeOf(o)?se({},o):Object.assign(Object.create(null),o);const s=Object.getOwnPropertyDescriptors(o);delete s[DRAFT_STATE];let c=Reflect.ownKeys(s);for(let f=0;f1&&(o.set=o.add=o.clear=o.delete=dontMutateFrozenCollections),Object.freeze(o),a&&each(o,(s,c)=>freeze(c,!0))),o}function dontMutateFrozenCollections(){die(2)}function isFrozen(o){return Object.isFrozen(o)}var plugins={};function getPlugin(o){const a=plugins[o];return a||die(0,o),a}var currentScope;function getCurrentScope(){return currentScope}function createScope(o,a){return{drafts_:[],parent_:o,immer_:a,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope(o,a){a&&(getPlugin("Patches"),o.patches_=[],o.inversePatches_=[],o.patchListener_=a)}function revokeScope(o){leaveScope(o),o.drafts_.forEach(revokeDraft),o.drafts_=null}function leaveScope(o){o===currentScope&&(currentScope=o.parent_)}function enterScope(o){return currentScope=createScope(currentScope,o)}function revokeDraft(o){const a=o[DRAFT_STATE];a.type_===0||a.type_===1?a.revoke_():a.revoked_=!0}function processResult(o,a){a.unfinalizedDrafts_=a.drafts_.length;const s=a.drafts_[0];return o!==void 0&&o!==s?(s[DRAFT_STATE].modified_&&(revokeScope(a),die(4)),isDraftable(o)&&(o=finalize(a,o),a.parent_||maybeFreeze(a,o)),a.patches_&&getPlugin("Patches").generateReplacementPatches_(s[DRAFT_STATE].base_,o,a.patches_,a.inversePatches_)):o=finalize(a,s,[]),revokeScope(a),a.patches_&&a.patchListener_(a.patches_,a.inversePatches_),o!==NOTHING?o:void 0}function finalize(o,a,s){if(isFrozen(a))return a;const c=a[DRAFT_STATE];if(!c)return each(a,(f,d)=>finalizeProperty(o,c,a,f,d,s)),a;if(c.scope_!==o)return a;if(!c.modified_)return maybeFreeze(o,c.base_,!0),c.base_;if(!c.finalized_){c.finalized_=!0,c.scope_.unfinalizedDrafts_--;const f=c.copy_;let d=f,y=!1;c.type_===3&&(d=new Set(f),f.clear(),y=!0),each(d,(_,S)=>finalizeProperty(o,c,f,_,S,s,y)),maybeFreeze(o,f,!1),s&&o.patches_&&getPlugin("Patches").generatePatches_(c,s,o.patches_,o.inversePatches_)}return c.copy_}function finalizeProperty(o,a,s,c,f,d,y){if(isDraft(f)){const _=d&&a&&a.type_!==3&&!has(a.assigned_,c)?d.concat(c):void 0,S=finalize(o,f,_);if(set(s,c,S),isDraft(S))o.canAutoFreeze_=!1;else return}else y&&s.add(f);if(isDraftable(f)&&!isFrozen(f)){if(!o.immer_.autoFreeze_&&o.unfinalizedDrafts_<1)return;finalize(o,f),(!a||!a.scope_.parent_)&&maybeFreeze(o,f)}}function maybeFreeze(o,a,s=!1){!o.parent_&&o.immer_.autoFreeze_&&o.canAutoFreeze_&&freeze(a,s)}function createProxyProxy(o,a){const s=Array.isArray(o),c={type_:s?1:0,scope_:a?a.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:a,base_:o,draft_:null,copy_:null,revoke_:null,isManual_:!1};let f=c,d=objectTraps;s&&(f=[c],d=arrayTraps);const{revoke:y,proxy:_}=Proxy.revocable(f,d);return c.draft_=_,c.revoke_=y,_}var objectTraps={get(o,a){if(a===DRAFT_STATE)return o;const s=latest(o);if(!has(s,a))return readPropFromProto(o,s,a);const c=s[a];return o.finalized_||!isDraftable(c)?c:c===peek(o.base_,a)?(prepareCopy(o),o.copy_[a]=createProxy(c,o)):c},has(o,a){return a in latest(o)},ownKeys(o){return Reflect.ownKeys(latest(o))},set(o,a,s){const c=getDescriptorFromProto(latest(o),a);if(c!=null&&c.set)return c.set.call(o.draft_,s),!0;if(!o.modified_){const f=peek(latest(o),a),d=f==null?void 0:f[DRAFT_STATE];if(d&&d.base_===s)return o.copy_[a]=s,o.assigned_[a]=!1,!0;if(is(s,f)&&(s!==void 0||has(o.base_,a)))return!0;prepareCopy(o),markChanged(o)}return o.copy_[a]===s&&(s!==void 0||a in o.copy_)||Number.isNaN(s)&&Number.isNaN(o.copy_[a])||(o.copy_[a]=s,o.assigned_[a]=!0),!0},deleteProperty(o,a){return peek(o.base_,a)!==void 0||a in o.base_?(o.assigned_[a]=!1,prepareCopy(o),markChanged(o)):delete o.assigned_[a],o.copy_&&delete o.copy_[a],!0},getOwnPropertyDescriptor(o,a){const s=latest(o),c=Reflect.getOwnPropertyDescriptor(s,a);return c&&{writable:!0,configurable:o.type_!==1||a!=="length",enumerable:c.enumerable,value:s[a]}},defineProperty(){die(11)},getPrototypeOf(o){return getPrototypeOf(o.base_)},setPrototypeOf(){die(12)}},arrayTraps={};each(objectTraps,(o,a)=>{arrayTraps[o]=function(){return arguments[0]=arguments[0][0],a.apply(this,arguments)}});arrayTraps.deleteProperty=function(o,a){return arrayTraps.set.call(this,o,a,void 0)};arrayTraps.set=function(o,a,s){return objectTraps.set.call(this,o[0],a,s,o[0])};function peek(o,a){const s=o[DRAFT_STATE];return(s?latest(s):o)[a]}function readPropFromProto(o,a,s){var f;const c=getDescriptorFromProto(a,s);return c?"value"in c?c.value:(f=c.get)==null?void 0:f.call(o.draft_):void 0}function getDescriptorFromProto(o,a){if(!(a in o))return;let s=getPrototypeOf(o);for(;s;){const c=Object.getOwnPropertyDescriptor(s,a);if(c)return c;s=getPrototypeOf(s)}}function markChanged(o){o.modified_||(o.modified_=!0,o.parent_&&markChanged(o.parent_))}function prepareCopy(o){o.copy_||(o.copy_=shallowCopy(o.base_,o.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(o){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(a,s,c)=>{if(typeof a=="function"&&typeof s!="function"){const d=s;s=a;const y=this;return function(S=d,...b){return y.produce(S,$=>s.call(this,$,...b))}}typeof s!="function"&&die(6),c!==void 0&&typeof c!="function"&&die(7);let f;if(isDraftable(a)){const d=enterScope(this),y=createProxy(a,void 0);let _=!0;try{f=s(y),_=!1}finally{_?revokeScope(d):leaveScope(d)}return usePatchesInScope(d,c),processResult(f,d)}else if(!a||typeof a!="object"){if(f=s(a),f===void 0&&(f=a),f===NOTHING&&(f=void 0),this.autoFreeze_&&freeze(f,!0),c){const d=[],y=[];getPlugin("Patches").generateReplacementPatches_(a,f,d,y),c(d,y)}return f}else die(1,a)},this.produceWithPatches=(a,s)=>{if(typeof a=="function")return(y,..._)=>this.produceWithPatches(y,S=>a(S,..._));let c,f;return[this.produce(a,s,(y,_)=>{c=y,f=_}),c,f]},typeof(o==null?void 0:o.autoFreeze)=="boolean"&&this.setAutoFreeze(o.autoFreeze),typeof(o==null?void 0:o.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(o.useStrictShallowCopy)}createDraft(o){isDraftable(o)||die(8),isDraft(o)&&(o=current(o));const a=enterScope(this),s=createProxy(o,void 0);return s[DRAFT_STATE].isManual_=!0,leaveScope(a),s}finishDraft(o,a){const s=o&&o[DRAFT_STATE];(!s||!s.isManual_)&&die(9);const{scope_:c}=s;return usePatchesInScope(c,a),processResult(void 0,c)}setAutoFreeze(o){this.autoFreeze_=o}setUseStrictShallowCopy(o){this.useStrictShallowCopy_=o}applyPatches(o,a){let s;for(s=a.length-1;s>=0;s--){const f=a[s];if(f.path.length===0&&f.op==="replace"){o=f.value;break}}s>-1&&(a=a.slice(s+1));const c=getPlugin("Patches").applyPatches_;return isDraft(o)?c(o,a):this.produce(o,f=>c(f,a))}};function createProxy(o,a){const s=isMap(o)?getPlugin("MapSet").proxyMap_(o,a):isSet(o)?getPlugin("MapSet").proxySet_(o,a):createProxyProxy(o,a);return(a?a.scope_:getCurrentScope()).drafts_.push(s),s}function current(o){return isDraft(o)||die(10,o),currentImpl(o)}function currentImpl(o){if(!isDraftable(o)||isFrozen(o))return o;const a=o[DRAFT_STATE];let s;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,s=shallowCopy(o,a.scope_.immer_.useStrictShallowCopy_)}else s=shallowCopy(o,!0);return each(s,(c,f)=>{set(s,c,currentImpl(f))}),a&&(a.finalized_=!1),s}var immer=new Immer2,produce=immer.produce;immer.produceWithPatches.bind(immer);immer.setAutoFreeze.bind(immer);immer.setUseStrictShallowCopy.bind(immer);immer.applyPatches.bind(immer);immer.createDraft.bind(immer);immer.finishDraft.bind(immer);function assertIsFunction(o,a=`expected a function, instead received ${typeof o}`){if(typeof o!="function")throw new TypeError(a)}function assertIsObject(o,a=`expected an object, instead received ${typeof o}`){if(typeof o!="object")throw new TypeError(a)}function assertIsArrayOfFunctions(o,a="expected all items to be functions, instead received the following types: "){if(!o.every(s=>typeof s=="function")){const s=o.map(c=>typeof c=="function"?`function ${c.name||"unnamed"}()`:typeof c).join(", ");throw new TypeError(`${a}[${s}]`)}}var ensureIsArray=o=>Array.isArray(o)?o:[o];function getDependencies(o){const a=Array.isArray(o[0])?o[0]:o;return assertIsArrayOfFunctions(a,"createSelector expects all input-selectors to be functions, but received the following types: "),a}function collectInputSelectorResults(o,a){const s=[],{length:c}=o;for(let f=0;f{s=createCacheNode(),y.resetResultsCount()},y.resultsCount=()=>d,y.resetResultsCount=()=>{d=0},y}function createSelectorCreator(o,...a){const s=typeof o=="function"?{memoize:o,memoizeOptions:a}:o,c=(...f)=>{let d=0,y=0,_,S={},b=f.pop();typeof b=="object"&&(S=b,b=f.pop()),assertIsFunction(b,`createSelector expects an output function after the inputs, but received: [${typeof b}]`);const $=se(se({},s),S),{memoize:P,memoizeOptions:T=[],argsMemoize:C=weakMapMemoize,argsMemoizeOptions:O=[],devModeChecks:A={}}=$,F=ensureIsArray(T),j=ensureIsArray(O),L=getDependencies(f),M=P(function(){return d++,b.apply(null,arguments)},...F),I=C(function(){y++;const z=collectInputSelectorResults(L,arguments);return _=M.apply(null,z),_},...j);return Object.assign(I,{resultFunc:b,memoizedResultFunc:M,dependencies:L,dependencyRecomputations:()=>y,resetDependencyRecomputations:()=>{y=0},lastResult:()=>_,recomputations:()=>d,resetRecomputations:()=>{d=0},memoize:P,argsMemoize:C})};return Object.assign(c,{withTypes:()=>c}),c}var createSelector=createSelectorCreator(weakMapMemoize),createStructuredSelector=Object.assign((o,a=createSelector)=>{assertIsObject(o,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof o}`);const s=Object.keys(o),c=s.map(d=>o[d]);return a(c,(...d)=>d.reduce((y,_,S)=>(y[s[S]]=_,y),{}))},{withTypes:()=>createStructuredSelector});function createThunkMiddleware(o){return({dispatch:s,getState:c})=>f=>d=>typeof d=="function"?d(s,c,o):f(d)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,createDraftSafeSelectorCreator=(...o)=>{const a=createSelectorCreator(...o);return(...s)=>{const c=a(...s),f=(d,...y)=>c(isDraft(d)?current(d):d,...y);return Object.assign(f,c),f}};createDraftSafeSelectorCreator(weakMapMemoize);var composeWithDevTools=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose:compose.apply(null,arguments)},hasMatchFunction=o=>o&&typeof o.match=="function";function createAction(o,a){function s(...c){if(a){let f=a(...c);if(!f)throw new Error(formatProdErrorMessage$1(0));return se(se({type:o,payload:f.payload},"meta"in f&&{meta:f.meta}),"error"in f&&{error:f.error})}return{type:o,payload:c[0]}}return s.toString=()=>`${o}`,s.type=o,s.match=c=>isAction(c)&&c.type===o,s}var Tuple=class ba extends Array{constructor(...a){super(...a),Object.setPrototypeOf(this,ba.prototype)}static get[Symbol.species](){return ba}concat(...a){return super.concat.apply(this,a)}prepend(...a){return a.length===1&&Array.isArray(a[0])?new ba(...a[0].concat(this)):new ba(...a.concat(this))}};function freezeDraftable(o){return isDraftable(o)?produce(o,()=>{}):o}function emplace(o,a,s){if(o.has(a)){let f=o.get(a);return s.update&&(f=s.update(f,a,o),o.set(a,f)),f}if(!s.insert)throw new Error(formatProdErrorMessage$1(10));const c=s.insert(a,o);return o.set(a,c),c}function isBoolean(o){return typeof o=="boolean"}var buildGetDefaultMiddleware=()=>function(a){const{thunk:s=!0,immutableCheck:c=!0,serializableCheck:f=!0,actionCreatorCheck:d=!0}=a!=null?a:{};let y=new Tuple;return s&&(isBoolean(s)?y.push(thunk):y.push(withExtraArgument(s.extraArgument))),y},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=o=>a=>{setTimeout(a,o)},rAF=typeof window!="undefined"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10),autoBatchEnhancer=(o={type:"raf"})=>a=>(...s)=>{const c=a(...s);let f=!0,d=!1,y=!1;const _=new Set,S=o.type==="tick"?queueMicrotask:o.type==="raf"?rAF:o.type==="callback"?o.queueNotification:createQueueWithTimer(o.timeout),b=()=>{y=!1,d&&(d=!1,_.forEach($=>$()))};return Object.assign({},c,{subscribe($){const P=()=>f&&$(),T=c.subscribe(P);return _.add($),()=>{T(),_.delete($)}},dispatch($){var P;try{return f=!((P=$==null?void 0:$.meta)!=null&&P[SHOULD_AUTOBATCH]),d=!f,d&&(y||(y=!0,S(b))),c.dispatch($)}finally{f=!0}}})},buildGetDefaultEnhancers=o=>function(s){const{autoBatch:c=!0}=s!=null?s:{};let f=new Tuple(o);return c&&f.push(autoBatchEnhancer(typeof c=="object"?c:void 0)),f},IS_PRODUCTION=!0;function configureStore(o){const a=buildGetDefaultMiddleware(),{reducer:s=void 0,middleware:c,devTools:f=!0,preloadedState:d=void 0,enhancers:y=void 0}=o||{};let _;if(typeof s=="function")_=s;else if(isPlainObject$2(s))_=combineReducers(s);else throw new Error(formatProdErrorMessage$1(1));let S;typeof c=="function"?S=c(a):S=a();let b=compose;f&&(b=composeWithDevTools(se({trace:!IS_PRODUCTION},typeof f=="object"&&f)));const $=applyMiddleware(...S),P=buildGetDefaultEnhancers($);let T=typeof y=="function"?y(P):P();const C=b(...T);return createStore$1(_,d,C)}function executeReducerBuilderCallback(o){const a={},s=[];let c;const f={addCase(d,y){const _=typeof d=="string"?d:d.type;if(!_)throw new Error(formatProdErrorMessage$1(28));if(_ in a)throw new Error(formatProdErrorMessage$1(29));return a[_]=y,f},addMatcher(d,y){return s.push({matcher:d,reducer:y}),f},addDefaultCase(d){return c=d,f}};return o(f),[a,s,c]}function isStateFunction(o){return typeof o=="function"}function createReducer(o,a){let[s,c,f]=executeReducerBuilderCallback(a),d;if(isStateFunction(o))d=()=>freezeDraftable(o());else{const _=freezeDraftable(o);d=()=>_}function y(_=d(),S){let b=[s[S.type],...c.filter(({matcher:$})=>$(S)).map(({reducer:$})=>$)];return b.filter($=>!!$).length===0&&(b=[f]),b.reduce(($,P)=>{if(P)if(isDraft($)){const C=P($,S);return C===void 0?$:C}else{if(isDraftable($))return produce($,T=>P(T,S));{const T=P($,S);if(T===void 0){if($===null)return $;throw new Error(formatProdErrorMessage$1(9))}return T}}return $},_)}return y.getInitialState=d,y}var urlAlphabet="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nanoid=(o=21)=>{let a="",s=o;for(;s--;)a+=urlAlphabet[Math.random()*64|0];return a},matches=(o,a)=>hasMatchFunction(o)?o.match(a):o(a);function isAnyOf(...o){return a=>o.some(s=>matches(s,a))}var commonProperties=["name","message","stack","code"],RejectWithValue=class{constructor(o,a){tr(this,"_type");this.payload=o,this.meta=a}},FulfillWithMeta=class{constructor(o,a){tr(this,"_type");this.payload=o,this.meta=a}},miniSerializeError=o=>{if(typeof o=="object"&&o!==null){const a={};for(const s of commonProperties)typeof o[s]=="string"&&(a[s]=o[s]);return a}return{message:String(o)}},createAsyncThunk=(()=>{function o(a,s,c){const f=createAction(a+"/fulfilled",(S,b,$,P)=>({payload:S,meta:$e(se({},P||{}),{arg:$,requestId:b,requestStatus:"fulfilled"})})),d=createAction(a+"/pending",(S,b,$)=>({payload:void 0,meta:$e(se({},$||{}),{arg:b,requestId:S,requestStatus:"pending"})})),y=createAction(a+"/rejected",(S,b,$,P,T)=>({payload:P,error:(c&&c.serializeError||miniSerializeError)(S||"Rejected"),meta:$e(se({},T||{}),{arg:$,requestId:b,rejectedWithValue:!!P,requestStatus:"rejected",aborted:(S==null?void 0:S.name)==="AbortError",condition:(S==null?void 0:S.name)==="ConditionError"})}));function _(S){return(b,$,P)=>{const T=c!=null&&c.idGenerator?c.idGenerator(S):nanoid(),C=new AbortController;let O;function A(j){O=j,C.abort()}const F=function(){return xt(this,null,function*(){var M,I;let j;try{let U=(M=c==null?void 0:c.condition)==null?void 0:M.call(c,S,{getState:$,extra:P});if(isThenable(U)&&(U=yield U),U===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const z=new Promise((H,G)=>C.signal.addEventListener("abort",()=>G({name:"AbortError",message:O||"Aborted"})));b(d(T,S,(I=c==null?void 0:c.getPendingMeta)==null?void 0:I.call(c,{requestId:T,arg:S},{getState:$,extra:P}))),j=yield Promise.race([z,Promise.resolve(s(S,{dispatch:b,getState:$,extra:P,requestId:T,signal:C.signal,abort:A,rejectWithValue:(H,G)=>new RejectWithValue(H,G),fulfillWithValue:(H,G)=>new FulfillWithMeta(H,G)})).then(H=>{if(H instanceof RejectWithValue)throw H;return H instanceof FulfillWithMeta?f(H.payload,T,S,H.meta):f(H,T,S)})])}catch(U){j=U instanceof RejectWithValue?y(null,T,S,U.payload,U.meta):y(U,T,S)}return c&&!c.dispatchConditionRejection&&y.match(j)&&j.meta.condition||b(j),j})}();return Object.assign(F,{abort:A,requestId:T,arg:S,unwrap(){return F.then(unwrapResult)}})}}return Object.assign(_,{pending:d,rejected:y,fulfilled:f,settled:isAnyOf(y,f),typePrefix:a})}return o.withTypes=()=>o,o})();function unwrapResult(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function isThenable(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(o,a){return`${o}/${a}`}function buildCreateSlice({creators:o}={}){var s;const a=(s=o==null?void 0:o.asyncThunk)==null?void 0:s[asyncThunkSymbol];return function(f){const{name:d,reducerPath:y=d}=f;if(!d)throw new Error(formatProdErrorMessage$1(11));const _=(typeof f.reducers=="function"?f.reducers(buildReducerCreators()):f.reducers)||{},S=Object.keys(_),b={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},$={addCase(F,j){const L=typeof F=="string"?F:F.type;if(!L)throw new Error(formatProdErrorMessage$1(12));if(L in b.sliceCaseReducersByType)throw new Error(formatProdErrorMessage$1(13));return b.sliceCaseReducersByType[L]=j,$},addMatcher(F,j){return b.sliceMatchers.push({matcher:F,reducer:j}),$},exposeAction(F,j){return b.actionCreators[F]=j,$},exposeCaseReducer(F,j){return b.sliceCaseReducersByName[F]=j,$}};S.forEach(F=>{const j=_[F],L={reducerName:F,type:getType(d,F),createNotation:typeof f.reducers=="function"};isAsyncThunkSliceReducerDefinition(j)?handleThunkCaseReducerDefinition(L,j,$,a):handleNormalReducerDefinition(L,j,$)});function P(){const[F={},j=[],L=void 0]=typeof f.extraReducers=="function"?executeReducerBuilderCallback(f.extraReducers):[f.extraReducers],M=se(se({},F),b.sliceCaseReducersByType);return createReducer(f.initialState,I=>{for(let U in M)I.addCase(U,M[U]);for(let U of b.sliceMatchers)I.addMatcher(U.matcher,U.reducer);for(let U of j)I.addMatcher(U.matcher,U.reducer);L&&I.addDefaultCase(L)})}const T=F=>F,C=new WeakMap;let O;const A={name:d,reducerPath:y,reducer(F,j){return O||(O=P()),O(F,j)},actions:b.actionCreators,caseReducers:b.sliceCaseReducersByName,getInitialState(){return O||(O=P()),O.getInitialState()},getSelectors(F=T){const j=emplace(C,this,{insert:()=>new WeakMap});return emplace(j,F,{insert:()=>{var M;const L={};for(const[I,U]of Object.entries((M=f.selectors)!=null?M:{}))L[I]=wrapSelector(this,U,F,this!==A);return L}})},selectSlice(F){let j=F[this.reducerPath];return typeof j=="undefined"&&this!==A&&(j=this.getInitialState()),j},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(F,M={}){var I=M,{reducerPath:j}=I,L=er(I,["reducerPath"]);const U=j!=null?j:this.reducerPath;return F.inject({reducerPath:U,reducer:this.reducer},L),$e(se({},this),{reducerPath:U})}};return A}}function wrapSelector(o,a,s,c){function f(d,...y){let _=s.call(o,d);return typeof _=="undefined"&&c&&(_=o.getInitialState()),a(_,...y)}return f.unwrapped=a,f}var createSlice=buildCreateSlice();function buildReducerCreators(){function o(a,s){return se({_reducerDefinitionType:"asyncThunk",payloadCreator:a},s)}return o.withTypes=()=>o,{reducer(a){return Object.assign({[a.name](...s){return a(...s)}}[a.name],{_reducerDefinitionType:"reducer"})},preparedReducer(a,s){return{_reducerDefinitionType:"reducerWithPrepare",prepare:a,reducer:s}},asyncThunk:o}}function handleNormalReducerDefinition({type:o,reducerName:a,createNotation:s},c,f){let d,y;if("reducer"in c){if(s&&!isCaseReducerWithPrepareDefinition(c))throw new Error(formatProdErrorMessage$1(17));d=c.reducer,y=c.prepare}else d=c;f.addCase(o,d).exposeCaseReducer(a,d).exposeAction(a,y?createAction(o,y):createAction(o))}function isAsyncThunkSliceReducerDefinition(o){return o._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(o){return o._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:o,reducerName:a},s,c,f){if(!f)throw new Error(formatProdErrorMessage$1(18));const{payloadCreator:d,fulfilled:y,pending:_,rejected:S,settled:b,options:$}=s,P=f(o,d,$);c.exposeAction(a,P),y&&c.addCase(P.fulfilled,y),_&&c.addCase(P.pending,_),S&&c.addCase(P.rejected,S),b&&c.addMatcher(P.settled,b),c.exposeCaseReducer(a,{fulfilled:y||noop$1,pending:_||noop$1,rejected:S||noop$1,settled:b||noop$1})}function noop$1(){}var alm="listenerMiddleware";createAction(`${alm}/add`);createAction(`${alm}/removeAll`);createAction(`${alm}/remove`);function formatProdErrorMessage$1(o){return`Minified Redux Toolkit error #${o}; visit https://redux-toolkit.js.org/Errors?code=${o} for the full message or use the non-minified dev environment for full errors. `}var KEY_PREFIX="persist:",FLUSH="persist/FLUSH",REHYDRATE="persist/REHYDRATE",PAUSE="persist/PAUSE",PERSIST="persist/PERSIST",PURGE="persist/PURGE",REGISTER="persist/REGISTER",DEFAULT_VERSION=-1;function _typeof$1(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(s){return typeof s}:_typeof$1=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$1(o)}function ownKeys$2(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$2(o){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}var DEFAULT_TIMEOUT=5e3;function persistReducer(o,a){var s=o.version!==void 0?o.version:DEFAULT_VERSION;o.debug;var c=o.stateReconciler===void 0?autoMergeLevel1:o.stateReconciler,f=o.getStoredState||getStoredState,d=o.timeout!==void 0?o.timeout:DEFAULT_TIMEOUT,y=null,_=!1,S=!0,b=function(P){return P._persist.rehydrated&&y&&!S&&y.update(P),P};return function($,P){var T=$||{},C=T._persist,O=_objectWithoutProperties(T,["_persist"]),A=O;if(P.type===PERSIST){var F=!1,j=function(G,X){F||(P.rehydrate(o.key,G,X),F=!0)};if(d&&setTimeout(function(){!F&&j(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(o.key,'"')))},d),S=!1,y||(y=createPersistoid(o)),C)return _objectSpread$1({},a(A,P),{_persist:C});if(typeof P.rehydrate!="function"||typeof P.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return P.register(o.key),f(o).then(function(H){var G=o.migrate||function(X,W){return Promise.resolve(X)};G(H,s).then(function(X){j(X)},function(X){j(void 0,X)})},function(H){j(void 0,H)}),_objectSpread$1({},a(A,P),{_persist:{version:s,rehydrated:!1}})}else{if(P.type===PURGE)return _=!0,P.result(purgeStoredState(o)),_objectSpread$1({},a(A,P),{_persist:C});if(P.type===FLUSH)return P.result(y&&y.flush()),_objectSpread$1({},a(A,P),{_persist:C});if(P.type===PAUSE)S=!0;else if(P.type===REHYDRATE){if(_)return _objectSpread$1({},A,{_persist:_objectSpread$1({},C,{rehydrated:!0})});if(P.key===o.key){var L=a(A,P),M=P.payload,I=c!==!1&&M!==void 0?c(M,$,L,o):L,U=_objectSpread$1({},I,{_persist:_objectSpread$1({},C,{rehydrated:!0})});return b(U)}}}if(!C)return a($,P);var z=a(A,P);return z===A?$:b(_objectSpread$1({},z,{_persist:C}))}}function formatProdErrorMessage(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var $$observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(o){if(typeof o!="object"||o===null)return!1;for(var a=o;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(o)===a}function createStore(o,a,s){var c;if(typeof a=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage(0));if(typeof a=="function"&&typeof s=="undefined"&&(s=a,a=void 0),typeof s!="undefined"){if(typeof s!="function")throw new Error(formatProdErrorMessage(1));return s(createStore)(o,a)}if(typeof o!="function")throw new Error(formatProdErrorMessage(2));var f=o,d=a,y=[],_=y,S=!1;function b(){_===y&&(_=y.slice())}function $(){if(S)throw new Error(formatProdErrorMessage(3));return d}function P(A){if(typeof A!="function")throw new Error(formatProdErrorMessage(4));if(S)throw new Error(formatProdErrorMessage(5));var F=!0;return b(),_.push(A),function(){if(F){if(S)throw new Error(formatProdErrorMessage(6));F=!1,b();var L=_.indexOf(A);_.splice(L,1),y=null}}}function T(A){if(!isPlainObject(A))throw new Error(formatProdErrorMessage(7));if(typeof A.type=="undefined")throw new Error(formatProdErrorMessage(8));if(S)throw new Error(formatProdErrorMessage(9));try{S=!0,d=f(d,A)}finally{S=!1}for(var F=y=_,j=0;j0&&arguments[0]!==void 0?arguments[0]:initialState$2,s=arguments.length>1?arguments[1]:void 0;switch(s.type){case REGISTER:return _objectSpread({},a,{registry:[].concat(_toConsumableArray(a.registry),[s.key])});case REHYDRATE:var c=a.registry.indexOf(s.key),f=_toConsumableArray(a.registry);return f.splice(c,1),_objectSpread({},a,{registry:f,bootstrapped:f.length===0});default:return a}};function persistStore(o,a,s){var c=s||!1,f=createStore(persistorReducer,initialState$2,a&&a.enhancer?a.enhancer:void 0),d=function(b){f.dispatch({type:REGISTER,key:b})},y=function(b,$,P){var T={type:REHYDRATE,payload:$,err:P,key:b};o.dispatch(T),f.dispatch(T),c&&_.getState().bootstrapped&&(c(),c=!1)},_=_objectSpread({},f,{purge:function(){var b=[];return o.dispatch({type:PURGE,result:function(P){b.push(P)}}),Promise.all(b)},flush:function(){var b=[];return o.dispatch({type:FLUSH,result:function(P){b.push(P)}}),Promise.all(b)},pause:function(){o.dispatch({type:PAUSE})},persist:function(){o.dispatch({type:PERSIST,register:d,rehydrate:y})}});return a&&a.manualPersist||_.persist(),_}var createWebStorage$1={},getStorage$1={};getStorage$1.__esModule=!0;getStorage$1.default=getStorage;function _typeof(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(s){return typeof s}:_typeof=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof(o)}function noop(){}var noopStorage={getItem:noop,setItem:noop,removeItem:noop};function hasStorage(o){if((typeof self=="undefined"?"undefined":_typeof(self))!=="object"||!(o in self))return!1;try{var a=self[o],s="redux-persist ".concat(o," test");a.setItem(s,"test"),a.getItem(s),a.removeItem(s)}catch(c){return!1}return!0}function getStorage(o){var a="".concat(o,"Storage");return hasStorage(a)?self[a]:noopStorage}createWebStorage$1.__esModule=!0;createWebStorage$1.default=createWebStorage;var _getStorage=_interopRequireDefault$1(getStorage$1);function _interopRequireDefault$1(o){return o&&o.__esModule?o:{default:o}}function createWebStorage(o){var a=(0,_getStorage.default)(o);return{getItem:function(c){return new Promise(function(f,d){f(a.getItem(c))})},setItem:function(c,f){return new Promise(function(d,y){d(a.setItem(c,f))})},removeItem:function(c){return new Promise(function(f,d){f(a.removeItem(c))})}}}var default_1=void 0,_createWebStorage=_interopRequireDefault(createWebStorage$1);function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}var _default=(0,_createWebStorage.default)("local");default_1=_default;const initialState$1={menuList:[],isCollapse:!1},menu=createSlice({name:"menu",initialState:initialState$1,reducers:{setMenuList:(o,a)=>{o.menuList=a.payload},updateCollapse:(o,a)=>{o.isCollapse=a.payload}}}),{setMenuList,updateCollapse}=menu.actions,menuSlice=menu.reducer,initialState={visitedTags:[],cachedTags:[]},createAppAsyncThunk=createAsyncThunk.withTypes(),tags=createSlice({name:"tags",initialState,reducers:{addVisitedTags:(o,a)=>{const s=o.visitedTags.findIndex(c=>c.path===a.payload.path);s<0?o.visitedTags.push(a.payload):o.visitedTags[s]=se(se({},o.visitedTags[s]),a.payload)},updateVisitedTags:(o,a)=>{o.visitedTags=a.payload},closeTagsByType:(o,a)=>{let s=[];const{type:c,path:f}=a.payload,{visitedTags:d}=o,y=d.findIndex(S=>S.fullPath===f),_=d.filter(S=>{var b;return(b=S==null?void 0:S.meta)==null?void 0:b.affix});switch(c){case"left":s=d.slice(y);break;case"right":s=d.slice(0,y+1);break;case"other":s=d.filter(S=>S.fullPath===f);break}o.visitedTags=_.concat(s.filter(S=>{var b;return!((b=S.meta)!=null&&b.affix)}))}}}),closeTagByKey=createAppAsyncThunk("tags/closeTagByKey",(o,{getState:a,dispatch:s})=>{const{visitedTags:c}=a().tags,f=c.findIndex(y=>y.fullPath===o),d=c.filter(y=>y.fullPath!==o);return s(updateVisitedTags(d)),Promise.resolve({tagIndex:f,tagsList:d})}),closeAllTags=createAppAsyncThunk("tags/closeAllTags",(o,{getState:a,dispatch:s})=>{const{visitedTags:c}=a().tags,f=c.filter(d=>{var y;return(y=d==null?void 0:d.meta)==null?void 0:y.affix});return s(updateVisitedTags(f)),Promise.resolve(f)}),{addVisitedTags,updateVisitedTags,closeTagsByType}=tags.actions,tagsSlice=tags.reducer,persistConfig={key:"redux-persist",storage:default_1},store=configureStore({reducer:{menu:persistReducer(persistConfig,menuSlice),tags:persistReducer(persistConfig,tagsSlice)},middleware:o=>o({serializableCheck:!1}),devTools:!0}),persistor=persistStore(store),useAppDispatch=useDispatch,useAppSelector=useSelector,useStyles$7=createStyles(({token:o},a)=>{const{active:s}=a;return{"compo_tag-item":{display:"inline-block",verticalAlign:"top",height:"24px",margin:"0 2px",padding:"0 8px",borderRadius:"3px",lineHeight:"24px",color:s?"#fff":"#555",background:s?o.colorPrimary:"#fff",overflow:"hidden",cursor:"pointer","&__dot":{display:"inline-block",verticalAlign:"baseline",width:"8px",height:"8px",marginRight:"6px",borderRadius:"50%",background:s?"#fff":"#dcdee0"},"&__name":{fontSize:"12px"}},verticalAlign:"baseline",svg:{width:"8px",height:"8px"},active:{border:"none",color:"#fff",background:o.colorPrimary,".anticon-close":{color:"#fff"}}}}),TagItem=({name:o,fixed:a,active:s=!1,closeTag:c,onClick:f})=>{const{styles:d}=useStyles$7({active:s});return jsxRuntimeExports.jsxs(Tag$1,{className:classNames(d["compo_tag-item"],{[d.active]:s}),closable:!a,onClose:c,onClick:f,children:[jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__dot`}),jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__name`,children:o})]})},useStyles$6=createStyles(()=>({layout_tags:{zIndex:"299",display:"flex",justifyContent:"space-between",height:"32px",padding:"4px 12px",lineHeight:"32px","&__main":{position:"relative",width:"calc(100% - 116px)",height:"24px",overflow:"hidden","&-body":{position:"absolute",height:"100%",padding:"0 2px",overflow:"visible",whiteSpace:"nowrap",transition:"left .5s ease"}},"&__btn-space":{marginLeft:"4px"}}})),LayoutTags=()=>{const{t:o}=useTranslation(),{styles:a}=useStyles$6(),s=[{key:"left",label:o("关闭左侧")},{key:"right",label:o("关闭右侧")},{key:"other",label:o("关闭其它")},{key:"all",label:o("关闭所有")}],c=({key:z})=>{z==="all"?P(closeAllTags()).then(({payload:H})=>{const G=H.slice(-1)[0];T!==(G==null?void 0:G.fullPath)&&b(G==null?void 0:G.fullPath)}):P(closeTagsByType({type:z,path:T}))},f=reactExports.useRef(null),d=reactExports.useRef(null),[y,_]=reactExports.useState(0),{pathname:S}=useLocation(),b=useNavigate(),$=useAppSelector(z=>z.tags.visitedTags),P=useAppDispatch(),[T,C]=reactExports.useState(S);reactExports.useEffect(()=>{O(routeList).forEach(H=>{P(addVisitedTags(H))})},[]),reactExports.useEffect(()=>{const z=searchRoute(S,routeList);z&&P(addVisitedTags(z)),C(S)},[S]),reactExports.useEffect(()=>{var G;const z=(G=d.current)==null?void 0:G.childNodes,H=Array.from(z).find(X=>X.dataset.path===T);A(H)},[T]);const O=(z,H="/")=>{const G=[],X=W=>{var K;if((K=W.meta)!=null&&K.affix){const ie=W.path.startsWith("/")?W.path:H+W.path;G.push($e(se({},W),{path:ie}))}W.children&&W.children.length&&W.children.forEach(ie=>X(ie))};return z.forEach(W=>X(W)),G},A=z=>{var K,ie,ee,de,Z,Q,J,ne,fe,le,ae;let H=0;const G=4,X=(K=f.current)==null?void 0:K.offsetWidth;((ie=d.current)==null?void 0:ie.offsetWidth)-y&&((Q=z==null?void 0:z.offsetLeft)!=null?Q:0)+((J=z==null?void 0:z.offsetWidth)!=null?J:0)<-y+X?H=Math.min(0,X-((ne=z==null?void 0:z.offsetWidth)!=null?ne:0)-((fe=z==null?void 0:z.offsetLeft)!=null?fe:0)-G):H=-(((le=z==null?void 0:z.offsetLeft)!=null?le:0)-(X-G-((ae=z==null?void 0:z.offsetWidth)!=null?ae:0))),_(H)},F=z=>{var W,K;let H=0;const G=(W=f.current)==null?void 0:W.offsetWidth,X=(K=d.current)==null?void 0:K.offsetWidth;z>0?H=Math.min(0,y+z):G=-(X-G)&&(H=Math.max(y+z,G-X)):H=0,_(H)},j=z=>{const{type:H}=z;let G=0;H==="wheel"&&(G=z.deltaY?z.deltaY*2:-(z.detail||0)*2),F(G)},L=z=>{P(closeTagByKey(z)).then(({payload:H})=>{let G={};const{tagIndex:X,tagsList:W}=H,K=W.length;z===T&&(X<=K-1?G=W[X]:G=W[K-1],b(G==null?void 0:G.fullPath))})},M=z=>{C(z),b(z)};function I(){return new Date().getTime().toString()}const U=()=>{$.findIndex(H=>H.fullPath===T)>=0&&b(T,{replace:!0,state:{key:I()}})};return jsxRuntimeExports.jsxs("div",{className:a.layout_tags,children:[jsxRuntimeExports.jsx(Button,{className:`${a.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(LeftOutlined,{}),size:"small",onClick:()=>F(200)}),jsxRuntimeExports.jsx("div",{ref:f,className:`${a.layout_tags}__main`,onWheel:j,children:jsxRuntimeExports.jsx("div",{ref:d,className:`${a.layout_tags}__main-body`,style:{left:`${y}px`},children:$.map(z=>{var H,G;return jsxRuntimeExports.jsx("span",{"data-path":z.fullPath,children:jsxRuntimeExports.jsx(TagItem,{name:o((H=z.meta)==null?void 0:H.title),active:T===z.fullPath,fixed:(G=z.meta)==null?void 0:G.affix,onClick:()=>M(z.fullPath),closeTag:()=>L(z.fullPath)},z.key)},z.fullPath)})})}),jsxRuntimeExports.jsx(Button,{className:`${a.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(RightOutlined,{}),size:"small",onClick:()=>F(-200)}),jsxRuntimeExports.jsx(Button,{className:classNames(`${a.layout_tags}__btn`,`${a.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(RedoOutlined,{}),size:"small",onClick:()=>U()}),jsxRuntimeExports.jsx(Dropdown,{menu:{items:s,onClick:c},placement:"bottomLeft",children:jsxRuntimeExports.jsx(Button,{className:classNames(`${a.layout_tags}__btn`,`${a.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(CloseOutlined,{}),size:"small"})})]})};function LayoutBreadcrumb(o){const{t:a,i18n:s}=useTranslation(),[c,f]=reactExports.useState([]),{pathname:d}=useLocation(),y=useAppSelector(_=>_.menu.menuList);return reactExports.useEffect(()=>{const S=(matchRoutes(y,d)||[]).map(b=>{const{name:$,icon:P=""}=b==null?void 0:b.route;return{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[P&&jsxRuntimeExports.jsx(SvgIcon,{name:P,style:{marginRight:8}}),jsxRuntimeExports.jsx("span",{children:a($)})]})}});f(S)},[d,s.language]),jsxRuntimeExports.jsx("div",{className:"flex-center-v",style:{padding:"0 16px"},children:jsxRuntimeExports.jsx(Breadcrumb,{items:c})})}const useStyles$5=createStyles(()=>({"compo_fold-trigger":{display:"flex",alignItems:"center",cursor:"pointer"},unfold:{svg:{transform:"scaleX(-1)",transition:"transform 0.2s"}}}));function FoldTrigger(){const{styles:o,cx:a}=useStyles$5(),s=useSettings(),{setSettings:c}=useSettingActions();function f(){c($e(se({},s),{unfold:!s.unfold}))}return jsxRuntimeExports.jsx("span",{className:a(o["compo_fold-trigger"],{[o.unfold]:!s.unfold}),onClick:f,children:jsxRuntimeExports.jsx(SvgIcon,{name:"unfold",size:20})})}const useStyles$4=createStyles(({token:o})=>({"layout-header":{flexDirection:"column",height:"auto",background:o.colorBgBase,padding:0,boxShadow:o.boxShadowTertiary}})),LayoutHeader=o=>{const{Header:a}=Layout,{styles:s}=useStyles$4(),{hasCrumbs:c,hasTabs:f}=useGlobalStore();return jsxRuntimeExports.jsxs(a,{className:classNames("flex-between-h",s["layout-header"]),children:[jsxRuntimeExports.jsxs("div",{className:"flex-between-h",style:{padding:"0 12px"},children:[jsxRuntimeExports.jsxs("div",{className:"flex-center-v",children:[jsxRuntimeExports.jsx(FoldTrigger,{}),c&&jsxRuntimeExports.jsx(LayoutBreadcrumb,{})]}),jsxRuntimeExports.jsx(LayoutFeature,{})]}),f?jsxRuntimeExports.jsx(LayoutTags,{}):null]})},useStyles$3=createStyles(({token:o})=>({layout_wrapper:{display:"flex",width:"100%",height:"100vh",overflowX:"hidden",background:o.colorBgContainer,".ant-layout-content":{height:"calc(100vh - 48px)",boxSizing:"border-box",flex:"1",padding:o.paddingMD,overflowX:"hidden"},".ant-layout-sider":{height:"calc(100vh)",borderInlineEnd:"1px solid rgba(5, 5, 5, 0.06)",marginInlineEnd:"-1px"},".ant-layout":{background:o.colorBgContainer}}})),useStyles$2=createStyles(()=>({anticon:{display:"inline-flex",alignItems:"center",verticalAlign:"middle",cursor:"pointer",svg:{display:"inline-block"}}}));function IconifyIcon(c){var f=c,{icon:o,size:a}=f,s=er(f,["icon","size"]);const{styles:d}=useStyles$2();return jsxRuntimeExports.jsx(Icon,$e(se({icon:o},s),{className:d.anticon,width:a}))}const getOpenKeys=o=>{let a="";const s=[];return o.split("/").forEach(c=>{c&&(a+=`/${c}`,s.push(a))}),s.slice(0,-1)},getItem=(o,a,s,c,f)=>({label:o,key:a,icon:s,children:c,type:f}),LayoutMenu=o=>{const{pathname:a}=useLocation(),{setMenuList:s}=o,[c,f]=reactExports.useState(!1),[d,y]=reactExports.useState([]),[_,S]=reactExports.useState([]),[b,$]=reactExports.useState([a]),{t:P,i18n:T}=useTranslation();reactExports.useEffect(()=>{$([a]),S(getOpenKeys(a))},[a]);const C=(M,I)=>M?M.startsWith("gbeata-")?jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(IconifyIcon,{icon:M.replace("gbeata-",""),size:I||16})}):jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(SvgIcon,{name:M,size:I||16})}):null,O=(M,I=[])=>(M.forEach(U=>{var z;if(!((z=U==null?void 0:U.children)!=null&&z.length))return I.push(getItem(P(U.name),U.path,C(U.icon,U.iconSize)));I.push(getItem(P(U.name),U.path,C(U.icon,U.iconSize),O(U.children)))}),I),A=()=>xt(void 0,null,function*(){f(!0);try{const M=yield getAsyncMenus();y(O(M)),s(M)}finally{f(!1)}});reactExports.useEffect(()=>{A()},[T.language]);const F=M=>{if(M.length===0||M.length===1)return S(M);const I=M[M.length-1];if(I.includes(M[0]))return S(M);S([I])},j=useNavigate(),L=({key:M})=>{j(M)};return jsxRuntimeExports.jsx("div",{className:"layout_menu",children:jsxRuntimeExports.jsx(Spin,{spinning:c,tip:"Loading...",children:jsxRuntimeExports.jsx(Menu,{style:{border:"none"},mode:"inline",triggerSubMenuAction:"click",inlineIndent:20,subMenuOpenDelay:.2,openKeys:_,selectedKeys:b,items:d,onClick:L,onOpenChange:F})})})},mapStateToProps=o=>o.menu,mapDispatchToProps={setMenuList},LayoutMenu$1=connect(mapStateToProps,mapDispatchToProps)(LayoutMenu),BasicLayout=o=>{const{state:a}=useLocation(),{unfold:s}=useSettings(),{key:c="key"}=a||{};useTitle();const{Sider:f,Content:d}=Layout,{styles:y}=useStyles$3();return jsxRuntimeExports.jsxs(Layout,{className:y.layout_wrapper,children:[jsxRuntimeExports.jsxs(f,{width:240,trigger:null,theme:"light",collapsed:s,className:"ant-layout-sider",children:[jsxRuntimeExports.jsx(AppLogo,{}),jsxRuntimeExports.jsx(LayoutMenu$1,{})]}),jsxRuntimeExports.jsxs(Layout,{children:[jsxRuntimeExports.jsx(LayoutHeader,{}),jsxRuntimeExports.jsx(d,{children:jsxRuntimeExports.jsx(ErrorBoundary,{children:jsxRuntimeExports.jsx(Outlet,{},c)})})]})]})},GuardRoute=({children:o})=>{const a=["/","/home","/login"],{pathname:s}=useLocation(),{token:c}=useUserToken();return c?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:o}):a.includes(s)?jsxRuntimeExports.jsx(Navigate,{to:"/login",replace:!0}):jsxRuntimeExports.jsx(Navigate,{to:`/login?redirect=${s}`,replace:!0})},LayoutGuard=()=>jsxRuntimeExports.jsx(GuardRoute,{children:jsxRuntimeExports.jsx(BasicLayout,{})}),CompoRoute={path:"/compo",name:"Compo",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"组件",icon:"compo",orderNo:6},children:[{path:"image-upload",name:"ImageUpload",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../image-upload-63a46817.js"),["assets/image-upload-63a46817.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-6d372edc.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"图片上传",key:"imageUpload"}},{path:"drag",name:"Drag",meta:{title:"拖拽"},children:[{path:"drag-list",name:"DragList",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-list-bcbff0a8.js"),["assets/drag-list-bcbff0a8.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-6d372edc.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"列表拖拽",key:"dragList"}},{path:"drag-resize",name:"DragResize",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-resize-b57a8ad5.js"),["assets/drag-resize-b57a8ad5.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-6d372edc.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"组件拖拽",key:"dragResize"}}]},{path:"transfer",name:"Transfer",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-733cf98d.js"),["assets/index-733cf98d.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-6d372edc.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"穿梭框"}},{path:"count-up",name:"CountUp",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../count-up-ad6a268a.js"),["assets/count-up-ad6a268a.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-646dffa4.js","assets/websiteSetting-6d372edc.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"数字滚动",key:"countUp"}}]},__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:CompoRoute},Symbol.toStringTag,{value:"Module"}));var ExceptionEnum=(o=>(o[o.PAGE_NOT_ACCESS=403]="PAGE_NOT_ACCESS",o[o.PAGE_NOT_FOUND=404]="PAGE_NOT_FOUND",o[o.SERVER_ERROR=500]="SERVER_ERROR",o))(ExceptionEnum||{});const ExceptionRoute={path:"/exception",name:"ExceptionPage",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"异常页面",icon:"bug",orderNo:11},children:[{path:"page-403",name:"Page403",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"403页面",key:"page403"},loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!0})},{path:"page-404",name:"Page404",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"404页面",key:"page404"},loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!0})},{path:"page-500",name:"Page500",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"500页面",key:"page500"},loader:()=>({status:ExceptionEnum.SERVER_ERROR,withCard:!0})}]},__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:ExceptionRoute},Symbol.toStringTag,{value:"Module"})),FormRoute={path:"/form",name:"Form",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"表单",icon:"form",orderNo:3},children:[{path:"basic-form",name:"BasicForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-8783bc29.js"),["assets/index-8783bc29.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-6d372edc.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"基础表单",key:"basicForm"}},{path:"search-form",name:"SearchForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-6fedfb5f.js"),["assets/index-6fedfb5f.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-6a9c85e1.js","assets/websiteSetting-6d372edc.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"查询表单",key:"searchForm"}}]},__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormRoute},Symbol.toStringTag,{value:"Module"})),HomePage=lazy$2(()=>__vitePreload(()=>import("../index-5ad447d9.js"),["assets/index-5ad447d9.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-d47ae162.js","assets/Translatex-37dc0dc8.js","assets/index-646dffa4.js","assets/index-20e61b4c.js","assets/index-6a9c85e1.js"])),HomeRoute={path:"/home",element:jsxRuntimeExports.jsx(LayoutGuard,{}),loader:()=>null,meta:{title:"首页",icon:"home",affix:!0,orderNo:1,hideChildrenInMenu:!0},children:[{path:"",element:LazyLoad(HomePage),meta:{title:"首页",key:"home",icon:"home",orderNo:1,hideMenu:!0}}]},__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:HomeRoute},Symbol.toStringTag,{value:"Module"})),UserRoute$1={path:"/system",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:t("系统设置"),icon:"gbeata-ant-design:setting-outlined",orderNo:13,iconSize:20},children:[{path:"role",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-a67f0ab9.js"),["assets/index-a67f0ab9.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/api-fb89cc47.js","assets/index-20e61b4c.js","assets/index-6a9c85e1.js"]))),meta:{title:t("角色管理"),key:"role"}},{path:"user",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-0cc67023.js"),["assets/index-0cc67023.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/api-fb89cc47.js","assets/index-20e61b4c.js","assets/index-6a9c85e1.js"]))),meta:{title:t("用户管理"),key:"user"}}]},__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:UserRoute$1},Symbol.toStringTag,{value:"Module"})),UserRoute={path:"/user",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"用户管理",icon:"ic_user",orderNo:2,iconSize:20},children:[{path:"profile",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-a0d283f6.js"),["assets/index-a0d283f6.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/Translatex-37dc0dc8.js","assets/index-d47ae162.js"]))),meta:{title:"个人中心",key:"profile"}},{path:"user-list",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-35b33c77.js"),["assets/index-35b33c77.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-d47ae162.js","assets/Translatex-37dc0dc8.js"]))),meta:{title:"用户列表",key:"userList"}},{path:"add-user",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-891af874.js"),["assets/index-891af874.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/Translatex-37dc0dc8.js"]))),meta:{title:"添加用户",key:"addUser"}}]},__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:UserRoute},Symbol.toStringTag,{value:"Module"})),TOKEN_KEY="TOKEN_KEY",APP_LOCAL_CACHE_KEY="APP_LOCAL_CACHE_KEY",APP_SESSION_CACHE_KEY="APP_SESSION_CACHE_KEY";var CacheTypeEnum=(o=>(o[o.SESSION=0]="SESSION",o[o.LOCAL=1]="LOCAL",o))(CacheTypeEnum||{}),MenuTypeEnum=(o=>(o.SIDER_MENU="sider-menu",o.HEADER_MENU="header-menu",o.HYBRID_MENU="hybrid-menu",o))(MenuTypeEnum||{}),MenuModeEnum=(o=>(o.VERTICAL="vertical",o.HORIZONTAL="horizontal",o.INLINE="inline",o))(MenuModeEnum||{}),MenuFoldBtnEnum=(o=>(o.NONE="none",o.HEADER="header",o.SIDER="sider",o))(MenuFoldBtnEnum||{});const appSetting={themeColor:"#1890ff",permissionCacheType:CacheTypeEnum.LOCAL,headerSetting:{showBreadCrumb:!0,showTags:!0,showSearch:!0,showFullScreen:!0,showLocale:!1,showDoc:!1,showGithub:!0},menuSetting:{menuType:MenuTypeEnum.SIDER_MENU,menuMode:MenuModeEnum.INLINE,menuTheme:ThemeEnum.DARK,menuSplit:!1,menuCanDrag:!1,menuFold:!1,menuFoldBtn:MenuFoldBtnEnum.HEADER,menuFoldShowTitle:!1,menuWidth:210,menuFixed:!1,menuHidden:!1},transitionSetting:{openNProgress:!1,openPageLoading:!1,openTransition:!0,basicTransition:PageTransitionEnum.FADE},permissionMode:PermissionModeEnum.MAPPING,tagsCached:!1,openKeepAlive:!0,lockScreenTime:0,showFooter:!1,colorWeak:!1,grayMode:!1};function isDevMode(){return!1}const DEFAULT_CACHE_TIME=60*60*24*7,cacheCipher={key:"_11111000001111@",iv:"@11111000001111_"},enableStorageEncryption=!isDevMode();var aes={exports:{}},core={exports:{}},hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(o,a){(function(s,c){o.exports=c()})(commonjsGlobal,function(){var s=s||function(c,f){var d;if(typeof window!="undefined"&&window.crypto&&(d=window.crypto),typeof self!="undefined"&&self.crypto&&(d=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(d=globalThis.crypto),!d&&typeof window!="undefined"&&window.msCrypto&&(d=window.msCrypto),!d&&typeof commonjsGlobal!="undefined"&&commonjsGlobal.crypto&&(d=commonjsGlobal.crypto),!d&&typeof commonjsRequire=="function")try{d=require$$0}catch(L){}var y=function(){if(d){if(typeof d.getRandomValues=="function")try{return d.getRandomValues(new Uint32Array(1))[0]}catch(L){}if(typeof d.randomBytes=="function")try{return d.randomBytes(4).readInt32LE()}catch(L){}}throw new Error("Native crypto module could not be used to get secure random number.")},_=Object.create||function(){function L(){}return function(M){var I;return L.prototype=M,I=new L,L.prototype=null,I}}(),S={},b=S.lib={},$=b.Base=function(){return{extend:function(L){var M=_(this);return L&&M.mixIn(L),(!M.hasOwnProperty("init")||this.init===M.init)&&(M.init=function(){M.$super.init.apply(this,arguments)}),M.init.prototype=M,M.$super=this,M},create:function(){var L=this.extend();return L.init.apply(L,arguments),L},init:function(){},mixIn:function(L){for(var M in L)L.hasOwnProperty(M)&&(this[M]=L[M]);L.hasOwnProperty("toString")&&(this.toString=L.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),P=b.WordArray=$.extend({init:function(L,M){L=this.words=L||[],M!=f?this.sigBytes=M:this.sigBytes=L.length*4},toString:function(L){return(L||C).stringify(this)},concat:function(L){var M=this.words,I=L.words,U=this.sigBytes,z=L.sigBytes;if(this.clamp(),U%4)for(var H=0;H>>2]>>>24-H%4*8&255;M[U+H>>>2]|=G<<24-(U+H)%4*8}else for(var X=0;X>>2]=I[X>>>2];return this.sigBytes+=z,this},clamp:function(){var L=this.words,M=this.sigBytes;L[M>>>2]&=4294967295<<32-M%4*8,L.length=c.ceil(M/4)},clone:function(){var L=$.clone.call(this);return L.words=this.words.slice(0),L},random:function(L){for(var M=[],I=0;I>>2]>>>24-z%4*8&255;U.push((H>>>4).toString(16)),U.push((H&15).toString(16))}return U.join("")},parse:function(L){for(var M=L.length,I=[],U=0;U>>3]|=parseInt(L.substr(U,2),16)<<24-U%8*4;return new P.init(I,M/2)}},O=T.Latin1={stringify:function(L){for(var M=L.words,I=L.sigBytes,U=[],z=0;z>>2]>>>24-z%4*8&255;U.push(String.fromCharCode(H))}return U.join("")},parse:function(L){for(var M=L.length,I=[],U=0;U>>2]|=(L.charCodeAt(U)&255)<<24-U%4*8;return new P.init(I,M)}},A=T.Utf8={stringify:function(L){try{return decodeURIComponent(escape(O.stringify(L)))}catch(M){throw new Error("Malformed UTF-8 data")}},parse:function(L){return O.parse(unescape(encodeURIComponent(L)))}},F=b.BufferedBlockAlgorithm=$.extend({reset:function(){this._data=new P.init,this._nDataBytes=0},_append:function(L){typeof L=="string"&&(L=A.parse(L)),this._data.concat(L),this._nDataBytes+=L.sigBytes},_process:function(L){var M,I=this._data,U=I.words,z=I.sigBytes,H=this.blockSize,G=H*4,X=z/G;L?X=c.ceil(X):X=c.max((X|0)-this._minBufferSize,0);var W=X*H,K=c.min(W*4,z);if(W){for(var ie=0;ie>>2]>>>24-C%4*8&255,A=b[C+1>>>2]>>>24-(C+1)%4*8&255,F=b[C+2>>>2]>>>24-(C+2)%4*8&255,j=O<<16|A<<8|F,L=0;L<4&&C+L*.75<$;L++)T.push(P.charAt(j>>>6*(3-L)&63));var M=P.charAt(64);if(M)for(;T.length%4;)T.push(M);return T.join("")},parse:function(S){var b=S.length,$=this._map,P=this._reverseMap;if(!P){P=this._reverseMap=[];for(var T=0;T<$.length;T++)P[$.charCodeAt(T)]=T}var C=$.charAt(64);if(C){var O=S.indexOf(C);O!==-1&&(b=O)}return _(S,b,P)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function _(S,b,$){for(var P=[],T=0,C=0;C>>6-C%4*2,F=O|A;P[T>>>2]|=F<<24-T%4*8,T++}return d.create(P,T)}}(),s.enc.Base64})}(encBase64)),encBase64.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return function(c){var f=s,d=f.lib,y=d.WordArray,_=d.Hasher,S=f.algo,b=[];(function(){for(var A=0;A<64;A++)b[A]=c.abs(c.sin(A+1))*4294967296|0})();var $=S.MD5=_.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(A,F){for(var j=0;j<16;j++){var L=F+j,M=A[L];A[L]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}var I=this._hash.words,U=A[F+0],z=A[F+1],H=A[F+2],G=A[F+3],X=A[F+4],W=A[F+5],K=A[F+6],ie=A[F+7],ee=A[F+8],de=A[F+9],Z=A[F+10],Q=A[F+11],J=A[F+12],ne=A[F+13],fe=A[F+14],le=A[F+15],ae=I[0],ce=I[1],ge=I[2],pe=I[3];ae=P(ae,ce,ge,pe,U,7,b[0]),pe=P(pe,ae,ce,ge,z,12,b[1]),ge=P(ge,pe,ae,ce,H,17,b[2]),ce=P(ce,ge,pe,ae,G,22,b[3]),ae=P(ae,ce,ge,pe,X,7,b[4]),pe=P(pe,ae,ce,ge,W,12,b[5]),ge=P(ge,pe,ae,ce,K,17,b[6]),ce=P(ce,ge,pe,ae,ie,22,b[7]),ae=P(ae,ce,ge,pe,ee,7,b[8]),pe=P(pe,ae,ce,ge,de,12,b[9]),ge=P(ge,pe,ae,ce,Z,17,b[10]),ce=P(ce,ge,pe,ae,Q,22,b[11]),ae=P(ae,ce,ge,pe,J,7,b[12]),pe=P(pe,ae,ce,ge,ne,12,b[13]),ge=P(ge,pe,ae,ce,fe,17,b[14]),ce=P(ce,ge,pe,ae,le,22,b[15]),ae=T(ae,ce,ge,pe,z,5,b[16]),pe=T(pe,ae,ce,ge,K,9,b[17]),ge=T(ge,pe,ae,ce,Q,14,b[18]),ce=T(ce,ge,pe,ae,U,20,b[19]),ae=T(ae,ce,ge,pe,W,5,b[20]),pe=T(pe,ae,ce,ge,Z,9,b[21]),ge=T(ge,pe,ae,ce,le,14,b[22]),ce=T(ce,ge,pe,ae,X,20,b[23]),ae=T(ae,ce,ge,pe,de,5,b[24]),pe=T(pe,ae,ce,ge,fe,9,b[25]),ge=T(ge,pe,ae,ce,G,14,b[26]),ce=T(ce,ge,pe,ae,ee,20,b[27]),ae=T(ae,ce,ge,pe,ne,5,b[28]),pe=T(pe,ae,ce,ge,H,9,b[29]),ge=T(ge,pe,ae,ce,ie,14,b[30]),ce=T(ce,ge,pe,ae,J,20,b[31]),ae=C(ae,ce,ge,pe,W,4,b[32]),pe=C(pe,ae,ce,ge,ee,11,b[33]),ge=C(ge,pe,ae,ce,Q,16,b[34]),ce=C(ce,ge,pe,ae,fe,23,b[35]),ae=C(ae,ce,ge,pe,z,4,b[36]),pe=C(pe,ae,ce,ge,X,11,b[37]),ge=C(ge,pe,ae,ce,ie,16,b[38]),ce=C(ce,ge,pe,ae,Z,23,b[39]),ae=C(ae,ce,ge,pe,ne,4,b[40]),pe=C(pe,ae,ce,ge,U,11,b[41]),ge=C(ge,pe,ae,ce,G,16,b[42]),ce=C(ce,ge,pe,ae,K,23,b[43]),ae=C(ae,ce,ge,pe,de,4,b[44]),pe=C(pe,ae,ce,ge,J,11,b[45]),ge=C(ge,pe,ae,ce,le,16,b[46]),ce=C(ce,ge,pe,ae,H,23,b[47]),ae=O(ae,ce,ge,pe,U,6,b[48]),pe=O(pe,ae,ce,ge,ie,10,b[49]),ge=O(ge,pe,ae,ce,fe,15,b[50]),ce=O(ce,ge,pe,ae,W,21,b[51]),ae=O(ae,ce,ge,pe,J,6,b[52]),pe=O(pe,ae,ce,ge,G,10,b[53]),ge=O(ge,pe,ae,ce,Z,15,b[54]),ce=O(ce,ge,pe,ae,z,21,b[55]),ae=O(ae,ce,ge,pe,ee,6,b[56]),pe=O(pe,ae,ce,ge,le,10,b[57]),ge=O(ge,pe,ae,ce,K,15,b[58]),ce=O(ce,ge,pe,ae,ne,21,b[59]),ae=O(ae,ce,ge,pe,X,6,b[60]),pe=O(pe,ae,ce,ge,Q,10,b[61]),ge=O(ge,pe,ae,ce,H,15,b[62]),ce=O(ce,ge,pe,ae,de,21,b[63]),I[0]=I[0]+ae|0,I[1]=I[1]+ce|0,I[2]=I[2]+ge|0,I[3]=I[3]+pe|0},_doFinalize:function(){var A=this._data,F=A.words,j=this._nDataBytes*8,L=A.sigBytes*8;F[L>>>5]|=128<<24-L%32;var M=c.floor(j/4294967296),I=j;F[(L+64>>>9<<4)+15]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,F[(L+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,A.sigBytes=(F.length+1)*4,this._process();for(var U=this._hash,z=U.words,H=0;H<4;H++){var G=z[H];z[H]=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360}return U},clone:function(){var A=_.clone.call(this);return A._hash=this._hash.clone(),A}});function P(A,F,j,L,M,I,U){var z=A+(F&j|~F&L)+M+U;return(z<>>32-I)+F}function T(A,F,j,L,M,I,U){var z=A+(F&L|j&~L)+M+U;return(z<>>32-I)+F}function C(A,F,j,L,M,I,U){var z=A+(F^j^L)+M+U;return(z<>>32-I)+F}function O(A,F,j,L,M,I,U){var z=A+(j^(F|~L))+M+U;return(z<>>32-I)+F}f.MD5=_._createHelper($),f.HmacMD5=_._createHmacHelper($)}(Math),s.MD5})}(md5)),md5.exports}var evpkdf={exports:{}},sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return function(){var c=s,f=c.lib,d=f.WordArray,y=f.Hasher,_=c.algo,S=[],b=_.SHA1=y.extend({_doReset:function(){this._hash=new d.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function($,P){for(var T=this._hash.words,C=T[0],O=T[1],A=T[2],F=T[3],j=T[4],L=0;L<80;L++){if(L<16)S[L]=$[P+L]|0;else{var M=S[L-3]^S[L-8]^S[L-14]^S[L-16];S[L]=M<<1|M>>>31}var I=(C<<5|C>>>27)+j+S[L];L<20?I+=(O&A|~O&F)+1518500249:L<40?I+=(O^A^F)+1859775393:L<60?I+=(O&A|O&F|A&F)-1894007588:I+=(O^A^F)-899497514,j=F,F=A,A=O<<30|O>>>2,O=C,C=I}T[0]=T[0]+C|0,T[1]=T[1]+O|0,T[2]=T[2]+A|0,T[3]=T[3]+F|0,T[4]=T[4]+j|0},_doFinalize:function(){var $=this._data,P=$.words,T=this._nDataBytes*8,C=$.sigBytes*8;return P[C>>>5]|=128<<24-C%32,P[(C+64>>>9<<4)+14]=Math.floor(T/4294967296),P[(C+64>>>9<<4)+15]=T,$.sigBytes=P.length*4,this._process(),this._hash},clone:function(){var $=y.clone.call(this);return $._hash=this._hash.clone(),$}});c.SHA1=y._createHelper(b),c.HmacSHA1=y._createHmacHelper(b)}(),s.SHA1})}(sha1)),sha1.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){(function(){var c=s,f=c.lib,d=f.Base,y=c.enc,_=y.Utf8,S=c.algo;S.HMAC=d.extend({init:function(b,$){b=this._hasher=new b.init,typeof $=="string"&&($=_.parse($));var P=b.blockSize,T=P*4;$.sigBytes>T&&($=b.finalize($)),$.clamp();for(var C=this._oKey=$.clone(),O=this._iKey=$.clone(),A=C.words,F=O.words,j=0;j>>2]&255;W.sigBytes-=K}};d.BlockCipher=C.extend({cfg:C.cfg.extend({mode:F,padding:L}),reset:function(){var W;C.reset.call(this);var K=this.cfg,ie=K.iv,ee=K.mode;this._xformMode==this._ENC_XFORM_MODE?W=ee.createEncryptor:(W=ee.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==W?this._mode.init(this,ie&&ie.words):(this._mode=W.call(ee,this,ie&&ie.words),this._mode.__creator=W)},_doProcessBlock:function(W,K){this._mode.processBlock(W,K)},_doFinalize:function(){var W,K=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(K.pad(this._data,this.blockSize),W=this._process(!0)):(W=this._process(!0),K.unpad(W)),W},blockSize:128/32});var M=d.CipherParams=y.extend({init:function(W){this.mixIn(W)},toString:function(W){return(W||this.formatter).stringify(this)}}),I=f.format={},U=I.OpenSSL={stringify:function(W){var K,ie=W.ciphertext,ee=W.salt;return ee?K=_.create([1398893684,1701076831]).concat(ee).concat(ie):K=ie,K.toString($)},parse:function(W){var K,ie=$.parse(W),ee=ie.words;return ee[0]==1398893684&&ee[1]==1701076831&&(K=_.create(ee.slice(2,4)),ee.splice(0,4),ie.sigBytes-=16),M.create({ciphertext:ie,salt:K})}},z=d.SerializableCipher=y.extend({cfg:y.extend({format:U}),encrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee);var de=W.createEncryptor(ie,ee),Z=de.finalize(K),Q=de.cfg;return M.create({ciphertext:Z,key:ie,iv:Q.iv,algorithm:W,mode:Q.mode,padding:Q.padding,blockSize:W.blockSize,formatter:ee.format})},decrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee),K=this._parse(K,ee.format);var de=W.createDecryptor(ie,ee).finalize(K.ciphertext);return de},_parse:function(W,K){return typeof W=="string"?K.parse(W,this):W}}),H=f.kdf={},G=H.OpenSSL={execute:function(W,K,ie,ee,de){if(ee||(ee=_.random(64/8)),de)var Z=T.create({keySize:K+ie,hasher:de}).compute(W,ee);else var Z=T.create({keySize:K+ie}).compute(W,ee);var Q=_.create(Z.words.slice(K),ie*4);return Z.sigBytes=K*4,M.create({key:Z,iv:Q,salt:ee})}},X=d.PasswordBasedCipher=z.extend({cfg:z.cfg.extend({kdf:G}),encrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee);var de=ee.kdf.execute(ie,W.keySize,W.ivSize,ee.salt,ee.hasher);ee.iv=de.iv;var Z=z.encrypt.call(this,W,K,de.key,ee);return Z.mixIn(de),Z},decrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee),K=this._parse(K,ee.format);var de=ee.kdf.execute(ie,W.keySize,W.ivSize,K.salt,ee.hasher);ee.iv=de.iv;var Z=z.decrypt.call(this,W,K,de.key,ee);return Z}})}()})}(cipherCore)),cipherCore.exports}(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(s){return function(){var c=s,f=c.lib,d=f.BlockCipher,y=c.algo,_=[],S=[],b=[],$=[],P=[],T=[],C=[],O=[],A=[],F=[];(function(){for(var M=[],I=0;I<256;I++)I<128?M[I]=I<<1:M[I]=I<<1^283;for(var U=0,z=0,I=0;I<256;I++){var H=z^z<<1^z<<2^z<<3^z<<4;H=H>>>8^H&255^99,_[U]=H,S[H]=U;var G=M[U],X=M[G],W=M[X],K=M[H]*257^H*16843008;b[U]=K<<24|K>>>8,$[U]=K<<16|K>>>16,P[U]=K<<8|K>>>24,T[U]=K;var K=W*16843009^X*65537^G*257^U*16843008;C[H]=K<<24|K>>>8,O[H]=K<<16|K>>>16,A[H]=K<<8|K>>>24,F[H]=K,U?(U=G^M[M[M[W^G]]],z^=M[M[z]]):U=z=1}})();var j=[0,1,2,4,8,16,32,64,128,27,54],L=y.AES=d.extend({_doReset:function(){var M;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var I=this._keyPriorReset=this._key,U=I.words,z=I.sigBytes/4,H=this._nRounds=z+6,G=(H+1)*4,X=this._keySchedule=[],W=0;W6&&W%z==4&&(M=_[M>>>24]<<24|_[M>>>16&255]<<16|_[M>>>8&255]<<8|_[M&255]):(M=M<<8|M>>>24,M=_[M>>>24]<<24|_[M>>>16&255]<<16|_[M>>>8&255]<<8|_[M&255],M^=j[W/z|0]<<24),X[W]=X[W-z]^M);for(var K=this._invKeySchedule=[],ie=0;ie>>24]]^O[_[M>>>16&255]]^A[_[M>>>8&255]]^F[_[M&255]]}}},encryptBlock:function(M,I){this._doCryptBlock(M,I,this._keySchedule,b,$,P,T,_)},decryptBlock:function(M,I){var U=M[I+1];M[I+1]=M[I+3],M[I+3]=U,this._doCryptBlock(M,I,this._invKeySchedule,C,O,A,F,S);var U=M[I+1];M[I+1]=M[I+3],M[I+3]=U},_doCryptBlock:function(M,I,U,z,H,G,X,W){for(var K=this._nRounds,ie=M[I]^U[0],ee=M[I+1]^U[1],de=M[I+2]^U[2],Z=M[I+3]^U[3],Q=4,J=1;J>>24]^H[ee>>>16&255]^G[de>>>8&255]^X[Z&255]^U[Q++],fe=z[ee>>>24]^H[de>>>16&255]^G[Z>>>8&255]^X[ie&255]^U[Q++],le=z[de>>>24]^H[Z>>>16&255]^G[ie>>>8&255]^X[ee&255]^U[Q++],ae=z[Z>>>24]^H[ie>>>16&255]^G[ee>>>8&255]^X[de&255]^U[Q++];ie=ne,ee=fe,de=le,Z=ae}var ne=(W[ie>>>24]<<24|W[ee>>>16&255]<<16|W[de>>>8&255]<<8|W[Z&255])^U[Q++],fe=(W[ee>>>24]<<24|W[de>>>16&255]<<16|W[Z>>>8&255]<<8|W[ie&255])^U[Q++],le=(W[de>>>24]<<24|W[Z>>>16&255]<<16|W[ie>>>8&255]<<8|W[ee&255])^U[Q++],ae=(W[Z>>>24]<<24|W[ie>>>16&255]<<16|W[ee>>>8&255]<<8|W[de&255])^U[Q++];M[I]=ne,M[I+1]=fe,M[I+2]=le,M[I+3]=ae},keySize:256/32});c.AES=d._createHelper(L)}(),s.AES})})(aes);var aesExports=aes.exports,encUtf8={exports:{}};(function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return s.enc.Utf8})})(encUtf8);var encUtf8Exports=encUtf8.exports;const UTF8=getDefaultExportFromCjs(encUtf8Exports);var modeEcb={exports:{}};(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.mode.ECB=function(){var c=s.lib.BlockCipherMode.extend();return c.Encryptor=c.extend({processBlock:function(f,d){this._cipher.encryptBlock(f,d)}}),c.Decryptor=c.extend({processBlock:function(f,d){this._cipher.decryptBlock(f,d)}}),c}(),s.mode.ECB})})(modeEcb);var modeEcbExports=modeEcb.exports;const ECB=getDefaultExportFromCjs(modeEcbExports);var padPkcs7={exports:{}};(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.pad.Pkcs7})})(padPkcs7);var padPkcs7Exports=padPkcs7.exports;const PKCS7=getDefaultExportFromCjs(padPkcs7Exports);class AesEncrypt{constructor(a={}){tr(this,"key");tr(this,"iv");const{key:s,iv:c}=a;s&&(this.key=encUtf8Exports.parse(s)),c&&(this.iv=encUtf8Exports.parse(c))}get getOptions(){return{mode:ECB,padding:PKCS7,iv:this.iv}}encryptByAES(a){return aesExports.encrypt(a,this.key,this.getOptions).toString()}decryptByAES(a){return aesExports.decrypt(a,this.key,this.getOptions).toString(UTF8)}}const createStorage$1=({prefixKey:o="",storage:a=sessionStorage,hasEncrypt:s=!0,key:c=cacheCipher.key,iv:f=cacheCipher.iv,timeout:d=null}={})=>{if(s&&[c.length,f.length].some(S=>S!==16))throw new Error("When hasEncrypt is true, the key or iv must be 16 bits!");const y=new AesEncrypt({key:c,iv:f}),_=class{constructor(){tr(this,"storage");tr(this,"prefixKey");tr(this,"encrypt");tr(this,"hasEncrypt");this.storage=a,this.prefixKey=o,this.encrypt=y,this.hasEncrypt=s}getKey(b){return`${this.prefixKey}${b}`.toUpperCase()}set(b,$,P=d){const T=JSON.stringify({value:$,time:Date.now(),expire:isNullOrUnDef(P)?null:new Date().getTime()+P*1e3}),C=this.hasEncrypt?this.encrypt.encryptByAES(T):T;this.storage.setItem(this.getKey(b),C)}get(b,$=null){const P=this.storage.getItem(this.getKey(b));if(!P)return $;try{const T=this.hasEncrypt?this.encrypt.decryptByAES(P):P,C=JSON.parse(T),{value:O,expire:A}=C;if(isNullOrUnDef(A)||A>=new Date().getTime())return O;this.remove(b)}catch(T){return $}}remove(b){this.storage.removeItem(this.getKey(b))}clear(){this.storage.clear()}};return new _},createOptions=(o,a={})=>se({hasEncrypt:enableStorageEncryption,storage:o,prefixKey:"react-admin-design__"},a);createStorage$1(createOptions(sessionStorage));const createStorage=(o=sessionStorage,a={})=>createStorage$1(createOptions(o,a)),createSessionStorage=(o={})=>createStorage(sessionStorage,$e(se({},o),{timeout:DEFAULT_CACHE_TIME})),createLocalStorage=(o={})=>createStorage(localStorage,$e(se({},o),{timeout:DEFAULT_CACHE_TIME}));class Memory{constructor(a=0){tr(this,"cache",{});tr(this,"alive");this.alive=a*1e3}get getCache(){return this.cache}get(a){return this.cache[a]}set(a,s,c){let f=this.get(a);if((!c||c<=0)&&(c=this.alive),f?(f.timeoutId&&(clearTimeout(f.timeoutId),f.timeoutId=void 0),f.value=s):(f={value:s,alive:c},this.cache[a]=f),!c)return s;const d=new Date().getTime();return f.time=d+this.alive,f.timeoutId=setTimeout(()=>{this.remove(a)},c>d?c-d:c),s}remove(a){const s=this.get(a);if(Reflect.deleteProperty(this.cache,a),s)return clearTimeout(s.timeoutId),s.value}resetCache(a){Object.keys(a).forEach(s=>{const c=s,f=a[c];if(f&&f.time){const d=new Date().getTime(),y=f.time;y>d&&this.set(c,f.value,y)}})}clear(){Object.keys(this.cache).forEach(a=>{const s=this.cache[a];s.timeoutId&&clearTimeout(s.timeoutId)}),this.cache={}}}const ls=createLocalStorage(),ss=createSessionStorage(),localMemory=new Memory(DEFAULT_CACHE_TIME),sessionMemory=new Memory(DEFAULT_CACHE_TIME);function initPersistentMemory(){const o=ls.get(APP_LOCAL_CACHE_KEY),a=ss.get(APP_SESSION_CACHE_KEY);o&&localMemory.resetCache(o),a&&sessionMemory.resetCache(a)}class Persistent{static getLocal(a){var s;return(s=localMemory.get(a))==null?void 0:s.value}static setLocal(a,s,c=!1){localMemory.set(a,s),c&&ls.set(APP_LOCAL_CACHE_KEY,localMemory.getCache)}static removeLocal(a,s=!1){localMemory.remove(a),s&&ls.set(APP_LOCAL_CACHE_KEY,localMemory.getCache)}static clearLocal(a=!1){localMemory.clear(),a&&ls.clear()}static getSession(a){var s;return(s=sessionMemory.get(a))==null?void 0:s.value}static setSession(a,s,c=!1){sessionMemory.set(a,s),c&&ss.set(APP_SESSION_CACHE_KEY,sessionMemory.getCache)}static removeSession(a,s=!1){sessionMemory.remove(a),s&&ss.set(APP_SESSION_CACHE_KEY,sessionMemory.getCache)}static clearSession(a=!1){sessionMemory.clear(),a&&ss.clear()}static clearAll(a=!1){sessionMemory.clear(),localMemory.clear(),a&&(ls.clear(),ss.clear())}}function storageChange(o){const{key:a,newValue:s,oldValue:c}=o;if(!a){Persistent.clearAll();return}s&&c&&(APP_LOCAL_CACHE_KEY===a&&Persistent.clearLocal(),APP_SESSION_CACHE_KEY===a&&Persistent.clearSession())}window.addEventListener("storage",storageChange);initPersistentMemory();const{permissionCacheType}=appSetting,isLocal=permissionCacheType===CacheTypeEnum.LOCAL;function getAuthCache(o){return(isLocal?Persistent.getLocal:Persistent.getSession)(o)}const subTitleMap=new Map([[403,t("对不起,您没有权限访问此页面。")],[404,t("对不起,您访问的页面不存在。")],[500,t("对不起,服务器发生错误。")]]),PageException=()=>{const o=useNavigate(),{status:a,withCard:s}=useLoaderData(),c=()=>{o("/home")},f=({children:d})=>s?jsxRuntimeExports.jsx(Card,{bordered:!1,children:d}):jsxRuntimeExports.jsx("div",{className:"flex-center",style:{height:"100vh"},children:d});return jsxRuntimeExports.jsx(f,{children:jsxRuntimeExports.jsx(Result,{title:a,icon:jsxRuntimeExports.jsx(SvgIcon,{size:380,name:a}),subTitle:subTitleMap.get(a),extra:jsxRuntimeExports.jsx(Button,{type:"primary",onClick:c,children:t("返回首页")})})})},index=Object.freeze(Object.defineProperty({__proto__:null,default:PageException},Symbol.toStringTag,{value:"Module"})),illustrationDashboard="/react-antd-admin-pnpm/assets/illustration_dashboard-e36a7900.png",overlay="/react-antd-admin-pnpm/assets/overlay_2-613a921a.jpg",useStyles$1=createStyles(({token:o})=>({"login-container":{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center",height:"100vh"},"login-img":{maxWidth:"560px",height:"auto"},"login-form":{padding:`${o.paddingLG*7}px ${o.paddingLG*5}px`,".title":{margin:0},".login-info":{margin:`${o.marginLG}px 0`},".login-btn":{backgroundColor:o.colorDefault}},"login-left":{gap:"80px",flexGrow:1,height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",background:`linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)) center center / cover no-repeat, url(${overlay})`,".logo":{width:"100%",padding:o.paddingSM,position:"absolute",top:0,left:0,svg:{color:o.colorPrimary}}}})),{Title,Text}=Typography,LoginPage=()=>{const[o]=Form.useForm(),a=reactExports.useRef(null),[s,c]=reactExports.useState(!1),f=useSignIn(),d=useNavigate(),[y]=useSearchParams(),{styles:_}=useStyles$1(),S=b=>xt(void 0,null,function*(){c(!0);try{(yield f({username:b.username,password:b.password}))&&d(y.get("redirect")||"/")}catch($){message.error($.message)}finally{c(!1)}});return jsxRuntimeExports.jsxs("div",{className:_["login-container"],children:[jsxRuntimeExports.jsxs("div",{className:_["login-left"],children:[jsxRuntimeExports.jsx(Title,{className:"logo",level:3,children:jsxRuntimeExports.jsx(SvgIcon,{name:"logo",size:30})}),jsxRuntimeExports.jsx(Title,{level:2,children:t("Hi, 欢迎回来!")}),jsxRuntimeExports.jsx("img",{src:illustrationDashboard,alt:"",className:_["login-img"]})]}),jsxRuntimeExports.jsxs("div",{className:_["login-form"],children:[jsxRuntimeExports.jsxs("div",{className:"login-info",children:[jsxRuntimeExports.jsx(Title,{className:"title",level:3,children:t("登录 Gbeata Admin")}),jsxRuntimeExports.jsxs(Text,{type:"secondary",children:[" ",t("新用户?"),jsxRuntimeExports.jsx(Button,{type:"link",style:{padding:0},color:"primary",children:t("立即注册")})]}),jsxRuntimeExports.jsx(Alert,{message:t("登录信息: 用户名:admin 密码:123456"),type:"info",showIcon:!0})]}),jsxRuntimeExports.jsxs(Form,{ref:a,form:o,initialValues:{username:"admin",password:"123456",remember:!0},className:"login-box-form",onFinish:S,children:[jsxRuntimeExports.jsx(Form.Item,{name:"username",rules:[{required:!0,message:t("请输入账号")}],children:jsxRuntimeExports.jsx(Input,{placeholder:t("请输入账号"),size:"large",prefix:jsxRuntimeExports.jsx(UserOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsx(Form.Item,{name:"password",rules:[{required:!0,message:t("请输入密码")}],children:jsxRuntimeExports.jsx(Input,{type:"password",placeholder:t("请输入密码"),size:"large",prefix:jsxRuntimeExports.jsx(LockOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsxs(Form.Item,{children:[jsxRuntimeExports.jsx(Form.Item,{name:"remember",className:classNames("fl","no-margin"),valuePropName:"checked",children:jsxRuntimeExports.jsx(Checkbox,{children:t("记住我")})}),jsxRuntimeExports.jsx(Form.Item,{className:classNames("fr","no-margin"),children:jsxRuntimeExports.jsx("a",{href:"",children:t("忘记密码?")})})]}),jsxRuntimeExports.jsx(Form.Item,{children:jsxRuntimeExports.jsx(Button,{type:"primary",block:!0,htmlType:"submit",size:"large",className:"login-btn",loading:s,children:t("登 录")})})]})]})]})},metaRoutes=Object.assign({"./routes/compo.tsx":__vite_glob_0_0$1,"./routes/exception.tsx":__vite_glob_0_1$1,"./routes/form.tsx":__vite_glob_0_2$1,"./routes/home.tsx":__vite_glob_0_3,"./routes/management.tsx":__vite_glob_0_4,"./routes/user.tsx":__vite_glob_0_5}),routeList=[];Object.keys(metaRoutes).forEach(o=>{const a=metaRoutes[o].default||{},s=Array.isArray(a)?[...a]:[a];genFullPath(s),routeList.push(...s)});const rootRoutes=[{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/home"})},{path:"/login",element:jsxRuntimeExports.jsx(LoginPage,{}),meta:{title:t("登录页"),key:"login"},loader:()=>getAuthCache(TOKEN_KEY)?redirect("/"):null},...routeList,{path:"*",element:jsxRuntimeExports.jsx(Navigate,{to:"/404"})},{path:"/403",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!1})},{path:"/404",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!1})}],router=createHashRouter(rootRoutes),CustomGlobal=createGlobalStyle` .g-paper { border-radius: ${o=>o.theme.borderRadius*2}px; } @@ -342,4 +342,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `?(Se.seenCR||Se.line++,Se.column=1,Se.seenCR=!1):nn==="\r"||nn==="\u2028"||nn==="\u2029"?(Se.line++,Se.column=1,Se.seenCR=!0):(Se.column++,Se.seenCR=!1)}return Br!==B&&(Br>B&&(Br=0,rn={line:1,column:1,seenCR:!1}),Y(rn,Br,B),Br=B),rn}function K(B){In>oe||(oe>In&&(In=oe,Ln=[]),Ln.push(B))}function ie(B){var Y=0;for(B.sort();Yoe?(Se=H.charAt(oe),oe++):(Se=null,we===0&&K(Mn)),Se!==null?(Le=B,Y=en(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)):(oe=B,B=Fe),B}function pt(){var B,Y,Se;return B=oe,H.charCodeAt(oe)===92?(Y=fi,oe++):(Y=null,we===0&&K(di)),Y!==null?(Va.test(H.charAt(oe))?(Se=H.charAt(oe),oe++):(Se=null,we===0&&K(ia)),Se!==null?(Le=B,Y=aa(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)):(oe=B,B=Fe),B}function ar(){var B,Y,Se,Re;if(B=oe,H.substr(oe,2)===yr?(Y=yr,oe+=2):(Y=null,we===0&&K(kt)),Y!==null){if(Se=[],Tr.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(hi)),Re!==null)for(;Re!==null;)Se.push(Re),Tr.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(hi));else Se=Fe;Se!==null?(Le=B,Y=Wa(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)}else oe=B,B=Fe;return B}function $n(){var B,Y,Se,Re;if(B=oe,H.substr(oe,2)===Jt?(Y=Jt,oe+=2):(Y=null,we===0&&K(Or)),Y!==null){if(Se=[],tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Fn)),Re!==null)for(;Re!==null;)Se.push(Re),tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Fn));else Se=Fe;Se!==null?(Le=B,Y=vr(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)}else oe=B,B=Fe;return B}function wa(){var B,Y,Se,Re;if(B=oe,H.substr(oe,2)===_r?(Y=_r,oe+=2):(Y=null,we===0&&K(pi)),Y!==null){if(Se=[],tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Fn)),Re!==null)for(;Re!==null;)Se.push(Re),tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Fn));else Se=Fe;Se!==null?(Le=B,Y=qa(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)}else oe=B,B=Fe;return B}function Pa(){var B,Y;return B=oe,H.substr(oe,2)===yr?(Y=yr,oe+=2):(Y=null,we===0&&K(kt)),Y!==null&&(Le=B,Y=gi()),Y===null&&(oe=B),B=Y,B}function Ta(){var B,Y,Se;return B=oe,H.charCodeAt(oe)===92?(Y=fi,oe++):(Y=null,we===0&&K(di)),Y!==null?(H.length>oe?(Se=H.charAt(oe),oe++):(Se=null,we===0&&K(Mn)),Se!==null?(Le=B,Y=Ki(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)):(oe=B,B=Fe),B}var Yn,wn=arguments.length>1?arguments[1]:{},Oa={regexp:ee},Xn=ee,Fe=null,Dr="",Oo="|",Co='"|"',Ro=function(B,Y){return Y?new c(B,Y[1]):B},Ca=function(B,Y,Se){return new f([B].concat(Y).concat([Se]))},Qn="^",Ra='"^"',Ao=function(){return new s("start")},Jn="$",Mo='"$"',Fo=function(){return new s("end")},Io=function(B,Y){return new _(B,Y)},Lo="Quantifier",No=function(B,Y){return Y&&(B.greedy=!1),B},ki="{",ji='"{"',ko=",",jo='","',Aa="}",Ma='"}"',Do=function(B,Y){return new S(B,Y)},Fa=",}",Uo='",}"',Di=function(B){return new S(B,1/0)},Pn=function(B){return new S(B,B)},Ui="+",zi='"+"',zo=function(){return new S(1,1/0)},Bi="*",Xr='"*"',Er=function(){return new S(0,1/0)},rt="?",tt='"?"',$r=function(){return new S(0,1)},gt=/^[0-9]/,wt="[0-9]",Ur=function(B){return+B.join("")},Qr="(",Ot='"("',Zn=")",Ia='")"',La=function(B){return B},ei=function(B){return new y(B)},Hi="?:",Yt='"?:"',Bo=function(B){return new d("non-capture-group",B)},Na="?=",Ho='"?="',ti=function(B){return new d("positive-lookahead",B)},Tn="?!",On='"?!"',ri=function(B){return new d("negative-lookahead",B)},Go="CharacterSet",Vo="[",Gi='"["',ka="]",Vi='"]"',Cn=function(B,Y){return new b(!!B,Y)},Wo="CharacterRange",Wi="-",Qe='"-"',ja=function(B,Y){return new $(B,Y)},qi="Character",Da=/^[^\\\]]/,qo="[^\\\\\\]]",Ki=function(B){return new P(B)},dt=".",Yi='"."',Ko=function(){return new s("any-character")},Xi="Literal",Yo=/^[^|\\\/.[()?+*$\^]/,ni="[^|\\\\\\/.[()?+*$\\^]",Lt="\\b",Ua='"\\\\b"',Xo=function(){return new s("backspace")},Xt=function(){return new s("word-boundary")},or="\\B",ii='"\\\\B"',Qi=function(){return new s("non-word-boundary")},Ji="\\d",Qo='"\\\\d"',sr=function(){return new s("digit")},zr="\\D",Jr='"\\\\D"',ai=function(){return new s("non-digit")},Rn="\\f",zt='"\\\\f"',Bt=function(){return new s("form-feed")},wr="\\n",gr='"\\\\n"',mr=function(){return new s("line-feed")},Pr="\\r",za='"\\\\r"',Zi=function(){return new s("carriage-return")},oi="\\s",Nt='"\\\\s"',Ht=function(){return new s("white-space")},nt="\\S",An='"\\\\S"',Qt=function(){return new s("non-white-space")},ea="\\t",Ba='"\\\\t"',ta=function(){return new s("tab")},si="\\v",Ha='"\\\\v"',li=function(){return new s("vertical-tab")},ra="\\w",Zr='"\\\\w"',na=function(){return new s("word")},Ga="\\W",ui='"\\\\W"',Jo=function(){return new s("non-word")},Gt="\\c",ci='"\\\\c"',Mn="any character",en=function(B){return new F(B)},fi="\\",di='"\\\\"',Va=/^[1-9]/,ia="[1-9]",aa=function(B){return new A(B)},yr="\\0",kt='"\\\\0"',Tr=/^[0-7]/,hi="[0-7]",Wa=function(B){return new O(B.join(""))},Jt="\\x",Or='"\\\\x"',tn=/^[0-9a-fA-F]/,Fn="[0-9a-fA-F]",vr=function(B){return new C(B.join(""))},_r="\\u",pi='"\\\\u"',qa=function(B){return new T(B.join(""))},gi=function(){return new s("null-character")},oe=0,Le=0,Br=0,rn={line:1,column:1,seenCR:!1},In=0,Ln=[],we=0;if("startRule"in wn){if(!(wn.startRule in Oa))throw new Error(`Can't start parsing from rule "`+wn.startRule+'".');Xn=Oa[wn.startRule]}if(s.offset=X,s.text=G,Yn=Xn(),Yn!==null&&oe===H.length)return Yn;throw ie(Ln),Le=Math.max(oe,In),new U(Ln,LeT)return!0;var A={path:$,type:b,actual:P,expected:T,action:"is greater than",message:O};return A.message=S.message(A),C.push(A),!1},lessThan:function(b,$,P,T,C,O){if(P=T)return!0;var A={path:$,type:b,actual:P,expected:T,action:"is greater than or equal to",message:O};return A.message=S.message(A),C.push(A),!1},lessThanOrEqualTo:function(b,$,P,T,C,O){if(P<=T)return!0;var A={path:$,type:b,actual:P,expected:T,action:"is less than or equal to",message:O};return A.message=S.message(A),C.push(A),!1}};y.Diff=_,y.Assert=S,o.exports=y},function(o,a,s){o.exports=s(28)},function(o,a,s){var c=s(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch(C){window.Event=function(O,A,F,j){var L=document.createEvent("CustomEvent");return L.initCustomEvent(O,A,F,j),L}}var f={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},d="readystatechange loadstart progress abort error load timeout loadend".split(" "),y="timeout withCredentials".split(" "),_="readyState responseURL status statusText responseType response responseText responseXML".split(" "),S={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function b(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}b._settings={timeout:"10-100"},b.setup=function(C){return c.extend(b._settings,C),b._settings},c.extend(b,f),c.extend(b.prototype,f),b.prototype.mock=!0,b.prototype.match=!1,c.extend(b.prototype,{open:function(C,O,A,F,j){var L=this;c.extend(this.custom,{method:C,url:O,async:typeof A=="boolean"?A:!0,username:F,password:j,options:{url:O,type:C}}),this.custom.timeout=function(G){if(typeof G=="number")return G;if(typeof G=="string"&&!~G.indexOf("-"))return parseInt(G,10);if(typeof G=="string"&&~G.indexOf("-")){var X=G.split("-"),W=parseInt(X[0],10),K=parseInt(X[1],10);return Math.round(Math.random()*(K-W))+W}}(b._settings.timeout);var M=P(this.custom.options);function I(G){for(var X=0;X<_.length;X++)try{L[_[X]]=U[_[X]]}catch(W){}L.dispatchEvent(new Event(G.type))}if(!M){var U=$();this.custom.xhr=U;for(var z=0;z=s.length?s.slice(c,s.length):s.slice(c,c+Number(a))}function resultPageSuccess(o,a,s,{message:c="ok"}={}){const f=pagination(o,a,s);return $e(se({},resultSuccess({list:f,total:s.length})),{message:c})}const getPhone=()=>{const o=[135,136,137,138,139,155,158,183,185,189],a=Math.floor(Math.random()*10),s=o[a]+Math.random().toString().slice(-8);return Number(s)},getEducation=()=>{const o=["小学","初中","高中","专科","本科","研究生"],a=Math.floor(Math.random()*o.length);return o[a]},getMarried=()=>Math.floor(Math.random()*4),getHobby=()=>{const o=[],a=["羽毛球","乒乓球","篮球","排球","网球","游泳","滑雪","跳高","滑翔","潜水"],s=[3,4][Number(mockExports.Random.boolean())];for(let c=0;c{const o=[];for(let a=0;a<100;a++){const s=a<10?"0"+a:a;o.push({id:+`10${s}`+1,name:mockExports.Random.cname(),sex:["男","女"][Number(mockExports.Random.boolean())],phone:getPhone(),education:getEducation(),married:getMarried(),forbid:mockExports.Random.boolean(),hobby:getHobby()})}return o},articleListData=[{article_id:"7303048156967026714",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640407484334e3,6809640419505209e3,6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/84274f1176744240b47471a79d920a2f~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1276&h=638&s=1250001&e=gif&f=46&b=d3d9dc",is_gfw:0,title:"3D数字孪生 - 智能仓储管理平台-开源啦💐",brief_content:" 截止目前,相信你在社区上很难找到开源且真正对前期的你学习有帮助的案例和文章,之所以做这类分享,纯粹的是用爱发电,新的领域学习,让我痛苦的度过了好多个夜晚,值得庆幸自己的思路和计划都能按照设想的方案实",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1700465692",mtime:"1700532628",rtime:"-62135596800",draft_id:"7302787905043693577",view_count:397,collect_count:5,digg_count:7,comment_count:0,hot_index:26,is_hot:0,rank_index:12e-8,status:1,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:4,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1012,read_time:"3分钟"},{article_id:"7299709109879324691",user_id:"2682464101469480",category_id:"6809637776263217160",tag_ids:[6809640407484334e3,6809640402103042e3,6809640419505209e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/941af6d2401c4600b2867fc314dbbeaf~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1886&h=1186&s=505219&e=png&b=260947",is_gfw:0,title:"仿mac系统交互设计的车载Pad操作系统",brief_content:"时隔100天,我又来水文了!3D数字孪生的系列好多小伙伴都感兴趣,项目在10月就已经完结了,后续我会将继续补充如何完整的做完一个3D数字孪生项目",is_english:0,is_original:1,user_index:11.437480020762536,original_type:0,original_author:"",content:"",ctime:"1699636366",mtime:"1699778058",rtime:"1699778058",draft_id:"7299506825875226661",view_count:2077,collect_count:10,digg_count:15,comment_count:2,hot_index:120,is_hot:0,rank_index:.01209184,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1841,read_time:"6分钟"},{article_id:"7256964915133694008",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640407484334e3,6809640404791591e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/b5542f51a3274f8791ce1d8257dc4039~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"制造业领域,我是如何被逼到做顶级架构设计的",brief_content:"什么是顶级?还是澄清下吧; 这里的顶级并非说“最牛&”、最高档次,而指的是在开发一个复杂系统或软件时的最高层次设计的过程。 接下来,我要介绍的是,我是如何被逼到从单业务系统到系统与系统层面的顶级设计。",is_english:0,is_original:1,user_index:10.070339420019154,original_type:0,original_author:"",content:"",ctime:"1689652100",mtime:"1689668573",rtime:"1689668573",draft_id:"7255491496831631416",view_count:1404,collect_count:21,digg_count:19,comment_count:6,hot_index:95,is_hot:0,rank_index:.00212567,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:2360,read_time:"8分钟"},{article_id:"7250318500882432057",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640525595935e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/3727534baa6a478e9bbcb30d7472d40f~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之相机控制器(五)",brief_content:"机器学习 oz@0xozram 9号在twitter上发了这样的一个短视频: 当然,这属于机器学习领域的内容,也就是大名鼎鼎的 google 在2015开源的 tensorflow,TensorFlo",is_english:0,is_original:1,user_index:9.463944942479607,original_type:0,original_author:"",content:"",ctime:"1688108878",mtime:"1688831884",rtime:"1688831884",draft_id:"7249765949742530597",view_count:2280,collect_count:24,digg_count:16,comment_count:5,hot_index:135,is_hot:0,rank_index:.0027185,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:1,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1808,read_time:"6分钟"},{article_id:"7248545082130169893",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640497393435e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/05bba1c501124628a6bd11dc7f93a96a~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之相机(四)",brief_content:"承上 在第一篇# 3D数字孪生 - Three.js 项目介绍与基础环境搭建(一)有介绍,在使用 three/filber 的Canvas组件时,默认情况下,会自动添加初始化一个透视相机(Perspe",is_english:0,is_original:1,user_index:9.01959424539129,original_type:0,original_author:"",content:"",ctime:"1687694967",mtime:"1687748103",rtime:"1687748103",draft_id:"7248466120364343333",view_count:1752,collect_count:32,digg_count:22,comment_count:1,hot_index:110,is_hot:0,rank_index:.0020533,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:1,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1576,read_time:"5分钟"},{article_id:"7246657502842945597",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1465296be96f41f58e9a2c9a35551736~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之场景材质(三)",brief_content:"接上文# 3D数字孪生 - Three.js 场景光源(二)最后的问题: “为何已关闭场景中所有光源,仍然有些面是亮的呢?” 我们不妨近距离的观察一下,打开场景中的方向光 DirectionalLig",is_english:0,is_original:1,user_index:8.52173105363898,original_type:0,original_author:"",content:"",ctime:"1687251948",mtime:"1687335742",rtime:"1687335742",draft_id:"7246564869222580282",view_count:1869,collect_count:24,digg_count:13,comment_count:0,hot_index:106,is_hot:0,rank_index:.00191366,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:4,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1284,read_time:"4分钟"},{article_id:"7246316652048269373",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/638de6b1ba4b48bab0229b70095e718e~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之场景光源(二)",brief_content:'前言 接下来的项目实战讲解过程中,有必要多花几个篇幅介绍一下项目中用到的两个库。 "@react-three/drei": "^9.70.3", "@react-three/fiber": "^8.1',is_english:0,is_original:1,user_index:9.158795645897236,original_type:0,original_author:"",content:"",ctime:"1687179552",mtime:"1687331693",rtime:"1687239614",draft_id:"7246311040267370556",view_count:1414,collect_count:19,digg_count:10,comment_count:2,hot_index:82,is_hot:0,rank_index:.00151119,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1143,read_time:"4分钟"},{article_id:"7244894506305536057",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640357354013e3,6809640407484334e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/6dac5e4b92d048409629828852b2d79d~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1919&h=959&s=1380008&e=png&b=e0dede",is_gfw:0,title:"3D数字孪生 - Three.js 项目介绍与基础环境搭建(一)",brief_content:"3D数字孪生,生成3D可视化仓库地图,实时监控仓库库位坐标、调度任务状态、车辆位置等信息。 根据调度信息,动态展现小车任务状态",is_english:0,is_original:1,user_index:8.905619350311529,original_type:0,original_author:"",content:"",ctime:"1686886155",mtime:"1702997867",rtime:"1686908640",draft_id:"7244785030567886907",view_count:9415,collect_count:186,digg_count:86,comment_count:33,hot_index:589,is_hot:0,rank_index:.00966501,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:10,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1859,read_time:"6分钟"},{article_id:"7235027795393462333",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640497393435e3],visible_level:0,link_url:"",cover_image:"",is_gfw:0,title:"konva绘制图像标定",brief_content:"视频流标定工具,矩形与多边形绘制。仓库地图动态标注摄像机位置。konva.js konva-react实战",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1684553355",mtime:"1684571408",rtime:"1684571408",draft_id:"7234887157000454202",view_count:1418,collect_count:9,digg_count:2,comment_count:2,hot_index:74,is_hot:0,rank_index:.00101618,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:3,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1222,read_time:"4分钟"},{article_id:"7235027795393462333",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640497393435e3],visible_level:0,link_url:"",cover_image:"",is_gfw:0,title:"konva绘制图像标定",brief_content:"视频流标定工具,矩形与多边形绘制。仓库地图动态标注摄像机位置。konva.js konva-react实战",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1684553355",mtime:"1684571408",rtime:"1684571408",draft_id:"7234887157000454202",view_count:1418,collect_count:9,digg_count:2,comment_count:2,hot_index:74,is_hot:0,rank_index:.00101618,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:3,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1222,read_time:"4分钟"}],table=[{url:"/api/table/getTableList",timeout:200,method:"get",response:({query:o})=>{const{current:a=1,pageSize:s=10}=o;return resultPageSuccess(a,s,genList$1())}},{url:"/api/article/queryList",timeout:200,method:"post",response:({body:o,headers:a,query:s})=>{const{current:c=1,pageSize:f=10}=o;return resultPageSuccess(c,f,articleListData)}}],__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:table},Symbol.toStringTag,{value:"Module"}));mockExports.Random.cparagraph(),mockExports.Random.cparagraph(),mockExports.Random.cparagraph();const DASHBOARD_PERMISSION={id:"9100714781927703",parentId:"",label:"sys.menu.dashboard",name:"Dashboard",icon:"ic-analysis",type:PermissionType.CATALOGUE,route:"dashboard",order:1,children:[{id:"8426999229400979",parentId:"9100714781927703",label:"sys.menu.workbench",name:"Workbench",type:PermissionType.MENU,route:"workbench",component:"/dashboard/workbench/index.tsx"},{id:"9710971640510357",parentId:"9100714781927703",label:"sys.menu.analysis",name:"Analysis",type:PermissionType.MENU,route:"analysis",component:"/dashboard/analysis/index.tsx"}]},MANAGEMENT_PERMISSION={id:"0901673425580518",parentId:"",label:"sys.menu.management",name:"Management",icon:"ic-management",type:PermissionType.CATALOGUE,route:"management",order:2,children:[{id:"2781684678535711",parentId:"0901673425580518",label:"sys.menu.user.index",name:"User",type:PermissionType.CATALOGUE,route:"user",children:[{id:"4754063958766648",parentId:"2781684678535711",label:"sys.menu.user.profile",name:"Profile",type:PermissionType.MENU,route:"profile",component:"/management/user/profile/index.tsx"},{id:"2516598794787938",parentId:"2781684678535711",label:"sys.menu.user.account",name:"Account",type:PermissionType.MENU,route:"account",component:"/management/user/account/index.tsx"}]},{id:"0249937641030250",parentId:"0901673425580518",label:"sys.menu.system.index",name:"System",type:PermissionType.CATALOGUE,route:"system",children:[{id:"1985890042972842",parentId:"0249937641030250",label:"sys.menu.system.organization",name:"Organization",type:PermissionType.MENU,route:"organization",component:"/management/system/organization/index.tsx"},{id:"4359580910369984",parentId:"0249937641030250",label:"sys.menu.system.permission",name:"Permission",type:PermissionType.MENU,route:"permission",component:"/management/system/permission/index.tsx"},{id:"1689241785490759",parentId:"0249937641030250",label:"sys.menu.system.role",name:"Role",type:PermissionType.MENU,route:"role",component:"/management/system/role/index.tsx"},{id:"0157880245365433",parentId:"0249937641030250",label:"sys.menu.system.user",name:"User",type:PermissionType.MENU,route:"user",component:"/management/system/user/index.tsx"}]}]},COMPONENTS_PERMISSION={id:"2271615060673773",parentId:"",label:"sys.menu.components",name:"Components",icon:"solar:widget-5-bold-duotone",type:PermissionType.CATALOGUE,route:"components",order:3,children:[{id:"2478488238255411",parentId:"2271615060673773",label:"sys.menu.icon",name:"Icon",type:PermissionType.MENU,route:"icon",component:"/components/icon/index.tsx"},{id:"6755238352318767",parentId:"2271615060673773",label:"sys.menu.animate",name:"Animate",type:PermissionType.MENU,route:"animate",component:"/components/animate/index.tsx"},{id:"9992476513546805",parentId:"2271615060673773",label:"sys.menu.scroll",name:"Scroll",type:PermissionType.MENU,route:"scroll",component:"/components/scroll/index.tsx"},{id:"1755562695856395",parentId:"2271615060673773",label:"sys.menu.markdown",name:"Markdown",type:PermissionType.MENU,route:"markdown",component:"/components/markdown/index.tsx"},{id:"2122547769468069",parentId:"2271615060673773",label:"sys.menu.editor",name:"Editor",type:PermissionType.MENU,route:"editor",component:"/components/editor/index.tsx"},{id:"2501920741714350",parentId:"2271615060673773",label:"sys.menu.i18n",name:"Multi Language",type:PermissionType.MENU,route:"i18n",component:"/components/multi-language/index.tsx"},{id:"2013577074467956",parentId:"2271615060673773",label:"sys.menu.upload",name:"upload",type:PermissionType.MENU,route:"Upload",component:"/components/upload/index.tsx"},{id:"7749726274771764",parentId:"2271615060673773",label:"sys.menu.chart",name:"Chart",type:PermissionType.MENU,route:"chart",component:"/components/chart/index.tsx"}]},FUNCTIONS_PERMISSION={id:"8132044808088488",parentId:"",label:"sys.menu.functions",name:"functions",icon:"solar:plain-2-bold-duotone",type:PermissionType.CATALOGUE,route:"functions",order:4,children:[{id:"3667930780705750",parentId:"8132044808088488",label:"sys.menu.clipboard",name:"Clipboard",type:PermissionType.MENU,route:"clipboard",component:"/functions/clipboard/index.tsx"}]},MENU_LEVEL_PERMISSION={id:"0194818428516575",parentId:"",label:"sys.menu.menulevel.index",name:"Menu Level",icon:"ic-menulevel",type:PermissionType.CATALOGUE,route:"menu-level",order:5,children:[{id:"0144431332471389",parentId:"0194818428516575",label:"sys.menu.menulevel.1a",name:"Menu Level 1a",type:PermissionType.MENU,route:"menu-level-1a",component:"/menu-level/menu-level-1a/index.tsx"},{id:"7572529636800586",parentId:"0194818428516575",label:"sys.menu.menulevel.1b.index",name:"Menu Level 1b",type:PermissionType.CATALOGUE,route:"menu-level-1b",children:[{id:"3653745576583237",parentId:"7572529636800586",label:"sys.menu.menulevel.1b.2a",name:"Menu Level 2a",type:PermissionType.MENU,route:"menu-level-2a",component:"/menu-level/menu-level-1b/menu-level-2a/index.tsx"},{id:"4873136353891364",parentId:"7572529636800586",label:"sys.menu.menulevel.1b.2b.index",name:"Menu Level 2b",type:PermissionType.CATALOGUE,route:"menu-level-2b",children:[{id:"4233029726998055",parentId:"4873136353891364",label:"sys.menu.menulevel.1b.2b.3a",name:"Menu Level 3a",type:PermissionType.MENU,route:"menu-level-3a",component:"/menu-level/menu-level-1b/menu-level-2b/menu-level-3a/index.tsx"},{id:"3298034742548454",parentId:"4873136353891364",label:"sys.menu.menulevel.1b.2b.3b",name:"Menu Level 3b",type:PermissionType.MENU,route:"menu-level-3b",component:"/menu-level/menu-level-1b/menu-level-2b/menu-level-3b/index.tsx"}]}]}]},ERRORS_PERMISSION={id:"9406067785553476",parentId:"",label:"sys.menu.error.index",name:"Error",icon:"bxs:error-alt",type:PermissionType.CATALOGUE,route:"error",order:6,children:[{id:"8557056851997154",parentId:"9406067785553476",label:"sys.menu.error.403",name:"403",type:PermissionType.MENU,route:"403",component:"/sys/error/Page403.tsx"},{id:"5095669208159005",parentId:"9406067785553476",label:"sys.menu.error.404",name:"404",type:PermissionType.MENU,route:"404",component:"/sys/error/Page404.tsx"},{id:"0225992135973772",parentId:"9406067785553476",label:"sys.menu.error.500",name:"500",type:PermissionType.MENU,route:"500",component:"/sys/error/Page500.tsx"}]},OTHERS_PERMISSION=[{id:"3981225257359246",parentId:"",label:"sys.menu.calendar",name:"Calendar",icon:"solar:calendar-bold-duotone",type:PermissionType.MENU,route:"calendar",component:"/sys/others/calendar/index.tsx"},{id:"3513985683886393",parentId:"",label:"sys.menu.kanban",name:"kanban",icon:"solar:clipboard-bold-duotone",type:PermissionType.MENU,route:"kanban",component:"/sys/others/kanban/index.tsx"},{id:"5455837930804461",parentId:"",label:"sys.menu.disabled",name:"Disabled",icon:"ic_disabled",type:PermissionType.MENU,route:"disabled",status:BasicStatus.DISABLE,component:"/sys/others/calendar/index.tsx"},{id:"7728048658221587",parentId:"",label:"sys.menu.label",name:"Label",icon:"ic_label",type:PermissionType.MENU,route:"label",newFeature:!0,component:"/sys/others/blank.tsx"},{id:"5733704222120995",parentId:"",label:"sys.menu.frame",name:"Frame",icon:"ic_external",type:PermissionType.CATALOGUE,route:"frame",children:[{id:"9884486809510480",parentId:"5733704222120995",label:"sys.menu.external_link",name:"External Link",type:PermissionType.MENU,route:"external_link",component:"/sys/others/iframe/external-link.tsx",frameSrc:"https://ant.design/"},{id:"9299640886731819",parentId:"5733704222120995",label:"sys.menu.iframe",name:"Iframe",type:PermissionType.MENU,route:"frame",component:"/sys/others/iframe/index.tsx",frameSrc:"https://ant.design/"}]},{id:"0941594969900756",parentId:"",label:"sys.menu.blank",name:"Disabled",icon:"ic_blank",type:PermissionType.MENU,route:"blank",component:"/sys/others/blank.tsx"}],PERMISSION_LIST=[DASHBOARD_PERMISSION,MANAGEMENT_PERMISSION,COMPONENTS_PERMISSION,FUNCTIONS_PERMISSION,MENU_LEVEL_PERMISSION,ERRORS_PERMISSION,...OTHERS_PERMISSION],ADMIN_ROLE={id:"4281707933534332",name:"Admin",label:"admin",status:BasicStatus.ENABLE,order:1,desc:"Super Admin",permission:PERMISSION_LIST},TEST_ROLE={id:"9931665660771476",name:"Test",label:"test",status:BasicStatus.ENABLE,order:2,desc:"test",permission:[DASHBOARD_PERMISSION,COMPONENTS_PERMISSION,FUNCTIONS_PERMISSION]},DEFAULT_USER={id:mockExports.Random.guid(),username:"admin",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",email:mockExports.Random.email(),createdAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),updatedAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),password:"123456",role:ADMIN_ROLE,token:"gbeataToken",permissions:ADMIN_ROLE.permission,homePath:"/home"},TEST_USER={id:mockExports.Random.guid(),username:"test",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",password:"123456",email:mockExports.Random.email(),token:"gbeataToken",createdAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),updatedAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),role:TEST_ROLE,permissions:TEST_ROLE.permission,homePath:"/home"},USER_LIST=[DEFAULT_USER,TEST_USER];function createFakeUserList(){return[{userId:"10000",username:"admin",realName:"react admin design",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",desc:"super admin",password:"123456",token:"gbeataToken",homePath:"/home"}]}const user=[{url:"/api/login",timeout:500,method:"post",response:({body:o})=>{const{username:a,password:s}=o,c=USER_LIST.find(f=>f.username===a);return c?resultSuccess(se({},c)):resultError("Incorrect account or password!")}},{url:"/api/getUserInfo",method:"get",response:o=>{const a=getRequestToken(o);if(!a)return resultError("Invalid token!");const s=createFakeUserList().find(c=>c.token===a);return s?resultSuccess(s):resultError("The corresponding user information was not obtained!")}},{url:"/api/logout",timeout:200,method:"get",response:o=>resultSuccess(void 0,{message:"Token has been destroyed!"})}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,createFakeUserList,default:user},Symbol.toStringTag,{value:"Module"})),geFollwer=()=>Math.floor(Math.random()*4),getPosition=()=>{const o=["HR Manager","Data Observer","Frontend Engineer","Backend Engineer","Project Manager","QA Engineer","Fullstack Engineer","Registered Nurse","Business Analyst","Creative Director","Software Developer","Research Scientist"],a=Math.floor(Math.random()*o.length);return o[a]},genList=()=>{const o=[];for(let a=0;a<100;a+=1){const s=a<10?`0${a}`:a;o.push({id:+`10${s}`+1,name:mockExports.Random.name(),position:getPosition(),sex:["男","女"][Number(mockExports.Random.boolean())],follwer:geFollwer(),mits:Math.floor(Math.random()*10),forbid:mockExports.Random.boolean()})}return o},userList=[{url:"/api/user/getUserList",timeout:200,method:"get",response:({query:o})=>{const{current:a=1,pageSize:s=10}=o;return resultPageSuccess(a,s,genList())}}],__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:userList},Symbol.toStringTag,{value:"Module"}));function lexer(o){for(var a=[],s=0;s=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||y===95){f+=o[d++];continue}break}if(!f)throw new TypeError("Missing parameter name at ".concat(s));a.push({type:"NAME",index:s,value:f}),s=d;continue}if(c==="("){var _=1,S="",d=s+1;if(o[d]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(d));for(;d)?(?!\?)/g,c=0,f=s.exec(o.source);f;)a.push({name:f[1]||c++,prefix:"",suffix:"",modifier:"",pattern:""}),f=s.exec(o.source);return o}function arrayToRegexp(o,a,s){var c=o.map(function(f){return pathToRegexp(f,a,s).source});return new RegExp("(?:".concat(c.join("|"),")"),flags(s))}function stringToRegexp(o,a,s){return tokensToRegexp(parse(o,s),a,s)}function tokensToRegexp(o,a,s){s===void 0&&(s={});for(var c=s.strict,f=c===void 0?!1:c,d=s.start,y=d===void 0?!0:d,_=s.end,S=_===void 0?!0:_,b=s.encode,$=b===void 0?function(W){return W}:b,P=s.delimiter,T=P===void 0?"/#?":P,C=s.endsWith,O=C===void 0?"":C,A="[".concat(escapeString(O),"]|$"),F="[".concat(escapeString(T),"]"),j=y?"^":"",L=0,M=o;L-1:G===void 0;f||(j+="(?:".concat(F,"(?=").concat(A,"))?")),X||(j+="(?=".concat(F,"|").concat(A,")"))}return new RegExp(j,flags(s))}function pathToRegexp(o,a,s){return o instanceof RegExp?regexpToRegexp(o,a):Array.isArray(o)?arrayToRegexp(o,a,s):stringToRegexp(o,a,s)}const Mock=mockJs;function createProdMockServer(o){Mock.XHR.prototype.__send=Mock.XHR.prototype.send,Mock.XHR.prototype.send=function(){if(this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.custom.requestHeaders){const a={};for(let s in this.custom.requestHeaders)a[s.toString().toLowerCase()]=this.custom.requestHeaders[s];this.custom.options=Object.assign({},this.custom.options,{headers:a})}this.__send.apply(this,arguments)},Mock.XHR.prototype.proxy_open=Mock.XHR.prototype.open,Mock.XHR.prototype.open=function(){let a=this.responseType;this.proxy_open(...arguments),this.custom.xhr&&a&&(this.custom.xhr.responseType=a)};for(const{url:a,method:s,response:c,timeout:f}of o)__setupMock__(f),Mock.mock(pathToRegexp(a,void 0,{end:!1}),s||"get",__XHR2ExpressReqWrapper__(c))}function __param2Obj__(o){const a=o.split("?")[1];return a?JSON.parse('{"'+decodeURIComponent(a).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function __XHR2ExpressReqWrapper__(o){return function(a){let s=null;if(typeof o=="function"){const{body:c,type:f,url:d,headers:y}=a;let _=c;try{_=JSON.parse(c)}catch(S){}s=o({method:f,body:_,query:__param2Obj__(d),headers:y})}else s=o;return Mock.mock(s)}}function __setupMock__(o=0){o&&Mock.setup({timeout:o})}const modules=Object.assign({"../mock/data/table.ts":__vite_glob_0_0,"../mock/data/user.ts":__vite_glob_0_1,"../mock/data/userList.ts":__vite_glob_0_2}),mockModules=[];Object.keys(modules).forEach(o=>{if(o.includes("/_"))return;const a=modules[o].default||{},s=Array.isArray(a)?[...a]:[a];mockModules.push(...s)});function setupProdMockServer(){createProdMockServer(mockModules)}const queryClient=new QueryClient({defaultOptions:{queries:{refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:3,staleTime:5*60*1e3,gcTime:5*60*1e3}}});client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(React$4.StrictMode,{children:jsxRuntimeExports.jsx(Provider,{store,children:jsxRuntimeExports.jsx(PersistGate,{persistor,children:jsxRuntimeExports.jsxs(QueryClientProvider,{client:queryClient,children:[jsxRuntimeExports.jsx(ReactQueryDevtools2,{initialIsOpen:!1}),jsxRuntimeExports.jsx(App,{})]})})})}));setupProdMockServer();export{omitObj as A,getKey as B,CTRL_DEFAULT_MORE_TEXT as C,getDefaultValue as D,GSearchTableContext as E,FiberProvider as F,GAction as G,GTable as H,isObj as I,optionObj as J,getActionProps as K,useStyles$b as L,FORM_TYPE_DATE as M,FORM_TYPE_DATE_RANGE as N,SvgIcon$1 as O,__assign as P,isBrowser$1 as Q,throttle$3 as R,SvgIcon as S,__awaiter as T,__generator as U,__rest as V,useMemoizedFn as W,getUsersList as X,__spreadArray as _,animated as a,Slider as b,cloneDeep as c,isFunction$1 as d,useLatest as e,debounce$3 as f,__read as g,useUnmount$1 as h,isDev$1 as i,useContextBridge as j,createRoot as k,getJueJinList as l,useTranslation as m,locale as n,openWindow as o,propTypesExports as p,hasPermission as q,require$$3 as r,GButton as s,t,useSpring as u,CTRL_DEFAULT_MAX as v,treeToList as w,convertChildrenToField as x,GDialog as y,GForm as z}; +`);return O},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),c.extend(b.prototype,{addEventListener:function(O,A){var F=this.custom.events;F[O]||(F[O]=[]),F[O].push(A)},removeEventListener:function(O,A){for(var F=this.custom.events[O]||[],j=0;j=s.length?s.slice(c,s.length):s.slice(c,c+Number(a))}function resultPageSuccess(o,a,s,{message:c="ok"}={}){const f=pagination(o,a,s);return $e(se({},resultSuccess({list:f,total:s.length})),{message:c})}const getPhone=()=>{const o=[135,136,137,138,139,155,158,183,185,189],a=Math.floor(Math.random()*10),s=o[a]+Math.random().toString().slice(-8);return Number(s)},getEducation=()=>{const o=["小学","初中","高中","专科","本科","研究生"],a=Math.floor(Math.random()*o.length);return o[a]},getMarried=()=>Math.floor(Math.random()*4),getHobby=()=>{const o=[],a=["羽毛球","乒乓球","篮球","排球","网球","游泳","滑雪","跳高","滑翔","潜水"],s=[3,4][Number(mockExports.Random.boolean())];for(let c=0;c{const o=[];for(let a=0;a<100;a++){const s=a<10?`0${a}`:a;o.push({id:+`10${s}`+1,name:mockExports.Random.cname(),sex:["男","女"][Number(mockExports.Random.boolean())],phone:getPhone(),education:getEducation(),married:getMarried(),forbid:mockExports.Random.boolean(),hobby:getHobby()})}return o},articleListData=[{article_id:"7303048156967026714",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640407484334e3,6809640419505209e3,6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/84274f1176744240b47471a79d920a2f~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1276&h=638&s=1250001&e=gif&f=46&b=d3d9dc",is_gfw:0,title:"3D数字孪生 - 智能仓储管理平台-开源啦💐",brief_content:" 截止目前,相信你在社区上很难找到开源且真正对前期的你学习有帮助的案例和文章,之所以做这类分享,纯粹的是用爱发电,新的领域学习,让我痛苦的度过了好多个夜晚,值得庆幸自己的思路和计划都能按照设想的方案实",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1700465692",mtime:"1700532628",rtime:"-62135596800",draft_id:"7302787905043693577",view_count:397,collect_count:5,digg_count:7,comment_count:0,hot_index:26,is_hot:0,rank_index:12e-8,status:1,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:4,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1012,read_time:"3分钟"},{article_id:"7299709109879324691",user_id:"2682464101469480",category_id:"6809637776263217160",tag_ids:[6809640407484334e3,6809640402103042e3,6809640419505209e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/941af6d2401c4600b2867fc314dbbeaf~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1886&h=1186&s=505219&e=png&b=260947",is_gfw:0,title:"仿mac系统交互设计的车载Pad操作系统",brief_content:"时隔100天,我又来水文了!3D数字孪生的系列好多小伙伴都感兴趣,项目在10月就已经完结了,后续我会将继续补充如何完整的做完一个3D数字孪生项目",is_english:0,is_original:1,user_index:11.437480020762536,original_type:0,original_author:"",content:"",ctime:"1699636366",mtime:"1699778058",rtime:"1699778058",draft_id:"7299506825875226661",view_count:2077,collect_count:10,digg_count:15,comment_count:2,hot_index:120,is_hot:0,rank_index:.01209184,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1841,read_time:"6分钟"},{article_id:"7256964915133694008",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640407484334e3,6809640404791591e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/b5542f51a3274f8791ce1d8257dc4039~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"制造业领域,我是如何被逼到做顶级架构设计的",brief_content:"什么是顶级?还是澄清下吧; 这里的顶级并非说“最牛&”、最高档次,而指的是在开发一个复杂系统或软件时的最高层次设计的过程。 接下来,我要介绍的是,我是如何被逼到从单业务系统到系统与系统层面的顶级设计。",is_english:0,is_original:1,user_index:10.070339420019154,original_type:0,original_author:"",content:"",ctime:"1689652100",mtime:"1689668573",rtime:"1689668573",draft_id:"7255491496831631416",view_count:1404,collect_count:21,digg_count:19,comment_count:6,hot_index:95,is_hot:0,rank_index:.00212567,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:2360,read_time:"8分钟"},{article_id:"7250318500882432057",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640525595935e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/3727534baa6a478e9bbcb30d7472d40f~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之相机控制器(五)",brief_content:"机器学习 oz@0xozram 9号在twitter上发了这样的一个短视频: 当然,这属于机器学习领域的内容,也就是大名鼎鼎的 google 在2015开源的 tensorflow,TensorFlo",is_english:0,is_original:1,user_index:9.463944942479607,original_type:0,original_author:"",content:"",ctime:"1688108878",mtime:"1688831884",rtime:"1688831884",draft_id:"7249765949742530597",view_count:2280,collect_count:24,digg_count:16,comment_count:5,hot_index:135,is_hot:0,rank_index:.0027185,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:1,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1808,read_time:"6分钟"},{article_id:"7248545082130169893",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640497393435e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/05bba1c501124628a6bd11dc7f93a96a~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之相机(四)",brief_content:"承上 在第一篇# 3D数字孪生 - Three.js 项目介绍与基础环境搭建(一)有介绍,在使用 three/filber 的Canvas组件时,默认情况下,会自动添加初始化一个透视相机(Perspe",is_english:0,is_original:1,user_index:9.01959424539129,original_type:0,original_author:"",content:"",ctime:"1687694967",mtime:"1687748103",rtime:"1687748103",draft_id:"7248466120364343333",view_count:1752,collect_count:32,digg_count:22,comment_count:1,hot_index:110,is_hot:0,rank_index:.0020533,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:1,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1576,read_time:"5分钟"},{article_id:"7246657502842945597",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1465296be96f41f58e9a2c9a35551736~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之场景材质(三)",brief_content:"接上文# 3D数字孪生 - Three.js 场景光源(二)最后的问题: “为何已关闭场景中所有光源,仍然有些面是亮的呢?” 我们不妨近距离的观察一下,打开场景中的方向光 DirectionalLig",is_english:0,is_original:1,user_index:8.52173105363898,original_type:0,original_author:"",content:"",ctime:"1687251948",mtime:"1687335742",rtime:"1687335742",draft_id:"7246564869222580282",view_count:1869,collect_count:24,digg_count:13,comment_count:0,hot_index:106,is_hot:0,rank_index:.00191366,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:4,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1284,read_time:"4分钟"},{article_id:"7246316652048269373",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/638de6b1ba4b48bab0229b70095e718e~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之场景光源(二)",brief_content:'前言 接下来的项目实战讲解过程中,有必要多花几个篇幅介绍一下项目中用到的两个库。 "@react-three/drei": "^9.70.3", "@react-three/fiber": "^8.1',is_english:0,is_original:1,user_index:9.158795645897236,original_type:0,original_author:"",content:"",ctime:"1687179552",mtime:"1687331693",rtime:"1687239614",draft_id:"7246311040267370556",view_count:1414,collect_count:19,digg_count:10,comment_count:2,hot_index:82,is_hot:0,rank_index:.00151119,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1143,read_time:"4分钟"},{article_id:"7244894506305536057",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640357354013e3,6809640407484334e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/6dac5e4b92d048409629828852b2d79d~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1919&h=959&s=1380008&e=png&b=e0dede",is_gfw:0,title:"3D数字孪生 - Three.js 项目介绍与基础环境搭建(一)",brief_content:"3D数字孪生,生成3D可视化仓库地图,实时监控仓库库位坐标、调度任务状态、车辆位置等信息。 根据调度信息,动态展现小车任务状态",is_english:0,is_original:1,user_index:8.905619350311529,original_type:0,original_author:"",content:"",ctime:"1686886155",mtime:"1702997867",rtime:"1686908640",draft_id:"7244785030567886907",view_count:9415,collect_count:186,digg_count:86,comment_count:33,hot_index:589,is_hot:0,rank_index:.00966501,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:10,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1859,read_time:"6分钟"},{article_id:"7235027795393462333",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640497393435e3],visible_level:0,link_url:"",cover_image:"",is_gfw:0,title:"konva绘制图像标定",brief_content:"视频流标定工具,矩形与多边形绘制。仓库地图动态标注摄像机位置。konva.js konva-react实战",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1684553355",mtime:"1684571408",rtime:"1684571408",draft_id:"7234887157000454202",view_count:1418,collect_count:9,digg_count:2,comment_count:2,hot_index:74,is_hot:0,rank_index:.00101618,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:3,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1222,read_time:"4分钟"},{article_id:"7235027795393462333",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640497393435e3],visible_level:0,link_url:"",cover_image:"",is_gfw:0,title:"konva绘制图像标定",brief_content:"视频流标定工具,矩形与多边形绘制。仓库地图动态标注摄像机位置。konva.js konva-react实战",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1684553355",mtime:"1684571408",rtime:"1684571408",draft_id:"7234887157000454202",view_count:1418,collect_count:9,digg_count:2,comment_count:2,hot_index:74,is_hot:0,rank_index:.00101618,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:3,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1222,read_time:"4分钟"}],table=[{url:"/api/table/getTableList",timeout:200,method:"get",response:({query:o})=>{const{current:a=1,pageSize:s=10}=o;return resultPageSuccess(a,s,genList$1())}},{url:"/api/article/queryList",timeout:200,method:"post",response:({body:o,headers:a,query:s})=>{const{current:c=1,pageSize:f=10}=o;return resultPageSuccess(c,f,articleListData)}}],__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:table},Symbol.toStringTag,{value:"Module"}));mockExports.Random.cparagraph(),mockExports.Random.cparagraph(),mockExports.Random.cparagraph();const DASHBOARD_PERMISSION={id:"9100714781927703",parentId:"",label:"sys.menu.dashboard",name:"Dashboard",icon:"ic-analysis",type:PermissionType.CATALOGUE,route:"dashboard",order:1,children:[{id:"8426999229400979",parentId:"9100714781927703",label:"sys.menu.workbench",name:"Workbench",type:PermissionType.MENU,route:"workbench",component:"/dashboard/workbench/index.tsx"},{id:"9710971640510357",parentId:"9100714781927703",label:"sys.menu.analysis",name:"Analysis",type:PermissionType.MENU,route:"analysis",component:"/dashboard/analysis/index.tsx"}]},MANAGEMENT_PERMISSION={id:"0901673425580518",parentId:"",label:"sys.menu.management",name:"Management",icon:"ic-management",type:PermissionType.CATALOGUE,route:"management",order:2,children:[{id:"2781684678535711",parentId:"0901673425580518",label:"sys.menu.user.index",name:"User",type:PermissionType.CATALOGUE,route:"user",children:[{id:"4754063958766648",parentId:"2781684678535711",label:"sys.menu.user.profile",name:"Profile",type:PermissionType.MENU,route:"profile",component:"/management/user/profile/index.tsx"},{id:"2516598794787938",parentId:"2781684678535711",label:"sys.menu.user.account",name:"Account",type:PermissionType.MENU,route:"account",component:"/management/user/account/index.tsx"}]},{id:"0249937641030250",parentId:"0901673425580518",label:"sys.menu.system.index",name:"System",type:PermissionType.CATALOGUE,route:"system",children:[{id:"1985890042972842",parentId:"0249937641030250",label:"sys.menu.system.organization",name:"Organization",type:PermissionType.MENU,route:"organization",component:"/management/system/organization/index.tsx"},{id:"4359580910369984",parentId:"0249937641030250",label:"sys.menu.system.permission",name:"Permission",type:PermissionType.MENU,route:"permission",component:"/management/system/permission/index.tsx"},{id:"1689241785490759",parentId:"0249937641030250",label:"sys.menu.system.role",name:"Role",type:PermissionType.MENU,route:"role",component:"/management/system/role/index.tsx"},{id:"0157880245365433",parentId:"0249937641030250",label:"sys.menu.system.user",name:"User",type:PermissionType.MENU,route:"user",component:"/management/system/user/index.tsx"}]}]},COMPONENTS_PERMISSION={id:"2271615060673773",parentId:"",label:"sys.menu.components",name:"Components",icon:"solar:widget-5-bold-duotone",type:PermissionType.CATALOGUE,route:"components",order:3,children:[{id:"2478488238255411",parentId:"2271615060673773",label:"sys.menu.icon",name:"Icon",type:PermissionType.MENU,route:"icon",component:"/components/icon/index.tsx"},{id:"6755238352318767",parentId:"2271615060673773",label:"sys.menu.animate",name:"Animate",type:PermissionType.MENU,route:"animate",component:"/components/animate/index.tsx"},{id:"9992476513546805",parentId:"2271615060673773",label:"sys.menu.scroll",name:"Scroll",type:PermissionType.MENU,route:"scroll",component:"/components/scroll/index.tsx"},{id:"1755562695856395",parentId:"2271615060673773",label:"sys.menu.markdown",name:"Markdown",type:PermissionType.MENU,route:"markdown",component:"/components/markdown/index.tsx"},{id:"2122547769468069",parentId:"2271615060673773",label:"sys.menu.editor",name:"Editor",type:PermissionType.MENU,route:"editor",component:"/components/editor/index.tsx"},{id:"2501920741714350",parentId:"2271615060673773",label:"sys.menu.i18n",name:"Multi Language",type:PermissionType.MENU,route:"i18n",component:"/components/multi-language/index.tsx"},{id:"2013577074467956",parentId:"2271615060673773",label:"sys.menu.upload",name:"upload",type:PermissionType.MENU,route:"Upload",component:"/components/upload/index.tsx"},{id:"7749726274771764",parentId:"2271615060673773",label:"sys.menu.chart",name:"Chart",type:PermissionType.MENU,route:"chart",component:"/components/chart/index.tsx"}]},FUNCTIONS_PERMISSION={id:"8132044808088488",parentId:"",label:"sys.menu.functions",name:"functions",icon:"solar:plain-2-bold-duotone",type:PermissionType.CATALOGUE,route:"functions",order:4,children:[{id:"3667930780705750",parentId:"8132044808088488",label:"sys.menu.clipboard",name:"Clipboard",type:PermissionType.MENU,route:"clipboard",component:"/functions/clipboard/index.tsx"}]},MENU_LEVEL_PERMISSION={id:"0194818428516575",parentId:"",label:"sys.menu.menulevel.index",name:"Menu Level",icon:"ic-menulevel",type:PermissionType.CATALOGUE,route:"menu-level",order:5,children:[{id:"0144431332471389",parentId:"0194818428516575",label:"sys.menu.menulevel.1a",name:"Menu Level 1a",type:PermissionType.MENU,route:"menu-level-1a",component:"/menu-level/menu-level-1a/index.tsx"},{id:"7572529636800586",parentId:"0194818428516575",label:"sys.menu.menulevel.1b.index",name:"Menu Level 1b",type:PermissionType.CATALOGUE,route:"menu-level-1b",children:[{id:"3653745576583237",parentId:"7572529636800586",label:"sys.menu.menulevel.1b.2a",name:"Menu Level 2a",type:PermissionType.MENU,route:"menu-level-2a",component:"/menu-level/menu-level-1b/menu-level-2a/index.tsx"},{id:"4873136353891364",parentId:"7572529636800586",label:"sys.menu.menulevel.1b.2b.index",name:"Menu Level 2b",type:PermissionType.CATALOGUE,route:"menu-level-2b",children:[{id:"4233029726998055",parentId:"4873136353891364",label:"sys.menu.menulevel.1b.2b.3a",name:"Menu Level 3a",type:PermissionType.MENU,route:"menu-level-3a",component:"/menu-level/menu-level-1b/menu-level-2b/menu-level-3a/index.tsx"},{id:"3298034742548454",parentId:"4873136353891364",label:"sys.menu.menulevel.1b.2b.3b",name:"Menu Level 3b",type:PermissionType.MENU,route:"menu-level-3b",component:"/menu-level/menu-level-1b/menu-level-2b/menu-level-3b/index.tsx"}]}]}]},ERRORS_PERMISSION={id:"9406067785553476",parentId:"",label:"sys.menu.error.index",name:"Error",icon:"bxs:error-alt",type:PermissionType.CATALOGUE,route:"error",order:6,children:[{id:"8557056851997154",parentId:"9406067785553476",label:"sys.menu.error.403",name:"403",type:PermissionType.MENU,route:"403",component:"/sys/error/Page403.tsx"},{id:"5095669208159005",parentId:"9406067785553476",label:"sys.menu.error.404",name:"404",type:PermissionType.MENU,route:"404",component:"/sys/error/Page404.tsx"},{id:"0225992135973772",parentId:"9406067785553476",label:"sys.menu.error.500",name:"500",type:PermissionType.MENU,route:"500",component:"/sys/error/Page500.tsx"}]},OTHERS_PERMISSION=[{id:"3981225257359246",parentId:"",label:"sys.menu.calendar",name:"Calendar",icon:"solar:calendar-bold-duotone",type:PermissionType.MENU,route:"calendar",component:"/sys/others/calendar/index.tsx"},{id:"3513985683886393",parentId:"",label:"sys.menu.kanban",name:"kanban",icon:"solar:clipboard-bold-duotone",type:PermissionType.MENU,route:"kanban",component:"/sys/others/kanban/index.tsx"},{id:"5455837930804461",parentId:"",label:"sys.menu.disabled",name:"Disabled",icon:"ic_disabled",type:PermissionType.MENU,route:"disabled",status:BasicStatus.DISABLE,component:"/sys/others/calendar/index.tsx"},{id:"7728048658221587",parentId:"",label:"sys.menu.label",name:"Label",icon:"ic_label",type:PermissionType.MENU,route:"label",newFeature:!0,component:"/sys/others/blank.tsx"},{id:"5733704222120995",parentId:"",label:"sys.menu.frame",name:"Frame",icon:"ic_external",type:PermissionType.CATALOGUE,route:"frame",children:[{id:"9884486809510480",parentId:"5733704222120995",label:"sys.menu.external_link",name:"External Link",type:PermissionType.MENU,route:"external_link",component:"/sys/others/iframe/external-link.tsx",frameSrc:"https://ant.design/"},{id:"9299640886731819",parentId:"5733704222120995",label:"sys.menu.iframe",name:"Iframe",type:PermissionType.MENU,route:"frame",component:"/sys/others/iframe/index.tsx",frameSrc:"https://ant.design/"}]},{id:"0941594969900756",parentId:"",label:"sys.menu.blank",name:"Disabled",icon:"ic_blank",type:PermissionType.MENU,route:"blank",component:"/sys/others/blank.tsx"}],PERMISSION_LIST=[DASHBOARD_PERMISSION,MANAGEMENT_PERMISSION,COMPONENTS_PERMISSION,FUNCTIONS_PERMISSION,MENU_LEVEL_PERMISSION,ERRORS_PERMISSION,...OTHERS_PERMISSION],ADMIN_ROLE={id:"4281707933534332",name:"Admin",label:"admin",status:BasicStatus.ENABLE,order:1,desc:"Super Admin",permission:PERMISSION_LIST},TEST_ROLE={id:"9931665660771476",name:"Test",label:"test",status:BasicStatus.ENABLE,order:2,desc:"test",permission:[DASHBOARD_PERMISSION,COMPONENTS_PERMISSION,FUNCTIONS_PERMISSION]},DEFAULT_USER={id:mockExports.Random.guid(),username:"admin",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",email:mockExports.Random.email(),createdAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),updatedAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),password:"123456",role:ADMIN_ROLE,token:"gbeataToken",permissions:ADMIN_ROLE.permission,homePath:"/home"},TEST_USER={id:mockExports.Random.guid(),username:"test",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",password:"123456",email:mockExports.Random.email(),token:"gbeataToken",createdAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),updatedAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),role:TEST_ROLE,permissions:TEST_ROLE.permission,homePath:"/home"},USER_LIST=[DEFAULT_USER,TEST_USER];function createFakeUserList(){return[{userId:"10000",username:"admin",realName:"react admin design",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",desc:"super admin",password:"123456",token:"gbeataToken",homePath:"/home"}]}const user=[{url:"/api/login",timeout:500,method:"post",response:({body:o})=>{const{username:a,password:s}=o,c=USER_LIST.find(f=>f.username===a);return c?resultSuccess(se({},c)):resultError("Incorrect account or password!")}},{url:"/api/getUserInfo",method:"get",response:o=>{const a=getRequestToken(o);if(!a)return resultError("Invalid token!");const s=createFakeUserList().find(c=>c.token===a);return s?resultSuccess(s):resultError("The corresponding user information was not obtained!")}},{url:"/api/logout",timeout:200,method:"get",response:o=>resultSuccess(void 0,{message:"Token has been destroyed!"})}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,createFakeUserList,default:user},Symbol.toStringTag,{value:"Module"})),geFollwer=()=>Math.floor(Math.random()*4),getPosition=()=>{const o=["HR Manager","Data Observer","Frontend Engineer","Backend Engineer","Project Manager","QA Engineer","Fullstack Engineer","Registered Nurse","Business Analyst","Creative Director","Software Developer","Research Scientist"],a=Math.floor(Math.random()*o.length);return o[a]},genList=()=>{const o=[];for(let a=0;a<100;a+=1){const s=a<10?`0${a}`:a;o.push({id:+`10${s}`+1,name:mockExports.Random.name(),position:getPosition(),sex:["男","女"][Number(mockExports.Random.boolean())],follwer:geFollwer(),mits:Math.floor(Math.random()*10),forbid:mockExports.Random.boolean()})}return o},userList=[{url:"/api/user/getUserList",timeout:200,method:"get",response:({query:o})=>{const{current:a=1,pageSize:s=10}=o;return resultPageSuccess(a,s,genList())}}],__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:userList},Symbol.toStringTag,{value:"Module"}));function lexer(o){for(var a=[],s=0;s=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||y===95){f+=o[d++];continue}break}if(!f)throw new TypeError("Missing parameter name at ".concat(s));a.push({type:"NAME",index:s,value:f}),s=d;continue}if(c==="("){var _=1,S="",d=s+1;if(o[d]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(d));for(;d)?(?!\?)/g,c=0,f=s.exec(o.source);f;)a.push({name:f[1]||c++,prefix:"",suffix:"",modifier:"",pattern:""}),f=s.exec(o.source);return o}function arrayToRegexp(o,a,s){var c=o.map(function(f){return pathToRegexp(f,a,s).source});return new RegExp("(?:".concat(c.join("|"),")"),flags(s))}function stringToRegexp(o,a,s){return tokensToRegexp(parse(o,s),a,s)}function tokensToRegexp(o,a,s){s===void 0&&(s={});for(var c=s.strict,f=c===void 0?!1:c,d=s.start,y=d===void 0?!0:d,_=s.end,S=_===void 0?!0:_,b=s.encode,$=b===void 0?function(W){return W}:b,P=s.delimiter,T=P===void 0?"/#?":P,C=s.endsWith,O=C===void 0?"":C,A="[".concat(escapeString(O),"]|$"),F="[".concat(escapeString(T),"]"),j=y?"^":"",L=0,M=o;L-1:G===void 0;f||(j+="(?:".concat(F,"(?=").concat(A,"))?")),X||(j+="(?=".concat(F,"|").concat(A,")"))}return new RegExp(j,flags(s))}function pathToRegexp(o,a,s){return o instanceof RegExp?regexpToRegexp(o,a):Array.isArray(o)?arrayToRegexp(o,a,s):stringToRegexp(o,a,s)}const Mock=mockJs;function createProdMockServer(o){Mock.XHR.prototype.__send=Mock.XHR.prototype.send,Mock.XHR.prototype.send=function(){if(this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.custom.requestHeaders){const a={};for(let s in this.custom.requestHeaders)a[s.toString().toLowerCase()]=this.custom.requestHeaders[s];this.custom.options=Object.assign({},this.custom.options,{headers:a})}this.__send.apply(this,arguments)},Mock.XHR.prototype.proxy_open=Mock.XHR.prototype.open,Mock.XHR.prototype.open=function(){let a=this.responseType;this.proxy_open(...arguments),this.custom.xhr&&a&&(this.custom.xhr.responseType=a)};for(const{url:a,method:s,response:c,timeout:f}of o)__setupMock__(f),Mock.mock(pathToRegexp(a,void 0,{end:!1}),s||"get",__XHR2ExpressReqWrapper__(c))}function __param2Obj__(o){const a=o.split("?")[1];return a?JSON.parse('{"'+decodeURIComponent(a).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function __XHR2ExpressReqWrapper__(o){return function(a){let s=null;if(typeof o=="function"){const{body:c,type:f,url:d,headers:y}=a;let _=c;try{_=JSON.parse(c)}catch(S){}s=o({method:f,body:_,query:__param2Obj__(d),headers:y})}else s=o;return Mock.mock(s)}}function __setupMock__(o=0){o&&Mock.setup({timeout:o})}const modules=Object.assign({"../mock/data/table.ts":__vite_glob_0_0,"../mock/data/user.ts":__vite_glob_0_1,"../mock/data/userList.ts":__vite_glob_0_2}),mockModules=[];Object.keys(modules).forEach(o=>{if(o.includes("/_"))return;const a=modules[o].default||{},s=Array.isArray(a)?[...a]:[a];mockModules.push(...s)});function setupProdMockServer(){createProdMockServer(mockModules)}const queryClient=new QueryClient({defaultOptions:{queries:{refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:3,staleTime:5*60*1e3,gcTime:5*60*1e3}}});client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(React$4.StrictMode,{children:jsxRuntimeExports.jsx(Provider,{store,children:jsxRuntimeExports.jsx(PersistGate,{persistor,children:jsxRuntimeExports.jsxs(QueryClientProvider,{client:queryClient,children:[jsxRuntimeExports.jsx(ReactQueryDevtools2,{initialIsOpen:!1}),jsxRuntimeExports.jsx(App,{})]})})})}));setupProdMockServer();export{omitObj as A,getKey as B,CTRL_DEFAULT_MORE_TEXT as C,getDefaultValue as D,GSearchTableContext as E,FiberProvider as F,GAction as G,GTable as H,isObj as I,optionObj as J,getActionProps as K,useStyles$b as L,FORM_TYPE_DATE as M,FORM_TYPE_DATE_RANGE as N,SvgIcon$1 as O,__assign as P,isBrowser$1 as Q,throttle$3 as R,SvgIcon as S,__awaiter as T,__generator as U,__rest as V,useMemoizedFn as W,getUsersList as X,__spreadArray as _,animated as a,Slider as b,cloneDeep as c,isFunction$1 as d,useLatest as e,debounce$3 as f,__read as g,useUnmount$1 as h,isDev$1 as i,useContextBridge as j,createRoot as k,getJueJinList as l,useTranslation as m,locale as n,openWindow as o,propTypesExports as p,hasPermission as q,require$$3 as r,GButton as s,t,useSpring as u,CTRL_DEFAULT_MAX as v,treeToList as w,convertChildrenToField as x,GDialog as y,GForm as z}; diff --git a/assets/image-upload-acb1eff1.js b/assets/image-upload-63a46817.js similarity index 93% rename from assets/image-upload-acb1eff1.js rename to assets/image-upload-63a46817.js index 15fec5a..81c1d3e 100644 --- a/assets/image-upload-acb1eff1.js +++ b/assets/image-upload-63a46817.js @@ -1 +1 @@ -var b=(c,g,a)=>new Promise((m,l)=>{var u=t=>{try{n(a.next(t))}catch(r){l(r)}},p=t=>{try{n(a.throw(t))}catch(r){l(r)}},n=t=>t.done?m(t.value):Promise.resolve(t.value).then(u,p);n((a=a.apply(c,g)).next())});import{j as e,J as L,K as h,n as j,ap as v,aq as x,i as O,P as S,M as k}from"./antd-66264537.js";import{t as i}from"./entry/index-49ff40a5.1715612414483.js";import{r as o}from"./react-f288da4a.js";import{P as N,U as T}from"./websiteSetting-168278cd.js";const A=()=>{const{Dragger:c}=x,[g,a]=o.useState(!1),[m,l]=o.useState(""),[u,p]=o.useState(""),n=[{uid:"-1",name:"beautiful-girl.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg"}],[t,r]=o.useState([{uid:"-1",name:"beautiful-girl.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg"}]),w=s=>b(void 0,null,function*(){!s.url&&!s.preview&&(s.preview=yield f(s.originFileObj)),l(s.url||s.preview),a(!0),p(s.name||s.url.substring(s.url.lastIndexOf("/")+1))}),f=s=>new Promise((C,U)=>{const d=new FileReader;d.readAsDataURL(s),d.onload=()=>C(d.result),d.onerror=I=>U(I)}),y=({fileList:s})=>r(s),P=()=>{a(!1),p("")};return e.jsx(N,{plugin:T,children:e.jsxs(L,{gutter:12,children:[e.jsx(h,{span:8,children:e.jsx(j,{title:i("拖拽上传"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(c,{defaultFileList:n,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,children:[e.jsx("p",{className:"ant-upload-drag-icon",style:{marginBottom:0},children:e.jsx(v,{rev:void 0})}),e.jsxs("p",{children:[i("将图片拖到此处, 或"),e.jsx("span",{style:{color:"#1890ff"},children:i("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:i("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsx(h,{span:8,children:e.jsx(j,{title:i("列表样式"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(x,{defaultFileList:[...t],action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture",className:"list-upload",children:[e.jsxs(O,{type:"primary",children:[e.jsx(v,{rev:void 0}),e.jsx("span",{children:i("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:i("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsxs(h,{span:8,children:[e.jsx(j,{title:i("照片墙"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(x,{fileList:t,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture-card",className:"list-upload",onPreview:w,onChange:y,children:e.jsxs("div",{children:[e.jsx(S,{rev:void 0}),e.jsx("div",{style:{marginTop:"8px"},children:i("点击上传")})]})})}),e.jsx(k,{open:g,title:u,footer:null,onCancel:P,children:e.jsx("img",{src:m,style:{width:"100%"}})})]})]})})};export{A as default}; +var b=(c,g,a)=>new Promise((m,l)=>{var u=t=>{try{n(a.next(t))}catch(r){l(r)}},p=t=>{try{n(a.throw(t))}catch(r){l(r)}},n=t=>t.done?m(t.value):Promise.resolve(t.value).then(u,p);n((a=a.apply(c,g)).next())});import{j as e,J as L,K as h,n as j,ap as v,aq as x,i as O,P as S,M as k}from"./antd-66264537.js";import{t as i}from"./entry/index-03014cdd.1715615595704.js";import{r as o}from"./react-f288da4a.js";import{P as N,U as T}from"./websiteSetting-6d372edc.js";const A=()=>{const{Dragger:c}=x,[g,a]=o.useState(!1),[m,l]=o.useState(""),[u,p]=o.useState(""),n=[{uid:"-1",name:"beautiful-girl.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg"}],[t,r]=o.useState([{uid:"-1",name:"beautiful-girl.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg"}]),w=s=>b(void 0,null,function*(){!s.url&&!s.preview&&(s.preview=yield f(s.originFileObj)),l(s.url||s.preview),a(!0),p(s.name||s.url.substring(s.url.lastIndexOf("/")+1))}),f=s=>new Promise((C,U)=>{const d=new FileReader;d.readAsDataURL(s),d.onload=()=>C(d.result),d.onerror=I=>U(I)}),y=({fileList:s})=>r(s),P=()=>{a(!1),p("")};return e.jsx(N,{plugin:T,children:e.jsxs(L,{gutter:12,children:[e.jsx(h,{span:8,children:e.jsx(j,{title:i("拖拽上传"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(c,{defaultFileList:n,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,children:[e.jsx("p",{className:"ant-upload-drag-icon",style:{marginBottom:0},children:e.jsx(v,{rev:void 0})}),e.jsxs("p",{children:[i("将图片拖到此处, 或"),e.jsx("span",{style:{color:"#1890ff"},children:i("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:i("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsx(h,{span:8,children:e.jsx(j,{title:i("列表样式"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(x,{defaultFileList:[...t],action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture",className:"list-upload",children:[e.jsxs(O,{type:"primary",children:[e.jsx(v,{rev:void 0}),e.jsx("span",{children:i("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:i("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsxs(h,{span:8,children:[e.jsx(j,{title:i("照片墙"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(x,{fileList:t,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture-card",className:"list-upload",onPreview:w,onChange:y,children:e.jsxs("div",{children:[e.jsx(S,{rev:void 0}),e.jsx("div",{style:{marginTop:"8px"},children:i("点击上传")})]})})}),e.jsx(k,{open:g,title:u,footer:null,onCancel:P,children:e.jsx("img",{src:m,style:{width:"100%"}})})]})]})})};export{A as default}; diff --git a/assets/index-bf85aa66.js b/assets/index-0cc67023.js similarity index 76% rename from assets/index-bf85aa66.js rename to assets/index-0cc67023.js index 11e67c9..ce4d6a9 100644 --- a/assets/index-bf85aa66.js +++ b/assets/index-0cc67023.js @@ -1 +1 @@ -import{j as r}from"./antd-66264537.js";import{G as e}from"./entry/index-49ff40a5.1715612414483.js";import"./react-f288da4a.js";import{l as o,G as s,A as a}from"./api-3af9db57.js";import{G as d}from"./index-e22d6806.js";import"./index-c5e45b02.js";const i=[{title:"用户名称",key:"cn1",search:!0,dialog:{required:!0}},{title:"所属组织",key:"index",sort:!0,search:!0,dialog:{required:!0}},{title:"状态",key:"index",sort:!0,dialog:{required:!0}}],n={width:200,render:(l,t)=>r.jsxs(s,{children:[r.jsx(e,{record:t,action:"view",children:"详情"}),r.jsx(e,{record:t,action:"update",children:"编辑"}),r.jsx(a,{record:t,children:"授权"})]})};function j(){return r.jsx(d,{api:o,ctrl:n,fields:i,rowKey:"sort_id",dialogFormExtend:{fields:i},children:r.jsx(e,{action:"add",children:"新增"})})}export{j as default}; +import{j as r}from"./antd-66264537.js";import{G as e}from"./entry/index-03014cdd.1715615595704.js";import"./react-f288da4a.js";import{l as o,G as s,A as a}from"./api-fb89cc47.js";import{G as d}from"./index-20e61b4c.js";import"./index-6a9c85e1.js";const i=[{title:"用户名称",key:"cn1",search:!0,dialog:{required:!0}},{title:"所属组织",key:"index",sort:!0,search:!0,dialog:{required:!0}},{title:"状态",key:"index",sort:!0,dialog:{required:!0}}],n={width:200,render:(l,t)=>r.jsxs(s,{children:[r.jsx(e,{record:t,action:"view",children:"详情"}),r.jsx(e,{record:t,action:"update",children:"编辑"}),r.jsx(a,{record:t,children:"授权"})]})};function j(){return r.jsx(d,{api:o,ctrl:n,fields:i,rowKey:"sort_id",dialogFormExtend:{fields:i},children:r.jsx(e,{action:"add",children:"新增"})})}export{j as default}; diff --git a/assets/index-e22d6806.js b/assets/index-20e61b4c.js similarity index 99% rename from assets/index-e22d6806.js rename to assets/index-20e61b4c.js index 5d05703..ba3c594 100644 --- a/assets/index-e22d6806.js +++ b/assets/index-20e61b4c.js @@ -1,4 +1,4 @@ -import{ai as _t,S as st,k as se,ay as wt,ab as At,aj as ze,az as Ot,$ as Ft,a0 as xt,v as Tt,I as Pt,aA as Ct,aB as jt,a7 as Dt,T as Rt,N as Vt,al as $t,g as It}from"./antd-66264537.js";import{r as d,a as i}from"./react-f288da4a.js";import{x as ft,y as dt,z as mt,A as yt,n as A,s as Je,B as Z,G as kt,D as Kt,E as Mt,H as Nt,I as zt,J as Bt,K as Ht}from"./entry/index-49ff40a5.1715612414483.js";import{G as Gt}from"./index-c5e45b02.js";function je(t){"@babel/helpers - typeof";return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(t)}function Ue(){return Ue=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r-1&&(u=setTimeout(function(){O.delete(e)},r)),O.set(e,y(y({},n),{timer:u}))},de=function(e){return O.get(e)},F=new Map,ve=function(e){return F.get(e)},he=function(e,r){F.set(e,r),r.then(function(n){return F.delete(e),n}).catch(function(){F.delete(e)})},C={},me=function(e,r){C[e]&&C[e].forEach(function(n){return n(r)})},M=function(e,r){return C[e]||(C[e]=[]),C[e].push(r),function(){var t=C[e].indexOf(r);C[e].splice(t,1)}},ge=function(e,r){var n=r.cacheKey,t=r.cacheTime,u=t===void 0?5*60*1e3:t,o=r.staleTime,a=o===void 0?0:o,c=r.setCache,s=r.getCache,i=h.useRef(),v=h.useRef(),d=function(f,l){c?c(l):le(f,u,l),me(f,l.data)},m=function(f,l){return l===void 0&&(l=[]),s?s(l):de(f)};return Q(function(){if(n){var f=m(n);f&&Object.hasOwnProperty.call(f,"data")&&(e.state.data=f.data,e.state.params=f.params,(a===-1||new Date().getTime()-f.time<=a)&&(e.state.loading=!1)),i.current=M(n,function(l){e.setState({data:l})})}},[]),B(function(){var f;(f=i.current)===null||f===void 0||f.call(i)}),n?{onBefore:function(f){var l=m(n,f);return!l||!Object.hasOwnProperty.call(l,"data")?{}:a===-1||new Date().getTime()-l.time<=a?{loading:!1,data:l==null?void 0:l.data,error:void 0,returnNow:!0}:{data:l==null?void 0:l.data,error:void 0}},onRequest:function(f,l){var g=ve(n);return g&&g!==v.current?{servicePromise:g}:(g=f.apply(void 0,p([],b(l),!1)),v.current=g,he(n,g),{servicePromise:g})},onSuccess:function(f,l){var g;n&&((g=i.current)===null||g===void 0||g.call(i),d(n,{data:f,params:l,time:new Date().getTime()}),i.current=M(n,function(A){e.setState({data:A})}))},onMutate:function(f){var l;n&&((l=i.current)===null||l===void 0||l.call(i),d(n,{data:f,params:e.state.params,time:new Date().getTime()}),i.current=M(n,function(g){e.setState({data:g})}))}}:{}};const pe=ge;var be=function(e,r){var n=r.debounceWait,t=r.debounceLeading,u=r.debounceTrailing,o=r.debounceMaxWait,a=h.useRef(),c=h.useMemo(function(){var s={};return t!==void 0&&(s.leading=t),u!==void 0&&(s.trailing=u),o!==void 0&&(s.maxWait=o),s},[t,u,o]);return h.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=I(function(i){i()},n,c),e.runAsync=function(){for(var i=[],v=0;v-1&&j.splice(n,1)}}if(D){var z=function(){if(!(!H()||!je()))for(var e=0;e({"add-button":{background:e.colorDefault}})),qe=()=>{const{styles:e,theme:r,cx:n}=Ve(),t=ae(),[u,o]=h.useState([]),{data:a,loading:c}=ze(ue);return h.useEffect(()=>{o((a==null?void 0:a.list)||[])},[a]),w.jsxs(_,{gap:16,vertical:!0,children:[w.jsx(_,{justify:"end",children:w.jsx(q,{className:n(e["add-button"]),type:"primary",icon:w.jsx(Y,{}),onClick:()=>t("/user/add-user"),children:ie("新建")})}),w.jsx(Z,{gutter:[16,16],children:u==null?void 0:u.map((s,i)=>w.jsx(k,{span:8,children:w.jsx(oe,{data:s,index:i,loading:c})},s.id))})]})};export{qe as default}; +import{c as X,j as w,aF as _,i as q,P as Y,J as Z,K as k}from"./antd-66264537.js";import{_ as p,g as b,P as y,h as B,f as I,Q as D,R as ee,i as V,d as G,T as ne,U as re,V as J,e as te,W as T,t as ie,X as ue}from"./entry/index-03014cdd.1715615595704.js";import{r as h,h as ae}from"./react-f288da4a.js";import{U as oe}from"./index-d47ae162.js";import"./Translatex-37dc0dc8.js";var se=function(e){return function(r,n){var t=h.useRef(!1);e(function(){return function(){t.current=!1}},[]),e(function(){if(!t.current)t.current=!0;else return r()},n)}};const W=se(h.useEffect);var K=function(e,r){var n=r.manual,t=r.ready,u=t===void 0?!0:t,o=r.defaultParams,a=o===void 0?[]:o,c=r.refreshDeps,s=c===void 0?[]:c,i=r.refreshDepsAction,v=h.useRef(!1);return v.current=!1,W(function(){!n&&u&&(v.current=!0,e.run.apply(e,p([],b(a),!1)))},[u]),W(function(){v.current||n||(v.current=!0,i?i():e.refresh())},p([],b(s),!1)),{onBefore:function(){if(!u)return{stopNow:!0}}}};K.onInit=function(e){var r=e.ready,n=r===void 0?!0:r,t=e.manual;return{loading:!t&&n}};const ce=K;function fe(e,r){if(e===r)return!0;for(var n=0;n-1&&(u=setTimeout(function(){O.delete(e)},r)),O.set(e,y(y({},n),{timer:u}))},de=function(e){return O.get(e)},F=new Map,ve=function(e){return F.get(e)},he=function(e,r){F.set(e,r),r.then(function(n){return F.delete(e),n}).catch(function(){F.delete(e)})},C={},me=function(e,r){C[e]&&C[e].forEach(function(n){return n(r)})},M=function(e,r){return C[e]||(C[e]=[]),C[e].push(r),function(){var t=C[e].indexOf(r);C[e].splice(t,1)}},ge=function(e,r){var n=r.cacheKey,t=r.cacheTime,u=t===void 0?5*60*1e3:t,o=r.staleTime,a=o===void 0?0:o,c=r.setCache,s=r.getCache,i=h.useRef(),v=h.useRef(),d=function(f,l){c?c(l):le(f,u,l),me(f,l.data)},m=function(f,l){return l===void 0&&(l=[]),s?s(l):de(f)};return Q(function(){if(n){var f=m(n);f&&Object.hasOwnProperty.call(f,"data")&&(e.state.data=f.data,e.state.params=f.params,(a===-1||new Date().getTime()-f.time<=a)&&(e.state.loading=!1)),i.current=M(n,function(l){e.setState({data:l})})}},[]),B(function(){var f;(f=i.current)===null||f===void 0||f.call(i)}),n?{onBefore:function(f){var l=m(n,f);return!l||!Object.hasOwnProperty.call(l,"data")?{}:a===-1||new Date().getTime()-l.time<=a?{loading:!1,data:l==null?void 0:l.data,error:void 0,returnNow:!0}:{data:l==null?void 0:l.data,error:void 0}},onRequest:function(f,l){var g=ve(n);return g&&g!==v.current?{servicePromise:g}:(g=f.apply(void 0,p([],b(l),!1)),v.current=g,he(n,g),{servicePromise:g})},onSuccess:function(f,l){var g;n&&((g=i.current)===null||g===void 0||g.call(i),d(n,{data:f,params:l,time:new Date().getTime()}),i.current=M(n,function(A){e.setState({data:A})}))},onMutate:function(f){var l;n&&((l=i.current)===null||l===void 0||l.call(i),d(n,{data:f,params:e.state.params,time:new Date().getTime()}),i.current=M(n,function(g){e.setState({data:g})}))}}:{}};const pe=ge;var be=function(e,r){var n=r.debounceWait,t=r.debounceLeading,u=r.debounceTrailing,o=r.debounceMaxWait,a=h.useRef(),c=h.useMemo(function(){var s={};return t!==void 0&&(s.leading=t),u!==void 0&&(s.trailing=u),o!==void 0&&(s.maxWait=o),s},[t,u,o]);return h.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=I(function(i){i()},n,c),e.runAsync=function(){for(var i=[],v=0;v-1&&j.splice(n,1)}}if(D){var z=function(){if(!(!H()||!je()))for(var e=0;e({"add-button":{background:e.colorDefault}})),qe=()=>{const{styles:e,theme:r,cx:n}=Ve(),t=ae(),[u,o]=h.useState([]),{data:a,loading:c}=ze(ue);return h.useEffect(()=>{o((a==null?void 0:a.list)||[])},[a]),w.jsxs(_,{gap:16,vertical:!0,children:[w.jsx(_,{justify:"end",children:w.jsx(q,{className:n(e["add-button"]),type:"primary",icon:w.jsx(Y,{}),onClick:()=>t("/user/add-user"),children:ie("新建")})}),w.jsx(Z,{gutter:[16,16],children:u==null?void 0:u.map((s,i)=>w.jsx(k,{span:8,children:w.jsx(oe,{data:s,index:i,loading:c})},s.id))})]})};export{qe as default}; diff --git a/assets/index-fe7bf50c.js b/assets/index-5ad447d9.js similarity index 99% rename from assets/index-fe7bf50c.js rename to assets/index-5ad447d9.js index b1fdbb4..f9573c7 100644 --- a/assets/index-fe7bf50c.js +++ b/assets/index-5ad447d9.js @@ -1,4 +1,4 @@ -var EW=Object.defineProperty,RW=Object.defineProperties;var PW=Object.getOwnPropertyDescriptors;var im=Object.getOwnPropertySymbols;var q2=Object.prototype.hasOwnProperty,Q2=Object.prototype.propertyIsEnumerable;var QS=Math.pow,K2=(n,e,t)=>e in n?EW(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,At=(n,e)=>{for(var t in e||(e={}))q2.call(e,t)&&K2(n,t,e[t]);if(im)for(var t of im(e))Q2.call(e,t)&&K2(n,t,e[t]);return n},mr=(n,e)=>RW(n,PW(e));var di=(n,e)=>{var t={};for(var r in n)q2.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&im)for(var r of im(n))e.indexOf(r)<0&&Q2.call(n,r)&&(t[r]=n[r]);return t};var ch=(n,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(u){i(u)}},o=l=>{try{s(t.throw(l))}catch(u){i(u)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);s((t=t.apply(n,e)).next())});import{j as ee,n as kF,a as Yf,c as UF,Y as GF,K as Oo,g as $S,L as cT,J as $2,aw as DW,i as IW}from"./antd-66264537.js";import{r as q,g as zF,a as na}from"./react-f288da4a.js";import{u as LW,a as BW,b as OW,i as NW,d as FW,e as kW,f as UW,_ as GW,g as zW,h as HW,F as VW,j as WW,k as XW,t as Yn,S as $0,l as YW,m as JW}from"./entry/index-49ff40a5.1715612414483.js";import{c as ZW,U as jW}from"./index-6d20d62b.js";import{_ as e1}from"./index-646dffa4.js";import{T as $r}from"./Translatex-83019934.js";import{G as KW}from"./index-e22d6806.js";import"./index-c5e45b02.js";function qW(n){const e=q.useRef(null),t=At({mass:1,tension:170,friction:26,clamp:!1,precision:.01,velocity:0},n.panelConfig),[{xys:r},i]=LW(()=>({xys:[0,0,1],config:t}),[t]),a=()=>i.start({xys:[0,0,1]}),o=s=>{var u;const l=(u=e.current)==null?void 0:u.getBoundingClientRect();i.start({xys:QW(s.clientX,s.clientY,l)})};return ee.jsx("div",{ref:e,children:ee.jsxs(BW.div,{className:"border border-solid ",style:{transform:r.to($W)},onMouseLeave:a,onMouseMove:o,children:[ee.jsxs("p",{className:"text-sm flex justify-between border-solid",children:[n.title," ",n.right]}),n.children]})})}const QW=(n,e,t)=>[-(e-t.top-t.height/2)/150,(n-t.left-t.width/2)/150,1],$W=(n,e,t)=>`perspective(600px) rotateX(${n}deg) rotateY(${e}deg) scale(${t})`,t1=n=>{const i=n,{loading:e=!0,delay:t=200}=i,r=di(i,["loading","delay"]);return ee.jsx($r,{direction:"top",delay:t,run:!0,children:ee.jsx(kF,mr(At({hoverable:!0,loading:e},r),{children:n.children}))})};function e8(n){const i=n,{sliderConfig:e,children:t}=i,r=di(i,["sliderConfig","children"]);return ee.jsx(OW,mr(At(At({},r),e),{children:t}))}function t8(n,e){var t;NW&&FW(n);var r=kW(n),i=(t=e==null?void 0:e.wait)!==null&&t!==void 0?t:1e3,a=q.useMemo(function(){return UW(function(){for(var o=[],s=0;se in n?EW(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,At=(n,e)=>{for(var t in e||(e={}))q2.call(e,t)&&K2(n,t,e[t]);if(im)for(var t of im(e))Q2.call(e,t)&&K2(n,t,e[t]);return n},mr=(n,e)=>RW(n,PW(e));var di=(n,e)=>{var t={};for(var r in n)q2.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&im)for(var r of im(n))e.indexOf(r)<0&&Q2.call(n,r)&&(t[r]=n[r]);return t};var ch=(n,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(u){i(u)}},o=l=>{try{s(t.throw(l))}catch(u){i(u)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);s((t=t.apply(n,e)).next())});import{j as ee,n as kF,a as Yf,c as UF,Y as GF,K as Oo,g as $S,L as cT,J as $2,aw as DW,i as IW}from"./antd-66264537.js";import{r as q,g as zF,a as na}from"./react-f288da4a.js";import{u as LW,a as BW,b as OW,i as NW,d as FW,e as kW,f as UW,_ as GW,g as zW,h as HW,F as VW,j as WW,k as XW,t as Yn,S as $0,l as YW,m as JW}from"./entry/index-03014cdd.1715615595704.js";import{c as ZW,U as jW}from"./index-d47ae162.js";import{_ as e1}from"./index-646dffa4.js";import{T as $r}from"./Translatex-37dc0dc8.js";import{G as KW}from"./index-20e61b4c.js";import"./index-6a9c85e1.js";function qW(n){const e=q.useRef(null),t=At({mass:1,tension:170,friction:26,clamp:!1,precision:.01,velocity:0},n.panelConfig),[{xys:r},i]=LW(()=>({xys:[0,0,1],config:t}),[t]),a=()=>i.start({xys:[0,0,1]}),o=s=>{var u;const l=(u=e.current)==null?void 0:u.getBoundingClientRect();i.start({xys:QW(s.clientX,s.clientY,l)})};return ee.jsx("div",{ref:e,children:ee.jsxs(BW.div,{className:"border border-solid ",style:{transform:r.to($W)},onMouseLeave:a,onMouseMove:o,children:[ee.jsxs("p",{className:"text-sm flex justify-between border-solid",children:[n.title," ",n.right]}),n.children]})})}const QW=(n,e,t)=>[-(e-t.top-t.height/2)/150,(n-t.left-t.width/2)/150,1],$W=(n,e,t)=>`perspective(600px) rotateX(${n}deg) rotateY(${e}deg) scale(${t})`,t1=n=>{const i=n,{loading:e=!0,delay:t=200}=i,r=di(i,["loading","delay"]);return ee.jsx($r,{direction:"top",delay:t,run:!0,children:ee.jsx(kF,mr(At({hoverable:!0,loading:e},r),{children:n.children}))})};function e8(n){const i=n,{sliderConfig:e,children:t}=i,r=di(i,["sliderConfig","children"]);return ee.jsx(OW,mr(At(At({},r),e),{children:t}))}function t8(n,e){var t;NW&&FW(n);var r=kW(n),i=(t=e==null?void 0:e.wait)!==null&&t!==void 0?t:1e3,a=q.useMemo(function(){return UW(function(){for(var o=[],s=0;st.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Ee(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,s;for(s=0;s=0)&&(r[a]=t[a]);return r}function $(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function F(t){for(var e=1;e24?(p+=24-f,f=24-b):f+=b,f===24&&(f=0),p+=b,r&&p>s*24-a&&g!==0&&(u.hidden=!0),u.span=b,u}),{searchFields:y,span:p}},Me=function(e){return e?_.search.collapsed:_.search.expand},xe=["getFieldValue","getFieldsValue","getFieldError","getFieldsError","isFieldTouched","isFieldsTouched","isFieldValidating","resetFields","scrollToField","setFields","setFieldsValue","submit","validateFields"],De=m.forwardRef(function(e,r){var n=e.fields,a=e.onConfirm,s=e.onReset,v=e.formExtend,p=e.defaultOpen,f=e.toggleVisible,y=e.openRow,o=y===void 0?Pe:y,g=e.actionVisible,u=e.inline,b=we(e,ge),k=de(),x=k.styles,P=m.useRef(),C=m.useRef(0),H=m.useState(!p),V=B(H,2),h=V[0],U=V[1],Y=m.useState("large"),I=B(Y,2),T=I[0],q=I[1],S=m.useMemo(function(){return _e[T]},[T]),D=Ae(n,h,T,S,o,u||!1),R=D.searchFields,O=D.span,L=m.useMemo(function(){if(!u){if(O<=18)return 6;var i=0,l=0,d=0;R.forEach(function(re,ne){var w=re.span||S;w+l>24?(i+=24-l,l=24-w):l+=w,l===24&&(l=0),i+w+S>o*24&&!d&&ne!==0&&(d=i),i+=w}),d===0&&(d=i);var W=24-(h?d:i)%24;return W}},[R,S,h,O,u]),G=m.useMemo(function(){return O>=24-S},[O]),J=m.useMemo(function(){var i={};return G?i.textAlign="right":i.paddingLeft=50,u&&(i={}),i},[G,u]),j=m.useRef(),z={resize:function(){return N()}};xe.forEach(function(i){z[i]=function(){var l;return(l=j.current)[i].apply(l,arguments)}}),m.useImperativeHandle(r,function(){return z});var Q=function(){U(!h)},X=function(){try{var l=P.current.offsetWidth,d="large";l>1300?d="large":l>900?d="middle":l>700?d="small":d="mini",q(d)}catch(W){}},N=function(){var l=Date.now();l-C.current>100&&(X(),C.current=l)};m.useLayoutEffect(function(){var i=new window.ResizeObserver(function(){N()});return i.observe(P.current),function(){i.disconnect()}},[]);var Z=function(){j.current.resetFields(),j.current.submit(),s&&s()},ee=function(l){a&&a(l)},te=function(){return c.createElement(A,{type:"link",onClick:Q},Me(h),h?c.createElement(fe,null):c.createElement(me,null))};return c.createElement(ie,{className:ae(x.gSearch,u?"":"full-width",u?x.inline:"")},c.createElement("div",{className:"g-search-content",ref:P},c.createElement(pe,M({layout:{labelCol:{flex:"100px"}},ref:j,fields:R,span:S,gutter:u?0:16,formLayout:u?"inline":"horizontal",onConfirm:ee},b,v),g!==!1&&c.createElement(oe,{span:L,style:J},c.createElement(le.Item,null,c.createElement(ue,null,c.createElement(A,{htmlType:"submit",type:"primary",icon:c.createElement(se,null)},_.search.search),c.createElement(A,{icon:c.createElement(ce,null),onClick:Z},_.search.reset),f!==!1&&!u?O>o*24-(L||0)&&R.length>1&&c.createElement(te,null):null))))))});export{De as G}; diff --git a/assets/index-8e157b2c.js b/assets/index-6fedfb5f.js similarity index 91% rename from assets/index-8e157b2c.js rename to assets/index-6fedfb5f.js index 90f8175..fad3cd3 100644 --- a/assets/index-8e157b2c.js +++ b/assets/index-6fedfb5f.js @@ -1 +1 @@ -import{j as e,J as x,K as n,n as a,al as r,z as d}from"./antd-66264537.js";import{t}from"./entry/index-49ff40a5.1715612414483.js";import{r as h}from"./react-f288da4a.js";import{G as o}from"./index-c5e45b02.js";import{P as j,a as c}from"./websiteSetting-168278cd.js";const g=()=>{const[s,i]=h.useState(100),l=[{title:t("第一个"),key:"1",type:"date"},{title:t("第二个"),key:"2"},{title:t("第三个"),key:"3"},{title:t("第四个"),key:"4"},{title:t("第五个"),key:"5"},{title:t("第六个"),key:"6"},{title:t("第七个"),key:"7"},{title:t("第八个"),key:"8"},{title:t("第九个"),key:"9"},{title:t("第十个"),key:"10"}];return e.jsx(j,{plugin:c,children:e.jsxs(x,{gutter:[12,12],children:[e.jsx(n,{span:24,children:e.jsxs(a,{title:t("基础用法"),children:[e.jsx(r,{message:t("拖拽我,看看我的变化:"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("超过一行就折叠"),children:[e.jsx(r,{message:t("设置openRow,控制超过几行就折叠:"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,openRow:1})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("默认展开全部"),children:[e.jsx(r,{message:t("设置defaultOpen"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,defaultOpen:!0})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("平铺展示"),children:[e.jsx(r,{message:t("inline 状态下,所有的查询项的 title 不再有效,且会变成 placeholder,不断地平铺下去。"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,defaultOpen:!0,inline:!0,toggleVisible:!1})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("跨格"),children:[e.jsx(r,{message:t("GSearch 的 span 值是无效的,请使用 grid 来指定占格"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l.concat([{title:t("第一个"),key:"1",grid:{large:12,middle:16,small:24,mini:24}}]),defaultOpen:!0})})]})})]})})};export{g as default}; +import{j as e,J as x,K as n,n as a,al as r,z as d}from"./antd-66264537.js";import{t}from"./entry/index-03014cdd.1715615595704.js";import{r as h}from"./react-f288da4a.js";import{G as o}from"./index-6a9c85e1.js";import{P as j,a as c}from"./websiteSetting-6d372edc.js";const g=()=>{const[s,i]=h.useState(100),l=[{title:t("第一个"),key:"1",type:"date"},{title:t("第二个"),key:"2"},{title:t("第三个"),key:"3"},{title:t("第四个"),key:"4"},{title:t("第五个"),key:"5"},{title:t("第六个"),key:"6"},{title:t("第七个"),key:"7"},{title:t("第八个"),key:"8"},{title:t("第九个"),key:"9"},{title:t("第十个"),key:"10"}];return e.jsx(j,{plugin:c,children:e.jsxs(x,{gutter:[12,12],children:[e.jsx(n,{span:24,children:e.jsxs(a,{title:t("基础用法"),children:[e.jsx(r,{message:t("拖拽我,看看我的变化:"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("超过一行就折叠"),children:[e.jsx(r,{message:t("设置openRow,控制超过几行就折叠:"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,openRow:1})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("默认展开全部"),children:[e.jsx(r,{message:t("设置defaultOpen"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,defaultOpen:!0})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("平铺展示"),children:[e.jsx(r,{message:t("inline 状态下,所有的查询项的 title 不再有效,且会变成 placeholder,不断地平铺下去。"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,defaultOpen:!0,inline:!0,toggleVisible:!1})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("跨格"),children:[e.jsx(r,{message:t("GSearch 的 span 值是无效的,请使用 grid 来指定占格"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l.concat([{title:t("第一个"),key:"1",grid:{large:12,middle:16,small:24,mini:24}}]),defaultOpen:!0})})]})})]})})};export{g as default}; diff --git a/assets/index-dcf004a0.js b/assets/index-733cf98d.js similarity index 96% rename from assets/index-dcf004a0.js rename to assets/index-733cf98d.js index 933b488..1108ea5 100644 --- a/assets/index-dcf004a0.js +++ b/assets/index-733cf98d.js @@ -1 +1 @@ -var U=Object.defineProperty,W=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var C=(e,t,r)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))T.call(t,r)&&C(e,r,t[r]);if(y)for(var r of y(t))w.call(t,r)&&C(e,r,t[r]);return e},E=(e,t)=>W(e,z(t));var N=(e,t)=>{var r={};for(var c in e)T.call(e,c)&&t.indexOf(c)<0&&(r[c]=e[c]);if(e!=null&&y)for(var c of y(e))t.indexOf(c)<0&&w.call(e,c)&&(r[c]=e[c]);return r};import{j as n,J as F,K as u,n as S,ar as f,as as M,W as q}from"./antd-66264537.js";import{t as l}from"./entry/index-49ff40a5.1715612414483.js";import{r as k}from"./react-f288da4a.js";import{P as v,T as B}from"./websiteSetting-168278cd.js";const j=[];for(let e=1;e<10;e++)j.push({key:e.toString(),title:l("备选项{{i}}",{i:e})});const A=[{key:"1",title:l("备选项 1")},{key:"2",title:l("备选项 2"),children:[{key:"2-1",title:l("备选项 2-1")},{key:"2-2",title:l("备选项 2-2")},{key:"2-3",title:l("备选项 2-3")}]},{key:"3",title:l("备选项 3-1")},{key:"4",title:l("备选项 4"),children:[{key:"4-1",title:l("备选项 4-1")},{key:"4-2",title:l("备选项 4-2"),children:[{key:"4-2-1",title:l("备选项 4-2-1")}]},{key:"4-3",title:l("备选项 4-3")}]}],x=[];function O(e=[]){e.forEach(t=>{x==null||x.push(t),O(t.children)})}O(JSON.parse(JSON.stringify(A)));const X=()=>{const[e,t]=k.useState(["1","5"]),[r,c]=k.useState(["2","6"]),[p,P]=k.useState([]),m=s=>{t(s)},J=(s,i)=>{c([...s,...i])},K=(s,i)=>s.includes(i),b=(s=[],i=[])=>s.map(d=>{var o=d,{children:h}=o,a=N(o,["children"]);return E(R({},a),{disabled:i.includes(a.key),children:b(h,i)})}),_=s=>{P(s)},D=({selectedKeys:s,onItemSelectAll:i,onItemSelect:h})=>({onSelectAll(a,d){const o=d.filter(g=>!g.disabled).map(({key:g})=>g);i(o,a)},onSelect({key:a},d){h(a,d)},selectedRowKeys:s});return n.jsx(v,{plugin:B,children:n.jsxs(F,{gutter:12,children:[n.jsx(u,{span:8,children:n.jsx(S,{title:l("基础用法"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:e,selectedKeys:r,dataSource:j,render:s=>s.title,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:l("项")},onChange:m,onSelectChange:J})})}),n.jsx(u,{span:8,children:n.jsx(S,{title:l("树穿梭框"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:p,dataSource:x,render:s=>s.title,showSelectAll:!1,listStyle:{width:"230px",height:"360px"},onChange:_,children:({direction:s,selectedKeys:i,onItemSelect:h})=>{if(s==="left"){const a=[...i,...p];return n.jsx(M,{blockNode:!0,checkable:!0,checkStrictly:!0,defaultExpandAll:!0,checkedKeys:a,treeData:b(A,p),onCheck:(d,{node:{key:o}})=>{h(o,!K(a,o))},onSelect:(d,{node:{key:o}})=>{h(o,!K(a,o))}})}}})})}),n.jsx(u,{span:8,children:n.jsx(S,{title:l("表格穿梭框"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:e,dataSource:j,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:l("项")},onChange:m,children:({filteredItems:s,selectedKeys:i,onItemSelectAll:h,onItemSelect:a})=>n.jsx(q,{rowSelection:D({selectedKeys:i,onItemSelectAll:h,onItemSelect:a}),columns:[{dataIndex:"title",title:"Name"}],dataSource:s,size:"small",pagination:!1,onRow:({key:d})=>({onClick:()=>{a(d,!i.includes(d))}})})})})})]})})};export{X as default}; +var U=Object.defineProperty,W=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var C=(e,t,r)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))T.call(t,r)&&C(e,r,t[r]);if(y)for(var r of y(t))w.call(t,r)&&C(e,r,t[r]);return e},E=(e,t)=>W(e,z(t));var N=(e,t)=>{var r={};for(var c in e)T.call(e,c)&&t.indexOf(c)<0&&(r[c]=e[c]);if(e!=null&&y)for(var c of y(e))t.indexOf(c)<0&&w.call(e,c)&&(r[c]=e[c]);return r};import{j as n,J as F,K as u,n as S,ar as f,as as M,W as q}from"./antd-66264537.js";import{t as l}from"./entry/index-03014cdd.1715615595704.js";import{r as k}from"./react-f288da4a.js";import{P as v,T as B}from"./websiteSetting-6d372edc.js";const j=[];for(let e=1;e<10;e++)j.push({key:e.toString(),title:l("备选项{{i}}",{i:e})});const A=[{key:"1",title:l("备选项 1")},{key:"2",title:l("备选项 2"),children:[{key:"2-1",title:l("备选项 2-1")},{key:"2-2",title:l("备选项 2-2")},{key:"2-3",title:l("备选项 2-3")}]},{key:"3",title:l("备选项 3-1")},{key:"4",title:l("备选项 4"),children:[{key:"4-1",title:l("备选项 4-1")},{key:"4-2",title:l("备选项 4-2"),children:[{key:"4-2-1",title:l("备选项 4-2-1")}]},{key:"4-3",title:l("备选项 4-3")}]}],x=[];function O(e=[]){e.forEach(t=>{x==null||x.push(t),O(t.children)})}O(JSON.parse(JSON.stringify(A)));const X=()=>{const[e,t]=k.useState(["1","5"]),[r,c]=k.useState(["2","6"]),[p,P]=k.useState([]),m=s=>{t(s)},J=(s,i)=>{c([...s,...i])},K=(s,i)=>s.includes(i),b=(s=[],i=[])=>s.map(d=>{var o=d,{children:h}=o,a=N(o,["children"]);return E(R({},a),{disabled:i.includes(a.key),children:b(h,i)})}),_=s=>{P(s)},D=({selectedKeys:s,onItemSelectAll:i,onItemSelect:h})=>({onSelectAll(a,d){const o=d.filter(g=>!g.disabled).map(({key:g})=>g);i(o,a)},onSelect({key:a},d){h(a,d)},selectedRowKeys:s});return n.jsx(v,{plugin:B,children:n.jsxs(F,{gutter:12,children:[n.jsx(u,{span:8,children:n.jsx(S,{title:l("基础用法"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:e,selectedKeys:r,dataSource:j,render:s=>s.title,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:l("项")},onChange:m,onSelectChange:J})})}),n.jsx(u,{span:8,children:n.jsx(S,{title:l("树穿梭框"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:p,dataSource:x,render:s=>s.title,showSelectAll:!1,listStyle:{width:"230px",height:"360px"},onChange:_,children:({direction:s,selectedKeys:i,onItemSelect:h})=>{if(s==="left"){const a=[...i,...p];return n.jsx(M,{blockNode:!0,checkable:!0,checkStrictly:!0,defaultExpandAll:!0,checkedKeys:a,treeData:b(A,p),onCheck:(d,{node:{key:o}})=>{h(o,!K(a,o))},onSelect:(d,{node:{key:o}})=>{h(o,!K(a,o))}})}}})})}),n.jsx(u,{span:8,children:n.jsx(S,{title:l("表格穿梭框"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:e,dataSource:j,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:l("项")},onChange:m,children:({filteredItems:s,selectedKeys:i,onItemSelectAll:h,onItemSelect:a})=>n.jsx(q,{rowSelection:D({selectedKeys:i,onItemSelectAll:h,onItemSelect:a}),columns:[{dataIndex:"title",title:"Name"}],dataSource:s,size:"small",pagination:!1,onRow:({key:d})=>({onClick:()=>{a(d,!i.includes(d))}})})})})})]})})};export{X as default}; diff --git a/assets/index-67537c9a.js b/assets/index-8783bc29.js similarity index 98% rename from assets/index-67537c9a.js rename to assets/index-8783bc29.js index 22955ee..c6f0c3c 100644 --- a/assets/index-67537c9a.js +++ b/assets/index-8783bc29.js @@ -1 +1 @@ -var R=Object.defineProperty;var f=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var C=(i,s,r)=>s in i?R(i,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[s]=r,y=(i,s)=>{for(var r in s||(s={}))B.call(s,r)&&C(i,r,s[r]);if(f)for(var r of f(s))M.call(s,r)&&C(i,r,s[r]);return i};import{G as l,j as a,n as A,I as m,t as E,J as h,K as n,s as w,x as O,at as W,u as Z,z as q,au as I,av as v,w as G,v as J,i as N}from"./antd-66264537.js";import{t as e}from"./entry/index-49ff40a5.1715612414483.js";import{r as p}from"./react-f288da4a.js";import{P as _,F as H}from"./websiteSetting-168278cd.js";const k=["guangdong","Zhejiang","Jiangsu"],x={guangdong:["guangzhou","shenzhen","foshan","dongguan","zhuhai"],Zhejiang:["Hangzhou","Ningbo","Wenzhou"],Jiangsu:["Nanjing","Suzhou","Zhenjiang","wuxi"]},K=[{value:"zhinan",label:e("指南"),children:[{value:"shejiyuanze",label:e("设计原则"),children:[{value:"yizhi",label:e("一致")},{value:"fankui",label:e("反馈")},{value:"xiaolv",label:e("效率")},{value:"kekong",label:e("可控")}]},{value:"daohang",label:e("导航"),children:[{value:"cexiangdaohang",label:e("侧向导航")},{value:"dingbudaohang",label:e("顶部导航")}]}]},{value:"zujian",label:e("组件"),children:[{value:"basic",label:"Basic",children:[{value:"layout",label:e("layout 布局")},{value:"color",label:e("Color 色彩")},{value:"typography",label:e("Typography 字体")},{value:"icon",label:e("Icon 图标")},{value:"button",label:e("Button 按钮")}]},{value:"form",label:"Form",children:[{value:"radio",label:e("Radio 单选框")},{value:"checkbox",label:e("Checkbox 多选框")},{value:"input",label:e("Input 输入框")},{value:"input-number",label:e("InputNumber 计数器")},{value:"select",label:e("Select 选择器")},{value:"cascader",label:e("Cascader 级联选择器")},{value:"switch",label:e("Switch 开关")},{value:"slider",label:e("Slider 滑块")},{value:"time-picker",label:e("TimePicker 时间选择器")},{value:"date-picker",label:e("DatePicker 日期选择器")},{value:"datetime-picker",label:e("DateTimePicker 日期时间选择器")},{value:"upload",label:e("Upload 上传")},{value:"rate",label:e("Rate 评分")},{value:"form",label:e("Form 表单")}]},{value:"data",label:"Data",children:[{value:"table",label:e("Table 表格")},{value:"tag",label:e("Tag 标签")},{value:"progress",label:e("Progress 进度条")},{value:"tree",label:e("Tree 树形控件")},{value:"pagination",label:e("Pagination 分页")},{value:"badge",label:e("Badge 标记")}]},{value:"notice",label:"Notice",children:[{value:"alert",label:e("Alert 警告")},{value:"loading",label:e("Loading 加载")},{value:"message",label:e("Message 消息提示")},{value:"message-box",label:e("MessageBox 弹框")},{value:"notification",label:e("Notification 通知")}]},{value:"navigation",label:"Navigation",children:[{value:"menu",label:e("NavMenu 导航菜单")},{value:"tabs",label:e("Tabs 标签页")},{value:"breadcrumb",label:e("Breadcrumb 面包屑")},{value:"dropdown",label:e("Dropdown 下拉菜单")},{value:"steps",label:e("Steps 步骤条")}]},{value:"others",label:"Others",children:[{value:"dialog",label:e("Dialog 对话框")},{value:"tooltip",label:e("Tooltip 文字提示")},{value:"popover",label:e("Popover 弹出框")},{value:"card",label:e("Card 卡片")},{value:"carousel",label:e("Carousel 走马灯")},{value:"collapse",label:e("Collapse 折叠面板")}]}]},{value:"ziyuan",label:e("资源"),children:[{value:"axure",label:"Axure Components"},{value:"sketch",label:"Sketch Templates"},{value:"jiaohu",label:e("组件交互文档")}]}],U=[{title:"Node1",value:"0-0",children:[{title:"Child Node1",value:"0-0-0",children:[{title:"Child Node6",value:"0-0-1"}]}]},{title:"Node2",value:"0-1",children:[{title:"Child Node3",value:"0-1-0",disabled:!0},{title:"Child Node4",value:"0-1-1"},{title:"Child Node5",value:"0-1-2"}]}],$=[{label:e("免费"),value:"free"},{label:e("收费"),value:"fee"},{label:e("赞助"),value:"sponsor"},{label:e("线上"),value:"online",disabled:!0},{label:e("线下"),value:"offline",disabled:!0}],Q=[{label:e("游泳"),value:"swim"},{label:e("跑步"),value:"run"},{label:e("健身"),value:"fit"},{label:e("阅读"),value:"read",disabled:!0},{label:e("音乐"),value:"music",disabled:!0},{label:e("电影"),value:"movie"}],se=()=>{const[i]=l.useForm(),s=k[0],[r,X]=p.useState({inputLimit:"",inputNum:"",password:"",selectProvince:s,selectCity:x[s][0],dateVal:"",timeVal:"",switchVal:!0,sliderVal:32,cascaderVal:[],cascaderLazy:[],treeVal:["0-0-1"],treeLazy:"1",radioVal:"offline",checkboxVal:["read"],textareaVal:""}),b={inputLimit:[{required:!0,message:e("内容不能为空")}],inputNum:[{required:!0,message:e("内容不能为空")},{type:"number",message:e("内容必须为数字值")}],password:[{required:!0,message:e("内容不能为空")},{min:6,max:16,message:e("密码长度在 6 到 16 个字符")},{pattern:/^[a-zA-Z0-9_-]{6,16}$/,message:e("密码只支持字母、数字和下划线")}]},V=l.useWatch("switchVal",i),[g,z]=p.useState([{value:1,label:e("选项1"),isLeaf:!1}]),[c,T]=p.useState([{id:1,pId:0,value:"1",title:"Expand to load"},{id:2,pId:0,value:"2",title:"Expand to load"},{id:3,pId:0,value:"3",title:"Tree Node",isLeaf:!0}]),S=t=>{i.setFieldsValue({selectCity:x[t][0]})},L=t=>{const o=t[t.length-1];o.loading=!0,setTimeout(()=>{o.loading=!1;let u=t.length;const d=t.length;o.children=Array.from({length:d+1}).map(()=>({value:++u,label:e("选项{{id}}",{id:u}),isLeaf:d>=2})),z([...g])},1e3)},P=({id:t})=>{const o=(u,d=!1)=>{const j=Math.random().toString(36).substring(2,6);return{id:j,pId:u,value:j,title:d?"Tree Node":"Expand to load",isLeaf:d}};return new Promise(u=>{setTimeout(()=>{T(c==null?void 0:c.concat([o(t,!1),o(t,!0),o(t,!0)])),u(void 0)},500)})},D=t=>{},F=()=>{i.resetFields()};return a.jsx(_,{plugin:H,children:a.jsx(A,{bordered:!1,children:a.jsxs(l,{form:i,labelCol:{span:6},wrapperCol:{span:18},initialValues:y({},r),style:{width:"40%",margin:"0 auto"},onFinish:D,children:[a.jsx(l.Item,{label:e("输入框(长度限制):"),name:"inputLimit",rules:b.inputLimit,children:a.jsx(m,{showCount:!0,maxLength:20,placeholder:e("请输入内容")})}),a.jsx(l.Item,{label:e("输入框(纯数字):"),name:"inputNum",rules:b.inputNum,children:a.jsx(E,{style:{width:"100%"},placeholder:e("请输入数字")})}),a.jsx(l.Item,{label:e("输入框(密码隐藏):"),name:"password",rules:b.password,children:a.jsx(m.Password,{maxLength:16,autoComplete:"off",placeholder:e("请输入密码")})}),a.jsx(l.Item,{label:e("select选择器(联动):"),children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"selectProvince",children:a.jsx(w,{options:k.map(t=>({value:t})),onChange:S})})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"selectCity",children:a.jsx(w,{options:x[r.selectProvince].map(t=>({value:t}))})})})]})}),a.jsx(l.Item,{label:e("日期和时间选择器:"),name:"dateVal",children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(O,{placeholder:e("选择日期"),style:{width:"100%"}})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"timeVal",children:a.jsx(W,{placeholder:e("选择时间"),style:{width:"100%"}})})})]})}),a.jsx(l.Item,{label:e("switch开关(显示隐藏):"),name:"switchVal",valuePropName:"checked",children:a.jsx(Z,{})}),V?a.jsxs(a.Fragment,{children:[a.jsx(l.Item,{label:e("滑块条(初始值):"),name:"sliderVal",children:a.jsx(q,{})}),a.jsx(l.Item,{label:e("级联选择器:"),children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"cascaderVal",children:a.jsx(I,{options:K,placeholder:e("请选择")})})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"cascaderLazy",children:a.jsx(I,{options:g,loadData:L,changeOnSelect:!0,placeholder:e("请输入")})})})]})}),a.jsx(l.Item,{label:e("树选择器(可勾选):"),name:"treeVal",children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(v,{treeData:U,treeCheckable:!0,allowClear:!0,showCheckedStrategy:v.SHOW_PARENT,placeholder:e("请选择")})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"treeLazy",children:a.jsx(v,{treeDataSimpleMode:!0,treeData:c,loadData:P,placeholder:e("请选择")})})})]})}),a.jsx(l.Item,{label:e("单选框(带禁止):"),name:"radioVal",children:a.jsx(G.Group,{options:$})}),a.jsx(l.Item,{label:e("多选框(带禁止):"),name:"checkboxVal",children:a.jsx(J.Group,{options:Q})}),a.jsx(l.Item,{label:e("文本域(长度限制):"),name:"textareaVal",children:a.jsx(m.TextArea,{maxLength:50,rows:3,placeholder:e("请输入内容")})})]}):null,a.jsxs(l.Item,{wrapperCol:{span:12,offset:12},children:[a.jsx(N,{type:"primary",htmlType:"submit",children:e("提交")}),a.jsx(N,{style:{marginLeft:"12px"},onClick:F,children:e("重置")})]})]})})})};export{se as default}; +var R=Object.defineProperty;var f=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var C=(i,s,r)=>s in i?R(i,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[s]=r,y=(i,s)=>{for(var r in s||(s={}))B.call(s,r)&&C(i,r,s[r]);if(f)for(var r of f(s))M.call(s,r)&&C(i,r,s[r]);return i};import{G as l,j as a,n as A,I as m,t as E,J as h,K as n,s as w,x as O,at as W,u as Z,z as q,au as I,av as v,w as G,v as J,i as N}from"./antd-66264537.js";import{t as e}from"./entry/index-03014cdd.1715615595704.js";import{r as p}from"./react-f288da4a.js";import{P as _,F as H}from"./websiteSetting-6d372edc.js";const k=["guangdong","Zhejiang","Jiangsu"],x={guangdong:["guangzhou","shenzhen","foshan","dongguan","zhuhai"],Zhejiang:["Hangzhou","Ningbo","Wenzhou"],Jiangsu:["Nanjing","Suzhou","Zhenjiang","wuxi"]},K=[{value:"zhinan",label:e("指南"),children:[{value:"shejiyuanze",label:e("设计原则"),children:[{value:"yizhi",label:e("一致")},{value:"fankui",label:e("反馈")},{value:"xiaolv",label:e("效率")},{value:"kekong",label:e("可控")}]},{value:"daohang",label:e("导航"),children:[{value:"cexiangdaohang",label:e("侧向导航")},{value:"dingbudaohang",label:e("顶部导航")}]}]},{value:"zujian",label:e("组件"),children:[{value:"basic",label:"Basic",children:[{value:"layout",label:e("layout 布局")},{value:"color",label:e("Color 色彩")},{value:"typography",label:e("Typography 字体")},{value:"icon",label:e("Icon 图标")},{value:"button",label:e("Button 按钮")}]},{value:"form",label:"Form",children:[{value:"radio",label:e("Radio 单选框")},{value:"checkbox",label:e("Checkbox 多选框")},{value:"input",label:e("Input 输入框")},{value:"input-number",label:e("InputNumber 计数器")},{value:"select",label:e("Select 选择器")},{value:"cascader",label:e("Cascader 级联选择器")},{value:"switch",label:e("Switch 开关")},{value:"slider",label:e("Slider 滑块")},{value:"time-picker",label:e("TimePicker 时间选择器")},{value:"date-picker",label:e("DatePicker 日期选择器")},{value:"datetime-picker",label:e("DateTimePicker 日期时间选择器")},{value:"upload",label:e("Upload 上传")},{value:"rate",label:e("Rate 评分")},{value:"form",label:e("Form 表单")}]},{value:"data",label:"Data",children:[{value:"table",label:e("Table 表格")},{value:"tag",label:e("Tag 标签")},{value:"progress",label:e("Progress 进度条")},{value:"tree",label:e("Tree 树形控件")},{value:"pagination",label:e("Pagination 分页")},{value:"badge",label:e("Badge 标记")}]},{value:"notice",label:"Notice",children:[{value:"alert",label:e("Alert 警告")},{value:"loading",label:e("Loading 加载")},{value:"message",label:e("Message 消息提示")},{value:"message-box",label:e("MessageBox 弹框")},{value:"notification",label:e("Notification 通知")}]},{value:"navigation",label:"Navigation",children:[{value:"menu",label:e("NavMenu 导航菜单")},{value:"tabs",label:e("Tabs 标签页")},{value:"breadcrumb",label:e("Breadcrumb 面包屑")},{value:"dropdown",label:e("Dropdown 下拉菜单")},{value:"steps",label:e("Steps 步骤条")}]},{value:"others",label:"Others",children:[{value:"dialog",label:e("Dialog 对话框")},{value:"tooltip",label:e("Tooltip 文字提示")},{value:"popover",label:e("Popover 弹出框")},{value:"card",label:e("Card 卡片")},{value:"carousel",label:e("Carousel 走马灯")},{value:"collapse",label:e("Collapse 折叠面板")}]}]},{value:"ziyuan",label:e("资源"),children:[{value:"axure",label:"Axure Components"},{value:"sketch",label:"Sketch Templates"},{value:"jiaohu",label:e("组件交互文档")}]}],U=[{title:"Node1",value:"0-0",children:[{title:"Child Node1",value:"0-0-0",children:[{title:"Child Node6",value:"0-0-1"}]}]},{title:"Node2",value:"0-1",children:[{title:"Child Node3",value:"0-1-0",disabled:!0},{title:"Child Node4",value:"0-1-1"},{title:"Child Node5",value:"0-1-2"}]}],$=[{label:e("免费"),value:"free"},{label:e("收费"),value:"fee"},{label:e("赞助"),value:"sponsor"},{label:e("线上"),value:"online",disabled:!0},{label:e("线下"),value:"offline",disabled:!0}],Q=[{label:e("游泳"),value:"swim"},{label:e("跑步"),value:"run"},{label:e("健身"),value:"fit"},{label:e("阅读"),value:"read",disabled:!0},{label:e("音乐"),value:"music",disabled:!0},{label:e("电影"),value:"movie"}],se=()=>{const[i]=l.useForm(),s=k[0],[r,X]=p.useState({inputLimit:"",inputNum:"",password:"",selectProvince:s,selectCity:x[s][0],dateVal:"",timeVal:"",switchVal:!0,sliderVal:32,cascaderVal:[],cascaderLazy:[],treeVal:["0-0-1"],treeLazy:"1",radioVal:"offline",checkboxVal:["read"],textareaVal:""}),b={inputLimit:[{required:!0,message:e("内容不能为空")}],inputNum:[{required:!0,message:e("内容不能为空")},{type:"number",message:e("内容必须为数字值")}],password:[{required:!0,message:e("内容不能为空")},{min:6,max:16,message:e("密码长度在 6 到 16 个字符")},{pattern:/^[a-zA-Z0-9_-]{6,16}$/,message:e("密码只支持字母、数字和下划线")}]},V=l.useWatch("switchVal",i),[g,z]=p.useState([{value:1,label:e("选项1"),isLeaf:!1}]),[c,T]=p.useState([{id:1,pId:0,value:"1",title:"Expand to load"},{id:2,pId:0,value:"2",title:"Expand to load"},{id:3,pId:0,value:"3",title:"Tree Node",isLeaf:!0}]),S=t=>{i.setFieldsValue({selectCity:x[t][0]})},L=t=>{const o=t[t.length-1];o.loading=!0,setTimeout(()=>{o.loading=!1;let u=t.length;const d=t.length;o.children=Array.from({length:d+1}).map(()=>({value:++u,label:e("选项{{id}}",{id:u}),isLeaf:d>=2})),z([...g])},1e3)},P=({id:t})=>{const o=(u,d=!1)=>{const j=Math.random().toString(36).substring(2,6);return{id:j,pId:u,value:j,title:d?"Tree Node":"Expand to load",isLeaf:d}};return new Promise(u=>{setTimeout(()=>{T(c==null?void 0:c.concat([o(t,!1),o(t,!0),o(t,!0)])),u(void 0)},500)})},D=t=>{},F=()=>{i.resetFields()};return a.jsx(_,{plugin:H,children:a.jsx(A,{bordered:!1,children:a.jsxs(l,{form:i,labelCol:{span:6},wrapperCol:{span:18},initialValues:y({},r),style:{width:"40%",margin:"0 auto"},onFinish:D,children:[a.jsx(l.Item,{label:e("输入框(长度限制):"),name:"inputLimit",rules:b.inputLimit,children:a.jsx(m,{showCount:!0,maxLength:20,placeholder:e("请输入内容")})}),a.jsx(l.Item,{label:e("输入框(纯数字):"),name:"inputNum",rules:b.inputNum,children:a.jsx(E,{style:{width:"100%"},placeholder:e("请输入数字")})}),a.jsx(l.Item,{label:e("输入框(密码隐藏):"),name:"password",rules:b.password,children:a.jsx(m.Password,{maxLength:16,autoComplete:"off",placeholder:e("请输入密码")})}),a.jsx(l.Item,{label:e("select选择器(联动):"),children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"selectProvince",children:a.jsx(w,{options:k.map(t=>({value:t})),onChange:S})})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"selectCity",children:a.jsx(w,{options:x[r.selectProvince].map(t=>({value:t}))})})})]})}),a.jsx(l.Item,{label:e("日期和时间选择器:"),name:"dateVal",children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(O,{placeholder:e("选择日期"),style:{width:"100%"}})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"timeVal",children:a.jsx(W,{placeholder:e("选择时间"),style:{width:"100%"}})})})]})}),a.jsx(l.Item,{label:e("switch开关(显示隐藏):"),name:"switchVal",valuePropName:"checked",children:a.jsx(Z,{})}),V?a.jsxs(a.Fragment,{children:[a.jsx(l.Item,{label:e("滑块条(初始值):"),name:"sliderVal",children:a.jsx(q,{})}),a.jsx(l.Item,{label:e("级联选择器:"),children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"cascaderVal",children:a.jsx(I,{options:K,placeholder:e("请选择")})})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"cascaderLazy",children:a.jsx(I,{options:g,loadData:L,changeOnSelect:!0,placeholder:e("请输入")})})})]})}),a.jsx(l.Item,{label:e("树选择器(可勾选):"),name:"treeVal",children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(v,{treeData:U,treeCheckable:!0,allowClear:!0,showCheckedStrategy:v.SHOW_PARENT,placeholder:e("请选择")})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"treeLazy",children:a.jsx(v,{treeDataSimpleMode:!0,treeData:c,loadData:P,placeholder:e("请选择")})})})]})}),a.jsx(l.Item,{label:e("单选框(带禁止):"),name:"radioVal",children:a.jsx(G.Group,{options:$})}),a.jsx(l.Item,{label:e("多选框(带禁止):"),name:"checkboxVal",children:a.jsx(J.Group,{options:Q})}),a.jsx(l.Item,{label:e("文本域(长度限制):"),name:"textareaVal",children:a.jsx(m.TextArea,{maxLength:50,rows:3,placeholder:e("请输入内容")})})]}):null,a.jsxs(l.Item,{wrapperCol:{span:12,offset:12},children:[a.jsx(N,{type:"primary",htmlType:"submit",children:e("提交")}),a.jsx(N,{style:{marginLeft:"12px"},onClick:F,children:e("重置")})]})]})})})};export{se as default}; diff --git a/assets/index-8c013014.js b/assets/index-891af874.js similarity index 95% rename from assets/index-8c013014.js rename to assets/index-891af874.js index 161bb37..5f16021 100644 --- a/assets/index-8c013014.js +++ b/assets/index-891af874.js @@ -1 +1 @@ -import{c,j as e,T as p,J as u,K as t,n as d,aF as o,aq as h}from"./antd-66264537.js";import{t as a,O as x,z as m,s as g}from"./entry/index-49ff40a5.1715612414483.js";import{h as b}from"./react-f288da4a.js";import{T as j}from"./Translatex-83019934.js";const f=c(({token:r})=>({"custom-upload-drag":{".ant-upload-drag":{background:"#fff",border:"none","&:hover":{".add-phone-box":{border:`1px dashed ${r.colorPrimary}`,".add-phone":{background:r.colorBgTextActive}}},".add-phone-box":{width:"144px",height:"144px",borderRadius:"50%",overflow:"hidden",cursor:"pointer",margin:"0 auto",padding:r.paddingSM,border:`1px dashed ${r.colorBorderSecondary}`,transition:"border-color .3s ease","&:hover":{border:`1px dashed ${r.colorPrimary}`},".add-phone":{width:"100%",height:"100%",background:r.colorBgContainerDisabled,borderRadius:"50%",color:r.colorTextDisabled,transition:"all .3s ease","&:hover":{background:r.colorBgTextActive}}}}},"add-user-form":{".ant-input":{borderRadius:r.borderRadiusLG}},"btn-submit":{width:"100%"}})),R=()=>{const r=b(),{Dragger:l}=h,{styles:s}=f(),i=[{title:a("全名"),key:"input",required:!0,defaultValue:"Gbeata"},{title:a("密码"),type:"password",key:"password",defaultValue:"gbeata"},{title:a("城市"),type:"select",key:"select",defaultValue:1,options:[{label:e.jsx(p,{children:a("选项A")}),value:1},{label:a("选项2"),value:2}]},{title:a("电话号码"),key:"number",required:!0,defaultValue:15305999999},{title:a("地址"),type:"textarea",key:"textarea",defaultValue:a("广东省深圳市南山区科技园"),span:24}],n=y=>{r("/user/user-list")};return e.jsx(j,{direction:"left",run:!0,delay:100,children:e.jsxs(u,{gutter:[16,16],children:[e.jsx(t,{span:8,children:e.jsx(d,{children:e.jsxs(l,{action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,className:s["custom-upload-drag"],children:[e.jsx("div",{className:"add-phone-box",children:e.jsxs(o,{align:"center",vertical:!0,justify:"center",className:"add-phone",children:[e.jsx(x,{name:"camera",size:24}),e.jsx("span",{children:"upload phone"})]})}),e.jsxs("p",{children:[a("将图片拖到此处, 或"),e.jsx("span",{style:{color:"#1890ff"},children:a("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:a("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsx(t,{span:16,children:e.jsx(d,{children:e.jsx(m,{fields:i,span:12,onConfirm:n,children:e.jsx(o,{justify:"end",className:s["btn-submit"],children:e.jsx(g,{type:"primary",htmlType:"submit",children:a("创建用户")})})})})})]})})};export{R as default}; +import{c,j as e,T as p,J as u,K as t,n as d,aF as o,aq as h}from"./antd-66264537.js";import{t as a,O as x,z as m,s as g}from"./entry/index-03014cdd.1715615595704.js";import{h as b}from"./react-f288da4a.js";import{T as j}from"./Translatex-37dc0dc8.js";const f=c(({token:r})=>({"custom-upload-drag":{".ant-upload-drag":{background:"#fff",border:"none","&:hover":{".add-phone-box":{border:`1px dashed ${r.colorPrimary}`,".add-phone":{background:r.colorBgTextActive}}},".add-phone-box":{width:"144px",height:"144px",borderRadius:"50%",overflow:"hidden",cursor:"pointer",margin:"0 auto",padding:r.paddingSM,border:`1px dashed ${r.colorBorderSecondary}`,transition:"border-color .3s ease","&:hover":{border:`1px dashed ${r.colorPrimary}`},".add-phone":{width:"100%",height:"100%",background:r.colorBgContainerDisabled,borderRadius:"50%",color:r.colorTextDisabled,transition:"all .3s ease","&:hover":{background:r.colorBgTextActive}}}}},"add-user-form":{".ant-input":{borderRadius:r.borderRadiusLG}},"btn-submit":{width:"100%"}})),R=()=>{const r=b(),{Dragger:l}=h,{styles:s}=f(),i=[{title:a("全名"),key:"input",required:!0,defaultValue:"Gbeata"},{title:a("密码"),type:"password",key:"password",defaultValue:"gbeata"},{title:a("城市"),type:"select",key:"select",defaultValue:1,options:[{label:e.jsx(p,{children:a("选项A")}),value:1},{label:a("选项2"),value:2}]},{title:a("电话号码"),key:"number",required:!0,defaultValue:15305999999},{title:a("地址"),type:"textarea",key:"textarea",defaultValue:a("广东省深圳市南山区科技园"),span:24}],n=y=>{r("/user/user-list")};return e.jsx(j,{direction:"left",run:!0,delay:100,children:e.jsxs(u,{gutter:[16,16],children:[e.jsx(t,{span:8,children:e.jsx(d,{children:e.jsxs(l,{action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,className:s["custom-upload-drag"],children:[e.jsx("div",{className:"add-phone-box",children:e.jsxs(o,{align:"center",vertical:!0,justify:"center",className:"add-phone",children:[e.jsx(x,{name:"camera",size:24}),e.jsx("span",{children:"upload phone"})]})}),e.jsxs("p",{children:[a("将图片拖到此处, 或"),e.jsx("span",{style:{color:"#1890ff"},children:a("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:a("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsx(t,{span:16,children:e.jsx(d,{children:e.jsx(m,{fields:i,span:12,onConfirm:n,children:e.jsx(o,{justify:"end",className:s["btn-submit"],children:e.jsx(g,{type:"primary",htmlType:"submit",children:a("创建用户")})})})})})]})})};export{R as default}; diff --git a/assets/index-6578acfa.js b/assets/index-a0d283f6.js similarity index 98% rename from assets/index-6578acfa.js rename to assets/index-a0d283f6.js index 164f0cc..f70b82c 100644 --- a/assets/index-6578acfa.js +++ b/assets/index-a0d283f6.js @@ -1 +1 @@ -import{j as e,J as g,K as p,n as d,v as S,s as F,u as N,c as y,S as w,D as L,aD as D,ab as I,i as c,aE as T,aF as n,aG as x,L as v,I as R,aw as _,a3 as o,aH as $,V as M,aI as O,aJ as A,aK as P,a1 as E,aL as H,aM as J,aN as B,a4 as K}from"./antd-66264537.js";import{t as a,O as l}from"./entry/index-49ff40a5.1715612414483.js";import{a as f}from"./react-f288da4a.js";import{T as m}from"./Translatex-83019934.js";import{a as z,c as U,b as V}from"./index-6d20d62b.js";const W=()=>e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx(F,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(N,{defaultChecked:!0})]})}),e.jsx(p,{span:12})]})}),u="/react-antd-admin-pnpm/assets/travel_3-0a78a2d4.jpg",G=y(({token:s})=>({"custom-image":{borderRadius:s.borderRadiusLG},"card-action":{position:"absolute",right:s.paddingSM,top:s.paddingSM}})),{Title:Y,Text:Z}=v,q=()=>{const{styles:s,cx:r}=G(),j=[{key:"1",label:e.jsxs(w,{size:8,children:[e.jsx(L,{rev:void 0}),e.jsx("span",{children:a("删除")})]})},{key:"2",label:e.jsxs(w,{size:8,children:[e.jsx(D,{rev:void 0}),e.jsx("span",{children:a("修改")})]})}],h=({key:i})=>{},t=[{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")}];return e.jsx(e.Fragment,{children:e.jsx(g,{gutter:[16,16],children:t.map((i,b)=>e.jsx(p,{span:8,children:e.jsxs(d,{children:[e.jsx(I,{menu:{items:j,onClick:h},placement:"bottomRight",arrow:!0,children:e.jsx(c,{className:r(s["card-action"]),shape:"circle",type:"text",icon:e.jsx(T,{})})}),e.jsxs(n,{gap:8,vertical:!0,align:"center",children:[e.jsx(x,{size:64,src:i.avatar}),e.jsx(Y,{style:{margin:0},level:5,children:i.name}),e.jsx(Z,{type:"secondary",children:i.title}),e.jsxs(n,{style:{marginTop:8},gap:8,children:[e.jsx(c,{shape:"circle",icon:e.jsx(l,{style:{color:"#1890ff"},name:"github"})}),e.jsx(c,{shape:"circle",icon:e.jsx(l,{name:"message"})}),e.jsx(c,{shape:"circle",icon:e.jsx(l,{name:"like"})})]})]})]})},b))})})},Q=()=>e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx(F,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(N,{defaultChecked:!0})]})}),e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"})]})})]})}),X="/react-antd-admin-pnpm/assets/avatar_1-329667d0.jpg",ee="/react-antd-admin-pnpm/assets/avatar_4-2497c77c.jpg",C="/react-antd-admin-pnpm/assets/avatar_6-1e41071d.jpg",se="/react-antd-admin-pnpm/assets/avatar_8-1956d908.jpg",ae=y(({token:s})=>({"message-list":{".message_content":{flex:1,padding:s.paddingSM,backgroundColor:s.colorBgLayout,borderRadius:s.borderRadiusLG}}})),{Title:te,Text:ie}=v,ne=({avatar:s,time:r,content:j,user:h})=>{const{styles:t}=ae();return e.jsxs(n,{gap:8,className:t["message-list"],children:[e.jsx("div",{children:s}),e.jsxs("div",{className:"message_content",children:[e.jsxs(n,{justify:"space-between",align:"center",children:[e.jsx(te,{level:5,children:h}),e.jsx("div",{children:r})]}),e.jsx(ie,{type:"secondary",children:j})]})]})},le=y(({token:s})=>({"send-box":{".send-content":{flex:1,borderRadius:s.borderRadiusLG}}})),re=({avatar:s=C,time:r,content:j,user:h})=>{const{styles:t}=le();return e.jsxs(n,{gap:8,align:"center",className:t["send-box"],children:[e.jsx(x,{src:s}),e.jsx("div",{className:"send-content",children:e.jsx(R,{placeholder:a("请在这里输入您的留言"),suffix:e.jsxs(n,{children:[e.jsx(c,{type:"text",shape:"circle",icon:e.jsx(l,{name:"picture"})}),e.jsx(c,{type:"text",shape:"circle",icon:e.jsx(l,{name:"express"})})]})})})]})},{Text:k}=v,ce=()=>{const{styles:s}=G(),r=[{title:a("深圳市"),icon:e.jsx(l,{name:"point",size:24})},{title:"shoplazza.nyg@gmail.com",icon:e.jsx(l,{name:"email",size:24})},{title:a("前端开发"),icon:e.jsx(l,{name:"work",size:24})}],j=[{title:"https://github.com/anyone-yuren",icon:e.jsx(E,{style:{fontSize:24}})},{title:"nhf066901@sina.com",icon:e.jsx(H,{style:{fontSize:24}})},{title:"leio-forver",icon:e.jsx(J,{style:{fontSize:24}})},{title:"https://juejin.cn/user/2682464101469480/posts",icon:e.jsx(B,{style:{fontSize:24}})}],h=[{avatar:e.jsx(x,{src:ee}),time:a("2小时前"),content:a("做普通人,干正经事,可以爱小钱,但必有大胸怀。"),user:"anyone"},{avatar:e.jsx(x,{src:X}),time:"27 Dec 2023",content:a("多年后,一个埋我的人被指定,这些年,我偶尔想一想死亡的事情,把活着,当成了一种习惯"),user:a("倾盆大雨")}];return e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:8,children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(d,{children:e.jsxs(n,{align:"middle",justify:"space-evenly",children:[e.jsx(z,{name:"Follower",count:12}),e.jsx(_,{style:{height:"auto"},type:"vertical"}),e.jsx(z,{name:"Following",count:112})]})}),e.jsxs(d,{title:a("关于我"),children:[e.jsx(k,{type:"secondary",children:a("如果给你寄一本书, 我不会寄给你诗歌, 我要给你一本关于植物,关于庄稼的, 告诉你稻子和稗子的区别, 告诉你一棵稗子提心吊胆的春天。")}),e.jsx(o,{itemLayout:"horizontal",dataSource:r,renderItem:(t,i)=>e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:t.icon,description:t.title})},i)})]}),e.jsx(d,{title:a("社交"),children:e.jsx(o,{itemLayout:"horizontal",dataSource:j,renderItem:(t,i)=>e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:t.icon,description:t.title})},i)})})]})}),e.jsx(p,{span:16,children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(d,{children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx($,{rows:4,placeholder:a("分享你想对我说的话"),maxLength:6}),e.jsx(n,{justify:"end",children:e.jsx(c,{type:"primary",children:a("发布")})})]})}),e.jsx(d,{title:e.jsxs(n,{justify:"space-between",align:"center",gap:16,children:[e.jsx(o,{children:e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:e.jsx(x,{src:se,size:48}),title:"Gbeata",description:"25 Dec 2023"})},"1")}),e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(T,{})})]}),children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(k,{children:a("我填平了山海,却发现你在云端。")}),e.jsx(M,{className:s["custom-image"],width:"100%",height:400,src:u}),e.jsxs(n,{justify:"space-between",align:"content-center",children:[e.jsxs(n,{align:"center",children:[e.jsx(c,{id:"like",size:"small",type:"text",icon:e.jsx(l,{name:"love"}),children:"3"}),e.jsxs(x.Group,{maxCount:2,maxStyle:{color:"#f56a00",backgroundColor:"#fde3cf"},children:[e.jsx(x,{src:"https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"}),e.jsx(x,{src:C,style:{backgroundColor:"#f56a00"},children:"K"}),e.jsx(x,{style:{backgroundColor:"#1677ff"},icon:e.jsx(O,{})})]})]}),e.jsxs("div",{children:[e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(A,{})}),e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(P,{})})]})]}),h.map(t=>e.jsx(ne,{avatar:t.avatar,time:t.time,content:t.content,user:t.user})),e.jsx(re,{})]})})]})})]})})},de=y(({token:s})=>({"user-card":{width:"100%",position:"relative",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-segmented-item-label":{lineHeight:"48px !important",minHeight:"48px !important",padding:"0 16px !important"},".profile":{verticalAlign:"-0.35em"},".ant-card-body":{padding:0,textAlign:"right"},".ant-card-cover":{minHeight:"200px",position:"relative",background:`url(${U})`,filter:"blur(0)",backgroundRepeat:"no-repeat",backgroundSize:"cover","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"absolute",display:"flex",flexDirection:"row",zIndex:2,bottom:"-24px",left:"24px",gap:"16px",".info":{display:"flex",flexDirection:"column",justifyContent:"center",color:"white"},".avatar":{width:"128px",height:"128px",borderRadius:"50%",overflow:"hidden"}}},translatex:{margin:`${s.marginSM}px 0`},content:{position:"relative"}})),{Text:oe,Title:xe}=v,je=s=>{const[r,j]=f.useState("Profile"),[h,t]=f.useState(!0),{styles:i}=de();return f.useEffect(()=>{setTimeout(()=>{t(!1)},1500)},[]),e.jsxs("div",{className:i.content,children:[e.jsx(d,{hoverable:!0,className:i["user-card"],cover:e.jsx(e.Fragment,{children:e.jsxs("div",{className:"user_info",children:[e.jsx("div",{className:"avatar",children:e.jsx("img",{src:V})}),e.jsxs("div",{className:"info",children:[e.jsx(xe,{style:{margin:0,color:"inherit"},level:3,children:"Gbeata"}),e.jsx(oe,{style:{color:"inherit",opacity:.7},children:a("来历不明")})]})]})}),children:e.jsx(K,{size:"large",onChange:b=>{j(b)},value:r,options:[{label:"Profile",value:"Profile",icon:e.jsx(l,{className:"profile",name:"profile",size:24})},{label:"Followers",value:"Followers",icon:e.jsx(l,{className:"profile",name:"followers",size:24})},{label:"Friends",value:"Friends",icon:e.jsx(l,{className:"profile",name:"friends",size:24})},{label:"Gallery",value:"Gallery",icon:e.jsx(l,{className:"profile",name:"gallery",size:24})}]})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Profile",delay:100,children:e.jsx(ce,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Gallery",delay:100,children:e.jsx(Q,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Followers",delay:100,children:e.jsx(W,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Friends",delay:100,children:e.jsx(q,{})})]})},ye=()=>e.jsx(je,{});export{ye as default}; +import{j as e,J as g,K as p,n as d,v as S,s as F,u as N,c as y,S as w,D as L,aD as D,ab as I,i as c,aE as T,aF as n,aG as x,L as v,I as R,aw as _,a3 as o,aH as $,V as M,aI as O,aJ as A,aK as P,a1 as E,aL as H,aM as J,aN as B,a4 as K}from"./antd-66264537.js";import{t as a,O as l}from"./entry/index-03014cdd.1715615595704.js";import{a as f}from"./react-f288da4a.js";import{T as m}from"./Translatex-37dc0dc8.js";import{a as z,c as U,b as V}from"./index-d47ae162.js";const W=()=>e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx(F,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(N,{defaultChecked:!0})]})}),e.jsx(p,{span:12})]})}),u="/react-antd-admin-pnpm/assets/travel_3-0a78a2d4.jpg",G=y(({token:s})=>({"custom-image":{borderRadius:s.borderRadiusLG},"card-action":{position:"absolute",right:s.paddingSM,top:s.paddingSM}})),{Title:Y,Text:Z}=v,q=()=>{const{styles:s,cx:r}=G(),j=[{key:"1",label:e.jsxs(w,{size:8,children:[e.jsx(L,{rev:void 0}),e.jsx("span",{children:a("删除")})]})},{key:"2",label:e.jsxs(w,{size:8,children:[e.jsx(D,{rev:void 0}),e.jsx("span",{children:a("修改")})]})}],h=({key:i})=>{},t=[{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")}];return e.jsx(e.Fragment,{children:e.jsx(g,{gutter:[16,16],children:t.map((i,b)=>e.jsx(p,{span:8,children:e.jsxs(d,{children:[e.jsx(I,{menu:{items:j,onClick:h},placement:"bottomRight",arrow:!0,children:e.jsx(c,{className:r(s["card-action"]),shape:"circle",type:"text",icon:e.jsx(T,{})})}),e.jsxs(n,{gap:8,vertical:!0,align:"center",children:[e.jsx(x,{size:64,src:i.avatar}),e.jsx(Y,{style:{margin:0},level:5,children:i.name}),e.jsx(Z,{type:"secondary",children:i.title}),e.jsxs(n,{style:{marginTop:8},gap:8,children:[e.jsx(c,{shape:"circle",icon:e.jsx(l,{style:{color:"#1890ff"},name:"github"})}),e.jsx(c,{shape:"circle",icon:e.jsx(l,{name:"message"})}),e.jsx(c,{shape:"circle",icon:e.jsx(l,{name:"like"})})]})]})]})},b))})})},Q=()=>e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx(F,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(N,{defaultChecked:!0})]})}),e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"})]})})]})}),X="/react-antd-admin-pnpm/assets/avatar_1-329667d0.jpg",ee="/react-antd-admin-pnpm/assets/avatar_4-2497c77c.jpg",C="/react-antd-admin-pnpm/assets/avatar_6-1e41071d.jpg",se="/react-antd-admin-pnpm/assets/avatar_8-1956d908.jpg",ae=y(({token:s})=>({"message-list":{".message_content":{flex:1,padding:s.paddingSM,backgroundColor:s.colorBgLayout,borderRadius:s.borderRadiusLG}}})),{Title:te,Text:ie}=v,ne=({avatar:s,time:r,content:j,user:h})=>{const{styles:t}=ae();return e.jsxs(n,{gap:8,className:t["message-list"],children:[e.jsx("div",{children:s}),e.jsxs("div",{className:"message_content",children:[e.jsxs(n,{justify:"space-between",align:"center",children:[e.jsx(te,{level:5,children:h}),e.jsx("div",{children:r})]}),e.jsx(ie,{type:"secondary",children:j})]})]})},le=y(({token:s})=>({"send-box":{".send-content":{flex:1,borderRadius:s.borderRadiusLG}}})),re=({avatar:s=C,time:r,content:j,user:h})=>{const{styles:t}=le();return e.jsxs(n,{gap:8,align:"center",className:t["send-box"],children:[e.jsx(x,{src:s}),e.jsx("div",{className:"send-content",children:e.jsx(R,{placeholder:a("请在这里输入您的留言"),suffix:e.jsxs(n,{children:[e.jsx(c,{type:"text",shape:"circle",icon:e.jsx(l,{name:"picture"})}),e.jsx(c,{type:"text",shape:"circle",icon:e.jsx(l,{name:"express"})})]})})})]})},{Text:k}=v,ce=()=>{const{styles:s}=G(),r=[{title:a("深圳市"),icon:e.jsx(l,{name:"point",size:24})},{title:"shoplazza.nyg@gmail.com",icon:e.jsx(l,{name:"email",size:24})},{title:a("前端开发"),icon:e.jsx(l,{name:"work",size:24})}],j=[{title:"https://github.com/anyone-yuren",icon:e.jsx(E,{style:{fontSize:24}})},{title:"nhf066901@sina.com",icon:e.jsx(H,{style:{fontSize:24}})},{title:"leio-forver",icon:e.jsx(J,{style:{fontSize:24}})},{title:"https://juejin.cn/user/2682464101469480/posts",icon:e.jsx(B,{style:{fontSize:24}})}],h=[{avatar:e.jsx(x,{src:ee}),time:a("2小时前"),content:a("做普通人,干正经事,可以爱小钱,但必有大胸怀。"),user:"anyone"},{avatar:e.jsx(x,{src:X}),time:"27 Dec 2023",content:a("多年后,一个埋我的人被指定,这些年,我偶尔想一想死亡的事情,把活着,当成了一种习惯"),user:a("倾盆大雨")}];return e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:8,children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(d,{children:e.jsxs(n,{align:"middle",justify:"space-evenly",children:[e.jsx(z,{name:"Follower",count:12}),e.jsx(_,{style:{height:"auto"},type:"vertical"}),e.jsx(z,{name:"Following",count:112})]})}),e.jsxs(d,{title:a("关于我"),children:[e.jsx(k,{type:"secondary",children:a("如果给你寄一本书, 我不会寄给你诗歌, 我要给你一本关于植物,关于庄稼的, 告诉你稻子和稗子的区别, 告诉你一棵稗子提心吊胆的春天。")}),e.jsx(o,{itemLayout:"horizontal",dataSource:r,renderItem:(t,i)=>e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:t.icon,description:t.title})},i)})]}),e.jsx(d,{title:a("社交"),children:e.jsx(o,{itemLayout:"horizontal",dataSource:j,renderItem:(t,i)=>e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:t.icon,description:t.title})},i)})})]})}),e.jsx(p,{span:16,children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(d,{children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx($,{rows:4,placeholder:a("分享你想对我说的话"),maxLength:6}),e.jsx(n,{justify:"end",children:e.jsx(c,{type:"primary",children:a("发布")})})]})}),e.jsx(d,{title:e.jsxs(n,{justify:"space-between",align:"center",gap:16,children:[e.jsx(o,{children:e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:e.jsx(x,{src:se,size:48}),title:"Gbeata",description:"25 Dec 2023"})},"1")}),e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(T,{})})]}),children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(k,{children:a("我填平了山海,却发现你在云端。")}),e.jsx(M,{className:s["custom-image"],width:"100%",height:400,src:u}),e.jsxs(n,{justify:"space-between",align:"content-center",children:[e.jsxs(n,{align:"center",children:[e.jsx(c,{id:"like",size:"small",type:"text",icon:e.jsx(l,{name:"love"}),children:"3"}),e.jsxs(x.Group,{maxCount:2,maxStyle:{color:"#f56a00",backgroundColor:"#fde3cf"},children:[e.jsx(x,{src:"https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"}),e.jsx(x,{src:C,style:{backgroundColor:"#f56a00"},children:"K"}),e.jsx(x,{style:{backgroundColor:"#1677ff"},icon:e.jsx(O,{})})]})]}),e.jsxs("div",{children:[e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(A,{})}),e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(P,{})})]})]}),h.map(t=>e.jsx(ne,{avatar:t.avatar,time:t.time,content:t.content,user:t.user})),e.jsx(re,{})]})})]})})]})})},de=y(({token:s})=>({"user-card":{width:"100%",position:"relative",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-segmented-item-label":{lineHeight:"48px !important",minHeight:"48px !important",padding:"0 16px !important"},".profile":{verticalAlign:"-0.35em"},".ant-card-body":{padding:0,textAlign:"right"},".ant-card-cover":{minHeight:"200px",position:"relative",background:`url(${U})`,filter:"blur(0)",backgroundRepeat:"no-repeat",backgroundSize:"cover","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"absolute",display:"flex",flexDirection:"row",zIndex:2,bottom:"-24px",left:"24px",gap:"16px",".info":{display:"flex",flexDirection:"column",justifyContent:"center",color:"white"},".avatar":{width:"128px",height:"128px",borderRadius:"50%",overflow:"hidden"}}},translatex:{margin:`${s.marginSM}px 0`},content:{position:"relative"}})),{Text:oe,Title:xe}=v,je=s=>{const[r,j]=f.useState("Profile"),[h,t]=f.useState(!0),{styles:i}=de();return f.useEffect(()=>{setTimeout(()=>{t(!1)},1500)},[]),e.jsxs("div",{className:i.content,children:[e.jsx(d,{hoverable:!0,className:i["user-card"],cover:e.jsx(e.Fragment,{children:e.jsxs("div",{className:"user_info",children:[e.jsx("div",{className:"avatar",children:e.jsx("img",{src:V})}),e.jsxs("div",{className:"info",children:[e.jsx(xe,{style:{margin:0,color:"inherit"},level:3,children:"Gbeata"}),e.jsx(oe,{style:{color:"inherit",opacity:.7},children:a("来历不明")})]})]})}),children:e.jsx(K,{size:"large",onChange:b=>{j(b)},value:r,options:[{label:"Profile",value:"Profile",icon:e.jsx(l,{className:"profile",name:"profile",size:24})},{label:"Followers",value:"Followers",icon:e.jsx(l,{className:"profile",name:"followers",size:24})},{label:"Friends",value:"Friends",icon:e.jsx(l,{className:"profile",name:"friends",size:24})},{label:"Gallery",value:"Gallery",icon:e.jsx(l,{className:"profile",name:"gallery",size:24})}]})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Profile",delay:100,children:e.jsx(ce,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Gallery",delay:100,children:e.jsx(Q,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Followers",delay:100,children:e.jsx(W,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Friends",delay:100,children:e.jsx(q,{})})]})},ye=()=>e.jsx(je,{});export{ye as default}; diff --git a/assets/index-a2f2c8dc.js b/assets/index-a67f0ab9.js similarity index 77% rename from assets/index-a2f2c8dc.js rename to assets/index-a67f0ab9.js index 3a8ba31..e543f7d 100644 --- a/assets/index-a2f2c8dc.js +++ b/assets/index-a67f0ab9.js @@ -1 +1 @@ -import{j as e}from"./antd-66264537.js";import{G as r}from"./entry/index-49ff40a5.1715612414483.js";import"./react-f288da4a.js";import{l as o,G as a,A as l}from"./api-3af9db57.js";import{G as s}from"./index-e22d6806.js";import"./index-c5e45b02.js";const i=[{title:"角色名称",key:"cn1",search:!0,dialog:{required:!0}},{title:"状态",key:"index",sort:!0,type:"radio-group",defaultValue:1,options:[{label:"启用",value:1},{label:"禁用",value:2}],dialog:{required:!0}}],d={width:200,render:(n,t)=>e.jsxs(a,{children:[e.jsx(l,{record:t,children:"授权"}),e.jsx(r,{record:t,action:"update",children:"编辑"}),e.jsx(r,{record:t,danger:!0,action:"delete",children:"删除"})]})};function f(){return e.jsx(s,{api:o,ctrl:d,fields:i,rowKey:"sort_id",dialogFormExtend:{fields:i},children:e.jsx(r,{action:"add",children:"新增"})})}export{f as default}; +import{j as e}from"./antd-66264537.js";import{G as r}from"./entry/index-03014cdd.1715615595704.js";import"./react-f288da4a.js";import{l as o,G as a,A as l}from"./api-fb89cc47.js";import{G as s}from"./index-20e61b4c.js";import"./index-6a9c85e1.js";const i=[{title:"角色名称",key:"cn1",search:!0,dialog:{required:!0}},{title:"状态",key:"index",sort:!0,type:"radio-group",defaultValue:1,options:[{label:"启用",value:1},{label:"禁用",value:2}],dialog:{required:!0}}],d={width:200,render:(n,t)=>e.jsxs(a,{children:[e.jsx(l,{record:t,children:"授权"}),e.jsx(r,{record:t,action:"update",children:"编辑"}),e.jsx(r,{record:t,danger:!0,action:"delete",children:"删除"})]})};function f(){return e.jsx(s,{api:o,ctrl:d,fields:i,rowKey:"sort_id",dialogFormExtend:{fields:i},children:e.jsx(r,{action:"add",children:"新增"})})}export{f as default}; diff --git a/assets/index-6d20d62b.js b/assets/index-d47ae162.js similarity index 95% rename from assets/index-6d20d62b.js rename to assets/index-d47ae162.js index 2baa6af..6103eb0 100644 --- a/assets/index-6d20d62b.js +++ b/assets/index-d47ae162.js @@ -1 +1 @@ -var p=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var x=(s,t)=>{var o={};for(var a in s)g.call(s,a)&&t.indexOf(a)<0&&(o[a]=s[a]);if(s!=null&&p)for(var a of p(s))t.indexOf(a)<0&&b.call(s,a)&&(o[a]=s[a]);return o};import{c as y,j as e,n as u,aO as r,aF as w,i,L as T}from"./antd-66264537.js";import{a as h}from"./react-f288da4a.js";import{S as n}from"./entry/index-49ff40a5.1715612414483.js";import{T as N}from"./Translatex-83019934.js";const F="/react-antd-admin-pnpm/assets/avatar_2-ce7fcb30.jpg",R="/react-antd-admin-pnpm/assets/cover_5-5698cb6c.jpg",S=y(({token:s})=>({"user-card":{width:"100%",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-card-cover":{maxHeight:"200px",overflow:"hidden"},".cover":{position:"relative",filter:"blur(0)","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"relative",".info":{paddingTop:s.margin*2,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},".avatar-svg":{color:s.colorBgContainer,width:"144px !important",height:"62px !important",top:"-56px",position:"absolute",transform:"translateX(-50%)",left:"50%"},".avatar":{width:"64px",height:"64px",borderRadius:"50%",overflow:"hidden",position:"absolute",top:"-50px",transform:"translateX(-50%)",left:"50%"}}}})),{Text:j,Title:v}=T,c=({name:s,count:t})=>e.jsxs("div",{className:"footer",children:[e.jsx(j,{type:"secondary",children:s}),e.jsxs(v,{style:{margin:0},level:5,children:[t,"K"]})]}),G=a=>{var l=a,{data:s={id:1,name:"Gbeata",position:"Front-end",sex:"male",follwer:1341,mits:231,forbid:!1},index:t=1}=l,o=x(l,["data","index"]);const[d,f]=h.useState(!0),{styles:m}=S();return h.useEffect(()=>{setTimeout(()=>{f(!1)},500)},[]),e.jsxs(e.Fragment,{children:[d&&e.jsx(u,{className:m["user-card"],actions:[e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"})],cover:e.jsx(r.Image,{active:!0}),children:e.jsx(r,{loading:!0,avatar:!0,active:!0})}),e.jsx(N,{direction:"up",run:!d,delay:t*100,children:e.jsx(u,{className:m["user-card"],cover:e.jsx("span",{className:"cover",children:e.jsx("img",{alt:"example",src:R})}),actions:[e.jsx(c,{name:"Foloower",count:s.follwer}),e.jsx(c,{name:"Folowing",count:s.mits}),e.jsx(c,{name:"Total Post",count:s.total})],children:e.jsxs("div",{className:"user_info",children:[e.jsx(n,{className:"avatar-svg",name:"wave"}),e.jsx("div",{className:"avatar",children:e.jsx("img",{src:F})}),e.jsxs("div",{className:"info",children:[e.jsx(v,{style:{margin:0},level:5,children:s.name}),e.jsx(j,{type:"secondary",children:s.position}),e.jsxs(w,{style:{marginTop:8},gap:8,children:[e.jsx(i,{shape:"circle",icon:e.jsx(n,{style:{color:"#1890ff"},name:"github"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"message"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"like"})})]})]})]})})})]})};export{G as U,c as a,F as b,R as c}; +var p=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var x=(s,t)=>{var o={};for(var a in s)g.call(s,a)&&t.indexOf(a)<0&&(o[a]=s[a]);if(s!=null&&p)for(var a of p(s))t.indexOf(a)<0&&b.call(s,a)&&(o[a]=s[a]);return o};import{c as y,j as e,n as u,aO as r,aF as w,i,L as T}from"./antd-66264537.js";import{a as h}from"./react-f288da4a.js";import{S as n}from"./entry/index-03014cdd.1715615595704.js";import{T as N}from"./Translatex-37dc0dc8.js";const F="/react-antd-admin-pnpm/assets/avatar_2-ce7fcb30.jpg",R="/react-antd-admin-pnpm/assets/cover_5-5698cb6c.jpg",S=y(({token:s})=>({"user-card":{width:"100%",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-card-cover":{maxHeight:"200px",overflow:"hidden"},".cover":{position:"relative",filter:"blur(0)","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"relative",".info":{paddingTop:s.margin*2,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},".avatar-svg":{color:s.colorBgContainer,width:"144px !important",height:"62px !important",top:"-56px",position:"absolute",transform:"translateX(-50%)",left:"50%"},".avatar":{width:"64px",height:"64px",borderRadius:"50%",overflow:"hidden",position:"absolute",top:"-50px",transform:"translateX(-50%)",left:"50%"}}}})),{Text:j,Title:v}=T,c=({name:s,count:t})=>e.jsxs("div",{className:"footer",children:[e.jsx(j,{type:"secondary",children:s}),e.jsxs(v,{style:{margin:0},level:5,children:[t,"K"]})]}),G=a=>{var l=a,{data:s={id:1,name:"Gbeata",position:"Front-end",sex:"male",follwer:1341,mits:231,forbid:!1},index:t=1}=l,o=x(l,["data","index"]);const[d,f]=h.useState(!0),{styles:m}=S();return h.useEffect(()=>{setTimeout(()=>{f(!1)},500)},[]),e.jsxs(e.Fragment,{children:[d&&e.jsx(u,{className:m["user-card"],actions:[e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"})],cover:e.jsx(r.Image,{active:!0}),children:e.jsx(r,{loading:!0,avatar:!0,active:!0})}),e.jsx(N,{direction:"up",run:!d,delay:t*100,children:e.jsx(u,{className:m["user-card"],cover:e.jsx("span",{className:"cover",children:e.jsx("img",{alt:"example",src:R})}),actions:[e.jsx(c,{name:"Foloower",count:s.follwer}),e.jsx(c,{name:"Folowing",count:s.mits}),e.jsx(c,{name:"Total Post",count:s.total})],children:e.jsxs("div",{className:"user_info",children:[e.jsx(n,{className:"avatar-svg",name:"wave"}),e.jsx("div",{className:"avatar",children:e.jsx("img",{src:F})}),e.jsxs("div",{className:"info",children:[e.jsx(v,{style:{margin:0},level:5,children:s.name}),e.jsx(j,{type:"secondary",children:s.position}),e.jsxs(w,{style:{marginTop:8},gap:8,children:[e.jsx(i,{shape:"circle",icon:e.jsx(n,{style:{color:"#1890ff"},name:"github"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"message"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"like"})})]})]})]})})})]})};export{G as U,c as a,F as b,R as c}; diff --git a/assets/websiteSetting-168278cd.js b/assets/websiteSetting-6d372edc.js similarity index 98% rename from assets/websiteSetting-168278cd.js rename to assets/websiteSetting-6d372edc.js index 2c12268..c634a91 100644 --- a/assets/websiteSetting-168278cd.js +++ b/assets/websiteSetting-6d372edc.js @@ -1 +1 @@ -import{j as t,i}from"./antd-66264537.js";import{S as m,t as e,o as p}from"./entry/index-49ff40a5.1715612414483.js";const n={"compo_page-wrapper":"_compo_page-wrapper_s53in_1","page-header":"_page-header_s53in_1","page-header-name":"_page-header-name_s53in_9","page-content":"_page-content_s53in_17"},l=a=>{var s,r;function o(){var c;p((c=a.plugin)==null?void 0:c.url)}return t.jsxs("div",{className:n["compo_page-wrapper"],children:[t.jsxs("div",{className:n["page-header"],children:[t.jsxs("div",{className:n["page-header-name"],children:[t.jsx(m,{name:"hints",size:18}),t.jsx("span",{children:(s=a.plugin)==null?void 0:s.name})]}),t.jsx("p",{children:(r=a.plugin)==null?void 0:r.desc}),t.jsxs("p",{children:[t.jsx("span",{children:e("github源码:")}),t.jsx(i,{type:"link",size:"small",onClick:o,children:e("立即访问")})]})]}),t.jsx("div",{className:n["page-content"],children:a.children})]})},u={name:e("Form表单"),url:"https://www.antdv.com/components/form",desc:e("ant-design-form: 使用 ant-design 的 form 组件, 可用以收集、校验和提交数据等操作。")},h={name:e("Form查询表单"),url:e("暂未发布,可直接查看 /packages/gbeata 组件库"),desc:e("GSearchForm: 使用 ant-design 的 form 组件, 进行二次封装的组件,具体实现可查看 /packages/gbeata/src/GSearchForm 组件库")};e("Form表单设计器"),e("form-create-designer: 一个通过拖拽的方式快速创建表单的设计器组件, 能提高开发者对表单的开发效率, 节省开发者的时间。");e("Table表格"),e("ant-design-table: 使用 ant-design 的 table 组件, 可用于展示多条结构类似的数据, 并对其进行相关操作。");e("Table表格(可编辑行)"),e("ant-design-table: 使用 ant-design 的 table 组件, 可用于展示多条结构类似的数据, 并对其进行行数据编辑操作。");e("Tree树形控件"),e("ant-design-tree: 基于Ant-Design的Tree组件, 可以完整展现其中的层级关系, 并具有展开收起选择等交互功能。");const b={name:e("Transfer穿梭框"),url:"https://ant-design.antgroup.com/components/transfer",desc:e("ant-design-transfer: 使用 ant-design 的 transfer 组件, 可用于对列表数据进行选中、取消等操作。")},x={name:e("Upload图片上传组件"),url:"https://antdv.com/components/upload",desc:e("ant-design-upload: 使用 ant-design 的 upload 组件, 并具有多种列表展示方式。")};e("Video视频播放器"),e("Video-React: 一个使用 React 为 HTML5 构建的web视频播放器, 适用于目前主流网络视频的播放。");e("JS-xlsx插件"),e("JS-xlsx: 由SheetJS出品的一款非常方便的只需要纯JS即可读取和导出excel的工具库, 功能强大, 支持xlsx、csv、txt等格式。");const R={name:e("Sortable拖拽列表"),url:"https://github.com/SortableJS/react-sortablejs",desc:e("ReactSortable: 基于Sortable.js的react组件, 用以实现拖拽功能。")},_={name:e("React-Rnd拖拽组件"),url:"https://github.com/bokuweb/react-rnd",desc:e("React-Rnd: 一款可调整大小和可拖拽的React组件。")};e("React-Cropper图片裁剪"),e("react-cropper: 一个优雅的图片裁剪插件, 可实现图片裁剪、图片生成等功能, 并支持生成png、jpeg、webp等图片格式。");e("Image图片合成"),e("图片合成: 基于VueDRR拖拽功能, 在其上通过叠加图片、文字等, 实现图片的叠加伪合成功能。");e("Image图片压缩"),e("ImageCompress: 纯JS实现对图片的等比压缩和放大的功能, 并能对图片进行下载。");const S={name:e("CountUp数字滚动"),url:"https://github.com/glennreyes/react-countup",desc:e("React-CountUp: 一个无依赖、轻量级的react数字滚动插件, 以更有趣的方式显示数字数据。")};e("CodeMirror代码编辑器"),e("React-CodeMirror: 是一款基于 react 的代码编辑器, 可支持html、javascript、typescript等。");e("AntV-G6流程图"),e("antv-g6: 一个图可视化引擎。它提供了图的绘制、布局、分析、交互、动画等图可视化的基础能力。");e("Tree-Org树状组织图"),e("react-tree-org: 基于 react 的树结构组织图, 可用于公司组织架构展示。");e("富文本编辑器"),e("wangEditor: 基于javascript和css开发的 Web富文本编辑器, 轻量、简洁、易用、开源免费。");e("Markdown编辑器"),e("React-Md-Editor: 是一款基于 react 的 Markdown 编辑器,比较适合博客系统。");export{S as C,u as F,l as P,_ as R,R as S,b as T,x as U,h as a}; +import{j as t,i}from"./antd-66264537.js";import{S as m,t as e,o as p}from"./entry/index-03014cdd.1715615595704.js";const n={"compo_page-wrapper":"_compo_page-wrapper_s53in_1","page-header":"_page-header_s53in_1","page-header-name":"_page-header-name_s53in_9","page-content":"_page-content_s53in_17"},l=a=>{var s,r;function o(){var c;p((c=a.plugin)==null?void 0:c.url)}return t.jsxs("div",{className:n["compo_page-wrapper"],children:[t.jsxs("div",{className:n["page-header"],children:[t.jsxs("div",{className:n["page-header-name"],children:[t.jsx(m,{name:"hints",size:18}),t.jsx("span",{children:(s=a.plugin)==null?void 0:s.name})]}),t.jsx("p",{children:(r=a.plugin)==null?void 0:r.desc}),t.jsxs("p",{children:[t.jsx("span",{children:e("github源码:")}),t.jsx(i,{type:"link",size:"small",onClick:o,children:e("立即访问")})]})]}),t.jsx("div",{className:n["page-content"],children:a.children})]})},u={name:e("Form表单"),url:"https://www.antdv.com/components/form",desc:e("ant-design-form: 使用 ant-design 的 form 组件, 可用以收集、校验和提交数据等操作。")},h={name:e("Form查询表单"),url:e("暂未发布,可直接查看 /packages/gbeata 组件库"),desc:e("GSearchForm: 使用 ant-design 的 form 组件, 进行二次封装的组件,具体实现可查看 /packages/gbeata/src/GSearchForm 组件库")};e("Form表单设计器"),e("form-create-designer: 一个通过拖拽的方式快速创建表单的设计器组件, 能提高开发者对表单的开发效率, 节省开发者的时间。");e("Table表格"),e("ant-design-table: 使用 ant-design 的 table 组件, 可用于展示多条结构类似的数据, 并对其进行相关操作。");e("Table表格(可编辑行)"),e("ant-design-table: 使用 ant-design 的 table 组件, 可用于展示多条结构类似的数据, 并对其进行行数据编辑操作。");e("Tree树形控件"),e("ant-design-tree: 基于Ant-Design的Tree组件, 可以完整展现其中的层级关系, 并具有展开收起选择等交互功能。");const b={name:e("Transfer穿梭框"),url:"https://ant-design.antgroup.com/components/transfer",desc:e("ant-design-transfer: 使用 ant-design 的 transfer 组件, 可用于对列表数据进行选中、取消等操作。")},x={name:e("Upload图片上传组件"),url:"https://antdv.com/components/upload",desc:e("ant-design-upload: 使用 ant-design 的 upload 组件, 并具有多种列表展示方式。")};e("Video视频播放器"),e("Video-React: 一个使用 React 为 HTML5 构建的web视频播放器, 适用于目前主流网络视频的播放。");e("JS-xlsx插件"),e("JS-xlsx: 由SheetJS出品的一款非常方便的只需要纯JS即可读取和导出excel的工具库, 功能强大, 支持xlsx、csv、txt等格式。");const R={name:e("Sortable拖拽列表"),url:"https://github.com/SortableJS/react-sortablejs",desc:e("ReactSortable: 基于Sortable.js的react组件, 用以实现拖拽功能。")},_={name:e("React-Rnd拖拽组件"),url:"https://github.com/bokuweb/react-rnd",desc:e("React-Rnd: 一款可调整大小和可拖拽的React组件。")};e("React-Cropper图片裁剪"),e("react-cropper: 一个优雅的图片裁剪插件, 可实现图片裁剪、图片生成等功能, 并支持生成png、jpeg、webp等图片格式。");e("Image图片合成"),e("图片合成: 基于VueDRR拖拽功能, 在其上通过叠加图片、文字等, 实现图片的叠加伪合成功能。");e("Image图片压缩"),e("ImageCompress: 纯JS实现对图片的等比压缩和放大的功能, 并能对图片进行下载。");const S={name:e("CountUp数字滚动"),url:"https://github.com/glennreyes/react-countup",desc:e("React-CountUp: 一个无依赖、轻量级的react数字滚动插件, 以更有趣的方式显示数字数据。")};e("CodeMirror代码编辑器"),e("React-CodeMirror: 是一款基于 react 的代码编辑器, 可支持html、javascript、typescript等。");e("AntV-G6流程图"),e("antv-g6: 一个图可视化引擎。它提供了图的绘制、布局、分析、交互、动画等图可视化的基础能力。");e("Tree-Org树状组织图"),e("react-tree-org: 基于 react 的树结构组织图, 可用于公司组织架构展示。");e("富文本编辑器"),e("wangEditor: 基于javascript和css开发的 Web富文本编辑器, 轻量、简洁、易用、开源免费。");e("Markdown编辑器"),e("React-Md-Editor: 是一款基于 react 的 Markdown 编辑器,比较适合博客系统。");export{S as C,u as F,l as P,_ as R,R as S,b as T,x as U,h as a}; diff --git a/index.html b/index.html index d1a2bf1..87f7482 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@ href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css" /> - +