react-toolkits 0.3.32 → 0.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/lib/index.d.mts +15 -13
- package/lib/index.js +10 -10
- package/lib/index.js.map +1 -1
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
package/lib/index.d.mts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { FC, PropsWithChildren, ReactNode, Key } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { FormInstance, ModalProps,
|
|
5
|
-
import {
|
|
4
|
+
import { FormInstance, ModalProps, ButtonProps } from 'antd';
|
|
5
|
+
import { DeepPartial, Merge } from 'ts-essentials';
|
|
6
6
|
import * as zustand_middleware from 'zustand/middleware';
|
|
7
7
|
import * as zustand from 'zustand';
|
|
8
8
|
import { MenuDividerType, MenuItemType, SubMenuType, MenuItemGroupType } from 'antd/es/menu/hooks/useItems';
|
|
9
|
-
import { Merge } from 'ts-toolbelt/out/Object/Merge';
|
|
10
9
|
import { TableProps } from 'antd/es/table';
|
|
11
10
|
import { MutatorCallback, MutatorOptions } from 'swr/_internal';
|
|
12
11
|
import { RouteObject } from 'react-router-dom';
|
|
@@ -104,23 +103,23 @@ interface FilterFormWrapperProps extends PropsWithChildren {
|
|
|
104
103
|
}
|
|
105
104
|
declare const FilterFormWrapper: (props: FilterFormWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
106
105
|
|
|
107
|
-
type
|
|
108
|
-
|
|
109
|
-
content?: ReactNode | ((form: FormInstance<Values>) => ReactNode);
|
|
106
|
+
type UseFormModalOptions<Values extends object> = Omit<FormModalProps<Values>, 'open' | 'onCancel' | 'children' | 'form'> & {
|
|
107
|
+
content?: (form: FormInstance<Values>) => ReactNode;
|
|
110
108
|
};
|
|
111
|
-
declare function useFormModal<Values extends object>(
|
|
109
|
+
declare function useFormModal<Values extends object>(opts: UseFormModalOptions<Values>): {
|
|
112
110
|
Modal: react.ReactPortal;
|
|
113
|
-
showModal: (
|
|
111
|
+
showModal: (scopedOpts?: Omit<UseFormModalOptions<Values>, 'footerRender' | 'onConfirm' | 'onCancel' | 'content' | 'form'>) => void;
|
|
114
112
|
closeModal: () => void;
|
|
115
113
|
form: FormInstance<Values>;
|
|
116
114
|
};
|
|
117
|
-
interface FormModalProps<Values extends object> extends Omit<ModalProps, 'onCancel' | 'children' | 'destroyOnClose' | 'forceRender' | 'getContainer' | 'footer' | 'confirmLoading' | 'onOk'> {
|
|
115
|
+
interface FormModalProps<Values extends object> extends PropsWithChildren, Omit<ModalProps, 'onCancel' | 'children' | 'destroyOnClose' | 'forceRender' | 'getContainer' | 'footer' | 'confirmLoading' | 'onOk'> {
|
|
116
|
+
form: FormInstance<Values>;
|
|
118
117
|
renderFooter?: (form: FormInstance<Values>) => ReactNode;
|
|
119
118
|
onCancel?: VoidFunction;
|
|
120
119
|
onConfirm?: (values: Values) => Promise<void>;
|
|
121
|
-
initialValues?:
|
|
120
|
+
initialValues?: DeepPartial<Values>;
|
|
122
121
|
}
|
|
123
|
-
declare const FormModal: <Values extends object>(props:
|
|
122
|
+
declare const FormModal: <Values extends object>(props: FormModalProps<Values>) => react_jsx_runtime.JSX.Element;
|
|
124
123
|
|
|
125
124
|
interface Game {
|
|
126
125
|
id: string;
|
|
@@ -199,11 +198,14 @@ interface QueryListProps<Item, Values, Response> extends Pick<TableProps<Item>,
|
|
|
199
198
|
code?: string;
|
|
200
199
|
isGlobalNS?: boolean;
|
|
201
200
|
headers?: Record<string, string>;
|
|
202
|
-
renderForm?: (form: FormInstance<Values>) => ReactNode;
|
|
203
201
|
transformArg?: (page: number, size: number, values: Values | undefined) => unknown;
|
|
204
202
|
transformResponse?: (response: Response) => ListResponse<Item>;
|
|
205
203
|
afterSuccess?: (response: ListResponse<Item>, action?: QueryListAction) => void;
|
|
206
204
|
confirmText?: ReactNode;
|
|
205
|
+
form?: {
|
|
206
|
+
instance: FormInstance<Values>;
|
|
207
|
+
children: ReactNode;
|
|
208
|
+
};
|
|
207
209
|
}
|
|
208
210
|
declare const QueryList: <Item extends object, Values extends object | undefined, Response_1 = ListResponse<Item>>(props: QueryListProps<Item, Values, Response_1>) => react_jsx_runtime.JSX.Element;
|
|
209
211
|
|
|
@@ -311,4 +313,4 @@ type RequestResponse<T> = Pick<Response, 'headers' | 'status' | 'statusText' | '
|
|
|
311
313
|
};
|
|
312
314
|
declare function request<T = any>(url: string, opts?: RequestOptions): Promise<RequestResponse<T>>;
|
|
313
315
|
|
|
314
|
-
export { ContextProvider, DynamicTags, DynamicTagsProps, FilterFormWrapper, FilterFormWrapperProps, FormModal, Game, GameSelect, GameState, Highlight, HighlightTextsProps, Layout, LayoutProps, Locale, NavMenu, NavMenuItem, PermissionButton, PermissionButtonProps, PermissionGuard, PermissionGuardProps, QueryList, QueryListAction, QueryListProps, RequestError, RequireGame, TokenState,
|
|
316
|
+
export { ContextProvider, DynamicTags, DynamicTagsProps, FilterFormWrapper, FilterFormWrapperProps, FormModal, Game, GameSelect, GameState, Highlight, HighlightTextsProps, Layout, LayoutProps, Locale, NavMenu, NavMenuItem, PermissionButton, PermissionButtonProps, PermissionGuard, PermissionGuardProps, QueryList, QueryListAction, QueryListProps, RequestError, RequireGame, TokenState, UseFormModalOptions, UserWidget, routes$1 as baseRoutes, contextStore, mixedStorage, routes as permissionRoutes, request, useFormModal, useGameStore, usePermission, usePermissions, useQueryListStore, useTokenStore, useToolkitsContext, useTranslation, useValidateToken };
|
package/lib/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { lazy, useContext, useState, useCallback, useMemo, useEffect, createContext, useRef, Suspense } from 'react';
|
|
2
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
2
|
import { has, template, get, merge, pick } from 'lodash-es';
|
|
3
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import * as we from 'antd';
|
|
5
5
|
import { Form, Button, Modal, theme, Space, Input, Tag, Menu, Dropdown, Card, Empty, Divider, Spin, Result, Select, Tooltip, Table, Row, Col, Alert, App, Breadcrumb, Skeleton, Descriptions, Typography, Collapse, Checkbox } from 'antd';
|
|
6
6
|
import { createPortal, flushSync } from 'react-dom';
|
|
7
|
-
import
|
|
7
|
+
import Ht from 'query-string';
|
|
8
8
|
import { create } from 'zustand';
|
|
9
9
|
import { persist, createJSONStorage } from 'zustand/middleware';
|
|
10
|
-
import
|
|
10
|
+
import G1 from 'jwt-decode';
|
|
11
11
|
import { Navigate, useNavigate, useLocation, Link, useSearchParams, useParams } from 'react-router-dom';
|
|
12
|
-
import
|
|
12
|
+
import B1 from 'swr/immutable';
|
|
13
13
|
import { createRoot } from 'react-dom/client';
|
|
14
|
-
import
|
|
14
|
+
import De, { mutate, useSWRConfig } from 'swr';
|
|
15
15
|
import { PlusOutlined, LogoutOutlined, UserOutlined, AliyunOutlined, UserAddOutlined, UsergroupAddOutlined } from '@ant-design/icons';
|
|
16
|
-
import
|
|
16
|
+
import me from 'swr/mutation';
|
|
17
17
|
import { produce } from 'immer';
|
|
18
|
-
import
|
|
19
|
-
import
|
|
18
|
+
import Zs from './logo-L6MFCL6M.png';
|
|
19
|
+
import to from 'antd/es/typography/Link';
|
|
20
20
|
|
|
21
|
-
var Zt=Object.defineProperty,l1=Object.defineProperties;var p1=Object.getOwnPropertyDescriptors;var Le=Object.getOwnPropertySymbols;var Nt=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable;var Vt=(o,t,s)=>t in o?Zt(o,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[t]=s,k=(o,t)=>{for(var s in t||(t={}))Nt.call(t,s)&&Vt(o,s,t[s]);if(Le)for(var s of Le(t))Gt.call(t,s)&&Vt(o,s,t[s]);return o},F=(o,t)=>l1(o,p1(t));var O=(o,t)=>{var s={};for(var i in o)Nt.call(o,i)&&t.indexOf(i)<0&&(s[i]=o[i]);if(o!=null&&Le)for(var i of Le(o))t.indexOf(i)<0&&Gt.call(o,i)&&(s[i]=o[i]);return s};var T=(o,t)=>()=>(o&&(t=o(o=0)),t);var ue=(o,t)=>{for(var s in t)Zt(o,s,{get:t[s],enumerable:!0});};var v=(o,t,s)=>new Promise((i,n)=>{var r=a=>{try{l(s.next(a));}catch(c){n(c);}},m=a=>{try{l(s.throw(a));}catch(c){n(c);}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(r,m);l((s=s.apply(o,t)).next());});var p=T(()=>{});var u1,Et,Wt=T(()=>{p();u1={noEntitlement:"No permission, please contact the administrator.",name:"Name",creationTime:"Creation Time",operation:"Operation",update:"Update",edit:"Edit",delete:"Delete",selectAll:"Select All",game:"Game",user:"User",role:"Role",Login:{title:"Login Method",thirdParty:"Third Party Login",loginWithIDass:"IDass Login",notRegistered:"You are not yet registered on the platform, please contact the administrator"},NotFound:{subTitle:"The page you visited does not exist",buttonText:"Return to page"},FilterFormWrapper:{confirmText:"Search",resetText:"Reset"},FormModal:{confirmText:"Confirm",cancelText:"Cancel"},GameSelect:{label:"Current Game",placeholder:"Please select a game"},RequireGame:{description:"Please select a game"},UserWidget:{logoutText:"Logout"},UserList:{createTitle:"Create User",createSuccessfully:"User created successfully",updateTitle:"Update User",updateSuccessfully:"User updated successfully",deleteTitle:"Delete User",deleteContent:"Are you sure you want to delete user <%= user %>?",deleteSuccessfully:"User deleted successfully"},RoleList:{createTitle:"Create Role",createSuccessfully:"Role created successfully",updateTitle:"Update Role",updateSuccessfully:"Role updated successfully",deleteTitle:"Delete Role",deleteContent:"Are you sure you want to delete role <%= role %>?",deleteSuccessfully:"Role deleted successfully"},PermissionList:{failedDescription:"Failed to get permission list",baseSectionTitle:"Platform Basic Permissions",gameSectionTitle:"Game Permissions",gameSectionDescription:"Please select a game first",gameSelectPlaceholder:"Please select a game first",removeText:"Remove",addText:"Add Game Permissions"},RoleDetail:{title:"Role Details"}},Et=u1;});function R(){return useContext(zt)}var Kt,Ie,zt,qt,y1,A=T(()=>{p();Kt={title:"",menuItems:[],hideGameSelect:!1,usePermissionApiV2:!1},Ie=Kt,zt=createContext(Kt);qt=s=>{var i=s,{children:o}=i,t=O(i,["children"]);let n=R(),r=k(k({},n),t);return Ie=r,jsx(zt.Provider,{value:r,children:o})};qt.displayName="ToolkitsContextProvider";y1=qt;});function S(){let{locale:o=Et}=R();return (t,s)=>has(o,t)?template(get(o,t))(s):t}var G=T(()=>{p();Wt();A();});var S1,Je,Ye=T(()=>{p();G();S1=o=>{let{confirmText:t,extras:s,onConfirm:i,onReset:n,children:r}=o,{token:m}=theme.useToken(),l=S(),a={maxWidth:"none",background:m.colorFillAlter,borderWidth:m.lineWidth,borderStyle:m.lineType,borderColor:m.colorBorder,borderRadius:m.borderRadiusLG,padding:24,marginBottom:24};return jsx("div",{style:a,children:jsxs("div",{className:"flex",children:[jsx("div",{className:"flex-1",children:r}),jsx("div",{className:"ml-8",children:jsxs(Space,{children:[jsx(Button,{type:"primary",onClick:i,children:t||l("FilterFormWrapper.confirmText")}),jsx(Button,{htmlType:"reset",onClick:n,children:l("FilterFormWrapper.resetText")}),s==null?void 0:s.map(c=>jsx("span",{children:c.children},c.key))]})})]})})},Je=S1;});function X(o){let b=o,{content:t,labelAlign:s,labelWrap:i,labelCol:n,wrapperCol:r,layout:m}=b,l=O(b,["content","labelAlign","labelWrap","labelCol","wrapperCol","layout"]),[a]=Form.useForm(),[c,f]=useState(!1),[h,y]=useState(l),g=w=>{y(w?merge(l,w):l),f(!0);},x=useCallback(()=>{f(!1),a.resetFields();},[a]),M=useMemo(()=>({form:a,labelAlign:s,labelWrap:i,labelCol:n,wrapperCol:r,layout:m}),[a,s,n,i,m,r]);return {Modal:useMemo(()=>createPortal(jsx(Form,F(k({},M),{preserve:!0,children:jsx(jt,F(k({},h),{open:c,onCancel:x,children:typeof t=="function"?t(a):t}))})),document.body),[x,t,a,M,h,c]),showModal:g,closeModal:x,form:a}}var jt,I1,Fe=T(()=>{p();G();jt=o=>{let M=o,{initialValues:t,renderFooter:s,className:i,children:n,onCancel:r,onConfirm:m}=M,l=O(M,["initialValues","renderFooter","className","children","onCancel","onConfirm"]),a=Form.useFormInstance(),[c,f]=useState(!1),h=S(),y=()=>{r==null||r();},g=()=>v(void 0,null,function*(){try{f(!0);let d=yield a.validateFields();yield m==null?void 0:m(d),r==null||r(),a.resetFields();}finally{f(!1);}}),x=s?s(a):[jsx(Button,{onClick:y,children:h("FormModal.cancelText")},"cancel"),jsx(Button,{type:"primary",loading:c,onClick:g,children:h("FormModal.confirmText")},"submit")];return useEffect(()=>{a.setFieldsValue(t);},[t,a]),jsx(Modal,F(k({},l),{destroyOnClose:!0,forceRender:!0,className:i+" text-start",getContainer:!1,footer:x,onCancel:r,children:n}))},I1=jt;});var tt,ot=T(()=>{p();tt={getItem:o=>sessionStorage.getItem(o)||localStorage.getItem(o),setItem:(o,t)=>{sessionStorage.setItem(o,t),localStorage.setItem(o,t);},removeItem:o=>v(void 0,null,function*(){sessionStorage.removeItem(o),localStorage.removeItem(o);})};});function V(o,t){return v(this,null,function*(){let b=t!=null?t:{},{body:s,params:i,headers:n,responseType:r="json",isGlobalNS:m}=b,l=O(b,["body","params","headers","responseType","isGlobalNS"]),a=Jt.parseUrl(o),c=Object.assign({},a.query,i),f={skipNull:!0,skipEmptyString:!0,strict:!0,encode:!0},h=Jt.stringify(c,f);o=h?`${a.url}?${h}`:o,n=new Headers(n);let y=z.getState().token;if(n.set("Authorization",`Bearer ${y}`),Ie.usePermissionApiV2){let w=ne.getState().game;m?n.set("App-ID","global"):w&&n.set("App-ID",w.id);}r==="blob"?n.append("Accept","application/octet-stream"):n.append("Accept","application/json");let g=F(k({},l),{headers:n,body:s===null||s instanceof FormData?s:JSON.stringify(s)}),x=yield fetch(o,g);if(!x.ok)throw new ye({status:x.status});let M=pick(x,["headers","status","statusText","url"]);if(r==="blob"){let w=yield x.blob();return F(k({},M),{data:w})}let d=yield x.json();if(d.code===0||d.status===0)return F(k({},M),{data:d.data});throw new ye({status:x.status,message:d.msg})})}var ye,_=T(()=>{p();A();be();re();ye=class extends Error{constructor(s){super(s==null?void 0:s.message);this.status=s==null?void 0:s.status;}};});function A1(){let o=useNavigate(),{clearToken:t}=z(),[s,i]=useState(!1),{usePermissionApiV2:n}=R();O1(!s&&location.pathname!=="/login"?n?"/api/usystem/user/checkV2":"/api/usystem/user/check":null,r=>V(r,{method:"post",body:{permissions:["100001"]}}),{suspense:!0,shouldRetryOnError:!1,onError(r){r.status===401?(t(),o("/login")):r.status===412&&(t(),o("/login",{state:{notUser:!0}}));}}),useEffect(()=>{i(!0);},[]);}var z,re=T(()=>{p();_();A();z=create()(persist((o,t,s)=>({token:"",getUser:()=>{try{return N1(t().token)}catch(i){return null}},setToken:i=>o({token:i}),clearToken:()=>{t().setToken(""),s.persist.clearStorage();}}),{name:"token",partialize:o=>({token:o.token})}));});function J1(){let{usePermissionApiV2:o}=R(),t=z(n=>n.getUser()),{data:s,isLoading:i}=O1(o&&t?`/api/usystem/game/all?user=${t.authorityId}`:null,n=>V(n,{isGlobalNS:!0}).then(r=>r.data));return {games:s,isLoading:i}}var j1,ne,Y1,st,be=T(()=>{p();ot();G();A();re();_();(({Text:j1}=Typography)),ne=create()(persist(o=>({game:null,setGame:t=>o({game:t})}),{name:"game",storage:createJSONStorage(()=>tt),partialize:o=>({game:o.game})}));Y1=()=>{let o=S(),{gameFilter:t}=R(),{game:s,setGame:i}=ne(),{games:n,isLoading:r}=J1(),m=useMemo(()=>{var a,c;return (c=(a=n!=null?n:[])==null?void 0:a.filter(f=>!t||t(f)))==null?void 0:c.map(f=>({label:f.name,value:f.id}))},[n,t]),l=useCallback(a=>v(void 0,null,function*(){let c=(n!=null?n:[]).find(f=>f.id===a);c&&i(c);}),[n,i]);return useEffect(()=>{!r&&(m.length===0||!m.some(a=>a.value===(s==null?void 0:s.id)))&&i(null);},[r,s,m,i]),jsxs(Space,{children:[jsx(j1,{children:o("GameSelect.label")}),jsx(Select,{showSearch:!0,optionFilterProp:"label",value:s==null?void 0:s.id,placeholder:o("GameSelect.placeholder"),loading:r,style:{width:"200px"},options:m,onChange:l})]})},st=Y1;});function rs(o){let t=document.createElement("div"),s=createRoot(t);return new Promise(i=>{setTimeout(()=>{flushSync(()=>{s.render(o);}),i(t.innerHTML);});})}var is,ns,xe,Ve=T(()=>{p();is=o=>{let t=/(<[^>]*>)/;return o.split(t).filter(s=>s!=="")};ns=o=>{let{texts:t,children:s}=o,[i,n]=useState("");return useEffect(()=>{rs(s).then(r=>{let m=is(r);for(let l of t)for(let a=0;a<m.length;a++)m[a]=m[a].replace(String(l),`<span style='color: #DC143C;'>${l}</span>`);n(m.join(""));});},[s,t]),jsx("p",{dangerouslySetInnerHTML:{__html:i}})},xe=ns;});function Ze(o,t){let{usePermissionApiV2:s}=R(),{data:i,isValidating:n,isLoading:r}=Oe(o.length>0?[s?"/api/usystem/user/checkV2":"/api/usystem/user/check",o]:null,([m])=>V(m,{method:"post",body:{permissions:o},isGlobalNS:t==null?void 0:t.isGlobalNS}).then(l=>l.data.has_all?o.reduce((a,c)=>(a[c]=!0,a),{}):o.reduce((a,c)=>(a[c]=l.data[c],a),{})),{suspense:t==null?void 0:t.suspense,shouldRetryOnError:!1});return {data:i,isValidating:n,isLoading:r}}function W(o,t){var r;let{data:s,isValidating:i,isLoading:n}=Ze(o?[o]:[],t);return o===void 0?{accessible:!0,isValidating:!1,isLoading:!1}:{accessible:(r=s==null?void 0:s[o])!=null?r:!1,isValidating:i,isLoading:n}}var Q=T(()=>{p();A();_();});var Es,$,Ge=T(()=>{p();G();Q();Es=o=>{let c=o,{children:t,code:s,showLoading:i,isGlobalNS:n}=c,r=O(c,["children","code","showLoading","isGlobalNS"]),{accessible:m,isLoading:l}=W(s,{isGlobalNS:n}),a=S();return l?jsx(Button,F(k({loading:i,disabled:!i},r),{children:t})):m?jsx(Button,F(k({},r),{children:t})):jsx(Tooltip,{defaultOpen:!1,title:a("noEntitlement"),children:jsx(Button,F(k({disabled:!0},r),{children:t}))})},$=Es;});var K,Me=T(()=>{p();K=create((o,t)=>({keyMap:new Map,paginationMap:new Map,mutate:(s,i,n,r)=>{var h,y,g;let{keyMap:m,paginationMap:l}=t(),a=m.get(s),{page:c=1,size:f=10}=(h=l.get(s))!=null?h:{};i?(!i.page||i.page===c)&&(!i.size||i.size===f)?mutate(a,n,r):o({paginationMap:new Map(l).set(s,{page:(y=i.page)!=null?y:c,size:(g=i.size)!=null?g:f})}):mutate(a,n,r);}}));});var co,ti,oi,Pe,De=T(()=>{p();G();Ye();Q();_();Me();co=(n=>(n.Confirm="confirm",n.Reset="reset",n.Jump="jump",n.Init="init",n))(co||{}),ti={list:[],total:0},oi=o=>{var vt,Lt;let Rt=o,{code:t,confirmText:s,url:i,headers:n,isGlobalNS:r,renderForm:m,transformArg:l,transformResponse:a,afterSuccess:c}=Rt,f=O(Rt,["code","confirmText","url","headers","isGlobalNS","renderForm","transformArg","transformResponse","afterSuccess"]),h=S(),{accessible:y,isLoading:g}=W(t,{isGlobalNS:r}),[x]=Form.useForm(),M=useRef(),{mutate:d,paginationMap:b,keyMap:w}=K(),{page:I=1,size:E=10}=(vt=b.get(i))!=null?vt:{},[q,fe]=useState(),[He,j]=useState(!1),Re=(Lt=l==null?void 0:l(I,E,q))!=null?Lt:F(k({},q),{page:I,size:E}),H=useCallback((...Y)=>d(i,...Y),[d,i]),L=Jt.parseUrl(i),te=Object.assign({},L.query,Re),J=Jt.stringify(te),de=He?`${L.url}?${J}`:null,{refreshInterval:t1}=useSWRConfig(),{data:oe,isLoading:o1,isValidating:s1}=Oe(de,Y=>v(void 0,null,function*(){var Ft;let ve=yield V(Y,{headers:n,isGlobalNS:r}),It=(Ft=a==null?void 0:a(ve.data))!=null?Ft:ve.data;return c==null||c(It,M.current),M.current=void 0,It}),{shouldRetryOnError:!1,fallbackData:ti}),i1=(Y,ve)=>v(void 0,null,function*(){M.current="jump",H({page:Y,size:ve});}),r1={showSizeChanger:!0,showQuickJumper:!0,current:I,pageSize:E,total:oe==null?void 0:oe.total,onChange:i1},n1=()=>v(void 0,null,function*(){M.current="confirm",fe(x.getFieldsValue());try{yield x.validateFields(),H({page:1},void 0,{revalidate:!0}),j(!0);}catch(Y){H({page:1},void 0,{revalidate:!1}),j(!1);}}),Qe=useCallback(()=>v(void 0,null,function*(){x.resetFields(),fe(x.getFieldsValue());try{yield x.validateFields(),H({page:1},void 0,{revalidate:!0}),j(!0);}catch(Y){x.resetFields(),H({page:1},void 0,{revalidate:!1}),j(!1);}}),[x,H]),a1=()=>{M.current="reset",Qe();};return useEffect(()=>{y&&(M.current="init",Qe());},[y,i,x,Qe]),useEffect(()=>{w.set(i,de);},[w,de,i]),g?jsx(Spin,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:300}}):y?jsxs("div",{children:[m&&jsx(Je,{confirmText:s,onReset:a1,onConfirm:n1,children:m(x)}),jsx(Table,F(k({},f),{dataSource:oe==null?void 0:oe.list,loading:t1===0?s1:o1,pagination:r1}))]}):jsx(Result,{status:403,subTitle:h("noEntitlement")})},Pe=oi;});var fo,uo=T(()=>{p();fo="https://idaas.ifunplus.cn/enduser/api/application/plugin_FunPlus/sso/v1";});var ii,go,ho=T(()=>{p();ii=()=>jsxs("svg",{viewBox:"0 0 1620 1028",xmlns:"http://www.w3.org/2000/svg",children:[jsx("g",{id:"a"}),jsx("g",{id:"b",children:jsx("g",{id:"c",children:jsxs("g",{children:[jsx("path",{fill:"#e8f2fa",d:"M1543.84,1025.63c-92.65,0-1442.29,.34-1443.07-2.11l-.13-.31s-.13-.3-.13-.45c-.52-1.23-207.95-345.42,114.53-585.03,126.18-93.75-7.9-155.64,92.44-260.01,115.31-119.94,241.15,12.74,369.38-41.64,22.66-9.6,45.39-25.05,68.15-48.76C797.78,32.37,870.19,6.95,944.96,1.25c143.27-10.86,304.51,50.23,387.71,139.53,16.75,17.98,92.93,111.03,32.88,238.91-37.91,80.74,120.91,157.86,177.35,250.06,143.49,234.42,2.24,392.82,.93,395.87Z"}),jsxs("g",{opacity:".5",children:[jsx("g",{opacity:".5",children:jsx("path",{fill:"#a9c2ff",d:"M522.98,381s-10.51-89.31-55.62-142.6c-6-7.08-17.47-2.57-17.28,6.76,0,.16,0,.31,.01,.47,.58,15.93,51.09,83.13,72.89,135.37Z"})}),jsx("g",{opacity:".5",children:jsx("path",{fill:"#a9c2ff",d:"M528.46,406.57s-44.95-111.62-121.74-160.99c-4.68-3.01-11.02-1.92-14.16,2.72-2.04,3.02-2.96,7.73-.67,15.1,6.12,19.63,91.75,85.72,136.57,143.18Z"})})]}),jsxs("g",{children:[jsx("path",{fill:"#73b471",d:"M1088.4,378.19s-40.25-25.14-19.73-56.1c0,0,16.18-18.86,32.87-23.19,0,0-10.72,47-1.98,48.49,8.75,1.48,8.23-53.25,8.23-53.25,0,0,44.27-19.36,61.23-16.97,0,0-28.81,45.13-19.97,44.38,8.84-.75,40.96-46.29,40.96-46.29,0,0,44.84-6.49,50.9,20.56,6.05,27.05-6.03,39.94-12.69,41.34-6.66,1.4-48.94-.94-48.07,4.68,.87,5.62,29.08,15.74,45.22,11.39,0,0-19.38,43.29-42.36,40.09-22.99-3.2-29.54-17.99-43.78-19.7-14.24-1.71-24.84,1.75-17.85,5.95,6.98,4.2,31.27,2.59,42.4,13.03,11.13,10.43,20.22,16.96-1.39,20.52-21.61,3.56-59.96-.84-66.97-17.88l-7.01-17.04Z"}),jsxs("g",{children:[jsx("path",{fill:"#73b471",d:"M1220.24,303.33s-116.93,33.06-131.84,74.86c0,0-.22,18.97-12.65,40.22l-.34,8.36s13.25-27.92,20-31.54c0,0-24.32-37.87,124.83-91.9Z"}),jsx("path",{fill:"#73b471",d:"M1075.75,418.41s-18.91,26.66-10.13,60.45l4.63-1.05s-2.94-36.94,7.12-55.03c10.06-18.09-1.62-4.37-1.62-4.37Z"})]})]}),jsxs("g",{children:[jsx("path",{fill:"#9bd399",d:"M925.53,377.18s-67.6,6.07-70.13-47.44c0,0,2.69-35.79,18.25-55.28,0,0,27.38,63.45,38.71,57.55,11.32-5.9-35.54-68.47-35.54-68.47,0,0,34.61-60.79,56.16-72.8,0,0,4.97,77.02,14.52,68.48,9.54-8.54,8.04-88.93,8.04-88.93,0,0,46.15-46.48,75.98-20.59,29.83,25.89,26.82,51.24,20.33,58.64-6.49,7.4-57.15,41.49-51.4,47.2,5.75,5.71,46.78-7.17,61.69-26.21,0,0,14.28,66.7-14.89,83.01-29.17,16.31-49.21,4.98-67.06,15.39-17.84,10.41-27.12,23.62-15.53,22.38,11.59-1.24,38.19-24.21,59.83-21.88,21.64,2.33,37.62,1.94,15.74,24.83-21.87,22.89-69.75,51.18-92.22,37.65l-22.48-13.53Z"}),jsxs("g",{children:[jsx("path",{fill:"#9bd399",d:"M1014.06,176.32s-106.69,139.76-88.53,200.87c0,0,15.78,22.04,19.44,57.32l6.67,9.92s-8.34-43.67-3.63-53.71c0,0-60.01-22.45,66.05-214.39Z"}),jsx("path",{fill:"#9bd399",d:"M944.97,434.5s.76,47.15,39.44,78.42l4.44-5.24s-34.61-39.97-38.32-69.55c-3.71-29.58-5.56-3.62-5.56-3.62Z"})]})]}),jsxs("g",{children:[jsxs("g",{children:[jsx("path",{fill:"#b6cfff",d:"M290.34,904.31s-18.93-22.41-1.17-36.64c0,0,12.98-7.97,23.56-7.32,0,0-14.99,25.5-10.14,28.04,4.85,2.54,14.69-29.64,14.69-29.64,0,0,29.53-2.91,39.03,1.73,0,0-25.25,20.96-19.93,22.2,5.32,1.25,32.58-19.32,32.58-19.32,0,0,27.48,4.74,26.02,21.75-1.47,17.01-10.94,22.26-15.1,21.81-4.16-.45-28.51-9.88-29.04-6.42-.53,3.46,14.13,14.77,24.39,15.29,0,0-19.38,21.68-32.26,15.42-12.88-6.26-13.98-16.17-22.01-19.89-8.03-3.72-14.88-3.71-11.57,.08,3.31,3.79,17.84,7.48,22.43,15.72,4.59,8.24,8.71,13.79-4.61,11.76-13.32-2.03-34.98-11.92-35.93-23.25l-.95-11.32Z"}),jsxs("g",{children:[jsx("path",{fill:"#b6cfff",d:"M381.48,885.57s-74.65-2.92-91.14,18.74c0,0-3.65,11.08-14.87,21.16l-1.75,4.83s12.94-13.84,17.56-14.67c0,0-7.24-26.83,90.19-30.06Z"}),jsx("path",{fill:"#b6cfff",d:"M275.48,925.47s-16.02,12.02-17.14,33.5l2.91,.26s5.12-22.21,14.37-30.89c9.25-8.68-.14-2.87-.14-2.87Z"})]})]}),jsxs("g",{children:[jsx("path",{fill:"#a9c2ff",d:"M224.15,876.13s30.12-17.11,16.06-40.33c0,0-11.24-14.26-23.29-17.92,0,0,6.42,34.62,0,35.44-6.43,.81-4.42-39.11-4.42-39.11,0,0-31.72-15.48-44.17-14.26,0,0,19.68,33.81,13.25,33-6.43-.81-28.51-35.03-28.51-35.03,0,0-32.53-6.11-37.75,13.44-5.22,19.55,3.21,29.33,8.03,30.55,4.82,1.22,35.74,.81,34.94,4.89-.8,4.07-21.69,10.59-33.33,6.92,0,0,12.85,32.18,29.72,30.55,16.87-1.63,22.09-12.22,32.53-13.03,10.44-.81,18.07,2.04,12.85,4.89-5.22,2.85-22.89,.93-31.32,8.21-8.43,7.27-15.26,11.75,.4,15.01,15.66,3.26,43.77,1.22,49.39-11l5.62-12.22Z"}),jsxs("g",{children:[jsx("path",{fill:"#a9c2ff",d:"M130.18,817.47s84.33,27.7,93.97,58.66c0,0-.4,13.85,8.03,29.74v6.11s-8.83-20.78-13.65-23.63c0,0,18.87-26.88-88.35-70.88Z"}),jsx("path",{fill:"#a9c2ff",d:"M232.18,905.87s13.01,20.03,5.59,44.42l-3.35-.91s3.25-26.86-3.56-40.37c-6.8-13.51,1.31-3.14,1.31-3.14Z"})]})]}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M272.06,852.53s-39.7-22.55-21.17-53.16c0,0,14.82-18.79,30.7-23.63,0,0-8.47,45.64,0,46.72,8.47,1.07,5.82-51.55,5.82-51.55,0,0,41.82-20.4,58.23-18.79,0,0-25.94,44.57-17.47,43.49,8.47-1.07,37.58-46.18,37.58-46.18,0,0,42.88-8.05,49.76,17.72,6.88,25.77-4.23,38.66-10.59,40.27-6.35,1.61-47.11,1.07-46.05,6.44,1.06,5.37,28.58,13.96,43.94,9.13,0,0-16.94,42.42-39.17,40.27-22.23-2.15-29.11-16.11-42.88-17.18-13.76-1.07-23.82,2.69-16.94,6.44,6.88,3.76,30.17,1.23,41.29,10.82,11.12,9.59,20.12,15.49-.53,19.79-20.64,4.3-57.7,1.61-65.11-14.5l-7.41-16.11Z"}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M395.93,775.21s-111.16,36.51-123.87,77.32c0,0,.53,18.26-10.59,39.2v8.05s11.65-27.39,18-31.14c0,0-24.88-35.44,116.46-93.43Z"}),jsx("path",{fill:"#cedfff",d:"M261.48,891.73s-17.14,26.41-7.37,58.55l4.41-1.2s-4.28-35.41,4.69-53.21c8.97-17.81-1.73-4.14-1.73-4.14Z"})]})]}),jsx("path",{fill:"#bbd3ff",d:"M270.72,1019.99c42.95,0,77.77-35.32,77.77-78.89H192.96c0,43.57,34.82,78.89,77.77,78.89Z"}),jsx("path",{fill:"#bbd3ff",d:"M349.57,1024.01H191.88c0-5.37,4.3-9.73,9.59-9.73h138.49c5.3,0,9.59,4.36,9.59,9.73h0Z"}),jsx("rect",{fill:"#80a1e6",height:"2.42",width:"159.86",y:"941.11",x:"190.4"})]}),jsx("path",{fill:"#768cee",d:"M801.19,578.05l-34.8,419.74s-3.65,25.44,15.01,25.49c30.68,.07,152.69,0,152.69,0,0,0-23.09-5.3-22.81-17.21,.33-14.05,40.67-431.99,40.67-431.99l-150.76,3.97Z"}),jsx("path",{fill:"#a9c2ff",d:"M945.58,1015.66c-6.03,.02-124.16,.22-154.03-.17-13.02-.16-15.3-11.74-15.41-19.24-.05-3.59,.4-6.25,.4-6.25l.9-10.91,2.31-27.81,2.04-24.57,2.62-31.57,2.2-26.64,24.73-298.26,150.76-3.97s-16.99,174.91-29.01,302.22c-1.34,14.19-2.62,27.79-3.8,40.48-.38,4.05-.75,8.02-1.11,11.88-1.11,12.05-2.13,23.11-3.02,32.88-.47,5.15-.9,9.93-1.29,14.31-1.53,17.17-2.43,28.13-2.44,30.22,0,1.22,.1,2.35,.29,3.4,2.47,13.38,21.59,13.98,23.86,13.98Z"}),jsx("polygon",{fill:"#a9c2ff",points:"435.05 349.47 519.82 694.86 531.43 742.16 570.91 903.04 1304.39 903.04 1158.87 349.47 435.05 349.47"}),jsx("polygon",{fill:"#768cee",points:"435.05 349.46 423.31 353.44 555.29 915.06 570.91 903.04 435.05 349.46"}),jsx("polygon",{fill:"#809bf5",points:"555.29 915.06 1284.26 915.06 1304.39 903.04 570.91 903.04 555.29 915.06"}),jsx("rect",{fill:"#a9c2ff",transform:"translate(1780.4 2038.92) rotate(180)",height:"7.61",width:"157.83",y:"1015.66",x:"811.28"}),jsx("polygon",{fill:"#899bfa",points:"928.99 915.05 928.18 920.87 779.74 951.29 781.78 926.72 782.75 915.05 928.99 915.05"}),jsx("g",{opacity:".5",children:jsx("path",{fill:"#899bfa",d:"M945.58,1015.66c-6.03,.02-124.16,.22-154.03-.17-13.02-.16-15.3-11.74-15.41-19.24l147.73-28.19c-1.53,17.17-2.43,28.13-2.44,30.22,0,1.22,.1,2.35,.29,3.4,2.47,13.38,21.59,13.98,23.86,13.98Z"})}),jsx("polygon",{fill:"#899bfa",points:"435.05 349.46 1158.87 349.46 1276.31 794.36 544.24 794.36 435.05 349.46"}),jsx("polygon",{fill:"#5158bf",points:"1242.18 775.08 564.46 775.08 540.24 677.22 530.87 639.35 527.05 623.91 502.16 523.34 500.87 518.1 487.71 464.94 481.83 441.15 476.81 420.86 472.71 404.31 465.03 373.3 1132.98 373.3 1141.41 404.31 1145.91 420.86 1151.42 441.15 1157.88 464.94 1200.47 621.65 1200.47 621.65 1204.08 634.93 1205.76 641.09 1235.16 749.28 1242.18 775.08"}),jsx("polygon",{fill:"#5d6cd2",points:"973.57 757.36 624.87 757.36 605.71 662.1 598.3 632.14 595.28 619.93 575.59 540.37 574.57 536.23 564.16 494.17 559.5 475.35 555.53 459.3 552.29 446.21 546.22 421.68 887.42 421.68 973.57 757.36"}),jsx("polygon",{fill:"#899bfa",points:"819.24 794.36 571.16 904.34 544.24 794.36 819.24 794.36"}),jsxs("g",{children:[jsx("path",{fill:"#2a3967",d:"M1384.19,552.09c.04-.99,.79-11.66,16.82-12.22,0,0-7.88,.95-9.24,4.47,0,0,5.37-4.34,9.74-2.95,4.37,1.4,6.94,9.16,6.96,11.72,.03,2.55-2.4,10.79-5.18,11.49-1.05,.27-2.26,.19-3.36,0,.74,1.17,1.46,2.46,2.15,3.9,6.4,13.32-.2,26.33-5.61,24.89-3.47-.92-4.45,5.09-4.45,5.09l-33.74-27.7s12.39-26.01,25.91-18.69Z"}),jsx("path",{fill:"#ffae73",d:"M1292.25,718.6c2.82,2.53,10.3-6.16,11.33-7.32,.05-.11,.11-.17,.11-.17l-2.28-6.44s-9.82-.38-11.44,1.27c-1.63,1.65-.81,9.96,2.28,12.65Z"}),jsx("path",{fill:"#25468f",d:"M1372.45,944.42l7.17,2.71s31.12-43.79,34.96-82.31c.68-6.88-.72-21.46-.19-24.57,.25-1.45,.55-3.2,.89-5.21,1.01-5.88,2.4-13.93,4-23.09,3.66-21.09,8.41-48.04,12.09-67.85l-1.93-.63-20.89-6.84-4.32-13.91-15.56-4.15s-3.47,6.9-6.58,39.47c-.57,4.27-1.09,8.98-1.49,14.09-1.21,15.6-1.3,34.94,1.48,57.06,.71,5.66,3.67,27.92,3.33,34.81-1.57,31.49-12.96,80.44-12.96,80.44Z"}),jsx("path",{fill:"#1e3865",d:"M1380.6,772.11l33.78,68.12c.25-1.45,.55-3.2,.89-5.21,1.01-5.88,2.4-13.93,4-23.09,3.66-21.09,8.41-48.04,12.09-67.85l-1.93-.63-20.89-6.84-4.32-13.91-15.56-4.15s-3.47,6.9-6.58,39.47c-.57,4.27-1.09,8.98-1.49,14.09Z"}),jsx("path",{fill:"#25468f",d:"M1395.46,727.29l.78-6.8c13.1,3.53,48.1-9.86,48.1-9.86,0,0,12.69,11.32,11.03,38.44-.81,13.24-2.3,69.5-3.85,86.15-.56,6.03,3.3,21.56,4.85,25.75,15.23,41.17-2.35,91.87-2.35,91.87l-4.56-1.87s-28.85-106.12-31.83-117.36c-5.63-21.25-10.15-48.9-13.17-70.25-.42,.02-9.01-36.08-9.01-36.08Z"}),jsx("path",{fill:"#ffae73",d:"M1385.52,648.37c22.52,1.25,17.57-32.81,16.2-32.63-2.76-1.46-7.7-8.55-10.56-20.41l-.97,.46-16.25,7.75s1.73,5.36,3,10.5c.99,4.02,1.71,7.9,1.11,8.98-1.28,.53-2.05,.86-2.05,.86,0,0,0,0,0,.02-.16,.42,3.52,24.15,9.53,24.48Z"}),jsx("path",{fill:"#f99352",d:"M1373.93,603.53s1.73,5.36,3,10.5c9.5-2.69,12.38-12.82,13.25-18.25l-16.25,7.75Z"}),jsx("path",{fill:"#ffae73",d:"M1371.93,609.21s22.73-5.34,19.23-19.64c-3.49-14.31-2.91-24.63-17.57-21.83-14.66,2.8-16.13,8.97-16.11,14.03,.02,5.06,8.45,28.46,14.45,27.44Z"}),jsx("path",{fill:"#2a3967",d:"M1356.2,573.64c2.44-5.19,5.32-4.91,7.12-3.99,10.68-10.02,21.15-1.83,21.15-1.83,4.03,9.88,12.77,13.92,12.77,13.92,0,0-3.49,3.63-13.61,3.55-3.09-.02-6.2-1.46-9.03-3.45,5.45,5.57,11.85,8.97,11.85,8.97-12.67-2.46-21.16-17.34-22.03-18.92-1.07,1.61-3.13,5.03-3.3,7.92-.23,3.93,1.1,11.55-1.12,11.84,0,0-7.47-10.23-3.8-18Z"}),jsx("path",{fill:"#1e3865",d:"M1427.51,956.62h36.09s.87-5.58-1.02-9.81c-1.81-4.06-4.64-5.91-3.96-10.82-2.29,2.4-6.03,5.08-11.25,4.37-.64,1.05-4.13,6.68-6.26,8.23-2.36,1.72-12.88,1.11-13.6,8.04Z"}),jsx("path",{fill:"#1e3865",d:"M1350.02,956.62h36.09s1.35-5.84-1.02-9.81c-2.1-3.52-1.29-5.52,.26-8.43-1.64,.68-3.75,1.3-6.08,1.16-1.8-.1-3.7-.93-5.37-1.91-1.55,1.8-8.2,9.44-10.28,10.96-2.36,1.72-12.88,1.11-13.6,8.04Z"}),jsx("path",{fill:"#899bfa",d:"M1445.02,667.38c-1.94-6.38-3.95-12.51-5.98-18.16-4.62-12.85-7.56-19.56-10.05-24.76-4.74-9.89-25.93-9.27-25.93-9.27-4.08,14.92-15.3,24.22-15.3,24.22-5.98-3.56-10.43-16.08-10.43-16.08l-13.09,7.06h0s-4.05,2.45-7.58,12.75c-5.25,15.32-13.77,37.08-19.68,43.73-1.38,1.55-5.42,3.9-10.31,6.39h0c-.11,.17-.19,.25-.24,.25,.32,.73,1.74,4.18,4.04,7.69,1.87,2.85,4.32,5.73,7.22,7.21,2.23-1.09,6.25-2.7,7.95-3.76,6.16-3.82,15.33-9.32,22.51-20.93l2,27.29,3.62,49.37c5.57,1.76,10.87,3.13,15.89,4.18,.33-4.14,1.65-9.09,1.65-9.09-.06,2.6,2.94,7.56,4.71,10.27,46.22,7.51,67.88-12.94,67.88-12.94-1.8-18.1-9.58-54.72-18.91-85.41Z"}),jsx("path",{fill:"#6f7deb",d:"M1398.39,612.43s3.84,.26,4.67,2.76c0,0-5.02,20.49-15.29,24.22l10.62-26.97Z"}),jsx("path",{fill:"#6f7deb",d:"M1387.77,639.4s-9.82-17.97-9.78-20.4c0,0-3.73,3.35-3.49,5.85,0,0,8.27,13.43,13.26,14.55Z"}),jsx("path",{fill:"#6f7deb",d:"M1414.09,632.11c-.28,.97-20.31,49.54-38.28,67.44-7.87,7.84,17.2,5.57,17.44,4.12,.24-1.46,20.84-71.56,20.84-71.56Z"}),jsx("path",{fill:"#6f7deb",d:"M1370.8,712.54l1.71,27.4c54.8-12.91,50.2-101.44,50.2-101.44l-27.52,57.64-24.15,16.01s-.09,.14-.25,.39Z"}),jsx("path",{fill:"#a9c2ff",d:"M1326.37,693.41c.01,.06,.04,.09,.07,.09-.02-.04-.03-.08-.04-.1-.04-.09-.05-.09-.03,.01Z"}),jsxs("g",{children:[jsx("path",{fill:"#ff912b",d:"M1353.48,655.68l10.91,49.33c1.74,7.86-4.13,14.22-13.1,14.22h-262c-8.97,0-17.65-6.37-19.39-14.22l-10.91-49.33c-.07-.3-.12-.6-.16-.9-1.13-7.44,4.63-13.32,13.26-13.32h262c8.63,0,16.99,5.88,19.15,13.32,.1,.3,.17,.6,.24,.9Z"}),jsxs("g",{children:[jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1089.87 697 1087.3 697 1080.51 666.3 1083.08 666.3 1089.87 697"}),jsx("polygon",{fill:"#e8f2fa",points:"1107.58 678.97 1089.17 678.97 1087.24 670.28 1105.66 670.28 1107.58 678.97"}),jsx("polygon",{fill:"#e8f2fa",points:"1116.16 691.42 1091.92 691.42 1090 682.74 1114.24 682.74 1116.16 691.42"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1148.77 697 1146.2 697 1139.41 666.3 1141.98 666.3 1148.77 697"}),jsx("polygon",{fill:"#e8f2fa",points:"1152.7 678.97 1134.29 678.97 1132.37 670.28 1150.78 670.28 1152.7 678.97"}),jsx("polygon",{fill:"#e8f2fa",points:"1158.37 691.42 1134.13 691.42 1132.21 682.74 1156.45 682.74 1158.37 691.42"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1207.67 697 1205.1 697 1198.31 666.3 1200.88 666.3 1207.67 697"}),jsx("polygon",{fill:"#e8f2fa",points:"1197.82 678.97 1179.4 678.97 1177.48 670.28 1195.89 670.28 1197.82 678.97"}),jsx("polygon",{fill:"#e8f2fa",points:"1200.57 691.42 1176.33 691.42 1174.41 682.74 1198.65 682.74 1200.57 691.42"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1245.35 668.78 1215.1 668.78 1214.52 666.18 1244.78 666.18 1245.35 668.78"}),jsx("polygon",{fill:"#e8f2fa",points:"1228.12 671.23 1232.26 689.91 1223.69 689.91 1219.56 671.23 1228.12 671.23"}),jsx("polygon",{fill:"#e8f2fa",points:"1240.4 671.23 1245.84 695.82 1237.28 695.82 1231.84 671.23 1240.4 671.23"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1292.98 682.95 1262.72 682.95 1262.14 680.35 1292.4 680.35 1292.98 682.95"}),jsx("polygon",{fill:"#e8f2fa",points:"1272.86 672.31 1276.99 690.99 1268.42 690.99 1264.29 672.31 1272.86 672.31"}),jsx("polygon",{fill:"#e8f2fa",points:"1284.48 669.36 1289.92 693.94 1281.35 693.94 1275.91 669.36 1284.48 669.36"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1340.63 697.23 1310.37 697.23 1309.79 694.63 1340.05 694.63 1340.63 697.23"}),jsx("polygon",{fill:"#e8f2fa",points:"1317.78 673.28 1321.91 691.96 1313.34 691.96 1309.21 673.28 1317.78 673.28"}),jsx("polygon",{fill:"#e8f2fa",points:"1328.74 667.37 1334.18 691.96 1325.62 691.96 1320.18 667.37 1328.74 667.37"})]})]})]}),jsxs("g",{children:[jsx("path",{fill:"#ffae73",d:"M1327.16,714.82c2.99-.01,7.7-.22,10.42-1.28,0,0-8.7-.13-6.85-2.92,.34-.51,4.66-.12,9.49-.12,1.98,0,6.88,2.75,6.62,2.88,3.5-.47,6.68-1.16,7.71-1.38,.27-.06,.38-.11,.38-.11l3.09,9.13s-.65,.16-1.79,.38c-2.87,.72-8.79,2.26-14.37,4.46-7.81,3.14-13.55-.76-16.16-3.52-1.65-1.75-2.95-4.07-2.86-5.75,.1-1.84,2.5-1.76,4.32-1.77Z"}),jsx("path",{fill:"#ffae73",d:"M1348.16,715.52l1.9,7.04s2.39-.44,6.18-1.16c1.14-.22,1.79-.39,1.79-.39,3.04-.6,6.67-1.43,10.63-2.31h.06c6.78-1.65,14.37-3.63,20.77-5.83,.57-.2,1.14-.41,1.69-.61,3.78-1.42-3.53-20.9-6.84-18.47-.88,.65-1.82,1.31-2.8,1.99-5.49,3.78-12.47,7.99-18.67,11.54-3.04,1.76-5.91,3.36-8.3,4.68-3.85,2.14-6.4,3.52-6.4,3.52Z"}),jsx("path",{fill:"#899bfa",d:"M1381.53,695.79s-.4,13.3,11.88,19.77c14.19-5.2,21.78-26.66,27.64-41.4,.81-2.03,1.57-4.07,2.33-6.05,2.71-7.37,4.88-14.63,6.18-20.91,.81-3.74-14.97-22.61-16.97-18.15-3.09,7.09-6.34,16.28-9.38,25.41-1.68,5.01-3.31,10.01-4.94,14.63-.92,2.8-1.85,5.44-2.71,7.86-1.68,4.62-3.2,8.36-4.55,10.73-.87,1.54-3.36,3.69-6.67,6.11-.88,.65-1.82,1.31-2.8,1.99Z"})]})]}),jsx("polygon",{fill:"#3c4aaa",points:"1141.41 404.31 472.71 404.31 465.03 373.3 1132.98 373.3 1141.41 404.31"}),jsxs("g",{children:[jsx("path",{fill:"#e8f2fa",d:"M506.59,389.09c.87,2.78-.86,5.05-3.87,5.07-3.01,.02-6.16-2.22-7.03-4.99-.87-2.78,.86-5.05,3.87-5.07,3.01-.02,6.16,2.21,7.03,4.99Z"}),jsx("path",{fill:"#e8f2fa",d:"M529.14,388.93c.87,2.78-.86,5.05-3.87,5.07-3.01,.02-6.16-2.21-7.03-4.99-.87-2.78,.86-5.05,3.87-5.07,3.01-.02,6.16,2.21,7.03,4.99Z"}),jsx("path",{fill:"#e8f2fa",d:"M551.69,388.77c.87,2.78-.86,5.05-3.87,5.07-3.01,.02-6.16-2.21-7.03-4.99-.87-2.78,.86-5.05,3.87-5.07,3.01-.02,6.16,2.21,7.03,4.99Z"})]}),jsx("path",{fill:"#ff912b",d:"M559.5,475.35s78.71,.3,135.79,44.69c57.08,44.39,48.85,84.22,96.21,94.2,77.61,16.36,29.43-67.66,130.21-58.92l51.86,202.04h-348.7l-26.57-125.21-38.8-156.79Z"}),jsx("path",{fill:"#fff",d:"M809.47,617.1c-5.34,0-11.34-.72-18.11-2.15-26.14-5.51-35.78-20.39-47.98-39.22-10.11-15.61-22.69-35.03-48.52-55.11-16.21-12.61-44.82-29.59-89.01-38.86-26.44-5.54-46.15-5.68-46.35-5.68v-1.46c.2,0,20.06,.14,46.64,5.72,24.54,5.15,60,16.11,89.59,39.13,26.02,20.24,38.68,39.77,48.85,55.47,12.49,19.28,21.51,33.21,47.07,38.59,36.4,7.67,44.63-6.84,54.16-23.64,10.62-18.71,22.66-39.93,75.97-35.3l-.12,1.45c-52.41-4.55-64.2,16.24-74.6,34.58-4.82,8.5-9.38,16.53-17.46,21.49-5.44,3.34-12.02,4.99-20.12,4.99Z"}),jsx("path",{fill:"#fc7400",d:"M577.88,549.18l20.01,80.88,26.98,127.29h348.7l-17.58-66.1s-51.62-29.18-121.62-3.75c-70,25.44-147.49,1.96-152.48-55.25-5.62-64.51-64.06-95.58-104.01-83.08Z"}),jsx("path",{fill:"#fff",d:"M665.98,587.45c-20.04-31.44-57-47.24-87.89-37.57l-.42-1.39c31.49-9.85,69.13,6.2,89.52,38.17l-1.21,.79Z"}),jsxs("g",{children:[jsx("polygon",{fill:"#fff",points:"795.85 620.61 784.52 619.43 785.69 607.94 797.02 609.12 795.85 620.61"}),jsx("polygon",{fill:"#fff",points:"892.8 636.61 701.9 596.39 702.28 594.51 893.18 634.73 892.8 636.61"}),jsx("path",{fill:"#fff",d:"M698.84,595.11c.19-1.82,1.79-3.15,3.59-2.96,1.8,.19,3.1,1.82,2.92,3.64s-1.79,3.15-3.59,2.96c-1.8-.19-3.1-1.82-2.92-3.64Z"}),jsx("path",{fill:"#fff",d:"M889.74,635.33c.19-1.82,1.79-3.15,3.59-2.96,1.8,.19,3.1,1.82,2.92,3.64-.19,1.82-1.79,3.15-3.59,2.96-1.8-.19-3.1-1.82-2.92-3.64Z"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#fff",points:"656.9 504.31 648.61 496.38 656.42 487.98 664.71 495.9 656.9 504.31"}),jsx("polygon",{fill:"#fff",points:"687.13 528 622.39 462.58 623.73 461.23 688.46 526.64 687.13 528"}),jsx("path",{fill:"#fff",d:"M620.52,459.81c1.14-1.42,3.2-1.64,4.6-.49,1.4,1.15,1.62,3.24,.48,4.67-1.14,1.42-3.2,1.64-4.6,.49-1.4-1.15-1.62-3.24-.48-4.67Z"}),jsx("path",{fill:"#fff",d:"M685.26,525.23c1.14-1.42,3.2-1.64,4.6-.49s1.62,3.24,.48,4.67c-1.14,1.42-3.2,1.64-4.6,.49-1.4-1.15-1.62-3.24-.48-4.67Z"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#fff",points:"882.44 557.53 877.99 568.16 867.5 563.65 871.96 553.01 882.44 557.53"}),jsx("polygon",{fill:"#fff",points:"863.91 587.74 862.2 586.94 886.44 533.18 888.16 533.98 863.91 587.74"}),jsx("path",{fill:"#fff",d:"M862,590.48c-1.71-.59-2.63-2.47-2.05-4.21,.58-1.74,2.44-2.66,4.15-2.08,1.71,.59,2.63,2.47,2.05,4.21-.58,1.74-2.44,2.66-4.15,2.08Z"}),jsx("path",{fill:"#fff",d:"M886.25,536.72c-1.71-.59-2.63-2.47-2.05-4.21,.58-1.74,2.44-2.66,4.15-2.08,1.71,.59,2.63,2.47,2.05,4.21-.58,1.74-2.44,2.66-4.15,2.08Z"})]}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M933.58,440.32l17.72,74.3c.76,3.18-2.2,5.76-6.61,5.76h-182.3c-4.41,0-8.6-2.58-9.35-5.76l-17.72-74.3c-.76-3.18,2.2-5.76,6.61-5.76h182.3c4.41,0,8.59,2.58,9.35,5.76Z"}),jsxs("g",{children:[jsxs("g",{children:[jsx("polygon",{fill:"#25468f",points:"781.52 483.78 762.12 483.78 757.43 464.1 776.83 464.1 781.52 483.78"}),jsx("polygon",{fill:"#25468f",points:"793.57 493.62 774.17 493.62 769.47 473.94 788.88 473.94 793.57 493.62"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#25468f",points:"826.82 483.78 807.42 483.78 802.72 464.1 822.12 464.1 826.82 483.78"}),jsxs("g",{children:[jsx("polygon",{fill:"#6b98f6",points:"838.87 493.62 819.47 493.62 814.77 473.94 834.17 473.94 838.87 493.62"}),jsx("path",{fill:"#183a76",d:"M839.9,494.47h-21.06l-5.1-21.36h21.06l5.1,21.36Zm-19.8-1.68h17.75l-4.29-18h-17.75l4.29,18Z"})]})]}),jsxs("g",{children:[jsx("polygon",{fill:"#6b98f6",points:"872.12 483.78 852.71 483.78 848.02 464.1 867.42 464.1 872.12 483.78"}),jsx("path",{fill:"#25468f",d:"M873.14,484.62h-21.06l-5.1-21.36h21.06l5.1,21.36Zm-19.8-1.68h17.75l-4.29-18h-17.75l4.29,18Z"}),jsx("polygon",{fill:"#6b98f6",points:"884.16 493.62 864.76 493.62 860.07 473.94 879.47 473.94 884.16 493.62"}),jsx("path",{fill:"#25468f",d:"M885.19,494.47h-21.06l-5.1-21.36h21.06l5.1,21.36Zm-19.8-1.68h17.75l-4.29-18h-17.75l4.29,18Z"}),jsx("polygon",{fill:"#25468f",points:"873.14 484.58 861.71 484.58 858.97 473.1 870.4 473.1 873.14 484.58"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#25468f",points:"917.41 483.78 898.01 483.78 893.31 464.1 912.72 464.1 917.41 483.78"}),jsx("polygon",{fill:"#25468f",points:"929.46 493.62 910.06 493.62 905.36 473.94 924.77 473.94 929.46 493.62"}),jsx("polygon",{fill:"#6b98f6",points:"916.86 483.31 907.97 483.31 905.84 474.37 914.73 474.37 916.86 483.31"})]})]})]}),jsxs("g",{children:[jsx("path",{fill:"#3c4aaa",d:"M429.21,674.95h-67.18c-8.96,0-17.83-7.37-19.81-16.46l-50.55-231.5c-1.98-9.09,3.67-16.46,12.63-16.46h67.18c8.96,0,17.83,7.37,19.81,16.46l50.55,231.5c1.98,9.09-3.67,16.46-12.63,16.46Z"}),jsx("rect",{fill:"#a9c2ff",height:".44",width:"99.62",y:"462.59",x:"299.49"}),jsx("rect",{fill:"#a9c2ff",height:".44",width:"99.63",y:"517.14",x:"311.4"}),jsx("rect",{fill:"#a9c2ff",height:".44",width:"99.63",y:"571.69",x:"323.31"}),jsx("path",{fill:"#fff",d:"M360.43,446.51c.13-1.17-5.02-21.24-5.02-21.24l18.26,15.01-8.97-.32-4.27,6.56Z"}),jsx("path",{fill:"#cedfff",d:"M415.47,651.23h-35.38l-7.83-35.84h35.38l7.83,35.84Zm-33.8-2h31.35l-6.95-31.85h-31.35l6.95,31.85Z"}),jsx("polygon",{fill:"#ff7536",points:"390.05 630.85 356.68 630.85 349.29 597 382.66 597 390.05 630.85"}),jsx("polygon",{fill:"#ff7536",points:"382 651.12 379.75 649.34 405.73 615.5 407.98 617.27 382 651.12"}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M315.51,446.51c.13-1.17-5.02-21.24-5.02-21.24l18.26,15.01-8.97-.32-4.27,6.56Z"}),jsxs("g",{children:[jsx("polygon",{fill:"#cedfff",points:"322.59 486.27 319.9 486.27 318.83 481.4 337.08 481.4 338.1 486.08 335.41 486.08 334.99 484.13 322.12 484.13 322.59 486.27"}),jsx("polygon",{fill:"#cedfff",points:"332.96 498.16 330.27 498.16 326.91 482.76 329.6 482.76 332.96 498.16"}),jsx("polygon",{fill:"#cedfff",points:"335.38 499.13 328.28 499.13 327.68 496.4 334.79 496.4 335.38 499.13"})]}),jsx("polygon",{fill:"#cedfff",points:"371.78 500.83 369.35 499.06 382.17 478.6 384.6 480.37 371.78 500.83"}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M340.97,548.52c-5.13,0-10.23-4.24-11.37-9.44-1.14-5.21,2.11-9.44,7.25-9.44s10.23,4.24,11.37,9.44c1.14,5.21-2.11,9.44-7.25,9.44Zm-3.58-16.39c-3.78,0-6.17,3.12-5.33,6.95,.84,3.83,4.59,6.95,8.37,6.95s6.17-3.12,5.33-6.95c-.84-3.83-4.59-6.95-8.37-6.95Z"}),jsx("path",{fill:"#cedfff",d:"M358.69,556.72c-.32,0-.67-.13-.97-.38l-12.38-10.57c-.58-.5-.74-1.28-.36-1.76,.38-.48,1.17-.46,1.75,.03l12.38,10.57c.58,.5,.74,1.28,.36,1.76-.19,.23-.47,.35-.78,.35Z"})]}),jsx("polygon",{fill:"#cedfff",points:"385.5 528.76 390.11 537.32 398.98 537.32 392.96 542.61 397.57 551.16 389.24 545.87 383.22 551.16 384.09 542.61 375.76 537.32 384.63 537.32 385.5 528.76"})]})]}),jsxs("g",{children:[jsx("path",{fill:"#fa8b79",d:"M1241.96,453.88s.24,13.48-1.75,13.23c-1.99-.25-4.7-11.3-4.72-11.14-.02,.17,.9,11.62-1.6,12.19-2.51,.57-5.05-12.13-5.05-12.13,0,0,1.68,10.9-.08,11.19-1.76,.29-4.54-10.28-5.27-10.31-.73-.03,2.34,9.06,.19,9.53-2.15,.46-6.94-12.33-5.32-13.96,1.62-1.63,4.15,.11,4.15,.11,0,0,3.12-2.35,5.52-1.02,0,0,5.62-1.14,7.31,1.39,0,0,3.51-3.06,6.61,.91Z"}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M1278.23,402.24l45.59,166.75c1.95,7.13-2.5,12.92-9.94,12.92h-307.72c-7.44,0-15.05-5.78-17-12.92l-45.59-166.75c-1.95-7.13,2.5-12.92,9.94-12.92h307.72c7.44,0,15.05,5.78,17,12.92Z"}),jsxs("g",{children:[jsx("polygon",{fill:"#b0c0ff",points:"1038.92 477.47 999.17 477.47 988.15 437.16 1027.89 437.16 1038.92 477.47"}),jsx("polygon",{fill:"#5158bf",points:"1026.48 467.6 1006.21 467.6 1000.59 447.03 1020.86 447.03 1026.48 467.6"}),jsx("polygon",{fill:"#ff7536",points:"1000.44 478.4 997.91 476.54 1026.63 436.23 1029.16 438.08 1000.44 478.4"}),jsx("polygon",{fill:"#ff7536",points:"1010.63 455.62 970.89 455.62 959.87 415.3 999.61 415.3 1010.63 455.62"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#ff7536",points:"1033.21 525.04 1001.26 525.04 992.4 492.63 1024.35 492.63 1033.21 525.04"}),jsx("polygon",{fill:"#fc7600",points:"1064.86 525.04 1032.91 525.04 1024.05 492.63 1056 492.63 1064.86 525.04"}),jsx("polygon",{fill:"#ff8111",points:"1096.81 525.04 1064.86 525.04 1056 492.63 1087.95 492.63 1096.81 525.04"}),jsx("polygon",{fill:"#6b98f6",points:"1128.76 525.04 1096.81 525.04 1087.95 492.63 1119.9 492.63 1128.76 525.04"}),jsx("polygon",{fill:"#899bfa",points:"1160.71 525.04 1128.76 525.04 1119.9 492.63 1151.85 492.63 1160.71 525.04"}),jsx("polygon",{fill:"#697ee3",points:"1192.66 525.04 1160.71 525.04 1151.85 492.63 1183.8 492.63 1192.66 525.04"}),jsx("polygon",{fill:"#5158bf",points:"1224.61 525.04 1192.66 525.04 1183.8 492.63 1215.75 492.63 1224.61 525.04"}),jsx("polygon",{fill:"#25468f",points:"1256.56 525.04 1224.61 525.04 1215.75 492.63 1247.7 492.63 1256.56 525.04"}),jsx("polygon",{fill:"#a1b3ff",points:"1042.07 557.45 1010.12 557.45 1001.26 525.04 1033.21 525.04 1042.07 557.45"}),jsx("polygon",{fill:"#899bfa",points:"1073.72 557.45 1041.77 557.45 1032.91 525.04 1064.86 525.04 1073.72 557.45"}),jsx("polygon",{fill:"#5158bf",points:"1105.67 557.45 1073.72 557.45 1064.86 525.04 1096.81 525.04 1105.67 557.45"}),jsx("polygon",{fill:"#25468f",points:"1137.62 557.45 1105.67 557.45 1096.81 525.04 1128.76 525.04 1137.62 557.45"})]}),jsx("path",{fill:"#ff8111",d:"M1258.13,429.21h-167.36c-2.3,0-4.7-1.91-5.34-4.24h0c-.64-2.33,.72-4.24,3.02-4.24h167.36c2.3,0,4.7,1.91,5.34,4.24h0c.64,2.33-.72,4.24-3.02,4.24Z"}),jsx("path",{fill:"#6b98f6",d:"M1263.98,450.63h-167.36c-2.3,0-4.7-1.91-5.34-4.24h0c-.64-2.33,.72-4.24,3.02-4.24h167.36c2.3,0,4.7,1.91,5.34,4.24h0c.64,2.33-.72,4.24-3.02,4.24Z"}),jsx("path",{fill:"#5158bf",d:"M1269.84,472.05h-167.36c-2.3,0-4.7-1.91-5.34-4.24h0c-.64-2.33,.72-4.24,3.02-4.24h167.36c2.3,0,4.7,1.91,5.34,4.24h0c.64,2.33-.72,4.24-3.02,4.24Z"}),jsxs("g",{children:[jsx("path",{fill:"#5158bf",d:"M1062.31,418.73h5.04c2.65,0,4.59,1.44,5.2,3.65,.51,1.88-.29,3.01-1.75,3.47l4.24,4.34h-2.34l-3.9-4h-2.45l1.09,4h-1.99l-3.14-11.47Zm6.45,5.68c1.42,0,2.12-.75,1.79-1.95-.34-1.23-1.39-1.9-2.86-1.9h-2.89l1.05,3.85h2.91Z"}),jsx("path",{fill:"#5158bf",d:"M1068.12,446.11c-.88-3.21,.8-5.93,4.21-5.93,1.97,0,3.33,.56,4.77,1.56l-.84,1.52c-1.08-.75-2.06-1.23-3.5-1.23-2.08,0-3.16,1.85-2.55,4.08,.64,2.36,2.65,4.1,4.96,4.1,1.07,0,1.94-.34,2.49-.87l-.59-2.15h-2.89l-.48-1.75h4.81l1.32,4.82c-.85,.97-2.23,1.79-4.23,1.79-3.54,0-6.56-2.56-7.48-5.93Z"}),jsx("path",{fill:"#5158bf",d:"M1074.44,463.09h5.07c1.29,0,2.41,.36,3.23,1.02,.64,.51,1.07,1.13,1.29,1.93,.38,1.38-.2,2.11-.92,2.56,1.45,.46,2.58,1.23,3.01,2.82,.56,2.05-.8,3.15-3.32,3.15h-5.23l-3.14-11.47Zm5.99,4.83c1.28,0,1.99-.51,1.7-1.59-.25-.9-1.11-1.46-2.38-1.46h-2.86l.83,3.05h2.71Zm1.91,4.85c1.36,0,2.03-.54,1.74-1.61-.26-.97-1.18-1.54-2.75-1.54h-3.15l.86,3.15h3.29Z"})]})]})]}),jsxs("g",{children:[jsxs("g",{children:[jsx("path",{fill:"#ffae73",d:"M640.44,422.49c-.89,1.03-1,2.18-.56,3.41,0,0,0,.01,0,.02,.81,2.27,3.49,4.81,6.6,7.35,.4,.33,.75,.62,1.06,.9,.08,.07,.16,.14,.24,.22,.06,.06,.12,.11,.18,.17,2.9,2.71,1.81,3.34,7.03,8.85,5.95,6.28,10.04,6.39,11.21,5.82,.99-.49-1.02-3.82-3.23-7.56-.11-.18-.21-.36-.32-.55-.3-.5-.59-1-.88-1.5-2.6-4.5-1.93-6.62-1.32-13.32,.5-5.45,8.35-30.42,8.35-30.42l-11.4-1.99s-3.43,19.89-7.21,22.95c-2.02,1.63-4.29,1.65-6.23,2.86-.14,.08-.27,.17-.4,.26-1.1,.74-2.23,1.51-3.12,2.54Z"}),jsx("path",{fill:"#1e3865",d:"M640.44,422.49c-.89,1.03-1,2.18-.56,3.41,0,0,0,.01,0,.02,.99,2.27,3.61,4.8,6.62,7.33,.39,.33,.74,.64,1.05,.92,.08,.07,.16,.14,.24,.22,.06,.06,.12,.11,.18,.17,2.9,2.71,1.81,3.34,7.03,8.85,5.95,6.28,10.04,6.39,11.21,5.82,.99-.49-1.02-3.82-3.23-7.56-1.16-.43-6.54-2.65-10.6-7.92-3.45-4.47-5.79-10.16-8.14-13.65-.26-.05-.41-.08-.67-.13-1.1,.74-2.23,1.51-3.12,2.54Z"}),jsx("path",{fill:"#ffae73",d:"M732.33,415.27c.7,3.57,5.72,2.97,11.32,1.58,5.6-1.39,4.27,.26,12.24-.63,7.97-.9,10.39-3.91,10.63-5.11,.22-1.07-3.72-1.44-7.95-1.94-.53-.06-1.07-.13-1.6-.19-4.77-.61-8.26-3.73-12.6-6.29-4.1-2.43-10.23-12.33-10.23-12.33l-10.93,.88s5.74,8.84,7.96,12.68c1.31,2.26,1.24,5.25,1.07,7.56-.08,1.25-.17,2.54,.08,3.79Z"}),jsx("path",{fill:"#1e3865",d:"M743.65,416.85c5.6-1.39,4.27,.26,12.24-.63,7.97-.9,10.39-3.91,10.63-5.11,.22-1.07-3.72-1.44-7.95-1.94l-.04,.08s-4.78,3.44-11.42,3.6c-5.41,.13-11.14-1.44-14.87-1.38-.08,1.25-.17,2.54,.08,3.79,.7,3.57,5.72,2.97,11.32,1.58Z"}),jsx("path",{fill:"#f28018",d:"M690.43,344.35l-10.22,27.9-13.34,36.43s-3.62,.35-7.09-.66c-3.19-.94-6.86-3.39-6.86-3.39,0,0,3.71-39.12,10.62-61.57,1.77-5.76,3.76-10.43,5.95-13.05,10.72-12.85,20.95,14.33,20.95,14.33Z"}),jsx("path",{fill:"#ff912b",d:"M680.04,300.04c-5.82-1.9-21-.03-37.47,2.99-4.55,.84-9.14-1.27-11.53-5.28h0l-41.44-3.28s-13.68,30.76-6.19,50.36c1.1,2.88,3.52,4.68,7.24,4.74h0s25.04,.04,33.05,.04c20.61,0,43.62-14.37,46.59-14.97,4.87-.99,6.82,8.89,11.69,19.27,4.87,10.38,45.79,45.96,45.79,45.96,0,0,6.29,.06,8.89-.92,2.79-1.06,3.82-2.44,3.82-2.44,0,0-45.34-91.51-60.45-96.45Z"}),jsx("path",{fill:"#10294c",d:"M626.64,174.3c-3.08-1.86-6.08-2.14-7.92-2.09-1.28,.04-2.56-.05-3.82-.23-15.82-2.35-25.34,20.95-25.9,27.99-1.02,12.93-7.77,14.9-17.26,23-19.03,16.23-13.45,35.1-3.04,42.11,6.24,4.21,17.25,0,17.25,0,.16,.11,30.09-16.98,44.85-25.22,22.12-3.19,4.73-60.19-4.16-65.55Z"}),jsx("path",{fill:"#ffae73",d:"M618.43,232.84c.06,.04-7.26,2.58-12.16,.38-4.61-2.07-8.1-9.76-8.03-9.76,2.1-.1,4.4-1.96,6.17-14.16l.89,.32,15.01,5.48s-1.09,4.89-1.79,9.54c-.59,3.91-.91,7.65-.09,8.2Z"}),jsx("path",{fill:"#f9924f",d:"M620.31,215.1s-.6,2.64-1.47,7.56c-8.62-1.57-12.32-8.31-13.54-13.04l15.01,5.48Z"}),jsx("path",{fill:"#ffae73",d:"M622.54,219.95s-20.53-2.8-18.62-15.74c1.91-12.95,.55-22.02,13.74-20.79,13.19,1.24,15,6.56,15.4,11.04,.4,4.48-5.13,25.88-10.52,25.49Z"}),jsx("path",{fill:"#10294c",d:"M632.32,187.37s-13.15,11.49-22.09,12.42c-8.94,.93-12.33-1.98-12.33-1.98,0,0,5.27-4.44,8.44-11.6,.93-2.11,2.91-3.56,5.18-3.76,6.38-.56,18.49-.81,20.79,4.93Z"}),jsx("path",{fill:"#10294c",d:"M624.1,186.34s4.4,4.31,5.78,7.51c1.34,3.09,1.74,10.47,.67,13.4,0,0,6.85-13.51,2.97-20.08-4.11-6.96-9.43-.84-9.43-.84Z"}),jsx("path",{fill:"#899bfa",d:"M635.72,263.52c-.62,42.17-.17,33.35-4.72,37.36-1.1,.96-4.18,1.54-8.23,1.81-12.75,.86-35.15-1.27-36-3.66-2.94-8.27-.86-10.84-3.32-23.49-.26-1.35-.57-2.8-.94-4.39-2.05-8.69-4.04-11.65,3.22-25.62,6.58-12.65,13.42-22.92,14.03-22.55,17.36,10.45,18.76,1.67,18.76,1.67,0,0,17.51,18.31,17.2,38.88Z"}),jsx("path",{fill:"#ff912b",d:"M680.21,372.25l-13.34,36.43s-3.62,.35-7.09-.66c-3.19-.94-6.86-3.39-6.86-3.39,0,0,3.71-39.12,10.62-61.57l16.67,29.18Z"}),jsx("path",{fill:"#899bfa",d:"M618.52,224.64s17.86,3.07,19.96,10.87c2.1,7.8,9,55.16,9,55.16,0,0-5.04,4.99-9.23,.73-4.19-4.26-13.2-44.31-13.2-44.31l-6.53-22.46Z"}),jsx("path",{fill:"#6f7deb",d:"M622.77,302.69c-12.75,.86-35.15-1.27-36-3.66-2.94-8.27-.86-10.84-3.32-23.49l6.15-17.56s-1.02,19.55,4.67,24.7c5.68,5.14,23.28,9.93,26.04,14.23,1.33,2.06,2.21,4.13,2.47,5.79Z"}),jsx("path",{fill:"#ffae73",d:"M608.17,294.46s12.57-2.84,14.6-1.71c2.03,1.13,6.99,5.25,7.61,6.69,.62,1.43-4.52-1.09-6.19-1.54-1.08-.29-3.93,.71-5.34,1.19-5.93,2.01-9.57,.97-9.57,.97l-1.11-5.6Z"}),jsx("path",{fill:"#899bfa",d:"M599.74,222.97s-16.88,1.05-22.73,9.32c-8.23,11.64-24.55,61.25-15.2,67.87,10.53,7.45,47.95,1.95,47.95,1.95,0,0,1.24-5.9-.49-8.76-1.73-2.86-29.88-7.47-31.18-8.79-1.3-1.32,16.24-25.7,16.24-29.65s5.41-31.95,5.41-31.95Z"}),jsx("path",{fill:"#ffae73",d:"M623.38,296.31s2.63,3.45,3.5,3.86c.86,.41,1.42,.31,1.42,.31l-1.78-3.24-3.14-.93Z"}),jsx("path",{fill:"#ffae73",d:"M622.77,292.76l7.66,3.77s-.33,.54-1.27,.5c-.94-.04-3.32-.93-3.32-.93l-3.07-3.34Z"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#10294c",points:"688.18 301.63 608.17 301.63 608.17 303.42 687.47 303.42 688.18 301.63"}),jsx("polygon",{fill:"#10294c",points:"626.88 303.42 687.47 303.42 705.7 257.44 645.2 257.44 626.88 303.42"}),jsx("path",{fill:"#e8f2fa",d:"M672.18,280.43c.46-1.62-.46-2.93-2.06-2.93s-3.26,1.31-3.71,2.93,.46,2.93,2.06,2.93,3.26-1.31,3.71-2.93Z"})]})]}),jsx("polygon",{fill:"#fff",points:"666.18 584.13 672.4 589.62 666.99 595.92 660.77 590.43 666.18 584.13"}),jsxs("g",{children:[jsx("path",{fill:"#f28018",d:"M586.7,695.57c-1.24-4.18-1.86-4.55-1.86-4.55,0,0-38.53,4.87-45.07,4.44-3.88-.25-50.15-15.91-50.15-15.91l-28.09,27.33s69.67,11.64,79.49,10.88c16.23-1.26,41-15.79,41-15.79,0,0,5.65-3.12,4.67-6.4Z"}),jsx("path",{fill:"#104c82",d:"M481.4,1007.55s.54,13.24,3.05,16.46l34.88,.2c-.24-1.37-.39-4.52-5.21-5.38-6.09-1.08-13.25-5.39-16.94-13.56-3.88-8.6-15.77,2.27-15.77,2.27Z"}),jsx("path",{fill:"#104c82",d:"M412.95,1005.64s-2.43,17.59,.87,17.9c.44,.04,14.05,.26,19.95,.36,6.93,.12,18.33-.13,18.33-.13,1.43,.06,2.37-1.51,1.64-2.77-.8-1.37-2.33-2.84-5.24-3.41-6.07-1.19-16.2-5.71-19.74-13.95-3.73-8.66-15.8,1.99-15.8,1.99Z"}),jsx("path",{fill:"#6f7deb",d:"M499.53,825.34s-9.7,34.42-37.49,94.2c-27.79,59.78-29,88.58-29,88.58,0,0-4.21,1.51-9.79,.91-6.04-.65-10.3-3.39-10.3-3.39,0,0,1.8-71.15,14.93-101.31,13.13-30.17,15.8-112.71,15.8-112.71l55.84,33.73Z"}),jsx("path",{fill:"#899bfa",d:"M515.1,795.72s.77,53.3-8.32,118.75c-9.09,65.44-4.84,95.88-4.84,95.88,0,0-2.41,1.78-9.82,1.75-8.68-.03-13.12-3.67-13.12-3.67,0,0-13.01-65.47-9.28-98.23,3.73-32.76-17.82-112.4-17.82-112.4l63.2-2.08Z"}),jsx("path",{fill:"#ffae73",d:"M493.98,662.86c-.09,4.18-.64,8.74-2.29,10.97l-9.25,4.93-10.26-7.71s3.76-8.46,2.84-20.82c-.09-.74-.46-5.48-.46-5.58l5.13,2.6,13.93,7.06s0,.28,.09,.65c.09,1.4,.28,4.46,.28,7.9Z"}),jsx("path",{fill:"#ff912b",d:"M442.72,802.31c3.36,15.58,75.23,8.74,74.29-.77-.04-.32-.22-4.72-.48-10.65-.54-12.83-1.38-32.89-1.48-34.45,0-.03,0-.05,0-.08-1.29-13.24-2.54-26.19-2.62-34.65-.07-7.34-1.07-14.84-2.39-21.65-1.22-6.29-2.72-11.99-4.03-16.44-.92-3.13-2.63-5.89-4.9-8.05-1.62-1.54-3.51-2.78-5.6-3.62-.57-.24-1.15-.44-1.74-.62-8.46-2.49-16.99-5.66-20.16-4.72-8.59,2.56-18.15,18-22.67,37.55-8.46,36.6-10.41,88-8.21,98.15Z"}),jsx("path",{fill:"#ffa05e",d:"M493.98,662.86c-5.22-2.14-15.21-6.97-17.96-12.45-1.19-2.42,.64-3.16,3.66-3.16l13.93,7.06s0,.28,.09,.65c.09,1.4,.28,4.46,.28,7.9Z"}),jsx("path",{fill:"#ffae73",d:"M500.32,653.44s-25.01,7.91-29.63-7.96c-4.62-15.87-10.96-25.54,4.82-31.27,15.77-5.72,20.65-.6,23.46,4.32,2.81,4.92,7.74,32.44,1.35,34.91Z"}),jsx("path",{fill:"#0b3563",d:"M497.99,617s-1.59,18.47-5.36,17.67c-3.77-.8-7.18-1.4-6.63,4.17,.55,5.57,.73,12.26-10.88,13.25-11.61,.99-23.25-29.64-20.06-35.39,9.2-16.59,56.22-19.93,42.93,.3Z"}),jsx("path",{fill:"#f28018",d:"M516.52,790.89c-.54-12.83-1.38-32.89-1.48-34.45,0-.03,0-.05,0-.08l-42.46-25.75s-1.64,60.11,43.95,60.29Z"}),jsxs("g",{children:[jsxs("g",{children:[jsx("path",{fill:"#0b3563",d:"M663,586.79l7.65,6.75s-13.11,14.24-11.89,29.23l-19.58,16.77-16.21-14.32,13.56-22.81s14.53-.53,26.48-15.63Z"}),jsx("path",{fill:"#fff",d:"M643.1,611.15c1.58-1.84,4.33-2.03,6.15-.43,1.81,1.6,2.01,4.39,.43,6.23-1.58,1.84-4.33,2.03-6.15,.43-1.81-1.6-2.01-4.39-.43-6.23Z"}),jsx("polygon",{fill:"#fff",points:"644.37 617.69 643.11 616.58 666.23 589.63 667.49 590.74 644.37 617.69"})]}),jsx("polygon",{fill:"#6d76ff",points:"635.64 643.68 619.42 629.36 622.96 625.23 639.18 639.54 635.64 643.68"}),jsx("path",{fill:"#0b3563",d:"M458.23,834.69l-.79-.69c-4.26-3.76-4.71-10.32-1-14.64l162.97-190,16.22,14.32-162.97,190c-3.71,4.32-10.17,4.78-14.43,1.02Z"})]}),jsx("path",{fill:"#ffae73",d:"M549.94,736.45s3.13-2.82,3.87-4.77c.25-.68,2.39-3.74,6.03-3.47,3.33,.25,9.24-6.94,9.24-6.94,.86,1.9,3.83,9.03-.42,12.65-3.47,2.95-11.81,8.05-16.87,11.41-5.44,3.61-1.85-8.88-1.85-8.88Z"}),jsx("path",{fill:"#ff912b",d:"M550.35,735.4s-42.11,7.26-45.84,5.42c-5.96-2.94,2.31-46.28,2.31-46.28,0,0,.36-9.82-10.96-12.14-9.83-2.01-19.31,5.46-19.31,5.46,0,0-8.63,7.83-7.52,16.51,2.44,19.25,6.24,58.39,18.93,64.39,16.37,7.74,63.73-21.46,63.73-21.46,0,0,1.58-1.96,1.35-5.6-.2-3.21-2.7-6.3-2.7-6.3Z"}),jsx("path",{fill:"#ffae73",d:"M588.46,698.68s10.63-3.93,9.69-9.44c-.94-5.51-4.25-4.82-6.25-2.92-2,1.9-.89,11.66-3.44,12.36Z"}),jsx("path",{fill:"#ffae73",d:"M553.07,733.63s1.45-4.32,3-6.17c1.55-1.85,2.2-4.99,2.91-3.95,.7,1.05-.56,4.8,0,6.23,.56,1.43-5.9,3.89-5.9,3.89Z"})]}),jsx("rect",{fill:"#a9c2ff",height:"67.09",width:"190.42",y:"956.62",x:"1304.39"}),jsx("rect",{fill:"#1e3865",ry:"2.37",rx:"2.37",height:"4.74",width:"1620",y:"1023.26"})]})})})]}),go=ii;});var bo={};ue(bo,{default:()=>xi});var yi,bi,xi,xo=T(()=>{p();uo();ho();re();_();G();A();(({Title:yi}=Typography)),bi=o=>{var a;let{children:t}=o,[s]=useSearchParams(),i=useLocation(),{token:n,setToken:r}=z(),m=S(),{localeDropdownMenu:l}=R();return O1(s.has("ticket")?`/api/usystem/user/login?ticket=${s.get("ticket")}`:null,c=>V(c),{suspense:!0,onSuccess:c=>{r(c.data.token);}}),n?jsx(Navigate,{replace:!0,to:"/"}):jsxs(Row,{children:[l&&jsx("div",{className:"fixed top-8 right-8",children:l}),jsx(Col,{span:10,offset:3,children:jsx("div",{className:"h-screen flex justify-end items-center",children:jsx(go,{})})}),jsx(Col,{span:5,offset:3,children:jsx("div",{className:"h-screen relative",children:jsxs(Card,{hoverable:!0,className:"absolute left-0 right-0 top-1/2 -translate-y-1/2",children:[((a=i.state)==null?void 0:a.notUser)&&jsx("div",{className:"absolute -top-12 left-0 right-0",children:jsx(Alert,{banner:!0,closable:!0,message:m("Login.notRegistered"),type:"error"})}),jsxs("div",{className:"text-center mb-6",children:[jsx(yi,{level:5,children:m("Login.title")}),jsx("div",{className:"min-h-10",children:t})]}),jsx(Divider,{plain:!0,children:m("Login.thirdParty")}),jsx("div",{className:"w-full flex justify-center",children:jsx(Space,{size:"small",children:jsx(Button,{type:"link",size:"small",shape:"round",icon:jsx(AliyunOutlined,{}),href:`${fo}/login?service=${encodeURIComponent(window.location.origin)}/login`,target:"_self",children:m("Login.loginWithIDass")})})})]})})})]})},xi=bi;});var wo={};ue(wo,{default:()=>Si});var Ci,Si,Mo=T(()=>{p();G();Ci=()=>{let o=useNavigate(),t=S();return jsx("div",{className:"h-screen flex justify-center items-center",children:jsx(Result,{status:"404",title:"404",subTitle:t("NotFound.subTitle"),extra:jsx(Button,{type:"primary",onClick:()=>{o("/");},children:t("NotFound.buttonText")})})})},Si=Ci;});function So(){return Oe("/api/usystem/user/allPermssions",o=>V(o,{isGlobalNS:!0}).then(t=>t.data))}function To(){return Oe("/api/usystem/user/allPermissionsV2",o=>V(o,{isGlobalNS:!0}).then(t=>t.data))}function dt(){let{accessible:o}=W("200005",{isGlobalNS:!0});return Oe(o?"/api/usystem/role/all":null,t=>V(t,{isGlobalNS:!0}).then(s=>s.data))}function ko(o){let{usePermissionApiV2:t}=R();return Oe(`/api/usystem/role/${t?"infoV2":"info"}?name=${o}`,s=>V(s,{isGlobalNS:!0}).then(i=>i.data))}function Ro(){let{usePermissionApiV2:o}=R();return pe(o?"/api/usystem/role/createV2":"/api/usystem/role/create",(t,{arg:s})=>V(t,{method:"post",body:s,isGlobalNS:!0}))}function vo(){let{usePermissionApiV2:o}=R();return pe(o?"/api/usystem/role/updateV2":"/api/usystem/role/update",(t,{arg:s})=>V(t,{method:"post",body:s,isGlobalNS:!0}))}function Lo(){return pe("/api/usystem/role/delete",(o,{arg:t})=>V(o,{method:"post",body:t,isGlobalNS:!0}))}function Io(){return pe("/api/usystem/user/create",(o,{arg:t})=>V(o,{method:"post",body:t,isGlobalNS:!0}))}function Fo(){return pe("/api/usystem/user/update",(o,{arg:t})=>V(o,{method:"post",body:t,isGlobalNS:!0}))}function Vo(){return pe("/api/usystem/user/delete",(o,{arg:t})=>V(o,{method:"post",body:t,isGlobalNS:!0}))}var Ae=T(()=>{p();Q();A();_();});var Zi,Ce,yt=T(()=>{p();G();Zi=o=>{let{permissions:t,readonly:s,expand:i,value:n,onChange:r}=o,[m,l]=useState([]),[a,c]=useState({}),[f,h]=useState(n!=null?n:[]),y=S(),g=useCallback(d=>{l(d);},[]),x=(d,b)=>{let w=[];return d?w=[...new Set(f.concat(b))]:(w=f.slice(),b.forEach(I=>{let E=w.findIndex(q=>q===I);E>-1&&w.splice(E,1);})),w},M=(d,b)=>{let w=x(d.target.checked,b);h(w),r==null||r(w);};return useEffect(()=>{h(n!=null?n:[]);},[n]),useEffect(()=>{i&&l((t!=null?t:[]).map(({category:d})=>d));},[i,t]),useEffect(()=>{let d=(t!=null?t:[]).reduce((b,w)=>(b[w.category]=w.permissions.every(I=>f.includes(I.value)),b),{});c(d);},[f,t]),jsx(Collapse,{style:{width:"100%"},collapsible:"header",activeKey:m,items:(t!=null?t:[]).map(d=>({key:d.category,label:d.category,extra:!s&&jsx(Checkbox,{checked:a[d.category],onChange:b=>{M(b,d.permissions.map(w=>w.value));},children:y("selectAll")}),children:jsx(Checkbox.Group,{style:{width:"100%"},value:f,children:jsx(Row,{gutter:[10,10],style:{width:"100%"},children:d.permissions.map(b=>jsx(Col,{span:6,children:jsx(Checkbox,{disabled:s,value:b.value,onChange:w=>{M(w,[b.value]);},children:b.label})},b.value))})})})),onChange:g})},Ce=Zi;});var Ui,Di,Zo,No=T(()=>{p();Ae();yt();G();(({Text:Ui}=Typography)),Di=o=>{let{expand:t=!0,value:s,readonly:i,onChange:n}=o,{data:r,isLoading:m,error:l}=So(),a=S();return l?jsx("div",{className:"flex justify-center",children:jsx(Ui,{type:"danger",children:a("PermissionList.failedDescription")})}):jsx(Skeleton,{active:!0,loading:m,children:jsx(Ce,{value:s,permissions:r,readonly:i,expand:t,onChange:n})})},Zo=Di;});var bt,zi,qi,Bo,Eo=T(()=>{p();Ae();yt();G();(({Text:bt}=Typography)),{Option:zi}=Select,qi=o=>{let{expand:t=!0,value:s,readonly:i,onChange:n}=o,{data:{permission:r,game:m}={},isLoading:l,error:a}=To(),[c,f]=useState([]),h=r==null?void 0:r.filter(d=>d.is_common),y=r==null?void 0:r.filter(d=>!d.is_common),g=S();if(useEffect(()=>{let d=[];Object.keys(s!=null?s:{}).forEach(b=>{var w;b!=="global"&&d.push({gameId:b,permissions:(w=s==null?void 0:s[b])!=null?w:[]});}),f(d);},[s]),a)return jsx("div",{className:"flex justify-center",children:jsx(bt,{type:"danger",children:g("PermissionList.failedDescription")})});let x=()=>{f(d=>[...d,{gameId:"",permissions:[]}]);},M=d=>{f(b=>b.filter((w,I)=>I!==d));};return jsxs("div",{className:"flex flex-col w-full",children:[jsx("div",{className:"mb-12",children:jsx(Divider,{dashed:!0,children:g("PermissionList.baseSectionTitle")})}),jsx(Skeleton,{active:!0,loading:l,children:jsx(Ce,{value:s==null?void 0:s.global,readonly:i,permissions:h,expand:t,onChange:d=>{n==null||n(F(k({},s),{global:d}));}})}),jsx("div",{className:"my-12",children:jsx(Divider,{dashed:!0,children:g("PermissionList.gameSectionTitle")})}),c.map((d,b)=>{var w;return jsx(Card,{title:jsxs(Space,{children:[jsx(bt,{children:g("game")}),i?jsx(bt,{children:(w=m==null?void 0:m.find(I=>I.id===d.gameId))==null?void 0:w.name}):jsx(Select,{disabled:i,value:c[b].gameId||void 0,style:{width:"160px"},placeholder:g("PermissionList.gameSelectPlaceholder"),onChange:I=>{f(E=>{let q=E.slice();return q[b].gameId=I,q});},children:m==null?void 0:m.map(I=>jsx(zi,{value:I.id,disabled:c.some(({gameId:E})=>E===I.id),children:I.name},I.id))})]}),className:"mb-6",extra:!i&&jsx(Button,{type:"link",onClick:()=>{M(b);},children:g("PermissionList.removeText")}),children:c[b].gameId?jsx(Skeleton,{active:!0,loading:l,children:jsx(Ce,{value:s==null?void 0:s[c[b].gameId],readonly:i,expand:t,permissions:y,onChange:I=>{n==null||n(F(k({},s),{[c[b].gameId]:I}));}})}):jsx(Empty,{description:g("PermissionList.gameSectionDescription")})},b)}),!i&&jsx(Button,{block:!0,type:"dashed",onClick:x,children:g("PermissionList.addText")})]})},Bo=qi;});var _i,ce,Ko=T(()=>{p();No();Eo();A();_i=o=>{let{value:t}=o,{usePermissionApiV2:s}=R();return s?jsx(Bo,F(k({},o),{value:t})):jsx(Zo,F(k({},o),{value:t}))},ce=_i;});var zo=T(()=>{p();});var Ee=T(()=>{p();Ko();Ae();zo();});var Ho={};ue(Ho,{default:()=>or,url:()=>Te});function Xi(){let{message:o}=App.useApp(),t=Io(),{data:s,isLoading:i}=dt(),{mutate:n}=K(),r=S();return X({title:r("UserList.createTitle"),labelCol:{flex:"80px"},content:jsxs(Fragment,{children:[jsx(Form.Item,{label:r("name"),name:"name",rules:[{required:!0}],children:jsx(Input,{})}),jsx(Form.Item,{label:r("role"),name:"roles",children:jsx(Select,{allowClear:!0,mode:"multiple",loading:i,children:(s!=null?s:[]).map(l=>jsx($o,{value:l.name,children:l.name},l.id))})})]}),onConfirm(l){return v(this,null,function*(){yield t.trigger(l),n(Te,{page:1}),o.success(r("UserList.createSuccessfully"));})}})}function er(){let{message:o}=App.useApp(),t=Fo(),{data:s,isLoading:i}=dt(),{mutate:n}=K(),r=S();return X({title:r("UserList.updateTitle"),labelCol:{flex:"80px"},content:jsxs(Fragment,{children:[jsx(Form.Item,{hidden:!0,name:"id",children:jsx(Input,{})}),jsx(Form.Item,{label:r("name"),name:"name",rules:[{required:!0}],children:jsx(Input,{readOnly:!0})}),jsx(Form.Item,{label:r("role"),name:"roles",children:jsx(Select,{allowClear:!0,mode:"multiple",loading:i,children:(s!=null?s:[]).map(l=>jsx($o,{value:l.name,children:l.name},l.id))})})]}),onConfirm(l){return v(this,null,function*(){yield t.trigger(l),n(Te,void 0,a=>produce(a,c=>{var h;let f=(h=c==null?void 0:c.list)==null?void 0:h.find(y=>y.id===l.id);f&&(f.roles=l.roles);}),{revalidate:!1}),o.success(r("UserList.updateSuccessfully"));})}})}var $o,Te,tr,or,Qo=T(()=>{p();Ee();Me();Fe();Ge();Ve();De();G();(({Option:$o}=Select)),Te="/api/usystem/user/list";tr=()=>{let{modal:o,message:t}=App.useApp(),s=Vo(),{mutate:i}=K(),{showModal:n,Modal:r}=Xi(),{showModal:m,Modal:l}=er(),a=S(),c=[{title:a("name"),dataIndex:"name",key:"name"},{title:"ID",dataIndex:"id",key:"id"},{title:a("role"),dataIndex:"roles",key:"roles",width:"40%",render(f){return jsx(Row,{gutter:[4,4],children:(f||[]).map(h=>jsx(Col,{children:h==="root"?jsx(Tag,{color:"#f50",children:h}):jsx(Tag,{color:"#ff5a00",children:jsx(Link,{to:`/permission/role/${h}`,children:h})})},h))})}},{title:a("creationTime"),dataIndex:"Ctime",key:"ctime"},{title:a("operation"),width:150,align:"center",render:f=>jsxs(Space,{children:[jsx($,{isGlobalNS:!0,size:"small",type:"link",code:"100003",onClick:()=>{m({initialValues:{id:f.id,name:f.name,roles:f.roles}});},children:a("update")}),jsx($,{isGlobalNS:!0,danger:!0,size:"small",code:"100004",type:"link",onClick:()=>{o.confirm({title:a("UserList.deleteTitle"),content:jsx(xe,{texts:[f.name],children:a("UserList.deleteContent",{user:f.name})}),onOk(){return v(this,null,function*(){yield s.trigger({id:f.id,name:f.name}),i(Te,void 0,y=>produce(y,g=>{var M,d;let x=(M=g==null?void 0:g.list)==null?void 0:M.findIndex(b=>b.id===f.id);x&&((d=g==null?void 0:g.list)==null||d.splice(x,1));})),t.success(a("UserList.deleteSuccessfully"));})}});},children:a("delete")})]})}];return jsxs(Fragment,{children:[jsx(Card,{title:a("user"),extra:jsx($,{isGlobalNS:!0,type:"primary",icon:jsx(UserAddOutlined,{}),code:"100002",onClick:()=>{n();},children:a("UserList.createTitle")}),children:jsx(Pe,{isGlobalNS:!0,code:"100001",url:Te,rowKey:"id",columns:c,transformResponse:f=>{let{List:h,Total:y}=f;return {list:h,total:y}}})}),r,l]})},or=tr;});var Jo={};ue(Jo,{default:()=>mr});var Ke,ar,lr,pr,mr,Yo=T(()=>{p();Ee();Fe();Q();A();Ge();_();Ve();De();G();Me();Ke="/api/usystem/role/list",ar=()=>{let{message:o}=App.useApp(),{mutate:t}=K(),s=Ro(),i=S(),n=r=>v(void 0,null,function*(){yield s.trigger({name:`role_${r.name}`,permissions:r.permissions}),t(Ke,{page:1}),o.success(i("RoleList.createSuccessfully"));});return X({title:i("RoleList.createTitle"),width:"50vw",layout:"vertical",content:jsxs(Fragment,{children:[jsx(Form.Item,{label:i("name"),name:"name",rules:[{required:!0}],children:jsx(Input,{addonBefore:"role_"})}),jsx(Form.Item,{name:"permissions",children:jsx(ce,{})})]}),onConfirm:n})},lr=()=>{let{message:o}=App.useApp(),{mutate:t}=K(),s=vo(),i=S(),n=r=>v(void 0,null,function*(){yield s.trigger({id:r.id,name:`role_${r.name}`,permissions:r.permissions}),t(Ke,void 0,m=>produce(m,l=>{var c;let a=(c=l==null?void 0:l.list)==null?void 0:c.find(f=>f.id===r.id);a&&(a.permissions=r.permissions);}),{revalidate:!1}),o.success(i("RoleList.updateSuccessfully"));});return X({title:i("RoleList.updateTitle"),width:"50vw",layout:"vertical",content:jsxs(Fragment,{children:[jsx(Form.Item,{hidden:!0,label:"ID",name:"id",children:jsx(Input,{})}),jsx(Form.Item,{label:i("name"),name:"name",rules:[{required:!0}],children:jsx(Input,{readOnly:!0,addonBefore:"role_"})}),jsx(Form.Item,{name:"permissions",children:jsx(ce,{})})]}),onConfirm:n})},pr=()=>{let{accessible:o}=W("200005",{isGlobalNS:!0}),{modal:t,message:s}=App.useApp(),{usePermissionApiV2:i}=R(),n=Lo(),{mutate:r}=K(),{showModal:m,Modal:l}=ar(),{showModal:a,Modal:c}=lr(),f=S(),h=[{title:f("name"),key:"name",render(y){return o?jsx(Link,{to:`${y.name}`,children:y.name}):jsx(Fragment,{children:y.name})}},{title:"ID",dataIndex:"id",key:"id"},{title:f("creationTime"),dataIndex:"ctime",key:"ctime"},{title:f("operation"),width:150,align:"center",render:y=>jsxs(Space,{size:"small",children:[jsx($,{isGlobalNS:!0,code:"200003",size:"small",type:"link",onClick:()=>v(void 0,null,function*(){let{data:g}=yield V(`/api/usystem/role/info${i?"V2":""}?name=${y.name}`,{isGlobalNS:!0});a({initialValues:{id:g==null?void 0:g.id,permissions:g==null?void 0:g.permissions,name:g==null?void 0:g.name.replace(/^role_/,"")}});}),children:f("edit")}),jsx($,{isGlobalNS:!0,danger:!0,code:"200004",size:"small",type:"link",onClick:()=>{t.confirm({title:f("RoleList.deleteTitle"),content:jsx(xe,{texts:[y.name],children:f("RoleList.deleteContent",{role:y.name})}),onOk(){return v(this,null,function*(){yield n.trigger({id:y.id,name:y.name}),r(Ke,void 0,x=>produce(x,M=>{var b,w;let d=(b=M==null?void 0:M.list)==null?void 0:b.findIndex(I=>I.id===y.id);d&&((w=M==null?void 0:M.list)==null||w.splice(d,1));})),s.success(f("RoleList.deleteSuccessfully"));})}});},children:f("delete")})]})}];return jsxs(Fragment,{children:[jsx(Card,{title:f("role"),extra:jsx($,{isGlobalNS:!0,type:"primary",code:"200002",icon:jsx(UsergroupAddOutlined,{}),onClick:()=>{m();},children:f("RoleList.createTitle")}),children:jsx(Pe,{isGlobalNS:!0,rowKey:"name",columns:h,code:"200001",url:Ke,transformResponse:y=>{let{List:g,Total:x}=y;return {list:g,total:x}}})}),l,c]})},mr=pr;});var Xo={};ue(Xo,{default:()=>yr});var hr,yr,e1=T(()=>{p();Ee();G();hr=()=>{let o=useParams(),{data:t,isLoading:s}=ko(o.name),i=S();return jsxs(Fragment,{children:[jsx(Breadcrumb,{style:{marginBottom:24},items:[{key:"1",title:jsx(Link,{to:"/permission/role",children:i("role")})},{key:"2",title:o.name}]}),jsx(Card,{title:i("RoleDetail.title"),children:jsxs(Skeleton,{loading:s,children:[jsxs(Descriptions,{column:3,layout:"vertical",children:[jsx(Descriptions.Item,{label:i("name"),children:t==null?void 0:t.name}),jsx(Descriptions.Item,{label:"ID",children:t==null?void 0:t.id}),jsx(Descriptions.Item,{label:i("creationTime"),children:t==null?void 0:t.ctime})]}),jsx(ce,{readonly:!0,value:t==null?void 0:t.permissions})]})})]})},yr=hr;});p();p();var f1=o=>{let{initialTags:t,addable:s,removable:i,addCallback:n,removeCallback:r}=o,{token:m}=theme.useToken(),[l,a]=useState([]),[c,f]=useState(!1),[h,y]=useState(""),[g,x]=useState(-1),[M,d]=useState(""),b=useRef(null),w=useRef(null);useEffect(()=>{a(t!=null?t:[]);},[t]),useEffect(()=>{var L;c&&((L=b.current)==null||L.focus());},[c]),useEffect(()=>{var L;(L=w.current)==null||L.focus();},[h]);let I=L=>v(void 0,null,function*(){if(yield r==null?void 0:r(L)){let J=l.filter(de=>de!==L);a(J);}}),E=()=>{f(!0);},q=L=>{y(L.target.value);},fe=()=>v(void 0,null,function*(){h&&l.indexOf(h)===-1&&(yield n==null?void 0:n(h))&&a([...l,h]),f(!1),y("");}),He=L=>{d(L.target.value);},j=()=>{let L=[...l];L[g]=M,a(L),x(-1),y("");},Re={width:78,verticalAlign:"top"},H={background:m.colorBgContainer,borderStyle:"dashed"};return jsxs(Space,{wrap:!0,size:[0,8],children:[jsx(Space,{wrap:!0,size:[0,8],children:l.map((L,te)=>g===te?jsx(Input,{ref:w,size:"small",style:Re,value:M,onChange:He,onBlur:j,onPressEnter:j},L):jsx(Tag,{closable:i,style:{userSelect:"none"},onClose:J=>v(void 0,null,function*(){J.preventDefault(),yield I(L);}),children:jsx("span",{onDoubleClick:J=>{te!==0&&(x(te),d(L),J.preventDefault());},children:L})},L))}),s&&(c?jsx(Input,{ref:b,type:"text",size:"small",style:Re,value:h,onChange:q,onBlur:fe,onPressEnter:fe}):jsxs(Tag,{style:H,onClick:E,children:[jsx(PlusOutlined,{}),"\xA0\u6DFB\u52A0"]}))]})},d1=f1;Ye();Fe();be();Ve();p();A();be();p();p();var Xt=create()(persist(o=>({openKeys:[],setOpenKeys:t=>o({openKeys:t}),selectedKeys:[],setSelectedKeys:t=>o({selectedKeys:t})}),{name:"nav",storage:createJSONStorage(()=>localStorage),partialize:o=>({openKeys:o.openKeys,selectedKeys:o.selectedKeys})}));A();Q();var ys=(o,t)=>o?t?jsx(Link,{to:t,children:o}):o:jsx(Fragment,{});function to(o,t){let s=[];for(let r=0;r<o.length;r++)if(o[r]===null)s[r]=null;else if(o[r].type==="divider")s[r]=k({},o[r]);else if(o[r].children){let i=o[r],{children:m}=i,l=O(i,["children"]);s[r]=F(k({},l),{children:to(m!=null?m:[],t)});}else {let n=o[r],{route:m,label:l,code:a}=n,c=O(n,["route","label","code"]),f=!a||!t||t[a];s[r]=f?F(k({},c),{label:ys(l,m)}):null;}return s}function oo(o,t=[],s=[]){for(let i of o){let n=i.children;if(Array.isArray(n)){let r=i.type!=="group"&&i.key?[...s,i.key]:s;oo(n,t,r);}else t.push(Object.assign(i,{keypath:s}));}return t}var so=()=>{let o=useLocation(),{menuItems:t}=R(),s=useMemo(()=>oo(t!=null?t:[]),[t]),i=s.map(h=>h.code).filter(Boolean),{data:n}=Ze(i,{isGlobalNS:!0,suspense:!0}),r=useMemo(()=>to(t!=null?t:[],n),[t,n]),{openKeys:m,selectedKeys:l,setOpenKeys:a,setSelectedKeys:c}=Xt(),f=useCallback(h=>{var x;let y=h==null?void 0:h.find(M=>(m==null?void 0:m.indexOf(M))===-1),g=s.find(M=>y===M.key);a((x=g==null?void 0:g.keypath)!=null?x:[y]);},[s,m,a]);return useEffect(()=>{let h=s.find(y=>o.pathname===y.route);if(h){let y=h.key,g=h.keypath;c([y]),a(g);}},[s,o,a,c]),jsx(Menu,{style:{borderRight:"none"},items:r,mode:"inline",openKeys:m,selectedKeys:l,onOpenChange:f})};so.displayName="NavMenu";var rt=so;p();G();re();var Ss=()=>{let o=useNavigate(),{clearToken:t,getUser:s}=z(),i=s(),n=S();return jsx(Dropdown,{menu:{selectable:!0,items:[{key:"1",label:jsx(io,{onClick:()=>{t(),o("/login");},children:n("UserWidget.logoutText")}),icon:jsx(LogoutOutlined,{})}]},placement:"bottomRight",children:jsx(io,{children:jsxs(Space,{align:"center",children:[jsx("span",{children:i==null?void 0:i.authorityId}),jsx(UserOutlined,{style:{fontSize:"16px"}})]})})})},nt=Ss;p();G();be();A();var Rs=o=>{let{children:t}=o,{usePermissionApiV2:s,hideGameSelect:i}=R(),{game:n}=ne(),r=S();return s&&!i?n?jsx("div",{children:t},n.id):jsx(Card,{children:jsx(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE,description:r("RequireGame.description")})}):t},lt=Rs;var {Spin:Zs,theme:Ns}=we,{Header:Gs,Sider:Us,Content:Ds}=we.Layout,Os=o=>{let{children:t,extras:s}=o,{token:{colorBgContainer:i,colorBorder:n}}=Ns.useToken(),{title:r,usePermissionApiV2:m,hideGameSelect:l,localeDropdownMenu:a}=R();return jsxs(we.Layout,{hasSider:!0,className:"h-screen",children:[jsxs(Us,{width:256,style:{overflow:"auto",height:"100vh",position:"fixed",left:0,top:0,bottom:0,borderRightWidth:1,borderRightStyle:"solid",borderRightColor:n},theme:"light",children:[jsxs("div",{className:"flex items-end px-6 py-4",children:[jsx("img",{src:Vs,alt:"logo",className:"w-8 h-8"}),jsx(Link,{className:"font-bold text-lg ml-2",to:"/",children:r})]}),jsx(rt,{})]}),jsxs(we.Layout,{className:"ml-64",children:[jsx(Gs,{style:{padding:"0 24px",background:i,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:n},children:jsxs("div",{className:"flex justify-between items-center h-full",children:[jsx("div",{children:m&&!l&&jsx(st,{})}),jsxs(Space,{size:"small",split:jsx(Divider,{type:"vertical"}),children:[s==null?void 0:s.map(c=>jsx("span",{children:c.children},c.key)),a,jsx(nt,{})]})]})}),jsx(Ds,{className:"p-6 bg-gray-50",style:{overflow:"overlay"},children:jsx(Suspense,{fallback:jsx(Zs,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"200px"}}),children:m&&!l?jsx(lt,{children:t}):t})})]})]})},As=Os;Ge();p();G();Q();var zs=o=>{let{code:t,children:s}=o,{accessible:i,isValidating:n}=W(t),r=S();return n?jsx(Spin,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:200}}):i?jsx(Fragment,{children:s}):jsx(Result,{status:"403",subTitle:r("noEntitlement")})},qs=zs;De();A();Q();Me();re();p();var Ti=lazy(()=>Promise.resolve().then(()=>(xo(),bo))),ki=lazy(()=>Promise.resolve().then(()=>(Mo(),wo))),Ri={children:[{path:"login",element:jsx(Ti,{})},{path:"*",element:jsx(ki,{})}]},vi=Ri;p();var wr=lazy(()=>Promise.resolve().then(()=>(Qo(),Ho))),Mr=lazy(()=>Promise.resolve().then(()=>(Yo(),Jo))),Pr=lazy(()=>Promise.resolve().then(()=>(e1(),Xo))),Cr=[{path:"permission",children:[{index:!0,element:jsx(Navigate,{relative:"path",to:"user"})},{path:"user",element:jsx(wr,{})},{path:"role",element:jsx(Mr,{})},{path:"role/:name",element:jsx(Pr,{})}]}],Sr=Cr;G();ot();_();
|
|
21
|
+
var Ft=Object.defineProperty,n1=Object.defineProperties;var a1=Object.getOwnPropertyDescriptors;var ve=Object.getOwnPropertySymbols;var Vt=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable;var It=(o,e,s)=>e in o?Ft(o,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[e]=s,L=(o,e)=>{for(var s in e||(e={}))Vt.call(e,s)&&It(o,s,e[s]);if(ve)for(var s of ve(e))Zt.call(e,s)&&It(o,s,e[s]);return o},Z=(o,e)=>n1(o,a1(e));var O=(o,e)=>{var s={};for(var i in o)Vt.call(o,i)&&e.indexOf(i)<0&&(s[i]=o[i]);if(o!=null&&ve)for(var i of ve(o))e.indexOf(i)<0&&Zt.call(o,i)&&(s[i]=o[i]);return s};var k=(o,e)=>()=>(o&&(e=o(o=0)),e);var ue=(o,e)=>{for(var s in e)Ft(o,s,{get:e[s],enumerable:!0});};var v=(o,e,s)=>new Promise((i,n)=>{var r=a=>{try{m(s.next(a));}catch(c){n(c);}},l=a=>{try{m(s.throw(a));}catch(c){n(c);}},m=a=>a.done?i(a.value):Promise.resolve(a.value).then(r,l);m((s=s.apply(o,e)).next());});var p=k(()=>{});var f1,Bt,At=k(()=>{p();f1={noEntitlement:"No permission, please contact the administrator.",name:"Name",creationTime:"Creation Time",operation:"Operation",update:"Update",edit:"Edit",delete:"Delete",selectAll:"Select All",game:"Game",user:"User",role:"Role",Login:{title:"Login Method",thirdParty:"Third Party Login",loginWithIDass:"IDass Login",notRegistered:"You are not yet registered on the platform, please contact the administrator"},NotFound:{subTitle:"The page you visited does not exist",buttonText:"Return to page"},FilterFormWrapper:{confirmText:"Search",resetText:"Reset"},FormModal:{confirmText:"Confirm",cancelText:"Cancel"},GameSelect:{label:"Current Game",placeholder:"Please select a game"},RequireGame:{description:"Please select a game"},UserWidget:{logoutText:"Logout"},UserList:{createTitle:"Create User",createSuccessfully:"User created successfully",updateTitle:"Update User",updateSuccessfully:"User updated successfully",deleteTitle:"Delete User",deleteContent:"Are you sure you want to delete user <%= user %>?",deleteSuccessfully:"User deleted successfully"},RoleList:{createTitle:"Create Role",createSuccessfully:"Role created successfully",updateTitle:"Update Role",updateSuccessfully:"Role updated successfully",deleteTitle:"Delete Role",deleteContent:"Are you sure you want to delete role <%= role %>?",deleteSuccessfully:"Role deleted successfully"},PermissionList:{failedDescription:"Failed to get permission list",baseSectionTitle:"Platform Basic Permissions",gameSectionTitle:"Game Permissions",gameSectionDescription:"Please select a game first",gameSelectPlaceholder:"Please select a game first",removeText:"Remove",addText:"Add Game Permissions"},RoleDetail:{title:"Role Details"}},Bt=f1;});function R(){return useContext(Wt)}var Et,he,Wt,Kt,h1,B=k(()=>{p();Et={title:"",menuItems:[],hideGameSelect:!1,usePermissionApiV2:!1},he=Et,Wt=createContext(Et);Kt=s=>{var i=s,{children:o}=i,e=O(i,["children"]);let n=R(),r=merge({},n!=null?n:he,e);return he=r,jsx(Wt.Provider,{value:r,children:o})};Kt.displayName="ToolkitsContextProvider";h1=Kt;});function M(){let{locale:o=Bt}=R();return (e,s)=>has(o,e)?template(get(o,e))(s):e}var G=k(()=>{p();At();B();});var S1,Je,Ye=k(()=>{p();G();S1=o=>{let{confirmText:e,extras:s,onConfirm:i,onReset:n,children:r}=o,{token:l}=theme.useToken(),m=M(),a={maxWidth:"none",background:l.colorFillAlter,borderWidth:l.lineWidth,borderStyle:l.lineType,borderColor:l.colorBorder,borderRadius:l.borderRadiusLG,padding:24,marginBottom:24};return jsx("div",{style:a,children:jsxs("div",{className:"flex",children:[jsx("div",{className:"flex-1",children:r}),jsx("div",{className:"ml-8",children:jsxs(Space,{children:[jsx(Button,{type:"primary",onClick:i,children:e||m("FilterFormWrapper.confirmText")}),jsx(Button,{htmlType:"reset",onClick:n,children:m("FilterFormWrapper.resetText")}),s==null?void 0:s.map(c=>jsx("span",{children:c.children},c.key))]})})]})})},Je=S1;});function X(o){let h=o,{content:e}=h,s=O(h,["content"]),[i]=Form.useForm(),[n,r]=useState(!1),[l,m]=useState(s),a=d=>{m(d?merge(s,d):s),r(!0);},c=useCallback(()=>{r(!1),i.resetFields();},[i]);return {Modal:useMemo(()=>createPortal(jsx($t,Z(L({},l),{form:i,open:n,onCancel:c,children:e==null?void 0:e(i)})),document.body),[c,e,i,l,n]),showModal:a,closeModal:c,form:i}}var $t,F1,Ie=k(()=>{p();G();$t=o=>{let C=o,{form:e,initialValues:s,renderFooter:i,className:n,children:r,onCancel:l,onConfirm:m}=C,a=O(C,["form","initialValues","renderFooter","className","children","onCancel","onConfirm"]),[c,f]=useState(!1),h=M(),d=()=>{l==null||l();},y=()=>v(void 0,null,function*(){try{f(!0);let u=yield e.validateFields();yield m==null?void 0:m(u),l==null||l(),e.resetFields();}finally{f(!1);}}),S=i?i(e):[jsx(Button,{onClick:d,children:h("FormModal.cancelText")},"cancel"),jsx(Button,{type:"primary",loading:c,onClick:y,children:h("FormModal.confirmText")},"submit")];return useEffect(()=>{e.setFieldsValue(s);},[s,e]),jsx(Modal,Z(L({},a),{destroyOnClose:!0,forceRender:!0,className:n+" text-start",getContainer:!1,footer:S,onCancel:l,children:r}))},F1=$t;});var et,tt=k(()=>{p();et={getItem:o=>sessionStorage.getItem(o)||localStorage.getItem(o),setItem:(o,e)=>{sessionStorage.setItem(o,e),localStorage.setItem(o,e);},removeItem:o=>v(void 0,null,function*(){sessionStorage.removeItem(o),localStorage.removeItem(o);})};});function I(o,e){return v(this,null,function*(){let b=e!=null?e:{},{body:s,params:i,headers:n,responseType:r="json",isGlobalNS:l}=b,m=O(b,["body","params","headers","responseType","isGlobalNS"]),a=Ht.parseUrl(o),c=Object.assign({},a.query,i),f={skipNull:!0,skipEmptyString:!0,strict:!0,encode:!0},h=Ht.stringify(c,f);o=h?`${a.url}?${h}`:o,n=new Headers(n);let d=q.getState().token;if(n.set("Authorization",`Bearer ${d}`),he.usePermissionApiV2){let P=ae.getState().game;l?n.set("App-ID","global"):P&&n.set("App-ID",P.id);}r==="blob"?n.append("Accept","application/octet-stream"):n.append("Accept","application/json");let y=Z(L({},m),{headers:n,body:s===null||s instanceof FormData?s:JSON.stringify(s)}),S=yield fetch(o,y);if(!S.ok)throw new ye({status:S.status});let C=pick(S,["headers","status","statusText","url"]);if(r==="blob"){let P=yield S.blob();return Z(L({},C),{data:P})}let u=yield S.json();if(u.code===0||u.status===0)return Z(L({},C),{data:u.data});throw new ye({status:S.status,message:u.msg})})}var ye,_=k(()=>{p();B();be();ne();ye=class extends Error{constructor(s){super(s==null?void 0:s.message);this.status=s==null?void 0:s.status;}};});function A1(){let o=useNavigate(),{clearToken:e}=q(),[s,i]=useState(!1),{usePermissionApiV2:n}=R();B1(!s&&location.pathname!=="/login"?n?"/api/usystem/user/checkV2":"/api/usystem/user/check":null,r=>I(r,{method:"post",body:{permissions:["100001"]}}),{suspense:!0,shouldRetryOnError:!1,onError(r){r.status===401?(e(),o("/login")):r.status===412&&(e(),o("/login",{state:{notUser:!0}}));}}),useEffect(()=>{i(!0);},[]);}var q,ne=k(()=>{p();_();B();q=create()(persist((o,e,s)=>({token:"",getUser:()=>{try{return G1(e().token)}catch(i){return null}},setToken:i=>o({token:i}),clearToken:()=>{e().setToken(""),s.persist.clearStorage();}}),{name:"token",partialize:o=>({token:o.token})}));});function Y1(){let{usePermissionApiV2:o}=R(),e=q(n=>n.getUser()),{data:s,isLoading:i}=B1(o&&e?`/api/usystem/game/all?user=${e.authorityId}`:null,n=>I(n,{isGlobalNS:!0}).then(r=>r.data));return {games:s,isLoading:i}}var J1,ae,X1,ot,be=k(()=>{p();tt();G();B();ne();_();(({Text:J1}=Typography)),ae=create()(persist(o=>({game:null,setGame:e=>o({game:e})}),{name:"game",storage:createJSONStorage(()=>et),partialize:o=>({game:o.game})}));X1=()=>{let o=M(),{gameFilter:e}=R(),{game:s,setGame:i}=ae(),{games:n,isLoading:r}=Y1(),l=useMemo(()=>{var a,c;return (c=(a=n!=null?n:[])==null?void 0:a.filter(f=>!e||e(f)))==null?void 0:c.map(f=>({label:f.name,value:f.id}))},[n,e]),m=useCallback(a=>v(void 0,null,function*(){let c=(n!=null?n:[]).find(f=>f.id===a);c&&i(c);}),[n,i]);return useEffect(()=>{!r&&(l.length===0||!l.some(a=>a.value===(s==null?void 0:s.id)))&&i(null);},[r,s,l,i]),jsxs(Space,{children:[jsx(J1,{children:o("GameSelect.label")}),jsx(Select,{showSearch:!0,optionFilterProp:"label",value:s==null?void 0:s.id,placeholder:o("GameSelect.placeholder"),loading:r,style:{width:"200px"},options:l,onChange:m})]})},ot=X1;});function ns(o){let e=document.createElement("div"),s=createRoot(e);return new Promise(i=>{setTimeout(()=>{flushSync(()=>{s.render(o);}),i(e.innerHTML);});})}var rs,as,xe,Fe=k(()=>{p();rs=o=>{let e=/(<[^>]*>)/;return o.split(e).filter(s=>s!=="")};as=o=>{let{texts:e,children:s}=o,[i,n]=useState("");return useEffect(()=>{ns(s).then(r=>{let l=rs(r);for(let m of e)for(let a=0;a<l.length;a++)l[a]=l[a].replace(String(m),`<span style='color: #DC143C;'>${m}</span>`);n(l.join(""));});},[s,e]),jsx("p",{dangerouslySetInnerHTML:{__html:i}})},xe=as;});function Ve(o,e){let{usePermissionApiV2:s}=R(),{data:i,isValidating:n,isLoading:r}=De(o.length>0?[s?"/api/usystem/user/checkV2":"/api/usystem/user/check",o]:null,([l])=>I(l,{method:"post",body:{permissions:o},isGlobalNS:e==null?void 0:e.isGlobalNS}).then(m=>m.data.has_all?o.reduce((a,c)=>(a[c]=!0,a),{}):o.reduce((a,c)=>(a[c]=m.data[c],a),{})),{suspense:e==null?void 0:e.suspense,shouldRetryOnError:!1});return {data:i,isValidating:n,isLoading:r}}function W(o,e){var r;let{data:s,isValidating:i,isLoading:n}=Ve(o?[o]:[],e);return o===void 0?{accessible:!0,isValidating:!1,isLoading:!1}:{accessible:(r=s==null?void 0:s[o])!=null?r:!1,isValidating:i,isLoading:n}}var H=k(()=>{p();B();_();});var Ws,$,Ne=k(()=>{p();G();H();Ws=o=>{let c=o,{children:e,code:s,showLoading:i,isGlobalNS:n}=c,r=O(c,["children","code","showLoading","isGlobalNS"]),{accessible:l,isLoading:m}=W(s,{isGlobalNS:n}),a=M();return m?jsx(Button,Z(L({loading:i,disabled:!i},r),{children:e})):l?jsx(Button,Z(L({},r),{children:e})):jsx(Tooltip,{defaultOpen:!1,title:a("noEntitlement"),children:jsx(Button,Z(L({disabled:!0},r),{children:e}))})},$=Ws;});var K,Me=k(()=>{p();K=create((o,e)=>({keyMap:new Map,paginationMap:new Map,mutate:(s,i,n,r)=>{var h,d,y;let{keyMap:l,paginationMap:m}=e(),a=l.get(s),{page:c=1,size:f=10}=(h=m.get(s))!=null?h:{};i?(!i.page||i.page===c)&&(!i.size||i.size===f)?mutate(a,n,r):o({paginationMap:new Map(m).set(s,{page:(d=i.page)!=null?d:c,size:(y=i.size)!=null?y:f})}):mutate(a,n,r);}}));});var lo,ti,oi,Pe,Ue=k(()=>{p();G();Ye();H();_();Me();lo=(n=>(n.Confirm="confirm",n.Reset="reset",n.Jump="jump",n.Init="init",n))(lo||{}),ti={list:[],total:0},oi=o=>{var kt,Rt;let Tt=o,{code:e,confirmText:s,url:i,headers:n,isGlobalNS:r,transformArg:l,transformResponse:m,afterSuccess:a,form:c}=Tt,f=O(Tt,["code","confirmText","url","headers","isGlobalNS","transformArg","transformResponse","afterSuccess","form"]),h=M(),{instance:d,children:y}=c!=null?c:{},{accessible:S,isLoading:C}=W(e,{isGlobalNS:r}),u=useRef(),{mutate:b,paginationMap:P,keyMap:V}=K(),{page:E=1,size:z=10}=(kt=P.get(i))!=null?kt:{},[de,Te]=useState(),[ke,Q]=useState(!1),_e=(Rt=l==null?void 0:l(E,z,de))!=null?Rt:Z(L({},de),{page:E,size:z}),T=useCallback((...Y)=>b(i,...Y),[b,i]),j=Ht.parseUrl(i),J=Object.assign({},j.query,_e),$e=Ht.stringify(J),He=ke?`${j.url}?${$e}`:null,{refreshInterval:Xo}=useSWRConfig(),{data:se,isLoading:e1,isValidating:t1}=De(He,Y=>v(void 0,null,function*(){var Lt;let Re=yield I(Y,{headers:n,isGlobalNS:r}),vt=(Lt=m==null?void 0:m(Re.data))!=null?Lt:Re.data;return a==null||a(vt,u.current),u.current=void 0,vt}),{shouldRetryOnError:!1,fallbackData:ti}),o1=(Y,Re)=>v(void 0,null,function*(){u.current="jump",T({page:Y,size:Re});}),s1={showSizeChanger:!0,showQuickJumper:!0,current:E,pageSize:z,total:se==null?void 0:se.total,onChange:o1},i1=()=>v(void 0,null,function*(){u.current="confirm",Te(d==null?void 0:d.getFieldsValue());try{yield d==null?void 0:d.validateFields(),T({page:1},void 0,{revalidate:!0}),Q(!0);}catch(Y){T({page:1},void 0,{revalidate:!1}),Q(!1);}}),Qe=useCallback(()=>v(void 0,null,function*(){d==null||d.resetFields(),Te(d==null?void 0:d.getFieldsValue());try{yield d==null?void 0:d.validateFields(),T({page:1},void 0,{revalidate:!0}),Q(!0);}catch(Y){d==null||d.resetFields(),T({page:1},void 0,{revalidate:!1}),Q(!1);}}),[d,T]),r1=()=>{u.current="reset",Qe();};return useEffect(()=>{S&&(u.current="init",Qe());},[S,i,c,Qe]),useEffect(()=>{V.set(i,He);},[V,He,i]),C?jsx(Spin,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:300}}):S?jsxs("div",{children:[y&&jsx(Je,{confirmText:s,onReset:r1,onConfirm:i1,children:y}),jsx(Table,Z(L({},f),{dataSource:se==null?void 0:se.list,loading:Xo===0?t1:e1,pagination:s1}))]}):jsx(Result,{status:403,subTitle:h("noEntitlement")})},Pe=oi;});var po,mo=k(()=>{p();po="https://idaas.ifunplus.cn/enduser/api/application/plugin_FunPlus/sso/v1";});var ii,co,fo=k(()=>{p();ii=()=>jsxs("svg",{viewBox:"0 0 1620 1028",xmlns:"http://www.w3.org/2000/svg",children:[jsx("g",{id:"a"}),jsx("g",{id:"b",children:jsx("g",{id:"c",children:jsxs("g",{children:[jsx("path",{fill:"#e8f2fa",d:"M1543.84,1025.63c-92.65,0-1442.29,.34-1443.07-2.11l-.13-.31s-.13-.3-.13-.45c-.52-1.23-207.95-345.42,114.53-585.03,126.18-93.75-7.9-155.64,92.44-260.01,115.31-119.94,241.15,12.74,369.38-41.64,22.66-9.6,45.39-25.05,68.15-48.76C797.78,32.37,870.19,6.95,944.96,1.25c143.27-10.86,304.51,50.23,387.71,139.53,16.75,17.98,92.93,111.03,32.88,238.91-37.91,80.74,120.91,157.86,177.35,250.06,143.49,234.42,2.24,392.82,.93,395.87Z"}),jsxs("g",{opacity:".5",children:[jsx("g",{opacity:".5",children:jsx("path",{fill:"#a9c2ff",d:"M522.98,381s-10.51-89.31-55.62-142.6c-6-7.08-17.47-2.57-17.28,6.76,0,.16,0,.31,.01,.47,.58,15.93,51.09,83.13,72.89,135.37Z"})}),jsx("g",{opacity:".5",children:jsx("path",{fill:"#a9c2ff",d:"M528.46,406.57s-44.95-111.62-121.74-160.99c-4.68-3.01-11.02-1.92-14.16,2.72-2.04,3.02-2.96,7.73-.67,15.1,6.12,19.63,91.75,85.72,136.57,143.18Z"})})]}),jsxs("g",{children:[jsx("path",{fill:"#73b471",d:"M1088.4,378.19s-40.25-25.14-19.73-56.1c0,0,16.18-18.86,32.87-23.19,0,0-10.72,47-1.98,48.49,8.75,1.48,8.23-53.25,8.23-53.25,0,0,44.27-19.36,61.23-16.97,0,0-28.81,45.13-19.97,44.38,8.84-.75,40.96-46.29,40.96-46.29,0,0,44.84-6.49,50.9,20.56,6.05,27.05-6.03,39.94-12.69,41.34-6.66,1.4-48.94-.94-48.07,4.68,.87,5.62,29.08,15.74,45.22,11.39,0,0-19.38,43.29-42.36,40.09-22.99-3.2-29.54-17.99-43.78-19.7-14.24-1.71-24.84,1.75-17.85,5.95,6.98,4.2,31.27,2.59,42.4,13.03,11.13,10.43,20.22,16.96-1.39,20.52-21.61,3.56-59.96-.84-66.97-17.88l-7.01-17.04Z"}),jsxs("g",{children:[jsx("path",{fill:"#73b471",d:"M1220.24,303.33s-116.93,33.06-131.84,74.86c0,0-.22,18.97-12.65,40.22l-.34,8.36s13.25-27.92,20-31.54c0,0-24.32-37.87,124.83-91.9Z"}),jsx("path",{fill:"#73b471",d:"M1075.75,418.41s-18.91,26.66-10.13,60.45l4.63-1.05s-2.94-36.94,7.12-55.03c10.06-18.09-1.62-4.37-1.62-4.37Z"})]})]}),jsxs("g",{children:[jsx("path",{fill:"#9bd399",d:"M925.53,377.18s-67.6,6.07-70.13-47.44c0,0,2.69-35.79,18.25-55.28,0,0,27.38,63.45,38.71,57.55,11.32-5.9-35.54-68.47-35.54-68.47,0,0,34.61-60.79,56.16-72.8,0,0,4.97,77.02,14.52,68.48,9.54-8.54,8.04-88.93,8.04-88.93,0,0,46.15-46.48,75.98-20.59,29.83,25.89,26.82,51.24,20.33,58.64-6.49,7.4-57.15,41.49-51.4,47.2,5.75,5.71,46.78-7.17,61.69-26.21,0,0,14.28,66.7-14.89,83.01-29.17,16.31-49.21,4.98-67.06,15.39-17.84,10.41-27.12,23.62-15.53,22.38,11.59-1.24,38.19-24.21,59.83-21.88,21.64,2.33,37.62,1.94,15.74,24.83-21.87,22.89-69.75,51.18-92.22,37.65l-22.48-13.53Z"}),jsxs("g",{children:[jsx("path",{fill:"#9bd399",d:"M1014.06,176.32s-106.69,139.76-88.53,200.87c0,0,15.78,22.04,19.44,57.32l6.67,9.92s-8.34-43.67-3.63-53.71c0,0-60.01-22.45,66.05-214.39Z"}),jsx("path",{fill:"#9bd399",d:"M944.97,434.5s.76,47.15,39.44,78.42l4.44-5.24s-34.61-39.97-38.32-69.55c-3.71-29.58-5.56-3.62-5.56-3.62Z"})]})]}),jsxs("g",{children:[jsxs("g",{children:[jsx("path",{fill:"#b6cfff",d:"M290.34,904.31s-18.93-22.41-1.17-36.64c0,0,12.98-7.97,23.56-7.32,0,0-14.99,25.5-10.14,28.04,4.85,2.54,14.69-29.64,14.69-29.64,0,0,29.53-2.91,39.03,1.73,0,0-25.25,20.96-19.93,22.2,5.32,1.25,32.58-19.32,32.58-19.32,0,0,27.48,4.74,26.02,21.75-1.47,17.01-10.94,22.26-15.1,21.81-4.16-.45-28.51-9.88-29.04-6.42-.53,3.46,14.13,14.77,24.39,15.29,0,0-19.38,21.68-32.26,15.42-12.88-6.26-13.98-16.17-22.01-19.89-8.03-3.72-14.88-3.71-11.57,.08,3.31,3.79,17.84,7.48,22.43,15.72,4.59,8.24,8.71,13.79-4.61,11.76-13.32-2.03-34.98-11.92-35.93-23.25l-.95-11.32Z"}),jsxs("g",{children:[jsx("path",{fill:"#b6cfff",d:"M381.48,885.57s-74.65-2.92-91.14,18.74c0,0-3.65,11.08-14.87,21.16l-1.75,4.83s12.94-13.84,17.56-14.67c0,0-7.24-26.83,90.19-30.06Z"}),jsx("path",{fill:"#b6cfff",d:"M275.48,925.47s-16.02,12.02-17.14,33.5l2.91,.26s5.12-22.21,14.37-30.89c9.25-8.68-.14-2.87-.14-2.87Z"})]})]}),jsxs("g",{children:[jsx("path",{fill:"#a9c2ff",d:"M224.15,876.13s30.12-17.11,16.06-40.33c0,0-11.24-14.26-23.29-17.92,0,0,6.42,34.62,0,35.44-6.43,.81-4.42-39.11-4.42-39.11,0,0-31.72-15.48-44.17-14.26,0,0,19.68,33.81,13.25,33-6.43-.81-28.51-35.03-28.51-35.03,0,0-32.53-6.11-37.75,13.44-5.22,19.55,3.21,29.33,8.03,30.55,4.82,1.22,35.74,.81,34.94,4.89-.8,4.07-21.69,10.59-33.33,6.92,0,0,12.85,32.18,29.72,30.55,16.87-1.63,22.09-12.22,32.53-13.03,10.44-.81,18.07,2.04,12.85,4.89-5.22,2.85-22.89,.93-31.32,8.21-8.43,7.27-15.26,11.75,.4,15.01,15.66,3.26,43.77,1.22,49.39-11l5.62-12.22Z"}),jsxs("g",{children:[jsx("path",{fill:"#a9c2ff",d:"M130.18,817.47s84.33,27.7,93.97,58.66c0,0-.4,13.85,8.03,29.74v6.11s-8.83-20.78-13.65-23.63c0,0,18.87-26.88-88.35-70.88Z"}),jsx("path",{fill:"#a9c2ff",d:"M232.18,905.87s13.01,20.03,5.59,44.42l-3.35-.91s3.25-26.86-3.56-40.37c-6.8-13.51,1.31-3.14,1.31-3.14Z"})]})]}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M272.06,852.53s-39.7-22.55-21.17-53.16c0,0,14.82-18.79,30.7-23.63,0,0-8.47,45.64,0,46.72,8.47,1.07,5.82-51.55,5.82-51.55,0,0,41.82-20.4,58.23-18.79,0,0-25.94,44.57-17.47,43.49,8.47-1.07,37.58-46.18,37.58-46.18,0,0,42.88-8.05,49.76,17.72,6.88,25.77-4.23,38.66-10.59,40.27-6.35,1.61-47.11,1.07-46.05,6.44,1.06,5.37,28.58,13.96,43.94,9.13,0,0-16.94,42.42-39.17,40.27-22.23-2.15-29.11-16.11-42.88-17.18-13.76-1.07-23.82,2.69-16.94,6.44,6.88,3.76,30.17,1.23,41.29,10.82,11.12,9.59,20.12,15.49-.53,19.79-20.64,4.3-57.7,1.61-65.11-14.5l-7.41-16.11Z"}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M395.93,775.21s-111.16,36.51-123.87,77.32c0,0,.53,18.26-10.59,39.2v8.05s11.65-27.39,18-31.14c0,0-24.88-35.44,116.46-93.43Z"}),jsx("path",{fill:"#cedfff",d:"M261.48,891.73s-17.14,26.41-7.37,58.55l4.41-1.2s-4.28-35.41,4.69-53.21c8.97-17.81-1.73-4.14-1.73-4.14Z"})]})]}),jsx("path",{fill:"#bbd3ff",d:"M270.72,1019.99c42.95,0,77.77-35.32,77.77-78.89H192.96c0,43.57,34.82,78.89,77.77,78.89Z"}),jsx("path",{fill:"#bbd3ff",d:"M349.57,1024.01H191.88c0-5.37,4.3-9.73,9.59-9.73h138.49c5.3,0,9.59,4.36,9.59,9.73h0Z"}),jsx("rect",{fill:"#80a1e6",height:"2.42",width:"159.86",y:"941.11",x:"190.4"})]}),jsx("path",{fill:"#768cee",d:"M801.19,578.05l-34.8,419.74s-3.65,25.44,15.01,25.49c30.68,.07,152.69,0,152.69,0,0,0-23.09-5.3-22.81-17.21,.33-14.05,40.67-431.99,40.67-431.99l-150.76,3.97Z"}),jsx("path",{fill:"#a9c2ff",d:"M945.58,1015.66c-6.03,.02-124.16,.22-154.03-.17-13.02-.16-15.3-11.74-15.41-19.24-.05-3.59,.4-6.25,.4-6.25l.9-10.91,2.31-27.81,2.04-24.57,2.62-31.57,2.2-26.64,24.73-298.26,150.76-3.97s-16.99,174.91-29.01,302.22c-1.34,14.19-2.62,27.79-3.8,40.48-.38,4.05-.75,8.02-1.11,11.88-1.11,12.05-2.13,23.11-3.02,32.88-.47,5.15-.9,9.93-1.29,14.31-1.53,17.17-2.43,28.13-2.44,30.22,0,1.22,.1,2.35,.29,3.4,2.47,13.38,21.59,13.98,23.86,13.98Z"}),jsx("polygon",{fill:"#a9c2ff",points:"435.05 349.47 519.82 694.86 531.43 742.16 570.91 903.04 1304.39 903.04 1158.87 349.47 435.05 349.47"}),jsx("polygon",{fill:"#768cee",points:"435.05 349.46 423.31 353.44 555.29 915.06 570.91 903.04 435.05 349.46"}),jsx("polygon",{fill:"#809bf5",points:"555.29 915.06 1284.26 915.06 1304.39 903.04 570.91 903.04 555.29 915.06"}),jsx("rect",{fill:"#a9c2ff",transform:"translate(1780.4 2038.92) rotate(180)",height:"7.61",width:"157.83",y:"1015.66",x:"811.28"}),jsx("polygon",{fill:"#899bfa",points:"928.99 915.05 928.18 920.87 779.74 951.29 781.78 926.72 782.75 915.05 928.99 915.05"}),jsx("g",{opacity:".5",children:jsx("path",{fill:"#899bfa",d:"M945.58,1015.66c-6.03,.02-124.16,.22-154.03-.17-13.02-.16-15.3-11.74-15.41-19.24l147.73-28.19c-1.53,17.17-2.43,28.13-2.44,30.22,0,1.22,.1,2.35,.29,3.4,2.47,13.38,21.59,13.98,23.86,13.98Z"})}),jsx("polygon",{fill:"#899bfa",points:"435.05 349.46 1158.87 349.46 1276.31 794.36 544.24 794.36 435.05 349.46"}),jsx("polygon",{fill:"#5158bf",points:"1242.18 775.08 564.46 775.08 540.24 677.22 530.87 639.35 527.05 623.91 502.16 523.34 500.87 518.1 487.71 464.94 481.83 441.15 476.81 420.86 472.71 404.31 465.03 373.3 1132.98 373.3 1141.41 404.31 1145.91 420.86 1151.42 441.15 1157.88 464.94 1200.47 621.65 1200.47 621.65 1204.08 634.93 1205.76 641.09 1235.16 749.28 1242.18 775.08"}),jsx("polygon",{fill:"#5d6cd2",points:"973.57 757.36 624.87 757.36 605.71 662.1 598.3 632.14 595.28 619.93 575.59 540.37 574.57 536.23 564.16 494.17 559.5 475.35 555.53 459.3 552.29 446.21 546.22 421.68 887.42 421.68 973.57 757.36"}),jsx("polygon",{fill:"#899bfa",points:"819.24 794.36 571.16 904.34 544.24 794.36 819.24 794.36"}),jsxs("g",{children:[jsx("path",{fill:"#2a3967",d:"M1384.19,552.09c.04-.99,.79-11.66,16.82-12.22,0,0-7.88,.95-9.24,4.47,0,0,5.37-4.34,9.74-2.95,4.37,1.4,6.94,9.16,6.96,11.72,.03,2.55-2.4,10.79-5.18,11.49-1.05,.27-2.26,.19-3.36,0,.74,1.17,1.46,2.46,2.15,3.9,6.4,13.32-.2,26.33-5.61,24.89-3.47-.92-4.45,5.09-4.45,5.09l-33.74-27.7s12.39-26.01,25.91-18.69Z"}),jsx("path",{fill:"#ffae73",d:"M1292.25,718.6c2.82,2.53,10.3-6.16,11.33-7.32,.05-.11,.11-.17,.11-.17l-2.28-6.44s-9.82-.38-11.44,1.27c-1.63,1.65-.81,9.96,2.28,12.65Z"}),jsx("path",{fill:"#25468f",d:"M1372.45,944.42l7.17,2.71s31.12-43.79,34.96-82.31c.68-6.88-.72-21.46-.19-24.57,.25-1.45,.55-3.2,.89-5.21,1.01-5.88,2.4-13.93,4-23.09,3.66-21.09,8.41-48.04,12.09-67.85l-1.93-.63-20.89-6.84-4.32-13.91-15.56-4.15s-3.47,6.9-6.58,39.47c-.57,4.27-1.09,8.98-1.49,14.09-1.21,15.6-1.3,34.94,1.48,57.06,.71,5.66,3.67,27.92,3.33,34.81-1.57,31.49-12.96,80.44-12.96,80.44Z"}),jsx("path",{fill:"#1e3865",d:"M1380.6,772.11l33.78,68.12c.25-1.45,.55-3.2,.89-5.21,1.01-5.88,2.4-13.93,4-23.09,3.66-21.09,8.41-48.04,12.09-67.85l-1.93-.63-20.89-6.84-4.32-13.91-15.56-4.15s-3.47,6.9-6.58,39.47c-.57,4.27-1.09,8.98-1.49,14.09Z"}),jsx("path",{fill:"#25468f",d:"M1395.46,727.29l.78-6.8c13.1,3.53,48.1-9.86,48.1-9.86,0,0,12.69,11.32,11.03,38.44-.81,13.24-2.3,69.5-3.85,86.15-.56,6.03,3.3,21.56,4.85,25.75,15.23,41.17-2.35,91.87-2.35,91.87l-4.56-1.87s-28.85-106.12-31.83-117.36c-5.63-21.25-10.15-48.9-13.17-70.25-.42,.02-9.01-36.08-9.01-36.08Z"}),jsx("path",{fill:"#ffae73",d:"M1385.52,648.37c22.52,1.25,17.57-32.81,16.2-32.63-2.76-1.46-7.7-8.55-10.56-20.41l-.97,.46-16.25,7.75s1.73,5.36,3,10.5c.99,4.02,1.71,7.9,1.11,8.98-1.28,.53-2.05,.86-2.05,.86,0,0,0,0,0,.02-.16,.42,3.52,24.15,9.53,24.48Z"}),jsx("path",{fill:"#f99352",d:"M1373.93,603.53s1.73,5.36,3,10.5c9.5-2.69,12.38-12.82,13.25-18.25l-16.25,7.75Z"}),jsx("path",{fill:"#ffae73",d:"M1371.93,609.21s22.73-5.34,19.23-19.64c-3.49-14.31-2.91-24.63-17.57-21.83-14.66,2.8-16.13,8.97-16.11,14.03,.02,5.06,8.45,28.46,14.45,27.44Z"}),jsx("path",{fill:"#2a3967",d:"M1356.2,573.64c2.44-5.19,5.32-4.91,7.12-3.99,10.68-10.02,21.15-1.83,21.15-1.83,4.03,9.88,12.77,13.92,12.77,13.92,0,0-3.49,3.63-13.61,3.55-3.09-.02-6.2-1.46-9.03-3.45,5.45,5.57,11.85,8.97,11.85,8.97-12.67-2.46-21.16-17.34-22.03-18.92-1.07,1.61-3.13,5.03-3.3,7.92-.23,3.93,1.1,11.55-1.12,11.84,0,0-7.47-10.23-3.8-18Z"}),jsx("path",{fill:"#1e3865",d:"M1427.51,956.62h36.09s.87-5.58-1.02-9.81c-1.81-4.06-4.64-5.91-3.96-10.82-2.29,2.4-6.03,5.08-11.25,4.37-.64,1.05-4.13,6.68-6.26,8.23-2.36,1.72-12.88,1.11-13.6,8.04Z"}),jsx("path",{fill:"#1e3865",d:"M1350.02,956.62h36.09s1.35-5.84-1.02-9.81c-2.1-3.52-1.29-5.52,.26-8.43-1.64,.68-3.75,1.3-6.08,1.16-1.8-.1-3.7-.93-5.37-1.91-1.55,1.8-8.2,9.44-10.28,10.96-2.36,1.72-12.88,1.11-13.6,8.04Z"}),jsx("path",{fill:"#899bfa",d:"M1445.02,667.38c-1.94-6.38-3.95-12.51-5.98-18.16-4.62-12.85-7.56-19.56-10.05-24.76-4.74-9.89-25.93-9.27-25.93-9.27-4.08,14.92-15.3,24.22-15.3,24.22-5.98-3.56-10.43-16.08-10.43-16.08l-13.09,7.06h0s-4.05,2.45-7.58,12.75c-5.25,15.32-13.77,37.08-19.68,43.73-1.38,1.55-5.42,3.9-10.31,6.39h0c-.11,.17-.19,.25-.24,.25,.32,.73,1.74,4.18,4.04,7.69,1.87,2.85,4.32,5.73,7.22,7.21,2.23-1.09,6.25-2.7,7.95-3.76,6.16-3.82,15.33-9.32,22.51-20.93l2,27.29,3.62,49.37c5.57,1.76,10.87,3.13,15.89,4.18,.33-4.14,1.65-9.09,1.65-9.09-.06,2.6,2.94,7.56,4.71,10.27,46.22,7.51,67.88-12.94,67.88-12.94-1.8-18.1-9.58-54.72-18.91-85.41Z"}),jsx("path",{fill:"#6f7deb",d:"M1398.39,612.43s3.84,.26,4.67,2.76c0,0-5.02,20.49-15.29,24.22l10.62-26.97Z"}),jsx("path",{fill:"#6f7deb",d:"M1387.77,639.4s-9.82-17.97-9.78-20.4c0,0-3.73,3.35-3.49,5.85,0,0,8.27,13.43,13.26,14.55Z"}),jsx("path",{fill:"#6f7deb",d:"M1414.09,632.11c-.28,.97-20.31,49.54-38.28,67.44-7.87,7.84,17.2,5.57,17.44,4.12,.24-1.46,20.84-71.56,20.84-71.56Z"}),jsx("path",{fill:"#6f7deb",d:"M1370.8,712.54l1.71,27.4c54.8-12.91,50.2-101.44,50.2-101.44l-27.52,57.64-24.15,16.01s-.09,.14-.25,.39Z"}),jsx("path",{fill:"#a9c2ff",d:"M1326.37,693.41c.01,.06,.04,.09,.07,.09-.02-.04-.03-.08-.04-.1-.04-.09-.05-.09-.03,.01Z"}),jsxs("g",{children:[jsx("path",{fill:"#ff912b",d:"M1353.48,655.68l10.91,49.33c1.74,7.86-4.13,14.22-13.1,14.22h-262c-8.97,0-17.65-6.37-19.39-14.22l-10.91-49.33c-.07-.3-.12-.6-.16-.9-1.13-7.44,4.63-13.32,13.26-13.32h262c8.63,0,16.99,5.88,19.15,13.32,.1,.3,.17,.6,.24,.9Z"}),jsxs("g",{children:[jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1089.87 697 1087.3 697 1080.51 666.3 1083.08 666.3 1089.87 697"}),jsx("polygon",{fill:"#e8f2fa",points:"1107.58 678.97 1089.17 678.97 1087.24 670.28 1105.66 670.28 1107.58 678.97"}),jsx("polygon",{fill:"#e8f2fa",points:"1116.16 691.42 1091.92 691.42 1090 682.74 1114.24 682.74 1116.16 691.42"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1148.77 697 1146.2 697 1139.41 666.3 1141.98 666.3 1148.77 697"}),jsx("polygon",{fill:"#e8f2fa",points:"1152.7 678.97 1134.29 678.97 1132.37 670.28 1150.78 670.28 1152.7 678.97"}),jsx("polygon",{fill:"#e8f2fa",points:"1158.37 691.42 1134.13 691.42 1132.21 682.74 1156.45 682.74 1158.37 691.42"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1207.67 697 1205.1 697 1198.31 666.3 1200.88 666.3 1207.67 697"}),jsx("polygon",{fill:"#e8f2fa",points:"1197.82 678.97 1179.4 678.97 1177.48 670.28 1195.89 670.28 1197.82 678.97"}),jsx("polygon",{fill:"#e8f2fa",points:"1200.57 691.42 1176.33 691.42 1174.41 682.74 1198.65 682.74 1200.57 691.42"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1245.35 668.78 1215.1 668.78 1214.52 666.18 1244.78 666.18 1245.35 668.78"}),jsx("polygon",{fill:"#e8f2fa",points:"1228.12 671.23 1232.26 689.91 1223.69 689.91 1219.56 671.23 1228.12 671.23"}),jsx("polygon",{fill:"#e8f2fa",points:"1240.4 671.23 1245.84 695.82 1237.28 695.82 1231.84 671.23 1240.4 671.23"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1292.98 682.95 1262.72 682.95 1262.14 680.35 1292.4 680.35 1292.98 682.95"}),jsx("polygon",{fill:"#e8f2fa",points:"1272.86 672.31 1276.99 690.99 1268.42 690.99 1264.29 672.31 1272.86 672.31"}),jsx("polygon",{fill:"#e8f2fa",points:"1284.48 669.36 1289.92 693.94 1281.35 693.94 1275.91 669.36 1284.48 669.36"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1340.63 697.23 1310.37 697.23 1309.79 694.63 1340.05 694.63 1340.63 697.23"}),jsx("polygon",{fill:"#e8f2fa",points:"1317.78 673.28 1321.91 691.96 1313.34 691.96 1309.21 673.28 1317.78 673.28"}),jsx("polygon",{fill:"#e8f2fa",points:"1328.74 667.37 1334.18 691.96 1325.62 691.96 1320.18 667.37 1328.74 667.37"})]})]})]}),jsxs("g",{children:[jsx("path",{fill:"#ffae73",d:"M1327.16,714.82c2.99-.01,7.7-.22,10.42-1.28,0,0-8.7-.13-6.85-2.92,.34-.51,4.66-.12,9.49-.12,1.98,0,6.88,2.75,6.62,2.88,3.5-.47,6.68-1.16,7.71-1.38,.27-.06,.38-.11,.38-.11l3.09,9.13s-.65,.16-1.79,.38c-2.87,.72-8.79,2.26-14.37,4.46-7.81,3.14-13.55-.76-16.16-3.52-1.65-1.75-2.95-4.07-2.86-5.75,.1-1.84,2.5-1.76,4.32-1.77Z"}),jsx("path",{fill:"#ffae73",d:"M1348.16,715.52l1.9,7.04s2.39-.44,6.18-1.16c1.14-.22,1.79-.39,1.79-.39,3.04-.6,6.67-1.43,10.63-2.31h.06c6.78-1.65,14.37-3.63,20.77-5.83,.57-.2,1.14-.41,1.69-.61,3.78-1.42-3.53-20.9-6.84-18.47-.88,.65-1.82,1.31-2.8,1.99-5.49,3.78-12.47,7.99-18.67,11.54-3.04,1.76-5.91,3.36-8.3,4.68-3.85,2.14-6.4,3.52-6.4,3.52Z"}),jsx("path",{fill:"#899bfa",d:"M1381.53,695.79s-.4,13.3,11.88,19.77c14.19-5.2,21.78-26.66,27.64-41.4,.81-2.03,1.57-4.07,2.33-6.05,2.71-7.37,4.88-14.63,6.18-20.91,.81-3.74-14.97-22.61-16.97-18.15-3.09,7.09-6.34,16.28-9.38,25.41-1.68,5.01-3.31,10.01-4.94,14.63-.92,2.8-1.85,5.44-2.71,7.86-1.68,4.62-3.2,8.36-4.55,10.73-.87,1.54-3.36,3.69-6.67,6.11-.88,.65-1.82,1.31-2.8,1.99Z"})]})]}),jsx("polygon",{fill:"#3c4aaa",points:"1141.41 404.31 472.71 404.31 465.03 373.3 1132.98 373.3 1141.41 404.31"}),jsxs("g",{children:[jsx("path",{fill:"#e8f2fa",d:"M506.59,389.09c.87,2.78-.86,5.05-3.87,5.07-3.01,.02-6.16-2.22-7.03-4.99-.87-2.78,.86-5.05,3.87-5.07,3.01-.02,6.16,2.21,7.03,4.99Z"}),jsx("path",{fill:"#e8f2fa",d:"M529.14,388.93c.87,2.78-.86,5.05-3.87,5.07-3.01,.02-6.16-2.21-7.03-4.99-.87-2.78,.86-5.05,3.87-5.07,3.01-.02,6.16,2.21,7.03,4.99Z"}),jsx("path",{fill:"#e8f2fa",d:"M551.69,388.77c.87,2.78-.86,5.05-3.87,5.07-3.01,.02-6.16-2.21-7.03-4.99-.87-2.78,.86-5.05,3.87-5.07,3.01-.02,6.16,2.21,7.03,4.99Z"})]}),jsx("path",{fill:"#ff912b",d:"M559.5,475.35s78.71,.3,135.79,44.69c57.08,44.39,48.85,84.22,96.21,94.2,77.61,16.36,29.43-67.66,130.21-58.92l51.86,202.04h-348.7l-26.57-125.21-38.8-156.79Z"}),jsx("path",{fill:"#fff",d:"M809.47,617.1c-5.34,0-11.34-.72-18.11-2.15-26.14-5.51-35.78-20.39-47.98-39.22-10.11-15.61-22.69-35.03-48.52-55.11-16.21-12.61-44.82-29.59-89.01-38.86-26.44-5.54-46.15-5.68-46.35-5.68v-1.46c.2,0,20.06,.14,46.64,5.72,24.54,5.15,60,16.11,89.59,39.13,26.02,20.24,38.68,39.77,48.85,55.47,12.49,19.28,21.51,33.21,47.07,38.59,36.4,7.67,44.63-6.84,54.16-23.64,10.62-18.71,22.66-39.93,75.97-35.3l-.12,1.45c-52.41-4.55-64.2,16.24-74.6,34.58-4.82,8.5-9.38,16.53-17.46,21.49-5.44,3.34-12.02,4.99-20.12,4.99Z"}),jsx("path",{fill:"#fc7400",d:"M577.88,549.18l20.01,80.88,26.98,127.29h348.7l-17.58-66.1s-51.62-29.18-121.62-3.75c-70,25.44-147.49,1.96-152.48-55.25-5.62-64.51-64.06-95.58-104.01-83.08Z"}),jsx("path",{fill:"#fff",d:"M665.98,587.45c-20.04-31.44-57-47.24-87.89-37.57l-.42-1.39c31.49-9.85,69.13,6.2,89.52,38.17l-1.21,.79Z"}),jsxs("g",{children:[jsx("polygon",{fill:"#fff",points:"795.85 620.61 784.52 619.43 785.69 607.94 797.02 609.12 795.85 620.61"}),jsx("polygon",{fill:"#fff",points:"892.8 636.61 701.9 596.39 702.28 594.51 893.18 634.73 892.8 636.61"}),jsx("path",{fill:"#fff",d:"M698.84,595.11c.19-1.82,1.79-3.15,3.59-2.96,1.8,.19,3.1,1.82,2.92,3.64s-1.79,3.15-3.59,2.96c-1.8-.19-3.1-1.82-2.92-3.64Z"}),jsx("path",{fill:"#fff",d:"M889.74,635.33c.19-1.82,1.79-3.15,3.59-2.96,1.8,.19,3.1,1.82,2.92,3.64-.19,1.82-1.79,3.15-3.59,2.96-1.8-.19-3.1-1.82-2.92-3.64Z"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#fff",points:"656.9 504.31 648.61 496.38 656.42 487.98 664.71 495.9 656.9 504.31"}),jsx("polygon",{fill:"#fff",points:"687.13 528 622.39 462.58 623.73 461.23 688.46 526.64 687.13 528"}),jsx("path",{fill:"#fff",d:"M620.52,459.81c1.14-1.42,3.2-1.64,4.6-.49,1.4,1.15,1.62,3.24,.48,4.67-1.14,1.42-3.2,1.64-4.6,.49-1.4-1.15-1.62-3.24-.48-4.67Z"}),jsx("path",{fill:"#fff",d:"M685.26,525.23c1.14-1.42,3.2-1.64,4.6-.49s1.62,3.24,.48,4.67c-1.14,1.42-3.2,1.64-4.6,.49-1.4-1.15-1.62-3.24-.48-4.67Z"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#fff",points:"882.44 557.53 877.99 568.16 867.5 563.65 871.96 553.01 882.44 557.53"}),jsx("polygon",{fill:"#fff",points:"863.91 587.74 862.2 586.94 886.44 533.18 888.16 533.98 863.91 587.74"}),jsx("path",{fill:"#fff",d:"M862,590.48c-1.71-.59-2.63-2.47-2.05-4.21,.58-1.74,2.44-2.66,4.15-2.08,1.71,.59,2.63,2.47,2.05,4.21-.58,1.74-2.44,2.66-4.15,2.08Z"}),jsx("path",{fill:"#fff",d:"M886.25,536.72c-1.71-.59-2.63-2.47-2.05-4.21,.58-1.74,2.44-2.66,4.15-2.08,1.71,.59,2.63,2.47,2.05,4.21-.58,1.74-2.44,2.66-4.15,2.08Z"})]}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M933.58,440.32l17.72,74.3c.76,3.18-2.2,5.76-6.61,5.76h-182.3c-4.41,0-8.6-2.58-9.35-5.76l-17.72-74.3c-.76-3.18,2.2-5.76,6.61-5.76h182.3c4.41,0,8.59,2.58,9.35,5.76Z"}),jsxs("g",{children:[jsxs("g",{children:[jsx("polygon",{fill:"#25468f",points:"781.52 483.78 762.12 483.78 757.43 464.1 776.83 464.1 781.52 483.78"}),jsx("polygon",{fill:"#25468f",points:"793.57 493.62 774.17 493.62 769.47 473.94 788.88 473.94 793.57 493.62"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#25468f",points:"826.82 483.78 807.42 483.78 802.72 464.1 822.12 464.1 826.82 483.78"}),jsxs("g",{children:[jsx("polygon",{fill:"#6b98f6",points:"838.87 493.62 819.47 493.62 814.77 473.94 834.17 473.94 838.87 493.62"}),jsx("path",{fill:"#183a76",d:"M839.9,494.47h-21.06l-5.1-21.36h21.06l5.1,21.36Zm-19.8-1.68h17.75l-4.29-18h-17.75l4.29,18Z"})]})]}),jsxs("g",{children:[jsx("polygon",{fill:"#6b98f6",points:"872.12 483.78 852.71 483.78 848.02 464.1 867.42 464.1 872.12 483.78"}),jsx("path",{fill:"#25468f",d:"M873.14,484.62h-21.06l-5.1-21.36h21.06l5.1,21.36Zm-19.8-1.68h17.75l-4.29-18h-17.75l4.29,18Z"}),jsx("polygon",{fill:"#6b98f6",points:"884.16 493.62 864.76 493.62 860.07 473.94 879.47 473.94 884.16 493.62"}),jsx("path",{fill:"#25468f",d:"M885.19,494.47h-21.06l-5.1-21.36h21.06l5.1,21.36Zm-19.8-1.68h17.75l-4.29-18h-17.75l4.29,18Z"}),jsx("polygon",{fill:"#25468f",points:"873.14 484.58 861.71 484.58 858.97 473.1 870.4 473.1 873.14 484.58"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#25468f",points:"917.41 483.78 898.01 483.78 893.31 464.1 912.72 464.1 917.41 483.78"}),jsx("polygon",{fill:"#25468f",points:"929.46 493.62 910.06 493.62 905.36 473.94 924.77 473.94 929.46 493.62"}),jsx("polygon",{fill:"#6b98f6",points:"916.86 483.31 907.97 483.31 905.84 474.37 914.73 474.37 916.86 483.31"})]})]})]}),jsxs("g",{children:[jsx("path",{fill:"#3c4aaa",d:"M429.21,674.95h-67.18c-8.96,0-17.83-7.37-19.81-16.46l-50.55-231.5c-1.98-9.09,3.67-16.46,12.63-16.46h67.18c8.96,0,17.83,7.37,19.81,16.46l50.55,231.5c1.98,9.09-3.67,16.46-12.63,16.46Z"}),jsx("rect",{fill:"#a9c2ff",height:".44",width:"99.62",y:"462.59",x:"299.49"}),jsx("rect",{fill:"#a9c2ff",height:".44",width:"99.63",y:"517.14",x:"311.4"}),jsx("rect",{fill:"#a9c2ff",height:".44",width:"99.63",y:"571.69",x:"323.31"}),jsx("path",{fill:"#fff",d:"M360.43,446.51c.13-1.17-5.02-21.24-5.02-21.24l18.26,15.01-8.97-.32-4.27,6.56Z"}),jsx("path",{fill:"#cedfff",d:"M415.47,651.23h-35.38l-7.83-35.84h35.38l7.83,35.84Zm-33.8-2h31.35l-6.95-31.85h-31.35l6.95,31.85Z"}),jsx("polygon",{fill:"#ff7536",points:"390.05 630.85 356.68 630.85 349.29 597 382.66 597 390.05 630.85"}),jsx("polygon",{fill:"#ff7536",points:"382 651.12 379.75 649.34 405.73 615.5 407.98 617.27 382 651.12"}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M315.51,446.51c.13-1.17-5.02-21.24-5.02-21.24l18.26,15.01-8.97-.32-4.27,6.56Z"}),jsxs("g",{children:[jsx("polygon",{fill:"#cedfff",points:"322.59 486.27 319.9 486.27 318.83 481.4 337.08 481.4 338.1 486.08 335.41 486.08 334.99 484.13 322.12 484.13 322.59 486.27"}),jsx("polygon",{fill:"#cedfff",points:"332.96 498.16 330.27 498.16 326.91 482.76 329.6 482.76 332.96 498.16"}),jsx("polygon",{fill:"#cedfff",points:"335.38 499.13 328.28 499.13 327.68 496.4 334.79 496.4 335.38 499.13"})]}),jsx("polygon",{fill:"#cedfff",points:"371.78 500.83 369.35 499.06 382.17 478.6 384.6 480.37 371.78 500.83"}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M340.97,548.52c-5.13,0-10.23-4.24-11.37-9.44-1.14-5.21,2.11-9.44,7.25-9.44s10.23,4.24,11.37,9.44c1.14,5.21-2.11,9.44-7.25,9.44Zm-3.58-16.39c-3.78,0-6.17,3.12-5.33,6.95,.84,3.83,4.59,6.95,8.37,6.95s6.17-3.12,5.33-6.95c-.84-3.83-4.59-6.95-8.37-6.95Z"}),jsx("path",{fill:"#cedfff",d:"M358.69,556.72c-.32,0-.67-.13-.97-.38l-12.38-10.57c-.58-.5-.74-1.28-.36-1.76,.38-.48,1.17-.46,1.75,.03l12.38,10.57c.58,.5,.74,1.28,.36,1.76-.19,.23-.47,.35-.78,.35Z"})]}),jsx("polygon",{fill:"#cedfff",points:"385.5 528.76 390.11 537.32 398.98 537.32 392.96 542.61 397.57 551.16 389.24 545.87 383.22 551.16 384.09 542.61 375.76 537.32 384.63 537.32 385.5 528.76"})]})]}),jsxs("g",{children:[jsx("path",{fill:"#fa8b79",d:"M1241.96,453.88s.24,13.48-1.75,13.23c-1.99-.25-4.7-11.3-4.72-11.14-.02,.17,.9,11.62-1.6,12.19-2.51,.57-5.05-12.13-5.05-12.13,0,0,1.68,10.9-.08,11.19-1.76,.29-4.54-10.28-5.27-10.31-.73-.03,2.34,9.06,.19,9.53-2.15,.46-6.94-12.33-5.32-13.96,1.62-1.63,4.15,.11,4.15,.11,0,0,3.12-2.35,5.52-1.02,0,0,5.62-1.14,7.31,1.39,0,0,3.51-3.06,6.61,.91Z"}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M1278.23,402.24l45.59,166.75c1.95,7.13-2.5,12.92-9.94,12.92h-307.72c-7.44,0-15.05-5.78-17-12.92l-45.59-166.75c-1.95-7.13,2.5-12.92,9.94-12.92h307.72c7.44,0,15.05,5.78,17,12.92Z"}),jsxs("g",{children:[jsx("polygon",{fill:"#b0c0ff",points:"1038.92 477.47 999.17 477.47 988.15 437.16 1027.89 437.16 1038.92 477.47"}),jsx("polygon",{fill:"#5158bf",points:"1026.48 467.6 1006.21 467.6 1000.59 447.03 1020.86 447.03 1026.48 467.6"}),jsx("polygon",{fill:"#ff7536",points:"1000.44 478.4 997.91 476.54 1026.63 436.23 1029.16 438.08 1000.44 478.4"}),jsx("polygon",{fill:"#ff7536",points:"1010.63 455.62 970.89 455.62 959.87 415.3 999.61 415.3 1010.63 455.62"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#ff7536",points:"1033.21 525.04 1001.26 525.04 992.4 492.63 1024.35 492.63 1033.21 525.04"}),jsx("polygon",{fill:"#fc7600",points:"1064.86 525.04 1032.91 525.04 1024.05 492.63 1056 492.63 1064.86 525.04"}),jsx("polygon",{fill:"#ff8111",points:"1096.81 525.04 1064.86 525.04 1056 492.63 1087.95 492.63 1096.81 525.04"}),jsx("polygon",{fill:"#6b98f6",points:"1128.76 525.04 1096.81 525.04 1087.95 492.63 1119.9 492.63 1128.76 525.04"}),jsx("polygon",{fill:"#899bfa",points:"1160.71 525.04 1128.76 525.04 1119.9 492.63 1151.85 492.63 1160.71 525.04"}),jsx("polygon",{fill:"#697ee3",points:"1192.66 525.04 1160.71 525.04 1151.85 492.63 1183.8 492.63 1192.66 525.04"}),jsx("polygon",{fill:"#5158bf",points:"1224.61 525.04 1192.66 525.04 1183.8 492.63 1215.75 492.63 1224.61 525.04"}),jsx("polygon",{fill:"#25468f",points:"1256.56 525.04 1224.61 525.04 1215.75 492.63 1247.7 492.63 1256.56 525.04"}),jsx("polygon",{fill:"#a1b3ff",points:"1042.07 557.45 1010.12 557.45 1001.26 525.04 1033.21 525.04 1042.07 557.45"}),jsx("polygon",{fill:"#899bfa",points:"1073.72 557.45 1041.77 557.45 1032.91 525.04 1064.86 525.04 1073.72 557.45"}),jsx("polygon",{fill:"#5158bf",points:"1105.67 557.45 1073.72 557.45 1064.86 525.04 1096.81 525.04 1105.67 557.45"}),jsx("polygon",{fill:"#25468f",points:"1137.62 557.45 1105.67 557.45 1096.81 525.04 1128.76 525.04 1137.62 557.45"})]}),jsx("path",{fill:"#ff8111",d:"M1258.13,429.21h-167.36c-2.3,0-4.7-1.91-5.34-4.24h0c-.64-2.33,.72-4.24,3.02-4.24h167.36c2.3,0,4.7,1.91,5.34,4.24h0c.64,2.33-.72,4.24-3.02,4.24Z"}),jsx("path",{fill:"#6b98f6",d:"M1263.98,450.63h-167.36c-2.3,0-4.7-1.91-5.34-4.24h0c-.64-2.33,.72-4.24,3.02-4.24h167.36c2.3,0,4.7,1.91,5.34,4.24h0c.64,2.33-.72,4.24-3.02,4.24Z"}),jsx("path",{fill:"#5158bf",d:"M1269.84,472.05h-167.36c-2.3,0-4.7-1.91-5.34-4.24h0c-.64-2.33,.72-4.24,3.02-4.24h167.36c2.3,0,4.7,1.91,5.34,4.24h0c.64,2.33-.72,4.24-3.02,4.24Z"}),jsxs("g",{children:[jsx("path",{fill:"#5158bf",d:"M1062.31,418.73h5.04c2.65,0,4.59,1.44,5.2,3.65,.51,1.88-.29,3.01-1.75,3.47l4.24,4.34h-2.34l-3.9-4h-2.45l1.09,4h-1.99l-3.14-11.47Zm6.45,5.68c1.42,0,2.12-.75,1.79-1.95-.34-1.23-1.39-1.9-2.86-1.9h-2.89l1.05,3.85h2.91Z"}),jsx("path",{fill:"#5158bf",d:"M1068.12,446.11c-.88-3.21,.8-5.93,4.21-5.93,1.97,0,3.33,.56,4.77,1.56l-.84,1.52c-1.08-.75-2.06-1.23-3.5-1.23-2.08,0-3.16,1.85-2.55,4.08,.64,2.36,2.65,4.1,4.96,4.1,1.07,0,1.94-.34,2.49-.87l-.59-2.15h-2.89l-.48-1.75h4.81l1.32,4.82c-.85,.97-2.23,1.79-4.23,1.79-3.54,0-6.56-2.56-7.48-5.93Z"}),jsx("path",{fill:"#5158bf",d:"M1074.44,463.09h5.07c1.29,0,2.41,.36,3.23,1.02,.64,.51,1.07,1.13,1.29,1.93,.38,1.38-.2,2.11-.92,2.56,1.45,.46,2.58,1.23,3.01,2.82,.56,2.05-.8,3.15-3.32,3.15h-5.23l-3.14-11.47Zm5.99,4.83c1.28,0,1.99-.51,1.7-1.59-.25-.9-1.11-1.46-2.38-1.46h-2.86l.83,3.05h2.71Zm1.91,4.85c1.36,0,2.03-.54,1.74-1.61-.26-.97-1.18-1.54-2.75-1.54h-3.15l.86,3.15h3.29Z"})]})]})]}),jsxs("g",{children:[jsxs("g",{children:[jsx("path",{fill:"#ffae73",d:"M640.44,422.49c-.89,1.03-1,2.18-.56,3.41,0,0,0,.01,0,.02,.81,2.27,3.49,4.81,6.6,7.35,.4,.33,.75,.62,1.06,.9,.08,.07,.16,.14,.24,.22,.06,.06,.12,.11,.18,.17,2.9,2.71,1.81,3.34,7.03,8.85,5.95,6.28,10.04,6.39,11.21,5.82,.99-.49-1.02-3.82-3.23-7.56-.11-.18-.21-.36-.32-.55-.3-.5-.59-1-.88-1.5-2.6-4.5-1.93-6.62-1.32-13.32,.5-5.45,8.35-30.42,8.35-30.42l-11.4-1.99s-3.43,19.89-7.21,22.95c-2.02,1.63-4.29,1.65-6.23,2.86-.14,.08-.27,.17-.4,.26-1.1,.74-2.23,1.51-3.12,2.54Z"}),jsx("path",{fill:"#1e3865",d:"M640.44,422.49c-.89,1.03-1,2.18-.56,3.41,0,0,0,.01,0,.02,.99,2.27,3.61,4.8,6.62,7.33,.39,.33,.74,.64,1.05,.92,.08,.07,.16,.14,.24,.22,.06,.06,.12,.11,.18,.17,2.9,2.71,1.81,3.34,7.03,8.85,5.95,6.28,10.04,6.39,11.21,5.82,.99-.49-1.02-3.82-3.23-7.56-1.16-.43-6.54-2.65-10.6-7.92-3.45-4.47-5.79-10.16-8.14-13.65-.26-.05-.41-.08-.67-.13-1.1,.74-2.23,1.51-3.12,2.54Z"}),jsx("path",{fill:"#ffae73",d:"M732.33,415.27c.7,3.57,5.72,2.97,11.32,1.58,5.6-1.39,4.27,.26,12.24-.63,7.97-.9,10.39-3.91,10.63-5.11,.22-1.07-3.72-1.44-7.95-1.94-.53-.06-1.07-.13-1.6-.19-4.77-.61-8.26-3.73-12.6-6.29-4.1-2.43-10.23-12.33-10.23-12.33l-10.93,.88s5.74,8.84,7.96,12.68c1.31,2.26,1.24,5.25,1.07,7.56-.08,1.25-.17,2.54,.08,3.79Z"}),jsx("path",{fill:"#1e3865",d:"M743.65,416.85c5.6-1.39,4.27,.26,12.24-.63,7.97-.9,10.39-3.91,10.63-5.11,.22-1.07-3.72-1.44-7.95-1.94l-.04,.08s-4.78,3.44-11.42,3.6c-5.41,.13-11.14-1.44-14.87-1.38-.08,1.25-.17,2.54,.08,3.79,.7,3.57,5.72,2.97,11.32,1.58Z"}),jsx("path",{fill:"#f28018",d:"M690.43,344.35l-10.22,27.9-13.34,36.43s-3.62,.35-7.09-.66c-3.19-.94-6.86-3.39-6.86-3.39,0,0,3.71-39.12,10.62-61.57,1.77-5.76,3.76-10.43,5.95-13.05,10.72-12.85,20.95,14.33,20.95,14.33Z"}),jsx("path",{fill:"#ff912b",d:"M680.04,300.04c-5.82-1.9-21-.03-37.47,2.99-4.55,.84-9.14-1.27-11.53-5.28h0l-41.44-3.28s-13.68,30.76-6.19,50.36c1.1,2.88,3.52,4.68,7.24,4.74h0s25.04,.04,33.05,.04c20.61,0,43.62-14.37,46.59-14.97,4.87-.99,6.82,8.89,11.69,19.27,4.87,10.38,45.79,45.96,45.79,45.96,0,0,6.29,.06,8.89-.92,2.79-1.06,3.82-2.44,3.82-2.44,0,0-45.34-91.51-60.45-96.45Z"}),jsx("path",{fill:"#10294c",d:"M626.64,174.3c-3.08-1.86-6.08-2.14-7.92-2.09-1.28,.04-2.56-.05-3.82-.23-15.82-2.35-25.34,20.95-25.9,27.99-1.02,12.93-7.77,14.9-17.26,23-19.03,16.23-13.45,35.1-3.04,42.11,6.24,4.21,17.25,0,17.25,0,.16,.11,30.09-16.98,44.85-25.22,22.12-3.19,4.73-60.19-4.16-65.55Z"}),jsx("path",{fill:"#ffae73",d:"M618.43,232.84c.06,.04-7.26,2.58-12.16,.38-4.61-2.07-8.1-9.76-8.03-9.76,2.1-.1,4.4-1.96,6.17-14.16l.89,.32,15.01,5.48s-1.09,4.89-1.79,9.54c-.59,3.91-.91,7.65-.09,8.2Z"}),jsx("path",{fill:"#f9924f",d:"M620.31,215.1s-.6,2.64-1.47,7.56c-8.62-1.57-12.32-8.31-13.54-13.04l15.01,5.48Z"}),jsx("path",{fill:"#ffae73",d:"M622.54,219.95s-20.53-2.8-18.62-15.74c1.91-12.95,.55-22.02,13.74-20.79,13.19,1.24,15,6.56,15.4,11.04,.4,4.48-5.13,25.88-10.52,25.49Z"}),jsx("path",{fill:"#10294c",d:"M632.32,187.37s-13.15,11.49-22.09,12.42c-8.94,.93-12.33-1.98-12.33-1.98,0,0,5.27-4.44,8.44-11.6,.93-2.11,2.91-3.56,5.18-3.76,6.38-.56,18.49-.81,20.79,4.93Z"}),jsx("path",{fill:"#10294c",d:"M624.1,186.34s4.4,4.31,5.78,7.51c1.34,3.09,1.74,10.47,.67,13.4,0,0,6.85-13.51,2.97-20.08-4.11-6.96-9.43-.84-9.43-.84Z"}),jsx("path",{fill:"#899bfa",d:"M635.72,263.52c-.62,42.17-.17,33.35-4.72,37.36-1.1,.96-4.18,1.54-8.23,1.81-12.75,.86-35.15-1.27-36-3.66-2.94-8.27-.86-10.84-3.32-23.49-.26-1.35-.57-2.8-.94-4.39-2.05-8.69-4.04-11.65,3.22-25.62,6.58-12.65,13.42-22.92,14.03-22.55,17.36,10.45,18.76,1.67,18.76,1.67,0,0,17.51,18.31,17.2,38.88Z"}),jsx("path",{fill:"#ff912b",d:"M680.21,372.25l-13.34,36.43s-3.62,.35-7.09-.66c-3.19-.94-6.86-3.39-6.86-3.39,0,0,3.71-39.12,10.62-61.57l16.67,29.18Z"}),jsx("path",{fill:"#899bfa",d:"M618.52,224.64s17.86,3.07,19.96,10.87c2.1,7.8,9,55.16,9,55.16,0,0-5.04,4.99-9.23,.73-4.19-4.26-13.2-44.31-13.2-44.31l-6.53-22.46Z"}),jsx("path",{fill:"#6f7deb",d:"M622.77,302.69c-12.75,.86-35.15-1.27-36-3.66-2.94-8.27-.86-10.84-3.32-23.49l6.15-17.56s-1.02,19.55,4.67,24.7c5.68,5.14,23.28,9.93,26.04,14.23,1.33,2.06,2.21,4.13,2.47,5.79Z"}),jsx("path",{fill:"#ffae73",d:"M608.17,294.46s12.57-2.84,14.6-1.71c2.03,1.13,6.99,5.25,7.61,6.69,.62,1.43-4.52-1.09-6.19-1.54-1.08-.29-3.93,.71-5.34,1.19-5.93,2.01-9.57,.97-9.57,.97l-1.11-5.6Z"}),jsx("path",{fill:"#899bfa",d:"M599.74,222.97s-16.88,1.05-22.73,9.32c-8.23,11.64-24.55,61.25-15.2,67.87,10.53,7.45,47.95,1.95,47.95,1.95,0,0,1.24-5.9-.49-8.76-1.73-2.86-29.88-7.47-31.18-8.79-1.3-1.32,16.24-25.7,16.24-29.65s5.41-31.95,5.41-31.95Z"}),jsx("path",{fill:"#ffae73",d:"M623.38,296.31s2.63,3.45,3.5,3.86c.86,.41,1.42,.31,1.42,.31l-1.78-3.24-3.14-.93Z"}),jsx("path",{fill:"#ffae73",d:"M622.77,292.76l7.66,3.77s-.33,.54-1.27,.5c-.94-.04-3.32-.93-3.32-.93l-3.07-3.34Z"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#10294c",points:"688.18 301.63 608.17 301.63 608.17 303.42 687.47 303.42 688.18 301.63"}),jsx("polygon",{fill:"#10294c",points:"626.88 303.42 687.47 303.42 705.7 257.44 645.2 257.44 626.88 303.42"}),jsx("path",{fill:"#e8f2fa",d:"M672.18,280.43c.46-1.62-.46-2.93-2.06-2.93s-3.26,1.31-3.71,2.93,.46,2.93,2.06,2.93,3.26-1.31,3.71-2.93Z"})]})]}),jsx("polygon",{fill:"#fff",points:"666.18 584.13 672.4 589.62 666.99 595.92 660.77 590.43 666.18 584.13"}),jsxs("g",{children:[jsx("path",{fill:"#f28018",d:"M586.7,695.57c-1.24-4.18-1.86-4.55-1.86-4.55,0,0-38.53,4.87-45.07,4.44-3.88-.25-50.15-15.91-50.15-15.91l-28.09,27.33s69.67,11.64,79.49,10.88c16.23-1.26,41-15.79,41-15.79,0,0,5.65-3.12,4.67-6.4Z"}),jsx("path",{fill:"#104c82",d:"M481.4,1007.55s.54,13.24,3.05,16.46l34.88,.2c-.24-1.37-.39-4.52-5.21-5.38-6.09-1.08-13.25-5.39-16.94-13.56-3.88-8.6-15.77,2.27-15.77,2.27Z"}),jsx("path",{fill:"#104c82",d:"M412.95,1005.64s-2.43,17.59,.87,17.9c.44,.04,14.05,.26,19.95,.36,6.93,.12,18.33-.13,18.33-.13,1.43,.06,2.37-1.51,1.64-2.77-.8-1.37-2.33-2.84-5.24-3.41-6.07-1.19-16.2-5.71-19.74-13.95-3.73-8.66-15.8,1.99-15.8,1.99Z"}),jsx("path",{fill:"#6f7deb",d:"M499.53,825.34s-9.7,34.42-37.49,94.2c-27.79,59.78-29,88.58-29,88.58,0,0-4.21,1.51-9.79,.91-6.04-.65-10.3-3.39-10.3-3.39,0,0,1.8-71.15,14.93-101.31,13.13-30.17,15.8-112.71,15.8-112.71l55.84,33.73Z"}),jsx("path",{fill:"#899bfa",d:"M515.1,795.72s.77,53.3-8.32,118.75c-9.09,65.44-4.84,95.88-4.84,95.88,0,0-2.41,1.78-9.82,1.75-8.68-.03-13.12-3.67-13.12-3.67,0,0-13.01-65.47-9.28-98.23,3.73-32.76-17.82-112.4-17.82-112.4l63.2-2.08Z"}),jsx("path",{fill:"#ffae73",d:"M493.98,662.86c-.09,4.18-.64,8.74-2.29,10.97l-9.25,4.93-10.26-7.71s3.76-8.46,2.84-20.82c-.09-.74-.46-5.48-.46-5.58l5.13,2.6,13.93,7.06s0,.28,.09,.65c.09,1.4,.28,4.46,.28,7.9Z"}),jsx("path",{fill:"#ff912b",d:"M442.72,802.31c3.36,15.58,75.23,8.74,74.29-.77-.04-.32-.22-4.72-.48-10.65-.54-12.83-1.38-32.89-1.48-34.45,0-.03,0-.05,0-.08-1.29-13.24-2.54-26.19-2.62-34.65-.07-7.34-1.07-14.84-2.39-21.65-1.22-6.29-2.72-11.99-4.03-16.44-.92-3.13-2.63-5.89-4.9-8.05-1.62-1.54-3.51-2.78-5.6-3.62-.57-.24-1.15-.44-1.74-.62-8.46-2.49-16.99-5.66-20.16-4.72-8.59,2.56-18.15,18-22.67,37.55-8.46,36.6-10.41,88-8.21,98.15Z"}),jsx("path",{fill:"#ffa05e",d:"M493.98,662.86c-5.22-2.14-15.21-6.97-17.96-12.45-1.19-2.42,.64-3.16,3.66-3.16l13.93,7.06s0,.28,.09,.65c.09,1.4,.28,4.46,.28,7.9Z"}),jsx("path",{fill:"#ffae73",d:"M500.32,653.44s-25.01,7.91-29.63-7.96c-4.62-15.87-10.96-25.54,4.82-31.27,15.77-5.72,20.65-.6,23.46,4.32,2.81,4.92,7.74,32.44,1.35,34.91Z"}),jsx("path",{fill:"#0b3563",d:"M497.99,617s-1.59,18.47-5.36,17.67c-3.77-.8-7.18-1.4-6.63,4.17,.55,5.57,.73,12.26-10.88,13.25-11.61,.99-23.25-29.64-20.06-35.39,9.2-16.59,56.22-19.93,42.93,.3Z"}),jsx("path",{fill:"#f28018",d:"M516.52,790.89c-.54-12.83-1.38-32.89-1.48-34.45,0-.03,0-.05,0-.08l-42.46-25.75s-1.64,60.11,43.95,60.29Z"}),jsxs("g",{children:[jsxs("g",{children:[jsx("path",{fill:"#0b3563",d:"M663,586.79l7.65,6.75s-13.11,14.24-11.89,29.23l-19.58,16.77-16.21-14.32,13.56-22.81s14.53-.53,26.48-15.63Z"}),jsx("path",{fill:"#fff",d:"M643.1,611.15c1.58-1.84,4.33-2.03,6.15-.43,1.81,1.6,2.01,4.39,.43,6.23-1.58,1.84-4.33,2.03-6.15,.43-1.81-1.6-2.01-4.39-.43-6.23Z"}),jsx("polygon",{fill:"#fff",points:"644.37 617.69 643.11 616.58 666.23 589.63 667.49 590.74 644.37 617.69"})]}),jsx("polygon",{fill:"#6d76ff",points:"635.64 643.68 619.42 629.36 622.96 625.23 639.18 639.54 635.64 643.68"}),jsx("path",{fill:"#0b3563",d:"M458.23,834.69l-.79-.69c-4.26-3.76-4.71-10.32-1-14.64l162.97-190,16.22,14.32-162.97,190c-3.71,4.32-10.17,4.78-14.43,1.02Z"})]}),jsx("path",{fill:"#ffae73",d:"M549.94,736.45s3.13-2.82,3.87-4.77c.25-.68,2.39-3.74,6.03-3.47,3.33,.25,9.24-6.94,9.24-6.94,.86,1.9,3.83,9.03-.42,12.65-3.47,2.95-11.81,8.05-16.87,11.41-5.44,3.61-1.85-8.88-1.85-8.88Z"}),jsx("path",{fill:"#ff912b",d:"M550.35,735.4s-42.11,7.26-45.84,5.42c-5.96-2.94,2.31-46.28,2.31-46.28,0,0,.36-9.82-10.96-12.14-9.83-2.01-19.31,5.46-19.31,5.46,0,0-8.63,7.83-7.52,16.51,2.44,19.25,6.24,58.39,18.93,64.39,16.37,7.74,63.73-21.46,63.73-21.46,0,0,1.58-1.96,1.35-5.6-.2-3.21-2.7-6.3-2.7-6.3Z"}),jsx("path",{fill:"#ffae73",d:"M588.46,698.68s10.63-3.93,9.69-9.44c-.94-5.51-4.25-4.82-6.25-2.92-2,1.9-.89,11.66-3.44,12.36Z"}),jsx("path",{fill:"#ffae73",d:"M553.07,733.63s1.45-4.32,3-6.17c1.55-1.85,2.2-4.99,2.91-3.95,.7,1.05-.56,4.8,0,6.23,.56,1.43-5.9,3.89-5.9,3.89Z"})]}),jsx("rect",{fill:"#a9c2ff",height:"67.09",width:"190.42",y:"956.62",x:"1304.39"}),jsx("rect",{fill:"#1e3865",ry:"2.37",rx:"2.37",height:"4.74",width:"1620",y:"1023.26"})]})})})]}),co=ii;});var go={};ue(go,{default:()=>xi});var yi,bi,xi,ho=k(()=>{p();mo();fo();ne();_();G();B();(({Title:yi}=Typography)),bi=o=>{var a;let{children:e}=o,[s]=useSearchParams(),i=useLocation(),{token:n,setToken:r}=q(),l=M(),{localeDropdownMenu:m}=R();return B1(s.has("ticket")?`/api/usystem/user/login?ticket=${s.get("ticket")}`:null,c=>I(c),{suspense:!0,onSuccess:c=>{r(c.data.token);}}),n?jsx(Navigate,{replace:!0,to:"/"}):jsxs(Row,{children:[m&&jsx("div",{className:"fixed top-8 right-8",children:m}),jsx(Col,{span:10,offset:3,children:jsx("div",{className:"h-screen flex justify-end items-center",children:jsx(co,{})})}),jsx(Col,{span:5,offset:3,children:jsx("div",{className:"h-screen relative",children:jsxs(Card,{hoverable:!0,className:"absolute left-0 right-0 top-1/2 -translate-y-1/2",children:[((a=i.state)==null?void 0:a.notUser)&&jsx("div",{className:"absolute -top-12 left-0 right-0",children:jsx(Alert,{banner:!0,closable:!0,message:l("Login.notRegistered"),type:"error"})}),jsxs("div",{className:"text-center mb-6",children:[jsx(yi,{level:5,children:l("Login.title")}),jsx("div",{className:"min-h-10",children:e})]}),jsx(Divider,{plain:!0,children:l("Login.thirdParty")}),jsx("div",{className:"w-full flex justify-center",children:jsx(Space,{size:"small",children:jsx(Button,{type:"link",size:"small",shape:"round",icon:jsx(AliyunOutlined,{}),href:`${po}/login?service=${encodeURIComponent(window.location.origin)}/login`,target:"_self",children:l("Login.loginWithIDass")})})})]})})})]})},xi=bi;});var yo={};ue(yo,{default:()=>Ci});var Si,Ci,bo=k(()=>{p();G();Si=()=>{let o=useNavigate(),e=M();return jsx("div",{className:"h-screen flex justify-center items-center",children:jsx(Result,{status:"404",title:"404",subTitle:e("NotFound.subTitle"),extra:jsx(Button,{type:"primary",onClick:()=>{o("/");},children:e("NotFound.buttonText")})})})},Ci=Si;});function Mo(){return De("/api/usystem/user/allPermssions",o=>I(o,{isGlobalNS:!0}).then(e=>e.data))}function Po(){return De("/api/usystem/user/allPermissionsV2",o=>I(o,{isGlobalNS:!0}).then(e=>e.data))}function ft(){let{accessible:o}=W("200005",{isGlobalNS:!0});return De(o?"/api/usystem/role/all":null,e=>I(e,{isGlobalNS:!0}).then(s=>s.data))}function So(o){let{usePermissionApiV2:e}=R();return De(`/api/usystem/role/${e?"infoV2":"info"}?name=${o}`,s=>I(s,{isGlobalNS:!0}).then(i=>i.data))}function Co(){let{usePermissionApiV2:o}=R();return me(o?"/api/usystem/role/createV2":"/api/usystem/role/create",(e,{arg:s})=>I(e,{method:"post",body:s,isGlobalNS:!0}))}function To(){let{usePermissionApiV2:o}=R();return me(o?"/api/usystem/role/updateV2":"/api/usystem/role/update",(e,{arg:s})=>I(e,{method:"post",body:s,isGlobalNS:!0}))}function ko(){return me("/api/usystem/role/delete",(o,{arg:e})=>I(o,{method:"post",body:e,isGlobalNS:!0}))}function Ro(){return me("/api/usystem/user/create",(o,{arg:e})=>I(o,{method:"post",body:e,isGlobalNS:!0}))}function vo(){return me("/api/usystem/user/update",(o,{arg:e})=>I(o,{method:"post",body:e,isGlobalNS:!0}))}function Lo(){return me("/api/usystem/user/delete",(o,{arg:e})=>I(o,{method:"post",body:e,isGlobalNS:!0}))}var Oe=k(()=>{p();H();B();_();});var Zi,Se,ht=k(()=>{p();G();Zi=o=>{let{permissions:e,readonly:s,expand:i,value:n,onChange:r}=o,[l,m]=useState([]),[a,c]=useState({}),[f,h]=useState(n!=null?n:[]),d=M(),y=useCallback(u=>{m(u);},[]),S=(u,b)=>{let P=[];return u?P=[...new Set(f.concat(b))]:(P=f.slice(),b.forEach(V=>{let E=P.findIndex(z=>z===V);E>-1&&P.splice(E,1);})),P},C=(u,b)=>{let P=S(u.target.checked,b);h(P),r==null||r(P);};return useEffect(()=>{h(n!=null?n:[]);},[n]),useEffect(()=>{i&&m((e!=null?e:[]).map(({category:u})=>u));},[i,e]),useEffect(()=>{let u=(e!=null?e:[]).reduce((b,P)=>(b[P.category]=P.permissions.every(V=>f.includes(V.value)),b),{});c(u);},[f,e]),jsx(Collapse,{style:{width:"100%"},collapsible:"header",activeKey:l,items:(e!=null?e:[]).map(u=>({key:u.category,label:u.category,extra:!s&&jsx(Checkbox,{checked:a[u.category],onChange:b=>{C(b,u.permissions.map(P=>P.value));},children:d("selectAll")}),children:jsx(Checkbox.Group,{style:{width:"100%"},value:f,children:jsx(Row,{gutter:[10,10],style:{width:"100%"},children:u.permissions.map(b=>jsx(Col,{span:6,children:jsx(Checkbox,{disabled:s,value:b.value,onChange:P=>{C(P,[b.value]);},children:b.label})},b.value))})})})),onChange:y})},Se=Zi;});var Ui,Di,Io,Fo=k(()=>{p();Oe();ht();G();(({Text:Ui}=Typography)),Di=o=>{let{expand:e=!0,value:s,readonly:i,onChange:n}=o,{data:r,isLoading:l,error:m}=Mo(),a=M();return m?jsx("div",{className:"flex justify-center",children:jsx(Ui,{type:"danger",children:a("PermissionList.failedDescription")})}):jsx(Skeleton,{active:!0,loading:l,children:jsx(Se,{value:s,permissions:r,readonly:i,expand:e,onChange:n})})},Io=Di;});var yt,zi,qi,Do,Oo=k(()=>{p();Oe();ht();G();(({Text:yt}=Typography)),{Option:zi}=Select,qi=o=>{let{expand:e=!0,value:s,readonly:i,onChange:n}=o,{data:{permission:r,game:l}={},isLoading:m,error:a}=Po(),[c,f]=useState([]),h=r==null?void 0:r.filter(u=>u.is_common),d=r==null?void 0:r.filter(u=>!u.is_common),y=M();if(useEffect(()=>{let u=[];Object.keys(s!=null?s:{}).forEach(b=>{var P;b!=="global"&&u.push({gameId:b,permissions:(P=s==null?void 0:s[b])!=null?P:[]});}),f(u);},[s]),a)return jsx("div",{className:"flex justify-center",children:jsx(yt,{type:"danger",children:y("PermissionList.failedDescription")})});let S=()=>{f(u=>[...u,{gameId:"",permissions:[]}]);},C=u=>{f(b=>b.filter((P,V)=>V!==u));};return jsxs("div",{className:"flex flex-col w-full",children:[jsx("div",{className:"mb-12",children:jsx(Divider,{dashed:!0,children:y("PermissionList.baseSectionTitle")})}),jsx(Skeleton,{active:!0,loading:m,children:jsx(Se,{value:s==null?void 0:s.global,readonly:i,permissions:h,expand:e,onChange:u=>{n==null||n(Z(L({},s),{global:u}));}})}),jsx("div",{className:"my-12",children:jsx(Divider,{dashed:!0,children:y("PermissionList.gameSectionTitle")})}),c.map((u,b)=>{var P;return jsx(Card,{title:jsxs(Space,{children:[jsx(yt,{children:y("game")}),i?jsx(yt,{children:(P=l==null?void 0:l.find(V=>V.id===u.gameId))==null?void 0:P.name}):jsx(Select,{disabled:i,value:c[b].gameId||void 0,style:{width:"160px"},placeholder:y("PermissionList.gameSelectPlaceholder"),onChange:V=>{f(E=>{let z=E.slice();return z[b].gameId=V,z});},children:l==null?void 0:l.map(V=>jsx(zi,{value:V.id,disabled:c.some(({gameId:E})=>E===V.id),children:V.name},V.id))})]}),className:"mb-6",extra:!i&&jsx(Button,{type:"link",onClick:()=>{C(b);},children:y("PermissionList.removeText")}),children:c[b].gameId?jsx(Skeleton,{active:!0,loading:m,children:jsx(Se,{value:s==null?void 0:s[c[b].gameId],readonly:i,expand:e,permissions:d,onChange:V=>{n==null||n(Z(L({},s),{[c[b].gameId]:V}));}})}):jsx(Empty,{description:y("PermissionList.gameSectionDescription")})},b)}),!i&&jsx(Button,{block:!0,type:"dashed",onClick:S,children:y("PermissionList.addText")})]})},Do=qi;});var _i,fe,Ao=k(()=>{p();Fo();Oo();B();_i=o=>{let{value:e}=o,{usePermissionApiV2:s}=R();return s?jsx(Do,Z(L({},o),{value:e})):jsx(Io,Z(L({},o),{value:e}))},fe=_i;});var Eo=k(()=>{p();});var Ae=k(()=>{p();Ao();Oe();Eo();});var qo={};ue(qo,{default:()=>or,url:()=>Ce});function Xi(){let{message:o}=App.useApp(),e=Ro(),{data:s,isLoading:i}=ft(),{mutate:n}=K(),r=M();return X({title:r("UserList.createTitle"),content:m=>jsxs(Form,{form:m,labelCol:{flex:"80px"},children:[jsx(Form.Item,{label:r("name"),name:"name",rules:[{required:!0}],children:jsx(Input,{})}),jsx(Form.Item,{label:r("role"),name:"roles",children:jsx(Select,{allowClear:!0,mode:"multiple",loading:i,children:(s!=null?s:[]).map(a=>jsx(zo,{value:a.name,children:a.name},a.id))})})]}),onConfirm(m){return v(this,null,function*(){yield e.trigger(m),n(Ce,{page:1}),o.success(r("UserList.createSuccessfully"));})}})}function er(){let{message:o}=App.useApp(),e=vo(),{data:s,isLoading:i}=ft(),{mutate:n}=K(),r=M();return X({title:r("UserList.updateTitle"),content:m=>jsxs(Form,{form:m,labelCol:{flex:"80px"},children:[jsx(Form.Item,{hidden:!0,name:"id",children:jsx(Input,{})}),jsx(Form.Item,{label:r("name"),name:"name",rules:[{required:!0}],children:jsx(Input,{readOnly:!0})}),jsx(Form.Item,{label:r("role"),name:"roles",children:jsx(Select,{allowClear:!0,mode:"multiple",loading:i,children:(s!=null?s:[]).map(a=>jsx(zo,{value:a.name,children:a.name},a.id))})})]}),onConfirm(m){return v(this,null,function*(){yield e.trigger(m),n(Ce,void 0,a=>produce(a,c=>{var h;let f=(h=c==null?void 0:c.list)==null?void 0:h.find(d=>d.id===m.id);f&&(f.roles=m.roles);}),{revalidate:!1}),o.success(r("UserList.updateSuccessfully"));})}})}var zo,Ce,tr,or,_o=k(()=>{p();Ae();Me();Ie();Ne();Fe();Ue();G();(({Option:zo}=Select)),Ce="/api/usystem/user/list";tr=()=>{let{modal:o,message:e}=App.useApp(),s=Lo(),{mutate:i}=K(),{showModal:n,Modal:r}=Xi(),{showModal:l,Modal:m}=er(),a=M(),c=[{title:a("name"),dataIndex:"name",key:"name"},{title:"ID",dataIndex:"id",key:"id"},{title:a("role"),dataIndex:"roles",key:"roles",width:"40%",render(f){return jsx(Row,{gutter:[4,4],children:(f||[]).map(h=>jsx(Col,{children:h==="root"?jsx(Tag,{color:"#f50",children:h}):jsx(Tag,{color:"#ff5a00",children:jsx(Link,{to:`/permission/role/${h}`,children:h})})},h))})}},{title:a("creationTime"),dataIndex:"Ctime",key:"ctime"},{title:a("operation"),width:150,align:"center",render:f=>jsxs(Space,{children:[jsx($,{isGlobalNS:!0,size:"small",type:"link",code:"100003",onClick:()=>{l({initialValues:{id:f.id,name:f.name,roles:f.roles}});},children:a("update")}),jsx($,{isGlobalNS:!0,danger:!0,size:"small",code:"100004",type:"link",onClick:()=>{o.confirm({title:a("UserList.deleteTitle"),content:jsx(xe,{texts:[f.name],children:a("UserList.deleteContent",{user:f.name})}),onOk(){return v(this,null,function*(){yield s.trigger({id:f.id,name:f.name}),i(Ce,void 0,d=>produce(d,y=>{var C,u;let S=(C=y==null?void 0:y.list)==null?void 0:C.findIndex(b=>b.id===f.id);S&&((u=y==null?void 0:y.list)==null||u.splice(S,1));})),e.success(a("UserList.deleteSuccessfully"));})}});},children:a("delete")})]})}];return jsxs(Fragment,{children:[jsx(Card,{title:a("user"),extra:jsx($,{isGlobalNS:!0,type:"primary",icon:jsx(UserAddOutlined,{}),code:"100002",onClick:()=>{n();},children:a("UserList.createTitle")}),children:jsx(Pe,{isGlobalNS:!0,code:"100001",url:Ce,rowKey:"id",columns:c,transformResponse:f=>{let{List:h,Total:d}=f;return {list:h,total:d}}})}),r,m]})},or=tr;});var Qo={};ue(Qo,{default:()=>cr});var We,lr,pr,mr,cr,jo=k(()=>{p();Ae();Ie();H();B();Ne();_();Fe();Ue();G();Me();We="/api/usystem/role/list",lr=()=>{let{message:o}=App.useApp(),{mutate:e}=K(),s=Co(),i=M(),n=r=>v(void 0,null,function*(){yield s.trigger({name:`role_${r.name}`,permissions:r.permissions}),e(We,{page:1}),o.success(i("RoleList.createSuccessfully"));});return X({title:i("RoleList.createTitle"),width:"50vw",content:r=>jsxs(Form,{form:r,layout:"vertical",children:[jsx(Form.Item,{label:i("name"),name:"name",rules:[{required:!0}],children:jsx(Input,{addonBefore:"role_"})}),jsx(Form.Item,{name:"permissions",children:jsx(fe,{})})]}),onConfirm:n})},pr=()=>{let{message:o}=App.useApp(),{mutate:e}=K(),s=To(),i=M(),n=r=>v(void 0,null,function*(){yield s.trigger({id:r.id,name:`role_${r.name}`,permissions:r.permissions}),e(We,void 0,l=>produce(l,m=>{var c;let a=(c=m==null?void 0:m.list)==null?void 0:c.find(f=>f.id===r.id);a&&(a.permissions=r.permissions);}),{revalidate:!1}),o.success(i("RoleList.updateSuccessfully"));});return X({title:i("RoleList.updateTitle"),width:"50vw",content:r=>jsxs(Form,{form:r,children:[jsx(Form.Item,{hidden:!0,label:"ID",name:"id",children:jsx(Input,{})}),jsx(Form.Item,{label:i("name"),name:"name",rules:[{required:!0}],children:jsx(Input,{readOnly:!0,addonBefore:"role_"})}),jsx(Form.Item,{name:"permissions",children:jsx(fe,{})})]}),onConfirm:n})},mr=()=>{let{accessible:o}=W("200005",{isGlobalNS:!0}),{modal:e,message:s}=App.useApp(),{usePermissionApiV2:i}=R(),n=ko(),{mutate:r}=K(),{showModal:l,Modal:m}=lr(),{showModal:a,Modal:c}=pr(),f=M(),h=[{title:f("name"),key:"name",render(d){return o?jsx(Link,{to:`${d.name}`,children:d.name}):jsx(Fragment,{children:d.name})}},{title:"ID",dataIndex:"id",key:"id"},{title:f("creationTime"),dataIndex:"ctime",key:"ctime"},{title:f("operation"),width:150,align:"center",render:d=>jsxs(Space,{size:"small",children:[jsx($,{isGlobalNS:!0,code:"200003",size:"small",type:"link",onClick:()=>v(void 0,null,function*(){let{data:y}=yield I(`/api/usystem/role/info${i?"V2":""}?name=${d.name}`,{isGlobalNS:!0});a({initialValues:{id:y==null?void 0:y.id,permissions:y==null?void 0:y.permissions,name:y==null?void 0:y.name.replace(/^role_/,"")}});}),children:f("edit")}),jsx($,{isGlobalNS:!0,danger:!0,code:"200004",size:"small",type:"link",onClick:()=>{e.confirm({title:f("RoleList.deleteTitle"),content:jsx(xe,{texts:[d.name],children:f("RoleList.deleteContent",{role:d.name})}),onOk(){return v(this,null,function*(){yield n.trigger({id:d.id,name:d.name}),r(We,void 0,S=>produce(S,C=>{var b,P;let u=(b=C==null?void 0:C.list)==null?void 0:b.findIndex(V=>V.id===d.id);u&&((P=C==null?void 0:C.list)==null||P.splice(u,1));})),s.success(f("RoleList.deleteSuccessfully"));})}});},children:f("delete")})]})}];return jsxs(Fragment,{children:[jsx(Card,{title:f("role"),extra:jsx($,{isGlobalNS:!0,type:"primary",code:"200002",icon:jsx(UsergroupAddOutlined,{}),onClick:()=>{l();},children:f("RoleList.createTitle")}),children:jsx(Pe,{isGlobalNS:!0,rowKey:"name",columns:h,code:"200001",url:We,transformResponse:d=>{let{List:y,Total:S}=d;return {list:y,total:S}}})}),m,c]})},cr=mr;});var Jo={};ue(Jo,{default:()=>br});var yr,br,Yo=k(()=>{p();Ae();G();yr=()=>{let o=useParams(),{data:e,isLoading:s}=So(o.name),i=M();return jsxs(Fragment,{children:[jsx(Breadcrumb,{style:{marginBottom:24},items:[{key:"1",title:jsx(Link,{to:"/permission/role",children:i("role")})},{key:"2",title:o.name}]}),jsx(Card,{title:i("RoleDetail.title"),children:jsxs(Skeleton,{loading:s,children:[jsxs(Descriptions,{column:3,layout:"vertical",children:[jsx(Descriptions.Item,{label:i("name"),children:e==null?void 0:e.name}),jsx(Descriptions.Item,{label:"ID",children:e==null?void 0:e.id}),jsx(Descriptions.Item,{label:i("creationTime"),children:e==null?void 0:e.ctime})]}),jsx(fe,{readonly:!0,value:e==null?void 0:e.permissions})]})})]})},br=yr;});p();p();var m1=o=>{let{initialTags:e,addable:s,removable:i,addCallback:n,removeCallback:r}=o,{token:l}=theme.useToken(),[m,a]=useState([]),[c,f]=useState(!1),[h,d]=useState(""),[y,S]=useState(-1),[C,u]=useState(""),b=useRef(null),P=useRef(null);useEffect(()=>{a(e!=null?e:[]);},[e]),useEffect(()=>{var T;c&&((T=b.current)==null||T.focus());},[c]),useEffect(()=>{var T;(T=P.current)==null||T.focus();},[h]);let V=T=>v(void 0,null,function*(){if(yield r==null?void 0:r(T)){let J=m.filter($e=>$e!==T);a(J);}}),E=()=>{f(!0);},z=T=>{d(T.target.value);},de=()=>v(void 0,null,function*(){h&&m.indexOf(h)===-1&&(yield n==null?void 0:n(h))&&a([...m,h]),f(!1),d("");}),Te=T=>{u(T.target.value);},ke=()=>{let T=[...m];T[y]=C,a(T),S(-1),d("");},Q={width:78,verticalAlign:"top"},_e={background:l.colorBgContainer,borderStyle:"dashed"};return jsxs(Space,{wrap:!0,size:[0,8],children:[jsx(Space,{wrap:!0,size:[0,8],children:m.map((T,j)=>y===j?jsx(Input,{ref:P,size:"small",style:Q,value:C,onChange:Te,onBlur:ke,onPressEnter:ke},T):jsx(Tag,{closable:i,style:{userSelect:"none"},onClose:J=>v(void 0,null,function*(){J.preventDefault(),yield V(T);}),children:jsx("span",{onDoubleClick:J=>{j!==0&&(S(j),u(T),J.preventDefault());},children:T})},T))}),s&&(c?jsx(Input,{ref:b,type:"text",size:"small",style:Q,value:h,onChange:z,onBlur:de,onPressEnter:de}):jsxs(Tag,{style:_e,onClick:E,children:[jsx(PlusOutlined,{}),"\xA0\u6DFB\u52A0"]}))]})},c1=m1;Ye();Ie();be();Fe();p();B();be();p();p();var jt=create()(persist(o=>({openKeys:[],setOpenKeys:e=>o({openKeys:e}),selectedKeys:[],setSelectedKeys:e=>o({selectedKeys:e})}),{name:"nav",storage:createJSONStorage(()=>localStorage),partialize:o=>({openKeys:o.openKeys,selectedKeys:o.selectedKeys})}));B();H();var bs=(o,e)=>o?e?jsx(Link,{to:e,children:o}):o:jsx(Fragment,{});function Yt(o,e){let s=[];for(let r=0;r<o.length;r++)if(o[r]===null)s[r]=null;else if(o[r].type==="divider")s[r]=L({},o[r]);else if(o[r].children){let i=o[r],{children:l}=i,m=O(i,["children"]);s[r]=Z(L({},m),{children:Yt(l!=null?l:[],e)});}else {let n=o[r],{route:l,label:m,code:a}=n,c=O(n,["route","label","code"]),f=!a||!e||e[a];s[r]=f?Z(L({},c),{label:bs(m,l)}):null;}return s}function Xt(o,e=[],s=[]){for(let i of o){let n=i.children;if(Array.isArray(n)){let r=i.type!=="group"&&i.key?[...s,i.key]:s;Xt(n,e,r);}else e.push(Object.assign(i,{keypath:s}));}return e}var eo=()=>{let o=useLocation(),{menuItems:e}=R(),s=useMemo(()=>Xt(e!=null?e:[]),[e]),i=s.map(h=>h.code).filter(Boolean),{data:n}=Ve(i,{isGlobalNS:!0,suspense:!0}),r=useMemo(()=>Yt(e!=null?e:[],n),[e,n]),{openKeys:l,selectedKeys:m,setOpenKeys:a,setSelectedKeys:c}=jt(),f=useCallback(h=>{var S;let d=h==null?void 0:h.find(C=>(l==null?void 0:l.indexOf(C))===-1),y=s.find(C=>d===C.key);a((S=y==null?void 0:y.keypath)!=null?S:[d]);},[s,l,a]);return useEffect(()=>{let h=s.find(d=>o.pathname===d.route);if(h){let d=h.key,y=h.keypath;c([d]),a(y);}},[s,o,a,c]),jsx(Menu,{style:{borderRight:"none"},items:r,mode:"inline",openKeys:l,selectedKeys:m,onOpenChange:f})};eo.displayName="NavMenu";var it=eo;p();G();ne();var Ts=()=>{let o=useNavigate(),{clearToken:e,getUser:s}=q(),i=s(),n=M();return jsx(Dropdown,{menu:{selectable:!0,items:[{key:"1",label:jsx(to,{onClick:()=>{e(),o("/login");},children:n("UserWidget.logoutText")}),icon:jsx(LogoutOutlined,{})}]},placement:"bottomRight",children:jsx(to,{children:jsxs(Space,{align:"center",children:[jsx("span",{children:i==null?void 0:i.authorityId}),jsx(UserOutlined,{style:{fontSize:"16px"}})]})})})},rt=Ts;p();G();be();B();var vs=o=>{let{children:e}=o,{usePermissionApiV2:s,hideGameSelect:i}=R(),{game:n}=ae(),r=M();return s&&!i?n?jsx("div",{children:e},n.id):jsx(Card,{children:jsx(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE,description:r("RequireGame.description")})}):e},at=vs;var {Spin:Ns,theme:Gs}=we,{Header:Us,Sider:Ds,Content:Os}=we.Layout,Bs=o=>{let{children:e,extras:s}=o,{token:{colorBgContainer:i,colorBorder:n}}=Gs.useToken(),{title:r,usePermissionApiV2:l,hideGameSelect:m,localeDropdownMenu:a}=R();return jsxs(we.Layout,{hasSider:!0,className:"h-screen",children:[jsxs(Ds,{width:256,style:{overflow:"auto",height:"100vh",position:"fixed",left:0,top:0,bottom:0,borderRightWidth:1,borderRightStyle:"solid",borderRightColor:n},theme:"light",children:[jsxs("div",{className:"flex items-end px-6 py-4",children:[jsx("img",{src:Zs,alt:"logo",className:"w-8 h-8"}),jsx(Link,{className:"font-bold text-lg ml-2",to:"/",children:r})]}),jsx(it,{})]}),jsxs(we.Layout,{className:"ml-64",children:[jsx(Us,{style:{padding:"0 24px",background:i,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:n},children:jsxs("div",{className:"flex justify-between items-center h-full",children:[jsx("div",{children:l&&!m&&jsx(ot,{})}),jsxs(Space,{size:"small",split:jsx(Divider,{type:"vertical"}),children:[s==null?void 0:s.map(c=>jsx("span",{children:c.children},c.key)),a,jsx(rt,{})]})]})}),jsx(Os,{className:"p-6 bg-gray-50",style:{overflow:"overlay"},children:jsx(Suspense,{fallback:jsx(Ns,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"200px"}}),children:l&&!m?jsx(at,{children:e}):e})})]})]})},As=Bs;Ne();p();G();H();var qs=o=>{let{code:e,children:s}=o,{accessible:i,isValidating:n}=W(e),r=M();return n?jsx(Spin,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:200}}):i?jsx(Fragment,{children:s}):jsx(Result,{status:"403",subTitle:r("noEntitlement")})},_s=qs;Ue();B();H();Me();ne();p();var Ti=lazy(()=>Promise.resolve().then(()=>(ho(),go))),ki=lazy(()=>Promise.resolve().then(()=>(bo(),yo))),Ri={children:[{path:"login",element:jsx(Ti,{})},{path:"*",element:jsx(ki,{})}]},vi=Ri;p();var Mr=lazy(()=>Promise.resolve().then(()=>(_o(),qo))),Pr=lazy(()=>Promise.resolve().then(()=>(jo(),Qo))),Sr=lazy(()=>Promise.resolve().then(()=>(Yo(),Jo))),Cr=[{path:"permission",children:[{index:!0,element:jsx(Navigate,{relative:"path",to:"user"})},{path:"user",element:jsx(Mr,{})},{path:"role",element:jsx(Pr,{})},{path:"role/:name",element:jsx(Sr,{})}]}],Tr=Cr;G();tt();_();
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { h1 as ContextProvider, c1 as DynamicTags, Je as FilterFormWrapper, F1 as FormModal, ot as GameSelect, xe as Highlight, As as Layout, it as NavMenu, $ as PermissionButton, _s as PermissionGuard, Pe as QueryList, lo as QueryListAction, ye as RequestError, at as RequireGame, rt as UserWidget, vi as baseRoutes, he as contextStore, et as mixedStorage, Tr as permissionRoutes, I as request, X as useFormModal, ae as useGameStore, W as usePermission, Ve as usePermissions, K as useQueryListStore, q as useTokenStore, R as useToolkitsContext, M as useTranslation, A1 as useValidateToken };
|
|
24
24
|
//# sourceMappingURL=out.js.map
|
|
25
25
|
//# sourceMappingURL=index.js.map
|