@byteluck-fe/model-driven-engine 2.8.0-alpha.1k → 2.8.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- var $1=Object.defineProperty,T1=Object.defineProperties;var j1=Object.getOwnPropertyDescriptors;var Ro=Object.getOwnPropertySymbols,L1=Object.getPrototypeOf,k1=Object.prototype.hasOwnProperty,q1=Object.prototype.propertyIsEnumerable,V1=Reflect.get;var Ln=Math.pow,Po=(z,ne,se)=>ne in z?$1(z,ne,{enumerable:!0,configurable:!0,writable:!0,value:se}):z[ne]=se,ie=(z,ne)=>{for(var se in ne||(ne={}))k1.call(ne,se)&&Po(z,se,ne[se]);if(Ro)for(var se of Ro(ne))q1.call(ne,se)&&Po(z,se,ne[se]);return z},ru=(z,ne)=>T1(z,j1(ne));var $o=(z,ne,se)=>V1(L1(z),se,ne);var Ze=(z,ne,se)=>new Promise((kn,nn)=>{var qn=Je=>{try{Lt(se.next(Je))}catch(kt){nn(kt)}},Vn=Je=>{try{Lt(se.throw(Je))}catch(kt){nn(kt)}},Lt=Je=>Je.done?kn(Je.value):Promise.resolve(Je.value).then(qn,Vn);Lt((se=se.apply(z,ne)).next())});(function(z,ne){typeof exports=="object"&&typeof module!="undefined"?ne(exports,require("crypto")):typeof define=="function"&&define.amd?define(["exports","crypto"],ne):(z=typeof globalThis!="undefined"?globalThis:z||self,ne(z.modelDrivenEngine={},z.require$$0))})(this,function(z,ne){"use strict";function se(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var kn=se(ne),nn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",qn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Vn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Lt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Je="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",kt="{caption}\u5FC5\u586B",To="\u8BF7\u8F93\u5165\u6807\u9898",jo="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Lo="\u8BF7\u8F93\u5165\u884C\u6807\u9898",ko="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",qo="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",Vo="\u8BF7\u7ED1\u5B9A\u8868\u5355",Uo="\u8BF7\u7ED1\u5B9A\u5217\u8868",Ho="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",zo="\u8BF7\u8F93\u5165\u663E\u793A\u503C",Wo="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Zo="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Jo="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",Go="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Xo="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Ko="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Qo="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Yo="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",ea="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",ta="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",na="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",ra="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",ua="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",ia="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",oa="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",aa="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",sa="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",ca="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",la="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",fa="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",ha="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",da="\u8BF7\u7ED1\u5B9A\u670D\u52A1",pa="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Da="\u8BF7\u9009\u62E9\u7701",ga="\u8BF7\u9009\u62E9\u5E02",va="\u8BF7\u9009\u62E9\u533A",ma="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",ya="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Ea="\u8BF7\u8F93\u5165\u5217\u5BBD",Aa="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Ca="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Fa="\u8BF7\u9009\u62E9\u63A7\u4EF6",wa="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",ba="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Ba="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",_a="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Sa="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ma="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Ia="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Na="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",xa="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Oa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ra="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Pa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",$a="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Ta="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ja="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",La="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ka="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",qa="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Va="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Ua="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Ha="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",za="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",Wa="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",Za="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",Ja="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",Ga="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",Xa="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",Ka={isNotNumber:nn,isNotString:qn,isNotObject:Vn,isNotArray:Lt,isNotBoolean:Je,runtimeRequired:kt,pleaseEnterCaption:To,pleaseEnterCaptionTip:jo,pleaseEnterRowCaption:Lo,pleaseEnterPlaceholder:ko,pleaseEnterFieldCode:qo,pleaseEnterForm:Vo,pleaseEnterList:Uo,pleaseEnterProcess:Ho,pleaseEnterLabel:zo,pleaseEnterValue:Wo,bizKeyNotBindFiled:Zo,pleaseSelectOneField:Jo,pleaseEnterNumberRange:Go,pleaseEnterAValueGreaterThanMin:Xo,pleaseEnterAValueLessThanMax:Ko,numberRangeSetError:Qo,stringRangeError:Yo,attachmentMaxSize:ea,pleaseEnterTotalScoreSetting:ta,theTotalScoreMustNotBeLessThan1:na,scoreDefaultValueRange:ra,attachmentLimitError:ua,PleaseReselectTheOptionalQuantity:ia,TheMaximumLengthIsGreaterThanTheMinimumLength:oa,TheMinimumLengthIsGreaterThanTheMaximumLength:aa,PleaseSelectTheCorrectOptionSettings:sa,optionIdIsRepeat:ca,optionIsRequired:la,pleaseEnterDataCode:fa,pleaseEnterValueFieldCode:ha,pleaseEnterSvcCode:da,pleaseBindAtLeastOneDisplayValue:pa,pleaseSelectProvince:Da,pleaseSelectCity:ga,pleaseSelectDistrict:va,limitRowsCannotBeLessThan0:ma,TheNumberOfRowsCannotBeLessThanMinRows:ya,pleaseEnterColumnWidth:Ea,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Aa,pleaseCompleteAllRulesAndConditions:Ca,pleaseSelectControl:Fa,pleaseSelectAtLeastOneColumn:wa,pleaseSelectFillBackMode:ba,pleaseSelectDashboard:Ba,rootNodeIsRequired:_a,theViewNameCannotBeEmpty:Sa,pleaseSelectOcrType:Ma,pleaseSelectAtLeastOneFieldToFillIn:Ia,pleaseChooseAtLeastOne:Na,pleaseEnterButtonContent:xa,pleaseEnterDataCodeInDataSetting:Oa,pleaseEnterValueFieldCodeInDataSetting:Ra,pleaseEnterSvcCodeInDataSetting:Pa,pleaseBindAtLeastOneDisplayValueInDataSetting:$a,rootNodeIsRequiredInDataSetting:Ta,pleaseEnterMaxHeight:ja,pleaseEnter:La,pleaseEnterWatermark:ka,pleaseEnterFileName:qa,pleaseUploadAtLeastOnePrintTemplate:Va,pleaseAssignBusiness:Ua,pleaseAssignExternal:Ha,pleaseEnterAliasCode:za,pleaseSelectDataCode:Wa,pleaseSelectSvcCode:Za,pleaseSelectJoinFieldCode:Ja,pleaseSelectMainFieldCode:Ga,pleaseSelectSortFieldCode:Xa},Qa="Please enter a number",Ya="Please enter a string",es="Please enter an object",ts="Please enter an array",ns="Please enter a boolean",rs="{caption} Required",us="Please enter the title",is="Please enter the bubble prompt",os="Please enter the row title",as="Please enter the prompt text",ss="Please bind data items",cs="Please bind the form",ls="Please bind the list",fs="Please bind the process",hs="Please enter the displayed value",ds="Please enter the stored value",ps="The document number is not bound to the data item",Ds="Please select at least one display field",gs="Please enter a value greater than or equal to {min} and less than or equal to {max}",vs="Please enter a value greater than or equal to {min}",ms="Please enter a value less than or equal to {max}",ys="The value range is set incorrectly",Es="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",As="The attachment size must be between 0MB and 1000MB",Cs="Please fill in the total score setting",Fs="The total score cannot be less than 1",ws="The default value must be between {min} and {max}",bs="The number of attachments uploaded must be between {min} and {max}",Bs="Please re-select the optional quantity",_s="The maximum length of the control must be greater than the minimum length",Ss="The minimum length of the control must be less than the maximum length",Ms="Please select the correct option setting",Is="Option ID cannot be repeated",Ns="Please enter at least one option",xs="Please bind the data source",Os="Please bind the stored value",Rs="Please bind the service",Ps="At least one display value must be bound",$s="Please select a province",Ts="Please select a city",js="Please select a district",Ls="The minimum number of lines to fill in cannot be less than 0",ks="The number of rows cannot be less than {min} rows",qs="Please enter the column width",Vs="Please set the logical relationship of all rule conditions",Us="Please complete all rules and conditions",Hs="please select control",zs="Please select the dashboard",Ws="View name cannot be empty",Zs="Please select recognition type",Js="Please select at least one field to fill in",Gs="Please select at least one",Xs="Please enter the button title",Ks="Please bind the business model in the data settings",Qs="Please bind storage values in data settings",Ys="Please bind the service in the data settings",ec="Please bind at least one display value in the data settings",tc="Please select the root node in the data settings",nc="Please enter the maximum height",rc="The input content cannot be empty",uc="Watermark cannot be empty",ic="File name cannot be empty",oc="Please upload at least one printing template!\uFF01",ac="Please select a specific business department",sc="Please select a specified external organization",cc="Please enter a sub table alias",lc="Please select the associated table to set the business model",fc="Please select the association table to set the binding service",hc="Select associated sub table fields",dc="Please select the associated main table field",pc="Please select the sort field",Dc={isNotNumber:Qa,isNotString:Ya,isNotObject:es,isNotArray:ts,isNotBoolean:ns,runtimeRequired:rs,pleaseEnterCaption:us,pleaseEnterCaptionTip:is,pleaseEnterRowCaption:os,pleaseEnterPlaceholder:as,pleaseEnterFieldCode:ss,pleaseEnterForm:cs,pleaseEnterList:ls,pleaseEnterProcess:fs,pleaseEnterLabel:hs,pleaseEnterValue:ds,bizKeyNotBindFiled:ps,pleaseSelectOneField:Ds,pleaseEnterNumberRange:gs,pleaseEnterAValueGreaterThanMin:vs,pleaseEnterAValueLessThanMax:ms,numberRangeSetError:ys,stringRangeError:Es,attachmentMaxSize:As,pleaseEnterTotalScoreSetting:Cs,theTotalScoreMustNotBeLessThan1:Fs,scoreDefaultValueRange:ws,attachmentLimitError:bs,PleaseReselectTheOptionalQuantity:Bs,TheMaximumLengthIsGreaterThanTheMinimumLength:_s,TheMinimumLengthIsGreaterThanTheMaximumLength:Ss,PleaseSelectTheCorrectOptionSettings:Ms,optionIdIsRepeat:Is,optionIsRequired:Ns,pleaseEnterDataCode:xs,pleaseEnterValueFieldCode:Os,pleaseEnterSvcCode:Rs,pleaseBindAtLeastOneDisplayValue:Ps,pleaseSelectProvince:$s,pleaseSelectCity:Ts,pleaseSelectDistrict:js,limitRowsCannotBeLessThan0:Ls,TheNumberOfRowsCannotBeLessThanMinRows:ks,pleaseEnterColumnWidth:qs,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Vs,pleaseCompleteAllRulesAndConditions:Us,pleaseSelectControl:Hs,pleaseSelectDashboard:zs,theViewNameCannotBeEmpty:Ws,pleaseSelectOcrType:Zs,pleaseSelectAtLeastOneFieldToFillIn:Js,pleaseChooseAtLeastOne:Gs,pleaseEnterButtonContent:Xs,pleaseEnterDataCodeInDataSetting:Ks,pleaseEnterValueFieldCodeInDataSetting:Qs,pleaseEnterSvcCodeInDataSetting:Ys,pleaseBindAtLeastOneDisplayValueInDataSetting:ec,rootNodeIsRequiredInDataSetting:tc,pleaseEnterMaxHeight:nc,pleaseEnter:rc,pleaseEnterWatermark:uc,pleaseEnterFileName:ic,pleaseUploadAtLeastOnePrintTemplate:oc,pleaseAssignBusiness:ac,pleaseAssignExternal:sc,pleaseEnterAliasCode:cc,pleaseSelectDataCode:lc,pleaseSelectSvcCode:fc,pleaseSelectJoinFieldCode:hc,pleaseSelectMainFieldCode:dc,pleaseSelectSortFieldCode:pc},gc="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",vc="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",mc="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",yc="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ec="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ac="{caption}\u5FC5\u9808",Cc="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Fc="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",wc="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",bc="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Bc="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",_c="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Sc="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Mc="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ic="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Nc="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",xc="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Oc="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Rc="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Pc="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",$c="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Tc="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",jc="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Lc="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",kc="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",qc="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Vc="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Uc="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Hc="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",zc="\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",Wc="\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",Zc="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Jc="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Gc="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Xc="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Kc="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Qc="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Yc="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",el="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",tl="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",nl="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",rl="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ul="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",il="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ol="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",al="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",sl="please select control",cl="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ll="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",fl="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",hl="\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",dl="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",pl="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Dl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",gl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",vl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",ml="\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",yl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",El="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Al="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Cl="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Fl="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",wl="\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",bl="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Bl="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",_l="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Sl="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",Ml="\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",Il="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",Nl="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",xl="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ol={isNotNumber:gc,isNotString:vc,isNotObject:mc,isNotArray:yc,isNotBoolean:Ec,runtimeRequired:Ac,pleaseEnterCaption:Cc,pleaseEnterCaptionTip:Fc,pleaseEnterRowCaption:wc,pleaseEnterPlaceholder:bc,pleaseEnterFieldCode:Bc,pleaseEnterForm:_c,pleaseEnterList:Sc,pleaseEnterProcess:Mc,pleaseEnterLabel:Ic,pleaseEnterValue:Nc,bizKeyNotBindFiled:xc,pleaseSelectOneField:Oc,pleaseEnterNumberRange:Rc,pleaseEnterAValueGreaterThanMin:Pc,pleaseEnterAValueLessThanMax:$c,numberRangeSetError:Tc,stringRangeError:jc,attachmentMaxSize:Lc,pleaseEnterTotalScoreSetting:kc,theTotalScoreMustNotBeLessThan1:qc,scoreDefaultValueRange:Vc,attachmentLimitError:Uc,PleaseReselectTheOptionalQuantity:Hc,TheMaximumLengthIsGreaterThanTheMinimumLength:zc,TheMinimumLengthIsGreaterThanTheMaximumLength:Wc,PleaseSelectTheCorrectOptionSettings:Zc,optionIdIsRepeat:Jc,optionIsRequired:Gc,pleaseEnterDataCode:Xc,pleaseEnterValueFieldCode:Kc,pleaseEnterSvcCode:Qc,pleaseBindAtLeastOneDisplayValue:Yc,pleaseSelectProvince:el,pleaseSelectCity:tl,pleaseSelectDistrict:nl,limitRowsCannotBeLessThan0:rl,TheNumberOfRowsCannotBeLessThanMinRows:ul,pleaseEnterColumnWidth:il,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ol,pleaseCompleteAllRulesAndConditions:al,pleaseSelectControl:sl,pleaseSelectDashboard:cl,theViewNameCannotBeEmpty:ll,pleaseSelectOcrType:fl,pleaseSelectAtLeastOneFieldToFillIn:hl,pleaseChooseAtLeastOne:dl,pleaseEnterButtonContent:pl,pleaseEnterDataCodeInDataSetting:Dl,pleaseEnterValueFieldCodeInDataSetting:gl,pleaseEnterSvcCodeInDataSetting:vl,pleaseBindAtLeastOneDisplayValueInDataSetting:ml,rootNodeIsRequiredInDataSetting:yl,pleaseEnterMaxHeight:El,pleaseEnter:Al,pleaseEnterWatermark:Cl,pleaseEnterFileName:Fl,pleaseUploadAtLeastOnePrintTemplate:wl,pleaseAssignBusiness:bl,pleaseAssignExternal:Bl,pleaseEnterAliasCode:_l,pleaseSelectDataCode:Sl,pleaseSelectSvcCode:Ml,pleaseSelectJoinFieldCode:Il,pleaseSelectMainFieldCode:Nl,pleaseSelectSortFieldCode:xl},Rl={zhCN:Ka,enUS:Dc,jaJP:Ol},$e;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})($e||($e={}));var At;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(At||(At={}));var uu="zh-CN";function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(G||(G={}));var ce;(function(e){e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.ORGANIZATION_SELECTION="organization-selection",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.Approval_Status_Column="approval-status-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.GRID_LAYOUT_CONTAINER="grid-layout-container",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.ACTION_BAR="action-bar",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2",e.GRID_LAYOUT_WRAP="grid-layout-wrap"})(ce||(ce={}));var ue;(function(e){e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.RELATION="relation",e.LIST="list",e.RELATION_FIELD="relation-field",e.REFERENCE_FIELD="reference-field",e.CALC_FIELD="calc",e.JSON="json",e.BIGINT="bigint",e.ANY="ANY",e.ENCRYPTED_FIELD="encrypted_field"})(ue||(ue={}));var me;me={},Be(me,"array","array-column"),Be(me,"auto_number","auto-number-column"),Be(me,"decimal","decimal-column"),Be(me,"department","department-column"),Be(me,"file","file-column"),Be(me,"image","image-column"),Be(me,"location","location-column"),Be(me,"people","employee-column"),Be(me,"text","text-column"),Be(me,"timescope","timescope-column"),Be(me,"timestamp","timestamp-column"),Be(me,"varchar","varchar-column"),Be(me,"relation","varchar-column");var iu;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATEHOUR="datehour",e.DATEMIN="datemin",e.DATETIME="datetime"})(iu||(iu={}));var ou="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Pl=ou+"0123456789";function rn(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?ou:Pl,u=Math.random()*r.length;t+=r[parseInt(String(u),10)]}return t}function Un(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $l(e){if(Array.isArray(e))return Un(e)}function Tl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function au(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function un(e,t,n){return lu()?un=Reflect.construct:un=function(u,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(u,s),f=new l;return o&&Vt(f,o.prototype),f},un.apply(null,arguments)}function qt(e){return qt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qt(e)}function su(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vt(e,t)}function jl(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ll(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kl(){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 ql(e,t){return t&&(Vl(t)==="object"||typeof t=="function")?t:Tl(e)}function Vt(e,t){return Vt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Vt(e,t)}function cu(e){return $l(e)||Ll(e)||Ul(e)||kl()}function Vl(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Ul(e,t){if(!!e){if(typeof e=="string")return Un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Un(e,t)}}function Hn(e){var t=typeof Map=="function"?new Map:void 0;return Hn=function(r){if(r===null||!jl(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return un(r,arguments,qt(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Vt(u,r)},Hn(e)}function lu(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function fu(e){var t=lu();return function(){var r=qt(e),u;if(t){var i=qt(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return ql(this,u)}}var zn=console;function tt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=zn).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(cu(u)))}function Wn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=zn).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(cu(u)))}function Hl(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Zn=function(e){su(n,e);var t=fu(n);function n(r){au(this,n);var u;return u=t.call(this,r),u.name="\u{1F4A5} Driven Error",u.message=r?Hl(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",u}return n}(Hn(Error)),zl=function(e){su(n,e);var t=fu(n);function n(r){au(this,n);var u;return u=t.call(this,r),u.name="\u{1F6A8} Driven Reference Error",u}return n}(Zn);function Ge(e){throw new Zn(e)}function hu(e){throw new zl(e)}function on(e){zn.error(new Zn(e))}function nt(e,t){Array.isArray(e)&&e.map(function(n){switch(n.controlType){case"layout":nt(n==null?void 0:n.children,t);break;case"wrap":nt(n==null?void 0:n.children,t);break;case"search":nt(n==null?void 0:n.children,t);break;case"form":t(n)}})}var Wl=Object.prototype.toString;function du(e,t){return Wl.call(e)==="[object "+t+"]"}function Zl(e){return du(e,"String")}function Jl(e){return du(e,"Promise")}var Gl=function(){function e(t){var n,r;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((r=(n=t.messages)!==null&&n!==void 0?n:this.getPreImport(t.locale))!==null&&r!==void 0?r:{}),t.variableRegExp&&(this.variableRegExp=t.variableRegExp),this.setLocale(t.locale)}return e.prototype.setLocale=function(t){var n=this;this.locale=t,this._messageCache.clear();var r=this.getMessageData();Jl(r)?r.then(function(u){n._messageCache.clear(),n.messages[n.localeInMessageKey]=u}):this.messages[this.localeInMessageKey]=r},e.prototype.getMessageData=function(){var t=this._messages[this.localeInMessageKey];return typeof t=="function"?t():t},e.prototype.translate=function(t,n,r){var u=this.getMessage(t);return u?this.formatMessage(u,r):this.formatMessage(n,r)},e.prototype.getMessage=function(t){if(this._messageCache.has(t))return this._messageCache.get(t);var n=this.getPathArray(t),r=n.reduce(function(u,i,o,s){if(u!==void 0){var l=u[i];if(!(o===s.length-1&&!Zl(l)))return l}},this.message);return this._messageCache.set(t,r),r},e.prototype.formatMessage=function(t,n){return n?t.replace(this.variableRegExp,function(r,u){var i=n[u];return i!==void 0?String(i):r}):t},e.prototype.getPreImport=function(t){var n;if(window.okI18nPreImport){var r=this.getLocaleInMessageKey(t);return window.okI18nPreImport.hasOwnProperty(r)?window.okI18nPreImport:(n={},n[r]=window.okI18nPreImport,n)}},e.prototype.getPathArray=function(t){return t.split(".")},e.prototype.getLocaleInMessageKey=function(t){return t.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var t;return(t=this.messages[this.localeInMessageKey])!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e}();function Xl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kl(e,t,n){return t&&pu(e.prototype,t),n&&pu(e,n),e}function Ql(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _e=function(){function e(){Xl(this,e)}return Kl(e,null,[{key:"getMessage",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",r)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uu;return new Gl({locale:n,messages:Rl})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),e}();Ql(_e,"$i18n",_e.resetI18n());function Jn(e,t,n){var r=t.replace(/\[(\d)]/g,function(i,o){return"."+o}).split("."),u=!1;return r.reduce(function(i,o,s,l){var f=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,o)){tt("Can not set ".concat(t,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),i,i);return}return s===l.length-1&&!Object.is(f[o],n)&&(f[o]=n,u=!0),f[o]}},e),u}var rt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Du(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gn={exports:{}};(function(e){(function(t){var n=function(p,m,y){if(!f(m)||a(m)||h(m)||d(m)||l(m))return m;var C,w=0,S=0;if(c(m))for(C=[],S=m.length;w<S;w++)C.push(n(p,m[w],y));else{C={};for(var I in m)Object.prototype.hasOwnProperty.call(m,I)&&(C[p(I,y)]=n(p,m[I],y))}return C},r=function(p,m){m=m||{};var y=m.separator||"_",C=m.split||/(?=[A-Z])/;return p.split(C).join(y)},u=function(p){return D(p)?p:(p=p.replace(/[\-_\s]+(.)?/g,function(m,y){return y?y.toUpperCase():""}),p.substr(0,1).toLowerCase()+p.substr(1))},i=function(p){var m=u(p);return m.substr(0,1).toUpperCase()+m.substr(1)},o=function(p,m){return r(p,m).toLowerCase()},s=Object.prototype.toString,l=function(p){return typeof p=="function"},f=function(p){return p===Object(p)},c=function(p){return s.call(p)=="[object Array]"},a=function(p){return s.call(p)=="[object Date]"},h=function(p){return s.call(p)=="[object RegExp]"},d=function(p){return s.call(p)=="[object Boolean]"},D=function(p){return p=p-0,p===p},g=function(p,m){var y=m&&"process"in m?m.process:m;return typeof y!="function"?p:function(C,w){return y(C,p,w)}},A={camelize:u,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(p,m){return n(g(u,m),p)},decamelizeKeys:function(p,m){return n(g(o,m),p,m)},pascalizeKeys:function(p,m){return n(g(i,m),p)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=A:t.humps=A})(rt)})(Gn);var gu={};Object.defineProperty(gu,"__esModule",{value:!0});function Xn(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(t=>typeof t!="object"||t===null?t:Xn(t));{const t={};for(const n in e){const r=e[n];t[n]=typeof r!="object"||r===null?r:Xn(r)}return t}}var Yl=gu.default=Xn;function re(e){if(e!==void 0)return typeof e=="object"?Yl(e):e}function Te(e){return Object.prototype.toString.call(e)==="[object Object]"}function ef(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function Dt(e){return Array.isArray(e)}function Ee(e){return typeof e=="string"}function an(e){return typeof e=="number"}function vu(e){return typeof e=="function"}function tf(e){return Dt(e)&&e.every(function(t){return Ee(t)})}function nf(e){return Dt(e)&&e.every(function(t){return an(t)||t===""})}function mu(e){return/^\[.*?]$/.test(e)}function sn(e){return/^{.*?}$/.test(e)}function rf(e){return Object.values(ce).includes(e)}function Kn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uf(e){if(Array.isArray(e))return Kn(e)}function yu(e,t,n,r,u,i,o){try{var s=e[i](o),l=s.value}catch(f){n(f);return}s.done?t(l):Promise.resolve(l).then(r,u)}function of(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(l){yu(i,r,u,o,s,"next",l)}function s(l){yu(i,r,u,o,s,"throw",l)}o(void 0)})}}function af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sf(e,t,n){return t&&Eu(e.prototype,t),n&&Eu(e,n),e}function Au(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cf(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lf(){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 Qn(e){return uf(e)||cf(e)||ff(e)||lf()}function ff(e,t){if(!!e){if(typeof e=="string")return Kn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kn(e,t)}}function hf(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(f){return function(c){return l([f,c])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(c){f=[6,c],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var Cu=function(){function e(){af(this,e),Au(this,"_events",new Map),Au(this,"debug",!1)}return sf(e,[{key:"emit",value:function(n){for(var r=arguments.length,u=new Array(r>1?r-1:0),i=1;i<r;i++)u[i-1]=arguments[i];var o=this;return of(function(){var s,l,f,c,a,h,d,D,g,A,p,m;return hf(this,function(y){switch(y.label){case 0:if(s=o._events.get(n),l=[],!s)return[3,10];f=s.slice(),c=!0,a=!1,h=void 0,y.label=1;case 1:y.trys.push([1,8,9,10]),d=f[Symbol.iterator](),y.label=2;case 2:if(c=(D=d.next()).done)return[3,7];if(g=D.value,!s.includes(g))return[3,6];y.label=3;case 3:return y.trys.push([3,5,,6]),o.debug&&Wn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(g.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+g.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(u.map(function(){return"%o"}).join(","),"\u3002")].concat(Qn(u))),[4,g.apply(null,Qn(u))];case 4:return A=y.sent(),o.debug&&Wn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(g.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+g.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(u.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(Qn(u),[A])),l.push(A),A===!1?[3,7]:[3,6];case 5:return p=y.sent(),on(String(p)+":"+String(p.stack)),[3,6];case 6:return c=!0,[3,2];case 7:return[3,10];case 8:return m=y.sent(),a=!0,h=m,[3,10];case 9:try{!c&&d.return!=null&&d.return()}finally{if(a)throw h}return[7];case 10:return[2,l]}})})()}},{key:"on",value:function(n,r){if(this._events.has(n)){var u;(u=this._events.get(n))===null||u===void 0||u.push(r)}else this._events.set(n,[r])}},{key:"off",value:function(n,r){if(this._events.has(n)){var u=this._events.get(n),i=u==null?void 0:u.indexOf(r);u==null||u.splice(i,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),e}();function df(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pf(e,t,n){return t&&Fu(e.prototype,t),n&&Fu(e,n),e}function Df(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gf=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_list_before_insert",name:"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",code:"list-before-insert"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"},{key:"on_change_tab",name:"\u6807\u7B7E\u9875\u5207\u6362\u65F6",code:"change-tab"},{key:"on_modal_ok",name:"\u5F39\u7A97\u786E\u8BA4\u65F6",code:"modal-ok"}],wu=function(){function e(){df(this,e)}return pf(e,[{key:"getEventsFromKeys",value:function(n){var r=typeof n=="string"?[n]:n;return e.events.filter(function(u){return r.includes(u.key)})}}]),e}();Df(wu,"events",gf);function Yn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vf(e){if(Array.isArray(e))return Yn(e)}function mf(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yf(){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 bu(e){return vf(e)||mf(e)||Ef(e)||yf()}function Ef(e,t){if(!!e){if(typeof e=="string")return Yn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yn(e,t)}}function er(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function Bu(e,t,n){n==="Designer"&&(e.parent=t,er(e,"parent"))}function Af(e,t,n){e.forEach(function(r){Bu(r,t,n)})}var _u=Symbol("targetKey");function Su(e){var t;return(t=e[_u])!==null&&t!==void 0?t:e}function Mu(e,t,n){return Af(e,t,n),new Proxy(e,{get:function(u,i){for(var o=arguments.length,s=new Array(o>2?o-2:0),l=2;l<o;l++)s[l-2]=arguments[l];var f;return i===_u?u:(f=Reflect).get.apply(f,[u,i].concat(bu(s)))},set:function(u,i,o){for(var s=arguments.length,l=new Array(s>3?s-3:0),f=3;f<s;f++)l[f-3]=arguments[f];var c;if(Dt(e)&&i==="length"&&o===e.length)return!0;var a=(c=Reflect).set.apply(c,[u,i,o].concat(bu(l)));return Te(o)&&Bu(o,t,n),a}})}function tr(e,t,n,r,u){var i=r!=null?r:e,o=Mu(Su(n!=null?n:[]),i,u);Object.defineProperty(e,t,{get:function(){return o},set:function(l){o=Mu(Su(l),i,u)},enumerable:!0})}function Cf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ff(e,t,n){return t&&Iu(e.prototype,t),n&&Iu(e,n),e}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nu=[],Ut=function(){function e(t){Cf(this,e),ut(this,"registeredControlTypes",new Set),ut(this,"controlConfigMap",new Map),ut(this,"_controls",[]),ut(this,"_type",void 0),this._type=t,this._initControls(t)}return Ff(e,[{key:"registerControlConfig",value:function(n,r){return this.controlConfigMap.set(n,r),this}},{key:"getControlConfig",value:function(n){return this.controlConfigMap.get(n)}},{key:"getControls",value:function(){return this._controls}},{key:"register",value:function(n){n.__is_control__||Ge("".concat(n.name," is not a Control"));var r=this._controls.findIndex(function(u){return u.controlType===n.controlType});return r>-1&&(tt("The ".concat(n.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(r,1)),this.registeredControlTypes.add(n.controlType),this._controls.push(n),this}},{key:"isLayoutControl",value:function(n){return n.controlType===G.LAYOUT}},{key:"isFormControl",value:function(n){return n.controlType===G.FORM}},{key:"isListControl",value:function(n){return n.controlType===G.LIST}},{key:"isColumnControl",value:function(n){return n.controlType===G.COLUMN}},{key:"createControl",value:function(n,r){var u=this;if(Array.isArray(n))return n.map(function(c){return u.createControl(c,r)});if(n.children&&(n.children=n.children.map(function(c){return u.createControl(c,r)})),this.isListControl(n)){var i=n.props;i.headers&&(i.headers=i.headers.map(function(c){return u.createControl(c,r)})),i.footers&&(i.footers=i.footers.map(function(c){var a;return c&&(a=u.createControl(c,r)),a}))}var o=this.getControlFormType(n.type);if(o){var s=n;if(typeof r=="function"){var l=r(s);l&&(s=l)}var f;return o.mode==="Runtime"?(f=s,this._setParentPrototypeToSchema(f,this)):f=new o(s),f}else Ge("The constructor of ".concat(n.type," could not be found, please confirm that the constructor has been registered"))}},{key:"resetInstanceParent",value:function(n,r){delete n.parent,Object.defineProperty(n,"parent",{configurable:!0,get:function(){return r}}),er(n,"parent")}},{key:"_setParentPrototypeToSchema",value:function(n,r){r._type==="Runtime"&&(Object.defineProperty(n,"parent",{configurable:!0,get:function(){var i=n.id,o=r._controlParentIdMap,s=r.instanceMap;if(!(!o||!s)){var l=o[i],f=s[i];if(!(!l&&!f)){var c=f.findIndex(function(d){return d==n}),a=s[l]||[],h;return a.length!==f.length?h=a[0]:h=a[c],h}}}}),er(n,"parent"))}},{key:"createControlInstance",value:function(n,r){var u=this.getControlFormType(n);if(u)return new u(r)}},{key:"getControlFormType",value:function(n){return this._controls.find(function(r){return r.controlType===n})}},{key:"_initControls",value:function(n){var r=this;this.constructor.staticControls.forEach(function(u){r.register(u[n]),e.staticControlsRuntimeRules.set(u.Runtime.controlType,u.Property.RuntimeRules),u.Property.mode=n})}}],[{key:"staticGetRules",value:function(n,r){var u=e.staticControlsRuntimeRules.get(n),i=[];if(u){var o=new u(r);i=Array.from(o)}return i}},{key:"register",value:function(n,r){var u=n.Designer,i=n.Runtime,o=n.Property;(!u||!i||!u.__is_control__||!i.__is_control__)&&Ge("".concat(n," is can't register as a Control"));var s=this.staticControls.findIndex(function(l){return l.Designer.controlType===u.controlType});return s>-1&&(tt("The ".concat(u.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(s,1)),this.staticRegisteredTypes.add(u.controlType),this.staticControls.push(n),o.mode=r,this}}]),e}();ut(Ut,"staticControlsRuntimeRules",new Map),ut(Ut,"staticControls",Nu),ut(Ut,"staticRegisteredTypes",new Set(Nu.map(function(e){return e.Designer.controlType}))),ut(Ut,"staticRegisteredConfigs",new Map);function gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nr=function e(t){gt(this,e),te(this,"dataCode",void 0),te(this,"fieldCode",void 0),te(this,"fieldType",void 0),te(this,"aliasCode",void 0);var n;this.dataCode=(n=t==null?void 0:t.dataCode)!==null&&n!==void 0?n:"";var r;this.fieldCode=(r=t==null?void 0:t.fieldCode)!==null&&r!==void 0?r:"";var u;this.fieldType=(u=t==null?void 0:t.fieldType)!==null&&u!==void 0?u:"",this.aliasCode=t==null?void 0:t.aliasCode},wf=function e(t){gt(this,e),te(this,"minWidth",void 0),te(this,"maxWidth",void 0),te(this,"flex",void 0);var n;this.minWidth=(n=t==null?void 0:t.minWidth)!==null&&n!==void 0?n:150,this.maxWidth=t==null?void 0:t.maxWidth;var r;this.flex=(r=t==null?void 0:t.flex)!==null&&r!==void 0?r:1},rr=function e(t){gt(this,e),te(this,"amount",void 0),te(this,"currency",void 0);var n;this.amount=(n=t==null?void 0:t.amount)!==null&&n!==void 0?n:"";var r;this.currency=(r=t==null?void 0:t.currency)!==null&&r!==void 0?r:"CNY"},ur=function e(t){gt(this,e),te(this,"min",void 0),te(this,"max",void 0);var n;this.min=(n=t==null?void 0:t.min)!==null&&n!==void 0?n:"";var r;this.max=(r=t==null?void 0:t.max)!==null&&r!==void 0?r:""},ir=function e(t){gt(this,e),te(this,"city",void 0),te(this,"cityDisplay",void 0),te(this,"district",void 0),te(this,"districtDisplay",void 0),te(this,"province",void 0),te(this,"provinceDisplay",void 0);var n;this.city=(n=t==null?void 0:t.city)!==null&&n!==void 0?n:"";var r;this.cityDisplay=(r=t==null?void 0:t.cityDisplay)!==null&&r!==void 0?r:"";var u;this.district=(u=t==null?void 0:t.district)!==null&&u!==void 0?u:"";var i;this.districtDisplay=(i=t==null?void 0:t.districtDisplay)!==null&&i!==void 0?i:"";var o;this.province=(o=t==null?void 0:t.province)!==null&&o!==void 0?o:"";var s;this.provinceDisplay=(s=t==null?void 0:t.provinceDisplay)!==null&&s!==void 0?s:""},or=function e(t){gt(this,e),te(this,"result",void 0),te(this,"unit",void 0);var n;this.result=(n=t==null?void 0:t.result)!==null&&n!==void 0?n:0;var r;this.unit=(r=t==null?void 0:t.unit)!==null&&r!==void 0?r:""},xu;(function(e){e.CNY="CNY",e.USD="USD",e.JPY="JPY",e.EUR="EUR",e.INR="INR",e.IDR="IDR",e.BRL="BRL",e.AED="AED",e.AUD="AUD",e.CAD="CAD",e.EGP="EGP",e.GBP="GBP",e.ZAR="ZAR",e.KRW="KRW",e.MAD="MAD",e.MXN="MXN",e.MYR="MYR",e.PHP="PHP",e.PLN="PLN",e.RUB="RUB",e.SGD="SGD",e.THB="THB",e.TRY="TRY",e.TWD="TWD",e.VND="VND",e.HKD="HKD",e.IEP="IEP"})(xu||(xu={}));var Ou;(function(e){e.DEFAULT_DISPLAY="defaultDisplay",e.REQUIRED="required",e.IS_HIDE="isHide",e.IS_SHOW_UNIT="isShowUnit",e.IMD_SEARCH="immediatelySearch",e.MULTIPLE="multiple",e.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",e.CAPTION="caption",e.IS_HIDE_CAPTION="isHideCaption",e.DEFAULT_SHOW_OPTIONS="defaultShowOptions",e.CAN_SEARCH="canSearch",e.CAN_CHECK="canCheck",e.CAN_EDIT="canEdit",e.CAN_DELETE="canDelete",e.SHOW_UPPER_CASE="showUpperCase",e.MICROMETER="micrometer",e.PRECISION="precision",e.PERCENTAGE="percentage",e.OPTIONAL_LEVEL="optionalLevel",e.CONTAINS_SUB_NODE="containsSubNode",e.DEFAULT_COLLAPSE="defaultCollapse",e.CAN_VIEW_FORM="canViewForm",e.VIEW_FORM_MODEL_TYPE="viewFormModelType",e.SERVER_PAGINATION="serverPagination",e.IS_SHOW_CAPTION_TIP="isShowCaptionTip",e.ENCRYPTED="encrypted",e.IS_INLINE_EDIT="isInlineEdit",e.REVISIONS_MODE="revisionsMode",e.ALLOW_COPY_OPTIONS="allowCopyOptions",e.IS_PASTE="isPaste"})(Ou||(Ou={}));var ar;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT"})(ar||(ar={}));var bf=function e(t){gt(this,e),te(this,"width",void 0),te(this,"height",void 0),te(this,"widthConfig",void 0),te(this,"heightConfig",void 0);var n;this.width=(n=t==null?void 0:t.width)!==null&&n!==void 0?n:"";var r;this.height=(r=t==null?void 0:t.height)!==null&&r!==void 0?r:"";var u;this.widthConfig=(u=t==null?void 0:t.widthConfig)!==null&&u!==void 0?u:"fill";var i;this.heightConfig=(i=t==null?void 0:t.heightConfig)!==null&&i!==void 0?i:"fill"};function Bf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cn(e,t,n){return Ru()?cn=Reflect.construct:cn=function(u,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(u,s),f=new l;return o&&zt(f,o.prototype),f},cn.apply(null,arguments)}function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ht(e){return Ht=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ht(e)}function _f(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zt(e,t)}function Sf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Mf(e,t){return t&&(If(t)==="object"||typeof t=="function")?t:Bf(e)}function zt(e,t){return zt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},zt(e,t)}function If(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function cr(e){var t=typeof Map=="function"?new Map:void 0;return cr=function(r){if(r===null||!Sf(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return cn(r,arguments,Ht(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),zt(u,r)},cr(e)}function Ru(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Nf(e){var t=Ru();return function(){var r=Ht(e),u;if(t){var i=Ht(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Mf(this,u)}}var lr=function e(t){sr(this,e),it(this,"isHide",{type:"boolean"})},Pu=function(e){_f(n,e);var t=Nf(n);function n(r){return sr(this,n),t.call(this)}return n}(cr(Array)),Xe=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";sr(this,e),it(this,"isHide",void 0),it(this,"className",void 0),it(this,"style",void 0),it(this,"caption",void 0);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new bf(t==null?void 0:t.style);var u;this.caption=(u=t==null?void 0:t.caption)!==null&&u!==void 0?u:n};it(Xe,"mode",void 0),it(Xe,"Rules",lr),it(Xe,"RuntimeRules",Pu);function He(){return He=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},He.apply(this,arguments)}function xf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function fr(e){return fr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},fr(e)}function ln(e,t){return ln=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},ln(e,t)}function Of(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function fn(e,t,n){return Of()?fn=Reflect.construct:fn=function(u,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(u,s),f=new l;return o&&ln(f,o.prototype),f},fn.apply(null,arguments)}function Rf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function hr(e){var t=typeof Map=="function"?new Map:void 0;return hr=function(r){if(r===null||!Rf(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return fn(r,arguments,fr(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),ln(u,r)},hr(e)}var Pf=/%[sdj%]/g,$u=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&($u=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function dr(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,u=t[0],i=t.length;if(typeof u=="function")return u.apply(null,t.slice(1));if(typeof u=="string"){var o=String(u).replace(Pf,function(s){if(s==="%%")return"%";if(r>=i)return s;switch(s){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(l){return"[Circular]"}break;default:return s}});return o}return u}function $f(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function le(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||$f(t)&&typeof e=="string"&&!e)}function Tf(e,t,n){var r=[],u=0,i=e.length;function o(s){r.push.apply(r,s),u++,u===i&&n(r)}e.forEach(function(s){t(s,o)})}function Tu(e,t,n){var r=0,u=e.length;function i(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<u?t(e[s],i):n([])}i([])}function jf(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var ju=function(e){xf(t,e);function t(n,r){var u;return u=e.call(this,"Async Validation Error")||this,u.errors=n,u.fields=r,u}return t}(hr(Error));function Lf(e,t,n,r){if(t.first){var u=new Promise(function(a,h){var d=function(A){return r(A),A.length?h(new ju(A,dr(A))):a()},D=jf(e);Tu(D,n,d)});return u.catch(function(a){return a}),u}var i=t.firstFields||[];i===!0&&(i=Object.keys(e));var o=Object.keys(e),s=o.length,l=0,f=[],c=new Promise(function(a,h){var d=function(g){if(f.push.apply(f,g),l++,l===s)return r(f),f.length?h(new ju(f,dr(f))):a()};o.length||(r(f),a()),o.forEach(function(D){var g=e[D];i.indexOf(D)!==-1?Tu(g,n,d):Tf(g,n,d)})});return c.catch(function(a){return a}),c}function Lu(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:typeof t=="function"?t():t,field:t.field||e.fullField}}}function ku(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=He(He({},e[n]),r):e[n]=r}}return e}function qu(e,t,n,r,u,i){e.required&&(!n.hasOwnProperty(e.field)||le(t,i||e.type))&&r.push(Se(u.messages.required,e.fullField))}function kf(e,t,n,r,u){(/^\s+$/.test(t)||t==="")&&r.push(Se(u.messages.whitespace,e.fullField))}var pr={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},Wt={integer:function(t){return Wt.number(t)&&parseInt(t,10)===t},float:function(t){return Wt.number(t)&&!Wt.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Wt.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(pr.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(pr.url)},hex:function(t){return typeof t=="string"&&!!t.match(pr.hex)}};function qf(e,t,n,r,u){if(e.required&&t===void 0){qu(e,t,n,r,u);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;i.indexOf(o)>-1?Wt[o](t)||r.push(Se(u.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(Se(u.messages.types[o],e.fullField,e.type))}function Vf(e,t,n,r,u){var i=typeof e.len=="number",o=typeof e.min=="number",s=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=t,c=null,a=typeof t=="number",h=typeof t=="string",d=Array.isArray(t);if(a?c="number":h?c="string":d&&(c="array"),!c)return!1;d&&(f=t.length),h&&(f=t.replace(l,"_").length),i?f!==e.len&&r.push(Se(u.messages[c].len,e.fullField,e.len)):o&&!s&&f<e.min?r.push(Se(u.messages[c].min,e.fullField,e.min)):s&&!o&&f>e.max?r.push(Se(u.messages[c].max,e.fullField,e.max)):o&&s&&(f<e.min||f>e.max)&&r.push(Se(u.messages[c].range,e.fullField,e.min,e.max))}var Ct="enum";function Uf(e,t,n,r,u){e[Ct]=Array.isArray(e[Ct])?e[Ct]:[],e[Ct].indexOf(t)===-1&&r.push(Se(u.messages[Ct],e.fullField,e[Ct].join(", ")))}function Hf(e,t,n,r,u){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Se(u.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var i=new RegExp(e.pattern);i.test(t)||r.push(Se(u.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var V={required:qu,whitespace:kf,type:qf,range:Vf,enum:Uf,pattern:Hf};function zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t,"string")&&!e.required)return n();V.required(e,t,r,i,u,"string"),le(t,"string")||(V.type(e,t,r,i,u),V.range(e,t,r,i,u),V.pattern(e,t,r,i,u),e.whitespace===!0&&V.whitespace(e,t,r,i,u))}n(i)}function Wf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}function Zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),le(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Jf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}function Gf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u),le(t)||V.type(e,t,r,i,u)}n(i)}function Xf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Kf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Qf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return n();V.required(e,t,r,i,u,"array"),t!=null&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Yf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}var e0="enum";function t0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V[e0](e,t,r,i,u)}n(i)}function n0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t,"string")&&!e.required)return n();V.required(e,t,r,i,u),le(t,"string")||V.pattern(e,t,r,i,u)}n(i)}function r0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t,"date")&&!e.required)return n();if(V.required(e,t,r,i,u),!le(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),V.type(e,s,r,i,u),s&&V.range(e,s.getTime(),r,i,u)}}n(i)}function u0(e,t,n,r,u){var i=[],o=Array.isArray(t)?"array":typeof t;V.required(e,t,r,i,u,o),n(i)}function Dr(e,t,n,r,u){var i=e.type,o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(le(t,i)&&!e.required)return n();V.required(e,t,r,o,u,i),le(t,i)||V.type(e,t,r,o,u)}n(o)}function i0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u)}n(i)}var Zt={string:zf,method:Wf,number:Zf,boolean:Jf,regexp:Gf,integer:Xf,float:Kf,array:Qf,object:Yf,enum:t0,pattern:n0,date:r0,url:Dr,hex:Dr,email:Dr,required:u0,any:i0};function gr(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var vr=gr();function ot(e){this.rules=null,this._messages=vr,this.define(e)}ot.prototype={messages:function(t){return t&&(this._messages=ku(gr(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(t,n,r){var u=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var i=t,o=n,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var A,p=[],m={};function y(C){if(Array.isArray(C)){var w;p=(w=p).concat.apply(w,C)}else p.push(C)}for(A=0;A<g.length;A++)y(g[A]);p.length?m=dr(p):(p=null,m=null),s(p,m)}if(o.messages){var f=this.messages();f===vr&&(f=gr()),ku(f,o.messages),o.messages=f}else o.messages=this.messages();var c,a,h={},d=o.keys||Object.keys(this.rules);d.forEach(function(g){c=u.rules[g],a=i[g],c.forEach(function(A){var p=A;typeof p.transform=="function"&&(i===t&&(i=He({},i)),a=i[g]=p.transform(a)),typeof p=="function"?p={validator:p}:p=He({},p),p.validator=u.getValidationMethod(p),p.field=g,p.fullField=p.fullField||g,p.type=u.getType(p),p.validator&&(h[g]=h[g]||[],h[g].push({rule:p,value:a,source:i,field:g}))})});var D={};return Lf(h,o,function(g,A){var p=g.rule,m=(p.type==="object"||p.type==="array")&&(typeof p.fields=="object"||typeof p.defaultField=="object");m=m&&(p.required||!p.required&&g.value),p.field=g.field;function y(S,I){return He(He({},I),{},{fullField:p.fullField+"."+S})}function C(S){S===void 0&&(S=[]);var I=S;if(Array.isArray(I)||(I=[I]),!o.suppressWarning&&I.length&&ot.warning("async-validator:",I),I.length&&p.message!==void 0&&(I=[].concat(p.message)),I=I.map(Lu(p)),o.first&&I.length)return D[p.field]=1,A(I);if(!m)A(I);else{if(p.required&&!g.value)return p.message!==void 0?I=[].concat(p.message).map(Lu(p)):o.error&&(I=[o.error(p,Se(o.messages.required,p.field))]),A(I);var j={};if(p.defaultField)for(var U in g.value)g.value.hasOwnProperty(U)&&(j[U]=p.defaultField);j=He(He({},j),g.rule.fields);for(var H in j)if(j.hasOwnProperty(H)){var O=Array.isArray(j[H])?j[H]:[j[H]];j[H]=O.map(y.bind(null,H))}var $=new ot(j);$.messages(o.messages),g.rule.options&&(g.rule.options.messages=o.messages,g.rule.options.error=o.error),$.validate(g.value,g.rule.options||o,function(Z){var W=[];I&&I.length&&W.push.apply(W,I),Z&&Z.length&&W.push.apply(W,Z),A(W.length?W:null)})}}var w;p.asyncValidator?w=p.asyncValidator(p,g.value,C,g.source,o):p.validator&&(w=p.validator(p,g.value,C,g.source,o),w===!0?C():w===!1?C(p.message||p.field+" fails"):w instanceof Array?C(w):w instanceof Error&&C(w.message)),w&&w.then&&w.then(function(){return C()},function(S){return C(S)})},function(g){l(g)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Zt.hasOwnProperty(t.type))throw new Error(Se("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?Zt.required:Zt[this.getType(t)]||!1}},ot.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Zt[t]=n},ot.warning=$u,ot.messages=vr,ot.validators=Zt;var o0={required:"%s \u5FC5\u586B",maxLength:"%s \u8D85\u51FA\u6700\u5927\u957F\u5EA6\u9650\u5236",minLength:"%s \u5C0F\u4E8E\u6700\u5C0F\u957F\u5EA6\u9650\u5236",string:{range:"%s \u4E0D\u5728\u6307\u5B9A\u957F\u5EA6\u5185"}};function a0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new ot(e);return n.messages(Object.assign(o0,t)),n}var s0=new Cu;function mr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c0(e){if(Array.isArray(e))return e}function l0(e){if(Array.isArray(e))return mr(e)}function Vu(e,t,n,r,u,i,o){try{var s=e[i](o),l=s.value}catch(f){n(f);return}s.done?t(l):Promise.resolve(l).then(r,u)}function Uu(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(l){Vu(i,r,u,o,s,"next",l)}function s(l){Vu(i,r,u,o,s,"throw",l)}o(void 0)})}}function f0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h0(e,t,n){return t&&Hu(e.prototype,t),n&&Hu(e,n),e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zu(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Wu(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function d0(){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 p0(){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 Zu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){ee(e,u,n[u])})}return e}function D0(e){return c0(e)||Wu(e)||Ju(e)||d0()}function yr(e){return l0(e)||Wu(e)||Ju(e)||p0()}function Ju(e,t){if(!!e){if(typeof e=="string")return mr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mr(e,t)}}function Gu(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(f){return function(c){return l([f,c])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(c){f=[6,c],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var Ae=function(){function t(n){var r=this;f0(this,t),ee(this,"id",void 0),ee(this,"name",void 0),ee(this,"icon",void 0),ee(this,"type",void 0),ee(this,"controlType",void 0),ee(this,"props",void 0),ee(this,"setting",[]),ee(this,"fieldType",void 0),ee(this,"eventKeys",[]),ee(this,"customEvents",[]),ee(this,"parent",null),ee(this,"updateSetting",Ku),ee(this,"removeSetting",Xu),this._callControlHooks("preInstance",n);var u=zu(this,t)?this.constructor:void 0,i=u.controlName,o=u.controlIcon,s=u.controlType,l=u.controlFieldType,f=u.controlEventKeys,c=u.controlCustomEvents,a=u.name,h=u.setting;i&&o&&s||hu("The ".concat(a," controlName,controlIcon,controlType is not define"));var d;this.id=(d=n==null?void 0:n.id)!==null&&d!==void 0?d:rn(10),this.name=i,this.icon=o;var D;this.type=(D=n==null?void 0:n.type)!==null&&D!==void 0?D:s,this.props=new Xe(n==null?void 0:n.props,(zu(this,t)?this.constructor:void 0).controlName);var g;this.controlType=(g=n==null?void 0:n.controlType)!==null&&g!==void 0?g:"base",this.setting=re(h);var A;this.fieldType=(A=n==null?void 0:n.fieldType)!==null&&A!==void 0?A:l,this.eventKeys=re(f),this.customEvents=re(c),Promise.resolve().then(function(){r._callControlHooks("postInstance",n)})}return h0(t,[{key:"rules",get:function(){var r=this.props.constructor.Rules;return r?new r(this.props):{}}},{key:"_callControlHooks",value:function(){for(var r=arguments.length,u=new Array(r),i=0;i<r;i++)u[i]=arguments[i];var o,s=D0(u),l=s[0],f=s.slice(1);return(o=s0).emit.apply(o,[l,this].concat(yr(f)))}},{key:"preUpdate",value:function(r,u){this._callControlHooks("preUpdateProps",r,u)}},{key:"postUpdate",value:function(r,u){this._callControlHooks("postUpdateProps",r,u)}},{key:"updateProps",value:function(r,u){this.preUpdate(r,u),Jn(this.props,r,u),this.postUpdate(r,u)}},{key:"preValidate",value:function(){var r=this;return Uu(function(){var u,i,o;return Gu(this,function(s){switch(s.label){case 0:return u=Zu({},r.rules),[4,r._callControlHooks("preValidate",u)];case 1:return i=s.sent(),o=i[i.length-1],[2,o===!1?void 0:o]}})})()}},{key:"validate",value:function(r,u){var i=this;return Uu(function(){var o,s,l,f;return Gu(this,function(c){switch(c.label){case 0:return[4,i.preValidate()];case 1:o=c.sent(),s=o!==void 0?o:Zu({},i.rules),Array.isArray(u)&&u.forEach(function(a){s.hasOwnProperty(a)&&delete s[a]}),l=a0(s,r),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,l.validate(i.props)];case 3:return c.sent(),[2,!0];case 4:throw f=c.sent(),f.control||(f.control=i),f;case 5:return[2]}})})()}},{key:"toDataBindModel",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=this.fieldType,i=this.id,o=this.type,s=this.props,l=s.dataBind,f=s.datasourceBind,c=s.optionConfig,a=s.caption,h=s.required,d=s.maxLength,D=s.options,g=s.encrypted,A=s.encryptedMode;if(!(!u&&!l&&!f)){var p={parentId:r,fieldType:u,controlId:i,caption:a,type:o,props:{}};switch(l&&(p.dataBind=l),c){case"datasource":case void 0:f&&(p.datasourceBind=f);break;case"custom":p.props.options=D;break}return h!==void 0&&(p.required=h),d!==void 0&&(p.maxLength=d),g!==void 0&&(p.encrypted=g),A!==void 0&&(p.encryptedMode=A),p}}},{key:"preToSchema",value:function(){this._callControlHooks("preToSchema",this)}},{key:"toSchema",value:function(){return this.preToSchema(),{id:this.id,type:this.type,props:re(this.props),fieldType:this.fieldType,controlType:this.controlType}}}],[{key:"updateBasicControl",value:function(r,u){if(r==="setting"){if(u.add){var i;(i=this.setting).push.apply(i,yr(u.add))}u.remove&&this.removeSettingItem(u.remove),u.update}}}]),t}();ee(Ae,"mode","Designer"),ee(Ae,"controlName","\u63A7\u4EF6"),ee(Ae,"controlIcon","icon"),ee(Ae,"controlType","control"),ee(Ae,"controlFieldType",void 0),ee(Ae,"controlEventKeys",[]),ee(Ae,"controlCustomEvents",[]),ee(Ae,"setting",[]),ee(Ae,"__is_control__",!0),ee(Ae,"removeSettingItem",Xu),ee(Ae,"updateSettingItem",Ku);function Xu(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var u,i=typeof r!="string",o=(u=t.setting)===null||u===void 0?void 0:u.findIndex(function(f){return f.key===(i?r.key:r)});if(o!==-1){var s,l;i?t.setting[o].showItems=(s=t.setting[o].showItems)===null||s===void 0?void 0:s.filter(function(f){return!r.hideItems.includes(f)}):t.setting.splice(o,1),i&&!(!((l=t.setting[o].showItems)===null||l===void 0)&&l.length)&&t.setting.splice(o,1)}})}function Ku(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(u){var i=n.setting.find(function(f){return f.key===u});if(i){if(typeof t=="boolean")i.visible=t;else if(typeof t=="object"){var o,s=(o=t.type)!==null&&o!==void 0?o:"replace";if(s==="replace")i.showItems=t.showItems;else{var l;(l=i.showItems).push.apply(l,yr(t.showItems))}}}})}function g0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v0(e,t,n){return t&&Qu(e.prototype,t),n&&Qu(e,n),e}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m0(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var Jt=function(){function t(n){g0(this,t),Me(this,"id",void 0),Me(this,"type",void 0),Me(this,"controlType",void 0),Me(this,"props",void 0),Me(this,"fieldType",void 0),Me(this,"customEvents",[]),Me(this,"pageStatus",void 0),Me(this,"parent",null);var r=m0(this,t)?this.constructor:void 0,u=r.controlType,i=r.controlFieldType,o=r.name,s=r.controlCustomEvents;u||hu("The ".concat(o," controlType is not define"));var l;this.id=(l=n==null?void 0:n.id)!==null&&l!==void 0?l:rn(10);var f;this.type=(f=n==null?void 0:n.type)!==null&&f!==void 0?f:u,this.props=new Xe(n==null?void 0:n.props),this.customEvents=s;var c;this.controlType=(c=n==null?void 0:n.controlType)!==null&&c!==void 0?c:"base";var a;this.fieldType=(a=n==null?void 0:n.fieldType)!==null&&a!==void 0?a:i;var h;this.pageStatus=(h=n==null?void 0:n.pageStatus)!==null&&h!==void 0?h:ar.UNKNOWN}return v0(t,[{key:"rules",get:function(){var r=this.props.constructor.RuntimeRules;if(r){var u=new r(this.props);return Array.from(u)}return[]}}]),t}();Me(Jt,"mode","Runtime"),Me(Jt,"controlType","control"),Me(Jt,"controlFieldType",void 0),Me(Jt,"__is_control__",!0),Me(Jt,"controlCustomEvents",[]);function je(e){return(e==null?void 0:e.dataCode)!==void 0&&(e==null?void 0:e.fieldCode)!==void 0}function fe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Er(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hn(e){return hn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hn(e)}function Ar(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Cr(e,t)}function y0(e,t){return t&&(E0(t)==="object"||typeof t=="function")?t:fe(e)}function Cr(e,t){return Cr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Cr(e,t)}function E0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function A0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Fr(e){var t=A0();return function(){var r=hn(e),u;if(t){var i=hn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return y0(this,u)}}var C0=function(e){Ar(n,e);var t=Fr(n);function n(r){Er(this,n);var u;u=t.call(this,r),oe(fe(u),"dataBind",{}),oe(fe(u),"caption",{type:"string",required:!0,message:_e.getMessage("pleaseEnterCaption")}),oe(fe(u),"isHideCaption",{type:"boolean"}),oe(fe(u),"labelPosition",{type:"enum",enum:["top","left"]}),oe(fe(u),"defaultState",{type:"enum",enum:["default","readonly"]}),oe(fe(u),"required",{type:"boolean"}),oe(fe(u),"captionTip",{type:"string",required:!1,message:_e.getMessage("pleaseEnterCaptionTip")});var i={fieldCode:{type:"string",required:!0,message:_e.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:_e.getMessage("pleaseEnterFieldCode")}};if(je(r.dataBind))u.dataBind={type:"object",required:!0,fields:re(i),message:_e.getMessage("pleaseEnterFieldCode")};else{var o={type:"object",required:!0,fields:{},message:_e.getMessage("pleaseEnterFieldCode")};Object.keys(r.dataBind).forEach(function(s){o.fields[s]={type:"object",required:!0,fields:re(i),message:_e.getMessage("pleaseEnterFieldCode")}}),u.dataBind=o}return r.isShowCaptionTip&&(u.captionTip.required=!0),u}return n}(lr),F0=function(e){Ar(n,e);var t=Fr(n);function n(r){Er(this,n);var u;u=t.call(this,r);var i=r.isHide?!1:r.required;return i&&u.push({type:"string",required:i,message:r.requiredMessage!==""?r.requiredMessage:_e.getMessage("runtimeRequired",{caption:r.caption})}),u}return n}(Pu),wr=function(e){Ar(n,e);var t=Fr(n);function n(r){Er(this,n);var u;u=t.call(this,r),oe(fe(u),"caption",void 0),oe(fe(u),"isHideCaption",void 0),oe(fe(u),"isShowCaptionTip",void 0),oe(fe(u),"captionTip",void 0),oe(fe(u),"labelPosition",void 0),oe(fe(u),"dataBind",void 0),oe(fe(u),"defaultValue",void 0),oe(fe(u),"placeholder",void 0),oe(fe(u),"defaultState",void 0),oe(fe(u),"required",void 0),oe(fe(u),"requiredMessage",void 0);var i;u.caption=(i=r==null?void 0:r.caption)!==null&&i!==void 0?i:"";var o;u.isHideCaption=(o=r==null?void 0:r.isHideCaption)!==null&&o!==void 0?o:!1;var s;u.isShowCaptionTip=(s=r==null?void 0:r.isShowCaptionTip)!==null&&s!==void 0?s:!1;var l;u.captionTip=(l=r==null?void 0:r.captionTip)!==null&&l!==void 0?l:"";var f;u.defaultState=(f=r==null?void 0:r.defaultState)!==null&&f!==void 0?f:"default";var c;u.labelPosition=(c=r==null?void 0:r.labelPosition)!==null&&c!==void 0?c:"top";var a;u.placeholder=(a=r==null?void 0:r.placeholder)!==null&&a!==void 0?a:"";var h;u.required=(h=r==null?void 0:r.required)!==null&&h!==void 0?h:!1;var d;u.requiredMessage=(d=r==null?void 0:r.requiredMessage)!==null&&d!==void 0?d:"",u.dataBind=new nr(r==null?void 0:r.dataBind);var D;return u.defaultValue=(D=r==null?void 0:r.defaultValue)!==null&&D!==void 0?D:"",u}return n}(Xe);oe(wr,"Rules",C0),oe(wr,"RuntimeRules",F0);function br(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pn(e){return pn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pn(e)}function b0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Br(e,t)}function B0(e,t){return t&&(_0(t)==="object"||typeof t=="function")?t:br(e)}function Br(e,t){return Br=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Br(e,t)}function _0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function S0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function M0(e){var t=S0();return function(){var r=pn(e),u;if(t){var i=pn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return B0(this,u)}}var Yu=function(e){b0(n,e);var t=M0(n);function n(r){w0(this,n);var u;return u=t.call(this,r),dn(br(u),"controlType","form"),dn(br(u),"props",void 0),u.props=new wr(r==null?void 0:r.props),u}return n}(Ae);dn(Yu,"controlEventKeys",["on_change","on_focus","on_blur"]),dn(Yu,"controlCustomAttributes",void 0);function I0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dn(e){return Dn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Dn(e)}function x0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_r(e,t)}function O0(e,t){return t&&(R0(t)==="object"||typeof t=="function")?t:I0(e)}function _r(e,t){return _r=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},_r(e,t)}function R0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function P0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function $0(e){var t=P0();return function(){var r=Dn(e),u;if(t){var i=Dn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return O0(this,u)}}var T0=function(e){x0(n,e);var t=$0(n);function n(r){return N0(this,n),t.call(this,r)}return n}(Xe);function Sr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j0(e){if(Array.isArray(e))return Sr(e)}function vt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ei(e,t,n,r,u,i,o){try{var s=e[i](o),l=s.value}catch(f){n(f);return}s.done?t(l):Promise.resolve(l).then(r,u)}function L0(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(l){ei(i,r,u,o,s,"next",l)}function s(l){ei(i,r,u,o,s,"throw",l)}o(void 0)})}}function k0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ti(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q0(e,t,n){return t&&ti(e.prototype,t),n&&ti(e,n),e}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ft(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?Ft=Reflect.get:Ft=function(u,i,o){var s=X0(u,i);if(!!s){var l=Object.getOwnPropertyDescriptor(s,i);return l.get?l.get.call(o||u):l.value}},Ft(e,t,n||e)}function st(e){return st=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},st(e)}function V0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mr(e,t)}function U0(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function H0(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function z0(){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 W0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){at(e,u,n[u])})}return e}function Z0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function J0(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z0(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function G0(e,t){return t&&(K0(t)==="object"||typeof t=="function")?t:vt(e)}function Mr(e,t){return Mr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Mr(e,t)}function X0(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=st(e),e!==null););return e}function ni(e){return j0(e)||H0(e)||Q0(e)||z0()}function K0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Q0(e,t){if(!!e){if(typeof e=="string")return Sr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sr(e,t)}}function Y0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function eh(e){var t=Y0();return function(){var r=st(e),u;if(t){var i=st(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return G0(this,u)}}function th(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(f){return function(c){return l([f,c])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(c){f=[6,c],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var nh=1e4,ri=function(t){V0(r,t);var n=eh(r);function r(u){k0(this,r);var i;i=n.call(this,u),at(vt(i),"controlType","layout"),at(vt(i),"children",void 0),at(vt(i),"excludes",void 0),at(vt(i),"childrenMaxLength",void 0),at(vt(i),"props",void 0);var o=U0(this,r)?this.constructor:void 0,s=o.excludes,l=o.childrenMaxLength;return i.props=new T0(u==null?void 0:u.props),tr(vt(i),"children",u==null?void 0:u.children,void 0,"Designer"),i.excludes=re(s),i.childrenMaxLength=l,i}return q0(r,[{key:"judgeExcludesChildren",value:function(i){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(i)}},{key:"judgeJoinChildren",value:function(i){var o=this.judgeExcludesChildren(i);return o&&this.childrenMaxLength>this.children.length}},{key:"validate",value:function(i,o){var s=this,l=this,f=function(){return Ft(st(r.prototype),"validate",s)};return L0(function(){return th(this,function(c){switch(c.label){case 0:return[4,f().call(l,i,o)];case 1:return c.sent(),[4,Promise.all(l.children.map(function(a){return a.validate(i,o)}))];case 2:return c.sent(),[2,!0]}})})()}},{key:"toDataBindModel",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,o=Ft(st(r.prototype),"toDataBindModel",this).call(this),s=o?[o]:[];return this.children.reduce(function(l,f){var c=f.toDataBindModel(i);if(Array.isArray(c)){var a=c.filter(function(h){return!!h});return ni(l).concat(ni(a))}return c&&l.push(c),l},s)}},{key:"toSchema",value:function(){var i=Ft(st(r.prototype),"toSchema",this).call(this),o=this.children.map(function(s){var l=s.toSchema();return l});return J0(W0({},i),{children:o})}}]),r}(Ae);at(ri,"excludes",!1),at(ri,"childrenMaxLength",nh);function Ke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gn(e){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gn(e)}function uh(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ir(e,t)}function ih(e,t){return t&&(oh(t)==="object"||typeof t=="function")?t:Ke(e)}function Ir(e,t){return Ir=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Ir(e,t)}function oh(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function ah(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function sh(e){var t=ah();return function(){var r=gn(e),u;if(t){var i=gn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return ih(this,u)}}var ch=function(e){uh(n,e);var t=sh(n);function n(r,u,i){rh(this,n);var o;o=t.call(this,u),wt(Ke(o),"headers",void 0),wt(Ke(o),"footers",void 0),wt(Ke(o),"pageIndex",void 0),wt(Ke(o),"pageSize",void 0),wt(Ke(o),"pageSizeOptions",void 0),wt(Ke(o),"totalCount",void 0),tr(Ke(o),"headers",u==null?void 0:u.headers,r,i),tr(Ke(o),"footers",u==null?void 0:u.footers,r);var s;o.pageIndex=(s=u==null?void 0:u.pageIndex)!==null&&s!==void 0?s:1;var l;o.pageSize=(l=u==null?void 0:u.pageSize)!==null&&l!==void 0?l:20;var f;o.pageSizeOptions=(f=u==null?void 0:u.pageSizeOptions)!==null&&f!==void 0?f:[20];var c;return o.totalCount=(c=u==null?void 0:u.totalCount)!==null&&c!==void 0?c:0,o}return n}(Xe);function Nr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lh(e){if(Array.isArray(e))return Nr(e)}function vn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ui(e,t,n,r,u,i,o){try{var s=e[i](o),l=s.value}catch(f){n(f);return}s.done?t(l):Promise.resolve(l).then(r,u)}function fh(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(l){ui(i,r,u,o,s,"next",l)}function s(l){ui(i,r,u,o,s,"throw",l)}o(void 0)})}}function hh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ii(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dh(e,t,n){return t&&ii(e.prototype,t),n&&ii(e,n),e}function mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?bt=Reflect.get:bt=function(u,i,o){var s=yh(u,i);if(!!s){var l=Object.getOwnPropertyDescriptor(s,i);return l.get?l.get.call(o||u):l.value}},bt(e,t,n||e)}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ct(e)}function ph(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xr(e,t)}function Dh(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gh(){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 oi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){mn(e,u,n[u])})}return e}function vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function ai(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vh(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function mh(e,t){return t&&(Eh(t)==="object"||typeof t=="function")?t:vn(e)}function xr(e,t){return xr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},xr(e,t)}function yh(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=ct(e),e!==null););return e}function si(e){return lh(e)||Dh(e)||Ah(e)||gh()}function Eh(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Ah(e,t){if(!!e){if(typeof e=="string")return Nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nr(e,t)}}function Ch(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Fh(e){var t=Ch();return function(){var r=ct(e),u;if(t){var i=ct(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return mh(this,u)}}function wh(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(f){return function(c){return l([f,c])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(c){f=[6,c],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var bh=function(e){ph(n,e);var t=Fh(n);function n(r){hh(this,n);var u;return u=t.call(this,r),mn(vn(u),"controlType","list"),mn(vn(u),"props",void 0),u.props=new ch(vn(u),r==null?void 0:r.props,"Designer"),u}return dh(n,[{key:"validate",value:function(u,i){var o=this,s=this,l=function(){return bt(ct(n.prototype),"validate",o)};return fh(function(){return wh(this,function(f){switch(f.label){case 0:return[4,l().call(s,u)];case 1:return f.sent(),[4,Promise.all(s.props.headers.map(function(c){return c.validate(u,i)}))];case 2:return f.sent(),[2,!0]}})})()}},{key:"toDataBindModel",value:function(){var u=bt(ct(n.prototype),"toDataBindModel",this).call(this),i=u?[u]:[],o=this.id;return this.props.headers.reduce(function(s,l){var f=l.toDataBindModel(o);if(Array.isArray(f)){var c=f.filter(function(a){return!!a});return si(s).concat(si(c))}return f&&s.push(f),s},i)}},{key:"toSchema",value:function(){var u,i,o=bt(ct(n.prototype),"toSchema",this).call(this),s=this.props.headers.map(function(f){return f.toSchema()}),l=(i=this.props)===null||i===void 0||(u=i.footers)===null||u===void 0?void 0:u.map(function(f){if(f)return f.toSchema()});return ai(oi({},o),{props:ai(oi({},this.props),{headers:s,footers:l})})}}]),n}(Ae);mn(bh,"controlFieldType",ue.LIST);function Ie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ci(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yn(e){return yn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yn(e)}function li(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Or(e,t)}function Bh(e,t){return t&&(_h(t)==="object"||typeof t=="function")?t:Ie(e)}function Or(e,t){return Or=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Or(e,t)}function _h(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Sh(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function fi(e){var t=Sh();return function(){var r=yn(e),u;if(t){var i=yn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Bh(this,u)}}var Mh=function(e){li(n,e);var t=fi(n);function n(r){ci(this,n);var u;return u=t.call(this,r),Ne(Ie(u),"caption",{type:"string",required:!0,message:_e.getMessage("pleaseEnterCaption")}),Ne(Ie(u),"width",{type:"number",required:!1,message:_e.getMessage("pleaseEnterColumnWidth")}),u.width.required=r.widthType==="px",u}return n}(lr),Ih=function(e){li(n,e);var t=fi(n);function n(r){ci(this,n);var u;u=t.call(this,r),Ne(Ie(u),"widthType",void 0),Ne(Ie(u),"width",void 0),Ne(Ie(u),"caption",void 0),Ne(Ie(u),"dataBind",void 0),Ne(Ie(u),"autoWidth",void 0),Ne(Ie(u),"fixed",void 0),Ne(Ie(u),"sort",void 0),Ne(Ie(u),"align",void 0),Ne(Ie(u),"colSpan",void 0),Ne(Ie(u),"autoHeight",void 0);var i;u.width=(i=r==null?void 0:r.width)!==null&&i!==void 0?i:150,u.widthType=(r==null?void 0:r.widthType)||"auto";var o;u.caption=(o=r==null?void 0:r.caption)!==null&&o!==void 0?o:"";var s;u.fixed=(s=r==null?void 0:r.fixed)!==null&&s!==void 0?s:"none",u.autoWidth=new wf(r==null?void 0:r.autoWidth),u.dataBind=new nr(r==null?void 0:r.dataBind);var l;u.sort=(l=r==null?void 0:r.sort)!==null&&l!==void 0?l:!0,u.align=r==null?void 0:r.align,u.colSpan=r==null?void 0:r.colSpan;var f;return u.autoHeight=(f=r==null?void 0:r.autoHeight)!==null&&f!==void 0?f:!1,u}return n}(Xe);Ne(Ih,"Rules",Mh);function En(e){return e.controlType===G.LAYOUT||e.controlType===G.WRAP||e.controlType===G.LIST||e.controlType===G.SEARCH}function Bt(e,t){Array.isArray(e)&&e.map(n=>{n.type===ce.SUBTABLE?t(n,[]):En(n)?Bt(n==null?void 0:n.children,t):n.controlType===G.FORM&&t(n)})}function _t(e,t){Array.isArray(e)&&e.map(n=>{n.type===ce.DATA_VIEW||n.type===ce.SIMPLE_SEARCH?t(n):En(n)&&_t(n==null?void 0:n.children,t)})}let hi=0;function Rr(e=""){const t=Date.now(),n=Math.floor(Math.random()*1e9);return hi++,e+"_"+n+hi+String(t)}class Oe extends Ut{constructor(t){super("Runtime"),this._flatInstances=[],this._instanceMap={},this._controlParentIdMap={};const{schema:n}=t;this._schema=n,this._instance=this.createControl(n,t.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const t=[],n={},r={};return An(this._instance,"",(u,i)=>{i&&(r[u.id]=i),n[u.id]||(n[u.id]=[]),!(u.type==="subtable-column"&&n[u.id].length>0)&&(t.push(u),n[u.id].push(u))}),this._flatInstances=t,this._instanceMap=n,this._controlParentIdMap=r,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 t={},n={};return _t(this._instance,r=>{let u=Oe.staticGetRules(r.type,r.props);n[r.id]=re(u[0]),t[r.id]=re(u[0]),Bt(r.children,i=>{(i.controlType===G.FORM||i.controlType===G.LIST)&&(pi(n[r.id].fields,i),Di(t[r.id].fields,i))})}),{rules:n,antdRules:t}}get rules(){let t={};return _t(this._instance,n=>{let r=Oe.staticGetRules(n.type,n.props);t[n.id]=r[0],Bt(n.children,u=>{(u.controlType===G.FORM||u.controlType===G.LIST)&&pi(t[n.id].fields,u)})}),t}get antdRules(){let t={};return _t(this._instance,n=>{let r=Oe.staticGetRules(n.type,n.props);t[n.id]=r[0],Bt(n.children,u=>{(u.controlType===G.FORM||u.controlType===G.LIST)&&Di(t[n.id].fields,u)})}),t}}function An(e,t,n){(Array.isArray(e)?e:[e]).map(u=>{if(n(u,t),En(u)){const i=u;i.children||(i.children=[]),An(i.children,i.id,n)}di(u,"headers")&&An(u.props.headers,u.id,n),di(u,"footers")&&An(u.props.footers,u.id,n)})}function di(e,t){return t in e.props&&Dt(e.props[t])}function Pr(e){return e.props.isHide?!0:e.parent===null||e.parent===void 0?!1:Pr(e.parent)}function pi(e,t){if(Pr(t))return;let n=Oe.staticGetRules(t.type,t.props);if(t.controlType===G.FORM)e[t.id]=n;else if(t.type===ce.SUBTABLE){e[t.id]=n;const r={type:"array",fields:{}};t.children.forEach((u,i)=>{nt(u.children,o=>{if(r.fields){r.fields[i]||(r.fields[i]={type:"object",required:!0,fields:{}});let s=Oe.staticGetRules(o.type,o.props);r.fields[i].fields[o.id]=s}})}),e[t.id].push(r)}}function Di(e,t){if(Pr(t))return;let n=Oe.staticGetRules(t.type,t.props);t.controlType===G.FORM?e[t.id]=n:t.type===ce.SUBTABLE&&t.children.length&&(e[t.id]=[],t.children.forEach(r=>{let u={};nt(r.children,i=>{let o=Oe.staticGetRules(i.type,i.props);u[i.id]=o}),e[t.id].push(u)}))}class Nh{constructor(t){const{state:n,emptyState:r,databindMapping:u,controlidMapping:i,defaultState:o}=xh(t.instance);this.emptyState=r,this.state=n,this.dataBindMapping=u,this.controlIdMapping=i,this.defaultState=o}setState(t,n,r){const u=this.controlIdMapping[t];u!==void 0?this.state[u.dataView][t]=n:r!==void 0?Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,s=this.controlIdMapping[i].children;s!==void 0&&Object.keys(s).map(l=>{l===t&&this.state[o][i][r]&&(this.state[o][i][r][t]=n)})}):this.state[t]=n}getState(t,n){if(this.state[t]!==void 0)return this.state[t];{const u=this.controlIdMapping[t];if(u!==void 0)return this.state[u.dataView][t];if(n!==void 0){let i;return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,l=this.controlIdMapping[o].children;l!==void 0&&Object.keys(l).map(f=>{var c;f===t&&(i=(c=this.state[s][o][n])==null?void 0:c[t])})}),i}else{let i=[];return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,l=this.controlIdMapping[o].children;l!==void 0&&Object.keys(l).map(f=>{f===t&&this.state[s][o].map(c=>{i.push(c[t])})})}),i}}}getEmptyState(t){if(this.emptyState[t]!==void 0)return this.emptyState[t];{const r=this.controlIdMapping[t];if(r!==void 0){const u=this.emptyState[r.dataView][t];return"children"in r&&Object.assign(u,{uid:"new:"+Rr("uid")}),u}else{let u;return Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,s=this.controlIdMapping[i].children;s!==void 0&&Object.keys(s).map(l=>{l===t&&(u=this.emptyState[o][i][t])})}),u}}}getDataBind(t){let n=this.controlIdMapping[t];if(n)return n.dataBind;e:for(let r in this.controlIdMapping){const u=this.controlIdMapping[r];if(u.children){for(let i in u.children)if(i===t){n=u.children[i];break e}}}return n==null?void 0:n.dataBind}}function xh(e){let t={},n={},r={},u={},i={};return _t(e,o=>{const s=o.id,l={},f={};Bt([o],(c,a)=>{Oh(l,f,c),Rh(r,s,c),Ph(u,s,c)}),t[s]={},i[s]=l,n[s]=f}),{state:t,defaultState:i,emptyState:n,databindMapping:r,controlidMapping:u}}function Oh(e,t,n){var r,u;if(n.controlType===G.FORM)e[n.id]=re(n.props.defaultValue),t[n.id]=re(n.props.defaultValue);else{const i={};nt(n.props.headers,o=>{i[o.id]=re(o.props.defaultValue)}),e[n.id]=(u=new Array((r=n.props.defaultRows)!=null?r:1).fill(0).map(()=>ie({uid:"new:"+Rr("uid")},re(i))))!=null?u:[],t[n.id]=i}}function Rh(e,t,n){var r,u;if(n.controlType===G.FORM)je(n.props.dataBind)?((u=(r=n.props)==null?void 0:r.dataBind)==null?void 0:u.dataCode)===void 0||(e[n.props.dataBind.dataCode]===void 0&&(e[n.props.dataBind.dataCode]={controlId:t,fields:[],dataViewId:t}),e[n.props.dataBind.dataCode].fields.push({fieldCode:n.props.dataBind.fieldCode,controlId:n.id,dataBind:n.props.dataBind,dataViewId:[t]})):Object.keys(n.props.dataBind).map(i=>{const o=n.props.dataBind,s=o[i].dataCode;s!==void 0&&(e[s]===void 0&&(e[s]={controlId:n.id,fields:[],dataViewId:t}),e[s].fields.push({fieldCode:o[i].fieldCode,controlId:n.id,dataBind:o,dataViewId:[t]}))});else{if(n.props.datasourceBind.dataCode===""){tt(`datasourceBind.dataCode is empty! maybe in preview mode, control:${n.id} type:${n.type}`);return}e[n.props.datasourceBind.dataCode]={controlId:n.id,fields:[],dataViewId:t};const i=n.id;nt(n.props.headers,o=>{je(o.props.dataBind)?e[o.props.dataBind.dataCode].fields.push({fieldCode:o.props.dataBind.fieldCode,controlId:o.id,dataBind:o.props.dataBind,dataViewId:[t,i]}):Object.keys(o.props.dataBind).map(s=>{const l=o.props.dataBind,f=l[s].dataCode;e[f].fields.push({fieldCode:l[s].fieldCode,controlId:o.id,dataBind:l,dataViewId:[t,i]})})})}}function Ph(e,t,n){n.controlType===G.FORM?e[n.id]={dataBind:n.props.dataBind,options:[],dataView:t}:n.type===ce.SUBTABLE&&(e[n.id]={dataBind:new nr({dataCode:n.props.datasourceBind.dataCode,fieldCode:""}),dataView:t,children:{},options:[]},nt(n.props.headers,r=>{var u,i;Object.assign((i=(u=e[n.id])==null?void 0:u.children)!=null?i:{},{[r.id]:{dataBind:r.props.dataBind}})}))}const gi=["splice","push","shift","pop","unshift","reverse"],$r=Symbol("__engineProxy__"),Tr=Symbol("__engineTarget__"),vi=Symbol("__engineArrayBeforeSetCallbackFlag__"),mi=Symbol("__engineProxyThisKey__"),Le={type:"",args:[],callback:yi};function yi(){}kh();function $h(e,t,n,r,u){if(Le.type){Le.callback=u.bind(null,e,r);return}const i=Number(t);if(i>e.length){Ge(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${gi.join(",")} for array operations`);return}if(!(Number.isNaN(i)&&t!=="length"))if(t==="length"){const s=n,l=e.length;if(s>e.length){Ge("Do not directly modify the length of the array data, please add new rows");return}return s===e.length?void 0:()=>u.call(null,e,r,"splice",[s,l-s])}else return i===e.length?()=>u.call(null,e,r,"push",[n]):()=>u.call(null,e,r,"splice",[i,1,n])}function Th(e,t,n){return{__engineProxy__:!0,get(r,u,i){return u===$r?!0:u===Tr?r:Array.isArray(r)&&u===vi?n:u===mi?e:Reflect.get(r,u,i)},set(r,u,i,o){var h;let s=i;const l=r[u],f=e===""?u:e+"."+u;function c(d){if(typeof d=="object"&&d!==null)return d[$r]!==!0?Cn(d,t,n,f):Cn(d[Tr],t,n,f)}s=(h=c(i))!=null?h:s;let a;if(Array.isArray(r)){const d=$h(r,u,i,e,t);a=Reflect.set(r,u,s,o),d&&d()}else{try{let d=s;if(s=n.call(null,r,f,s,l),d!==s){const D=c(s);D!==void 0&&(s=D)}}catch(d){return on(`${f} set error ${d}`),!0}a=Reflect.set(r,u,s,o),t.call(null,r,f,i,l)}return a||!0}}}function Cn(e,t,n,r=""){if(Object.isFrozen(e))return e;for(let u in e){const i=r===""?u:r+"."+u,o=e[u];typeof o=="object"&&o!==null&&(e[u]=Cn(o,t,n,i))}return new Proxy(e,Th(r,t,n))}function Ei(e){const t=[];return e.forEach(n=>{t.push(n),(n.controlType==="layout"||n.controlType==="wrap")&&t.push(...Ei(n.children))}),t}function jr(e,t,n){if(t==="")return;const r=t.split(".");if(r.length===0)return;const u=r[0],i=r.slice(1),o=n[u]?n[u][0]:void 0;return i.length===0?o:i.reduce((s,l)=>{var a,h;const f=Number(l);if(Number.isNaN(f)&&s){const d=s!=null&&s.children?Ei(s.children):void 0,D=d==null?void 0:d.find(g=>g.id===l);return D||(s.controlType===G.FORM?s:void 0)}else return(h=(a=s==null?void 0:s.children)==null?void 0:a[f])!=null?h:s},o)}function jh(e,t){return["push","unshift"].includes(e)?t:e==="splice"?t.slice(2):[]}function Lh(e,t,n){if(["push","unshift"].includes(e))return n;if(e==="splice")return t.slice(0,2).concat(n)}function kh(){gi.forEach(e=>{const t=Array.prototype[e];Array.prototype[e]=function(...n){var r;if(this[$r]){let u;const i=jh(e,n);if(i.length){const o=(r=this[vi])==null?void 0:r.call(this,this[Tr],this[mi],i),s=Lh(e,n,o);Le.type=e,Le.args=s,u=t.apply(this,s)}else Le.type=e,Le.args=n,u=t.apply(this,n);return typeof Le.callback=="function"&&Le.callback(e,n,u),Le.type="",Le.args=[],Le.callback=yi,u}else return t.apply(this,n)}})}class qh{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(t,n,...r){return Ze(this,null,function*(){const u=this.actionMap.get(t);if(!!u)try{return yield u.func.call(null,n,...r)}catch(i){on(`${u.id} Exception during calling action: ${i}`)}})}addAction(t,n){this.actionMap.has(t)&&Ge("duplicated action key");const r=new Vh(t,n);this.actionMap.set(t,r)}}class Vh{constructor(t,n){this.id="",this.id=t,this.func=n}}class Uh{constructor(t){this._dataStore=new Map,this.executer=t}add(t,n){this._dataStore.set(t,n)}get(t){let n=this._dataStore.get(t);return re(n)}remove(t){this._dataStore.delete(t)}getRemoteData(t){return Ze(this,null,function*(){return this.executer===void 0?(on("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(t)})}}class lt{}class Gt extends lt{validate(t){return Ee(t)}transform(t){if(t==null)return"";if(!Te(t)&&!vu(t))return String(t);if(ef(t))return JSON.stringify(t);throw`${t} is not a string`}}class Lr extends lt{validate(t){return an(t)||t===""}transform(t){if(t==null)return"";const n=!Te(t)&&!vu(t)?Number(t):void 0;if(!Number.isNaN(n)&&n!==void 0)return n;throw`${t} is not a number`}}class Hh extends lt{validate(t){return tf(t)}transform(t){if(t==null)return[];function n(r){return r.map(u=>u?String(u):"")}if(Dt(t))return n(t);if(Ee(t)&&mu(t))try{const r=JSON.parse(t);if(Array.isArray(r))return n(r)}catch(r){}return[String(t)]}}class zh extends lt{validate(t){return nf(t)}transform(t){if(t==null)return[];function n(u){return u.map(i=>!i&&i!==0?"":Number(i)).filter(i=>i===""||!Number.isNaN(i))}if(Dt(t))return n(t);if(Ee(t)&&mu(t))try{const u=JSON.parse(t);if(Dt(u))return n(u)}catch(u){}const r=Number(t);if(Number.isNaN(r))throw`${t} is not a number array`;return[r]}}class Wh extends lt{validate(t){return Te(t)&&"amount"in t&&an(t.amount)&&"currency"in t&&Ee(t.currency)}transform(t,n){if(t==null||t==="")return new rr({currency:n==null?void 0:n.currency});let r;if(Te(t)&&(r=new rr(ie(ie({},n),t))),Ee(t)&&sn(t))try{const u=JSON.parse(t);r=new rr(ie(ie({},n),u))}catch(u){}if(r){const u=new Lr,i=new Gt;return u.validate(r.amount)||(r.amount=u.transform(r.amount)),i.validate(r.currency)||(r.currency=i.transform(r.currency)),r}throw`${t} is not a { amount: number, currency: string } object`}}class Zh extends lt{validate(t){return Te(t)&&"min"in t&&Ee(t.min)&&"max"in t&&Ee(t.max)}transform(t,n){if(t==null||t==="")return new ur;let r;if(Te(t)&&(r=new ur(ie(ie({},n),t))),Ee(t)&&sn(t))try{const u=JSON.parse(t);r=new ur(ie(ie({},n),u))}catch(u){}if(r){const u=new Gt;return u.validate(r.min)||(r.min=u.transform(r.min)),u.validate(r.max)||(r.max=u.transform(r.max)),r}throw`${t} is not a { min: string, max: string } object`}}class Jh extends lt{validate(t){return Te(t)&&"result"in t&&an(t.result)&&"unit"in t&&Ee(t.unit)}transform(t,n){if(t==null||t==="")return new or({unit:n==null?void 0:n.unit});let r;if(Te(t)&&(r=new or(ie(ie({},n),t))),Ee(t)&&sn(t))try{const u=JSON.parse(t);r=new or(ie(ie({},n),u))}catch(u){}if(r){const u=new Lr,i=new Gt;return u.validate(r.result)||(r.result=u.transform(r.result)),i.validate(r.unit)||(r.unit=i.transform(r.unit)),r}throw`${t} is not a { result: string, unit: string } object`}}class Gh extends lt{validate(t){return!!Te(t)}transform(t,n){if(t==null||t==="")return new ir;let r;if(Te(t)&&(r=new ir(ie(ie({},n),Gn.exports.camelizeKeys(t)))),Ee(t)&&sn(t))try{const u=JSON.parse(t);r=new ir(ie(ie({},n),Gn.exports.camelizeKeys(u)))}catch(u){}if(r){const u=new Gt;return u.validate(r.city)||(r.city=u.transform(r.city)),u.validate(r.district)||(r.district=u.transform(r.district)),u.validate(r.province)||(r.province=u.transform(r.province)),r}throw`${t} is not a { city: string, district: string, province: string } object`}}class Xh{static getValueChecker(t){let n;switch(t){case ue.VARCHAR:case ue.TIMESTAMP:case ue.TEXT:case ue.RELATION:case ue.AUTO_NUMBER:n=new Gt;break;case ue.DECIMAL:n=new Lr;break;case ue.EMPLOYEES:case ue.DEPARTMENTS:case ue.IMAGE:case ue.FILE:case ue.ARRAY:n=new Hh;break;case ue.MONEY:n=new Wh;break;case ue.TIMESCOPE:n=new Zh;break;case ue.CALC:n=new Jh;break;case ue.DECIMAL_RANGE:n=new zh;break;case ue.ADDRESS:n=new Gh;break}return n}}function Kh(e){if(["min","max","currency","unit"].includes(e))return ue.VARCHAR;if(["result","amount"].includes(e))return ue.DECIMAL}function Ai(e,t,n,r){var o;let u=(o=Kh(t))!=null?o:e,i=Xh.getValueChecker(u);if(!i||i.validate(n))return n;try{const s=i.transform(n,r);return s!==void 0?s:n}catch(s){throw`${t} ${s}`}}function Qh(e,t,n){return Object.entries(e).reduce((r,[u,i])=>{const o=t[u];return r[u]=Ai(i,u,o,n[u]),r},Object.assign({},t))}typeof window!="undefined"&&(window.engines={});let St=null,Xt="";class kr extends Cu{constructor(t){super(),this.rawStore={},this.isMounted=!1,this.id=rn(8),this.__pluginsApplied=!1,this.actionManager=new qh,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(t);const{autoMount:n=!0,schema:r,beforeCreateInstance:u,externalParams:i,language:o=uu,debug:s=!1}=this.$options;_e.setLocale(o),this.debug=s,this.runtime=new Oe({schema:r,beforeCreateInstance:u}),this.externalParams=i,this.store=new Nh({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),n&&this.mount()}debugLog(...t){this.debug&&Wn(...t)}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}registerControl(...t){return this.runtime.register(...t),this}static register(t){return Oe.register(t,"Runtime")}static judgeControlIsRegistered(t){return Oe.staticRegisteredTypes.has(t.Runtime.controlType)}mount(){this.debugLog("engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528");const{plugins:t=[]}=this.$options;this._handlerProxyState(),this.__plugins=t,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=Cn(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(t,n,r,u){const i=jr(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return r;if(this.assertInstance(i,ce.SUBTABLE)){if(r===null)return[];const l=i.props.headers.reduce((c,a)=>{const h=a.children[0];return h&&h.controlType===G.FORM&&(c[h.id]=h.fieldType),c},{}),f=this.getEmptyState(i.id);return r==null?void 0:r.map(c=>Qh(l,c,f))}const o=n.split("."),s=o[o.length-1];try{return Ai(i.fieldType,s,r,u)}catch(l){throw tt(`the id=${i.id}'s instance setState error, %o ${l}.`,r),l}}_proxyStateCallback(t,n,r,u,i){Array.isArray(t)?this._handlerArrayUpdate(t,n,r,u,i):this._handlerObjectUpdate(t,n,r,u)}_handlerArrayUpdate(t,n,r,u,i){const o=jr(this.runtime.flatInstances,n,this.runtime.instanceMap);if((o==null?void 0:o.controlType)!==G.LIST)return;const s=d=>{const D=[];for(let g=0;g<d;g++){const A=this.listControlCreateRow(o,"subtable-row");A&&D.push(A)}return D},l=St;let f=[],c=[],a=[],h=!1;if(r&&u){switch(r){case"push":case"unshift":const d=u.length;f=s(d),c=u,o.children[r](...f),this.runtime.getFlatInstances();break;case"splice":if(u.length>2){const D=u.length-2,g=u.slice(2);f=s(D),c=g;const A=u[0],p=u[1];o.children[r](A,p,...f),this.runtime.getFlatInstances()}else{const D=u[0],g=u[1];D+g===o.children.length-1&&(h=!0),o.children[r](...u),this.runtime.getFlatInstances()}break;default:o.children[r](...u),this.runtime.getFlatInstances();break}r==="splice"?a=i:["pop","shift"].includes(r)&&(a=[i]),this.emit("list-change",{instance:o,value:this.getState(o.id),options:Object.assign({},l,{changed:f,data:c,deleted:a!=null?a:[],jsonValue:JSON.stringify(this.getState(o.id)),isDeleteLastOne:h,type:r,args:u})}),St=null}}_handlerObjectUpdate(t,n,r,u){const i=jr(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return;const o=this.getInstanceRowIndex(i),s=St||{};if(i.controlType===G.LIST){i.children.length=0;const l=r;let f=[];for(let a=0;a<l.length;a++){const h=this.listControlCreateRow(i,"subtable-row");h&&f.push(h)}i.children.push(...f),this.runtime.getFlatInstances();let c=u!=null?u:[];(s==null?void 0:s.setData)===!0&&(c=[]),this.emit("list-change",{instance:i,value:r,options:ru(ie({},s),{changed:f,data:l,deleted:c,type:"push"})})}else this.emit("change",{instance:i,value:this.getState(i.id,o),rowIndex:o,options:ru(ie({},s),{oldValue:u})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{Xt=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this)}catch(r){Ge(`${Xt} Plugin apply Error
1
+ var $1=Object.defineProperty,T1=Object.defineProperties;var j1=Object.getOwnPropertyDescriptors;var Ro=Object.getOwnPropertySymbols,L1=Object.getPrototypeOf,k1=Object.prototype.hasOwnProperty,q1=Object.prototype.propertyIsEnumerable,V1=Reflect.get;var Ln=Math.pow,Po=(z,ne,se)=>ne in z?$1(z,ne,{enumerable:!0,configurable:!0,writable:!0,value:se}):z[ne]=se,ie=(z,ne)=>{for(var se in ne||(ne={}))k1.call(ne,se)&&Po(z,se,ne[se]);if(Ro)for(var se of Ro(ne))q1.call(ne,se)&&Po(z,se,ne[se]);return z},ru=(z,ne)=>T1(z,j1(ne));var $o=(z,ne,se)=>V1(L1(z),se,ne);var Ze=(z,ne,se)=>new Promise((kn,nn)=>{var qn=Je=>{try{Lt(se.next(Je))}catch(kt){nn(kt)}},Vn=Je=>{try{Lt(se.throw(Je))}catch(kt){nn(kt)}},Lt=Je=>Je.done?kn(Je.value):Promise.resolve(Je.value).then(qn,Vn);Lt((se=se.apply(z,ne)).next())});(function(z,ne){typeof exports=="object"&&typeof module!="undefined"?ne(exports,require("crypto")):typeof define=="function"&&define.amd?define(["exports","crypto"],ne):(z=typeof globalThis!="undefined"?globalThis:z||self,ne(z.modelDrivenEngine={},z.require$$0))})(this,function(z,ne){"use strict";function se(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var kn=se(ne),nn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",qn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Vn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Lt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Je="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",kt="{caption}\u5FC5\u586B",To="\u8BF7\u8F93\u5165\u6807\u9898",jo="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Lo="\u8BF7\u8F93\u5165\u884C\u6807\u9898",ko="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",qo="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",Vo="\u8BF7\u7ED1\u5B9A\u8868\u5355",Uo="\u8BF7\u7ED1\u5B9A\u5217\u8868",Ho="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",zo="\u8BF7\u8F93\u5165\u663E\u793A\u503C",Wo="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Zo="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Jo="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",Go="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Xo="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Ko="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Qo="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Yo="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",ea="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",ta="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",na="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",ra="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",ua="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",ia="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",oa="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",aa="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",sa="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",ca="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",la="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",fa="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",ha="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",da="\u8BF7\u7ED1\u5B9A\u670D\u52A1",pa="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Da="\u8BF7\u9009\u62E9\u7701",ga="\u8BF7\u9009\u62E9\u5E02",va="\u8BF7\u9009\u62E9\u533A",ma="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",ya="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Ea="\u8BF7\u8F93\u5165\u5217\u5BBD",Aa="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Ca="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Fa="\u8BF7\u9009\u62E9\u63A7\u4EF6",wa="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",ba="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Ba="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",_a="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Sa="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ma="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Ia="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Na="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",xa="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Oa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ra="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Pa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",$a="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Ta="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ja="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",La="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ka="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",qa="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Va="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Ua="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Ha="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",za="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",Wa="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",Za="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",Ja="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",Ga="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",Xa="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",Ka={isNotNumber:nn,isNotString:qn,isNotObject:Vn,isNotArray:Lt,isNotBoolean:Je,runtimeRequired:kt,pleaseEnterCaption:To,pleaseEnterCaptionTip:jo,pleaseEnterRowCaption:Lo,pleaseEnterPlaceholder:ko,pleaseEnterFieldCode:qo,pleaseEnterForm:Vo,pleaseEnterList:Uo,pleaseEnterProcess:Ho,pleaseEnterLabel:zo,pleaseEnterValue:Wo,bizKeyNotBindFiled:Zo,pleaseSelectOneField:Jo,pleaseEnterNumberRange:Go,pleaseEnterAValueGreaterThanMin:Xo,pleaseEnterAValueLessThanMax:Ko,numberRangeSetError:Qo,stringRangeError:Yo,attachmentMaxSize:ea,pleaseEnterTotalScoreSetting:ta,theTotalScoreMustNotBeLessThan1:na,scoreDefaultValueRange:ra,attachmentLimitError:ua,PleaseReselectTheOptionalQuantity:ia,TheMaximumLengthIsGreaterThanTheMinimumLength:oa,TheMinimumLengthIsGreaterThanTheMaximumLength:aa,PleaseSelectTheCorrectOptionSettings:sa,optionIdIsRepeat:ca,optionIsRequired:la,pleaseEnterDataCode:fa,pleaseEnterValueFieldCode:ha,pleaseEnterSvcCode:da,pleaseBindAtLeastOneDisplayValue:pa,pleaseSelectProvince:Da,pleaseSelectCity:ga,pleaseSelectDistrict:va,limitRowsCannotBeLessThan0:ma,TheNumberOfRowsCannotBeLessThanMinRows:ya,pleaseEnterColumnWidth:Ea,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Aa,pleaseCompleteAllRulesAndConditions:Ca,pleaseSelectControl:Fa,pleaseSelectAtLeastOneColumn:wa,pleaseSelectFillBackMode:ba,pleaseSelectDashboard:Ba,rootNodeIsRequired:_a,theViewNameCannotBeEmpty:Sa,pleaseSelectOcrType:Ma,pleaseSelectAtLeastOneFieldToFillIn:Ia,pleaseChooseAtLeastOne:Na,pleaseEnterButtonContent:xa,pleaseEnterDataCodeInDataSetting:Oa,pleaseEnterValueFieldCodeInDataSetting:Ra,pleaseEnterSvcCodeInDataSetting:Pa,pleaseBindAtLeastOneDisplayValueInDataSetting:$a,rootNodeIsRequiredInDataSetting:Ta,pleaseEnterMaxHeight:ja,pleaseEnter:La,pleaseEnterWatermark:ka,pleaseEnterFileName:qa,pleaseUploadAtLeastOnePrintTemplate:Va,pleaseAssignBusiness:Ua,pleaseAssignExternal:Ha,pleaseEnterAliasCode:za,pleaseSelectDataCode:Wa,pleaseSelectSvcCode:Za,pleaseSelectJoinFieldCode:Ja,pleaseSelectMainFieldCode:Ga,pleaseSelectSortFieldCode:Xa},Qa="Please enter a number",Ya="Please enter a string",es="Please enter an object",ts="Please enter an array",ns="Please enter a boolean",rs="{caption} Required",us="Please enter the title",is="Please enter the bubble prompt",os="Please enter the row title",as="Please enter the prompt text",ss="Please bind data items",cs="Please bind the form",ls="Please bind the list",fs="Please bind the process",hs="Please enter the displayed value",ds="Please enter the stored value",ps="The document number is not bound to the data item",Ds="Please select at least one display field",gs="Please enter a value greater than or equal to {min} and less than or equal to {max}",vs="Please enter a value greater than or equal to {min}",ms="Please enter a value less than or equal to {max}",ys="The value range is set incorrectly",Es="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",As="The attachment size must be between 0MB and 1000MB",Cs="Please fill in the total score setting",Fs="The total score cannot be less than 1",ws="The default value must be between {min} and {max}",bs="The number of attachments uploaded must be between {min} and {max}",Bs="Please re-select the optional quantity",_s="The maximum length of the control must be greater than the minimum length",Ss="The minimum length of the control must be less than the maximum length",Ms="Please select the correct option setting",Is="Option ID cannot be repeated",Ns="Please enter at least one option",xs="Please bind the data source",Os="Please bind the stored value",Rs="Please bind the service",Ps="At least one display value must be bound",$s="Please select a province",Ts="Please select a city",js="Please select a district",Ls="The minimum number of lines to fill in cannot be less than 0",ks="The number of rows cannot be less than {min} rows",qs="Please enter the column width",Vs="Please set the logical relationship of all rule conditions",Us="Please complete all rules and conditions",Hs="please select control",zs="Please select the dashboard",Ws="View name cannot be empty",Zs="Please select recognition type",Js="Please select at least one field to fill in",Gs="Please select at least one",Xs="Please enter the button title",Ks="Please bind the business model in the data settings",Qs="Please bind storage values in data settings",Ys="Please bind the service in the data settings",ec="Please bind at least one display value in the data settings",tc="Please select the root node in the data settings",nc="Please enter the maximum height",rc="The input content cannot be empty",uc="Watermark cannot be empty",ic="File name cannot be empty",oc="Please upload at least one printing template!\uFF01",ac="Please select a specific business department",sc="Please select a specified external organization",cc="Please enter a sub table alias",lc="Please select the associated table to set the business model",fc="Please select the association table to set the binding service",hc="Select associated sub table fields",dc="Please select the associated main table field",pc="Please select the sort field",Dc={isNotNumber:Qa,isNotString:Ya,isNotObject:es,isNotArray:ts,isNotBoolean:ns,runtimeRequired:rs,pleaseEnterCaption:us,pleaseEnterCaptionTip:is,pleaseEnterRowCaption:os,pleaseEnterPlaceholder:as,pleaseEnterFieldCode:ss,pleaseEnterForm:cs,pleaseEnterList:ls,pleaseEnterProcess:fs,pleaseEnterLabel:hs,pleaseEnterValue:ds,bizKeyNotBindFiled:ps,pleaseSelectOneField:Ds,pleaseEnterNumberRange:gs,pleaseEnterAValueGreaterThanMin:vs,pleaseEnterAValueLessThanMax:ms,numberRangeSetError:ys,stringRangeError:Es,attachmentMaxSize:As,pleaseEnterTotalScoreSetting:Cs,theTotalScoreMustNotBeLessThan1:Fs,scoreDefaultValueRange:ws,attachmentLimitError:bs,PleaseReselectTheOptionalQuantity:Bs,TheMaximumLengthIsGreaterThanTheMinimumLength:_s,TheMinimumLengthIsGreaterThanTheMaximumLength:Ss,PleaseSelectTheCorrectOptionSettings:Ms,optionIdIsRepeat:Is,optionIsRequired:Ns,pleaseEnterDataCode:xs,pleaseEnterValueFieldCode:Os,pleaseEnterSvcCode:Rs,pleaseBindAtLeastOneDisplayValue:Ps,pleaseSelectProvince:$s,pleaseSelectCity:Ts,pleaseSelectDistrict:js,limitRowsCannotBeLessThan0:Ls,TheNumberOfRowsCannotBeLessThanMinRows:ks,pleaseEnterColumnWidth:qs,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Vs,pleaseCompleteAllRulesAndConditions:Us,pleaseSelectControl:Hs,pleaseSelectDashboard:zs,theViewNameCannotBeEmpty:Ws,pleaseSelectOcrType:Zs,pleaseSelectAtLeastOneFieldToFillIn:Js,pleaseChooseAtLeastOne:Gs,pleaseEnterButtonContent:Xs,pleaseEnterDataCodeInDataSetting:Ks,pleaseEnterValueFieldCodeInDataSetting:Qs,pleaseEnterSvcCodeInDataSetting:Ys,pleaseBindAtLeastOneDisplayValueInDataSetting:ec,rootNodeIsRequiredInDataSetting:tc,pleaseEnterMaxHeight:nc,pleaseEnter:rc,pleaseEnterWatermark:uc,pleaseEnterFileName:ic,pleaseUploadAtLeastOnePrintTemplate:oc,pleaseAssignBusiness:ac,pleaseAssignExternal:sc,pleaseEnterAliasCode:cc,pleaseSelectDataCode:lc,pleaseSelectSvcCode:fc,pleaseSelectJoinFieldCode:hc,pleaseSelectMainFieldCode:dc,pleaseSelectSortFieldCode:pc},gc="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",vc="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",mc="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",yc="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ec="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ac="{caption}\u5FC5\u9808",Cc="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Fc="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",wc="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",bc="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Bc="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",_c="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Sc="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Mc="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ic="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Nc="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",xc="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Oc="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Rc="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Pc="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",$c="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Tc="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",jc="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Lc="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",kc="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",qc="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Vc="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Uc="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Hc="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",zc="\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",Wc="\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",Zc="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Jc="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Gc="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Xc="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Kc="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Qc="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Yc="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",el="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",tl="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",nl="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",rl="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ul="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",il="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ol="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",al="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",sl="please select control",cl="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ll="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",fl="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",hl="\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",dl="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",pl="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Dl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",gl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",vl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",ml="\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",yl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",El="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Al="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Cl="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Fl="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",wl="\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",bl="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Bl="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",_l="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Sl="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",Ml="\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",Il="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",Nl="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",xl="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ol={isNotNumber:gc,isNotString:vc,isNotObject:mc,isNotArray:yc,isNotBoolean:Ec,runtimeRequired:Ac,pleaseEnterCaption:Cc,pleaseEnterCaptionTip:Fc,pleaseEnterRowCaption:wc,pleaseEnterPlaceholder:bc,pleaseEnterFieldCode:Bc,pleaseEnterForm:_c,pleaseEnterList:Sc,pleaseEnterProcess:Mc,pleaseEnterLabel:Ic,pleaseEnterValue:Nc,bizKeyNotBindFiled:xc,pleaseSelectOneField:Oc,pleaseEnterNumberRange:Rc,pleaseEnterAValueGreaterThanMin:Pc,pleaseEnterAValueLessThanMax:$c,numberRangeSetError:Tc,stringRangeError:jc,attachmentMaxSize:Lc,pleaseEnterTotalScoreSetting:kc,theTotalScoreMustNotBeLessThan1:qc,scoreDefaultValueRange:Vc,attachmentLimitError:Uc,PleaseReselectTheOptionalQuantity:Hc,TheMaximumLengthIsGreaterThanTheMinimumLength:zc,TheMinimumLengthIsGreaterThanTheMaximumLength:Wc,PleaseSelectTheCorrectOptionSettings:Zc,optionIdIsRepeat:Jc,optionIsRequired:Gc,pleaseEnterDataCode:Xc,pleaseEnterValueFieldCode:Kc,pleaseEnterSvcCode:Qc,pleaseBindAtLeastOneDisplayValue:Yc,pleaseSelectProvince:el,pleaseSelectCity:tl,pleaseSelectDistrict:nl,limitRowsCannotBeLessThan0:rl,TheNumberOfRowsCannotBeLessThanMinRows:ul,pleaseEnterColumnWidth:il,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ol,pleaseCompleteAllRulesAndConditions:al,pleaseSelectControl:sl,pleaseSelectDashboard:cl,theViewNameCannotBeEmpty:ll,pleaseSelectOcrType:fl,pleaseSelectAtLeastOneFieldToFillIn:hl,pleaseChooseAtLeastOne:dl,pleaseEnterButtonContent:pl,pleaseEnterDataCodeInDataSetting:Dl,pleaseEnterValueFieldCodeInDataSetting:gl,pleaseEnterSvcCodeInDataSetting:vl,pleaseBindAtLeastOneDisplayValueInDataSetting:ml,rootNodeIsRequiredInDataSetting:yl,pleaseEnterMaxHeight:El,pleaseEnter:Al,pleaseEnterWatermark:Cl,pleaseEnterFileName:Fl,pleaseUploadAtLeastOnePrintTemplate:wl,pleaseAssignBusiness:bl,pleaseAssignExternal:Bl,pleaseEnterAliasCode:_l,pleaseSelectDataCode:Sl,pleaseSelectSvcCode:Ml,pleaseSelectJoinFieldCode:Il,pleaseSelectMainFieldCode:Nl,pleaseSelectSortFieldCode:xl},Rl={zhCN:Ka,enUS:Dc,jaJP:Ol},$e;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})($e||($e={}));var At;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(At||(At={}));var uu="zh-CN";function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(G||(G={}));var ce;(function(e){e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.ORGANIZATION_SELECTION="organization-selection",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.Approval_Status_Column="approval-status-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.GRID_LAYOUT_CONTAINER="grid-layout-container",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.ACTION_BAR="action-bar",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2",e.GRID_LAYOUT_WRAP="grid-layout-wrap"})(ce||(ce={}));var ue;(function(e){e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.RELATION="relation",e.LIST="list",e.RELATION_FIELD="relation-field",e.REFERENCE_FIELD="reference-field",e.CALC_FIELD="calc",e.JSON="json",e.BIGINT="bigint",e.ANY="ANY",e.ENCRYPTED_FIELD="encrypted_field"})(ue||(ue={}));var me;me={},Be(me,"array","array-column"),Be(me,"auto_number","auto-number-column"),Be(me,"decimal","decimal-column"),Be(me,"department","department-column"),Be(me,"file","file-column"),Be(me,"image","image-column"),Be(me,"location","location-column"),Be(me,"people","employee-column"),Be(me,"text","text-column"),Be(me,"timescope","timescope-column"),Be(me,"timestamp","timestamp-column"),Be(me,"varchar","varchar-column"),Be(me,"relation","varchar-column");var iu;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATEHOUR="datehour",e.DATEMIN="datemin",e.DATETIME="datetime"})(iu||(iu={}));var ou="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Pl=ou+"0123456789";function rn(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?ou:Pl,u=Math.random()*r.length;t+=r[parseInt(String(u),10)]}return t}function Un(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $l(e){if(Array.isArray(e))return Un(e)}function Tl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function au(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function un(e,t,n){return lu()?un=Reflect.construct:un=function(u,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(u,s),f=new l;return o&&Vt(f,o.prototype),f},un.apply(null,arguments)}function qt(e){return qt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qt(e)}function su(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vt(e,t)}function jl(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ll(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kl(){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 ql(e,t){return t&&(Vl(t)==="object"||typeof t=="function")?t:Tl(e)}function Vt(e,t){return Vt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Vt(e,t)}function cu(e){return $l(e)||Ll(e)||Ul(e)||kl()}function Vl(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Ul(e,t){if(!!e){if(typeof e=="string")return Un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Un(e,t)}}function Hn(e){var t=typeof Map=="function"?new Map:void 0;return Hn=function(r){if(r===null||!jl(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return un(r,arguments,qt(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Vt(u,r)},Hn(e)}function lu(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function fu(e){var t=lu();return function(){var r=qt(e),u;if(t){var i=qt(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return ql(this,u)}}var zn=console;function tt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=zn).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(cu(u)))}function Wn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=zn).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(cu(u)))}function Hl(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Zn=function(e){su(n,e);var t=fu(n);function n(r){au(this,n);var u;return u=t.call(this,r),u.name="\u{1F4A5} Driven Error",u.message=r?Hl(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",u}return n}(Hn(Error)),zl=function(e){su(n,e);var t=fu(n);function n(r){au(this,n);var u;return u=t.call(this,r),u.name="\u{1F6A8} Driven Reference Error",u}return n}(Zn);function Ge(e){throw new Zn(e)}function hu(e){throw new zl(e)}function on(e){zn.error(new Zn(e))}function nt(e,t){Array.isArray(e)&&e.map(function(n){switch(n.controlType){case"layout":nt(n==null?void 0:n.children,t);break;case"wrap":nt(n==null?void 0:n.children,t);break;case"search":nt(n==null?void 0:n.children,t);break;case"form":t(n)}})}var Wl=Object.prototype.toString;function du(e,t){return Wl.call(e)==="[object "+t+"]"}function Zl(e){return du(e,"String")}function Jl(e){return du(e,"Promise")}var Gl=function(){function e(t){var n,r;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((r=(n=t.messages)!==null&&n!==void 0?n:this.getPreImport(t.locale))!==null&&r!==void 0?r:{}),t.variableRegExp&&(this.variableRegExp=t.variableRegExp),this.setLocale(t.locale)}return e.prototype.setLocale=function(t){var n=this;this.locale=t,this._messageCache.clear();var r=this.getMessageData();Jl(r)?r.then(function(u){n._messageCache.clear(),n.messages[n.localeInMessageKey]=u}):this.messages[this.localeInMessageKey]=r},e.prototype.getMessageData=function(){var t=this._messages[this.localeInMessageKey];return typeof t=="function"?t():t},e.prototype.translate=function(t,n,r){var u=this.getMessage(t);return u?this.formatMessage(u,r):this.formatMessage(n,r)},e.prototype.getMessage=function(t){if(this._messageCache.has(t))return this._messageCache.get(t);var n=this.getPathArray(t),r=n.reduce(function(u,i,o,s){if(u!==void 0){var l=u[i];if(!(o===s.length-1&&!Zl(l)))return l}},this.message);return this._messageCache.set(t,r),r},e.prototype.formatMessage=function(t,n){return n?t.replace(this.variableRegExp,function(r,u){var i=n[u];return i!==void 0?String(i):r}):t},e.prototype.getPreImport=function(t){var n;if(window.okI18nPreImport){var r=this.getLocaleInMessageKey(t);return window.okI18nPreImport.hasOwnProperty(r)?window.okI18nPreImport:(n={},n[r]=window.okI18nPreImport,n)}},e.prototype.getPathArray=function(t){return t.split(".")},e.prototype.getLocaleInMessageKey=function(t){return t.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var t;return(t=this.messages[this.localeInMessageKey])!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e}();function Xl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kl(e,t,n){return t&&pu(e.prototype,t),n&&pu(e,n),e}function Ql(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _e=function(){function e(){Xl(this,e)}return Kl(e,null,[{key:"getMessage",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",r)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uu;return new Gl({locale:n,messages:Rl})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),e}();Ql(_e,"$i18n",_e.resetI18n());function Jn(e,t,n){var r=t.replace(/\[(\d)]/g,function(i,o){return"."+o}).split("."),u=!1;return r.reduce(function(i,o,s,l){var f=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,o)){tt("Can not set ".concat(t,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),i,i);return}return s===l.length-1&&!Object.is(f[o],n)&&(f[o]=n,u=!0),f[o]}},e),u}var rt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Du(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gn={exports:{}};(function(e){(function(t){var n=function(p,m,y){if(!f(m)||a(m)||h(m)||d(m)||l(m))return m;var C,w=0,S=0;if(c(m))for(C=[],S=m.length;w<S;w++)C.push(n(p,m[w],y));else{C={};for(var I in m)Object.prototype.hasOwnProperty.call(m,I)&&(C[p(I,y)]=n(p,m[I],y))}return C},r=function(p,m){m=m||{};var y=m.separator||"_",C=m.split||/(?=[A-Z])/;return p.split(C).join(y)},u=function(p){return D(p)?p:(p=p.replace(/[\-_\s]+(.)?/g,function(m,y){return y?y.toUpperCase():""}),p.substr(0,1).toLowerCase()+p.substr(1))},i=function(p){var m=u(p);return m.substr(0,1).toUpperCase()+m.substr(1)},o=function(p,m){return r(p,m).toLowerCase()},s=Object.prototype.toString,l=function(p){return typeof p=="function"},f=function(p){return p===Object(p)},c=function(p){return s.call(p)=="[object Array]"},a=function(p){return s.call(p)=="[object Date]"},h=function(p){return s.call(p)=="[object RegExp]"},d=function(p){return s.call(p)=="[object Boolean]"},D=function(p){return p=p-0,p===p},g=function(p,m){var y=m&&"process"in m?m.process:m;return typeof y!="function"?p:function(C,w){return y(C,p,w)}},A={camelize:u,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(p,m){return n(g(u,m),p)},decamelizeKeys:function(p,m){return n(g(o,m),p,m)},pascalizeKeys:function(p,m){return n(g(i,m),p)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=A:t.humps=A})(rt)})(Gn);var gu={};Object.defineProperty(gu,"__esModule",{value:!0});function Xn(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(t=>typeof t!="object"||t===null?t:Xn(t));{const t={};for(const n in e){const r=e[n];t[n]=typeof r!="object"||r===null?r:Xn(r)}return t}}var Yl=gu.default=Xn;function re(e){if(e!==void 0)return typeof e=="object"?Yl(e):e}function Te(e){return Object.prototype.toString.call(e)==="[object Object]"}function ef(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function Dt(e){return Array.isArray(e)}function Ee(e){return typeof e=="string"}function an(e){return typeof e=="number"}function vu(e){return typeof e=="function"}function tf(e){return Dt(e)&&e.every(function(t){return Ee(t)})}function nf(e){return Dt(e)&&e.every(function(t){return an(t)||t===""})}function mu(e){return/^\[.*?]$/.test(e)}function sn(e){return/^{.*?}$/.test(e)}function rf(e){return Object.values(ce).includes(e)}function Kn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uf(e){if(Array.isArray(e))return Kn(e)}function yu(e,t,n,r,u,i,o){try{var s=e[i](o),l=s.value}catch(f){n(f);return}s.done?t(l):Promise.resolve(l).then(r,u)}function of(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(l){yu(i,r,u,o,s,"next",l)}function s(l){yu(i,r,u,o,s,"throw",l)}o(void 0)})}}function af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sf(e,t,n){return t&&Eu(e.prototype,t),n&&Eu(e,n),e}function Au(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cf(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lf(){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 Qn(e){return uf(e)||cf(e)||ff(e)||lf()}function ff(e,t){if(!!e){if(typeof e=="string")return Kn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kn(e,t)}}function hf(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(f){return function(c){return l([f,c])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(c){f=[6,c],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var Cu=function(){function e(){af(this,e),Au(this,"_events",new Map),Au(this,"debug",!1)}return sf(e,[{key:"emit",value:function(n){for(var r=arguments.length,u=new Array(r>1?r-1:0),i=1;i<r;i++)u[i-1]=arguments[i];var o=this;return of(function(){var s,l,f,c,a,h,d,D,g,A,p,m;return hf(this,function(y){switch(y.label){case 0:if(s=o._events.get(n),l=[],!s)return[3,10];f=s.slice(),c=!0,a=!1,h=void 0,y.label=1;case 1:y.trys.push([1,8,9,10]),d=f[Symbol.iterator](),y.label=2;case 2:if(c=(D=d.next()).done)return[3,7];if(g=D.value,!s.includes(g))return[3,6];y.label=3;case 3:return y.trys.push([3,5,,6]),o.debug&&Wn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(g.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+g.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(u.map(function(){return"%o"}).join(","),"\u3002")].concat(Qn(u))),[4,g.apply(null,Qn(u))];case 4:return A=y.sent(),o.debug&&Wn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(g.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+g.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(u.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(Qn(u),[A])),l.push(A),A===!1?[3,7]:[3,6];case 5:return p=y.sent(),on(String(p)+":"+String(p.stack)),[3,6];case 6:return c=!0,[3,2];case 7:return[3,10];case 8:return m=y.sent(),a=!0,h=m,[3,10];case 9:try{!c&&d.return!=null&&d.return()}finally{if(a)throw h}return[7];case 10:return[2,l]}})})()}},{key:"on",value:function(n,r){if(this._events.has(n)){var u;(u=this._events.get(n))===null||u===void 0||u.push(r)}else this._events.set(n,[r])}},{key:"off",value:function(n,r){if(this._events.has(n)){var u=this._events.get(n),i=u==null?void 0:u.indexOf(r);u==null||u.splice(i,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),e}();function df(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pf(e,t,n){return t&&Fu(e.prototype,t),n&&Fu(e,n),e}function Df(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gf=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_list_before_insert",name:"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",code:"list-before-insert"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"},{key:"on_change_tab",name:"\u6807\u7B7E\u9875\u5207\u6362\u65F6",code:"change-tab"},{key:"on_modal_ok",name:"\u5F39\u7A97\u786E\u8BA4\u65F6",code:"modal-ok"}],wu=function(){function e(){df(this,e)}return pf(e,[{key:"getEventsFromKeys",value:function(n){var r=typeof n=="string"?[n]:n;return e.events.filter(function(u){return r.includes(u.key)})}}]),e}();Df(wu,"events",gf);function Yn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vf(e){if(Array.isArray(e))return Yn(e)}function mf(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yf(){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 bu(e){return vf(e)||mf(e)||Ef(e)||yf()}function Ef(e,t){if(!!e){if(typeof e=="string")return Yn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yn(e,t)}}function er(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function Bu(e,t,n){n==="Designer"&&(e.parent=t,er(e,"parent"))}function Af(e,t,n){e.forEach(function(r){Bu(r,t,n)})}var _u=Symbol("targetKey");function Su(e){var t;return(t=e[_u])!==null&&t!==void 0?t:e}function Mu(e,t,n){return Af(e,t,n),new Proxy(e,{get:function(u,i){for(var o=arguments.length,s=new Array(o>2?o-2:0),l=2;l<o;l++)s[l-2]=arguments[l];var f;return i===_u?u:(f=Reflect).get.apply(f,[u,i].concat(bu(s)))},set:function(u,i,o){for(var s=arguments.length,l=new Array(s>3?s-3:0),f=3;f<s;f++)l[f-3]=arguments[f];var c;if(Dt(e)&&i==="length"&&o===e.length)return!0;var a=(c=Reflect).set.apply(c,[u,i,o].concat(bu(l)));return Te(o)&&Bu(o,t,n),a}})}function tr(e,t,n,r,u){var i=r!=null?r:e,o=Mu(Su(n!=null?n:[]),i,u);Object.defineProperty(e,t,{get:function(){return o},set:function(l){o=Mu(Su(l),i,u)},enumerable:!0})}function Cf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ff(e,t,n){return t&&Iu(e.prototype,t),n&&Iu(e,n),e}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nu=[],Ut=function(){function e(t){Cf(this,e),ut(this,"registeredControlTypes",new Set),ut(this,"controlConfigMap",new Map),ut(this,"_controls",[]),ut(this,"_type",void 0),this._type=t,this._initControls(t)}return Ff(e,[{key:"registerControlConfig",value:function(n,r){return this.controlConfigMap.set(n,r),this}},{key:"getControlConfig",value:function(n){return this.controlConfigMap.get(n)}},{key:"getControls",value:function(){return this._controls}},{key:"register",value:function(n){n.__is_control__||Ge("".concat(n.name," is not a Control"));var r=this._controls.findIndex(function(u){return u.controlType===n.controlType});return r>-1&&(tt("The ".concat(n.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(r,1)),this.registeredControlTypes.add(n.controlType),this._controls.push(n),this}},{key:"isLayoutControl",value:function(n){return n.controlType===G.LAYOUT}},{key:"isFormControl",value:function(n){return n.controlType===G.FORM}},{key:"isListControl",value:function(n){return n.controlType===G.LIST}},{key:"isColumnControl",value:function(n){return n.controlType===G.COLUMN}},{key:"createControl",value:function(n,r){var u=this;if(Array.isArray(n))return n.map(function(c){return u.createControl(c,r)});if(n.children&&(n.children=n.children.map(function(c){return u.createControl(c,r)})),this.isListControl(n)){var i=n.props;i.headers&&(i.headers=i.headers.map(function(c){return u.createControl(c,r)})),i.footers&&(i.footers=i.footers.map(function(c){var a;return c&&(a=u.createControl(c,r)),a}))}var o=this.getControlFormType(n.type);if(o){var s=n;if(typeof r=="function"){var l=r(s);l&&(s=l)}var f;return o.mode==="Runtime"?(f=s,f.fieldType=o.controlFieldType,this._setParentPrototypeToSchema(f,this)):f=new o(s),f}else Ge("The constructor of ".concat(n.type," could not be found, please confirm that the constructor has been registered"))}},{key:"resetInstanceParent",value:function(n,r){delete n.parent,Object.defineProperty(n,"parent",{configurable:!0,get:function(){return r}}),er(n,"parent")}},{key:"_setParentPrototypeToSchema",value:function(n,r){r._type==="Runtime"&&(Object.defineProperty(n,"parent",{configurable:!0,get:function(){var i=n.id,o=r._controlParentIdMap,s=r.instanceMap;if(!(!o||!s)){var l=o[i],f=s[i];if(!(!l&&!f)){var c=f.findIndex(function(d){return d==n}),a=s[l]||[],h;return a.length!==f.length?h=a[0]:h=a[c],h}}}}),er(n,"parent"))}},{key:"createControlInstance",value:function(n,r){var u=this.getControlFormType(n);if(u)return new u(r)}},{key:"getControlFormType",value:function(n){return this._controls.find(function(r){return r.controlType===n})}},{key:"_initControls",value:function(n){var r=this;this.constructor.staticControls.forEach(function(u){r.register(u[n]),e.staticControlsRuntimeRules.set(u.Runtime.controlType,u.Property.RuntimeRules),u.Property.mode=n})}}],[{key:"staticGetRules",value:function(n,r){var u=e.staticControlsRuntimeRules.get(n),i=[];if(u){var o=new u(r);i=Array.from(o)}return i}},{key:"register",value:function(n,r){var u=n.Designer,i=n.Runtime,o=n.Property;(!u||!i||!u.__is_control__||!i.__is_control__)&&Ge("".concat(n," is can't register as a Control"));var s=this.staticControls.findIndex(function(l){return l.Designer.controlType===u.controlType});return s>-1&&(tt("The ".concat(u.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(s,1)),this.staticRegisteredTypes.add(u.controlType),this.staticControls.push(n),o.mode=r,this}}]),e}();ut(Ut,"staticControlsRuntimeRules",new Map),ut(Ut,"staticControls",Nu),ut(Ut,"staticRegisteredTypes",new Set(Nu.map(function(e){return e.Designer.controlType}))),ut(Ut,"staticRegisteredConfigs",new Map);function gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nr=function e(t){gt(this,e),te(this,"dataCode",void 0),te(this,"fieldCode",void 0),te(this,"fieldType",void 0),te(this,"aliasCode",void 0);var n;this.dataCode=(n=t==null?void 0:t.dataCode)!==null&&n!==void 0?n:"";var r;this.fieldCode=(r=t==null?void 0:t.fieldCode)!==null&&r!==void 0?r:"";var u;this.fieldType=(u=t==null?void 0:t.fieldType)!==null&&u!==void 0?u:"",this.aliasCode=t==null?void 0:t.aliasCode},wf=function e(t){gt(this,e),te(this,"minWidth",void 0),te(this,"maxWidth",void 0),te(this,"flex",void 0);var n;this.minWidth=(n=t==null?void 0:t.minWidth)!==null&&n!==void 0?n:150,this.maxWidth=t==null?void 0:t.maxWidth;var r;this.flex=(r=t==null?void 0:t.flex)!==null&&r!==void 0?r:1},rr=function e(t){gt(this,e),te(this,"amount",void 0),te(this,"currency",void 0);var n;this.amount=(n=t==null?void 0:t.amount)!==null&&n!==void 0?n:"";var r;this.currency=(r=t==null?void 0:t.currency)!==null&&r!==void 0?r:"CNY"},ur=function e(t){gt(this,e),te(this,"min",void 0),te(this,"max",void 0);var n;this.min=(n=t==null?void 0:t.min)!==null&&n!==void 0?n:"";var r;this.max=(r=t==null?void 0:t.max)!==null&&r!==void 0?r:""},ir=function e(t){gt(this,e),te(this,"city",void 0),te(this,"cityDisplay",void 0),te(this,"district",void 0),te(this,"districtDisplay",void 0),te(this,"province",void 0),te(this,"provinceDisplay",void 0);var n;this.city=(n=t==null?void 0:t.city)!==null&&n!==void 0?n:"";var r;this.cityDisplay=(r=t==null?void 0:t.cityDisplay)!==null&&r!==void 0?r:"";var u;this.district=(u=t==null?void 0:t.district)!==null&&u!==void 0?u:"";var i;this.districtDisplay=(i=t==null?void 0:t.districtDisplay)!==null&&i!==void 0?i:"";var o;this.province=(o=t==null?void 0:t.province)!==null&&o!==void 0?o:"";var s;this.provinceDisplay=(s=t==null?void 0:t.provinceDisplay)!==null&&s!==void 0?s:""},or=function e(t){gt(this,e),te(this,"result",void 0),te(this,"unit",void 0);var n;this.result=(n=t==null?void 0:t.result)!==null&&n!==void 0?n:0;var r;this.unit=(r=t==null?void 0:t.unit)!==null&&r!==void 0?r:""},xu;(function(e){e.CNY="CNY",e.USD="USD",e.JPY="JPY",e.EUR="EUR",e.INR="INR",e.IDR="IDR",e.BRL="BRL",e.AED="AED",e.AUD="AUD",e.CAD="CAD",e.EGP="EGP",e.GBP="GBP",e.ZAR="ZAR",e.KRW="KRW",e.MAD="MAD",e.MXN="MXN",e.MYR="MYR",e.PHP="PHP",e.PLN="PLN",e.RUB="RUB",e.SGD="SGD",e.THB="THB",e.TRY="TRY",e.TWD="TWD",e.VND="VND",e.HKD="HKD",e.IEP="IEP"})(xu||(xu={}));var Ou;(function(e){e.DEFAULT_DISPLAY="defaultDisplay",e.REQUIRED="required",e.IS_HIDE="isHide",e.IS_SHOW_UNIT="isShowUnit",e.IMD_SEARCH="immediatelySearch",e.MULTIPLE="multiple",e.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",e.CAPTION="caption",e.IS_HIDE_CAPTION="isHideCaption",e.DEFAULT_SHOW_OPTIONS="defaultShowOptions",e.CAN_SEARCH="canSearch",e.CAN_CHECK="canCheck",e.CAN_EDIT="canEdit",e.CAN_DELETE="canDelete",e.SHOW_UPPER_CASE="showUpperCase",e.MICROMETER="micrometer",e.PRECISION="precision",e.PERCENTAGE="percentage",e.OPTIONAL_LEVEL="optionalLevel",e.CONTAINS_SUB_NODE="containsSubNode",e.DEFAULT_COLLAPSE="defaultCollapse",e.CAN_VIEW_FORM="canViewForm",e.VIEW_FORM_MODEL_TYPE="viewFormModelType",e.SERVER_PAGINATION="serverPagination",e.IS_SHOW_CAPTION_TIP="isShowCaptionTip",e.ENCRYPTED="encrypted",e.IS_INLINE_EDIT="isInlineEdit",e.REVISIONS_MODE="revisionsMode",e.ALLOW_COPY_OPTIONS="allowCopyOptions",e.IS_PASTE="isPaste"})(Ou||(Ou={}));var ar;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT"})(ar||(ar={}));var bf=function e(t){gt(this,e),te(this,"width",void 0),te(this,"height",void 0),te(this,"widthConfig",void 0),te(this,"heightConfig",void 0);var n;this.width=(n=t==null?void 0:t.width)!==null&&n!==void 0?n:"";var r;this.height=(r=t==null?void 0:t.height)!==null&&r!==void 0?r:"";var u;this.widthConfig=(u=t==null?void 0:t.widthConfig)!==null&&u!==void 0?u:"fill";var i;this.heightConfig=(i=t==null?void 0:t.heightConfig)!==null&&i!==void 0?i:"fill"};function Bf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cn(e,t,n){return Ru()?cn=Reflect.construct:cn=function(u,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(u,s),f=new l;return o&&zt(f,o.prototype),f},cn.apply(null,arguments)}function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ht(e){return Ht=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ht(e)}function _f(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zt(e,t)}function Sf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Mf(e,t){return t&&(If(t)==="object"||typeof t=="function")?t:Bf(e)}function zt(e,t){return zt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},zt(e,t)}function If(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function cr(e){var t=typeof Map=="function"?new Map:void 0;return cr=function(r){if(r===null||!Sf(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return cn(r,arguments,Ht(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),zt(u,r)},cr(e)}function Ru(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Nf(e){var t=Ru();return function(){var r=Ht(e),u;if(t){var i=Ht(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Mf(this,u)}}var lr=function e(t){sr(this,e),it(this,"isHide",{type:"boolean"})},Pu=function(e){_f(n,e);var t=Nf(n);function n(r){return sr(this,n),t.call(this)}return n}(cr(Array)),Xe=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";sr(this,e),it(this,"isHide",void 0),it(this,"className",void 0),it(this,"style",void 0),it(this,"caption",void 0);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new bf(t==null?void 0:t.style);var u;this.caption=(u=t==null?void 0:t.caption)!==null&&u!==void 0?u:n};it(Xe,"mode",void 0),it(Xe,"Rules",lr),it(Xe,"RuntimeRules",Pu);function He(){return He=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},He.apply(this,arguments)}function xf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function fr(e){return fr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},fr(e)}function ln(e,t){return ln=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},ln(e,t)}function Of(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function fn(e,t,n){return Of()?fn=Reflect.construct:fn=function(u,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(u,s),f=new l;return o&&ln(f,o.prototype),f},fn.apply(null,arguments)}function Rf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function hr(e){var t=typeof Map=="function"?new Map:void 0;return hr=function(r){if(r===null||!Rf(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return fn(r,arguments,fr(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),ln(u,r)},hr(e)}var Pf=/%[sdj%]/g,$u=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&($u=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function dr(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,u=t[0],i=t.length;if(typeof u=="function")return u.apply(null,t.slice(1));if(typeof u=="string"){var o=String(u).replace(Pf,function(s){if(s==="%%")return"%";if(r>=i)return s;switch(s){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(l){return"[Circular]"}break;default:return s}});return o}return u}function $f(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function le(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||$f(t)&&typeof e=="string"&&!e)}function Tf(e,t,n){var r=[],u=0,i=e.length;function o(s){r.push.apply(r,s),u++,u===i&&n(r)}e.forEach(function(s){t(s,o)})}function Tu(e,t,n){var r=0,u=e.length;function i(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<u?t(e[s],i):n([])}i([])}function jf(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var ju=function(e){xf(t,e);function t(n,r){var u;return u=e.call(this,"Async Validation Error")||this,u.errors=n,u.fields=r,u}return t}(hr(Error));function Lf(e,t,n,r){if(t.first){var u=new Promise(function(a,h){var d=function(A){return r(A),A.length?h(new ju(A,dr(A))):a()},D=jf(e);Tu(D,n,d)});return u.catch(function(a){return a}),u}var i=t.firstFields||[];i===!0&&(i=Object.keys(e));var o=Object.keys(e),s=o.length,l=0,f=[],c=new Promise(function(a,h){var d=function(g){if(f.push.apply(f,g),l++,l===s)return r(f),f.length?h(new ju(f,dr(f))):a()};o.length||(r(f),a()),o.forEach(function(D){var g=e[D];i.indexOf(D)!==-1?Tu(g,n,d):Tf(g,n,d)})});return c.catch(function(a){return a}),c}function Lu(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:typeof t=="function"?t():t,field:t.field||e.fullField}}}function ku(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=He(He({},e[n]),r):e[n]=r}}return e}function qu(e,t,n,r,u,i){e.required&&(!n.hasOwnProperty(e.field)||le(t,i||e.type))&&r.push(Se(u.messages.required,e.fullField))}function kf(e,t,n,r,u){(/^\s+$/.test(t)||t==="")&&r.push(Se(u.messages.whitespace,e.fullField))}var pr={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},Wt={integer:function(t){return Wt.number(t)&&parseInt(t,10)===t},float:function(t){return Wt.number(t)&&!Wt.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Wt.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(pr.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(pr.url)},hex:function(t){return typeof t=="string"&&!!t.match(pr.hex)}};function qf(e,t,n,r,u){if(e.required&&t===void 0){qu(e,t,n,r,u);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;i.indexOf(o)>-1?Wt[o](t)||r.push(Se(u.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(Se(u.messages.types[o],e.fullField,e.type))}function Vf(e,t,n,r,u){var i=typeof e.len=="number",o=typeof e.min=="number",s=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=t,c=null,a=typeof t=="number",h=typeof t=="string",d=Array.isArray(t);if(a?c="number":h?c="string":d&&(c="array"),!c)return!1;d&&(f=t.length),h&&(f=t.replace(l,"_").length),i?f!==e.len&&r.push(Se(u.messages[c].len,e.fullField,e.len)):o&&!s&&f<e.min?r.push(Se(u.messages[c].min,e.fullField,e.min)):s&&!o&&f>e.max?r.push(Se(u.messages[c].max,e.fullField,e.max)):o&&s&&(f<e.min||f>e.max)&&r.push(Se(u.messages[c].range,e.fullField,e.min,e.max))}var Ct="enum";function Uf(e,t,n,r,u){e[Ct]=Array.isArray(e[Ct])?e[Ct]:[],e[Ct].indexOf(t)===-1&&r.push(Se(u.messages[Ct],e.fullField,e[Ct].join(", ")))}function Hf(e,t,n,r,u){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Se(u.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var i=new RegExp(e.pattern);i.test(t)||r.push(Se(u.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var V={required:qu,whitespace:kf,type:qf,range:Vf,enum:Uf,pattern:Hf};function zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t,"string")&&!e.required)return n();V.required(e,t,r,i,u,"string"),le(t,"string")||(V.type(e,t,r,i,u),V.range(e,t,r,i,u),V.pattern(e,t,r,i,u),e.whitespace===!0&&V.whitespace(e,t,r,i,u))}n(i)}function Wf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}function Zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),le(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Jf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}function Gf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u),le(t)||V.type(e,t,r,i,u)}n(i)}function Xf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Kf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Qf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return n();V.required(e,t,r,i,u,"array"),t!=null&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Yf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}var e0="enum";function t0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V[e0](e,t,r,i,u)}n(i)}function n0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t,"string")&&!e.required)return n();V.required(e,t,r,i,u),le(t,"string")||V.pattern(e,t,r,i,u)}n(i)}function r0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t,"date")&&!e.required)return n();if(V.required(e,t,r,i,u),!le(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),V.type(e,s,r,i,u),s&&V.range(e,s.getTime(),r,i,u)}}n(i)}function u0(e,t,n,r,u){var i=[],o=Array.isArray(t)?"array":typeof t;V.required(e,t,r,i,u,o),n(i)}function Dr(e,t,n,r,u){var i=e.type,o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(le(t,i)&&!e.required)return n();V.required(e,t,r,o,u,i),le(t,i)||V.type(e,t,r,o,u)}n(o)}function i0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(le(t)&&!e.required)return n();V.required(e,t,r,i,u)}n(i)}var Zt={string:zf,method:Wf,number:Zf,boolean:Jf,regexp:Gf,integer:Xf,float:Kf,array:Qf,object:Yf,enum:t0,pattern:n0,date:r0,url:Dr,hex:Dr,email:Dr,required:u0,any:i0};function gr(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var vr=gr();function ot(e){this.rules=null,this._messages=vr,this.define(e)}ot.prototype={messages:function(t){return t&&(this._messages=ku(gr(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(t,n,r){var u=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var i=t,o=n,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var A,p=[],m={};function y(C){if(Array.isArray(C)){var w;p=(w=p).concat.apply(w,C)}else p.push(C)}for(A=0;A<g.length;A++)y(g[A]);p.length?m=dr(p):(p=null,m=null),s(p,m)}if(o.messages){var f=this.messages();f===vr&&(f=gr()),ku(f,o.messages),o.messages=f}else o.messages=this.messages();var c,a,h={},d=o.keys||Object.keys(this.rules);d.forEach(function(g){c=u.rules[g],a=i[g],c.forEach(function(A){var p=A;typeof p.transform=="function"&&(i===t&&(i=He({},i)),a=i[g]=p.transform(a)),typeof p=="function"?p={validator:p}:p=He({},p),p.validator=u.getValidationMethod(p),p.field=g,p.fullField=p.fullField||g,p.type=u.getType(p),p.validator&&(h[g]=h[g]||[],h[g].push({rule:p,value:a,source:i,field:g}))})});var D={};return Lf(h,o,function(g,A){var p=g.rule,m=(p.type==="object"||p.type==="array")&&(typeof p.fields=="object"||typeof p.defaultField=="object");m=m&&(p.required||!p.required&&g.value),p.field=g.field;function y(S,I){return He(He({},I),{},{fullField:p.fullField+"."+S})}function C(S){S===void 0&&(S=[]);var I=S;if(Array.isArray(I)||(I=[I]),!o.suppressWarning&&I.length&&ot.warning("async-validator:",I),I.length&&p.message!==void 0&&(I=[].concat(p.message)),I=I.map(Lu(p)),o.first&&I.length)return D[p.field]=1,A(I);if(!m)A(I);else{if(p.required&&!g.value)return p.message!==void 0?I=[].concat(p.message).map(Lu(p)):o.error&&(I=[o.error(p,Se(o.messages.required,p.field))]),A(I);var j={};if(p.defaultField)for(var U in g.value)g.value.hasOwnProperty(U)&&(j[U]=p.defaultField);j=He(He({},j),g.rule.fields);for(var H in j)if(j.hasOwnProperty(H)){var O=Array.isArray(j[H])?j[H]:[j[H]];j[H]=O.map(y.bind(null,H))}var $=new ot(j);$.messages(o.messages),g.rule.options&&(g.rule.options.messages=o.messages,g.rule.options.error=o.error),$.validate(g.value,g.rule.options||o,function(Z){var W=[];I&&I.length&&W.push.apply(W,I),Z&&Z.length&&W.push.apply(W,Z),A(W.length?W:null)})}}var w;p.asyncValidator?w=p.asyncValidator(p,g.value,C,g.source,o):p.validator&&(w=p.validator(p,g.value,C,g.source,o),w===!0?C():w===!1?C(p.message||p.field+" fails"):w instanceof Array?C(w):w instanceof Error&&C(w.message)),w&&w.then&&w.then(function(){return C()},function(S){return C(S)})},function(g){l(g)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Zt.hasOwnProperty(t.type))throw new Error(Se("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?Zt.required:Zt[this.getType(t)]||!1}},ot.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Zt[t]=n},ot.warning=$u,ot.messages=vr,ot.validators=Zt;var o0={required:"%s \u5FC5\u586B",maxLength:"%s \u8D85\u51FA\u6700\u5927\u957F\u5EA6\u9650\u5236",minLength:"%s \u5C0F\u4E8E\u6700\u5C0F\u957F\u5EA6\u9650\u5236",string:{range:"%s \u4E0D\u5728\u6307\u5B9A\u957F\u5EA6\u5185"}};function a0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new ot(e);return n.messages(Object.assign(o0,t)),n}var s0=new Cu;function mr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c0(e){if(Array.isArray(e))return e}function l0(e){if(Array.isArray(e))return mr(e)}function Vu(e,t,n,r,u,i,o){try{var s=e[i](o),l=s.value}catch(f){n(f);return}s.done?t(l):Promise.resolve(l).then(r,u)}function Uu(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(l){Vu(i,r,u,o,s,"next",l)}function s(l){Vu(i,r,u,o,s,"throw",l)}o(void 0)})}}function f0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h0(e,t,n){return t&&Hu(e.prototype,t),n&&Hu(e,n),e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zu(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Wu(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function d0(){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 p0(){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 Zu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){ee(e,u,n[u])})}return e}function D0(e){return c0(e)||Wu(e)||Ju(e)||d0()}function yr(e){return l0(e)||Wu(e)||Ju(e)||p0()}function Ju(e,t){if(!!e){if(typeof e=="string")return mr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mr(e,t)}}function Gu(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(f){return function(c){return l([f,c])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(c){f=[6,c],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var Ae=function(){function t(n){var r=this;f0(this,t),ee(this,"id",void 0),ee(this,"name",void 0),ee(this,"icon",void 0),ee(this,"type",void 0),ee(this,"controlType",void 0),ee(this,"props",void 0),ee(this,"setting",[]),ee(this,"fieldType",void 0),ee(this,"eventKeys",[]),ee(this,"customEvents",[]),ee(this,"parent",null),ee(this,"updateSetting",Ku),ee(this,"removeSetting",Xu),this._callControlHooks("preInstance",n);var u=zu(this,t)?this.constructor:void 0,i=u.controlName,o=u.controlIcon,s=u.controlType,l=u.controlFieldType,f=u.controlEventKeys,c=u.controlCustomEvents,a=u.name,h=u.setting;i&&o&&s||hu("The ".concat(a," controlName,controlIcon,controlType is not define"));var d;this.id=(d=n==null?void 0:n.id)!==null&&d!==void 0?d:rn(10),this.name=i,this.icon=o;var D;this.type=(D=n==null?void 0:n.type)!==null&&D!==void 0?D:s,this.props=new Xe(n==null?void 0:n.props,(zu(this,t)?this.constructor:void 0).controlName);var g;this.controlType=(g=n==null?void 0:n.controlType)!==null&&g!==void 0?g:"base",this.setting=re(h);var A;this.fieldType=(A=n==null?void 0:n.fieldType)!==null&&A!==void 0?A:l,this.eventKeys=re(f),this.customEvents=re(c),Promise.resolve().then(function(){r._callControlHooks("postInstance",n)})}return h0(t,[{key:"rules",get:function(){var r=this.props.constructor.Rules;return r?new r(this.props):{}}},{key:"_callControlHooks",value:function(){for(var r=arguments.length,u=new Array(r),i=0;i<r;i++)u[i]=arguments[i];var o,s=D0(u),l=s[0],f=s.slice(1);return(o=s0).emit.apply(o,[l,this].concat(yr(f)))}},{key:"preUpdate",value:function(r,u){this._callControlHooks("preUpdateProps",r,u)}},{key:"postUpdate",value:function(r,u){this._callControlHooks("postUpdateProps",r,u)}},{key:"updateProps",value:function(r,u){this.preUpdate(r,u),Jn(this.props,r,u),this.postUpdate(r,u)}},{key:"preValidate",value:function(){var r=this;return Uu(function(){var u,i,o;return Gu(this,function(s){switch(s.label){case 0:return u=Zu({},r.rules),[4,r._callControlHooks("preValidate",u)];case 1:return i=s.sent(),o=i[i.length-1],[2,o===!1?void 0:o]}})})()}},{key:"validate",value:function(r,u){var i=this;return Uu(function(){var o,s,l,f;return Gu(this,function(c){switch(c.label){case 0:return[4,i.preValidate()];case 1:o=c.sent(),s=o!==void 0?o:Zu({},i.rules),Array.isArray(u)&&u.forEach(function(a){s.hasOwnProperty(a)&&delete s[a]}),l=a0(s,r),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,l.validate(i.props)];case 3:return c.sent(),[2,!0];case 4:throw f=c.sent(),f.control||(f.control=i),f;case 5:return[2]}})})()}},{key:"toDataBindModel",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=this.fieldType,i=this.id,o=this.type,s=this.props,l=s.dataBind,f=s.datasourceBind,c=s.optionConfig,a=s.caption,h=s.required,d=s.maxLength,D=s.options,g=s.encrypted,A=s.encryptedMode;if(!(!u&&!l&&!f)){var p={parentId:r,fieldType:u,controlId:i,caption:a,type:o,props:{}};switch(l&&(p.dataBind=l),c){case"datasource":case void 0:f&&(p.datasourceBind=f);break;case"custom":p.props.options=D;break}return h!==void 0&&(p.required=h),d!==void 0&&(p.maxLength=d),g!==void 0&&(p.encrypted=g),A!==void 0&&(p.encryptedMode=A),p}}},{key:"preToSchema",value:function(){this._callControlHooks("preToSchema",this)}},{key:"toSchema",value:function(){return this.preToSchema(),{id:this.id,type:this.type,props:re(this.props),fieldType:this.fieldType,controlType:this.controlType}}}],[{key:"updateBasicControl",value:function(r,u){if(r==="setting"){if(u.add){var i;(i=this.setting).push.apply(i,yr(u.add))}u.remove&&this.removeSettingItem(u.remove),u.update}}}]),t}();ee(Ae,"mode","Designer"),ee(Ae,"controlName","\u63A7\u4EF6"),ee(Ae,"controlIcon","icon"),ee(Ae,"controlType","control"),ee(Ae,"controlFieldType",void 0),ee(Ae,"controlEventKeys",[]),ee(Ae,"controlCustomEvents",[]),ee(Ae,"setting",[]),ee(Ae,"__is_control__",!0),ee(Ae,"removeSettingItem",Xu),ee(Ae,"updateSettingItem",Ku);function Xu(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var u,i=typeof r!="string",o=(u=t.setting)===null||u===void 0?void 0:u.findIndex(function(f){return f.key===(i?r.key:r)});if(o!==-1){var s,l;i?t.setting[o].showItems=(s=t.setting[o].showItems)===null||s===void 0?void 0:s.filter(function(f){return!r.hideItems.includes(f)}):t.setting.splice(o,1),i&&!(!((l=t.setting[o].showItems)===null||l===void 0)&&l.length)&&t.setting.splice(o,1)}})}function Ku(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(u){var i=n.setting.find(function(f){return f.key===u});if(i){if(typeof t=="boolean")i.visible=t;else if(typeof t=="object"){var o,s=(o=t.type)!==null&&o!==void 0?o:"replace";if(s==="replace")i.showItems=t.showItems;else{var l;(l=i.showItems).push.apply(l,yr(t.showItems))}}}})}function g0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v0(e,t,n){return t&&Qu(e.prototype,t),n&&Qu(e,n),e}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m0(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var Jt=function(){function t(n){g0(this,t),Me(this,"id",void 0),Me(this,"type",void 0),Me(this,"controlType",void 0),Me(this,"props",void 0),Me(this,"fieldType",void 0),Me(this,"customEvents",[]),Me(this,"pageStatus",void 0),Me(this,"parent",null);var r=m0(this,t)?this.constructor:void 0,u=r.controlType,i=r.controlFieldType,o=r.name,s=r.controlCustomEvents;u||hu("The ".concat(o," controlType is not define"));var l;this.id=(l=n==null?void 0:n.id)!==null&&l!==void 0?l:rn(10);var f;this.type=(f=n==null?void 0:n.type)!==null&&f!==void 0?f:u,this.props=new Xe(n==null?void 0:n.props),this.customEvents=s;var c;this.controlType=(c=n==null?void 0:n.controlType)!==null&&c!==void 0?c:"base";var a;this.fieldType=(a=n==null?void 0:n.fieldType)!==null&&a!==void 0?a:i;var h;this.pageStatus=(h=n==null?void 0:n.pageStatus)!==null&&h!==void 0?h:ar.UNKNOWN}return v0(t,[{key:"rules",get:function(){var r=this.props.constructor.RuntimeRules;if(r){var u=new r(this.props);return Array.from(u)}return[]}}]),t}();Me(Jt,"mode","Runtime"),Me(Jt,"controlType","control"),Me(Jt,"controlFieldType",void 0),Me(Jt,"__is_control__",!0),Me(Jt,"controlCustomEvents",[]);function je(e){return(e==null?void 0:e.dataCode)!==void 0&&(e==null?void 0:e.fieldCode)!==void 0}function fe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Er(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hn(e){return hn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hn(e)}function Ar(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Cr(e,t)}function y0(e,t){return t&&(E0(t)==="object"||typeof t=="function")?t:fe(e)}function Cr(e,t){return Cr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Cr(e,t)}function E0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function A0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Fr(e){var t=A0();return function(){var r=hn(e),u;if(t){var i=hn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return y0(this,u)}}var C0=function(e){Ar(n,e);var t=Fr(n);function n(r){Er(this,n);var u;u=t.call(this,r),oe(fe(u),"dataBind",{}),oe(fe(u),"caption",{type:"string",required:!0,message:_e.getMessage("pleaseEnterCaption")}),oe(fe(u),"isHideCaption",{type:"boolean"}),oe(fe(u),"labelPosition",{type:"enum",enum:["top","left"]}),oe(fe(u),"defaultState",{type:"enum",enum:["default","readonly"]}),oe(fe(u),"required",{type:"boolean"}),oe(fe(u),"captionTip",{type:"string",required:!1,message:_e.getMessage("pleaseEnterCaptionTip")});var i={fieldCode:{type:"string",required:!0,message:_e.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:_e.getMessage("pleaseEnterFieldCode")}};if(je(r.dataBind))u.dataBind={type:"object",required:!0,fields:re(i),message:_e.getMessage("pleaseEnterFieldCode")};else{var o={type:"object",required:!0,fields:{},message:_e.getMessage("pleaseEnterFieldCode")};Object.keys(r.dataBind).forEach(function(s){o.fields[s]={type:"object",required:!0,fields:re(i),message:_e.getMessage("pleaseEnterFieldCode")}}),u.dataBind=o}return r.isShowCaptionTip&&(u.captionTip.required=!0),u}return n}(lr),F0=function(e){Ar(n,e);var t=Fr(n);function n(r){Er(this,n);var u;u=t.call(this,r);var i=r.isHide?!1:r.required;return i&&u.push({type:"string",required:i,message:r.requiredMessage!==""?r.requiredMessage:_e.getMessage("runtimeRequired",{caption:r.caption})}),u}return n}(Pu),wr=function(e){Ar(n,e);var t=Fr(n);function n(r){Er(this,n);var u;u=t.call(this,r),oe(fe(u),"caption",void 0),oe(fe(u),"isHideCaption",void 0),oe(fe(u),"isShowCaptionTip",void 0),oe(fe(u),"captionTip",void 0),oe(fe(u),"labelPosition",void 0),oe(fe(u),"dataBind",void 0),oe(fe(u),"defaultValue",void 0),oe(fe(u),"placeholder",void 0),oe(fe(u),"defaultState",void 0),oe(fe(u),"required",void 0),oe(fe(u),"requiredMessage",void 0);var i;u.caption=(i=r==null?void 0:r.caption)!==null&&i!==void 0?i:"";var o;u.isHideCaption=(o=r==null?void 0:r.isHideCaption)!==null&&o!==void 0?o:!1;var s;u.isShowCaptionTip=(s=r==null?void 0:r.isShowCaptionTip)!==null&&s!==void 0?s:!1;var l;u.captionTip=(l=r==null?void 0:r.captionTip)!==null&&l!==void 0?l:"";var f;u.defaultState=(f=r==null?void 0:r.defaultState)!==null&&f!==void 0?f:"default";var c;u.labelPosition=(c=r==null?void 0:r.labelPosition)!==null&&c!==void 0?c:"top";var a;u.placeholder=(a=r==null?void 0:r.placeholder)!==null&&a!==void 0?a:"";var h;u.required=(h=r==null?void 0:r.required)!==null&&h!==void 0?h:!1;var d;u.requiredMessage=(d=r==null?void 0:r.requiredMessage)!==null&&d!==void 0?d:"",u.dataBind=new nr(r==null?void 0:r.dataBind);var D;return u.defaultValue=(D=r==null?void 0:r.defaultValue)!==null&&D!==void 0?D:"",u}return n}(Xe);oe(wr,"Rules",C0),oe(wr,"RuntimeRules",F0);function br(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pn(e){return pn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pn(e)}function b0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Br(e,t)}function B0(e,t){return t&&(_0(t)==="object"||typeof t=="function")?t:br(e)}function Br(e,t){return Br=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Br(e,t)}function _0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function S0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function M0(e){var t=S0();return function(){var r=pn(e),u;if(t){var i=pn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return B0(this,u)}}var Yu=function(e){b0(n,e);var t=M0(n);function n(r){w0(this,n);var u;return u=t.call(this,r),dn(br(u),"controlType","form"),dn(br(u),"props",void 0),u.props=new wr(r==null?void 0:r.props),u}return n}(Ae);dn(Yu,"controlEventKeys",["on_change","on_focus","on_blur"]),dn(Yu,"controlCustomAttributes",void 0);function I0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dn(e){return Dn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Dn(e)}function x0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_r(e,t)}function O0(e,t){return t&&(R0(t)==="object"||typeof t=="function")?t:I0(e)}function _r(e,t){return _r=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},_r(e,t)}function R0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function P0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function $0(e){var t=P0();return function(){var r=Dn(e),u;if(t){var i=Dn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return O0(this,u)}}var T0=function(e){x0(n,e);var t=$0(n);function n(r){return N0(this,n),t.call(this,r)}return n}(Xe);function Sr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j0(e){if(Array.isArray(e))return Sr(e)}function vt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ei(e,t,n,r,u,i,o){try{var s=e[i](o),l=s.value}catch(f){n(f);return}s.done?t(l):Promise.resolve(l).then(r,u)}function L0(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(l){ei(i,r,u,o,s,"next",l)}function s(l){ei(i,r,u,o,s,"throw",l)}o(void 0)})}}function k0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ti(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q0(e,t,n){return t&&ti(e.prototype,t),n&&ti(e,n),e}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ft(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?Ft=Reflect.get:Ft=function(u,i,o){var s=X0(u,i);if(!!s){var l=Object.getOwnPropertyDescriptor(s,i);return l.get?l.get.call(o||u):l.value}},Ft(e,t,n||e)}function st(e){return st=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},st(e)}function V0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mr(e,t)}function U0(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function H0(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function z0(){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 W0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){at(e,u,n[u])})}return e}function Z0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function J0(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z0(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function G0(e,t){return t&&(K0(t)==="object"||typeof t=="function")?t:vt(e)}function Mr(e,t){return Mr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Mr(e,t)}function X0(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=st(e),e!==null););return e}function ni(e){return j0(e)||H0(e)||Q0(e)||z0()}function K0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Q0(e,t){if(!!e){if(typeof e=="string")return Sr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sr(e,t)}}function Y0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function eh(e){var t=Y0();return function(){var r=st(e),u;if(t){var i=st(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return G0(this,u)}}function th(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(f){return function(c){return l([f,c])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(c){f=[6,c],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var nh=1e4,ri=function(t){V0(r,t);var n=eh(r);function r(u){k0(this,r);var i;i=n.call(this,u),at(vt(i),"controlType","layout"),at(vt(i),"children",void 0),at(vt(i),"excludes",void 0),at(vt(i),"childrenMaxLength",void 0),at(vt(i),"props",void 0);var o=U0(this,r)?this.constructor:void 0,s=o.excludes,l=o.childrenMaxLength;return i.props=new T0(u==null?void 0:u.props),tr(vt(i),"children",u==null?void 0:u.children,void 0,"Designer"),i.excludes=re(s),i.childrenMaxLength=l,i}return q0(r,[{key:"judgeExcludesChildren",value:function(i){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(i)}},{key:"judgeJoinChildren",value:function(i){var o=this.judgeExcludesChildren(i);return o&&this.childrenMaxLength>this.children.length}},{key:"validate",value:function(i,o){var s=this,l=this,f=function(){return Ft(st(r.prototype),"validate",s)};return L0(function(){return th(this,function(c){switch(c.label){case 0:return[4,f().call(l,i,o)];case 1:return c.sent(),[4,Promise.all(l.children.map(function(a){return a.validate(i,o)}))];case 2:return c.sent(),[2,!0]}})})()}},{key:"toDataBindModel",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,o=Ft(st(r.prototype),"toDataBindModel",this).call(this),s=o?[o]:[];return this.children.reduce(function(l,f){var c=f.toDataBindModel(i);if(Array.isArray(c)){var a=c.filter(function(h){return!!h});return ni(l).concat(ni(a))}return c&&l.push(c),l},s)}},{key:"toSchema",value:function(){var i=Ft(st(r.prototype),"toSchema",this).call(this),o=this.children.map(function(s){var l=s.toSchema();return l});return J0(W0({},i),{children:o})}}]),r}(Ae);at(ri,"excludes",!1),at(ri,"childrenMaxLength",nh);function Ke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gn(e){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gn(e)}function uh(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ir(e,t)}function ih(e,t){return t&&(oh(t)==="object"||typeof t=="function")?t:Ke(e)}function Ir(e,t){return Ir=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Ir(e,t)}function oh(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function ah(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function sh(e){var t=ah();return function(){var r=gn(e),u;if(t){var i=gn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return ih(this,u)}}var ch=function(e){uh(n,e);var t=sh(n);function n(r,u,i){rh(this,n);var o;o=t.call(this,u),wt(Ke(o),"headers",void 0),wt(Ke(o),"footers",void 0),wt(Ke(o),"pageIndex",void 0),wt(Ke(o),"pageSize",void 0),wt(Ke(o),"pageSizeOptions",void 0),wt(Ke(o),"totalCount",void 0),tr(Ke(o),"headers",u==null?void 0:u.headers,r,i),tr(Ke(o),"footers",u==null?void 0:u.footers,r);var s;o.pageIndex=(s=u==null?void 0:u.pageIndex)!==null&&s!==void 0?s:1;var l;o.pageSize=(l=u==null?void 0:u.pageSize)!==null&&l!==void 0?l:20;var f;o.pageSizeOptions=(f=u==null?void 0:u.pageSizeOptions)!==null&&f!==void 0?f:[20];var c;return o.totalCount=(c=u==null?void 0:u.totalCount)!==null&&c!==void 0?c:0,o}return n}(Xe);function Nr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lh(e){if(Array.isArray(e))return Nr(e)}function vn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ui(e,t,n,r,u,i,o){try{var s=e[i](o),l=s.value}catch(f){n(f);return}s.done?t(l):Promise.resolve(l).then(r,u)}function fh(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(l){ui(i,r,u,o,s,"next",l)}function s(l){ui(i,r,u,o,s,"throw",l)}o(void 0)})}}function hh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ii(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dh(e,t,n){return t&&ii(e.prototype,t),n&&ii(e,n),e}function mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?bt=Reflect.get:bt=function(u,i,o){var s=yh(u,i);if(!!s){var l=Object.getOwnPropertyDescriptor(s,i);return l.get?l.get.call(o||u):l.value}},bt(e,t,n||e)}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ct(e)}function ph(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xr(e,t)}function Dh(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gh(){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 oi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){mn(e,u,n[u])})}return e}function vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function ai(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vh(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function mh(e,t){return t&&(Eh(t)==="object"||typeof t=="function")?t:vn(e)}function xr(e,t){return xr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},xr(e,t)}function yh(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=ct(e),e!==null););return e}function si(e){return lh(e)||Dh(e)||Ah(e)||gh()}function Eh(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Ah(e,t){if(!!e){if(typeof e=="string")return Nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nr(e,t)}}function Ch(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Fh(e){var t=Ch();return function(){var r=ct(e),u;if(t){var i=ct(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return mh(this,u)}}function wh(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(f){return function(c){return l([f,c])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(c){f=[6,c],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var bh=function(e){ph(n,e);var t=Fh(n);function n(r){hh(this,n);var u;return u=t.call(this,r),mn(vn(u),"controlType","list"),mn(vn(u),"props",void 0),u.props=new ch(vn(u),r==null?void 0:r.props,"Designer"),u}return dh(n,[{key:"validate",value:function(u,i){var o=this,s=this,l=function(){return bt(ct(n.prototype),"validate",o)};return fh(function(){return wh(this,function(f){switch(f.label){case 0:return[4,l().call(s,u)];case 1:return f.sent(),[4,Promise.all(s.props.headers.map(function(c){return c.validate(u,i)}))];case 2:return f.sent(),[2,!0]}})})()}},{key:"toDataBindModel",value:function(){var u=bt(ct(n.prototype),"toDataBindModel",this).call(this),i=u?[u]:[],o=this.id;return this.props.headers.reduce(function(s,l){var f=l.toDataBindModel(o);if(Array.isArray(f)){var c=f.filter(function(a){return!!a});return si(s).concat(si(c))}return f&&s.push(f),s},i)}},{key:"toSchema",value:function(){var u,i,o=bt(ct(n.prototype),"toSchema",this).call(this),s=this.props.headers.map(function(f){return f.toSchema()}),l=(i=this.props)===null||i===void 0||(u=i.footers)===null||u===void 0?void 0:u.map(function(f){if(f)return f.toSchema()});return ai(oi({},o),{props:ai(oi({},this.props),{headers:s,footers:l})})}}]),n}(Ae);mn(bh,"controlFieldType",ue.LIST);function Ie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ci(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yn(e){return yn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yn(e)}function li(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Or(e,t)}function Bh(e,t){return t&&(_h(t)==="object"||typeof t=="function")?t:Ie(e)}function Or(e,t){return Or=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Or(e,t)}function _h(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Sh(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function fi(e){var t=Sh();return function(){var r=yn(e),u;if(t){var i=yn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Bh(this,u)}}var Mh=function(e){li(n,e);var t=fi(n);function n(r){ci(this,n);var u;return u=t.call(this,r),Ne(Ie(u),"caption",{type:"string",required:!0,message:_e.getMessage("pleaseEnterCaption")}),Ne(Ie(u),"width",{type:"number",required:!1,message:_e.getMessage("pleaseEnterColumnWidth")}),u.width.required=r.widthType==="px",u}return n}(lr),Ih=function(e){li(n,e);var t=fi(n);function n(r){ci(this,n);var u;u=t.call(this,r),Ne(Ie(u),"widthType",void 0),Ne(Ie(u),"width",void 0),Ne(Ie(u),"caption",void 0),Ne(Ie(u),"dataBind",void 0),Ne(Ie(u),"autoWidth",void 0),Ne(Ie(u),"fixed",void 0),Ne(Ie(u),"sort",void 0),Ne(Ie(u),"align",void 0),Ne(Ie(u),"colSpan",void 0),Ne(Ie(u),"autoHeight",void 0);var i;u.width=(i=r==null?void 0:r.width)!==null&&i!==void 0?i:150,u.widthType=(r==null?void 0:r.widthType)||"auto";var o;u.caption=(o=r==null?void 0:r.caption)!==null&&o!==void 0?o:"";var s;u.fixed=(s=r==null?void 0:r.fixed)!==null&&s!==void 0?s:"none",u.autoWidth=new wf(r==null?void 0:r.autoWidth),u.dataBind=new nr(r==null?void 0:r.dataBind);var l;u.sort=(l=r==null?void 0:r.sort)!==null&&l!==void 0?l:!0,u.align=r==null?void 0:r.align,u.colSpan=r==null?void 0:r.colSpan;var f;return u.autoHeight=(f=r==null?void 0:r.autoHeight)!==null&&f!==void 0?f:!1,u}return n}(Xe);Ne(Ih,"Rules",Mh);function En(e){return e.controlType===G.LAYOUT||e.controlType===G.WRAP||e.controlType===G.LIST||e.controlType===G.SEARCH}function Bt(e,t){Array.isArray(e)&&e.map(n=>{n.type===ce.SUBTABLE?t(n,[]):En(n)?Bt(n==null?void 0:n.children,t):n.controlType===G.FORM&&t(n)})}function _t(e,t){Array.isArray(e)&&e.map(n=>{n.type===ce.DATA_VIEW||n.type===ce.SIMPLE_SEARCH?t(n):En(n)&&_t(n==null?void 0:n.children,t)})}let hi=0;function Rr(e=""){const t=Date.now(),n=Math.floor(Math.random()*1e9);return hi++,e+"_"+n+hi+String(t)}class Oe extends Ut{constructor(t){super("Runtime"),this._flatInstances=[],this._instanceMap={},this._controlParentIdMap={};const{schema:n}=t;this._schema=n,this._instance=this.createControl(n,t.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const t=[],n={},r={};return An(this._instance,"",(u,i)=>{i&&(r[u.id]=i),n[u.id]||(n[u.id]=[]),!(u.type==="subtable-column"&&n[u.id].length>0)&&(t.push(u),n[u.id].push(u))}),this._flatInstances=t,this._instanceMap=n,this._controlParentIdMap=r,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 t={},n={};return _t(this._instance,r=>{let u=Oe.staticGetRules(r.type,r.props);n[r.id]=re(u[0]),t[r.id]=re(u[0]),Bt(r.children,i=>{(i.controlType===G.FORM||i.controlType===G.LIST)&&(pi(n[r.id].fields,i),Di(t[r.id].fields,i))})}),{rules:n,antdRules:t}}get rules(){let t={};return _t(this._instance,n=>{let r=Oe.staticGetRules(n.type,n.props);t[n.id]=r[0],Bt(n.children,u=>{(u.controlType===G.FORM||u.controlType===G.LIST)&&pi(t[n.id].fields,u)})}),t}get antdRules(){let t={};return _t(this._instance,n=>{let r=Oe.staticGetRules(n.type,n.props);t[n.id]=r[0],Bt(n.children,u=>{(u.controlType===G.FORM||u.controlType===G.LIST)&&Di(t[n.id].fields,u)})}),t}}function An(e,t,n){(Array.isArray(e)?e:[e]).map(u=>{if(n(u,t),En(u)){const i=u;i.children||(i.children=[]),An(i.children,i.id,n)}di(u,"headers")&&An(u.props.headers,u.id,n),di(u,"footers")&&An(u.props.footers,u.id,n)})}function di(e,t){return t in e.props&&Dt(e.props[t])}function Pr(e){return e.props.isHide?!0:e.parent===null||e.parent===void 0?!1:Pr(e.parent)}function pi(e,t){if(Pr(t))return;let n=Oe.staticGetRules(t.type,t.props);if(t.controlType===G.FORM)e[t.id]=n;else if(t.type===ce.SUBTABLE){e[t.id]=n;const r={type:"array",fields:{}};t.children.forEach((u,i)=>{nt(u.children,o=>{if(r.fields){r.fields[i]||(r.fields[i]={type:"object",required:!0,fields:{}});let s=Oe.staticGetRules(o.type,o.props);r.fields[i].fields[o.id]=s}})}),e[t.id].push(r)}}function Di(e,t){if(Pr(t))return;let n=Oe.staticGetRules(t.type,t.props);t.controlType===G.FORM?e[t.id]=n:t.type===ce.SUBTABLE&&t.children.length&&(e[t.id]=[],t.children.forEach(r=>{let u={};nt(r.children,i=>{let o=Oe.staticGetRules(i.type,i.props);u[i.id]=o}),e[t.id].push(u)}))}class Nh{constructor(t){const{state:n,emptyState:r,databindMapping:u,controlidMapping:i,defaultState:o}=xh(t.instance);this.emptyState=r,this.state=n,this.dataBindMapping=u,this.controlIdMapping=i,this.defaultState=o}setState(t,n,r){const u=this.controlIdMapping[t];u!==void 0?this.state[u.dataView][t]=n:r!==void 0?Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,s=this.controlIdMapping[i].children;s!==void 0&&Object.keys(s).map(l=>{l===t&&this.state[o][i][r]&&(this.state[o][i][r][t]=n)})}):this.state[t]=n}getState(t,n){if(this.state[t]!==void 0)return this.state[t];{const u=this.controlIdMapping[t];if(u!==void 0)return this.state[u.dataView][t];if(n!==void 0){let i;return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,l=this.controlIdMapping[o].children;l!==void 0&&Object.keys(l).map(f=>{var c;f===t&&(i=(c=this.state[s][o][n])==null?void 0:c[t])})}),i}else{let i=[];return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,l=this.controlIdMapping[o].children;l!==void 0&&Object.keys(l).map(f=>{f===t&&this.state[s][o].map(c=>{i.push(c[t])})})}),i}}}getEmptyState(t){if(this.emptyState[t]!==void 0)return this.emptyState[t];{const r=this.controlIdMapping[t];if(r!==void 0){const u=this.emptyState[r.dataView][t];return"children"in r&&Object.assign(u,{uid:"new:"+Rr("uid")}),u}else{let u;return Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,s=this.controlIdMapping[i].children;s!==void 0&&Object.keys(s).map(l=>{l===t&&(u=this.emptyState[o][i][t])})}),u}}}getDataBind(t){let n=this.controlIdMapping[t];if(n)return n.dataBind;e:for(let r in this.controlIdMapping){const u=this.controlIdMapping[r];if(u.children){for(let i in u.children)if(i===t){n=u.children[i];break e}}}return n==null?void 0:n.dataBind}}function xh(e){let t={},n={},r={},u={},i={};return _t(e,o=>{const s=o.id,l={},f={};Bt([o],(c,a)=>{Oh(l,f,c),Rh(r,s,c),Ph(u,s,c)}),t[s]={},i[s]=l,n[s]=f}),{state:t,defaultState:i,emptyState:n,databindMapping:r,controlidMapping:u}}function Oh(e,t,n){var r,u;if(n.controlType===G.FORM)e[n.id]=re(n.props.defaultValue),t[n.id]=re(n.props.defaultValue);else{const i={};nt(n.props.headers,o=>{i[o.id]=re(o.props.defaultValue)}),e[n.id]=(u=new Array((r=n.props.defaultRows)!=null?r:1).fill(0).map(()=>ie({uid:"new:"+Rr("uid")},re(i))))!=null?u:[],t[n.id]=i}}function Rh(e,t,n){var r,u;if(n.controlType===G.FORM)je(n.props.dataBind)?((u=(r=n.props)==null?void 0:r.dataBind)==null?void 0:u.dataCode)===void 0||(e[n.props.dataBind.dataCode]===void 0&&(e[n.props.dataBind.dataCode]={controlId:t,fields:[],dataViewId:t}),e[n.props.dataBind.dataCode].fields.push({fieldCode:n.props.dataBind.fieldCode,controlId:n.id,dataBind:n.props.dataBind,dataViewId:[t]})):Object.keys(n.props.dataBind).map(i=>{const o=n.props.dataBind,s=o[i].dataCode;s!==void 0&&(e[s]===void 0&&(e[s]={controlId:n.id,fields:[],dataViewId:t}),e[s].fields.push({fieldCode:o[i].fieldCode,controlId:n.id,dataBind:o,dataViewId:[t]}))});else{if(n.props.datasourceBind.dataCode===""){tt(`datasourceBind.dataCode is empty! maybe in preview mode, control:${n.id} type:${n.type}`);return}e[n.props.datasourceBind.dataCode]={controlId:n.id,fields:[],dataViewId:t};const i=n.id;nt(n.props.headers,o=>{je(o.props.dataBind)?e[o.props.dataBind.dataCode].fields.push({fieldCode:o.props.dataBind.fieldCode,controlId:o.id,dataBind:o.props.dataBind,dataViewId:[t,i]}):Object.keys(o.props.dataBind).map(s=>{const l=o.props.dataBind,f=l[s].dataCode;e[f].fields.push({fieldCode:l[s].fieldCode,controlId:o.id,dataBind:l,dataViewId:[t,i]})})})}}function Ph(e,t,n){n.controlType===G.FORM?e[n.id]={dataBind:n.props.dataBind,options:[],dataView:t}:n.type===ce.SUBTABLE&&(e[n.id]={dataBind:new nr({dataCode:n.props.datasourceBind.dataCode,fieldCode:""}),dataView:t,children:{},options:[]},nt(n.props.headers,r=>{var u,i;Object.assign((i=(u=e[n.id])==null?void 0:u.children)!=null?i:{},{[r.id]:{dataBind:r.props.dataBind}})}))}const gi=["splice","push","shift","pop","unshift","reverse"],$r=Symbol("__engineProxy__"),Tr=Symbol("__engineTarget__"),vi=Symbol("__engineArrayBeforeSetCallbackFlag__"),mi=Symbol("__engineProxyThisKey__"),Le={type:"",args:[],callback:yi};function yi(){}kh();function $h(e,t,n,r,u){if(Le.type){Le.callback=u.bind(null,e,r);return}const i=Number(t);if(i>e.length){Ge(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${gi.join(",")} for array operations`);return}if(!(Number.isNaN(i)&&t!=="length"))if(t==="length"){const s=n,l=e.length;if(s>e.length){Ge("Do not directly modify the length of the array data, please add new rows");return}return s===e.length?void 0:()=>u.call(null,e,r,"splice",[s,l-s])}else return i===e.length?()=>u.call(null,e,r,"push",[n]):()=>u.call(null,e,r,"splice",[i,1,n])}function Th(e,t,n){return{__engineProxy__:!0,get(r,u,i){return u===$r?!0:u===Tr?r:Array.isArray(r)&&u===vi?n:u===mi?e:Reflect.get(r,u,i)},set(r,u,i,o){var h;let s=i;const l=r[u],f=e===""?u:e+"."+u;function c(d){if(typeof d=="object"&&d!==null)return d[$r]!==!0?Cn(d,t,n,f):Cn(d[Tr],t,n,f)}s=(h=c(i))!=null?h:s;let a;if(Array.isArray(r)){const d=$h(r,u,i,e,t);a=Reflect.set(r,u,s,o),d&&d()}else{try{let d=s;if(s=n.call(null,r,f,s,l),d!==s){const D=c(s);D!==void 0&&(s=D)}}catch(d){return on(`${f} set error ${d}`),!0}a=Reflect.set(r,u,s,o),t.call(null,r,f,i,l)}return a||!0}}}function Cn(e,t,n,r=""){if(Object.isFrozen(e))return e;for(let u in e){const i=r===""?u:r+"."+u,o=e[u];typeof o=="object"&&o!==null&&(e[u]=Cn(o,t,n,i))}return new Proxy(e,Th(r,t,n))}function Ei(e){const t=[];return e.forEach(n=>{t.push(n),(n.controlType==="layout"||n.controlType==="wrap")&&t.push(...Ei(n.children))}),t}function jr(e,t,n){if(t==="")return;const r=t.split(".");if(r.length===0)return;const u=r[0],i=r.slice(1),o=n[u]?n[u][0]:void 0;return i.length===0?o:i.reduce((s,l)=>{var a,h;const f=Number(l);if(Number.isNaN(f)&&s){const d=s!=null&&s.children?Ei(s.children):void 0,D=d==null?void 0:d.find(g=>g.id===l);return D||(s.controlType===G.FORM?s:void 0)}else return(h=(a=s==null?void 0:s.children)==null?void 0:a[f])!=null?h:s},o)}function jh(e,t){return["push","unshift"].includes(e)?t:e==="splice"?t.slice(2):[]}function Lh(e,t,n){if(["push","unshift"].includes(e))return n;if(e==="splice")return t.slice(0,2).concat(n)}function kh(){gi.forEach(e=>{const t=Array.prototype[e];Array.prototype[e]=function(...n){var r;if(this[$r]){let u;const i=jh(e,n);if(i.length){const o=(r=this[vi])==null?void 0:r.call(this,this[Tr],this[mi],i),s=Lh(e,n,o);Le.type=e,Le.args=s,u=t.apply(this,s)}else Le.type=e,Le.args=n,u=t.apply(this,n);return typeof Le.callback=="function"&&Le.callback(e,n,u),Le.type="",Le.args=[],Le.callback=yi,u}else return t.apply(this,n)}})}class qh{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(t,n,...r){return Ze(this,null,function*(){const u=this.actionMap.get(t);if(!!u)try{return yield u.func.call(null,n,...r)}catch(i){on(`${u.id} Exception during calling action: ${i}`)}})}addAction(t,n){this.actionMap.has(t)&&Ge("duplicated action key");const r=new Vh(t,n);this.actionMap.set(t,r)}}class Vh{constructor(t,n){this.id="",this.id=t,this.func=n}}class Uh{constructor(t){this._dataStore=new Map,this.executer=t}add(t,n){this._dataStore.set(t,n)}get(t){let n=this._dataStore.get(t);return re(n)}remove(t){this._dataStore.delete(t)}getRemoteData(t){return Ze(this,null,function*(){return this.executer===void 0?(on("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(t)})}}class lt{}class Gt extends lt{validate(t){return Ee(t)}transform(t){if(t==null)return"";if(!Te(t)&&!vu(t))return String(t);if(ef(t))return JSON.stringify(t);throw`${t} is not a string`}}class Lr extends lt{validate(t){return an(t)||t===""}transform(t){if(t==null)return"";const n=!Te(t)&&!vu(t)?Number(t):void 0;if(!Number.isNaN(n)&&n!==void 0)return n;throw`${t} is not a number`}}class Hh extends lt{validate(t){return tf(t)}transform(t){if(t==null)return[];function n(r){return r.map(u=>u?String(u):"")}if(Dt(t))return n(t);if(Ee(t)&&mu(t))try{const r=JSON.parse(t);if(Array.isArray(r))return n(r)}catch(r){}return[String(t)]}}class zh extends lt{validate(t){return nf(t)}transform(t){if(t==null)return[];function n(u){return u.map(i=>!i&&i!==0?"":Number(i)).filter(i=>i===""||!Number.isNaN(i))}if(Dt(t))return n(t);if(Ee(t)&&mu(t))try{const u=JSON.parse(t);if(Dt(u))return n(u)}catch(u){}const r=Number(t);if(Number.isNaN(r))throw`${t} is not a number array`;return[r]}}class Wh extends lt{validate(t){return Te(t)&&"amount"in t&&an(t.amount)&&"currency"in t&&Ee(t.currency)}transform(t,n){if(t==null||t==="")return new rr({currency:n==null?void 0:n.currency});let r;if(Te(t)&&(r=new rr(ie(ie({},n),t))),Ee(t)&&sn(t))try{const u=JSON.parse(t);r=new rr(ie(ie({},n),u))}catch(u){}if(r){const u=new Lr,i=new Gt;return u.validate(r.amount)||(r.amount=u.transform(r.amount)),i.validate(r.currency)||(r.currency=i.transform(r.currency)),r}throw`${t} is not a { amount: number, currency: string } object`}}class Zh extends lt{validate(t){return Te(t)&&"min"in t&&Ee(t.min)&&"max"in t&&Ee(t.max)}transform(t,n){if(t==null||t==="")return new ur;let r;if(Te(t)&&(r=new ur(ie(ie({},n),t))),Ee(t)&&sn(t))try{const u=JSON.parse(t);r=new ur(ie(ie({},n),u))}catch(u){}if(r){const u=new Gt;return u.validate(r.min)||(r.min=u.transform(r.min)),u.validate(r.max)||(r.max=u.transform(r.max)),r}throw`${t} is not a { min: string, max: string } object`}}class Jh extends lt{validate(t){return Te(t)&&"result"in t&&an(t.result)&&"unit"in t&&Ee(t.unit)}transform(t,n){if(t==null||t==="")return new or({unit:n==null?void 0:n.unit});let r;if(Te(t)&&(r=new or(ie(ie({},n),t))),Ee(t)&&sn(t))try{const u=JSON.parse(t);r=new or(ie(ie({},n),u))}catch(u){}if(r){const u=new Lr,i=new Gt;return u.validate(r.result)||(r.result=u.transform(r.result)),i.validate(r.unit)||(r.unit=i.transform(r.unit)),r}throw`${t} is not a { result: string, unit: string } object`}}class Gh extends lt{validate(t){return!!Te(t)}transform(t,n){if(t==null||t==="")return new ir;let r;if(Te(t)&&(r=new ir(ie(ie({},n),Gn.exports.camelizeKeys(t)))),Ee(t)&&sn(t))try{const u=JSON.parse(t);r=new ir(ie(ie({},n),Gn.exports.camelizeKeys(u)))}catch(u){}if(r){const u=new Gt;return u.validate(r.city)||(r.city=u.transform(r.city)),u.validate(r.district)||(r.district=u.transform(r.district)),u.validate(r.province)||(r.province=u.transform(r.province)),r}throw`${t} is not a { city: string, district: string, province: string } object`}}class Xh{static getValueChecker(t){let n;switch(t){case ue.VARCHAR:case ue.TIMESTAMP:case ue.TEXT:case ue.RELATION:case ue.AUTO_NUMBER:n=new Gt;break;case ue.DECIMAL:n=new Lr;break;case ue.EMPLOYEES:case ue.DEPARTMENTS:case ue.IMAGE:case ue.FILE:case ue.ARRAY:n=new Hh;break;case ue.MONEY:n=new Wh;break;case ue.TIMESCOPE:n=new Zh;break;case ue.CALC:n=new Jh;break;case ue.DECIMAL_RANGE:n=new zh;break;case ue.ADDRESS:n=new Gh;break}return n}}function Kh(e){if(["min","max","currency","unit"].includes(e))return ue.VARCHAR;if(["result","amount"].includes(e))return ue.DECIMAL}function Ai(e,t,n,r){var o;let u=(o=Kh(t))!=null?o:e,i=Xh.getValueChecker(u);if(!i||i.validate(n))return n;try{const s=i.transform(n,r);return s!==void 0?s:n}catch(s){throw`${t} ${s}`}}function Qh(e,t,n){return Object.entries(e).reduce((r,[u,i])=>{const o=t[u];return r[u]=Ai(i,u,o,n[u]),r},Object.assign({},t))}typeof window!="undefined"&&(window.engines={});let St=null,Xt="";class kr extends Cu{constructor(t){super(),this.rawStore={},this.isMounted=!1,this.id=rn(8),this.__pluginsApplied=!1,this.actionManager=new qh,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(t);const{autoMount:n=!0,schema:r,beforeCreateInstance:u,externalParams:i,language:o=uu,debug:s=!1}=this.$options;_e.setLocale(o),this.debug=s,this.runtime=new Oe({schema:r,beforeCreateInstance:u}),this.externalParams=i,this.store=new Nh({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),n&&this.mount()}debugLog(...t){this.debug&&Wn(...t)}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}registerControl(...t){return this.runtime.register(...t),this}static register(t){return Oe.register(t,"Runtime")}static judgeControlIsRegistered(t){return Oe.staticRegisteredTypes.has(t.Runtime.controlType)}mount(){this.debugLog("engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528");const{plugins:t=[]}=this.$options;this._handlerProxyState(),this.__plugins=t,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=Cn(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(t,n,r,u){const i=jr(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return r;if(this.assertInstance(i,ce.SUBTABLE)){if(r===null)return[];const l=i.props.headers.reduce((c,a)=>{const h=a.children[0];return h&&h.controlType===G.FORM&&(c[h.id]=h.fieldType),c},{}),f=this.getEmptyState(i.id);return r==null?void 0:r.map(c=>Qh(l,c,f))}const o=n.split("."),s=o[o.length-1];try{return Ai(i.fieldType,s,r,u)}catch(l){throw tt(`the id=${i.id}'s instance setState error, %o ${l}.`,r),l}}_proxyStateCallback(t,n,r,u,i){Array.isArray(t)?this._handlerArrayUpdate(t,n,r,u,i):this._handlerObjectUpdate(t,n,r,u)}_handlerArrayUpdate(t,n,r,u,i){const o=jr(this.runtime.flatInstances,n,this.runtime.instanceMap);if((o==null?void 0:o.controlType)!==G.LIST)return;const s=d=>{const D=[];for(let g=0;g<d;g++){const A=this.listControlCreateRow(o,"subtable-row");A&&D.push(A)}return D},l=St;let f=[],c=[],a=[],h=!1;if(r&&u){switch(r){case"push":case"unshift":const d=u.length;f=s(d),c=u,o.children[r](...f),this.runtime.getFlatInstances();break;case"splice":if(u.length>2){const D=u.length-2,g=u.slice(2);f=s(D),c=g;const A=u[0],p=u[1];o.children[r](A,p,...f),this.runtime.getFlatInstances()}else{const D=u[0],g=u[1];D+g===o.children.length-1&&(h=!0),o.children[r](...u),this.runtime.getFlatInstances()}break;default:o.children[r](...u),this.runtime.getFlatInstances();break}r==="splice"?a=i:["pop","shift"].includes(r)&&(a=[i]),this.emit("list-change",{instance:o,value:this.getState(o.id),options:Object.assign({},l,{changed:f,data:c,deleted:a!=null?a:[],jsonValue:JSON.stringify(this.getState(o.id)),isDeleteLastOne:h,type:r,args:u})}),St=null}}_handlerObjectUpdate(t,n,r,u){const i=jr(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return;const o=this.getInstanceRowIndex(i),s=St||{};if(i.controlType===G.LIST){i.children.length=0;const l=r;let f=[];for(let a=0;a<l.length;a++){const h=this.listControlCreateRow(i,"subtable-row");h&&f.push(h)}i.children.push(...f),this.runtime.getFlatInstances();let c=u!=null?u:[];(s==null?void 0:s.setData)===!0&&(c=[]),this.emit("list-change",{instance:i,value:r,options:ru(ie({},s),{changed:f,data:l,deleted:c,type:"push"})})}else this.emit("change",{instance:i,value:this.getState(i.id,o),rowIndex:o,options:ru(ie({},s),{oldValue:u})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{Xt=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this)}catch(r){Ge(`${Xt} Plugin apply Error
2
2
  ${r}`)}finally{Xt=""}}),this.__pluginsApplied=!0)}listControlCreateRow(t,n){let r;if(n==="subtable-row"?r={children:[],controlType:G.LAYOUT,id:rn(),type:"subtable-row",props:{caption:"",isHide:!1,style:{height:"",heightConfig:"fill",width:"",widthConfig:"fill"}},fieldType:void 0,customEvents:[],pageStatus:0,rules:[],parent:void 0}:r=this.runtime.createControlInstance(n),!!r){if(r.controlType===G.LAYOUT){const u=r,i=re(t.props.headers),o=this.createControl(i);for(let s of o)s.parent||this.runtime.resetInstanceParent(s,u);u.children.push(...o)}return r.parent=t,r}}listControlAddRow(t,n="subtable-row"){const r=this.listControlCreateRow(t,n);!r||t.children.push(r)}emit(t,n){return Ze(this,null,function*(){if(t==="engine-mounted"){if(this.isMounted)return tt("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 r,u;this.isMounted||(u=new Promise(o=>{r=o}),this._jobTasks.push(u));const i=yield $o(kr.prototype,this,"emit").call(this,t,n);return r&&u&&(r(),this._jobTasks.splice(this._jobTasks.indexOf(u),1)),i})}on(t,n){return Xt&&(n.applyingPluginName=Xt),super.on(t,n)}createControl(...t){return this.runtime.createControl(...t)}createInstance(t,n){return this.runtime.createControlInstance(t,n)}schemaEvent(t,n){this.emit(t,n)}updateInstanceProps(t,n,r,u){return this.setInstance(t,n,r,u)}getRule(t,n){return Oe.staticGetRules(t,n)}getAllRules(t){var r,u;const n=this.runtime.allRules;return t===void 0?n:{rules:(r=n.rules[t])==null?void 0:r.fields,antdRules:(u=n.antdRules[t])==null?void 0:u.fields}}getRules(t){var n;return t===void 0?this.runtime.rules:(n=this.runtime.rules[t])==null?void 0:n.fields}getAntdRules(t){var n;return t===void 0?this.runtime.antdRules:(n=this.runtime.antdRules[t])==null?void 0:n.fields}getState(t,n){return t===void 0?this.store.state:this.store.getState(t,n)}getEmptyState(t){return re(t===void 0?this.store.emptyState:this.store.getEmptyState(t))}setPayloadOptions(t){St=t}setState(t,n,r,u){St=u,this.debugLog("[%o]: \u89E6\u53D1setState, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o, options=%o",t,n,r,u),this.store.setState(t,n,r),this.debugLog("[%o]: setState\u5B8C\u6210, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o",t,n,r),St=null}setStates(t,n,r){let u=t!=null?t:{};Object.keys(u).forEach(i=>{Object.entries(this.store.controlIdMapping).forEach(([o,s])=>{if(s.dataView===i){const l=u[i][o];l!==void 0&&this.setState(o,l,n,r)}else(o===i||s.children&&s.children[i])&&u[i]!==void 0&&this.setState(i,u[i],n,r)})})}getField(t,n,r){if(!n){const l=this.getDataBindMapping(t);if(l){const{controlId:f}=l;return this.getState(f)}return}const u=this.getDataBindMapping(t,n);if(!u)return;const{dataBind:i,controlId:o}=u,s=this.getState(o,r);return je(i)?s:Object.entries(i).reduce((l,[f,c])=>c.fieldCode===n?l[f]:l,s)}getData(t){var u,i,o,s,l,f,c,a;if(!t)return;let n=this.getDataBindMapping(t),r=this.getControlIdMapping();if(n){const{controlId:h}=n,d=this.getField(t);if(Array.isArray(d))return d.map(g=>{var p,m,y,C,w,S;let A={};for(let I in g){const j=(y=(m=(p=r[h])==null?void 0:p.children[I])==null?void 0:m.dataBind)==null?void 0:y.fieldCode;if(j!==""){if(j)A[j]=g[I];else if((C=r[h])!=null&&C.children[I])for(let U in g[I])A[(S=(w=r[h])==null?void 0:w.children[I])==null?void 0:S.dataBind[U].fieldCode]=g[I][U]}}return A});{let D={};for(let g in d)if((i=(u=r[g])==null?void 0:u.dataBind)!=null&&i.fieldCode)D[(o=r[g])==null?void 0:o.dataBind.fieldCode]=d[g];else if((l=(s=r[g])==null?void 0:s.dataBind)!=null&&l.dataCode)D[(f=r[g])==null?void 0:f.dataBind.dataCode]=d[g].map(A=>{var m,y;let p={};for(let C in A){const w=(m=r[g].children[C])==null?void 0:m.dataBind.fieldCode;if(w!=="")if(w)p[w]=A[C];else for(let S in A[C])p[(y=r[g].children[C])==null?void 0:y.dataBind[S].fieldCode]=A[C][S]}return p});else if(r[g])for(let A in d[g])D[(a=(c=r[g])==null?void 0:c.dataBind[A])==null?void 0:a.fieldCode]=d[g][A];return D}}}setField(t,n,r,u,i){var f;const o=this.getDataBindMapping(t,n);if(!o)return;const{dataBind:s,controlId:l}=o;if(je(s))this.setState(l,r,u,i);else{const c=(f=re(this.getState(l,u)))!=null?f:this.getEmptyState(l),a=Object.entries(s).reduce((h,[d,D])=>(D.fieldCode===n&&(h[d]=r),h),c);this.setState(l,a,u,i)}}setFields(t,n,r,u){const i=this.getDataBindMapping(t);if(!i)return;let o=[];i.fields.forEach(s=>{var a;const{dataBind:l,controlId:f,fieldCode:c}=s;if(!o.includes(c)&&!!Object.hasOwnProperty.call(n,c))if(je(l))this.setState(f,n[c],r,u);else{const h=(a=re(this.getState(f,r)))!=null?a:this.getEmptyState(f),d=Object.entries(l).reduce((D,[g,A])=>{o.push(A.fieldCode);const p=n[A.fieldCode];return p!==void 0&&(D[g]=p),D},h);this.setState(s.controlId,d,r,u)}})}buildFields(t,n){const r=this.getDataBindMapping(t);if(!r||!r.fields)return;let u=[];const i={};return r.fields.forEach(o=>{const{dataBind:s,controlId:l,fieldCode:f}=o;if(!u.includes(f)&&!!Object.hasOwnProperty.call(n,f))if(je(s))i[l]=n[f];else{const c=this.getEmptyState(l);i[o.controlId]=Object.entries(s).reduce((a,[h,d])=>{u.push(d.fieldCode);const D=n[d.fieldCode];return D!==void 0&&(a[h]=D),a},c)}}),i}setData(t,n){this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",t,n);const r=n==null?void 0:n.onlySetData;let u=this.store.defaultState;r===!0&&(u={}),Object.keys(t).map(i=>{var s,l,f,c;const o=t[i];if(Array.isArray(o)){const a=this.getDataBindMapping(i);if(!a)return;u[a.dataViewId]||(u[a.dataViewId]={}),o.length?u[a.dataViewId][a.controlId]=[]:u[a.dataViewId][a.controlId]=(s=u[a.dataViewId][a.controlId])!=null?s:[];let h={},d={};o.map(D=>{let g=re(this.store.emptyState[a.dataViewId][a.controlId]),A=[];Object.keys(D).map(p=>{var y,C,w;if(A.includes(p))return;d.hasOwnProperty(p)===!1&&(d[p]=(C=(y=this.store.dataBindMapping[i])==null?void 0:y.fields)==null?void 0:C.find(S=>S.fieldCode===p));const m=d[p];if(m){if(je(m.dataBind)&&D[p]!==void 0)g[m.controlId]=D[p];else if(!je(m.dataBind)){h.hasOwnProperty(m.controlId)===!1&&(h[m.controlId]=re((w=this.getEmptyState(m.controlId))!=null?w:{}));let S=h[m.controlId];Object.keys(m.dataBind).map(I=>{const j=m.dataBind[I];D[j.fieldCode]!==void 0&&(S[I]=D[j.fieldCode]),A.push(j.fieldCode)}),g[m.controlId]=S}}else p==="uid"&&D.uid!==void 0&&(g.uid=D.uid)}),u[a.dataViewId][a.controlId].push(g)})}else if(o){let a=[];const h=re(this.store.emptyState);(l=Object.keys(o))!=null&&l.length&&Object.keys(o).map(D=>{var A;if(a.includes(D))return;const g=this.getDataBindMapping(i,D);if(g){if(u[g.dataViewId[0]]||(u[g.dataViewId[0]]={}),je(g.dataBind)&&o[D]!==void 0)u[g.dataViewId[0]][g.controlId]=o[D]!==void 0?o[D]:h[g.dataViewId[0]][g.controlId];else if(!je(g.dataBind)){let p=(A=this.getEmptyState(g.controlId))!=null?A:{};Object.keys(g.dataBind).map(m=>{const y=g.dataBind[m];o[y.fieldCode]!==void 0&&(p[m]=o[y.fieldCode]),a.push(y.fieldCode)}),u[g.dataViewId[0]][g.controlId]=p}}});const d=this.getDataBindMapping(i);if(d){const D=(f=d==null?void 0:d.fields)==null?void 0:f.map(p=>p==null?void 0:p.controlId),g=this.getEmptyState(d==null?void 0:d.controlId),A=Object.keys((c=u==null?void 0:u[d==null?void 0:d.controlId])!=null?c:{});D==null||D.forEach(p=>{!A.includes(p)&&p!=="uid"&&u[d==null?void 0:d.controlId]&&(Object.keys(u).length?Object.assign(u[d==null?void 0:d.controlId],{[p]:g[p]}):Object.assign(u,{[d.controlId]:{[p]:g[p]}}))}),this.debugLog("engine setData\u65B9\u6CD5\u9ED8\u8BA4\u503C\u53CA\u8868\u5355\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",u)}}}),this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",u),this.setStates(u,void 0,ie({setData:!0},n)),this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\u5B8C\u6210\u3002")}getDataBind(t){return this.store.getDataBind(t)}getInstance(t,n){const r=this.getInstances(t,n===-1);if(r.length>0)return n!==void 0?n===-1?r[0]:r[n]:r[0]}getInstances(t,n=!1){var u,i;if(t===void 0)return this.runtime.flatInstances;const r=Array.from(this.runtime.instanceMap[t]||[]);if(n)if(r.length){const o=r[0];if(this.inList(o.id)!==void 0){const s=this.getInstanceInSubtableHeader(o);s&&r.unshift(s)}}else{const o=(u=this.getControlIdMapping())!=null?u:{},[s]=(i=Object.entries(o).find(([l,f])=>f.children&&t in f.children))!=null?i:[];if(s){const f=this.getInstance(s).props.headers.find(c=>c.children.find(a=>a.id===t));if(f){const c=f.children.find(a=>a.id===t);c&&r.unshift(c)}}}return r}setInstance(t,n,r,u){try{if(typeof t=="string"&&u===-1)this.getInstances(t,u===-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,n,r),Jn(o.props,n,r),this.schemaEvent("schema-change",{instance:o,props:n,value:r,rowIndex:u}))});else{let i;if(typeof t=="string"?i=this.getInstance(t,u):i=t,!i)return;this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",i.id,i,n,r),Jn(i.props,n,r),this.schemaEvent("schema-change",{instance:i,props:n,value:r,rowIndex:u})}}catch(i){throw i}}getControlIdMapping(){return this.store.controlIdMapping}getDataBindMapping(t,n){if(!t&&!n)return this.store.dataBindMapping;const r=this.store.dataBindMapping[t];if(!r){tt(`No corresponding dataCode=${t} was found`);return}if(!n)return r;const u=r.fields.find(i=>i.fieldCode===n);if(!u){tt(`No corresponding fieldCode=${n} was found`);return}return u}getAction(){return this.actionManager}initDataManager(t){this.dataManager=new Uh(t)}getDataManager(){return this.dataManager}assertInstance(t,n){return Ee(n)?t.type===n:n.includes(t.type)}assertInstanceIsCustomControl(t){return!rf(Ee(t)?t:t.type)}getInstanceRowIndex(t){if(!t.parent)return;let n;if(this.assertInstance(t.parent,ce.SUBTABLE_COLUMN)&&this.assertInstance(t.parent.parent,ce.SUBTABLE))n=-1;else if(this.getInstanceParentControl(t,ce.SUBTABLE_COLUMN)){const u=this.runtime.instanceMap[t.id];if(Object.prototype.toString.call(u)==="[object Array]"){const i=u.findIndex(o=>o===t);i>-1&&(n=i)}}return n}getInstanceParentControl(t,n){if(!!t.parent)return this.assertInstance(t.parent,n)?t.parent:this.getInstanceParentControl(t.parent,n)}getInstanceInSubtableHeader(t){const n=this.getInstanceRowIndex(t);if(n===void 0)return;if(n===-1)return t;const r=this.assertInstance(t,ce.SUBTABLE_COLUMN)?t:this.getInstanceParentControl(t,ce.SUBTABLE_COLUMN);if(!r)return;const i=this.getInstanceParentControl(t,ce.SUBTABLE).props.headers.find(o=>o.id===r.id);if(!!i)return i.children.find(o=>o.id===t.id)}setControlConfig(...t){return this.runtime.registerControlConfig(...t)}getControlConfig(t){return this.runtime.getControlConfig(t)}inList(t){var u;const n=(u=this.store.controlIdMapping)!=null?u:{};let r;return Object.keys(n).some(i=>{var s,l;const o=(l=(s=n[i])==null?void 0:s.children)==null?void 0:l.hasOwnProperty(t);return o&&(r=i),o}),r}}class Yh{}class ed{constructor(t,n,r){this.config=t,this.env=n,this.eventJs=r}apply(t){this.engine=t;const n=this.config;if(!n)return;const r=t.getAction();if(this.eventJs){this.eventJs.exportsFun({ctx:t,utils:r.actionUtils});for(let[u,i]of Object.entries(this.eventJs))r.addAction(u,i)}else{const u=Ci(n,t,this.env);if(!u)return;for(let[i,o]of Object.entries(u.funcMap))r.addAction(i,o)}}}function Ci(e,t,n){if(!e.module||!e.module.compiled)return;const r=e.module.compiled,u={exports:{ctx:t,utils:t.getAction().actionUtils,env:n}};try{new Function("module","exports",r).call(u,u,u.exports)}catch(s){Ge(s.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&Ge("fail to parse the module")}const i={},o={};for(const[s,l]of Object.entries(u.exports))typeof l=="function"?i[s]=l:o[s]=l;return{funcMap:i,variables:o}}const td={"engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class nd{constructor(t){this.config=t}apply(t){this.engine=t,Object.entries(td).forEach(([n,r])=>{t.on(n,u=>Ze(this,null,function*(){const i=yield this.callLifecycleEvent(r,u);return i.includes(!1)?!1:i}))})}callLifecycleEvent(t,n){return Ze(this,null,function*(){const r=this.config;return!r||!Array.isArray(r[t])?[]:yield Promise.all(r[t].map(i=>Ze(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})))})}}class rd{constructor(t){this.config=t}apply(t){this.engine=t,wu.events.forEach(n=>{n.code&&n.key&&this.engineAddEventListener(n.code,n.key)})}engineAddEventListener(t,n){this.engine.on(t,r=>Ze(this,null,function*(){if(!(t==="change"&&!this.engine.isMounted)&&r.instance!==void 0)return yield this.callControlEvent(n,r)}))}callControlEvent(t,n){return Ze(this,null,function*(){const r=this.config[n.instance.id];if(!r||!Array.isArray(r[t]))return[];const u=yield Promise.all(r[t].map(i=>Ze(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})));return u.includes(!1)?!1:u})}}function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}var Fi={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function ge(e){return typeof e=="number"}function Qe(e){return!e||typeof e!="object"||typeof e.constructor!="function"?!1:e.isBigNumber===!0&&typeof e.constructor.prototype=="object"&&e.constructor.prototype.isBigNumber===!0||typeof e.constructor.isDecimal=="function"&&e.constructor.isDecimal(e)===!0}function wi(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isComplex===!0||!1}function bi(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isFraction===!0||!1}function Bi(e){return e&&e.constructor.prototype.isUnit===!0||!1}function wn(e){return typeof e=="string"}var xe=Array.isArray;function Mt(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function qr(e){return Array.isArray(e)||Mt(e)}function ud(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function id(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function od(e){return e&&e.constructor.prototype.isRange===!0||!1}function _i(e){return e&&e.constructor.prototype.isIndex===!0||!1}function ad(e){return typeof e=="boolean"}function sd(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function cd(e){return e&&e.constructor.prototype.isHelp===!0||!1}function ld(e){return typeof e=="function"}function fd(e){return e instanceof Date}function hd(e){return e instanceof RegExp}function dd(e){return!!(e&&typeof e=="object"&&e.constructor===Object&&!wi(e)&&!bi(e))}function pd(e){return e===null}function Dd(e){return e===void 0}function gd(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function vd(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function md(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function yd(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ed(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ad(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function Cd(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function Fd(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function wd(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function bd(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function Bd(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function _d(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Sd(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function Md(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function Id(e){return e&&e.isRelationalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Nd(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function xd(e){return e&&e.constructor.prototype.isChain===!0||!1}function Vr(e){var t=typeof e;return t==="object"?e===null?"null":Qe(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":t}function mt(e){var t=typeof e;if(t==="number"||t==="string"||t==="boolean"||e===null||e===void 0)return e;if(typeof e.clone=="function")return e.clone();if(Array.isArray(e))return e.map(function(n){return mt(n)});if(e instanceof Date)return new Date(e.valueOf());if(Qe(e))return e;if(e instanceof RegExp)throw new TypeError("Cannot clone "+e);return Od(e,mt)}function Od(e,t){var n={};for(var r in e)bn(e,r)&&(n[r]=t(e[r]));return n}function Kt(e,t){var n,r,u;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(r=0,u=e.length;r<u;r++)if(!Kt(e[r],t[r]))return!1;return!0}else{if(typeof e=="function")return e===t;if(e instanceof Object){if(Array.isArray(t)||!(t instanceof Object))return!1;for(n in e)if(!(n in t)||!Kt(e[n],t[n]))return!1;for(n in t)if(!(n in e))return!1;return!0}else return e===t}}function bn(e,t){return e&&Object.hasOwnProperty.call(e,t)}function Rd(e,t){for(var n={},r=0;r<t.length;r++){var u=t[r],i=e[u];i!==void 0&&(n[u]=i)}return n}var Pd=["Matrix","Array"],$d=["number","BigNumber","Fraction"],Si=function(t){if(t)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:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-engine",
3
- "version": "2.8.0-alpha.1k",
3
+ "version": "2.8.0-alpha.2",
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": "2.8.0-alpha.1c",
29
+ "@byteluck-fe/model-driven-core": "2.8.0-alpha.2",
30
30
  "@byteluck-fe/model-driven-shared": "2.7.0-alpha.38a",
31
31
  "@types/mathjs": "^9.4.2",
32
32
  "mathjs": "^11.3.3"
@@ -34,5 +34,5 @@
34
34
  "devDependencies": {
35
35
  "@types/node": "~18.0.6"
36
36
  },
37
- "gitHead": "224ebff50583396c0db31f47deed5fa6701cb779"
37
+ "gitHead": "73788436f54b0fc6b1c826acb1d9faef8eed24f0"
38
38
  }