@byteluck-fe/model-driven-core 2.10.0-alpha.2 → 2.10.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- var hs=Object.defineProperty,ms=Object.defineProperties;var gs=Object.getOwnPropertyDescriptors;var on=Object.getOwnPropertySymbols,ys=Object.getPrototypeOf,vs=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Bs=Reflect.get;var cn=(s,S,M)=>S in s?hs(s,S,{enumerable:!0,configurable:!0,writable:!0,value:M}):s[S]=M,Q=(s,S)=>{for(var M in S||(S={}))vs.call(S,M)&&cn(s,M,S[M]);if(on)for(var M of on(S))Es.call(S,M)&&cn(s,M,S[M]);return s},Fe=(s,S)=>ms(s,gs(S));var ot=(s,S,M)=>Bs(ys(s),M,S);var oe=(s,S,M)=>new Promise((De,ce)=>{var be=j=>{try{Y(M.next(j))}catch(p){ce(p)}},Se=j=>{try{Y(M.throw(j))}catch(p){ce(p)}},Y=j=>j.done?De(j.value):Promise.resolve(j.value).then(be,Se);Y((M=M.apply(s,S)).next())});(function(s,S){typeof exports=="object"&&typeof module!="undefined"?S(exports):typeof define=="function"&&define.amd?define(["exports"],S):(s=typeof globalThis!="undefined"?globalThis:s||self,S(s.modelDrivenCore={}))})(this,function(s){"use strict";var S="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",M="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",De="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",ce="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",be="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Se="{caption}\u5FC5\u586B",Y="\u8BF7\u8F93\u5165\u6807\u9898",j="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",p="\u8BF7\u8F93\u5165\u884C\u6807\u9898",dn="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",fn="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",hn="\u8BF7\u7ED1\u5B9A\u8868\u5355",mn="\u8BF7\u7ED1\u5B9A\u5217\u8868",gn="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",yn="\u8BF7\u8F93\u5165\u663E\u793A\u503C",vn="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",En="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Bn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",Cn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",An="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Fn="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Dn="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",bn="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Sn="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",wn="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",In="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Rn="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Mn="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",_n="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",$n="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Ln="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Pn="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",qn="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Vn="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",xn="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",On="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",jn="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Nn="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Un="\u8BF7\u9009\u62E9\u7701",Hn="\u8BF7\u9009\u62E9\u5E02",kn="\u8BF7\u9009\u62E9\u533A",Wn="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Kn="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",zn="\u8BF7\u8F93\u5165\u5217\u5BBD",Tn="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Jn="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Xn="\u8BF7\u9009\u62E9\u63A7\u4EF6",Gn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Zn="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Qn="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Yn="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",pn="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",eu="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",tu="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",nu="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",uu="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",au="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",iu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ru="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",lu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",su="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ou="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",cu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",du="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",fu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",hu="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",mu="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",gu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",yu="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",vu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",Eu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",Bu="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",Cu="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",Au="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",Fu={isNotNumber:S,isNotString:M,isNotObject:De,isNotArray:ce,isNotBoolean:be,runtimeRequired:Se,pleaseEnterCaption:Y,pleaseEnterCaptionTip:j,pleaseEnterRowCaption:p,pleaseEnterPlaceholder:dn,pleaseEnterFieldCode:fn,pleaseEnterForm:hn,pleaseEnterList:mn,pleaseEnterProcess:gn,pleaseEnterLabel:yn,pleaseEnterValue:vn,bizKeyNotBindFiled:En,pleaseSelectOneField:Bn,pleaseEnterNumberRange:Cn,pleaseEnterAValueGreaterThanMin:An,pleaseEnterAValueLessThanMax:Fn,numberRangeSetError:Dn,stringRangeError:bn,attachmentMaxSize:Sn,pleaseEnterTotalScoreSetting:wn,theTotalScoreMustNotBeLessThan1:In,scoreDefaultValueRange:Rn,attachmentLimitError:Mn,PleaseReselectTheOptionalQuantity:_n,TheMaximumLengthIsGreaterThanTheMinimumLength:$n,TheMinimumLengthIsGreaterThanTheMaximumLength:Ln,PleaseSelectTheCorrectOptionSettings:Pn,optionIdIsRepeat:qn,optionIsRequired:Vn,pleaseEnterDataCode:xn,pleaseEnterValueFieldCode:On,pleaseEnterSvcCode:jn,pleaseBindAtLeastOneDisplayValue:Nn,pleaseSelectProvince:Un,pleaseSelectCity:Hn,pleaseSelectDistrict:kn,limitRowsCannotBeLessThan0:Wn,TheNumberOfRowsCannotBeLessThanMinRows:Kn,pleaseEnterColumnWidth:zn,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Tn,pleaseCompleteAllRulesAndConditions:Jn,pleaseSelectControl:Xn,pleaseSelectAtLeastOneColumn:Gn,pleaseSelectFillBackMode:Zn,pleaseSelectDashboard:Qn,rootNodeIsRequired:Yn,theViewNameCannotBeEmpty:pn,pleaseSelectOcrType:eu,pleaseSelectAtLeastOneFieldToFillIn:tu,pleaseChooseAtLeastOne:nu,pleaseEnterButtonContent:uu,pleaseEnterDataCodeInDataSetting:au,pleaseEnterValueFieldCodeInDataSetting:iu,pleaseEnterSvcCodeInDataSetting:ru,pleaseBindAtLeastOneDisplayValueInDataSetting:lu,rootNodeIsRequiredInDataSetting:su,pleaseEnterMaxHeight:ou,pleaseEnter:cu,pleaseEnterWatermark:du,pleaseEnterFileName:fu,pleaseUploadAtLeastOnePrintTemplate:hu,pleaseAssignBusiness:mu,pleaseAssignExternal:gu,pleaseEnterAliasCode:yu,pleaseSelectDataCode:vu,pleaseSelectSvcCode:Eu,pleaseSelectJoinFieldCode:Bu,pleaseSelectMainFieldCode:Cu,pleaseSelectSortFieldCode:Au},Du="Please enter a number",bu="Please enter a string",Su="Please enter an object",wu="Please enter an array",Iu="Please enter a boolean",Ru="{caption} Required",Mu="Please enter the title",_u="Please enter the bubble prompt",$u="Please enter the row title",Lu="Please enter the prompt text",Pu="Please bind data items",qu="Please bind the form",Vu="Please bind the list",xu="Please bind the process",Ou="Please enter the displayed value",ju="Please enter the stored value",Nu="The document number is not bound to the data item",Uu="Please select at least one display field",Hu="Please enter a value greater than or equal to {min} and less than or equal to {max}",ku="Please enter a value greater than or equal to {min}",Wu="Please enter a value less than or equal to {max}",Ku="The value range is set incorrectly",zu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Tu="The attachment size must be between 0MB and 1000MB",Ju="Please fill in the total score setting",Xu="The total score cannot be less than 1",Gu="The default value must be between {min} and {max}",Zu="The number of attachments uploaded must be between {min} and {max}",Qu="Please re-select the optional quantity",Yu="The maximum length of the control must be greater than the minimum length",pu="The minimum length of the control must be less than the maximum length",ea="Please select the correct option setting",ta="Option ID cannot be repeated",na="Please enter at least one option",ua="Please bind the data source",aa="Please bind the stored value",ia="Please bind the service",ra="At least one display value must be bound",la="Please select a province",sa="Please select a city",oa="Please select a district",ca="The minimum number of lines to fill in cannot be less than 0",da="The number of rows cannot be less than {min} rows",fa="Please enter the column width",ha="Please set the logical relationship of all rule conditions",ma="Please complete all rules and conditions",ga="please select control",ya="Please select the dashboard",va="View name cannot be empty",Ea="Please select recognition type",Ba="Please select at least one field to fill in",Ca="Please select at least one",Aa="Please enter the button title",Fa="Please bind the business model in the data settings",Da="Please bind storage values in data settings",ba="Please bind the service in the data settings",Sa="Please bind at least one display value in the data settings",wa="Please select the root node in the data settings",Ia="Please enter the maximum height",Ra="The input content cannot be empty",Ma="Watermark cannot be empty",_a="File name cannot be empty",$a="Please upload at least one printing template!\uFF01",La="Please select a specific business department",Pa="Please select a specified external organization",qa="Please enter a sub table alias",Va="Please select the associated table to set the business model",xa="Please select the association table to set the binding service",Oa="Select associated sub table fields",ja="Please select the associated main table field",Na="Please select the sort field",Ua={isNotNumber:Du,isNotString:bu,isNotObject:Su,isNotArray:wu,isNotBoolean:Iu,runtimeRequired:Ru,pleaseEnterCaption:Mu,pleaseEnterCaptionTip:_u,pleaseEnterRowCaption:$u,pleaseEnterPlaceholder:Lu,pleaseEnterFieldCode:Pu,pleaseEnterForm:qu,pleaseEnterList:Vu,pleaseEnterProcess:xu,pleaseEnterLabel:Ou,pleaseEnterValue:ju,bizKeyNotBindFiled:Nu,pleaseSelectOneField:Uu,pleaseEnterNumberRange:Hu,pleaseEnterAValueGreaterThanMin:ku,pleaseEnterAValueLessThanMax:Wu,numberRangeSetError:Ku,stringRangeError:zu,attachmentMaxSize:Tu,pleaseEnterTotalScoreSetting:Ju,theTotalScoreMustNotBeLessThan1:Xu,scoreDefaultValueRange:Gu,attachmentLimitError:Zu,PleaseReselectTheOptionalQuantity:Qu,TheMaximumLengthIsGreaterThanTheMinimumLength:Yu,TheMinimumLengthIsGreaterThanTheMaximumLength:pu,PleaseSelectTheCorrectOptionSettings:ea,optionIdIsRepeat:ta,optionIsRequired:na,pleaseEnterDataCode:ua,pleaseEnterValueFieldCode:aa,pleaseEnterSvcCode:ia,pleaseBindAtLeastOneDisplayValue:ra,pleaseSelectProvince:la,pleaseSelectCity:sa,pleaseSelectDistrict:oa,limitRowsCannotBeLessThan0:ca,TheNumberOfRowsCannotBeLessThanMinRows:da,pleaseEnterColumnWidth:fa,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ha,pleaseCompleteAllRulesAndConditions:ma,pleaseSelectControl:ga,pleaseSelectDashboard:ya,theViewNameCannotBeEmpty:va,pleaseSelectOcrType:Ea,pleaseSelectAtLeastOneFieldToFillIn:Ba,pleaseChooseAtLeastOne:Ca,pleaseEnterButtonContent:Aa,pleaseEnterDataCodeInDataSetting:Fa,pleaseEnterValueFieldCodeInDataSetting:Da,pleaseEnterSvcCodeInDataSetting:ba,pleaseBindAtLeastOneDisplayValueInDataSetting:Sa,rootNodeIsRequiredInDataSetting:wa,pleaseEnterMaxHeight:Ia,pleaseEnter:Ra,pleaseEnterWatermark:Ma,pleaseEnterFileName:_a,pleaseUploadAtLeastOnePrintTemplate:$a,pleaseAssignBusiness:La,pleaseAssignExternal:Pa,pleaseEnterAliasCode:qa,pleaseSelectDataCode:Va,pleaseSelectSvcCode:xa,pleaseSelectJoinFieldCode:Oa,pleaseSelectMainFieldCode:ja,pleaseSelectSortFieldCode:Na},Ha="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ka="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Wa="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ka="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",za="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ta="{caption}\u5FC5\u9808",Ja="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Xa="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ga="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Za="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Qa="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ya="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",pa="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ei="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ti="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ni="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ui="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",ai="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ii="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ri="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",li="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",si="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",oi="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ci="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",di="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",fi="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",hi="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",mi="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",gi="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",yi="\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",vi="\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",Ei="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Bi="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Ci="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Ai="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Fi="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Di="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",bi="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Si="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",wi="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ii="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ri="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Mi="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",_i="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",$i="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Li="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Pi="please select control",qi="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Vi="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",xi="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Oi="\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",ji="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ni="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ui="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Hi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",ki="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Wi="\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",Ki="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",zi="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ti="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ji="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Xi="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Gi="\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",Zi="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Qi="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Yi="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",pi="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",er="\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",tr="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",nr="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ur="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ar={isNotNumber:Ha,isNotString:ka,isNotObject:Wa,isNotArray:Ka,isNotBoolean:za,runtimeRequired:Ta,pleaseEnterCaption:Ja,pleaseEnterCaptionTip:Xa,pleaseEnterRowCaption:Ga,pleaseEnterPlaceholder:Za,pleaseEnterFieldCode:Qa,pleaseEnterForm:Ya,pleaseEnterList:pa,pleaseEnterProcess:ei,pleaseEnterLabel:ti,pleaseEnterValue:ni,bizKeyNotBindFiled:ui,pleaseSelectOneField:ai,pleaseEnterNumberRange:ii,pleaseEnterAValueGreaterThanMin:ri,pleaseEnterAValueLessThanMax:li,numberRangeSetError:si,stringRangeError:oi,attachmentMaxSize:ci,pleaseEnterTotalScoreSetting:di,theTotalScoreMustNotBeLessThan1:fi,scoreDefaultValueRange:hi,attachmentLimitError:mi,PleaseReselectTheOptionalQuantity:gi,TheMaximumLengthIsGreaterThanTheMinimumLength:yi,TheMinimumLengthIsGreaterThanTheMaximumLength:vi,PleaseSelectTheCorrectOptionSettings:Ei,optionIdIsRepeat:Bi,optionIsRequired:Ci,pleaseEnterDataCode:Ai,pleaseEnterValueFieldCode:Fi,pleaseEnterSvcCode:Di,pleaseBindAtLeastOneDisplayValue:bi,pleaseSelectProvince:Si,pleaseSelectCity:wi,pleaseSelectDistrict:Ii,limitRowsCannotBeLessThan0:Ri,TheNumberOfRowsCannotBeLessThanMinRows:Mi,pleaseEnterColumnWidth:_i,pleaseSetTheLogicalRelationshipOfAllRuleConditions:$i,pleaseCompleteAllRulesAndConditions:Li,pleaseSelectControl:Pi,pleaseSelectDashboard:qi,theViewNameCannotBeEmpty:Vi,pleaseSelectOcrType:xi,pleaseSelectAtLeastOneFieldToFillIn:Oi,pleaseChooseAtLeastOne:ji,pleaseEnterButtonContent:Ni,pleaseEnterDataCodeInDataSetting:Ui,pleaseEnterValueFieldCodeInDataSetting:Hi,pleaseEnterSvcCodeInDataSetting:ki,pleaseBindAtLeastOneDisplayValueInDataSetting:Wi,rootNodeIsRequiredInDataSetting:Ki,pleaseEnterMaxHeight:zi,pleaseEnter:Ti,pleaseEnterWatermark:Ji,pleaseEnterFileName:Xi,pleaseUploadAtLeastOnePrintTemplate:Gi,pleaseAssignBusiness:Zi,pleaseAssignExternal:Qi,pleaseEnterAliasCode:Yi,pleaseSelectDataCode:pi,pleaseSelectSvcCode:er,pleaseSelectJoinFieldCode:tr,pleaseSelectMainFieldCode:nr,pleaseSelectSortFieldCode:ur},ir={zhCN:Fu,enUS:Ua,jaJP:ar},ct;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(ct||(ct={}));var dt;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(dt||(dt={}));var rr="zh-CN";function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var z;(function(t){t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search"})(z||(z={}));var ft;(function(t){t[t.FORM=0]="FORM",t[t.LIST=1]="LIST",t[t.REPORT=2]="REPORT",t[t.DASHBOARD=3]="DASHBOARD",t[t.VUE=4]="VUE",t[t.FREE_PAGE=5]="FREE_PAGE"})(ft||(ft={}));var ht;(function(t){t.TITLE="title",t.LINK="link",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.ORGANIZATION_SELECTION="organization-selection",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.EMPLOYEE_COLUMN="employee-column",t.Approval_Status_Column="approval-status-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.GRID_LAYOUT_CONTAINER="grid-layout-container",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.ACTION_BAR="action-bar",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.TREE="tree",t.EMPLOYEE2="employee2",t.DEPARTMENT2="department2",t.GRID_LAYOUT_WRAP="grid-layout-wrap",t.VUE_PAGE="vue-page"})(ht||(ht={}));var mt;(function(t){t.SAVE="save",t.DRAFT="draft",t.UNSUBMIT="unsubmit",t.AUDIT="audit",t.UNAUDIT="unaudit",t.CANCEL="cancel",t.FORM_SUBMIT="form_submit"})(mt||(mt={}));var ee;(function(t){t.VARCHAR="varchar",t.TEXT="text",t.ARRAY="array",t.ADDRESS="location",t.DECIMAL="decimal",t.REAL_DECIMAL="real-decimal",t.DECIMAL_RANGE="decimal_range",t.TIMESTAMP="timestamp",t.REAL_TIMESTAMP="real-timestamp",t.EMPLOYEES="people",t.DEPARTMENTS="department",t.MONEY="money",t.TIMESCOPE="timescope",t.FILE="file",t.IMAGE="image",t.AUTO_NUMBER="auto_number",t.CALC="calc",t.RELATION="relation",t.LIST="list",t.RELATION_FIELD="relation-field",t.REFERENCE_FIELD="reference-field",t.CALC_FIELD="calc",t.JSON="json",t.BIGINT="bigint",t.ANY="ANY",t.ENCRYPTED_FIELD="encrypted_field",t.BOOLEAN="boolean",t.MODEL="model",t.MODEL_SET="model_set"})(ee||(ee={}));var C;C={},y(C,"varchar","\u77ED\u6587\u672C"),y(C,"timestamp","\u65F6\u95F4"),y(C,"real-timestamp","\u65F6\u95F4\uFF08timestamp\uFF09"),y(C,"text","\u957F\u6587\u672C"),y(C,"decimal","\u6570\u503C\u7C7B\u578B"),y(C,"real-decimal","\u6570\u503C\u7C7B\u578B\uFF08decimal\uFF09"),y(C,"relation","\u5F15\u7528\u7C7B\u578B"),y(C,"bigint","\u957F\u6574\u578B"),y(C,"image","\u56FE\u7247"),y(C,"file","\u9644\u4EF6"),y(C,"auto_number","\u81EA\u52A8\u7F16\u53F7"),y(C,"boolean","\u903B\u8F91"),y(C,"people","\u4EBA\u5458"),y(C,"location","\u5730\u5740"),y(C,"department","\u90E8\u95E8"),y(C,"relation-field","\u5173\u8054\u5B57\u6BB5"),y(C,"reference-field","\u5F15\u7528\u5B57\u6BB5"),y(C,"calc","\u8BA1\u7B97\u516C\u5F0F"),y(C,"json","JSON"),y(C,"model","\u6A21\u578B"),y(C,"model_set","\u6A21\u578B\u96C6\u5408"),y(C,"array","\u6570\u7EC4");var $;$={},y($,"array","array-column"),y($,"auto_number","auto-number-column"),y($,"decimal","decimal-column"),y($,"real-decimal","decimal-column"),y($,"department","department-column"),y($,"file","file-column"),y($,"image","image-column"),y($,"location","location-column"),y($,"people","employee-column"),y($,"text","text-column"),y($,"timescope","timescope-column"),y($,"timestamp","timestamp-column"),y($,"real-timestamp","timestamp-column"),y($,"varchar","varchar-column"),y($,"relation","varchar-column");var gt;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATEHOUR="datehour",t.DATEMIN="datemin",t.DATETIME="datetime"})(gt||(gt={}));var yt="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",lr=yt+"0123456789";function N(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",n=0;n<t;n++){var u=n===0?yt:lr,a=Math.random()*u.length;e+=u[parseInt(String(a),10)]}return e}function we(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function sr(t){if(Array.isArray(t))return we(t)}function or(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function de(t,e,n){return Ct()?de=Reflect.construct:de=function(a,i,r){var l=[null];l.push.apply(l,i);var d=Function.bind.apply(a,l),c=new d;return r&&ne(c,r.prototype),c},de.apply(null,arguments)}function te(t){return te=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},te(t)}function Et(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ne(t,e)}function cr(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function dr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function fr(){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 hr(t,e){return e&&(mr(e)==="object"||typeof e=="function")?e:or(t)}function ne(t,e){return ne=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},ne(t,e)}function Bt(t){return sr(t)||dr(t)||gr(t)||fr()}function mr(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function gr(t,e){if(!!t){if(typeof t=="string")return we(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return we(t,e)}}function Ie(t){var e=typeof Map=="function"?new Map:void 0;return Ie=function(u){if(u===null||!cr(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return de(u,arguments,te(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ne(a,u)},Ie(t)}function Ct(){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(t){return!1}}function At(t){var e=Ct();return function(){var u=te(t),a;if(e){var i=te(this).constructor;a=Reflect.construct(u,arguments,i)}else a=u.apply(this,arguments);return hr(this,a)}}var Re=console;function Me(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=Re).warn.apply(u,["\u{1F9D0} Driven Warning:"+e[0]].concat(Bt(a)))}function Ft(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=Re).log.apply(u,["\u{1F680} Driven Log:"+e[0]].concat(Bt(a)))}function yr(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var _e=function(t){Et(n,t);var e=At(n);function n(u){vt(this,n);var a;return a=e.call(this,u),a.name="\u{1F4A5} Driven Error",a.message=u?yr(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return n}(Ie(Error)),vr=function(t){Et(n,t);var e=At(n);function n(u){vt(this,n);var a;return a=e.call(this,u),a.name="\u{1F6A8} Driven Reference Error",a}return n}(_e);function $e(t){throw new _e(t)}function Dt(t){throw new vr(t)}function Er(t){Re.error(new _e(t))}var Br=Object.prototype.toString;function bt(t,e){return Br.call(t)==="[object "+e+"]"}function Cr(t){return bt(t,"String")}function Ar(t){return bt(t,"Promise")}var Fr=function(){function t(e){var n,u;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((u=(n=e.messages)!==null&&n!==void 0?n:this.getPreImport(e.locale))!==null&&u!==void 0?u:{}),e.variableRegExp&&(this.variableRegExp=e.variableRegExp),this.setLocale(e.locale)}return t.prototype.setLocale=function(e){var n=this;this.locale=e,this._messageCache.clear();var u=this.getMessageData();Ar(u)?u.then(function(a){n._messageCache.clear(),n.messages[n.localeInMessageKey]=a}):this.messages[this.localeInMessageKey]=u},t.prototype.getMessageData=function(){var e=this._messages[this.localeInMessageKey];return typeof e=="function"?e():e},t.prototype.translate=function(e,n,u){var a=this.getMessage(e);return a?this.formatMessage(a,u):this.formatMessage(n,u)},t.prototype.getMessage=function(e){if(this._messageCache.has(e))return this._messageCache.get(e);var n=this.getPathArray(e),u=n.reduce(function(a,i,r,l){if(a!==void 0){var d=a[i];if(!(r===l.length-1&&!Cr(d)))return d}},this.message);return this._messageCache.set(e,u),u},t.prototype.formatMessage=function(e,n){return n?e.replace(this.variableRegExp,function(u,a){var i=n[a];return i!==void 0?String(i):u}):e},t.prototype.getPreImport=function(e){var n;if(window.okI18nPreImport){var u=this.getLocaleInMessageKey(e);return window.okI18nPreImport.hasOwnProperty(u)?window.okI18nPreImport:(n={},n[u]=window.okI18nPreImport,n)}},t.prototype.getPathArray=function(e){return e.split(".")},t.prototype.getLocaleInMessageKey=function(e){return e.replace(/-/g,"")},Object.defineProperty(t.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){var e;return(e=this.messages[this.localeInMessageKey])!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t}();function Dr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function St(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function br(t,e,n){return e&&St(t.prototype,e),n&&St(t,n),t}function Sr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(){function t(){Dr(this,t)}return br(t,null,[{key:"getMessage",value:function(n){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",u)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rr;return new Fr({locale:n,messages:ir})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),t}();Sr(h,"$i18n",h.resetI18n());function wr(t,e,n){var u=e.replace(/\[(\d)]/g,function(i,r){return"."+r}).split("."),a=!1;return u.reduce(function(i,r,l,d){var c=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,r)){Me("Can not set ".concat(e,"'s ").concat(r," property in current %o, Because there is no ").concat(r," property on the %o"),i,i);return}return l===d.length-1&&!Object.is(c[r],n)&&(c[r]=n,a=!0),c[r]}},t),a}var Ir=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Rr={exports:{}};(function(t){(function(e){var n=function(o,m,B){if(!c(m)||E(m)||b(m)||w(m)||d(m))return m;var I,R=0,x=0;if(g(m))for(I=[],x=m.length;R<x;R++)I.push(n(o,m[R],B));else{I={};for(var D in m)Object.prototype.hasOwnProperty.call(m,D)&&(I[o(D,B)]=n(o,m[D],B))}return I},u=function(o,m){m=m||{};var B=m.separator||"_",I=m.split||/(?=[A-Z])/;return o.split(I).join(B)},a=function(o){return A(o)?o:(o=o.replace(/[\-_\s]+(.)?/g,function(m,B){return B?B.toUpperCase():""}),o.substr(0,1).toLowerCase()+o.substr(1))},i=function(o){var m=a(o);return m.substr(0,1).toUpperCase()+m.substr(1)},r=function(o,m){return u(o,m).toLowerCase()},l=Object.prototype.toString,d=function(o){return typeof o=="function"},c=function(o){return o===Object(o)},g=function(o){return l.call(o)=="[object Array]"},E=function(o){return l.call(o)=="[object Date]"},b=function(o){return l.call(o)=="[object RegExp]"},w=function(o){return l.call(o)=="[object Boolean]"},A=function(o){return o=o-0,o===o},f=function(o,m){var B=m&&"process"in m?m.process:m;return typeof B!="function"?o:function(I,R){return B(I,o,R)}},F={camelize:a,decamelize:r,pascalize:i,depascalize:r,camelizeKeys:function(o,m){return n(f(a,m),o)},decamelizeKeys:function(o,m){return n(f(r,m),o,m)},pascalizeKeys:function(o,m){return n(f(i,m),o)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=F:e.humps=F})(Ir)})(Rr);var wt={};Object.defineProperty(wt,"__esModule",{value:!0});function Le(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:Le(e));{const e={};for(const n in t){const u=t[n];e[n]=typeof u!="object"||u===null?u:Le(u)}return e}}var Mr=wt.default=Le;function U(t){if(t!==void 0)return typeof t=="object"?Mr(t):t}function _r(t){return Object.prototype.toString.call(t)==="[object Object]"}function $r(t){return Array.isArray(t)}function Lr(t){return t.reduce(function(e,n){return e.includes(n)||e.push(n),e},[])}function Pe(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function Pr(t){if(Array.isArray(t))return Pe(t)}function It(t,e,n,u,a,i,r){try{var l=t[i](r),d=l.value}catch(c){n(c);return}l.done?e(d):Promise.resolve(d).then(u,a)}function qr(t){return function(){var e=this,n=arguments;return new Promise(function(u,a){var i=t.apply(e,n);function r(d){It(i,u,a,r,l,"next",d)}function l(d){It(i,u,a,r,l,"throw",d)}r(void 0)})}}function Vr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rt(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function xr(t,e,n){return e&&Rt(t.prototype,e),n&&Rt(t,n),t}function Mt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Or(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function jr(){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 qe(t){return Pr(t)||Or(t)||Nr(t)||jr()}function Nr(t,e){if(!!t){if(typeof t=="string")return Pe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pe(t,e)}}function Ur(t,e){var n,u,a,i,r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(c){return function(g){return d([c,g])}}function d(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,u&&(a=c[0]&2?u.return:c[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,c[1])).done)return a;switch(u=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,u=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(g){c=[6,g],u=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var Hr=function(){function t(){Vr(this,t),Mt(this,"_events",new Map),Mt(this,"debug",!1)}return xr(t,[{key:"emit",value:function(n){for(var u=arguments.length,a=new Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];var r=this;return qr(function(){var l,d,c,g,E,b,w,A,f,F,o,m;return Ur(this,function(B){switch(B.label){case 0:if(l=r._events.get(n),d=[],!l)return[3,10];c=l.slice(),g=!0,E=!1,b=void 0,B.label=1;case 1:B.trys.push([1,8,9,10]),w=c[Symbol.iterator](),B.label=2;case 2:if(g=(A=w.next()).done)return[3,7];if(f=A.value,!l.includes(f))return[3,6];B.label=3;case 3:return B.trys.push([3,5,,6]),r.debug&&Ft.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"\u3002")].concat(qe(a))),[4,f.apply(null,qe(a))];case 4:return F=B.sent(),r.debug&&Ft.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(qe(a),[F])),d.push(F),F===!1?[3,7]:[3,6];case 5:return o=B.sent(),Er(String(o)+":"+String(o.stack)),[3,6];case 6:return g=!0,[3,2];case 7:return[3,10];case 8:return m=B.sent(),E=!0,b=m,[3,10];case 9:try{!g&&w.return!=null&&w.return()}finally{if(E)throw b}return[7];case 10:return[2,d]}})})()}},{key:"on",value:function(n,u){if(this._events.has(n)){var a;(a=this._events.get(n))===null||a===void 0||a.push(u)}else this._events.set(n,[u])}},{key:"off",value:function(n,u){if(this._events.has(n)){var a=this._events.get(n),i=a==null?void 0:a.indexOf(u);a==null||a.splice(i,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),t}();function kr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _t(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function Wr(t,e,n){return e&&_t(t.prototype,e),n&&_t(t,n),t}function Kr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zr=[{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"}],Tr=function(){function t(){kr(this,t)}return Wr(t,null,[{key:"getEventsFromKeys",value:function(n){var u=typeof n=="string"?[n]:n;return t.events.filter(function(a){return u.includes(a.key)})}},{key:"getEventsFromControl",value:function(n){var u=[],a=n.eventKeys;u=u.concat(t.events.filter(function(r){return a.includes(r.key)}));var i=n.customEvents.map(function(r){var l=r.key;return r.namespace!==void 0&&r.namespace!==null&&r.namespace!==""&&(l=r.namespace+":"+r.key),{key:l,code:r.key,name:r.name}});return u=u.concat(i),u}}]),t}();Kr(Tr,"events",zr);function fe(t,e){var n;(n=Object.getOwnPropertyDescriptors(t)[e])!=null&&n.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function Ve(t,e,n){n==="Designer"&&(t.parent=e,fe(t,"parent"))}function $t(t,e,n){t.forEach(u=>{Ve(u,e,n)})}const Lt=Symbol("targetKey");function Pt(t){var e;return(e=t[Lt])!=null?e:t}function qt(t,e,n){return $t(t,e,n),new Proxy(t,{get(u,a,...i){return a===Lt?u:Reflect.get(u,a,...i)},set(u,a,i,...r){if($r(t)&&a==="length"&&i===t.length)return!0;const l=Reflect.set(u,a,i,...r);return _r(i)&&Ve(i,e,n),l}})}function T(t,e,n,u,a){const i=u!=null?u:t;let r=qt(Pt(n!=null?n:[]),i,a);Object.defineProperty(t,e,{get(){return r},set(l){r=qt(Pt(l),i,a)},enumerable:!0})}const Vt=[],xe=class{constructor(t){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=t,this._initControls(t)}static staticGetRules(t,e){const n=xe.staticControlsRuntimeRules.get(t);let u=[];if(n){const a=new n(e);u=Array.from(a)}return u}registerControlConfig(t,e){return this.controlConfigMap.set(t,e),this}getControlConfig(t){return this.controlConfigMap.get(t)}static register(t,e){const{Designer:n,Runtime:u,Property:a}=t;(!n||!u||!n.__is_control__||!u.__is_control__)&&$e(`${t} is can't register as a Control`);const i=this.staticControls.findIndex(r=>r.Designer.controlType===n.controlType);return i>-1&&(Me(`The ${n.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(i,1)),this.staticRegisteredTypes.add(n.controlType),this.staticControls.push(t),a.mode=e,this}getControls(){return this._controls}register(t){t.__is_control__||$e(`${t.name} is not a Control`);const e=this._controls.findIndex(n=>n.controlType===t.controlType);return e>-1&&(Me(`The ${t.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(e,1)),this.registeredControlTypes.add(t.controlType),this._controls.push(t),this}isLayoutControl(t){return t.controlType===z.LAYOUT}isFormControl(t){return t.controlType===z.FORM}isListControl(t){return t.controlType===z.LIST}isColumnControl(t){return t.controlType===z.COLUMN}createControl(t,e){if(Array.isArray(t))return t.map(u=>this.createControl(u,e));if(t.children&&(t.children=t.children.map(u=>this.createControl(u,e))),this.isListControl(t)){const u=t.props;u.headers&&(u.headers=u.headers.map(a=>this.createControl(a,e))),u.footers&&(u.footers=u.footers.map(a=>{let i;return a&&(i=this.createControl(a,e)),i}))}const n=this.getControlFormType(t.type);if(n){let u=t;if(typeof e=="function"){const i=e(u);i&&(u=i)}let a;return n.mode==="Runtime"?(a=u,a.fieldType=n.controlFieldType,this._setParentPrototypeToSchema(a,this)):a=new n(u),a}else $e(`The constructor of ${t.type} could not be found, please confirm that the constructor has been registered`)}resetInstanceParent(t,e){delete t.parent,Object.defineProperty(t,"parent",{configurable:!0,get(){return e}}),fe(t,"parent")}_setParentPrototypeToSchema(t,e){e._type==="Runtime"&&(Object.defineProperty(t,"parent",{configurable:!0,get(){const n=t.id,u=e._controlParentIdMap,a=e.instanceMap;if(!u||!a)return;const i=u[n],r=a[n];if(!i&&!r)return;const l=r.findIndex(g=>g==t),d=a[i]||[];let c;return d.length!==r.length?c=d[0]:c=d[l],c}}),fe(t,"parent"))}createControlInstance(t,e){const n=this.getControlFormType(t);if(n)return new n(e)}getControlFormType(t){return this._controls.find(e=>e.controlType===t)}_initControls(t){this.constructor.staticControls.forEach(e=>{this.register(e[t]),xe.staticControlsRuntimeRules.set(e.Runtime.controlType,e.Property.RuntimeRules),e.Property.mode=t})}};let ue=xe;ue.staticControlsRuntimeRules=new Map,ue.staticControls=Vt,ue.staticRegisteredTypes=new Set(Vt.map(t=>t.Designer.controlType)),ue.staticRegisteredConfigs=new Map;class q{constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.aliasCode=e==null?void 0:e.aliasCode}}class Oe{constructor(e){var n,u;this.minWidth=(n=e==null?void 0:e.minWidth)!=null?n:150,this.maxWidth=e==null?void 0:e.maxWidth,this.flex=(u=e==null?void 0:e.flex)!=null?u:1}}class je{constructor(e){var n,u,a,i;this.rowHeightType=(n=e==null?void 0:e.rowHeightType)!=null?n:"fixed",this.minRows=(u=e==null?void 0:e.minRows)!=null?u:4,this.maxRows=(a=e==null?void 0:e.maxRows)!=null?a:20,this.fiexdRow=(i=e==null?void 0:e.fiexdRow)!=null?i:4}}class Jr{constructor(e){this.pc=new je(e==null?void 0:e.pc),this.mobile=new je(e==null?void 0:e.mobile)}}class he extends Oe{constructor(e){var n,u;super(e),this.width=(n=e==null?void 0:e.width)!=null?n:240,this.widthType=(u=e==null?void 0:e.widthType)!=null?u:"auto"}}class Xr{constructor(e){this.pc=new he(e==null?void 0:e.pc),this.mobile=e!=null&&e.mobile?new he(e==null?void 0:e.mobile):new he({width:130,minWidth:180})}}class Gr{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"firstThree",this.customOptions=(u=e==null?void 0:e.customOptions)!=null?u:[]}}class me{constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.appId=(a=e==null?void 0:e.appId)!=null?a:""}}class Zr extends me{constructor(e){var n;super(e),this.primaryControlId=(n=e==null?void 0:e.primaryControlId)!=null?n:""}}class xt{constructor(e){var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!=null?n:""}}class Qr{constructor(e){var n,u,a,i;this.appId=(n=e==null?void 0:e.appId)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new xt(r)))!=null?i:[]}}class Ot{constructor(e){var n,u,a;this.fieldName=(n=e==null?void 0:e.fieldName)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:ee.VARCHAR}}class jt extends me{constructor(e){var n,u,a,i;super(e),this.title=(n=e==null?void 0:e.title)!=null?n:"",this.svcCode=(u=e==null?void 0:e.svcCode)!=null?u:"",this.isOpenFilter=(a=e==null?void 0:e.isOpenFilter)!=null?a:!1,this.filters=(i=e==null?void 0:e.filters)!=null?i:[]}}class Yr{constructor(e){var n,u,a,i;this.type="sublist-page",this.formBind=new me(e==null?void 0:e.formBind),this.displayFields=(u=(n=e==null?void 0:e.displayFields)==null?void 0:n.map(r=>new Ot(r)))!=null?u:[],this.sublists=(i=(a=e==null?void 0:e.sublists)==null?void 0:a.map(r=>new jt(r)))!=null?i:[]}}class Nt{constructor(e){this.type=e==null?void 0:e.type,this.value=e==null?void 0:e.value,this.dataCode=e==null?void 0:e.dataCode}}class Ne{constructor(e){var n,u,a;this.type=(n=e==null?void 0:e.type)!=null?n:"custom",this.value=(u=e==null?void 0:e.value)!=null?u:[],this.displayBos=(a=e==null?void 0:e.displayBos)!=null?a:[]}}class J{constructor(e){var n,u,a,i;this.type="conditions",this.id=(n=e==null?void 0:e.id)!=null?n:N(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.level=(a=e==null?void 0:e.level)!=null?a:0,this.value=(i=e==null?void 0:e.value)!=null?i:"and",this.children=[],Array.isArray(e==null?void 0:e.children)&&(e==null||e.children.map(r=>{var l,d;if(r.children!==void 0){const c=new J(r);(l=this.children)==null||l.push(c)}else{const c=new ae(r);(d=this.children)==null||d.push(c)}}))}}class ae{constructor(e){var n,u,a,i,r;this.type="condition",this.id=(n=e==null?void 0:e.id)!=null?n:N(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.symbol=(a=e==null?void 0:e.symbol)!=null?a:"",this.checked=(i=e==null?void 0:e.checked)!=null?i:!1,this.describe=(r=e==null?void 0:e.describe)!=null?r:"",this.leftVariableBo=new Nt(e==null?void 0:e.leftVariableBo),this.rightVariableBo=new Ne(e==null?void 0:e.rightVariableBo)}}class pr{constructor(e){var n,u;this.aliasCode=(n=e==null?void 0:e.aliasCode)!=null?n:"",this.datasourceBind=new ge(e==null?void 0:e.datasourceBind),this.relationFields=(u=e==null?void 0:e.relationFields)!=null?u:[]}}class Ut{constructor(e){var n,u,a,i;this.controlId=(n=e==null?void 0:e.controlId)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.propName=(i=e==null?void 0:e.propName)!=null?i:""}}class Ue{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"FIELD",this.value=(u=e==null?void 0:e.value)!=null?u:"",this.fieldType=e==null?void 0:e.fieldType}}class He{constructor(e){var n,u;this.columnName=(n=e.columnName)!=null?n:"",this.desc=(u=e.desc)!=null?u:!1}}class Ht{constructor(e){var n,u,a;this.code=(n=e.code)!=null?n:"",this.value=(u=e.value)!=null?u:"",this.field_type=(a=e.field_type)!=null?a:ee.ANY}}class el{constructor(e){var n,u,a,i,r,l,d;this.id=(n=e.id)!=null?n:"",this.limit=(u=e.limit)!=null?u:20,this.formKey=(a=e.formKey)!=null?a:"",this.orders=(r=(i=e.orders)==null?void 0:i.map(c=>new He(c)))!=null?r:[],this.dataSet=(d=(l=e.dataSet)==null?void 0:l.map(c=>new Ht(c)))!=null?d:[]}}function ke(t){var e,n,u,a,i,r;this.filters=(n=(e=t==null?void 0:t.filters)==null?void 0:e.map(l=>l.children!==void 0?new J(l):new ae(l)))!=null?n:[],this.viewFilters=(a=(u=t==null?void 0:t.viewFilters)==null?void 0:u.map(l=>l.children!==void 0?new J(l):new ae(l)))!=null?a:[],this.orders=(r=(i=t==null?void 0:t.orders)==null?void 0:i.map(l=>new He(l)))!=null?r:[]}class ge{constructor(e){var n,u,a,i,r,l,d;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.valueFieldCode=(a=e==null?void 0:e.valueFieldCode)!=null?a:"",this.displayBoList=[],this.isOpenViewFilters=(i=e==null?void 0:e.isOpenViewFilters)!=null?i:0,Array.isArray(e==null?void 0:e.displayBoList)&&(e==null||e.displayBoList.map(c=>{var g;(g=this.displayBoList)==null||g.push(new Ue(c))})),this.keywordMapping=(r=e==null?void 0:e.keywordMapping)!=null?r:"",this.showOrder=(l=e==null?void 0:e.showOrder)!=null?l:!0,this.svcCode=(d=e==null?void 0:e.svcCode)!=null?d:"",ke.call(this,e)}}class tl{constructor(e){var n,u;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.displayBoList=(u=e==null?void 0:e.displayBoList)!=null?u:[]}}class nl{constructor(e){var n,u,a,i,r,l,d,c,g,E;this.code=(n=e==null?void 0:e.code)!=null?n:"view",this.color=(u=e==null?void 0:e.color)!=null?u:"primary",this.command=(a=e==null?void 0:e.command)!=null?a:"view",this.confirmMessage=(i=e==null?void 0:e.confirmMessage)!=null?i:void 0,this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.formKey=(l=e==null?void 0:e.formKey)!=null?l:void 0,this.formType=e==null?void 0:e.formType,this.icon=(d=e==null?void 0:e.icon)!=null?d:"iconliulan1",this.needConfirm=(c=e==null?void 0:e.needConfirm)!=null?c:!1,this.openType=(g=e==null?void 0:e.openType)!=null?g:"modal",this.priorityProcess=(E=e==null?void 0:e.priorityProcess)!=null?E:!0}}class We{constructor(e){var n,u,a,i;this.name=(n=e==null?void 0:e.name)!=null?n:"",this.key=(u=e==null?void 0:e.key)!=null?u:"",this.value=(i=(a=e==null?void 0:e.value)==null?void 0:a.map(r=>new Ue(r)))!=null?i:[]}}class kt extends ge{constructor(e){var n,u;super(e),this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(a=>new We(a)))!=null?u:[]}}class ul extends ge{constructor(e){var n,u,a;super(e),this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(i=>new We(i)))!=null?u:[],this.formCode=(a=e==null?void 0:e.formCode)!=null?a:""}}class al extends kt{constructor(e){var n;super(e),this.rootNode=new Ne(e==null?void 0:e.rootNode),this.filterCode=(n=e==null?void 0:e.filterCode)!=null?n:""}}class Wt{constructor(e){var n,u,a,i;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.fillList=(i=(a=e==null?void 0:e.fillList)==null?void 0:a.map(r=>new Ut(r)))!=null?i:[]}}class il extends Wt{constructor(e){super(e),ke.call(this,e)}}class rl extends Wt{constructor(e){var n,u;super(e),this.mode=(n=e==null?void 0:e.mode)!=null?n:"current",this.multiple=(u=e==null?void 0:e.multiple)!=null?u:!1}}class ll{constructor(e){var n,u,a;this.zh=(n=e==null?void 0:e.zh)!=null?n:"",this.en=(u=e==null?void 0:e.en)!=null?u:"",this.ja=(a=e==null?void 0:e.ja)!=null?a:""}}class sl{constructor(e){var n,u,a;this.stencilName=(n=e==null?void 0:e.stencilName)!=null?n:"",this.expression=(u=e==null?void 0:e.expression)!=null?u:"",this.errMessage=(a=e==null?void 0:e.errMessage)!=null?a:""}}class Ke{constructor(e){var n,u,a;this.id=(n=e==null?void 0:e.id)!=null?n:N(8),this.label=(u=e==null?void 0:e.label)!=null?u:"",this.value=(a=e==null?void 0:e.value)!=null?a:this.label}}class Kt extends Ke{constructor(e){var n,u;super(e),this.image=(n=e==null?void 0:e.image)!=null?n:"",this.type=(u=e==null?void 0:e.type)!=null?u:"src"}}function ol(t){var e;return(e=t==null?void 0:t.map(n=>new Ke(n)))!=null?e:[]}function cl(t){var e;return(e=t==null?void 0:t.map(n=>new Kt(n)))!=null?e:[]}class ye{}class dl extends ye{constructor(e){super(),this.amount=new q(e==null?void 0:e.amount),this.currency=new q(e==null?void 0:e.currency)}}class fl{constructor(e){var n,u;this.amount=(n=e==null?void 0:e.amount)!=null?n:"",this.currency=(u=e==null?void 0:e.currency)!=null?u:ze.CNY}}class hl extends ye{constructor(e){super(),this.min=new q(e==null?void 0:e.min),this.max=new q(e==null?void 0:e.max)}}class ml{constructor(e){var n,u;this.min=(n=e==null?void 0:e.min)!=null?n:"",this.max=(u=e==null?void 0:e.max)!=null?u:""}}class gl{constructor(e){var n,u,a,i,r,l;this.city=(n=e==null?void 0:e.city)!=null?n:"",this.cityDisplay=(u=e==null?void 0:e.cityDisplay)!=null?u:"",this.district=(a=e==null?void 0:e.district)!=null?a:"",this.districtDisplay=(i=e==null?void 0:e.districtDisplay)!=null?i:"",this.province=(r=e==null?void 0:e.province)!=null?r:"",this.provinceDisplay=(l=e==null?void 0:e.provinceDisplay)!=null?l:""}}class yl extends ye{constructor(e){super(),this.result=new q(e==null?void 0:e.result),this.unit=new q(e==null?void 0:e.unit)}}class vl{constructor(e){var n,u;this.result=(n=e==null?void 0:e.result)!=null?n:0,this.unit=(u=e==null?void 0:e.unit)!=null?u:""}}var ze=(t=>(t.CNY="CNY",t.USD="USD",t.JPY="JPY",t.EUR="EUR",t.INR="INR",t.IDR="IDR",t.BRL="BRL",t.AED="AED",t.AUD="AUD",t.CAD="CAD",t.EGP="EGP",t.GBP="GBP",t.ZAR="ZAR",t.KRW="KRW",t.MAD="MAD",t.MXN="MXN",t.MYR="MYR",t.PHP="PHP",t.PLN="PLN",t.RUB="RUB",t.SGD="SGD",t.THB="THB",t.TRY="TRY",t.TWD="TWD",t.VND="VND",t.HKD="HKD",t.IEP="IEP",t))(ze||{}),zt=(t=>(t.DEFAULT_DISPLAY="defaultDisplay",t.REQUIRED="required",t.IS_HIDE="isHide",t.IS_SHOW_UNIT="isShowUnit",t.IMD_SEARCH="immediatelySearch",t.MULTIPLE="multiple",t.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",t.CAPTION="caption",t.IS_HIDE_CAPTION="isHideCaption",t.DEFAULT_SHOW_OPTIONS="defaultShowOptions",t.CAN_SEARCH="canSearch",t.CAN_CHECK="canCheck",t.CAN_EDIT="canEdit",t.CAN_DELETE="canDelete",t.SHOW_UPPER_CASE="showUpperCase",t.MICROMETER="micrometer",t.PRECISION="precision",t.PERCENTAGE="percentage",t.OPTIONAL_LEVEL="optionalLevel",t.CONTAINS_SUB_NODE="containsSubNode",t.DEFAULT_COLLAPSE="defaultCollapse",t.CAN_VIEW_FORM="canViewForm",t.VIEW_FORM_MODEL_TYPE="viewFormModelType",t.SERVER_PAGINATION="serverPagination",t.IS_SHOW_CAPTION_TIP="isShowCaptionTip",t.ENCRYPTED="encrypted",t.IS_INLINE_EDIT="isInlineEdit",t.REVISIONS_MODE="revisionsMode",t.ALLOW_COPY_OPTIONS="allowCopyOptions",t.IS_PASTE="isPaste",t))(zt||{}),Te=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t))(Te||{});class El{constructor(e){var n,u,a,i,r,l;this.isShow=(n=e==null?void 0:e.isShow)!=null?n:!0,this.content=(u=e==null?void 0:e.content)!=null?u:"",this.formKey=(a=e==null?void 0:e.formKey)!=null?a:"",this.openType=(i=e==null?void 0:e.openType)!=null?i:"modal",this.type=(r=e==null?void 0:e.type)!=null?r:"",this.priorityProcess=(l=e==null?void 0:e.priorityProcess)!=null?l:!1}}class Bl{constructor(e){var n,u,a,i;this.id=(n=e==null?void 0:e.id)!=null?n:N(8),this.title=(u=e==null?void 0:e.title)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new xt(r)))!=null?i:[],ke.call(this,e)}}class Cl{constructor(e){var n,u;this.key=(n=e.key)!=null?n:N(8),this.caption=(u=e.caption)!=null?u:""}}class Tt{constructor(e){var n,u,a,i;this.width=(n=e==null?void 0:e.width)!=null?n:"",this.height=(u=e==null?void 0:e.height)!=null?u:"",this.widthConfig=(a=e==null?void 0:e.widthConfig)!=null?a:"fill",this.heightConfig=(i=e==null?void 0:e.heightConfig)!=null?i:"fill"}}class Al{constructor(e){var n,u;this.optCode=(n=e==null?void 0:e.optCode)!=null?n:"",this.optType=(u=e==null?void 0:e.optType)!=null?u:""}}class Fl{constructor(e){var n,u,a,i,r;this.id=(n=e==null?void 0:e.id)!=null?n:N(),this.name=(u=e==null?void 0:e.name)!=null?u:"",this.color=(a=e==null?void 0:e.color)!=null?a:"theme",this.filters=(r=(i=e==null?void 0:e.filters)==null?void 0:i.map(l=>l.children!==void 0?new J(l):new ae(l)))!=null?r:[]}}class Dl{constructor(e){var n,u,a;this.id=(n=e.id)!=null?n:N(),this.script=(u=e.script)!=null?u:"",this.color=(a=e.color)!=null?a:"theme"}}class ve{constructor(e){this.isHide={type:"boolean"}}}class Je extends Array{constructor(e){super()}}class H{constructor(e,n=""){var u,a;this.isHide=(u=e==null?void 0:e.isHide)!=null?u:!1,this.style=new Tt(e==null?void 0:e.style),this.caption=(a=e==null?void 0:e.caption)!=null?a:n}}H.Rules=ve,H.RuntimeRules=Je;function V(){return V=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},V.apply(this,arguments)}function bl(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Xe(t){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xe(t)}function Ee(t,e){return Ee=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},Ee(t,e)}function Sl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function Be(t,e,n){return Sl()?Be=Reflect.construct:Be=function(a,i,r){var l=[null];l.push.apply(l,i);var d=Function.bind.apply(a,l),c=new d;return r&&Ee(c,r.prototype),c},Be.apply(null,arguments)}function wl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ge(t){var e=typeof Map=="function"?new Map:void 0;return Ge=function(u){if(u===null||!wl(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return Be(u,arguments,Xe(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ee(a,u)},Ge(t)}var Il=/%[sdj%]/g,Jt=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Jt=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(u){return typeof u=="string"})&&console.warn(e,n)});function Ze(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var u=n.field;e[u]=e[u]||[],e[u].push(n)}),e}function P(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u=1,a=e[0],i=e.length;if(typeof a=="function")return a.apply(null,e.slice(1));if(typeof a=="string"){var r=String(a).replace(Il,function(l){if(l==="%%")return"%";if(u>=i)return l;switch(l){case"%s":return String(e[u++]);case"%d":return Number(e[u++]);case"%j":try{return JSON.stringify(e[u++])}catch(d){return"[Circular]"}break;default:return l}});return r}return a}function Rl(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function _(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Rl(e)&&typeof t=="string"&&!t)}function Ml(t,e,n){var u=[],a=0,i=t.length;function r(l){u.push.apply(u,l),a++,a===i&&n(u)}t.forEach(function(l){e(l,r)})}function Xt(t,e,n){var u=0,a=t.length;function i(r){if(r&&r.length){n(r);return}var l=u;u=u+1,l<a?e(t[l],i):n([])}i([])}function _l(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var Gt=function(t){bl(e,t);function e(n,u){var a;return a=t.call(this,"Async Validation Error")||this,a.errors=n,a.fields=u,a}return e}(Ge(Error));function $l(t,e,n,u){if(e.first){var a=new Promise(function(E,b){var w=function(F){return u(F),F.length?b(new Gt(F,Ze(F))):E()},A=_l(t);Xt(A,n,w)});return a.catch(function(E){return E}),a}var i=e.firstFields||[];i===!0&&(i=Object.keys(t));var r=Object.keys(t),l=r.length,d=0,c=[],g=new Promise(function(E,b){var w=function(f){if(c.push.apply(c,f),d++,d===l)return u(c),c.length?b(new Gt(c,Ze(c))):E()};r.length||(u(c),E()),r.forEach(function(A){var f=t[A];i.indexOf(A)!==-1?Xt(f,n,w):Ml(f,n,w)})});return g.catch(function(E){return E}),g}function Zt(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function Qt(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var u=e[n];typeof u=="object"&&typeof t[n]=="object"?t[n]=V(V({},t[n]),u):t[n]=u}}return t}function Yt(t,e,n,u,a,i){t.required&&(!n.hasOwnProperty(t.field)||_(e,i||t.type))&&u.push(P(a.messages.required,t.fullField))}function Ll(t,e,n,u,a){(/^\s+$/.test(e)||e==="")&&u.push(P(a.messages.whitespace,t.fullField))}var Qe={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},ie={integer:function(e){return ie.number(e)&&parseInt(e,10)===e},float:function(e){return ie.number(e)&&!ie.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(n){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!ie.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(Qe.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(Qe.url)},hex:function(e){return typeof e=="string"&&!!e.match(Qe.hex)}};function Pl(t,e,n,u,a){if(t.required&&e===void 0){Yt(t,e,n,u,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],r=t.type;i.indexOf(r)>-1?ie[r](e)||u.push(P(a.messages.types[r],t.fullField,t.type)):r&&typeof e!==t.type&&u.push(P(a.messages.types[r],t.fullField,t.type))}function ql(t,e,n,u,a){var i=typeof t.len=="number",r=typeof t.min=="number",l=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,g=null,E=typeof e=="number",b=typeof e=="string",w=Array.isArray(e);if(E?g="number":b?g="string":w&&(g="array"),!g)return!1;w&&(c=e.length),b&&(c=e.replace(d,"_").length),i?c!==t.len&&u.push(P(a.messages[g].len,t.fullField,t.len)):r&&!l&&c<t.min?u.push(P(a.messages[g].min,t.fullField,t.min)):l&&!r&&c>t.max?u.push(P(a.messages[g].max,t.fullField,t.max)):r&&l&&(c<t.min||c>t.max)&&u.push(P(a.messages[g].range,t.fullField,t.min,t.max))}var X="enum";function Vl(t,e,n,u,a){t[X]=Array.isArray(t[X])?t[X]:[],t[X].indexOf(e)===-1&&u.push(P(a.messages[X],t.fullField,t[X].join(", ")))}function xl(t,e,n,u,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||u.push(P(a.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(e)||u.push(P(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var v={required:Yt,whitespace:Ll,type:Pl,range:ql,enum:Vl,pattern:xl};function Ol(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e,"string")&&!t.required)return n();v.required(t,e,u,i,a,"string"),_(e,"string")||(v.type(t,e,u,i,a),v.range(t,e,u,i,a),v.pattern(t,e,u,i,a),t.whitespace===!0&&v.whitespace(t,e,u,i,a))}n(i)}function jl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a),e!==void 0&&v.type(t,e,u,i,a)}n(i)}function Nl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e===""&&(e=void 0),_(e)&&!t.required)return n();v.required(t,e,u,i,a),e!==void 0&&(v.type(t,e,u,i,a),v.range(t,e,u,i,a))}n(i)}function Ul(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a),e!==void 0&&v.type(t,e,u,i,a)}n(i)}function Hl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a),_(e)||v.type(t,e,u,i,a)}n(i)}function kl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a),e!==void 0&&(v.type(t,e,u,i,a),v.range(t,e,u,i,a))}n(i)}function Wl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a),e!==void 0&&(v.type(t,e,u,i,a),v.range(t,e,u,i,a))}n(i)}function Kl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e==null&&!t.required)return n();v.required(t,e,u,i,a,"array"),e!=null&&(v.type(t,e,u,i,a),v.range(t,e,u,i,a))}n(i)}function zl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a),e!==void 0&&v.type(t,e,u,i,a)}n(i)}var Tl="enum";function Jl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a),e!==void 0&&v[Tl](t,e,u,i,a)}n(i)}function Xl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e,"string")&&!t.required)return n();v.required(t,e,u,i,a),_(e,"string")||v.pattern(t,e,u,i,a)}n(i)}function Gl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e,"date")&&!t.required)return n();if(v.required(t,e,u,i,a),!_(e,"date")){var l;e instanceof Date?l=e:l=new Date(e),v.type(t,l,u,i,a),l&&v.range(t,l.getTime(),u,i,a)}}n(i)}function Zl(t,e,n,u,a){var i=[],r=Array.isArray(e)?"array":typeof e;v.required(t,e,u,i,a,r),n(i)}function Ye(t,e,n,u,a){var i=t.type,r=[],l=t.required||!t.required&&u.hasOwnProperty(t.field);if(l){if(_(e,i)&&!t.required)return n();v.required(t,e,u,r,a,i),_(e,i)||v.type(t,e,u,r,a)}n(r)}function Ql(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a)}n(i)}var re={string:Ol,method:jl,number:Nl,boolean:Ul,regexp:Hl,integer:kl,float:Wl,array:Kl,object:zl,enum:Jl,pattern:Xl,date:Gl,url:Ye,hex:Ye,email:Ye,required:Zl,any:Ql};function pe(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var et=pe();function W(t){this.rules=null,this._messages=et,this.define(t)}W.prototype={messages:function(e){return e&&(this._messages=Qt(pe(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var n,u;for(n in e)e.hasOwnProperty(n)&&(u=e[n],this.rules[n]=Array.isArray(u)?u:[u])},validate:function(e,n,u){var a=this;n===void 0&&(n={}),u===void 0&&(u=function(){});var i=e,r=n,l=u;if(typeof r=="function"&&(l=r,r={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(),Promise.resolve();function d(f){var F,o=[],m={};function B(I){if(Array.isArray(I)){var R;o=(R=o).concat.apply(R,I)}else o.push(I)}for(F=0;F<f.length;F++)B(f[F]);o.length?m=Ze(o):(o=null,m=null),l(o,m)}if(r.messages){var c=this.messages();c===et&&(c=pe()),Qt(c,r.messages),r.messages=c}else r.messages=this.messages();var g,E,b={},w=r.keys||Object.keys(this.rules);w.forEach(function(f){g=a.rules[f],E=i[f],g.forEach(function(F){var o=F;typeof o.transform=="function"&&(i===e&&(i=V({},i)),E=i[f]=o.transform(E)),typeof o=="function"?o={validator:o}:o=V({},o),o.validator=a.getValidationMethod(o),o.field=f,o.fullField=o.fullField||f,o.type=a.getType(o),o.validator&&(b[f]=b[f]||[],b[f].push({rule:o,value:E,source:i,field:f}))})});var A={};return $l(b,r,function(f,F){var o=f.rule,m=(o.type==="object"||o.type==="array")&&(typeof o.fields=="object"||typeof o.defaultField=="object");m=m&&(o.required||!o.required&&f.value),o.field=f.field;function B(x,D){return V(V({},D),{},{fullField:o.fullField+"."+x})}function I(x){x===void 0&&(x=[]);var D=x;if(Array.isArray(D)||(D=[D]),!r.suppressWarning&&D.length&&W.warning("async-validator:",D),D.length&&o.message!==void 0&&(D=[].concat(o.message)),D=D.map(Zt(o)),r.first&&D.length)return A[o.field]=1,F(D);if(!m)F(D);else{if(o.required&&!f.value)return o.message!==void 0?D=[].concat(o.message).map(Zt(o)):r.error&&(D=[r.error(o,P(r.messages.required,o.field))]),F(D);var O={};if(o.defaultField)for(var ln in f.value)f.value.hasOwnProperty(ln)&&(O[ln]=o.defaultField);O=V(V({},O),f.rule.fields);for(var G in O)if(O.hasOwnProperty(G)){var fs=Array.isArray(O[G])?O[G]:[O[G]];O[G]=fs.map(B.bind(null,G))}var sn=new W(O);sn.messages(r.messages),f.rule.options&&(f.rule.options.messages=r.messages,f.rule.options.error=r.error),sn.validate(f.value,f.rule.options||r,function(st){var Z=[];D&&D.length&&Z.push.apply(Z,D),st&&st.length&&Z.push.apply(Z,st),F(Z.length?Z:null)})}}var R;o.asyncValidator?R=o.asyncValidator(o,f.value,I,f.source,r):o.validator&&(R=o.validator(o,f.value,I,f.source,r),R===!0?I():R===!1?I(o.message||o.field+" fails"):R instanceof Array?I(R):R instanceof Error&&I(R.message)),R&&R.then&&R.then(function(){return I()},function(x){return I(x)})},function(f){d(f)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!re.hasOwnProperty(e.type))throw new Error(P("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var n=Object.keys(e),u=n.indexOf("message");return u!==-1&&n.splice(u,1),n.length===1&&n[0]==="required"?re.required:re[this.getType(e)]||!1}},W.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");re[e]=n},W.warning=Jt,W.messages=et,W.validators=re;const Yl={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 pt(t,e={}){const n=new W(t);return n.messages(Object.assign(Yl,e)),n}const en=new Hr;class L{constructor(e){var b,w,A,f;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=nn,this.removeSetting=tn,this._callControlHooks("preInstance",e);const{controlName:n,controlIcon:u,controlType:a,controlFieldType:i,controlEventKeys:r,controlCustomEvents:l,name:d,setting:c,slots:g,slotPosition:E}=new.target;n&&u&&a||Dt(`The ${d} controlName,controlIcon,controlType is not define`),this.id=(b=e==null?void 0:e.id)!=null?b:N(10),this.name=n,this.icon=u,this.type=(w=e==null?void 0:e.type)!=null?w:a,this.props=new H(e==null?void 0:e.props,new.target.controlName),this.controlType=(A=e==null?void 0:e.controlType)!=null?A:"base",this.setting=U(c),this.fieldType=(f=e==null?void 0:e.fieldType)!=null?f:i,this.eventKeys=U(r),this.customEvents=U(l),this.slots=U(g),this.slotPosition=U(E),Promise.resolve().then(()=>{this._callControlHooks("postInstance",e)})}get rules(){const e=this.props.constructor.Rules;return e?new e(this.props):{}}_callControlHooks(...e){const[n,...u]=e;return en.emit(n,this,...u)}preUpdate(e,n){this._callControlHooks("preUpdateProps",e,n)}postUpdate(e,n){this._callControlHooks("postUpdateProps",e,n)}updateProps(e,n){this.preUpdate(e,n),wr(this.props,e,n),this.postUpdate(e,n)}preValidate(){return oe(this,null,function*(){const e=Q({},this.rules),n=yield this._callControlHooks("preValidate",e),u=n[n.length-1];return u===!1?void 0:u})}validate(e,n){return oe(this,null,function*(){const u=yield this.preValidate(),a=u!==void 0?u:Q({},this.rules);Array.isArray(n)&&n.forEach(r=>{a.hasOwnProperty(r)&&delete a[r]});const i=pt(a,e);try{return yield i.validate(this.props),!0}catch(r){throw r.control||(r.control=this),r}})}toDataBindModel(e=null){const n=this.fieldType,u=this.id,a=this.type,{dataBind:i,datasourceBind:r,optionConfig:l,caption:d,required:c,maxLength:g,options:E,encrypted:b,encryptedMode:w}=this.props;if(!n&&!i&&!r)return;const A={parentId:e,fieldType:n,controlId:u,caption:d,type:a,props:{}};switch(i&&(A.dataBind=i),l){case"datasource":case void 0:r&&(A.datasourceBind=r);break;case"custom":A.props.options=E;break}return c!==void 0&&(A.required=c),g!==void 0&&(A.maxLength=g),b!==void 0&&(A.encrypted=b),w!==void 0&&(A.encryptedMode=w),A}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:U(this.props),fieldType:this.fieldType,controlType:this.controlType}}static updateBasicControl(e,n){e==="setting"&&(n.add&&this.setting.push(...n.add),n.remove&&this.removeSettingItem(n.remove),n.update)}}L.mode="Designer",L.controlName="\u63A7\u4EF6",L.controlIcon="icon",L.controlType="control",L.controlEventKeys=[],L.controlCustomEvents=[],L.setting=[],L.__is_control__=!0,L.removeSettingItem=tn,L.updateSettingItem=nn;function tn(t){(Array.isArray(t)?t:[t]).forEach(n=>{var i,r,l;const u=typeof n!="string",a=(i=this.setting)==null?void 0:i.findIndex(d=>d.key===(u?n.key:n));a!==-1&&(u?this.setting[a].showItems=(r=this.setting[a].showItems)==null?void 0:r.filter(d=>!n.hideItems.includes(d)):this.setting.splice(a,1),u&&!((l=this.setting[a].showItems)!=null&&l.length)&&this.setting.splice(a,1))})}function nn(t,e){(typeof t=="string"?[t]:t).forEach(u=>{var i;const a=this.setting.find(r=>r.key===u);a&&(typeof e=="boolean"?a.visible=e:typeof e=="object"&&(((i=e.type)!=null?i:"replace")==="replace"?a.showItems=e.showItems:a.showItems.push(...e.showItems)))})}class k{constructor(e){var r,l,d,c,g;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:u,name:a,controlCustomEvents:i}=new.target;n||Dt(`The ${a} controlType is not define`),this.id=(r=e==null?void 0:e.id)!=null?r:N(10),this.type=(l=e==null?void 0:e.type)!=null?l:n,this.props=new H(e==null?void 0:e.props),this.customEvents=i,this.controlType=(d=e==null?void 0:e.controlType)!=null?d:"base",this.fieldType=(c=e==null?void 0:e.fieldType)!=null?c:u,this.pageStatus=(g=e==null?void 0:e.pageStatus)!=null?g:Te.UNKNOWN}get rules(){const e=this.props.constructor.RuntimeRules;if(e){const n=new e(this.props);return Array.from(n)}return[]}}k.mode="Runtime",k.controlType="control",k.__is_control__=!0,k.controlCustomEvents=[];function tt(t){t.hasOwnProperty("optionConfig")||(this.optionConfig={type:"any"}),t.hasOwnProperty("options")||(this.options={type:"any"}),t.hasOwnProperty("datasourceBind")||(this.datasourceBind={type:"any"}),t.hasOwnProperty("options")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="custom")?this.options=[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:h.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:h.getMessage("pleaseEnterValue")}}}},{type:"array",validator(e,n,u){n.length===0&&u(h.getMessage("optionIsRequired")),u()}},{type:"array",validator(e,n,u){const a=n.map(r=>r.value),i=Lr(a);a.length!==i.length?u(h.getMessage("optionIdIsRepeat")):u()},message:h.getMessage("optionIdIsRepeat")}]:t.hasOwnProperty("datasourceBind")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",validator(e,n,u){n.length===0&&u(h.getMessage("pleaseBindAtLeastOneDisplayValue")),u()},message:h.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:h.getMessage("isNotBoolean")}}}}]}}])}function pl(t,e,n=!1){this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:h.getMessage("isNotString")},key:{type:"string",required:!0,message:h.getMessage("isNotString")},value:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",validator(u,a,i){a.length===0&&i(h.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),i()},message:h.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:h.getMessage("isNotBoolean")}}}}]}}]}function un(t){return(t==null?void 0:t.dataCode)!==void 0&&(t==null?void 0:t.fieldCode)!==void 0}class nt extends ve{constructor(e){super(e),this.dataBind={},this.caption={type:"string",required:!0,message:h.getMessage("pleaseEnterCaption")},this.isHideCaption={type:"boolean"},this.labelPosition={type:"enum",enum:["top","left"]},this.defaultState={type:"enum",enum:["default","readonly"]},this.required={type:"boolean"},this.captionTip={type:"string",required:!1,message:h.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")}};if(un(e.dataBind))this.dataBind={type:"object",required:!0,fields:U(n),message:h.getMessage("pleaseEnterFieldCode")};else{let u={type:"object",required:!0,fields:{},message:h.getMessage("pleaseEnterFieldCode")};Object.keys(e.dataBind).forEach(a=>{u.fields[a]={type:"object",required:!0,fields:U(n),message:h.getMessage("pleaseEnterFieldCode")}}),this.dataBind=u}e.isShowCaptionTip&&(this.captionTip.required=!0)}}class an extends Je{constructor(e){super(e);const n=e.isHide?!1:e.required;n&&this.push({type:"string",required:n,message:e.requiredMessage!==""?e.requiredMessage:h.getMessage("runtimeRequired",{caption:e.caption})})}}class le extends H{constructor(e){var n,u,a,i,r,l,d,c,g,E;super(e),this.caption=(n=e==null?void 0:e.caption)!=null?n:"",this.isHideCaption=(u=e==null?void 0:e.isHideCaption)!=null?u:!1,this.isShowCaptionTip=(a=e==null?void 0:e.isShowCaptionTip)!=null?a:!1,this.captionTip=(i=e==null?void 0:e.captionTip)!=null?i:"",this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.labelPosition=(l=e==null?void 0:e.labelPosition)!=null?l:"top",this.placeholder=(d=e==null?void 0:e.placeholder)!=null?d:"",this.required=(c=e==null?void 0:e.required)!=null?c:!1,this.requiredMessage=(g=e==null?void 0:e.requiredMessage)!=null?g:"",this.dataBind=new q(e==null?void 0:e.dataBind),this.defaultValue=(E=e==null?void 0:e.defaultValue)!=null?E:""}}le.Rules=nt,le.RuntimeRules=an;class es extends nt{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource"],message:h.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:h.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")}],tt.call(this,e)}}class rn extends L{constructor(e){super(e),this.controlType="form",this.props=new le(e==null?void 0:e.props)}}rn.controlEventKeys=["on_change","on_focus","on_blur"];class ts extends k{constructor(e){super(e),this.controlType="form",this.props=new le(e==null?void 0:e.props)}}class se extends H{constructor(e){super(e)}}const ns=1e4;class K extends L{constructor(e){super(e),this.controlType="layout";const{excludes:n,childrenMaxLength:u}=new.target;this.props=new se(e==null?void 0:e.props),T(this,"children",e==null?void 0:e.children,void 0,"Designer"),this.excludes=U(n),this.childrenMaxLength=u}judgeExcludesChildren(e){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(e)}judgeJoinChildren(e){const n=this.judgeExcludesChildren(e);return n&&this.childrenMaxLength>this.children.length}validate(e,n){return oe(this,null,function*(){return yield ot(K.prototype,this,"validate").call(this,e,n),yield Promise.all(this.children.map(u=>u.validate(e,n))),!0})}toDataBindModel(e=null){const n=super.toDataBindModel(),u=n?[n]:[];return this.children.reduce((a,i)=>{const r=i.toDataBindModel(e);if(Array.isArray(r)){const l=r.filter(d=>!!d);return[...a,...l]}return r&&a.push(r),a},u)}toSchema(){const e=super.toSchema(),n=this.children.map(u=>u.toSchema());return Fe(Q({},e),{children:n})}}K.excludes=!1,K.childrenMaxLength=ns;class ut extends k{constructor(e){super(e),this.controlType="layout",this.props=new se(e==null?void 0:e.props),T(this,"children",e==null?void 0:e.children,void 0,"Runtime")}}class at extends H{constructor(e,n,u){var a,i,r,l;super(n),T(this,"headers",n==null?void 0:n.headers,e,u),T(this,"footers",n==null?void 0:n.footers,e),this.pageIndex=(a=n==null?void 0:n.pageIndex)!=null?a:1,this.pageSize=(i=n==null?void 0:n.pageSize)!=null?i:20,this.pageSizeOptions=(r=n==null?void 0:n.pageSizeOptions)!=null?r:[20],this.totalCount=(l=n==null?void 0:n.totalCount)!=null?l:0}}class Ce extends L{constructor(e){super(e),this.controlType="list",this.props=new at(this,e==null?void 0:e.props,"Designer")}validate(e,n){return oe(this,null,function*(){return yield ot(Ce.prototype,this,"validate").call(this,e),yield Promise.all(this.props.headers.map(u=>u.validate(e,n))),!0})}toDataBindModel(){const e=super.toDataBindModel(),n=e?[e]:[],u=this.id;return this.props.headers.reduce((a,i)=>{const r=i.toDataBindModel(u);if(Array.isArray(r)){const l=r.filter(d=>!!d);return[...a,...l]}return r&&a.push(r),a},n)}toSchema(){var a,i;const e=super.toSchema(),n=this.props.headers.map(r=>r.toSchema()),u=(i=(a=this.props)==null?void 0:a.footers)==null?void 0:i.map(r=>{if(r)return r.toSchema()});return Fe(Q({},e),{props:Fe(Q({},this.props),{headers:n,footers:u})})}}Ce.controlFieldType=ee.LIST;class us extends k{constructor(e){super(e),this.controlType="list",this.props=new at(this,e==null?void 0:e.props,"Runtime"),T(this,"children",e==null?void 0:e.children,void 0,"Runtime")}get length(){return this.children.length}}class it extends ve{constructor(e){super(e),this.caption={type:"string",required:!0,message:h.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:h.getMessage("pleaseEnterColumnWidth")},this.width.required=e.widthType==="px"}}class Ae extends H{constructor(e){var n,u,a,i,r;super(e),this.width=(n=e==null?void 0:e.width)!=null?n:150,this.widthType=(e==null?void 0:e.widthType)||"auto",this.caption=(u=e==null?void 0:e.caption)!=null?u:"",this.fixed=(a=e==null?void 0:e.fixed)!=null?a:"none",this.autoWidth=new Oe(e==null?void 0:e.autoWidth),this.dataBind=new q(e==null?void 0:e.dataBind),this.sort=(i=e==null?void 0:e.sort)!=null?i:!0,this.align=e==null?void 0:e.align,this.colSpan=e==null?void 0:e.colSpan,this.autoHeight=(r=e==null?void 0:e.autoHeight)!=null?r:!1}}Ae.Rules=it;class as extends it{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:h.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:h.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")}],tt.call(this,e)}}class is extends L{constructor(e){super(e),this.controlType="column",this.props=new Ae(e==null?void 0:e.props)}}class rs extends k{constructor(e){super(e),this.controlType="column",this.props=new Ae(e==null?void 0:e.props)}}class rt extends se{constructor(e){super(e),this.dataBind=new q(e==null?void 0:e.dataBind)}}class ls extends K{constructor(e){super(e),this.controlType="search",this.props=new rt(e==null?void 0:e.props)}}class ss extends ut{constructor(e){super(e),this.controlType="search",this.props=new rt(e==null?void 0:e.props)}}class lt extends se{constructor(e){super(e)}}class os extends K{constructor(e){super(e),this.controlType="wrap",this.props=new lt(e==null?void 0:e.props)}}class cs extends ut{constructor(e){super(e),this.controlType="wrap",this.props=new lt(e==null?void 0:e.props)}}function ds(t){t.hasOwnProperty("linkOperationOption")&&t.hasOwnProperty("showLinkOperation")&&t.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:h.getMessage("pleaseEnterForm")}}}])}s.AMOUNT_TYPE=ze,s.AddressValue=gl,s.AmountDataBind=dl,s.AmountValue=fl,s.AutoWidth=Oe,s.BaseControlProperty=le,s.BaseControlPropertyRules=nt,s.BaseControlPropertyRuntimeRules=an,s.BaseStyle=Tt,s.COMMON_SETTING_TYPE=zt,s.CalcDataBind=yl,s.CalcValue=vl,s.ColumnControlProperty=Ae,s.ColumnControlPropertyRules=it,s.ColumnOptionAndDataSourcePropertyRules=as,s.CustomAttributeItem=We,s.CustomPermissionItem=Cl,s.DataBind=q,s.DataSourceBind=ge,s.DataSourceDataSetValue=Ht,s.DataSourceOrderItem=He,s.DataSourceParamItem=el,s.DataStorageDoc=Gr,s.DesignerColumnControl=is,s.DesignerControl=L,s.DesignerFormControl=rn,s.DesignerLayoutControl=K,s.DesignerListControl=Ce,s.DesignerSearchControl=ls,s.DesignerWrapControl=os,s.DisplayBoListItem=Ue,s.FieldBindItem=Ot,s.FieldFilterCondition=ae,s.FieldFilterConditions=J,s.FillBackBind=rl,s.FillPayloadBind=il,s.FormBind=me,s.FormSelectBind=Zr,s.ImageOptionSetting=Kt,s.JoinRelation=pr,s.Language=ll,s.LayoutControlProperty=se,s.LeftVariable=Nt,s.LinkOperationOption=nl,s.ListBind=Qr,s.ListControlProperty=at,s.MetaAutoWidth=Xr,s.MetaRowHeight=Jr,s.MetaWidth=he,s.MultistageFillingItem=Ut,s.ObjectDataBind=ye,s.OperationItem=El,s.OptObject=Al,s.OptionAndDataSourcePropertyRules=es,s.OptionSetting=Ke,s.OrganizationDataSourceBind=ul,s.PAGE_STATUS=Te,s.Property=H,s.PropertyRules=ve,s.PropertyRuntimeRules=Je,s.RangeDataBind=hl,s.RangeDateValue=ml,s.RegisterControls=ue,s.RegularRules=sl,s.RightVariable=Ne,s.RowHeight=je,s.RowStyleRule=Fl,s.RowStyleRuleScript=Dl,s.RuntimeColumnControl=rs,s.RuntimeControl=k,s.RuntimeFormControl=ts,s.RuntimeLayoutControl=ut,s.RuntimeListControl=us,s.RuntimeSearchControl=ss,s.RuntimeWrapControl=cs,s.SearchControlProperty=rt,s.SelectedContentConfig=tl,s.SubListItem=jt,s.SubListPageConfig=Yr,s.SuperDataSourceBind=kt,s.TreeDataSourceBind=al,s.ViewOperationItem=Bl,s.WrapControlProperty=lt,s.controlHooksEmitter=en,s.createValidator=pt,s.defineArrayParent=$t,s.defineControlArrayToProperty=T,s.defineParent=Ve,s.initImageOptions=cl,s.initLinkOperationRules=ds,s.initOptionAndDataSourceRules=tt,s.initOptions=ol,s.initSuperDataSourceRules=pl,s.isDataBind=un,s.setPropertyDontEnum=fe,Object.defineProperty(s,"__esModule",{value:!0})});
1
+ var hs=Object.defineProperty,ms=Object.defineProperties;var gs=Object.getOwnPropertyDescriptors;var on=Object.getOwnPropertySymbols,ys=Object.getPrototypeOf,vs=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Bs=Reflect.get;var cn=(s,w,M)=>w in s?hs(s,w,{enumerable:!0,configurable:!0,writable:!0,value:M}):s[w]=M,Q=(s,w)=>{for(var M in w||(w={}))vs.call(w,M)&&cn(s,M,w[M]);if(on)for(var M of on(w))Es.call(w,M)&&cn(s,M,w[M]);return s},Fe=(s,w)=>ms(s,gs(w));var ot=(s,w,M)=>Bs(ys(s),M,w);var oe=(s,w,M)=>new Promise((De,ce)=>{var be=j=>{try{Y(M.next(j))}catch(p){ce(p)}},we=j=>{try{Y(M.throw(j))}catch(p){ce(p)}},Y=j=>j.done?De(j.value):Promise.resolve(j.value).then(be,we);Y((M=M.apply(s,w)).next())});(function(s,w){typeof exports=="object"&&typeof module!="undefined"?w(exports):typeof define=="function"&&define.amd?define(["exports"],w):(s=typeof globalThis!="undefined"?globalThis:s||self,w(s.modelDrivenCore={}))})(this,function(s){"use strict";var w="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",M="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",De="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",ce="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",be="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",we="{caption}\u5FC5\u586B",Y="\u8BF7\u8F93\u5165\u6807\u9898",j="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",p="\u8BF7\u8F93\u5165\u884C\u6807\u9898",dn="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",fn="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",hn="\u8BF7\u7ED1\u5B9A\u8868\u5355",mn="\u8BF7\u7ED1\u5B9A\u5217\u8868",gn="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",yn="\u8BF7\u8F93\u5165\u663E\u793A\u503C",vn="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",En="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Bn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",Cn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",An="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Fn="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Dn="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",bn="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",wn="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Sn="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",In="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Rn="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Mn="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",_n="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",$n="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Ln="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Pn="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",qn="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Vn="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",xn="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",On="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",jn="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Nn="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Un="\u8BF7\u9009\u62E9\u7701",Hn="\u8BF7\u9009\u62E9\u5E02",kn="\u8BF7\u9009\u62E9\u533A",Wn="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Kn="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",zn="\u8BF7\u8F93\u5165\u5217\u5BBD",Tn="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Jn="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Xn="\u8BF7\u9009\u62E9\u63A7\u4EF6",Gn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Zn="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Qn="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Yn="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",pn="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",eu="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",tu="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",nu="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",uu="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",au="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",iu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ru="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",lu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",su="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ou="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",cu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",du="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",fu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",hu="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",mu="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",gu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",yu="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",vu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",Eu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",Bu="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",Cu="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",Au="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",Fu={isNotNumber:w,isNotString:M,isNotObject:De,isNotArray:ce,isNotBoolean:be,runtimeRequired:we,pleaseEnterCaption:Y,pleaseEnterCaptionTip:j,pleaseEnterRowCaption:p,pleaseEnterPlaceholder:dn,pleaseEnterFieldCode:fn,pleaseEnterForm:hn,pleaseEnterList:mn,pleaseEnterProcess:gn,pleaseEnterLabel:yn,pleaseEnterValue:vn,bizKeyNotBindFiled:En,pleaseSelectOneField:Bn,pleaseEnterNumberRange:Cn,pleaseEnterAValueGreaterThanMin:An,pleaseEnterAValueLessThanMax:Fn,numberRangeSetError:Dn,stringRangeError:bn,attachmentMaxSize:wn,pleaseEnterTotalScoreSetting:Sn,theTotalScoreMustNotBeLessThan1:In,scoreDefaultValueRange:Rn,attachmentLimitError:Mn,PleaseReselectTheOptionalQuantity:_n,TheMaximumLengthIsGreaterThanTheMinimumLength:$n,TheMinimumLengthIsGreaterThanTheMaximumLength:Ln,PleaseSelectTheCorrectOptionSettings:Pn,optionIdIsRepeat:qn,optionIsRequired:Vn,pleaseEnterDataCode:xn,pleaseEnterValueFieldCode:On,pleaseEnterSvcCode:jn,pleaseBindAtLeastOneDisplayValue:Nn,pleaseSelectProvince:Un,pleaseSelectCity:Hn,pleaseSelectDistrict:kn,limitRowsCannotBeLessThan0:Wn,TheNumberOfRowsCannotBeLessThanMinRows:Kn,pleaseEnterColumnWidth:zn,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Tn,pleaseCompleteAllRulesAndConditions:Jn,pleaseSelectControl:Xn,pleaseSelectAtLeastOneColumn:Gn,pleaseSelectFillBackMode:Zn,pleaseSelectDashboard:Qn,rootNodeIsRequired:Yn,theViewNameCannotBeEmpty:pn,pleaseSelectOcrType:eu,pleaseSelectAtLeastOneFieldToFillIn:tu,pleaseChooseAtLeastOne:nu,pleaseEnterButtonContent:uu,pleaseEnterDataCodeInDataSetting:au,pleaseEnterValueFieldCodeInDataSetting:iu,pleaseEnterSvcCodeInDataSetting:ru,pleaseBindAtLeastOneDisplayValueInDataSetting:lu,rootNodeIsRequiredInDataSetting:su,pleaseEnterMaxHeight:ou,pleaseEnter:cu,pleaseEnterWatermark:du,pleaseEnterFileName:fu,pleaseUploadAtLeastOnePrintTemplate:hu,pleaseAssignBusiness:mu,pleaseAssignExternal:gu,pleaseEnterAliasCode:yu,pleaseSelectDataCode:vu,pleaseSelectSvcCode:Eu,pleaseSelectJoinFieldCode:Bu,pleaseSelectMainFieldCode:Cu,pleaseSelectSortFieldCode:Au},Du="Please enter a number",bu="Please enter a string",wu="Please enter an object",Su="Please enter an array",Iu="Please enter a boolean",Ru="{caption} Required",Mu="Please enter the title",_u="Please enter the bubble prompt",$u="Please enter the row title",Lu="Please enter the prompt text",Pu="Please bind data items",qu="Please bind the form",Vu="Please bind the list",xu="Please bind the process",Ou="Please enter the displayed value",ju="Please enter the stored value",Nu="The document number is not bound to the data item",Uu="Please select at least one display field",Hu="Please enter a value greater than or equal to {min} and less than or equal to {max}",ku="Please enter a value greater than or equal to {min}",Wu="Please enter a value less than or equal to {max}",Ku="The value range is set incorrectly",zu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Tu="The attachment size must be between 0MB and 1000MB",Ju="Please fill in the total score setting",Xu="The total score cannot be less than 1",Gu="The default value must be between {min} and {max}",Zu="The number of attachments uploaded must be between {min} and {max}",Qu="Please re-select the optional quantity",Yu="The maximum length of the control must be greater than the minimum length",pu="The minimum length of the control must be less than the maximum length",ea="Please select the correct option setting",ta="Option ID cannot be repeated",na="Please enter at least one option",ua="Please bind the data source",aa="Please bind the stored value",ia="Please bind the service",ra="At least one display value must be bound",la="Please select a province",sa="Please select a city",oa="Please select a district",ca="The minimum number of lines to fill in cannot be less than 0",da="The number of rows cannot be less than {min} rows",fa="Please enter the column width",ha="Please set the logical relationship of all rule conditions",ma="Please complete all rules and conditions",ga="please select control",ya="Please select the dashboard",va="View name cannot be empty",Ea="Please select recognition type",Ba="Please select at least one field to fill in",Ca="Please select at least one",Aa="Please enter the button title",Fa="Please bind the business model in the data settings",Da="Please bind storage values in data settings",ba="Please bind the service in the data settings",wa="Please bind at least one display value in the data settings",Sa="Please select the root node in the data settings",Ia="Please enter the maximum height",Ra="The input content cannot be empty",Ma="Watermark cannot be empty",_a="File name cannot be empty",$a="Please upload at least one printing template!\uFF01",La="Please select a specific business department",Pa="Please select a specified external organization",qa="Please enter a sub table alias",Va="Please select the associated table to set the business model",xa="Please select the association table to set the binding service",Oa="Select associated sub table fields",ja="Please select the associated main table field",Na="Please select the sort field",Ua={isNotNumber:Du,isNotString:bu,isNotObject:wu,isNotArray:Su,isNotBoolean:Iu,runtimeRequired:Ru,pleaseEnterCaption:Mu,pleaseEnterCaptionTip:_u,pleaseEnterRowCaption:$u,pleaseEnterPlaceholder:Lu,pleaseEnterFieldCode:Pu,pleaseEnterForm:qu,pleaseEnterList:Vu,pleaseEnterProcess:xu,pleaseEnterLabel:Ou,pleaseEnterValue:ju,bizKeyNotBindFiled:Nu,pleaseSelectOneField:Uu,pleaseEnterNumberRange:Hu,pleaseEnterAValueGreaterThanMin:ku,pleaseEnterAValueLessThanMax:Wu,numberRangeSetError:Ku,stringRangeError:zu,attachmentMaxSize:Tu,pleaseEnterTotalScoreSetting:Ju,theTotalScoreMustNotBeLessThan1:Xu,scoreDefaultValueRange:Gu,attachmentLimitError:Zu,PleaseReselectTheOptionalQuantity:Qu,TheMaximumLengthIsGreaterThanTheMinimumLength:Yu,TheMinimumLengthIsGreaterThanTheMaximumLength:pu,PleaseSelectTheCorrectOptionSettings:ea,optionIdIsRepeat:ta,optionIsRequired:na,pleaseEnterDataCode:ua,pleaseEnterValueFieldCode:aa,pleaseEnterSvcCode:ia,pleaseBindAtLeastOneDisplayValue:ra,pleaseSelectProvince:la,pleaseSelectCity:sa,pleaseSelectDistrict:oa,limitRowsCannotBeLessThan0:ca,TheNumberOfRowsCannotBeLessThanMinRows:da,pleaseEnterColumnWidth:fa,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ha,pleaseCompleteAllRulesAndConditions:ma,pleaseSelectControl:ga,pleaseSelectDashboard:ya,theViewNameCannotBeEmpty:va,pleaseSelectOcrType:Ea,pleaseSelectAtLeastOneFieldToFillIn:Ba,pleaseChooseAtLeastOne:Ca,pleaseEnterButtonContent:Aa,pleaseEnterDataCodeInDataSetting:Fa,pleaseEnterValueFieldCodeInDataSetting:Da,pleaseEnterSvcCodeInDataSetting:ba,pleaseBindAtLeastOneDisplayValueInDataSetting:wa,rootNodeIsRequiredInDataSetting:Sa,pleaseEnterMaxHeight:Ia,pleaseEnter:Ra,pleaseEnterWatermark:Ma,pleaseEnterFileName:_a,pleaseUploadAtLeastOnePrintTemplate:$a,pleaseAssignBusiness:La,pleaseAssignExternal:Pa,pleaseEnterAliasCode:qa,pleaseSelectDataCode:Va,pleaseSelectSvcCode:xa,pleaseSelectJoinFieldCode:Oa,pleaseSelectMainFieldCode:ja,pleaseSelectSortFieldCode:Na},Ha="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ka="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Wa="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ka="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",za="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ta="{caption}\u5FC5\u9808",Ja="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Xa="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ga="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Za="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Qa="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ya="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",pa="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ei="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ti="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ni="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ui="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",ai="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ii="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ri="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",li="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",si="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",oi="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ci="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",di="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",fi="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",hi="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",mi="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",gi="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",yi="\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",vi="\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",Ei="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Bi="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Ci="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Ai="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Fi="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Di="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",bi="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",wi="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Si="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ii="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ri="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Mi="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",_i="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",$i="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Li="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Pi="please select control",qi="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Vi="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",xi="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Oi="\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",ji="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ni="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ui="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Hi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",ki="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Wi="\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",Ki="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",zi="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ti="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ji="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Xi="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Gi="\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",Zi="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Qi="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Yi="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",pi="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",er="\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",tr="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",nr="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ur="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ar={isNotNumber:Ha,isNotString:ka,isNotObject:Wa,isNotArray:Ka,isNotBoolean:za,runtimeRequired:Ta,pleaseEnterCaption:Ja,pleaseEnterCaptionTip:Xa,pleaseEnterRowCaption:Ga,pleaseEnterPlaceholder:Za,pleaseEnterFieldCode:Qa,pleaseEnterForm:Ya,pleaseEnterList:pa,pleaseEnterProcess:ei,pleaseEnterLabel:ti,pleaseEnterValue:ni,bizKeyNotBindFiled:ui,pleaseSelectOneField:ai,pleaseEnterNumberRange:ii,pleaseEnterAValueGreaterThanMin:ri,pleaseEnterAValueLessThanMax:li,numberRangeSetError:si,stringRangeError:oi,attachmentMaxSize:ci,pleaseEnterTotalScoreSetting:di,theTotalScoreMustNotBeLessThan1:fi,scoreDefaultValueRange:hi,attachmentLimitError:mi,PleaseReselectTheOptionalQuantity:gi,TheMaximumLengthIsGreaterThanTheMinimumLength:yi,TheMinimumLengthIsGreaterThanTheMaximumLength:vi,PleaseSelectTheCorrectOptionSettings:Ei,optionIdIsRepeat:Bi,optionIsRequired:Ci,pleaseEnterDataCode:Ai,pleaseEnterValueFieldCode:Fi,pleaseEnterSvcCode:Di,pleaseBindAtLeastOneDisplayValue:bi,pleaseSelectProvince:wi,pleaseSelectCity:Si,pleaseSelectDistrict:Ii,limitRowsCannotBeLessThan0:Ri,TheNumberOfRowsCannotBeLessThanMinRows:Mi,pleaseEnterColumnWidth:_i,pleaseSetTheLogicalRelationshipOfAllRuleConditions:$i,pleaseCompleteAllRulesAndConditions:Li,pleaseSelectControl:Pi,pleaseSelectDashboard:qi,theViewNameCannotBeEmpty:Vi,pleaseSelectOcrType:xi,pleaseSelectAtLeastOneFieldToFillIn:Oi,pleaseChooseAtLeastOne:ji,pleaseEnterButtonContent:Ni,pleaseEnterDataCodeInDataSetting:Ui,pleaseEnterValueFieldCodeInDataSetting:Hi,pleaseEnterSvcCodeInDataSetting:ki,pleaseBindAtLeastOneDisplayValueInDataSetting:Wi,rootNodeIsRequiredInDataSetting:Ki,pleaseEnterMaxHeight:zi,pleaseEnter:Ti,pleaseEnterWatermark:Ji,pleaseEnterFileName:Xi,pleaseUploadAtLeastOnePrintTemplate:Gi,pleaseAssignBusiness:Zi,pleaseAssignExternal:Qi,pleaseEnterAliasCode:Yi,pleaseSelectDataCode:pi,pleaseSelectSvcCode:er,pleaseSelectJoinFieldCode:tr,pleaseSelectMainFieldCode:nr,pleaseSelectSortFieldCode:ur},ir={zhCN:Fu,enUS:Ua,jaJP:ar},ct;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(ct||(ct={}));var dt;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(dt||(dt={}));var rr="zh-CN";function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var z;(function(t){t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search"})(z||(z={}));var ft;(function(t){t[t.FORM=0]="FORM",t[t.LIST=1]="LIST",t[t.REPORT=2]="REPORT",t[t.DASHBOARD=3]="DASHBOARD",t[t.VUE=4]="VUE",t[t.FREE_PAGE=5]="FREE_PAGE"})(ft||(ft={}));var ht;(function(t){t.TITLE="title",t.LINK="link",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.ORGANIZATION_SELECTION="organization-selection",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.EMPLOYEE_COLUMN="employee-column",t.Approval_Status_Column="approval-status-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.GRID_LAYOUT_CONTAINER="grid-layout-container",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.ACTION_BAR="action-bar",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.TREE="tree",t.EMPLOYEE2="employee2",t.DEPARTMENT2="department2",t.GRID_LAYOUT_WRAP="grid-layout-wrap",t.VUE_PAGE="vue-page"})(ht||(ht={}));var mt;(function(t){t.SAVE="save",t.DRAFT="draft",t.UNSUBMIT="unsubmit",t.AUDIT="audit",t.UNAUDIT="unaudit",t.CANCEL="cancel",t.FORM_SUBMIT="form_submit"})(mt||(mt={}));var ee;(function(t){t.VARCHAR="varchar",t.TEXT="text",t.ARRAY="array",t.ADDRESS="location",t.DECIMAL="decimal",t.REAL_DECIMAL="real-decimal",t.DECIMAL_RANGE="decimal_range",t.TIMESTAMP="timestamp",t.DATETIME="datetime",t.EMPLOYEES="people",t.DEPARTMENTS="department",t.MONEY="money",t.TIMESCOPE="timescope",t.FILE="file",t.IMAGE="image",t.AUTO_NUMBER="auto_number",t.CALC="calc",t.RELATION="relation",t.LIST="list",t.RELATION_FIELD="relation-field",t.REFERENCE_FIELD="reference-field",t.CALC_FIELD="calc",t.JSON="json",t.BIGINT="bigint",t.ANY="ANY",t.ENCRYPTED_FIELD="encrypted_field",t.BOOLEAN="boolean",t.MODEL="model",t.MODEL_SET="model_set"})(ee||(ee={}));var C;C={},y(C,"varchar","\u77ED\u6587\u672C"),y(C,"timestamp","\u65F6\u95F4"),y(C,"datetime","\u65F6\u95F4\uFF08datetime\uFF09"),y(C,"text","\u957F\u6587\u672C"),y(C,"decimal","\u6570\u503C\u7C7B\u578B"),y(C,"real-decimal","\u6570\u503C\u7C7B\u578B\uFF08decimal\uFF09"),y(C,"relation","\u5F15\u7528\u7C7B\u578B"),y(C,"bigint","\u957F\u6574\u578B"),y(C,"image","\u56FE\u7247"),y(C,"file","\u9644\u4EF6"),y(C,"auto_number","\u81EA\u52A8\u7F16\u53F7"),y(C,"boolean","\u903B\u8F91"),y(C,"people","\u4EBA\u5458"),y(C,"location","\u5730\u5740"),y(C,"department","\u90E8\u95E8"),y(C,"relation-field","\u5173\u8054\u5B57\u6BB5"),y(C,"reference-field","\u5F15\u7528\u5B57\u6BB5"),y(C,"calc","\u8BA1\u7B97\u516C\u5F0F"),y(C,"json","JSON"),y(C,"model","\u6A21\u578B"),y(C,"model_set","\u6A21\u578B\u96C6\u5408"),y(C,"array","\u6570\u7EC4");var $;$={},y($,"array","array-column"),y($,"auto_number","auto-number-column"),y($,"decimal","decimal-column"),y($,"real-decimal","decimal-column"),y($,"department","department-column"),y($,"file","file-column"),y($,"image","image-column"),y($,"location","location-column"),y($,"people","employee-column"),y($,"text","text-column"),y($,"timescope","timescope-column"),y($,"timestamp","timestamp-column"),y($,"datetime","timestamp-column"),y($,"varchar","varchar-column"),y($,"relation","varchar-column");var gt;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATEHOUR="datehour",t.DATEMIN="datemin",t.DATETIME="datetime"})(gt||(gt={}));var yt="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",lr=yt+"0123456789";function N(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",n=0;n<t;n++){var u=n===0?yt:lr,a=Math.random()*u.length;e+=u[parseInt(String(a),10)]}return e}function Se(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function sr(t){if(Array.isArray(t))return Se(t)}function or(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function de(t,e,n){return Ct()?de=Reflect.construct:de=function(a,i,r){var l=[null];l.push.apply(l,i);var d=Function.bind.apply(a,l),c=new d;return r&&ne(c,r.prototype),c},de.apply(null,arguments)}function te(t){return te=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},te(t)}function Et(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ne(t,e)}function cr(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function dr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function fr(){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 hr(t,e){return e&&(mr(e)==="object"||typeof e=="function")?e:or(t)}function ne(t,e){return ne=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},ne(t,e)}function Bt(t){return sr(t)||dr(t)||gr(t)||fr()}function mr(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function gr(t,e){if(!!t){if(typeof t=="string")return Se(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Se(t,e)}}function Ie(t){var e=typeof Map=="function"?new Map:void 0;return Ie=function(u){if(u===null||!cr(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return de(u,arguments,te(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ne(a,u)},Ie(t)}function Ct(){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(t){return!1}}function At(t){var e=Ct();return function(){var u=te(t),a;if(e){var i=te(this).constructor;a=Reflect.construct(u,arguments,i)}else a=u.apply(this,arguments);return hr(this,a)}}var Re=console;function Me(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=Re).warn.apply(u,["\u{1F9D0} Driven Warning:"+e[0]].concat(Bt(a)))}function Ft(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=Re).log.apply(u,["\u{1F680} Driven Log:"+e[0]].concat(Bt(a)))}function yr(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var _e=function(t){Et(n,t);var e=At(n);function n(u){vt(this,n);var a;return a=e.call(this,u),a.name="\u{1F4A5} Driven Error",a.message=u?yr(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return n}(Ie(Error)),vr=function(t){Et(n,t);var e=At(n);function n(u){vt(this,n);var a;return a=e.call(this,u),a.name="\u{1F6A8} Driven Reference Error",a}return n}(_e);function $e(t){throw new _e(t)}function Dt(t){throw new vr(t)}function Er(t){Re.error(new _e(t))}var Br=Object.prototype.toString;function bt(t,e){return Br.call(t)==="[object "+e+"]"}function Cr(t){return bt(t,"String")}function Ar(t){return bt(t,"Promise")}var Fr=function(){function t(e){var n,u;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((u=(n=e.messages)!==null&&n!==void 0?n:this.getPreImport(e.locale))!==null&&u!==void 0?u:{}),e.variableRegExp&&(this.variableRegExp=e.variableRegExp),this.setLocale(e.locale)}return t.prototype.setLocale=function(e){var n=this;this.locale=e,this._messageCache.clear();var u=this.getMessageData();Ar(u)?u.then(function(a){n._messageCache.clear(),n.messages[n.localeInMessageKey]=a}):this.messages[this.localeInMessageKey]=u},t.prototype.getMessageData=function(){var e=this._messages[this.localeInMessageKey];return typeof e=="function"?e():e},t.prototype.translate=function(e,n,u){var a=this.getMessage(e);return a?this.formatMessage(a,u):this.formatMessage(n,u)},t.prototype.getMessage=function(e){if(this._messageCache.has(e))return this._messageCache.get(e);var n=this.getPathArray(e),u=n.reduce(function(a,i,r,l){if(a!==void 0){var d=a[i];if(!(r===l.length-1&&!Cr(d)))return d}},this.message);return this._messageCache.set(e,u),u},t.prototype.formatMessage=function(e,n){return n?e.replace(this.variableRegExp,function(u,a){var i=n[a];return i!==void 0?String(i):u}):e},t.prototype.getPreImport=function(e){var n;if(window.okI18nPreImport){var u=this.getLocaleInMessageKey(e);return window.okI18nPreImport.hasOwnProperty(u)?window.okI18nPreImport:(n={},n[u]=window.okI18nPreImport,n)}},t.prototype.getPathArray=function(e){return e.split(".")},t.prototype.getLocaleInMessageKey=function(e){return e.replace(/-/g,"")},Object.defineProperty(t.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){var e;return(e=this.messages[this.localeInMessageKey])!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t}();function Dr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wt(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function br(t,e,n){return e&&wt(t.prototype,e),n&&wt(t,n),t}function wr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(){function t(){Dr(this,t)}return br(t,null,[{key:"getMessage",value:function(n){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",u)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rr;return new Fr({locale:n,messages:ir})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),t}();wr(h,"$i18n",h.resetI18n());function Sr(t,e,n){var u=e.replace(/\[(\d)]/g,function(i,r){return"."+r}).split("."),a=!1;return u.reduce(function(i,r,l,d){var c=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,r)){Me("Can not set ".concat(e,"'s ").concat(r," property in current %o, Because there is no ").concat(r," property on the %o"),i,i);return}return l===d.length-1&&!Object.is(c[r],n)&&(c[r]=n,a=!0),c[r]}},t),a}var Ir=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Rr={exports:{}};(function(t){(function(e){var n=function(o,m,B){if(!c(m)||E(m)||b(m)||S(m)||d(m))return m;var I,R=0,x=0;if(g(m))for(I=[],x=m.length;R<x;R++)I.push(n(o,m[R],B));else{I={};for(var D in m)Object.prototype.hasOwnProperty.call(m,D)&&(I[o(D,B)]=n(o,m[D],B))}return I},u=function(o,m){m=m||{};var B=m.separator||"_",I=m.split||/(?=[A-Z])/;return o.split(I).join(B)},a=function(o){return A(o)?o:(o=o.replace(/[\-_\s]+(.)?/g,function(m,B){return B?B.toUpperCase():""}),o.substr(0,1).toLowerCase()+o.substr(1))},i=function(o){var m=a(o);return m.substr(0,1).toUpperCase()+m.substr(1)},r=function(o,m){return u(o,m).toLowerCase()},l=Object.prototype.toString,d=function(o){return typeof o=="function"},c=function(o){return o===Object(o)},g=function(o){return l.call(o)=="[object Array]"},E=function(o){return l.call(o)=="[object Date]"},b=function(o){return l.call(o)=="[object RegExp]"},S=function(o){return l.call(o)=="[object Boolean]"},A=function(o){return o=o-0,o===o},f=function(o,m){var B=m&&"process"in m?m.process:m;return typeof B!="function"?o:function(I,R){return B(I,o,R)}},F={camelize:a,decamelize:r,pascalize:i,depascalize:r,camelizeKeys:function(o,m){return n(f(a,m),o)},decamelizeKeys:function(o,m){return n(f(r,m),o,m)},pascalizeKeys:function(o,m){return n(f(i,m),o)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=F:e.humps=F})(Ir)})(Rr);var St={};Object.defineProperty(St,"__esModule",{value:!0});function Le(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:Le(e));{const e={};for(const n in t){const u=t[n];e[n]=typeof u!="object"||u===null?u:Le(u)}return e}}var Mr=St.default=Le;function U(t){if(t!==void 0)return typeof t=="object"?Mr(t):t}function _r(t){return Object.prototype.toString.call(t)==="[object Object]"}function $r(t){return Array.isArray(t)}function Lr(t){return t.reduce(function(e,n){return e.includes(n)||e.push(n),e},[])}function Pe(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function Pr(t){if(Array.isArray(t))return Pe(t)}function It(t,e,n,u,a,i,r){try{var l=t[i](r),d=l.value}catch(c){n(c);return}l.done?e(d):Promise.resolve(d).then(u,a)}function qr(t){return function(){var e=this,n=arguments;return new Promise(function(u,a){var i=t.apply(e,n);function r(d){It(i,u,a,r,l,"next",d)}function l(d){It(i,u,a,r,l,"throw",d)}r(void 0)})}}function Vr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rt(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function xr(t,e,n){return e&&Rt(t.prototype,e),n&&Rt(t,n),t}function Mt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Or(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function jr(){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 qe(t){return Pr(t)||Or(t)||Nr(t)||jr()}function Nr(t,e){if(!!t){if(typeof t=="string")return Pe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pe(t,e)}}function Ur(t,e){var n,u,a,i,r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(c){return function(g){return d([c,g])}}function d(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,u&&(a=c[0]&2?u.return:c[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,c[1])).done)return a;switch(u=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,u=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(g){c=[6,g],u=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var Hr=function(){function t(){Vr(this,t),Mt(this,"_events",new Map),Mt(this,"debug",!1)}return xr(t,[{key:"emit",value:function(n){for(var u=arguments.length,a=new Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];var r=this;return qr(function(){var l,d,c,g,E,b,S,A,f,F,o,m;return Ur(this,function(B){switch(B.label){case 0:if(l=r._events.get(n),d=[],!l)return[3,10];c=l.slice(),g=!0,E=!1,b=void 0,B.label=1;case 1:B.trys.push([1,8,9,10]),S=c[Symbol.iterator](),B.label=2;case 2:if(g=(A=S.next()).done)return[3,7];if(f=A.value,!l.includes(f))return[3,6];B.label=3;case 3:return B.trys.push([3,5,,6]),r.debug&&Ft.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"\u3002")].concat(qe(a))),[4,f.apply(null,qe(a))];case 4:return F=B.sent(),r.debug&&Ft.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(qe(a),[F])),d.push(F),F===!1?[3,7]:[3,6];case 5:return o=B.sent(),Er(String(o)+":"+String(o.stack)),[3,6];case 6:return g=!0,[3,2];case 7:return[3,10];case 8:return m=B.sent(),E=!0,b=m,[3,10];case 9:try{!g&&S.return!=null&&S.return()}finally{if(E)throw b}return[7];case 10:return[2,d]}})})()}},{key:"on",value:function(n,u){if(this._events.has(n)){var a;(a=this._events.get(n))===null||a===void 0||a.push(u)}else this._events.set(n,[u])}},{key:"off",value:function(n,u){if(this._events.has(n)){var a=this._events.get(n),i=a==null?void 0:a.indexOf(u);a==null||a.splice(i,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),t}();function kr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _t(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function Wr(t,e,n){return e&&_t(t.prototype,e),n&&_t(t,n),t}function Kr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zr=[{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"}],Tr=function(){function t(){kr(this,t)}return Wr(t,null,[{key:"getEventsFromKeys",value:function(n){var u=typeof n=="string"?[n]:n;return t.events.filter(function(a){return u.includes(a.key)})}},{key:"getEventsFromControl",value:function(n){var u=[],a=n.eventKeys;u=u.concat(t.events.filter(function(r){return a.includes(r.key)}));var i=n.customEvents.map(function(r){var l=r.key;return r.namespace!==void 0&&r.namespace!==null&&r.namespace!==""&&(l=r.namespace+":"+r.key),{key:l,code:r.key,name:r.name}});return u=u.concat(i),u}}]),t}();Kr(Tr,"events",zr);function fe(t,e){var n;(n=Object.getOwnPropertyDescriptors(t)[e])!=null&&n.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function Ve(t,e,n){n==="Designer"&&(t.parent=e,fe(t,"parent"))}function $t(t,e,n){t.forEach(u=>{Ve(u,e,n)})}const Lt=Symbol("targetKey");function Pt(t){var e;return(e=t[Lt])!=null?e:t}function qt(t,e,n){return $t(t,e,n),new Proxy(t,{get(u,a,...i){return a===Lt?u:Reflect.get(u,a,...i)},set(u,a,i,...r){if($r(t)&&a==="length"&&i===t.length)return!0;const l=Reflect.set(u,a,i,...r);return _r(i)&&Ve(i,e,n),l}})}function T(t,e,n,u,a){const i=u!=null?u:t;let r=qt(Pt(n!=null?n:[]),i,a);Object.defineProperty(t,e,{get(){return r},set(l){r=qt(Pt(l),i,a)},enumerable:!0})}const Vt=[],xe=class{constructor(t){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=t,this._initControls(t)}static staticGetRules(t,e){const n=xe.staticControlsRuntimeRules.get(t);let u=[];if(n){const a=new n(e);u=Array.from(a)}return u}registerControlConfig(t,e){return this.controlConfigMap.set(t,e),this}getControlConfig(t){return this.controlConfigMap.get(t)}static register(t,e){const{Designer:n,Runtime:u,Property:a}=t;(!n||!u||!n.__is_control__||!u.__is_control__)&&$e(`${t} is can't register as a Control`);const i=this.staticControls.findIndex(r=>r.Designer.controlType===n.controlType);return i>-1&&(Me(`The ${n.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(i,1)),this.staticRegisteredTypes.add(n.controlType),this.staticControls.push(t),a.mode=e,this}getControls(){return this._controls}register(t){t.__is_control__||$e(`${t.name} is not a Control`);const e=this._controls.findIndex(n=>n.controlType===t.controlType);return e>-1&&(Me(`The ${t.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(e,1)),this.registeredControlTypes.add(t.controlType),this._controls.push(t),this}isLayoutControl(t){return t.controlType===z.LAYOUT}isFormControl(t){return t.controlType===z.FORM}isListControl(t){return t.controlType===z.LIST}isColumnControl(t){return t.controlType===z.COLUMN}createControl(t,e){if(Array.isArray(t))return t.map(u=>this.createControl(u,e));if(t.children&&(t.children=t.children.map(u=>this.createControl(u,e))),this.isListControl(t)){const u=t.props;u.headers&&(u.headers=u.headers.map(a=>this.createControl(a,e))),u.footers&&(u.footers=u.footers.map(a=>{let i;return a&&(i=this.createControl(a,e)),i}))}const n=this.getControlFormType(t.type);if(n){let u=t;if(typeof e=="function"){const i=e(u);i&&(u=i)}let a;return n.mode==="Runtime"?(a=u,a.fieldType=n.controlFieldType,this._setParentPrototypeToSchema(a,this)):a=new n(u),a}else $e(`The constructor of ${t.type} could not be found, please confirm that the constructor has been registered`)}resetInstanceParent(t,e){delete t.parent,Object.defineProperty(t,"parent",{configurable:!0,get(){return e}}),fe(t,"parent")}_setParentPrototypeToSchema(t,e){e._type==="Runtime"&&(Object.defineProperty(t,"parent",{configurable:!0,get(){const n=t.id,u=e._controlParentIdMap,a=e.instanceMap;if(!u||!a)return;const i=u[n],r=a[n];if(!i&&!r)return;const l=r.findIndex(g=>g==t),d=a[i]||[];let c;return d.length!==r.length?c=d[0]:c=d[l],c}}),fe(t,"parent"))}createControlInstance(t,e){const n=this.getControlFormType(t);if(n)return new n(e)}getControlFormType(t){return this._controls.find(e=>e.controlType===t)}_initControls(t){this.constructor.staticControls.forEach(e=>{this.register(e[t]),xe.staticControlsRuntimeRules.set(e.Runtime.controlType,e.Property.RuntimeRules),e.Property.mode=t})}};let ue=xe;ue.staticControlsRuntimeRules=new Map,ue.staticControls=Vt,ue.staticRegisteredTypes=new Set(Vt.map(t=>t.Designer.controlType)),ue.staticRegisteredConfigs=new Map;class q{constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.aliasCode=e==null?void 0:e.aliasCode}}class Oe{constructor(e){var n,u;this.minWidth=(n=e==null?void 0:e.minWidth)!=null?n:150,this.maxWidth=e==null?void 0:e.maxWidth,this.flex=(u=e==null?void 0:e.flex)!=null?u:1}}class je{constructor(e){var n,u,a,i;this.rowHeightType=(n=e==null?void 0:e.rowHeightType)!=null?n:"fixed",this.minRows=(u=e==null?void 0:e.minRows)!=null?u:4,this.maxRows=(a=e==null?void 0:e.maxRows)!=null?a:20,this.fiexdRow=(i=e==null?void 0:e.fiexdRow)!=null?i:4}}class Jr{constructor(e){this.pc=new je(e==null?void 0:e.pc),this.mobile=new je(e==null?void 0:e.mobile)}}class he extends Oe{constructor(e){var n,u;super(e),this.width=(n=e==null?void 0:e.width)!=null?n:240,this.widthType=(u=e==null?void 0:e.widthType)!=null?u:"auto"}}class Xr{constructor(e){this.pc=new he(e==null?void 0:e.pc),this.mobile=e!=null&&e.mobile?new he(e==null?void 0:e.mobile):new he({width:130,minWidth:180})}}class Gr{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"firstThree",this.customOptions=(u=e==null?void 0:e.customOptions)!=null?u:[]}}class me{constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.appId=(a=e==null?void 0:e.appId)!=null?a:""}}class Zr extends me{constructor(e){var n;super(e),this.primaryControlId=(n=e==null?void 0:e.primaryControlId)!=null?n:""}}class xt{constructor(e){var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!=null?n:""}}class Qr{constructor(e){var n,u,a,i;this.appId=(n=e==null?void 0:e.appId)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new xt(r)))!=null?i:[]}}class Ot{constructor(e){var n,u,a;this.fieldName=(n=e==null?void 0:e.fieldName)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:ee.VARCHAR}}class jt extends me{constructor(e){var n,u,a,i;super(e),this.title=(n=e==null?void 0:e.title)!=null?n:"",this.svcCode=(u=e==null?void 0:e.svcCode)!=null?u:"",this.isOpenFilter=(a=e==null?void 0:e.isOpenFilter)!=null?a:!1,this.filters=(i=e==null?void 0:e.filters)!=null?i:[]}}class Yr{constructor(e){var n,u,a,i;this.type="sublist-page",this.formBind=new me(e==null?void 0:e.formBind),this.displayFields=(u=(n=e==null?void 0:e.displayFields)==null?void 0:n.map(r=>new Ot(r)))!=null?u:[],this.sublists=(i=(a=e==null?void 0:e.sublists)==null?void 0:a.map(r=>new jt(r)))!=null?i:[]}}class Nt{constructor(e){this.type=e==null?void 0:e.type,this.value=e==null?void 0:e.value,this.dataCode=e==null?void 0:e.dataCode}}class Ne{constructor(e){var n,u,a;this.type=(n=e==null?void 0:e.type)!=null?n:"custom",this.value=(u=e==null?void 0:e.value)!=null?u:[],this.displayBos=(a=e==null?void 0:e.displayBos)!=null?a:[]}}class J{constructor(e){var n,u,a,i;this.type="conditions",this.id=(n=e==null?void 0:e.id)!=null?n:N(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.level=(a=e==null?void 0:e.level)!=null?a:0,this.value=(i=e==null?void 0:e.value)!=null?i:"and",this.children=[],Array.isArray(e==null?void 0:e.children)&&(e==null||e.children.map(r=>{var l,d;if(r.children!==void 0){const c=new J(r);(l=this.children)==null||l.push(c)}else{const c=new ae(r);(d=this.children)==null||d.push(c)}}))}}class ae{constructor(e){var n,u,a,i,r;this.type="condition",this.id=(n=e==null?void 0:e.id)!=null?n:N(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.symbol=(a=e==null?void 0:e.symbol)!=null?a:"",this.checked=(i=e==null?void 0:e.checked)!=null?i:!1,this.describe=(r=e==null?void 0:e.describe)!=null?r:"",this.leftVariableBo=new Nt(e==null?void 0:e.leftVariableBo),this.rightVariableBo=new Ne(e==null?void 0:e.rightVariableBo)}}class pr{constructor(e){var n,u;this.aliasCode=(n=e==null?void 0:e.aliasCode)!=null?n:"",this.datasourceBind=new ge(e==null?void 0:e.datasourceBind),this.relationFields=(u=e==null?void 0:e.relationFields)!=null?u:[]}}class Ut{constructor(e){var n,u,a,i;this.controlId=(n=e==null?void 0:e.controlId)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.propName=(i=e==null?void 0:e.propName)!=null?i:""}}class Ue{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"FIELD",this.value=(u=e==null?void 0:e.value)!=null?u:"",this.fieldType=e==null?void 0:e.fieldType}}class He{constructor(e){var n,u;this.columnName=(n=e.columnName)!=null?n:"",this.desc=(u=e.desc)!=null?u:!1}}class Ht{constructor(e){var n,u,a;this.code=(n=e.code)!=null?n:"",this.value=(u=e.value)!=null?u:"",this.field_type=(a=e.field_type)!=null?a:ee.ANY}}class el{constructor(e){var n,u,a,i,r,l,d;this.id=(n=e.id)!=null?n:"",this.limit=(u=e.limit)!=null?u:20,this.formKey=(a=e.formKey)!=null?a:"",this.orders=(r=(i=e.orders)==null?void 0:i.map(c=>new He(c)))!=null?r:[],this.dataSet=(d=(l=e.dataSet)==null?void 0:l.map(c=>new Ht(c)))!=null?d:[]}}function ke(t){var e,n,u,a,i,r;this.filters=(n=(e=t==null?void 0:t.filters)==null?void 0:e.map(l=>l.children!==void 0?new J(l):new ae(l)))!=null?n:[],this.viewFilters=(a=(u=t==null?void 0:t.viewFilters)==null?void 0:u.map(l=>l.children!==void 0?new J(l):new ae(l)))!=null?a:[],this.orders=(r=(i=t==null?void 0:t.orders)==null?void 0:i.map(l=>new He(l)))!=null?r:[]}class ge{constructor(e){var n,u,a,i,r,l,d;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.valueFieldCode=(a=e==null?void 0:e.valueFieldCode)!=null?a:"",this.displayBoList=[],this.isOpenViewFilters=(i=e==null?void 0:e.isOpenViewFilters)!=null?i:0,Array.isArray(e==null?void 0:e.displayBoList)&&(e==null||e.displayBoList.map(c=>{var g;(g=this.displayBoList)==null||g.push(new Ue(c))})),this.keywordMapping=(r=e==null?void 0:e.keywordMapping)!=null?r:"",this.showOrder=(l=e==null?void 0:e.showOrder)!=null?l:!0,this.svcCode=(d=e==null?void 0:e.svcCode)!=null?d:"",ke.call(this,e)}}class tl{constructor(e){var n,u;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.displayBoList=(u=e==null?void 0:e.displayBoList)!=null?u:[]}}class nl{constructor(e){var n,u,a,i,r,l,d,c,g,E;this.code=(n=e==null?void 0:e.code)!=null?n:"view",this.color=(u=e==null?void 0:e.color)!=null?u:"primary",this.command=(a=e==null?void 0:e.command)!=null?a:"view",this.confirmMessage=(i=e==null?void 0:e.confirmMessage)!=null?i:void 0,this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.formKey=(l=e==null?void 0:e.formKey)!=null?l:void 0,this.formType=e==null?void 0:e.formType,this.icon=(d=e==null?void 0:e.icon)!=null?d:"iconliulan1",this.needConfirm=(c=e==null?void 0:e.needConfirm)!=null?c:!1,this.openType=(g=e==null?void 0:e.openType)!=null?g:"modal",this.priorityProcess=(E=e==null?void 0:e.priorityProcess)!=null?E:!0}}class We{constructor(e){var n,u,a,i;this.name=(n=e==null?void 0:e.name)!=null?n:"",this.key=(u=e==null?void 0:e.key)!=null?u:"",this.value=(i=(a=e==null?void 0:e.value)==null?void 0:a.map(r=>new Ue(r)))!=null?i:[]}}class kt extends ge{constructor(e){var n,u;super(e),this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(a=>new We(a)))!=null?u:[]}}class ul extends ge{constructor(e){var n,u,a;super(e),this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(i=>new We(i)))!=null?u:[],this.formCode=(a=e==null?void 0:e.formCode)!=null?a:""}}class al extends kt{constructor(e){var n;super(e),this.rootNode=new Ne(e==null?void 0:e.rootNode),this.filterCode=(n=e==null?void 0:e.filterCode)!=null?n:""}}class Wt{constructor(e){var n,u,a,i;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.fillList=(i=(a=e==null?void 0:e.fillList)==null?void 0:a.map(r=>new Ut(r)))!=null?i:[]}}class il extends Wt{constructor(e){super(e),ke.call(this,e)}}class rl extends Wt{constructor(e){var n,u;super(e),this.mode=(n=e==null?void 0:e.mode)!=null?n:"current",this.multiple=(u=e==null?void 0:e.multiple)!=null?u:!1}}class ll{constructor(e){var n,u,a;this.zh=(n=e==null?void 0:e.zh)!=null?n:"",this.en=(u=e==null?void 0:e.en)!=null?u:"",this.ja=(a=e==null?void 0:e.ja)!=null?a:""}}class sl{constructor(e){var n,u,a;this.stencilName=(n=e==null?void 0:e.stencilName)!=null?n:"",this.expression=(u=e==null?void 0:e.expression)!=null?u:"",this.errMessage=(a=e==null?void 0:e.errMessage)!=null?a:""}}class Ke{constructor(e){var n,u,a;this.id=(n=e==null?void 0:e.id)!=null?n:N(8),this.label=(u=e==null?void 0:e.label)!=null?u:"",this.value=(a=e==null?void 0:e.value)!=null?a:this.label}}class Kt extends Ke{constructor(e){var n,u;super(e),this.image=(n=e==null?void 0:e.image)!=null?n:"",this.type=(u=e==null?void 0:e.type)!=null?u:"src"}}function ol(t){var e;return(e=t==null?void 0:t.map(n=>new Ke(n)))!=null?e:[]}function cl(t){var e;return(e=t==null?void 0:t.map(n=>new Kt(n)))!=null?e:[]}class ye{}class dl extends ye{constructor(e){super(),this.amount=new q(e==null?void 0:e.amount),this.currency=new q(e==null?void 0:e.currency)}}class fl{constructor(e){var n,u;this.amount=(n=e==null?void 0:e.amount)!=null?n:"",this.currency=(u=e==null?void 0:e.currency)!=null?u:ze.CNY}}class hl extends ye{constructor(e){super(),this.min=new q(e==null?void 0:e.min),this.max=new q(e==null?void 0:e.max)}}class ml{constructor(e){var n,u;this.min=(n=e==null?void 0:e.min)!=null?n:"",this.max=(u=e==null?void 0:e.max)!=null?u:""}}class gl{constructor(e){var n,u,a,i,r,l;this.city=(n=e==null?void 0:e.city)!=null?n:"",this.cityDisplay=(u=e==null?void 0:e.cityDisplay)!=null?u:"",this.district=(a=e==null?void 0:e.district)!=null?a:"",this.districtDisplay=(i=e==null?void 0:e.districtDisplay)!=null?i:"",this.province=(r=e==null?void 0:e.province)!=null?r:"",this.provinceDisplay=(l=e==null?void 0:e.provinceDisplay)!=null?l:""}}class yl extends ye{constructor(e){super(),this.result=new q(e==null?void 0:e.result),this.unit=new q(e==null?void 0:e.unit)}}class vl{constructor(e){var n,u;this.result=(n=e==null?void 0:e.result)!=null?n:0,this.unit=(u=e==null?void 0:e.unit)!=null?u:""}}var ze=(t=>(t.CNY="CNY",t.USD="USD",t.JPY="JPY",t.EUR="EUR",t.INR="INR",t.IDR="IDR",t.BRL="BRL",t.AED="AED",t.AUD="AUD",t.CAD="CAD",t.EGP="EGP",t.GBP="GBP",t.ZAR="ZAR",t.KRW="KRW",t.MAD="MAD",t.MXN="MXN",t.MYR="MYR",t.PHP="PHP",t.PLN="PLN",t.RUB="RUB",t.SGD="SGD",t.THB="THB",t.TRY="TRY",t.TWD="TWD",t.VND="VND",t.HKD="HKD",t.IEP="IEP",t))(ze||{}),zt=(t=>(t.DEFAULT_DISPLAY="defaultDisplay",t.REQUIRED="required",t.IS_HIDE="isHide",t.IS_SHOW_UNIT="isShowUnit",t.IMD_SEARCH="immediatelySearch",t.MULTIPLE="multiple",t.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",t.CAPTION="caption",t.IS_HIDE_CAPTION="isHideCaption",t.DEFAULT_SHOW_OPTIONS="defaultShowOptions",t.CAN_SEARCH="canSearch",t.CAN_CHECK="canCheck",t.CAN_EDIT="canEdit",t.CAN_DELETE="canDelete",t.SHOW_UPPER_CASE="showUpperCase",t.MICROMETER="micrometer",t.PRECISION="precision",t.PERCENTAGE="percentage",t.OPTIONAL_LEVEL="optionalLevel",t.CONTAINS_SUB_NODE="containsSubNode",t.DEFAULT_COLLAPSE="defaultCollapse",t.CAN_VIEW_FORM="canViewForm",t.VIEW_FORM_MODEL_TYPE="viewFormModelType",t.SERVER_PAGINATION="serverPagination",t.IS_SHOW_CAPTION_TIP="isShowCaptionTip",t.ENCRYPTED="encrypted",t.IS_INLINE_EDIT="isInlineEdit",t.REVISIONS_MODE="revisionsMode",t.ALLOW_COPY_OPTIONS="allowCopyOptions",t.IS_PASTE="isPaste",t))(zt||{}),Te=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t))(Te||{});class El{constructor(e){var n,u,a,i,r,l;this.isShow=(n=e==null?void 0:e.isShow)!=null?n:!0,this.content=(u=e==null?void 0:e.content)!=null?u:"",this.formKey=(a=e==null?void 0:e.formKey)!=null?a:"",this.openType=(i=e==null?void 0:e.openType)!=null?i:"modal",this.type=(r=e==null?void 0:e.type)!=null?r:"",this.priorityProcess=(l=e==null?void 0:e.priorityProcess)!=null?l:!1}}class Bl{constructor(e){var n,u,a,i;this.id=(n=e==null?void 0:e.id)!=null?n:N(8),this.title=(u=e==null?void 0:e.title)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new xt(r)))!=null?i:[],ke.call(this,e)}}class Cl{constructor(e){var n,u;this.key=(n=e.key)!=null?n:N(8),this.caption=(u=e.caption)!=null?u:""}}class Tt{constructor(e){var n,u,a,i;this.width=(n=e==null?void 0:e.width)!=null?n:"",this.height=(u=e==null?void 0:e.height)!=null?u:"",this.widthConfig=(a=e==null?void 0:e.widthConfig)!=null?a:"fill",this.heightConfig=(i=e==null?void 0:e.heightConfig)!=null?i:"fill"}}class Al{constructor(e){var n,u;this.optCode=(n=e==null?void 0:e.optCode)!=null?n:"",this.optType=(u=e==null?void 0:e.optType)!=null?u:""}}class Fl{constructor(e){var n,u,a,i,r;this.id=(n=e==null?void 0:e.id)!=null?n:N(),this.name=(u=e==null?void 0:e.name)!=null?u:"",this.color=(a=e==null?void 0:e.color)!=null?a:"theme",this.filters=(r=(i=e==null?void 0:e.filters)==null?void 0:i.map(l=>l.children!==void 0?new J(l):new ae(l)))!=null?r:[]}}class Dl{constructor(e){var n,u,a;this.id=(n=e.id)!=null?n:N(),this.script=(u=e.script)!=null?u:"",this.color=(a=e.color)!=null?a:"theme"}}class ve{constructor(e){this.isHide={type:"boolean"}}}class Je extends Array{constructor(e){super()}}class H{constructor(e,n=""){var u,a;this.isHide=(u=e==null?void 0:e.isHide)!=null?u:!1,this.style=new Tt(e==null?void 0:e.style),this.caption=(a=e==null?void 0:e.caption)!=null?a:n}}H.Rules=ve,H.RuntimeRules=Je;function V(){return V=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},V.apply(this,arguments)}function bl(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Xe(t){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xe(t)}function Ee(t,e){return Ee=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},Ee(t,e)}function wl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function Be(t,e,n){return wl()?Be=Reflect.construct:Be=function(a,i,r){var l=[null];l.push.apply(l,i);var d=Function.bind.apply(a,l),c=new d;return r&&Ee(c,r.prototype),c},Be.apply(null,arguments)}function Sl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ge(t){var e=typeof Map=="function"?new Map:void 0;return Ge=function(u){if(u===null||!Sl(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return Be(u,arguments,Xe(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ee(a,u)},Ge(t)}var Il=/%[sdj%]/g,Jt=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Jt=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(u){return typeof u=="string"})&&console.warn(e,n)});function Ze(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var u=n.field;e[u]=e[u]||[],e[u].push(n)}),e}function P(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u=1,a=e[0],i=e.length;if(typeof a=="function")return a.apply(null,e.slice(1));if(typeof a=="string"){var r=String(a).replace(Il,function(l){if(l==="%%")return"%";if(u>=i)return l;switch(l){case"%s":return String(e[u++]);case"%d":return Number(e[u++]);case"%j":try{return JSON.stringify(e[u++])}catch(d){return"[Circular]"}break;default:return l}});return r}return a}function Rl(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function _(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Rl(e)&&typeof t=="string"&&!t)}function Ml(t,e,n){var u=[],a=0,i=t.length;function r(l){u.push.apply(u,l),a++,a===i&&n(u)}t.forEach(function(l){e(l,r)})}function Xt(t,e,n){var u=0,a=t.length;function i(r){if(r&&r.length){n(r);return}var l=u;u=u+1,l<a?e(t[l],i):n([])}i([])}function _l(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var Gt=function(t){bl(e,t);function e(n,u){var a;return a=t.call(this,"Async Validation Error")||this,a.errors=n,a.fields=u,a}return e}(Ge(Error));function $l(t,e,n,u){if(e.first){var a=new Promise(function(E,b){var S=function(F){return u(F),F.length?b(new Gt(F,Ze(F))):E()},A=_l(t);Xt(A,n,S)});return a.catch(function(E){return E}),a}var i=e.firstFields||[];i===!0&&(i=Object.keys(t));var r=Object.keys(t),l=r.length,d=0,c=[],g=new Promise(function(E,b){var S=function(f){if(c.push.apply(c,f),d++,d===l)return u(c),c.length?b(new Gt(c,Ze(c))):E()};r.length||(u(c),E()),r.forEach(function(A){var f=t[A];i.indexOf(A)!==-1?Xt(f,n,S):Ml(f,n,S)})});return g.catch(function(E){return E}),g}function Zt(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function Qt(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var u=e[n];typeof u=="object"&&typeof t[n]=="object"?t[n]=V(V({},t[n]),u):t[n]=u}}return t}function Yt(t,e,n,u,a,i){t.required&&(!n.hasOwnProperty(t.field)||_(e,i||t.type))&&u.push(P(a.messages.required,t.fullField))}function Ll(t,e,n,u,a){(/^\s+$/.test(e)||e==="")&&u.push(P(a.messages.whitespace,t.fullField))}var Qe={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},ie={integer:function(e){return ie.number(e)&&parseInt(e,10)===e},float:function(e){return ie.number(e)&&!ie.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(n){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!ie.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(Qe.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(Qe.url)},hex:function(e){return typeof e=="string"&&!!e.match(Qe.hex)}};function Pl(t,e,n,u,a){if(t.required&&e===void 0){Yt(t,e,n,u,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],r=t.type;i.indexOf(r)>-1?ie[r](e)||u.push(P(a.messages.types[r],t.fullField,t.type)):r&&typeof e!==t.type&&u.push(P(a.messages.types[r],t.fullField,t.type))}function ql(t,e,n,u,a){var i=typeof t.len=="number",r=typeof t.min=="number",l=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,g=null,E=typeof e=="number",b=typeof e=="string",S=Array.isArray(e);if(E?g="number":b?g="string":S&&(g="array"),!g)return!1;S&&(c=e.length),b&&(c=e.replace(d,"_").length),i?c!==t.len&&u.push(P(a.messages[g].len,t.fullField,t.len)):r&&!l&&c<t.min?u.push(P(a.messages[g].min,t.fullField,t.min)):l&&!r&&c>t.max?u.push(P(a.messages[g].max,t.fullField,t.max)):r&&l&&(c<t.min||c>t.max)&&u.push(P(a.messages[g].range,t.fullField,t.min,t.max))}var X="enum";function Vl(t,e,n,u,a){t[X]=Array.isArray(t[X])?t[X]:[],t[X].indexOf(e)===-1&&u.push(P(a.messages[X],t.fullField,t[X].join(", ")))}function xl(t,e,n,u,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||u.push(P(a.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(e)||u.push(P(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var v={required:Yt,whitespace:Ll,type:Pl,range:ql,enum:Vl,pattern:xl};function Ol(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e,"string")&&!t.required)return n();v.required(t,e,u,i,a,"string"),_(e,"string")||(v.type(t,e,u,i,a),v.range(t,e,u,i,a),v.pattern(t,e,u,i,a),t.whitespace===!0&&v.whitespace(t,e,u,i,a))}n(i)}function jl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a),e!==void 0&&v.type(t,e,u,i,a)}n(i)}function Nl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e===""&&(e=void 0),_(e)&&!t.required)return n();v.required(t,e,u,i,a),e!==void 0&&(v.type(t,e,u,i,a),v.range(t,e,u,i,a))}n(i)}function Ul(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a),e!==void 0&&v.type(t,e,u,i,a)}n(i)}function Hl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a),_(e)||v.type(t,e,u,i,a)}n(i)}function kl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a),e!==void 0&&(v.type(t,e,u,i,a),v.range(t,e,u,i,a))}n(i)}function Wl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a),e!==void 0&&(v.type(t,e,u,i,a),v.range(t,e,u,i,a))}n(i)}function Kl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e==null&&!t.required)return n();v.required(t,e,u,i,a,"array"),e!=null&&(v.type(t,e,u,i,a),v.range(t,e,u,i,a))}n(i)}function zl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a),e!==void 0&&v.type(t,e,u,i,a)}n(i)}var Tl="enum";function Jl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a),e!==void 0&&v[Tl](t,e,u,i,a)}n(i)}function Xl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e,"string")&&!t.required)return n();v.required(t,e,u,i,a),_(e,"string")||v.pattern(t,e,u,i,a)}n(i)}function Gl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e,"date")&&!t.required)return n();if(v.required(t,e,u,i,a),!_(e,"date")){var l;e instanceof Date?l=e:l=new Date(e),v.type(t,l,u,i,a),l&&v.range(t,l.getTime(),u,i,a)}}n(i)}function Zl(t,e,n,u,a){var i=[],r=Array.isArray(e)?"array":typeof e;v.required(t,e,u,i,a,r),n(i)}function Ye(t,e,n,u,a){var i=t.type,r=[],l=t.required||!t.required&&u.hasOwnProperty(t.field);if(l){if(_(e,i)&&!t.required)return n();v.required(t,e,u,r,a,i),_(e,i)||v.type(t,e,u,r,a)}n(r)}function Ql(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(_(e)&&!t.required)return n();v.required(t,e,u,i,a)}n(i)}var re={string:Ol,method:jl,number:Nl,boolean:Ul,regexp:Hl,integer:kl,float:Wl,array:Kl,object:zl,enum:Jl,pattern:Xl,date:Gl,url:Ye,hex:Ye,email:Ye,required:Zl,any:Ql};function pe(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var et=pe();function W(t){this.rules=null,this._messages=et,this.define(t)}W.prototype={messages:function(e){return e&&(this._messages=Qt(pe(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var n,u;for(n in e)e.hasOwnProperty(n)&&(u=e[n],this.rules[n]=Array.isArray(u)?u:[u])},validate:function(e,n,u){var a=this;n===void 0&&(n={}),u===void 0&&(u=function(){});var i=e,r=n,l=u;if(typeof r=="function"&&(l=r,r={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(),Promise.resolve();function d(f){var F,o=[],m={};function B(I){if(Array.isArray(I)){var R;o=(R=o).concat.apply(R,I)}else o.push(I)}for(F=0;F<f.length;F++)B(f[F]);o.length?m=Ze(o):(o=null,m=null),l(o,m)}if(r.messages){var c=this.messages();c===et&&(c=pe()),Qt(c,r.messages),r.messages=c}else r.messages=this.messages();var g,E,b={},S=r.keys||Object.keys(this.rules);S.forEach(function(f){g=a.rules[f],E=i[f],g.forEach(function(F){var o=F;typeof o.transform=="function"&&(i===e&&(i=V({},i)),E=i[f]=o.transform(E)),typeof o=="function"?o={validator:o}:o=V({},o),o.validator=a.getValidationMethod(o),o.field=f,o.fullField=o.fullField||f,o.type=a.getType(o),o.validator&&(b[f]=b[f]||[],b[f].push({rule:o,value:E,source:i,field:f}))})});var A={};return $l(b,r,function(f,F){var o=f.rule,m=(o.type==="object"||o.type==="array")&&(typeof o.fields=="object"||typeof o.defaultField=="object");m=m&&(o.required||!o.required&&f.value),o.field=f.field;function B(x,D){return V(V({},D),{},{fullField:o.fullField+"."+x})}function I(x){x===void 0&&(x=[]);var D=x;if(Array.isArray(D)||(D=[D]),!r.suppressWarning&&D.length&&W.warning("async-validator:",D),D.length&&o.message!==void 0&&(D=[].concat(o.message)),D=D.map(Zt(o)),r.first&&D.length)return A[o.field]=1,F(D);if(!m)F(D);else{if(o.required&&!f.value)return o.message!==void 0?D=[].concat(o.message).map(Zt(o)):r.error&&(D=[r.error(o,P(r.messages.required,o.field))]),F(D);var O={};if(o.defaultField)for(var ln in f.value)f.value.hasOwnProperty(ln)&&(O[ln]=o.defaultField);O=V(V({},O),f.rule.fields);for(var G in O)if(O.hasOwnProperty(G)){var fs=Array.isArray(O[G])?O[G]:[O[G]];O[G]=fs.map(B.bind(null,G))}var sn=new W(O);sn.messages(r.messages),f.rule.options&&(f.rule.options.messages=r.messages,f.rule.options.error=r.error),sn.validate(f.value,f.rule.options||r,function(st){var Z=[];D&&D.length&&Z.push.apply(Z,D),st&&st.length&&Z.push.apply(Z,st),F(Z.length?Z:null)})}}var R;o.asyncValidator?R=o.asyncValidator(o,f.value,I,f.source,r):o.validator&&(R=o.validator(o,f.value,I,f.source,r),R===!0?I():R===!1?I(o.message||o.field+" fails"):R instanceof Array?I(R):R instanceof Error&&I(R.message)),R&&R.then&&R.then(function(){return I()},function(x){return I(x)})},function(f){d(f)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!re.hasOwnProperty(e.type))throw new Error(P("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var n=Object.keys(e),u=n.indexOf("message");return u!==-1&&n.splice(u,1),n.length===1&&n[0]==="required"?re.required:re[this.getType(e)]||!1}},W.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");re[e]=n},W.warning=Jt,W.messages=et,W.validators=re;const Yl={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 pt(t,e={}){const n=new W(t);return n.messages(Object.assign(Yl,e)),n}const en=new Hr;class L{constructor(e){var b,S,A,f;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=nn,this.removeSetting=tn,this._callControlHooks("preInstance",e);const{controlName:n,controlIcon:u,controlType:a,controlFieldType:i,controlEventKeys:r,controlCustomEvents:l,name:d,setting:c,slots:g,slotPosition:E}=new.target;n&&u&&a||Dt(`The ${d} controlName,controlIcon,controlType is not define`),this.id=(b=e==null?void 0:e.id)!=null?b:N(10),this.name=n,this.icon=u,this.type=(S=e==null?void 0:e.type)!=null?S:a,this.props=new H(e==null?void 0:e.props,new.target.controlName),this.controlType=(A=e==null?void 0:e.controlType)!=null?A:"base",this.setting=U(c),this.fieldType=(f=e==null?void 0:e.fieldType)!=null?f:i,this.eventKeys=U(r),this.customEvents=U(l),this.slots=U(g),this.slotPosition=U(E),Promise.resolve().then(()=>{this._callControlHooks("postInstance",e)})}get rules(){const e=this.props.constructor.Rules;return e?new e(this.props):{}}_callControlHooks(...e){const[n,...u]=e;return en.emit(n,this,...u)}preUpdate(e,n){this._callControlHooks("preUpdateProps",e,n)}postUpdate(e,n){this._callControlHooks("postUpdateProps",e,n)}updateProps(e,n){this.preUpdate(e,n),Sr(this.props,e,n),this.postUpdate(e,n)}preValidate(){return oe(this,null,function*(){const e=Q({},this.rules),n=yield this._callControlHooks("preValidate",e),u=n[n.length-1];return u===!1?void 0:u})}validate(e,n){return oe(this,null,function*(){const u=yield this.preValidate(),a=u!==void 0?u:Q({},this.rules);Array.isArray(n)&&n.forEach(r=>{a.hasOwnProperty(r)&&delete a[r]});const i=pt(a,e);try{return yield i.validate(this.props),!0}catch(r){throw r.control||(r.control=this),r}})}toDataBindModel(e=null){const n=this.fieldType,u=this.id,a=this.type,{dataBind:i,datasourceBind:r,optionConfig:l,caption:d,required:c,maxLength:g,options:E,encrypted:b,encryptedMode:S}=this.props;if(!n&&!i&&!r)return;const A={parentId:e,fieldType:n,controlId:u,caption:d,type:a,props:{}};switch(i&&(A.dataBind=i),l){case"datasource":case void 0:r&&(A.datasourceBind=r);break;case"custom":A.props.options=E;break}return c!==void 0&&(A.required=c),g!==void 0&&(A.maxLength=g),b!==void 0&&(A.encrypted=b),S!==void 0&&(A.encryptedMode=S),A}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:U(this.props),fieldType:this.fieldType,controlType:this.controlType}}static updateBasicControl(e,n){e==="setting"&&(n.add&&this.setting.push(...n.add),n.remove&&this.removeSettingItem(n.remove),n.update)}}L.mode="Designer",L.controlName="\u63A7\u4EF6",L.controlIcon="icon",L.controlType="control",L.controlEventKeys=[],L.controlCustomEvents=[],L.setting=[],L.__is_control__=!0,L.removeSettingItem=tn,L.updateSettingItem=nn;function tn(t){(Array.isArray(t)?t:[t]).forEach(n=>{var i,r,l;const u=typeof n!="string",a=(i=this.setting)==null?void 0:i.findIndex(d=>d.key===(u?n.key:n));a!==-1&&(u?this.setting[a].showItems=(r=this.setting[a].showItems)==null?void 0:r.filter(d=>!n.hideItems.includes(d)):this.setting.splice(a,1),u&&!((l=this.setting[a].showItems)!=null&&l.length)&&this.setting.splice(a,1))})}function nn(t,e){(typeof t=="string"?[t]:t).forEach(u=>{var i;const a=this.setting.find(r=>r.key===u);a&&(typeof e=="boolean"?a.visible=e:typeof e=="object"&&(((i=e.type)!=null?i:"replace")==="replace"?a.showItems=e.showItems:a.showItems.push(...e.showItems)))})}class k{constructor(e){var r,l,d,c,g;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:u,name:a,controlCustomEvents:i}=new.target;n||Dt(`The ${a} controlType is not define`),this.id=(r=e==null?void 0:e.id)!=null?r:N(10),this.type=(l=e==null?void 0:e.type)!=null?l:n,this.props=new H(e==null?void 0:e.props),this.customEvents=i,this.controlType=(d=e==null?void 0:e.controlType)!=null?d:"base",this.fieldType=(c=e==null?void 0:e.fieldType)!=null?c:u,this.pageStatus=(g=e==null?void 0:e.pageStatus)!=null?g:Te.UNKNOWN}get rules(){const e=this.props.constructor.RuntimeRules;if(e){const n=new e(this.props);return Array.from(n)}return[]}}k.mode="Runtime",k.controlType="control",k.__is_control__=!0,k.controlCustomEvents=[];function tt(t){t.hasOwnProperty("optionConfig")||(this.optionConfig={type:"any"}),t.hasOwnProperty("options")||(this.options={type:"any"}),t.hasOwnProperty("datasourceBind")||(this.datasourceBind={type:"any"}),t.hasOwnProperty("options")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="custom")?this.options=[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:h.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:h.getMessage("pleaseEnterValue")}}}},{type:"array",validator(e,n,u){n.length===0&&u(h.getMessage("optionIsRequired")),u()}},{type:"array",validator(e,n,u){const a=n.map(r=>r.value),i=Lr(a);a.length!==i.length?u(h.getMessage("optionIdIsRepeat")):u()},message:h.getMessage("optionIdIsRepeat")}]:t.hasOwnProperty("datasourceBind")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",validator(e,n,u){n.length===0&&u(h.getMessage("pleaseBindAtLeastOneDisplayValue")),u()},message:h.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:h.getMessage("isNotBoolean")}}}}]}}])}function pl(t,e,n=!1){this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:h.getMessage("isNotString")},key:{type:"string",required:!0,message:h.getMessage("isNotString")},value:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",validator(u,a,i){a.length===0&&i(h.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),i()},message:h.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:h.getMessage("isNotBoolean")}}}}]}}]}function un(t){return(t==null?void 0:t.dataCode)!==void 0&&(t==null?void 0:t.fieldCode)!==void 0}class nt extends ve{constructor(e){super(e),this.dataBind={},this.caption={type:"string",required:!0,message:h.getMessage("pleaseEnterCaption")},this.isHideCaption={type:"boolean"},this.labelPosition={type:"enum",enum:["top","left"]},this.defaultState={type:"enum",enum:["default","readonly"]},this.required={type:"boolean"},this.captionTip={type:"string",required:!1,message:h.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")}};if(un(e.dataBind))this.dataBind={type:"object",required:!0,fields:U(n),message:h.getMessage("pleaseEnterFieldCode")};else{let u={type:"object",required:!0,fields:{},message:h.getMessage("pleaseEnterFieldCode")};Object.keys(e.dataBind).forEach(a=>{u.fields[a]={type:"object",required:!0,fields:U(n),message:h.getMessage("pleaseEnterFieldCode")}}),this.dataBind=u}e.isShowCaptionTip&&(this.captionTip.required=!0)}}class an extends Je{constructor(e){super(e);const n=e.isHide?!1:e.required;n&&this.push({type:"string",required:n,message:e.requiredMessage!==""?e.requiredMessage:h.getMessage("runtimeRequired",{caption:e.caption})})}}class le extends H{constructor(e){var n,u,a,i,r,l,d,c,g,E;super(e),this.caption=(n=e==null?void 0:e.caption)!=null?n:"",this.isHideCaption=(u=e==null?void 0:e.isHideCaption)!=null?u:!1,this.isShowCaptionTip=(a=e==null?void 0:e.isShowCaptionTip)!=null?a:!1,this.captionTip=(i=e==null?void 0:e.captionTip)!=null?i:"",this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.labelPosition=(l=e==null?void 0:e.labelPosition)!=null?l:"top",this.placeholder=(d=e==null?void 0:e.placeholder)!=null?d:"",this.required=(c=e==null?void 0:e.required)!=null?c:!1,this.requiredMessage=(g=e==null?void 0:e.requiredMessage)!=null?g:"",this.dataBind=new q(e==null?void 0:e.dataBind),this.defaultValue=(E=e==null?void 0:e.defaultValue)!=null?E:""}}le.Rules=nt,le.RuntimeRules=an;class es extends nt{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource"],message:h.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:h.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")}],tt.call(this,e)}}class rn extends L{constructor(e){super(e),this.controlType="form",this.props=new le(e==null?void 0:e.props)}}rn.controlEventKeys=["on_change","on_focus","on_blur"];class ts extends k{constructor(e){super(e),this.controlType="form",this.props=new le(e==null?void 0:e.props)}}class se extends H{constructor(e){super(e)}}const ns=1e4;class K extends L{constructor(e){super(e),this.controlType="layout";const{excludes:n,childrenMaxLength:u}=new.target;this.props=new se(e==null?void 0:e.props),T(this,"children",e==null?void 0:e.children,void 0,"Designer"),this.excludes=U(n),this.childrenMaxLength=u}judgeExcludesChildren(e){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(e)}judgeJoinChildren(e){const n=this.judgeExcludesChildren(e);return n&&this.childrenMaxLength>this.children.length}validate(e,n){return oe(this,null,function*(){return yield ot(K.prototype,this,"validate").call(this,e,n),yield Promise.all(this.children.map(u=>u.validate(e,n))),!0})}toDataBindModel(e=null){const n=super.toDataBindModel(),u=n?[n]:[];return this.children.reduce((a,i)=>{const r=i.toDataBindModel(e);if(Array.isArray(r)){const l=r.filter(d=>!!d);return[...a,...l]}return r&&a.push(r),a},u)}toSchema(){const e=super.toSchema(),n=this.children.map(u=>u.toSchema());return Fe(Q({},e),{children:n})}}K.excludes=!1,K.childrenMaxLength=ns;class ut extends k{constructor(e){super(e),this.controlType="layout",this.props=new se(e==null?void 0:e.props),T(this,"children",e==null?void 0:e.children,void 0,"Runtime")}}class at extends H{constructor(e,n,u){var a,i,r,l;super(n),T(this,"headers",n==null?void 0:n.headers,e,u),T(this,"footers",n==null?void 0:n.footers,e),this.pageIndex=(a=n==null?void 0:n.pageIndex)!=null?a:1,this.pageSize=(i=n==null?void 0:n.pageSize)!=null?i:20,this.pageSizeOptions=(r=n==null?void 0:n.pageSizeOptions)!=null?r:[20],this.totalCount=(l=n==null?void 0:n.totalCount)!=null?l:0}}class Ce extends L{constructor(e){super(e),this.controlType="list",this.props=new at(this,e==null?void 0:e.props,"Designer")}validate(e,n){return oe(this,null,function*(){return yield ot(Ce.prototype,this,"validate").call(this,e),yield Promise.all(this.props.headers.map(u=>u.validate(e,n))),!0})}toDataBindModel(){const e=super.toDataBindModel(),n=e?[e]:[],u=this.id;return this.props.headers.reduce((a,i)=>{const r=i.toDataBindModel(u);if(Array.isArray(r)){const l=r.filter(d=>!!d);return[...a,...l]}return r&&a.push(r),a},n)}toSchema(){var a,i;const e=super.toSchema(),n=this.props.headers.map(r=>r.toSchema()),u=(i=(a=this.props)==null?void 0:a.footers)==null?void 0:i.map(r=>{if(r)return r.toSchema()});return Fe(Q({},e),{props:Fe(Q({},this.props),{headers:n,footers:u})})}}Ce.controlFieldType=ee.LIST;class us extends k{constructor(e){super(e),this.controlType="list",this.props=new at(this,e==null?void 0:e.props,"Runtime"),T(this,"children",e==null?void 0:e.children,void 0,"Runtime")}get length(){return this.children.length}}class it extends ve{constructor(e){super(e),this.caption={type:"string",required:!0,message:h.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:h.getMessage("pleaseEnterColumnWidth")},this.width.required=e.widthType==="px"}}class Ae extends H{constructor(e){var n,u,a,i,r;super(e),this.width=(n=e==null?void 0:e.width)!=null?n:150,this.widthType=(e==null?void 0:e.widthType)||"auto",this.caption=(u=e==null?void 0:e.caption)!=null?u:"",this.fixed=(a=e==null?void 0:e.fixed)!=null?a:"none",this.autoWidth=new Oe(e==null?void 0:e.autoWidth),this.dataBind=new q(e==null?void 0:e.dataBind),this.sort=(i=e==null?void 0:e.sort)!=null?i:!0,this.align=e==null?void 0:e.align,this.colSpan=e==null?void 0:e.colSpan,this.autoHeight=(r=e==null?void 0:e.autoHeight)!=null?r:!1}}Ae.Rules=it;class as extends it{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:h.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:h.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")}],tt.call(this,e)}}class is extends L{constructor(e){super(e),this.controlType="column",this.props=new Ae(e==null?void 0:e.props)}}class rs extends k{constructor(e){super(e),this.controlType="column",this.props=new Ae(e==null?void 0:e.props)}}class rt extends se{constructor(e){super(e),this.dataBind=new q(e==null?void 0:e.dataBind)}}class ls extends K{constructor(e){super(e),this.controlType="search",this.props=new rt(e==null?void 0:e.props)}}class ss extends ut{constructor(e){super(e),this.controlType="search",this.props=new rt(e==null?void 0:e.props)}}class lt extends se{constructor(e){super(e)}}class os extends K{constructor(e){super(e),this.controlType="wrap",this.props=new lt(e==null?void 0:e.props)}}class cs extends ut{constructor(e){super(e),this.controlType="wrap",this.props=new lt(e==null?void 0:e.props)}}function ds(t){t.hasOwnProperty("linkOperationOption")&&t.hasOwnProperty("showLinkOperation")&&t.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:h.getMessage("pleaseEnterForm")}}}])}s.AMOUNT_TYPE=ze,s.AddressValue=gl,s.AmountDataBind=dl,s.AmountValue=fl,s.AutoWidth=Oe,s.BaseControlProperty=le,s.BaseControlPropertyRules=nt,s.BaseControlPropertyRuntimeRules=an,s.BaseStyle=Tt,s.COMMON_SETTING_TYPE=zt,s.CalcDataBind=yl,s.CalcValue=vl,s.ColumnControlProperty=Ae,s.ColumnControlPropertyRules=it,s.ColumnOptionAndDataSourcePropertyRules=as,s.CustomAttributeItem=We,s.CustomPermissionItem=Cl,s.DataBind=q,s.DataSourceBind=ge,s.DataSourceDataSetValue=Ht,s.DataSourceOrderItem=He,s.DataSourceParamItem=el,s.DataStorageDoc=Gr,s.DesignerColumnControl=is,s.DesignerControl=L,s.DesignerFormControl=rn,s.DesignerLayoutControl=K,s.DesignerListControl=Ce,s.DesignerSearchControl=ls,s.DesignerWrapControl=os,s.DisplayBoListItem=Ue,s.FieldBindItem=Ot,s.FieldFilterCondition=ae,s.FieldFilterConditions=J,s.FillBackBind=rl,s.FillPayloadBind=il,s.FormBind=me,s.FormSelectBind=Zr,s.ImageOptionSetting=Kt,s.JoinRelation=pr,s.Language=ll,s.LayoutControlProperty=se,s.LeftVariable=Nt,s.LinkOperationOption=nl,s.ListBind=Qr,s.ListControlProperty=at,s.MetaAutoWidth=Xr,s.MetaRowHeight=Jr,s.MetaWidth=he,s.MultistageFillingItem=Ut,s.ObjectDataBind=ye,s.OperationItem=El,s.OptObject=Al,s.OptionAndDataSourcePropertyRules=es,s.OptionSetting=Ke,s.OrganizationDataSourceBind=ul,s.PAGE_STATUS=Te,s.Property=H,s.PropertyRules=ve,s.PropertyRuntimeRules=Je,s.RangeDataBind=hl,s.RangeDateValue=ml,s.RegisterControls=ue,s.RegularRules=sl,s.RightVariable=Ne,s.RowHeight=je,s.RowStyleRule=Fl,s.RowStyleRuleScript=Dl,s.RuntimeColumnControl=rs,s.RuntimeControl=k,s.RuntimeFormControl=ts,s.RuntimeLayoutControl=ut,s.RuntimeListControl=us,s.RuntimeSearchControl=ss,s.RuntimeWrapControl=cs,s.SearchControlProperty=rt,s.SelectedContentConfig=tl,s.SubListItem=jt,s.SubListPageConfig=Yr,s.SuperDataSourceBind=kt,s.TreeDataSourceBind=al,s.ViewOperationItem=Bl,s.WrapControlProperty=lt,s.controlHooksEmitter=en,s.createValidator=pt,s.defineArrayParent=$t,s.defineControlArrayToProperty=T,s.defineParent=Ve,s.initImageOptions=cl,s.initLinkOperationRules=ds,s.initOptionAndDataSourceRules=tt,s.initOptions=ol,s.initSuperDataSourceRules=pl,s.isDataBind=un,s.setPropertyDontEnum=fe,Object.defineProperty(s,"__esModule",{value:!0})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-core",
3
- "version": "2.10.0-alpha.2",
3
+ "version": "2.10.0-alpha.8",
4
4
  "description": "model engine core",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -26,9 +26,9 @@
26
26
  "postpublish": "node ../../scripts/postpublish.js"
27
27
  },
28
28
  "dependencies": {
29
- "@byteluck-fe/model-driven-shared": "2.10.0-alpha.2",
29
+ "@byteluck-fe/model-driven-shared": "2.10.0-alpha.8",
30
30
  "async-validator": "3.5.1",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
- "gitHead": "6eedd415a56c7733be3fd217ea863ce2965ac818"
33
+ "gitHead": "a9f162bf562e4cc6b50639ef2a94b1aee6c4b2fa"
34
34
  }