@byteluck-fe/model-driven-engine 7.0.0-beta.4 → 7.0.0-beta.8

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.
@@ -332,6 +332,7 @@ function _ts_generator(thisArg, body) {
332
332
  };
333
333
  }
334
334
  }
335
+ import { getLocaleText } from '@byteluck-fe/locale-message';
335
336
  import { isDataBind } from '@byteluck-fe/model-driven-core';
336
337
  import { CONTROL_BASE_TYPE, CONTROL_TYPE, DEFAULT_LOCALE, error, genNonDuplicateId, isString, JSONCopy, log, updateValueFromKeys, warn, Watcher, isBuiltInControls } from '@byteluck-fe/model-driven-shared';
337
338
  import { Runtime } from './Runtime';
@@ -1632,7 +1633,7 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1632
1633
  var dataBindMapping = this.getDataBindMapping(dataCode, fieldCode);
1633
1634
  if (dataBindMapping) {
1634
1635
  var _instance = this.getInstance(dataBindMapping.controlId, rowIndex);
1635
- this.debugLog("调用了setFieldInstance[%o]: 修改instance: %o的%o属性,修改的值为%o。", _instance.id, _instance, props, value);
1636
+ this.debugLog(getLocaleText('CMD.c7371777541576312'), _instance.id, _instance, props, value);
1636
1637
  this.setInstance(_instance.id, props, value, rowIndex);
1637
1638
  return _instance;
1638
1639
  }
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- var f2=Object.defineProperty,h2=Object.defineProperties;var d2=Object.getOwnPropertyDescriptors;var Qi=Object.getOwnPropertySymbols,p2=Object.getPrototypeOf,mf=Object.prototype.hasOwnProperty,yf=Object.prototype.propertyIsEnumerable,g2=Reflect.get;var Ji=Math.pow,vf=(ue,_e,Ie)=>_e in ue?f2(ue,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):ue[_e]=Ie,Ee=(ue,_e)=>{for(var Ie in _e||(_e={}))mf.call(_e,Ie)&&vf(ue,Ie,_e[Ie]);if(Qi)for(var Ie of Qi(_e))yf.call(_e,Ie)&&vf(ue,Ie,_e[Ie]);return ue},wr=(ue,_e)=>h2(ue,d2(_e));var hs=(ue,_e)=>{var Ie={};for(var at in ue)mf.call(ue,at)&&_e.indexOf(at)<0&&(Ie[at]=ue[at]);if(ue!=null&&Qi)for(var at of Qi(ue))_e.indexOf(at)<0&&yf.call(ue,at)&&(Ie[at]=ue[at]);return Ie};var Df=(ue,_e,Ie)=>g2(p2(ue),Ie,_e);var Pt=(ue,_e,Ie)=>new Promise((at,bn)=>{var Zi=Bt=>{try{Gr(Ie.next(Bt))}catch(Cr){bn(Cr)}},cr=Bt=>{try{Gr(Ie.throw(Bt))}catch(Cr){bn(Cr)}},Gr=Bt=>Bt.done?at(Bt.value):Promise.resolve(Bt.value).then(Zi,cr);Gr((Ie=Ie.apply(ue,_e)).next())});(function(ue,_e){typeof exports=="object"&&typeof module!="undefined"?_e(exports,require("crypto"),require("path"),require("url"),require("fs"),require("util")):typeof define=="function"&&define.amd?define(["exports","crypto","path","url","fs","util"],_e):(ue=typeof globalThis!="undefined"?globalThis:ue||self,_e(ue.modelDrivenEngine={},ue.require$$0,ue.require$$1,ue.require$$3,ue.require$$0$1,ue.require$$0$2))})(this,function(ue,_e,Ie,at,bn,Zi){"use strict";function cr(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Gr=cr(_e),Bt=cr(Ie),Cr=cr(at),Ef=cr(bn),wf=cr(Zi);const oe=(t,e,r)=>{if(!t)return console.error("getLocaleText\u7684key\u4E0D\u80FD\u4E3A\u7A7A"),"";const n=t.split(".");let i;const u=(window.baitedaWorkers||{}).languageMessages||{};n.forEach((a,s)=>{s===0?i=u[a]:i&&(i=i[a])});let o="";return i&&(o=i),e&&Object.keys(e).forEach(a=>{const s=e[a];o=o.replace(new RegExp(`\\{\\s*${a}\\s*\\}`,"g"),s)}),o||(r?o=r:o=t),o};var Cf="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Af="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",bf="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Ff="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",_f="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Bf="{caption}\u5FC5\u586B",Sf="\u8BF7\u8F93\u5165\u6807\u9898",Of="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Mf="\u8BF7\u8F93\u5165\u884C\u6807\u9898",xf="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",If="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",Tf="\u8BF7\u7ED1\u5B9A\u8868\u5355",Pf="\u8BF7\u7ED1\u5B9A\u5217\u8868",Nf="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",$f="\u8BF7\u8F93\u5165\u663E\u793A\u503C",Rf="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Lf="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",kf="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",jf="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",qf="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Uf="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Vf="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Wf="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",zf="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Gf="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",Hf="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Qf="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Jf="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u8D85\u8FC7\u4E86\u9650\u5236",Zf="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Xf="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Kf="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Yf="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",eh="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",th="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",rh="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",nh="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",ih="\u8BF7\u7ED1\u5B9A\u670D\u52A1",uh="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",oh="\u8BF7\u9009\u62E9\u7701",sh="\u8BF7\u9009\u62E9\u5E02",ah="\u8BF7\u9009\u62E9\u533A",lh="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",ch="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",fh="\u8BF7\u8F93\u5165\u5217\u5BBD",hh="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",dh="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",ph="\u8BF7\u9009\u62E9\u63A7\u4EF6",gh="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",vh="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",mh="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",yh="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Dh="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Eh="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",wh="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Ch="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ah="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",bh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Fh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",_h="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Bh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Sh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Oh="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Mh="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",xh="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ih="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Th="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Ph="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Nh="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",$h="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",Rh="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",Lh="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",kh="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",jh="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",qh="\u6279\u91CF\u5220\u9664",Uh="\u6279\u91CF\u6253\u5370",Vh="\u6279\u91CF\u6253\u5370\u8BB0\u5F55",Wh="\u6309\u94AE",zh="\u521B\u5EFA\u5355\u636E",Gh="\u4EEA\u8868\u76D8",Hh="\u5206\u5272\u7EBF",Qh="\u5BFC\u51FA",Jh="\u8868\u5355\u64CD\u4F5C",Zh="\u5BFC\u5165",Xh="\u53D1\u7968\u8BC6\u522B",Kh="\u94FE\u63A5",Yh="\u5217\u8868\u9009\u62E9",e0="\u5217\u8868\u89C6\u56FE",t0="\u64CD\u4F5C\u6309\u94AE",r0="\u5206\u9875",n0="\u6279\u91CF\u63D0\u4EA4\u8BB0\u5F55",i0="\u8BF4\u660E\u6587\u5B57",u0="\u6587\u5B57\u8BC6\u522B",o0="\u6807\u9898\u7EC4\u4EF6",s0="\u5F53\u524D\u5BA1\u6279\u72B6\u6001",a0="\u6570\u7EC4",l0="\u81EA\u52A8\u7F16\u53F7",c0="\u81EA\u5B9A\u4E49",f0="\u6570\u503C",h0="\u90E8\u95E8",d0="\u4EBA\u5458",p0="\u9644\u4EF6",g0="\u56FE\u7247",v0="\u5730\u5740",m0="\u64CD\u4F5C",y0="\u5E8F\u53F7",D0="\u4EBA\u5458",E0="\u957F\u6587\u672C",w0="\u65E5\u671F\u533A\u95F4",C0="\u65E5\u671F",A0="\u77ED\u6587\u672C",b0="\u6362\u884C\u5BB9\u5668Wrap",F0="\u8868\u683C",_0="\u660E\u7EC6\u5B50\u8868",B0="\u5730\u5740",S0="\u91D1\u989D",O0="\u8BA1\u7B97\u516C\u5F0F",M0="\u591A\u9009",x0="\u7535\u5B50\u7B7E\u7AE0",I0="\u5355\u884C\u6587\u672C",T0="\u6570\u5B57",P0="\u4E1A\u52A1\u7EC4\u7EC7",N0="\u5355\u9009",$0="\u5BCC\u6587\u672C",R0="\u8BC4\u5206",L0="\u6570\u5B57\u533A\u95F4",k0="\u4E0B\u62C9\u5355\u9009",j0="\u4E0B\u62C9\u591A\u9009",q0="\u5173\u8054\u5355\u9009",U0="\u591A\u884C\u6587\u672C",V0="\u6811",W0="Vue\u5BB9\u5668",z0="Vue\u9875\u9762",G0="\u5728\u7EBF\u6587\u6863",H0="\u6309\u94AE\u64CD\u4F5C\u680F",Q0="\u9AD8\u7EA7\u5BB9\u5668",J0="\u5206\u7EC4",Z0="\u6805\u683C\u5217",X0="\u6570\u636E\u5BB9\u5668",K0="\u753B\u5E03",Y0="\u6362\u884C\u5BB9\u5668",ed="\u6805\u683C\u7B49\u5206\u884C",td="\u5217\u8868\u5BB9\u5668",rd="\u81EA\u7531\u9875\u9762",nd="\u5B9A\u4F4D\u5B50\u5BB9\u5668",id="\u5B9A\u4F4D\u5BB9\u5668",ud="\u6805\u683C\u5E03\u5C40",od="\u660E\u7EC6\u5B50\u8868\u5355\u5143\u683C",sd="\u660E\u7EC6\u5B50\u8868\u884C",ad="\u6807\u7B7E\u9875",ld="\u6807\u7B7E\u5355\u5143",cd="\u5DE5\u5177\u680F",fd="\u6279\u91CF\u63D0\u4EA4",hd="\u5BFC\u51FA\u8BB0\u5F55",dd="\u5217\u8868\u89C6\u56FE",pd="\u7ED3\u675F\u65F6\u95F4",gd="\u5F00\u59CB\u65F6\u95F4",vd="\u5355\u4F4D",md="\u7ED3\u679C",yd="\u5E01\u79CD",Dd="\u7ED3\u675F\u65E5\u671F",Ed="\u5F00\u59CB\u65E5\u671F",wd="\u8BF7\u9009\u62E9\u516C\u53F8\u540D\u79F0",Cd="\u8BF7\u9009\u62E9\u624B\u673A\u53F7/\u90AE\u7BB1",Ad="\u8BF7\u9009\u62E9\u7B7E\u7AE0\u7C7B\u578B",bd="\u8BF7\u9009\u62E9\u7B7E\u7F72\u4EBA",Fd="\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u7B7E\u7F72\u4EBA",_d="\u8BF7\u9009\u62E9\u7B7E\u7F72\u6587\u4EF6",Bd="\u8BF7\u9009\u62E9",Sd="\u8BF7\u9009\u62E9\u7EC4\u7EC7",Od="\u8BF7\u9009\u62E9\u90E8\u95E8",Md="\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",xd="\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",Id="\u8BF7\u9009\u62E9\u5730\u5740",Td="\u5F39\u7A97\u786E\u8BA4\u65F6",Pd="\u6807\u7B7E\u9875\u5207\u6362\u65F6",Nd="\u884C\u9009\u4E2D\u65F6",$d="\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",Rd="\u884C\u5220\u9664\u524D",Ld="\u884C\u70B9\u51FB\u65F6",kd="\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",jd="\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",qd="\u91CD\u547D\u540D\u65F6",Ud="\u4FDD\u5B58\u6587\u4EF6\u65F6",Vd="\u6253\u5F00\u6587\u4EF6\u65F6",Wd="\u83B7\u53D6\u7126\u70B9\u65F6",zd="\u5931\u53BB\u7126\u70B9\u65F6",Gd="\u7528\u6237\u8F93\u5165\u65F6",Hd="\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",Qd="\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",Jd="\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",Zd="\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",Xd="\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",Kd="\u641C\u7D22\u65F6",Yd="\u503C\u53D1\u751F\u53D8\u5316\u65F6",ep="\u6267\u884C\u5B8C\u6210\u65F6",tp="\u70B9\u51FB\u65F6",rp="\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u6216\u90AE\u7BB1",np="\u8BF7\u8F93\u5165\u65E5\u671F",ip="\u8BF7\u8F93\u5165\u81EA\u52A8\u7F16\u53F7",up="\u8BF7\u8F93\u5165",op="\u9ED8\u8BA4\u6A21\u7248",sp="\u5DE6\u53F3\u5E03\u5C40",ap="\u4E0A\u4E0B\u5E03\u5C40",lp="\u53EA\u8BFB",cp="\u5FC5\u586B",fp="\u63D0\u793A\u6587\u5B57",hp="\u9690\u85CF\u6807\u9898",dp="\u6807\u9898\u5FC5\u586B",pp="\u7EC4\u7EC7\u5F62\u6001",gp="\u4E1A\u52A1\u7C7B\u578B",vp="\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",mp="\u9690\u85CF",yp="\u6D41\u7A0B\u72B6\u6001",Dp="\u5BA1\u6279\u901A\u8FC7\u5355\u636E",Ep="\u5220\u9664",wp="\u7F16\u8F91",Cp="\u67E5\u770B",Ap="\u52A0\u8F7D\u81EA\u5B9A\u4E49\u63A7\u4EF6\u5F02\u5E38\uFF0C\u4F1A\u5F71\u54CD\u5230\u7684\u63A7\u4EF6\uFF1A{id}",bp="\u5185\u7F6E\u7EC4\u4EF6\u52A0\u8F7D\u9519\u8BEF",Fp="\u5145\u6EE1\u6574\u884C",_p="\u6700\u5C0F\u503C",Bp="\u6700\u5927\u503C",Sp="\u65B0\u5EFA\u6587\u6863",Op="\u91CD\u7F6E",Mp="\u67E5\u8BE2",xp="\u660E\u7EC6",Ip="\u6253\u5370",Tp="\u4FDD\u5B58\u8349\u7A3F",Pp="\u4FDD\u5B58",Np="\u53D6\u6D88",$p="\u4E0A\u4F20\u56FE\u7247",Rp="\u53D1\u8D77\u7B7E\u7F72",Lp="\u4E0A\u4F20\u9644\u4EF6",kp="\u6211\u662F\u4E00\u4E2A\u94FE\u63A5",jp="\u5F15\u7528\u5217\u8868",qp="\u9009\u9879\u4E00",Up="\u9009\u9879\u4E8C",Vp="\u9009\u9879\u4E09",Wp={isNotNumber:Cf,isNotString:Af,isNotObject:bf,isNotArray:Ff,isNotBoolean:_f,runtimeRequired:Bf,pleaseEnterCaption:Sf,pleaseEnterCaptionTip:Of,pleaseEnterRowCaption:Mf,pleaseEnterPlaceholder:xf,pleaseEnterFieldCode:If,pleaseEnterForm:Tf,pleaseEnterList:Pf,pleaseEnterProcess:Nf,pleaseEnterLabel:$f,pleaseEnterValue:Rf,bizKeyNotBindFiled:Lf,pleaseSelectOneField:kf,pleaseEnterNumberRange:jf,pleaseEnterAValueGreaterThanMin:qf,pleaseEnterAValueLessThanMax:Uf,numberRangeSetError:Vf,stringRangeError:Wf,attachmentMaxSize:zf,pleaseEnterTotalScoreSetting:Gf,theTotalScoreMustNotBeLessThan1:Hf,scoreDefaultValueRange:Qf,attachmentLimitError:Jf,PleaseReselectTheOptionalQuantity:Zf,TheMaximumLengthIsGreaterThanTheMinimumLength:Xf,TheMinimumLengthIsGreaterThanTheMaximumLength:Kf,PleaseSelectTheCorrectOptionSettings:Yf,optionIdIsRepeat:eh,optionIsRequired:th,pleaseEnterDataCode:rh,pleaseEnterValueFieldCode:nh,pleaseEnterSvcCode:ih,pleaseBindAtLeastOneDisplayValue:uh,pleaseSelectProvince:oh,pleaseSelectCity:sh,pleaseSelectDistrict:ah,limitRowsCannotBeLessThan0:lh,TheNumberOfRowsCannotBeLessThanMinRows:ch,pleaseEnterColumnWidth:fh,pleaseSetTheLogicalRelationshipOfAllRuleConditions:hh,pleaseCompleteAllRulesAndConditions:dh,pleaseSelectControl:ph,pleaseSelectAtLeastOneColumn:gh,pleaseSelectFillBackMode:vh,pleaseSelectDashboard:mh,rootNodeIsRequired:yh,theViewNameCannotBeEmpty:Dh,pleaseSelectOcrType:Eh,pleaseSelectAtLeastOneFieldToFillIn:wh,pleaseChooseAtLeastOne:Ch,pleaseEnterButtonContent:Ah,pleaseEnterDataCodeInDataSetting:bh,pleaseEnterValueFieldCodeInDataSetting:Fh,pleaseEnterSvcCodeInDataSetting:_h,pleaseBindAtLeastOneDisplayValueInDataSetting:Bh,rootNodeIsRequiredInDataSetting:Sh,pleaseEnterMaxHeight:Oh,pleaseEnterWatermark:Mh,pleaseEnterFileName:xh,pleaseUploadAtLeastOnePrintTemplate:Ih,pleaseAssignBusiness:Th,pleaseAssignExternal:Ph,pleaseEnterAliasCode:Nh,pleaseSelectDataCode:$h,pleaseSelectSvcCode:Rh,pleaseSelectJoinFieldCode:Lh,pleaseSelectMainFieldCode:kh,pleaseSelectSortFieldCode:jh,batchDeleteButton:qh,batchPrintListButton:Uh,batchPrintRecordList:Vh,button:Wh,createFormListButton:zh,dashboard:Gh,divider:Hh,exportListButton:Qh,formSelectButton:Jh,importRecordListButton:Zh,invoiceCheckButton:Xh,link:Kh,listSelectButton:Yh,ListViewSelect:e0,operationButton:t0,pagination:r0,submissionRecordListButton:n0,text:i0,textOcrButton:u0,title:o0,approvalStatusColumn:s0,array:a0,autoNumber:l0,custom:c0,decimal:f0,department:h0,employee:d0,file:p0,image:g0,location:v0,operation:m0,order:y0,people:D0,long:E0,timescope:w0,timestamp:C0,varchar:A0,gridLayoutWrap:b0,gridTable:F0,subTable:_0,address:B0,amount:S0,calc:O0,checkBox:M0,electronicSignature:x0,input:I0,number:T0,organizationSelection:P0,radio:N0,richText:$0,score:R0,searchNumberRange:L0,select:k0,selectMultiple:j0,selectRelation:q0,textarea:U0,tree:V0,vueFormItem:W0,vuePage:z0,WPS:G0,actionBar:H0,advancedContainer:Q0,cardGroup:J0,col:Z0,dataView:X0,grid:K0,gridLayoutContainer:Y0,gridRow:ed,listView:td,page:rd,position:nd,positioningContainer:id,row:ud,subtableColumn:od,subtableRow:sd,tab:ad,tabPane:ld,toolbox:cd,batchSubmissionListButton:fd,exportRecordListButton:hd,listViewSelect:dd,endTime:pd,startTime:gd,unit:vd,result:md,currency:yd,endDate:Dd,startDate:Ed,pleaseSelectCompanyName:wd,pleaseSelectPhoneOrEmail:Cd,pleaseSelectSignType:Ad,pleaseSelectSigner:bd,pleaseSelectOnlyOne:Fd,pleaseSelectSignFile:_d,pleaseSelect:Bd,pleaseSelectOrg:Sd,pleaseSelectDept:Od,pleaseSelectEndDate:Md,pleaseSelectStartDate:xd,pleaseChooseAddress:Id,modalConfirm:Td,tabChange:Pd,rowSelected:Nd,listDataImport:$d,rowDelete:Rd,rowClick:Ld,cellRender:kd,onClickBtn:jd,rename:qd,onSaveFile:Ud,onOpenFile:Vd,onFocus:Wd,onBlur:zd,onInput:Gd,listDataAdd:Hd,listDataDelete:Qd,listDataBack:Jd,listDataCreate:Zd,listDataChange:Xd,search:Kd,valueChange:Yd,finished:ep,click:tp,pleaseEnterNameorEmail:rp,pleaseEnterDate:np,pleaseEnterAutonumber:ip,pleaseEnter:up,defaultTemplate:op,left:sp,top:ap,default:"\u666E\u901A",readonly:lp,required:cp,textTip:fp,hideCaption:hp,titleRequired:dp,organizationalForm:pp,businessType:gp,deleteConfirm:vp,hide:mp,processStatus:yp,approvedDocuments:Dp,delete:Ep,edit:wp,view:Cp,loadCtrlErrorTip:Ap,loadCtrlError:bp,fullLine:Fp,min:_p,max:Bp,createWPS:Sp,reset:Op,query:Mp,detailed:xp,print:Ip,draft:Tp,save:Pp,cancel:Np,uploadImg:$p,signature:Rp,uploadFile:Lp,linkContent:kp,referenceList:jp,optionOne:qp,optionTwo:Up,optionThird:Vp},zp="Please enter a number",Gp="Please enter a string",Hp="Please enter an object",Qp="Please enter an array",Jp="Please enter a boolean",Zp="{caption} Required",Xp="Please enter the title",Kp="Please enter the bubble prompt",Yp="Please enter the row title",eg="Please enter the prompt text",tg="Please bind data items",rg="Please bind the form",ng="Please bind the list",ig="Please bind the process",ug="Please enter the displayed value",og="Please enter the stored value",sg="The document number is not bound to the data item",ag="Please select at least one display field",lg="Please enter a value greater than or equal to {min} and less than or equal to {max}",cg="Please enter a value greater than or equal to {min}",fg="Please enter a value less than or equal to {max}",hg="The value range is set incorrectly",dg="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",pg="The attachment size must be between 0MB and 1000MB",gg="Please fill in the total score setting",vg="The total score cannot be less than 1",mg="The default value must be between {min} and {max}",yg="The number of attachment uploads exceeds the limit",Dg="Please re-select the optional quantity",Eg="The maximum length of the control must be greater than the minimum length",wg="The minimum length of the control must be less than the maximum length",Cg="Please select the correct option setting",Ag="Option ID cannot be repeated",bg="Please enter at least one option",Fg="Please bind the data source",_g="Please bind the stored value",Bg="Please bind the service",Sg="At least one display value must be bound",Og="Please select a province",Mg="Please select a city",xg="Please select a district",Ig="The minimum number of lines to fill in cannot be less than 0",Tg="The number of rows cannot be less than {min} rows",Pg="Please enter the column width",Ng="Please set the logical relationship of all rule conditions",$g="Please complete all rules and conditions",Rg="please select control",Lg="Please select the dashboard",kg="View name cannot be empty",jg="Please select recognition type",qg="Please select at least one field to fill in",Ug="Please select at least one",Vg="Please enter the button title",Wg="Please bind the business model in the data settings",zg="Please bind storage values in data settings",Gg="Please bind the service in the data settings",Hg="Please bind at least one display value in the data settings",Qg="Please select the root node in the data settings",Jg="Please enter the maximum height",Zg="The input content cannot be empty",Xg="Watermark cannot be empty",Kg="File name cannot be empty",Yg="Please upload at least one printing template!\uFF01",ev="Please select a specific business department",tv="Please select a specified external organization",rv="Please enter a sub table alias",nv="Please select the associated table to set the business model",iv="Please select the association table to set the binding service",uv="Select associated sub table fields",ov="Please select the associated main table field",sv="Please select the sort field",av="\u6279\u91CF\u5220\u9664",lv="\u6279\u91CF\u6253\u5370",cv="\u6279\u91CF\u6253\u5370\u8BB0\u5F55",fv="\u6309\u94AE",hv="\u521B\u5EFA\u5355\u636E",dv="\u4EEA\u8868\u76D8",pv="\u5206\u5272\u7EBF",gv="\u5BFC\u51FA",vv="\u8868\u5355\u64CD\u4F5C",mv="\u5BFC\u5165",yv="\u53D1\u7968\u8BC6\u522B",Dv="\u94FE\u63A5",Ev="\u5217\u8868\u9009\u62E9",wv="\u5217\u8868\u89C6\u56FE",Cv="\u64CD\u4F5C\u6309\u94AE",Av="\u5206\u9875",bv="\u6279\u91CF\u63D0\u4EA4\u8BB0\u5F55",Fv="\u8BF4\u660E\u6587\u5B57",_v="\u6587\u5B57\u8BC6\u522B",Bv="\u6807\u9898\u7EC4\u4EF6",Sv="\u5F53\u524D\u5BA1\u6279\u72B6\u6001",Ov="\u6570\u7EC4",Mv="\u81EA\u52A8\u7F16\u53F7",xv="\u81EA\u5B9A\u4E49",Iv="\u6570\u503C",Tv="\u90E8\u95E8",Pv="\u4EBA\u5458",Nv="\u9644\u4EF6",$v="\u56FE\u7247",Rv="\u5730\u5740",Lv="\u64CD\u4F5C",kv="\u5E8F\u53F7",jv="\u4EBA\u5458",qv="\u957F\u6587\u672C",Uv="\u65E5\u671F\u533A\u95F4",Vv="\u65E5\u671F",Wv="\u77ED\u6587\u672C",zv="\u6362\u884C\u5BB9\u5668Wrap",Gv="\u8868\u683C",Hv="\u660E\u7EC6\u5B50\u8868",Qv="\u5730\u5740",Jv="\u91D1\u989D",Zv="\u8BA1\u7B97\u516C\u5F0F",Xv="\u591A\u9009",Kv="\u7535\u5B50\u7B7E\u7AE0",Yv="\u5355\u884C\u6587\u672C",em="\u6570\u5B57",tm="\u4E1A\u52A1\u7EC4\u7EC7",rm="\u5355\u9009",nm="\u5BCC\u6587\u672C",im="\u8BC4\u5206",um="\u6570\u5B57\u533A\u95F4",om="\u4E0B\u62C9\u5355\u9009",sm="\u4E0B\u62C9\u591A\u9009",am="\u5173\u8054\u5355\u9009",lm="\u591A\u884C\u6587\u672C",cm="\u6811",fm="Vue\u5BB9\u5668",hm="Vue\u9875\u9762",dm="\u5728\u7EBF\u6587\u6863",pm="\u6309\u94AE\u64CD\u4F5C\u680F",gm="\u9AD8\u7EA7\u5BB9\u5668",vm="\u5206\u7EC4",mm="\u6805\u683C\u5217",ym="\u6570\u636E\u5BB9\u5668",Dm="\u753B\u5E03",Em="\u6362\u884C\u5BB9\u5668",wm="\u6805\u683C\u7B49\u5206\u884C",Cm="\u5217\u8868\u5BB9\u5668",Am="\u81EA\u7531\u9875\u9762",bm="\u5B9A\u4F4D\u5B50\u5BB9\u5668",Fm="\u5B9A\u4F4D\u5BB9\u5668",_m="\u6805\u683C\u5E03\u5C40",Bm="\u660E\u7EC6\u5B50\u8868\u5355\u5143\u683C",Sm="\u660E\u7EC6\u5B50\u8868\u884C",Om="\u6807\u7B7E\u9875",Mm="\u6807\u7B7E\u5355\u5143",xm="\u5DE5\u5177\u680F",Im="\u6279\u91CF\u63D0\u4EA4",Tm="\u5BFC\u51FA\u8BB0\u5F55",Pm="\u5217\u8868\u89C6\u56FE",Nm="\u5F15\u7528\u5217\u8868",$m="\u9009\u9879\u4E00",Rm="\u9009\u9879\u4E8C",Lm="\u9009\u9879\u4E09",km={isNotNumber:zp,isNotString:Gp,isNotObject:Hp,isNotArray:Qp,isNotBoolean:Jp,runtimeRequired:Zp,pleaseEnterCaption:Xp,pleaseEnterCaptionTip:Kp,pleaseEnterRowCaption:Yp,pleaseEnterPlaceholder:eg,pleaseEnterFieldCode:tg,pleaseEnterForm:rg,pleaseEnterList:ng,pleaseEnterProcess:ig,pleaseEnterLabel:ug,pleaseEnterValue:og,bizKeyNotBindFiled:sg,pleaseSelectOneField:ag,pleaseEnterNumberRange:lg,pleaseEnterAValueGreaterThanMin:cg,pleaseEnterAValueLessThanMax:fg,numberRangeSetError:hg,stringRangeError:dg,attachmentMaxSize:pg,pleaseEnterTotalScoreSetting:gg,theTotalScoreMustNotBeLessThan1:vg,scoreDefaultValueRange:mg,attachmentLimitError:yg,PleaseReselectTheOptionalQuantity:Dg,TheMaximumLengthIsGreaterThanTheMinimumLength:Eg,TheMinimumLengthIsGreaterThanTheMaximumLength:wg,PleaseSelectTheCorrectOptionSettings:Cg,optionIdIsRepeat:Ag,optionIsRequired:bg,pleaseEnterDataCode:Fg,pleaseEnterValueFieldCode:_g,pleaseEnterSvcCode:Bg,pleaseBindAtLeastOneDisplayValue:Sg,pleaseSelectProvince:Og,pleaseSelectCity:Mg,pleaseSelectDistrict:xg,limitRowsCannotBeLessThan0:Ig,TheNumberOfRowsCannotBeLessThanMinRows:Tg,pleaseEnterColumnWidth:Pg,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Ng,pleaseCompleteAllRulesAndConditions:$g,pleaseSelectControl:Rg,pleaseSelectDashboard:Lg,theViewNameCannotBeEmpty:kg,pleaseSelectOcrType:jg,pleaseSelectAtLeastOneFieldToFillIn:qg,pleaseChooseAtLeastOne:Ug,pleaseEnterButtonContent:Vg,pleaseEnterDataCodeInDataSetting:Wg,pleaseEnterValueFieldCodeInDataSetting:zg,pleaseEnterSvcCodeInDataSetting:Gg,pleaseBindAtLeastOneDisplayValueInDataSetting:Hg,rootNodeIsRequiredInDataSetting:Qg,pleaseEnterMaxHeight:Jg,pleaseEnter:Zg,pleaseEnterWatermark:Xg,pleaseEnterFileName:Kg,pleaseUploadAtLeastOnePrintTemplate:Yg,pleaseAssignBusiness:ev,pleaseAssignExternal:tv,pleaseEnterAliasCode:rv,pleaseSelectDataCode:nv,pleaseSelectSvcCode:iv,pleaseSelectJoinFieldCode:uv,pleaseSelectMainFieldCode:ov,pleaseSelectSortFieldCode:sv,batchDeleteButton:av,batchPrintListButton:lv,batchPrintRecordList:cv,button:fv,createFormListButton:hv,dashboard:dv,divider:pv,exportListButton:gv,formSelectButton:vv,importRecordListButton:mv,invoiceCheckButton:yv,link:Dv,listSelectButton:Ev,ListViewSelect:wv,operationButton:Cv,pagination:Av,submissionRecordListButton:bv,text:Fv,textOcrButton:_v,title:Bv,approvalStatusColumn:Sv,array:Ov,autoNumber:Mv,custom:xv,decimal:Iv,department:Tv,employee:Pv,file:Nv,image:$v,location:Rv,operation:Lv,order:kv,people:jv,long:qv,timescope:Uv,timestamp:Vv,varchar:Wv,gridLayoutWrap:zv,gridTable:Gv,subTable:Hv,address:Qv,amount:Jv,calc:Zv,checkBox:Xv,electronicSignature:Kv,input:Yv,number:em,organizationSelection:tm,radio:rm,richText:nm,score:im,searchNumberRange:um,select:om,selectMultiple:sm,selectRelation:am,textarea:lm,tree:cm,vueFormItem:fm,vuePage:hm,WPS:dm,actionBar:pm,advancedContainer:gm,cardGroup:vm,col:mm,dataView:ym,grid:Dm,gridLayoutContainer:Em,gridRow:wm,listView:Cm,page:Am,position:bm,positioningContainer:Fm,row:_m,subtableColumn:Bm,subtableRow:Sm,tab:Om,tabPane:Mm,toolbox:xm,batchSubmissionListButton:Im,exportRecordListButton:Tm,listViewSelect:Pm,referenceList:Nm,optionOne:$m,optionTwo:Rm,optionThird:Lm},jm="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",qm="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Um="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Vm="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Wm="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",zm="{caption}\u5FC5\u9808",Gm="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Hm="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Qm="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Jm="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Zm="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Xm="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Km="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ym="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",e1="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",t1="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",r1="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",n1="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",i1="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",u1="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",o1="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",s1="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",a1="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",l1="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",c1="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",f1="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",h1="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",d1="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u6570\u304C\u5236\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059",p1="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",g1="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5927\u5024\u306F\u6700\u5C0F\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",v1="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5C0F\u5024\u306F\u6700\u5927\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",m1="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",y1="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",D1="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",E1="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",w1="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",C1="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",A1="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",b1="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",F1="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",_1="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",B1="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",S1="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",O1="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",M1="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",x1="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",I1="please select control",T1="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",P1="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",N1="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",$1="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",R1="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",L1="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",k1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",j1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",q1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",U1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",V1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",W1="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",z1="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",G1="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",H1="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Q1="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",J1="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Z1="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",X1="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",K1="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",Y1="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ey="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",ty="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ry="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ny="\u6279\u91CF\u5220\u9664",iy="\u6279\u91CF\u6253\u5370",uy="\u6279\u91CF\u6253\u5370\u8BB0\u5F55",oy="\u6309\u94AE",sy="\u521B\u5EFA\u5355\u636E",ay="\u4EEA\u8868\u76D8",ly="\u5206\u5272\u7EBF",cy="\u5BFC\u51FA",fy="\u8868\u5355\u64CD\u4F5C",hy="\u5BFC\u5165",dy="\u53D1\u7968\u8BC6\u522B",py="\u94FE\u63A5",gy="\u5217\u8868\u9009\u62E9",vy="\u5217\u8868\u89C6\u56FE",my="\u64CD\u4F5C\u6309\u94AE",yy="\u5206\u9875",Dy="\u6279\u91CF\u63D0\u4EA4\u8BB0\u5F55",Ey="\u8BF4\u660E\u6587\u5B57",wy="\u6587\u5B57\u8BC6\u522B",Cy="\u6807\u9898\u7EC4\u4EF6",Ay="\u5F53\u524D\u5BA1\u6279\u72B6\u6001",by="\u6570\u7EC4",Fy="\u81EA\u52A8\u7F16\u53F7",_y="\u81EA\u5B9A\u4E49",By="\u6570\u503C",Sy="\u90E8\u95E8",Oy="\u4EBA\u5458",My="\u9644\u4EF6",xy="\u56FE\u7247",Iy="\u5730\u5740",Ty="\u64CD\u4F5C",Py="\u5E8F\u53F7",Ny="\u4EBA\u5458",$y="\u957F\u6587\u672C",Ry="\u65E5\u671F\u533A\u95F4",Ly="\u65E5\u671F",ky="\u77ED\u6587\u672C",jy="\u6362\u884C\u5BB9\u5668Wrap",qy="\u8868\u683C",Uy="\u660E\u7EC6\u5B50\u8868",Vy="\u5730\u5740",Wy="\u91D1\u989D",zy="\u8BA1\u7B97\u516C\u5F0F",Gy="\u591A\u9009",Hy="\u7535\u5B50\u7B7E\u7AE0",Qy="\u5355\u884C\u6587\u672C",Jy="\u6570\u5B57",Zy="\u4E1A\u52A1\u7EC4\u7EC7",Xy="\u5355\u9009",Ky="\u5BCC\u6587\u672C",Yy="\u8BC4\u5206",eD="\u6570\u5B57\u533A\u95F4",tD="\u4E0B\u62C9\u5355\u9009",rD="\u4E0B\u62C9\u591A\u9009",nD="\u5173\u8054\u5355\u9009",iD="\u591A\u884C\u6587\u672C",uD="\u6811",oD="Vue\u5BB9\u5668",sD="Vue\u9875\u9762",aD="\u5728\u7EBF\u6587\u6863",lD="\u6309\u94AE\u64CD\u4F5C\u680F",cD="\u9AD8\u7EA7\u5BB9\u5668",fD="\u5206\u7EC4",hD="\u6805\u683C\u5217",dD="\u6570\u636E\u5BB9\u5668",pD="\u753B\u5E03",gD="\u6362\u884C\u5BB9\u5668",vD="\u6805\u683C\u7B49\u5206\u884C",mD="\u5217\u8868\u5BB9\u5668",yD="\u81EA\u7531\u9875\u9762",DD="\u5B9A\u4F4D\u5B50\u5BB9\u5668",ED="\u5B9A\u4F4D\u5BB9\u5668",wD="\u6805\u683C\u5E03\u5C40",CD="\u660E\u7EC6\u5B50\u8868\u5355\u5143\u683C",AD="\u660E\u7EC6\u5B50\u8868\u884C",bD="\u6807\u7B7E\u9875",FD="\u6807\u7B7E\u5355\u5143",_D="\u5DE5\u5177\u680F",BD="\u6279\u91CF\u63D0\u4EA4",SD="\u5BFC\u51FA\u8BB0\u5F55",OD="\u5217\u8868\u89C6\u56FE",MD="\u5F15\u7528\u5217\u8868",xD="\u9009\u9879\u4E00",ID="\u9009\u9879\u4E8C",TD="\u9009\u9879\u4E09",PD={isNotNumber:jm,isNotString:qm,isNotObject:Um,isNotArray:Vm,isNotBoolean:Wm,runtimeRequired:zm,pleaseEnterCaption:Gm,pleaseEnterCaptionTip:Hm,pleaseEnterRowCaption:Qm,pleaseEnterPlaceholder:Jm,pleaseEnterFieldCode:Zm,pleaseEnterForm:Xm,pleaseEnterList:Km,pleaseEnterProcess:Ym,pleaseEnterLabel:e1,pleaseEnterValue:t1,bizKeyNotBindFiled:r1,pleaseSelectOneField:n1,pleaseEnterNumberRange:i1,pleaseEnterAValueGreaterThanMin:u1,pleaseEnterAValueLessThanMax:o1,numberRangeSetError:s1,stringRangeError:a1,attachmentMaxSize:l1,pleaseEnterTotalScoreSetting:c1,theTotalScoreMustNotBeLessThan1:f1,scoreDefaultValueRange:h1,attachmentLimitError:d1,PleaseReselectTheOptionalQuantity:p1,TheMaximumLengthIsGreaterThanTheMinimumLength:g1,TheMinimumLengthIsGreaterThanTheMaximumLength:v1,PleaseSelectTheCorrectOptionSettings:m1,optionIdIsRepeat:y1,optionIsRequired:D1,pleaseEnterDataCode:E1,pleaseEnterValueFieldCode:w1,pleaseEnterSvcCode:C1,pleaseBindAtLeastOneDisplayValue:A1,pleaseSelectProvince:b1,pleaseSelectCity:F1,pleaseSelectDistrict:_1,limitRowsCannotBeLessThan0:B1,TheNumberOfRowsCannotBeLessThanMinRows:S1,pleaseEnterColumnWidth:O1,pleaseSetTheLogicalRelationshipOfAllRuleConditions:M1,pleaseCompleteAllRulesAndConditions:x1,pleaseSelectControl:I1,pleaseSelectDashboard:T1,theViewNameCannotBeEmpty:P1,pleaseSelectOcrType:N1,pleaseSelectAtLeastOneFieldToFillIn:$1,pleaseChooseAtLeastOne:R1,pleaseEnterButtonContent:L1,pleaseEnterDataCodeInDataSetting:k1,pleaseEnterValueFieldCodeInDataSetting:j1,pleaseEnterSvcCodeInDataSetting:q1,pleaseBindAtLeastOneDisplayValueInDataSetting:U1,rootNodeIsRequiredInDataSetting:V1,pleaseEnterMaxHeight:W1,pleaseEnter:z1,pleaseEnterWatermark:G1,pleaseEnterFileName:H1,pleaseUploadAtLeastOnePrintTemplate:Q1,pleaseAssignBusiness:J1,pleaseAssignExternal:Z1,pleaseEnterAliasCode:X1,pleaseSelectDataCode:K1,pleaseSelectSvcCode:Y1,pleaseSelectJoinFieldCode:ey,pleaseSelectMainFieldCode:ty,pleaseSelectSortFieldCode:ry,batchDeleteButton:ny,batchPrintListButton:iy,batchPrintRecordList:uy,button:oy,createFormListButton:sy,dashboard:ay,divider:ly,exportListButton:cy,formSelectButton:fy,importRecordListButton:hy,invoiceCheckButton:dy,link:py,listSelectButton:gy,ListViewSelect:vy,operationButton:my,pagination:yy,submissionRecordListButton:Dy,text:Ey,textOcrButton:wy,title:Cy,approvalStatusColumn:Ay,array:by,autoNumber:Fy,custom:_y,decimal:By,department:Sy,employee:Oy,file:My,image:xy,location:Iy,operation:Ty,order:Py,people:Ny,long:$y,timescope:Ry,timestamp:Ly,varchar:ky,gridLayoutWrap:jy,gridTable:qy,subTable:Uy,address:Vy,amount:Wy,calc:zy,checkBox:Gy,electronicSignature:Hy,input:Qy,number:Jy,organizationSelection:Zy,radio:Xy,richText:Ky,score:Yy,searchNumberRange:eD,select:tD,selectMultiple:rD,selectRelation:nD,textarea:iD,tree:uD,vueFormItem:oD,vuePage:sD,WPS:aD,actionBar:lD,advancedContainer:cD,cardGroup:fD,col:hD,dataView:dD,grid:pD,gridLayoutContainer:gD,gridRow:vD,listView:mD,page:yD,position:DD,positioningContainer:ED,row:wD,subtableColumn:CD,subtableRow:AD,tab:bD,tabPane:FD,toolbox:_D,batchSubmissionListButton:BD,exportRecordListButton:SD,listViewSelect:OD,referenceList:MD,optionOne:xD,optionTwo:ID,optionThird:TD},Xi={zhCN:Wp,enUS:km,jaJP:PD},qt=function(t){return t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable",t}({}),Fn=function(t){return t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN",t}({}),Ki,ds=(Ki=window.localStorage.getItem("locale"))!==null&&Ki!==void 0?Ki:"zh-CN",de=function(t){return t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search",t}({}),Te=function(t){return t.TITLE="title",t.LINK="link",t.IFRAME="iframe",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.ORGANIZATION_SELECTION="organization-selection",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.COMMENT="comment",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.OPERATION_BUTTON="operation-button",t.EMPLOYEE_COLUMN="employee-column",t.Approval_Status_Column="approval-status-column",t.GROUP_COLUMN="group-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.CASCADER="cascader",t.COUNTER="counter",t.SLIDER="slider",t.SWITCH="switch",t.TAG="tag",t.BARCODE="barcode",t.QR_CODE="qr-code",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.TIME_PICKER="time-picker",t.TIME_RANGE="time-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.BLANK_CONTAINER="blank-container",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.GRID_LAYOUT_CONTAINER="grid-layout-container",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.ACTION_BAR="action-bar",t.TABLE_LAYOUT="table-layout",t.TABLE_LAYOUT_ROW="table-layout-row",t.TABLE_LAYOUT_COL="table-layout-col",t.TABLE_LAYOUT_WRAPPER="table-layout-wrapper",t.COLLAPSE="collapse",t.COLLAPSE_PANE="collapse-pane",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.BAR_CHART="bar-chart",t.LINE_CHART="line-chart",t.PIE_CHART="pie-chart",t.TREE="tree",t.EMPLOYEE2="employee2",t.DEPARTMENT2="department2",t.GRID_LAYOUT_WRAP="grid-layout-wrap",t.VUE_PAGE="vue-page",t.REFERENCE_LIST="reference-list",t.STEP="step",t.STEP_PANE="step-pane",t}({}),qe=function(t){return t.VARCHAR="varchar",t.TEXT="text",t.ARRAY="array",t.ADDRESS="location",t.DECIMAL="decimal",t.DECIMAL_RANGE="decimal_range",t.TIMESTAMP="timestamp",t.EMPLOYEES="people",t.DEPARTMENTS="department",t.MONEY="money",t.TIMESCOPE="timescope",t.FILE="file",t.IMAGE="image",t.AUTO_NUMBER="auto_number",t.CALC="calc",t.LIST="list",t.JSON="json",t.ANY="ANY",t}({}),ps="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ND=ps+"0123456789";function _n(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",r=0;r<t;r++){var n=r===0?ps:ND,i=Math.random()*n.length;e+=n[parseInt(String(i),10)]}return e}function Yi(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function $D(t){if(Array.isArray(t))return Yi(t)}function RD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gs(t,e,r){return e=Hr(e),qD(t,tu()?Reflect.construct(e,r||[],Hr(t).constructor):e.apply(t,r))}function vs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bn(t,e,r){return tu()?Bn=Reflect.construct:Bn=function(i,u,o){var a=[null];a.push.apply(a,u);var s=Function.bind.apply(i,a),c=new s;return o&&Qr(c,o.prototype),c},Bn.apply(null,arguments)}function Hr(t){return Hr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Hr(t)}function ms(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qr(t,e)}function LD(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function kD(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function jD(){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 qD(t,e){return e&&(UD(e)==="object"||typeof e=="function")?e:RD(t)}function Qr(t,e){return Qr=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Qr(t,e)}function ys(t){return $D(t)||kD(t)||VD(t)||jD()}function UD(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function VD(t,e){if(!!t){if(typeof t=="string")return Yi(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yi(t,e)}}function eu(t){var e=typeof Map=="function"?new Map:void 0;return eu=function(n){if(n===null||!LD(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Bn(n,arguments,Hr(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Qr(i,n)},eu(t)}function tu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(tu=function(){return!!t})()}var ru=console;function Ar(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=e.slice(1);(n=ru).warn.apply(n,["\u{1F9D0} Driven Warning:"+e[0]].concat(ys(i)))}function nu(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=e.slice(1);(n=ru).log.apply(n,["\u{1F680} Driven Log:"+e[0]].concat(ys(i)))}function WD(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var iu=function(t){ms(e,t);function e(r){vs(this,e);var n;return n=gs(this,e,[r]),n.name="\u{1F4A5} Driven Error",n.message=r?WD(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",n}return e}(eu(Error)),zD=function(t){ms(e,t);function e(r){vs(this,e);var n;return n=gs(this,e,[r]),n.name="\u{1F6A8} Driven Reference Error",n}return e}(iu);function Ut(t){throw new iu(t)}function Ds(t){throw new zD(t)}function Sn(t){ru.error(new iu(t))}function Vt(t,e){Array.isArray(t)&&t.map(function(r){switch(r.controlType){case"layout":Vt(r==null?void 0:r.children,e);break;case"wrap":Vt(r==null?void 0:r.children,e);break;case"search":Vt(r==null?void 0:r.children,e);break;case"form":e(r)}})}function GD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Es(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function HD(t,e,r){return e&&Es(t.prototype,e),r&&Es(t,r),t}function QD(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ws=function(){function t(){GD(this,t)}return HD(t,null,[{key:"getMessage",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i;return oe("CMD."+r,n,Xi==null||(i=Xi[ds.split("-").join("")])===null||i===void 0?void 0:i[r])}},{key:"resetI18n",value:function(){}},{key:"setLocale",value:function(r,n){}}]),t}();QD(ws,"$i18n",ws.resetI18n());function uu(t,e,r){var n=e.replace(/\[(\d)]/g,function(u,o){return"."+o}).split("."),i=!1;return n.reduce(function(u,o,a,s){var c=u;if(!!u){if(!Object.prototype.hasOwnProperty.call(u,o)){Ar("Can not set ".concat(e,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),u,u);return}return a===s.length-1&&!Object.is(c[o],r)&&(c[o]=r,i=!0),c[o]}},t),i}var Xt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function JD(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ou={exports:{}};(function(t){(function(e){var r=function(p,m,D){if(!c(m)||f(m)||h(m)||g(m)||s(m))return m;var E,w=0,_=0;if(l(m))for(E=[],_=m.length;w<_;w++)E.push(r(p,m[w],D));else{E={};for(var O in m)Object.prototype.hasOwnProperty.call(m,O)&&(E[p(O,D)]=r(p,m[O],D))}return E},n=function(p,m){m=m||{};var D=m.separator||"_",E=m.split||/(?=[A-Z])/;return p.split(E).join(D)},i=function(p){return y(p)?p:(p=p.replace(/[\-_\s]+(.)?/g,function(m,D){return D?D.toUpperCase():""}),p.substr(0,1).toLowerCase()+p.substr(1))},u=function(p){var m=i(p);return m.substr(0,1).toUpperCase()+m.substr(1)},o=function(p,m){return n(p,m).toLowerCase()},a=Object.prototype.toString,s=function(p){return typeof p=="function"},c=function(p){return p===Object(p)},l=function(p){return a.call(p)=="[object Array]"},f=function(p){return a.call(p)=="[object Date]"},h=function(p){return a.call(p)=="[object RegExp]"},g=function(p){return a.call(p)=="[object Boolean]"},y=function(p){return p=p-0,p===p},d=function(p,m){var D=m&&"process"in m?m.process:m;return typeof D!="function"?p:function(E,w){return D(E,p,w)}},v={camelize:i,decamelize:o,pascalize:u,depascalize:o,camelizeKeys:function(p,m){return r(d(i,m),p)},decamelizeKeys:function(p,m){return r(d(o,m),p,m)},pascalizeKeys:function(p,m){return r(d(u,m),p)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=v:e.humps=v})(Xt)})(ou);var Cs={};Object.defineProperty(Cs,"__esModule",{value:!0});function su(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:su(e));{const e={};for(const r in t){const n=t[r];e[r]=typeof n!="object"||n===null?n:su(n)}return e}}var ZD=Cs.default=su;function As(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function we(t){if(t!==void 0)return(typeof t=="undefined"?"undefined":As(t))==="object"?ZD(t):t}function St(t){return Object.prototype.toString.call(t)==="[object Object]"}function XD(t){return t!=null&&(typeof t=="undefined"?"undefined":As(t))==="object"&&Array.isArray(t)===!1}function fr(t){return Array.isArray(t)}function tt(t){return typeof t=="string"}function On(t){return typeof t=="number"}function bs(t){return typeof t=="function"}function KD(t){return fr(t)&&t.every(function(e){return tt(e)})}function YD(t){return fr(t)&&t.every(function(e){return On(e)||e===""})}function Fs(t){return/^\[.*?]$/.test(t)}function Mn(t){return/^{.*?}$/.test(t)}function eE(t){return Object.values(Te).includes(t)}function au(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tE(t){if(Array.isArray(t))return au(t)}function _s(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function rE(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){_s(u,n,i,o,a,"next",s)}function a(s){_s(u,n,i,o,a,"throw",s)}o(void 0)})}}function nE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function iE(t,e,r){return e&&Bs(t.prototype,e),r&&Bs(t,r),t}function Ss(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uE(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function oE(){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 lu(t){return tE(t)||uE(t)||sE(t)||oE()}function sE(t,e){if(!!t){if(typeof t=="string")return au(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return au(t,e)}}function aE(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var Os=function(){function t(){nE(this,t),Ss(this,"_events",new Map),Ss(this,"debug",!1)}return iE(t,[{key:"emit",value:function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),u=1;u<n;u++)i[u-1]=arguments[u];return rE(function(){var o,a,s,c,l,f,h,g,y,d,v,p;return aE(this,function(m){switch(m.label){case 0:if(o=this._events.get(r),a=[],!o)return[3,10];s=o.slice(),c=!0,l=!1,f=void 0,m.label=1;case 1:m.trys.push([1,8,9,10]),h=s[Symbol.iterator](),m.label=2;case 2:if(c=(g=h.next()).done)return[3,7];if(y=g.value,!o.includes(y))return[3,6];m.label=3;case 3:return m.trys.push([3,5,,6]),this.debug&&nu.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \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(i.map(function(){return"%o"}).join(","),"\u3002")].concat(lu(i))),[4,y.apply(null,lu(i))];case 4:return d=m.sent(),this.debug&&nu.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \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(i.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(lu(i),[d])),a.push(d),d===!1?[3,7]:[3,6];case 5:return v=m.sent(),Sn(String(v)+":"+String(v.stack)),[3,6];case 6:return c=!0,[3,2];case 7:return[3,10];case 8:return p=m.sent(),l=!0,f=p,[3,10];case 9:try{!c&&h.return!=null&&h.return()}finally{if(l)throw f}return[7];case 10:return[2,a]}})}).call(this)}},{key:"on",value:function(r,n){if(this._events.has(r)){var i;(i=this._events.get(r))===null||i===void 0||i.push(n)}else this._events.set(r,[n])}},{key:"off",value:function(r,n){if(this._events.has(r)){var i=this._events.get(r),u=i==null?void 0:i.indexOf(n);i==null||i.splice(u,1)}}},{key:"delete",value:function(r){this._events.has(r)&&this._events.delete(r)}},{key:"clear",value:function(){this._events=new Map}}]),t}();function lE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ms(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function cE(t,e,r){return e&&Ms(t.prototype,e),r&&Ms(t,r),t}function fE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var hE=[{key:"on_click",name:oe("CMD.click",null,"\u70B9\u51FB\u65F6"),code:"click"},{key:"on_click_finish",name:oe("CMD.finished",null,"\u6267\u884C\u5B8C\u6210\u65F6"),code:"click-finish"},{key:"on_change",name:oe("CMD.valueChange",null,"\u503C\u53D1\u751F\u53D8\u5316\u65F6"),code:"change"},{key:"on_search",name:oe("CMD.search",null,"\u641C\u7D22\u65F6"),code:"search"},{key:"on_file_actions",name:oe("CMD.onClickFileBtn",null,"\u70B9\u51FB\u6587\u4EF6\u6309\u94AE\u65F6"),code:"file-actions"},{key:"on_tree_search",name:oe("CMD.treeDataCreate",null,"\u6811\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6"),code:"tree-search"},{key:"on_list_change",name:oe("CMD.listDataChange",null,"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6"),code:"list-change"},{key:"on_chart_change",name:oe("CMD.chartDataChange",null,"\u56FE\u8868\u6570\u636E\u53D8\u5316\u65F6"),code:"chart-change"},{key:"on_list_search",name:oe("CMD.listDataCreate",null,"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6"),code:"list-search"},{key:"on_list_mounted",name:oe("CMD.listDataBack",null,"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6"),code:"list-mounted"},{key:"on_list_delete",name:oe("CMD.listDataDelete",null,"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6"),code:"list-delete"},{key:"on_list_before_insert",name:oe("CMD.listDataAdd",null,"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D"),code:"list-before-insert"},{key:"on_input",name:oe("CMD.onInput",null,"\u7528\u6237\u8F93\u5165\u65F6"),code:"input"},{key:"on_blur",name:oe("CMD.onBlur",null,"\u5931\u53BB\u7126\u70B9\u65F6"),code:"blur"},{key:"on_focus",name:oe("CMD.onFocus",null,"\u83B7\u53D6\u7126\u70B9\u65F6"),code:"focus"},{key:"on_wps_open",name:oe("CMD.onOpenFile",null,"\u6253\u5F00\u6587\u4EF6\u65F6"),code:"wps-open"},{key:"on_wps_save",name:oe("CMD.onSaveFile",null,"\u4FDD\u5B58\u6587\u4EF6\u65F6"),code:"wps-save"},{key:"on_wps_rename",name:oe("CMD.rename",null,"\u91CD\u547D\u540D\u65F6"),code:"wps-rename"},{key:"on_list_actions",name:oe("CMD.onClickBtn",null,"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6"),code:"list-actions"},{key:"on_list_render_operation",name:oe("CMD.cellRender",null,"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6"),code:"list-render-operation"},{key:"on_list_rowclick",name:oe("CMD.rowClick",null,"\u884C\u70B9\u51FB\u65F6"),code:"list-rowclick"},{key:"on_list_before_rowdelete",name:oe("CMD.rowDelete",null,"\u884C\u5220\u9664\u524D"),code:"list-before-rowdelete"},{key:"on_list_before_import",name:oe("CMD.listDataImport",null,"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D"),code:"list-before-import"},{key:"on_list_rows_checked",name:oe("CMD.rowSelected",null,"\u884C\u9009\u4E2D\u65F6"),code:"list-rows-checked"},{key:"on_change_tab",name:oe("CMD.tabChange",null,"\u6807\u7B7E\u9875\u5207\u6362\u65F6"),code:"change-tab"},{key:"on_modal_ok",name:oe("CMD.modalConfirm",null,"\u5F39\u7A97\u786E\u8BA4\u65F6"),code:"modal-ok"},{key:"on_change_steps",name:oe("CMD.stepsChange",null,"\u6B65\u9AA4\u5207\u6362\u65F6"),code:"change-steps"},{key:"on_option_selected",name:oe("CMD.optionSelected",null,"DOM\u70B9\u51FBoption\u4E8B\u4EF6"),code:"option_selected"}],xs=function(){function t(){lE(this,t)}return cE(t,null,[{key:"getEventsFromKeys",value:function(r){var n=typeof r=="string"?[r]:r;return t.events.filter(function(i){return n.includes(i.key)})}},{key:"getEventsFromControl",value:function(r){var n=[],i=r.eventKeys;n=n.concat(t.events.filter(function(o){return i.includes(o.key)}));var u=r.customEvents.map(function(o){var a=o.key;return o.namespace!==void 0&&o.namespace!==null&&o.namespace!==""&&(a=o.namespace+":"+o.key),{key:a,code:o.key,name:o.name}});return n=n.concat(u),n}}]),t}();fE(xs,"events",hE);function cu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function dE(t){if(Array.isArray(t))return cu(t)}function pE(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gE(){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 Is(t){return dE(t)||pE(t)||vE(t)||gE()}function vE(t,e){if(!!t){if(typeof t=="string")return cu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cu(t,e)}}function fu(t,e){var r;!((r=Object.getOwnPropertyDescriptors(t)[e])===null||r===void 0)&&r.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function Ts(t,e,r){r!=="Runtime"&&(t.parent=e,fu(t,"parent"))}function mE(t,e,r){t.forEach(function(n){Ts(n,e,r)})}var Ps=Symbol("targetKey");function Ns(t){var e;return(e=t[Ps])!==null&&e!==void 0?e:t}function $s(t,e,r){return mE(t,e,r),new Proxy(t,{get:function(i,u){for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];var c;return u===Ps?i:(c=Reflect).get.apply(c,[i,u].concat(Is(a)))},set:function(i,u,o){for(var a=arguments.length,s=new Array(a>3?a-3:0),c=3;c<a;c++)s[c-3]=arguments[c];var l;if(fr(t)&&u==="length"&&o===t.length)return!0;var f=(l=Reflect).set.apply(l,[i,u,o].concat(Is(s)));return St(o)&&Ts(o,e,r),f}})}function hu(t,e,r,n,i){var u=n!=null?n:t,o=$s(Ns(r!=null?r:[]),u,i);Object.defineProperty(t,e,{get:function(){return o},set:function(s){o=$s(Ns(s),u,i)},enumerable:!0})}function yE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function DE(t,e,r){return e&&Rs(t.prototype,e),r&&Rs(t,r),t}function Kt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ls=[],Jr=function(){function t(e){yE(this,t),Kt(this,"registeredControlTypes",new Set),Kt(this,"controlConfigMap",new Map),Kt(this,"_controls",[]),Kt(this,"_type",void 0),this._type=e,this._initControls(e)}return DE(t,[{key:"registerControlConfig",value:function(r,n){return this.controlConfigMap.set(r,n),this}},{key:"getControlConfig",value:function(r){return this.controlConfigMap.get(r)}},{key:"getControls",value:function(){return this._controls}},{key:"register",value:function(r){r.__is_control__||Ut("".concat(r.name," is not a Control"));var n=this._controls.findIndex(function(i){return i.controlType===r.controlType});return n>-1&&(Ar("The ".concat(r.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(n,1)),this.registeredControlTypes.add(r.controlType),this._controls.push(r),this}},{key:"isLayoutControl",value:function(r){return r.controlType===de.LAYOUT}},{key:"isFormControl",value:function(r){return r.controlType===de.FORM}},{key:"isListControl",value:function(r){return r.controlType===de.LIST}},{key:"isColumnControl",value:function(r){return r.controlType===de.COLUMN}},{key:"createControl",value:function(r,n){var i=this;if(Array.isArray(r))return r.map(function(l){return i.createControl(l,n)});if(r.children&&(r.children=r.children.map(function(l){return i.createControl(l,n)})),this.isListControl(r)){var u=r.props;u.headers&&(u.headers=u.headers.map(function(l){return i.createControl(l,n)}))}var o=this.getControlFormType(r.type);if(o){var a=r;if(typeof n=="function"){var s=n(a);s&&(a=s)}var c;return o.mode==="Runtime"?(c=a,c.fieldType=o.controlFieldType,this._setParentPrototypeToSchema(c,this)):c=new o(a),c}else Ut("The constructor of ".concat(r.type," could not be found, please confirm that the constructor has been registered"))}},{key:"resetInstanceParent",value:function(r,n){delete r.parent,Object.defineProperty(r,"parent",{configurable:!0,get:function(){return n}}),fu(r,"parent")}},{key:"_setParentPrototypeToSchema",value:function(r,n){n._type==="Runtime"&&(Object.defineProperty(r,"parent",{configurable:!0,get:function(){var u=r.id,o=n._controlParentIdMap,a=n.instanceMap;if(!(!o||!a)){var s=o[u],c=a[u];if(!(!s&&!c)){var l=c.findIndex(function(g){return g==r}),f=a[s]||[],h;return f.length!==c.length?h=f[0]:h=f[l],h}}}}),fu(r,"parent"))}},{key:"createControlInstance",value:function(r,n){var i=this.getControlFormType(r);if(i)return new i(n)}},{key:"getControlFormType",value:function(r){return this._controls.find(function(n){return n.controlType===r})}},{key:"_initControls",value:function(r){var n=this;this.constructor.staticControls.forEach(function(i){n.register(i[r]),t.staticControlsRuntimeRules.set(i.Runtime.controlType,i.Property.RuntimeRules),i.Property.mode=r})}}],[{key:"staticGetRules",value:function(r,n){var i=t.staticControlsRuntimeRules.get(r),u=[];if(i){var o=new i(n);u=Array.from(o)}return u}},{key:"register",value:function(r,n){var i=r.Designer,u=r.Runtime,o=r.Property;(!i||!u||!i.__is_control__||!u.__is_control__)&&Ut("".concat(r," is can't register as a Control"));var a=this.staticControls.findIndex(function(s){return s.Designer.controlType===i.controlType});return a>-1&&(Ar("The ".concat(i.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(a,1)),this.staticRegisteredTypes.add(i.controlType),this.staticControls.push(r),o.mode=n,this}}]),t}();Kt(Jr,"staticControlsRuntimeRules",new Map),Kt(Jr,"staticControls",Ls),Kt(Jr,"staticRegisteredTypes",new Set(Ls.map(function(t){return t.Designer.controlType}))),Kt(Jr,"staticRegisteredConfigs",new Map);function hr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Be(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var du=function t(e){hr(this,t);var r,n,i;Be(this,"dataCode",void 0),Be(this,"fieldCode",void 0),Be(this,"fieldType",void 0),Be(this,"aliasCode",void 0),this.dataCode=(r=e==null?void 0:e.dataCode)!==null&&r!==void 0?r:"",this.fieldCode=(n=e==null?void 0:e.fieldCode)!==null&&n!==void 0?n:"",this.fieldType=(i=e==null?void 0:e.fieldType)!==null&&i!==void 0?i:"",this.aliasCode=e==null?void 0:e.aliasCode},EE=function t(e){hr(this,t);var r,n;Be(this,"minWidth",void 0),Be(this,"maxWidth",void 0),Be(this,"flex",void 0),this.minWidth=(r=e==null?void 0:e.minWidth)!==null&&r!==void 0?r:150,this.maxWidth=e==null?void 0:e.maxWidth,this.flex=(n=e==null?void 0:e.flex)!==null&&n!==void 0?n:1},pu=function t(e){hr(this,t);var r,n;Be(this,"amount",void 0),Be(this,"currency",void 0),this.amount=(r=e==null?void 0:e.amount)!==null&&r!==void 0?r:"",this.currency=(n=e==null?void 0:e.currency)!==null&&n!==void 0?n:"CNY"},gu=function t(e){hr(this,t);var r,n;Be(this,"min",void 0),Be(this,"max",void 0),this.min=(r=e==null?void 0:e.min)!==null&&r!==void 0?r:"",this.max=(n=e==null?void 0:e.max)!==null&&n!==void 0?n:""},vu=function t(e){hr(this,t);var r,n,i,u,o,a,s,c;Be(this,"country",void 0),Be(this,"countryDisplay",void 0),Be(this,"city",void 0),Be(this,"cityDisplay",void 0),Be(this,"district",void 0),Be(this,"districtDisplay",void 0),Be(this,"province",void 0),Be(this,"provinceDisplay",void 0),this.country=(r=e==null?void 0:e.country)!==null&&r!==void 0?r:"",this.countryDisplay=(n=e==null?void 0:e.countryDisplay)!==null&&n!==void 0?n:"",this.city=(i=e==null?void 0:e.city)!==null&&i!==void 0?i:"",this.cityDisplay=(u=e==null?void 0:e.cityDisplay)!==null&&u!==void 0?u:"",this.district=(o=e==null?void 0:e.district)!==null&&o!==void 0?o:"",this.districtDisplay=(a=e==null?void 0:e.districtDisplay)!==null&&a!==void 0?a:"",this.province=(s=e==null?void 0:e.province)!==null&&s!==void 0?s:"",this.provinceDisplay=(c=e==null?void 0:e.provinceDisplay)!==null&&c!==void 0?c:""},mu=function t(e){hr(this,t);var r,n;Be(this,"result",void 0),Be(this,"unit",void 0),this.result=(r=e==null?void 0:e.result)!==null&&r!==void 0?r:0,this.unit=(n=e==null?void 0:e.unit)!==null&&n!==void 0?n:""},wE=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t}({}),CE=function t(e){hr(this,t);var r,n,i,u;Be(this,"width",void 0),Be(this,"height",void 0),Be(this,"widthConfig",void 0),Be(this,"heightConfig",void 0),this.width=(r=e==null?void 0:e.width)!==null&&r!==void 0?r:"",this.height=(n=e==null?void 0:e.height)!==null&&n!==void 0?n:"",this.widthConfig=(i=e==null?void 0:e.widthConfig)!==null&&i!==void 0?i:"fill",this.heightConfig=(u=e==null?void 0:e.heightConfig)!==null&&u!==void 0?u:"fill"};function AE(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bE(t,e,r){return e=Zr(e),BE(t,Eu()?Reflect.construct(e,r||[],Zr(t).constructor):e.apply(t,r))}function yu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xn(t,e,r){return Eu()?xn=Reflect.construct:xn=function(i,u,o){var a=[null];a.push.apply(a,u);var s=Function.bind.apply(i,a),c=new s;return o&&Xr(c,o.prototype),c},xn.apply(null,arguments)}function Wt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zr(t){return Zr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Zr(t)}function FE(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xr(t,e)}function _E(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function BE(t,e){return e&&(SE(e)==="object"||typeof e=="function")?e:AE(t)}function Xr(t,e){return Xr=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Xr(t,e)}function SE(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Du(t){var e=typeof Map=="function"?new Map:void 0;return Du=function(n){if(n===null||!_E(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return xn(n,arguments,Zr(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Xr(i,n)},Du(t)}function Eu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Eu=function(){return!!t})()}var wu=function t(e){yu(this,t),Wt(this,"isHide",{type:"boolean"})},ks=function(t){FE(e,t);function e(r){return yu(this,e),bE(this,e)}return e}(Du(Array)),zt=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";yu(this,t);var n,i;Wt(this,"isHide",void 0),Wt(this,"className",void 0),Wt(this,"style",void 0),Wt(this,"caption",void 0),Wt(this,"defaultState",void 0),this.isHide=(n=e==null?void 0:e.isHide)!==null&&n!==void 0?n:!1,this.style=new CE(e==null?void 0:e.style),this.caption=(i=e==null?void 0:e.caption)!==null&&i!==void 0?i:r};Wt(zt,"mode",void 0),Wt(zt,"Rules",wu),Wt(zt,"RuntimeRules",ks);function Nt(){return Nt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Nt.apply(this,arguments)}function OE(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Cu(t){return Cu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Cu(t)}function In(t,e){return In=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},In(t,e)}function ME(){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(t){return!1}}function Tn(t,e,r){return ME()?Tn=Reflect.construct:Tn=function(i,u,o){var a=[null];a.push.apply(a,u);var s=Function.bind.apply(i,a),c=new s;return o&&In(c,o.prototype),c},Tn.apply(null,arguments)}function xE(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Au(t){var e=typeof Map=="function"?new Map:void 0;return Au=function(n){if(n===null||!xE(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Tn(n,arguments,Cu(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),In(i,n)},Au(t)}var IE=/%[sdj%]/g,js=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(js=function(e,r){typeof console!="undefined"&&console.warn&&r.every(function(n){return typeof n=="string"})&&console.warn(e,r)});function bu(t){if(!t||!t.length)return null;var e={};return t.forEach(function(r){var n=r.field;e[n]=e[n]||[],e[n].push(r)}),e}function lt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=1,i=e[0],u=e.length;if(typeof i=="function")return i.apply(null,e.slice(1));if(typeof i=="string"){var o=String(i).replace(IE,function(a){if(a==="%%")return"%";if(n>=u)return a;switch(a){case"%s":return String(e[n++]);case"%d":return Number(e[n++]);case"%j":try{return JSON.stringify(e[n++])}catch(s){return"[Circular]"}break;default:return a}});return o}return i}function TE(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function Re(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||TE(e)&&typeof t=="string"&&!t)}function PE(t,e,r){var n=[],i=0,u=t.length;function o(a){n.push.apply(n,a),i++,i===u&&r(n)}t.forEach(function(a){e(a,o)})}function qs(t,e,r){var n=0,i=t.length;function u(o){if(o&&o.length){r(o);return}var a=n;n=n+1,a<i?e(t[a],u):r([])}u([])}function NE(t){var e=[];return Object.keys(t).forEach(function(r){e.push.apply(e,t[r])}),e}var Us=function(t){OE(e,t);function e(r,n){var i;return i=t.call(this,"Async Validation Error")||this,i.errors=r,i.fields=n,i}return e}(Au(Error));function $E(t,e,r,n){if(e.first){var i=new Promise(function(f,h){var g=function(v){return n(v),v.length?h(new Us(v,bu(v))):f()},y=NE(t);qs(y,r,g)});return i.catch(function(f){return f}),i}var u=e.firstFields||[];u===!0&&(u=Object.keys(t));var o=Object.keys(t),a=o.length,s=0,c=[],l=new Promise(function(f,h){var g=function(d){if(c.push.apply(c,d),s++,s===a)return n(c),c.length?h(new Us(c,bu(c))):f()};o.length||(n(c),f()),o.forEach(function(y){var d=t[y];u.indexOf(y)!==-1?qs(d,r,g):PE(d,r,g)})});return l.catch(function(f){return f}),l}function Vs(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function Ws(t,e){if(e){for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];typeof n=="object"&&typeof t[r]=="object"?t[r]=Nt(Nt({},t[r]),n):t[r]=n}}return t}function zs(t,e,r,n,i,u){t.required&&(!r.hasOwnProperty(t.field)||Re(e,u||t.type))&&n.push(lt(i.messages.required,t.fullField))}function RE(t,e,r,n,i){(/^\s+$/.test(e)||e==="")&&n.push(lt(i.messages.whitespace,t.fullField))}var Fu={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},Kr={integer:function(e){return Kr.number(e)&&parseInt(e,10)===e},float:function(e){return Kr.number(e)&&!Kr.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(r){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Kr.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(Fu.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(Fu.url)},hex:function(e){return typeof e=="string"&&!!e.match(Fu.hex)}};function LE(t,e,r,n,i){if(t.required&&e===void 0){zs(t,e,r,n,i);return}var u=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=t.type;u.indexOf(o)>-1?Kr[o](e)||n.push(lt(i.messages.types[o],t.fullField,t.type)):o&&typeof e!==t.type&&n.push(lt(i.messages.types[o],t.fullField,t.type))}function kE(t,e,r,n,i){var u=typeof t.len=="number",o=typeof t.min=="number",a=typeof t.max=="number",s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,l=null,f=typeof e=="number",h=typeof e=="string",g=Array.isArray(e);if(f?l="number":h?l="string":g&&(l="array"),!l)return!1;g&&(c=e.length),h&&(c=e.replace(s,"_").length),u?c!==t.len&&n.push(lt(i.messages[l].len,t.fullField,t.len)):o&&!a&&c<t.min?n.push(lt(i.messages[l].min,t.fullField,t.min)):a&&!o&&c>t.max?n.push(lt(i.messages[l].max,t.fullField,t.max)):o&&a&&(c<t.min||c>t.max)&&n.push(lt(i.messages[l].range,t.fullField,t.min,t.max))}var br="enum";function jE(t,e,r,n,i){t[br]=Array.isArray(t[br])?t[br]:[],t[br].indexOf(e)===-1&&n.push(lt(i.messages[br],t.fullField,t[br].join(", ")))}function qE(t,e,r,n,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||n.push(lt(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var u=new RegExp(t.pattern);u.test(e)||n.push(lt(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var fe={required:zs,whitespace:RE,type:LE,range:kE,enum:jE,pattern:qE};function UE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e,"string")&&!t.required)return r();fe.required(t,e,n,u,i,"string"),Re(e,"string")||(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i),fe.pattern(t,e,n,u,i),t.whitespace===!0&&fe.whitespace(t,e,n,u,i))}r(u)}function VE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe.type(t,e,n,u,i)}r(u)}function WE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(e===""&&(e=void 0),Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function zE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe.type(t,e,n,u,i)}r(u)}function GE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),Re(e)||fe.type(t,e,n,u,i)}r(u)}function HE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function QE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function JE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(e==null&&!t.required)return r();fe.required(t,e,n,u,i,"array"),e!=null&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function ZE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe.type(t,e,n,u,i)}r(u)}var XE="enum";function KE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe[XE](t,e,n,u,i)}r(u)}function YE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e,"string")&&!t.required)return r();fe.required(t,e,n,u,i),Re(e,"string")||fe.pattern(t,e,n,u,i)}r(u)}function ew(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e,"date")&&!t.required)return r();if(fe.required(t,e,n,u,i),!Re(e,"date")){var a;e instanceof Date?a=e:a=new Date(e),fe.type(t,a,n,u,i),a&&fe.range(t,a.getTime(),n,u,i)}}r(u)}function tw(t,e,r,n,i){var u=[],o=Array.isArray(e)?"array":typeof e;fe.required(t,e,n,u,i,o),r(u)}function _u(t,e,r,n,i){var u=t.type,o=[],a=t.required||!t.required&&n.hasOwnProperty(t.field);if(a){if(Re(e,u)&&!t.required)return r();fe.required(t,e,n,o,i,u),Re(e,u)||fe.type(t,e,n,o,i)}r(o)}function rw(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i)}r(u)}var Yr={string:UE,method:VE,number:WE,boolean:zE,regexp:GE,integer:HE,float:QE,array:JE,object:ZE,enum:KE,pattern:YE,date:ew,url:_u,hex:_u,email:_u,required:tw,any:rw};function Bu(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Su=Bu();function Yt(t){this.rules=null,this._messages=Su,this.define(t)}Yt.prototype={messages:function(e){return e&&(this._messages=Ws(Bu(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var r,n;for(r in e)e.hasOwnProperty(r)&&(n=e[r],this.rules[r]=Array.isArray(n)?n:[n])},validate:function(e,r,n){var i=this;r===void 0&&(r={}),n===void 0&&(n=function(){});var u=e,o=r,a=n;if(typeof o=="function"&&(a=o,o={}),!this.rules||Object.keys(this.rules).length===0)return a&&a(),Promise.resolve();function s(d){var v,p=[],m={};function D(E){if(Array.isArray(E)){var w;p=(w=p).concat.apply(w,E)}else p.push(E)}for(v=0;v<d.length;v++)D(d[v]);p.length?m=bu(p):(p=null,m=null),a(p,m)}if(o.messages){var c=this.messages();c===Su&&(c=Bu()),Ws(c,o.messages),o.messages=c}else o.messages=this.messages();var l,f,h={},g=o.keys||Object.keys(this.rules);g.forEach(function(d){l=i.rules[d],f=u[d],l.forEach(function(v){var p=v;typeof p.transform=="function"&&(u===e&&(u=Nt({},u)),f=u[d]=p.transform(f)),typeof p=="function"?p={validator:p}:p=Nt({},p),p.validator=i.getValidationMethod(p),p.field=d,p.fullField=p.fullField||d,p.type=i.getType(p),p.validator&&(h[d]=h[d]||[],h[d].push({rule:p,value:f,source:u,field:d}))})});var y={};return $E(h,o,function(d,v){var p=d.rule,m=(p.type==="object"||p.type==="array")&&(typeof p.fields=="object"||typeof p.defaultField=="object");m=m&&(p.required||!p.required&&d.value),p.field=d.field;function D(_,O){return Nt(Nt({},O),{},{fullField:p.fullField+"."+_})}function E(_){_===void 0&&(_=[]);var O=_;if(Array.isArray(O)||(O=[O]),!o.suppressWarning&&O.length&&Yt.warning("async-validator:",O),O.length&&p.message!==void 0&&(O=[].concat(p.message)),O=O.map(Vs(p)),o.first&&O.length)return y[p.field]=1,v(O);if(!m)v(O);else{if(p.required&&!d.value)return p.message!==void 0?O=[].concat(p.message).map(Vs(p)):o.error&&(O=[o.error(p,lt(o.messages.required,p.field))]),v(O);var C={};if(p.defaultField)for(var A in d.value)d.value.hasOwnProperty(A)&&(C[A]=p.defaultField);C=Nt(Nt({},C),d.rule.fields);for(var B in C)if(C.hasOwnProperty(B)){var F=Array.isArray(C[B])?C[B]:[C[B]];C[B]=F.map(D.bind(null,B))}var $=new Yt(C);$.messages(o.messages),d.rule.options&&(d.rule.options.messages=o.messages,d.rule.options.error=o.error),$.validate(d.value,d.rule.options||o,function(X){var K=[];O&&O.length&&K.push.apply(K,O),X&&X.length&&K.push.apply(K,X),v(K.length?K:null)})}}var w;p.asyncValidator?w=p.asyncValidator(p,d.value,E,d.source,o):p.validator&&(w=p.validator(p,d.value,E,d.source,o),w===!0?E():w===!1?E(p.message||p.field+" fails"):w instanceof Array?E(w):w instanceof Error&&E(w.message)),w&&w.then&&w.then(function(){return E()},function(_){return E(_)})},function(d){s(d)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!Yr.hasOwnProperty(e.type))throw new Error(lt("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var r=Object.keys(e),n=r.indexOf("message");return n!==-1&&r.splice(n,1),r.length===1&&r[0]==="required"?Yr.required:Yr[this.getType(e)]||!1}},Yt.register=function(e,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Yr[e]=r},Yt.warning=js,Yt.messages=Su,Yt.validators=Yr;var nw={required:oe("CMD.aad41751712156995"),maxLength:oe("CMD.890d1751712141808"),minLength:oe("CMD.bb9b1751712143625"),string:{range:oe("CMD.f7131751712147855")}};function iw(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Yt(t);return r.messages(Object.assign(nw,e)),r}var uw=new Os;function Ou(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ow(t){if(Array.isArray(t))return t}function sw(t){if(Array.isArray(t))return Ou(t)}function Gs(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function Hs(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){Gs(u,n,i,o,a,"next",s)}function a(s){Gs(u,n,i,o,a,"throw",s)}o(void 0)})}}function aw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function lw(t,e,r){return e&&Qs(t.prototype,e),r&&Qs(t,r),t}function me(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Js(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function Zs(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function cw(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fw(){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 Xs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){me(t,i,r[i])})}return t}function hw(t){return ow(t)||Zs(t)||Ks(t)||cw()}function Mu(t){return sw(t)||Zs(t)||Ks(t)||fw()}function dw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Ks(t,e){if(!!t){if(typeof t=="string")return Ou(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ou(t,e)}}function Ys(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var ze=function(){function e(r){var n=this;aw(this,e);var i,u,o,a;me(this,"id",void 0),me(this,"name",void 0),me(this,"icon",void 0),me(this,"type",void 0),me(this,"controlType",void 0),me(this,"props",void 0),me(this,"setting",[]),me(this,"fieldType",void 0),me(this,"eventKeys",[]),me(this,"customEvents",[]),me(this,"parent",null),me(this,"slots",void 0),me(this,"slotPosition",void 0),me(this,"updateSetting",ta),me(this,"removeSetting",ea),this._callControlHooks("preInstance",r);var s=Js(this,e)?this.constructor:void 0,c=s.controlName,l=s.controlIcon,f=s.controlType,h=s.controlFieldType,g=s.controlEventKeys,y=s.controlCustomEvents,d=s.name,v=s.setting,p=s.slots,m=s.slotPosition;c&&l&&f||Ds("The ".concat(d," controlName,controlIcon,controlType is not define")),this.id=(i=r==null?void 0:r.id)!==null&&i!==void 0?i:_n(10),this.name=c,this.icon=l,this.type=(u=r==null?void 0:r.type)!==null&&u!==void 0?u:f,this.props=new zt(r==null?void 0:r.props,(Js(this,e)?this.constructor:void 0).controlName),this.controlType=(o=r==null?void 0:r.controlType)!==null&&o!==void 0?o:"base",this.setting=we(v),this.fieldType=(a=r==null?void 0:r.fieldType)!==null&&a!==void 0?a:h,this.eventKeys=we(g),this.customEvents=we(y),this.slots=we(p),this.slotPosition=we(m),Promise.resolve().then(function(){n._callControlHooks("postInstance",r)})}return lw(e,[{key:"rules",get:function(){var n=this.props.constructor.Rules;return n?new n(this.props):{}}},{key:"_callControlHooks",value:function(){for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];var o,a=hw(i),s=a[0],c=a.slice(1);return(o=uw).emit.apply(o,[s,this].concat(Mu(c)))}},{key:"preUpdate",value:function(n,i){this._callControlHooks("preUpdateProps",n,i)}},{key:"postUpdate",value:function(n,i){this._callControlHooks("postUpdateProps",n,i)}},{key:"updateProps",value:function(n,i){this.preUpdate(n,i),uu(this.props,n,i),this.postUpdate(n,i)}},{key:"preValidate",value:function(){return Hs(function(){var n,i,u;return Ys(this,function(o){switch(o.label){case 0:return n=Xs({},this.rules),[4,this._callControlHooks("preValidate",n)];case 1:return i=o.sent(),u=i[i.length-1],[2,u===!1?void 0:u]}})}).call(this)}},{key:"validate",value:function(n,i){return Hs(function(){var u,o,a,s;return Ys(this,function(c){switch(c.label){case 0:return[4,this.preValidate()];case 1:u=c.sent(),o=u!==void 0?u:Xs({},this.rules),Array.isArray(i)&&i.forEach(function(l){o.hasOwnProperty(l)&&delete o[l]}),a=iw(o,n),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,a.validate(this.props)];case 3:return c.sent(),[2,!0];case 4:throw s=c.sent(),s.control||(s.control=this),s;case 5:return[2]}})}).call(this)}},{key:"toDataBindModel",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.fieldType,u=this.id,o=this.type,a=this.props,s=a.dataBind,c=a.datasourceBind,l=a.optionConfig,f=a.caption,h=a.required,g=a.maxLength,y=a.options,d=a.encrypted,v=a.encryptedMode;if(!(!i&&!s&&!c)){var p={parentId:n,fieldType:i,controlId:u,caption:f,type:o,props:{}};switch(s&&(p.dataBind=s),l){case"datasource":case void 0:c&&(p.datasourceBind=c);break;case"custom":p.props.options=y;break}return h!==void 0&&(p.required=h),g!==void 0&&(p.maxLength=g),d!==void 0&&(p.encrypted=d),v!==void 0&&(p.encryptedMode=v),p}}},{key:"preToSchema",value:function(){this._callControlHooks("preToSchema",this)}},{key:"toSchema",value:function(){return this.preToSchema(),{id:this.id,type:this.type,props:we(this.props),fieldType:this.fieldType,controlType:this.controlType}}}],[{key:"updateBasicControl",value:function(n,i){if(n==="setting"){if(i.add){var u;(u=this.setting).push.apply(u,Mu(i.add))}i.remove&&this.removeSettingItem(i.remove),i.update}}}]),e}();me(ze,"mode","Designer"),me(ze,"slots",void 0),me(ze,"slotPosition",void 0),me(ze,"controlName",oe("CMD.7baf1751712168384")),me(ze,"controlIcon","icon"),me(ze,"controlType","control"),me(ze,"controlFieldType",void 0),me(ze,"controlEventKeys",[]),me(ze,"controlCustomEvents",[]),me(ze,"setting",[]),me(ze,"__is_control__",!0),me(ze,"removeSettingItem",ea),me(ze,"updateSettingItem",ta);function ea(t){var e=this,r=Array.isArray(t)?t:[t];r.forEach(function(n){var i,u=typeof n!="string",o=(i=e.setting)===null||i===void 0?void 0:i.findIndex(function(c){return c.key===(u?n.key:n)});if(o!==-1){var a,s;u?e.setting[o].showItems=(a=e.setting[o].showItems)===null||a===void 0?void 0:a.filter(function(c){return!n.hideItems.includes(c)}):e.setting.splice(o,1),u&&!(!((s=e.setting[o].showItems)===null||s===void 0)&&s.length)&&e.setting.splice(o,1)}})}function ta(t,e){var r=this,n=typeof t=="string"?[t]:t;n.forEach(function(i){var u=r.setting.find(function(c){return c.key===i});if(u){if(typeof e=="boolean")u.visible=e;else if((typeof e=="undefined"?"undefined":dw(e))==="object"){var o,a=(o=e.type)!==null&&o!==void 0?o:"replace";if(a==="replace")u.showItems=e.showItems;else{var s;(s=u.showItems).push.apply(s,Mu(e.showItems))}}}})}function pw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ra(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function gw(t,e,r){return e&&ra(t.prototype,e),r&&ra(t,r),t}function ct(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vw(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var en=function(){function e(r){pw(this,e);var n,i,u,o,a;ct(this,"id",void 0),ct(this,"type",void 0),ct(this,"controlType",void 0),ct(this,"props",void 0),ct(this,"fieldType",void 0),ct(this,"customEvents",[]),ct(this,"pageStatus",void 0),ct(this,"parent",null);var s=vw(this,e)?this.constructor:void 0,c=s.controlType,l=s.controlFieldType,f=s.name,h=s.controlCustomEvents;c||Ds("The ".concat(f," controlType is not define")),this.id=(n=r==null?void 0:r.id)!==null&&n!==void 0?n:_n(10),this.type=(i=r==null?void 0:r.type)!==null&&i!==void 0?i:c,this.props=new zt(r==null?void 0:r.props),this.customEvents=h,this.controlType=(u=r==null?void 0:r.controlType)!==null&&u!==void 0?u:"base",this.fieldType=(o=r==null?void 0:r.fieldType)!==null&&o!==void 0?o:l,this.pageStatus=(a=r==null?void 0:r.pageStatus)!==null&&a!==void 0?a:wE.UNKNOWN}return gw(e,[{key:"rules",get:function(){var n=this.props.constructor.RuntimeRules;if(n){var i=new n(this.props);return Array.from(i)}return[]}}]),e}();ct(en,"mode","Runtime"),ct(en,"controlType","control"),ct(en,"controlFieldType",void 0),ct(en,"__is_control__",!0),ct(en,"controlCustomEvents",[]);function ft(t){return(t==null?void 0:t.dataCode)!==void 0&&(t==null?void 0:t.fieldCode)!==void 0}function mw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xu(t,e,r){return e=Pn(e),yw(t,na()?Reflect.construct(e,r||[],Pn(t).constructor):e.apply(t,r))}function Iu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Se(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pn(t){return Pn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Pn(t)}function Tu(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Pu(t,e)}function yw(t,e){return e&&(Dw(e)==="object"||typeof e=="function")?e:mw(t)}function Pu(t,e){return Pu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Pu(t,e)}function Dw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function na(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(na=function(){return!!t})()}var Ew=function(t){Tu(e,t);function e(r){Iu(this,e);var n;n=xu(this,e,[r]),Se(n,"dataBind",{}),Se(n,"caption",{type:"string",required:!0,message:oe("CMD.pleaseEnterCaption",null,"\u8BF7\u8F93\u5165\u6807\u9898")}),Se(n,"isHideCaption",{type:"boolean"}),Se(n,"labelPosition",{type:"enum",enum:["top","left"]}),Se(n,"defaultState",{type:"enum",enum:["default","readonly"]}),Se(n,"required",{type:"boolean"}),Se(n,"captionTip",{type:"string",required:!1,message:oe("CMD.pleaseEnterCaptionTip",null,"\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED")});var i={fieldCode:{type:"string",required:!0,message:oe("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")},dataCode:{type:"string",required:!0,message:oe("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")}};if(ft(r.dataBind))n.dataBind={type:"object",required:!0,fields:we(i),message:oe("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")};else{var u={type:"object",required:!0,fields:{},message:oe("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")};Object.keys(r.dataBind).forEach(function(o){u.fields[o]={type:"object",required:!0,fields:we(i),message:oe("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")}}),n.dataBind=u}return r.isShowCaptionTip&&(n.captionTip.required=!0),n}return e}(wu),ww=function(t){Tu(e,t);function e(r){Iu(this,e);var n;n=xu(this,e,[r]);var i=r.isHide?!1:r.required;return i&&n.push({type:"string",required:i,message:r.requiredMessage!==""?r.requiredMessage:oe("CMD.runtimeRequired",{caption:r.caption},"{caption}\u5FC5\u586B")}),n}return e}(ks),Nu=function(t){Tu(e,t);function e(r){Iu(this,e);var n,i,u,o,a,s,c,l,f,h,g,y,d,v,p,m;return n=xu(this,e,[r]),Se(n,"caption",void 0),Se(n,"captionSize",void 0),Se(n,"captionColor",void 0),Se(n,"isCaptionItalic",void 0),Se(n,"captionFontWeight",void 0),Se(n,"className",void 0),Se(n,"isHideCaption",void 0),Se(n,"isShowCaptionTip",void 0),Se(n,"captionTip",void 0),Se(n,"labelPosition",void 0),Se(n,"dataBind",void 0),Se(n,"defaultValue",void 0),Se(n,"placeholder",void 0),Se(n,"defaultState",void 0),Se(n,"required",void 0),Se(n,"requiredMessage",void 0),n.caption=(i=r==null?void 0:r.caption)!==null&&i!==void 0?i:"",n.captionSize=(u=r==null?void 0:r.captionSize)!==null&&u!==void 0?u:"",n.captionColor=(o=r==null?void 0:r.captionColor)!==null&&o!==void 0?o:"",n.isCaptionItalic=(a=r==null?void 0:r.isCaptionItalic)!==null&&a!==void 0?a:!1,n.captionFontWeight=(s=r==null?void 0:r.captionFontWeight)!==null&&s!==void 0?s:"normal",n.className=(c=r==null?void 0:r.className)!==null&&c!==void 0?c:[],n.isHideCaption=(l=r==null?void 0:r.isHideCaption)!==null&&l!==void 0?l:!1,n.isShowCaptionTip=(f=r==null?void 0:r.isShowCaptionTip)!==null&&f!==void 0?f:!1,n.captionTip=(h=r==null?void 0:r.captionTip)!==null&&h!==void 0?h:"",n.defaultState=(g=r==null?void 0:r.defaultState)!==null&&g!==void 0?g:"default",n.labelPosition=(y=r==null?void 0:r.labelPosition)!==null&&y!==void 0?y:"top",n.placeholder=(d=r==null?void 0:r.placeholder)!==null&&d!==void 0?d:"",n.required=(v=r==null?void 0:r.required)!==null&&v!==void 0?v:!1,n.requiredMessage=(p=r==null?void 0:r.requiredMessage)!==null&&p!==void 0?p:"",n.dataBind=new du(r==null?void 0:r.dataBind),n.defaultValue=(m=r==null?void 0:r.defaultValue)!==null&&m!==void 0?m:"",n}return e}(zt);Se(Nu,"Rules",Ew),Se(Nu,"RuntimeRules",ww);function Cw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Aw(t,e,r){return e=$n(e),_w(t,ia()?Reflect.construct(e,r||[],$n(t).constructor):e.apply(t,r))}function bw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $n(t){return $n=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},$n(t)}function Fw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$u(t,e)}function _w(t,e){return e&&(Bw(e)==="object"||typeof e=="function")?e:Cw(t)}function $u(t,e){return $u=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},$u(t,e)}function Bw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function ia(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ia=function(){return!!t})()}var ua=function(t){Fw(e,t);function e(r){bw(this,e);var n;return n=Aw(this,e,[r]),Nn(n,"controlType","form"),Nn(n,"props",void 0),n.props=new Nu(r==null?void 0:r.props),n}return e}(ze);Nn(ua,"controlEventKeys",["on_change","on_focus","on_blur"]),Nn(ua,"controlCustomAttributes",void 0);function Sw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ow(t,e,r){return e=Rn(e),Iw(t,oa()?Reflect.construct(e,r||[],Rn(t).constructor):e.apply(t,r))}function Mw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rn(t){return Rn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Rn(t)}function xw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ru(t,e)}function Iw(t,e){return e&&(Tw(e)==="object"||typeof e=="function")?e:Sw(t)}function Ru(t,e){return Ru=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ru(t,e)}function Tw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function oa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(oa=function(){return!!t})()}var Pw=function(t){xw(e,t);function e(r){return Mw(this,e),Ow(this,e,[r])}return e}(zt);function Lu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Nw(t){if(Array.isArray(t))return Lu(t)}function $w(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sa(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function Rw(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){sa(u,n,i,o,a,"next",s)}function a(s){sa(u,n,i,o,a,"throw",s)}o(void 0)})}}function Lw(t,e,r){return e=tr(e),Qw(t,ca()?Reflect.construct(e,r||[],tr(t).constructor):e.apply(t,r))}function kw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aa(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function jw(t,e,r){return e&&aa(t.prototype,e),r&&aa(t,r),t}function er(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fr(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?Fr=Reflect.get:Fr=function(i,u,o){var a=Jw(i,u);if(!!a){var s=Object.getOwnPropertyDescriptor(a,u);return s.get?s.get.call(o||i):s.value}},Fr(t,e,r||t)}function tr(t){return tr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},tr(t)}function qw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ku(t,e)}function Uw(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function Vw(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ww(){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 zw(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){er(t,i,r[i])})}return t}function Gw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Hw(t,e){return e=e!=null?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Gw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function Qw(t,e){return e&&(Zw(e)==="object"||typeof e=="function")?e:$w(t)}function ku(t,e){return ku=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ku(t,e)}function Jw(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=tr(t),t!==null););return t}function la(t){return Nw(t)||Vw(t)||Xw(t)||Ww()}function Zw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Xw(t,e){if(!!t){if(typeof t=="string")return Lu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lu(t,e)}}function ca(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ca=function(){return!!t})()}function Kw(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var Yw=1e4,fa=function(e){qw(r,e);function r(n){kw(this,r);var i;i=Lw(this,r,[n]),er(i,"controlType","layout"),er(i,"children",void 0),er(i,"excludes",void 0),er(i,"childrenMaxLength",void 0),er(i,"props",void 0);var u=Uw(this,r)?this.constructor:void 0,o=u.excludes,a=u.childrenMaxLength;return i.props=new Pw(n==null?void 0:n.props),hu(i,"children",n==null?void 0:n.children,void 0,"Designer"),i.excludes=we(o),i.childrenMaxLength=a,i}return jw(r,[{key:"judgeExcludesChildren",value:function(i){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(i)}},{key:"judgeJoinChildren",value:function(i){var u=this.judgeExcludesChildren(i);return u&&this.childrenMaxLength>this.children.length}},{key:"validate",value:function(i,u){var o=this,a=this,s=function(){return Fr(tr(r.prototype),"validate",o)};return Rw(function(){return Kw(this,function(c){switch(c.label){case 0:return[4,s().call(a,i,u)];case 1:return c.sent(),[4,Promise.all(this.children.map(function(l){return l.validate(i,u)}))];case 2:return c.sent(),[2,!0]}})}).call(this)}},{key:"toDataBindModel",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=Fr(tr(r.prototype),"toDataBindModel",this).call(this),o=u?[u]:[];return this.children.reduce(function(a,s){var c=s.toDataBindModel(i);if(Array.isArray(c)){var l=c.filter(function(f){return!!f});return la(a).concat(la(l))}return c&&a.push(c),a},o)}},{key:"toSchema",value:function(){var i=Fr(tr(r.prototype),"toSchema",this).call(this),u=this.children.map(function(o){var a=o.toSchema();return a});return Hw(zw({},i),{children:u})}}]),r}(ze);er(fa,"excludes",!1),er(fa,"childrenMaxLength",Yw);function eC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tC(t,e,r){return e=Ln(e),iC(t,ha()?Reflect.construct(e,r||[],Ln(t).constructor):e.apply(t,r))}function rC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _r(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ln(t){return Ln=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ln(t)}function nC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ju(t,e)}function iC(t,e){return e&&(uC(e)==="object"||typeof e=="function")?e:eC(t)}function ju(t,e){return ju=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ju(t,e)}function uC(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function ha(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ha=function(){return!!t})()}var oC=function(t){nC(e,t);function e(r,n,i){rC(this,e);var u,o,a,s,c;return u=tC(this,e,[n]),_r(u,"headers",void 0),_r(u,"footers",void 0),_r(u,"pageIndex",void 0),_r(u,"pageSize",void 0),_r(u,"pageSizeOptions",void 0),_r(u,"totalCount",void 0),hu(u,"headers",n==null?void 0:n.headers,r,i),hu(u,"footers",n==null?void 0:n.footers,r),u.pageIndex=(o=n==null?void 0:n.pageIndex)!==null&&o!==void 0?o:1,u.pageSize=(a=n==null?void 0:n.pageSize)!==null&&a!==void 0?a:20,u.pageSizeOptions=(s=n==null?void 0:n.pageSizeOptions)!==null&&s!==void 0?s:[20],u.totalCount=(c=n==null?void 0:n.totalCount)!==null&&c!==void 0?c:0,u}return e}(zt);function qu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function sC(t){if(Array.isArray(t))return qu(t)}function aC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function da(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function lC(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){da(u,n,i,o,a,"next",s)}function a(s){da(u,n,i,o,a,"throw",s)}o(void 0)})}}function cC(t,e,r){return e=rr(e),mC(t,ya()?Reflect.construct(e,r||[],rr(t).constructor):e.apply(t,r))}function fC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pa(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function hC(t,e,r){return e&&pa(t.prototype,e),r&&pa(t,r),t}function kn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Br(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?Br=Reflect.get:Br=function(i,u,o){var a=yC(i,u);if(!!a){var s=Object.getOwnPropertyDescriptor(a,u);return s.get?s.get.call(o||i):s.value}},Br(t,e,r||t)}function rr(t){return rr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},rr(t)}function dC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Uu(t,e)}function pC(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gC(){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 ga(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){kn(t,i,r[i])})}return t}function vC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function va(t,e){return e=e!=null?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):vC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function mC(t,e){return e&&(DC(e)==="object"||typeof e=="function")?e:aC(t)}function Uu(t,e){return Uu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Uu(t,e)}function yC(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=rr(t),t!==null););return t}function ma(t){return sC(t)||pC(t)||EC(t)||gC()}function DC(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function EC(t,e){if(!!t){if(typeof t=="string")return qu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qu(t,e)}}function ya(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ya=function(){return!!t})()}function wC(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var CC=function(t){dC(e,t);function e(r){fC(this,e);var n;return n=cC(this,e,[r]),kn(n,"controlType","list"),kn(n,"props",void 0),n.props=new oC(n,r==null?void 0:r.props,"Designer"),n}return hC(e,[{key:"validate",value:function(n,i){var u=this,o=this,a=function(){return Br(rr(e.prototype),"validate",u)};return lC(function(){return wC(this,function(s){switch(s.label){case 0:return[4,a().call(o,n)];case 1:return s.sent(),[4,Promise.all(this.props.headers.map(function(c){return c.validate(n,i)}))];case 2:return s.sent(),[2,!0]}})}).call(this)}},{key:"toDataBindModel",value:function(){var n=Br(rr(e.prototype),"toDataBindModel",this).call(this),i=n?[n]:[],u=this.id;return this.props.headers.reduce(function(o,a){var s=a.toDataBindModel(u);if(Array.isArray(s)){var c=s.filter(function(l){return!!l});return ma(o).concat(ma(c))}return s&&o.push(s),o},i)}},{key:"toSchema",value:function(){var n=Br(rr(e.prototype),"toSchema",this).call(this),i=this.props.headers.map(function(u){return u.toSchema()});return va(ga({},n),{props:va(ga({},this.props),{headers:i})})}}]),e}(ze);kn(CC,"controlFieldType",qe.LIST);function AC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Da(t,e,r){return e=jn(e),bC(t,Ca()?Reflect.construct(e,r||[],jn(t).constructor):e.apply(t,r))}function Ea(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jn(t){return jn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},jn(t)}function wa(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vu(t,e)}function bC(t,e){return e&&(FC(e)==="object"||typeof e=="function")?e:AC(t)}function Vu(t,e){return Vu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Vu(t,e)}function FC(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Ca(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ca=function(){return!!t})()}var _C=function(t){wa(e,t);function e(r){Ea(this,e);var n;return n=Da(this,e,[r]),rt(n,"caption",{type:"string",required:!0,message:oe("CMD.pleaseEnterCaption",null,"\u8BF7\u8F93\u5165\u6807\u9898")}),rt(n,"width",{type:"number",required:!1,message:oe("CMD.pleaseEnterColumnWidth",null,"\u8BF7\u8F93\u5165\u5217\u5BBD")}),n.width.required=r.widthType==="px",n}return e}(wu),BC=function(t){wa(e,t);function e(r){Ea(this,e);var n,i,u,o,a,s;return n=Da(this,e,[r]),rt(n,"widthType",void 0),rt(n,"width",void 0),rt(n,"caption",void 0),rt(n,"dataBind",void 0),rt(n,"autoWidth",void 0),rt(n,"fixed",void 0),rt(n,"sort",void 0),rt(n,"align",void 0),rt(n,"colSpan",void 0),rt(n,"autoHeight",void 0),rt(n,"children",void 0),n.width=(i=r==null?void 0:r.width)!==null&&i!==void 0?i:150,n.widthType=(r==null?void 0:r.widthType)||"auto",n.caption=(u=r==null?void 0:r.caption)!==null&&u!==void 0?u:"",n.fixed=(o=r==null?void 0:r.fixed)!==null&&o!==void 0?o:"none",n.autoWidth=new EE(r==null?void 0:r.autoWidth),n.dataBind=new du(r==null?void 0:r.dataBind),n.sort=(a=r==null?void 0:r.sort)!==null&&a!==void 0?a:!0,n.align=r==null?void 0:r.align,n.colSpan=r==null?void 0:r.colSpan,n.autoHeight=(s=r==null?void 0:r.autoHeight)!==null&&s!==void 0?s:!1,n}return e}(zt);rt(BC,"Rules",_C);function qn(t){return t.controlType===de.LAYOUT||t.controlType===de.WRAP||t.controlType===de.LIST||t.controlType===de.SEARCH||t.controlType===de.COLUMN&&t.type!==Te.OPERATION_COLUMN}function dr(t,e){Array.isArray(t)&&t.map(r=>{r.controlType===de.LIST?e(r,[]):qn(r)?dr(r==null?void 0:r.children,e):r.controlType===de.FORM&&e(r)})}function pr(t,e){Array.isArray(t)&&t.map(r=>{r.type===Te.DATA_VIEW||r.type===Te.SIMPLE_SEARCH?e(r):qn(r)&&pr(r==null?void 0:r.children,e)})}let Aa=0;function tn(t=""){const e=Date.now(),r=Math.floor(Math.random()*1e9);return Aa++,t+"_"+r+Aa+String(e)}class Ke extends Jr{constructor(e){super("Runtime"),this._flatInstances=[],this._instanceMap={},this._controlParentIdMap={};const{schema:r}=e;this._schema=r,this._instance=this.createControl(r,e.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const e=[],r={},n={};return Wu(this._instance,"",(i,u)=>{var o;u&&(n[i.id]=u),r[i.id]||(r[i.id]=[]),!(i.type==="subtable-column"&&r[i.id].length>0)&&(e.push(i),!(((o=i.parent)==null?void 0:o.type)===Te.SUBTABLE_COLUMN&&i.parent.parent===void 0)&&r[i.id].push(i))}),this._flatInstances=e,this._instanceMap=r,this._controlParentIdMap=n,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get allRules(){let e={},r={},n={};return pr(this._instance,i=>{let u=Ke.staticGetRules(i.type,i.props);r[i.id]=we(u[0]),e[i.id]=we(u[0]),n[i.id]=we(u[0]),dr(i.children,o=>{(o.controlType===de.FORM||o.controlType===de.LIST)&&(ba(r[i.id].fields,o,!0),Ba(e[i.id].fields,o,!0),Fa(n[i.id].fields,o,!0))})}),{rules:this.rules,antdRules:this.antdRules,fieldCodeRules:this.fieldCodeRules,defaultAntdRules:e,defaultRule:r,defaultFieldRules:n}}get rules(){let e={};return pr(this._instance,r=>{let n=Ke.staticGetRules(r.type,r.props);e[r.id]=n[0],dr(r.children,i=>{(i.controlType===de.FORM||i.controlType===de.LIST)&&ba(e[r.id].fields,i)})}),e}get fieldCodeRules(){let e={};return pr(this._instance,r=>{let n=Ke.staticGetRules(r.type,r.props);e[r.id]=n[0],dr(r.children,i=>{(i.controlType===de.FORM||i.controlType===de.LIST)&&Fa(e[r.id].fields,i)})}),e}get antdRules(){let e={};return pr(this._instance,r=>{let n=Ke.staticGetRules(r.type,r.props);e[r.id]=n[0],dr(r.children,i=>{(i.controlType===de.FORM||i.controlType===de.LIST)&&Ba(e[r.id].fields,i)})}),e}}function Wu(t,e,r){(Array.isArray(t)?t:[t]).map(i=>{if(r(i,e),qn(i)){const u=i;u.children||(u.children=[]),Wu(u.children,u.id,r)}SC(i,"headers")&&Wu(i.props.headers,i.id,r)})}function SC(t,e){return e in t.props&&fr(t.props[e])}function Un(t){return t.props.isHide?!0:t.parent===null||t.parent===void 0?!1:Un(t.parent)}function ba(t,e,r=!1){if(Un(e))return;let n=Ke.staticGetRules(e.type,e.props);if(e.controlType===de.FORM)t[e.id]=n;else if(e.type===Te.SUBTABLE){t[e.id]=n;const i={type:"array",fields:{}};(r===!0?[{children:e.props.headers}]:e.children).forEach((u,o)=>{Vt(u.children,a=>{if(i.fields){i.fields[o]||(i.fields[o]={type:"object",required:!0,fields:{}});let s=Ke.staticGetRules(a.type,a.props);i.fields[o].fields[a.id]=s}})}),t[e.id].push(i)}}function Fa(t,e,r=!1){var i,u,o,a,s,c,l;if(Un(e))return;let n=Ke.staticGetRules(e.type,e.props);if(e.controlType===de.FORM)if(ft(e.props.dataBind))((i=e.props.dataBind)==null?void 0:i.fieldCode)!=""&&(t[(u=e.props.dataBind)==null?void 0:u.fieldCode]=n);else for(const f in e.props.dataBind)((o=e.props.dataBind[f])==null?void 0:o.fieldCode)!=""&&(t[(a=e.props.dataBind[f])==null?void 0:a.fieldCode]=((s=_a(n))==null?void 0:s[f])||[]);else if(e.type===Te.SUBTABLE){t[(c=e.props.datasourceBind)==null?void 0:c.dataCode]=n;const f={type:"array",fields:{}};(r===!0?[{children:e.props.headers}]:e.children).forEach((h,g)=>{Vt(h.children,y=>{var d,v,p,m;if(f.fields){f.fields[g]||(f.fields[g]={type:"object",required:!0,fields:{}});let D=Ke.staticGetRules(y.type,y.props);if(ft(y.props.dataBind))((p=y.props.dataBind)==null?void 0:p.fieldCode)!=""&&(f.fields[g].fields[(m=y.props.dataBind)==null?void 0:m.fieldCode]=D);else for(const E in y.props.dataBind)((d=y.props.dataBind[E])==null?void 0:d.fieldCode)!=""&&(f.fields[g].fields[y.props.dataBind[E].fieldCode]=((v=_a(D))==null?void 0:v[E])||[])}})}),t[(l=e.props.datasourceBind)==null?void 0:l.dataCode].push(f)}}function _a(t){let e={};return t.map(r=>{r.fields&&(e=r)}),e==null?void 0:e.fields}function Ba(t,e,r=!1){if(Un(e))return;let n=Ke.staticGetRules(e.type,e.props);e.controlType===de.FORM?t[e.id]=n:e.type===Te.SUBTABLE&&e.children.length&&(t[e.id]=[],(r===!0?[{children:e.props.headers}]:e.children).forEach(i=>{let u={};Vt(i.children,o=>{let a=Ke.staticGetRules(o.type,o.props);u[o.id]=a}),t[e.id].push(u)}))}class OC{constructor(e){const{state:r,emptyState:n,databindMapping:i,controlidMapping:u,defaultState:o,subtableHeadersControlIdMapping:a}=MC(e.instance);this.emptyState=n,this.state=r,this.dataBindMapping=i,this.controlIdMapping=u,this.defaultState=o,this.subtableHeadersControlIdMapping=a}setState(e,r,n){const i=this.controlIdMapping[e],u=we(r);i!==void 0?(i.children&&r.forEach(o=>{o.uid||Object.assign(o,{uid:"new:"+tn("uid")})}),this.state[i.dataView][e]=u):n!==void 0?Object.keys(this.controlIdMapping).map(o=>{const a=this.controlIdMapping[o].dataView,s=this.controlIdMapping[o].children;s!==void 0&&Object.keys(s).map(c=>{c===e&&this.state[a][o][n]&&(this.state[a][o][n][e]=u)})}):this.state[e]=u}getState(e,r){var i;if(this.state[e]!==void 0)return this.state[e];{const u=this.controlIdMapping[e];if(u!==void 0){const o=this.state[u.dataView][e];return r!==void 0&&Object.keys((i=u==null?void 0:u.children)!=null?i:{}).length>0?o[r]:o}else if(r!==void 0){let o;return Object.keys(this.controlIdMapping).map(a=>{const s=this.controlIdMapping[a].dataView,c=this.controlIdMapping[a].children;c!==void 0&&Object.keys(c).map(l=>{var f;l===e&&(o=(f=this.state[s][a][r])==null?void 0:f[e])})}),o}else{let o=[];return Object.keys(this.controlIdMapping).map(a=>{const s=this.controlIdMapping[a].dataView,c=this.controlIdMapping[a].children;c!==void 0&&Object.keys(c).map(l=>{l===e&&this.state[s][a].map(f=>{o.push(f[e])})})}),o}}}getEmptyState(e){if(this.emptyState[e]!==void 0)return this.emptyState[e];{const n=this.controlIdMapping[e];if(n!==void 0){const i=this.emptyState[n.dataView][e];return"children"in n&&Object.assign(i,{uid:"new:"+tn("uid")}),i}else{let i;return Object.keys(this.controlIdMapping).map(u=>{const o=this.controlIdMapping[u].dataView,a=this.controlIdMapping[u].children;a!==void 0&&Object.keys(a).map(s=>{s===e&&(i=this.emptyState[o][u][e])})}),i}}}getDataBind(e){let r=this.controlIdMapping[e];if(r)return r.dataBind;e:for(let n in this.controlIdMapping){const i=this.controlIdMapping[n];if(i.children){for(let u in i.children)if(u===e){r=i.children[u];break e}}}return r==null?void 0:r.dataBind}}function MC(t){let e={},r={},n={},i={},u={},o={};return pr(t,a=>{const s=a.id,c={},l={};dr([a],(f,h)=>{xC(c,l,f),IC(n,s,f),TC(i,s,f),PC(u,f)}),e[s]={},o[s]=c,r[s]=l}),{state:e,defaultState:o,subtableHeadersControlIdMapping:u,emptyState:r,databindMapping:n,controlidMapping:i}}function xC(t,e,r){var n,i;if(r.controlType===de.FORM)t[r.id]=we(r.props.defaultValue),e[r.id]=we(r.props.defaultValue);else{const u={};Vt(r.props.headers,o=>{u[o.id]=we(o.props.defaultValue)}),t[r.id]=(i=new Array((n=r.props.defaultRows)!=null?n:1).fill(0).map(()=>Ee({uid:"new:"+tn("uid")},we(u))))!=null?i:[],e[r.id]=u}}function IC(t,e,r){var n,i;if(r.controlType===de.FORM)ft(r.props.dataBind)?((i=(n=r.props)==null?void 0:n.dataBind)==null?void 0:i.dataCode)===void 0||(t[r.props.dataBind.dataCode]===void 0&&(t[r.props.dataBind.dataCode]={controlId:e,fields:[],dataViewId:e}),t[r.props.dataBind.dataCode].fields.push({fieldCode:r.props.dataBind.fieldCode,controlId:r.id,dataBind:r.props.dataBind,dataViewId:[e]})):Object.keys(r.props.dataBind).map(u=>{const o=r.props.dataBind,a=o[u].dataCode;a!==void 0&&(t[a]===void 0&&(t[a]={controlId:r.id,fields:[],dataViewId:e}),t[a].fields.push({fieldCode:o[u].fieldCode,controlId:r.id,dataBind:o,dataViewId:[e]}))});else{if(r.props.datasourceBind.dataCode===""){Ar(`datasourceBind.dataCode is empty! maybe in preview mode, control:${r.id} type:${r.type}`);return}t[r.props.datasourceBind.dataCode]={controlId:r.id,fields:[],dataViewId:e};const u=r.id;Vt(r.props.headers,o=>{ft(o.props.dataBind)?(t[o.props.dataBind.dataCode]===void 0&&(t[o.props.dataBind.dataCode]={controlId:e,fields:[],dataViewId:e}),t[o.props.dataBind.dataCode].fields.push({fieldCode:o.props.dataBind.fieldCode,controlId:o.id,dataBind:o.props.dataBind,dataViewId:[e,u]})):Object.keys(o.props.dataBind).map(a=>{const s=o.props.dataBind,c=s[a].dataCode;s[a].fieldCode!==""&&t[c].fields.push({fieldCode:s[a].fieldCode,controlId:o.id,dataBind:s,dataViewId:[e,u]})})})}}function TC(t,e,r){r.controlType===de.FORM?t[r.id]={dataBind:r.props.dataBind,options:[],dataView:e}:r.type===Te.SUBTABLE&&(t[r.id]={dataBind:new du({dataCode:r.props.datasourceBind.dataCode,fieldCode:""}),dataView:e,children:{},options:[]},Vt(r.props.headers,n=>{var i,u;Object.assign((u=(i=t[r.id])==null?void 0:i.children)!=null?u:{},{[n.id]:{dataBind:n.props.dataBind}})}))}function PC(t,e){if(e.type===Te.SUBTABLE){const r={};e.props.headers.map(n=>{n.children.map(i=>{Object.assign(r,{[i.id]:i})})}),Object.assign(t,{[e.id]:r})}}const Sa=["splice","push","shift","pop","unshift","reverse"],zu=Symbol("__engineProxy__"),Gu=Symbol("__engineTarget__"),Oa=Symbol("__engineArrayBeforeSetCallbackFlag__"),Ma=Symbol("__engineProxyThisKey__"),Ot={type:"",args:[],callback:xa};function xa(){}kC();function NC(t,e,r,n,i){if(Ot.type){Ot.callback=i.bind(null,t,n);return}const u=Number(e);if(u>t.length){Ut(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${Sa.join(",")} for array operations`);return}if(!(Number.isNaN(u)&&e!=="length"))if(e==="length"){const a=r,s=t.length;if(a>t.length){Ut("Do not directly modify the length of the array data, please add new rows");return}return a===t.length?void 0:()=>i.call(null,t,n,"splice",[a,s-a])}else return u===t.length?()=>i.call(null,t,n,"push",[r]):()=>i.call(null,t,n,"splice",[u,1,r])}function $C(t,e,r){return{__engineProxy__:!0,get(n,i,u){return i===zu?!0:i===Gu?n:Array.isArray(n)&&i===Oa?r:i===Ma?t:Reflect.get(n,i,u)},set(n,i,u,o){var h;let a=we(u);const s=n[i],c=t===""?i:t+"."+i;function l(g){if(typeof g=="object"&&g!==null)return g[zu]!==!0?Vn(g,e,r,c):Vn(g[Gu],e,r,c)}a=(h=l(a))!=null?h:a;let f;if(Array.isArray(n)){const g=NC(n,i,a,t,e);f=Reflect.set(n,i,a,o),g&&g()}else{try{let g=a;if(a=r.call(null,n,c,a,s),g!==a){const y=l(a);y!==void 0&&(a=y)}}catch(g){return Sn(`${c} set error ${g}`),!0}f=Reflect.set(n,i,a,o),e.call(null,n,c,a,s)}return f||!0}}}function Vn(t,e,r,n=""){if(Object.isFrozen(t))return t;for(let i in t){const u=n===""?i:n+"."+i,o=t[i];typeof o=="object"&&o!==null&&(t[i]=Vn(o,e,r,u))}return new Proxy(t,$C(n,e,r))}function Ia(t){const e=[];return t.forEach(r=>{e.push(r),(r.controlType==="layout"||r.controlType==="wrap")&&e.push(...Ia(r.children))}),e}function Hu(t,e,r){if(e==="")return;const n=e.split(".");if(n.length===0)return;const i=n[0],u=n.slice(1),o=r[i]?r[i][0]:void 0;return u.length===0?o:u.reduce((a,s)=>{var f,h;const c=Number(s);if(Number.isNaN(c)&&a){const g=a!=null&&a.children?Ia(a.children):void 0,y=g==null?void 0:g.find(d=>d.id===s);return y||(a.controlType===de.FORM?a:void 0)}else return(h=(f=a==null?void 0:a.children)==null?void 0:f[c])!=null?h:a},o)}function RC(t,e){return["push","unshift"].includes(t)?e:t==="splice"?e.slice(2):[]}function LC(t,e,r){if(["push","unshift"].includes(t))return r;if(t==="splice")return e.slice(0,2).concat(r)}function kC(){Sa.forEach(t=>{const e=Array.prototype[t];Array.prototype[t]=function(...r){var n;if(this[zu]){let i;const u=RC(t,r);if(u.length){const o=(n=this[Oa])==null?void 0:n.call(this,this[Gu],this[Ma],u),a=LC(t,r,o);Ot.type=t,Ot.args=a,i=e.apply(this,a)}else Ot.type=t,Ot.args=r,i=e.apply(this,r);return typeof Ot.callback=="function"&&Ot.callback(t,r,i),Ot.type="",Ot.args=[],Ot.callback=xa,i}else return e.apply(this,r)}})}class jC{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(e,r,...n){return Pt(this,null,function*(){const i=this.actionMap.get(e);if(!!i)try{return yield i.func.call(null,r,...n)}catch(u){return Sn(`${i.id} Exception during calling action: ${u}`),!1}})}addAction(e,r){this.actionMap.has(e)&&Ut("duplicated action key");const n=new qC(e,r);this.actionMap.set(e,n)}}class qC{constructor(e,r){this.id="",this.id=e,this.func=r}}class UC{constructor(e){this._dataStore=new Map,this.executer=e}add(e,r){this._dataStore.set(e,r)}get(e){let r=this._dataStore.get(e);return we(r)}remove(e){this._dataStore.delete(e)}getRemoteData(e){return Pt(this,null,function*(){return this.executer===void 0?(Sn("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(e)})}}class nr{}class rn extends nr{validate(e){return tt(e)}transform(e){if(e==null)return"";if(!St(e)&&!bs(e))return String(e);if(XD(e))return JSON.stringify(e);throw`${e} is not a string`}}class Qu extends nr{validate(e){return On(e)||e===""}transform(e){if(e==null)return"";const r=!St(e)&&!bs(e)?Number(e):void 0;if(!Number.isNaN(r)&&r!==void 0)return r;throw`${e} is not a number`}}class VC extends nr{validate(e){return KD(e)}transform(e){if(e==null)return[];function r(n){return n.map(i=>i?String(i):"")}if(fr(e))return r(e);if(tt(e)&&Fs(e))try{const n=JSON.parse(e);if(Array.isArray(n))return r(n)}catch(n){}return[String(e)]}}class WC extends nr{validate(e){return YD(e)}transform(e){if(e==null)return[];function r(i){return i.map(u=>!u&&u!==0?"":Number(u)).filter(u=>u===""||!Number.isNaN(u))}if(fr(e))return r(e);if(tt(e)&&Fs(e))try{const i=JSON.parse(e);if(fr(i))return r(i)}catch(i){}const n=Number(e);if(Number.isNaN(n))throw`${e} is not a number array`;return[n]}}class zC extends nr{validate(e){return St(e)&&"amount"in e&&On(e.amount)&&"currency"in e&&tt(e.currency)}transform(e,r){if(e==null||e==="")return new pu({currency:r==null?void 0:r.currency});let n;if(St(e)&&(n=new pu(Ee(Ee({},r),e))),tt(e)&&Mn(e))try{const i=JSON.parse(e);n=new pu(Ee(Ee({},r),i))}catch(i){}if(n){const i=new Qu,u=new rn;return i.validate(n.amount)||(n.amount=i.transform(n.amount)),u.validate(n.currency)||(n.currency=u.transform(n.currency)),n}throw`${e} is not a { amount: number, currency: string } object`}}class GC extends nr{validate(e){return St(e)&&"min"in e&&tt(e.min)&&"max"in e&&tt(e.max)}transform(e,r){if(e==null||e==="")return new gu;let n;if(St(e)&&(n=new gu(Ee(Ee({},r),e))),tt(e)&&Mn(e))try{const i=JSON.parse(e);n=new gu(Ee(Ee({},r),i))}catch(i){}if(n){const i=new rn;return i.validate(n.min)||(n.min=i.transform(n.min)),i.validate(n.max)||(n.max=i.transform(n.max)),n}throw`${e} is not a { min: string, max: string } object`}}class HC extends nr{validate(e){return St(e)&&"result"in e&&On(e.result)&&"unit"in e&&tt(e.unit)}transform(e,r){if(e==null||e==="")return new mu({unit:r==null?void 0:r.unit});let n;if(St(e)&&(n=new mu(Ee(Ee({},r),e))),tt(e)&&Mn(e))try{const i=JSON.parse(e);n=new mu(Ee(Ee({},r),i))}catch(i){}if(n){const i=new Qu,u=new rn;return i.validate(n.result)||(n.result=i.transform(n.result)),u.validate(n.unit)||(n.unit=u.transform(n.unit)),n}throw`${e} is not a { result: string, unit: string } object`}}class QC extends nr{validate(e){return!!St(e)}transform(e,r){if(e==null||e==="")return new vu;let n;if(St(e)&&(n=new vu(Ee(Ee({},r),ou.exports.camelizeKeys(e)))),tt(e)&&Mn(e))try{const i=JSON.parse(e);n=new vu(Ee(Ee({},r),ou.exports.camelizeKeys(i)))}catch(i){}if(n){const i=new rn;return i.validate(n.city)||(n.city=i.transform(n.city)),i.validate(n.district)||(n.district=i.transform(n.district)),i.validate(n.province)||(n.province=i.transform(n.province)),n}throw`${e} is not a { city: string, district: string, province: string } object`}}class JC{static getValueChecker(e){let r;switch(e){case qe.VARCHAR:case qe.TIMESTAMP:case qe.TEXT:case qe.AUTO_NUMBER:r=new rn;break;case qe.DECIMAL:r=new Qu;break;case qe.EMPLOYEES:case qe.DEPARTMENTS:case qe.IMAGE:case qe.FILE:case qe.ARRAY:r=new VC;break;case qe.MONEY:r=new zC;break;case qe.TIMESCOPE:r=new GC;break;case qe.CALC:r=new HC;break;case qe.DECIMAL_RANGE:r=new WC;break;case qe.ADDRESS:r=new QC;break}return r}}function ZC(t){if(["min","max","currency","unit"].includes(t))return qe.VARCHAR;if(["result","amount"].includes(t))return qe.DECIMAL}function Ta(t,e,r,n){var o;let i=(o=ZC(e))!=null?o:t,u=JC.getValueChecker(i);if(!u||u.validate(r))return r;try{const a=u.transform(r,n);return a!==void 0?a:r}catch(a){throw`${e} ${a}`}}function XC(t,e,r){return Object.entries(t).reduce((n,[i,u])=>{const o=e[i];return n[i]=Ta(u,i,o,r[i]),n},Object.assign({},e))}typeof window!="undefined"&&(window.engines={});let Sr=null,nn="";class Ju extends Os{constructor(e){super(),this.rawStore={},this.isMounted=!1,this.id=_n(8),this.__pluginsApplied=!1,this.actionManager=new jC,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(e);const{autoMount:r=!0,schema:n,beforeCreateInstance:i,externalParams:u,language:o=ds,debug:a=!1,messagesI18n:s,children:c}=this.$options;this.debug=a,this.runtime=new Ke({schema:n,beforeCreateInstance:i}),this.externalParams=u,this.children=c,this.store=new OC({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),r&&this.mount()}debugLog(...e){this.debug&&nu(...e)}use(e){return this.__pluginsApplied||this.__plugins.push(e),this}registerControl(...e){return this.runtime.register(...e),this}static register(e){return Ke.register(e,"Runtime")}static judgeControlIsRegistered(e){return Ke.staticRegisteredTypes.has(e.Runtime.controlType)}mount(){this.debugLog("~engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528~");const{plugins:e=[]}=this.$options;this._handlerProxyState(),this.__plugins=e,this.applyPlugins(),this.setStates(this.getState()),this.debugLog("engine\u7684mount\u65B9\u6CD5\u8C03\u7528\u7ED3\u675F"),this.debug&&typeof window!="undefined"&&(window.engines[this.id]=this)}destroy(){this.debug&&typeof window!="undefined"&&delete window.engines[this.id]}_handlerProxyState(){this.store.state=Vn(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(e,r,n,i){const u=Hu(this.runtime.flatInstances,r,this.runtime.instanceMap);if(!u)return n;if(this.assertInstance(u,Te.SUBTABLE)){if(n===null)return[];const s=u.props.headers.reduce((l,f)=>{const h=f.children[0];return h&&h.controlType===de.FORM&&(l[h.id]=h.fieldType),l},{}),c=this.getEmptyState(u.id);return n==null?void 0:n.map(l=>XC(s,l,c))}const o=r.split("."),a=o[o.length-1];try{return Ta(u.fieldType,a,n,i)}catch(s){throw Ar(`the id=${u.id}'s instance setState error, %o ${s}.`,n),s}}_proxyStateCallback(e,r,n,i,u){Array.isArray(e)?this._handlerArrayUpdate(e,r,n,i,u):this._handlerObjectUpdate(e,r,n,i)}_handlerArrayUpdate(e,r,n,i,u){const o=Hu(this.runtime.flatInstances,r,this.runtime.instanceMap);if((o==null?void 0:o.controlType)!==de.LIST)return;const a=g=>{const y=[];for(let d=0;d<g;d++){const v=this.listControlCreateRow(o,"subtable-row");v&&y.push(v)}return y},s=Sr;let c=[],l=[],f=[],h=!1;if(n&&i){switch(n){case"push":case"unshift":const d=i.length;c=a(d),l=i,o.children[n](...c);break;case"splice":if(i.length>2){const v=i.length-2,p=i.slice(2);c=a(v),l=p;const m=i[0],D=i[1];o.children[n](m,D,...c)}else{const v=i[0],p=i[1];v+p===o.children.length-1&&(h=!0),o.children[n](...i)}break;default:o.children[n](...i);break}n==="splice"?f=u:["pop","shift"].includes(n)&&(f=[u]);const g=this.getState(o.id);this._handlerSubtableUpdateUid(g),this.runtime.getFlatInstances();const y=c.map(d=>{var p,m;const v=(m=(p=d==null?void 0:d.children)==null?void 0:p[0])==null?void 0:m.children[0];return this.getInstanceRowIndex(v)});this.emit("list-change",{instance:o,value:g,options:Object.assign({},s,{changed:c,data:l,rowIndexs:y,deleted:f!=null?f:[],jsonValue:JSON.stringify(g),isDeleteLastOne:h,type:n,args:i})}),Sr=null}}_handlerSubtableUpdateUid(e){e.forEach(r=>{r.uid||Object.assign(r,{uid:"new:"+tn("uid")})})}_handlerObjectUpdate(e,r,n,i){const u=Hu(this.runtime.flatInstances,r,this.runtime.instanceMap);if(!u)return;const o=this.getInstanceRowIndex(u),a=Sr||{};if(u.controlType===de.LIST&&u.type===Te.SUBTABLE){u.children.length=0;const s=n;let c=[];for(let h=0;h<s.length;h++){const g=this.listControlCreateRow(u,"subtable-row");g&&c.push(g)}u.children.push(...c);let l=i!=null?i:[];(a==null?void 0:a.setData)===!0&&(l=[]),this.runtime.getFlatInstances(),this._handlerSubtableUpdateUid(s);const f=c.map(h=>{var y,d;const g=(d=(y=h==null?void 0:h.children)==null?void 0:y[0])==null?void 0:d.children[0];return this.getInstanceRowIndex(g)});this.emit("list-change",{instance:u,value:n,options:wr(Ee({},a),{changed:c,data:s,rowIndexs:f,deleted:l,type:"push",jsonValue:JSON.stringify(s)})})}else this.emit("change",{instance:u,value:this.getState(u.id,o),rowIndex:o,options:wr(Ee({},a),{oldValue:i})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(e=>{var r;try{nn=(r=e.pluginName)!=null?r:e.constructor.name,e.apply(this)}catch(n){Ut(`${nn} Plugin apply Error
2
- ${n}`)}finally{nn=""}}),this.__pluginsApplied=!0)}listControlCreateRow(e,r){let n;if(r==="subtable-row"?n={children:[],controlType:de.LAYOUT,id:_n(),type:"subtable-row",props:{caption:"",isHide:!1,style:{height:"",heightConfig:"fill",width:"",widthConfig:"fill"}},fieldType:void 0,customEvents:[],pageStatus:0,rules:[],parent:void 0}:n=this.runtime.createControlInstance(r),!!n){if(n.controlType===de.LAYOUT){const i=n,u=we(e.props.headers),o=this.createControl(u);for(let a of o)a.parent||this.runtime.resetInstanceParent(a,i);i.children.push(...o)}return n.parent=e,n}}listControlAddRow(e,r="subtable-row"){const n=this.listControlCreateRow(e,r);!n||e.children.push(n)}emit(e,r){return Pt(this,null,function*(){if(e==="engine-mounted"){if(this.isMounted)return Ar("The engine-mounted life cycle can only be triggered once"),Promise.resolve([]);if(this._jobTasks.length){console.time("engine-mounted need wait");const o=[...this._jobTasks];yield Promise.all(o),console.timeEnd("engine-mounted need wait")}this.isMounted=!0}let n,i;this.isMounted||(i=new Promise(o=>{n=o}),this._jobTasks.push(i));const u=yield Df(Ju.prototype,this,"emit").call(this,e,r);return n&&i&&(n(),this._jobTasks.splice(this._jobTasks.indexOf(i),1)),u})}on(e,r){return nn&&(r.applyingPluginName=nn),super.on(e,r)}createControl(...e){return this.runtime.createControl(...e)}createInstance(e,r){return this.runtime.createControlInstance(e,r)}schemaEvent(e,r){this.emit(e,r)}updateInstanceProps(e,r,n,i){return this.setInstance(e,r,n,i)}getRule(e,r){return Ke.staticGetRules(e,r)}getAllRules(e){var n,i;const r=this.runtime.allRules;return e===void 0?r:{rules:(n=r.rules[e])==null?void 0:n.fields,antdRules:(i=r.antdRules[e])==null?void 0:i.fields}}getRules(e,r=!1){var a,s,c,l,f,h,g;const n=this.runtime.rules,i=this.runtime.fieldCodeRules,u=this.store.controlIdMapping,o=r?i:n;if(e===void 0)return r?i:o;{if(e=r?(a=u[e])!=null&&a.children?(s=u[e].dataBind)==null?void 0:s.dataCode:((c=u[e].dataBind)==null?void 0:c.fieldCode)||e:e,e in o)return(l=o[e])==null?void 0:l.fields;let y;for(const d in o)if(e in(((f=o[d])==null?void 0:f.fields)||{})){y=(g=(h=o[d])==null?void 0:h.fields)==null?void 0:g[e];break}return y}}getAntdRules(e){var r;return e===void 0?this.runtime.antdRules:(r=this.runtime.antdRules[e])==null?void 0:r.fields}getState(e,r){return e===void 0?this.store.state:this.store.getState(e,r)}getEmptyState(e){return we(e===void 0?this.store.emptyState:this.store.getEmptyState(e))}setPayloadOptions(e){Sr=e}setState(e,r,n,i){Sr=i,this.debugLog("[%o]: \u89E6\u53D1setState, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o, options=%o",e,r,n,i),this.store.setState(e,r,n),this.debugLog("[%o]: setState\u5B8C\u6210, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o",e,r,n),Sr=null}setStates(e,r,n){let i=e!=null?e:{};Object.keys(i).forEach(u=>{Object.entries(this.store.controlIdMapping).forEach(([o,a])=>{if(a.dataView===u){const s=i[u][o];s!==void 0&&this.setState(o,s,r,n)}else(o===u||a.children&&a.children[u])&&i[u]!==void 0&&this.setState(u,i[u],r,n)})})}getField(e,r,n){if(!r){const s=this.getDataBindMapping(e);if(s){const{controlId:c}=s;return this.getState(c)}return}const i=this.getDataBindMapping(e,r);if(!i)return;const{dataBind:u,controlId:o}=i,a=this.getState(o,n);return ft(u)?a:Object.entries(u).reduce((s,[c,l])=>l.fieldCode===r?s[c]:s,a)}getData(e){var i,u,o,a,s,c,l,f,h;if(!e)return;let r=this.getDataBindMapping(e),n=this.getControlIdMapping();if(r){const{controlId:g}=r,y=this.getField(e);if(Array.isArray(y))return y.map(v=>{var m,D,E,w,_,O;let p={};for(let C in v){const A=(E=(D=(m=n[g])==null?void 0:m.children[C])==null?void 0:D.dataBind)==null?void 0:E.fieldCode;if(A!==""){if(A)p[A]=v[C];else if((w=n[g])!=null&&w.children[C])for(let B in v[C])p[(O=(_=n[g])==null?void 0:_.children[C])==null?void 0:O.dataBind[B].fieldCode]=v[C][B]}}return p});{let d={};for(let v in y)if((u=(i=n[v])==null?void 0:i.dataBind)!=null&&u.fieldCode)d[(o=n[v])==null?void 0:o.dataBind.fieldCode]=y[v];else if((s=(a=n[v])==null?void 0:a.dataBind)!=null&&s.dataCode)Array.isArray(y[v])&&(d[(c=n[v])==null?void 0:c.dataBind.dataCode]=(l=y[v])==null?void 0:l.map(p=>{var D,E;let m={};for(let w in p){const _=(D=n[v].children[w])==null?void 0:D.dataBind.fieldCode;if(_!=="")if(_)m[_]=p[w];else for(let O in p[w])m[(E=n[v].children[w])==null?void 0:E.dataBind[O].fieldCode]=p[w][O]}return m}));else if(n[v])for(let p in y[v])d[(h=(f=n[v])==null?void 0:f.dataBind[p])==null?void 0:h.fieldCode]=y[v][p];return d}}}setField(e,r,n,i,u){var c;const o=this.getDataBindMapping(e,r);if(!o)return;const{dataBind:a,controlId:s}=o;if(ft(a))this.setState(s,n,i,u);else{const l=(c=we(this.getState(s,i)))!=null?c:this.getEmptyState(s),f=Object.entries(a).reduce((h,[g,y])=>(y.fieldCode===r&&(h[g]=n),h),l);this.setState(s,f,i,u)}}setFields(e,r,n,i){const u=this.getDataBindMapping(e);if(!u)return;let o=[];u.fields.forEach(a=>{var f;const{dataBind:s,controlId:c,fieldCode:l}=a;if(!o.includes(l)&&!!Object.hasOwnProperty.call(r,l))if(ft(s))this.setState(c,r[l],n,i);else{const h=(f=we(this.getState(c,n)))!=null?f:this.getEmptyState(c),g=Object.entries(s).reduce((y,[d,v])=>{o.push(v.fieldCode);const p=r[v.fieldCode];return p!==void 0&&(y[d]=p),y},h);this.setState(a.controlId,g,n,i)}})}buildFields(e,r){const n=this.getDataBindMapping(e);if(!n||!n.fields)return;let i=[];const u={};return n.fields.forEach(o=>{const{dataBind:a,controlId:s,fieldCode:c}=o;if(!i.includes(c)&&!!Object.hasOwnProperty.call(r,c))if(ft(a))u[s]=r[c];else{const l=this.getEmptyState(s);u[o.controlId]=Object.entries(a).reduce((f,[h,g])=>{i.push(g.fieldCode);const y=r[g.fieldCode];return y!==void 0&&(f[h]=y),f},l)}}),u}setData(e,r){var s,c,l,f,h,g;this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",e,r);const n=r==null?void 0:r.onlySetData;let i=this.store.defaultState;n===!0&&(i={});const u=this.store.dataBindMapping,o=this.store.emptyState,a=Object.keys(e);for(let y=0;y<a.length;y++){const d=a[y],v=e[d];if(Array.isArray(v)){const p=u[d];if(!p)continue;const{dataViewId:m,controlId:D,fields:E}=p;i[m]||(i[m]={}),v.length?i[m][D]=[]:i[m][D]=(s=i[m][D])!=null?s:[];const w=new Map;for(let B=0;B<E.length;B++){const F=E[B];w.set(F.fieldCode,F)}const _=new Set;for(let B=0;B<E.length;B++){const F=E[B];F.fieldCode&&_.add(F.fieldCode)}const O=(c=o[m])==null?void 0:c[D],C={},A={};for(let B=0;B<v.length;B++){const F=v[B],$=we(O),X=new Set,K=Object.keys(F);for(let J=0;J<K.length;J++){const j=K[J],ve=F[j];if(!_.has(j)&&j in $&&ve!==void 0&&($[j]=ve),X.has(j))continue;if(!A[j]){const Je=w.get(j);Je&&(A[j]=Je)}const je=A[j];if(je){if(ft(je.dataBind)&&ve!==void 0)$[je.controlId]=ve;else if(!ft(je.dataBind)){const Je=je.controlId;C[Je]||(C[Je]=we((l=this.store.getEmptyState(Je))!=null?l:{}));const et=we(C[Je]),z=je.dataBind,H=Object.keys(z);for(let W=0;W<H.length;W++){const I=H[W],V=z[I],te=F[V.fieldCode];te!==void 0&&(et[I]=te),X.add(V.fieldCode)}$[Je]=et}}else j==="uid"&&ve!==void 0?$.uid=ve:j==="virtualStore"&&ve!==void 0&&($.virtualStore=Object.freeze(ve))}i[m][D].push($)}}else if(v){const p=[],m=we(this.store.emptyState);(f=Object.keys(v))!=null&&f.length&&Object.keys(v).map(E=>{var _;if(p.includes(E))return;const w=this.getDataBindMapping(d,E);if(w){if(i[w.dataViewId[0]]||(i[w.dataViewId[0]]={}),ft(w.dataBind)&&v[E]!==void 0)i[w.dataViewId[0]][w.controlId]=v[E]!==void 0?v[E]:m[w.dataViewId[0]][w.controlId];else if(!ft(w.dataBind)){const O=(_=this.getEmptyState(w.controlId))!=null?_:{};Object.keys(w.dataBind).map(C=>{const A=w.dataBind[C];if(e[A.dataCode]){const B=e[A.dataCode];B[A.fieldCode]!==void 0&&(O[C]=B[A.fieldCode])}p.push(A.fieldCode)}),i[w.dataViewId[0]][w.controlId]=O}}else{const O=this.getDataBindMapping(d);if((O==null?void 0:O.dataViewId)&&v[E]!==void 0){const C=O==null?void 0:O.dataViewId;E in(m[C]||{})&&(i[C][E]=v[E])}}});const D=this.getDataBindMapping(d);if(D){const E=(h=D==null?void 0:D.fields)==null?void 0:h.map(O=>O==null?void 0:O.controlId),w=this.getEmptyState(D==null?void 0:D.controlId),_=Object.keys((g=i==null?void 0:i[D==null?void 0:D.controlId])!=null?g:{});E==null||E.forEach(O=>{!_.includes(O)&&O!=="uid"&&i[D==null?void 0:D.controlId]&&(Object.keys(i).length?Object.assign(i[D==null?void 0:D.controlId],{[O]:w[O]}):Object.assign(i,{[D.controlId]:{[O]:w[O]}}))}),this.debugLog("engine setData\u65B9\u6CD5\u9ED8\u8BA4\u503C\u53CA\u8868\u5355\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",i)}}}this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",i),this.setStates(i,void 0,Ee({setData:!0},r)),this.runtime.getFlatInstances(),this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\u5B8C\u6210\u3002")}getDataBind(e){return this.store.getDataBind(e)}getInstance(e,r){const n=this.getInstances(e,r===-1);if(n.length>0)return r!==void 0?r===-1?n[0]:n[r]:n[0]}getInstances(e,r=!1){if(e===void 0)return this.runtime.flatInstances;const n=Array.from(this.runtime.instanceMap[e]||[]);if(r){const i=this.findSubtableHeadersControl(e);i!==void 0&&n.unshift(i)}return n}setInstance(e,r,n,i){try{if(typeof e=="string"&&i===-1)this.getInstances(e,i===-1).map(o=>{o&&(this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",o.id,o,r,n),uu(o.props,r,n),this.schemaEvent("schema-change",{instance:o,props:r,value:n,rowIndex:i}))});else{let u;if(typeof e=="string"?u=this.getInstance(e,i):u=e,!u)return;this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",u.id,u,r,n),uu(u.props,r,n),this.schemaEvent("schema-change",{instance:u,props:r,value:n,rowIndex:i})}}catch(u){throw u}}getControlIdMapping(){return this.store.controlIdMapping}getFieldInstance(e,r,n){const i=this.getDataBindMapping(e,r);if(i)return this.getInstance(i.controlId,n)}setFieldInstance(e,r,n,i,u){const o=this.getDataBindMapping(e,r);if(o){const a=this.getInstance(o.controlId,u);return this.debugLog("\u8C03\u7528\u4E86setFieldInstance[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",a.id,a,n,i),this.setInstance(a.id,n,i,u),a}}getDataBindMapping(e,r){if(!e&&!r)return this.store.dataBindMapping;const n=this.store.dataBindMapping[e];if(!n)return;if(!r)return n;const i=n.fields.find(u=>u.fieldCode===r);if(!!i)return i}getAction(){return this.actionManager}initDataManager(e){this.dataManager=new UC(e)}getDataManager(){return this.dataManager}assertInstance(e,r){return tt(r)?e.type===r:r.includes(e.type)}assertInstanceIsCustomControl(e){return!eE(tt(e)?e:e.type)}getInstanceRowIndex(e){if(!e.parent)return;let r;if(this.assertInstance(e.parent,Te.SUBTABLE_COLUMN)&&this.assertInstance(e.parent.parent,Te.SUBTABLE))r=-1;else if(this.getInstanceParentControl(e,Te.SUBTABLE_COLUMN)){const u=this.runtime.instanceMap[e.id];if(Object.prototype.toString.call(u)==="[object Array]"){const o=u.findIndex(a=>a===e);o>-1&&(r=o)}}return r}getInstanceParentControl(e,r){if(!!e.parent)return this.assertInstance(e.parent,r)?e.parent:this.getInstanceParentControl(e.parent,r)}getInstanceInSubtableHeader(e){const r=this.getInstanceRowIndex(e);if(r===void 0)return;if(r===-1)return e;const n=this.assertInstance(e,Te.SUBTABLE_COLUMN)?e:this.getInstanceParentControl(e,Te.SUBTABLE_COLUMN);if(!n)return;const u=this.getInstanceParentControl(e,Te.SUBTABLE).props.headers.find(o=>o.id===n.id);if(!!u)return u.children.find(o=>o.id===e.id)}setControlConfig(...e){return this.runtime.registerControlConfig(...e)}getControlConfig(e){return this.runtime.getControlConfig(e)}inList(e){const r=this.store.subtableHeadersControlIdMapping;let n;for(const i in r)if(e in r[i]){n=i;break}return n}findSubtableHeadersControl(e){const r=this.store.subtableHeadersControlIdMapping;let n;for(const i in r)if(e in r[i]){n=r[i][e];break}return n}}class KC{}class YC{constructor(e,r,n){this.config=e,this.env=r,this.eventJs=n}apply(e){this.engine=e;const r=this.config;if(!r)return;const n=e.getAction();if(this.eventJs){this.eventJs.exportsFun({ctx:e,utils:n.actionUtils});for(let[i,u]of Object.entries(this.eventJs))n.addAction(i,u)}else{const i=Pa(r,e,this.env);if(!i)return;for(let[u,o]of Object.entries(i.funcMap))n.addAction(u,o)}}}function Pa(t,e,r){if(!t.module||!t.module.compiled)return;const n=t.module.compiled,i={exports:{ctx:e,utils:e.getAction().actionUtils,env:r}};try{new Function("module","exports",n).call(i,i,i.exports)}catch(a){Ut(a.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&Ut("fail to parse the module")}const u={},o={};for(const[a,s]of Object.entries(i.exports))typeof s=="function"?u[a]=s:o[a]=s;return{funcMap:u,variables:o}}const e5={"engine-initialized":"did_init","engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class t5{constructor(e){this.config=e}apply(e){this.engine=e,Object.entries(e5).forEach(([r,n])=>{e.on(r,i=>Pt(this,null,function*(){const u=yield this.callLifecycleEvent(n,i);return u.includes(!1)?!1:u}))})}callLifecycleEvent(e,r){return Pt(this,null,function*(){const n=this.config;return!n||!Array.isArray(n[e])?[]:yield Promise.all(n[e].map(u=>Pt(this,null,function*(){return yield this.engine.getAction().execAction(u,r)})))})}}class r5{constructor(e,r){this.config=e,this.customEvents=r}apply(e){this.engine=e,xs.events.forEach(r=>{r.code&&r.key&&this.engineAddEventListener(r.code,r.key)}),this.customEvents.map(r=>{let n=r.key;r.namespace!==void 0&&r.namespace!==null&&r.namespace!==""&&(n=r.namespace+":"+r.key),this.engineAddEventListener(n,n)})}engineAddEventListener(e,r){this.engine.on(e,n=>Pt(this,null,function*(){if(!((e==="change"||e==="list-change")&&!this.engine.isMounted)&&n.instance!==void 0)return yield this.callControlEvent(r,n)}))}callControlEvent(e,r){return Pt(this,null,function*(){const n=this.config[r.instance.id];if(!n||!Array.isArray(n[e]))return[];const i=yield Promise.all(n[e].map(u=>Pt(this,null,function*(){return yield this.engine.getAction().execAction(u,r)})));return i.includes(!1)?!1:i})}}function Wn(){return Wn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Wn.apply(null,arguments)}var Na={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function Ge(t){return typeof t=="number"}function Gt(t){return!t||typeof t!="object"||typeof t.constructor!="function"?!1:t.isBigNumber===!0&&typeof t.constructor.prototype=="object"&&t.constructor.prototype.isBigNumber===!0||typeof t.constructor.isDecimal=="function"&&t.constructor.isDecimal(t)===!0}function $a(t){return t&&typeof t=="object"&&Object.getPrototypeOf(t).isComplex===!0||!1}function Ra(t){return t&&typeof t=="object"&&Object.getPrototypeOf(t).isFraction===!0||!1}function La(t){return t&&t.constructor.prototype.isUnit===!0||!1}function zn(t){return typeof t=="string"}var ht=Array.isArray;function Or(t){return t&&t.constructor.prototype.isMatrix===!0||!1}function Zu(t){return Array.isArray(t)||Or(t)}function n5(t){return t&&t.isDenseMatrix&&t.constructor.prototype.isMatrix===!0||!1}function i5(t){return t&&t.isSparseMatrix&&t.constructor.prototype.isMatrix===!0||!1}function u5(t){return t&&t.constructor.prototype.isRange===!0||!1}function ka(t){return t&&t.constructor.prototype.isIndex===!0||!1}function o5(t){return typeof t=="boolean"}function s5(t){return t&&t.constructor.prototype.isResultSet===!0||!1}function a5(t){return t&&t.constructor.prototype.isHelp===!0||!1}function l5(t){return typeof t=="function"}function c5(t){return t instanceof Date}function f5(t){return t instanceof RegExp}function ja(t){return!!(t&&typeof t=="object"&&t.constructor===Object&&!$a(t)&&!Ra(t))}function h5(t){return t===null}function d5(t){return t===void 0}function p5(t){return t&&t.isAccessorNode===!0&&t.constructor.prototype.isNode===!0||!1}function g5(t){return t&&t.isArrayNode===!0&&t.constructor.prototype.isNode===!0||!1}function v5(t){return t&&t.isAssignmentNode===!0&&t.constructor.prototype.isNode===!0||!1}function m5(t){return t&&t.isBlockNode===!0&&t.constructor.prototype.isNode===!0||!1}function y5(t){return t&&t.isConditionalNode===!0&&t.constructor.prototype.isNode===!0||!1}function D5(t){return t&&t.isConstantNode===!0&&t.constructor.prototype.isNode===!0||!1}function E5(t){return t&&t.isFunctionAssignmentNode===!0&&t.constructor.prototype.isNode===!0||!1}function w5(t){return t&&t.isFunctionNode===!0&&t.constructor.prototype.isNode===!0||!1}function C5(t){return t&&t.isIndexNode===!0&&t.constructor.prototype.isNode===!0||!1}function A5(t){return t&&t.isNode===!0&&t.constructor.prototype.isNode===!0||!1}function b5(t){return t&&t.isObjectNode===!0&&t.constructor.prototype.isNode===!0||!1}function F5(t){return t&&t.isOperatorNode===!0&&t.constructor.prototype.isNode===!0||!1}function _5(t){return t&&t.isParenthesisNode===!0&&t.constructor.prototype.isNode===!0||!1}function B5(t){return t&&t.isRangeNode===!0&&t.constructor.prototype.isNode===!0||!1}function S5(t){return t&&t.isRelationalNode===!0&&t.constructor.prototype.isNode===!0||!1}function O5(t){return t&&t.isSymbolNode===!0&&t.constructor.prototype.isNode===!0||!1}function M5(t){return t&&t.constructor.prototype.isChain===!0||!1}function Xu(t){var e=typeof t;return e==="object"?t===null?"null":Gt(t)?"BigNumber":t.constructor&&t.constructor.name?t.constructor.name:"Object":e}function gr(t){var e=typeof t;if(e==="number"||e==="string"||e==="boolean"||t===null||t===void 0)return t;if(typeof t.clone=="function")return t.clone();if(Array.isArray(t))return t.map(function(r){return gr(r)});if(t instanceof Date)return new Date(t.valueOf());if(Gt(t))return t;if(ja(t))return x5(t,gr);throw new TypeError("Cannot clone: unknown type of value (value: ".concat(t,")"))}function x5(t,e){var r={};for(var n in t)Gn(t,n)&&(r[n]=e(t[n]));return r}function un(t,e){var r,n,i;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;n++)if(!un(t[n],e[n]))return!1;return!0}else{if(typeof t=="function")return t===e;if(t instanceof Object){if(Array.isArray(e)||!(e instanceof Object))return!1;for(r in t)if(!(r in e)||!un(t[r],e[r]))return!1;for(r in e)if(!(r in t))return!1;return!0}else return t===e}}function Gn(t,e){return t&&Object.hasOwnProperty.call(t,e)}function I5(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n],u=t[i];u!==void 0&&(r[i]=u)}return r}var T5=["Matrix","Array"],P5=["number","BigNumber","Fraction"],qa=function(e){if(e)throw new Error(`The global config is readonly.
1
+ var f2=Object.defineProperty,h2=Object.defineProperties;var d2=Object.getOwnPropertyDescriptors;var Qi=Object.getOwnPropertySymbols,p2=Object.getPrototypeOf,mf=Object.prototype.hasOwnProperty,yf=Object.prototype.propertyIsEnumerable,g2=Reflect.get;var Ji=Math.pow,vf=(oe,_e,Ie)=>_e in oe?f2(oe,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):oe[_e]=Ie,Ee=(oe,_e)=>{for(var Ie in _e||(_e={}))mf.call(_e,Ie)&&vf(oe,Ie,_e[Ie]);if(Qi)for(var Ie of Qi(_e))yf.call(_e,Ie)&&vf(oe,Ie,_e[Ie]);return oe},wr=(oe,_e)=>h2(oe,d2(_e));var hs=(oe,_e)=>{var Ie={};for(var at in oe)mf.call(oe,at)&&_e.indexOf(at)<0&&(Ie[at]=oe[at]);if(oe!=null&&Qi)for(var at of Qi(oe))_e.indexOf(at)<0&&yf.call(oe,at)&&(Ie[at]=oe[at]);return Ie};var Df=(oe,_e,Ie)=>g2(p2(oe),Ie,_e);var Pt=(oe,_e,Ie)=>new Promise((at,bn)=>{var Zi=Bt=>{try{Gr(Ie.next(Bt))}catch(Cr){bn(Cr)}},cr=Bt=>{try{Gr(Ie.throw(Bt))}catch(Cr){bn(Cr)}},Gr=Bt=>Bt.done?at(Bt.value):Promise.resolve(Bt.value).then(Zi,cr);Gr((Ie=Ie.apply(oe,_e)).next())});(function(oe,_e){typeof exports=="object"&&typeof module!="undefined"?_e(exports,require("crypto"),require("path"),require("url"),require("fs"),require("util")):typeof define=="function"&&define.amd?define(["exports","crypto","path","url","fs","util"],_e):(oe=typeof globalThis!="undefined"?globalThis:oe||self,_e(oe.modelDrivenEngine={},oe.require$$0,oe.require$$1,oe.require$$3,oe.require$$0$1,oe.require$$0$2))})(this,function(oe,_e,Ie,at,bn,Zi){"use strict";function cr(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Gr=cr(_e),Bt=cr(Ie),Cr=cr(at),Ef=cr(bn),wf=cr(Zi);const ue=(t,e,r)=>{if(!t)return console.error("getLocaleText\u7684key\u4E0D\u80FD\u4E3A\u7A7A"),"";const n=t.split(".");let i;const u=(window.baitedaWorkers||{}).languageMessages||{};n.forEach((a,s)=>{s===0?i=u[a]:i&&(i=i[a])});let o="";return i&&(o=i),e&&Object.keys(e).forEach(a=>{const s=e[a];o=o.replace(new RegExp(`\\{\\s*${a}\\s*\\}`,"g"),s)}),o||(r?o=r:o=t),o};var Cf="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Af="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",bf="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Ff="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",_f="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Bf="{caption}\u5FC5\u586B",Sf="\u8BF7\u8F93\u5165\u6807\u9898",Of="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Mf="\u8BF7\u8F93\u5165\u884C\u6807\u9898",xf="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",If="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",Tf="\u8BF7\u7ED1\u5B9A\u8868\u5355",Pf="\u8BF7\u7ED1\u5B9A\u5217\u8868",Nf="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",$f="\u8BF7\u8F93\u5165\u663E\u793A\u503C",Rf="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Lf="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",kf="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",jf="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",qf="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Uf="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Vf="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Wf="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",zf="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Gf="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",Hf="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Qf="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Jf="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u8D85\u8FC7\u4E86\u9650\u5236",Zf="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Xf="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Kf="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Yf="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",eh="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",th="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",rh="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",nh="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",ih="\u8BF7\u7ED1\u5B9A\u670D\u52A1",uh="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",oh="\u8BF7\u9009\u62E9\u7701",sh="\u8BF7\u9009\u62E9\u5E02",ah="\u8BF7\u9009\u62E9\u533A",lh="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",ch="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",fh="\u8BF7\u8F93\u5165\u5217\u5BBD",hh="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",dh="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",ph="\u8BF7\u9009\u62E9\u63A7\u4EF6",gh="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",vh="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",mh="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",yh="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Dh="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Eh="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",wh="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Ch="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ah="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",bh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Fh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",_h="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Bh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Sh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Oh="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Mh="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",xh="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ih="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Th="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Ph="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Nh="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",$h="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",Rh="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",Lh="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",kh="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",jh="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",qh="\u6279\u91CF\u5220\u9664",Uh="\u6279\u91CF\u6253\u5370",Vh="\u6279\u91CF\u6253\u5370\u8BB0\u5F55",Wh="\u6309\u94AE",zh="\u521B\u5EFA\u5355\u636E",Gh="\u4EEA\u8868\u76D8",Hh="\u5206\u5272\u7EBF",Qh="\u5BFC\u51FA",Jh="\u8868\u5355\u64CD\u4F5C",Zh="\u5BFC\u5165",Xh="\u53D1\u7968\u8BC6\u522B",Kh="\u94FE\u63A5",Yh="\u5217\u8868\u9009\u62E9",e0="\u5217\u8868\u89C6\u56FE",t0="\u64CD\u4F5C\u6309\u94AE",r0="\u5206\u9875",n0="\u6279\u91CF\u63D0\u4EA4\u8BB0\u5F55",i0="\u8BF4\u660E\u6587\u5B57",u0="\u6587\u5B57\u8BC6\u522B",o0="\u6807\u9898\u7EC4\u4EF6",s0="\u5F53\u524D\u5BA1\u6279\u72B6\u6001",a0="\u6570\u7EC4",l0="\u81EA\u52A8\u7F16\u53F7",c0="\u81EA\u5B9A\u4E49",f0="\u6570\u503C",h0="\u90E8\u95E8",d0="\u4EBA\u5458",p0="\u9644\u4EF6",g0="\u56FE\u7247",v0="\u5730\u5740",m0="\u64CD\u4F5C",y0="\u5E8F\u53F7",D0="\u4EBA\u5458",E0="\u957F\u6587\u672C",w0="\u65E5\u671F\u533A\u95F4",C0="\u65E5\u671F",A0="\u77ED\u6587\u672C",b0="\u6362\u884C\u5BB9\u5668Wrap",F0="\u8868\u683C",_0="\u660E\u7EC6\u5B50\u8868",B0="\u5730\u5740",S0="\u91D1\u989D",O0="\u8BA1\u7B97\u516C\u5F0F",M0="\u591A\u9009",x0="\u7535\u5B50\u7B7E\u7AE0",I0="\u5355\u884C\u6587\u672C",T0="\u6570\u5B57",P0="\u4E1A\u52A1\u7EC4\u7EC7",N0="\u5355\u9009",$0="\u5BCC\u6587\u672C",R0="\u8BC4\u5206",L0="\u6570\u5B57\u533A\u95F4",k0="\u4E0B\u62C9\u5355\u9009",j0="\u4E0B\u62C9\u591A\u9009",q0="\u5173\u8054\u5355\u9009",U0="\u591A\u884C\u6587\u672C",V0="\u6811",W0="Vue\u5BB9\u5668",z0="Vue\u9875\u9762",G0="\u5728\u7EBF\u6587\u6863",H0="\u6309\u94AE\u64CD\u4F5C\u680F",Q0="\u9AD8\u7EA7\u5BB9\u5668",J0="\u5206\u7EC4",Z0="\u6805\u683C\u5217",X0="\u6570\u636E\u5BB9\u5668",K0="\u753B\u5E03",Y0="\u6362\u884C\u5BB9\u5668",ed="\u6805\u683C\u7B49\u5206\u884C",td="\u5217\u8868\u5BB9\u5668",rd="\u81EA\u7531\u9875\u9762",nd="\u5B9A\u4F4D\u5B50\u5BB9\u5668",id="\u5B9A\u4F4D\u5BB9\u5668",ud="\u6805\u683C\u5E03\u5C40",od="\u660E\u7EC6\u5B50\u8868\u5355\u5143\u683C",sd="\u660E\u7EC6\u5B50\u8868\u884C",ad="\u6807\u7B7E\u9875",ld="\u6807\u7B7E\u5355\u5143",cd="\u5DE5\u5177\u680F",fd="\u6279\u91CF\u63D0\u4EA4",hd="\u5BFC\u51FA\u8BB0\u5F55",dd="\u5217\u8868\u89C6\u56FE",pd="\u7ED3\u675F\u65F6\u95F4",gd="\u5F00\u59CB\u65F6\u95F4",vd="\u5355\u4F4D",md="\u7ED3\u679C",yd="\u5E01\u79CD",Dd="\u7ED3\u675F\u65E5\u671F",Ed="\u5F00\u59CB\u65E5\u671F",wd="\u8BF7\u9009\u62E9\u516C\u53F8\u540D\u79F0",Cd="\u8BF7\u9009\u62E9\u624B\u673A\u53F7/\u90AE\u7BB1",Ad="\u8BF7\u9009\u62E9\u7B7E\u7AE0\u7C7B\u578B",bd="\u8BF7\u9009\u62E9\u7B7E\u7F72\u4EBA",Fd="\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u7B7E\u7F72\u4EBA",_d="\u8BF7\u9009\u62E9\u7B7E\u7F72\u6587\u4EF6",Bd="\u8BF7\u9009\u62E9",Sd="\u8BF7\u9009\u62E9\u7EC4\u7EC7",Od="\u8BF7\u9009\u62E9\u90E8\u95E8",Md="\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",xd="\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",Id="\u8BF7\u9009\u62E9\u5730\u5740",Td="\u5F39\u7A97\u786E\u8BA4\u65F6",Pd="\u6807\u7B7E\u9875\u5207\u6362\u65F6",Nd="\u884C\u9009\u4E2D\u65F6",$d="\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",Rd="\u884C\u5220\u9664\u524D",Ld="\u884C\u70B9\u51FB\u65F6",kd="\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",jd="\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",qd="\u91CD\u547D\u540D\u65F6",Ud="\u4FDD\u5B58\u6587\u4EF6\u65F6",Vd="\u6253\u5F00\u6587\u4EF6\u65F6",Wd="\u83B7\u53D6\u7126\u70B9\u65F6",zd="\u5931\u53BB\u7126\u70B9\u65F6",Gd="\u7528\u6237\u8F93\u5165\u65F6",Hd="\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",Qd="\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",Jd="\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",Zd="\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",Xd="\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",Kd="\u641C\u7D22\u65F6",Yd="\u503C\u53D1\u751F\u53D8\u5316\u65F6",ep="\u6267\u884C\u5B8C\u6210\u65F6",tp="\u70B9\u51FB\u65F6",rp="\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u6216\u90AE\u7BB1",np="\u8BF7\u8F93\u5165\u65E5\u671F",ip="\u8BF7\u8F93\u5165\u81EA\u52A8\u7F16\u53F7",up="\u8BF7\u8F93\u5165",op="\u9ED8\u8BA4\u6A21\u7248",sp="\u5DE6\u53F3\u5E03\u5C40",ap="\u4E0A\u4E0B\u5E03\u5C40",lp="\u53EA\u8BFB",cp="\u5FC5\u586B",fp="\u63D0\u793A\u6587\u5B57",hp="\u9690\u85CF\u6807\u9898",dp="\u6807\u9898\u5FC5\u586B",pp="\u7EC4\u7EC7\u5F62\u6001",gp="\u4E1A\u52A1\u7C7B\u578B",vp="\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",mp="\u9690\u85CF",yp="\u6D41\u7A0B\u72B6\u6001",Dp="\u5BA1\u6279\u901A\u8FC7\u5355\u636E",Ep="\u5220\u9664",wp="\u7F16\u8F91",Cp="\u67E5\u770B",Ap="\u52A0\u8F7D\u81EA\u5B9A\u4E49\u63A7\u4EF6\u5F02\u5E38\uFF0C\u4F1A\u5F71\u54CD\u5230\u7684\u63A7\u4EF6\uFF1A{id}",bp="\u5185\u7F6E\u7EC4\u4EF6\u52A0\u8F7D\u9519\u8BEF",Fp="\u5145\u6EE1\u6574\u884C",_p="\u6700\u5C0F\u503C",Bp="\u6700\u5927\u503C",Sp="\u65B0\u5EFA\u6587\u6863",Op="\u91CD\u7F6E",Mp="\u67E5\u8BE2",xp="\u660E\u7EC6",Ip="\u6253\u5370",Tp="\u4FDD\u5B58\u8349\u7A3F",Pp="\u4FDD\u5B58",Np="\u53D6\u6D88",$p="\u4E0A\u4F20\u56FE\u7247",Rp="\u53D1\u8D77\u7B7E\u7F72",Lp="\u4E0A\u4F20\u9644\u4EF6",kp="\u6211\u662F\u4E00\u4E2A\u94FE\u63A5",jp="\u5F15\u7528\u5217\u8868",qp="\u9009\u9879\u4E00",Up="\u9009\u9879\u4E8C",Vp="\u9009\u9879\u4E09",Wp={isNotNumber:Cf,isNotString:Af,isNotObject:bf,isNotArray:Ff,isNotBoolean:_f,runtimeRequired:Bf,pleaseEnterCaption:Sf,pleaseEnterCaptionTip:Of,pleaseEnterRowCaption:Mf,pleaseEnterPlaceholder:xf,pleaseEnterFieldCode:If,pleaseEnterForm:Tf,pleaseEnterList:Pf,pleaseEnterProcess:Nf,pleaseEnterLabel:$f,pleaseEnterValue:Rf,bizKeyNotBindFiled:Lf,pleaseSelectOneField:kf,pleaseEnterNumberRange:jf,pleaseEnterAValueGreaterThanMin:qf,pleaseEnterAValueLessThanMax:Uf,numberRangeSetError:Vf,stringRangeError:Wf,attachmentMaxSize:zf,pleaseEnterTotalScoreSetting:Gf,theTotalScoreMustNotBeLessThan1:Hf,scoreDefaultValueRange:Qf,attachmentLimitError:Jf,PleaseReselectTheOptionalQuantity:Zf,TheMaximumLengthIsGreaterThanTheMinimumLength:Xf,TheMinimumLengthIsGreaterThanTheMaximumLength:Kf,PleaseSelectTheCorrectOptionSettings:Yf,optionIdIsRepeat:eh,optionIsRequired:th,pleaseEnterDataCode:rh,pleaseEnterValueFieldCode:nh,pleaseEnterSvcCode:ih,pleaseBindAtLeastOneDisplayValue:uh,pleaseSelectProvince:oh,pleaseSelectCity:sh,pleaseSelectDistrict:ah,limitRowsCannotBeLessThan0:lh,TheNumberOfRowsCannotBeLessThanMinRows:ch,pleaseEnterColumnWidth:fh,pleaseSetTheLogicalRelationshipOfAllRuleConditions:hh,pleaseCompleteAllRulesAndConditions:dh,pleaseSelectControl:ph,pleaseSelectAtLeastOneColumn:gh,pleaseSelectFillBackMode:vh,pleaseSelectDashboard:mh,rootNodeIsRequired:yh,theViewNameCannotBeEmpty:Dh,pleaseSelectOcrType:Eh,pleaseSelectAtLeastOneFieldToFillIn:wh,pleaseChooseAtLeastOne:Ch,pleaseEnterButtonContent:Ah,pleaseEnterDataCodeInDataSetting:bh,pleaseEnterValueFieldCodeInDataSetting:Fh,pleaseEnterSvcCodeInDataSetting:_h,pleaseBindAtLeastOneDisplayValueInDataSetting:Bh,rootNodeIsRequiredInDataSetting:Sh,pleaseEnterMaxHeight:Oh,pleaseEnterWatermark:Mh,pleaseEnterFileName:xh,pleaseUploadAtLeastOnePrintTemplate:Ih,pleaseAssignBusiness:Th,pleaseAssignExternal:Ph,pleaseEnterAliasCode:Nh,pleaseSelectDataCode:$h,pleaseSelectSvcCode:Rh,pleaseSelectJoinFieldCode:Lh,pleaseSelectMainFieldCode:kh,pleaseSelectSortFieldCode:jh,batchDeleteButton:qh,batchPrintListButton:Uh,batchPrintRecordList:Vh,button:Wh,createFormListButton:zh,dashboard:Gh,divider:Hh,exportListButton:Qh,formSelectButton:Jh,importRecordListButton:Zh,invoiceCheckButton:Xh,link:Kh,listSelectButton:Yh,ListViewSelect:e0,operationButton:t0,pagination:r0,submissionRecordListButton:n0,text:i0,textOcrButton:u0,title:o0,approvalStatusColumn:s0,array:a0,autoNumber:l0,custom:c0,decimal:f0,department:h0,employee:d0,file:p0,image:g0,location:v0,operation:m0,order:y0,people:D0,long:E0,timescope:w0,timestamp:C0,varchar:A0,gridLayoutWrap:b0,gridTable:F0,subTable:_0,address:B0,amount:S0,calc:O0,checkBox:M0,electronicSignature:x0,input:I0,number:T0,organizationSelection:P0,radio:N0,richText:$0,score:R0,searchNumberRange:L0,select:k0,selectMultiple:j0,selectRelation:q0,textarea:U0,tree:V0,vueFormItem:W0,vuePage:z0,WPS:G0,actionBar:H0,advancedContainer:Q0,cardGroup:J0,col:Z0,dataView:X0,grid:K0,gridLayoutContainer:Y0,gridRow:ed,listView:td,page:rd,position:nd,positioningContainer:id,row:ud,subtableColumn:od,subtableRow:sd,tab:ad,tabPane:ld,toolbox:cd,batchSubmissionListButton:fd,exportRecordListButton:hd,listViewSelect:dd,endTime:pd,startTime:gd,unit:vd,result:md,currency:yd,endDate:Dd,startDate:Ed,pleaseSelectCompanyName:wd,pleaseSelectPhoneOrEmail:Cd,pleaseSelectSignType:Ad,pleaseSelectSigner:bd,pleaseSelectOnlyOne:Fd,pleaseSelectSignFile:_d,pleaseSelect:Bd,pleaseSelectOrg:Sd,pleaseSelectDept:Od,pleaseSelectEndDate:Md,pleaseSelectStartDate:xd,pleaseChooseAddress:Id,modalConfirm:Td,tabChange:Pd,rowSelected:Nd,listDataImport:$d,rowDelete:Rd,rowClick:Ld,cellRender:kd,onClickBtn:jd,rename:qd,onSaveFile:Ud,onOpenFile:Vd,onFocus:Wd,onBlur:zd,onInput:Gd,listDataAdd:Hd,listDataDelete:Qd,listDataBack:Jd,listDataCreate:Zd,listDataChange:Xd,search:Kd,valueChange:Yd,finished:ep,click:tp,pleaseEnterNameorEmail:rp,pleaseEnterDate:np,pleaseEnterAutonumber:ip,pleaseEnter:up,defaultTemplate:op,left:sp,top:ap,default:"\u666E\u901A",readonly:lp,required:cp,textTip:fp,hideCaption:hp,titleRequired:dp,organizationalForm:pp,businessType:gp,deleteConfirm:vp,hide:mp,processStatus:yp,approvedDocuments:Dp,delete:Ep,edit:wp,view:Cp,loadCtrlErrorTip:Ap,loadCtrlError:bp,fullLine:Fp,min:_p,max:Bp,createWPS:Sp,reset:Op,query:Mp,detailed:xp,print:Ip,draft:Tp,save:Pp,cancel:Np,uploadImg:$p,signature:Rp,uploadFile:Lp,linkContent:kp,referenceList:jp,optionOne:qp,optionTwo:Up,optionThird:Vp},zp="Please enter a number",Gp="Please enter a string",Hp="Please enter an object",Qp="Please enter an array",Jp="Please enter a boolean",Zp="{caption} Required",Xp="Please enter the title",Kp="Please enter the bubble prompt",Yp="Please enter the row title",eg="Please enter the prompt text",tg="Please bind data items",rg="Please bind the form",ng="Please bind the list",ig="Please bind the process",ug="Please enter the displayed value",og="Please enter the stored value",sg="The document number is not bound to the data item",ag="Please select at least one display field",lg="Please enter a value greater than or equal to {min} and less than or equal to {max}",cg="Please enter a value greater than or equal to {min}",fg="Please enter a value less than or equal to {max}",hg="The value range is set incorrectly",dg="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",pg="The attachment size must be between 0MB and 1000MB",gg="Please fill in the total score setting",vg="The total score cannot be less than 1",mg="The default value must be between {min} and {max}",yg="The number of attachment uploads exceeds the limit",Dg="Please re-select the optional quantity",Eg="The maximum length of the control must be greater than the minimum length",wg="The minimum length of the control must be less than the maximum length",Cg="Please select the correct option setting",Ag="Option ID cannot be repeated",bg="Please enter at least one option",Fg="Please bind the data source",_g="Please bind the stored value",Bg="Please bind the service",Sg="At least one display value must be bound",Og="Please select a province",Mg="Please select a city",xg="Please select a district",Ig="The minimum number of lines to fill in cannot be less than 0",Tg="The number of rows cannot be less than {min} rows",Pg="Please enter the column width",Ng="Please set the logical relationship of all rule conditions",$g="Please complete all rules and conditions",Rg="please select control",Lg="Please select the dashboard",kg="View name cannot be empty",jg="Please select recognition type",qg="Please select at least one field to fill in",Ug="Please select at least one",Vg="Please enter the button title",Wg="Please bind the business model in the data settings",zg="Please bind storage values in data settings",Gg="Please bind the service in the data settings",Hg="Please bind at least one display value in the data settings",Qg="Please select the root node in the data settings",Jg="Please enter the maximum height",Zg="The input content cannot be empty",Xg="Watermark cannot be empty",Kg="File name cannot be empty",Yg="Please upload at least one printing template!\uFF01",ev="Please select a specific business department",tv="Please select a specified external organization",rv="Please enter a sub table alias",nv="Please select the associated table to set the business model",iv="Please select the association table to set the binding service",uv="Select associated sub table fields",ov="Please select the associated main table field",sv="Please select the sort field",av="\u6279\u91CF\u5220\u9664",lv="\u6279\u91CF\u6253\u5370",cv="\u6279\u91CF\u6253\u5370\u8BB0\u5F55",fv="\u6309\u94AE",hv="\u521B\u5EFA\u5355\u636E",dv="\u4EEA\u8868\u76D8",pv="\u5206\u5272\u7EBF",gv="\u5BFC\u51FA",vv="\u8868\u5355\u64CD\u4F5C",mv="\u5BFC\u5165",yv="\u53D1\u7968\u8BC6\u522B",Dv="\u94FE\u63A5",Ev="\u5217\u8868\u9009\u62E9",wv="\u5217\u8868\u89C6\u56FE",Cv="\u64CD\u4F5C\u6309\u94AE",Av="\u5206\u9875",bv="\u6279\u91CF\u63D0\u4EA4\u8BB0\u5F55",Fv="\u8BF4\u660E\u6587\u5B57",_v="\u6587\u5B57\u8BC6\u522B",Bv="\u6807\u9898\u7EC4\u4EF6",Sv="\u5F53\u524D\u5BA1\u6279\u72B6\u6001",Ov="\u6570\u7EC4",Mv="\u81EA\u52A8\u7F16\u53F7",xv="\u81EA\u5B9A\u4E49",Iv="\u6570\u503C",Tv="\u90E8\u95E8",Pv="\u4EBA\u5458",Nv="\u9644\u4EF6",$v="\u56FE\u7247",Rv="\u5730\u5740",Lv="\u64CD\u4F5C",kv="\u5E8F\u53F7",jv="\u4EBA\u5458",qv="\u957F\u6587\u672C",Uv="\u65E5\u671F\u533A\u95F4",Vv="\u65E5\u671F",Wv="\u77ED\u6587\u672C",zv="\u6362\u884C\u5BB9\u5668Wrap",Gv="\u8868\u683C",Hv="\u660E\u7EC6\u5B50\u8868",Qv="\u5730\u5740",Jv="\u91D1\u989D",Zv="\u8BA1\u7B97\u516C\u5F0F",Xv="\u591A\u9009",Kv="\u7535\u5B50\u7B7E\u7AE0",Yv="\u5355\u884C\u6587\u672C",em="\u6570\u5B57",tm="\u4E1A\u52A1\u7EC4\u7EC7",rm="\u5355\u9009",nm="\u5BCC\u6587\u672C",im="\u8BC4\u5206",um="\u6570\u5B57\u533A\u95F4",om="\u4E0B\u62C9\u5355\u9009",sm="\u4E0B\u62C9\u591A\u9009",am="\u5173\u8054\u5355\u9009",lm="\u591A\u884C\u6587\u672C",cm="\u6811",fm="Vue\u5BB9\u5668",hm="Vue\u9875\u9762",dm="\u5728\u7EBF\u6587\u6863",pm="\u6309\u94AE\u64CD\u4F5C\u680F",gm="\u9AD8\u7EA7\u5BB9\u5668",vm="\u5206\u7EC4",mm="\u6805\u683C\u5217",ym="\u6570\u636E\u5BB9\u5668",Dm="\u753B\u5E03",Em="\u6362\u884C\u5BB9\u5668",wm="\u6805\u683C\u7B49\u5206\u884C",Cm="\u5217\u8868\u5BB9\u5668",Am="\u81EA\u7531\u9875\u9762",bm="\u5B9A\u4F4D\u5B50\u5BB9\u5668",Fm="\u5B9A\u4F4D\u5BB9\u5668",_m="\u6805\u683C\u5E03\u5C40",Bm="\u660E\u7EC6\u5B50\u8868\u5355\u5143\u683C",Sm="\u660E\u7EC6\u5B50\u8868\u884C",Om="\u6807\u7B7E\u9875",Mm="\u6807\u7B7E\u5355\u5143",xm="\u5DE5\u5177\u680F",Im="\u6279\u91CF\u63D0\u4EA4",Tm="\u5BFC\u51FA\u8BB0\u5F55",Pm="\u5217\u8868\u89C6\u56FE",Nm="\u5F15\u7528\u5217\u8868",$m="\u9009\u9879\u4E00",Rm="\u9009\u9879\u4E8C",Lm="\u9009\u9879\u4E09",km={isNotNumber:zp,isNotString:Gp,isNotObject:Hp,isNotArray:Qp,isNotBoolean:Jp,runtimeRequired:Zp,pleaseEnterCaption:Xp,pleaseEnterCaptionTip:Kp,pleaseEnterRowCaption:Yp,pleaseEnterPlaceholder:eg,pleaseEnterFieldCode:tg,pleaseEnterForm:rg,pleaseEnterList:ng,pleaseEnterProcess:ig,pleaseEnterLabel:ug,pleaseEnterValue:og,bizKeyNotBindFiled:sg,pleaseSelectOneField:ag,pleaseEnterNumberRange:lg,pleaseEnterAValueGreaterThanMin:cg,pleaseEnterAValueLessThanMax:fg,numberRangeSetError:hg,stringRangeError:dg,attachmentMaxSize:pg,pleaseEnterTotalScoreSetting:gg,theTotalScoreMustNotBeLessThan1:vg,scoreDefaultValueRange:mg,attachmentLimitError:yg,PleaseReselectTheOptionalQuantity:Dg,TheMaximumLengthIsGreaterThanTheMinimumLength:Eg,TheMinimumLengthIsGreaterThanTheMaximumLength:wg,PleaseSelectTheCorrectOptionSettings:Cg,optionIdIsRepeat:Ag,optionIsRequired:bg,pleaseEnterDataCode:Fg,pleaseEnterValueFieldCode:_g,pleaseEnterSvcCode:Bg,pleaseBindAtLeastOneDisplayValue:Sg,pleaseSelectProvince:Og,pleaseSelectCity:Mg,pleaseSelectDistrict:xg,limitRowsCannotBeLessThan0:Ig,TheNumberOfRowsCannotBeLessThanMinRows:Tg,pleaseEnterColumnWidth:Pg,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Ng,pleaseCompleteAllRulesAndConditions:$g,pleaseSelectControl:Rg,pleaseSelectDashboard:Lg,theViewNameCannotBeEmpty:kg,pleaseSelectOcrType:jg,pleaseSelectAtLeastOneFieldToFillIn:qg,pleaseChooseAtLeastOne:Ug,pleaseEnterButtonContent:Vg,pleaseEnterDataCodeInDataSetting:Wg,pleaseEnterValueFieldCodeInDataSetting:zg,pleaseEnterSvcCodeInDataSetting:Gg,pleaseBindAtLeastOneDisplayValueInDataSetting:Hg,rootNodeIsRequiredInDataSetting:Qg,pleaseEnterMaxHeight:Jg,pleaseEnter:Zg,pleaseEnterWatermark:Xg,pleaseEnterFileName:Kg,pleaseUploadAtLeastOnePrintTemplate:Yg,pleaseAssignBusiness:ev,pleaseAssignExternal:tv,pleaseEnterAliasCode:rv,pleaseSelectDataCode:nv,pleaseSelectSvcCode:iv,pleaseSelectJoinFieldCode:uv,pleaseSelectMainFieldCode:ov,pleaseSelectSortFieldCode:sv,batchDeleteButton:av,batchPrintListButton:lv,batchPrintRecordList:cv,button:fv,createFormListButton:hv,dashboard:dv,divider:pv,exportListButton:gv,formSelectButton:vv,importRecordListButton:mv,invoiceCheckButton:yv,link:Dv,listSelectButton:Ev,ListViewSelect:wv,operationButton:Cv,pagination:Av,submissionRecordListButton:bv,text:Fv,textOcrButton:_v,title:Bv,approvalStatusColumn:Sv,array:Ov,autoNumber:Mv,custom:xv,decimal:Iv,department:Tv,employee:Pv,file:Nv,image:$v,location:Rv,operation:Lv,order:kv,people:jv,long:qv,timescope:Uv,timestamp:Vv,varchar:Wv,gridLayoutWrap:zv,gridTable:Gv,subTable:Hv,address:Qv,amount:Jv,calc:Zv,checkBox:Xv,electronicSignature:Kv,input:Yv,number:em,organizationSelection:tm,radio:rm,richText:nm,score:im,searchNumberRange:um,select:om,selectMultiple:sm,selectRelation:am,textarea:lm,tree:cm,vueFormItem:fm,vuePage:hm,WPS:dm,actionBar:pm,advancedContainer:gm,cardGroup:vm,col:mm,dataView:ym,grid:Dm,gridLayoutContainer:Em,gridRow:wm,listView:Cm,page:Am,position:bm,positioningContainer:Fm,row:_m,subtableColumn:Bm,subtableRow:Sm,tab:Om,tabPane:Mm,toolbox:xm,batchSubmissionListButton:Im,exportRecordListButton:Tm,listViewSelect:Pm,referenceList:Nm,optionOne:$m,optionTwo:Rm,optionThird:Lm},jm="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",qm="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Um="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Vm="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Wm="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",zm="{caption}\u5FC5\u9808",Gm="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Hm="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Qm="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Jm="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Zm="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Xm="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Km="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ym="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",e1="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",t1="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",r1="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",n1="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",i1="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",u1="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",o1="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",s1="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",a1="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",l1="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",c1="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",f1="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",h1="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",d1="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u6570\u304C\u5236\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059",p1="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",g1="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5927\u5024\u306F\u6700\u5C0F\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",v1="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5C0F\u5024\u306F\u6700\u5927\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",m1="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",y1="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",D1="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",E1="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",w1="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",C1="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",A1="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",b1="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",F1="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",_1="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",B1="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",S1="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",O1="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",M1="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",x1="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",I1="please select control",T1="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",P1="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",N1="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",$1="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",R1="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",L1="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",k1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",j1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",q1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",U1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",V1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",W1="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",z1="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",G1="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",H1="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Q1="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",J1="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Z1="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",X1="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",K1="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",Y1="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ey="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",ty="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ry="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ny="\u6279\u91CF\u5220\u9664",iy="\u6279\u91CF\u6253\u5370",uy="\u6279\u91CF\u6253\u5370\u8BB0\u5F55",oy="\u6309\u94AE",sy="\u521B\u5EFA\u5355\u636E",ay="\u4EEA\u8868\u76D8",ly="\u5206\u5272\u7EBF",cy="\u5BFC\u51FA",fy="\u8868\u5355\u64CD\u4F5C",hy="\u5BFC\u5165",dy="\u53D1\u7968\u8BC6\u522B",py="\u94FE\u63A5",gy="\u5217\u8868\u9009\u62E9",vy="\u5217\u8868\u89C6\u56FE",my="\u64CD\u4F5C\u6309\u94AE",yy="\u5206\u9875",Dy="\u6279\u91CF\u63D0\u4EA4\u8BB0\u5F55",Ey="\u8BF4\u660E\u6587\u5B57",wy="\u6587\u5B57\u8BC6\u522B",Cy="\u6807\u9898\u7EC4\u4EF6",Ay="\u5F53\u524D\u5BA1\u6279\u72B6\u6001",by="\u6570\u7EC4",Fy="\u81EA\u52A8\u7F16\u53F7",_y="\u81EA\u5B9A\u4E49",By="\u6570\u503C",Sy="\u90E8\u95E8",Oy="\u4EBA\u5458",My="\u9644\u4EF6",xy="\u56FE\u7247",Iy="\u5730\u5740",Ty="\u64CD\u4F5C",Py="\u5E8F\u53F7",Ny="\u4EBA\u5458",$y="\u957F\u6587\u672C",Ry="\u65E5\u671F\u533A\u95F4",Ly="\u65E5\u671F",ky="\u77ED\u6587\u672C",jy="\u6362\u884C\u5BB9\u5668Wrap",qy="\u8868\u683C",Uy="\u660E\u7EC6\u5B50\u8868",Vy="\u5730\u5740",Wy="\u91D1\u989D",zy="\u8BA1\u7B97\u516C\u5F0F",Gy="\u591A\u9009",Hy="\u7535\u5B50\u7B7E\u7AE0",Qy="\u5355\u884C\u6587\u672C",Jy="\u6570\u5B57",Zy="\u4E1A\u52A1\u7EC4\u7EC7",Xy="\u5355\u9009",Ky="\u5BCC\u6587\u672C",Yy="\u8BC4\u5206",eD="\u6570\u5B57\u533A\u95F4",tD="\u4E0B\u62C9\u5355\u9009",rD="\u4E0B\u62C9\u591A\u9009",nD="\u5173\u8054\u5355\u9009",iD="\u591A\u884C\u6587\u672C",uD="\u6811",oD="Vue\u5BB9\u5668",sD="Vue\u9875\u9762",aD="\u5728\u7EBF\u6587\u6863",lD="\u6309\u94AE\u64CD\u4F5C\u680F",cD="\u9AD8\u7EA7\u5BB9\u5668",fD="\u5206\u7EC4",hD="\u6805\u683C\u5217",dD="\u6570\u636E\u5BB9\u5668",pD="\u753B\u5E03",gD="\u6362\u884C\u5BB9\u5668",vD="\u6805\u683C\u7B49\u5206\u884C",mD="\u5217\u8868\u5BB9\u5668",yD="\u81EA\u7531\u9875\u9762",DD="\u5B9A\u4F4D\u5B50\u5BB9\u5668",ED="\u5B9A\u4F4D\u5BB9\u5668",wD="\u6805\u683C\u5E03\u5C40",CD="\u660E\u7EC6\u5B50\u8868\u5355\u5143\u683C",AD="\u660E\u7EC6\u5B50\u8868\u884C",bD="\u6807\u7B7E\u9875",FD="\u6807\u7B7E\u5355\u5143",_D="\u5DE5\u5177\u680F",BD="\u6279\u91CF\u63D0\u4EA4",SD="\u5BFC\u51FA\u8BB0\u5F55",OD="\u5217\u8868\u89C6\u56FE",MD="\u5F15\u7528\u5217\u8868",xD="\u9009\u9879\u4E00",ID="\u9009\u9879\u4E8C",TD="\u9009\u9879\u4E09",PD={isNotNumber:jm,isNotString:qm,isNotObject:Um,isNotArray:Vm,isNotBoolean:Wm,runtimeRequired:zm,pleaseEnterCaption:Gm,pleaseEnterCaptionTip:Hm,pleaseEnterRowCaption:Qm,pleaseEnterPlaceholder:Jm,pleaseEnterFieldCode:Zm,pleaseEnterForm:Xm,pleaseEnterList:Km,pleaseEnterProcess:Ym,pleaseEnterLabel:e1,pleaseEnterValue:t1,bizKeyNotBindFiled:r1,pleaseSelectOneField:n1,pleaseEnterNumberRange:i1,pleaseEnterAValueGreaterThanMin:u1,pleaseEnterAValueLessThanMax:o1,numberRangeSetError:s1,stringRangeError:a1,attachmentMaxSize:l1,pleaseEnterTotalScoreSetting:c1,theTotalScoreMustNotBeLessThan1:f1,scoreDefaultValueRange:h1,attachmentLimitError:d1,PleaseReselectTheOptionalQuantity:p1,TheMaximumLengthIsGreaterThanTheMinimumLength:g1,TheMinimumLengthIsGreaterThanTheMaximumLength:v1,PleaseSelectTheCorrectOptionSettings:m1,optionIdIsRepeat:y1,optionIsRequired:D1,pleaseEnterDataCode:E1,pleaseEnterValueFieldCode:w1,pleaseEnterSvcCode:C1,pleaseBindAtLeastOneDisplayValue:A1,pleaseSelectProvince:b1,pleaseSelectCity:F1,pleaseSelectDistrict:_1,limitRowsCannotBeLessThan0:B1,TheNumberOfRowsCannotBeLessThanMinRows:S1,pleaseEnterColumnWidth:O1,pleaseSetTheLogicalRelationshipOfAllRuleConditions:M1,pleaseCompleteAllRulesAndConditions:x1,pleaseSelectControl:I1,pleaseSelectDashboard:T1,theViewNameCannotBeEmpty:P1,pleaseSelectOcrType:N1,pleaseSelectAtLeastOneFieldToFillIn:$1,pleaseChooseAtLeastOne:R1,pleaseEnterButtonContent:L1,pleaseEnterDataCodeInDataSetting:k1,pleaseEnterValueFieldCodeInDataSetting:j1,pleaseEnterSvcCodeInDataSetting:q1,pleaseBindAtLeastOneDisplayValueInDataSetting:U1,rootNodeIsRequiredInDataSetting:V1,pleaseEnterMaxHeight:W1,pleaseEnter:z1,pleaseEnterWatermark:G1,pleaseEnterFileName:H1,pleaseUploadAtLeastOnePrintTemplate:Q1,pleaseAssignBusiness:J1,pleaseAssignExternal:Z1,pleaseEnterAliasCode:X1,pleaseSelectDataCode:K1,pleaseSelectSvcCode:Y1,pleaseSelectJoinFieldCode:ey,pleaseSelectMainFieldCode:ty,pleaseSelectSortFieldCode:ry,batchDeleteButton:ny,batchPrintListButton:iy,batchPrintRecordList:uy,button:oy,createFormListButton:sy,dashboard:ay,divider:ly,exportListButton:cy,formSelectButton:fy,importRecordListButton:hy,invoiceCheckButton:dy,link:py,listSelectButton:gy,ListViewSelect:vy,operationButton:my,pagination:yy,submissionRecordListButton:Dy,text:Ey,textOcrButton:wy,title:Cy,approvalStatusColumn:Ay,array:by,autoNumber:Fy,custom:_y,decimal:By,department:Sy,employee:Oy,file:My,image:xy,location:Iy,operation:Ty,order:Py,people:Ny,long:$y,timescope:Ry,timestamp:Ly,varchar:ky,gridLayoutWrap:jy,gridTable:qy,subTable:Uy,address:Vy,amount:Wy,calc:zy,checkBox:Gy,electronicSignature:Hy,input:Qy,number:Jy,organizationSelection:Zy,radio:Xy,richText:Ky,score:Yy,searchNumberRange:eD,select:tD,selectMultiple:rD,selectRelation:nD,textarea:iD,tree:uD,vueFormItem:oD,vuePage:sD,WPS:aD,actionBar:lD,advancedContainer:cD,cardGroup:fD,col:hD,dataView:dD,grid:pD,gridLayoutContainer:gD,gridRow:vD,listView:mD,page:yD,position:DD,positioningContainer:ED,row:wD,subtableColumn:CD,subtableRow:AD,tab:bD,tabPane:FD,toolbox:_D,batchSubmissionListButton:BD,exportRecordListButton:SD,listViewSelect:OD,referenceList:MD,optionOne:xD,optionTwo:ID,optionThird:TD},Xi={zhCN:Wp,enUS:km,jaJP:PD},qt=function(t){return t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable",t}({}),Fn=function(t){return t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN",t}({}),Ki,ds=(Ki=window.localStorage.getItem("locale"))!==null&&Ki!==void 0?Ki:"zh-CN",de=function(t){return t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search",t}({}),Te=function(t){return t.TITLE="title",t.LINK="link",t.IFRAME="iframe",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.ORGANIZATION_SELECTION="organization-selection",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.COMMENT="comment",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.OPERATION_BUTTON="operation-button",t.EMPLOYEE_COLUMN="employee-column",t.Approval_Status_Column="approval-status-column",t.GROUP_COLUMN="group-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.CASCADER="cascader",t.COUNTER="counter",t.SLIDER="slider",t.SWITCH="switch",t.TAG="tag",t.BARCODE="barcode",t.QR_CODE="qr-code",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.TIME_PICKER="time-picker",t.TIME_RANGE="time-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.BLANK_CONTAINER="blank-container",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.GRID_LAYOUT_CONTAINER="grid-layout-container",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.ACTION_BAR="action-bar",t.TABLE_LAYOUT="table-layout",t.TABLE_LAYOUT_ROW="table-layout-row",t.TABLE_LAYOUT_COL="table-layout-col",t.TABLE_LAYOUT_WRAPPER="table-layout-wrapper",t.COLLAPSE="collapse",t.COLLAPSE_PANE="collapse-pane",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.BAR_CHART="bar-chart",t.LINE_CHART="line-chart",t.PIE_CHART="pie-chart",t.TREE="tree",t.EMPLOYEE2="employee2",t.DEPARTMENT2="department2",t.GRID_LAYOUT_WRAP="grid-layout-wrap",t.VUE_PAGE="vue-page",t.REFERENCE_LIST="reference-list",t.STEP="step",t.STEP_PANE="step-pane",t}({}),qe=function(t){return t.VARCHAR="varchar",t.TEXT="text",t.ARRAY="array",t.ADDRESS="location",t.DECIMAL="decimal",t.DECIMAL_RANGE="decimal_range",t.TIMESTAMP="timestamp",t.EMPLOYEES="people",t.DEPARTMENTS="department",t.MONEY="money",t.TIMESCOPE="timescope",t.FILE="file",t.IMAGE="image",t.AUTO_NUMBER="auto_number",t.CALC="calc",t.LIST="list",t.JSON="json",t.ANY="ANY",t}({}),ps="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ND=ps+"0123456789";function _n(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",r=0;r<t;r++){var n=r===0?ps:ND,i=Math.random()*n.length;e+=n[parseInt(String(i),10)]}return e}function Yi(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function $D(t){if(Array.isArray(t))return Yi(t)}function RD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gs(t,e,r){return e=Hr(e),qD(t,tu()?Reflect.construct(e,r||[],Hr(t).constructor):e.apply(t,r))}function vs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bn(t,e,r){return tu()?Bn=Reflect.construct:Bn=function(i,u,o){var a=[null];a.push.apply(a,u);var s=Function.bind.apply(i,a),c=new s;return o&&Qr(c,o.prototype),c},Bn.apply(null,arguments)}function Hr(t){return Hr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Hr(t)}function ms(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qr(t,e)}function LD(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function kD(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function jD(){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 qD(t,e){return e&&(UD(e)==="object"||typeof e=="function")?e:RD(t)}function Qr(t,e){return Qr=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Qr(t,e)}function ys(t){return $D(t)||kD(t)||VD(t)||jD()}function UD(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function VD(t,e){if(!!t){if(typeof t=="string")return Yi(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yi(t,e)}}function eu(t){var e=typeof Map=="function"?new Map:void 0;return eu=function(n){if(n===null||!LD(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Bn(n,arguments,Hr(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Qr(i,n)},eu(t)}function tu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(tu=function(){return!!t})()}var ru=console;function Ar(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=e.slice(1);(n=ru).warn.apply(n,["\u{1F9D0} Driven Warning:"+e[0]].concat(ys(i)))}function nu(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=e.slice(1);(n=ru).log.apply(n,["\u{1F680} Driven Log:"+e[0]].concat(ys(i)))}function WD(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var iu=function(t){ms(e,t);function e(r){vs(this,e);var n;return n=gs(this,e,[r]),n.name="\u{1F4A5} Driven Error",n.message=r?WD(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",n}return e}(eu(Error)),zD=function(t){ms(e,t);function e(r){vs(this,e);var n;return n=gs(this,e,[r]),n.name="\u{1F6A8} Driven Reference Error",n}return e}(iu);function Ut(t){throw new iu(t)}function Ds(t){throw new zD(t)}function Sn(t){ru.error(new iu(t))}function Vt(t,e){Array.isArray(t)&&t.map(function(r){switch(r.controlType){case"layout":Vt(r==null?void 0:r.children,e);break;case"wrap":Vt(r==null?void 0:r.children,e);break;case"search":Vt(r==null?void 0:r.children,e);break;case"form":e(r)}})}function GD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Es(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function HD(t,e,r){return e&&Es(t.prototype,e),r&&Es(t,r),t}function QD(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ws=function(){function t(){GD(this,t)}return HD(t,null,[{key:"getMessage",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i;return ue("CMD."+r,n,Xi==null||(i=Xi[ds.split("-").join("")])===null||i===void 0?void 0:i[r])}},{key:"resetI18n",value:function(){}},{key:"setLocale",value:function(r,n){}}]),t}();QD(ws,"$i18n",ws.resetI18n());function uu(t,e,r){var n=e.replace(/\[(\d)]/g,function(u,o){return"."+o}).split("."),i=!1;return n.reduce(function(u,o,a,s){var c=u;if(!!u){if(!Object.prototype.hasOwnProperty.call(u,o)){Ar("Can not set ".concat(e,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),u,u);return}return a===s.length-1&&!Object.is(c[o],r)&&(c[o]=r,i=!0),c[o]}},t),i}var Xt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function JD(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ou={exports:{}};(function(t){(function(e){var r=function(p,m,D){if(!c(m)||f(m)||h(m)||g(m)||s(m))return m;var E,w=0,_=0;if(l(m))for(E=[],_=m.length;w<_;w++)E.push(r(p,m[w],D));else{E={};for(var O in m)Object.prototype.hasOwnProperty.call(m,O)&&(E[p(O,D)]=r(p,m[O],D))}return E},n=function(p,m){m=m||{};var D=m.separator||"_",E=m.split||/(?=[A-Z])/;return p.split(E).join(D)},i=function(p){return y(p)?p:(p=p.replace(/[\-_\s]+(.)?/g,function(m,D){return D?D.toUpperCase():""}),p.substr(0,1).toLowerCase()+p.substr(1))},u=function(p){var m=i(p);return m.substr(0,1).toUpperCase()+m.substr(1)},o=function(p,m){return n(p,m).toLowerCase()},a=Object.prototype.toString,s=function(p){return typeof p=="function"},c=function(p){return p===Object(p)},l=function(p){return a.call(p)=="[object Array]"},f=function(p){return a.call(p)=="[object Date]"},h=function(p){return a.call(p)=="[object RegExp]"},g=function(p){return a.call(p)=="[object Boolean]"},y=function(p){return p=p-0,p===p},d=function(p,m){var D=m&&"process"in m?m.process:m;return typeof D!="function"?p:function(E,w){return D(E,p,w)}},v={camelize:i,decamelize:o,pascalize:u,depascalize:o,camelizeKeys:function(p,m){return r(d(i,m),p)},decamelizeKeys:function(p,m){return r(d(o,m),p,m)},pascalizeKeys:function(p,m){return r(d(u,m),p)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=v:e.humps=v})(Xt)})(ou);var Cs={};Object.defineProperty(Cs,"__esModule",{value:!0});function su(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:su(e));{const e={};for(const r in t){const n=t[r];e[r]=typeof n!="object"||n===null?n:su(n)}return e}}var ZD=Cs.default=su;function As(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function we(t){if(t!==void 0)return(typeof t=="undefined"?"undefined":As(t))==="object"?ZD(t):t}function St(t){return Object.prototype.toString.call(t)==="[object Object]"}function XD(t){return t!=null&&(typeof t=="undefined"?"undefined":As(t))==="object"&&Array.isArray(t)===!1}function fr(t){return Array.isArray(t)}function tt(t){return typeof t=="string"}function On(t){return typeof t=="number"}function bs(t){return typeof t=="function"}function KD(t){return fr(t)&&t.every(function(e){return tt(e)})}function YD(t){return fr(t)&&t.every(function(e){return On(e)||e===""})}function Fs(t){return/^\[.*?]$/.test(t)}function Mn(t){return/^{.*?}$/.test(t)}function eE(t){return Object.values(Te).includes(t)}function au(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tE(t){if(Array.isArray(t))return au(t)}function _s(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function rE(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){_s(u,n,i,o,a,"next",s)}function a(s){_s(u,n,i,o,a,"throw",s)}o(void 0)})}}function nE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function iE(t,e,r){return e&&Bs(t.prototype,e),r&&Bs(t,r),t}function Ss(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uE(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function oE(){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 lu(t){return tE(t)||uE(t)||sE(t)||oE()}function sE(t,e){if(!!t){if(typeof t=="string")return au(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return au(t,e)}}function aE(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var Os=function(){function t(){nE(this,t),Ss(this,"_events",new Map),Ss(this,"debug",!1)}return iE(t,[{key:"emit",value:function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),u=1;u<n;u++)i[u-1]=arguments[u];return rE(function(){var o,a,s,c,l,f,h,g,y,d,v,p;return aE(this,function(m){switch(m.label){case 0:if(o=this._events.get(r),a=[],!o)return[3,10];s=o.slice(),c=!0,l=!1,f=void 0,m.label=1;case 1:m.trys.push([1,8,9,10]),h=s[Symbol.iterator](),m.label=2;case 2:if(c=(g=h.next()).done)return[3,7];if(y=g.value,!o.includes(y))return[3,6];m.label=3;case 3:return m.trys.push([3,5,,6]),this.debug&&nu.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \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(i.map(function(){return"%o"}).join(","),"\u3002")].concat(lu(i))),[4,y.apply(null,lu(i))];case 4:return d=m.sent(),this.debug&&nu.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \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(i.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(lu(i),[d])),a.push(d),d===!1?[3,7]:[3,6];case 5:return v=m.sent(),Sn(String(v)+":"+String(v.stack)),[3,6];case 6:return c=!0,[3,2];case 7:return[3,10];case 8:return p=m.sent(),l=!0,f=p,[3,10];case 9:try{!c&&h.return!=null&&h.return()}finally{if(l)throw f}return[7];case 10:return[2,a]}})}).call(this)}},{key:"on",value:function(r,n){if(this._events.has(r)){var i;(i=this._events.get(r))===null||i===void 0||i.push(n)}else this._events.set(r,[n])}},{key:"off",value:function(r,n){if(this._events.has(r)){var i=this._events.get(r),u=i==null?void 0:i.indexOf(n);i==null||i.splice(u,1)}}},{key:"delete",value:function(r){this._events.has(r)&&this._events.delete(r)}},{key:"clear",value:function(){this._events=new Map}}]),t}();function lE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ms(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function cE(t,e,r){return e&&Ms(t.prototype,e),r&&Ms(t,r),t}function fE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var hE=[{key:"on_click",name:ue("CMD.click",null,"\u70B9\u51FB\u65F6"),code:"click"},{key:"on_click_finish",name:ue("CMD.finished",null,"\u6267\u884C\u5B8C\u6210\u65F6"),code:"click-finish"},{key:"on_change",name:ue("CMD.valueChange",null,"\u503C\u53D1\u751F\u53D8\u5316\u65F6"),code:"change"},{key:"on_search",name:ue("CMD.search",null,"\u641C\u7D22\u65F6"),code:"search"},{key:"on_file_actions",name:ue("CMD.onClickFileBtn",null,"\u70B9\u51FB\u6587\u4EF6\u6309\u94AE\u65F6"),code:"file-actions"},{key:"on_tree_search",name:ue("CMD.treeDataCreate",null,"\u6811\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6"),code:"tree-search"},{key:"on_list_change",name:ue("CMD.listDataChange",null,"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6"),code:"list-change"},{key:"on_chart_change",name:ue("CMD.chartDataChange",null,"\u56FE\u8868\u6570\u636E\u53D8\u5316\u65F6"),code:"chart-change"},{key:"on_list_search",name:ue("CMD.listDataCreate",null,"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6"),code:"list-search"},{key:"on_list_mounted",name:ue("CMD.listDataBack",null,"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6"),code:"list-mounted"},{key:"on_list_delete",name:ue("CMD.listDataDelete",null,"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6"),code:"list-delete"},{key:"on_list_before_insert",name:ue("CMD.listDataAdd",null,"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D"),code:"list-before-insert"},{key:"on_input",name:ue("CMD.onInput",null,"\u7528\u6237\u8F93\u5165\u65F6"),code:"input"},{key:"on_blur",name:ue("CMD.onBlur",null,"\u5931\u53BB\u7126\u70B9\u65F6"),code:"blur"},{key:"on_focus",name:ue("CMD.onFocus",null,"\u83B7\u53D6\u7126\u70B9\u65F6"),code:"focus"},{key:"on_wps_open",name:ue("CMD.onOpenFile",null,"\u6253\u5F00\u6587\u4EF6\u65F6"),code:"wps-open"},{key:"on_wps_save",name:ue("CMD.onSaveFile",null,"\u4FDD\u5B58\u6587\u4EF6\u65F6"),code:"wps-save"},{key:"on_wps_rename",name:ue("CMD.rename",null,"\u91CD\u547D\u540D\u65F6"),code:"wps-rename"},{key:"on_list_actions",name:ue("CMD.onClickBtn",null,"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6"),code:"list-actions"},{key:"on_list_render_operation",name:ue("CMD.cellRender",null,"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6"),code:"list-render-operation"},{key:"on_list_rowclick",name:ue("CMD.rowClick",null,"\u884C\u70B9\u51FB\u65F6"),code:"list-rowclick"},{key:"on_list_before_rowdelete",name:ue("CMD.rowDelete",null,"\u884C\u5220\u9664\u524D"),code:"list-before-rowdelete"},{key:"on_list_before_import",name:ue("CMD.listDataImport",null,"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D"),code:"list-before-import"},{key:"on_list_rows_checked",name:ue("CMD.rowSelected",null,"\u884C\u9009\u4E2D\u65F6"),code:"list-rows-checked"},{key:"on_change_tab",name:ue("CMD.tabChange",null,"\u6807\u7B7E\u9875\u5207\u6362\u65F6"),code:"change-tab"},{key:"on_modal_ok",name:ue("CMD.modalConfirm",null,"\u5F39\u7A97\u786E\u8BA4\u65F6"),code:"modal-ok"},{key:"on_change_steps",name:ue("CMD.stepsChange",null,"\u6B65\u9AA4\u5207\u6362\u65F6"),code:"change-steps"},{key:"on_option_selected",name:ue("CMD.optionSelected",null,"DOM\u70B9\u51FBoption\u4E8B\u4EF6"),code:"option_selected"}],xs=function(){function t(){lE(this,t)}return cE(t,null,[{key:"getEventsFromKeys",value:function(r){var n=typeof r=="string"?[r]:r;return t.events.filter(function(i){return n.includes(i.key)})}},{key:"getEventsFromControl",value:function(r){var n=[],i=r.eventKeys;n=n.concat(t.events.filter(function(o){return i.includes(o.key)}));var u=r.customEvents.map(function(o){var a=o.key;return o.namespace!==void 0&&o.namespace!==null&&o.namespace!==""&&(a=o.namespace+":"+o.key),{key:a,code:o.key,name:o.name}});return n=n.concat(u),n}}]),t}();fE(xs,"events",hE);function cu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function dE(t){if(Array.isArray(t))return cu(t)}function pE(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gE(){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 Is(t){return dE(t)||pE(t)||vE(t)||gE()}function vE(t,e){if(!!t){if(typeof t=="string")return cu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cu(t,e)}}function fu(t,e){var r;!((r=Object.getOwnPropertyDescriptors(t)[e])===null||r===void 0)&&r.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function Ts(t,e,r){r!=="Runtime"&&(t.parent=e,fu(t,"parent"))}function mE(t,e,r){t.forEach(function(n){Ts(n,e,r)})}var Ps=Symbol("targetKey");function Ns(t){var e;return(e=t[Ps])!==null&&e!==void 0?e:t}function $s(t,e,r){return mE(t,e,r),new Proxy(t,{get:function(i,u){for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];var c;return u===Ps?i:(c=Reflect).get.apply(c,[i,u].concat(Is(a)))},set:function(i,u,o){for(var a=arguments.length,s=new Array(a>3?a-3:0),c=3;c<a;c++)s[c-3]=arguments[c];var l;if(fr(t)&&u==="length"&&o===t.length)return!0;var f=(l=Reflect).set.apply(l,[i,u,o].concat(Is(s)));return St(o)&&Ts(o,e,r),f}})}function hu(t,e,r,n,i){var u=n!=null?n:t,o=$s(Ns(r!=null?r:[]),u,i);Object.defineProperty(t,e,{get:function(){return o},set:function(s){o=$s(Ns(s),u,i)},enumerable:!0})}function yE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function DE(t,e,r){return e&&Rs(t.prototype,e),r&&Rs(t,r),t}function Kt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ls=[],Jr=function(){function t(e){yE(this,t),Kt(this,"registeredControlTypes",new Set),Kt(this,"controlConfigMap",new Map),Kt(this,"_controls",[]),Kt(this,"_type",void 0),this._type=e,this._initControls(e)}return DE(t,[{key:"registerControlConfig",value:function(r,n){return this.controlConfigMap.set(r,n),this}},{key:"getControlConfig",value:function(r){return this.controlConfigMap.get(r)}},{key:"getControls",value:function(){return this._controls}},{key:"register",value:function(r){r.__is_control__||Ut("".concat(r.name," is not a Control"));var n=this._controls.findIndex(function(i){return i.controlType===r.controlType});return n>-1&&(Ar("The ".concat(r.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(n,1)),this.registeredControlTypes.add(r.controlType),this._controls.push(r),this}},{key:"isLayoutControl",value:function(r){return r.controlType===de.LAYOUT}},{key:"isFormControl",value:function(r){return r.controlType===de.FORM}},{key:"isListControl",value:function(r){return r.controlType===de.LIST}},{key:"isColumnControl",value:function(r){return r.controlType===de.COLUMN}},{key:"createControl",value:function(r,n){var i=this;if(Array.isArray(r))return r.map(function(l){return i.createControl(l,n)});if(r.children&&(r.children=r.children.map(function(l){return i.createControl(l,n)})),this.isListControl(r)){var u=r.props;u.headers&&(u.headers=u.headers.map(function(l){return i.createControl(l,n)}))}var o=this.getControlFormType(r.type);if(o){var a=r;if(typeof n=="function"){var s=n(a);s&&(a=s)}var c;return o.mode==="Runtime"?(c=a,c.fieldType=o.controlFieldType,this._setParentPrototypeToSchema(c,this)):c=new o(a),c}else Ut("The constructor of ".concat(r.type," could not be found, please confirm that the constructor has been registered"))}},{key:"resetInstanceParent",value:function(r,n){delete r.parent,Object.defineProperty(r,"parent",{configurable:!0,get:function(){return n}}),fu(r,"parent")}},{key:"_setParentPrototypeToSchema",value:function(r,n){n._type==="Runtime"&&(Object.defineProperty(r,"parent",{configurable:!0,get:function(){var u=r.id,o=n._controlParentIdMap,a=n.instanceMap;if(!(!o||!a)){var s=o[u],c=a[u];if(!(!s&&!c)){var l=c.findIndex(function(g){return g==r}),f=a[s]||[],h;return f.length!==c.length?h=f[0]:h=f[l],h}}}}),fu(r,"parent"))}},{key:"createControlInstance",value:function(r,n){var i=this.getControlFormType(r);if(i)return new i(n)}},{key:"getControlFormType",value:function(r){return this._controls.find(function(n){return n.controlType===r})}},{key:"_initControls",value:function(r){var n=this;this.constructor.staticControls.forEach(function(i){n.register(i[r]),t.staticControlsRuntimeRules.set(i.Runtime.controlType,i.Property.RuntimeRules),i.Property.mode=r})}}],[{key:"staticGetRules",value:function(r,n){var i=t.staticControlsRuntimeRules.get(r),u=[];if(i){var o=new i(n);u=Array.from(o)}return u}},{key:"register",value:function(r,n){var i=r.Designer,u=r.Runtime,o=r.Property;(!i||!u||!i.__is_control__||!u.__is_control__)&&Ut("".concat(r," is can't register as a Control"));var a=this.staticControls.findIndex(function(s){return s.Designer.controlType===i.controlType});return a>-1&&(Ar("The ".concat(i.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(a,1)),this.staticRegisteredTypes.add(i.controlType),this.staticControls.push(r),o.mode=n,this}}]),t}();Kt(Jr,"staticControlsRuntimeRules",new Map),Kt(Jr,"staticControls",Ls),Kt(Jr,"staticRegisteredTypes",new Set(Ls.map(function(t){return t.Designer.controlType}))),Kt(Jr,"staticRegisteredConfigs",new Map);function hr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Be(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var du=function t(e){hr(this,t);var r,n,i;Be(this,"dataCode",void 0),Be(this,"fieldCode",void 0),Be(this,"fieldType",void 0),Be(this,"aliasCode",void 0),this.dataCode=(r=e==null?void 0:e.dataCode)!==null&&r!==void 0?r:"",this.fieldCode=(n=e==null?void 0:e.fieldCode)!==null&&n!==void 0?n:"",this.fieldType=(i=e==null?void 0:e.fieldType)!==null&&i!==void 0?i:"",this.aliasCode=e==null?void 0:e.aliasCode},EE=function t(e){hr(this,t);var r,n;Be(this,"minWidth",void 0),Be(this,"maxWidth",void 0),Be(this,"flex",void 0),this.minWidth=(r=e==null?void 0:e.minWidth)!==null&&r!==void 0?r:150,this.maxWidth=e==null?void 0:e.maxWidth,this.flex=(n=e==null?void 0:e.flex)!==null&&n!==void 0?n:1},pu=function t(e){hr(this,t);var r,n;Be(this,"amount",void 0),Be(this,"currency",void 0),this.amount=(r=e==null?void 0:e.amount)!==null&&r!==void 0?r:"",this.currency=(n=e==null?void 0:e.currency)!==null&&n!==void 0?n:"CNY"},gu=function t(e){hr(this,t);var r,n;Be(this,"min",void 0),Be(this,"max",void 0),this.min=(r=e==null?void 0:e.min)!==null&&r!==void 0?r:"",this.max=(n=e==null?void 0:e.max)!==null&&n!==void 0?n:""},vu=function t(e){hr(this,t);var r,n,i,u,o,a,s,c;Be(this,"country",void 0),Be(this,"countryDisplay",void 0),Be(this,"city",void 0),Be(this,"cityDisplay",void 0),Be(this,"district",void 0),Be(this,"districtDisplay",void 0),Be(this,"province",void 0),Be(this,"provinceDisplay",void 0),this.country=(r=e==null?void 0:e.country)!==null&&r!==void 0?r:"",this.countryDisplay=(n=e==null?void 0:e.countryDisplay)!==null&&n!==void 0?n:"",this.city=(i=e==null?void 0:e.city)!==null&&i!==void 0?i:"",this.cityDisplay=(u=e==null?void 0:e.cityDisplay)!==null&&u!==void 0?u:"",this.district=(o=e==null?void 0:e.district)!==null&&o!==void 0?o:"",this.districtDisplay=(a=e==null?void 0:e.districtDisplay)!==null&&a!==void 0?a:"",this.province=(s=e==null?void 0:e.province)!==null&&s!==void 0?s:"",this.provinceDisplay=(c=e==null?void 0:e.provinceDisplay)!==null&&c!==void 0?c:""},mu=function t(e){hr(this,t);var r,n;Be(this,"result",void 0),Be(this,"unit",void 0),this.result=(r=e==null?void 0:e.result)!==null&&r!==void 0?r:0,this.unit=(n=e==null?void 0:e.unit)!==null&&n!==void 0?n:""},wE=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t}({}),CE=function t(e){hr(this,t);var r,n,i,u;Be(this,"width",void 0),Be(this,"height",void 0),Be(this,"widthConfig",void 0),Be(this,"heightConfig",void 0),this.width=(r=e==null?void 0:e.width)!==null&&r!==void 0?r:"",this.height=(n=e==null?void 0:e.height)!==null&&n!==void 0?n:"",this.widthConfig=(i=e==null?void 0:e.widthConfig)!==null&&i!==void 0?i:"fill",this.heightConfig=(u=e==null?void 0:e.heightConfig)!==null&&u!==void 0?u:"fill"};function AE(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bE(t,e,r){return e=Zr(e),BE(t,Eu()?Reflect.construct(e,r||[],Zr(t).constructor):e.apply(t,r))}function yu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xn(t,e,r){return Eu()?xn=Reflect.construct:xn=function(i,u,o){var a=[null];a.push.apply(a,u);var s=Function.bind.apply(i,a),c=new s;return o&&Xr(c,o.prototype),c},xn.apply(null,arguments)}function Wt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zr(t){return Zr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Zr(t)}function FE(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xr(t,e)}function _E(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function BE(t,e){return e&&(SE(e)==="object"||typeof e=="function")?e:AE(t)}function Xr(t,e){return Xr=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Xr(t,e)}function SE(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Du(t){var e=typeof Map=="function"?new Map:void 0;return Du=function(n){if(n===null||!_E(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return xn(n,arguments,Zr(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Xr(i,n)},Du(t)}function Eu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Eu=function(){return!!t})()}var wu=function t(e){yu(this,t),Wt(this,"isHide",{type:"boolean"})},ks=function(t){FE(e,t);function e(r){return yu(this,e),bE(this,e)}return e}(Du(Array)),zt=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";yu(this,t);var n,i;Wt(this,"isHide",void 0),Wt(this,"className",void 0),Wt(this,"style",void 0),Wt(this,"caption",void 0),Wt(this,"defaultState",void 0),this.isHide=(n=e==null?void 0:e.isHide)!==null&&n!==void 0?n:!1,this.style=new CE(e==null?void 0:e.style),this.caption=(i=e==null?void 0:e.caption)!==null&&i!==void 0?i:r};Wt(zt,"mode",void 0),Wt(zt,"Rules",wu),Wt(zt,"RuntimeRules",ks);function Nt(){return Nt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Nt.apply(this,arguments)}function OE(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Cu(t){return Cu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Cu(t)}function In(t,e){return In=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},In(t,e)}function ME(){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(t){return!1}}function Tn(t,e,r){return ME()?Tn=Reflect.construct:Tn=function(i,u,o){var a=[null];a.push.apply(a,u);var s=Function.bind.apply(i,a),c=new s;return o&&In(c,o.prototype),c},Tn.apply(null,arguments)}function xE(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Au(t){var e=typeof Map=="function"?new Map:void 0;return Au=function(n){if(n===null||!xE(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Tn(n,arguments,Cu(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),In(i,n)},Au(t)}var IE=/%[sdj%]/g,js=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(js=function(e,r){typeof console!="undefined"&&console.warn&&r.every(function(n){return typeof n=="string"})&&console.warn(e,r)});function bu(t){if(!t||!t.length)return null;var e={};return t.forEach(function(r){var n=r.field;e[n]=e[n]||[],e[n].push(r)}),e}function lt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=1,i=e[0],u=e.length;if(typeof i=="function")return i.apply(null,e.slice(1));if(typeof i=="string"){var o=String(i).replace(IE,function(a){if(a==="%%")return"%";if(n>=u)return a;switch(a){case"%s":return String(e[n++]);case"%d":return Number(e[n++]);case"%j":try{return JSON.stringify(e[n++])}catch(s){return"[Circular]"}break;default:return a}});return o}return i}function TE(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function Re(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||TE(e)&&typeof t=="string"&&!t)}function PE(t,e,r){var n=[],i=0,u=t.length;function o(a){n.push.apply(n,a),i++,i===u&&r(n)}t.forEach(function(a){e(a,o)})}function qs(t,e,r){var n=0,i=t.length;function u(o){if(o&&o.length){r(o);return}var a=n;n=n+1,a<i?e(t[a],u):r([])}u([])}function NE(t){var e=[];return Object.keys(t).forEach(function(r){e.push.apply(e,t[r])}),e}var Us=function(t){OE(e,t);function e(r,n){var i;return i=t.call(this,"Async Validation Error")||this,i.errors=r,i.fields=n,i}return e}(Au(Error));function $E(t,e,r,n){if(e.first){var i=new Promise(function(f,h){var g=function(v){return n(v),v.length?h(new Us(v,bu(v))):f()},y=NE(t);qs(y,r,g)});return i.catch(function(f){return f}),i}var u=e.firstFields||[];u===!0&&(u=Object.keys(t));var o=Object.keys(t),a=o.length,s=0,c=[],l=new Promise(function(f,h){var g=function(d){if(c.push.apply(c,d),s++,s===a)return n(c),c.length?h(new Us(c,bu(c))):f()};o.length||(n(c),f()),o.forEach(function(y){var d=t[y];u.indexOf(y)!==-1?qs(d,r,g):PE(d,r,g)})});return l.catch(function(f){return f}),l}function Vs(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function Ws(t,e){if(e){for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];typeof n=="object"&&typeof t[r]=="object"?t[r]=Nt(Nt({},t[r]),n):t[r]=n}}return t}function zs(t,e,r,n,i,u){t.required&&(!r.hasOwnProperty(t.field)||Re(e,u||t.type))&&n.push(lt(i.messages.required,t.fullField))}function RE(t,e,r,n,i){(/^\s+$/.test(e)||e==="")&&n.push(lt(i.messages.whitespace,t.fullField))}var Fu={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},Kr={integer:function(e){return Kr.number(e)&&parseInt(e,10)===e},float:function(e){return Kr.number(e)&&!Kr.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(r){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Kr.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(Fu.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(Fu.url)},hex:function(e){return typeof e=="string"&&!!e.match(Fu.hex)}};function LE(t,e,r,n,i){if(t.required&&e===void 0){zs(t,e,r,n,i);return}var u=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=t.type;u.indexOf(o)>-1?Kr[o](e)||n.push(lt(i.messages.types[o],t.fullField,t.type)):o&&typeof e!==t.type&&n.push(lt(i.messages.types[o],t.fullField,t.type))}function kE(t,e,r,n,i){var u=typeof t.len=="number",o=typeof t.min=="number",a=typeof t.max=="number",s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,l=null,f=typeof e=="number",h=typeof e=="string",g=Array.isArray(e);if(f?l="number":h?l="string":g&&(l="array"),!l)return!1;g&&(c=e.length),h&&(c=e.replace(s,"_").length),u?c!==t.len&&n.push(lt(i.messages[l].len,t.fullField,t.len)):o&&!a&&c<t.min?n.push(lt(i.messages[l].min,t.fullField,t.min)):a&&!o&&c>t.max?n.push(lt(i.messages[l].max,t.fullField,t.max)):o&&a&&(c<t.min||c>t.max)&&n.push(lt(i.messages[l].range,t.fullField,t.min,t.max))}var br="enum";function jE(t,e,r,n,i){t[br]=Array.isArray(t[br])?t[br]:[],t[br].indexOf(e)===-1&&n.push(lt(i.messages[br],t.fullField,t[br].join(", ")))}function qE(t,e,r,n,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||n.push(lt(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var u=new RegExp(t.pattern);u.test(e)||n.push(lt(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var fe={required:zs,whitespace:RE,type:LE,range:kE,enum:jE,pattern:qE};function UE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e,"string")&&!t.required)return r();fe.required(t,e,n,u,i,"string"),Re(e,"string")||(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i),fe.pattern(t,e,n,u,i),t.whitespace===!0&&fe.whitespace(t,e,n,u,i))}r(u)}function VE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe.type(t,e,n,u,i)}r(u)}function WE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(e===""&&(e=void 0),Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function zE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe.type(t,e,n,u,i)}r(u)}function GE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),Re(e)||fe.type(t,e,n,u,i)}r(u)}function HE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function QE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function JE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(e==null&&!t.required)return r();fe.required(t,e,n,u,i,"array"),e!=null&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function ZE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe.type(t,e,n,u,i)}r(u)}var XE="enum";function KE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe[XE](t,e,n,u,i)}r(u)}function YE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e,"string")&&!t.required)return r();fe.required(t,e,n,u,i),Re(e,"string")||fe.pattern(t,e,n,u,i)}r(u)}function ew(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e,"date")&&!t.required)return r();if(fe.required(t,e,n,u,i),!Re(e,"date")){var a;e instanceof Date?a=e:a=new Date(e),fe.type(t,a,n,u,i),a&&fe.range(t,a.getTime(),n,u,i)}}r(u)}function tw(t,e,r,n,i){var u=[],o=Array.isArray(e)?"array":typeof e;fe.required(t,e,n,u,i,o),r(u)}function _u(t,e,r,n,i){var u=t.type,o=[],a=t.required||!t.required&&n.hasOwnProperty(t.field);if(a){if(Re(e,u)&&!t.required)return r();fe.required(t,e,n,o,i,u),Re(e,u)||fe.type(t,e,n,o,i)}r(o)}function rw(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i)}r(u)}var Yr={string:UE,method:VE,number:WE,boolean:zE,regexp:GE,integer:HE,float:QE,array:JE,object:ZE,enum:KE,pattern:YE,date:ew,url:_u,hex:_u,email:_u,required:tw,any:rw};function Bu(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Su=Bu();function Yt(t){this.rules=null,this._messages=Su,this.define(t)}Yt.prototype={messages:function(e){return e&&(this._messages=Ws(Bu(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var r,n;for(r in e)e.hasOwnProperty(r)&&(n=e[r],this.rules[r]=Array.isArray(n)?n:[n])},validate:function(e,r,n){var i=this;r===void 0&&(r={}),n===void 0&&(n=function(){});var u=e,o=r,a=n;if(typeof o=="function"&&(a=o,o={}),!this.rules||Object.keys(this.rules).length===0)return a&&a(),Promise.resolve();function s(d){var v,p=[],m={};function D(E){if(Array.isArray(E)){var w;p=(w=p).concat.apply(w,E)}else p.push(E)}for(v=0;v<d.length;v++)D(d[v]);p.length?m=bu(p):(p=null,m=null),a(p,m)}if(o.messages){var c=this.messages();c===Su&&(c=Bu()),Ws(c,o.messages),o.messages=c}else o.messages=this.messages();var l,f,h={},g=o.keys||Object.keys(this.rules);g.forEach(function(d){l=i.rules[d],f=u[d],l.forEach(function(v){var p=v;typeof p.transform=="function"&&(u===e&&(u=Nt({},u)),f=u[d]=p.transform(f)),typeof p=="function"?p={validator:p}:p=Nt({},p),p.validator=i.getValidationMethod(p),p.field=d,p.fullField=p.fullField||d,p.type=i.getType(p),p.validator&&(h[d]=h[d]||[],h[d].push({rule:p,value:f,source:u,field:d}))})});var y={};return $E(h,o,function(d,v){var p=d.rule,m=(p.type==="object"||p.type==="array")&&(typeof p.fields=="object"||typeof p.defaultField=="object");m=m&&(p.required||!p.required&&d.value),p.field=d.field;function D(_,O){return Nt(Nt({},O),{},{fullField:p.fullField+"."+_})}function E(_){_===void 0&&(_=[]);var O=_;if(Array.isArray(O)||(O=[O]),!o.suppressWarning&&O.length&&Yt.warning("async-validator:",O),O.length&&p.message!==void 0&&(O=[].concat(p.message)),O=O.map(Vs(p)),o.first&&O.length)return y[p.field]=1,v(O);if(!m)v(O);else{if(p.required&&!d.value)return p.message!==void 0?O=[].concat(p.message).map(Vs(p)):o.error&&(O=[o.error(p,lt(o.messages.required,p.field))]),v(O);var C={};if(p.defaultField)for(var A in d.value)d.value.hasOwnProperty(A)&&(C[A]=p.defaultField);C=Nt(Nt({},C),d.rule.fields);for(var B in C)if(C.hasOwnProperty(B)){var F=Array.isArray(C[B])?C[B]:[C[B]];C[B]=F.map(D.bind(null,B))}var $=new Yt(C);$.messages(o.messages),d.rule.options&&(d.rule.options.messages=o.messages,d.rule.options.error=o.error),$.validate(d.value,d.rule.options||o,function(X){var K=[];O&&O.length&&K.push.apply(K,O),X&&X.length&&K.push.apply(K,X),v(K.length?K:null)})}}var w;p.asyncValidator?w=p.asyncValidator(p,d.value,E,d.source,o):p.validator&&(w=p.validator(p,d.value,E,d.source,o),w===!0?E():w===!1?E(p.message||p.field+" fails"):w instanceof Array?E(w):w instanceof Error&&E(w.message)),w&&w.then&&w.then(function(){return E()},function(_){return E(_)})},function(d){s(d)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!Yr.hasOwnProperty(e.type))throw new Error(lt("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var r=Object.keys(e),n=r.indexOf("message");return n!==-1&&r.splice(n,1),r.length===1&&r[0]==="required"?Yr.required:Yr[this.getType(e)]||!1}},Yt.register=function(e,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Yr[e]=r},Yt.warning=js,Yt.messages=Su,Yt.validators=Yr;var nw={required:ue("CMD.aad41751712156995"),maxLength:ue("CMD.890d1751712141808"),minLength:ue("CMD.bb9b1751712143625"),string:{range:ue("CMD.f7131751712147855")}};function iw(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Yt(t);return r.messages(Object.assign(nw,e)),r}var uw=new Os;function Ou(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ow(t){if(Array.isArray(t))return t}function sw(t){if(Array.isArray(t))return Ou(t)}function Gs(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function Hs(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){Gs(u,n,i,o,a,"next",s)}function a(s){Gs(u,n,i,o,a,"throw",s)}o(void 0)})}}function aw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function lw(t,e,r){return e&&Qs(t.prototype,e),r&&Qs(t,r),t}function me(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Js(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function Zs(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function cw(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fw(){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 Xs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){me(t,i,r[i])})}return t}function hw(t){return ow(t)||Zs(t)||Ks(t)||cw()}function Mu(t){return sw(t)||Zs(t)||Ks(t)||fw()}function dw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Ks(t,e){if(!!t){if(typeof t=="string")return Ou(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ou(t,e)}}function Ys(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var ze=function(){function e(r){var n=this;aw(this,e);var i,u,o,a;me(this,"id",void 0),me(this,"name",void 0),me(this,"icon",void 0),me(this,"type",void 0),me(this,"controlType",void 0),me(this,"props",void 0),me(this,"setting",[]),me(this,"fieldType",void 0),me(this,"eventKeys",[]),me(this,"customEvents",[]),me(this,"parent",null),me(this,"slots",void 0),me(this,"slotPosition",void 0),me(this,"updateSetting",ta),me(this,"removeSetting",ea),this._callControlHooks("preInstance",r);var s=Js(this,e)?this.constructor:void 0,c=s.controlName,l=s.controlIcon,f=s.controlType,h=s.controlFieldType,g=s.controlEventKeys,y=s.controlCustomEvents,d=s.name,v=s.setting,p=s.slots,m=s.slotPosition;c&&l&&f||Ds("The ".concat(d," controlName,controlIcon,controlType is not define")),this.id=(i=r==null?void 0:r.id)!==null&&i!==void 0?i:_n(10),this.name=c,this.icon=l,this.type=(u=r==null?void 0:r.type)!==null&&u!==void 0?u:f,this.props=new zt(r==null?void 0:r.props,(Js(this,e)?this.constructor:void 0).controlName),this.controlType=(o=r==null?void 0:r.controlType)!==null&&o!==void 0?o:"base",this.setting=we(v),this.fieldType=(a=r==null?void 0:r.fieldType)!==null&&a!==void 0?a:h,this.eventKeys=we(g),this.customEvents=we(y),this.slots=we(p),this.slotPosition=we(m),Promise.resolve().then(function(){n._callControlHooks("postInstance",r)})}return lw(e,[{key:"rules",get:function(){var n=this.props.constructor.Rules;return n?new n(this.props):{}}},{key:"_callControlHooks",value:function(){for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];var o,a=hw(i),s=a[0],c=a.slice(1);return(o=uw).emit.apply(o,[s,this].concat(Mu(c)))}},{key:"preUpdate",value:function(n,i){this._callControlHooks("preUpdateProps",n,i)}},{key:"postUpdate",value:function(n,i){this._callControlHooks("postUpdateProps",n,i)}},{key:"updateProps",value:function(n,i){this.preUpdate(n,i),uu(this.props,n,i),this.postUpdate(n,i)}},{key:"preValidate",value:function(){return Hs(function(){var n,i,u;return Ys(this,function(o){switch(o.label){case 0:return n=Xs({},this.rules),[4,this._callControlHooks("preValidate",n)];case 1:return i=o.sent(),u=i[i.length-1],[2,u===!1?void 0:u]}})}).call(this)}},{key:"validate",value:function(n,i){return Hs(function(){var u,o,a,s;return Ys(this,function(c){switch(c.label){case 0:return[4,this.preValidate()];case 1:u=c.sent(),o=u!==void 0?u:Xs({},this.rules),Array.isArray(i)&&i.forEach(function(l){o.hasOwnProperty(l)&&delete o[l]}),a=iw(o,n),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,a.validate(this.props)];case 3:return c.sent(),[2,!0];case 4:throw s=c.sent(),s.control||(s.control=this),s;case 5:return[2]}})}).call(this)}},{key:"toDataBindModel",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.fieldType,u=this.id,o=this.type,a=this.props,s=a.dataBind,c=a.datasourceBind,l=a.optionConfig,f=a.caption,h=a.required,g=a.maxLength,y=a.options,d=a.encrypted,v=a.encryptedMode;if(!(!i&&!s&&!c)){var p={parentId:n,fieldType:i,controlId:u,caption:f,type:o,props:{}};switch(s&&(p.dataBind=s),l){case"datasource":case void 0:c&&(p.datasourceBind=c);break;case"custom":p.props.options=y;break}return h!==void 0&&(p.required=h),g!==void 0&&(p.maxLength=g),d!==void 0&&(p.encrypted=d),v!==void 0&&(p.encryptedMode=v),p}}},{key:"preToSchema",value:function(){this._callControlHooks("preToSchema",this)}},{key:"toSchema",value:function(){return this.preToSchema(),{id:this.id,type:this.type,props:we(this.props),fieldType:this.fieldType,controlType:this.controlType}}}],[{key:"updateBasicControl",value:function(n,i){if(n==="setting"){if(i.add){var u;(u=this.setting).push.apply(u,Mu(i.add))}i.remove&&this.removeSettingItem(i.remove),i.update}}}]),e}();me(ze,"mode","Designer"),me(ze,"slots",void 0),me(ze,"slotPosition",void 0),me(ze,"controlName",ue("CMD.7baf1751712168384")),me(ze,"controlIcon","icon"),me(ze,"controlType","control"),me(ze,"controlFieldType",void 0),me(ze,"controlEventKeys",[]),me(ze,"controlCustomEvents",[]),me(ze,"setting",[]),me(ze,"__is_control__",!0),me(ze,"removeSettingItem",ea),me(ze,"updateSettingItem",ta);function ea(t){var e=this,r=Array.isArray(t)?t:[t];r.forEach(function(n){var i,u=typeof n!="string",o=(i=e.setting)===null||i===void 0?void 0:i.findIndex(function(c){return c.key===(u?n.key:n)});if(o!==-1){var a,s;u?e.setting[o].showItems=(a=e.setting[o].showItems)===null||a===void 0?void 0:a.filter(function(c){return!n.hideItems.includes(c)}):e.setting.splice(o,1),u&&!(!((s=e.setting[o].showItems)===null||s===void 0)&&s.length)&&e.setting.splice(o,1)}})}function ta(t,e){var r=this,n=typeof t=="string"?[t]:t;n.forEach(function(i){var u=r.setting.find(function(c){return c.key===i});if(u){if(typeof e=="boolean")u.visible=e;else if((typeof e=="undefined"?"undefined":dw(e))==="object"){var o,a=(o=e.type)!==null&&o!==void 0?o:"replace";if(a==="replace")u.showItems=e.showItems;else{var s;(s=u.showItems).push.apply(s,Mu(e.showItems))}}}})}function pw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ra(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function gw(t,e,r){return e&&ra(t.prototype,e),r&&ra(t,r),t}function ct(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vw(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var en=function(){function e(r){pw(this,e);var n,i,u,o,a;ct(this,"id",void 0),ct(this,"type",void 0),ct(this,"controlType",void 0),ct(this,"props",void 0),ct(this,"fieldType",void 0),ct(this,"customEvents",[]),ct(this,"pageStatus",void 0),ct(this,"parent",null);var s=vw(this,e)?this.constructor:void 0,c=s.controlType,l=s.controlFieldType,f=s.name,h=s.controlCustomEvents;c||Ds("The ".concat(f," controlType is not define")),this.id=(n=r==null?void 0:r.id)!==null&&n!==void 0?n:_n(10),this.type=(i=r==null?void 0:r.type)!==null&&i!==void 0?i:c,this.props=new zt(r==null?void 0:r.props),this.customEvents=h,this.controlType=(u=r==null?void 0:r.controlType)!==null&&u!==void 0?u:"base",this.fieldType=(o=r==null?void 0:r.fieldType)!==null&&o!==void 0?o:l,this.pageStatus=(a=r==null?void 0:r.pageStatus)!==null&&a!==void 0?a:wE.UNKNOWN}return gw(e,[{key:"rules",get:function(){var n=this.props.constructor.RuntimeRules;if(n){var i=new n(this.props);return Array.from(i)}return[]}}]),e}();ct(en,"mode","Runtime"),ct(en,"controlType","control"),ct(en,"controlFieldType",void 0),ct(en,"__is_control__",!0),ct(en,"controlCustomEvents",[]);function ft(t){return(t==null?void 0:t.dataCode)!==void 0&&(t==null?void 0:t.fieldCode)!==void 0}function mw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xu(t,e,r){return e=Pn(e),yw(t,na()?Reflect.construct(e,r||[],Pn(t).constructor):e.apply(t,r))}function Iu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Se(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pn(t){return Pn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Pn(t)}function Tu(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Pu(t,e)}function yw(t,e){return e&&(Dw(e)==="object"||typeof e=="function")?e:mw(t)}function Pu(t,e){return Pu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Pu(t,e)}function Dw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function na(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(na=function(){return!!t})()}var Ew=function(t){Tu(e,t);function e(r){Iu(this,e);var n;n=xu(this,e,[r]),Se(n,"dataBind",{}),Se(n,"caption",{type:"string",required:!0,message:ue("CMD.pleaseEnterCaption",null,"\u8BF7\u8F93\u5165\u6807\u9898")}),Se(n,"isHideCaption",{type:"boolean"}),Se(n,"labelPosition",{type:"enum",enum:["top","left"]}),Se(n,"defaultState",{type:"enum",enum:["default","readonly"]}),Se(n,"required",{type:"boolean"}),Se(n,"captionTip",{type:"string",required:!1,message:ue("CMD.pleaseEnterCaptionTip",null,"\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED")});var i={fieldCode:{type:"string",required:!0,message:ue("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")},dataCode:{type:"string",required:!0,message:ue("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")}};if(ft(r.dataBind))n.dataBind={type:"object",required:!0,fields:we(i),message:ue("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")};else{var u={type:"object",required:!0,fields:{},message:ue("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")};Object.keys(r.dataBind).forEach(function(o){u.fields[o]={type:"object",required:!0,fields:we(i),message:ue("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")}}),n.dataBind=u}return r.isShowCaptionTip&&(n.captionTip.required=!0),n}return e}(wu),ww=function(t){Tu(e,t);function e(r){Iu(this,e);var n;n=xu(this,e,[r]);var i=r.isHide?!1:r.required;return i&&n.push({type:"string",required:i,message:r.requiredMessage!==""?r.requiredMessage:ue("CMD.runtimeRequired",{caption:r.caption},"{caption}\u5FC5\u586B")}),n}return e}(ks),Nu=function(t){Tu(e,t);function e(r){Iu(this,e);var n,i,u,o,a,s,c,l,f,h,g,y,d,v,p,m;return n=xu(this,e,[r]),Se(n,"caption",void 0),Se(n,"captionSize",void 0),Se(n,"captionColor",void 0),Se(n,"isCaptionItalic",void 0),Se(n,"captionFontWeight",void 0),Se(n,"className",void 0),Se(n,"isHideCaption",void 0),Se(n,"isShowCaptionTip",void 0),Se(n,"captionTip",void 0),Se(n,"labelPosition",void 0),Se(n,"dataBind",void 0),Se(n,"defaultValue",void 0),Se(n,"placeholder",void 0),Se(n,"defaultState",void 0),Se(n,"required",void 0),Se(n,"requiredMessage",void 0),n.caption=(i=r==null?void 0:r.caption)!==null&&i!==void 0?i:"",n.captionSize=(u=r==null?void 0:r.captionSize)!==null&&u!==void 0?u:"",n.captionColor=(o=r==null?void 0:r.captionColor)!==null&&o!==void 0?o:"",n.isCaptionItalic=(a=r==null?void 0:r.isCaptionItalic)!==null&&a!==void 0?a:!1,n.captionFontWeight=(s=r==null?void 0:r.captionFontWeight)!==null&&s!==void 0?s:"normal",n.className=(c=r==null?void 0:r.className)!==null&&c!==void 0?c:[],n.isHideCaption=(l=r==null?void 0:r.isHideCaption)!==null&&l!==void 0?l:!1,n.isShowCaptionTip=(f=r==null?void 0:r.isShowCaptionTip)!==null&&f!==void 0?f:!1,n.captionTip=(h=r==null?void 0:r.captionTip)!==null&&h!==void 0?h:"",n.defaultState=(g=r==null?void 0:r.defaultState)!==null&&g!==void 0?g:"default",n.labelPosition=(y=r==null?void 0:r.labelPosition)!==null&&y!==void 0?y:"top",n.placeholder=(d=r==null?void 0:r.placeholder)!==null&&d!==void 0?d:"",n.required=(v=r==null?void 0:r.required)!==null&&v!==void 0?v:!1,n.requiredMessage=(p=r==null?void 0:r.requiredMessage)!==null&&p!==void 0?p:"",n.dataBind=new du(r==null?void 0:r.dataBind),n.defaultValue=(m=r==null?void 0:r.defaultValue)!==null&&m!==void 0?m:"",n}return e}(zt);Se(Nu,"Rules",Ew),Se(Nu,"RuntimeRules",ww);function Cw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Aw(t,e,r){return e=$n(e),_w(t,ia()?Reflect.construct(e,r||[],$n(t).constructor):e.apply(t,r))}function bw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $n(t){return $n=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},$n(t)}function Fw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$u(t,e)}function _w(t,e){return e&&(Bw(e)==="object"||typeof e=="function")?e:Cw(t)}function $u(t,e){return $u=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},$u(t,e)}function Bw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function ia(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ia=function(){return!!t})()}var ua=function(t){Fw(e,t);function e(r){bw(this,e);var n;return n=Aw(this,e,[r]),Nn(n,"controlType","form"),Nn(n,"props",void 0),n.props=new Nu(r==null?void 0:r.props),n}return e}(ze);Nn(ua,"controlEventKeys",["on_change","on_focus","on_blur"]),Nn(ua,"controlCustomAttributes",void 0);function Sw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ow(t,e,r){return e=Rn(e),Iw(t,oa()?Reflect.construct(e,r||[],Rn(t).constructor):e.apply(t,r))}function Mw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rn(t){return Rn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Rn(t)}function xw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ru(t,e)}function Iw(t,e){return e&&(Tw(e)==="object"||typeof e=="function")?e:Sw(t)}function Ru(t,e){return Ru=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ru(t,e)}function Tw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function oa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(oa=function(){return!!t})()}var Pw=function(t){xw(e,t);function e(r){return Mw(this,e),Ow(this,e,[r])}return e}(zt);function Lu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Nw(t){if(Array.isArray(t))return Lu(t)}function $w(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sa(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function Rw(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){sa(u,n,i,o,a,"next",s)}function a(s){sa(u,n,i,o,a,"throw",s)}o(void 0)})}}function Lw(t,e,r){return e=tr(e),Qw(t,ca()?Reflect.construct(e,r||[],tr(t).constructor):e.apply(t,r))}function kw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aa(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function jw(t,e,r){return e&&aa(t.prototype,e),r&&aa(t,r),t}function er(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fr(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?Fr=Reflect.get:Fr=function(i,u,o){var a=Jw(i,u);if(!!a){var s=Object.getOwnPropertyDescriptor(a,u);return s.get?s.get.call(o||i):s.value}},Fr(t,e,r||t)}function tr(t){return tr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},tr(t)}function qw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ku(t,e)}function Uw(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function Vw(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ww(){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 zw(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){er(t,i,r[i])})}return t}function Gw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Hw(t,e){return e=e!=null?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Gw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function Qw(t,e){return e&&(Zw(e)==="object"||typeof e=="function")?e:$w(t)}function ku(t,e){return ku=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ku(t,e)}function Jw(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=tr(t),t!==null););return t}function la(t){return Nw(t)||Vw(t)||Xw(t)||Ww()}function Zw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Xw(t,e){if(!!t){if(typeof t=="string")return Lu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lu(t,e)}}function ca(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ca=function(){return!!t})()}function Kw(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var Yw=1e4,fa=function(e){qw(r,e);function r(n){kw(this,r);var i;i=Lw(this,r,[n]),er(i,"controlType","layout"),er(i,"children",void 0),er(i,"excludes",void 0),er(i,"childrenMaxLength",void 0),er(i,"props",void 0);var u=Uw(this,r)?this.constructor:void 0,o=u.excludes,a=u.childrenMaxLength;return i.props=new Pw(n==null?void 0:n.props),hu(i,"children",n==null?void 0:n.children,void 0,"Designer"),i.excludes=we(o),i.childrenMaxLength=a,i}return jw(r,[{key:"judgeExcludesChildren",value:function(i){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(i)}},{key:"judgeJoinChildren",value:function(i){var u=this.judgeExcludesChildren(i);return u&&this.childrenMaxLength>this.children.length}},{key:"validate",value:function(i,u){var o=this,a=this,s=function(){return Fr(tr(r.prototype),"validate",o)};return Rw(function(){return Kw(this,function(c){switch(c.label){case 0:return[4,s().call(a,i,u)];case 1:return c.sent(),[4,Promise.all(this.children.map(function(l){return l.validate(i,u)}))];case 2:return c.sent(),[2,!0]}})}).call(this)}},{key:"toDataBindModel",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=Fr(tr(r.prototype),"toDataBindModel",this).call(this),o=u?[u]:[];return this.children.reduce(function(a,s){var c=s.toDataBindModel(i);if(Array.isArray(c)){var l=c.filter(function(f){return!!f});return la(a).concat(la(l))}return c&&a.push(c),a},o)}},{key:"toSchema",value:function(){var i=Fr(tr(r.prototype),"toSchema",this).call(this),u=this.children.map(function(o){var a=o.toSchema();return a});return Hw(zw({},i),{children:u})}}]),r}(ze);er(fa,"excludes",!1),er(fa,"childrenMaxLength",Yw);function eC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tC(t,e,r){return e=Ln(e),iC(t,ha()?Reflect.construct(e,r||[],Ln(t).constructor):e.apply(t,r))}function rC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _r(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ln(t){return Ln=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ln(t)}function nC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ju(t,e)}function iC(t,e){return e&&(uC(e)==="object"||typeof e=="function")?e:eC(t)}function ju(t,e){return ju=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ju(t,e)}function uC(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function ha(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ha=function(){return!!t})()}var oC=function(t){nC(e,t);function e(r,n,i){rC(this,e);var u,o,a,s,c;return u=tC(this,e,[n]),_r(u,"headers",void 0),_r(u,"footers",void 0),_r(u,"pageIndex",void 0),_r(u,"pageSize",void 0),_r(u,"pageSizeOptions",void 0),_r(u,"totalCount",void 0),hu(u,"headers",n==null?void 0:n.headers,r,i),hu(u,"footers",n==null?void 0:n.footers,r),u.pageIndex=(o=n==null?void 0:n.pageIndex)!==null&&o!==void 0?o:1,u.pageSize=(a=n==null?void 0:n.pageSize)!==null&&a!==void 0?a:20,u.pageSizeOptions=(s=n==null?void 0:n.pageSizeOptions)!==null&&s!==void 0?s:[20],u.totalCount=(c=n==null?void 0:n.totalCount)!==null&&c!==void 0?c:0,u}return e}(zt);function qu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function sC(t){if(Array.isArray(t))return qu(t)}function aC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function da(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function lC(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){da(u,n,i,o,a,"next",s)}function a(s){da(u,n,i,o,a,"throw",s)}o(void 0)})}}function cC(t,e,r){return e=rr(e),mC(t,ya()?Reflect.construct(e,r||[],rr(t).constructor):e.apply(t,r))}function fC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pa(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function hC(t,e,r){return e&&pa(t.prototype,e),r&&pa(t,r),t}function kn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Br(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?Br=Reflect.get:Br=function(i,u,o){var a=yC(i,u);if(!!a){var s=Object.getOwnPropertyDescriptor(a,u);return s.get?s.get.call(o||i):s.value}},Br(t,e,r||t)}function rr(t){return rr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},rr(t)}function dC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Uu(t,e)}function pC(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gC(){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 ga(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){kn(t,i,r[i])})}return t}function vC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function va(t,e){return e=e!=null?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):vC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function mC(t,e){return e&&(DC(e)==="object"||typeof e=="function")?e:aC(t)}function Uu(t,e){return Uu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Uu(t,e)}function yC(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=rr(t),t!==null););return t}function ma(t){return sC(t)||pC(t)||EC(t)||gC()}function DC(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function EC(t,e){if(!!t){if(typeof t=="string")return qu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qu(t,e)}}function ya(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ya=function(){return!!t})()}function wC(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var CC=function(t){dC(e,t);function e(r){fC(this,e);var n;return n=cC(this,e,[r]),kn(n,"controlType","list"),kn(n,"props",void 0),n.props=new oC(n,r==null?void 0:r.props,"Designer"),n}return hC(e,[{key:"validate",value:function(n,i){var u=this,o=this,a=function(){return Br(rr(e.prototype),"validate",u)};return lC(function(){return wC(this,function(s){switch(s.label){case 0:return[4,a().call(o,n)];case 1:return s.sent(),[4,Promise.all(this.props.headers.map(function(c){return c.validate(n,i)}))];case 2:return s.sent(),[2,!0]}})}).call(this)}},{key:"toDataBindModel",value:function(){var n=Br(rr(e.prototype),"toDataBindModel",this).call(this),i=n?[n]:[],u=this.id;return this.props.headers.reduce(function(o,a){var s=a.toDataBindModel(u);if(Array.isArray(s)){var c=s.filter(function(l){return!!l});return ma(o).concat(ma(c))}return s&&o.push(s),o},i)}},{key:"toSchema",value:function(){var n=Br(rr(e.prototype),"toSchema",this).call(this),i=this.props.headers.map(function(u){return u.toSchema()});return va(ga({},n),{props:va(ga({},this.props),{headers:i})})}}]),e}(ze);kn(CC,"controlFieldType",qe.LIST);function AC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Da(t,e,r){return e=jn(e),bC(t,Ca()?Reflect.construct(e,r||[],jn(t).constructor):e.apply(t,r))}function Ea(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jn(t){return jn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},jn(t)}function wa(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vu(t,e)}function bC(t,e){return e&&(FC(e)==="object"||typeof e=="function")?e:AC(t)}function Vu(t,e){return Vu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Vu(t,e)}function FC(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Ca(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ca=function(){return!!t})()}var _C=function(t){wa(e,t);function e(r){Ea(this,e);var n;return n=Da(this,e,[r]),rt(n,"caption",{type:"string",required:!0,message:ue("CMD.pleaseEnterCaption",null,"\u8BF7\u8F93\u5165\u6807\u9898")}),rt(n,"width",{type:"number",required:!1,message:ue("CMD.pleaseEnterColumnWidth",null,"\u8BF7\u8F93\u5165\u5217\u5BBD")}),n.width.required=r.widthType==="px",n}return e}(wu),BC=function(t){wa(e,t);function e(r){Ea(this,e);var n,i,u,o,a,s;return n=Da(this,e,[r]),rt(n,"widthType",void 0),rt(n,"width",void 0),rt(n,"caption",void 0),rt(n,"dataBind",void 0),rt(n,"autoWidth",void 0),rt(n,"fixed",void 0),rt(n,"sort",void 0),rt(n,"align",void 0),rt(n,"colSpan",void 0),rt(n,"autoHeight",void 0),rt(n,"children",void 0),n.width=(i=r==null?void 0:r.width)!==null&&i!==void 0?i:150,n.widthType=(r==null?void 0:r.widthType)||"auto",n.caption=(u=r==null?void 0:r.caption)!==null&&u!==void 0?u:"",n.fixed=(o=r==null?void 0:r.fixed)!==null&&o!==void 0?o:"none",n.autoWidth=new EE(r==null?void 0:r.autoWidth),n.dataBind=new du(r==null?void 0:r.dataBind),n.sort=(a=r==null?void 0:r.sort)!==null&&a!==void 0?a:!0,n.align=r==null?void 0:r.align,n.colSpan=r==null?void 0:r.colSpan,n.autoHeight=(s=r==null?void 0:r.autoHeight)!==null&&s!==void 0?s:!1,n}return e}(zt);rt(BC,"Rules",_C);function qn(t){return t.controlType===de.LAYOUT||t.controlType===de.WRAP||t.controlType===de.LIST||t.controlType===de.SEARCH||t.controlType===de.COLUMN&&t.type!==Te.OPERATION_COLUMN}function dr(t,e){Array.isArray(t)&&t.map(r=>{r.controlType===de.LIST?e(r,[]):qn(r)?dr(r==null?void 0:r.children,e):r.controlType===de.FORM&&e(r)})}function pr(t,e){Array.isArray(t)&&t.map(r=>{r.type===Te.DATA_VIEW||r.type===Te.SIMPLE_SEARCH?e(r):qn(r)&&pr(r==null?void 0:r.children,e)})}let Aa=0;function tn(t=""){const e=Date.now(),r=Math.floor(Math.random()*1e9);return Aa++,t+"_"+r+Aa+String(e)}class Ke extends Jr{constructor(e){super("Runtime"),this._flatInstances=[],this._instanceMap={},this._controlParentIdMap={};const{schema:r}=e;this._schema=r,this._instance=this.createControl(r,e.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const e=[],r={},n={};return Wu(this._instance,"",(i,u)=>{var o;u&&(n[i.id]=u),r[i.id]||(r[i.id]=[]),!(i.type==="subtable-column"&&r[i.id].length>0)&&(e.push(i),!(((o=i.parent)==null?void 0:o.type)===Te.SUBTABLE_COLUMN&&i.parent.parent===void 0)&&r[i.id].push(i))}),this._flatInstances=e,this._instanceMap=r,this._controlParentIdMap=n,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get allRules(){let e={},r={},n={};return pr(this._instance,i=>{let u=Ke.staticGetRules(i.type,i.props);r[i.id]=we(u[0]),e[i.id]=we(u[0]),n[i.id]=we(u[0]),dr(i.children,o=>{(o.controlType===de.FORM||o.controlType===de.LIST)&&(ba(r[i.id].fields,o,!0),Ba(e[i.id].fields,o,!0),Fa(n[i.id].fields,o,!0))})}),{rules:this.rules,antdRules:this.antdRules,fieldCodeRules:this.fieldCodeRules,defaultAntdRules:e,defaultRule:r,defaultFieldRules:n}}get rules(){let e={};return pr(this._instance,r=>{let n=Ke.staticGetRules(r.type,r.props);e[r.id]=n[0],dr(r.children,i=>{(i.controlType===de.FORM||i.controlType===de.LIST)&&ba(e[r.id].fields,i)})}),e}get fieldCodeRules(){let e={};return pr(this._instance,r=>{let n=Ke.staticGetRules(r.type,r.props);e[r.id]=n[0],dr(r.children,i=>{(i.controlType===de.FORM||i.controlType===de.LIST)&&Fa(e[r.id].fields,i)})}),e}get antdRules(){let e={};return pr(this._instance,r=>{let n=Ke.staticGetRules(r.type,r.props);e[r.id]=n[0],dr(r.children,i=>{(i.controlType===de.FORM||i.controlType===de.LIST)&&Ba(e[r.id].fields,i)})}),e}}function Wu(t,e,r){(Array.isArray(t)?t:[t]).map(i=>{if(r(i,e),qn(i)){const u=i;u.children||(u.children=[]),Wu(u.children,u.id,r)}SC(i,"headers")&&Wu(i.props.headers,i.id,r)})}function SC(t,e){return e in t.props&&fr(t.props[e])}function Un(t){return t.props.isHide?!0:t.parent===null||t.parent===void 0?!1:Un(t.parent)}function ba(t,e,r=!1){if(Un(e))return;let n=Ke.staticGetRules(e.type,e.props);if(e.controlType===de.FORM)t[e.id]=n;else if(e.type===Te.SUBTABLE){t[e.id]=n;const i={type:"array",fields:{}};(r===!0?[{children:e.props.headers}]:e.children).forEach((u,o)=>{Vt(u.children,a=>{if(i.fields){i.fields[o]||(i.fields[o]={type:"object",required:!0,fields:{}});let s=Ke.staticGetRules(a.type,a.props);i.fields[o].fields[a.id]=s}})}),t[e.id].push(i)}}function Fa(t,e,r=!1){var i,u,o,a,s,c,l;if(Un(e))return;let n=Ke.staticGetRules(e.type,e.props);if(e.controlType===de.FORM)if(ft(e.props.dataBind))((i=e.props.dataBind)==null?void 0:i.fieldCode)!=""&&(t[(u=e.props.dataBind)==null?void 0:u.fieldCode]=n);else for(const f in e.props.dataBind)((o=e.props.dataBind[f])==null?void 0:o.fieldCode)!=""&&(t[(a=e.props.dataBind[f])==null?void 0:a.fieldCode]=((s=_a(n))==null?void 0:s[f])||[]);else if(e.type===Te.SUBTABLE){t[(c=e.props.datasourceBind)==null?void 0:c.dataCode]=n;const f={type:"array",fields:{}};(r===!0?[{children:e.props.headers}]:e.children).forEach((h,g)=>{Vt(h.children,y=>{var d,v,p,m;if(f.fields){f.fields[g]||(f.fields[g]={type:"object",required:!0,fields:{}});let D=Ke.staticGetRules(y.type,y.props);if(ft(y.props.dataBind))((p=y.props.dataBind)==null?void 0:p.fieldCode)!=""&&(f.fields[g].fields[(m=y.props.dataBind)==null?void 0:m.fieldCode]=D);else for(const E in y.props.dataBind)((d=y.props.dataBind[E])==null?void 0:d.fieldCode)!=""&&(f.fields[g].fields[y.props.dataBind[E].fieldCode]=((v=_a(D))==null?void 0:v[E])||[])}})}),t[(l=e.props.datasourceBind)==null?void 0:l.dataCode].push(f)}}function _a(t){let e={};return t.map(r=>{r.fields&&(e=r)}),e==null?void 0:e.fields}function Ba(t,e,r=!1){if(Un(e))return;let n=Ke.staticGetRules(e.type,e.props);e.controlType===de.FORM?t[e.id]=n:e.type===Te.SUBTABLE&&e.children.length&&(t[e.id]=[],(r===!0?[{children:e.props.headers}]:e.children).forEach(i=>{let u={};Vt(i.children,o=>{let a=Ke.staticGetRules(o.type,o.props);u[o.id]=a}),t[e.id].push(u)}))}class OC{constructor(e){const{state:r,emptyState:n,databindMapping:i,controlidMapping:u,defaultState:o,subtableHeadersControlIdMapping:a}=MC(e.instance);this.emptyState=n,this.state=r,this.dataBindMapping=i,this.controlIdMapping=u,this.defaultState=o,this.subtableHeadersControlIdMapping=a}setState(e,r,n){const i=this.controlIdMapping[e],u=we(r);i!==void 0?(i.children&&r.forEach(o=>{o.uid||Object.assign(o,{uid:"new:"+tn("uid")})}),this.state[i.dataView][e]=u):n!==void 0?Object.keys(this.controlIdMapping).map(o=>{const a=this.controlIdMapping[o].dataView,s=this.controlIdMapping[o].children;s!==void 0&&Object.keys(s).map(c=>{c===e&&this.state[a][o][n]&&(this.state[a][o][n][e]=u)})}):this.state[e]=u}getState(e,r){var i;if(this.state[e]!==void 0)return this.state[e];{const u=this.controlIdMapping[e];if(u!==void 0){const o=this.state[u.dataView][e];return r!==void 0&&Object.keys((i=u==null?void 0:u.children)!=null?i:{}).length>0?o[r]:o}else if(r!==void 0){let o;return Object.keys(this.controlIdMapping).map(a=>{const s=this.controlIdMapping[a].dataView,c=this.controlIdMapping[a].children;c!==void 0&&Object.keys(c).map(l=>{var f;l===e&&(o=(f=this.state[s][a][r])==null?void 0:f[e])})}),o}else{let o=[];return Object.keys(this.controlIdMapping).map(a=>{const s=this.controlIdMapping[a].dataView,c=this.controlIdMapping[a].children;c!==void 0&&Object.keys(c).map(l=>{l===e&&this.state[s][a].map(f=>{o.push(f[e])})})}),o}}}getEmptyState(e){if(this.emptyState[e]!==void 0)return this.emptyState[e];{const n=this.controlIdMapping[e];if(n!==void 0){const i=this.emptyState[n.dataView][e];return"children"in n&&Object.assign(i,{uid:"new:"+tn("uid")}),i}else{let i;return Object.keys(this.controlIdMapping).map(u=>{const o=this.controlIdMapping[u].dataView,a=this.controlIdMapping[u].children;a!==void 0&&Object.keys(a).map(s=>{s===e&&(i=this.emptyState[o][u][e])})}),i}}}getDataBind(e){let r=this.controlIdMapping[e];if(r)return r.dataBind;e:for(let n in this.controlIdMapping){const i=this.controlIdMapping[n];if(i.children){for(let u in i.children)if(u===e){r=i.children[u];break e}}}return r==null?void 0:r.dataBind}}function MC(t){let e={},r={},n={},i={},u={},o={};return pr(t,a=>{const s=a.id,c={},l={};dr([a],(f,h)=>{xC(c,l,f),IC(n,s,f),TC(i,s,f),PC(u,f)}),e[s]={},o[s]=c,r[s]=l}),{state:e,defaultState:o,subtableHeadersControlIdMapping:u,emptyState:r,databindMapping:n,controlidMapping:i}}function xC(t,e,r){var n,i;if(r.controlType===de.FORM)t[r.id]=we(r.props.defaultValue),e[r.id]=we(r.props.defaultValue);else{const u={};Vt(r.props.headers,o=>{u[o.id]=we(o.props.defaultValue)}),t[r.id]=(i=new Array((n=r.props.defaultRows)!=null?n:1).fill(0).map(()=>Ee({uid:"new:"+tn("uid")},we(u))))!=null?i:[],e[r.id]=u}}function IC(t,e,r){var n,i;if(r.controlType===de.FORM)ft(r.props.dataBind)?((i=(n=r.props)==null?void 0:n.dataBind)==null?void 0:i.dataCode)===void 0||(t[r.props.dataBind.dataCode]===void 0&&(t[r.props.dataBind.dataCode]={controlId:e,fields:[],dataViewId:e}),t[r.props.dataBind.dataCode].fields.push({fieldCode:r.props.dataBind.fieldCode,controlId:r.id,dataBind:r.props.dataBind,dataViewId:[e]})):Object.keys(r.props.dataBind).map(u=>{const o=r.props.dataBind,a=o[u].dataCode;a!==void 0&&(t[a]===void 0&&(t[a]={controlId:r.id,fields:[],dataViewId:e}),t[a].fields.push({fieldCode:o[u].fieldCode,controlId:r.id,dataBind:o,dataViewId:[e]}))});else{if(r.props.datasourceBind.dataCode===""){Ar(`datasourceBind.dataCode is empty! maybe in preview mode, control:${r.id} type:${r.type}`);return}t[r.props.datasourceBind.dataCode]={controlId:r.id,fields:[],dataViewId:e};const u=r.id;Vt(r.props.headers,o=>{ft(o.props.dataBind)?(t[o.props.dataBind.dataCode]===void 0&&(t[o.props.dataBind.dataCode]={controlId:e,fields:[],dataViewId:e}),t[o.props.dataBind.dataCode].fields.push({fieldCode:o.props.dataBind.fieldCode,controlId:o.id,dataBind:o.props.dataBind,dataViewId:[e,u]})):Object.keys(o.props.dataBind).map(a=>{const s=o.props.dataBind,c=s[a].dataCode;s[a].fieldCode!==""&&t[c].fields.push({fieldCode:s[a].fieldCode,controlId:o.id,dataBind:s,dataViewId:[e,u]})})})}}function TC(t,e,r){r.controlType===de.FORM?t[r.id]={dataBind:r.props.dataBind,options:[],dataView:e}:r.type===Te.SUBTABLE&&(t[r.id]={dataBind:new du({dataCode:r.props.datasourceBind.dataCode,fieldCode:""}),dataView:e,children:{},options:[]},Vt(r.props.headers,n=>{var i,u;Object.assign((u=(i=t[r.id])==null?void 0:i.children)!=null?u:{},{[n.id]:{dataBind:n.props.dataBind}})}))}function PC(t,e){if(e.type===Te.SUBTABLE){const r={};e.props.headers.map(n=>{n.children.map(i=>{Object.assign(r,{[i.id]:i})})}),Object.assign(t,{[e.id]:r})}}const Sa=["splice","push","shift","pop","unshift","reverse"],zu=Symbol("__engineProxy__"),Gu=Symbol("__engineTarget__"),Oa=Symbol("__engineArrayBeforeSetCallbackFlag__"),Ma=Symbol("__engineProxyThisKey__"),Ot={type:"",args:[],callback:xa};function xa(){}kC();function NC(t,e,r,n,i){if(Ot.type){Ot.callback=i.bind(null,t,n);return}const u=Number(e);if(u>t.length){Ut(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${Sa.join(",")} for array operations`);return}if(!(Number.isNaN(u)&&e!=="length"))if(e==="length"){const a=r,s=t.length;if(a>t.length){Ut("Do not directly modify the length of the array data, please add new rows");return}return a===t.length?void 0:()=>i.call(null,t,n,"splice",[a,s-a])}else return u===t.length?()=>i.call(null,t,n,"push",[r]):()=>i.call(null,t,n,"splice",[u,1,r])}function $C(t,e,r){return{__engineProxy__:!0,get(n,i,u){return i===zu?!0:i===Gu?n:Array.isArray(n)&&i===Oa?r:i===Ma?t:Reflect.get(n,i,u)},set(n,i,u,o){var h;let a=we(u);const s=n[i],c=t===""?i:t+"."+i;function l(g){if(typeof g=="object"&&g!==null)return g[zu]!==!0?Vn(g,e,r,c):Vn(g[Gu],e,r,c)}a=(h=l(a))!=null?h:a;let f;if(Array.isArray(n)){const g=NC(n,i,a,t,e);f=Reflect.set(n,i,a,o),g&&g()}else{try{let g=a;if(a=r.call(null,n,c,a,s),g!==a){const y=l(a);y!==void 0&&(a=y)}}catch(g){return Sn(`${c} set error ${g}`),!0}f=Reflect.set(n,i,a,o),e.call(null,n,c,a,s)}return f||!0}}}function Vn(t,e,r,n=""){if(Object.isFrozen(t))return t;for(let i in t){const u=n===""?i:n+"."+i,o=t[i];typeof o=="object"&&o!==null&&(t[i]=Vn(o,e,r,u))}return new Proxy(t,$C(n,e,r))}function Ia(t){const e=[];return t.forEach(r=>{e.push(r),(r.controlType==="layout"||r.controlType==="wrap")&&e.push(...Ia(r.children))}),e}function Hu(t,e,r){if(e==="")return;const n=e.split(".");if(n.length===0)return;const i=n[0],u=n.slice(1),o=r[i]?r[i][0]:void 0;return u.length===0?o:u.reduce((a,s)=>{var f,h;const c=Number(s);if(Number.isNaN(c)&&a){const g=a!=null&&a.children?Ia(a.children):void 0,y=g==null?void 0:g.find(d=>d.id===s);return y||(a.controlType===de.FORM?a:void 0)}else return(h=(f=a==null?void 0:a.children)==null?void 0:f[c])!=null?h:a},o)}function RC(t,e){return["push","unshift"].includes(t)?e:t==="splice"?e.slice(2):[]}function LC(t,e,r){if(["push","unshift"].includes(t))return r;if(t==="splice")return e.slice(0,2).concat(r)}function kC(){Sa.forEach(t=>{const e=Array.prototype[t];Array.prototype[t]=function(...r){var n;if(this[zu]){let i;const u=RC(t,r);if(u.length){const o=(n=this[Oa])==null?void 0:n.call(this,this[Gu],this[Ma],u),a=LC(t,r,o);Ot.type=t,Ot.args=a,i=e.apply(this,a)}else Ot.type=t,Ot.args=r,i=e.apply(this,r);return typeof Ot.callback=="function"&&Ot.callback(t,r,i),Ot.type="",Ot.args=[],Ot.callback=xa,i}else return e.apply(this,r)}})}class jC{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(e,r,...n){return Pt(this,null,function*(){const i=this.actionMap.get(e);if(!!i)try{return yield i.func.call(null,r,...n)}catch(u){return Sn(`${i.id} Exception during calling action: ${u}`),!1}})}addAction(e,r){this.actionMap.has(e)&&Ut("duplicated action key");const n=new qC(e,r);this.actionMap.set(e,n)}}class qC{constructor(e,r){this.id="",this.id=e,this.func=r}}class UC{constructor(e){this._dataStore=new Map,this.executer=e}add(e,r){this._dataStore.set(e,r)}get(e){let r=this._dataStore.get(e);return we(r)}remove(e){this._dataStore.delete(e)}getRemoteData(e){return Pt(this,null,function*(){return this.executer===void 0?(Sn("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(e)})}}class nr{}class rn extends nr{validate(e){return tt(e)}transform(e){if(e==null)return"";if(!St(e)&&!bs(e))return String(e);if(XD(e))return JSON.stringify(e);throw`${e} is not a string`}}class Qu extends nr{validate(e){return On(e)||e===""}transform(e){if(e==null)return"";const r=!St(e)&&!bs(e)?Number(e):void 0;if(!Number.isNaN(r)&&r!==void 0)return r;throw`${e} is not a number`}}class VC extends nr{validate(e){return KD(e)}transform(e){if(e==null)return[];function r(n){return n.map(i=>i?String(i):"")}if(fr(e))return r(e);if(tt(e)&&Fs(e))try{const n=JSON.parse(e);if(Array.isArray(n))return r(n)}catch(n){}return[String(e)]}}class WC extends nr{validate(e){return YD(e)}transform(e){if(e==null)return[];function r(i){return i.map(u=>!u&&u!==0?"":Number(u)).filter(u=>u===""||!Number.isNaN(u))}if(fr(e))return r(e);if(tt(e)&&Fs(e))try{const i=JSON.parse(e);if(fr(i))return r(i)}catch(i){}const n=Number(e);if(Number.isNaN(n))throw`${e} is not a number array`;return[n]}}class zC extends nr{validate(e){return St(e)&&"amount"in e&&On(e.amount)&&"currency"in e&&tt(e.currency)}transform(e,r){if(e==null||e==="")return new pu({currency:r==null?void 0:r.currency});let n;if(St(e)&&(n=new pu(Ee(Ee({},r),e))),tt(e)&&Mn(e))try{const i=JSON.parse(e);n=new pu(Ee(Ee({},r),i))}catch(i){}if(n){const i=new Qu,u=new rn;return i.validate(n.amount)||(n.amount=i.transform(n.amount)),u.validate(n.currency)||(n.currency=u.transform(n.currency)),n}throw`${e} is not a { amount: number, currency: string } object`}}class GC extends nr{validate(e){return St(e)&&"min"in e&&tt(e.min)&&"max"in e&&tt(e.max)}transform(e,r){if(e==null||e==="")return new gu;let n;if(St(e)&&(n=new gu(Ee(Ee({},r),e))),tt(e)&&Mn(e))try{const i=JSON.parse(e);n=new gu(Ee(Ee({},r),i))}catch(i){}if(n){const i=new rn;return i.validate(n.min)||(n.min=i.transform(n.min)),i.validate(n.max)||(n.max=i.transform(n.max)),n}throw`${e} is not a { min: string, max: string } object`}}class HC extends nr{validate(e){return St(e)&&"result"in e&&On(e.result)&&"unit"in e&&tt(e.unit)}transform(e,r){if(e==null||e==="")return new mu({unit:r==null?void 0:r.unit});let n;if(St(e)&&(n=new mu(Ee(Ee({},r),e))),tt(e)&&Mn(e))try{const i=JSON.parse(e);n=new mu(Ee(Ee({},r),i))}catch(i){}if(n){const i=new Qu,u=new rn;return i.validate(n.result)||(n.result=i.transform(n.result)),u.validate(n.unit)||(n.unit=u.transform(n.unit)),n}throw`${e} is not a { result: string, unit: string } object`}}class QC extends nr{validate(e){return!!St(e)}transform(e,r){if(e==null||e==="")return new vu;let n;if(St(e)&&(n=new vu(Ee(Ee({},r),ou.exports.camelizeKeys(e)))),tt(e)&&Mn(e))try{const i=JSON.parse(e);n=new vu(Ee(Ee({},r),ou.exports.camelizeKeys(i)))}catch(i){}if(n){const i=new rn;return i.validate(n.city)||(n.city=i.transform(n.city)),i.validate(n.district)||(n.district=i.transform(n.district)),i.validate(n.province)||(n.province=i.transform(n.province)),n}throw`${e} is not a { city: string, district: string, province: string } object`}}class JC{static getValueChecker(e){let r;switch(e){case qe.VARCHAR:case qe.TIMESTAMP:case qe.TEXT:case qe.AUTO_NUMBER:r=new rn;break;case qe.DECIMAL:r=new Qu;break;case qe.EMPLOYEES:case qe.DEPARTMENTS:case qe.IMAGE:case qe.FILE:case qe.ARRAY:r=new VC;break;case qe.MONEY:r=new zC;break;case qe.TIMESCOPE:r=new GC;break;case qe.CALC:r=new HC;break;case qe.DECIMAL_RANGE:r=new WC;break;case qe.ADDRESS:r=new QC;break}return r}}function ZC(t){if(["min","max","currency","unit"].includes(t))return qe.VARCHAR;if(["result","amount"].includes(t))return qe.DECIMAL}function Ta(t,e,r,n){var o;let i=(o=ZC(e))!=null?o:t,u=JC.getValueChecker(i);if(!u||u.validate(r))return r;try{const a=u.transform(r,n);return a!==void 0?a:r}catch(a){throw`${e} ${a}`}}function XC(t,e,r){return Object.entries(t).reduce((n,[i,u])=>{const o=e[i];return n[i]=Ta(u,i,o,r[i]),n},Object.assign({},e))}typeof window!="undefined"&&(window.engines={});let Sr=null,nn="";class Ju extends Os{constructor(e){super(),this.rawStore={},this.isMounted=!1,this.id=_n(8),this.__pluginsApplied=!1,this.actionManager=new jC,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(e);const{autoMount:r=!0,schema:n,beforeCreateInstance:i,externalParams:u,language:o=ds,debug:a=!1,messagesI18n:s,children:c}=this.$options;this.debug=a,this.runtime=new Ke({schema:n,beforeCreateInstance:i}),this.externalParams=u,this.children=c,this.store=new OC({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),r&&this.mount()}debugLog(...e){this.debug&&nu(...e)}use(e){return this.__pluginsApplied||this.__plugins.push(e),this}registerControl(...e){return this.runtime.register(...e),this}static register(e){return Ke.register(e,"Runtime")}static judgeControlIsRegistered(e){return Ke.staticRegisteredTypes.has(e.Runtime.controlType)}mount(){this.debugLog("~engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528~");const{plugins:e=[]}=this.$options;this._handlerProxyState(),this.__plugins=e,this.applyPlugins(),this.setStates(this.getState()),this.debugLog("engine\u7684mount\u65B9\u6CD5\u8C03\u7528\u7ED3\u675F"),this.debug&&typeof window!="undefined"&&(window.engines[this.id]=this)}destroy(){this.debug&&typeof window!="undefined"&&delete window.engines[this.id]}_handlerProxyState(){this.store.state=Vn(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(e,r,n,i){const u=Hu(this.runtime.flatInstances,r,this.runtime.instanceMap);if(!u)return n;if(this.assertInstance(u,Te.SUBTABLE)){if(n===null)return[];const s=u.props.headers.reduce((l,f)=>{const h=f.children[0];return h&&h.controlType===de.FORM&&(l[h.id]=h.fieldType),l},{}),c=this.getEmptyState(u.id);return n==null?void 0:n.map(l=>XC(s,l,c))}const o=r.split("."),a=o[o.length-1];try{return Ta(u.fieldType,a,n,i)}catch(s){throw Ar(`the id=${u.id}'s instance setState error, %o ${s}.`,n),s}}_proxyStateCallback(e,r,n,i,u){Array.isArray(e)?this._handlerArrayUpdate(e,r,n,i,u):this._handlerObjectUpdate(e,r,n,i)}_handlerArrayUpdate(e,r,n,i,u){const o=Hu(this.runtime.flatInstances,r,this.runtime.instanceMap);if((o==null?void 0:o.controlType)!==de.LIST)return;const a=g=>{const y=[];for(let d=0;d<g;d++){const v=this.listControlCreateRow(o,"subtable-row");v&&y.push(v)}return y},s=Sr;let c=[],l=[],f=[],h=!1;if(n&&i){switch(n){case"push":case"unshift":const d=i.length;c=a(d),l=i,o.children[n](...c);break;case"splice":if(i.length>2){const v=i.length-2,p=i.slice(2);c=a(v),l=p;const m=i[0],D=i[1];o.children[n](m,D,...c)}else{const v=i[0],p=i[1];v+p===o.children.length-1&&(h=!0),o.children[n](...i)}break;default:o.children[n](...i);break}n==="splice"?f=u:["pop","shift"].includes(n)&&(f=[u]);const g=this.getState(o.id);this._handlerSubtableUpdateUid(g),this.runtime.getFlatInstances();const y=c.map(d=>{var p,m;const v=(m=(p=d==null?void 0:d.children)==null?void 0:p[0])==null?void 0:m.children[0];return this.getInstanceRowIndex(v)});this.emit("list-change",{instance:o,value:g,options:Object.assign({},s,{changed:c,data:l,rowIndexs:y,deleted:f!=null?f:[],jsonValue:JSON.stringify(g),isDeleteLastOne:h,type:n,args:i})}),Sr=null}}_handlerSubtableUpdateUid(e){e.forEach(r=>{r.uid||Object.assign(r,{uid:"new:"+tn("uid")})})}_handlerObjectUpdate(e,r,n,i){const u=Hu(this.runtime.flatInstances,r,this.runtime.instanceMap);if(!u)return;const o=this.getInstanceRowIndex(u),a=Sr||{};if(u.controlType===de.LIST&&u.type===Te.SUBTABLE){u.children.length=0;const s=n;let c=[];for(let h=0;h<s.length;h++){const g=this.listControlCreateRow(u,"subtable-row");g&&c.push(g)}u.children.push(...c);let l=i!=null?i:[];(a==null?void 0:a.setData)===!0&&(l=[]),this.runtime.getFlatInstances(),this._handlerSubtableUpdateUid(s);const f=c.map(h=>{var y,d;const g=(d=(y=h==null?void 0:h.children)==null?void 0:y[0])==null?void 0:d.children[0];return this.getInstanceRowIndex(g)});this.emit("list-change",{instance:u,value:n,options:wr(Ee({},a),{changed:c,data:s,rowIndexs:f,deleted:l,type:"push",jsonValue:JSON.stringify(s)})})}else this.emit("change",{instance:u,value:this.getState(u.id,o),rowIndex:o,options:wr(Ee({},a),{oldValue:i})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(e=>{var r;try{nn=(r=e.pluginName)!=null?r:e.constructor.name,e.apply(this)}catch(n){Ut(`${nn} Plugin apply Error
2
+ ${n}`)}finally{nn=""}}),this.__pluginsApplied=!0)}listControlCreateRow(e,r){let n;if(r==="subtable-row"?n={children:[],controlType:de.LAYOUT,id:_n(),type:"subtable-row",props:{caption:"",isHide:!1,style:{height:"",heightConfig:"fill",width:"",widthConfig:"fill"}},fieldType:void 0,customEvents:[],pageStatus:0,rules:[],parent:void 0}:n=this.runtime.createControlInstance(r),!!n){if(n.controlType===de.LAYOUT){const i=n,u=we(e.props.headers),o=this.createControl(u);for(let a of o)a.parent||this.runtime.resetInstanceParent(a,i);i.children.push(...o)}return n.parent=e,n}}listControlAddRow(e,r="subtable-row"){const n=this.listControlCreateRow(e,r);!n||e.children.push(n)}emit(e,r){return Pt(this,null,function*(){if(e==="engine-mounted"){if(this.isMounted)return Ar("The engine-mounted life cycle can only be triggered once"),Promise.resolve([]);if(this._jobTasks.length){console.time("engine-mounted need wait");const o=[...this._jobTasks];yield Promise.all(o),console.timeEnd("engine-mounted need wait")}this.isMounted=!0}let n,i;this.isMounted||(i=new Promise(o=>{n=o}),this._jobTasks.push(i));const u=yield Df(Ju.prototype,this,"emit").call(this,e,r);return n&&i&&(n(),this._jobTasks.splice(this._jobTasks.indexOf(i),1)),u})}on(e,r){return nn&&(r.applyingPluginName=nn),super.on(e,r)}createControl(...e){return this.runtime.createControl(...e)}createInstance(e,r){return this.runtime.createControlInstance(e,r)}schemaEvent(e,r){this.emit(e,r)}updateInstanceProps(e,r,n,i){return this.setInstance(e,r,n,i)}getRule(e,r){return Ke.staticGetRules(e,r)}getAllRules(e){var n,i;const r=this.runtime.allRules;return e===void 0?r:{rules:(n=r.rules[e])==null?void 0:n.fields,antdRules:(i=r.antdRules[e])==null?void 0:i.fields}}getRules(e,r=!1){var a,s,c,l,f,h,g;const n=this.runtime.rules,i=this.runtime.fieldCodeRules,u=this.store.controlIdMapping,o=r?i:n;if(e===void 0)return r?i:o;{if(e=r?(a=u[e])!=null&&a.children?(s=u[e].dataBind)==null?void 0:s.dataCode:((c=u[e].dataBind)==null?void 0:c.fieldCode)||e:e,e in o)return(l=o[e])==null?void 0:l.fields;let y;for(const d in o)if(e in(((f=o[d])==null?void 0:f.fields)||{})){y=(g=(h=o[d])==null?void 0:h.fields)==null?void 0:g[e];break}return y}}getAntdRules(e){var r;return e===void 0?this.runtime.antdRules:(r=this.runtime.antdRules[e])==null?void 0:r.fields}getState(e,r){return e===void 0?this.store.state:this.store.getState(e,r)}getEmptyState(e){return we(e===void 0?this.store.emptyState:this.store.getEmptyState(e))}setPayloadOptions(e){Sr=e}setState(e,r,n,i){Sr=i,this.debugLog("[%o]: \u89E6\u53D1setState, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o, options=%o",e,r,n,i),this.store.setState(e,r,n),this.debugLog("[%o]: setState\u5B8C\u6210, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o",e,r,n),Sr=null}setStates(e,r,n){let i=e!=null?e:{};Object.keys(i).forEach(u=>{Object.entries(this.store.controlIdMapping).forEach(([o,a])=>{if(a.dataView===u){const s=i[u][o];s!==void 0&&this.setState(o,s,r,n)}else(o===u||a.children&&a.children[u])&&i[u]!==void 0&&this.setState(u,i[u],r,n)})})}getField(e,r,n){if(!r){const s=this.getDataBindMapping(e);if(s){const{controlId:c}=s;return this.getState(c)}return}const i=this.getDataBindMapping(e,r);if(!i)return;const{dataBind:u,controlId:o}=i,a=this.getState(o,n);return ft(u)?a:Object.entries(u).reduce((s,[c,l])=>l.fieldCode===r?s[c]:s,a)}getData(e){var i,u,o,a,s,c,l,f,h;if(!e)return;let r=this.getDataBindMapping(e),n=this.getControlIdMapping();if(r){const{controlId:g}=r,y=this.getField(e);if(Array.isArray(y))return y.map(v=>{var m,D,E,w,_,O;let p={};for(let C in v){const A=(E=(D=(m=n[g])==null?void 0:m.children[C])==null?void 0:D.dataBind)==null?void 0:E.fieldCode;if(A!==""){if(A)p[A]=v[C];else if((w=n[g])!=null&&w.children[C])for(let B in v[C])p[(O=(_=n[g])==null?void 0:_.children[C])==null?void 0:O.dataBind[B].fieldCode]=v[C][B]}}return p});{let d={};for(let v in y)if((u=(i=n[v])==null?void 0:i.dataBind)!=null&&u.fieldCode)d[(o=n[v])==null?void 0:o.dataBind.fieldCode]=y[v];else if((s=(a=n[v])==null?void 0:a.dataBind)!=null&&s.dataCode)Array.isArray(y[v])&&(d[(c=n[v])==null?void 0:c.dataBind.dataCode]=(l=y[v])==null?void 0:l.map(p=>{var D,E;let m={};for(let w in p){const _=(D=n[v].children[w])==null?void 0:D.dataBind.fieldCode;if(_!=="")if(_)m[_]=p[w];else for(let O in p[w])m[(E=n[v].children[w])==null?void 0:E.dataBind[O].fieldCode]=p[w][O]}return m}));else if(n[v])for(let p in y[v])d[(h=(f=n[v])==null?void 0:f.dataBind[p])==null?void 0:h.fieldCode]=y[v][p];return d}}}setField(e,r,n,i,u){var c;const o=this.getDataBindMapping(e,r);if(!o)return;const{dataBind:a,controlId:s}=o;if(ft(a))this.setState(s,n,i,u);else{const l=(c=we(this.getState(s,i)))!=null?c:this.getEmptyState(s),f=Object.entries(a).reduce((h,[g,y])=>(y.fieldCode===r&&(h[g]=n),h),l);this.setState(s,f,i,u)}}setFields(e,r,n,i){const u=this.getDataBindMapping(e);if(!u)return;let o=[];u.fields.forEach(a=>{var f;const{dataBind:s,controlId:c,fieldCode:l}=a;if(!o.includes(l)&&!!Object.hasOwnProperty.call(r,l))if(ft(s))this.setState(c,r[l],n,i);else{const h=(f=we(this.getState(c,n)))!=null?f:this.getEmptyState(c),g=Object.entries(s).reduce((y,[d,v])=>{o.push(v.fieldCode);const p=r[v.fieldCode];return p!==void 0&&(y[d]=p),y},h);this.setState(a.controlId,g,n,i)}})}buildFields(e,r){const n=this.getDataBindMapping(e);if(!n||!n.fields)return;let i=[];const u={};return n.fields.forEach(o=>{const{dataBind:a,controlId:s,fieldCode:c}=o;if(!i.includes(c)&&!!Object.hasOwnProperty.call(r,c))if(ft(a))u[s]=r[c];else{const l=this.getEmptyState(s);u[o.controlId]=Object.entries(a).reduce((f,[h,g])=>{i.push(g.fieldCode);const y=r[g.fieldCode];return y!==void 0&&(f[h]=y),f},l)}}),u}setData(e,r){var s,c,l,f,h,g;this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",e,r);const n=r==null?void 0:r.onlySetData;let i=this.store.defaultState;n===!0&&(i={});const u=this.store.dataBindMapping,o=this.store.emptyState,a=Object.keys(e);for(let y=0;y<a.length;y++){const d=a[y],v=e[d];if(Array.isArray(v)){const p=u[d];if(!p)continue;const{dataViewId:m,controlId:D,fields:E}=p;i[m]||(i[m]={}),v.length?i[m][D]=[]:i[m][D]=(s=i[m][D])!=null?s:[];const w=new Map;for(let B=0;B<E.length;B++){const F=E[B];w.set(F.fieldCode,F)}const _=new Set;for(let B=0;B<E.length;B++){const F=E[B];F.fieldCode&&_.add(F.fieldCode)}const O=(c=o[m])==null?void 0:c[D],C={},A={};for(let B=0;B<v.length;B++){const F=v[B],$=we(O),X=new Set,K=Object.keys(F);for(let J=0;J<K.length;J++){const j=K[J],ve=F[j];if(!_.has(j)&&j in $&&ve!==void 0&&($[j]=ve),X.has(j))continue;if(!A[j]){const Je=w.get(j);Je&&(A[j]=Je)}const je=A[j];if(je){if(ft(je.dataBind)&&ve!==void 0)$[je.controlId]=ve;else if(!ft(je.dataBind)){const Je=je.controlId;C[Je]||(C[Je]=we((l=this.store.getEmptyState(Je))!=null?l:{}));const et=we(C[Je]),z=je.dataBind,H=Object.keys(z);for(let W=0;W<H.length;W++){const I=H[W],V=z[I],te=F[V.fieldCode];te!==void 0&&(et[I]=te),X.add(V.fieldCode)}$[Je]=et}}else j==="uid"&&ve!==void 0?$.uid=ve:j==="virtualStore"&&ve!==void 0&&($.virtualStore=Object.freeze(ve))}i[m][D].push($)}}else if(v){const p=[],m=we(this.store.emptyState);(f=Object.keys(v))!=null&&f.length&&Object.keys(v).map(E=>{var _;if(p.includes(E))return;const w=this.getDataBindMapping(d,E);if(w){if(i[w.dataViewId[0]]||(i[w.dataViewId[0]]={}),ft(w.dataBind)&&v[E]!==void 0)i[w.dataViewId[0]][w.controlId]=v[E]!==void 0?v[E]:m[w.dataViewId[0]][w.controlId];else if(!ft(w.dataBind)){const O=(_=this.getEmptyState(w.controlId))!=null?_:{};Object.keys(w.dataBind).map(C=>{const A=w.dataBind[C];if(e[A.dataCode]){const B=e[A.dataCode];B[A.fieldCode]!==void 0&&(O[C]=B[A.fieldCode])}p.push(A.fieldCode)}),i[w.dataViewId[0]][w.controlId]=O}}else{const O=this.getDataBindMapping(d);if((O==null?void 0:O.dataViewId)&&v[E]!==void 0){const C=O==null?void 0:O.dataViewId;E in(m[C]||{})&&(i[C][E]=v[E])}}});const D=this.getDataBindMapping(d);if(D){const E=(h=D==null?void 0:D.fields)==null?void 0:h.map(O=>O==null?void 0:O.controlId),w=this.getEmptyState(D==null?void 0:D.controlId),_=Object.keys((g=i==null?void 0:i[D==null?void 0:D.controlId])!=null?g:{});E==null||E.forEach(O=>{!_.includes(O)&&O!=="uid"&&i[D==null?void 0:D.controlId]&&(Object.keys(i).length?Object.assign(i[D==null?void 0:D.controlId],{[O]:w[O]}):Object.assign(i,{[D.controlId]:{[O]:w[O]}}))}),this.debugLog("engine setData\u65B9\u6CD5\u9ED8\u8BA4\u503C\u53CA\u8868\u5355\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",i)}}}this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",i),this.setStates(i,void 0,Ee({setData:!0},r)),this.runtime.getFlatInstances(),this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\u5B8C\u6210\u3002")}getDataBind(e){return this.store.getDataBind(e)}getInstance(e,r){const n=this.getInstances(e,r===-1);if(n.length>0)return r!==void 0?r===-1?n[0]:n[r]:n[0]}getInstances(e,r=!1){if(e===void 0)return this.runtime.flatInstances;const n=Array.from(this.runtime.instanceMap[e]||[]);if(r){const i=this.findSubtableHeadersControl(e);i!==void 0&&n.unshift(i)}return n}setInstance(e,r,n,i){try{if(typeof e=="string"&&i===-1)this.getInstances(e,i===-1).map(o=>{o&&(this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",o.id,o,r,n),uu(o.props,r,n),this.schemaEvent("schema-change",{instance:o,props:r,value:n,rowIndex:i}))});else{let u;if(typeof e=="string"?u=this.getInstance(e,i):u=e,!u)return;this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",u.id,u,r,n),uu(u.props,r,n),this.schemaEvent("schema-change",{instance:u,props:r,value:n,rowIndex:i})}}catch(u){throw u}}getControlIdMapping(){return this.store.controlIdMapping}getFieldInstance(e,r,n){const i=this.getDataBindMapping(e,r);if(i)return this.getInstance(i.controlId,n)}setFieldInstance(e,r,n,i,u){const o=this.getDataBindMapping(e,r);if(o){const a=this.getInstance(o.controlId,u);return this.debugLog(ue("CMD.c7371777541576312"),a.id,a,n,i),this.setInstance(a.id,n,i,u),a}}getDataBindMapping(e,r){if(!e&&!r)return this.store.dataBindMapping;const n=this.store.dataBindMapping[e];if(!n)return;if(!r)return n;const i=n.fields.find(u=>u.fieldCode===r);if(!!i)return i}getAction(){return this.actionManager}initDataManager(e){this.dataManager=new UC(e)}getDataManager(){return this.dataManager}assertInstance(e,r){return tt(r)?e.type===r:r.includes(e.type)}assertInstanceIsCustomControl(e){return!eE(tt(e)?e:e.type)}getInstanceRowIndex(e){if(!e.parent)return;let r;if(this.assertInstance(e.parent,Te.SUBTABLE_COLUMN)&&this.assertInstance(e.parent.parent,Te.SUBTABLE))r=-1;else if(this.getInstanceParentControl(e,Te.SUBTABLE_COLUMN)){const u=this.runtime.instanceMap[e.id];if(Object.prototype.toString.call(u)==="[object Array]"){const o=u.findIndex(a=>a===e);o>-1&&(r=o)}}return r}getInstanceParentControl(e,r){if(!!e.parent)return this.assertInstance(e.parent,r)?e.parent:this.getInstanceParentControl(e.parent,r)}getInstanceInSubtableHeader(e){const r=this.getInstanceRowIndex(e);if(r===void 0)return;if(r===-1)return e;const n=this.assertInstance(e,Te.SUBTABLE_COLUMN)?e:this.getInstanceParentControl(e,Te.SUBTABLE_COLUMN);if(!n)return;const u=this.getInstanceParentControl(e,Te.SUBTABLE).props.headers.find(o=>o.id===n.id);if(!!u)return u.children.find(o=>o.id===e.id)}setControlConfig(...e){return this.runtime.registerControlConfig(...e)}getControlConfig(e){return this.runtime.getControlConfig(e)}inList(e){const r=this.store.subtableHeadersControlIdMapping;let n;for(const i in r)if(e in r[i]){n=i;break}return n}findSubtableHeadersControl(e){const r=this.store.subtableHeadersControlIdMapping;let n;for(const i in r)if(e in r[i]){n=r[i][e];break}return n}}class KC{}class YC{constructor(e,r,n){this.config=e,this.env=r,this.eventJs=n}apply(e){this.engine=e;const r=this.config;if(!r)return;const n=e.getAction();if(this.eventJs){this.eventJs.exportsFun({ctx:e,utils:n.actionUtils});for(let[i,u]of Object.entries(this.eventJs))n.addAction(i,u)}else{const i=Pa(r,e,this.env);if(!i)return;for(let[u,o]of Object.entries(i.funcMap))n.addAction(u,o)}}}function Pa(t,e,r){if(!t.module||!t.module.compiled)return;const n=t.module.compiled,i={exports:{ctx:e,utils:e.getAction().actionUtils,env:r}};try{new Function("module","exports",n).call(i,i,i.exports)}catch(a){Ut(a.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&Ut("fail to parse the module")}const u={},o={};for(const[a,s]of Object.entries(i.exports))typeof s=="function"?u[a]=s:o[a]=s;return{funcMap:u,variables:o}}const e5={"engine-initialized":"did_init","engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class t5{constructor(e){this.config=e}apply(e){this.engine=e,Object.entries(e5).forEach(([r,n])=>{e.on(r,i=>Pt(this,null,function*(){const u=yield this.callLifecycleEvent(n,i);return u.includes(!1)?!1:u}))})}callLifecycleEvent(e,r){return Pt(this,null,function*(){const n=this.config;return!n||!Array.isArray(n[e])?[]:yield Promise.all(n[e].map(u=>Pt(this,null,function*(){return yield this.engine.getAction().execAction(u,r)})))})}}class r5{constructor(e,r){this.config=e,this.customEvents=r}apply(e){this.engine=e,xs.events.forEach(r=>{r.code&&r.key&&this.engineAddEventListener(r.code,r.key)}),this.customEvents.map(r=>{let n=r.key;r.namespace!==void 0&&r.namespace!==null&&r.namespace!==""&&(n=r.namespace+":"+r.key),this.engineAddEventListener(n,n)})}engineAddEventListener(e,r){this.engine.on(e,n=>Pt(this,null,function*(){if(!((e==="change"||e==="list-change")&&!this.engine.isMounted)&&n.instance!==void 0)return yield this.callControlEvent(r,n)}))}callControlEvent(e,r){return Pt(this,null,function*(){const n=this.config[r.instance.id];if(!n||!Array.isArray(n[e]))return[];const i=yield Promise.all(n[e].map(u=>Pt(this,null,function*(){return yield this.engine.getAction().execAction(u,r)})));return i.includes(!1)?!1:i})}}function Wn(){return Wn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Wn.apply(null,arguments)}var Na={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function Ge(t){return typeof t=="number"}function Gt(t){return!t||typeof t!="object"||typeof t.constructor!="function"?!1:t.isBigNumber===!0&&typeof t.constructor.prototype=="object"&&t.constructor.prototype.isBigNumber===!0||typeof t.constructor.isDecimal=="function"&&t.constructor.isDecimal(t)===!0}function $a(t){return t&&typeof t=="object"&&Object.getPrototypeOf(t).isComplex===!0||!1}function Ra(t){return t&&typeof t=="object"&&Object.getPrototypeOf(t).isFraction===!0||!1}function La(t){return t&&t.constructor.prototype.isUnit===!0||!1}function zn(t){return typeof t=="string"}var ht=Array.isArray;function Or(t){return t&&t.constructor.prototype.isMatrix===!0||!1}function Zu(t){return Array.isArray(t)||Or(t)}function n5(t){return t&&t.isDenseMatrix&&t.constructor.prototype.isMatrix===!0||!1}function i5(t){return t&&t.isSparseMatrix&&t.constructor.prototype.isMatrix===!0||!1}function u5(t){return t&&t.constructor.prototype.isRange===!0||!1}function ka(t){return t&&t.constructor.prototype.isIndex===!0||!1}function o5(t){return typeof t=="boolean"}function s5(t){return t&&t.constructor.prototype.isResultSet===!0||!1}function a5(t){return t&&t.constructor.prototype.isHelp===!0||!1}function l5(t){return typeof t=="function"}function c5(t){return t instanceof Date}function f5(t){return t instanceof RegExp}function ja(t){return!!(t&&typeof t=="object"&&t.constructor===Object&&!$a(t)&&!Ra(t))}function h5(t){return t===null}function d5(t){return t===void 0}function p5(t){return t&&t.isAccessorNode===!0&&t.constructor.prototype.isNode===!0||!1}function g5(t){return t&&t.isArrayNode===!0&&t.constructor.prototype.isNode===!0||!1}function v5(t){return t&&t.isAssignmentNode===!0&&t.constructor.prototype.isNode===!0||!1}function m5(t){return t&&t.isBlockNode===!0&&t.constructor.prototype.isNode===!0||!1}function y5(t){return t&&t.isConditionalNode===!0&&t.constructor.prototype.isNode===!0||!1}function D5(t){return t&&t.isConstantNode===!0&&t.constructor.prototype.isNode===!0||!1}function E5(t){return t&&t.isFunctionAssignmentNode===!0&&t.constructor.prototype.isNode===!0||!1}function w5(t){return t&&t.isFunctionNode===!0&&t.constructor.prototype.isNode===!0||!1}function C5(t){return t&&t.isIndexNode===!0&&t.constructor.prototype.isNode===!0||!1}function A5(t){return t&&t.isNode===!0&&t.constructor.prototype.isNode===!0||!1}function b5(t){return t&&t.isObjectNode===!0&&t.constructor.prototype.isNode===!0||!1}function F5(t){return t&&t.isOperatorNode===!0&&t.constructor.prototype.isNode===!0||!1}function _5(t){return t&&t.isParenthesisNode===!0&&t.constructor.prototype.isNode===!0||!1}function B5(t){return t&&t.isRangeNode===!0&&t.constructor.prototype.isNode===!0||!1}function S5(t){return t&&t.isRelationalNode===!0&&t.constructor.prototype.isNode===!0||!1}function O5(t){return t&&t.isSymbolNode===!0&&t.constructor.prototype.isNode===!0||!1}function M5(t){return t&&t.constructor.prototype.isChain===!0||!1}function Xu(t){var e=typeof t;return e==="object"?t===null?"null":Gt(t)?"BigNumber":t.constructor&&t.constructor.name?t.constructor.name:"Object":e}function gr(t){var e=typeof t;if(e==="number"||e==="string"||e==="boolean"||t===null||t===void 0)return t;if(typeof t.clone=="function")return t.clone();if(Array.isArray(t))return t.map(function(r){return gr(r)});if(t instanceof Date)return new Date(t.valueOf());if(Gt(t))return t;if(ja(t))return x5(t,gr);throw new TypeError("Cannot clone: unknown type of value (value: ".concat(t,")"))}function x5(t,e){var r={};for(var n in t)Gn(t,n)&&(r[n]=e(t[n]));return r}function un(t,e){var r,n,i;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;n++)if(!un(t[n],e[n]))return!1;return!0}else{if(typeof t=="function")return t===e;if(t instanceof Object){if(Array.isArray(e)||!(e instanceof Object))return!1;for(r in t)if(!(r in e)||!un(t[r],e[r]))return!1;for(r in e)if(!(r in t))return!1;return!0}else return t===e}}function Gn(t,e){return t&&Object.hasOwnProperty.call(t,e)}function I5(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n],u=t[i];u!==void 0&&(r[i]=u)}return r}var T5=["Matrix","Array"],P5=["number","BigNumber","Fraction"],qa=function(e){if(e)throw new Error(`The global config is readonly.
3
3
  Please create a mathjs instance if you want to change the default configuration.
4
4
  Example:
5
5
 
@@ -54,4 +54,4 @@ You tried to parse Less with the standard CSS parser; try again with the postcss
54
54
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
55
55
  https://www.w3ctech.com/topic/2226`));let a=r(...o);return a.postcssPlugin=e,a.postcssVersion=new Ho().version,a}let u;return Object.defineProperty(i,"postcss",{get(){return u||(u=i()),u}}),i.process=function(o,a,s){return ye([i(s)]).process(o,a)},i},ye.stringify=UF,ye.parse=jF,ye.fromJSON=NF,ye.list=LF,ye.comment=t=>new Zc(t),ye.atRule=t=>new Jc(t),ye.decl=t=>new Xc(t),ye.rule=t=>new ef(t),ye.root=t=>new Yc(t),ye.document=t=>new Kc(t),ye.CssSyntaxError=PF,ye.Declaration=Xc,ye.Container=TF,ye.Processor=Ho,ye.Document=Kc,ye.Comment=Zc,ye.Warning=VF,ye.AtRule=Jc,ye.Result=qF,ye.Input=$F,ye.Rule=ef,ye.Root=Yc,ye.Node=kF,RF.registerPostcss(ye);var be=ye;ye.default=ye,be.stringify,be.fromJSON,be.plugin,be.parse,be.list,be.document,be.comment,be.atRule,be.rule,be.decl,be.root,be.CssSyntaxError,be.Declaration,be.Container,be.Processor,be.Document,be.Comment,be.Warning,be.AtRule,be.Result,be.Input,be.Rule,be.Root,be.Node;const tf=(t={})=>{const e=t.prefix,r=/\s+$/.test(e)?e:`${e} `,n=t.ignoreFiles?[].concat(t.ignoreFiles):[],i=t.includeFiles?[].concat(t.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(u){const o=u.root,a=o.source.input.file;if(!(n.length&&a&&rf(a,n))&&!(i.length&&a&&!rf(a,i)))return{Rule(s,{result:c}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];s.parent&&l.includes(s.parent.name)||(s.selectors=s.selectors.map(f=>t.exclude&&WF(f,t.exclude)?f:t.transform?t.transform(e,f,r+f,o.source.input.file,s):[":root","body","html"].some(h=>f.startsWith(h))?t.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,e):r+f))}}}}};function rf(t,e){return e.some(r=>r instanceof RegExp?r.test(t):t.includes(r))}function WF(t,e){return e.some(r=>r instanceof RegExp?r.test(t):t===r)}tf.postcss=!0;var zF=tf,Qo={exports:{}},Jo={exports:{}},Zo={exports:{}},Xo={exports:{}},Ii={exports:{}},En={exports:{}},jt={exports:{}},pt={},Ti={exports:{}};(function(t,e){e.__esModule=!0,e.default=i;function r(u){for(var o=u.toLowerCase(),a="",s=!1,c=0;c<6&&o[c]!==void 0;c++){var l=o.charCodeAt(c),f=l>=97&&l<=102||l>=48&&l<=57;if(s=l===32,!f)break;a+=o[c]}if(a.length!==0){var h=parseInt(a,16),g=h>=55296&&h<=57343;return g||h===0||h>1114111?["\uFFFD",a.length+(s?1:0)]:[String.fromCodePoint(h),a.length+(s?1:0)]}}var n=/\\/;function i(u){var o=n.test(u);if(!o)return u;for(var a="",s=0;s<u.length;s++){if(u[s]==="\\"){var c=r(u.slice(s+1,s+7));if(c!==void 0){a+=c[0],s+=c[1];continue}if(u[s+1]==="\\"){a+="\\",s++;continue}u.length===s+1&&(a+=u[s]);continue}a+=u[s]}return a}t.exports=e.default})(Ti,Ti.exports);var Ko={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),o=1;o<i;o++)u[o-1]=arguments[o];for(;u.length>0;){var a=u.shift();if(!n[a])return;n=n[a]}return n}t.exports=e.default})(Ko,Ko.exports);var Yo={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),o=1;o<i;o++)u[o-1]=arguments[o];for(;u.length>0;){var a=u.shift();n[a]||(n[a]={}),n=n[a]}}t.exports=e.default})(Yo,Yo.exports);var es={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i="",u=n.indexOf("/*"),o=0;u>=0;){i=i+n.slice(o,u);var a=n.indexOf("*/",u+2);if(a<0)return i;o=a+2,u=n.indexOf("/*",o)}return i=i+n.slice(o),i}t.exports=e.default})(es,es.exports),pt.__esModule=!0,pt.unesc=pt.stripComments=pt.getProp=pt.ensureObject=void 0;var GF=Pi(Ti.exports);pt.unesc=GF.default;var HF=Pi(Ko.exports);pt.getProp=HF.default;var QF=Pi(Yo.exports);pt.ensureObject=QF.default;var JF=Pi(es.exports);pt.stripComments=JF.default;function Pi(t){return t&&t.__esModule?t:{default:t}}(function(t,e){e.__esModule=!0,e.default=void 0;var r=pt;function n(a,s){for(var c=0;c<s.length;c++){var l=s[c];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,l.key,l)}}function i(a,s,c){return s&&n(a.prototype,s),c&&n(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}var u=function a(s,c){if(typeof s!="object"||s===null)return s;var l=new s.constructor;for(var f in s)if(!!s.hasOwnProperty(f)){var h=s[f],g=typeof h;f==="parent"&&g==="object"?c&&(l[f]=c):h instanceof Array?l[f]=h.map(function(y){return a(y,l)}):l[f]=a(h,l)}return l},o=function(){function a(c){c===void 0&&(c={}),Object.assign(this,c),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var s=a.prototype;return s.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},s.replaceWith=function(){if(this.parent){for(var l in arguments)this.parent.insertBefore(this,arguments[l]);this.remove()}return this},s.next=function(){return this.parent.at(this.parent.index(this)+1)},s.prev=function(){return this.parent.at(this.parent.index(this)-1)},s.clone=function(l){l===void 0&&(l={});var f=u(this);for(var h in l)f[h]=l[h];return f},s.appendToPropertyAndEscape=function(l,f,h){this.raws||(this.raws={});var g=this[l],y=this.raws[l];this[l]=g+f,y||h!==f?this.raws[l]=(y||g)+h:delete this.raws[l]},s.setPropertyAndEscape=function(l,f,h){this.raws||(this.raws={}),this[l]=f,this.raws[l]=h},s.setPropertyWithoutEscape=function(l,f){this[l]=f,this.raws&&delete this.raws[l]},s.isAtPosition=function(l,f){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>l||this.source.end.line<l||this.source.start.line===l&&this.source.start.column>f||this.source.end.line===l&&this.source.end.column<f)},s.stringifyProperty=function(l){return this.raws&&this.raws[l]||this[l]},s.valueToString=function(){return String(this.stringifyProperty("value"))},s.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},i(a,[{key:"rawSpaceBefore",get:function(){var l=this.raws&&this.raws.spaces&&this.raws.spaces.before;return l===void 0&&(l=this.spaces&&this.spaces.before),l||""},set:function(l){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=l}},{key:"rawSpaceAfter",get:function(){var l=this.raws&&this.raws.spaces&&this.raws.spaces.after;return l===void 0&&(l=this.spaces.after),l||""},set:function(l){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=l}}]),a}();e.default=o,t.exports=e.default})(jt,jt.exports);var le={};le.__esModule=!0,le.UNIVERSAL=le.TAG=le.STRING=le.SELECTOR=le.ROOT=le.PSEUDO=le.NESTING=le.ID=le.COMMENT=le.COMBINATOR=le.CLASS=le.ATTRIBUTE=void 0;var ZF="tag";le.TAG=ZF;var XF="string";le.STRING=XF;var KF="selector";le.SELECTOR=KF;var YF="root";le.ROOT=YF;var e6="pseudo";le.PSEUDO=e6;var t6="nesting";le.NESTING=t6;var r6="id";le.ID=r6;var n6="comment";le.COMMENT=n6;var i6="combinator";le.COMBINATOR=i6;var u6="class";le.CLASS=u6;var o6="attribute";le.ATTRIBUTE=o6;var s6="universal";le.UNIVERSAL=s6,function(t,e){e.__esModule=!0,e.default=void 0;var r=o(jt.exports),n=u(le);function i(d){if(typeof WeakMap!="function")return null;var v=new WeakMap,p=new WeakMap;return(i=function(D){return D?p:v})(d)}function u(d,v){if(!v&&d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var p=i(v);if(p&&p.has(d))return p.get(d);var m={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in d)if(E!=="default"&&Object.prototype.hasOwnProperty.call(d,E)){var w=D?Object.getOwnPropertyDescriptor(d,E):null;w&&(w.get||w.set)?Object.defineProperty(m,E,w):m[E]=d[E]}return m.default=d,p&&p.set(d,m),m}function o(d){return d&&d.__esModule?d:{default:d}}function a(d,v){var p=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(p)return(p=p.call(d)).next.bind(p);if(Array.isArray(d)||(p=s(d))||v&&d&&typeof d.length=="number"){p&&(d=p);var m=0;return function(){return m>=d.length?{done:!0}:{done:!1,value:d[m++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
56
56
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(d,v){if(!!d){if(typeof d=="string")return c(d,v);var p=Object.prototype.toString.call(d).slice(8,-1);if(p==="Object"&&d.constructor&&(p=d.constructor.name),p==="Map"||p==="Set")return Array.from(d);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return c(d,v)}}function c(d,v){(v==null||v>d.length)&&(v=d.length);for(var p=0,m=new Array(v);p<v;p++)m[p]=d[p];return m}function l(d,v){for(var p=0;p<v.length;p++){var m=v[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}function f(d,v,p){return v&&l(d.prototype,v),p&&l(d,p),Object.defineProperty(d,"prototype",{writable:!1}),d}function h(d,v){d.prototype=Object.create(v.prototype),d.prototype.constructor=d,g(d,v)}function g(d,v){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,D){return m.__proto__=D,m},g(d,v)}var y=function(d){h(v,d);function v(m){var D;return D=d.call(this,m)||this,D.nodes||(D.nodes=[]),D}var p=v.prototype;return p.append=function(D){return D.parent=this,this.nodes.push(D),this},p.prepend=function(D){D.parent=this,this.nodes.unshift(D);for(var E in this.indexes)this.indexes[E]++;return this},p.at=function(D){return this.nodes[D]},p.index=function(D){return typeof D=="number"?D:this.nodes.indexOf(D)},p.removeChild=function(D){D=this.index(D),this.at(D).parent=void 0,this.nodes.splice(D,1);var E;for(var w in this.indexes)E=this.indexes[w],E>=D&&(this.indexes[w]=E-1);return this},p.removeAll=function(){for(var D=a(this.nodes),E;!(E=D()).done;){var w=E.value;w.parent=void 0}return this.nodes=[],this},p.empty=function(){return this.removeAll()},p.insertAfter=function(D,E){var w;E.parent=this;for(var _=this.index(D),O=[],C=2;C<arguments.length;C++)O.push(arguments[C]);(w=this.nodes).splice.apply(w,[_+1,0,E].concat(O)),E.parent=this;var A;for(var B in this.indexes)A=this.indexes[B],_<A&&(this.indexes[B]=A+arguments.length-1);return this},p.insertBefore=function(D,E){var w;E.parent=this;for(var _=this.index(D),O=[],C=2;C<arguments.length;C++)O.push(arguments[C]);(w=this.nodes).splice.apply(w,[_,0,E].concat(O)),E.parent=this;var A;for(var B in this.indexes)A=this.indexes[B],A>=_&&(this.indexes[B]=A+arguments.length-1);return this},p._findChildAtPosition=function(D,E){var w=void 0;return this.each(function(_){if(_.atPosition){var O=_.atPosition(D,E);if(O)return w=O,!1}else if(_.isAtPosition(D,E))return w=_,!1}),w},p.atPosition=function(D,E){if(this.isAtPosition(D,E))return this._findChildAtPosition(D,E)||this},p._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},p.each=function(D){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var E=this.lastEach;if(this.indexes[E]=0,!!this.length){for(var w,_;this.indexes[E]<this.length&&(w=this.indexes[E],_=D(this.at(w),w),_!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],_===!1)return!1}},p.walk=function(D){return this.each(function(E,w){var _=D(E,w);if(_!==!1&&E.length&&(_=E.walk(D)),_===!1)return!1})},p.walkAttributes=function(D){var E=this;return this.walk(function(w){if(w.type===n.ATTRIBUTE)return D.call(E,w)})},p.walkClasses=function(D){var E=this;return this.walk(function(w){if(w.type===n.CLASS)return D.call(E,w)})},p.walkCombinators=function(D){var E=this;return this.walk(function(w){if(w.type===n.COMBINATOR)return D.call(E,w)})},p.walkComments=function(D){var E=this;return this.walk(function(w){if(w.type===n.COMMENT)return D.call(E,w)})},p.walkIds=function(D){var E=this;return this.walk(function(w){if(w.type===n.ID)return D.call(E,w)})},p.walkNesting=function(D){var E=this;return this.walk(function(w){if(w.type===n.NESTING)return D.call(E,w)})},p.walkPseudos=function(D){var E=this;return this.walk(function(w){if(w.type===n.PSEUDO)return D.call(E,w)})},p.walkTags=function(D){var E=this;return this.walk(function(w){if(w.type===n.TAG)return D.call(E,w)})},p.walkUniversals=function(D){var E=this;return this.walk(function(w){if(w.type===n.UNIVERSAL)return D.call(E,w)})},p.split=function(D){var E=this,w=[];return this.reduce(function(_,O,C){var A=D.call(E,O);return w.push(O),A?(_.push(w),w=[]):C===E.length-1&&_.push(w),_},[])},p.map=function(D){return this.nodes.map(D)},p.reduce=function(D,E){return this.nodes.reduce(D,E)},p.every=function(D){return this.nodes.every(D)},p.some=function(D){return this.nodes.some(D)},p.filter=function(D){return this.nodes.filter(D)},p.sort=function(D){return this.nodes.sort(D)},p.toString=function(){return this.map(String).join("")},f(v,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),v}(r.default);e.default=y,t.exports=e.default}(En,En.exports),function(t,e){e.__esModule=!0,e.default=void 0;var r=i(En.exports),n=le;function i(l){return l&&l.__esModule?l:{default:l}}function u(l,f){for(var h=0;h<f.length;h++){var g=f[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(l,g.key,g)}}function o(l,f,h){return f&&u(l.prototype,f),h&&u(l,h),Object.defineProperty(l,"prototype",{writable:!1}),l}function a(l,f){l.prototype=Object.create(f.prototype),l.prototype.constructor=l,s(l,f)}function s(l,f){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,y){return g.__proto__=y,g},s(l,f)}var c=function(l){a(f,l);function f(g){var y;return y=l.call(this,g)||this,y.type=n.ROOT,y}var h=f.prototype;return h.toString=function(){var y=this.reduce(function(d,v){return d.push(String(v)),d},[]).join(",");return this.trailingComma?y+",":y},h.error=function(y,d){return this._error?this._error(y,d):new Error(y)},o(f,[{key:"errorGenerator",set:function(y){this._error=y}}]),f}(r.default);e.default=c,t.exports=e.default}(Ii,Ii.exports);var Ni={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(En.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.SELECTOR,f}return c}(r.default);e.default=a,t.exports=e.default})(Ni,Ni.exports);var $i={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var a6={},l6=a6.hasOwnProperty,c6=function(e,r){if(!e)return r;var n={};for(var i in r)n[i]=l6.call(e,i)?e[i]:r[i];return n},f6=/[ -,\.\/:-@\[-\^`\{-~]/,h6=/[ -,\.\/:-@\[\]\^`\{-~]/,d6=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,ts=function t(e,r){r=c6(r,t.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,u=e.charAt(0),o="",a=0,s=e.length;a<s;){var c=e.charAt(a++),l=c.charCodeAt(),f=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&a<s){var h=e.charCodeAt(a++);(h&64512)==56320?l=((l&1023)<<10)+(h&1023)+65536:a--}f="\\"+l.toString(16).toUpperCase()+" "}else r.escapeEverything?f6.test(c)?f="\\"+c:f="\\"+l.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(c)?f="\\"+l.toString(16).toUpperCase()+" ":c=="\\"||!i&&(c=='"'&&n==c||c=="'"&&n==c)||i&&h6.test(c)?f="\\"+c:f=c;o+=f}return i&&(/^-[-\d]/.test(o)?o="\\-"+o.slice(1):/\d/.test(u)&&(o="\\3"+u+" "+o.slice(1))),o=o.replace(d6,function(g,y,d){return y&&y.length%2?g:(y||"")+d}),!i&&r.wrap?n+o+n:o};ts.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},ts.version="3.0.0";var rs=ts;(function(t,e){e.__esModule=!0,e.default=void 0;var r=o(rs),n=pt,i=o(jt.exports),u=le;function o(h){return h&&h.__esModule?h:{default:h}}function a(h,g){for(var y=0;y<g.length;y++){var d=g[y];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(h,d.key,d)}}function s(h,g,y){return g&&a(h.prototype,g),y&&a(h,y),Object.defineProperty(h,"prototype",{writable:!1}),h}function c(h,g){h.prototype=Object.create(g.prototype),h.prototype.constructor=h,l(h,g)}function l(h,g){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,v){return d.__proto__=v,d},l(h,g)}var f=function(h){c(g,h);function g(d){var v;return v=h.call(this,d)||this,v.type=u.CLASS,v._constructed=!0,v}var y=g.prototype;return y.valueToString=function(){return"."+h.prototype.valueToString.call(this)},s(g,[{key:"value",get:function(){return this._value},set:function(v){if(this._constructed){var p=(0,r.default)(v,{isIdentifier:!0});p!==v?((0,n.ensureObject)(this,"raws"),this.raws.value=p):this.raws&&delete this.raws.value}this._value=v}}]),g}(i.default);e.default=f,t.exports=e.default})($i,$i.exports);var Ri={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(jt.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.COMMENT,f}return c}(r.default);e.default=a,t.exports=e.default})(Ri,Ri.exports);var Li={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(jt.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(f){var h;return h=s.call(this,f)||this,h.type=n.ID,h}var l=c.prototype;return l.valueToString=function(){return"#"+s.prototype.valueToString.call(this)},c}(r.default);e.default=a,t.exports=e.default})(Li,Li.exports);var ki={exports:{}},wn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=u(rs),n=pt,i=u(jt.exports);function u(f){return f&&f.__esModule?f:{default:f}}function o(f,h){for(var g=0;g<h.length;g++){var y=h[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(f,y.key,y)}}function a(f,h,g){return h&&o(f.prototype,h),g&&o(f,g),Object.defineProperty(f,"prototype",{writable:!1}),f}function s(f,h){f.prototype=Object.create(h.prototype),f.prototype.constructor=f,c(f,h)}function c(f,h){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,d){return y.__proto__=d,y},c(f,h)}var l=function(f){s(h,f);function h(){return f.apply(this,arguments)||this}var g=h.prototype;return g.qualifiedName=function(d){return this.namespace?this.namespaceString+"|"+d:d},g.valueToString=function(){return this.qualifiedName(f.prototype.valueToString.call(this))},a(h,[{key:"namespace",get:function(){return this._namespace},set:function(d){if(d===!0||d==="*"||d==="&"){this._namespace=d,this.raws&&delete this.raws.namespace;return}var v=(0,r.default)(d,{isIdentifier:!0});this._namespace=d,v!==d?((0,n.ensureObject)(this,"raws"),this.raws.namespace=v):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(d){this.namespace=d}},{key:"namespaceString",get:function(){if(this.namespace){var d=this.stringifyProperty("namespace");return d===!0?"":d}else return""}}]),h}(i.default);e.default=l,t.exports=e.default})(wn,wn.exports),function(t,e){e.__esModule=!0,e.default=void 0;var r=i(wn.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.TAG,f}return c}(r.default);e.default=a,t.exports=e.default}(ki,ki.exports);var ji={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(jt.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.STRING,f}return c}(r.default);e.default=a,t.exports=e.default})(ji,ji.exports);var qi={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(En.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(f){var h;return h=s.call(this,f)||this,h.type=n.PSEUDO,h}var l=c.prototype;return l.toString=function(){var h=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),h,this.rawSpaceAfter].join("")},c}(r.default);e.default=a,t.exports=e.default})(qi,qi.exports);var ns={},p6=wf.default.deprecate;(function(t){t.__esModule=!0,t.default=void 0,t.unescapeValue=v;var e=o(rs),r=o(Ti.exports),n=o(wn.exports),i=le,u;function o(w){return w&&w.__esModule?w:{default:w}}function a(w,_){for(var O=0;O<_.length;O++){var C=_[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(w,C.key,C)}}function s(w,_,O){return _&&a(w.prototype,_),O&&a(w,O),Object.defineProperty(w,"prototype",{writable:!1}),w}function c(w,_){w.prototype=Object.create(_.prototype),w.prototype.constructor=w,l(w,_)}function l(w,_){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,A){return C.__proto__=A,C},l(w,_)}var f=p6,h=/^('|")([^]*)\1$/,g=f(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),y=f(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),d=f(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function v(w){var _=!1,O=null,C=w,A=C.match(h);return A&&(O=A[1],C=A[2]),C=(0,r.default)(C),C!==w&&(_=!0),{deprecatedUsage:_,unescaped:C,quoteMark:O}}function p(w){if(w.quoteMark!==void 0||w.value===void 0)return w;d();var _=v(w.value),O=_.quoteMark,C=_.unescaped;return w.raws||(w.raws={}),w.raws.value===void 0&&(w.raws.value=w.value),w.value=C,w.quoteMark=O,w}var m=function(w){c(_,w);function _(C){var A;return C===void 0&&(C={}),A=w.call(this,p(C))||this,A.type=i.ATTRIBUTE,A.raws=A.raws||{},Object.defineProperty(A.raws,"unquoted",{get:f(function(){return A.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:f(function(){return A.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),A._constructed=!0,A}var O=_.prototype;return O.getQuotedValue=function(A){A===void 0&&(A={});var B=this._determineQuoteMark(A),F=D[B],$=(0,e.default)(this._value,F);return $},O._determineQuoteMark=function(A){return A.smart?this.smartQuoteMark(A):this.preferredQuoteMark(A)},O.setValue=function(A,B){B===void 0&&(B={}),this._value=A,this._quoteMark=this._determineQuoteMark(B),this._syncRawValue()},O.smartQuoteMark=function(A){var B=this.value,F=B.replace(/[^']/g,"").length,$=B.replace(/[^"]/g,"").length;if(F+$===0){var X=(0,e.default)(B,{isIdentifier:!0});if(X===B)return _.NO_QUOTE;var K=this.preferredQuoteMark(A);if(K===_.NO_QUOTE){var J=this.quoteMark||A.quoteMark||_.DOUBLE_QUOTE,j=D[J],ve=(0,e.default)(B,j);if(ve.length<X.length)return J}return K}else return $===F?this.preferredQuoteMark(A):$<F?_.DOUBLE_QUOTE:_.SINGLE_QUOTE},O.preferredQuoteMark=function(A){var B=A.preferCurrentQuoteMark?this.quoteMark:A.quoteMark;return B===void 0&&(B=A.preferCurrentQuoteMark?A.quoteMark:this.quoteMark),B===void 0&&(B=_.DOUBLE_QUOTE),B},O._syncRawValue=function(){var A=(0,e.default)(this._value,D[this.quoteMark]);A===this._value?this.raws&&delete this.raws.value:this.raws.value=A},O._handleEscapes=function(A,B){if(this._constructed){var F=(0,e.default)(B,{isIdentifier:!0});F!==B?this.raws[A]=F:delete this.raws[A]}},O._spacesFor=function(A){var B={before:"",after:""},F=this.spaces[A]||{},$=this.raws.spaces&&this.raws.spaces[A]||{};return Object.assign(B,F,$)},O._stringFor=function(A,B,F){B===void 0&&(B=A),F===void 0&&(F=E);var $=this._spacesFor(B);return F(this.stringifyProperty(A),$)},O.offsetOf=function(A){var B=1,F=this._spacesFor("attribute");if(B+=F.before.length,A==="namespace"||A==="ns")return this.namespace?B:-1;if(A==="attributeNS"||(B+=this.namespaceString.length,this.namespace&&(B+=1),A==="attribute"))return B;B+=this.stringifyProperty("attribute").length,B+=F.after.length;var $=this._spacesFor("operator");B+=$.before.length;var X=this.stringifyProperty("operator");if(A==="operator")return X?B:-1;B+=X.length,B+=$.after.length;var K=this._spacesFor("value");B+=K.before.length;var J=this.stringifyProperty("value");if(A==="value")return J?B:-1;B+=J.length,B+=K.after.length;var j=this._spacesFor("insensitive");return B+=j.before.length,A==="insensitive"&&this.insensitive?B:-1},O.toString=function(){var A=this,B=[this.rawSpaceBefore,"["];return B.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(B.push(this._stringFor("operator")),B.push(this._stringFor("value")),B.push(this._stringFor("insensitiveFlag","insensitive",function(F,$){return F.length>0&&!A.quoted&&$.before.length===0&&!(A.spaces.value&&A.spaces.value.after)&&($.before=" "),E(F,$)}))),B.push("]"),B.push(this.rawSpaceAfter),B.join("")},s(_,[{key:"quoted",get:function(){var A=this.quoteMark;return A==="'"||A==='"'},set:function(A){y()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(A){if(!this._constructed){this._quoteMark=A;return}this._quoteMark!==A&&(this._quoteMark=A,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(A){if(this._constructed){var B=v(A),F=B.deprecatedUsage,$=B.unescaped,X=B.quoteMark;if(F&&g(),$===this._value&&X===this._quoteMark)return;this._value=$,this._quoteMark=X,this._syncRawValue()}else this._value=A}},{key:"insensitive",get:function(){return this._insensitive},set:function(A){A||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0)),this._insensitive=A}},{key:"attribute",get:function(){return this._attribute},set:function(A){this._handleEscapes("attribute",A),this._attribute=A}}]),_}(n.default);t.default=m,m.NO_QUOTE=null,m.SINGLE_QUOTE="'",m.DOUBLE_QUOTE='"';var D=(u={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},u[null]={isIdentifier:!0},u);function E(w,_){return""+_.before+w+_.after}})(ns);var Ui={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(wn.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.UNIVERSAL,f.value="*",f}return c}(r.default);e.default=a,t.exports=e.default})(Ui,Ui.exports);var Vi={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(jt.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.COMBINATOR,f}return c}(r.default);e.default=a,t.exports=e.default})(Vi,Vi.exports);var Wi={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(jt.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.NESTING,f.value="&",f}return c}(r.default);e.default=a,t.exports=e.default})(Wi,Wi.exports);var is={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){return n.sort(function(i,u){return i-u})}t.exports=e.default})(is,is.exports);var nf={},Q={};Q.__esModule=!0,Q.word=Q.tilde=Q.tab=Q.str=Q.space=Q.slash=Q.singleQuote=Q.semicolon=Q.plus=Q.pipe=Q.openSquare=Q.openParenthesis=Q.newline=Q.greaterThan=Q.feed=Q.equals=Q.doubleQuote=Q.dollar=Q.cr=Q.comment=Q.comma=Q.combinator=Q.colon=Q.closeSquare=Q.closeParenthesis=Q.caret=Q.bang=Q.backslash=Q.at=Q.asterisk=Q.ampersand=void 0;var g6=38;Q.ampersand=g6;var v6=42;Q.asterisk=v6;var m6=64;Q.at=m6;var y6=44;Q.comma=y6;var D6=58;Q.colon=D6;var E6=59;Q.semicolon=E6;var w6=40;Q.openParenthesis=w6;var C6=41;Q.closeParenthesis=C6;var A6=91;Q.openSquare=A6;var b6=93;Q.closeSquare=b6;var F6=36;Q.dollar=F6;var _6=126;Q.tilde=_6;var B6=94;Q.caret=B6;var S6=43;Q.plus=S6;var O6=61;Q.equals=O6;var M6=124;Q.pipe=M6;var x6=62;Q.greaterThan=x6;var I6=32;Q.space=I6;var uf=39;Q.singleQuote=uf;var T6=34;Q.doubleQuote=T6;var P6=47;Q.slash=P6;var N6=33;Q.bang=N6;var $6=92;Q.backslash=$6;var R6=13;Q.cr=R6;var L6=12;Q.feed=L6;var k6=10;Q.newline=k6;var j6=9;Q.tab=j6;var q6=uf;Q.str=q6;var U6=-1;Q.comment=U6;var V6=-2;Q.word=V6;var W6=-3;Q.combinator=W6,function(t){t.__esModule=!0,t.FIELDS=void 0,t.default=y;var e=u(Q),r,n;function i(d){if(typeof WeakMap!="function")return null;var v=new WeakMap,p=new WeakMap;return(i=function(D){return D?p:v})(d)}function u(d,v){if(!v&&d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var p=i(v);if(p&&p.has(d))return p.get(d);var m={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in d)if(E!=="default"&&Object.prototype.hasOwnProperty.call(d,E)){var w=D?Object.getOwnPropertyDescriptor(d,E):null;w&&(w.get||w.set)?Object.defineProperty(m,E,w):m[E]=d[E]}return m.default=d,p&&p.set(d,m),m}for(var o=(r={},r[e.tab]=!0,r[e.newline]=!0,r[e.cr]=!0,r[e.feed]=!0,r),a=(n={},n[e.space]=!0,n[e.tab]=!0,n[e.newline]=!0,n[e.cr]=!0,n[e.feed]=!0,n[e.ampersand]=!0,n[e.asterisk]=!0,n[e.bang]=!0,n[e.comma]=!0,n[e.colon]=!0,n[e.semicolon]=!0,n[e.openParenthesis]=!0,n[e.closeParenthesis]=!0,n[e.openSquare]=!0,n[e.closeSquare]=!0,n[e.singleQuote]=!0,n[e.doubleQuote]=!0,n[e.plus]=!0,n[e.pipe]=!0,n[e.tilde]=!0,n[e.greaterThan]=!0,n[e.equals]=!0,n[e.dollar]=!0,n[e.caret]=!0,n[e.slash]=!0,n),s={},c="0123456789abcdefABCDEF",l=0;l<c.length;l++)s[c.charCodeAt(l)]=!0;function f(d,v){var p=v,m;do{if(m=d.charCodeAt(p),a[m])return p-1;m===e.backslash?p=h(d,p)+1:p++}while(p<d.length);return p-1}function h(d,v){var p=v,m=d.charCodeAt(p+1);if(!o[m])if(s[m]){var D=0;do p++,D++,m=d.charCodeAt(p+1);while(s[m]&&D<6);D<6&&m===e.space&&p++}else p++;return p}var g={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};t.FIELDS=g;function y(d){var v=[],p=d.css.valueOf(),m=p,D=m.length,E=-1,w=1,_=0,O=0,C,A,B,F,$,X,K,J,j,ve,je,Je,et;function z(H,W){if(d.safe)p+=W,j=p.length-1;else throw d.error("Unclosed "+H,w,_-E,_)}for(;_<D;){switch(C=p.charCodeAt(_),C===e.newline&&(E=_,w+=1),C){case e.space:case e.tab:case e.newline:case e.cr:case e.feed:j=_;do j+=1,C=p.charCodeAt(j),C===e.newline&&(E=j,w+=1);while(C===e.space||C===e.newline||C===e.tab||C===e.cr||C===e.feed);et=e.space,F=w,B=j-E-1,O=j;break;case e.plus:case e.greaterThan:case e.tilde:case e.pipe:j=_;do j+=1,C=p.charCodeAt(j);while(C===e.plus||C===e.greaterThan||C===e.tilde||C===e.pipe);et=e.combinator,F=w,B=_-E,O=j;break;case e.asterisk:case e.ampersand:case e.bang:case e.comma:case e.equals:case e.dollar:case e.caret:case e.openSquare:case e.closeSquare:case e.colon:case e.semicolon:case e.openParenthesis:case e.closeParenthesis:j=_,et=C,F=w,B=_-E,O=j+1;break;case e.singleQuote:case e.doubleQuote:Je=C===e.singleQuote?"'":'"',j=_;do for($=!1,j=p.indexOf(Je,j+1),j===-1&&z("quote",Je),X=j;p.charCodeAt(X-1)===e.backslash;)X-=1,$=!$;while($);et=e.str,F=w,B=_-E,O=j+1;break;default:C===e.slash&&p.charCodeAt(_+1)===e.asterisk?(j=p.indexOf("*/",_+2)+1,j===0&&z("comment","*/"),A=p.slice(_,j+1),J=A.split(`
57
- `),K=J.length-1,K>0?(ve=w+K,je=j-J[K].length):(ve=w,je=E),et=e.comment,w=ve,F=ve,B=j-je):C===e.slash?(j=_,et=C,F=w,B=_-E,O=j+1):(j=f(p,_),et=e.word,F=w,B=j-E),O=j+1;break}v.push([et,w,_-E,F,B,_,O]),je&&(E=je,je=null),_=O}return v}}(nf),function(t,e){e.__esModule=!0,e.default=void 0;var r=O(Ii.exports),n=O(Ni.exports),i=O($i.exports),u=O(Ri.exports),o=O(Li.exports),a=O(ki.exports),s=O(ji.exports),c=O(qi.exports),l=_(ns),f=O(Ui.exports),h=O(Vi.exports),g=O(Wi.exports),y=O(is.exports),d=_(nf),v=_(Q),p=_(le),m=pt,D,E;function w(z){if(typeof WeakMap!="function")return null;var H=new WeakMap,W=new WeakMap;return(w=function(V){return V?W:H})(z)}function _(z,H){if(!H&&z&&z.__esModule)return z;if(z===null||typeof z!="object"&&typeof z!="function")return{default:z};var W=w(H);if(W&&W.has(z))return W.get(z);var I={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var te in z)if(te!=="default"&&Object.prototype.hasOwnProperty.call(z,te)){var T=V?Object.getOwnPropertyDescriptor(z,te):null;T&&(T.get||T.set)?Object.defineProperty(I,te,T):I[te]=z[te]}return I.default=z,W&&W.set(z,I),I}function O(z){return z&&z.__esModule?z:{default:z}}function C(z,H){for(var W=0;W<H.length;W++){var I=H[W];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(z,I.key,I)}}function A(z,H,W){return H&&C(z.prototype,H),W&&C(z,W),Object.defineProperty(z,"prototype",{writable:!1}),z}var B=(D={},D[v.space]=!0,D[v.cr]=!0,D[v.feed]=!0,D[v.newline]=!0,D[v.tab]=!0,D),F=Object.assign({},B,(E={},E[v.comment]=!0,E));function $(z){return{line:z[d.FIELDS.START_LINE],column:z[d.FIELDS.START_COL]}}function X(z){return{line:z[d.FIELDS.END_LINE],column:z[d.FIELDS.END_COL]}}function K(z,H,W,I){return{start:{line:z,column:H},end:{line:W,column:I}}}function J(z){return K(z[d.FIELDS.START_LINE],z[d.FIELDS.START_COL],z[d.FIELDS.END_LINE],z[d.FIELDS.END_COL])}function j(z,H){if(!!z)return K(z[d.FIELDS.START_LINE],z[d.FIELDS.START_COL],H[d.FIELDS.END_LINE],H[d.FIELDS.END_COL])}function ve(z,H){var W=z[H];if(typeof W=="string")return W.indexOf("\\")!==-1&&((0,m.ensureObject)(z,"raws"),z[H]=(0,m.unesc)(W),z.raws[H]===void 0&&(z.raws[H]=W)),z}function je(z,H){for(var W=-1,I=[];(W=z.indexOf(H,W+1))!==-1;)I.push(W);return I}function Je(){var z=Array.prototype.concat.apply([],arguments);return z.filter(function(H,W){return W===z.indexOf(H)})}var et=function(){function z(W,I){I===void 0&&(I={}),this.rule=W,this.options=Object.assign({lossy:!1,safe:!1},I),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,d.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var V=j(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:V}),this.root.errorGenerator=this._errorGenerator();var te=new n.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(te),this.current=te,this.loop()}var H=z.prototype;return H._errorGenerator=function(){var I=this;return function(V,te){return typeof I.rule=="string"?new Error(V):I.rule.error(V,te)}},H.attribute=function(){var I=[],V=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[d.FIELDS.TYPE]!==v.closeSquare;)I.push(this.currToken),this.position++;if(this.currToken[d.FIELDS.TYPE]!==v.closeSquare)return this.expected("closing square bracket",this.currToken[d.FIELDS.START_POS]);var te=I.length,T={source:K(V[1],V[2],this.currToken[3],this.currToken[4]),sourceIndex:V[d.FIELDS.START_POS]};if(te===1&&!~[v.word].indexOf(I[0][d.FIELDS.TYPE]))return this.expected("attribute",I[0][d.FIELDS.START_POS]);for(var ae=0,he="",ce="",ie=null,Ce=!1;ae<te;){var Ne=I[ae],se=this.content(Ne),Me=I[ae+1];switch(Ne[d.FIELDS.TYPE]){case v.space:if(Ce=!0,this.options.lossy)break;if(ie){(0,m.ensureObject)(T,"spaces",ie);var bt=T.spaces[ie].after||"";T.spaces[ie].after=bt+se;var gt=(0,m.getProp)(T,"raws","spaces",ie,"after")||null;gt&&(T.raws.spaces[ie].after=gt+se)}else he=he+se,ce=ce+se;break;case v.asterisk:if(Me[d.FIELDS.TYPE]===v.equals)T.operator=se,ie="operator";else if((!T.namespace||ie==="namespace"&&!Ce)&&Me){he&&((0,m.ensureObject)(T,"spaces","attribute"),T.spaces.attribute.before=he,he=""),ce&&((0,m.ensureObject)(T,"raws","spaces","attribute"),T.raws.spaces.attribute.before=he,ce=""),T.namespace=(T.namespace||"")+se;var Ze=(0,m.getProp)(T,"raws","namespace")||null;Ze&&(T.raws.namespace+=se),ie="namespace"}Ce=!1;break;case v.dollar:if(ie==="value"){var Ue=(0,m.getProp)(T,"raws","value");T.value+="$",Ue&&(T.raws.value=Ue+"$");break}case v.caret:Me[d.FIELDS.TYPE]===v.equals&&(T.operator=se,ie="operator"),Ce=!1;break;case v.combinator:if(se==="~"&&Me[d.FIELDS.TYPE]===v.equals&&(T.operator=se,ie="operator"),se!=="|"){Ce=!1;break}Me[d.FIELDS.TYPE]===v.equals?(T.operator=se,ie="operator"):!T.namespace&&!T.attribute&&(T.namespace=!0),Ce=!1;break;case v.word:if(Me&&this.content(Me)==="|"&&I[ae+2]&&I[ae+2][d.FIELDS.TYPE]!==v.equals&&!T.operator&&!T.namespace)T.namespace=se,ie="namespace";else if(!T.attribute||ie==="attribute"&&!Ce){he&&((0,m.ensureObject)(T,"spaces","attribute"),T.spaces.attribute.before=he,he=""),ce&&((0,m.ensureObject)(T,"raws","spaces","attribute"),T.raws.spaces.attribute.before=ce,ce=""),T.attribute=(T.attribute||"")+se;var vt=(0,m.getProp)(T,"raws","attribute")||null;vt&&(T.raws.attribute+=se),ie="attribute"}else if(!T.value&&T.value!==""||ie==="value"&&!(Ce||T.quoteMark)){var mt=(0,m.unesc)(se),Tt=(0,m.getProp)(T,"raws","value")||"",b=T.value||"";T.value=b+mt,T.quoteMark=null,(mt!==se||Tt)&&((0,m.ensureObject)(T,"raws"),T.raws.value=(Tt||b)+se),ie="value"}else{var S=se==="i"||se==="I";(T.value||T.value==="")&&(T.quoteMark||Ce)?(T.insensitive=S,(!S||se==="I")&&((0,m.ensureObject)(T,"raws"),T.raws.insensitiveFlag=se),ie="insensitive",he&&((0,m.ensureObject)(T,"spaces","insensitive"),T.spaces.insensitive.before=he,he=""),ce&&((0,m.ensureObject)(T,"raws","spaces","insensitive"),T.raws.spaces.insensitive.before=ce,ce="")):(T.value||T.value==="")&&(ie="value",T.value+=se,T.raws.value&&(T.raws.value+=se))}Ce=!1;break;case v.str:if(!T.attribute||!T.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:Ne[d.FIELDS.START_POS]});var M=(0,l.unescapeValue)(se),P=M.unescaped,k=M.quoteMark;T.value=P,T.quoteMark=k,ie="value",(0,m.ensureObject)(T,"raws"),T.raws.value=se,Ce=!1;break;case v.equals:if(!T.attribute)return this.expected("attribute",Ne[d.FIELDS.START_POS],se);if(T.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:Ne[d.FIELDS.START_POS]});T.operator=T.operator?T.operator+se:se,ie="operator",Ce=!1;break;case v.comment:if(ie)if(Ce||Me&&Me[d.FIELDS.TYPE]===v.space||ie==="insensitive"){var N=(0,m.getProp)(T,"spaces",ie,"after")||"",U=(0,m.getProp)(T,"raws","spaces",ie,"after")||N;(0,m.ensureObject)(T,"raws","spaces",ie),T.raws.spaces[ie].after=U+se}else{var q=T[ie]||"",G=(0,m.getProp)(T,"raws",ie)||q;(0,m.ensureObject)(T,"raws"),T.raws[ie]=G+se}else ce=ce+se;break;default:return this.error('Unexpected "'+se+'" found.',{index:Ne[d.FIELDS.START_POS]})}ae++}ve(T,"attribute"),ve(T,"namespace"),this.newNode(new l.default(T)),this.position++},H.parseWhitespaceEquivalentTokens=function(I){I<0&&(I=this.tokens.length);var V=this.position,te=[],T="",ae=void 0;do if(B[this.currToken[d.FIELDS.TYPE]])this.options.lossy||(T+=this.content());else if(this.currToken[d.FIELDS.TYPE]===v.comment){var he={};T&&(he.before=T,T=""),ae=new u.default({value:this.content(),source:J(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS],spaces:he}),te.push(ae)}while(++this.position<I);if(T){if(ae)ae.spaces.after=T;else if(!this.options.lossy){var ce=this.tokens[V],ie=this.tokens[this.position-1];te.push(new s.default({value:"",source:K(ce[d.FIELDS.START_LINE],ce[d.FIELDS.START_COL],ie[d.FIELDS.END_LINE],ie[d.FIELDS.END_COL]),sourceIndex:ce[d.FIELDS.START_POS],spaces:{before:T,after:""}}))}}return te},H.convertWhitespaceNodesToSpace=function(I,V){var te=this;V===void 0&&(V=!1);var T="",ae="";I.forEach(function(ce){var ie=te.lossySpace(ce.spaces.before,V),Ce=te.lossySpace(ce.rawSpaceBefore,V);T+=ie+te.lossySpace(ce.spaces.after,V&&ie.length===0),ae+=ie+ce.value+te.lossySpace(ce.rawSpaceAfter,V&&Ce.length===0)}),ae===T&&(ae=void 0);var he={space:T,rawSpace:ae};return he},H.isNamedCombinator=function(I){return I===void 0&&(I=this.position),this.tokens[I+0]&&this.tokens[I+0][d.FIELDS.TYPE]===v.slash&&this.tokens[I+1]&&this.tokens[I+1][d.FIELDS.TYPE]===v.word&&this.tokens[I+2]&&this.tokens[I+2][d.FIELDS.TYPE]===v.slash},H.namedCombinator=function(){if(this.isNamedCombinator()){var I=this.content(this.tokens[this.position+1]),V=(0,m.unesc)(I).toLowerCase(),te={};V!==I&&(te.value="/"+I+"/");var T=new h.default({value:"/"+V+"/",source:K(this.currToken[d.FIELDS.START_LINE],this.currToken[d.FIELDS.START_COL],this.tokens[this.position+2][d.FIELDS.END_LINE],this.tokens[this.position+2][d.FIELDS.END_COL]),sourceIndex:this.currToken[d.FIELDS.START_POS],raws:te});return this.position=this.position+3,T}else this.unexpected()},H.combinator=function(){var I=this;if(this.content()==="|")return this.namespace();var V=this.locateNextMeaningfulToken(this.position);if(V<0||this.tokens[V][d.FIELDS.TYPE]===v.comma||this.tokens[V][d.FIELDS.TYPE]===v.closeParenthesis){var te=this.parseWhitespaceEquivalentTokens(V);if(te.length>0){var T=this.current.last;if(T){var ae=this.convertWhitespaceNodesToSpace(te),he=ae.space,ce=ae.rawSpace;ce!==void 0&&(T.rawSpaceAfter+=ce),T.spaces.after+=he}else te.forEach(function(Tt){return I.newNode(Tt)})}return}var ie=this.currToken,Ce=void 0;V>this.position&&(Ce=this.parseWhitespaceEquivalentTokens(V));var Ne;if(this.isNamedCombinator()?Ne=this.namedCombinator():this.currToken[d.FIELDS.TYPE]===v.combinator?(Ne=new h.default({value:this.content(),source:J(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS]}),this.position++):B[this.currToken[d.FIELDS.TYPE]]||Ce||this.unexpected(),Ne){if(Ce){var se=this.convertWhitespaceNodesToSpace(Ce),Me=se.space,bt=se.rawSpace;Ne.spaces.before=Me,Ne.rawSpaceBefore=bt}}else{var gt=this.convertWhitespaceNodesToSpace(Ce,!0),Ze=gt.space,Ue=gt.rawSpace;Ue||(Ue=Ze);var vt={},mt={spaces:{}};Ze.endsWith(" ")&&Ue.endsWith(" ")?(vt.before=Ze.slice(0,Ze.length-1),mt.spaces.before=Ue.slice(0,Ue.length-1)):Ze[0]===" "&&Ue[0]===" "?(vt.after=Ze.slice(1),mt.spaces.after=Ue.slice(1)):mt.value=Ue,Ne=new h.default({value:" ",source:j(ie,this.tokens[this.position-1]),sourceIndex:ie[d.FIELDS.START_POS],spaces:vt,raws:mt})}return this.currToken&&this.currToken[d.FIELDS.TYPE]===v.space&&(Ne.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(Ne)},H.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var I=new n.default({source:{start:$(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][d.FIELDS.START_POS]});this.current.parent.append(I),this.current=I,this.position++},H.comment=function(){var I=this.currToken;this.newNode(new u.default({value:this.content(),source:J(I),sourceIndex:I[d.FIELDS.START_POS]})),this.position++},H.error=function(I,V){throw this.root.error(I,V)},H.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[d.FIELDS.START_POS]})},H.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[d.FIELDS.START_POS])},H.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[d.FIELDS.START_POS])},H.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[d.FIELDS.START_POS])},H.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[d.FIELDS.START_POS])},H.namespace=function(){var I=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[d.FIELDS.TYPE]===v.word)return this.position++,this.word(I);if(this.nextToken[d.FIELDS.TYPE]===v.asterisk)return this.position++,this.universal(I);this.unexpectedPipe()},H.nesting=function(){if(this.nextToken){var I=this.content(this.nextToken);if(I==="|"){this.position++;return}}var V=this.currToken;this.newNode(new g.default({value:this.content(),source:J(V),sourceIndex:V[d.FIELDS.START_POS]})),this.position++},H.parentheses=function(){var I=this.current.last,V=1;if(this.position++,I&&I.type===p.PSEUDO){var te=new n.default({source:{start:$(this.tokens[this.position])},sourceIndex:this.tokens[this.position][d.FIELDS.START_POS]}),T=this.current;for(I.append(te),this.current=te;this.position<this.tokens.length&&V;)this.currToken[d.FIELDS.TYPE]===v.openParenthesis&&V++,this.currToken[d.FIELDS.TYPE]===v.closeParenthesis&&V--,V?this.parse():(this.current.source.end=X(this.currToken),this.current.parent.source.end=X(this.currToken),this.position++);this.current=T}else{for(var ae=this.currToken,he="(",ce;this.position<this.tokens.length&&V;)this.currToken[d.FIELDS.TYPE]===v.openParenthesis&&V++,this.currToken[d.FIELDS.TYPE]===v.closeParenthesis&&V--,ce=this.currToken,he+=this.parseParenthesisToken(this.currToken),this.position++;I?I.appendToPropertyAndEscape("value",he,he):this.newNode(new s.default({value:he,source:K(ae[d.FIELDS.START_LINE],ae[d.FIELDS.START_COL],ce[d.FIELDS.END_LINE],ce[d.FIELDS.END_COL]),sourceIndex:ae[d.FIELDS.START_POS]}))}if(V)return this.expected("closing parenthesis",this.currToken[d.FIELDS.START_POS])},H.pseudo=function(){for(var I=this,V="",te=this.currToken;this.currToken&&this.currToken[d.FIELDS.TYPE]===v.colon;)V+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[d.FIELDS.TYPE]===v.word)this.splitWord(!1,function(T,ae){V+=T,I.newNode(new c.default({value:V,source:j(te,I.currToken),sourceIndex:te[d.FIELDS.START_POS]})),ae>1&&I.nextToken&&I.nextToken[d.FIELDS.TYPE]===v.openParenthesis&&I.error("Misplaced parenthesis.",{index:I.nextToken[d.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[d.FIELDS.START_POS])},H.space=function(){var I=this.content();this.position===0||this.prevToken[d.FIELDS.TYPE]===v.comma||this.prevToken[d.FIELDS.TYPE]===v.openParenthesis||this.current.nodes.every(function(V){return V.type==="comment"})?(this.spaces=this.optionalSpace(I),this.position++):this.position===this.tokens.length-1||this.nextToken[d.FIELDS.TYPE]===v.comma||this.nextToken[d.FIELDS.TYPE]===v.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(I),this.position++):this.combinator()},H.string=function(){var I=this.currToken;this.newNode(new s.default({value:this.content(),source:J(I),sourceIndex:I[d.FIELDS.START_POS]})),this.position++},H.universal=function(I){var V=this.nextToken;if(V&&this.content(V)==="|")return this.position++,this.namespace();var te=this.currToken;this.newNode(new f.default({value:this.content(),source:J(te),sourceIndex:te[d.FIELDS.START_POS]}),I),this.position++},H.splitWord=function(I,V){for(var te=this,T=this.nextToken,ae=this.content();T&&~[v.dollar,v.caret,v.equals,v.word].indexOf(T[d.FIELDS.TYPE]);){this.position++;var he=this.content();if(ae+=he,he.lastIndexOf("\\")===he.length-1){var ce=this.nextToken;ce&&ce[d.FIELDS.TYPE]===v.space&&(ae+=this.requiredSpace(this.content(ce)),this.position++)}T=this.nextToken}var ie=je(ae,".").filter(function(Me){var bt=ae[Me-1]==="\\",gt=/^\d+\.\d+%$/.test(ae);return!bt&&!gt}),Ce=je(ae,"#").filter(function(Me){return ae[Me-1]!=="\\"}),Ne=je(ae,"#{");Ne.length&&(Ce=Ce.filter(function(Me){return!~Ne.indexOf(Me)}));var se=(0,y.default)(Je([0].concat(ie,Ce)));se.forEach(function(Me,bt){var gt=se[bt+1]||ae.length,Ze=ae.slice(Me,gt);if(bt===0&&V)return V.call(te,Ze,se.length);var Ue,vt=te.currToken,mt=vt[d.FIELDS.START_POS]+se[bt],Tt=K(vt[1],vt[2]+Me,vt[3],vt[2]+(gt-1));if(~ie.indexOf(Me)){var b={value:Ze.slice(1),source:Tt,sourceIndex:mt};Ue=new i.default(ve(b,"value"))}else if(~Ce.indexOf(Me)){var S={value:Ze.slice(1),source:Tt,sourceIndex:mt};Ue=new o.default(ve(S,"value"))}else{var M={value:Ze,source:Tt,sourceIndex:mt};ve(M,"value"),Ue=new a.default(M)}te.newNode(Ue,I),I=null}),this.position++},H.word=function(I){var V=this.nextToken;return V&&this.content(V)==="|"?(this.position++,this.namespace()):this.splitWord(I)},H.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},H.parse=function(I){switch(this.currToken[d.FIELDS.TYPE]){case v.space:this.space();break;case v.comment:this.comment();break;case v.openParenthesis:this.parentheses();break;case v.closeParenthesis:I&&this.missingParenthesis();break;case v.openSquare:this.attribute();break;case v.dollar:case v.caret:case v.equals:case v.word:this.word();break;case v.colon:this.pseudo();break;case v.comma:this.comma();break;case v.asterisk:this.universal();break;case v.ampersand:this.nesting();break;case v.slash:case v.combinator:this.combinator();break;case v.str:this.string();break;case v.closeSquare:this.missingSquareBracket();case v.semicolon:this.missingBackslash();default:this.unexpected()}},H.expected=function(I,V,te){if(Array.isArray(I)){var T=I.pop();I=I.join(", ")+" or "+T}var ae=/^[aeiou]/.test(I[0])?"an":"a";return te?this.error("Expected "+ae+" "+I+', found "'+te+'" instead.',{index:V}):this.error("Expected "+ae+" "+I+".",{index:V})},H.requiredSpace=function(I){return this.options.lossy?" ":I},H.optionalSpace=function(I){return this.options.lossy?"":I},H.lossySpace=function(I,V){return this.options.lossy?V?" ":"":I},H.parseParenthesisToken=function(I){var V=this.content(I);return I[d.FIELDS.TYPE]===v.space?this.requiredSpace(V):V},H.newNode=function(I,V){return V&&(/^ +$/.test(V)&&(this.options.lossy||(this.spaces=(this.spaces||"")+V),V=!0),I.namespace=V,ve(I,"namespace")),this.spaces&&(I.spaces.before=this.spaces,this.spaces=""),this.current.append(I)},H.content=function(I){return I===void 0&&(I=this.currToken),this.css.slice(I[d.FIELDS.START_POS],I[d.FIELDS.END_POS])},H.locateNextMeaningfulToken=function(I){I===void 0&&(I=this.position+1);for(var V=I;V<this.tokens.length;)if(F[this.tokens[V][d.FIELDS.TYPE]]){V++;continue}else return V;return-1},A(z,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),z}();e.default=et,t.exports=e.default}(Xo,Xo.exports),function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Xo.exports);function n(u){return u&&u.__esModule?u:{default:u}}var i=function(){function u(a,s){this.func=a||function(){},this.funcRes=null,this.options=s}var o=u.prototype;return o._shouldUpdateSelector=function(s,c){c===void 0&&(c={});var l=Object.assign({},this.options,c);return l.updateSelector===!1?!1:typeof s!="string"},o._isLossy=function(s){s===void 0&&(s={});var c=Object.assign({},this.options,s);return c.lossless===!1},o._root=function(s,c){c===void 0&&(c={});var l=new r.default(s,this._parseOptions(c));return l.root},o._parseOptions=function(s){return{lossy:this._isLossy(s)}},o._run=function(s,c){var l=this;return c===void 0&&(c={}),new Promise(function(f,h){try{var g=l._root(s,c);Promise.resolve(l.func(g)).then(function(y){var d=void 0;return l._shouldUpdateSelector(s,c)&&(d=g.toString(),s.selector=d),{transform:y,root:g,string:d}}).then(f,h)}catch(y){h(y);return}})},o._runSync=function(s,c){c===void 0&&(c={});var l=this._root(s,c),f=this.func(l);if(f&&typeof f.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var h=void 0;return c.updateSelector&&typeof s!="string"&&(h=l.toString(),s.selector=h),{transform:f,root:l,string:h}},o.ast=function(s,c){return this._run(s,c).then(function(l){return l.root})},o.astSync=function(s,c){return this._runSync(s,c).root},o.transform=function(s,c){return this._run(s,c).then(function(l){return l.transform})},o.transformSync=function(s,c){return this._runSync(s,c).transform},o.process=function(s,c){return this._run(s,c).then(function(l){return l.string||l.root.toString()})},o.processSync=function(s,c){var l=this._runSync(s,c);return l.string||l.root.toString()},u}();e.default=i,t.exports=e.default}(Zo,Zo.exports);var of={},Fe={};Fe.__esModule=!0,Fe.universal=Fe.tag=Fe.string=Fe.selector=Fe.root=Fe.pseudo=Fe.nesting=Fe.id=Fe.comment=Fe.combinator=Fe.className=Fe.attribute=void 0;var z6=Ct(ns),G6=Ct($i.exports),H6=Ct(Vi.exports),Q6=Ct(Ri.exports),J6=Ct(Li.exports),Z6=Ct(Wi.exports),X6=Ct(qi.exports),K6=Ct(Ii.exports),Y6=Ct(Ni.exports),e_=Ct(ji.exports),t_=Ct(ki.exports),r_=Ct(Ui.exports);function Ct(t){return t&&t.__esModule?t:{default:t}}var n_=function(e){return new z6.default(e)};Fe.attribute=n_;var i_=function(e){return new G6.default(e)};Fe.className=i_;var u_=function(e){return new H6.default(e)};Fe.combinator=u_;var o_=function(e){return new Q6.default(e)};Fe.comment=o_;var s_=function(e){return new J6.default(e)};Fe.id=s_;var a_=function(e){return new Z6.default(e)};Fe.nesting=a_;var l_=function(e){return new X6.default(e)};Fe.pseudo=l_;var c_=function(e){return new K6.default(e)};Fe.root=c_;var f_=function(e){return new Y6.default(e)};Fe.selector=f_;var h_=function(e){return new e_.default(e)};Fe.string=h_;var d_=function(e){return new t_.default(e)};Fe.tag=d_;var p_=function(e){return new r_.default(e)};Fe.universal=p_;var pe={};pe.__esModule=!0,pe.isComment=pe.isCombinator=pe.isClassName=pe.isAttribute=void 0,pe.isContainer=__,pe.isIdentifier=void 0,pe.isNamespace=B_,pe.isNesting=void 0,pe.isNode=us,pe.isPseudo=void 0,pe.isPseudoClass=F_,pe.isPseudoElement=lf,pe.isUniversal=pe.isTag=pe.isString=pe.isSelector=pe.isRoot=void 0;var xe=le,ut,g_=(ut={},ut[xe.ATTRIBUTE]=!0,ut[xe.CLASS]=!0,ut[xe.COMBINATOR]=!0,ut[xe.COMMENT]=!0,ut[xe.ID]=!0,ut[xe.NESTING]=!0,ut[xe.PSEUDO]=!0,ut[xe.ROOT]=!0,ut[xe.SELECTOR]=!0,ut[xe.STRING]=!0,ut[xe.TAG]=!0,ut[xe.UNIVERSAL]=!0,ut);function us(t){return typeof t=="object"&&g_[t.type]}function At(t,e){return us(e)&&e.type===t}var sf=At.bind(null,xe.ATTRIBUTE);pe.isAttribute=sf;var v_=At.bind(null,xe.CLASS);pe.isClassName=v_;var m_=At.bind(null,xe.COMBINATOR);pe.isCombinator=m_;var y_=At.bind(null,xe.COMMENT);pe.isComment=y_;var D_=At.bind(null,xe.ID);pe.isIdentifier=D_;var E_=At.bind(null,xe.NESTING);pe.isNesting=E_;var os=At.bind(null,xe.PSEUDO);pe.isPseudo=os;var w_=At.bind(null,xe.ROOT);pe.isRoot=w_;var C_=At.bind(null,xe.SELECTOR);pe.isSelector=C_;var A_=At.bind(null,xe.STRING);pe.isString=A_;var af=At.bind(null,xe.TAG);pe.isTag=af;var b_=At.bind(null,xe.UNIVERSAL);pe.isUniversal=b_;function lf(t){return os(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function F_(t){return os(t)&&!lf(t)}function __(t){return!!(us(t)&&t.walk)}function B_(t){return sf(t)||af(t)}(function(t){t.__esModule=!0;var e=le;Object.keys(e).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===e[i]||(t[i]=e[i])});var r=Fe;Object.keys(r).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===r[i]||(t[i]=r[i])});var n=pe;Object.keys(n).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===n[i]||(t[i]=n[i])})})(of),function(t,e){e.__esModule=!0,e.default=void 0;var r=o(Zo.exports),n=u(of);function i(c){if(typeof WeakMap!="function")return null;var l=new WeakMap,f=new WeakMap;return(i=function(g){return g?f:l})(c)}function u(c,l){if(!l&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var f=i(l);if(f&&f.has(c))return f.get(c);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in c)if(y!=="default"&&Object.prototype.hasOwnProperty.call(c,y)){var d=g?Object.getOwnPropertyDescriptor(c,y):null;d&&(d.get||d.set)?Object.defineProperty(h,y,d):h[y]=c[y]}return h.default=c,f&&f.set(c,h),h}function o(c){return c&&c.__esModule?c:{default:c}}var a=function(l){return new r.default(l)};Object.assign(a,n),delete a.__esModule;var s=a;e.default=s,t.exports=e.default}(Jo,Jo.exports);const{AtRule:S_,Rule:cf}=be;let ff=Jo.exports;function ss(t,e){let r;try{ff(n=>{r=n}).processSync(t)}catch(n){throw t.includes(":")?e?e.error("Missed semicolon"):n:e?e.error(n.message):n}return r.at(0)}function hf(t,e){let r=!1;return t.each(n=>{if(n.type==="nesting"){let i=e.clone({});n.value!=="&"?n.replaceWith(ss(n.value.replace("&",i.toString()))):n.replaceWith(i),r=!0}else"nodes"in n&&n.nodes&&hf(n,e)&&(r=!0)}),r}function df(t,e){let r=[];for(let n of t.selectors){let i=ss(n,t);for(let u of e.selectors){if(!u)continue;let o=ss(u,e);hf(o,i)||(o.prepend(ff.combinator({value:" "})),o.prepend(i.clone({}))),r.push(o.toString())}}return r}function zi(t,e){var i;if(((i=t.prev())==null?void 0:i.type)!=="comment")return e.after(t),t;let r=t.prev(),n=/[*]\/ *\n.*{/;return t.parent.toString().match(n)?e.after(t).after(r):e.after(t),t}function O_(t){return function e(r,n,i,u=i){let o=[];if(n.each(a=>{a.type==="rule"&&i?u&&(a.selectors=df(r,a)):a.type==="atrule"&&a.nodes?t[a.name]?e(r,a,u):n[ls]!==!1&&o.push(a):o.push(a)}),i&&o.length){let a=r.clone({nodes:[]});for(let s of o)a.append(s);n.prepend(a)}}}function M_(t,e,r){let n=new cf({nodes:[],selector:t});return n.append(e),r.after(n),n}function as(t,e,r,n=!0){return e.length?(r=M_(t,e,r),n&&(e=[]),[r,e]):[r,e]}function pf(t,e=""){let r=t.concat(e),n={};for(let i of r)n[i.replace(/^@/,"")]=!0;return n}function x_(t){t=t.trim();let e=t.match(/^\((.*)\)$/);if(!e)return{selector:t,type:"basic"};let r=e[1].match(/^(with(?:out)?):(.+)$/);if(r){let n=r[1]==="with",i=Object.fromEntries(r[2].trim().split(/\s+/).map(o=>[o,!0]));if(n&&i.all)return{type:"noop"};let u=o=>!!i[o];return i.all?u=()=>!0:n&&(u=o=>o==="all"?!1:!i[o]),{escapes:u,type:"withrules"}}return{type:"unknown"}}function I_(t){let e=[],r=t.parent;for(;r&&r instanceof S_;)e.push(r),r=r.parent;return e}function T_(t){let e=t[gf];if(!e)t.after(t.nodes);else{let r=t.nodes,n,i=-1,u,o,a,s=I_(t);if(s.forEach((c,l)=>{if(e(c.name))n=c,i=l,o=a;else{let f=a;a=c.clone({nodes:[]}),f&&a.append(f),u=u||a}}),n?o?(u.append(r),n.after(o)):n.after(r):t.after(r),t.next()&&n){let c;s.slice(0,i+1).forEach((l,f,h)=>{let g=c;c=l.clone({nodes:[]}),g&&c.append(g);let y=[],v=(h[f-1]||t).next();for(;v;)y.push(v),v=v.next();c.append(y)}),c&&(o||r[r.length-1]).after(c)}}t.remove()}const ls=Symbol("rootRuleMergeSel"),gf=Symbol("rootRuleEscapes");function P_(t){let{params:e}=t,{escapes:r,selector:n,type:i}=x_(e);if(i==="unknown")throw t.error(`Unknown @${t.name} parameter ${JSON.stringify(e)}`);if(i==="basic"&&n){let u=new cf({nodes:t.nodes,selector:n});t.removeAll(),t.append(u)}t[gf]=r,t[ls]=r?!r("all"):i==="noop"}const cs=Symbol("hasRootRule");Qo.exports=(t={})=>{let e=pf(["media","supports","layer","container","starting-style"],t.bubble),r=O_(e),n=pf(["document","font-face","keyframes","-webkit-keyframes","-moz-keyframes"],t.unwrap),i=(t.rootRuleName||"at-root").replace(/^@/,""),u=t.preserveEmpty;return{Once(o){o.walkAtRules(i,a=>{P_(a),o[cs]=!0})},postcssPlugin:"postcss-nested",RootExit(o){!o[cs]||(o.walkAtRules(i,T_),o[cs]=!1)},Rule(o){let a=!1,s=o,c=!1,l=[];o.each(f=>{switch(f.type){case"atrule":[s,l]=as(o.selector,l,s),f.name===i?(a=!0,r(o,f,!0,f[ls]),s=zi(f,s)):e[f.name]?(c=!0,a=!0,r(o,f,!0),s=zi(f,s)):n[f.name]?(c=!0,a=!0,r(o,f,!1),s=zi(f,s)):c&&l.push(f);break;case"decl":c&&l.push(f);break;case"rule":[s,l]=as(o.selector,l,s),c=!0,a=!0,f.selectors=df(o,f),s=zi(f,s);break}}),as(o.selector,l,s,!1),a&&u!==!0&&(o.raws.semicolon=!0,o.nodes.length===0&&o.remove())}}},Qo.exports.postcss=!0;var N_=Qo.exports;class $_{constructor(e,r=!0){this.config=e,this.isPc=r}apply(e){var a,s,c;this.engine=e;const r=(s=(a=this.config)==null?void 0:a.source)!=null?s:"";let n=document.createElement("style");n.className="edit-css-"+e.id;let i=document.querySelector("head");i==null||i.appendChild(n);const u=[N_()];this.isPc&&u.push(zF({prefix:`.render-engine-${(c=this.engine)==null?void 0:c.id}`,transform(l,f){return f.startsWith(l)?f:`${l} ${f}`}}));const o=be(u).process(r,{from:void 0}).css;n.appendChild(document.createTextNode(o))}}ue.CalcPlugin=UA,ue.ControlsEventPlugin=r5,ue.ES6ModulePlugin=YC,ue.Engine=Ju,ue.LifecycleEventPlugin=t5,ue.Plugin=KC,ue.StylePlugin=$_,ue.buildUUID=tn,ue.hasChildrenControl=qn,ue.loopDataViewControl=pr,ue.loopFormControl=dr,ue.parseModule=Pa,Object.defineProperty(ue,"__esModule",{value:!0})});
57
+ `),K=J.length-1,K>0?(ve=w+K,je=j-J[K].length):(ve=w,je=E),et=e.comment,w=ve,F=ve,B=j-je):C===e.slash?(j=_,et=C,F=w,B=_-E,O=j+1):(j=f(p,_),et=e.word,F=w,B=j-E),O=j+1;break}v.push([et,w,_-E,F,B,_,O]),je&&(E=je,je=null),_=O}return v}}(nf),function(t,e){e.__esModule=!0,e.default=void 0;var r=O(Ii.exports),n=O(Ni.exports),i=O($i.exports),u=O(Ri.exports),o=O(Li.exports),a=O(ki.exports),s=O(ji.exports),c=O(qi.exports),l=_(ns),f=O(Ui.exports),h=O(Vi.exports),g=O(Wi.exports),y=O(is.exports),d=_(nf),v=_(Q),p=_(le),m=pt,D,E;function w(z){if(typeof WeakMap!="function")return null;var H=new WeakMap,W=new WeakMap;return(w=function(V){return V?W:H})(z)}function _(z,H){if(!H&&z&&z.__esModule)return z;if(z===null||typeof z!="object"&&typeof z!="function")return{default:z};var W=w(H);if(W&&W.has(z))return W.get(z);var I={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var te in z)if(te!=="default"&&Object.prototype.hasOwnProperty.call(z,te)){var T=V?Object.getOwnPropertyDescriptor(z,te):null;T&&(T.get||T.set)?Object.defineProperty(I,te,T):I[te]=z[te]}return I.default=z,W&&W.set(z,I),I}function O(z){return z&&z.__esModule?z:{default:z}}function C(z,H){for(var W=0;W<H.length;W++){var I=H[W];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(z,I.key,I)}}function A(z,H,W){return H&&C(z.prototype,H),W&&C(z,W),Object.defineProperty(z,"prototype",{writable:!1}),z}var B=(D={},D[v.space]=!0,D[v.cr]=!0,D[v.feed]=!0,D[v.newline]=!0,D[v.tab]=!0,D),F=Object.assign({},B,(E={},E[v.comment]=!0,E));function $(z){return{line:z[d.FIELDS.START_LINE],column:z[d.FIELDS.START_COL]}}function X(z){return{line:z[d.FIELDS.END_LINE],column:z[d.FIELDS.END_COL]}}function K(z,H,W,I){return{start:{line:z,column:H},end:{line:W,column:I}}}function J(z){return K(z[d.FIELDS.START_LINE],z[d.FIELDS.START_COL],z[d.FIELDS.END_LINE],z[d.FIELDS.END_COL])}function j(z,H){if(!!z)return K(z[d.FIELDS.START_LINE],z[d.FIELDS.START_COL],H[d.FIELDS.END_LINE],H[d.FIELDS.END_COL])}function ve(z,H){var W=z[H];if(typeof W=="string")return W.indexOf("\\")!==-1&&((0,m.ensureObject)(z,"raws"),z[H]=(0,m.unesc)(W),z.raws[H]===void 0&&(z.raws[H]=W)),z}function je(z,H){for(var W=-1,I=[];(W=z.indexOf(H,W+1))!==-1;)I.push(W);return I}function Je(){var z=Array.prototype.concat.apply([],arguments);return z.filter(function(H,W){return W===z.indexOf(H)})}var et=function(){function z(W,I){I===void 0&&(I={}),this.rule=W,this.options=Object.assign({lossy:!1,safe:!1},I),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,d.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var V=j(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:V}),this.root.errorGenerator=this._errorGenerator();var te=new n.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(te),this.current=te,this.loop()}var H=z.prototype;return H._errorGenerator=function(){var I=this;return function(V,te){return typeof I.rule=="string"?new Error(V):I.rule.error(V,te)}},H.attribute=function(){var I=[],V=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[d.FIELDS.TYPE]!==v.closeSquare;)I.push(this.currToken),this.position++;if(this.currToken[d.FIELDS.TYPE]!==v.closeSquare)return this.expected("closing square bracket",this.currToken[d.FIELDS.START_POS]);var te=I.length,T={source:K(V[1],V[2],this.currToken[3],this.currToken[4]),sourceIndex:V[d.FIELDS.START_POS]};if(te===1&&!~[v.word].indexOf(I[0][d.FIELDS.TYPE]))return this.expected("attribute",I[0][d.FIELDS.START_POS]);for(var ae=0,he="",ce="",ie=null,Ce=!1;ae<te;){var Ne=I[ae],se=this.content(Ne),Me=I[ae+1];switch(Ne[d.FIELDS.TYPE]){case v.space:if(Ce=!0,this.options.lossy)break;if(ie){(0,m.ensureObject)(T,"spaces",ie);var bt=T.spaces[ie].after||"";T.spaces[ie].after=bt+se;var gt=(0,m.getProp)(T,"raws","spaces",ie,"after")||null;gt&&(T.raws.spaces[ie].after=gt+se)}else he=he+se,ce=ce+se;break;case v.asterisk:if(Me[d.FIELDS.TYPE]===v.equals)T.operator=se,ie="operator";else if((!T.namespace||ie==="namespace"&&!Ce)&&Me){he&&((0,m.ensureObject)(T,"spaces","attribute"),T.spaces.attribute.before=he,he=""),ce&&((0,m.ensureObject)(T,"raws","spaces","attribute"),T.raws.spaces.attribute.before=he,ce=""),T.namespace=(T.namespace||"")+se;var Ze=(0,m.getProp)(T,"raws","namespace")||null;Ze&&(T.raws.namespace+=se),ie="namespace"}Ce=!1;break;case v.dollar:if(ie==="value"){var Ue=(0,m.getProp)(T,"raws","value");T.value+="$",Ue&&(T.raws.value=Ue+"$");break}case v.caret:Me[d.FIELDS.TYPE]===v.equals&&(T.operator=se,ie="operator"),Ce=!1;break;case v.combinator:if(se==="~"&&Me[d.FIELDS.TYPE]===v.equals&&(T.operator=se,ie="operator"),se!=="|"){Ce=!1;break}Me[d.FIELDS.TYPE]===v.equals?(T.operator=se,ie="operator"):!T.namespace&&!T.attribute&&(T.namespace=!0),Ce=!1;break;case v.word:if(Me&&this.content(Me)==="|"&&I[ae+2]&&I[ae+2][d.FIELDS.TYPE]!==v.equals&&!T.operator&&!T.namespace)T.namespace=se,ie="namespace";else if(!T.attribute||ie==="attribute"&&!Ce){he&&((0,m.ensureObject)(T,"spaces","attribute"),T.spaces.attribute.before=he,he=""),ce&&((0,m.ensureObject)(T,"raws","spaces","attribute"),T.raws.spaces.attribute.before=ce,ce=""),T.attribute=(T.attribute||"")+se;var vt=(0,m.getProp)(T,"raws","attribute")||null;vt&&(T.raws.attribute+=se),ie="attribute"}else if(!T.value&&T.value!==""||ie==="value"&&!(Ce||T.quoteMark)){var mt=(0,m.unesc)(se),Tt=(0,m.getProp)(T,"raws","value")||"",b=T.value||"";T.value=b+mt,T.quoteMark=null,(mt!==se||Tt)&&((0,m.ensureObject)(T,"raws"),T.raws.value=(Tt||b)+se),ie="value"}else{var S=se==="i"||se==="I";(T.value||T.value==="")&&(T.quoteMark||Ce)?(T.insensitive=S,(!S||se==="I")&&((0,m.ensureObject)(T,"raws"),T.raws.insensitiveFlag=se),ie="insensitive",he&&((0,m.ensureObject)(T,"spaces","insensitive"),T.spaces.insensitive.before=he,he=""),ce&&((0,m.ensureObject)(T,"raws","spaces","insensitive"),T.raws.spaces.insensitive.before=ce,ce="")):(T.value||T.value==="")&&(ie="value",T.value+=se,T.raws.value&&(T.raws.value+=se))}Ce=!1;break;case v.str:if(!T.attribute||!T.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:Ne[d.FIELDS.START_POS]});var M=(0,l.unescapeValue)(se),P=M.unescaped,k=M.quoteMark;T.value=P,T.quoteMark=k,ie="value",(0,m.ensureObject)(T,"raws"),T.raws.value=se,Ce=!1;break;case v.equals:if(!T.attribute)return this.expected("attribute",Ne[d.FIELDS.START_POS],se);if(T.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:Ne[d.FIELDS.START_POS]});T.operator=T.operator?T.operator+se:se,ie="operator",Ce=!1;break;case v.comment:if(ie)if(Ce||Me&&Me[d.FIELDS.TYPE]===v.space||ie==="insensitive"){var N=(0,m.getProp)(T,"spaces",ie,"after")||"",U=(0,m.getProp)(T,"raws","spaces",ie,"after")||N;(0,m.ensureObject)(T,"raws","spaces",ie),T.raws.spaces[ie].after=U+se}else{var q=T[ie]||"",G=(0,m.getProp)(T,"raws",ie)||q;(0,m.ensureObject)(T,"raws"),T.raws[ie]=G+se}else ce=ce+se;break;default:return this.error('Unexpected "'+se+'" found.',{index:Ne[d.FIELDS.START_POS]})}ae++}ve(T,"attribute"),ve(T,"namespace"),this.newNode(new l.default(T)),this.position++},H.parseWhitespaceEquivalentTokens=function(I){I<0&&(I=this.tokens.length);var V=this.position,te=[],T="",ae=void 0;do if(B[this.currToken[d.FIELDS.TYPE]])this.options.lossy||(T+=this.content());else if(this.currToken[d.FIELDS.TYPE]===v.comment){var he={};T&&(he.before=T,T=""),ae=new u.default({value:this.content(),source:J(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS],spaces:he}),te.push(ae)}while(++this.position<I);if(T){if(ae)ae.spaces.after=T;else if(!this.options.lossy){var ce=this.tokens[V],ie=this.tokens[this.position-1];te.push(new s.default({value:"",source:K(ce[d.FIELDS.START_LINE],ce[d.FIELDS.START_COL],ie[d.FIELDS.END_LINE],ie[d.FIELDS.END_COL]),sourceIndex:ce[d.FIELDS.START_POS],spaces:{before:T,after:""}}))}}return te},H.convertWhitespaceNodesToSpace=function(I,V){var te=this;V===void 0&&(V=!1);var T="",ae="";I.forEach(function(ce){var ie=te.lossySpace(ce.spaces.before,V),Ce=te.lossySpace(ce.rawSpaceBefore,V);T+=ie+te.lossySpace(ce.spaces.after,V&&ie.length===0),ae+=ie+ce.value+te.lossySpace(ce.rawSpaceAfter,V&&Ce.length===0)}),ae===T&&(ae=void 0);var he={space:T,rawSpace:ae};return he},H.isNamedCombinator=function(I){return I===void 0&&(I=this.position),this.tokens[I+0]&&this.tokens[I+0][d.FIELDS.TYPE]===v.slash&&this.tokens[I+1]&&this.tokens[I+1][d.FIELDS.TYPE]===v.word&&this.tokens[I+2]&&this.tokens[I+2][d.FIELDS.TYPE]===v.slash},H.namedCombinator=function(){if(this.isNamedCombinator()){var I=this.content(this.tokens[this.position+1]),V=(0,m.unesc)(I).toLowerCase(),te={};V!==I&&(te.value="/"+I+"/");var T=new h.default({value:"/"+V+"/",source:K(this.currToken[d.FIELDS.START_LINE],this.currToken[d.FIELDS.START_COL],this.tokens[this.position+2][d.FIELDS.END_LINE],this.tokens[this.position+2][d.FIELDS.END_COL]),sourceIndex:this.currToken[d.FIELDS.START_POS],raws:te});return this.position=this.position+3,T}else this.unexpected()},H.combinator=function(){var I=this;if(this.content()==="|")return this.namespace();var V=this.locateNextMeaningfulToken(this.position);if(V<0||this.tokens[V][d.FIELDS.TYPE]===v.comma||this.tokens[V][d.FIELDS.TYPE]===v.closeParenthesis){var te=this.parseWhitespaceEquivalentTokens(V);if(te.length>0){var T=this.current.last;if(T){var ae=this.convertWhitespaceNodesToSpace(te),he=ae.space,ce=ae.rawSpace;ce!==void 0&&(T.rawSpaceAfter+=ce),T.spaces.after+=he}else te.forEach(function(Tt){return I.newNode(Tt)})}return}var ie=this.currToken,Ce=void 0;V>this.position&&(Ce=this.parseWhitespaceEquivalentTokens(V));var Ne;if(this.isNamedCombinator()?Ne=this.namedCombinator():this.currToken[d.FIELDS.TYPE]===v.combinator?(Ne=new h.default({value:this.content(),source:J(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS]}),this.position++):B[this.currToken[d.FIELDS.TYPE]]||Ce||this.unexpected(),Ne){if(Ce){var se=this.convertWhitespaceNodesToSpace(Ce),Me=se.space,bt=se.rawSpace;Ne.spaces.before=Me,Ne.rawSpaceBefore=bt}}else{var gt=this.convertWhitespaceNodesToSpace(Ce,!0),Ze=gt.space,Ue=gt.rawSpace;Ue||(Ue=Ze);var vt={},mt={spaces:{}};Ze.endsWith(" ")&&Ue.endsWith(" ")?(vt.before=Ze.slice(0,Ze.length-1),mt.spaces.before=Ue.slice(0,Ue.length-1)):Ze[0]===" "&&Ue[0]===" "?(vt.after=Ze.slice(1),mt.spaces.after=Ue.slice(1)):mt.value=Ue,Ne=new h.default({value:" ",source:j(ie,this.tokens[this.position-1]),sourceIndex:ie[d.FIELDS.START_POS],spaces:vt,raws:mt})}return this.currToken&&this.currToken[d.FIELDS.TYPE]===v.space&&(Ne.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(Ne)},H.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var I=new n.default({source:{start:$(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][d.FIELDS.START_POS]});this.current.parent.append(I),this.current=I,this.position++},H.comment=function(){var I=this.currToken;this.newNode(new u.default({value:this.content(),source:J(I),sourceIndex:I[d.FIELDS.START_POS]})),this.position++},H.error=function(I,V){throw this.root.error(I,V)},H.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[d.FIELDS.START_POS]})},H.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[d.FIELDS.START_POS])},H.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[d.FIELDS.START_POS])},H.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[d.FIELDS.START_POS])},H.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[d.FIELDS.START_POS])},H.namespace=function(){var I=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[d.FIELDS.TYPE]===v.word)return this.position++,this.word(I);if(this.nextToken[d.FIELDS.TYPE]===v.asterisk)return this.position++,this.universal(I);this.unexpectedPipe()},H.nesting=function(){if(this.nextToken){var I=this.content(this.nextToken);if(I==="|"){this.position++;return}}var V=this.currToken;this.newNode(new g.default({value:this.content(),source:J(V),sourceIndex:V[d.FIELDS.START_POS]})),this.position++},H.parentheses=function(){var I=this.current.last,V=1;if(this.position++,I&&I.type===p.PSEUDO){var te=new n.default({source:{start:$(this.tokens[this.position])},sourceIndex:this.tokens[this.position][d.FIELDS.START_POS]}),T=this.current;for(I.append(te),this.current=te;this.position<this.tokens.length&&V;)this.currToken[d.FIELDS.TYPE]===v.openParenthesis&&V++,this.currToken[d.FIELDS.TYPE]===v.closeParenthesis&&V--,V?this.parse():(this.current.source.end=X(this.currToken),this.current.parent.source.end=X(this.currToken),this.position++);this.current=T}else{for(var ae=this.currToken,he="(",ce;this.position<this.tokens.length&&V;)this.currToken[d.FIELDS.TYPE]===v.openParenthesis&&V++,this.currToken[d.FIELDS.TYPE]===v.closeParenthesis&&V--,ce=this.currToken,he+=this.parseParenthesisToken(this.currToken),this.position++;I?I.appendToPropertyAndEscape("value",he,he):this.newNode(new s.default({value:he,source:K(ae[d.FIELDS.START_LINE],ae[d.FIELDS.START_COL],ce[d.FIELDS.END_LINE],ce[d.FIELDS.END_COL]),sourceIndex:ae[d.FIELDS.START_POS]}))}if(V)return this.expected("closing parenthesis",this.currToken[d.FIELDS.START_POS])},H.pseudo=function(){for(var I=this,V="",te=this.currToken;this.currToken&&this.currToken[d.FIELDS.TYPE]===v.colon;)V+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[d.FIELDS.TYPE]===v.word)this.splitWord(!1,function(T,ae){V+=T,I.newNode(new c.default({value:V,source:j(te,I.currToken),sourceIndex:te[d.FIELDS.START_POS]})),ae>1&&I.nextToken&&I.nextToken[d.FIELDS.TYPE]===v.openParenthesis&&I.error("Misplaced parenthesis.",{index:I.nextToken[d.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[d.FIELDS.START_POS])},H.space=function(){var I=this.content();this.position===0||this.prevToken[d.FIELDS.TYPE]===v.comma||this.prevToken[d.FIELDS.TYPE]===v.openParenthesis||this.current.nodes.every(function(V){return V.type==="comment"})?(this.spaces=this.optionalSpace(I),this.position++):this.position===this.tokens.length-1||this.nextToken[d.FIELDS.TYPE]===v.comma||this.nextToken[d.FIELDS.TYPE]===v.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(I),this.position++):this.combinator()},H.string=function(){var I=this.currToken;this.newNode(new s.default({value:this.content(),source:J(I),sourceIndex:I[d.FIELDS.START_POS]})),this.position++},H.universal=function(I){var V=this.nextToken;if(V&&this.content(V)==="|")return this.position++,this.namespace();var te=this.currToken;this.newNode(new f.default({value:this.content(),source:J(te),sourceIndex:te[d.FIELDS.START_POS]}),I),this.position++},H.splitWord=function(I,V){for(var te=this,T=this.nextToken,ae=this.content();T&&~[v.dollar,v.caret,v.equals,v.word].indexOf(T[d.FIELDS.TYPE]);){this.position++;var he=this.content();if(ae+=he,he.lastIndexOf("\\")===he.length-1){var ce=this.nextToken;ce&&ce[d.FIELDS.TYPE]===v.space&&(ae+=this.requiredSpace(this.content(ce)),this.position++)}T=this.nextToken}var ie=je(ae,".").filter(function(Me){var bt=ae[Me-1]==="\\",gt=/^\d+\.\d+%$/.test(ae);return!bt&&!gt}),Ce=je(ae,"#").filter(function(Me){return ae[Me-1]!=="\\"}),Ne=je(ae,"#{");Ne.length&&(Ce=Ce.filter(function(Me){return!~Ne.indexOf(Me)}));var se=(0,y.default)(Je([0].concat(ie,Ce)));se.forEach(function(Me,bt){var gt=se[bt+1]||ae.length,Ze=ae.slice(Me,gt);if(bt===0&&V)return V.call(te,Ze,se.length);var Ue,vt=te.currToken,mt=vt[d.FIELDS.START_POS]+se[bt],Tt=K(vt[1],vt[2]+Me,vt[3],vt[2]+(gt-1));if(~ie.indexOf(Me)){var b={value:Ze.slice(1),source:Tt,sourceIndex:mt};Ue=new i.default(ve(b,"value"))}else if(~Ce.indexOf(Me)){var S={value:Ze.slice(1),source:Tt,sourceIndex:mt};Ue=new o.default(ve(S,"value"))}else{var M={value:Ze,source:Tt,sourceIndex:mt};ve(M,"value"),Ue=new a.default(M)}te.newNode(Ue,I),I=null}),this.position++},H.word=function(I){var V=this.nextToken;return V&&this.content(V)==="|"?(this.position++,this.namespace()):this.splitWord(I)},H.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},H.parse=function(I){switch(this.currToken[d.FIELDS.TYPE]){case v.space:this.space();break;case v.comment:this.comment();break;case v.openParenthesis:this.parentheses();break;case v.closeParenthesis:I&&this.missingParenthesis();break;case v.openSquare:this.attribute();break;case v.dollar:case v.caret:case v.equals:case v.word:this.word();break;case v.colon:this.pseudo();break;case v.comma:this.comma();break;case v.asterisk:this.universal();break;case v.ampersand:this.nesting();break;case v.slash:case v.combinator:this.combinator();break;case v.str:this.string();break;case v.closeSquare:this.missingSquareBracket();case v.semicolon:this.missingBackslash();default:this.unexpected()}},H.expected=function(I,V,te){if(Array.isArray(I)){var T=I.pop();I=I.join(", ")+" or "+T}var ae=/^[aeiou]/.test(I[0])?"an":"a";return te?this.error("Expected "+ae+" "+I+', found "'+te+'" instead.',{index:V}):this.error("Expected "+ae+" "+I+".",{index:V})},H.requiredSpace=function(I){return this.options.lossy?" ":I},H.optionalSpace=function(I){return this.options.lossy?"":I},H.lossySpace=function(I,V){return this.options.lossy?V?" ":"":I},H.parseParenthesisToken=function(I){var V=this.content(I);return I[d.FIELDS.TYPE]===v.space?this.requiredSpace(V):V},H.newNode=function(I,V){return V&&(/^ +$/.test(V)&&(this.options.lossy||(this.spaces=(this.spaces||"")+V),V=!0),I.namespace=V,ve(I,"namespace")),this.spaces&&(I.spaces.before=this.spaces,this.spaces=""),this.current.append(I)},H.content=function(I){return I===void 0&&(I=this.currToken),this.css.slice(I[d.FIELDS.START_POS],I[d.FIELDS.END_POS])},H.locateNextMeaningfulToken=function(I){I===void 0&&(I=this.position+1);for(var V=I;V<this.tokens.length;)if(F[this.tokens[V][d.FIELDS.TYPE]]){V++;continue}else return V;return-1},A(z,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),z}();e.default=et,t.exports=e.default}(Xo,Xo.exports),function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Xo.exports);function n(u){return u&&u.__esModule?u:{default:u}}var i=function(){function u(a,s){this.func=a||function(){},this.funcRes=null,this.options=s}var o=u.prototype;return o._shouldUpdateSelector=function(s,c){c===void 0&&(c={});var l=Object.assign({},this.options,c);return l.updateSelector===!1?!1:typeof s!="string"},o._isLossy=function(s){s===void 0&&(s={});var c=Object.assign({},this.options,s);return c.lossless===!1},o._root=function(s,c){c===void 0&&(c={});var l=new r.default(s,this._parseOptions(c));return l.root},o._parseOptions=function(s){return{lossy:this._isLossy(s)}},o._run=function(s,c){var l=this;return c===void 0&&(c={}),new Promise(function(f,h){try{var g=l._root(s,c);Promise.resolve(l.func(g)).then(function(y){var d=void 0;return l._shouldUpdateSelector(s,c)&&(d=g.toString(),s.selector=d),{transform:y,root:g,string:d}}).then(f,h)}catch(y){h(y);return}})},o._runSync=function(s,c){c===void 0&&(c={});var l=this._root(s,c),f=this.func(l);if(f&&typeof f.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var h=void 0;return c.updateSelector&&typeof s!="string"&&(h=l.toString(),s.selector=h),{transform:f,root:l,string:h}},o.ast=function(s,c){return this._run(s,c).then(function(l){return l.root})},o.astSync=function(s,c){return this._runSync(s,c).root},o.transform=function(s,c){return this._run(s,c).then(function(l){return l.transform})},o.transformSync=function(s,c){return this._runSync(s,c).transform},o.process=function(s,c){return this._run(s,c).then(function(l){return l.string||l.root.toString()})},o.processSync=function(s,c){var l=this._runSync(s,c);return l.string||l.root.toString()},u}();e.default=i,t.exports=e.default}(Zo,Zo.exports);var of={},Fe={};Fe.__esModule=!0,Fe.universal=Fe.tag=Fe.string=Fe.selector=Fe.root=Fe.pseudo=Fe.nesting=Fe.id=Fe.comment=Fe.combinator=Fe.className=Fe.attribute=void 0;var z6=Ct(ns),G6=Ct($i.exports),H6=Ct(Vi.exports),Q6=Ct(Ri.exports),J6=Ct(Li.exports),Z6=Ct(Wi.exports),X6=Ct(qi.exports),K6=Ct(Ii.exports),Y6=Ct(Ni.exports),e_=Ct(ji.exports),t_=Ct(ki.exports),r_=Ct(Ui.exports);function Ct(t){return t&&t.__esModule?t:{default:t}}var n_=function(e){return new z6.default(e)};Fe.attribute=n_;var i_=function(e){return new G6.default(e)};Fe.className=i_;var u_=function(e){return new H6.default(e)};Fe.combinator=u_;var o_=function(e){return new Q6.default(e)};Fe.comment=o_;var s_=function(e){return new J6.default(e)};Fe.id=s_;var a_=function(e){return new Z6.default(e)};Fe.nesting=a_;var l_=function(e){return new X6.default(e)};Fe.pseudo=l_;var c_=function(e){return new K6.default(e)};Fe.root=c_;var f_=function(e){return new Y6.default(e)};Fe.selector=f_;var h_=function(e){return new e_.default(e)};Fe.string=h_;var d_=function(e){return new t_.default(e)};Fe.tag=d_;var p_=function(e){return new r_.default(e)};Fe.universal=p_;var pe={};pe.__esModule=!0,pe.isComment=pe.isCombinator=pe.isClassName=pe.isAttribute=void 0,pe.isContainer=__,pe.isIdentifier=void 0,pe.isNamespace=B_,pe.isNesting=void 0,pe.isNode=us,pe.isPseudo=void 0,pe.isPseudoClass=F_,pe.isPseudoElement=lf,pe.isUniversal=pe.isTag=pe.isString=pe.isSelector=pe.isRoot=void 0;var xe=le,ut,g_=(ut={},ut[xe.ATTRIBUTE]=!0,ut[xe.CLASS]=!0,ut[xe.COMBINATOR]=!0,ut[xe.COMMENT]=!0,ut[xe.ID]=!0,ut[xe.NESTING]=!0,ut[xe.PSEUDO]=!0,ut[xe.ROOT]=!0,ut[xe.SELECTOR]=!0,ut[xe.STRING]=!0,ut[xe.TAG]=!0,ut[xe.UNIVERSAL]=!0,ut);function us(t){return typeof t=="object"&&g_[t.type]}function At(t,e){return us(e)&&e.type===t}var sf=At.bind(null,xe.ATTRIBUTE);pe.isAttribute=sf;var v_=At.bind(null,xe.CLASS);pe.isClassName=v_;var m_=At.bind(null,xe.COMBINATOR);pe.isCombinator=m_;var y_=At.bind(null,xe.COMMENT);pe.isComment=y_;var D_=At.bind(null,xe.ID);pe.isIdentifier=D_;var E_=At.bind(null,xe.NESTING);pe.isNesting=E_;var os=At.bind(null,xe.PSEUDO);pe.isPseudo=os;var w_=At.bind(null,xe.ROOT);pe.isRoot=w_;var C_=At.bind(null,xe.SELECTOR);pe.isSelector=C_;var A_=At.bind(null,xe.STRING);pe.isString=A_;var af=At.bind(null,xe.TAG);pe.isTag=af;var b_=At.bind(null,xe.UNIVERSAL);pe.isUniversal=b_;function lf(t){return os(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function F_(t){return os(t)&&!lf(t)}function __(t){return!!(us(t)&&t.walk)}function B_(t){return sf(t)||af(t)}(function(t){t.__esModule=!0;var e=le;Object.keys(e).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===e[i]||(t[i]=e[i])});var r=Fe;Object.keys(r).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===r[i]||(t[i]=r[i])});var n=pe;Object.keys(n).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===n[i]||(t[i]=n[i])})})(of),function(t,e){e.__esModule=!0,e.default=void 0;var r=o(Zo.exports),n=u(of);function i(c){if(typeof WeakMap!="function")return null;var l=new WeakMap,f=new WeakMap;return(i=function(g){return g?f:l})(c)}function u(c,l){if(!l&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var f=i(l);if(f&&f.has(c))return f.get(c);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in c)if(y!=="default"&&Object.prototype.hasOwnProperty.call(c,y)){var d=g?Object.getOwnPropertyDescriptor(c,y):null;d&&(d.get||d.set)?Object.defineProperty(h,y,d):h[y]=c[y]}return h.default=c,f&&f.set(c,h),h}function o(c){return c&&c.__esModule?c:{default:c}}var a=function(l){return new r.default(l)};Object.assign(a,n),delete a.__esModule;var s=a;e.default=s,t.exports=e.default}(Jo,Jo.exports);const{AtRule:S_,Rule:cf}=be;let ff=Jo.exports;function ss(t,e){let r;try{ff(n=>{r=n}).processSync(t)}catch(n){throw t.includes(":")?e?e.error("Missed semicolon"):n:e?e.error(n.message):n}return r.at(0)}function hf(t,e){let r=!1;return t.each(n=>{if(n.type==="nesting"){let i=e.clone({});n.value!=="&"?n.replaceWith(ss(n.value.replace("&",i.toString()))):n.replaceWith(i),r=!0}else"nodes"in n&&n.nodes&&hf(n,e)&&(r=!0)}),r}function df(t,e){let r=[];for(let n of t.selectors){let i=ss(n,t);for(let u of e.selectors){if(!u)continue;let o=ss(u,e);hf(o,i)||(o.prepend(ff.combinator({value:" "})),o.prepend(i.clone({}))),r.push(o.toString())}}return r}function zi(t,e){var i;if(((i=t.prev())==null?void 0:i.type)!=="comment")return e.after(t),t;let r=t.prev(),n=/[*]\/ *\n.*{/;return t.parent.toString().match(n)?e.after(t).after(r):e.after(t),t}function O_(t){return function e(r,n,i,u=i){let o=[];if(n.each(a=>{a.type==="rule"&&i?u&&(a.selectors=df(r,a)):a.type==="atrule"&&a.nodes?t[a.name]?e(r,a,u):n[ls]!==!1&&o.push(a):o.push(a)}),i&&o.length){let a=r.clone({nodes:[]});for(let s of o)a.append(s);n.prepend(a)}}}function M_(t,e,r){let n=new cf({nodes:[],selector:t});return n.append(e),r.after(n),n}function as(t,e,r,n=!0){return e.length?(r=M_(t,e,r),n&&(e=[]),[r,e]):[r,e]}function pf(t,e=""){let r=t.concat(e),n={};for(let i of r)n[i.replace(/^@/,"")]=!0;return n}function x_(t){t=t.trim();let e=t.match(/^\((.*)\)$/);if(!e)return{selector:t,type:"basic"};let r=e[1].match(/^(with(?:out)?):(.+)$/);if(r){let n=r[1]==="with",i=Object.fromEntries(r[2].trim().split(/\s+/).map(o=>[o,!0]));if(n&&i.all)return{type:"noop"};let u=o=>!!i[o];return i.all?u=()=>!0:n&&(u=o=>o==="all"?!1:!i[o]),{escapes:u,type:"withrules"}}return{type:"unknown"}}function I_(t){let e=[],r=t.parent;for(;r&&r instanceof S_;)e.push(r),r=r.parent;return e}function T_(t){let e=t[gf];if(!e)t.after(t.nodes);else{let r=t.nodes,n,i=-1,u,o,a,s=I_(t);if(s.forEach((c,l)=>{if(e(c.name))n=c,i=l,o=a;else{let f=a;a=c.clone({nodes:[]}),f&&a.append(f),u=u||a}}),n?o?(u.append(r),n.after(o)):n.after(r):t.after(r),t.next()&&n){let c;s.slice(0,i+1).forEach((l,f,h)=>{let g=c;c=l.clone({nodes:[]}),g&&c.append(g);let y=[],v=(h[f-1]||t).next();for(;v;)y.push(v),v=v.next();c.append(y)}),c&&(o||r[r.length-1]).after(c)}}t.remove()}const ls=Symbol("rootRuleMergeSel"),gf=Symbol("rootRuleEscapes");function P_(t){let{params:e}=t,{escapes:r,selector:n,type:i}=x_(e);if(i==="unknown")throw t.error(`Unknown @${t.name} parameter ${JSON.stringify(e)}`);if(i==="basic"&&n){let u=new cf({nodes:t.nodes,selector:n});t.removeAll(),t.append(u)}t[gf]=r,t[ls]=r?!r("all"):i==="noop"}const cs=Symbol("hasRootRule");Qo.exports=(t={})=>{let e=pf(["media","supports","layer","container","starting-style"],t.bubble),r=O_(e),n=pf(["document","font-face","keyframes","-webkit-keyframes","-moz-keyframes"],t.unwrap),i=(t.rootRuleName||"at-root").replace(/^@/,""),u=t.preserveEmpty;return{Once(o){o.walkAtRules(i,a=>{P_(a),o[cs]=!0})},postcssPlugin:"postcss-nested",RootExit(o){!o[cs]||(o.walkAtRules(i,T_),o[cs]=!1)},Rule(o){let a=!1,s=o,c=!1,l=[];o.each(f=>{switch(f.type){case"atrule":[s,l]=as(o.selector,l,s),f.name===i?(a=!0,r(o,f,!0,f[ls]),s=zi(f,s)):e[f.name]?(c=!0,a=!0,r(o,f,!0),s=zi(f,s)):n[f.name]?(c=!0,a=!0,r(o,f,!1),s=zi(f,s)):c&&l.push(f);break;case"decl":c&&l.push(f);break;case"rule":[s,l]=as(o.selector,l,s),c=!0,a=!0,f.selectors=df(o,f),s=zi(f,s);break}}),as(o.selector,l,s,!1),a&&u!==!0&&(o.raws.semicolon=!0,o.nodes.length===0&&o.remove())}}},Qo.exports.postcss=!0;var N_=Qo.exports;class $_{constructor(e,r=!0){this.config=e,this.isPc=r}apply(e){var a,s,c;this.engine=e;const r=(s=(a=this.config)==null?void 0:a.source)!=null?s:"";let n=document.createElement("style");n.className="edit-css-"+e.id;let i=document.querySelector("head");i==null||i.appendChild(n);const u=[N_()];this.isPc&&u.push(zF({prefix:`.render-engine-${(c=this.engine)==null?void 0:c.id}`,transform(l,f){return f.startsWith(l)?f:`${l} ${f}`}}));const o=be(u).process(r,{from:void 0}).css;n.appendChild(document.createTextNode(o))}}oe.CalcPlugin=UA,oe.ControlsEventPlugin=r5,oe.ES6ModulePlugin=YC,oe.Engine=Ju,oe.LifecycleEventPlugin=t5,oe.Plugin=KC,oe.StylePlugin=$_,oe.buildUUID=tn,oe.hasChildrenControl=qn,oe.loopDataViewControl=pr,oe.loopFormControl=dr,oe.parseModule=Pa,Object.defineProperty(oe,"__esModule",{value:!0})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-engine",
3
- "version": "7.0.0-beta.4",
3
+ "version": "7.0.0-beta.8",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -26,7 +26,7 @@
26
26
  "postpublish": "node ../../scripts/postpublish.js"
27
27
  },
28
28
  "dependencies": {
29
- "@byteluck-fe/model-driven-core": "7.0.0-beta.4",
29
+ "@byteluck-fe/model-driven-core": "7.0.0-beta.8",
30
30
  "@byteluck-fe/model-driven-shared": "7.0.0-beta.3",
31
31
  "@types/mathjs": "^9.4.2",
32
32
  "mathjs": "^11.3.3",
@@ -38,5 +38,5 @@
38
38
  "@types/postcss-prefix-selector": "^1.16.3",
39
39
  "postcss-nested": "^7.0.2"
40
40
  },
41
- "gitHead": "e2c32b376c328fe4c114106e071884f112c11f2e"
41
+ "gitHead": "06eb423735c35d0dbb0bb16f3d2030ac53f8633c"
42
42
  }