From 154de679af14b7d006d502e4eaf42b980649b63b Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Fri, 18 Sep 2026 03:20:50 +0700 Subject: [PATCH] up --- .../{Add-CeJ0I8t8.js => Add-Dpa8jwVl.js} | 2 +- .../{Alert-BbFVk-Xc.js => Alert-DZMHsQvh.js} | 2 +- ...{Button-SFBLnAwv.js => Button-_KVJEFbE.js} | 2 +- .../{Card-BFXpokQN.js => Card-jY6IqKWx.js} | 2 +- ...ew-1j4eOUoP.js => CatalogView-Ym_LLlzp.js} | 2 +- dist/assets/ConsentView-BI8S4rrx.js | 1 + dist/assets/ConsentView-BU2_6AMl.js | 1 - ...sPage-DzX4rZ9-.js => DocsPage-4nGaYJI1.js} | 2 +- .../{Flex-SLIxZFiS.js => Flex-ISd7TnC9.js} | 2 +- ...lower-BqBATTTc.js => Follower-BeUAmPJ4.js} | 2 +- ...ajtZZfi.js => GameResultsView-B10RrKbL.js} | 2 +- dist/assets/GameView-BKwM_tBI.js | 7 -- dist/assets/GameView-CNjahWcK.css | 1 + dist/assets/GameView-CrSlYoz4.css | 1 - dist/assets/GameView-D5vfq7WW.js | 7 ++ ...View-CdYFEBT8.js => GamesView-iKvbJg0m.js} | 2 +- dist/assets/HeaderMenu-BaN-nOUm.css | 1 - ...enu-BV7MwsiN.js => HeaderMenu-Qspj3Vlt.js} | 2 +- dist/assets/HeaderMenu-xpgysPwY.css | 1 + ...ext-DhMm0KRw.js => HeaderText--_Iy26DF.js} | 2 +- ...eView-Odksypfy.js => HomeView-P7HmrCBa.js} | 2 +- .../{Input-CM5axX8S.js => Input-jiXpa-nM.js} | 2 +- ...View-B4bTBzE0.js => LoginView-B1lGgObI.js} | 2 +- .../{Modal-Cc3YqyVW.js => Modal-COuHyUKC.js} | 2 +- ...iew-CLlCnFHy.js => OfficeView-CUdTzgA2.js} | 2 +- ...mhutL.js => ParticipationView-C3qDA10w.js} | 2 +- ...ock-vyAeKNdX.js => PlaceBlock-Bh8s3Jpl.js} | 2 +- ...opover-MvWXFA-P.js => Popover-DZnHj7OS.js} | 2 +- dist/assets/PrivacyPolicyView-BdZMUbuj.js | 1 + dist/assets/PrivacyPolicyView-lUpP47S0.js | 1 - ...{QrCode-DwxuAXRz.js => QrCode-CWZd63W8.js} | 2 +- .../{Rate-B5toYPlv.js => Rate-BuNWBBdn.js} | 2 +- ...{Remove-CNpD-1y-.js => Remove-B8gpmkQR.js} | 2 +- dist/assets/ReviewsView-BnIZXIGV.js | 1 + dist/assets/ReviewsView-DHvnR8hu.css | 1 + ...w-MSdKfSb5.js => ScenarioView-Crpa-0a2.js} | 2 +- ...dlh.js => ScenariosEditorView-F771n23k.js} | 2 +- ...-ChSXLwGe.js => ScenariosView-BDlkEnAX.js} | 2 +- ...iew-Dep3mMTR.js => ScreenView-CUgZFDLh.js} | 2 +- ...{Select-BQvr1qOg.js => Select-BAqObS0Q.js} | 2 +- ...tings-ClmW7dGA.js => Settings-DZEhm-J2.js} | 2 +- .../{Space-B98o1YSA.js => Space-BumyB3cS.js} | 2 +- ...{Suffix-CutOgybq.js => Suffix-PHRsdJdH.js} | 2 +- .../{Tag-BqKZJJ-a.js => Tag-DfP_x904.js} | 2 +- ...55aiYGG.css => TeamStoryView-B6BAG64o.css} | 2 +- ...-BCW_ajVi.js => TeamStoryView-CjECoLQL.js} | 2 +- ...{Upload-MQncuSBB.js => Upload-i91liVQs.js} | 2 +- dist/assets/UserAgreementView-Co6k36_y.js | 1 + dist/assets/UserAgreementView-D9JyU4Z2.js | 1 - ...View-CZdF-i6P.js => UsersView-ClrscFQ_.js} | 2 +- ... => _plugin-vue_export-helper-C_XTvH5A.js} | 2 +- ...on-CK_JoGAx.js => application-CQhaY0yx.js} | 2 +- .../{auth-DetOXv90.js => auth-CzuN8bsR.js} | 2 +- ...-C_fP8dcD.js => binary_client-zERk4LUr.js} | 2 +- ...r-mvZ1VOJ5.js => fade-in.cssr-CoPRsCos.js} | 2 +- .../{get-Cv_ptumj.js => get-BOxoHLMw.js} | 2 +- .../{index-UYw_T9_p.js => index-4mSiwzFS.js} | 6 +- .../{keep-XDVR1tb6.js => keep-D5zQL9t4.js} | 2 +- .../{light-EjSCIEMB.js => light-Cn9TVfcC.js} | 2 +- .../{light-BN35I8ot.js => light-Dg5iONHF.js} | 2 +- ...t-DXnJRg0o.js => resolve-slot-Bgp_Mn8k.js} | 2 +- .../{text-DNaqMd7_.js => text-BQr3Ce8B.js} | 2 +- ...Ct-u1IyK.js => use-compitable-boC6cFiE.js} | 2 +- ...-CT1L1ziV.js => use-form-item-DDZTyeAQ.js} | 2 +- ...19ICqg.js => use-merged-state-D8rNARXC.js} | 2 +- ...ge-bV_QZwc3.js => use-message-R8JEzJ8f.js} | 2 +- ...M7J1Ci.js => useSimplePolling-CxHCqzxV.js} | 2 +- .../{utils-uz9aUEjP.js => utils-Av1b4W6Q.js} | 2 +- dist/index.html | 8 +- proto/main.proto | 35 ++++--- .../crabs/evening_detective_server/index.ts | 22 +++++ src/components/GamePage.vue | 76 +++++++++++++++ src/components/HeaderMenu.vue | 8 ++ src/components/ReviewsPage.vue | 96 +++++++++++++++++++ src/components/TeamStoryPage.vue | 20 +++- src/router/index.ts | 5 + src/views/ReviewsView.vue | 7 ++ 77 files changed, 327 insertions(+), 88 deletions(-) rename dist/assets/{Add-CeJ0I8t8.js => Add-Dpa8jwVl.js} (81%) rename dist/assets/{Alert-BbFVk-Xc.js => Alert-DZMHsQvh.js} (96%) rename dist/assets/{Button-SFBLnAwv.js => Button-_KVJEFbE.js} (97%) rename dist/assets/{Card-BFXpokQN.js => Card-jY6IqKWx.js} (98%) rename dist/assets/{CatalogView-1j4eOUoP.js => CatalogView-Ym_LLlzp.js} (85%) create mode 100644 dist/assets/ConsentView-BI8S4rrx.js delete mode 100644 dist/assets/ConsentView-BU2_6AMl.js rename dist/assets/{DocsPage-DzX4rZ9-.js => DocsPage-4nGaYJI1.js} (91%) rename dist/assets/{Flex-SLIxZFiS.js => Flex-ISd7TnC9.js} (77%) rename dist/assets/{Follower-BqBATTTc.js => Follower-BeUAmPJ4.js} (97%) rename dist/assets/{GameResultsView-BajtZZfi.js => GameResultsView-B10RrKbL.js} (94%) delete mode 100644 dist/assets/GameView-BKwM_tBI.js create mode 100644 dist/assets/GameView-CNjahWcK.css delete mode 100644 dist/assets/GameView-CrSlYoz4.css create mode 100644 dist/assets/GameView-D5vfq7WW.js rename dist/assets/{GamesView-CdYFEBT8.js => GamesView-iKvbJg0m.js} (99%) delete mode 100644 dist/assets/HeaderMenu-BaN-nOUm.css rename dist/assets/{HeaderMenu-BV7MwsiN.js => HeaderMenu-Qspj3Vlt.js} (74%) create mode 100644 dist/assets/HeaderMenu-xpgysPwY.css rename dist/assets/{HeaderText-DhMm0KRw.js => HeaderText--_Iy26DF.js} (58%) rename dist/assets/{HomeView-Odksypfy.js => HomeView-P7HmrCBa.js} (74%) rename dist/assets/{Input-CM5axX8S.js => Input-jiXpa-nM.js} (98%) rename dist/assets/{LoginView-B4bTBzE0.js => LoginView-B1lGgObI.js} (97%) rename dist/assets/{Modal-Cc3YqyVW.js => Modal-COuHyUKC.js} (96%) rename dist/assets/{OfficeView-CLlCnFHy.js => OfficeView-CUdTzgA2.js} (97%) rename dist/assets/{ParticipationView-BG5mhutL.js => ParticipationView-C3qDA10w.js} (92%) rename dist/assets/{PlaceBlock-vyAeKNdX.js => PlaceBlock-Bh8s3Jpl.js} (97%) rename dist/assets/{Popover-MvWXFA-P.js => Popover-DZnHj7OS.js} (96%) create mode 100644 dist/assets/PrivacyPolicyView-BdZMUbuj.js delete mode 100644 dist/assets/PrivacyPolicyView-lUpP47S0.js rename dist/assets/{QrCode-DwxuAXRz.js => QrCode-CWZd63W8.js} (98%) rename dist/assets/{Rate-B5toYPlv.js => Rate-BuNWBBdn.js} (90%) rename dist/assets/{Remove-CNpD-1y-.js => Remove-B8gpmkQR.js} (82%) create mode 100644 dist/assets/ReviewsView-BnIZXIGV.js create mode 100644 dist/assets/ReviewsView-DHvnR8hu.css rename dist/assets/{ScenarioView-MSdKfSb5.js => ScenarioView-Crpa-0a2.js} (84%) rename dist/assets/{ScenariosEditorView-DBVhNdlh.js => ScenariosEditorView-F771n23k.js} (96%) rename dist/assets/{ScenariosView-ChSXLwGe.js => ScenariosView-BDlkEnAX.js} (89%) rename dist/assets/{ScreenView-Dep3mMTR.js => ScreenView-CUgZFDLh.js} (94%) rename dist/assets/{Select-BQvr1qOg.js => Select-BAqObS0Q.js} (97%) rename dist/assets/{Settings-ClmW7dGA.js => Settings-DZEhm-J2.js} (95%) rename dist/assets/{Space-B98o1YSA.js => Space-BumyB3cS.js} (88%) rename dist/assets/{Suffix-CutOgybq.js => Suffix-PHRsdJdH.js} (98%) rename dist/assets/{Tag-BqKZJJ-a.js => Tag-DfP_x904.js} (96%) rename dist/assets/{TeamStoryView-C55aiYGG.css => TeamStoryView-B6BAG64o.css} (66%) rename dist/assets/{TeamStoryView-BCW_ajVi.js => TeamStoryView-CjECoLQL.js} (56%) rename dist/assets/{Upload-MQncuSBB.js => Upload-i91liVQs.js} (98%) create mode 100644 dist/assets/UserAgreementView-Co6k36_y.js delete mode 100644 dist/assets/UserAgreementView-D9JyU4Z2.js rename dist/assets/{UsersView-CZdF-i6P.js => UsersView-ClrscFQ_.js} (97%) rename dist/assets/{_plugin-vue_export-helper-7lqdtqme.js => _plugin-vue_export-helper-C_XTvH5A.js} (98%) rename dist/assets/{application-CK_JoGAx.js => application-CQhaY0yx.js} (88%) rename dist/assets/{auth-DetOXv90.js => auth-CzuN8bsR.js} (92%) rename dist/assets/{binary_client-C_fP8dcD.js => binary_client-zERk4LUr.js} (95%) rename dist/assets/{fade-in.cssr-mvZ1VOJ5.js => fade-in.cssr-CoPRsCos.js} (87%) rename dist/assets/{get-Cv_ptumj.js => get-BOxoHLMw.js} (92%) rename dist/assets/{index-UYw_T9_p.js => index-4mSiwzFS.js} (95%) rename dist/assets/{keep-XDVR1tb6.js => keep-D5zQL9t4.js} (96%) rename dist/assets/{light-EjSCIEMB.js => light-Cn9TVfcC.js} (95%) rename dist/assets/{light-BN35I8ot.js => light-Dg5iONHF.js} (99%) rename dist/assets/{resolve-slot-DXnJRg0o.js => resolve-slot-Bgp_Mn8k.js} (93%) rename dist/assets/{text-DNaqMd7_.js => text-BQr3Ce8B.js} (90%) rename dist/assets/{use-compitable-Ct-u1IyK.js => use-compitable-boC6cFiE.js} (57%) rename dist/assets/{use-form-item-CT1L1ziV.js => use-form-item-DDZTyeAQ.js} (86%) rename dist/assets/{use-merged-state-Dw19ICqg.js => use-merged-state-D8rNARXC.js} (59%) rename dist/assets/{use-message-bV_QZwc3.js => use-message-R8JEzJ8f.js} (72%) rename dist/assets/{useSimplePolling-D6M7J1Ci.js => useSimplePolling-CxHCqzxV.js} (74%) rename dist/assets/{utils-uz9aUEjP.js => utils-Av1b4W6Q.js} (98%) create mode 100644 src/components/ReviewsPage.vue create mode 100644 src/views/ReviewsView.vue diff --git a/dist/assets/Add-CeJ0I8t8.js b/dist/assets/Add-Dpa8jwVl.js similarity index 81% rename from dist/assets/Add-CeJ0I8t8.js rename to dist/assets/Add-Dpa8jwVl.js index d8e7364..09fe53a 100644 --- a/dist/assets/Add-CeJ0I8t8.js +++ b/dist/assets/Add-Dpa8jwVl.js @@ -1 +1 @@ -import{P as e,j as t}from"./auth-DetOXv90.js";var n=t({name:`Add`,render(){return e(`svg`,{width:`512`,height:`512`,viewBox:`0 0 512 512`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e(`path`,{d:`M256 112V400M400 256H112`,stroke:`currentColor`,"stroke-width":`32`,"stroke-linecap":`round`,"stroke-linejoin":`round`}))}});export{n as t}; \ No newline at end of file +import{P as e,j as t}from"./auth-CzuN8bsR.js";var n=t({name:`Add`,render(){return e(`svg`,{width:`512`,height:`512`,viewBox:`0 0 512 512`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e(`path`,{d:`M256 112V400M400 256H112`,stroke:`currentColor`,"stroke-width":`32`,"stroke-linecap":`round`,"stroke-linejoin":`round`}))}});export{n as t}; \ No newline at end of file diff --git a/dist/assets/Alert-BbFVk-Xc.js b/dist/assets/Alert-DZMHsQvh.js similarity index 96% rename from dist/assets/Alert-BbFVk-Xc.js rename to dist/assets/Alert-DZMHsQvh.js index c5ad3a0..46457f1 100644 --- a/dist/assets/Alert-BbFVk-Xc.js +++ b/dist/assets/Alert-DZMHsQvh.js @@ -1,4 +1,4 @@ -import{L as e,P as t,S as n,ct as r,j as i}from"./auth-DetOXv90.js";import{B as a,G as o,J as s,K as c,M as l,N as u,V as d,Y as f,Z as p,o as m,r as h,t as g}from"./light-BN35I8ot.js";import{a as _,c as v,r as y}from"./resolve-slot-DXnJRg0o.js";import{H as b,I as x,L as S,N as C,P as w,R as T,T as E,w as D,z as O}from"./index-UYw_T9_p.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:o,actionColor:s,textColor1:c,textColor2:l,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},E),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${o}`,color:s,titleTextColor:c,iconColor:l,contentTextColor:l,closeBorderRadius:n,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${d(i,a(g,{alpha:.25}))}`,colorInfo:d(i,a(g,{alpha:.08})),titleTextColorInfo:c,iconColorInfo:g,contentTextColorInfo:l,closeColorHoverInfo:u,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${d(i,a(_,{alpha:.25}))}`,colorSuccess:d(i,a(_,{alpha:.08})),titleTextColorSuccess:c,iconColorSuccess:_,contentTextColorSuccess:l,closeColorHoverSuccess:u,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${d(i,a(v,{alpha:.33}))}`,colorWarning:d(i,a(v,{alpha:.08})),titleTextColorWarning:c,iconColorWarning:v,contentTextColorWarning:l,closeColorHoverWarning:u,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${d(i,a(y,{alpha:.25}))}`,colorError:d(i,a(y,{alpha:.08})),titleTextColorError:c,iconColorError:y,contentTextColorError:l,closeColorHoverError:u,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:g,self:k},j=c(`alert`,` +import{L as e,P as t,S as n,ct as r,j as i}from"./auth-CzuN8bsR.js";import{B as a,G as o,J as s,K as c,M as l,N as u,V as d,Y as f,Z as p,o as m,r as h,t as g}from"./light-Dg5iONHF.js";import{a as _,c as v,r as y}from"./resolve-slot-Bgp_Mn8k.js";import{H as b,I as x,L as S,N as C,P as w,R as T,T as E,w as D,z as O}from"./index-4mSiwzFS.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:o,actionColor:s,textColor1:c,textColor2:l,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},E),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${o}`,color:s,titleTextColor:c,iconColor:l,contentTextColor:l,closeBorderRadius:n,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${d(i,a(g,{alpha:.25}))}`,colorInfo:d(i,a(g,{alpha:.08})),titleTextColorInfo:c,iconColorInfo:g,contentTextColorInfo:l,closeColorHoverInfo:u,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${d(i,a(_,{alpha:.25}))}`,colorSuccess:d(i,a(_,{alpha:.08})),titleTextColorSuccess:c,iconColorSuccess:_,contentTextColorSuccess:l,closeColorHoverSuccess:u,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${d(i,a(v,{alpha:.33}))}`,colorWarning:d(i,a(v,{alpha:.08})),titleTextColorWarning:c,iconColorWarning:v,contentTextColorWarning:l,closeColorHoverWarning:u,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${d(i,a(y,{alpha:.25}))}`,colorError:d(i,a(y,{alpha:.08})),titleTextColorError:c,iconColorError:y,contentTextColorError:l,closeColorHoverError:u,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:g,self:k},j=c(`alert`,` line-height: var(--n-line-height); border-radius: var(--n-border-radius); position: relative; diff --git a/dist/assets/Button-SFBLnAwv.js b/dist/assets/Button-_KVJEFbE.js similarity index 97% rename from dist/assets/Button-SFBLnAwv.js rename to dist/assets/Button-_KVJEFbE.js index 07ca470..70d9b0f 100644 --- a/dist/assets/Button-SFBLnAwv.js +++ b/dist/assets/Button-_KVJEFbE.js @@ -1,4 +1,4 @@ -import{F as e,P as t,R as n,S as r,V as i,_ as a,ct as o,dt as s,g as c,j as l,k as u}from"./auth-DetOXv90.js";import{B as d,G as f,J as p,K as m,M as h,N as g,V as _,X as v,Y as y,Z as b,a as x,i as S,o as C,r as w,z as T}from"./light-BN35I8ot.js";import{a as E,n as D}from"./resolve-slot-DXnJRg0o.js";import{i as O,n as k,r as A}from"./use-form-item-CT1L1ziV.js";import{F as j,N as M,V as N,Y as P,j as F,x as I}from"./index-UYw_T9_p.js";var L=typeof document<`u`&&typeof window<`u`;function R(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(u(String(e)));return}if(Array.isArray(e)){R(e,t,n);return}if(e.type===a){if(e.children===null)return;Array.isArray(e.children)&&R(e.children,t,n)}else{if(e.type===c&&t)return;n.push(e)}}}),n}var{cubicBezierEaseInOut:z}=x;function B({duration:e=`.2s`,delay:t=`.1s`}={}){return[f(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),f(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,` +import{F as e,P as t,R as n,S as r,V as i,_ as a,ct as o,dt as s,g as c,j as l,k as u}from"./auth-CzuN8bsR.js";import{B as d,G as f,J as p,K as m,M as h,N as g,V as _,X as v,Y as y,Z as b,a as x,i as S,o as C,r as w,z as T}from"./light-Dg5iONHF.js";import{a as E,n as D}from"./resolve-slot-Bgp_Mn8k.js";import{i as O,n as k,r as A}from"./use-form-item-DDZTyeAQ.js";import{F as j,N as M,V as N,Y as P,j as F,x as I}from"./index-4mSiwzFS.js";var L=typeof document<`u`&&typeof window<`u`;function R(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(u(String(e)));return}if(Array.isArray(e)){R(e,t,n);return}if(e.type===a){if(e.children===null)return;Array.isArray(e.children)&&R(e.children,t,n)}else{if(e.type===c&&t)return;n.push(e)}}}),n}var{cubicBezierEaseInOut:z}=x;function B({duration:e=`.2s`,delay:t=`.1s`}={}){return[f(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),f(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,` opacity: 0!important; margin-left: 0!important; margin-right: 0!important; diff --git a/dist/assets/Card-BFXpokQN.js b/dist/assets/Card-jY6IqKWx.js similarity index 98% rename from dist/assets/Card-BFXpokQN.js rename to dist/assets/Card-jY6IqKWx.js index 3f75089..f1ef0cd 100644 --- a/dist/assets/Card-BFXpokQN.js +++ b/dist/assets/Card-jY6IqKWx.js @@ -1,4 +1,4 @@ -import{H as e,L as t,M as n,P as r,S as i,U as a,V as o,Y as s,_ as c,ct as l,j as u,tt as d,z as f}from"./auth-DetOXv90.js";import{$ as p,G as m,J as h,K as g,M as _,N as v,Q as y,W as b,Y as x,Z as S,o as C,r as w}from"./light-BN35I8ot.js";import{a as T,c as E,l as D,o as O,t as k}from"./resolve-slot-DXnJRg0o.js";import{r as A}from"./use-form-item-CT1L1ziV.js";import{t as j}from"./fade-in.cssr-mvZ1VOJ5.js";import{r as ee,t as M}from"./light-EjSCIEMB.js";import{P as N,Z as P}from"./index-UYw_T9_p.js";function te(e){return e.composedPath()[0]||null}function F(e){return e.composedPath()[0]}var ne={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function re(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(F(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(F(n))},i=r=>{e&&(t.contains(F(r))||n(r))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function I(e,t,n){let r=ne[e],i=r.get(t);i===void 0&&r.set(t,i=new WeakMap);let a=i.get(n);return a===void 0&&i.set(n,a=re(e,t,n)),a}function ie(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=I(e,t,n);return Object.keys(i).forEach(e=>{z(e,document,i[e],r)}),!0}return!1}function L(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=I(e,t,n);return Object.keys(i).forEach(e=>{B(e,document,i[e],r)}),!0}return!1}function R(){if(typeof window>`u`)return{on:()=>{},off:()=>{}};let e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function i(e,t,n){let r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function a(e,t){e[t]=Event.prototype[t]}let o=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,`currentTarget`);function c(){return o.get(this)??null}function l(e,t){s!==void 0&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:t??s.get})}let u={bubble:{},capture:{}},d={};function f(){let s=function(s){let{type:d,eventPhase:f,bubbles:p}=s,m=F(s);if(f===2)return;let h=f===1?`capture`:`bubble`,g=m,_=[];for(;g===null&&(g=window),_.push(g),g!==window;)g=g.parentNode||null;let v=u.capture[d],y=u.bubble[d];if(i(s,`stopPropagation`,n),i(s,`stopImmediatePropagation`,r),l(s,c),h===`capture`){if(v===void 0)return;for(let n=_.length-1;n>=0&&!e.has(s);--n){let e=_[n],r=v.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}if(n===0&&!p&&y!==void 0){let n=y.get(e);if(n!==void 0)for(let e of n){if(t.has(s))break;e(s)}}}}else if(h===`bubble`){if(y===void 0)return;for(let n=0;n<_.length&&!e.has(s);++n){let e=_[n],r=y.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}}}a(s,`stopPropagation`),a(s,`stopImmediatePropagation`),l(s)};return s.displayName=`evtdUnifiedHandler`,s}function p(){let e=function(e){let{type:t,eventPhase:n}=e;if(n!==2)return;let r=d[t];r!==void 0&&r.forEach(t=>t(e))};return e.displayName=`evtdUnifiedWindowEventHandler`,e}let m=f(),h=p();function g(e,t){let n=u[e];return n[t]===void 0&&(n[t]=new Map,window.addEventListener(t,m,e===`capture`)),n[t]}function _(e){return d[e]===void 0&&(d[e]=new Set,window.addEventListener(e,h)),d[e]}function v(e,t){let n=e.get(t);return n===void 0&&e.set(t,n=new Set),n}function y(e,t,n,r){let i=u[t][n];if(i!==void 0){let t=i.get(e);if(t!==void 0&&t.has(r))return!0}return!1}function b(e,t){let n=d[e];return!!(n!==void 0&&n.has(t))}function x(e,t,n,r){let i;if(i=typeof r==`object`&&r.once===!0?a=>{S(e,t,i,r),n(a)}:n,ie(e,t,i,r))return;let a=v(g(r===!0||typeof r==`object`&&r.capture===!0?`capture`:`bubble`,e),t);if(a.has(i)||a.add(i),t===window){let t=_(e);t.has(i)||t.add(i)}}function S(e,t,n,r){if(L(e,t,n,r))return;let i=r===!0||typeof r==`object`&&r.capture===!0,a=i?`capture`:`bubble`,o=g(a,e),s=v(o,t);if(t===window&&!y(t,i?`bubble`:`capture`,e,n)&&b(e,n)){let t=d[e];t.delete(n),t.size===0&&(window.removeEventListener(e,h),d[e]=void 0)}s.has(n)&&s.delete(n),s.size===0&&o.delete(t),o.size===0&&(window.removeEventListener(e,m,a===`capture`),u[a][e]=void 0)}return{on:x,off:S}}var{on:z,off:B}=R(),ae=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function oe(){return ae}function se(t){let n={isDeactivated:!1},r=!1;return f(()=>{if(n.isDeactivated=!1,!r){r=!0;return}t()}),e(()=>{n.isDeactivated=!0,r||=!0}),n}function V(e,t){console.error(`[vueuc/${e}]: ${t}`)}var H=[],ce=function(){return H.some(function(e){return e.activeTargets.length>0})},le=function(){return H.some(function(e){return e.skippedTargets.length>0})},ue=`ResizeObserver loop completed with undelivered notifications.`,de=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:ue}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=ue),window.dispatchEvent(e)},U;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(U||={});var W=function(e){return Object.freeze(e)},fe=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,W(this)}return e}(),pe=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,W(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),G=function(e){return e instanceof SVGElement&&`getBBox`in e},me=function(e){if(G(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},K=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},he=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},q=typeof window<`u`?window:{},J=new WeakMap,ge=/auto|scroll/,Y=/^tb|vertical/,_e=/msie|trident/i.test(q.navigator&&q.navigator.userAgent),X=function(e){return parseFloat(e||`0`)},Z=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new fe((n?t:e)||0,(n?e:t)||0)},ve=W({devicePixelContentBoxSize:Z(),borderBoxSize:Z(),contentBoxSize:Z(),contentRect:new pe(0,0,0,0)}),ye=function(e,t){if(t===void 0&&(t=!1),J.has(e)&&!t)return J.get(e);if(me(e))return J.set(e,ve),ve;var n=getComputedStyle(e),r=G(e)&&e.ownerSVGElement&&e.getBBox(),i=!_e&&n.boxSizing===`border-box`,a=Y.test(n.writingMode||``),o=!r&&ge.test(n.overflowY||``),s=!r&&ge.test(n.overflowX||``),c=r?0:X(n.paddingTop),l=r?0:X(n.paddingRight),u=r?0:X(n.paddingBottom),d=r?0:X(n.paddingLeft),f=r?0:X(n.borderTopWidth),p=r?0:X(n.borderRightWidth),m=r?0:X(n.borderBottomWidth),h=r?0:X(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:X(n.width)-S-x,T=r?r.height:X(n.height)-C-b,E=w+g+x+v,D=T+_+b+y,O=W({devicePixelContentBoxSize:Z(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:Z(E,D,a),contentBoxSize:Z(w,T,a),contentRect:new pe(d,c,w,T)});return J.set(e,O),O},be=function(e,t,n){var r=ye(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case U.DEVICE_PIXEL_CONTENT_BOX:return o;case U.BORDER_BOX:return i;default:return a}},xe=function(){function e(e){var t=ye(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=W([t.borderBoxSize]),this.contentBoxSize=W([t.contentBoxSize]),this.devicePixelContentBoxSize=W([t.devicePixelContentBoxSize])}return e}(),Se=function(e){if(me(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Ce=function(){var e=1/0,t=[];H.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new xe(t.target),i=Se(t.target);r.push(n),t.lastReportedSize=be(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},Te=function(){var e=0;for(we(e);ce();)e=Ce(),we(e);return le()&&de(),e>0},Q,Ee=[],De=function(){return Ee.splice(0).forEach(function(e){return e()})},Oe=function(e){if(!Q){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return De()}).observe(n,{characterData:!0}),Q=function(){n.textContent=`${t?t--:t++}`}}Ee.push(e),Q()},ke=function(e){Oe(function(){requestAnimationFrame(e)})},$=0,Ae=function(){return!!$},je=250,Me={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ne=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],Pe=function(e){return e===void 0&&(e=0),Date.now()+e},Fe=!1,Ie=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=je),!Fe){Fe=!0;var n=Pe(e);ke(function(){var r=!1;try{r=Te()}finally{if(Fe=!1,e=n-Pe(),!Ae())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Me)};document.body?t():q.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ne.forEach(function(t){return q.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Ne.forEach(function(t){return q.removeEventListener(t,e.listener,!0)}),!0)},e}()),Le=function(e){!$&&e>0&&Ie.start(),$+=e,!$&&Ie.stop()},Re=function(e){return!G(e)&&!he(e)&&getComputedStyle(e).display===`inline`},ze=function(){function e(e,t){this.target=e,this.observedBox=t||U.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=be(this.target,this.observedBox,!0);return Re(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Be=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),Ve=new WeakMap,He=function(e,t){for(var n=0;n=0&&(i&&H.splice(H.indexOf(n),1),n.observationTargets.splice(r,1),Le(-1))},e.disconnect=function(e){var t=this,n=Ve.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),We=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);Ue.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!K(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);Ue.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!K(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);Ue.unobserve(this,e)},e.prototype.disconnect=function(){Ue.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Ge=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||We)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(let t of e){let e=this.elHandlersMap.get(t.target);e!==void 0&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},Ke=u({name:`ResizeObserver`,props:{onResize:Function},setup(e){let t=!1,r=n().proxy;function i(t){let{onResize:n}=e;n!==void 0&&n(t)}a(()=>{let e=r.$el;if(e===void 0){V(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){V(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Ge.registerHandler(e.nextElementSibling,i),t=!0)}),o(()=>{t&&Ge.unregisterHandler(r.$el.nextElementSibling)})},render(){return s(this.$slots,`default`)}});function qe(e){let{left:t,right:n,top:r,bottom:i}=E(e);return`${r} ${t} ${i} ${n}`}function Je(e){return Object.keys(e)}var Ye=u({render(){var e;return(e=this.$slots).default?.call(e)}}),Xe=g(`scrollbar`,` +import{H as e,L as t,M as n,P as r,S as i,U as a,V as o,Y as s,_ as c,ct as l,j as u,tt as d,z as f}from"./auth-CzuN8bsR.js";import{$ as p,G as m,J as h,K as g,M as _,N as v,Q as y,W as b,Y as x,Z as S,o as C,r as w}from"./light-Dg5iONHF.js";import{a as T,c as E,l as D,o as O,t as k}from"./resolve-slot-Bgp_Mn8k.js";import{r as A}from"./use-form-item-DDZTyeAQ.js";import{t as j}from"./fade-in.cssr-CoPRsCos.js";import{r as ee,t as M}from"./light-Cn9TVfcC.js";import{P as N,Z as P}from"./index-4mSiwzFS.js";function te(e){return e.composedPath()[0]||null}function F(e){return e.composedPath()[0]}var ne={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function re(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(F(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(F(n))},i=r=>{e&&(t.contains(F(r))||n(r))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function I(e,t,n){let r=ne[e],i=r.get(t);i===void 0&&r.set(t,i=new WeakMap);let a=i.get(n);return a===void 0&&i.set(n,a=re(e,t,n)),a}function ie(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=I(e,t,n);return Object.keys(i).forEach(e=>{z(e,document,i[e],r)}),!0}return!1}function L(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=I(e,t,n);return Object.keys(i).forEach(e=>{B(e,document,i[e],r)}),!0}return!1}function R(){if(typeof window>`u`)return{on:()=>{},off:()=>{}};let e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function i(e,t,n){let r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function a(e,t){e[t]=Event.prototype[t]}let o=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,`currentTarget`);function c(){return o.get(this)??null}function l(e,t){s!==void 0&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:t??s.get})}let u={bubble:{},capture:{}},d={};function f(){let s=function(s){let{type:d,eventPhase:f,bubbles:p}=s,m=F(s);if(f===2)return;let h=f===1?`capture`:`bubble`,g=m,_=[];for(;g===null&&(g=window),_.push(g),g!==window;)g=g.parentNode||null;let v=u.capture[d],y=u.bubble[d];if(i(s,`stopPropagation`,n),i(s,`stopImmediatePropagation`,r),l(s,c),h===`capture`){if(v===void 0)return;for(let n=_.length-1;n>=0&&!e.has(s);--n){let e=_[n],r=v.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}if(n===0&&!p&&y!==void 0){let n=y.get(e);if(n!==void 0)for(let e of n){if(t.has(s))break;e(s)}}}}else if(h===`bubble`){if(y===void 0)return;for(let n=0;n<_.length&&!e.has(s);++n){let e=_[n],r=y.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}}}a(s,`stopPropagation`),a(s,`stopImmediatePropagation`),l(s)};return s.displayName=`evtdUnifiedHandler`,s}function p(){let e=function(e){let{type:t,eventPhase:n}=e;if(n!==2)return;let r=d[t];r!==void 0&&r.forEach(t=>t(e))};return e.displayName=`evtdUnifiedWindowEventHandler`,e}let m=f(),h=p();function g(e,t){let n=u[e];return n[t]===void 0&&(n[t]=new Map,window.addEventListener(t,m,e===`capture`)),n[t]}function _(e){return d[e]===void 0&&(d[e]=new Set,window.addEventListener(e,h)),d[e]}function v(e,t){let n=e.get(t);return n===void 0&&e.set(t,n=new Set),n}function y(e,t,n,r){let i=u[t][n];if(i!==void 0){let t=i.get(e);if(t!==void 0&&t.has(r))return!0}return!1}function b(e,t){let n=d[e];return!!(n!==void 0&&n.has(t))}function x(e,t,n,r){let i;if(i=typeof r==`object`&&r.once===!0?a=>{S(e,t,i,r),n(a)}:n,ie(e,t,i,r))return;let a=v(g(r===!0||typeof r==`object`&&r.capture===!0?`capture`:`bubble`,e),t);if(a.has(i)||a.add(i),t===window){let t=_(e);t.has(i)||t.add(i)}}function S(e,t,n,r){if(L(e,t,n,r))return;let i=r===!0||typeof r==`object`&&r.capture===!0,a=i?`capture`:`bubble`,o=g(a,e),s=v(o,t);if(t===window&&!y(t,i?`bubble`:`capture`,e,n)&&b(e,n)){let t=d[e];t.delete(n),t.size===0&&(window.removeEventListener(e,h),d[e]=void 0)}s.has(n)&&s.delete(n),s.size===0&&o.delete(t),o.size===0&&(window.removeEventListener(e,m,a===`capture`),u[a][e]=void 0)}return{on:x,off:S}}var{on:z,off:B}=R(),ae=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function oe(){return ae}function se(t){let n={isDeactivated:!1},r=!1;return f(()=>{if(n.isDeactivated=!1,!r){r=!0;return}t()}),e(()=>{n.isDeactivated=!0,r||=!0}),n}function V(e,t){console.error(`[vueuc/${e}]: ${t}`)}var H=[],ce=function(){return H.some(function(e){return e.activeTargets.length>0})},le=function(){return H.some(function(e){return e.skippedTargets.length>0})},ue=`ResizeObserver loop completed with undelivered notifications.`,de=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:ue}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=ue),window.dispatchEvent(e)},U;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(U||={});var W=function(e){return Object.freeze(e)},fe=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,W(this)}return e}(),pe=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,W(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),G=function(e){return e instanceof SVGElement&&`getBBox`in e},me=function(e){if(G(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},K=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},he=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},q=typeof window<`u`?window:{},J=new WeakMap,ge=/auto|scroll/,Y=/^tb|vertical/,_e=/msie|trident/i.test(q.navigator&&q.navigator.userAgent),X=function(e){return parseFloat(e||`0`)},Z=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new fe((n?t:e)||0,(n?e:t)||0)},ve=W({devicePixelContentBoxSize:Z(),borderBoxSize:Z(),contentBoxSize:Z(),contentRect:new pe(0,0,0,0)}),ye=function(e,t){if(t===void 0&&(t=!1),J.has(e)&&!t)return J.get(e);if(me(e))return J.set(e,ve),ve;var n=getComputedStyle(e),r=G(e)&&e.ownerSVGElement&&e.getBBox(),i=!_e&&n.boxSizing===`border-box`,a=Y.test(n.writingMode||``),o=!r&&ge.test(n.overflowY||``),s=!r&&ge.test(n.overflowX||``),c=r?0:X(n.paddingTop),l=r?0:X(n.paddingRight),u=r?0:X(n.paddingBottom),d=r?0:X(n.paddingLeft),f=r?0:X(n.borderTopWidth),p=r?0:X(n.borderRightWidth),m=r?0:X(n.borderBottomWidth),h=r?0:X(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:X(n.width)-S-x,T=r?r.height:X(n.height)-C-b,E=w+g+x+v,D=T+_+b+y,O=W({devicePixelContentBoxSize:Z(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:Z(E,D,a),contentBoxSize:Z(w,T,a),contentRect:new pe(d,c,w,T)});return J.set(e,O),O},be=function(e,t,n){var r=ye(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case U.DEVICE_PIXEL_CONTENT_BOX:return o;case U.BORDER_BOX:return i;default:return a}},xe=function(){function e(e){var t=ye(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=W([t.borderBoxSize]),this.contentBoxSize=W([t.contentBoxSize]),this.devicePixelContentBoxSize=W([t.devicePixelContentBoxSize])}return e}(),Se=function(e){if(me(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Ce=function(){var e=1/0,t=[];H.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new xe(t.target),i=Se(t.target);r.push(n),t.lastReportedSize=be(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},Te=function(){var e=0;for(we(e);ce();)e=Ce(),we(e);return le()&&de(),e>0},Q,Ee=[],De=function(){return Ee.splice(0).forEach(function(e){return e()})},Oe=function(e){if(!Q){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return De()}).observe(n,{characterData:!0}),Q=function(){n.textContent=`${t?t--:t++}`}}Ee.push(e),Q()},ke=function(e){Oe(function(){requestAnimationFrame(e)})},$=0,Ae=function(){return!!$},je=250,Me={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ne=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],Pe=function(e){return e===void 0&&(e=0),Date.now()+e},Fe=!1,Ie=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=je),!Fe){Fe=!0;var n=Pe(e);ke(function(){var r=!1;try{r=Te()}finally{if(Fe=!1,e=n-Pe(),!Ae())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Me)};document.body?t():q.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ne.forEach(function(t){return q.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Ne.forEach(function(t){return q.removeEventListener(t,e.listener,!0)}),!0)},e}()),Le=function(e){!$&&e>0&&Ie.start(),$+=e,!$&&Ie.stop()},Re=function(e){return!G(e)&&!he(e)&&getComputedStyle(e).display===`inline`},ze=function(){function e(e,t){this.target=e,this.observedBox=t||U.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=be(this.target,this.observedBox,!0);return Re(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Be=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),Ve=new WeakMap,He=function(e,t){for(var n=0;n=0&&(i&&H.splice(H.indexOf(n),1),n.observationTargets.splice(r,1),Le(-1))},e.disconnect=function(e){var t=this,n=Ve.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),We=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);Ue.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!K(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);Ue.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!K(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);Ue.unobserve(this,e)},e.prototype.disconnect=function(){Ue.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Ge=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||We)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(let t of e){let e=this.elHandlersMap.get(t.target);e!==void 0&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},Ke=u({name:`ResizeObserver`,props:{onResize:Function},setup(e){let t=!1,r=n().proxy;function i(t){let{onResize:n}=e;n!==void 0&&n(t)}a(()=>{let e=r.$el;if(e===void 0){V(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){V(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Ge.registerHandler(e.nextElementSibling,i),t=!0)}),o(()=>{t&&Ge.unregisterHandler(r.$el.nextElementSibling)})},render(){return s(this.$slots,`default`)}});function qe(e){let{left:t,right:n,top:r,bottom:i}=E(e);return`${r} ${t} ${i} ${n}`}function Je(e){return Object.keys(e)}var Ye=u({render(){var e;return(e=this.$slots).default?.call(e)}}),Xe=g(`scrollbar`,` overflow: hidden; position: relative; z-index: auto; diff --git a/dist/assets/CatalogView-1j4eOUoP.js b/dist/assets/CatalogView-Ym_LLlzp.js similarity index 85% rename from dist/assets/CatalogView-1j4eOUoP.js rename to dist/assets/CatalogView-Ym_LLlzp.js index daa6d4a..f54e253 100644 --- a/dist/assets/CatalogView-1j4eOUoP.js +++ b/dist/assets/CatalogView-Ym_LLlzp.js @@ -1 +1 @@ -import{A as e,At as t,C as n,E as r,J as i,K as a,T as o,_ as s,ct as c,d as l,j as u,jt as d,k as f,nt as p,pt as m,w as h}from"./auth-DetOXv90.js";import{t as g}from"./Tag-BqKZJJ-a.js";import{t as _}from"./Rate-B5toYPlv.js";import{r as v,t as y}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as b}from"./HeaderMenu-BV7MwsiN.js";var x={class:`center-block-custom`},S={class:`width1200 display-table catalog-grid`},C=[`onClick`],w={class:`scenario-content-block`},T={class:`scenario-title`},E={class:`scenario-description`},D={class:`scenario-rating`},O={key:1},k={key:2},A={class:`scenario-label`},j=y(u({__name:`CatalogPage`,setup(u){let y=v(),j=c([]),M=l();async function N(){j.value=[];let e=await y.GetScenariosCatalog({});j.value=e.scenarios}async function P(e){M.push(`/scenarios/`+e)}return N(),(c,l)=>(a(),r(s,null,[n(`div`,x,[n(`div`,S,[(a(!0),r(s,null,i(j.value,i=>(a(),r(`div`,{class:`scenario-block`,onClick:e=>P(i.id),key:i.id},[n(`div`,{class:`scenario-image-block scenario-image`,style:t({backgroundImage:`url(${i.image})`})},null,4),n(`div`,w,[n(`p`,T,d(i.name),1),n(`p`,E,d(i.description),1),n(`div`,D,[i.reviewsCount?(a(),h(m(_),{key:0,value:i.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):o(``,!0),i.reviewsCount?(a(),r(`span`,O,d(i.averageRating?.toFixed(1))+` · `+d(i.reviewsCount),1)):(a(),r(`span`,k,`Пока нет оценок`))]),n(`p`,A,[e(m(g),{bordered:!1,type:`success`,class:`status-block`},{default:p(()=>[f(`Автор: `+d(i.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),e(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-783d0b23`]]),M=u({__name:`CatalogView`,setup(e){return(e,t)=>(a(),h(j))}});export{M as default}; \ No newline at end of file +import{A as e,At as t,C as n,E as r,J as i,K as a,T as o,_ as s,ct as c,d as l,j as u,jt as d,k as f,nt as p,pt as m,w as h}from"./auth-CzuN8bsR.js";import{t as g}from"./Tag-DfP_x904.js";import{t as _}from"./Rate-BuNWBBdn.js";import{r as v,t as y}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as b}from"./HeaderMenu-Qspj3Vlt.js";var x={class:`center-block-custom`},S={class:`width1200 display-table catalog-grid`},C=[`onClick`],w={class:`scenario-content-block`},T={class:`scenario-title`},E={class:`scenario-description`},D={class:`scenario-rating`},O={key:1},k={key:2},A={class:`scenario-label`},j=y(u({__name:`CatalogPage`,setup(u){let y=v(),j=c([]),M=l();async function N(){j.value=[];let e=await y.GetScenariosCatalog({});j.value=e.scenarios}async function P(e){M.push(`/scenarios/`+e)}return N(),(c,l)=>(a(),r(s,null,[n(`div`,x,[n(`div`,S,[(a(!0),r(s,null,i(j.value,i=>(a(),r(`div`,{class:`scenario-block`,onClick:e=>P(i.id),key:i.id},[n(`div`,{class:`scenario-image-block scenario-image`,style:t({backgroundImage:`url(${i.image})`})},null,4),n(`div`,w,[n(`p`,T,d(i.name),1),n(`p`,E,d(i.description),1),n(`div`,D,[i.reviewsCount?(a(),h(m(_),{key:0,value:i.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):o(``,!0),i.reviewsCount?(a(),r(`span`,O,d(i.averageRating?.toFixed(1))+` · `+d(i.reviewsCount),1)):(a(),r(`span`,k,`Пока нет оценок`))]),n(`p`,A,[e(m(g),{bordered:!1,type:`success`,class:`status-block`},{default:p(()=>[f(`Автор: `+d(i.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),e(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-783d0b23`]]),M=u({__name:`CatalogView`,setup(e){return(e,t)=>(a(),h(j))}});export{M as default}; \ No newline at end of file diff --git a/dist/assets/ConsentView-BI8S4rrx.js b/dist/assets/ConsentView-BI8S4rrx.js new file mode 100644 index 0000000..415db47 --- /dev/null +++ b/dist/assets/ConsentView-BI8S4rrx.js @@ -0,0 +1 @@ +import{A as e,E as t,K as n,_ as r,j as i}from"./auth-CzuN8bsR.js";import{t as a}from"./DocsPage-4nGaYJI1.js";import{t as o}from"./HeaderMenu-Qspj3Vlt.js";var s=i({__name:`ConsentView`,setup(i){return(i,s)=>(n(),t(r,null,[e(a,{kind:`consent`}),e(o)],64))}});export{s as default}; \ No newline at end of file diff --git a/dist/assets/ConsentView-BU2_6AMl.js b/dist/assets/ConsentView-BU2_6AMl.js deleted file mode 100644 index b74249b..0000000 --- a/dist/assets/ConsentView-BU2_6AMl.js +++ /dev/null @@ -1 +0,0 @@ -import{A as e,E as t,K as n,_ as r,j as i}from"./auth-DetOXv90.js";import{t as a}from"./DocsPage-DzX4rZ9-.js";import{t as o}from"./HeaderMenu-BV7MwsiN.js";var s=i({__name:`ConsentView`,setup(i){return(i,s)=>(n(),t(r,null,[e(a,{kind:`consent`}),e(o)],64))}});export{s as default}; \ No newline at end of file diff --git a/dist/assets/DocsPage-DzX4rZ9-.js b/dist/assets/DocsPage-4nGaYJI1.js similarity index 91% rename from dist/assets/DocsPage-DzX4rZ9-.js rename to dist/assets/DocsPage-4nGaYJI1.js index ecb79d2..f9989d4 100644 --- a/dist/assets/DocsPage-DzX4rZ9-.js +++ b/dist/assets/DocsPage-4nGaYJI1.js @@ -1,4 +1,4 @@ -import{A as e,C as t,E as n,K as r,P as i,S as a,U as o,ct as s,j as c,jt as l,k as u,nt as d,o as f,pt as p,tt as m,w as h}from"./auth-DetOXv90.js";import{G as g,K as _,M as v,N as y,Y as b,Z as x,r as S}from"./light-BN35I8ot.js";import{l as C}from"./resolve-slot-DXnJRg0o.js";import{t as w}from"./use-compitable-Ct-u1IyK.js";import{t as T}from"./fade-in.cssr-mvZ1VOJ5.js";import{t as E}from"./Alert-BbFVk-Xc.js";import{M as D,Z as O,j as k,o as A}from"./index-UYw_T9_p.js";import{r as j,t as M}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as N}from"./HeaderText-DhMm0KRw.js";var P=g([g(`@keyframes spin-rotate`,` +import{A as e,C as t,E as n,K as r,P as i,S as a,U as o,ct as s,j as c,jt as l,k as u,nt as d,o as f,pt as p,tt as m,w as h}from"./auth-CzuN8bsR.js";import{G as g,K as _,M as v,N as y,Y as b,Z as x,r as S}from"./light-Dg5iONHF.js";import{l as C}from"./resolve-slot-Bgp_Mn8k.js";import{t as w}from"./use-compitable-boC6cFiE.js";import{t as T}from"./fade-in.cssr-CoPRsCos.js";import{t as E}from"./Alert-DZMHsQvh.js";import{M as D,Z as O,j as k,o as A}from"./index-4mSiwzFS.js";import{r as j,t as M}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as N}from"./HeaderText--_Iy26DF.js";var P=g([g(`@keyframes spin-rotate`,` from { transform: rotate(0); } diff --git a/dist/assets/Flex-SLIxZFiS.js b/dist/assets/Flex-ISd7TnC9.js similarity index 77% rename from dist/assets/Flex-SLIxZFiS.js rename to dist/assets/Flex-ISd7TnC9.js index 362cb2b..d64cb0b 100644 --- a/dist/assets/Flex-SLIxZFiS.js +++ b/dist/assets/Flex-ISd7TnC9.js @@ -1 +1 @@ -import{P as e,S as t,j as n}from"./auth-DetOXv90.js";import{N as r,Z as i,o as a,r as o}from"./light-BN35I8ot.js";import{o as s,s as c}from"./resolve-slot-DXnJRg0o.js";import{a as l}from"./Button-SFBLnAwv.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{l as d}from"./index-UYw_T9_p.js";function f(){return d}var p={name:`Flex`,self:f},m=n({name:`Flex`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:n,mergedRtlRef:l}=r(e),u=o(`Flex`,`-flex`,void 0,p,e,n);return{rtlEnabled:a(`Flex`,l,n),mergedClsPrefix:n,margin:t(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[i(`gap`,t)]:n}}=u.value,{row:r,col:a}=c(n);return{horizontal:s(a),vertical:s(r)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,justify:a,margin:o,wrap:s,mergedClsPrefix:c,rtlEnabled:d}=this,f=l(u(this),!1);return f.length?e(`div`,{role:`none`,class:[`${c}-flex`,d&&`${c}-flex--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:a,flexWrap:!s||t?`nowrap`:`wrap`,alignItems:r,gap:`${o.vertical}px ${o.horizontal}px`}},f):null}});export{m as t}; \ No newline at end of file +import{P as e,S as t,j as n}from"./auth-CzuN8bsR.js";import{N as r,Z as i,o as a,r as o}from"./light-Dg5iONHF.js";import{o as s,s as c}from"./resolve-slot-Bgp_Mn8k.js";import{a as l}from"./Button-_KVJEFbE.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{l as d}from"./index-4mSiwzFS.js";function f(){return d}var p={name:`Flex`,self:f},m=n({name:`Flex`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:n,mergedRtlRef:l}=r(e),u=o(`Flex`,`-flex`,void 0,p,e,n);return{rtlEnabled:a(`Flex`,l,n),mergedClsPrefix:n,margin:t(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[i(`gap`,t)]:n}}=u.value,{row:r,col:a}=c(n);return{horizontal:s(a),vertical:s(r)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,justify:a,margin:o,wrap:s,mergedClsPrefix:c,rtlEnabled:d}=this,f=l(u(this),!1);return f.length?e(`div`,{role:`none`,class:[`${c}-flex`,d&&`${c}-flex--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:a,flexWrap:!s||t?`nowrap`:`wrap`,alignItems:r,gap:`${o.vertical}px ${o.horizontal}px`}},f):null}});export{m as t}; \ No newline at end of file diff --git a/dist/assets/Follower-BqBATTTc.js b/dist/assets/Follower-BeUAmPJ4.js similarity index 97% rename from dist/assets/Follower-BqBATTTc.js rename to dist/assets/Follower-BeUAmPJ4.js index c76fc17..0bba38e 100644 --- a/dist/assets/Follower-BqBATTTc.js +++ b/dist/assets/Follower-BeUAmPJ4.js @@ -1 +1 @@ -import{F as e,M as t,P as n,R as r,U as i,V as a,ct as o,dt as s,et as c,j as l,q as u,rt as d}from"./auth-DetOXv90.js";import{R as f,et as p,z as m}from"./light-BN35I8ot.js";import{d as h,u as g}from"./Card-BFXpokQN.js";import{_,c as v,d as y,f as b,l as x,m as S,p as C,y as w}from"./Suffix-CutOgybq.js";import{J as T,Y as E}from"./index-UYw_T9_p.js";var D=[],O=new WeakMap;function k(){D.forEach(e=>e(...O.get(e))),D=[]}function A(e,...t){O.set(e,t),!D.includes(e)&&D.push(e)===1&&requestAnimationFrame(k)}var j=w?document?.fonts?.ready:void 0,M=!1;j===void 0?M=!0:j.then(()=>{M=!0});function N(e){if(M)return;let t=!1;i(()=>{M||j?.then(()=>{t||e()})}),a(()=>{t=!0})}var P=m(`n-internal-select-menu`),F=m(`n-internal-select-menu-body`),I=`__disabled__`;function L(t){let n=e(S,null),r=e(_,null),s=e(C,null),c=e(F,null),l=o();if(typeof document<`u`){l.value=document.fullscreenElement;let e=()=>{l.value=document.fullscreenElement};i(()=>{h(`fullscreenchange`,document,e)}),a(()=>{g(`fullscreenchange`,document,e)})}return E(()=>{let{to:e}=t;return e===void 0?n?.value?n.value.$el??n.value:r?.value?r.value:s?.value?s.value:c?.value?c.value:e??(l.value||`body`):e===!1?I:e===!0?l.value||`body`:e})}L.tdkey=I,L.propTo={type:[String,Object,Boolean],default:void 0};var R=null;function z(){if(R===null&&(R=document.getElementById(`v-binder-view-measurer`),R===null)){R=document.createElement(`div`),R.id=`v-binder-view-measurer`;let{style:e}=R;e.position=`fixed`,e.left=`0`,e.right=`0`,e.top=`0`,e.bottom=`0`,e.pointerEvents=`none`,e.visibility=`hidden`,document.body.appendChild(R)}return R.getBoundingClientRect()}function B(e,t){let n=z();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function V(e){let t=e.getBoundingClientRect(),n=z();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function H(e){return e.nodeType===9?null:e.parentNode}function U(e){if(e===null)return null;let t=H(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){let{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return U(t)}var W=l({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(n){u(`VBinder`,t()?.proxy);let r=e(`VBinder`,null),i=o(null),s=e=>{i.value=e,r&&n.syncTargetWithParent&&r.setTargetRef(e)},c=[],l=()=>{let e=i.value;for(;e=U(e),e!==null;)c.push(e);for(let e of c)h(`scroll`,e,_,!0)},d=()=>{for(let e of c)g(`scroll`,e,_,!0);c=[]},f=new Set,p=e=>{f.size===0&&l(),f.has(e)||f.add(e)},m=e=>{f.has(e)&&f.delete(e),f.size===0&&d()},_=()=>{A(v)},v=()=>{f.forEach(e=>e())},y=new Set,b=e=>{y.size===0&&h(`resize`,window,S),y.has(e)||y.add(e)},x=e=>{y.has(e)&&y.delete(e),y.size===0&&g(`resize`,window,S)},S=()=>{y.forEach(e=>e())};return a(()=>{g(`resize`,window,S),d()}),{targetRef:i,setTargetRef:s,addScrollListener:p,removeScrollListener:m,addResizeListener:b,removeResizeListener:x}},render(){return b(`binder`,this.$slots)}}),G=l({name:`Target`,setup(){let{setTargetRef:t,syncTarget:n}=e(`VBinder`);return{syncTarget:n,setTargetDirective:{mounted:t,updated:t}}},render(){let{syncTarget:e,setTargetDirective:t}=this;return e?d(y(`follower`,this.$slots),[[t]]):y(`follower`,this.$slots)}}),{c:K}=p(),q=`vueuc-style`,J={top:`bottom`,bottom:`top`,left:`right`,right:`left`},Y={start:`end`,center:`center`,end:`start`},X={top:`height`,bottom:`height`,left:`width`,right:`width`},Z={"bottom-start":`top left`,bottom:`top center`,"bottom-end":`top right`,"top-start":`bottom left`,top:`bottom center`,"top-end":`bottom right`,"right-start":`top left`,right:`center left`,"right-end":`bottom left`,"left-start":`top right`,left:`center right`,"left-end":`bottom right`},ee={"bottom-start":`bottom left`,bottom:`bottom center`,"bottom-end":`bottom right`,"top-start":`top left`,top:`top center`,"top-end":`top right`,"right-start":`top right`,right:`center right`,"right-end":`bottom right`,"left-start":`top left`,left:`center left`,"left-end":`bottom left`},te={"bottom-start":`right`,"bottom-end":`left`,"top-start":`right`,"top-end":`left`,"right-start":`bottom`,"right-end":`top`,"left-start":`bottom`,"left-end":`top`},Q={top:!0,bottom:!1,left:!0,right:!1},$={top:`end`,bottom:`start`,left:`end`,right:`start`};function ne(e,t,n,r,i,a){if(!i||a)return{placement:e,top:0,left:0};let[o,s]=e.split(`-`),c=s??`center`,l={top:0,left:0},u=(e,i,a)=>{let o=0,s=0,c=n[e]-t[i]-t[e];return c>0&&r&&(a?s=Q[i]?c:-c:o=Q[i]?c:-c),{left:o,top:s}},d=o===`left`||o===`right`;if(c!==`center`){let r=te[e],i=J[r],a=X[r];if(n[a]>t[a]){if(t[r]+t[a]t[i]&&(c=Y[s])}else{let e=o===`bottom`||o===`top`?`left`:`top`,r=J[e],i=X[e],a=(n[i]-t[i])/2;(t[e]t[r]?(c=$[e],l=u(i,e,d)):(c=$[r],l=u(i,r,d)))}let f=o;return t[o] *`,{pointerEvents:`all`})])]),oe=l({name:`Follower`,inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom`},syncTrigger:{type:Array,default:[`resize`,`scroll`]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(t){let n=e(`VBinder`),l=E(()=>t.enabled===void 0?t.show:t.enabled),u=o(null),d=o(null),p=()=>{let{syncTrigger:e}=t;e.includes(`scroll`)&&n.addScrollListener(g),e.includes(`resize`)&&n.addResizeListener(g)},m=()=>{n.removeScrollListener(g),n.removeResizeListener(g)};i(()=>{l.value&&(g(),p())});let h=f();ae.mount({id:`vueuc/binder`,head:!0,anchorMetaName:q,ssr:h}),a(()=>{m()}),N(()=>{l.value&&g()});let g=()=>{if(!l.value)return;let e=u.value;if(e===null)return;let r=n.targetRef,{x:i,y:a,overlap:o}=t,s=i!==void 0&&a!==void 0?B(i,a):V(r);e.style.setProperty(`--v-target-width`,`${Math.round(s.width)}px`),e.style.setProperty(`--v-target-height`,`${Math.round(s.height)}px`);let{width:c,minWidth:f,placement:p,internalShift:m,flip:h}=t;e.setAttribute(`v-placement`,p),o?e.setAttribute(`v-overlap`,``):e.removeAttribute(`v-overlap`);let{style:g}=e;c===`target`?g.width=`${s.width}px`:c===void 0?g.width=``:g.width=c,f===`target`?g.minWidth=`${s.width}px`:f===void 0?g.minWidth=``:g.minWidth=f;let _=V(e),v=V(d.value),{left:y,top:b,placement:x}=ne(p,s,_,m,h,o),S=re(x,o),{left:C,top:w,transform:T}=ie(x,v,s,b,y,o);e.setAttribute(`v-placement`,x),e.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),e.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),e.style.transform=`translateX(${C}) translateY(${w}) ${T}`,e.style.setProperty(`--v-transform-origin`,S),e.style.transformOrigin=S};c(l,e=>{e?(p(),_()):m()});let _=()=>{r().then(g).catch(e=>console.error(e))};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(e=>{c(s(t,e),g)}),[`teleportDisabled`].forEach(e=>{c(s(t,e),_)}),c(s(t,`syncTrigger`),e=>{e.includes(`resize`)?n.addResizeListener(g):n.removeResizeListener(g),e.includes(`scroll`)?n.addScrollListener(g):n.removeScrollListener(g)});let v=T();return{VBinder:n,mergedEnabled:l,offsetContainerRef:d,followerRef:u,mergedTo:E(()=>{let{to:e}=t;if(e!==void 0)return e;v.value}),syncPosition:g}},render(){return n(v,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e;let t=n(`div`,{class:[`v-binder-follower-container`,this.containerClass],ref:`offsetContainerRef`},[n(`div`,{class:`v-binder-follower-content`,ref:`followerRef`},(e=this.$slots).default?.call(e))]);return this.zindexable?d(t,[[x,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}});export{W as a,P as c,G as i,N as l,K as n,L as o,q as r,F as s,oe as t,A as u}; \ No newline at end of file +import{F as e,M as t,P as n,R as r,U as i,V as a,ct as o,dt as s,et as c,j as l,q as u,rt as d}from"./auth-CzuN8bsR.js";import{R as f,et as p,z as m}from"./light-Dg5iONHF.js";import{d as h,u as g}from"./Card-jY6IqKWx.js";import{_,c as v,d as y,f as b,l as x,m as S,p as C,y as w}from"./Suffix-PHRsdJdH.js";import{J as T,Y as E}from"./index-4mSiwzFS.js";var D=[],O=new WeakMap;function k(){D.forEach(e=>e(...O.get(e))),D=[]}function A(e,...t){O.set(e,t),!D.includes(e)&&D.push(e)===1&&requestAnimationFrame(k)}var j=w?document?.fonts?.ready:void 0,M=!1;j===void 0?M=!0:j.then(()=>{M=!0});function N(e){if(M)return;let t=!1;i(()=>{M||j?.then(()=>{t||e()})}),a(()=>{t=!0})}var P=m(`n-internal-select-menu`),F=m(`n-internal-select-menu-body`),I=`__disabled__`;function L(t){let n=e(S,null),r=e(_,null),s=e(C,null),c=e(F,null),l=o();if(typeof document<`u`){l.value=document.fullscreenElement;let e=()=>{l.value=document.fullscreenElement};i(()=>{h(`fullscreenchange`,document,e)}),a(()=>{g(`fullscreenchange`,document,e)})}return E(()=>{let{to:e}=t;return e===void 0?n?.value?n.value.$el??n.value:r?.value?r.value:s?.value?s.value:c?.value?c.value:e??(l.value||`body`):e===!1?I:e===!0?l.value||`body`:e})}L.tdkey=I,L.propTo={type:[String,Object,Boolean],default:void 0};var R=null;function z(){if(R===null&&(R=document.getElementById(`v-binder-view-measurer`),R===null)){R=document.createElement(`div`),R.id=`v-binder-view-measurer`;let{style:e}=R;e.position=`fixed`,e.left=`0`,e.right=`0`,e.top=`0`,e.bottom=`0`,e.pointerEvents=`none`,e.visibility=`hidden`,document.body.appendChild(R)}return R.getBoundingClientRect()}function B(e,t){let n=z();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function V(e){let t=e.getBoundingClientRect(),n=z();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function H(e){return e.nodeType===9?null:e.parentNode}function U(e){if(e===null)return null;let t=H(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){let{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return U(t)}var W=l({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(n){u(`VBinder`,t()?.proxy);let r=e(`VBinder`,null),i=o(null),s=e=>{i.value=e,r&&n.syncTargetWithParent&&r.setTargetRef(e)},c=[],l=()=>{let e=i.value;for(;e=U(e),e!==null;)c.push(e);for(let e of c)h(`scroll`,e,_,!0)},d=()=>{for(let e of c)g(`scroll`,e,_,!0);c=[]},f=new Set,p=e=>{f.size===0&&l(),f.has(e)||f.add(e)},m=e=>{f.has(e)&&f.delete(e),f.size===0&&d()},_=()=>{A(v)},v=()=>{f.forEach(e=>e())},y=new Set,b=e=>{y.size===0&&h(`resize`,window,S),y.has(e)||y.add(e)},x=e=>{y.has(e)&&y.delete(e),y.size===0&&g(`resize`,window,S)},S=()=>{y.forEach(e=>e())};return a(()=>{g(`resize`,window,S),d()}),{targetRef:i,setTargetRef:s,addScrollListener:p,removeScrollListener:m,addResizeListener:b,removeResizeListener:x}},render(){return b(`binder`,this.$slots)}}),G=l({name:`Target`,setup(){let{setTargetRef:t,syncTarget:n}=e(`VBinder`);return{syncTarget:n,setTargetDirective:{mounted:t,updated:t}}},render(){let{syncTarget:e,setTargetDirective:t}=this;return e?d(y(`follower`,this.$slots),[[t]]):y(`follower`,this.$slots)}}),{c:K}=p(),q=`vueuc-style`,J={top:`bottom`,bottom:`top`,left:`right`,right:`left`},Y={start:`end`,center:`center`,end:`start`},X={top:`height`,bottom:`height`,left:`width`,right:`width`},Z={"bottom-start":`top left`,bottom:`top center`,"bottom-end":`top right`,"top-start":`bottom left`,top:`bottom center`,"top-end":`bottom right`,"right-start":`top left`,right:`center left`,"right-end":`bottom left`,"left-start":`top right`,left:`center right`,"left-end":`bottom right`},ee={"bottom-start":`bottom left`,bottom:`bottom center`,"bottom-end":`bottom right`,"top-start":`top left`,top:`top center`,"top-end":`top right`,"right-start":`top right`,right:`center right`,"right-end":`bottom right`,"left-start":`top left`,left:`center left`,"left-end":`bottom left`},te={"bottom-start":`right`,"bottom-end":`left`,"top-start":`right`,"top-end":`left`,"right-start":`bottom`,"right-end":`top`,"left-start":`bottom`,"left-end":`top`},Q={top:!0,bottom:!1,left:!0,right:!1},$={top:`end`,bottom:`start`,left:`end`,right:`start`};function ne(e,t,n,r,i,a){if(!i||a)return{placement:e,top:0,left:0};let[o,s]=e.split(`-`),c=s??`center`,l={top:0,left:0},u=(e,i,a)=>{let o=0,s=0,c=n[e]-t[i]-t[e];return c>0&&r&&(a?s=Q[i]?c:-c:o=Q[i]?c:-c),{left:o,top:s}},d=o===`left`||o===`right`;if(c!==`center`){let r=te[e],i=J[r],a=X[r];if(n[a]>t[a]){if(t[r]+t[a]t[i]&&(c=Y[s])}else{let e=o===`bottom`||o===`top`?`left`:`top`,r=J[e],i=X[e],a=(n[i]-t[i])/2;(t[e]t[r]?(c=$[e],l=u(i,e,d)):(c=$[r],l=u(i,r,d)))}let f=o;return t[o] *`,{pointerEvents:`all`})])]),oe=l({name:`Follower`,inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom`},syncTrigger:{type:Array,default:[`resize`,`scroll`]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(t){let n=e(`VBinder`),l=E(()=>t.enabled===void 0?t.show:t.enabled),u=o(null),d=o(null),p=()=>{let{syncTrigger:e}=t;e.includes(`scroll`)&&n.addScrollListener(g),e.includes(`resize`)&&n.addResizeListener(g)},m=()=>{n.removeScrollListener(g),n.removeResizeListener(g)};i(()=>{l.value&&(g(),p())});let h=f();ae.mount({id:`vueuc/binder`,head:!0,anchorMetaName:q,ssr:h}),a(()=>{m()}),N(()=>{l.value&&g()});let g=()=>{if(!l.value)return;let e=u.value;if(e===null)return;let r=n.targetRef,{x:i,y:a,overlap:o}=t,s=i!==void 0&&a!==void 0?B(i,a):V(r);e.style.setProperty(`--v-target-width`,`${Math.round(s.width)}px`),e.style.setProperty(`--v-target-height`,`${Math.round(s.height)}px`);let{width:c,minWidth:f,placement:p,internalShift:m,flip:h}=t;e.setAttribute(`v-placement`,p),o?e.setAttribute(`v-overlap`,``):e.removeAttribute(`v-overlap`);let{style:g}=e;c===`target`?g.width=`${s.width}px`:c===void 0?g.width=``:g.width=c,f===`target`?g.minWidth=`${s.width}px`:f===void 0?g.minWidth=``:g.minWidth=f;let _=V(e),v=V(d.value),{left:y,top:b,placement:x}=ne(p,s,_,m,h,o),S=re(x,o),{left:C,top:w,transform:T}=ie(x,v,s,b,y,o);e.setAttribute(`v-placement`,x),e.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),e.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),e.style.transform=`translateX(${C}) translateY(${w}) ${T}`,e.style.setProperty(`--v-transform-origin`,S),e.style.transformOrigin=S};c(l,e=>{e?(p(),_()):m()});let _=()=>{r().then(g).catch(e=>console.error(e))};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(e=>{c(s(t,e),g)}),[`teleportDisabled`].forEach(e=>{c(s(t,e),_)}),c(s(t,`syncTrigger`),e=>{e.includes(`resize`)?n.addResizeListener(g):n.removeResizeListener(g),e.includes(`scroll`)?n.addScrollListener(g):n.removeScrollListener(g)});let v=T();return{VBinder:n,mergedEnabled:l,offsetContainerRef:d,followerRef:u,mergedTo:E(()=>{let{to:e}=t;if(e!==void 0)return e;v.value}),syncPosition:g}},render(){return n(v,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e;let t=n(`div`,{class:[`v-binder-follower-container`,this.containerClass],ref:`offsetContainerRef`},[n(`div`,{class:`v-binder-follower-content`,ref:`followerRef`},(e=this.$slots).default?.call(e))]);return this.zindexable?d(t,[[x,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}});export{W as a,P as c,G as i,N as l,K as n,L as o,q as r,F as s,oe as t,A as u}; \ No newline at end of file diff --git a/dist/assets/GameResultsView-BajtZZfi.js b/dist/assets/GameResultsView-B10RrKbL.js similarity index 94% rename from dist/assets/GameResultsView-BajtZZfi.js rename to dist/assets/GameResultsView-B10RrKbL.js index db62d9b..cb46635 100644 --- a/dist/assets/GameResultsView-BajtZZfi.js +++ b/dist/assets/GameResultsView-B10RrKbL.js @@ -1 +1 @@ -import{A as e,C as t,E as n,J as r,K as i,S as a,T as o,_ as s,ct as c,d as ee,j as l,jt as u,k as d,kt as f,nt as p,pt as m,t as te,u as ne,w as h}from"./auth-DetOXv90.js";import{t as g}from"./Button-SFBLnAwv.js";import{t as _}from"./use-message-bV_QZwc3.js";import{t as v}from"./Flex-SLIxZFiS.js";import{n as re,r as y,t as b}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as ie}from"./HeaderMenu-BV7MwsiN.js";var x={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},ae=l({name:`TrophyFilled`,render:function(e,r){return i(),n(`svg`,x,r[0]||=[t(`path`,{d:`M26 7h-2V6a2.002 2.002 0 0 0-2-2H10a2.002 2.002 0 0 0-2 2v1H6a2.002 2.002 0 0 0-2 2v3a4.005 4.005 0 0 0 4 4h.322A8.169 8.169 0 0 0 15 21.934V26h-5v2h12v-2h-5v-4.069A7.966 7.966 0 0 0 23.74 16H24a4.005 4.005 0 0 0 4-4V9a2.002 2.002 0 0 0-2-2zM8 14a2.002 2.002 0 0 1-2-2V9h2zm18-2a2.002 2.002 0 0 1-2 2V9h2z`,fill:`currentColor`},null,-1)])}}),oe={class:`center-block-custom`},S={class:`width1200`},C={class:`page-header`},w={key:0,class:`game-name`},T={key:0,class:`winner-block`},E={class:`winner-cup`,"aria-hidden":`true`},D={class:`winner-label`},O={class:`winner-names`},k={class:`winner-stats`},A={key:1,class:`info-block`},j={key:2,class:`info-block`},M={class:`info-title`},N={key:3,class:`info-block`},P={key:4,class:`table-scroll`},F={class:`results-table`},I=[`title`],L={class:`question-text`},R={class:`place-col`},z={key:1,class:`place-plain`},B={class:`team-col`},se={class:`number-col`},V={class:`number-col`},H=b(l({__name:`GameResultsPage`,setup(l){let h=y(),b=te(),x=_(),H=ne(),U=ee(),W=H.params.id,G=c(!1),K=c(!1),q=c(``),J=c(!1),Y=c(!1),X=c([]),Z=c([]),Q=c(``);async function ce(){G.value=!1,K.value=!1,Y.value=!1,J.value=!1;try{let e=await h.GetGameResults({gameId:Number(W)});if(e.error!=``){q.value=e.error||`Не удалось загрузить результаты`,x.error(q.value),K.value=!0;return}X.value=e.questions||[],Z.value=e.teams||[],G.value=!0}catch{b.isAuthenticated?(q.value=`Не удалось загрузить результаты`,x.error(q.value),J.value=!0,K.value=!0):Y.value=!0}}ce();async function le(){try{let e=await h.GetGame({id:Number(W)});Q.value=e.game?.name||``}catch{}}le();function ue(e,t){return(e.answers||[]).find(e=>e.questionCode==t)?.score??`—`}let $=a(()=>{let e=Z.value.map(e=>e.place).filter(e=>e!=null);if(e.length==0)return[];let t=Math.min(...e);return Z.value.filter(e=>e.place===t)}),de=a(()=>$.value.length>1?`Победители`:`Победитель`),fe=a(()=>{let e=$.value.map(e=>e.team?.name||``).filter(e=>e!=``);return e.length<=1?e[0]||``:e.length==2?e[0]+` и `+e[1]:e.slice(0,-1).join(`, `)+` и `+e[e.length-1]});function pe(){U.push(`/login`)}function me(){b.logout(),U.push(`/login`)}function he(){if(window.history.state?.back){U.back();return}U.push(`/games`)}return(a,c)=>(i(),n(s,null,[t(`div`,oe,[t(`div`,S,[t(`div`,C,[e(m(v),{justify:`space-between`,align:`center`},{default:p(()=>[t(`div`,null,[c[0]||=t(`div`,{class:`page-title`},`Итоги игры`,-1),Q.value?(i(),n(`div`,w,u(Q.value),1)):o(``,!0)]),e(m(g),{quaternary:``,onClick:he},{default:p(()=>[...c[1]||=[d(`Назад`,-1)]]),_:1})]),_:1})]),G.value&&$.value.length>0?(i(),n(`div`,T,[t(`span`,E,[e(m(re),{size:`56`},{default:p(()=>[e(m(ae))]),_:1})]),t(`div`,D,u(de.value),1),t(`div`,O,u(fe.value),1),t(`div`,k,` Баллы: `+u($.value[0]?.totalScore??0)+` · Поездки: `+u($.value[0]?.actionsCount??0),1),c[2]||=t(`div`,{class:`winner-congrats`},`Поздравляем!`,-1)])):o(``,!0),Y.value?(i(),n(`div`,A,[c[4]||=t(`p`,{class:`info-title`},`Для просмотра итогов игры нужно войти в систему`,-1),e(m(v),{justify:`end`},{default:p(()=>[e(m(g),{onClick:pe},{default:p(()=>[...c[3]||=[d(`Войти`,-1)]]),_:1})]),_:1})])):K.value?(i(),n(`div`,j,[t(`p`,M,u(q.value),1),J.value?(i(),n(s,{key:0},[c[6]||=t(`p`,{class:`info-subtitle`},`Сессия могла истечь — попробуйте войти заново`,-1),e(m(v),{justify:`end`},{default:p(()=>[e(m(g),{onClick:me},{default:p(()=>[...c[5]||=[d(`Войти заново`,-1)]]),_:1})]),_:1})],64)):o(``,!0)])):G.value&&Z.value.length==0?(i(),n(`div`,N,[...c[7]||=[t(`p`,{class:`info-title`},`Результаты пока не готовы`,-1)]])):G.value?(i(),n(`div`,P,[t(`table`,F,[t(`thead`,null,[t(`tr`,null,[c[8]||=t(`th`,{class:`place-col`},`Место`,-1),c[9]||=t(`th`,{class:`team-col`},`Команда`,-1),(i(!0),n(s,null,r(X.value,e=>(i(),n(`th`,{key:e.code,class:`question-col`,title:e.text},[t(`div`,L,u(e.text),1)],8,I))),128)),c[10]||=t(`th`,{class:`number-col`},`Сумма`,-1),c[11]||=t(`th`,{class:`number-col`},`Поездки`,-1)])]),t(`tbody`,null,[(i(!0),n(s,null,r(Z.value,e=>(i(),n(`tr`,{key:e.team?.id},[t(`td`,R,[e.place!=null&&e.place>=1&&e.place<=3?(i(),n(`span`,{key:0,class:f([`place-badge`,`place-`+e.place])},u(e.place),3)):(i(),n(`span`,z,u(e.place),1))]),t(`td`,B,u(e.team?.name),1),(i(!0),n(s,null,r(X.value,t=>(i(),n(`td`,{key:t.code,class:`number-col`},u(ue(e,t.code)),1))),128)),t(`td`,se,u(e.totalScore),1),t(`td`,V,u(e.actionsCount),1)]))),128))])])])):o(``,!0)])]),e(ie,{active:`games`})],64))}}),[[`__scopeId`,`data-v-e6db10a5`]]),U=l({__name:`GameResultsView`,setup(e){return(e,t)=>(i(),h(H))}});export{U as default}; \ No newline at end of file +import{A as e,C as t,E as n,J as r,K as i,S as a,T as o,_ as s,ct as c,d as ee,j as l,jt as u,k as d,kt as f,nt as p,pt as m,t as te,u as ne,w as h}from"./auth-CzuN8bsR.js";import{t as g}from"./Button-_KVJEFbE.js";import{t as _}from"./use-message-R8JEzJ8f.js";import{t as v}from"./Flex-ISd7TnC9.js";import{n as re,r as y,t as b}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as ie}from"./HeaderMenu-Qspj3Vlt.js";var x={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},ae=l({name:`TrophyFilled`,render:function(e,r){return i(),n(`svg`,x,r[0]||=[t(`path`,{d:`M26 7h-2V6a2.002 2.002 0 0 0-2-2H10a2.002 2.002 0 0 0-2 2v1H6a2.002 2.002 0 0 0-2 2v3a4.005 4.005 0 0 0 4 4h.322A8.169 8.169 0 0 0 15 21.934V26h-5v2h12v-2h-5v-4.069A7.966 7.966 0 0 0 23.74 16H24a4.005 4.005 0 0 0 4-4V9a2.002 2.002 0 0 0-2-2zM8 14a2.002 2.002 0 0 1-2-2V9h2zm18-2a2.002 2.002 0 0 1-2 2V9h2z`,fill:`currentColor`},null,-1)])}}),oe={class:`center-block-custom`},S={class:`width1200`},C={class:`page-header`},w={key:0,class:`game-name`},T={key:0,class:`winner-block`},E={class:`winner-cup`,"aria-hidden":`true`},D={class:`winner-label`},O={class:`winner-names`},k={class:`winner-stats`},A={key:1,class:`info-block`},j={key:2,class:`info-block`},M={class:`info-title`},N={key:3,class:`info-block`},P={key:4,class:`table-scroll`},F={class:`results-table`},I=[`title`],L={class:`question-text`},R={class:`place-col`},z={key:1,class:`place-plain`},B={class:`team-col`},se={class:`number-col`},V={class:`number-col`},H=b(l({__name:`GameResultsPage`,setup(l){let h=y(),b=te(),x=_(),H=ne(),U=ee(),W=H.params.id,G=c(!1),K=c(!1),q=c(``),J=c(!1),Y=c(!1),X=c([]),Z=c([]),Q=c(``);async function ce(){G.value=!1,K.value=!1,Y.value=!1,J.value=!1;try{let e=await h.GetGameResults({gameId:Number(W)});if(e.error!=``){q.value=e.error||`Не удалось загрузить результаты`,x.error(q.value),K.value=!0;return}X.value=e.questions||[],Z.value=e.teams||[],G.value=!0}catch{b.isAuthenticated?(q.value=`Не удалось загрузить результаты`,x.error(q.value),J.value=!0,K.value=!0):Y.value=!0}}ce();async function le(){try{let e=await h.GetGame({id:Number(W)});Q.value=e.game?.name||``}catch{}}le();function ue(e,t){return(e.answers||[]).find(e=>e.questionCode==t)?.score??`—`}let $=a(()=>{let e=Z.value.map(e=>e.place).filter(e=>e!=null);if(e.length==0)return[];let t=Math.min(...e);return Z.value.filter(e=>e.place===t)}),de=a(()=>$.value.length>1?`Победители`:`Победитель`),fe=a(()=>{let e=$.value.map(e=>e.team?.name||``).filter(e=>e!=``);return e.length<=1?e[0]||``:e.length==2?e[0]+` и `+e[1]:e.slice(0,-1).join(`, `)+` и `+e[e.length-1]});function pe(){U.push(`/login`)}function me(){b.logout(),U.push(`/login`)}function he(){if(window.history.state?.back){U.back();return}U.push(`/games`)}return(a,c)=>(i(),n(s,null,[t(`div`,oe,[t(`div`,S,[t(`div`,C,[e(m(v),{justify:`space-between`,align:`center`},{default:p(()=>[t(`div`,null,[c[0]||=t(`div`,{class:`page-title`},`Итоги игры`,-1),Q.value?(i(),n(`div`,w,u(Q.value),1)):o(``,!0)]),e(m(g),{quaternary:``,onClick:he},{default:p(()=>[...c[1]||=[d(`Назад`,-1)]]),_:1})]),_:1})]),G.value&&$.value.length>0?(i(),n(`div`,T,[t(`span`,E,[e(m(re),{size:`56`},{default:p(()=>[e(m(ae))]),_:1})]),t(`div`,D,u(de.value),1),t(`div`,O,u(fe.value),1),t(`div`,k,` Баллы: `+u($.value[0]?.totalScore??0)+` · Поездки: `+u($.value[0]?.actionsCount??0),1),c[2]||=t(`div`,{class:`winner-congrats`},`Поздравляем!`,-1)])):o(``,!0),Y.value?(i(),n(`div`,A,[c[4]||=t(`p`,{class:`info-title`},`Для просмотра итогов игры нужно войти в систему`,-1),e(m(v),{justify:`end`},{default:p(()=>[e(m(g),{onClick:pe},{default:p(()=>[...c[3]||=[d(`Войти`,-1)]]),_:1})]),_:1})])):K.value?(i(),n(`div`,j,[t(`p`,M,u(q.value),1),J.value?(i(),n(s,{key:0},[c[6]||=t(`p`,{class:`info-subtitle`},`Сессия могла истечь — попробуйте войти заново`,-1),e(m(v),{justify:`end`},{default:p(()=>[e(m(g),{onClick:me},{default:p(()=>[...c[5]||=[d(`Войти заново`,-1)]]),_:1})]),_:1})],64)):o(``,!0)])):G.value&&Z.value.length==0?(i(),n(`div`,N,[...c[7]||=[t(`p`,{class:`info-title`},`Результаты пока не готовы`,-1)]])):G.value?(i(),n(`div`,P,[t(`table`,F,[t(`thead`,null,[t(`tr`,null,[c[8]||=t(`th`,{class:`place-col`},`Место`,-1),c[9]||=t(`th`,{class:`team-col`},`Команда`,-1),(i(!0),n(s,null,r(X.value,e=>(i(),n(`th`,{key:e.code,class:`question-col`,title:e.text},[t(`div`,L,u(e.text),1)],8,I))),128)),c[10]||=t(`th`,{class:`number-col`},`Сумма`,-1),c[11]||=t(`th`,{class:`number-col`},`Поездки`,-1)])]),t(`tbody`,null,[(i(!0),n(s,null,r(Z.value,e=>(i(),n(`tr`,{key:e.team?.id},[t(`td`,R,[e.place!=null&&e.place>=1&&e.place<=3?(i(),n(`span`,{key:0,class:f([`place-badge`,`place-`+e.place])},u(e.place),3)):(i(),n(`span`,z,u(e.place),1))]),t(`td`,B,u(e.team?.name),1),(i(!0),n(s,null,r(X.value,t=>(i(),n(`td`,{key:t.code,class:`number-col`},u(ue(e,t.code)),1))),128)),t(`td`,se,u(e.totalScore),1),t(`td`,V,u(e.actionsCount),1)]))),128))])])])):o(``,!0)])]),e(ie,{active:`games`})],64))}}),[[`__scopeId`,`data-v-e6db10a5`]]),U=l({__name:`GameResultsView`,setup(e){return(e,t)=>(i(),h(H))}});export{U as default}; \ No newline at end of file diff --git a/dist/assets/GameView-BKwM_tBI.js b/dist/assets/GameView-BKwM_tBI.js deleted file mode 100644 index 37321ee..0000000 --- a/dist/assets/GameView-BKwM_tBI.js +++ /dev/null @@ -1,7 +0,0 @@ -import{A as e,At as t,C as n,E as r,J as i,K as a,P as o,R as s,S as c,T as l,_ as u,ct as d,d as ee,dt as te,et as f,i as ne,j as p,jt as m,k as h,kt as re,nt as g,pt as _,rt as ie,u as ae,w as v}from"./auth-DetOXv90.js";import{G as y,H as b,K as x,N as S,n as C,o as w,r as T,t as E}from"./light-BN35I8ot.js";import{d as D,t as O}from"./Card-BFXpokQN.js";import{a as k,r as oe}from"./resolve-slot-DXnJRg0o.js";import{i as se}from"./Suffix-CutOgybq.js";import{t as A}from"./Modal-Cc3YqyVW.js";import{t as ce}from"./use-merged-state-Dw19ICqg.js";import{n as j,t as M}from"./Button-SFBLnAwv.js";import{t as le}from"./Select-BQvr1qOg.js";import{n as N,r as P}from"./use-form-item-CT1L1ziV.js";import{t as ue}from"./Add-CeJ0I8t8.js";import{t as F}from"./Input-CM5axX8S.js";import{t as I}from"./Remove-CNpD-1y-.js";import{t as de}from"./Tag-BqKZJJ-a.js";import{t as fe}from"./use-message-bV_QZwc3.js";import{t as L}from"./Space-B98o1YSA.js";import{t as R}from"./Flex-SLIxZFiS.js";import{t as pe}from"./QrCode-DwxuAXRz.js";import{t as z}from"./text-DNaqMd7_.js";import{C as B,H as V,Y as H,et as me,nt as U,x as W}from"./index-UYw_T9_p.js";import{n as G,r as he,t as ge}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as _e}from"./HeaderMenu-BV7MwsiN.js";import{t as ve}from"./Settings-ClmW7dGA.js";import{t as ye}from"./binary_client-C_fP8dcD.js";import{t as be}from"./useSimplePolling-D6M7J1Ci.js";import{n as xe,r as Se}from"./application-CK_JoGAx.js";import{n as Ce,t as we}from"./datetime-BJNH0M1T.js";function K(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}var q=C({name:`InputNumber`,common:E,peers:{Button:W,Input:B},self:K}),J=y([x(`input-number-suffix`,` - display: inline-block; - margin-right: 10px; - `),x(`input-number-prefix`,` - display: inline-block; - margin-left: 10px; - `)]);function Y(e){return e==null||typeof e==`string`&&e.trim()===``?null:Number(e)}function X(e){return e.includes(`.`)&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e===`-`||e===`-0`}function Z(e){return e==null?!0:!Number.isNaN(e)}function Te(e,t){return typeof e==`number`?t===void 0?String(e):e.toFixed(t):``}function Ee(e){if(e===null)return null;if(typeof e==`number`)return e;{let t=Number(e);return Number.isNaN(t)?null:t}}var De=800,Oe=100,ke=p({name:`InputNumber`,props:Object.assign(Object.assign({},T.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:`right`},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),slots:Object,setup(e){let{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r,mergedComponentPropsRef:i}=S(e),a=T(`InputNumber`,`-input-number`,J,q,e,n),{localeRef:o}=se(`InputNumber`),l=N(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:i?.value?.InputNumber?.size||`medium`}}),{mergedSizeRef:u,mergedDisabledRef:ee,mergedStatusRef:ne}=l,p=d(null),m=d(null),h=d(null),re=d(e.defaultValue),g=ce(te(e,`value`),re),_=d(``),ie=e=>{let t=String(e).split(`.`)[1];return t?t.length:0},ae=t=>{let n=[e.min,e.max,e.step,t].map(e=>e===void 0?0:ie(e));return Math.max(...n)},v=H(()=>{let{placeholder:t}=e;return t===void 0?o.value.placeholder:t}),y=H(()=>{let t=Ee(e.step);return t===null||t===0?1:Math.abs(t)}),x=H(()=>{let t=Ee(e.min);return t===null?null:t}),C=H(()=>{let t=Ee(e.max);return t===null?null:t}),E=()=>{let{value:t}=g;if(Z(t)){let{format:n,precision:r}=e;n?_.value=n(t):t===null||r===void 0||ie(t)>r?_.value=Te(t,void 0):_.value=Te(t,r)}else _.value=String(t)};E();let O=t=>{let{value:n}=g;if(t===n){E();return}let{"onUpdate:value":r,onUpdateValue:i,onChange:a}=e,{nTriggerFormInput:o,nTriggerFormChange:s}=l;a&&P(a,t),i&&P(i,t),r&&P(r,t),re.value=t,o(),s()},k=({offset:t,doUpdateIfValid:n,fixPrecision:r,isInputing:i})=>{let{value:a}=_;if(i&&X(a))return!1;let o=(e.parse||Y)(a);if(o===null)return n&&O(null),null;if(Z(o)){let a=ie(o),{precision:s}=e;if(s!==void 0&&st){if(!n||i)return!1;c=t}if(r!==null&&ck({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),A=H(()=>{let{value:t}=g;if(e.validator&&t===null)return!1;let{value:n}=y;return k({offset:-n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),j=H(()=>{let{value:t}=g;if(e.validator&&t===null)return!1;let{value:n}=y;return k({offset:+n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function M(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=l;n&&P(n,t),r()}function le(t){if(t.target===p.value?.wrapperElRef)return;let n=k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(n!==!1){let e=p.value?.inputElRef;e&&(e.value=String(n||``)),g.value===n&&E()}else E();let{onBlur:r}=e,{nTriggerFormBlur:i}=l;r&&P(r,t),i(),s(()=>{E()})}function ue(t){let{onClear:n}=e;n&&P(n,t)}function F(){let{value:t}=j;if(!t){W();return}let{value:n}=g;if(n===null)e.validator||O(L());else{let{value:e}=y;k({offset:e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function I(){let{value:t}=A;if(!t){me();return}let{value:n}=g;if(n===null)e.validator||O(L());else{let{value:e}=y;k({offset:-e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}let de=M,fe=le;function L(){if(e.validator)return null;let{value:t}=x,{value:n}=C;return t===null?n===null?0:Math.min(0,n):Math.max(0,t)}function R(e){ue(e),O(null)}function pe(e){var t;h.value?.$el.contains(e.target)&&e.preventDefault(),m.value?.$el.contains(e.target)&&e.preventDefault(),(t=p.value)==null||t.activate()}let z=null,B=null,V=null;function me(){V&&=(window.clearTimeout(V),null),z&&=(window.clearInterval(z),null)}let U=null;function W(){U&&=(window.clearTimeout(U),null),B&&=(window.clearInterval(B),null)}function G(){me(),V=window.setTimeout(()=>{z=window.setInterval(()=>{I()},Oe)},De),D(`mouseup`,document,me,{once:!0})}function he(){W(),U=window.setTimeout(()=>{B=window.setInterval(()=>{F()},Oe)},De),D(`mouseup`,document,W,{once:!0})}let ge=()=>{B||F()},_e=()=>{z||I()};function ve(t){var n;if(t.key===`Enter`){if(t.target===p.value?.wrapperElRef)return;k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((n=p.value)==null||n.deactivate())}else if(t.key===`ArrowUp`){if(!j.value||e.keyboard.ArrowUp===!1)return;t.preventDefault(),k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&F()}else if(t.key===`ArrowDown`){if(!A.value||e.keyboard.ArrowDown===!1)return;t.preventDefault(),k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&I()}}function ye(t){_.value=t,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&k({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}f(g,()=>{E()});let be={focus:()=>p.value?.focus(),blur:()=>p.value?.blur(),select:()=>p.value?.select()},xe=w(`InputNumber`,r,n);return Object.assign(Object.assign({},be),{rtlEnabled:xe,inputInstRef:p,minusButtonInstRef:m,addButtonInstRef:h,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:re,mergedValue:g,mergedPlaceholder:v,displayedValueInvalid:oe,mergedSize:u,mergedDisabled:ee,displayedValue:_,addable:j,minusable:A,mergedStatus:ne,handleFocus:de,handleBlur:fe,handleClear:R,handleMouseDown:pe,handleAddClick:ge,handleMinusClick:_e,handleAddMousedown:he,handleMinusMousedown:G,handleKeyDown:ve,handleUpdateDisplayedValue:ye,mergedTheme:a,inputThemeOverrides:{paddingSmall:`0 8px 0 10px`,paddingMedium:`0 8px 0 12px`,paddingLarge:`0 8px 0 14px`},buttonThemeOverrides:c(()=>{let{self:{iconColorDisabled:e}}=a.value,[t,n,r,i]=b(e);return{textColorTextDisabled:`rgb(${t}, ${n}, ${r})`,opacityDisabled:`${i}`}})})},render(){let{mergedClsPrefix:e,$slots:t}=this,n=()=>o(j,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:`minusButtonInstRef`},{icon:()=>oe(t[`minus-icon`],()=>[o(V,{clsPrefix:e},{default:()=>o(I,null)})])}),r=()=>o(j,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:`addButtonInstRef`},{icon:()=>oe(t[`add-icon`],()=>[o(V,{clsPrefix:e},{default:()=>o(ue,null)})])});return o(`div`,{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},o(F,{ref:`inputInstRef`,autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?`line-through`:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>this.showButton&&this.buttonPlacement===`both`?[n(),k(t.prefix,t=>t?o(`span`,{class:`${e}-input-number-prefix`},t):null)]:t.prefix?.call(t),suffix:()=>this.showButton?[k(t.suffix,t=>t?o(`span`,{class:`${e}-input-number-suffix`},t):null),this.buttonPlacement===`right`?n():null,r()]:t.suffix?.call(t)}))}}),Ae={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},je=p({name:`Flag`,render:function(e,t){return a(),r(`svg`,Ae,t[0]||=[n(`path`,{d:`M6 30H4V2h24l-5.8 9l5.8 9H6zm0-12h18.33l-4.53-7l4.53-7H6z`,fill:`currentColor`},null,-1)])}}),Me={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Ne=p({name:`Pause`,render:function(e,t){return a(),r(`svg`,Me,t[0]||=[n(`path`,{d:`M12 8v16H8V8h4m0-2H8a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z`,fill:`currentColor`},null,-1),n(`path`,{d:`M24 8v16h-4V8h4m0-2h-4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z`,fill:`currentColor`},null,-1)])}}),Pe={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Fe=p({name:`Play`,render:function(e,t){return a(),r(`svg`,Pe,t[0]||=[n(`path`,{d:`M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28zM8 6.69V25.31L24.925 16z`,fill:`currentColor`},null,-1)])}}),Ie={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Le=p({name:`Reset`,render:function(e,t){return a(),r(`svg`,Ie,t[0]||=[n(`path`,{d:`M18 28A12 12 0 1 0 6 16v6.2l-3.6-3.6L1 20l6 6l6-6l-1.4-1.4L8 22.2V16a10 10 0 1 1 10 10z`,fill:`currentColor`},null,-1)])}}),Re={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},ze=p({name:`Trophy`,render:function(e,t){return a(),r(`svg`,Re,t[0]||=[n(`path`,{d:`M26 7h-2V6a2.002 2.002 0 0 0-2-2H10a2.002 2.002 0 0 0-2 2v1H6a2.002 2.002 0 0 0-2 2v3a4.005 4.005 0 0 0 4 4h.322A8.169 8.169 0 0 0 15 21.934V26h-5v2h12v-2h-5v-4.069A7.966 7.966 0 0 0 23.74 16H24a4.005 4.005 0 0 0 4-4V9a2.002 2.002 0 0 0-2-2zM8 14a2.002 2.002 0 0 1-2-2V9h2zm14 0a6 6 0 0 1-6.186 5.997A6.2 6.2 0 0 1 10 13.707V6h12zm4-2a2.002 2.002 0 0 1-2 2V9h2z`,fill:`currentColor`},null,-1)])}}),Be={class:`center-block-custom`},Ve={class:`width1200`},He={class:`settings-block`},Ue={key:0,class:`screens-block`},We={class:`screen-status`},Ge={key:0,class:`screen-error`},Ke={class:`map-block`},qe=[`onPointerdown`],Je=[`onPointerdown`],Ye={key:2},Xe=[`onClick`],Ze={class:`team-content-block`},Qe={class:`title-block`},$e={class:`team-name-block`},et={key:0},tt={key:1},nt={key:0},rt={key:0},it={key:1},at={key:2},ot={key:3},st={key:4},ct={key:0,class:`give-application-image-block`},lt=[`src`],ut=[`src`],dt=[`href`],ft={class:`qr-block`},pt={key:0,class:`answers-empty`},mt={class:`answers-question-title`},ht={class:`answers-question-answer`},gt={class:`correct-answer`},_t={class:`answers-team-name`},vt={class:`answers-team-answer`},yt=ge(p({__name:`GamePage`,setup(o){let s=he(),te=ye(),f=d(!1),p=ee(),y=ae().params.id,b=fe(),x=d(!1),S=d({name:``,description:``,format:`online`}),C=d(!1),w=d(!1),T=d(!1),E=d(!1),D=d(``),k=d(``),oe=d(``),se=d(!1),ce=d(``),j=d(``),N=d({id:void 0,name:void 0,description:void 0,startAt:void 0,status:void 0,format:void 0,scenario:void 0,teams:void 0}),P=[{label:`Ожидает ответа`,value:`pending`},{label:`Подтверждено`,value:`confirmed`},{label:`Отменено`,value:`cancelled`}],ue=c(()=>(N.value.teams||[]).filter(e=>e.participationStatus!==`cancelled`).length),I=c(()=>new Map((N.value.teams||[]).filter(e=>e.applications?.length).map(e=>[e.id,e]))),B=d([]),V=d([]),H=d(!1),W=d(100),ge=d(0),K=c(()=>{let e=B.value.map(e=>e.mode).filter(Boolean);if(!(!e.length||e.some(t=>t!==e[0])))return e[0]}),q=d(1),J=d({x:0,y:0}),Y,X;async function Z(e){let t=await s.GetGame({id:e});if(t.error!=``){b.error(t.error);return}N.value=t.game,N.value.teams=N.value.teams?.sort((e,t)=>{let n=0;(e.applications?.length||0)>0&&(n=1);let r=0;if((t.applications?.length||0)>0&&(r=1),n>r)return-1;if(na?1:iURL.revokeObjectURL(n),1e3)}catch(e){b.error(e instanceof Error?e.message:`Не удалось скачать QR команд`)}finally{f.value=!1}}}function Ot(){p.push(`/games/`+y+`/results`)}function kt(){S.value={name:N.value.name||``,description:N.value.description||``,format:N.value.format||`online`},x.value=!0}function At(){x.value=!1}async function jt(){let e=await s.UpdateGame({id:N.value.id,name:S.value.name,description:S.value.description,format:S.value.format,startAt:N.value.startAt,scenarioId:N.value.scenario?.id});if(e.error!=``){b.error(e.error);return}await Z(N.value.id),x.value=!1}let Mt=d({id:0,name:``,status:``,password:``,actionsCount:0,applications:[],captainEmail:void 0,participantsCount:void 0,participationStatus:void 0,participationSource:void 0,participationEmailError:void 0,participationEmailSent:void 0}),Nt=d(``),Pt=d({id:0,name:``,status:``,password:``,actionsCount:0,applications:[],captainEmail:void 0,participantsCount:void 0,participationStatus:void 0,participationSource:void 0,participationEmailError:void 0,participationEmailSent:void 0}),$=d({name:``,image:``,file_type:``}),Ft=window.location.href;function It(e,t){Mt.value=e,$.value=t,C.value=!0}async function Lt(){let e=await s.AddTeam({gameId:N.value.id,name:D.value,captainEmail:k.value.trim()});if(e.error!=``){b.error(e.error);return}await Z(N.value.id),w.value=!1,k.value=``}async function Rt(){let e=await s.GiveTeamApplications({id:Mt.value.id,name:$.value.name});if(e.error!=``){b.error(e.error);return}await Z(N.value.id),C.value=!1}async function zt(e){Pt.value=e,T.value=!0}async function Bt(){let e=await s.DeleteTeam({id:Pt.value.id});if(e.error!=``){b.error(e.error);return}await Z(N.value.id),T.value=!1}async function Vt(){let e=await s.DeleteGame({id:N.value.id});if(e.error!=``){b.error(e.error);return}b.success(`Игра удалена`),p.push(`/games`)}function Ht(e,t){return ne()+`/team-story/`+e+`?password=`+t}async function Ut(e,t){ce.value=e,j.value=t,se.value=!0}be(()=>{Z(Number(y)),Te(),Ee()},2e3);async function Wt(){let e=await s.ResetGame({id:N.value.id});if(e.error!=``){b.error(e.error);return}await Z(N.value.id)}async function Gt(){let e=await s.StartGame({id:N.value.id});if(e.error!=``){b.error(e.error);return}await Z(N.value.id)}async function Kt(){let e=await s.PauseGame({id:N.value.id});if(e.error!=``){b.error(e.error);return}await Z(N.value.id)}async function qt(){let e=await s.PlayGame({id:N.value.id});if(e.error!=``){b.error(e.error);return}await Z(N.value.id)}async function Jt(){let e=await s.FinishGame({id:N.value.id});if(e.error!=``){b.error(e.error);return}await Z(N.value.id)}let Yt=d(!1),Xt=d([]),Zt=d([]),Qt=d({});function $t(e,t){return(e??``)+`:`+(t??``)}function en(e,t){return(e.answers||[]).find(e=>e.questionCode==t)?.answer||``}function tn(e,t){Qt.value[e]=t===null?void 0:t}async function nn(){let e=await s.GetGameAnswers({gameId:Number(y)});if(e.error!=``){b.error(e.error);return}Xt.value=e.questions||[],Zt.value=e.teams||[];let t={};for(let e of Zt.value)for(let n of e.answers||[])t[$t(e.team?.id,n.questionCode)]=n.score;Qt.value=t}async function rn(){Yt.value=!0,await nn()}async function an(){for(let e of Xt.value)for(let t of Zt.value){let n=Qt.value[$t(t.team?.id,e.code)],r=await s.SetTeamAnswerScore({id:t.team?.id,questionCode:e.code,score:n??void 0});if(r.error!=``){b.error(r.error);return}}b.success(`Баллы сохранены`),await nn()}function on(){let e=new Date;return new Date(e.getTime()-e.getTimezoneOffset()*6e4)}function sn(e,t){if(e==``)return`Игра ещё не началась`;let n=Ce(e),r=on();t!=``&&(r=Ce(t));let i=r.getTime()-n.getTime();if(i<0)return`Игра ещё не началась`;let a=Math.floor(i/1e3),o=Math.floor(a/60),s=Math.floor(o/60),c=Math.floor(s/24),l=Math.floor(c/30),u=Math.floor(c/365);return u>0?`${u}г ${c%365}д`:l>0?`${l}мес ${c%30}д`:c>0?`${c}д ${s%24}ч`:s>0?`${s}ч ${o%60}м`:o>0?`${o}м ${a%60}с`:`${a}с`}let cn=d(``);return be(()=>{cn.value=sn(N.value.startedAt||``,N.value.endedAt||``)},1e3),(o,s)=>(a(),r(u,null,[n(`div`,Be,[n(`div`,Ve,[n(`div`,He,[e(_(R),{justify:`space-between`},{default:g(()=>[e(_(L),null,{default:g(()=>[e(_(de),{bordered:!1,type:`info`},{default:g(()=>[h(` Участвуют команд: `+m(ue.value),1)]),_:1}),e(_(de),{type:`info`},{default:g(()=>[h(m(cn.value),1)]),_:1}),_(we)(N.value.startAt)?(a(),v(_(de),{key:0,type:`info`},{default:g(()=>[h(` Начало: `+m(_(we)(N.value.startAt)),1)]),_:1})):l(``,!0)]),_:1}),e(_(R),{justify:`end`},{default:g(()=>[e(_(M),{quaternary:``,onClick:s[0]||=e=>Ut(_(Ft),`Админка`)},{default:g(()=>[...s[57]||=[h(` QR `,-1)]]),_:1}),e(_(M),{quaternary:``,onClick:s[1]||=e=>rn()},{default:g(()=>[...s[58]||=[h(` Ответы команд `,-1)]]),_:1}),N.value.status==`finish`?(a(),v(_(M),{key:0,quaternary:``,onClick:s[2]||=e=>Ot()},{default:g(()=>[e(_(G),{class:`settings-icon`},{default:g(()=>[e(_(ze))]),_:1}),s[59]||=h(` Итоги `,-1)]),_:1})):l(``,!0),ue.value?(a(),v(_(M),{key:1,quaternary:``,loading:f.value,disabled:f.value,onClick:s[3]||=e=>Dt()},{default:g(()=>[...s[60]||=[h(` QR команд `,-1)]]),_:1},8,[`loading`,`disabled`])):l(``,!0),e(_(M),{quaternary:``,onClick:s[4]||=e=>kt()},{default:g(()=>[e(_(G),{class:`settings-icon`},{default:g(()=>[e(_(ve))]),_:1}),s[61]||=h(` Настройки `,-1)]),_:1}),(N.value.teams?.length||0)==0?(a(),v(_(M),{key:2,type:`error`,quaternary:``,onClick:s[5]||=e=>E.value=!0},{default:g(()=>[...s[62]||=[h(` Удалить игру `,-1)]]),_:1})):l(``,!0),e(_(L),null,{default:g(()=>[N.value.status==`draft`?l(``,!0):(a(),v(_(M),{key:0,type:`info`,dashed:``,onClick:s[6]||=e=>Wt()},{default:g(()=>[e(_(G),null,{default:g(()=>[e(_(Le))]),_:1})]),_:1})),N.value.status==`draft`?(a(),v(_(M),{key:1,type:`info`,dashed:``,onClick:s[7]||=e=>Gt()},{default:g(()=>[e(_(G),null,{default:g(()=>[e(_(Fe))]),_:1})]),_:1})):l(``,!0),N.value.status==`pause`?(a(),v(_(M),{key:2,type:`info`,dashed:``,onClick:s[8]||=e=>qt()},{default:g(()=>[e(_(G),null,{default:g(()=>[e(_(Fe))]),_:1})]),_:1})):l(``,!0),N.value.status==`run`?(a(),v(_(M),{key:3,type:`info`,dashed:``,onClick:s[9]||=e=>Kt()},{default:g(()=>[e(_(G),null,{default:g(()=>[e(_(Ne))]),_:1})]),_:1})):l(``,!0),N.value.status==`finish`?l(``,!0):(a(),v(_(M),{key:4,type:`info`,dashed:``,onClick:s[10]||=e=>Jt()},{default:g(()=>[e(_(G),null,{default:g(()=>[e(_(je))]),_:1})]),_:1}))]),_:1})]),_:1})]),_:1})]),B.value.length>0?(a(),r(`div`,Ue,[s[81]||=n(`p`,{class:`screens-title`},`Экраны`,-1),(a(!0),r(u,null,i(B.value,t=>(a(),r(`div`,{key:t.id,class:`screen-row`},[n(`div`,null,[n(`div`,null,`Экран `+m(t.id),1),n(`div`,We,m(t.status),1),t.error?(a(),r(`div`,Ge,m(t.error),1)):l(``,!0)]),e(_(R),{justify:`end`},{default:g(()=>[t.soundEnabled?(a(),v(_(de),{key:0,type:`success`},{default:g(()=>[...s[63]||=[h(`Со звуком`,-1)]]),_:1})):(a(),v(_(M),{key:1,size:`small`,onClick:e=>Ct(t)},{default:g(()=>[...s[64]||=[h(`Назначить звук`,-1)]]),_:1},8,[`onClick`])),e(_(M),{size:`small`,type:`error`,ghost:``,onClick:e=>wt(t)},{default:g(()=>[...s[65]||=[h(`Отвязать`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]))),128)),e(_(L),{class:`screen-mode-controls`},{default:g(()=>[e(_(M),{size:`small`,type:K.value===`SCREEN_MODE_COVER`?`primary`:`default`,onClick:s[11]||=e=>Tt(`SCREEN_MODE_COVER`)},{default:g(()=>[...s[66]||=[h(`Обложка`,-1)]]),_:1},8,[`type`]),e(_(M),{size:`small`,type:K.value===`SCREEN_MODE_INTRO`?`primary`:`default`,onClick:s[12]||=e=>Tt(`SCREEN_MODE_INTRO`)},{default:g(()=>[...s[67]||=[h(`Введение`,-1)]]),_:1},8,[`type`]),e(_(M),{size:`small`,type:K.value===`SCREEN_MODE_INTRO_DONE`?`primary`:`default`,onClick:s[13]||=e=>Tt(`SCREEN_MODE_INTRO_DONE`)},{default:g(()=>[...s[68]||=[h(`Успехов`,-1)]]),_:1},8,[`type`]),e(_(M),{size:`small`,type:K.value===`SCREEN_MODE_CONCLUSION`?`primary`:`default`,onClick:s[14]||=e=>Tt(`SCREEN_MODE_CONCLUSION`)},{default:g(()=>[...s[69]||=[h(`Закрывашка`,-1)]]),_:1},8,[`type`]),e(_(M),{size:`small`,type:K.value===`SCREEN_MODE_CONCLUSION_DONE`?`primary`:`default`,onClick:s[15]||=e=>Tt(`SCREEN_MODE_CONCLUSION_DONE`)},{default:g(()=>[...s[70]||=[h(`Спасибо за игру!`,-1)]]),_:1},8,[`type`]),N.value.status===`finish`?(a(),v(_(M),{key:0,size:`small`,type:K.value===`SCREEN_MODE_RESULTS`?`primary`:`default`,onClick:s[16]||=e=>Tt(`SCREEN_MODE_RESULTS`)},{default:g(()=>[...s[71]||=[h(`Результаты`,-1)]]),_:1},8,[`type`])):l(``,!0)]),_:1}),e(_(L),{class:`screen-mode-controls`},{default:g(()=>[e(_(M),{size:`small`,onClick:s[17]||=e=>Q(`SCREEN_COMMAND_PLAY`)},{default:g(()=>[...s[72]||=[h(`Запуск`,-1)]]),_:1}),e(_(M),{size:`small`,onClick:s[18]||=e=>Q(`SCREEN_COMMAND_PAUSE`)},{default:g(()=>[...s[73]||=[h(`Пауза`,-1)]]),_:1}),e(_(M),{size:`small`,onClick:s[19]||=e=>Q(`SCREEN_COMMAND_RESUME`)},{default:g(()=>[...s[74]||=[h(`Продолжить`,-1)]]),_:1}),e(_(M),{size:`small`,onClick:s[20]||=e=>Q(`SCREEN_COMMAND_STOP`)},{default:g(()=>[...s[75]||=[h(`Стоп`,-1)]]),_:1}),e(_(M),{size:`small`,onClick:s[21]||=e=>Q(`SCREEN_COMMAND_REPLAY`)},{default:g(()=>[...s[76]||=[h(`Повтор`,-1)]]),_:1})]),_:1}),e(_(L),{class:`screen-mode-controls`,align:`center`},{default:g(()=>[e(_(z),null,{default:g(()=>[...s[77]||=[h(`Громкость`,-1)]]),_:1}),e(_(ke),{value:W.value,"onUpdate:value":s[22]||=e=>W.value=e,min:0,max:100,step:5,size:`small`},null,8,[`value`]),e(_(M),{size:`small`,onClick:s[23]||=e=>Q(`SCREEN_COMMAND_VOLUME`)},{default:g(()=>[...s[78]||=[h(`Применить`,-1)]]),_:1}),e(_(z),null,{default:g(()=>[...s[79]||=[h(`Позиция, сек.`,-1)]]),_:1}),e(_(ke),{value:ge.value,"onUpdate:value":s[24]||=e=>ge.value=e,min:0,step:5,size:`small`},null,8,[`value`]),e(_(M),{size:`small`,onClick:s[25]||=e=>Q(`SCREEN_COMMAND_SEEK`)},{default:g(()=>[...s[80]||=[h(`Перемотать`,-1)]]),_:1})]),_:1})])):l(``,!0),n(`div`,Ke,[e(_(R),{align:`center`,justify:`space-between`},{default:g(()=>[s[85]||=n(`p`,{class:`screens-title`},`Карта помещения`,-1),e(_(L),null,{default:g(()=>[e(_(M),{size:`small`,onClick:s[26]||=e=>Ie(-.1)},{default:g(()=>[...s[82]||=[h(`−`,-1)]]),_:1}),e(_(z),null,{default:g(()=>[h(m(Math.round(q.value*100))+`%`,1)]),_:1}),e(_(M),{size:`small`,onClick:s[27]||=e=>Ie(.1)},{default:g(()=>[...s[83]||=[h(`+`,-1)]]),_:1}),e(_(M),{size:`small`,onClick:Re},{default:g(()=>[...s[84]||=[h(`Сбросить`,-1)]]),_:1})]),_:1})]),_:1}),n(`div`,{class:`map-field`,onPointerdown:yt,onWheel:St},[n(`div`,{class:`map-canvas`,style:t({transform:`translate(${J.value.x}px, ${J.value.y}px) scale(${q.value})`})},[(a(!0),r(u,null,i(V.value,e=>ie((a(),r(`div`,{key:`${e.kind}-${e.itemId}`,class:re([`map-item`,[e.kind===`screen`?`map-screen`:`map-team`,{"map-team-needs-applications":e.kind===`team`&&I.value.has(e.itemId)}]]),style:t({left:`${e.x||0}px`,top:`${e.y||0}px`}),onPointerdown:U(t=>e.kind===`screen`&&Oe(e,t),[`stop`])},[e.kind===`team`?(a(),r(`div`,{key:0,class:`map-team-handle`,onPointerdown:U(t=>Oe(e,t),[`stop`])},null,40,Je)):l(``,!0),n(`span`,null,m(e.label),1),e.kind===`team`&&I.value.has(e.itemId)?(a(),v(_(L),{key:1,class:`map-team-applications`,vertical:``},{default:g(()=>[(a(!0),r(u,null,i(I.value.get(e.itemId)?.applications,t=>(a(),v(_(M),{key:t.name,size:`small`,onClick:n=>It(I.value.get(e.itemId),t)},{default:g(()=>[h(` Выдать: `+m(t.name),1)]),_:2},1032,[`onClick`]))),128))]),_:2},1024)):l(``,!0),e.kind===`screen`?(a(),r(`small`,Ye,m(e.status)+m(e.soundEnabled?` · звук`:``),1)):l(``,!0),n(`button`,{class:`map-item-hide`,type:`button`,onPointerdown:s[28]||=U(()=>{},[`stop`]),onClick:U(t=>Pe(e),[`stop`])},` × `,40,Xe)],46,qe)),[[me,!e.hidden]])),128))],4)],32),V.value.some(e=>e.hidden)?(a(),v(_(L),{key:0,class:`map-hidden-items`},{default:g(()=>[(a(!0),r(u,null,i(V.value.filter(e=>e.hidden),e=>(a(),v(_(M),{key:`hidden-${e.kind}-${e.itemId}`,size:`small`,onClick:t=>Pe(e)},{default:g(()=>[h(` Добавить `+m(e.label),1)]),_:2},1032,[`onClick`]))),128))]),_:1})):l(``,!0)]),n(`div`,{class:`team-block team-block-hover`,onClick:s[29]||=e=>w.value=!0},[...s[86]||=[n(`p`,{class:`place-image-plus`},`+`,-1)]]),(a(!0),r(u,null,i(N.value.teams,t=>(a(),r(`div`,{key:t.id,class:`team-block`},[n(`div`,Ze,[e(_(R),{justify:`space-between`},{default:g(()=>[n(`div`,Qe,[n(`span`,$e,[h(m(t.name)+` `,1),t.captainEmail?(a(),r(`small`,et,` — `+m(t.captainEmail),1)):l(``,!0),t.participantsCount?(a(),r(`small`,tt,` · Участников: `+m(t.participantsCount),1)):l(``,!0)]),t.captainEmail||t.participationStatus!==`pending`?(a(),r(`div`,nt,[h(m(P.find(e=>e.value===t.participationStatus)?.label),1),t.participationSource===`automatic`?(a(),r(`span`,rt,` · автоматически`)):l(``,!0)])):l(``,!0),t.captainEmail?t.participationEmailError?(a(),r(`div`,at,` Ошибка отправки: `+m(t.participationEmailError),1)):t.participationEmailSent?(a(),r(`div`,ot,`Письмо отправлено`)):l(``,!0):(a(),r(`div`,it,`Почта капитана не указана`)),t.participationStatus===`cancelled`?l(``,!0):(a(),r(`div`,st,` Поездки: `+m(t.actionsCount),1))]),e(_(R),{justify:`end`},{default:g(()=>[t.participationStatus===`cancelled`?l(``,!0):(a(),v(_(M),{key:0,onClick:e=>Ut(Ht(t.id,t.password),`Подсмотреть игру`)},{default:g(()=>[...s[87]||=[h(` QR `,-1)]]),_:1},8,[`onClick`])),t.participationStatus===`cancelled`?l(``,!0):(a(),v(_(M),{key:1,onClick:e=>Et(t.id,t.password,!0)},{default:g(()=>[...s[88]||=[h(` Подсмотреть игру `,-1)]]),_:1},8,[`onClick`])),e(_(M),{type:`error`,ghost:``,onClick:e=>zt(t)},{default:g(()=>[...s[89]||=[h(` Удалить `,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]),_:2},1024),(a(!0),r(u,null,i(t.applications,e=>(a(),v(_(M),{key:e.name,class:`link-button`,onClick:n=>It(t,e)},{default:g(()=>[h(` Выдать: `+m(e.name),1)]),_:2},1032,[`onClick`]))),128))])]))),128))])]),e(_(A),{show:x.value,"onUpdate:show":s[35]||=e=>x.value=e},{default:g(()=>[e(_(O),{style:{width:`600px`},title:`Настройки игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":g(()=>[e(_(M),{onClick:s[30]||=e=>At()},{default:g(()=>[...s[90]||=[h(` x `,-1)]]),_:1})]),footer:g(()=>[e(_(R),{justify:`end`},{default:g(()=>[e(_(M),{onClick:s[34]||=e=>jt(),ghost:``},{default:g(()=>[...s[94]||=[h(` Сохранить изменения `,-1)]]),_:1})]),_:1})]),default:g(()=>[e(_(L),{vertical:``},{default:g(()=>[s[91]||=n(`p`,null,`Название`,-1),e(_(F),{value:S.value.name,"onUpdate:value":s[31]||=e=>S.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),s[92]||=n(`p`,{class:`settings-header`},`Формат игры`,-1),e(_(le),{value:S.value.format,"onUpdate:value":s[32]||=e=>S.value.format=e,options:[{label:`Online`,value:`online`},{label:`Offline`,value:`offline`}],"aria-label":`Формат игры`},null,8,[`value`]),s[93]||=n(`p`,{class:`settings-header`},`Описание`,-1),e(_(F),{value:S.value.description,"onUpdate:value":s[33]||=e=>S.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),e(_(A),{show:C.value,"onUpdate:show":s[38]||=e=>C.value=e},{default:g(()=>[e(_(O),{style:{width:`600px`},title:`Настройки игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":g(()=>[e(_(M),{onClick:s[36]||=e=>C.value=!1},{default:g(()=>[...s[95]||=[h(` x `,-1)]]),_:1})]),footer:g(()=>[e(_(R),{justify:`end`},{default:g(()=>[e(_(M),{onClick:s[37]||=e=>Rt(),ghost:``},{default:g(()=>[...s[98]||=[h(` Выдать `,-1)]]),_:1})]),_:1})]),default:g(()=>[e(_(L),{vertical:``},{default:g(()=>[s[96]||=n(`p`,null,`Команда`,-1),n(`h3`,null,m(Mt.value.name),1),s[97]||=n(`p`,null,`Улика`,-1),n(`h3`,null,m($.value.name),1),_(xe)($.value)==`image`&&$.value.image?(a(),r(`div`,ct,[n(`img`,{src:_(Se)($.value.image),class:`give-application-image`},null,8,lt)])):_(xe)($.value)==`audio`&&$.value.image?(a(),r(`audio`,{key:1,src:_(Se)($.value.image),controls:``,preload:`none`,class:`give-application-audio`},null,8,ut)):_(xe)($.value)==`pdf`&&$.value.image?(a(),r(`a`,{key:2,href:_(Se)($.value.image),target:`_blank`,rel:`noopener`,class:`give-application-pdf-link`},` PDF `,8,dt)):l(``,!0)]),_:1})]),_:1})]),_:1},8,[`show`]),e(_(A),{show:w.value,"onUpdate:show":s[43]||=e=>w.value=e},{default:g(()=>[e(_(O),{style:{width:`600px`},title:`Создание команды`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":g(()=>[e(_(M),{onClick:s[39]||=e=>w.value=!1},{default:g(()=>[...s[99]||=[h(` x `,-1)]]),_:1})]),footer:g(()=>[e(_(R),{justify:`end`},{default:g(()=>[e(_(M),{onClick:s[42]||=e=>Lt(),disabled:D.value.length==0},{default:g(()=>[...s[100]||=[h(` Создать `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:g(()=>[e(_(L),{vertical:``},{default:g(()=>[e(_(F),{value:D.value,"onUpdate:value":s[40]||=e=>D.value=e,type:`text`,placeholder:`Три дебила`},null,8,[`value`]),e(_(F),{value:k.value,"onUpdate:value":s[41]||=e=>k.value=e,"input-props":{type:`email`,autocomplete:`email`},placeholder:`Почта капитана (необязательно)`,"aria-label":`Почта капитана (необязательно)`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),e(_(A),{show:T.value,"onUpdate:show":s[47]||=e=>T.value=e},{default:g(()=>[e(_(O),{style:{width:`600px`},title:`Удаление команды`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":g(()=>[e(_(M),{onClick:s[44]||=e=>T.value=!1},{default:g(()=>[...s[101]||=[h(` x `,-1)]]),_:1})]),footer:g(()=>[e(_(R),{justify:`end`},{default:g(()=>[e(_(M),{onClick:s[46]||=e=>Bt(),disabled:Nt.value!=Pt.value.name},{default:g(()=>[...s[104]||=[h(` Удалить `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:g(()=>[e(_(L),{vertical:``},{default:g(()=>[n(`p`,null,[s[102]||=h(` Введите название команды `,-1),e(_(z),{class:`name-text`,strong:``},{default:g(()=>[h(m(Pt.value.name),1)]),_:1}),s[103]||=h(` чтобы удалить его `,-1)]),e(_(F),{value:Nt.value,"onUpdate:value":s[45]||=e=>Nt.value=e,type:`text`,placeholder:`Три дебила`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),e(_(A),{show:E.value,"onUpdate:show":s[51]||=e=>E.value=e},{default:g(()=>[e(_(O),{style:{width:`600px`},title:`Удаление игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":g(()=>[e(_(M),{onClick:s[48]||=e=>E.value=!1},{default:g(()=>[...s[105]||=[h(` x `,-1)]]),_:1})]),footer:g(()=>[e(_(R),{justify:`end`},{default:g(()=>[e(_(M),{onClick:s[50]||=e=>Vt(),disabled:oe.value!=N.value.name},{default:g(()=>[...s[108]||=[h(` Удалить `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:g(()=>[e(_(L),{vertical:``},{default:g(()=>[n(`p`,null,[s[106]||=h(` Введите название игры `,-1),e(_(z),{class:`name-text`,strong:``},{default:g(()=>[h(m(N.value.name),1)]),_:1}),s[107]||=h(` чтобы удалить её `,-1)]),e(_(F),{value:oe.value,"onUpdate:value":s[49]||=e=>oe.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),e(_(A),{show:se.value,"onUpdate:show":s[53]||=e=>se.value=e},{default:g(()=>[e(_(O),{style:{width:`600px`},title:j.value,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":g(()=>[e(_(M),{onClick:s[52]||=e=>se.value=!1},{default:g(()=>[...s[109]||=[h(` x `,-1)]]),_:1})]),footer:g(()=>[...s[110]||=[]]),default:g(()=>[e(_(L),{vertical:``},{default:g(()=>[n(`div`,ft,[e(_(pe),{value:ce.value,size:300,padding:0},null,8,[`value`])])]),_:1})]),_:1},8,[`title`])]),_:1},8,[`show`]),e(_(A),{show:Yt.value,"onUpdate:show":s[56]||=e=>Yt.value=e},{default:g(()=>[e(_(O),{style:{width:`min(94vw, 900px)`},title:`Ответы команд`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`,"content-style":{maxHeight:`70vh`,overflow:`auto`}},{"header-extra":g(()=>[e(_(M),{onClick:s[54]||=e=>Yt.value=!1},{default:g(()=>[...s[111]||=[h(` x `,-1)]]),_:1})]),footer:g(()=>[e(_(R),{justify:`end`},{default:g(()=>[e(_(M),{onClick:s[55]||=e=>an(),disabled:Xt.value.length==0},{default:g(()=>[...s[114]||=[h(` Сохранить баллы `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:g(()=>[Xt.value.length==0?(a(),r(`div`,pt,` Вопросы дела не заданы или команды ещё не отвечали. `)):l(``,!0),(a(!0),r(u,null,i(Xt.value,t=>(a(),r(`div`,{key:t.code,class:`answers-question-block`},[n(`p`,mt,m(t.code)+`: `+m(t.text),1),n(`p`,ht,[s[112]||=h(` Правильный ответ:`,-1),s[113]||=n(`br`,null,null,-1),n(`span`,gt,m(t.answer||`—`),1)]),(a(!0),r(u,null,i(Zt.value,i=>(a(),r(`div`,{key:i.team?.id,class:`answers-team-row`},[n(`div`,_t,m(i.team?.name),1),n(`div`,vt,m(en(i,t.code)||`—`),1),e(_(ke),{value:Qt.value[$t(i.team?.id,t.code)],"onUpdate:value":e=>tn($t(i.team?.id,t.code),e),placeholder:`Балл`,class:`answers-score-input`},null,8,[`value`,`onUpdate:value`])]))),128))]))),128))]),_:1})]),_:1},8,[`show`]),e(_e,{active:`games`})],64))}}),[[`__scopeId`,`data-v-8d5f4b26`]]),bt=p({__name:`GameView`,setup(e){return(e,t)=>(a(),v(yt))}});export{bt as default}; \ No newline at end of file diff --git a/dist/assets/GameView-CNjahWcK.css b/dist/assets/GameView-CNjahWcK.css new file mode 100644 index 0000000..9cba02e --- /dev/null +++ b/dist/assets/GameView-CNjahWcK.css @@ -0,0 +1 @@ +.team-block[data-v-79a9bcbe]{background-color:#222;border:1px solid #222;border-radius:10px;margin:10px 0}.reviews-summary[data-v-79a9bcbe]{margin-bottom:20px}.review-row[data-v-79a9bcbe]{border-top:1px solid #777;padding:16px 0}.review-row p[data-v-79a9bcbe]{white-space:pre-wrap}.team-block-hover[data-v-79a9bcbe]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.team-content-block[data-v-79a9bcbe]{padding:20px}.team-name-block[data-v-79a9bcbe]{font-size:20px;font-weight:600}.settings-icon[data-v-79a9bcbe]{width:20px}.link-button[data-v-79a9bcbe]{width:100%;margin-top:20px}.place-image-plus[data-v-79a9bcbe]{justify-content:center;align-items:center;font-size:30px;display:flex}.name-text[data-v-79a9bcbe]{background-color:#ffffff1a;border-radius:3px;padding:3px}.qr-block[data-v-79a9bcbe]{background-color:#fff;margin:0 auto;padding:12px;line-height:0;display:inline-block}.give-application-image-block[data-v-79a9bcbe]{background-image:url(/assets/paper_white-ZSlTzOTx.jpg);background-size:cover;max-width:320px;margin:10px 0 5px;padding:7px;box-shadow:0 3px 15px #626262}.give-application-image[data-v-79a9bcbe]{width:100%}.give-application-audio[data-v-79a9bcbe]{width:100%;margin:10px 0 5px}.give-application-pdf-link[data-v-79a9bcbe]{margin:10px 0 5px;text-decoration:underline;display:inline-block}.answers-empty[data-v-79a9bcbe]{color:#777}.answers-question-block[data-v-79a9bcbe]{background-color:#222;border-radius:8px;margin:15px 0;padding:12px}.answers-question-title[data-v-79a9bcbe]{margin:0 0 4px;font-size:17px;font-weight:600}.answers-question-answer[data-v-79a9bcbe]{color:#aaa;margin:0 0 10px}.correct-answer[data-v-79a9bcbe]{color:gold;white-space:pre-wrap;margin-top:4px;font-weight:500;display:inline-block}.answers-team-row[data-v-79a9bcbe]{background-color:#ffffff0d;border-radius:6px;flex-flow:wrap;align-items:center;gap:10px;margin:8px 0;padding:8px 10px;display:flex}.answers-team-name[data-v-79a9bcbe]{width:180px;font-weight:600}.answers-team-answer[data-v-79a9bcbe]{color:#aaa;white-space:pre-wrap;flex:200px}.answers-score-input[data-v-79a9bcbe]{width:110px}.screens-block[data-v-79a9bcbe]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.screens-title[data-v-79a9bcbe]{margin-bottom:12px;font-size:18px;font-weight:600}.screen-row[data-v-79a9bcbe]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.screen-status[data-v-79a9bcbe]{color:#aaa;font-size:13px}.screen-error[data-v-79a9bcbe]{color:#f2a2a2;font-size:13px}.screen-mode-controls[data-v-79a9bcbe]{margin-top:12px}.map-block[data-v-79a9bcbe]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.map-field[data-v-79a9bcbe]{cursor:grab;resize:vertical;touch-action:none;background-color:#151515;border:1px dashed #fff3;height:420px;min-height:200px;position:relative;overflow:hidden}.map-field[data-v-79a9bcbe]:active{cursor:grabbing}.map-canvas[data-v-79a9bcbe]{transform-origin:0 0;background-image:linear-gradient(#ffffff14 1px,#0000 1px),linear-gradient(90deg,#ffffff14 1px,#0000 1px);background-size:20px 20px;width:2000px;height:1000px;position:absolute}.map-item[data-v-79a9bcbe]{cursor:grab;-webkit-user-select:none;user-select:none;border-radius:6px;min-width:90px;padding:8px 24px 8px 10px;position:absolute}.map-item[data-v-79a9bcbe]:active{cursor:grabbing}.map-screen[data-v-79a9bcbe]{background-color:#355b75}.map-team[data-v-79a9bcbe]{background-color:#222}.map-team[data-v-79a9bcbe],.map-team[data-v-79a9bcbe]:active{cursor:default}.map-team-handle[data-v-79a9bcbe]{cursor:grab;background-color:#48633a;border-radius:6px 6px 0 0;margin:-8px -24px 8px -10px;padding:8px 24px 8px 10px}.map-team-handle[data-v-79a9bcbe]:active{cursor:grabbing}.map-team-applications[data-v-79a9bcbe]{margin-top:8px}.map-team-needs-applications[data-v-79a9bcbe]{outline:2px solid gold}.map-item small[data-v-79a9bcbe]{opacity:.75;display:block}.map-item-hide[data-v-79a9bcbe]{color:inherit;cursor:pointer;background:0 0;border:0;font-size:16px;position:absolute;top:5px;right:5px}.map-team .map-item-hide[data-v-79a9bcbe]{padding:0 2px;line-height:16px;top:0}.map-hidden-items[data-v-79a9bcbe]{margin-top:10px} diff --git a/dist/assets/GameView-CrSlYoz4.css b/dist/assets/GameView-CrSlYoz4.css deleted file mode 100644 index edc02a7..0000000 --- a/dist/assets/GameView-CrSlYoz4.css +++ /dev/null @@ -1 +0,0 @@ -.team-block[data-v-8d5f4b26]{background-color:#222;border:1px solid #222;border-radius:10px;margin:10px 0}.team-block-hover[data-v-8d5f4b26]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.team-content-block[data-v-8d5f4b26]{padding:20px}.team-name-block[data-v-8d5f4b26]{font-size:20px;font-weight:600}.settings-icon[data-v-8d5f4b26]{width:20px}.link-button[data-v-8d5f4b26]{width:100%;margin-top:20px}.place-image-plus[data-v-8d5f4b26]{justify-content:center;align-items:center;font-size:30px;display:flex}.name-text[data-v-8d5f4b26]{background-color:#ffffff1a;border-radius:3px;padding:3px}.qr-block[data-v-8d5f4b26]{background-color:#fff;margin:0 auto;padding:12px;line-height:0;display:inline-block}.give-application-image-block[data-v-8d5f4b26]{background-image:url(/assets/paper_white-ZSlTzOTx.jpg);background-size:cover;max-width:320px;margin:10px 0 5px;padding:7px;box-shadow:0 3px 15px #626262}.give-application-image[data-v-8d5f4b26]{width:100%}.give-application-audio[data-v-8d5f4b26]{width:100%;margin:10px 0 5px}.give-application-pdf-link[data-v-8d5f4b26]{margin:10px 0 5px;text-decoration:underline;display:inline-block}.answers-empty[data-v-8d5f4b26]{color:#777}.answers-question-block[data-v-8d5f4b26]{background-color:#222;border-radius:8px;margin:15px 0;padding:12px}.answers-question-title[data-v-8d5f4b26]{margin:0 0 4px;font-size:17px;font-weight:600}.answers-question-answer[data-v-8d5f4b26]{color:#aaa;margin:0 0 10px}.correct-answer[data-v-8d5f4b26]{color:gold;white-space:pre-wrap;margin-top:4px;font-weight:500;display:inline-block}.answers-team-row[data-v-8d5f4b26]{background-color:#ffffff0d;border-radius:6px;flex-flow:wrap;align-items:center;gap:10px;margin:8px 0;padding:8px 10px;display:flex}.answers-team-name[data-v-8d5f4b26]{width:180px;font-weight:600}.answers-team-answer[data-v-8d5f4b26]{color:#aaa;white-space:pre-wrap;flex:200px}.answers-score-input[data-v-8d5f4b26]{width:110px}.screens-block[data-v-8d5f4b26]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.screens-title[data-v-8d5f4b26]{margin-bottom:12px;font-size:18px;font-weight:600}.screen-row[data-v-8d5f4b26]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.screen-status[data-v-8d5f4b26]{color:#aaa;font-size:13px}.screen-error[data-v-8d5f4b26]{color:#f2a2a2;font-size:13px}.screen-mode-controls[data-v-8d5f4b26]{margin-top:12px}.map-block[data-v-8d5f4b26]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.map-field[data-v-8d5f4b26]{cursor:grab;resize:vertical;touch-action:none;background-color:#151515;border:1px dashed #fff3;height:420px;min-height:200px;position:relative;overflow:hidden}.map-field[data-v-8d5f4b26]:active{cursor:grabbing}.map-canvas[data-v-8d5f4b26]{transform-origin:0 0;background-image:linear-gradient(#ffffff14 1px,#0000 1px),linear-gradient(90deg,#ffffff14 1px,#0000 1px);background-size:20px 20px;width:2000px;height:1000px;position:absolute}.map-item[data-v-8d5f4b26]{cursor:grab;-webkit-user-select:none;user-select:none;border-radius:6px;min-width:90px;padding:8px 24px 8px 10px;position:absolute}.map-item[data-v-8d5f4b26]:active{cursor:grabbing}.map-screen[data-v-8d5f4b26]{background-color:#355b75}.map-team[data-v-8d5f4b26]{background-color:#222}.map-team[data-v-8d5f4b26],.map-team[data-v-8d5f4b26]:active{cursor:default}.map-team-handle[data-v-8d5f4b26]{cursor:grab;background-color:#48633a;border-radius:6px 6px 0 0;margin:-8px -24px 8px -10px;padding:8px 24px 8px 10px}.map-team-handle[data-v-8d5f4b26]:active{cursor:grabbing}.map-team-applications[data-v-8d5f4b26]{margin-top:8px}.map-team-needs-applications[data-v-8d5f4b26]{outline:2px solid gold}.map-item small[data-v-8d5f4b26]{opacity:.75;display:block}.map-item-hide[data-v-8d5f4b26]{color:inherit;cursor:pointer;background:0 0;border:0;font-size:16px;position:absolute;top:5px;right:5px}.map-team .map-item-hide[data-v-8d5f4b26]{padding:0 2px;line-height:16px;top:0}.map-hidden-items[data-v-8d5f4b26]{margin-top:10px} diff --git a/dist/assets/GameView-D5vfq7WW.js b/dist/assets/GameView-D5vfq7WW.js new file mode 100644 index 0000000..9d22011 --- /dev/null +++ b/dist/assets/GameView-D5vfq7WW.js @@ -0,0 +1,7 @@ +import{A as e,At as t,C as n,E as r,J as i,K as a,P as o,R as s,S as c,T as l,_ as u,ct as d,d as ee,dt as te,et as f,i as ne,j as p,jt as m,k as h,kt as re,nt as g,pt as _,rt as ie,u as ae,w as v}from"./auth-CzuN8bsR.js";import{G as y,H as b,K as x,N as S,n as C,o as w,r as T,t as E}from"./light-Dg5iONHF.js";import{d as D,t as O}from"./Card-jY6IqKWx.js";import{a as k,r as oe}from"./resolve-slot-Bgp_Mn8k.js";import{i as se}from"./Suffix-PHRsdJdH.js";import{t as A}from"./Modal-COuHyUKC.js";import{t as ce}from"./use-merged-state-D8rNARXC.js";import{n as j,t as M}from"./Button-_KVJEFbE.js";import{t as le}from"./Select-BAqObS0Q.js";import{n as N,r as P}from"./use-form-item-DDZTyeAQ.js";import{t as ue}from"./Add-Dpa8jwVl.js";import{t as F}from"./Input-jiXpa-nM.js";import{t as I}from"./Remove-B8gpmkQR.js";import{t as L}from"./Tag-DfP_x904.js";import{t as de}from"./use-message-R8JEzJ8f.js";import{t as R}from"./Space-BumyB3cS.js";import{t as z}from"./Flex-ISd7TnC9.js";import{t as fe}from"./Rate-BuNWBBdn.js";import{t as pe}from"./QrCode-CWZd63W8.js";import{t as B}from"./text-BQr3Ce8B.js";import{C as V,H,Y as U,et as me,nt as W,x as he}from"./index-4mSiwzFS.js";import{n as G,r as ge,t as _e}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as ve}from"./HeaderMenu-Qspj3Vlt.js";import{t as ye}from"./Settings-DZEhm-J2.js";import{t as be}from"./binary_client-zERk4LUr.js";import{t as xe}from"./useSimplePolling-CxHCqzxV.js";import{n as Se,r as Ce}from"./application-CQhaY0yx.js";import{n as we,t as Te}from"./datetime-BJNH0M1T.js";function K(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}var q=C({name:`InputNumber`,common:E,peers:{Button:he,Input:V},self:K}),J=y([x(`input-number-suffix`,` + display: inline-block; + margin-right: 10px; + `),x(`input-number-prefix`,` + display: inline-block; + margin-left: 10px; + `)]);function Y(e){return e==null||typeof e==`string`&&e.trim()===``?null:Number(e)}function X(e){return e.includes(`.`)&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e===`-`||e===`-0`}function Z(e){return e==null?!0:!Number.isNaN(e)}function Ee(e,t){return typeof e==`number`?t===void 0?String(e):e.toFixed(t):``}function De(e){if(e===null)return null;if(typeof e==`number`)return e;{let t=Number(e);return Number.isNaN(t)?null:t}}var Oe=800,ke=100,Ae=p({name:`InputNumber`,props:Object.assign(Object.assign({},T.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:`right`},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),slots:Object,setup(e){let{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r,mergedComponentPropsRef:i}=S(e),a=T(`InputNumber`,`-input-number`,J,q,e,n),{localeRef:o}=se(`InputNumber`),l=N(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:i?.value?.InputNumber?.size||`medium`}}),{mergedSizeRef:u,mergedDisabledRef:ee,mergedStatusRef:ne}=l,p=d(null),m=d(null),h=d(null),re=d(e.defaultValue),g=ce(te(e,`value`),re),_=d(``),ie=e=>{let t=String(e).split(`.`)[1];return t?t.length:0},ae=t=>{let n=[e.min,e.max,e.step,t].map(e=>e===void 0?0:ie(e));return Math.max(...n)},v=U(()=>{let{placeholder:t}=e;return t===void 0?o.value.placeholder:t}),y=U(()=>{let t=De(e.step);return t===null||t===0?1:Math.abs(t)}),x=U(()=>{let t=De(e.min);return t===null?null:t}),C=U(()=>{let t=De(e.max);return t===null?null:t}),E=()=>{let{value:t}=g;if(Z(t)){let{format:n,precision:r}=e;n?_.value=n(t):t===null||r===void 0||ie(t)>r?_.value=Ee(t,void 0):_.value=Ee(t,r)}else _.value=String(t)};E();let O=t=>{let{value:n}=g;if(t===n){E();return}let{"onUpdate:value":r,onUpdateValue:i,onChange:a}=e,{nTriggerFormInput:o,nTriggerFormChange:s}=l;a&&P(a,t),i&&P(i,t),r&&P(r,t),re.value=t,o(),s()},k=({offset:t,doUpdateIfValid:n,fixPrecision:r,isInputing:i})=>{let{value:a}=_;if(i&&X(a))return!1;let o=(e.parse||Y)(a);if(o===null)return n&&O(null),null;if(Z(o)){let a=ie(o),{precision:s}=e;if(s!==void 0&&st){if(!n||i)return!1;c=t}if(r!==null&&ck({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),A=U(()=>{let{value:t}=g;if(e.validator&&t===null)return!1;let{value:n}=y;return k({offset:-n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),j=U(()=>{let{value:t}=g;if(e.validator&&t===null)return!1;let{value:n}=y;return k({offset:+n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function M(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=l;n&&P(n,t),r()}function le(t){if(t.target===p.value?.wrapperElRef)return;let n=k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(n!==!1){let e=p.value?.inputElRef;e&&(e.value=String(n||``)),g.value===n&&E()}else E();let{onBlur:r}=e,{nTriggerFormBlur:i}=l;r&&P(r,t),i(),s(()=>{E()})}function ue(t){let{onClear:n}=e;n&&P(n,t)}function F(){let{value:t}=j;if(!t){W();return}let{value:n}=g;if(n===null)e.validator||O(R());else{let{value:e}=y;k({offset:e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function I(){let{value:t}=A;if(!t){H();return}let{value:n}=g;if(n===null)e.validator||O(R());else{let{value:e}=y;k({offset:-e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}let L=M,de=le;function R(){if(e.validator)return null;let{value:t}=x,{value:n}=C;return t===null?n===null?0:Math.min(0,n):Math.max(0,t)}function z(e){ue(e),O(null)}function fe(e){var t;h.value?.$el.contains(e.target)&&e.preventDefault(),m.value?.$el.contains(e.target)&&e.preventDefault(),(t=p.value)==null||t.activate()}let pe=null,B=null,V=null;function H(){V&&=(window.clearTimeout(V),null),pe&&=(window.clearInterval(pe),null)}let me=null;function W(){me&&=(window.clearTimeout(me),null),B&&=(window.clearInterval(B),null)}function he(){H(),V=window.setTimeout(()=>{pe=window.setInterval(()=>{I()},ke)},Oe),D(`mouseup`,document,H,{once:!0})}function G(){W(),me=window.setTimeout(()=>{B=window.setInterval(()=>{F()},ke)},Oe),D(`mouseup`,document,W,{once:!0})}let ge=()=>{B||F()},_e=()=>{pe||I()};function ve(t){var n;if(t.key===`Enter`){if(t.target===p.value?.wrapperElRef)return;k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((n=p.value)==null||n.deactivate())}else if(t.key===`ArrowUp`){if(!j.value||e.keyboard.ArrowUp===!1)return;t.preventDefault(),k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&F()}else if(t.key===`ArrowDown`){if(!A.value||e.keyboard.ArrowDown===!1)return;t.preventDefault(),k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&I()}}function ye(t){_.value=t,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&k({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}f(g,()=>{E()});let be={focus:()=>p.value?.focus(),blur:()=>p.value?.blur(),select:()=>p.value?.select()},xe=w(`InputNumber`,r,n);return Object.assign(Object.assign({},be),{rtlEnabled:xe,inputInstRef:p,minusButtonInstRef:m,addButtonInstRef:h,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:re,mergedValue:g,mergedPlaceholder:v,displayedValueInvalid:oe,mergedSize:u,mergedDisabled:ee,displayedValue:_,addable:j,minusable:A,mergedStatus:ne,handleFocus:L,handleBlur:de,handleClear:z,handleMouseDown:fe,handleAddClick:ge,handleMinusClick:_e,handleAddMousedown:G,handleMinusMousedown:he,handleKeyDown:ve,handleUpdateDisplayedValue:ye,mergedTheme:a,inputThemeOverrides:{paddingSmall:`0 8px 0 10px`,paddingMedium:`0 8px 0 12px`,paddingLarge:`0 8px 0 14px`},buttonThemeOverrides:c(()=>{let{self:{iconColorDisabled:e}}=a.value,[t,n,r,i]=b(e);return{textColorTextDisabled:`rgb(${t}, ${n}, ${r})`,opacityDisabled:`${i}`}})})},render(){let{mergedClsPrefix:e,$slots:t}=this,n=()=>o(j,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:`minusButtonInstRef`},{icon:()=>oe(t[`minus-icon`],()=>[o(H,{clsPrefix:e},{default:()=>o(I,null)})])}),r=()=>o(j,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:`addButtonInstRef`},{icon:()=>oe(t[`add-icon`],()=>[o(H,{clsPrefix:e},{default:()=>o(ue,null)})])});return o(`div`,{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},o(F,{ref:`inputInstRef`,autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?`line-through`:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>this.showButton&&this.buttonPlacement===`both`?[n(),k(t.prefix,t=>t?o(`span`,{class:`${e}-input-number-prefix`},t):null)]:t.prefix?.call(t),suffix:()=>this.showButton?[k(t.suffix,t=>t?o(`span`,{class:`${e}-input-number-suffix`},t):null),this.buttonPlacement===`right`?n():null,r()]:t.suffix?.call(t)}))}}),je={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Me=p({name:`Flag`,render:function(e,t){return a(),r(`svg`,je,t[0]||=[n(`path`,{d:`M6 30H4V2h24l-5.8 9l5.8 9H6zm0-12h18.33l-4.53-7l4.53-7H6z`,fill:`currentColor`},null,-1)])}}),Ne={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Pe=p({name:`Pause`,render:function(e,t){return a(),r(`svg`,Ne,t[0]||=[n(`path`,{d:`M12 8v16H8V8h4m0-2H8a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z`,fill:`currentColor`},null,-1),n(`path`,{d:`M24 8v16h-4V8h4m0-2h-4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z`,fill:`currentColor`},null,-1)])}}),Fe={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Ie=p({name:`Play`,render:function(e,t){return a(),r(`svg`,Fe,t[0]||=[n(`path`,{d:`M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28zM8 6.69V25.31L24.925 16z`,fill:`currentColor`},null,-1)])}}),Le={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Re=p({name:`Reset`,render:function(e,t){return a(),r(`svg`,Le,t[0]||=[n(`path`,{d:`M18 28A12 12 0 1 0 6 16v6.2l-3.6-3.6L1 20l6 6l6-6l-1.4-1.4L8 22.2V16a10 10 0 1 1 10 10z`,fill:`currentColor`},null,-1)])}}),ze={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Be=p({name:`Trophy`,render:function(e,t){return a(),r(`svg`,ze,t[0]||=[n(`path`,{d:`M26 7h-2V6a2.002 2.002 0 0 0-2-2H10a2.002 2.002 0 0 0-2 2v1H6a2.002 2.002 0 0 0-2 2v3a4.005 4.005 0 0 0 4 4h.322A8.169 8.169 0 0 0 15 21.934V26h-5v2h12v-2h-5v-4.069A7.966 7.966 0 0 0 23.74 16H24a4.005 4.005 0 0 0 4-4V9a2.002 2.002 0 0 0-2-2zM8 14a2.002 2.002 0 0 1-2-2V9h2zm14 0a6 6 0 0 1-6.186 5.997A6.2 6.2 0 0 1 10 13.707V6h12zm4-2a2.002 2.002 0 0 1-2 2V9h2z`,fill:`currentColor`},null,-1)])}}),Ve={class:`center-block-custom`},He={class:`width1200`},Ue={class:`settings-block`},We={key:0,class:`screens-block`},Ge={class:`screen-status`},Ke={key:0,class:`screen-error`},qe={class:`map-block`},Je=[`onPointerdown`],Ye=[`onPointerdown`],Xe={key:2},Ze=[`onClick`],Qe={class:`team-content-block`},$e={class:`title-block`},et={class:`team-name-block`},tt={key:0},nt={key:1},rt={key:0},it={key:0},at={key:1},ot={key:2},st={key:3},ct={key:4},lt={key:0,class:`give-application-image-block`},ut=[`src`],dt=[`src`],ft=[`href`],pt={class:`qr-block`},mt={key:0,class:`answers-empty`},ht={class:`answers-question-title`},gt={class:`answers-question-answer`},_t={class:`correct-answer`},vt={class:`answers-team-name`},yt={class:`answers-team-answer`},bt={key:0,class:`answers-empty`},xt=_e(p({__name:`GamePage`,setup(o){let s=ge(),te=be(),f=d(!1),p=ee(),y=ae().params.id,b=de(),x=d(!1),S=d({name:``,description:``,format:`online`}),C=d(!1),w=d(!1),T=d(!1),E=d(!1),D=d(``),k=d(``),oe=d(``),se=d(!1),ce=d(``),j=d(``),N=d({id:void 0,name:void 0,description:void 0,startAt:void 0,status:void 0,format:void 0,scenario:void 0,teams:void 0}),P=[{label:`Ожидает ответа`,value:`pending`},{label:`Подтверждено`,value:`confirmed`},{label:`Отменено`,value:`cancelled`}],ue=c(()=>(N.value.teams||[]).filter(e=>e.participationStatus!==`cancelled`).length),I=c(()=>new Map((N.value.teams||[]).filter(e=>e.applications?.length).map(e=>[e.id,e]))),V=d([]),H=d([]),U=d(!1),he=d(100),_e=d(0),K=c(()=>{let e=V.value.map(e=>e.mode).filter(Boolean);if(!(!e.length||e.some(t=>t!==e[0])))return e[0]}),q=d(1),J=d({x:0,y:0}),Y,X;async function Z(e){let t=await s.GetGame({id:e});if(t.error!=``){b.error(t.error);return}N.value=t.game,N.value.teams=N.value.teams?.sort((e,t)=>{let n=0;(e.applications?.length||0)>0&&(n=1);let r=0;if((t.applications?.length||0)>0&&(r=1),n>r)return-1;if(na?1:iURL.revokeObjectURL(n),1e3)}catch(e){b.error(e instanceof Error?e.message:`Не удалось скачать QR команд`)}finally{f.value=!1}}}function At(){p.push(`/games/`+y+`/results`)}function jt(){S.value={name:N.value.name||``,description:N.value.description||``,format:N.value.format||`online`},x.value=!0}function Mt(){x.value=!1}async function Nt(){let e=await s.UpdateGame({id:N.value.id,name:S.value.name,description:S.value.description,format:S.value.format,startAt:N.value.startAt,scenarioId:N.value.scenario?.id});if(e.error!=``){b.error(e.error);return}await Z(N.value.id),x.value=!1}let Pt=d({id:0,name:``,status:``,password:``,actionsCount:0,applications:[],captainEmail:void 0,participantsCount:void 0,participationStatus:void 0,participationSource:void 0,participationEmailError:void 0,participationEmailSent:void 0}),Ft=d(``),It=d({id:0,name:``,status:``,password:``,actionsCount:0,applications:[],captainEmail:void 0,participantsCount:void 0,participationStatus:void 0,participationSource:void 0,participationEmailError:void 0,participationEmailSent:void 0}),$=d({name:``,image:``,file_type:``}),Lt=window.location.href;function Rt(e,t){Pt.value=e,$.value=t,C.value=!0}async function zt(){let e=await s.AddTeam({gameId:N.value.id,name:D.value,captainEmail:k.value.trim()});if(e.error!=``){b.error(e.error);return}await Z(N.value.id),w.value=!1,k.value=``}async function Bt(){let e=await s.GiveTeamApplications({id:Pt.value.id,name:$.value.name});if(e.error!=``){b.error(e.error);return}await Z(N.value.id),C.value=!1}async function Vt(e){It.value=e,T.value=!0}async function Ht(){let e=await s.DeleteTeam({id:It.value.id});if(e.error!=``){b.error(e.error);return}await Z(N.value.id),T.value=!1}async function Ut(){let e=await s.DeleteGame({id:N.value.id});if(e.error!=``){b.error(e.error);return}b.success(`Игра удалена`),p.push(`/games`)}function Wt(e,t){return ne()+`/team-story/`+e+`?password=`+t}async function Gt(e,t){ce.value=e,j.value=t,se.value=!0}xe(()=>{Z(Number(y)),Ee(),De()},2e3);async function Kt(){let e=await s.ResetGame({id:N.value.id});if(e.error!=``){b.error(e.error);return}await Z(N.value.id)}async function qt(){let e=await s.StartGame({id:N.value.id});if(e.error!=``){b.error(e.error);return}await Z(N.value.id)}async function Jt(){let e=await s.PauseGame({id:N.value.id});if(e.error!=``){b.error(e.error);return}await Z(N.value.id)}async function Yt(){let e=await s.PlayGame({id:N.value.id});if(e.error!=``){b.error(e.error);return}await Z(N.value.id)}async function Xt(){let e=await s.FinishGame({id:N.value.id});if(e.error!=``){b.error(e.error);return}await Z(N.value.id)}let Zt=d(!1),Qt=d(!1),$t=d([]),en=d(0),tn=d(0),nn=d([]),rn=d([]),an=d({});function on(e,t){return(e??``)+`:`+(t??``)}function sn(e,t){return(e.answers||[]).find(e=>e.questionCode==t)?.answer||``}function cn(e,t){an.value[e]=t===null?void 0:t}async function ln(){let e=await s.GetGameAnswers({gameId:Number(y)});if(e.error!=``){b.error(e.error);return}nn.value=e.questions||[],rn.value=e.teams||[];let t={};for(let e of rn.value)for(let n of e.answers||[])t[on(e.team?.id,n.questionCode)]=n.score;an.value=t}async function un(){Zt.value=!0,await ln()}async function dn(){Qt.value=!0;let e=await s.GetGameReviewsForModeration({gameId:Number(y)});if(e.error!=``){b.error(e.error);return}$t.value=e.reviews||[],en.value=e.averageRating||0,tn.value=e.reviewsCount||0}async function fn(e,t){let n=await s.ModerateGameReview({id:e.id,status:t});if(n.error!=``){b.error(n.error);return}await dn()}async function pn(){for(let e of nn.value)for(let t of rn.value){let n=an.value[on(t.team?.id,e.code)],r=await s.SetTeamAnswerScore({id:t.team?.id,questionCode:e.code,score:n??void 0});if(r.error!=``){b.error(r.error);return}}b.success(`Баллы сохранены`),await ln()}function mn(){let e=new Date;return new Date(e.getTime()-e.getTimezoneOffset()*6e4)}function hn(e,t){if(e==``)return`Игра ещё не началась`;let n=we(e),r=mn();t!=``&&(r=we(t));let i=r.getTime()-n.getTime();if(i<0)return`Игра ещё не началась`;let a=Math.floor(i/1e3),o=Math.floor(a/60),s=Math.floor(o/60),c=Math.floor(s/24),l=Math.floor(c/30),u=Math.floor(c/365);return u>0?`${u}г ${c%365}д`:l>0?`${l}мес ${c%30}д`:c>0?`${c}д ${s%24}ч`:s>0?`${s}ч ${o%60}м`:o>0?`${o}м ${a%60}с`:`${a}с`}let gn=d(``);return xe(()=>{gn.value=hn(N.value.startedAt||``,N.value.endedAt||``)},1e3),(o,s)=>(a(),r(u,null,[n(`div`,Ve,[n(`div`,He,[n(`div`,Ue,[e(_(z),{justify:`space-between`},{default:g(()=>[e(_(R),null,{default:g(()=>[e(_(L),{bordered:!1,type:`info`},{default:g(()=>[h(` Участвуют команд: `+m(ue.value),1)]),_:1}),e(_(L),{type:`info`},{default:g(()=>[h(m(gn.value),1)]),_:1}),_(Te)(N.value.startAt)?(a(),v(_(L),{key:0,type:`info`},{default:g(()=>[h(` Начало: `+m(_(Te)(N.value.startAt)),1)]),_:1})):l(``,!0)]),_:1}),e(_(z),{justify:`end`},{default:g(()=>[e(_(M),{quaternary:``,onClick:s[0]||=e=>Gt(_(Lt),`Админка`)},{default:g(()=>[...s[59]||=[h(` QR `,-1)]]),_:1}),e(_(M),{quaternary:``,onClick:s[1]||=e=>un()},{default:g(()=>[...s[60]||=[h(` Ответы команд `,-1)]]),_:1}),N.value.status==`finish`?(a(),v(_(M),{key:0,quaternary:``,onClick:s[2]||=e=>At()},{default:g(()=>[e(_(G),{class:`settings-icon`},{default:g(()=>[e(_(Be))]),_:1}),s[61]||=h(` Итоги `,-1)]),_:1})):l(``,!0),ue.value?(a(),v(_(M),{key:1,quaternary:``,loading:f.value,disabled:f.value,onClick:s[3]||=e=>kt()},{default:g(()=>[...s[62]||=[h(` QR команд `,-1)]]),_:1},8,[`loading`,`disabled`])):l(``,!0),e(_(M),{quaternary:``,onClick:s[4]||=e=>jt()},{default:g(()=>[e(_(G),{class:`settings-icon`},{default:g(()=>[e(_(ye))]),_:1}),s[63]||=h(` Настройки `,-1)]),_:1}),(N.value.teams?.length||0)==0?(a(),v(_(M),{key:2,type:`error`,quaternary:``,onClick:s[5]||=e=>E.value=!0},{default:g(()=>[...s[64]||=[h(` Удалить игру `,-1)]]),_:1})):l(``,!0),e(_(R),null,{default:g(()=>[N.value.status==`draft`?l(``,!0):(a(),v(_(M),{key:0,type:`info`,dashed:``,onClick:s[6]||=e=>Kt()},{default:g(()=>[e(_(G),null,{default:g(()=>[e(_(Re))]),_:1})]),_:1})),N.value.status==`draft`?(a(),v(_(M),{key:1,type:`info`,dashed:``,onClick:s[7]||=e=>qt()},{default:g(()=>[e(_(G),null,{default:g(()=>[e(_(Ie))]),_:1})]),_:1})):l(``,!0),N.value.status==`pause`?(a(),v(_(M),{key:2,type:`info`,dashed:``,onClick:s[8]||=e=>Yt()},{default:g(()=>[e(_(G),null,{default:g(()=>[e(_(Ie))]),_:1})]),_:1})):l(``,!0),N.value.status==`run`?(a(),v(_(M),{key:3,type:`info`,dashed:``,onClick:s[9]||=e=>Jt()},{default:g(()=>[e(_(G),null,{default:g(()=>[e(_(Pe))]),_:1})]),_:1})):l(``,!0),N.value.status==`finish`?l(``,!0):(a(),v(_(M),{key:4,type:`info`,dashed:``,onClick:s[10]||=e=>Xt()},{default:g(()=>[e(_(G),null,{default:g(()=>[e(_(Me))]),_:1})]),_:1}))]),_:1})]),_:1})]),_:1})]),V.value.length>0?(a(),r(`div`,We,[s[83]||=n(`p`,{class:`screens-title`},`Экраны`,-1),(a(!0),r(u,null,i(V.value,t=>(a(),r(`div`,{key:t.id,class:`screen-row`},[n(`div`,null,[n(`div`,null,`Экран `+m(t.id),1),n(`div`,Ge,m(t.status),1),t.error?(a(),r(`div`,Ke,m(t.error),1)):l(``,!0)]),e(_(z),{justify:`end`},{default:g(()=>[t.soundEnabled?(a(),v(_(L),{key:0,type:`success`},{default:g(()=>[...s[65]||=[h(`Со звуком`,-1)]]),_:1})):(a(),v(_(M),{key:1,size:`small`,onClick:e=>Tt(t)},{default:g(()=>[...s[66]||=[h(`Назначить звук`,-1)]]),_:1},8,[`onClick`])),e(_(M),{size:`small`,type:`error`,ghost:``,onClick:e=>Et(t)},{default:g(()=>[...s[67]||=[h(`Отвязать`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]))),128)),e(_(R),{class:`screen-mode-controls`},{default:g(()=>[e(_(M),{size:`small`,type:K.value===`SCREEN_MODE_COVER`?`primary`:`default`,onClick:s[11]||=e=>Dt(`SCREEN_MODE_COVER`)},{default:g(()=>[...s[68]||=[h(`Обложка`,-1)]]),_:1},8,[`type`]),e(_(M),{size:`small`,type:K.value===`SCREEN_MODE_INTRO`?`primary`:`default`,onClick:s[12]||=e=>Dt(`SCREEN_MODE_INTRO`)},{default:g(()=>[...s[69]||=[h(`Введение`,-1)]]),_:1},8,[`type`]),e(_(M),{size:`small`,type:K.value===`SCREEN_MODE_INTRO_DONE`?`primary`:`default`,onClick:s[13]||=e=>Dt(`SCREEN_MODE_INTRO_DONE`)},{default:g(()=>[...s[70]||=[h(`Успехов`,-1)]]),_:1},8,[`type`]),e(_(M),{size:`small`,type:K.value===`SCREEN_MODE_CONCLUSION`?`primary`:`default`,onClick:s[14]||=e=>Dt(`SCREEN_MODE_CONCLUSION`)},{default:g(()=>[...s[71]||=[h(`Закрывашка`,-1)]]),_:1},8,[`type`]),e(_(M),{size:`small`,type:K.value===`SCREEN_MODE_CONCLUSION_DONE`?`primary`:`default`,onClick:s[15]||=e=>Dt(`SCREEN_MODE_CONCLUSION_DONE`)},{default:g(()=>[...s[72]||=[h(`Спасибо за игру!`,-1)]]),_:1},8,[`type`]),N.value.status===`finish`?(a(),v(_(M),{key:0,size:`small`,type:K.value===`SCREEN_MODE_RESULTS`?`primary`:`default`,onClick:s[16]||=e=>Dt(`SCREEN_MODE_RESULTS`)},{default:g(()=>[...s[73]||=[h(`Результаты`,-1)]]),_:1},8,[`type`])):l(``,!0)]),_:1}),e(_(R),{class:`screen-mode-controls`},{default:g(()=>[e(_(M),{size:`small`,onClick:s[17]||=e=>Q(`SCREEN_COMMAND_PLAY`)},{default:g(()=>[...s[74]||=[h(`Запуск`,-1)]]),_:1}),e(_(M),{size:`small`,onClick:s[18]||=e=>Q(`SCREEN_COMMAND_PAUSE`)},{default:g(()=>[...s[75]||=[h(`Пауза`,-1)]]),_:1}),e(_(M),{size:`small`,onClick:s[19]||=e=>Q(`SCREEN_COMMAND_RESUME`)},{default:g(()=>[...s[76]||=[h(`Продолжить`,-1)]]),_:1}),e(_(M),{size:`small`,onClick:s[20]||=e=>Q(`SCREEN_COMMAND_STOP`)},{default:g(()=>[...s[77]||=[h(`Стоп`,-1)]]),_:1}),e(_(M),{size:`small`,onClick:s[21]||=e=>Q(`SCREEN_COMMAND_REPLAY`)},{default:g(()=>[...s[78]||=[h(`Повтор`,-1)]]),_:1})]),_:1}),e(_(R),{class:`screen-mode-controls`,align:`center`},{default:g(()=>[e(_(B),null,{default:g(()=>[...s[79]||=[h(`Громкость`,-1)]]),_:1}),e(_(Ae),{value:he.value,"onUpdate:value":s[22]||=e=>he.value=e,min:0,max:100,step:5,size:`small`},null,8,[`value`]),e(_(M),{size:`small`,onClick:s[23]||=e=>Q(`SCREEN_COMMAND_VOLUME`)},{default:g(()=>[...s[80]||=[h(`Применить`,-1)]]),_:1}),e(_(B),null,{default:g(()=>[...s[81]||=[h(`Позиция, сек.`,-1)]]),_:1}),e(_(Ae),{value:_e.value,"onUpdate:value":s[24]||=e=>_e.value=e,min:0,step:5,size:`small`},null,8,[`value`]),e(_(M),{size:`small`,onClick:s[25]||=e=>Q(`SCREEN_COMMAND_SEEK`)},{default:g(()=>[...s[82]||=[h(`Перемотать`,-1)]]),_:1})]),_:1})])):l(``,!0),n(`div`,qe,[e(_(z),{align:`center`,justify:`space-between`},{default:g(()=>[s[87]||=n(`p`,{class:`screens-title`},`Карта помещения`,-1),e(_(R),null,{default:g(()=>[e(_(M),{size:`small`,onClick:s[26]||=e=>Le(-.1)},{default:g(()=>[...s[84]||=[h(`−`,-1)]]),_:1}),e(_(B),null,{default:g(()=>[h(m(Math.round(q.value*100))+`%`,1)]),_:1}),e(_(M),{size:`small`,onClick:s[27]||=e=>Le(.1)},{default:g(()=>[...s[85]||=[h(`+`,-1)]]),_:1}),e(_(M),{size:`small`,onClick:ze},{default:g(()=>[...s[86]||=[h(`Сбросить`,-1)]]),_:1})]),_:1})]),_:1}),n(`div`,{class:`map-field`,onPointerdown:xt,onWheel:wt},[n(`div`,{class:`map-canvas`,style:t({transform:`translate(${J.value.x}px, ${J.value.y}px) scale(${q.value})`})},[(a(!0),r(u,null,i(H.value,e=>ie((a(),r(`div`,{key:`${e.kind}-${e.itemId}`,class:re([`map-item`,[e.kind===`screen`?`map-screen`:`map-team`,{"map-team-needs-applications":e.kind===`team`&&I.value.has(e.itemId)}]]),style:t({left:`${e.x||0}px`,top:`${e.y||0}px`}),onPointerdown:W(t=>e.kind===`screen`&&ke(e,t),[`stop`])},[e.kind===`team`?(a(),r(`div`,{key:0,class:`map-team-handle`,onPointerdown:W(t=>ke(e,t),[`stop`])},null,40,Ye)):l(``,!0),n(`span`,null,m(e.label),1),e.kind===`team`&&I.value.has(e.itemId)?(a(),v(_(R),{key:1,class:`map-team-applications`,vertical:``},{default:g(()=>[(a(!0),r(u,null,i(I.value.get(e.itemId)?.applications,t=>(a(),v(_(M),{key:t.name,size:`small`,onClick:n=>Rt(I.value.get(e.itemId),t)},{default:g(()=>[h(` Выдать: `+m(t.name),1)]),_:2},1032,[`onClick`]))),128))]),_:2},1024)):l(``,!0),e.kind===`screen`?(a(),r(`small`,Xe,m(e.status)+m(e.soundEnabled?` · звук`:``),1)):l(``,!0),n(`button`,{class:`map-item-hide`,type:`button`,onPointerdown:s[28]||=W(()=>{},[`stop`]),onClick:W(t=>Fe(e),[`stop`])},` × `,40,Ze)],46,Je)),[[me,!e.hidden]])),128))],4)],32),H.value.some(e=>e.hidden)?(a(),v(_(R),{key:0,class:`map-hidden-items`},{default:g(()=>[(a(!0),r(u,null,i(H.value.filter(e=>e.hidden),e=>(a(),v(_(M),{key:`hidden-${e.kind}-${e.itemId}`,size:`small`,onClick:t=>Fe(e)},{default:g(()=>[h(` Добавить `+m(e.label),1)]),_:2},1032,[`onClick`]))),128))]),_:1})):l(``,!0)]),n(`div`,{class:`team-block team-block-hover`,onClick:s[29]||=e=>w.value=!0},[...s[88]||=[n(`p`,{class:`place-image-plus`},`+`,-1)]]),(a(!0),r(u,null,i(N.value.teams,t=>(a(),r(`div`,{key:t.id,class:`team-block`},[n(`div`,Qe,[e(_(z),{justify:`space-between`},{default:g(()=>[n(`div`,$e,[n(`span`,et,[h(m(t.name)+` `,1),t.captainEmail?(a(),r(`small`,tt,` — `+m(t.captainEmail),1)):l(``,!0),t.participantsCount?(a(),r(`small`,nt,` · Участников: `+m(t.participantsCount),1)):l(``,!0)]),t.captainEmail||t.participationStatus!==`pending`?(a(),r(`div`,rt,[h(m(P.find(e=>e.value===t.participationStatus)?.label),1),t.participationSource===`automatic`?(a(),r(`span`,it,` · автоматически`)):l(``,!0)])):l(``,!0),t.captainEmail?t.participationEmailError?(a(),r(`div`,ot,` Ошибка отправки: `+m(t.participationEmailError),1)):t.participationEmailSent?(a(),r(`div`,st,`Письмо отправлено`)):l(``,!0):(a(),r(`div`,at,`Почта капитана не указана`)),t.participationStatus===`cancelled`?l(``,!0):(a(),r(`div`,ct,` Поездки: `+m(t.actionsCount),1))]),e(_(z),{justify:`end`},{default:g(()=>[t.participationStatus===`cancelled`?l(``,!0):(a(),v(_(M),{key:0,onClick:e=>Gt(Wt(t.id,t.password),`Подсмотреть игру`)},{default:g(()=>[...s[89]||=[h(` QR `,-1)]]),_:1},8,[`onClick`])),t.participationStatus===`cancelled`?l(``,!0):(a(),v(_(M),{key:1,onClick:e=>Ot(t.id,t.password,!0)},{default:g(()=>[...s[90]||=[h(` Подсмотреть игру `,-1)]]),_:1},8,[`onClick`])),e(_(M),{type:`error`,ghost:``,onClick:e=>Vt(t)},{default:g(()=>[...s[91]||=[h(` Удалить `,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]),_:2},1024),(a(!0),r(u,null,i(t.applications,e=>(a(),v(_(M),{key:e.name,class:`link-button`,onClick:n=>Rt(t,e)},{default:g(()=>[h(` Выдать: `+m(e.name),1)]),_:2},1032,[`onClick`]))),128))])]))),128))])]),e(_(A),{show:x.value,"onUpdate:show":s[35]||=e=>x.value=e},{default:g(()=>[e(_(O),{style:{width:`600px`},title:`Настройки игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":g(()=>[e(_(M),{onClick:s[30]||=e=>Mt()},{default:g(()=>[...s[92]||=[h(` x `,-1)]]),_:1})]),footer:g(()=>[e(_(z),{justify:`end`},{default:g(()=>[e(_(M),{onClick:s[34]||=e=>Nt(),ghost:``},{default:g(()=>[...s[96]||=[h(` Сохранить изменения `,-1)]]),_:1})]),_:1})]),default:g(()=>[e(_(R),{vertical:``},{default:g(()=>[s[93]||=n(`p`,null,`Название`,-1),e(_(F),{value:S.value.name,"onUpdate:value":s[31]||=e=>S.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),s[94]||=n(`p`,{class:`settings-header`},`Формат игры`,-1),e(_(le),{value:S.value.format,"onUpdate:value":s[32]||=e=>S.value.format=e,options:[{label:`Online`,value:`online`},{label:`Offline`,value:`offline`}],"aria-label":`Формат игры`},null,8,[`value`]),s[95]||=n(`p`,{class:`settings-header`},`Описание`,-1),e(_(F),{value:S.value.description,"onUpdate:value":s[33]||=e=>S.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),e(_(A),{show:C.value,"onUpdate:show":s[38]||=e=>C.value=e},{default:g(()=>[e(_(O),{style:{width:`600px`},title:`Настройки игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":g(()=>[e(_(M),{onClick:s[36]||=e=>C.value=!1},{default:g(()=>[...s[97]||=[h(` x `,-1)]]),_:1})]),footer:g(()=>[e(_(z),{justify:`end`},{default:g(()=>[e(_(M),{onClick:s[37]||=e=>Bt(),ghost:``},{default:g(()=>[...s[100]||=[h(` Выдать `,-1)]]),_:1})]),_:1})]),default:g(()=>[e(_(R),{vertical:``},{default:g(()=>[s[98]||=n(`p`,null,`Команда`,-1),n(`h3`,null,m(Pt.value.name),1),s[99]||=n(`p`,null,`Улика`,-1),n(`h3`,null,m($.value.name),1),_(Se)($.value)==`image`&&$.value.image?(a(),r(`div`,lt,[n(`img`,{src:_(Ce)($.value.image),class:`give-application-image`},null,8,ut)])):_(Se)($.value)==`audio`&&$.value.image?(a(),r(`audio`,{key:1,src:_(Ce)($.value.image),controls:``,preload:`none`,class:`give-application-audio`},null,8,dt)):_(Se)($.value)==`pdf`&&$.value.image?(a(),r(`a`,{key:2,href:_(Ce)($.value.image),target:`_blank`,rel:`noopener`,class:`give-application-pdf-link`},` PDF `,8,ft)):l(``,!0)]),_:1})]),_:1})]),_:1},8,[`show`]),e(_(A),{show:w.value,"onUpdate:show":s[43]||=e=>w.value=e},{default:g(()=>[e(_(O),{style:{width:`600px`},title:`Создание команды`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":g(()=>[e(_(M),{onClick:s[39]||=e=>w.value=!1},{default:g(()=>[...s[101]||=[h(` x `,-1)]]),_:1})]),footer:g(()=>[e(_(z),{justify:`end`},{default:g(()=>[e(_(M),{onClick:s[42]||=e=>zt(),disabled:D.value.length==0},{default:g(()=>[...s[102]||=[h(` Создать `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:g(()=>[e(_(R),{vertical:``},{default:g(()=>[e(_(F),{value:D.value,"onUpdate:value":s[40]||=e=>D.value=e,type:`text`,placeholder:`Три дебила`},null,8,[`value`]),e(_(F),{value:k.value,"onUpdate:value":s[41]||=e=>k.value=e,"input-props":{type:`email`,autocomplete:`email`},placeholder:`Почта капитана (необязательно)`,"aria-label":`Почта капитана (необязательно)`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),e(_(A),{show:T.value,"onUpdate:show":s[47]||=e=>T.value=e},{default:g(()=>[e(_(O),{style:{width:`600px`},title:`Удаление команды`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":g(()=>[e(_(M),{onClick:s[44]||=e=>T.value=!1},{default:g(()=>[...s[103]||=[h(` x `,-1)]]),_:1})]),footer:g(()=>[e(_(z),{justify:`end`},{default:g(()=>[e(_(M),{onClick:s[46]||=e=>Ht(),disabled:Ft.value!=It.value.name},{default:g(()=>[...s[106]||=[h(` Удалить `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:g(()=>[e(_(R),{vertical:``},{default:g(()=>[n(`p`,null,[s[104]||=h(` Введите название команды `,-1),e(_(B),{class:`name-text`,strong:``},{default:g(()=>[h(m(It.value.name),1)]),_:1}),s[105]||=h(` чтобы удалить его `,-1)]),e(_(F),{value:Ft.value,"onUpdate:value":s[45]||=e=>Ft.value=e,type:`text`,placeholder:`Три дебила`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),e(_(A),{show:E.value,"onUpdate:show":s[51]||=e=>E.value=e},{default:g(()=>[e(_(O),{style:{width:`600px`},title:`Удаление игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":g(()=>[e(_(M),{onClick:s[48]||=e=>E.value=!1},{default:g(()=>[...s[107]||=[h(` x `,-1)]]),_:1})]),footer:g(()=>[e(_(z),{justify:`end`},{default:g(()=>[e(_(M),{onClick:s[50]||=e=>Ut(),disabled:oe.value!=N.value.name},{default:g(()=>[...s[110]||=[h(` Удалить `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:g(()=>[e(_(R),{vertical:``},{default:g(()=>[n(`p`,null,[s[108]||=h(` Введите название игры `,-1),e(_(B),{class:`name-text`,strong:``},{default:g(()=>[h(m(N.value.name),1)]),_:1}),s[109]||=h(` чтобы удалить её `,-1)]),e(_(F),{value:oe.value,"onUpdate:value":s[49]||=e=>oe.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),e(_(A),{show:se.value,"onUpdate:show":s[53]||=e=>se.value=e},{default:g(()=>[e(_(O),{style:{width:`600px`},title:j.value,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":g(()=>[e(_(M),{onClick:s[52]||=e=>se.value=!1},{default:g(()=>[...s[111]||=[h(` x `,-1)]]),_:1})]),footer:g(()=>[...s[112]||=[]]),default:g(()=>[e(_(R),{vertical:``},{default:g(()=>[n(`div`,pt,[e(_(pe),{value:ce.value,size:300,padding:0},null,8,[`value`])])]),_:1})]),_:1},8,[`title`])]),_:1},8,[`show`]),e(_(A),{show:Zt.value,"onUpdate:show":s[56]||=e=>Zt.value=e},{default:g(()=>[e(_(O),{style:{width:`min(94vw, 900px)`},title:`Ответы команд`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`,"content-style":{maxHeight:`70vh`,overflow:`auto`}},{"header-extra":g(()=>[e(_(M),{onClick:s[54]||=e=>Zt.value=!1},{default:g(()=>[...s[113]||=[h(` x `,-1)]]),_:1})]),footer:g(()=>[e(_(z),{justify:`end`},{default:g(()=>[e(_(M),{onClick:s[55]||=e=>pn(),disabled:nn.value.length==0},{default:g(()=>[...s[116]||=[h(` Сохранить баллы `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:g(()=>[nn.value.length==0?(a(),r(`div`,mt,` Вопросы дела не заданы или команды ещё не отвечали. `)):l(``,!0),(a(!0),r(u,null,i(nn.value,t=>(a(),r(`div`,{key:t.code,class:`answers-question-block`},[n(`p`,ht,m(t.code)+`: `+m(t.text),1),n(`p`,gt,[s[114]||=h(` Правильный ответ:`,-1),s[115]||=n(`br`,null,null,-1),n(`span`,_t,m(t.answer||`—`),1)]),(a(!0),r(u,null,i(rn.value,i=>(a(),r(`div`,{key:i.team?.id,class:`answers-team-row`},[n(`div`,vt,m(i.team?.name),1),n(`div`,yt,m(sn(i,t.code)||`—`),1),e(_(Ae),{value:an.value[on(i.team?.id,t.code)],"onUpdate:value":e=>cn(on(i.team?.id,t.code),e),placeholder:`Балл`,class:`answers-score-input`},null,8,[`value`,`onUpdate:value`])]))),128))]))),128))]),_:1})]),_:1},8,[`show`]),e(_(A),{show:Qt.value,"onUpdate:show":s[58]||=e=>Qt.value=e},{default:g(()=>[e(_(O),{style:{width:`min(94vw, 800px)`},title:`Отзывы игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`,"content-style":{maxHeight:`70vh`,overflow:`auto`}},{"header-extra":g(()=>[e(_(M),{onClick:s[57]||=e=>Qt.value=!1},{default:g(()=>[...s[117]||=[h(` x `,-1)]]),_:1})]),default:g(()=>[e(_(z),{align:`center`,class:`reviews-summary`},{default:g(()=>[e(_(fe),{value:en.value,readonly:``,"allow-half":``},null,8,[`value`]),n(`span`,null,m(tn.value?`${en.value.toFixed(1)} · ${tn.value}`:`Пока нет отзывов`),1)]),_:1}),$t.value.length==0?(a(),r(`div`,bt,`Отзывов пока нет.`)):l(``,!0),(a(!0),r(u,null,i($t.value,t=>(a(),r(`div`,{key:t.id,class:`review-row`},[e(_(z),{justify:`space-between`,align:`center`},{default:g(()=>[n(`strong`,null,m(t.teamName),1),e(_(L),null,{default:g(()=>[h(m(t.status),1)]),_:2},1024)]),_:2},1024),e(_(fe),{value:t.rating,readonly:``,size:`small`},null,8,[`value`]),n(`p`,null,m(t.text),1),t.status==`pending`?(a(),v(_(z),{key:0,justify:`end`},{default:g(()=>[e(_(M),{type:`success`,onClick:e=>fn(t,`approved`)},{default:g(()=>[...s[118]||=[h(`Одобрить`,-1)]]),_:1},8,[`onClick`]),e(_(M),{type:`error`,ghost:``,onClick:e=>fn(t,`rejected`)},{default:g(()=>[...s[119]||=[h(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):t.status==`approved`?(a(),v(_(z),{key:1,justify:`end`},{default:g(()=>[e(_(M),{type:`error`,ghost:``,onClick:e=>fn(t,`hidden`)},{default:g(()=>[...s[120]||=[h(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):l(``,!0)]))),128))]),_:1})]),_:1},8,[`show`]),e(ve,{active:`games`})],64))}}),[[`__scopeId`,`data-v-79a9bcbe`]]),St=p({__name:`GameView`,setup(e){return(e,t)=>(a(),v(xt))}});export{St as default}; \ No newline at end of file diff --git a/dist/assets/GamesView-CdYFEBT8.js b/dist/assets/GamesView-iKvbJg0m.js similarity index 99% rename from dist/assets/GamesView-CdYFEBT8.js rename to dist/assets/GamesView-iKvbJg0m.js index 8d0b5ac..8b980bd 100644 --- a/dist/assets/GamesView-CdYFEBT8.js +++ b/dist/assets/GamesView-iKvbJg0m.js @@ -1,4 +1,4 @@ -import{A as e,B as t,C as n,E as r,F as i,J as a,K as o,P as s,R as c,S as l,T as u,U as d,V as f,_ as ee,ct as p,d as te,dt as m,et as ne,j as h,jt as g,k as _,nt as v,ot as y,pt as b,q as re,rt as x,st as S,tt as C,w}from"./auth-DetOXv90.js";import{G as T,I as E,J as D,K as O,L as ie,M as ae,N as oe,X as k,Y as A,Z as se,r as ce,z as j}from"./light-BN35I8ot.js";import{a as le,i as M,o as N,t as ue}from"./Follower-BqBATTTc.js";import{l as de,s as P,u as fe}from"./utils-uz9aUEjP.js";import{d as pe,f as me,i as F,t as he,u as ge}from"./Card-BFXpokQN.js";import{a as _e,i as I,r as L}from"./resolve-slot-DXnJRg0o.js";import{a as ve,i as ye,n as be,u as xe,v as R}from"./Suffix-CutOgybq.js";import{t as Se}from"./Modal-Cc3YqyVW.js";import{t as Ce}from"./use-merged-state-Dw19ICqg.js";import{n as we,t as z}from"./Button-SFBLnAwv.js";import{r as Te}from"./keep-XDVR1tb6.js";import{t as Ee}from"./Select-BQvr1qOg.js";import{n as De,r as B}from"./use-form-item-CT1L1ziV.js";import{t as Oe}from"./Input-CM5axX8S.js";import{t as ke}from"./use-message-bV_QZwc3.js";import{t as Ae}from"./Space-B98o1YSA.js";import{t as je}from"./Flex-SLIxZFiS.js";import{B as Me,H as Ne,J as Pe,Z as Fe,g as Ie,h as Le,nt as Re}from"./index-UYw_T9_p.js";import{r as ze,t as Be}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as Ve}from"./HeaderMenu-BV7MwsiN.js";import{t as He}from"./datetime-BJNH0M1T.js";function Ue(e={},n){let r=y({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:a}=e,o=e=>{switch(e.key){case`Control`:r.ctrl=!0;break;case`Meta`:r.command=!0,r.win=!0;break;case`Shift`:r.shift=!0;break;case`Tab`:r.tab=!0;break}i!==void 0&&Object.keys(i).forEach(t=>{if(t!==e.key)return;let n=i[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},s=e=>{switch(e.key){case`Control`:r.ctrl=!1;break;case`Meta`:r.command=!1,r.win=!1;break;case`Shift`:r.shift=!1;break;case`Tab`:r.tab=!1;break}a!==void 0&&Object.keys(a).forEach(t=>{if(t!==e.key)return;let n=a[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},c=()=>{(n===void 0||n.value)&&(pe(`keydown`,document,o),pe(`keyup`,document,s)),n!==void 0&&ne(n,e=>{e?(pe(`keydown`,document,o),pe(`keyup`,document,s)):(ge(`keydown`,document,o),ge(`keyup`,document,s))})};return R()?(t(c),f(()=>{(n===void 0||n.value)&&(ge(`keydown`,document,o),ge(`keyup`,document,s))})):c(),S(r)}var We=365.2425,Ge=6048e5,Ke=864e5,qe=6e4,Je=36e5,Ye=1e3,Xe=3600*24;Xe*7,Xe*We/12*3;var Ze=Symbol.for(`constructDateFrom`);function V(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Ze in e?e[Ze](t):e instanceof Date?new e.constructor(t):new Date(t)}function Qe(e,...t){let n=V.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}var $e={};function et(){return $e}function H(e,t){return V(t||e,e)}function tt(e,t){let n=et(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=H(e,t?.in),a=i.getDay(),o=(as(`svg`,{width:`28px`,height:`28px`,viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},s(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},s(`g`,{"fill-rule":`nonzero`},s(`path`,{d:`M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z`}))))),at=h({name:`FastBackward`,render(){return s(`svg`,{viewBox:`0 0 20 20`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},s(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},s(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},s(`path`,{d:`M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z`}))))}}),ot=h({name:`FastForward`,render(){return s(`svg`,{viewBox:`0 0 20 20`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},s(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},s(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},s(`path`,{d:`M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z`}))))}}),st=h({name:`Forward`,render(){return s(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},s(`path`,{d:`M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z`,fill:`currentColor`}))}}),ct=Me(`time`,()=>s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},s(`path`,{d:`M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z`,style:` +import{A as e,B as t,C as n,E as r,F as i,J as a,K as o,P as s,R as c,S as l,T as u,U as d,V as f,_ as ee,ct as p,d as te,dt as m,et as ne,j as h,jt as g,k as _,nt as v,ot as y,pt as b,q as re,rt as x,st as S,tt as C,w}from"./auth-CzuN8bsR.js";import{G as T,I as E,J as D,K as O,L as ie,M as ae,N as oe,X as k,Y as A,Z as se,r as ce,z as j}from"./light-Dg5iONHF.js";import{a as le,i as M,o as N,t as ue}from"./Follower-BeUAmPJ4.js";import{l as de,s as P,u as fe}from"./utils-Av1b4W6Q.js";import{d as pe,f as me,i as F,t as he,u as ge}from"./Card-jY6IqKWx.js";import{a as _e,i as I,r as L}from"./resolve-slot-Bgp_Mn8k.js";import{a as ve,i as ye,n as be,u as xe,v as R}from"./Suffix-PHRsdJdH.js";import{t as Se}from"./Modal-COuHyUKC.js";import{t as Ce}from"./use-merged-state-D8rNARXC.js";import{n as we,t as z}from"./Button-_KVJEFbE.js";import{r as Te}from"./keep-D5zQL9t4.js";import{t as Ee}from"./Select-BAqObS0Q.js";import{n as De,r as B}from"./use-form-item-DDZTyeAQ.js";import{t as Oe}from"./Input-jiXpa-nM.js";import{t as ke}from"./use-message-R8JEzJ8f.js";import{t as Ae}from"./Space-BumyB3cS.js";import{t as je}from"./Flex-ISd7TnC9.js";import{B as Me,H as Ne,J as Pe,Z as Fe,g as Ie,h as Le,nt as Re}from"./index-4mSiwzFS.js";import{r as ze,t as Be}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as Ve}from"./HeaderMenu-Qspj3Vlt.js";import{t as He}from"./datetime-BJNH0M1T.js";function Ue(e={},n){let r=y({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:a}=e,o=e=>{switch(e.key){case`Control`:r.ctrl=!0;break;case`Meta`:r.command=!0,r.win=!0;break;case`Shift`:r.shift=!0;break;case`Tab`:r.tab=!0;break}i!==void 0&&Object.keys(i).forEach(t=>{if(t!==e.key)return;let n=i[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},s=e=>{switch(e.key){case`Control`:r.ctrl=!1;break;case`Meta`:r.command=!1,r.win=!1;break;case`Shift`:r.shift=!1;break;case`Tab`:r.tab=!1;break}a!==void 0&&Object.keys(a).forEach(t=>{if(t!==e.key)return;let n=a[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},c=()=>{(n===void 0||n.value)&&(pe(`keydown`,document,o),pe(`keyup`,document,s)),n!==void 0&&ne(n,e=>{e?(pe(`keydown`,document,o),pe(`keyup`,document,s)):(ge(`keydown`,document,o),ge(`keyup`,document,s))})};return R()?(t(c),f(()=>{(n===void 0||n.value)&&(ge(`keydown`,document,o),ge(`keyup`,document,s))})):c(),S(r)}var We=365.2425,Ge=6048e5,Ke=864e5,qe=6e4,Je=36e5,Ye=1e3,Xe=3600*24;Xe*7,Xe*We/12*3;var Ze=Symbol.for(`constructDateFrom`);function V(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Ze in e?e[Ze](t):e instanceof Date?new e.constructor(t):new Date(t)}function Qe(e,...t){let n=V.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}var $e={};function et(){return $e}function H(e,t){return V(t||e,e)}function tt(e,t){let n=et(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=H(e,t?.in),a=i.getDay(),o=(as(`svg`,{width:`28px`,height:`28px`,viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},s(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},s(`g`,{"fill-rule":`nonzero`},s(`path`,{d:`M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z`}))))),at=h({name:`FastBackward`,render(){return s(`svg`,{viewBox:`0 0 20 20`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},s(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},s(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},s(`path`,{d:`M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z`}))))}}),ot=h({name:`FastForward`,render(){return s(`svg`,{viewBox:`0 0 20 20`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},s(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},s(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},s(`path`,{d:`M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z`}))))}}),st=h({name:`Forward`,render(){return s(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},s(`path`,{d:`M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z`,fill:`currentColor`}))}}),ct=Me(`time`,()=>s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},s(`path`,{d:`M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z`,style:` fill: none; stroke: currentColor; stroke-miterlimit: 10; diff --git a/dist/assets/HeaderMenu-BaN-nOUm.css b/dist/assets/HeaderMenu-BaN-nOUm.css deleted file mode 100644 index 29e20bc..0000000 --- a/dist/assets/HeaderMenu-BaN-nOUm.css +++ /dev/null @@ -1 +0,0 @@ -.menu-block[data-v-f920c62b]{background-color:#222;justify-content:space-between;align-items:center;width:100%;height:70px;padding:20px;display:flex;position:fixed;top:0;left:0}.menu-item-block[data-v-f920c62b]{cursor:pointer;margin-left:10px;padding:5px;font-size:1.1em;display:inline-block}.menu-item-block[data-v-f920c62b]:hover{color:#63e2b7;opacity:.8}.right[data-v-f920c62b]{margin-left:auto}.active[data-v-f920c62b]{color:#63e2b7}@media (width>=1024px){.burger-button[data-v-f920c62b]{display:none}}@media (width<1024px){.menu-buttons-block[data-v-f920c62b]{background-color:#222;flex-direction:column;width:100%;padding-bottom:5px;display:flex;position:fixed;top:70px;left:0}.menu-buttons-block div[data-v-f920c62b]{padding:15px 5px}.menu-buttons-block-active[data-v-f920c62b]{position:relative;top:-1000px}.burger-icon[data-v-f920c62b]{position:relative;top:5px}} diff --git a/dist/assets/HeaderMenu-BV7MwsiN.js b/dist/assets/HeaderMenu-Qspj3Vlt.js similarity index 74% rename from dist/assets/HeaderMenu-BV7MwsiN.js rename to dist/assets/HeaderMenu-Qspj3Vlt.js index 3c96f1f..047b0d9 100644 --- a/dist/assets/HeaderMenu-BV7MwsiN.js +++ b/dist/assets/HeaderMenu-Qspj3Vlt.js @@ -1 +1 @@ -import{A as e,C as t,E as n,K as r,T as i,ct as a,d as o,j as s,kt as c,nt as l,pt as u,t as d}from"./auth-DetOXv90.js";import{n as f,r as p,t as m}from"./_plugin-vue_export-helper-7lqdtqme.js";var h={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},g=s({name:`MenuOutlined`,render:function(e,i){return r(),n(`svg`,h,i[0]||=[t(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),_={class:`menu-block`},v={class:`right-group`},y=m(s({__name:`HeaderMenu`,props:{active:{type:String,required:!1}},setup(s){let m=s,h=d(),y=o(),b=p(),x=a([]);async function S(){x.value=[];let e=await b.GetPermissions({});x.value=e.permissions}S();function C(e){return x.value.includes(e)}let w=()=>{y.push(`/login`)},T=()=>{h.logout(),y.push(`/login`)},E=a(!1);return(a,o)=>(r(),n(`div`,_,[t(`div`,{onClick:o[0]||=e=>E.value=!E.value,class:`burger-button`},[e(u(f),{class:`burger-icon`,size:`28`},{default:l(()=>[e(u(g))]),_:1})]),t(`div`,{class:c([`left-group menu-buttons-block`,E.value?``:`menu-buttons-block-active`])},[t(`div`,{class:c([`menu-item-block`,{active:m.active==`main`}]),onClick:o[1]||=e=>u(y).push(`/`)},` Главная `,2),u(h).hasRole(`user`)?(r(),n(`div`,{key:0,class:c([`menu-item-block`,{active:m.active==`office`}]),onClick:o[2]||=e=>u(y).push(`/office`)},` Кабинет `,2)):i(``,!0),C(`games_page`)?(r(),n(`div`,{key:1,class:c([`menu-item-block`,{active:m.active==`games`}]),onClick:o[3]||=e=>u(y).push(`/games`)},` Игры `,2)):i(``,!0),t(`div`,{class:c([`menu-item-block`,{active:m.active==`catalog`}]),onClick:o[4]||=e=>u(y).push(`/catalog`)},` Каталог `,2),C(`scenarios_page`)?(r(),n(`div`,{key:2,class:c([`menu-item-block`,{active:m.active==`scenarios`}]),onClick:o[5]||=e=>u(y).push(`/scenarios`)},` Мои сценарии `,2)):i(``,!0),C(`users_page`)?(r(),n(`div`,{key:3,class:c([`menu-item-block`,{active:m.active==`users`}]),onClick:o[6]||=e=>u(y).push(`/users`)},` Пользователи `,2)):i(``,!0)],2),t(`div`,v,[u(h).isAuthenticated?i(``,!0):(r(),n(`div`,{key:0,class:`menu-item-block right`,onClick:w},` Войти `)),u(h).isAuthenticated?(r(),n(`div`,{key:1,class:`menu-item-block right`,onClick:T},` Выйти `)):i(``,!0)])]))}}),[[`__scopeId`,`data-v-f920c62b`]]);export{y as t}; \ No newline at end of file +import{A as e,C as t,E as n,K as r,T as i,ct as a,d as o,j as s,kt as c,nt as l,pt as u,t as d}from"./auth-CzuN8bsR.js";import{n as f,r as p,t as m}from"./_plugin-vue_export-helper-C_XTvH5A.js";var h={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},g=s({name:`MenuOutlined`,render:function(e,i){return r(),n(`svg`,h,i[0]||=[t(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),_={class:`menu-block`},v={class:`right-group`},y=m(s({__name:`HeaderMenu`,props:{active:{type:String,required:!1}},setup(s){let m=s,h=d(),y=o(),b=p(),x=a([]);async function S(){x.value=[];let e=await b.GetPermissions({});x.value=e.permissions}S();function C(e){return x.value.includes(e)}let w=()=>{y.push(`/login`)},T=()=>{h.logout(),y.push(`/login`)},E=a(!1);return(a,o)=>(r(),n(`div`,_,[t(`div`,{onClick:o[0]||=e=>E.value=!E.value,class:`burger-button`},[e(u(f),{class:`burger-icon`,size:`28`},{default:l(()=>[e(u(g))]),_:1})]),t(`div`,{class:c([`left-group menu-buttons-block`,E.value?``:`menu-buttons-block-active`])},[t(`div`,{class:c([`menu-item-block`,{active:m.active==`main`}]),onClick:o[1]||=e=>u(y).push(`/`)},` Главная `,2),u(h).hasRole(`user`)?(r(),n(`div`,{key:0,class:c([`menu-item-block`,{active:m.active==`office`}]),onClick:o[2]||=e=>u(y).push(`/office`)},` Кабинет `,2)):i(``,!0),C(`games_page`)?(r(),n(`div`,{key:1,class:c([`menu-item-block`,{active:m.active==`games`}]),onClick:o[3]||=e=>u(y).push(`/games`)},` Игры `,2)):i(``,!0),t(`div`,{class:c([`menu-item-block`,{active:m.active==`catalog`}]),onClick:o[4]||=e=>u(y).push(`/catalog`)},` Каталог `,2),C(`scenarios_page`)?(r(),n(`div`,{key:2,class:c([`menu-item-block`,{active:m.active==`scenarios`}]),onClick:o[5]||=e=>u(y).push(`/scenarios`)},` Мои сценарии `,2)):i(``,!0),C(`users_page`)?(r(),n(`div`,{key:3,class:c([`menu-item-block`,{active:m.active==`users`}]),onClick:o[6]||=e=>u(y).push(`/users`)},` Пользователи `,2)):i(``,!0),C(`reviews_page`)?(r(),n(`div`,{key:4,class:c([`menu-item-block`,{active:m.active==`reviews`}]),onClick:o[7]||=e=>u(y).push(`/reviews`)},` Отзывы `,2)):i(``,!0)],2),t(`div`,v,[u(h).isAuthenticated?i(``,!0):(r(),n(`div`,{key:0,class:`menu-item-block right`,onClick:w},` Войти `)),u(h).isAuthenticated?(r(),n(`div`,{key:1,class:`menu-item-block right`,onClick:T},` Выйти `)):i(``,!0)])]))}}),[[`__scopeId`,`data-v-f4b163cd`]]);export{y as t}; \ No newline at end of file diff --git a/dist/assets/HeaderMenu-xpgysPwY.css b/dist/assets/HeaderMenu-xpgysPwY.css new file mode 100644 index 0000000..bc02e3e --- /dev/null +++ b/dist/assets/HeaderMenu-xpgysPwY.css @@ -0,0 +1 @@ +.menu-block[data-v-f4b163cd]{background-color:#222;justify-content:space-between;align-items:center;width:100%;height:70px;padding:20px;display:flex;position:fixed;top:0;left:0}.menu-item-block[data-v-f4b163cd]{cursor:pointer;margin-left:10px;padding:5px;font-size:1.1em;display:inline-block}.menu-item-block[data-v-f4b163cd]:hover{color:#63e2b7;opacity:.8}.right[data-v-f4b163cd]{margin-left:auto}.active[data-v-f4b163cd]{color:#63e2b7}@media (width>=1024px){.burger-button[data-v-f4b163cd]{display:none}}@media (width<1024px){.menu-buttons-block[data-v-f4b163cd]{background-color:#222;flex-direction:column;width:100%;padding-bottom:5px;display:flex;position:fixed;top:70px;left:0}.menu-buttons-block div[data-v-f4b163cd]{padding:15px 5px}.menu-buttons-block-active[data-v-f4b163cd]{position:relative;top:-1000px}.burger-icon[data-v-f4b163cd]{position:relative;top:5px}} diff --git a/dist/assets/HeaderText-DhMm0KRw.js b/dist/assets/HeaderText--_Iy26DF.js similarity index 58% rename from dist/assets/HeaderText-DhMm0KRw.js rename to dist/assets/HeaderText--_Iy26DF.js index 84a2aa4..9ae7a00 100644 --- a/dist/assets/HeaderText-DhMm0KRw.js +++ b/dist/assets/HeaderText--_Iy26DF.js @@ -1 +1 @@ -import{E as e,K as t,Y as n,j as r}from"./auth-DetOXv90.js";import{t as i}from"./_plugin-vue_export-helper-7lqdtqme.js";var a={class:`text-with-font`},o=i(r({__name:`HeaderText`,setup(r){return(r,i)=>(t(),e(`span`,a,[n(r.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-689794e0`]]);export{o as t}; \ No newline at end of file +import{E as e,K as t,Y as n,j as r}from"./auth-CzuN8bsR.js";import{t as i}from"./_plugin-vue_export-helper-C_XTvH5A.js";var a={class:`text-with-font`},o=i(r({__name:`HeaderText`,setup(r){return(r,i)=>(t(),e(`span`,a,[n(r.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-689794e0`]]);export{o as t}; \ No newline at end of file diff --git a/dist/assets/HomeView-Odksypfy.js b/dist/assets/HomeView-P7HmrCBa.js similarity index 74% rename from dist/assets/HomeView-Odksypfy.js rename to dist/assets/HomeView-P7HmrCBa.js index 66dc481..89e3ec2 100644 --- a/dist/assets/HomeView-Odksypfy.js +++ b/dist/assets/HomeView-P7HmrCBa.js @@ -1 +1 @@ -import{A as e,C as t,E as n,K as r,_ as i,j as a}from"./auth-DetOXv90.js";import{t as o}from"./HeaderMenu-BV7MwsiN.js";var s=a({__name:`HomeView`,setup(a){return(a,s)=>(r(),n(i,null,[s[0]||=t(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[t(`div`,null,[t(`h1`,{class:`font-text`},`Вечерний детектив`),t(`h3`,{class:`font-text`},`Дело №0`),t(`p`,{class:`content-text`},`Поиграем?`)])],-1),e(o,{active:`main`})],64))}});export{s as default}; \ No newline at end of file +import{A as e,C as t,E as n,K as r,_ as i,j as a}from"./auth-CzuN8bsR.js";import{t as o}from"./HeaderMenu-Qspj3Vlt.js";var s=a({__name:`HomeView`,setup(a){return(a,s)=>(r(),n(i,null,[s[0]||=t(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[t(`div`,null,[t(`h1`,{class:`font-text`},`Вечерний детектив`),t(`h3`,{class:`font-text`},`Дело №0`),t(`p`,{class:`content-text`},`Поиграем?`)])],-1),e(o,{active:`main`})],64))}});export{s as default}; \ No newline at end of file diff --git a/dist/assets/Input-CM5axX8S.js b/dist/assets/Input-jiXpa-nM.js similarity index 98% rename from dist/assets/Input-CM5axX8S.js rename to dist/assets/Input-jiXpa-nM.js index 4083ae2..7494aec 100644 --- a/dist/assets/Input-CM5axX8S.js +++ b/dist/assets/Input-jiXpa-nM.js @@ -1,4 +1,4 @@ -import{F as e,M as t,P as n,R as r,S as i,U as a,_ as o,ct as s,dt as c,et as l,j as u,q as ee,tt as d}from"./auth-DetOXv90.js";import{G as f,J as p,K as m,M as te,N as ne,X as h,Y as g,Z as _,i as re,o as ie,r as v,z as y}from"./light-BN35I8ot.js";import{c as b,d as x,i as S,u as C}from"./Card-BFXpokQN.js";import{a as w,c as ae,i as T,r as E}from"./resolve-slot-DXnJRg0o.js";import{i as oe,r as D,t as O}from"./Suffix-CutOgybq.js";import{t as se}from"./use-merged-state-Dw19ICqg.js";import{i as ce}from"./Button-SFBLnAwv.js";import{n as le,r as k}from"./use-form-item-CT1L1ziV.js";import{C as ue,H as A,Y as j}from"./index-UYw_T9_p.js";var M=u({name:`Eye`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`32`}),n(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),N=u({name:`EyeOff`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z`,fill:`currentColor`}),n(`path`,{d:`M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z`,fill:`currentColor`}),n(`path`,{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z`,fill:`currentColor`}),n(`path`,{d:`M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z`,fill:`currentColor`}),n(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),P=y(`n-input`),de=m(`input`,` +import{F as e,M as t,P as n,R as r,S as i,U as a,_ as o,ct as s,dt as c,et as l,j as u,q as ee,tt as d}from"./auth-CzuN8bsR.js";import{G as f,J as p,K as m,M as te,N as ne,X as h,Y as g,Z as _,i as re,o as ie,r as v,z as y}from"./light-Dg5iONHF.js";import{c as b,d as x,i as S,u as C}from"./Card-jY6IqKWx.js";import{a as w,c as ae,i as T,r as E}from"./resolve-slot-Bgp_Mn8k.js";import{i as oe,r as D,t as O}from"./Suffix-PHRsdJdH.js";import{t as se}from"./use-merged-state-D8rNARXC.js";import{i as ce}from"./Button-_KVJEFbE.js";import{n as le,r as k}from"./use-form-item-DDZTyeAQ.js";import{C as ue,H as A,Y as j}from"./index-4mSiwzFS.js";var M=u({name:`Eye`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`32`}),n(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),N=u({name:`EyeOff`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z`,fill:`currentColor`}),n(`path`,{d:`M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z`,fill:`currentColor`}),n(`path`,{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z`,fill:`currentColor`}),n(`path`,{d:`M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z`,fill:`currentColor`}),n(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),P=y(`n-input`),de=m(`input`,` max-width: 100%; cursor: text; line-height: 1.5; diff --git a/dist/assets/LoginView-B4bTBzE0.js b/dist/assets/LoginView-B1lGgObI.js similarity index 97% rename from dist/assets/LoginView-B4bTBzE0.js rename to dist/assets/LoginView-B1lGgObI.js index 1f2bc71..cf2b8a2 100644 --- a/dist/assets/LoginView-B4bTBzE0.js +++ b/dist/assets/LoginView-B1lGgObI.js @@ -1,4 +1,4 @@ -import{A as e,C as t,E as n,F as r,K as i,L as a,P as o,R as s,S as c,U as l,_ as u,ct as d,d as f,dt as p,et as m,j as h,k as g,nt as _,pt as v,q as y,rt as b,t as x,tt as S,x as C}from"./auth-DetOXv90.js";import{$ as w,E as T,G as E,I as D,J as O,K as k,M as A,N as j,Q as ee,R as M,X as N,Y as P,Z as F,j as I,o as L,r as R,z}from"./light-BN35I8ot.js";import{a as B,i as te,l as ne,n as V,o as H,r as U,t as re}from"./Follower-BqBATTTc.js";import{a as ie,o as ae,t as oe}from"./utils-uz9aUEjP.js";import{c as W,d as se,f as G,t as ce}from"./Card-BFXpokQN.js";import{a as K,c as q,o as le}from"./resolve-slot-DXnJRg0o.js";import{n as ue,s as de,u as J}from"./Suffix-CutOgybq.js";import{t as Y}from"./use-merged-state-Dw19ICqg.js";import{t as fe}from"./use-compitable-Ct-u1IyK.js";import{a as pe,t as X}from"./Button-SFBLnAwv.js";import{n as Z,r as Q}from"./use-form-item-CT1L1ziV.js";import{t as me}from"./Add-CeJ0I8t8.js";import{t as $}from"./Input-CM5axX8S.js";import{t as he}from"./use-message-bV_QZwc3.js";import{t as ge}from"./Space-B98o1YSA.js";import{F as _e,G as ve,H as ye,J as be,K as xe,P as Se,Q as Ce,S as we,V as Te,X as Ee,Y as De,Z as Oe,b as ke,et as Ae,i as je,q as Me}from"./index-UYw_T9_p.js";import{t as Ne}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as Pe}from"./HeaderMenu-BV7MwsiN.js";var Fe=V(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[V(`&::-webkit-scrollbar`,{width:0,height:0})]),Ie=h({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=d(null);function t(e){!(e.currentTarget.offsetWidth=t||n<0||d&&r>=a}function _(){var e=qe();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(qe())}function x(){var e=qe(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var Qe=`Expected a function`;function $e(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Qe);return T(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ze(e,t,{leading:r,maxWait:t,trailing:i})}var et=E([k(`auto-complete`,` +import{A as e,C as t,E as n,F as r,K as i,L as a,P as o,R as s,S as c,U as l,_ as u,ct as d,d as f,dt as p,et as m,j as h,k as g,nt as _,pt as v,q as y,rt as b,t as x,tt as S,x as C}from"./auth-CzuN8bsR.js";import{$ as w,E as T,G as E,I as D,J as O,K as k,M as A,N as j,Q as ee,R as M,X as N,Y as P,Z as F,j as I,o as L,r as R,z}from"./light-Dg5iONHF.js";import{a as B,i as te,l as ne,n as V,o as H,r as U,t as re}from"./Follower-BeUAmPJ4.js";import{a as ie,o as ae,t as oe}from"./utils-Av1b4W6Q.js";import{c as W,d as se,f as G,t as ce}from"./Card-jY6IqKWx.js";import{a as K,c as q,o as le}from"./resolve-slot-Bgp_Mn8k.js";import{n as ue,s as de,u as J}from"./Suffix-PHRsdJdH.js";import{t as Y}from"./use-merged-state-D8rNARXC.js";import{t as fe}from"./use-compitable-boC6cFiE.js";import{a as pe,t as X}from"./Button-_KVJEFbE.js";import{n as Z,r as Q}from"./use-form-item-DDZTyeAQ.js";import{t as me}from"./Add-Dpa8jwVl.js";import{t as $}from"./Input-jiXpa-nM.js";import{t as he}from"./use-message-R8JEzJ8f.js";import{t as ge}from"./Space-BumyB3cS.js";import{F as _e,G as ve,H as ye,J as be,K as xe,P as Se,Q as Ce,S as we,V as Te,X as Ee,Y as De,Z as Oe,b as ke,et as Ae,i as je,q as Me}from"./index-4mSiwzFS.js";import{t as Ne}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as Pe}from"./HeaderMenu-Qspj3Vlt.js";var Fe=V(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[V(`&::-webkit-scrollbar`,{width:0,height:0})]),Ie=h({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=d(null);function t(e){!(e.currentTarget.offsetWidth=t||n<0||d&&r>=a}function _(){var e=qe();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(qe())}function x(){var e=qe(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var Qe=`Expected a function`;function $e(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Qe);return T(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ze(e,t,{leading:r,maxWait:t,trailing:i})}var et=E([k(`auto-complete`,` z-index: auto; position: relative; display: inline-flex; diff --git a/dist/assets/Modal-Cc3YqyVW.js b/dist/assets/Modal-COuHyUKC.js similarity index 96% rename from dist/assets/Modal-Cc3YqyVW.js rename to dist/assets/Modal-COuHyUKC.js index d395146..fa12f69 100644 --- a/dist/assets/Modal-Cc3YqyVW.js +++ b/dist/assets/Modal-COuHyUKC.js @@ -1,4 +1,4 @@ -import{B as e,F as t,L as n,P as r,R as i,S as a,U as o,V as s,W as c,ct as l,dt as u,et as d,j as f,kt as p,q as m,rt as h,st as g,x as _}from"./auth-DetOXv90.js";import{G as v,J as y,K as b,L as x,M as S,N as C,Q as w,W as T,Y as E,Z as D,o as O,r as k,z as A}from"./light-BN35I8ot.js";import{d as j,f as ee,i as te,n as ne,r as re,s as M,t as ie,u as N}from"./Card-BFXpokQN.js";import{a as P,c as ae,r as oe}from"./resolve-slot-DXnJRg0o.js";import{_ as se,c as ce,g as le,h as F,l as ue,m as de,n as fe,p as pe,s as me,u as he,v as I,y as L}from"./Suffix-CutOgybq.js";import{o as ge,t as R}from"./Button-SFBLnAwv.js";import{i as _e,n as ve,t as z}from"./keep-XDVR1tb6.js";import{r as B}from"./use-form-item-CT1L1ziV.js";import{t as ye}from"./fade-in.cssr-mvZ1VOJ5.js";import{H as be,I as xe,J as Se,K as V,L as Ce,P as we,R as H,Z as U,et as W,m as Te,p as Ee,z as De}from"./index-UYw_T9_p.js";var G=l(null);function Oe(e){if(e.clientX>0||e.clientY>0)G.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();e>0||n>0?G.value={x:e+r/2,y:n+i/2}:G.value={x:0,y:0}}else G.value=null}}var K=0,ke=!0;function Ae(){if(!L)return g(l(null));K===0&&j(`click`,document,Oe,!0);let t=()=>{K+=1};return(ke&&=I())?(e(t),s(()=>{--K,K===0&&N(`click`,document,Oe,!0)})):t(),g(G)}var je=l(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(t){if(!L)return g(l(!1));let n=l(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),n.value=!0,r=window.setTimeout(()=>{n.value=!1},t)}q===0&&j(`click`,window,Me,!0);let o=()=>{q+=1,j(`click`,window,a,!0)};return(Ne&&=I())?(e(o),s(()=>{--q,q===0&&N(`click`,window,Me,!0),N(`click`,window,a,!0),i()})):o(),g(n)}var J=l(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return ge&&(e(()=>{Y||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),Y++}),s(()=>{Y<=1?(window.removeEventListener(`compositionstart`,Fe),window.removeEventListener(`compositionend`,Ie),Y=0):Y--})),J}var X=0,Re=``,ze=``,Be=``,Ve=``,He=l(`0px`);function Ue(e){if(typeof document>`u`)return;let t=document.documentElement,n,r=!1,i=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=Ve,He.value=`0px`};o(()=>{n=d(e,e=>{if(e){if(!X){let e=window.innerWidth-t.offsetWidth;e>0&&(Re=t.style.marginRight,t.style.marginRight=`${e}px`,He.value=`${e}px`),ze=t.style.overflow,Be=t.style.overflowX,Ve=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}r=!0,X++}else X--,X||i(),r=!1},{immediate:!0})}),s(()=>{n?.(),r&&=(X--,X||i(),!1)})}var We=A(`n-dialog-provider`);A(`n-dialog-api`),A(`n-dialog-reactive-list`);var Z={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Ge=M(Z),Ke=v([b(`dialog`,` +import{B as e,F as t,L as n,P as r,R as i,S as a,U as o,V as s,W as c,ct as l,dt as u,et as d,j as f,kt as p,q as m,rt as h,st as g,x as _}from"./auth-CzuN8bsR.js";import{G as v,J as y,K as b,L as x,M as S,N as C,Q as w,W as T,Y as E,Z as D,o as O,r as k,z as A}from"./light-Dg5iONHF.js";import{d as j,f as ee,i as te,n as ne,r as re,s as M,t as ie,u as N}from"./Card-jY6IqKWx.js";import{a as P,c as ae,r as oe}from"./resolve-slot-Bgp_Mn8k.js";import{_ as se,c as ce,g as le,h as F,l as ue,m as de,n as fe,p as pe,s as me,u as he,v as I,y as L}from"./Suffix-PHRsdJdH.js";import{o as ge,t as R}from"./Button-_KVJEFbE.js";import{i as _e,n as ve,t as z}from"./keep-D5zQL9t4.js";import{r as B}from"./use-form-item-DDZTyeAQ.js";import{t as ye}from"./fade-in.cssr-CoPRsCos.js";import{H as be,I as xe,J as Se,K as V,L as Ce,P as we,R as H,Z as U,et as W,m as Te,p as Ee,z as De}from"./index-4mSiwzFS.js";var G=l(null);function Oe(e){if(e.clientX>0||e.clientY>0)G.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();e>0||n>0?G.value={x:e+r/2,y:n+i/2}:G.value={x:0,y:0}}else G.value=null}}var K=0,ke=!0;function Ae(){if(!L)return g(l(null));K===0&&j(`click`,document,Oe,!0);let t=()=>{K+=1};return(ke&&=I())?(e(t),s(()=>{--K,K===0&&N(`click`,document,Oe,!0)})):t(),g(G)}var je=l(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(t){if(!L)return g(l(!1));let n=l(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),n.value=!0,r=window.setTimeout(()=>{n.value=!1},t)}q===0&&j(`click`,window,Me,!0);let o=()=>{q+=1,j(`click`,window,a,!0)};return(Ne&&=I())?(e(o),s(()=>{--q,q===0&&N(`click`,window,Me,!0),N(`click`,window,a,!0),i()})):o(),g(n)}var J=l(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return ge&&(e(()=>{Y||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),Y++}),s(()=>{Y<=1?(window.removeEventListener(`compositionstart`,Fe),window.removeEventListener(`compositionend`,Ie),Y=0):Y--})),J}var X=0,Re=``,ze=``,Be=``,Ve=``,He=l(`0px`);function Ue(e){if(typeof document>`u`)return;let t=document.documentElement,n,r=!1,i=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=Ve,He.value=`0px`};o(()=>{n=d(e,e=>{if(e){if(!X){let e=window.innerWidth-t.offsetWidth;e>0&&(Re=t.style.marginRight,t.style.marginRight=`${e}px`,He.value=`${e}px`),ze=t.style.overflow,Be=t.style.overflowX,Ve=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}r=!0,X++}else X--,X||i(),r=!1},{immediate:!0})}),s(()=>{n?.(),r&&=(X--,X||i(),!1)})}var We=A(`n-dialog-provider`);A(`n-dialog-api`),A(`n-dialog-reactive-list`);var Z={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Ge=M(Z),Ke=v([b(`dialog`,` --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left); word-break: break-word; line-height: var(--n-line-height); diff --git a/dist/assets/OfficeView-CLlCnFHy.js b/dist/assets/OfficeView-CUdTzgA2.js similarity index 97% rename from dist/assets/OfficeView-CLlCnFHy.js rename to dist/assets/OfficeView-CUdTzgA2.js index 41ff314..c454655 100644 --- a/dist/assets/OfficeView-CLlCnFHy.js +++ b/dist/assets/OfficeView-CUdTzgA2.js @@ -1 +1 @@ -import{A as e,C as t,E as n,K as r,T as i,_ as a,ct as o,d as s,j as c,jt as l,k as u,nt as d,pt as f,t as p,w as m}from"./auth-DetOXv90.js";import{t as h}from"./Modal-Cc3YqyVW.js";import{t as g}from"./Button-SFBLnAwv.js";import{t as _}from"./Input-CM5axX8S.js";import{t as v}from"./Alert-BbFVk-Xc.js";import{t as y}from"./use-message-bV_QZwc3.js";import{tt as b}from"./index-UYw_T9_p.js";import{r as x,t as S}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as C}from"./HeaderMenu-BV7MwsiN.js";var w={class:`center-block-custom`},T={class:`width700`},E={class:`danger-zone`},D={key:0,class:`delete-modal-error`},O={class:`delete-modal-buttons`},k=S(c({__name:`OfficePage`,setup(c){let m=p(),S=s(),k=y(),A=x(),j=o([]);async function M(){j.value=[];let e=await A.GetPermissions({});j.value=e.permissions}M();function N(){let e=new Date,t=e.getDay(),n=e.getDate(),r=e.getMonth()+1,i=t===1,a=t===5&&n===13,o=r===1&&n===1||r===12&&n===31,s=r>=6&&r<=8,c=r===12||r<=2,l=n%5==0,u=[`Всегда носи с собой запасную ручку — признания любят записывать в самый неподходящий момент.`,`Если подозреваемый слишком вежлив, он либо дипломат, либо прячет труп в гараже.`,`Кофе в участке — это не напиток, это яд для улик. Пей только свой.`,`Следы на месте преступления всегда ведут к тому, кто забыл закрыть дверь.`,`Лучший способ разговорить молчуна — предложить ему чай с тремя ложками сахара.`,`Если всё указывает на дворецкого, ищи того, кто нанимал дворецкого.`,`Записывай каждую мелочь. Особенно цвет носков убитого.`,`Не верь алиби, которое начинается со слов 'Я бы никогда...'`,`Преступник всегда возвращается на место преступления. Или за забытым телефоном.`,`Ищи того, кому есть что терять, кроме своего времени.`,`Если женщина плачет в кабинете — дай ей платок. Если мужчина — дай ему стакан воды.`,`Самое опасное оружие — не пистолет, а бухгалтерская книга.`,`Собака всегда знает убийцу. Но она не говорит, потому что у неё контракт.`,`Проверяй чеки, билеты и смс. Ложь не терпит документации.`,`Если у тела нет врагов — ты плохо искал врагов.`,`Лупа нужна не для увеличения улик, а для того, чтобы выглядеть умнее.`,`Интуиция — это когда ты уже знаешь ответ, но хочешь убедиться, что не ошибся.`,`Подозревай всех, даже самого себя. Иногда преступник — это ты в прошлом.`,`Хороший детектив видит улики. Великий — видит их отсутствие.`,`Никогда не допрашивай свидетеля на голодный желудок. И себя тоже.`,`Если дело зашло в тупик, переверни бумаги вверх ногами.`,`Самый ценный свидетель — это камера наблюдения, у которой сломана защита.`,`Не ищи мотив. Ищи возможность.`,`Преступник не оставляет следов. Он оставляет выбор.`,`Если дверь была закрыта изнутри — ищи люк, который открывается снаружи.`,`Лучший детектив — тот, кого не замечают в толпе.`,`Учись читать по губам. Пригодится на допросах с адвокатом.`,`Запах духов на месте преступления важнее запаха пороха.`,`Если ты нашел отпечаток пальца — проверь, не твой ли он.`,`Раскрыть дело — это искусство. Не раскрыть — тоже искусство, но другое.`,`Никогда не спорь с баллистикой. Она всегда права, даже если ты не согласен.`,`В каждом деле есть одна странная деталь. Найди её — и пазл сложится.`,`Если преступник умный — он оставит ложный след. Если глупый — он оставит следы в соцсетях.`,`Лучший друг детектива — тишина. Второй друг — кофе.`,`Если свидетель говорит слишком много, он врет. Если молчит — он тоже врет.`,`Преступление редко бывает идеальным. Идеальным бывает только алиби жены.`,`Всегда смотри на часы на трупе. Возможно, они показывают время, когда он перестал верить в людей.`,`Воры любят темноту. Детективы — свет. А маньяки — полную луну.`,`Если ты поймал преступника, не радуйся раньше времени — может, он просто лжец.`,`В каждом городе есть одно место, где собираются все сплетники. Начни оттуда.`,`Не верь в совпадения. Но верь в удачу.`,`Если у тебя нет улик — придумай их. Но только мысленно, чтобы знать, где искать.`,`Жертва всегда знала убийцу. Даже если она не знала, что знает.`,`Проверяй алиби на разрыв. Если оно выдерживает — ты ошибся.`,`Самый страшный враг детектива — не маньяк, а его собственная лень.`,`Если преступник оставил записку — прочитай её. И сожги, чтобы никто не узнал твой почерк.`,`Всегда носи с собой фонарик. Даже днём. Для эффекта.`,`В деле важно всё: от укуса комара до размера обуви.`,`Если ты думаешь, что дело простое — значит, ты не додумал.`,`Убийца всегда ищет внимания. Или наоборот, избегает его.`,`Стук в дверь в полночь — это либо полиция, либо заказчик.`,`Никогда не давай обещаний родственникам жертвы. Только факты.`,`Если у тебя есть три версии — выбирай четвёртую.`,`Лучшее оружие — это бумага. На ней можно написать что угодно.`,`Когда ты смотришь на улику, смотри на неё глазами преступника.`,`Все любят детективы, пока не становятся подозреваемыми.`,`Следы крови важны. Но важнее — следы лжи.`,`Если ты не спишь третьи сутки, значит, ты либо гений, либо дурак.`,`Проверяй каждого, кто говорит 'Я ничего не видел'.`,`В каждом деле есть один человек, который знает всё. И он не говорит.`,`Не суди преступника по одежде. Суди по тому, как он её снимал.`,`Дыра в алиби — это как дыра в лодке. Рано или поздно она утонет.`,`Если преступник использует перчатки — он профессионал. Если нет — он любитель.`,`Запомни: первая версия — всегда неверная.`,`Если у тебя кончились идеи, иди в бар. Там всегда есть кто-то, кто расскажет тебе дело.`,`Свидетель с фотороботом — это как слепой с компасом.`,`Никогда не смейся над уликами. Они могут обидеться и исчезнуть.`,`Если ты нашёл оружие — не трогай его. Иначе твои отпечатки будут на нём.`,`Преступник умён, но ты умнее. Потому что ты пьёшь правильный кофе.`,`Всегда пересматривай видеозаписи. Особенно в два раза медленнее.`,`Если на месте преступления есть кот — он видел всё. Но он не скажет.`,`Лучший способ поймать преступника — пригласить его на обед.`,`Если подозреваемый улыбается, он либо невиновен, либо психопат.`,`Проверяй мусор. В нём всегда есть что-то полезное.`,`Никогда не доверяй красивым историям. Только уродливым фактам.`,`Если ты нашёл улику слишком легко — это ловушка.`,`Убийца всегда оставляет послание. Даже если это просто тишина.`,`Если ты запнулся на допросе — делай вид, что так и задумано.`,`Помни: все врут. Даже я тебе советую.`,`Если ты боишься темноты — стань детективом. Страх пройдёт.`,`Самые лучшие признания случаются под утро, когда все устали.`,`Если преступник использовал компьютер, значит, он либо хакер, либо дурак.`,`Следы шин — это как подпись на дороге.`,`Никогда не забывай про запах. Он помнит дольше, чем люди.`,`Если ты не знаешь, что делать — съешь шоколадку.`,`В каждом деле есть одна минута слабости. Найди её.`,`Преступник всегда нервничает. Даже если он не нервничает.`,`Если у тебя есть подозреваемый и нет улик — подожди. Улики появятся.`,`Не верь в чудеса. Верь в логику.`,`Если ты устал — возьми отпуск. Преступление никуда не денется.`,`Запомни: самый опасный преступник — тот, кто читал детективы.`,`Если ты думаешь, что всё кончено — значит, ты пропустил поворот.`,`Следы на полу важнее следов в душе.`,`Если преступник оставил окурок — он курил. Или хотел, чтобы ты так думал.`,`Хороший детектив всегда голоден. Это помогает мыслить.`,`Не суди по первому впечатлению. Суди по второму, когда увидишь его в наручниках.`,`Если у тебя есть тайный агент — не доверяй ему.`,`В деле всегда есть тот, кто знает больше, чем говорит.`,`Если ты не можешь найти убийцу — стань им (в мыслях).`,`И последнее: всегда проверяй, закрыл ли ты дверь участка.`],d=[];i&&d.push(`☕ Понедельник: Сегодня даже преступники не хотят работать. Проверь тех, кто был слишком бодр.`),a&&d.push(`🔮 Пятница 13-е: Если улики ведут к чёрной кошке, ищи чёрного кота с алиби.`),o&&d.push(`🎄 Новый год: Свидетель в костюме Деда Мороза врёт. Настоящий Дед Мороз всегда в отпуске.`),s&&d.push(`☀️ Лето: В жару преступники забывают улики в карманах, потому что снимают пиджаки.`),c&&d.push(`❄️ Зима: Следы на снегу ведут к тому, у кого самые холодные руки.`),l&&d.push(`🌕 Полнолуние: Если подозреваемый воет на луну, он либо оборотень, либо фанат рока.`);let f=u.concat(d),p=f[Math.floor(Math.random()*f.length)],m=[`🔍 Заметки сыщика:`,`📓 Из дневника инспектора:`,`🕵️ Мудрость Шерлока:`,`🧠 Гениально и просто:`,`📌 Правило большого пальца:`,`☕ Кофейная истина:`];return{header:m[Math.floor(Math.random()*m.length)],text:p}}let P=N(),F=o(!1),I=o(``),L=o(``);async function R(){if(L.value=``,!await m.deleteAccount(I.value)){L.value=m.error||`Не удалось удалить аккаунт`;return}k.success(`Аккаунт и персональные данные удалены`),F.value=!1,S.push(`/login`)}return(o,s)=>(r(),n(a,null,[t(`div`,w,[t(`div`,T,[e(f(v),{title:f(P).header,"show-icon":!1,type:`info`,style:{"margin-bottom":`20px`}},{default:d(()=>[u(l(f(P).text),1)]),_:1},8,[`title`]),t(`p`,null,`Доброго времени суток, `+l(f(m).username)+`.`,1),t(`div`,E,[s[5]||=t(`div`,{class:`danger-zone-text`},[t(`div`,{class:`danger-zone-title`},`Удаление аккаунта`),t(`div`,{class:`danger-zone-hint`},` Удаление необратимо: аккаунт и все персональные данные будут стёрты (ст. 21 152-ФЗ). `)],-1),e(f(g),{type:`error`,ghost:``,onClick:s[0]||=e=>F.value=!0},{default:d(()=>[...s[4]||=[u(`Удалить аккаунт`,-1)]]),_:1})])])]),e(f(h),{show:F.value,"onUpdate:show":s[3]||=e=>F.value=e,preset:`card`,title:`Удаление аккаунта`,class:`delete-modal`},{default:d(()=>[s[8]||=t(`p`,{class:`delete-modal-text`},` Это действие необратимо. Для подтверждения удаления введите пароль от учётной записи — он понадобится, чтобы убедиться, что аккаунт удаляет его владелец. `,-1),e(f(_),{value:I.value,"onUpdate:value":s[1]||=e=>I.value=e,type:`password`,placeholder:`Пароль для подтверждения`,onKeyup:b(R,[`enter`])},null,8,[`value`]),L.value?(r(),n(`p`,D,l(L.value),1)):i(``,!0),t(`div`,O,[e(f(g),{onClick:s[2]||=e=>F.value=!1},{default:d(()=>[...s[6]||=[u(`Отмена`,-1)]]),_:1}),e(f(g),{type:`error`,disabled:I.value.length==0,loading:f(m).isLoading,onClick:R},{default:d(()=>[...s[7]||=[u(` Удалить навсегда `,-1)]]),_:1},8,[`disabled`,`loading`])])]),_:1},8,[`show`]),e(C,{active:`office`})],64))}}),[[`__scopeId`,`data-v-34dfe8a1`]]),A=c({__name:`OfficeView`,setup(e){return(e,t)=>(r(),m(k))}});export{A as default}; \ No newline at end of file +import{A as e,C as t,E as n,K as r,T as i,_ as a,ct as o,d as s,j as c,jt as l,k as u,nt as d,pt as f,t as p,w as m}from"./auth-CzuN8bsR.js";import{t as h}from"./Modal-COuHyUKC.js";import{t as g}from"./Button-_KVJEFbE.js";import{t as _}from"./Input-jiXpa-nM.js";import{t as v}from"./Alert-DZMHsQvh.js";import{t as y}from"./use-message-R8JEzJ8f.js";import{tt as b}from"./index-4mSiwzFS.js";import{r as x,t as S}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as C}from"./HeaderMenu-Qspj3Vlt.js";var w={class:`center-block-custom`},T={class:`width700`},E={class:`danger-zone`},D={key:0,class:`delete-modal-error`},O={class:`delete-modal-buttons`},k=S(c({__name:`OfficePage`,setup(c){let m=p(),S=s(),k=y(),A=x(),j=o([]);async function M(){j.value=[];let e=await A.GetPermissions({});j.value=e.permissions}M();function N(){let e=new Date,t=e.getDay(),n=e.getDate(),r=e.getMonth()+1,i=t===1,a=t===5&&n===13,o=r===1&&n===1||r===12&&n===31,s=r>=6&&r<=8,c=r===12||r<=2,l=n%5==0,u=[`Всегда носи с собой запасную ручку — признания любят записывать в самый неподходящий момент.`,`Если подозреваемый слишком вежлив, он либо дипломат, либо прячет труп в гараже.`,`Кофе в участке — это не напиток, это яд для улик. Пей только свой.`,`Следы на месте преступления всегда ведут к тому, кто забыл закрыть дверь.`,`Лучший способ разговорить молчуна — предложить ему чай с тремя ложками сахара.`,`Если всё указывает на дворецкого, ищи того, кто нанимал дворецкого.`,`Записывай каждую мелочь. Особенно цвет носков убитого.`,`Не верь алиби, которое начинается со слов 'Я бы никогда...'`,`Преступник всегда возвращается на место преступления. Или за забытым телефоном.`,`Ищи того, кому есть что терять, кроме своего времени.`,`Если женщина плачет в кабинете — дай ей платок. Если мужчина — дай ему стакан воды.`,`Самое опасное оружие — не пистолет, а бухгалтерская книга.`,`Собака всегда знает убийцу. Но она не говорит, потому что у неё контракт.`,`Проверяй чеки, билеты и смс. Ложь не терпит документации.`,`Если у тела нет врагов — ты плохо искал врагов.`,`Лупа нужна не для увеличения улик, а для того, чтобы выглядеть умнее.`,`Интуиция — это когда ты уже знаешь ответ, но хочешь убедиться, что не ошибся.`,`Подозревай всех, даже самого себя. Иногда преступник — это ты в прошлом.`,`Хороший детектив видит улики. Великий — видит их отсутствие.`,`Никогда не допрашивай свидетеля на голодный желудок. И себя тоже.`,`Если дело зашло в тупик, переверни бумаги вверх ногами.`,`Самый ценный свидетель — это камера наблюдения, у которой сломана защита.`,`Не ищи мотив. Ищи возможность.`,`Преступник не оставляет следов. Он оставляет выбор.`,`Если дверь была закрыта изнутри — ищи люк, который открывается снаружи.`,`Лучший детектив — тот, кого не замечают в толпе.`,`Учись читать по губам. Пригодится на допросах с адвокатом.`,`Запах духов на месте преступления важнее запаха пороха.`,`Если ты нашел отпечаток пальца — проверь, не твой ли он.`,`Раскрыть дело — это искусство. Не раскрыть — тоже искусство, но другое.`,`Никогда не спорь с баллистикой. Она всегда права, даже если ты не согласен.`,`В каждом деле есть одна странная деталь. Найди её — и пазл сложится.`,`Если преступник умный — он оставит ложный след. Если глупый — он оставит следы в соцсетях.`,`Лучший друг детектива — тишина. Второй друг — кофе.`,`Если свидетель говорит слишком много, он врет. Если молчит — он тоже врет.`,`Преступление редко бывает идеальным. Идеальным бывает только алиби жены.`,`Всегда смотри на часы на трупе. Возможно, они показывают время, когда он перестал верить в людей.`,`Воры любят темноту. Детективы — свет. А маньяки — полную луну.`,`Если ты поймал преступника, не радуйся раньше времени — может, он просто лжец.`,`В каждом городе есть одно место, где собираются все сплетники. Начни оттуда.`,`Не верь в совпадения. Но верь в удачу.`,`Если у тебя нет улик — придумай их. Но только мысленно, чтобы знать, где искать.`,`Жертва всегда знала убийцу. Даже если она не знала, что знает.`,`Проверяй алиби на разрыв. Если оно выдерживает — ты ошибся.`,`Самый страшный враг детектива — не маньяк, а его собственная лень.`,`Если преступник оставил записку — прочитай её. И сожги, чтобы никто не узнал твой почерк.`,`Всегда носи с собой фонарик. Даже днём. Для эффекта.`,`В деле важно всё: от укуса комара до размера обуви.`,`Если ты думаешь, что дело простое — значит, ты не додумал.`,`Убийца всегда ищет внимания. Или наоборот, избегает его.`,`Стук в дверь в полночь — это либо полиция, либо заказчик.`,`Никогда не давай обещаний родственникам жертвы. Только факты.`,`Если у тебя есть три версии — выбирай четвёртую.`,`Лучшее оружие — это бумага. На ней можно написать что угодно.`,`Когда ты смотришь на улику, смотри на неё глазами преступника.`,`Все любят детективы, пока не становятся подозреваемыми.`,`Следы крови важны. Но важнее — следы лжи.`,`Если ты не спишь третьи сутки, значит, ты либо гений, либо дурак.`,`Проверяй каждого, кто говорит 'Я ничего не видел'.`,`В каждом деле есть один человек, который знает всё. И он не говорит.`,`Не суди преступника по одежде. Суди по тому, как он её снимал.`,`Дыра в алиби — это как дыра в лодке. Рано или поздно она утонет.`,`Если преступник использует перчатки — он профессионал. Если нет — он любитель.`,`Запомни: первая версия — всегда неверная.`,`Если у тебя кончились идеи, иди в бар. Там всегда есть кто-то, кто расскажет тебе дело.`,`Свидетель с фотороботом — это как слепой с компасом.`,`Никогда не смейся над уликами. Они могут обидеться и исчезнуть.`,`Если ты нашёл оружие — не трогай его. Иначе твои отпечатки будут на нём.`,`Преступник умён, но ты умнее. Потому что ты пьёшь правильный кофе.`,`Всегда пересматривай видеозаписи. Особенно в два раза медленнее.`,`Если на месте преступления есть кот — он видел всё. Но он не скажет.`,`Лучший способ поймать преступника — пригласить его на обед.`,`Если подозреваемый улыбается, он либо невиновен, либо психопат.`,`Проверяй мусор. В нём всегда есть что-то полезное.`,`Никогда не доверяй красивым историям. Только уродливым фактам.`,`Если ты нашёл улику слишком легко — это ловушка.`,`Убийца всегда оставляет послание. Даже если это просто тишина.`,`Если ты запнулся на допросе — делай вид, что так и задумано.`,`Помни: все врут. Даже я тебе советую.`,`Если ты боишься темноты — стань детективом. Страх пройдёт.`,`Самые лучшие признания случаются под утро, когда все устали.`,`Если преступник использовал компьютер, значит, он либо хакер, либо дурак.`,`Следы шин — это как подпись на дороге.`,`Никогда не забывай про запах. Он помнит дольше, чем люди.`,`Если ты не знаешь, что делать — съешь шоколадку.`,`В каждом деле есть одна минута слабости. Найди её.`,`Преступник всегда нервничает. Даже если он не нервничает.`,`Если у тебя есть подозреваемый и нет улик — подожди. Улики появятся.`,`Не верь в чудеса. Верь в логику.`,`Если ты устал — возьми отпуск. Преступление никуда не денется.`,`Запомни: самый опасный преступник — тот, кто читал детективы.`,`Если ты думаешь, что всё кончено — значит, ты пропустил поворот.`,`Следы на полу важнее следов в душе.`,`Если преступник оставил окурок — он курил. Или хотел, чтобы ты так думал.`,`Хороший детектив всегда голоден. Это помогает мыслить.`,`Не суди по первому впечатлению. Суди по второму, когда увидишь его в наручниках.`,`Если у тебя есть тайный агент — не доверяй ему.`,`В деле всегда есть тот, кто знает больше, чем говорит.`,`Если ты не можешь найти убийцу — стань им (в мыслях).`,`И последнее: всегда проверяй, закрыл ли ты дверь участка.`],d=[];i&&d.push(`☕ Понедельник: Сегодня даже преступники не хотят работать. Проверь тех, кто был слишком бодр.`),a&&d.push(`🔮 Пятница 13-е: Если улики ведут к чёрной кошке, ищи чёрного кота с алиби.`),o&&d.push(`🎄 Новый год: Свидетель в костюме Деда Мороза врёт. Настоящий Дед Мороз всегда в отпуске.`),s&&d.push(`☀️ Лето: В жару преступники забывают улики в карманах, потому что снимают пиджаки.`),c&&d.push(`❄️ Зима: Следы на снегу ведут к тому, у кого самые холодные руки.`),l&&d.push(`🌕 Полнолуние: Если подозреваемый воет на луну, он либо оборотень, либо фанат рока.`);let f=u.concat(d),p=f[Math.floor(Math.random()*f.length)],m=[`🔍 Заметки сыщика:`,`📓 Из дневника инспектора:`,`🕵️ Мудрость Шерлока:`,`🧠 Гениально и просто:`,`📌 Правило большого пальца:`,`☕ Кофейная истина:`];return{header:m[Math.floor(Math.random()*m.length)],text:p}}let P=N(),F=o(!1),I=o(``),L=o(``);async function R(){if(L.value=``,!await m.deleteAccount(I.value)){L.value=m.error||`Не удалось удалить аккаунт`;return}k.success(`Аккаунт и персональные данные удалены`),F.value=!1,S.push(`/login`)}return(o,s)=>(r(),n(a,null,[t(`div`,w,[t(`div`,T,[e(f(v),{title:f(P).header,"show-icon":!1,type:`info`,style:{"margin-bottom":`20px`}},{default:d(()=>[u(l(f(P).text),1)]),_:1},8,[`title`]),t(`p`,null,`Доброго времени суток, `+l(f(m).username)+`.`,1),t(`div`,E,[s[5]||=t(`div`,{class:`danger-zone-text`},[t(`div`,{class:`danger-zone-title`},`Удаление аккаунта`),t(`div`,{class:`danger-zone-hint`},` Удаление необратимо: аккаунт и все персональные данные будут стёрты (ст. 21 152-ФЗ). `)],-1),e(f(g),{type:`error`,ghost:``,onClick:s[0]||=e=>F.value=!0},{default:d(()=>[...s[4]||=[u(`Удалить аккаунт`,-1)]]),_:1})])])]),e(f(h),{show:F.value,"onUpdate:show":s[3]||=e=>F.value=e,preset:`card`,title:`Удаление аккаунта`,class:`delete-modal`},{default:d(()=>[s[8]||=t(`p`,{class:`delete-modal-text`},` Это действие необратимо. Для подтверждения удаления введите пароль от учётной записи — он понадобится, чтобы убедиться, что аккаунт удаляет его владелец. `,-1),e(f(_),{value:I.value,"onUpdate:value":s[1]||=e=>I.value=e,type:`password`,placeholder:`Пароль для подтверждения`,onKeyup:b(R,[`enter`])},null,8,[`value`]),L.value?(r(),n(`p`,D,l(L.value),1)):i(``,!0),t(`div`,O,[e(f(g),{onClick:s[2]||=e=>F.value=!1},{default:d(()=>[...s[6]||=[u(`Отмена`,-1)]]),_:1}),e(f(g),{type:`error`,disabled:I.value.length==0,loading:f(m).isLoading,onClick:R},{default:d(()=>[...s[7]||=[u(` Удалить навсегда `,-1)]]),_:1},8,[`disabled`,`loading`])])]),_:1},8,[`show`]),e(C,{active:`office`})],64))}}),[[`__scopeId`,`data-v-34dfe8a1`]]),A=c({__name:`OfficeView`,setup(e){return(e,t)=>(r(),m(k))}});export{A as default}; \ No newline at end of file diff --git a/dist/assets/ParticipationView-BG5mhutL.js b/dist/assets/ParticipationView-C3qDA10w.js similarity index 92% rename from dist/assets/ParticipationView-BG5mhutL.js rename to dist/assets/ParticipationView-C3qDA10w.js index cd4be6a..03b70ab 100644 --- a/dist/assets/ParticipationView-BG5mhutL.js +++ b/dist/assets/ParticipationView-C3qDA10w.js @@ -1 +1 @@ -import{A as e,C as t,E as n,K as r,T as i,U as a,_ as o,ct as s,j as c,jt as l,k as u,n as d,nt as f,pt as p,t as m,u as h,w as g}from"./auth-DetOXv90.js";import{t as _}from"./Card-BFXpokQN.js";import{t as v}from"./Button-SFBLnAwv.js";import{t as y}from"./use-message-bV_QZwc3.js";import{t as b}from"./Space-B98o1YSA.js";import{t as x}from"./HeaderMenu-BV7MwsiN.js";import{t as S}from"./datetime-BJNH0M1T.js";var C={class:`center-block-custom`},w={class:`width700`},T={key:0,role:`alert`},E={key:0,role:`status`},D={key:1,role:`status`},O={key:2},k=c({__name:`ParticipationPage`,setup(c){let k=h(),A=new URLSearchParams(k.hash.slice(1)),j=A.get(`token`)||``,M=s(A.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),N=d(),P=m(),F=y(),I=s(),L=s(!1),R=s(``);async function z(){L.value=!0,R.value=``;try{let e=await N.GetParticipation({token:j});if(e.error){R.value=e.error,F.error(e.error);return}I.value=e}catch{R.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{L.value=!1}}async function B(){if(!L.value){L.value=!0,R.value=``;try{let e=await N.AnswerParticipation({token:j,answer:M.value});e.status&&(I.value=e),e.error&&(R.value=e.error,F.error(e.error))}catch{R.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{L.value=!1}}}return a(z),(a,s)=>(r(),n(o,null,[p(P).isAuthenticated?(r(),g(x,{key:0})):i(``,!0),t(`div`,C,[t(`div`,w,[e(p(_),{title:`Участие в игре`},{default:f(()=>[R.value?(r(),n(`p`,T,l(R.value),1)):i(``,!0),I.value?(r(),n(o,{key:1},[t(`h2`,null,l(I.value.gameName),1),t(`p`,null,`Команда: `+l(I.value.teamName),1),t(`p`,null,`Начало: `+l(p(S)(I.value.startAt)),1),t(`p`,null,`Участников: `+l(I.value.participantsCount),1),I.value.status===`confirmed`?(r(),n(`p`,E,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):I.value.status===`cancelled`?(r(),n(`p`,D,` Запись отменена. Решение окончательное. `)):I.value.closed?(r(),n(`p`,O,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(r(),n(o,{key:3},[s[4]||=t(`p`,null,[t(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),s[5]||=t(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),e(p(b),{vertical:``},{default:f(()=>[e(p(b),null,{default:f(()=>[e(p(v),{disabled:L.value,type:M.value===`confirmed`?`primary`:`default`,"aria-pressed":M.value===`confirmed`,onClick:s[0]||=e=>M.value=`confirmed`},{default:f(()=>[...s[2]||=[u(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),e(p(v),{disabled:L.value,type:M.value===`cancelled`?`error`:`default`,"aria-pressed":M.value===`cancelled`,onClick:s[1]||=e=>M.value=`cancelled`},{default:f(()=>[...s[3]||=[u(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),e(p(v),{loading:L.value,disabled:L.value,type:M.value===`cancelled`?`error`:`primary`,onClick:B},{default:f(()=>[u(l(M.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(r(),g(p(v),{key:2,loading:L.value,onClick:z},{default:f(()=>[u(l(L.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),A=c({__name:`ParticipationView`,setup(e){return(e,t)=>(r(),g(k))}});export{A as default}; \ No newline at end of file +import{A as e,C as t,E as n,K as r,T as i,U as a,_ as o,ct as s,j as c,jt as l,k as u,n as d,nt as f,pt as p,t as m,u as h,w as g}from"./auth-CzuN8bsR.js";import{t as _}from"./Card-jY6IqKWx.js";import{t as v}from"./Button-_KVJEFbE.js";import{t as y}from"./use-message-R8JEzJ8f.js";import{t as b}from"./Space-BumyB3cS.js";import{t as x}from"./HeaderMenu-Qspj3Vlt.js";import{t as S}from"./datetime-BJNH0M1T.js";var C={class:`center-block-custom`},w={class:`width700`},T={key:0,role:`alert`},E={key:0,role:`status`},D={key:1,role:`status`},O={key:2},k=c({__name:`ParticipationPage`,setup(c){let k=h(),A=new URLSearchParams(k.hash.slice(1)),j=A.get(`token`)||``,M=s(A.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),N=d(),P=m(),F=y(),I=s(),L=s(!1),R=s(``);async function z(){L.value=!0,R.value=``;try{let e=await N.GetParticipation({token:j});if(e.error){R.value=e.error,F.error(e.error);return}I.value=e}catch{R.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{L.value=!1}}async function B(){if(!L.value){L.value=!0,R.value=``;try{let e=await N.AnswerParticipation({token:j,answer:M.value});e.status&&(I.value=e),e.error&&(R.value=e.error,F.error(e.error))}catch{R.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{L.value=!1}}}return a(z),(a,s)=>(r(),n(o,null,[p(P).isAuthenticated?(r(),g(x,{key:0})):i(``,!0),t(`div`,C,[t(`div`,w,[e(p(_),{title:`Участие в игре`},{default:f(()=>[R.value?(r(),n(`p`,T,l(R.value),1)):i(``,!0),I.value?(r(),n(o,{key:1},[t(`h2`,null,l(I.value.gameName),1),t(`p`,null,`Команда: `+l(I.value.teamName),1),t(`p`,null,`Начало: `+l(p(S)(I.value.startAt)),1),t(`p`,null,`Участников: `+l(I.value.participantsCount),1),I.value.status===`confirmed`?(r(),n(`p`,E,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):I.value.status===`cancelled`?(r(),n(`p`,D,` Запись отменена. Решение окончательное. `)):I.value.closed?(r(),n(`p`,O,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(r(),n(o,{key:3},[s[4]||=t(`p`,null,[t(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),s[5]||=t(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),e(p(b),{vertical:``},{default:f(()=>[e(p(b),null,{default:f(()=>[e(p(v),{disabled:L.value,type:M.value===`confirmed`?`primary`:`default`,"aria-pressed":M.value===`confirmed`,onClick:s[0]||=e=>M.value=`confirmed`},{default:f(()=>[...s[2]||=[u(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),e(p(v),{disabled:L.value,type:M.value===`cancelled`?`error`:`default`,"aria-pressed":M.value===`cancelled`,onClick:s[1]||=e=>M.value=`cancelled`},{default:f(()=>[...s[3]||=[u(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),e(p(v),{loading:L.value,disabled:L.value,type:M.value===`cancelled`?`error`:`primary`,onClick:B},{default:f(()=>[u(l(M.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(r(),g(p(v),{key:2,loading:L.value,onClick:z},{default:f(()=>[u(l(L.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),A=c({__name:`ParticipationView`,setup(e){return(e,t)=>(r(),g(k))}});export{A as default}; \ No newline at end of file diff --git a/dist/assets/PlaceBlock-vyAeKNdX.js b/dist/assets/PlaceBlock-Bh8s3Jpl.js similarity index 97% rename from dist/assets/PlaceBlock-vyAeKNdX.js rename to dist/assets/PlaceBlock-Bh8s3Jpl.js index e4cbdfe..6526f06 100644 --- a/dist/assets/PlaceBlock-vyAeKNdX.js +++ b/dist/assets/PlaceBlock-Bh8s3Jpl.js @@ -1,4 +1,4 @@ -import{A as e,At as t,C as n,E as r,F as i,J as a,K as o,O as s,P as c,S as l,T as u,Y as d,_ as f,ct as p,dt as m,i as h,it as g,j as _,jt as v,k as y,kt as b,nt as x,pt as S,q as C,ut as w,w as T}from"./auth-DetOXv90.js";import{B as E,G as D,J as O,K as k,M as A,N as j,X as M,Y as N,Z as P,i as F,n as ee,o as I,r as L,t as te,z as R}from"./light-BN35I8ot.js";import{t as ne}from"./Card-BFXpokQN.js";import{a as z,i as B,l as re,n as ie,o as V,r as ae}from"./resolve-slot-DXnJRg0o.js";import{i as oe}from"./Suffix-CutOgybq.js";import{t as se}from"./Modal-Cc3YqyVW.js";import{t as ce}from"./use-merged-state-Dw19ICqg.js";import{r as le,t as H}from"./Button-SFBLnAwv.js";import{n as ue,r as U,t as de}from"./use-form-item-CT1L1ziV.js";import{n as fe,t as pe}from"./Upload-MQncuSBB.js";import{t as me}from"./Add-CeJ0I8t8.js";import{t as W}from"./Input-CM5axX8S.js";import{t as he}from"./Remove-CNpD-1y-.js";import{t as ge}from"./Tag-BqKZJJ-a.js";import{t as G}from"./Space-B98o1YSA.js";import{t as K}from"./text-DNaqMd7_.js";import{C as _e,F as ve,H as q,V as ye,X as be,a as xe,d as Se,j as Ce,nt as J,x as we}from"./index-UYw_T9_p.js";import{n as Te,t as Ee}from"./_plugin-vue_export-helper-7lqdtqme.js";import{n as Y,r as X,t as De}from"./application-CK_JoGAx.js";var Oe=_({name:`ArrowDown`,render(){return c(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},c(`g`,{"fill-rule":`nonzero`},c(`path`,{d:`M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z`}))))}}),ke=_({name:`ArrowUp`,render(){return c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},c(`g`,{fill:`none`},c(`path`,{d:`M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z`,fill:`currentColor`})))}}),Ae=k(`input-group`,` +import{A as e,At as t,C as n,E as r,F as i,J as a,K as o,O as s,P as c,S as l,T as u,Y as d,_ as f,ct as p,dt as m,i as h,it as g,j as _,jt as v,k as y,kt as b,nt as x,pt as S,q as C,ut as w,w as T}from"./auth-CzuN8bsR.js";import{B as E,G as D,J as O,K as k,M as A,N as j,X as M,Y as N,Z as P,i as F,n as ee,o as I,r as L,t as te,z as R}from"./light-Dg5iONHF.js";import{t as ne}from"./Card-jY6IqKWx.js";import{a as z,i as B,l as re,n as ie,o as V,r as ae}from"./resolve-slot-Bgp_Mn8k.js";import{i as oe}from"./Suffix-PHRsdJdH.js";import{t as se}from"./Modal-COuHyUKC.js";import{t as ce}from"./use-merged-state-D8rNARXC.js";import{r as le,t as H}from"./Button-_KVJEFbE.js";import{n as ue,r as U,t as de}from"./use-form-item-DDZTyeAQ.js";import{n as fe,t as pe}from"./Upload-i91liVQs.js";import{t as me}from"./Add-Dpa8jwVl.js";import{t as W}from"./Input-jiXpa-nM.js";import{t as he}from"./Remove-B8gpmkQR.js";import{t as ge}from"./Tag-DfP_x904.js";import{t as G}from"./Space-BumyB3cS.js";import{t as K}from"./text-BQr3Ce8B.js";import{C as _e,F as ve,H as q,V as ye,X as be,a as xe,d as Se,j as Ce,nt as J,x as we}from"./index-4mSiwzFS.js";import{n as Te,t as Ee}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{n as Y,r as X,t as De}from"./application-CQhaY0yx.js";var Oe=_({name:`ArrowDown`,render(){return c(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},c(`g`,{"fill-rule":`nonzero`},c(`path`,{d:`M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z`}))))}}),ke=_({name:`ArrowUp`,render(){return c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},c(`g`,{fill:`none`},c(`path`,{d:`M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z`,fill:`currentColor`})))}}),Ae=k(`input-group`,` display: inline-flex; width: 100%; flex-wrap: nowrap; diff --git a/dist/assets/Popover-MvWXFA-P.js b/dist/assets/Popover-DZnHj7OS.js similarity index 96% rename from dist/assets/Popover-MvWXFA-P.js rename to dist/assets/Popover-DZnHj7OS.js index 793e3b7..e0c1913 100644 --- a/dist/assets/Popover-MvWXFA-P.js +++ b/dist/assets/Popover-DZnHj7OS.js @@ -1,4 +1,4 @@ -import{F as e,L as t,P as n,S as r,V as i,_ as a,ct as o,dt as s,et as c,j as l,q as u,rt as d,tt as f,x as p,y as m}from"./auth-DetOXv90.js";import{A as h,C as g,D as _,E as v,G as y,J as b,K as x,M as S,N as C,O as w,S as T,T as E,X as D,Y as O,_ as k,b as A,c as j,d as ee,f as M,g as N,h as te,j as P,k as F,l as ne,m as re,o as ie,p as ae,q as oe,r as se,u as I,v as ce,w as L,x as le,y as ue}from"./light-BN35I8ot.js";import{a as de,i as fe,o as R,t as pe}from"./Follower-BqBATTTc.js";import{a as me,d as z,f as he,u as B}from"./Card-BFXpokQN.js";import{a as V,n as ge}from"./resolve-slot-DXnJRg0o.js";import{_ as _e,l as ve,m as ye,o as be,p as xe,u as Se}from"./Suffix-CutOgybq.js";import{t as Ce}from"./use-merged-state-Dw19ICqg.js";import{t as we}from"./use-compitable-Ct-u1IyK.js";import{i as Te,t as Ee}from"./keep-XDVR1tb6.js";import{r as H}from"./use-form-item-CT1L1ziV.js";import{a as De,i as Oe,n as ke,o as U,r as W,t as Ae}from"./get-Cv_ptumj.js";import{J as je,O as Me,W as Ne,Y as Pe,Z as Fe,et as Ie}from"./index-UYw_T9_p.js";var G=`@@mmoContext`,Le={mounted(e,{value:t}){e[G]={handler:void 0},typeof t==`function`&&(e[G].handler=t,z(`mousemoveoutside`,e,t))},updated(e,{value:t}){let n=e[G];typeof t==`function`?n.handler?n.handler!==t&&(B(`mousemoveoutside`,e,n.handler),n.handler=t,z(`mousemoveoutside`,e,t)):(e[G].handler=t,z(`mousemoveoutside`,e,t)):n.handler&&=(B(`mousemoveoutside`,e,n.handler),void 0)},unmounted(e){let{handler:t}=e[G];t&&B(`mousemoveoutside`,e,t),e[G].handler=void 0}},K;function Re(){return K===void 0&&(K=navigator.userAgent.includes(`Node.js`)||navigator.userAgent.includes(`jsdom`)),K}var q=g(P,`WeakMap`),ze=ae(Object.keys,Object),Be=Object.prototype.hasOwnProperty;function Ve(e){if(!ce(e))return ze(e);var t=[];for(var n in Object(e))Be.call(e,n)&&n!=`constructor`&&t.push(n);return t}function He(e){return ue(e)?re(e):Ve(e)}function Ue(e,t){for(var n=-1,r=t.length,i=e.length;++ns))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&vt?new Y:void 0;for(a.set(e,t),a.set(t,e);++ds))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&vt?new Y:void 0;for(a.set(e,t),a.set(t,e);++d(n(),t(r,null,[e(a,{kind:`privacy`}),e(o)],64))}});export{s as default}; \ No newline at end of file diff --git a/dist/assets/PrivacyPolicyView-lUpP47S0.js b/dist/assets/PrivacyPolicyView-lUpP47S0.js deleted file mode 100644 index 4f8d248..0000000 --- a/dist/assets/PrivacyPolicyView-lUpP47S0.js +++ /dev/null @@ -1 +0,0 @@ -import{A as e,E as t,K as n,_ as r,j as i}from"./auth-DetOXv90.js";import{t as a}from"./DocsPage-DzX4rZ9-.js";import{t as o}from"./HeaderMenu-BV7MwsiN.js";var s=i({__name:`PrivacyPolicyView`,setup(i){return(i,s)=>(n(),t(r,null,[e(a,{kind:`privacy`}),e(o)],64))}});export{s as default}; \ No newline at end of file diff --git a/dist/assets/QrCode-DwxuAXRz.js b/dist/assets/QrCode-CWZd63W8.js similarity index 98% rename from dist/assets/QrCode-DwxuAXRz.js rename to dist/assets/QrCode-CWZd63W8.js index 58684d6..e329063 100644 --- a/dist/assets/QrCode-DwxuAXRz.js +++ b/dist/assets/QrCode-CWZd63W8.js @@ -1,4 +1,4 @@ -import{P as e,S as t,U as n,ct as r,j as i,tt as a}from"./auth-DetOXv90.js";import{G as o,K as s,M as c,N as l,r as u,t as d}from"./light-BN35I8ot.js";function f(e){return{borderRadius:e.borderRadius}}var p={name:`QrCode`,common:d,self:f},m;(function(e){class t{static encodeText(n,r){let i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){let i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,r,a=1,o=40,s=-1,c=!0){if(!(t.MIN_VERSION<=a&&a<=o&&o<=t.MAX_VERSION)||s<-1||s>7)throw RangeError(`Invalid value`);let l,u;for(l=a;;l++){let n=t.getNumDataCodewords(l,r)*8,a=i.getTotalBits(e,l);if(a<=n){u=a;break}if(l>=o)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&u<=t.getNumDataCodewords(l,e)*8&&(r=e);let d=[];for(let t of e){n(t.mode.modeBits,4,d),n(t.numChars,t.mode.numCharCountBits(l),d);for(let e of t.getData())d.push(e)}let f=t.getNumDataCodewords(l,r)*8;n(0,Math.min(4,f-d.length),d),n(0,(8-d.length%8)%8,d);for(let e=236;d.lengthp[t>>>3]|=e<<7-(t&7)),new t(l,r,p,s)}constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw RangeError(`Version value out of range`);if(i<-1||i>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let a=[];for(let e=0;e=0&&e=0&&t>>9)*1335;let i=(t<<10|n)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(i,e));this.setFunctionModule(8,7,r(i,6)),this.setFunctionModule(8,8,r(i,7)),this.setFunctionModule(7,8,r(i,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(i,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(i,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(i,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;a>=0&&a=0&&o{(e!==c-a||n>=s)&&d.push(t[e])});return d}drawCodewords(e){if(e.length!==Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t===6&&(t=5);for(let i=0;i>>3],7-(n&7)),n++)}}}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;ne+ +!!t,n);let r=this.size*this.size,i=Math.ceil(Math.abs(n*20-r*10)/r)-1;return e+=i*t.PENALTY_N4,e}getAlignmentPatternPositions(){if(this.version===1)return[];{let e=Math.floor(this.version/7)+2,t=this.version===32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.lengtht.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n}finderPenaltyCountPatterns(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]===0&&(e+=this.size),t.pop(),t.unshift(e)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}class i{static makeBytes(e){let t=[];for(let r of e)n(r,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw RangeError(`String contains non-numeric characters`);let t=[];for(let r=0;r=1<7)throw RangeError(`Invalid value`);let l,u;for(l=a;;l++){let n=t.getNumDataCodewords(l,r)*8,a=i.getTotalBits(e,l);if(a<=n){u=a;break}if(l>=o)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&u<=t.getNumDataCodewords(l,e)*8&&(r=e);let d=[];for(let t of e){n(t.mode.modeBits,4,d),n(t.numChars,t.mode.numCharCountBits(l),d);for(let e of t.getData())d.push(e)}let f=t.getNumDataCodewords(l,r)*8;n(0,Math.min(4,f-d.length),d),n(0,(8-d.length%8)%8,d);for(let e=236;d.lengthp[t>>>3]|=e<<7-(t&7)),new t(l,r,p,s)}constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw RangeError(`Version value out of range`);if(i<-1||i>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let a=[];for(let e=0;e=0&&e=0&&t>>9)*1335;let i=(t<<10|n)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(i,e));this.setFunctionModule(8,7,r(i,6)),this.setFunctionModule(8,8,r(i,7)),this.setFunctionModule(7,8,r(i,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(i,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(i,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(i,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;a>=0&&a=0&&o{(e!==c-a||n>=s)&&d.push(t[e])});return d}drawCodewords(e){if(e.length!==Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t===6&&(t=5);for(let i=0;i>>3],7-(n&7)),n++)}}}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;ne+ +!!t,n);let r=this.size*this.size,i=Math.ceil(Math.abs(n*20-r*10)/r)-1;return e+=i*t.PENALTY_N4,e}getAlignmentPatternPositions(){if(this.version===1)return[];{let e=Math.floor(this.version/7)+2,t=this.version===32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.lengtht.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n}finderPenaltyCountPatterns(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]===0&&(e+=this.size),t.pop(),t.unshift(e)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}class i{static makeBytes(e){let t=[];for(let r of e)n(r,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw RangeError(`String contains non-numeric characters`);let t=[];for(let r=0;r=1<t(`svg`,{viewBox:`0 0 512 512`},t(`path`,{d:`M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z`})),w=c(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[o(`&:hover`,[s(`item`,` +import{J as e,P as t,S as n,ct as r,dt as i,j as a}from"./auth-CzuN8bsR.js";import{G as o,J as s,K as c,M as l,N as u,X as d,Y as f,Z as p,r as m,t as h}from"./light-Dg5iONHF.js";import{t as g}from"./use-merged-state-D8rNARXC.js";import{i as _,n as v,r as y}from"./use-form-item-DDZTyeAQ.js";import{H as b}from"./index-4mSiwzFS.js";function x(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#FFCC33`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}var S={name:`Rate`,common:h,self:x},C=()=>t(`svg`,{viewBox:`0 0 512 512`},t(`path`,{d:`M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z`})),w=c(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[o(`&:hover`,[s(`item`,` transition: transform .1s var(--n-bezier), color .3s var(--n-bezier); diff --git a/dist/assets/Remove-CNpD-1y-.js b/dist/assets/Remove-B8gpmkQR.js similarity index 82% rename from dist/assets/Remove-CNpD-1y-.js rename to dist/assets/Remove-B8gpmkQR.js index dcfc2ae..e225b7b 100644 --- a/dist/assets/Remove-CNpD-1y-.js +++ b/dist/assets/Remove-B8gpmkQR.js @@ -1,4 +1,4 @@ -import{P as e,j as t}from"./auth-DetOXv90.js";var n=t({name:`Remove`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:` +import{P as e,j as t}from"./auth-CzuN8bsR.js";var n=t({name:`Remove`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:` fill: none; stroke: currentColor; stroke-linecap: round; diff --git a/dist/assets/ReviewsView-BnIZXIGV.js b/dist/assets/ReviewsView-BnIZXIGV.js new file mode 100644 index 0000000..a84bba1 --- /dev/null +++ b/dist/assets/ReviewsView-BnIZXIGV.js @@ -0,0 +1 @@ +import{A as e,C as t,E as n,J as r,K as i,T as a,_ as o,ct as s,j as c,jt as l,k as u,nt as d,pt as f,w as p}from"./auth-CzuN8bsR.js";import{t as m}from"./Card-jY6IqKWx.js";import{t as h}from"./Button-_KVJEFbE.js";import{t as g}from"./Tag-DfP_x904.js";import{t as _}from"./use-message-R8JEzJ8f.js";import{t as v}from"./Flex-ISd7TnC9.js";import{t as y}from"./Rate-BuNWBBdn.js";import{r as b,t as x}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as S}from"./HeaderMenu-Qspj3Vlt.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=x(c({__name:`ReviewsPage`,setup(c){let x=b(),O=_(),k=s([]);async function A(){let e=await x.GetReviewsForModeration({});if(e.error!=``){O.error(e.error);return}k.value=e.reviews||[]}async function j(e,t){let n=await x.ModerateGameReview({id:e.id,status:t});if(n.error!=``){O.error(n.error);return}await A()}return A(),(s,c)=>(i(),n(o,null,[t(`div`,C,[t(`div`,w,[t(`div`,T,[c[1]||=t(`h1`,null,`Отзывы`,-1),e(f(h),{onClick:A},{default:d(()=>[...c[0]||=[u(`Обновить`,-1)]]),_:1})]),k.value.length==0?(i(),p(f(m),{key:0},{default:d(()=>[...c[2]||=[u(`Очередь отзывов пуста.`,-1)]]),_:1})):a(``,!0),(i(!0),n(o,null,r(k.value,n=>(i(),p(f(m),{key:n.id,class:`review-card`},{default:d(()=>[e(f(v),{justify:`space-between`,align:`center`},{default:d(()=>[t(`div`,null,[t(`div`,E,l(n.gameName),1),t(`strong`,null,l(n.teamName),1)]),e(f(g),null,{default:d(()=>[u(l(n.status),1)]),_:2},1024)]),_:2},1024),e(f(y),{value:n.rating,readonly:``},null,8,[`value`]),t(`p`,D,l(n.text),1),n.status==`pending`?(i(),p(f(v),{key:0,justify:`end`},{default:d(()=>[e(f(h),{type:`success`,onClick:e=>j(n,`approved`)},{default:d(()=>[...c[3]||=[u(`Одобрить`,-1)]]),_:1},8,[`onClick`]),e(f(h),{type:`error`,ghost:``,onClick:e=>j(n,`rejected`)},{default:d(()=>[...c[4]||=[u(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):n.status==`approved`?(i(),p(f(v),{key:1,justify:`end`},{default:d(()=>[e(f(h),{type:`error`,ghost:``,onClick:e=>j(n,`hidden`)},{default:d(()=>[...c[5]||=[u(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):a(``,!0)]),_:2},1024))),128))])]),e(S,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-e74ad3c9`]]),k=c({__name:`ReviewsView`,setup(e){return(e,t)=>(i(),p(O))}});export{k as default}; \ No newline at end of file diff --git a/dist/assets/ReviewsView-DHvnR8hu.css b/dist/assets/ReviewsView-DHvnR8hu.css new file mode 100644 index 0000000..39216c3 --- /dev/null +++ b/dist/assets/ReviewsView-DHvnR8hu.css @@ -0,0 +1 @@ +.center-block-custom[data-v-e74ad3c9]{height:calc(100dvh - 70px)}.page-header[data-v-e74ad3c9]{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.page-header h1[data-v-e74ad3c9]{font-size:28px}.review-card[data-v-e74ad3c9]{margin:12px 0}.review-game[data-v-e74ad3c9]{color:#777;margin-bottom:4px;font-size:13px}.review-text[data-v-e74ad3c9]{white-space:pre-wrap} diff --git a/dist/assets/ScenarioView-MSdKfSb5.js b/dist/assets/ScenarioView-Crpa-0a2.js similarity index 84% rename from dist/assets/ScenarioView-MSdKfSb5.js rename to dist/assets/ScenarioView-Crpa-0a2.js index 8023099..a68b1cd 100644 --- a/dist/assets/ScenarioView-MSdKfSb5.js +++ b/dist/assets/ScenarioView-Crpa-0a2.js @@ -1 +1 @@ -import{A as e,C as t,E as n,K as r,T as i,_ as a,ct as o,j as s,jt as c,k as l,nt as u,pt as d,u as f,w as p}from"./auth-DetOXv90.js";import{t as m}from"./Tag-BqKZJJ-a.js";import{t as h}from"./use-message-bV_QZwc3.js";import{t as g}from"./Rate-B5toYPlv.js";import{r as _,t as v}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as y}from"./HeaderMenu-BV7MwsiN.js";var b={class:`center-block-custom`},x={class:`width700`},S={class:`scenario-card`},C={class:`scenario-heading`},w={class:`scenario-title`},T={class:`scenario-image-frame`},E=[`src`,`alt`],D={class:`scenario-details`},O={class:`scenario-description`},k={class:`scenario-rating`},A={key:1},j={key:2},M={class:`scenario-author`},N=v(s({__name:`ScenarioPage`,setup(s){let v=h(),N=_(),P=f().params.id,F=o({id:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0});async function I(e){let t=await N.GetScenario({id:e});if(t.error!=``){v.error(t.error);return}F.value=t.scenario}return I(Number(P)),(o,s)=>(r(),n(a,null,[t(`div`,b,[t(`div`,x,[t(`section`,S,[t(`div`,C,[s[0]||=t(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),t(`h1`,w,c(F.value.name),1)]),t(`div`,T,[t(`img`,{class:`scenario-image`,src:F.value.image,alt:F.value.name},null,8,E)]),t(`div`,D,[t(`p`,O,c(F.value.description),1),t(`div`,k,[F.value.reviewsCount?(r(),p(d(g),{key:0,value:F.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):i(``,!0),F.value.reviewsCount?(r(),n(`span`,A,c(F.value.averageRating?.toFixed(1))+` · `+c(F.value.reviewsCount)+` отзывов`,1)):(r(),n(`span`,j,`Пока нет оценок`))]),t(`div`,M,[e(d(m),{bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[l(` Автор: `+c(F.value.author?.username),1)]),_:1})])])])])]),e(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-63f4bb0b`]]),P=s({__name:`ScenarioView`,setup(e){return(e,t)=>(r(),p(N))}});export{P as default}; \ No newline at end of file +import{A as e,C as t,E as n,K as r,T as i,_ as a,ct as o,j as s,jt as c,k as l,nt as u,pt as d,u as f,w as p}from"./auth-CzuN8bsR.js";import{t as m}from"./Tag-DfP_x904.js";import{t as h}from"./use-message-R8JEzJ8f.js";import{t as g}from"./Rate-BuNWBBdn.js";import{r as _,t as v}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as y}from"./HeaderMenu-Qspj3Vlt.js";var b={class:`center-block-custom`},x={class:`width700`},S={class:`scenario-card`},C={class:`scenario-heading`},w={class:`scenario-title`},T={class:`scenario-image-frame`},E=[`src`,`alt`],D={class:`scenario-details`},O={class:`scenario-description`},k={class:`scenario-rating`},A={key:1},j={key:2},M={class:`scenario-author`},N=v(s({__name:`ScenarioPage`,setup(s){let v=h(),N=_(),P=f().params.id,F=o({id:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0});async function I(e){let t=await N.GetScenario({id:e});if(t.error!=``){v.error(t.error);return}F.value=t.scenario}return I(Number(P)),(o,s)=>(r(),n(a,null,[t(`div`,b,[t(`div`,x,[t(`section`,S,[t(`div`,C,[s[0]||=t(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),t(`h1`,w,c(F.value.name),1)]),t(`div`,T,[t(`img`,{class:`scenario-image`,src:F.value.image,alt:F.value.name},null,8,E)]),t(`div`,D,[t(`p`,O,c(F.value.description),1),t(`div`,k,[F.value.reviewsCount?(r(),p(d(g),{key:0,value:F.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):i(``,!0),F.value.reviewsCount?(r(),n(`span`,A,c(F.value.averageRating?.toFixed(1))+` · `+c(F.value.reviewsCount)+` отзывов`,1)):(r(),n(`span`,j,`Пока нет оценок`))]),t(`div`,M,[e(d(m),{bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[l(` Автор: `+c(F.value.author?.username),1)]),_:1})])])])])]),e(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-63f4bb0b`]]),P=s({__name:`ScenarioView`,setup(e){return(e,t)=>(r(),p(N))}});export{P as default}; \ No newline at end of file diff --git a/dist/assets/ScenariosEditorView-DBVhNdlh.js b/dist/assets/ScenariosEditorView-F771n23k.js similarity index 96% rename from dist/assets/ScenariosEditorView-DBVhNdlh.js rename to dist/assets/ScenariosEditorView-F771n23k.js index f7e5238..76b3943 100644 --- a/dist/assets/ScenariosEditorView-DBVhNdlh.js +++ b/dist/assets/ScenariosEditorView-F771n23k.js @@ -1 +1 @@ -import{A as e,C as t,E as n,J as r,K as i,S as a,T as o,Y as s,_ as c,ct as l,j as u,jt as d,k as f,nt as p,pt as m,t as ee,u as te,w as h}from"./auth-DetOXv90.js";import{t as g}from"./Card-BFXpokQN.js";import{t as ne}from"./Modal-Cc3YqyVW.js";import{t as _}from"./Button-SFBLnAwv.js";import{n as re,t as v}from"./Upload-MQncuSBB.js";import{i as y,n as ie,t as ae}from"./PlaceBlock-vyAeKNdX.js";import{t as b}from"./Input-CM5axX8S.js";import{t as oe}from"./Tag-BqKZJJ-a.js";import{t as se}from"./Alert-BbFVk-Xc.js";import{t as ce}from"./use-message-bV_QZwc3.js";import{t as x}from"./Space-B98o1YSA.js";import{t as S}from"./Flex-SLIxZFiS.js";import{t as C}from"./text-DNaqMd7_.js";import{t as w}from"./index-UYw_T9_p.js";import{n as le,r as ue,t as T}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as de}from"./HeaderMenu-BV7MwsiN.js";import{t as fe}from"./Settings-ClmW7dGA.js";import{t as pe}from"./binary_client-C_fP8dcD.js";import{r as me}from"./application-CK_JoGAx.js";var E={key:1,class:`place-block`},D={class:`message-header`},O={class:`message-content`},k={key:0},A={class:`correct-answer`},j={key:1,class:`intro-empty`},M={key:3,class:`place-block`},N={class:`slot-block`},P=T(u({__name:`QuestionBlock`,props:{newQuestionCode:{type:String},newQuestionText:{type:String},newQuestionAnswer:{type:String},question:{type:Object},mode:{type:String,required:!0}},emits:[`update:newQuestionCode`,`update:newQuestionText`,`update:newQuestionAnswer`,`update:mode`],setup(r,{emit:a}){let l=r,u=a,ee=e=>{u(`update:newQuestionCode`,e)},te=e=>{u(`update:newQuestionText`,e)},h=e=>{u(`update:newQuestionAnswer`,e)},g=e=>{u(`update:mode`,e)};return(a,u)=>(i(),n(c,null,[r.mode==`mini-add`?(i(),n(`div`,{key:0,class:`place-block-hover show-editor-block`,onClick:u[0]||=e=>g(`add`)},[...u[5]||=[t(`p`,{class:`place-image-plus`},`+`,-1)]])):o(``,!0),r.mode==`add`?(i(),n(`div`,E,[e(m(x),{vertical:``},{default:p(()=>[e(m(y),null,{default:p(()=>[e(m(b),{style:{width:`25%`},value:r.newQuestionCode,"onUpdate:value":ee,type:`text`,placeholder:`В-1`},null,8,[`value`]),e(m(b),{style:{width:`75%`},value:r.newQuestionText,"onUpdate:value":te,type:`text`,placeholder:`Кто украл пастуха?`},null,8,[`value`])]),_:1}),e(m(b),{value:r.newQuestionAnswer,"onUpdate:value":h,type:`textarea`,autosize:{minRows:2},placeholder:`Правильный ответ (виден только автору и организаторам)`},null,8,[`value`]),s(a.$slots,`default`,{},void 0,!0)]),_:3})])):o(``,!0),r.mode==`show-editor`?(i(),n(`div`,{key:2,class:`place-block-hover show-editor-block`,onClick:u[1]||=e=>g(`edit`)},[t(`div`,D,d(l.question?.code)+`: `+d(l.question?.text),1),u[8]||=t(`hr`,{class:`hr`},null,-1),t(`div`,O,[l.question?.answer?(i(),n(`span`,k,[u[6]||=f(` Ответ:`,-1),u[7]||=t(`br`,null,null,-1),t(`span`,A,d(l.question.answer),1)])):(i(),n(`span`,j,`Ответ не задан`))])])):o(``,!0),r.mode==`edit`?(i(),n(`div`,M,[e(m(x),{vertical:``},{default:p(()=>[e(m(y),null,{default:p(()=>[e(m(b),{style:{width:`25%`},value:l.question.code,"onUpdate:value":u[2]||=e=>l.question.code=e,type:`text`,placeholder:`В-1`},null,8,[`value`]),e(m(b),{style:{width:`75%`},value:l.question.text,"onUpdate:value":u[3]||=e=>l.question.text=e,type:`text`,placeholder:`Кто украл пастуха?`},null,8,[`value`])]),_:1}),u[10]||=t(`p`,{class:`settings-header`},`Правильный ответ`,-1),e(m(b),{value:l.question.answer,"onUpdate:value":u[4]||=e=>l.question.answer=e,type:`textarea`,autosize:{minRows:2},placeholder:`Правильный ответ (виден только автору и организаторам)`},null,8,[`value`]),e(m(C),{class:`hint`,depth:`3`},{default:p(()=>[...u[9]||=[f(` Смена кода вопроса не переносит ответы команд, отправленные под старым кодом. `,-1)]]),_:1}),t(`div`,N,[s(a.$slots,`default`,{},void 0,!0)])]),_:3})])):o(``,!0)],64))}}),[[`__scopeId`,`data-v-7bd7e4c0`]]),he={class:`width700`},ge={class:`places-container`},_e={class:`settings-block`},ve=[`src`],ye=[`src`],be=[`aria-label`],F=T(u({__name:`ScenariosEditorPage`,setup(s){let u=ee(),y=ue(),T=pe(),E=te().params.id,D=l(!1),O=l(``),k=l(``),A=l(!1),j=ce(),M=l([]),N=l({id:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0}),F=l([]),I=l(!1),L=l({text:``,audio:``}),R=l(`show-editor`),z=l({text:``,video:``}),B=l([]),V=l(!1),xe=a(()=>me(z.value.video));function H(){z.value={text:``,video:``,...N.value.story?.conclusion},B.value=[]}function Se(){z.value.video=``,B.value=[]}async function Ce(e=!1){V.value=!0;try{let t=qe(z.value.video);if(!e&&B.value.length){let e=B.value[0].file;if(!e)return;let n=await G(e,`scenarios_`+N.value.id+`_conclusion_`+e.name);if(!n.filename)return;if(n.fileType!==`video`){j.error(`Закрывашка должна содержать видео MP4 или WebM`);return}t=n.filename}let n=e?{text:``,video:``}:{text:z.value.text,video:t},r=await y.UpdateScenarioConclusion({id:N.value.id,conclusion:n});if(r.error){j.error(r.error);return}N.value.story.conclusion=n,H(),j.success(e?`Закрывашка удалена`:`Закрывашка сохранена`)}catch{j.error(`Не удалось сохранить закрывашку`)}finally{V.value=!1}}let we=a(()=>N.value.story?.places||[]),Te=l(null),U=new Map;function Ee(e){let t=e?we.value.find(t=>(t.oldCode??t.code)===e):void 0,n=t&&U.get(t),r=Te.value;if(!n||!r){j.error(e?`Точка «${e}» не найдена`:`У действия не указан код точки`);return}n.focus({preventScroll:!0}),r.scrollTo({top:r.scrollTop+n.getBoundingClientRect().top-r.getBoundingClientRect().top-10,behavior:`smooth`})}let De=a(()=>N.value.story?.questions||[]);async function W(e){let t=await y.GetFullScenario({id:e});if(t.error!=``){j.error(t.error);return}N.value=t.scenario,H(),N.value.story?.places?.forEach(e=>{let t=e;t.oldCode=t.code,t.mode=`show-editor`}),N.value.story?.questions?.forEach(e=>{let t=e;t.oldCode=t.code,t.mode=`show-editor`}),L.value=N.value.story?.introduction||{text:``,audio:``},R.value=`show-editor`}W(Number(E));async function Oe(e){let t=await y.DeleteScenario({id:e});if(t.error!=``){j.error(t.error);return}w.push(`/scenarios`)}async function ke(e){let t=await y.PublicScenario({id:e});if(t.error!=``){j.error(t.error);return}await W(Number(E)),O.value=``,D.value=!1}async function Ae(e,t){let n=new Date().toISOString(),r=await y.AddGame({name:(`Тестовая игра: `+e).trim(),description:`Тестовая игра`,format:`online`,startAt:n,scenarioId:t});if(r.error!=``){j.error(r.error);return}let i=await y.AddTeam({name:`Тестовая команда`,captainEmail:``,gameId:r.id});if(i.error!=``){j.error(i.error);return}w.push(`/team-story/`+i.id+`?password=`+i.password)}async function je(e){let t=await y.DraftScenario({id:e});if(t.error!=``){j.error(t.error);return}await W(Number(E)),O.value=``,D.value=!1}async function Me(){A.value=!0;try{let{blob:e,filename:t}=await T.downloadScenarioArchive(N.value.id),n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e3),j.success(`Архив сценария скачан`)}catch(e){j.error(e instanceof Error?e.message:`Не удалось скачать архив`)}finally{A.value=!1}}async function G(e,t){if(!e)return{filename:``,fileType:``};let n=await e.arrayBuffer(),r=new Uint8Array(n),i=await y.UploadFile({filename:t,data:Pe(r)});return i.error==``?{filename:i.filename||``,fileType:i.file_type||``}:(j.error(i.error),{filename:``,fileType:``})}async function Ne(){let e=``;if(M.value&&M.value.length>0){let t=M.value[0].file||null;if(t==null)return;let n=await G(t,`scenarios_`+N.value.id+`_`+t.name);if(n.filename===``)return;e=n.filename}let t=await y.UpdateScenario({id:N.value.id,name:N.value.name,description:N.value.description,image:e});if(t.error!=``){j.error(t.error);return}await W(Number(E)),D.value=!1}function Pe(e){let t=Fe(e);return btoa(t)}function Fe(e){let t=``;for(let n=0;ne.code==n.code)==null){let t=await y.AddScenarioPlace({id:e.id,place:{code:n.code,name:n.name,text:void 0,image:void 0,hidden:!0,applications:void 0,doors:void 0,keys:void 0}});if(t.error!=``){j.error(t.error);return}}}async function ze(e){await W(Number(E)),e.mode=`show-editor`}async function Be(e){if(e.fileList&&e.fileList.length>0){let t=e.fileList[0].file||null;if(t==null)return;let n=await G(t,`scenarios_`+N.value.id+`_place_`+e.code+`_`+t.name);if(n.filename===``)return;e.image=n.filename}let t=e.applications||[];for(let n of t){if(!n.fileList||n.fileList.length==0)continue;let t=n.fileList[0].file||null;if(t==null)continue;let r=await G(t,`scenarios_`+N.value.id+`_place_`+e.code+`_app_`+t.name);if(r.filename===``)return;n.image=r.filename,n.file_type=r.fileType}await Re(N.value,e);let n=await y.UpdateScenarioPlace({id:N.value.id,code:e.oldCode,place:e});if(n.error!=``){j.error(n.error);return}await W(Number(E)),e.mode=`show-editor`}async function Ve(e){let t=await y.DeleteScenarioPlace({id:N.value.id,code:e.oldCode});if(t.error!=``){j.error(t.error);return}await W(Number(E))}let X=l(``),Z=l(``),Q=l(``),$=l(`mini-add`);async function He(){let e=await y.AddScenarioQuestion({id:N.value.id,question:{code:X.value,text:Z.value,answer:Q.value}});if(e.error!=``){j.error(e.error);return}await W(Number(E)),X.value=``,Z.value=``,Q.value=``,$.value=`add`}async function Ue(){X.value=``,Z.value=``,Q.value=``,$.value=`mini-add`}async function We(e){let t=await y.UpdateScenarioQuestion({id:N.value.id,code:e.oldCode,question:{code:e.code,text:e.text,answer:e.answer}});if(t.error!=``){j.error(t.error);return}await W(Number(E)),e.mode=`show-editor`}async function Ge(e){await W(Number(E)),e.mode=`show-editor`}async function Ke(e){let t=await y.DeleteScenarioQuestion({id:N.value.id,code:e.oldCode});if(t.error!=``){j.error(t.error);return}await W(Number(E))}function qe(e){return e&&e.split(`/`).pop()||``}async function Je(){let e=``;if(L.value.fileList&&L.value.fileList.length>0){let t=L.value.fileList[0].file||null;if(t==null||(e=(await G(t,`scenarios_`+N.value.id+`_intro_`+t.name)).filename,e===``))return}else e=qe(L.value.audio);let t=await y.UpdateScenarioIntro({id:N.value.id,introduction:{text:L.value.text,audio:e}});if(t.error!=``){j.error(t.error);return}await W(Number(E))}async function Ye(e=!1){I.value=!0;try{let t=``;if(!e){let e=F.value[0]?.file;if(!e)return;let n=await G(e,`scenarios_`+N.value.id+`_background_`+e.name);if(!n.filename)return;if(n.fileType!==`image`){j.error(`Фон дела должен быть изображением`);return}t=n.filename}let n=await y.UpdateScenarioBackground({id:N.value.id,background:t});if(n.error){j.error(n.error);return}await W(Number(E)),F.value=[]}catch{j.error(`Не удалось сохранить фон дела`)}finally{I.value=!1}}async function Xe(){await W(Number(E))}function Ze(){let e=[{text:`Настя, ты просто ослепительна сегодня!`,nameForm:`Настя`},{text:`У Насти невероятный вкус!`,nameForm:`Насти`},{text:`Настенька, твоя улыбка делает мир ярче.`,nameForm:`Настенька`},{text:`С Настей всегда интересно общаться.`,nameForm:`Настей`},{text:`Настя, ты — источник вдохновения для всех вокруг.`,nameForm:`Настя`},{text:`Мне нравится, как Настя смотрит на мир.`,nameForm:`Настя`},{text:`Настюха, ты супер!`,nameForm:`Настюха`},{text:`Талант Насти поражает!`,nameForm:`Насти`},{text:`Настя, твоя энергия заряжает батарейки!`,nameForm:`Настя`},{text:`С Настей хочется проводить каждую минуту.`,nameForm:`Настей`},{text:`Настенька, ты — самое красивое, что случилось в этом мире.`,nameForm:`Настенька`},{text:`У Насти золотое сердце.`,nameForm:`Насти`}];return e[Math.floor(Math.random()*e.length)].text}return(a,s)=>(i(),n(c,null,[t(`div`,{ref_key:`scrollContainer`,ref:Te,class:`center-block-custom`},[t(`div`,he,[t(`div`,ge,[N.value.status==`public`?(i(),h(m(se),{key:0,title:`Сценарий опубликован`,type:`warning`,style:{"margin-bottom":`20px`}},{default:p(()=>[...s[39]||=[f(` Не рекомендуется редактировать сценарий когда он опубликован. `,-1)]]),_:1})):o(``,!0),m(u).user?.id==2?(i(),h(m(se),{key:1,title:Ze(),type:`info`,style:{"margin-bottom":`20px`}},null,8,[`title`])):o(``,!0),t(`div`,_e,[f(` Точек: `+d(N.value.story?.places?.length)+`, Вопросов: `+d(N.value.story?.questions?.length)+` `,1),e(m(_),{quaternary:``,onClick:s[0]||=e=>D.value=!0,class:`settings-button`},{default:p(()=>[e(m(le),{class:`settings-icon`},{default:p(()=>[e(m(fe))]),_:1}),s[40]||=f(` Настройки `,-1)]),_:1})]),e(m(g),{title:`Фон дела`},{default:p(()=>[e(m(x),{vertical:``},{default:p(()=>[N.value.story?.background?(i(),n(`img`,{key:0,src:N.value.story.background,alt:`Фон дела`,class:`background-preview`},null,8,ve)):o(``,!0),e(m(v),{"file-list":F.value,"onUpdate:fileList":s[1]||=e=>F.value=e,accept:`.jpg,.jpeg,.png,.gif,.webp`,max:1,"default-upload":!1,disabled:I.value},{default:p(()=>[e(m(_),{disabled:I.value},{default:p(()=>[...s[41]||=[f(`Выбрать фон`,-1)]]),_:1},8,[`disabled`])]),_:1},8,[`file-list`,`disabled`]),e(m(S),null,{default:p(()=>[e(m(_),{loading:I.value,disabled:!F.value.length||I.value,onClick:s[2]||=e=>Ye()},{default:p(()=>[...s[42]||=[f(`Сохранить фон`,-1)]]),_:1},8,[`loading`,`disabled`]),N.value.story?.background?(i(),h(m(_),{key:0,disabled:I.value,onClick:s[3]||=e=>Ye(!0)},{default:p(()=>[...s[43]||=[f(`Удалить фон`,-1)]]),_:1},8,[`disabled`])):o(``,!0)]),_:1})]),_:1})]),_:1}),e(ie,{introduction:L.value,mode:R.value,"onUpdate:mode":s[6]||=e=>R.value=e},{default:p(()=>[e(m(S),{justify:`end`},{default:p(()=>[e(m(_),{onClick:s[4]||=e=>Xe()},{default:p(()=>[...s[44]||=[f(`Отмена`,-1)]]),_:1}),e(m(_),{onClick:s[5]||=e=>Je()},{default:p(()=>[...s[45]||=[f(`Сохранить вступление`,-1)]]),_:1})]),_:1})]),_:1},8,[`introduction`,`mode`]),e(m(g),{title:`Закрывашка сценария`},{default:p(()=>[e(m(x),{vertical:``},{default:p(()=>[e(m(C),{depth:`3`},{default:p(()=>[...s[46]||=[f(`Разгадка дела для автора. Игрокам не показывается.`,-1)]]),_:1}),e(m(b),{value:z.value.text,"onUpdate:value":s[7]||=e=>z.value.text=e,type:`textarea`,autosize:{minRows:4,maxRows:12},placeholder:`Текст закрывашки`,"aria-label":`Текст закрывашки`,disabled:V.value},null,8,[`value`,`disabled`]),xe.value?(i(),n(`video`,{key:0,src:xe.value,controls:``,preload:`none`,class:`conclusion-video`,"aria-label":`Видео закрывашки`},null,8,ye)):o(``,!0),z.value.video?(i(),h(m(_),{key:1,disabled:V.value,onClick:s[8]||=e=>Se()},{default:p(()=>[...s[47]||=[f(`Убрать видео`,-1)]]),_:1},8,[`disabled`])):o(``,!0),e(m(v),{"file-list":B.value,"onUpdate:fileList":s[9]||=e=>B.value=e,accept:`.mp4,.webm`,max:1,"default-upload":!1,disabled:V.value},{default:p(()=>[e(m(_),{disabled:V.value},{default:p(()=>[...s[48]||=[f(`Выбрать видео MP4/WebM`,-1)]]),_:1},8,[`disabled`])]),_:1},8,[`file-list`,`disabled`]),e(m(S),{justify:`end`},{default:p(()=>[N.value.story?.conclusion?.text||N.value.story?.conclusion?.video?(i(),h(m(_),{key:0,disabled:V.value,onClick:s[10]||=e=>Ce(!0)},{default:p(()=>[...s[49]||=[f(`Удалить закрывашку`,-1)]]),_:1},8,[`disabled`])):o(``,!0),e(m(_),{disabled:V.value,onClick:s[11]||=e=>H()},{default:p(()=>[...s[50]||=[f(`Отмена`,-1)]]),_:1},8,[`disabled`]),e(m(_),{loading:V.value,disabled:V.value||!N.value.story,onClick:s[12]||=e=>Ce()},{default:p(()=>[...s[51]||=[f(`Сохранить закрывашку`,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),_:1})]),_:1}),s[62]||=t(`div`,{class:`questions-header`},`Вопросы дела`,-1),e(P,{mode:$.value,"onUpdate:mode":s[15]||=e=>$.value=e,newQuestionCode:X.value,"onUpdate:newQuestionCode":s[16]||=e=>X.value=e,newQuestionText:Z.value,"onUpdate:newQuestionText":s[17]||=e=>Z.value=e,newQuestionAnswer:Q.value,"onUpdate:newQuestionAnswer":s[18]||=e=>Q.value=e},{default:p(()=>[e(m(S),{justify:`end`},{default:p(()=>[e(m(_),{onClick:s[13]||=e=>Ue()},{default:p(()=>[...s[52]||=[f(`Отмена`,-1)]]),_:1}),e(m(_),{onClick:s[14]||=e=>He(),disabled:!X.value},{default:p(()=>[...s[53]||=[f(`Добавить вопрос`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newQuestionCode`,`newQuestionText`,`newQuestionAnswer`]),(i(!0),n(c,null,r(De.value,t=>(i(),h(P,{question:t,mode:t.mode,"onUpdate:mode":e=>t.mode=e,key:t.oldCode??t.code??``},{default:p(()=>[e(m(S),{justify:`end`},{default:p(()=>[e(m(_),{onClick:e=>Ke(t),type:`error`,ghost:``},{default:p(()=>[...s[54]||=[f(`Удалить`,-1)]]),_:1},8,[`onClick`]),e(m(_),{onClick:e=>Ge(t)},{default:p(()=>[...s[55]||=[f(`Отмена`,-1)]]),_:1},8,[`onClick`]),e(m(_),{onClick:e=>We(t),disabled:t.code==``},{default:p(()=>[...s[56]||=[f(`Сохранить`,-1)]]),_:1},8,[`onClick`,`disabled`])]),_:2},1024)]),_:2},1032,[`question`,`mode`,`onUpdate:mode`]))),128)),e(ae,{mode:Y.value,"onUpdate:mode":s[21]||=e=>Y.value=e,newPlaceCode:K.value,"onUpdate:newPlaceCode":s[22]||=e=>K.value=e,newPlaceName:q.value,"onUpdate:newPlaceName":s[23]||=e=>q.value=e,newPlaceText:J.value,"onUpdate:newPlaceText":s[24]||=e=>J.value=e},{default:p(()=>[e(m(S),{justify:`end`},{default:p(()=>[e(m(_),{onClick:s[19]||=e=>Le()},{default:p(()=>[...s[57]||=[f(`Отмена`,-1)]]),_:1}),e(m(_),{onClick:s[20]||=e=>Ie(),disabled:!K.value},{default:p(()=>[...s[58]||=[f(`Добавить точку`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newPlaceCode`,`newPlaceName`,`newPlaceText`]),(i(!0),n(c,null,r(we.value,t=>(i(),n(`div`,{key:t.oldCode??t.code??``,ref_for:!0,ref:e=>e?m(U).set(t,e):m(U).delete(t),class:`place-card`,tabindex:`-1`,role:`group`,"aria-label":`${t.code}: ${t.name}`},[e(ae,{place:t,mode:t.mode,"onUpdate:mode":e=>t.mode=e,onNavigate:Ee},{default:p(()=>[e(m(S),{justify:`end`},{default:p(()=>[e(m(_),{onClick:e=>Ve(t),type:`error`,ghost:``},{default:p(()=>[...s[59]||=[f(`Удалить`,-1)]]),_:1},8,[`onClick`]),e(m(_),{onClick:e=>ze(t)},{default:p(()=>[...s[60]||=[f(`Отмена`,-1)]]),_:1},8,[`onClick`]),e(m(_),{onClick:e=>Be(t),disabled:t.code==``},{default:p(()=>[...s[61]||=[f(`Сохранить`,-1)]]),_:1},8,[`onClick`,`disabled`])]),_:2},1024)]),_:2},1032,[`place`,`mode`,`onUpdate:mode`])],8,be))),128))])])],512),e(m(ne),{show:D.value,"onUpdate:show":s[38]||=e=>D.value=e},{default:p(()=>[e(m(g),{style:{width:`600px`},title:`Настройки сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":p(()=>[e(m(_),{onClick:s[25]||=e=>D.value=!1},{default:p(()=>[...s[63]||=[f(` x `,-1)]]),_:1})]),footer:p(()=>[...s[87]||=[]]),default:p(()=>[e(m(x),{vertical:``},{default:p(()=>[s[76]||=t(`p`,null,`Название`,-1),e(m(b),{value:N.value.name,"onUpdate:value":s[26]||=e=>N.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),s[77]||=t(`p`,{class:`settings-header`},`Описание`,-1),e(m(b),{value:N.value.description,"onUpdate:value":s[27]||=e=>N.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),s[78]||=t(`p`,{class:`settings-header`},`Картинка`,-1),e(m(b),{value:N.value.image,"onUpdate:value":s[28]||=e=>N.value.image=e,type:`text`,placeholder:`default_scenario.png`,disabled:``},null,8,[`value`]),e(m(v),{"directory-dnd":``,max:1,"file-list":M.value,"onUpdate:fileList":s[29]||=e=>M.value=e},{default:p(()=>[e(m(re),null,{default:p(()=>[e(m(C),{style:{"font-size":`16px`}},{default:p(()=>[...s[64]||=[f(` Щелкните или перетащите файл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`]),e(m(_),{onClick:s[30]||=e=>Ne(),ghost:``},{default:p(()=>[...s[65]||=[f(` Сохранить изменения `,-1)]]),_:1}),s[79]||=t(`hr`,{class:`settings-hr`},null,-1),s[80]||=t(`p`,{class:`settings-header`},`Архив сценария`,-1),s[81]||=t(`p`,{class:`settings-hint`},` Скачайте сценарий ZIP-архивом (scenario.json + изображения) и импортируйте его в другом аккаунте. `,-1),e(m(_),{loading:A.value,disabled:!N.value.id,ghost:``,onClick:s[31]||=e=>Me()},{default:p(()=>[...s[66]||=[f(` Скачать архив (.zip) `,-1)]]),_:1},8,[`loading`,`disabled`]),s[82]||=t(`hr`,{class:`settings-hr`},null,-1),s[83]||=t(`p`,null,`Создать тестовую игру`,-1),e(m(_),{onClick:s[32]||=e=>Ae(N.value.name||``,N.value.id),ghost:``},{default:p(()=>[...s[67]||=[f(` Создать игру `,-1)]]),_:1}),s[84]||=t(`hr`,{class:`settings-hr`},null,-1),s[85]||=t(`p`,null,`Публикация`,-1),t(`p`,null,[N.value.status==`public`?(i(),h(m(oe),{key:0,bordered:!1,type:`success`,class:`status-block`},{default:p(()=>[...s[68]||=[f(` Опубликовано `,-1)]]),_:1})):o(``,!0),N.value.status==`draft`?(i(),h(m(oe),{key:1,bordered:!1,type:`warning`,class:`status-block`},{default:p(()=>[...s[69]||=[f(` В разработке `,-1)]]),_:1})):o(``,!0)]),t(`p`,null,[s[70]||=f(` Введите название сценария `,-1),e(m(C),{class:`name-text`,strong:``},{default:p(()=>[f(d(N.value.name),1)]),_:1})]),e(m(b),{value:O.value,"onUpdate:value":s[33]||=e=>O.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),N.value.status==`public`?o(``,!0):(i(),h(m(_),{key:0,onClick:s[34]||=e=>ke(N.value.id),ghost:``,disabled:O.value!=N.value.name},{default:p(()=>[...s[71]||=[f(` Опубликовать сценарий `,-1)]]),_:1},8,[`disabled`])),N.value.status==`draft`?o(``,!0):(i(),h(m(_),{key:1,onClick:s[35]||=e=>je(N.value.id),ghost:``,disabled:O.value!=N.value.name},{default:p(()=>[...s[72]||=[f(` Снять сценарий с публикации `,-1)]]),_:1},8,[`disabled`])),s[86]||=t(`hr`,{class:`settings-hr`},null,-1),t(`p`,null,[s[73]||=f(` Введите название сценария `,-1),e(m(C),{class:`name-text`,strong:``},{default:p(()=>[f(d(N.value.name),1)]),_:1}),s[74]||=f(` чтобы удалить его `,-1)]),e(m(b),{value:k.value,"onUpdate:value":s[36]||=e=>k.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),e(m(_),{onClick:s[37]||=e=>Oe(N.value.id),type:`error`,ghost:``,disabled:k.value!=N.value.name},{default:p(()=>[...s[75]||=[f(` Удалить сценарий `,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`show`]),e(de,{active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-aa72ed08`]]),I=u({__name:`ScenariosEditorView`,setup(e){return(e,t)=>(i(),h(F))}});export{I as default}; \ No newline at end of file +import{A as e,C as t,E as n,J as r,K as i,S as a,T as o,Y as s,_ as c,ct as l,j as u,jt as d,k as f,nt as p,pt as m,t as ee,u as te,w as h}from"./auth-CzuN8bsR.js";import{t as g}from"./Card-jY6IqKWx.js";import{t as ne}from"./Modal-COuHyUKC.js";import{t as _}from"./Button-_KVJEFbE.js";import{n as re,t as v}from"./Upload-i91liVQs.js";import{i as y,n as ie,t as ae}from"./PlaceBlock-Bh8s3Jpl.js";import{t as b}from"./Input-jiXpa-nM.js";import{t as oe}from"./Tag-DfP_x904.js";import{t as se}from"./Alert-DZMHsQvh.js";import{t as ce}from"./use-message-R8JEzJ8f.js";import{t as x}from"./Space-BumyB3cS.js";import{t as S}from"./Flex-ISd7TnC9.js";import{t as C}from"./text-BQr3Ce8B.js";import{t as w}from"./index-4mSiwzFS.js";import{n as le,r as ue,t as T}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as de}from"./HeaderMenu-Qspj3Vlt.js";import{t as fe}from"./Settings-DZEhm-J2.js";import{t as pe}from"./binary_client-zERk4LUr.js";import{r as me}from"./application-CQhaY0yx.js";var E={key:1,class:`place-block`},D={class:`message-header`},O={class:`message-content`},k={key:0},A={class:`correct-answer`},j={key:1,class:`intro-empty`},M={key:3,class:`place-block`},N={class:`slot-block`},P=T(u({__name:`QuestionBlock`,props:{newQuestionCode:{type:String},newQuestionText:{type:String},newQuestionAnswer:{type:String},question:{type:Object},mode:{type:String,required:!0}},emits:[`update:newQuestionCode`,`update:newQuestionText`,`update:newQuestionAnswer`,`update:mode`],setup(r,{emit:a}){let l=r,u=a,ee=e=>{u(`update:newQuestionCode`,e)},te=e=>{u(`update:newQuestionText`,e)},h=e=>{u(`update:newQuestionAnswer`,e)},g=e=>{u(`update:mode`,e)};return(a,u)=>(i(),n(c,null,[r.mode==`mini-add`?(i(),n(`div`,{key:0,class:`place-block-hover show-editor-block`,onClick:u[0]||=e=>g(`add`)},[...u[5]||=[t(`p`,{class:`place-image-plus`},`+`,-1)]])):o(``,!0),r.mode==`add`?(i(),n(`div`,E,[e(m(x),{vertical:``},{default:p(()=>[e(m(y),null,{default:p(()=>[e(m(b),{style:{width:`25%`},value:r.newQuestionCode,"onUpdate:value":ee,type:`text`,placeholder:`В-1`},null,8,[`value`]),e(m(b),{style:{width:`75%`},value:r.newQuestionText,"onUpdate:value":te,type:`text`,placeholder:`Кто украл пастуха?`},null,8,[`value`])]),_:1}),e(m(b),{value:r.newQuestionAnswer,"onUpdate:value":h,type:`textarea`,autosize:{minRows:2},placeholder:`Правильный ответ (виден только автору и организаторам)`},null,8,[`value`]),s(a.$slots,`default`,{},void 0,!0)]),_:3})])):o(``,!0),r.mode==`show-editor`?(i(),n(`div`,{key:2,class:`place-block-hover show-editor-block`,onClick:u[1]||=e=>g(`edit`)},[t(`div`,D,d(l.question?.code)+`: `+d(l.question?.text),1),u[8]||=t(`hr`,{class:`hr`},null,-1),t(`div`,O,[l.question?.answer?(i(),n(`span`,k,[u[6]||=f(` Ответ:`,-1),u[7]||=t(`br`,null,null,-1),t(`span`,A,d(l.question.answer),1)])):(i(),n(`span`,j,`Ответ не задан`))])])):o(``,!0),r.mode==`edit`?(i(),n(`div`,M,[e(m(x),{vertical:``},{default:p(()=>[e(m(y),null,{default:p(()=>[e(m(b),{style:{width:`25%`},value:l.question.code,"onUpdate:value":u[2]||=e=>l.question.code=e,type:`text`,placeholder:`В-1`},null,8,[`value`]),e(m(b),{style:{width:`75%`},value:l.question.text,"onUpdate:value":u[3]||=e=>l.question.text=e,type:`text`,placeholder:`Кто украл пастуха?`},null,8,[`value`])]),_:1}),u[10]||=t(`p`,{class:`settings-header`},`Правильный ответ`,-1),e(m(b),{value:l.question.answer,"onUpdate:value":u[4]||=e=>l.question.answer=e,type:`textarea`,autosize:{minRows:2},placeholder:`Правильный ответ (виден только автору и организаторам)`},null,8,[`value`]),e(m(C),{class:`hint`,depth:`3`},{default:p(()=>[...u[9]||=[f(` Смена кода вопроса не переносит ответы команд, отправленные под старым кодом. `,-1)]]),_:1}),t(`div`,N,[s(a.$slots,`default`,{},void 0,!0)])]),_:3})])):o(``,!0)],64))}}),[[`__scopeId`,`data-v-7bd7e4c0`]]),he={class:`width700`},ge={class:`places-container`},_e={class:`settings-block`},ve=[`src`],ye=[`src`],be=[`aria-label`],F=T(u({__name:`ScenariosEditorPage`,setup(s){let u=ee(),y=ue(),T=pe(),E=te().params.id,D=l(!1),O=l(``),k=l(``),A=l(!1),j=ce(),M=l([]),N=l({id:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0}),F=l([]),I=l(!1),L=l({text:``,audio:``}),R=l(`show-editor`),z=l({text:``,video:``}),B=l([]),V=l(!1),xe=a(()=>me(z.value.video));function H(){z.value={text:``,video:``,...N.value.story?.conclusion},B.value=[]}function Se(){z.value.video=``,B.value=[]}async function Ce(e=!1){V.value=!0;try{let t=qe(z.value.video);if(!e&&B.value.length){let e=B.value[0].file;if(!e)return;let n=await G(e,`scenarios_`+N.value.id+`_conclusion_`+e.name);if(!n.filename)return;if(n.fileType!==`video`){j.error(`Закрывашка должна содержать видео MP4 или WebM`);return}t=n.filename}let n=e?{text:``,video:``}:{text:z.value.text,video:t},r=await y.UpdateScenarioConclusion({id:N.value.id,conclusion:n});if(r.error){j.error(r.error);return}N.value.story.conclusion=n,H(),j.success(e?`Закрывашка удалена`:`Закрывашка сохранена`)}catch{j.error(`Не удалось сохранить закрывашку`)}finally{V.value=!1}}let we=a(()=>N.value.story?.places||[]),Te=l(null),U=new Map;function Ee(e){let t=e?we.value.find(t=>(t.oldCode??t.code)===e):void 0,n=t&&U.get(t),r=Te.value;if(!n||!r){j.error(e?`Точка «${e}» не найдена`:`У действия не указан код точки`);return}n.focus({preventScroll:!0}),r.scrollTo({top:r.scrollTop+n.getBoundingClientRect().top-r.getBoundingClientRect().top-10,behavior:`smooth`})}let De=a(()=>N.value.story?.questions||[]);async function W(e){let t=await y.GetFullScenario({id:e});if(t.error!=``){j.error(t.error);return}N.value=t.scenario,H(),N.value.story?.places?.forEach(e=>{let t=e;t.oldCode=t.code,t.mode=`show-editor`}),N.value.story?.questions?.forEach(e=>{let t=e;t.oldCode=t.code,t.mode=`show-editor`}),L.value=N.value.story?.introduction||{text:``,audio:``},R.value=`show-editor`}W(Number(E));async function Oe(e){let t=await y.DeleteScenario({id:e});if(t.error!=``){j.error(t.error);return}w.push(`/scenarios`)}async function ke(e){let t=await y.PublicScenario({id:e});if(t.error!=``){j.error(t.error);return}await W(Number(E)),O.value=``,D.value=!1}async function Ae(e,t){let n=new Date().toISOString(),r=await y.AddGame({name:(`Тестовая игра: `+e).trim(),description:`Тестовая игра`,format:`online`,startAt:n,scenarioId:t});if(r.error!=``){j.error(r.error);return}let i=await y.AddTeam({name:`Тестовая команда`,captainEmail:``,gameId:r.id});if(i.error!=``){j.error(i.error);return}w.push(`/team-story/`+i.id+`?password=`+i.password)}async function je(e){let t=await y.DraftScenario({id:e});if(t.error!=``){j.error(t.error);return}await W(Number(E)),O.value=``,D.value=!1}async function Me(){A.value=!0;try{let{blob:e,filename:t}=await T.downloadScenarioArchive(N.value.id),n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e3),j.success(`Архив сценария скачан`)}catch(e){j.error(e instanceof Error?e.message:`Не удалось скачать архив`)}finally{A.value=!1}}async function G(e,t){if(!e)return{filename:``,fileType:``};let n=await e.arrayBuffer(),r=new Uint8Array(n),i=await y.UploadFile({filename:t,data:Pe(r)});return i.error==``?{filename:i.filename||``,fileType:i.file_type||``}:(j.error(i.error),{filename:``,fileType:``})}async function Ne(){let e=``;if(M.value&&M.value.length>0){let t=M.value[0].file||null;if(t==null)return;let n=await G(t,`scenarios_`+N.value.id+`_`+t.name);if(n.filename===``)return;e=n.filename}let t=await y.UpdateScenario({id:N.value.id,name:N.value.name,description:N.value.description,image:e});if(t.error!=``){j.error(t.error);return}await W(Number(E)),D.value=!1}function Pe(e){let t=Fe(e);return btoa(t)}function Fe(e){let t=``;for(let n=0;ne.code==n.code)==null){let t=await y.AddScenarioPlace({id:e.id,place:{code:n.code,name:n.name,text:void 0,image:void 0,hidden:!0,applications:void 0,doors:void 0,keys:void 0}});if(t.error!=``){j.error(t.error);return}}}async function ze(e){await W(Number(E)),e.mode=`show-editor`}async function Be(e){if(e.fileList&&e.fileList.length>0){let t=e.fileList[0].file||null;if(t==null)return;let n=await G(t,`scenarios_`+N.value.id+`_place_`+e.code+`_`+t.name);if(n.filename===``)return;e.image=n.filename}let t=e.applications||[];for(let n of t){if(!n.fileList||n.fileList.length==0)continue;let t=n.fileList[0].file||null;if(t==null)continue;let r=await G(t,`scenarios_`+N.value.id+`_place_`+e.code+`_app_`+t.name);if(r.filename===``)return;n.image=r.filename,n.file_type=r.fileType}await Re(N.value,e);let n=await y.UpdateScenarioPlace({id:N.value.id,code:e.oldCode,place:e});if(n.error!=``){j.error(n.error);return}await W(Number(E)),e.mode=`show-editor`}async function Ve(e){let t=await y.DeleteScenarioPlace({id:N.value.id,code:e.oldCode});if(t.error!=``){j.error(t.error);return}await W(Number(E))}let X=l(``),Z=l(``),Q=l(``),$=l(`mini-add`);async function He(){let e=await y.AddScenarioQuestion({id:N.value.id,question:{code:X.value,text:Z.value,answer:Q.value}});if(e.error!=``){j.error(e.error);return}await W(Number(E)),X.value=``,Z.value=``,Q.value=``,$.value=`add`}async function Ue(){X.value=``,Z.value=``,Q.value=``,$.value=`mini-add`}async function We(e){let t=await y.UpdateScenarioQuestion({id:N.value.id,code:e.oldCode,question:{code:e.code,text:e.text,answer:e.answer}});if(t.error!=``){j.error(t.error);return}await W(Number(E)),e.mode=`show-editor`}async function Ge(e){await W(Number(E)),e.mode=`show-editor`}async function Ke(e){let t=await y.DeleteScenarioQuestion({id:N.value.id,code:e.oldCode});if(t.error!=``){j.error(t.error);return}await W(Number(E))}function qe(e){return e&&e.split(`/`).pop()||``}async function Je(){let e=``;if(L.value.fileList&&L.value.fileList.length>0){let t=L.value.fileList[0].file||null;if(t==null||(e=(await G(t,`scenarios_`+N.value.id+`_intro_`+t.name)).filename,e===``))return}else e=qe(L.value.audio);let t=await y.UpdateScenarioIntro({id:N.value.id,introduction:{text:L.value.text,audio:e}});if(t.error!=``){j.error(t.error);return}await W(Number(E))}async function Ye(e=!1){I.value=!0;try{let t=``;if(!e){let e=F.value[0]?.file;if(!e)return;let n=await G(e,`scenarios_`+N.value.id+`_background_`+e.name);if(!n.filename)return;if(n.fileType!==`image`){j.error(`Фон дела должен быть изображением`);return}t=n.filename}let n=await y.UpdateScenarioBackground({id:N.value.id,background:t});if(n.error){j.error(n.error);return}await W(Number(E)),F.value=[]}catch{j.error(`Не удалось сохранить фон дела`)}finally{I.value=!1}}async function Xe(){await W(Number(E))}function Ze(){let e=[{text:`Настя, ты просто ослепительна сегодня!`,nameForm:`Настя`},{text:`У Насти невероятный вкус!`,nameForm:`Насти`},{text:`Настенька, твоя улыбка делает мир ярче.`,nameForm:`Настенька`},{text:`С Настей всегда интересно общаться.`,nameForm:`Настей`},{text:`Настя, ты — источник вдохновения для всех вокруг.`,nameForm:`Настя`},{text:`Мне нравится, как Настя смотрит на мир.`,nameForm:`Настя`},{text:`Настюха, ты супер!`,nameForm:`Настюха`},{text:`Талант Насти поражает!`,nameForm:`Насти`},{text:`Настя, твоя энергия заряжает батарейки!`,nameForm:`Настя`},{text:`С Настей хочется проводить каждую минуту.`,nameForm:`Настей`},{text:`Настенька, ты — самое красивое, что случилось в этом мире.`,nameForm:`Настенька`},{text:`У Насти золотое сердце.`,nameForm:`Насти`}];return e[Math.floor(Math.random()*e.length)].text}return(a,s)=>(i(),n(c,null,[t(`div`,{ref_key:`scrollContainer`,ref:Te,class:`center-block-custom`},[t(`div`,he,[t(`div`,ge,[N.value.status==`public`?(i(),h(m(se),{key:0,title:`Сценарий опубликован`,type:`warning`,style:{"margin-bottom":`20px`}},{default:p(()=>[...s[39]||=[f(` Не рекомендуется редактировать сценарий когда он опубликован. `,-1)]]),_:1})):o(``,!0),m(u).user?.id==2?(i(),h(m(se),{key:1,title:Ze(),type:`info`,style:{"margin-bottom":`20px`}},null,8,[`title`])):o(``,!0),t(`div`,_e,[f(` Точек: `+d(N.value.story?.places?.length)+`, Вопросов: `+d(N.value.story?.questions?.length)+` `,1),e(m(_),{quaternary:``,onClick:s[0]||=e=>D.value=!0,class:`settings-button`},{default:p(()=>[e(m(le),{class:`settings-icon`},{default:p(()=>[e(m(fe))]),_:1}),s[40]||=f(` Настройки `,-1)]),_:1})]),e(m(g),{title:`Фон дела`},{default:p(()=>[e(m(x),{vertical:``},{default:p(()=>[N.value.story?.background?(i(),n(`img`,{key:0,src:N.value.story.background,alt:`Фон дела`,class:`background-preview`},null,8,ve)):o(``,!0),e(m(v),{"file-list":F.value,"onUpdate:fileList":s[1]||=e=>F.value=e,accept:`.jpg,.jpeg,.png,.gif,.webp`,max:1,"default-upload":!1,disabled:I.value},{default:p(()=>[e(m(_),{disabled:I.value},{default:p(()=>[...s[41]||=[f(`Выбрать фон`,-1)]]),_:1},8,[`disabled`])]),_:1},8,[`file-list`,`disabled`]),e(m(S),null,{default:p(()=>[e(m(_),{loading:I.value,disabled:!F.value.length||I.value,onClick:s[2]||=e=>Ye()},{default:p(()=>[...s[42]||=[f(`Сохранить фон`,-1)]]),_:1},8,[`loading`,`disabled`]),N.value.story?.background?(i(),h(m(_),{key:0,disabled:I.value,onClick:s[3]||=e=>Ye(!0)},{default:p(()=>[...s[43]||=[f(`Удалить фон`,-1)]]),_:1},8,[`disabled`])):o(``,!0)]),_:1})]),_:1})]),_:1}),e(ie,{introduction:L.value,mode:R.value,"onUpdate:mode":s[6]||=e=>R.value=e},{default:p(()=>[e(m(S),{justify:`end`},{default:p(()=>[e(m(_),{onClick:s[4]||=e=>Xe()},{default:p(()=>[...s[44]||=[f(`Отмена`,-1)]]),_:1}),e(m(_),{onClick:s[5]||=e=>Je()},{default:p(()=>[...s[45]||=[f(`Сохранить вступление`,-1)]]),_:1})]),_:1})]),_:1},8,[`introduction`,`mode`]),e(m(g),{title:`Закрывашка сценария`},{default:p(()=>[e(m(x),{vertical:``},{default:p(()=>[e(m(C),{depth:`3`},{default:p(()=>[...s[46]||=[f(`Разгадка дела для автора. Игрокам не показывается.`,-1)]]),_:1}),e(m(b),{value:z.value.text,"onUpdate:value":s[7]||=e=>z.value.text=e,type:`textarea`,autosize:{minRows:4,maxRows:12},placeholder:`Текст закрывашки`,"aria-label":`Текст закрывашки`,disabled:V.value},null,8,[`value`,`disabled`]),xe.value?(i(),n(`video`,{key:0,src:xe.value,controls:``,preload:`none`,class:`conclusion-video`,"aria-label":`Видео закрывашки`},null,8,ye)):o(``,!0),z.value.video?(i(),h(m(_),{key:1,disabled:V.value,onClick:s[8]||=e=>Se()},{default:p(()=>[...s[47]||=[f(`Убрать видео`,-1)]]),_:1},8,[`disabled`])):o(``,!0),e(m(v),{"file-list":B.value,"onUpdate:fileList":s[9]||=e=>B.value=e,accept:`.mp4,.webm`,max:1,"default-upload":!1,disabled:V.value},{default:p(()=>[e(m(_),{disabled:V.value},{default:p(()=>[...s[48]||=[f(`Выбрать видео MP4/WebM`,-1)]]),_:1},8,[`disabled`])]),_:1},8,[`file-list`,`disabled`]),e(m(S),{justify:`end`},{default:p(()=>[N.value.story?.conclusion?.text||N.value.story?.conclusion?.video?(i(),h(m(_),{key:0,disabled:V.value,onClick:s[10]||=e=>Ce(!0)},{default:p(()=>[...s[49]||=[f(`Удалить закрывашку`,-1)]]),_:1},8,[`disabled`])):o(``,!0),e(m(_),{disabled:V.value,onClick:s[11]||=e=>H()},{default:p(()=>[...s[50]||=[f(`Отмена`,-1)]]),_:1},8,[`disabled`]),e(m(_),{loading:V.value,disabled:V.value||!N.value.story,onClick:s[12]||=e=>Ce()},{default:p(()=>[...s[51]||=[f(`Сохранить закрывашку`,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),_:1})]),_:1}),s[62]||=t(`div`,{class:`questions-header`},`Вопросы дела`,-1),e(P,{mode:$.value,"onUpdate:mode":s[15]||=e=>$.value=e,newQuestionCode:X.value,"onUpdate:newQuestionCode":s[16]||=e=>X.value=e,newQuestionText:Z.value,"onUpdate:newQuestionText":s[17]||=e=>Z.value=e,newQuestionAnswer:Q.value,"onUpdate:newQuestionAnswer":s[18]||=e=>Q.value=e},{default:p(()=>[e(m(S),{justify:`end`},{default:p(()=>[e(m(_),{onClick:s[13]||=e=>Ue()},{default:p(()=>[...s[52]||=[f(`Отмена`,-1)]]),_:1}),e(m(_),{onClick:s[14]||=e=>He(),disabled:!X.value},{default:p(()=>[...s[53]||=[f(`Добавить вопрос`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newQuestionCode`,`newQuestionText`,`newQuestionAnswer`]),(i(!0),n(c,null,r(De.value,t=>(i(),h(P,{question:t,mode:t.mode,"onUpdate:mode":e=>t.mode=e,key:t.oldCode??t.code??``},{default:p(()=>[e(m(S),{justify:`end`},{default:p(()=>[e(m(_),{onClick:e=>Ke(t),type:`error`,ghost:``},{default:p(()=>[...s[54]||=[f(`Удалить`,-1)]]),_:1},8,[`onClick`]),e(m(_),{onClick:e=>Ge(t)},{default:p(()=>[...s[55]||=[f(`Отмена`,-1)]]),_:1},8,[`onClick`]),e(m(_),{onClick:e=>We(t),disabled:t.code==``},{default:p(()=>[...s[56]||=[f(`Сохранить`,-1)]]),_:1},8,[`onClick`,`disabled`])]),_:2},1024)]),_:2},1032,[`question`,`mode`,`onUpdate:mode`]))),128)),e(ae,{mode:Y.value,"onUpdate:mode":s[21]||=e=>Y.value=e,newPlaceCode:K.value,"onUpdate:newPlaceCode":s[22]||=e=>K.value=e,newPlaceName:q.value,"onUpdate:newPlaceName":s[23]||=e=>q.value=e,newPlaceText:J.value,"onUpdate:newPlaceText":s[24]||=e=>J.value=e},{default:p(()=>[e(m(S),{justify:`end`},{default:p(()=>[e(m(_),{onClick:s[19]||=e=>Le()},{default:p(()=>[...s[57]||=[f(`Отмена`,-1)]]),_:1}),e(m(_),{onClick:s[20]||=e=>Ie(),disabled:!K.value},{default:p(()=>[...s[58]||=[f(`Добавить точку`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newPlaceCode`,`newPlaceName`,`newPlaceText`]),(i(!0),n(c,null,r(we.value,t=>(i(),n(`div`,{key:t.oldCode??t.code??``,ref_for:!0,ref:e=>e?m(U).set(t,e):m(U).delete(t),class:`place-card`,tabindex:`-1`,role:`group`,"aria-label":`${t.code}: ${t.name}`},[e(ae,{place:t,mode:t.mode,"onUpdate:mode":e=>t.mode=e,onNavigate:Ee},{default:p(()=>[e(m(S),{justify:`end`},{default:p(()=>[e(m(_),{onClick:e=>Ve(t),type:`error`,ghost:``},{default:p(()=>[...s[59]||=[f(`Удалить`,-1)]]),_:1},8,[`onClick`]),e(m(_),{onClick:e=>ze(t)},{default:p(()=>[...s[60]||=[f(`Отмена`,-1)]]),_:1},8,[`onClick`]),e(m(_),{onClick:e=>Be(t),disabled:t.code==``},{default:p(()=>[...s[61]||=[f(`Сохранить`,-1)]]),_:1},8,[`onClick`,`disabled`])]),_:2},1024)]),_:2},1032,[`place`,`mode`,`onUpdate:mode`])],8,be))),128))])])],512),e(m(ne),{show:D.value,"onUpdate:show":s[38]||=e=>D.value=e},{default:p(()=>[e(m(g),{style:{width:`600px`},title:`Настройки сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":p(()=>[e(m(_),{onClick:s[25]||=e=>D.value=!1},{default:p(()=>[...s[63]||=[f(` x `,-1)]]),_:1})]),footer:p(()=>[...s[87]||=[]]),default:p(()=>[e(m(x),{vertical:``},{default:p(()=>[s[76]||=t(`p`,null,`Название`,-1),e(m(b),{value:N.value.name,"onUpdate:value":s[26]||=e=>N.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),s[77]||=t(`p`,{class:`settings-header`},`Описание`,-1),e(m(b),{value:N.value.description,"onUpdate:value":s[27]||=e=>N.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),s[78]||=t(`p`,{class:`settings-header`},`Картинка`,-1),e(m(b),{value:N.value.image,"onUpdate:value":s[28]||=e=>N.value.image=e,type:`text`,placeholder:`default_scenario.png`,disabled:``},null,8,[`value`]),e(m(v),{"directory-dnd":``,max:1,"file-list":M.value,"onUpdate:fileList":s[29]||=e=>M.value=e},{default:p(()=>[e(m(re),null,{default:p(()=>[e(m(C),{style:{"font-size":`16px`}},{default:p(()=>[...s[64]||=[f(` Щелкните или перетащите файл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`]),e(m(_),{onClick:s[30]||=e=>Ne(),ghost:``},{default:p(()=>[...s[65]||=[f(` Сохранить изменения `,-1)]]),_:1}),s[79]||=t(`hr`,{class:`settings-hr`},null,-1),s[80]||=t(`p`,{class:`settings-header`},`Архив сценария`,-1),s[81]||=t(`p`,{class:`settings-hint`},` Скачайте сценарий ZIP-архивом (scenario.json + изображения) и импортируйте его в другом аккаунте. `,-1),e(m(_),{loading:A.value,disabled:!N.value.id,ghost:``,onClick:s[31]||=e=>Me()},{default:p(()=>[...s[66]||=[f(` Скачать архив (.zip) `,-1)]]),_:1},8,[`loading`,`disabled`]),s[82]||=t(`hr`,{class:`settings-hr`},null,-1),s[83]||=t(`p`,null,`Создать тестовую игру`,-1),e(m(_),{onClick:s[32]||=e=>Ae(N.value.name||``,N.value.id),ghost:``},{default:p(()=>[...s[67]||=[f(` Создать игру `,-1)]]),_:1}),s[84]||=t(`hr`,{class:`settings-hr`},null,-1),s[85]||=t(`p`,null,`Публикация`,-1),t(`p`,null,[N.value.status==`public`?(i(),h(m(oe),{key:0,bordered:!1,type:`success`,class:`status-block`},{default:p(()=>[...s[68]||=[f(` Опубликовано `,-1)]]),_:1})):o(``,!0),N.value.status==`draft`?(i(),h(m(oe),{key:1,bordered:!1,type:`warning`,class:`status-block`},{default:p(()=>[...s[69]||=[f(` В разработке `,-1)]]),_:1})):o(``,!0)]),t(`p`,null,[s[70]||=f(` Введите название сценария `,-1),e(m(C),{class:`name-text`,strong:``},{default:p(()=>[f(d(N.value.name),1)]),_:1})]),e(m(b),{value:O.value,"onUpdate:value":s[33]||=e=>O.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),N.value.status==`public`?o(``,!0):(i(),h(m(_),{key:0,onClick:s[34]||=e=>ke(N.value.id),ghost:``,disabled:O.value!=N.value.name},{default:p(()=>[...s[71]||=[f(` Опубликовать сценарий `,-1)]]),_:1},8,[`disabled`])),N.value.status==`draft`?o(``,!0):(i(),h(m(_),{key:1,onClick:s[35]||=e=>je(N.value.id),ghost:``,disabled:O.value!=N.value.name},{default:p(()=>[...s[72]||=[f(` Снять сценарий с публикации `,-1)]]),_:1},8,[`disabled`])),s[86]||=t(`hr`,{class:`settings-hr`},null,-1),t(`p`,null,[s[73]||=f(` Введите название сценария `,-1),e(m(C),{class:`name-text`,strong:``},{default:p(()=>[f(d(N.value.name),1)]),_:1}),s[74]||=f(` чтобы удалить его `,-1)]),e(m(b),{value:k.value,"onUpdate:value":s[36]||=e=>k.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),e(m(_),{onClick:s[37]||=e=>Oe(N.value.id),type:`error`,ghost:``,disabled:k.value!=N.value.name},{default:p(()=>[...s[75]||=[f(` Удалить сценарий `,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`show`]),e(de,{active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-aa72ed08`]]),I=u({__name:`ScenariosEditorView`,setup(e){return(e,t)=>(i(),h(F))}});export{I as default}; \ No newline at end of file diff --git a/dist/assets/ScenariosView-ChSXLwGe.js b/dist/assets/ScenariosView-BDlkEnAX.js similarity index 89% rename from dist/assets/ScenariosView-ChSXLwGe.js rename to dist/assets/ScenariosView-BDlkEnAX.js index cce1d02..3720a6c 100644 --- a/dist/assets/ScenariosView-ChSXLwGe.js +++ b/dist/assets/ScenariosView-BDlkEnAX.js @@ -1 +1 @@ -import{A as e,At as t,C as n,E as r,J as i,K as a,T as o,_ as s,ct as c,d as l,j as u,jt as d,k as f,nt as p,pt as m,w as h}from"./auth-DetOXv90.js";import{t as g}from"./Card-BFXpokQN.js";import{t as _}from"./Modal-Cc3YqyVW.js";import{t as v}from"./Button-SFBLnAwv.js";import{n as y,t as b}from"./Upload-MQncuSBB.js";import{t as x}from"./Input-CM5axX8S.js";import{t as S}from"./Tag-BqKZJJ-a.js";import{t as C}from"./use-message-bV_QZwc3.js";import{t as w}from"./Flex-SLIxZFiS.js";import{t as T}from"./text-DNaqMd7_.js";import{n as E,r as D,t as O}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as k}from"./HeaderMenu-BV7MwsiN.js";import{t as A}from"./binary_client-C_fP8dcD.js";var j={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},M=u({name:`Archive`,render:function(e,t){return a(),r(`svg`,j,t[0]||=[n(`path`,{d:`M14 19h4v2h-4z`,fill:`currentColor`},null,-1),n(`path`,{d:`M6 2v26a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2zm18 26H8V16h16zm0-14H8v-4h16zM8 8V4h16v4z`,fill:`currentColor`},null,-1)])}}),N={class:`center-block-custom`},P={class:`width1200 display-table catalog-grid`},F={class:`scenario-image-block scenario-image-plus import-icon`},I=[`onClick`],L={class:`scenario-content-block`},R={class:`scenario-title`},z={class:`scenario-label`},B=O(u({__name:`ScenariosPage`,setup(u){let O=D(),j=A(),B=c([]),V=l(),H=C(),U=c(!1),W=c(``),G=c(!1),K=c([]),q=c(!1);async function J(){B.value=[];let e=await O.GetMyScenarios({});B.value=e.scenarios}async function Y(e){let t=await O.AddScenario({name:e});if(t.error!=``){H.error(t.error);return}await X(t.id)}async function X(e){V.push(`/scenarios/`+e+`/editor`)}function Z(){K.value=[],G.value=!1}async function Q(){let e=K.value[0]?.file;if(e){q.value=!0;try{let t=await j.uploadScenarioArchive(e);if(t.error){H.error(t.error);return}H.success(`Сценарий импортирован из архива`),Z(),await X(t.id)}catch(e){H.error(e instanceof Error?e.message:`Не удалось импортировать архив`)}finally{q.value=!1}}}return J(),(c,l)=>(a(),r(s,null,[n(`div`,N,[n(`div`,P,[n(`div`,{class:`scenario-block`,onClick:l[0]||=e=>U.value=!0},[...l[11]||=[n(`div`,{class:`scenario-image-block scenario-image-plus`},`+`,-1),n(`div`,{class:`scenario-content-block`},[n(`p`,{class:`scenario-title`},`Создать новый сценарий`)],-1)]]),n(`div`,{class:`scenario-block`,onClick:l[1]||=e=>G.value=!0},[n(`div`,F,[e(m(E),null,{default:p(()=>[e(m(M))]),_:1})]),l[12]||=n(`div`,{class:`scenario-content-block`},[n(`p`,{class:`scenario-title`},`Импортировать из архива`)],-1)]),(a(!0),r(s,null,i(B.value,e=>(a(),r(`div`,{class:`scenario-block`,onClick:t=>X(e.id),key:e.id},[n(`div`,{class:`scenario-image-block scenario-image`,style:t({backgroundImage:`url(${e.image})`})},null,4),n(`div`,L,[n(`p`,R,d(e.name),1),n(`p`,z,[e.status==`public`?(a(),h(m(S),{key:0,bordered:!1,type:`success`,class:`status-block`},{default:p(()=>[...l[13]||=[f(`Опубликовано`,-1)]]),_:1})):o(``,!0),e.status==`draft`?(a(),h(m(S),{key:1,bordered:!1,type:`warning`,class:`status-block`},{default:p(()=>[...l[14]||=[f(`В разработке`,-1)]]),_:1})):o(``,!0)])])],8,I))),128))])]),e(m(_),{show:U.value,"onUpdate:show":l[5]||=e=>U.value=e},{default:p(()=>[e(m(g),{style:{width:`600px`},title:`Создание сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":p(()=>[e(m(v),{onClick:l[2]||=e=>U.value=!1},{default:p(()=>[...l[15]||=[f(` x `,-1)]]),_:1})]),footer:p(()=>[e(m(w),{justify:`end`},{default:p(()=>[e(m(v),{onClick:l[4]||=e=>Y(W.value),disabled:W.value.length==0},{default:p(()=>[...l[16]||=[f(` Создать `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:p(()=>[e(m(x),{value:W.value,"onUpdate:value":l[3]||=e=>W.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1},8,[`show`]),e(m(_),{show:G.value,"onUpdate:show":l[10]||=e=>G.value=e},{default:p(()=>[e(m(g),{style:{width:`600px`},title:`Импорт сценария из архива`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":p(()=>[e(m(v),{onClick:l[6]||=e=>Z()},{default:p(()=>[...l[17]||=[f(` x `,-1)]]),_:1})]),footer:p(()=>[e(m(w),{justify:`end`},{default:p(()=>[e(m(v),{onClick:l[8]||=e=>Z()},{default:p(()=>[...l[19]||=[f(`Отмена`,-1)]]),_:1}),e(m(v),{type:`primary`,loading:q.value,disabled:K.value.length==0,onClick:l[9]||=e=>Q()},{default:p(()=>[...l[20]||=[f(` Импортировать `,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),default:p(()=>[l[21]||=n(`p`,{class:`import-hint`},` Выберите ZIP-архив сценария (файл scenario.json + папка images). Архив можно получить через «Скачать архив» в настройках сценария. `,-1),e(m(b),{max:1,"file-list":K.value,"onUpdate:fileList":l[7]||=e=>K.value=e,accept:`.zip,application/zip,application/x-zip-compressed,application/octet-stream`},{default:p(()=>[e(m(y),null,{default:p(()=>[e(m(T),{style:{"font-size":`16px`}},{default:p(()=>[...l[18]||=[f(` Щелкните или перетащите ZIP-архив в эту область `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),_:1})]),_:1},8,[`show`]),e(k,{active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-0398a638`]]),V=u({__name:`ScenariosView`,setup(e){return(e,t)=>(a(),h(B))}});export{V as default}; \ No newline at end of file +import{A as e,At as t,C as n,E as r,J as i,K as a,T as o,_ as s,ct as c,d as l,j as u,jt as d,k as f,nt as p,pt as m,w as h}from"./auth-CzuN8bsR.js";import{t as g}from"./Card-jY6IqKWx.js";import{t as _}from"./Modal-COuHyUKC.js";import{t as v}from"./Button-_KVJEFbE.js";import{n as y,t as b}from"./Upload-i91liVQs.js";import{t as x}from"./Input-jiXpa-nM.js";import{t as S}from"./Tag-DfP_x904.js";import{t as C}from"./use-message-R8JEzJ8f.js";import{t as w}from"./Flex-ISd7TnC9.js";import{t as T}from"./text-BQr3Ce8B.js";import{n as E,r as D,t as O}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as k}from"./HeaderMenu-Qspj3Vlt.js";import{t as A}from"./binary_client-zERk4LUr.js";var j={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},M=u({name:`Archive`,render:function(e,t){return a(),r(`svg`,j,t[0]||=[n(`path`,{d:`M14 19h4v2h-4z`,fill:`currentColor`},null,-1),n(`path`,{d:`M6 2v26a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2zm18 26H8V16h16zm0-14H8v-4h16zM8 8V4h16v4z`,fill:`currentColor`},null,-1)])}}),N={class:`center-block-custom`},P={class:`width1200 display-table catalog-grid`},F={class:`scenario-image-block scenario-image-plus import-icon`},I=[`onClick`],L={class:`scenario-content-block`},R={class:`scenario-title`},z={class:`scenario-label`},B=O(u({__name:`ScenariosPage`,setup(u){let O=D(),j=A(),B=c([]),V=l(),H=C(),U=c(!1),W=c(``),G=c(!1),K=c([]),q=c(!1);async function J(){B.value=[];let e=await O.GetMyScenarios({});B.value=e.scenarios}async function Y(e){let t=await O.AddScenario({name:e});if(t.error!=``){H.error(t.error);return}await X(t.id)}async function X(e){V.push(`/scenarios/`+e+`/editor`)}function Z(){K.value=[],G.value=!1}async function Q(){let e=K.value[0]?.file;if(e){q.value=!0;try{let t=await j.uploadScenarioArchive(e);if(t.error){H.error(t.error);return}H.success(`Сценарий импортирован из архива`),Z(),await X(t.id)}catch(e){H.error(e instanceof Error?e.message:`Не удалось импортировать архив`)}finally{q.value=!1}}}return J(),(c,l)=>(a(),r(s,null,[n(`div`,N,[n(`div`,P,[n(`div`,{class:`scenario-block`,onClick:l[0]||=e=>U.value=!0},[...l[11]||=[n(`div`,{class:`scenario-image-block scenario-image-plus`},`+`,-1),n(`div`,{class:`scenario-content-block`},[n(`p`,{class:`scenario-title`},`Создать новый сценарий`)],-1)]]),n(`div`,{class:`scenario-block`,onClick:l[1]||=e=>G.value=!0},[n(`div`,F,[e(m(E),null,{default:p(()=>[e(m(M))]),_:1})]),l[12]||=n(`div`,{class:`scenario-content-block`},[n(`p`,{class:`scenario-title`},`Импортировать из архива`)],-1)]),(a(!0),r(s,null,i(B.value,e=>(a(),r(`div`,{class:`scenario-block`,onClick:t=>X(e.id),key:e.id},[n(`div`,{class:`scenario-image-block scenario-image`,style:t({backgroundImage:`url(${e.image})`})},null,4),n(`div`,L,[n(`p`,R,d(e.name),1),n(`p`,z,[e.status==`public`?(a(),h(m(S),{key:0,bordered:!1,type:`success`,class:`status-block`},{default:p(()=>[...l[13]||=[f(`Опубликовано`,-1)]]),_:1})):o(``,!0),e.status==`draft`?(a(),h(m(S),{key:1,bordered:!1,type:`warning`,class:`status-block`},{default:p(()=>[...l[14]||=[f(`В разработке`,-1)]]),_:1})):o(``,!0)])])],8,I))),128))])]),e(m(_),{show:U.value,"onUpdate:show":l[5]||=e=>U.value=e},{default:p(()=>[e(m(g),{style:{width:`600px`},title:`Создание сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":p(()=>[e(m(v),{onClick:l[2]||=e=>U.value=!1},{default:p(()=>[...l[15]||=[f(` x `,-1)]]),_:1})]),footer:p(()=>[e(m(w),{justify:`end`},{default:p(()=>[e(m(v),{onClick:l[4]||=e=>Y(W.value),disabled:W.value.length==0},{default:p(()=>[...l[16]||=[f(` Создать `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:p(()=>[e(m(x),{value:W.value,"onUpdate:value":l[3]||=e=>W.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1},8,[`show`]),e(m(_),{show:G.value,"onUpdate:show":l[10]||=e=>G.value=e},{default:p(()=>[e(m(g),{style:{width:`600px`},title:`Импорт сценария из архива`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":p(()=>[e(m(v),{onClick:l[6]||=e=>Z()},{default:p(()=>[...l[17]||=[f(` x `,-1)]]),_:1})]),footer:p(()=>[e(m(w),{justify:`end`},{default:p(()=>[e(m(v),{onClick:l[8]||=e=>Z()},{default:p(()=>[...l[19]||=[f(`Отмена`,-1)]]),_:1}),e(m(v),{type:`primary`,loading:q.value,disabled:K.value.length==0,onClick:l[9]||=e=>Q()},{default:p(()=>[...l[20]||=[f(` Импортировать `,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),default:p(()=>[l[21]||=n(`p`,{class:`import-hint`},` Выберите ZIP-архив сценария (файл scenario.json + папка images). Архив можно получить через «Скачать архив» в настройках сценария. `,-1),e(m(b),{max:1,"file-list":K.value,"onUpdate:fileList":l[7]||=e=>K.value=e,accept:`.zip,application/zip,application/x-zip-compressed,application/octet-stream`},{default:p(()=>[e(m(y),null,{default:p(()=>[e(m(T),{style:{"font-size":`16px`}},{default:p(()=>[...l[18]||=[f(` Щелкните или перетащите ZIP-архив в эту область `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),_:1})]),_:1},8,[`show`]),e(k,{active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-0398a638`]]),V=u({__name:`ScenariosView`,setup(e){return(e,t)=>(a(),h(B))}});export{V as default}; \ No newline at end of file diff --git a/dist/assets/ScreenView-Dep3mMTR.js b/dist/assets/ScreenView-CUgZFDLh.js similarity index 94% rename from dist/assets/ScreenView-Dep3mMTR.js rename to dist/assets/ScreenView-CUgZFDLh.js index 7ee96a4..bd8298e 100644 --- a/dist/assets/ScreenView-Dep3mMTR.js +++ b/dist/assets/ScreenView-CUgZFDLh.js @@ -1 +1 @@ -import{A as e,At as t,C as n,E as r,J as i,K as a,R as o,S as s,T as c,U as ee,W as te,_ as l,ct as u,et as ne,j as d,jt as f,k as p,nt as m,pt as h,u as g,w as _}from"./auth-DetOXv90.js";import{t as v}from"./Card-BFXpokQN.js";import{t as y}from"./Button-SFBLnAwv.js";import{t as re}from"./Select-BQvr1qOg.js";import{t as b}from"./use-message-bV_QZwc3.js";import{t as x}from"./QrCode-DwxuAXRz.js";import{r as S,t as C}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as w}from"./HeaderMenu-BV7MwsiN.js";import{r as T}from"./application-CK_JoGAx.js";import{t as ie}from"./datetime-BJNH0M1T.js";var ae={key:0,class:`screen-center`},oe={key:1,class:`screen-page`},se={key:0,class:`screen-center`},ce={key:0,class:`screen-center`},le={key:0,class:`screen-qr`},ue={key:0,class:`media-error`},de={key:1,class:`screen-media`},fe=[`src`,`muted`],pe={key:2,class:`conclusion-screen`},me=[`src`,`muted`],he={key:3,class:`screen-message`},ge={key:4,class:`screen-message`},_e={key:5,class:`screen-message`},ve={key:7,class:`screen-cover`},ye=[`src`],be={key:1,class:`cover-controls`},E=`evening-detective-screen-session`,D=C(d({__name:`ScreenPage`,setup(d){let C=S(),D=b(),O=g(),k=u(``),A=u(``),j=u(),M=u([]),N=u([]),P=u(),F,I=!1,L=u([]),R=u(null),z=u(!1),B=u(``),V=u(!0),H=u(!1),U=u(!1),W=u(),G=u(),K=0,q=null,J=s(()=>!!(O.query.screenId&&O.query.accessToken)),Y=s(()=>{if(!k.value||!A.value)return``;let e=new URL(`/screen`,window.location.origin);return e.searchParams.set(`screenId`,k.value),e.searchParams.set(`accessToken`,A.value),e.toString()}),xe=s(()=>L.value.map(e=>({label:`${ie(e.startAt).split(`,`)[0]||`дата не указана`} — ${e.name||`Игра ${e.id}`}`,value:e.id}))),X=s(()=>j.value?.mode||`SCREEN_MODE_COVER`),Se=s(()=>T(j.value?.introAudio)),Ce=s(()=>T(j.value?.conclusionVideo)),we=s(()=>{let e=j.value?.backgroundImage||j.value?.coverImage;return e?{backgroundImage:`linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url("${e}")`}:{}});function Te(){sessionStorage.setItem(E,JSON.stringify({screenId:k.value,accessToken:A.value}))}function Z(){try{let e=JSON.parse(sessionStorage.getItem(E)||`{}`);k.value=e.screenId||``,A.value=e.accessToken||``}catch{sessionStorage.removeItem(E)}}async function Ee(){let e=await C.CreateScreenSession({});if(e.error||!e.screenId||!e.accessToken)throw Error(e.error||`Не удалось создать сессию экрана`);k.value=e.screenId,A.value=e.accessToken,Te()}async function Q(){if(!(!k.value||!A.value))try{let e=await C.GetScreenState({screenId:k.value,accessToken:A.value});if(e.error)throw Error(e.error);j.value=e.state,j.value?.gameId&&j.value.mode===`SCREEN_MODE_RESULTS`&&await De()}catch(e){D.error(e instanceof Error?e.message:`Не удалось получить состояние экрана`)}}async function De(){if(!k.value||!A.value)return;let e=await C.GetScreenResults({screenId:k.value,accessToken:A.value});if(e.error==``&&(N.value=e.questions||[],M.value=e.teams||[],!I)){I=!0,await o();let e=P.value;e&&(e.scrollTop=e.scrollHeight,F=window.setInterval(()=>{e.scrollTop=Math.max(0,e.scrollTop-32),e.scrollTop===0&&F!=null&&(window.clearInterval(F),F=void 0)},1e3))}}async function Oe(){try{let e=await C.GetGames({});if(e.error)throw Error(e.error);L.value=e.games||[]}catch(e){D.error(e instanceof Error?e.message:`Не удалось загрузить игры`)}}ne(j,async e=>{if(!e||!e.command||e.stateVersion===K)return;K=e.stateVersion||0,await o();let t=X.value===`SCREEN_MODE_CONCLUSION`?G.value:W.value;t&&(t.currentTime=(e.positionMs||0)/1e3,t.volume=Math.max(0,Math.min(1,(e.volume??100)/100)),e.command!==`SCREEN_COMMAND_SEEK`&&e.command!==`SCREEN_COMMAND_VOLUME`&&(e.command===`SCREEN_COMMAND_PLAY`||e.command===`SCREEN_COMMAND_RESUME`||e.command===`SCREEN_COMMAND_REPLAY`?(e.command===`SCREEN_COMMAND_REPLAY`&&(t.currentTime=0),t.play().catch(()=>{B.value=`Браузер заблокировал воспроизведение. Нажмите «Подготовить экран» на этом устройстве.`})):(e.command===`SCREEN_COMMAND_PAUSE`||e.command===`SCREEN_COMMAND_STOP`)&&t.pause()))});async function ke(){if(!(!R.value||!O.query.screenId||!O.query.accessToken)){H.value=!0;try{let e=await C.BindScreen({screenId:String(O.query.screenId),accessToken:String(O.query.accessToken),gameId:R.value});if(e.error)throw Error(e.error);U.value=!0}catch(e){D.error(e instanceof Error?e.message:`Не удалось привязать экран`)}finally{H.value=!1}}}async function $(){try{await document.documentElement.requestFullscreen?.()}catch{D.warning(`Полноэкранный режим недоступен в этом браузере`)}z.value=!0}return ee(async()=>{if(J.value){await Oe(),V.value=!1;return}Z();try{(!k.value||!A.value)&&await Ee(),await Q(),q=window.setInterval(Q,1e3)}catch(e){D.error(e instanceof Error?e.message:`Не удалось подготовить экран`)}finally{V.value=!1}}),te(()=>{q!=null&&window.clearInterval(q),F!=null&&window.clearInterval(F)}),(o,s)=>(a(),r(l,null,[J.value?(a(),r(`div`,ae,[e(h(v),{class:`binding-card`,title:`Привязка экрана`},{default:m(()=>[U.value?(a(),r(l,{key:0},[s[1]||=n(`p`,null,`Экран привязан к игре.`,-1),s[2]||=n(`p`,null,`Можно закрыть эту страницу.`,-1)],64)):(a(),r(l,{key:1},[s[4]||=n(`p`,null,`Выберите игру, к которой привязать экран.`,-1),e(h(re),{value:R.value,"onUpdate:value":s[0]||=e=>R.value=e,options:xe.value,placeholder:`Игра`},null,8,[`value`,`options`]),e(h(y),{type:`primary`,loading:H.value,disabled:R.value==null,onClick:ke},{default:m(()=>[...s[3]||=[p(` Привязать `,-1)]]),_:1},8,[`loading`,`disabled`])],64))]),_:1})])):(a(),r(`div`,oe,[V.value?(a(),r(`div`,se,`Подготовка экрана…`)):(a(),r(l,{key:1},[j.value?.gameId?(a(),r(`div`,{key:1,class:`screen-content`,style:t(we.value)},[B.value?(a(),r(`p`,ue,f(B.value),1)):c(``,!0),X.value===`SCREEN_MODE_INTRO`&&j.value.introAudio?(a(),r(`div`,de,[n(`audio`,{ref_key:`introAudioElement`,ref:W,src:Se.value,muted:!j.value.soundEnabled,controls:``},null,8,fe)])):X.value===`SCREEN_MODE_CONCLUSION`&&j.value.conclusionVideo?(a(),r(`div`,pe,[n(`video`,{ref_key:`conclusionVideoElement`,ref:G,src:Ce.value,muted:!j.value.soundEnabled,playsinline:``},null,8,me)])):X.value===`SCREEN_MODE_CONCLUSION`?(a(),r(`div`,he,`Видео закрывашки не задано`)):X.value===`SCREEN_MODE_INTRO_DONE`?(a(),r(`div`,ge,`Успехов`)):X.value===`SCREEN_MODE_CONCLUSION_DONE`?(a(),r(`div`,_e,`Спасибо за игру!`)):X.value===`SCREEN_MODE_RESULTS`?(a(),r(`div`,{key:6,ref_key:`resultsContainer`,ref:P,class:`results-screen`},[s[11]||=n(`h1`,null,`Результаты`,-1),n(`table`,null,[n(`thead`,null,[n(`tr`,null,[s[7]||=n(`th`,null,`Место`,-1),s[8]||=n(`th`,null,`Команда`,-1),(a(!0),r(l,null,i(N.value,e=>(a(),r(`th`,{key:e.code},f(e.code),1))),128)),s[9]||=n(`th`,null,`Сумма`,-1),s[10]||=n(`th`,null,`Ходы`,-1)])]),n(`tbody`,null,[(a(!0),r(l,null,i(M.value,e=>(a(),r(`tr`,{key:e.team?.id},[n(`td`,null,f(e.place),1),n(`td`,null,f(e.team?.name),1),(a(!0),r(l,null,i(N.value,t=>(a(),r(`td`,{key:t.code},f(e.answers?.find(e=>e.questionCode===t.code)?.score??0),1))),128)),n(`td`,null,f(e.totalScore),1),n(`td`,null,f(e.actionsCount),1)]))),128))])])],512)):(a(),r(`div`,ve,[j.value.coverImage?(a(),r(`img`,{key:0,src:j.value.coverImage,class:`cover-image`,alt:`Обложка дела`},null,8,ye)):c(``,!0),z.value?c(``,!0):(a(),r(`div`,be,[e(h(y),{type:`primary`,onClick:$},{default:m(()=>[...s[12]||=[p(`Подготовить экран`,-1)]]),_:1})]))]))],4)):(a(),r(`div`,ce,[e(h(v),{class:`qr-card`,title:`Подключение экрана`},{default:m(()=>[Y.value?(a(),r(`div`,le,[e(h(x),{value:Y.value,size:260,padding:0},null,8,[`value`])])):c(``,!0),s[6]||=n(`p`,null,`Отсканируйте QR телефоном организатора и выберите игру.`,-1),z.value?c(``,!0):(a(),_(h(y),{key:1,type:`primary`,onClick:$},{default:m(()=>[...s[5]||=[p(`Подготовить экран`,-1)]]),_:1}))]),_:1})]))],64))])),J.value?(a(),_(w,{key:2,active:`games`})):c(``,!0)],64))}}),[[`__scopeId`,`data-v-e2e3dbf3`]]),O=d({__name:`ScreenView`,setup(e){return(e,t)=>(a(),_(D))}});export{O as default}; \ No newline at end of file +import{A as e,At as t,C as n,E as r,J as i,K as a,R as o,S as s,T as c,U as ee,W as te,_ as l,ct as u,et as ne,j as d,jt as f,k as p,nt as m,pt as h,u as g,w as _}from"./auth-CzuN8bsR.js";import{t as v}from"./Card-jY6IqKWx.js";import{t as y}from"./Button-_KVJEFbE.js";import{t as re}from"./Select-BAqObS0Q.js";import{t as b}from"./use-message-R8JEzJ8f.js";import{t as x}from"./QrCode-CWZd63W8.js";import{r as S,t as C}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as w}from"./HeaderMenu-Qspj3Vlt.js";import{r as T}from"./application-CQhaY0yx.js";import{t as ie}from"./datetime-BJNH0M1T.js";var ae={key:0,class:`screen-center`},oe={key:1,class:`screen-page`},se={key:0,class:`screen-center`},ce={key:0,class:`screen-center`},le={key:0,class:`screen-qr`},ue={key:0,class:`media-error`},de={key:1,class:`screen-media`},fe=[`src`,`muted`],pe={key:2,class:`conclusion-screen`},me=[`src`,`muted`],he={key:3,class:`screen-message`},ge={key:4,class:`screen-message`},_e={key:5,class:`screen-message`},ve={key:7,class:`screen-cover`},ye=[`src`],be={key:1,class:`cover-controls`},E=`evening-detective-screen-session`,D=C(d({__name:`ScreenPage`,setup(d){let C=S(),D=b(),O=g(),k=u(``),A=u(``),j=u(),M=u([]),N=u([]),P=u(),F,I=!1,L=u([]),R=u(null),z=u(!1),B=u(``),V=u(!0),H=u(!1),U=u(!1),W=u(),G=u(),K=0,q=null,J=s(()=>!!(O.query.screenId&&O.query.accessToken)),Y=s(()=>{if(!k.value||!A.value)return``;let e=new URL(`/screen`,window.location.origin);return e.searchParams.set(`screenId`,k.value),e.searchParams.set(`accessToken`,A.value),e.toString()}),xe=s(()=>L.value.map(e=>({label:`${ie(e.startAt).split(`,`)[0]||`дата не указана`} — ${e.name||`Игра ${e.id}`}`,value:e.id}))),X=s(()=>j.value?.mode||`SCREEN_MODE_COVER`),Se=s(()=>T(j.value?.introAudio)),Ce=s(()=>T(j.value?.conclusionVideo)),we=s(()=>{let e=j.value?.backgroundImage||j.value?.coverImage;return e?{backgroundImage:`linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url("${e}")`}:{}});function Te(){sessionStorage.setItem(E,JSON.stringify({screenId:k.value,accessToken:A.value}))}function Z(){try{let e=JSON.parse(sessionStorage.getItem(E)||`{}`);k.value=e.screenId||``,A.value=e.accessToken||``}catch{sessionStorage.removeItem(E)}}async function Ee(){let e=await C.CreateScreenSession({});if(e.error||!e.screenId||!e.accessToken)throw Error(e.error||`Не удалось создать сессию экрана`);k.value=e.screenId,A.value=e.accessToken,Te()}async function Q(){if(!(!k.value||!A.value))try{let e=await C.GetScreenState({screenId:k.value,accessToken:A.value});if(e.error)throw Error(e.error);j.value=e.state,j.value?.gameId&&j.value.mode===`SCREEN_MODE_RESULTS`&&await De()}catch(e){D.error(e instanceof Error?e.message:`Не удалось получить состояние экрана`)}}async function De(){if(!k.value||!A.value)return;let e=await C.GetScreenResults({screenId:k.value,accessToken:A.value});if(e.error==``&&(N.value=e.questions||[],M.value=e.teams||[],!I)){I=!0,await o();let e=P.value;e&&(e.scrollTop=e.scrollHeight,F=window.setInterval(()=>{e.scrollTop=Math.max(0,e.scrollTop-32),e.scrollTop===0&&F!=null&&(window.clearInterval(F),F=void 0)},1e3))}}async function Oe(){try{let e=await C.GetGames({});if(e.error)throw Error(e.error);L.value=e.games||[]}catch(e){D.error(e instanceof Error?e.message:`Не удалось загрузить игры`)}}ne(j,async e=>{if(!e||!e.command||e.stateVersion===K)return;K=e.stateVersion||0,await o();let t=X.value===`SCREEN_MODE_CONCLUSION`?G.value:W.value;t&&(t.currentTime=(e.positionMs||0)/1e3,t.volume=Math.max(0,Math.min(1,(e.volume??100)/100)),e.command!==`SCREEN_COMMAND_SEEK`&&e.command!==`SCREEN_COMMAND_VOLUME`&&(e.command===`SCREEN_COMMAND_PLAY`||e.command===`SCREEN_COMMAND_RESUME`||e.command===`SCREEN_COMMAND_REPLAY`?(e.command===`SCREEN_COMMAND_REPLAY`&&(t.currentTime=0),t.play().catch(()=>{B.value=`Браузер заблокировал воспроизведение. Нажмите «Подготовить экран» на этом устройстве.`})):(e.command===`SCREEN_COMMAND_PAUSE`||e.command===`SCREEN_COMMAND_STOP`)&&t.pause()))});async function ke(){if(!(!R.value||!O.query.screenId||!O.query.accessToken)){H.value=!0;try{let e=await C.BindScreen({screenId:String(O.query.screenId),accessToken:String(O.query.accessToken),gameId:R.value});if(e.error)throw Error(e.error);U.value=!0}catch(e){D.error(e instanceof Error?e.message:`Не удалось привязать экран`)}finally{H.value=!1}}}async function $(){try{await document.documentElement.requestFullscreen?.()}catch{D.warning(`Полноэкранный режим недоступен в этом браузере`)}z.value=!0}return ee(async()=>{if(J.value){await Oe(),V.value=!1;return}Z();try{(!k.value||!A.value)&&await Ee(),await Q(),q=window.setInterval(Q,1e3)}catch(e){D.error(e instanceof Error?e.message:`Не удалось подготовить экран`)}finally{V.value=!1}}),te(()=>{q!=null&&window.clearInterval(q),F!=null&&window.clearInterval(F)}),(o,s)=>(a(),r(l,null,[J.value?(a(),r(`div`,ae,[e(h(v),{class:`binding-card`,title:`Привязка экрана`},{default:m(()=>[U.value?(a(),r(l,{key:0},[s[1]||=n(`p`,null,`Экран привязан к игре.`,-1),s[2]||=n(`p`,null,`Можно закрыть эту страницу.`,-1)],64)):(a(),r(l,{key:1},[s[4]||=n(`p`,null,`Выберите игру, к которой привязать экран.`,-1),e(h(re),{value:R.value,"onUpdate:value":s[0]||=e=>R.value=e,options:xe.value,placeholder:`Игра`},null,8,[`value`,`options`]),e(h(y),{type:`primary`,loading:H.value,disabled:R.value==null,onClick:ke},{default:m(()=>[...s[3]||=[p(` Привязать `,-1)]]),_:1},8,[`loading`,`disabled`])],64))]),_:1})])):(a(),r(`div`,oe,[V.value?(a(),r(`div`,se,`Подготовка экрана…`)):(a(),r(l,{key:1},[j.value?.gameId?(a(),r(`div`,{key:1,class:`screen-content`,style:t(we.value)},[B.value?(a(),r(`p`,ue,f(B.value),1)):c(``,!0),X.value===`SCREEN_MODE_INTRO`&&j.value.introAudio?(a(),r(`div`,de,[n(`audio`,{ref_key:`introAudioElement`,ref:W,src:Se.value,muted:!j.value.soundEnabled,controls:``},null,8,fe)])):X.value===`SCREEN_MODE_CONCLUSION`&&j.value.conclusionVideo?(a(),r(`div`,pe,[n(`video`,{ref_key:`conclusionVideoElement`,ref:G,src:Ce.value,muted:!j.value.soundEnabled,playsinline:``},null,8,me)])):X.value===`SCREEN_MODE_CONCLUSION`?(a(),r(`div`,he,`Видео закрывашки не задано`)):X.value===`SCREEN_MODE_INTRO_DONE`?(a(),r(`div`,ge,`Успехов`)):X.value===`SCREEN_MODE_CONCLUSION_DONE`?(a(),r(`div`,_e,`Спасибо за игру!`)):X.value===`SCREEN_MODE_RESULTS`?(a(),r(`div`,{key:6,ref_key:`resultsContainer`,ref:P,class:`results-screen`},[s[11]||=n(`h1`,null,`Результаты`,-1),n(`table`,null,[n(`thead`,null,[n(`tr`,null,[s[7]||=n(`th`,null,`Место`,-1),s[8]||=n(`th`,null,`Команда`,-1),(a(!0),r(l,null,i(N.value,e=>(a(),r(`th`,{key:e.code},f(e.code),1))),128)),s[9]||=n(`th`,null,`Сумма`,-1),s[10]||=n(`th`,null,`Ходы`,-1)])]),n(`tbody`,null,[(a(!0),r(l,null,i(M.value,e=>(a(),r(`tr`,{key:e.team?.id},[n(`td`,null,f(e.place),1),n(`td`,null,f(e.team?.name),1),(a(!0),r(l,null,i(N.value,t=>(a(),r(`td`,{key:t.code},f(e.answers?.find(e=>e.questionCode===t.code)?.score??0),1))),128)),n(`td`,null,f(e.totalScore),1),n(`td`,null,f(e.actionsCount),1)]))),128))])])],512)):(a(),r(`div`,ve,[j.value.coverImage?(a(),r(`img`,{key:0,src:j.value.coverImage,class:`cover-image`,alt:`Обложка дела`},null,8,ye)):c(``,!0),z.value?c(``,!0):(a(),r(`div`,be,[e(h(y),{type:`primary`,onClick:$},{default:m(()=>[...s[12]||=[p(`Подготовить экран`,-1)]]),_:1})]))]))],4)):(a(),r(`div`,ce,[e(h(v),{class:`qr-card`,title:`Подключение экрана`},{default:m(()=>[Y.value?(a(),r(`div`,le,[e(h(x),{value:Y.value,size:260,padding:0},null,8,[`value`])])):c(``,!0),s[6]||=n(`p`,null,`Отсканируйте QR телефоном организатора и выберите игру.`,-1),z.value?c(``,!0):(a(),_(h(y),{key:1,type:`primary`,onClick:$},{default:m(()=>[...s[5]||=[p(`Подготовить экран`,-1)]]),_:1}))]),_:1})]))],64))])),J.value?(a(),_(w,{key:2,active:`games`})):c(``,!0)],64))}}),[[`__scopeId`,`data-v-e2e3dbf3`]]),O=d({__name:`ScreenView`,setup(e){return(e,t)=>(a(),_(D))}});export{O as default}; \ No newline at end of file diff --git a/dist/assets/Select-BQvr1qOg.js b/dist/assets/Select-BAqObS0Q.js similarity index 97% rename from dist/assets/Select-BQvr1qOg.js rename to dist/assets/Select-BAqObS0Q.js index 7d0aab1..d6a8359 100644 --- a/dist/assets/Select-BQvr1qOg.js +++ b/dist/assets/Select-BAqObS0Q.js @@ -1,4 +1,4 @@ -import{P as e,R as t,S as n,U as r,Y as i,_ as a,ct as o,dt as s,et as c,j as l,rt as u,tt as d}from"./auth-DetOXv90.js";import{G as f,J as p,K as m,M as h,N as g,R as _,X as v,Y as y,Z as b,o as x,r as S}from"./light-BN35I8ot.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-BqBATTTc.js";import{a as k,c as ee,i as A,n as te,o as ne,r as j,t as M,u as N}from"./utils-uz9aUEjP.js";import{f as re,o as P}from"./Card-BFXpokQN.js";import{c as ie}from"./resolve-slot-DXnJRg0o.js";import{i as ae,n as F,t as I,u as L}from"./Suffix-CutOgybq.js";import{t as R}from"./use-merged-state-Dw19ICqg.js";import{t as oe}from"./use-compitable-Ct-u1IyK.js";import{t as z}from"./Popover-MvWXFA-P.js";import{r as se}from"./keep-XDVR1tb6.js";import{n as ce,r as B}from"./use-form-item-CT1L1ziV.js";import{t as V}from"./Tag-BqKZJJ-a.js";import{E as H,J as U,K as W,Z as G,et as K,v as le}from"./index-UYw_T9_p.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=l({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=o(null),i=o(null);function a(r){let{value:a}=n,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?i.value:o(),!a||!c)return;c.hasAttribute(q)&&c.removeAttribute(q);let{children:l}=a;if(r.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;tu){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(q,``))}let s=_();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:s}),r(()=>a({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:i,sync:a}},render(){let{$slots:n}=this;return t(()=>this.sync({showAllItemsBeforeCalculate:!1})),e(`div`,{class:`v-overflow`,ref:`selfRef`},[i(n,`default`),n.counter?n.counter():e(`span`,{style:{display:`inline-block`},ref:`counterRef`}),n.tail?n.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=f([m(`base-selection`,` +import{P as e,R as t,S as n,U as r,Y as i,_ as a,ct as o,dt as s,et as c,j as l,rt as u,tt as d}from"./auth-CzuN8bsR.js";import{G as f,J as p,K as m,M as h,N as g,R as _,X as v,Y as y,Z as b,o as x,r as S}from"./light-Dg5iONHF.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-BeUAmPJ4.js";import{a as k,c as ee,i as A,n as te,o as ne,r as j,t as M,u as N}from"./utils-Av1b4W6Q.js";import{f as re,o as P}from"./Card-jY6IqKWx.js";import{c as ie}from"./resolve-slot-Bgp_Mn8k.js";import{i as ae,n as F,t as I,u as L}from"./Suffix-PHRsdJdH.js";import{t as R}from"./use-merged-state-D8rNARXC.js";import{t as oe}from"./use-compitable-boC6cFiE.js";import{t as z}from"./Popover-DZnHj7OS.js";import{r as se}from"./keep-D5zQL9t4.js";import{n as ce,r as B}from"./use-form-item-DDZTyeAQ.js";import{t as V}from"./Tag-DfP_x904.js";import{E as H,J as U,K as W,Z as G,et as K,v as le}from"./index-4mSiwzFS.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=l({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=o(null),i=o(null);function a(r){let{value:a}=n,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?i.value:o(),!a||!c)return;c.hasAttribute(q)&&c.removeAttribute(q);let{children:l}=a;if(r.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;tu){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(q,``))}let s=_();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:s}),r(()=>a({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:i,sync:a}},render(){let{$slots:n}=this;return t(()=>this.sync({showAllItemsBeforeCalculate:!1})),e(`div`,{class:`v-overflow`,ref:`selfRef`},[i(n,`default`),n.counter?n.counter():e(`span`,{style:{display:`inline-block`},ref:`counterRef`}),n.tail?n.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=f([m(`base-selection`,` --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left); --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left); position: relative; diff --git a/dist/assets/Settings-ClmW7dGA.js b/dist/assets/Settings-DZEhm-J2.js similarity index 95% rename from dist/assets/Settings-ClmW7dGA.js rename to dist/assets/Settings-DZEhm-J2.js index a71b591..5ed3424 100644 --- a/dist/assets/Settings-ClmW7dGA.js +++ b/dist/assets/Settings-DZEhm-J2.js @@ -1 +1 @@ -import{C as e,E as t,K as n,j as r}from"./auth-DetOXv90.js";var i={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},a=r({name:`Settings`,render:function(r,a){return n(),t(`svg`,i,a[0]||=[e(`path`,{d:`M27 16.76V16v-.77l1.92-1.68A2 2 0 0 0 29.3 11l-2.36-4a2 2 0 0 0-1.73-1a2 2 0 0 0-.64.1l-2.43.82a11.35 11.35 0 0 0-1.31-.75l-.51-2.52a2 2 0 0 0-2-1.61h-4.68a2 2 0 0 0-2 1.61l-.51 2.52a11.48 11.48 0 0 0-1.32.75l-2.38-.86A2 2 0 0 0 6.79 6a2 2 0 0 0-1.73 1L2.7 11a2 2 0 0 0 .41 2.51L5 15.24v1.53l-1.89 1.68A2 2 0 0 0 2.7 21l2.36 4a2 2 0 0 0 1.73 1a2 2 0 0 0 .64-.1l2.43-.82a11.35 11.35 0 0 0 1.31.75l.51 2.52a2 2 0 0 0 2 1.61h4.72a2 2 0 0 0 2-1.61l.51-2.52a11.48 11.48 0 0 0 1.32-.75l2.42.82a2 2 0 0 0 .64.1a2 2 0 0 0 1.73-1l2.28-4a2 2 0 0 0-.41-2.51zM25.21 24l-3.43-1.16a8.86 8.86 0 0 1-2.71 1.57L18.36 28h-4.72l-.71-3.55a9.36 9.36 0 0 1-2.7-1.57L6.79 24l-2.36-4l2.72-2.4a8.9 8.9 0 0 1 0-3.13L4.43 12l2.36-4l3.43 1.16a8.86 8.86 0 0 1 2.71-1.57L13.64 4h4.72l.71 3.55a9.36 9.36 0 0 1 2.7 1.57L25.21 8l2.36 4l-2.72 2.4a8.9 8.9 0 0 1 0 3.13L27.57 20z`,fill:`currentColor`},null,-1),e(`path`,{d:`M16 22a6 6 0 1 1 6-6a5.94 5.94 0 0 1-6 6zm0-10a3.91 3.91 0 0 0-4 4a3.91 3.91 0 0 0 4 4a3.91 3.91 0 0 0 4-4a3.91 3.91 0 0 0-4-4z`,fill:`currentColor`},null,-1)])}});export{a as t}; \ No newline at end of file +import{C as e,E as t,K as n,j as r}from"./auth-CzuN8bsR.js";var i={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},a=r({name:`Settings`,render:function(r,a){return n(),t(`svg`,i,a[0]||=[e(`path`,{d:`M27 16.76V16v-.77l1.92-1.68A2 2 0 0 0 29.3 11l-2.36-4a2 2 0 0 0-1.73-1a2 2 0 0 0-.64.1l-2.43.82a11.35 11.35 0 0 0-1.31-.75l-.51-2.52a2 2 0 0 0-2-1.61h-4.68a2 2 0 0 0-2 1.61l-.51 2.52a11.48 11.48 0 0 0-1.32.75l-2.38-.86A2 2 0 0 0 6.79 6a2 2 0 0 0-1.73 1L2.7 11a2 2 0 0 0 .41 2.51L5 15.24v1.53l-1.89 1.68A2 2 0 0 0 2.7 21l2.36 4a2 2 0 0 0 1.73 1a2 2 0 0 0 .64-.1l2.43-.82a11.35 11.35 0 0 0 1.31.75l.51 2.52a2 2 0 0 0 2 1.61h4.72a2 2 0 0 0 2-1.61l.51-2.52a11.48 11.48 0 0 0 1.32-.75l2.42.82a2 2 0 0 0 .64.1a2 2 0 0 0 1.73-1l2.28-4a2 2 0 0 0-.41-2.51zM25.21 24l-3.43-1.16a8.86 8.86 0 0 1-2.71 1.57L18.36 28h-4.72l-.71-3.55a9.36 9.36 0 0 1-2.7-1.57L6.79 24l-2.36-4l2.72-2.4a8.9 8.9 0 0 1 0-3.13L4.43 12l2.36-4l3.43 1.16a8.86 8.86 0 0 1 2.71-1.57L13.64 4h4.72l.71 3.55a9.36 9.36 0 0 1 2.7 1.57L25.21 8l2.36 4l-2.72 2.4a8.9 8.9 0 0 1 0 3.13L27.57 20z`,fill:`currentColor`},null,-1),e(`path`,{d:`M16 22a6 6 0 1 1 6-6a5.94 5.94 0 0 1-6 6zm0-10a3.91 3.91 0 0 0-4 4a3.91 3.91 0 0 0 4 4a3.91 3.91 0 0 0 4-4a3.91 3.91 0 0 0-4-4z`,fill:`currentColor`},null,-1)])}});export{a as t}; \ No newline at end of file diff --git a/dist/assets/Space-B98o1YSA.js b/dist/assets/Space-BumyB3cS.js similarity index 88% rename from dist/assets/Space-B98o1YSA.js rename to dist/assets/Space-BumyB3cS.js index 3995526..a833175 100644 --- a/dist/assets/Space-B98o1YSA.js +++ b/dist/assets/Space-BumyB3cS.js @@ -1 +1 @@ -import{P as e,S as t,g as n,j as r}from"./auth-DetOXv90.js";import{N as i,Z as a,o,r as s}from"./light-BN35I8ot.js";import{o as c,s as l}from"./resolve-slot-DXnJRg0o.js";import{a as u,o as d}from"./Button-SFBLnAwv.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{u as p}from"./index-UYw_T9_p.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!d)return!0;if(g===void 0){let e=document.createElement(`div`);e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return document.body.removeChild(e),g=t}return g}var v=r({name:`Space`,props:Object.assign(Object.assign({},s.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:n,mergedRtlRef:r,mergedComponentPropsRef:u}=i(e),d=t(()=>e.size||u?.value?.Space?.size||`medium`),f=s(`Space`,`-space`,void 0,h,e,n),p=o(`Space`,r,n);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:n,margin:t(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[a(`gap`,e)]:t}}=f.value,{row:n,col:r}=l(t);return{horizontal:c(r),vertical:c(n)}})}},render(){let{vertical:t,reverse:r,align:i,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:d,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=u(f(this),!1);if(!v.length)return null;let y=`${l.horizontal}px`,b=`${l.horizontal/2}px`,x=`${l.vertical}px`,S=`${l.vertical/2}px`,C=v.length-1,w=o.startsWith(`space-`);return e(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:t&&!r?`column`:t&&r?`column-reverse`:!t&&r?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!d||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((r,i)=>r.type===n?r:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:i===C?``:x}:m?{marginLeft:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginRight:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginLeft:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}]},r)))}});export{v as t}; \ No newline at end of file +import{P as e,S as t,g as n,j as r}from"./auth-CzuN8bsR.js";import{N as i,Z as a,o,r as s}from"./light-Dg5iONHF.js";import{o as c,s as l}from"./resolve-slot-Bgp_Mn8k.js";import{a as u,o as d}from"./Button-_KVJEFbE.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{u as p}from"./index-4mSiwzFS.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!d)return!0;if(g===void 0){let e=document.createElement(`div`);e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return document.body.removeChild(e),g=t}return g}var v=r({name:`Space`,props:Object.assign(Object.assign({},s.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:n,mergedRtlRef:r,mergedComponentPropsRef:u}=i(e),d=t(()=>e.size||u?.value?.Space?.size||`medium`),f=s(`Space`,`-space`,void 0,h,e,n),p=o(`Space`,r,n);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:n,margin:t(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[a(`gap`,e)]:t}}=f.value,{row:n,col:r}=l(t);return{horizontal:c(r),vertical:c(n)}})}},render(){let{vertical:t,reverse:r,align:i,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:d,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=u(f(this),!1);if(!v.length)return null;let y=`${l.horizontal}px`,b=`${l.horizontal/2}px`,x=`${l.vertical}px`,S=`${l.vertical/2}px`,C=v.length-1,w=o.startsWith(`space-`);return e(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:t&&!r?`column`:t&&r?`column-reverse`:!t&&r?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!d||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((r,i)=>r.type===n?r:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:i===C?``:x}:m?{marginLeft:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginRight:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginLeft:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}]},r)))}});export{v as t}; \ No newline at end of file diff --git a/dist/assets/Suffix-CutOgybq.js b/dist/assets/Suffix-PHRsdJdH.js similarity index 98% rename from dist/assets/Suffix-CutOgybq.js rename to dist/assets/Suffix-PHRsdJdH.js index 78b27fd..ad8b6b5 100644 --- a/dist/assets/Suffix-CutOgybq.js +++ b/dist/assets/Suffix-PHRsdJdH.js @@ -1,4 +1,4 @@ -import{F as e,M as t,P as n,S as r,_ as i,ct as a,dt as o,et as s,g as c,j as l,k as u,st as d,v as f}from"./auth-DetOXv90.js";import{G as p,J as m,K as h,L as g,P as _,a as v,i as y,z as b}from"./light-BN35I8ot.js";import{d as x,u as S}from"./Card-BFXpokQN.js";import{r as C}from"./resolve-slot-DXnJRg0o.js";import{a as w}from"./Button-SFBLnAwv.js";import{B as T,F as E,H as D,V as O,j as k}from"./index-UYw_T9_p.js";function A(e){let t=a(!!e.value);if(t.value)return d(t);let n=s(e,e=>{e&&(t.value=!0,n())});return d(t)}function ee(){return t()!==null}var te=typeof window<`u`,ne=b(`n-drawer-body`);b(`n-drawer`);var re=b(`n-modal-body`),j=b(`n-modal-provider`),M=b(`n-modal`),N=b(`n-popover-body`);function P(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function F(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(u(String(e)));return}if(Array.isArray(e)){F(e,t,n);return}if(e.type===i){if(e.children===null)return;Array.isArray(e.children)&&F(e.children,t,n)}else e.type!==c&&n.push(e)}}),n}function I(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=F(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var L=`@@coContext`,R={mounted(e,{value:t,modifiers:n}){e[L]={handler:void 0},typeof t==`function`&&(e[L].handler=t,x(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[L];typeof t==`function`?r.handler?r.handler!==t&&(S(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,x(`clickoutside`,e,t,{capture:n.capture})):(e[L].handler=t,x(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(S(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[L];n&&S(`clickoutside`,e,n,{capture:t.capture}),e[L].handler=void 0}};function z(e,t){console.error(`[vdirs/${e}]: ${t}`)}var B=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){let{elementZIndex:n}=this;if(t!==void 0){e.style.zIndex=`${t}`,n.delete(e);return}let{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){let{elementZIndex:n}=this;n.has(e)?n.delete(e):t===void 0&&z(`z-index-manager/unregister-element`,`Element not found when unregistering.`),this.squashState()}squashState(){let{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){let e=Array.from(this.elementZIndex.entries());e.sort((e,t)=>e[1]-t[1]),this.nextZIndex=2e3,e.forEach(e=>{let t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)})}},V=`@@ziContext`,H={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[V]={enabled:!!i,initialized:!1},i&&(B.ensureZIndex(e,r),e[V].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[V].enabled;i&&!a&&(B.ensureZIndex(e,r),e[V].initialized=!0),e[V].enabled=!!i},unmounted(e,t){if(!e[V].initialized)return;let{value:n={}}=t,{zIndex:r}=n;B.unregister(e,r)}},U=l({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:A(o(e,`show`)),mergedTo:r(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?P(`lazy-teleport`,this.$slots):n(f,{disabled:this.disabled,to:this.mergedTo},P(`lazy-teleport`,this.$slots)):null}});function W(e,t=`default`,n=void 0){let r=e[t];if(!r)return g(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=w(r(n));return i.length===1?i[0]:(g(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function G(e,t,n){if(!t)return null;let r=w(t(n));return r.length===1?r[0]:(g(`getFirstSlotVNode`,`slot[${e}] should have exactly one child`),null)}var K={name:`en-US`,global:{undo:`Undo`,redo:`Redo`,confirm:`Confirm`,clear:`Clear`},Popconfirm:{positiveText:`Confirm`,negativeText:`Cancel`},Cascader:{placeholder:`Please Select`,loading:`Loading`,loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`},DatePicker:{yearFormat:`yyyy`,monthFormat:`MMM`,dayFormat:`eeeeee`,yearTypeFormat:`yyyy`,monthTypeFormat:`yyyy-MM`,dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`,quarterFormat:`yyyy-qqq`,weekFormat:`YYYY-w`,clear:`Clear`,now:`Now`,confirm:`Confirm`,selectTime:`Select Time`,selectDate:`Select Date`,datePlaceholder:`Select Date`,datetimePlaceholder:`Select Date and Time`,monthPlaceholder:`Select Month`,yearPlaceholder:`Select Year`,quarterPlaceholder:`Select Quarter`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Start Date`,endDatePlaceholder:`End Date`,startDatetimePlaceholder:`Start Date and Time`,endDatetimePlaceholder:`End Date and Time`,startMonthPlaceholder:`Start Month`,endMonthPlaceholder:`End Month`,monthBeforeYear:!0,firstDayOfWeek:6,today:`Today`},DataTable:{checkTableAll:`Select all in the table`,uncheckTableAll:`Unselect all in the table`,confirm:`Confirm`,clear:`Clear`},LegacyTransfer:{sourceTitle:`Source`,targetTitle:`Target`},Transfer:{selectAll:`Select all`,unselectAll:`Unselect all`,clearAll:`Clear`,total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:`No Data`},Select:{placeholder:`Please Select`},TimePicker:{placeholder:`Select Time`,positiveText:`OK`,negativeText:`Cancel`,now:`Now`,clear:`Clear`},Pagination:{goto:`Goto`,selectionSuffix:`page`},DynamicTags:{add:`Add`},Log:{loading:`Loading`},Input:{placeholder:`Please Input`},InputNumber:{placeholder:`Please Input`},DynamicInput:{create:`Create`},ThemeEditor:{title:`Theme Editor`,clearAllVars:`Clear All Variables`,clearSearch:`Clear Search`,filterCompName:`Filter Component Name`,filterVarName:`Filter Variable Name`,import:`Import`,export:`Export`,restore:`Reset to Default`},Image:{tipPrevious:`Previous picture (←)`,tipNext:`Next picture (→)`,tipCounterclockwise:`Counterclockwise`,tipClockwise:`Clockwise`,tipZoomOut:`Zoom out`,tipZoomIn:`Zoom in`,tipDownload:`Download`,tipClose:`Close (Esc)`,tipOriginalSize:`Zoom to original size`},Heatmap:{less:`less`,more:`more`,monthFormat:`MMM`,weekdayFormat:`eee`}};function q(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function J(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function Y(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?ae(s,e=>e.test(o)):ie(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function ie(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ae(e,t){for(let n=0;n{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var se={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},ce=(e,t,n)=>{let r,i=se[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},le={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ue=(e,t,n,r)=>le[e],de={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:J({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:J({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:J({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:J({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:J({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},fe={ordinalNumber:oe({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:Y({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:Y({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:Y({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:Y({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:Y({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},X={code:`en-US`,formatDistance:ce,formatLong:{date:q({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:q({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:q({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:ue,localize:de,match:fe,options:{weekStartsOn:0,firstWeekContainsDate:1}},pe={name:`en-US`,locale:X};function me(t){let{mergedLocaleRef:n,mergedDateLocaleRef:i}=e(_,null)||{},a=r(()=>n?.value?.[t]??K[t]);return{dateLocaleRef:r(()=>i?.value??pe),localeRef:a}}var he=l({name:`ChevronDown`,render(){return n(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z`,fill:`currentColor`}))}}),ge=T(`clear`,()=>n(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},n(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},n(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},n(`path`,{d:`M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z`}))))),_e=h(`base-clear`,` +import{F as e,M as t,P as n,S as r,_ as i,ct as a,dt as o,et as s,g as c,j as l,k as u,st as d,v as f}from"./auth-CzuN8bsR.js";import{G as p,J as m,K as h,L as g,P as _,a as v,i as y,z as b}from"./light-Dg5iONHF.js";import{d as x,u as S}from"./Card-jY6IqKWx.js";import{r as C}from"./resolve-slot-Bgp_Mn8k.js";import{a as w}from"./Button-_KVJEFbE.js";import{B as T,F as E,H as D,V as O,j as k}from"./index-4mSiwzFS.js";function A(e){let t=a(!!e.value);if(t.value)return d(t);let n=s(e,e=>{e&&(t.value=!0,n())});return d(t)}function ee(){return t()!==null}var te=typeof window<`u`,ne=b(`n-drawer-body`);b(`n-drawer`);var re=b(`n-modal-body`),j=b(`n-modal-provider`),M=b(`n-modal`),N=b(`n-popover-body`);function P(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function F(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(u(String(e)));return}if(Array.isArray(e)){F(e,t,n);return}if(e.type===i){if(e.children===null)return;Array.isArray(e.children)&&F(e.children,t,n)}else e.type!==c&&n.push(e)}}),n}function I(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=F(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var L=`@@coContext`,R={mounted(e,{value:t,modifiers:n}){e[L]={handler:void 0},typeof t==`function`&&(e[L].handler=t,x(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[L];typeof t==`function`?r.handler?r.handler!==t&&(S(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,x(`clickoutside`,e,t,{capture:n.capture})):(e[L].handler=t,x(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(S(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[L];n&&S(`clickoutside`,e,n,{capture:t.capture}),e[L].handler=void 0}};function z(e,t){console.error(`[vdirs/${e}]: ${t}`)}var B=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){let{elementZIndex:n}=this;if(t!==void 0){e.style.zIndex=`${t}`,n.delete(e);return}let{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){let{elementZIndex:n}=this;n.has(e)?n.delete(e):t===void 0&&z(`z-index-manager/unregister-element`,`Element not found when unregistering.`),this.squashState()}squashState(){let{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){let e=Array.from(this.elementZIndex.entries());e.sort((e,t)=>e[1]-t[1]),this.nextZIndex=2e3,e.forEach(e=>{let t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)})}},V=`@@ziContext`,H={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[V]={enabled:!!i,initialized:!1},i&&(B.ensureZIndex(e,r),e[V].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[V].enabled;i&&!a&&(B.ensureZIndex(e,r),e[V].initialized=!0),e[V].enabled=!!i},unmounted(e,t){if(!e[V].initialized)return;let{value:n={}}=t,{zIndex:r}=n;B.unregister(e,r)}},U=l({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:A(o(e,`show`)),mergedTo:r(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?P(`lazy-teleport`,this.$slots):n(f,{disabled:this.disabled,to:this.mergedTo},P(`lazy-teleport`,this.$slots)):null}});function W(e,t=`default`,n=void 0){let r=e[t];if(!r)return g(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=w(r(n));return i.length===1?i[0]:(g(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function G(e,t,n){if(!t)return null;let r=w(t(n));return r.length===1?r[0]:(g(`getFirstSlotVNode`,`slot[${e}] should have exactly one child`),null)}var K={name:`en-US`,global:{undo:`Undo`,redo:`Redo`,confirm:`Confirm`,clear:`Clear`},Popconfirm:{positiveText:`Confirm`,negativeText:`Cancel`},Cascader:{placeholder:`Please Select`,loading:`Loading`,loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`},DatePicker:{yearFormat:`yyyy`,monthFormat:`MMM`,dayFormat:`eeeeee`,yearTypeFormat:`yyyy`,monthTypeFormat:`yyyy-MM`,dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`,quarterFormat:`yyyy-qqq`,weekFormat:`YYYY-w`,clear:`Clear`,now:`Now`,confirm:`Confirm`,selectTime:`Select Time`,selectDate:`Select Date`,datePlaceholder:`Select Date`,datetimePlaceholder:`Select Date and Time`,monthPlaceholder:`Select Month`,yearPlaceholder:`Select Year`,quarterPlaceholder:`Select Quarter`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Start Date`,endDatePlaceholder:`End Date`,startDatetimePlaceholder:`Start Date and Time`,endDatetimePlaceholder:`End Date and Time`,startMonthPlaceholder:`Start Month`,endMonthPlaceholder:`End Month`,monthBeforeYear:!0,firstDayOfWeek:6,today:`Today`},DataTable:{checkTableAll:`Select all in the table`,uncheckTableAll:`Unselect all in the table`,confirm:`Confirm`,clear:`Clear`},LegacyTransfer:{sourceTitle:`Source`,targetTitle:`Target`},Transfer:{selectAll:`Select all`,unselectAll:`Unselect all`,clearAll:`Clear`,total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:`No Data`},Select:{placeholder:`Please Select`},TimePicker:{placeholder:`Select Time`,positiveText:`OK`,negativeText:`Cancel`,now:`Now`,clear:`Clear`},Pagination:{goto:`Goto`,selectionSuffix:`page`},DynamicTags:{add:`Add`},Log:{loading:`Loading`},Input:{placeholder:`Please Input`},InputNumber:{placeholder:`Please Input`},DynamicInput:{create:`Create`},ThemeEditor:{title:`Theme Editor`,clearAllVars:`Clear All Variables`,clearSearch:`Clear Search`,filterCompName:`Filter Component Name`,filterVarName:`Filter Variable Name`,import:`Import`,export:`Export`,restore:`Reset to Default`},Image:{tipPrevious:`Previous picture (←)`,tipNext:`Next picture (→)`,tipCounterclockwise:`Counterclockwise`,tipClockwise:`Clockwise`,tipZoomOut:`Zoom out`,tipZoomIn:`Zoom in`,tipDownload:`Download`,tipClose:`Close (Esc)`,tipOriginalSize:`Zoom to original size`},Heatmap:{less:`less`,more:`more`,monthFormat:`MMM`,weekdayFormat:`eee`}};function q(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function J(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function Y(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?ae(s,e=>e.test(o)):ie(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function ie(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ae(e,t){for(let n=0;n{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var se={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},ce=(e,t,n)=>{let r,i=se[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},le={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ue=(e,t,n,r)=>le[e],de={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:J({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:J({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:J({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:J({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:J({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},fe={ordinalNumber:oe({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:Y({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:Y({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:Y({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:Y({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:Y({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},X={code:`en-US`,formatDistance:ce,formatLong:{date:q({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:q({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:q({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:ue,localize:de,match:fe,options:{weekStartsOn:0,firstWeekContainsDate:1}},pe={name:`en-US`,locale:X};function me(t){let{mergedLocaleRef:n,mergedDateLocaleRef:i}=e(_,null)||{},a=r(()=>n?.value?.[t]??K[t]);return{dateLocaleRef:r(()=>i?.value??pe),localeRef:a}}var he=l({name:`ChevronDown`,render(){return n(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z`,fill:`currentColor`}))}}),ge=T(`clear`,()=>n(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},n(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},n(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},n(`path`,{d:`M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z`}))))),_e=h(`base-clear`,` flex-shrink: 0; height: 1em; width: 1em; diff --git a/dist/assets/Tag-BqKZJJ-a.js b/dist/assets/Tag-DfP_x904.js similarity index 96% rename from dist/assets/Tag-BqKZJJ-a.js rename to dist/assets/Tag-DfP_x904.js index 3b8cbb0..d27634c 100644 --- a/dist/assets/Tag-BqKZJJ-a.js +++ b/dist/assets/Tag-DfP_x904.js @@ -1,4 +1,4 @@ -import{P as e,S as t,ct as n,dt as r,j as i,q as a}from"./auth-DetOXv90.js";import{B as o,G as s,J as c,K as l,M as u,N as d,X as f,Y as p,Z as m,o as h,r as g,t as _,z as v}from"./light-BN35I8ot.js";import{a as y,c as b}from"./resolve-slot-DXnJRg0o.js";import{i as x,r as S}from"./use-form-item-CT1L1ziV.js";import{D as C,P as w}from"./index-UYw_T9_p.js";function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:s,warningColor:c,errorColor:l,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:w,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},C),{closeBorderRadius:_,heightTiny:S,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${o(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:o(i,{alpha:.12}),colorBorderedPrimary:o(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:o(i,{alpha:.12}),closeColorPressedPrimary:o(i,{alpha:.18}),borderInfo:`1px solid ${o(a,{alpha:.3})}`,textColorInfo:a,colorInfo:o(a,{alpha:.12}),colorBorderedInfo:o(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:o(a,{alpha:.12}),closeColorPressedInfo:o(a,{alpha:.18}),borderSuccess:`1px solid ${o(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:o(s,{alpha:.12}),colorBorderedSuccess:o(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:o(s,{alpha:.12}),closeColorPressedSuccess:o(s,{alpha:.18}),borderWarning:`1px solid ${o(c,{alpha:.35})}`,textColorWarning:c,colorWarning:o(c,{alpha:.15}),colorBorderedWarning:o(c,{alpha:.12}),closeIconColorWarning:c,closeIconColorHoverWarning:c,closeIconColorPressedWarning:c,closeColorHoverWarning:o(c,{alpha:.12}),closeColorPressedWarning:o(c,{alpha:.18}),borderError:`1px solid ${o(l,{alpha:.23})}`,textColorError:l,colorError:o(l,{alpha:.1}),colorBorderedError:o(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:o(l,{alpha:.12}),closeColorPressedError:o(l,{alpha:.18})})}var E={name:`Tag`,common:_,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=l(`tag`,` +import{P as e,S as t,ct as n,dt as r,j as i,q as a}from"./auth-CzuN8bsR.js";import{B as o,G as s,J as c,K as l,M as u,N as d,X as f,Y as p,Z as m,o as h,r as g,t as _,z as v}from"./light-Dg5iONHF.js";import{a as y,c as b}from"./resolve-slot-Bgp_Mn8k.js";import{i as x,r as S}from"./use-form-item-DDZTyeAQ.js";import{D as C,P as w}from"./index-4mSiwzFS.js";function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:s,warningColor:c,errorColor:l,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:w,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},C),{closeBorderRadius:_,heightTiny:S,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${o(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:o(i,{alpha:.12}),colorBorderedPrimary:o(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:o(i,{alpha:.12}),closeColorPressedPrimary:o(i,{alpha:.18}),borderInfo:`1px solid ${o(a,{alpha:.3})}`,textColorInfo:a,colorInfo:o(a,{alpha:.12}),colorBorderedInfo:o(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:o(a,{alpha:.12}),closeColorPressedInfo:o(a,{alpha:.18}),borderSuccess:`1px solid ${o(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:o(s,{alpha:.12}),colorBorderedSuccess:o(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:o(s,{alpha:.12}),closeColorPressedSuccess:o(s,{alpha:.18}),borderWarning:`1px solid ${o(c,{alpha:.35})}`,textColorWarning:c,colorWarning:o(c,{alpha:.15}),colorBorderedWarning:o(c,{alpha:.12}),closeIconColorWarning:c,closeIconColorHoverWarning:c,closeIconColorPressedWarning:c,closeColorHoverWarning:o(c,{alpha:.12}),closeColorPressedWarning:o(c,{alpha:.18}),borderError:`1px solid ${o(l,{alpha:.23})}`,textColorError:l,colorError:o(l,{alpha:.1}),colorBorderedError:o(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:o(l,{alpha:.12}),closeColorPressedError:o(l,{alpha:.18})})}var E={name:`Tag`,common:_,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=l(`tag`,` --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); white-space: nowrap; position: relative; diff --git a/dist/assets/TeamStoryView-C55aiYGG.css b/dist/assets/TeamStoryView-B6BAG64o.css similarity index 66% rename from dist/assets/TeamStoryView-C55aiYGG.css rename to dist/assets/TeamStoryView-B6BAG64o.css index af600fa..398e774 100644 --- a/dist/assets/TeamStoryView-C55aiYGG.css +++ b/dist/assets/TeamStoryView-B6BAG64o.css @@ -1 +1 @@ -.belt-block[data-v-bec154c5]{background-color:#000;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;height:100%;position:relative}.shadow[data-v-bec154c5]{background-color:#000;width:100%;height:10px;position:absolute}.shadow-top[data-v-bec154c5]{top:0;box-shadow:0 -5px 10px #000}.shadow-bottom[data-v-bec154c5]{bottom:0;box-shadow:0 5px 10px #000}.plate-block[data-v-4833fe7e]{position:relative;box-shadow:0 0 10px #000}.metal-plate-block[data-v-4833fe7e]{background-image:url(/assets/metal-BiL2PH1r.png);background-size:cover;border-radius:4px;height:100%;position:relative}.pin[data-v-4833fe7e]{background-image:url(/assets/pin-CJfldk-j.png);background-size:cover;width:7px;height:7px;position:absolute}.pin-top-left[data-v-4833fe7e]{top:3px;left:3px}.pin-top-right[data-v-4833fe7e]{top:3px;right:3px}.pin-bottom-right[data-v-4833fe7e]{bottom:3px;right:3px}.pin-bottom-left[data-v-4833fe7e]{bottom:3px;left:3px}.form-custom[data-v-4d904ded]{color:#fff;z-index:1000;width:100%;position:fixed;bottom:0;left:0}.input-form[data-v-4d904ded]{z-index:1000;max-width:1920px;height:76px;margin:0 auto;position:relative}.controller-metal[data-v-4d904ded]{width:30px;height:calc(100% + 2px);position:absolute;top:-1px}.controller-metal-left[data-v-4d904ded]{left:-30px}.controller-metal-right[data-v-4d904ded]{right:-30px}.controller[data-v-4d904ded]{display:flex;position:relative}.game-input[data-v-4d904ded]{width:calc(100% - 175px);height:50px;position:relative;top:14px;left:15px}.game-input-run[data-v-4d904ded]{background-color:#0000;background-image:url(/assets/input_center-DZZtEHaZ.png);background-size:cover;border:0;width:100%;height:100%;padding-left:27px;font-family:font_old_typer,serif;font-size:18px}.game-input-run[data-v-4d904ded]::placeholder{color:#333}.game-input-run[data-v-4d904ded]:focus{border:0;outline:none}.game-button-run-shadow[data-v-4d904ded]{width:150px;height:80px;position:absolute;top:-5px;right:10px;box-shadow:-5px 5px 10px #000}.game-button-run[data-v-4d904ded]{cursor:pointer;background-color:#0000;background-image:url(/assets/button-DdziMEJE.png);background-size:cover;border:0;width:155px;height:80px;margin:0;padding:0;font-size:1.5em;position:absolute;top:-5px;right:10px}.new-places-label[data-v-4d904ded],.all-places-label[data-v-4d904ded]{height:48px;position:absolute}.new-places-label[data-v-4d904ded]{width:40px;top:14px;left:85px}.all-places-label[data-v-4d904ded]{width:60px;top:14px;left:15px}.places-text[data-v-4d904ded]{color:#111;text-align:center;background-color:#d1cebd;background-image:url(/assets/paper-CuqvoKhN.jpg);background-size:cover;border:1px solid #9e9982;border-radius:7px;margin:0 1px;font-family:font_old_typer,serif;font-size:1.4em;display:inline-block;box-shadow:0 -2px 5px #000}.places-text-number[data-v-4d904ded]{width:18px}.counters-block[data-v-4d904ded]{margin:20px 10px 20px 5px;position:absolute;top:-40px;left:23px}.counter-block[data-v-4d904ded]{margin:5px;display:inline-block}.icon-for-counter[data-v-4d904ded]{margin:0 4px;position:relative;top:3px}@media (width>=1025px){.center-block-700[data-v-4d904ded]{width:700px;margin:0 auto}}.case-background[data-v-3fe41046]{pointer-events:none;z-index:-1;background-position:50%;background-size:cover;position:fixed;inset:0}.bottom-margin[data-v-3fe41046]{height:calc(100dvh - 76px);margin-top:0}.game-finished[data-v-3fe41046]{height:100dvh}.review-block[data-v-3fe41046]{margin-top:20px}.review-input[data-v-3fe41046]{margin-top:14px}.smooth-scroll[data-v-3fe41046]{scroll-behavior:smooth}.edit-panel[data-v-3fe41046]{background-color:#222;border-radius:10px;margin:30px 0;padding:20px}.qr-main-block[data-v-3fe41046]{justify-content:center;align-items:center;display:flex}.questions-hr[data-v-3fe41046]{border:1px dashed #000;margin:10px 0}.questions-hint[data-v-3fe41046]{color:#000}.question-item[data-v-3fe41046]{margin:15px 0}.question-text[data-v-3fe41046]{margin-bottom:6px;font-weight:500}.questions-actions[data-v-3fe41046]{margin-top:10px}.paper-button[data-v-3fe41046]{color:#bfa07d;cursor:pointer;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;border:0;border-radius:5px;margin-top:10px;padding:5px 12px;font-family:font_old_typer,serif;font-size:16px;font-weight:600;display:inline-block}.paper-button[data-v-3fe41046]:hover{color:#63e2b7}.font[data-v-3fe41046]{font-family:font_old_typer,serif;font-size:18px}.qr-main-block-text[data-v-3fe41046]{text-align:left;margin:10px 0;font-family:font_old_typer,serif;font-size:18px}p.qr-main-block-text[data-v-3fe41046]{font-weight:500}.qr-block[data-v-3fe41046]{background-color:#fff;padding:12px;display:inline-block} +.belt-block[data-v-bec154c5]{background-color:#000;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;height:100%;position:relative}.shadow[data-v-bec154c5]{background-color:#000;width:100%;height:10px;position:absolute}.shadow-top[data-v-bec154c5]{top:0;box-shadow:0 -5px 10px #000}.shadow-bottom[data-v-bec154c5]{bottom:0;box-shadow:0 5px 10px #000}.plate-block[data-v-4833fe7e]{position:relative;box-shadow:0 0 10px #000}.metal-plate-block[data-v-4833fe7e]{background-image:url(/assets/metal-BiL2PH1r.png);background-size:cover;border-radius:4px;height:100%;position:relative}.pin[data-v-4833fe7e]{background-image:url(/assets/pin-CJfldk-j.png);background-size:cover;width:7px;height:7px;position:absolute}.pin-top-left[data-v-4833fe7e]{top:3px;left:3px}.pin-top-right[data-v-4833fe7e]{top:3px;right:3px}.pin-bottom-right[data-v-4833fe7e]{bottom:3px;right:3px}.pin-bottom-left[data-v-4833fe7e]{bottom:3px;left:3px}.form-custom[data-v-4d904ded]{color:#fff;z-index:1000;width:100%;position:fixed;bottom:0;left:0}.input-form[data-v-4d904ded]{z-index:1000;max-width:1920px;height:76px;margin:0 auto;position:relative}.controller-metal[data-v-4d904ded]{width:30px;height:calc(100% + 2px);position:absolute;top:-1px}.controller-metal-left[data-v-4d904ded]{left:-30px}.controller-metal-right[data-v-4d904ded]{right:-30px}.controller[data-v-4d904ded]{display:flex;position:relative}.game-input[data-v-4d904ded]{width:calc(100% - 175px);height:50px;position:relative;top:14px;left:15px}.game-input-run[data-v-4d904ded]{background-color:#0000;background-image:url(/assets/input_center-DZZtEHaZ.png);background-size:cover;border:0;width:100%;height:100%;padding-left:27px;font-family:font_old_typer,serif;font-size:18px}.game-input-run[data-v-4d904ded]::placeholder{color:#333}.game-input-run[data-v-4d904ded]:focus{border:0;outline:none}.game-button-run-shadow[data-v-4d904ded]{width:150px;height:80px;position:absolute;top:-5px;right:10px;box-shadow:-5px 5px 10px #000}.game-button-run[data-v-4d904ded]{cursor:pointer;background-color:#0000;background-image:url(/assets/button-DdziMEJE.png);background-size:cover;border:0;width:155px;height:80px;margin:0;padding:0;font-size:1.5em;position:absolute;top:-5px;right:10px}.new-places-label[data-v-4d904ded],.all-places-label[data-v-4d904ded]{height:48px;position:absolute}.new-places-label[data-v-4d904ded]{width:40px;top:14px;left:85px}.all-places-label[data-v-4d904ded]{width:60px;top:14px;left:15px}.places-text[data-v-4d904ded]{color:#111;text-align:center;background-color:#d1cebd;background-image:url(/assets/paper-CuqvoKhN.jpg);background-size:cover;border:1px solid #9e9982;border-radius:7px;margin:0 1px;font-family:font_old_typer,serif;font-size:1.4em;display:inline-block;box-shadow:0 -2px 5px #000}.places-text-number[data-v-4d904ded]{width:18px}.counters-block[data-v-4d904ded]{margin:20px 10px 20px 5px;position:absolute;top:-40px;left:23px}.counter-block[data-v-4d904ded]{margin:5px;display:inline-block}.icon-for-counter[data-v-4d904ded]{margin:0 4px;position:relative;top:3px}@media (width>=1025px){.center-block-700[data-v-4d904ded]{width:700px;margin:0 auto}}.case-background[data-v-331e1c3b]{pointer-events:none;z-index:-1;background-position:50%;background-size:cover;position:fixed;inset:0}.bottom-margin[data-v-331e1c3b]{height:calc(100dvh - 76px);margin-top:0}.game-finished[data-v-331e1c3b]{height:100dvh}.review-block[data-v-331e1c3b]{margin-top:20px}.review-rating[data-v-331e1c3b]{margin-top:20px;margin-bottom:6px}.review-rate[data-v-331e1c3b]{margin-top:4px;margin-bottom:8px}.review-input[data-v-331e1c3b]{margin-top:14px}.smooth-scroll[data-v-331e1c3b]{scroll-behavior:smooth}.edit-panel[data-v-331e1c3b]{background-color:#222;border-radius:10px;margin:30px 0;padding:20px}.qr-main-block[data-v-331e1c3b]{justify-content:center;align-items:center;display:flex}.questions-hr[data-v-331e1c3b]{border:1px dashed #000;margin:10px 0}.questions-hint[data-v-331e1c3b]{color:#000}.question-item[data-v-331e1c3b]{margin:15px 0}.question-text[data-v-331e1c3b]{margin-bottom:6px;font-weight:500}.questions-actions[data-v-331e1c3b]{margin-top:10px}.paper-button[data-v-331e1c3b]{color:#bfa07d;cursor:pointer;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;border:0;border-radius:5px;margin-top:10px;padding:5px 12px;font-family:font_old_typer,serif;font-size:16px;font-weight:600;display:inline-block}.paper-button[data-v-331e1c3b]:hover{color:#63e2b7}.font[data-v-331e1c3b]{font-family:font_old_typer,serif;font-size:18px}.qr-main-block-text[data-v-331e1c3b]{text-align:left;margin:10px 0;font-family:font_old_typer,serif;font-size:18px}p.qr-main-block-text[data-v-331e1c3b]{font-weight:500}.qr-block[data-v-331e1c3b]{background-color:#fff;padding:12px;display:inline-block} diff --git a/dist/assets/TeamStoryView-BCW_ajVi.js b/dist/assets/TeamStoryView-CjECoLQL.js similarity index 56% rename from dist/assets/TeamStoryView-BCW_ajVi.js rename to dist/assets/TeamStoryView-CjECoLQL.js index 6e2c2a3..261affd 100644 --- a/dist/assets/TeamStoryView-BCW_ajVi.js +++ b/dist/assets/TeamStoryView-CjECoLQL.js @@ -1 +1 @@ -import{A as e,At as t,C as n,E as r,J as i,K as a,R as o,S as s,T as c,X as l,Y as u,_ as d,ct as f,j as p,jt as m,k as h,kt as ee,nt as g,pt as _,rt as v,t as te,u as ne,w as y}from"./auth-DetOXv90.js";import{t as b}from"./Button-SFBLnAwv.js";import{n as x,r as S,t as re}from"./PlaceBlock-vyAeKNdX.js";import{t as C}from"./Input-CM5axX8S.js";import{t as ie}from"./use-message-bV_QZwc3.js";import{t as w}from"./Flex-SLIxZFiS.js";import{t as ae}from"./Rate-B5toYPlv.js";import{t as oe}from"./QrCode-DwxuAXRz.js";import{$ as T,y as E}from"./index-UYw_T9_p.js";import{n as D,r as se,t as O}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as k}from"./HeaderText-DhMm0KRw.js";import{t as ce}from"./useSimplePolling-D6M7J1Ci.js";var A={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},j=p({name:`ContactMailRound`,render:function(e,t){return a(),r(`svg`,A,t[0]||=[n(`path`,{d:`M21 8V7l-3 2l-3-2v1l2.72 1.82a.5.5 0 0 0 .55 0L21 8zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3s-3-1.34-3-3s1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm7.5-6h-7c-.28 0-.5-.22-.5-.5v-5c0-.28.22-.5.5-.5h7c.28 0 .5.22.5.5v5c0 .28-.22.5-.5.5z`,fill:`currentColor`},null,-1)])}}),M={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 512 512`},N=p({name:`Footsteps`,render:function(e,t){return a(),r(`svg`,M,t[0]||=[n(`path`,{d:`M133.83 361.27c-22.61 0-41-8.17-54.79-24.39s-22.84-40.29-28.11-75.31c-7.76-51.61-.06-95.11 21.68-122.48c12.8-16.12 29.6-25.44 48.58-26.94c16.25-1.3 40.54 5.29 64 44c14.69 24.24 25.86 56.44 30.65 88.34c5.79 38.51 1.48 66.86-13.18 86.65c-11.64 15.72-29.54 25.46-53.21 29a106.46 106.46 0 0 1-15.62 1.13z`,fill:`currentColor`},null,-1),n(`path`,{d:`M173 496c-13.21 0-26.6-4.23-38.66-12.36a79.79 79.79 0 0 1-33.52-50.6c-2.85-14.66-1.14-26.31 5.22-35.64c10.33-15.15 28.87-18.56 48.49-22.18c2.07-.38 4.17-.76 6.3-1.17c4.52-.86 9.14-2 13.62-3.11c16.78-4.14 34.14-8.43 48.47 1.75c9.59 6.8 15 18.36 16.62 35.32c1.84 19.57-2.36 39.1-11.83 55c-10.19 17.11-25.47 28.42-43 31.86A61 61 0 0 1 173 496z`,fill:`currentColor`},null,-1),n(`path`,{d:`M378.17 265.27a106.69 106.69 0 0 1-15.6-1.2c-23.66-3.5-41.56-13.25-53.2-29c-14.66-19.79-19-48.13-13.18-86.65c4.79-31.93 15.93-64.1 30.55-88.25c23.34-38.57 47.66-45.26 64-44.08c18.92 1.38 35.69 10.57 48.51 26.6c21.89 27.37 29.65 71 21.86 122.84c-5.27 35-14.2 58.95-28.11 75.31s-32.22 24.43-54.83 24.43z`,fill:`currentColor`},null,-1),n(`path`,{d:`M339 400a61 61 0 0 1-11.68-1.13c-17.56-3.44-32.84-14.75-43-31.86c-9.47-15.9-13.67-35.43-11.83-55c1.6-17 7-28.52 16.62-35.33c14.33-10.17 31.69-5.89 48.47-1.74c4.48 1.1 9.1 2.24 13.62 3.11l6.29 1.17c19.63 3.61 38.17 7 48.5 22.17c6.36 9.33 8.07 21 5.22 35.64a79.78 79.78 0 0 1-33.52 50.61C365.56 395.78 352.17 400 339 400z`,fill:`currentColor`},null,-1)])}}),P={},F={class:`belt-block`};function I(e,t){return a(),r(`div`,null,[t[0]||=n(`div`,{class:`shadow shadow-top`},null,-1),t[1]||=n(`div`,{class:`shadow shadow-bottom`},null,-1),n(`div`,F,[u(e.$slots,`default`,{},void 0,!0)])])}var L=O(P,[[`render`,I],[`__scopeId`,`data-v-bec154c5`]]),R={},z={class:`plate-block`},B={class:`metal-plate-block`};function V(e,t){return a(),r(`div`,z,[n(`div`,B,[u(e.$slots,`default`,{},void 0,!0)]),t[0]||=n(`div`,{class:`pin pin-top-left`},null,-1),t[1]||=n(`div`,{class:`pin pin-top-right`},null,-1),t[2]||=n(`div`,{class:`pin pin-bottom-right`},null,-1),t[3]||=n(`div`,{class:`pin pin-bottom-left`},null,-1)])}var H=O(R,[[`render`,V],[`__scopeId`,`data-v-4833fe7e`]]),U={class:`form-custom`},W={class:`center-block-700`},G={class:`controller`},K={class:`counters-block`},q={class:`counter-block`},J={class:`places-text`},Y={class:`counter-block`},X={class:`places-text`},Z={class:`game-input`},Q=[`placeholder`,`disabled`],le=[`disabled`],$=O(p({__name:`GameInputForm`,props:{addAction:{type:Function,required:!0},allPlacesCount:{type:Number,required:!0},newPlacesCount:{type:Number,required:!0},gameStatus:{type:String,required:!0}},setup(t){let o=f(``),s=t;async function l(){await s.addAction(o.value),o.value=``}function u(e){e%=100;let t=Math.floor(e/10)%10,n=e%10,r=`–`,i=`–`;return t>0&&(r=String(t)),(n>0||t>0)&&(i=String(n)),[r,i]}return(f,p)=>(a(),r(`div`,U,[e(L,{class:`input-form`},{default:g(()=>[e(H,{class:`controller-metal controller-metal-left`}),e(H,{class:`controller-metal controller-metal-right`}),n(`div`,W,[n(`div`,G,[n(`div`,K,[n(`div`,q,[n(`div`,J,[e(_(D),{class:`icon-for-counter`},{default:g(()=>[e(_(N))]),_:1})]),(a(!0),r(d,null,i(u(t.allPlacesCount),(e,t)=>(a(),r(`div`,{key:t,class:`places-text places-text-number`},m(e),1))),128))]),n(`div`,Y,[n(`div`,X,[e(_(D),{class:`icon-for-counter`},{default:g(()=>[e(_(j))]),_:1})]),(a(!0),r(d,null,i(u(t.newPlacesCount),(e,t)=>(a(),r(`div`,{key:t,class:`places-text places-text-number`},m(e),1))),128))])]),n(`div`,Z,[v(n(`input`,{id:`run`,class:`game-input-run`,"onUpdate:modelValue":p[0]||=e=>o.value=e,type:`text`,placeholder:s.gameStatus==`run`?`Место назначения`:`Ходы запрещены`,disabled:s.gameStatus!=`run`},null,8,Q),[[T,o.value]])]),p[4]||=n(`div`,{class:`game-button-run-shadow`},null,-1),n(`button`,{class:`game-button-run`,type:`submit`,disabled:o.value.length==0,onClick:l},[s.gameStatus==`run`?(a(),y(k,{key:0},{default:g(()=>[...p[1]||=[h(`Поехали`,-1)]]),_:1})):c(``,!0),s.gameStatus==`pause`||s.gameStatus==`draft`?(a(),y(k,{key:1},{default:g(()=>[...p[2]||=[h(`Ждём`,-1)]]),_:1})):c(``,!0),s.gameStatus==`finish`?(a(),y(k,{key:2},{default:g(()=>[...p[3]||=[h(`Всё`,-1)]]),_:1})):c(``,!0)],8,le)])])]),_:1})]))}}),[[`__scopeId`,`data-v-4d904ded`]]),ue={key:0,class:`width700`},de=[`disabled`],fe={key:1,class:`width700`},pe={class:`question-text`},me={class:`qr-block`},he={key:3,class:`edit-panel`},ge=O(p({__name:`TeamStoryPage`,setup(u){let p=te(),v=se(),T=ie(),D=ne(),O=D.params.id,k=D.query.password,A=f(0),j=f([]),M=f(),N=f({introduction:void 0,places:[],questions:[]}),P=f({id:void 0,name:void 0,description:void 0,startAt:void 0,status:void 0,format:void 0,scenario:void 0,teams:void 0}),F=f(``),I=`game-review-${O}`,L=f(localStorage.getItem(I)===`1`),R=f(0),z=f(``),B=f(!1),V=window.location.href,H=()=>{let e=M.value;return e?e.scrollHeight-e.scrollTop-e.clientHeight<1:!1};async function U(){let e=N.value,t=await v.GetTeamStory({id:Number(O),password:k});if(t.error!=``){T.error(t.error);return}P.value=t.game;let n=H();n&&(A.value=0);let r=N.value.places.length;N.value={background:t.story.background,introduction:t.story.introduction,places:t.story.places?.map((t,n)=>(console.log(e?.places[n]?.mode),{place:t,mode:e?.places[n]?.mode||`show`}))||[],questions:t.story.questions||[]},j.value=t.actions||[];let i=N.value.places.length;if(i>r&&r!=0&&(A.value+=i-r),await o(),n&&r!=0){let e=M.value;if(!e)return!1;e.scrollTop=e.scrollHeight}}U(),K();async function W(e){let t=await v.AddTeamAction({id:Number(O),password:k,code:e});if(t.error!=``){T.error(t.error);return}await U(),F.value=``,await o(),A.value=0}let G=f({});async function K(){let e=await v.GetTeamAnswers({id:Number(O),password:k});if(e.error!=``){T.error(e.error);return}let t={};for(let n of e.answers||[])t[n.questionCode||``]=n.answer||``;G.value=t}async function q(){let e=await v.SubmitTeamAnswers({id:Number(O),password:k,answers:(N.value.questions||[]).map(e=>({questionCode:e.code,answer:G.value[e.code||``]||``}))});if(e.error!=``){T.error(e.error);return}T.success(`Ответы сохранены`),await K()}let J=s(()=>P.value?.format!==`offline`&&(P.value?.status==`run`||P.value?.status==`pause`)),Y=s(()=>P.value?.format!==`offline`&&(N.value.questions?.length||0)>0),X={Input:{border:`1px dashed black`,borderDisabled:`1px dashed black`,borderFocus:`1px solid black`,borderHover:`1px dashed black`,boxShadowFocus:`0 0 0 2px rgb(99 226 183 / 30%)`,caretColor:`#63e2b7`,color:`transparent`,colorDisabled:`transparent`,colorFocus:`transparent`,fontSizeMedium:`18px`,placeholderColor:`black`,placeholderColorDisabled:`black`,textColor:`black`,textColorDisabled:`black`},Rate:{itemColor:`black`,itemColorHover:`black`,itemColorActive:`black`}};async function Z(){if(!R.value||z.value.trim()===``){T.error(`Поставьте оценку и напишите отзыв`);return}B.value=!0;let e=await v.CreateGameReview({gameId:Number(P.value?.id),teamId:Number(O),password:k,rating:R.value,text:z.value.trim()});if(B.value=!1,e.error!=``){T.error(e.error);return}L.value=!0,localStorage.setItem(I,`1`),T.success(`Спасибо за отзыв`)}async function Q(){let e=await v.DeleteLastTeamAction({id:Number(O)});if(e.error!=``){T.error(e.error);return}await U(),F.value=``}return ce(()=>{U()},2e3),(o,s)=>{let u=l(`n-space`);return a(),r(d,null,[N.value.background?(a(),r(`div`,{key:0,class:`case-background`,style:t({backgroundImage:`url(${JSON.stringify(N.value.background)})`}),"aria-hidden":`true`},null,4)):c(``,!0),n(`div`,{class:ee([`center-block-custom bottom-margin smooth-scroll`,{"game-finished":P.value?.status===`finish`}]),ref_key:`scrollContainer`,ref:M},[P.value?.status===`finish`?(a(),r(`div`,ue,[e(S,{role:`status`},{default:g(()=>[...s[3]||=[n(`div`,{class:`font`},`Игра завершена. Спасибо за участие!`,-1)]]),_:1}),L.value?c(``,!0):(a(),y(S,{key:0,class:`review-block`},{default:g(()=>[s[5]||=n(`div`,{class:`font`},`Оцените игру`,-1),s[6]||=n(`hr`,{class:`questions-hr`},null,-1),e(_(E),{"theme-overrides":X},{default:g(()=>[s[4]||=n(`div`,{class:`review-rating font`},`Оценка`,-1),e(_(ae),{value:R.value,"onUpdate:value":s[0]||=e=>R.value=e,count:5},null,8,[`value`]),e(_(C),{value:z.value,"onUpdate:value":s[1]||=e=>z.value=e,class:`review-input`,type:`textarea`,autosize:{minRows:4,maxRows:8},placeholder:`Расскажите, как прошла игра`},null,8,[`value`]),e(_(w),{justify:`end`,class:`questions-actions`},{default:g(()=>[n(`button`,{type:`button`,class:`paper-button`,disabled:B.value,onClick:Z},` Отправить отзыв `,8,de)]),_:1})]),_:1})]),_:1}))])):(a(),r(`div`,fe,[e($,{addAction:W,allPlacesCount:N.value.places.length,newPlacesCount:A.value,gameStatus:P.value?.status||``},null,8,[`allPlacesCount`,`newPlacesCount`,`gameStatus`]),P.value?.format!==`offline`&&P.value?.status&&P.value.status!=`draft`&&N.value.introduction&&(N.value.introduction.text||N.value.introduction.audio)?(a(),y(x,{key:0,introduction:N.value.introduction,mode:`show`},null,8,[`introduction`])):c(``,!0),Y.value&&P.value?.status&&P.value.status!=`draft`?(a(),y(S,{key:1,class:`questions-block`},{default:g(()=>[s[7]||=n(`div`,{class:`font`},`Вопросы дела`,-1),s[8]||=n(`hr`,{class:`questions-hr`},null,-1),s[9]||=n(`p`,{class:`questions-hint font`},` Ответьте на вопросы дела. Ответы можно менять, пока игра идёт. `,-1),e(_(E),{"theme-overrides":X},{default:g(()=>[(a(!0),r(d,null,i(N.value.questions,t=>(a(),r(`div`,{key:t.code,class:`question-item font`},[n(`div`,pe,m(t.code)+`: `+m(t.text),1),e(_(C),{value:G.value[t.code||``],"onUpdate:value":e=>G.value[t.code||``]=e,type:`textarea`,autosize:{minRows:2,maxRows:6},disabled:!J.value,placeholder:`Ваш ответ...`},null,8,[`value`,`onUpdate:value`,`disabled`])]))),128)),J.value?(a(),y(_(w),{key:0,justify:`end`,class:`questions-actions`},{default:g(()=>[n(`button`,{type:`button`,class:`paper-button`,onClick:s[2]||=e=>q()},` Сохранить ответы `)]),_:1})):c(``,!0)]),_:1})]),_:1})):c(``,!0),(a(!0),r(d,null,i(N.value.places,(e,t)=>(a(),y(re,{place:e.place,mode:e.mode,"onUpdate:mode":t=>e.mode=t,key:`${P.value?.format}:${e.place.code}`,mcp:_(p).hasRole(`author`)&&j.value[t]?.mcp,addAction:W},null,8,[`place`,`mode`,`onUpdate:mode`,`mcp`]))),128)),N.value.places.length==0&&P.value?.status==`draft`?(a(),y(S,{key:2,class:`qr-main-block`},{default:g(()=>[e(u,{vertical:``},{default:g(()=>[s[10]||=n(`h2`,{class:`qr-main-block-text`},`Это код этого дела`,-1),s[11]||=n(`p`,{class:`qr-main-block-text`},`Поделись с командой`,-1),n(`div`,me,[e(_(oe),{value:_(V),size:300,padding:0},null,8,[`value`])]),s[12]||=n(`p`,{class:`qr-main-block-text`},`Игра скоро начнется`,-1)]),_:1})]),_:1})):c(``,!0),_(p).hasRole(`author`)&&N.value.places.length>0?(a(),r(`div`,he,[e(_(w),{justify:`end`},{default:g(()=>[e(_(b),{onClick:Q},{default:g(()=>[...s[13]||=[h(`Удалить последний ход`,-1)]]),_:1})]),_:1})])):c(``,!0)]))],2)],64)}}}),[[`__scopeId`,`data-v-3fe41046`]]),_e=p({__name:`TeamStoryView`,setup(e){return(e,t)=>(a(),y(ge))}});export{_e as default}; \ No newline at end of file +import{A as e,At as t,C as n,E as r,J as i,K as a,R as o,S as s,T as c,X as l,Y as u,_ as d,ct as f,j as p,jt as m,k as h,kt as ee,nt as g,pt as _,rt as v,t as te,u as ne,w as y}from"./auth-CzuN8bsR.js";import{t as b}from"./Button-_KVJEFbE.js";import{n as x,r as S,t as re}from"./PlaceBlock-Bh8s3Jpl.js";import{t as C}from"./Input-jiXpa-nM.js";import{t as ie}from"./use-message-R8JEzJ8f.js";import{t as w}from"./Flex-ISd7TnC9.js";import{t as ae}from"./Rate-BuNWBBdn.js";import{t as oe}from"./QrCode-CWZd63W8.js";import{$ as T,y as E}from"./index-4mSiwzFS.js";import{n as D,r as se,t as O}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as k}from"./HeaderText--_Iy26DF.js";import{t as ce}from"./useSimplePolling-CxHCqzxV.js";var A={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},j=p({name:`ContactMailRound`,render:function(e,t){return a(),r(`svg`,A,t[0]||=[n(`path`,{d:`M21 8V7l-3 2l-3-2v1l2.72 1.82a.5.5 0 0 0 .55 0L21 8zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3s-3-1.34-3-3s1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm7.5-6h-7c-.28 0-.5-.22-.5-.5v-5c0-.28.22-.5.5-.5h7c.28 0 .5.22.5.5v5c0 .28-.22.5-.5.5z`,fill:`currentColor`},null,-1)])}}),M={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 512 512`},N=p({name:`Footsteps`,render:function(e,t){return a(),r(`svg`,M,t[0]||=[n(`path`,{d:`M133.83 361.27c-22.61 0-41-8.17-54.79-24.39s-22.84-40.29-28.11-75.31c-7.76-51.61-.06-95.11 21.68-122.48c12.8-16.12 29.6-25.44 48.58-26.94c16.25-1.3 40.54 5.29 64 44c14.69 24.24 25.86 56.44 30.65 88.34c5.79 38.51 1.48 66.86-13.18 86.65c-11.64 15.72-29.54 25.46-53.21 29a106.46 106.46 0 0 1-15.62 1.13z`,fill:`currentColor`},null,-1),n(`path`,{d:`M173 496c-13.21 0-26.6-4.23-38.66-12.36a79.79 79.79 0 0 1-33.52-50.6c-2.85-14.66-1.14-26.31 5.22-35.64c10.33-15.15 28.87-18.56 48.49-22.18c2.07-.38 4.17-.76 6.3-1.17c4.52-.86 9.14-2 13.62-3.11c16.78-4.14 34.14-8.43 48.47 1.75c9.59 6.8 15 18.36 16.62 35.32c1.84 19.57-2.36 39.1-11.83 55c-10.19 17.11-25.47 28.42-43 31.86A61 61 0 0 1 173 496z`,fill:`currentColor`},null,-1),n(`path`,{d:`M378.17 265.27a106.69 106.69 0 0 1-15.6-1.2c-23.66-3.5-41.56-13.25-53.2-29c-14.66-19.79-19-48.13-13.18-86.65c4.79-31.93 15.93-64.1 30.55-88.25c23.34-38.57 47.66-45.26 64-44.08c18.92 1.38 35.69 10.57 48.51 26.6c21.89 27.37 29.65 71 21.86 122.84c-5.27 35-14.2 58.95-28.11 75.31s-32.22 24.43-54.83 24.43z`,fill:`currentColor`},null,-1),n(`path`,{d:`M339 400a61 61 0 0 1-11.68-1.13c-17.56-3.44-32.84-14.75-43-31.86c-9.47-15.9-13.67-35.43-11.83-55c1.6-17 7-28.52 16.62-35.33c14.33-10.17 31.69-5.89 48.47-1.74c4.48 1.1 9.1 2.24 13.62 3.11l6.29 1.17c19.63 3.61 38.17 7 48.5 22.17c6.36 9.33 8.07 21 5.22 35.64a79.78 79.78 0 0 1-33.52 50.61C365.56 395.78 352.17 400 339 400z`,fill:`currentColor`},null,-1)])}}),P={},F={class:`belt-block`};function I(e,t){return a(),r(`div`,null,[t[0]||=n(`div`,{class:`shadow shadow-top`},null,-1),t[1]||=n(`div`,{class:`shadow shadow-bottom`},null,-1),n(`div`,F,[u(e.$slots,`default`,{},void 0,!0)])])}var L=O(P,[[`render`,I],[`__scopeId`,`data-v-bec154c5`]]),R={},z={class:`plate-block`},B={class:`metal-plate-block`};function V(e,t){return a(),r(`div`,z,[n(`div`,B,[u(e.$slots,`default`,{},void 0,!0)]),t[0]||=n(`div`,{class:`pin pin-top-left`},null,-1),t[1]||=n(`div`,{class:`pin pin-top-right`},null,-1),t[2]||=n(`div`,{class:`pin pin-bottom-right`},null,-1),t[3]||=n(`div`,{class:`pin pin-bottom-left`},null,-1)])}var H=O(R,[[`render`,V],[`__scopeId`,`data-v-4833fe7e`]]),U={class:`form-custom`},W={class:`center-block-700`},G={class:`controller`},K={class:`counters-block`},q={class:`counter-block`},J={class:`places-text`},Y={class:`counter-block`},X={class:`places-text`},Z={class:`game-input`},Q=[`placeholder`,`disabled`],le=[`disabled`],$=O(p({__name:`GameInputForm`,props:{addAction:{type:Function,required:!0},allPlacesCount:{type:Number,required:!0},newPlacesCount:{type:Number,required:!0},gameStatus:{type:String,required:!0}},setup(t){let o=f(``),s=t;async function l(){await s.addAction(o.value),o.value=``}function u(e){e%=100;let t=Math.floor(e/10)%10,n=e%10,r=`–`,i=`–`;return t>0&&(r=String(t)),(n>0||t>0)&&(i=String(n)),[r,i]}return(f,p)=>(a(),r(`div`,U,[e(L,{class:`input-form`},{default:g(()=>[e(H,{class:`controller-metal controller-metal-left`}),e(H,{class:`controller-metal controller-metal-right`}),n(`div`,W,[n(`div`,G,[n(`div`,K,[n(`div`,q,[n(`div`,J,[e(_(D),{class:`icon-for-counter`},{default:g(()=>[e(_(N))]),_:1})]),(a(!0),r(d,null,i(u(t.allPlacesCount),(e,t)=>(a(),r(`div`,{key:t,class:`places-text places-text-number`},m(e),1))),128))]),n(`div`,Y,[n(`div`,X,[e(_(D),{class:`icon-for-counter`},{default:g(()=>[e(_(j))]),_:1})]),(a(!0),r(d,null,i(u(t.newPlacesCount),(e,t)=>(a(),r(`div`,{key:t,class:`places-text places-text-number`},m(e),1))),128))])]),n(`div`,Z,[v(n(`input`,{id:`run`,class:`game-input-run`,"onUpdate:modelValue":p[0]||=e=>o.value=e,type:`text`,placeholder:s.gameStatus==`run`?`Место назначения`:`Ходы запрещены`,disabled:s.gameStatus!=`run`},null,8,Q),[[T,o.value]])]),p[4]||=n(`div`,{class:`game-button-run-shadow`},null,-1),n(`button`,{class:`game-button-run`,type:`submit`,disabled:o.value.length==0,onClick:l},[s.gameStatus==`run`?(a(),y(k,{key:0},{default:g(()=>[...p[1]||=[h(`Поехали`,-1)]]),_:1})):c(``,!0),s.gameStatus==`pause`||s.gameStatus==`draft`?(a(),y(k,{key:1},{default:g(()=>[...p[2]||=[h(`Ждём`,-1)]]),_:1})):c(``,!0),s.gameStatus==`finish`?(a(),y(k,{key:2},{default:g(()=>[...p[3]||=[h(`Всё`,-1)]]),_:1})):c(``,!0)],8,le)])])]),_:1})]))}}),[[`__scopeId`,`data-v-4d904ded`]]),ue={key:0,class:`width700`},de=[`disabled`],fe={key:1,class:`width700`},pe={class:`question-text`},me={class:`qr-block`},he={key:3,class:`edit-panel`},ge=O(p({__name:`TeamStoryPage`,setup(u){let p=te(),v=se(),T=ie(),D=ne(),O=D.params.id,k=D.query.password,A=f(0),j=f([]),M=f(),N=f({introduction:void 0,places:[],questions:[]}),P=f({id:void 0,name:void 0,description:void 0,startAt:void 0,status:void 0,format:void 0,scenario:void 0,teams:void 0}),F=f(``),I=`game-review-${O}`,L=f(localStorage.getItem(I)===`1`),R=f(0),z=f(``),B=f(!1),V=window.location.href,H=()=>{let e=M.value;return e?e.scrollHeight-e.scrollTop-e.clientHeight<1:!1};async function U(){let e=N.value,t=await v.GetTeamStory({id:Number(O),password:k});if(t.error!=``){T.error(t.error);return}P.value=t.game;let n=H();n&&(A.value=0);let r=N.value.places.length;N.value={background:t.story.background,introduction:t.story.introduction,places:t.story.places?.map((t,n)=>(console.log(e?.places[n]?.mode),{place:t,mode:e?.places[n]?.mode||`show`}))||[],questions:t.story.questions||[]},j.value=t.actions||[];let i=N.value.places.length;if(i>r&&r!=0&&(A.value+=i-r),await o(),n&&r!=0){let e=M.value;if(!e)return!1;e.scrollTop=e.scrollHeight}}U(),K();async function W(e){let t=await v.AddTeamAction({id:Number(O),password:k,code:e});if(t.error!=``){T.error(t.error);return}await U(),F.value=``,await o(),A.value=0}let G=f({});async function K(){let e=await v.GetTeamAnswers({id:Number(O),password:k});if(e.error!=``){T.error(e.error);return}let t={};for(let n of e.answers||[])t[n.questionCode||``]=n.answer||``;G.value=t}async function q(){let e=await v.SubmitTeamAnswers({id:Number(O),password:k,answers:(N.value.questions||[]).map(e=>({questionCode:e.code,answer:G.value[e.code||``]||``}))});if(e.error!=``){T.error(e.error);return}T.success(`Ответы сохранены`),await K()}let J=s(()=>P.value?.format!==`offline`&&(P.value?.status==`run`||P.value?.status==`pause`)),Y=s(()=>P.value?.format!==`offline`&&(N.value.questions?.length||0)>0),X={Input:{border:`1px dashed black`,borderDisabled:`1px dashed black`,borderFocus:`1px solid black`,borderHover:`1px dashed black`,boxShadowFocus:`0 0 0 1px black`,caretColor:`black`,color:`transparent`,colorDisabled:`transparent`,colorFocus:`transparent`,fontSizeMedium:`18px`,placeholderColor:`black`,placeholderColorDisabled:`black`,textColor:`black`,textColorDisabled:`black`},Rate:{itemColor:`black`,itemColorHover:`#b8860b`,itemColorActive:`#b8860b`}};async function Z(){if(!R.value||z.value.trim()===``){T.error(`Поставьте оценку и напишите отзыв`);return}B.value=!0;let e=await v.CreateGameReview({gameId:Number(P.value?.id),teamId:Number(O),password:k,rating:R.value,text:z.value.trim()});if(B.value=!1,e.error!=``){T.error(e.error);return}L.value=!0,localStorage.setItem(I,`1`),T.success(`Спасибо за отзыв`)}async function Q(){let e=await v.DeleteLastTeamAction({id:Number(O)});if(e.error!=``){T.error(e.error);return}await U(),F.value=``}return ce(()=>{U()},2e3),(o,s)=>{let u=l(`n-space`);return a(),r(d,null,[N.value.background?(a(),r(`div`,{key:0,class:`case-background`,style:t({backgroundImage:`url(${JSON.stringify(N.value.background)})`}),"aria-hidden":`true`},null,4)):c(``,!0),n(`div`,{class:ee([`center-block-custom bottom-margin smooth-scroll`,{"game-finished":P.value?.status===`finish`}]),ref_key:`scrollContainer`,ref:M},[P.value?.status===`finish`?(a(),r(`div`,ue,[e(S,{role:`status`},{default:g(()=>[...s[3]||=[n(`div`,{class:`font`},`Игра завершена. Спасибо за участие!`,-1)]]),_:1}),L.value?c(``,!0):(a(),y(S,{key:0,class:`review-block`},{default:g(()=>[s[5]||=n(`div`,{class:`font`},`Оцените игру`,-1),s[6]||=n(`hr`,{class:`questions-hr`},null,-1),e(_(E),{"theme-overrides":X},{default:g(()=>[s[4]||=n(`div`,{class:`review-rating font`},`Оценка`,-1),e(_(ae),{value:R.value,"onUpdate:value":s[0]||=e=>R.value=e,count:5,class:`review-rate`},null,8,[`value`]),e(_(C),{value:z.value,"onUpdate:value":s[1]||=e=>z.value=e,class:`review-input`,type:`textarea`,autosize:{minRows:4,maxRows:8},placeholder:`Расскажите, как прошла игра`},null,8,[`value`]),e(_(w),{justify:`end`,class:`questions-actions`},{default:g(()=>[n(`button`,{type:`button`,class:`paper-button`,disabled:B.value,onClick:Z},` Отправить отзыв `,8,de)]),_:1})]),_:1})]),_:1}))])):(a(),r(`div`,fe,[e($,{addAction:W,allPlacesCount:N.value.places.length,newPlacesCount:A.value,gameStatus:P.value?.status||``},null,8,[`allPlacesCount`,`newPlacesCount`,`gameStatus`]),P.value?.format!==`offline`&&P.value?.status&&P.value.status!=`draft`&&N.value.introduction&&(N.value.introduction.text||N.value.introduction.audio)?(a(),y(x,{key:0,introduction:N.value.introduction,mode:`show`},null,8,[`introduction`])):c(``,!0),Y.value&&P.value?.status&&P.value.status!=`draft`?(a(),y(S,{key:1,class:`questions-block`},{default:g(()=>[s[7]||=n(`div`,{class:`font`},`Вопросы дела`,-1),s[8]||=n(`hr`,{class:`questions-hr`},null,-1),s[9]||=n(`p`,{class:`questions-hint font`},` Ответьте на вопросы дела. Ответы можно менять, пока игра идёт. `,-1),e(_(E),{"theme-overrides":X},{default:g(()=>[(a(!0),r(d,null,i(N.value.questions,t=>(a(),r(`div`,{key:t.code,class:`question-item font`},[n(`div`,pe,m(t.code)+`: `+m(t.text),1),e(_(C),{value:G.value[t.code||``],"onUpdate:value":e=>G.value[t.code||``]=e,type:`textarea`,autosize:{minRows:2,maxRows:6},disabled:!J.value,placeholder:`Ваш ответ...`},null,8,[`value`,`onUpdate:value`,`disabled`])]))),128)),J.value?(a(),y(_(w),{key:0,justify:`end`,class:`questions-actions`},{default:g(()=>[n(`button`,{type:`button`,class:`paper-button`,onClick:s[2]||=e=>q()},` Сохранить ответы `)]),_:1})):c(``,!0)]),_:1})]),_:1})):c(``,!0),(a(!0),r(d,null,i(N.value.places,(e,t)=>(a(),y(re,{place:e.place,mode:e.mode,"onUpdate:mode":t=>e.mode=t,key:`${P.value?.format}:${e.place.code}`,mcp:_(p).hasRole(`author`)&&j.value[t]?.mcp,addAction:W},null,8,[`place`,`mode`,`onUpdate:mode`,`mcp`]))),128)),N.value.places.length==0&&P.value?.status==`draft`?(a(),y(S,{key:2,class:`qr-main-block`},{default:g(()=>[e(u,{vertical:``},{default:g(()=>[s[10]||=n(`h2`,{class:`qr-main-block-text`},`Это код этого дела`,-1),s[11]||=n(`p`,{class:`qr-main-block-text`},`Поделись с командой`,-1),n(`div`,me,[e(_(oe),{value:_(V),size:300,padding:0},null,8,[`value`])]),s[12]||=n(`p`,{class:`qr-main-block-text`},`Игра скоро начнется`,-1)]),_:1})]),_:1})):c(``,!0),_(p).hasRole(`author`)&&N.value.places.length>0?(a(),r(`div`,he,[e(_(w),{justify:`end`},{default:g(()=>[e(_(b),{onClick:Q},{default:g(()=>[...s[13]||=[h(`Удалить последний ход`,-1)]]),_:1})]),_:1})])):c(``,!0)]))],2)],64)}}}),[[`__scopeId`,`data-v-331e1c3b`]]),_e=p({__name:`TeamStoryView`,setup(e){return(e,t)=>(a(),y(ge))}});export{_e as default}; \ No newline at end of file diff --git a/dist/assets/Upload-MQncuSBB.js b/dist/assets/Upload-i91liVQs.js similarity index 98% rename from dist/assets/Upload-MQncuSBB.js rename to dist/assets/Upload-i91liVQs.js index 43a68e4..00754d2 100644 --- a/dist/assets/Upload-MQncuSBB.js +++ b/dist/assets/Upload-i91liVQs.js @@ -1,4 +1,4 @@ -import{At as e,F as t,P as n,R as r,S as i,U as a,V as o,_ as s,ct as c,dt as l,et as u,f as d,ft as f,j as p,q as m,rt as h,tt as g,v as _}from"./auth-DetOXv90.js";import{F as v,G as y,I as b,J as x,K as S,L as C,M as w,N as T,X as E,Y as D,Z as O,n as k,o as ee,r as A,t as j,z as M}from"./light-BN35I8ot.js";import{u as te}from"./Follower-BqBATTTc.js";import{d as N,u as P}from"./Card-BFXpokQN.js";import{r as F}from"./resolve-slot-DXnJRg0o.js";import{c as ne,i as re,l as ie,n as ae}from"./Suffix-CutOgybq.js";import{t as I}from"./use-merged-state-Dw19ICqg.js";import{o as oe,t as L}from"./Button-SFBLnAwv.js";import{n as se,t as ce}from"./Popover-MvWXFA-P.js";import{n as R,r as z}from"./use-form-item-CT1L1ziV.js";import{o as B}from"./get-Cv_ptumj.js";import{t as V}from"./Add-CeJ0I8t8.js";import{n as le}from"./Input-CM5axX8S.js";import{t as H}from"./fade-in.cssr-mvZ1VOJ5.js";import{B as U,F as ue,H as W,I as de,J as fe,L as pe,N as G,R as K,U as q,V as me,X as J,Y as he,Z as Y,_ as ge,et as _e,n as ve,s as ye,w as X,z as be}from"./index-UYw_T9_p.js";function xe(e,t){if(!e)return;let n=document.createElement(`a`);n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Se(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++in(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},n(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},n(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},n(`path`,{d:`M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z`}))))),yt=U(`cancel`,()=>n(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},n(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},n(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},n(`path`,{d:`M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z`}))))),bt=U(`download`,()=>n(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},n(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},n(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},n(`path`,{d:`M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z`}))))),xt=p({name:`ResizeSmall`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},n(`g`,{fill:`none`},n(`path`,{d:`M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z`,fill:`currentColor`})))}}),St=U(`retry`,()=>n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M320,146s24.36-12-64-12A160,160,0,1,0,416,294`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;`}),n(`polyline`,{points:`256 58 336 138 256 218`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Ct=U(`rotateClockwise`,()=>n(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z`,fill:`currentColor`}),n(`path`,{d:`M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z`,fill:`currentColor`}))),wt=U(`rotateClockwise`,()=>n(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z`,fill:`currentColor`}),n(`path`,{d:`M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z`,fill:`currentColor`}))),Tt=U(`trash`,()=>n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),n(`rect`,{x:`32`,y:`64`,width:`448`,height:`80`,rx:`16`,ry:`16`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),n(`line`,{x1:`312`,y1:`240`,x2:`200`,y2:`352`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),n(`line`,{x1:`312`,y1:`352`,x2:`200`,y2:`240`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Et=U(`zoomIn`,()=>n(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z`,fill:`currentColor`}),n(`path`,{d:`M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z`,fill:`currentColor`}))),Dt=U(`zoomOut`,()=>n(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z`,fill:`currentColor`}),n(`path`,{d:`M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z`,fill:`currentColor`}))),Ot=oe&&`loading`in document.createElement(`img`);function kt(e={}){let{root:t=null}=e;return{hash:`${e.rootMargin||`0px 0px 0px 0px`}-${Array.isArray(e.threshold)?e.threshold.join(`,`):e.threshold??`0`}`,options:Object.assign(Object.assign({},e),{root:(typeof t==`string`?document.querySelector(t):t)||document.documentElement})}}var At=new WeakMap,jt=new WeakMap,Mt=new WeakMap,Nt=(e,t,n)=>{if(!e)return()=>{};let r=kt(t),{root:i}=r.options,a,o=At.get(i);o?a=o:(a=new Map,At.set(i,a));let s,c;a.has(r.hash)?(c=a.get(r.hash),c[1].has(e)||(s=c[0],c[1].add(e),s.observe(e))):(s=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=jt.get(e.target),n=Mt.get(e.target);t&&t(),n&&(n.value=!0)}})},r.options),s.observe(e),c=[s,new Set([e])],a.set(r.hash,c));let l=!1,u=()=>{l||(jt.delete(e),Mt.delete(e),l=!0,c[1].has(e)&&(c[0].unobserve(e),c[1].delete(e)),c[1].size<=0&&a.delete(r.hash),a.size||At.delete(i))};return jt.set(e,u),Mt.set(e,n),u},Pt=p({name:`Tooltip`,props:Object.assign(Object.assign({},se),A.props),slots:Object,__popover__:!0,setup(e){let{mergedClsPrefixRef:t}=T(e),n=A(`Tooltip`,`-tooltip`,void 0,ge,e,t),r=c(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(e){r.value.setShow(e)}}),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:i(()=>n.value.self)})},render(){let{mergedTheme:e,internalExtraClass:t}=this;return n(ce,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat(`tooltip`),ref:`popoverRef`}),this.$slots)}});function Ft(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var It=k({name:`Image`,common:j,peers:{Tooltip:ge},self:Ft});function Lt(){return n(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z`,fill:`currentColor`}))}function Rt(){return n(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z`,fill:`currentColor`}))}function zt(){return n(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z`,fill:`currentColor`}))}var Bt=Object.assign(Object.assign({},A.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),Vt=M(`n-image`),Ht=y([y(`body >`,[S(`image-container`,`position: fixed;`)]),S(`image-preview-container`,` +import{At as e,F as t,P as n,R as r,S as i,U as a,V as o,_ as s,ct as c,dt as l,et as u,f as d,ft as f,j as p,q as m,rt as h,tt as g,v as _}from"./auth-CzuN8bsR.js";import{F as v,G as y,I as b,J as x,K as S,L as C,M as w,N as T,X as E,Y as D,Z as O,n as k,o as ee,r as A,t as j,z as M}from"./light-Dg5iONHF.js";import{u as te}from"./Follower-BeUAmPJ4.js";import{d as N,u as P}from"./Card-jY6IqKWx.js";import{r as F}from"./resolve-slot-Bgp_Mn8k.js";import{c as ne,i as re,l as ie,n as ae}from"./Suffix-PHRsdJdH.js";import{t as I}from"./use-merged-state-D8rNARXC.js";import{o as oe,t as L}from"./Button-_KVJEFbE.js";import{n as se,t as ce}from"./Popover-DZnHj7OS.js";import{n as R,r as z}from"./use-form-item-DDZTyeAQ.js";import{o as B}from"./get-BOxoHLMw.js";import{t as V}from"./Add-Dpa8jwVl.js";import{n as le}from"./Input-jiXpa-nM.js";import{t as H}from"./fade-in.cssr-CoPRsCos.js";import{B as U,F as ue,H as W,I as de,J as fe,L as pe,N as G,R as K,U as q,V as me,X as J,Y as he,Z as Y,_ as ge,et as _e,n as ve,s as ye,w as X,z as be}from"./index-4mSiwzFS.js";function xe(e,t){if(!e)return;let n=document.createElement(`a`);n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Se(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++in(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},n(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},n(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},n(`path`,{d:`M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z`}))))),yt=U(`cancel`,()=>n(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},n(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},n(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},n(`path`,{d:`M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z`}))))),bt=U(`download`,()=>n(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},n(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},n(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},n(`path`,{d:`M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z`}))))),xt=p({name:`ResizeSmall`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},n(`g`,{fill:`none`},n(`path`,{d:`M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z`,fill:`currentColor`})))}}),St=U(`retry`,()=>n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M320,146s24.36-12-64-12A160,160,0,1,0,416,294`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;`}),n(`polyline`,{points:`256 58 336 138 256 218`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Ct=U(`rotateClockwise`,()=>n(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z`,fill:`currentColor`}),n(`path`,{d:`M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z`,fill:`currentColor`}))),wt=U(`rotateClockwise`,()=>n(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z`,fill:`currentColor`}),n(`path`,{d:`M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z`,fill:`currentColor`}))),Tt=U(`trash`,()=>n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),n(`rect`,{x:`32`,y:`64`,width:`448`,height:`80`,rx:`16`,ry:`16`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),n(`line`,{x1:`312`,y1:`240`,x2:`200`,y2:`352`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),n(`line`,{x1:`312`,y1:`352`,x2:`200`,y2:`240`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Et=U(`zoomIn`,()=>n(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z`,fill:`currentColor`}),n(`path`,{d:`M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z`,fill:`currentColor`}))),Dt=U(`zoomOut`,()=>n(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z`,fill:`currentColor`}),n(`path`,{d:`M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z`,fill:`currentColor`}))),Ot=oe&&`loading`in document.createElement(`img`);function kt(e={}){let{root:t=null}=e;return{hash:`${e.rootMargin||`0px 0px 0px 0px`}-${Array.isArray(e.threshold)?e.threshold.join(`,`):e.threshold??`0`}`,options:Object.assign(Object.assign({},e),{root:(typeof t==`string`?document.querySelector(t):t)||document.documentElement})}}var At=new WeakMap,jt=new WeakMap,Mt=new WeakMap,Nt=(e,t,n)=>{if(!e)return()=>{};let r=kt(t),{root:i}=r.options,a,o=At.get(i);o?a=o:(a=new Map,At.set(i,a));let s,c;a.has(r.hash)?(c=a.get(r.hash),c[1].has(e)||(s=c[0],c[1].add(e),s.observe(e))):(s=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=jt.get(e.target),n=Mt.get(e.target);t&&t(),n&&(n.value=!0)}})},r.options),s.observe(e),c=[s,new Set([e])],a.set(r.hash,c));let l=!1,u=()=>{l||(jt.delete(e),Mt.delete(e),l=!0,c[1].has(e)&&(c[0].unobserve(e),c[1].delete(e)),c[1].size<=0&&a.delete(r.hash),a.size||At.delete(i))};return jt.set(e,u),Mt.set(e,n),u},Pt=p({name:`Tooltip`,props:Object.assign(Object.assign({},se),A.props),slots:Object,__popover__:!0,setup(e){let{mergedClsPrefixRef:t}=T(e),n=A(`Tooltip`,`-tooltip`,void 0,ge,e,t),r=c(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(e){r.value.setShow(e)}}),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:i(()=>n.value.self)})},render(){let{mergedTheme:e,internalExtraClass:t}=this;return n(ce,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat(`tooltip`),ref:`popoverRef`}),this.$slots)}});function Ft(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var It=k({name:`Image`,common:j,peers:{Tooltip:ge},self:Ft});function Lt(){return n(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z`,fill:`currentColor`}))}function Rt(){return n(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z`,fill:`currentColor`}))}function zt(){return n(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z`,fill:`currentColor`}))}var Bt=Object.assign(Object.assign({},A.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),Vt=M(`n-image`),Ht=y([y(`body >`,[S(`image-container`,`position: fixed;`)]),S(`image-preview-container`,` position: fixed; left: 0; right: 0; diff --git a/dist/assets/UserAgreementView-Co6k36_y.js b/dist/assets/UserAgreementView-Co6k36_y.js new file mode 100644 index 0000000..88b1a1d --- /dev/null +++ b/dist/assets/UserAgreementView-Co6k36_y.js @@ -0,0 +1 @@ +import{A as e,E as t,K as n,_ as r,j as i}from"./auth-CzuN8bsR.js";import{t as a}from"./DocsPage-4nGaYJI1.js";import{t as o}from"./HeaderMenu-Qspj3Vlt.js";var s=i({__name:`UserAgreementView`,setup(i){return(i,s)=>(n(),t(r,null,[e(a,{kind:`terms`}),e(o)],64))}});export{s as default}; \ No newline at end of file diff --git a/dist/assets/UserAgreementView-D9JyU4Z2.js b/dist/assets/UserAgreementView-D9JyU4Z2.js deleted file mode 100644 index a811447..0000000 --- a/dist/assets/UserAgreementView-D9JyU4Z2.js +++ /dev/null @@ -1 +0,0 @@ -import{A as e,E as t,K as n,_ as r,j as i}from"./auth-DetOXv90.js";import{t as a}from"./DocsPage-DzX4rZ9-.js";import{t as o}from"./HeaderMenu-BV7MwsiN.js";var s=i({__name:`UserAgreementView`,setup(i){return(i,s)=>(n(),t(r,null,[e(a,{kind:`terms`}),e(o)],64))}});export{s as default}; \ No newline at end of file diff --git a/dist/assets/UsersView-CZdF-i6P.js b/dist/assets/UsersView-ClrscFQ_.js similarity index 97% rename from dist/assets/UsersView-CZdF-i6P.js rename to dist/assets/UsersView-ClrscFQ_.js index eab7dec..842bb98 100644 --- a/dist/assets/UsersView-CZdF-i6P.js +++ b/dist/assets/UsersView-ClrscFQ_.js @@ -1,4 +1,4 @@ -import{A as e,C as t,E as n,F as r,J as i,K as a,M as o,P as s,S as c,T as l,U as u,V as d,_ as f,ct as p,dt as m,et as h,j as g,jt as _,k as v,nt as y,pt as b,q as x,t as S,w as C}from"./auth-DetOXv90.js";import{G as w,J as T,K as E,L as D,M as ee,N as te,Y as O,Z as k,a as ne,r as re,z as A}from"./light-BN35I8ot.js";import{s as ie}from"./Card-BFXpokQN.js";import{a as ae}from"./resolve-slot-DXnJRg0o.js";import{t as oe}from"./Modal-Cc3YqyVW.js";import{t as j}from"./Button-SFBLnAwv.js";import{t as se}from"./use-form-item-CT1L1ziV.js";import{o as M,t as ce}from"./get-Cv_ptumj.js";import{t as N}from"./Input-CM5axX8S.js";import{t as le}from"./Tag-BqKZJJ-a.js";import{t as ue}from"./use-message-bV_QZwc3.js";import{t as de}from"./Space-B98o1YSA.js";import{t as P}from"./Flex-SLIxZFiS.js";import{X as F,Z as fe,c as pe,nt as me}from"./index-UYw_T9_p.js";import{r as he,t as ge}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as _e}from"./HeaderMenu-BV7MwsiN.js";function ve(e,t,n){let i=r(e,null);if(i===null)return;let a=o()?.proxy;h(n,s),s(n.value),d(()=>{s(void 0,n.value)});function s(e,n){if(!i)return;let r=i[t];n!==void 0&&c(r,n),e!==void 0&&l(r,e)}function c(e,t){e[t]||(e[t]=[]),e[t].splice(e[t].findIndex(e=>e===a),1)}function l(e,t){e[t]||(e[t]=[]),~e[t].findIndex(e=>e===a)||e[t].push(a)}}var I=A(`n-form`),ye=A(`n-form-item-insts`);function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function B(e,t,n){return B=xe()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&z(i,n.prototype),i},B.apply(null,arguments)}function Se(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}function V(e){var t=typeof Map==`function`?new Map:void 0;return V=function(e){if(e===null||!Se(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return B(e,arguments,R(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),z(n,e)},V(e)}var Ce=/%[sdj%]/g,we=function(){};function H(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function U(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(Ce,function(e){if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}break;default:return e}}):e}function Te(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`}function W(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||Te(t)&&typeof e==`string`&&!e)}function Ee(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,e||[]),i++,i===a&&n(r)}e.forEach(function(e){t(e,o)})}function De(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,s{s(void 0,n.value)});function s(e,n){if(!i)return;let r=i[t];n!==void 0&&c(r,n),e!==void 0&&l(r,e)}function c(e,t){e[t]||(e[t]=[]),e[t].splice(e[t].findIndex(e=>e===a),1)}function l(e,t){e[t]||(e[t]=[]),~e[t].findIndex(e=>e===a)||e[t].push(a)}}var I=A(`n-form`),ye=A(`n-form-item-insts`);function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function B(e,t,n){return B=xe()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&z(i,n.prototype),i},B.apply(null,arguments)}function Se(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}function V(e){var t=typeof Map==`function`?new Map:void 0;return V=function(e){if(e===null||!Se(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return B(e,arguments,R(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),z(n,e)},V(e)}var Ce=/%[sdj%]/g,we=function(){};function H(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function U(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(Ce,function(e){if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}break;default:return e}}):e}function Te(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`}function W(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||Te(t)&&typeof e==`string`&&!e)}function Ee(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,e||[]),i++,i===a&&n(r)}e.forEach(function(e){t(e,o)})}function De(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,s{let r;try{r=await t(n)}catch{await e(),r=await t(n)}if(r&&typeof r==`object`&&`code`in r&&r.code!==0)throw Error(`message`in r&&typeof r.message==`string`?r.message:`Ошибка запроса`);return r}}function m(e){let t=0;for(let n=0;n{let r=m(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function v(e,t){let n=[];return t.split(h).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function y(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?_(t,e):v(t,e))}),t.join(`, `).replace(g,` `)}var b=/[A-Z]/g;function x(e){return e.replace(b,e=>`-`+e.toLowerCase())}function S(e,t=` `){return typeof e==`object`&&e?` { +import{B as e,F as t,P as n,S as r,Y as i,a,f as o,j as s,q as c,r as l,t as u}from"./auth-CzuN8bsR.js";function d(){let e=u();return f(e.refreshTokenAction,e.getToken)}function f(e,t){return a(p(e,l(t)))}function p(e,t){return async n=>{let r;try{r=await t(n)}catch{await e(),r=await t(n)}if(r&&typeof r==`object`&&`code`in r&&r.code!==0)throw Error(`message`in r&&typeof r.message==`string`?r.message:`Ошибка запроса`);return r}}function m(e){let t=0;for(let n=0;n{let r=m(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function v(e,t){let n=[];return t.split(h).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function y(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?_(t,e):v(t,e))}),t.join(`, `).replace(g,` `)}var b=/[A-Z]/g;function x(e){return e.replace(b,e=>`-`+e.toLowerCase())}function S(e,t=` `){return typeof e==`object`&&e?` { `+Object.entries(e).map(e=>t+` ${x(e[0])}: ${e[1]};`).join(` `)+` `+t+`}`:`: ${e};`}function C(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function w(e,t,n,r){if(!t)return``;let i=C(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` { diff --git a/dist/assets/application-CK_JoGAx.js b/dist/assets/application-CQhaY0yx.js similarity index 88% rename from dist/assets/application-CK_JoGAx.js rename to dist/assets/application-CQhaY0yx.js index 20fb5c4..b2e9bab 100644 --- a/dist/assets/application-CK_JoGAx.js +++ b/dist/assets/application-CQhaY0yx.js @@ -1 +1 @@ -import{i as e}from"./auth-DetOXv90.js";function t(e){let t=e?.file_type;if(t===`pdf`||t===`image`||t===`audio`)return t;let n=(e?.image||``).toLowerCase();return/\.pdf($|\?)/.test(n)?`pdf`:/\.(mp3|wav|ogg|m4a|aac|flac|opus)($|\?)/.test(n)?`audio`:/\.(png|jpe?g|gif|webp|bmp|svg)($|\?)/.test(n)?`image`:``}function n(t){if(!t)return``;let n=t.toLowerCase();return n.startsWith(`http://`)||n.startsWith(`https://`)?t:t.startsWith(`/`)?e()+t:`${e()}/api/files/${t}`}function r(e){return e?e.split(`/`).pop()||e:``}export{t as n,n as r,r as t}; \ No newline at end of file +import{i as e}from"./auth-CzuN8bsR.js";function t(e){let t=e?.file_type;if(t===`pdf`||t===`image`||t===`audio`)return t;let n=(e?.image||``).toLowerCase();return/\.pdf($|\?)/.test(n)?`pdf`:/\.(mp3|wav|ogg|m4a|aac|flac|opus)($|\?)/.test(n)?`audio`:/\.(png|jpe?g|gif|webp|bmp|svg)($|\?)/.test(n)?`image`:``}function n(t){if(!t)return``;let n=t.toLowerCase();return n.startsWith(`http://`)||n.startsWith(`https://`)?t:t.startsWith(`/`)?e()+t:`${e()}/api/files/${t}`}function r(e){return e?e.split(`/`).pop()||e:``}export{t as n,n as r,r as t}; \ No newline at end of file diff --git a/dist/assets/auth-DetOXv90.js b/dist/assets/auth-CzuN8bsR.js similarity index 92% rename from dist/assets/auth-DetOXv90.js rename to dist/assets/auth-CzuN8bsR.js index 3b55731..db2f52d 100644 --- a/dist/assets/auth-DetOXv90.js +++ b/dist/assets/auth-CzuN8bsR.js @@ -1 +1 @@ -function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,T=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ee=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},te=/-\w/g,E=ee(e=>e.replace(te,e=>e.slice(1).toUpperCase())),ne=/\B([A-Z])/g,D=ee(e=>e.replace(ne,`-$1`).toLowerCase()),O=ee(e=>e.charAt(0).toUpperCase()+e.slice(1)),re=ee(e=>e?`on${O(e)}`:``),k=(e,t)=>!Object.is(e,t),ie=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ae=e=>{let t=parseFloat(e);return isNaN(t)?e:t},oe=e=>{let t=g(e)?Number(e):NaN;return isNaN(t)?e:t},se,ce=()=>se||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function j(e){if(d(e)){let t={};for(let n=0;n{if(e){let n=e.split(ue);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function pe(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n!!(e&&e.__v_isRef===!0),be=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?ye(e)?be(e.value):JSON.stringify(e,xe,2):String(e),xe=(e,t)=>ye(t)?xe(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Se(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Se(e))}:_(t)?Se(t):v(t)&&!d(t)&&!C(t)?String(t):t,Se=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,M,Ce=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&M&&(M.active?(this.parent=M,this.index=(M.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0&&--this._on===0){if(M===this)M=this.prevScope;else{let e=M;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(je){let e=je;for(je=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ae;){let t=Ae;for(Ae=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Fe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ie(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),ze(r),Be(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Le(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Re(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Re(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ke)||(e.globalVersion=Ke,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Le(e))))return;e.flags|=2;let t=e.dep,n=N,r=Ve;N=e,Ve=!0;try{Fe(e);let n=e.fn(e._value);(t.version===0||k(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{N=n,Ve=r,Ie(e),e.flags&=-3}}function ze(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ze(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Be(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Ve=!0,He=[];function Ue(){He.push(Ve),Ve=!1}function We(){let e=He.pop();Ve=e===void 0?!0:e}function Ge(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=N;N=void 0;try{t()}finally{N=e}}}var Ke=0,qe=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Je=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!N||!Ve||N===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==N)t=this.activeLink=new qe(N,this),N.deps?(t.prevDep=N.depsTail,N.depsTail.nextDep=t,N.depsTail=t):N.deps=N.depsTail=t,Ye(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=N.depsTail,t.nextDep=void 0,N.depsTail.nextDep=t,N.depsTail=t,N.deps===t&&(N.deps=e)}return t}trigger(e){this.version++,Ke++,this.notify(e)}notify(e){Ne();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Pe()}}};function Ye(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ye(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Xe=new WeakMap,Ze=Symbol(``),Qe=Symbol(``),$e=Symbol(``);function P(e,t,n){if(Ve&&N){let t=Xe.get(e);t||Xe.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Je),r.map=t,r.key=n),r.track()}}function et(e,t,n,r,i,a){let o=Xe.get(e);if(!o){Ke++;return}let s=e=>{e&&e.trigger()};if(Ne(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&w(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===$e||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get($e)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Ze)),f(e)&&s(o.get(Qe)));break;case`delete`:i||(s(o.get(Ze)),f(e)&&s(o.get(Qe)));break;case`set`:f(e)&&s(o.get(Ze));break}}Pe()}function tt(e,t){let n=Xe.get(e);return n&&n.get(t)}function nt(e){let t=I(e);return t===e?t:(P(t,`iterate`,$e),F(e)?t:t.map(L))}function rt(e){return P(e=I(e),`iterate`,$e),e}function it(e,t){return Bt(e)?Ut(zt(e)?L(t):t):L(t)}var at={__proto__:null,[Symbol.iterator](){return ot(this,Symbol.iterator,e=>it(this,e))},concat(...e){return nt(this).concat(...e.map(e=>d(e)?nt(e):e))},entries(){return ot(this,`entries`,e=>(e[1]=it(this,e[1]),e))},every(e,t){return ct(this,`every`,e,t,void 0,arguments)},filter(e,t){return ct(this,`filter`,e,t,e=>e.map(e=>it(this,e)),arguments)},find(e,t){return ct(this,`find`,e,t,e=>it(this,e),arguments)},findIndex(e,t){return ct(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return ct(this,`findLast`,e,t,e=>it(this,e),arguments)},findLastIndex(e,t){return ct(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return ct(this,`forEach`,e,t,void 0,arguments)},includes(...e){return ut(this,`includes`,e)},indexOf(...e){return ut(this,`indexOf`,e)},join(e){return nt(this).join(e)},lastIndexOf(...e){return ut(this,`lastIndexOf`,e)},map(e,t){return ct(this,`map`,e,t,void 0,arguments)},pop(){return dt(this,`pop`)},push(...e){return dt(this,`push`,e)},reduce(e,...t){return lt(this,`reduce`,e,t)},reduceRight(e,...t){return lt(this,`reduceRight`,e,t)},shift(){return dt(this,`shift`)},some(e,t){return ct(this,`some`,e,t,void 0,arguments)},splice(...e){return dt(this,`splice`,e)},toReversed(){return nt(this).toReversed()},toSorted(e){return nt(this).toSorted(e)},toSpliced(...e){return nt(this).toSpliced(...e)},unshift(...e){return dt(this,`unshift`,e)},values(){return ot(this,`values`,e=>it(this,e))}};function ot(e,t,n){let r=rt(e),i=r[t]();return r!==e&&!F(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var st=Array.prototype;function ct(e,t,n,r,i,a){let o=rt(e),s=o!==e&&!F(e),c=o[t];if(c!==st[t]){let t=c.apply(e,a);return s?L(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,it(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function lt(e,t,n,r){let i=rt(e),a=i!==e&&!F(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=it(e,t)),n.call(this,t,it(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?it(e,c):c}function ut(e,t,n){let r=I(e);P(r,`iterate`,$e);let i=r[t](...n);return(i===-1||i===!1)&&Vt(n[0])?(n[0]=I(n[0]),r[t](...n)):i}function dt(e,t,n=[]){Ue(),Ne();let r=I(e)[t].apply(e,n);return Pe(),We(),r}var ft=e(`__proto__,__v_isRef,__isVue`),pt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function mt(e){_(e)||(e=String(e));let t=I(this);return P(t,`has`,e),t.hasOwnProperty(e)}var ht=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Nt:Mt:i?jt:At).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=at[t]))return e;if(t===`hasOwnProperty`)return mt}let o=Reflect.get(e,t,R(e)?e:n);if((_(t)?pt.has(t):ft(t))||(r||P(e,`get`,t),i))return o;if(R(o)){let e=a&&w(t)?o:o.value;return r&&v(e)?Lt(e):e}return v(o)?r?Lt(o):Ft(o):o}},gt=class extends ht{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&w(t);if(!this._isShallow){let e=Bt(i);if(!F(n)&&!Bt(n)&&(i=I(i),n=I(n)),!a&&R(i)&&!R(n))return e||(i.value=n),!0}let o=a?Number(t)e,St=e=>Reflect.getPrototypeOf(e);function Ct(e,t,n){return function(...r){let i=this.__v_raw,a=I(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?xt:t?Ut:L;return!t&&P(a,`iterate`,l?Qe:Ze),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function wt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Tt(e,t){let n={get(n){let r=this.__v_raw,i=I(r),a=I(n);e||(k(n,a)&&P(i,`get`,n),P(i,`get`,a));let{has:o}=St(i),s=t?xt:e?Ut:L;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&P(I(t),`iterate`,Ze),t.size},has(t){let n=this.__v_raw,r=I(n),i=I(t);return e||(k(t,i)&&P(r,`has`,t),P(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=I(a),s=t?xt:e?Ut:L;return!e&&P(o,`iterate`,Ze),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:wt(`add`),set:wt(`set`),delete:wt(`delete`),clear:wt(`clear`)}:{add(e){let n=I(this),r=St(n),i=I(e),a=!t&&!F(e)&&!Bt(e)?i:e;return r.has.call(n,a)||k(e,a)&&r.has.call(n,e)||k(i,a)&&r.has.call(n,i)||(n.add(a),et(n,`add`,a,a)),this},set(e,n){!t&&!F(n)&&!Bt(n)&&(n=I(n));let r=I(this),{has:i,get:a}=St(r),o=i.call(r,e);o||=(e=I(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?k(n,s)&&et(r,`set`,e,n,s):et(r,`add`,e,n),this},delete(e){let t=I(this),{has:n,get:r}=St(t),i=n.call(t,e);i||=(e=I(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&et(t,`delete`,e,void 0,a),o},clear(){let e=I(this),t=e.size!==0,n=e.clear();return t&&et(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Ct(r,e,t)}),n}function Et(e,t){let n=Tt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var Dt={get:Et(!1,!1)},Ot={get:Et(!1,!0)},kt={get:Et(!0,!1)},At=new WeakMap,jt=new WeakMap,Mt=new WeakMap,Nt=new WeakMap;function Pt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Ft(e){return Bt(e)?e:Rt(e,!1,vt,Dt,At)}function It(e){return Rt(e,!1,bt,Ot,jt)}function Lt(e){return Rt(e,!0,yt,kt,Mt)}function Rt(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Pt(S(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function zt(e){return Bt(e)?zt(e.__v_raw):!!(e&&e.__v_isReactive)}function Bt(e){return!!(e&&e.__v_isReadonly)}function F(e){return!!(e&&e.__v_isShallow)}function Vt(e){return e?!!e.__v_raw:!1}function I(e){let t=e&&e.__v_raw;return t?I(t):e}function Ht(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&A(e,`__v_skip`,!0),e}var L=e=>v(e)?Ft(e):e,Ut=e=>v(e)?Lt(e):e;function R(e){return e?e.__v_isRef===!0:!1}function Wt(e){return Kt(e,!1)}function Gt(e){return Kt(e,!0)}function Kt(e,t){return R(e)?e:new qt(e,t)}var qt=class{constructor(e,t){this.dep=new Je,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:I(e),this._value=t?e:L(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||F(e)||Bt(e);e=n?e:I(e),k(e,t)&&(this._rawValue=e,this._value=n?e:L(e),this.dep.trigger())}};function Jt(e){return R(e)?e.value:e}var Yt={get:(e,t,n)=>t===`__v_raw`?e:Jt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return R(i)&&!R(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Xt(e){return zt(e)?e:new Proxy(e,Yt)}function Zt(e){let t=d(e)?Array(e.length):{};for(let n in e)t[n]=tn(e,n);return t}var Qt=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=_(t)?t:String(t),this._raw=I(e);let r=!0,i=e;if(!d(e)||_(this._key)||!w(this._key))do r=!Vt(i)||F(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=Jt(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&R(this._raw[this._key])){let t=this._object[this._key];if(R(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return tt(this._raw,this._key)}},$t=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function en(e,t,n){return R(e)?e:h(e)?new $t(e):v(e)&&arguments.length>1?tn(e,t,n):Wt(e)}function tn(e,t,n){return new Qt(e,t,n)}var nn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Je(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ke-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&N!==this)return Me(this,!0),!0}get value(){let e=this.dep.track();return Re(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function rn(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new nn(r,i,n)}var an={},on=new WeakMap,sn=void 0;function cn(e,t=!1,n=sn){if(n){let t=on.get(n);t||on.set(n,t=[]),t.push(e)}}function ln(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:F(e)||o===!1||o===0?un(e,1):un(e),m,g,_,v,y=!1,b=!1;if(R(e)?(g=()=>e.value,y=F(e)):zt(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>zt(e)||F(e)),g=()=>e.map(e=>{if(R(e))return e.value;if(zt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){Ue();try{_()}finally{We()}}let t=sn;sn=m;try{return f?f(e,3,[v]):e(v)}finally{sn=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>un(e(),t)}let x=Te(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(an):an,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e))if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>k(e,C[t])):k(t,C))){_&&_();let e=sn;sn=m;try{let e=[t,C===an?void 0:b&&C[0]===an?[]:C,v];C=t,f?f(n,3,e):n(...e)}finally{sn=e}}}else m.run()};return u&&u(w),m=new Oe(g),m.scheduler=l?()=>l(w,!1):w,v=e=>cn(e,!1,m),_=m.onStop=()=>{let e=on.get(m);if(e){if(f)f(e,4);else for(let t of e)t();on.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function un(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,R(e))un(e.value,t,n);else if(d(e))for(let r=0;r{un(e,t,n)});else if(C(e)){for(let r in e)un(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&un(e[r],t,n)}return e}function dn(e,t,n,r){try{return r?e(...r):e()}catch(e){fn(e,t,n)}}function z(e,t,n,r){if(h(e)){let i=dn(e,t,n,r);return i&&y(i)&&i.catch(e=>{fn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a>>1,i=B[r],a=Dn(i);a=Dn(n)?B.push(e):B.splice(xn(t),0,e),e.flags|=1,Cn()}}function Cn(){yn||=vn.then(On)}function wn(e){d(e)?hn.push(...e):gn&&e.id===-1?gn.splice(_n+1,0,e):e.flags&1||(hn.push(e),e.flags|=1),Cn()}function Tn(e,t,n=mn+1){for(;nDn(e)-Dn(t));if(hn.length=0,gn){gn.push(...e);return}for(gn=e,_n=0;_ne.id==null?e.flags&2?-1:1/0:e.id;function On(e){try{for(mn=0;mn{r._d&&fa(-1);let i=An(t),a;try{a=e(...n)}finally{An(i),r._d&&fa(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Mn(e,n){if(V===null)return e;let r=Ya(V),i=e.dirs||=[];for(let e=0;e1)return n&&h(t)?t.call(r&&r.proxy):t}}function Fn(){return!!(Pa()||_i)}var In=Symbol.for(`v-scx`),Ln=()=>H(In);function Rn(e,t){return Bn(e,null,t)}function zn(e,t,n){return Bn(e,t,n)}function Bn(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(Ba){if(c===`sync`){let e=Ln();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=Z;u.call=(e,t,n)=>z(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{K(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():Sn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=ln(e,n,u);return Ba&&(f?f.push(h):d&&h()),h}function Vn(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?Hn(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=La(this),s=Bn(i,a.bind(r),n);return o(),s}function Hn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,Kn=e=>e&&(e.disabled||e.disabled===``),qn=e=>e&&(e.defer||e.defer===``),Jn=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Yn=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Xn=(e,t)=>{let n=e&&e.to;return g(n)?t?t(n):null:n},Zn={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=Kn(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=Kn(e.props),r=e.target=Xn(e.props,m),a=nr(r,e,h,p);r&&(o!==`svg`&&Jn(r)?o=`svg`:o!==`mathml`&&Yn(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),tr(e,!1)))},S=e=>{let t=()=>{if(Un.get(e)===t){if(Un.delete(e),Kn(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),tr(e,!0)}x(e)}};Un.set(e,t),K(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),qn(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),tr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Un.get(e);if(u){u.flags|=8,Un.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Kn(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Jn(p)?o=`svg`:(o===`mathml`||Yn(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),$i(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qn(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Xn(t.props,m);e&&(t.target=e,Qn(t,e,null,l,0))}else g&&Qn(t,p,h,l,1);tr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=Kn(f),m=a||!p,h=Un.get(e);if(h&&(h.flags|=8,Un.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e{e.isMounted=!0}),Pr(()=>{e.isUnmounting=!0}),e}var W=[Function,Array],ar={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:W,onEnter:W,onAfterEnter:W,onEnterCancelled:W,onBeforeLeave:W,onLeave:W,onAfterLeave:W,onLeaveCancelled:W,onBeforeAppear:W,onAppear:W,onAfterAppear:W,onAppearCancelled:W},or=e=>{let t=e.subTree;return t.component?or(t.component):t},sr={name:`BaseTransition`,props:ar,setup(e,{slots:t}){let n=Pa(),r=ir();return()=>{let i=t.default&&hr(t.default(),!0),a=i&&i.length?cr(i):n.subTree?Ta():void 0;if(!a)return;let o=I(e),{mode:s}=o;if(r.isLeaving)return fr(a);let c=pr(a);if(!c)return fr(a);let l=dr(c,o,r,n,e=>l=e);c.type!==J&&mr(c,l);let u=n.subTree&&pr(n.subTree);if(u&&u.type!==J&&!_a(u,c)&&or(n).type!==J){let e=dr(u,o,r,n);if(mr(u,e),s===`out-in`&&c.type!==J)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},fr(a);s===`in-out`&&c.type!==J?e.delayLeave=(e,t,n)=>{let i=ur(r,u);i[String(u.key)]=u,e[U]=()=>{t(),e[U]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function cr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==J){t=n;break}}return t}var lr=sr;function ur(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function dr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=ur(n,e),C=(e,t)=>{e&&z(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),d(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=_||c;else return;t[U]&&t[U](!0);let i=S[x];i&&_a(e,i)&&i.el[U]&&i.el[U](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=f;if(!n.isMounted)if(a)r=v||l,i=y||u,o=b||f;else return;let s=!1;t[rr]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[rr]=void 0)};let c=t[rr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[rr]&&t[rr](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[U]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[U]=void 0,S[i]===e&&delete S[i])};let o=t[U].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=dr(e,t,n,r,i);return i&&i(a),a}};return T}function fr(e){if(Cr(e))return e=Ca(e),e.children=null,e}function pr(e){if(!Cr(e))return Gn(e.type)&&e.children?cr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&h(n.default))return n.default()}}function mr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,mr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function hr(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;ebr(e,n&&(d(n)?n[t]:n),r,a,o));return}if(Sr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&br(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?Ya(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=I(v),b=v===t?i:e=>vr(_,e)?!1:u(y,e),x=(e,t)=>!(t&&vr(_,t));if(m!=null&&m!==p){if(xr(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(R(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p)){Ue();try{dn(p,f,12,[l,_])}finally{We()}}else{let t=g(p),n=R(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),yr.delete(e)};t.id=-1,yr.set(e,t),K(t,r)}else xr(e),i()}}}function xr(e){let t=yr.get(e);t&&(t.flags|=8,yr.delete(e))}ce().requestIdleCallback,ce().cancelIdleCallback;var Sr=e=>!!e.type.__asyncLoader,Cr=e=>e.type.__isKeepAlive;function wr(e,t){Er(e,`a`,t)}function Tr(e,t){Er(e,`da`,t)}function Er(e,t,n=Z){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Or(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Cr(e.parent.vnode)&&Dr(r,t,n,e),e=e.parent}}function Dr(e,t,n,r){let i=Or(t,e,r,!0);Fr(()=>{c(r[t],i)},n)}function Or(e,t,n=Z,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ue();let i=La(n),a=z(t,n,e,r);return i(),We(),a};return r?i.unshift(a):i.push(a),a}}var kr=e=>(t,n=Z)=>{(!Ba||e===`sp`)&&Or(e,(...e)=>t(...e),n)},Ar=kr(`bm`),jr=kr(`m`),Mr=kr(`bu`),Nr=kr(`u`),Pr=kr(`bum`),Fr=kr(`um`),Ir=kr(`sp`),Lr=kr(`rtg`),Rr=kr(`rtc`);function zr(e,t=Z){Or(`ec`,e,t)}var Br=`components`;function Vr(e,t){return Ur(Br,e,!0,t)||e}var Hr=Symbol.for(`v-ndc`);function Ur(e,t,n=!0,r=!1){let i=V||Z;if(i){let n=i.type;if(e===Br){let e=Xa(n,!1);if(e&&(e===t||e===E(t)||e===O(E(t))))return n}let a=Wr(i[e]||n[e],t)||Wr(i.appContext[e],t);return!a&&r?n:a}}function Wr(e,t){return e&&(e[t]||e[E(t)]||e[O(E(t))])}function Gr(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&zt(e),r=!1,s=!1;n&&(r=!F(e),s=Bt(e),e=rt(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function qr(e,t,n={},r,i){if(V.ce||V.parent&&Sr(V.parent)&&V.parent.ce){let e=Object.keys(n).length>0;return t!=="default"&&(n.name=t),la(),ha(q,null,[X(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),la();let o=a&&Jr(a(n)),s=n.key||o&&o.key,c=ha(q,{key:(s&&!_(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function Jr(e){return e.some(e=>ga(e)?!(e.type===J||e.type===q&&!Jr(e.children)):!0)?e:null}var Yr=e=>e?za(e)?Ya(e):Yr(e.parent):null,Xr=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Yr(e.parent),$root:e=>Yr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ai(e),$forceUpdate:e=>e.f||=()=>{Sn(e.update)},$nextTick:e=>e.n||=bn.bind(e.proxy),$watch:e=>Vn.bind(e)}),Zr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),Qr={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(Zr(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else ei&&(s[n]=0)}let d=Xr[n],f,p;if(d)return n===`$attrs`&&P(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return Zr(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||Zr(n,c)||u(o,c)||u(i,c)||u(Xr,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function $r(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var ei=!0;function ti(e){let t=ai(e),n=e.proxy,i=e.ctx;ei=!1,t.beforeCreate&&ri(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:ee,renderTriggered:te,errorCaptured:E,serverPrefetch:ne,expose:D,inheritAttrs:O,components:re,directives:k,filters:ie}=t;if(u&&ni(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=Ft(t))}if(ei=!0,o)for(let e in o){let t=o[e],a=Q({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)ii(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Pn(t,e[t])})}f&&ri(f,e,`c`);function A(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(A(Ar,p),A(jr,m),A(Mr,g),A(Nr,_),A(wr,y),A(Tr,b),A(zr,E),A(Rr,ee),A(Lr,te),A(Pr,S),A(Fr,w),A(Ir,ne),d(D))if(D.length){let t=e.exposed||={};D.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};T&&e.render===r&&(e.render=T),O!=null&&(e.inheritAttrs=O),re&&(e.components=re),k&&(e.directives=k),ne&&_r(e)}function ni(e,t,n=r){d(e)&&(e=ui(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?H(r.from||n,r.default,!0):H(r.from||n):H(r),R(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function ri(e,t,n){z(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ii(e,t,n,r){let i=r.includes(`.`)?Hn(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&zn(i,n)}else if(h(e))zn(i,e.bind(n));else if(v(e))if(d(e))e.forEach(e=>ii(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&zn(i,r,e)}}function ai(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>oi(c,e,o,!0)),oi(c,t,o)),v(t)&&a.set(t,c),c}function oi(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&oi(e,a,n,!0),i&&i.forEach(t=>oi(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=si[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var si={data:ci,props:fi,emits:fi,methods:di,computed:di,beforeCreate:G,created:G,beforeMount:G,mounted:G,beforeUpdate:G,updated:G,beforeDestroy:G,beforeUnmount:G,destroyed:G,unmounted:G,activated:G,deactivated:G,errorCaptured:G,serverPrefetch:G,components:di,directives:di,watch:pi,provide:ci,inject:li};function ci(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function li(e,t){return di(ui(e),ui(t))}function ui(e){if(d(e)){let t={};for(let n=0;nt===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${D(t)}Modifiers`];function yi(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&vi(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=r.map(ae)));let c,l=i[c=re(n)]||i[c=re(E(n))];!l&&o&&(l=i[c=re(D(n))]),l&&z(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,z(u,e,6,a)}}var bi=new WeakMap;function xi(e,t,n=!1){let r=n?bi:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=xi(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function Si(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,D(t))||u(e,t))}function Ci(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=An(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ea(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Ea(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:wi(c)}}catch(t){ca.length=0,fn(t,e,1),v=X(J)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Ti(y,a)),b=Ca(b,y,!1,!0))}return n.dirs&&(b=Ca(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&mr(b,n.transition),v=b,An(_),v}var wi=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Ti=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ei(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Di(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(Ai),Mi=e=>Object.getPrototypeOf(e)===Ai;function Ni(e,t,n,r=!1){let i={},a=ji();e.propsDefaults=Object.create(null),Fi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:It(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Pi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=I(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{p=!0;let[t,n]=Ri(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,Vi=e=>d(e)?e.map(Ea):[Ea(e)],Hi=(e,t,n)=>{if(t._n)return t;let r=jn((...e)=>Vi(t(...e)),n);return r._c=!1,r},Ui=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Bi(n))continue;let i=e[n];if(h(i))t[n]=Hi(n,i,r);else if(i!=null){let e=Vi(i);t[n]=()=>e}}},Wi=(e,t)=>{let n=Vi(t);e.slots.default=()=>n},Gi=(e,t,n)=>{for(let r in t)(n||!Bi(r))&&(e[r]=t[r])},Ki=(e,t,n)=>{let r=e.slots=ji();if(e.vnode.shapeFlag&32){let e=t._;e?(Gi(r,t,n),n&&A(r,`_`,e,!0)):Ui(t,r)}else t&&Wi(e,t)},qi=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:Gi(a,n,r):(o=!n.$stable,Ui(n,a)),s=n}else n&&(Wi(e,n),s={default:1});if(o)for(let e in a)!Bi(e)&&s[e]==null&&delete a[e]},K=aa;function Ji(e){return Yi(e)}function Yi(e,i){let a=ce();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!_a(e,t)&&(r=_e(e),fe(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case oa:y(e,t,n,r);break;case J:b(e,t,n,r);break;case sa:e??x(t,n,r,o);break;case q:re(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?k(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,be)}u!=null&&i?br(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&br(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ne(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&E(e.children,d,null,r,i,Xi(e,a),s,u),_&&Nn(e,null,r,`created`),te(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!T(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Aa(f,r,e)}_&&Nn(e,null,r,`beforeMount`);let v=Qi(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&K(()=>{try{f&&Aa(f,r,e),v&&g.enter(d),_&&Nn(e,null,r,`mounted`)}finally{}},i)},te=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&Zi(r,!1),(g=h.onVnodeBeforeUpdate)&&Aa(g,r,n,e),f&&Nn(n,e,r,`beforeUpdate`),r&&Zi(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?D(e.dynamicChildren,d,l,r,i,Xi(n,a),o):s||j(e,n,l,null,r,i,Xi(n,a),o,!1),u>0){if(u&16)O(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t{g&&Aa(g,r,n,e),f&&Nn(n,e,r,`updated`)},i)},D=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(n!==r){if(n!==t)for(let t in n)!T(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(T(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},re=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),E(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(D(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&$i(e,t,!0)):j(e,t,n,f,i,a,s,c,l)},k=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):A(t,n,r,i,a,o,c):ae(e,t,c)},A=(e,t,n,r,i,a,o)=>{let s=e.component=Na(e,r,i);if(Cr(e)&&(s.ctx.renderer=be),Va(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,oe,o),!e.el){let r=s.subTree=X(J);b(null,r,t,n),e.placeholder=r.el}}else oe(s,e,t,n,i,a,o)},ae=(e,t,n)=>{let r=t.component=e.component;if(Ei(e,t,n))if(r.asyncDep&&!r.asyncResolved){se(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},oe=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=ta(e);if(n){t&&(t.el=c.el,se(e,t,o)),n.asyncDep.then(()=>{K(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Zi(e,!1),t?(t.el=c.el,se(e,t,o)):t=c,n&&ie(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Aa(d,s,t,c),Zi(e,!0);let f=Ci(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),_e(p),e,i,a),t.el=f.el,u===null&&ki(e,f.el),r&&K(r,i),(d=t.props&&t.props.onVnodeUpdated)&&K(()=>Aa(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Sr(t);if(Zi(e,!1),l&&ie(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Aa(o,d,t),Zi(e,!0),s&&Se){let t=()=>{e.subTree=Ci(e),Se(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Ci(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&K(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;K(()=>Aa(o,d,e),i)}(t.shapeFlag&256||d&&Sr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&K(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Oe(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Sn(u),Zi(e,!0),l()},se=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Pi(e,t.props,r,n),qi(e,t.children,n),Ue(),Tn(e),We()},j=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ue(l,d,n,r,i,a,o,s,c);return}else if(f&256){le(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ge(l,i,a),d!==l&&p(n,d)):u&16?m&16?ue(l,d,n,r,i,a,o,s,c):ge(l,i,a,!0):(u&8&&p(n,``),m&16&&E(d,n,r,i,a,o,s,c))},le=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;pd?ge(e,a,o,!0,!1,f):E(t,r,i,a,o,s,c,l,f)},ue=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?Da(t[u]):Ea(t[u]);if(_a(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?Da(t[p]):Ea(t[p]);if(_a(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=ep)for(;u<=f;)fe(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Da(t[u]):Ea(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u=b){fe(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&_a(n,t[_])){i=_;break}i===void 0?fe(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?ea(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){de(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,be);return}if(c===q){o(a,t,n);for(let e=0;el.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[U];a._isLeaving&&a[U](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},fe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Ue(),br(s,null,n,e,!0),We()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Sr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Aa(_,t,e),u&6)he(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Nn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==q||d>0&&d&64)?ge(l,t,n,!1,!0):(a===q&&d&384||!i&&u&16)&&ge(c,t,n),r&&pe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&K(()=>{_&&Aa(_,t,e),h&&Nn(e,null,t,`unmounted`),v&&(e.el=null)},n)},pe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===q){me(n,r);return}if(t===sa){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},me=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},he=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;na(c),na(l),r&&ie(r),i.stop(),a&&(a.flags|=8,fe(o,e,t,n)),s&&K(s,t),K(()=>{e.isUnmounted=!0},t)},ge=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return _e(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Wn];return n?h(n):t},ve=!1,ye=(e,t,n)=>{let r;e==null?t._vnode&&(fe(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,Tn(r),En(),!1)},be={p:v,um:fe,m:de,r:pe,mt:A,mc:E,pc:j,pbc:D,n:_e,o:e},xe,Se;return i&&([xe,Se]=i(be)),{render:ye,hydrate:xe,createApp:gi(ye,xe)}}function Xi({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Zi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Qi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $i(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function ta(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ta(t)}function na(e){if(e)for(let t=0;te.__isSuspense;function aa(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):wn(e)}var q=Symbol.for(`v-fgt`),oa=Symbol.for(`v-txt`),J=Symbol.for(`v-cmt`),sa=Symbol.for(`v-stc`),ca=[],Y=null;function la(e=!1){ca.push(Y=e?null:[])}function ua(){ca.pop(),Y=ca[ca.length-1]||null}var da=1;function fa(e,t=!1){da+=e,e<0&&Y&&t&&(Y.hasOnce=!0)}function pa(e){return e.dynamicChildren=da>0?Y||n:null,ua(),da>0&&Y&&Y.push(e),e}function ma(e,t,n,r,i,a){return pa(ba(e,t,n,r,i,a,!0))}function ha(e,t,n,r,i){return pa(X(e,t,n,r,i,!0))}function ga(e){return e?e.__v_isVNode===!0:!1}function _a(e,t){return e.type===t.type&&e.key===t.key}var va=({key:e})=>e??null,ya=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||R(e)||h(e)?{i:V,r:e,k:t,f:!!n}:e);function ba(e,t=null,n=null,r=0,i=null,a=e===q?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&va(t),ref:t&&ya(t),scopeId:kn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:V};return s?(Oa(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),da>0&&!o&&Y&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Y.push(c),c}var X=xa;function xa(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Hr)&&(e=J),ga(e)){let r=Ca(e,t,!0);return n&&Oa(r,n),da>0&&!a&&Y&&(r.shapeFlag&6?Y[Y.indexOf(e)]=r:Y.push(r)),r.patchFlag=-2,r}if(Za(e)&&(e=e.__vccOpts),t){t=Sa(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=pe(e)),v(n)&&(Vt(n)&&!d(n)&&(n=s({},n)),t.style=j(n))}let o=g(e)?1:ia(e)?128:Gn(e)?64:v(e)?4:h(e)?2:0;return ba(e,t,n,r,i,o,a,!0)}function Sa(e){return e?Vt(e)||Mi(e)?s({},e):e:null}function Ca(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?ka(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&va(l),ref:t&&t.ref?n&&a?d(a)?a.concat(ya(t)):[a,ya(t)]:ya(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==q?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ca(e.ssContent),ssFallback:e.ssFallback&&Ca(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&mr(u,c.clone(u)),u}function wa(e=` `,t=0){return X(oa,null,e,t)}function Ta(e=``,t=!1){return t?(la(),ha(J,null,e)):X(J,null,e)}function Ea(e){return e==null||typeof e==`boolean`?X(J):d(e)?X(q,null,e.slice()):ga(e)?Da(e):X(oa,null,String(e))}function Da(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ca(e)}function Oa(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Oa(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!Mi(t)?t._ctx=V:r===3&&V&&(V.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(h(t)){if(r&65){Oa(e,{default:t});return}t={default:t,_ctx:V},n=32}else t=String(t),r&64?(n=16,t=[wa(t)]):n=8;e.children=t,e.shapeFlag|=n}function ka(...e){let t={};for(let n=0;nZ||V,Fa,Ia;{let e=ce(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Fa=t(`__VUE_INSTANCE_SETTERS__`,e=>Z=e),Ia=t(`__VUE_SSR_SETTERS__`,e=>Ba=e)}var La=e=>{let t=Z;return Fa(e),e.scope.on(),()=>{e.scope.off(),Fa(t)}},Ra=()=>{Z&&Z.scope.off(),Fa(null)};function za(e){return e.vnode.shapeFlag&4}var Ba=!1;function Va(e,t=!1,n=!1){t&&Ia(t);let{props:r,children:i}=e.vnode,a=za(e);Ni(e,r,a,t),Ki(e,i,n||t);let o=a?Ha(e,t):void 0;return t&&Ia(!1),o}function Ha(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Qr);let{setup:r}=n;if(r){Ue();let n=e.setupContext=r.length>1?Ja(e):null,i=La(e),a=dn(r,e,0,[e.props,n]),o=y(a);if(We(),i(),(o||e.sp)&&!Sr(e)&&_r(e),o){if(a.then(Ra,Ra),t)return a.then(n=>{Ua(e,n,t)}).catch(t=>{fn(t,e,0)});e.asyncDep=a}else Ua(e,a,t)}else Ka(e,t)}function Ua(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=Xt(t)),Ka(e,n)}var Wa,Ga;function Ka(e,t,n){let i=e.type;if(!e.render){if(!t&&Wa&&!i.render){let t=i.template||ai(e).template;if(t){let{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:o}=i;i.render=Wa(t,s(s({isCustomElement:n,delimiters:a},r),o))}}e.render=i.render||r,Ga&&Ga(e)}{let t=La(e);Ue();try{ti(e)}finally{We(),t()}}}var qa={get(e,t){return P(e,`get`,``),e[t]}};function Ja(e){return{attrs:new Proxy(e.attrs,qa),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ya(e){return e.exposed?e.exposeProxy||=new Proxy(Xt(Ht(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Xr)return Xr[n](e)},has(e,t){return t in e||t in Xr}}):e.proxy}function Xa(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}function Za(e){return h(e)&&`__vccOpts`in e}var Q=(e,t)=>rn(e,t,Ba);function Qa(e,t,n){try{fa(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?ga(t)?X(e,null,[t]):X(e,t):X(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ga(n)&&(n=[n]),X(e,t,n))}finally{fa(1)}}var $a=`3.5.39`,eo=typeof window<`u`,to,no=e=>to=e,ro=Symbol();function io(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var ao;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(ao||={});var oo=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function so(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function co(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){mo(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function lo(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function uo(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var fo=typeof navigator==`object`?navigator:{userAgent:``},po=/Macintosh/.test(fo.userAgent)&&/AppleWebKit/.test(fo.userAgent)&&!/Safari/.test(fo.userAgent),mo=eo?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!po?ho:`msSaveOrOpenBlob`in fo?go:_o:()=>{};function ho(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?uo(r):lo(r.href)?co(e,t,n):(r.target=`_blank`,uo(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){uo(r)},0))}function go(e,t=`download`,n){if(typeof e==`string`)if(lo(e))co(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){uo(t)})}else navigator.msSaveOrOpenBlob(so(e,n),t)}function _o(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return co(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(oo.HTMLElement))||`safari`in oo,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||po)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:vo}=Object;function yo(){let e=we(!0),t=e.run(()=>Wt({})),n=[],r=[],i=Ht({install(e){no(i),i._a=e,e.provide(ro,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var bo=()=>{};function xo(e,t,n,r=bo){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&Te()&&Ee(i),i}function So(e,...t){e.forEach(e=>{e(...t)})}var Co=e=>e(),wo=Symbol(),To=Symbol();function Eo(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];io(i)&&io(r)&&e.hasOwnProperty(n)&&!R(r)&&!zt(r)?e[n]=Eo(i,r):e[n]=r}return e}var Do=Symbol();function Oo(e){return!io(e)||!Object.prototype.hasOwnProperty.call(e,Do)}var{assign:ko}=Object;function Ao(e){return!!(R(e)&&e.effect)}function jo(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),ko(Zt(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=Ht(Q(()=>{no(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=Mo(e,l,t,n,r,!0),c}function Mo(e,t,n={},r,i,a){let o,s=ko({actions:{}},n),c={deep:!0},l,u,d=new Set,f=new Set,p=r.state.value[e];!a&&!p&&(r.state.value[e]={});let m;function h(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:ao.patchFunction,storeId:e,events:void 0}):(Eo(r.state.value[e],t),n={type:ao.patchObject,payload:t,storeId:e,events:void 0});let i=m=Symbol();bn().then(()=>{m===i&&(l=!0)}),u=!0,So(d,n,r.state.value[e])}let g=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{ko(e,t)})}:bo;function _(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}let v=(t,n=``)=>{if(wo in t)return t[To]=n,t;let i=function(){no(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}So(f,{args:n,name:i[To],store:y,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:y,n)}catch(e){throw So(o,e),e}return l instanceof Promise?l.then(e=>(So(a,e),e)).catch(e=>(So(o,e),Promise.reject(e))):(So(a,l),l)};return i[wo]=!0,i[To]=n,i},y=Ft({_p:r,$id:e,$onAction:xo.bind(null,f),$patch:h,$reset:g,$subscribe(t,n={}){let i=xo(d,t,n.detached,()=>a()),a=o.run(()=>zn(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:ao.direct,events:void 0},r)},ko({},c,n)));return i},$dispose:_});r._s.set(e,y);let b=(r._a&&r._a.runWithContext||Co)(()=>r._e.run(()=>(o=we()).run(()=>t({action:v}))));for(let t in b){let n=b[t];R(n)&&!Ao(n)||zt(n)?a||(p&&Oo(n)&&(R(n)?n.value=p[t]:Eo(n,p[t])),r.state.value[e][t]=n):typeof n==`function`&&(b[t]=v(n,t),s.actions[t]=n)}return ko(y,b),ko(I(y),b),Object.defineProperty(y,"$state",{get:()=>r.state.value[e],set:e=>{h(t=>{ko(t,e)})}}),r._p.forEach(e=>{ko(y,o.run(()=>e({store:y,app:r._a,pinia:r,options:s})))}),p&&a&&n.hydrate&&n.hydrate(y.$state,p),l=!0,u=!0,y}function No(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=Fn();return n||=o?H(ro,null):null,n&&no(n),n=to,n._s.has(e)||(i?Mo(e,t,r,n):jo(e,r,n)),n._s.get(e)}return a.$id=e,a}function Po(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Fo=typeof document<`u`;function Io(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Lo(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Io(e.default)}var $=Object.assign;function Ro(e,t){let n={};for(let r in t){let i=t[r];n[r]=Bo(i)?i.map(e):e(i)}return n}var zo=()=>{},Bo=Array.isArray;function Vo(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Ho=Symbol(``);function Uo(e,t){return $(Error(),{type:e,[Ho]:!0},t)}function Wo(e,t){return e instanceof Error&&Ho in e&&(t==null||!!(e.type&t))}var Go=Symbol(``),Ko=Symbol(``),qo=Symbol(``),Jo=Symbol(``),Yo=Symbol(``);function Xo(){return H(qo)}function Zo(e){return H(Jo)}var Qo=/#/g,$o=/&/g,es=/\//g,ts=/=/g,ns=/\?/g,rs=/\+/g,is=/%5B/g,as=/%5D/g,os=/%5E/g,ss=/%60/g,cs=/%7B/g,ls=/%7C/g,us=/%7D/g,ds=/%20/g;function fs(e){return e==null?``:encodeURI(``+e).replace(ls,`|`).replace(is,`[`).replace(as,`]`)}function ps(e){return fs(e).replace(cs,`{`).replace(us,`}`).replace(os,`^`)}function ms(e){return fs(e).replace(rs,`%2B`).replace(ds,`+`).replace(Qo,`%23`).replace($o,`%26`).replace(ss,"`").replace(cs,`{`).replace(us,`}`).replace(os,`^`)}function hs(e){return ms(e).replace(ts,`%3D`)}function gs(e){return fs(e).replace(Qo,`%23`).replace(ns,`%3F`)}function _s(e){return gs(e).replace(es,`%2F`)}function vs(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var ys=/\/$/,bs=e=>e.replace(ys,``);function xs(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=ks(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:vs(o)}}function Ss(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Cs(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function ws(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Ts(t.matched[r],n.matched[i])&&Es(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ts(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Es(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ds(e[n],t[n]))return!1;return!0}function Ds(e,t){return Bo(e)?Os(e,t):Bo(t)?Os(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Os(e,t){return Bo(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function ks(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var As={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function js(e){if(!e)if(Fo){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),bs(e)}var Ms=/^[^#]+#/;function Ns(e,t){return e.replace(Ms,`#`)+t}function Ps(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Fs=()=>({left:window.scrollX,top:window.scrollY});function Is(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Ps(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Ls(e,t){return(history.state?history.state.position-t:-1)+e}var Rs=new Map;function zs(e,t){Rs.set(e,t)}function Bs(e){let t=Rs.get(e);return Rs.delete(e),t}function Vs(e){return typeof e==`string`||e&&typeof e==`object`}function Hs(e){return typeof e==`string`||typeof e==`symbol`}function Us(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&ms(e)):[r&&ms(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Gs(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Bo(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Ks(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function qs(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Uo(4,{from:n,to:t})):e instanceof Error?c(e):Vs(e)?c(Uo(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Js(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Io(s)){let c=(s.__vccOpts||s)[t];c&&a.push(qs(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Lo(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&qs(c,n,r,o,e,i)()}))}}return a}function Ys(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oTs(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Ts(e,s))||i.push(s))}return[n,r,i]}var Xs=()=>location.protocol+`//`+location.host;function Zs(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Cs(n,``)}return Cs(n,e)+r+i}function Qs(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Zs(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState($({},e.state,{scroll:Fs()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function $s(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Fs():null}}function ec(e){let{history:t,location:n}=window,r={value:Zs(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Xs()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,$({},t.state,$s(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=$({},i.value,t.state,{forward:e,scroll:Fs()});a(o.current,o,!0),a(e,$({},$s(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function tc(e){e=js(e);let t=ec(e),n=Qs(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=$({location:``,base:e,go:r,createHref:Ns.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var nc={type:0,value:``},rc=/[a-zA-Z0-9_]/;function ic(e){if(!e)return[[]];if(e===`/`)return[[nc]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function uc(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var fc={strict:!1,end:!0,sensitive:!1};function pc(e,t,n){let r=$(cc(ic(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function mc(e,t){let n=[],r=new Map;t=Vo(fc,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=gc(e);s.aliasOf=r&&r.record;let l=Vo(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(gc($({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=pc(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!vc(d)&&o(e.name)),Sc(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:zo}function o(e){if(Hs(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=bc(e,n);n.splice(t,0,e),e.record.name&&!vc(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Uo(1,{location:e});s=i.record.name,a=$(hc(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&hc(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Uo(1,{location:e,currentLocation:t});s=i.record.name,a=$({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:yc(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function hc(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function gc(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_c(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function _c(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function vc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yc(e){return e.reduce((e,t)=>$(e,t.meta),{})}function bc(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;uc(e,t[i])<0?r=i:n=i+1}let i=xc(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function xc(e){let t=e;for(;t=t.parent;)if(Sc(t)&&uc(e,t)===0)return t}function Sc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Cc(e){let t=H(qo),n=H(Jo),r=Q(()=>{let n=Jt(e.to);return t.resolve(n)}),i=Q(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Ts.bind(null,i));if(o>-1)return o;let s=Oc(e[t-2]);return t>1&&Oc(i)===s&&a[a.length-1].path!==s?a.findIndex(Ts.bind(null,e[t-2])):o}),a=Q(()=>i.value>-1&&Dc(n.params,r.value.params)),o=Q(()=>i.value>-1&&i.value===n.matched.length-1&&Es(n.params,r.value.params));function s(n={}){if(Ec(n)){let n=t[Jt(e.replace)?`replace`:`push`](Jt(e.to)).catch(zo);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:Q(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function wc(e){return e.length===1?e[0]:e}var Tc=gr({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Cc,setup(e,{slots:t}){let n=Ft(Cc(e)),{options:r}=H(qo),i=Q(()=>({[kc(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[kc(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&wc(t.default(n));return e.custom?r:Qa(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Ec(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Dc(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!Bo(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Oc(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var kc=(e,t,n)=>e??t??n,Ac=gr({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=H(Yo),i=Q(()=>e.route||r.value),a=H(Ko,0),o=Q(()=>{let e=Jt(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=Q(()=>i.value.matched[o.value]);Pn(Ko,Q(()=>o.value+1)),Pn(Go,s),Pn(Yo,i);let c=Wt();return zn(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Ts(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return jc(n.default,{Component:l,route:r});let u=o.props[a],d=Qa(l,$({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return jc(n.default,{Component:d,route:r})||d}}});function jc(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Mc=Ac;function Nc(e){let t=mc(e.routes,e),n=e.parseQuery||Us,r=e.stringifyQuery||Ws,i=e.history,a=Ks(),o=Ks(),s=Ks(),c=Gt(As),l=As;Fo&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Ro.bind(null,e=>``+e),d=Ro.bind(null,_s),f=Ro.bind(null,vs);function p(e,n){let r,i;return Hs(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=$({},a||c.value),typeof e==`string`){let r=xs(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return $(r,o,{params:f(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=$({},e,{path:xs(n,e.path,a.path).path});else{let t=$({},e.params);for(let e in t)t[e]??delete t[e];o=$({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=Ss(r,$({},e,{hash:ps(l),path:s.path})),m=i.createHref(p);return $({fullPath:p,hash:l,query:r===Ws?Gs(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?xs(n,e,c.value.path):$({},e)}function y(e,t){if(l!==e)return Uo(8,{from:t,to:e})}function b(e){return C(e)}function x(e){return b($(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),$({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C($(v(u),{state:typeof u==`object`?$({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&ws(r,i,n)&&(f=Uo(16,{to:d,from:i}),oe(i,i,!0,!1)),(f?Promise.resolve(f):ee(d,i)).catch(e=>Wo(e)?Wo(e,2)?e:ae(e):ie(e,d,i)).then(e=>{if(e){if(Wo(e,2))return C($({replace:s},v(e.to),{state:typeof e.to==`object`?$({},a,e.to.state):a,force:o}),t||d)}else e=E(d,i,!0,s,a);return te(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=j.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ee(e,t){let n,[r,i,s]=Ys(e,t);n=Js(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(qs(r,e,t))});let c=w.bind(null,e,t);return n.push(c),ue(n).then(()=>{n=[];for(let r of a.list())n.push(qs(r,e,t));return n.push(c),ue(n)}).then(()=>{n=Js(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(qs(r,e,t))});return n.push(c),ue(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(Bo(r.beforeEnter))for(let i of r.beforeEnter)n.push(qs(i,e,t));else n.push(qs(r.beforeEnter,e,t));return n.push(c),ue(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Js(s,`beforeRouteEnter`,e,t,T),n.push(c),ue(n))).then(()=>{n=[];for(let r of o.list())n.push(qs(r,e,t));return n.push(c),ue(n)}).catch(e=>Wo(e,8)?e:Promise.reject(e))}function te(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function E(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===As,l=Fo?history.state:{};n&&(r||s?i.replace(e.fullPath,$({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,oe(e,t,n,s),ae()}let ne;function D(){ne||=i.listen((e,t,n)=>{if(!le.listening)return;let r=_(e),a=S(r,le.currentRoute.value);if(a){C($(a,{replace:!0,force:!0}),r).catch(zo);return}l=r;let o=c.value;Fo&&zs(Ls(o.fullPath,n.delta),Fs()),ee(r,o).catch(e=>Wo(e,12)?e:Wo(e,2)?(C($(v(e.to),{force:!0}),r).then(e=>{Wo(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(zo),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ie(e,r,o))).then(e=>{e||=E(r,o,!1),e&&(n.delta&&!Wo(e,8)?i.go(-n.delta,!1):n.type===`pop`&&Wo(e,20)&&i.go(-1,!1)),te(r,o,e)}).catch(zo)})}let O=Ks(),re=Ks(),k;function ie(e,t,n){ae(e);let r=re.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function A(){return k&&c.value!==As?Promise.resolve():new Promise((e,t)=>{O.add([e,t])})}function ae(e){return k||(k=!e,D(),O.list().forEach(([t,n])=>e?n(e):t()),O.reset()),e}function oe(t,n,r,i){let{scrollBehavior:a}=e;if(!Fo||!a)return Promise.resolve();let o=!r&&Bs(Ls(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return bn().then(()=>a(t,n,o)).then(e=>e&&Is(e)).catch(e=>ie(e,t,n))}let se=e=>i.go(e),ce,j=new Set,le={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:se,back:()=>se(-1),forward:()=>se(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:re.add,isReady:A,install(e){e.component(`RouterLink`,Tc),e.component(`RouterView`,Mc),e.config.globalProperties.$router=le,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Jt(c)}),Fo&&!ce&&c.value===As&&(ce=!0,b(i.location).catch(e=>{}));let t={};for(let e in As)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(qo,le),e.provide(Jo,It(t)),e.provide(Yo,c);let n=e.unmount;j.add(e),e.unmount=function(){j.delete(e),j.size<1&&(l=As,ne&&ne(),ne=null,c.value=As,ce=!1,k=!1),n()}}};function ue(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return le}function Pc(e){return{GetParticipation(t){let n=JSON.stringify(t),r=[],i=`api/participation/get`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetParticipation`})},AnswerParticipation(t){let n=JSON.stringify(t),r=[],i=`api/participation/answer`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AnswerParticipation`})},Ping(t){let n=[],r=`api/test/ping`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`Ping`})},Echo(t){let n=[];t.text&&n.push(`text=${encodeURIComponent(t.text.toString())}`);let r=`api/test/echo`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`POST`,body:null},{service:`EveningDetectiveServer`,method:`Echo`})},Signup(t){let n=JSON.stringify(t),r=[],i=`api/auth/signup`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Signup`})},RefreshPassword(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh-password`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`RefreshPassword`})},Login(t){let n=JSON.stringify(t),r=[],i=`api/auth/login`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Login`})},Refresh(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Refresh`})},DeleteAccount(t){let n=[],r=`api/auth/delete-account`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteAccount`})},GetTerms(t){let n=[],r=`api/terms`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTerms`})},GetPrivacy(t){let n=[],r=`api/privacy`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPrivacy`})},GetConsent(t){let n=[],r=`api/consent`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetConsent`})},GetUsers(t){let n=[],r=`api/users`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUsers`})},GetUserById(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUserById`})},GetMe(t){let n=[],r=`api/users/me`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMe`})},ChangeUserPassword(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/password`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`ChangeUserPassword`})},AddUserRole(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/role/add`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddUserRole`})},DeleteUserRole(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/role/delete`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`DeleteUserRole`})},GetPermissions(t){let n=[],r=`api/ui/permissions`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPermissions`})},UploadFile(t){let n=JSON.stringify(t),r=[],i=`api/files/upload`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`UploadFile`})},DownloadFile(t){if(!t.filename)throw Error(`missing required field request.filename`);let n=`api/files/${t.filename}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadFile`})},AddScenario(t){let n=JSON.stringify(t),r=[],i=`api/scenario`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddScenario`})},GetMyScenarios(t){let n=[],r=`api/my-scenarios`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMyScenarios`})},GetScenariosCatalog(t){let n=[],r=`api/catalog`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenariosCatalog`})},GetFullScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/full`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetFullScenario`})},GetScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenario`})},UpdateScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenario`})},PublicScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/public`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PublicScenario`})},DraftScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/draft`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`DraftScenario`})},DeleteScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenario`})},AddScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/places`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddScenarioPlace`})},UpdateScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/places/${t.code}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioPlace`})},DeleteScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/places/${t.code}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenarioPlace`})},AddScenarioQuestion(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/questions`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddScenarioQuestion`})},UpdateScenarioQuestion(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/questions/${t.code}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioQuestion`})},DeleteScenarioQuestion(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/questions/${t.code}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenarioQuestion`})},UpdateScenarioBackground(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/background`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioBackground`})},UpdateScenarioIntro(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/introduction`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioIntro`})},UpdateScenarioConclusion(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/conclusion`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioConclusion`})},DownloadScenarioArchive(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/archive`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadScenarioArchive`})},UploadScenarioArchive(t){let n=JSON.stringify(t),r=[],i=`api/scenarios/archive`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`UploadScenarioArchive`})},AddGame(t){let n=JSON.stringify(t),r=[],i=`api/games`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddGame`})},GetGames(t){let n=[],r=`api/games`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGames`})},GetGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGame`})},CreateScreenSession(t){let n=JSON.stringify(t),r=[],i=`api/screens`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`CreateScreenSession`})},GetScreenState(t){let n=JSON.stringify(t),r=[],i=`api/screens/state`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetScreenState`})},GetGameScreens(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/screens`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameScreens`})},BindScreen(t){if(!t.screenId)throw Error(`missing required field request.screenId`);let n=`api/screens/${t.screenId}/bind`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`BindScreen`})},UnbindScreen(t){if(!t.screenId)throw Error(`missing required field request.screenId`);let n=`api/screens/${t.screenId}/unbind`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`UnbindScreen`})},SetScreenSound(t){if(!t.screenId)throw Error(`missing required field request.screenId`);let n=`api/screens/${t.screenId}/sound`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenSound`})},GetGameMap(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/map`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameMap`})},UpdateGameMapItem(t){if(!t.gameId)throw Error(`missing required field request.gameId`);if(!t.kind)throw Error(`missing required field request.kind`);if(!t.itemId)throw Error(`missing required field request.itemId`);let n=`api/games/${t.gameId}/map/items/${t.kind}/${t.itemId}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`UpdateGameMapItem`})},SetScreenMode(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/screens/mode`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenMode`})},SendScreenCommand(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/screens/command`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SendScreenCommand`})},GetScreenResults(t){let n=JSON.stringify(t),r=[],i=`api/screens/results`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetScreenResults`})},DownloadTeamQR(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/teams/qr.pdf`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadTeamQR`})},GetGameAnswers(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/answers`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameAnswers`})},GetGameResults(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/results`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameResults`})},CreateGameReview(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/reviews`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`CreateGameReview`})},GetGameReviews(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameReviews`})},GetGameReviewsForModeration(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/admin/games/${t.gameId}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameReviewsForModeration`})},ModerateGameReview(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/admin/game-reviews/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`ModerateGameReview`})},UpdateGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateGame`})},StartGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/start`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`StartGame`})},PauseGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/pause`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PauseGame`})},PlayGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/play`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PlayGame`})},FinishGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/finish`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`FinishGame`})},ResetGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/reset`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`ResetGame`})},DeleteGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteGame`})},AddTeam(t){let n=JSON.stringify(t),r=[],i=`api/teams`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddTeam`})},UpdateTeam(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateTeam`})},DeleteTeam(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteTeam`})},GiveTeamApplications(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/applications`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`GiveTeamApplications`})},GetTeamStory(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/story`,r=[];t.password&&r.push(`password=${encodeURIComponent(t.password.toString())}`);let i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTeamStory`})},AddTeamAction(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/actions`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddTeamAction`})},DeleteLastTeamAction(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/last-actions`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteLastTeamAction`})},GetTeamAnswers(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/answers`,r=[];t.password&&r.push(`password=${encodeURIComponent(t.password.toString())}`);let i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTeamAnswers`})},SubmitTeamAnswers(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/answers`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SubmitTeamAnswers`})},SetTeamAnswerScore(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.questionCode)throw Error(`missing required field request.questionCode`);let n=`api/teams/${t.id}/answers/${t.questionCode}/score`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`SetTeamAnswerScore`})}}}function Fc(e,t){return Pc(Ic(e,t))}function Ic(e,t){return async n=>{let r=`${Lc()}/${n.path}`,i={"Content-Type":`application/json`},a=e?.();a&&(i.Authorization=`Bearer ${a}`);let o=t?.();o&&Object.assign(i,o);let s=await fetch(r,{method:n.method,headers:i,body:n.body});if(s.status==401)throw Error(`unauthorized`);return await s.json()}}function Lc(){return`https://evening-detective.crabs-games.art`}var Rc=No(`auth`,()=>{let e=Wt(null),t=Wt(null),n=Wt(null),r=Wt(!1),i=Wt(null),a=Q(()=>!!e.value),o=Q(()=>n.value?.username||``),s=Q(()=>n.value?.roles||[]);function c(){let n=localStorage.getItem(`accessToken`),r=localStorage.getItem(`refreshToken`);n&&(e.value=n,t.value=r,u())}function l(){return e.value}async function u(){if(e.value)try{let e=await Fc(l).GetMe({});if(e.error){i.value=e.error;return}e.user&&(n.value=e.user)}catch(e){console.error(`Failed to fetch user:`,e),e instanceof Error&&e.message.includes(`401`)&&await g()}}async function d(n,a){r.value=!0,i.value=null;try{let r=await Fc(l).Login({email:n,password:a});return r.error?(i.value=r.error,!1):r.accessToken?(e.value=r.accessToken,t.value=r.refreshToken||null,localStorage.setItem(`accessToken`,r.accessToken),r.refreshToken&&localStorage.setItem(`refreshToken`,r.refreshToken),await u(),!0):!1}catch(e){return i.value=e instanceof Error?e.message:`Login failed`,!1}finally{r.value=!1}}async function f(){if(!t.value)return!1;try{let n=await Fc(l).Refresh({refreshToken:t.value});return n.error||!n.accessToken?!1:(e.value=n.accessToken,t.value=n.refreshToken||null,localStorage.setItem(`accessToken`,n.accessToken),n.refreshToken&&localStorage.setItem(`refreshToken`,n.refreshToken),!0)}catch{return!1}}async function p(e,t,n,a){r.value=!0,i.value=null;try{let r=await Fc(l).Signup({username:e,email:t,acceptTerms:n,acceptPrivacy:a});return r.error?(i.value=r.error,!1):!0}catch(e){return i.value=e instanceof Error?e.message:`Signup failed`,!1}finally{r.value=!1}}async function m(e){r.value=!0,i.value=null;try{let t=await Fc(l,()=>({"X-Password":e})).DeleteAccount({});return t.error?(i.value=t.error,!1):(await g(),!0)}catch(e){return i.value=e instanceof Error?e.message:`Account deletion failed`,!1}finally{r.value=!1}}async function h(e){r.value=!0,i.value=null;try{let t=await Fc(l).RefreshPassword({email:e});return t.error?(i.value=t.error,!1):!0}catch(e){return i.value=e instanceof Error?e.message:`Password reset failed`,!1}finally{r.value=!1}}async function g(){e.value=null,t.value=null,n.value=null,i.value=null,localStorage.removeItem(`accessToken`),localStorage.removeItem(`refreshToken`)}function _(e){return s.value.includes(e)}function v(e){return e.some(e=>s.value.includes(e))}return{accessToken:e,refreshToken:t,user:n,isLoading:r,error:i,isAuthenticated:a,username:o,userRoles:s,initFromStorage:c,getToken:l,login:d,signup:p,deleteAccount:m,refreshPassword:h,logout:g,fetchUser:u,refreshTokenAction:f,hasRole:_,hasAnyRole:v}});export{ir as $,X as A,j as At,Ar as B,ba as C,v as Ct,Ji as D,_ as Dt,ma as E,g as Et,H as F,Nr as G,Tr as H,ga as I,Gr as J,la as K,ka as L,Pa as M,oe as Mt,hr as N,Kr as O,ae as Ot,Qa as P,mr as Q,bn as R,Q as S,o as St,Ta as T,he as Tt,jr as U,Pr as V,Fr as W,Vr as X,qr as Y,dr as Z,q as _,D as _t,Pc as a,Ht as at,z as b,d as bt,Nc as c,Wt as ct,Xo as d,en as dt,zn as et,Po as f,Zt as ft,J as g,s as gt,ar as h,O as ht,Lc as i,Vt as it,gr as j,be as jt,wa as k,pe as kt,tc as l,Gt as lt,lr as m,E as mt,Fc as n,jn as nt,Tc as o,Ft as ot,yo as p,Jt as pt,Pn as q,Ic as r,Mn as rt,Mc as s,Lt as st,Rc as t,Rn as tt,Zo as u,I as ut,er as v,ge as vt,ha as w,a as wt,Ca as x,h as xt,oa as y,ie as yt,wr as z}; \ No newline at end of file +function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,T=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ee=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},te=/-\w/g,E=ee(e=>e.replace(te,e=>e.slice(1).toUpperCase())),ne=/\B([A-Z])/g,D=ee(e=>e.replace(ne,`-$1`).toLowerCase()),O=ee(e=>e.charAt(0).toUpperCase()+e.slice(1)),re=ee(e=>e?`on${O(e)}`:``),k=(e,t)=>!Object.is(e,t),ie=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ae=e=>{let t=parseFloat(e);return isNaN(t)?e:t},oe=e=>{let t=g(e)?Number(e):NaN;return isNaN(t)?e:t},se,ce=()=>se||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function j(e){if(d(e)){let t={};for(let n=0;n{if(e){let n=e.split(ue);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function pe(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n!!(e&&e.__v_isRef===!0),be=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?ye(e)?be(e.value):JSON.stringify(e,xe,2):String(e),xe=(e,t)=>ye(t)?xe(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Se(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Se(e))}:_(t)?Se(t):v(t)&&!d(t)&&!C(t)?String(t):t,Se=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,M,Ce=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&M&&(M.active?(this.parent=M,this.index=(M.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0&&--this._on===0){if(M===this)M=this.prevScope;else{let e=M;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(je){let e=je;for(je=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ae;){let t=Ae;for(Ae=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Fe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ie(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),ze(r),Be(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Le(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Re(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Re(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ke)||(e.globalVersion=Ke,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Le(e))))return;e.flags|=2;let t=e.dep,n=N,r=Ve;N=e,Ve=!0;try{Fe(e);let n=e.fn(e._value);(t.version===0||k(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{N=n,Ve=r,Ie(e),e.flags&=-3}}function ze(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ze(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Be(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Ve=!0,He=[];function Ue(){He.push(Ve),Ve=!1}function We(){let e=He.pop();Ve=e===void 0?!0:e}function Ge(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=N;N=void 0;try{t()}finally{N=e}}}var Ke=0,qe=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Je=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!N||!Ve||N===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==N)t=this.activeLink=new qe(N,this),N.deps?(t.prevDep=N.depsTail,N.depsTail.nextDep=t,N.depsTail=t):N.deps=N.depsTail=t,Ye(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=N.depsTail,t.nextDep=void 0,N.depsTail.nextDep=t,N.depsTail=t,N.deps===t&&(N.deps=e)}return t}trigger(e){this.version++,Ke++,this.notify(e)}notify(e){Ne();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Pe()}}};function Ye(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ye(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Xe=new WeakMap,Ze=Symbol(``),Qe=Symbol(``),$e=Symbol(``);function P(e,t,n){if(Ve&&N){let t=Xe.get(e);t||Xe.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Je),r.map=t,r.key=n),r.track()}}function et(e,t,n,r,i,a){let o=Xe.get(e);if(!o){Ke++;return}let s=e=>{e&&e.trigger()};if(Ne(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&w(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===$e||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get($e)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Ze)),f(e)&&s(o.get(Qe)));break;case`delete`:i||(s(o.get(Ze)),f(e)&&s(o.get(Qe)));break;case`set`:f(e)&&s(o.get(Ze));break}}Pe()}function tt(e,t){let n=Xe.get(e);return n&&n.get(t)}function nt(e){let t=I(e);return t===e?t:(P(t,`iterate`,$e),F(e)?t:t.map(L))}function rt(e){return P(e=I(e),`iterate`,$e),e}function it(e,t){return Bt(e)?Ut(zt(e)?L(t):t):L(t)}var at={__proto__:null,[Symbol.iterator](){return ot(this,Symbol.iterator,e=>it(this,e))},concat(...e){return nt(this).concat(...e.map(e=>d(e)?nt(e):e))},entries(){return ot(this,`entries`,e=>(e[1]=it(this,e[1]),e))},every(e,t){return ct(this,`every`,e,t,void 0,arguments)},filter(e,t){return ct(this,`filter`,e,t,e=>e.map(e=>it(this,e)),arguments)},find(e,t){return ct(this,`find`,e,t,e=>it(this,e),arguments)},findIndex(e,t){return ct(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return ct(this,`findLast`,e,t,e=>it(this,e),arguments)},findLastIndex(e,t){return ct(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return ct(this,`forEach`,e,t,void 0,arguments)},includes(...e){return ut(this,`includes`,e)},indexOf(...e){return ut(this,`indexOf`,e)},join(e){return nt(this).join(e)},lastIndexOf(...e){return ut(this,`lastIndexOf`,e)},map(e,t){return ct(this,`map`,e,t,void 0,arguments)},pop(){return dt(this,`pop`)},push(...e){return dt(this,`push`,e)},reduce(e,...t){return lt(this,`reduce`,e,t)},reduceRight(e,...t){return lt(this,`reduceRight`,e,t)},shift(){return dt(this,`shift`)},some(e,t){return ct(this,`some`,e,t,void 0,arguments)},splice(...e){return dt(this,`splice`,e)},toReversed(){return nt(this).toReversed()},toSorted(e){return nt(this).toSorted(e)},toSpliced(...e){return nt(this).toSpliced(...e)},unshift(...e){return dt(this,`unshift`,e)},values(){return ot(this,`values`,e=>it(this,e))}};function ot(e,t,n){let r=rt(e),i=r[t]();return r!==e&&!F(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var st=Array.prototype;function ct(e,t,n,r,i,a){let o=rt(e),s=o!==e&&!F(e),c=o[t];if(c!==st[t]){let t=c.apply(e,a);return s?L(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,it(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function lt(e,t,n,r){let i=rt(e),a=i!==e&&!F(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=it(e,t)),n.call(this,t,it(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?it(e,c):c}function ut(e,t,n){let r=I(e);P(r,`iterate`,$e);let i=r[t](...n);return(i===-1||i===!1)&&Vt(n[0])?(n[0]=I(n[0]),r[t](...n)):i}function dt(e,t,n=[]){Ue(),Ne();let r=I(e)[t].apply(e,n);return Pe(),We(),r}var ft=e(`__proto__,__v_isRef,__isVue`),pt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function mt(e){_(e)||(e=String(e));let t=I(this);return P(t,`has`,e),t.hasOwnProperty(e)}var ht=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Nt:Mt:i?jt:At).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=at[t]))return e;if(t===`hasOwnProperty`)return mt}let o=Reflect.get(e,t,R(e)?e:n);if((_(t)?pt.has(t):ft(t))||(r||P(e,`get`,t),i))return o;if(R(o)){let e=a&&w(t)?o:o.value;return r&&v(e)?Lt(e):e}return v(o)?r?Lt(o):Ft(o):o}},gt=class extends ht{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&w(t);if(!this._isShallow){let e=Bt(i);if(!F(n)&&!Bt(n)&&(i=I(i),n=I(n)),!a&&R(i)&&!R(n))return e||(i.value=n),!0}let o=a?Number(t)e,St=e=>Reflect.getPrototypeOf(e);function Ct(e,t,n){return function(...r){let i=this.__v_raw,a=I(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?xt:t?Ut:L;return!t&&P(a,`iterate`,l?Qe:Ze),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function wt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Tt(e,t){let n={get(n){let r=this.__v_raw,i=I(r),a=I(n);e||(k(n,a)&&P(i,`get`,n),P(i,`get`,a));let{has:o}=St(i),s=t?xt:e?Ut:L;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&P(I(t),`iterate`,Ze),t.size},has(t){let n=this.__v_raw,r=I(n),i=I(t);return e||(k(t,i)&&P(r,`has`,t),P(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=I(a),s=t?xt:e?Ut:L;return!e&&P(o,`iterate`,Ze),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:wt(`add`),set:wt(`set`),delete:wt(`delete`),clear:wt(`clear`)}:{add(e){let n=I(this),r=St(n),i=I(e),a=!t&&!F(e)&&!Bt(e)?i:e;return r.has.call(n,a)||k(e,a)&&r.has.call(n,e)||k(i,a)&&r.has.call(n,i)||(n.add(a),et(n,`add`,a,a)),this},set(e,n){!t&&!F(n)&&!Bt(n)&&(n=I(n));let r=I(this),{has:i,get:a}=St(r),o=i.call(r,e);o||=(e=I(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?k(n,s)&&et(r,`set`,e,n,s):et(r,`add`,e,n),this},delete(e){let t=I(this),{has:n,get:r}=St(t),i=n.call(t,e);i||=(e=I(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&et(t,`delete`,e,void 0,a),o},clear(){let e=I(this),t=e.size!==0,n=e.clear();return t&&et(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Ct(r,e,t)}),n}function Et(e,t){let n=Tt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var Dt={get:Et(!1,!1)},Ot={get:Et(!1,!0)},kt={get:Et(!0,!1)},At=new WeakMap,jt=new WeakMap,Mt=new WeakMap,Nt=new WeakMap;function Pt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Ft(e){return Bt(e)?e:Rt(e,!1,vt,Dt,At)}function It(e){return Rt(e,!1,bt,Ot,jt)}function Lt(e){return Rt(e,!0,yt,kt,Mt)}function Rt(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Pt(S(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function zt(e){return Bt(e)?zt(e.__v_raw):!!(e&&e.__v_isReactive)}function Bt(e){return!!(e&&e.__v_isReadonly)}function F(e){return!!(e&&e.__v_isShallow)}function Vt(e){return e?!!e.__v_raw:!1}function I(e){let t=e&&e.__v_raw;return t?I(t):e}function Ht(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&A(e,`__v_skip`,!0),e}var L=e=>v(e)?Ft(e):e,Ut=e=>v(e)?Lt(e):e;function R(e){return e?e.__v_isRef===!0:!1}function Wt(e){return Kt(e,!1)}function Gt(e){return Kt(e,!0)}function Kt(e,t){return R(e)?e:new qt(e,t)}var qt=class{constructor(e,t){this.dep=new Je,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:I(e),this._value=t?e:L(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||F(e)||Bt(e);e=n?e:I(e),k(e,t)&&(this._rawValue=e,this._value=n?e:L(e),this.dep.trigger())}};function Jt(e){return R(e)?e.value:e}var Yt={get:(e,t,n)=>t===`__v_raw`?e:Jt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return R(i)&&!R(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Xt(e){return zt(e)?e:new Proxy(e,Yt)}function Zt(e){let t=d(e)?Array(e.length):{};for(let n in e)t[n]=tn(e,n);return t}var Qt=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=_(t)?t:String(t),this._raw=I(e);let r=!0,i=e;if(!d(e)||_(this._key)||!w(this._key))do r=!Vt(i)||F(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=Jt(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&R(this._raw[this._key])){let t=this._object[this._key];if(R(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return tt(this._raw,this._key)}},$t=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function en(e,t,n){return R(e)?e:h(e)?new $t(e):v(e)&&arguments.length>1?tn(e,t,n):Wt(e)}function tn(e,t,n){return new Qt(e,t,n)}var nn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Je(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ke-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&N!==this)return Me(this,!0),!0}get value(){let e=this.dep.track();return Re(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function rn(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new nn(r,i,n)}var an={},on=new WeakMap,sn=void 0;function cn(e,t=!1,n=sn){if(n){let t=on.get(n);t||on.set(n,t=[]),t.push(e)}}function ln(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:F(e)||o===!1||o===0?un(e,1):un(e),m,g,_,v,y=!1,b=!1;if(R(e)?(g=()=>e.value,y=F(e)):zt(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>zt(e)||F(e)),g=()=>e.map(e=>{if(R(e))return e.value;if(zt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){Ue();try{_()}finally{We()}}let t=sn;sn=m;try{return f?f(e,3,[v]):e(v)}finally{sn=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>un(e(),t)}let x=Te(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(an):an,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e))if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>k(e,C[t])):k(t,C))){_&&_();let e=sn;sn=m;try{let e=[t,C===an?void 0:b&&C[0]===an?[]:C,v];C=t,f?f(n,3,e):n(...e)}finally{sn=e}}}else m.run()};return u&&u(w),m=new Oe(g),m.scheduler=l?()=>l(w,!1):w,v=e=>cn(e,!1,m),_=m.onStop=()=>{let e=on.get(m);if(e){if(f)f(e,4);else for(let t of e)t();on.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function un(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,R(e))un(e.value,t,n);else if(d(e))for(let r=0;r{un(e,t,n)});else if(C(e)){for(let r in e)un(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&un(e[r],t,n)}return e}function dn(e,t,n,r){try{return r?e(...r):e()}catch(e){fn(e,t,n)}}function z(e,t,n,r){if(h(e)){let i=dn(e,t,n,r);return i&&y(i)&&i.catch(e=>{fn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a>>1,i=B[r],a=Dn(i);a=Dn(n)?B.push(e):B.splice(xn(t),0,e),e.flags|=1,Cn()}}function Cn(){yn||=vn.then(On)}function wn(e){d(e)?hn.push(...e):gn&&e.id===-1?gn.splice(_n+1,0,e):e.flags&1||(hn.push(e),e.flags|=1),Cn()}function Tn(e,t,n=mn+1){for(;nDn(e)-Dn(t));if(hn.length=0,gn){gn.push(...e);return}for(gn=e,_n=0;_ne.id==null?e.flags&2?-1:1/0:e.id;function On(e){try{for(mn=0;mn{r._d&&fa(-1);let i=An(t),a;try{a=e(...n)}finally{An(i),r._d&&fa(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Mn(e,n){if(V===null)return e;let r=Ya(V),i=e.dirs||=[];for(let e=0;e1)return n&&h(t)?t.call(r&&r.proxy):t}}function Fn(){return!!(Pa()||_i)}var In=Symbol.for(`v-scx`),Ln=()=>H(In);function Rn(e,t){return Bn(e,null,t)}function zn(e,t,n){return Bn(e,t,n)}function Bn(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(Ba){if(c===`sync`){let e=Ln();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=Z;u.call=(e,t,n)=>z(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{K(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():Sn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=ln(e,n,u);return Ba&&(f?f.push(h):d&&h()),h}function Vn(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?Hn(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=La(this),s=Bn(i,a.bind(r),n);return o(),s}function Hn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,Kn=e=>e&&(e.disabled||e.disabled===``),qn=e=>e&&(e.defer||e.defer===``),Jn=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Yn=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Xn=(e,t)=>{let n=e&&e.to;return g(n)?t?t(n):null:n},Zn={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=Kn(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=Kn(e.props),r=e.target=Xn(e.props,m),a=nr(r,e,h,p);r&&(o!==`svg`&&Jn(r)?o=`svg`:o!==`mathml`&&Yn(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),tr(e,!1)))},S=e=>{let t=()=>{if(Un.get(e)===t){if(Un.delete(e),Kn(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),tr(e,!0)}x(e)}};Un.set(e,t),K(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),qn(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),tr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Un.get(e);if(u){u.flags|=8,Un.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Kn(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Jn(p)?o=`svg`:(o===`mathml`||Yn(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),$i(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qn(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Xn(t.props,m);e&&(t.target=e,Qn(t,e,null,l,0))}else g&&Qn(t,p,h,l,1);tr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=Kn(f),m=a||!p,h=Un.get(e);if(h&&(h.flags|=8,Un.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e{e.isMounted=!0}),Pr(()=>{e.isUnmounting=!0}),e}var W=[Function,Array],ar={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:W,onEnter:W,onAfterEnter:W,onEnterCancelled:W,onBeforeLeave:W,onLeave:W,onAfterLeave:W,onLeaveCancelled:W,onBeforeAppear:W,onAppear:W,onAfterAppear:W,onAppearCancelled:W},or=e=>{let t=e.subTree;return t.component?or(t.component):t},sr={name:`BaseTransition`,props:ar,setup(e,{slots:t}){let n=Pa(),r=ir();return()=>{let i=t.default&&hr(t.default(),!0),a=i&&i.length?cr(i):n.subTree?Ta():void 0;if(!a)return;let o=I(e),{mode:s}=o;if(r.isLeaving)return fr(a);let c=pr(a);if(!c)return fr(a);let l=dr(c,o,r,n,e=>l=e);c.type!==J&&mr(c,l);let u=n.subTree&&pr(n.subTree);if(u&&u.type!==J&&!_a(u,c)&&or(n).type!==J){let e=dr(u,o,r,n);if(mr(u,e),s===`out-in`&&c.type!==J)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},fr(a);s===`in-out`&&c.type!==J?e.delayLeave=(e,t,n)=>{let i=ur(r,u);i[String(u.key)]=u,e[U]=()=>{t(),e[U]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function cr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==J){t=n;break}}return t}var lr=sr;function ur(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function dr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=ur(n,e),C=(e,t)=>{e&&z(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),d(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=_||c;else return;t[U]&&t[U](!0);let i=S[x];i&&_a(e,i)&&i.el[U]&&i.el[U](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=f;if(!n.isMounted)if(a)r=v||l,i=y||u,o=b||f;else return;let s=!1;t[rr]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[rr]=void 0)};let c=t[rr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[rr]&&t[rr](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[U]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[U]=void 0,S[i]===e&&delete S[i])};let o=t[U].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=dr(e,t,n,r,i);return i&&i(a),a}};return T}function fr(e){if(Cr(e))return e=Ca(e),e.children=null,e}function pr(e){if(!Cr(e))return Gn(e.type)&&e.children?cr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&h(n.default))return n.default()}}function mr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,mr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function hr(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;ebr(e,n&&(d(n)?n[t]:n),r,a,o));return}if(Sr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&br(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?Ya(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=I(v),b=v===t?i:e=>vr(_,e)?!1:u(y,e),x=(e,t)=>!(t&&vr(_,t));if(m!=null&&m!==p){if(xr(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(R(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p)){Ue();try{dn(p,f,12,[l,_])}finally{We()}}else{let t=g(p),n=R(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),yr.delete(e)};t.id=-1,yr.set(e,t),K(t,r)}else xr(e),i()}}}function xr(e){let t=yr.get(e);t&&(t.flags|=8,yr.delete(e))}ce().requestIdleCallback,ce().cancelIdleCallback;var Sr=e=>!!e.type.__asyncLoader,Cr=e=>e.type.__isKeepAlive;function wr(e,t){Er(e,`a`,t)}function Tr(e,t){Er(e,`da`,t)}function Er(e,t,n=Z){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Or(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Cr(e.parent.vnode)&&Dr(r,t,n,e),e=e.parent}}function Dr(e,t,n,r){let i=Or(t,e,r,!0);Fr(()=>{c(r[t],i)},n)}function Or(e,t,n=Z,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ue();let i=La(n),a=z(t,n,e,r);return i(),We(),a};return r?i.unshift(a):i.push(a),a}}var kr=e=>(t,n=Z)=>{(!Ba||e===`sp`)&&Or(e,(...e)=>t(...e),n)},Ar=kr(`bm`),jr=kr(`m`),Mr=kr(`bu`),Nr=kr(`u`),Pr=kr(`bum`),Fr=kr(`um`),Ir=kr(`sp`),Lr=kr(`rtg`),Rr=kr(`rtc`);function zr(e,t=Z){Or(`ec`,e,t)}var Br=`components`;function Vr(e,t){return Ur(Br,e,!0,t)||e}var Hr=Symbol.for(`v-ndc`);function Ur(e,t,n=!0,r=!1){let i=V||Z;if(i){let n=i.type;if(e===Br){let e=Xa(n,!1);if(e&&(e===t||e===E(t)||e===O(E(t))))return n}let a=Wr(i[e]||n[e],t)||Wr(i.appContext[e],t);return!a&&r?n:a}}function Wr(e,t){return e&&(e[t]||e[E(t)]||e[O(E(t))])}function Gr(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&zt(e),r=!1,s=!1;n&&(r=!F(e),s=Bt(e),e=rt(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function qr(e,t,n={},r,i){if(V.ce||V.parent&&Sr(V.parent)&&V.parent.ce){let e=Object.keys(n).length>0;return t!=="default"&&(n.name=t),la(),ha(q,null,[X(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),la();let o=a&&Jr(a(n)),s=n.key||o&&o.key,c=ha(q,{key:(s&&!_(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function Jr(e){return e.some(e=>ga(e)?!(e.type===J||e.type===q&&!Jr(e.children)):!0)?e:null}var Yr=e=>e?za(e)?Ya(e):Yr(e.parent):null,Xr=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Yr(e.parent),$root:e=>Yr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ai(e),$forceUpdate:e=>e.f||=()=>{Sn(e.update)},$nextTick:e=>e.n||=bn.bind(e.proxy),$watch:e=>Vn.bind(e)}),Zr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),Qr={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(Zr(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else ei&&(s[n]=0)}let d=Xr[n],f,p;if(d)return n===`$attrs`&&P(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return Zr(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||Zr(n,c)||u(o,c)||u(i,c)||u(Xr,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function $r(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var ei=!0;function ti(e){let t=ai(e),n=e.proxy,i=e.ctx;ei=!1,t.beforeCreate&&ri(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:ee,renderTriggered:te,errorCaptured:E,serverPrefetch:ne,expose:D,inheritAttrs:O,components:re,directives:k,filters:ie}=t;if(u&&ni(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=Ft(t))}if(ei=!0,o)for(let e in o){let t=o[e],a=Q({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)ii(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Pn(t,e[t])})}f&&ri(f,e,`c`);function A(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(A(Ar,p),A(jr,m),A(Mr,g),A(Nr,_),A(wr,y),A(Tr,b),A(zr,E),A(Rr,ee),A(Lr,te),A(Pr,S),A(Fr,w),A(Ir,ne),d(D))if(D.length){let t=e.exposed||={};D.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};T&&e.render===r&&(e.render=T),O!=null&&(e.inheritAttrs=O),re&&(e.components=re),k&&(e.directives=k),ne&&_r(e)}function ni(e,t,n=r){d(e)&&(e=ui(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?H(r.from||n,r.default,!0):H(r.from||n):H(r),R(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function ri(e,t,n){z(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ii(e,t,n,r){let i=r.includes(`.`)?Hn(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&zn(i,n)}else if(h(e))zn(i,e.bind(n));else if(v(e))if(d(e))e.forEach(e=>ii(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&zn(i,r,e)}}function ai(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>oi(c,e,o,!0)),oi(c,t,o)),v(t)&&a.set(t,c),c}function oi(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&oi(e,a,n,!0),i&&i.forEach(t=>oi(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=si[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var si={data:ci,props:fi,emits:fi,methods:di,computed:di,beforeCreate:G,created:G,beforeMount:G,mounted:G,beforeUpdate:G,updated:G,beforeDestroy:G,beforeUnmount:G,destroyed:G,unmounted:G,activated:G,deactivated:G,errorCaptured:G,serverPrefetch:G,components:di,directives:di,watch:pi,provide:ci,inject:li};function ci(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function li(e,t){return di(ui(e),ui(t))}function ui(e){if(d(e)){let t={};for(let n=0;nt===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${D(t)}Modifiers`];function yi(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&vi(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=r.map(ae)));let c,l=i[c=re(n)]||i[c=re(E(n))];!l&&o&&(l=i[c=re(D(n))]),l&&z(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,z(u,e,6,a)}}var bi=new WeakMap;function xi(e,t,n=!1){let r=n?bi:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=xi(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function Si(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,D(t))||u(e,t))}function Ci(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=An(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ea(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Ea(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:wi(c)}}catch(t){ca.length=0,fn(t,e,1),v=X(J)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Ti(y,a)),b=Ca(b,y,!1,!0))}return n.dirs&&(b=Ca(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&mr(b,n.transition),v=b,An(_),v}var wi=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Ti=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ei(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Di(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(Ai),Mi=e=>Object.getPrototypeOf(e)===Ai;function Ni(e,t,n,r=!1){let i={},a=ji();e.propsDefaults=Object.create(null),Fi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:It(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Pi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=I(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{p=!0;let[t,n]=Ri(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,Vi=e=>d(e)?e.map(Ea):[Ea(e)],Hi=(e,t,n)=>{if(t._n)return t;let r=jn((...e)=>Vi(t(...e)),n);return r._c=!1,r},Ui=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Bi(n))continue;let i=e[n];if(h(i))t[n]=Hi(n,i,r);else if(i!=null){let e=Vi(i);t[n]=()=>e}}},Wi=(e,t)=>{let n=Vi(t);e.slots.default=()=>n},Gi=(e,t,n)=>{for(let r in t)(n||!Bi(r))&&(e[r]=t[r])},Ki=(e,t,n)=>{let r=e.slots=ji();if(e.vnode.shapeFlag&32){let e=t._;e?(Gi(r,t,n),n&&A(r,`_`,e,!0)):Ui(t,r)}else t&&Wi(e,t)},qi=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:Gi(a,n,r):(o=!n.$stable,Ui(n,a)),s=n}else n&&(Wi(e,n),s={default:1});if(o)for(let e in a)!Bi(e)&&s[e]==null&&delete a[e]},K=aa;function Ji(e){return Yi(e)}function Yi(e,i){let a=ce();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!_a(e,t)&&(r=_e(e),fe(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case oa:y(e,t,n,r);break;case J:b(e,t,n,r);break;case sa:e??x(t,n,r,o);break;case q:re(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?k(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,be)}u!=null&&i?br(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&br(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ne(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&E(e.children,d,null,r,i,Xi(e,a),s,u),_&&Nn(e,null,r,`created`),te(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!T(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Aa(f,r,e)}_&&Nn(e,null,r,`beforeMount`);let v=Qi(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&K(()=>{try{f&&Aa(f,r,e),v&&g.enter(d),_&&Nn(e,null,r,`mounted`)}finally{}},i)},te=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&Zi(r,!1),(g=h.onVnodeBeforeUpdate)&&Aa(g,r,n,e),f&&Nn(n,e,r,`beforeUpdate`),r&&Zi(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?D(e.dynamicChildren,d,l,r,i,Xi(n,a),o):s||j(e,n,l,null,r,i,Xi(n,a),o,!1),u>0){if(u&16)O(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t{g&&Aa(g,r,n,e),f&&Nn(n,e,r,`updated`)},i)},D=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(n!==r){if(n!==t)for(let t in n)!T(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(T(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},re=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),E(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(D(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&$i(e,t,!0)):j(e,t,n,f,i,a,s,c,l)},k=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):A(t,n,r,i,a,o,c):ae(e,t,c)},A=(e,t,n,r,i,a,o)=>{let s=e.component=Na(e,r,i);if(Cr(e)&&(s.ctx.renderer=be),Va(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,oe,o),!e.el){let r=s.subTree=X(J);b(null,r,t,n),e.placeholder=r.el}}else oe(s,e,t,n,i,a,o)},ae=(e,t,n)=>{let r=t.component=e.component;if(Ei(e,t,n))if(r.asyncDep&&!r.asyncResolved){se(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},oe=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=ta(e);if(n){t&&(t.el=c.el,se(e,t,o)),n.asyncDep.then(()=>{K(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Zi(e,!1),t?(t.el=c.el,se(e,t,o)):t=c,n&&ie(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Aa(d,s,t,c),Zi(e,!0);let f=Ci(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),_e(p),e,i,a),t.el=f.el,u===null&&ki(e,f.el),r&&K(r,i),(d=t.props&&t.props.onVnodeUpdated)&&K(()=>Aa(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Sr(t);if(Zi(e,!1),l&&ie(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Aa(o,d,t),Zi(e,!0),s&&Se){let t=()=>{e.subTree=Ci(e),Se(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Ci(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&K(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;K(()=>Aa(o,d,e),i)}(t.shapeFlag&256||d&&Sr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&K(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Oe(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Sn(u),Zi(e,!0),l()},se=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Pi(e,t.props,r,n),qi(e,t.children,n),Ue(),Tn(e),We()},j=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ue(l,d,n,r,i,a,o,s,c);return}else if(f&256){le(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ge(l,i,a),d!==l&&p(n,d)):u&16?m&16?ue(l,d,n,r,i,a,o,s,c):ge(l,i,a,!0):(u&8&&p(n,``),m&16&&E(d,n,r,i,a,o,s,c))},le=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;pd?ge(e,a,o,!0,!1,f):E(t,r,i,a,o,s,c,l,f)},ue=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?Da(t[u]):Ea(t[u]);if(_a(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?Da(t[p]):Ea(t[p]);if(_a(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=ep)for(;u<=f;)fe(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Da(t[u]):Ea(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u=b){fe(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&_a(n,t[_])){i=_;break}i===void 0?fe(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?ea(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){de(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,be);return}if(c===q){o(a,t,n);for(let e=0;el.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[U];a._isLeaving&&a[U](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},fe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Ue(),br(s,null,n,e,!0),We()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Sr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Aa(_,t,e),u&6)he(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Nn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==q||d>0&&d&64)?ge(l,t,n,!1,!0):(a===q&&d&384||!i&&u&16)&&ge(c,t,n),r&&pe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&K(()=>{_&&Aa(_,t,e),h&&Nn(e,null,t,`unmounted`),v&&(e.el=null)},n)},pe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===q){me(n,r);return}if(t===sa){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},me=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},he=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;na(c),na(l),r&&ie(r),i.stop(),a&&(a.flags|=8,fe(o,e,t,n)),s&&K(s,t),K(()=>{e.isUnmounted=!0},t)},ge=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return _e(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Wn];return n?h(n):t},ve=!1,ye=(e,t,n)=>{let r;e==null?t._vnode&&(fe(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,Tn(r),En(),!1)},be={p:v,um:fe,m:de,r:pe,mt:A,mc:E,pc:j,pbc:D,n:_e,o:e},xe,Se;return i&&([xe,Se]=i(be)),{render:ye,hydrate:xe,createApp:gi(ye,xe)}}function Xi({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Zi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Qi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $i(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function ta(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ta(t)}function na(e){if(e)for(let t=0;te.__isSuspense;function aa(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):wn(e)}var q=Symbol.for(`v-fgt`),oa=Symbol.for(`v-txt`),J=Symbol.for(`v-cmt`),sa=Symbol.for(`v-stc`),ca=[],Y=null;function la(e=!1){ca.push(Y=e?null:[])}function ua(){ca.pop(),Y=ca[ca.length-1]||null}var da=1;function fa(e,t=!1){da+=e,e<0&&Y&&t&&(Y.hasOnce=!0)}function pa(e){return e.dynamicChildren=da>0?Y||n:null,ua(),da>0&&Y&&Y.push(e),e}function ma(e,t,n,r,i,a){return pa(ba(e,t,n,r,i,a,!0))}function ha(e,t,n,r,i){return pa(X(e,t,n,r,i,!0))}function ga(e){return e?e.__v_isVNode===!0:!1}function _a(e,t){return e.type===t.type&&e.key===t.key}var va=({key:e})=>e??null,ya=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||R(e)||h(e)?{i:V,r:e,k:t,f:!!n}:e);function ba(e,t=null,n=null,r=0,i=null,a=e===q?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&va(t),ref:t&&ya(t),scopeId:kn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:V};return s?(Oa(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),da>0&&!o&&Y&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Y.push(c),c}var X=xa;function xa(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Hr)&&(e=J),ga(e)){let r=Ca(e,t,!0);return n&&Oa(r,n),da>0&&!a&&Y&&(r.shapeFlag&6?Y[Y.indexOf(e)]=r:Y.push(r)),r.patchFlag=-2,r}if(Za(e)&&(e=e.__vccOpts),t){t=Sa(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=pe(e)),v(n)&&(Vt(n)&&!d(n)&&(n=s({},n)),t.style=j(n))}let o=g(e)?1:ia(e)?128:Gn(e)?64:v(e)?4:h(e)?2:0;return ba(e,t,n,r,i,o,a,!0)}function Sa(e){return e?Vt(e)||Mi(e)?s({},e):e:null}function Ca(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?ka(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&va(l),ref:t&&t.ref?n&&a?d(a)?a.concat(ya(t)):[a,ya(t)]:ya(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==q?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ca(e.ssContent),ssFallback:e.ssFallback&&Ca(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&mr(u,c.clone(u)),u}function wa(e=` `,t=0){return X(oa,null,e,t)}function Ta(e=``,t=!1){return t?(la(),ha(J,null,e)):X(J,null,e)}function Ea(e){return e==null||typeof e==`boolean`?X(J):d(e)?X(q,null,e.slice()):ga(e)?Da(e):X(oa,null,String(e))}function Da(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ca(e)}function Oa(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Oa(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!Mi(t)?t._ctx=V:r===3&&V&&(V.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(h(t)){if(r&65){Oa(e,{default:t});return}t={default:t,_ctx:V},n=32}else t=String(t),r&64?(n=16,t=[wa(t)]):n=8;e.children=t,e.shapeFlag|=n}function ka(...e){let t={};for(let n=0;nZ||V,Fa,Ia;{let e=ce(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Fa=t(`__VUE_INSTANCE_SETTERS__`,e=>Z=e),Ia=t(`__VUE_SSR_SETTERS__`,e=>Ba=e)}var La=e=>{let t=Z;return Fa(e),e.scope.on(),()=>{e.scope.off(),Fa(t)}},Ra=()=>{Z&&Z.scope.off(),Fa(null)};function za(e){return e.vnode.shapeFlag&4}var Ba=!1;function Va(e,t=!1,n=!1){t&&Ia(t);let{props:r,children:i}=e.vnode,a=za(e);Ni(e,r,a,t),Ki(e,i,n||t);let o=a?Ha(e,t):void 0;return t&&Ia(!1),o}function Ha(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Qr);let{setup:r}=n;if(r){Ue();let n=e.setupContext=r.length>1?Ja(e):null,i=La(e),a=dn(r,e,0,[e.props,n]),o=y(a);if(We(),i(),(o||e.sp)&&!Sr(e)&&_r(e),o){if(a.then(Ra,Ra),t)return a.then(n=>{Ua(e,n,t)}).catch(t=>{fn(t,e,0)});e.asyncDep=a}else Ua(e,a,t)}else Ka(e,t)}function Ua(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=Xt(t)),Ka(e,n)}var Wa,Ga;function Ka(e,t,n){let i=e.type;if(!e.render){if(!t&&Wa&&!i.render){let t=i.template||ai(e).template;if(t){let{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:o}=i;i.render=Wa(t,s(s({isCustomElement:n,delimiters:a},r),o))}}e.render=i.render||r,Ga&&Ga(e)}{let t=La(e);Ue();try{ti(e)}finally{We(),t()}}}var qa={get(e,t){return P(e,`get`,``),e[t]}};function Ja(e){return{attrs:new Proxy(e.attrs,qa),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ya(e){return e.exposed?e.exposeProxy||=new Proxy(Xt(Ht(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Xr)return Xr[n](e)},has(e,t){return t in e||t in Xr}}):e.proxy}function Xa(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}function Za(e){return h(e)&&`__vccOpts`in e}var Q=(e,t)=>rn(e,t,Ba);function Qa(e,t,n){try{fa(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?ga(t)?X(e,null,[t]):X(e,t):X(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ga(n)&&(n=[n]),X(e,t,n))}finally{fa(1)}}var $a=`3.5.39`,eo=typeof window<`u`,to,no=e=>to=e,ro=Symbol();function io(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var ao;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(ao||={});var oo=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function so(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function co(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){mo(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function lo(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function uo(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var fo=typeof navigator==`object`?navigator:{userAgent:``},po=/Macintosh/.test(fo.userAgent)&&/AppleWebKit/.test(fo.userAgent)&&!/Safari/.test(fo.userAgent),mo=eo?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!po?ho:`msSaveOrOpenBlob`in fo?go:_o:()=>{};function ho(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?uo(r):lo(r.href)?co(e,t,n):(r.target=`_blank`,uo(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){uo(r)},0))}function go(e,t=`download`,n){if(typeof e==`string`)if(lo(e))co(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){uo(t)})}else navigator.msSaveOrOpenBlob(so(e,n),t)}function _o(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return co(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(oo.HTMLElement))||`safari`in oo,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||po)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:vo}=Object;function yo(){let e=we(!0),t=e.run(()=>Wt({})),n=[],r=[],i=Ht({install(e){no(i),i._a=e,e.provide(ro,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var bo=()=>{};function xo(e,t,n,r=bo){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&Te()&&Ee(i),i}function So(e,...t){e.forEach(e=>{e(...t)})}var Co=e=>e(),wo=Symbol(),To=Symbol();function Eo(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];io(i)&&io(r)&&e.hasOwnProperty(n)&&!R(r)&&!zt(r)?e[n]=Eo(i,r):e[n]=r}return e}var Do=Symbol();function Oo(e){return!io(e)||!Object.prototype.hasOwnProperty.call(e,Do)}var{assign:ko}=Object;function Ao(e){return!!(R(e)&&e.effect)}function jo(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),ko(Zt(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=Ht(Q(()=>{no(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=Mo(e,l,t,n,r,!0),c}function Mo(e,t,n={},r,i,a){let o,s=ko({actions:{}},n),c={deep:!0},l,u,d=new Set,f=new Set,p=r.state.value[e];!a&&!p&&(r.state.value[e]={});let m;function h(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:ao.patchFunction,storeId:e,events:void 0}):(Eo(r.state.value[e],t),n={type:ao.patchObject,payload:t,storeId:e,events:void 0});let i=m=Symbol();bn().then(()=>{m===i&&(l=!0)}),u=!0,So(d,n,r.state.value[e])}let g=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{ko(e,t)})}:bo;function _(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}let v=(t,n=``)=>{if(wo in t)return t[To]=n,t;let i=function(){no(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}So(f,{args:n,name:i[To],store:y,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:y,n)}catch(e){throw So(o,e),e}return l instanceof Promise?l.then(e=>(So(a,e),e)).catch(e=>(So(o,e),Promise.reject(e))):(So(a,l),l)};return i[wo]=!0,i[To]=n,i},y=Ft({_p:r,$id:e,$onAction:xo.bind(null,f),$patch:h,$reset:g,$subscribe(t,n={}){let i=xo(d,t,n.detached,()=>a()),a=o.run(()=>zn(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:ao.direct,events:void 0},r)},ko({},c,n)));return i},$dispose:_});r._s.set(e,y);let b=(r._a&&r._a.runWithContext||Co)(()=>r._e.run(()=>(o=we()).run(()=>t({action:v}))));for(let t in b){let n=b[t];R(n)&&!Ao(n)||zt(n)?a||(p&&Oo(n)&&(R(n)?n.value=p[t]:Eo(n,p[t])),r.state.value[e][t]=n):typeof n==`function`&&(b[t]=v(n,t),s.actions[t]=n)}return ko(y,b),ko(I(y),b),Object.defineProperty(y,"$state",{get:()=>r.state.value[e],set:e=>{h(t=>{ko(t,e)})}}),r._p.forEach(e=>{ko(y,o.run(()=>e({store:y,app:r._a,pinia:r,options:s})))}),p&&a&&n.hydrate&&n.hydrate(y.$state,p),l=!0,u=!0,y}function No(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=Fn();return n||=o?H(ro,null):null,n&&no(n),n=to,n._s.has(e)||(i?Mo(e,t,r,n):jo(e,r,n)),n._s.get(e)}return a.$id=e,a}function Po(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Fo=typeof document<`u`;function Io(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Lo(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Io(e.default)}var $=Object.assign;function Ro(e,t){let n={};for(let r in t){let i=t[r];n[r]=Bo(i)?i.map(e):e(i)}return n}var zo=()=>{},Bo=Array.isArray;function Vo(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Ho=Symbol(``);function Uo(e,t){return $(Error(),{type:e,[Ho]:!0},t)}function Wo(e,t){return e instanceof Error&&Ho in e&&(t==null||!!(e.type&t))}var Go=Symbol(``),Ko=Symbol(``),qo=Symbol(``),Jo=Symbol(``),Yo=Symbol(``);function Xo(){return H(qo)}function Zo(e){return H(Jo)}var Qo=/#/g,$o=/&/g,es=/\//g,ts=/=/g,ns=/\?/g,rs=/\+/g,is=/%5B/g,as=/%5D/g,os=/%5E/g,ss=/%60/g,cs=/%7B/g,ls=/%7C/g,us=/%7D/g,ds=/%20/g;function fs(e){return e==null?``:encodeURI(``+e).replace(ls,`|`).replace(is,`[`).replace(as,`]`)}function ps(e){return fs(e).replace(cs,`{`).replace(us,`}`).replace(os,`^`)}function ms(e){return fs(e).replace(rs,`%2B`).replace(ds,`+`).replace(Qo,`%23`).replace($o,`%26`).replace(ss,"`").replace(cs,`{`).replace(us,`}`).replace(os,`^`)}function hs(e){return ms(e).replace(ts,`%3D`)}function gs(e){return fs(e).replace(Qo,`%23`).replace(ns,`%3F`)}function _s(e){return gs(e).replace(es,`%2F`)}function vs(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var ys=/\/$/,bs=e=>e.replace(ys,``);function xs(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=ks(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:vs(o)}}function Ss(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Cs(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function ws(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Ts(t.matched[r],n.matched[i])&&Es(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ts(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Es(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ds(e[n],t[n]))return!1;return!0}function Ds(e,t){return Bo(e)?Os(e,t):Bo(t)?Os(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Os(e,t){return Bo(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function ks(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var As={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function js(e){if(!e)if(Fo){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),bs(e)}var Ms=/^[^#]+#/;function Ns(e,t){return e.replace(Ms,`#`)+t}function Ps(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Fs=()=>({left:window.scrollX,top:window.scrollY});function Is(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Ps(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Ls(e,t){return(history.state?history.state.position-t:-1)+e}var Rs=new Map;function zs(e,t){Rs.set(e,t)}function Bs(e){let t=Rs.get(e);return Rs.delete(e),t}function Vs(e){return typeof e==`string`||e&&typeof e==`object`}function Hs(e){return typeof e==`string`||typeof e==`symbol`}function Us(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&ms(e)):[r&&ms(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Gs(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Bo(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Ks(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function qs(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Uo(4,{from:n,to:t})):e instanceof Error?c(e):Vs(e)?c(Uo(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Js(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Io(s)){let c=(s.__vccOpts||s)[t];c&&a.push(qs(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Lo(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&qs(c,n,r,o,e,i)()}))}}return a}function Ys(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oTs(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Ts(e,s))||i.push(s))}return[n,r,i]}var Xs=()=>location.protocol+`//`+location.host;function Zs(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Cs(n,``)}return Cs(n,e)+r+i}function Qs(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Zs(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState($({},e.state,{scroll:Fs()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function $s(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Fs():null}}function ec(e){let{history:t,location:n}=window,r={value:Zs(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Xs()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,$({},t.state,$s(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=$({},i.value,t.state,{forward:e,scroll:Fs()});a(o.current,o,!0),a(e,$({},$s(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function tc(e){e=js(e);let t=ec(e),n=Qs(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=$({location:``,base:e,go:r,createHref:Ns.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var nc={type:0,value:``},rc=/[a-zA-Z0-9_]/;function ic(e){if(!e)return[[]];if(e===`/`)return[[nc]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function uc(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var fc={strict:!1,end:!0,sensitive:!1};function pc(e,t,n){let r=$(cc(ic(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function mc(e,t){let n=[],r=new Map;t=Vo(fc,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=gc(e);s.aliasOf=r&&r.record;let l=Vo(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(gc($({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=pc(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!vc(d)&&o(e.name)),Sc(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:zo}function o(e){if(Hs(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=bc(e,n);n.splice(t,0,e),e.record.name&&!vc(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Uo(1,{location:e});s=i.record.name,a=$(hc(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&hc(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Uo(1,{location:e,currentLocation:t});s=i.record.name,a=$({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:yc(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function hc(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function gc(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_c(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function _c(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function vc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yc(e){return e.reduce((e,t)=>$(e,t.meta),{})}function bc(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;uc(e,t[i])<0?r=i:n=i+1}let i=xc(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function xc(e){let t=e;for(;t=t.parent;)if(Sc(t)&&uc(e,t)===0)return t}function Sc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Cc(e){let t=H(qo),n=H(Jo),r=Q(()=>{let n=Jt(e.to);return t.resolve(n)}),i=Q(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Ts.bind(null,i));if(o>-1)return o;let s=Oc(e[t-2]);return t>1&&Oc(i)===s&&a[a.length-1].path!==s?a.findIndex(Ts.bind(null,e[t-2])):o}),a=Q(()=>i.value>-1&&Dc(n.params,r.value.params)),o=Q(()=>i.value>-1&&i.value===n.matched.length-1&&Es(n.params,r.value.params));function s(n={}){if(Ec(n)){let n=t[Jt(e.replace)?`replace`:`push`](Jt(e.to)).catch(zo);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:Q(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function wc(e){return e.length===1?e[0]:e}var Tc=gr({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Cc,setup(e,{slots:t}){let n=Ft(Cc(e)),{options:r}=H(qo),i=Q(()=>({[kc(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[kc(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&wc(t.default(n));return e.custom?r:Qa(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Ec(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Dc(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!Bo(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Oc(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var kc=(e,t,n)=>e??t??n,Ac=gr({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=H(Yo),i=Q(()=>e.route||r.value),a=H(Ko,0),o=Q(()=>{let e=Jt(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=Q(()=>i.value.matched[o.value]);Pn(Ko,Q(()=>o.value+1)),Pn(Go,s),Pn(Yo,i);let c=Wt();return zn(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Ts(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return jc(n.default,{Component:l,route:r});let u=o.props[a],d=Qa(l,$({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return jc(n.default,{Component:d,route:r})||d}}});function jc(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Mc=Ac;function Nc(e){let t=mc(e.routes,e),n=e.parseQuery||Us,r=e.stringifyQuery||Ws,i=e.history,a=Ks(),o=Ks(),s=Ks(),c=Gt(As),l=As;Fo&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Ro.bind(null,e=>``+e),d=Ro.bind(null,_s),f=Ro.bind(null,vs);function p(e,n){let r,i;return Hs(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=$({},a||c.value),typeof e==`string`){let r=xs(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return $(r,o,{params:f(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=$({},e,{path:xs(n,e.path,a.path).path});else{let t=$({},e.params);for(let e in t)t[e]??delete t[e];o=$({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=Ss(r,$({},e,{hash:ps(l),path:s.path})),m=i.createHref(p);return $({fullPath:p,hash:l,query:r===Ws?Gs(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?xs(n,e,c.value.path):$({},e)}function y(e,t){if(l!==e)return Uo(8,{from:t,to:e})}function b(e){return C(e)}function x(e){return b($(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),$({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C($(v(u),{state:typeof u==`object`?$({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&ws(r,i,n)&&(f=Uo(16,{to:d,from:i}),oe(i,i,!0,!1)),(f?Promise.resolve(f):ee(d,i)).catch(e=>Wo(e)?Wo(e,2)?e:ae(e):ie(e,d,i)).then(e=>{if(e){if(Wo(e,2))return C($({replace:s},v(e.to),{state:typeof e.to==`object`?$({},a,e.to.state):a,force:o}),t||d)}else e=E(d,i,!0,s,a);return te(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=j.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ee(e,t){let n,[r,i,s]=Ys(e,t);n=Js(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(qs(r,e,t))});let c=w.bind(null,e,t);return n.push(c),ue(n).then(()=>{n=[];for(let r of a.list())n.push(qs(r,e,t));return n.push(c),ue(n)}).then(()=>{n=Js(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(qs(r,e,t))});return n.push(c),ue(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(Bo(r.beforeEnter))for(let i of r.beforeEnter)n.push(qs(i,e,t));else n.push(qs(r.beforeEnter,e,t));return n.push(c),ue(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Js(s,`beforeRouteEnter`,e,t,T),n.push(c),ue(n))).then(()=>{n=[];for(let r of o.list())n.push(qs(r,e,t));return n.push(c),ue(n)}).catch(e=>Wo(e,8)?e:Promise.reject(e))}function te(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function E(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===As,l=Fo?history.state:{};n&&(r||s?i.replace(e.fullPath,$({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,oe(e,t,n,s),ae()}let ne;function D(){ne||=i.listen((e,t,n)=>{if(!le.listening)return;let r=_(e),a=S(r,le.currentRoute.value);if(a){C($(a,{replace:!0,force:!0}),r).catch(zo);return}l=r;let o=c.value;Fo&&zs(Ls(o.fullPath,n.delta),Fs()),ee(r,o).catch(e=>Wo(e,12)?e:Wo(e,2)?(C($(v(e.to),{force:!0}),r).then(e=>{Wo(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(zo),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ie(e,r,o))).then(e=>{e||=E(r,o,!1),e&&(n.delta&&!Wo(e,8)?i.go(-n.delta,!1):n.type===`pop`&&Wo(e,20)&&i.go(-1,!1)),te(r,o,e)}).catch(zo)})}let O=Ks(),re=Ks(),k;function ie(e,t,n){ae(e);let r=re.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function A(){return k&&c.value!==As?Promise.resolve():new Promise((e,t)=>{O.add([e,t])})}function ae(e){return k||(k=!e,D(),O.list().forEach(([t,n])=>e?n(e):t()),O.reset()),e}function oe(t,n,r,i){let{scrollBehavior:a}=e;if(!Fo||!a)return Promise.resolve();let o=!r&&Bs(Ls(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return bn().then(()=>a(t,n,o)).then(e=>e&&Is(e)).catch(e=>ie(e,t,n))}let se=e=>i.go(e),ce,j=new Set,le={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:se,back:()=>se(-1),forward:()=>se(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:re.add,isReady:A,install(e){e.component(`RouterLink`,Tc),e.component(`RouterView`,Mc),e.config.globalProperties.$router=le,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Jt(c)}),Fo&&!ce&&c.value===As&&(ce=!0,b(i.location).catch(e=>{}));let t={};for(let e in As)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(qo,le),e.provide(Jo,It(t)),e.provide(Yo,c);let n=e.unmount;j.add(e),e.unmount=function(){j.delete(e),j.size<1&&(l=As,ne&&ne(),ne=null,c.value=As,ce=!1,k=!1),n()}}};function ue(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return le}function Pc(e){return{GetParticipation(t){let n=JSON.stringify(t),r=[],i=`api/participation/get`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetParticipation`})},AnswerParticipation(t){let n=JSON.stringify(t),r=[],i=`api/participation/answer`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AnswerParticipation`})},Ping(t){let n=[],r=`api/test/ping`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`Ping`})},Echo(t){let n=[];t.text&&n.push(`text=${encodeURIComponent(t.text.toString())}`);let r=`api/test/echo`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`POST`,body:null},{service:`EveningDetectiveServer`,method:`Echo`})},Signup(t){let n=JSON.stringify(t),r=[],i=`api/auth/signup`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Signup`})},RefreshPassword(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh-password`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`RefreshPassword`})},Login(t){let n=JSON.stringify(t),r=[],i=`api/auth/login`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Login`})},Refresh(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Refresh`})},DeleteAccount(t){let n=[],r=`api/auth/delete-account`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteAccount`})},GetTerms(t){let n=[],r=`api/terms`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTerms`})},GetPrivacy(t){let n=[],r=`api/privacy`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPrivacy`})},GetConsent(t){let n=[],r=`api/consent`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetConsent`})},GetUsers(t){let n=[],r=`api/users`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUsers`})},GetUserById(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUserById`})},GetMe(t){let n=[],r=`api/users/me`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMe`})},ChangeUserPassword(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/password`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`ChangeUserPassword`})},AddUserRole(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/role/add`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddUserRole`})},DeleteUserRole(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/role/delete`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`DeleteUserRole`})},GetPermissions(t){let n=[],r=`api/ui/permissions`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPermissions`})},UploadFile(t){let n=JSON.stringify(t),r=[],i=`api/files/upload`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`UploadFile`})},DownloadFile(t){if(!t.filename)throw Error(`missing required field request.filename`);let n=`api/files/${t.filename}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadFile`})},AddScenario(t){let n=JSON.stringify(t),r=[],i=`api/scenario`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddScenario`})},GetMyScenarios(t){let n=[],r=`api/my-scenarios`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMyScenarios`})},GetScenariosCatalog(t){let n=[],r=`api/catalog`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenariosCatalog`})},GetFullScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/full`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetFullScenario`})},GetScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenario`})},UpdateScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenario`})},PublicScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/public`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PublicScenario`})},DraftScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/draft`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`DraftScenario`})},DeleteScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenario`})},AddScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/places`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddScenarioPlace`})},UpdateScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/places/${t.code}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioPlace`})},DeleteScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/places/${t.code}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenarioPlace`})},AddScenarioQuestion(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/questions`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddScenarioQuestion`})},UpdateScenarioQuestion(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/questions/${t.code}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioQuestion`})},DeleteScenarioQuestion(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/questions/${t.code}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenarioQuestion`})},UpdateScenarioBackground(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/background`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioBackground`})},UpdateScenarioIntro(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/introduction`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioIntro`})},UpdateScenarioConclusion(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/conclusion`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioConclusion`})},DownloadScenarioArchive(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/archive`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadScenarioArchive`})},UploadScenarioArchive(t){let n=JSON.stringify(t),r=[],i=`api/scenarios/archive`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`UploadScenarioArchive`})},AddGame(t){let n=JSON.stringify(t),r=[],i=`api/games`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddGame`})},GetGames(t){let n=[],r=`api/games`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGames`})},GetGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGame`})},CreateScreenSession(t){let n=JSON.stringify(t),r=[],i=`api/screens`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`CreateScreenSession`})},GetScreenState(t){let n=JSON.stringify(t),r=[],i=`api/screens/state`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetScreenState`})},GetGameScreens(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/screens`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameScreens`})},BindScreen(t){if(!t.screenId)throw Error(`missing required field request.screenId`);let n=`api/screens/${t.screenId}/bind`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`BindScreen`})},UnbindScreen(t){if(!t.screenId)throw Error(`missing required field request.screenId`);let n=`api/screens/${t.screenId}/unbind`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`UnbindScreen`})},SetScreenSound(t){if(!t.screenId)throw Error(`missing required field request.screenId`);let n=`api/screens/${t.screenId}/sound`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenSound`})},GetGameMap(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/map`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameMap`})},UpdateGameMapItem(t){if(!t.gameId)throw Error(`missing required field request.gameId`);if(!t.kind)throw Error(`missing required field request.kind`);if(!t.itemId)throw Error(`missing required field request.itemId`);let n=`api/games/${t.gameId}/map/items/${t.kind}/${t.itemId}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`UpdateGameMapItem`})},SetScreenMode(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/screens/mode`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenMode`})},SendScreenCommand(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/screens/command`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SendScreenCommand`})},GetScreenResults(t){let n=JSON.stringify(t),r=[],i=`api/screens/results`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetScreenResults`})},DownloadTeamQR(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/teams/qr.pdf`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadTeamQR`})},GetGameAnswers(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/answers`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameAnswers`})},GetGameResults(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/results`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameResults`})},CreateGameReview(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/reviews`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`CreateGameReview`})},GetGameReviews(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameReviews`})},GetGameReviewsForModeration(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/admin/games/${t.gameId}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameReviewsForModeration`})},GetReviewsForModeration(t){let n=[],r=`api/admin/game-reviews`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetReviewsForModeration`})},ModerateGameReview(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/admin/game-reviews/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`ModerateGameReview`})},UpdateGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateGame`})},StartGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/start`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`StartGame`})},PauseGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/pause`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PauseGame`})},PlayGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/play`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PlayGame`})},FinishGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/finish`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`FinishGame`})},ResetGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/reset`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`ResetGame`})},DeleteGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteGame`})},AddTeam(t){let n=JSON.stringify(t),r=[],i=`api/teams`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddTeam`})},UpdateTeam(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateTeam`})},DeleteTeam(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteTeam`})},GiveTeamApplications(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/applications`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`GiveTeamApplications`})},GetTeamStory(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/story`,r=[];t.password&&r.push(`password=${encodeURIComponent(t.password.toString())}`);let i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTeamStory`})},AddTeamAction(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/actions`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddTeamAction`})},DeleteLastTeamAction(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/last-actions`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteLastTeamAction`})},GetTeamAnswers(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/answers`,r=[];t.password&&r.push(`password=${encodeURIComponent(t.password.toString())}`);let i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTeamAnswers`})},SubmitTeamAnswers(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/answers`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SubmitTeamAnswers`})},SetTeamAnswerScore(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.questionCode)throw Error(`missing required field request.questionCode`);let n=`api/teams/${t.id}/answers/${t.questionCode}/score`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`SetTeamAnswerScore`})}}}function Fc(e,t){return Pc(Ic(e,t))}function Ic(e,t){return async n=>{let r=`${Lc()}/${n.path}`,i={"Content-Type":`application/json`},a=e?.();a&&(i.Authorization=`Bearer ${a}`);let o=t?.();o&&Object.assign(i,o);let s=await fetch(r,{method:n.method,headers:i,body:n.body});if(s.status==401)throw Error(`unauthorized`);return await s.json()}}function Lc(){return`https://evening-detective.crabs-games.art`}var Rc=No(`auth`,()=>{let e=Wt(null),t=Wt(null),n=Wt(null),r=Wt(!1),i=Wt(null),a=Q(()=>!!e.value),o=Q(()=>n.value?.username||``),s=Q(()=>n.value?.roles||[]);function c(){let n=localStorage.getItem(`accessToken`),r=localStorage.getItem(`refreshToken`);n&&(e.value=n,t.value=r,u())}function l(){return e.value}async function u(){if(e.value)try{let e=await Fc(l).GetMe({});if(e.error){i.value=e.error;return}e.user&&(n.value=e.user)}catch(e){console.error(`Failed to fetch user:`,e),e instanceof Error&&e.message.includes(`401`)&&await g()}}async function d(n,a){r.value=!0,i.value=null;try{let r=await Fc(l).Login({email:n,password:a});return r.error?(i.value=r.error,!1):r.accessToken?(e.value=r.accessToken,t.value=r.refreshToken||null,localStorage.setItem(`accessToken`,r.accessToken),r.refreshToken&&localStorage.setItem(`refreshToken`,r.refreshToken),await u(),!0):!1}catch(e){return i.value=e instanceof Error?e.message:`Login failed`,!1}finally{r.value=!1}}async function f(){if(!t.value)return!1;try{let n=await Fc(l).Refresh({refreshToken:t.value});return n.error||!n.accessToken?!1:(e.value=n.accessToken,t.value=n.refreshToken||null,localStorage.setItem(`accessToken`,n.accessToken),n.refreshToken&&localStorage.setItem(`refreshToken`,n.refreshToken),!0)}catch{return!1}}async function p(e,t,n,a){r.value=!0,i.value=null;try{let r=await Fc(l).Signup({username:e,email:t,acceptTerms:n,acceptPrivacy:a});return r.error?(i.value=r.error,!1):!0}catch(e){return i.value=e instanceof Error?e.message:`Signup failed`,!1}finally{r.value=!1}}async function m(e){r.value=!0,i.value=null;try{let t=await Fc(l,()=>({"X-Password":e})).DeleteAccount({});return t.error?(i.value=t.error,!1):(await g(),!0)}catch(e){return i.value=e instanceof Error?e.message:`Account deletion failed`,!1}finally{r.value=!1}}async function h(e){r.value=!0,i.value=null;try{let t=await Fc(l).RefreshPassword({email:e});return t.error?(i.value=t.error,!1):!0}catch(e){return i.value=e instanceof Error?e.message:`Password reset failed`,!1}finally{r.value=!1}}async function g(){e.value=null,t.value=null,n.value=null,i.value=null,localStorage.removeItem(`accessToken`),localStorage.removeItem(`refreshToken`)}function _(e){return s.value.includes(e)}function v(e){return e.some(e=>s.value.includes(e))}return{accessToken:e,refreshToken:t,user:n,isLoading:r,error:i,isAuthenticated:a,username:o,userRoles:s,initFromStorage:c,getToken:l,login:d,signup:p,deleteAccount:m,refreshPassword:h,logout:g,fetchUser:u,refreshTokenAction:f,hasRole:_,hasAnyRole:v}});export{ir as $,X as A,j as At,Ar as B,ba as C,v as Ct,Ji as D,_ as Dt,ma as E,g as Et,H as F,Nr as G,Tr as H,ga as I,Gr as J,la as K,ka as L,Pa as M,oe as Mt,hr as N,Kr as O,ae as Ot,Qa as P,mr as Q,bn as R,Q as S,o as St,Ta as T,he as Tt,jr as U,Pr as V,Fr as W,Vr as X,qr as Y,dr as Z,q as _,D as _t,Pc as a,Ht as at,z as b,d as bt,Nc as c,Wt as ct,Xo as d,en as dt,zn as et,Po as f,Zt as ft,J as g,s as gt,ar as h,O as ht,Lc as i,Vt as it,gr as j,be as jt,wa as k,pe as kt,tc as l,Gt as lt,lr as m,E as mt,Fc as n,jn as nt,Tc as o,Ft as ot,yo as p,Jt as pt,Pn as q,Ic as r,Mn as rt,Mc as s,Lt as st,Rc as t,Rn as tt,Zo as u,I as ut,er as v,ge as vt,ha as w,a as wt,Ca as x,h as xt,oa as y,ie as yt,wr as z}; \ No newline at end of file diff --git a/dist/assets/binary_client-C_fP8dcD.js b/dist/assets/binary_client-zERk4LUr.js similarity index 95% rename from dist/assets/binary_client-C_fP8dcD.js rename to dist/assets/binary_client-zERk4LUr.js index 51a81ab..ec7eb40 100644 --- a/dist/assets/binary_client-C_fP8dcD.js +++ b/dist/assets/binary_client-zERk4LUr.js @@ -1 +1 @@ -import{i as e,t}from"./auth-DetOXv90.js";function n(){let e=t();return r(e.refreshTokenAction,e.getToken)}function r(t,n){async function r(r,i){let a={},o=n();o&&(a.Authorization=`Bearer ${o}`);let s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}});if(s.status==401){await t();let o=n();o&&(a.Authorization=`Bearer ${o}`),s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}})}return s}async function o(e,t){let n=await r(e,{method:`GET`});if(!n.ok)throw Error(await a(n));return{blob:await n.blob(),filename:i(n.headers.get(`Content-Disposition`))||t}}function s(e){return o(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function c(e){return o(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}async function l(e){let t=await r(`api/scenarios/archive`,{method:`POST`,headers:{"Content-Type":e.type||`application/zip`},body:e}),n=await t.json().catch(()=>null);if(!t.ok)return{id:null,error:n?.message||`Ошибка сервера (${t.status})`};let i=typeof n?.error==`string`&&n.error!==``?n.error:null;return{id:typeof n?.id==`number`?n.id:null,error:i}}return{downloadScenarioArchive:s,downloadTeamQR:c,uploadScenarioArchive:l}}function i(e){if(!e)return``;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t)try{return decodeURIComponent(t[1].trim()).replace(/[\\/:*?"<>|]/g,`_`)}catch{}let n=e.match(/filename="?([^";]+)"?/i);return(n?n[1]:``).replace(/[\\/:*?"<>|]/g,`_`)}async function a(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{n as t}; \ No newline at end of file +import{i as e,t}from"./auth-CzuN8bsR.js";function n(){let e=t();return r(e.refreshTokenAction,e.getToken)}function r(t,n){async function r(r,i){let a={},o=n();o&&(a.Authorization=`Bearer ${o}`);let s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}});if(s.status==401){await t();let o=n();o&&(a.Authorization=`Bearer ${o}`),s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}})}return s}async function o(e,t){let n=await r(e,{method:`GET`});if(!n.ok)throw Error(await a(n));return{blob:await n.blob(),filename:i(n.headers.get(`Content-Disposition`))||t}}function s(e){return o(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function c(e){return o(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}async function l(e){let t=await r(`api/scenarios/archive`,{method:`POST`,headers:{"Content-Type":e.type||`application/zip`},body:e}),n=await t.json().catch(()=>null);if(!t.ok)return{id:null,error:n?.message||`Ошибка сервера (${t.status})`};let i=typeof n?.error==`string`&&n.error!==``?n.error:null;return{id:typeof n?.id==`number`?n.id:null,error:i}}return{downloadScenarioArchive:s,downloadTeamQR:c,uploadScenarioArchive:l}}function i(e){if(!e)return``;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t)try{return decodeURIComponent(t[1].trim()).replace(/[\\/:*?"<>|]/g,`_`)}catch{}let n=e.match(/filename="?([^";]+)"?/i);return(n?n[1]:``).replace(/[\\/:*?"<>|]/g,`_`)}async function a(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{n as t}; \ No newline at end of file diff --git a/dist/assets/fade-in.cssr-mvZ1VOJ5.js b/dist/assets/fade-in.cssr-CoPRsCos.js similarity index 87% rename from dist/assets/fade-in.cssr-mvZ1VOJ5.js rename to dist/assets/fade-in.cssr-CoPRsCos.js index 26bc0e9..65190f6 100644 --- a/dist/assets/fade-in.cssr-mvZ1VOJ5.js +++ b/dist/assets/fade-in.cssr-CoPRsCos.js @@ -1 +1 @@ -import{G as e,a as t}from"./light-BN35I8ot.js";var{cubicBezierEaseInOut:n}=t;function r({name:t=`fade-in`,enterDuration:r=`0.2s`,leaveDuration:i=`0.2s`,enterCubicBezier:a=n,leaveCubicBezier:o=n}={}){return[e(`&.${t}-transition-enter-active`,{transition:`all ${r} ${a}!important`}),e(`&.${t}-transition-leave-active`,{transition:`all ${i} ${o}!important`}),e(`&.${t}-transition-enter-from, &.${t}-transition-leave-to`,{opacity:0}),e(`&.${t}-transition-leave-from, &.${t}-transition-enter-to`,{opacity:1})]}export{r as t}; \ No newline at end of file +import{G as e,a as t}from"./light-Dg5iONHF.js";var{cubicBezierEaseInOut:n}=t;function r({name:t=`fade-in`,enterDuration:r=`0.2s`,leaveDuration:i=`0.2s`,enterCubicBezier:a=n,leaveCubicBezier:o=n}={}){return[e(`&.${t}-transition-enter-active`,{transition:`all ${r} ${a}!important`}),e(`&.${t}-transition-leave-active`,{transition:`all ${i} ${o}!important`}),e(`&.${t}-transition-enter-from, &.${t}-transition-leave-to`,{opacity:0}),e(`&.${t}-transition-leave-from, &.${t}-transition-enter-to`,{opacity:1})]}export{r as t}; \ No newline at end of file diff --git a/dist/assets/get-Cv_ptumj.js b/dist/assets/get-BOxoHLMw.js similarity index 92% rename from dist/assets/get-Cv_ptumj.js rename to dist/assets/get-BOxoHLMw.js index 1995d26..11802c9 100644 --- a/dist/assets/get-Cv_ptumj.js +++ b/dist/assets/get-BOxoHLMw.js @@ -1 +1 @@ -import{D as e,d as t}from"./light-BN35I8ot.js";import{G as n,U as r}from"./index-UYw_T9_p.js";var i=/^(\d|\.)+$/,a=/(\d|\.)+/;function o(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e==`number`){let r=(e+n)*t;return r===0?`0`:`${r}px`}else if(typeof e==`string`)if(i.test(e)){let i=(Number(e)+n)*t;return r?i===0?`0`:`${i}px`:`${i}`}else{let r=a.exec(e);return r?e.replace(a,String((Number(r[0])+n)*t)):e}return e}var s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;function l(t,r){if(e(t))return!1;var i=typeof t;return i==`number`||i==`symbol`||i==`boolean`||t==null||n(t)?!0:c.test(t)||!s.test(t)||r!=null&&t in Object(r)}var u=`Expected a function`;function d(e,n){if(typeof e!=`function`||n!=null&&typeof n!=`function`)throw TypeError(u);var r=function(){var t=arguments,i=n?n.apply(this,t):t[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,t);return r.cache=a.set(i,o)||a,o};return r.cache=new(d.Cache||t),r}d.Cache=t;var f=500;function p(e){var t=d(e,function(e){return n.size===f&&n.clear(),e}),n=t.cache;return t}var m=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,g=p(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(m,function(e,n,r,i){t.push(r?i.replace(h,`$1`):n||e)}),t});function _(t,n){return e(t)?t:l(t,n)?[t]:g(r(t))}var v=1/0;function y(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-v?`-0`:t}function b(e,t){t=_(t,e);for(var n=0,r=t.length;e!=null&&ni.map(i=>d[i]); -import{$ as e,A as t,Ct as n,D as r,Dt as i,Et as a,F as o,G as s,K as c,M as l,Mt as u,N as d,Ot as f,P as p,Q as m,S as h,St as g,Tt as _,U as v,Z as y,_ as b,_t as x,at as S,b as C,bt as w,c as T,ct as E,dt as D,et as O,f as k,gt as ee,h as te,ht as ne,j as A,k as re,l as ie,m as ae,mt as oe,nt as se,ot as ce,p as le,pt as ue,q as de,s as fe,st as pe,t as me,ut as he,v as ge,vt as _e,w as ve,wt as ye,xt as be,yt as xe}from"./auth-DetOXv90.js";import{A as Se,B as j,D as Ce,G as M,H as we,J as N,K as Te,L as Ee,M as De,N as Oe,O as ke,P as Ae,U as P,V as F,X as je,Y as I,Z as L,a as Me,i as Ne,k as Pe,n as R,o as Fe,r as Ie,s as Le,t as z,z as Re}from"./light-BN35I8ot.js";import{i as ze,n as Be,r as B,t as Ve}from"./light-EjSCIEMB.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var He=void 0,Ue=typeof window<`u`&&window.trustedTypes;if(Ue)try{He=Ue.createPolicy(`vue`,{createHTML:e=>e})}catch{}var We=He?e=>He.createHTML(e):e=>e,Ge=`http://www.w3.org/2000/svg`,Ke=`http://www.w3.org/1998/Math/MathML`,V=typeof document<`u`?document:null,qe=V&&V.createElement(`template`),Je={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?V.createElementNS(Ge,e):t===`mathml`?V.createElementNS(Ke,e):n?V.createElement(e,{is:n}):V.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>V.createTextNode(e),createComment:e=>V.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>V.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{qe.innerHTML=We(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=qe.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},H=`transition`,Ye=`animation`,Xe=Symbol(`_vtc`),Ze={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Qe=ee({},te,Ze),$e=(e=>(e.displayName=`Transition`,e.props=Qe,e))((e,{slots:t})=>p(ae,nt(e),t)),et=(e,t=[])=>{w(e)?e.forEach(e=>e(...t)):e&&e(...t)},tt=e=>e?w(e)?e.some(e=>e.length>1):e.length>1:!1;function nt(e){let t={};for(let n in e)n in Ze||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=rt(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:x,onBeforeAppear:S=_,onAppear:C=v,onAppearCancelled:w=y}=t,T=(e,t,n,r)=>{e._enterCancelled=r,W(e,t?u:s),W(e,t?l:o),n&&n()},E=(e,t)=>{e._isLeaving=!1,W(e,d),W(e,p),W(e,f),t&&t()},D=e=>(t,n)=>{let i=e?C:v,o=()=>T(t,e,n);et(i,[t,o]),at(()=>{W(t,e?c:a),U(t,e?u:s),tt(i)||st(t,r,h,o)})};return ee(t,{onBeforeEnter(e){et(_,[e]),U(e,a),U(e,o)},onBeforeAppear(e){et(S,[e]),U(e,c),U(e,l)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>E(e,t);U(e,d),e._enterCancelled?(U(e,f),dt(e)):(dt(e),U(e,f)),at(()=>{e._isLeaving&&(W(e,d),U(e,p),tt(b)||st(e,r,g,n))}),et(b,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),et(y,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),et(w,[e])},onLeaveCancelled(e){E(e),et(x,[e])}})}function rt(e){if(e==null)return null;if(n(e))return[it(e.enter),it(e.leave)];{let t=it(e);return[t,t]}}function it(e){return u(e)}function U(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Xe]||(e[Xe]=new Set)).add(t)}function W(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Xe];n&&(n.delete(t),n.size||(e[Xe]=void 0))}function at(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var ot=0;function st(e,t,n,r){let i=e._endId=++ot,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=ct(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${H}Delay`),a=r(`${H}Duration`),o=lt(i,a),s=r(`${Ye}Delay`),c=r(`${Ye}Duration`),l=lt(s,c),u=null,d=0,f=0;t===H?o>0&&(u=H,d=o,f=a.length):t===Ye?l>0&&(u=Ye,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?H:Ye:null,f=u?u===H?a.length:c.length:0);let p=u===H&&/\b(?:transform|all)(?:,|$)/.test(r(`${H}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function lt(e,t){for(;e.lengthut(t)+ut(e[n])))}function ut(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function dt(e){return(e?e.ownerDocument:document).body.offsetHeight}function ft(e,t,n){let r=e[Xe];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var pt=Symbol(`_vod`),mt=Symbol(`_vsh`),ht={name:`show`,beforeMount(e,{value:t},{transition:n}){e[pt]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):gt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),gt(e,!0),r.enter(e)):r.leave(e,()=>{gt(e,!1)}):gt(e,t))},beforeUnmount(e,{value:t}){gt(e,t)}};function gt(e,t){e.style.display=t?e[pt]:`none`,e[mt]=!t}var _t=Symbol(``),vt=/(?:^|;)\s*display\s*:/;function yt(e,t,n){let r=e.style,i=a(n),o=!1;if(n&&!i){if(t)if(a(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??xt(r,t,``)}else for(let e in t)n[e]??xt(r,e,``);for(let i in n){i===`display`&&(o=!0);let s=n[i];s==null?xt(r,i,``):Tt(e,i,!a(t)&&t?t[i]:void 0,s)||xt(r,i,s)}}else if(i){if(t!==n){let e=r[_t];e&&(n+=`;`+e),r.cssText=n,o=vt.test(n)}}else t&&e.removeAttribute(`style`);pt in e&&(e[pt]=o?r.display:``,e[mt]&&(r.display=`none`))}var bt=/\s*!important$/;function xt(e,t,n){if(w(n))n.forEach(n=>xt(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=wt(e,t);bt.test(n)?e.setProperty(x(r),n.replace(bt,``),`important`):e[r]=n}}var St=[`Webkit`,`Moz`,`ms`],Ct={};function wt(e,t){let n=Ct[t];if(n)return n;let r=oe(t);if(r!==`filter`&&r in e)return Ct[t]=r;r=ne(r);for(let n=0;nIt||=(Lt.then(()=>It=0),Date.now());function zt(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(w(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vt=(e,t,n,r,i,o)=>{let s=i===`svg`;t===`class`?ft(e,r,s):t===`style`?yt(e,n,r):ye(t)?g(t)||Mt(e,t,n,r,o):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Ht(e,t,r,s))?(Ot(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Dt(e,t,r,s,o,t!==`value`)):e._isVueCE&&(Ut(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!a(r)))?Ot(e,oe(t),r,o,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Dt(e,t,r,s))};function Ht(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Bt(t)&&be(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Bt(t)&&a(n)?!1:t in e}function Ut(e,t){let n=e._def.props;if(!n)return!1;let r=oe(t);return Array.isArray(n)?n.some(e=>oe(e)===r):Object.keys(n).some(e=>oe(e)===r)}var Wt=new WeakMap,Gt=new WeakMap,Kt=Symbol(`_moveCb`),qt=Symbol(`_enterCb`),Jt=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:ee({},Qe,{tag:String,moveClass:String}),setup(n,{slots:r}){let i=l(),a=e(),o,c;return s(()=>{if(!o.length)return;let e=n.moveClass||`${n.name||`v`}-move`;if(!$t(o[0].el,i.vnode.el,e)){o=[];return}o.forEach(Yt),o.forEach(Xt);let t=o.filter(Zt);dt(i.vnode.el),t.forEach(t=>{let n=t.el,r=n.style;U(n,e),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Kt]=t=>{t&&t.target!==n||(!t||t.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Kt]=null,W(n,e))};n.addEventListener(`transitionend`,i)}),o=[]}),()=>{let e=he(n),s=nt(e),l=e.tag||b;if(o=[],c)for(let e=0;e{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=ct(r);return a.removeChild(r),o}var en=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return w(t)?e=>xe(t,e):t};function tn(e){e.target.composing=!0}function nn(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var rn=Symbol(`_assign`);function an(e,t,n){return t&&(e=e.trim()),n&&(e=f(e)),e}var on={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[rn]=en(i);let a=r||i.props&&i.props.type===`number`;kt(e,t?`change`:`input`,t=>{t.target.composing||e[rn](an(e.value,n,a))}),(n||a)&&kt(e,`change`,()=>{e.value=an(e.value,n,a)}),t||(kt(e,`compositionstart`,tn),kt(e,`compositionend`,nn),kt(e,`change`,nn))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[rn]=en(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?f(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},sn=[`ctrl`,`shift`,`alt`,`meta`],cn={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>sn.some(n=>e[`${n}Key`]&&!t.includes(n))},ln=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=x(n.key);if(t.some(e=>e===r||un[e]===r))return e(n)}))},fn=ee({patchProp:Vt},Je),pn;function mn(){return pn||=r(fn)}var hn=((...e)=>{let t=mn().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=_n(e);if(!r)return;let i=t._component;!be(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,gn(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function gn(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function _n(e){return a(e)?document.querySelector(e):e}function vn(e=8){return Math.random().toString(16).slice(2,2+e)}function yn(e){let t=h(e),n=E(t.value);return O(t,e=>{n.value=e}),typeof e==`function`?n:{__v_isRef:!0,get value(){return n.value},set value(t){e.set(t)}}}function bn(){let e=E(!1);return v(()=>{e.value=!0}),pe(e)}function xn(e,t=[],n){let r={};return Object.getOwnPropertyNames(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),Object.assign(r,n)}function Sn(e,...t){return typeof e==`function`?e(...t):typeof e==`string`?re(e):typeof e==`number`?re(String(e)):null}var Cn=`[object Symbol]`;function wn(e){return typeof e==`symbol`||ke(e)&&Pe(e)==Cn}function Tn(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=r?e:jn(e,t,n)}var Nn=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Pn(e){return Nn.test(e)}function Fn(e){return e.split(``)}var In=`\\ud800-\\udfff`,Ln=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Rn=`\\ufe0e\\ufe0f`,zn=`[`+In+`]`,Bn=`[`+Ln+`]`,Vn=`\\ud83c[\\udffb-\\udfff]`,Hn=`(?:`+Bn+`|`+Vn+`)`,Un=`[^`+In+`]`,Wn=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Gn=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Kn=`\\u200d`,qn=Hn+`?`,Jn=`[`+Rn+`]?`,Yn=`(?:`+Kn+`(?:`+[Un,Wn,Gn].join(`|`)+`)`+Jn+qn+`)*`,Xn=Jn+qn+Yn,Zn=`(?:`+[Un+Bn+`?`,Bn,Wn,Gn,zn].join(`|`)+`)`,Qn=RegExp(Vn+`(?=`+Vn+`)|`+Zn+Xn,`g`);function $n(e){return e.match(Qn)||[]}function er(e){return Pn(e)?$n(e):Fn(e)}function tr(e){return function(t){t=An(t);var n=Pn(t)?er(t):void 0,r=n?n[0]:t.charAt(0),i=n?Mn(n,1).join(``):t.slice(1);return r[e]()+i}}var nr=tr(`toUpperCase`),rr=Te(`base-icon`,` +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ParticipationView-C3qDA10w.js","assets/auth-CzuN8bsR.js","assets/Card-jY6IqKWx.js","assets/light-Dg5iONHF.js","assets/resolve-slot-Bgp_Mn8k.js","assets/use-form-item-DDZTyeAQ.js","assets/fade-in.cssr-CoPRsCos.js","assets/light-Cn9TVfcC.js","assets/Button-_KVJEFbE.js","assets/use-message-R8JEzJ8f.js","assets/Space-BumyB3cS.js","assets/get-slot-6kXJmSMP.js","assets/HeaderMenu-Qspj3Vlt.js","assets/_plugin-vue_export-helper-C_XTvH5A.js","assets/HeaderMenu-xpgysPwY.css","assets/datetime-BJNH0M1T.js","assets/HomeView-P7HmrCBa.js","assets/HomeView-krhA9Djj.css","assets/LoginView-B1lGgObI.js","assets/Follower-BeUAmPJ4.js","assets/Suffix-PHRsdJdH.js","assets/utils-Av1b4W6Q.js","assets/use-merged-state-D8rNARXC.js","assets/use-compitable-boC6cFiE.js","assets/Add-Dpa8jwVl.js","assets/Input-jiXpa-nM.js","assets/LoginView-DKQmdgOL.css","assets/OfficeView-CUdTzgA2.js","assets/Modal-COuHyUKC.js","assets/keep-D5zQL9t4.js","assets/Alert-DZMHsQvh.js","assets/OfficeView-48MxrOUu.css","assets/UserAgreementView-Co6k36_y.js","assets/DocsPage-4nGaYJI1.js","assets/HeaderText--_Iy26DF.js","assets/HeaderText-DghUu1Eo.css","assets/DocsPage-DF0yQ_3O.css","assets/PrivacyPolicyView-BdZMUbuj.js","assets/ConsentView-BI8S4rrx.js","assets/GamesView-iKvbJg0m.js","assets/Select-BAqObS0Q.js","assets/Popover-DZnHj7OS.js","assets/get-BOxoHLMw.js","assets/Tag-DfP_x904.js","assets/Flex-ISd7TnC9.js","assets/GamesView-rc2TDqQI.css","assets/ScreenView-CUgZFDLh.js","assets/QrCode-CWZd63W8.js","assets/application-CQhaY0yx.js","assets/ScreenView-CaQPsgMz.css","assets/GameResultsView-B10RrKbL.js","assets/GameResultsView-Cyfw2OL4.css","assets/GameView-D5vfq7WW.js","assets/Remove-B8gpmkQR.js","assets/Rate-BuNWBBdn.js","assets/text-BQr3Ce8B.js","assets/Settings-DZEhm-J2.js","assets/binary_client-zERk4LUr.js","assets/useSimplePolling-CxHCqzxV.js","assets/GameView-CNjahWcK.css","assets/TeamStoryView-CjECoLQL.js","assets/PlaceBlock-Bh8s3Jpl.js","assets/Upload-i91liVQs.js","assets/PlaceBlock-B90GPATX.css","assets/TeamStoryView-B6BAG64o.css","assets/ScenariosView-BDlkEnAX.js","assets/ScenariosView--8_xqsRn.css","assets/CatalogView-Ym_LLlzp.js","assets/CatalogView-Buy0f6Ry.css","assets/ScenariosEditorView-F771n23k.js","assets/ScenariosEditorView-DpzlODxb.css","assets/ScenarioView-Crpa-0a2.js","assets/ScenarioView-CrfFPwUX.css","assets/UsersView-ClrscFQ_.js","assets/UsersView-Bj0ZaZ2i.css","assets/ReviewsView-BnIZXIGV.js","assets/ReviewsView-DHvnR8hu.css"])))=>i.map(i=>d[i]); +import{$ as e,A as t,Ct as n,D as r,Dt as i,Et as a,F as o,G as s,K as c,M as l,Mt as u,N as d,Ot as f,P as p,Q as m,S as h,St as g,Tt as _,U as v,Z as y,_ as b,_t as x,at as S,b as C,bt as w,c as T,ct as E,dt as D,et as O,f as k,gt as ee,h as te,ht as ne,j as A,k as re,l as ie,m as ae,mt as oe,nt as se,ot as ce,p as le,pt as ue,q as de,s as fe,st as pe,t as me,ut as he,v as ge,vt as _e,w as ve,wt as ye,xt as be,yt as xe}from"./auth-CzuN8bsR.js";import{A as Se,B as j,D as Ce,G as M,H as we,J as N,K as Te,L as Ee,M as De,N as Oe,O as ke,P as Ae,U as P,V as F,X as je,Y as I,Z as L,a as Me,i as Ne,k as Pe,n as R,o as Fe,r as Ie,s as Le,t as z,z as Re}from"./light-Dg5iONHF.js";import{i as ze,n as Be,r as B,t as Ve}from"./light-Cn9TVfcC.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var He=void 0,Ue=typeof window<`u`&&window.trustedTypes;if(Ue)try{He=Ue.createPolicy(`vue`,{createHTML:e=>e})}catch{}var We=He?e=>He.createHTML(e):e=>e,Ge=`http://www.w3.org/2000/svg`,Ke=`http://www.w3.org/1998/Math/MathML`,V=typeof document<`u`?document:null,qe=V&&V.createElement(`template`),Je={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?V.createElementNS(Ge,e):t===`mathml`?V.createElementNS(Ke,e):n?V.createElement(e,{is:n}):V.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>V.createTextNode(e),createComment:e=>V.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>V.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{qe.innerHTML=We(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=qe.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},H=`transition`,Ye=`animation`,Xe=Symbol(`_vtc`),Ze={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Qe=ee({},te,Ze),$e=(e=>(e.displayName=`Transition`,e.props=Qe,e))((e,{slots:t})=>p(ae,nt(e),t)),et=(e,t=[])=>{w(e)?e.forEach(e=>e(...t)):e&&e(...t)},tt=e=>e?w(e)?e.some(e=>e.length>1):e.length>1:!1;function nt(e){let t={};for(let n in e)n in Ze||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=rt(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:x,onBeforeAppear:S=_,onAppear:C=v,onAppearCancelled:w=y}=t,T=(e,t,n,r)=>{e._enterCancelled=r,W(e,t?u:s),W(e,t?l:o),n&&n()},E=(e,t)=>{e._isLeaving=!1,W(e,d),W(e,p),W(e,f),t&&t()},D=e=>(t,n)=>{let i=e?C:v,o=()=>T(t,e,n);et(i,[t,o]),at(()=>{W(t,e?c:a),U(t,e?u:s),tt(i)||st(t,r,h,o)})};return ee(t,{onBeforeEnter(e){et(_,[e]),U(e,a),U(e,o)},onBeforeAppear(e){et(S,[e]),U(e,c),U(e,l)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>E(e,t);U(e,d),e._enterCancelled?(U(e,f),dt(e)):(dt(e),U(e,f)),at(()=>{e._isLeaving&&(W(e,d),U(e,p),tt(b)||st(e,r,g,n))}),et(b,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),et(y,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),et(w,[e])},onLeaveCancelled(e){E(e),et(x,[e])}})}function rt(e){if(e==null)return null;if(n(e))return[it(e.enter),it(e.leave)];{let t=it(e);return[t,t]}}function it(e){return u(e)}function U(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Xe]||(e[Xe]=new Set)).add(t)}function W(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Xe];n&&(n.delete(t),n.size||(e[Xe]=void 0))}function at(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var ot=0;function st(e,t,n,r){let i=e._endId=++ot,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=ct(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${H}Delay`),a=r(`${H}Duration`),o=lt(i,a),s=r(`${Ye}Delay`),c=r(`${Ye}Duration`),l=lt(s,c),u=null,d=0,f=0;t===H?o>0&&(u=H,d=o,f=a.length):t===Ye?l>0&&(u=Ye,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?H:Ye:null,f=u?u===H?a.length:c.length:0);let p=u===H&&/\b(?:transform|all)(?:,|$)/.test(r(`${H}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function lt(e,t){for(;e.lengthut(t)+ut(e[n])))}function ut(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function dt(e){return(e?e.ownerDocument:document).body.offsetHeight}function ft(e,t,n){let r=e[Xe];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var pt=Symbol(`_vod`),mt=Symbol(`_vsh`),ht={name:`show`,beforeMount(e,{value:t},{transition:n}){e[pt]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):gt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),gt(e,!0),r.enter(e)):r.leave(e,()=>{gt(e,!1)}):gt(e,t))},beforeUnmount(e,{value:t}){gt(e,t)}};function gt(e,t){e.style.display=t?e[pt]:`none`,e[mt]=!t}var _t=Symbol(``),vt=/(?:^|;)\s*display\s*:/;function yt(e,t,n){let r=e.style,i=a(n),o=!1;if(n&&!i){if(t)if(a(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??xt(r,t,``)}else for(let e in t)n[e]??xt(r,e,``);for(let i in n){i===`display`&&(o=!0);let s=n[i];s==null?xt(r,i,``):Tt(e,i,!a(t)&&t?t[i]:void 0,s)||xt(r,i,s)}}else if(i){if(t!==n){let e=r[_t];e&&(n+=`;`+e),r.cssText=n,o=vt.test(n)}}else t&&e.removeAttribute(`style`);pt in e&&(e[pt]=o?r.display:``,e[mt]&&(r.display=`none`))}var bt=/\s*!important$/;function xt(e,t,n){if(w(n))n.forEach(n=>xt(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=wt(e,t);bt.test(n)?e.setProperty(x(r),n.replace(bt,``),`important`):e[r]=n}}var St=[`Webkit`,`Moz`,`ms`],Ct={};function wt(e,t){let n=Ct[t];if(n)return n;let r=oe(t);if(r!==`filter`&&r in e)return Ct[t]=r;r=ne(r);for(let n=0;nIt||=(Lt.then(()=>It=0),Date.now());function zt(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(w(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vt=(e,t,n,r,i,o)=>{let s=i===`svg`;t===`class`?ft(e,r,s):t===`style`?yt(e,n,r):ye(t)?g(t)||Mt(e,t,n,r,o):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Ht(e,t,r,s))?(Ot(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Dt(e,t,r,s,o,t!==`value`)):e._isVueCE&&(Ut(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!a(r)))?Ot(e,oe(t),r,o,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Dt(e,t,r,s))};function Ht(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Bt(t)&&be(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Bt(t)&&a(n)?!1:t in e}function Ut(e,t){let n=e._def.props;if(!n)return!1;let r=oe(t);return Array.isArray(n)?n.some(e=>oe(e)===r):Object.keys(n).some(e=>oe(e)===r)}var Wt=new WeakMap,Gt=new WeakMap,Kt=Symbol(`_moveCb`),qt=Symbol(`_enterCb`),Jt=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:ee({},Qe,{tag:String,moveClass:String}),setup(n,{slots:r}){let i=l(),a=e(),o,c;return s(()=>{if(!o.length)return;let e=n.moveClass||`${n.name||`v`}-move`;if(!$t(o[0].el,i.vnode.el,e)){o=[];return}o.forEach(Yt),o.forEach(Xt);let t=o.filter(Zt);dt(i.vnode.el),t.forEach(t=>{let n=t.el,r=n.style;U(n,e),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Kt]=t=>{t&&t.target!==n||(!t||t.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Kt]=null,W(n,e))};n.addEventListener(`transitionend`,i)}),o=[]}),()=>{let e=he(n),s=nt(e),l=e.tag||b;if(o=[],c)for(let e=0;e{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=ct(r);return a.removeChild(r),o}var en=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return w(t)?e=>xe(t,e):t};function tn(e){e.target.composing=!0}function nn(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var rn=Symbol(`_assign`);function an(e,t,n){return t&&(e=e.trim()),n&&(e=f(e)),e}var on={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[rn]=en(i);let a=r||i.props&&i.props.type===`number`;kt(e,t?`change`:`input`,t=>{t.target.composing||e[rn](an(e.value,n,a))}),(n||a)&&kt(e,`change`,()=>{e.value=an(e.value,n,a)}),t||(kt(e,`compositionstart`,tn),kt(e,`compositionend`,nn),kt(e,`change`,nn))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[rn]=en(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?f(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},sn=[`ctrl`,`shift`,`alt`,`meta`],cn={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>sn.some(n=>e[`${n}Key`]&&!t.includes(n))},ln=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=x(n.key);if(t.some(e=>e===r||un[e]===r))return e(n)}))},fn=ee({patchProp:Vt},Je),pn;function mn(){return pn||=r(fn)}var hn=((...e)=>{let t=mn().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=_n(e);if(!r)return;let i=t._component;!be(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,gn(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function gn(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function _n(e){return a(e)?document.querySelector(e):e}function vn(e=8){return Math.random().toString(16).slice(2,2+e)}function yn(e){let t=h(e),n=E(t.value);return O(t,e=>{n.value=e}),typeof e==`function`?n:{__v_isRef:!0,get value(){return n.value},set value(t){e.set(t)}}}function bn(){let e=E(!1);return v(()=>{e.value=!0}),pe(e)}function xn(e,t=[],n){let r={};return Object.getOwnPropertyNames(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),Object.assign(r,n)}function Sn(e,...t){return typeof e==`function`?e(...t):typeof e==`string`?re(e):typeof e==`number`?re(String(e)):null}var Cn=`[object Symbol]`;function wn(e){return typeof e==`symbol`||ke(e)&&Pe(e)==Cn}function Tn(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=r?e:jn(e,t,n)}var Nn=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Pn(e){return Nn.test(e)}function Fn(e){return e.split(``)}var In=`\\ud800-\\udfff`,Ln=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Rn=`\\ufe0e\\ufe0f`,zn=`[`+In+`]`,Bn=`[`+Ln+`]`,Vn=`\\ud83c[\\udffb-\\udfff]`,Hn=`(?:`+Bn+`|`+Vn+`)`,Un=`[^`+In+`]`,Wn=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Gn=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Kn=`\\u200d`,qn=Hn+`?`,Jn=`[`+Rn+`]?`,Yn=`(?:`+Kn+`(?:`+[Un,Wn,Gn].join(`|`)+`)`+Jn+qn+`)*`,Xn=Jn+qn+Yn,Zn=`(?:`+[Un+Bn+`?`,Bn,Wn,Gn,zn].join(`|`)+`)`,Qn=RegExp(Vn+`(?=`+Vn+`)|`+Zn+Xn,`g`);function $n(e){return e.match(Qn)||[]}function er(e){return Pn(e)?$n(e):Fn(e)}function tr(e){return function(t){t=An(t);var n=Pn(t)?er(t):void 0,r=n?n[0]:t.charAt(0),i=n?Mn(n,1).join(``):t.slice(1);return r[e]()+i}}var nr=tr(`toUpperCase`),rr=Te(`base-icon`,` height: 1em; width: 1em; line-height: 1em; @@ -197,4 +197,4 @@ import{$ as e,A as t,Ct as n,D as r,Dt as i,Et as a,F as o,G as s,K as c,M as l, right: 12px; justify-content: flex-end; align-items: flex-end; - `)])]),za={info:()=>p(lr,null),success:()=>p(ur,null),warning:()=>p(dr,null),error:()=>p(cr,null),default:()=>null},Ba=A({name:`Message`,props:Object.assign(Object.assign({},La),{render:Function}),setup(e){let{inlineThemeDisabled:t,mergedRtlRef:n}=Oe(e),{props:r,mergedClsPrefixRef:i}=o(Ma),a=Fe(`Message`,n,i),s=Ie(`Message`,`-message`,Ra,Fa,r,i),c=h(()=>{let{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{padding:r,margin:i,maxWidth:a,iconMargin:o,closeMargin:c,closeSize:l,iconSize:u,fontSize:d,lineHeight:f,borderRadius:p,border:m,iconColorInfo:h,iconColorSuccess:g,iconColorWarning:_,iconColorError:v,iconColorLoading:y,closeIconSize:b,closeBorderRadius:x,[L(`textColor`,t)]:S,[L(`boxShadow`,t)]:C,[L(`color`,t)]:w,[L(`closeColorHover`,t)]:T,[L(`closeColorPressed`,t)]:E,[L(`closeIconColor`,t)]:D,[L(`closeIconColorPressed`,t)]:O,[L(`closeIconColorHover`,t)]:k}}=s.value;return{"--n-bezier":n,"--n-margin":i,"--n-padding":r,"--n-max-width":a,"--n-font-size":d,"--n-icon-margin":o,"--n-icon-size":u,"--n-close-icon-size":b,"--n-close-border-radius":x,"--n-close-size":l,"--n-close-margin":c,"--n-text-color":S,"--n-color":w,"--n-box-shadow":C,"--n-icon-color-info":h,"--n-icon-color-success":g,"--n-icon-color-warning":_,"--n-icon-color-error":v,"--n-icon-color-loading":y,"--n-close-color-hover":T,"--n-close-color-pressed":E,"--n-close-icon-color":D,"--n-close-icon-color-pressed":O,"--n-close-icon-color-hover":k,"--n-line-height":f,"--n-border-radius":p,"--n-border":m}}),l=t?De(`message`,h(()=>e.type[0]),c,{}):void 0;return{mergedClsPrefix:i,rtlEnabled:a,messageProviderProps:r,handleClose(){var t;(t=e.onClose)==null||t.call(e)},cssVars:t?void 0:c,themeClass:l?.themeClass,onRender:l?.onRender,placement:r.placement}},render(){let{render:e,type:t,closable:n,content:r,mergedClsPrefix:i,cssVars:a,themeClass:o,onRender:s,icon:c,handleClose:l,showIcon:u}=this;s?.();let d;return p(`div`,{class:[`${i}-message-wrapper`,o],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith(`top`)?`flex-start`:`flex-end`},a]},e?e(this.$props):p(`div`,{class:[`${i}-message ${i}-message--${t}-type`,this.rtlEnabled&&`${i}-message--rtl`]},(d=Va(c,t,i,this.spinProps))&&u?p(`div`,{class:`${i}-message__icon ${i}-message__icon--${t}-type`},p(ar,null,{default:()=>d})):null,p(`div`,{class:`${i}-message__content`},Sn(r)),n?p(hr,{clsPrefix:i,class:`${i}-message__close`,onClick:l,absolute:!0}):null))}});function Va(e,t,n,r){if(typeof e==`function`)return e();{let e=t===`loading`?p(br,Object.assign({clsPrefix:n,strokeWidth:24,scale:.85},r)):za[t]();return e?p(ir,{clsPrefix:n,key:t},{default:()=>e}):null}}var Ha=A({name:`MessageEnvironment`,props:Object.assign(Object.assign({},La),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null,n=E(!0);v(()=>{r()});function r(){let{duration:n}=e;n&&(t=window.setTimeout(o,n))}function i(e){e.currentTarget===e.target&&t!==null&&(window.clearTimeout(t),t=null)}function a(e){e.currentTarget===e.target&&r()}function o(){let{onHide:r}=e;n.value=!1,t&&=(window.clearTimeout(t),null),r&&r()}function s(){let{onClose:t}=e;t&&t(),o()}function c(){let{onAfterLeave:t,onInternalAfterLeave:n,onAfterHide:r,internalKey:i}=e;t&&t(),n&&n(i),r&&r()}function l(){o()}return{show:n,hide:o,handleClose:s,handleAfterLeave:c,handleMouseleave:a,handleMouseenter:i,deactivate:l}},render(){return p(gr,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?p(Ba,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,spinProps:this.spinProps,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),Ua=A({name:`MessageProvider`,props:Object.assign(Object.assign({},Ie.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:`top`},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),setup(e){let{mergedClsPrefixRef:t}=Oe(e),n=E([]),r=E({}),i={create(e,t){return a(e,Object.assign({type:`default`},t))},info(e,t){return a(e,Object.assign(Object.assign({},t),{type:`info`}))},success(e,t){return a(e,Object.assign(Object.assign({},t),{type:`success`}))},warning(e,t){return a(e,Object.assign(Object.assign({},t),{type:`warning`}))},error(e,t){return a(e,Object.assign(Object.assign({},t),{type:`error`}))},loading(e,t){return a(e,Object.assign(Object.assign({},t),{type:`loading`}))},destroyAll:s};de(Ma,{props:e,mergedClsPrefixRef:t}),de(ja,i);function a(t,i){let a=vn(),o=ce(Object.assign(Object.assign({},i),{content:t,key:a,destroy:()=>{var e;(e=r.value[a])==null||e.hide()}})),{max:s}=e;return s&&n.value.length>=s&&n.value.shift(),n.value.push(o),o}function o(e){n.value.splice(n.value.findIndex(t=>t.key===e),1),delete r.value[e]}function s(){Object.values(r.value).forEach(e=>{e.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:o},i)},render(){var e;return p(b,null,(e=this.$slots).default?.call(e),this.messageList.length?p(ge,{to:this.to??`body`},p(`div`,{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:`message-container`,style:this.containerStyle},this.messageList.map(e=>p(Ha,Object.assign({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},xn(e,[`destroy`],void 0),{duration:e.duration===void 0?this.duration:e.duration,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover,closable:e.closable===void 0?this.closable:e.closable}))))):null)}}),Wa={closeMargin:`16px 12px`,closeSize:`20px`,closeIconSize:`16px`,width:`365px`,padding:`16px`,titleFontSize:`16px`,metaFontSize:`12px`,descriptionFontSize:`12px`};function Ga(e){let{textColor2:t,successColor:n,infoColor:r,warningColor:i,errorColor:a,popoverColor:o,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:p,borderRadius:m,fontWeightStrong:h,boxShadow2:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},Wa),{borderRadius:m,lineHeight:_,fontSize:v,headerFontWeight:h,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:i,iconColorError:a,color:o,textColor:t,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeBorderRadius:m,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:g})}R({name:`Notification`,common:z,peers:{Scrollbar:B},self:Ga});var Ka={name:`Notification`,common:q,peers:{Scrollbar:J},self:Ga};function qa(e){let{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}}var Ja={name:`Divider`,common:q,self:qa};function Ya(e){let{modalColor:t,textColor1:n,textColor2:r,boxShadow3:i,lineHeight:a,fontWeightStrong:o,dividerColor:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:p,primaryColorHover:m}=e;return{bodyPadding:`16px 24px`,borderRadius:p,headerPadding:`16px 24px`,footerPadding:`16px 24px`,color:t,textColor:r,titleTextColor:n,titleFontSize:`18px`,titleFontWeight:o,boxShadow:i,lineHeight:a,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:`22px`,closeIconSize:`18px`,closeColorHover:c,closeColorPressed:l,closeBorderRadius:p,resizableTriggerColorHover:m}}R({name:`Drawer`,common:z,peers:{Scrollbar:B},self:Ya});var Xa={name:`Drawer`,common:q,peers:{Scrollbar:J},self:Ya},Za={actionMargin:`0 0 0 20px`,actionMarginRtl:`0 20px 0 0`},Qa={name:`DynamicInput`,common:q,peers:{Input:X,Button:Q},self(){return Za}},$a={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},eo={name:`Space`,self(){return $a}},to={name:`DynamicTags`,common:q,peers:{Input:X,Button:Q,Tag:Rr,Space:eo},self(){return{inputWidth:`64px`}}},no={name:`Element`,common:q},ro={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},io={name:`Flex`,self(){return ro}},ao={name:`ButtonGroup`,common:q},oo={feedbackPadding:`4px 0 0 2px`,feedbackHeightSmall:`24px`,feedbackHeightMedium:`24px`,feedbackHeightLarge:`26px`,feedbackFontSizeSmall:`13px`,feedbackFontSizeMedium:`14px`,feedbackFontSizeLarge:`14px`,labelFontSizeLeftSmall:`14px`,labelFontSizeLeftMedium:`14px`,labelFontSizeLeftLarge:`15px`,labelFontSizeTopSmall:`13px`,labelFontSizeTopMedium:`14px`,labelFontSizeTopLarge:`14px`,labelHeightSmall:`24px`,labelHeightMedium:`26px`,labelHeightLarge:`28px`,labelPaddingVertical:`0 0 6px 2px`,labelPaddingHorizontal:`0 12px 0 0`,labelTextAlignVertical:`left`,labelTextAlignHorizontal:`right`,labelFontWeight:`400`};function so(e){let{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:i,errorColor:a,warningColor:o,lineHeight:s,textColor3:c}=e;return Object.assign(Object.assign({},oo),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:s,labelTextColor:i,asteriskColor:a,feedbackTextColorError:a,feedbackTextColorWarning:o,feedbackTextColor:c})}var co={name:`Form`,common:z,self:so},lo={name:`Form`,common:q,self:so},uo={name:`GradientText`,common:q,self(e){let{primaryColor:t,successColor:n,warningColor:r,errorColor:i,infoColor:a,primaryColorSuppl:o,successColorSuppl:s,warningColorSuppl:c,errorColorSuppl:l,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:`252deg`,colorStartPrimary:t,colorEndPrimary:o,colorStartInfo:a,colorEndInfo:u,colorStartWarning:r,colorEndWarning:c,colorStartError:i,colorEndError:l,colorStartSuccess:n,colorEndSuccess:s}}},fo={name:`InputNumber`,common:q,peers:{Button:Q,Input:X},self(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function po(){return{inputWidthSmall:`24px`,inputWidthMedium:`30px`,inputWidthLarge:`36px`,gapSmall:`8px`,gapMedium:`8px`,gapLarge:`8px`}}R({name:`InputOtp`,common:z,peers:{Input:ei},self:po});var mo={name:`InputOtp`,common:q,peers:{Input:X},self:po},ho={name:`Layout`,common:q,peers:{Scrollbar:J},self(e){let{textColor2:t,bodyColor:n,popoverColor:r,cardColor:i,dividerColor:a,scrollbarColor:o,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:i,headerColorInverted:i,footerColor:i,footerColorInverted:i,headerBorderColor:a,headerBorderColorInverted:a,footerBorderColor:a,footerBorderColorInverted:a,siderBorderColor:a,siderBorderColorInverted:a,siderColor:i,siderColorInverted:i,siderToggleButtonBorder:`1px solid transparent`,siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:F(n,o),siderToggleBarColorHover:F(n,s),__invertScrollbar:`false`}}},go={name:`Row`,common:q};function _o(e){let{textColor2:t,cardColor:n,modalColor:r,popoverColor:i,dividerColor:a,borderRadius:o,fontSize:s,hoverColor:c}=e;return{textColor:t,color:n,colorHover:c,colorModal:r,colorHoverModal:F(r,c),colorPopover:i,colorHoverPopover:F(i,c),borderColor:a,borderColorModal:F(r,a),borderColorPopover:F(i,a),borderRadius:o,fontSize:s}}var vo={name:`List`,common:q,self:_o},yo={name:`Log`,common:q,peers:{Scrollbar:J,Code:ki},self(e){let{textColor2:t,inputColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid #0000`,loadingColor:i}}},bo={name:`Mention`,common:q,peers:{InternalSelectMenu:Mr,Input:X},self(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}};function xo(e,t,n,r){return{itemColorHoverInverted:`#0000`,itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}function So(e){let{borderRadius:t,textColor3:n,primaryColor:r,textColor2:i,textColor1:a,fontSize:o,dividerColor:s,hoverColor:c,primaryColorHover:l}=e;return Object.assign({borderRadius:t,color:`#0000`,groupTextColor:n,itemColorHover:c,itemColorActive:j(r,{alpha:.1}),itemColorActiveHover:j(r,{alpha:.1}),itemColorActiveCollapsed:j(r,{alpha:.1}),itemTextColor:i,itemTextColorHover:i,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:i,itemTextColorHoverHorizontal:l,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:a,itemIconColorHover:a,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:a,itemIconColorHorizontal:a,itemIconColorHoverHorizontal:l,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:`42px`,arrowColor:i,arrowColorHover:i,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:`#0000`,borderColorHorizontal:`#0000`,fontSize:o,dividerColor:s},xo(`#BBB`,r,`#FFF`,`#AAA`))}R({name:`Menu`,common:z,peers:{Tooltip:ea,Dropdown:Yi},self:So});var Co={name:`Menu`,common:q,peers:{Tooltip:Qi,Dropdown:Xi},self(e){let{primaryColor:t,primaryColorSuppl:n}=e,r=So(e);return r.itemColorActive=j(t,{alpha:.15}),r.itemColorActiveHover=j(t,{alpha:.15}),r.itemColorActiveCollapsed=j(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},wo={titleFontSize:`18px`,backSize:`22px`};function To(e){let{textColor1:t,textColor2:n,textColor3:r,fontSize:i,fontWeightStrong:a,primaryColorHover:o,primaryColorPressed:s}=e;return Object.assign(Object.assign({},wo),{titleFontWeight:a,fontSize:i,titleTextColor:t,backColor:n,backColorHover:o,backColorPressed:s,subtitleTextColor:r})}R({name:`PageHeader`,common:z,self:To});var Eo={name:`PageHeader`,common:q,self:To},Do={iconSize:`22px`};function Oo(e){let{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},Do),{fontSize:t,iconColor:n})}R({name:`Popconfirm`,common:z,peers:{Button:Z,Popover:Fr},self:Oo});var ko={name:`Popconfirm`,common:q,peers:{Button:Q,Popover:Ir},self:Oo};function Ao(e){let{infoColor:t,successColor:n,warningColor:r,errorColor:i,textColor2:a,progressRailColor:o,fontSize:s,fontWeight:c}=e;return{fontSize:s,fontSizeCircle:`28px`,fontWeightCircle:c,railColor:o,railHeight:`8px`,iconSizeCircle:`36px`,iconSizeLine:`18px`,iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:i,textColorCircle:a,textColorLineInner:`rgb(255, 255, 255)`,textColorLineOuter:a,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:i,lineBgProcessing:`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`}}var jo={name:`Progress`,common:z,self:Ao},Mo={name:`Progress`,common:q,self(e){let t=Ao(e);return t.textColorLineInner=`rgb(0, 0, 0)`,t.lineBgProcessing=`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`,t}},No={name:`Rate`,common:q,self(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#CCAA33`,itemSize:`20px`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}},Po={titleFontSizeSmall:`26px`,titleFontSizeMedium:`32px`,titleFontSizeLarge:`40px`,titleFontSizeHuge:`48px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,iconSizeSmall:`64px`,iconSizeMedium:`80px`,iconSizeLarge:`100px`,iconSizeHuge:`125px`,iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Fo(e){let{textColor2:t,textColor1:n,errorColor:r,successColor:i,infoColor:a,warningColor:o,lineHeight:s,fontWeightStrong:c}=e;return Object.assign(Object.assign({},Po),{lineHeight:s,titleFontWeight:c,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:i,iconColorInfo:a,iconColorWarning:o})}var Io={name:`Result`,common:q,self:Fo},Lo={railHeight:`4px`,railWidthVertical:`4px`,handleSize:`18px`,dotHeight:`8px`,dotWidth:`8px`,dotBorderRadius:`4px`},Ro={name:`Slider`,common:q,self(e){let{railColor:t,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:o,borderRadius:s,fontSize:c,opacityDisabled:l}=e;return Object.assign(Object.assign({},Lo),{fontSize:c,markFontSize:c,railColor:t,railColorHover:t,fillColor:r,fillColorHover:r,opacityDisabled:l,handleColor:`#FFF`,dotColor:o,dotColorModal:n,dotColorPopover:i,handleBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowHover:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowActive:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowFocus:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,indicatorColor:i,indicatorBoxShadow:`0 2px 8px 0 rgba(0, 0, 0, 0.12)`,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:``})}};function zo(e){let{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:i,heightLarge:a,heightHuge:o,primaryColor:s,fontSize:c}=e;return{fontSize:c,textColor:s,sizeTiny:n,sizeSmall:r,sizeMedium:i,sizeLarge:a,sizeHuge:o,color:s,opacitySpinning:t}}var Bo={name:`Spin`,common:z,self:zo},Vo={name:`Spin`,common:q,self:zo};function Ho(e){let{textColor2:t,textColor3:n,fontSize:r,fontWeight:i}=e;return{labelFontSize:r,labelFontWeight:i,valueFontWeight:i,valueFontSize:`24px`,labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}var Uo={name:`Statistic`,common:q,self:Ho},Wo={stepHeaderFontSizeSmall:`14px`,stepHeaderFontSizeMedium:`16px`,indicatorIndexFontSizeSmall:`14px`,indicatorIndexFontSizeMedium:`16px`,indicatorSizeSmall:`22px`,indicatorSizeMedium:`28px`,indicatorIconSizeSmall:`14px`,indicatorIconSizeMedium:`18px`};function Go(e){let{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:i,errorColor:a,textColor1:o,textColor2:s}=e;return Object.assign(Object.assign({},Wo),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:i,indicatorTextColorError:a,indicatorBorderColorProcess:i,indicatorBorderColorWait:r,indicatorBorderColorFinish:i,indicatorBorderColorError:a,indicatorColorProcess:i,indicatorColorWait:`#0000`,indicatorColorFinish:`#0000`,indicatorColorError:`#0000`,splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:i,splitorColorError:r,headerTextColorProcess:o,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:a,descriptionTextColorProcess:s,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:a})}var Ko={name:`Steps`,common:q,self:Go},qo={buttonHeightSmall:`14px`,buttonHeightMedium:`18px`,buttonHeightLarge:`22px`,buttonWidthSmall:`14px`,buttonWidthMedium:`18px`,buttonWidthLarge:`22px`,buttonWidthPressedSmall:`20px`,buttonWidthPressedMedium:`24px`,buttonWidthPressedLarge:`28px`,railHeightSmall:`18px`,railHeightMedium:`22px`,railHeightLarge:`26px`,railWidthSmall:`32px`,railWidthMedium:`40px`,railWidthLarge:`48px`},Jo={name:`Switch`,common:q,self(e){let{primaryColorSuppl:t,opacityDisabled:n,borderRadius:r,primaryColor:i,textColor2:a,baseColor:o}=e;return Object.assign(Object.assign({},qo),{iconColor:o,textColor:a,loadingColor:t,opacityDisabled:n,railColor:`rgba(255, 255, 255, .20)`,railColorActive:t,buttonBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${j(i,{alpha:.3})}`})}},Yo={thPaddingSmall:`6px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`6px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`};function Xo(e){let{dividerColor:t,cardColor:n,modalColor:r,popoverColor:i,tableHeaderColor:a,tableColorStriped:o,textColor1:s,textColor2:c,borderRadius:l,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m}=e;return Object.assign(Object.assign({},Yo),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,lineHeight:d,borderRadius:l,borderColor:F(n,t),borderColorModal:F(r,t),borderColorPopover:F(i,t),tdColor:n,tdColorModal:r,tdColorPopover:i,tdColorStriped:F(n,o),tdColorStripedModal:F(r,o),tdColorStripedPopover:F(i,o),thColor:F(n,a),thColorModal:F(r,a),thColorPopover:F(i,a),thTextColor:s,tdTextColor:c,thFontWeight:u})}var Zo={name:`Table`,common:q,self:Xo},Qo={tabFontSizeSmall:`14px`,tabFontSizeMedium:`14px`,tabFontSizeLarge:`16px`,tabGapSmallLine:`36px`,tabGapMediumLine:`36px`,tabGapLargeLine:`36px`,tabGapSmallLineVertical:`8px`,tabGapMediumLineVertical:`8px`,tabGapLargeLineVertical:`8px`,tabPaddingSmallLine:`6px 0`,tabPaddingMediumLine:`10px 0`,tabPaddingLargeLine:`14px 0`,tabPaddingVerticalSmallLine:`6px 12px`,tabPaddingVerticalMediumLine:`8px 16px`,tabPaddingVerticalLargeLine:`10px 20px`,tabGapSmallBar:`36px`,tabGapMediumBar:`36px`,tabGapLargeBar:`36px`,tabGapSmallBarVertical:`8px`,tabGapMediumBarVertical:`8px`,tabGapLargeBarVertical:`8px`,tabPaddingSmallBar:`4px 0`,tabPaddingMediumBar:`6px 0`,tabPaddingLargeBar:`10px 0`,tabPaddingVerticalSmallBar:`6px 12px`,tabPaddingVerticalMediumBar:`8px 16px`,tabPaddingVerticalLargeBar:`10px 20px`,tabGapSmallCard:`4px`,tabGapMediumCard:`4px`,tabGapLargeCard:`4px`,tabGapSmallCardVertical:`4px`,tabGapMediumCardVertical:`4px`,tabGapLargeCardVertical:`4px`,tabPaddingSmallCard:`8px 16px`,tabPaddingMediumCard:`10px 20px`,tabPaddingLargeCard:`12px 24px`,tabPaddingSmallSegment:`4px 0`,tabPaddingMediumSegment:`6px 0`,tabPaddingLargeSegment:`8px 0`,tabPaddingVerticalLargeSegment:`0 8px`,tabPaddingVerticalSmallCard:`8px 12px`,tabPaddingVerticalMediumCard:`10px 16px`,tabPaddingVerticalLargeCard:`12px 20px`,tabPaddingVerticalSmallSegment:`0 4px`,tabPaddingVerticalMediumSegment:`0 6px`,tabGapSmallSegment:`0`,tabGapMediumSegment:`0`,tabGapLargeSegment:`0`,tabGapSmallSegmentVertical:`0`,tabGapMediumSegmentVertical:`0`,tabGapLargeSegmentVertical:`0`,panePaddingSmall:`8px 0 0 0`,panePaddingMedium:`12px 0 0 0`,panePaddingLarge:`16px 0 0 0`,closeSize:`18px`,closeIconSize:`14px`};function $o(e){let{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,tabColor:l,baseColor:u,dividerColor:d,fontWeight:f,textColor1:p,borderRadius:m,fontSize:h,fontWeightStrong:g}=e;return Object.assign(Object.assign({},Qo),{colorSegment:l,tabFontSizeCard:h,tabTextColorLine:p,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,closeBorderRadius:m,tabColor:l,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:m,paneTextColor:t,fontWeightStrong:g})}var es={name:`Tabs`,common:z,self:$o},ts={name:`Tabs`,common:q,self(e){let t=$o(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}};function ns(e){let{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:i}=e;return{fontSize:i,titleTextColor:t,textColor:n,titleFontWeight:r}}var rs={name:`Thing`,common:q,self:ns},is={titleMarginMedium:`0 0 6px 0`,titleMarginLarge:`-2px 0 6px 0`,titleFontSizeMedium:`14px`,titleFontSizeLarge:`16px`,iconSizeMedium:`14px`,iconSizeLarge:`14px`},as={name:`Timeline`,common:q,self(e){let{textColor3:t,infoColorSuppl:n,errorColorSuppl:r,successColorSuppl:i,warningColorSuppl:a,textColor1:o,textColor2:s,railColor:c,fontWeightStrong:l,fontSize:u}=e;return Object.assign(Object.assign({},is),{contentFontSize:u,titleFontWeight:l,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${i}`,circleBorderWarning:`2px solid ${a}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:i,iconColorWarning:a,titleTextColor:o,contentTextColor:s,metaTextColor:t,lineColor:c})}},os={extraFontSizeSmall:`12px`,extraFontSizeMedium:`12px`,extraFontSizeLarge:`14px`,titleFontSizeSmall:`14px`,titleFontSizeMedium:`16px`,titleFontSizeLarge:`16px`,closeSize:`20px`,closeIconSize:`16px`,headerHeightSmall:`44px`,headerHeightMedium:`44px`,headerHeightLarge:`50px`},ss={name:`Transfer`,common:q,peers:{Checkbox:Ei,Scrollbar:J,Input:X,Empty:Or,Button:Q},self(e){let{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:i,heightLarge:a,heightMedium:o,borderRadius:s,inputColor:c,tableHeaderColor:l,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,hoverColor:m,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y,dividerColor:b}=e;return Object.assign(Object.assign({},os),{itemHeightSmall:o,itemHeightMedium:o,itemHeightLarge:a,fontSizeSmall:i,fontSizeMedium:r,fontSizeLarge:n,borderRadius:s,dividerColor:b,borderColor:`#0000`,listColor:c,headerColor:l,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:m,titleFontWeight:t,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y})}};function cs(e){let{borderRadiusSmall:t,dividerColor:n,hoverColor:r,pressedColor:i,primaryColor:a,textColor3:o,textColor2:s,textColorDisabled:c,fontSize:l}=e;return{fontSize:l,lineHeight:`1.5`,nodeHeight:`30px`,nodeWrapperPadding:`3px 0`,nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:i,nodeColorActive:j(a,{alpha:.1}),arrowColor:o,nodeTextColor:s,nodeTextColorDisabled:c,loadingColor:a,dropMarkColor:a,lineColor:n}}R({name:`Tree`,common:z,peers:{Checkbox:Ti,Scrollbar:B,Empty:Dr},self:cs});var ls={name:`Tree`,common:q,peers:{Checkbox:Ei,Scrollbar:J,Empty:Or},self(e){let{primaryColor:t}=e,n=cs(e);return n.nodeColorActive=j(t,{alpha:.15}),n}},us={name:`TreeSelect`,common:q,peers:{Tree:ls,Empty:Or,InternalSelection:Br}},ds={headerFontSize1:`30px`,headerFontSize2:`22px`,headerFontSize3:`18px`,headerFontSize4:`16px`,headerFontSize5:`16px`,headerFontSize6:`16px`,headerMargin1:`28px 0 20px 0`,headerMargin2:`28px 0 20px 0`,headerMargin3:`28px 0 20px 0`,headerMargin4:`28px 0 18px 0`,headerMargin5:`28px 0 18px 0`,headerMargin6:`28px 0 18px 0`,headerPrefixWidth1:`16px`,headerPrefixWidth2:`16px`,headerPrefixWidth3:`12px`,headerPrefixWidth4:`12px`,headerPrefixWidth5:`12px`,headerPrefixWidth6:`12px`,headerBarWidth1:`4px`,headerBarWidth2:`4px`,headerBarWidth3:`3px`,headerBarWidth4:`3px`,headerBarWidth5:`3px`,headerBarWidth6:`3px`,pMargin:`16px 0 16px 0`,liMargin:`.25em 0 0 0`,olPadding:`0 0 0 2em`,ulPadding:`0 0 0 2em`};function fs(e){let{primaryColor:t,textColor2:n,borderColor:r,lineHeight:i,fontSize:a,borderRadiusSmall:o,dividerColor:s,fontWeightStrong:c,textColor1:l,textColor3:u,infoColor:d,warningColor:f,errorColor:p,successColor:m,codeColor:h}=e;return Object.assign(Object.assign({},ds),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:i,blockquoteFontSize:a,codeBorderRadius:o,liTextColor:n,liLineHeight:i,liFontSize:a,hrColor:s,headerFontWeight:c,headerTextColor:l,pTextColor:n,pTextColor1Depth:l,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:i,pFontSize:a,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:m,textColor:n,textColor1Depth:l,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:m,textColorWarning:f,textColorError:p,codeTextColor:n,codeColor:h,codeBorder:`1px solid #0000`})}var ps={name:`Typography`,common:z,self:fs},ms={name:`Typography`,common:q,self:fs};function hs(e){let{iconColor:t,primaryColor:n,errorColor:r,textColor2:i,successColor:a,opacityDisabled:o,actionColor:s,borderColor:c,hoverColor:l,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${c}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:l,itemColorHoverError:j(r,{alpha:.06}),itemTextColor:i,itemTextColorError:r,itemTextColorSuccess:a,itemIconColor:t,itemDisabledOpacity:o,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${c}`}}var gs=R({name:`Upload`,common:z,peers:{Button:Z,Progress:jo},self:hs}),_s={name:`Upload`,common:q,peers:{Button:Q,Progress:Mo},self(e){let{errorColor:t}=e,n=hs(e);return n.itemColorHoverError=j(t,{alpha:.09}),n}},vs={name:`Watermark`,common:q,self(e){let{fontFamily:t}=e;return{fontFamily:t}}},ys={name:`FloatButton`,common:q,self(e){let{popoverColor:t,textColor2:n,buttonColor2Hover:r,buttonColor2Pressed:i,primaryColor:a,primaryColorHover:o,primaryColorPressed:s,baseColor:c,borderRadius:l}=e;return{color:t,textColor:n,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`,colorHover:r,colorPressed:i,colorPrimary:a,colorPrimaryHover:o,colorPrimaryPressed:s,textColorPrimary:c,borderRadiusSquare:l}}};function bs(e){let{borderRadius:t,fontSizeMini:n,fontSizeTiny:r,fontSizeSmall:i,fontWeight:a,textColor2:o,cardColor:s,buttonColor2Hover:c}=e;return{activeColors:[`#9be9a8`,`#40c463`,`#30a14e`,`#216e39`],borderRadius:t,borderColor:s,textColor:o,mininumColor:c,fontWeight:a,loadingColorStart:`rgba(0, 0, 0, 0.06)`,loadingColorEnd:`rgba(0, 0, 0, 0.12)`,rectSizeSmall:`10px`,rectSizeMedium:`11px`,rectSizeLarge:`12px`,borderRadiusSmall:`2px`,borderRadiusMedium:`2px`,borderRadiusLarge:`2px`,xGapSmall:`2px`,xGapMedium:`3px`,xGapLarge:`3px`,yGapSmall:`2px`,yGapMedium:`3px`,yGapLarge:`3px`,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:i}}R({name:`Heatmap`,common:z,self:bs});var xs={name:`Heatmap`,common:q,self(e){let t=bs(e);return Object.assign(Object.assign({},t),{activeColors:[`#0d4429`,`#006d32`,`#26a641`,`#39d353`],mininumColor:`rgba(255, 255, 255, 0.1)`,loadingColorStart:`rgba(255, 255, 255, 0.12)`,loadingColorEnd:`rgba(255, 255, 255, 0.18)`})}};function Ss(e){let{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}var Cs={name:`IconWrapper`,common:q,self:Ss},ws={name:`Image`,common:q,peers:{Tooltip:Qi},self:e=>{let{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}},Ts={extraFontSize:`12px`,width:`440px`},Es={name:`Transfer`,common:q,peers:{Checkbox:Ei,Scrollbar:J,Input:X,Empty:Or,Button:Q},self(e){let{iconColorDisabled:t,iconColor:n,fontWeight:r,fontSizeLarge:i,fontSizeMedium:a,fontSizeSmall:o,heightLarge:s,heightMedium:c,heightSmall:l,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:m,textColor2:h,hoverColor:g}=e;return Object.assign(Object.assign({},Ts),{itemHeightSmall:l,itemHeightMedium:c,itemHeightLarge:s,fontSizeSmall:o,fontSizeMedium:a,fontSizeLarge:i,borderRadius:u,borderColor:`#0000`,listColor:d,headerColor:f,titleTextColor:p,titleTextColorDisabled:m,extraTextColor:h,filterDividerColor:`#0000`,itemTextColor:h,itemTextColorDisabled:m,itemColorPending:g,titleFontWeight:r,iconColor:n,iconColorDisabled:t})}};function Ds(){return{}}var Os={name:`dark`,common:q,Alert:Wr,Anchor:Xr,AutoComplete:ri,Avatar:oi,AvatarGroup:ci,BackTop:ui,Badge:di,Breadcrumb:mi,Button:Q,ButtonGroup:ao,Calendar:yi,Card:bi,Carousel:Si,Cascader:Oi,Checkbox:Ei,Code:ki,Collapse:ji,CollapseTransition:Ni,ColorPicker:Fi,DataTable:la,DatePicker:ya,Descriptions:Sa,Dialog:Ea,Divider:Ja,Drawer:Xa,Dropdown:Xi,DynamicInput:Qa,DynamicTags:to,Element:no,Empty:Or,Ellipsis:ta,Equation:{name:`Equation`,common:q,self:()=>({})},Flex:io,Form:lo,GradientText:uo,Heatmap:xs,Icon:da,IconWrapper:Cs,Image:ws,Input:X,InputNumber:fo,InputOtp:mo,LegacyTransfer:Es,Layout:ho,List:vo,LoadingBar:Aa,Log:yo,Menu:Co,Mention:bo,Message:Ia,Modal:ka,Notification:Ka,PageHeader:Eo,Pagination:Ki,Popconfirm:ko,Popover:Ir,Popselect:Li,Progress:Mo,QrCode:{name:`QrCode`,common:q,self:e=>({borderRadius:e.borderRadius})},Radio:ia,Rate:No,Result:Io,Row:go,Scrollbar:J,Select:Hi,Skeleton:{name:`Skeleton`,common:q,self(e){let{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:i}=e;return{color:`rgba(255, 255, 255, 0.12)`,colorEnd:`rgba(255, 255, 255, 0.18)`,borderRadius:i,heightSmall:t,heightMedium:n,heightLarge:r}}},Slider:Ro,Space:eo,Spin:Vo,Statistic:Uo,Steps:Ko,Switch:Jo,Table:Zo,Tabs:ts,Tag:Rr,Thing:rs,TimePicker:ha,Timeline:as,Tooltip:Qi,Transfer:ss,Tree:ls,TreeSelect:us,Typography:ms,Upload:_s,Watermark:vs,Split:{name:`Split`,common:q},FloatButton:ys,FloatButtonGroup:{name:`FloatButtonGroup`,common:q,self(e){let{popoverColor:t,dividerColor:n,borderRadius:r}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:r,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`}}},Marquee:{name:`Marquee`,common:q,self:Ds}},ks=A({__name:`App`,setup(e){return(e,n)=>(c(),ve(ue(Ii),{theme:ue(Os)},{default:se(()=>[t(ue(Ua),null,{default:se(()=>[t(ue(fe))]),_:1})]),_:1},8,[`theme`]))}}),As=`modulepreload`,js=function(e){return`/`+e},Ms={},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=js(t,n),t=s(t),t in Ms)return;Ms[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:As,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Ns=T({history:ie(`/`),routes:[{path:`/participation`,name:`participation`,component:()=>$(()=>import(`./ParticipationView-BG5mhutL.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]))},{path:`/`,name:`home`,component:()=>$(()=>import(`./HomeView-Odksypfy.js`),__vite__mapDeps([16,1,12,13,14,17]))},{path:`/login`,name:`login`,component:()=>$(()=>import(`./LoginView-B4bTBzE0.js`),__vite__mapDeps([18,1,3,19,2,4,5,6,7,20,8,21,22,23,24,25,9,10,11,13,12,14,26]))},{path:`/office`,name:`office`,component:()=>$(()=>import(`./OfficeView-CLlCnFHy.js`),__vite__mapDeps([27,1,28,3,2,4,5,6,7,20,8,29,25,22,30,9,13,12,14,31]))},{path:`/user-agreement`,name:`user-agreement`,component:()=>$(()=>import(`./UserAgreementView-D9JyU4Z2.js`),__vite__mapDeps([32,1,33,3,4,23,6,30,13,34,35,36,12,14]))},{path:`/privacy-policy`,name:`privacy-policy`,component:()=>$(()=>import(`./PrivacyPolicyView-lUpP47S0.js`),__vite__mapDeps([37,1,33,3,4,23,6,30,13,34,35,36,12,14]))},{path:`/consent`,name:`consent`,component:()=>$(()=>import(`./ConsentView-BU2_6AMl.js`),__vite__mapDeps([38,1,33,3,4,23,6,30,13,34,35,36,12,14]))},{path:`/games`,name:`games`,component:()=>$(()=>import(`./GamesView-CdYFEBT8.js`),__vite__mapDeps([39,1,3,19,2,4,5,6,7,20,8,21,28,29,22,40,23,41,42,43,25,9,10,11,44,13,12,14,15,45]))},{path:`/screen`,name:`screen`,component:()=>$(()=>import(`./ScreenView-Dep3mMTR.js`),__vite__mapDeps([46,1,2,3,4,5,6,7,8,40,19,20,21,22,23,41,29,42,43,9,47,13,12,14,48,15,49]))},{path:`/games/:id/results`,name:`game-results`,component:()=>$(()=>import(`./GameResultsView-BajtZZfi.js`),__vite__mapDeps([50,1,8,3,4,5,9,44,11,13,12,14,51]))},{path:`/games/:id`,name:`game`,component:()=>$(()=>import(`./GameView-BKwM_tBI.js`),__vite__mapDeps([52,1,3,2,4,5,6,7,20,8,28,29,22,40,19,21,23,41,42,43,24,25,53,9,10,11,44,47,54,13,12,14,55,56,57,48,15,58]))},{path:`/team-story/:id`,name:`team-story`,component:()=>$(()=>import(`./TeamStoryView-BCW_ajVi.js`),__vite__mapDeps([59,1,8,3,4,5,60,2,6,7,20,28,29,22,61,19,41,23,42,24,25,53,43,10,11,54,13,48,62,9,44,63,47,34,35,57,64]))},{path:`/scenarios`,name:`scenarios`,component:()=>$(()=>import(`./ScenariosView-ChSXLwGe.js`),__vite__mapDeps([65,1,2,3,4,5,6,7,28,20,8,29,61,19,22,41,23,42,24,25,43,9,44,11,54,13,12,14,56,66]))},{path:`/catalog`,name:`catalog`,component:()=>$(()=>import(`./CatalogView-1j4eOUoP.js`),__vite__mapDeps([67,1,43,3,4,5,63,22,13,12,14,68]))},{path:`/scenarios/:id/editor`,name:`scenario-editor`,component:()=>$(()=>import(`./ScenariosEditorView-DBVhNdlh.js`),__vite__mapDeps([69,1,2,3,4,5,6,7,28,20,8,29,61,19,22,41,23,42,24,25,60,53,43,10,11,54,13,48,62,30,9,44,12,14,55,56,70]))},{path:`/scenarios/:id`,name:`scenario`,component:()=>$(()=>import(`./ScenarioView-MSdKfSb5.js`),__vite__mapDeps([71,1,43,3,4,5,9,63,22,13,12,14,72]))},{path:`/users`,name:`users`,component:()=>$(()=>import(`./UsersView-CZdF-i6P.js`),__vite__mapDeps([73,1,3,2,4,5,6,7,28,20,8,29,42,25,22,43,9,10,11,44,13,12,14,74]))}]}),Ps=hn(ks);Ps.use(le()),me().initFromStorage(),Ps.use(Ns),Ps.mount(`#app`);export{on as $,Dr as A,or as B,ei as C,Lr as D,Hr as E,pr as F,wn as G,ir as H,dr as I,bn as J,Sn as K,ur as L,yr as M,gr as N,Fr as O,hr as P,Jt as Q,lr as R,ni as S,Ur as T,An as U,ar as V,Tn as W,vn as X,yn as Y,$e as Z,ea as _,qo as a,Ti as b,co as c,Za as d,ht as et,ja as f,ma as g,va as h,es as i,br as j,jr as k,ro as l,Ta as m,gs as n,ln as nt,Bo as o,Oa as p,xn as q,ps as r,jo as s,Ns as t,dn as tt,$a as u,Vi as v,qr as w,Z as x,Ii as y,cr as z}; \ No newline at end of file + `)])]),za={info:()=>p(lr,null),success:()=>p(ur,null),warning:()=>p(dr,null),error:()=>p(cr,null),default:()=>null},Ba=A({name:`Message`,props:Object.assign(Object.assign({},La),{render:Function}),setup(e){let{inlineThemeDisabled:t,mergedRtlRef:n}=Oe(e),{props:r,mergedClsPrefixRef:i}=o(Ma),a=Fe(`Message`,n,i),s=Ie(`Message`,`-message`,Ra,Fa,r,i),c=h(()=>{let{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{padding:r,margin:i,maxWidth:a,iconMargin:o,closeMargin:c,closeSize:l,iconSize:u,fontSize:d,lineHeight:f,borderRadius:p,border:m,iconColorInfo:h,iconColorSuccess:g,iconColorWarning:_,iconColorError:v,iconColorLoading:y,closeIconSize:b,closeBorderRadius:x,[L(`textColor`,t)]:S,[L(`boxShadow`,t)]:C,[L(`color`,t)]:w,[L(`closeColorHover`,t)]:T,[L(`closeColorPressed`,t)]:E,[L(`closeIconColor`,t)]:D,[L(`closeIconColorPressed`,t)]:O,[L(`closeIconColorHover`,t)]:k}}=s.value;return{"--n-bezier":n,"--n-margin":i,"--n-padding":r,"--n-max-width":a,"--n-font-size":d,"--n-icon-margin":o,"--n-icon-size":u,"--n-close-icon-size":b,"--n-close-border-radius":x,"--n-close-size":l,"--n-close-margin":c,"--n-text-color":S,"--n-color":w,"--n-box-shadow":C,"--n-icon-color-info":h,"--n-icon-color-success":g,"--n-icon-color-warning":_,"--n-icon-color-error":v,"--n-icon-color-loading":y,"--n-close-color-hover":T,"--n-close-color-pressed":E,"--n-close-icon-color":D,"--n-close-icon-color-pressed":O,"--n-close-icon-color-hover":k,"--n-line-height":f,"--n-border-radius":p,"--n-border":m}}),l=t?De(`message`,h(()=>e.type[0]),c,{}):void 0;return{mergedClsPrefix:i,rtlEnabled:a,messageProviderProps:r,handleClose(){var t;(t=e.onClose)==null||t.call(e)},cssVars:t?void 0:c,themeClass:l?.themeClass,onRender:l?.onRender,placement:r.placement}},render(){let{render:e,type:t,closable:n,content:r,mergedClsPrefix:i,cssVars:a,themeClass:o,onRender:s,icon:c,handleClose:l,showIcon:u}=this;s?.();let d;return p(`div`,{class:[`${i}-message-wrapper`,o],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith(`top`)?`flex-start`:`flex-end`},a]},e?e(this.$props):p(`div`,{class:[`${i}-message ${i}-message--${t}-type`,this.rtlEnabled&&`${i}-message--rtl`]},(d=Va(c,t,i,this.spinProps))&&u?p(`div`,{class:`${i}-message__icon ${i}-message__icon--${t}-type`},p(ar,null,{default:()=>d})):null,p(`div`,{class:`${i}-message__content`},Sn(r)),n?p(hr,{clsPrefix:i,class:`${i}-message__close`,onClick:l,absolute:!0}):null))}});function Va(e,t,n,r){if(typeof e==`function`)return e();{let e=t===`loading`?p(br,Object.assign({clsPrefix:n,strokeWidth:24,scale:.85},r)):za[t]();return e?p(ir,{clsPrefix:n,key:t},{default:()=>e}):null}}var Ha=A({name:`MessageEnvironment`,props:Object.assign(Object.assign({},La),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null,n=E(!0);v(()=>{r()});function r(){let{duration:n}=e;n&&(t=window.setTimeout(o,n))}function i(e){e.currentTarget===e.target&&t!==null&&(window.clearTimeout(t),t=null)}function a(e){e.currentTarget===e.target&&r()}function o(){let{onHide:r}=e;n.value=!1,t&&=(window.clearTimeout(t),null),r&&r()}function s(){let{onClose:t}=e;t&&t(),o()}function c(){let{onAfterLeave:t,onInternalAfterLeave:n,onAfterHide:r,internalKey:i}=e;t&&t(),n&&n(i),r&&r()}function l(){o()}return{show:n,hide:o,handleClose:s,handleAfterLeave:c,handleMouseleave:a,handleMouseenter:i,deactivate:l}},render(){return p(gr,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?p(Ba,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,spinProps:this.spinProps,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),Ua=A({name:`MessageProvider`,props:Object.assign(Object.assign({},Ie.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:`top`},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),setup(e){let{mergedClsPrefixRef:t}=Oe(e),n=E([]),r=E({}),i={create(e,t){return a(e,Object.assign({type:`default`},t))},info(e,t){return a(e,Object.assign(Object.assign({},t),{type:`info`}))},success(e,t){return a(e,Object.assign(Object.assign({},t),{type:`success`}))},warning(e,t){return a(e,Object.assign(Object.assign({},t),{type:`warning`}))},error(e,t){return a(e,Object.assign(Object.assign({},t),{type:`error`}))},loading(e,t){return a(e,Object.assign(Object.assign({},t),{type:`loading`}))},destroyAll:s};de(Ma,{props:e,mergedClsPrefixRef:t}),de(ja,i);function a(t,i){let a=vn(),o=ce(Object.assign(Object.assign({},i),{content:t,key:a,destroy:()=>{var e;(e=r.value[a])==null||e.hide()}})),{max:s}=e;return s&&n.value.length>=s&&n.value.shift(),n.value.push(o),o}function o(e){n.value.splice(n.value.findIndex(t=>t.key===e),1),delete r.value[e]}function s(){Object.values(r.value).forEach(e=>{e.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:o},i)},render(){var e;return p(b,null,(e=this.$slots).default?.call(e),this.messageList.length?p(ge,{to:this.to??`body`},p(`div`,{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:`message-container`,style:this.containerStyle},this.messageList.map(e=>p(Ha,Object.assign({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},xn(e,[`destroy`],void 0),{duration:e.duration===void 0?this.duration:e.duration,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover,closable:e.closable===void 0?this.closable:e.closable}))))):null)}}),Wa={closeMargin:`16px 12px`,closeSize:`20px`,closeIconSize:`16px`,width:`365px`,padding:`16px`,titleFontSize:`16px`,metaFontSize:`12px`,descriptionFontSize:`12px`};function Ga(e){let{textColor2:t,successColor:n,infoColor:r,warningColor:i,errorColor:a,popoverColor:o,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:p,borderRadius:m,fontWeightStrong:h,boxShadow2:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},Wa),{borderRadius:m,lineHeight:_,fontSize:v,headerFontWeight:h,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:i,iconColorError:a,color:o,textColor:t,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeBorderRadius:m,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:g})}R({name:`Notification`,common:z,peers:{Scrollbar:B},self:Ga});var Ka={name:`Notification`,common:q,peers:{Scrollbar:J},self:Ga};function qa(e){let{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}}var Ja={name:`Divider`,common:q,self:qa};function Ya(e){let{modalColor:t,textColor1:n,textColor2:r,boxShadow3:i,lineHeight:a,fontWeightStrong:o,dividerColor:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:p,primaryColorHover:m}=e;return{bodyPadding:`16px 24px`,borderRadius:p,headerPadding:`16px 24px`,footerPadding:`16px 24px`,color:t,textColor:r,titleTextColor:n,titleFontSize:`18px`,titleFontWeight:o,boxShadow:i,lineHeight:a,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:`22px`,closeIconSize:`18px`,closeColorHover:c,closeColorPressed:l,closeBorderRadius:p,resizableTriggerColorHover:m}}R({name:`Drawer`,common:z,peers:{Scrollbar:B},self:Ya});var Xa={name:`Drawer`,common:q,peers:{Scrollbar:J},self:Ya},Za={actionMargin:`0 0 0 20px`,actionMarginRtl:`0 20px 0 0`},Qa={name:`DynamicInput`,common:q,peers:{Input:X,Button:Q},self(){return Za}},$a={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},eo={name:`Space`,self(){return $a}},to={name:`DynamicTags`,common:q,peers:{Input:X,Button:Q,Tag:Rr,Space:eo},self(){return{inputWidth:`64px`}}},no={name:`Element`,common:q},ro={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},io={name:`Flex`,self(){return ro}},ao={name:`ButtonGroup`,common:q},oo={feedbackPadding:`4px 0 0 2px`,feedbackHeightSmall:`24px`,feedbackHeightMedium:`24px`,feedbackHeightLarge:`26px`,feedbackFontSizeSmall:`13px`,feedbackFontSizeMedium:`14px`,feedbackFontSizeLarge:`14px`,labelFontSizeLeftSmall:`14px`,labelFontSizeLeftMedium:`14px`,labelFontSizeLeftLarge:`15px`,labelFontSizeTopSmall:`13px`,labelFontSizeTopMedium:`14px`,labelFontSizeTopLarge:`14px`,labelHeightSmall:`24px`,labelHeightMedium:`26px`,labelHeightLarge:`28px`,labelPaddingVertical:`0 0 6px 2px`,labelPaddingHorizontal:`0 12px 0 0`,labelTextAlignVertical:`left`,labelTextAlignHorizontal:`right`,labelFontWeight:`400`};function so(e){let{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:i,errorColor:a,warningColor:o,lineHeight:s,textColor3:c}=e;return Object.assign(Object.assign({},oo),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:s,labelTextColor:i,asteriskColor:a,feedbackTextColorError:a,feedbackTextColorWarning:o,feedbackTextColor:c})}var co={name:`Form`,common:z,self:so},lo={name:`Form`,common:q,self:so},uo={name:`GradientText`,common:q,self(e){let{primaryColor:t,successColor:n,warningColor:r,errorColor:i,infoColor:a,primaryColorSuppl:o,successColorSuppl:s,warningColorSuppl:c,errorColorSuppl:l,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:`252deg`,colorStartPrimary:t,colorEndPrimary:o,colorStartInfo:a,colorEndInfo:u,colorStartWarning:r,colorEndWarning:c,colorStartError:i,colorEndError:l,colorStartSuccess:n,colorEndSuccess:s}}},fo={name:`InputNumber`,common:q,peers:{Button:Q,Input:X},self(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function po(){return{inputWidthSmall:`24px`,inputWidthMedium:`30px`,inputWidthLarge:`36px`,gapSmall:`8px`,gapMedium:`8px`,gapLarge:`8px`}}R({name:`InputOtp`,common:z,peers:{Input:ei},self:po});var mo={name:`InputOtp`,common:q,peers:{Input:X},self:po},ho={name:`Layout`,common:q,peers:{Scrollbar:J},self(e){let{textColor2:t,bodyColor:n,popoverColor:r,cardColor:i,dividerColor:a,scrollbarColor:o,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:i,headerColorInverted:i,footerColor:i,footerColorInverted:i,headerBorderColor:a,headerBorderColorInverted:a,footerBorderColor:a,footerBorderColorInverted:a,siderBorderColor:a,siderBorderColorInverted:a,siderColor:i,siderColorInverted:i,siderToggleButtonBorder:`1px solid transparent`,siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:F(n,o),siderToggleBarColorHover:F(n,s),__invertScrollbar:`false`}}},go={name:`Row`,common:q};function _o(e){let{textColor2:t,cardColor:n,modalColor:r,popoverColor:i,dividerColor:a,borderRadius:o,fontSize:s,hoverColor:c}=e;return{textColor:t,color:n,colorHover:c,colorModal:r,colorHoverModal:F(r,c),colorPopover:i,colorHoverPopover:F(i,c),borderColor:a,borderColorModal:F(r,a),borderColorPopover:F(i,a),borderRadius:o,fontSize:s}}var vo={name:`List`,common:q,self:_o},yo={name:`Log`,common:q,peers:{Scrollbar:J,Code:ki},self(e){let{textColor2:t,inputColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid #0000`,loadingColor:i}}},bo={name:`Mention`,common:q,peers:{InternalSelectMenu:Mr,Input:X},self(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}};function xo(e,t,n,r){return{itemColorHoverInverted:`#0000`,itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}function So(e){let{borderRadius:t,textColor3:n,primaryColor:r,textColor2:i,textColor1:a,fontSize:o,dividerColor:s,hoverColor:c,primaryColorHover:l}=e;return Object.assign({borderRadius:t,color:`#0000`,groupTextColor:n,itemColorHover:c,itemColorActive:j(r,{alpha:.1}),itemColorActiveHover:j(r,{alpha:.1}),itemColorActiveCollapsed:j(r,{alpha:.1}),itemTextColor:i,itemTextColorHover:i,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:i,itemTextColorHoverHorizontal:l,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:a,itemIconColorHover:a,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:a,itemIconColorHorizontal:a,itemIconColorHoverHorizontal:l,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:`42px`,arrowColor:i,arrowColorHover:i,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:`#0000`,borderColorHorizontal:`#0000`,fontSize:o,dividerColor:s},xo(`#BBB`,r,`#FFF`,`#AAA`))}R({name:`Menu`,common:z,peers:{Tooltip:ea,Dropdown:Yi},self:So});var Co={name:`Menu`,common:q,peers:{Tooltip:Qi,Dropdown:Xi},self(e){let{primaryColor:t,primaryColorSuppl:n}=e,r=So(e);return r.itemColorActive=j(t,{alpha:.15}),r.itemColorActiveHover=j(t,{alpha:.15}),r.itemColorActiveCollapsed=j(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},wo={titleFontSize:`18px`,backSize:`22px`};function To(e){let{textColor1:t,textColor2:n,textColor3:r,fontSize:i,fontWeightStrong:a,primaryColorHover:o,primaryColorPressed:s}=e;return Object.assign(Object.assign({},wo),{titleFontWeight:a,fontSize:i,titleTextColor:t,backColor:n,backColorHover:o,backColorPressed:s,subtitleTextColor:r})}R({name:`PageHeader`,common:z,self:To});var Eo={name:`PageHeader`,common:q,self:To},Do={iconSize:`22px`};function Oo(e){let{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},Do),{fontSize:t,iconColor:n})}R({name:`Popconfirm`,common:z,peers:{Button:Z,Popover:Fr},self:Oo});var ko={name:`Popconfirm`,common:q,peers:{Button:Q,Popover:Ir},self:Oo};function Ao(e){let{infoColor:t,successColor:n,warningColor:r,errorColor:i,textColor2:a,progressRailColor:o,fontSize:s,fontWeight:c}=e;return{fontSize:s,fontSizeCircle:`28px`,fontWeightCircle:c,railColor:o,railHeight:`8px`,iconSizeCircle:`36px`,iconSizeLine:`18px`,iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:i,textColorCircle:a,textColorLineInner:`rgb(255, 255, 255)`,textColorLineOuter:a,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:i,lineBgProcessing:`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`}}var jo={name:`Progress`,common:z,self:Ao},Mo={name:`Progress`,common:q,self(e){let t=Ao(e);return t.textColorLineInner=`rgb(0, 0, 0)`,t.lineBgProcessing=`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`,t}},No={name:`Rate`,common:q,self(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#CCAA33`,itemSize:`20px`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}},Po={titleFontSizeSmall:`26px`,titleFontSizeMedium:`32px`,titleFontSizeLarge:`40px`,titleFontSizeHuge:`48px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,iconSizeSmall:`64px`,iconSizeMedium:`80px`,iconSizeLarge:`100px`,iconSizeHuge:`125px`,iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Fo(e){let{textColor2:t,textColor1:n,errorColor:r,successColor:i,infoColor:a,warningColor:o,lineHeight:s,fontWeightStrong:c}=e;return Object.assign(Object.assign({},Po),{lineHeight:s,titleFontWeight:c,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:i,iconColorInfo:a,iconColorWarning:o})}var Io={name:`Result`,common:q,self:Fo},Lo={railHeight:`4px`,railWidthVertical:`4px`,handleSize:`18px`,dotHeight:`8px`,dotWidth:`8px`,dotBorderRadius:`4px`},Ro={name:`Slider`,common:q,self(e){let{railColor:t,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:o,borderRadius:s,fontSize:c,opacityDisabled:l}=e;return Object.assign(Object.assign({},Lo),{fontSize:c,markFontSize:c,railColor:t,railColorHover:t,fillColor:r,fillColorHover:r,opacityDisabled:l,handleColor:`#FFF`,dotColor:o,dotColorModal:n,dotColorPopover:i,handleBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowHover:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowActive:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowFocus:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,indicatorColor:i,indicatorBoxShadow:`0 2px 8px 0 rgba(0, 0, 0, 0.12)`,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:``})}};function zo(e){let{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:i,heightLarge:a,heightHuge:o,primaryColor:s,fontSize:c}=e;return{fontSize:c,textColor:s,sizeTiny:n,sizeSmall:r,sizeMedium:i,sizeLarge:a,sizeHuge:o,color:s,opacitySpinning:t}}var Bo={name:`Spin`,common:z,self:zo},Vo={name:`Spin`,common:q,self:zo};function Ho(e){let{textColor2:t,textColor3:n,fontSize:r,fontWeight:i}=e;return{labelFontSize:r,labelFontWeight:i,valueFontWeight:i,valueFontSize:`24px`,labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}var Uo={name:`Statistic`,common:q,self:Ho},Wo={stepHeaderFontSizeSmall:`14px`,stepHeaderFontSizeMedium:`16px`,indicatorIndexFontSizeSmall:`14px`,indicatorIndexFontSizeMedium:`16px`,indicatorSizeSmall:`22px`,indicatorSizeMedium:`28px`,indicatorIconSizeSmall:`14px`,indicatorIconSizeMedium:`18px`};function Go(e){let{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:i,errorColor:a,textColor1:o,textColor2:s}=e;return Object.assign(Object.assign({},Wo),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:i,indicatorTextColorError:a,indicatorBorderColorProcess:i,indicatorBorderColorWait:r,indicatorBorderColorFinish:i,indicatorBorderColorError:a,indicatorColorProcess:i,indicatorColorWait:`#0000`,indicatorColorFinish:`#0000`,indicatorColorError:`#0000`,splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:i,splitorColorError:r,headerTextColorProcess:o,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:a,descriptionTextColorProcess:s,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:a})}var Ko={name:`Steps`,common:q,self:Go},qo={buttonHeightSmall:`14px`,buttonHeightMedium:`18px`,buttonHeightLarge:`22px`,buttonWidthSmall:`14px`,buttonWidthMedium:`18px`,buttonWidthLarge:`22px`,buttonWidthPressedSmall:`20px`,buttonWidthPressedMedium:`24px`,buttonWidthPressedLarge:`28px`,railHeightSmall:`18px`,railHeightMedium:`22px`,railHeightLarge:`26px`,railWidthSmall:`32px`,railWidthMedium:`40px`,railWidthLarge:`48px`},Jo={name:`Switch`,common:q,self(e){let{primaryColorSuppl:t,opacityDisabled:n,borderRadius:r,primaryColor:i,textColor2:a,baseColor:o}=e;return Object.assign(Object.assign({},qo),{iconColor:o,textColor:a,loadingColor:t,opacityDisabled:n,railColor:`rgba(255, 255, 255, .20)`,railColorActive:t,buttonBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${j(i,{alpha:.3})}`})}},Yo={thPaddingSmall:`6px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`6px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`};function Xo(e){let{dividerColor:t,cardColor:n,modalColor:r,popoverColor:i,tableHeaderColor:a,tableColorStriped:o,textColor1:s,textColor2:c,borderRadius:l,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m}=e;return Object.assign(Object.assign({},Yo),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,lineHeight:d,borderRadius:l,borderColor:F(n,t),borderColorModal:F(r,t),borderColorPopover:F(i,t),tdColor:n,tdColorModal:r,tdColorPopover:i,tdColorStriped:F(n,o),tdColorStripedModal:F(r,o),tdColorStripedPopover:F(i,o),thColor:F(n,a),thColorModal:F(r,a),thColorPopover:F(i,a),thTextColor:s,tdTextColor:c,thFontWeight:u})}var Zo={name:`Table`,common:q,self:Xo},Qo={tabFontSizeSmall:`14px`,tabFontSizeMedium:`14px`,tabFontSizeLarge:`16px`,tabGapSmallLine:`36px`,tabGapMediumLine:`36px`,tabGapLargeLine:`36px`,tabGapSmallLineVertical:`8px`,tabGapMediumLineVertical:`8px`,tabGapLargeLineVertical:`8px`,tabPaddingSmallLine:`6px 0`,tabPaddingMediumLine:`10px 0`,tabPaddingLargeLine:`14px 0`,tabPaddingVerticalSmallLine:`6px 12px`,tabPaddingVerticalMediumLine:`8px 16px`,tabPaddingVerticalLargeLine:`10px 20px`,tabGapSmallBar:`36px`,tabGapMediumBar:`36px`,tabGapLargeBar:`36px`,tabGapSmallBarVertical:`8px`,tabGapMediumBarVertical:`8px`,tabGapLargeBarVertical:`8px`,tabPaddingSmallBar:`4px 0`,tabPaddingMediumBar:`6px 0`,tabPaddingLargeBar:`10px 0`,tabPaddingVerticalSmallBar:`6px 12px`,tabPaddingVerticalMediumBar:`8px 16px`,tabPaddingVerticalLargeBar:`10px 20px`,tabGapSmallCard:`4px`,tabGapMediumCard:`4px`,tabGapLargeCard:`4px`,tabGapSmallCardVertical:`4px`,tabGapMediumCardVertical:`4px`,tabGapLargeCardVertical:`4px`,tabPaddingSmallCard:`8px 16px`,tabPaddingMediumCard:`10px 20px`,tabPaddingLargeCard:`12px 24px`,tabPaddingSmallSegment:`4px 0`,tabPaddingMediumSegment:`6px 0`,tabPaddingLargeSegment:`8px 0`,tabPaddingVerticalLargeSegment:`0 8px`,tabPaddingVerticalSmallCard:`8px 12px`,tabPaddingVerticalMediumCard:`10px 16px`,tabPaddingVerticalLargeCard:`12px 20px`,tabPaddingVerticalSmallSegment:`0 4px`,tabPaddingVerticalMediumSegment:`0 6px`,tabGapSmallSegment:`0`,tabGapMediumSegment:`0`,tabGapLargeSegment:`0`,tabGapSmallSegmentVertical:`0`,tabGapMediumSegmentVertical:`0`,tabGapLargeSegmentVertical:`0`,panePaddingSmall:`8px 0 0 0`,panePaddingMedium:`12px 0 0 0`,panePaddingLarge:`16px 0 0 0`,closeSize:`18px`,closeIconSize:`14px`};function $o(e){let{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,tabColor:l,baseColor:u,dividerColor:d,fontWeight:f,textColor1:p,borderRadius:m,fontSize:h,fontWeightStrong:g}=e;return Object.assign(Object.assign({},Qo),{colorSegment:l,tabFontSizeCard:h,tabTextColorLine:p,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,closeBorderRadius:m,tabColor:l,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:m,paneTextColor:t,fontWeightStrong:g})}var es={name:`Tabs`,common:z,self:$o},ts={name:`Tabs`,common:q,self(e){let t=$o(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}};function ns(e){let{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:i}=e;return{fontSize:i,titleTextColor:t,textColor:n,titleFontWeight:r}}var rs={name:`Thing`,common:q,self:ns},is={titleMarginMedium:`0 0 6px 0`,titleMarginLarge:`-2px 0 6px 0`,titleFontSizeMedium:`14px`,titleFontSizeLarge:`16px`,iconSizeMedium:`14px`,iconSizeLarge:`14px`},as={name:`Timeline`,common:q,self(e){let{textColor3:t,infoColorSuppl:n,errorColorSuppl:r,successColorSuppl:i,warningColorSuppl:a,textColor1:o,textColor2:s,railColor:c,fontWeightStrong:l,fontSize:u}=e;return Object.assign(Object.assign({},is),{contentFontSize:u,titleFontWeight:l,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${i}`,circleBorderWarning:`2px solid ${a}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:i,iconColorWarning:a,titleTextColor:o,contentTextColor:s,metaTextColor:t,lineColor:c})}},os={extraFontSizeSmall:`12px`,extraFontSizeMedium:`12px`,extraFontSizeLarge:`14px`,titleFontSizeSmall:`14px`,titleFontSizeMedium:`16px`,titleFontSizeLarge:`16px`,closeSize:`20px`,closeIconSize:`16px`,headerHeightSmall:`44px`,headerHeightMedium:`44px`,headerHeightLarge:`50px`},ss={name:`Transfer`,common:q,peers:{Checkbox:Ei,Scrollbar:J,Input:X,Empty:Or,Button:Q},self(e){let{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:i,heightLarge:a,heightMedium:o,borderRadius:s,inputColor:c,tableHeaderColor:l,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,hoverColor:m,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y,dividerColor:b}=e;return Object.assign(Object.assign({},os),{itemHeightSmall:o,itemHeightMedium:o,itemHeightLarge:a,fontSizeSmall:i,fontSizeMedium:r,fontSizeLarge:n,borderRadius:s,dividerColor:b,borderColor:`#0000`,listColor:c,headerColor:l,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:m,titleFontWeight:t,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y})}};function cs(e){let{borderRadiusSmall:t,dividerColor:n,hoverColor:r,pressedColor:i,primaryColor:a,textColor3:o,textColor2:s,textColorDisabled:c,fontSize:l}=e;return{fontSize:l,lineHeight:`1.5`,nodeHeight:`30px`,nodeWrapperPadding:`3px 0`,nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:i,nodeColorActive:j(a,{alpha:.1}),arrowColor:o,nodeTextColor:s,nodeTextColorDisabled:c,loadingColor:a,dropMarkColor:a,lineColor:n}}R({name:`Tree`,common:z,peers:{Checkbox:Ti,Scrollbar:B,Empty:Dr},self:cs});var ls={name:`Tree`,common:q,peers:{Checkbox:Ei,Scrollbar:J,Empty:Or},self(e){let{primaryColor:t}=e,n=cs(e);return n.nodeColorActive=j(t,{alpha:.15}),n}},us={name:`TreeSelect`,common:q,peers:{Tree:ls,Empty:Or,InternalSelection:Br}},ds={headerFontSize1:`30px`,headerFontSize2:`22px`,headerFontSize3:`18px`,headerFontSize4:`16px`,headerFontSize5:`16px`,headerFontSize6:`16px`,headerMargin1:`28px 0 20px 0`,headerMargin2:`28px 0 20px 0`,headerMargin3:`28px 0 20px 0`,headerMargin4:`28px 0 18px 0`,headerMargin5:`28px 0 18px 0`,headerMargin6:`28px 0 18px 0`,headerPrefixWidth1:`16px`,headerPrefixWidth2:`16px`,headerPrefixWidth3:`12px`,headerPrefixWidth4:`12px`,headerPrefixWidth5:`12px`,headerPrefixWidth6:`12px`,headerBarWidth1:`4px`,headerBarWidth2:`4px`,headerBarWidth3:`3px`,headerBarWidth4:`3px`,headerBarWidth5:`3px`,headerBarWidth6:`3px`,pMargin:`16px 0 16px 0`,liMargin:`.25em 0 0 0`,olPadding:`0 0 0 2em`,ulPadding:`0 0 0 2em`};function fs(e){let{primaryColor:t,textColor2:n,borderColor:r,lineHeight:i,fontSize:a,borderRadiusSmall:o,dividerColor:s,fontWeightStrong:c,textColor1:l,textColor3:u,infoColor:d,warningColor:f,errorColor:p,successColor:m,codeColor:h}=e;return Object.assign(Object.assign({},ds),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:i,blockquoteFontSize:a,codeBorderRadius:o,liTextColor:n,liLineHeight:i,liFontSize:a,hrColor:s,headerFontWeight:c,headerTextColor:l,pTextColor:n,pTextColor1Depth:l,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:i,pFontSize:a,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:m,textColor:n,textColor1Depth:l,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:m,textColorWarning:f,textColorError:p,codeTextColor:n,codeColor:h,codeBorder:`1px solid #0000`})}var ps={name:`Typography`,common:z,self:fs},ms={name:`Typography`,common:q,self:fs};function hs(e){let{iconColor:t,primaryColor:n,errorColor:r,textColor2:i,successColor:a,opacityDisabled:o,actionColor:s,borderColor:c,hoverColor:l,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${c}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:l,itemColorHoverError:j(r,{alpha:.06}),itemTextColor:i,itemTextColorError:r,itemTextColorSuccess:a,itemIconColor:t,itemDisabledOpacity:o,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${c}`}}var gs=R({name:`Upload`,common:z,peers:{Button:Z,Progress:jo},self:hs}),_s={name:`Upload`,common:q,peers:{Button:Q,Progress:Mo},self(e){let{errorColor:t}=e,n=hs(e);return n.itemColorHoverError=j(t,{alpha:.09}),n}},vs={name:`Watermark`,common:q,self(e){let{fontFamily:t}=e;return{fontFamily:t}}},ys={name:`FloatButton`,common:q,self(e){let{popoverColor:t,textColor2:n,buttonColor2Hover:r,buttonColor2Pressed:i,primaryColor:a,primaryColorHover:o,primaryColorPressed:s,baseColor:c,borderRadius:l}=e;return{color:t,textColor:n,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`,colorHover:r,colorPressed:i,colorPrimary:a,colorPrimaryHover:o,colorPrimaryPressed:s,textColorPrimary:c,borderRadiusSquare:l}}};function bs(e){let{borderRadius:t,fontSizeMini:n,fontSizeTiny:r,fontSizeSmall:i,fontWeight:a,textColor2:o,cardColor:s,buttonColor2Hover:c}=e;return{activeColors:[`#9be9a8`,`#40c463`,`#30a14e`,`#216e39`],borderRadius:t,borderColor:s,textColor:o,mininumColor:c,fontWeight:a,loadingColorStart:`rgba(0, 0, 0, 0.06)`,loadingColorEnd:`rgba(0, 0, 0, 0.12)`,rectSizeSmall:`10px`,rectSizeMedium:`11px`,rectSizeLarge:`12px`,borderRadiusSmall:`2px`,borderRadiusMedium:`2px`,borderRadiusLarge:`2px`,xGapSmall:`2px`,xGapMedium:`3px`,xGapLarge:`3px`,yGapSmall:`2px`,yGapMedium:`3px`,yGapLarge:`3px`,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:i}}R({name:`Heatmap`,common:z,self:bs});var xs={name:`Heatmap`,common:q,self(e){let t=bs(e);return Object.assign(Object.assign({},t),{activeColors:[`#0d4429`,`#006d32`,`#26a641`,`#39d353`],mininumColor:`rgba(255, 255, 255, 0.1)`,loadingColorStart:`rgba(255, 255, 255, 0.12)`,loadingColorEnd:`rgba(255, 255, 255, 0.18)`})}};function Ss(e){let{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}var Cs={name:`IconWrapper`,common:q,self:Ss},ws={name:`Image`,common:q,peers:{Tooltip:Qi},self:e=>{let{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}},Ts={extraFontSize:`12px`,width:`440px`},Es={name:`Transfer`,common:q,peers:{Checkbox:Ei,Scrollbar:J,Input:X,Empty:Or,Button:Q},self(e){let{iconColorDisabled:t,iconColor:n,fontWeight:r,fontSizeLarge:i,fontSizeMedium:a,fontSizeSmall:o,heightLarge:s,heightMedium:c,heightSmall:l,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:m,textColor2:h,hoverColor:g}=e;return Object.assign(Object.assign({},Ts),{itemHeightSmall:l,itemHeightMedium:c,itemHeightLarge:s,fontSizeSmall:o,fontSizeMedium:a,fontSizeLarge:i,borderRadius:u,borderColor:`#0000`,listColor:d,headerColor:f,titleTextColor:p,titleTextColorDisabled:m,extraTextColor:h,filterDividerColor:`#0000`,itemTextColor:h,itemTextColorDisabled:m,itemColorPending:g,titleFontWeight:r,iconColor:n,iconColorDisabled:t})}};function Ds(){return{}}var Os={name:`dark`,common:q,Alert:Wr,Anchor:Xr,AutoComplete:ri,Avatar:oi,AvatarGroup:ci,BackTop:ui,Badge:di,Breadcrumb:mi,Button:Q,ButtonGroup:ao,Calendar:yi,Card:bi,Carousel:Si,Cascader:Oi,Checkbox:Ei,Code:ki,Collapse:ji,CollapseTransition:Ni,ColorPicker:Fi,DataTable:la,DatePicker:ya,Descriptions:Sa,Dialog:Ea,Divider:Ja,Drawer:Xa,Dropdown:Xi,DynamicInput:Qa,DynamicTags:to,Element:no,Empty:Or,Ellipsis:ta,Equation:{name:`Equation`,common:q,self:()=>({})},Flex:io,Form:lo,GradientText:uo,Heatmap:xs,Icon:da,IconWrapper:Cs,Image:ws,Input:X,InputNumber:fo,InputOtp:mo,LegacyTransfer:Es,Layout:ho,List:vo,LoadingBar:Aa,Log:yo,Menu:Co,Mention:bo,Message:Ia,Modal:ka,Notification:Ka,PageHeader:Eo,Pagination:Ki,Popconfirm:ko,Popover:Ir,Popselect:Li,Progress:Mo,QrCode:{name:`QrCode`,common:q,self:e=>({borderRadius:e.borderRadius})},Radio:ia,Rate:No,Result:Io,Row:go,Scrollbar:J,Select:Hi,Skeleton:{name:`Skeleton`,common:q,self(e){let{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:i}=e;return{color:`rgba(255, 255, 255, 0.12)`,colorEnd:`rgba(255, 255, 255, 0.18)`,borderRadius:i,heightSmall:t,heightMedium:n,heightLarge:r}}},Slider:Ro,Space:eo,Spin:Vo,Statistic:Uo,Steps:Ko,Switch:Jo,Table:Zo,Tabs:ts,Tag:Rr,Thing:rs,TimePicker:ha,Timeline:as,Tooltip:Qi,Transfer:ss,Tree:ls,TreeSelect:us,Typography:ms,Upload:_s,Watermark:vs,Split:{name:`Split`,common:q},FloatButton:ys,FloatButtonGroup:{name:`FloatButtonGroup`,common:q,self(e){let{popoverColor:t,dividerColor:n,borderRadius:r}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:r,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`}}},Marquee:{name:`Marquee`,common:q,self:Ds}},ks=A({__name:`App`,setup(e){return(e,n)=>(c(),ve(ue(Ii),{theme:ue(Os)},{default:se(()=>[t(ue(Ua),null,{default:se(()=>[t(ue(fe))]),_:1})]),_:1},8,[`theme`]))}}),As=`modulepreload`,js=function(e){return`/`+e},Ms={},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=js(t,n),t=s(t),t in Ms)return;Ms[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:As,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Ns=T({history:ie(`/`),routes:[{path:`/participation`,name:`participation`,component:()=>$(()=>import(`./ParticipationView-C3qDA10w.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]))},{path:`/`,name:`home`,component:()=>$(()=>import(`./HomeView-P7HmrCBa.js`),__vite__mapDeps([16,1,12,13,14,17]))},{path:`/login`,name:`login`,component:()=>$(()=>import(`./LoginView-B1lGgObI.js`),__vite__mapDeps([18,1,3,19,2,4,5,6,7,20,8,21,22,23,24,25,9,10,11,13,12,14,26]))},{path:`/office`,name:`office`,component:()=>$(()=>import(`./OfficeView-CUdTzgA2.js`),__vite__mapDeps([27,1,28,3,2,4,5,6,7,20,8,29,25,22,30,9,13,12,14,31]))},{path:`/user-agreement`,name:`user-agreement`,component:()=>$(()=>import(`./UserAgreementView-Co6k36_y.js`),__vite__mapDeps([32,1,33,3,4,23,6,30,13,34,35,36,12,14]))},{path:`/privacy-policy`,name:`privacy-policy`,component:()=>$(()=>import(`./PrivacyPolicyView-BdZMUbuj.js`),__vite__mapDeps([37,1,33,3,4,23,6,30,13,34,35,36,12,14]))},{path:`/consent`,name:`consent`,component:()=>$(()=>import(`./ConsentView-BI8S4rrx.js`),__vite__mapDeps([38,1,33,3,4,23,6,30,13,34,35,36,12,14]))},{path:`/games`,name:`games`,component:()=>$(()=>import(`./GamesView-iKvbJg0m.js`),__vite__mapDeps([39,1,3,19,2,4,5,6,7,20,8,21,28,29,22,40,23,41,42,43,25,9,10,11,44,13,12,14,15,45]))},{path:`/screen`,name:`screen`,component:()=>$(()=>import(`./ScreenView-CUgZFDLh.js`),__vite__mapDeps([46,1,2,3,4,5,6,7,8,40,19,20,21,22,23,41,29,42,43,9,47,13,12,14,48,15,49]))},{path:`/games/:id/results`,name:`game-results`,component:()=>$(()=>import(`./GameResultsView-B10RrKbL.js`),__vite__mapDeps([50,1,8,3,4,5,9,44,11,13,12,14,51]))},{path:`/games/:id`,name:`game`,component:()=>$(()=>import(`./GameView-D5vfq7WW.js`),__vite__mapDeps([52,1,3,2,4,5,6,7,20,8,28,29,22,40,19,21,23,41,42,43,24,25,53,9,10,11,44,54,47,55,13,12,14,56,57,58,48,15,59]))},{path:`/team-story/:id`,name:`team-story`,component:()=>$(()=>import(`./TeamStoryView-CjECoLQL.js`),__vite__mapDeps([60,1,8,3,4,5,61,2,6,7,20,28,29,22,62,19,41,23,42,24,25,53,43,10,11,55,13,48,63,9,44,54,47,34,35,58,64]))},{path:`/scenarios`,name:`scenarios`,component:()=>$(()=>import(`./ScenariosView-BDlkEnAX.js`),__vite__mapDeps([65,1,2,3,4,5,6,7,28,20,8,29,62,19,22,41,23,42,24,25,43,9,44,11,55,13,12,14,57,66]))},{path:`/catalog`,name:`catalog`,component:()=>$(()=>import(`./CatalogView-Ym_LLlzp.js`),__vite__mapDeps([67,1,43,3,4,5,54,22,13,12,14,68]))},{path:`/scenarios/:id/editor`,name:`scenario-editor`,component:()=>$(()=>import(`./ScenariosEditorView-F771n23k.js`),__vite__mapDeps([69,1,2,3,4,5,6,7,28,20,8,29,62,19,22,41,23,42,24,25,61,53,43,10,11,55,13,48,63,30,9,44,12,14,56,57,70]))},{path:`/scenarios/:id`,name:`scenario`,component:()=>$(()=>import(`./ScenarioView-Crpa-0a2.js`),__vite__mapDeps([71,1,43,3,4,5,9,54,22,13,12,14,72]))},{path:`/users`,name:`users`,component:()=>$(()=>import(`./UsersView-ClrscFQ_.js`),__vite__mapDeps([73,1,3,2,4,5,6,7,28,20,8,29,42,25,22,43,9,10,11,44,13,12,14,74]))},{path:`/reviews`,name:`reviews`,component:()=>$(()=>import(`./ReviewsView-BnIZXIGV.js`),__vite__mapDeps([75,1,2,3,4,5,6,7,8,43,9,44,11,54,22,13,12,14,76]))}]}),Ps=hn(ks);Ps.use(le()),me().initFromStorage(),Ps.use(Ns),Ps.mount(`#app`);export{on as $,Dr as A,or as B,ei as C,Lr as D,Hr as E,pr as F,wn as G,ir as H,dr as I,bn as J,Sn as K,ur as L,yr as M,gr as N,Fr as O,hr as P,Jt as Q,lr as R,ni as S,Ur as T,An as U,ar as V,Tn as W,vn as X,yn as Y,$e as Z,ea as _,qo as a,Ti as b,co as c,Za as d,ht as et,ja as f,ma as g,va as h,es as i,br as j,jr as k,ro as l,Ta as m,gs as n,ln as nt,Bo as o,Oa as p,xn as q,ps as r,jo as s,Ns as t,dn as tt,$a as u,Vi as v,qr as w,Z as x,Ii as y,cr as z}; \ No newline at end of file diff --git a/dist/assets/keep-XDVR1tb6.js b/dist/assets/keep-D5zQL9t4.js similarity index 96% rename from dist/assets/keep-XDVR1tb6.js rename to dist/assets/keep-D5zQL9t4.js index a9eae94..98314c0 100644 --- a/dist/assets/keep-XDVR1tb6.js +++ b/dist/assets/keep-D5zQL9t4.js @@ -1 +1 @@ -import{P as e,U as t,V as n,_ as r,ct as i,et as a,j as o}from"./auth-DetOXv90.js";import{d as s,f as c,u as l}from"./Card-BFXpokQN.js";import{X as u}from"./index-UYw_T9_p.js";function d(e){return typeof e==`string`?document.querySelector(e):e()||null}function f(e){return e instanceof HTMLElement}function p(e){for(let t=0;t=0;t--){let n=e.childNodes[t];if(f(n)&&(h(n)||m(n)))return!0}return!1}function h(e){if(!g(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function g(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var _=[],v=o({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){let r=u(),o=i(null),f=i(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===r}function b(t){var n;t.code===`Escape`&&y()&&((n=e.onEsc)==null||n.call(e,t))}t(()=>{a(()=>e.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),n(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=o.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var t;if(!e.disabled){if(_.push(r),e.autoFocus){let{initialFocusTo:n}=e;n===void 0?T(`first`):(t=d(n))==null||t.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var t;if(e.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==r),y()))return;let{finalFocusTo:n}=e;n===void 0?e.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(t=d(n))==null||t.focus({preventScroll:!0})}function T(t){if(y()&&e.active){let e=o.value,n=f.value;if(e!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,e.focus({preventScroll:!0}),g=!1;return}g=!0;let i=t===`first`?p(r):m(r);g=!1,i||(g=!0,e.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===o.value?T(`last`):T(`first`))}return{focusableStartRef:o,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:t}=this.$slots;if(t===void 0)return null;if(this.disabled)return t();let{active:n,focusableStyle:i}=this;return e(r,null,[e(`div`,{"aria-hidden":`true`,tabindex:n?`0`:`-1`,ref:`focusableStartRef`,style:i,onFocus:this.handleStartFocus}),t(),e(`div`,{"aria-hidden":`true`,style:i,ref:`focusableEndRef`,tabindex:n?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t}; \ No newline at end of file +import{P as e,U as t,V as n,_ as r,ct as i,et as a,j as o}from"./auth-CzuN8bsR.js";import{d as s,f as c,u as l}from"./Card-jY6IqKWx.js";import{X as u}from"./index-4mSiwzFS.js";function d(e){return typeof e==`string`?document.querySelector(e):e()||null}function f(e){return e instanceof HTMLElement}function p(e){for(let t=0;t=0;t--){let n=e.childNodes[t];if(f(n)&&(h(n)||m(n)))return!0}return!1}function h(e){if(!g(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function g(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var _=[],v=o({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){let r=u(),o=i(null),f=i(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===r}function b(t){var n;t.code===`Escape`&&y()&&((n=e.onEsc)==null||n.call(e,t))}t(()=>{a(()=>e.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),n(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=o.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var t;if(!e.disabled){if(_.push(r),e.autoFocus){let{initialFocusTo:n}=e;n===void 0?T(`first`):(t=d(n))==null||t.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var t;if(e.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==r),y()))return;let{finalFocusTo:n}=e;n===void 0?e.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(t=d(n))==null||t.focus({preventScroll:!0})}function T(t){if(y()&&e.active){let e=o.value,n=f.value;if(e!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,e.focus({preventScroll:!0}),g=!1;return}g=!0;let i=t===`first`?p(r):m(r);g=!1,i||(g=!0,e.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===o.value?T(`last`):T(`first`))}return{focusableStartRef:o,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:t}=this.$slots;if(t===void 0)return null;if(this.disabled)return t();let{active:n,focusableStyle:i}=this;return e(r,null,[e(`div`,{"aria-hidden":`true`,tabindex:n?`0`:`-1`,ref:`focusableStartRef`,style:i,onFocus:this.handleStartFocus}),t(),e(`div`,{"aria-hidden":`true`,style:i,ref:`focusableEndRef`,tabindex:n?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t}; \ No newline at end of file diff --git a/dist/assets/light-EjSCIEMB.js b/dist/assets/light-Cn9TVfcC.js similarity index 95% rename from dist/assets/light-EjSCIEMB.js rename to dist/assets/light-Cn9TVfcC.js index b2fae0b..23bb6ef 100644 --- a/dist/assets/light-EjSCIEMB.js +++ b/dist/assets/light-Cn9TVfcC.js @@ -1 +1 @@ -import{t as e}from"./light-BN35I8ot.js";var t={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function n(e){let{scrollbarColor:n,scrollbarColorHover:r,scrollbarHeight:i,scrollbarWidth:a,scrollbarBorderRadius:o}=e;return Object.assign(Object.assign({},t),{height:i,width:a,borderRadius:o,color:n,colorHover:r})}var r={name:`Scrollbar`,common:e,self:n},i={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function a(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:a,cardColor:o,textColor2:s,textColor1:c,dividerColor:l,fontWeightStrong:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,closeColorHover:m,closeColorPressed:h,modalColor:g,boxShadow1:_,popoverColor:v,actionColor:y}=e;return Object.assign(Object.assign({},i),{lineHeight:r,color:o,colorModal:g,colorPopover:v,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:s,titleTextColor:c,borderColor:l,actionColor:y,titleFontWeight:u,closeColorHover:m,closeColorPressed:h,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,fontSizeSmall:a,fontSizeMedium:a,fontSizeLarge:a,fontSizeHuge:a,boxShadow:_,borderRadius:n})}var o={name:`Card`,common:e,self:a};export{n as i,a as n,r,o as t}; \ No newline at end of file +import{t as e}from"./light-Dg5iONHF.js";var t={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function n(e){let{scrollbarColor:n,scrollbarColorHover:r,scrollbarHeight:i,scrollbarWidth:a,scrollbarBorderRadius:o}=e;return Object.assign(Object.assign({},t),{height:i,width:a,borderRadius:o,color:n,colorHover:r})}var r={name:`Scrollbar`,common:e,self:n},i={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function a(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:a,cardColor:o,textColor2:s,textColor1:c,dividerColor:l,fontWeightStrong:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,closeColorHover:m,closeColorPressed:h,modalColor:g,boxShadow1:_,popoverColor:v,actionColor:y}=e;return Object.assign(Object.assign({},i),{lineHeight:r,color:o,colorModal:g,colorPopover:v,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:s,titleTextColor:c,borderColor:l,actionColor:y,titleFontWeight:u,closeColorHover:m,closeColorPressed:h,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,fontSizeSmall:a,fontSizeMedium:a,fontSizeLarge:a,fontSizeHuge:a,boxShadow:_,borderRadius:n})}var o={name:`Card`,common:e,self:a};export{n as i,a as n,r,o as t}; \ No newline at end of file diff --git a/dist/assets/light-BN35I8ot.js b/dist/assets/light-Dg5iONHF.js similarity index 99% rename from dist/assets/light-BN35I8ot.js rename to dist/assets/light-Dg5iONHF.js index 3670a77..82f7c0e 100644 --- a/dist/assets/light-BN35I8ot.js +++ b/dist/assets/light-Dg5iONHF.js @@ -1,4 +1,4 @@ -import{B as e,F as t,S as n,ct as r,f as i,lt as a,tt as o}from"./auth-DetOXv90.js";function s(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function c(e){let t=0;for(let n=0;n{let r=c(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function f(e,t){let n=[];return t.split(l).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function p(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?d(t,e):f(t,e))}),t.join(`, `).replace(u,` `)}function m(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function h(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function ee(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function g(e){return e?/^\s*@(s|m)/.test(e):!1}var te=/[A-Z]/g;function _(e){return e.replace(te,e=>`-`+e.toLowerCase())}function ne(e,t=` `){return typeof e==`object`&&e?` { +import{B as e,F as t,S as n,ct as r,f as i,lt as a,tt as o}from"./auth-CzuN8bsR.js";function s(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function c(e){let t=0;for(let n=0;n{let r=c(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function f(e,t){let n=[];return t.split(l).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function p(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?d(t,e):f(t,e))}),t.join(`, `).replace(u,` `)}function m(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function h(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function ee(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function g(e){return e?/^\s*@(s|m)/.test(e):!1}var te=/[A-Z]/g;function _(e){return e.replace(te,e=>`-`+e.toLowerCase())}function ne(e,t=` `){return typeof e==`object`&&e?` { `+Object.entries(e).map(e=>t+` ${_(e[0])}: ${e[1]};`).join(` `)+` `+t+`}`:`: ${e};`}function re(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function ie(e,t,n,r){if(!t)return``;let i=re(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` { diff --git a/dist/assets/resolve-slot-DXnJRg0o.js b/dist/assets/resolve-slot-Bgp_Mn8k.js similarity index 93% rename from dist/assets/resolve-slot-DXnJRg0o.js rename to dist/assets/resolve-slot-Bgp_Mn8k.js index 9eed40a..85f372d 100644 --- a/dist/assets/resolve-slot-DXnJRg0o.js +++ b/dist/assets/resolve-slot-Bgp_Mn8k.js @@ -1 +1 @@ -import{I as e,_ as t,g as n}from"./auth-DetOXv90.js";function r(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function i(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function a(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}function o(e,t){let[n,r]=e.split(` `);return t?t===`row`?n:r:{row:n,col:r||n}}function s(r){return r.some(r=>e(r)?!(r.type===n||r.type===t&&!s(r.children)):!0)?r:null}function c(e,t){return e&&s(e())||t()}function l(e,t,n){return e&&s(e(t))||n(t)}function u(e,t){return t(e&&s(e())||null)}function d(e){return!(e&&s(e()))}export{u as a,a as c,l as i,i as l,d as n,r as o,c as r,o as s,s as t}; \ No newline at end of file +import{I as e,_ as t,g as n}from"./auth-CzuN8bsR.js";function r(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function i(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function a(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}function o(e,t){let[n,r]=e.split(` `);return t?t===`row`?n:r:{row:n,col:r||n}}function s(r){return r.some(r=>e(r)?!(r.type===n||r.type===t&&!s(r.children)):!0)?r:null}function c(e,t){return e&&s(e())||t()}function l(e,t,n){return e&&s(e(t))||n(t)}function u(e,t){return t(e&&s(e())||null)}function d(e){return!(e&&s(e()))}export{u as a,a as c,l as i,i as l,d as n,r as o,c as r,o as s,s as t}; \ No newline at end of file diff --git a/dist/assets/text-DNaqMd7_.js b/dist/assets/text-BQr3Ce8B.js similarity index 90% rename from dist/assets/text-DNaqMd7_.js rename to dist/assets/text-BQr3Ce8B.js index f98a63b..357c736 100644 --- a/dist/assets/text-DNaqMd7_.js +++ b/dist/assets/text-BQr3Ce8B.js @@ -1,4 +1,4 @@ -import{P as e,S as t,j as n}from"./auth-DetOXv90.js";import{K as r,M as i,N as a,Y as o,Z as s,r as c}from"./light-BN35I8ot.js";import{t as l}from"./use-compitable-Ct-u1IyK.js";import{r as u}from"./index-UYw_T9_p.js";var d=r(`text`,` +import{P as e,S as t,j as n}from"./auth-CzuN8bsR.js";import{K as r,M as i,N as a,Y as o,Z as s,r as c}from"./light-Dg5iONHF.js";import{t as l}from"./use-compitable-boC6cFiE.js";import{r as u}from"./index-4mSiwzFS.js";var d=r(`text`,` transition: color .3s var(--n-bezier); color: var(--n-text-color); `,[o(`strong`,` diff --git a/dist/assets/use-compitable-Ct-u1IyK.js b/dist/assets/use-compitable-boC6cFiE.js similarity index 57% rename from dist/assets/use-compitable-Ct-u1IyK.js rename to dist/assets/use-compitable-boC6cFiE.js index f31b85c..8b98a34 100644 --- a/dist/assets/use-compitable-Ct-u1IyK.js +++ b/dist/assets/use-compitable-boC6cFiE.js @@ -1 +1 @@ -import{S as e}from"./auth-DetOXv90.js";function t(t,n){return e(()=>{for(let e of n)if(t[e]!==void 0)return t[e];return t[n[n.length-1]]})}export{t}; \ No newline at end of file +import{S as e}from"./auth-CzuN8bsR.js";function t(t,n){return e(()=>{for(let e of n)if(t[e]!==void 0)return t[e];return t[n[n.length-1]]})}export{t}; \ No newline at end of file diff --git a/dist/assets/use-form-item-CT1L1ziV.js b/dist/assets/use-form-item-DDZTyeAQ.js similarity index 86% rename from dist/assets/use-form-item-CT1L1ziV.js rename to dist/assets/use-form-item-DDZTyeAQ.js index 0426939..67b74d7 100644 --- a/dist/assets/use-form-item-CT1L1ziV.js +++ b/dist/assets/use-form-item-DDZTyeAQ.js @@ -1 +1 @@ -import{F as e,S as t,V as n,q as r}from"./auth-DetOXv90.js";import{z as i}from"./light-BN35I8ot.js";function a(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}function o(e,...t){if(Array.isArray(e))e.forEach(e=>o(e,...t));else return e(...t)}var s=i(`n-form-item`);function c(i,{defaultSize:a=`medium`,mergedSize:o,mergedDisabled:c}={}){let l=e(s,null);r(s,null);let u=t(o?()=>o(l):()=>{let{size:e}=i;if(e)return e;if(l){let{mergedSize:e}=l;if(e.value!==void 0)return e.value}return a}),d=t(c?()=>c(l):()=>{let{disabled:e}=i;return e===void 0?l?l.disabled.value:!1:e}),f=t(()=>{let{status:e}=i;return e||l?.mergedValidationStatus.value});return n(()=>{l&&l.restoreValidation()}),{mergedSizeRef:u,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur(){l&&l.handleContentBlur()},nTriggerFormChange(){l&&l.handleContentChange()},nTriggerFormFocus(){l&&l.handleContentFocus()},nTriggerFormInput(){l&&l.handleContentInput()}}}export{a as i,c as n,o as r,s as t}; \ No newline at end of file +import{F as e,S as t,V as n,q as r}from"./auth-CzuN8bsR.js";import{z as i}from"./light-Dg5iONHF.js";function a(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}function o(e,...t){if(Array.isArray(e))e.forEach(e=>o(e,...t));else return e(...t)}var s=i(`n-form-item`);function c(i,{defaultSize:a=`medium`,mergedSize:o,mergedDisabled:c}={}){let l=e(s,null);r(s,null);let u=t(o?()=>o(l):()=>{let{size:e}=i;if(e)return e;if(l){let{mergedSize:e}=l;if(e.value!==void 0)return e.value}return a}),d=t(c?()=>c(l):()=>{let{disabled:e}=i;return e===void 0?l?l.disabled.value:!1:e}),f=t(()=>{let{status:e}=i;return e||l?.mergedValidationStatus.value});return n(()=>{l&&l.restoreValidation()}),{mergedSizeRef:u,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur(){l&&l.handleContentBlur()},nTriggerFormChange(){l&&l.handleContentChange()},nTriggerFormFocus(){l&&l.handleContentFocus()},nTriggerFormInput(){l&&l.handleContentInput()}}}export{a as i,c as n,o as r,s as t}; \ No newline at end of file diff --git a/dist/assets/use-merged-state-Dw19ICqg.js b/dist/assets/use-merged-state-D8rNARXC.js similarity index 59% rename from dist/assets/use-merged-state-Dw19ICqg.js rename to dist/assets/use-merged-state-D8rNARXC.js index 99623b3..f8fa56c 100644 --- a/dist/assets/use-merged-state-Dw19ICqg.js +++ b/dist/assets/use-merged-state-D8rNARXC.js @@ -1 +1 @@ -import{S as e,et as t}from"./auth-DetOXv90.js";function n(n,r){return t(n,e=>{e!==void 0&&(r.value=e)}),e(()=>n.value===void 0?r.value:n.value)}export{n as t}; \ No newline at end of file +import{S as e,et as t}from"./auth-CzuN8bsR.js";function n(n,r){return t(n,e=>{e!==void 0&&(r.value=e)}),e(()=>n.value===void 0?r.value:n.value)}export{n as t}; \ No newline at end of file diff --git a/dist/assets/use-message-bV_QZwc3.js b/dist/assets/use-message-R8JEzJ8f.js similarity index 72% rename from dist/assets/use-message-bV_QZwc3.js rename to dist/assets/use-message-R8JEzJ8f.js index 66e8ce2..f4e1636 100644 --- a/dist/assets/use-message-bV_QZwc3.js +++ b/dist/assets/use-message-R8JEzJ8f.js @@ -1 +1 @@ -import{F as e}from"./auth-DetOXv90.js";import{I as t}from"./light-BN35I8ot.js";import{f as n}from"./index-UYw_T9_p.js";function r(){let r=e(n,null);return r===null&&t(`use-message`,"No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),r}export{r as t}; \ No newline at end of file +import{F as e}from"./auth-CzuN8bsR.js";import{I as t}from"./light-Dg5iONHF.js";import{f as n}from"./index-4mSiwzFS.js";function r(){let r=e(n,null);return r===null&&t(`use-message`,"No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),r}export{r as t}; \ No newline at end of file diff --git a/dist/assets/useSimplePolling-D6M7J1Ci.js b/dist/assets/useSimplePolling-CxHCqzxV.js similarity index 74% rename from dist/assets/useSimplePolling-D6M7J1Ci.js rename to dist/assets/useSimplePolling-CxHCqzxV.js index 9d90396..f11b6ae 100644 --- a/dist/assets/useSimplePolling-D6M7J1Ci.js +++ b/dist/assets/useSimplePolling-CxHCqzxV.js @@ -1 +1 @@ -import{U as e,W as t,ct as n}from"./auth-DetOXv90.js";function r(r,i=5e3){let a=n(!0),o=null,s=()=>{a.value=!0,r(),o=window.setInterval(r,i)},c=()=>{a.value=!1,o&&=(clearInterval(o),null)};return e(s),t(c),{isActive:a,start:s,stop:c}}export{r as t}; \ No newline at end of file +import{U as e,W as t,ct as n}from"./auth-CzuN8bsR.js";function r(r,i=5e3){let a=n(!0),o=null,s=()=>{a.value=!0,r(),o=window.setInterval(r,i)},c=()=>{a.value=!1,o&&=(clearInterval(o),null)};return e(s),t(c),{isActive:a,start:s,stop:c}}export{r as t}; \ No newline at end of file diff --git a/dist/assets/utils-uz9aUEjP.js b/dist/assets/utils-Av1b4W6Q.js similarity index 98% rename from dist/assets/utils-uz9aUEjP.js rename to dist/assets/utils-Av1b4W6Q.js index a02e124..d6084c8 100644 --- a/dist/assets/utils-uz9aUEjP.js +++ b/dist/assets/utils-Av1b4W6Q.js @@ -1,4 +1,4 @@ -import{F as e,H as t,L as n,P as r,R as i,S as a,U as o,V as s,ct as c,dt as l,et as u,j as d,q as f,z as p}from"./auth-DetOXv90.js";import{G as m,J as h,K as g,M as _,N as v,R as y,X as b,Y as x,Z as S,o as C,r as w}from"./light-BN35I8ot.js";import{c as T,n as E,r as D,s as O,u as k}from"./Follower-BqBATTTc.js";import{c as A,i as j,l as M}from"./Card-BFXpokQN.js";import{a as N,c as P,l as F,o as I,r as ee}from"./resolve-slot-DXnJRg0o.js";import{i as L,n as R}from"./Suffix-CutOgybq.js";import{A as te,H as z,K as ne,Y as B,Z as re,j as ie,k as ae}from"./index-UYw_T9_p.js";function V(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function H(e){return e&-e}var U=class{constructor(e,t){this.l=e,this.min=t;let n=Array(e+1);for(let t=0;tr)throw Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*n;for(;e>0;)i+=t[e],e-=H(e);return i}getBound(e){let t=0,n=this.l;for(;n>t;){let r=Math.floor((t+n)/2),i=this.sum(r);if(i>e){n=r;continue}else if(i`u`?!1:(W===void 0&&(W=`matchMedia`in window?window.matchMedia(`(pointer:coarse)`).matches:!1),W)}var K;function q(){return typeof document>`u`?1:(K===void 0&&(K=`chrome`in window?window.devicePixelRatio:1),K)}var J=`VVirtualListXScroll`;function Y({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){let r=c(0),i=c(0),o=a(()=>{let t=e.value;if(t.length===0)return null;let n=new U(t.length,0);return t.forEach((e,t)=>{n.add(t,e.width)}),n});return f(J,{startIndexRef:B(()=>{let e=o.value;return e===null?0:Math.max(e.getBound(i.value)-1,0)}),endIndexRef:B(()=>{let t=o.value;return t===null?0:Math.min(t.getBound(i.value+r.value)+1,e.value.length-1)}),columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:e=>{let t=o.value;return t===null?0:t.sum(e)}}),{listWidthRef:r,scrollLeftRef:i}}var X=d({name:`VirtualListRow`,props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){let{startIndexRef:t,endIndexRef:n,columnsRef:r,getLeft:i,renderColRef:a,renderItemWithColsRef:o}=e(J);return{startIndex:t,endIndex:n,columns:r,renderCol:a,renderItemWithCols:o,getLeft:i}},render(){let{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:i,getLeft:a,item:o}=this;if(i!=null)return i({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:o,getLeft:a});if(r!=null){let i=[];for(let s=e;s<=t;++s){let e=n[s];i.push(r({column:e,left:a(s),item:o}))}return i}return null}}),oe=E(`.v-vl`,{maxHeight:`inherit`,height:`100%`,overflow:`auto`,minWidth:`1px`},[E(`&:not(.v-vl--show-scrollbar)`,{scrollbarWidth:`none`},[E(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,{width:0,height:0,display:`none`})])]),se=d({name:`VirtualList`,inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:`div`},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:`key`},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){let n=y();oe.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:D,ssr:n}),o(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&C({key:n}):C({index:t})});let r=!1,i=!1;p(()=>{if(r=!1,!i){i=!0;return}C({top:b.value,left:d.value})}),t(()=>{r=!0,i||=!0});let s=B(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let t=0;return e.columns.forEach(e=>{t+=e.width}),t}),u=a(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:d,listWidthRef:f}=Y({columnsRef:l(e,`columns`),renderColRef:l(e,`renderCol`),renderItemWithColsRef:l(e,`renderItemWithCols`)}),m=c(null),h=c(void 0),g=new Map,_=a(()=>{let{items:t,itemSize:n,keyField:r}=e,i=new U(t.length,n);return t.forEach((e,t)=>{let n=e[r],a=g.get(n);a!==void 0&&i.add(t,a)}),i}),v=c(0),b=c(0),x=B(()=>Math.max(_.value.getBound(b.value-I(e.paddingTop))-1,0)),S=a(()=>{let{value:t}=h;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=x.value,a=Math.min(i+Math.ceil(t/r+1),n.length-1),o=[];for(let e=i;e<=a;++e)o.push(n[e]);return o}),C=(e,t)=>{if(typeof e==`number`){O(e,t,`auto`);return}let{left:n,top:r,index:i,key:a,position:o,behavior:s,debounce:c=!0}=e;if(n!==void 0||r!==void 0)O(n,r,s);else if(i!==void 0)E(i,s,c);else if(a!==void 0){let e=u.value.get(a);e!==void 0&&E(e,s,c)}else o===`bottom`?O(0,2**53-1,s):o===`top`&&O(0,0,s)},w,T=null;function E(t,n,r){let{value:i}=_,a=i.sum(t)+I(e.paddingTop);if(!r)m.value.scrollTo({left:0,top:a,behavior:n});else{w=t,T!==null&&window.clearTimeout(T),T=window.setTimeout(()=>{w=void 0,T=null},16);let{scrollTop:e,offsetHeight:r}=m.value;if(a>e){let o=i.get(t);a+o<=e+r||m.value.scrollTo({left:0,top:a+o-r,behavior:n})}else m.value.scrollTo({left:0,top:a,behavior:n})}}function O(e,t,n){m.value.scrollTo({left:e,top:t,behavior:n})}function A(t,n){if(r||e.ignoreItemResize||R(n.target))return;let{value:i}=_,a=u.value.get(t),o=i.get(a),s=n.borderBoxSize?.[0]?.blockSize??n.contentRect.height;if(s===o)return;s-e.itemSize===0?g.delete(t):g.set(t,s-e.itemSize);let c=s-o;if(c===0)return;i.add(a,c);let l=m.value;if(l!=null){if(w===void 0){let e=i.sum(a);l.scrollTop>e&&l.scrollBy(0,c)}else(al.scrollTop+l.offsetHeight)&&l.scrollBy(0,c);L()}v.value++}let j=!G(),M=!1;function N(t){var n;(n=e.onScroll)==null||n.call(e,t),(!j||!M)&&L()}function P(t){var n;if((n=e.onWheel)==null||n.call(e,t),j){let e=m.value;if(e!=null){if(t.deltaX===0&&(e.scrollTop===0&&t.deltaY<=0||e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0))return;t.preventDefault(),e.scrollTop+=t.deltaY/q(),e.scrollLeft+=t.deltaX/q(),L(),M=!0,k(()=>{M=!1})}}}function ee(t){if(r||R(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===h.value)return}else if(t.contentRect.height===h.value&&t.contentRect.width===f.value)return;h.value=t.contentRect.height,f.value=t.contentRect.width;let{onResize:n}=e;n!==void 0&&n(t)}function L(){let{value:e}=m;e!=null&&(b.value=e.scrollTop,d.value=e.scrollLeft)}function R(e){let t=e;for(;t!==null;){if(t.style.display===`none`)return!0;t=t.parentElement}return!1}return{listHeight:h,listStyle:{overflow:`auto`},keyToIndex:u,itemsStyle:a(()=>{let{itemResizable:t}=e,n=F(_.value.sum());return v.value,[e.itemsStyle,{boxSizing:`content-box`,width:F(s.value),height:t?``:n,minHeight:t?n:``,paddingTop:F(e.paddingTop),paddingBottom:F(e.paddingBottom)}]}),visibleItemsStyle:a(()=>(v.value,{transform:`translateY(${F(_.value.sum(x.value))})`})),viewportItems:S,listElRef:m,itemsElRef:c(null),scrollTo:C,handleListResize:ee,handleListScroll:N,handleListWheel:P,handleItemResize:A}},render(){let{itemResizable:e,keyField:t,keyToIndex:i,visibleItemsTag:a}=this;return r(A,{onResize:this.handleListResize},{default:()=>{var o;return r(`div`,n(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(o=this.$slots).empty?.call(o):r(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[r(a,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:n,renderItemWithCols:a}=this;return this.viewportItems.map(o=>{let s=o[t],c=i.get(s),l=n==null?void 0:r(X,{index:c,item:o}),u=a==null?void 0:r(X,{index:c,item:o}),d=this.$slots.default({item:o,renderedCols:l,renderedItemWithCols:u,index:c})[0];return e?r(A,{key:s,onResize:e=>this.handleItemResize(s,e)},{default:()=>d}):(d.key=s,d)})}})])])}})}});function ce(e,t){t&&(o(()=>{let{value:n}=e;n&&M.registerHandler(n,t)}),u(e,(e,t)=>{t&&M.unregisterHandler(t)},{deep:!1}),s(()=>{let{value:t}=e;t&&M.unregisterHandler(t)}))}function Z(e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?t[0]:t=>{e.forEach(e=>{e&&e(t)})}}var le=d({name:`Checkmark`,render(){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`},r(`g`,{fill:`none`},r(`path`,{d:`M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z`,fill:`currentColor`})))}}),ue=d({name:`Empty`,render(){return r(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},r(`path`,{d:`M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z`,fill:`currentColor`}),r(`path`,{d:`M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z`,fill:`currentColor`}))}}),de=d({props:{onFocus:Function,onBlur:Function},setup(e){return()=>r(`div`,{style:`width: 0; height: 0`,tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}});function fe(e){return Array.isArray(e)?e:[e]}var pe={STOP:`STOP`};function me(e,t){let n=t(e);e.children!==void 0&&n!==pe.STOP&&e.children.forEach(e=>me(e,t))}function he(e,t={}){let{preserveGroup:n=!1}=t,r=[],i=n?e=>{e.isLeaf||(r.push(e.key),a(e.children))}:e=>{e.isLeaf||(e.isGroup||r.push(e.key),a(e.children))};function a(e){e.forEach(i)}return a(e),r}function ge(e,t){let{isLeaf:n}=e;return n===void 0?!t(e):n}function _e(e){return e.children}function ve(e){return e.key}function ye(){return!1}function be(e,t){let{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function xe(e){return e.disabled===!0}function Se(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Ce(e){return e==null?[]:Array.isArray(e)?e:e.checkedKeys??[]}function we(e){return e==null||Array.isArray(e)?[]:e.indeterminateKeys??[]}function Te(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)||n.add(e)}),Array.from(n)}function Ee(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)&&n.delete(e)}),Array.from(n)}function De(e){return e?.type===`group`}function Oe(e){let t=new Map;return e.forEach((e,n)=>{t.set(e.key,n)}),e=>t.get(e)??null}var ke=class extends Error{constructor(){super(),this.message=`SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded.`}};function Ae(e,t,n,r){return Q(t.concat(e),n,r,!1)}function je(e,t){let n=new Set;return e.forEach(e=>{let r=t.treeNodeMap.get(e);if(r!==void 0){let e=r.parent;for(;e!==null&&!(e.disabled||n.has(e.key));)n.add(e.key),e=e.parent}}),n}function Me(e,t,n,r){let i=Q(t,n,r,!1),a=Q(e,n,r,!0),o=je(e,n),s=[];return i.forEach(e=>{(a.has(e)||o.has(e))&&s.push(e)}),s.forEach(e=>i.delete(e)),i}function Ne(e,t){let{checkedKeys:n,keysToCheck:r,keysToUncheck:i,indeterminateKeys:a,cascade:o,leafOnly:s,checkStrategy:c,allowNotLoaded:l}=e;if(!o)return r===void 0?i===void 0?{checkedKeys:Array.from(n),indeterminateKeys:Array.from(a)}:{checkedKeys:Ee(n,i),indeterminateKeys:Array.from(a)}:{checkedKeys:Te(n,r),indeterminateKeys:Array.from(a)};let{levelTreeNodeMap:u}=t,d;d=i===void 0?r===void 0?Q(n,t,l,!1):Ae(r,n,t,l):Me(i,n,t,l);let f=c===`parent`,p=c===`child`||s,m=d,h=new Set,g=Math.max.apply(null,Array.from(u.keys()));for(let e=g;e>=0;--e){let t=e===0,n=u.get(e);for(let e of n){if(e.isLeaf)continue;let{key:n,shallowLoaded:r}=e;if(p&&r&&e.children.forEach(e=>{!e.disabled&&!e.isLeaf&&e.shallowLoaded&&m.has(e.key)&&m.delete(e.key)}),e.disabled||!r)continue;let i=!0,a=!1,o=!0;for(let t of e.children){let e=t.key;if(!t.disabled){if(o&&=!1,m.has(e))a=!0;else if(h.has(e)){a=!0,i=!1;break}else if(i=!1,a)break}}i&&!o?(f&&e.children.forEach(e=>{!e.disabled&&m.has(e.key)&&m.delete(e.key)}),m.add(n)):a&&h.add(n),t&&p&&m.has(n)&&m.delete(n)}}return{checkedKeys:Array.from(m),indeterminateKeys:Array.from(h)}}function Q(e,t,n,r){let{treeNodeMap:i,getChildren:a}=t,o=new Set,s=new Set(e);return e.forEach(e=>{let t=i.get(e);t!==void 0&&me(t,e=>{if(e.disabled)return pe.STOP;let{key:t}=e;if(!o.has(t)&&(o.add(t),s.add(t),Se(e.rawNode,a))){if(r)return pe.STOP;if(!n)throw new ke}})}),s}function Pe(e,{includeGroup:t=!1,includeSelf:n=!0},r){let i=r.treeNodeMap,a=e==null?null:i.get(e)??null,o={keyPath:[],treeNodePath:[],treeNode:a};if(a?.ignored)return o.treeNode=null,o;for(;a;)!a.ignored&&(t||!a.isGroup)&&o.treeNodePath.push(a),a=a.parent;return o.treeNodePath.reverse(),n||o.treeNodePath.pop(),o.keyPath=o.treeNodePath.map(e=>e.key),o}function Fe(e){if(e.length===0)return null;let t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function Ie(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i+1)%r]:i===n.length-1?null:n[i+1]}function Le(e,t,{loop:n=!1,includeDisabled:r=!1}={}){let i=t===`prev`?Re:Ie,a={reverse:t===`prev`},o=!1,s=null;function c(t){if(t!==null){if(t===e){if(!o)o=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!t.disabled||r)&&!t.ignored&&!t.isGroup){s=t;return}if(t.isGroup){let e=Be(t,a);e===null?c(i(t,n)):s=e}else{let e=i(t,!1);if(e!==null)c(e);else{let e=ze(t);e?.isGroup?c(i(e,n)):n&&c(i(t,!0))}}}}return c(e),s}function Re(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i-1+r)%r]:i===0?null:n[i-1]}function ze(e){return e.parent}function Be(e,t={}){let{reverse:n=!1}=t,{children:r}=e;if(r){let{length:e}=r,i=n?e-1:0,a=n?-1:e,o=n?-1:1;for(let e=i;e!==a;e+=o){let n=r[e];if(!n.disabled&&!n.ignored)if(n.isGroup){let e=Be(n,t);if(e!==null)return e}else return n}}return null}var Ve={getChild(){return this.ignored?null:Be(this)},getParent(){let{parent:e}=this;return e?.isGroup?e.getParent():e},getNext(e={}){return Le(this,`next`,e)},getPrev(e={}){return Le(this,`prev`,e)}};function He(e,t){let n=t?new Set(t):void 0,r=[];function i(e){e.forEach(e=>{r.push(e),!(e.isLeaf||!e.children||e.ignored)&&(e.isGroup||n===void 0||n.has(e.key))&&i(e.children)})}return i(e),r}function Ue(e,t){let n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function We(e,t,n,r,i,a=null,o=0){let s=[];return e.forEach((c,l)=>{var u;let d=Object.create(r);if(d.rawNode=c,d.siblings=s,d.level=o,d.index=l,d.isFirstChild=l===0,d.isLastChild=l+1===e.length,d.parent=a,!d.ignored){let e=i(c);Array.isArray(e)&&(d.children=We(e,t,n,r,i,d,o+1))}s.push(d),t.set(d.key,d),n.has(o)||n.set(o,[]),(u=n.get(o))==null||u.push(d)}),s}function Ge(e,t={}){let n=new Map,r=new Map,{getDisabled:i=xe,getIgnored:a=ye,getIsGroup:o=De,getKey:s=ve}=t,c=t.getChildren??_e,l=t.ignoreEmptyChildren?e=>{let t=c(e);return Array.isArray(t)?t.length?t:null:t}:c,u=We(e,n,r,Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return o(this.rawNode)},get isLeaf(){return ge(this.rawNode,l)},get shallowLoaded(){return be(this.rawNode,l)},get ignored(){return a(this.rawNode)},contains(e){return Ue(this,e)}},Ve),l);function d(e){if(e==null)return null;let t=n.get(e);return t&&!t.isGroup&&!t.ignored?t:null}function f(e){if(e==null)return null;let t=n.get(e);return t&&!t.ignored?t:null}function p(e,t){let n=f(e);return n?n.getPrev(t):null}function m(e,t){let n=f(e);return n?n.getNext(t):null}function h(e){let t=f(e);return t?t.getParent():null}function g(e){let t=f(e);return t?t.getChild():null}let _={treeNodes:u,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:l,getFlattenedNodes(e){return He(u,e)},getNode:d,getPrev:p,getNext:m,getParent:h,getChild:g,getFirstAvailableNode(){return Fe(u)},getPath(e,t={}){return Pe(e,t,_)},getCheckedKeys(e,t={}){let{cascade:n=!0,leafOnly:r=!1,checkStrategy:i=`all`,allowNotLoaded:a=!1}=t;return Ne({checkedKeys:Ce(e),indeterminateKeys:we(e),cascade:n,leafOnly:r,checkStrategy:i,allowNotLoaded:a},_)},check(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return Ne({checkedKeys:Ce(t),indeterminateKeys:we(t),keysToCheck:e==null?[]:fe(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},uncheck(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return Ne({checkedKeys:Ce(t),indeterminateKeys:we(t),keysToUncheck:e==null?[]:fe(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},getNonLeafKeys(e={}){return he(u,e)}};return _}var Ke=g(`empty`,` +import{F as e,H as t,L as n,P as r,R as i,S as a,U as o,V as s,ct as c,dt as l,et as u,j as d,q as f,z as p}from"./auth-CzuN8bsR.js";import{G as m,J as h,K as g,M as _,N as v,R as y,X as b,Y as x,Z as S,o as C,r as w}from"./light-Dg5iONHF.js";import{c as T,n as E,r as D,s as O,u as k}from"./Follower-BeUAmPJ4.js";import{c as A,i as j,l as M}from"./Card-jY6IqKWx.js";import{a as N,c as P,l as F,o as I,r as ee}from"./resolve-slot-Bgp_Mn8k.js";import{i as L,n as R}from"./Suffix-PHRsdJdH.js";import{A as te,H as z,K as ne,Y as B,Z as re,j as ie,k as ae}from"./index-4mSiwzFS.js";function V(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function H(e){return e&-e}var U=class{constructor(e,t){this.l=e,this.min=t;let n=Array(e+1);for(let t=0;tr)throw Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*n;for(;e>0;)i+=t[e],e-=H(e);return i}getBound(e){let t=0,n=this.l;for(;n>t;){let r=Math.floor((t+n)/2),i=this.sum(r);if(i>e){n=r;continue}else if(i`u`?!1:(W===void 0&&(W=`matchMedia`in window?window.matchMedia(`(pointer:coarse)`).matches:!1),W)}var K;function q(){return typeof document>`u`?1:(K===void 0&&(K=`chrome`in window?window.devicePixelRatio:1),K)}var J=`VVirtualListXScroll`;function Y({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){let r=c(0),i=c(0),o=a(()=>{let t=e.value;if(t.length===0)return null;let n=new U(t.length,0);return t.forEach((e,t)=>{n.add(t,e.width)}),n});return f(J,{startIndexRef:B(()=>{let e=o.value;return e===null?0:Math.max(e.getBound(i.value)-1,0)}),endIndexRef:B(()=>{let t=o.value;return t===null?0:Math.min(t.getBound(i.value+r.value)+1,e.value.length-1)}),columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:e=>{let t=o.value;return t===null?0:t.sum(e)}}),{listWidthRef:r,scrollLeftRef:i}}var X=d({name:`VirtualListRow`,props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){let{startIndexRef:t,endIndexRef:n,columnsRef:r,getLeft:i,renderColRef:a,renderItemWithColsRef:o}=e(J);return{startIndex:t,endIndex:n,columns:r,renderCol:a,renderItemWithCols:o,getLeft:i}},render(){let{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:i,getLeft:a,item:o}=this;if(i!=null)return i({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:o,getLeft:a});if(r!=null){let i=[];for(let s=e;s<=t;++s){let e=n[s];i.push(r({column:e,left:a(s),item:o}))}return i}return null}}),oe=E(`.v-vl`,{maxHeight:`inherit`,height:`100%`,overflow:`auto`,minWidth:`1px`},[E(`&:not(.v-vl--show-scrollbar)`,{scrollbarWidth:`none`},[E(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,{width:0,height:0,display:`none`})])]),se=d({name:`VirtualList`,inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:`div`},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:`key`},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){let n=y();oe.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:D,ssr:n}),o(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&C({key:n}):C({index:t})});let r=!1,i=!1;p(()=>{if(r=!1,!i){i=!0;return}C({top:b.value,left:d.value})}),t(()=>{r=!0,i||=!0});let s=B(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let t=0;return e.columns.forEach(e=>{t+=e.width}),t}),u=a(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:d,listWidthRef:f}=Y({columnsRef:l(e,`columns`),renderColRef:l(e,`renderCol`),renderItemWithColsRef:l(e,`renderItemWithCols`)}),m=c(null),h=c(void 0),g=new Map,_=a(()=>{let{items:t,itemSize:n,keyField:r}=e,i=new U(t.length,n);return t.forEach((e,t)=>{let n=e[r],a=g.get(n);a!==void 0&&i.add(t,a)}),i}),v=c(0),b=c(0),x=B(()=>Math.max(_.value.getBound(b.value-I(e.paddingTop))-1,0)),S=a(()=>{let{value:t}=h;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=x.value,a=Math.min(i+Math.ceil(t/r+1),n.length-1),o=[];for(let e=i;e<=a;++e)o.push(n[e]);return o}),C=(e,t)=>{if(typeof e==`number`){O(e,t,`auto`);return}let{left:n,top:r,index:i,key:a,position:o,behavior:s,debounce:c=!0}=e;if(n!==void 0||r!==void 0)O(n,r,s);else if(i!==void 0)E(i,s,c);else if(a!==void 0){let e=u.value.get(a);e!==void 0&&E(e,s,c)}else o===`bottom`?O(0,2**53-1,s):o===`top`&&O(0,0,s)},w,T=null;function E(t,n,r){let{value:i}=_,a=i.sum(t)+I(e.paddingTop);if(!r)m.value.scrollTo({left:0,top:a,behavior:n});else{w=t,T!==null&&window.clearTimeout(T),T=window.setTimeout(()=>{w=void 0,T=null},16);let{scrollTop:e,offsetHeight:r}=m.value;if(a>e){let o=i.get(t);a+o<=e+r||m.value.scrollTo({left:0,top:a+o-r,behavior:n})}else m.value.scrollTo({left:0,top:a,behavior:n})}}function O(e,t,n){m.value.scrollTo({left:e,top:t,behavior:n})}function A(t,n){if(r||e.ignoreItemResize||R(n.target))return;let{value:i}=_,a=u.value.get(t),o=i.get(a),s=n.borderBoxSize?.[0]?.blockSize??n.contentRect.height;if(s===o)return;s-e.itemSize===0?g.delete(t):g.set(t,s-e.itemSize);let c=s-o;if(c===0)return;i.add(a,c);let l=m.value;if(l!=null){if(w===void 0){let e=i.sum(a);l.scrollTop>e&&l.scrollBy(0,c)}else(al.scrollTop+l.offsetHeight)&&l.scrollBy(0,c);L()}v.value++}let j=!G(),M=!1;function N(t){var n;(n=e.onScroll)==null||n.call(e,t),(!j||!M)&&L()}function P(t){var n;if((n=e.onWheel)==null||n.call(e,t),j){let e=m.value;if(e!=null){if(t.deltaX===0&&(e.scrollTop===0&&t.deltaY<=0||e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0))return;t.preventDefault(),e.scrollTop+=t.deltaY/q(),e.scrollLeft+=t.deltaX/q(),L(),M=!0,k(()=>{M=!1})}}}function ee(t){if(r||R(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===h.value)return}else if(t.contentRect.height===h.value&&t.contentRect.width===f.value)return;h.value=t.contentRect.height,f.value=t.contentRect.width;let{onResize:n}=e;n!==void 0&&n(t)}function L(){let{value:e}=m;e!=null&&(b.value=e.scrollTop,d.value=e.scrollLeft)}function R(e){let t=e;for(;t!==null;){if(t.style.display===`none`)return!0;t=t.parentElement}return!1}return{listHeight:h,listStyle:{overflow:`auto`},keyToIndex:u,itemsStyle:a(()=>{let{itemResizable:t}=e,n=F(_.value.sum());return v.value,[e.itemsStyle,{boxSizing:`content-box`,width:F(s.value),height:t?``:n,minHeight:t?n:``,paddingTop:F(e.paddingTop),paddingBottom:F(e.paddingBottom)}]}),visibleItemsStyle:a(()=>(v.value,{transform:`translateY(${F(_.value.sum(x.value))})`})),viewportItems:S,listElRef:m,itemsElRef:c(null),scrollTo:C,handleListResize:ee,handleListScroll:N,handleListWheel:P,handleItemResize:A}},render(){let{itemResizable:e,keyField:t,keyToIndex:i,visibleItemsTag:a}=this;return r(A,{onResize:this.handleListResize},{default:()=>{var o;return r(`div`,n(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(o=this.$slots).empty?.call(o):r(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[r(a,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:n,renderItemWithCols:a}=this;return this.viewportItems.map(o=>{let s=o[t],c=i.get(s),l=n==null?void 0:r(X,{index:c,item:o}),u=a==null?void 0:r(X,{index:c,item:o}),d=this.$slots.default({item:o,renderedCols:l,renderedItemWithCols:u,index:c})[0];return e?r(A,{key:s,onResize:e=>this.handleItemResize(s,e)},{default:()=>d}):(d.key=s,d)})}})])])}})}});function ce(e,t){t&&(o(()=>{let{value:n}=e;n&&M.registerHandler(n,t)}),u(e,(e,t)=>{t&&M.unregisterHandler(t)},{deep:!1}),s(()=>{let{value:t}=e;t&&M.unregisterHandler(t)}))}function Z(e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?t[0]:t=>{e.forEach(e=>{e&&e(t)})}}var le=d({name:`Checkmark`,render(){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`},r(`g`,{fill:`none`},r(`path`,{d:`M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z`,fill:`currentColor`})))}}),ue=d({name:`Empty`,render(){return r(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},r(`path`,{d:`M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z`,fill:`currentColor`}),r(`path`,{d:`M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z`,fill:`currentColor`}))}}),de=d({props:{onFocus:Function,onBlur:Function},setup(e){return()=>r(`div`,{style:`width: 0; height: 0`,tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}});function fe(e){return Array.isArray(e)?e:[e]}var pe={STOP:`STOP`};function me(e,t){let n=t(e);e.children!==void 0&&n!==pe.STOP&&e.children.forEach(e=>me(e,t))}function he(e,t={}){let{preserveGroup:n=!1}=t,r=[],i=n?e=>{e.isLeaf||(r.push(e.key),a(e.children))}:e=>{e.isLeaf||(e.isGroup||r.push(e.key),a(e.children))};function a(e){e.forEach(i)}return a(e),r}function ge(e,t){let{isLeaf:n}=e;return n===void 0?!t(e):n}function _e(e){return e.children}function ve(e){return e.key}function ye(){return!1}function be(e,t){let{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function xe(e){return e.disabled===!0}function Se(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Ce(e){return e==null?[]:Array.isArray(e)?e:e.checkedKeys??[]}function we(e){return e==null||Array.isArray(e)?[]:e.indeterminateKeys??[]}function Te(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)||n.add(e)}),Array.from(n)}function Ee(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)&&n.delete(e)}),Array.from(n)}function De(e){return e?.type===`group`}function Oe(e){let t=new Map;return e.forEach((e,n)=>{t.set(e.key,n)}),e=>t.get(e)??null}var ke=class extends Error{constructor(){super(),this.message=`SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded.`}};function Ae(e,t,n,r){return Q(t.concat(e),n,r,!1)}function je(e,t){let n=new Set;return e.forEach(e=>{let r=t.treeNodeMap.get(e);if(r!==void 0){let e=r.parent;for(;e!==null&&!(e.disabled||n.has(e.key));)n.add(e.key),e=e.parent}}),n}function Me(e,t,n,r){let i=Q(t,n,r,!1),a=Q(e,n,r,!0),o=je(e,n),s=[];return i.forEach(e=>{(a.has(e)||o.has(e))&&s.push(e)}),s.forEach(e=>i.delete(e)),i}function Ne(e,t){let{checkedKeys:n,keysToCheck:r,keysToUncheck:i,indeterminateKeys:a,cascade:o,leafOnly:s,checkStrategy:c,allowNotLoaded:l}=e;if(!o)return r===void 0?i===void 0?{checkedKeys:Array.from(n),indeterminateKeys:Array.from(a)}:{checkedKeys:Ee(n,i),indeterminateKeys:Array.from(a)}:{checkedKeys:Te(n,r),indeterminateKeys:Array.from(a)};let{levelTreeNodeMap:u}=t,d;d=i===void 0?r===void 0?Q(n,t,l,!1):Ae(r,n,t,l):Me(i,n,t,l);let f=c===`parent`,p=c===`child`||s,m=d,h=new Set,g=Math.max.apply(null,Array.from(u.keys()));for(let e=g;e>=0;--e){let t=e===0,n=u.get(e);for(let e of n){if(e.isLeaf)continue;let{key:n,shallowLoaded:r}=e;if(p&&r&&e.children.forEach(e=>{!e.disabled&&!e.isLeaf&&e.shallowLoaded&&m.has(e.key)&&m.delete(e.key)}),e.disabled||!r)continue;let i=!0,a=!1,o=!0;for(let t of e.children){let e=t.key;if(!t.disabled){if(o&&=!1,m.has(e))a=!0;else if(h.has(e)){a=!0,i=!1;break}else if(i=!1,a)break}}i&&!o?(f&&e.children.forEach(e=>{!e.disabled&&m.has(e.key)&&m.delete(e.key)}),m.add(n)):a&&h.add(n),t&&p&&m.has(n)&&m.delete(n)}}return{checkedKeys:Array.from(m),indeterminateKeys:Array.from(h)}}function Q(e,t,n,r){let{treeNodeMap:i,getChildren:a}=t,o=new Set,s=new Set(e);return e.forEach(e=>{let t=i.get(e);t!==void 0&&me(t,e=>{if(e.disabled)return pe.STOP;let{key:t}=e;if(!o.has(t)&&(o.add(t),s.add(t),Se(e.rawNode,a))){if(r)return pe.STOP;if(!n)throw new ke}})}),s}function Pe(e,{includeGroup:t=!1,includeSelf:n=!0},r){let i=r.treeNodeMap,a=e==null?null:i.get(e)??null,o={keyPath:[],treeNodePath:[],treeNode:a};if(a?.ignored)return o.treeNode=null,o;for(;a;)!a.ignored&&(t||!a.isGroup)&&o.treeNodePath.push(a),a=a.parent;return o.treeNodePath.reverse(),n||o.treeNodePath.pop(),o.keyPath=o.treeNodePath.map(e=>e.key),o}function Fe(e){if(e.length===0)return null;let t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function Ie(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i+1)%r]:i===n.length-1?null:n[i+1]}function Le(e,t,{loop:n=!1,includeDisabled:r=!1}={}){let i=t===`prev`?Re:Ie,a={reverse:t===`prev`},o=!1,s=null;function c(t){if(t!==null){if(t===e){if(!o)o=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!t.disabled||r)&&!t.ignored&&!t.isGroup){s=t;return}if(t.isGroup){let e=Be(t,a);e===null?c(i(t,n)):s=e}else{let e=i(t,!1);if(e!==null)c(e);else{let e=ze(t);e?.isGroup?c(i(e,n)):n&&c(i(t,!0))}}}}return c(e),s}function Re(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i-1+r)%r]:i===0?null:n[i-1]}function ze(e){return e.parent}function Be(e,t={}){let{reverse:n=!1}=t,{children:r}=e;if(r){let{length:e}=r,i=n?e-1:0,a=n?-1:e,o=n?-1:1;for(let e=i;e!==a;e+=o){let n=r[e];if(!n.disabled&&!n.ignored)if(n.isGroup){let e=Be(n,t);if(e!==null)return e}else return n}}return null}var Ve={getChild(){return this.ignored?null:Be(this)},getParent(){let{parent:e}=this;return e?.isGroup?e.getParent():e},getNext(e={}){return Le(this,`next`,e)},getPrev(e={}){return Le(this,`prev`,e)}};function He(e,t){let n=t?new Set(t):void 0,r=[];function i(e){e.forEach(e=>{r.push(e),!(e.isLeaf||!e.children||e.ignored)&&(e.isGroup||n===void 0||n.has(e.key))&&i(e.children)})}return i(e),r}function Ue(e,t){let n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function We(e,t,n,r,i,a=null,o=0){let s=[];return e.forEach((c,l)=>{var u;let d=Object.create(r);if(d.rawNode=c,d.siblings=s,d.level=o,d.index=l,d.isFirstChild=l===0,d.isLastChild=l+1===e.length,d.parent=a,!d.ignored){let e=i(c);Array.isArray(e)&&(d.children=We(e,t,n,r,i,d,o+1))}s.push(d),t.set(d.key,d),n.has(o)||n.set(o,[]),(u=n.get(o))==null||u.push(d)}),s}function Ge(e,t={}){let n=new Map,r=new Map,{getDisabled:i=xe,getIgnored:a=ye,getIsGroup:o=De,getKey:s=ve}=t,c=t.getChildren??_e,l=t.ignoreEmptyChildren?e=>{let t=c(e);return Array.isArray(t)?t.length?t:null:t}:c,u=We(e,n,r,Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return o(this.rawNode)},get isLeaf(){return ge(this.rawNode,l)},get shallowLoaded(){return be(this.rawNode,l)},get ignored(){return a(this.rawNode)},contains(e){return Ue(this,e)}},Ve),l);function d(e){if(e==null)return null;let t=n.get(e);return t&&!t.isGroup&&!t.ignored?t:null}function f(e){if(e==null)return null;let t=n.get(e);return t&&!t.ignored?t:null}function p(e,t){let n=f(e);return n?n.getPrev(t):null}function m(e,t){let n=f(e);return n?n.getNext(t):null}function h(e){let t=f(e);return t?t.getParent():null}function g(e){let t=f(e);return t?t.getChild():null}let _={treeNodes:u,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:l,getFlattenedNodes(e){return He(u,e)},getNode:d,getPrev:p,getNext:m,getParent:h,getChild:g,getFirstAvailableNode(){return Fe(u)},getPath(e,t={}){return Pe(e,t,_)},getCheckedKeys(e,t={}){let{cascade:n=!0,leafOnly:r=!1,checkStrategy:i=`all`,allowNotLoaded:a=!1}=t;return Ne({checkedKeys:Ce(e),indeterminateKeys:we(e),cascade:n,leafOnly:r,checkStrategy:i,allowNotLoaded:a},_)},check(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return Ne({checkedKeys:Ce(t),indeterminateKeys:we(t),keysToCheck:e==null?[]:fe(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},uncheck(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return Ne({checkedKeys:Ce(t),indeterminateKeys:we(t),keysToUncheck:e==null?[]:fe(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},getNonLeafKeys(e={}){return he(u,e)}};return _}var Ke=g(`empty`,` display: flex; flex-direction: column; align-items: center; diff --git a/dist/index.html b/dist/index.html index 85d6eb8..c6b422f 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,10 +5,10 @@ Вечерний детектив - - - - + + + + diff --git a/proto/main.proto b/proto/main.proto index 837bf7e..1559827 100644 --- a/proto/main.proto +++ b/proto/main.proto @@ -705,6 +705,16 @@ service EveningDetectiveServer { }; } + rpc GetReviewsForModeration(GetReviewsForModerationReq) returns (GetGameReviewsRsp) { + option (google.api.http) = { + get: "/api/admin/game-reviews" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + tags : "Отзывы" + summary: "Получить общую очередь отзывов" + }; + } + rpc ModerateGameReview(ModerateGameReviewReq) returns (ModerateGameReviewRsp) { option (google.api.http) = { put : "/api/admin/game-reviews/{id}" @@ -1110,18 +1120,18 @@ message GetScenarioRsp { } message Scenario { - int32 id = 1; - string name = 2; - optional string description = 3; - optional string image = 4; - Story story = 5; - string status = 6; - User author = 7; - google.protobuf.Timestamp updated_at = 8; - google.protobuf.Timestamp created_at = 9; - google.protobuf.Timestamp published_at = 10; + int32 id = 1; + string name = 2; + optional string description = 3; + optional string image = 4; + Story story = 5; + string status = 6; + User author = 7; + google.protobuf.Timestamp updated_at = 8; + google.protobuf.Timestamp created_at = 9; + google.protobuf.Timestamp published_at = 10; double average_rating = 11; - int32 reviews_count = 12; + int32 reviews_count = 12; } message Story { @@ -1624,6 +1634,7 @@ message GameReview { string text = 6; string status = 7; google.protobuf.Timestamp created_at = 8; + string game_name = 9; } message CreateGameReviewReq { @@ -1643,6 +1654,8 @@ message GetGameReviewsReq { int32 gameId = 1; } +message GetReviewsForModerationReq {} + message GetGameReviewsRsp { string error = 1; double average_rating = 2; diff --git a/src/api/generated/crabs/evening_detective_server/index.ts b/src/api/generated/crabs/evening_detective_server/index.ts index 6629f33..4f601bd 100644 --- a/src/api/generated/crabs/evening_detective_server/index.ts +++ b/src/api/generated/crabs/evening_detective_server/index.ts @@ -729,6 +729,7 @@ export type GameReview = { text: string | undefined; status: string | undefined; createdAt: wellKnownTimestamp | undefined; + gameName: string | undefined; }; export type CreateGameReviewReq = { @@ -748,6 +749,9 @@ export type GetGameReviewsReq = { gameId: number | undefined; }; +export type GetReviewsForModerationReq = { +}; + export type GetGameReviewsRsp = { error: string | undefined; averageRating: number | undefined; @@ -1011,6 +1015,7 @@ export interface EveningDetectiveServer { CreateGameReview(request: CreateGameReviewReq): Promise; GetGameReviews(request: GetGameReviewsReq): Promise; GetGameReviewsForModeration(request: GetGameReviewsReq): Promise; + GetReviewsForModeration(request: GetReviewsForModerationReq): Promise; ModerateGameReview(request: ModerateGameReviewReq): Promise; UpdateGame(request: UpdateGameReq): Promise; StartGame(request: StartGameReq): Promise; @@ -2209,6 +2214,23 @@ export function createEveningDetectiveServerClient( method: "GetGameReviewsForModeration", }) as Promise; }, + GetReviewsForModeration(request) { // eslint-disable-line @typescript-eslint/no-unused-vars + const path = `api/admin/game-reviews`; // eslint-disable-line quotes + const body = null; + const queryParams: string[] = []; + let uri = path; + if (queryParams.length > 0) { + uri += `?${queryParams.join("&")}` + } + return handler({ + path: uri, + method: "GET", + body, + }, { + service: "EveningDetectiveServer", + method: "GetReviewsForModeration", + }) as Promise; + }, ModerateGameReview(request) { // eslint-disable-line @typescript-eslint/no-unused-vars if (!request.id) { throw new Error("missing required field request.id"); diff --git a/src/components/GamePage.vue b/src/components/GamePage.vue index e636990..c8dfeb7 100644 --- a/src/components/GamePage.vue +++ b/src/components/GamePage.vue @@ -9,6 +9,7 @@ import { NInputNumber, NModal, NQrCode, + NRate, NSelect, NSpace, NText, @@ -22,6 +23,7 @@ import { getBinaryClient } from '@/api/binary_client' import type { Application, Game, + GameReview, MapItem, Question, ScreenCommand, @@ -519,6 +521,10 @@ async function finishGame() { // ===== Ответы команд и оценка организатором ===== const showAnswersModal = ref(false) +const showReviewsModal = ref(false) +const gameReviews = ref([]) +const reviewsAverage = ref(0) +const reviewsCount = ref(0) const answersQuestions = ref([]) const answersTeams = ref([]) @@ -559,6 +565,27 @@ async function openAnswersModal() { await loadGameAnswers() } +async function openReviewsModal() { + showReviewsModal.value = true + const res = await client.GetGameReviewsForModeration({ gameId: Number(gameId) }) + if (res.error != '') { + message.error(res.error!) + return + } + gameReviews.value = res.reviews || [] + reviewsAverage.value = res.averageRating || 0 + reviewsCount.value = res.reviewsCount || 0 +} + +async function moderateReview(review: GameReview, status: string) { + const res = await client.ModerateGameReview({ id: review.id, status }) + if (res.error != '') { + message.error(res.error!) + return + } + await openReviewsModal() +} + // Сохраняет баллы всех команд за все вопросы; пустой балл сбрасывает его. async function saveAllScores() { for (const question of answersQuestions.value) { @@ -1192,6 +1219,42 @@ useSimplePolling(() => { + + + + + + {{ reviewsCount ? `${reviewsAverage.toFixed(1)} · ${reviewsCount}` : 'Пока нет отзывов' }} + +
Отзывов пока нет.
+
+ + {{ review.teamName }} + {{ review.status }} + + +

{{ review.text }}

+ + Одобрить + Отклонить + + + Скрыть + +
+
+
+ @@ -1203,6 +1266,19 @@ useSimplePolling(() => { margin: 10px 0; } +.reviews-summary { + margin-bottom: 20px; +} + +.review-row { + border-top: 1px solid #777; + padding: 16px 0; +} + +.review-row p { + white-space: pre-wrap; +} + .team-block-hover:hover { border: 1px solid #63e2b7; color: #63e2b7; diff --git a/src/components/HeaderMenu.vue b/src/components/HeaderMenu.vue index 711fcfd..b242b90 100644 --- a/src/components/HeaderMenu.vue +++ b/src/components/HeaderMenu.vue @@ -101,6 +101,14 @@ const openMenu = ref(false) > Пользователи +
diff --git a/src/components/ReviewsPage.vue b/src/components/ReviewsPage.vue new file mode 100644 index 0000000..c8caa11 --- /dev/null +++ b/src/components/ReviewsPage.vue @@ -0,0 +1,96 @@ + + + + + diff --git a/src/components/TeamStoryPage.vue b/src/components/TeamStoryPage.vue index ee6620c..184b188 100644 --- a/src/components/TeamStoryPage.vue +++ b/src/components/TeamStoryPage.vue @@ -205,8 +205,8 @@ const paperControlsOverrides = { borderDisabled: '1px dashed black', borderFocus: '1px solid black', borderHover: '1px dashed black', - boxShadowFocus: '0 0 0 2px rgb(99 226 183 / 30%)', - caretColor: '#63e2b7', + boxShadowFocus: '0 0 0 1px black', + caretColor: 'black', color: 'transparent', colorDisabled: 'transparent', colorFocus: 'transparent', @@ -218,8 +218,8 @@ const paperControlsOverrides = { }, Rate: { itemColor: 'black', - itemColorHover: 'black', - itemColorActive: 'black', + itemColorHover: '#b8860b', + itemColorActive: '#b8860b', }, } @@ -284,7 +284,7 @@ useSimplePolling(() => {
Оценка
- + { margin-top: 20px; } +.review-rating { + margin-bottom: 6px; + margin-top: 20px; +} + +.review-rate { + margin-bottom: 8px; + margin-top: 4px; +} + .review-input { margin-top: 14px; } diff --git a/src/router/index.ts b/src/router/index.ts index f06d571..e68d79b 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -88,6 +88,11 @@ const router = createRouter({ name: 'users', component: () => import('../views/UsersView.vue'), }, + { + path: '/reviews', + name: 'reviews', + component: () => import('../views/ReviewsView.vue'), + }, ], }) diff --git a/src/views/ReviewsView.vue b/src/views/ReviewsView.vue new file mode 100644 index 0000000..5807e66 --- /dev/null +++ b/src/views/ReviewsView.vue @@ -0,0 +1,7 @@ + + +