lu-lowcode-package-form 0.11.44 → 0.11.46
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.cjs.js
CHANGED
@@ -420,7 +420,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
420
420
|
transform: rotate(360deg);
|
421
421
|
}
|
422
422
|
}
|
423
|
-
`,Mft=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rft,n=q.useContext(yTe),r=n.csp;q.useEffect(function(){Hu(t,"@ant-design-icons",{prepend:!0,csp:r})},[])},Fft=["icon","className","onClick","style","primaryColor","secondaryColor"],TC={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Bft(e){var t=e.primaryColor,n=e.secondaryColor;TC.primaryColor=t,TC.secondaryColor=n||UTe(t),TC.calculated=!!n}function kft(){return ve({},TC)}var py=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=fn(t,Fft),u=TC;if(a&&(u={primaryColor:a,secondaryColor:s||UTe(a)}),Mft(),Ift(Wee(n),"icon should be icon definiton, but got ".concat(n)),!Wee(n))return null;var c=n;return c&&typeof c.icon=="function"&&(c=ve(ve({},c),{},{icon:c.icon(u.primaryColor,u.secondaryColor)})),dk(c.icon,"svg-".concat(c.name),ve({className:r,onClick:o,style:i,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};py.displayName="IconReact";py.getTwoToneColors=kft;py.setTwoToneColors=Bft;function KTe(e){var t=WTe(e),n=we(t,2),r=n[0],o=n[1];return py.setTwoToneColors({primaryColor:r,secondaryColor:o})}function Lft(){var e=py.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var jft=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];KTe("#1890ff");var pp=$.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=fn(e,jft),c=$.useContext(yTe),f=c.prefixCls,d=f===void 0?"anticon":f,p=c.rootClassName,g=Pe(p,d,de(de({},"".concat(d,"-").concat(r.name),!!r.name),"".concat(d,"-spin"),!!o||r.name==="loading"),n),m=a;m===void 0&&s&&(m=-1);var h=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=WTe(l),v=we(y,2),b=v[0],C=v[1];return $.createElement("span",ve(ve({role:"img","aria-label":r.name},u),{},{ref:t,tabIndex:m,onClick:s,className:g}),$.createElement(py,{icon:r,primaryColor:b,secondaryColor:C,style:h}))});pp.displayName="AntdIcon";pp.getTwoToneColor=Lft;pp.setTwoToneColor=KTe;var _ft=function(t,n){return $.createElement(pp,ve(ve({},t),{},{ref:n,icon:Sat}))},GTe=$.forwardRef(_ft);process.env.NODE_ENV!=="production"&&(GTe.displayName="CopyOutlined");var Hft=function(t,n){return $.createElement(pp,ve(ve({},t),{},{ref:n,icon:H3e}))},CV=$.forwardRef(Hft);process.env.NODE_ENV!=="production"&&(CV.displayName="DeleteOutlined");var zft=function(t,n){return $.createElement(pp,ve(ve({},t),{},{ref:n,icon:g3e}))},YTe=$.forwardRef(zft);process.env.NODE_ENV!=="production"&&(YTe.displayName="EyeOutlined");var Vft=function(t,n){return $.createElement(pp,ve(ve({},t),{},{ref:n,icon:I4e}))},XTe=$.forwardRef(Vft);process.env.NODE_ENV!=="production"&&(XTe.displayName="PlusOutlined");var Uft=function(t,n){return $.createElement(pp,ve(ve({},t),{},{ref:n,icon:Uat}))},qTe=$.forwardRef(Uft);process.env.NODE_ENV!=="production"&&(qTe.displayName="UploadOutlined");const Wft=()=>{let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}};function QTe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"title",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parentId",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"children",i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0;return Kft(e,t,n,r,o,i,s=>({value:s[t],title:s[n],key:s[t],disabled:s[t]===a}))}function Kft(e,t,n,r,o,i,a){if(!Array.isArray(e)||e.length===0)return[];const s=e.map(l=>({...l,...a(l)}));return s.filter(l=>{const u=s.filter(c=>l[t]===c[r]);return l[o]=u.length>0?u:[],l[r]===i})}const ZTe=e=>{let{request:t,title:n,disabledValue:r,callError:o,...i}=e;const[a,s]=q.useState(!1),[l,u]=q.useState([]);q.useEffect(()=>{c()},[]);const c=async()=>{if(t&&typeof t=="function"){var f;const d=await t();if(d.code>0){o&&typeof o=="function"&&o(d.message);return}let p=QTe(((f=d.data)===null||f===void 0?void 0:f.list)||d.data||[],"id",n||"title",i.parentId||"parentId","children",0,r);p=[{value:0,title:"根节点",children:p}],i.treeData=p,u(p)}i.treeData&&u(i.treeData),s(!0)};return Xe.jsx(Ro,{...i,children:a&&Xe.jsx(dp,{...i,treeData:l,treeDefaultExpandAll:!0,style:{width:"100%"}})})};var Gft=function(e){return typeof e=="function"},Yft=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function Gee(e){Yft&&(Gft(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=q.useRef(e);t.current=q.useMemo(function(){return e},[e]);var n=q.useRef();return n.current||(n.current=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.current.apply(this,r)}),n.current}function Xft(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}function qft(e,t){var n=q.useRef({deps:t,obj:void 0,initialized:!1}).current;return(n.initialized===!1||!Xft(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function Qft(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var JTe=Qft;function Zft(e,t){return function(n){return e(t(n))}}var Jft=Zft;const EV=q.forwardRef((e,t)=>{let{addWrapper:n=!0,form:r,fieldName:o,fieldsValue:i,shouldUpdateKey:a,value:s,type:l,defaultValue:u,onChange:c,option_label:f,option_value:d,option_search:p,options:g,request:m,requestParams:h,callError:y,subRequest:v,sub_option_label:b="label",mode:C="single",sub_option_value:E="id",rightIconRender:S,rightIcon:w,rightIconClick:x,recordFieldsChange:O,getAllWithIds:T,removeLastFieldsValues:A,...N}=e;const[I,R]=q.useState([]),[M,B]=q.useState(!1),k=q.useRef(1),V=10,z=q.useRef(!1),L=q.useRef(!1);qft(()=>Wft(),[]);const F=q.useRef([]),j=q.useRef(null);q.useEffect(()=>{if(s&&s!==null&&s!==void 0&&s.value){console.log(`SearchSelect ${o} value`,s);let ne=null;Array.isArray(I)&&I.length>0&&(ne=I.find(Y=>Y.value==(s==null?void 0:s.value)||Y.value==s),ne&&!Iu.isEqual(ne,s)&&(console.log("new value /////",ne),typeof c=="function"&&c(ne))),ne||_(s)}},[s]),q.useEffect(()=>{H(h)},[a,h]);const _=async ne=>{m&&d&&(console.log(`[${N==null?void 0:N.label}]loadSelectOptions loadValue2`,ne),W({...h,[d]:ne==null?void 0:ne.value},null,Y=>{if(Y&&Y.length>0){console.log(`[${N==null?void 0:N.label}]callback selectOptions`,Y),console.log(`[${N==null?void 0:N.label}]callback loadValue`,ne);let Z=Y.find(re=>re.value==(ne==null?void 0:ne.value)||re.value==ne);Z&&!Iu.isEqual(Z,ne)&&(console.log(`[${N==null?void 0:N.label}]debounceFetchOptions new value /////`,Z),typeof c=="function"&&c(Z))}}))},H=async ne=>{const Y={};k.current=1,z.current=!1,m&&typeof m=="function"&&W(ne,Y),g&&g.length>0&&R(g)},G=async ne=>{const Y={...h};Y[p]=ne,await W(Y)},W=(ne,Y,Z)=>{typeof Z=="function"&&F.current.push(Z),j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{const re=F.current;console.log(`[${N==null?void 0:N.label}]debounceFetchOptions callbackQueue`,JSON.parse(JSON.stringify(re))),F.current=[],Q(ne,Y,o).then(se=>{for(console.log(`[${N==null?void 0:N.label}]debounceFetchOptions result`,se),console.log(`[${N==null?void 0:N.label}]debounceFetchOptions callbacks`,re);re.length>0;){const ie=re.shift();typeof ie=="function"&&ie(se)}})},200)},K=async(ne,Y,Z)=>{let re=[];if(!(Y&&Object.values(Y).some(ie=>ie==="##norequest##"))){var se;B(!0);const ie=await m({...ne,ruleParams:Y},r,Z);B(!1),ie.code>0?y&&typeof y=="function"&&y(ie.message):re=((se=ie.data)===null||se===void 0?void 0:se.list)||ie.data}return re},X=async ne=>{if(Array.isArray(ne)){for(let Y=0;Y<ne.length;Y++){const Z=ne[Y];if(typeof v=="function"){let re=[];const{data:se}=await v(Z);se!=null&&se.list&&Array.isArray(se.list)&&(re=se.list.map(ie=>({label:`${Z[f]}-${ie[b]}`,value:`${Z[d]}-${ie[E]}`}))),ne[Y]={...Z,label:Z[f],title:Z[f],options:re}}ne[Y]={...Z,label:Z[f],value:Z[d]}}I.length>0&&!Iu.isEqual(I,ne)&&typeof c=="function"&&c(void 0)}return ne},Q=async(ne,Y,Z)=>{try{let re=await K(ne,Y,Z);return re=await X(re),R(Array.isArray(re)?re:[]),re}catch(re){console.error("fetchOptions",re),B(!1)}finally{}},te=ne=>{console.log(`[${N==null?void 0:N.label}]handleChange value`,ne),Array.isArray(ne)?c(ne.map(Y=>I.find(Z=>Z.value===Y))):c(I.find(Y=>Y.value===ne))},J=ne=>{const{target:Y}=ne;Y.scrollTop+Y.clientHeight>=Y.scrollHeight-50&&oe()},oe=async()=>{if(!(z.current||L.current)){L.current=!0;try{const ne={...h,page:k.current+1,pageSize:V};let Y=await K(ne,null);Y=await X(Y),Array.isArray(Y)&&Y.length>0?R(Z=>{const re=new Set(Z.map(ie=>ie.value)),se=Y.filter(ie=>!re.has(ie.value));return[...Z,...se]}):z.current=!0,k.current+=1}catch(ne){console.error("加载更多选项时出错",ne)}finally{L.current=!1}}};return n?Xe.jsxs(Ro,{...N,children:[Xe.jsx(qu,{ref:t,notFoundContent:M?Xe.jsx(SE,{size:"small"}):null,value:s,...N,filterOption:!1,showSearch:!!(m&&p),onSearch:m&&p?G:null,onChange:te,style:{width:"100%",flex:1},options:I,onPopupScroll:typeof m=="function"?J:null,mode:C}),!(N!=null&&N.disabled)&&w,!(N!=null&&N.disabled)&&typeof S=="function"&&S({value:s,onChange:c,form:r,fieldName:o,recordFieldsChange:O,getAllWithIds:T,removeLastFieldsValues:A})]}):Xe.jsxs(Xe.Fragment,{children:[Xe.jsx(qu,{ref:t,notFoundContent:M?Xe.jsx(SE,{size:"small"}):null,value:s,...N,filterOption:!1,showSearch:!!(m&&p),onSearch:m&&p?G:null,onChange:te,style:{width:"100%"},options:I,onPopupScroll:typeof m=="function"?J:null,mode:C}),!(N!=null&&N.disabled)&&w,!(N!=null&&N.disabled)&&typeof S=="function"&&S({value:s,onChange:c,form:r,fieldName:o,recordFieldsChange:O,getAllWithIds:T,removeLastFieldsValues:A})]})}),SV=e=>{let{request:t,option_label:n="label",option_value:r="id",disabledValue:o,callError:i,options:a,addWrapper:s=!0,...l}=e;const[u,c]=q.useState([]);q.useEffect(()=>{f()},[]);const f=async()=>{if(t&&typeof t=="function"){var d;const p=await t();if(p.code>0){i&&typeof i=="function"&&i(p.message);return}let g=((d=p.data)===null||d===void 0?void 0:d.list)||p.data;Array.isArray(g)&&g.length>0&&c(g.map(m=>({label:m[n],value:m[r]})))}a&&a.length>0&&c(a)};return s?Xe.jsx(Ro,{...l,children:Xe.jsx(qu,{...l,options:u,style:{width:"100%"}})}):Xe.jsx(qu,{...l,options:u,style:{width:"100%"}})},edt=e=>{let{...t}=e;return Xe.jsx(SV,{...t,mode:"single"})},tdt=e=>{let{onChange:t,value:n,...r}=e;const[o,i]=q.useState([]);return q.useEffect(()=>{if(n&&typeof n=="string")try{n=JSON.parse(n),t(n)}catch{}n&&i(n)},[n]),Xe.jsx(SV,{...r,onChange:t,mode:"multiple",value:o})},e6e=e=>{var t,n;let{readItemRender:r,readonly:o,onChange:i,onCustomChange:a,value:s,form:l,fieldName:u,...c}=e;return q.useEffect(()=>{if(s&&typeof s=="string")try{s=JSON.parse(s),l==null||l.setFieldValue(u,s),console.log("WithSingleSelect useEffect onChange////// form",l),console.log("WithSingleSelect useEffect onChange////// fieldName",u),console.log("WithSingleSelect useEffect onChange////// value",s)}catch(f){console.log("WithSingleSelect useEffect error",f)}},[s]),o?Xe.jsx("div",{className:" fmin-h-8 fflex fitems-center fgap-2 w-full fborder fborder-[#dadada] frounded fbox-border fpx-2 fpy-1 ",children:s&&s.label&&Xe.jsx(Xe.Fragment,{children:r&&typeof r=="function"?r(s):Xe.jsx("span",{children:(t=s)===null||t===void 0?void 0:t.label},`btn_${(n=s)===null||n===void 0?void 0:n.value}`)})}):Xe.jsx(EV,{addWrapper:!1,form:l,fieldName:u,...c,onChange:i,value:s,mode:"single",className:" fflex-1 foverflow-hidden"})},t6e=e=>{let{readItemRender:t,readonly:n,onChange:r,value:o,form:i,fieldName:a,...s}=e;return q.useEffect(()=>{if(o&&typeof o=="string")try{o=JSON.parse(o),r(o)}catch{}},[o]),n?Xe.jsx("div",{className:" fh-8 fflex fitems-center fgap-2",children:Array.isArray(o)&&o.map((l,u)=>Xe.jsxs(Xe.Fragment,{children:[" ",t&&typeof t=="function"?t(l):Xe.jsx("span",{children:l==null?void 0:l.label},`btn_${l==null?void 0:l.value}`),u<o.length-1?Xe.jsx("span",{className:" ftext-gray-400",children:","}):null]}))}):Xe.jsx(EV,{addWrapper:!1,form:i,fieldName:a,...s,onChange:r,value:o,mode:"multiple",className:" fflex-1 foverflow-hidden"})},ndt=e=>{let{customComponent:t,...n}=e;return t?Xe.jsx(Ro,{...n,children:Xe.jsx(t,{...n})}):Xe.jsx(Ro,{...n,children:Xe.jsx(uc,{...n})})},n6e=e=>{let{onChange:t,value:n,multiple:r,...o}=e;const[i,a]=q.useState();q.useEffect(()=>{if(n&&typeof n=="string")try{n=JSON.parse(n),t(n);return}catch{}r?Array.isArray(n)&&a(n):(Array.isArray(n)&&(n=n[0]),a(n))},[n]);const s=l=>{Array.isArray(l)||(l=[l]),t&&typeof t=="function"&&t(l)};return Xe.jsx(ZTe,{...o,onChange:s,value:i,multiple:r})},rdt=e=>{let{FetchDeptList:t,...n}=e;return Xe.jsx(n6e,{...n,title:"deptName",request:t})},odt=e=>{let{FetchPostList:t,...n}=e;return Xe.jsx(n6e,{...n,title:"postName",request:t})};e6e.displayName="WithSingleSelect";t6e.displayName="WithMultipleSelect";const idt=q.forwardRef((e,t)=>(q.useImperativeHandle(t,()=>({handleChange:n=>{e==null||e.onChange(n)}}),[]),Xe.jsx(Ro,{...e,children:Xe.jsx(e6e,{...e})}))),adt=q.forwardRef((e,t)=>(q.useImperativeHandle(t,()=>({handleChange:n=>{e==null||e.onChange(n)}}),[]),Xe.jsx(Ro,{...e,children:Xe.jsx(t6e,{...e})}))),sdt=q.forwardRef((e,t)=>{let{value:n,onChange:r,...o}=e;const i=q.useRef(0),a=()=>{i.current++,r(i.current)};return Xe.jsxs(Ro,{...o,children:[Xe.jsxs("div",{ref:t,children:["form-set-value:",n]}),Xe.jsx(qa,{onClick:a,children:"test"})]})});var ldt=function(){},udt=ldt(),Fv=function(e){return e!==udt&&e!==null},cdt=Fv,fdt=Array.prototype.forEach,ddt=Object.create,pdt=function(e,t){var n;for(n in e)t[n]=e[n]},r6e=function(e){var t=ddt(null);return fdt.call(arguments,function(n){cdt(n)&&pdt(Object(n),t)}),t},hdt=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},rP,Yee;function vdt(){return Yee||(Yee=1,rP=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),rP}var gdt=hdt()?Math.sign:vdt(),mdt=gdt,ydt=Math.abs,bdt=Math.floor,Cdt=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:mdt(e)*bdt(ydt(e)))},Edt=Cdt,Sdt=Math.max,Bv=function(e){return Sdt(0,Edt(e))},wdt=Bv,o6e=function(e,t,n){var r;return isNaN(e)?(r=t,r>=0?n&&r?r-1:r:1):e===!1?!1:wdt(e)},hp=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},xdt=Fv,hy=function(e){if(!xdt(e))throw new TypeError("Cannot use null or undefined");return e},Adt=hp,Odt=hy,Ddt=Function.prototype.bind,Xee=Function.prototype.call,Tdt=Object.keys,$dt=Object.prototype.propertyIsEnumerable,Ndt=function(e,t){return function(n,r){var o,i=arguments[2],a=arguments[3];return n=Object(Odt(n)),Adt(r),o=Tdt(n),a&&o.sort(typeof a=="function"?Ddt.call(a,n):void 0),typeof e!="function"&&(e=o[e]),Xee.call(e,o,function(s,l){return $dt.call(n,s)?Xee.call(r,i,n[s],s,n,l):t})}},t6=Ndt("forEach"),kv={},i6e={exports:{}},Pdt=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},oP,qee;function Idt(){return qee||(qee=1,oP=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),oP}var iP,Qee;function Rdt(){if(Qee)return iP;Qee=1;var e=Fv,t=Object.keys;return iP=function(n){return t(e(n)?Object(n):n)},iP}var aP,Zee;function Mdt(){return Zee||(Zee=1,aP=Idt()()?Object.keys:Rdt()),aP}var sP,Jee;function Fdt(){if(Jee)return sP;Jee=1;var e=Mdt(),t=hy,n=Math.max;return sP=function(r,o){var i,a,s=n(arguments.length,2),l;for(r=Object(t(r)),l=function(u){try{r[u]=o[u]}catch(c){i||(i=c)}},a=1;a<s;++a)o=arguments[a],e(o).forEach(l);if(i!==void 0)throw i;return r},sP}var a6e=Pdt()?Object.assign:Fdt(),Bdt=Fv,kdt={function:!0,object:!0},Ldt=function(e){return Bdt(e)&&kdt[typeof e]||!1};(function(e){var t=a6e,n=Ldt,r=Fv,o=Error.captureStackTrace;e.exports=function(i){var a=new Error(i),s=arguments[1],l=arguments[2];return r(l)||n(s)&&(l=s,s=null),r(l)&&t(a,l),r(s)&&(a.code=s),o&&o(a,e.exports),a}})(i6e);var jdt=i6e.exports,pk={exports:{}},lP,ete;function s6e(){if(ete)return lP;ete=1;var e=hy,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols;return lP=function(i,a){var s,l=Object(e(a));if(i=Object(e(i)),r(l).forEach(function(u){try{t(i,u,n(a,u))}catch(c){s=c}}),typeof o=="function"&&o(l).forEach(function(u){try{t(i,u,n(a,u))}catch(c){s=c}}),s!==void 0)throw s;return i},lP}var tte=Bv,l6e=function(e,t){return t},uP,nte,rte,ote;try{Object.defineProperty(l6e,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}l6e.length===1?(uP={configurable:!0,writable:!1,enumerable:!1},nte=Object.defineProperty,pk.exports=function(e,t){return t=tte(t),e.length===t?e:(uP.value=t,nte(e,"length",uP))}):(ote=s6e(),rte=function(){var e=[];return function(t){var n,r=0;if(e[t])return e[t];for(n=[];t--;)n.push("a"+(++r).toString(36));return new Function("fn","return function ("+n.join(", ")+") { return fn.apply(this, arguments); };")}}(),pk.exports=function(e,t){var n;if(t=tte(t),e.length===t)return e;n=rte(t)(e);try{ote(n,e)}catch{}return n});var u6e=pk.exports,c6e={exports:{}},_dt=void 0,f6e=function(e){return e!==_dt&&e!==null},Hdt=f6e,zdt={object:!0,function:!0,undefined:!0},Vdt=function(e){return Hdt(e)?hasOwnProperty.call(zdt,typeof e):!1},Udt=Vdt,Wdt=function(e){if(!Udt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},Kdt=Wdt,Gdt=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!Kdt(e)},Ydt=Gdt,Xdt=/^\s*class[\s{/}]/,qdt=Function.prototype.toString,Qdt=function(e){return!(!Ydt(e)||Xdt.test(qdt.call(e)))},cP="razdwatrzy",Zdt=function(){return typeof cP.contains!="function"?!1:cP.contains("dwa")===!0&&cP.contains("foo")===!1},fP,ite;function Jdt(){if(ite)return fP;ite=1;var e=String.prototype.indexOf;return fP=function(t){return e.call(this,t,arguments[1])>-1},fP}var ept=Zdt()?String.prototype.contains:Jdt(),uO=f6e,ate=Qdt,d6e=a6e,p6e=r6e,$C=ept,tpt=c6e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||typeof e!="string"?(i=t,t=e,e=null):i=arguments[2],uO(e)?(n=$C.call(e,"c"),r=$C.call(e,"e"),o=$C.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?d6e(p6e(i),a):a};tpt.gs=function(e,t,n){var r,o,i,a;return typeof e!="string"?(i=n,n=t,t=e,e=null):i=arguments[3],uO(t)?ate(t)?uO(n)?ate(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,uO(e)?(r=$C.call(e,"c"),o=$C.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?d6e(p6e(i),a):a};var Lv=c6e.exports,hk={exports:{}};(function(e,t){var n=Lv,r=hp,o=Function.prototype.apply,i=Function.prototype.call,a=Object.create,s=Object.defineProperty,l=Object.defineProperties,u=Object.prototype.hasOwnProperty,c={configurable:!0,enumerable:!1,writable:!0},f,d,p,g,m,h,y;f=function(v,b){var C;return r(b),u.call(this,"__ee__")?C=this.__ee__:(C=c.value=a(null),s(this,"__ee__",c),c.value=null),C[v]?typeof C[v]=="object"?C[v].push(b):C[v]=[C[v],b]:C[v]=b,this},d=function(v,b){var C,E;return r(b),E=this,f.call(this,v,C=function(){p.call(E,v,C),o.call(b,this,arguments)}),C.__eeOnceListener__=b,this},p=function(v,b){var C,E,S,w;if(r(b),!u.call(this,"__ee__"))return this;if(C=this.__ee__,!C[v])return this;if(E=C[v],typeof E=="object")for(w=0;S=E[w];++w)(S===b||S.__eeOnceListener__===b)&&(E.length===2?C[v]=E[w?0:1]:E.splice(w,1));else(E===b||E.__eeOnceListener__===b)&&delete C[v];return this},g=function(v){var b,C,E,S,w;if(u.call(this,"__ee__")&&(S=this.__ee__[v],!!S))if(typeof S=="object"){for(C=arguments.length,w=new Array(C-1),b=1;b<C;++b)w[b-1]=arguments[b];for(S=S.slice(),b=0;E=S[b];++b)o.call(E,this,w)}else switch(arguments.length){case 1:i.call(S,this);break;case 2:i.call(S,this,arguments[1]);break;case 3:i.call(S,this,arguments[1],arguments[2]);break;default:for(C=arguments.length,w=new Array(C-1),b=1;b<C;++b)w[b-1]=arguments[b];o.call(S,this,w)}},m={on:f,once:d,off:p,emit:g},h={on:n(f),once:n(d),off:n(p),emit:n(g)},y=l({},h),e.exports=t=function(v){return v==null?a(y):l(Object(v),h)},t.methods=m})(hk,hk.exports);var npt=hk.exports,dP,ste;function rpt(){return ste||(ste=1,dP=function(){var e=Array.from,t,n;return typeof e!="function"?!1:(t=["raz","dwa"],n=e(t),!!(n&&n!==t&&n[1]==="dwa"))}),dP}var pP,lte;function opt(){return lte||(lte=1,pP=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),pP}var hP,ute;function ipt(){if(ute)return hP;ute=1;var e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};return hP=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}(),hP}var vP,cte;function n6(){return cte||(cte=1,vP=opt()()?globalThis:ipt()),vP}var gP,fte;function apt(){if(fte)return gP;fte=1;var e=n6(),t={object:!0,symbol:!0};return gP=function(){var n=e.Symbol,r;if(typeof n!="function")return!1;r=n("test symbol");try{String(r)}catch{return!1}return!(!t[typeof n.iterator]||!t[typeof n.toPrimitive]||!t[typeof n.toStringTag])},gP}var mP,dte;function spt(){return dte||(dte=1,mP=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}),mP}var yP,pte;function h6e(){if(pte)return yP;pte=1;var e=spt();return yP=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t},yP}var bP,hte;function lpt(){if(hte)return bP;hte=1;var e=Lv,t=Object.create,n=Object.defineProperty,r=Object.prototype,o=t(null);return bP=function(i){for(var a=0,s,l;o[i+(a||"")];)++a;return i+=a||"",o[i]=!0,s="@@"+i,n(r,s,e.gs(null,function(u){l||(l=!0,n(this,s,e(u)),l=!1)})),s},bP}var CP,vte;function upt(){if(vte)return CP;vte=1;var e=Lv,t=n6().Symbol;return CP=function(n){return Object.defineProperties(n,{hasInstance:e("",t&&t.hasInstance||n("hasInstance")),isConcatSpreadable:e("",t&&t.isConcatSpreadable||n("isConcatSpreadable")),iterator:e("",t&&t.iterator||n("iterator")),match:e("",t&&t.match||n("match")),replace:e("",t&&t.replace||n("replace")),search:e("",t&&t.search||n("search")),species:e("",t&&t.species||n("species")),split:e("",t&&t.split||n("split")),toPrimitive:e("",t&&t.toPrimitive||n("toPrimitive")),toStringTag:e("",t&&t.toStringTag||n("toStringTag")),unscopables:e("",t&&t.unscopables||n("unscopables"))})},CP}var EP,gte;function cpt(){if(gte)return EP;gte=1;var e=Lv,t=h6e(),n=Object.create(null);return EP=function(r){return Object.defineProperties(r,{for:e(function(o){return n[o]?n[o]:n[o]=r(String(o))}),keyFor:e(function(o){var i;t(o);for(i in n)if(n[i]===o)return i})})},EP}var SP,mte;function fpt(){if(mte)return SP;mte=1;var e=Lv,t=h6e(),n=n6().Symbol,r=lpt(),o=upt(),i=cpt(),a=Object.create,s=Object.defineProperties,l=Object.defineProperty,u,c,f;if(typeof n=="function")try{String(n()),f=!0}catch{}else n=null;return c=function(p){if(this instanceof c)throw new TypeError("Symbol is not a constructor");return u(p)},SP=u=function d(p){var g;if(this instanceof d)throw new TypeError("Symbol is not a constructor");return f?n(p):(g=a(c.prototype),p=p===void 0?"":String(p),s(g,{__description__:e("",p),__name__:e("",r(p))}))},o(u),i(u),s(c.prototype,{constructor:e(u),toString:e("",function(){return this.__name__})}),s(u.prototype,{toString:e(function(){return"Symbol ("+t(this).__description__+")"}),valueOf:e(function(){return t(this)})}),l(u.prototype,u.toPrimitive,e("",function(){var d=t(this);return typeof d=="symbol"?d:d.toString()})),l(u.prototype,u.toStringTag,e("c","Symbol")),l(c.prototype,u.toStringTag,e("c",u.prototype[u.toStringTag])),l(c.prototype,u.toPrimitive,e("c",u.prototype[u.toPrimitive])),SP}var wP,yte;function dpt(){return yte||(yte=1,wP=apt()()?n6().Symbol:fpt()),wP}var xP,bte;function ppt(){if(bte)return xP;bte=1;var e=Object.prototype.toString,t=e.call(function(){return arguments}());return xP=function(n){return e.call(n)===t},xP}var AP,Cte;function hpt(){if(Cte)return AP;Cte=1;var e=Object.prototype.toString,t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return AP=function(n){return typeof n=="function"&&t(e.call(n))},AP}var OP,Ete;function vpt(){if(Ete)return OP;Ete=1;var e=Object.prototype.toString,t=e.call("");return OP=function(n){return typeof n=="string"||n&&typeof n=="object"&&(n instanceof String||e.call(n)===t)||!1},OP}var DP,Ste;function gpt(){if(Ste)return DP;Ste=1;var e=dpt().iterator,t=ppt(),n=hpt(),r=Bv,o=hp,i=hy,a=Fv,s=vpt(),l=Array.isArray,u=Function.prototype.call,c={configurable:!0,enumerable:!0,writable:!0,value:null},f=Object.defineProperty;return DP=function(d){var p=arguments[1],g=arguments[2],m,h,y,v,b,C,E,S,w,x;if(d=Object(i(d)),a(p)&&o(p),!this||this===Array||!n(this)){if(!p){if(t(d))return b=d.length,b!==1?Array.apply(null,d):(v=new Array(1),v[0]=d[0],v);if(l(d)){for(v=new Array(b=d.length),h=0;h<b;++h)v[h]=d[h];return v}}v=[]}else m=this;if(!l(d)){if((w=d[e])!==void 0){for(E=o(w).call(d),m&&(v=new m),S=E.next(),h=0;!S.done;)x=p?u.call(p,g,S.value,h):S.value,m?(c.value=x,f(v,h,c)):v[h]=x,S=E.next(),++h;b=h}else if(s(d)){for(b=d.length,m&&(v=new m),h=0,y=0;h<b;++h)x=d[h],h+1<b&&(C=x.charCodeAt(0),C>=55296&&C<=56319&&(x+=d[++h])),x=p?u.call(p,g,x,y):x,m?(c.value=x,f(v,y,c)):v[y]=x,++y;b=y}}if(b===void 0)for(b=r(d.length),m&&(v=new m(b)),h=0;h<b;++h)x=p?u.call(p,g,d[h],h):d[h],m?(c.value=x,f(v,h,c)):v[h]=x;return m&&(c.value=null,v.length=b),v},DP}var TP,wte;function wV(){return wte||(wte=1,TP=rpt()()?Array.from:gpt()),TP}var mpt=wV(),ypt=Array.isArray,bpt=function(e){return ypt(e)?e:mpt(e)},Cpt=bpt,Ept=Fv,Spt=hp,wpt=Array.prototype.slice,v6e;v6e=function(e){return this.map(function(t,n){return t?t(e[n]):e[n]}).concat(wpt.call(e,this.length))};var xpt=function(e){return e=Cpt(e),e.forEach(function(t){Ept(t)&&Spt(t)}),v6e.bind(e)},Sx=hp,Apt=function(e){var t;return typeof e=="function"?{set:e,get:e}:(t={get:Sx(e.get)},e.set!==void 0?(t.set=Sx(e.set),e.delete&&(t.delete=Sx(e.delete)),e.clear&&(t.clear=Sx(e.clear)),t):(t.set=t.get,t))},wx=jdt,xx=u6e,D1=Lv,g6e=npt.methods,Opt=xpt,Dpt=Apt,$P=Function.prototype.apply,NP=Function.prototype.call,xte=Object.create,Tpt=Object.defineProperties,$pt=g6e.on,Npt=g6e.emit,Ppt=function(e,t,n){var r=xte(null),o,i,a,s,l,u,c,f,d,p,g,m,h,y,v;return t!==!1?i=t:isNaN(e.length)?i=1:i=e.length,n.normalizer&&(p=Dpt(n.normalizer),a=p.get,s=p.set,l=p.delete,u=p.clear),n.resolvers!=null&&(v=Opt(n.resolvers)),a?y=xx(function(b){var C,E,S=arguments;if(v&&(S=v(S)),C=a(S),C!==null&&hasOwnProperty.call(r,C))return g&&o.emit("get",C,S,this),r[C];if(S.length===1?E=NP.call(e,this,S[0]):E=$P.call(e,this,S),C===null){if(C=a(S),C!==null)throw wx("Circular invocation","CIRCULAR_INVOCATION");C=s(S)}else if(hasOwnProperty.call(r,C))throw wx("Circular invocation","CIRCULAR_INVOCATION");return r[C]=E,m&&o.emit("set",C,null,E),E},i):t===0?y=function(){var b;if(hasOwnProperty.call(r,"data"))return g&&o.emit("get","data",arguments,this),r.data;if(arguments.length?b=$P.call(e,this,arguments):b=NP.call(e,this),hasOwnProperty.call(r,"data"))throw wx("Circular invocation","CIRCULAR_INVOCATION");return r.data=b,m&&o.emit("set","data",null,b),b}:y=function(b){var C,E=arguments,S;if(v&&(E=v(arguments)),S=String(E[0]),hasOwnProperty.call(r,S))return g&&o.emit("get",S,E,this),r[S];if(E.length===1?C=NP.call(e,this,E[0]):C=$P.call(e,this,E),hasOwnProperty.call(r,S))throw wx("Circular invocation","CIRCULAR_INVOCATION");return r[S]=C,m&&o.emit("set",S,null,C),C},o={original:e,memoized:y,profileName:n.profileName,get:function(b){return v&&(b=v(b)),a?a(b):String(b[0])},has:function(b){return hasOwnProperty.call(r,b)},delete:function(b){var C;hasOwnProperty.call(r,b)&&(l&&l(b),C=r[b],delete r[b],h&&o.emit("delete",b,C))},clear:function(){var b=r;u&&u(),r=xte(null),o.emit("clear",b)},on:function(b,C){return b==="get"?g=!0:b==="set"?m=!0:b==="delete"&&(h=!0),$pt.call(this,b,C)},emit:Npt,updateEnv:function(){e=o.original}},a?c=xx(function(b){var C,E=arguments;v&&(E=v(E)),C=a(E),C!==null&&o.delete(C)},i):t===0?c=function(){return o.delete("data")}:c=function(b){return v&&(b=v(arguments)[0]),o.delete(b)},f=xx(function(){var b,C=arguments;return t===0?r.data:(v&&(C=v(C)),a?b=a(C):b=String(C[0]),r[b])}),d=xx(function(){var b,C=arguments;return t===0?o.has("data"):(v&&(C=v(C)),a?b=a(C):b=String(C[0]),b===null?!1:o.has(b))}),Tpt(y,{__memoized__:D1(!0),delete:D1(c),clear:D1(o.clear),_get:D1(f),_has:D1(d)}),o},Ipt=hp,Rpt=t6,Ate=kv,Mpt=Ppt,Fpt=o6e,Bpt=function e(t){var n,r,o;if(Ipt(t),n=Object(arguments[1]),n.async&&n.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!n.force?t:(r=Fpt(n.length,t.length,n.async&&Ate.async),o=Mpt(t,r,n),Rpt(Ate,function(i,a){n[a]&&i(n[a],o,n)}),e.__profiler__&&e.__profiler__(o),o.updateEnv(),o.memoized)},PP,Ote;function kpt(){return Ote||(Ote=1,PP=function(e){var t,n,r=e.length;if(!r)return"";for(t=String(e[n=0]);--r;)t+=""+e[++n];return t}),PP}var IP,Dte;function Lpt(){return Dte||(Dte=1,IP=function(e){return e?function(t){for(var n=String(t[0]),r=0,o=e;--o;)n+=""+t[++r];return n}:function(){return""}}),IP}var RP,Tte;function jpt(){return Tte||(Tte=1,RP=function(){var e=Number.isNaN;return typeof e!="function"?!1:!e({})&&e(NaN)&&!e(34)}),RP}var MP,$te;function _pt(){return $te||($te=1,MP=function(e){return e!==e}),MP}var FP,Nte;function Hpt(){return Nte||(Nte=1,FP=jpt()()?Number.isNaN:_pt()),FP}var BP,Pte;function xV(){if(Pte)return BP;Pte=1;var e=Hpt(),t=Bv,n=hy,r=Array.prototype.indexOf,o=Object.prototype.hasOwnProperty,i=Math.abs,a=Math.floor;return BP=function(s){var l,u,c,f;if(!e(s))return r.apply(this,arguments);for(u=t(n(this).length),c=arguments[1],isNaN(c)?c=0:c>=0?c=a(c):c=t(this.length)-a(i(c)),l=c;l<u;++l)if(o.call(this,l)&&(f=this[l],e(f)))return l;return-1},BP}var kP,Ite;function zpt(){if(Ite)return kP;Ite=1;var e=xV(),t=Object.create;return kP=function(){var n=0,r=[],o=t(null);return{get:function(i){var a=0,s=r,l,u=i.length;if(u===0)return s[u]||null;if(s=s[u]){for(;a<u-1;){if(l=e.call(s[0],i[a]),l===-1)return null;s=s[1][l],++a}return l=e.call(s[0],i[a]),l===-1?null:s[1][l]||null}return null},set:function(i){var a=0,s=r,l,u=i.length;if(u===0)s[u]=++n;else{for(s[u]||(s[u]=[[],[]]),s=s[u];a<u-1;)l=e.call(s[0],i[a]),l===-1&&(l=s[0].push(i[a])-1,s[1].push([[],[]])),s=s[1][l],++a;l=e.call(s[0],i[a]),l===-1&&(l=s[0].push(i[a])-1),s[1][l]=++n}return o[n]=i,n},delete:function(i){var a=0,s=r,l,u=o[i],c=u.length,f=[];if(c===0)delete s[c];else if(s=s[c]){for(;a<c-1;){if(l=e.call(s[0],u[a]),l===-1)return;f.push(s,l),s=s[1][l],++a}if(l=e.call(s[0],u[a]),l===-1)return;for(i=s[1][l],s[0].splice(l,1),s[1].splice(l,1);!s[0].length&&f.length;)l=f.pop(),s=f.pop(),s[0].splice(l,1),s[1].splice(l,1)}delete o[i]},clear:function(){r=[],o=t(null)}}},kP}var LP,Rte;function Vpt(){if(Rte)return LP;Rte=1;var e=xV();return LP=function(){var t=0,n=[],r=[];return{get:function(o){var i=e.call(n,o[0]);return i===-1?null:r[i]},set:function(o){return n.push(o[0]),r.push(++t),t},delete:function(o){var i=e.call(r,o);i!==-1&&(n.splice(i,1),r.splice(i,1))},clear:function(){n=[],r=[]}}},LP}var jP,Mte;function Upt(){if(Mte)return jP;Mte=1;var e=xV(),t=Object.create;return jP=function(n){var r=0,o=[[],[]],i=t(null);return{get:function(a){for(var s=0,l=o,u;s<n-1;){if(u=e.call(l[0],a[s]),u===-1)return null;l=l[1][u],++s}return u=e.call(l[0],a[s]),u===-1?null:l[1][u]||null},set:function(a){for(var s=0,l=o,u;s<n-1;)u=e.call(l[0],a[s]),u===-1&&(u=l[0].push(a[s])-1,l[1].push([[],[]])),l=l[1][u],++s;return u=e.call(l[0],a[s]),u===-1&&(u=l[0].push(a[s])-1),l[1][u]=++r,i[r]=a,r},delete:function(a){for(var s=0,l=o,u,c=[],f=i[a];s<n-1;){if(u=e.call(l[0],f[s]),u===-1)return;c.push(l,u),l=l[1][u],++s}if(u=e.call(l[0],f[s]),u!==-1){for(a=l[1][u],l[0].splice(u,1),l[1].splice(u,1);!l[0].length&&c.length;)u=c.pop(),l=c.pop(),l[0].splice(u,1),l[1].splice(u,1);delete i[a]}},clear:function(){o=[[],[]],i=t(null)}}},jP}var Fte={},_P,Bte;function m6e(){if(Bte)return _P;Bte=1;var e=hp,t=t6,n=Function.prototype.call;return _P=function(r,o){var i={},a=arguments[2];return e(o),t(r,function(s,l,u,c){i[l]=n.call(o,a,s,l,u,c)}),i},_P}var HP,kte;function AV(){if(kte)return HP;kte=1;var e=function(n){if(typeof n!="function")throw new TypeError(n+" is not a function");return n},t=function(n){var r=document.createTextNode(""),o,i,a=0;return new n(function(){var s;if(o)i&&(o=i.concat(o));else{if(!i)return;o=i}if(i=o,o=null,typeof i=="function"){s=i,i=null,s();return}for(r.data=a=++a%2;i;)s=i.shift(),i.length||(i=null),s()}).observe(r,{characterData:!0}),function(s){if(e(s),o){typeof o=="function"?o=[o,s]:o.push(s);return}o=s,r.data=a=++a%2}};return HP=function(){if(typeof process=="object"&&process&&typeof process.nextTick=="function")return process.nextTick;if(typeof queueMicrotask=="function")return function(n){queueMicrotask(e(n))};if(typeof document=="object"&&document){if(typeof MutationObserver=="function")return t(MutationObserver);if(typeof WebKitMutationObserver=="function")return t(WebKitMutationObserver)}return typeof setImmediate=="function"?function(n){setImmediate(e(n))}:typeof setTimeout=="function"||typeof setTimeout=="object"?function(n){setTimeout(e(n),0)}:null}(),HP}var Lte;function Wpt(){if(Lte)return Fte;Lte=1;var e=wV(),t=m6e(),n=s6e(),r=u6e,o=AV(),i=Array.prototype.slice,a=Function.prototype.apply,s=Object.create;return kv.async=function(l,u){var c=s(null),f=s(null),d=u.memoized,p=u.original,g,m,h;u.memoized=r(function(y){var v=arguments,b=v[v.length-1];return typeof b=="function"&&(g=b,v=i.call(v,0,-1)),d.apply(m=this,h=v)},d);try{n(u.memoized,d)}catch{}u.on("get",function(y){var v,b,C;if(g){if(c[y]){typeof c[y]=="function"?c[y]=[c[y],g]:c[y].push(g),g=null;return}v=g,b=m,C=h,g=m=h=null,o(function(){var E;hasOwnProperty.call(f,y)?(E=f[y],u.emit("getasync",y,C,b),a.call(v,E.context,E.args)):(g=v,m=b,h=C,d.apply(b,C))})}}),u.original=function(){var y,v,b,C;return g?(y=e(arguments),v=function E(S){var w,x,O=E.id;if(O==null){o(a.bind(E,this,arguments));return}if(delete E.id,w=c[O],delete c[O],!!w)return x=e(arguments),u.has(O)&&(S?u.delete(O):(f[O]={context:this,args:x},u.emit("setasync",O,typeof w=="function"?1:w.length))),typeof w=="function"?C=a.call(w,this,x):w.forEach(function(T){C=a.call(T,this,x)},this),C},b=g,g=m=h=null,y.push(v),C=a.call(p,this,y),v.cb=b,g=v,C):a.call(p,this,arguments)},u.on("set",function(y){if(!g){u.delete(y);return}c[y]?typeof c[y]=="function"?c[y]=[c[y],g.cb]:c[y].push(g.cb):c[y]=g.cb,delete g.cb,g.id=y,g=null}),u.on("delete",function(y){var v;hasOwnProperty.call(c,y)||f[y]&&(v=f[y],delete f[y],u.emit("deleteasync",y,i.call(v.args,1)))}),u.on("clear",function(){var y=f;f=s(null),u.emit("clearasync",t(y,function(v){return i.call(v.args,1)}))})},Fte}var jte={},zP,_te;function Kpt(){if(_te)return zP;_te=1;var e=Array.prototype.forEach,t=Object.create;return zP=function(n){var r=t(null);return e.call(arguments,function(o){r[o]=!0}),r},zP}var VP,Hte;function y6e(){return Hte||(Hte=1,VP=function(e){return typeof e=="function"}),VP}var UP,zte;function Gpt(){if(zte)return UP;zte=1;var e=y6e();return UP=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{throw new TypeError("Passed argument cannot be stringifed")}},UP}var WP,Vte;function Ypt(){if(Vte)return WP;Vte=1;var e=hy,t=Gpt();return WP=function(n){return t(e(n))},WP}var KP,Ute;function Xpt(){if(Ute)return KP;Ute=1;var e=y6e();return KP=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{return"<Non-coercible to string value>"}},KP}var GP,Wte;function qpt(){if(Wte)return GP;Wte=1;var e=Xpt(),t=/[\n\r\u2028\u2029]/g;return GP=function(n){var r=e(n);return r.length>100&&(r=r.slice(0,99)+"…"),r=r.replace(t,function(o){return JSON.stringify(o).slice(1,-1)}),r},GP}var Ax={exports:{}},Kte;function b6e(){if(Kte)return Ax.exports;Kte=1,Ax.exports=e,Ax.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return Ax.exports}var Gte;function Qpt(){if(Gte)return jte;Gte=1;var e=m6e(),t=Kpt(),n=Ypt(),r=qpt(),o=b6e(),i=AV(),a=Object.create,s=t("then","then:finally","done","done:finally");return kv.promise=function(l,u){var c=a(null),f=a(null),d=a(null);if(l===!0)l=null;else if(l=n(l),!s[l])throw new TypeError("'"+r(l)+"' is not valid promise mode");u.on("set",function(p,g,m){var h=!1;if(!o(m)){f[p]=m,u.emit("setasync",p,1);return}c[p]=1,d[p]=m;var y=function(E){var S=c[p];if(h)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)
|
423
|
+
`,Mft=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rft,n=q.useContext(yTe),r=n.csp;q.useEffect(function(){Hu(t,"@ant-design-icons",{prepend:!0,csp:r})},[])},Fft=["icon","className","onClick","style","primaryColor","secondaryColor"],TC={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Bft(e){var t=e.primaryColor,n=e.secondaryColor;TC.primaryColor=t,TC.secondaryColor=n||UTe(t),TC.calculated=!!n}function kft(){return ve({},TC)}var py=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=fn(t,Fft),u=TC;if(a&&(u={primaryColor:a,secondaryColor:s||UTe(a)}),Mft(),Ift(Wee(n),"icon should be icon definiton, but got ".concat(n)),!Wee(n))return null;var c=n;return c&&typeof c.icon=="function"&&(c=ve(ve({},c),{},{icon:c.icon(u.primaryColor,u.secondaryColor)})),dk(c.icon,"svg-".concat(c.name),ve({className:r,onClick:o,style:i,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};py.displayName="IconReact";py.getTwoToneColors=kft;py.setTwoToneColors=Bft;function KTe(e){var t=WTe(e),n=we(t,2),r=n[0],o=n[1];return py.setTwoToneColors({primaryColor:r,secondaryColor:o})}function Lft(){var e=py.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var jft=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];KTe("#1890ff");var pp=$.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=fn(e,jft),c=$.useContext(yTe),f=c.prefixCls,d=f===void 0?"anticon":f,p=c.rootClassName,g=Pe(p,d,de(de({},"".concat(d,"-").concat(r.name),!!r.name),"".concat(d,"-spin"),!!o||r.name==="loading"),n),m=a;m===void 0&&s&&(m=-1);var h=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=WTe(l),v=we(y,2),b=v[0],C=v[1];return $.createElement("span",ve(ve({role:"img","aria-label":r.name},u),{},{ref:t,tabIndex:m,onClick:s,className:g}),$.createElement(py,{icon:r,primaryColor:b,secondaryColor:C,style:h}))});pp.displayName="AntdIcon";pp.getTwoToneColor=Lft;pp.setTwoToneColor=KTe;var _ft=function(t,n){return $.createElement(pp,ve(ve({},t),{},{ref:n,icon:Sat}))},GTe=$.forwardRef(_ft);process.env.NODE_ENV!=="production"&&(GTe.displayName="CopyOutlined");var Hft=function(t,n){return $.createElement(pp,ve(ve({},t),{},{ref:n,icon:H3e}))},CV=$.forwardRef(Hft);process.env.NODE_ENV!=="production"&&(CV.displayName="DeleteOutlined");var zft=function(t,n){return $.createElement(pp,ve(ve({},t),{},{ref:n,icon:g3e}))},YTe=$.forwardRef(zft);process.env.NODE_ENV!=="production"&&(YTe.displayName="EyeOutlined");var Vft=function(t,n){return $.createElement(pp,ve(ve({},t),{},{ref:n,icon:I4e}))},XTe=$.forwardRef(Vft);process.env.NODE_ENV!=="production"&&(XTe.displayName="PlusOutlined");var Uft=function(t,n){return $.createElement(pp,ve(ve({},t),{},{ref:n,icon:Uat}))},qTe=$.forwardRef(Uft);process.env.NODE_ENV!=="production"&&(qTe.displayName="UploadOutlined");const Wft=()=>{let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}};function QTe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"title",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parentId",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"children",i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0;return Kft(e,t,n,r,o,i,s=>({value:s[t],title:s[n],key:s[t],disabled:s[t]===a}))}function Kft(e,t,n,r,o,i,a){if(!Array.isArray(e)||e.length===0)return[];const s=e.map(l=>({...l,...a(l)}));return s.filter(l=>{const u=s.filter(c=>l[t]===c[r]);return l[o]=u.length>0?u:[],l[r]===i})}const ZTe=e=>{let{request:t,title:n,disabledValue:r,callError:o,...i}=e;const[a,s]=q.useState(!1),[l,u]=q.useState([]);q.useEffect(()=>{c()},[]);const c=async()=>{if(t&&typeof t=="function"){var f;const d=await t();if(d.code>0){o&&typeof o=="function"&&o(d.message);return}let p=QTe(((f=d.data)===null||f===void 0?void 0:f.list)||d.data||[],"id",n||"title",i.parentId||"parentId","children",0,r);p=[{value:0,title:"根节点",children:p}],i.treeData=p,u(p)}i.treeData&&u(i.treeData),s(!0)};return Xe.jsx(Ro,{...i,children:a&&Xe.jsx(dp,{...i,treeData:l,treeDefaultExpandAll:!0,style:{width:"100%"}})})};var Gft=function(e){return typeof e=="function"},Yft=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function Gee(e){Yft&&(Gft(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=q.useRef(e);t.current=q.useMemo(function(){return e},[e]);var n=q.useRef();return n.current||(n.current=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.current.apply(this,r)}),n.current}function Xft(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}function qft(e,t){var n=q.useRef({deps:t,obj:void 0,initialized:!1}).current;return(n.initialized===!1||!Xft(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function Qft(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var JTe=Qft;function Zft(e,t){return function(n){return e(t(n))}}var Jft=Zft;const EV=q.forwardRef((e,t)=>{let{addWrapper:n=!0,form:r,fieldName:o,fieldsValue:i,shouldUpdateKey:a,value:s,type:l,defaultValue:u,onChange:c,option_label:f,option_value:d,option_search:p,options:g,request:m,requestParams:h,callError:y,subRequest:v,sub_option_label:b="label",mode:C="single",sub_option_value:E="id",rightIconRender:S,rightIcon:w,rightIconClick:x,recordFieldsChange:O,getAllWithIds:T,removeLastFieldsValues:A,...N}=e;const[I,R]=q.useState([]),[M,B]=q.useState(!1),k=q.useRef(1),V=10,z=q.useRef(!1),L=q.useRef(!1);qft(()=>Wft(),[]);const F=q.useRef([]),j=q.useRef(null);q.useEffect(()=>{if(s&&s!==null&&s!==void 0&&s.value){console.log(`SearchSelect ${o} value`,s);let ne=null;Array.isArray(I)&&I.length>0&&(ne=I.find(Y=>Y.value==(s==null?void 0:s.value)||Y.value==s),ne&&!Iu.isEqual(ne,s)&&(console.log("new value /////",ne),typeof c=="function"&&c(ne))),ne||_(s)}},[s]),q.useEffect(()=>{H(h)},[a,h]);const _=async ne=>{m&&d&&(console.log(`[${N==null?void 0:N.label}]loadSelectOptions loadValue2`,ne),W({...h,[d]:ne==null?void 0:ne.value},null,Y=>{if(Y&&Y.length>0){console.log(`[${N==null?void 0:N.label}]callback selectOptions`,Y),console.log(`[${N==null?void 0:N.label}]callback loadValue`,ne);let Z=Y.find(re=>re.value==(ne==null?void 0:ne.value)||re.value==ne);Z&&!Iu.isEqual(Z,ne)&&(console.log(`[${N==null?void 0:N.label}]debounceFetchOptions new value /////`,Z),typeof c=="function"&&c(Z))}}))},H=async ne=>{const Y={};k.current=1,z.current=!1,m&&typeof m=="function"&&W(ne,Y),g&&g.length>0&&R(g)},G=async ne=>{const Y={...h};Y[p]=ne,await W(Y)},W=(ne,Y,Z)=>{typeof Z=="function"&&F.current.push(Z),j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{const re=F.current;console.log(`[${N==null?void 0:N.label}]debounceFetchOptions callbackQueue`,JSON.parse(JSON.stringify(re))),F.current=[],Q(ne,Y,o).then(se=>{for(console.log(`[${N==null?void 0:N.label}]debounceFetchOptions result`,se),console.log(`[${N==null?void 0:N.label}]debounceFetchOptions callbacks`,re);re.length>0;){const ie=re.shift();typeof ie=="function"&&ie(se)}})},200)},K=async(ne,Y,Z)=>{let re=[];if(!(Y&&Object.values(Y).some(ie=>ie==="##norequest##"))){var se;B(!0);const ie=await m({...ne,ruleParams:Y},r,Z);console.log(`[${N==null?void 0:N.label}]fetchList response`,ie),B(!1),ie.code>0?y&&typeof y=="function"&&y(ie.message):re=((se=ie.data)===null||se===void 0?void 0:se.list)||ie.data}return re},X=async ne=>{if(Array.isArray(ne)){for(let Y=0;Y<ne.length;Y++){const Z=ne[Y];if(typeof v=="function"){let re=[];const{data:se}=await v(Z);se!=null&&se.list&&Array.isArray(se.list)&&(re=se.list.map(ie=>({label:`${Z[f]}-${ie[b]}`,value:`${Z[d]}-${ie[E]}`}))),ne[Y]={...Z,label:Z[f],title:Z[f],options:re}}ne[Y]={...Z,label:Z[f],value:Z[d]}}I.length>0&&!Iu.isEqual(I,ne)&&console.log(`[${N==null?void 0:N.label}]handleOptions onChange(undefined)`)}return ne},Q=async(ne,Y,Z)=>{try{let re=await K(ne,Y,Z);return re=await X(re),R(Array.isArray(re)?re:[]),re}catch(re){console.error("fetchOptions",re),B(!1)}finally{}},te=ne=>{console.log(`[${N==null?void 0:N.label}]handleChange value`,ne),Array.isArray(ne)?c(ne.map(Y=>I.find(Z=>Z.value===Y))):c(I.find(Y=>Y.value===ne))},J=ne=>{const{target:Y}=ne;Y.scrollTop+Y.clientHeight>=Y.scrollHeight-50&&oe()},oe=async()=>{if(!(z.current||L.current)){L.current=!0;try{const ne={...h,page:k.current+1,pageSize:V};let Y=await K(ne,null,o);Y=await X(Y),Array.isArray(Y)&&Y.length>0?R(Z=>{const re=new Set(Z.map(ie=>ie.value)),se=Y.filter(ie=>!re.has(ie.value));return[...Z,...se]}):z.current=!0,k.current+=1}catch(ne){console.error("加载更多选项时出错",ne)}finally{L.current=!1}}};return n?Xe.jsxs(Ro,{...N,children:[Xe.jsx(qu,{ref:t,notFoundContent:M?Xe.jsx(SE,{size:"small"}):null,value:s,...N,filterOption:!1,showSearch:!!(m&&p),onSearch:m&&p?G:null,onChange:te,style:{width:"100%",flex:1},options:I,onPopupScroll:typeof m=="function"?J:null,mode:C}),!(N!=null&&N.disabled)&&w,!(N!=null&&N.disabled)&&typeof S=="function"&&S({value:s,onChange:c,form:r,fieldName:o,recordFieldsChange:O,getAllWithIds:T,removeLastFieldsValues:A})]}):Xe.jsxs(Xe.Fragment,{children:[Xe.jsx(qu,{ref:t,notFoundContent:M?Xe.jsx(SE,{size:"small"}):null,value:s,...N,filterOption:!1,showSearch:!!(m&&p),onSearch:m&&p?G:null,onChange:te,style:{width:"100%"},options:I,onPopupScroll:typeof m=="function"?J:null,mode:C}),!(N!=null&&N.disabled)&&w,!(N!=null&&N.disabled)&&typeof S=="function"&&S({value:s,onChange:c,form:r,fieldName:o,recordFieldsChange:O,getAllWithIds:T,removeLastFieldsValues:A})]})}),SV=e=>{let{request:t,option_label:n="label",option_value:r="id",disabledValue:o,callError:i,options:a,addWrapper:s=!0,...l}=e;const[u,c]=q.useState([]);q.useEffect(()=>{f()},[]);const f=async()=>{if(t&&typeof t=="function"){var d;const p=await t();if(p.code>0){i&&typeof i=="function"&&i(p.message);return}let g=((d=p.data)===null||d===void 0?void 0:d.list)||p.data;Array.isArray(g)&&g.length>0&&c(g.map(m=>({label:m[n],value:m[r]})))}a&&a.length>0&&c(a)};return s?Xe.jsx(Ro,{...l,children:Xe.jsx(qu,{...l,options:u,style:{width:"100%"}})}):Xe.jsx(qu,{...l,options:u,style:{width:"100%"}})},edt=e=>{let{...t}=e;return Xe.jsx(SV,{...t,mode:"single"})},tdt=e=>{let{onChange:t,value:n,...r}=e;const[o,i]=q.useState([]);return q.useEffect(()=>{if(n&&typeof n=="string")try{n=JSON.parse(n),t(n)}catch{}n&&i(n)},[n]),Xe.jsx(SV,{...r,onChange:t,mode:"multiple",value:o})},e6e=e=>{var t,n;let{readItemRender:r,readonly:o,onChange:i,onCustomChange:a,value:s,form:l,fieldName:u,...c}=e;return q.useEffect(()=>{if(s&&typeof s=="string")try{s=JSON.parse(s),l==null||l.setFieldValue(u,s),console.log("WithSingleSelect useEffect onChange////// form",l),console.log("WithSingleSelect useEffect onChange////// fieldName",u),console.log("WithSingleSelect useEffect onChange////// value",s)}catch(f){console.log("WithSingleSelect useEffect error",f)}},[s]),o?Xe.jsx("div",{className:" fmin-h-8 fflex fitems-center fgap-2 w-full fborder fborder-[#dadada] frounded fbox-border fpx-2 fpy-1 ",children:s&&s.label&&Xe.jsx(Xe.Fragment,{children:r&&typeof r=="function"?r(s):Xe.jsx("span",{children:(t=s)===null||t===void 0?void 0:t.label},`btn_${(n=s)===null||n===void 0?void 0:n.value}`)})}):Xe.jsx(EV,{addWrapper:!1,form:l,fieldName:u,...c,onChange:i,value:s,mode:"single",className:" fflex-1 foverflow-hidden"})},t6e=e=>{let{readItemRender:t,readonly:n,onChange:r,value:o,form:i,fieldName:a,...s}=e;return q.useEffect(()=>{if(o&&typeof o=="string")try{o=JSON.parse(o),r(o)}catch{}},[o]),n?Xe.jsx("div",{className:" fh-8 fflex fitems-center fgap-2",children:Array.isArray(o)&&o.map((l,u)=>Xe.jsxs(Xe.Fragment,{children:[" ",t&&typeof t=="function"?t(l):Xe.jsx("span",{children:l==null?void 0:l.label},`btn_${l==null?void 0:l.value}`),u<o.length-1?Xe.jsx("span",{className:" ftext-gray-400",children:","}):null]}))}):Xe.jsx(EV,{addWrapper:!1,form:i,fieldName:a,...s,onChange:r,value:o,mode:"multiple",className:" fflex-1 foverflow-hidden"})},ndt=e=>{let{customComponent:t,...n}=e;return t?Xe.jsx(Ro,{...n,children:Xe.jsx(t,{...n})}):Xe.jsx(Ro,{...n,children:Xe.jsx(uc,{...n})})},n6e=e=>{let{onChange:t,value:n,multiple:r,...o}=e;const[i,a]=q.useState();q.useEffect(()=>{if(n&&typeof n=="string")try{n=JSON.parse(n),t(n);return}catch{}r?Array.isArray(n)&&a(n):(Array.isArray(n)&&(n=n[0]),a(n))},[n]);const s=l=>{Array.isArray(l)||(l=[l]),t&&typeof t=="function"&&t(l)};return Xe.jsx(ZTe,{...o,onChange:s,value:i,multiple:r})},rdt=e=>{let{FetchDeptList:t,...n}=e;return Xe.jsx(n6e,{...n,title:"deptName",request:t})},odt=e=>{let{FetchPostList:t,...n}=e;return Xe.jsx(n6e,{...n,title:"postName",request:t})};e6e.displayName="WithSingleSelect";t6e.displayName="WithMultipleSelect";const idt=q.forwardRef((e,t)=>(q.useImperativeHandle(t,()=>({handleChange:n=>{e==null||e.onChange(n)}}),[]),Xe.jsx(Ro,{...e,children:Xe.jsx(e6e,{...e})}))),adt=q.forwardRef((e,t)=>(q.useImperativeHandle(t,()=>({handleChange:n=>{e==null||e.onChange(n)}}),[]),Xe.jsx(Ro,{...e,children:Xe.jsx(t6e,{...e})}))),sdt=q.forwardRef((e,t)=>{let{value:n,onChange:r,...o}=e;const i=q.useRef(0),a=()=>{i.current++,r(i.current)};return Xe.jsxs(Ro,{...o,children:[Xe.jsxs("div",{ref:t,children:["form-set-value:",n]}),Xe.jsx(qa,{onClick:a,children:"test"})]})});var ldt=function(){},udt=ldt(),Fv=function(e){return e!==udt&&e!==null},cdt=Fv,fdt=Array.prototype.forEach,ddt=Object.create,pdt=function(e,t){var n;for(n in e)t[n]=e[n]},r6e=function(e){var t=ddt(null);return fdt.call(arguments,function(n){cdt(n)&&pdt(Object(n),t)}),t},hdt=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},rP,Yee;function vdt(){return Yee||(Yee=1,rP=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),rP}var gdt=hdt()?Math.sign:vdt(),mdt=gdt,ydt=Math.abs,bdt=Math.floor,Cdt=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:mdt(e)*bdt(ydt(e)))},Edt=Cdt,Sdt=Math.max,Bv=function(e){return Sdt(0,Edt(e))},wdt=Bv,o6e=function(e,t,n){var r;return isNaN(e)?(r=t,r>=0?n&&r?r-1:r:1):e===!1?!1:wdt(e)},hp=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},xdt=Fv,hy=function(e){if(!xdt(e))throw new TypeError("Cannot use null or undefined");return e},Adt=hp,Odt=hy,Ddt=Function.prototype.bind,Xee=Function.prototype.call,Tdt=Object.keys,$dt=Object.prototype.propertyIsEnumerable,Ndt=function(e,t){return function(n,r){var o,i=arguments[2],a=arguments[3];return n=Object(Odt(n)),Adt(r),o=Tdt(n),a&&o.sort(typeof a=="function"?Ddt.call(a,n):void 0),typeof e!="function"&&(e=o[e]),Xee.call(e,o,function(s,l){return $dt.call(n,s)?Xee.call(r,i,n[s],s,n,l):t})}},t6=Ndt("forEach"),kv={},i6e={exports:{}},Pdt=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},oP,qee;function Idt(){return qee||(qee=1,oP=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),oP}var iP,Qee;function Rdt(){if(Qee)return iP;Qee=1;var e=Fv,t=Object.keys;return iP=function(n){return t(e(n)?Object(n):n)},iP}var aP,Zee;function Mdt(){return Zee||(Zee=1,aP=Idt()()?Object.keys:Rdt()),aP}var sP,Jee;function Fdt(){if(Jee)return sP;Jee=1;var e=Mdt(),t=hy,n=Math.max;return sP=function(r,o){var i,a,s=n(arguments.length,2),l;for(r=Object(t(r)),l=function(u){try{r[u]=o[u]}catch(c){i||(i=c)}},a=1;a<s;++a)o=arguments[a],e(o).forEach(l);if(i!==void 0)throw i;return r},sP}var a6e=Pdt()?Object.assign:Fdt(),Bdt=Fv,kdt={function:!0,object:!0},Ldt=function(e){return Bdt(e)&&kdt[typeof e]||!1};(function(e){var t=a6e,n=Ldt,r=Fv,o=Error.captureStackTrace;e.exports=function(i){var a=new Error(i),s=arguments[1],l=arguments[2];return r(l)||n(s)&&(l=s,s=null),r(l)&&t(a,l),r(s)&&(a.code=s),o&&o(a,e.exports),a}})(i6e);var jdt=i6e.exports,pk={exports:{}},lP,ete;function s6e(){if(ete)return lP;ete=1;var e=hy,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols;return lP=function(i,a){var s,l=Object(e(a));if(i=Object(e(i)),r(l).forEach(function(u){try{t(i,u,n(a,u))}catch(c){s=c}}),typeof o=="function"&&o(l).forEach(function(u){try{t(i,u,n(a,u))}catch(c){s=c}}),s!==void 0)throw s;return i},lP}var tte=Bv,l6e=function(e,t){return t},uP,nte,rte,ote;try{Object.defineProperty(l6e,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}l6e.length===1?(uP={configurable:!0,writable:!1,enumerable:!1},nte=Object.defineProperty,pk.exports=function(e,t){return t=tte(t),e.length===t?e:(uP.value=t,nte(e,"length",uP))}):(ote=s6e(),rte=function(){var e=[];return function(t){var n,r=0;if(e[t])return e[t];for(n=[];t--;)n.push("a"+(++r).toString(36));return new Function("fn","return function ("+n.join(", ")+") { return fn.apply(this, arguments); };")}}(),pk.exports=function(e,t){var n;if(t=tte(t),e.length===t)return e;n=rte(t)(e);try{ote(n,e)}catch{}return n});var u6e=pk.exports,c6e={exports:{}},_dt=void 0,f6e=function(e){return e!==_dt&&e!==null},Hdt=f6e,zdt={object:!0,function:!0,undefined:!0},Vdt=function(e){return Hdt(e)?hasOwnProperty.call(zdt,typeof e):!1},Udt=Vdt,Wdt=function(e){if(!Udt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},Kdt=Wdt,Gdt=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!Kdt(e)},Ydt=Gdt,Xdt=/^\s*class[\s{/}]/,qdt=Function.prototype.toString,Qdt=function(e){return!(!Ydt(e)||Xdt.test(qdt.call(e)))},cP="razdwatrzy",Zdt=function(){return typeof cP.contains!="function"?!1:cP.contains("dwa")===!0&&cP.contains("foo")===!1},fP,ite;function Jdt(){if(ite)return fP;ite=1;var e=String.prototype.indexOf;return fP=function(t){return e.call(this,t,arguments[1])>-1},fP}var ept=Zdt()?String.prototype.contains:Jdt(),uO=f6e,ate=Qdt,d6e=a6e,p6e=r6e,$C=ept,tpt=c6e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||typeof e!="string"?(i=t,t=e,e=null):i=arguments[2],uO(e)?(n=$C.call(e,"c"),r=$C.call(e,"e"),o=$C.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?d6e(p6e(i),a):a};tpt.gs=function(e,t,n){var r,o,i,a;return typeof e!="string"?(i=n,n=t,t=e,e=null):i=arguments[3],uO(t)?ate(t)?uO(n)?ate(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,uO(e)?(r=$C.call(e,"c"),o=$C.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?d6e(p6e(i),a):a};var Lv=c6e.exports,hk={exports:{}};(function(e,t){var n=Lv,r=hp,o=Function.prototype.apply,i=Function.prototype.call,a=Object.create,s=Object.defineProperty,l=Object.defineProperties,u=Object.prototype.hasOwnProperty,c={configurable:!0,enumerable:!1,writable:!0},f,d,p,g,m,h,y;f=function(v,b){var C;return r(b),u.call(this,"__ee__")?C=this.__ee__:(C=c.value=a(null),s(this,"__ee__",c),c.value=null),C[v]?typeof C[v]=="object"?C[v].push(b):C[v]=[C[v],b]:C[v]=b,this},d=function(v,b){var C,E;return r(b),E=this,f.call(this,v,C=function(){p.call(E,v,C),o.call(b,this,arguments)}),C.__eeOnceListener__=b,this},p=function(v,b){var C,E,S,w;if(r(b),!u.call(this,"__ee__"))return this;if(C=this.__ee__,!C[v])return this;if(E=C[v],typeof E=="object")for(w=0;S=E[w];++w)(S===b||S.__eeOnceListener__===b)&&(E.length===2?C[v]=E[w?0:1]:E.splice(w,1));else(E===b||E.__eeOnceListener__===b)&&delete C[v];return this},g=function(v){var b,C,E,S,w;if(u.call(this,"__ee__")&&(S=this.__ee__[v],!!S))if(typeof S=="object"){for(C=arguments.length,w=new Array(C-1),b=1;b<C;++b)w[b-1]=arguments[b];for(S=S.slice(),b=0;E=S[b];++b)o.call(E,this,w)}else switch(arguments.length){case 1:i.call(S,this);break;case 2:i.call(S,this,arguments[1]);break;case 3:i.call(S,this,arguments[1],arguments[2]);break;default:for(C=arguments.length,w=new Array(C-1),b=1;b<C;++b)w[b-1]=arguments[b];o.call(S,this,w)}},m={on:f,once:d,off:p,emit:g},h={on:n(f),once:n(d),off:n(p),emit:n(g)},y=l({},h),e.exports=t=function(v){return v==null?a(y):l(Object(v),h)},t.methods=m})(hk,hk.exports);var npt=hk.exports,dP,ste;function rpt(){return ste||(ste=1,dP=function(){var e=Array.from,t,n;return typeof e!="function"?!1:(t=["raz","dwa"],n=e(t),!!(n&&n!==t&&n[1]==="dwa"))}),dP}var pP,lte;function opt(){return lte||(lte=1,pP=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),pP}var hP,ute;function ipt(){if(ute)return hP;ute=1;var e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};return hP=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}(),hP}var vP,cte;function n6(){return cte||(cte=1,vP=opt()()?globalThis:ipt()),vP}var gP,fte;function apt(){if(fte)return gP;fte=1;var e=n6(),t={object:!0,symbol:!0};return gP=function(){var n=e.Symbol,r;if(typeof n!="function")return!1;r=n("test symbol");try{String(r)}catch{return!1}return!(!t[typeof n.iterator]||!t[typeof n.toPrimitive]||!t[typeof n.toStringTag])},gP}var mP,dte;function spt(){return dte||(dte=1,mP=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}),mP}var yP,pte;function h6e(){if(pte)return yP;pte=1;var e=spt();return yP=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t},yP}var bP,hte;function lpt(){if(hte)return bP;hte=1;var e=Lv,t=Object.create,n=Object.defineProperty,r=Object.prototype,o=t(null);return bP=function(i){for(var a=0,s,l;o[i+(a||"")];)++a;return i+=a||"",o[i]=!0,s="@@"+i,n(r,s,e.gs(null,function(u){l||(l=!0,n(this,s,e(u)),l=!1)})),s},bP}var CP,vte;function upt(){if(vte)return CP;vte=1;var e=Lv,t=n6().Symbol;return CP=function(n){return Object.defineProperties(n,{hasInstance:e("",t&&t.hasInstance||n("hasInstance")),isConcatSpreadable:e("",t&&t.isConcatSpreadable||n("isConcatSpreadable")),iterator:e("",t&&t.iterator||n("iterator")),match:e("",t&&t.match||n("match")),replace:e("",t&&t.replace||n("replace")),search:e("",t&&t.search||n("search")),species:e("",t&&t.species||n("species")),split:e("",t&&t.split||n("split")),toPrimitive:e("",t&&t.toPrimitive||n("toPrimitive")),toStringTag:e("",t&&t.toStringTag||n("toStringTag")),unscopables:e("",t&&t.unscopables||n("unscopables"))})},CP}var EP,gte;function cpt(){if(gte)return EP;gte=1;var e=Lv,t=h6e(),n=Object.create(null);return EP=function(r){return Object.defineProperties(r,{for:e(function(o){return n[o]?n[o]:n[o]=r(String(o))}),keyFor:e(function(o){var i;t(o);for(i in n)if(n[i]===o)return i})})},EP}var SP,mte;function fpt(){if(mte)return SP;mte=1;var e=Lv,t=h6e(),n=n6().Symbol,r=lpt(),o=upt(),i=cpt(),a=Object.create,s=Object.defineProperties,l=Object.defineProperty,u,c,f;if(typeof n=="function")try{String(n()),f=!0}catch{}else n=null;return c=function(p){if(this instanceof c)throw new TypeError("Symbol is not a constructor");return u(p)},SP=u=function d(p){var g;if(this instanceof d)throw new TypeError("Symbol is not a constructor");return f?n(p):(g=a(c.prototype),p=p===void 0?"":String(p),s(g,{__description__:e("",p),__name__:e("",r(p))}))},o(u),i(u),s(c.prototype,{constructor:e(u),toString:e("",function(){return this.__name__})}),s(u.prototype,{toString:e(function(){return"Symbol ("+t(this).__description__+")"}),valueOf:e(function(){return t(this)})}),l(u.prototype,u.toPrimitive,e("",function(){var d=t(this);return typeof d=="symbol"?d:d.toString()})),l(u.prototype,u.toStringTag,e("c","Symbol")),l(c.prototype,u.toStringTag,e("c",u.prototype[u.toStringTag])),l(c.prototype,u.toPrimitive,e("c",u.prototype[u.toPrimitive])),SP}var wP,yte;function dpt(){return yte||(yte=1,wP=apt()()?n6().Symbol:fpt()),wP}var xP,bte;function ppt(){if(bte)return xP;bte=1;var e=Object.prototype.toString,t=e.call(function(){return arguments}());return xP=function(n){return e.call(n)===t},xP}var AP,Cte;function hpt(){if(Cte)return AP;Cte=1;var e=Object.prototype.toString,t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return AP=function(n){return typeof n=="function"&&t(e.call(n))},AP}var OP,Ete;function vpt(){if(Ete)return OP;Ete=1;var e=Object.prototype.toString,t=e.call("");return OP=function(n){return typeof n=="string"||n&&typeof n=="object"&&(n instanceof String||e.call(n)===t)||!1},OP}var DP,Ste;function gpt(){if(Ste)return DP;Ste=1;var e=dpt().iterator,t=ppt(),n=hpt(),r=Bv,o=hp,i=hy,a=Fv,s=vpt(),l=Array.isArray,u=Function.prototype.call,c={configurable:!0,enumerable:!0,writable:!0,value:null},f=Object.defineProperty;return DP=function(d){var p=arguments[1],g=arguments[2],m,h,y,v,b,C,E,S,w,x;if(d=Object(i(d)),a(p)&&o(p),!this||this===Array||!n(this)){if(!p){if(t(d))return b=d.length,b!==1?Array.apply(null,d):(v=new Array(1),v[0]=d[0],v);if(l(d)){for(v=new Array(b=d.length),h=0;h<b;++h)v[h]=d[h];return v}}v=[]}else m=this;if(!l(d)){if((w=d[e])!==void 0){for(E=o(w).call(d),m&&(v=new m),S=E.next(),h=0;!S.done;)x=p?u.call(p,g,S.value,h):S.value,m?(c.value=x,f(v,h,c)):v[h]=x,S=E.next(),++h;b=h}else if(s(d)){for(b=d.length,m&&(v=new m),h=0,y=0;h<b;++h)x=d[h],h+1<b&&(C=x.charCodeAt(0),C>=55296&&C<=56319&&(x+=d[++h])),x=p?u.call(p,g,x,y):x,m?(c.value=x,f(v,y,c)):v[y]=x,++y;b=y}}if(b===void 0)for(b=r(d.length),m&&(v=new m(b)),h=0;h<b;++h)x=p?u.call(p,g,d[h],h):d[h],m?(c.value=x,f(v,h,c)):v[h]=x;return m&&(c.value=null,v.length=b),v},DP}var TP,wte;function wV(){return wte||(wte=1,TP=rpt()()?Array.from:gpt()),TP}var mpt=wV(),ypt=Array.isArray,bpt=function(e){return ypt(e)?e:mpt(e)},Cpt=bpt,Ept=Fv,Spt=hp,wpt=Array.prototype.slice,v6e;v6e=function(e){return this.map(function(t,n){return t?t(e[n]):e[n]}).concat(wpt.call(e,this.length))};var xpt=function(e){return e=Cpt(e),e.forEach(function(t){Ept(t)&&Spt(t)}),v6e.bind(e)},Sx=hp,Apt=function(e){var t;return typeof e=="function"?{set:e,get:e}:(t={get:Sx(e.get)},e.set!==void 0?(t.set=Sx(e.set),e.delete&&(t.delete=Sx(e.delete)),e.clear&&(t.clear=Sx(e.clear)),t):(t.set=t.get,t))},wx=jdt,xx=u6e,D1=Lv,g6e=npt.methods,Opt=xpt,Dpt=Apt,$P=Function.prototype.apply,NP=Function.prototype.call,xte=Object.create,Tpt=Object.defineProperties,$pt=g6e.on,Npt=g6e.emit,Ppt=function(e,t,n){var r=xte(null),o,i,a,s,l,u,c,f,d,p,g,m,h,y,v;return t!==!1?i=t:isNaN(e.length)?i=1:i=e.length,n.normalizer&&(p=Dpt(n.normalizer),a=p.get,s=p.set,l=p.delete,u=p.clear),n.resolvers!=null&&(v=Opt(n.resolvers)),a?y=xx(function(b){var C,E,S=arguments;if(v&&(S=v(S)),C=a(S),C!==null&&hasOwnProperty.call(r,C))return g&&o.emit("get",C,S,this),r[C];if(S.length===1?E=NP.call(e,this,S[0]):E=$P.call(e,this,S),C===null){if(C=a(S),C!==null)throw wx("Circular invocation","CIRCULAR_INVOCATION");C=s(S)}else if(hasOwnProperty.call(r,C))throw wx("Circular invocation","CIRCULAR_INVOCATION");return r[C]=E,m&&o.emit("set",C,null,E),E},i):t===0?y=function(){var b;if(hasOwnProperty.call(r,"data"))return g&&o.emit("get","data",arguments,this),r.data;if(arguments.length?b=$P.call(e,this,arguments):b=NP.call(e,this),hasOwnProperty.call(r,"data"))throw wx("Circular invocation","CIRCULAR_INVOCATION");return r.data=b,m&&o.emit("set","data",null,b),b}:y=function(b){var C,E=arguments,S;if(v&&(E=v(arguments)),S=String(E[0]),hasOwnProperty.call(r,S))return g&&o.emit("get",S,E,this),r[S];if(E.length===1?C=NP.call(e,this,E[0]):C=$P.call(e,this,E),hasOwnProperty.call(r,S))throw wx("Circular invocation","CIRCULAR_INVOCATION");return r[S]=C,m&&o.emit("set",S,null,C),C},o={original:e,memoized:y,profileName:n.profileName,get:function(b){return v&&(b=v(b)),a?a(b):String(b[0])},has:function(b){return hasOwnProperty.call(r,b)},delete:function(b){var C;hasOwnProperty.call(r,b)&&(l&&l(b),C=r[b],delete r[b],h&&o.emit("delete",b,C))},clear:function(){var b=r;u&&u(),r=xte(null),o.emit("clear",b)},on:function(b,C){return b==="get"?g=!0:b==="set"?m=!0:b==="delete"&&(h=!0),$pt.call(this,b,C)},emit:Npt,updateEnv:function(){e=o.original}},a?c=xx(function(b){var C,E=arguments;v&&(E=v(E)),C=a(E),C!==null&&o.delete(C)},i):t===0?c=function(){return o.delete("data")}:c=function(b){return v&&(b=v(arguments)[0]),o.delete(b)},f=xx(function(){var b,C=arguments;return t===0?r.data:(v&&(C=v(C)),a?b=a(C):b=String(C[0]),r[b])}),d=xx(function(){var b,C=arguments;return t===0?o.has("data"):(v&&(C=v(C)),a?b=a(C):b=String(C[0]),b===null?!1:o.has(b))}),Tpt(y,{__memoized__:D1(!0),delete:D1(c),clear:D1(o.clear),_get:D1(f),_has:D1(d)}),o},Ipt=hp,Rpt=t6,Ate=kv,Mpt=Ppt,Fpt=o6e,Bpt=function e(t){var n,r,o;if(Ipt(t),n=Object(arguments[1]),n.async&&n.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!n.force?t:(r=Fpt(n.length,t.length,n.async&&Ate.async),o=Mpt(t,r,n),Rpt(Ate,function(i,a){n[a]&&i(n[a],o,n)}),e.__profiler__&&e.__profiler__(o),o.updateEnv(),o.memoized)},PP,Ote;function kpt(){return Ote||(Ote=1,PP=function(e){var t,n,r=e.length;if(!r)return"";for(t=String(e[n=0]);--r;)t+=""+e[++n];return t}),PP}var IP,Dte;function Lpt(){return Dte||(Dte=1,IP=function(e){return e?function(t){for(var n=String(t[0]),r=0,o=e;--o;)n+=""+t[++r];return n}:function(){return""}}),IP}var RP,Tte;function jpt(){return Tte||(Tte=1,RP=function(){var e=Number.isNaN;return typeof e!="function"?!1:!e({})&&e(NaN)&&!e(34)}),RP}var MP,$te;function _pt(){return $te||($te=1,MP=function(e){return e!==e}),MP}var FP,Nte;function Hpt(){return Nte||(Nte=1,FP=jpt()()?Number.isNaN:_pt()),FP}var BP,Pte;function xV(){if(Pte)return BP;Pte=1;var e=Hpt(),t=Bv,n=hy,r=Array.prototype.indexOf,o=Object.prototype.hasOwnProperty,i=Math.abs,a=Math.floor;return BP=function(s){var l,u,c,f;if(!e(s))return r.apply(this,arguments);for(u=t(n(this).length),c=arguments[1],isNaN(c)?c=0:c>=0?c=a(c):c=t(this.length)-a(i(c)),l=c;l<u;++l)if(o.call(this,l)&&(f=this[l],e(f)))return l;return-1},BP}var kP,Ite;function zpt(){if(Ite)return kP;Ite=1;var e=xV(),t=Object.create;return kP=function(){var n=0,r=[],o=t(null);return{get:function(i){var a=0,s=r,l,u=i.length;if(u===0)return s[u]||null;if(s=s[u]){for(;a<u-1;){if(l=e.call(s[0],i[a]),l===-1)return null;s=s[1][l],++a}return l=e.call(s[0],i[a]),l===-1?null:s[1][l]||null}return null},set:function(i){var a=0,s=r,l,u=i.length;if(u===0)s[u]=++n;else{for(s[u]||(s[u]=[[],[]]),s=s[u];a<u-1;)l=e.call(s[0],i[a]),l===-1&&(l=s[0].push(i[a])-1,s[1].push([[],[]])),s=s[1][l],++a;l=e.call(s[0],i[a]),l===-1&&(l=s[0].push(i[a])-1),s[1][l]=++n}return o[n]=i,n},delete:function(i){var a=0,s=r,l,u=o[i],c=u.length,f=[];if(c===0)delete s[c];else if(s=s[c]){for(;a<c-1;){if(l=e.call(s[0],u[a]),l===-1)return;f.push(s,l),s=s[1][l],++a}if(l=e.call(s[0],u[a]),l===-1)return;for(i=s[1][l],s[0].splice(l,1),s[1].splice(l,1);!s[0].length&&f.length;)l=f.pop(),s=f.pop(),s[0].splice(l,1),s[1].splice(l,1)}delete o[i]},clear:function(){r=[],o=t(null)}}},kP}var LP,Rte;function Vpt(){if(Rte)return LP;Rte=1;var e=xV();return LP=function(){var t=0,n=[],r=[];return{get:function(o){var i=e.call(n,o[0]);return i===-1?null:r[i]},set:function(o){return n.push(o[0]),r.push(++t),t},delete:function(o){var i=e.call(r,o);i!==-1&&(n.splice(i,1),r.splice(i,1))},clear:function(){n=[],r=[]}}},LP}var jP,Mte;function Upt(){if(Mte)return jP;Mte=1;var e=xV(),t=Object.create;return jP=function(n){var r=0,o=[[],[]],i=t(null);return{get:function(a){for(var s=0,l=o,u;s<n-1;){if(u=e.call(l[0],a[s]),u===-1)return null;l=l[1][u],++s}return u=e.call(l[0],a[s]),u===-1?null:l[1][u]||null},set:function(a){for(var s=0,l=o,u;s<n-1;)u=e.call(l[0],a[s]),u===-1&&(u=l[0].push(a[s])-1,l[1].push([[],[]])),l=l[1][u],++s;return u=e.call(l[0],a[s]),u===-1&&(u=l[0].push(a[s])-1),l[1][u]=++r,i[r]=a,r},delete:function(a){for(var s=0,l=o,u,c=[],f=i[a];s<n-1;){if(u=e.call(l[0],f[s]),u===-1)return;c.push(l,u),l=l[1][u],++s}if(u=e.call(l[0],f[s]),u!==-1){for(a=l[1][u],l[0].splice(u,1),l[1].splice(u,1);!l[0].length&&c.length;)u=c.pop(),l=c.pop(),l[0].splice(u,1),l[1].splice(u,1);delete i[a]}},clear:function(){o=[[],[]],i=t(null)}}},jP}var Fte={},_P,Bte;function m6e(){if(Bte)return _P;Bte=1;var e=hp,t=t6,n=Function.prototype.call;return _P=function(r,o){var i={},a=arguments[2];return e(o),t(r,function(s,l,u,c){i[l]=n.call(o,a,s,l,u,c)}),i},_P}var HP,kte;function AV(){if(kte)return HP;kte=1;var e=function(n){if(typeof n!="function")throw new TypeError(n+" is not a function");return n},t=function(n){var r=document.createTextNode(""),o,i,a=0;return new n(function(){var s;if(o)i&&(o=i.concat(o));else{if(!i)return;o=i}if(i=o,o=null,typeof i=="function"){s=i,i=null,s();return}for(r.data=a=++a%2;i;)s=i.shift(),i.length||(i=null),s()}).observe(r,{characterData:!0}),function(s){if(e(s),o){typeof o=="function"?o=[o,s]:o.push(s);return}o=s,r.data=a=++a%2}};return HP=function(){if(typeof process=="object"&&process&&typeof process.nextTick=="function")return process.nextTick;if(typeof queueMicrotask=="function")return function(n){queueMicrotask(e(n))};if(typeof document=="object"&&document){if(typeof MutationObserver=="function")return t(MutationObserver);if(typeof WebKitMutationObserver=="function")return t(WebKitMutationObserver)}return typeof setImmediate=="function"?function(n){setImmediate(e(n))}:typeof setTimeout=="function"||typeof setTimeout=="object"?function(n){setTimeout(e(n),0)}:null}(),HP}var Lte;function Wpt(){if(Lte)return Fte;Lte=1;var e=wV(),t=m6e(),n=s6e(),r=u6e,o=AV(),i=Array.prototype.slice,a=Function.prototype.apply,s=Object.create;return kv.async=function(l,u){var c=s(null),f=s(null),d=u.memoized,p=u.original,g,m,h;u.memoized=r(function(y){var v=arguments,b=v[v.length-1];return typeof b=="function"&&(g=b,v=i.call(v,0,-1)),d.apply(m=this,h=v)},d);try{n(u.memoized,d)}catch{}u.on("get",function(y){var v,b,C;if(g){if(c[y]){typeof c[y]=="function"?c[y]=[c[y],g]:c[y].push(g),g=null;return}v=g,b=m,C=h,g=m=h=null,o(function(){var E;hasOwnProperty.call(f,y)?(E=f[y],u.emit("getasync",y,C,b),a.call(v,E.context,E.args)):(g=v,m=b,h=C,d.apply(b,C))})}}),u.original=function(){var y,v,b,C;return g?(y=e(arguments),v=function E(S){var w,x,O=E.id;if(O==null){o(a.bind(E,this,arguments));return}if(delete E.id,w=c[O],delete c[O],!!w)return x=e(arguments),u.has(O)&&(S?u.delete(O):(f[O]={context:this,args:x},u.emit("setasync",O,typeof w=="function"?1:w.length))),typeof w=="function"?C=a.call(w,this,x):w.forEach(function(T){C=a.call(T,this,x)},this),C},b=g,g=m=h=null,y.push(v),C=a.call(p,this,y),v.cb=b,g=v,C):a.call(p,this,arguments)},u.on("set",function(y){if(!g){u.delete(y);return}c[y]?typeof c[y]=="function"?c[y]=[c[y],g.cb]:c[y].push(g.cb):c[y]=g.cb,delete g.cb,g.id=y,g=null}),u.on("delete",function(y){var v;hasOwnProperty.call(c,y)||f[y]&&(v=f[y],delete f[y],u.emit("deleteasync",y,i.call(v.args,1)))}),u.on("clear",function(){var y=f;f=s(null),u.emit("clearasync",t(y,function(v){return i.call(v.args,1)}))})},Fte}var jte={},zP,_te;function Kpt(){if(_te)return zP;_te=1;var e=Array.prototype.forEach,t=Object.create;return zP=function(n){var r=t(null);return e.call(arguments,function(o){r[o]=!0}),r},zP}var VP,Hte;function y6e(){return Hte||(Hte=1,VP=function(e){return typeof e=="function"}),VP}var UP,zte;function Gpt(){if(zte)return UP;zte=1;var e=y6e();return UP=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{throw new TypeError("Passed argument cannot be stringifed")}},UP}var WP,Vte;function Ypt(){if(Vte)return WP;Vte=1;var e=hy,t=Gpt();return WP=function(n){return t(e(n))},WP}var KP,Ute;function Xpt(){if(Ute)return KP;Ute=1;var e=y6e();return KP=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{return"<Non-coercible to string value>"}},KP}var GP,Wte;function qpt(){if(Wte)return GP;Wte=1;var e=Xpt(),t=/[\n\r\u2028\u2029]/g;return GP=function(n){var r=e(n);return r.length>100&&(r=r.slice(0,99)+"…"),r=r.replace(t,function(o){return JSON.stringify(o).slice(1,-1)}),r},GP}var Ax={exports:{}},Kte;function b6e(){if(Kte)return Ax.exports;Kte=1,Ax.exports=e,Ax.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return Ax.exports}var Gte;function Qpt(){if(Gte)return jte;Gte=1;var e=m6e(),t=Kpt(),n=Ypt(),r=qpt(),o=b6e(),i=AV(),a=Object.create,s=t("then","then:finally","done","done:finally");return kv.promise=function(l,u){var c=a(null),f=a(null),d=a(null);if(l===!0)l=null;else if(l=n(l),!s[l])throw new TypeError("'"+r(l)+"' is not valid promise mode");u.on("set",function(p,g,m){var h=!1;if(!o(m)){f[p]=m,u.emit("setasync",p,1);return}c[p]=1,d[p]=m;var y=function(E){var S=c[p];if(h)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)
|
424
424
|
Consider to rely on 'then' or 'done' mode instead.`);S&&(delete c[p],f[p]=E,u.emit("setasync",p,S))},v=function(){h=!0,c[p]&&(delete c[p],delete d[p],u.delete(p))},b=l;if(b||(b="then"),b==="then"){var C=function(){i(v)};m=m.then(function(E){i(y.bind(this,E))},C),typeof m.finally=="function"&&m.finally(C)}else if(b==="done"){if(typeof m.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");m.done(y,v)}else if(b==="done:finally"){if(typeof m.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof m.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");m.done(y),m.finally(v)}}),u.on("get",function(p,g,m){var h;if(c[p]){++c[p];return}h=d[p];var y=function(){u.emit("getasync",p,g,m)};o(h)?typeof h.done=="function"?h.done(y):h.then(function(){i(y)}):y()}),u.on("delete",function(p){if(delete d[p],c[p]){delete c[p];return}if(hasOwnProperty.call(f,p)){var g=f[p];delete f[p],u.emit("deleteasync",p,[g])}}),u.on("clear",function(){var p=f;f=a(null),c=a(null),d=a(null),u.emit("clearasync",e(p,function(g){return[g]}))})},jte}var Yte={},Xte;function Zpt(){if(Xte)return Yte;Xte=1;var e=hp,t=t6,n=kv,r=Function.prototype.apply;return n.dispose=function(o,i,a){var s;if(e(o),a.async&&n.async||a.promise&&n.promise){i.on("deleteasync",s=function(l,u){r.call(o,null,u)}),i.on("clearasync",function(l){t(l,function(u,c){s(c,u)})});return}i.on("delete",s=function(l,u){o(u)}),i.on("clear",function(l){t(l,function(u,c){s(c,u)})})},Yte}var qte={},YP,Qte;function Jpt(){return Qte||(Qte=1,YP=2147483647),YP}var XP,Zte;function eht(){if(Zte)return XP;Zte=1;var e=Bv,t=Jpt();return XP=function(n){if(n=e(n),n>t)throw new TypeError(n+" exceeds maximum possible timeout");return n},XP}var Jte;function tht(){if(Jte)return qte;Jte=1;var e=wV(),t=t6,n=AV(),r=b6e(),o=eht(),i=kv,a=Function.prototype,s=Math.max,l=Math.min,u=Object.create;return i.maxAge=function(c,f,d){var p,g,m,h;c=o(c),c&&(p=u(null),g=d.async&&i.async||d.promise&&i.promise?"async":"",f.on("set"+g,function(y){p[y]=setTimeout(function(){f.delete(y)},c),typeof p[y].unref=="function"&&p[y].unref(),h&&(h[y]&&h[y]!=="nextTick"&&clearTimeout(h[y]),h[y]=setTimeout(function(){delete h[y]},m),typeof h[y].unref=="function"&&h[y].unref())}),f.on("delete"+g,function(y){clearTimeout(p[y]),delete p[y],h&&(h[y]!=="nextTick"&&clearTimeout(h[y]),delete h[y])}),d.preFetch&&(d.preFetch===!0||isNaN(d.preFetch)?m=.333:m=s(l(Number(d.preFetch),1),0),m&&(h={},m=(1-m)*c,f.on("get"+g,function(y,v,b){h[y]||(h[y]="nextTick",n(function(){var C;h[y]==="nextTick"&&(delete h[y],f.delete(y),d.async&&(v=e(v),v.push(a)),C=f.memoized.apply(b,v),d.promise&&r(C)&&(typeof C.done=="function"?C.done(a,a):C.then(a,a)))}))}))),f.on("clear"+g,function(){t(p,function(y){clearTimeout(y)}),p={},h&&(t(h,function(y){y!=="nextTick"&&clearTimeout(y)}),h={})}))},qte}var ene={},qP,tne;function nht(){if(tne)return qP;tne=1;var e=Bv,t=Object.create,n=Object.prototype.hasOwnProperty;return qP=function(r){var o=0,i=1,a=t(null),s=t(null),l=0,u;return r=e(r),{hit:function(c){var f=s[c],d=++l;if(a[d]=c,s[c]=d,!f)return++o,o<=r?void 0:(c=a[i],u(c),c);if(delete a[f],i===f)for(;!n.call(a,++i););},delete:u=function(c){var f=s[c];if(f&&(delete a[f],delete s[c],--o,i===f)){if(!o){l=0,i=1;return}for(;!n.call(a,++i););}},clear:function(){o=0,i=1,a=t(null),s=t(null),l=0}}},qP}var nne;function rht(){if(nne)return ene;nne=1;var e=Bv,t=nht(),n=kv;return n.max=function(r,o,i){var a,s,l;r=e(r),r&&(s=t(r),a=i.async&&n.async||i.promise&&n.promise?"async":"",o.on("set"+a,l=function(u){u=s.hit(u),u!==void 0&&o.delete(u)}),o.on("get"+a,l),o.on("delete"+a,s.delete),o.on("clear"+a,s.clear))},ene}var rne={},one;function oht(){if(one)return rne;one=1;var e=Lv,t=kv,n=Object.create,r=Object.defineProperties;return t.refCounter=function(o,i,a){var s,l;s=n(null),l=a.async&&t.async||a.promise&&t.promise?"async":"",i.on("set"+l,function(u,c){s[u]=c||1}),i.on("get"+l,function(u){++s[u]}),i.on("delete"+l,function(u){delete s[u]}),i.on("clear"+l,function(){s={}}),r(i.memoized,{deleteRef:e(function(){var u=i.get(arguments);return u===null||!s[u]?null:--s[u]?!1:(i.delete(u),!0)}),getRefCount:e(function(){var u=i.get(arguments);return u===null||!s[u]?0:s[u]})})},rne}var iht=r6e,aht=o6e,sht=Bpt,lht=function(e){var t=iht(arguments[1]),n;return t.normalizer||(n=t.length=aht(t.length,e.length,t.async),n!==0&&(t.primitive?n===!1?t.normalizer=kpt():n>1&&(t.normalizer=Lpt()(n)):n===!1?t.normalizer=zpt()():n===1?t.normalizer=Vpt()():t.normalizer=Upt()(n))),t.async&&Wpt(),t.promise&&Qpt(),t.dispose&&Zpt(),t.maxAge&&tht(),t.max&&rht(),t.refCounter&&oht(),sht(e,t)};const uht=pa(lht),vk=uht(e=>{let t="",n="";try{n=`return ${e.join("")}`,console.log("funcCode",n),t=new Function(n)(),typeof t=="object"&&t!==null||(t=t.toString())}catch(r){console.error(`formula (${n}) error`,r)}return t},{primitive:!0,max:1e3,maxAge:1e3*60*1}),cht="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let wa=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=cht[n[e]&63];return t};var C6e={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function i(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new o(c,f||l,d),g=n?n+u:u;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],p]:l._events[g].push(p):(l._events[g]=p,l._eventsCount++),l}function a(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=n?n+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,p=f.length,g=new Array(p);d<p;d++)g[d]=f[d].fn;return g},s.prototype.listenerCount=function(u){var c=n?n+u:u,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,c,f,d,p,g){var m=n?n+u:u;if(!this._events[m])return!1;var h=this._events[m],y=arguments.length,v,b;if(h.fn){switch(h.once&&this.removeListener(u,h.fn,void 0,!0),y){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,c),!0;case 3:return h.fn.call(h.context,c,f),!0;case 4:return h.fn.call(h.context,c,f,d),!0;case 5:return h.fn.call(h.context,c,f,d,p),!0;case 6:return h.fn.call(h.context,c,f,d,p,g),!0}for(b=1,v=new Array(y-1);b<y;b++)v[b-1]=arguments[b];h.fn.apply(h.context,v)}else{var C=h.length,E;for(b=0;b<C;b++)switch(h[b].once&&this.removeListener(u,h[b].fn,void 0,!0),y){case 1:h[b].fn.call(h[b].context);break;case 2:h[b].fn.call(h[b].context,c);break;case 3:h[b].fn.call(h[b].context,c,f);break;case 4:h[b].fn.call(h[b].context,c,f,d);break;default:if(!v)for(E=1,v=new Array(y-1);E<y;E++)v[E-1]=arguments[E];h[b].fn.apply(h[b].context,v)}}return!0},s.prototype.on=function(u,c,f){return i(this,u,c,f,!1)},s.prototype.once=function(u,c,f){return i(this,u,c,f,!0)},s.prototype.removeListener=function(u,c,f,d){var p=n?n+u:u;if(!this._events[p])return this;if(!c)return a(this,p),this;var g=this._events[p];if(g.fn)g.fn===c&&(!d||g.once)&&(!f||g.context===f)&&a(this,p);else{for(var m=0,h=[],y=g.length;m<y;m++)(g[m].fn!==c||d&&!g[m].once||f&&g[m].context!==f)&&h.push(g[m]);h.length?this._events[p]=h.length===1?h[0]:h:a(this,p)}return this},s.prototype.removeAllListeners=function(u){var c;return u?(c=n?n+u:u,this._events[c]&&a(this,c)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(C6e);var fht=C6e.exports;const dht=pa(fht),gk=new dht,pht=e=>{let{children:t,layout:n,onTableAddRow:r,onTableRemoveRow:o,form:i,initializeFormRender:a,recordFieldsChange:s,mode:l,getTableWithIds:u,removeLastFieldsValues:c,getDependencyMapItem:f,renderKey:d}=e;n=n||"1";const p=v=>{const b=v.split(",").map(Number),C=24;return b.map(E=>E/b.reduce((S,w)=>S+w)*C)},g=q.useMemo(()=>p(n),[n]),m=v=>{if(typeof f=="function"){const b=f(v);if(b)return b==null?void 0:b.show}return!0},h=q.useRef({}),y=q.useMemo(()=>q.Children.toArray(t).map((v,b)=>{var C,E;const S=v.props,w=(S==null?void 0:S.componentId)||(S==null?void 0:S.__id),x=w;var O=((C=v.type)===null||C===void 0?void 0:C.displayName)||((E=v.props)===null||E===void 0?void 0:E._componentName);x in h.current||(h.current[x]=wa());const T=((S==null?void 0:S.calcHidden)||!m(x))&&l!="desgin",A=[];if(S!=null&&S.isRequired&&A.push({required:!0,message:`${S.label}必须填写`}),S!=null&&S.rules)if(Array.isArray(S.rules)){const R=S.rules.join("|");A.push({pattern:new RegExp(R),message:S.rulesFailMessage?S.rulesFailMessage:`${S.label}格式错误`})}else A.push({pattern:new RegExp(S.rules),message:S.rulesFailMessage?S.rulesFailMessage:`${S.label}格式错误`});const N=R=>{i.setFieldValue(x,R)};let I=null;return O=="Field.Table"?I=q.cloneElement(v,{onTableAddRow:r,onTableRemoveRow:o,form:i,fieldName:w,initializeFormRender:a,mode:l,recordFieldsChange:s,getTableWithIds:u,removeLastFieldsValues:c,getDependencyMapItem:f,renderKey:d}):O==="Field.WithSingleSelect"||O==="Field.WithMultipleSelect"||O==="Show.WithTable"?I=Xe.jsx(Eo.Item,{hidden:T,style:{margin:0},shouldUpdate:(R,M)=>{let B=!1;if(Array.isArray(S.filterRules)&&S.filterRules.length>0)for(let k of S.filterRules){if(k.valueType!="variable")continue;let V,z;if(V=R==null?void 0:R[k.value.field_key],z=M==null?void 0:M[k.value.field_key],V!==z){B=!0;break}}return B&&(h.current[x]=wa()),B},children:R=>{let{getFieldsValue:M}=R;const B=M();let k=q.cloneElement(v,{onTableAddRow:r,onTableRemoveRow:o,form:i,fieldName:x,onCustomChange:N,fieldsValue:B,initializeFormRender:a,recordFieldsChange:s,getTableWithIds:u,removeLastFieldsValues:c,shouldUpdateKey:h.current[x]});return O==="Show.WithTable"?Xe.jsx(Xe.Fragment,{children:k}):Xe.jsx(Eo.Item,{style:{marginBottom:0},label:"",name:x,rules:A,children:k})}}):q.isValidElement(v)?I=Xe.jsx(Eo.Item,{style:{marginBottom:0},label:"",name:w,rules:A,hidden:T,children:q.cloneElement(v,{form:i,fieldName:w,initializeFormRender:a,recordFieldsChange:s})},`${w}-form-item`):I=v,(g==null?void 0:g[b])&&Xe.jsx(fy,{span:g[b],children:I},b)}),[t,g,d]);return Xe.jsx(Z2,{gutter:24,children:y})},hht=e=>{let{title:t}=e;return t?Xe.jsx("div",{className:"fh-11 fflex fitems-center ftext-lg ffont-medium ",children:Xe.jsx("span",{className:"fborder-l-4 fborder-slate-300 fpl-2 ",children:t})}):null};function vht(e,t,n){const r=[];let o=[];const i=(s,l)=>{const u=s-l.length;u>0&&l.push(...new Array(u).fill(q.createElement("div")))};for(const s of e){var a;const{_componentName:l}=(s==null?void 0:s.props)||{},u=((a=s.type)===null||a===void 0?void 0:a.displayName)||l;u&&u.startsWith("Layout.")?(o.length>0&&(i(t,o),r.push(o),o=[]),r.push([s])):(o.push(s),o.filter(f=>{var d,p,g,m;const h=((d=f.props)===null||d===void 0?void 0:d.componentId)||((p=f.props)===null||p===void 0?void 0:p.__id);return(!n.has(h)||((g=n.get(h))===null||g===void 0?void 0:g.show))&&!(f!=null&&(m=f.props)!==null&&m!==void 0&&m.calcHidden)}).length===t&&(r.push(o),o=[]))}return o.length>0&&(i(t,o),r.push(o)),r}const OV=q.forwardRef((e,t)=>{let{cols:n=1,children:r,mode:o="view"}=e;const[i]=Eo.useForm(),a=q.useRef(null),[s,l]=q.useState(null),u=q.useRef(null),c=()=>{const _=F();Iu.isEqual(a.current,_)||(a.current=_,l(_))},f=q.useRef(0);q.useImperativeHandle(t,()=>({formRef:i,setFieldsValue:_=>{f.current=1;let H={..._,__id:_==null?void 0:_.id};for(let G in _)if(N.current[G]={name:G,value:_[G]},u.current.has(G)&&u.current.get(G).componentName=="Field.Table"&&Array.isArray(_[G]))for(let W=0;W<_[G].length;W++){const K=_[G][W];for(let X in K)N.current[[G,W,X]]={name:[G,W,X],value:K[X]}}i.setFieldsValue(H),R()},initializeFieldVisibility:_=>{v(_)}}),[]);const d=q.useCallback(Iu.throttle(async()=>{await h(),console.log("initializeDependencyMap"),requestAnimationFrame(()=>{c()})},300),[r,n]);q.useEffect(()=>(console.log("UseEffect throttledInitializeFormRender"),d(),()=>{d.cancel()}),[r,n]);const p=()=>{d()},g=q.useRef(null),m=_=>{var H;return(H=g.current)===null||H===void 0?void 0:H[_]},h=async()=>{const _=[];function H(W){var K,X;let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;var te=((K=W.type)===null||K===void 0?void 0:K.displayName)||((X=W.props)===null||X===void 0?void 0:X._componentName);const{props:J}=W;if(te&&(te.startsWith("Field.")||te.startsWith("Layout."))){let Y=(J==null?void 0:J.componentId)||(J==null?void 0:J.__id),Z=[];if(Q&&Q!==null&&Q!==void 0&&Q.props){var oe,ne;Y=`${(Q==null||(oe=Q.props)===null||oe===void 0?void 0:oe.componentId)||(Q==null||(ne=Q.props)===null||ne===void 0?void 0:ne.__id)}.${Y}`}J!=null&&J.withId&&Z.push(J==null?void 0:J.withId),J!=null&&J.withIds&&(Z=[...Z,...J==null?void 0:J.withIds]),_.push({identifier:Y,withIds:Z,component:W,componentName:te,fillRules:J==null?void 0:J.fillRules})}J!=null&&J.children&&q.Children.toArray(J==null?void 0:J.children).forEach(Z=>H(Z,te&&te.startsWith("Field.")?W:null))}u.current=new Map,console.log(" fields",_);const G=q.Children.toArray(r);for(let W=0;W<G.length;W++){const K=G[W];H(K)}_.forEach(W=>{const{identifier:K}=W;u.current.set(K,{children:_.filter(X=>X.withIds.some(Q=>Q==K)),show:!0,...W})}),await y()},y=async function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;console.log("initializeFieldVisibility *************************************");const H=i.getFieldsValue();await Promise.all(Array.from(u.current.keys()).map(async G=>{await b(G,H,!0)})),_&&c()},v=Iu.debounce(async function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;console.log("initializeFieldVisibility begin",_),await y(_)},100),b=async function(_,H){let G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,W=!1,K=[];if(Array.isArray(_)&&(K=[..._.slice(0,-1)],_=_.filter(X=>typeof X=="string").join(".")),u.current.has(_)){const X=u.current.get(_),Q=X.children;!G&&X!==null&&X!==void 0&&X.fillRules&&Array.isArray(X==null?void 0:X.fillRules)&&(X==null?void 0:X.fillRules.length)>0&&w(_,K,H,X==null?void 0:X.fillRules);for(let te=0;te<Q.length;te++){const J=Q[te];if(J.component.props.withVisibleFunc&&typeof J.component.props.withVisibleFunc=="function"){let oe=x(H,J);W=W||oe}if(J.component.props.withVisible){let oe=await O(H,J,K,X==null?void 0:X.componentName);W=W||oe}!G&&J.component.props.withFill&&T(H,J,K,X==null?void 0:X.componentName)}}return W},C=function(_){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(g.current)if(H){const G=Object.keys(g.current);for(let W=0;W<G.length;W++){const K=G[W];K.includes(`${_},`)&&delete g.current[K]}}else delete g.current[_]},E=(_,H)=>{N.current||(N.current={}),N.current[_]=H},S=function(_){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;console.log("recordFieldsChange",_,H);var G=Object.keys(_);G.length>0&&(G.forEach(W=>{E(W,_[W])}),H&&R())},w=(_,H,G,W)=>{let K=A("fieldsValue",_,G,null),X={},Q=[];for(let Y=0;Y<W.length;Y++){const Z=W[Y];let{source:re,target:se}=Z,ie=K==null?void 0:K[re],ce=ie;if((Z==null?void 0:Z.type)==1){if(u.current.has(se)){var te,J,oe;let pe=(te=u.current.get(se))===null||te===void 0||(J=te.component)===null||J===void 0||(oe=J.props)===null||oe===void 0?void 0:oe.children;Array.isArray(pe)&&pe.length>0&&Q.push(pe.map(ge=>{var Ce,Se;return`${re}.${(ge==null||(Ce=ge.props)===null||Ce===void 0?void 0:Ce.componentId)||(ge==null||(Se=ge.props)===null||Se===void 0?void 0:Se.__id)}`}))}if(ie&&typeof ie=="string")try{ie=JSON.parse(ie)}catch(pe){console.error("error end",pe)}if(!Array.isArray(ie))return;ce=ie.map((pe,ge)=>{let Ce={};if(Z!=null&&Z.subRules&&Array.isArray(Z==null?void 0:Z.subRules)&&(Z==null?void 0:Z.subRules.length)>0)for(let Se=0;Se<(Z==null?void 0:Z.subRules.length);Se++){const{source:_e,target:Qe}=Z==null?void 0:Z.subRules[Se];Ce[Qe]=pe==null?void 0:pe[_e];let Ye={name:[se,ge,Qe],value:pe==null?void 0:pe[_e]};X[Ye.name]=Ye}return Ce}),C(se,!0),gk.emit("reloadTable",se)}else{let ye=0;if(H&&Array.isArray(H)&&H.length>1&&(H.filter(pe=>typeof pe=="string").join("."),ye=H[H.length-1],se=[...H,se],Array.isArray(K)&&K.length>ye)){var ne;ce=(ne=K[ye])===null||ne===void 0?void 0:ne[re]}X[se]={name:Array.isArray(se)?se:[se],value:ce}}(Z==null?void 0:Z.type)==1&&i.setFieldValue(se,void 0),i.setFieldValue(se,ce)}setTimeout(()=>{S(X,!0),Q.length>0&&Q.forEach(Y=>{Array.isArray(Y)&&Y.length>0&&k(Y)})},0)},x=(_,H,G)=>{var W,K;let X=!1;const Q=H==null||(W=H.component)===null||W===void 0||(K=W.props)===null||K===void 0?void 0:K.withVisibleFunc(_),te=H==null?void 0:H.identifier;if(u.current.has(te)){const J=u.current.get(te);J.show!==Q&&(J.show=Q,u.current.set(te,J),X=!0)}return X},O=async(_,H,G,W)=>{var K,X;let Q=!1;const te=H==null||(K=H.component)===null||K===void 0?void 0:K.props.withVisible,J=H==null||(X=H.component)===null||X===void 0?void 0:X.props.withDataFetch;let oe=0,ne=H.identifier,Y=[];if(te!=null&&te.withData&&(te==null?void 0:te.withData.length)>0&&J&&typeof J=="function")for(let se=0;se<(te==null?void 0:te.withData.length);se++){const ie=te==null?void 0:te.withData[se];let ce={};ce.tableName=ie.withTable.table_name,ce.filter={};for(let pe=0;pe<ie.withCondition.length;pe++){var Z;const{value:ge,column:Ce}=ie.withCondition[pe];let Se=A(ge.group_key,ge.field_key,_,Y);Array.isArray(Se)&&Array.isArray(ne)&&Se.length>oe&&(Se=Se[oe]),W=="Field.WithSingleSelect"&&Se&&(Z=Se)!==null&&Z!==void 0&&Z.value&&(Se=Se.value),ce.filter[Ce.column_name]=Se}const ye=await J(ce);ye.code===0&&ye.data.list&&Y.push({id:ie.id,data:ye.data.list})}let re;if(te.value&&te.value.length>0&&(re=te.value.map(se=>{let ie="";const{insert:ce,attributes:ye}=se;return typeof ce!="string"?ce!=null&&ce.span&&ye&&ye.tagKey&&ye.id&&(ie=A(ye.tagKey,ye.id,_,Y),Array.isArray(ie)?(Array.isArray(ne)&&ie.length>oe&&(ie=ie[oe]),typeof ie=="object"&&ie!==null&&(ie=JSON.stringify(ie))):typeof ie=="object"&&ie!==null?ie=JSON.stringify(ie):ie.length>0&&(ie=`"${ie}"`)):ie=ce,ie})),u.current.has(ne)){const se=u.current.get(ne);if(re&&re.length>0){const ie=vk(re)=="true";se.show!=ie&&(se.show=ie,u.current.set(ne,se),Q=!0)}}return Q},T=async(_,H,G,W)=>{var K,X;console.log("handleFieldsWithFill componentName",W);const Q=H==null||(K=H.component)===null||K===void 0?void 0:K.props.withFill,te=H==null||(X=H.component)===null||X===void 0?void 0:X.props.withDataFetch;let J=0,oe="",ne=H.identifier;if(G&&Array.isArray(G)&&G.length>1)oe=G.filter(se=>typeof se=="string").join("."),J=G[G.length-1],ne.startsWith(`${oe}.`)&&(ne=[...G,ne.replace(`${oe}.`,"")]);else if(ne.indexOf(".")>=0){ne=ne.split(".");let se=A("fieldsValue",ne[0],_,[]);if(Array.isArray(se)&&se.length>0)for(let ie=0;ie<se.length;ie++)await T(_,H,[ne[0],ie],W);return}let Y=[];if(Q!=null&&Q.withData&&(Q==null?void 0:Q.withData.length)>0&&te&&typeof te=="function")for(let se=0;se<(Q==null?void 0:Q.withData.length);se++){const ie=Q==null?void 0:Q.withData[se];let ce={};ce.tableName=ie.withTable.table_name,ce.filter={};for(let pe=0;pe<ie.withCondition.length;pe++){var Z;const{value:ge,column:Ce}=ie.withCondition[pe];let Se=A(ge.group_key,ge.field_key,_,Y);if(Array.isArray(Se)&&Array.isArray(ne)&&Se.length>J&&(Se=Se[J]),Se&&typeof Se=="string")try{Se=JSON.parse(Se)}catch{}(Z=Se)!==null&&Z!==void 0&&Z.value&&(Se=Se.value),ce.filter[Ce.column_name]=Se}const ye=await te(ce);ye.code===0&&ye.data.list&&Y.push({id:ie.id,data:ye.data.list})}let re;if(Q.value&&Q.value.length>0&&(re=Q.value.map(se=>{let ie="";const{insert:ce,attributes:ye}=se;return typeof ce!="string"?ce!=null&&ce.span&&ye&&ye.tagKey&&ye.id&&(ie=A(ye.tagKey,ye.id,_,Y),Array.isArray(ie)?(Array.isArray(ne)&&ie.length>J&&(ie=ie[J]),typeof ie=="object"&&ie!==null&&(ie=JSON.stringify(ie))):typeof ie=="object"&&ie!==null?ie=JSON.stringify(ie):ie.length>0&&(ie=`"${ie}"`)):ie=ce,ie})),re&&re.length>0){const se=vk(re);console.log(`${ne} 计算公式:`,re),console.log(`${ne} 计算结果:`,se),i.setFieldValue(ne,se),await b(ne,i.getFieldsValue())}},A=(_,H,G,W)=>{let K="";if(_=="fieldsValue"){var X;if(H.indexOf(".")>=0){var Q;const[oe,ne]=H.split("."),Y=(G==null?void 0:G[oe])||[];Array.isArray(Y)?K=Y.map(Z=>{var re;return(re=Z==null?void 0:Z[ne])!==null&&re!==void 0?re:""}):K=(Q=Y==null?void 0:Y[ne])!==null&&Q!==void 0?Q:""}else K=(X=G==null?void 0:G[H])!==null&&X!==void 0?X:""}else{let oe=W.find(ne=>ne.id===_);if(oe&&oe.data&&oe.data.length>0){var te,J;K=(te=(J=oe.data[0])===null||J===void 0?void 0:J[H])!==null&&te!==void 0?te:""}}return K},N=q.useRef({}),I=q.useRef(null),R=q.useCallback(()=>{I.current&&clearTimeout(I.current);const _=f.current===1?500:100;I.current=setTimeout(async()=>{const H=i.getFieldsValue(),G=f.current;f.current=0;let W=!1;g.current||(g.current={});for(let K in N.current){let X=N.current[K];if(!Iu.isEqual(X.value||"",m(X.name)||"")){if(G!=1){let Q=await b(X.name,H);W=W||Q}g.current[X.name]=X.value}}W&&(console.log("needRefresh",W),c()),N.current={}},_)},[]),M=q.useCallback(_=>{_.filter(H=>{H.name&&H.name.length>0&&(N.current[H.name]=H)}),R()},[]),B=_=>{let H=[];return _.forEach(G=>{if(!u.current.has(G))return;let W=u.current.get(G);W.withIds.length<=0||H.push(...W.withIds.filter(K=>!H.includes(K)))}),H=H.filter(G=>{var W=i.getFieldValue(G);return!(typeof W!="number"&&!W)}),H},k=_=>{let H=B(_);const G=i.getFieldsValue();setTimeout(async()=>{for(let W=0;W<H.length;W++){const K=H[W];await b(K,G)}},0)},V=async _=>{const H=i.getFieldsValue();setTimeout(async()=>{for(let G=0;G<_.length;G++){const W=_[G];await b(W,H)}},0)},z=q.useRef({}),L=_=>u.current&&u.current.has(_)?u.current.get(_):null,F=()=>(console.log("memoizedRenderChildren",u.current),u.current?j():null),j=()=>{console.log("renderChildren");const _=wa(),H=q.Children.toArray(r);return console.log("childrenArray",H),vht(H,n,u.current).map((W,K)=>Xe.jsx(Z2,{gutter:[24,24],children:W.map((X,Q)=>{var te,J;const{componentId:oe,__id:ne,_componentName:Y,...Z}=X.props,re=((te=X.type)===null||te===void 0?void 0:te.displayName)||Y,se=oe||ne;se in z.current||(z.current[se]=wa());const ie=re&&re.startsWith("Layout."),ce=re&&re=="Field.Table",ye=!u.current.has(se)||((J=u.current.get(se))===null||J===void 0?void 0:J.show),pe=(Z.calcHidden||!ye)&&o!="desgin",ge=[];if(Z.isRequired&&ge.push({required:!0,message:`${Z.label}必须填写`}),Z.rules)if(Array.isArray(Z.rules)){const _e=Z.rules.join("|");ge.push({pattern:new RegExp(_e),message:Z.rulesFailMessage?Z.rulesFailMessage:`${Z.label}格式错误`})}else ge.push({pattern:new RegExp(Z.rules),message:Z.rulesFailMessage?Z.rulesFailMessage:`${Z.label}格式错误`});const Ce=_e=>{i.setFieldValue(se,_e)};let Se;return ce||ie?Se=q.cloneElement(X,{onTableAddRow:k,getTableWithIds:B,onTableRemoveRow:V,removeLastFieldsValues:C,form:i,fieldName:se,onCustomChange:Ce,initializeFormRender:p,mode:o,recordFieldsChange:S,getDependencyMapItem:L,renderKey:_}):re==="Field.WithSingleSelect"||re==="Field.WithMultipleSelect"||re==="Show.WithTable"?Se=Xe.jsx(Eo.Item,{hidden:pe,style:{margin:0},shouldUpdate:(_e,Qe)=>{let Ye=!1;if(Array.isArray(Z.filterRules)&&Z.filterRules.length>0)for(let He of Z.filterRules){if(He.valueType!="variable")continue;let rt,Be;if(rt=_e==null?void 0:_e[He.value.field_key],Be=Qe==null?void 0:Qe[He.value.field_key],rt!==Be){Ye=!0;break}}return Ye&&(z.current[se]=wa(),console.log(se,wa())),Ye},children:_e=>{let{getFieldsValue:Qe}=_e;const Ye=Qe();let He=q.cloneElement(X,{onTableAddRow:k,onTableRemoveRow:V,removeLastFieldsValues:C,form:i,fieldName:se,onCustomChange:Ce,fieldsValue:Ye,initializeFormRender:p,recordFieldsChange:S,shouldUpdateKey:z.current[se]});return re==="show.WithTable"?Xe.jsx(Xe.Fragment,{children:He}):Xe.jsx(Eo.Item,{style:{marginBottom:0},label:"",name:se,rules:ye?ge:[],children:He})}}):Se=Xe.jsx(Eo.Item,{hidden:pe,style:{marginBottom:0},label:"",name:se,rules:ye?ge:[],children:q.cloneElement(X,{form:i,fieldName:se,onCustomChange:Ce,initializeFormRender:p,recordFieldsChange:S,removeLastFieldsValues:C})}),Xe.jsx(fy,{span:pe?0:ie?24:24/n,style:{marginBottom:0},children:Se},se||`col-${Q}`)})},`row-${K}`))};return Xe.jsx(hu,{theme:{components:{Table:{rowHoverBg:"#ebebeb"}},token:{colorBgContainerDisabled:"rgba(0, 0, 0, 0.02)",colorTextDisabled:"#333"}},children:Xe.jsxs(Eo,{form:i,className:"form-container fp-0 fw-full fh-full box-border fflex fflex-col "+(o=="desgin"?" fp-6":""),onFieldsChange:M,children:[Xe.jsx(Eo.Item,{name:"__id",hidden:!0,children:Xe.jsx("input",{type:"hidden"})}),s]})})});function ght(e){return q.forwardRef((t,n)=>Xe.jsx(e,{...t,ref:n,forwardedRef:n}))}class Stn extends q.PureComponent{render(){const{forwardedRef:t,...n}=this.props;return Xe.jsx(OV,{...n,ref:t})}}const mht=ght(e=>{let{forwardedRef:t,...n}=e;return Xe.jsx(OV,{...n,ref:t})});function yht(e,t,n){const r=[];let o=[];const i=(a,s)=>{for(;s.length<a;)s.push(Xe.jsx("div",{},wa()))};return e.forEach(a=>{var s,l;const u=((s=a.type)===null||s===void 0?void 0:s.displayName)||((l=a.props)===null||l===void 0?void 0:l._componentName);u&&u.startsWith("Layout.")?(o.length>0&&(i(t,o),r.push(o),o=[]),r.push([a])):(o.push(a),o.filter(f=>{var d,p,g,m;const h=((d=f.props)===null||d===void 0?void 0:d.componentId)||((p=f.props)===null||p===void 0?void 0:p.__id);return(!(n!=null&&n.has(h))||((g=n.get(h))===null||g===void 0?void 0:g.show))&&!((m=f.props)!==null&&m!==void 0&&m.calcHidden)}).length===t&&(r.push(o),o=[]))}),o.length>0&&(i(t,o),r.push(o)),r}const bht=e=>{const t=new Map,n=[],r=function(o){var i,a;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const l=((i=o.type)===null||i===void 0?void 0:i.displayName)||((a=o.props)===null||a===void 0?void 0:a._componentName),{props:u}=o;if(l&&(l.startsWith("Field.")||l.startsWith("Layout."))){let c=(u==null?void 0:u.componentId)||(u==null?void 0:u.__id);s&&(c=`${s}.${c}`);const f=u.withId?[u.withId]:u.withIds?[...u.withIds]:[];n.push({identifier:c,withIds:f,compName:l,fillRules:u==null?void 0:u.fillRules,visibleFunc:u==null?void 0:u.withVisibleFunc})}u!=null&&u.children&&q.Children.forEach(u.children,c=>{r(c,l&&l.startsWith("Field.")?(u==null?void 0:u.componentId)||(u==null?void 0:u.__id):"")})};return q.Children.forEach(e,o=>r(o)),n.forEach(o=>{t.set(o.identifier,{...o,show:!0,children:n.filter(i=>i.withIds.includes(o.identifier))})}),t},Cht=function(e,t,n){if(!t.has(e))return!1;const r=t.get(e);if(r.visibleFunc&&typeof r.visibleFunc=="function"){const o=r.visibleFunc(n);if(r.show!==o)return r.show=o,!0}if(r.fillRules&&Array.isArray(r.fillRules)&&r.fillRules.length>0){const o=r.fillRules.map(a=>typeof a=="string"?a:""),i=vk(o)==="true";if(r.show!==i)return r.show=i,!0}return!1},Eht=q.forwardRef((e,t)=>{let{cols:n=1,children:r,mode:o="view"}=e;const[i]=Eo.useForm(),[a,s]=q.useState(null),l=q.useRef(new Map),u=q.useRef({}),c=q.useRef({}),f=q.useCallback(()=>{l.current=bht(r)},[r]),d=q.useCallback(()=>{const h=i.getFieldsValue();let y=!1;l.current.forEach((v,b)=>{const C=Cht(b,l.current,h);y=y||C}),y&&s(m())},[i]),p=q.useCallback(Iu.debounce(()=>{const h=i.getFieldsValue();Object.keys(c.current).forEach(y=>{c.current[y]!==h[y]&&(u.current[y]=h[y])}),c.current={},d()},200),[i,d]),g=function(){for(var h=arguments.length,y=new Array(h),v=0;v<h;v++)y[v]=arguments[v];let[,b]=y;Object.assign(c.current,b),p()},m=q.useCallback(()=>{const h=q.Children.toArray(r);return yht(h,n,l.current).map((v,b)=>Xe.jsx(Z2,{gutter:[24,24],children:v.map((C,E)=>{var S,w;const{componentId:x,__id:O,_componentName:T,calcHidden:A,...N}=C.props,I=((S=C.type)===null||S===void 0?void 0:S.displayName)||T,R=x||O,M=wa(),B=I&&I.startsWith("Layout."),k=!l.current.has(R)||((w=l.current.get(R))===null||w===void 0?void 0:w.show),V=(A||!k)&&o!=="desgin",z=[];if(N.isRequired&&z.push({required:!0,message:`${N.label}必须填写`}),N.rules){const F=Array.isArray(N.rules)&&N.rules.length>0?N.rules.join("|"):N.rules;z.push({pattern:new RegExp(F),message:N.rulesFailMessage||`${N.label}格式错误`})}let L=null;return B?L=q.cloneElement(C,{form:i,fieldName:R,updateKey:M}):L=Xe.jsx(Eo.Item,{hidden:V,label:N.label||"",name:R,rules:k?z:[],children:q.cloneElement(C,{form:i,fieldName:R,updateKey:M})}),Xe.jsx(fy,{span:V?0:B?24:24/n,children:L},R||`col-${E}`)})},`row-${b}`))},[r,n,i,o]);return q.useEffect(()=>{f(),s(m())},[f,m]),q.useImperativeHandle(t,()=>({formRef:i,setFieldsValue:h=>{i.setFieldsValue(h),p()},refreshDependencies:()=>{f(),d()}})),Xe.jsxs(Eo,{form:i,className:`form-container fp-0 fw-full fh-full box-border fflex fflex-col fgap-y-2${o==="desgin"?" fp-6":""}`,onValuesChange:g,children:[Xe.jsx(Eo.Item,{name:"__id",hidden:!0,children:Xe.jsx("input",{type:"hidden"})}),a]})}),Sht=e=>{let{request:t,value:n,onChange:r,callError:o,disabledValue:i,addRoot:a=!0,title:s,...l}=e;const[u,c]=q.useState(!1),[f,d]=q.useState([]);q.useEffect(()=>{p()},[]),q.useEffect(()=>{if(typeof n=="string")try{n=JSON.parse(n),r(n)}catch{}Array.isArray(n)&&y(n)},[n]);const p=async()=>{if(t&&typeof t=="function"){var O;const T=await t();if(T.code>0){o&&typeof o=="function"&&o(T.message);return}let A=QTe(((O=T.data)===null||O===void 0?void 0:O.list)||T.data||[],"id",s||"title",(l==null?void 0:l.parentId)||"parentId","children",0,i);a&&(A=[{value:0,title:"根节点",children:A}]),l.treeData=A,console.log("treeData",A),d(A)}l.treeData&&d(l.treeData),c(!0)},[g,m]=q.useState([]),[h,y]=q.useState([]),[v,b]=q.useState([]),[C,E]=q.useState(!0),S=O=>{console.log("onExpand",O),m(O),E(!1)},w=O=>{console.log("onCheck",O),y(O),r(O)},x=(O,T)=>{console.log("onSelect",T),b(O)};return Xe.jsx(Ro,{...l,children:Xe.jsx(vV,{checkable:!0,onExpand:S,onCheck:w,onSelect:x,expandedKeys:g,autoExpandParent:C,checkedKeys:h,selectedKeys:v,treeData:f})})},wht=e=>Xe.jsx(Ro,{...e,children:Xe.jsx(Q2,{...e})}),xht=e=>Xe.jsx(Ro,{...e,children:Xe.jsx(Q2.Group,{...e})}),Aht=e=>Xe.jsx(Ro,{...e,children:Xe.jsx(HT.Group,{...e})}),E6e=e=>{let{value:t,maxCount:n,multiple:r,onChange:o,...i}=e;q.useEffect(()=>{if(t){if(typeof t=="string")try{t=JSON.parse(t),o(t)}catch{}console.log("value",t),Array.isArray(t)&&s(t)}},[t]),n=n||99,r=r||!0;const[a,s]=q.useState([]),l=u=>{let{fileList:c}=u;console.log("newFileList",c),c=c.map(f=>(f.status=="done"&&f.response&&(f.url=f.response),f)),o(c.map(f=>({uid:f.uid,name:f.name,status:f.status,url:f.url||f.response||"",error:f.error}))),s(c)};return Xe.jsx(QT,{...i,listType:"text",multiple:r,onChange:l,maxCount:n,fileList:a,children:!(i!=null&&i.disabled)&&!(i!=null&&i.readonly)&&a.length<n&&Xe.jsx(qa,{type:(i==null?void 0:i.type)||"default",icon:(i==null?void 0:i.icon)||Xe.jsx(qTe,{}),children:"点击上传文件"})})};E6e.displayName="UploadFile";const Oht=e=>Xe.jsx(Ro,{...e,children:Xe.jsx(E6e,{...e})}),S6e=e=>{let{maxCount:t,value:n,multiple:r,onChange:o,...i}=e;q.useEffect(()=>{if(n){if(console.log("value",n),typeof n=="string")try{n=JSON.parse(n),o(n)}catch{}let E=[];if(Array.isArray(n))for(let S=0;S<n.length;S++){let w=n[S];var C=g.current.find(x=>x.uid===w.uid);!C||(C.version||0)<(w.version||0)?E.push(w):E.push(C)}s(E)}},[n]),t=t||99,r=r||!0;const[a,s]=q.useState([]),[l,u]=q.useState(""),[c,f]=q.useState(0),[d,p]=q.useState(!1),g=q.useRef([]),m=C=>new Promise((E,S)=>{const w=new FileReader;w.readAsDataURL(C),w.onload=()=>E(w.result),w.onerror=x=>S(x)}),h=async(C,E)=>{!C.url&&!C.preview&&(C.preview=await m(C.originFileObj)),u(C.url||C.preview),f(E),p(!0)},y=async(C,E)=>{i!=null&&i.disabled||s(a.filter((S,w)=>w!==E))},v=Xe.jsx(Xe.Fragment,{children:Xe.jsxs("div",{className:"fw-full fh-full fflex fflex-col fitems-center fjustify-center fborder fborder-dashed fcursor-pointer frounded",children:[Xe.jsx(XTe,{}),Xe.jsx("div",{className:"fmt-2",children:"点击上传"})]})}),b=C=>{let{fileList:E}=C,S=[];for(let O=0;O<E.length;O++){var w=E[O];w.version=new Date().getTime();var x=g.current.find(T=>T.uid===w.uid);console.log("oldfile",JSON.parse(JSON.stringify(x||{}))),x&&x.status!="uploading"?S.push(x):(w.status=="done"&&w.response&&(w.url=w.response),S.push(w))}g.current=S,s(S),o(S.map(O=>({uid:O.uid,name:O.name,status:O.status,url:O.url||O.response||"",error:O.error,version:O.version||0})))};return Xe.jsxs(Xe.Fragment,{children:[Xe.jsx("div",{className:"fflex fgap-3 fflex-wrap",children:Xe.jsx(QT,{...i,itemRender:(C,E,S)=>{console.log("file",E);let w=S.findIndex(x=>x.uid===E.uid);return Xe.jsx(Xe.Fragment,{children:Xe.jsxs("div",{className:"fgroup fw-full fh-full fbg-transparent fborder frounded fflex fitems-center fjustify-center foverflow-hidden fcursor-pointer frelative"+(E.status=="error"?" fborder-red-500":""),children:[Xe.jsxs("div",{className:" fhidden fabsolute fw-full fh-full fbg-gray-900 fbg-opacity-50 fitems-center fjustify-center fz-10 group-hover:fflex ftext-white ftext-lg fgap-2",children:[E.status=="done"&&Xe.jsx(YTe,{onClick:()=>{h(E,w)},className:"hover:ftext-gray-200"}),!(i!=null&&i.disabled)&&!(i!=null&&i.readonly)&&Xe.jsx(CV,{onClick:()=>{y(E,w)},className:"hover:ftext-gray-200"})]}),E.status=="uploading"&&Xe.jsx("div",{className:" fw-full fh-full fflex fitems-center fjustify-center fabsolute ftop-0 fleft-0 ",children:Xe.jsx(SE,{})}),Xe.jsx("img",{src:E.url||E.thumbUrl,alt:"Example Image",className:"fmax-w-full fmax-h-full fobject-contain "})]},`file-${E.uid}`)})},listType:"picture-card",fileList:a,multiple:r,onPreview:h,onChange:b,maxCount:t,children:a.length>=t||i!=null&&i.disabled||i!=null&&i.readonly?null:v})}),l&&Xe.jsx(vD.PreviewGroup,{preview:{visible:d,current:c,onVisibleChange:C=>p(C),onChange:C=>{f(C)}},children:a.map((C,E)=>Xe.jsx(Xe.Fragment,{children:Xe.jsx(vD,{wrapperStyle:{display:"none"},src:C.url})}))})]})};S6e.displayName="UploadImage";const Dht=e=>Xe.jsx(Ro,{...e,children:Xe.jsx(S6e,{...e})}),Tht=e=>{let{value:t,onChange:n,form:r,fieldName:o,...i}=e,a=!1;return typeof t=="boolean"?a=t:typeof t=="string"?a=t=="1"||t=="true":typeof t=="number"&&(a=t==1),t!==a&&(r==null||r.setFieldValue(o,a)),Xe.jsx(Ro,{...i,children:Xe.jsx(cV,{...i,onChange:n,value:t})})};var $ht={exports:{}};(function(e,t){(function(n,r){e.exports=r(TDe)})(br,function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var o=r(n),i={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,s){return s==="W"?a+"周":a+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(a,s){var l=100*a+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return o.default.locale(i,null,!0),i})})($ht);var Nht=ve(ve({},Gxe),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const Pht={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},w6e={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Nht),timePickerLocale:Object.assign({},Pht)};w6e.lang.ok="确定";var x6e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(br,function(){return function(n,r,o){o.updateLocale=function(i,a){var s=o.Ls[i];if(s)return(a?Object.keys(a):[]).forEach(function(l){s[l]=a[l]}),s}}})})(x6e);var Iht=x6e.exports;const Rht=pa(Iht);fi.extend(Rht);fi.extend(FDe);fi.updateLocale("zh-cn",{weekStart:0});const Mht=e=>{let{datetype:t,value:n,defaultNow:r,onChange:o,...i}=e;t=t||"date";const[a,s]=q.useState(i==null?void 0:i.picker),[l,u]=q.useState(i==null?void 0:i.format),[c,f]=q.useState(!1),[d,p]=q.useState(!1),g=q.useRef(!1);q.useEffect(()=>{if(r&&!n){const h=fi().format("YYYY-MM-DD HH:mm:ss");typeof o=="function"&&o(h);return}},[]);const m=(h,y)=>{g.current=!0,o(y)};return q.useEffect(()=>{switch(s("date"),f(!1),t){case"date":s("date"),u("YYYY-MM-DD"),p(!1);break;case"datetime":f(!0),s("datetime"),u("YYYY-MM-DD HH:mm:ss"),p(!0);break;case"month":s("month"),p(!1);break;case"year":s("year"),p(!1);break}},[t]),Xe.jsx(Ro,{...i,children:Xe.jsx(dy,{locale:w6e,...i,picker:a,format:l,style:{width:"100%"},onChange:m,value:n&&fi(n).isValid()?fi(n):void 0,showTime:c,needConfirm:d})})},Fht=e=>{var t;let{customComponent:n,form:r,fieldsValue:o,...i}=e;const[a,s]=q.useState();return q.useEffect(()=>{s(JSON.stringify(o))},[o]),n?Xe.jsx(n,{...i,form:r,fieldsValue:o}):Xe.jsx(UT,{type:"inner",title:(t=i==null?void 0:i.label)!==null&&t!==void 0?t:"关联子表",children:Xe.jsx("div",{className:"fh-20 fw-full fflex fjustify-center fitems-center",children:"子表内容在设计阶段暂不显示"})})},ine=e=>{let{label:t,subTableIndex:n,children:r,subTableHead:o=!1,...i}=e;return Xe.jsx("div",{className:"fsticky fright-0 fbg-white fborder-b ",style:{boxShadow:"-6px 0 6px -6px rgba(50,50,50,0.15)",flex:"0 0 50px",width:"50px"},children:Xe.jsxs("div",{className:"frelative fw-full fh-full fflex fflex-col foverflow-hidden",children:[t&&o&&Xe.jsx("div",{className:"fh-12 ffont-semibold fbg-[#fafafa] ftext-sm fflex fflex-nowrap ftext-nowrap fjustify-between fitems-center fpx-2 fborder-b",children:t}),Xe.jsx("div",{className:"fw-full fflex-1 fflex fitems-center fjustify-center fp-2 fbox-border fgap-2",children:r})]})})},Bht=e=>{let{value:t,onChange:n,...r}=e;return q.useEffect(()=>{t||n(wa())},[t]),Xe.jsx(uc,{...r,value:t,onChange:n,hidden:!0})},mk=e=>{let{children:t,width:n,hidden:r,...o}=e;const[i,a]=q.useState(0);return q.useEffect(()=>{a(n)},[n]),r?t:Xe.jsx("div",{className:"fflex-1 fpx-1 fborder-b",style:{minWidth:`${i}px`},...o,children:t})},A6e=e=>{let{children:t,onTableAddRow:n,disabled:r,readonly:o,onTableRemoveRow:i,form:a,fieldName:s,initializeFormRender:l,recordFieldsChange:u,getTableWithIds:c,removeLastFieldsValues:f,mode:d,isAllowCopy:p=!1,isAllowAdd:g=!0,getDependencyMapItem:m,...h}=e;q.useEffect(()=>{},[a]);const y=h.componentId||h.__id,v=q.useRef(q.Children.map(t,()=>wa())),[b,C]=q.useState(!1),E=h.componentId||h.__id,S=q.Children.map(t,B=>`${E}.${B.props.componentId||B.props.__id}`),w=[],x=()=>{b||C(!0),a==null||a.setFieldValue(s,[{}])},[O,T]=q.useState(),A=B=>{s==B&&T(wa())};q.useEffect(()=>(T(wa()),gk.on("reloadTable",A),()=>{gk.off("reloadTable",A)}),[]);const N=()=>typeof c=="function"?c(S):[],I=B=>{if(typeof m=="function"){const k=m(`${y}.${B}`);if(k)return k==null?void 0:k.show}return!0},R=Gee(B=>{let k=a.getFieldValue(s);const V={...k[B],__id:wa()};k.splice(B+1,0,V),a==null||a.setFieldValue(s,k);let z={},L=s;for(let F=B+1;F<k.length;F++){let j=k[F];for(let _ in j){let H=[L,F,_];z[H]={name:H,value:j[_]}}}typeof u=="function"&&u(z,!0)}),M=Gee(B=>{let k=a.getFieldValue(s);k.splice(B,1),a==null||a.setFieldValue(s,k),typeof i=="function"&&i(S),typeof f=="function"&&f(`${E},${B}`,!0)});return h.isRequired&&w.push({required:!0,message:`子表[${h.label}]必须填写`}),Xe.jsx(Eo.List,{name:E,rules:w,children:(B,k)=>{let{add:V,remove:z}=k;return B.length===0&&!b&&x(),Xe.jsxs("div",{className:"fw-full ",children:[Xe.jsxs("div",{className:"fw-full frelative fmin-h-20 foverflow-x-auto",style:{position:"relative"},children:[B.length===0&&Xe.jsxs("div",{className:"fborder-b fflex flex-nowrap fmin-w-full ",children:[q.Children.map(t,(L,F)=>{var j,_,H;const G=((L==null||(j=L.props)===null||j===void 0?void 0:j.calcHidden)||!I((L==null||(_=L.props)===null||_===void 0?void 0:_.componentId)||(L==null||(H=L.props)===null||H===void 0?void 0:H.__id)))&&d!="desgin";return Xe.jsx(mk,{width:150,hidden:G,children:G?null:q.cloneElement(L,{key:`row_0_child_${F}`,subTable:!0,subTableHead:!0,subTableContent:!1})},`row_0_col_${F}`)}),r!=!0&&o!=!0&&Xe.jsx(ine,{subTableHead:!0,subTable:!0,subTableIndex:0,label:"操作"},"row_0_action")]},"tableHead"),B.map((L,F)=>Xe.jsxs("div",{className:" fflex flex-nowrap fmin-w-full ",children:[Xe.jsx(Eo.Item,{hidden:!0,name:[L.name,"__id"],children:Xe.jsx(Bht,{})}),q.Children.map(t,(j,_)=>{var H,G,W;let{props:K}=j;const X=(j==null||(H=j.props)===null||H===void 0?void 0:H.componentId)||(j==null||(G=j.props)===null||G===void 0?void 0:G.__id)||_,Q=[];if(K.isRequired&&Q.push({required:!0,message:`${K.label}必须填写`}),K.rules)if(Array.isArray(K.rules)){const se=K.rules.join("|");Q.push({pattern:new RegExp(se),message:K.rulesFailMessage?K.rulesFailMessage:`${K.label}格式错误`})}else Q.push({pattern:new RegExp(K.rules),message:K.rulesFailMessage?K.rulesFailMessage:`${K.label}格式错误`});const{componentId:te,__id:J,_componentName:oe,...ne}=j.props,Y=((W=j.type)===null||W===void 0?void 0:W.displayName)||oe,Z=te||J,re=(K.calcHidden||!I(Z))&&d!="desgin";return Xe.jsx(mk,{width:150,hidden:re,children:Xe.jsx(Eo.Item,{style:{margin:0},hidden:re,shouldUpdate:(se,ie)=>{let ce=!1;if((Y==="Field.WithSingleSelect"||Y==="Field.WithMultipleSelect")&&Array.isArray(ne.filterRules)&&ne.filterRules.length>0)for(let He of ne.filterRules){let rt,Be;if(He.valueType=="variable"){if("parent"in(He==null?void 0:He.value)&&He.value.parent!=""){var ye,pe,ge,Ce,Se,_e,Qe,Ye;rt=se==null||(ye=se[He==null||(ge=He.value)===null||ge===void 0?void 0:ge.parent])===null||ye===void 0||(pe=ye[L.name])===null||pe===void 0?void 0:pe[He==null||(Ce=He.value)===null||Ce===void 0?void 0:Ce.field_key],Be=ie==null||(Se=ie[He==null||(Qe=He.value)===null||Qe===void 0?void 0:Qe.parent])===null||Se===void 0||(_e=Se[L.name])===null||_e===void 0?void 0:_e[He==null||(Ye=He.value)===null||Ye===void 0?void 0:Ye.field_key]}else rt=se==null?void 0:se[He.value.field_key],Be=ie==null?void 0:ie[He.value.field_key];if(rt!==Be){ce=!0;break}}}return ce&&(v.current[_]=wa(),console.log("newidRefs.current[childIndex]",v.current[_])),ce},children:se=>{let{getFieldsValue:ie}=se;const ce=ie();return Xe.jsx(Eo.Item,{label:"",style:{marginBottom:0},name:[L.name,X],rules:Q,children:q.cloneElement(j,{key:`row_${L.key}_child_${_}`,subTable:!0,subTableIndex:F,subTableHead:F===0,form:a,shouldUpdateKey:v.current[_],fieldName:[s,L.name,X],fieldsValue:ce,initializeFormRender:l,recordFieldsChange:u,getAllWithIds:N,removeLastFieldsValues:f})})}})},`row_${L.key}_col_${_}`)}),r!=!0&&o!=!0&&Xe.jsxs(ine,{subTableHead:F==0,subTable:!0,subTableIndex:F,label:"操作",children:[p&&Xe.jsx(GTe,{className:"fcursor-pointer",onClick:()=>R(F)}),Xe.jsx(lV,{title:"删除确认",description:"确定要删除这一行吗?",onConfirm:()=>{M(F)},okText:"确定",cancelText:"取消",children:Xe.jsx(CV,{className:"fcursor-pointer ftext-red-500"})})]},`row_${F}_action`)]},`${O}.${L.key}`))]}),r!=!0&&o!=!0&&g&&Xe.jsx(qa,{onClick:()=>{V({key:wa()}),typeof n=="function"&&n(S)},className:"fmy-2",children:"新增一行"})]})}})};A6e.displayName="Table";const O6e=e=>Xe.jsx(Ro,{...e,higLabel:!0,children:Xe.jsx(A6e,{...e})});O6e.displayName="Table";const kht=e=>{let{value:t,onChange:n,...r}=e;return Xe.jsx("div",{children:"sdfsdfsdf"})};function Lht(){this.__data__=[],this.size=0}var jht=Lht;function _ht(e,t){return e===t||e!==e&&t!==t}var D6e=_ht,Hht=D6e;function zht(e,t){for(var n=e.length;n--;)if(Hht(e[n][0],t))return n;return-1}var r6=zht,Vht=r6,Uht=Array.prototype,Wht=Uht.splice;function Kht(e){var t=this.__data__,n=Vht(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Wht.call(t,n,1),--this.size,!0}var Ght=Kht,Yht=r6;function Xht(e){var t=this.__data__,n=Yht(t,e);return n<0?void 0:t[n][1]}var qht=Xht,Qht=r6;function Zht(e){return Qht(this.__data__,e)>-1}var Jht=Zht,evt=r6;function tvt(e,t){var n=this.__data__,r=evt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var nvt=tvt,rvt=jht,ovt=Ght,ivt=qht,avt=Jht,svt=nvt;function vy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vy.prototype.clear=rvt;vy.prototype.delete=ovt;vy.prototype.get=ivt;vy.prototype.has=avt;vy.prototype.set=svt;var o6=vy,lvt=o6;function uvt(){this.__data__=new lvt,this.size=0}var cvt=uvt;function fvt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var dvt=fvt;function pvt(e){return this.__data__.get(e)}var hvt=pvt;function vvt(e){return this.__data__.has(e)}var gvt=vvt,mvt=nS,yvt=JTe,bvt="[object AsyncFunction]",Cvt="[object Function]",Evt="[object GeneratorFunction]",Svt="[object Proxy]";function wvt(e){if(!yvt(e))return!1;var t=mvt(e);return t==Cvt||t==Evt||t==bvt||t==Svt}var T6e=wvt,xvt=vf,Avt=xvt["__core-js_shared__"],Ovt=Avt,QP=Ovt,ane=function(){var e=/[^.]+$/.exec(QP&&QP.keys&&QP.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Dvt(e){return!!ane&&ane in e}var Tvt=Dvt,$vt=Function.prototype,Nvt=$vt.toString;function Pvt(e){if(e!=null){try{return Nvt.call(e)}catch{}try{return e+""}catch{}}return""}var $6e=Pvt,Ivt=T6e,Rvt=Tvt,Mvt=JTe,Fvt=$6e,Bvt=/[\\^$.*+?()[\]{}|]/g,kvt=/^\[object .+?Constructor\]$/,Lvt=Function.prototype,jvt=Object.prototype,_vt=Lvt.toString,Hvt=jvt.hasOwnProperty,zvt=RegExp("^"+_vt.call(Hvt).replace(Bvt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Vvt(e){if(!Mvt(e)||Rvt(e))return!1;var t=Ivt(e)?zvt:kvt;return t.test(Fvt(e))}var Uvt=Vvt;function Wvt(e,t){return e==null?void 0:e[t]}var Kvt=Wvt,Gvt=Uvt,Yvt=Kvt;function Xvt(e,t){var n=Yvt(e,t);return Gvt(n)?n:void 0}var gy=Xvt,qvt=gy,Qvt=vf,Zvt=qvt(Qvt,"Map"),DV=Zvt,Jvt=gy,egt=Jvt(Object,"create"),i6=egt,sne=i6;function tgt(){this.__data__=sne?sne(null):{},this.size=0}var ngt=tgt;function rgt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ogt=rgt,igt=i6,agt="__lodash_hash_undefined__",sgt=Object.prototype,lgt=sgt.hasOwnProperty;function ugt(e){var t=this.__data__;if(igt){var n=t[e];return n===agt?void 0:n}return lgt.call(t,e)?t[e]:void 0}var cgt=ugt,fgt=i6,dgt=Object.prototype,pgt=dgt.hasOwnProperty;function hgt(e){var t=this.__data__;return fgt?t[e]!==void 0:pgt.call(t,e)}var vgt=hgt,ggt=i6,mgt="__lodash_hash_undefined__";function ygt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ggt&&t===void 0?mgt:t,this}var bgt=ygt,Cgt=ngt,Egt=ogt,Sgt=cgt,wgt=vgt,xgt=bgt;function my(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}my.prototype.clear=Cgt;my.prototype.delete=Egt;my.prototype.get=Sgt;my.prototype.has=wgt;my.prototype.set=xgt;var Agt=my,lne=Agt,Ogt=o6,Dgt=DV;function Tgt(){this.size=0,this.__data__={hash:new lne,map:new(Dgt||Ogt),string:new lne}}var $gt=Tgt;function Ngt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Pgt=Ngt,Igt=Pgt;function Rgt(e,t){var n=e.__data__;return Igt(t)?n[typeof t=="string"?"string":"hash"]:n.map}var a6=Rgt,Mgt=a6;function Fgt(e){var t=Mgt(this,e).delete(e);return this.size-=t?1:0,t}var Bgt=Fgt,kgt=a6;function Lgt(e){return kgt(this,e).get(e)}var jgt=Lgt,_gt=a6;function Hgt(e){return _gt(this,e).has(e)}var zgt=Hgt,Vgt=a6;function Ugt(e,t){var n=Vgt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Wgt=Ugt,Kgt=$gt,Ggt=Bgt,Ygt=jgt,Xgt=zgt,qgt=Wgt;function yy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yy.prototype.clear=Kgt;yy.prototype.delete=Ggt;yy.prototype.get=Ygt;yy.prototype.has=Xgt;yy.prototype.set=qgt;var N6e=yy,Qgt=o6,Zgt=DV,Jgt=N6e,emt=200;function tmt(e,t){var n=this.__data__;if(n instanceof Qgt){var r=n.__data__;if(!Zgt||r.length<emt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jgt(r)}return n.set(e,t),this.size=n.size,this}var nmt=tmt,rmt=o6,omt=cvt,imt=dvt,amt=hvt,smt=gvt,lmt=nmt;function by(e){var t=this.__data__=new rmt(e);this.size=t.size}by.prototype.clear=omt;by.prototype.delete=imt;by.prototype.get=amt;by.prototype.has=smt;by.prototype.set=lmt;var umt=by,cmt="__lodash_hash_undefined__";function fmt(e){return this.__data__.set(e,cmt),this}var dmt=fmt;function pmt(e){return this.__data__.has(e)}var hmt=pmt,vmt=N6e,gmt=dmt,mmt=hmt;function CD(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new vmt;++t<n;)this.add(e[t])}CD.prototype.add=CD.prototype.push=gmt;CD.prototype.has=mmt;var ymt=CD;function bmt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Cmt=bmt;function Emt(e,t){return e.has(t)}var Smt=Emt,wmt=ymt,xmt=Cmt,Amt=Smt,Omt=1,Dmt=2;function Tmt(e,t,n,r,o,i){var a=n&Omt,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,p=n&Dmt?new wmt:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var g=e[f],m=t[f];if(r)var h=a?r(m,g,f,t,e,i):r(g,m,f,e,t,i);if(h!==void 0){if(h)continue;d=!1;break}if(p){if(!xmt(t,function(y,v){if(!Amt(p,v)&&(g===y||o(g,y,n,r,i)))return p.push(v)})){d=!1;break}}else if(!(g===m||o(g,m,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}var P6e=Tmt,$mt=vf,Nmt=$mt.Uint8Array,Pmt=Nmt;function Imt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var Rmt=Imt;function Mmt(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Fmt=Mmt,une=ZT,cne=Pmt,Bmt=D6e,kmt=P6e,Lmt=Rmt,jmt=Fmt,_mt=1,Hmt=2,zmt="[object Boolean]",Vmt="[object Date]",Umt="[object Error]",Wmt="[object Map]",Kmt="[object Number]",Gmt="[object RegExp]",Ymt="[object Set]",Xmt="[object String]",qmt="[object Symbol]",Qmt="[object ArrayBuffer]",Zmt="[object DataView]",fne=une?une.prototype:void 0,ZP=fne?fne.valueOf:void 0;function Jmt(e,t,n,r,o,i,a){switch(n){case Zmt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Qmt:return!(e.byteLength!=t.byteLength||!i(new cne(e),new cne(t)));case zmt:case Vmt:case Kmt:return Bmt(+e,+t);case Umt:return e.name==t.name&&e.message==t.message;case Gmt:case Xmt:return e==t+"";case Wmt:var s=Lmt;case Ymt:var l=r&_mt;if(s||(s=jmt),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=Hmt,a.set(e,t);var c=kmt(s(e),s(t),r,o,i,a);return a.delete(e),c;case qmt:if(ZP)return ZP.call(e)==ZP.call(t)}return!1}var e0t=Jmt;function t0t(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var n0t=t0t,r0t=n0t,o0t=JT;function i0t(e,t,n){var r=t(e);return o0t(e)?r:r0t(r,n(e))}var a0t=i0t;function s0t(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}var l0t=s0t;function u0t(){return[]}var c0t=u0t,f0t=l0t,d0t=c0t,p0t=Object.prototype,h0t=p0t.propertyIsEnumerable,dne=Object.getOwnPropertySymbols,v0t=dne?function(e){return e==null?[]:(e=Object(e),f0t(dne(e),function(t){return h0t.call(e,t)}))}:d0t,g0t=v0t;function m0t(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var y0t=m0t,b0t=nS,C0t=rS,E0t="[object Arguments]";function S0t(e){return C0t(e)&&b0t(e)==E0t}var w0t=S0t,pne=w0t,x0t=rS,I6e=Object.prototype,A0t=I6e.hasOwnProperty,O0t=I6e.propertyIsEnumerable,D0t=pne(function(){return arguments}())?pne:function(e){return x0t(e)&&A0t.call(e,"callee")&&!O0t.call(e,"callee")},T0t=D0t,ED={exports:{}};function $0t(){return!1}var N0t=$0t;ED.exports;(function(e,t){var n=vf,r=N0t,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;e.exports=u})(ED,ED.exports);var R6e=ED.exports,P0t=9007199254740991,I0t=/^(?:0|[1-9]\d*)$/;function R0t(e,t){var n=typeof e;return t=t??P0t,!!t&&(n=="number"||n!="symbol"&&I0t.test(e))&&e>-1&&e%1==0&&e<t}var M0t=R0t,F0t=9007199254740991;function B0t(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=F0t}var M6e=B0t,k0t=nS,L0t=M6e,j0t=rS,_0t="[object Arguments]",H0t="[object Array]",z0t="[object Boolean]",V0t="[object Date]",U0t="[object Error]",W0t="[object Function]",K0t="[object Map]",G0t="[object Number]",Y0t="[object Object]",X0t="[object RegExp]",q0t="[object Set]",Q0t="[object String]",Z0t="[object WeakMap]",J0t="[object ArrayBuffer]",eyt="[object DataView]",tyt="[object Float32Array]",nyt="[object Float64Array]",ryt="[object Int8Array]",oyt="[object Int16Array]",iyt="[object Int32Array]",ayt="[object Uint8Array]",syt="[object Uint8ClampedArray]",lyt="[object Uint16Array]",uyt="[object Uint32Array]",Co={};Co[tyt]=Co[nyt]=Co[ryt]=Co[oyt]=Co[iyt]=Co[ayt]=Co[syt]=Co[lyt]=Co[uyt]=!0;Co[_0t]=Co[H0t]=Co[J0t]=Co[z0t]=Co[eyt]=Co[V0t]=Co[U0t]=Co[W0t]=Co[K0t]=Co[G0t]=Co[Y0t]=Co[X0t]=Co[q0t]=Co[Q0t]=Co[Z0t]=!1;function cyt(e){return j0t(e)&&L0t(e.length)&&!!Co[k0t(e)]}var fyt=cyt;function dyt(e){return function(t){return e(t)}}var pyt=dyt,SD={exports:{}};SD.exports;(function(e,t){var n=ETe,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(SD,SD.exports);var hyt=SD.exports,vyt=fyt,gyt=pyt,hne=hyt,vne=hne&&hne.isTypedArray,myt=vne?gyt(vne):vyt,F6e=myt,yyt=y0t,byt=T0t,Cyt=JT,Eyt=R6e,Syt=M0t,wyt=F6e,xyt=Object.prototype,Ayt=xyt.hasOwnProperty;function Oyt(e,t){var n=Cyt(e),r=!n&&byt(e),o=!n&&!r&&Eyt(e),i=!n&&!r&&!o&&wyt(e),a=n||r||o||i,s=a?yyt(e.length,String):[],l=s.length;for(var u in e)(t||Ayt.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Syt(u,l)))&&s.push(u);return s}var Dyt=Oyt,Tyt=Object.prototype;function $yt(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Tyt;return e===n}var Nyt=$yt,Pyt=Jft,Iyt=Pyt(Object.keys,Object),Ryt=Iyt,Myt=Nyt,Fyt=Ryt,Byt=Object.prototype,kyt=Byt.hasOwnProperty;function Lyt(e){if(!Myt(e))return Fyt(e);var t=[];for(var n in Object(e))kyt.call(e,n)&&n!="constructor"&&t.push(n);return t}var jyt=Lyt,_yt=T6e,Hyt=M6e;function zyt(e){return e!=null&&Hyt(e.length)&&!_yt(e)}var Vyt=zyt,Uyt=Dyt,Wyt=jyt,Kyt=Vyt;function Gyt(e){return Kyt(e)?Uyt(e):Wyt(e)}var Yyt=Gyt,Xyt=a0t,qyt=g0t,Qyt=Yyt;function Zyt(e){return Xyt(e,Qyt,qyt)}var Jyt=Zyt,gne=Jyt,e1t=1,t1t=Object.prototype,n1t=t1t.hasOwnProperty;function r1t(e,t,n,r,o,i){var a=n&e1t,s=gne(e),l=s.length,u=gne(t),c=u.length;if(l!=c&&!a)return!1;for(var f=l;f--;){var d=s[f];if(!(a?d in t:n1t.call(t,d)))return!1}var p=i.get(e),g=i.get(t);if(p&&g)return p==t&&g==e;var m=!0;i.set(e,t),i.set(t,e);for(var h=a;++f<l;){d=s[f];var y=e[d],v=t[d];if(r)var b=a?r(v,y,d,t,e,i):r(y,v,d,e,t,i);if(!(b===void 0?y===v||o(y,v,n,r,i):b)){m=!1;break}h||(h=d=="constructor")}if(m&&!h){var C=e.constructor,E=t.constructor;C!=E&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof E=="function"&&E instanceof E)&&(m=!1)}return i.delete(e),i.delete(t),m}var o1t=r1t,i1t=gy,a1t=vf,s1t=i1t(a1t,"DataView"),l1t=s1t,u1t=gy,c1t=vf,f1t=u1t(c1t,"Promise"),d1t=f1t,p1t=gy,h1t=vf,v1t=p1t(h1t,"Set"),g1t=v1t,m1t=gy,y1t=vf,b1t=m1t(y1t,"WeakMap"),C1t=b1t,yk=l1t,bk=DV,Ck=d1t,Ek=g1t,Sk=C1t,B6e=nS,Cy=$6e,mne="[object Map]",E1t="[object Object]",yne="[object Promise]",bne="[object Set]",Cne="[object WeakMap]",Ene="[object DataView]",S1t=Cy(yk),w1t=Cy(bk),x1t=Cy(Ck),A1t=Cy(Ek),O1t=Cy(Sk),Jp=B6e;(yk&&Jp(new yk(new ArrayBuffer(1)))!=Ene||bk&&Jp(new bk)!=mne||Ck&&Jp(Ck.resolve())!=yne||Ek&&Jp(new Ek)!=bne||Sk&&Jp(new Sk)!=Cne)&&(Jp=function(e){var t=B6e(e),n=t==E1t?e.constructor:void 0,r=n?Cy(n):"";if(r)switch(r){case S1t:return Ene;case w1t:return mne;case x1t:return yne;case A1t:return bne;case O1t:return Cne}return t});var D1t=Jp,JP=umt,T1t=P6e,$1t=e0t,N1t=o1t,Sne=D1t,wne=JT,xne=R6e,P1t=F6e,I1t=1,Ane="[object Arguments]",One="[object Array]",Ox="[object Object]",R1t=Object.prototype,Dne=R1t.hasOwnProperty;function M1t(e,t,n,r,o,i){var a=wne(e),s=wne(t),l=a?One:Sne(e),u=s?One:Sne(t);l=l==Ane?Ox:l,u=u==Ane?Ox:u;var c=l==Ox,f=u==Ox,d=l==u;if(d&&xne(e)){if(!xne(t))return!1;a=!0,c=!1}if(d&&!c)return i||(i=new JP),a||P1t(e)?T1t(e,t,n,r,o,i):$1t(e,t,l,n,r,o,i);if(!(n&I1t)){var p=c&&Dne.call(e,"__wrapped__"),g=f&&Dne.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,h=g?t.value():t;return i||(i=new JP),o(m,h,n,r,i)}}return d?(i||(i=new JP),N1t(e,t,n,r,o,i)):!1}var F1t=M1t,B1t=F1t,Tne=rS;function k6e(e,t,n,r,o){return e===t?!0:e==null||t==null||!Tne(e)&&!Tne(t)?e!==e&&t!==t:B1t(e,t,n,r,k6e,o)}var k1t=k6e,L1t=k1t;function j1t(e,t){return L1t(e,t)}var _1t=j1t,L6e={exports:{}};/*!
|
425
425
|
* Quill Editor v1.3.7
|
426
426
|
* https://quilljs.com/
|
package/dist/index.es.js
CHANGED
@@ -46006,7 +46006,7 @@ const NV = /* @__PURE__ */ Fi((e, t) => {
|
|
46006
46006
|
...te,
|
46007
46007
|
ruleParams: Y
|
46008
46008
|
}, r, Q);
|
46009
|
-
B(!1), oe.code > 0 ? y && typeof y == "function" && y(oe.message) : ne = ((ae = oe.data) === null || ae === void 0 ? void 0 : ae.list) || oe.data;
|
46009
|
+
console.log(`[${N == null ? void 0 : N.label}]fetchList response`, oe), B(!1), oe.code > 0 ? y && typeof y == "function" && y(oe.message) : ne = ((ae = oe.data) === null || ae === void 0 ? void 0 : ae.list) || oe.data;
|
46010
46010
|
}
|
46011
46011
|
return ne;
|
46012
46012
|
}, X = async (te) => {
|
@@ -46034,7 +46034,7 @@ const NV = /* @__PURE__ */ Fi((e, t) => {
|
|
46034
46034
|
value: Q[d]
|
46035
46035
|
};
|
46036
46036
|
}
|
46037
|
-
I.length > 0 && !Lu.isEqual(I, te) &&
|
46037
|
+
I.length > 0 && !Lu.isEqual(I, te) && console.log(`[${N == null ? void 0 : N.label}]handleOptions onChange(undefined)`);
|
46038
46038
|
}
|
46039
46039
|
return te;
|
46040
46040
|
}, q = async (te, Y, Q) => {
|
@@ -46061,7 +46061,7 @@ const NV = /* @__PURE__ */ Fi((e, t) => {
|
|
46061
46061
|
page: k.current + 1,
|
46062
46062
|
pageSize: V
|
46063
46063
|
};
|
46064
|
-
let Y = await K(te, null);
|
46064
|
+
let Y = await K(te, null, o);
|
46065
46065
|
Y = await X(Y), Array.isArray(Y) && Y.length > 0 ? R((Q) => {
|
46066
46066
|
const ne = new Set(Q.map((oe) => oe.value)), ae = Y.filter((oe) => !ne.has(oe.value));
|
46067
46067
|
return [...Q, ...ae];
|
package/package.json
CHANGED
@@ -161,6 +161,7 @@ const SearchSelect = forwardRef(({ addWrapper = true, form, fieldName, fieldsVal
|
|
161
161
|
if (!(ruleParams && Object.values(ruleParams).some(value => value === "##norequest##"))) {
|
162
162
|
setFetching(true)
|
163
163
|
const response = await request({ ...params, ruleParams }, form, newFieldName);
|
164
|
+
console.log(`[${props?.label}]fetchList response`, response)
|
164
165
|
setFetching(false)
|
165
166
|
if (response.code > 0) {
|
166
167
|
callError && typeof callError === 'function' && callError(response.message);
|
@@ -184,7 +185,9 @@ const SearchSelect = forwardRef(({ addWrapper = true, form, fieldName, fieldsVal
|
|
184
185
|
list[index] = { ...item, label: item[option_label], value: item[option_value] }
|
185
186
|
}
|
186
187
|
if (nOptions.length > 0 && !isEqual(nOptions, list)) {
|
187
|
-
|
188
|
+
console.log(`[${props?.label}]handleOptions onChange(undefined)`)
|
189
|
+
// 忘记这行有啥用了,但他会造成debounceFetchOptions之后下拉框置空,暂时弃用
|
190
|
+
// typeof onChange === 'function' && onChange(undefined)
|
188
191
|
}
|
189
192
|
}
|
190
193
|
return list
|
@@ -230,7 +233,7 @@ const SearchSelect = forwardRef(({ addWrapper = true, form, fieldName, fieldsVal
|
|
230
233
|
|
231
234
|
try {
|
232
235
|
const nextPageParams = { ...requestParams, page: currentPageRef.current + 1, pageSize: currentPageSize };
|
233
|
-
let newOptions = await fetchList(nextPageParams, null);
|
236
|
+
let newOptions = await fetchList(nextPageParams, null, fieldName);
|
234
237
|
newOptions = await handleOptions(newOptions);
|
235
238
|
if (Array.isArray(newOptions) && newOptions.length > 0) {
|
236
239
|
setNOptions(prevOptions => {
|