@byteluck-fe/model-driven-core 2.23.0-beta.2 → 2.23.0-beta.4

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/index.umd.js CHANGED
@@ -42,4 +42,4 @@ Component that was made reactive: `,e)),Xy(e,t,n,a,r,i,u,!0)}function Jy(e){retu
42
42
  * vue-i18n v9.14.0
43
43
  * (c) 2024 kazuya kawaguchi
44
44
  * Released under the MIT License.
45
- */const dC="9.14.0";function mC(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(He().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(He().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(He().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(He().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(He().__INTLIFY_PROD_DEVTOOLS__=!1)}const Bs=_e.__EXTEND_POINT__,Ke=Hn(Bs),Y={FALLBACK_TO_ROOT:Bs,NOT_SUPPORTED_PRESERVE:Ke(),NOT_SUPPORTED_FORMATTER:Ke(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Ke(),NOT_SUPPORTED_GET_CHOICE_INDEX:Ke(),COMPONENT_NAME_LEGACY_COMPATIBLE:Ke(),NOT_FOUND_PARENT_SCOPE:Ke(),IGNORE_OBJ_FLATTEN:Ke(),NOTICE_DROP_ALLOW_COMPOSITION:Ke(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Ke()},hC={[Y.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Y.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Y.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Y.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Y.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Y.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Y.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Y.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Y.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see \u{1F449} https://tinyurl.com/2p97mcze",[Y.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function be(e,...t){return an(hC[e],...t)}const Os=de.__EXTEND_POINT__,Fe=Hn(Os),W={UNEXPECTED_RETURN_TYPE:Os,INVALID_ARGUMENT:Fe(),MUST_BE_CALL_SETUP_TOP:Fe(),NOT_INSTALLED:Fe(),NOT_AVAILABLE_IN_LEGACY_MODE:Fe(),REQUIRED_VALUE:Fe(),INVALID_VALUE:Fe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Fe(),NOT_INSTALLED_WITH_PROVIDE:Fe(),UNEXPECTED_ERROR:Fe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Fe(),BRIDGE_SUPPORT_VUE_2_ONLY:Fe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Fe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Fe(),__EXTEND_POINT__:Fe()};function ce(e,...t){return Tt(e,null,process.env.NODE_ENV!=="production"?{messages:_C,args:t}:void 0)}const _C={[W.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[W.INVALID_ARGUMENT]:"Invalid argument",[W.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[W.NOT_INSTALLED]:"Need to install with `app.use` function",[W.UNEXPECTED_ERROR]:"Unexpected error",[W.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[W.REQUIRED_VALUE]:"Required in value: {0}",[W.INVALID_VALUE]:"Invalid value",[W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[W.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[W.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[W.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[W.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",[W.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Br=Le("__translateVNode"),Or=Le("__datetimeParts"),Lr=Le("__numberParts"),St=Le("__enableEmitter"),_n=Le("__disableEmitter"),Ls=Le("__setPluralRules");Le("__intlifyMeta");const ws=Le("__injectWithOption"),wr=Le("__dispose");function En(e){if(!H(e))return e;for(const t in e)if(!!Wn(e,t))if(!t.includes("."))H(e[t])&&En(e[t]);else{const n=t.split("."),a=n.length-1;let r=e,u=!1;for(let i=0;i<a;i++){if(n[i]in r||(r[n[i]]={}),!H(r[n[i]])){process.env.NODE_ENV!=="production"&&oe(be(Y.IGNORE_OBJ_FLATTEN,{key:n[i]})),u=!0;break}r=r[n[i]]}u||(r[n[a]]=e[t],delete e[t]),H(r[n[a]])&&En(r[n[a]])}return e}function Ea(e,t){const{messages:n,__i18n:a,messageResolver:r,flatJson:u}=t,i=$(n)?n:z(a)?{}:{[e]:{}};if(z(a)&&a.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:o}=s;l?(i[l]=i[l]||{},qn(o,i[l])):qn(o,i)}else R(s)&&qn(JSON.parse(s),i)}),r==null&&u)for(const s in i)Wn(i,s)&&En(i[s]);return i}function Ts(e){return e.type}function Rs(e,t,n){let a=H(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=Ea(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const r=Object.keys(a);r.length&&r.forEach(u=>{e.mergeLocaleMessage(u,a[u])});{if(H(t.datetimeFormats)){const u=Object.keys(t.datetimeFormats);u.length&&u.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(H(t.numberFormats)){const u=Object.keys(t.numberFormats);u.length&&u.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function ps(e){return Ht(vs,null,e,0)}const Ps="__INTLIFY_META__",Ms=()=>[],EC=()=>!1;let $s=0;function Vs(e){return(t,n,a,r)=>e(n,a,jt()||void 0,r)}const gC=()=>{const e=jt();let t=null;return e&&(t=Ts(e)[Ps])?{[Ps]:t}:null};function Tr(e={},t){const{__root:n,__injectWithOption:a}=e,r=n===void 0,u=e.flatJson,i=Oe?kt:Yi,s=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&s&&Vu(be(Y.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let l=V(e.inheritLocale)?e.inheritLocale:!0;const o=i(n&&l?n.locale.value:R(e.locale)?e.locale:Pt),h=i(n&&l?n.fallbackLocale.value:R(e.fallbackLocale)||z(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),f=i(Ea(o.value,e)),m=i($(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),D=i($(e.numberFormats)?e.numberFormats:{[o.value]:{}});let S=n?n.missingWarn:V(e.missingWarn)||et(e.missingWarn)?e.missingWarn:!0,y=n?n.fallbackWarn:V(e.fallbackWarn)||et(e.fallbackWarn)?e.fallbackWarn:!0,B=n?n.fallbackRoot:V(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,A=X(e.missing)?e.missing:null,_=X(e.missing)?Vs(e.missing):null,g=X(e.postTranslation)?e.postTranslation:null,N=n?n.warnHtmlMessage:V(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter;const v=n?n.modifiers:$(e.modifiers)?e.modifiers:{};let O=e.pluralRules||n&&n.pluralRules,w;w=(()=>{r&&ai(null);const C={version:dC,locale:o.value,fallbackLocale:h.value,messages:f.value,modifiers:v,pluralRules:O,missing:_===null?void 0:_,missingWarn:S,fallbackWarn:y,fallbackFormat:E,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:N,escapeParameter:b,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};C.datetimeFormats=m.value,C.numberFormats=D.value,C.__datetimeFormatters=$(w)?w.__datetimeFormatters:void 0,C.__numberFormatters=$(w)?w.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(C.__v_emitter=$(w)?w.__v_emitter:void 0);const L=s5(C);return r&&ai(L),L})(),un(w,o.value,h.value);function ye(){return[o.value,h.value,f.value,m.value,D.value]}const k=Ve({get:()=>o.value,set:C=>{o.value=C,w.locale=o.value}}),ue=Ve({get:()=>h.value,set:C=>{h.value=C,w.fallbackLocale=h.value,un(w,o.value,C)}}),Ie=Ve(()=>f.value),Dn=Ve(()=>m.value),xe=Ve(()=>D.value);function Nn(){return X(g)?g:null}function Sn(C){g=C,w.postTranslation=C}function In(){return A}function Bn(C){C!==null&&(_=Vs(C)),A=C,w.missing=_}function On(C,L){return C!=="translate"||!L.resolvedMessage}const Be=(C,L,G,ne,ht,Ba)=>{ye();let Qt;try{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&ti(gC()),r||(w.fallbackContext=n?i5():void 0),Qt=C(w)}finally{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&ti(null),r||(w.fallbackContext=void 0)}if(G!=="translate exists"&&se(Qt)&&Qt===Xn||G==="translate exists"&&!Qt){const[Ot,xb]=L();if(process.env.NODE_ENV!=="production"&&n&&R(Ot)&&On(G,xb)&&(B&&(zn(y,Ot)||ui(S,Ot))&&oe(be(Y.FALLBACK_TO_ROOT,{key:Ot,type:G})),process.env.NODE_ENV!=="production")){const{__v_emitter:pl}=w;pl&&B&&pl.emit("fallback",{type:G,key:Ot,to:"global",groupId:`${G}:${Ot}`})}return n&&B?ne(n):ht(Ot)}else{if(Ba(Qt))return Qt;throw ce(W.UNEXPECTED_RETURN_TYPE)}};function Xt(...C){return Be(L=>Reflect.apply(mi,null,[L,...C]),()=>Ka(...C),"translate",L=>Reflect.apply(L.t,L,[...C]),L=>L,L=>R(L))}function Jt(...C){const[L,G,ne]=C;if(ne&&!H(ne))throw ce(W.INVALID_ARGUMENT);return Xt(L,G,le({resolvedMessage:!0},ne||{}))}function Ln(...C){return Be(L=>Reflect.apply(vi,null,[L,...C]),()=>Xa(...C),"datetime format",L=>Reflect.apply(L.d,L,[...C]),()=>Jn,L=>R(L))}function wn(...C){return Be(L=>Reflect.apply(bi,null,[L,...C]),()=>Ja(...C),"number format",L=>Reflect.apply(L.n,L,[...C]),()=>Jn,L=>R(L))}function Tn(C){return C.map(L=>R(L)||se(L)||V(L)?ps(String(L)):L)}const Rn={normalize:Tn,interpolate:C=>C,type:"vnode"};function zt(...C){return Be(L=>{let G;const ne=L;try{ne.processor=Rn,G=Reflect.apply(mi,null,[ne,...C])}finally{ne.processor=null}return G},()=>Ka(...C),"translate",L=>L[Br](...C),L=>[ps(L)],L=>z(L))}function pn(...C){return Be(L=>Reflect.apply(bi,null,[L,...C]),()=>Ja(...C),"number format",L=>L[Lr](...C),Ms,L=>R(L)||z(L))}function Pn(...C){return Be(L=>Reflect.apply(vi,null,[L,...C]),()=>Xa(...C),"datetime format",L=>L[Or](...C),Ms,L=>R(L)||z(L))}function Mn(C){O=C,w.pluralRules=O}function T(C,L){return Be(()=>{if(!C)return!1;const G=R(L)?L:o.value,ne=Bt(G),ht=w.messageResolver(ne,C);return s?ht!=null:at(ht)||Ne(ht)||R(ht)},()=>[C],"translate exists",G=>Reflect.apply(G.te,G,[C,L]),EC,G=>V(G))}function q(C){let L=null;const G=Ku(w,h.value,o.value);for(let ne=0;ne<G.length;ne++){const ht=f.value[G[ne]]||{},Ba=w.messageResolver(ht,C);if(Ba!=null){L=Ba;break}}return L}function $n(C){const L=q(C);return L!=null?L:n?n.tm(C)||{}:{}}function Bt(C){return f.value[C]||{}}function Vn(C,L){if(u){const G={[C]:L};for(const ne in G)Wn(G,ne)&&En(G[ne]);L=G[C]}f.value[C]=L,w.messages=f.value}function Eu(C,L){f.value[C]=f.value[C]||{};const G={[C]:L};if(u)for(const ne in G)Wn(G,ne)&&En(G[ne]);L=G[C],qn(L,f.value[C]),w.messages=f.value}function c(C){return m.value[C]||{}}function d(C,L){m.value[C]=L,w.datetimeFormats=m.value,Ci(w,C,L)}function I(C,L){m.value[C]=le(m.value[C]||{},L),w.datetimeFormats=m.value,Ci(w,C,L)}function P(C){return D.value[C]||{}}function ee(C,L){D.value[C]=L,w.numberFormats=D.value,Ai(w,C,L)}function J(C,L){D.value[C]=le(D.value[C]||{},L),w.numberFormats=D.value,Ai(w,C,L)}$s++,n&&Oe&&(Ar(n.locale,C=>{l&&(o.value=C,w.locale=C,un(w,o.value,h.value))}),Ar(n.fallbackLocale,C=>{l&&(h.value=C,w.fallbackLocale=C,un(w,o.value,h.value))}));const K={id:$s,locale:k,fallbackLocale:ue,get inheritLocale(){return l},set inheritLocale(C){l=C,C&&n&&(o.value=n.locale.value,h.value=n.fallbackLocale.value,un(w,o.value,h.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:Ie,get modifiers(){return v},get pluralRules(){return O||{}},get isGlobal(){return r},get missingWarn(){return S},set missingWarn(C){S=C,w.missingWarn=S},get fallbackWarn(){return y},set fallbackWarn(C){y=C,w.fallbackWarn=y},get fallbackRoot(){return B},set fallbackRoot(C){B=C},get fallbackFormat(){return E},set fallbackFormat(C){E=C,w.fallbackFormat=E},get warnHtmlMessage(){return N},set warnHtmlMessage(C){N=C,w.warnHtmlMessage=C},get escapeParameter(){return b},set escapeParameter(C){b=C,w.escapeParameter=C},t:Xt,getLocaleMessage:Bt,setLocaleMessage:Vn,mergeLocaleMessage:Eu,getPostTranslationHandler:Nn,setPostTranslationHandler:Sn,getMissingHandler:In,setMissingHandler:Bn,[Ls]:Mn};return K.datetimeFormats=Dn,K.numberFormats=xe,K.rt=Jt,K.te=T,K.tm=$n,K.d=Ln,K.n=wn,K.getDateTimeFormat=c,K.setDateTimeFormat=d,K.mergeDateTimeFormat=I,K.getNumberFormat=P,K.setNumberFormat=ee,K.mergeNumberFormat=J,K[ws]=a,K[Br]=zt,K[Or]=Pn,K[Lr]=pn,process.env.NODE_ENV!=="production"&&(K[St]=C=>{w.__v_emitter=C},K[_n]=()=>{w.__v_emitter=void 0}),K}function vC(e){const t=R(e.locale)?e.locale:Pt,n=R(e.fallbackLocale)||z(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=X(e.missing)?e.missing:void 0,r=V(e.silentTranslationWarn)||et(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,u=V(e.silentFallbackWarn)||et(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=V(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=$(e.modifiers)?e.modifiers:{},o=e.pluralizationRules,h=X(e.postTranslation)?e.postTranslation:void 0,f=R(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,m=!!e.escapeParameterHtml,D=V(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&oe(be(Y.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&oe(be(Y.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let S=e.messages;if($(e.sharedMessages)){const b=e.sharedMessages;S=Object.keys(b).reduce((O,w)=>{const j=O[w]||(O[w]={});return le(j,b[w]),O},S||{})}const{__i18n:y,__root:B,__injectWithOption:E}=e,A=e.datetimeFormats,_=e.numberFormats,g=e.flatJson,N=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:S,flatJson:g,datetimeFormats:A,numberFormats:_,missing:a,missingWarn:r,fallbackWarn:u,fallbackRoot:i,fallbackFormat:s,modifiers:l,pluralRules:o,postTranslation:h,warnHtmlMessage:f,escapeParameter:m,messageResolver:e.messageResolver,inheritLocale:D,translateExistCompatible:N,__i18n:y,__root:B,__injectWithOption:E}}function Rr(e={},t){{const n=Tr(vC(e)),{__extender:a}=e,r={id:n.id,get locale(){return n.locale.value},set locale(u){n.locale.value=u},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(u){n.fallbackLocale.value=u},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&oe(be(Y.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(u){process.env.NODE_ENV!=="production"&&oe(be(Y.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(u){n.setMissingHandler(u)},get silentTranslationWarn(){return V(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(u){n.missingWarn=V(u)?!u:u},get silentFallbackWarn(){return V(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(u){n.fallbackWarn=V(u)?!u:u},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(u){n.fallbackFormat=u},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(u){n.setPostTranslationHandler(u)},get sync(){return n.inheritLocale},set sync(u){n.inheritLocale=u},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(u){n.warnHtmlMessage=u!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(u){n.escapeParameter=u},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&oe(be(Y.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(u){process.env.NODE_ENV!=="production"&&oe(be(Y.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...u){const[i,s,l]=u,o={};let h=null,f=null;if(!R(i))throw ce(W.INVALID_ARGUMENT);const m=i;return R(s)?o.locale=s:z(s)?h=s:$(s)&&(f=s),z(l)?h=l:$(l)&&(f=l),Reflect.apply(n.t,n,[m,h||f||{},o])},rt(...u){return Reflect.apply(n.rt,n,[...u])},tc(...u){const[i,s,l]=u,o={plural:1};let h=null,f=null;if(!R(i))throw ce(W.INVALID_ARGUMENT);const m=i;return R(s)?o.locale=s:se(s)?o.plural=s:z(s)?h=s:$(s)&&(f=s),R(l)?o.locale=l:z(l)?h=l:$(l)&&(f=l),Reflect.apply(n.t,n,[m,h||f||{},o])},te(u,i){return n.te(u,i)},tm(u){return n.tm(u)},getLocaleMessage(u){return n.getLocaleMessage(u)},setLocaleMessage(u,i){n.setLocaleMessage(u,i)},mergeLocaleMessage(u,i){n.mergeLocaleMessage(u,i)},d(...u){return Reflect.apply(n.d,n,[...u])},getDateTimeFormat(u){return n.getDateTimeFormat(u)},setDateTimeFormat(u,i){n.setDateTimeFormat(u,i)},mergeDateTimeFormat(u,i){n.mergeDateTimeFormat(u,i)},n(...u){return Reflect.apply(n.n,n,[...u])},getNumberFormat(u){return n.getNumberFormat(u)},setNumberFormat(u,i){n.setNumberFormat(u,i)},mergeNumberFormat(u,i){n.mergeNumberFormat(u,i)},getChoiceIndex(u,i){return process.env.NODE_ENV!=="production"&&oe(be(Y.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return r.__extender=a,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=u=>{const i=n;i[St]&&i[St](u)},r.__disableEmitter=()=>{const u=n;u[_n]&&u[_n]()}),r}}const pr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function yC({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,r)=>[...a,...r.type===da?r.children:[r]],[]):t.reduce((n,a)=>{const r=e[a];return r&&(n[a]=r()),n},{})}function ks(e){return da}const Pr=vr({name:"i18n-t",props:le({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>se(e)||!isNaN(e)}},pr),setup(e,t){const{slots:n,attrs:a}=t,r=e.i18n||kr({useScope:e.scope,__useComponent:!0});return()=>{const u=Object.keys(n).filter(f=>f!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=R(e.plural)?+e.plural:e.plural);const s=yC(t,u),l=r[Br](e.keypath,s,i),o=le({},a),h=R(e.tag)||H(e.tag)?e.tag:ks();return Ss(h,o,l)}}});function CC(e){return z(e)&&!R(e[0])}function Us(e,t,n,a){const{slots:r,attrs:u}=t;return()=>{const i={part:!0};let s={};e.locale&&(i.locale=e.locale),R(e.format)?i.key=e.format:H(e.format)&&(R(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((m,D)=>n.includes(D)?le({},m,{[D]:e.format[D]}):m,{}));const l=a(e.value,i,s);let o=[i.key];z(l)?o=l.map((m,D)=>{const S=r[m.type],y=S?S({[m.type]:m.value,index:D,parts:l}):[m.value];return CC(y)&&(y[0].key=`${m.type}-${D}`),y}):R(l)&&(o=[l]);const h=le({},u),f=R(e.tag)||H(e.tag)?e.tag:ks();return Ss(f,h,o)}}const xs=vr({name:"i18n-n",props:le({value:{type:Number,required:!0},format:{type:[String,Object]}},pr),setup(e,t){const n=e.i18n||kr({useScope:e.scope,__useComponent:!0});return Us(e,t,Fi,(...a)=>n[Lr](...a))}}),Ws=vr({name:"i18n-d",props:le({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},pr),setup(e,t){const n=e.i18n||kr({useScope:e.scope,__useComponent:!0});return Us(e,t,yi,(...a)=>n[Or](...a))}});function bC(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return a!=null?a.__composer:e.global.__composer}}function FC(e){const t=i=>{const{instance:s,modifiers:l,value:o}=i;if(!s||!s.$)throw ce(W.UNEXPECTED_ERROR);const h=bC(e,s.$);process.env.NODE_ENV!=="production"&&l.preserve&&oe(be(Y.NOT_SUPPORTED_PRESERVE));const f=Hs(o);return[Reflect.apply(h.t,h,[...js(f)]),h]};return{created:(i,s)=>{const[l,o]=t(s);Oe&&e.global===o&&(i.__i18nWatcher=Ar(o.locale,()=>{s.instance&&s.instance.$forceUpdate()})),i.__composer=o,i.textContent=l},unmounted:i=>{Oe&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:s})=>{if(i.__composer){const l=i.__composer,o=Hs(s);i.textContent=Reflect.apply(l.t,l,[...js(o)])}},getSSRProps:i=>{const[s]=t(i);return{textContent:s}}}}function Hs(e){if(R(e))return{path:e};if($(e)){if(!("path"in e))throw ce(W.REQUIRED_VALUE,"path");return e}else throw ce(W.INVALID_VALUE)}function js(e){const{path:t,locale:n,args:a,choice:r,plural:u}=e,i={},s=a||{};return R(n)&&(i.locale=n),se(r)&&(i.plural=r),se(u)&&(i.plural=u),[t,s,i]}function AC(e,t,...n){const a=$(n[0])?n[0]:{},r=!!a.useI18nComponentName,u=V(a.globalInstall)?a.globalInstall:!0;process.env.NODE_ENV!=="production"&&u&&r&&oe(be(Y.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Pr.name})),u&&([r?"i18n":Pr.name,"I18nT"].forEach(i=>e.component(i,Pr)),[xs.name,"I18nN"].forEach(i=>e.component(i,xs)),[Ws.name,"I18nD"].forEach(i=>e.component(i,Ws))),e.directive("t",FC(t))}const Mr={["vue-devtools-plugin-vue-i18n"]:"Vue I18n devtools",["vue-i18n-resource-inspector"]:"I18n Resources",["vue-i18n-timeline"]:"Vue I18n"},DC={["vue-i18n-resource-inspector"]:"Search for scopes ..."},NC={["vue-i18n-timeline"]:16764185},qs="vue-i18n: composer properties";let $r;function SC(e,t){return Ze(this,null,function*(){return new Promise((n,a)=>{try{fC({id:"vue-devtools-plugin-vue-i18n",label:Mr["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:[qs],app:e},r=>{$r=r,r.on.visitComponentTree(({componentInstance:i,treeNode:s})=>{IC(i,s,t)}),r.on.inspectComponent(({componentInstance:i,instanceData:s})=>{i.vnode.el&&i.vnode.el.__VUE_I18N__&&s&&(t.mode==="legacy"?i.vnode.el.__VUE_I18N__!==t.global.__composer&&Ks(s,i.vnode.el.__VUE_I18N__):Ks(s,i.vnode.el.__VUE_I18N__))}),r.addInspector({id:"vue-i18n-resource-inspector",label:Mr["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:DC["vue-i18n-resource-inspector"]}),r.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&TC(i,t)});const u=new Map;r.on.getInspectorState(i=>Ze(this,null,function*(){if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(r.unhighlightElement(),pC(i,t),i.nodeId==="global"){if(!u.has(i.app)){const[s]=yield r.getComponentInstances(i.app);u.set(i.app,s)}r.highlightElement(u.get(i.app))}else{const s=RC(i.nodeId,t);s&&r.highlightElement(s)}})),r.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&MC(i,t)}),r.addTimelineLayer({id:"vue-i18n-timeline",label:Mr["vue-i18n-timeline"],color:NC["vue-i18n-timeline"]}),n(!0)})}catch(r){console.error(r),a(!1)}})})}function Gs(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function IC(e,t,n){const a=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==a){const r={label:`i18n (${Gs(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(r)}}function Ks(e,t){const n=qs;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:Vr(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 Vr(e){const t={};return Object.keys(e).forEach(n=>{const a=e[n];X(a)&&"source"in a?t[n]=wC(a):at(a)&&a.loc&&a.loc.source?t[n]=a.loc.source:H(a)?t[n]=Vr(a):t[n]=a}),t}const BC={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function OC(e){return e.replace(/[<>"&]/g,LC)}function LC(e){return BC[e]||e}function wC(e){const t=e.source?`("${OC(e.source)}")`:"(?)";return{_custom:{type:"function",display:`<span>\u0192</span> ${t}`}}}function TC(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[a,r]of t.__instances){const u=t.mode==="composition"?r:r.__composer;n!==u&&e.rootNodes.push({id:u.id.toString(),label:`${Gs(a)} Scope`})}}function RC(e,t){let n=null;if(e!=="global"){for(const[a,r]of t.__instances.entries())if(r.id.toString()===e){n=a;break}}return n}function Xs(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(a=>a.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function pC(e,t){const n=Xs(e.nodeId,t);return n&&(e.state=PC(n)),null}function PC(e){const t={},n="Locale related info",a=[{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]=a;const r="Locale messages info",u=[{type:r,key:"messages",editable:!1,value:Vr(e.messages.value)}];t[r]=u;{const i="Datetime formats info",s=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=s;const l="Datetime formats info",o=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[l]=o}return t}function gn(e,t){if($r){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),$r.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 MC(e,t){const n=Xs(e.nodeId,t);if(n){const[a]=e.path;a==="locale"&&R(e.state.value)?n.locale.value=e.state.value:a==="fallbackLocale"&&(R(e.state.value)||z(e.state.value)||H(e.state.value))?n.fallbackLocale.value=e.state.value:a==="inheritLocale"&&V(e.state.value)&&(n.inheritLocale=e.state.value)}}function $C(e,t,n){return{beforeCreate(){const a=jt();if(!a)throw ce(W.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const u=r.i18n;if(r.__i18n&&(u.__i18n=r.__i18n),u.__root=t,this===this.$root)this.$i18n=Js(e,u);else{u.__injectWithOption=!0,u.__extender=n.__vueI18nExtend,this.$i18n=Rr(u);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Js(e,r);else{this.$i18n=Rr({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const u=this.$i18n;u.__extender&&(u.__disposer=u.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Rs(t,r,r),this.$t=(...u)=>this.$i18n.t(...u),this.$rt=(...u)=>this.$i18n.rt(...u),this.$tc=(...u)=>this.$i18n.tc(...u),this.$te=(u,i)=>this.$i18n.te(u,i),this.$d=(...u)=>this.$i18n.d(...u),this.$n=(...u)=>this.$i18n.n(...u),this.$tm=u=>this.$i18n.tm(u),n.__setInstance(a,this.$i18n)},mounted(){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const r=this.__v_emitter=Ua();a.__enableEmitter&&a.__enableEmitter(r),r.on("*",gn)}},unmounted(){const a=jt();if(!a)throw ce(W.UNEXPECTED_ERROR);const r=this.$i18n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",gn),delete this.__v_emitter),this.$i18n&&(r.__disableEmitter&&r.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(a),delete this.$i18n}}}function Js(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[Ls](t.pluralizationRules||e.pluralizationRules);const n=Ea(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(a=>e.mergeLocaleMessage(a,n[a])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a])),t.numberFormats&&Object.keys(t.numberFormats).forEach(a=>e.mergeNumberFormat(a,t.numberFormats[a])),e}const VC=Le("global-vue-i18n");function kC(e={},t){const n=__VUE_I18N_LEGACY_API__&&V(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,a=V(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,u=new Map,[i,s]=UC(e,n),l=Le(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&r&&oe(be(Y.NOTICE_DROP_ALLOW_COMPOSITION));function o(m){return u.get(m)||null}function h(m,D){u.set(m,D)}function f(m){u.delete(m)}{let D;const m={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},install(S,...y){return Ze(this,null,function*(){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&(S.__VUE_I18N__=m),S.__VUE_I18N_SYMBOL__=l,S.provide(S.__VUE_I18N_SYMBOL__,m),$(y[0])){const A=y[0];m.__composerExtend=A.__composerExtend,m.__vueI18nExtend=A.__vueI18nExtend}let B=null;!n&&a&&(B=JC(S,m.global)),__VUE_I18N_FULL_INSTALL__&&AC(S,m,...y),__VUE_I18N_LEGACY_API__&&n&&S.mixin($C(s,s.__composer,m));const E=S.unmount;if(S.unmount=()=>{B&&B(),m.dispose(),E()},process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__){if(!(yield SC(S,m)))throw ce(W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const _=Ua();if(n){const g=s;g.__enableEmitter&&g.__enableEmitter(_)}else{const g=s;g[St]&&g[St](_)}_.on("*",gn)}})},get global(){return s},dispose(){i.stop()},__instances:u,__getInstance:o,__setInstance:h,__deleteInstance:f};return m}}function kr(e={}){const t=jt();if(t==null)throw ce(W.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ce(W.NOT_INSTALLED);const n=xC(t),a=HC(n),r=Ts(t),u=WC(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw ce(W.NOT_AVAILABLE_IN_LEGACY_MODE);return KC(t,u,a,e)}if(u==="global")return Rs(a,e,r),a;if(u==="parent"){let l=jC(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&oe(be(Y.NOT_FOUND_PARENT_SCOPE)),l=a),l}const i=n;let s=i.__getInstance(t);if(s==null){const l=le({},e);"__i18n"in r&&(l.__i18n=r.__i18n),a&&(l.__root=a),s=Tr(l),i.__composerExtend&&(s[wr]=i.__composerExtend(s)),GC(i,t,s),i.__setInstance(t,s)}return s}function UC(e,t,n){const a=p5();{const r=__VUE_I18N_LEGACY_API__&&t?a.run(()=>Rr(e)):a.run(()=>Tr(e));if(r==null)throw ce(W.UNEXPECTED_ERROR);return[a,r]}}function xC(e){{const t=hs(e.isCE?VC:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ce(e.isCE?W.NOT_INSTALLED_WITH_PROVIDE:W.UNEXPECTED_ERROR);return t}}function WC(e,t){return xn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function HC(e){return e.mode==="composition"?e.global:e.global.__composer}function jC(e,t,n=!1){let a=null;const r=t.root;let u=qC(t,n);for(;u!=null;){const i=e;if(e.mode==="composition")a=i.__getInstance(u);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(u);s!=null&&(a=s.__composer,n&&a&&!a[ws]&&(a=null))}if(a!=null||r===u)break;u=u.parent}return a}function qC(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function GC(e,t,n){let a=null;Iy(()=>{if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=Ua();const r=n;r[St]&&r[St](a),a.on("*",gn)}},t),By(()=>{const r=n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",gn),r[_n]&&r[_n](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const u=r[wr];u&&(u(),delete r[wr])},t)}function KC(e,t,n,a={}){const r=t==="local",u=Yi(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ce(W.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=V(a.inheritLocale)?a.inheritLocale:!R(a.locale),s=kt(!r||i?n.locale.value:R(a.locale)?a.locale:Pt),l=kt(!r||i?n.fallbackLocale.value:R(a.fallbackLocale)||z(a.fallbackLocale)||$(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:s.value),o=kt(Ea(s.value,a)),h=kt($(a.datetimeFormats)?a.datetimeFormats:{[s.value]:{}}),f=kt($(a.numberFormats)?a.numberFormats:{[s.value]:{}}),m=r?n.missingWarn:V(a.missingWarn)||et(a.missingWarn)?a.missingWarn:!0,D=r?n.fallbackWarn:V(a.fallbackWarn)||et(a.fallbackWarn)?a.fallbackWarn:!0,S=r?n.fallbackRoot:V(a.fallbackRoot)?a.fallbackRoot:!0,y=!!a.fallbackFormat,B=X(a.missing)?a.missing:null,E=X(a.postTranslation)?a.postTranslation:null,A=r?n.warnHtmlMessage:V(a.warnHtmlMessage)?a.warnHtmlMessage:!0,_=!!a.escapeParameter,g=r?n.modifiers:$(a.modifiers)?a.modifiers:{},N=a.pluralRules||r&&n.pluralRules;function b(){return[s.value,l.value,o.value,h.value,f.value]}const v=Ve({get:()=>u.value?u.value.locale.value:s.value,set:T=>{u.value&&(u.value.locale.value=T),s.value=T}}),O=Ve({get:()=>u.value?u.value.fallbackLocale.value:l.value,set:T=>{u.value&&(u.value.fallbackLocale.value=T),l.value=T}}),w=Ve(()=>u.value?u.value.messages.value:o.value),j=Ve(()=>h.value),ye=Ve(()=>f.value);function k(){return u.value?u.value.getPostTranslationHandler():E}function ue(T){u.value&&u.value.setPostTranslationHandler(T)}function Ie(){return u.value?u.value.getMissingHandler():B}function Dn(T){u.value&&u.value.setMissingHandler(T)}function xe(T){return b(),T()}function Nn(...T){return u.value?xe(()=>Reflect.apply(u.value.t,null,[...T])):xe(()=>"")}function Sn(...T){return u.value?Reflect.apply(u.value.rt,null,[...T]):""}function In(...T){return u.value?xe(()=>Reflect.apply(u.value.d,null,[...T])):xe(()=>"")}function Bn(...T){return u.value?xe(()=>Reflect.apply(u.value.n,null,[...T])):xe(()=>"")}function On(T){return u.value?u.value.tm(T):{}}function Be(T,q){return u.value?u.value.te(T,q):!1}function Xt(T){return u.value?u.value.getLocaleMessage(T):{}}function Jt(T,q){u.value&&(u.value.setLocaleMessage(T,q),o.value[T]=q)}function Ln(T,q){u.value&&u.value.mergeLocaleMessage(T,q)}function wn(T){return u.value?u.value.getDateTimeFormat(T):{}}function Tn(T,q){u.value&&(u.value.setDateTimeFormat(T,q),h.value[T]=q)}function Ia(T,q){u.value&&u.value.mergeDateTimeFormat(T,q)}function Rn(T){return u.value?u.value.getNumberFormat(T):{}}function zt(T,q){u.value&&(u.value.setNumberFormat(T,q),f.value[T]=q)}function pn(T,q){u.value&&u.value.mergeNumberFormat(T,q)}const Pn={get id(){return u.value?u.value.id:-1},locale:v,fallbackLocale:O,messages:w,datetimeFormats:j,numberFormats:ye,get inheritLocale(){return u.value?u.value.inheritLocale:i},set inheritLocale(T){u.value&&(u.value.inheritLocale=T)},get availableLocales(){return u.value?u.value.availableLocales:Object.keys(o.value)},get modifiers(){return u.value?u.value.modifiers:g},get pluralRules(){return u.value?u.value.pluralRules:N},get isGlobal(){return u.value?u.value.isGlobal:!1},get missingWarn(){return u.value?u.value.missingWarn:m},set missingWarn(T){u.value&&(u.value.missingWarn=T)},get fallbackWarn(){return u.value?u.value.fallbackWarn:D},set fallbackWarn(T){u.value&&(u.value.missingWarn=T)},get fallbackRoot(){return u.value?u.value.fallbackRoot:S},set fallbackRoot(T){u.value&&(u.value.fallbackRoot=T)},get fallbackFormat(){return u.value?u.value.fallbackFormat:y},set fallbackFormat(T){u.value&&(u.value.fallbackFormat=T)},get warnHtmlMessage(){return u.value?u.value.warnHtmlMessage:A},set warnHtmlMessage(T){u.value&&(u.value.warnHtmlMessage=T)},get escapeParameter(){return u.value?u.value.escapeParameter:_},set escapeParameter(T){u.value&&(u.value.escapeParameter=T)},t:Nn,getPostTranslationHandler:k,setPostTranslationHandler:ue,getMissingHandler:Ie,setMissingHandler:Dn,rt:Sn,d:In,n:Bn,tm:On,te:Be,getLocaleMessage:Xt,setLocaleMessage:Jt,mergeLocaleMessage:Ln,getDateTimeFormat:wn,setDateTimeFormat:Tn,mergeDateTimeFormat:Ia,getNumberFormat:Rn,setNumberFormat:zt,mergeNumberFormat:pn};function Mn(T){T.locale.value=s.value,T.fallbackLocale.value=l.value,Object.keys(o.value).forEach(q=>{T.mergeLocaleMessage(q,o.value[q])}),Object.keys(h.value).forEach(q=>{T.mergeDateTimeFormat(q,h.value[q])}),Object.keys(f.value).forEach(q=>{T.mergeNumberFormat(q,f.value[q])}),T.escapeParameter=_,T.fallbackFormat=y,T.fallbackRoot=S,T.fallbackWarn=D,T.missingWarn=m,T.warnHtmlMessage=A}return Sy(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ce(W.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const T=u.value=e.proxy.$i18n.__composer;t==="global"?(s.value=T.locale.value,l.value=T.fallbackLocale.value,o.value=T.messages.value,h.value=T.datetimeFormats.value,f.value=T.numberFormats.value):r&&Mn(T)}),Pn}const XC=["locale","fallbackLocale","availableLocales"],zs=["t","rt","d","n","tm","te"];function JC(e,t){const n=Object.create(null);return XC.forEach(r=>{const u=Object.getOwnPropertyDescriptor(t,r);if(!u)throw ce(W.UNEXPECTED_ERROR);const i=Ce(u.value)?{get(){return u.value.value},set(s){u.value.value=s}}:{get(){return u.get&&u.get()}};Object.defineProperty(n,r,i)}),e.config.globalProperties.$i18n=n,zs.forEach(r=>{const u=Object.getOwnPropertyDescriptor(t,r);if(!u||!u.value)throw ce(W.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,u)}),()=>{delete e.config.globalProperties.$i18n,zs.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}if(mC(),__INTLIFY_JIT_COMPILATION__?Qu(d5):Qu(f5),a5($v),r5(Ku),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=He();e.__INTLIFY__=!0,Gv(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const zC=(e,t)=>{var i;const n=e.split(".");let a;const r=((i=window.baitedaWorkers)==null?void 0:i.languageMessages)||{};n.forEach((s,l)=>{l===0?a=r[s]:a&&(a=a[s])});let u="";return a&&(u=a),t&&Object.keys(t).forEach(s=>{const l=t[s];u=u.replace(new RegExp(`\\{\\s*${s}\\s*\\}`),l)}),u||(u=e),u};function QC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qs(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function ZC(e,t,n){return t&&Qs(e.prototype,t),n&&Qs(e,n),e}function YC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(){function e(){QC(this,e)}return ZC(e,null,[{key:"getMessage",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r;return(r=zC("engine."+n))!==null&&r!==void 0?r:this.$i18n.global.t(n,a)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tg;return kC({locale:n,globalInjection:!0,silentFallbackWarn:!0,missingWarn:!1,fallbackWarn:!1,silentTranslationWarn:!0})}},{key:"setLocale",value:function(n,a){var r=a;a||(r=wg.zhCN),this.$i18n.global.setLocaleMessage(n,r)}}]),e}();YC(p,"$i18n",p.resetI18n());function e3(e,t,n){var a=t.replace(/\[(\d)]/g,function(u,i){return"."+i}).split("."),r=!1;return a.reduce(function(u,i,s,l){var o=u;if(!!u){if(!Object.prototype.hasOwnProperty.call(u,i)){Ma("Can not set ".concat(t,"'s ").concat(i," property in current %o, Because there is no ").concat(i," property on the %o"),u,u);return}return s===l.length-1&&!Object.is(o[i],n)&&(o[i]=n,r=!0),o[i]}},e),r}var t3=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},n3={exports:{}};(function(e){(function(t){var n=function(E,A,_){if(!o(A)||f(A)||m(A)||D(A)||l(A))return A;var g,N=0,b=0;if(h(A))for(g=[],b=A.length;N<b;N++)g.push(n(E,A[N],_));else{g={};for(var v in A)Object.prototype.hasOwnProperty.call(A,v)&&(g[E(v,_)]=n(E,A[v],_))}return g},a=function(E,A){A=A||{};var _=A.separator||"_",g=A.split||/(?=[A-Z])/;return E.split(g).join(_)},r=function(E){return S(E)?E:(E=E.replace(/[\-_\s]+(.)?/g,function(A,_){return _?_.toUpperCase():""}),E.substr(0,1).toLowerCase()+E.substr(1))},u=function(E){var A=r(E);return A.substr(0,1).toUpperCase()+A.substr(1)},i=function(E,A){return a(E,A).toLowerCase()},s=Object.prototype.toString,l=function(E){return typeof E=="function"},o=function(E){return E===Object(E)},h=function(E){return s.call(E)=="[object Array]"},f=function(E){return s.call(E)=="[object Date]"},m=function(E){return s.call(E)=="[object RegExp]"},D=function(E){return s.call(E)=="[object Boolean]"},S=function(E){return E=E-0,E===E},y=function(E,A){var _=A&&"process"in A?A.process:A;return typeof _!="function"?E:function(g,N){return _(g,E,N)}},B={camelize:r,decamelize:i,pascalize:u,depascalize:i,camelizeKeys:function(E,A){return n(y(r,A),E)},decamelizeKeys:function(E,A){return n(y(i,A),E,A)},pascalizeKeys:function(E,A){return n(y(u,A),E)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=B:t.humps=B})(t3)})(n3);var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});function Ur(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(t=>typeof t!="object"||t===null?t:Ur(t));{const t={};for(const n in e){const a=e[n];t[n]=typeof a!="object"||a===null?a:Ur(a)}return t}}var a3=Zs.default=Ur;function r3(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Xe(e){if(e!==void 0)return(typeof e=="undefined"?"undefined":r3(e))==="object"?a3(e):e}function u3(e){return Object.prototype.toString.call(e)==="[object Object]"}function i3(e){return Array.isArray(e)}function s3(e){return e.reduce(function(t,n){return t.includes(n)||t.push(n),t},[])}function xr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function l3(e){if(Array.isArray(e))return xr(e)}function Ys(e,t,n,a,r,u,i){try{var s=e[u](i),l=s.value}catch(o){n(o);return}s.done?t(l):Promise.resolve(l).then(a,r)}function o3(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var u=e.apply(t,n);function i(l){Ys(u,a,r,i,s,"next",l)}function s(l){Ys(u,a,r,i,s,"throw",l)}i(void 0)})}}function c3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function el(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function f3(e,t,n){return t&&el(e.prototype,t),n&&el(e,n),e}function tl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d3(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function m3(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Wr(e){return l3(e)||d3(e)||h3(e)||m3()}function h3(e,t){if(!!e){if(typeof e=="string")return xr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xr(e,t)}}function _3(e,t){var n,a,r,u,i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(o){return function(h){return l([o,h])}}function l(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,a&&(r=o[0]&2?a.return:o[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;switch(a=0,r&&(o=[o[0]&2,r.value]),o[0]){case 0:case 1:r=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,a=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1],r=o;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(o);break}r[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(h){o=[6,h],a=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}var E3=function(){function e(){c3(this,e),tl(this,"_events",new Map),tl(this,"debug",!1)}return f3(e,[{key:"emit",value:function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),u=1;u<a;u++)r[u-1]=arguments[u];var i=this;return o3(function(){var s,l,o,h,f,m,D,S,y,B,E,A;return _3(this,function(_){switch(_.label){case 0:if(s=i._events.get(n),l=[],!s)return[3,10];o=s.slice(),h=!0,f=!1,m=void 0,_.label=1;case 1:_.trys.push([1,8,9,10]),D=o[Symbol.iterator](),_.label=2;case 2:if(h=(S=D.next()).done)return[3,7];if(y=S.value,!s.includes(y))return[3,6];_.label=3;case 3:return _.trys.push([3,5,,6]),i.debug&&Lu.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(y.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+y.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(r.map(function(){return"%o"}).join(","),"\u3002")].concat(Wr(r))),[4,y.apply(null,Wr(r))];case 4:return B=_.sent(),i.debug&&Lu.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(y.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+y.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(r.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(Wr(r),[B])),l.push(B),B===!1?[3,7]:[3,6];case 5:return E=_.sent(),jg(String(E)+":"+String(E.stack)),[3,6];case 6:return h=!0,[3,2];case 7:return[3,10];case 8:return A=_.sent(),f=!0,m=A,[3,10];case 9:try{!h&&D.return!=null&&D.return()}finally{if(f)throw m}return[7];case 10:return[2,l]}})})()}},{key:"on",value:function(n,a){if(this._events.has(n)){var r;(r=this._events.get(n))===null||r===void 0||r.push(a)}else this._events.set(n,[a])}},{key:"off",value:function(n,a){if(this._events.has(n)){var r=this._events.get(n),u=r==null?void 0:r.indexOf(a);r==null||r.splice(u,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),e}();function g3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nl(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function v3(e,t,n){return t&&nl(e.prototype,t),n&&nl(e,n),e}function y3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C3=[{key:"on_click",name:p.getMessage("click"),code:"click"},{key:"on_click_finish",name:p.getMessage("finished"),code:"click-finish"},{key:"on_change",name:p.getMessage("valueChange"),code:"change"},{key:"on_search",name:p.getMessage("search"),code:"search"},{key:"on_list_change",name:p.getMessage("listDataChange"),code:"list-change"},{key:"on_list_search",name:p.getMessage("listDataCreate"),code:"list-search"},{key:"on_list_mounted",name:p.getMessage("listDataBack"),code:"list-mounted"},{key:"on_list_delete",name:p.getMessage("listDataDelete"),code:"list-delete"},{key:"on_list_before_insert",name:p.getMessage("listDataAdd"),code:"list-before-insert"},{key:"on_input",name:p.getMessage("onInput"),code:"input"},{key:"on_blur",name:p.getMessage("onBlur"),code:"blur"},{key:"on_focus",name:p.getMessage("onFocus"),code:"focus"},{key:"on_wps_open",name:p.getMessage("onOpenFile"),code:"wps-open"},{key:"on_wps_save",name:p.getMessage("onSaveFile"),code:"wps-save"},{key:"on_wps_rename",name:p.getMessage("rename"),code:"wps-rename"},{key:"on_list_actions",name:p.getMessage("onClickBtn"),code:"list-actions"},{key:"on_list_render_operation",name:p.getMessage("cellRender"),code:"list-render-operation"},{key:"on_list_rowclick",name:p.getMessage("rowClick"),code:"list-rowclick"},{key:"on_list_before_rowdelete",name:p.getMessage("rowDelete"),code:"list-before-rowdelete"},{key:"on_list_before_import",name:p.getMessage("listDataImport"),code:"list-before-import"},{key:"on_list_rows_checked",name:p.getMessage("rowSelected"),code:"list-rows-checked"},{key:"on_change_tab",name:p.getMessage("tabChange"),code:"change-tab"},{key:"on_modal_ok",name:p.getMessage("modalConfirm"),code:"modal-ok"}],b3=function(){function e(){g3(this,e)}return v3(e,null,[{key:"getEventsFromKeys",value:function(n){var a=typeof n=="string"?[n]:n;return e.events.filter(function(r){return a.includes(r.key)})}},{key:"getEventsFromControl",value:function(n){var a=[],r=n.eventKeys;a=a.concat(e.events.filter(function(i){return r.includes(i.key)}));var u=n.customEvents.map(function(i){var s=i.key;return i.namespace!==void 0&&i.namespace!==null&&i.namespace!==""&&(s=i.namespace+":"+i.key),{key:s,code:i.key,name:i.name}});return a=a.concat(u),a}}]),e}();y3(b3,"events",C3);function ga(e,t){var n;(n=Object.getOwnPropertyDescriptors(e)[t])!=null&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function Hr(e,t,n){n!=="Runtime"&&(e.parent=t,ga(e,"parent"))}function al(e,t,n){e.forEach(a=>{Hr(a,t,n)})}const rl=Symbol("targetKey");function ul(e){var t;return(t=e[rl])!=null?t:e}function il(e,t,n){return al(e,t,n),new Proxy(e,{get(a,r,...u){return r===rl?a:Reflect.get(a,r,...u)},set(a,r,u,...i){if(i3(e)&&r==="length"&&u===e.length)return!0;const s=Reflect.set(a,r,u,...i);return u3(u)&&Hr(u,t,n),s}})}function dt(e,t,n,a,r){const u=a!=null?a:e;let i=il(ul(n!=null?n:[]),u,r);Object.defineProperty(e,t,{get(){return i},set(s){i=il(ul(s),u,r)},enumerable:!0})}const sl=[],jr=class{constructor(e){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=e,this._initControls(e)}static staticGetRules(e,t){const n=jr.staticControlsRuntimeRules.get(e);let a=[];if(n){const r=new n(t);a=Array.from(r)}return a}registerControlConfig(e,t){return this.controlConfigMap.set(e,t),this}getControlConfig(e){return this.controlConfigMap.get(e)}static register(e,t){const{Designer:n,Runtime:a,Property:r}=e;(!n||!a||!n.__is_control__||!a.__is_control__)&&Va(`${e} is can't register as a Control`);const u=this.staticControls.findIndex(i=>i.Designer.controlType===n.controlType);return u>-1&&(Ma(`The ${n.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(u,1)),this.staticRegisteredTypes.add(n.controlType),this.staticControls.push(e),r.mode=t,this}getControls(){return this._controls}register(e){e.__is_control__||Va(`${e.name} is not a Control`);const t=this._controls.findIndex(n=>n.controlType===e.controlType);return t>-1&&(Ma(`The ${e.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(t,1)),this.registeredControlTypes.add(e.controlType),this._controls.push(e),this}isLayoutControl(e){return e.controlType===wt.LAYOUT}isFormControl(e){return e.controlType===wt.FORM}isListControl(e){return e.controlType===wt.LIST}isColumnControl(e){return e.controlType===wt.COLUMN}createControl(e,t){if(Array.isArray(e))return e.map(a=>this.createControl(a,t));if(e.children&&(e.children=e.children.map(a=>this.createControl(a,t))),this.isListControl(e)){const a=e.props;a.headers&&(a.headers=a.headers.map(r=>this.createControl(r,t)))}const n=this.getControlFormType(e.type);if(n){let a=e;if(typeof t=="function"){const u=t(a);u&&(a=u)}let r;return n.mode==="Runtime"?(r=a,r.fieldType=n.controlFieldType,this._setParentPrototypeToSchema(r,this)):r=new n(a),r}else Va(`The constructor of ${e.type} could not be found, please confirm that the constructor has been registered`)}resetInstanceParent(e,t){delete e.parent,Object.defineProperty(e,"parent",{configurable:!0,get(){return t}}),ga(e,"parent")}_setParentPrototypeToSchema(e,t){t._type==="Runtime"&&(Object.defineProperty(e,"parent",{configurable:!0,get(){const n=e.id,a=t._controlParentIdMap,r=t.instanceMap;if(!a||!r)return;const u=a[n],i=r[n];if(!u&&!i)return;const s=i.findIndex(h=>h==e),l=r[u]||[];let o;return l.length!==i.length?o=l[0]:o=l[s],o}}),ga(e,"parent"))}createControlInstance(e,t){const n=this.getControlFormType(e);if(n)return new n(t)}getControlFormType(e){return this._controls.find(t=>t.controlType===e)}_initControls(e){this.constructor.staticControls.forEach(t=>{this.register(t[e]),jr.staticControlsRuntimeRules.set(t.Runtime.controlType,t.Property.RuntimeRules),t.Property.mode=e})}};let vn=jr;vn.staticControlsRuntimeRules=new Map,vn.staticControls=sl,vn.staticRegisteredTypes=new Set(sl.map(e=>e.Designer.controlType)),vn.staticRegisteredConfigs=new Map;class ke{constructor(t){var n,a,r;this.dataCode=(n=t==null?void 0:t.dataCode)!=null?n:"",this.fieldCode=(a=t==null?void 0:t.fieldCode)!=null?a:"",this.fieldType=(r=t==null?void 0:t.fieldType)!=null?r:"",this.aliasCode=t==null?void 0:t.aliasCode}}class qr{constructor(t){var n,a;this.minWidth=(n=t==null?void 0:t.minWidth)!=null?n:150,this.maxWidth=t==null?void 0:t.maxWidth,this.flex=(a=t==null?void 0:t.flex)!=null?a:1}}class Gr{constructor(t){var n,a,r,u;this.rowHeightType=(n=t==null?void 0:t.rowHeightType)!=null?n:"fixed",this.minRows=(a=t==null?void 0:t.minRows)!=null?a:4,this.maxRows=(r=t==null?void 0:t.maxRows)!=null?r:20,this.fiexdRow=(u=t==null?void 0:t.fiexdRow)!=null?u:4}}class F3{constructor(t){this.pc=new Gr(t==null?void 0:t.pc),this.mobile=new Gr(t==null?void 0:t.mobile)}}class va extends qr{constructor(t){var n,a;super(t),this.width=(n=t==null?void 0:t.width)!=null?n:240,this.widthType=(a=t==null?void 0:t.widthType)!=null?a:"auto"}}class A3{constructor(t){this.pc=new va(t==null?void 0:t.pc),this.mobile=t!=null&&t.mobile?new va(t==null?void 0:t.mobile):new va({width:130,minWidth:180})}}class D3{constructor(t){var n,a;this.type=(n=t==null?void 0:t.type)!=null?n:"firstThree",this.customOptions=(a=t==null?void 0:t.customOptions)!=null?a:[]}}class ya{constructor(t){var n,a,r;this.dataCode=(n=t==null?void 0:t.dataCode)!=null?n:"",this.formKey=(a=t==null?void 0:t.formKey)!=null?a:"",this.appId=(r=t==null?void 0:t.appId)!=null?r:""}}class N3 extends ya{constructor(t){var n;super(t),this.primaryControlId=(n=t==null?void 0:t.primaryControlId)!=null?n:""}}class ll{constructor(t){var n,a;this.fieldCode=(n=t==null?void 0:t.fieldCode)!=null?n:"",this.dataCode=(a=t==null?void 0:t.dataCode)!=null?a:""}}class S3{constructor(t){var n,a,r,u;this.appId=(n=t==null?void 0:t.appId)!=null?n:"",this.formKey=(a=t==null?void 0:t.formKey)!=null?a:"",this.headers=(u=(r=t==null?void 0:t.headers)==null?void 0:r.map(i=>new ll(i)))!=null?u:[]}}class ol{constructor(t){var n,a,r;this.fieldName=(n=t==null?void 0:t.fieldName)!=null?n:"",this.fieldCode=(a=t==null?void 0:t.fieldCode)!=null?a:"",this.fieldType=(r=t==null?void 0:t.fieldType)!=null?r:en.VARCHAR}}class cl extends ya{constructor(t){var n,a,r,u;super(t),this.title=(n=t==null?void 0:t.title)!=null?n:"",this.svcCode=(a=t==null?void 0:t.svcCode)!=null?a:"",this.isOpenFilter=(r=t==null?void 0:t.isOpenFilter)!=null?r:!1,this.filters=(u=t==null?void 0:t.filters)!=null?u:[]}}class I3{constructor(t){var n,a,r,u;this.type="sublist-page",this.formBind=new ya(t==null?void 0:t.formBind),this.displayFields=(a=(n=t==null?void 0:t.displayFields)==null?void 0:n.map(i=>new ol(i)))!=null?a:[],this.sublists=(u=(r=t==null?void 0:t.sublists)==null?void 0:r.map(i=>new cl(i)))!=null?u:[]}}class fl{constructor(t){this.type=t==null?void 0:t.type,this.value=t==null?void 0:t.value,this.dataCode=t==null?void 0:t.dataCode}}class Kr{constructor(t){var n,a,r;this.type=(n=t==null?void 0:t.type)!=null?n:"custom",this.value=(a=t==null?void 0:t.value)!=null?a:[],this.displayBos=(r=t==null?void 0:t.displayBos)!=null?r:[]}}class Gt{constructor(t){var n,a,r,u;this.type="conditions",this.id=(n=t==null?void 0:t.id)!=null?n:Ye(),this.ruleId=(a=t==null?void 0:t.ruleId)!=null?a:new Date().valueOf(),this.level=(r=t==null?void 0:t.level)!=null?r:0,this.value=(u=t==null?void 0:t.value)!=null?u:"and",this.children=[],Array.isArray(t==null?void 0:t.children)&&(t==null||t.children.map(i=>{var s,l;if(i.children!==void 0){const o=new Gt(i);(s=this.children)==null||s.push(o)}else{const o=new yn(i);(l=this.children)==null||l.push(o)}}))}}class yn{constructor(t){var n,a,r,u,i;this.type="condition",this.id=(n=t==null?void 0:t.id)!=null?n:Ye(),this.ruleId=(a=t==null?void 0:t.ruleId)!=null?a:new Date().valueOf(),this.symbol=(r=t==null?void 0:t.symbol)!=null?r:"",this.checked=(u=t==null?void 0:t.checked)!=null?u:!1,this.describe=(i=t==null?void 0:t.describe)!=null?i:"",this.leftVariableBo=new fl(t==null?void 0:t.leftVariableBo),this.rightVariableBo=new Kr(t==null?void 0:t.rightVariableBo)}}class B3{constructor(t){var n,a;this.aliasCode=(n=t==null?void 0:t.aliasCode)!=null?n:"",this.datasourceBind=new Ca(t==null?void 0:t.datasourceBind),this.relationFields=(a=t==null?void 0:t.relationFields)!=null?a:[]}}class dl{constructor(t){var n,a,r,u;this.controlId=(n=t==null?void 0:t.controlId)!=null?n:"",this.fieldCode=(a=t==null?void 0:t.fieldCode)!=null?a:"",this.fieldType=(r=t==null?void 0:t.fieldType)!=null?r:"",this.propName=(u=t==null?void 0:t.propName)!=null?u:""}}class Xr{constructor(t){var n,a;this.type=(n=t==null?void 0:t.type)!=null?n:"FIELD",this.value=(a=t==null?void 0:t.value)!=null?a:"",this.fieldType=t==null?void 0:t.fieldType}}class O3{constructor(t){var n,a;this.title=(n=t==null?void 0:t.title)!=null?n:"",this.displayBoList=(a=t==null?void 0:t.displayBoList)!=null?a:[]}}class Jr{constructor(t){var n,a;this.columnName=(n=t.columnName)!=null?n:"",this.desc=(a=t.desc)!=null?a:!1}}class ml{constructor(t){var n,a,r;this.code=(n=t.code)!=null?n:"",this.value=(a=t.value)!=null?a:"",this.field_type=(r=t.field_type)!=null?r:en.ANY}}class L3{constructor(t){var n,a,r,u,i,s,l;this.id=(n=t.id)!=null?n:"",this.limit=(a=t.limit)!=null?a:20,this.formKey=(r=t.formKey)!=null?r:"",this.orders=(i=(u=t.orders)==null?void 0:u.map(o=>new Jr(o)))!=null?i:[],this.dataSet=(l=(s=t.dataSet)==null?void 0:s.map(o=>new ml(o)))!=null?l:[]}}function zr(e){var t,n,a,r,u,i;this.filters=(n=(t=e==null?void 0:e.filters)==null?void 0:t.map(s=>s.children!==void 0?new Gt(s):new yn(s)))!=null?n:[],this.viewFilters=(r=(a=e==null?void 0:e.viewFilters)==null?void 0:a.map(s=>s.children!==void 0?new Gt(s):new yn(s)))!=null?r:[],this.orders=(i=(u=e==null?void 0:e.orders)==null?void 0:u.map(s=>new Jr(s)))!=null?i:[]}class Ca{constructor(t){var n,a,r,u,i,s,l;this.dataCode=(n=t==null?void 0:t.dataCode)!=null?n:"",this.appId=(a=t==null?void 0:t.appId)!=null?a:"",this.valueFieldCode=(r=t==null?void 0:t.valueFieldCode)!=null?r:"",this.displayBoList=[],this.isOpenViewFilters=(u=t==null?void 0:t.isOpenViewFilters)!=null?u:0,Array.isArray(t==null?void 0:t.displayBoList)&&(t==null||t.displayBoList.map(o=>{var h;(h=this.displayBoList)==null||h.push(new Xr(o))})),this.keywordMapping=(i=t==null?void 0:t.keywordMapping)!=null?i:"",this.showOrder=(s=t==null?void 0:t.showOrder)!=null?s:!0,this.svcCode=(l=t==null?void 0:t.svcCode)!=null?l:"",zr.call(this,t)}}class w3{constructor(t){var n,a;this.dataCode=(n=t==null?void 0:t.dataCode)!=null?n:"",this.displayBoList=(a=t==null?void 0:t.displayBoList)!=null?a:[]}}class T3{constructor(t){var n,a,r,u,i,s,l,o,h,f;this.code=(n=t==null?void 0:t.code)!=null?n:"view",this.color=(a=t==null?void 0:t.color)!=null?a:"primary",this.command=(r=t==null?void 0:t.command)!=null?r:"view",this.confirmMessage=(u=t==null?void 0:t.confirmMessage)!=null?u:void 0,this.defaultState=(i=t==null?void 0:t.defaultState)!=null?i:"default",this.formKey=(s=t==null?void 0:t.formKey)!=null?s:void 0,this.formType=t==null?void 0:t.formType,this.icon=(l=t==null?void 0:t.icon)!=null?l:"iconliulan1",this.needConfirm=(o=t==null?void 0:t.needConfirm)!=null?o:!1,this.openType=(h=t==null?void 0:t.openType)!=null?h:"modal",this.priorityProcess=(f=t==null?void 0:t.priorityProcess)!=null?f:!0}}class Qr{constructor(t){var n,a,r,u;this.name=(n=t==null?void 0:t.name)!=null?n:"",this.key=(a=t==null?void 0:t.key)!=null?a:"",this.value=(u=(r=t==null?void 0:t.value)==null?void 0:r.map(i=>new Xr(i)))!=null?u:[]}}class hl extends Ca{constructor(t){var n,a;super(t),this.attributes=(a=(n=t==null?void 0:t.attributes)==null?void 0:n.map(r=>new Qr(r)))!=null?a:[]}}class R3 extends Ca{constructor(t){var n,a,r;super(t),this.attributes=(a=(n=t==null?void 0:t.attributes)==null?void 0:n.map(u=>new Qr(u)))!=null?a:[],this.formCode=(r=t==null?void 0:t.formCode)!=null?r:""}}class p3 extends hl{constructor(t){var n;super(t),this.rootNode=new Kr(t==null?void 0:t.rootNode),this.filterCode=(n=t==null?void 0:t.filterCode)!=null?n:""}}class _l{constructor(t){var n,a,r,u;this.dataCode=(n=t==null?void 0:t.dataCode)!=null?n:"",this.appId=(a=t==null?void 0:t.appId)!=null?a:"",this.fillList=(u=(r=t==null?void 0:t.fillList)==null?void 0:r.map(i=>new dl(i)))!=null?u:[]}}class P3 extends _l{constructor(t){super(t),zr.call(this,t)}}class M3 extends _l{constructor(t){var n,a;super(t),this.mode=(n=t==null?void 0:t.mode)!=null?n:"current",this.multiple=(a=t==null?void 0:t.multiple)!=null?a:!1}}class $3{constructor(t){var n,a,r;this.zh=(n=t==null?void 0:t.zh)!=null?n:"",this.en=(a=t==null?void 0:t.en)!=null?a:"",this.ja=(r=t==null?void 0:t.ja)!=null?r:""}}class V3{constructor(t){var n,a,r;this.stencilName=(n=t==null?void 0:t.stencilName)!=null?n:"",this.expression=(a=t==null?void 0:t.expression)!=null?a:"",this.errMessage=(r=t==null?void 0:t.errMessage)!=null?r:""}}class Zr{constructor(t){var n,a,r;this.id=(n=t==null?void 0:t.id)!=null?n:Ye(8),this.label=(a=t==null?void 0:t.label)!=null?a:"",this.value=(r=t==null?void 0:t.value)!=null?r:this.label}}class El extends Zr{constructor(t){var n,a;super(t),this.image=(n=t==null?void 0:t.image)!=null?n:"",this.type=(a=t==null?void 0:t.type)!=null?a:"src"}}function k3(e){var t;return(t=e==null?void 0:e.map(n=>new Zr(n)))!=null?t:[]}function U3(e){var t;return(t=e==null?void 0:e.map(n=>new El(n)))!=null?t:[]}class ba{}class x3 extends ba{constructor(t){super(),this.amount=new ke(t==null?void 0:t.amount),this.currency=new ke(t==null?void 0:t.currency)}}class W3{constructor(t){var n,a;this.amount=(n=t==null?void 0:t.amount)!=null?n:"",this.currency=(a=t==null?void 0:t.currency)!=null?a:Yr.CNY}}class H3 extends ba{constructor(t){super(),this.min=new ke(t==null?void 0:t.min),this.max=new ke(t==null?void 0:t.max)}}class j3{constructor(t){var n,a;this.min=(n=t==null?void 0:t.min)!=null?n:"",this.max=(a=t==null?void 0:t.max)!=null?a:""}}class q3{constructor(t){var n,a,r,u,i,s;this.city=(n=t==null?void 0:t.city)!=null?n:"",this.cityDisplay=(a=t==null?void 0:t.cityDisplay)!=null?a:"",this.district=(r=t==null?void 0:t.district)!=null?r:"",this.districtDisplay=(u=t==null?void 0:t.districtDisplay)!=null?u:"",this.province=(i=t==null?void 0:t.province)!=null?i:"",this.provinceDisplay=(s=t==null?void 0:t.provinceDisplay)!=null?s:""}}class G3 extends ba{constructor(t){super(),this.result=new ke(t==null?void 0:t.result),this.unit=new ke(t==null?void 0:t.unit)}}class K3{constructor(t){var n,a;this.result=(n=t==null?void 0:t.result)!=null?n:0,this.unit=(a=t==null?void 0:t.unit)!=null?a:""}}var Yr=(e=>(e.CNY="CNY",e.USD="USD",e.JPY="JPY",e.EUR="EUR",e.INR="INR",e.IDR="IDR",e.BRL="BRL",e.AED="AED",e.AUD="AUD",e.CAD="CAD",e.EGP="EGP",e.GBP="GBP",e.ZAR="ZAR",e.KRW="KRW",e.MAD="MAD",e.MXN="MXN",e.MYR="MYR",e.PHP="PHP",e.PLN="PLN",e.RUB="RUB",e.SGD="SGD",e.THB="THB",e.TRY="TRY",e.TWD="TWD",e.VND="VND",e.HKD="HKD",e.IEP="IEP",e))(Yr||{}),gl=(e=>(e.DEFAULT_DISPLAY="defaultDisplay",e.REQUIRED="required",e.IS_HIDE="isHide",e.IS_SHOW_UNIT="isShowUnit",e.IMD_SEARCH="immediatelySearch",e.MULTIPLE="multiple",e.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",e.CAPTION="caption",e.IS_HIDE_CAPTION="isHideCaption",e.DEFAULT_SHOW_OPTIONS="defaultShowOptions",e.CAN_SEARCH="canSearch",e.CAN_CHECK="canCheck",e.CAN_EDIT="canEdit",e.CAN_DELETE="canDelete",e.SHOW_UPPER_CASE="showUpperCase",e.MICROMETER="micrometer",e.PRECISION="precision",e.PERCENTAGE="percentage",e.OPTIONAL_LEVEL="optionalLevel",e.CONTAINS_SUB_NODE="containsSubNode",e.DEFAULT_COLLAPSE="defaultCollapse",e.CAN_VIEW_FORM="canViewForm",e.VIEW_FORM_MODEL_TYPE="viewFormModelType",e.SERVER_PAGINATION="serverPagination",e.IS_SHOW_CAPTION_TIP="isShowCaptionTip",e.IS_SHOW_WATERMARK="isShowWatermark",e.ENCRYPTED="encrypted",e.IS_INLINE_EDIT="isInlineEdit",e.REVISIONS_MODE="revisionsMode",e.ALLOW_COPY_OPTIONS="allowCopyOptions",e.IS_PASTE="isPaste",e.SORTABLE="sortable",e))(gl||{}),eu=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT",e))(eu||{});class X3{constructor(t){var n,a,r,u,i,s;this.isShow=(n=t==null?void 0:t.isShow)!=null?n:!0,this.content=(a=t==null?void 0:t.content)!=null?a:"",this.formKey=(r=t==null?void 0:t.formKey)!=null?r:"",this.openType=(u=t==null?void 0:t.openType)!=null?u:"modal",this.type=(i=t==null?void 0:t.type)!=null?i:"",this.priorityProcess=(s=t==null?void 0:t.priorityProcess)!=null?s:!1}}class J3{constructor(t){var n,a,r,u;this.id=(n=t==null?void 0:t.id)!=null?n:Ye(8),this.title=(a=t==null?void 0:t.title)!=null?a:"",this.headers=(u=(r=t==null?void 0:t.headers)==null?void 0:r.map(i=>new ll(i)))!=null?u:[],zr.call(this,t)}}class z3{constructor(t){var n,a;this.key=(n=t.key)!=null?n:Ye(8),this.caption=(a=t.caption)!=null?a:""}}class vl{constructor(t){var n,a,r,u;this.width=(n=t==null?void 0:t.width)!=null?n:"",this.height=(a=t==null?void 0:t.height)!=null?a:"",this.widthConfig=(r=t==null?void 0:t.widthConfig)!=null?r:"fill",this.heightConfig=(u=t==null?void 0:t.heightConfig)!=null?u:"fill"}}class Q3{constructor(t){var n,a;this.optCode=(n=t==null?void 0:t.optCode)!=null?n:"",this.optType=(a=t==null?void 0:t.optType)!=null?a:""}}class yl{constructor(t){var n,a,r,u,i,s;this.id=(n=t==null?void 0:t.id)!=null?n:Ye(),this.name=(a=t==null?void 0:t.name)!=null?a:"",this.filters=(u=(r=t==null?void 0:t.filters)==null?void 0:r.map(l=>l.children!==void 0?new Gt(l):new yn(l)))!=null?u:[],this.settings=(t==null?void 0:t.settings)&&Array.isArray(t==null?void 0:t.settings)?(s=(i=t==null?void 0:t.settings)==null?void 0:i.map(l=>new Cl(l)))!=null?s:[]:[],this.script=t==null?void 0:t.script}}class Cl{constructor(t){var n,a,r,u;this.type=(n=t.type)!=null?n:"background",this.fieldCodes=(a=t.fieldCodes)!=null?a:[],this.color=(r=t.color)!=null?r:"theme",this.scope=(u=t.scope)!=null?u:"row"}}class Z3{constructor(t){var n,a,r,u;this.type=(n=t==null?void 0:t.type)!=null?n:"none",this.interval=(a=t==null?void 0:t.interval)!=null?a:{color:""},this.rules=(t==null?void 0:t.rules)&&Array.isArray(t==null?void 0:t.rules)?(u=(r=t==null?void 0:t.rules)==null?void 0:r.map(i=>new yl(i)))!=null?u:[]:[]}}class Fa{constructor(t){this.isHide={type:"boolean"}}}class tu extends Array{constructor(t){super()}}class Je{constructor(t,n=""){var a,r;this.isHide=(a=t==null?void 0:t.isHide)!=null?a:!1,this.style=new vl(t==null?void 0:t.style),this.caption=(r=t==null?void 0:t.caption)!=null?r:n}}Je.Rules=Fa,Je.RuntimeRules=tu;function Ue(){return Ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ue.apply(this,arguments)}function Y3(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function nu(e){return nu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nu(e)}function Aa(e,t){return Aa=Object.setPrototypeOf||function(a,r){return a.__proto__=r,a},Aa(e,t)}function eb(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Da(e,t,n){return eb()?Da=Reflect.construct:Da=function(r,u,i){var s=[null];s.push.apply(s,u);var l=Function.bind.apply(r,s),o=new l;return i&&Aa(o,i.prototype),o},Da.apply(null,arguments)}function tb(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function au(e){var t=typeof Map=="function"?new Map:void 0;return au=function(a){if(a===null||!tb(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(a))return t.get(a);t.set(a,r)}function r(){return Da(a,arguments,nu(this).constructor)}return r.prototype=Object.create(a.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Aa(r,a)},au(e)}var nb=/%[sdj%]/g,bl=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(bl=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(a){return typeof a=="string"})&&console.warn(t,n)});function ru(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var a=n.field;t[a]=t[a]||[],t[a].push(n)}),t}function De(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=1,r=t[0],u=t.length;if(typeof r=="function")return r.apply(null,t.slice(1));if(typeof r=="string"){var i=String(r).replace(nb,function(s){if(s==="%%")return"%";if(a>=u)return s;switch(s){case"%s":return String(t[a++]);case"%d":return Number(t[a++]);case"%j":try{return JSON.stringify(t[a++])}catch(l){return"[Circular]"}break;default:return s}});return i}return r}function ab(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function fe(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||ab(t)&&typeof e=="string"&&!e)}function rb(e,t,n){var a=[],r=0,u=e.length;function i(s){a.push.apply(a,s),r++,r===u&&n(a)}e.forEach(function(s){t(s,i)})}function Fl(e,t,n){var a=0,r=e.length;function u(i){if(i&&i.length){n(i);return}var s=a;a=a+1,s<r?t(e[s],u):n([])}u([])}function ub(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var Al=function(e){Y3(t,e);function t(n,a){var r;return r=e.call(this,"Async Validation Error")||this,r.errors=n,r.fields=a,r}return t}(au(Error));function ib(e,t,n,a){if(t.first){var r=new Promise(function(f,m){var D=function(B){return a(B),B.length?m(new Al(B,ru(B))):f()},S=ub(e);Fl(S,n,D)});return r.catch(function(f){return f}),r}var u=t.firstFields||[];u===!0&&(u=Object.keys(e));var i=Object.keys(e),s=i.length,l=0,o=[],h=new Promise(function(f,m){var D=function(y){if(o.push.apply(o,y),l++,l===s)return a(o),o.length?m(new Al(o,ru(o))):f()};i.length||(a(o),f()),i.forEach(function(S){var y=e[S];u.indexOf(S)!==-1?Fl(y,n,D):rb(y,n,D)})});return h.catch(function(f){return f}),h}function Dl(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:typeof t=="function"?t():t,field:t.field||e.fullField}}}function Nl(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];typeof a=="object"&&typeof e[n]=="object"?e[n]=Ue(Ue({},e[n]),a):e[n]=a}}return e}function Sl(e,t,n,a,r,u){e.required&&(!n.hasOwnProperty(e.field)||fe(t,u||e.type))&&a.push(De(r.messages.required,e.fullField))}function sb(e,t,n,a,r){(/^\s+$/.test(t)||t==="")&&a.push(De(r.messages.whitespace,e.fullField))}var uu={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Cn={integer:function(t){return Cn.number(t)&&parseInt(t,10)===t},float:function(t){return Cn.number(t)&&!Cn.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Cn.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(uu.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(uu.url)},hex:function(t){return typeof t=="string"&&!!t.match(uu.hex)}};function lb(e,t,n,a,r){if(e.required&&t===void 0){Sl(e,t,n,a,r);return}var u=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=e.type;u.indexOf(i)>-1?Cn[i](t)||a.push(De(r.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&a.push(De(r.messages.types[i],e.fullField,e.type))}function ob(e,t,n,a,r){var u=typeof e.len=="number",i=typeof e.min=="number",s=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,o=t,h=null,f=typeof t=="number",m=typeof t=="string",D=Array.isArray(t);if(f?h="number":m?h="string":D&&(h="array"),!h)return!1;D&&(o=t.length),m&&(o=t.replace(l,"_").length),u?o!==e.len&&a.push(De(r.messages[h].len,e.fullField,e.len)):i&&!s&&o<e.min?a.push(De(r.messages[h].min,e.fullField,e.min)):s&&!i&&o>e.max?a.push(De(r.messages[h].max,e.fullField,e.max)):i&&s&&(o<e.min||o>e.max)&&a.push(De(r.messages[h].range,e.fullField,e.min,e.max))}var Kt="enum";function cb(e,t,n,a,r){e[Kt]=Array.isArray(e[Kt])?e[Kt]:[],e[Kt].indexOf(t)===-1&&a.push(De(r.messages[Kt],e.fullField,e[Kt].join(", ")))}function fb(e,t,n,a,r){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||a.push(De(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var u=new RegExp(e.pattern);u.test(t)||a.push(De(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var x={required:Sl,whitespace:sb,type:lb,range:ob,enum:cb,pattern:fb};function db(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t,"string")&&!e.required)return n();x.required(e,t,a,u,r,"string"),fe(t,"string")||(x.type(e,t,a,u,r),x.range(e,t,a,u,r),x.pattern(e,t,a,u,r),e.whitespace===!0&&x.whitespace(e,t,a,u,r))}n(u)}function mb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r),t!==void 0&&x.type(e,t,a,u,r)}n(u)}function hb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(t===""&&(t=void 0),fe(t)&&!e.required)return n();x.required(e,t,a,u,r),t!==void 0&&(x.type(e,t,a,u,r),x.range(e,t,a,u,r))}n(u)}function _b(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r),t!==void 0&&x.type(e,t,a,u,r)}n(u)}function Eb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r),fe(t)||x.type(e,t,a,u,r)}n(u)}function gb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r),t!==void 0&&(x.type(e,t,a,u,r),x.range(e,t,a,u,r))}n(u)}function vb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r),t!==void 0&&(x.type(e,t,a,u,r),x.range(e,t,a,u,r))}n(u)}function yb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(t==null&&!e.required)return n();x.required(e,t,a,u,r,"array"),t!=null&&(x.type(e,t,a,u,r),x.range(e,t,a,u,r))}n(u)}function Cb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r),t!==void 0&&x.type(e,t,a,u,r)}n(u)}var bb="enum";function Fb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r),t!==void 0&&x[bb](e,t,a,u,r)}n(u)}function Ab(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t,"string")&&!e.required)return n();x.required(e,t,a,u,r),fe(t,"string")||x.pattern(e,t,a,u,r)}n(u)}function Db(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t,"date")&&!e.required)return n();if(x.required(e,t,a,u,r),!fe(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),x.type(e,s,a,u,r),s&&x.range(e,s.getTime(),a,u,r)}}n(u)}function Nb(e,t,n,a,r){var u=[],i=Array.isArray(t)?"array":typeof t;x.required(e,t,a,u,r,i),n(u)}function iu(e,t,n,a,r){var u=e.type,i=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(fe(t,u)&&!e.required)return n();x.required(e,t,a,i,r,u),fe(t,u)||x.type(e,t,a,i,r)}n(i)}function Sb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r)}n(u)}var bn={string:db,method:mb,number:hb,boolean:_b,regexp:Eb,integer:gb,float:vb,array:yb,object:Cb,enum:Fb,pattern:Ab,date:Db,url:iu,hex:iu,email:iu,required:Nb,any:Sb};function su(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var lu=su();function mt(e){this.rules=null,this._messages=lu,this.define(e)}mt.prototype={messages:function(t){return t&&(this._messages=Nl(su(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,a;for(n in t)t.hasOwnProperty(n)&&(a=t[n],this.rules[n]=Array.isArray(a)?a:[a])},validate:function(t,n,a){var r=this;n===void 0&&(n={}),a===void 0&&(a=function(){});var u=t,i=n,s=a;if(typeof i=="function"&&(s=i,i={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(y){var B,E=[],A={};function _(g){if(Array.isArray(g)){var N;E=(N=E).concat.apply(N,g)}else E.push(g)}for(B=0;B<y.length;B++)_(y[B]);E.length?A=ru(E):(E=null,A=null),s(E,A)}if(i.messages){var o=this.messages();o===lu&&(o=su()),Nl(o,i.messages),i.messages=o}else i.messages=this.messages();var h,f,m={},D=i.keys||Object.keys(this.rules);D.forEach(function(y){h=r.rules[y],f=u[y],h.forEach(function(B){var E=B;typeof E.transform=="function"&&(u===t&&(u=Ue({},u)),f=u[y]=E.transform(f)),typeof E=="function"?E={validator:E}:E=Ue({},E),E.validator=r.getValidationMethod(E),E.field=y,E.fullField=E.fullField||y,E.type=r.getType(E),E.validator&&(m[y]=m[y]||[],m[y].push({rule:E,value:f,source:u,field:y}))})});var S={};return ib(m,i,function(y,B){var E=y.rule,A=(E.type==="object"||E.type==="array")&&(typeof E.fields=="object"||typeof E.defaultField=="object");A=A&&(E.required||!E.required&&y.value),E.field=y.field;function _(b,v){return Ue(Ue({},v),{},{fullField:E.fullField+"."+b})}function g(b){b===void 0&&(b=[]);var v=b;if(Array.isArray(v)||(v=[v]),!i.suppressWarning&&v.length&&mt.warning("async-validator:",v),v.length&&E.message!==void 0&&(v=[].concat(E.message)),v=v.map(Dl(E)),i.first&&v.length)return S[E.field]=1,B(v);if(!A)B(v);else{if(E.required&&!y.value)return E.message!==void 0?v=[].concat(E.message).map(Dl(E)):i.error&&(v=[i.error(E,De(i.messages.required,E.field))]),B(v);var O={};if(E.defaultField)for(var w in y.value)y.value.hasOwnProperty(w)&&(O[w]=E.defaultField);O=Ue(Ue({},O),y.rule.fields);for(var j in O)if(O.hasOwnProperty(j)){var ye=Array.isArray(O[j])?O[j]:[O[j]];O[j]=ye.map(_.bind(null,j))}var k=new mt(O);k.messages(i.messages),y.rule.options&&(y.rule.options.messages=i.messages,y.rule.options.error=i.error),k.validate(y.value,y.rule.options||i,function(ue){var Ie=[];v&&v.length&&Ie.push.apply(Ie,v),ue&&ue.length&&Ie.push.apply(Ie,ue),B(Ie.length?Ie:null)})}}var N;E.asyncValidator?N=E.asyncValidator(E,y.value,g,y.source,i):E.validator&&(N=E.validator(E,y.value,g,y.source,i),N===!0?g():N===!1?g(E.message||E.field+" fails"):N instanceof Array?g(N):N instanceof Error&&g(N.message)),N&&N.then&&N.then(function(){return g()},function(b){return g(b)})},function(y){l(y)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!bn.hasOwnProperty(t.type))throw new Error(De("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?bn.required:bn[this.getType(t)]||!1}},mt.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");bn[t]=n},mt.warning=bl,mt.messages=lu,mt.validators=bn;const Ib={required:"%s \u5FC5\u586B",maxLength:"%s \u8D85\u51FA\u6700\u5927\u957F\u5EA6\u9650\u5236",minLength:"%s \u5C0F\u4E8E\u6700\u5C0F\u957F\u5EA6\u9650\u5236",string:{range:"%s \u4E0D\u5728\u6307\u5B9A\u957F\u5EA6\u5185"}};function Il(e,t={}){const n=new mt(e);return n.messages(Object.assign(Ib,t)),n}const Bl=new E3;class ve{constructor(t){var m,D,S,y;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Ll,this.removeSetting=Ol,this._callControlHooks("preInstance",t);const{controlName:n,controlIcon:a,controlType:r,controlFieldType:u,controlEventKeys:i,controlCustomEvents:s,name:l,setting:o,slots:h,slotPosition:f}=new.target;n&&a&&r||wu(`The ${l} controlName,controlIcon,controlType is not define`),this.id=(m=t==null?void 0:t.id)!=null?m:Ye(10),this.name=n,this.icon=a,this.type=(D=t==null?void 0:t.type)!=null?D:r,this.props=new Je(t==null?void 0:t.props,new.target.controlName),this.controlType=(S=t==null?void 0:t.controlType)!=null?S:"base",this.setting=Xe(o),this.fieldType=(y=t==null?void 0:t.fieldType)!=null?y:u,this.eventKeys=Xe(i),this.customEvents=Xe(s),this.slots=Xe(h),this.slotPosition=Xe(f),Promise.resolve().then(()=>{this._callControlHooks("postInstance",t)})}get rules(){const t=this.props.constructor.Rules;return t?new t(this.props):{}}_callControlHooks(...t){const[n,...a]=t;return Bl.emit(n,this,...a)}preUpdate(t,n){this._callControlHooks("preUpdateProps",t,n)}postUpdate(t,n){this._callControlHooks("postUpdateProps",t,n)}updateProps(t,n){this.preUpdate(t,n),e3(this.props,t,n),this.postUpdate(t,n)}preValidate(){return Ze(this,null,function*(){const t=Qe({},this.rules),n=yield this._callControlHooks("preValidate",t),a=n[n.length-1];return a===!1?void 0:a})}validate(t,n){return Ze(this,null,function*(){const a=yield this.preValidate(),r=a!==void 0?a:Qe({},this.rules);Array.isArray(n)&&n.forEach(i=>{r.hasOwnProperty(i)&&delete r[i]});const u=Il(r,t);try{return yield u.validate(this.props),!0}catch(i){throw i.control||(i.control=this),i}})}toDataBindModel(t=null){const n=this.fieldType,a=this.id,r=this.type,{dataBind:u,datasourceBind:i,optionConfig:s,caption:l,required:o,maxLength:h,options:f,encrypted:m,encryptedMode:D}=this.props;if(!n&&!u&&!i)return;const S={parentId:t,fieldType:n,controlId:a,caption:l,type:r,props:{}};switch(u&&(S.dataBind=u),s){case"datasource":case void 0:i&&(S.datasourceBind=i);break;case"custom":S.props.options=f;break}return o!==void 0&&(S.required=o),h!==void 0&&(S.maxLength=h),m!==void 0&&(S.encrypted=m),D!==void 0&&(S.encryptedMode=D),S}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:Xe(this.props),fieldType:this.fieldType,controlType:this.controlType}}static updateBasicControl(t,n){t==="setting"&&(n.add&&this.setting.push(...n.add),n.remove&&this.removeSettingItem(n.remove),n.update)}}ve.mode="Designer",ve.controlName="\u63A7\u4EF6",ve.controlIcon="icon",ve.controlType="control",ve.controlEventKeys=[],ve.controlCustomEvents=[],ve.setting=[],ve.__is_control__=!0,ve.removeSettingItem=Ol,ve.updateSettingItem=Ll;function Ol(e){(Array.isArray(e)?e:[e]).forEach(n=>{var u,i,s;const a=typeof n!="string",r=(u=this.setting)==null?void 0:u.findIndex(l=>l.key===(a?n.key:n));r!==-1&&(a?this.setting[r].showItems=(i=this.setting[r].showItems)==null?void 0:i.filter(l=>!n.hideItems.includes(l)):this.setting.splice(r,1),a&&!((s=this.setting[r].showItems)!=null&&s.length)&&this.setting.splice(r,1))})}function Ll(e,t){(typeof e=="string"?[e]:e).forEach(a=>{var u;const r=this.setting.find(i=>i.key===a);r&&(typeof t=="boolean"?r.visible=t:typeof t=="object"&&(((u=t.type)!=null?u:"replace")==="replace"?r.showItems=t.showItems:r.showItems.push(...t.showItems)))})}class ze{constructor(t){var i,s,l,o,h;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:a,name:r,controlCustomEvents:u}=new.target;n||wu(`The ${r} controlType is not define`),this.id=(i=t==null?void 0:t.id)!=null?i:Ye(10),this.type=(s=t==null?void 0:t.type)!=null?s:n,this.props=new Je(t==null?void 0:t.props),this.customEvents=u,this.controlType=(l=t==null?void 0:t.controlType)!=null?l:"base",this.fieldType=(o=t==null?void 0:t.fieldType)!=null?o:a,this.pageStatus=(h=t==null?void 0:t.pageStatus)!=null?h:eu.UNKNOWN}get rules(){const t=this.props.constructor.RuntimeRules;if(t){const n=new t(this.props);return Array.from(n)}return[]}}ze.mode="Runtime",ze.controlType="control",ze.__is_control__=!0,ze.controlCustomEvents=[];function ou(e){e.hasOwnProperty("optionConfig")||(this.optionConfig={type:"any"}),e.hasOwnProperty("options")||(this.options={type:"any"}),e.hasOwnProperty("datasourceBind")||(this.datasourceBind={type:"any"}),e.hasOwnProperty("options")&&(!e.hasOwnProperty("optionConfig")||e.hasOwnProperty("optionConfig")&&e.optionConfig==="custom")?this.options=[{type:"array",message:p.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:p.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:p.getMessage("pleaseEnterValue")}}}},{type:"array",validator(t,n,a){n.length===0&&a(p.getMessage("optionIsRequired")),a()}},{type:"array",validator(t,n,a){const r=n.map(i=>i.value),u=s3(r);r.length!==u.length?a(p.getMessage("optionIdIsRepeat")):a()},message:p.getMessage("optionIdIsRepeat")}]:e.hasOwnProperty("datasourceBind")&&(!e.hasOwnProperty("optionConfig")||e.hasOwnProperty("optionConfig")&&e.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:p.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:p.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:p.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:p.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:p.getMessage("isNotArray")},{type:"array",validator(t,n,a){n.length===0&&a(p.getMessage("pleaseBindAtLeastOneDisplayValue")),a()},message:p.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:p.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:p.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:p.getMessage("isNotBoolean")}}}}]}}])}function Bb(e,t,n=!1){this.datasourceBind=[{type:"object",message:p.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:p.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:p.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:p.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:p.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:p.getMessage("isNotString")},key:{type:"string",required:!0,message:p.getMessage("isNotString")},value:[{type:"array",message:p.getMessage("isNotArray")},{type:"array",validator(a,r,u){r.length===0&&u(p.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),u()},message:p.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:p.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:p.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:p.getMessage("isNotBoolean")}}}}]}}]}function wl(e){return(e==null?void 0:e.dataCode)!==void 0&&(e==null?void 0:e.fieldCode)!==void 0}class cu extends Fa{constructor(t){super(t),this.dataBind={},this.caption={type:"string",required:!0,message:p.getMessage("pleaseEnterCaption")},this.isHideCaption={type:"boolean"},this.labelPosition={type:"enum",enum:["top","left"]},this.defaultState={type:"enum",enum:["default","readonly"]},this.required={type:"boolean"},this.captionTip={type:"string",required:!1,message:p.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:p.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:p.getMessage("pleaseEnterFieldCode")}};if(wl(t.dataBind))this.dataBind={type:"object",required:!0,fields:Xe(n),message:p.getMessage("pleaseEnterFieldCode")};else{let a={type:"object",required:!0,fields:{},message:p.getMessage("pleaseEnterFieldCode")};Object.keys(t.dataBind).forEach(r=>{a.fields[r]={type:"object",required:!0,fields:Xe(n),message:p.getMessage("pleaseEnterFieldCode")}}),this.dataBind=a}t.isShowCaptionTip&&(this.captionTip.required=!0)}}class Tl extends tu{constructor(t){super(t);const n=t.isHide?!1:t.required;n&&this.push({type:"string",required:n,message:t.requiredMessage!==""?t.requiredMessage:p.getMessage("runtimeRequired",{caption:t.caption})})}}class Fn extends Je{constructor(t){var n,a,r,u,i,s,l,o,h,f;super(t),this.caption=(n=t==null?void 0:t.caption)!=null?n:"",this.isHideCaption=(a=t==null?void 0:t.isHideCaption)!=null?a:!1,this.isShowCaptionTip=(r=t==null?void 0:t.isShowCaptionTip)!=null?r:!1,this.captionTip=(u=t==null?void 0:t.captionTip)!=null?u:"",this.defaultState=(i=t==null?void 0:t.defaultState)!=null?i:"default",this.labelPosition=(s=t==null?void 0:t.labelPosition)!=null?s:"top",this.placeholder=(l=t==null?void 0:t.placeholder)!=null?l:"",this.required=(o=t==null?void 0:t.required)!=null?o:!1,this.requiredMessage=(h=t==null?void 0:t.requiredMessage)!=null?h:"",this.dataBind=new ke(t==null?void 0:t.dataBind),this.defaultValue=(f=t==null?void 0:t.defaultValue)!=null?f:""}}Fn.Rules=cu,Fn.RuntimeRules=Tl;class Ob extends cu{constructor(t){super(t),this.optionConfig={type:"enum",enum:["custom","datasource"],message:p.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:p.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:p.getMessage("isNotObject")}],ou.call(this,t)}}class Rl extends ve{constructor(t){super(t),this.controlType="form",this.props=new Fn(t==null?void 0:t.props)}}Rl.controlEventKeys=["on_change","on_focus","on_blur"];class Lb extends ze{constructor(t){super(t),this.controlType="form",this.props=new Fn(t==null?void 0:t.props)}}class An extends Je{constructor(t){super(t)}}const wb=1e4;class It extends ve{constructor(t){super(t),this.controlType="layout";const{excludes:n,childrenMaxLength:a}=new.target;this.props=new An(t==null?void 0:t.props),dt(this,"children",t==null?void 0:t.children,void 0,"Designer"),this.excludes=Xe(n),this.childrenMaxLength=a}judgeExcludesChildren(t){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(t)}judgeJoinChildren(t){const n=this.judgeExcludesChildren(t);return n&&this.childrenMaxLength>this.children.length}validate(t,n){return Ze(this,null,function*(){return yield gu(It.prototype,this,"validate").call(this,t,n),yield Promise.all(this.children.map(a=>a.validate(t,n))),!0})}toDataBindModel(t=null){const n=super.toDataBindModel(),a=n?[n]:[];return this.children.reduce((r,u)=>{const i=u.toDataBindModel(t);if(Array.isArray(i)){const s=i.filter(l=>!!l);return[...r,...s]}return i&&r.push(i),r},a)}toSchema(){const t=super.toSchema(),n=this.children.map(a=>a.toSchema());return Lt(Qe({},t),{children:n})}}It.excludes=!1,It.childrenMaxLength=wb;class fu extends ze{constructor(t){super(t),this.controlType="layout",this.props=new An(t==null?void 0:t.props),dt(this,"children",t==null?void 0:t.children,void 0,"Runtime")}}class du extends Je{constructor(t,n,a){var r,u,i,s;super(n),dt(this,"headers",n==null?void 0:n.headers,t,a),dt(this,"footers",n==null?void 0:n.footers,t),this.pageIndex=(r=n==null?void 0:n.pageIndex)!=null?r:1,this.pageSize=(u=n==null?void 0:n.pageSize)!=null?u:20,this.pageSizeOptions=(i=n==null?void 0:n.pageSizeOptions)!=null?i:[20],this.totalCount=(s=n==null?void 0:n.totalCount)!=null?s:0}}class Na extends ve{constructor(t){super(t),this.controlType="list",this.props=new du(this,t==null?void 0:t.props,"Designer")}validate(t,n){return Ze(this,null,function*(){return yield gu(Na.prototype,this,"validate").call(this,t),yield Promise.all(this.props.headers.map(a=>a.validate(t,n))),!0})}toDataBindModel(){const t=super.toDataBindModel(),n=t?[t]:[],a=this.id;return this.props.headers.reduce((r,u)=>{const i=u.toDataBindModel(a);if(Array.isArray(i)){const s=i.filter(l=>!!l);return[...r,...s]}return i&&r.push(i),r},n)}toSchema(){const t=super.toSchema(),n=this.props.headers.map(a=>a.toSchema());return Lt(Qe({},t),{props:Lt(Qe({},this.props),{headers:n})})}}Na.controlFieldType=en.LIST;class Tb extends ze{constructor(t){super(t),this.controlType="list",this.props=new du(this,t==null?void 0:t.props,"Runtime"),dt(this,"children",t==null?void 0:t.children,void 0,"Runtime")}get length(){return this.children.length}}class mu extends Fa{constructor(t){super(t),this.caption={type:"string",required:!0,message:p.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:p.getMessage("pleaseEnterColumnWidth")},this.width.required=t.widthType==="px"}}class Sa extends Je{constructor(t){var n,a,r,u,i;super(t),this.width=(n=t==null?void 0:t.width)!=null?n:150,this.widthType=(t==null?void 0:t.widthType)||"auto",this.caption=(a=t==null?void 0:t.caption)!=null?a:"",this.fixed=(r=t==null?void 0:t.fixed)!=null?r:"none",this.autoWidth=new qr(t==null?void 0:t.autoWidth),this.dataBind=new ke(t==null?void 0:t.dataBind),this.sort=(u=t==null?void 0:t.sort)!=null?u:!0,this.align=t==null?void 0:t.align,this.colSpan=t==null?void 0:t.colSpan,this.autoHeight=(i=t==null?void 0:t.autoHeight)!=null?i:!1}}Sa.Rules=mu;class Rb extends mu{constructor(t){super(t),this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:p.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:p.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:p.getMessage("isNotObject")}],ou.call(this,t)}}class pb extends ve{constructor(t){super(t),this.controlType="column",this.props=new Sa(t==null?void 0:t.props),dt(this,"children",t==null?void 0:t.children,void 0,"Designer")}toSchema(){const t=super.toSchema();return Lt(Qe({},t),{children:this.children?this.children.map(n=>n.toSchema()):[]})}}class Pb extends ze{constructor(t){super(t),this.controlType="column",this.props=new Sa(t==null?void 0:t.props),dt(this,"children",t==null?void 0:t.children,void 0,"Runtime")}}class hu extends An{constructor(t){super(t),this.dataBind=new ke(t==null?void 0:t.dataBind)}}class Mb extends It{constructor(t){super(t),this.controlType="search",this.props=new hu(t==null?void 0:t.props)}}class $b extends fu{constructor(t){super(t),this.controlType="search",this.props=new hu(t==null?void 0:t.props)}}class _u extends An{constructor(t){super(t)}}class Vb extends It{constructor(t){super(t),this.controlType="wrap",this.props=new _u(t==null?void 0:t.props)}}class kb extends fu{constructor(t){super(t),this.controlType="wrap",this.props=new _u(t==null?void 0:t.props)}}function Ub(e){e.hasOwnProperty("linkOperationOption")&&e.hasOwnProperty("showLinkOperation")&&e.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:p.getMessage("pleaseEnterForm")}}}])}F.AMOUNT_TYPE=Yr,F.AddressValue=q3,F.AmountDataBind=x3,F.AmountValue=W3,F.AutoWidth=qr,F.BaseControlProperty=Fn,F.BaseControlPropertyRules=cu,F.BaseControlPropertyRuntimeRules=Tl,F.BaseStyle=vl,F.COMMON_SETTING_TYPE=gl,F.CalcDataBind=G3,F.CalcValue=K3,F.ColumnControlProperty=Sa,F.ColumnControlPropertyRules=mu,F.ColumnOptionAndDataSourcePropertyRules=Rb,F.CustomAttributeItem=Qr,F.CustomPermissionItem=z3,F.DataBind=ke,F.DataSourceBind=Ca,F.DataSourceDataSetValue=ml,F.DataSourceOrderItem=Jr,F.DataSourceParamItem=L3,F.DataStorageDoc=D3,F.DesignerColumnControl=pb,F.DesignerControl=ve,F.DesignerFormControl=Rl,F.DesignerLayoutControl=It,F.DesignerListControl=Na,F.DesignerSearchControl=Mb,F.DesignerWrapControl=Vb,F.DisplayBoListItem=Xr,F.FieldBindItem=ol,F.FieldFilterCondition=yn,F.FieldFilterConditions=Gt,F.FillBackBind=M3,F.FillPayloadBind=P3,F.FormBind=ya,F.FormSelectBind=N3,F.ImageOptionSetting=El,F.JoinRelation=B3,F.Language=$3,F.LayoutControlProperty=An,F.LeftVariable=fl,F.LinkOperationOption=T3,F.ListBind=S3,F.ListControlProperty=du,F.MetaAutoWidth=A3,F.MetaRowHeight=F3,F.MetaWidth=va,F.MultistageFillingItem=dl,F.ObjectDataBind=ba,F.OperationItem=X3,F.OptObject=Q3,F.OptionAndDataSourcePropertyRules=Ob,F.OptionDisplayConfigItem=O3,F.OptionSetting=Zr,F.OrganizationDataSourceBind=R3,F.PAGE_STATUS=eu,F.Property=Je,F.PropertyRules=Fa,F.PropertyRuntimeRules=tu,F.RangeDataBind=H3,F.RangeDateValue=j3,F.RegisterControls=vn,F.RegularRules=V3,F.RightVariable=Kr,F.RowHeight=Gr,F.RowStyle=Z3,F.RowStyleRule=yl,F.RowStyleSettings=Cl,F.RuntimeColumnControl=Pb,F.RuntimeControl=ze,F.RuntimeFormControl=Lb,F.RuntimeLayoutControl=fu,F.RuntimeListControl=Tb,F.RuntimeSearchControl=$b,F.RuntimeWrapControl=kb,F.SearchControlProperty=hu,F.SelectedContentConfig=w3,F.SubListItem=cl,F.SubListPageConfig=I3,F.SuperDataSourceBind=hl,F.TreeDataSourceBind=p3,F.ViewOperationItem=J3,F.WrapControlProperty=_u,F.controlHooksEmitter=Bl,F.createValidator=Il,F.defineArrayParent=al,F.defineControlArrayToProperty=dt,F.defineParent=Hr,F.initImageOptions=U3,F.initLinkOperationRules=Ub,F.initOptionAndDataSourceRules=ou,F.initOptions=k3,F.initSuperDataSourceRules=Bb,F.isDataBind=wl,F.setPropertyDontEnum=ga,Object.defineProperty(F,"__esModule",{value:!0})});
45
+ */const dC="9.14.0";function mC(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(He().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(He().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(He().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(He().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(He().__INTLIFY_PROD_DEVTOOLS__=!1)}const Bs=_e.__EXTEND_POINT__,Ke=Hn(Bs),Y={FALLBACK_TO_ROOT:Bs,NOT_SUPPORTED_PRESERVE:Ke(),NOT_SUPPORTED_FORMATTER:Ke(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Ke(),NOT_SUPPORTED_GET_CHOICE_INDEX:Ke(),COMPONENT_NAME_LEGACY_COMPATIBLE:Ke(),NOT_FOUND_PARENT_SCOPE:Ke(),IGNORE_OBJ_FLATTEN:Ke(),NOTICE_DROP_ALLOW_COMPOSITION:Ke(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Ke()},hC={[Y.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Y.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Y.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Y.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Y.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Y.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Y.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Y.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Y.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see \u{1F449} https://tinyurl.com/2p97mcze",[Y.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function be(e,...t){return an(hC[e],...t)}const Os=de.__EXTEND_POINT__,Fe=Hn(Os),W={UNEXPECTED_RETURN_TYPE:Os,INVALID_ARGUMENT:Fe(),MUST_BE_CALL_SETUP_TOP:Fe(),NOT_INSTALLED:Fe(),NOT_AVAILABLE_IN_LEGACY_MODE:Fe(),REQUIRED_VALUE:Fe(),INVALID_VALUE:Fe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Fe(),NOT_INSTALLED_WITH_PROVIDE:Fe(),UNEXPECTED_ERROR:Fe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Fe(),BRIDGE_SUPPORT_VUE_2_ONLY:Fe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Fe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Fe(),__EXTEND_POINT__:Fe()};function ce(e,...t){return Tt(e,null,process.env.NODE_ENV!=="production"?{messages:_C,args:t}:void 0)}const _C={[W.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[W.INVALID_ARGUMENT]:"Invalid argument",[W.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[W.NOT_INSTALLED]:"Need to install with `app.use` function",[W.UNEXPECTED_ERROR]:"Unexpected error",[W.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[W.REQUIRED_VALUE]:"Required in value: {0}",[W.INVALID_VALUE]:"Invalid value",[W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[W.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[W.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[W.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[W.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",[W.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Br=Le("__translateVNode"),Or=Le("__datetimeParts"),Lr=Le("__numberParts"),St=Le("__enableEmitter"),_n=Le("__disableEmitter"),Ls=Le("__setPluralRules");Le("__intlifyMeta");const ws=Le("__injectWithOption"),wr=Le("__dispose");function En(e){if(!H(e))return e;for(const t in e)if(!!Wn(e,t))if(!t.includes("."))H(e[t])&&En(e[t]);else{const n=t.split("."),a=n.length-1;let r=e,u=!1;for(let i=0;i<a;i++){if(n[i]in r||(r[n[i]]={}),!H(r[n[i]])){process.env.NODE_ENV!=="production"&&oe(be(Y.IGNORE_OBJ_FLATTEN,{key:n[i]})),u=!0;break}r=r[n[i]]}u||(r[n[a]]=e[t],delete e[t]),H(r[n[a]])&&En(r[n[a]])}return e}function Ea(e,t){const{messages:n,__i18n:a,messageResolver:r,flatJson:u}=t,i=$(n)?n:z(a)?{}:{[e]:{}};if(z(a)&&a.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:o}=s;l?(i[l]=i[l]||{},qn(o,i[l])):qn(o,i)}else R(s)&&qn(JSON.parse(s),i)}),r==null&&u)for(const s in i)Wn(i,s)&&En(i[s]);return i}function Ts(e){return e.type}function Rs(e,t,n){let a=H(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=Ea(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const r=Object.keys(a);r.length&&r.forEach(u=>{e.mergeLocaleMessage(u,a[u])});{if(H(t.datetimeFormats)){const u=Object.keys(t.datetimeFormats);u.length&&u.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(H(t.numberFormats)){const u=Object.keys(t.numberFormats);u.length&&u.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function ps(e){return Ht(vs,null,e,0)}const Ps="__INTLIFY_META__",Ms=()=>[],EC=()=>!1;let $s=0;function Vs(e){return(t,n,a,r)=>e(n,a,jt()||void 0,r)}const gC=()=>{const e=jt();let t=null;return e&&(t=Ts(e)[Ps])?{[Ps]:t}:null};function Tr(e={},t){const{__root:n,__injectWithOption:a}=e,r=n===void 0,u=e.flatJson,i=Oe?kt:Yi,s=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&s&&Vu(be(Y.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let l=V(e.inheritLocale)?e.inheritLocale:!0;const o=i(n&&l?n.locale.value:R(e.locale)?e.locale:Pt),h=i(n&&l?n.fallbackLocale.value:R(e.fallbackLocale)||z(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),f=i(Ea(o.value,e)),m=i($(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),D=i($(e.numberFormats)?e.numberFormats:{[o.value]:{}});let S=n?n.missingWarn:V(e.missingWarn)||et(e.missingWarn)?e.missingWarn:!0,y=n?n.fallbackWarn:V(e.fallbackWarn)||et(e.fallbackWarn)?e.fallbackWarn:!0,B=n?n.fallbackRoot:V(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,A=X(e.missing)?e.missing:null,_=X(e.missing)?Vs(e.missing):null,g=X(e.postTranslation)?e.postTranslation:null,N=n?n.warnHtmlMessage:V(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter;const v=n?n.modifiers:$(e.modifiers)?e.modifiers:{};let O=e.pluralRules||n&&n.pluralRules,w;w=(()=>{r&&ai(null);const C={version:dC,locale:o.value,fallbackLocale:h.value,messages:f.value,modifiers:v,pluralRules:O,missing:_===null?void 0:_,missingWarn:S,fallbackWarn:y,fallbackFormat:E,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:N,escapeParameter:b,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};C.datetimeFormats=m.value,C.numberFormats=D.value,C.__datetimeFormatters=$(w)?w.__datetimeFormatters:void 0,C.__numberFormatters=$(w)?w.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(C.__v_emitter=$(w)?w.__v_emitter:void 0);const L=s5(C);return r&&ai(L),L})(),un(w,o.value,h.value);function ye(){return[o.value,h.value,f.value,m.value,D.value]}const k=Ve({get:()=>o.value,set:C=>{o.value=C,w.locale=o.value}}),ue=Ve({get:()=>h.value,set:C=>{h.value=C,w.fallbackLocale=h.value,un(w,o.value,C)}}),Ie=Ve(()=>f.value),Dn=Ve(()=>m.value),xe=Ve(()=>D.value);function Nn(){return X(g)?g:null}function Sn(C){g=C,w.postTranslation=C}function In(){return A}function Bn(C){C!==null&&(_=Vs(C)),A=C,w.missing=_}function On(C,L){return C!=="translate"||!L.resolvedMessage}const Be=(C,L,G,ne,ht,Ba)=>{ye();let Qt;try{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&ti(gC()),r||(w.fallbackContext=n?i5():void 0),Qt=C(w)}finally{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&ti(null),r||(w.fallbackContext=void 0)}if(G!=="translate exists"&&se(Qt)&&Qt===Xn||G==="translate exists"&&!Qt){const[Ot,xb]=L();if(process.env.NODE_ENV!=="production"&&n&&R(Ot)&&On(G,xb)&&(B&&(zn(y,Ot)||ui(S,Ot))&&oe(be(Y.FALLBACK_TO_ROOT,{key:Ot,type:G})),process.env.NODE_ENV!=="production")){const{__v_emitter:pl}=w;pl&&B&&pl.emit("fallback",{type:G,key:Ot,to:"global",groupId:`${G}:${Ot}`})}return n&&B?ne(n):ht(Ot)}else{if(Ba(Qt))return Qt;throw ce(W.UNEXPECTED_RETURN_TYPE)}};function Xt(...C){return Be(L=>Reflect.apply(mi,null,[L,...C]),()=>Ka(...C),"translate",L=>Reflect.apply(L.t,L,[...C]),L=>L,L=>R(L))}function Jt(...C){const[L,G,ne]=C;if(ne&&!H(ne))throw ce(W.INVALID_ARGUMENT);return Xt(L,G,le({resolvedMessage:!0},ne||{}))}function Ln(...C){return Be(L=>Reflect.apply(vi,null,[L,...C]),()=>Xa(...C),"datetime format",L=>Reflect.apply(L.d,L,[...C]),()=>Jn,L=>R(L))}function wn(...C){return Be(L=>Reflect.apply(bi,null,[L,...C]),()=>Ja(...C),"number format",L=>Reflect.apply(L.n,L,[...C]),()=>Jn,L=>R(L))}function Tn(C){return C.map(L=>R(L)||se(L)||V(L)?ps(String(L)):L)}const Rn={normalize:Tn,interpolate:C=>C,type:"vnode"};function zt(...C){return Be(L=>{let G;const ne=L;try{ne.processor=Rn,G=Reflect.apply(mi,null,[ne,...C])}finally{ne.processor=null}return G},()=>Ka(...C),"translate",L=>L[Br](...C),L=>[ps(L)],L=>z(L))}function pn(...C){return Be(L=>Reflect.apply(bi,null,[L,...C]),()=>Ja(...C),"number format",L=>L[Lr](...C),Ms,L=>R(L)||z(L))}function Pn(...C){return Be(L=>Reflect.apply(vi,null,[L,...C]),()=>Xa(...C),"datetime format",L=>L[Or](...C),Ms,L=>R(L)||z(L))}function Mn(C){O=C,w.pluralRules=O}function T(C,L){return Be(()=>{if(!C)return!1;const G=R(L)?L:o.value,ne=Bt(G),ht=w.messageResolver(ne,C);return s?ht!=null:at(ht)||Ne(ht)||R(ht)},()=>[C],"translate exists",G=>Reflect.apply(G.te,G,[C,L]),EC,G=>V(G))}function q(C){let L=null;const G=Ku(w,h.value,o.value);for(let ne=0;ne<G.length;ne++){const ht=f.value[G[ne]]||{},Ba=w.messageResolver(ht,C);if(Ba!=null){L=Ba;break}}return L}function $n(C){const L=q(C);return L!=null?L:n?n.tm(C)||{}:{}}function Bt(C){return f.value[C]||{}}function Vn(C,L){if(u){const G={[C]:L};for(const ne in G)Wn(G,ne)&&En(G[ne]);L=G[C]}f.value[C]=L,w.messages=f.value}function Eu(C,L){f.value[C]=f.value[C]||{};const G={[C]:L};if(u)for(const ne in G)Wn(G,ne)&&En(G[ne]);L=G[C],qn(L,f.value[C]),w.messages=f.value}function c(C){return m.value[C]||{}}function d(C,L){m.value[C]=L,w.datetimeFormats=m.value,Ci(w,C,L)}function I(C,L){m.value[C]=le(m.value[C]||{},L),w.datetimeFormats=m.value,Ci(w,C,L)}function P(C){return D.value[C]||{}}function ee(C,L){D.value[C]=L,w.numberFormats=D.value,Ai(w,C,L)}function J(C,L){D.value[C]=le(D.value[C]||{},L),w.numberFormats=D.value,Ai(w,C,L)}$s++,n&&Oe&&(Ar(n.locale,C=>{l&&(o.value=C,w.locale=C,un(w,o.value,h.value))}),Ar(n.fallbackLocale,C=>{l&&(h.value=C,w.fallbackLocale=C,un(w,o.value,h.value))}));const K={id:$s,locale:k,fallbackLocale:ue,get inheritLocale(){return l},set inheritLocale(C){l=C,C&&n&&(o.value=n.locale.value,h.value=n.fallbackLocale.value,un(w,o.value,h.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:Ie,get modifiers(){return v},get pluralRules(){return O||{}},get isGlobal(){return r},get missingWarn(){return S},set missingWarn(C){S=C,w.missingWarn=S},get fallbackWarn(){return y},set fallbackWarn(C){y=C,w.fallbackWarn=y},get fallbackRoot(){return B},set fallbackRoot(C){B=C},get fallbackFormat(){return E},set fallbackFormat(C){E=C,w.fallbackFormat=E},get warnHtmlMessage(){return N},set warnHtmlMessage(C){N=C,w.warnHtmlMessage=C},get escapeParameter(){return b},set escapeParameter(C){b=C,w.escapeParameter=C},t:Xt,getLocaleMessage:Bt,setLocaleMessage:Vn,mergeLocaleMessage:Eu,getPostTranslationHandler:Nn,setPostTranslationHandler:Sn,getMissingHandler:In,setMissingHandler:Bn,[Ls]:Mn};return K.datetimeFormats=Dn,K.numberFormats=xe,K.rt=Jt,K.te=T,K.tm=$n,K.d=Ln,K.n=wn,K.getDateTimeFormat=c,K.setDateTimeFormat=d,K.mergeDateTimeFormat=I,K.getNumberFormat=P,K.setNumberFormat=ee,K.mergeNumberFormat=J,K[ws]=a,K[Br]=zt,K[Or]=Pn,K[Lr]=pn,process.env.NODE_ENV!=="production"&&(K[St]=C=>{w.__v_emitter=C},K[_n]=()=>{w.__v_emitter=void 0}),K}function vC(e){const t=R(e.locale)?e.locale:Pt,n=R(e.fallbackLocale)||z(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=X(e.missing)?e.missing:void 0,r=V(e.silentTranslationWarn)||et(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,u=V(e.silentFallbackWarn)||et(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=V(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=$(e.modifiers)?e.modifiers:{},o=e.pluralizationRules,h=X(e.postTranslation)?e.postTranslation:void 0,f=R(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,m=!!e.escapeParameterHtml,D=V(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&oe(be(Y.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&oe(be(Y.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let S=e.messages;if($(e.sharedMessages)){const b=e.sharedMessages;S=Object.keys(b).reduce((O,w)=>{const j=O[w]||(O[w]={});return le(j,b[w]),O},S||{})}const{__i18n:y,__root:B,__injectWithOption:E}=e,A=e.datetimeFormats,_=e.numberFormats,g=e.flatJson,N=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:S,flatJson:g,datetimeFormats:A,numberFormats:_,missing:a,missingWarn:r,fallbackWarn:u,fallbackRoot:i,fallbackFormat:s,modifiers:l,pluralRules:o,postTranslation:h,warnHtmlMessage:f,escapeParameter:m,messageResolver:e.messageResolver,inheritLocale:D,translateExistCompatible:N,__i18n:y,__root:B,__injectWithOption:E}}function Rr(e={},t){{const n=Tr(vC(e)),{__extender:a}=e,r={id:n.id,get locale(){return n.locale.value},set locale(u){n.locale.value=u},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(u){n.fallbackLocale.value=u},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&oe(be(Y.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(u){process.env.NODE_ENV!=="production"&&oe(be(Y.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(u){n.setMissingHandler(u)},get silentTranslationWarn(){return V(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(u){n.missingWarn=V(u)?!u:u},get silentFallbackWarn(){return V(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(u){n.fallbackWarn=V(u)?!u:u},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(u){n.fallbackFormat=u},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(u){n.setPostTranslationHandler(u)},get sync(){return n.inheritLocale},set sync(u){n.inheritLocale=u},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(u){n.warnHtmlMessage=u!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(u){n.escapeParameter=u},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&oe(be(Y.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(u){process.env.NODE_ENV!=="production"&&oe(be(Y.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...u){const[i,s,l]=u,o={};let h=null,f=null;if(!R(i))throw ce(W.INVALID_ARGUMENT);const m=i;return R(s)?o.locale=s:z(s)?h=s:$(s)&&(f=s),z(l)?h=l:$(l)&&(f=l),Reflect.apply(n.t,n,[m,h||f||{},o])},rt(...u){return Reflect.apply(n.rt,n,[...u])},tc(...u){const[i,s,l]=u,o={plural:1};let h=null,f=null;if(!R(i))throw ce(W.INVALID_ARGUMENT);const m=i;return R(s)?o.locale=s:se(s)?o.plural=s:z(s)?h=s:$(s)&&(f=s),R(l)?o.locale=l:z(l)?h=l:$(l)&&(f=l),Reflect.apply(n.t,n,[m,h||f||{},o])},te(u,i){return n.te(u,i)},tm(u){return n.tm(u)},getLocaleMessage(u){return n.getLocaleMessage(u)},setLocaleMessage(u,i){n.setLocaleMessage(u,i)},mergeLocaleMessage(u,i){n.mergeLocaleMessage(u,i)},d(...u){return Reflect.apply(n.d,n,[...u])},getDateTimeFormat(u){return n.getDateTimeFormat(u)},setDateTimeFormat(u,i){n.setDateTimeFormat(u,i)},mergeDateTimeFormat(u,i){n.mergeDateTimeFormat(u,i)},n(...u){return Reflect.apply(n.n,n,[...u])},getNumberFormat(u){return n.getNumberFormat(u)},setNumberFormat(u,i){n.setNumberFormat(u,i)},mergeNumberFormat(u,i){n.mergeNumberFormat(u,i)},getChoiceIndex(u,i){return process.env.NODE_ENV!=="production"&&oe(be(Y.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return r.__extender=a,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=u=>{const i=n;i[St]&&i[St](u)},r.__disableEmitter=()=>{const u=n;u[_n]&&u[_n]()}),r}}const pr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function yC({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,r)=>[...a,...r.type===da?r.children:[r]],[]):t.reduce((n,a)=>{const r=e[a];return r&&(n[a]=r()),n},{})}function ks(e){return da}const Pr=vr({name:"i18n-t",props:le({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>se(e)||!isNaN(e)}},pr),setup(e,t){const{slots:n,attrs:a}=t,r=e.i18n||kr({useScope:e.scope,__useComponent:!0});return()=>{const u=Object.keys(n).filter(f=>f!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=R(e.plural)?+e.plural:e.plural);const s=yC(t,u),l=r[Br](e.keypath,s,i),o=le({},a),h=R(e.tag)||H(e.tag)?e.tag:ks();return Ss(h,o,l)}}});function CC(e){return z(e)&&!R(e[0])}function Us(e,t,n,a){const{slots:r,attrs:u}=t;return()=>{const i={part:!0};let s={};e.locale&&(i.locale=e.locale),R(e.format)?i.key=e.format:H(e.format)&&(R(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((m,D)=>n.includes(D)?le({},m,{[D]:e.format[D]}):m,{}));const l=a(e.value,i,s);let o=[i.key];z(l)?o=l.map((m,D)=>{const S=r[m.type],y=S?S({[m.type]:m.value,index:D,parts:l}):[m.value];return CC(y)&&(y[0].key=`${m.type}-${D}`),y}):R(l)&&(o=[l]);const h=le({},u),f=R(e.tag)||H(e.tag)?e.tag:ks();return Ss(f,h,o)}}const xs=vr({name:"i18n-n",props:le({value:{type:Number,required:!0},format:{type:[String,Object]}},pr),setup(e,t){const n=e.i18n||kr({useScope:e.scope,__useComponent:!0});return Us(e,t,Fi,(...a)=>n[Lr](...a))}}),Ws=vr({name:"i18n-d",props:le({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},pr),setup(e,t){const n=e.i18n||kr({useScope:e.scope,__useComponent:!0});return Us(e,t,yi,(...a)=>n[Or](...a))}});function bC(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return a!=null?a.__composer:e.global.__composer}}function FC(e){const t=i=>{const{instance:s,modifiers:l,value:o}=i;if(!s||!s.$)throw ce(W.UNEXPECTED_ERROR);const h=bC(e,s.$);process.env.NODE_ENV!=="production"&&l.preserve&&oe(be(Y.NOT_SUPPORTED_PRESERVE));const f=Hs(o);return[Reflect.apply(h.t,h,[...js(f)]),h]};return{created:(i,s)=>{const[l,o]=t(s);Oe&&e.global===o&&(i.__i18nWatcher=Ar(o.locale,()=>{s.instance&&s.instance.$forceUpdate()})),i.__composer=o,i.textContent=l},unmounted:i=>{Oe&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:s})=>{if(i.__composer){const l=i.__composer,o=Hs(s);i.textContent=Reflect.apply(l.t,l,[...js(o)])}},getSSRProps:i=>{const[s]=t(i);return{textContent:s}}}}function Hs(e){if(R(e))return{path:e};if($(e)){if(!("path"in e))throw ce(W.REQUIRED_VALUE,"path");return e}else throw ce(W.INVALID_VALUE)}function js(e){const{path:t,locale:n,args:a,choice:r,plural:u}=e,i={},s=a||{};return R(n)&&(i.locale=n),se(r)&&(i.plural=r),se(u)&&(i.plural=u),[t,s,i]}function AC(e,t,...n){const a=$(n[0])?n[0]:{},r=!!a.useI18nComponentName,u=V(a.globalInstall)?a.globalInstall:!0;process.env.NODE_ENV!=="production"&&u&&r&&oe(be(Y.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Pr.name})),u&&([r?"i18n":Pr.name,"I18nT"].forEach(i=>e.component(i,Pr)),[xs.name,"I18nN"].forEach(i=>e.component(i,xs)),[Ws.name,"I18nD"].forEach(i=>e.component(i,Ws))),e.directive("t",FC(t))}const Mr={["vue-devtools-plugin-vue-i18n"]:"Vue I18n devtools",["vue-i18n-resource-inspector"]:"I18n Resources",["vue-i18n-timeline"]:"Vue I18n"},DC={["vue-i18n-resource-inspector"]:"Search for scopes ..."},NC={["vue-i18n-timeline"]:16764185},qs="vue-i18n: composer properties";let $r;function SC(e,t){return Ze(this,null,function*(){return new Promise((n,a)=>{try{fC({id:"vue-devtools-plugin-vue-i18n",label:Mr["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:[qs],app:e},r=>{$r=r,r.on.visitComponentTree(({componentInstance:i,treeNode:s})=>{IC(i,s,t)}),r.on.inspectComponent(({componentInstance:i,instanceData:s})=>{i.vnode.el&&i.vnode.el.__VUE_I18N__&&s&&(t.mode==="legacy"?i.vnode.el.__VUE_I18N__!==t.global.__composer&&Ks(s,i.vnode.el.__VUE_I18N__):Ks(s,i.vnode.el.__VUE_I18N__))}),r.addInspector({id:"vue-i18n-resource-inspector",label:Mr["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:DC["vue-i18n-resource-inspector"]}),r.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&TC(i,t)});const u=new Map;r.on.getInspectorState(i=>Ze(this,null,function*(){if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(r.unhighlightElement(),pC(i,t),i.nodeId==="global"){if(!u.has(i.app)){const[s]=yield r.getComponentInstances(i.app);u.set(i.app,s)}r.highlightElement(u.get(i.app))}else{const s=RC(i.nodeId,t);s&&r.highlightElement(s)}})),r.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&MC(i,t)}),r.addTimelineLayer({id:"vue-i18n-timeline",label:Mr["vue-i18n-timeline"],color:NC["vue-i18n-timeline"]}),n(!0)})}catch(r){console.error(r),a(!1)}})})}function Gs(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function IC(e,t,n){const a=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==a){const r={label:`i18n (${Gs(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(r)}}function Ks(e,t){const n=qs;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:Vr(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 Vr(e){const t={};return Object.keys(e).forEach(n=>{const a=e[n];X(a)&&"source"in a?t[n]=wC(a):at(a)&&a.loc&&a.loc.source?t[n]=a.loc.source:H(a)?t[n]=Vr(a):t[n]=a}),t}const BC={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function OC(e){return e.replace(/[<>"&]/g,LC)}function LC(e){return BC[e]||e}function wC(e){const t=e.source?`("${OC(e.source)}")`:"(?)";return{_custom:{type:"function",display:`<span>\u0192</span> ${t}`}}}function TC(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[a,r]of t.__instances){const u=t.mode==="composition"?r:r.__composer;n!==u&&e.rootNodes.push({id:u.id.toString(),label:`${Gs(a)} Scope`})}}function RC(e,t){let n=null;if(e!=="global"){for(const[a,r]of t.__instances.entries())if(r.id.toString()===e){n=a;break}}return n}function Xs(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(a=>a.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function pC(e,t){const n=Xs(e.nodeId,t);return n&&(e.state=PC(n)),null}function PC(e){const t={},n="Locale related info",a=[{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]=a;const r="Locale messages info",u=[{type:r,key:"messages",editable:!1,value:Vr(e.messages.value)}];t[r]=u;{const i="Datetime formats info",s=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=s;const l="Datetime formats info",o=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[l]=o}return t}function gn(e,t){if($r){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),$r.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 MC(e,t){const n=Xs(e.nodeId,t);if(n){const[a]=e.path;a==="locale"&&R(e.state.value)?n.locale.value=e.state.value:a==="fallbackLocale"&&(R(e.state.value)||z(e.state.value)||H(e.state.value))?n.fallbackLocale.value=e.state.value:a==="inheritLocale"&&V(e.state.value)&&(n.inheritLocale=e.state.value)}}function $C(e,t,n){return{beforeCreate(){const a=jt();if(!a)throw ce(W.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const u=r.i18n;if(r.__i18n&&(u.__i18n=r.__i18n),u.__root=t,this===this.$root)this.$i18n=Js(e,u);else{u.__injectWithOption=!0,u.__extender=n.__vueI18nExtend,this.$i18n=Rr(u);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Js(e,r);else{this.$i18n=Rr({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const u=this.$i18n;u.__extender&&(u.__disposer=u.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Rs(t,r,r),this.$t=(...u)=>this.$i18n.t(...u),this.$rt=(...u)=>this.$i18n.rt(...u),this.$tc=(...u)=>this.$i18n.tc(...u),this.$te=(u,i)=>this.$i18n.te(u,i),this.$d=(...u)=>this.$i18n.d(...u),this.$n=(...u)=>this.$i18n.n(...u),this.$tm=u=>this.$i18n.tm(u),n.__setInstance(a,this.$i18n)},mounted(){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const r=this.__v_emitter=Ua();a.__enableEmitter&&a.__enableEmitter(r),r.on("*",gn)}},unmounted(){const a=jt();if(!a)throw ce(W.UNEXPECTED_ERROR);const r=this.$i18n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",gn),delete this.__v_emitter),this.$i18n&&(r.__disableEmitter&&r.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(a),delete this.$i18n}}}function Js(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[Ls](t.pluralizationRules||e.pluralizationRules);const n=Ea(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(a=>e.mergeLocaleMessage(a,n[a])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a])),t.numberFormats&&Object.keys(t.numberFormats).forEach(a=>e.mergeNumberFormat(a,t.numberFormats[a])),e}const VC=Le("global-vue-i18n");function kC(e={},t){const n=__VUE_I18N_LEGACY_API__&&V(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,a=V(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,u=new Map,[i,s]=UC(e,n),l=Le(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&r&&oe(be(Y.NOTICE_DROP_ALLOW_COMPOSITION));function o(m){return u.get(m)||null}function h(m,D){u.set(m,D)}function f(m){u.delete(m)}{let D;const m={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},install(S,...y){return Ze(this,null,function*(){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&(S.__VUE_I18N__=m),S.__VUE_I18N_SYMBOL__=l,S.provide(S.__VUE_I18N_SYMBOL__,m),$(y[0])){const A=y[0];m.__composerExtend=A.__composerExtend,m.__vueI18nExtend=A.__vueI18nExtend}let B=null;!n&&a&&(B=JC(S,m.global)),__VUE_I18N_FULL_INSTALL__&&AC(S,m,...y),__VUE_I18N_LEGACY_API__&&n&&S.mixin($C(s,s.__composer,m));const E=S.unmount;if(S.unmount=()=>{B&&B(),m.dispose(),E()},process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__){if(!(yield SC(S,m)))throw ce(W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const _=Ua();if(n){const g=s;g.__enableEmitter&&g.__enableEmitter(_)}else{const g=s;g[St]&&g[St](_)}_.on("*",gn)}})},get global(){return s},dispose(){i.stop()},__instances:u,__getInstance:o,__setInstance:h,__deleteInstance:f};return m}}function kr(e={}){const t=jt();if(t==null)throw ce(W.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ce(W.NOT_INSTALLED);const n=xC(t),a=HC(n),r=Ts(t),u=WC(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw ce(W.NOT_AVAILABLE_IN_LEGACY_MODE);return KC(t,u,a,e)}if(u==="global")return Rs(a,e,r),a;if(u==="parent"){let l=jC(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&oe(be(Y.NOT_FOUND_PARENT_SCOPE)),l=a),l}const i=n;let s=i.__getInstance(t);if(s==null){const l=le({},e);"__i18n"in r&&(l.__i18n=r.__i18n),a&&(l.__root=a),s=Tr(l),i.__composerExtend&&(s[wr]=i.__composerExtend(s)),GC(i,t,s),i.__setInstance(t,s)}return s}function UC(e,t,n){const a=p5();{const r=__VUE_I18N_LEGACY_API__&&t?a.run(()=>Rr(e)):a.run(()=>Tr(e));if(r==null)throw ce(W.UNEXPECTED_ERROR);return[a,r]}}function xC(e){{const t=hs(e.isCE?VC:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ce(e.isCE?W.NOT_INSTALLED_WITH_PROVIDE:W.UNEXPECTED_ERROR);return t}}function WC(e,t){return xn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function HC(e){return e.mode==="composition"?e.global:e.global.__composer}function jC(e,t,n=!1){let a=null;const r=t.root;let u=qC(t,n);for(;u!=null;){const i=e;if(e.mode==="composition")a=i.__getInstance(u);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(u);s!=null&&(a=s.__composer,n&&a&&!a[ws]&&(a=null))}if(a!=null||r===u)break;u=u.parent}return a}function qC(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function GC(e,t,n){let a=null;Iy(()=>{if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=Ua();const r=n;r[St]&&r[St](a),a.on("*",gn)}},t),By(()=>{const r=n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",gn),r[_n]&&r[_n](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const u=r[wr];u&&(u(),delete r[wr])},t)}function KC(e,t,n,a={}){const r=t==="local",u=Yi(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ce(W.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=V(a.inheritLocale)?a.inheritLocale:!R(a.locale),s=kt(!r||i?n.locale.value:R(a.locale)?a.locale:Pt),l=kt(!r||i?n.fallbackLocale.value:R(a.fallbackLocale)||z(a.fallbackLocale)||$(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:s.value),o=kt(Ea(s.value,a)),h=kt($(a.datetimeFormats)?a.datetimeFormats:{[s.value]:{}}),f=kt($(a.numberFormats)?a.numberFormats:{[s.value]:{}}),m=r?n.missingWarn:V(a.missingWarn)||et(a.missingWarn)?a.missingWarn:!0,D=r?n.fallbackWarn:V(a.fallbackWarn)||et(a.fallbackWarn)?a.fallbackWarn:!0,S=r?n.fallbackRoot:V(a.fallbackRoot)?a.fallbackRoot:!0,y=!!a.fallbackFormat,B=X(a.missing)?a.missing:null,E=X(a.postTranslation)?a.postTranslation:null,A=r?n.warnHtmlMessage:V(a.warnHtmlMessage)?a.warnHtmlMessage:!0,_=!!a.escapeParameter,g=r?n.modifiers:$(a.modifiers)?a.modifiers:{},N=a.pluralRules||r&&n.pluralRules;function b(){return[s.value,l.value,o.value,h.value,f.value]}const v=Ve({get:()=>u.value?u.value.locale.value:s.value,set:T=>{u.value&&(u.value.locale.value=T),s.value=T}}),O=Ve({get:()=>u.value?u.value.fallbackLocale.value:l.value,set:T=>{u.value&&(u.value.fallbackLocale.value=T),l.value=T}}),w=Ve(()=>u.value?u.value.messages.value:o.value),j=Ve(()=>h.value),ye=Ve(()=>f.value);function k(){return u.value?u.value.getPostTranslationHandler():E}function ue(T){u.value&&u.value.setPostTranslationHandler(T)}function Ie(){return u.value?u.value.getMissingHandler():B}function Dn(T){u.value&&u.value.setMissingHandler(T)}function xe(T){return b(),T()}function Nn(...T){return u.value?xe(()=>Reflect.apply(u.value.t,null,[...T])):xe(()=>"")}function Sn(...T){return u.value?Reflect.apply(u.value.rt,null,[...T]):""}function In(...T){return u.value?xe(()=>Reflect.apply(u.value.d,null,[...T])):xe(()=>"")}function Bn(...T){return u.value?xe(()=>Reflect.apply(u.value.n,null,[...T])):xe(()=>"")}function On(T){return u.value?u.value.tm(T):{}}function Be(T,q){return u.value?u.value.te(T,q):!1}function Xt(T){return u.value?u.value.getLocaleMessage(T):{}}function Jt(T,q){u.value&&(u.value.setLocaleMessage(T,q),o.value[T]=q)}function Ln(T,q){u.value&&u.value.mergeLocaleMessage(T,q)}function wn(T){return u.value?u.value.getDateTimeFormat(T):{}}function Tn(T,q){u.value&&(u.value.setDateTimeFormat(T,q),h.value[T]=q)}function Ia(T,q){u.value&&u.value.mergeDateTimeFormat(T,q)}function Rn(T){return u.value?u.value.getNumberFormat(T):{}}function zt(T,q){u.value&&(u.value.setNumberFormat(T,q),f.value[T]=q)}function pn(T,q){u.value&&u.value.mergeNumberFormat(T,q)}const Pn={get id(){return u.value?u.value.id:-1},locale:v,fallbackLocale:O,messages:w,datetimeFormats:j,numberFormats:ye,get inheritLocale(){return u.value?u.value.inheritLocale:i},set inheritLocale(T){u.value&&(u.value.inheritLocale=T)},get availableLocales(){return u.value?u.value.availableLocales:Object.keys(o.value)},get modifiers(){return u.value?u.value.modifiers:g},get pluralRules(){return u.value?u.value.pluralRules:N},get isGlobal(){return u.value?u.value.isGlobal:!1},get missingWarn(){return u.value?u.value.missingWarn:m},set missingWarn(T){u.value&&(u.value.missingWarn=T)},get fallbackWarn(){return u.value?u.value.fallbackWarn:D},set fallbackWarn(T){u.value&&(u.value.missingWarn=T)},get fallbackRoot(){return u.value?u.value.fallbackRoot:S},set fallbackRoot(T){u.value&&(u.value.fallbackRoot=T)},get fallbackFormat(){return u.value?u.value.fallbackFormat:y},set fallbackFormat(T){u.value&&(u.value.fallbackFormat=T)},get warnHtmlMessage(){return u.value?u.value.warnHtmlMessage:A},set warnHtmlMessage(T){u.value&&(u.value.warnHtmlMessage=T)},get escapeParameter(){return u.value?u.value.escapeParameter:_},set escapeParameter(T){u.value&&(u.value.escapeParameter=T)},t:Nn,getPostTranslationHandler:k,setPostTranslationHandler:ue,getMissingHandler:Ie,setMissingHandler:Dn,rt:Sn,d:In,n:Bn,tm:On,te:Be,getLocaleMessage:Xt,setLocaleMessage:Jt,mergeLocaleMessage:Ln,getDateTimeFormat:wn,setDateTimeFormat:Tn,mergeDateTimeFormat:Ia,getNumberFormat:Rn,setNumberFormat:zt,mergeNumberFormat:pn};function Mn(T){T.locale.value=s.value,T.fallbackLocale.value=l.value,Object.keys(o.value).forEach(q=>{T.mergeLocaleMessage(q,o.value[q])}),Object.keys(h.value).forEach(q=>{T.mergeDateTimeFormat(q,h.value[q])}),Object.keys(f.value).forEach(q=>{T.mergeNumberFormat(q,f.value[q])}),T.escapeParameter=_,T.fallbackFormat=y,T.fallbackRoot=S,T.fallbackWarn=D,T.missingWarn=m,T.warnHtmlMessage=A}return Sy(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ce(W.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const T=u.value=e.proxy.$i18n.__composer;t==="global"?(s.value=T.locale.value,l.value=T.fallbackLocale.value,o.value=T.messages.value,h.value=T.datetimeFormats.value,f.value=T.numberFormats.value):r&&Mn(T)}),Pn}const XC=["locale","fallbackLocale","availableLocales"],zs=["t","rt","d","n","tm","te"];function JC(e,t){const n=Object.create(null);return XC.forEach(r=>{const u=Object.getOwnPropertyDescriptor(t,r);if(!u)throw ce(W.UNEXPECTED_ERROR);const i=Ce(u.value)?{get(){return u.value.value},set(s){u.value.value=s}}:{get(){return u.get&&u.get()}};Object.defineProperty(n,r,i)}),e.config.globalProperties.$i18n=n,zs.forEach(r=>{const u=Object.getOwnPropertyDescriptor(t,r);if(!u||!u.value)throw ce(W.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,u)}),()=>{delete e.config.globalProperties.$i18n,zs.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}if(mC(),__INTLIFY_JIT_COMPILATION__?Qu(d5):Qu(f5),a5($v),r5(Ku),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=He();e.__INTLIFY__=!0,Gv(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const zC=(e,t)=>{if(!e)return console.error("getLocaleText\u7684key\u4E0D\u80FD\u4E3A\u7A7A"),"";const n=e.split(".");let a;const r=(window.baitedaWorkers||{}).languageMessages||{};n.forEach((i,s)=>{s===0?a=r[i]:a&&(a=a[i])});let u="";return a&&(u=a),t&&Object.keys(t).forEach(i=>{const s=t[i];u=u.replace(new RegExp(`\\{\\s*${i}\\s*\\}`,"g"),s)}),u||(u=e),u};function QC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qs(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function ZC(e,t,n){return t&&Qs(e.prototype,t),n&&Qs(e,n),e}function YC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(){function e(){QC(this,e)}return ZC(e,null,[{key:"getMessage",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r;return(r=zC("engine."+n))!==null&&r!==void 0?r:this.$i18n.global.t(n,a)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tg;return kC({locale:n,globalInjection:!0,silentFallbackWarn:!0,missingWarn:!1,fallbackWarn:!1,silentTranslationWarn:!0})}},{key:"setLocale",value:function(n,a){var r=a;a||(r=wg.zhCN),this.$i18n.global.setLocaleMessage(n,r)}}]),e}();YC(p,"$i18n",p.resetI18n());function e3(e,t,n){var a=t.replace(/\[(\d)]/g,function(u,i){return"."+i}).split("."),r=!1;return a.reduce(function(u,i,s,l){var o=u;if(!!u){if(!Object.prototype.hasOwnProperty.call(u,i)){Ma("Can not set ".concat(t,"'s ").concat(i," property in current %o, Because there is no ").concat(i," property on the %o"),u,u);return}return s===l.length-1&&!Object.is(o[i],n)&&(o[i]=n,r=!0),o[i]}},e),r}var t3=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},n3={exports:{}};(function(e){(function(t){var n=function(E,A,_){if(!o(A)||f(A)||m(A)||D(A)||l(A))return A;var g,N=0,b=0;if(h(A))for(g=[],b=A.length;N<b;N++)g.push(n(E,A[N],_));else{g={};for(var v in A)Object.prototype.hasOwnProperty.call(A,v)&&(g[E(v,_)]=n(E,A[v],_))}return g},a=function(E,A){A=A||{};var _=A.separator||"_",g=A.split||/(?=[A-Z])/;return E.split(g).join(_)},r=function(E){return S(E)?E:(E=E.replace(/[\-_\s]+(.)?/g,function(A,_){return _?_.toUpperCase():""}),E.substr(0,1).toLowerCase()+E.substr(1))},u=function(E){var A=r(E);return A.substr(0,1).toUpperCase()+A.substr(1)},i=function(E,A){return a(E,A).toLowerCase()},s=Object.prototype.toString,l=function(E){return typeof E=="function"},o=function(E){return E===Object(E)},h=function(E){return s.call(E)=="[object Array]"},f=function(E){return s.call(E)=="[object Date]"},m=function(E){return s.call(E)=="[object RegExp]"},D=function(E){return s.call(E)=="[object Boolean]"},S=function(E){return E=E-0,E===E},y=function(E,A){var _=A&&"process"in A?A.process:A;return typeof _!="function"?E:function(g,N){return _(g,E,N)}},B={camelize:r,decamelize:i,pascalize:u,depascalize:i,camelizeKeys:function(E,A){return n(y(r,A),E)},decamelizeKeys:function(E,A){return n(y(i,A),E,A)},pascalizeKeys:function(E,A){return n(y(u,A),E)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=B:t.humps=B})(t3)})(n3);var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});function Ur(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(t=>typeof t!="object"||t===null?t:Ur(t));{const t={};for(const n in e){const a=e[n];t[n]=typeof a!="object"||a===null?a:Ur(a)}return t}}var a3=Zs.default=Ur;function r3(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Xe(e){if(e!==void 0)return(typeof e=="undefined"?"undefined":r3(e))==="object"?a3(e):e}function u3(e){return Object.prototype.toString.call(e)==="[object Object]"}function i3(e){return Array.isArray(e)}function s3(e){return e.reduce(function(t,n){return t.includes(n)||t.push(n),t},[])}function xr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function l3(e){if(Array.isArray(e))return xr(e)}function Ys(e,t,n,a,r,u,i){try{var s=e[u](i),l=s.value}catch(o){n(o);return}s.done?t(l):Promise.resolve(l).then(a,r)}function o3(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var u=e.apply(t,n);function i(l){Ys(u,a,r,i,s,"next",l)}function s(l){Ys(u,a,r,i,s,"throw",l)}i(void 0)})}}function c3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function el(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function f3(e,t,n){return t&&el(e.prototype,t),n&&el(e,n),e}function tl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d3(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function m3(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Wr(e){return l3(e)||d3(e)||h3(e)||m3()}function h3(e,t){if(!!e){if(typeof e=="string")return xr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xr(e,t)}}function _3(e,t){var n,a,r,u,i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(o){return function(h){return l([o,h])}}function l(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,a&&(r=o[0]&2?a.return:o[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;switch(a=0,r&&(o=[o[0]&2,r.value]),o[0]){case 0:case 1:r=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,a=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1],r=o;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(o);break}r[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(h){o=[6,h],a=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}var E3=function(){function e(){c3(this,e),tl(this,"_events",new Map),tl(this,"debug",!1)}return f3(e,[{key:"emit",value:function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),u=1;u<a;u++)r[u-1]=arguments[u];var i=this;return o3(function(){var s,l,o,h,f,m,D,S,y,B,E,A;return _3(this,function(_){switch(_.label){case 0:if(s=i._events.get(n),l=[],!s)return[3,10];o=s.slice(),h=!0,f=!1,m=void 0,_.label=1;case 1:_.trys.push([1,8,9,10]),D=o[Symbol.iterator](),_.label=2;case 2:if(h=(S=D.next()).done)return[3,7];if(y=S.value,!s.includes(y))return[3,6];_.label=3;case 3:return _.trys.push([3,5,,6]),i.debug&&Lu.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(y.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+y.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(r.map(function(){return"%o"}).join(","),"\u3002")].concat(Wr(r))),[4,y.apply(null,Wr(r))];case 4:return B=_.sent(),i.debug&&Lu.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(y.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+y.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(r.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(Wr(r),[B])),l.push(B),B===!1?[3,7]:[3,6];case 5:return E=_.sent(),jg(String(E)+":"+String(E.stack)),[3,6];case 6:return h=!0,[3,2];case 7:return[3,10];case 8:return A=_.sent(),f=!0,m=A,[3,10];case 9:try{!h&&D.return!=null&&D.return()}finally{if(f)throw m}return[7];case 10:return[2,l]}})})()}},{key:"on",value:function(n,a){if(this._events.has(n)){var r;(r=this._events.get(n))===null||r===void 0||r.push(a)}else this._events.set(n,[a])}},{key:"off",value:function(n,a){if(this._events.has(n)){var r=this._events.get(n),u=r==null?void 0:r.indexOf(a);r==null||r.splice(u,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),e}();function g3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nl(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function v3(e,t,n){return t&&nl(e.prototype,t),n&&nl(e,n),e}function y3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C3=[{key:"on_click",name:p.getMessage("click"),code:"click"},{key:"on_click_finish",name:p.getMessage("finished"),code:"click-finish"},{key:"on_change",name:p.getMessage("valueChange"),code:"change"},{key:"on_search",name:p.getMessage("search"),code:"search"},{key:"on_list_change",name:p.getMessage("listDataChange"),code:"list-change"},{key:"on_list_search",name:p.getMessage("listDataCreate"),code:"list-search"},{key:"on_list_mounted",name:p.getMessage("listDataBack"),code:"list-mounted"},{key:"on_list_delete",name:p.getMessage("listDataDelete"),code:"list-delete"},{key:"on_list_before_insert",name:p.getMessage("listDataAdd"),code:"list-before-insert"},{key:"on_input",name:p.getMessage("onInput"),code:"input"},{key:"on_blur",name:p.getMessage("onBlur"),code:"blur"},{key:"on_focus",name:p.getMessage("onFocus"),code:"focus"},{key:"on_wps_open",name:p.getMessage("onOpenFile"),code:"wps-open"},{key:"on_wps_save",name:p.getMessage("onSaveFile"),code:"wps-save"},{key:"on_wps_rename",name:p.getMessage("rename"),code:"wps-rename"},{key:"on_list_actions",name:p.getMessage("onClickBtn"),code:"list-actions"},{key:"on_list_render_operation",name:p.getMessage("cellRender"),code:"list-render-operation"},{key:"on_list_rowclick",name:p.getMessage("rowClick"),code:"list-rowclick"},{key:"on_list_before_rowdelete",name:p.getMessage("rowDelete"),code:"list-before-rowdelete"},{key:"on_list_before_import",name:p.getMessage("listDataImport"),code:"list-before-import"},{key:"on_list_rows_checked",name:p.getMessage("rowSelected"),code:"list-rows-checked"},{key:"on_change_tab",name:p.getMessage("tabChange"),code:"change-tab"},{key:"on_modal_ok",name:p.getMessage("modalConfirm"),code:"modal-ok"}],b3=function(){function e(){g3(this,e)}return v3(e,null,[{key:"getEventsFromKeys",value:function(n){var a=typeof n=="string"?[n]:n;return e.events.filter(function(r){return a.includes(r.key)})}},{key:"getEventsFromControl",value:function(n){var a=[],r=n.eventKeys;a=a.concat(e.events.filter(function(i){return r.includes(i.key)}));var u=n.customEvents.map(function(i){var s=i.key;return i.namespace!==void 0&&i.namespace!==null&&i.namespace!==""&&(s=i.namespace+":"+i.key),{key:s,code:i.key,name:i.name}});return a=a.concat(u),a}}]),e}();y3(b3,"events",C3);function ga(e,t){var n;(n=Object.getOwnPropertyDescriptors(e)[t])!=null&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function Hr(e,t,n){n!=="Runtime"&&(e.parent=t,ga(e,"parent"))}function al(e,t,n){e.forEach(a=>{Hr(a,t,n)})}const rl=Symbol("targetKey");function ul(e){var t;return(t=e[rl])!=null?t:e}function il(e,t,n){return al(e,t,n),new Proxy(e,{get(a,r,...u){return r===rl?a:Reflect.get(a,r,...u)},set(a,r,u,...i){if(i3(e)&&r==="length"&&u===e.length)return!0;const s=Reflect.set(a,r,u,...i);return u3(u)&&Hr(u,t,n),s}})}function dt(e,t,n,a,r){const u=a!=null?a:e;let i=il(ul(n!=null?n:[]),u,r);Object.defineProperty(e,t,{get(){return i},set(s){i=il(ul(s),u,r)},enumerable:!0})}const sl=[],jr=class{constructor(e){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=e,this._initControls(e)}static staticGetRules(e,t){const n=jr.staticControlsRuntimeRules.get(e);let a=[];if(n){const r=new n(t);a=Array.from(r)}return a}registerControlConfig(e,t){return this.controlConfigMap.set(e,t),this}getControlConfig(e){return this.controlConfigMap.get(e)}static register(e,t){const{Designer:n,Runtime:a,Property:r}=e;(!n||!a||!n.__is_control__||!a.__is_control__)&&Va(`${e} is can't register as a Control`);const u=this.staticControls.findIndex(i=>i.Designer.controlType===n.controlType);return u>-1&&(Ma(`The ${n.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(u,1)),this.staticRegisteredTypes.add(n.controlType),this.staticControls.push(e),r.mode=t,this}getControls(){return this._controls}register(e){e.__is_control__||Va(`${e.name} is not a Control`);const t=this._controls.findIndex(n=>n.controlType===e.controlType);return t>-1&&(Ma(`The ${e.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(t,1)),this.registeredControlTypes.add(e.controlType),this._controls.push(e),this}isLayoutControl(e){return e.controlType===wt.LAYOUT}isFormControl(e){return e.controlType===wt.FORM}isListControl(e){return e.controlType===wt.LIST}isColumnControl(e){return e.controlType===wt.COLUMN}createControl(e,t){if(Array.isArray(e))return e.map(a=>this.createControl(a,t));if(e.children&&(e.children=e.children.map(a=>this.createControl(a,t))),this.isListControl(e)){const a=e.props;a.headers&&(a.headers=a.headers.map(r=>this.createControl(r,t)))}const n=this.getControlFormType(e.type);if(n){let a=e;if(typeof t=="function"){const u=t(a);u&&(a=u)}let r;return n.mode==="Runtime"?(r=a,r.fieldType=n.controlFieldType,this._setParentPrototypeToSchema(r,this)):r=new n(a),r}else Va(`The constructor of ${e.type} could not be found, please confirm that the constructor has been registered`)}resetInstanceParent(e,t){delete e.parent,Object.defineProperty(e,"parent",{configurable:!0,get(){return t}}),ga(e,"parent")}_setParentPrototypeToSchema(e,t){t._type==="Runtime"&&(Object.defineProperty(e,"parent",{configurable:!0,get(){const n=e.id,a=t._controlParentIdMap,r=t.instanceMap;if(!a||!r)return;const u=a[n],i=r[n];if(!u&&!i)return;const s=i.findIndex(h=>h==e),l=r[u]||[];let o;return l.length!==i.length?o=l[0]:o=l[s],o}}),ga(e,"parent"))}createControlInstance(e,t){const n=this.getControlFormType(e);if(n)return new n(t)}getControlFormType(e){return this._controls.find(t=>t.controlType===e)}_initControls(e){this.constructor.staticControls.forEach(t=>{this.register(t[e]),jr.staticControlsRuntimeRules.set(t.Runtime.controlType,t.Property.RuntimeRules),t.Property.mode=e})}};let vn=jr;vn.staticControlsRuntimeRules=new Map,vn.staticControls=sl,vn.staticRegisteredTypes=new Set(sl.map(e=>e.Designer.controlType)),vn.staticRegisteredConfigs=new Map;class ke{constructor(t){var n,a,r;this.dataCode=(n=t==null?void 0:t.dataCode)!=null?n:"",this.fieldCode=(a=t==null?void 0:t.fieldCode)!=null?a:"",this.fieldType=(r=t==null?void 0:t.fieldType)!=null?r:"",this.aliasCode=t==null?void 0:t.aliasCode}}class qr{constructor(t){var n,a;this.minWidth=(n=t==null?void 0:t.minWidth)!=null?n:150,this.maxWidth=t==null?void 0:t.maxWidth,this.flex=(a=t==null?void 0:t.flex)!=null?a:1}}class Gr{constructor(t){var n,a,r,u;this.rowHeightType=(n=t==null?void 0:t.rowHeightType)!=null?n:"fixed",this.minRows=(a=t==null?void 0:t.minRows)!=null?a:4,this.maxRows=(r=t==null?void 0:t.maxRows)!=null?r:20,this.fiexdRow=(u=t==null?void 0:t.fiexdRow)!=null?u:4}}class F3{constructor(t){this.pc=new Gr(t==null?void 0:t.pc),this.mobile=new Gr(t==null?void 0:t.mobile)}}class va extends qr{constructor(t){var n,a;super(t),this.width=(n=t==null?void 0:t.width)!=null?n:240,this.widthType=(a=t==null?void 0:t.widthType)!=null?a:"auto"}}class A3{constructor(t){this.pc=new va(t==null?void 0:t.pc),this.mobile=t!=null&&t.mobile?new va(t==null?void 0:t.mobile):new va({width:130,minWidth:180})}}class D3{constructor(t){var n,a;this.type=(n=t==null?void 0:t.type)!=null?n:"firstThree",this.customOptions=(a=t==null?void 0:t.customOptions)!=null?a:[]}}class ya{constructor(t){var n,a,r;this.dataCode=(n=t==null?void 0:t.dataCode)!=null?n:"",this.formKey=(a=t==null?void 0:t.formKey)!=null?a:"",this.appId=(r=t==null?void 0:t.appId)!=null?r:""}}class N3 extends ya{constructor(t){var n;super(t),this.primaryControlId=(n=t==null?void 0:t.primaryControlId)!=null?n:""}}class ll{constructor(t){var n,a;this.fieldCode=(n=t==null?void 0:t.fieldCode)!=null?n:"",this.dataCode=(a=t==null?void 0:t.dataCode)!=null?a:""}}class S3{constructor(t){var n,a,r,u;this.appId=(n=t==null?void 0:t.appId)!=null?n:"",this.formKey=(a=t==null?void 0:t.formKey)!=null?a:"",this.headers=(u=(r=t==null?void 0:t.headers)==null?void 0:r.map(i=>new ll(i)))!=null?u:[]}}class ol{constructor(t){var n,a,r;this.fieldName=(n=t==null?void 0:t.fieldName)!=null?n:"",this.fieldCode=(a=t==null?void 0:t.fieldCode)!=null?a:"",this.fieldType=(r=t==null?void 0:t.fieldType)!=null?r:en.VARCHAR}}class cl extends ya{constructor(t){var n,a,r,u;super(t),this.title=(n=t==null?void 0:t.title)!=null?n:"",this.svcCode=(a=t==null?void 0:t.svcCode)!=null?a:"",this.isOpenFilter=(r=t==null?void 0:t.isOpenFilter)!=null?r:!1,this.filters=(u=t==null?void 0:t.filters)!=null?u:[]}}class I3{constructor(t){var n,a,r,u;this.type="sublist-page",this.formBind=new ya(t==null?void 0:t.formBind),this.displayFields=(a=(n=t==null?void 0:t.displayFields)==null?void 0:n.map(i=>new ol(i)))!=null?a:[],this.sublists=(u=(r=t==null?void 0:t.sublists)==null?void 0:r.map(i=>new cl(i)))!=null?u:[]}}class fl{constructor(t){this.type=t==null?void 0:t.type,this.value=t==null?void 0:t.value,this.dataCode=t==null?void 0:t.dataCode}}class Kr{constructor(t){var n,a,r;this.type=(n=t==null?void 0:t.type)!=null?n:"custom",this.value=(a=t==null?void 0:t.value)!=null?a:[],this.displayBos=(r=t==null?void 0:t.displayBos)!=null?r:[]}}class Gt{constructor(t){var n,a,r,u;this.type="conditions",this.id=(n=t==null?void 0:t.id)!=null?n:Ye(),this.ruleId=(a=t==null?void 0:t.ruleId)!=null?a:new Date().valueOf(),this.level=(r=t==null?void 0:t.level)!=null?r:0,this.value=(u=t==null?void 0:t.value)!=null?u:"and",this.children=[],Array.isArray(t==null?void 0:t.children)&&(t==null||t.children.map(i=>{var s,l;if(i.children!==void 0){const o=new Gt(i);(s=this.children)==null||s.push(o)}else{const o=new yn(i);(l=this.children)==null||l.push(o)}}))}}class yn{constructor(t){var n,a,r,u,i;this.type="condition",this.id=(n=t==null?void 0:t.id)!=null?n:Ye(),this.ruleId=(a=t==null?void 0:t.ruleId)!=null?a:new Date().valueOf(),this.symbol=(r=t==null?void 0:t.symbol)!=null?r:"",this.checked=(u=t==null?void 0:t.checked)!=null?u:!1,this.describe=(i=t==null?void 0:t.describe)!=null?i:"",this.leftVariableBo=new fl(t==null?void 0:t.leftVariableBo),this.rightVariableBo=new Kr(t==null?void 0:t.rightVariableBo)}}class B3{constructor(t){var n,a;this.aliasCode=(n=t==null?void 0:t.aliasCode)!=null?n:"",this.datasourceBind=new Ca(t==null?void 0:t.datasourceBind),this.relationFields=(a=t==null?void 0:t.relationFields)!=null?a:[]}}class dl{constructor(t){var n,a,r,u;this.controlId=(n=t==null?void 0:t.controlId)!=null?n:"",this.fieldCode=(a=t==null?void 0:t.fieldCode)!=null?a:"",this.fieldType=(r=t==null?void 0:t.fieldType)!=null?r:"",this.propName=(u=t==null?void 0:t.propName)!=null?u:""}}class Xr{constructor(t){var n,a;this.type=(n=t==null?void 0:t.type)!=null?n:"FIELD",this.value=(a=t==null?void 0:t.value)!=null?a:"",this.fieldType=t==null?void 0:t.fieldType}}class O3{constructor(t){var n,a;this.title=(n=t==null?void 0:t.title)!=null?n:"",this.displayBoList=(a=t==null?void 0:t.displayBoList)!=null?a:[]}}class Jr{constructor(t){var n,a;this.columnName=(n=t.columnName)!=null?n:"",this.desc=(a=t.desc)!=null?a:!1}}class ml{constructor(t){var n,a,r;this.code=(n=t.code)!=null?n:"",this.value=(a=t.value)!=null?a:"",this.field_type=(r=t.field_type)!=null?r:en.ANY}}class L3{constructor(t){var n,a,r,u,i,s,l;this.id=(n=t.id)!=null?n:"",this.limit=(a=t.limit)!=null?a:20,this.formKey=(r=t.formKey)!=null?r:"",this.orders=(i=(u=t.orders)==null?void 0:u.map(o=>new Jr(o)))!=null?i:[],this.dataSet=(l=(s=t.dataSet)==null?void 0:s.map(o=>new ml(o)))!=null?l:[]}}function zr(e){var t,n,a,r,u,i;this.filters=(n=(t=e==null?void 0:e.filters)==null?void 0:t.map(s=>s.children!==void 0?new Gt(s):new yn(s)))!=null?n:[],this.viewFilters=(r=(a=e==null?void 0:e.viewFilters)==null?void 0:a.map(s=>s.children!==void 0?new Gt(s):new yn(s)))!=null?r:[],this.orders=(i=(u=e==null?void 0:e.orders)==null?void 0:u.map(s=>new Jr(s)))!=null?i:[]}class Ca{constructor(t){var n,a,r,u,i,s,l;this.dataCode=(n=t==null?void 0:t.dataCode)!=null?n:"",this.appId=(a=t==null?void 0:t.appId)!=null?a:"",this.valueFieldCode=(r=t==null?void 0:t.valueFieldCode)!=null?r:"",this.displayBoList=[],this.isOpenViewFilters=(u=t==null?void 0:t.isOpenViewFilters)!=null?u:0,Array.isArray(t==null?void 0:t.displayBoList)&&(t==null||t.displayBoList.map(o=>{var h;(h=this.displayBoList)==null||h.push(new Xr(o))})),this.keywordMapping=(i=t==null?void 0:t.keywordMapping)!=null?i:"",this.showOrder=(s=t==null?void 0:t.showOrder)!=null?s:!0,this.svcCode=(l=t==null?void 0:t.svcCode)!=null?l:"",zr.call(this,t)}}class w3{constructor(t){var n,a;this.dataCode=(n=t==null?void 0:t.dataCode)!=null?n:"",this.displayBoList=(a=t==null?void 0:t.displayBoList)!=null?a:[]}}class T3{constructor(t){var n,a,r,u,i,s,l,o,h,f;this.code=(n=t==null?void 0:t.code)!=null?n:"view",this.color=(a=t==null?void 0:t.color)!=null?a:"primary",this.command=(r=t==null?void 0:t.command)!=null?r:"view",this.confirmMessage=(u=t==null?void 0:t.confirmMessage)!=null?u:void 0,this.defaultState=(i=t==null?void 0:t.defaultState)!=null?i:"default",this.formKey=(s=t==null?void 0:t.formKey)!=null?s:void 0,this.formType=t==null?void 0:t.formType,this.icon=(l=t==null?void 0:t.icon)!=null?l:"iconliulan1",this.needConfirm=(o=t==null?void 0:t.needConfirm)!=null?o:!1,this.openType=(h=t==null?void 0:t.openType)!=null?h:"modal",this.priorityProcess=(f=t==null?void 0:t.priorityProcess)!=null?f:!0}}class Qr{constructor(t){var n,a,r,u;this.name=(n=t==null?void 0:t.name)!=null?n:"",this.key=(a=t==null?void 0:t.key)!=null?a:"",this.value=(u=(r=t==null?void 0:t.value)==null?void 0:r.map(i=>new Xr(i)))!=null?u:[]}}class hl extends Ca{constructor(t){var n,a;super(t),this.attributes=(a=(n=t==null?void 0:t.attributes)==null?void 0:n.map(r=>new Qr(r)))!=null?a:[]}}class R3 extends Ca{constructor(t){var n,a,r;super(t),this.attributes=(a=(n=t==null?void 0:t.attributes)==null?void 0:n.map(u=>new Qr(u)))!=null?a:[],this.formCode=(r=t==null?void 0:t.formCode)!=null?r:""}}class p3 extends hl{constructor(t){var n;super(t),this.rootNode=new Kr(t==null?void 0:t.rootNode),this.filterCode=(n=t==null?void 0:t.filterCode)!=null?n:""}}class _l{constructor(t){var n,a,r,u;this.dataCode=(n=t==null?void 0:t.dataCode)!=null?n:"",this.appId=(a=t==null?void 0:t.appId)!=null?a:"",this.fillList=(u=(r=t==null?void 0:t.fillList)==null?void 0:r.map(i=>new dl(i)))!=null?u:[]}}class P3 extends _l{constructor(t){super(t),zr.call(this,t)}}class M3 extends _l{constructor(t){var n,a;super(t),this.mode=(n=t==null?void 0:t.mode)!=null?n:"current",this.multiple=(a=t==null?void 0:t.multiple)!=null?a:!1}}class $3{constructor(t){var n,a,r;this.zh=(n=t==null?void 0:t.zh)!=null?n:"",this.en=(a=t==null?void 0:t.en)!=null?a:"",this.ja=(r=t==null?void 0:t.ja)!=null?r:""}}class V3{constructor(t){var n,a,r;this.stencilName=(n=t==null?void 0:t.stencilName)!=null?n:"",this.expression=(a=t==null?void 0:t.expression)!=null?a:"",this.errMessage=(r=t==null?void 0:t.errMessage)!=null?r:""}}class Zr{constructor(t){var n,a,r;this.id=(n=t==null?void 0:t.id)!=null?n:Ye(8),this.label=(a=t==null?void 0:t.label)!=null?a:"",this.value=(r=t==null?void 0:t.value)!=null?r:this.label}}class El extends Zr{constructor(t){var n,a;super(t),this.image=(n=t==null?void 0:t.image)!=null?n:"",this.type=(a=t==null?void 0:t.type)!=null?a:"src"}}function k3(e){var t;return(t=e==null?void 0:e.map(n=>new Zr(n)))!=null?t:[]}function U3(e){var t;return(t=e==null?void 0:e.map(n=>new El(n)))!=null?t:[]}class ba{}class x3 extends ba{constructor(t){super(),this.amount=new ke(t==null?void 0:t.amount),this.currency=new ke(t==null?void 0:t.currency)}}class W3{constructor(t){var n,a;this.amount=(n=t==null?void 0:t.amount)!=null?n:"",this.currency=(a=t==null?void 0:t.currency)!=null?a:Yr.CNY}}class H3 extends ba{constructor(t){super(),this.min=new ke(t==null?void 0:t.min),this.max=new ke(t==null?void 0:t.max)}}class j3{constructor(t){var n,a;this.min=(n=t==null?void 0:t.min)!=null?n:"",this.max=(a=t==null?void 0:t.max)!=null?a:""}}class q3{constructor(t){var n,a,r,u,i,s;this.city=(n=t==null?void 0:t.city)!=null?n:"",this.cityDisplay=(a=t==null?void 0:t.cityDisplay)!=null?a:"",this.district=(r=t==null?void 0:t.district)!=null?r:"",this.districtDisplay=(u=t==null?void 0:t.districtDisplay)!=null?u:"",this.province=(i=t==null?void 0:t.province)!=null?i:"",this.provinceDisplay=(s=t==null?void 0:t.provinceDisplay)!=null?s:""}}class G3 extends ba{constructor(t){super(),this.result=new ke(t==null?void 0:t.result),this.unit=new ke(t==null?void 0:t.unit)}}class K3{constructor(t){var n,a;this.result=(n=t==null?void 0:t.result)!=null?n:0,this.unit=(a=t==null?void 0:t.unit)!=null?a:""}}var Yr=(e=>(e.CNY="CNY",e.USD="USD",e.JPY="JPY",e.EUR="EUR",e.INR="INR",e.IDR="IDR",e.BRL="BRL",e.AED="AED",e.AUD="AUD",e.CAD="CAD",e.EGP="EGP",e.GBP="GBP",e.ZAR="ZAR",e.KRW="KRW",e.MAD="MAD",e.MXN="MXN",e.MYR="MYR",e.PHP="PHP",e.PLN="PLN",e.RUB="RUB",e.SGD="SGD",e.THB="THB",e.TRY="TRY",e.TWD="TWD",e.VND="VND",e.HKD="HKD",e.IEP="IEP",e))(Yr||{}),gl=(e=>(e.DEFAULT_DISPLAY="defaultDisplay",e.REQUIRED="required",e.IS_HIDE="isHide",e.IS_SHOW_UNIT="isShowUnit",e.IMD_SEARCH="immediatelySearch",e.MULTIPLE="multiple",e.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",e.CAPTION="caption",e.IS_HIDE_CAPTION="isHideCaption",e.DEFAULT_SHOW_OPTIONS="defaultShowOptions",e.CAN_SEARCH="canSearch",e.CAN_CHECK="canCheck",e.CAN_EDIT="canEdit",e.CAN_DELETE="canDelete",e.SHOW_UPPER_CASE="showUpperCase",e.MICROMETER="micrometer",e.PRECISION="precision",e.PERCENTAGE="percentage",e.OPTIONAL_LEVEL="optionalLevel",e.CONTAINS_SUB_NODE="containsSubNode",e.DEFAULT_COLLAPSE="defaultCollapse",e.CAN_VIEW_FORM="canViewForm",e.VIEW_FORM_MODEL_TYPE="viewFormModelType",e.SERVER_PAGINATION="serverPagination",e.IS_SHOW_CAPTION_TIP="isShowCaptionTip",e.IS_SHOW_WATERMARK="isShowWatermark",e.ENCRYPTED="encrypted",e.IS_INLINE_EDIT="isInlineEdit",e.REVISIONS_MODE="revisionsMode",e.ALLOW_COPY_OPTIONS="allowCopyOptions",e.IS_PASTE="isPaste",e.SORTABLE="sortable",e))(gl||{}),eu=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT",e))(eu||{});class X3{constructor(t){var n,a,r,u,i,s;this.isShow=(n=t==null?void 0:t.isShow)!=null?n:!0,this.content=(a=t==null?void 0:t.content)!=null?a:"",this.formKey=(r=t==null?void 0:t.formKey)!=null?r:"",this.openType=(u=t==null?void 0:t.openType)!=null?u:"modal",this.type=(i=t==null?void 0:t.type)!=null?i:"",this.priorityProcess=(s=t==null?void 0:t.priorityProcess)!=null?s:!1}}class J3{constructor(t){var n,a,r,u;this.id=(n=t==null?void 0:t.id)!=null?n:Ye(8),this.title=(a=t==null?void 0:t.title)!=null?a:"",this.headers=(u=(r=t==null?void 0:t.headers)==null?void 0:r.map(i=>new ll(i)))!=null?u:[],zr.call(this,t)}}class z3{constructor(t){var n,a;this.key=(n=t.key)!=null?n:Ye(8),this.caption=(a=t.caption)!=null?a:""}}class vl{constructor(t){var n,a,r,u;this.width=(n=t==null?void 0:t.width)!=null?n:"",this.height=(a=t==null?void 0:t.height)!=null?a:"",this.widthConfig=(r=t==null?void 0:t.widthConfig)!=null?r:"fill",this.heightConfig=(u=t==null?void 0:t.heightConfig)!=null?u:"fill"}}class Q3{constructor(t){var n,a;this.optCode=(n=t==null?void 0:t.optCode)!=null?n:"",this.optType=(a=t==null?void 0:t.optType)!=null?a:""}}class yl{constructor(t){var n,a,r,u,i,s;this.id=(n=t==null?void 0:t.id)!=null?n:Ye(),this.name=(a=t==null?void 0:t.name)!=null?a:"",this.filters=(u=(r=t==null?void 0:t.filters)==null?void 0:r.map(l=>l.children!==void 0?new Gt(l):new yn(l)))!=null?u:[],this.settings=(t==null?void 0:t.settings)&&Array.isArray(t==null?void 0:t.settings)?(s=(i=t==null?void 0:t.settings)==null?void 0:i.map(l=>new Cl(l)))!=null?s:[]:[],this.script=t==null?void 0:t.script}}class Cl{constructor(t){var n,a,r,u;this.type=(n=t.type)!=null?n:"background",this.fieldCodes=(a=t.fieldCodes)!=null?a:[],this.color=(r=t.color)!=null?r:"theme",this.scope=(u=t.scope)!=null?u:"row"}}class Z3{constructor(t){var n,a,r,u;this.type=(n=t==null?void 0:t.type)!=null?n:"none",this.interval=(a=t==null?void 0:t.interval)!=null?a:{color:""},this.rules=(t==null?void 0:t.rules)&&Array.isArray(t==null?void 0:t.rules)?(u=(r=t==null?void 0:t.rules)==null?void 0:r.map(i=>new yl(i)))!=null?u:[]:[]}}class Fa{constructor(t){this.isHide={type:"boolean"}}}class tu extends Array{constructor(t){super()}}class Je{constructor(t,n=""){var a,r;this.isHide=(a=t==null?void 0:t.isHide)!=null?a:!1,this.style=new vl(t==null?void 0:t.style),this.caption=(r=t==null?void 0:t.caption)!=null?r:n}}Je.Rules=Fa,Je.RuntimeRules=tu;function Ue(){return Ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ue.apply(this,arguments)}function Y3(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function nu(e){return nu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nu(e)}function Aa(e,t){return Aa=Object.setPrototypeOf||function(a,r){return a.__proto__=r,a},Aa(e,t)}function eb(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Da(e,t,n){return eb()?Da=Reflect.construct:Da=function(r,u,i){var s=[null];s.push.apply(s,u);var l=Function.bind.apply(r,s),o=new l;return i&&Aa(o,i.prototype),o},Da.apply(null,arguments)}function tb(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function au(e){var t=typeof Map=="function"?new Map:void 0;return au=function(a){if(a===null||!tb(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(a))return t.get(a);t.set(a,r)}function r(){return Da(a,arguments,nu(this).constructor)}return r.prototype=Object.create(a.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Aa(r,a)},au(e)}var nb=/%[sdj%]/g,bl=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(bl=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(a){return typeof a=="string"})&&console.warn(t,n)});function ru(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var a=n.field;t[a]=t[a]||[],t[a].push(n)}),t}function De(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=1,r=t[0],u=t.length;if(typeof r=="function")return r.apply(null,t.slice(1));if(typeof r=="string"){var i=String(r).replace(nb,function(s){if(s==="%%")return"%";if(a>=u)return s;switch(s){case"%s":return String(t[a++]);case"%d":return Number(t[a++]);case"%j":try{return JSON.stringify(t[a++])}catch(l){return"[Circular]"}break;default:return s}});return i}return r}function ab(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function fe(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||ab(t)&&typeof e=="string"&&!e)}function rb(e,t,n){var a=[],r=0,u=e.length;function i(s){a.push.apply(a,s),r++,r===u&&n(a)}e.forEach(function(s){t(s,i)})}function Fl(e,t,n){var a=0,r=e.length;function u(i){if(i&&i.length){n(i);return}var s=a;a=a+1,s<r?t(e[s],u):n([])}u([])}function ub(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var Al=function(e){Y3(t,e);function t(n,a){var r;return r=e.call(this,"Async Validation Error")||this,r.errors=n,r.fields=a,r}return t}(au(Error));function ib(e,t,n,a){if(t.first){var r=new Promise(function(f,m){var D=function(B){return a(B),B.length?m(new Al(B,ru(B))):f()},S=ub(e);Fl(S,n,D)});return r.catch(function(f){return f}),r}var u=t.firstFields||[];u===!0&&(u=Object.keys(e));var i=Object.keys(e),s=i.length,l=0,o=[],h=new Promise(function(f,m){var D=function(y){if(o.push.apply(o,y),l++,l===s)return a(o),o.length?m(new Al(o,ru(o))):f()};i.length||(a(o),f()),i.forEach(function(S){var y=e[S];u.indexOf(S)!==-1?Fl(y,n,D):rb(y,n,D)})});return h.catch(function(f){return f}),h}function Dl(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:typeof t=="function"?t():t,field:t.field||e.fullField}}}function Nl(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];typeof a=="object"&&typeof e[n]=="object"?e[n]=Ue(Ue({},e[n]),a):e[n]=a}}return e}function Sl(e,t,n,a,r,u){e.required&&(!n.hasOwnProperty(e.field)||fe(t,u||e.type))&&a.push(De(r.messages.required,e.fullField))}function sb(e,t,n,a,r){(/^\s+$/.test(t)||t==="")&&a.push(De(r.messages.whitespace,e.fullField))}var uu={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Cn={integer:function(t){return Cn.number(t)&&parseInt(t,10)===t},float:function(t){return Cn.number(t)&&!Cn.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Cn.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(uu.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(uu.url)},hex:function(t){return typeof t=="string"&&!!t.match(uu.hex)}};function lb(e,t,n,a,r){if(e.required&&t===void 0){Sl(e,t,n,a,r);return}var u=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=e.type;u.indexOf(i)>-1?Cn[i](t)||a.push(De(r.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&a.push(De(r.messages.types[i],e.fullField,e.type))}function ob(e,t,n,a,r){var u=typeof e.len=="number",i=typeof e.min=="number",s=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,o=t,h=null,f=typeof t=="number",m=typeof t=="string",D=Array.isArray(t);if(f?h="number":m?h="string":D&&(h="array"),!h)return!1;D&&(o=t.length),m&&(o=t.replace(l,"_").length),u?o!==e.len&&a.push(De(r.messages[h].len,e.fullField,e.len)):i&&!s&&o<e.min?a.push(De(r.messages[h].min,e.fullField,e.min)):s&&!i&&o>e.max?a.push(De(r.messages[h].max,e.fullField,e.max)):i&&s&&(o<e.min||o>e.max)&&a.push(De(r.messages[h].range,e.fullField,e.min,e.max))}var Kt="enum";function cb(e,t,n,a,r){e[Kt]=Array.isArray(e[Kt])?e[Kt]:[],e[Kt].indexOf(t)===-1&&a.push(De(r.messages[Kt],e.fullField,e[Kt].join(", ")))}function fb(e,t,n,a,r){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||a.push(De(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var u=new RegExp(e.pattern);u.test(t)||a.push(De(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var x={required:Sl,whitespace:sb,type:lb,range:ob,enum:cb,pattern:fb};function db(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t,"string")&&!e.required)return n();x.required(e,t,a,u,r,"string"),fe(t,"string")||(x.type(e,t,a,u,r),x.range(e,t,a,u,r),x.pattern(e,t,a,u,r),e.whitespace===!0&&x.whitespace(e,t,a,u,r))}n(u)}function mb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r),t!==void 0&&x.type(e,t,a,u,r)}n(u)}function hb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(t===""&&(t=void 0),fe(t)&&!e.required)return n();x.required(e,t,a,u,r),t!==void 0&&(x.type(e,t,a,u,r),x.range(e,t,a,u,r))}n(u)}function _b(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r),t!==void 0&&x.type(e,t,a,u,r)}n(u)}function Eb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r),fe(t)||x.type(e,t,a,u,r)}n(u)}function gb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r),t!==void 0&&(x.type(e,t,a,u,r),x.range(e,t,a,u,r))}n(u)}function vb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r),t!==void 0&&(x.type(e,t,a,u,r),x.range(e,t,a,u,r))}n(u)}function yb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(t==null&&!e.required)return n();x.required(e,t,a,u,r,"array"),t!=null&&(x.type(e,t,a,u,r),x.range(e,t,a,u,r))}n(u)}function Cb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r),t!==void 0&&x.type(e,t,a,u,r)}n(u)}var bb="enum";function Fb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r),t!==void 0&&x[bb](e,t,a,u,r)}n(u)}function Ab(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t,"string")&&!e.required)return n();x.required(e,t,a,u,r),fe(t,"string")||x.pattern(e,t,a,u,r)}n(u)}function Db(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t,"date")&&!e.required)return n();if(x.required(e,t,a,u,r),!fe(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),x.type(e,s,a,u,r),s&&x.range(e,s.getTime(),a,u,r)}}n(u)}function Nb(e,t,n,a,r){var u=[],i=Array.isArray(t)?"array":typeof t;x.required(e,t,a,u,r,i),n(u)}function iu(e,t,n,a,r){var u=e.type,i=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(fe(t,u)&&!e.required)return n();x.required(e,t,a,i,r,u),fe(t,u)||x.type(e,t,a,i,r)}n(i)}function Sb(e,t,n,a,r){var u=[],i=e.required||!e.required&&a.hasOwnProperty(e.field);if(i){if(fe(t)&&!e.required)return n();x.required(e,t,a,u,r)}n(u)}var bn={string:db,method:mb,number:hb,boolean:_b,regexp:Eb,integer:gb,float:vb,array:yb,object:Cb,enum:Fb,pattern:Ab,date:Db,url:iu,hex:iu,email:iu,required:Nb,any:Sb};function su(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var lu=su();function mt(e){this.rules=null,this._messages=lu,this.define(e)}mt.prototype={messages:function(t){return t&&(this._messages=Nl(su(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,a;for(n in t)t.hasOwnProperty(n)&&(a=t[n],this.rules[n]=Array.isArray(a)?a:[a])},validate:function(t,n,a){var r=this;n===void 0&&(n={}),a===void 0&&(a=function(){});var u=t,i=n,s=a;if(typeof i=="function"&&(s=i,i={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(y){var B,E=[],A={};function _(g){if(Array.isArray(g)){var N;E=(N=E).concat.apply(N,g)}else E.push(g)}for(B=0;B<y.length;B++)_(y[B]);E.length?A=ru(E):(E=null,A=null),s(E,A)}if(i.messages){var o=this.messages();o===lu&&(o=su()),Nl(o,i.messages),i.messages=o}else i.messages=this.messages();var h,f,m={},D=i.keys||Object.keys(this.rules);D.forEach(function(y){h=r.rules[y],f=u[y],h.forEach(function(B){var E=B;typeof E.transform=="function"&&(u===t&&(u=Ue({},u)),f=u[y]=E.transform(f)),typeof E=="function"?E={validator:E}:E=Ue({},E),E.validator=r.getValidationMethod(E),E.field=y,E.fullField=E.fullField||y,E.type=r.getType(E),E.validator&&(m[y]=m[y]||[],m[y].push({rule:E,value:f,source:u,field:y}))})});var S={};return ib(m,i,function(y,B){var E=y.rule,A=(E.type==="object"||E.type==="array")&&(typeof E.fields=="object"||typeof E.defaultField=="object");A=A&&(E.required||!E.required&&y.value),E.field=y.field;function _(b,v){return Ue(Ue({},v),{},{fullField:E.fullField+"."+b})}function g(b){b===void 0&&(b=[]);var v=b;if(Array.isArray(v)||(v=[v]),!i.suppressWarning&&v.length&&mt.warning("async-validator:",v),v.length&&E.message!==void 0&&(v=[].concat(E.message)),v=v.map(Dl(E)),i.first&&v.length)return S[E.field]=1,B(v);if(!A)B(v);else{if(E.required&&!y.value)return E.message!==void 0?v=[].concat(E.message).map(Dl(E)):i.error&&(v=[i.error(E,De(i.messages.required,E.field))]),B(v);var O={};if(E.defaultField)for(var w in y.value)y.value.hasOwnProperty(w)&&(O[w]=E.defaultField);O=Ue(Ue({},O),y.rule.fields);for(var j in O)if(O.hasOwnProperty(j)){var ye=Array.isArray(O[j])?O[j]:[O[j]];O[j]=ye.map(_.bind(null,j))}var k=new mt(O);k.messages(i.messages),y.rule.options&&(y.rule.options.messages=i.messages,y.rule.options.error=i.error),k.validate(y.value,y.rule.options||i,function(ue){var Ie=[];v&&v.length&&Ie.push.apply(Ie,v),ue&&ue.length&&Ie.push.apply(Ie,ue),B(Ie.length?Ie:null)})}}var N;E.asyncValidator?N=E.asyncValidator(E,y.value,g,y.source,i):E.validator&&(N=E.validator(E,y.value,g,y.source,i),N===!0?g():N===!1?g(E.message||E.field+" fails"):N instanceof Array?g(N):N instanceof Error&&g(N.message)),N&&N.then&&N.then(function(){return g()},function(b){return g(b)})},function(y){l(y)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!bn.hasOwnProperty(t.type))throw new Error(De("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?bn.required:bn[this.getType(t)]||!1}},mt.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");bn[t]=n},mt.warning=bl,mt.messages=lu,mt.validators=bn;const Ib={required:"%s \u5FC5\u586B",maxLength:"%s \u8D85\u51FA\u6700\u5927\u957F\u5EA6\u9650\u5236",minLength:"%s \u5C0F\u4E8E\u6700\u5C0F\u957F\u5EA6\u9650\u5236",string:{range:"%s \u4E0D\u5728\u6307\u5B9A\u957F\u5EA6\u5185"}};function Il(e,t={}){const n=new mt(e);return n.messages(Object.assign(Ib,t)),n}const Bl=new E3;class ve{constructor(t){var m,D,S,y;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Ll,this.removeSetting=Ol,this._callControlHooks("preInstance",t);const{controlName:n,controlIcon:a,controlType:r,controlFieldType:u,controlEventKeys:i,controlCustomEvents:s,name:l,setting:o,slots:h,slotPosition:f}=new.target;n&&a&&r||wu(`The ${l} controlName,controlIcon,controlType is not define`),this.id=(m=t==null?void 0:t.id)!=null?m:Ye(10),this.name=n,this.icon=a,this.type=(D=t==null?void 0:t.type)!=null?D:r,this.props=new Je(t==null?void 0:t.props,new.target.controlName),this.controlType=(S=t==null?void 0:t.controlType)!=null?S:"base",this.setting=Xe(o),this.fieldType=(y=t==null?void 0:t.fieldType)!=null?y:u,this.eventKeys=Xe(i),this.customEvents=Xe(s),this.slots=Xe(h),this.slotPosition=Xe(f),Promise.resolve().then(()=>{this._callControlHooks("postInstance",t)})}get rules(){const t=this.props.constructor.Rules;return t?new t(this.props):{}}_callControlHooks(...t){const[n,...a]=t;return Bl.emit(n,this,...a)}preUpdate(t,n){this._callControlHooks("preUpdateProps",t,n)}postUpdate(t,n){this._callControlHooks("postUpdateProps",t,n)}updateProps(t,n){this.preUpdate(t,n),e3(this.props,t,n),this.postUpdate(t,n)}preValidate(){return Ze(this,null,function*(){const t=Qe({},this.rules),n=yield this._callControlHooks("preValidate",t),a=n[n.length-1];return a===!1?void 0:a})}validate(t,n){return Ze(this,null,function*(){const a=yield this.preValidate(),r=a!==void 0?a:Qe({},this.rules);Array.isArray(n)&&n.forEach(i=>{r.hasOwnProperty(i)&&delete r[i]});const u=Il(r,t);try{return yield u.validate(this.props),!0}catch(i){throw i.control||(i.control=this),i}})}toDataBindModel(t=null){const n=this.fieldType,a=this.id,r=this.type,{dataBind:u,datasourceBind:i,optionConfig:s,caption:l,required:o,maxLength:h,options:f,encrypted:m,encryptedMode:D}=this.props;if(!n&&!u&&!i)return;const S={parentId:t,fieldType:n,controlId:a,caption:l,type:r,props:{}};switch(u&&(S.dataBind=u),s){case"datasource":case void 0:i&&(S.datasourceBind=i);break;case"custom":S.props.options=f;break}return o!==void 0&&(S.required=o),h!==void 0&&(S.maxLength=h),m!==void 0&&(S.encrypted=m),D!==void 0&&(S.encryptedMode=D),S}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:Xe(this.props),fieldType:this.fieldType,controlType:this.controlType}}static updateBasicControl(t,n){t==="setting"&&(n.add&&this.setting.push(...n.add),n.remove&&this.removeSettingItem(n.remove),n.update)}}ve.mode="Designer",ve.controlName="\u63A7\u4EF6",ve.controlIcon="icon",ve.controlType="control",ve.controlEventKeys=[],ve.controlCustomEvents=[],ve.setting=[],ve.__is_control__=!0,ve.removeSettingItem=Ol,ve.updateSettingItem=Ll;function Ol(e){(Array.isArray(e)?e:[e]).forEach(n=>{var u,i,s;const a=typeof n!="string",r=(u=this.setting)==null?void 0:u.findIndex(l=>l.key===(a?n.key:n));r!==-1&&(a?this.setting[r].showItems=(i=this.setting[r].showItems)==null?void 0:i.filter(l=>!n.hideItems.includes(l)):this.setting.splice(r,1),a&&!((s=this.setting[r].showItems)!=null&&s.length)&&this.setting.splice(r,1))})}function Ll(e,t){(typeof e=="string"?[e]:e).forEach(a=>{var u;const r=this.setting.find(i=>i.key===a);r&&(typeof t=="boolean"?r.visible=t:typeof t=="object"&&(((u=t.type)!=null?u:"replace")==="replace"?r.showItems=t.showItems:r.showItems.push(...t.showItems)))})}class ze{constructor(t){var i,s,l,o,h;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:a,name:r,controlCustomEvents:u}=new.target;n||wu(`The ${r} controlType is not define`),this.id=(i=t==null?void 0:t.id)!=null?i:Ye(10),this.type=(s=t==null?void 0:t.type)!=null?s:n,this.props=new Je(t==null?void 0:t.props),this.customEvents=u,this.controlType=(l=t==null?void 0:t.controlType)!=null?l:"base",this.fieldType=(o=t==null?void 0:t.fieldType)!=null?o:a,this.pageStatus=(h=t==null?void 0:t.pageStatus)!=null?h:eu.UNKNOWN}get rules(){const t=this.props.constructor.RuntimeRules;if(t){const n=new t(this.props);return Array.from(n)}return[]}}ze.mode="Runtime",ze.controlType="control",ze.__is_control__=!0,ze.controlCustomEvents=[];function ou(e){e.hasOwnProperty("optionConfig")||(this.optionConfig={type:"any"}),e.hasOwnProperty("options")||(this.options={type:"any"}),e.hasOwnProperty("datasourceBind")||(this.datasourceBind={type:"any"}),e.hasOwnProperty("options")&&(!e.hasOwnProperty("optionConfig")||e.hasOwnProperty("optionConfig")&&e.optionConfig==="custom")?this.options=[{type:"array",message:p.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:p.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:p.getMessage("pleaseEnterValue")}}}},{type:"array",validator(t,n,a){n.length===0&&a(p.getMessage("optionIsRequired")),a()}},{type:"array",validator(t,n,a){const r=n.map(i=>i.value),u=s3(r);r.length!==u.length?a(p.getMessage("optionIdIsRepeat")):a()},message:p.getMessage("optionIdIsRepeat")}]:e.hasOwnProperty("datasourceBind")&&(!e.hasOwnProperty("optionConfig")||e.hasOwnProperty("optionConfig")&&e.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:p.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:p.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:p.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:p.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:p.getMessage("isNotArray")},{type:"array",validator(t,n,a){n.length===0&&a(p.getMessage("pleaseBindAtLeastOneDisplayValue")),a()},message:p.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:p.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:p.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:p.getMessage("isNotBoolean")}}}}]}}])}function Bb(e,t,n=!1){this.datasourceBind=[{type:"object",message:p.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:p.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:p.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:p.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:p.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:p.getMessage("isNotString")},key:{type:"string",required:!0,message:p.getMessage("isNotString")},value:[{type:"array",message:p.getMessage("isNotArray")},{type:"array",validator(a,r,u){r.length===0&&u(p.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),u()},message:p.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:p.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:p.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:p.getMessage("isNotBoolean")}}}}]}}]}function wl(e){return(e==null?void 0:e.dataCode)!==void 0&&(e==null?void 0:e.fieldCode)!==void 0}class cu extends Fa{constructor(t){super(t),this.dataBind={},this.caption={type:"string",required:!0,message:p.getMessage("pleaseEnterCaption")},this.isHideCaption={type:"boolean"},this.labelPosition={type:"enum",enum:["top","left"]},this.defaultState={type:"enum",enum:["default","readonly"]},this.required={type:"boolean"},this.captionTip={type:"string",required:!1,message:p.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:p.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:p.getMessage("pleaseEnterFieldCode")}};if(wl(t.dataBind))this.dataBind={type:"object",required:!0,fields:Xe(n),message:p.getMessage("pleaseEnterFieldCode")};else{let a={type:"object",required:!0,fields:{},message:p.getMessage("pleaseEnterFieldCode")};Object.keys(t.dataBind).forEach(r=>{a.fields[r]={type:"object",required:!0,fields:Xe(n),message:p.getMessage("pleaseEnterFieldCode")}}),this.dataBind=a}t.isShowCaptionTip&&(this.captionTip.required=!0)}}class Tl extends tu{constructor(t){super(t);const n=t.isHide?!1:t.required;n&&this.push({type:"string",required:n,message:t.requiredMessage!==""?t.requiredMessage:p.getMessage("runtimeRequired",{caption:t.caption})})}}class Fn extends Je{constructor(t){var n,a,r,u,i,s,l,o,h,f;super(t),this.caption=(n=t==null?void 0:t.caption)!=null?n:"",this.isHideCaption=(a=t==null?void 0:t.isHideCaption)!=null?a:!1,this.isShowCaptionTip=(r=t==null?void 0:t.isShowCaptionTip)!=null?r:!1,this.captionTip=(u=t==null?void 0:t.captionTip)!=null?u:"",this.defaultState=(i=t==null?void 0:t.defaultState)!=null?i:"default",this.labelPosition=(s=t==null?void 0:t.labelPosition)!=null?s:"top",this.placeholder=(l=t==null?void 0:t.placeholder)!=null?l:"",this.required=(o=t==null?void 0:t.required)!=null?o:!1,this.requiredMessage=(h=t==null?void 0:t.requiredMessage)!=null?h:"",this.dataBind=new ke(t==null?void 0:t.dataBind),this.defaultValue=(f=t==null?void 0:t.defaultValue)!=null?f:""}}Fn.Rules=cu,Fn.RuntimeRules=Tl;class Ob extends cu{constructor(t){super(t),this.optionConfig={type:"enum",enum:["custom","datasource"],message:p.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:p.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:p.getMessage("isNotObject")}],ou.call(this,t)}}class Rl extends ve{constructor(t){super(t),this.controlType="form",this.props=new Fn(t==null?void 0:t.props)}}Rl.controlEventKeys=["on_change","on_focus","on_blur"];class Lb extends ze{constructor(t){super(t),this.controlType="form",this.props=new Fn(t==null?void 0:t.props)}}class An extends Je{constructor(t){super(t)}}const wb=1e4;class It extends ve{constructor(t){super(t),this.controlType="layout";const{excludes:n,childrenMaxLength:a}=new.target;this.props=new An(t==null?void 0:t.props),dt(this,"children",t==null?void 0:t.children,void 0,"Designer"),this.excludes=Xe(n),this.childrenMaxLength=a}judgeExcludesChildren(t){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(t)}judgeJoinChildren(t){const n=this.judgeExcludesChildren(t);return n&&this.childrenMaxLength>this.children.length}validate(t,n){return Ze(this,null,function*(){return yield gu(It.prototype,this,"validate").call(this,t,n),yield Promise.all(this.children.map(a=>a.validate(t,n))),!0})}toDataBindModel(t=null){const n=super.toDataBindModel(),a=n?[n]:[];return this.children.reduce((r,u)=>{const i=u.toDataBindModel(t);if(Array.isArray(i)){const s=i.filter(l=>!!l);return[...r,...s]}return i&&r.push(i),r},a)}toSchema(){const t=super.toSchema(),n=this.children.map(a=>a.toSchema());return Lt(Qe({},t),{children:n})}}It.excludes=!1,It.childrenMaxLength=wb;class fu extends ze{constructor(t){super(t),this.controlType="layout",this.props=new An(t==null?void 0:t.props),dt(this,"children",t==null?void 0:t.children,void 0,"Runtime")}}class du extends Je{constructor(t,n,a){var r,u,i,s;super(n),dt(this,"headers",n==null?void 0:n.headers,t,a),dt(this,"footers",n==null?void 0:n.footers,t),this.pageIndex=(r=n==null?void 0:n.pageIndex)!=null?r:1,this.pageSize=(u=n==null?void 0:n.pageSize)!=null?u:20,this.pageSizeOptions=(i=n==null?void 0:n.pageSizeOptions)!=null?i:[20],this.totalCount=(s=n==null?void 0:n.totalCount)!=null?s:0}}class Na extends ve{constructor(t){super(t),this.controlType="list",this.props=new du(this,t==null?void 0:t.props,"Designer")}validate(t,n){return Ze(this,null,function*(){return yield gu(Na.prototype,this,"validate").call(this,t),yield Promise.all(this.props.headers.map(a=>a.validate(t,n))),!0})}toDataBindModel(){const t=super.toDataBindModel(),n=t?[t]:[],a=this.id;return this.props.headers.reduce((r,u)=>{const i=u.toDataBindModel(a);if(Array.isArray(i)){const s=i.filter(l=>!!l);return[...r,...s]}return i&&r.push(i),r},n)}toSchema(){const t=super.toSchema(),n=this.props.headers.map(a=>a.toSchema());return Lt(Qe({},t),{props:Lt(Qe({},this.props),{headers:n})})}}Na.controlFieldType=en.LIST;class Tb extends ze{constructor(t){super(t),this.controlType="list",this.props=new du(this,t==null?void 0:t.props,"Runtime"),dt(this,"children",t==null?void 0:t.children,void 0,"Runtime")}get length(){return this.children.length}}class mu extends Fa{constructor(t){super(t),this.caption={type:"string",required:!0,message:p.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:p.getMessage("pleaseEnterColumnWidth")},this.width.required=t.widthType==="px"}}class Sa extends Je{constructor(t){var n,a,r,u,i;super(t),this.width=(n=t==null?void 0:t.width)!=null?n:150,this.widthType=(t==null?void 0:t.widthType)||"auto",this.caption=(a=t==null?void 0:t.caption)!=null?a:"",this.fixed=(r=t==null?void 0:t.fixed)!=null?r:"none",this.autoWidth=new qr(t==null?void 0:t.autoWidth),this.dataBind=new ke(t==null?void 0:t.dataBind),this.sort=(u=t==null?void 0:t.sort)!=null?u:!0,this.align=t==null?void 0:t.align,this.colSpan=t==null?void 0:t.colSpan,this.autoHeight=(i=t==null?void 0:t.autoHeight)!=null?i:!1}}Sa.Rules=mu;class Rb extends mu{constructor(t){super(t),this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:p.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:p.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:p.getMessage("isNotObject")}],ou.call(this,t)}}class pb extends ve{constructor(t){super(t),this.controlType="column",this.props=new Sa(t==null?void 0:t.props),dt(this,"children",t==null?void 0:t.children,void 0,"Designer")}toSchema(){const t=super.toSchema();return Lt(Qe({},t),{children:this.children?this.children.map(n=>n.toSchema()):[]})}}class Pb extends ze{constructor(t){super(t),this.controlType="column",this.props=new Sa(t==null?void 0:t.props),dt(this,"children",t==null?void 0:t.children,void 0,"Runtime")}}class hu extends An{constructor(t){super(t),this.dataBind=new ke(t==null?void 0:t.dataBind)}}class Mb extends It{constructor(t){super(t),this.controlType="search",this.props=new hu(t==null?void 0:t.props)}}class $b extends fu{constructor(t){super(t),this.controlType="search",this.props=new hu(t==null?void 0:t.props)}}class _u extends An{constructor(t){super(t)}}class Vb extends It{constructor(t){super(t),this.controlType="wrap",this.props=new _u(t==null?void 0:t.props)}}class kb extends fu{constructor(t){super(t),this.controlType="wrap",this.props=new _u(t==null?void 0:t.props)}}function Ub(e){e.hasOwnProperty("linkOperationOption")&&e.hasOwnProperty("showLinkOperation")&&e.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:p.getMessage("pleaseEnterForm")}}}])}F.AMOUNT_TYPE=Yr,F.AddressValue=q3,F.AmountDataBind=x3,F.AmountValue=W3,F.AutoWidth=qr,F.BaseControlProperty=Fn,F.BaseControlPropertyRules=cu,F.BaseControlPropertyRuntimeRules=Tl,F.BaseStyle=vl,F.COMMON_SETTING_TYPE=gl,F.CalcDataBind=G3,F.CalcValue=K3,F.ColumnControlProperty=Sa,F.ColumnControlPropertyRules=mu,F.ColumnOptionAndDataSourcePropertyRules=Rb,F.CustomAttributeItem=Qr,F.CustomPermissionItem=z3,F.DataBind=ke,F.DataSourceBind=Ca,F.DataSourceDataSetValue=ml,F.DataSourceOrderItem=Jr,F.DataSourceParamItem=L3,F.DataStorageDoc=D3,F.DesignerColumnControl=pb,F.DesignerControl=ve,F.DesignerFormControl=Rl,F.DesignerLayoutControl=It,F.DesignerListControl=Na,F.DesignerSearchControl=Mb,F.DesignerWrapControl=Vb,F.DisplayBoListItem=Xr,F.FieldBindItem=ol,F.FieldFilterCondition=yn,F.FieldFilterConditions=Gt,F.FillBackBind=M3,F.FillPayloadBind=P3,F.FormBind=ya,F.FormSelectBind=N3,F.ImageOptionSetting=El,F.JoinRelation=B3,F.Language=$3,F.LayoutControlProperty=An,F.LeftVariable=fl,F.LinkOperationOption=T3,F.ListBind=S3,F.ListControlProperty=du,F.MetaAutoWidth=A3,F.MetaRowHeight=F3,F.MetaWidth=va,F.MultistageFillingItem=dl,F.ObjectDataBind=ba,F.OperationItem=X3,F.OptObject=Q3,F.OptionAndDataSourcePropertyRules=Ob,F.OptionDisplayConfigItem=O3,F.OptionSetting=Zr,F.OrganizationDataSourceBind=R3,F.PAGE_STATUS=eu,F.Property=Je,F.PropertyRules=Fa,F.PropertyRuntimeRules=tu,F.RangeDataBind=H3,F.RangeDateValue=j3,F.RegisterControls=vn,F.RegularRules=V3,F.RightVariable=Kr,F.RowHeight=Gr,F.RowStyle=Z3,F.RowStyleRule=yl,F.RowStyleSettings=Cl,F.RuntimeColumnControl=Pb,F.RuntimeControl=ze,F.RuntimeFormControl=Lb,F.RuntimeLayoutControl=fu,F.RuntimeListControl=Tb,F.RuntimeSearchControl=$b,F.RuntimeWrapControl=kb,F.SearchControlProperty=hu,F.SelectedContentConfig=w3,F.SubListItem=cl,F.SubListPageConfig=I3,F.SuperDataSourceBind=hl,F.TreeDataSourceBind=p3,F.ViewOperationItem=J3,F.WrapControlProperty=_u,F.controlHooksEmitter=Bl,F.createValidator=Il,F.defineArrayParent=al,F.defineControlArrayToProperty=dt,F.defineParent=Hr,F.initImageOptions=U3,F.initLinkOperationRules=Ub,F.initOptionAndDataSourceRules=ou,F.initOptions=k3,F.initSuperDataSourceRules=Bb,F.isDataBind=wl,F.setPropertyDontEnum=ga,Object.defineProperty(F,"__esModule",{value:!0})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-core",
3
- "version": "2.23.0-beta.2",
3
+ "version": "2.23.0-beta.4",
4
4
  "description": "model engine core",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -26,9 +26,9 @@
26
26
  "postpublish": "node ../../scripts/postpublish.js"
27
27
  },
28
28
  "dependencies": {
29
- "@byteluck-fe/model-driven-shared": "2.23.0-beta.2",
29
+ "@byteluck-fe/model-driven-shared": "2.23.0-beta.4",
30
30
  "async-validator": "3.5.1",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
- "gitHead": "ca8eacc7cd6adb035d49a4da11a2e5697216172d"
33
+ "gitHead": "f5d4777750d43f836601367a7636113929dd54ac"
34
34
  }