From acd92d886c953f7e26fdafc86fa8171326aeeed0 Mon Sep 17 00:00:00 2001 From: anyone-yuren <1003473088@qq.com> Date: Wed, 27 Mar 2024 10:06:56 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20anyone-y?= =?UTF-8?q?uren/react-antd-admin-pnpm@e695a8798d014482c47e9f6dc5b1cd63fe75?= =?UTF-8?q?50db=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{Translatex-9e5f69d4.js => Translatex-5b65ca3f.js} | 2 +- assets/{count-up-3c53269c.js => count-up-f9000940.js} | 2 +- assets/{drag-list-8740ceac.js => drag-list-931bc581.js} | 2 +- assets/{drag-resize-3459b43a.js => drag-resize-2b61954c.js} | 2 +- ...7829e84.1711532997514.js => index-78e5b5fb.1711533981578.js} | 2 +- assets/{image-upload-9fc51b2c.js => image-upload-bab6cb76.js} | 2 +- assets/{index-01e14877.js => index-00d803ca.js} | 2 +- assets/{index-bc212276.js => index-2a2e3fc1.js} | 2 +- assets/{index-2cd7f3f1.js => index-54effc8f.js} | 2 +- assets/{index-e7f5b9e4.js => index-6e5fc946.js} | 2 +- assets/{index-53feb174.js => index-be9b60c3.js} | 2 +- assets/{index-d42bac6c.js => index-d66d88ec.js} | 2 +- assets/{index-3063cbff.js => index-db407aab.js} | 2 +- assets/{index-f9522b80.js => index-ddc85ec7.js} | 2 +- assets/{index-c07fa9a2.js => index-ea5d9640.js} | 2 +- .../{websiteSetting-b4442365.js => websiteSetting-43ab3ecc.js} | 2 +- index.html | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) rename assets/{Translatex-9e5f69d4.js => Translatex-5b65ca3f.js} (93%) rename assets/{count-up-3c53269c.js => count-up-f9000940.js} (95%) rename assets/{drag-list-8740ceac.js => drag-list-931bc581.js} (99%) rename assets/{drag-resize-3459b43a.js => drag-resize-2b61954c.js} (99%) rename assets/entry/{index-17829e84.1711532997514.js => index-78e5b5fb.1711533981578.js} (99%) rename assets/{image-upload-9fc51b2c.js => image-upload-bab6cb76.js} (93%) rename assets/{index-01e14877.js => index-00d803ca.js} (98%) rename assets/{index-bc212276.js => index-2a2e3fc1.js} (91%) rename assets/{index-2cd7f3f1.js => index-54effc8f.js} (95%) rename assets/{index-e7f5b9e4.js => index-6e5fc946.js} (99%) rename assets/{index-53feb174.js => index-be9b60c3.js} (98%) rename assets/{index-d42bac6c.js => index-d66d88ec.js} (95%) rename assets/{index-3063cbff.js => index-db407aab.js} (96%) rename assets/{index-f9522b80.js => index-ddc85ec7.js} (98%) rename assets/{index-c07fa9a2.js => index-ea5d9640.js} (98%) rename assets/{websiteSetting-b4442365.js => websiteSetting-43ab3ecc.js} (98%) diff --git a/assets/Translatex-9e5f69d4.js b/assets/Translatex-5b65ca3f.js similarity index 93% rename from assets/Translatex-9e5f69d4.js rename to assets/Translatex-5b65ca3f.js index 26bba23..381ec43 100644 --- a/assets/Translatex-9e5f69d4.js +++ b/assets/Translatex-5b65ca3f.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-412663d3.js";import{u as Y,a as y}from"./entry/index-17829e84.1711532997514.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-412663d3.js";import{u as Y,a as y}from"./entry/index-78e5b5fb.1711533981578.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/count-up-3c53269c.js b/assets/count-up-f9000940.js similarity index 95% rename from assets/count-up-3c53269c.js rename to assets/count-up-f9000940.js index 29fe82e..9139b9d 100644 --- a/assets/count-up-3c53269c.js +++ b/assets/count-up-f9000940.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-412663d3.js";import{t as n}from"./entry/index-17829e84.1711532997514.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-b4442365.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-412663d3.js";import{t as n}from"./entry/index-78e5b5fb.1711533981578.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-43ab3ecc.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-8740ceac.js b/assets/drag-list-931bc581.js similarity index 99% rename from assets/drag-list-8740ceac.js rename to assets/drag-list-931bc581.js index 5c33d21..565fb5c 100644 --- a/assets/drag-list-8740ceac.js +++ b/assets/drag-list-931bc581.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-412663d3.js";import{t as fe,c as yn}from"./entry/index-17829e84.1711532997514.js";import{f as Qt,r as ot}from"./react-f288da4a.js";import{P as En,S as Sn}from"./websiteSetting-b4442365.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-412663d3.js";import{t as fe,c as yn}from"./entry/index-78e5b5fb.1711533981578.js";import{f as Qt,r as ot}from"./react-f288da4a.js";import{P as En,S as Sn}from"./websiteSetting-43ab3ecc.js";var en={exports:{}};/**! * Sortable 1.15.2 * @author RubaXa * @author owenm diff --git a/assets/drag-resize-3459b43a.js b/assets/drag-resize-2b61954c.js similarity index 99% rename from assets/drag-resize-3459b43a.js rename to assets/drag-resize-2b61954c.js index 01f5b7d..bdb2247 100644 --- a/assets/drag-resize-3459b43a.js +++ b/assets/drag-resize-2b61954c.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-412663d3.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-17829e84.1711532997514.js";import{P as Te,R as We}from"./websiteSetting-b4442365.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-412663d3.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-78e5b5fb.1711533981578.js";import{P as Te,R as We}from"./websiteSetting-43ab3ecc.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,d){if(utils$1.isFunction(c))return c.call(this,a,s);if(d&&(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(d,f,g){return this[c].call(this,a,d,f,g)},configurable:!0})})}class AxiosHeaders{constructor(a){a&&this.set(a)}set(a,s,c){const d=this;function f(y,S,b){const E=normalizeHeader(S);if(!E)throw new Error("header name must be a non-empty string");const $=utils$1.findKey(d,E);(!$||d[$]===void 0||b===!0||b===void 0&&d[$]!==!1)&&(d[$||S]=normalizeValue(y))}const g=(y,S)=>utils$1.forEach(y,(b,E)=>f(b,E,S));return utils$1.isPlainObject(a)||a instanceof this.constructor?g(a,s):utils$1.isString(a)&&(a=a.trim())&&!isValidHeaderName(a)?g(parseHeaders(a),s):a!=null&&f(s,a,c),this}get(a,s){if(a=normalizeHeader(a),a){const c=utils$1.findKey(this,a);if(c){const d=this[c];if(!s)return d;if(s===!0)return parseTokens(d);if(utils$1.isFunction(s))return s.call(this,d,c);if(utils$1.isRegExp(s))return s.exec(d);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 d=!1;function f(g){if(g=normalizeHeader(g),g){const y=utils$1.findKey(c,g);y&&(!s||matchHeaderValue(c,c[y],y,s))&&(delete c[y],d=!0)}}return utils$1.isArray(a)?a.forEach(f):f(a),d}clear(a){const s=Object.keys(this);let c=s.length,d=!1;for(;c--;){const f=s[c];(!a||matchHeaderValue(this,this[f],f,a,!0))&&(delete this[f],d=!0)}return d}normalize(a){const s=this,c={};return utils$1.forEach(this,(d,f)=>{const g=utils$1.findKey(c,f);if(g){s[g]=normalizeValue(d),delete s[f];return}const y=a?formatHeader(f):String(f).trim();y!==f&&delete s[f],s[y]=normalizeValue(d),c[y]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const s=Object.create(null);return utils$1.forEach(this,(c,d)=>{c!=null&&c!==!1&&(s[d]=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(d=>c.set(d)),c}static accessor(a){const c=(this[$internals]=this[$internals]={accessors:{}}).accessors,d=this.prototype;function f(g){const y=normalizeHeader(g);c[y]||(buildAccessors(d,g),c[y]=!0)}return utils$1.isArray(a)?a.forEach(f):f(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,d=AxiosHeaders$1.from(c.headers);let f=c.data;return utils$1.forEach(o,function(y){f=y.call(s,f,d.normalize(),a?a.status:void 0)}),d.normalize(),f}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,d,f){const g=[o+"="+encodeURIComponent(a)];utils$1.isNumber(s)&&g.push("expires="+new Date(s).toGMTString()),utils$1.isString(c)&&g.push("path="+c),utils$1.isString(d)&&g.push("domain="+d),f===!0&&g.push("secure"),document.cookie=g.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 d(f){let g=f;return a&&(s.setAttribute("href",g),g=s.href),s.setAttribute("href",g),{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=d(window.location.href),function(g){const y=utils$1.isString(g)?d(g):g;return y.protocol===c.protocol&&y.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 d=0,f=0,g;return a=a!==void 0?a:1e3,function(S){const b=Date.now(),E=c[f];g||(g=b),s[d]=S,c[d]=b;let $=f,P=0;for(;$!==d;)P+=s[$++],$=$%o;if(d=(d+1)%o,d===f&&(f=(f+1)%o),b-g{const f=d.loaded,g=d.lengthComputable?d.total:void 0,y=f-s,S=c(y),b=f<=g;s=f;const E={loaded:f,total:g,progress:g?f/g:void 0,bytes:y,rate:S||void 0,estimated:S&&g&&b?(g-f)/S:void 0,event:d};E[a?"download":"upload"]=!0,o(E)}}const isXHRAdapterSupported=typeof XMLHttpRequest!="undefined",xhrAdapter=isXHRAdapterSupported&&function(o){return new Promise(function(s,c){let d=o.data;const f=AxiosHeaders$1.from(o.headers).normalize();let{responseType:g,withXSRFToken:y}=o,S;function b(){o.cancelToken&&o.cancelToken.unsubscribe(S),o.signal&&o.signal.removeEventListener("abort",S)}let E;if(utils$1.isFormData(d)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)f.setContentType(!1);else if((E=f.getContentType())!==!1){const[R,...M]=E?E.split(";").map(N=>N.trim()).filter(Boolean):[];f.setContentType([R||"multipart/form-data",...M].join("; "))}}let $=new XMLHttpRequest;if(o.auth){const R=o.auth.username||"",M=o.auth.password?unescape(encodeURIComponent(o.auth.password)):"";f.set("Authorization","Basic "+btoa(R+":"+M))}const P=buildFullPath(o.baseURL,o.url);$.open(o.method.toUpperCase(),buildURL(P,o.params,o.paramsSerializer),!0),$.timeout=o.timeout;function O(){if(!$)return;const R=AxiosHeaders$1.from("getAllResponseHeaders"in $&&$.getAllResponseHeaders()),N={data:!g||g==="text"||g==="json"?$.responseText:$.response,status:$.status,statusText:$.statusText,headers:R,config:o,request:$};settle(function(A){s(A),b()},function(A){c(A),b()},N),$=null}if("onloadend"in $?$.onloadend=O:$.onreadystatechange=function(){!$||$.readyState!==4||$.status===0&&!($.responseURL&&$.responseURL.indexOf("file:")===0)||setTimeout(O)},$.onabort=function(){$&&(c(new AxiosError("Request aborted",AxiosError.ECONNABORTED,o,$)),$=null)},$.onerror=function(){c(new AxiosError("Network Error",AxiosError.ERR_NETWORK,o,$)),$=null},$.ontimeout=function(){let M=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const N=o.transitional||transitionalDefaults;o.timeoutErrorMessage&&(M=o.timeoutErrorMessage),c(new AxiosError(M,N.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,o,$)),$=null},platform.hasStandardBrowserEnv&&(y&&utils$1.isFunction(y)&&(y=y(o)),y||y!==!1&&isURLSameOrigin(P))){const R=o.xsrfHeaderName&&o.xsrfCookieName&&cookies.read(o.xsrfCookieName);R&&f.set(o.xsrfHeaderName,R)}d===void 0&&f.setContentType(null),"setRequestHeader"in $&&utils$1.forEach(f.toJSON(),function(M,N){$.setRequestHeader(N,M)}),utils$1.isUndefined(o.withCredentials)||($.withCredentials=!!o.withCredentials),g&&g!=="json"&&($.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&$.addEventListener("progress",progressEventReducer(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&$.upload&&$.upload.addEventListener("progress",progressEventReducer(o.onUploadProgress)),(o.cancelToken||o.signal)&&(S=R=>{$&&(c(!R||R.type?new CanceledError(null,o,$):R),$.abort(),$=null)},o.cancelToken&&o.cancelToken.subscribe(S),o.signal&&(o.signal.aborted?S():o.signal.addEventListener("abort",S)));const C=parseProtocol(P);if(C&&platform.protocols.indexOf(C)===-1){c(new AxiosError("Unsupported protocol "+C+":",AxiosError.ERR_BAD_REQUEST,o));return}$.send(d||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 d={};for(let f=0;f`adapter ${y} `+(S===!1?"is not supported by the environment":"is not available in the build"));let g=a?f.length>1?`since : `+f.map(renderReason).join(` -`):" "+renderReason(f[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+g,"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,E,$){return utils$1.isPlainObject(b)&&utils$1.isPlainObject(E)?utils$1.merge.call({caseless:$},b,E):utils$1.isPlainObject(E)?utils$1.merge({},E):utils$1.isArray(E)?E.slice():E}function d(b,E,$){if(utils$1.isUndefined(E)){if(!utils$1.isUndefined(b))return c(void 0,b,$)}else return c(b,E,$)}function f(b,E){if(!utils$1.isUndefined(E))return c(void 0,E)}function g(b,E){if(utils$1.isUndefined(E)){if(!utils$1.isUndefined(b))return c(void 0,b)}else return c(void 0,E)}function y(b,E,$){if($ in a)return c(b,E);if($ in o)return c(void 0,b)}const S={url:f,method:f,data:f,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:y,headers:(b,E)=>d(headersToObject(b),headersToObject(E),!0)};return utils$1.forEach(Object.keys(Object.assign({},o,a)),function(E){const $=S[E]||d,P=$(o[E],a[E],E);utils$1.isUndefined(P)&&$!==y||(s[E]=P)}),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 d(f,g){return"[Axios v"+VERSION+"] Transitional option '"+f+"'"+g+(c?". "+c:"")}return(f,g,y)=>{if(a===!1)throw new AxiosError(d(g," has been removed"+(s?" in "+s:"")),AxiosError.ERR_DEPRECATED);return s&&!deprecatedWarnings[g]&&(deprecatedWarnings[g]=!0),a?a(f,g,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 d=c.length;for(;d-- >0;){const f=c[d],g=a[f];if(g){const y=o[f],S=y===void 0||g(y,f,o);if(S!==!0)throw new AxiosError("option "+f+" must be "+S,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new AxiosError("Unknown option "+f,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:d,headers:f}=s;c!==void 0&&validator.assertOptions(c,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),d!=null&&(utils$1.isFunction(d)?s.paramsSerializer={serialize:d}:validator.assertOptions(d,{encode:validators.function,serialize:validators.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let g=f&&utils$1.merge(f.common,f[s.method]);f&&utils$1.forEach(["delete","get","head","post","put","patch","common"],C=>{delete f[C]}),s.headers=AxiosHeaders$1.concat(g,f);const y=[];let S=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(s)===!1||(S=S&&R.synchronous,y.unshift(R.fulfilled,R.rejected))});const b=[];this.interceptors.response.forEach(function(R){b.push(R.fulfilled,R.rejected)});let E,$=0,P;if(!S){const C=[dispatchRequest.bind(this),void 0];for(C.unshift.apply(C,y),C.push.apply(C,b),P=C.length,E=Promise.resolve(s);${if(!c._listeners)return;let f=c._listeners.length;for(;f-- >0;)c._listeners[f](d);c._listeners=null}),this.promise.then=d=>{let f;const g=new Promise(y=>{c.subscribe(y),f=y}).then(d);return g.cancel=function(){c.unsubscribe(f)},g},a(function(f,g,y){c.reason||(c.reason=new CanceledError(f,g,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(d){a=d}),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(d){return createInstance(mergeConfig(o,d))},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,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:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(o,a){(function(s,c){o.exports=c()})(commonjsGlobal,function(){var s=s||function(c,d){var f;if(typeof window!="undefined"&&window.crypto&&(f=window.crypto),typeof self!="undefined"&&self.crypto&&(f=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(f=globalThis.crypto),!f&&typeof window!="undefined"&&window.msCrypto&&(f=window.msCrypto),!f&&typeof commonjsGlobal!="undefined"&&commonjsGlobal.crypto&&(f=commonjsGlobal.crypto),!f&&typeof commonjsRequire=="function")try{f=require$$0}catch(L){}var g=function(){if(f){if(typeof f.getRandomValues=="function")try{return f.getRandomValues(new Uint32Array(1))[0]}catch(L){}if(typeof f.randomBytes=="function")try{return f.randomBytes(4).readInt32LE()}catch(L){}}throw new Error("Native crypto module could not be used to get secure random number.")},y=Object.create||function(){function L(){}return function(A){var I;return L.prototype=A,I=new L,L.prototype=null,I}}(),S={},b=S.lib={},E=b.Base=function(){return{extend:function(L){var A=y(this);return L&&A.mixIn(L),(!A.hasOwnProperty("init")||this.init===A.init)&&(A.init=function(){A.$super.init.apply(this,arguments)}),A.init.prototype=A,A.$super=this,A},create:function(){var L=this.extend();return L.init.apply(L,arguments),L},init:function(){},mixIn:function(L){for(var A in L)L.hasOwnProperty(A)&&(this[A]=L[A]);L.hasOwnProperty("toString")&&(this.toString=L.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),$=b.WordArray=E.extend({init:function(L,A){L=this.words=L||[],A!=d?this.sigBytes=A:this.sigBytes=L.length*4},toString:function(L){return(L||O).stringify(this)},concat:function(L){var A=this.words,I=L.words,D=this.sigBytes,U=L.sigBytes;if(this.clamp(),D%4)for(var B=0;B>>2]>>>24-B%4*8&255;A[D+B>>>2]|=H<<24-(D+B)%4*8}else for(var X=0;X>>2]=I[X>>>2];return this.sigBytes+=U,this},clamp:function(){var L=this.words,A=this.sigBytes;L[A>>>2]&=4294967295<<32-A%4*8,L.length=c.ceil(A/4)},clone:function(){var L=E.clone.call(this);return L.words=this.words.slice(0),L},random:function(L){for(var A=[],I=0;I>>2]>>>24-U%4*8&255;D.push((B>>>4).toString(16)),D.push((B&15).toString(16))}return D.join("")},parse:function(L){for(var A=L.length,I=[],D=0;D>>3]|=parseInt(L.substr(D,2),16)<<24-D%8*4;return new $.init(I,A/2)}},C=P.Latin1={stringify:function(L){for(var A=L.words,I=L.sigBytes,D=[],U=0;U>>2]>>>24-U%4*8&255;D.push(String.fromCharCode(B))}return D.join("")},parse:function(L){for(var A=L.length,I=[],D=0;D>>2]|=(L.charCodeAt(D)&255)<<24-D%4*8;return new $.init(I,A)}},R=P.Utf8={stringify:function(L){try{return decodeURIComponent(escape(C.stringify(L)))}catch(A){throw new Error("Malformed UTF-8 data")}},parse:function(L){return C.parse(unescape(encodeURIComponent(L)))}},M=b.BufferedBlockAlgorithm=E.extend({reset:function(){this._data=new $.init,this._nDataBytes=0},_append:function(L){typeof L=="string"&&(L=R.parse(L)),this._data.concat(L),this._nDataBytes+=L.sigBytes},_process:function(L){var A,I=this._data,D=I.words,U=I.sigBytes,B=this.blockSize,H=B*4,X=U/H;L?X=c.ceil(X):X=c.max((X|0)-this._minBufferSize,0);var V=X*B,W=c.min(V*4,U);if(V){for(var ae=0;ae>>2]>>>24-O%4*8&255,R=b[O+1>>>2]>>>24-(O+1)%4*8&255,M=b[O+2>>>2]>>>24-(O+2)%4*8&255,N=C<<16|R<<8|M,L=0;L<4&&O+L*.75>>6*(3-L)&63));var A=$.charAt(64);if(A)for(;P.length%4;)P.push(A);return P.join("")},parse:function(S){var b=S.length,E=this._map,$=this._reverseMap;if(!$){$=this._reverseMap=[];for(var P=0;P>>6-O%4*2,M=C|R;$[P>>>2]|=M<<24-P%4*8,P++}return f.create($,P)}}(),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 d=s,f=d.lib,g=f.WordArray,y=f.Hasher,S=d.algo,b=[];(function(){for(var R=0;R<64;R++)b[R]=c.abs(c.sin(R+1))*4294967296|0})();var E=S.MD5=y.extend({_doReset:function(){this._hash=new g.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(R,M){for(var N=0;N<16;N++){var L=M+N,A=R[L];R[L]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var I=this._hash.words,D=R[M+0],U=R[M+1],B=R[M+2],H=R[M+3],X=R[M+4],V=R[M+5],W=R[M+6],ae=R[M+7],ee=R[M+8],de=R[M+9],J=R[M+10],Y=R[M+11],Q=R[M+12],te=R[M+13],ce=R[M+14],oe=R[M+15],ne=I[0],ue=I[1],pe=I[2],he=I[3];ne=$(ne,ue,pe,he,D,7,b[0]),he=$(he,ne,ue,pe,U,12,b[1]),pe=$(pe,he,ne,ue,B,17,b[2]),ue=$(ue,pe,he,ne,H,22,b[3]),ne=$(ne,ue,pe,he,X,7,b[4]),he=$(he,ne,ue,pe,V,12,b[5]),pe=$(pe,he,ne,ue,W,17,b[6]),ue=$(ue,pe,he,ne,ae,22,b[7]),ne=$(ne,ue,pe,he,ee,7,b[8]),he=$(he,ne,ue,pe,de,12,b[9]),pe=$(pe,he,ne,ue,J,17,b[10]),ue=$(ue,pe,he,ne,Y,22,b[11]),ne=$(ne,ue,pe,he,Q,7,b[12]),he=$(he,ne,ue,pe,te,12,b[13]),pe=$(pe,he,ne,ue,ce,17,b[14]),ue=$(ue,pe,he,ne,oe,22,b[15]),ne=P(ne,ue,pe,he,U,5,b[16]),he=P(he,ne,ue,pe,W,9,b[17]),pe=P(pe,he,ne,ue,Y,14,b[18]),ue=P(ue,pe,he,ne,D,20,b[19]),ne=P(ne,ue,pe,he,V,5,b[20]),he=P(he,ne,ue,pe,J,9,b[21]),pe=P(pe,he,ne,ue,oe,14,b[22]),ue=P(ue,pe,he,ne,X,20,b[23]),ne=P(ne,ue,pe,he,de,5,b[24]),he=P(he,ne,ue,pe,ce,9,b[25]),pe=P(pe,he,ne,ue,H,14,b[26]),ue=P(ue,pe,he,ne,ee,20,b[27]),ne=P(ne,ue,pe,he,te,5,b[28]),he=P(he,ne,ue,pe,B,9,b[29]),pe=P(pe,he,ne,ue,ae,14,b[30]),ue=P(ue,pe,he,ne,Q,20,b[31]),ne=O(ne,ue,pe,he,V,4,b[32]),he=O(he,ne,ue,pe,ee,11,b[33]),pe=O(pe,he,ne,ue,Y,16,b[34]),ue=O(ue,pe,he,ne,ce,23,b[35]),ne=O(ne,ue,pe,he,U,4,b[36]),he=O(he,ne,ue,pe,X,11,b[37]),pe=O(pe,he,ne,ue,ae,16,b[38]),ue=O(ue,pe,he,ne,J,23,b[39]),ne=O(ne,ue,pe,he,te,4,b[40]),he=O(he,ne,ue,pe,D,11,b[41]),pe=O(pe,he,ne,ue,H,16,b[42]),ue=O(ue,pe,he,ne,W,23,b[43]),ne=O(ne,ue,pe,he,de,4,b[44]),he=O(he,ne,ue,pe,Q,11,b[45]),pe=O(pe,he,ne,ue,oe,16,b[46]),ue=O(ue,pe,he,ne,B,23,b[47]),ne=C(ne,ue,pe,he,D,6,b[48]),he=C(he,ne,ue,pe,ae,10,b[49]),pe=C(pe,he,ne,ue,ce,15,b[50]),ue=C(ue,pe,he,ne,V,21,b[51]),ne=C(ne,ue,pe,he,Q,6,b[52]),he=C(he,ne,ue,pe,H,10,b[53]),pe=C(pe,he,ne,ue,J,15,b[54]),ue=C(ue,pe,he,ne,U,21,b[55]),ne=C(ne,ue,pe,he,ee,6,b[56]),he=C(he,ne,ue,pe,oe,10,b[57]),pe=C(pe,he,ne,ue,W,15,b[58]),ue=C(ue,pe,he,ne,te,21,b[59]),ne=C(ne,ue,pe,he,X,6,b[60]),he=C(he,ne,ue,pe,Y,10,b[61]),pe=C(pe,he,ne,ue,B,15,b[62]),ue=C(ue,pe,he,ne,de,21,b[63]),I[0]=I[0]+ne|0,I[1]=I[1]+ue|0,I[2]=I[2]+pe|0,I[3]=I[3]+he|0},_doFinalize:function(){var R=this._data,M=R.words,N=this._nDataBytes*8,L=R.sigBytes*8;M[L>>>5]|=128<<24-L%32;var A=c.floor(N/4294967296),I=N;M[(L+64>>>9<<4)+15]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,M[(L+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,R.sigBytes=(M.length+1)*4,this._process();for(var D=this._hash,U=D.words,B=0;B<4;B++){var H=U[B];U[B]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return D},clone:function(){var R=y.clone.call(this);return R._hash=this._hash.clone(),R}});function $(R,M,N,L,A,I,D){var U=R+(M&N|~M&L)+A+D;return(U<>>32-I)+M}function P(R,M,N,L,A,I,D){var U=R+(M&L|N&~L)+A+D;return(U<>>32-I)+M}function O(R,M,N,L,A,I,D){var U=R+(M^N^L)+A+D;return(U<>>32-I)+M}function C(R,M,N,L,A,I,D){var U=R+(N^(M|~L))+A+D;return(U<>>32-I)+M}d.MD5=y._createHelper(E),d.HmacMD5=y._createHmacHelper(E)}(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,d=c.lib,f=d.WordArray,g=d.Hasher,y=c.algo,S=[],b=y.SHA1=g.extend({_doReset:function(){this._hash=new f.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(E,$){for(var P=this._hash.words,O=P[0],C=P[1],R=P[2],M=P[3],N=P[4],L=0;L<80;L++){if(L<16)S[L]=E[$+L]|0;else{var A=S[L-3]^S[L-8]^S[L-14]^S[L-16];S[L]=A<<1|A>>>31}var I=(O<<5|O>>>27)+N+S[L];L<20?I+=(C&R|~C&M)+1518500249:L<40?I+=(C^R^M)+1859775393:L<60?I+=(C&R|C&M|R&M)-1894007588:I+=(C^R^M)-899497514,N=M,M=R,R=C<<30|C>>>2,C=O,O=I}P[0]=P[0]+O|0,P[1]=P[1]+C|0,P[2]=P[2]+R|0,P[3]=P[3]+M|0,P[4]=P[4]+N|0},_doFinalize:function(){var E=this._data,$=E.words,P=this._nDataBytes*8,O=E.sigBytes*8;return $[O>>>5]|=128<<24-O%32,$[(O+64>>>9<<4)+14]=Math.floor(P/4294967296),$[(O+64>>>9<<4)+15]=P,E.sigBytes=$.length*4,this._process(),this._hash},clone:function(){var E=g.clone.call(this);return E._hash=this._hash.clone(),E}});c.SHA1=g._createHelper(b),c.HmacSHA1=g._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,d=c.lib,f=d.Base,g=c.enc,y=g.Utf8,S=c.algo;S.HMAC=f.extend({init:function(b,E){b=this._hasher=new b.init,typeof E=="string"&&(E=y.parse(E));var $=b.blockSize,P=$*4;E.sigBytes>P&&(E=b.finalize(E)),E.clamp();for(var O=this._oKey=E.clone(),C=this._iKey=E.clone(),R=O.words,M=C.words,N=0;N<$;N++)R[N]^=1549556828,M[N]^=909522486;O.sigBytes=C.sigBytes=P,this.reset()},reset:function(){var b=this._hasher;b.reset(),b.update(this._iKey)},update:function(b){return this._hasher.update(b),this},finalize:function(b){var E=this._hasher,$=E.finalize(b);E.reset();var P=E.finalize(this._oKey.clone().concat($));return P}})})()})}(hmac)),hmac.exports}var hasRequiredEvpkdf;function requireEvpkdf(){return hasRequiredEvpkdf||(hasRequiredEvpkdf=1,function(o,a){(function(s,c,d){o.exports=c(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(s){return function(){var c=s,d=c.lib,f=d.Base,g=d.WordArray,y=c.algo,S=y.MD5,b=y.EvpKDF=f.extend({cfg:f.extend({keySize:128/32,hasher:S,iterations:1}),init:function(E){this.cfg=this.cfg.extend(E)},compute:function(E,$){for(var P,O=this.cfg,C=O.hasher.create(),R=g.create(),M=R.words,N=O.keySize,L=O.iterations;M.length>>2]&255;V.sigBytes-=W}};f.BlockCipher=O.extend({cfg:O.cfg.extend({mode:M,padding:L}),reset:function(){var V;O.reset.call(this);var W=this.cfg,ae=W.iv,ee=W.mode;this._xformMode==this._ENC_XFORM_MODE?V=ee.createEncryptor:(V=ee.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==V?this._mode.init(this,ae&&ae.words):(this._mode=V.call(ee,this,ae&&ae.words),this._mode.__creator=V)},_doProcessBlock:function(V,W){this._mode.processBlock(V,W)},_doFinalize:function(){var V,W=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(W.pad(this._data,this.blockSize),V=this._process(!0)):(V=this._process(!0),W.unpad(V)),V},blockSize:128/32});var A=f.CipherParams=g.extend({init:function(V){this.mixIn(V)},toString:function(V){return(V||this.formatter).stringify(this)}}),I=d.format={},D=I.OpenSSL={stringify:function(V){var W,ae=V.ciphertext,ee=V.salt;return ee?W=y.create([1398893684,1701076831]).concat(ee).concat(ae):W=ae,W.toString(E)},parse:function(V){var W,ae=E.parse(V),ee=ae.words;return ee[0]==1398893684&&ee[1]==1701076831&&(W=y.create(ee.slice(2,4)),ee.splice(0,4),ae.sigBytes-=16),A.create({ciphertext:ae,salt:W})}},U=f.SerializableCipher=g.extend({cfg:g.extend({format:D}),encrypt:function(V,W,ae,ee){ee=this.cfg.extend(ee);var de=V.createEncryptor(ae,ee),J=de.finalize(W),Y=de.cfg;return A.create({ciphertext:J,key:ae,iv:Y.iv,algorithm:V,mode:Y.mode,padding:Y.padding,blockSize:V.blockSize,formatter:ee.format})},decrypt:function(V,W,ae,ee){ee=this.cfg.extend(ee),W=this._parse(W,ee.format);var de=V.createDecryptor(ae,ee).finalize(W.ciphertext);return de},_parse:function(V,W){return typeof V=="string"?W.parse(V,this):V}}),B=d.kdf={},H=B.OpenSSL={execute:function(V,W,ae,ee,de){if(ee||(ee=y.random(64/8)),de)var J=P.create({keySize:W+ae,hasher:de}).compute(V,ee);else var J=P.create({keySize:W+ae}).compute(V,ee);var Y=y.create(J.words.slice(W),ae*4);return J.sigBytes=W*4,A.create({key:J,iv:Y,salt:ee})}},X=f.PasswordBasedCipher=U.extend({cfg:U.cfg.extend({kdf:H}),encrypt:function(V,W,ae,ee){ee=this.cfg.extend(ee);var de=ee.kdf.execute(ae,V.keySize,V.ivSize,ee.salt,ee.hasher);ee.iv=de.iv;var J=U.encrypt.call(this,V,W,de.key,ee);return J.mixIn(de),J},decrypt:function(V,W,ae,ee){ee=this.cfg.extend(ee),W=this._parse(W,ee.format);var de=ee.kdf.execute(ae,V.keySize,V.ivSize,W.salt,ee.hasher);ee.iv=de.iv;var J=U.decrypt.call(this,V,W,de.key,ee);return J}})}()})}(cipherCore)),cipherCore.exports}(function(o,a){(function(s,c,d){o.exports=c(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(s){return function(){var c=s,d=c.lib,f=d.BlockCipher,g=c.algo,y=[],S=[],b=[],E=[],$=[],P=[],O=[],C=[],R=[],M=[];(function(){for(var A=[],I=0;I<256;I++)I<128?A[I]=I<<1:A[I]=I<<1^283;for(var D=0,U=0,I=0;I<256;I++){var B=U^U<<1^U<<2^U<<3^U<<4;B=B>>>8^B&255^99,y[D]=B,S[B]=D;var H=A[D],X=A[H],V=A[X],W=A[B]*257^B*16843008;b[D]=W<<24|W>>>8,E[D]=W<<16|W>>>16,$[D]=W<<8|W>>>24,P[D]=W;var W=V*16843009^X*65537^H*257^D*16843008;O[B]=W<<24|W>>>8,C[B]=W<<16|W>>>16,R[B]=W<<8|W>>>24,M[B]=W,D?(D=H^A[A[A[V^H]]],U^=A[A[U]]):D=U=1}})();var N=[0,1,2,4,8,16,32,64,128,27,54],L=g.AES=f.extend({_doReset:function(){var A;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var I=this._keyPriorReset=this._key,D=I.words,U=I.sigBytes/4,B=this._nRounds=U+6,H=(B+1)*4,X=this._keySchedule=[],V=0;V6&&V%U==4&&(A=y[A>>>24]<<24|y[A>>>16&255]<<16|y[A>>>8&255]<<8|y[A&255]):(A=A<<8|A>>>24,A=y[A>>>24]<<24|y[A>>>16&255]<<16|y[A>>>8&255]<<8|y[A&255],A^=N[V/U|0]<<24),X[V]=X[V-U]^A);for(var W=this._invKeySchedule=[],ae=0;ae>>24]]^C[y[A>>>16&255]]^R[y[A>>>8&255]]^M[y[A&255]]}}},encryptBlock:function(A,I){this._doCryptBlock(A,I,this._keySchedule,b,E,$,P,y)},decryptBlock:function(A,I){var D=A[I+1];A[I+1]=A[I+3],A[I+3]=D,this._doCryptBlock(A,I,this._invKeySchedule,O,C,R,M,S);var D=A[I+1];A[I+1]=A[I+3],A[I+3]=D},_doCryptBlock:function(A,I,D,U,B,H,X,V){for(var W=this._nRounds,ae=A[I]^D[0],ee=A[I+1]^D[1],de=A[I+2]^D[2],J=A[I+3]^D[3],Y=4,Q=1;Q>>24]^B[ee>>>16&255]^H[de>>>8&255]^X[J&255]^D[Y++],ce=U[ee>>>24]^B[de>>>16&255]^H[J>>>8&255]^X[ae&255]^D[Y++],oe=U[de>>>24]^B[J>>>16&255]^H[ae>>>8&255]^X[ee&255]^D[Y++],ne=U[J>>>24]^B[ae>>>16&255]^H[ee>>>8&255]^X[de&255]^D[Y++];ae=te,ee=ce,de=oe,J=ne}var te=(V[ae>>>24]<<24|V[ee>>>16&255]<<16|V[de>>>8&255]<<8|V[J&255])^D[Y++],ce=(V[ee>>>24]<<24|V[de>>>16&255]<<16|V[J>>>8&255]<<8|V[ae&255])^D[Y++],oe=(V[de>>>24]<<24|V[J>>>16&255]<<16|V[ae>>>8&255]<<8|V[ee&255])^D[Y++],ne=(V[J>>>24]<<24|V[ae>>>16&255]<<16|V[ee>>>8&255]<<8|V[de&255])^D[Y++];A[I]=te,A[I+1]=ce,A[I+2]=oe,A[I+3]=ne},keySize:256/32});c.AES=f._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,d){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(d,f){this._cipher.encryptBlock(d,f)}}),c.Decryptor=c.extend({processBlock:function(d,f){this._cipher.decryptBlock(d,f)}}),c}(),s.mode.ECB})})(modeEcb);var modeEcbExports=modeEcb.exports;const ECB=getDefaultExportFromCjs(modeEcbExports);var padPkcs7={exports:{}};(function(o,a){(function(s,c,d){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={}){br(this,"key");br(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:d=cacheCipher.iv,timeout:f=null}={})=>{if(s&&[c.length,d.length].some(S=>S!==16))throw new Error("When hasEncrypt is true, the key or iv must be 16 bits!");const g=new AesEncrypt({key:c,iv:d}),y=class{constructor(){br(this,"storage");br(this,"prefixKey");br(this,"encrypt");br(this,"hasEncrypt");this.storage=a,this.prefixKey=o,this.encrypt=g,this.hasEncrypt=s}getKey(b){return`${this.prefixKey}${b}`.toUpperCase()}set(b,E,$=f){const P=JSON.stringify({value:E,time:Date.now(),expire:isNullOrUnDef($)?null:new Date().getTime()+$*1e3}),O=this.hasEncrypt?this.encrypt.encryptByAES(P):P;this.storage.setItem(this.getKey(b),O)}get(b,E=null){const $=this.storage.getItem(this.getKey(b));if(!$)return E;try{const P=this.hasEncrypt?this.encrypt.decryptByAES($):$,O=JSON.parse(P),{value:C,expire:R}=O;if(isNullOrUnDef(R)||R>=new Date().getTime())return C;this.remove(b)}catch(P){return E}}remove(b){this.storage.removeItem(this.getKey(b))}clear(){this.storage.clear()}};return new y},createOptions=(o,a={})=>le({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,Pe(le({},o),{timeout:DEFAULT_CACHE_TIME})),createLocalStorage=(o={})=>createStorage(localStorage,Pe(le({},o),{timeout:DEFAULT_CACHE_TIME}));class Memory{constructor(a=0){br(this,"cache",{});br(this,"alive");this.alive=a*1e3}get getCache(){return this.cache}get(a){return this.cache[a]}set(a,s,c){let d=this.get(a);if((!c||c<=0)&&(c=this.alive),d?(d.timeoutId&&(clearTimeout(d.timeoutId),d.timeoutId=void 0),d.value=s):(d={value:s,alive:c},this.cache[a]=d),!c)return s;const f=new Date().getTime();return d.time=f+this.alive,d.timeoutId=setTimeout(()=>{this.remove(a)},c>f?c-f: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,d=a[c];if(d&&d.time){const f=new Date().getTime(),g=d.time;g>f&&this.set(c,d.value,g)}})}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 getToken(){return getAuthCache(TOKEN_KEY)}function getAuthCache(o){return(isLocal?Persistent.getLocal:Persistent.getSession)(o)}function clearAuthCache(o=!0){return(isLocal?Persistent.clearLocal:Persistent.clearSession)(o)}const service=axios$1.create({baseURL:"/api",timeout:10*1e3}),handleError=o=>{var a,s;return(((a=o.response)==null?void 0:a.status)===401||((s=o.response)==null?void 0:s.status)===504)&&(clearAuthCache(),location.href="/login"),message.error(o.message||"error"),Promise.reject(o)};service.interceptors.request.use(o=>{const a=getToken();return a&&(o.headers.Authorization=`${a}`),o.headers["Content-Type"]="application/json",o},handleError);service.interceptors.response.use(o=>{const{data:a}=o;return a.code===0?a.data:(message.error(a.message),Promise.reject("error"))},handleError);const loginApi=o=>service({url:"/login",method:"post",data:o});function logoutApi(){return service({url:"/logout",method:"get"})}function getJueJinList(o){return service({url:"article/queryList",method:"post",data:o})}function getUsersList(){return service({url:"user/getUserList",method:"get"})}const headerImg="/react-antd-admin-pnpm/assets/avatar-9ee092e3.jpeg",useUserStore=create(o=>({userInfo:getItem$1(StorageEnum.User)||{},userToken:getItem$1(StorageEnum.Token)||{},actions:{setUserInfo:a=>{o({userInfo:a}),setItem(StorageEnum.User,a)},setUserToken:a=>{o({userToken:a}),setItem(StorageEnum.Token,a)},clearUserInfoAndToken:()=>{o({userInfo:{},userToken:{}}),removeItem(StorageEnum.User),removeItem(StorageEnum.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:d}=useUserActions(),f=useMutation({mutationFn:loginApi}),g=y=>Pt(void 0,null,function*(){try{const b=yield f.mutateAsync(y),S=b,{token:E}=S,$=ur(S,["token"]);return c({token:E}),d($),a.success({message:o("登录成功"),description:`欢迎回来: ${y.username}`,duration:3}),yield Promise.resolve(b)}catch(b){return s.error({content:b.message,duration:3}),Promise.reject(b)}});return reactExports.useCallback(g,[])};function UserDropdown(){const{createConfirm:o,contextHolder:a,createMessage:s}=useMessage(),{clearUserInfoAndToken:c}=useUserActions(),{t:d}=useTranslation(),{token:f}=useUserToken(),g=[{key:"lock",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(LockOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:d("锁定屏幕")})]})},{key:"logout",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(PoweroffOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:d("退出登录")})]})}],y=({key:$})=>{switch($){case"lock":break;case"logout":b();break}},S=useNavigate(),b=()=>{o({title:jsxRuntimeExports.jsx("span",{children:d("温馨提醒")}),content:jsxRuntimeExports.jsx("span",{children:d("是否确认退出系统?")}),onOk:()=>Pt(this,null,function*(){yield E(!0)})})},E=($=!1)=>Pt(this,null,function*(){if(f)try{yield logoutApi()}catch(P){s.error(d("注销失败!"))}c(),$&&S("/login")});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a,jsxRuntimeExports.jsx(Dropdown,{menu:{items:g,onClick:y},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 d=o.split(":");if(o.slice(0,1)==="@"){if(d.length<2||d.length>3)return null;c=d.shift().slice(1)}if(d.length>3||!d.length)return null;if(d.length>1){const y=d.pop(),S=d.pop(),b={provider:d.length>0?d[0]:c,prefix:S,name:y};return a&&!validateIconName(b)?null:b}const f=d[0],g=f.split("-");if(g.length>1){const y={provider:c,prefix:g.shift(),name:g.join("-")};return a&&!validateIconName(y)?null:y}if(s&&c===""){const y={provider:c,prefix:"",name:f};return a&&!validateIconName(y,s)?null:y}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(le(le({},defaultIconDimensions),defaultIconTransformations)),defaultExtendedIconProps=Object.freeze(Pe(le({},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),d=Object.create(null);function f(g){if(s[g])return d[g]=[];if(!(g in d)){d[g]=null;const y=c[g]&&c[g].parent,S=y&&f(y);S&&(d[g]=[y].concat(S))}return d[g]}return(a||Object.keys(s).concat(Object.keys(c))).forEach(f),d}function internalGetIconData(o,a,s){const c=o.icons,d=o.aliases||Object.create(null);let f={};function g(y){f=mergeIconData(c[y]||d[y],f)}return g(a),s.forEach(g),mergeIconData(o,f)}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(d=>{a(d,null),s.push(d)});const c=getIconsTree(o);for(const d in c){const f=c[d];f&&(a(d,internalGetIconData(o,d,f)),s.push(d))}return s}const optionalPropertyDefaults=le({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 d in s){const f=s[d];if(!d.match(matchIconName)||typeof f.body!="string"||!checkOptionalProps(f,defaultExtendedIconProps))return null}const c=a.aliases||Object.create(null);for(const d in c){const f=c[d],g=f.parent;if(!d.match(matchIconName)||typeof g!="string"||!s[g]&&!c[g]||!checkOptionalProps(f,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]=le({},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 d=!1;return quicklyValidateIconSet(o)&&(o.prefix="",parseIconSet(o,(f,g)=>{g&&addIcon(f,g)&&(d=!0)})),d}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(le(le({},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 d=[];let f=c.shift(),g=unitsTest.test(f);for(;;){if(g){const y=parseFloat(f);isNaN(y)?d.push(f):d.push(Math.ceil(y*a*s)/s)}else d.push(f);if(f=c.shift(),f===void 0)return d.join("");g=!g}}const isUnsetKeyword=o=>o==="unset"||o==="undefined"||o==="none";function iconToSVG(o,a){const s=le(le({},defaultIconProps),o),c=le(le({},defaultIconCustomisations),a),d={left:s.left,top:s.top,width:s.width,height:s.height};let f=s.body;[s,c].forEach(C=>{const R=[],M=C.hFlip,N=C.vFlip;let L=C.rotate;M?N?L+=2:(R.push("translate("+(d.width+d.left).toString()+" "+(0-d.top).toString()+")"),R.push("scale(-1 1)"),d.top=d.left=0):N&&(R.push("translate("+(0-d.left).toString()+" "+(d.height+d.top).toString()+")"),R.push("scale(1 -1)"),d.top=d.left=0);let A;switch(L<0&&(L-=Math.floor(L/4)*4),L=L%4,L){case 1:A=d.height/2+d.top,R.unshift("rotate(90 "+A.toString()+" "+A.toString()+")");break;case 2:R.unshift("rotate(180 "+(d.width/2+d.left).toString()+" "+(d.height/2+d.top).toString()+")");break;case 3:A=d.width/2+d.left,R.unshift("rotate(-90 "+A.toString()+" "+A.toString()+")");break}L%2===1&&(d.left!==d.top&&(A=d.left,d.left=d.top,d.top=A),d.width!==d.height&&(A=d.width,d.width=d.height,d.height=A)),R.length&&(f=''+f+"")});const g=c.width,y=c.height,S=d.width,b=d.height;let E,$;g===null?($=y===null?"1em":y==="auto"?b:y,E=calculateSize($,S/b)):(E=g==="auto"?S:g,$=y===null?calculateSize(E,b/S):y==="auto"?b:y);const P={},O=(C,R)=>{isUnsetKeyword(R)||(P[C]=R.toString())};return O("width",E),O("height",$),P.viewBox=d.left.toString()+" "+d.top.toString()+" "+S.toString()+" "+b.toString(),{attributes:P,body:f}}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 d="suffix"+(Math.random()*16777216|Date.now()).toString(16);return s.forEach(f=>{const g=typeof a=="function"?a(f):a+(counter++).toString(),y=f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");o=o.replace(new RegExp('([#;"])('+y+')([")]|\\.[a-z])',"g"),"$1"+g+d+"$3")}),o=o.replace(new RegExp(d,"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 d=0;s.resources.forEach(g=>{d=Math.max(d,g.length)});const f=a+".json?icons=";c=s.maxURL-d-s.path.length-f.length}return c}function shouldAbort(o){return o===404}const prepare=(o,a,s)=>{const c=[],d=calculateMaxLength(o,a),f="icons";let g={type:f,provider:o,prefix:a,icons:[]},y=0;return s.forEach((S,b)=>{y+=S.length+1,y>=d&&b>0&&(c.push(g),g={type:f,provider:o,prefix:a,icons:[]},y=S.length),g.icons.push(S)}),c.push(g),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 f=a.prefix,y=a.icons.join(","),S=new URLSearchParams({icons:y});c+=f+".json?"+S.toString();break}case"custom":{const f=a.uri;c+=f.slice(0,1)==="/"?f.slice(1):f;break}default:s("abort",400);return}let d=503;fetchModule(o+c).then(f=>{const g=f.status;if(g!==200){setTimeout(()=>{s(shouldAbort(g)?"abort":"next",g)});return}return d=501,f.json()}).then(f=>{if(typeof f!="object"||f===null){setTimeout(()=>{f===404?s("abort",f):s("next",d)});return}setTimeout(()=>{s("success",f)})}).catch(()=>{s("next",d)})},fetchAPIModule={prepare,send};function sortIcons(o){const a={loaded:[],missing:[],pending:[]},s=Object.create(null);o.sort((d,f)=>d.provider!==f.provider?d.provider.localeCompare(f.provider):d.prefix!==f.prefix?d.prefix.localeCompare(f.prefix):d.name.localeCompare(f.name));let c={provider:"",prefix:"",name:""};return o.forEach(d=>{if(c.name===d.name&&c.prefix===d.prefix&&c.provider===d.provider)return;c=d;const f=d.provider,g=d.prefix,y=d.name,S=s[f]||(s[f]=Object.create(null)),b=S[g]||(S[g]=getStorage$2(f,g));let E;y in b.icons?E=a.loaded:g===""||b.missing.has(y)?E=a.missing:E=a.pending;const $={provider:f,prefix:g,name:y};E.push($)}),a}function removeCallback(o,a){o.forEach(s=>{const c=s.loaderCallbacks;c&&(s.loaderCallbacks=c.filter(d=>d.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,d=o.prefix;a.forEach(f=>{const g=f.icons,y=g.pending.length;g.pending=g.pending.filter(S=>{if(S.prefix!==d)return!0;const b=S.name;if(o.icons[b])g.loaded.push({provider:c,prefix:d,name:b});else if(o.missing.has(b))g.missing.push({provider:c,prefix:d,name:b});else return s=!0,!0;return!1}),g.pending.length!==y&&(s||removeCallback([o],f.id),f.callback(g.loaded.slice(0),g.missing.slice(0),g.pending.slice(0),f.abort))})}))}let idCounter=0;function storeCallback(o,a,s){const c=idCounter++,d=removeCallback.bind(null,s,c);if(!a.pending.length)return d;const f={id:c,icons:a,callback:o,abort:d};return s.forEach(g=>{(g.loaderCallbacks||(g.loaderCallbacks=[])).push(f)}),d}function listToIcons(o,a=!0,s=!1){const c=[];return o.forEach(d=>{const f=typeof d=="string"?stringToIcon(d,a,s):d;f&&c.push(f)}),c}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(o,a,s,c){const d=o.resources.length,f=o.random?Math.floor(Math.random()*d):o.index;let g;if(o.random){let U=o.resources.slice(0);for(g=[];U.length>1;){const B=Math.floor(Math.random()*U.length);g.push(U[B]),U=U.slice(0,B).concat(U.slice(B+1))}g=g.concat(U)}else g=o.resources.slice(f).concat(o.resources.slice(0,f));const y=Date.now();let S="pending",b=0,E,$=null,P=[],O=[];typeof c=="function"&&O.push(c);function C(){$&&(clearTimeout($),$=null)}function R(){S==="pending"&&(S="aborted"),C(),P.forEach(U=>{U.status==="pending"&&(U.status="aborted")}),P=[]}function M(U,B){B&&(O=[]),typeof U=="function"&&O.push(U)}function N(){return{startTime:y,payload:a,status:S,queriesSent:b,queriesPending:P.length,subscribe:M,abort:R}}function L(){S="failed",O.forEach(U=>{U(void 0,E)})}function A(){P.forEach(U=>{U.status==="pending"&&(U.status="aborted")}),P=[]}function I(U,B,H){const X=B!=="success";switch(P=P.filter(V=>V!==U),S){case"pending":break;case"failed":if(X||!o.dataAfterTimeout)return;break;default:return}if(B==="abort"){E=H,L();return}if(X){E=H,P.length||(g.length?D():L());return}if(C(),A(),!o.random){const V=o.resources.indexOf(U.resource);V!==-1&&V!==o.index&&(o.index=V)}S="completed",O.forEach(V=>{V(H)})}function D(){if(S!=="pending")return;C();const U=g.shift();if(U===void 0){if(P.length){$=setTimeout(()=>{C(),S==="pending"&&(A(),L())},o.timeout);return}L();return}const B={status:"pending",resource:U,callback:(H,X)=>{I(B,H,X)}};P.push(B),b++,$=setTimeout(D,o.rotate),s(U,a,B.callback)}return setTimeout(D),N}function initRedundancy(o){const a=le(le({},defaultConfig),o);let s=[];function c(){s=s.filter(y=>y().status==="pending")}function d(y,S,b){const E=sendQuery(a,y,S,($,P)=>{c(),b&&b($,P)});return s.push(E),E}function f(y){return s.find(S=>y(S))||null}return{query:d,find:f,setIndex:y=>{a.index=y},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,d;if(typeof o=="string"){const f=getAPIModule(o);if(!f)return s(void 0,424),emptyCallback$1;d=f.send;const g=getRedundancyCache(o);g&&(c=g.redundancy)}else{const f=createAPIConfig(o);if(f){c=initRedundancy(f);const g=o.resources?o.resources[0]:"",y=getAPIModule(g);y&&(d=y.send)}}return!c||!d?(s(void 0,424),emptyCallback$1):c.query(a,d,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 y=getBrowserStorageItemsCount(s);for(let S=0;S{const S=browserCachePrefix+y.toString(),b=getStoredItem(s,S);if(typeof b=="string"){try{const E=JSON.parse(b);if(typeof E=="object"&&typeof E.cached=="number"&&E.cached>d&&typeof E.provider=="string"&&typeof E.data=="object"&&typeof E.data.prefix=="string"&&a(E,y))return!0}catch(E){}removeStoredItem(s,S)}};let g=getBrowserStorageItemsCount(s);for(let y=g-1;y>=0;y--)f(y)||(y===g-1?(g--,setBrowserStorageItemsCount(s,g)):browserStorageEmptyItems[o].add(y))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const o in browserStorageConfig)iterateBrowserStorage(o,a=>{const s=a.data,c=a.provider,d=s.prefix,f=getStorage$2(c,d);if(!addIconSet(f,s).length)return!1;const g=s.lastModified||-1;return f.lastModifiedCached=f.lastModifiedCached?Math.min(f.lastModifiedCached,g):g,!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,d=>{const f=d.data;return d.provider!==o.provider||f.prefix!==o.prefix||f.lastModified===a});return!0}function storeInBrowserStorage(o,a){browserStorageStatus||initBrowserStorage();function s(c){let d;if(!browserStorageConfig[c]||!(d=getBrowserStorage(c)))return;const f=browserStorageEmptyItems[c];let g;if(f.size)f.delete(g=Array.from(f).shift());else if(g=getBrowserStorageItemsCount(d),!setBrowserStorageItemsCount(d,g+1))return;const y={cached:Math.floor(Date.now()/browserStorageHour),provider:o.provider,data:a};return setStoredItem(d,browserCachePrefix+g.toString(),JSON.stringify(y))}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,d=o.iconsToLoad;delete o.iconsToLoad;let f;if(!d||!(f=getAPIModule(s)))return;f.prepare(s,c,d).forEach(y=>{sendAPIQuery(s,y,S=>{if(typeof S!="object")y.icons.forEach(b=>{o.missing.add(b)});else try{const b=addIconSet(o,S);if(!b.length)return;const E=o.pendingIcons;E&&b.forEach($=>{E.delete($)}),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 d=Object.create(null),f=[];let g,y;return c.pending.forEach(S=>{const{provider:b,prefix:E}=S;if(E===y&&b===g)return;g=b,y=E,f.push(getStorage$2(b,E));const $=d[b]||(d[b]=Object.create(null));$[E]||($[E]=[])}),c.pending.forEach(S=>{const{provider:b,prefix:E,name:$}=S,P=getStorage$2(b,E),O=P.pendingIcons||(P.pendingIcons=new Set);O.has($)||(O.add($),d[b][E].push($))}),f.forEach(S=>{const{provider:b,prefix:E}=S;d[b][E].length&&loadNewIcons(S,d[b][E])}),a?storeCallback(a,c,f):emptyCallback};function mergeCustomisations(o,a){const s=le({},o);for(const c in a){const d=a[c],f=typeof d;c in defaultIconSizeCustomisations?(d===null||d&&(f==="string"||f==="number"))&&(s[c]=d):f===typeof s[c]&&(s[c]=c==="rotate"?d%4:d)}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(d){for(;d<0;)d+=4;return d%4}if(s===""){const d=parseInt(o);return isNaN(d)?0:c(d)}else if(s!==o){let d=0;switch(s){case"%":d=25;break;case"deg":d=90}if(d){let f=parseFloat(o.slice(0,o.length-s.length));return isNaN(f)?0:(f=f/d,f%1===0?c(f):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=Pe(le({},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=Pe(le({},defaultExtendedIconCustomisations),{inline:!0});function fixSize(o){return o+(o.match(/^[-0-9.]+$/)?"px":"")}const render=(o,a,s,c)=>{const d=s?inlineDefaults:defaultExtendedIconCustomisations,f=mergeCustomisations(d,a),g=a.mode||"svg",y={},S=a.style||{},b=Pe(le({},g==="svg"?svgDefaults:{}),{ref:c});for(let N in a){const L=a[N];if(L!==void 0)switch(N){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":f[N]=L===!0||L==="true"||L===1;break;case"flip":typeof L=="string"&&flipFromString(f,L);break;case"color":y.color=L;break;case"rotate":typeof L=="string"?f[N]=rotateFromString(L):typeof L=="number"&&(f[N]=L);break;case"ariaHidden":case"aria-hidden":L!==!0&&L!=="true"&&delete b["aria-hidden"];break;default:d[N]===void 0&&(b[N]=L)}}const E=iconToSVG(o,f),$=E.attributes;if(f.inline&&(y.verticalAlign="-0.125em"),g==="svg"){b.style=le(le({},y),S),Object.assign(b,$);let N=0,L=a.id;return typeof L=="string"&&(L=L.replace(/-/g,"_")),b.dangerouslySetInnerHTML={__html:cleanUpInnerHTML(replaceIDs(E.body,L?()=>L+"ID"+N++:"iconifyReact"))},React$4.createElement("svg",b)}const{body:P,width:O,height:C}=o,R=g==="mask"||(g==="bg"?!1:P.indexOf("currentColor")!==-1),M=iconToHTML(P,Pe(le({},$),{width:O+"",height:C+""}));return b.style=le(le(le(Pe(le({},y),{"--svg":svgToURL(M),width:fixSize($.width),height:fixSize($.height)}),commonProps),R?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(d){}})}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 d=a[s];if(typeof d!="object"||!d||d.resources===void 0)continue;addAPIProvider(s,d)}catch(d){}}}}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 d;if(typeof c!="string"||(d=stringToIcon(c,!1,!0))===null){this._abortLoading(),this._setData(null);return}const f=getIconData(d);if(!f){(!this._loading||this._loading.name!==c)&&(this._abortLoading(),this._icon="",this._setData(null),f!==null&&(this._loading={name:c,abort:loadIcons([d],this._checkIcon.bind(this,!1))}));return}if(this._icon!==c||s.icon===null){this._abortLoading(),this._icon=c;const g=["iconify"];d.prefix!==""&&g.push("iconify--"+d.prefix),d.provider!==""&&g.push("iconify--"+d.provider),this._setData({data:f,classes:g}),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=Pe(le({},a),{className:(typeof a.className=="string"?a.className+" ":"")+s.classes.join(" ")})),render(le(le({},defaultIconProps),s.data),c,a._inline,a._ref)}}const Icon=React$4.forwardRef(function(a,s){const c=Pe(le({},a),{_ref:s,_inline:!1});return React$4.createElement(IconComponent,c)});React$4.forwardRef(function(a,s){const c=Pe(le({},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,d=a,f=new Map,g=f,y=0,S=!1;function b(){g===f&&(g=new Map,f.forEach((M,N)=>{g.set(N,M)}))}function E(){if(S)throw new Error(formatProdErrorMessage$2(3));return d}function $(M){if(typeof M!="function")throw new Error(formatProdErrorMessage$2(4));if(S)throw new Error(formatProdErrorMessage$2(5));let N=!0;b();const L=y++;return g.set(L,M),function(){if(N){if(S)throw new Error(formatProdErrorMessage$2(6));N=!1,b(),g.delete(L),f=null}}}function P(M){if(!isPlainObject$2(M))throw new Error(formatProdErrorMessage$2(7));if(typeof M.type=="undefined")throw new Error(formatProdErrorMessage$2(8));if(typeof M.type!="string")throw new Error(formatProdErrorMessage$2(17));if(S)throw new Error(formatProdErrorMessage$2(9));try{S=!0,d=c(d,M)}finally{S=!1}return(f=g).forEach(L=>{L()}),M}function O(M){if(typeof M!="function")throw new Error(formatProdErrorMessage$2(10));c=M,P({type:actionTypes_default.REPLACE})}function C(){const M=$;return{subscribe(N){if(typeof N!="object"||N===null)throw new Error(formatProdErrorMessage$2(11));function L(){const I=N;I.next&&I.next(E())}return L(),{unsubscribe:M(L)}},[symbol_observable_default](){return this}}}return P({type:actionTypes_default.INIT}),{dispatch:P,subscribe:$,getState:E,replaceReducer:O,[symbol_observable_default]:C}}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 f=0;fa:o.length===1?o[0]:o.reduce((a,s)=>(...c)=>a(s(...c)))}function applyMiddleware(...o){return a=>(s,c)=>{const d=a(s,c);let f=()=>{throw new Error(formatProdErrorMessage$2(15))};const g={getState:d.getState,dispatch:(S,...b)=>f(S,...b)},y=o.map(S=>S(g));return f=compose(...y)(d.dispatch),Pe(le({},d),{dispatch:f})}}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)?le({},o):Object.assign(Object.create(null),o);const s=Object.getOwnPropertyDescriptors(o);delete s[DRAFT_STATE];let c=Reflect.ownKeys(s);for(let d=0;d1&&(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,(d,f)=>finalizeProperty(o,c,a,d,f,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 d=c.copy_;let f=d,g=!1;c.type_===3&&(f=new Set(d),d.clear(),g=!0),each(f,(y,S)=>finalizeProperty(o,c,d,y,S,s,g)),maybeFreeze(o,d,!1),s&&o.patches_&&getPlugin("Patches").generatePatches_(c,s,o.patches_,o.inversePatches_)}return c.copy_}function finalizeProperty(o,a,s,c,d,f,g){if(isDraft(d)){const y=f&&a&&a.type_!==3&&!has(a.assigned_,c)?f.concat(c):void 0,S=finalize(o,d,y);if(set(s,c,S),isDraft(S))o.canAutoFreeze_=!1;else return}else g&&s.add(d);if(isDraftable(d)&&!isFrozen(d)){if(!o.immer_.autoFreeze_&&o.unfinalizedDrafts_<1)return;finalize(o,d),(!a||!a.scope_.parent_)&&maybeFreeze(o,d)}}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 d=c,f=objectTraps;s&&(d=[c],f=arrayTraps);const{revoke:g,proxy:y}=Proxy.revocable(d,f);return c.draft_=y,c.revoke_=g,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 d=peek(latest(o),a),f=d==null?void 0:d[DRAFT_STATE];if(f&&f.base_===s)return o.copy_[a]=s,o.assigned_[a]=!1,!0;if(is(s,d)&&(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 d;const c=getDescriptorFromProto(a,s);return c?"value"in c?c.value:(d=c.get)==null?void 0:d.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 f=s;s=a;const g=this;return function(S=f,...b){return g.produce(S,E=>s.call(this,E,...b))}}typeof s!="function"&&die(6),c!==void 0&&typeof c!="function"&&die(7);let d;if(isDraftable(a)){const f=enterScope(this),g=createProxy(a,void 0);let y=!0;try{d=s(g),y=!1}finally{y?revokeScope(f):leaveScope(f)}return usePatchesInScope(f,c),processResult(d,f)}else if(!a||typeof a!="object"){if(d=s(a),d===void 0&&(d=a),d===NOTHING&&(d=void 0),this.autoFreeze_&&freeze(d,!0),c){const f=[],g=[];getPlugin("Patches").generateReplacementPatches_(a,d,f,g),c(f,g)}return d}else die(1,a)},this.produceWithPatches=(a,s)=>{if(typeof a=="function")return(g,...y)=>this.produceWithPatches(g,S=>a(S,...y));let c,d;return[this.produce(a,s,(g,y)=>{c=g,d=y}),c,d]},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 d=a[s];if(d.path.length===0&&d.op==="replace"){o=d.value;break}}s>-1&&(a=a.slice(s+1));const c=getPlugin("Patches").applyPatches_;return isDraft(o)?c(o,a):this.produce(o,d=>c(d,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,d)=>{set(s,c,currentImpl(d))}),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 d=0;d{s=createCacheNode(),g.resetResultsCount()},g.resultsCount=()=>f,g.resetResultsCount=()=>{f=0},g}function createSelectorCreator(o,...a){const s=typeof o=="function"?{memoize:o,memoizeOptions:a}:o,c=(...d)=>{let f=0,g=0,y,S={},b=d.pop();typeof b=="object"&&(S=b,b=d.pop()),assertIsFunction(b,`createSelector expects an output function after the inputs, but received: [${typeof b}]`);const E=le(le({},s),S),{memoize:$,memoizeOptions:P=[],argsMemoize:O=weakMapMemoize,argsMemoizeOptions:C=[],devModeChecks:R={}}=E,M=ensureIsArray(P),N=ensureIsArray(C),L=getDependencies(d),A=$(function(){return f++,b.apply(null,arguments)},...M),I=O(function(){g++;const U=collectInputSelectorResults(L,arguments);return y=A.apply(null,U),y},...N);return Object.assign(I,{resultFunc:b,memoizedResultFunc:A,dependencies:L,dependencyRecomputations:()=>g,resetDependencyRecomputations:()=>{g=0},lastResult:()=>y,recomputations:()=>f,resetRecomputations:()=>{f=0},memoize:$,argsMemoize:O})};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(f=>o[f]);return a(c,(...f)=>f.reduce((g,y,S)=>(g[s[S]]=y,g),{}))},{withTypes:()=>createStructuredSelector});function createThunkMiddleware(o){return({dispatch:s,getState:c})=>d=>f=>typeof f=="function"?f(s,c,o):d(f)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,createDraftSafeSelectorCreator=(...o)=>{const a=createSelectorCreator(...o);return(...s)=>{const c=a(...s),d=(f,...g)=>c(isDraft(f)?current(f):f,...g);return Object.assign(d,c),d}};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 d=a(...c);if(!d)throw new Error(formatProdErrorMessage$1(0));return le(le({type:o,payload:d.payload},"meta"in d&&{meta:d.meta}),"error"in d&&{error:d.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 _a extends Array{constructor(...a){super(...a),Object.setPrototypeOf(this,_a.prototype)}static get[Symbol.species](){return _a}concat(...a){return super.concat.apply(this,a)}prepend(...a){return a.length===1&&Array.isArray(a[0])?new _a(...a[0].concat(this)):new _a(...a.concat(this))}};function freezeDraftable(o){return isDraftable(o)?produce(o,()=>{}):o}function emplace(o,a,s){if(o.has(a)){let d=o.get(a);return s.update&&(d=s.update(d,a,o),o.set(a,d)),d}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:d=!0,actionCreatorCheck:f=!0}=a!=null?a:{};let g=new Tuple;return s&&(isBoolean(s)?g.push(thunk):g.push(withExtraArgument(s.extraArgument))),g},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 d=!0,f=!1,g=!1;const y=new Set,S=o.type==="tick"?queueMicrotask:o.type==="raf"?rAF:o.type==="callback"?o.queueNotification:createQueueWithTimer(o.timeout),b=()=>{g=!1,f&&(f=!1,y.forEach(E=>E()))};return Object.assign({},c,{subscribe(E){const $=()=>d&&E(),P=c.subscribe($);return y.add(E),()=>{P(),y.delete(E)}},dispatch(E){var $;try{return d=!(($=E==null?void 0:E.meta)!=null&&$[SHOULD_AUTOBATCH]),f=!d,f&&(g||(g=!0,S(b))),c.dispatch(E)}finally{d=!0}}})},buildGetDefaultEnhancers=o=>function(s){const{autoBatch:c=!0}=s!=null?s:{};let d=new Tuple(o);return c&&d.push(autoBatchEnhancer(typeof c=="object"?c:void 0)),d},IS_PRODUCTION=!0;function configureStore(o){const a=buildGetDefaultMiddleware(),{reducer:s=void 0,middleware:c,devTools:d=!0,preloadedState:f=void 0,enhancers:g=void 0}=o||{};let y;if(typeof s=="function")y=s;else if(isPlainObject$2(s))y=combineReducers(s);else throw new Error(formatProdErrorMessage$1(1));let S;typeof c=="function"?S=c(a):S=a();let b=compose;d&&(b=composeWithDevTools(le({trace:!IS_PRODUCTION},typeof d=="object"&&d)));const E=applyMiddleware(...S),$=buildGetDefaultEnhancers(E);let P=typeof g=="function"?g($):$();const O=b(...P);return createStore$1(y,f,O)}function executeReducerBuilderCallback(o){const a={},s=[];let c;const d={addCase(f,g){const y=typeof f=="string"?f:f.type;if(!y)throw new Error(formatProdErrorMessage$1(28));if(y in a)throw new Error(formatProdErrorMessage$1(29));return a[y]=g,d},addMatcher(f,g){return s.push({matcher:f,reducer:g}),d},addDefaultCase(f){return c=f,d}};return o(d),[a,s,c]}function isStateFunction(o){return typeof o=="function"}function createReducer(o,a){let[s,c,d]=executeReducerBuilderCallback(a),f;if(isStateFunction(o))f=()=>freezeDraftable(o());else{const y=freezeDraftable(o);f=()=>y}function g(y=f(),S){let b=[s[S.type],...c.filter(({matcher:E})=>E(S)).map(({reducer:E})=>E)];return b.filter(E=>!!E).length===0&&(b=[d]),b.reduce((E,$)=>{if($)if(isDraft(E)){const O=$(E,S);return O===void 0?E:O}else{if(isDraftable(E))return produce(E,P=>$(P,S));{const P=$(E,S);if(P===void 0){if(E===null)return E;throw new Error(formatProdErrorMessage$1(9))}return P}}return E},y)}return g.getInitialState=f,g}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){br(this,"_type");this.payload=o,this.meta=a}},FulfillWithMeta=class{constructor(o,a){br(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 d=createAction(a+"/fulfilled",(S,b,E,$)=>({payload:S,meta:Pe(le({},$||{}),{arg:E,requestId:b,requestStatus:"fulfilled"})})),f=createAction(a+"/pending",(S,b,E)=>({payload:void 0,meta:Pe(le({},E||{}),{arg:b,requestId:S,requestStatus:"pending"})})),g=createAction(a+"/rejected",(S,b,E,$,P)=>({payload:$,error:(c&&c.serializeError||miniSerializeError)(S||"Rejected"),meta:Pe(le({},P||{}),{arg:E,requestId:b,rejectedWithValue:!!$,requestStatus:"rejected",aborted:(S==null?void 0:S.name)==="AbortError",condition:(S==null?void 0:S.name)==="ConditionError"})}));function y(S){return(b,E,$)=>{const P=c!=null&&c.idGenerator?c.idGenerator(S):nanoid(),O=new AbortController;let C;function R(N){C=N,O.abort()}const M=function(){return Pt(this,null,function*(){var A,I;let N;try{let D=(A=c==null?void 0:c.condition)==null?void 0:A.call(c,S,{getState:E,extra:$});if(isThenable(D)&&(D=yield D),D===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const U=new Promise((B,H)=>O.signal.addEventListener("abort",()=>H({name:"AbortError",message:C||"Aborted"})));b(f(P,S,(I=c==null?void 0:c.getPendingMeta)==null?void 0:I.call(c,{requestId:P,arg:S},{getState:E,extra:$}))),N=yield Promise.race([U,Promise.resolve(s(S,{dispatch:b,getState:E,extra:$,requestId:P,signal:O.signal,abort:R,rejectWithValue:(B,H)=>new RejectWithValue(B,H),fulfillWithValue:(B,H)=>new FulfillWithMeta(B,H)})).then(B=>{if(B instanceof RejectWithValue)throw B;return B instanceof FulfillWithMeta?d(B.payload,P,S,B.meta):d(B,P,S)})])}catch(D){N=D instanceof RejectWithValue?g(null,P,S,D.payload,D.meta):g(D,P,S)}return c&&!c.dispatchConditionRejection&&g.match(N)&&N.meta.condition||b(N),N})}();return Object.assign(M,{abort:R,requestId:P,arg:S,unwrap(){return M.then(unwrapResult)}})}}return Object.assign(y,{pending:f,rejected:g,fulfilled:d,settled:isAnyOf(g,d),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(d){const{name:f,reducerPath:g=f}=d;if(!f)throw new Error(formatProdErrorMessage$1(11));const y=(typeof d.reducers=="function"?d.reducers(buildReducerCreators()):d.reducers)||{},S=Object.keys(y),b={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},E={addCase(M,N){const L=typeof M=="string"?M:M.type;if(!L)throw new Error(formatProdErrorMessage$1(12));if(L in b.sliceCaseReducersByType)throw new Error(formatProdErrorMessage$1(13));return b.sliceCaseReducersByType[L]=N,E},addMatcher(M,N){return b.sliceMatchers.push({matcher:M,reducer:N}),E},exposeAction(M,N){return b.actionCreators[M]=N,E},exposeCaseReducer(M,N){return b.sliceCaseReducersByName[M]=N,E}};S.forEach(M=>{const N=y[M],L={reducerName:M,type:getType(f,M),createNotation:typeof d.reducers=="function"};isAsyncThunkSliceReducerDefinition(N)?handleThunkCaseReducerDefinition(L,N,E,a):handleNormalReducerDefinition(L,N,E)});function $(){const[M={},N=[],L=void 0]=typeof d.extraReducers=="function"?executeReducerBuilderCallback(d.extraReducers):[d.extraReducers],A=le(le({},M),b.sliceCaseReducersByType);return createReducer(d.initialState,I=>{for(let D in A)I.addCase(D,A[D]);for(let D of b.sliceMatchers)I.addMatcher(D.matcher,D.reducer);for(let D of N)I.addMatcher(D.matcher,D.reducer);L&&I.addDefaultCase(L)})}const P=M=>M,O=new WeakMap;let C;const R={name:f,reducerPath:g,reducer(M,N){return C||(C=$()),C(M,N)},actions:b.actionCreators,caseReducers:b.sliceCaseReducersByName,getInitialState(){return C||(C=$()),C.getInitialState()},getSelectors(M=P){const N=emplace(O,this,{insert:()=>new WeakMap});return emplace(N,M,{insert:()=>{var A;const L={};for(const[I,D]of Object.entries((A=d.selectors)!=null?A:{}))L[I]=wrapSelector(this,D,M,this!==R);return L}})},selectSlice(M){let N=M[this.reducerPath];return typeof N=="undefined"&&this!==R&&(N=this.getInitialState()),N},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(M,A={}){var I=A,{reducerPath:N}=I,L=ur(I,["reducerPath"]);const D=N!=null?N:this.reducerPath;return M.inject({reducerPath:D,reducer:this.reducer},L),Pe(le({},this),{reducerPath:D})}};return R}}function wrapSelector(o,a,s,c){function d(f,...g){let y=s.call(o,f);return typeof y=="undefined"&&c&&(y=o.getInitialState()),a(y,...g)}return d.unwrapped=a,d}var createSlice=buildCreateSlice();function buildReducerCreators(){function o(a,s){return le({_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,d){let f,g;if("reducer"in c){if(s&&!isCaseReducerWithPrepareDefinition(c))throw new Error(formatProdErrorMessage$1(17));f=c.reducer,g=c.prepare}else f=c;d.addCase(o,f).exposeCaseReducer(a,f).exposeAction(a,g?createAction(o,g):createAction(o))}function isAsyncThunkSliceReducerDefinition(o){return o._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(o){return o._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:o,reducerName:a},s,c,d){if(!d)throw new Error(formatProdErrorMessage$1(18));const{payloadCreator:f,fulfilled:g,pending:y,rejected:S,settled:b,options:E}=s,$=d(o,f,E);c.exposeAction(a,$),g&&c.addCase($.fulfilled,g),y&&c.addCase($.pending,y),S&&c.addCase($.rejected,S),b&&c.addMatcher($.settled,b),c.exposeCaseReducer(a,{fulfilled:g||noop$1,pending:y||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(d){return Object.getOwnPropertyDescriptor(o,d).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),d,f;for(f=0;f=0)&&(s[d]=o[d]);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,d=o.getStoredState||getStoredState,f=o.timeout!==void 0?o.timeout:DEFAULT_TIMEOUT,g=null,y=!1,S=!0,b=function($){return $._persist.rehydrated&&g&&!S&&g.update($),$};return function(E,$){var P=E||{},O=P._persist,C=_objectWithoutProperties(P,["_persist"]),R=C;if($.type===PERSIST){var M=!1,N=function(H,X){M||($.rehydrate(o.key,H,X),M=!0)};if(f&&setTimeout(function(){!M&&N(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(o.key,'"')))},f),S=!1,g||(g=createPersistoid(o)),O)return _objectSpread$1({},a(R,$),{_persist:O});if(typeof $.rehydrate!="function"||typeof $.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 $.register(o.key),d(o).then(function(B){var H=o.migrate||function(X,V){return Promise.resolve(X)};H(B,s).then(function(X){N(X)},function(X){N(void 0,X)})},function(B){N(void 0,B)}),_objectSpread$1({},a(R,$),{_persist:{version:s,rehydrated:!1}})}else{if($.type===PURGE)return y=!0,$.result(purgeStoredState(o)),_objectSpread$1({},a(R,$),{_persist:O});if($.type===FLUSH)return $.result(g&&g.flush()),_objectSpread$1({},a(R,$),{_persist:O});if($.type===PAUSE)S=!0;else if($.type===REHYDRATE){if(y)return _objectSpread$1({},R,{_persist:_objectSpread$1({},O,{rehydrated:!0})});if($.key===o.key){var L=a(R,$),A=$.payload,I=c!==!1&&A!==void 0?c(A,E,L,o):L,D=_objectSpread$1({},I,{_persist:_objectSpread$1({},O,{rehydrated:!0})});return b(D)}}}if(!O)return a(E,$);var U=a(R,$);return U===R?E:b(_objectSpread$1({},U,{_persist:O}))}}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 d=o,f=a,g=[],y=g,S=!1;function b(){y===g&&(y=g.slice())}function E(){if(S)throw new Error(formatProdErrorMessage(3));return f}function $(R){if(typeof R!="function")throw new Error(formatProdErrorMessage(4));if(S)throw new Error(formatProdErrorMessage(5));var M=!0;return b(),y.push(R),function(){if(M){if(S)throw new Error(formatProdErrorMessage(6));M=!1,b();var L=y.indexOf(R);y.splice(L,1),g=null}}}function P(R){if(!isPlainObject(R))throw new Error(formatProdErrorMessage(7));if(typeof R.type=="undefined")throw new Error(formatProdErrorMessage(8));if(S)throw new Error(formatProdErrorMessage(9));try{S=!0,f=d(f,R)}finally{S=!1}for(var M=g=y,N=0;N0&&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),d=_toConsumableArray(a.registry);return d.splice(c,1),_objectSpread({},a,{registry:d,bootstrapped:d.length===0});default:return a}};function persistStore(o,a,s){var c=s||!1,d=createStore(persistorReducer,initialState$2,a&&a.enhancer?a.enhancer:void 0),f=function(b){d.dispatch({type:REGISTER,key:b})},g=function(b,E,$){var P={type:REHYDRATE,payload:E,err:$,key:b};o.dispatch(P),d.dispatch(P),c&&y.getState().bootstrapped&&(c(),c=!1)},y=_objectSpread({},d,{purge:function(){var b=[];return o.dispatch({type:PURGE,result:function($){b.push($)}}),Promise.all(b)},flush:function(){var b=[];return o.dispatch({type:FLUSH,result:function($){b.push($)}}),Promise.all(b)},pause:function(){o.dispatch({type:PAUSE})},persist:function(){o.dispatch({type:PERSIST,register:f,rehydrate:g})}});return a&&a.manualPersist||y.persist(),y}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(d,f){d(a.getItem(c))})},setItem:function(c,d){return new Promise(function(f,g){f(a.setItem(c,d))})},removeItem:function(c){return new Promise(function(d,f){d(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]=le(le({},o.visitedTags[s]),a.payload)},updateVisitedTags:(o,a)=>{o.visitedTags=a.payload},closeTagsByType:(o,a)=>{let s=[];const{type:c,path:d}=a.payload,{visitedTags:f}=o,g=f.findIndex(S=>S.fullPath===d),y=f.filter(S=>{var b;return(b=S==null?void 0:S.meta)==null?void 0:b.affix});switch(c){case"left":s=f.slice(g);break;case"right":s=f.slice(0,g+1);break;case"other":s=f.filter(S=>S.fullPath===d);break}o.visitedTags=y.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,d=c.findIndex(g=>g.fullPath===o),f=c.filter(g=>g.fullPath!==o);return s(updateVisitedTags(f)),Promise.resolve({tagIndex:d,tagsList:f})}),closeAllTags=createAppAsyncThunk("tags/closeAllTags",(o,{getState:a,dispatch:s})=>{const{visitedTags:c}=a().tags,d=c.filter(f=>{var g;return(g=f==null?void 0:f.meta)==null?void 0:g.affix});return s(updateVisitedTags(d)),Promise.resolve(d)}),{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$6=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:d})=>{const{styles:f}=useStyles$6({active:s});return jsxRuntimeExports.jsxs(Tag$1,{className:classNames(f["compo_tag-item"],{[f.active]:s}),closable:!a,onClose:c,onClick:d,children:[jsxRuntimeExports.jsx("span",{className:`${f["compo_tag-item"]}__dot`}),jsxRuntimeExports.jsx("span",{className:`${f["compo_tag-item"]}__name`,children:o})]})},useStyles$5=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$5(),s=[{key:"left",label:o("关闭左侧")},{key:"right",label:o("关闭右侧")},{key:"other",label:o("关闭其它")},{key:"all",label:o("关闭所有")}],c=({key:U})=>{U==="all"?$(closeAllTags()).then(({payload:B})=>{const H=B.slice(-1)[0];P!==(H==null?void 0:H.fullPath)&&b(H==null?void 0:H.fullPath)}):$(closeTagsByType({type:U,path:P}))},d=reactExports.useRef(null),f=reactExports.useRef(null),[g,y]=reactExports.useState(0),{pathname:S}=useLocation(),b=useNavigate(),E=useAppSelector(U=>U.tags.visitedTags),$=useAppDispatch(),[P,O]=reactExports.useState(S);reactExports.useEffect(()=>{C(routeList).forEach(B=>{$(addVisitedTags(B))})},[]),reactExports.useEffect(()=>{const U=searchRoute(S,routeList);U&&$(addVisitedTags(U)),O(S)},[S]),reactExports.useEffect(()=>{var H;const U=(H=f.current)==null?void 0:H.childNodes,B=Array.from(U).find(X=>X.dataset.path===P);R(B)},[P]);const C=(U,B="/")=>{const H=[],X=V=>{var W;if((W=V.meta)!=null&&W.affix){const ae=V.path.startsWith("/")?V.path:B+V.path;H.push(Pe(le({},V),{path:ae}))}V.children&&V.children.length&&V.children.forEach(ae=>X(ae))};return U.forEach(V=>X(V)),H},R=U=>{var W,ae,ee,de,J,Y,Q,te,ce,oe,ne;let B=0;const H=4,X=(W=d.current)==null?void 0:W.offsetWidth;((ae=f.current)==null?void 0:ae.offsetWidth)-g&&((Y=U==null?void 0:U.offsetLeft)!=null?Y:0)+((Q=U==null?void 0:U.offsetWidth)!=null?Q:0)<-g+X?B=Math.min(0,X-((te=U==null?void 0:U.offsetWidth)!=null?te:0)-((ce=U==null?void 0:U.offsetLeft)!=null?ce:0)-H):B=-(((oe=U==null?void 0:U.offsetLeft)!=null?oe:0)-(X-H-((ne=U==null?void 0:U.offsetWidth)!=null?ne:0))),y(B)},M=U=>{var V,W;let B=0;const H=(V=d.current)==null?void 0:V.offsetWidth,X=(W=f.current)==null?void 0:W.offsetWidth;U>0?B=Math.min(0,g+U):H=-(X-H)&&(B=Math.max(g+U,H-X)):B=0,y(B)},N=U=>{const{type:B}=U;let H=0;B==="wheel"&&(H=U.deltaY?U.deltaY*2:-(U.detail||0)*2),M(H)},L=U=>{$(closeTagByKey(U)).then(({payload:B})=>{let H={};const{tagIndex:X,tagsList:V}=B,W=V.length;U===P&&(X<=W-1?H=V[X]:H=V[W-1],b(H==null?void 0:H.fullPath))})},A=U=>{O(U),b(U)};function I(){return new Date().getTime().toString()}const D=()=>{E.findIndex(B=>B.fullPath===P)>=0&&b(P,{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:()=>M(200)}),jsxRuntimeExports.jsx("div",{ref:d,className:`${a.layout_tags}__main`,onWheel:N,children:jsxRuntimeExports.jsx("div",{ref:f,className:`${a.layout_tags}__main-body`,style:{left:`${g}px`},children:E.map(U=>{var B,H;return jsxRuntimeExports.jsx("span",{"data-path":U.fullPath,children:jsxRuntimeExports.jsx(TagItem,{name:o((B=U.meta)==null?void 0:B.title),active:P===U.fullPath,fixed:(H=U.meta)==null?void 0:H.affix,onClick:()=>A(U.fullPath),closeTag:()=>L(U.fullPath)},U.key)},U.fullPath)})})}),jsxRuntimeExports.jsx(Button,{className:`${a.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(RightOutlined,{}),size:"small",onClick:()=>M(-200)}),jsxRuntimeExports.jsx(Button,{className:classNames(`${a.layout_tags}__btn`,`${a.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(RedoOutlined,{}),size:"small",onClick:()=>D()}),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,d]=reactExports.useState([]),{pathname:f}=useLocation(),g=useAppSelector(y=>y.menu.menuList);return reactExports.useEffect(()=>{const S=(matchRoutes(g,f)||[]).map(b=>{const{name:E,icon:$=""}=b==null?void 0:b.route;return{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[$&&jsxRuntimeExports.jsx(SvgIcon,{name:$,style:{marginRight:8}}),jsxRuntimeExports.jsx("span",{children:a(E)})]})}});d(S)},[f,s.language]),jsxRuntimeExports.jsx("div",{className:"flex-center-v",style:{padding:"0 16px"},children:jsxRuntimeExports.jsx(Breadcrumb,{items:c})})}const useStyles$4=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$4(),s=useSettings(),{setSettings:c}=useSettingActions();function d(){c(Pe(le({},s),{unfold:!s.unfold}))}return jsxRuntimeExports.jsx("span",{className:a(o["compo_fold-trigger"],{[o.unfold]:!s.unfold}),onClick:d,children:jsxRuntimeExports.jsx(SvgIcon,{name:"unfold",size:20})})}const useStyles$3=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$3(),{hasCrumbs:c,hasTabs:d}=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,{})]}),d?jsxRuntimeExports.jsx(LayoutTags,{}):null]})},useStyles$2=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}}})),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,d)=>({label:o,key:a,icon:s,children:c,type:d}),LayoutMenu=o=>{const{pathname:a}=useLocation(),{setMenuList:s}=o,[c,d]=reactExports.useState(!1),[f,g]=reactExports.useState([]),[y,S]=reactExports.useState([]),[b,E]=reactExports.useState([a]),{t:$,i18n:P}=useTranslation();reactExports.useEffect(()=>{E([a]),S(getOpenKeys(a))},[a]);const O=(A,I)=>A?jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(SvgIcon,{name:A,size:I||16})}):null,C=(A,I=[])=>(A.forEach(D=>{var U;if(!((U=D==null?void 0:D.children)!=null&&U.length))return I.push(getItem($(D.name),D.path,O(D.icon,D.iconSize)));I.push(getItem($(D.name),D.path,O(D.icon,D.iconSize),C(D.children)))}),I),R=()=>Pt(void 0,null,function*(){d(!0);try{const A=yield getAsyncMenus();g(C(A)),s(A)}finally{d(!1)}});reactExports.useEffect(()=>{R()},[P.language]);const M=A=>{if(A.length===0||A.length===1)return S(A);const I=A[A.length-1];if(I.includes(A[0]))return S(A);S([I])},N=useNavigate(),L=({key:A})=>{N(A)};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:y,selectedKeys:b,items:f,onClick:L,onOpenChange:M})})})},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:d,Content:f}=Layout,{styles:g}=useStyles$2();return jsxRuntimeExports.jsxs(Layout,{className:g.layout_wrapper,children:[jsxRuntimeExports.jsxs(d,{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(f,{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-9fc51b2c.js"),["assets/image-upload-9fc51b2c.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/websiteSetting-b4442365.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-8740ceac.js"),["assets/drag-list-8740ceac.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/websiteSetting-b4442365.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"列表拖拽",key:"dragList"}},{path:"drag-resize",name:"DragResize",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-resize-3459b43a.js"),["assets/drag-resize-3459b43a.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/websiteSetting-b4442365.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"组件拖拽",key:"dragResize"}}]},{path:"transfer",name:"Transfer",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-3063cbff.js"),["assets/index-3063cbff.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/websiteSetting-b4442365.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"穿梭框"}},{path:"count-up",name:"CountUp",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../count-up-3c53269c.js"),["assets/count-up-3c53269c.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/index-646dffa4.js","assets/websiteSetting-b4442365.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-01e14877.js"),["assets/index-01e14877.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/websiteSetting-b4442365.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"基础表单",key:"basicForm"}},{path:"search-form",name:"SearchForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-bc212276.js"),["assets/index-bc212276.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/index-53feb174.js","assets/websiteSetting-b4442365.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-e7f5b9e4.js"),["assets/index-e7f5b9e4.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/index-d42bac6c.js","assets/Translatex-9e5f69d4.js","assets/index-646dffa4.js","assets/index-53feb174.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={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-c07fa9a2.js"),["assets/index-c07fa9a2.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/Translatex-9e5f69d4.js","assets/index-d42bac6c.js"]))),meta:{title:"个人中心",key:"profile"}},{path:"user-list",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-f9522b80.js"),["assets/index-f9522b80.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/index-d42bac6c.js","assets/Translatex-9e5f69d4.js"]))),meta:{title:"用户列表",key:"userList"}},{path:"add-user",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-2cd7f3f1.js"),["assets/index-2cd7f3f1.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/Translatex-9e5f69d4.js"]))),meta:{title:"添加用户",key:"addUser"}}]},__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:UserRoute},Symbol.toStringTag,{value:"Module"})),subTitleMap=new Map([[403,t("对不起,您没有权限访问此页面。")],[404,t("对不起,您访问的页面不存在。")],[500,t("对不起,服务器发生错误。")]]),PageException=()=>{const o=useNavigate(),{status:a,withCard:s}=useLoaderData(),c=()=>{o("/home")},d=({children:f})=>s?jsxRuntimeExports.jsx(Card,{bordered:!1,children:f}):jsxRuntimeExports.jsx("div",{className:"flex-center",style:{height:"100vh"},children:f});return jsxRuntimeExports.jsx(d,{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),d=useSignIn(),f=useNavigate(),[g]=useSearchParams(),{styles:y}=useStyles$1(),S=b=>Pt(void 0,null,function*(){c(!0);try{(yield d({username:b.username,password:b.password}))&&f(g.get("redirect")||"/")}catch(E){message.error(E.message)}finally{c(!1)}});return jsxRuntimeExports.jsxs("div",{className:y["login-container"],children:[jsxRuntimeExports.jsxs("div",{className:y["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:y["login-img"]})]}),jsxRuntimeExports.jsxs("div",{className:y["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/user.tsx":__vite_glob_0_4}),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(f[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+g,"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,E,$){return utils$1.isPlainObject(b)&&utils$1.isPlainObject(E)?utils$1.merge.call({caseless:$},b,E):utils$1.isPlainObject(E)?utils$1.merge({},E):utils$1.isArray(E)?E.slice():E}function d(b,E,$){if(utils$1.isUndefined(E)){if(!utils$1.isUndefined(b))return c(void 0,b,$)}else return c(b,E,$)}function f(b,E){if(!utils$1.isUndefined(E))return c(void 0,E)}function g(b,E){if(utils$1.isUndefined(E)){if(!utils$1.isUndefined(b))return c(void 0,b)}else return c(void 0,E)}function y(b,E,$){if($ in a)return c(b,E);if($ in o)return c(void 0,b)}const S={url:f,method:f,data:f,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:y,headers:(b,E)=>d(headersToObject(b),headersToObject(E),!0)};return utils$1.forEach(Object.keys(Object.assign({},o,a)),function(E){const $=S[E]||d,P=$(o[E],a[E],E);utils$1.isUndefined(P)&&$!==y||(s[E]=P)}),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 d(f,g){return"[Axios v"+VERSION+"] Transitional option '"+f+"'"+g+(c?". "+c:"")}return(f,g,y)=>{if(a===!1)throw new AxiosError(d(g," has been removed"+(s?" in "+s:"")),AxiosError.ERR_DEPRECATED);return s&&!deprecatedWarnings[g]&&(deprecatedWarnings[g]=!0),a?a(f,g,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 d=c.length;for(;d-- >0;){const f=c[d],g=a[f];if(g){const y=o[f],S=y===void 0||g(y,f,o);if(S!==!0)throw new AxiosError("option "+f+" must be "+S,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new AxiosError("Unknown option "+f,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:d,headers:f}=s;c!==void 0&&validator.assertOptions(c,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),d!=null&&(utils$1.isFunction(d)?s.paramsSerializer={serialize:d}:validator.assertOptions(d,{encode:validators.function,serialize:validators.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let g=f&&utils$1.merge(f.common,f[s.method]);f&&utils$1.forEach(["delete","get","head","post","put","patch","common"],C=>{delete f[C]}),s.headers=AxiosHeaders$1.concat(g,f);const y=[];let S=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(s)===!1||(S=S&&R.synchronous,y.unshift(R.fulfilled,R.rejected))});const b=[];this.interceptors.response.forEach(function(R){b.push(R.fulfilled,R.rejected)});let E,$=0,P;if(!S){const C=[dispatchRequest.bind(this),void 0];for(C.unshift.apply(C,y),C.push.apply(C,b),P=C.length,E=Promise.resolve(s);${if(!c._listeners)return;let f=c._listeners.length;for(;f-- >0;)c._listeners[f](d);c._listeners=null}),this.promise.then=d=>{let f;const g=new Promise(y=>{c.subscribe(y),f=y}).then(d);return g.cancel=function(){c.unsubscribe(f)},g},a(function(f,g,y){c.reason||(c.reason=new CanceledError(f,g,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(d){a=d}),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(d){return createInstance(mergeConfig(o,d))},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,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:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(o,a){(function(s,c){o.exports=c()})(commonjsGlobal,function(){var s=s||function(c,d){var f;if(typeof window!="undefined"&&window.crypto&&(f=window.crypto),typeof self!="undefined"&&self.crypto&&(f=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(f=globalThis.crypto),!f&&typeof window!="undefined"&&window.msCrypto&&(f=window.msCrypto),!f&&typeof commonjsGlobal!="undefined"&&commonjsGlobal.crypto&&(f=commonjsGlobal.crypto),!f&&typeof commonjsRequire=="function")try{f=require$$0}catch(L){}var g=function(){if(f){if(typeof f.getRandomValues=="function")try{return f.getRandomValues(new Uint32Array(1))[0]}catch(L){}if(typeof f.randomBytes=="function")try{return f.randomBytes(4).readInt32LE()}catch(L){}}throw new Error("Native crypto module could not be used to get secure random number.")},y=Object.create||function(){function L(){}return function(A){var I;return L.prototype=A,I=new L,L.prototype=null,I}}(),S={},b=S.lib={},E=b.Base=function(){return{extend:function(L){var A=y(this);return L&&A.mixIn(L),(!A.hasOwnProperty("init")||this.init===A.init)&&(A.init=function(){A.$super.init.apply(this,arguments)}),A.init.prototype=A,A.$super=this,A},create:function(){var L=this.extend();return L.init.apply(L,arguments),L},init:function(){},mixIn:function(L){for(var A in L)L.hasOwnProperty(A)&&(this[A]=L[A]);L.hasOwnProperty("toString")&&(this.toString=L.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),$=b.WordArray=E.extend({init:function(L,A){L=this.words=L||[],A!=d?this.sigBytes=A:this.sigBytes=L.length*4},toString:function(L){return(L||O).stringify(this)},concat:function(L){var A=this.words,I=L.words,D=this.sigBytes,U=L.sigBytes;if(this.clamp(),D%4)for(var B=0;B>>2]>>>24-B%4*8&255;A[D+B>>>2]|=H<<24-(D+B)%4*8}else for(var X=0;X>>2]=I[X>>>2];return this.sigBytes+=U,this},clamp:function(){var L=this.words,A=this.sigBytes;L[A>>>2]&=4294967295<<32-A%4*8,L.length=c.ceil(A/4)},clone:function(){var L=E.clone.call(this);return L.words=this.words.slice(0),L},random:function(L){for(var A=[],I=0;I>>2]>>>24-U%4*8&255;D.push((B>>>4).toString(16)),D.push((B&15).toString(16))}return D.join("")},parse:function(L){for(var A=L.length,I=[],D=0;D>>3]|=parseInt(L.substr(D,2),16)<<24-D%8*4;return new $.init(I,A/2)}},C=P.Latin1={stringify:function(L){for(var A=L.words,I=L.sigBytes,D=[],U=0;U>>2]>>>24-U%4*8&255;D.push(String.fromCharCode(B))}return D.join("")},parse:function(L){for(var A=L.length,I=[],D=0;D>>2]|=(L.charCodeAt(D)&255)<<24-D%4*8;return new $.init(I,A)}},R=P.Utf8={stringify:function(L){try{return decodeURIComponent(escape(C.stringify(L)))}catch(A){throw new Error("Malformed UTF-8 data")}},parse:function(L){return C.parse(unescape(encodeURIComponent(L)))}},M=b.BufferedBlockAlgorithm=E.extend({reset:function(){this._data=new $.init,this._nDataBytes=0},_append:function(L){typeof L=="string"&&(L=R.parse(L)),this._data.concat(L),this._nDataBytes+=L.sigBytes},_process:function(L){var A,I=this._data,D=I.words,U=I.sigBytes,B=this.blockSize,H=B*4,X=U/H;L?X=c.ceil(X):X=c.max((X|0)-this._minBufferSize,0);var V=X*B,W=c.min(V*4,U);if(V){for(var ae=0;ae>>2]>>>24-O%4*8&255,R=b[O+1>>>2]>>>24-(O+1)%4*8&255,M=b[O+2>>>2]>>>24-(O+2)%4*8&255,N=C<<16|R<<8|M,L=0;L<4&&O+L*.75>>6*(3-L)&63));var A=$.charAt(64);if(A)for(;P.length%4;)P.push(A);return P.join("")},parse:function(S){var b=S.length,E=this._map,$=this._reverseMap;if(!$){$=this._reverseMap=[];for(var P=0;P>>6-O%4*2,M=C|R;$[P>>>2]|=M<<24-P%4*8,P++}return f.create($,P)}}(),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 d=s,f=d.lib,g=f.WordArray,y=f.Hasher,S=d.algo,b=[];(function(){for(var R=0;R<64;R++)b[R]=c.abs(c.sin(R+1))*4294967296|0})();var E=S.MD5=y.extend({_doReset:function(){this._hash=new g.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(R,M){for(var N=0;N<16;N++){var L=M+N,A=R[L];R[L]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var I=this._hash.words,D=R[M+0],U=R[M+1],B=R[M+2],H=R[M+3],X=R[M+4],V=R[M+5],W=R[M+6],ae=R[M+7],ee=R[M+8],de=R[M+9],J=R[M+10],Y=R[M+11],Q=R[M+12],te=R[M+13],ce=R[M+14],oe=R[M+15],ne=I[0],ue=I[1],pe=I[2],he=I[3];ne=$(ne,ue,pe,he,D,7,b[0]),he=$(he,ne,ue,pe,U,12,b[1]),pe=$(pe,he,ne,ue,B,17,b[2]),ue=$(ue,pe,he,ne,H,22,b[3]),ne=$(ne,ue,pe,he,X,7,b[4]),he=$(he,ne,ue,pe,V,12,b[5]),pe=$(pe,he,ne,ue,W,17,b[6]),ue=$(ue,pe,he,ne,ae,22,b[7]),ne=$(ne,ue,pe,he,ee,7,b[8]),he=$(he,ne,ue,pe,de,12,b[9]),pe=$(pe,he,ne,ue,J,17,b[10]),ue=$(ue,pe,he,ne,Y,22,b[11]),ne=$(ne,ue,pe,he,Q,7,b[12]),he=$(he,ne,ue,pe,te,12,b[13]),pe=$(pe,he,ne,ue,ce,17,b[14]),ue=$(ue,pe,he,ne,oe,22,b[15]),ne=P(ne,ue,pe,he,U,5,b[16]),he=P(he,ne,ue,pe,W,9,b[17]),pe=P(pe,he,ne,ue,Y,14,b[18]),ue=P(ue,pe,he,ne,D,20,b[19]),ne=P(ne,ue,pe,he,V,5,b[20]),he=P(he,ne,ue,pe,J,9,b[21]),pe=P(pe,he,ne,ue,oe,14,b[22]),ue=P(ue,pe,he,ne,X,20,b[23]),ne=P(ne,ue,pe,he,de,5,b[24]),he=P(he,ne,ue,pe,ce,9,b[25]),pe=P(pe,he,ne,ue,H,14,b[26]),ue=P(ue,pe,he,ne,ee,20,b[27]),ne=P(ne,ue,pe,he,te,5,b[28]),he=P(he,ne,ue,pe,B,9,b[29]),pe=P(pe,he,ne,ue,ae,14,b[30]),ue=P(ue,pe,he,ne,Q,20,b[31]),ne=O(ne,ue,pe,he,V,4,b[32]),he=O(he,ne,ue,pe,ee,11,b[33]),pe=O(pe,he,ne,ue,Y,16,b[34]),ue=O(ue,pe,he,ne,ce,23,b[35]),ne=O(ne,ue,pe,he,U,4,b[36]),he=O(he,ne,ue,pe,X,11,b[37]),pe=O(pe,he,ne,ue,ae,16,b[38]),ue=O(ue,pe,he,ne,J,23,b[39]),ne=O(ne,ue,pe,he,te,4,b[40]),he=O(he,ne,ue,pe,D,11,b[41]),pe=O(pe,he,ne,ue,H,16,b[42]),ue=O(ue,pe,he,ne,W,23,b[43]),ne=O(ne,ue,pe,he,de,4,b[44]),he=O(he,ne,ue,pe,Q,11,b[45]),pe=O(pe,he,ne,ue,oe,16,b[46]),ue=O(ue,pe,he,ne,B,23,b[47]),ne=C(ne,ue,pe,he,D,6,b[48]),he=C(he,ne,ue,pe,ae,10,b[49]),pe=C(pe,he,ne,ue,ce,15,b[50]),ue=C(ue,pe,he,ne,V,21,b[51]),ne=C(ne,ue,pe,he,Q,6,b[52]),he=C(he,ne,ue,pe,H,10,b[53]),pe=C(pe,he,ne,ue,J,15,b[54]),ue=C(ue,pe,he,ne,U,21,b[55]),ne=C(ne,ue,pe,he,ee,6,b[56]),he=C(he,ne,ue,pe,oe,10,b[57]),pe=C(pe,he,ne,ue,W,15,b[58]),ue=C(ue,pe,he,ne,te,21,b[59]),ne=C(ne,ue,pe,he,X,6,b[60]),he=C(he,ne,ue,pe,Y,10,b[61]),pe=C(pe,he,ne,ue,B,15,b[62]),ue=C(ue,pe,he,ne,de,21,b[63]),I[0]=I[0]+ne|0,I[1]=I[1]+ue|0,I[2]=I[2]+pe|0,I[3]=I[3]+he|0},_doFinalize:function(){var R=this._data,M=R.words,N=this._nDataBytes*8,L=R.sigBytes*8;M[L>>>5]|=128<<24-L%32;var A=c.floor(N/4294967296),I=N;M[(L+64>>>9<<4)+15]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,M[(L+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,R.sigBytes=(M.length+1)*4,this._process();for(var D=this._hash,U=D.words,B=0;B<4;B++){var H=U[B];U[B]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return D},clone:function(){var R=y.clone.call(this);return R._hash=this._hash.clone(),R}});function $(R,M,N,L,A,I,D){var U=R+(M&N|~M&L)+A+D;return(U<>>32-I)+M}function P(R,M,N,L,A,I,D){var U=R+(M&L|N&~L)+A+D;return(U<>>32-I)+M}function O(R,M,N,L,A,I,D){var U=R+(M^N^L)+A+D;return(U<>>32-I)+M}function C(R,M,N,L,A,I,D){var U=R+(N^(M|~L))+A+D;return(U<>>32-I)+M}d.MD5=y._createHelper(E),d.HmacMD5=y._createHmacHelper(E)}(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,d=c.lib,f=d.WordArray,g=d.Hasher,y=c.algo,S=[],b=y.SHA1=g.extend({_doReset:function(){this._hash=new f.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(E,$){for(var P=this._hash.words,O=P[0],C=P[1],R=P[2],M=P[3],N=P[4],L=0;L<80;L++){if(L<16)S[L]=E[$+L]|0;else{var A=S[L-3]^S[L-8]^S[L-14]^S[L-16];S[L]=A<<1|A>>>31}var I=(O<<5|O>>>27)+N+S[L];L<20?I+=(C&R|~C&M)+1518500249:L<40?I+=(C^R^M)+1859775393:L<60?I+=(C&R|C&M|R&M)-1894007588:I+=(C^R^M)-899497514,N=M,M=R,R=C<<30|C>>>2,C=O,O=I}P[0]=P[0]+O|0,P[1]=P[1]+C|0,P[2]=P[2]+R|0,P[3]=P[3]+M|0,P[4]=P[4]+N|0},_doFinalize:function(){var E=this._data,$=E.words,P=this._nDataBytes*8,O=E.sigBytes*8;return $[O>>>5]|=128<<24-O%32,$[(O+64>>>9<<4)+14]=Math.floor(P/4294967296),$[(O+64>>>9<<4)+15]=P,E.sigBytes=$.length*4,this._process(),this._hash},clone:function(){var E=g.clone.call(this);return E._hash=this._hash.clone(),E}});c.SHA1=g._createHelper(b),c.HmacSHA1=g._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,d=c.lib,f=d.Base,g=c.enc,y=g.Utf8,S=c.algo;S.HMAC=f.extend({init:function(b,E){b=this._hasher=new b.init,typeof E=="string"&&(E=y.parse(E));var $=b.blockSize,P=$*4;E.sigBytes>P&&(E=b.finalize(E)),E.clamp();for(var O=this._oKey=E.clone(),C=this._iKey=E.clone(),R=O.words,M=C.words,N=0;N<$;N++)R[N]^=1549556828,M[N]^=909522486;O.sigBytes=C.sigBytes=P,this.reset()},reset:function(){var b=this._hasher;b.reset(),b.update(this._iKey)},update:function(b){return this._hasher.update(b),this},finalize:function(b){var E=this._hasher,$=E.finalize(b);E.reset();var P=E.finalize(this._oKey.clone().concat($));return P}})})()})}(hmac)),hmac.exports}var hasRequiredEvpkdf;function requireEvpkdf(){return hasRequiredEvpkdf||(hasRequiredEvpkdf=1,function(o,a){(function(s,c,d){o.exports=c(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(s){return function(){var c=s,d=c.lib,f=d.Base,g=d.WordArray,y=c.algo,S=y.MD5,b=y.EvpKDF=f.extend({cfg:f.extend({keySize:128/32,hasher:S,iterations:1}),init:function(E){this.cfg=this.cfg.extend(E)},compute:function(E,$){for(var P,O=this.cfg,C=O.hasher.create(),R=g.create(),M=R.words,N=O.keySize,L=O.iterations;M.length>>2]&255;V.sigBytes-=W}};f.BlockCipher=O.extend({cfg:O.cfg.extend({mode:M,padding:L}),reset:function(){var V;O.reset.call(this);var W=this.cfg,ae=W.iv,ee=W.mode;this._xformMode==this._ENC_XFORM_MODE?V=ee.createEncryptor:(V=ee.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==V?this._mode.init(this,ae&&ae.words):(this._mode=V.call(ee,this,ae&&ae.words),this._mode.__creator=V)},_doProcessBlock:function(V,W){this._mode.processBlock(V,W)},_doFinalize:function(){var V,W=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(W.pad(this._data,this.blockSize),V=this._process(!0)):(V=this._process(!0),W.unpad(V)),V},blockSize:128/32});var A=f.CipherParams=g.extend({init:function(V){this.mixIn(V)},toString:function(V){return(V||this.formatter).stringify(this)}}),I=d.format={},D=I.OpenSSL={stringify:function(V){var W,ae=V.ciphertext,ee=V.salt;return ee?W=y.create([1398893684,1701076831]).concat(ee).concat(ae):W=ae,W.toString(E)},parse:function(V){var W,ae=E.parse(V),ee=ae.words;return ee[0]==1398893684&&ee[1]==1701076831&&(W=y.create(ee.slice(2,4)),ee.splice(0,4),ae.sigBytes-=16),A.create({ciphertext:ae,salt:W})}},U=f.SerializableCipher=g.extend({cfg:g.extend({format:D}),encrypt:function(V,W,ae,ee){ee=this.cfg.extend(ee);var de=V.createEncryptor(ae,ee),J=de.finalize(W),Y=de.cfg;return A.create({ciphertext:J,key:ae,iv:Y.iv,algorithm:V,mode:Y.mode,padding:Y.padding,blockSize:V.blockSize,formatter:ee.format})},decrypt:function(V,W,ae,ee){ee=this.cfg.extend(ee),W=this._parse(W,ee.format);var de=V.createDecryptor(ae,ee).finalize(W.ciphertext);return de},_parse:function(V,W){return typeof V=="string"?W.parse(V,this):V}}),B=d.kdf={},H=B.OpenSSL={execute:function(V,W,ae,ee,de){if(ee||(ee=y.random(64/8)),de)var J=P.create({keySize:W+ae,hasher:de}).compute(V,ee);else var J=P.create({keySize:W+ae}).compute(V,ee);var Y=y.create(J.words.slice(W),ae*4);return J.sigBytes=W*4,A.create({key:J,iv:Y,salt:ee})}},X=f.PasswordBasedCipher=U.extend({cfg:U.cfg.extend({kdf:H}),encrypt:function(V,W,ae,ee){ee=this.cfg.extend(ee);var de=ee.kdf.execute(ae,V.keySize,V.ivSize,ee.salt,ee.hasher);ee.iv=de.iv;var J=U.encrypt.call(this,V,W,de.key,ee);return J.mixIn(de),J},decrypt:function(V,W,ae,ee){ee=this.cfg.extend(ee),W=this._parse(W,ee.format);var de=ee.kdf.execute(ae,V.keySize,V.ivSize,W.salt,ee.hasher);ee.iv=de.iv;var J=U.decrypt.call(this,V,W,de.key,ee);return J}})}()})}(cipherCore)),cipherCore.exports}(function(o,a){(function(s,c,d){o.exports=c(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(s){return function(){var c=s,d=c.lib,f=d.BlockCipher,g=c.algo,y=[],S=[],b=[],E=[],$=[],P=[],O=[],C=[],R=[],M=[];(function(){for(var A=[],I=0;I<256;I++)I<128?A[I]=I<<1:A[I]=I<<1^283;for(var D=0,U=0,I=0;I<256;I++){var B=U^U<<1^U<<2^U<<3^U<<4;B=B>>>8^B&255^99,y[D]=B,S[B]=D;var H=A[D],X=A[H],V=A[X],W=A[B]*257^B*16843008;b[D]=W<<24|W>>>8,E[D]=W<<16|W>>>16,$[D]=W<<8|W>>>24,P[D]=W;var W=V*16843009^X*65537^H*257^D*16843008;O[B]=W<<24|W>>>8,C[B]=W<<16|W>>>16,R[B]=W<<8|W>>>24,M[B]=W,D?(D=H^A[A[A[V^H]]],U^=A[A[U]]):D=U=1}})();var N=[0,1,2,4,8,16,32,64,128,27,54],L=g.AES=f.extend({_doReset:function(){var A;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var I=this._keyPriorReset=this._key,D=I.words,U=I.sigBytes/4,B=this._nRounds=U+6,H=(B+1)*4,X=this._keySchedule=[],V=0;V6&&V%U==4&&(A=y[A>>>24]<<24|y[A>>>16&255]<<16|y[A>>>8&255]<<8|y[A&255]):(A=A<<8|A>>>24,A=y[A>>>24]<<24|y[A>>>16&255]<<16|y[A>>>8&255]<<8|y[A&255],A^=N[V/U|0]<<24),X[V]=X[V-U]^A);for(var W=this._invKeySchedule=[],ae=0;ae>>24]]^C[y[A>>>16&255]]^R[y[A>>>8&255]]^M[y[A&255]]}}},encryptBlock:function(A,I){this._doCryptBlock(A,I,this._keySchedule,b,E,$,P,y)},decryptBlock:function(A,I){var D=A[I+1];A[I+1]=A[I+3],A[I+3]=D,this._doCryptBlock(A,I,this._invKeySchedule,O,C,R,M,S);var D=A[I+1];A[I+1]=A[I+3],A[I+3]=D},_doCryptBlock:function(A,I,D,U,B,H,X,V){for(var W=this._nRounds,ae=A[I]^D[0],ee=A[I+1]^D[1],de=A[I+2]^D[2],J=A[I+3]^D[3],Y=4,Q=1;Q>>24]^B[ee>>>16&255]^H[de>>>8&255]^X[J&255]^D[Y++],ce=U[ee>>>24]^B[de>>>16&255]^H[J>>>8&255]^X[ae&255]^D[Y++],oe=U[de>>>24]^B[J>>>16&255]^H[ae>>>8&255]^X[ee&255]^D[Y++],ne=U[J>>>24]^B[ae>>>16&255]^H[ee>>>8&255]^X[de&255]^D[Y++];ae=te,ee=ce,de=oe,J=ne}var te=(V[ae>>>24]<<24|V[ee>>>16&255]<<16|V[de>>>8&255]<<8|V[J&255])^D[Y++],ce=(V[ee>>>24]<<24|V[de>>>16&255]<<16|V[J>>>8&255]<<8|V[ae&255])^D[Y++],oe=(V[de>>>24]<<24|V[J>>>16&255]<<16|V[ae>>>8&255]<<8|V[ee&255])^D[Y++],ne=(V[J>>>24]<<24|V[ae>>>16&255]<<16|V[ee>>>8&255]<<8|V[de&255])^D[Y++];A[I]=te,A[I+1]=ce,A[I+2]=oe,A[I+3]=ne},keySize:256/32});c.AES=f._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,d){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(d,f){this._cipher.encryptBlock(d,f)}}),c.Decryptor=c.extend({processBlock:function(d,f){this._cipher.decryptBlock(d,f)}}),c}(),s.mode.ECB})})(modeEcb);var modeEcbExports=modeEcb.exports;const ECB=getDefaultExportFromCjs(modeEcbExports);var padPkcs7={exports:{}};(function(o,a){(function(s,c,d){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={}){br(this,"key");br(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:d=cacheCipher.iv,timeout:f=null}={})=>{if(s&&[c.length,d.length].some(S=>S!==16))throw new Error("When hasEncrypt is true, the key or iv must be 16 bits!");const g=new AesEncrypt({key:c,iv:d}),y=class{constructor(){br(this,"storage");br(this,"prefixKey");br(this,"encrypt");br(this,"hasEncrypt");this.storage=a,this.prefixKey=o,this.encrypt=g,this.hasEncrypt=s}getKey(b){return`${this.prefixKey}${b}`.toUpperCase()}set(b,E,$=f){const P=JSON.stringify({value:E,time:Date.now(),expire:isNullOrUnDef($)?null:new Date().getTime()+$*1e3}),O=this.hasEncrypt?this.encrypt.encryptByAES(P):P;this.storage.setItem(this.getKey(b),O)}get(b,E=null){const $=this.storage.getItem(this.getKey(b));if(!$)return E;try{const P=this.hasEncrypt?this.encrypt.decryptByAES($):$,O=JSON.parse(P),{value:C,expire:R}=O;if(isNullOrUnDef(R)||R>=new Date().getTime())return C;this.remove(b)}catch(P){return E}}remove(b){this.storage.removeItem(this.getKey(b))}clear(){this.storage.clear()}};return new y},createOptions=(o,a={})=>le({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,Pe(le({},o),{timeout:DEFAULT_CACHE_TIME})),createLocalStorage=(o={})=>createStorage(localStorage,Pe(le({},o),{timeout:DEFAULT_CACHE_TIME}));class Memory{constructor(a=0){br(this,"cache",{});br(this,"alive");this.alive=a*1e3}get getCache(){return this.cache}get(a){return this.cache[a]}set(a,s,c){let d=this.get(a);if((!c||c<=0)&&(c=this.alive),d?(d.timeoutId&&(clearTimeout(d.timeoutId),d.timeoutId=void 0),d.value=s):(d={value:s,alive:c},this.cache[a]=d),!c)return s;const f=new Date().getTime();return d.time=f+this.alive,d.timeoutId=setTimeout(()=>{this.remove(a)},c>f?c-f: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,d=a[c];if(d&&d.time){const f=new Date().getTime(),g=d.time;g>f&&this.set(c,d.value,g)}})}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 getToken(){return getAuthCache(TOKEN_KEY)}function getAuthCache(o){return(isLocal?Persistent.getLocal:Persistent.getSession)(o)}function clearAuthCache(o=!0){return(isLocal?Persistent.clearLocal:Persistent.clearSession)(o)}const service=axios$1.create({baseURL:"/api",timeout:10*1e3}),handleError=o=>{var a,s;return(((a=o.response)==null?void 0:a.status)===401||((s=o.response)==null?void 0:s.status)===504)&&(clearAuthCache(),location.href="/login"),message.error(o.message||"error"),Promise.reject(o)};service.interceptors.request.use(o=>{const a=getToken();return a&&(o.headers.Authorization=`${a}`),o.headers["Content-Type"]="application/json",o},handleError);service.interceptors.response.use(o=>{const{data:a}=o;return a.code===0?a.data:(message.error(a.message),Promise.reject("error"))},handleError);const loginApi=o=>service({url:"/login",method:"post",data:o});function logoutApi(){return service({url:"/logout",method:"get"})}function getJueJinList(o){return service({url:"article/queryList",method:"post",data:o})}function getUsersList(){return service({url:"user/getUserList",method:"get"})}const headerImg="/react-antd-admin-pnpm/assets/avatar-9ee092e3.jpeg",useUserStore=create(o=>({userInfo:getItem$1(StorageEnum.User)||{},userToken:getItem$1(StorageEnum.Token)||{},actions:{setUserInfo:a=>{o({userInfo:a}),setItem(StorageEnum.User,a)},setUserToken:a=>{o({userToken:a}),setItem(StorageEnum.Token,a)},clearUserInfoAndToken:()=>{o({userInfo:{},userToken:{}}),removeItem(StorageEnum.User),removeItem(StorageEnum.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:d}=useUserActions(),f=useMutation({mutationFn:loginApi}),g=y=>Pt(void 0,null,function*(){try{const b=yield f.mutateAsync(y),S=b,{token:E}=S,$=ur(S,["token"]);return c({token:E}),d($),a.success({message:o("登录成功"),description:`欢迎回来: ${y.username}`,duration:3}),yield Promise.resolve(b)}catch(b){return s.error({content:b.message,duration:3}),Promise.reject(b)}});return reactExports.useCallback(g,[])};function UserDropdown(){const{createConfirm:o,contextHolder:a,createMessage:s}=useMessage(),{clearUserInfoAndToken:c}=useUserActions(),{t:d}=useTranslation(),{token:f}=useUserToken(),g=[{key:"lock",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(LockOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:d("锁定屏幕")})]})},{key:"logout",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(PoweroffOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:d("退出登录")})]})}],y=({key:$})=>{switch($){case"lock":break;case"logout":b();break}},S=useNavigate(),b=()=>{o({title:jsxRuntimeExports.jsx("span",{children:d("温馨提醒")}),content:jsxRuntimeExports.jsx("span",{children:d("是否确认退出系统?")}),onOk:()=>Pt(this,null,function*(){yield E(!0)})})},E=($=!1)=>Pt(this,null,function*(){if(f)try{yield logoutApi()}catch(P){s.error(d("注销失败!"))}c(),$&&S("/login")});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a,jsxRuntimeExports.jsx(Dropdown,{menu:{items:g,onClick:y},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 d=o.split(":");if(o.slice(0,1)==="@"){if(d.length<2||d.length>3)return null;c=d.shift().slice(1)}if(d.length>3||!d.length)return null;if(d.length>1){const y=d.pop(),S=d.pop(),b={provider:d.length>0?d[0]:c,prefix:S,name:y};return a&&!validateIconName(b)?null:b}const f=d[0],g=f.split("-");if(g.length>1){const y={provider:c,prefix:g.shift(),name:g.join("-")};return a&&!validateIconName(y)?null:y}if(s&&c===""){const y={provider:c,prefix:"",name:f};return a&&!validateIconName(y,s)?null:y}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(le(le({},defaultIconDimensions),defaultIconTransformations)),defaultExtendedIconProps=Object.freeze(Pe(le({},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),d=Object.create(null);function f(g){if(s[g])return d[g]=[];if(!(g in d)){d[g]=null;const y=c[g]&&c[g].parent,S=y&&f(y);S&&(d[g]=[y].concat(S))}return d[g]}return(a||Object.keys(s).concat(Object.keys(c))).forEach(f),d}function internalGetIconData(o,a,s){const c=o.icons,d=o.aliases||Object.create(null);let f={};function g(y){f=mergeIconData(c[y]||d[y],f)}return g(a),s.forEach(g),mergeIconData(o,f)}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(d=>{a(d,null),s.push(d)});const c=getIconsTree(o);for(const d in c){const f=c[d];f&&(a(d,internalGetIconData(o,d,f)),s.push(d))}return s}const optionalPropertyDefaults=le({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 d in s){const f=s[d];if(!d.match(matchIconName)||typeof f.body!="string"||!checkOptionalProps(f,defaultExtendedIconProps))return null}const c=a.aliases||Object.create(null);for(const d in c){const f=c[d],g=f.parent;if(!d.match(matchIconName)||typeof g!="string"||!s[g]&&!c[g]||!checkOptionalProps(f,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]=le({},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 d=!1;return quicklyValidateIconSet(o)&&(o.prefix="",parseIconSet(o,(f,g)=>{g&&addIcon(f,g)&&(d=!0)})),d}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(le(le({},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 d=[];let f=c.shift(),g=unitsTest.test(f);for(;;){if(g){const y=parseFloat(f);isNaN(y)?d.push(f):d.push(Math.ceil(y*a*s)/s)}else d.push(f);if(f=c.shift(),f===void 0)return d.join("");g=!g}}const isUnsetKeyword=o=>o==="unset"||o==="undefined"||o==="none";function iconToSVG(o,a){const s=le(le({},defaultIconProps),o),c=le(le({},defaultIconCustomisations),a),d={left:s.left,top:s.top,width:s.width,height:s.height};let f=s.body;[s,c].forEach(C=>{const R=[],M=C.hFlip,N=C.vFlip;let L=C.rotate;M?N?L+=2:(R.push("translate("+(d.width+d.left).toString()+" "+(0-d.top).toString()+")"),R.push("scale(-1 1)"),d.top=d.left=0):N&&(R.push("translate("+(0-d.left).toString()+" "+(d.height+d.top).toString()+")"),R.push("scale(1 -1)"),d.top=d.left=0);let A;switch(L<0&&(L-=Math.floor(L/4)*4),L=L%4,L){case 1:A=d.height/2+d.top,R.unshift("rotate(90 "+A.toString()+" "+A.toString()+")");break;case 2:R.unshift("rotate(180 "+(d.width/2+d.left).toString()+" "+(d.height/2+d.top).toString()+")");break;case 3:A=d.width/2+d.left,R.unshift("rotate(-90 "+A.toString()+" "+A.toString()+")");break}L%2===1&&(d.left!==d.top&&(A=d.left,d.left=d.top,d.top=A),d.width!==d.height&&(A=d.width,d.width=d.height,d.height=A)),R.length&&(f=''+f+"")});const g=c.width,y=c.height,S=d.width,b=d.height;let E,$;g===null?($=y===null?"1em":y==="auto"?b:y,E=calculateSize($,S/b)):(E=g==="auto"?S:g,$=y===null?calculateSize(E,b/S):y==="auto"?b:y);const P={},O=(C,R)=>{isUnsetKeyword(R)||(P[C]=R.toString())};return O("width",E),O("height",$),P.viewBox=d.left.toString()+" "+d.top.toString()+" "+S.toString()+" "+b.toString(),{attributes:P,body:f}}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 d="suffix"+(Math.random()*16777216|Date.now()).toString(16);return s.forEach(f=>{const g=typeof a=="function"?a(f):a+(counter++).toString(),y=f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");o=o.replace(new RegExp('([#;"])('+y+')([")]|\\.[a-z])',"g"),"$1"+g+d+"$3")}),o=o.replace(new RegExp(d,"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 d=0;s.resources.forEach(g=>{d=Math.max(d,g.length)});const f=a+".json?icons=";c=s.maxURL-d-s.path.length-f.length}return c}function shouldAbort(o){return o===404}const prepare=(o,a,s)=>{const c=[],d=calculateMaxLength(o,a),f="icons";let g={type:f,provider:o,prefix:a,icons:[]},y=0;return s.forEach((S,b)=>{y+=S.length+1,y>=d&&b>0&&(c.push(g),g={type:f,provider:o,prefix:a,icons:[]},y=S.length),g.icons.push(S)}),c.push(g),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 f=a.prefix,y=a.icons.join(","),S=new URLSearchParams({icons:y});c+=f+".json?"+S.toString();break}case"custom":{const f=a.uri;c+=f.slice(0,1)==="/"?f.slice(1):f;break}default:s("abort",400);return}let d=503;fetchModule(o+c).then(f=>{const g=f.status;if(g!==200){setTimeout(()=>{s(shouldAbort(g)?"abort":"next",g)});return}return d=501,f.json()}).then(f=>{if(typeof f!="object"||f===null){setTimeout(()=>{f===404?s("abort",f):s("next",d)});return}setTimeout(()=>{s("success",f)})}).catch(()=>{s("next",d)})},fetchAPIModule={prepare,send};function sortIcons(o){const a={loaded:[],missing:[],pending:[]},s=Object.create(null);o.sort((d,f)=>d.provider!==f.provider?d.provider.localeCompare(f.provider):d.prefix!==f.prefix?d.prefix.localeCompare(f.prefix):d.name.localeCompare(f.name));let c={provider:"",prefix:"",name:""};return o.forEach(d=>{if(c.name===d.name&&c.prefix===d.prefix&&c.provider===d.provider)return;c=d;const f=d.provider,g=d.prefix,y=d.name,S=s[f]||(s[f]=Object.create(null)),b=S[g]||(S[g]=getStorage$2(f,g));let E;y in b.icons?E=a.loaded:g===""||b.missing.has(y)?E=a.missing:E=a.pending;const $={provider:f,prefix:g,name:y};E.push($)}),a}function removeCallback(o,a){o.forEach(s=>{const c=s.loaderCallbacks;c&&(s.loaderCallbacks=c.filter(d=>d.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,d=o.prefix;a.forEach(f=>{const g=f.icons,y=g.pending.length;g.pending=g.pending.filter(S=>{if(S.prefix!==d)return!0;const b=S.name;if(o.icons[b])g.loaded.push({provider:c,prefix:d,name:b});else if(o.missing.has(b))g.missing.push({provider:c,prefix:d,name:b});else return s=!0,!0;return!1}),g.pending.length!==y&&(s||removeCallback([o],f.id),f.callback(g.loaded.slice(0),g.missing.slice(0),g.pending.slice(0),f.abort))})}))}let idCounter=0;function storeCallback(o,a,s){const c=idCounter++,d=removeCallback.bind(null,s,c);if(!a.pending.length)return d;const f={id:c,icons:a,callback:o,abort:d};return s.forEach(g=>{(g.loaderCallbacks||(g.loaderCallbacks=[])).push(f)}),d}function listToIcons(o,a=!0,s=!1){const c=[];return o.forEach(d=>{const f=typeof d=="string"?stringToIcon(d,a,s):d;f&&c.push(f)}),c}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(o,a,s,c){const d=o.resources.length,f=o.random?Math.floor(Math.random()*d):o.index;let g;if(o.random){let U=o.resources.slice(0);for(g=[];U.length>1;){const B=Math.floor(Math.random()*U.length);g.push(U[B]),U=U.slice(0,B).concat(U.slice(B+1))}g=g.concat(U)}else g=o.resources.slice(f).concat(o.resources.slice(0,f));const y=Date.now();let S="pending",b=0,E,$=null,P=[],O=[];typeof c=="function"&&O.push(c);function C(){$&&(clearTimeout($),$=null)}function R(){S==="pending"&&(S="aborted"),C(),P.forEach(U=>{U.status==="pending"&&(U.status="aborted")}),P=[]}function M(U,B){B&&(O=[]),typeof U=="function"&&O.push(U)}function N(){return{startTime:y,payload:a,status:S,queriesSent:b,queriesPending:P.length,subscribe:M,abort:R}}function L(){S="failed",O.forEach(U=>{U(void 0,E)})}function A(){P.forEach(U=>{U.status==="pending"&&(U.status="aborted")}),P=[]}function I(U,B,H){const X=B!=="success";switch(P=P.filter(V=>V!==U),S){case"pending":break;case"failed":if(X||!o.dataAfterTimeout)return;break;default:return}if(B==="abort"){E=H,L();return}if(X){E=H,P.length||(g.length?D():L());return}if(C(),A(),!o.random){const V=o.resources.indexOf(U.resource);V!==-1&&V!==o.index&&(o.index=V)}S="completed",O.forEach(V=>{V(H)})}function D(){if(S!=="pending")return;C();const U=g.shift();if(U===void 0){if(P.length){$=setTimeout(()=>{C(),S==="pending"&&(A(),L())},o.timeout);return}L();return}const B={status:"pending",resource:U,callback:(H,X)=>{I(B,H,X)}};P.push(B),b++,$=setTimeout(D,o.rotate),s(U,a,B.callback)}return setTimeout(D),N}function initRedundancy(o){const a=le(le({},defaultConfig),o);let s=[];function c(){s=s.filter(y=>y().status==="pending")}function d(y,S,b){const E=sendQuery(a,y,S,($,P)=>{c(),b&&b($,P)});return s.push(E),E}function f(y){return s.find(S=>y(S))||null}return{query:d,find:f,setIndex:y=>{a.index=y},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,d;if(typeof o=="string"){const f=getAPIModule(o);if(!f)return s(void 0,424),emptyCallback$1;d=f.send;const g=getRedundancyCache(o);g&&(c=g.redundancy)}else{const f=createAPIConfig(o);if(f){c=initRedundancy(f);const g=o.resources?o.resources[0]:"",y=getAPIModule(g);y&&(d=y.send)}}return!c||!d?(s(void 0,424),emptyCallback$1):c.query(a,d,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 y=getBrowserStorageItemsCount(s);for(let S=0;S{const S=browserCachePrefix+y.toString(),b=getStoredItem(s,S);if(typeof b=="string"){try{const E=JSON.parse(b);if(typeof E=="object"&&typeof E.cached=="number"&&E.cached>d&&typeof E.provider=="string"&&typeof E.data=="object"&&typeof E.data.prefix=="string"&&a(E,y))return!0}catch(E){}removeStoredItem(s,S)}};let g=getBrowserStorageItemsCount(s);for(let y=g-1;y>=0;y--)f(y)||(y===g-1?(g--,setBrowserStorageItemsCount(s,g)):browserStorageEmptyItems[o].add(y))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const o in browserStorageConfig)iterateBrowserStorage(o,a=>{const s=a.data,c=a.provider,d=s.prefix,f=getStorage$2(c,d);if(!addIconSet(f,s).length)return!1;const g=s.lastModified||-1;return f.lastModifiedCached=f.lastModifiedCached?Math.min(f.lastModifiedCached,g):g,!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,d=>{const f=d.data;return d.provider!==o.provider||f.prefix!==o.prefix||f.lastModified===a});return!0}function storeInBrowserStorage(o,a){browserStorageStatus||initBrowserStorage();function s(c){let d;if(!browserStorageConfig[c]||!(d=getBrowserStorage(c)))return;const f=browserStorageEmptyItems[c];let g;if(f.size)f.delete(g=Array.from(f).shift());else if(g=getBrowserStorageItemsCount(d),!setBrowserStorageItemsCount(d,g+1))return;const y={cached:Math.floor(Date.now()/browserStorageHour),provider:o.provider,data:a};return setStoredItem(d,browserCachePrefix+g.toString(),JSON.stringify(y))}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,d=o.iconsToLoad;delete o.iconsToLoad;let f;if(!d||!(f=getAPIModule(s)))return;f.prepare(s,c,d).forEach(y=>{sendAPIQuery(s,y,S=>{if(typeof S!="object")y.icons.forEach(b=>{o.missing.add(b)});else try{const b=addIconSet(o,S);if(!b.length)return;const E=o.pendingIcons;E&&b.forEach($=>{E.delete($)}),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 d=Object.create(null),f=[];let g,y;return c.pending.forEach(S=>{const{provider:b,prefix:E}=S;if(E===y&&b===g)return;g=b,y=E,f.push(getStorage$2(b,E));const $=d[b]||(d[b]=Object.create(null));$[E]||($[E]=[])}),c.pending.forEach(S=>{const{provider:b,prefix:E,name:$}=S,P=getStorage$2(b,E),O=P.pendingIcons||(P.pendingIcons=new Set);O.has($)||(O.add($),d[b][E].push($))}),f.forEach(S=>{const{provider:b,prefix:E}=S;d[b][E].length&&loadNewIcons(S,d[b][E])}),a?storeCallback(a,c,f):emptyCallback};function mergeCustomisations(o,a){const s=le({},o);for(const c in a){const d=a[c],f=typeof d;c in defaultIconSizeCustomisations?(d===null||d&&(f==="string"||f==="number"))&&(s[c]=d):f===typeof s[c]&&(s[c]=c==="rotate"?d%4:d)}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(d){for(;d<0;)d+=4;return d%4}if(s===""){const d=parseInt(o);return isNaN(d)?0:c(d)}else if(s!==o){let d=0;switch(s){case"%":d=25;break;case"deg":d=90}if(d){let f=parseFloat(o.slice(0,o.length-s.length));return isNaN(f)?0:(f=f/d,f%1===0?c(f):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=Pe(le({},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=Pe(le({},defaultExtendedIconCustomisations),{inline:!0});function fixSize(o){return o+(o.match(/^[-0-9.]+$/)?"px":"")}const render=(o,a,s,c)=>{const d=s?inlineDefaults:defaultExtendedIconCustomisations,f=mergeCustomisations(d,a),g=a.mode||"svg",y={},S=a.style||{},b=Pe(le({},g==="svg"?svgDefaults:{}),{ref:c});for(let N in a){const L=a[N];if(L!==void 0)switch(N){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":f[N]=L===!0||L==="true"||L===1;break;case"flip":typeof L=="string"&&flipFromString(f,L);break;case"color":y.color=L;break;case"rotate":typeof L=="string"?f[N]=rotateFromString(L):typeof L=="number"&&(f[N]=L);break;case"ariaHidden":case"aria-hidden":L!==!0&&L!=="true"&&delete b["aria-hidden"];break;default:d[N]===void 0&&(b[N]=L)}}const E=iconToSVG(o,f),$=E.attributes;if(f.inline&&(y.verticalAlign="-0.125em"),g==="svg"){b.style=le(le({},y),S),Object.assign(b,$);let N=0,L=a.id;return typeof L=="string"&&(L=L.replace(/-/g,"_")),b.dangerouslySetInnerHTML={__html:cleanUpInnerHTML(replaceIDs(E.body,L?()=>L+"ID"+N++:"iconifyReact"))},React$4.createElement("svg",b)}const{body:P,width:O,height:C}=o,R=g==="mask"||(g==="bg"?!1:P.indexOf("currentColor")!==-1),M=iconToHTML(P,Pe(le({},$),{width:O+"",height:C+""}));return b.style=le(le(le(Pe(le({},y),{"--svg":svgToURL(M),width:fixSize($.width),height:fixSize($.height)}),commonProps),R?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(d){}})}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 d=a[s];if(typeof d!="object"||!d||d.resources===void 0)continue;addAPIProvider(s,d)}catch(d){}}}}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 d;if(typeof c!="string"||(d=stringToIcon(c,!1,!0))===null){this._abortLoading(),this._setData(null);return}const f=getIconData(d);if(!f){(!this._loading||this._loading.name!==c)&&(this._abortLoading(),this._icon="",this._setData(null),f!==null&&(this._loading={name:c,abort:loadIcons([d],this._checkIcon.bind(this,!1))}));return}if(this._icon!==c||s.icon===null){this._abortLoading(),this._icon=c;const g=["iconify"];d.prefix!==""&&g.push("iconify--"+d.prefix),d.provider!==""&&g.push("iconify--"+d.provider),this._setData({data:f,classes:g}),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=Pe(le({},a),{className:(typeof a.className=="string"?a.className+" ":"")+s.classes.join(" ")})),render(le(le({},defaultIconProps),s.data),c,a._inline,a._ref)}}const Icon=React$4.forwardRef(function(a,s){const c=Pe(le({},a),{_ref:s,_inline:!1});return React$4.createElement(IconComponent,c)});React$4.forwardRef(function(a,s){const c=Pe(le({},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,d=a,f=new Map,g=f,y=0,S=!1;function b(){g===f&&(g=new Map,f.forEach((M,N)=>{g.set(N,M)}))}function E(){if(S)throw new Error(formatProdErrorMessage$2(3));return d}function $(M){if(typeof M!="function")throw new Error(formatProdErrorMessage$2(4));if(S)throw new Error(formatProdErrorMessage$2(5));let N=!0;b();const L=y++;return g.set(L,M),function(){if(N){if(S)throw new Error(formatProdErrorMessage$2(6));N=!1,b(),g.delete(L),f=null}}}function P(M){if(!isPlainObject$2(M))throw new Error(formatProdErrorMessage$2(7));if(typeof M.type=="undefined")throw new Error(formatProdErrorMessage$2(8));if(typeof M.type!="string")throw new Error(formatProdErrorMessage$2(17));if(S)throw new Error(formatProdErrorMessage$2(9));try{S=!0,d=c(d,M)}finally{S=!1}return(f=g).forEach(L=>{L()}),M}function O(M){if(typeof M!="function")throw new Error(formatProdErrorMessage$2(10));c=M,P({type:actionTypes_default.REPLACE})}function C(){const M=$;return{subscribe(N){if(typeof N!="object"||N===null)throw new Error(formatProdErrorMessage$2(11));function L(){const I=N;I.next&&I.next(E())}return L(),{unsubscribe:M(L)}},[symbol_observable_default](){return this}}}return P({type:actionTypes_default.INIT}),{dispatch:P,subscribe:$,getState:E,replaceReducer:O,[symbol_observable_default]:C}}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 f=0;fa:o.length===1?o[0]:o.reduce((a,s)=>(...c)=>a(s(...c)))}function applyMiddleware(...o){return a=>(s,c)=>{const d=a(s,c);let f=()=>{throw new Error(formatProdErrorMessage$2(15))};const g={getState:d.getState,dispatch:(S,...b)=>f(S,...b)},y=o.map(S=>S(g));return f=compose(...y)(d.dispatch),Pe(le({},d),{dispatch:f})}}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)?le({},o):Object.assign(Object.create(null),o);const s=Object.getOwnPropertyDescriptors(o);delete s[DRAFT_STATE];let c=Reflect.ownKeys(s);for(let d=0;d1&&(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,(d,f)=>finalizeProperty(o,c,a,d,f,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 d=c.copy_;let f=d,g=!1;c.type_===3&&(f=new Set(d),d.clear(),g=!0),each(f,(y,S)=>finalizeProperty(o,c,d,y,S,s,g)),maybeFreeze(o,d,!1),s&&o.patches_&&getPlugin("Patches").generatePatches_(c,s,o.patches_,o.inversePatches_)}return c.copy_}function finalizeProperty(o,a,s,c,d,f,g){if(isDraft(d)){const y=f&&a&&a.type_!==3&&!has(a.assigned_,c)?f.concat(c):void 0,S=finalize(o,d,y);if(set(s,c,S),isDraft(S))o.canAutoFreeze_=!1;else return}else g&&s.add(d);if(isDraftable(d)&&!isFrozen(d)){if(!o.immer_.autoFreeze_&&o.unfinalizedDrafts_<1)return;finalize(o,d),(!a||!a.scope_.parent_)&&maybeFreeze(o,d)}}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 d=c,f=objectTraps;s&&(d=[c],f=arrayTraps);const{revoke:g,proxy:y}=Proxy.revocable(d,f);return c.draft_=y,c.revoke_=g,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 d=peek(latest(o),a),f=d==null?void 0:d[DRAFT_STATE];if(f&&f.base_===s)return o.copy_[a]=s,o.assigned_[a]=!1,!0;if(is(s,d)&&(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 d;const c=getDescriptorFromProto(a,s);return c?"value"in c?c.value:(d=c.get)==null?void 0:d.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 f=s;s=a;const g=this;return function(S=f,...b){return g.produce(S,E=>s.call(this,E,...b))}}typeof s!="function"&&die(6),c!==void 0&&typeof c!="function"&&die(7);let d;if(isDraftable(a)){const f=enterScope(this),g=createProxy(a,void 0);let y=!0;try{d=s(g),y=!1}finally{y?revokeScope(f):leaveScope(f)}return usePatchesInScope(f,c),processResult(d,f)}else if(!a||typeof a!="object"){if(d=s(a),d===void 0&&(d=a),d===NOTHING&&(d=void 0),this.autoFreeze_&&freeze(d,!0),c){const f=[],g=[];getPlugin("Patches").generateReplacementPatches_(a,d,f,g),c(f,g)}return d}else die(1,a)},this.produceWithPatches=(a,s)=>{if(typeof a=="function")return(g,...y)=>this.produceWithPatches(g,S=>a(S,...y));let c,d;return[this.produce(a,s,(g,y)=>{c=g,d=y}),c,d]},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 d=a[s];if(d.path.length===0&&d.op==="replace"){o=d.value;break}}s>-1&&(a=a.slice(s+1));const c=getPlugin("Patches").applyPatches_;return isDraft(o)?c(o,a):this.produce(o,d=>c(d,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,d)=>{set(s,c,currentImpl(d))}),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 d=0;d{s=createCacheNode(),g.resetResultsCount()},g.resultsCount=()=>f,g.resetResultsCount=()=>{f=0},g}function createSelectorCreator(o,...a){const s=typeof o=="function"?{memoize:o,memoizeOptions:a}:o,c=(...d)=>{let f=0,g=0,y,S={},b=d.pop();typeof b=="object"&&(S=b,b=d.pop()),assertIsFunction(b,`createSelector expects an output function after the inputs, but received: [${typeof b}]`);const E=le(le({},s),S),{memoize:$,memoizeOptions:P=[],argsMemoize:O=weakMapMemoize,argsMemoizeOptions:C=[],devModeChecks:R={}}=E,M=ensureIsArray(P),N=ensureIsArray(C),L=getDependencies(d),A=$(function(){return f++,b.apply(null,arguments)},...M),I=O(function(){g++;const U=collectInputSelectorResults(L,arguments);return y=A.apply(null,U),y},...N);return Object.assign(I,{resultFunc:b,memoizedResultFunc:A,dependencies:L,dependencyRecomputations:()=>g,resetDependencyRecomputations:()=>{g=0},lastResult:()=>y,recomputations:()=>f,resetRecomputations:()=>{f=0},memoize:$,argsMemoize:O})};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(f=>o[f]);return a(c,(...f)=>f.reduce((g,y,S)=>(g[s[S]]=y,g),{}))},{withTypes:()=>createStructuredSelector});function createThunkMiddleware(o){return({dispatch:s,getState:c})=>d=>f=>typeof f=="function"?f(s,c,o):d(f)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,createDraftSafeSelectorCreator=(...o)=>{const a=createSelectorCreator(...o);return(...s)=>{const c=a(...s),d=(f,...g)=>c(isDraft(f)?current(f):f,...g);return Object.assign(d,c),d}};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 d=a(...c);if(!d)throw new Error(formatProdErrorMessage$1(0));return le(le({type:o,payload:d.payload},"meta"in d&&{meta:d.meta}),"error"in d&&{error:d.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 _a extends Array{constructor(...a){super(...a),Object.setPrototypeOf(this,_a.prototype)}static get[Symbol.species](){return _a}concat(...a){return super.concat.apply(this,a)}prepend(...a){return a.length===1&&Array.isArray(a[0])?new _a(...a[0].concat(this)):new _a(...a.concat(this))}};function freezeDraftable(o){return isDraftable(o)?produce(o,()=>{}):o}function emplace(o,a,s){if(o.has(a)){let d=o.get(a);return s.update&&(d=s.update(d,a,o),o.set(a,d)),d}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:d=!0,actionCreatorCheck:f=!0}=a!=null?a:{};let g=new Tuple;return s&&(isBoolean(s)?g.push(thunk):g.push(withExtraArgument(s.extraArgument))),g},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 d=!0,f=!1,g=!1;const y=new Set,S=o.type==="tick"?queueMicrotask:o.type==="raf"?rAF:o.type==="callback"?o.queueNotification:createQueueWithTimer(o.timeout),b=()=>{g=!1,f&&(f=!1,y.forEach(E=>E()))};return Object.assign({},c,{subscribe(E){const $=()=>d&&E(),P=c.subscribe($);return y.add(E),()=>{P(),y.delete(E)}},dispatch(E){var $;try{return d=!(($=E==null?void 0:E.meta)!=null&&$[SHOULD_AUTOBATCH]),f=!d,f&&(g||(g=!0,S(b))),c.dispatch(E)}finally{d=!0}}})},buildGetDefaultEnhancers=o=>function(s){const{autoBatch:c=!0}=s!=null?s:{};let d=new Tuple(o);return c&&d.push(autoBatchEnhancer(typeof c=="object"?c:void 0)),d},IS_PRODUCTION=!0;function configureStore(o){const a=buildGetDefaultMiddleware(),{reducer:s=void 0,middleware:c,devTools:d=!0,preloadedState:f=void 0,enhancers:g=void 0}=o||{};let y;if(typeof s=="function")y=s;else if(isPlainObject$2(s))y=combineReducers(s);else throw new Error(formatProdErrorMessage$1(1));let S;typeof c=="function"?S=c(a):S=a();let b=compose;d&&(b=composeWithDevTools(le({trace:!IS_PRODUCTION},typeof d=="object"&&d)));const E=applyMiddleware(...S),$=buildGetDefaultEnhancers(E);let P=typeof g=="function"?g($):$();const O=b(...P);return createStore$1(y,f,O)}function executeReducerBuilderCallback(o){const a={},s=[];let c;const d={addCase(f,g){const y=typeof f=="string"?f:f.type;if(!y)throw new Error(formatProdErrorMessage$1(28));if(y in a)throw new Error(formatProdErrorMessage$1(29));return a[y]=g,d},addMatcher(f,g){return s.push({matcher:f,reducer:g}),d},addDefaultCase(f){return c=f,d}};return o(d),[a,s,c]}function isStateFunction(o){return typeof o=="function"}function createReducer(o,a){let[s,c,d]=executeReducerBuilderCallback(a),f;if(isStateFunction(o))f=()=>freezeDraftable(o());else{const y=freezeDraftable(o);f=()=>y}function g(y=f(),S){let b=[s[S.type],...c.filter(({matcher:E})=>E(S)).map(({reducer:E})=>E)];return b.filter(E=>!!E).length===0&&(b=[d]),b.reduce((E,$)=>{if($)if(isDraft(E)){const O=$(E,S);return O===void 0?E:O}else{if(isDraftable(E))return produce(E,P=>$(P,S));{const P=$(E,S);if(P===void 0){if(E===null)return E;throw new Error(formatProdErrorMessage$1(9))}return P}}return E},y)}return g.getInitialState=f,g}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){br(this,"_type");this.payload=o,this.meta=a}},FulfillWithMeta=class{constructor(o,a){br(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 d=createAction(a+"/fulfilled",(S,b,E,$)=>({payload:S,meta:Pe(le({},$||{}),{arg:E,requestId:b,requestStatus:"fulfilled"})})),f=createAction(a+"/pending",(S,b,E)=>({payload:void 0,meta:Pe(le({},E||{}),{arg:b,requestId:S,requestStatus:"pending"})})),g=createAction(a+"/rejected",(S,b,E,$,P)=>({payload:$,error:(c&&c.serializeError||miniSerializeError)(S||"Rejected"),meta:Pe(le({},P||{}),{arg:E,requestId:b,rejectedWithValue:!!$,requestStatus:"rejected",aborted:(S==null?void 0:S.name)==="AbortError",condition:(S==null?void 0:S.name)==="ConditionError"})}));function y(S){return(b,E,$)=>{const P=c!=null&&c.idGenerator?c.idGenerator(S):nanoid(),O=new AbortController;let C;function R(N){C=N,O.abort()}const M=function(){return Pt(this,null,function*(){var A,I;let N;try{let D=(A=c==null?void 0:c.condition)==null?void 0:A.call(c,S,{getState:E,extra:$});if(isThenable(D)&&(D=yield D),D===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const U=new Promise((B,H)=>O.signal.addEventListener("abort",()=>H({name:"AbortError",message:C||"Aborted"})));b(f(P,S,(I=c==null?void 0:c.getPendingMeta)==null?void 0:I.call(c,{requestId:P,arg:S},{getState:E,extra:$}))),N=yield Promise.race([U,Promise.resolve(s(S,{dispatch:b,getState:E,extra:$,requestId:P,signal:O.signal,abort:R,rejectWithValue:(B,H)=>new RejectWithValue(B,H),fulfillWithValue:(B,H)=>new FulfillWithMeta(B,H)})).then(B=>{if(B instanceof RejectWithValue)throw B;return B instanceof FulfillWithMeta?d(B.payload,P,S,B.meta):d(B,P,S)})])}catch(D){N=D instanceof RejectWithValue?g(null,P,S,D.payload,D.meta):g(D,P,S)}return c&&!c.dispatchConditionRejection&&g.match(N)&&N.meta.condition||b(N),N})}();return Object.assign(M,{abort:R,requestId:P,arg:S,unwrap(){return M.then(unwrapResult)}})}}return Object.assign(y,{pending:f,rejected:g,fulfilled:d,settled:isAnyOf(g,d),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(d){const{name:f,reducerPath:g=f}=d;if(!f)throw new Error(formatProdErrorMessage$1(11));const y=(typeof d.reducers=="function"?d.reducers(buildReducerCreators()):d.reducers)||{},S=Object.keys(y),b={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},E={addCase(M,N){const L=typeof M=="string"?M:M.type;if(!L)throw new Error(formatProdErrorMessage$1(12));if(L in b.sliceCaseReducersByType)throw new Error(formatProdErrorMessage$1(13));return b.sliceCaseReducersByType[L]=N,E},addMatcher(M,N){return b.sliceMatchers.push({matcher:M,reducer:N}),E},exposeAction(M,N){return b.actionCreators[M]=N,E},exposeCaseReducer(M,N){return b.sliceCaseReducersByName[M]=N,E}};S.forEach(M=>{const N=y[M],L={reducerName:M,type:getType(f,M),createNotation:typeof d.reducers=="function"};isAsyncThunkSliceReducerDefinition(N)?handleThunkCaseReducerDefinition(L,N,E,a):handleNormalReducerDefinition(L,N,E)});function $(){const[M={},N=[],L=void 0]=typeof d.extraReducers=="function"?executeReducerBuilderCallback(d.extraReducers):[d.extraReducers],A=le(le({},M),b.sliceCaseReducersByType);return createReducer(d.initialState,I=>{for(let D in A)I.addCase(D,A[D]);for(let D of b.sliceMatchers)I.addMatcher(D.matcher,D.reducer);for(let D of N)I.addMatcher(D.matcher,D.reducer);L&&I.addDefaultCase(L)})}const P=M=>M,O=new WeakMap;let C;const R={name:f,reducerPath:g,reducer(M,N){return C||(C=$()),C(M,N)},actions:b.actionCreators,caseReducers:b.sliceCaseReducersByName,getInitialState(){return C||(C=$()),C.getInitialState()},getSelectors(M=P){const N=emplace(O,this,{insert:()=>new WeakMap});return emplace(N,M,{insert:()=>{var A;const L={};for(const[I,D]of Object.entries((A=d.selectors)!=null?A:{}))L[I]=wrapSelector(this,D,M,this!==R);return L}})},selectSlice(M){let N=M[this.reducerPath];return typeof N=="undefined"&&this!==R&&(N=this.getInitialState()),N},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(M,A={}){var I=A,{reducerPath:N}=I,L=ur(I,["reducerPath"]);const D=N!=null?N:this.reducerPath;return M.inject({reducerPath:D,reducer:this.reducer},L),Pe(le({},this),{reducerPath:D})}};return R}}function wrapSelector(o,a,s,c){function d(f,...g){let y=s.call(o,f);return typeof y=="undefined"&&c&&(y=o.getInitialState()),a(y,...g)}return d.unwrapped=a,d}var createSlice=buildCreateSlice();function buildReducerCreators(){function o(a,s){return le({_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,d){let f,g;if("reducer"in c){if(s&&!isCaseReducerWithPrepareDefinition(c))throw new Error(formatProdErrorMessage$1(17));f=c.reducer,g=c.prepare}else f=c;d.addCase(o,f).exposeCaseReducer(a,f).exposeAction(a,g?createAction(o,g):createAction(o))}function isAsyncThunkSliceReducerDefinition(o){return o._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(o){return o._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:o,reducerName:a},s,c,d){if(!d)throw new Error(formatProdErrorMessage$1(18));const{payloadCreator:f,fulfilled:g,pending:y,rejected:S,settled:b,options:E}=s,$=d(o,f,E);c.exposeAction(a,$),g&&c.addCase($.fulfilled,g),y&&c.addCase($.pending,y),S&&c.addCase($.rejected,S),b&&c.addMatcher($.settled,b),c.exposeCaseReducer(a,{fulfilled:g||noop$1,pending:y||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(d){return Object.getOwnPropertyDescriptor(o,d).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),d,f;for(f=0;f=0)&&(s[d]=o[d]);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,d=o.getStoredState||getStoredState,f=o.timeout!==void 0?o.timeout:DEFAULT_TIMEOUT,g=null,y=!1,S=!0,b=function($){return $._persist.rehydrated&&g&&!S&&g.update($),$};return function(E,$){var P=E||{},O=P._persist,C=_objectWithoutProperties(P,["_persist"]),R=C;if($.type===PERSIST){var M=!1,N=function(H,X){M||($.rehydrate(o.key,H,X),M=!0)};if(f&&setTimeout(function(){!M&&N(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(o.key,'"')))},f),S=!1,g||(g=createPersistoid(o)),O)return _objectSpread$1({},a(R,$),{_persist:O});if(typeof $.rehydrate!="function"||typeof $.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 $.register(o.key),d(o).then(function(B){var H=o.migrate||function(X,V){return Promise.resolve(X)};H(B,s).then(function(X){N(X)},function(X){N(void 0,X)})},function(B){N(void 0,B)}),_objectSpread$1({},a(R,$),{_persist:{version:s,rehydrated:!1}})}else{if($.type===PURGE)return y=!0,$.result(purgeStoredState(o)),_objectSpread$1({},a(R,$),{_persist:O});if($.type===FLUSH)return $.result(g&&g.flush()),_objectSpread$1({},a(R,$),{_persist:O});if($.type===PAUSE)S=!0;else if($.type===REHYDRATE){if(y)return _objectSpread$1({},R,{_persist:_objectSpread$1({},O,{rehydrated:!0})});if($.key===o.key){var L=a(R,$),A=$.payload,I=c!==!1&&A!==void 0?c(A,E,L,o):L,D=_objectSpread$1({},I,{_persist:_objectSpread$1({},O,{rehydrated:!0})});return b(D)}}}if(!O)return a(E,$);var U=a(R,$);return U===R?E:b(_objectSpread$1({},U,{_persist:O}))}}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 d=o,f=a,g=[],y=g,S=!1;function b(){y===g&&(y=g.slice())}function E(){if(S)throw new Error(formatProdErrorMessage(3));return f}function $(R){if(typeof R!="function")throw new Error(formatProdErrorMessage(4));if(S)throw new Error(formatProdErrorMessage(5));var M=!0;return b(),y.push(R),function(){if(M){if(S)throw new Error(formatProdErrorMessage(6));M=!1,b();var L=y.indexOf(R);y.splice(L,1),g=null}}}function P(R){if(!isPlainObject(R))throw new Error(formatProdErrorMessage(7));if(typeof R.type=="undefined")throw new Error(formatProdErrorMessage(8));if(S)throw new Error(formatProdErrorMessage(9));try{S=!0,f=d(f,R)}finally{S=!1}for(var M=g=y,N=0;N0&&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),d=_toConsumableArray(a.registry);return d.splice(c,1),_objectSpread({},a,{registry:d,bootstrapped:d.length===0});default:return a}};function persistStore(o,a,s){var c=s||!1,d=createStore(persistorReducer,initialState$2,a&&a.enhancer?a.enhancer:void 0),f=function(b){d.dispatch({type:REGISTER,key:b})},g=function(b,E,$){var P={type:REHYDRATE,payload:E,err:$,key:b};o.dispatch(P),d.dispatch(P),c&&y.getState().bootstrapped&&(c(),c=!1)},y=_objectSpread({},d,{purge:function(){var b=[];return o.dispatch({type:PURGE,result:function($){b.push($)}}),Promise.all(b)},flush:function(){var b=[];return o.dispatch({type:FLUSH,result:function($){b.push($)}}),Promise.all(b)},pause:function(){o.dispatch({type:PAUSE})},persist:function(){o.dispatch({type:PERSIST,register:f,rehydrate:g})}});return a&&a.manualPersist||y.persist(),y}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(d,f){d(a.getItem(c))})},setItem:function(c,d){return new Promise(function(f,g){f(a.setItem(c,d))})},removeItem:function(c){return new Promise(function(d,f){d(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]=le(le({},o.visitedTags[s]),a.payload)},updateVisitedTags:(o,a)=>{o.visitedTags=a.payload},closeTagsByType:(o,a)=>{let s=[];const{type:c,path:d}=a.payload,{visitedTags:f}=o,g=f.findIndex(S=>S.fullPath===d),y=f.filter(S=>{var b;return(b=S==null?void 0:S.meta)==null?void 0:b.affix});switch(c){case"left":s=f.slice(g);break;case"right":s=f.slice(0,g+1);break;case"other":s=f.filter(S=>S.fullPath===d);break}o.visitedTags=y.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,d=c.findIndex(g=>g.fullPath===o),f=c.filter(g=>g.fullPath!==o);return s(updateVisitedTags(f)),Promise.resolve({tagIndex:d,tagsList:f})}),closeAllTags=createAppAsyncThunk("tags/closeAllTags",(o,{getState:a,dispatch:s})=>{const{visitedTags:c}=a().tags,d=c.filter(f=>{var g;return(g=f==null?void 0:f.meta)==null?void 0:g.affix});return s(updateVisitedTags(d)),Promise.resolve(d)}),{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$6=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:d})=>{const{styles:f}=useStyles$6({active:s});return jsxRuntimeExports.jsxs(Tag$1,{className:classNames(f["compo_tag-item"],{[f.active]:s}),closable:!a,onClose:c,onClick:d,children:[jsxRuntimeExports.jsx("span",{className:`${f["compo_tag-item"]}__dot`}),jsxRuntimeExports.jsx("span",{className:`${f["compo_tag-item"]}__name`,children:o})]})},useStyles$5=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$5(),s=[{key:"left",label:o("关闭左侧")},{key:"right",label:o("关闭右侧")},{key:"other",label:o("关闭其它")},{key:"all",label:o("关闭所有")}],c=({key:U})=>{U==="all"?$(closeAllTags()).then(({payload:B})=>{const H=B.slice(-1)[0];P!==(H==null?void 0:H.fullPath)&&b(H==null?void 0:H.fullPath)}):$(closeTagsByType({type:U,path:P}))},d=reactExports.useRef(null),f=reactExports.useRef(null),[g,y]=reactExports.useState(0),{pathname:S}=useLocation(),b=useNavigate(),E=useAppSelector(U=>U.tags.visitedTags),$=useAppDispatch(),[P,O]=reactExports.useState(S);reactExports.useEffect(()=>{C(routeList).forEach(B=>{$(addVisitedTags(B))})},[]),reactExports.useEffect(()=>{const U=searchRoute(S,routeList);U&&$(addVisitedTags(U)),O(S)},[S]),reactExports.useEffect(()=>{var H;const U=(H=f.current)==null?void 0:H.childNodes,B=Array.from(U).find(X=>X.dataset.path===P);R(B)},[P]);const C=(U,B="/")=>{const H=[],X=V=>{var W;if((W=V.meta)!=null&&W.affix){const ae=V.path.startsWith("/")?V.path:B+V.path;H.push(Pe(le({},V),{path:ae}))}V.children&&V.children.length&&V.children.forEach(ae=>X(ae))};return U.forEach(V=>X(V)),H},R=U=>{var W,ae,ee,de,J,Y,Q,te,ce,oe,ne;let B=0;const H=4,X=(W=d.current)==null?void 0:W.offsetWidth;((ae=f.current)==null?void 0:ae.offsetWidth)-g&&((Y=U==null?void 0:U.offsetLeft)!=null?Y:0)+((Q=U==null?void 0:U.offsetWidth)!=null?Q:0)<-g+X?B=Math.min(0,X-((te=U==null?void 0:U.offsetWidth)!=null?te:0)-((ce=U==null?void 0:U.offsetLeft)!=null?ce:0)-H):B=-(((oe=U==null?void 0:U.offsetLeft)!=null?oe:0)-(X-H-((ne=U==null?void 0:U.offsetWidth)!=null?ne:0))),y(B)},M=U=>{var V,W;let B=0;const H=(V=d.current)==null?void 0:V.offsetWidth,X=(W=f.current)==null?void 0:W.offsetWidth;U>0?B=Math.min(0,g+U):H=-(X-H)&&(B=Math.max(g+U,H-X)):B=0,y(B)},N=U=>{const{type:B}=U;let H=0;B==="wheel"&&(H=U.deltaY?U.deltaY*2:-(U.detail||0)*2),M(H)},L=U=>{$(closeTagByKey(U)).then(({payload:B})=>{let H={};const{tagIndex:X,tagsList:V}=B,W=V.length;U===P&&(X<=W-1?H=V[X]:H=V[W-1],b(H==null?void 0:H.fullPath))})},A=U=>{O(U),b(U)};function I(){return new Date().getTime().toString()}const D=()=>{E.findIndex(B=>B.fullPath===P)>=0&&b(P,{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:()=>M(200)}),jsxRuntimeExports.jsx("div",{ref:d,className:`${a.layout_tags}__main`,onWheel:N,children:jsxRuntimeExports.jsx("div",{ref:f,className:`${a.layout_tags}__main-body`,style:{left:`${g}px`},children:E.map(U=>{var B,H;return jsxRuntimeExports.jsx("span",{"data-path":U.fullPath,children:jsxRuntimeExports.jsx(TagItem,{name:o((B=U.meta)==null?void 0:B.title),active:P===U.fullPath,fixed:(H=U.meta)==null?void 0:H.affix,onClick:()=>A(U.fullPath),closeTag:()=>L(U.fullPath)},U.key)},U.fullPath)})})}),jsxRuntimeExports.jsx(Button,{className:`${a.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(RightOutlined,{}),size:"small",onClick:()=>M(-200)}),jsxRuntimeExports.jsx(Button,{className:classNames(`${a.layout_tags}__btn`,`${a.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(RedoOutlined,{}),size:"small",onClick:()=>D()}),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,d]=reactExports.useState([]),{pathname:f}=useLocation(),g=useAppSelector(y=>y.menu.menuList);return reactExports.useEffect(()=>{const S=(matchRoutes(g,f)||[]).map(b=>{const{name:E,icon:$=""}=b==null?void 0:b.route;return{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[$&&jsxRuntimeExports.jsx(SvgIcon,{name:$,style:{marginRight:8}}),jsxRuntimeExports.jsx("span",{children:a(E)})]})}});d(S)},[f,s.language]),jsxRuntimeExports.jsx("div",{className:"flex-center-v",style:{padding:"0 16px"},children:jsxRuntimeExports.jsx(Breadcrumb,{items:c})})}const useStyles$4=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$4(),s=useSettings(),{setSettings:c}=useSettingActions();function d(){c(Pe(le({},s),{unfold:!s.unfold}))}return jsxRuntimeExports.jsx("span",{className:a(o["compo_fold-trigger"],{[o.unfold]:!s.unfold}),onClick:d,children:jsxRuntimeExports.jsx(SvgIcon,{name:"unfold",size:20})})}const useStyles$3=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$3(),{hasCrumbs:c,hasTabs:d}=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,{})]}),d?jsxRuntimeExports.jsx(LayoutTags,{}):null]})},useStyles$2=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}}})),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,d)=>({label:o,key:a,icon:s,children:c,type:d}),LayoutMenu=o=>{const{pathname:a}=useLocation(),{setMenuList:s}=o,[c,d]=reactExports.useState(!1),[f,g]=reactExports.useState([]),[y,S]=reactExports.useState([]),[b,E]=reactExports.useState([a]),{t:$,i18n:P}=useTranslation();reactExports.useEffect(()=>{E([a]),S(getOpenKeys(a))},[a]);const O=(A,I)=>A?jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(SvgIcon,{name:A,size:I||16})}):null,C=(A,I=[])=>(A.forEach(D=>{var U;if(!((U=D==null?void 0:D.children)!=null&&U.length))return I.push(getItem($(D.name),D.path,O(D.icon,D.iconSize)));I.push(getItem($(D.name),D.path,O(D.icon,D.iconSize),C(D.children)))}),I),R=()=>Pt(void 0,null,function*(){d(!0);try{const A=yield getAsyncMenus();g(C(A)),s(A)}finally{d(!1)}});reactExports.useEffect(()=>{R()},[P.language]);const M=A=>{if(A.length===0||A.length===1)return S(A);const I=A[A.length-1];if(I.includes(A[0]))return S(A);S([I])},N=useNavigate(),L=({key:A})=>{N(A)};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:y,selectedKeys:b,items:f,onClick:L,onOpenChange:M})})})},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:d,Content:f}=Layout,{styles:g}=useStyles$2();return jsxRuntimeExports.jsxs(Layout,{className:g.layout_wrapper,children:[jsxRuntimeExports.jsxs(d,{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(f,{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-bab6cb76.js"),["assets/image-upload-bab6cb76.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/websiteSetting-43ab3ecc.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-931bc581.js"),["assets/drag-list-931bc581.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/websiteSetting-43ab3ecc.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"列表拖拽",key:"dragList"}},{path:"drag-resize",name:"DragResize",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-resize-2b61954c.js"),["assets/drag-resize-2b61954c.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/websiteSetting-43ab3ecc.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"组件拖拽",key:"dragResize"}}]},{path:"transfer",name:"Transfer",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-db407aab.js"),["assets/index-db407aab.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/websiteSetting-43ab3ecc.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"穿梭框"}},{path:"count-up",name:"CountUp",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../count-up-f9000940.js"),["assets/count-up-f9000940.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/index-646dffa4.js","assets/websiteSetting-43ab3ecc.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-00d803ca.js"),["assets/index-00d803ca.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/websiteSetting-43ab3ecc.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"基础表单",key:"basicForm"}},{path:"search-form",name:"SearchForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-2a2e3fc1.js"),["assets/index-2a2e3fc1.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/index-be9b60c3.js","assets/websiteSetting-43ab3ecc.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-6e5fc946.js"),["assets/index-6e5fc946.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/index-d66d88ec.js","assets/Translatex-5b65ca3f.js","assets/index-646dffa4.js","assets/index-be9b60c3.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={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-ea5d9640.js"),["assets/index-ea5d9640.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/Translatex-5b65ca3f.js","assets/index-d66d88ec.js"]))),meta:{title:"个人中心",key:"profile"}},{path:"user-list",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-ddc85ec7.js"),["assets/index-ddc85ec7.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/index-d66d88ec.js","assets/Translatex-5b65ca3f.js"]))),meta:{title:"用户列表",key:"userList"}},{path:"add-user",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-54effc8f.js"),["assets/index-54effc8f.js","assets/antd-412663d3.js","assets/react-f288da4a.js","assets/Translatex-5b65ca3f.js"]))),meta:{title:"添加用户",key:"addUser"}}]},__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:UserRoute},Symbol.toStringTag,{value:"Module"})),subTitleMap=new Map([[403,t("对不起,您没有权限访问此页面。")],[404,t("对不起,您访问的页面不存在。")],[500,t("对不起,服务器发生错误。")]]),PageException=()=>{const o=useNavigate(),{status:a,withCard:s}=useLoaderData(),c=()=>{o("/home")},d=({children:f})=>s?jsxRuntimeExports.jsx(Card,{bordered:!1,children:f}):jsxRuntimeExports.jsx("div",{className:"flex-center",style:{height:"100vh"},children:f});return jsxRuntimeExports.jsx(d,{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),d=useSignIn(),f=useNavigate(),[g]=useSearchParams(),{styles:y}=useStyles$1(),S=b=>Pt(void 0,null,function*(){c(!0);try{(yield d({username:b.username,password:b.password}))&&f(g.get("redirect")||"/")}catch(E){message.error(E.message)}finally{c(!1)}});return jsxRuntimeExports.jsxs("div",{className:y["login-container"],children:[jsxRuntimeExports.jsxs("div",{className:y["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:y["login-img"]})]}),jsxRuntimeExports.jsxs("div",{className:y["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/user.tsx":__vite_glob_0_4}),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; } diff --git a/assets/image-upload-9fc51b2c.js b/assets/image-upload-bab6cb76.js similarity index 93% rename from assets/image-upload-9fc51b2c.js rename to assets/image-upload-bab6cb76.js index f995cd2..e273dc9 100644 --- a/assets/image-upload-9fc51b2c.js +++ b/assets/image-upload-bab6cb76.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,ao as v,ap as x,i as O,P as S,M as k}from"./antd-412663d3.js";import{t as i}from"./entry/index-17829e84.1711532997514.js";import{r as o}from"./react-f288da4a.js";import{P as N,U as T}from"./websiteSetting-b4442365.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,ao as v,ap as x,i as O,P as S,M as k}from"./antd-412663d3.js";import{t as i}from"./entry/index-78e5b5fb.1711533981578.js";import{r as o}from"./react-f288da4a.js";import{P as N,U as T}from"./websiteSetting-43ab3ecc.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-01e14877.js b/assets/index-00d803ca.js similarity index 98% rename from assets/index-01e14877.js rename to assets/index-00d803ca.js index d5474b0..13b2088 100644 --- a/assets/index-01e14877.js +++ b/assets/index-00d803ca.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,as as W,u as Z,z as q,at as I,au as p,w as G,v as J,i as N}from"./antd-412663d3.js";import{t as e}from"./entry/index-17829e84.1711532997514.js";import{r as v}from"./react-f288da4a.js";import{P as _,F as H}from"./websiteSetting-b4442365.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]=v.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]=v.useState([{value:1,label:e("选项1"),isLeaf:!1}]),[c,T]=v.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(p,{treeData:U,treeCheckable:!0,allowClear:!0,showCheckedStrategy:p.SHOW_PARENT,placeholder:e("请选择")})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"treeLazy",children:a.jsx(p,{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,as as W,u as Z,z as q,at as I,au as p,w as G,v as J,i as N}from"./antd-412663d3.js";import{t as e}from"./entry/index-78e5b5fb.1711533981578.js";import{r as v}from"./react-f288da4a.js";import{P as _,F as H}from"./websiteSetting-43ab3ecc.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]=v.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]=v.useState([{value:1,label:e("选项1"),isLeaf:!1}]),[c,T]=v.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(p,{treeData:U,treeCheckable:!0,allowClear:!0,showCheckedStrategy:p.SHOW_PARENT,placeholder:e("请选择")})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"treeLazy",children:a.jsx(p,{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-bc212276.js b/assets/index-2a2e3fc1.js similarity index 91% rename from assets/index-bc212276.js rename to assets/index-2a2e3fc1.js index 1b14d33..6e18a24 100644 --- a/assets/index-bc212276.js +++ b/assets/index-2a2e3fc1.js @@ -1 +1 @@ -import{j as e,J as x,K as n,n as a,ak as r,z as d}from"./antd-412663d3.js";import{t}from"./entry/index-17829e84.1711532997514.js";import{r as h}from"./react-f288da4a.js";import{G as o}from"./index-53feb174.js";import{P as j,a as c}from"./websiteSetting-b4442365.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,ak as r,z as d}from"./antd-412663d3.js";import{t}from"./entry/index-78e5b5fb.1711533981578.js";import{r as h}from"./react-f288da4a.js";import{G as o}from"./index-be9b60c3.js";import{P as j,a as c}from"./websiteSetting-43ab3ecc.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-2cd7f3f1.js b/assets/index-54effc8f.js similarity index 95% rename from assets/index-2cd7f3f1.js rename to assets/index-54effc8f.js index d815a42..394b8af 100644 --- a/assets/index-2cd7f3f1.js +++ b/assets/index-54effc8f.js @@ -1 +1 @@ -import{c,j as e,T as p,J as u,K as t,n as d,aD as o,ap as h}from"./antd-412663d3.js";import{t as a,K as x,e as m,g}from"./entry/index-17829e84.1711532997514.js";import{h as b}from"./react-f288da4a.js";import{T as j}from"./Translatex-9e5f69d4.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,aD as o,ap as h}from"./antd-412663d3.js";import{t as a,K as x,e as m,g}from"./entry/index-78e5b5fb.1711533981578.js";import{h as b}from"./react-f288da4a.js";import{T as j}from"./Translatex-5b65ca3f.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-e7f5b9e4.js b/assets/index-6e5fc946.js similarity index 99% rename from assets/index-e7f5b9e4.js rename to assets/index-6e5fc946.js index fac9e12..c9037b8 100644 --- a/assets/index-e7f5b9e4.js +++ b/assets/index-6e5fc946.js @@ -1,4 +1,4 @@ -var S8=Object.defineProperty,A8=Object.defineProperties;var M8=Object.getOwnPropertyDescriptors;var Sm=Object.getOwnPropertySymbols;var TP=Object.prototype.hasOwnProperty,CP=Object.prototype.propertyIsEnumerable;var M1=Math.pow,bP=(n,e,t)=>e in n?S8(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Tt=(n,e)=>{for(var t in e||(e={}))TP.call(e,t)&&bP(n,t,e[t]);if(Sm)for(var t of Sm(e))CP.call(e,t)&&bP(n,t,e[t]);return n},_r=(n,e)=>A8(n,M8(e));var vi=(n,e)=>{var t={};for(var r in n)TP.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Sm)for(var r of Sm(n))e.indexOf(r)<0&&CP.call(n,r)&&(t[r]=n[r]);return t};var mh=(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 A3,ah as w8,S as M3,k as fc,av as b8,aa as T8,ai as Am,aw as C8,$ as E8,a0 as R8,v as P8,I as D8,ax as I8,ay as L8,a7 as B8,T as O8,N as F8,ak as N8,g as _0,a as td,c as w3,Y as b3,K as Fo,L as UT,J as EP,az as k8,i as U8}from"./antd-412663d3.js";import{r as Y,a as At,g as T3}from"./react-f288da4a.js";import{u as G8,a as z8,b as H8,d as C3,G as E3,e as R3,f as P3,l as or,g as vw,h as vs,i as V8,j as W8,k as X8,m as Y8,n as j8,q as J8,s as Z8,v as K8,w as q8,x as $8,y as Q8,_ as e9,z as t9,A as n9,F as r9,B as i9,C as a9,t as jn,S as x0,D as o9,E as s9}from"./entry/index-17829e84.1711532997514.js";import{c as l9,U as u9}from"./index-d42bac6c.js";import{_ as w1}from"./index-646dffa4.js";import{T as ti}from"./Translatex-9e5f69d4.js";import{G as c9}from"./index-53feb174.js";function h9(n){const e=Y.useRef(null),t=Tt({mass:1,tension:170,friction:26,clamp:!1,precision:.01,velocity:0},n.panelConfig),[{xys:r},i]=G8(()=>({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:f9(s.clientX,s.clientY,l)})};return ee.jsx("div",{ref:e,children:ee.jsxs(z8.div,{className:"border border-solid ",style:{transform:r.to(d9)},onMouseLeave:a,onMouseMove:o,children:[ee.jsxs("p",{className:"text-sm flex justify-between border-solid",children:[n.title," ",n.right]}),n.children]})})}const f9=(n,e,t)=>[-(e-t.top-t.height/2)/150,(n-t.left-t.width/2)/150,1],d9=(n,e,t)=>`perspective(600px) rotateX(${n}deg) rotateY(${e}deg) scale(${t})`,b1=n=>{const i=n,{loading:e=!0,delay:t=200}=i,r=vi(i,["loading","delay"]);return ee.jsx(ti,{direction:"top",delay:t,run:!0,children:ee.jsx(A3,_r(Tt({hoverable:!0,loading:e},r),{children:n.children}))})};function p9(n){const i=n,{sliderConfig:e,children:t}=i,r=vi(i,["sliderConfig","children"]);return ee.jsx(H8,_r(Tt(Tt({},r),e),{children:t}))}function lv(n){"@babel/helpers - typeof";return lv=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},lv(n)}function q0(){return q0=Object.assign?Object.assign.bind():function(n){for(var e=1;ee in n?S8(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Tt=(n,e)=>{for(var t in e||(e={}))TP.call(e,t)&&bP(n,t,e[t]);if(Sm)for(var t of Sm(e))CP.call(e,t)&&bP(n,t,e[t]);return n},_r=(n,e)=>A8(n,M8(e));var vi=(n,e)=>{var t={};for(var r in n)TP.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Sm)for(var r of Sm(n))e.indexOf(r)<0&&CP.call(n,r)&&(t[r]=n[r]);return t};var mh=(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 A3,ah as w8,S as M3,k as fc,av as b8,aa as T8,ai as Am,aw as C8,$ as E8,a0 as R8,v as P8,I as D8,ax as I8,ay as L8,a7 as B8,T as O8,N as F8,ak as N8,g as _0,a as td,c as w3,Y as b3,K as Fo,L as UT,J as EP,az as k8,i as U8}from"./antd-412663d3.js";import{r as Y,a as At,g as T3}from"./react-f288da4a.js";import{u as G8,a as z8,b as H8,d as C3,G as E3,e as R3,f as P3,l as or,g as vw,h as vs,i as V8,j as W8,k as X8,m as Y8,n as j8,q as J8,s as Z8,v as K8,w as q8,x as $8,y as Q8,_ as e9,z as t9,A as n9,F as r9,B as i9,C as a9,t as jn,S as x0,D as o9,E as s9}from"./entry/index-78e5b5fb.1711533981578.js";import{c as l9,U as u9}from"./index-d66d88ec.js";import{_ as w1}from"./index-646dffa4.js";import{T as ti}from"./Translatex-5b65ca3f.js";import{G as c9}from"./index-be9b60c3.js";function h9(n){const e=Y.useRef(null),t=Tt({mass:1,tension:170,friction:26,clamp:!1,precision:.01,velocity:0},n.panelConfig),[{xys:r},i]=G8(()=>({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:f9(s.clientX,s.clientY,l)})};return ee.jsx("div",{ref:e,children:ee.jsxs(z8.div,{className:"border border-solid ",style:{transform:r.to(d9)},onMouseLeave:a,onMouseMove:o,children:[ee.jsxs("p",{className:"text-sm flex justify-between border-solid",children:[n.title," ",n.right]}),n.children]})})}const f9=(n,e,t)=>[-(e-t.top-t.height/2)/150,(n-t.left-t.width/2)/150,1],d9=(n,e,t)=>`perspective(600px) rotateX(${n}deg) rotateY(${e}deg) scale(${t})`,b1=n=>{const i=n,{loading:e=!0,delay:t=200}=i,r=vi(i,["loading","delay"]);return ee.jsx(ti,{direction:"top",delay:t,run:!0,children:ee.jsx(A3,_r(Tt({hoverable:!0,loading:e},r),{children:n.children}))})};function p9(n){const i=n,{sliderConfig:e,children:t}=i,r=vi(i,["sliderConfig","children"]);return ee.jsx(H8,_r(Tt(Tt({},r),e),{children:t}))}function lv(n){"@babel/helpers - typeof";return lv=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},lv(n)}function q0(){return q0=Object.assign?Object.assign.bind():function(n){for(var e=1;en.length)&&(e=n.length);for(var t=0,r=new Array(e);tt.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 K(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}},xe=function(e){return e?_.search.collapsed:_.search.expand},Me=["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),$=de(),M=$.styles,P=m.useRef(),C=m.useRef(0),k=m.useState(!p),V=N(k,2),h=V[0],U=V[1],Y=m.useState("large"),I=N(Y,2),T=I[0],J=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,G=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 B=24-(h?d:i)%24;return B}},[R,S,h,O,u]),L=m.useMemo(function(){return O>=24-S},[O]),q=m.useMemo(function(){var i={};return L?i.textAlign="right":i.paddingLeft=50,u&&(i={}),i},[L,u]),j=m.useRef(),W={resize:function(){return z()}};Me.forEach(function(i){W[i]=function(){var l;return(l=j.current)[i].apply(l,arguments)}}),m.useImperativeHandle(r,function(){return W});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",J(d)}catch(B){}},z=function(){var l=Date.now();l-C.current>100&&(X(),C.current=l)};m.useLayoutEffect(function(){var i=new window.ResizeObserver(function(){z()});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},xe(h),h?c.createElement(fe,null):c.createElement(me,null))};return c.createElement(ie,{className:ae(M.gSearch,u?"":"full-width",u?M.inline:"")},c.createElement("div",{className:"g-search-content",ref:P},c.createElement(pe,x({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:G,style:q},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-(G||0)&&R.length>1&&c.createElement(te,null):null))))))});export{De as G}; diff --git a/assets/index-d42bac6c.js b/assets/index-d66d88ec.js similarity index 95% rename from assets/index-d42bac6c.js rename to assets/index-d66d88ec.js index f9b881d..8625b53 100644 --- a/assets/index-d42bac6c.js +++ b/assets/index-d66d88ec.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,aM as r,aD as w,i,L as T}from"./antd-412663d3.js";import{a as h}from"./react-f288da4a.js";import{S as n}from"./entry/index-17829e84.1711532997514.js";import{T as N}from"./Translatex-9e5f69d4.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,aM as r,aD as w,i,L as T}from"./antd-412663d3.js";import{a as h}from"./react-f288da4a.js";import{S as n}from"./entry/index-78e5b5fb.1711533981578.js";import{T as N}from"./Translatex-5b65ca3f.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/index-3063cbff.js b/assets/index-db407aab.js similarity index 96% rename from assets/index-3063cbff.js rename to assets/index-db407aab.js index fd28a9c..2663616 100644 --- a/assets/index-3063cbff.js +++ b/assets/index-db407aab.js @@ -1 +1 @@ -var U=Object.defineProperty,W=Object.defineProperties;var q=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,q(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 z,K as u,n as S,aq as f,ar as F,W as M}from"./antd-412663d3.js";import{t as l}from"./entry/index-17829e84.1711532997514.js";import{r as k}from"./react-f288da4a.js";import{P as v,T as B}from"./websiteSetting-b4442365.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(z,{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(F,{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(M,{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 q=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,q(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 z,K as u,n as S,aq as f,ar as F,W as M}from"./antd-412663d3.js";import{t as l}from"./entry/index-78e5b5fb.1711533981578.js";import{r as k}from"./react-f288da4a.js";import{P as v,T as B}from"./websiteSetting-43ab3ecc.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(z,{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(F,{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(M,{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-f9522b80.js b/assets/index-ddc85ec7.js similarity index 98% rename from assets/index-f9522b80.js rename to assets/index-ddc85ec7.js index 87586dc..16729c6 100644 --- a/assets/index-f9522b80.js +++ b/assets/index-ddc85ec7.js @@ -1 +1 @@ -import{c as q,j as w,aD as U,i as X,P as Y,J as Z,K as k}from"./antd-412663d3.js";import{_ as p,z as b,L as y,A as B,y as I,M as F,N as ee,v as G,w as J,O as ne,P as re,Q as K,x as te,R as T,t as ie,T as ue}from"./entry/index-17829e84.1711532997514.js";import{r as h,h as ae}from"./react-f288da4a.js";import{U as oe}from"./index-d42bac6c.js";import"./Translatex-9e5f69d4.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 Q=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}}}};Q.onInit=function(e){var r=e.ready,n=r===void 0?!0:r,t=e.manual;return{loading:!t&&n}};const ce=Q;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)},D=new Map,ve=function(e){return D.get(e)},he=function(e,r){D.set(e,r),r.then(function(n){return D.delete(e),n}).catch(function(){D.delete(e)})},C={},me=function(e,r){C[e]&&C[e].forEach(function(n){return n(r)})},$=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 V(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=$(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=$(n,function(j){e.setState({data:j})}))},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=$(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&&A.splice(n,1)}}if(F){var z=function(){if(!(!H()||!Ae()))for(var e=0;e({"add-button":{background:e.colorDefault}})),Xe=()=>{const{styles:e,theme:r,cx:n}=Ge(),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(U,{gap:16,vertical:!0,children:[w.jsx(U,{justify:"end",children:w.jsx(X,{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{Xe as default}; +import{c as q,j as w,aD as U,i as X,P as Y,J as Z,K as k}from"./antd-412663d3.js";import{_ as p,z as b,L as y,A as B,y as I,M as F,N as ee,v as G,w as J,O as ne,P as re,Q as K,x as te,R as T,t as ie,T as ue}from"./entry/index-78e5b5fb.1711533981578.js";import{r as h,h as ae}from"./react-f288da4a.js";import{U as oe}from"./index-d66d88ec.js";import"./Translatex-5b65ca3f.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 Q=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}}}};Q.onInit=function(e){var r=e.ready,n=r===void 0?!0:r,t=e.manual;return{loading:!t&&n}};const ce=Q;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)},D=new Map,ve=function(e){return D.get(e)},he=function(e,r){D.set(e,r),r.then(function(n){return D.delete(e),n}).catch(function(){D.delete(e)})},C={},me=function(e,r){C[e]&&C[e].forEach(function(n){return n(r)})},$=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 V(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=$(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=$(n,function(j){e.setState({data:j})}))},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=$(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&&A.splice(n,1)}}if(F){var z=function(){if(!(!H()||!Ae()))for(var e=0;e({"add-button":{background:e.colorDefault}})),Xe=()=>{const{styles:e,theme:r,cx:n}=Ge(),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(U,{gap:16,vertical:!0,children:[w.jsx(U,{justify:"end",children:w.jsx(X,{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{Xe as default}; diff --git a/assets/index-c07fa9a2.js b/assets/index-ea5d9640.js similarity index 98% rename from assets/index-c07fa9a2.js rename to assets/index-ea5d9640.js index c51edb0..bedab3b 100644 --- a/assets/index-c07fa9a2.js +++ b/assets/index-ea5d9640.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,aB as D,aa as I,i as c,aC as T,aD as n,aE as x,L as v,I as R,az as _,a3 as o,aF as $,V as M,aG as O,aH as A,aI as P,a1 as B,aJ as E,aK as H,aL as J,a4 as K}from"./antd-412663d3.js";import{t as a,K as l}from"./entry/index-17829e84.1711532997514.js";import{a as f}from"./react-f288da4a.js";import{T as m}from"./Translatex-9e5f69d4.js";import{a as z,c as U,b as V}from"./index-d42bac6c.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",C=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}=C(),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",G="/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=G,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}=C(),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(B,{style:{fontSize:24}})},{title:"nhf066901@sina.com",icon:e.jsx(E,{style:{fontSize:24}})},{title:"leio-forver",icon:e.jsx(H,{style:{fontSize:24}})},{title:"https://juejin.cn/user/2682464101469480/posts",icon:e.jsx(J,{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:G,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,aB as D,aa as I,i as c,aC as T,aD as n,aE as x,L as v,I as R,az as _,a3 as o,aF as $,V as M,aG as O,aH as A,aI as P,a1 as B,aJ as E,aK as H,aL as J,a4 as K}from"./antd-412663d3.js";import{t as a,K as l}from"./entry/index-78e5b5fb.1711533981578.js";import{a as f}from"./react-f288da4a.js";import{T as m}from"./Translatex-5b65ca3f.js";import{a as z,c as U,b as V}from"./index-d66d88ec.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",C=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}=C(),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",G="/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=G,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}=C(),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(B,{style:{fontSize:24}})},{title:"nhf066901@sina.com",icon:e.jsx(E,{style:{fontSize:24}})},{title:"leio-forver",icon:e.jsx(H,{style:{fontSize:24}})},{title:"https://juejin.cn/user/2682464101469480/posts",icon:e.jsx(J,{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:G,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/websiteSetting-b4442365.js b/assets/websiteSetting-43ab3ecc.js similarity index 98% rename from assets/websiteSetting-b4442365.js rename to assets/websiteSetting-43ab3ecc.js index 4bb746c..7690327 100644 --- a/assets/websiteSetting-b4442365.js +++ b/assets/websiteSetting-43ab3ecc.js @@ -1 +1 @@ -import{j as t,i}from"./antd-412663d3.js";import{S as m,t as e,o as p}from"./entry/index-17829e84.1711532997514.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-412663d3.js";import{S as m,t as e,o as p}from"./entry/index-78e5b5fb.1711533981578.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 70bbb5c..4d232c3 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" /> - +