@10yun/open-sdk 0.3.97 → 0.3.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{404-DIY1-gwa.cjs → 404-B4CmtOOb.cjs} +1 -1
- package/dist/{404-DE7Pk-6G.js → 404-BLkrv3w1.js} +1 -1
- package/dist/{alone_run-BR__Dya8.cjs → alone_run-Cjy7Q_Sz.cjs} +1 -1
- package/dist/{alone_run-B72RhBny.js → alone_run-t8_0-4FT.js} +1 -1
- package/dist/index-De30ff-d.cjs +25 -0
- package/dist/{index-eCmAf5ru.js → index-e5P8YtsL.js} +741 -725
- package/dist/{login-BCLKLSlo.js → login-BX16RcPj.js} +254 -254
- package/dist/login-xMYfliOM.cjs +1 -0
- package/dist/{none-CEhsRvE2.cjs → none-D9olgMvC.cjs} +1 -1
- package/dist/{none-wMSqEt4-.js → none-Dalhv2Tk.js} +1 -1
- package/dist/open-sdk.cjs.js +1 -1
- package/dist/open-sdk.es.js +1 -1
- package/package.json +1 -1
- package/vite-plugin-shiyun.js +2 -1
- package/dist/index-BcokQifq.cjs +0 -25
- package/dist/login-DbsijHDN.cjs +0 -1
package/dist/index-BcokQifq.cjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";const ee=require("pinia"),i=require("vue"),_t=require("element-plus"),go=require("@element-plus/icons-vue");require("element-plus/dist/index.css");require("element-plus/theme-chalk/dark/css-vars.css");const po=require("@10yun/cv-pc-ui");require("@10yun/cv-pc-ui/lib/cv-ui.css");const Eo=require("@10yun/cv-icons-vue"),So=require("axios");function oa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const bo=oa(go),No=oa(Eo);let sa={};function ia(e={}){sa=e}function Qe(){return sa}/*!
|
|
2
|
-
* vite-plugin-qiankun.js v1.0.14
|
|
3
|
-
* (c) 2021-2022 Teng Mao Qing
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/var oe=typeof window<"u"?window.proxy||window:{},vo=function(e){oe!=null&&oe.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),oe.qiankunName&&(window.moudleQiankunAppLifeCycles[oe.qiankunName]=e))};function yo(e="/",t=null,n={}){e=="/"&&(e="/"+(window.localStorage.getItem("__syCacheMicroCurrSign__")||"base")),window.history.pushState(n,t,e)}var dt={};function Ct(e){if(!oe.__POWERED_BY_QIANKUN__)return!1;if(!Object.prototype.toString.call(e)==="[object Object]")throw Error("data必须是对象格式");dt.setGlobalState&&dt.setGlobalState({ignore:dt.name,msg:{...e}})}function Ao(e){let t=me();e&&e.onGlobalStateChange&&e.onGlobalStateChange((n,r)=>{if(n&&n.msg)switch((n.msg||{}).COMM_TYPE||""){case"LoginSucc":case"LoginLogout":t.SA_ACCOUNT_REFRESH();break}Je().SA_MSG_CONTENT(n.msg)},!0),dt.setGlobalState=e&&e.setGlobalState,dt.name=e&&e.name}function To(e,t,n){vo({bootstrap(r){},mount(r){Ao(r),t(r,!0)},unmount(r){n(r)},update(r){}})}const Je=ee.defineStore("cloudSdkQiankunStore",{state:()=>({qiankunExistState:oe.__POWERED_BY_QIANKUN__||!1,msg:""}),getters:{xxxx:e=>{},msgContent:e=>e.msg},actions:{async init(){},QK_SEND_LOGIN_MSG(){Ct({COMM_TYPE:"LoginSucc"})},QK_SEND_LOGOUT_MSG(){Ct({COMM_TYPE:"LoginLogout"})},QK_SEND_MSG_REG_SUBMENU(e){Ct({COMM_TYPE:"MicroRegisterMenu",COMM_TYPESTR:"注册子应用菜单",data:e||[]})},QK_SEND_MSG_ROUTER_BEFORE(e){Ct({COMM_TYPE:"routerBefore",routerBase:e})},QIANKUN_SEND_MSG_AUTO(e){if(!Object.prototype.toString.call(e)==="[object Object]")throw Error("msgData消息必须是对象格式")},QIANKUN_SEND_MSG_TO_MICRO(e){if(!Object.prototype.toString.call(e)==="[object Object]")throw Error("msgData消息必须是对象格式");e.type&&e.type},QIANKUN_SEND_MSG_TO_MAIN(){},SA_SET_QIANKUN_STATE(e){this.qiankunExistState=e},SA_MSG_CONTENT(e){this.msg=e}}});/*!
|
|
6
|
-
* shared v11.1.3
|
|
7
|
-
* (c) 2025 kazuya kawaguchi
|
|
8
|
-
* Released under the MIT License.
|
|
9
|
-
*/const _e=typeof window<"u";let ie,Ue;if(process.env.NODE_ENV!=="production"){const e=_e&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ie=t=>{e.mark(t)},Ue=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Co=/\{([0-9a-zA-Z]+)\}/g;function Ut(e,...t){return t.length===1&&V(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Co,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const pe=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Oo=(e,t,n)=>Io({l:e,k:t,s:n}),Io=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Q=e=>typeof e=="number"&&isFinite(e),wo=e=>Vn(e)==="[object Date]",ze=e=>Vn(e)==="[object RegExp]",Bt=e=>M(e)&&Object.keys(e).length===0,Z=Object.assign,Lo=Object.create,$=(e=null)=>Lo(e);let ir;const Me=()=>ir||(ir=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:$());function lr(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Do=Object.prototype.hasOwnProperty;function de(e,t){return Do.call(e,t)}const X=Array.isArray,Y=e=>typeof e=="function",I=e=>typeof e=="string",U=e=>typeof e=="boolean",V=e=>e!==null&&typeof e=="object",ko=e=>V(e)&&Y(e.then)&&Y(e.catch),la=Object.prototype.toString,Vn=e=>la.call(e),M=e=>Vn(e)==="[object Object]",Ro=e=>e==null?"":X(e)||M(e)&&e.toString===la?JSON.stringify(e,null,2):String(e);function Un(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}const cr=2;function Po(e,t=0,n=e.length){const r=e.split(/\r?\n/);let a=0;const o=[];for(let s=0;s<r.length;s++)if(a+=r[s].length+1,a>=t){for(let l=s-cr;l<=s+cr||n>a;l++){if(l<0||l>=r.length)continue;const c=l+1;o.push(`${c}${" ".repeat(3-String(c).length)}| ${r[l]}`);const u=r[l].length;if(l===s){const d=t-(a-u)+1,f=Math.max(1,n>a?u-d:n-t);o.push(" | "+" ".repeat(d)+"^".repeat(f))}else if(l>s){if(n>a){const d=Math.max(Math.min(n-a,u),1);o.push(" | "+"^".repeat(d))}a+=u+1}}break}return o.join(`
|
|
10
|
-
`)}function Fo(e,t){}const ur={};function Bn(e){ur[e]||(ur[e]=!0,void 0)}function xn(){const e=new Map;return{events:e,on(n,r){const a=e.get(n);a&&a.push(r)||e.set(n,[r])},off(n,r){const a=e.get(n);a&&a.splice(a.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(a=>a(r)),(e.get("*")||[]).slice().map(a=>a(n,r))}}}const Ot=e=>!V(e)||X(e);function kt(e,t){if(Ot(e)||Ot(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:a}=n.pop();Object.keys(r).forEach(o=>{o!=="__proto__"&&(V(r[o])&&!V(a[o])&&(a[o]=Array.isArray(r[o])?[]:$()),Ot(a[o])||Ot(r[o])?a[o]=r[o]:n.push({src:r[o],des:a[o]}))})}}/*!
|
|
11
|
-
* message-compiler v11.1.3
|
|
12
|
-
* (c) 2025 kazuya kawaguchi
|
|
13
|
-
* Released under the MIT License.
|
|
14
|
-
*/function Mo(e,t,n){return{line:e,column:t,offset:n}}function En(e,t,n){return{start:e,end:t}}const P={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},Vo=17,Uo={[P.EXPECTED_TOKEN]:"Expected token: '{0}'",[P.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[P.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[P.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[P.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[P.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[P.EMPTY_PLACEHOLDER]:"Empty placeholder",[P.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[P.INVALID_LINKED_FORMAT]:"Invalid linked format",[P.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[P.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[P.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[P.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[P.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[P.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function tt(e,t,n={}){const{domain:r,messages:a,args:o}=n,s=process.env.NODE_ENV!=="production"?Ut((a||Uo)[e]||"",...o||[]):e,l=new SyntaxError(String(s));return l.code=e,t&&(l.location=t),l.domain=r,l}function Bo(e){throw e}const xo=/<\/?[\w\s="/.':;#-\/]+>/,Go=e=>xo.test(e),be=" ",$o="\r",ne=`
|
|
15
|
-
`,Wo="\u2028",Yo="\u2029";function Ho(e){const t=e;let n=0,r=1,a=1,o=0;const s=v=>t[v]===$o&&t[v+1]===ne,l=v=>t[v]===ne,c=v=>t[v]===Yo,u=v=>t[v]===Wo,d=v=>s(v)||l(v)||c(v)||u(v),f=()=>n,h=()=>r,E=()=>a,y=()=>o,S=v=>s(v)||c(v)||u(v)?ne:t[v],w=()=>S(n),g=()=>S(n+o);function p(){return o=0,d(n)&&(r++,a=0),s(n)&&n++,n++,a++,t[n]}function T(){return s(n+o)&&o++,o++,t[n+o]}function N(){n=0,r=1,a=1,o=0}function O(v=0){o=v}function L(){const v=n+o;for(;v!==n;)p();o=0}return{index:f,line:h,column:E,peekOffset:y,charAt:S,currentChar:w,currentPeek:g,next:p,peek:T,reset:N,resetPeek:O,skipToPeek:L}}const Te=void 0,Ko=".",fr="'",jo="tokenizer";function qo(e,t={}){const n=t.location!==!1,r=Ho(e),a=()=>r.index(),o=()=>Mo(r.line(),r.column(),r.index()),s=o(),l=a(),c={currentType:13,offset:l,startLoc:s,endLoc:s,lastType:13,lastOffset:l,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:d}=t;function f(_,m,A,...k){const K=u();if(m.column+=A,m.offset+=A,d){const j=n?En(K.startLoc,m):null,B=tt(_,j,{domain:jo,args:k});d(B)}}function h(_,m,A){_.endLoc=o(),_.currentType=m;const k={type:m};return n&&(k.loc=En(_.startLoc,_.endLoc)),A!=null&&(k.value=A),k}const E=_=>h(_,13);function y(_,m){return _.currentChar()===m?(_.next(),m):(f(P.EXPECTED_TOKEN,o(),0,m),"")}function S(_){let m="";for(;_.currentPeek()===be||_.currentPeek()===ne;)m+=_.currentPeek(),_.peek();return m}function w(_){const m=S(_);return _.skipToPeek(),m}function g(_){if(_===Te)return!1;const m=_.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function p(_){if(_===Te)return!1;const m=_.charCodeAt(0);return m>=48&&m<=57}function T(_,m){const{currentType:A}=m;if(A!==2)return!1;S(_);const k=g(_.currentPeek());return _.resetPeek(),k}function N(_,m){const{currentType:A}=m;if(A!==2)return!1;S(_);const k=_.currentPeek()==="-"?_.peek():_.currentPeek(),K=p(k);return _.resetPeek(),K}function O(_,m){const{currentType:A}=m;if(A!==2)return!1;S(_);const k=_.currentPeek()===fr;return _.resetPeek(),k}function L(_,m){const{currentType:A}=m;if(A!==7)return!1;S(_);const k=_.currentPeek()===".";return _.resetPeek(),k}function v(_,m){const{currentType:A}=m;if(A!==8)return!1;S(_);const k=g(_.currentPeek());return _.resetPeek(),k}function F(_,m){const{currentType:A}=m;if(!(A===7||A===11))return!1;S(_);const k=_.currentPeek()===":";return _.resetPeek(),k}function x(_,m){const{currentType:A}=m;if(A!==9)return!1;const k=()=>{const j=_.currentPeek();return j==="{"?g(_.peek()):j==="@"||j==="|"||j===":"||j==="."||j===be||!j?!1:j===ne?(_.peek(),k()):fe(_,!1)},K=k();return _.resetPeek(),K}function J(_){S(_);const m=_.currentPeek()==="|";return _.resetPeek(),m}function fe(_,m=!0){const A=(K=!1,j="")=>{const B=_.currentPeek();return B==="{"||B==="@"||!B?K:B==="|"?!(j===be||j===ne):B===be?(_.peek(),A(!0,be)):B===ne?(_.peek(),A(!0,ne)):!0},k=A();return m&&_.resetPeek(),k}function z(_,m){const A=_.currentChar();return A===Te?Te:m(A)?(_.next(),A):null}function Ge(_){const m=_.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36}function Ht(_){return z(_,Ge)}function Kt(_){const m=_.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36||m===45}function jt(_){return z(_,Kt)}function qt(_){const m=_.charCodeAt(0);return m>=48&&m<=57}function Xt(_){return z(_,qt)}function Qt(_){const m=_.charCodeAt(0);return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function Se(_){return z(_,Qt)}function rt(_){let m="",A="";for(;m=Xt(_);)A+=m;return A}function Jt(_){let m="";for(;;){const A=_.currentChar();if(A==="{"||A==="}"||A==="@"||A==="|"||!A)break;if(A===be||A===ne)if(fe(_))m+=A,_.next();else{if(J(_))break;m+=A,_.next()}else m+=A,_.next()}return m}function zt(_){w(_);let m="",A="";for(;m=jt(_);)A+=m;return _.currentChar()===Te&&f(P.UNTERMINATED_CLOSING_BRACE,o(),0),A}function Zt(_){w(_);let m="";return _.currentChar()==="-"?(_.next(),m+=`-${rt(_)}`):m+=rt(_),_.currentChar()===Te&&f(P.UNTERMINATED_CLOSING_BRACE,o(),0),m}function en(_){return _!==fr&&_!==ne}function or(_){w(_),y(_,"'");let m="",A="";for(;m=z(_,en);)m==="\\"?A+=tn(_):A+=m;const k=_.currentChar();return k===ne||k===Te?(f(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),k===ne&&(_.next(),y(_,"'")),A):(y(_,"'"),A)}function tn(_){const m=_.currentChar();switch(m){case"\\":case"'":return _.next(),`\\${m}`;case"u":return At(_,m,4);case"U":return At(_,m,6);default:return f(P.UNKNOWN_ESCAPE_SEQUENCE,o(),0,m),""}}function At(_,m,A){y(_,m);let k="";for(let K=0;K<A;K++){const j=Se(_);if(!j){f(P.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${m}${k}${_.currentChar()}`);break}k+=j}return`\\${m}${k}`}function nn(_){return _!=="{"&&_!=="}"&&_!==be&&_!==ne}function rn(_){w(_);let m="",A="";for(;m=z(_,nn);)A+=m;return A}function an(_){let m="",A="";for(;m=Ht(_);)A+=m;return A}function on(_){const m=A=>{const k=_.currentChar();return k==="{"||k==="@"||k==="|"||k==="("||k===")"||!k||k===be?A:(A+=k,_.next(),m(A))};return m("")}function at(_){w(_);const m=y(_,"|");return w(_),m}function ot(_,m){let A=null;switch(_.currentChar()){case"{":return m.braceNest>=1&&f(P.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),_.next(),A=h(m,2,"{"),w(_),m.braceNest++,A;case"}":return m.braceNest>0&&m.currentType===2&&f(P.EMPTY_PLACEHOLDER,o(),0),_.next(),A=h(m,3,"}"),m.braceNest--,m.braceNest>0&&w(_),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),A;case"@":return m.braceNest>0&&f(P.UNTERMINATED_CLOSING_BRACE,o(),0),A=De(_,m)||E(m),m.braceNest=0,A;default:{let K=!0,j=!0,B=!0;if(J(_))return m.braceNest>0&&f(P.UNTERMINATED_CLOSING_BRACE,o(),0),A=h(m,1,at(_)),m.braceNest=0,m.inLinked=!1,A;if(m.braceNest>0&&(m.currentType===4||m.currentType===5||m.currentType===6))return f(P.UNTERMINATED_CLOSING_BRACE,o(),0),m.braceNest=0,st(_,m);if(K=T(_,m))return A=h(m,4,zt(_)),w(_),A;if(j=N(_,m))return A=h(m,5,Zt(_)),w(_),A;if(B=O(_,m))return A=h(m,6,or(_)),w(_),A;if(!K&&!j&&!B)return A=h(m,12,rn(_)),f(P.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,A.value),w(_),A;break}}return A}function De(_,m){const{currentType:A}=m;let k=null;const K=_.currentChar();switch((A===7||A===8||A===11||A===9)&&(K===ne||K===be)&&f(P.INVALID_LINKED_FORMAT,o(),0),K){case"@":return _.next(),k=h(m,7,"@"),m.inLinked=!0,k;case".":return w(_),_.next(),h(m,8,".");case":":return w(_),_.next(),h(m,9,":");default:return J(_)?(k=h(m,1,at(_)),m.braceNest=0,m.inLinked=!1,k):L(_,m)||F(_,m)?(w(_),De(_,m)):v(_,m)?(w(_),h(m,11,an(_))):x(_,m)?(w(_),K==="{"?ot(_,m)||k:h(m,10,on(_))):(A===7&&f(P.INVALID_LINKED_FORMAT,o(),0),m.braceNest=0,m.inLinked=!1,st(_,m))}}function st(_,m){let A={type:13};if(m.braceNest>0)return ot(_,m)||E(m);if(m.inLinked)return De(_,m)||E(m);switch(_.currentChar()){case"{":return ot(_,m)||E(m);case"}":return f(P.UNBALANCED_CLOSING_BRACE,o(),0),_.next(),h(m,3,"}");case"@":return De(_,m)||E(m);default:{if(J(_))return A=h(m,1,at(_)),m.braceNest=0,m.inLinked=!1,A;if(fe(_))return h(m,0,Jt(_));break}}return A}function sn(){const{currentType:_,offset:m,startLoc:A,endLoc:k}=c;return c.lastType=_,c.lastOffset=m,c.lastStartLoc=A,c.lastEndLoc=k,c.offset=a(),c.startLoc=o(),r.currentChar()===Te?h(c,13):st(r,c)}return{nextToken:sn,currentOffset:a,currentPosition:o,context:u}}const Xo="parser",Qo=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Jo(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function zo(e={}){const t=e.location!==!1,{onError:n}=e;function r(g,p,T,N,...O){const L=g.currentPosition();if(L.offset+=N,L.column+=N,n){const v=t?En(T,L):null,F=tt(p,v,{domain:Xo,args:O});n(F)}}function a(g,p,T){const N={type:g};return t&&(N.start=p,N.end=p,N.loc={start:T,end:T}),N}function o(g,p,T,N){t&&(g.end=p,g.loc&&(g.loc.end=T))}function s(g,p){const T=g.context(),N=a(3,T.offset,T.startLoc);return N.value=p,o(N,g.currentOffset(),g.currentPosition()),N}function l(g,p){const T=g.context(),{lastOffset:N,lastStartLoc:O}=T,L=a(5,N,O);return L.index=parseInt(p,10),g.nextToken(),o(L,g.currentOffset(),g.currentPosition()),L}function c(g,p){const T=g.context(),{lastOffset:N,lastStartLoc:O}=T,L=a(4,N,O);return L.key=p,g.nextToken(),o(L,g.currentOffset(),g.currentPosition()),L}function u(g,p){const T=g.context(),{lastOffset:N,lastStartLoc:O}=T,L=a(9,N,O);return L.value=p.replace(Qo,Jo),g.nextToken(),o(L,g.currentOffset(),g.currentPosition()),L}function d(g){const p=g.nextToken(),T=g.context(),{lastOffset:N,lastStartLoc:O}=T,L=a(8,N,O);return p.type!==11?(r(g,P.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),L.value="",o(L,N,O),{nextConsumeToken:p,node:L}):(p.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,he(p)),L.value=p.value||"",o(L,g.currentOffset(),g.currentPosition()),{node:L})}function f(g,p){const T=g.context(),N=a(7,T.offset,T.startLoc);return N.value=p,o(N,g.currentOffset(),g.currentPosition()),N}function h(g){const p=g.context(),T=a(6,p.offset,p.startLoc);let N=g.nextToken();if(N.type===8){const O=d(g);T.modifier=O.node,N=O.nextConsumeToken||g.nextToken()}switch(N.type!==9&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(N)),N=g.nextToken(),N.type===2&&(N=g.nextToken()),N.type){case 10:N.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(N)),T.key=f(g,N.value||"");break;case 4:N.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(N)),T.key=c(g,N.value||"");break;case 5:N.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(N)),T.key=l(g,N.value||"");break;case 6:N.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(N)),T.key=u(g,N.value||"");break;default:{r(g,P.UNEXPECTED_EMPTY_LINKED_KEY,p.lastStartLoc,0);const O=g.context(),L=a(7,O.offset,O.startLoc);return L.value="",o(L,O.offset,O.startLoc),T.key=L,o(T,O.offset,O.startLoc),{nextConsumeToken:N,node:T}}}return o(T,g.currentOffset(),g.currentPosition()),{node:T}}function E(g){const p=g.context(),T=p.currentType===1?g.currentOffset():p.offset,N=p.currentType===1?p.endLoc:p.startLoc,O=a(2,T,N);O.items=[];let L=null;do{const x=L||g.nextToken();switch(L=null,x.type){case 0:x.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(x)),O.items.push(s(g,x.value||""));break;case 5:x.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(x)),O.items.push(l(g,x.value||""));break;case 4:x.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(x)),O.items.push(c(g,x.value||""));break;case 6:x.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(x)),O.items.push(u(g,x.value||""));break;case 7:{const J=h(g);O.items.push(J.node),L=J.nextConsumeToken||null;break}}}while(p.currentType!==13&&p.currentType!==1);const v=p.currentType===1?p.lastOffset:g.currentOffset(),F=p.currentType===1?p.lastEndLoc:g.currentPosition();return o(O,v,F),O}function y(g,p,T,N){const O=g.context();let L=N.items.length===0;const v=a(1,p,T);v.cases=[],v.cases.push(N);do{const F=E(g);L||(L=F.items.length===0),v.cases.push(F)}while(O.currentType!==13);return L&&r(g,P.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),o(v,g.currentOffset(),g.currentPosition()),v}function S(g){const p=g.context(),{offset:T,startLoc:N}=p,O=E(g);return p.currentType===13?O:y(g,T,N,O)}function w(g){const p=qo(g,Z({},e)),T=p.context(),N=a(0,T.offset,T.startLoc);return t&&N.loc&&(N.loc.source=g),N.body=S(p),e.onCacheKey&&(N.cacheKey=e.onCacheKey(g)),T.currentType!==13&&r(p,P.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,g[T.offset]||""),o(N,p.currentOffset(),p.currentPosition()),N}return{parse:w}}function he(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Zo(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function dr(e,t){for(let n=0;n<e.length;n++)Gn(e[n],t)}function Gn(e,t){switch(e.type){case 1:dr(e.cases,t),t.helper("plural");break;case 2:dr(e.items,t);break;case 6:{Gn(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function es(e,t={}){const n=Zo(e);n.helper("normalize"),e.body&&Gn(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function ts(e){const t=e.body;return t.type===2?_r(t):t.cases.forEach(n=>_r(n)),e}function _r(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Un(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const ns="minifier";function je(e){switch(e.t=e.type,e.type){case 0:{const t=e;je(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)je(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)je(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;je(t.key),t.k=t.key,delete t.key,t.modifier&&(je(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw tt(P.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ns,args:[e.type]})}delete e.type}const rs="parser";function as(e,t){const{filename:n,breakLineCode:r,needIndent:a}=t,o=t.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:a,indentLevel:0};o&&e.loc&&(s.source=e.loc.source);const l=()=>s;function c(S,w){s.code+=S}function u(S,w=!0){const g=w?r:"";c(a?g+" ".repeat(S):g)}function d(S=!0){const w=++s.indentLevel;S&&u(w)}function f(S=!0){const w=--s.indentLevel;S&&u(w)}function h(){u(s.indentLevel)}return{context:l,push:c,indent:d,deindent:f,newline:h,helper:S=>`_${S}`,needIndent:()=>s.needIndent}}function os(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ze(e,t.key),t.modifier?(e.push(", "),Ze(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ss(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let o=0;o<a&&(Ze(e,t.items[o]),o!==a-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function is(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let o=0;o<a&&(Ze(e,t.cases[o]),o!==a-1);o++)e.push(", ");e.deindent(r()),e.push("])")}}function ls(e,t){t.body?Ze(e,t.body):e.push("null")}function Ze(e,t){const{helper:n}=e;switch(t.type){case 0:ls(e,t);break;case 1:is(e,t);break;case 2:ss(e,t);break;case 6:os(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw tt(P.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:rs,args:[t.type]})}}const cs=(e,t={})=>{const n=I(t.mode)?t.mode:"normal",r=I(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
16
|
-
`,o=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],l=as(e,{filename:r,breakLineCode:a,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${Un(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),Ze(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function us(e,t={}){const n=Z({},t),r=!!n.jit,a=!!n.minify,o=n.optimize==null?!0:n.optimize,l=zo(n).parse(e);return r?(o&&ts(l),a&&je(l),{ast:l,code:""}):(es(l,n),cs(l,n))}/*!
|
|
17
|
-
* core-base v11.1.3
|
|
18
|
-
* (c) 2025 kazuya kawaguchi
|
|
19
|
-
* Released under the MIT License.
|
|
20
|
-
*/function fs(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Me().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Me().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ce(e){return V(e)&&$n(e)===0&&(de(e,"b")||de(e,"body"))}const ca=["b","body"];function ds(e){return Ie(e,ca)}const ua=["c","cases"];function _s(e){return Ie(e,ua,[])}const fa=["s","static"];function ms(e){return Ie(e,fa)}const da=["i","items"];function hs(e){return Ie(e,da,[])}const _a=["t","type"];function $n(e){return Ie(e,_a)}const ma=["v","value"];function It(e,t){const n=Ie(e,ma);if(n!=null)return n;throw mt(t)}const ha=["m","modifier"];function gs(e){return Ie(e,ha)}const ga=["k","key"];function ps(e){const t=Ie(e,ga);if(t)return t;throw mt(6)}function Ie(e,t,n){for(let r=0;r<t.length;r++){const a=t[r];if(de(e,a)&&e[a]!=null)return e[a]}return n}const pa=[...ca,...ua,...fa,...da,...ga,...ha,...ma,..._a];function mt(e){return new Error(`unhandled node type: ${e}`)}function ln(e){return n=>Es(n,e)}function Es(e,t){const n=ds(t);if(n==null)throw mt(0);if($n(n)===1){const o=_s(n);return e.plural(o.reduce((s,l)=>[...s,mr(e,l)],[]))}else return mr(e,n)}function mr(e,t){const n=ms(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=hs(t).reduce((a,o)=>[...a,Sn(e,o)],[]);return e.normalize(r)}}function Sn(e,t){const n=$n(t);switch(n){case 3:return It(t,n);case 9:return It(t,n);case 4:{const r=t;if(de(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(de(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw mt(n)}case 5:{const r=t;if(de(r,"i")&&Q(r.i))return e.interpolate(e.list(r.i));if(de(r,"index")&&Q(r.index))return e.interpolate(e.list(r.index));throw mt(n)}case 6:{const r=t,a=gs(r),o=ps(r);return e.linked(Sn(e,o),a?Sn(e,a):void 0,e.type)}case 7:return It(t,n);case 8:return It(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Ss="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function bs(e,t){t&&Go(e)&&(Ut(Ss,{source:e}),void 0)}const Ns=e=>e;let wt=$();function vs(e,t={}){let n=!1;const r=t.onError||Bo;return t.onError=a=>{n=!0,r(a)},{...us(e,t),detectError:n}}function ys(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&I(e)){const n=U(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&bs(e,n);const a=(t.onCacheKey||Ns)(e),o=wt[a];if(o)return o;const{ast:s,detectError:l}=vs(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=ln(s);return l?c:wt[a]=c}else{if(process.env.NODE_ENV!=="production"&&!ce(e))return`${t.key}`,()=>e;const n=e.cacheKey;if(n){const r=wt[n];return r||(wt[n]=ln(e))}else return ln(e)}}let ht=null;function As(e){ht=e}function Ts(e,t,n){ht&&ht.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Cs=Os("function:translate");function Os(e){return t=>ht&&ht.emit(e,t)}const te={INVALID_ARGUMENT:Vo,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Is=24;function Ne(e){return tt(e,null,process.env.NODE_ENV!=="production"?{messages:ws}:void 0)}const ws={[te.INVALID_ARGUMENT]:"Invalid arguments",[te.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[te.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[te.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[te.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[te.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[te.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Wn(e,t){return t.locale!=null?hr(t.locale):hr(e.locale)}let cn;function hr(e){if(I(e))return e;if(Y(e)){if(e.resolvedOnce&&cn!=null)return cn;if(e.constructor.name==="Function"){const t=e();if(ko(t))throw Ne(te.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return cn=t}else throw Ne(te.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ne(te.NOT_SUPPORT_LOCALE_TYPE)}function Ls(e,t,n){return[...new Set([n,...X(t)?t:V(t)?Object.keys(t):I(t)?[t]:[n]])]}function Ea(e,t,n){const r=I(n)?n:gt,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let s=[n];for(;X(s);)s=gr(o,s,t);const l=X(t)||!M(t)?t:t.default?t.default:null;s=I(l)?[l]:l,X(s)&&gr(o,s,!1),a.__localeChainCache.set(r,o)}return o}function gr(e,t,n){let r=!0;for(let a=0;a<t.length&&U(r);a++){const o=t[a];I(o)&&(r=Ds(e,t[a],n))}return r}function Ds(e,t,n){let r;const a=t.split("-");do{const o=a.join("-");r=ks(e,o,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function ks(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(X(n)||M(n))&&n[a]&&(r=n[a])}return r}const we=[];we[0]={w:[0],i:[3,0],"[":[4],o:[7]};we[1]={w:[1],".":[2],"[":[4],o:[7]};we[2]={w:[2],i:[3,0],0:[3,0]};we[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};we[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};we[5]={"'":[4,0],o:8,l:[5,0]};we[6]={'"':[4,0],o:8,l:[6,0]};const Rs=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ps(e){return Rs.test(e)}function Fs(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Ms(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Vs(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ps(t)?Fs(t):"*"+t}function Us(e){const t=[];let n=-1,r=0,a=0,o,s,l,c,u,d,f;const h=[];h[0]=()=>{s===void 0?s=l:s+=l},h[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},h[2]=()=>{h[0](),a++},h[3]=()=>{if(a>0)a--,r=4,h[0]();else{if(a=0,s===void 0||(s=Vs(s),s===!1))return!1;h[1]()}};function E(){const y=e[n+1];if(r===5&&y==="'"||r===6&&y==='"')return n++,l="\\"+y,h[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&E())){if(c=Ms(o),f=we[r],u=f[c]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(d=h[u[1]],d&&(l=o,d()===!1))))return;if(r===7)return t}}const pr=new Map;function Bs(e,t){return V(e)?e[t]:null}function xs(e,t){if(!V(e))return null;let n=pr.get(t);if(n||(n=Us(t),n&&pr.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const s=n[o];if(pa.includes(s)&&ce(a))return null;const l=a[s];if(l===void 0||Y(a))return null;a=l,o++}return a}const ae={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},Gs=8,$s={[ae.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ae.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ae.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ae.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ae.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ae.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ae.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Be(e,...t){return Ut($s[e],...t)}const Ws="11.1.3",xt=-1,gt="en-US",Pt="",Er=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ys(){return{upper:(e,t)=>t==="text"&&I(e)?e.toUpperCase():t==="vnode"&&V(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&I(e)?e.toLowerCase():t==="vnode"&&V(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&I(e)?Er(e):t==="vnode"&&V(e)&&"__v_isVNode"in e?Er(e.children):e}}let Sa;function Hs(e){Sa=e}let ba;function Ks(e){ba=e}let Na;function js(e){Na=e}let va=null;const qs=e=>{va=e},Xs=()=>va;let ya=null;const Sr=e=>{ya=e},Qs=()=>ya;let br=0;function Js(e={}){const t=Y(e.onWarn)?e.onWarn:Fo,n=I(e.version)?e.version:Ws,r=I(e.locale)||Y(e.locale)?e.locale:gt,a=Y(r)?gt:r,o=X(e.fallbackLocale)||M(e.fallbackLocale)||I(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,s=M(e.messages)?e.messages:un(a),l=M(e.datetimeFormats)?e.datetimeFormats:un(a),c=M(e.numberFormats)?e.numberFormats:un(a),u=Z($(),e.modifiers,Ys()),d=e.pluralRules||$(),f=Y(e.missing)?e.missing:null,h=U(e.missingWarn)||ze(e.missingWarn)?e.missingWarn:!0,E=U(e.fallbackWarn)||ze(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,S=!!e.unresolving,w=Y(e.postTranslation)?e.postTranslation:null,g=M(e.processor)?e.processor:null,p=U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,N=Y(e.messageCompiler)?e.messageCompiler:Sa;process.env.NODE_ENV!=="production"&&Y(e.messageCompiler)&&Bn(Be(ae.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const O=Y(e.messageResolver)?e.messageResolver:ba||Bs,L=Y(e.localeFallbacker)?e.localeFallbacker:Na||Ls,v=V(e.fallbackContext)?e.fallbackContext:void 0,F=e,x=V(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,J=V(F.__numberFormatters)?F.__numberFormatters:new Map,fe=V(F.__meta)?F.__meta:{};br++;const z={version:n,cid:br,locale:r,fallbackLocale:o,messages:s,modifiers:u,pluralRules:d,missing:f,missingWarn:h,fallbackWarn:E,fallbackFormat:y,unresolving:S,postTranslation:w,processor:g,warnHtmlMessage:p,escapeParameter:T,messageCompiler:N,messageResolver:O,localeFallbacker:L,fallbackContext:v,onWarn:t,__meta:fe};return z.datetimeFormats=l,z.numberFormats=c,z.__datetimeFormatters=x,z.__numberFormatters=J,process.env.NODE_ENV!=="production"&&(z.__v_emitter=F.__v_emitter!=null?F.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Ts(z,n,fe),z}const un=e=>({[e]:$()});function Gt(e,t){return e instanceof RegExp?e.test(t):e}function Aa(e,t){return e instanceof RegExp?e.test(t):e}function Yn(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(o!==null){const l=o(e,n,t,a);return I(l)?l:t}else return process.env.NODE_ENV!=="production"&&Aa(r,t)&&s(Be(ae.NOT_FOUND_KEY,{key:t,locale:n})),t}function it(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Ta(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function zs(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Ta(e,t[r]))return!0;return!1}const Nr=typeof Intl<"u",Ca={dateTimeFormat:Nr&&typeof Intl.DateTimeFormat<"u",numberFormat:Nr&&typeof Intl.NumberFormat<"u"};function vr(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Ca.dateTimeFormat)return o(Be(ae.CANNOT_FORMAT_DATE)),Pt;const[c,u,d,f]=bn(...t),h=U(d.missingWarn)?d.missingWarn:e.missingWarn,E=U(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,y=!!d.part,S=Wn(e,d),w=s(e,a,S);if(!I(c)||c==="")return new Intl.DateTimeFormat(S,f).format(u);let g={},p,T=null,N=S,O=null;const L="datetime format";for(let x=0;x<w.length;x++){if(p=O=w[x],process.env.NODE_ENV!=="production"&&S!==p&&Gt(E,c)&&o(Be(ae.FALLBACK_TO_DATE_FORMAT,{key:c,target:p})),process.env.NODE_ENV!=="production"&&S!==p){const J=e.__v_emitter;J&&J.emit("fallback",{type:L,key:c,from:N,to:O,groupId:`${L}:${c}`})}if(g=n[p]||{},T=g[c],M(T))break;Yn(e,c,p,h,L),N=O}if(!M(T)||!I(p))return r?xt:c;let v=`${p}__${c}`;Bt(f)||(v=`${v}__${JSON.stringify(f)}`);let F=l.get(v);return F||(F=new Intl.DateTimeFormat(p,Z({},T,f)),l.set(v,F)),y?F.formatToParts(u):F.format(u)}const Oa=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function bn(...e){const[t,n,r,a]=e,o=$();let s=$(),l;if(I(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Ne(te.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();l=new Date(u);try{l.toISOString()}catch{throw Ne(te.INVALID_ISO_DATE_ARGUMENT)}}else if(wo(t)){if(isNaN(t.getTime()))throw Ne(te.INVALID_DATE_ARGUMENT);l=t}else if(Q(t))l=t;else throw Ne(te.INVALID_ARGUMENT);return I(n)?o.key=n:M(n)&&Object.keys(n).forEach(c=>{Oa.includes(c)?s[c]=n[c]:o[c]=n[c]}),I(r)?o.locale=r:M(r)&&(s=r),M(a)&&(s=a),[o.key||"",l,o,s]}function yr(e,t,n){const r=e;for(const a in n){const o=`${t}__${a}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function Ar(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Ca.numberFormat)return o(Be(ae.CANNOT_FORMAT_NUMBER)),Pt;const[c,u,d,f]=Nn(...t),h=U(d.missingWarn)?d.missingWarn:e.missingWarn,E=U(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,y=!!d.part,S=Wn(e,d),w=s(e,a,S);if(!I(c)||c==="")return new Intl.NumberFormat(S,f).format(u);let g={},p,T=null,N=S,O=null;const L="number format";for(let x=0;x<w.length;x++){if(p=O=w[x],process.env.NODE_ENV!=="production"&&S!==p&&Gt(E,c)&&o(Be(ae.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:p})),process.env.NODE_ENV!=="production"&&S!==p){const J=e.__v_emitter;J&&J.emit("fallback",{type:L,key:c,from:N,to:O,groupId:`${L}:${c}`})}if(g=n[p]||{},T=g[c],M(T))break;Yn(e,c,p,h,L),N=O}if(!M(T)||!I(p))return r?xt:c;let v=`${p}__${c}`;Bt(f)||(v=`${v}__${JSON.stringify(f)}`);let F=l.get(v);return F||(F=new Intl.NumberFormat(p,Z({},T,f)),l.set(v,F)),y?F.formatToParts(u):F.format(u)}const Ia=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Nn(...e){const[t,n,r,a]=e,o=$();let s=$();if(!Q(t))throw Ne(te.INVALID_ARGUMENT);const l=t;return I(n)?o.key=n:M(n)&&Object.keys(n).forEach(c=>{Ia.includes(c)?s[c]=n[c]:o[c]=n[c]}),I(r)?o.locale=r:M(r)&&(s=r),M(a)&&(s=a),[o.key||"",l,o,s]}function Tr(e,t,n){const r=e;for(const a in n){const o=`${t}__${a}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const Zs=e=>e,ei=e=>"",ti="text",ni=e=>e.length===0?"":Un(e),ri=Ro;function Cr(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ai(e){const t=Q(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Q(e.named.count)||Q(e.named.n))?Q(e.named.count)?e.named.count:Q(e.named.n)?e.named.n:t:t}function oi(e,t){t.count||(t.count=e),t.n||(t.n=e)}function si(e={}){const t=e.locale,n=ai(e),r=V(e.pluralRules)&&I(t)&&Y(e.pluralRules[t])?e.pluralRules[t]:Cr,a=V(e.pluralRules)&&I(t)&&Y(e.pluralRules[t])?Cr:void 0,o=g=>g[r(n,g.length,a)],s=e.list||[],l=g=>s[g],c=e.named||$();Q(e.pluralIndex)&&oi(n,c);const u=g=>c[g];function d(g,p){const T=Y(e.messages)?e.messages(g,!!p):V(e.messages)?e.messages[g]:!1;return T||(e.parent?e.parent.message(g):ei)}const f=g=>e.modifiers?e.modifiers[g]:Zs,h=M(e.processor)&&Y(e.processor.normalize)?e.processor.normalize:ni,E=M(e.processor)&&Y(e.processor.interpolate)?e.processor.interpolate:ri,y=M(e.processor)&&I(e.processor.type)?e.processor.type:ti,w={list:l,named:u,plural:o,linked:(g,...p)=>{const[T,N]=p;let O="text",L="";p.length===1?V(T)?(L=T.modifier||L,O=T.type||O):I(T)&&(L=T||L):p.length===2&&(I(T)&&(L=T||L),I(N)&&(O=N||O));const v=d(g,!0)(w),F=O==="vnode"&&X(v)&&L?v[0]:v;return L?f(L)(F,O):F},message:d,type:y,interpolate:E,normalize:h,values:Z($(),s,c)};return w}const Or=()=>"",le=e=>Y(e);function Ir(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:l}=e,[c,u]=vn(...t),d=U(u.missingWarn)?u.missingWarn:e.missingWarn,f=U(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=U(u.escapeParameter)?u.escapeParameter:e.escapeParameter,E=!!u.resolvedMessage,y=I(u.default)||U(u.default)?U(u.default)?o?c:()=>c:u.default:n?o?c:()=>c:null,S=n||y!=null&&(I(y)||Y(y)),w=Wn(e,u);h&&ii(u);let[g,p,T]=E?[c,w,l[w]||$()]:wa(e,c,w,s,f,d),N=g,O=c;if(!E&&!(I(N)||ce(N)||le(N))&&S&&(N=y,O=N),!E&&(!(I(N)||ce(N)||le(N))||!I(p)))return a?xt:c;if(process.env.NODE_ENV!=="production"&&I(N)&&e.messageCompiler==null)return`${c}`,c;let L=!1;const v=()=>{L=!0},F=le(N)?N:La(e,c,p,N,O,v);if(L)return N;const x=fi(e,p,T,u),J=si(x),fe=li(e,F,J),z=r?r(fe,c):fe;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Ge={timestamp:Date.now(),key:I(c)?c:le(N)?N.key:"",locale:p||(le(N)?N.locale:""),format:I(N)?N:le(N)?N.source:"",message:z};Ge.meta=Z({},e.__meta,Xs()||{}),Cs(Ge)}return z}function ii(e){X(e.list)?e.list=e.list.map(t=>I(t)?lr(t):t):V(e.named)&&Object.keys(e.named).forEach(t=>{I(e.named[t])&&(e.named[t]=lr(e.named[t]))})}function wa(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:u}=e,d=u(e,r,n);let f=$(),h,E=null,y=n,S=null;const w="translate";for(let g=0;g<d.length;g++){if(h=S=d[g],process.env.NODE_ENV!=="production"&&n!==h&&!Ta(n,h)&&Gt(a,t)&&l(Be(ae.FALLBACK_TO_TRANSLATE,{key:t,target:h})),process.env.NODE_ENV!=="production"&&n!==h){const O=e.__v_emitter;O&&O.emit("fallback",{type:w,key:t,from:y,to:S,groupId:`${w}:${t}`})}f=s[h]||$();let p=null,T,N;if(process.env.NODE_ENV!=="production"&&_e&&(p=window.performance.now(),T="intlify-message-resolve-start",N="intlify-message-resolve-end",ie&&ie(T)),(E=c(f,t))===null&&(E=f[t]),process.env.NODE_ENV!=="production"&&_e){const O=window.performance.now(),L=e.__v_emitter;L&&p&&E&&L.emit("message-resolve",{type:"message-resolve",key:t,message:E,time:O-p,groupId:`${w}:${t}`}),T&&N&&ie&&Ue&&(ie(N),Ue("intlify message resolve",T,N))}if(I(E)||ce(E)||le(E))break;if(!zs(h,d)){const O=Yn(e,t,h,o,w);O!==t&&(E=O)}y=S}return[E,h,f]}function La(e,t,n,r,a,o){const{messageCompiler:s,warnHtmlMessage:l}=e;if(le(r)){const h=r;return h.locale=h.locale||n,h.key=h.key||t,h}if(s==null){const h=()=>r;return h.locale=n,h.key=t,h}let c=null,u,d;process.env.NODE_ENV!=="production"&&_e&&(c=window.performance.now(),u="intlify-message-compilation-start",d="intlify-message-compilation-end",ie&&ie(u));const f=s(r,ci(e,n,a,r,l,o));if(process.env.NODE_ENV!=="production"&&_e){const h=window.performance.now(),E=e.__v_emitter;E&&c&&E.emit("message-compilation",{type:"message-compilation",message:r,time:h-c,groupId:`translate:${t}`}),u&&d&&ie&&Ue&&(ie(d),Ue("intlify message compilation",u,d))}return f.locale=n,f.key=t,f.source=r,f}function li(e,t,n){let r=null,a,o;process.env.NODE_ENV!=="production"&&_e&&(r=window.performance.now(),a="intlify-message-evaluation-start",o="intlify-message-evaluation-end",ie&&ie(a));const s=t(n);if(process.env.NODE_ENV!=="production"&&_e){const l=window.performance.now(),c=e.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:s,time:l-r,groupId:`translate:${t.key}`}),a&&o&&ie&&Ue&&(ie(o),Ue("intlify message evaluation",a,o))}return s}function vn(...e){const[t,n,r]=e,a=$();if(!I(t)&&!Q(t)&&!le(t)&&!ce(t))throw Ne(te.INVALID_ARGUMENT);const o=Q(t)?String(t):(le(t),t);return Q(n)?a.plural=n:I(n)?a.default=n:M(n)&&!Bt(n)?a.named=n:X(n)&&(a.list=n),Q(r)?a.plural=r:I(r)?a.default=r:M(r)&&Z(a,r),[o,a]}function ci(e,t,n,r,a,o){return{locale:t,key:n,warnHtmlMessage:a,onError:s=>{if(o&&o(s),process.env.NODE_ENV!=="production"){const l=ui(r),c=`Message compilation error: ${s.message}`,u=s.location&&l&&Po(l,s.location.start.offset,s.location.end.offset),d=e.__v_emitter;d&&l&&d.emit("compile-error",{message:l,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${n}`})}else throw s},onCacheKey:s=>Oo(t,n,s)}}function ui(e){if(I(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function fi(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s,fallbackLocale:l,fallbackWarn:c,missingWarn:u,fallbackContext:d}=e,h={locale:t,modifiers:a,pluralRules:o,messages:(E,y)=>{let S=s(n,E);if(S==null&&(d||y)){const[,,w]=wa(d||e,E,t,l,c,u);S=s(w,E)}if(I(S)||ce(S)){let w=!1;const p=La(e,E,t,S,E,()=>{w=!0});return w?Or:p}else return le(S)?S:Or}};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),Q(r.plural)&&(h.pluralIndex=r.plural),h}fs();function di(){return Da().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Da(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const _i=typeof Proxy=="function",mi="devtools-plugin:setup",hi="plugin:settings:set";let We,yn;function gi(){var e;return We!==void 0||(typeof window<"u"&&window.performance?(We=!0,yn=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(We=!0,yn=globalThis.perf_hooks.performance):We=!1),We}function pi(){return gi()?yn.now():Date.now()}class Ei{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const s in t.settings){const l=t.settings[s];r[s]=l.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const s=localStorage.getItem(a),l=JSON.parse(s);Object.assign(o,l)}catch{}this.fallbacks={getSettings(){return o},setSettings(s){try{localStorage.setItem(a,JSON.stringify(s))}catch{}o=s},now(){return pi()}},n&&n.on(hi,(s,l)=>{s===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(s,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(s,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:l,args:c,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Si(e,t){const n=e,r=Da(),a=di(),o=_i&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))a.emit(mi,e,t);else{const s=o?new Ei(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*!
|
|
21
|
-
* vue-i18n v11.1.3
|
|
22
|
-
* (c) 2025 kazuya kawaguchi
|
|
23
|
-
* Released under the MIT License.
|
|
24
|
-
*/const bi="11.1.3";function Ni(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Me().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Me().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Me().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Me().__INTLIFY_PROD_DEVTOOLS__=!1)}const H={UNEXPECTED_RETURN_TYPE:Is,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function se(e,...t){return tt(e,null,process.env.NODE_ENV!=="production"?{messages:vi,args:t}:void 0)}const vi={[H.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[H.INVALID_ARGUMENT]:"Invalid argument",[H.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[H.NOT_INSTALLED]:"Need to install with `app.use` function",[H.UNEXPECTED_ERROR]:"Unexpected error",[H.REQUIRED_VALUE]:"Required in value: {0}",[H.INVALID_VALUE]:"Invalid value",[H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[H.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[H.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},An=pe("__translateVNode"),Tn=pe("__datetimeParts"),Cn=pe("__numberParts"),xe=pe("__enableEmitter"),pt=pe("__disableEmitter"),ka=pe("__setPluralRules"),Ra=pe("__injectWithOption"),On=pe("__dispose"),ge={FALLBACK_TO_ROOT:Gs,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},yi={[ge.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[ge.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[ge.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[ge.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
25
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[ge.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function bt(e,...t){return Ut(yi[e],...t)}function Et(e){if(!V(e)||ce(e))return e;for(const t in e)if(de(e,t))if(!t.includes("."))V(e[t])&&Et(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,o=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in a||(a[n[s]]=$()),!V(a[n[s]])){process.env.NODE_ENV!=="production"&&(bt(ge.IGNORE_OBJ_FLATTEN,{key:n[s]}),void 0),o=!0;break}a=a[n[s]]}if(o||(ce(a)?pa.includes(n[r])||delete e[t]:(a[n[r]]=e[t],delete e[t])),!ce(a)){const s=a[n[r]];V(s)&&Et(s)}}return e}function Hn(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=M(n)?n:X(r)?$():{[e]:$()};if(X(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:u}=l;c?(s[c]=s[c]||$(),kt(u,s[c])):kt(u,s)}else I(l)&&kt(JSON.parse(l),s)}),a==null&&o)for(const l in s)de(s,l)&&Et(s[l]);return s}function Pa(e){return e.type}function Fa(e,t,n){let r=V(t.messages)?t.messages:$();"__i18nGlobal"in n&&(r=Hn(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(V(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(V(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function wr(e){return i.createVNode(i.Text,null,e,0)}const Lr="__INTLIFY_META__",Dr=()=>[],Ai=()=>!1;let kr=0;function Rr(e){return(t,n,r,a)=>e(n,r,i.getCurrentInstance()||void 0,a)}const Ti=()=>{const e=i.getCurrentInstance();let t=null;return e&&(t=Pa(e)[Lr])?{[Lr]:t}:null};function Kn(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,a=e.flatJson,o=_e?i.ref:i.shallowRef;let s=U(e.inheritLocale)?e.inheritLocale:!0;const l=o(t&&s?t.locale.value:I(e.locale)?e.locale:gt),c=o(t&&s?t.fallbackLocale.value:I(e.fallbackLocale)||X(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),u=o(Hn(l.value,e)),d=o(M(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),f=o(M(e.numberFormats)?e.numberFormats:{[l.value]:{}});let h=t?t.missingWarn:U(e.missingWarn)||ze(e.missingWarn)?e.missingWarn:!0,E=t?t.fallbackWarn:U(e.fallbackWarn)||ze(e.fallbackWarn)?e.fallbackWarn:!0,y=t?t.fallbackRoot:U(e.fallbackRoot)?e.fallbackRoot:!0,S=!!e.fallbackFormat,w=Y(e.missing)?e.missing:null,g=Y(e.missing)?Rr(e.missing):null,p=Y(e.postTranslation)?e.postTranslation:null,T=t?t.warnHtmlMessage:U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter;const O=t?t.modifiers:M(e.modifiers)?e.modifiers:{};let L=e.pluralRules||t&&t.pluralRules,v;v=(()=>{r&&Sr(null);const b={version:bi,locale:l.value,fallbackLocale:c.value,messages:u.value,modifiers:O,pluralRules:L,missing:g===null?void 0:g,missingWarn:h,fallbackWarn:E,fallbackFormat:S,unresolving:!0,postTranslation:p===null?void 0:p,warnHtmlMessage:T,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};b.datetimeFormats=d.value,b.numberFormats=f.value,b.__datetimeFormatters=M(v)?v.__datetimeFormatters:void 0,b.__numberFormatters=M(v)?v.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(b.__v_emitter=M(v)?v.__v_emitter:void 0);const C=Js(b);return r&&Sr(C),C})(),it(v,l.value,c.value);function x(){return[l.value,c.value,u.value,d.value,f.value]}const J=i.computed({get:()=>l.value,set:b=>{v.locale=b,l.value=b}}),fe=i.computed({get:()=>c.value,set:b=>{v.fallbackLocale=b,c.value=b,it(v,l.value,b)}}),z=i.computed(()=>u.value),Ge=i.computed(()=>d.value),Ht=i.computed(()=>f.value);function Kt(){return Y(p)?p:null}function jt(b){p=b,v.postTranslation=b}function qt(){return w}function Xt(b){b!==null&&(g=Rr(b)),w=b,v.missing=g}function Qt(b,C){return b!=="translate"||!C.resolvedMessage}const Se=(b,C,G,q,ke,Tt)=>{x();let $e;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(v.fallbackContext=t?Qs():void 0),$e=b(v)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(v.fallbackContext=void 0)}if(G!=="translate exists"&&Q($e)&&$e===xt||G==="translate exists"&&!$e){const[Re,ho]=C();if(process.env.NODE_ENV!=="production"&&t&&I(Re)&&Qt(G,ho)&&(y&&(Gt(E,Re)||Aa(h,Re))&&(bt(ge.FALLBACK_TO_ROOT,{key:Re,type:G}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:sr}=v;sr&&y&&sr.emit("fallback",{type:G,key:Re,to:"global",groupId:`${G}:${Re}`})}return t&&y?q(t):ke(Re)}else{if(Tt($e))return $e;throw se(H.UNEXPECTED_RETURN_TYPE)}};function rt(...b){return Se(C=>Reflect.apply(Ir,null,[C,...b]),()=>vn(...b),"translate",C=>Reflect.apply(C.t,C,[...b]),C=>C,C=>I(C))}function Jt(...b){const[C,G,q]=b;if(q&&!V(q))throw se(H.INVALID_ARGUMENT);return rt(C,G,Z({resolvedMessage:!0},q||{}))}function zt(...b){return Se(C=>Reflect.apply(vr,null,[C,...b]),()=>bn(...b),"datetime format",C=>Reflect.apply(C.d,C,[...b]),()=>Pt,C=>I(C))}function Zt(...b){return Se(C=>Reflect.apply(Ar,null,[C,...b]),()=>Nn(...b),"number format",C=>Reflect.apply(C.n,C,[...b]),()=>Pt,C=>I(C))}function en(b){return b.map(C=>I(C)||Q(C)||U(C)?wr(String(C)):C)}const tn={normalize:en,interpolate:b=>b,type:"vnode"};function At(...b){return Se(C=>{let G;const q=C;try{q.processor=tn,G=Reflect.apply(Ir,null,[q,...b])}finally{q.processor=null}return G},()=>vn(...b),"translate",C=>C[An](...b),C=>[wr(C)],C=>X(C))}function nn(...b){return Se(C=>Reflect.apply(Ar,null,[C,...b]),()=>Nn(...b),"number format",C=>C[Cn](...b),Dr,C=>I(C)||X(C))}function rn(...b){return Se(C=>Reflect.apply(vr,null,[C,...b]),()=>bn(...b),"datetime format",C=>C[Tn](...b),Dr,C=>I(C)||X(C))}function an(b){L=b,v.pluralRules=L}function on(b,C){return Se(()=>{if(!b)return!1;const G=I(C)?C:l.value,q=De(G),ke=v.messageResolver(q,b);return ce(ke)||le(ke)||I(ke)},()=>[b],"translate exists",G=>Reflect.apply(G.te,G,[b,C]),Ai,G=>U(G))}function at(b){let C=null;const G=Ea(v,c.value,l.value);for(let q=0;q<G.length;q++){const ke=u.value[G[q]]||{},Tt=v.messageResolver(ke,b);if(Tt!=null){C=Tt;break}}return C}function ot(b){const C=at(b);return C??(t?t.tm(b)||{}:{})}function De(b){return u.value[b]||{}}function st(b,C){if(a){const G={[b]:C};for(const q in G)de(G,q)&&Et(G[q]);C=G[b]}u.value[b]=C,v.messages=u.value}function sn(b,C){u.value[b]=u.value[b]||{};const G={[b]:C};if(a)for(const q in G)de(G,q)&&Et(G[q]);C=G[b],kt(C,u.value[b]),v.messages=u.value}function _(b){return d.value[b]||{}}function m(b,C){d.value[b]=C,v.datetimeFormats=d.value,yr(v,b,C)}function A(b,C){d.value[b]=Z(d.value[b]||{},C),v.datetimeFormats=d.value,yr(v,b,C)}function k(b){return f.value[b]||{}}function K(b,C){f.value[b]=C,v.numberFormats=f.value,Tr(v,b,C)}function j(b,C){f.value[b]=Z(f.value[b]||{},C),v.numberFormats=f.value,Tr(v,b,C)}kr++,t&&_e&&(i.watch(t.locale,b=>{s&&(l.value=b,v.locale=b,it(v,l.value,c.value))}),i.watch(t.fallbackLocale,b=>{s&&(c.value=b,v.fallbackLocale=b,it(v,l.value,c.value))}));const B={id:kr,locale:J,fallbackLocale:fe,get inheritLocale(){return s},set inheritLocale(b){s=b,b&&t&&(l.value=t.locale.value,c.value=t.fallbackLocale.value,it(v,l.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:z,get modifiers(){return O},get pluralRules(){return L||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(b){h=b,v.missingWarn=h},get fallbackWarn(){return E},set fallbackWarn(b){E=b,v.fallbackWarn=E},get fallbackRoot(){return y},set fallbackRoot(b){y=b},get fallbackFormat(){return S},set fallbackFormat(b){S=b,v.fallbackFormat=S},get warnHtmlMessage(){return T},set warnHtmlMessage(b){T=b,v.warnHtmlMessage=b},get escapeParameter(){return N},set escapeParameter(b){N=b,v.escapeParameter=b},t:rt,getLocaleMessage:De,setLocaleMessage:st,mergeLocaleMessage:sn,getPostTranslationHandler:Kt,setPostTranslationHandler:jt,getMissingHandler:qt,setMissingHandler:Xt,[ka]:an};return B.datetimeFormats=Ge,B.numberFormats=Ht,B.rt=Jt,B.te=on,B.tm=ot,B.d=zt,B.n=Zt,B.getDateTimeFormat=_,B.setDateTimeFormat=m,B.mergeDateTimeFormat=A,B.getNumberFormat=k,B.setNumberFormat=K,B.mergeNumberFormat=j,B[Ra]=n,B[An]=At,B[Tn]=rn,B[Cn]=nn,process.env.NODE_ENV!=="production"&&(B[xe]=b=>{v.__v_emitter=b},B[pt]=()=>{v.__v_emitter=void 0}),B}const Ma="vue-i18n: composer properties",fn={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Ci={"vue-i18n-resource-inspector":"Search for scopes ..."},Oi={"vue-i18n-timeline":16764185};let In;async function Ii(e,t){return new Promise((n,r)=>{try{Si({id:"vue-devtools-plugin-vue-i18n",label:fn["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Ma],app:e},a=>{In=a,a.on.visitComponentTree(({componentInstance:s,treeNode:l})=>{wi(s,l,t)}),a.on.inspectComponent(({componentInstance:s,instanceData:l})=>{s.vnode.el&&s.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?s.vnode.el.__VUE_I18N__!==t.global.__composer&&Pr(l,s.vnode.el.__VUE_I18N__):Pr(l,s.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:fn["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Ci["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&Pi(s,t)});const o=new Map;a.on.getInspectorState(async s=>{if(s.app===e&&s.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),Mi(s,t),s.nodeId==="global"){if(!o.has(s.app)){const[l]=await a.getComponentInstances(s.app);o.set(s.app,l)}a.highlightElement(o.get(s.app))}else{const l=Fi(s.nodeId,t);l&&a.highlightElement(l)}}),a.on.editInspectorState(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&Ui(s,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:fn["vue-i18n-timeline"],color:Oi["vue-i18n-timeline"]}),n(!0)})}catch{r(!1)}})}function Va(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function wi(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const a={label:`i18n (${Va(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function Pr(e,t){const n=Ma;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:jn(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function jn(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];Y(r)&&"source"in r?t[n]=Ri(r):ce(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:V(r)?t[n]=jn(r):t[n]=r}),t}const Li={"<":"<",">":">",'"':""","&":"&"};function Di(e){return e.replace(/[<>"&]/g,ki)}function ki(e){return Li[e]||e}function Ri(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Di(e.source)}")`:"(?)"}`}}}function Pi(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,a]of t.__instances){const o=t.mode==="composition"?a:a.__composer;n!==o&&e.rootNodes.push({id:o.id.toString(),label:`${Va(r)} Scope`})}}function Fi(e,t){let n=null;if(e!=="global"){for(const[r,a]of t.__instances.entries())if(a.id.toString()===e){n=r;break}}return n}function Ua(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Mi(e,t){const n=Ua(e.nodeId,t);return n&&(e.state=Vi(n)),null}function Vi(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const a="Locale messages info",o=[{type:a,key:"messages",editable:!1,value:jn(e.messages.value)}];t[a]=o;{const s="Datetime formats info",l=[{type:s,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[s]=l;const c="Datetime formats info",u=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=u}return t}function St(e,t){if(In){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),In.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Ui(e,t){const n=Ua(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&I(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(I(e.state.value)||X(e.state.value)||V(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&U(e.state.value)&&(n.inheritLocale=e.state.value)}}function Bi(e){const t=I(e.locale)?e.locale:gt,n=I(e.fallbackLocale)||X(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Y(e.missing)?e.missing:void 0,a=U(e.silentTranslationWarn)||ze(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=U(e.silentFallbackWarn)||ze(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=U(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,c=M(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,d=Y(e.postTranslation)?e.postTranslation:void 0,f=I(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,E=U(e.sync)?e.sync:!0;let y=e.messages;if(M(e.sharedMessages)){const O=e.sharedMessages;y=Object.keys(O).reduce((v,F)=>{const x=v[F]||(v[F]={});return Z(x,O[F]),v},y||{})}const{__i18n:S,__root:w,__injectWithOption:g}=e,p=e.datetimeFormats,T=e.numberFormats,N=e.flatJson;return{locale:t,fallbackLocale:n,messages:y,flatJson:N,datetimeFormats:p,numberFormats:T,missing:r,missingWarn:a,fallbackWarn:o,fallbackRoot:s,fallbackFormat:l,modifiers:c,pluralRules:u,postTranslation:d,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:E,__i18n:S,__root:w,__injectWithOption:g}}function wn(e={}){const t=Kn(Bi(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return U(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=U(a)?!a:a},get silentFallbackWarn(){return U(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=U(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},te(a,o){return t.te(a,o)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,o){t.setLocaleMessage(a,o)},mergeLocaleMessage(a,o){t.mergeLocaleMessage(a,o)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,o){t.setDateTimeFormat(a,o)},mergeDateTimeFormat(a,o){t.mergeDateTimeFormat(a,o)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,o){t.setNumberFormat(a,o)},mergeNumberFormat(a,o){t.mergeNumberFormat(a,o)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=a=>{const o=t;o[xe]&&o[xe](a)},r.__disableEmitter=()=>{const a=t;a[pt]&&a[pt]()}),r}function xi(e,t,n){return{beforeCreate(){const r=i.getCurrentInstance();if(!r)throw se(H.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const o=a.i18n;if(a.__i18n&&(o.__i18n=a.__i18n),o.__root=t,this===this.$root)this.$i18n=Fr(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=wn(o);const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=Fr(e,a);else{this.$i18n=wn({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Fa(t,a,a),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$te=(o,s)=>this.$i18n.te(o,s),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const a=this.__v_emitter=xn();r.__enableEmitter&&r.__enableEmitter(a),a.on("*",St)}},unmounted(){const r=i.getCurrentInstance();if(!r)throw se(H.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",St),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(r),delete this.$i18n}}}function Fr(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[ka](t.pluralizationRules||e.pluralizationRules);const n=Hn(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const qn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Gi({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===i.Fragment?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},$())}function Ba(){return i.Fragment}const $i=i.defineComponent({name:"i18n-t",props:Z({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Q(e)||!isNaN(e)}},qn),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||Xn({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f!=="_"),s=$();e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=I(e.plural)?+e.plural:e.plural);const l=Gi(t,o),c=a[An](e.keypath,l,s),u=Z($(),r),d=I(e.tag)||V(e.tag)?e.tag:Ba();return i.h(d,u,c)}}}),Mr=$i;function Wi(e){return X(e)&&!I(e[0])}function xa(e,t,n,r){const{slots:a,attrs:o}=t;return()=>{const s={part:!0};let l=$();e.locale&&(s.locale=e.locale),I(e.format)?s.key=e.format:V(e.format)&&(I(e.format.key)&&(s.key=e.format.key),l=Object.keys(e.format).reduce((h,E)=>n.includes(E)?Z($(),h,{[E]:e.format[E]}):h,$()));const c=r(e.value,s,l);let u=[s.key];X(c)?u=c.map((h,E)=>{const y=a[h.type],S=y?y({[h.type]:h.value,index:E,parts:c}):[h.value];return Wi(S)&&(S[0].key=`${h.type}-${E}`),S}):I(c)&&(u=[c]);const d=Z($(),o),f=I(e.tag)||V(e.tag)?e.tag:Ba();return i.h(f,d,u)}}const Yi=i.defineComponent({name:"i18n-n",props:Z({value:{type:Number,required:!0},format:{type:[String,Object]}},qn),setup(e,t){const n=e.i18n||Xn({useScope:e.scope,__useComponent:!0});return xa(e,t,Ia,(...r)=>n[Cn](...r))}}),Vr=Yi;function Hi(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Ki(e){const t=s=>{process.env.NODE_ENV!=="production"&&Bn(bt(ge.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:l,value:c}=s;if(!l||!l.$)throw se(H.UNEXPECTED_ERROR);const u=Hi(e,l.$),d=Ur(c);return[Reflect.apply(u.t,u,[...Br(d)]),u]};return{created:(s,l)=>{const[c,u]=t(l);_e&&e.global===u&&(s.__i18nWatcher=i.watch(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),s.__composer=u,s.textContent=c},unmounted:s=>{_e&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:l})=>{if(s.__composer){const c=s.__composer,u=Ur(l);s.textContent=Reflect.apply(c.t,c,[...Br(u)])}},getSSRProps:s=>{const[l]=t(s);return{textContent:l}}}}function Ur(e){if(I(e))return{path:e};if(M(e)){if(!("path"in e))throw se(H.REQUIRED_VALUE,"path");return e}else throw se(H.INVALID_VALUE)}function Br(e){const{path:t,locale:n,args:r,choice:a,plural:o}=e,s={},l=r||{};return I(n)&&(s.locale=n),Q(a)&&(s.plural=a),Q(o)&&(s.plural=o),[t,l,s]}function ji(e,t,...n){const r=M(n[0])?n[0]:{};(U(r.globalInstall)?r.globalInstall:!0)&&([Mr.name,"I18nT"].forEach(o=>e.component(o,Mr)),[Vr.name,"I18nN"].forEach(o=>e.component(o,Vr)),[Gr.name,"I18nD"].forEach(o=>e.component(o,Gr))),e.directive("t",Ki(t))}const qi=pe("global-vue-i18n");function Xi(e={}){const t=__VUE_I18N_LEGACY_API__&&U(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&Bn(bt(ge.DEPRECATE_LEGACY_MODE));const n=U(e.globalInjection)?e.globalInjection:!0,r=new Map,[a,o]=Qi(e,t),s=pe(process.env.NODE_ENV!=="production"?"vue-i18n":"");function l(f){return r.get(f)||null}function c(f,h){r.set(f,h)}function u(f){r.delete(f)}const d={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...h){if(process.env.NODE_ENV!=="production"&&(f.__VUE_I18N__=d),f.__VUE_I18N_SYMBOL__=s,f.provide(f.__VUE_I18N_SYMBOL__,d),M(h[0])){const S=h[0];d.__composerExtend=S.__composerExtend,d.__vueI18nExtend=S.__vueI18nExtend}let E=null;!t&&n&&(E=al(f,d.global)),__VUE_I18N_FULL_INSTALL__&&ji(f,d,...h),__VUE_I18N_LEGACY_API__&&t&&f.mixin(xi(o,o.__composer,d));const y=f.unmount;if(f.unmount=()=>{E&&E(),d.dispose(),y()},process.env.NODE_ENV!=="production"){if(!await Ii(f,d))throw se(H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const w=xn();if(t){const g=o;g.__enableEmitter&&g.__enableEmitter(w)}else{const g=o;g[xe]&&g[xe](w)}w.on("*",St)}},get global(){return o},dispose(){a.stop()},__instances:r,__getInstance:l,__setInstance:c,__deleteInstance:u};return d}function Xn(e={}){const t=i.getCurrentInstance();if(t==null)throw se(H.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw se(H.NOT_INSTALLED);const n=Ji(t),r=Zi(n),a=Pa(t),o=zi(e,a);if(o==="global")return Fa(r,e,a),r;if(o==="parent"){let c=el(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&(bt(ge.NOT_FOUND_PARENT_SCOPE),void 0),c=r),c}const s=n;let l=s.__getInstance(t);if(l==null){const c=Z({},e);"__i18n"in a&&(c.__i18n=a.__i18n),r&&(c.__root=r),l=Kn(c),s.__composerExtend&&(l[On]=s.__composerExtend(l)),nl(s,t,l),s.__setInstance(t,l)}return l}function Qi(e,t){const n=i.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>wn(e)):n.run(()=>Kn(e));if(r==null)throw se(H.UNEXPECTED_ERROR);return[n,r]}function Ji(e){const t=i.inject(e.isCE?qi:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw se(e.isCE?H.NOT_INSTALLED_WITH_PROVIDE:H.UNEXPECTED_ERROR);return t}function zi(e,t){return Bt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Zi(e){return e.mode==="composition"?e.global:e.global.__composer}function el(e,t,n=!1){let r=null;const a=t.root;let o=tl(t,n);for(;o!=null;){const s=e;if(e.mode==="composition")r=s.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const l=s.__getInstance(o);l!=null&&(r=l.__composer,n&&r&&!r[Ra]&&(r=null))}if(r!=null||a===o)break;o=o.parent}return r}function tl(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function nl(e,t,n){let r=null;i.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=xn();const a=n;a[xe]&&a[xe](r),r.on("*",St)}},t),i.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",St),a[pt]&&a[pt](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=a[On];o&&(o(),delete a[On])},t)}const rl=["locale","fallbackLocale","availableLocales"],xr=["t","rt","d","n","tm","te"];function al(e,t){const n=Object.create(null);return rl.forEach(a=>{const o=Object.getOwnPropertyDescriptor(t,a);if(!o)throw se(H.UNEXPECTED_ERROR);const s=i.isRef(o.value)?{get(){return o.value.value},set(l){o.value.value=l}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,a,s)}),e.config.globalProperties.$i18n=n,xr.forEach(a=>{const o=Object.getOwnPropertyDescriptor(t,a);if(!o||!o.value)throw se(H.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,o)}),()=>{delete e.config.globalProperties.$i18n,xr.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}const ol=i.defineComponent({name:"i18n-d",props:Z({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},qn),setup(e,t){const n=e.i18n||Xn({useScope:e.scope,__useComponent:!0});return xa(e,t,Oa,(...r)=>n[Tn](...r))}}),Gr=ol;Ni();Hs(ys);Ks(xs);js(Ea);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Me();e.__INTLIFY__=!0,As(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Ga=Xi({legacy:!1,locale:"zh",fallbackLocale:"zh",globalInjection:!0,messages:{},warnHtmlMessage:!1,silentTranslationWarn:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackWarn:!1}),Fe=Ga.global;async function sl(e,t){const n=await t(e);Fe.setLocaleMessage(e,n),Fe.locale&&Fe.locale.value!==void 0?Fe.locale.value=e:Fe.locale=e}const Ye="__system:language__",He="zh";function il(){return(window.navigator.language||navigator.browserLanguage||navigator.userLanguage||"").toLowerCase().trim()}function ll(e){return e?e.toLowerCase().trim():""}const nt=ee.defineStore("cloudSdkLanguageStore",{state:()=>({languageDefault:He,languageName:D.localGet(Ye)||He,languageList:{zh:"简体中文","zh-cn":"简体中文","zh-CHT":"繁體中文",en:"English",ko:"한국어",ja:"日本語",de:"Deutsch",fr:"Français",id:"Indonesia"}}),getters:{languageSelect:e=>{let t=[];return(e.languageList||[]).forEach((r,a)=>{t.push({label:r,value:a})}),t}},actions:{async init(){let e=il()||He;e=localStorage.getItem(Ye)||e;const t=cvUtils.urlGetParameterAll();t.language&&(e=t.language),e=ll(e),Object.keys(this.languageList).includes(e)?this.languageName=e==="zh-cn"?"zh":e:this.languageName=He,localStorage.setItem(Ye,this.languageName)},async clear_cache(){D.localSet(Ye,He)},SA_LANGUAGE_DEFAULT(){return this.languageDefault},SA_LANGUAGE_LIST(){return this.languageList},SA_LANGUAGE_GET(){return this.languageName=localStorage.getItem(Ye)||He,this.languageName},SA_LANGUAGE_SET(e){this.languageName=e,D.localSet(Ye,e),Fe.locale.value=e}}}),$r="__system:themes__",cl="light",dn="__system:layoutSidebarState__",ul="on",Wr="__system:layoutNavTabs__",fl="on",dl="__system:layoutWatermark__",_l="on";function Yr(){let e=typeof window<"u"&&window.navigator.userAgent.toLowerCase();return`${e.match(/Chrome/i)}`=="chrome"?"chrome":`${e.match(/Webkit/i)}`=="webkit"?"webkit":null}const ve=ee.defineStore("cloudSdkThemesStore",{state:()=>({layoutName:"",layoutNavTabs:D.localGet(Wr)||fl,layoutSidebarState:D.localGet(dn)||ul,themesName:D.localGet($r)||cl,themesList:[{name:"跟随系统",value:"auto"},{name:"明亮",value:"light"},{name:"暗黑",value:"dark"}],watermarkState:D.localGet(dl)||_l}),actions:{async init(){["auto","light","dark"].indexOf(this.themesName);const e=cvUtils.urlGetParameterAll();e.themes&&(this.themesName=e.themes),this.synchTheme(),this.SA_THEMES_SET(this.themesName),this.layoutSidebarState=this.layoutSidebarState=="off"?"off":"on",this.SA_LAYOUT_SLIDEBAR_SET(this.layoutSidebarState),this.layoutNavTabs=this.layoutNavTabs=="off"?"off":"on",this.SA_LAYOUT_NAVTABS_SET(this.layoutNavTabs),this.watermarkState=this.watermarkState=="off"?"off":"on",this.SA_LAYOUT_WATERMARK_SET(this.watermarkState)},async clear_cache(){},SA_LAYOUT_WATERMARK_SET(e){this.watermarkState=e;const t=document.querySelector("html");t.classList.remove(e?"hideWatermark":"openWatermark"),t.classList.add(e?"openWatermark":"hideWatermark"),D.localSet(dn,e)},SA_LAYOUT_SLIDEBAR_SET(e){this.layoutSidebarState=e;const t=document.querySelector("html");t.classList.remove(e=="off"?"openSidebar":"hideSidebar"),t.classList.add(e=="on"?"openSidebar":"hideSidebar"),D.localSet(dn,e)},SA_LAYOUT_NAVTABS_SET(e){oe.__POWERED_BY_QIANKUN__&&(e="off"),this.layoutNavTabs=e;const t=document.querySelector("html");t.classList.remove(e=="off"?"openNavtabs":"hideNavtabs"),t.classList.add(e=="on"?"openNavtabs":"hideNavtabs"),oe.__POWERED_BY_QIANKUN__||D.localSet(Wr,e)},SA_THEMES_SET(e){if(this.themesName=e||"light",!Yr()){__cc_isEEUiApp?_t.ElMessage.warning("仅Android设置支持主题功能"):_t.ElMessage.warning("仅客户端或Chrome浏览器支持主题功能");return}this.synchTheme(e)},synchTheme(e=void 0){typeof e>"u"?e=this.themesName:this.themesName=e;const t=document.body;switch(e){case"dark":if(!Yr())return;t.classList.add("sdk-theme-dark");break;case"light":let r=document.getElementById("dark-mode-style");r&&r.parentNode.removeChild(r),t.classList.remove("sdk-theme-dark");break;default:this.themesName="auto",window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?this.themesName="dark":this.themesName="light";break}const n=document.querySelector("html");n.classList.remove(this.themesName=="dark"?"light":"dark"),n.classList.add(this.themesName),D.localSet($r,this.themesName)}}});function $a(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function Wa(){return window.innerHeight}function ml(){return $a()-Wa()>50?"landscape":"portrait"}const Lt=$a(),hl=Wa(),_n=ml(),Qn=ee.defineStore("cloudSdkWindowStore",{state:()=>({windowActive:!0,windowScrollY:0,windowTouch:"ontouchend"in document,windowWidth:Lt,windowHeight:hl,windowOrientation:_n,windowLandscape:_n==="landscape",windowPortrait:_n==="portrait",formLabelPosition:Lt>576?"right":"top",formLabelWidth:Lt>576?"auto":"",windowMax768:Lt<=768,winSizeName:""}),getters:{winCalcSizeName:e=>(void 0).SA_GET_SIZE_TYPE()},actions:{async init(){},init_refresh(){},isSingle(){return document.querySelector(".electron-single-micro-apps")?1:0},isPortrait(){return document.querySelector(".window-portrait")?1:0},SA_SET_WINDOW_WIDTH(e){this.windowWidth=window.innerWidth},SA_GET_SIZE_TYPE(){switch(!0){case this.windowWidth<=768:return"app-small-768";case this.windowWidth<=992:return"app-small-992";case this.windowWidth<=1200:return"app-small-1200"}},SA_GET_WINDOW_WIDTH(){return this.winSizeName=this.SA_GET_SIZE_TYPE(),this.winSizeName}}}),lt="__system:keyboardConf__",mn="__syCacheApiFlag__",hn="__syCacheApiAuth__",Hr="__syCacheApiCode__",Kr="__syCacheApiKey__",jr="__syCacheSystemConfig__",$t=ee.defineStore("cloudSdkSystemStore",{state:()=>({cacheServerUrl:"",clientId:"",clientCacheVersion:"v7",clientNewVersion:null,keyboardType:null,keyboardHeight:0,safeAreaBottom:0,appNotificationPermission:!0,useSSOLogin:!1,sysIsElectron:!1,sysIsEEUiApp:!1,sysIsSoftware:!1,cacheKeyboard:{},systemConfig:{},apiKeyData:{}}),getters:{systemInfo:e=>({title:"",version:""})},actions:{async init(){await gbIdbObj.idbGetString("clearCache");const e=await gbIdbObj.idbGetString("cacheServerUrl");await gbIdbObj.idbSetItem("cacheServerUrl",e);const t=await gbIdbObj.idbGetString("clientCacheVersion");await gbIdbObj.idbSetItem("clientCacheVersion",this.clientCacheVersion),t!==this.clientCacheVersion?await this.clear_cache():await this.cache_read(),await this.__load_api_flag(),await this.__load_api_auth(),await this.__load_api_code(),await this.__load_api_key(),await this.__load_system_config(),this.SA_KEYBOARD_SET()},async clear_cache(){await gbIdbObj.idbDelItem("clearCache"),await gbIdbObj.idbDelItem("clientCacheVersion");const e=D.localGet(lt);D.localSet(lt,e),D.localDel(mn),D.localDel(hn)},async cache_read(){this.clientId=await gbIdbObj.idbGetString("clientId"),this.cacheServerUrl=await gbIdbObj.idbGetString("cacheServerUrl"),this.cacheServerUrl&&(window.systemInfo.apiUrl=this.cacheServerUrl)},async __load_api_flag(){let e=await gbIdbObj.idbGetItem(mn);e||await re.flagGet("BASE_LOAD_COMMON_API_FLAG",{}).then(t=>{e=t.data||{},window._SY_OPEN_API_FLAG_||(window._SY_OPEN_API_FLAG_={}),window._SY_OPEN_API_FLAG_=Object.assign(window._SY_OPEN_API_FLAG_,e),gbIdbObj.idbSetItem(mn,e)}),await re.appendApiFlag(e)},async __load_api_auth(){let e=await gbIdbObj.idbGetItem(hn);e||await re.flagGet("BASE_LOAD_COMMON_API_AUTH",{}).then(t=>{e=t.data||{},window._SY_OPEN_API_FLAG_||(window._SY_OPEN_API_FLAG_={}),window._SY_OPEN_API_FLAG_=Object.assign(window._SY_OPEN_API_FLAG_,e),gbIdbObj.idbSetItem(hn,e)}),await re.appendApiAuth(e)},async __load_api_code(){let e=await gbIdbObj.idbGetItem(Hr);e||await re.flagGet("BASE_LOAD_COMMON_API_CODE",{}).then(t=>{e=t.data||{},gbIdbObj.idbSetItem(Hr,e)})},async __load_api_key(){this.clientId=await gbIdbObj.idbGetString("clientId"),this.clientId||(this.clientId=cvUtils.randomString(6),await gbIdbObj.idbSetItem("clientId",this.clientId)),this.apiKeyData=await gbIdbObj.idbGetItem(Kr),this.apiKeyData||await re.setOptions({encrypt:!1}).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT",{client_id:this.clientId}).then(({data:e})=>{this.apiKeyData=e,gbIdbObj.idbSetItem(Kr,this.apiKeyData)}),re.setHeaders({"Sy-Client-Id":this.clientId})},async __load_system_config(){this.systemConfig=await gbIdbObj.idbGetItem(jr),this.systemConfig||await re.flagGet("BASE_SYS_COMMON_PLAT_SETTING",{}).then(({data:e})=>{this.systemConfig=Object.assign({},this.systemConfig,e),gbIdbObj.idbSetItem(jr,this.systemConfig)})},SA_KEYBOARD_SET(e){return new Promise(t=>{let n=D.localGet(lt);n||(D.localSet(lt,D.localGet("__keyboard:data__")),D.localDel("__keyboard:data__"));const r=e||n||{};r.screenshot_key=(r.screenshot_key||"").trim().toLowerCase(),r.send_button_app=r.send_button_app||"button",r.send_button_desktop=r.send_button_desktop||"enter",D.localSet(lt,r),this.cacheKeyboard=r,cvUtils.__cc_isElectron,t(r)})},SA_SYS_IP_INFO(e,t){if(!cvUtils.strExists(e,"."))return;let n="__ip"+e.substring(0,1)+"__";const r=D.localSet(n);let a=cvUtils.strGetMiddle(e,"","."),o=r[a]||e;if(typeof o=="object"){typeof t=="function"&&t(o);return}const s={keyId:o||e};re.setTimeout(8e3).flagGet("BASE_SYS_COMMON_SYS_INFO",{ip:e}).then(()=>{D.localSet(n,s),typeof t=="function"&&t(o)})}}});function Ln(e){return typeof e=="string"&&e.trim()!==""&&e!=="undefined"}const Ke="syCacheAppInfo",Ce="syCacheAppToken",ct="syCacheAppJwt",ut="syCacheAppRbac",qr={nickname:"",staff_nickname:"",id:0,email:"",name:"",token:"",avatar:"",created_at:"",updated_at:"",identity:[],userid:0,department_owner:null,department:null,okr_admin_owner:null,account_nick:"十云",account_mobile_show:"****",account_avatar:"https://f.10yun.com/default/ucenter/avatar4.jpg",account_avatar_cdn:"https://f.10yun.com/default/ucenter/avatar4.jpg",business_name:""},me=ee.defineStore("cloudSdkAccountStore",{state:()=>({account_nick:"",accountRbacData:[],accountInfo:D.localGet(Ke)||{},accountToken:D.localGet(Ce)||"",accountJwt:D.localGet(ct)||""}),getters:{cacheBizsId:e=>{var t;return((t=(void 0).accountInfo)==null?void 0:t.business_id)||0},staffId:e=>{var t;return((t=e.accountInfo)==null?void 0:t.staff_id)||0},staffNick:e=>{var t;return((t=e.accountInfo)==null?void 0:t.staff_nick)||""},accountIsLogin:e=>!!Ln(e.accountToken),accountRole:e=>{var t;return(t=e.accountInfo)==null?void 0:t.identity},accRoleIsAdmin:e=>{var t;return((t=e.accountInfo)==null?void 0:t.acc_role_type)=="sy-org-admin"}},actions:{init(){const e=cvUtils.urlGetParameterAll();e.token&&D.localSet("ACC_TOKEN_CACHE_KEY",e.token),this.SA_ACCOUNT_RBAC_REFRESH(),this.accountIsLogin?this.SA_ACCOUNT_REFRESH():this.SA_ACCOUNT_LOGOUT()},async clear_cache(){this.ACCOUNT_SET_PREV()},async clear_all(){},SA_ACCOUNT_IS_LOGGED(){return this.accountToken=D.localGet(Ce)||"",!!Ln(this.accountToken)},SA_ACCOUNT_JWT_GET(){return this.accountJwt||""},SA_ACCOUNT_TOKEN_GET(){return this.accountToken||""},SA_ACCOUNT_TOKEN_SET(e){this.accountToken=e,D.localSet(Ce,this.accountToken)},SA_ACCOUNT_INFO_GET(){return D.localGet("accountInfo")},SA_ACCOUNT_INFO_REFRESH(){return new Promise((e,t)=>{re.flagGet("BASE_ACCSYS_COMMON_INFO",{}).then(({data:n})=>{n=this._SA_ACCOUNT_INFO_PARSE(n),e(n)}).catch(n=>{t(n)})})},SA_ACCOUNT_INFO_PARSE(e){return e=e||qr,cvUtils.isEmpty(e.acc_pre_name)&&(e.acc_pre_name=e.acc_pre_nick),e.account_id=cvUtils.parseNumber(e.account_id),e.token_access=e.account_id>0?e.token_access||this.accountToken:"",e.account_avatar_cdn=e.account_avatar_cdn||e.per_avatar_cdn,e.account_mobile_hide=e.account_mobile_hide||e.ucenter_mobile_hide||e.ucenter_mobile,this.accountInfo=e,e},SA_ACCOUNT_INFO_SET(e){return new Promise(async t=>{const n=JSON.parse(JSON.stringify(e));this.accountInfo=this.SA_ACCOUNT_INFO_PARSE(n),this.accountToken=n.token_access,await gbIdbObj.idbSetItem("accountInfo",n),D.localSet(Ke,this.accountInfo),t()})},SA_ACCOUNT_GET_NICK(){return this.account_nick},SA_ACCOUNT_REFRESH(){this.accountInfo=D.localGet(Ke)||qr,this.accountToken=D.localGet(Ce)||"",this.accountJwt=D.localGet(ct)||"",re.setDefHeaders({syOpenAppToken:this.accountToken||"",Authorization:"Bearer "+this.accountJwt||""})},async SA_ACCOUNT_SIGNIN(e){e=this.SA_ACCOUNT_INFO_PARSE(e),D.localSet(Ke,e),D.localSet(Ce,e.token_access||""),D.localSet(ct,e.token_jwt||""),D.localSet(ut,""),this.SA_ACCOUNT_REFRESH(),await this.SA_ACCOUNT_RBAC_REFRESH(!0),gbIdbObj.idbSave(Ce,e.token_access||""),Je().QK_SEND_LOGIN_MSG()},SA_ACCOUNT_LOGOUT(){this.ACCOUNT_SET_PREV(),D.sessionClear(),D.localSet(Ke,""),D.localSet(Ce,""),D.localSet(ct,""),D.localSet(ut,""),D.localDel(Ke),D.localDel(Ce),D.localDel(ct),D.localDel(ut),this.SA_ACCOUNT_REFRESH(),Je().QK_SEND_LOGOUT_MSG()},async SA_ACCOUNT_RBAC_REFRESH(e){return e=e||!1,new Promise(async t=>{if(this.accountToken){let n=D.localGet(ut)||"";e&&n==""?await re.flagGet("ORG_SYS_BASE_MYRBAC",{}).then(r=>{r.status==100600?this.SA_ACCOUNT_LOGOUT():r.status==200&&(D.localSet(ut,r.data||""),t(r.data||""))}).catch(()=>{t("")}):t(n)}else t([])})},ACCOUNT_SET_PREV(){}}});function Xr(e){return e=e.replace(/^\//,""),e=e.replace(/\//g,"_"),e}function Ya(e,t){t=t||1;let n="";e.path?n=e.path:e.component&&(n=e.component),e.component||(n="");let r="";if(e.name?r=e.name:n?r=Xr(n):r="temp_name_"+t,r=Xr(r),e.children&&e.children.length>0){let a=e.children,o=0,s=0;a.forEach((l,c)=>{l.isMenu==!0&&o++,l.isRbac==!0&&s++}),e.children_menu_num=o,e.children_opt_num=s}return{...e,path:n,name:r}}const gl={},pl=gl,El=pl.VITE_SY_PRODUCT_SIGN;function Ha(e){let t=Object.prototype.toString.call(e);if(t!="[object String]"&&t!="[object Array]")return!1;let n=D.localGet("syCacheAppRbac")||"";if(t=="[object String]")return Ft(e,n);if(t==="[object Array]"){for(const r of e)if(!Ft(r,n))return!1;return!0}return!1}function Ft(e,t){if(e=e||"",e=e.trim(),e=="")return!1;e.includes("@")||(e=`${El}@${e}`);let n=t||D.localGet("syCacheAppRbac")||"";return n=n.trim(),Ln(n)?n=='"all@all"'||n=="all@all"?!0:n.split(",").map(a=>a.trim()).includes(e):!1}const Qr={"org-business":"商家平台","org-operator":"运营平台","org-agent":"代理商平台","org-admin":"超管平台"};let Ka=Qr[Qe().syAppConnectRole]?Qr[Qe().syAppConnectRole]:"管理系统";const Sl=window.shiyunProductInfo||{system_type:Ka},Nt=ee.defineStore("cloudSdkProductStore",{state:()=>({defaultProductInfo:{info_title:Qe().syProductTitle||"ShiyunProduct",info_logo:"",info_version:"v1.25.xxxx",platinfo_logo:"//10ui.cn/10yun-img/logo-nobg.png",platinfo_login_bg:"",platinfo_brand:"shiyun",platinfo_title:"十云",platinfo_short:"十云",privacy_url:"//api.10yun.com/privacy.html",system_type:Ka},currMenuInfo:{},menuBadge:{},menuOpeneds:[],menuOnly:[],menuOriginal:[]}),getters:{openProductInfo:e=>Object.assign({},e.defaultProductInfo,Sl),menuCurrOpeneds:e=>e.menuOpeneds,menuCurrOnly:e=>e.menuOnly},actions:{async init(e){e=e||[],e&&(this.menuOriginal=JSON.parse(JSON.stringify(e)))},async clear_cache(){},SA_SET_MENU_BADGE_KEY(e,t){this.menuBadge[e]=t},SA_PRODUCT_INFO_GET(){},SA_MENU_SET(e){this.menuTree=e||[]},SA_MENU_PARSE(){var e=[];function t(o,s){let l=[];for(let c in o){let u=o[c];u=Ya(u,c),u.isMenu===!0&&(u.isRbac&&!u.path||(u.children&&u.children.length>0&&(u.children=t(u.children,s)),u.collapsable===!1&&e.push(u.name),Ft(u.name,s)&&l.push(u)))}return l}let n=JSON.parse(JSON.stringify(this.menuOriginal)),r=D.localGet("syCacheAppRbac")||"",a=t(n,r);return this.menuOpeneds=e,this.menuOnly=a,a},SA_MENU_GET(){return this.menuTree}}}),bl=[{meta:{title:"登录",isAlone:!0},isAlone:!0,name:"login",path:"/login",component:()=>Promise.resolve().then(()=>require("./login-DbsijHDN.cjs"))}],Nl=[{meta:{title:"不建议单独运行",isAlone:!0},isAlone:!0,name:"alone_run",path:"/alone_run",component:()=>Promise.resolve().then(()=>require("./alone_run-BR__Dya8.cjs"))},{meta:{title:"错误",isAlone:!0},isAlone:!0,name:"404",path:"/:catchAll(.*)",component:()=>Promise.resolve().then(()=>require("./404-DIY1-gwa.cjs"))}],vl=[{meta:{title:"空页面",isAlone:!1},isAlone:!1,name:"none",path:"/none",component:()=>Promise.resolve().then(()=>require("./none-CEhsRvE2.cjs"))}],vt=ee.defineStore("cloudSdkPermissionStore",{state:()=>({originalRoutes:[],whiteList:["404","login","alone_run","none"],addRoutes:[],routeAlive:0,rbacLastStr:D.localGet("syCacheAppRbac")||"",rbacArr:[]}),actions:{init(e){e=e||[],this.originalRoutes=e},clear_cache(){},SA_ROUTE_ALIVE_ADD(){this.routeAlive++},SA_PERMS_ROUTER_ADD(e,t){t=t||"",t!="console_passport"&&e.addRoute(...bl),e.addRoute(...Nl),e.addRoute(...vl)},SA_PERMS_ROUTER_CHECK(e){let n=Ya(e).name;return!!(this.whiteList.includes(n)||Ft(n,this.rbacLastStr))},SA_PERMS_ROUTER_SET(e){},async SA_PERMS_REFRESH(){}}});function yl(){return new Promise(async e=>{nt().clear_cache(),ve().clear_cache(),$t().clear_cache(),me().clear_cache(),Nt().clear_cache(),window.gbIdbObj.idbSetItem("clear_cache","handle").then(t=>{e()})})}function Al(){return{computed:{...ee.mapState(Je,["qiankunExistState"]),...ee.mapState(nt,["languageName","languageList","languageSelect"]),...ee.mapState(ve,["themesName","themesList","layoutNavTabs","layoutSidebarState"]),...ee.mapState(Qn,["windowWidth","windowHeight","windowActive","windowScrollY","windowTouch","windowLandscape","windowPortrait","formLabelPosition"]),...ee.mapState($t,["cacheServerUrl","systemConfig","systemInfo","sysIsElectron","sysIsEEUiApp","sysIsSoftware"]),...ee.mapState(me,["accountIsLogin","accountInfo","accountToken","accountRole","accRoleIsAdmin","staffId","staffNick"]),...ee.mapState(Nt,["openProductInfo","menuBadge","menuCurrOpeneds","menuCurrOnly"])},watch:{windowActive(t){}},mounted(){}}}const Ee=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Tl={props:{className:""},data(){return{routeRefreshAnimation:"",routeRefreshNum:0}},computed:{...ee.mapState(vt,["routeAlive"])},watch:{routeAlive(e){this.routeRefreshAnimation="subapp-slide-right",this.routeRefreshNum++,this.$nextTick(()=>{this.routeRefreshAnimation=""})}},methods:{}};function Cl(e,t,n,r,a,o){const s=i.resolveComponent("router-view");return i.openBlock(),i.createBlock(s,{key:a.routeRefreshNum},{default:i.withCtx(({Component:l,route:c})=>[i.createVNode(i.Transition,{name:a.routeRefreshAnimation,mode:"out-in",appear:""},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(n.className),key:c.path},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(l)))],2))]),_:2},1032,["name"])]),_:1})}const ja=Ee(Tl,[["render",Cl]]),Ol={name:"HeaderSysSettDrawer",components:{},props:{modelVal:{type:Boolean,default:!1}},data(){return{localVal:!1,frameSysTheme:"",frameSysLanguage:"",frameSysNavTabs:null,frameSidebarState:null}},watch:{modelVal(e){this.localVal=e},frameSysTheme(e){ve().SA_THEMES_SET(e)},frameSysLanguage(e){nt().SA_LANGUAGE_SET(e)},frameSidebarState(e){ve().SA_LAYOUT_SLIDEBAR_SET(e)},frameSysNavTabs(e){ve().SA_LAYOUT_NAVTABS_SET(e)}},created(){this.init()},methods:{init(){this.frameSysTheme=this.themesName,this.frameSysLanguage=this.languageName,this.frameSysNavTabs=this.layoutNavTabs,this.frameSidebarState=this.layoutSidebarState},frameTopSysSettClose(){this.localVal=!1,this.$emit("update:modelValue",this.localVal)},frameUpdateVersion(){},frameClearCache(){this.$parent.frameHandleCommand("clearCache")}}},Il={class:"cloud-sett-drawer-body"},wl={class:"cloud-sett-drawer-skin"};function Ll(e,t,n,r,a,o){const s=i.resolveComponent("el-card"),l=i.resolveComponent("el-form-item"),c=i.resolveComponent("el-option"),u=i.resolveComponent("el-select"),d=i.resolveComponent("cv-icons"),f=i.resolveComponent("el-button"),h=i.resolveComponent("el-switch"),E=i.resolveComponent("el-form"),y=i.resolveComponent("el-drawer");return i.openBlock(),i.createBlock(y,{title:"系统设置",modelValue:a.localVal,"onUpdate:modelValue":t[6]||(t[6]=S=>a.localVal=S),direction:"rtl",size:"450px","before-close":o.frameTopSysSettClose},{default:i.withCtx(()=>[i.createElementVNode("div",Il,[i.createVNode(E,{labelWidth:"auto","label-position":"left"},{default:i.withCtx(()=>[i.createVNode(l,{label:"风格","label-position":"top"},{default:i.withCtx(()=>[i.createElementVNode("div",wl,[i.createVNode(s),i.createVNode(s),i.createVNode(s)])]),_:1}),i.createVNode(l,{label:"主题"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:a.frameSysTheme,"onUpdate:modelValue":t[0]||(t[0]=S=>a.frameSysTheme=S),placeholder:e.$t("选项主题"),style:{width:"150px"}},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.themesList,(S,w)=>(i.openBlock(),i.createBlock(c,{label:e.$t(S.name),value:S.value,key:w},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.$t(S.name)),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1}),i.createVNode(l,{label:"暗黑模式"},{default:i.withCtx(()=>[a.frameSysTheme=="light"?(i.openBlock(),i.createBlock(f,{key:0,onClick:t[1]||(t[1]=S=>a.frameSysTheme="dark"),class:"light-switch"},{default:i.withCtx(()=>[i.createVNode(d,{type:"cvSvgViewModeDark"})]),_:1})):i.createCommentVNode("",!0),a.frameSysTheme=="dark"?(i.openBlock(),i.createBlock(f,{key:1,onClick:t[2]||(t[2]=S=>a.frameSysTheme="light"),class:"dark-switch"},{default:i.withCtx(()=>[i.createVNode(d,{type:"cvSvgViewModeLight"})]),_:1})):i.createCommentVNode("",!0)]),_:1}),i.createVNode(l,{label:"侧栏显示"},{default:i.withCtx(()=>[i.createVNode(h,{modelValue:a.frameSidebarState,"onUpdate:modelValue":t[3]||(t[3]=S=>a.frameSidebarState=S),"active-text":"显示","inactive-text":"隐藏","active-value":"on","inactive-value":"off"},null,8,["modelValue"])]),_:1}),i.createVNode(l,{label:"导航标签栏"},{default:i.withCtx(()=>[i.createVNode(h,{modelValue:a.frameSysNavTabs,"onUpdate:modelValue":t[4]||(t[4]=S=>a.frameSysNavTabs=S),"active-text":"显示","inactive-text":"隐藏","active-value":"on","inactive-value":"off"},null,8,["modelValue"])]),_:1}),i.createVNode(l,{label:"语言"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:a.frameSysLanguage,"onUpdate:modelValue":t[5]||(t[5]=S=>a.frameSysLanguage=S),placeholder:e.$t("选项语言"),style:{width:"150px"}},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.languageSelect,(S,w)=>(i.openBlock(),i.createBlock(c,{label:S.label,value:S.value},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(S.label),1)]),_:2},1032,["label","value"]))),256))]),_:1},8,["modelValue","placeholder"])]),_:1}),i.createVNode(l,{label:"版本"},{default:i.withCtx(()=>[i.createVNode(f,{onClick:o.frameUpdateVersion},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.$t("更新版本")),1)]),_:1},8,["onClick"])]),_:1}),i.createVNode(l,{label:"缓存"},{default:i.withCtx(()=>[i.createVNode(f,{onClick:o.frameClearCache},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.$t("清除缓存")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})])]),_:1},8,["modelValue","before-close"])}const Dl=Ee(Ol,[["render",Ll]]),Jr=e=>Math.pow(e,3),kl=e=>e<.5?Jr(e*2)/2:1-Jr((1-e)*2)/2,Rl={name:"SameNavTabs",data(){return{sett_tags:[{title:"概览",path:"/index",name:"index"}],activeTag:null,contextMenuVisible:!1,contextMenuStyle:{},top:0,editableTabs:[],left:0,isDisabledCloseLeftBtnFlag:!1,isDisabledCloseRightBtnFlag:!1}},watch:{$route(e){this.activeTag=this.$route.name;for(let t in this.sett_tags)if(this.sett_tags[t].name==this.activeTag)return;this.sett_tags.push({title:e.meta.title,path:e.path,name:e.name})}},mounted(){this.$nextTick(()=>{let e=document.body.getElementsByClassName("xxxxxx-tag");e&&e.length>0&&(e[0].oncontextmenu=this.openContextMenu)})},updated(){this.tagAutoScroll()},methods:{changeGdtBase(){const e=this.$refs.navScroll1.wrap,t=Date.now(),n=e.scrollLeft,r=window.requestAnimationFrame||(o=>setTimeout(o,16)),a=()=>{const o=(Date.now()-t)/500;o<1?(e.scrollLeft=n*(1-kl(o)),r(a)):e.scrollLeft=0};r(a)},changeGdtLeft(){this.changeGdtBase()},changeGdtRight(){const e=this.$refs.navScroll1.wrap,t=e.scrollLeft;e.scrollLeft=t+300},async removeTag(e,t){if(e.path!="/index"){if(this.$route.meta.close_tip){let n=!1;if(await this.$confirm("将要关闭正在编辑的页面, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{n=!1}).catch(()=>{n=!0}),n)return}if(this.sett_tags.splice(t,1),this.sett_tags.length==0){this.$router.push("/");return}e.title==this.activeTag&&t==this.sett_tags.length&&this.$router.push(this.sett_tags[t-1].path),e.title==this.activeTag&&t!=this.sett_tags.length&&this.$router.push(this.sett_tags[t].path)}},changeMenu(e){this.$route.path!=e.path&&this.$router.replace(e.path)},tagAutoScroll(){let e=document.querySelector("#tagId");e&&e.scrollIntoView()},openContextMenu(e){e.preventDefault();let t=e.srcElement?e.srcElement:e.target;if(t.id){let n=t.id.split("-")[1],r=0;for(;r<this.editableTabs.length&&this.editableTabs[r].title!=n;++r);r<=0?(this.isDisabledCloseLeftBtnFlag=!0,this.isDisabledCloseRightBtnFlag=!1):r>=this.editableTabs.length-1?(this.isDisabledCloseLeftBtnFlag=!1,this.isDisabledCloseRightBtnFlag=!0):(this.isDisabledCloseLeftBtnFlag=!1,this.isDisabledCloseRightBtnFlag=!1),this.contextMenuVisible=!0,this.left=e.clientX-270,this.top=e.clientY-50}},curTabReload(){},closeAllTabs(){this.closeContextMenu()},closeOtherTabs(e){this.closeContextMenu()},closeContextMenu(){this.contextMenuVisible=!1}}},Pl={class:"cloud-navtabs__wrap"},Fl={class:"cloud-navtabs__box"},Ml={class:"cloud-navtabs__main"},Vl={class:"cloud-navtabs__tags"};function Ul(e,t,n,r,a,o){const s=i.resolveComponent("cv-icons"),l=i.resolveComponent("cv-btn-base"),c=i.resolveComponent("el-tag"),u=i.resolveComponent("el-scrollbar"),d=i.resolveComponent("cv-btn-text");return i.openBlock(),i.createElementBlock("div",Pl,[i.createElementVNode("div",Fl,[i.createVNode(l,{class:"btn-opt-left",onClick:o.changeGdtLeft},{default:i.withCtx(()=>[i.createVNode(s,{type:"ElIconArrowLeft"})]),_:1},8,["onClick"]),i.createElementVNode("div",Ml,[i.createVNode(u,{ref:"navScroll1"},{default:i.withCtx(()=>[i.createElementVNode("div",Vl,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.sett_tags,(f,h)=>(i.openBlock(),i.createBlock(c,{id:a.activeTag==f.name?"tagId":"",class:i.normalizeClass(["tag xxxxxx-tag",a.activeTag==f.name?"active":""]),key:f.name,closable:f.path!=="/index",onClose:E=>o.removeTag(f,h),onClick:E=>o.changeMenu(f),"disable-transitions":"",onContextmenu:i.withModifiers(o.openContextMenu,["prevent"])},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(f.title),1)]),_:2},1032,["id","class","closable","onClose","onClick","onContextmenu"]))),128))])]),_:1},512)]),i.createVNode(l,{class:"btn-opt-right",onClick:o.changeGdtRight},{default:i.withCtx(()=>[i.createVNode(s,{type:"ElIconArrowRight"})]),_:1},8,["onClick"]),i.createVNode(l,{class:"btn-opt-close"},{default:i.withCtx(()=>[t[5]||(t[5]=i.createTextVNode(" 关闭操作 ")),i.createVNode(s,{type:"ElIconCaretBottom"})]),_:1}),i.withDirectives(i.createElementVNode("div",{class:"cloud-navtabs__contextmenu",style:i.normalizeStyle(a.contextMenuStyle)},[i.createElementVNode("ul",{style:i.normalizeStyle({left:a.left+"px",top:a.top+"px"})},[i.createElementVNode("li",null,[i.createVNode(d,{onClick:t[0]||(t[0]=f=>o.curTabReload())},{default:i.withCtx(()=>t[6]||(t[6]=[i.createTextVNode("重新加载")])),_:1})]),i.createElementVNode("li",null,[i.createVNode(d,{onClick:t[1]||(t[1]=f=>o.closeAllTabs())},{default:i.withCtx(()=>t[7]||(t[7]=[i.createTextVNode("关闭所有")])),_:1})]),i.createElementVNode("li",null,[i.createVNode(d,{onClick:t[2]||(t[2]=f=>o.closeOtherTabs("left")),disabled:a.isDisabledCloseLeftBtnFlag},{default:i.withCtx(()=>t[8]||(t[8]=[i.createTextVNode("关闭左边")])),_:1},8,["disabled"])]),i.createElementVNode("li",null,[i.createVNode(d,{onClick:t[3]||(t[3]=f=>o.closeOtherTabs("right")),disabled:a.isDisabledCloseRightBtnFlag},{default:i.withCtx(()=>t[9]||(t[9]=[i.createTextVNode("关闭右边")])),_:1},8,["disabled"])]),i.createElementVNode("li",null,[i.createVNode(d,{onClick:t[4]||(t[4]=f=>o.closeOtherTabs("other"))},{default:i.withCtx(()=>t[10]||(t[10]=[i.createTextVNode("关闭其他")])),_:1})])],4)],4),[[i.vShow,a.contextMenuVisible]])])])}const Bl=Ee(Rl,[["render",Ul]]),xl={name:"SidebarMenuItem",props:{menuData:{type:Array,default(e){return[]}},collapse:{type:[Boolean],default:!1},isChildren:{type:[Boolean],default:!1},appData:{type:[Array,Object],default(e){return{}}}},data(){return{}},computed:{badgeStyle(){return this.collapse?"position: absolute; right: 25px; margin-top: -20px":"position: absolute; right: 30px; "}},methods:{currBadge(e){return this.menuBadge[e]&&this.menuBadge[e]>0?this.menuBadge[e]:0},handleOpenMenu(e){if(e&&e.isWindow){var t=window.open("","MyWindowName","");t.location.href=e.path}else this.jumpsAuth(e.path)}}},Gl={class:"cloud-subapp-menu-icon"},$l={key:1},Wl={key:0,class:"cloud-subapp-menu-icon"},Yl={key:1,class:"cloud-subapp-menu-icon"};function Hl(e,t,n,r,a,o){const s=i.resolveComponent("cv-icons"),l=i.resolveComponent("SidebarMenuItem",!0),c=i.resolveComponent("el-sub-menu"),u=i.resolveComponent("cv-badge"),d=i.resolveComponent("el-menu-item");return i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.menuData,f=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[f.isMenu==!0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[f.children&&f.children.length>0&&f.children_menu_num>0?(i.openBlock(),i.createBlock(c,{key:f.name,index:f.name},{title:i.withCtx(()=>[i.createElementVNode("div",Gl,[f.meta.icon?(i.openBlock(),i.createBlock(s,{key:0,type:f.meta.icon,size:"16"},null,8,["type"])):i.createCommentVNode("",!0),!f.meta.icon&&n.collapse?(i.openBlock(),i.createElementBlock("span",$l,i.toDisplayString(f.meta.short||f.meta.title),1)):i.createCommentVNode("",!0)]),i.createElementVNode("span",null,i.toDisplayString(f.meta.title||f.meta.short),1)]),default:i.withCtx(()=>[i.createVNode(l,{appData:n.appData,menuData:f.children,collapse:n.collapse,isChildren:""},null,8,["appData","menuData","collapse"])]),_:2},1032,["index"])):(i.openBlock(),i.createBlock(d,{index:f.name,key:"b"+f.name,onClick:h=>o.handleOpenMenu(f)},{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(f.meta.short||f.meta.title),1)]),default:i.withCtx(()=>[!f.meta.icon&&n.collapse&&!n.isChildren?(i.openBlock(),i.createElementBlock("div",Wl,i.toDisplayString(f.meta.short||f.meta.title),1)):(i.openBlock(),i.createElementBlock("div",Yl,[f.meta.icon?(i.openBlock(),i.createBlock(s,{key:0,type:f.meta.icon,size:"16"},null,8,["type"])):i.createCommentVNode("",!0)])),f.meta.badge&&o.currBadge(f.meta.badge)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[o.currBadge(f.meta.badge)>0?(i.openBlock(),i.createBlock(u,{key:0,class:"menu-badge",type:"danger",max:999,value:o.currBadge(f.meta.badge),style:i.normalizeStyle(o.badgeStyle)},null,8,["value","style"])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0)]),_:2},1032,["index","onClick"]))],64)):i.createCommentVNode("",!0)],64))),256)}const Kl=Ee(xl,[["render",Hl]]),jl={name:"SidebarMenuBox",components:{SidebarMenuItem:Kl},props:{collapse:{type:[Boolean],default:!1}},data(){return{menuDefaultOpeneds:[],microCurrMenuLast:[],activeName:null}},watch:{$route(e,t){if(e.meta.treeInfo){let n=e.meta.treeInfo,r=n.length-1;for(let a=r;a>=0;a--)n[a].isMenu==!0&&n[a].isPage==!0&&(this.activeName=n[a].name||e.name)}},menuCurrOnly(e){this.microCurrMenuLast=e},menuCurrOpeneds(e){this.menuDefaultOpeneds=e}},created(){this.microCurrMenuLast=this.menuCurrOnly,this.menuDefaultOpeneds=this.menuCurrOpeneds},methods:{handleOpen(e,t){},handleClose(e,t){}}},ql={class:"cloud-subapp-wrap"},Xl={class:"cloud-sidebar__title"},Ql={class:"cloud-subapp-menu-box"};function Jl(e,t,n,r,a,o){const s=i.resolveComponent("SidebarMenuItem"),l=i.resolveComponent("el-menu");return i.openBlock(),i.createElementBlock("div",ql,[i.createElementVNode("div",Xl,i.toDisplayString(e.openProductInfo.info_title),1),i.createElementVNode("div",Ql,[i.createVNode(l,{collapse:n.collapse,"default-openeds":a.menuDefaultOpeneds,"default-active":a.activeName,onOpen:o.handleOpen,onClose:o.handleClose},{default:i.withCtx(()=>[i.createVNode(s,{appData:e.openProductInfo,menuData:a.microCurrMenuLast,collapse:n.collapse},null,8,["appData","menuData","collapse"])]),_:1},8,["collapse","default-openeds","default-active","onOpen","onClose"])])])}const zl=Ee(jl,[["render",Jl]]),Zl={name:"ChangePassword",props:{modelValue:{type:[String,Boolean],default:!1}},data(){return{visible:!1,formData:{}}},watch:{modelValue(e){this.visible=e}},created(){this.visible=this.modelValue},methods:{changeValue(e){this.visible=e,this.$emit("update:modelValue",e)},handleCancel(){this.changeValue(!1),this.formData={}},handleLogout(){const e=me();this.$request.flagPost("BASE_PASSPORT_LOGOUT",{}).finally(()=>{e.SA_ACCOUNT_LOGOUT(),this.$router.push({path:"/login"})})},handleBeforeOk(){this.$request.flagPut("BASE_ACCSEC_COMMON_CHG_PWD",this.formData).then(e=>{this.$confirm("修改成功,请重新登录","重新登录",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).finally(()=>{this.handleLogout()})}).catch(e=>{this.$message.error(e.message)})}}},ec={class:"dialog-footer"};function tc(e,t,n,r,a,o){const s=i.resolveComponent("el-input"),l=i.resolveComponent("el-form-item"),c=i.resolveComponent("el-form"),u=i.resolveComponent("el-button"),d=i.resolveComponent("el-dialog");return i.openBlock(),i.createBlock(d,{width:520,modelValue:a.visible,"onUpdate:modelValue":t[3]||(t[3]=f=>a.visible=f),title:"修改密码",onClose:o.handleCancel},{footer:i.withCtx(()=>[i.createElementVNode("div",ec,[i.createVNode(u,{onClick:o.handleCancel},{default:i.withCtx(()=>t[4]||(t[4]=[i.createTextVNode("取 消")])),_:1},8,["onClick"]),i.createVNode(u,{type:"primary",onClick:o.handleBeforeOk},{default:i.withCtx(()=>t[5]||(t[5]=[i.createTextVNode("确 定")])),_:1},8,["onClick"])])]),default:i.withCtx(()=>[i.createVNode(c,{model:a.formData,"label-width":"auto"},{default:i.withCtx(()=>[i.createVNode(l,{prop:"old_pwd",label:"原密码"},{default:i.withCtx(()=>[i.createVNode(s,{type:"password","show-password":"",modelValue:a.formData.old_pwd,"onUpdate:modelValue":t[0]||(t[0]=f=>a.formData.old_pwd=f)},null,8,["modelValue"])]),_:1}),i.createVNode(l,{prop:"new_pwd1",label:"新密码"},{default:i.withCtx(()=>[i.createVNode(s,{type:"password","show-password":"",modelValue:a.formData.new_pwd1,"onUpdate:modelValue":t[1]||(t[1]=f=>a.formData.new_pwd1=f)},null,8,["modelValue"])]),_:1}),i.createVNode(l,{prop:"new_pwd2",label:"确认密码"},{default:i.withCtx(()=>[i.createVNode(s,{type:"password","show-password":"",modelValue:a.formData.new_pwd2,"onUpdate:modelValue":t[2]||(t[2]=f=>a.formData.new_pwd2=f)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","onClose"])}const nc=Ee(Zl,[["render",tc]]),rc={name:"SwitchBusiness",props:{modelValue:{type:[Array],default:[]},reselectTitle:{type:[String],default:"退出选择"},reselectFunc:{type:[Function]},selectFunc:{type:[Function]}},watch:{modelValue(e){this.chainOriginalList=e,this.handleSearch()}},data(){return{chainKeyword:"",chainOriginalList:[],chainLastList:[]}},created(){this.chainOriginalList=this.modelValue,this.handleSearch()},methods:{handleSearch(e){this.chainLastList=this.chainListParse(this.chainOriginalList)},chainListParse(e){const t=e.filter(r=>{let a=this.chainKeyword.trim();return!a||r.business_name.toLowerCase().includes(a.toLowerCase())}).reduce((r,a)=>{const o=a.business_brand||"";return r[o]||(r[o]=[]),r[o].push(a),r},{}),n=[];for(const r in t)n.push({title:r,total:t[r].length||0,list:t[r]});return n.sort((r,a)=>r.title===""?-1:1),n},chainReselection(){this.$emit("reselectFunc")},chainSelection(e){this.$emit("selectFunc",e)}}},ac={class:"cloud-login-change-wrap"},oc={class:"cloud-login-change-box1"},sc={class:"cloud-login-change-search"},ic={class:"cloud-login-change-box2"},lc={class:"cloud-login-change-group-box"},cc={class:"cloud-login-change-group-title"},uc={class:"cloud-login-change-group-sublist"},fc=["onClick"],dc={class:"cloud-login-change-item-left"},_c={class:"cloud-login-change-item-left-icon"},mc=["src"],hc={class:"cloud-login-change-item-right"},gc={class:"cloud-login-change-item-right-label"},pc={class:"cloud-login-change-item-right-label2"},Ec={class:"cloud-login-change-item-more"};function Sc(e,t,n,r,a,o){const s=i.resolveComponent("el-input"),l=i.resolveComponent("el-button"),c=i.resolveComponent("cv-icons");return i.openBlock(),i.createElementBlock("div",ac,[i.createElementVNode("div",oc,[i.createElementVNode("div",{class:"cloud-login-change-reset",onClick:t[0]||(t[0]=(...u)=>o.chainReselection&&o.chainReselection(...u))},i.toDisplayString(n.reselectTitle),1),t[3]||(t[3]=i.createElementVNode("div",{class:"cloud-login-change-title"},"选择商户",-1)),t[4]||(t[4]=i.createElementVNode("div",{class:"cloud-login-change-desc"},[i.createElementVNode("p",null,"为规范平台操作、统一平台账号;以便后续提供更多的功能体验;"),i.createElementVNode("p",null,"后续商户人员(含管理员)登录,需进一步通过 短信 或 扫码 进行验证。")],-1)),i.createElementVNode("div",sc,[i.createVNode(s,{modelValue:a.chainKeyword,"onUpdate:modelValue":t[1]||(t[1]=u=>a.chainKeyword=u),size:"large",placeholder:"搜索商户名称",clearable:"",style:{"max-width":"500px"},onInput:o.handleSearch},null,8,["modelValue","onInput"]),i.createVNode(l,{size:"large",onClick:o.handleSearch},{default:i.withCtx(()=>t[2]||(t[2]=[i.createTextVNode("搜索")])),_:1},8,["onClick"])]),i.createElementVNode("div",ic,[i.createElementVNode("div",lc,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.chainLastList,(u,d)=>(i.openBlock(),i.createElementBlock("div",{class:"cloud-login-change-group-item",key:d},[i.createElementVNode("div",cc,i.toDisplayString(u.title||"无")+"("+i.toDisplayString(u.total)+")",1),i.createElementVNode("div",uc,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.list,(f,h)=>(i.openBlock(),i.createElementBlock("div",{class:"cloud-login-change-item-bao",key:h,onClick:E=>o.chainSelection(f)},[i.createElementVNode("div",dc,[i.createElementVNode("div",_c,[i.createElementVNode("img",{src:f.business_icon_cdn},null,8,mc)])]),i.createElementVNode("div",hc,[i.createElementVNode("div",gc,i.toDisplayString(f.business_name),1),i.createElementVNode("div",pc,"【"+i.toDisplayString(f.acc_role_type_str)+"】",1)]),i.createElementVNode("div",Ec,[i.createVNode(c,{type:"ElIconArrowRight"})])],8,fc))),128))])]))),128))])])])])}const qa=Ee(rc,[["render",Sc]]),bc={name:"SameFrame",components:{SidebarMenuBox:zl,SameNavTabs:Bl,SameRouteView:ja,HeaderSysSettDrawer:Dl,ChangePassword:nc,SwitchBusiness:qa},props:{},data(){return{frameHeadSysSettDia:!1,frameSidebarOpen:"off",breadcrumbPath:[],full_screen:!1,toData:{},chatUnreadTotal:0,emailUnreadTotal:0,chainAccountList:[],chainShowFlag:!1,changeShowFlag:!1}},computed:{headerInfoName(){let e=this.accountInfo||{},t=e.business_name||"",n=e.staff_nick||e.account_mobile_hide||e.account_nick;return t+" "+n}},watch:{"$route.path"(e){this.$route.meta.treeInfo&&(this.breadcrumbPath=this.$route.meta.treeInfo)}},created(){},mounted(){this.frameSidebarOpen=this.layoutSidebarState,Qn().$subscribe((t,n)=>{n.windowWidth<1061?this.frameSidebarOpen="off":this.frameSidebarOpen="on",ve().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen)}),window.onresize=()=>{(document.mozFullScreen||document.fullScreen||document.webkitIsFullScreen||document.webkitRequestFullScreen||document.mozRequestFullScreen||document.msFullscreenEnabled)===void 0&&(this.full_screen=!1)}},methods:{frameSwicthMenu(){this.frameSidebarOpen=this.frameSidebarOpen=="on"?"off":"on",ve().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen)},framePageRefresh(){this.jumpsReload()},frameFullScreen(){let e=document.documentElement;this.full_screen?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen(),this.full_screen=!this.full_screen},frameTopSysSettOpen(){this.frameHeadSysSettDia=!0},frameTopSysSettClose(e){e(),this.frameHeadSysSettDia=!1},frameHandleCommand(e){const t=me();switch(e){case"msg":this.$message.info("应用暂未开通,敬请期待");break;case"gongdan":this.$message.info("应用暂未开通,敬请期待");break;case"account_change":this.$request.setOptions({timeout:1e4}).flagGet("ORG_SYS_BASE_CHANGE",{}).then(n=>{this.chainShowFlag=!0,this.chainAccountList=n.data||[]});break;case"account_chgpwd":this.changeShowFlag=!0;break;case"clearCache":this.$confirm("你确定要清除缓存吗?","清除缓存",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{yl().then(n=>{window.location.reload()})}).catch(n=>{});break;case"logout":this.$confirm("你确定要登出系统吗?","退出登录",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$request.flagPost("BASE_PASSPORT_LOGOUT",{}).then(n=>{n.code==200&&this.$message({message:"注销成功",type:"success"})}).finally(()=>{t.SA_ACCOUNT_LOGOUT(),this.$router.push({path:"/login"})})});break;default:this.$message.info("应用暂未开通,敬请期待");break}},chainReselection(){this.chainShowFlag=!1},chainSelection(e){let t="";e.acc_role_type=="sy-org-admin"?t="OrgAdminPwdLogin":e.acc_role_type=="sy-org-staff"&&(t="OrgStaffPwdLogin"),this.$request.flagPost("ORG_SYS_BASE_CHANGE",{handleType:t,business_id:e.business_id||0}).then(async n=>{n.status==200&&(await me().SA_ACCOUNT_SIGNIN(n.data||{}),this.$message({type:"success",message:"登入成功...",duration:1e3}),location.reload())})}}},Nc={class:"cloud-layout__wrap"},vc={class:"cloud-header__wrap"},yc={class:"cloud-header__logo"},Ac={href:"/",title:"官网",class:"cloud-header__logo-a"},Tc=["src"],Cc={class:"cloud-header__logo-title"},Oc={class:"cloud-header__breadcrumb"},Ic={key:0,class:"chopt-num"},wc={key:0,class:"chopt-num"},Lc={class:"cloud-header__info"},Dc=["src"],kc={class:"chinfo-infoname"},Rc={class:"cloud-sidebar__wrap"},Pc={class:"cloud-pages__wrap"};function Fc(e,t,n,r,a,o){const s=i.resolveComponent("cv-icons"),l=i.resolveComponent("el-breadcrumb-item"),c=i.resolveComponent("el-breadcrumb"),u=i.resolveComponent("el-dropdown-item"),d=i.resolveComponent("el-dropdown-menu"),f=i.resolveComponent("el-dropdown"),h=i.resolveComponent("SidebarMenuBox"),E=i.resolveComponent("SameNavTabs"),y=i.resolveComponent("SameRouteView"),S=i.resolveComponent("HeaderSysSettDrawer"),w=i.resolveComponent("ChangePassword"),g=i.resolveComponent("SwitchBusiness");return i.openBlock(),i.createElementBlock("div",Nc,[i.createElementVNode("header",vc,[i.createElementVNode("div",yc,[i.createElementVNode("a",Ac,[i.createElementVNode("img",{class:"cloud-header__logo-img",src:e.openProductInfo.platinfo_logo,alt:""},null,8,Tc)]),i.createElementVNode("div",Cc,i.toDisplayString(e.openProductInfo.info_title),1)]),i.createElementVNode("div",{class:"cloud-header__opt",onClick:t[0]||(t[0]=(...p)=>o.frameSwicthMenu&&o.frameSwicthMenu(...p))},[a.frameSidebarOpen=="on"?(i.openBlock(),i.createBlock(s,{key:0,type:"ElIconFold",size:"20"})):i.createCommentVNode("",!0),a.frameSidebarOpen=="off"?(i.openBlock(),i.createBlock(s,{key:1,type:"ElIconExpand",size:"20"})):i.createCommentVNode("",!0)]),i.createElementVNode("div",{class:"cloud-header__opt",onClick:t[1]||(t[1]=(...p)=>o.framePageRefresh&&o.framePageRefresh(...p))},[i.createVNode(s,{type:"ElIconRefreshRight",size:"20"})]),i.createElementVNode("div",Oc,[i.createVNode(c,{separator:"/"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.breadcrumbPath,(p,T)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[T==a.breadcrumbPath.length-1||!p.path||p.path==""?(i.openBlock(),i.createBlock(l,{key:T,class:"no-redirect"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(p.title),1)]),_:2},1024)):(i.openBlock(),i.createBlock(l,{key:"b"+T,to:{path:p.path}},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(p.title),1)]),_:2},1032,["to"]))],64))),256))]),_:1})]),t[13]||(t[13]=i.createElementVNode("div",{class:"cloud-header__seat"},null,-1)),i.createElementVNode("div",{class:"cloud-header__opt chopt-relative",onClick:t[2]||(t[2]=p=>o.frameHandleCommand("msg"))},[i.createVNode(s,{type:"ElIconChatLineRound",size:"20"}),a.chatUnreadTotal>0?(i.openBlock(),i.createElementBlock("em",Ic,i.toDisplayString(a.chatUnreadTotal>99?"99+":a.chatUnreadTotal),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",{class:"cloud-header__opt chopt-relative",onClick:t[3]||(t[3]=p=>o.frameHandleCommand("gongdan"))},[i.createVNode(s,{type:"ElIconMessage",size:"20"}),a.emailUnreadTotal>0?(i.openBlock(),i.createElementBlock("em",wc,i.toDisplayString(a.emailUnreadTotal>99?"99+":a.emailUnreadTotal),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",Lc,[i.createVNode(f,{onCommand:o.frameHandleCommand,"popper-class":"cloud-header__info_dropdown"},{dropdown:i.withCtx(()=>[i.createVNode(d,null,{default:i.withCtx(()=>[i.createVNode(u,{command:"account_change"},{default:i.withCtx(()=>[i.createVNode(s,{type:"cvSvgPeopleSwitch",size:"15"}),t[9]||(t[9]=i.createTextVNode(" 切换账号 "))]),_:1}),i.createVNode(u,{command:"account_chgpwd"},{default:i.withCtx(()=>[i.createVNode(s,{type:"cvSvgBaseLockOff",size:"15"}),t[10]||(t[10]=i.createTextVNode(" 修改密码 "))]),_:1}),i.createVNode(u,{command:"clearCache",divided:""},{default:i.withCtx(()=>[i.createVNode(s,{type:"ElIconDelete",size:"15"}),t[11]||(t[11]=i.createTextVNode(" 清除缓存 "))]),_:1}),i.createVNode(u,{command:"logout"},{default:i.withCtx(()=>[i.createVNode(s,{type:"cvSvgArrowExportRight",size:"14"}),t[12]||(t[12]=i.createTextVNode(" 退出登录 "))]),_:1})]),_:1})]),default:i.withCtx(()=>[i.createElementVNode("span",null,[i.createElementVNode("img",{class:"chinfo-avatar",src:e.accountInfo.account_avatar_cdn,title:"头像"},null,8,Dc),i.createElementVNode("div",kc,i.toDisplayString(o.headerInfoName),1),i.createVNode(s,{type:"ElIconArrowDown"})])]),_:1},8,["onCommand"])]),i.createElementVNode("div",{title:"全屏",class:"cloud-header__opt",onClick:t[4]||(t[4]=(...p)=>o.frameFullScreen&&o.frameFullScreen(...p)),style:{"min-width":"50px"}},[a.full_screen?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(s,{key:0,type:"cvSvgArrowScreenUnfold",size:"20"})),a.full_screen?(i.openBlock(),i.createBlock(s,{key:1,type:"cvSvgArrowScreenFold",size:"20"})):i.createCommentVNode("",!0)]),i.createElementVNode("div",{title:"设置",class:"cloud-header__opt",onClick:t[5]||(t[5]=(...p)=>o.frameTopSysSettOpen&&o.frameTopSysSettOpen(...p)),style:{"min-width":"50px"}},[i.createVNode(s,{type:"cvSvgBaseSetting",size:"20"})])]),i.createElementVNode("section",Rc,[i.createVNode(h,{collapse:a.frameSidebarOpen=="off"},null,8,["collapse"])]),i.createElementVNode("section",Pc,[i.withDirectives(i.createVNode(E,null,null,512),[[i.vShow,e.layoutNavTabs=="on"]]),i.createVNode(y,{className:"cloud-pages__box"})]),i.createVNode(S,{modelValue:a.frameHeadSysSettDia,"onUpdate:modelValue":t[6]||(t[6]=p=>a.frameHeadSysSettDia=p)},null,8,["modelValue"]),i.createVNode(w,{modelValue:a.changeShowFlag,"onUpdate:modelValue":t[7]||(t[7]=p=>a.changeShowFlag=p)},null,8,["modelValue"]),a.chainShowFlag?(i.openBlock(),i.createBlock(g,{key:0,modelValue:a.chainAccountList,"onUpdate:modelValue":t[8]||(t[8]=p=>a.chainAccountList=p),reselectTitle:"取消切换",onReselectFunc:o.chainReselection,onSelectFunc:o.chainSelection,style:{background:"#fff","z-index":"1005"}},null,8,["modelValue","onReselectFunc","onSelectFunc"])):i.createCommentVNode("",!0)])}const Mc=Ee(bc,[["render",Fc]]),Vc={data(){return{watemarkText:"shiyun"}},computed:{watemarkConf(){let t=me().accountInfo||null,n=this.openProductInfo.platinfo_brand||"";return t&&t.account_mobile_hide&&(n=t.business_name+t.account_mobile_hide),{content:n,zIndex:-1,rotate:-22,gap:[100,100],offset:[],font:{fontSize:16,color:this.fontColor}}},fontColor(){return this.themesName=="dark"?"rgba(255, 255, 255, .15)":"rgba(0, 0, 0, .15)"}}};function Uc(e,t,n,r,a,o){const s=i.resolveComponent("el-watermark");return i.openBlock(),i.createBlock(s,i.mergeProps(o.watemarkConf,{style:{height:"100%"}}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},16)}const Bc=Ee(Vc,[["render",Uc]]);(function(){if(typeof EventTarget<"u"){let e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,n,r){this.func=e,typeof r!="boolean"&&(r=r||{},r.passive=!1),this.func(t,n,r)}}})();const xc=60*60*24*7;class Gc{constructor(t){this.prefix=t.prefix||"",this.expired=t.expired||xc,this.crypto=!!t.crypto,this.merge=!!t.merge,this.keyExpired={session:{},local:{}},this.keyGroup={session:[],local:[]}}_checkExpiredKey(t,n){return!!(t&&(t=="session"||t=="local")&&this.keyExpired[t][n]>=Date.now())}_encodeData(){}_decodeData(){}_settKey(t,n,r){t&&(t=="session"||t=="local")&&(this.keyExpired[t][n]=r||this.expired,this.keyGroup[t].push(n))}_deleteKey(t,n){t&&(t=="session"||t=="local")&&(n?(delete this.keyExpired[t][n],this.keyGroup[t]=this.keyGroup[t].filter(r=>r!==n)):(this.keyExpired[t]={},this.keyGroup[t]=[]))}sessionSet(t,n,r){let a=JSON.stringify(n);sessionStorage.setItem(t,a),this._settKey("session",t,r)}sessionGet(t){let n=sessionStorage.getItem(t);try{return JSON.parse(n)}catch{return n}}sessionDel(t){if(!window.sessionStorage)return!1;sessionStorage.removeItem(t),this._deleteKey("session",t)}sessionClear(){if(!window.sessionStorage)return!1;sessionStorage.clear();for(let t in this.keyGroup.session)sessionStorage.removeItem(t);this._deleteKey("session")}localSet(t,n,r){if(!window.localStorage)return;(n===""||n===null||n===void 0)&&(n=null);const a=typeof n=="string"?n:JSON.stringify(n);window.localStorage.setItem(t,a),this._settKey("local",t,r)}localGet(t){if(!window.localStorage)return;this._checkExpiredKey("local",t);let n=window.localStorage.getItem(t);try{Object.keys(n).length==0||JSON.stringify(n)=="{}"?n="":n=JSON.parse(n)}catch{}return n}localDel(t){if(!window.localStorage)return!1;window.localStorage.removeItem(t),this._deleteKey("local",t)}localClear(){if(!window.localStorage)return!1;window.localStorage.clear();for(let t in this.keyGroup.local)window.localStorage.removeItem(t);this._deleteKey("local")}}function $c(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var et=$c();function Wc(){try{if(!et||!et.open)return!1;var e=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!e||t)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function Jn(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(o){if(o.name!=="TypeError")throw o;for(var n=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,r=new n,a=0;a<e.length;a+=1)r.append(e[a]);return r.getBlob(t.type)}}typeof Promise>"u"&&require("lie/polyfill");const R=Promise;function W(e,t){t&&e.then(function(n){t(null,n)},function(n){t(n)})}function qe(e,t,n){typeof t=="function"&&e.then(t),typeof n=="function"&&e.catch(n)}function ye(e){return typeof e!="string"&&(e=String(e)),e}function zn(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}const Dn="local-forage-detect-blob-support";let Dt;const ue={},Yc=Object.prototype.toString,yt="readonly",Wt="readwrite";function Hc(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),a=0;a<t;a++)r[a]=e.charCodeAt(a);return n}function Kc(e){return new R(function(t){var n=e.transaction(Dn,Wt),r=Jn([""]);n.objectStore(Dn).put(r,"key"),n.onabort=function(a){a.preventDefault(),a.stopPropagation(),t(!1)},n.oncomplete=function(){var a=navigator.userAgent.match(/Chrome\/(\d+)/),o=navigator.userAgent.match(/Edge\//);t(o||!a||parseInt(a[1],10)>=43)}}).catch(function(){return!1})}function jc(e){return typeof Dt=="boolean"?R.resolve(Dt):Kc(e).then(function(t){return Dt=t,Dt})}function Mt(e){var t=ue[e.name],n={};n.promise=new R(function(r,a){n.resolve=r,n.reject=a}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function kn(e){var t=ue[e.name],n=t.deferredOperations.pop();if(n)return n.resolve(),n.promise}function Rn(e,t){var n=ue[e.name],r=n.deferredOperations.pop();if(r)return r.reject(t),r.promise}function Xa(e,t){return new R(function(n,r){if(ue[e.name]=ue[e.name]||Za(),e.db)if(t)Mt(e),e.db.close();else return n(e.db);var a=[e.name];t&&a.push(e.version);var o=et.open.apply(et,a);t&&(o.onupgradeneeded=function(s){var l=o.result;try{l.createObjectStore(e.storeName),s.oldVersion<=1&&l.createObjectStore(Dn)}catch(c){if(c.name!=="ConstraintError")throw c}}),o.onerror=function(s){s.preventDefault(),r(o.error)},o.onsuccess=function(){var s=o.result;s.onversionchange=function(l){l.target.close()},n(s),kn(e)}})}function Zn(e){return Xa(e,!1)}function er(e){return Xa(e,!0)}function Qa(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,a=e.version>e.db.version;if(r&&(e.version,e.version=e.db.version),a||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function qc(e){return new R(function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(a){var o=btoa(a.target.result||"");t({__local_forage_encoded_blob:!0,data:o,type:e.type})},r.readAsBinaryString(e)})}function Ja(e){var t=Hc(atob(e.data));return Jn([t],{type:e.type})}function za(e){return e&&e.__local_forage_encoded_blob}function Xc(e){var t=this,n=t._initReady().then(function(){var r=ue[t._dbInfo.name];if(r&&r.dbReady)return r.dbReady});return qe(n,e,e),n}function Qc(e){Mt(e);for(var t=ue[e.name],n=t.forages,r=0;r<n.length;r++){const a=n[r];a._dbInfo.db&&(a._dbInfo.db.close(),a._dbInfo.db=null)}return e.db=null,Zn(e).then(a=>(e.db=a,Qa(e)?er(e):a)).then(a=>{e.db=t.db=a;for(var o=0;o<n.length;o++)n[o]._dbInfo.db=a}).catch(a=>{throw Rn(e,a),a})}function Ae(e,t,n,r){r===void 0&&(r=1);try{var a=e.db.transaction(e.storeName,t);n(null,a)}catch(o){if(r>0&&(!e.db||o.name==="InvalidStateError"||o.name==="NotFoundError"))return R.resolve().then(()=>{if(!e.db||o.name==="NotFoundError"&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),er(e)}).then(()=>Qc(e).then(function(){Ae(e,t,n,r-1)})).catch(n);n(o)}}function Za(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Jc(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var a=ue[n.name];a||(a=Za(),ue[n.name]=a),a.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=Xc);var o=[];function s(){return R.resolve()}for(var l=0;l<a.forages.length;l++){var c=a.forages[l];c!==t&&o.push(c._initReady().catch(s))}var u=a.forages.slice(0);return R.all(o).then(function(){return n.db=a.db,Zn(n)}).then(function(d){return n.db=d,Qa(n,t._defaultConfig.version)?er(n):d}).then(function(d){n.db=a.db=d,t._dbInfo=n;for(var f=0;f<u.length;f++){var h=u[f];h!==t&&(h._dbInfo.db=n.db,h._dbInfo.version=n.version)}})}function zc(e,t){var n=this;e=ye(e);var r=new R(function(a,o){n.ready().then(function(){Ae(n._dbInfo,yt,function(s,l){if(s)return o(s);try{var c=l.objectStore(n._dbInfo.storeName),u=c.get(e);u.onsuccess=function(){var d=u.result;d===void 0&&(d=null),za(d)&&(d=Ja(d)),a(d)},u.onerror=function(){o(u.error)}}catch(d){o(d)}})}).catch(o)});return W(r,t),r}function Zc(e,t){var n=this,r=new R(function(a,o){n.ready().then(function(){Ae(n._dbInfo,yt,function(s,l){if(s)return o(s);try{var c=l.objectStore(n._dbInfo.storeName),u=c.openCursor(),d=1;u.onsuccess=function(){var f=u.result;if(f){var h=f.value;za(h)&&(h=Ja(h));var E=e(h,f.key,d++);E!==void 0?a(E):f.continue()}else a()},u.onerror=function(){o(u.error)}}catch(f){o(f)}})}).catch(o)});return W(r,t),r}function eu(e,t,n){var r=this;e=ye(e);var a=new R(function(o,s){var l;r.ready().then(function(){return l=r._dbInfo,Yc.call(t)==="[object Blob]"?jc(l.db).then(function(c){return c?t:qc(t)}):t}).then(function(c){Ae(r._dbInfo,Wt,function(u,d){if(u)return s(u);try{var f=d.objectStore(r._dbInfo.storeName);c===null&&(c=void 0);var h=f.put(c,e);d.oncomplete=function(){c===void 0&&(c=null),o(c)},d.onabort=d.onerror=function(){var E=h.error?h.error:h.transaction.error;s(E)}}catch(E){s(E)}})}).catch(s)});return W(a,n),a}function tu(e,t){var n=this;e=ye(e);var r=new R(function(a,o){n.ready().then(function(){Ae(n._dbInfo,Wt,function(s,l){if(s)return o(s);try{var c=l.objectStore(n._dbInfo.storeName),u=c.delete(e);l.oncomplete=function(){a()},l.onerror=function(){o(u.error)},l.onabort=function(){var d=u.error?u.error:u.transaction.error;o(d)}}catch(d){o(d)}})}).catch(o)});return W(r,t),r}function nu(e){var t=this,n=new R(function(r,a){t.ready().then(function(){Ae(t._dbInfo,Wt,function(o,s){if(o)return a(o);try{var l=s.objectStore(t._dbInfo.storeName),c=l.clear();s.oncomplete=function(){r()},s.onabort=s.onerror=function(){var u=c.error?c.error:c.transaction.error;a(u)}}catch(u){a(u)}})}).catch(a)});return W(n,e),n}function ru(e){var t=this,n=new R(function(r,a){t.ready().then(function(){Ae(t._dbInfo,yt,function(o,s){if(o)return a(o);try{var l=s.objectStore(t._dbInfo.storeName),c=l.count();c.onsuccess=function(){r(c.result)},c.onerror=function(){a(c.error)}}catch(u){a(u)}})}).catch(a)});return W(n,e),n}function au(e,t){var n=this,r=new R(function(a,o){if(e<0){a(null);return}n.ready().then(function(){Ae(n._dbInfo,yt,function(s,l){if(s)return o(s);try{var c=l.objectStore(n._dbInfo.storeName),u=!1,d=c.openKeyCursor();d.onsuccess=function(){var f=d.result;if(!f){a(null);return}e===0||u?a(f.key):(u=!0,f.advance(e))},d.onerror=function(){o(d.error)}}catch(f){o(f)}})}).catch(o)});return W(r,t),r}function ou(e){var t=this,n=new R(function(r,a){t.ready().then(function(){Ae(t._dbInfo,yt,function(o,s){if(o)return a(o);try{var l=s.objectStore(t._dbInfo.storeName),c=l.openKeyCursor(),u=[];c.onsuccess=function(){var d=c.result;if(!d){r(u);return}u.push(d.key),d.continue()},c.onerror=function(){a(c.error)}}catch(d){a(d)}})}).catch(a)});return W(n,e),n}function su(e,t){t=zn.apply(this,arguments);var n=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r=this,a;if(!e.name)a=R.reject("Invalid arguments");else{const s=e.name===n.name&&r._dbInfo.db?R.resolve(r._dbInfo.db):Zn(e).then(l=>{const c=ue[e.name],u=c.forages;c.db=l;for(var d=0;d<u.length;d++)u[d]._dbInfo.db=l;return l});e.storeName?a=s.then(l=>{if(!l.objectStoreNames.contains(e.storeName))return;const c=l.version+1;Mt(e);const u=ue[e.name],d=u.forages;l.close();for(let h=0;h<d.length;h++){const E=d[h];E._dbInfo.db=null,E._dbInfo.version=c}return new R((h,E)=>{const y=et.open(e.name,c);y.onerror=S=>{y.result.close(),E(S)},y.onupgradeneeded=()=>{var S=y.result;S.deleteObjectStore(e.storeName)},y.onsuccess=()=>{const S=y.result;S.close(),h(S)}}).then(h=>{u.db=h;for(let E=0;E<d.length;E++){const y=d[E];y._dbInfo.db=h,kn(y._dbInfo)}}).catch(h=>{throw(Rn(e,h)||R.resolve()).catch(()=>{}),h})}):a=s.then(l=>{Mt(e);const c=ue[e.name],u=c.forages;l.close();for(var d=0;d<u.length;d++){const h=u[d];h._dbInfo.db=null}return new R((h,E)=>{var y=et.deleteDatabase(e.name);y.onerror=()=>{const S=y.result;S&&S.close(),E(y.error)},y.onblocked=()=>{},y.onsuccess=()=>{const S=y.result;S&&S.close(),h(S)}}).then(h=>{c.db=h;for(var E=0;E<u.length;E++){const y=u[E];kn(y._dbInfo)}}).catch(h=>{throw(Rn(e,h)||R.resolve()).catch(()=>{}),h})})}return W(a,t),a}var iu={_driver:"asyncStorage",_initStorage:Jc,_support:Wc(),iterate:Zc,getItem:zc,setItem:eu,removeItem:tu,clear:nu,length:ru,key:au,keys:ou,dropInstance:su};function lu(){return typeof openDatabase=="function"}var Oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cu="~~local_forage_type~",zr=/^~~local_forage_type~([^~]+)~/,Vt="__lfsc__:",Pn=Vt.length,tr="arbf",Fn="blob",eo="si08",to="ui08",no="uic8",ro="si16",ao="si32",oo="ur16",so="ui32",io="fl32",lo="fl64",Zr=Pn+tr.length,ea=Object.prototype.toString;function co(e){var t=e.length*.75,n=e.length,r,a=0,o,s,l,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var u=new ArrayBuffer(t),d=new Uint8Array(u);for(r=0;r<n;r+=4)o=Oe.indexOf(e[r]),s=Oe.indexOf(e[r+1]),l=Oe.indexOf(e[r+2]),c=Oe.indexOf(e[r+3]),d[a++]=o<<2|s>>4,d[a++]=(s&15)<<4|l>>2,d[a++]=(l&3)<<6|c&63;return u}function Mn(e){var t=new Uint8Array(e),n="",r;for(r=0;r<t.length;r+=3)n+=Oe[t[r]>>2],n+=Oe[(t[r]&3)<<4|t[r+1]>>4],n+=Oe[(t[r+1]&15)<<2|t[r+2]>>6],n+=Oe[t[r+2]&63];return t.length%3===2?n=n.substring(0,n.length-1)+"=":t.length%3===1&&(n=n.substring(0,n.length-2)+"=="),n}function uu(e,t){var n="";if(e&&(n=ea.call(e)),e&&(n==="[object ArrayBuffer]"||e.buffer&&ea.call(e.buffer)==="[object ArrayBuffer]")){var r,a=Vt;e instanceof ArrayBuffer?(r=e,a+=tr):(r=e.buffer,n==="[object Int8Array]"?a+=eo:n==="[object Uint8Array]"?a+=to:n==="[object Uint8ClampedArray]"?a+=no:n==="[object Int16Array]"?a+=ro:n==="[object Uint16Array]"?a+=oo:n==="[object Int32Array]"?a+=ao:n==="[object Uint32Array]"?a+=so:n==="[object Float32Array]"?a+=io:n==="[object Float64Array]"?a+=lo:t(new Error("Failed to get type for BinaryArray"))),t(a+Mn(r))}else if(n==="[object Blob]"){var o=new FileReader;o.onload=function(){var s=cu+e.type+"~"+Mn(this.result);t(Vt+Fn+s)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(s){t(null,s)}}function fu(e){if(e.substring(0,Pn)!==Vt)return JSON.parse(e);var t=e.substring(Zr),n=e.substring(Pn,Zr),r;if(n===Fn&&zr.test(t)){var a=t.match(zr);r=a[1],t=t.substring(a[0].length)}var o=co(t);switch(n){case tr:return o;case Fn:return Jn([o],{type:r});case eo:return new Int8Array(o);case to:return new Uint8Array(o);case no:return new Uint8ClampedArray(o);case ro:return new Int16Array(o);case oo:return new Uint16Array(o);case ao:return new Int32Array(o);case so:return new Uint32Array(o);case io:return new Float32Array(o);case lo:return new Float64Array(o);default:throw new Error("Unkown type: "+n)}}var nr={serialize:uu,deserialize:fu,stringToBuffer:co,bufferToString:Mn};function uo(e,t,n,r){e.executeSql(`CREATE TABLE IF NOT EXISTS ${t.storeName} (id INTEGER PRIMARY KEY, key unique, value)`,[],n,r)}function du(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=typeof e[r]!="string"?e[r].toString():e[r];var a=new R(function(o,s){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(l){return s(l)}n.db.transaction(function(l){uo(l,n,function(){t._dbInfo=n,o()},function(c,u){s(u)})},s)});return n.serializer=nr,a}function Le(e,t,n,r,a,o){e.executeSql(n,r,a,function(s,l){l.code===l.SYNTAX_ERR?s.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(c,u){u.rows.length?o(c,l):uo(c,t,function(){c.executeSql(n,r,a,o)},o)},o):o(s,l)},o)}function _u(e,t){var n=this;e=ye(e);var r=new R(function(a,o){n.ready().then(function(){var s=n._dbInfo;s.db.transaction(function(l){Le(l,s,`SELECT * FROM ${s.storeName} WHERE key = ? LIMIT 1`,[e],function(c,u){var d=u.rows.length?u.rows.item(0).value:null;d&&(d=s.serializer.deserialize(d)),a(d)},function(c,u){o(u)})})}).catch(o)});return W(r,t),r}function mu(e,t){var n=this,r=new R(function(a,o){n.ready().then(function(){var s=n._dbInfo;s.db.transaction(function(l){Le(l,s,`SELECT * FROM ${s.storeName}`,[],function(c,u){for(var d=u.rows,f=d.length,h=0;h<f;h++){var E=d.item(h),y=E.value;if(y&&(y=s.serializer.deserialize(y)),y=e(y,E.key,h+1),y!==void 0){a(y);return}}a()},function(c,u){o(u)})})}).catch(o)});return W(r,t),r}function fo(e,t,n,r){var a=this;e=ye(e);var o=new R(function(s,l){a.ready().then(function(){t===void 0&&(t=null);var c=t,u=a._dbInfo;u.serializer.serialize(t,function(d,f){f?l(f):u.db.transaction(function(h){Le(h,u,`INSERT OR REPLACE INTO ${u.storeName} (key, value) VALUES (?, ?)`,[e,d],function(){s(c)},function(E,y){l(y)})},function(h){if(h.code===h.QUOTA_ERR){if(r>0){s(fo.apply(a,[e,c,n,r-1]));return}l(h)}})})}).catch(l)});return W(o,n),o}function hu(e,t,n){return fo.apply(this,[e,t,n,1])}function gu(e,t){var n=this;e=ye(e);var r=new R(function(a,o){n.ready().then(function(){var s=n._dbInfo;s.db.transaction(function(l){Le(l,s,`DELETE FROM ${s.storeName} WHERE key = ?`,[e],function(){a()},function(c,u){o(u)})})}).catch(o)});return W(r,t),r}function pu(e){var t=this,n=new R(function(r,a){t.ready().then(function(){var o=t._dbInfo;o.db.transaction(function(s){Le(s,o,`DELETE FROM ${o.storeName}`,[],function(){r()},function(l,c){a(c)})})}).catch(a)});return W(n,e),n}function Eu(e){var t=this,n=new R(function(r,a){t.ready().then(function(){var o=t._dbInfo;o.db.transaction(function(s){Le(s,o,`SELECT COUNT(key) as c FROM ${o.storeName}`,[],function(l,c){var u=c.rows.item(0).c;r(u)},function(l,c){a(c)})})}).catch(a)});return W(n,e),n}function Su(e,t){var n=this,r=new R(function(a,o){n.ready().then(function(){var s=n._dbInfo;s.db.transaction(function(l){Le(l,s,`SELECT key FROM ${s.storeName} WHERE id = ? LIMIT 1`,[e+1],function(c,u){var d=u.rows.length?u.rows.item(0).key:null;a(d)},function(c,u){o(u)})})}).catch(o)});return W(r,t),r}function bu(e){var t=this,n=new R(function(r,a){t.ready().then(function(){var o=t._dbInfo;o.db.transaction(function(s){Le(s,o,`SELECT key FROM ${o.storeName}`,[],function(l,c){for(var u=[],d=0;d<c.rows.length;d++)u.push(c.rows.item(d).key);r(u)},function(l,c){a(c)})})}).catch(a)});return W(n,e),n}function Nu(e){return new R(function(t,n){e.transaction(function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(a,o){for(var s=[],l=0;l<o.rows.length;l++)s.push(o.rows.item(l).name);t({db:e,storeNames:s})},function(a,o){n(o)})},function(r){n(r)})})}function vu(e,t){t=zn.apply(this,arguments);var n=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r=this,a;return e.name?a=new R(function(o){var s;e.name===n.name?s=r._dbInfo.db:s=openDatabase(e.name,"","",0),e.storeName?o({db:s,storeNames:[e.storeName]}):o(Nu(s))}).then(function(o){return new R(function(s,l){o.db.transaction(function(c){function u(E){return new R(function(y,S){c.executeSql(`DROP TABLE IF EXISTS ${E}`,[],function(){y()},function(w,g){S(g)})})}for(var d=[],f=0,h=o.storeNames.length;f<h;f++)d.push(u(o.storeNames[f]));R.all(d).then(function(){s()}).catch(function(E){l(E)})},function(c){l(c)})})}):a=R.reject("Invalid arguments"),W(a,t),a}var yu={_driver:"webSQLStorage",_initStorage:du,_support:lu(),iterate:mu,getItem:_u,setItem:hu,removeItem:gu,clear:pu,length:Eu,key:Su,keys:bu,dropInstance:vu};function Au(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function _o(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function Tu(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch{return!0}}function Cu(){return!Tu()||localStorage.length>0}function Ou(e){var t=this,n={};if(e)for(var r in e)n[r]=e[r];return n.keyPrefix=_o(e,t._defaultConfig),Cu()?(t._dbInfo=n,n.serializer=nr,R.resolve()):R.reject()}function Iu(e){var t=this,n=t.ready().then(function(){for(var r=t._dbInfo.keyPrefix,a=localStorage.length-1;a>=0;a--){var o=localStorage.key(a);o.indexOf(r)===0&&localStorage.removeItem(o)}});return W(n,e),n}function wu(e,t){var n=this;e=ye(e);var r=n.ready().then(function(){var a=n._dbInfo,o=localStorage.getItem(a.keyPrefix+e);return o&&(o=a.serializer.deserialize(o)),o});return W(r,t),r}function Lu(e,t){var n=this,r=n.ready().then(function(){for(var a=n._dbInfo,o=a.keyPrefix,s=o.length,l=localStorage.length,c=1,u=0;u<l;u++){var d=localStorage.key(u);if(d.indexOf(o)===0){var f=localStorage.getItem(d);if(f&&(f=a.serializer.deserialize(f)),f=e(f,d.substring(s),c++),f!==void 0)return f}}});return W(r,t),r}function Du(e,t){var n=this,r=n.ready().then(function(){var a=n._dbInfo,o;try{o=localStorage.key(e)}catch{o=null}return o&&(o=o.substring(a.keyPrefix.length)),o});return W(r,t),r}function ku(e){var t=this,n=t.ready().then(function(){for(var r=t._dbInfo,a=localStorage.length,o=[],s=0;s<a;s++){var l=localStorage.key(s);l.indexOf(r.keyPrefix)===0&&o.push(l.substring(r.keyPrefix.length))}return o});return W(n,e),n}function Ru(e){var t=this,n=t.keys().then(function(r){return r.length});return W(n,e),n}function Pu(e,t){var n=this;e=ye(e);var r=n.ready().then(function(){var a=n._dbInfo;localStorage.removeItem(a.keyPrefix+e)});return W(r,t),r}function Fu(e,t,n){var r=this;e=ye(e);var a=r.ready().then(function(){t===void 0&&(t=null);var o=t;return new R(function(s,l){var c=r._dbInfo;c.serializer.serialize(t,function(u,d){if(d)l(d);else try{localStorage.setItem(c.keyPrefix+e,u),s(o)}catch(f){(f.name==="QuotaExceededError"||f.name==="NS_ERROR_DOM_QUOTA_REACHED")&&l(f),l(f)}})})});return W(a,n),a}function Mu(e,t){if(t=zn.apply(this,arguments),e=typeof e!="function"&&e||{},!e.name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r=this,a;return e.name?a=new R(function(o){e.storeName?o(_o(e,r._defaultConfig)):o(`${e.name}/`)}).then(function(o){for(var s=localStorage.length-1;s>=0;s--){var l=localStorage.key(s);l.indexOf(o)===0&&localStorage.removeItem(l)}}):a=R.reject("Invalid arguments"),W(a,t),a}var Vu={_driver:"localStorageWrapper",_initStorage:Ou,_support:Au(),iterate:Lu,getItem:wu,setItem:Fu,removeItem:Pu,clear:Iu,length:Ru,key:Du,keys:ku,dropInstance:Mu};const Uu=(e,t)=>e===t||typeof e=="number"&&typeof t=="number"&&isNaN(e)&&isNaN(t),Bu=(e,t)=>{const n=e.length;let r=0;for(;r<n;){if(Uu(e[r],t))return!0;r++}return!1},mo=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},ft={},ta={},Xe={INDEXEDDB:iu,WEBSQL:yu,LOCALSTORAGE:Vu},xu=[Xe.INDEXEDDB._driver,Xe.WEBSQL._driver,Xe.LOCALSTORAGE._driver],Rt=["dropInstance"],gn=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Rt),Gu={description:"",driver:xu.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function $u(e,t){e[t]=function(){const n=arguments;return e.ready().then(function(){return e[t].apply(e,n)})}}function pn(){for(let e=1;e<arguments.length;e++){const t=arguments[e];if(t)for(let n in t)t.hasOwnProperty(n)&&(mo(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}class rr{constructor(t){for(let n in Xe)if(Xe.hasOwnProperty(n)){const r=Xe[n],a=r._driver;this[n]=a,ft[a]||this.defineDriver(r)}this._defaultConfig=pn({},Gu),this._config=pn({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(()=>{})}config(t){if(typeof t=="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(let n in t){if(n==="storeName"&&(t[n]=t[n].replace(/\W/g,"_")),n==="version"&&typeof t[n]!="number")return new Error("Database version must be a number.");this._config[n]=t[n]}return"driver"in t&&t.driver?this.setDriver(this._config.driver):!0}else return typeof t=="string"?this._config[t]:this._config}defineDriver(t,n,r){const a=new R(function(o,s){try{const l=t._driver,c=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!t._driver){s(c);return}const u=gn.concat("_initStorage");for(let h=0,E=u.length;h<E;h++){const y=u[h];if((!Bu(Rt,y)||t[y])&&typeof t[y]!="function"){s(c);return}}(function(){const h=function(E){return function(){const y=new Error(`Method ${E} is not implemented by the current driver`),S=R.reject(y);return W(S,arguments[arguments.length-1]),S}};for(let E=0,y=Rt.length;E<y;E++){const S=Rt[E];t[S]||(t[S]=h(S))}})();const f=function(h){ft[l],ft[l]=t,ta[l]=h,o()};"_support"in t?t._support&&typeof t._support=="function"?t._support().then(f,s):f(!!t._support):f(!0)}catch(l){s(l)}});return qe(a,n,r),a}driver(){return this._driver||null}getDriver(t,n,r){const a=ft[t]?R.resolve(ft[t]):R.reject(new Error("Driver not found."));return qe(a,n,r),a}getSerializer(t){const n=R.resolve(nr);return qe(n,t),n}ready(t){const n=this,r=n._driverSet.then(()=>(n._ready===null&&(n._ready=n._initDriver()),n._ready));return qe(r,t,t),r}setDriver(t,n,r){const a=this;mo(t)||(t=[t]);const o=this._getSupportedDrivers(t);function s(){a._config.driver=a.driver()}function l(d){return a._extend(d),s(),a._ready=a._initStorage(a._config),a._ready}function c(d){return function(){let f=0;function h(){for(;f<d.length;){let y=d[f];return f++,a._dbInfo=null,a._ready=null,a.getDriver(y).then(l).catch(h)}s();const E=new Error("No available storage method found.");return a._driverSet=R.reject(E),a._driverSet}return h()}}const u=this._driverSet!==null?this._driverSet.catch(()=>R.resolve()):R.resolve();return this._driverSet=u.then(()=>{const d=o[0];return a._dbInfo=null,a._ready=null,a.getDriver(d).then(f=>{a._driver=f._driver,s(),a._wrapLibraryMethodsWithReady(),a._initDriver=c(o)})}).catch(()=>{s();const d=new Error("No available storage method found.");return a._driverSet=R.reject(d),a._driverSet}),qe(this._driverSet,n,r),this._driverSet}supports(t){return!!ta[t]}_extend(t){pn(this,t)}_getSupportedDrivers(t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];this.supports(o)&&n.push(o)}return n}_wrapLibraryMethodsWithReady(){for(let t=0,n=gn.length;t<n;t++)$u(this,gn[t])}createInstance(t){return new rr(t)}}const Pe=new rr;class Wu{constructor(t){this.db_name=t.db_name||"cvjs",Pe.config({name:this.db_name,storeName:"common"}),this.keyExpired={},this.keyGroup=[],this.__open_log=!1,this.__timer={}}async idbTest(){try{cvUtils.isDevice_ios()&&await Pe.setItem("__test__",$A.Time()),this.__open_log}catch(t){this.__open_log?ElMessageBox.alert(t.message,"温馨提示",{confirmButtonText:"OK"}).then(()=>{$A.reloadUrl()}):$A.reloadUrl()}}idbSave(t,n,r=100){typeof this.__timer[t]<"u"&&(clearTimeout(this.__timer[t]),delete this.__timer[t]),this.__timer[t]=setTimeout(async a=>{let o=JSON.parse(JSON.stringify(n));await Pe.setItem(t,o)},r)}idbGetItem(t){return Pe.getItem(t)}idbSetItem(t,n){let r="";return n&&n!="undefined"&&(r=JSON.parse(JSON.stringify(n))),Pe.setItem(t,r)}idbDelItem(t){Pe.removeItem(t).then(n=>{})}idbClear(){return Pe.clear()}async idbGetString(t,n=""){const r=await this.idbGetItem(t);return typeof r=="string"||typeof r=="number"?r:n}async idbGetInt(t,n=0){const r=await this.idbGetItem(t);return typeof r=="number"?r:n}async idbGetBoolean(t,n=!1){const r=await this.idbGetItem(t);return typeof r=="boolean"?r:n}async idbGetArray(t,n=[]){const r=await this.idbGetItem(t);return cvUtils.isTypeArray(r)?r:n}async idbGetJson(t,n={}){const r=await this.idbGetItem(t);return cvUtils.isTypeJson(r)?r:n}}class Yu{constructor(t){this.keyExpired={},this.keyGroup=[],this.__open_log=!1,this.__timer={}}setSessionStorage(t,n){return this.__operationSessionStorage(t,n)}getSessionStorageValue(t){return this.__operationSessionStorage(t)}sessGetString(t,n=""){let r=this.__operationSessionStorage(t);return typeof r=="string"||typeof r=="number"?r:n}getSessionStorageInt(t,n=0){let r=this.__operationSessionStorage(t);return typeof r=="number"?r:n}__operationSessionStorage(t,n){if(!t)return;let r="__state__";if(t.substring(0,5)==="cache"&&(r="__state:"+t+"__"),typeof n>"u")return this.__loadFromlSession(t,"",r);this.__savaToSession(t,n,r)}__savaToSession(t,n,r){try{typeof r>"u"&&(r="__seller__");let a=window.sessionStorage.getItem(r);a?a=JSON.parse(a):a={},a[t]=n,window.sessionStorage.setItem(r,JSON.stringify(a))}catch{}}__loadFromlSession(t,n,r){try{typeof r>"u"&&(r="__seller__");let a=window.sessionStorage.getItem(r);return!a||(a=JSON.parse(a),!a||typeof a[t]>"u")?n:a[t]}catch{return n}}}const D=new Gc({prefix:""}),Hu=new Wu({db_name:"ShiyunConsole"});window.gbIdbObj=Hu;const Ku=new Yu({});window.gbSessObj=Ku;function ju(e,t,n=!1){return n?!!t.find(r=>r&&r.indexOf("*")&&new RegExp("^"+r.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*")+"$","g").test(e)?!0:r==e):t.includes(e)}const na={400:"请求错误",400:"无效请求",401:"未经授权",403:"拒绝访问",404:"请求出错",408:"请求超时",422:"请求参数错误",500:"服务器错误",501:"服务未实现",502:"网络错误",503:"服务不可用",504:"网络超时",505:"HTTP版本不受支持",10001:"未登录",10002:"token过期",10009:"退出登录"},ra={401:"没有权限,请重新登录"};class Yt{constructor(t={}){this.flagMap=t.flagMap||{},this.flagAuth=t.flagAuth||{},this.flagFunc=t.flagFunc,this.baseURL=t.baseURL||"",this.requests=Object.assign({},t.requests||{}),this.headers=Object.assign({},{},t.headers||{}),this.encryptURL=t.encryptURL||[],this.encryptFlag=!1,this.canshuOpt={},this.retries=3,this.debugState=t.debug||!1,this.requestHandle=null,this.creSett=Object.assign({},{timeout:t.timeout||5e3,retry:2},{}),this._initReqHandle()}debugLog(){this.debugState}_initReqHandle(){this.requestHandle=So.create({timeout:1e4,retry:2,...this.creSett,baseURL:this.baseURL,headers:{...this.headers},requests:{...this.requests}}),this.requestHandle.defaults.retry=2,this.requestHandle.defaults.retryDelay=1e3,this.requestHandle.interceptors.request.use(t=>t,t=>(this.debugLog("netRequestError ",t),this.netResponseError(t))),this.requestHandle.interceptors.response.use(t=>this.netResponseOK(t),t=>this.netResponseError(t))}setApiFlag(t){return this.flagMap=t||{},this}appendApiFlag(t){return this.flagMap=Object.assign({},this.flagMap,t||{}),this}setApiAuth(t){return this.authMap=t||{},this}appendApiAuth(t){return this.authMap=Object.assign({},this.authMap,t||{}),this}setDefHeaders(t){return this.headers=Object.assign({},this.headers,t||{}),this.requestHandle.defaults.headers=this.headers,this}setHeaders(t){return this.headers=Object.assign({},this.headers,t||{}),this}setDefRequests(t){return this.requests=Object.assign({},this.requests,t||{}),this.requestHandle.defaults.requests=this.requests,this}setRequests(t){return this.requests=Object.assign({},this.requests,t||{}),this}setOptions(t={}){return this.canshuOpt=Object.assign({},this.canshuOpt,t||{}),this}setSignal(t){}requestBefore(t){this.requestBeforeCall=t}requestAfter(t){this.requestAfterCall=t}encrypt(){return this.encryptFlag=!0,this}netResponseOK(t){return this.debugLog("netResponseOK ",t),t.status!==200?(this.resetNetError({type:"error",message:"请求异常"}),Promise.reject(error)):this.resetNetResponse(t.data)}netResponseError(t){this.debugLog("netResponseError ",t);const n=t&&t.message||"",r=t&&t.response&&t.response.status||0,a=t&&t.response&&(t.response.data.message||t.response.statusText)||"";let o="提示",s="请求异常,请检查网络或联系管理员";return na[r]&&(o=na[r]),ra[r]?s=ra[r]:n.includes("Network Error")?s="网络异常":n.includes("Not Found")?s="未找到该请求":n.includes("timeout")&&(s="请求超时,请刷新重试"),this.resetNetError({title:o,status:r,type:"error",message:a||s,error:n}),Promise.reject(t)}resetFlagConfig(){return{flag:{},auth:{}}}resetNetError(t){}resetNetResponse(t){let n=t.status||t.code||-1;switch(n=parseInt(n),n){case 100101:this.resetNetError({type:"error",message:t.msg});break;case 100102:this.resetNetError({type:"error",message:t.msg});break;case 100103:window.location.href="/";break;case 100109:break;case 404:case 100404:let r=t.msg||"操作失败";return this.resetNetError({type:"error",message:`${r}`}),Promise.reject(t);case 200:return t;case-1:return Promise.reject({message:"error"});default:return t}}apiAll(t,n,r){n.includes("http://")||n.includes("https://"),n=n.replace(/([^:]\/)\/+/g,"$1"),this.requestHandle.defaults.headers=this.headers,this.requestHandle.defaults.requests=this.requests;let a=this.canshuOpt||{};this.canshuOpt={};let o=!1;if(this.encryptURL&&ju(n,this.encryptURL,!0)&&(o=!0),this.encryptFlag&&(o=!0),o){const s=window.navigator.userAgent;(/Windows NT 5.1|Windows XP/.test(s)||s.indexOf("Windows NT 6.0")!==-1||s.indexOf("Windows NT 6.1")!==-1||s.indexOf("Windows NT 6.2")!==-1)&&(o=!1)}if(t=="POST")return this.requestHandle.post(n,r,{...a});if(t=="GET")return this.requestHandle.get(n,{...a,params:{...r}});if(t=="PUT")return this.requestHandle.put(n,{...r});if(t=="PATCH")return this.requestHandle.patch(n,{...r});if(t=="DELETE")return this.requestHandle.delete(n,{data:{...r}});if(t=="UPLOAD")return this.requestHandle.post(n,r,{...a,headers:{"Content-Type":"multipart/form-data"}})}flagGet(){const t=arguments;return this.unifyApi("flag","GET",t)}urlGet(){const t=arguments;return this.unifyApi("url","GET",t)}flagPost(){const t=arguments;return this.unifyApi("flag","POST",t)}urlPost(){const t=arguments;return this.unifyApi("url","POST",t)}flagPut(){const t=arguments;return this.unifyApi("flag","PUT",t)}urlPut(){const t=arguments;return this.unifyApi("url","PUT",t)}flagPatch(){const t=arguments;return this.unifyApi("flag","PATCH",t)}urlPatch(){const t=arguments;return this.unifyApi("url","PATCH",t)}flagDel(){const t=arguments;return this.unifyApi("flag","DELETE",t)}urlDel(){const t=arguments;return this.unifyApi("url","DELETE",t)}flagUpload(){const t=arguments;return this.unifyApi("flag","UPLOAD",t)}urlUpload(){const t=arguments;return this.unifyApi("url","UPLOAD",t)}flagUpImg(){const t=arguments;return this.unifyApi("flag","UPLOAD",t)}urlUpImg(){const t=arguments;return this.unifyApi("url","UPLOAD",t)}unifyApi(t,n,r){let a=this,o=r.length||0;if(o<=0||o>3){let u=`-- ${n} : 参数为(1-3)个---`;return new Promise((d,f)=>(this.resetNetError({message:u}),f({message:u})))}let s="",l="";if(t=="flag"){let u=r[0];typeof u=="string"&&(u=u||"",s=u==""?"":this.flagMap[u]||""),l=" flag"+n+`:传入的标示 { ${u} },未匹配到 apiUrl `}if(t=="url"&&(s=r[0],typeof s=="string"&&(s=s||""),l=" 未匹配到 apiUrl "),s=="")return new Promise((u,d)=>(this.resetNetError({message:l}),d({message:l})));if(o==1)return function(u){return a.apiAll(n,s,u)};if(o==2||o==3){let u={},d=r[1],f=Object.prototype.toString.call(d);if(f==="[object String]"||f==="[object Number]"){var c=Number(d);if(isNaN(c)||(s.endsWith("/")||(s=s+"/"),s=s+c),o==3){let h=r[2];Object.prototype.toString.call(h)==="[object Object]"&&(u=h||{})}}else f==="[object Object]"?u=d||{}:f==="[object FormData]"&&(u=d||new FormData);return a.apiAll(n,s,u)}else return new Promise((u,d)=>d({message:" 请求错误 "}))}}const qu={BASE_LOAD_COMMON_API_FLAG:"/base.base_load/common/api_flag",BASE_LOAD_COMMON_API_AUTH:"/base.base_load/common/api_auth",BASE_LOAD_COMMON_API_CODE:"/base.base_load/common/api_code",BASE_ACCSYS_COMMON_KEYCLIENT:"/base.account_sys/common/key_client",BASE_SYS_COMMON_PLAT_SETTING:"/base.base_sys/common/plat_setting",BASE_SYS_COMMON_SYS_INFO:"/base.base_sys/common/system_info"},Xu={BASE_LOAD_COMMON_API_FLAG:"app:true;auth:false;",BASE_LOAD_COMMON_API_AUTH:"app:true;auth:false;",BASE_LOAD_COMMON_API_CODE:"app:true;auth:false;",BASE_ACCSYS_COMMON_KEYCLIENT:"app:true;auth:false;",BASE_SYS_COMMON_PLAT_SETTING:"app:true;auth:false;"};Yt.prototype.resetNetError=function(e){if(!oe.__POWERED_BY_QIANKUN__&&e.status&&e.status==401)return me().SA_ACCOUNT_LOGOUT(),_t.ElMessageBox.alert("未经授权,请登录","友情提示",{confirmButtonText:"OK",callback:n=>{location.href="/login"}}),!1;let t=(e.status?`[ ${e.status} ] `:"")+(e.title||"提示");_t.ElNotification({title:t,message:e.message,type:e.type||"info",duration:1200,onClose:()=>{}})};Yt.prototype.resetNetResponse2=function(e){return e};Yt.prototype.cancelRequest=function(e){if(!e)return 0;let t=0;return __ajaxList.forEach((n,r)=>{n.id===e&&(t++,n.request&&n.request.abort())}),t>0&&(__ajaxList=__ajaxList.filter(n=>n.id!==e)),t};let Ve=null;function ar(e={}){const t=Qe();Ve=new Yt({baseURL:t.syApiBaseUrl||"",headers:{syOpenAppProject:t.syAppProjectSign||"",syOpenAppId:t.syAppConnectId||"",syOpenAppRole:t.syAppConnectRole||"",syOpenAppToken:D.localGet("syCacheAppToken")||"","Sy-Client-Platform":"pc-web",Authorization:"Bearer "+D.localGet("syCacheAppJwt")||""},requests:{},encryptURL:["users/login","users/editpass","/base.account_security/common/change_pwd","users/operation","users/delete/account","base.base_sys/license","users/bot/*","dialog/msg/*"]});let n={},r={};e&&(n=e.ApiFlagSet||{},r=e.ApiAuthSet||{});let a=Object.assign({},qu,n,t.syOpenApiFlag),o=Object.assign({},Xu,r,t.syOpenApiAuth);return Ve.setApiFlag(a),Ve.setApiAuth(o),Ve}function Qu(){return Ve||(Ve=ar()),Ve}const re=new Proxy({},{get(e,t){const n=Qu();return typeof n[t]=="function"?n[t].bind(n):n[t]}});var Ju={methods:{jumpsBack(){this.$router.go(-1)},jumpsXieyi(e){},jumpsReload(){vt().SA_ROUTE_ALIVE_ADD()},jumpsMsgBack(e,t){this.$message({type:"success",duration:1e3,message:e||"",onClose:()=>{this.$router.go(-1),t&&typeof t=="function"&&t()}})},jumpsWinOpen(e){window.open(e)},jumpsRefresh(){this.$router.go(0)},jumpsTabs(e,t){this.$router.push({path:e||"/",query:t||{}}).catch(n=>n)},jumpsAuth(e,t){this.$router.push({path:e||"/",query:t||{}}).catch(n=>n)},jumpsQiankun(e){yo(e)}}};function aa(e,t,n){const r=t.value;if(r)Ha(r)||!1||e.parentNode&&e.parentNode.removeChild(e);else throw new Error(`需要指定权限标识! 如:v-auth="'xxxx_add'" 或 v-auth="['xxxx_xxx']"`)}function zu(e,t,n){n=n||"vue3",n=="vue2"?e.directive("auth",{inserted:aa}):e.directive("auth",{mounted:aa}),t.$_auth=Ha}/*! Element Plus v2.9.7 */var Zu={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};function ef(e){e.use(_t,{locale:Zu});for(const[t,n]of Object.entries(bo))e.component("ElIcon"+t,n)}function tf(e){e.use(po,{uploadImg:{file_name:"file",upName:"file",upProceedFn:(t,n)=>{re.flagUpload("SDK_FILE_COMMON_UPLOAD_IMG",{file:t}).then(r=>{n(r,t)})},upResponseFn(t,n,r){return t.data&&t.data.img_time}},cvEditorQuill:{},cvEditorMarkdown:{}});for(const[t,n]of Object.entries(No))e.component("cvSvg"+t,n)}async function nf(e,t){ia(t),ar(e),nt().init(),ve().init(),await $t().init(),await me().init()}async function rf(e,t,n,r,a="",o=null){Nt().init(r),vt().init(n);let s=e.config.globalProperties;s.$onLaunched=new Promise(c=>{s.$isResolve=c}),s.$request=re,s.$cache=D,ef(e),tf(e),zu(e,s),e.mixin(Al()),e.mixin(Ju),await af(t,r,a),e.use(Ga);let l=nt().SA_LANGUAGE_GET();sl(l,o),window.$t=Fe.t}async function af(e,t,n){const r=Je(),a=me(),o=Nt(),s=vt();r.QK_SEND_MSG_REG_SUBMENU(t);let l=Qe().syProductSign||"";s.SA_PERMS_ROUTER_ADD(e,l),o.SA_MENU_PARSE(),r.QK_SEND_MSG_ROUTER_BEFORE(n);let c=!1,u=!1,d=!1;e.beforeEach((f,h,E)=>{const y=f.path||"",S=h.path,w=f.query||{};let g=a.accountIsLogin;if(oe.__POWERED_BY_QIANKUN__&&(g=a.SA_ACCOUNT_IS_LOGGED()),w.token,g){if(c||(o.SA_MENU_PARSE(),c=!0),S=="/"&&y=="/none"){if(s.SA_PERMS_ROUTER_CHECK({name:"index"}))return E({path:"/"})}else if(!s.SA_PERMS_ROUTER_CHECK(f))return E({path:"/none",replace:!0});if((S=="/login"||S=="/index")&&(u||(r.QK_SEND_LOGIN_MSG(),u=!0,d=!1)),["/login","/alone_run"].includes(y))return E({path:"/"});E()}else{if(o.SA_MENU_PARSE(),c=!1,d||(r.QK_SEND_LOGOUT_MSG(),u=!1,d=!0),!["/login","/alone_run"].includes(y))return E({path:"/login",replace:!0});E()}}),e.isReady().then(async()=>{}),e.afterEach(function(f,h){var E;if((E=f==null?void 0:f.meta)!=null&&E.title&&!oe.__POWERED_BY_QIANKUN__){let y="管理系统",S=f.meta.title;document.title=S?`${S} - ${y}`:`${y}`}})}async function of(e,t,n){oe.__POWERED_BY_QIANKUN__?To(e,t,n):t()}exports.HttpObj=re;exports.SameRouteView=ja;exports.SameWatermark=Bc;exports.StorageObj=D;exports.SwitchBusiness=qa;exports._export_sfc=Ee;exports.console=Mc;exports.createHttp=ar;exports.qiankunWindow=oe;exports.sdkBootstrap=of;exports.sdkConfigGet=Qe;exports.sdkConfigSet=ia;exports.sdkStartBefore=nf;exports.sdkStarup=rf;exports.useSdkAccountStore=me;exports.useSdkLanguageStore=nt;exports.useSdkPermissionStore=vt;exports.useSdkProductStore=Nt;exports.useSdkQiankunStore=Je;exports.useSdkSystemStore=$t;exports.useSdkThemesStore=ve;exports.useSdkWindowStore=Qn;
|
package/dist/login-DbsijHDN.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index-BcokQifq.cjs");require("pinia");const r=require("vue");function K(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var V={exports:{}},J=V.exports,H;function X(){return H||(H=1,function(s,l){var _;(function(p,h){s.exports=h()})(J,function(){function p(e){this.mode=g.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,o=this.data.length;t<o;t++){var i=[],n=this.data.charCodeAt(t);n>65536?(i[0]=240|(n&1835008)>>>18,i[1]=128|(n&258048)>>>12,i[2]=128|(n&4032)>>>6,i[3]=128|n&63):n>2048?(i[0]=224|(n&61440)>>>12,i[1]=128|(n&4032)>>>6,i[2]=128|n&63):n>128?(i[0]=192|(n&1984)>>>6,i[1]=128|n&63):i[0]=n,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}p.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,o=this.parsedData.length;t<o;t++)e.put(this.parsedData[t],8)}};function h(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}h.prototype={addData:function(e){var t=new p(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++){this.modules[o]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[o][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=h.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var o=-1;o<=7;o++)if(!(e+o<=-1||this.moduleCount<=e+o))for(var i=-1;i<=7;i++)t+i<=-1||this.moduleCount<=t+i||(0<=o&&o<=6&&(i==0||i==6)||0<=i&&i<=6&&(o==0||o==6)||2<=o&&o<=4&&2<=i&&i<=4?this.modules[e+o][t+i]=!0:this.modules[e+o][t+i]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,o=0;o<8;o++){this.makeImpl(!0,o);var i=v.getLostPoint(this);(o==0||e>i)&&(e=i,t=o)}return t},createMovieClip:function(e,t,o){var i=e.createEmptyMovieClip(t,o),n=1;this.make();for(var c=0;c<this.modules.length;c++)for(var d=c*n,a=0;a<this.modules[c].length;a++){var u=a*n,m=this.modules[c][a];m&&(i.beginFill(0,100),i.moveTo(u,d),i.lineTo(u+n,d),i.lineTo(u+n,d+n),i.lineTo(u,d+n),i.endFill())}return i},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=v.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var o=0;o<e.length;o++){var i=e[t],n=e[o];if(this.modules[i][n]==null)for(var c=-2;c<=2;c++)for(var d=-2;d<=2;d++)c==-2||c==2||d==-2||d==2||c==0&&d==0?this.modules[i+c][n+d]=!0:this.modules[i+c][n+d]=!1}},setupTypeNumber:function(e){for(var t=v.getBCHTypeNumber(this.typeNumber),o=0;o<18;o++){var i=!e&&(t>>o&1)==1;this.modules[Math.floor(o/3)][o%3+this.moduleCount-8-3]=i}for(var o=0;o<18;o++){var i=!e&&(t>>o&1)==1;this.modules[o%3+this.moduleCount-8-3][Math.floor(o/3)]=i}},setupTypeInfo:function(e,t){for(var o=this.errorCorrectLevel<<3|t,i=v.getBCHTypeInfo(o),n=0;n<15;n++){var c=!e&&(i>>n&1)==1;n<6?this.modules[n][8]=c:n<8?this.modules[n+1][8]=c:this.modules[this.moduleCount-15+n][8]=c}for(var n=0;n<15;n++){var c=!e&&(i>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=c:n<9?this.modules[8][15-n-1+1]=c:this.modules[8][15-n-1]=c}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var o=-1,i=this.moduleCount-1,n=7,c=0,d=this.moduleCount-1;d>0;d-=2)for(d==6&&d--;;){for(var a=0;a<2;a++)if(this.modules[i][d-a]==null){var u=!1;c<e.length&&(u=(e[c]>>>n&1)==1);var m=v.getMask(t,i,d-a);m&&(u=!u),this.modules[i][d-a]=u,n--,n==-1&&(c++,n=7)}if(i+=o,i<0||this.moduleCount<=i){i-=o,o=-o;break}}}},h.PAD0=236,h.PAD1=17,h.createData=function(e,t,o){for(var i=L.getRSBlocks(e,t),n=new w,c=0;c<o.length;c++){var d=o[c];n.put(d.mode,4),n.put(d.getLength(),v.getLengthInBits(d.mode,e)),d.write(n)}for(var a=0,c=0;c<i.length;c++)a+=i[c].dataCount;if(n.getLengthInBits()>a*8)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+a*8+")");for(n.getLengthInBits()+4<=a*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=a*8||(n.put(h.PAD0,8),n.getLengthInBits()>=a*8));)n.put(h.PAD1,8);return h.createBytes(n,i)},h.createBytes=function(e,t){for(var o=0,i=0,n=0,c=new Array(t.length),d=new Array(t.length),a=0;a<t.length;a++){var u=t[a].dataCount,m=t[a].totalCount-u;i=Math.max(i,u),n=Math.max(n,m),c[a]=new Array(u);for(var f=0;f<c[a].length;f++)c[a][f]=255&e.buffer[f+o];o+=u;var y=v.getErrorCorrectPolynomial(m),T=new A(c[a],y.getLength()-1),N=T.mod(y);d[a]=new Array(y.getLength()-1);for(var f=0;f<d[a].length;f++){var b=f+N.getLength()-d[a].length;d[a][f]=b>=0?N.get(b):0}}for(var D=0,f=0;f<t.length;f++)D+=t[f].totalCount;for(var I=new Array(D),M=0,f=0;f<i;f++)for(var a=0;a<t.length;a++)f<c[a].length&&(I[M++]=c[a][f]);for(var f=0;f<n;f++)for(var a=0;a<t.length;a++)f<d[a].length&&(I[M++]=d[a][f]);return I};for(var g={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},k={L:1,M:0,Q:3,H:2},S={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},v={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;v.getBCHDigit(t)-v.getBCHDigit(v.G15)>=0;)t^=v.G15<<v.getBCHDigit(t)-v.getBCHDigit(v.G15);return(e<<10|t)^v.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;v.getBCHDigit(t)-v.getBCHDigit(v.G18)>=0;)t^=v.G18<<v.getBCHDigit(t)-v.getBCHDigit(v.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return v.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,o){switch(e){case S.PATTERN000:return(t+o)%2==0;case S.PATTERN001:return t%2==0;case S.PATTERN010:return o%3==0;case S.PATTERN011:return(t+o)%3==0;case S.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2==0;case S.PATTERN101:return t*o%2+t*o%3==0;case S.PATTERN110:return(t*o%2+t*o%3)%2==0;case S.PATTERN111:return(t*o%3+(t+o)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new A([1],0),o=0;o<e;o++)t=t.multiply(new A([1,E.gexp(o)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case g.MODE_NUMBER:return 10;case g.MODE_ALPHA_NUM:return 9;case g.MODE_8BIT_BYTE:return 8;case g.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case g.MODE_NUMBER:return 12;case g.MODE_ALPHA_NUM:return 11;case g.MODE_8BIT_BYTE:return 16;case g.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else if(t<41)switch(e){case g.MODE_NUMBER:return 14;case g.MODE_ALPHA_NUM:return 13;case g.MODE_8BIT_BYTE:return 16;case g.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}else throw new Error("type:"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),o=0,i=0;i<t;i++)for(var n=0;n<t;n++){for(var c=0,d=e.isDark(i,n),a=-1;a<=1;a++)if(!(i+a<0||t<=i+a))for(var u=-1;u<=1;u++)n+u<0||t<=n+u||a==0&&u==0||d==e.isDark(i+a,n+u)&&c++;c>5&&(o+=3+c-5)}for(var i=0;i<t-1;i++)for(var n=0;n<t-1;n++){var m=0;e.isDark(i,n)&&m++,e.isDark(i+1,n)&&m++,e.isDark(i,n+1)&&m++,e.isDark(i+1,n+1)&&m++,(m==0||m==4)&&(o+=3)}for(var i=0;i<t;i++)for(var n=0;n<t-6;n++)e.isDark(i,n)&&!e.isDark(i,n+1)&&e.isDark(i,n+2)&&e.isDark(i,n+3)&&e.isDark(i,n+4)&&!e.isDark(i,n+5)&&e.isDark(i,n+6)&&(o+=40);for(var n=0;n<t;n++)for(var i=0;i<t-6;i++)e.isDark(i,n)&&!e.isDark(i+1,n)&&e.isDark(i+2,n)&&e.isDark(i+3,n)&&e.isDark(i+4,n)&&!e.isDark(i+5,n)&&e.isDark(i+6,n)&&(o+=40);for(var f=0,n=0;n<t;n++)for(var i=0;i<t;i++)e.isDark(i,n)&&f++;var y=Math.abs(100*f/t/t-50)/5;return o+=y*10,o}},E={glog:function(e){if(e<1)throw new Error("glog("+e+")");return E.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return E.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},C=0;C<8;C++)E.EXP_TABLE[C]=1<<C;for(var C=8;C<256;C++)E.EXP_TABLE[C]=E.EXP_TABLE[C-4]^E.EXP_TABLE[C-5]^E.EXP_TABLE[C-6]^E.EXP_TABLE[C-8];for(var C=0;C<255;C++)E.LOG_TABLE[E.EXP_TABLE[C]]=C;function A(e,t){if(e.length==null)throw new Error(e.length+"/"+t);for(var o=0;o<e.length&&e[o]==0;)o++;this.num=new Array(e.length-o+t);for(var i=0;i<e.length-o;i++)this.num[i]=e[i+o]}A.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),o=0;o<this.getLength();o++)for(var i=0;i<e.getLength();i++)t[o+i]^=E.gexp(E.glog(this.get(o))+E.glog(e.get(i)));return new A(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=E.glog(this.get(0))-E.glog(e.get(0)),o=new Array(this.getLength()),i=0;i<this.getLength();i++)o[i]=this.get(i);for(var i=0;i<e.getLength();i++)o[i]^=E.gexp(E.glog(e.get(i))+t);return new A(o,0).mod(e)}};function L(e,t){this.totalCount=e,this.dataCount=t}L.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],L.getRSBlocks=function(e,t){var o=L.getRsBlockTable(e,t);if(o==null)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var i=o.length/3,n=[],c=0;c<i;c++)for(var d=o[c*3+0],a=o[c*3+1],u=o[c*3+2],m=0;m<d;m++)n.push(new L(a,u));return n},L.getRsBlockTable=function(e,t){switch(t){case k.L:return L.RS_BLOCK_TABLE[(e-1)*4+0];case k.M:return L.RS_BLOCK_TABLE[(e-1)*4+1];case k.Q:return L.RS_BLOCK_TABLE[(e-1)*4+2];case k.H:return L.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};function w(){this.buffer=[],this.length=0}w.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var o=0;o<t;o++)this.putBit((e>>>t-o-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var P=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function q(){return typeof CanvasRenderingContext2D<"u"}function O(){var e=!1,t=navigator.userAgent;if(/android/i.test(t)){e=!0;var o=t.toString().match(/android ([0-9]\.[0-9])/i);o&&o[1]&&(e=parseFloat(o[1]))}return e}var R=function(){var e=function(t,o){this._el=t,this._htOption=o};return e.prototype.draw=function(t){var o=this._htOption,i=this._el,n=t.getModuleCount();Math.floor(o.width/n),Math.floor(o.height/n),this.clear();function c(f,y){var T=document.createElementNS("http://www.w3.org/2000/svg",f);for(var N in y)y.hasOwnProperty(N)&&T.setAttribute(N,y[N]);return T}var d=c("svg",{viewBox:"0 0 "+String(n)+" "+String(n),width:"100%",height:"100%",fill:o.colorLight});d.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.appendChild(d),d.appendChild(c("rect",{fill:o.colorLight,width:"100%",height:"100%"})),d.appendChild(c("rect",{fill:o.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a<n;a++)for(var u=0;u<n;u++)if(t.isDark(a,u)){var m=c("use",{x:String(u),y:String(a)});m.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),d.appendChild(m)}},e.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},e}(),Q=document.documentElement.tagName.toLowerCase()==="svg",U=Q?R:q()?function(){function e(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}if(this&&this._android&&this._android<=2.1){var t=1/window.devicePixelRatio,o=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(c,d,a,u,m,f,y,T,N){if("nodeName"in c&&/img/i.test(c.nodeName))for(var b=arguments.length-1;b>=1;b--)arguments[b]=arguments[b]*t;else typeof T>"u"&&(arguments[1]*=t,arguments[2]*=t,arguments[3]*=t,arguments[4]*=t);o.apply(this,arguments)}}function i(c,d){var a=this;if(a._fFail=d,a._fSuccess=c,a._bSupportDataURI===null){var u=document.createElement("img"),m=function(){a._bSupportDataURI=!1,a._fFail&&a._fFail.call(a)},f=function(){a._bSupportDataURI=!0,a._fSuccess&&a._fSuccess.call(a)};u.onabort=m,u.onerror=m,u.onload=f,u.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";return}else a._bSupportDataURI===!0&&a._fSuccess?a._fSuccess.call(a):a._bSupportDataURI===!1&&a._fFail&&a._fFail.call(a)}var n=function(c,d){this._bIsPainted=!1,this._android=O(),this._htOption=d,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=d.width,this._elCanvas.height=d.height,c.appendChild(this._elCanvas),this._el=c,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return n.prototype.draw=function(c){var d=this._elImage,a=this._oContext,u=this._htOption,m=c.getModuleCount(),f=u.width/m,y=u.height/m,T=Math.round(f),N=Math.round(y);d.style.display="none",this.clear();for(var b=0;b<m;b++)for(var D=0;D<m;D++){var I=c.isDark(b,D),M=D*f,x=b*y;a.strokeStyle=I?u.colorDark:u.colorLight,a.lineWidth=1,a.fillStyle=I?u.colorDark:u.colorLight,a.fillRect(M,x,f,y),a.strokeRect(Math.floor(M)+.5,Math.floor(x)+.5,T,N),a.strokeRect(Math.ceil(M)-.5,Math.ceil(x)-.5,T,N)}this._bIsPainted=!0},n.prototype.makeImage=function(){this._bIsPainted&&i.call(this,e)},n.prototype.isPainted=function(){return this._bIsPainted},n.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},n.prototype.round=function(c){return c&&Math.floor(c*1e3)/1e3},n}():function(){var e=function(t,o){this._el=t,this._htOption=o};return e.prototype.draw=function(t){for(var o=this._htOption,i=this._el,n=t.getModuleCount(),c=Math.floor(o.width/n),d=Math.floor(o.height/n),a=['<table style="border:0;border-collapse:collapse;">'],u=0;u<n;u++){a.push("<tr>");for(var m=0;m<n;m++)a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+c+"px;height:"+d+"px;background-color:"+(t.isDark(u,m)?o.colorDark:o.colorLight)+';"></td>');a.push("</tr>")}a.push("</table>"),i.innerHTML=a.join("");var f=i.childNodes[0],y=(o.width-f.offsetWidth)/2,T=(o.height-f.offsetHeight)/2;y>0&&T>0&&(f.style.margin=T+"px "+y+"px")},e.prototype.clear=function(){this._el.innerHTML=""},e}();function G(e,t){for(var o=1,i=$(e),n=0,c=P.length;n<=c;n++){var d=0;switch(t){case k.L:d=P[n][0];break;case k.M:d=P[n][1];break;case k.Q:d=P[n][2];break;case k.H:d=P[n][3];break}if(i<=d)break;o++}if(o>P.length)throw new Error("Too long data");return o}function $(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}return _=function(e,t){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:k.H},typeof t=="string"&&(t={text:t}),t)for(var o in t)this._htOption[o]=t[o];typeof e=="string"&&(e=document.getElementById(e)),this._htOption.useSVG&&(U=R),this._android=O(),this._el=e,this._oQRCode=null,this._oDrawing=new U(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},_.prototype.makeCode=function(e){this._oQRCode=new h(G(e,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(e),this._oQRCode.make(),this._el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage()},_.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},_.prototype.clear=function(){this._oDrawing.clear()},_.CorrectLevel=k,_})}(V)),V.exports}var z=X();const F=K(z),Y={components:{SwitchBusiness:B.SwitchBusiness},data(){return{loadOngoing:!1,loginMode:"access",loginJump:!1,cache_remember:"off",cache_privacy:"off",account_mobile:"",account_password:"",account_password2:"",captcha_code:"",sms_code:"",account_business_id:0,reg_invite:"",regInviteNeed:!1,codeNeed:!1,codeLoad:0,codeKey:"",codeUrl:"",chainShowFlag:!1,chainAccountList:[],chainTempToken:"",qrcodeExpiredShow:!1,qrcodeTimer:null,qrcodeLoad:!1,qrcodeScanVernum:15,qrcodeScanVererr:0,copyright_info:""}},watch:{$route({query:s}){s.type=="reg"&&this.$nextTick(()=>{this.loginMode="reg"})},account_mobile(s){this.$nextTick(()=>{let l=this.$refs.account_mobile.$el.querySelector("input");const p=getComputedStyle(l).background.match(/rgb\((\d+,\s*\d+,\s*\d+)\)/);p&&p[0]==="rgb(232, 240, 254)"&&this.onBlur()})},loginMode(s){s=="reg"&&(this.regInviteNeed=!!this.systemConfig.reg_invite_need)}},computed:{openProductPrivacyUrl(){var s;return((s=this.openProductInfo)==null?void 0:s.privacy_url)||""},loginLastLogo(){return this.openProductInfo.platinfo_log||"/logo-nobg.png"},loginSystemTitle(){var p,h;let s=(p=this.openProductInfo)==null?void 0:p.system_type;return((h=this.openProductInfo)==null?void 0:h.info_title)||s},currentLanguage(){return this.languageList[this.languageName]||"Language"}},created(){this.cache_remember=localStorage.getItem("cacheLoginRemember")||"off",this.cache_privacy=localStorage.getItem("cacheLoginPrivacy")||"off",this.account_mobile=localStorage.getItem("cacheLoginMobile")||""},async mounted(){this.loginMode=this.$route.query.type==="reg"?"reg":"access",this.$Electron&&(this.$Electron.sendMessage("webTabDestroyAll"),this.$Electron.sendMessage("childWindowDestroyAll")),B.useSdkSystemStore().$subscribe((s,l)=>{s.events.key=="useSSOLogin"&&l.useSSOLogin==!0&&this.inputServerUrl()})},beforeDestroy(){clearInterval(this.qrcodeTimer),this.loginJump=!1,this.account_password="",this.account_password2="",this.captcha_code="",this.reg_invite=""},methods:{handleRemember(s){s=="on"?localStorage.setItem("cacheLoginRemember",s):localStorage.removeItem("cacheLoginRemember")},handleRrivacy(s){s=="on"?(localStorage.setItem("cacheLoginPrivacy",s),this.chackServerUrl().catch(l=>{})):localStorage.removeItem("cacheLoginPrivacy"),this.cache_privacy=s},handleForgot(){this.$message.warning("请联系管理员!")},chackServerUrl(s){return new Promise((l,_)=>{l()})},switchLoginMode(s){this.chackServerUrl(!0).then(()=>{clearInterval(this.qrcodeTimer),s==="qrcode"?(this.loginMode="qrcode",this.scanQrcodeRefresh()):s==="access"?this.loginMode="access":s==="smsLogin"?(this.loginMode="smsLogin",this.refreshCode()):this.loginMode=s})},refreshCode(){this.captcha_code="",!(this.codeLoad>0)&&(setTimeout(s=>{this.codeLoad++},600),this.$request.flagGet("BASE_PASSPORT_CODE_DATA",{account_mobile:this.account_mobile}).then(({data:s})=>{var l;this.codeKey=s.key,this.codeUrl=s.img,(l=this.$refs.captcha_code)==null||l.focus()}).catch(s=>{this.codeUrl="error"}).finally(s=>{this.codeLoad--}))},onBlur(){if(!this.account_mobile){this.codeNeed=!1;return}this.loadOngoing=!0,this.$request.flagGet("BASE_PASSPORT_CODE_NEED",{account_mobile:this.account_mobile}).then(s=>{this.loadOngoing=!1,s.data=="need"?(this.refreshCode(),this.codeNeed=!0):this.codeNeed=!1}).catch(s=>{this.loadOngoing=!1}).finally(s=>{this.loadOngoing=!1})},accessLoginFunc(){if(this.loadOngoing)return this.$message({type:"warning",message:"正在登录中,请勿重新确认~"}),!1;this.chackServerUrl(!0).then(()=>{if(this.account_mobile=cvUtils.strTrimAll(this.account_mobile),this.account_password=cvUtils.strTrimAll(this.account_password),this.account_password2=cvUtils.strTrimAll(this.account_password2),this.captcha_code=cvUtils.strTrimAll(this.captcha_code),this.reg_invite=cvUtils.strTrimAll(this.reg_invite),this.cache_privacy!="on"){this.$message.warning("请同意协议");return}if(!cvUtils.isMobile(this.account_mobile)){this.$message.warning("请输入正确的手机号码"),this.$refs.account_mobile.focus();return}if(!this.account_password){this.$message.warning("请输入密码"),this.$refs.account_password.focus();return}if(this.loginMode=="reg"&&this.account_password!=this.account_password2){this.$message.warning("确认密码输入不一致"),this.$refs.account_password2.focus();return}if(this.codeNeed&&!this.captcha_code){this.$message.warning("请输入验证码"),this.$refs.captcha_code.focus();return}this.passportHandle2(null,"MobilePwdLogin")})},loginBusinessCheck(s){this.account_mobile=s.account_mobile_show,this.account_business_id=s.business_id,s.acc_role_type=="sy-org-admin"?this.passportHandle2(null,"OrgAdminPwdLogin"):s.acc_role_type=="sy-org-staff"&&this.passportHandle2(null,"OrgStaffPwdLogin")},passportHandle2(s,l){let _=this.$message({iconClass:"ElIconLoading",message:"正在登录...",duration:0});this.loadOngoing=!0,localStorage.setItem("cacheLoginMobile",this.account_mobile);try{let p={};this.loginMode=="access"?(p={account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey},(l=="OrgAdminPwdLogin"||l=="OrgStaffPwdLogin")&&(p.temp_token=this.chainTempToken)):this.loginMode=="reg"&&(p={account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey,reg_invite:this.reg_invite}),this.$request.setOptions({timeout:1e4}).flagPost("BASE_PASSPORT_PASSPORT",{handleType:l,...p}).then(h=>{_.close(),this.loadOngoing=!1,h.status==200?this.adminLoginSucc(h):h.status==403?(this.$message.error("验证码有误!"),this.refreshCode(),this.codeNeed=!0):(this.$message.error(h.msg),this.refreshCode())}).catch(h=>{this.loadOngoing=!1,this.chainShowFlag=!1,_.close(),this.refreshCode(),this.codeNeed=!0})}catch{this.$message.error("登录异常"),_.close(),this.loadOngoing=!1,this.refreshCode()}},async adminLoginSucc(s){let l=s.data||{};if(l.result_type=="chain")this.chainAccountList=l.result_data||[],this.chainShowFlag=!0,this.chainTempToken=l.result_token||"";else{const _=l.result_data||{};await B.useSdkAccountStore().SA_ACCOUNT_SIGNIN(_),this.codeNeed=!1,this.$message({type:"success",message:"登录成功...",duration:800,onClose:()=>{this.goNext()}})}},chainReselection(){this.refreshCode(),this.chainShowFlag=!1},scanCreate(s){new F(this.$refs.qrCodeUrl,{text:s,width:180,height:180,margin:2,colorDark:"#000000",colorLight:"#ffffff",correctLevel:F.CorrectLevel.L})},scanQrcodeRefresh(){if(this.loginMode!="qrcode"||this.qrcodeLoad)return!1;this.qrcodeExpiredShow=!1,this.qrcodeScanVererr=0,this.$nextTick(()=>{document.getElementById("qrcode").innerHTML="",clearInterval(this.qrcodeTimer),this.qrcodeLoad=!0,this.$request.flagGet("BASE_PASSPORT_SCAN_QRCODE",{name:"app",fun:"scanQrcode"}).then(s=>{var l;s.status==200?(this.scanCreate((l=s==null?void 0:s.data)==null?void 0:l.checkLogin),this.qrcodeTimer=window.setInterval(()=>{var _;this.scanCheckFunc((_=s==null?void 0:s.data)==null?void 0:_.scanCode)},3e3)):result.status==404}).catch(s=>{}).finally(s=>{this.qrcodeLoad=!1})})},scanCheckFunc(s){if(this.qrcodeScanVererr++,this.qrcodeScanVererr>this.qrcodeScanVernum)return clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0,!1;this.$request.flagPost("BASE_PASSPORT_SCAN_CHECK",{name:"app",fun:"scanCheck",scanCode:s||""}).then(l=>{var p,h;if(l.status==200){var _=l.msg&&((p=l==null?void 0:l.data)==null?void 0:p.scanCVal)||"";_!=""&&(clearInterval(this.qrcodeTimer),this.scanLoginFunc(s,(h=l==null?void 0:l.data)==null?void 0:h.scanCVal))}else l.status==405&&(clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0)}).catch(()=>{})},scanLoginFunc(s,l){this.$message({type:"success",message:"扫码成功,请稍后...",duration:1500}),this.$request.flagPost("BASE_PASSPORT_SCAN_LOGIN",{name:"app",fun:"scanLogin",scanCode:s,scanCVal:l}).then(_=>{if(_.status==200){let p=this.$message({iconClass:"ElIconLoading",message:"正在安全登录中,请稍后...",duration:0});setTimeout(()=>{p.close(),this.$message({message:_.msg,type:_.status==200?"success":"error"})},2e3)}}).catch(()=>{})},goNext(){this.loginJump=!0;let s=cvUtils.urlQueryToObj(this.$route.query);const l=decodeURIComponent(s.from||"");l?gbIdbObj.idbSetItem("clearCache","login").then(_=>{window.location.replace(l)}):this.$router.push({path:"/"})},setTheme(s){B.useSdkThemesStore().SA_THEMES_SET(s)},setLanguage(s){B.useSdkLanguageStore().SA_LANGUAGE_SET(s)},inputServerUrl(){},inputServerChack(s){return new Promise((l,_)=>{let p=s;/\/api\/$/.test(p)||(p=p+(cvUtils.strRightExists(p,"/")?"api/":"/api/")),/^https*:\/\//i.test(p)||(p=`https://${p}`),B.HttpObj.setOptions({checkNetwork:!1}).flagGet("SYS_SETT_ALL",{}).then(async({data:h})=>{typeof h.server_version>"u"&&typeof h.all_group_mute>"u"?_(`服务器(${cvUtils.urlGetDomain(s)})版本过低`):(p!=this.cacheServerUrl&&(await gbIdbObj.idbSetItem("cacheServerUrl",p),window.location.reload()),l())}).catch(({ret:h,msg:g})=>{if(h===-1001){if(!/^https*:\/\//i.test(s)){this.inputServerChack(`http://${s}`).then(l).catch(_);return}g="服务器地址无效"}_(g)})})}}},W={class:"cloud-login-wrap"},j={key:0,class:"cloud-login-main"},Z={class:"cloud-login-logo no-dark-content can-click"},ee=["src"],te={key:0,class:"cloud-login-box"},oe={class:"login-title"},ie={class:"login-subtitle"},ne={class:"cloud-login-mode-access"},re={class:"login-switch"},se={key:1,class:"cloud-login-box"},ae={class:"login-mode-switch"},le={class:"login-mode-switch-box"},ce={class:"login-title"},he={class:"login-subtitle"},de={class:"cloud-login-mode-access"},ue={key:0,class:"code-load"},ge={key:1,class:"code-error"},fe=["src"],me={class:"cloud-login-other"},pe=["href"],_e={class:"cloud-login-other"},ve={key:0,class:"login-switch"},we={key:1,class:"page-login-oauth"},Ee={key:2,class:"cloud-login-box"},Ce={class:"login-mode-switch"},ye={class:"login-mode-switch-box"},ke={class:"login-title"},Le={class:"login-subtitle"},Te={id:"qrcode",ref:"qrCodeUrl"},be={key:3,class:"cloud-login-box"},Se={class:"login-title"},Ne={class:"login-subtitle"},Ae={class:"cloud-login-mode-access"},De={class:"page-login-oauth"};function Be(s,l,_,p,h,g){const k=r.resolveComponent("el-input"),S=r.resolveComponent("el-button"),v=r.resolveComponent("cv-icons"),E=r.resolveComponent("el-tooltip"),C=r.resolveComponent("ElIconLoading"),A=r.resolveComponent("el-checkbox"),L=r.resolveComponent("SwitchBusiness");return r.openBlock(),r.createElementBlock("div",W,[h.chainShowFlag?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",j,[r.createElementVNode("div",Z,[r.createElementVNode("img",{src:g.loginLastLogo,alt:""},null,8,ee)]),h.loginMode=="reg"?(r.openBlock(),r.createElementBlock("div",te,[r.createElementVNode("div",oe,r.toDisplayString(g.loginSystemTitle),1),r.createElementVNode("div",ie,r.toDisplayString(s.$t("输入您的信息以创建帐户。")),1),r.createElementVNode("div",ne,[r.createElementVNode("form",null,[r.createVNode(k,{modelValue:h.account_password2,"onUpdate:modelValue":l[0]||(l[0]=w=>h.account_password2=w),ref:"account_password2","prefix-icon":"ElIconLock",placeholder:s.$t("输入确认密码"),type:"password",size:"large",clearable:""},null,8,["modelValue","placeholder"]),h.regInviteNeed?(r.openBlock(),r.createBlock(k,{key:0,modelValue:h.reg_invite,"onUpdate:modelValue":l[1]||(l[1]=w=>h.reg_invite=w),ref:"reg_invite",class:"login-code",placeholder:s.$t("请输入注册邀请码"),type:"text",size:"large",clearable:""},{prepend:r.withCtx(()=>[r.createTextVNode(" "+r.toDisplayString(s.$t("邀请码"))+" ",1)]),_:1},8,["modelValue","placeholder"])):r.createCommentVNode("",!0)]),r.createVNode(S,null,{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(h.loginJump?"注册成功":"注册"),1)]),_:1}),r.createElementVNode("div",re,[r.createTextVNode(r.toDisplayString(s.$t("已经有帐号?"))+" ",1),r.createElementVNode("a",{href:"javascript:void(0)",onClick:l[2]||(l[2]=w=>g.switchLoginMode("access"))},r.toDisplayString(s.$t("登录帐号")),1)])])])):r.createCommentVNode("",!0),h.loginMode=="access"?(r.openBlock(),r.createElementBlock("div",se,[r.createElementVNode("div",ae,[r.createElementVNode("div",le,[r.createVNode(E,{content:"扫码登录",placement:"left"},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"login-mode-switch-icon",onClick:l[3]||(l[3]=w=>g.switchLoginMode("qrcode"))},[r.createVNode(v,{type:"cvSvgBaseQrcode",size:"45"})])]),_:1})])]),r.createElementVNode("div",ce,r.toDisplayString(g.loginSystemTitle),1),r.createElementVNode("div",he,r.toDisplayString(s.$t("输入您的凭证以访问您的帐户。")),1),r.createElementVNode("div",de,[r.createElementVNode("form",null,[r.createVNode(k,{modelValue:h.account_mobile,"onUpdate:modelValue":l[4]||(l[4]=w=>h.account_mobile=w),ref:"account_mobile","prefix-icon":"ElIconUser",placeholder:s.$t("输入您的手机账号"),type:"text",size:"large",maxlength:"11",onBlur:g.onBlur,clearable:""},null,8,["modelValue","placeholder","onBlur"]),r.createVNode(k,{modelValue:h.account_password,"onUpdate:modelValue":l[5]||(l[5]=w=>h.account_password=w),ref:"account_password","prefix-icon":"ElIconLock",placeholder:s.$t("输入您的密码"),type:"password",size:"large",clearable:"",onKeydown:r.withKeys(g.accessLoginFunc,["enter"])},null,8,["modelValue","placeholder","onKeydown"]),h.codeNeed?(r.openBlock(),r.createBlock(k,{key:0,modelValue:h.captcha_code,"onUpdate:modelValue":l[7]||(l[7]=w=>h.captcha_code=w),ref:"captcha_code",class:"login-code",placeholder:s.$t("输入图形验证码"),type:"text",size:"large",clearable:""},{prefix:r.withCtx(()=>[r.createVNode(v,{type:"cvSvgCircleCheck"})]),append:r.withCtx(()=>[r.createElementVNode("div",{class:"login-code-end",onClick:l[6]||(l[6]=(...w)=>g.refreshCode&&g.refreshCode(...w))},[h.codeLoad>0?(r.openBlock(),r.createElementBlock("div",ue,[r.createVNode(C)])):h.codeUrl==="error"?(r.openBlock(),r.createElementBlock("span",ge,r.toDisplayString(s.$t("加载失败")),1)):(r.openBlock(),r.createElementBlock("img",{key:2,src:h.codeUrl},null,8,fe))])]),_:1},8,["modelValue","placeholder"])):r.createCommentVNode("",!0)]),r.createVNode(S,{type:"primary",loading:h.loadOngoing||h.loginJump,size:"large",style:{width:"100%","margin-bottom":"15px"},onClick:g.accessLoginFunc},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(h.loginJump?"登录成功":"登录"),1)]),_:1},8,["loading","onClick"]),r.createElementVNode("div",me,[r.createVNode(A,{modelValue:h.cache_privacy,"onUpdate:modelValue":l[8]||(l[8]=w=>h.cache_privacy=w),"true-value":"on","false-value":"off",onChange:g.handleRrivacy},{default:r.withCtx(()=>[l[16]||(l[16]=r.createTextVNode(" 同意 ")),r.createElementVNode("a",{href:g.openProductPrivacyUrl,target:"_blank"},"《隐私条款》",8,pe)]),_:1},8,["modelValue","onChange"]),r.createElementVNode("a",{href:"javascript:void(0)",onClick:l[9]||(l[9]=(...w)=>g.handleForgot&&g.handleForgot(...w))},r.toDisplayString(s.$t("忘记密码了?")),1)]),r.createElementVNode("div",_e,[s.systemConfig.open_business_reg=="on"?(r.openBlock(),r.createElementBlock("div",ve,[r.createTextVNode(r.toDisplayString(s.$t("还没有帐号?"))+" ",1),r.createElementVNode("a",{href:"javascript:void(0)",onClick:l[10]||(l[10]=w=>g.switchLoginMode("reg"))},r.toDisplayString(s.$t("注册帐号")),1)])):r.createCommentVNode("",!0),s.systemConfig.open_business_oauth2=="on"?(r.openBlock(),r.createElementBlock("div",we,[r.createElementVNode("a",{href:"javascript:void(0)",onClick:l[11]||(l[11]=w=>g.switchLoginMode("oauth2"))},r.toDisplayString(s.$t("OAuth2授权登陆")),1)])):r.createCommentVNode("",!0)])])])):r.createCommentVNode("",!0),h.loginMode=="qrcode"?(r.openBlock(),r.createElementBlock("div",Ee,[r.createElementVNode("div",Ce,[r.createElementVNode("div",ye,[r.createVNode(E,{content:"帐号登录",placement:"left"},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"login-mode-switch-icon",onClick:l[12]||(l[12]=w=>g.switchLoginMode("access"))},[r.createVNode(v,{type:"cvSvgBasePc",size:"45"})])]),_:1})])]),r.createElementVNode("div",ke,r.toDisplayString(s.$t("扫码登录")),1),r.createElementVNode("div",Le,[r.createVNode(v,{type:"cvSvgActionScan",size:"20",style:{"margin-right":"10px"}}),r.createTextVNode(" "+r.toDisplayString(s.$t(`请使用【${g.loginSystemTitle}】移动端扫描二维码`)),1)]),r.createElementVNode("div",{class:"login-qrcode",onClick:l[13]||(l[13]=(...w)=>g.scanQrcodeRefresh&&g.scanQrcodeRefresh(...w))},[r.createElementVNode("div",Te,null,512)])])):r.createCommentVNode("",!0),h.loginMode=="oauth2"?(r.openBlock(),r.createElementBlock("div",be,[r.createElementVNode("div",Se,r.toDisplayString(g.loginSystemTitle),1),r.createElementVNode("div",Ne,r.toDisplayString(s.$t("输入您的信息以创建帐户。")),1),r.createElementVNode("div",Ae,[r.createElementVNode("div",De,[r.createElementVNode("a",{href:"javascript:void(0)",onClick:l[14]||(l[14]=w=>g.switchLoginMode("access"))},r.toDisplayString(s.$t("帐号登录")),1)])])])):r.createCommentVNode("",!0)])),h.chainShowFlag?(r.openBlock(),r.createBlock(L,{key:1,modelValue:h.chainAccountList,"onUpdate:modelValue":l[15]||(l[15]=w=>h.chainAccountList=w),reselectTitle:"重新登录",onReselectFunc:g.chainReselection,onSelectFunc:g.loginBusinessCheck},null,8,["modelValue","onReselectFunc","onSelectFunc"])):r.createCommentVNode("",!0)])}const Pe=B._export_sfc(Y,[["render",Be]]);exports.default=Pe;
|