@tachybase/plugin-form-design 1.6.0 → 1.6.1
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/client/index.js
CHANGED
|
@@ -66,14 +66,7 @@
|
|
|
66
66
|
.showDivider {
|
|
67
67
|
margin: 0 calc(-1 * ${t.marginLG}px);
|
|
68
68
|
}
|
|
69
|
-
`})),Rt=V.createContext({});Rt.displayName="EditableGridRowContext";const Un=V.createContext({});Un.displayName="EditableGridColContext";const Nt=V.createContext({});Nt.displayName="EditableGridContext";const Gn=e=>e["x-component"]==="EditableGrid",Hn=e=>e["x-component"]==="EditableGrid.Row",zn=V.memo(A.RecursionField);zn.displayName="MemorizedRecursionField";const Jn=e=>{var g,x,P;const{token:t}=C.useToken(),o=V.useRef(null),{cx:f}=nt(),{isOver:r,setNodeRef:b}=ge.useDroppable({id:e.id,data:e.data}),{designable:v}=C.useDesignable(),F=V.useRef(),_=V.useMemo(()=>r?{backgroundColor:new ve(t.colorSettings).setAlpha(.1).toHex8String()}:{},[r]),c=(P=(x=(g=ge.useDndContext().active)==null?void 0:g.data.current)==null?void 0:x.schema)==null?void 0:P.parent,h=c?Object.keys(c.properties).length:0;let s=!0;if(h===1)if(e.first)s=c!==e.cols[0];else{const S=e.cols[e.index],j=e.cols[e.index+1];s=c!==S&&j!==c}const a=e.cols[e.index],u=e.cols[e.index+1],{attributes:i,listeners:l,setNodeRef:p,isDragging:d}=ge.useDraggable({disabled:e.first||e.last||!v,id:e.id,data:{dividerRef:F,prevSchema:a,nextSchema:u}}),[y,m]=V.useState([0,0]);return ge.useDndMonitor({onDragStart(S){var I;if(((I=S.active.data.current.dividerRef)==null?void 0:I.current)!==F.current)return;o.current=S.active.id;const j=F.current,O=j.previousElementSibling,w=j.nextElementSibling;m([O.clientWidth,w.clientWidth])},onDragMove(S){if(!d)return;o.current===S.active.id&&(o.current=o.current+"_move");const j=F.current,O=j.previousElementSibling,w=j.nextElementSibling;O.style.width=`${y[0]+S.delta.x}px`,w.style.width=`${y[1]-S.delta.x}px`},onDragEnd(S){var N;if(!o.current||(N=o.current)!=null&&N.startsWith(S.active.id)&&!o.current.endsWith("_move")||y[0]<=0||y[1]<=0||(m([0,0]),!a||!u))return;const j=F.current,O=j.previousElementSibling,w=j.nextElementSibling;a["x-component-props"]=a["x-component-props"]||{},u["x-component-props"]=u["x-component-props"]||{};const I=j.clientWidth*(e.cols.length+1)/e.cols.length,E=(100*(O.getBoundingClientRect().width+I)/j.parentElement.clientWidth).toFixed(2),R=(100*(w.getBoundingClientRect().width+I)/j.parentElement.clientWidth).toFixed(2);se.set(a,"x-component-props.width",E),se.set(u,"x-component-props.width",R)}}),D.jsx("div",{ref:S=>{s&&(b(S),F.current=S)},className:f("tb-col-divider","ColDivider"),style:_,children:D.jsx("div",W(T(T({ref:p},l),i),{tabIndex:-1,className:e.first||e.last||!v?null:"DraggableNode"}))})},Wn=e=>{var a,u,i;const{token:t}=C.useToken(),{isOver:o,setNodeRef:f}=ge.useDroppable({id:e.id,data:e.data}),{cx:r}=nt(),[b,v]=V.useState(!1),F=V.useMemo(()=>o?{zIndex:b?1e3:-1,backgroundColor:new ve(t.colorSettings).setAlpha(.1).toHex8String()}:{zIndex:b?1e3:-1},[b,o]),_=ge.useDndContext(),n=e.rows[e.index],c=(i=(u=(a=_.active)==null?void 0:a.data.current)==null?void 0:u.schema)==null?void 0:i.parent.parent,h=c==null?void 0:c.mapProperties(l=>l["x-component"]==="EditableGrid.Col").filter(Boolean).length;let s=!0;if(h===1)if(e.first)s=c!==e.rows[0];else{const l=e.rows[e.index+1];s=c!==n&&l!==c}return ge.useDndMonitor({onDragStart(l){v(!0)},onDragMove(l){},onDragOver(l){},onDragEnd(l){v(!1)},onDragCancel(l){v(!1)}}),D.jsx("span",{ref:s?f:null,className:r("tb-row-divider","RowDivider"),style:F})},Yn=e=>{const t=new A.Schema({type:"void",name:`row_${A.uid()}`,"x-uid":A.uid(),"x-component":"EditableGrid.Row"}),o=t.addProperty(A.uid(),{type:"void","x-uid":A.uid(),"x-component":"EditableGrid.Col"});return A.Schema.isSchemaInstance(e)&&(e.parent=o),o.addProperty(e.name,e),t},qn=e=>{const t=new A.Schema({type:"void",name:`col_${A.uid()}`,"x-uid":A.uid(),"x-component":"EditableGrid.Col"});return A.Schema.isSchemaInstance(e)&&(e.parent=t),t.addProperty(e.name,e),t},ml=()=>{const e=A.useFieldSchema();return V.useMemo(()=>e.reduceProperties((t,o)=>(o["x-component"]==="EditableGrid.Row"&&!o["x-hidden"]&&t.push(o),t),[]),[Object.keys(e.properties||{}).join(",")])},fl=()=>{const e=A.useFieldSchema();return V.useMemo(()=>e.reduceProperties((t,o)=>(o["x-component"]==="EditableGrid.Col"&&!o["x-hidden"]&&t.push(o),t),[]),[Object.keys(e.properties||{}).join(",")])},hl=e=>e.dndContext===!1?D.jsx(D.Fragment,{children:e.children}):D.jsx(dl,W(T({},e.dndContext),{children:e.children})),Kn=()=>V.useContext(Nt),$e=A.observer(e=>{const{distributed:t,showDivider:o=!0}=e,f=V.useRef(null),r=A.useField(),b=A.useFieldSchema(),{render:v}=C.useSchemaInitializerRender(b["x-initializer"],b["x-initializer-props"]),F=u=>v(u),_=r.address.toString(),n=ml(),{setPrintContent:c}=C.useFormBlockContext(),{styles:h,cx:s}=nt(),a=t===void 0?(b==null?void 0:b.parent["x-component"])==="Page"||(b==null?void 0:b.parent["x-component"])==="Tabs.TabPane":t;return V.useEffect(()=>{f.current&&(c==null||c(f.current))},[f.current]),D.jsx(Nt.Provider,{value:{ref:f,fieldSchema:b,renderSchemaInitializer:v,InitializerComponent:F,showDivider:o},children:D.jsxs("div",{className:s("tb-grid",h.editableGrid),style:{position:"relative"},ref:f,children:[D.jsxs(hl,{dndContext:e.dndContext,children:[o?D.jsx(Wn,{rows:n,first:!0,id:`${_}_0`,data:{breakRemoveOn:Gn,wrapSchema:Yn,insertAdjacent:"afterBegin",schema:b}}):null,n.map((u,i)=>D.jsxs(V.Fragment,{children:[a?D.jsx(C.SchemaComponent,{name:u.name,schema:u,distributed:!0}):D.jsx(zn,{name:u.name,schema:u}),o?D.jsx(Wn,{rows:n,index:i,id:`${_}_${i+1}`,data:{breakRemoveOn:Gn,wrapSchema:Yn,insertAdjacent:"afterEnd",schema:u}}):null]},i))]}),v()]})})},{displayName:"EditableGrid"});$e.Row=A.observer(()=>{const e=A.useField(),t=A.useFieldSchema(),o=e.address.toString(),f=fl(),{showDivider:r}=Kn(),{type:b}=C.useFormBlockType(),{cx:v}=nt();return D.jsx(Rt.Provider,{value:{schema:t,cols:f},children:D.jsxs("div",{className:v("tb-grid-row","CardRow",{showDivider:r}),children:[r&&D.jsx(Jn,{cols:f,first:!0,id:`${o}_0`,data:{breakRemoveOn:Hn,wrapSchema:qn,insertAdjacent:"afterBegin",schema:t}}),f.map((F,_)=>D.jsxs(V.Fragment,{children:[D.jsx(A.RecursionField,{name:F.name,schema:F,mapProperties:n=>(b==="update"&&(n.default=null),n)}),r&&D.jsx(Jn,{cols:f,index:_,last:_===f.length-1,id:`${o}_${_+1}`,data:{breakRemoveOn:Hn,wrapSchema:qn,insertAdjacent:"afterEnd",schema:F}})]},_))]})})},{displayName:"EditableGrid.Row"}),$e.Col=A.observer(e=>{var a;const{cols:t=[]}=V.useContext(Rt),{showDivider:o}=Kn(),f=A.useFieldSchema(),r=A.useField(),{token:b}=C.useToken(),{cx:v}=nt(),F=V.useMemo(()=>{var i;let u="";return t!=null&&t.length&&(u=`calc(${((i=f==null?void 0:f["x-component-props"])==null?void 0:i.width)||100/t.length}% - ${b.marginLG}px * ${(o?t.length+1:0)/t.length})`),{width:u}},[t==null?void 0:t.length,(a=f==null?void 0:f["x-component-props"])==null?void 0:a.width]),{isOver:_,setNodeRef:n}=ge.useDroppable({id:r.address.toString(),data:{insertAdjacent:"beforeEnd",schema:f,wrapSchema:u=>u}}),[c,h]=V.useState(!1),s=V.useMemo(()=>_?{background:`linear-gradient(to top, ${new ve(b.colorSettings).setAlpha(.1).toHex8String()} 20%, transparent 20%)`,borderTopRightRadius:"10px",borderTopLeftRadius:"10px",height:"100%"}:{height:"100%"},[c,_]);return ge.useDndMonitor({onDragStart(u){h(!0)},onDragMove(u){},onDragOver(u){},onDragEnd(u){h(!1)},onDragCancel(u){h(!1)}}),D.jsx(Un.Provider,{value:{cols:t,schema:f},children:D.jsx("div",{ref:n,style:T(T({},F),s),className:v("tb-grid-col","CardCol"),children:e.children})})},{displayName:"EditableGrid.Col"}),$e.wrap=e=>({type:"void","x-component":"EditableGrid.Row",properties:{[A.uid()]:{type:"void","x-component":"EditableGrid.Col",properties:{[e.name||A.uid()]:e}}}});const bl=A.observer(({schema:e})=>{const t=C.findSchemaUtils(e,"x-component","EditableGrid")||{},{Content:o}=oe.Layout,{refreshKey:f}=It(),r=!t.properties;return D.jsx(o,{style:{padding:"5px",overflow:"auto"},children:r?D.jsx("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"10%"},children:D.jsx(C.Icon,{type:"add-fields",style:{width:"200px",height:"100%"}})}):D.jsx(C.SchemaComponent,{schema:e,components:{EditableGrid:$e}})},f)});var bt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function st(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var o=function f(){var r=!1;try{r=this instanceof f}catch(b){}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(f){var r=Object.getOwnPropertyDescriptor(e,f);Object.defineProperty(o,f,r.get?r:{enumerable:!0,get:function(){return e[f]}})}),o}var kt={exports:{}},Tt={exports:{}},Vt={exports:{}},Bt,Zn;function Le(){if(Zn)return Bt;Zn=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(w,I)=>e(w,"name",{value:I,configurable:!0}),b=(w,I)=>{for(var E in I)e(w,E,{get:I[E],enumerable:!0})},v=(w,I,E,R)=>{if(I&&typeof I=="object"||typeof I=="function")for(let N of o(I))!f.call(w,N)&&N!==E&&e(w,N,{get:()=>I[N],enumerable:!(R=t(I,N))||R.enumerable});return w},F=w=>v(e({},"__esModule",{value:!0}),w),_={};b(_,{getType:()=>h,isArr:()=>a,isBool:()=>l,isFn:()=>s,isHTMLElement:()=>O,isMap:()=>d,isNum:()=>p,isNumberLike:()=>x,isObj:()=>P,isPlainObj:()=>u,isReactElement:()=>j,isRegExp:()=>S,isSet:()=>y,isStr:()=>i,isWeakMap:()=>m,isWeakSet:()=>g}),Bt=F(_);const n=Object.prototype.toString,c=r(w=>I=>h(I)===`[object ${w}]`,"isType"),h=r(w=>n.call(w),"getType"),s=r(w=>typeof w=="function","isFn"),a=Array.isArray,u=c("Object"),i=c("String"),l=c("Boolean"),p=c("Number"),d=r(w=>w&&w instanceof Map,"isMap"),y=r(w=>w&&w instanceof Set,"isSet"),m=r(w=>w&&w instanceof WeakMap,"isWeakMap"),g=r(w=>w&&w instanceof WeakSet,"isWeakSet"),x=r(w=>p(w)||/^\d+$/.test(w),"isNumberLike"),P=r(w=>typeof w=="object","isObj"),S=c("RegExp"),j=r(w=>w&&w.$$typeof&&w._owner,"isReactElement"),O=r(w=>Object.prototype.toString.call(w).indexOf("HTML")>-1,"isHTMLElement");return Bt}var Lt,Qn;function Ut(){if(Qn)return Lt;Qn=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(m,g)=>e(m,"name",{value:g,configurable:!0}),b=(m,g)=>{for(var x in g)e(m,x,{get:g[x],enumerable:!0})},v=(m,g,x,P)=>{if(g&&typeof g=="object"||typeof g=="function")for(let S of o(g))!f.call(m,S)&&S!==x&&e(m,S,{get:()=>g[S],enumerable:!(P=t(g,S))||P.enumerable});return m},F=m=>v(e({},"__esModule",{value:!0}),m),_={};b(_,{each:()=>h,every:()=>u,find:()=>p,findIndex:()=>l,includes:()=>d,map:()=>s,move:()=>y,reduce:()=>a,some:()=>i,toArr:()=>c}),Lt=F(_);var n=Le();const c=r(m=>(0,n.isArr)(m)?m:m?[m]:[],"toArr");function h(m,g,x){if((0,n.isArr)(m)||(0,n.isStr)(m)){if(x){for(let P=m.length-1;P>=0;P--)if(g(m[P],P)===!1)return}else for(let P=0;P<m.length;P++)if(g(m[P],P)===!1)return}else if((0,n.isObj)(m)){let P;for(P in m)if(Object.hasOwnProperty.call(m,P)&&g(m[P],P)===!1)return}}r(h,"each");function s(m,g,x){const P=(0,n.isArr)(m)||(0,n.isStr)(m)?[]:{};return h(m,(S,j)=>{const O=g(S,j);(0,n.isArr)(P)?P.push(O):P[j]=O},x),P}r(s,"map");function a(m,g,x,P){let S=x;return h(m,(j,O)=>{S=g(S,j,O)},P),S}r(a,"reduce");function u(m,g,x){let P=!0;return h(m,(S,j)=>{if(!g(S,j))return P=!1,!1},x),P}r(u,"every");function i(m,g,x){let P=!1;return h(m,(S,j)=>{if(g(S,j))return P=!0,!1},x),P}r(i,"some");function l(m,g,x){let P=-1;return h(m,(S,j)=>{if(g(S,j))return P=j,!1},x),P}r(l,"findIndex");function p(m,g,x){let P;return h(m,(S,j)=>{if(g(S,j))return P=S,!1},x),P}r(p,"find");function d(m,g,x){return(0,n.isStr)(m)?m.includes(g):i(m,P=>P===g,x)}r(d,"includes");function y(m,g,x){if(g===x||x<0||g<0||x>m.length-1||g>m.length-1)return m;if(g<x){const P=m[g];for(let S=g;S<x;S++)m[S]=m[S+1];m[x]=P}else{const P=m[g];for(let S=g;S>x;S--)m[S]=m[S-1];m[x]=P}return m}return r(y,"move"),Lt}var Gt,Xn;function $n(){if(Xn)return Gt;Xn=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(h,s)=>e(h,"name",{value:s,configurable:!0}),b=(h,s)=>{for(var a in s)e(h,a,{get:s[a],enumerable:!0})},v=(h,s,a,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of o(s))!f.call(h,i)&&i!==a&&e(h,i,{get:()=>s[i],enumerable:!(u=t(s,i))||u.enumerable});return h},F=h=>v(e({},"__esModule",{value:!0}),h),_={};b(_,{globalThisPolyfill:()=>c}),Gt=F(_);function n(){try{if(typeof self!="undefined")return self}catch(h){}try{if(typeof window!="undefined")return window}catch(h){}try{if(typeof bt!="undefined")return bt}catch(h){}return Function("return this")()}r(n,"globalSelf");const c=n();return Gt}var Ht,es;function zt(){if(es)return Ht;es=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{instOf:()=>h}),Ht=F(_);var n=Le(),c=$n();const h=r((s,a)=>(0,n.isFn)(a)?s instanceof a:(0,n.isStr)(a)&&c.globalThisPolyfill[a]?s instanceof c.globalThisPolyfill[a]:!1,"instOf");return Ht}var Jt,ts;function vl(){if(ts)return Jt;ts=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(l,p)=>e(l,"name",{value:p,configurable:!0}),b=(l,p)=>{for(var d in p)e(l,d,{get:p[d],enumerable:!0})},v=(l,p,d,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let m of o(p))!f.call(l,m)&&m!==d&&e(l,m,{get:()=>p[m],enumerable:!(y=t(p,m))||y.enumerable});return l},F=l=>v(e({},"__esModule",{value:!0}),l),_={};b(_,{isEqual:()=>i}),Jt=F(_);var n=Le(),c=zt();const h=n.isArr,s=Object.keys,a=Object.prototype.hasOwnProperty;function u(l,p){if(l===p)return!0;if(l&&p&&typeof l=="object"&&typeof p=="object"){const d=h(l),y=h(p);let m,g,x;if(d&&y){if(g=l.length,g!==p.length)return!1;for(m=g;m--!==0;)if(!u(l[m],p[m]))return!1;return!0}if(d!==y)return!1;const P=l&&l._isAMomentObject,S=p&&p._isAMomentObject;if(P!==S)return!1;if(P&&S)return l.isSame(p);const j=l&&l.toJS,O=p&&p.toJS;if(j!==O)return!1;if(j)return l.is?l.is(p):l===p;const w=(0,c.instOf)(l,"Date"),I=(0,c.instOf)(p,"Date");if(w!==I)return!1;if(w&&I)return l.getTime()===p.getTime();const E=(0,c.instOf)(l,"RegExp"),R=(0,c.instOf)(p,"RegExp");if(E!==R)return!1;if(E&&R)return l.toString()===p.toString();const N=(0,c.instOf)(l,"URL"),L=(0,c.instOf)(p,"URL");if(N!==L)return!1;if(N&&L)return l.href===p.href;const q=l&&l.toJSON,te=p&&p.toJSON;if(q!==te)return!1;if(q&&te)return u(l.toJSON(),p.toJSON());const Y=s(l);if(g=Y.length,g!==s(p).length)return!1;for(m=g;m--!==0;)if(!a.call(p,Y[m]))return!1;for(m=g;m--!==0;)if(x=Y[m],!(x==="_owner"&&l.$$typeof)&&!u(l[x],p[x]))return!1;return!0}return l!==l&&p!==p}r(u,"equal");const i=r(function(p,d){try{return u(p,d)}catch(y){if(y.message&&y.message.match(/stack|recursion/i)||y.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",y.name,y.message),!1;throw y}},"exportedEqual");return Jt}var Wt,rs;function yl(){if(rs)return Wt;rs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{clone:()=>h,shallowClone:()=>c}),Wt=F(_);var n=Le();const c=r(s=>Array.isArray(s)?s.slice(0):(0,n.isPlainObj)(s)?"$$typeof"in s&&"_owner"in s||s._isBigNumber||s._isAMomentObject||s._isJSONSchemaObject||(0,n.isFn)(s.toJS)||(0,n.isFn)(s.toJSON)?s:T({},s):typeof s=="object"?new s.constructor(s):s,"shallowClone"),h=r(s=>{if(Array.isArray(s)){const a=[];return s.forEach(u=>{a.push(h(u))}),a}else if((0,n.isPlainObj)(s)){if("$$typeof"in s&&"_owner"in s||s._isBigNumber||s._isAMomentObject||s._isJSONSchemaObject)return s;if((0,n.isFn)(s.toJS))return s.toJS();if((0,n.isFn)(s.toJSON))return s.toJSON();const a={};for(const u in s)Object.hasOwnProperty.call(s,u)&&(a[u]=h(s[u]));return a}else return s},"clone");return Wt}var Yt,os;function qt(){if(os)return Yt;os=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{isEmpty:()=>u,isUndef:()=>s,isValid:()=>a}),Yt=F(_);var n=zt();const c=Object.prototype.hasOwnProperty,h=Object.prototype.toString,s=r(i=>i===void 0,"isUndef"),a=r(i=>i!=null,"isValid");function u(i,l=!1){if(i==null)return!0;if(typeof i=="boolean"||typeof i=="number")return!1;if(typeof i=="string"||typeof i=="function")return i.length===0;if(Array.isArray(i)){if(i.length===0)return!0;for(let p=0;p<i.length;p++)if(l){if(i[p]!==void 0&&i[p]!==null)return!1}else if(i[p]!==void 0&&i[p]!==null&&i[p]!==""&&i[p]!==0)return!1;return!0}if((0,n.instOf)(i,"Error"))return i.message==="";if(i.toString===h)switch(i.toString()){case"[object File]":case"[object Map]":case"[object Set]":return i.size===0;case"[object Object]":{for(const p in i)if(c.call(i,p))return!1;return!0}}return!1}return r(u,"isEmpty"),Yt}var et=function(){return et=Object.assign||function(t){for(var o,f=1,r=arguments.length;f<r;f++){o=arguments[f];for(var b in o)Object.prototype.hasOwnProperty.call(o,b)&&(t[b]=o[b])}return t},et.apply(this,arguments)};typeof SuppressedError=="function"&&SuppressedError;var _l={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{İ:"i",I:"ı",İ:"i"}},az:{regexp:/\u0130/g,map:{İ:"i",I:"ı",İ:"i"}},lt:{regexp:/\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,map:{I:"i̇",J:"j̇",Į:"į̇",Ì:"i̇̀",Í:"i̇́",Ĩ:"i̇̃"}}};function xl(e,t){var o=_l[t.toLowerCase()];return vt(o?e.replace(o.regexp,function(f){return o.map[f]}):e)}function vt(e){return e.toLowerCase()}const gl=Object.freeze(Object.defineProperty({__proto__:null,localeLowerCase:xl,lowerCase:vt},Symbol.toStringTag,{value:"Module"}));var Fl=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Sl=/[^A-Z0-9]+/gi;function ns(e,t){t===void 0&&(t={});for(var o=t.splitRegexp,f=o===void 0?Fl:o,r=t.stripRegexp,b=r===void 0?Sl:r,v=t.transform,F=v===void 0?vt:v,_=t.delimiter,n=_===void 0?" ":_,c=ss(ss(e,f,"$1\0$2"),b,"\0"),h=0,s=c.length;c.charAt(h)==="\0";)h++;for(;c.charAt(s-1)==="\0";)s--;return c.slice(h,s).split("\0").map(F).join(n)}function ss(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce(function(f,r){return f.replace(r,o)},e)}function Kt(e,t){var o=e.charAt(0),f=e.substr(1).toLowerCase();return t>0&&o>="0"&&o<="9"?"_"+o+f:""+o.toUpperCase()+f}function as(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function is(e,t){return t===void 0&&(t={}),ns(e,et({delimiter:"",transform:Kt},t))}const Pl=Object.freeze(Object.defineProperty({__proto__:null,pascalCase:is,pascalCaseTransform:Kt,pascalCaseTransformMerge:as},Symbol.toStringTag,{value:"Module"}));function cs(e,t){return t===0?e.toLowerCase():Kt(e,t)}function Ol(e,t){return t===0?e.toLowerCase():as(e)}function Cl(e,t){return t===void 0&&(t={}),is(e,et({transform:cs},t))}const wl=st(Object.freeze(Object.defineProperty({__proto__:null,camelCase:Cl,camelCaseTransform:cs,camelCaseTransformMerge:Ol},Symbol.toStringTag,{value:"Module"}))),El=st(gl);function jl(e,t){return t===void 0&&(t={}),ns(e,et({delimiter:"."},t))}function Il(e,t){return t===void 0&&(t={}),jl(e,et({delimiter:"-"},t))}const Al=st(Object.freeze(Object.defineProperty({__proto__:null,paramCase:Il},Symbol.toStringTag,{value:"Module"}))),Dl=st(Pl);var Ml={tr:{regexp:/[\u0069]/g,map:{i:"İ"}},az:{regexp:/[\u0069]/g,map:{i:"İ"}},lt:{regexp:/[\u0069\u006A\u012F]\u0307|\u0069\u0307[\u0300\u0301\u0303]/g,map:{i̇:"I",j̇:"J",į̇:"Į",i̇̀:"Ì",i̇́:"Í",i̇̃:"Ĩ"}}};function Rl(e,t){var o=Ml[t.toLowerCase()];return Zt(o?e.replace(o.regexp,function(f){return o.map[f]}):e)}function Zt(e){return e.toUpperCase()}const Nl=st(Object.freeze(Object.defineProperty({__proto__:null,localeUpperCase:Rl,upperCase:Zt},Symbol.toStringTag,{value:"Module"})));var Qt,ls;function kl(){if(ls)return Qt;ls=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},b=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},v=a=>b(e({},"__esModule",{value:!0}),a),F={};r(F,{camelCase:()=>_.camelCase,lowerCase:()=>n.lowerCase,paramCase:()=>c.paramCase,pascalCase:()=>h.pascalCase,upperCase:()=>s.upperCase}),Qt=v(F);var _=wl,n=El,c=Al,h=Dl,s=Nl;return Qt}var Xt,us;function Tl(){if(us)return Xt;us=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{stringLength:()=>a}),Xt=F(_);const n=r(()=>{const u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");return new RegExp(u,"g")},"ansiRegex"),c="[\uD800-\uDBFF][\uDC00-\uDFFF]",h=r(u=>u&&u.exact?new RegExp(`^${c}$`):new RegExp(c,"g"),"astralRegex"),s=r(u=>typeof u=="string"?u.replace(n(),""):u,"stripAnsi"),a=r(u=>s(u).replace(h()," ").length,"stringLength");return Xt}var $t,ps;function yt(){if(ps)return $t;ps=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(w,I)=>e(w,"name",{value:I,configurable:!0}),b=(w,I)=>{for(var E in I)e(w,E,{get:I[E],enumerable:!0})},v=(w,I,E,R)=>{if(I&&typeof I=="object"||typeof I=="function")for(let N of o(I))!f.call(w,N)&&N!==E&&e(w,N,{get:()=>I[N],enumerable:!(R=t(I,N))||R.enumerable});return w},F=w=>v(e({},"__esModule",{value:!0}),w),_={};b(_,{isArr:()=>s,isAssignable:()=>S,isBool:()=>i,isEqual:()=>j,isFn:()=>h,isNum:()=>l,isNumberLike:()=>y,isObj:()=>p,isPlainObj:()=>a,isRegExp:()=>d,isSegmentEqual:()=>O,isStr:()=>u,toArr:()=>P}),$t=F(_);const n=Object.prototype.toString,c=r(w=>I=>n.call(I)===`[object ${w}]`,"isType"),h=c("Function"),s=Array.isArray||c("Array"),a=c("Object"),u=c("String"),i=c("Boolean"),l=c("Number"),p=r(w=>typeof w=="object","isObj"),d=c("RegExp"),y=r(w=>l(w)||/^(\d+)(\.\d+)?$/.test(w),"isNumberLike"),m=s,g=Object.keys,x=Object.prototype.hasOwnProperty,P=r(w=>Array.isArray(w)?w:w!==void 0?[w]:[],"toArr"),S=r(w=>typeof w=="object"||typeof w=="function","isAssignable"),j=r((w,I)=>{if(w===I)return!0;if(w&&I&&typeof w=="object"&&typeof I=="object"){const E=m(w),R=m(I);let N,L,q;if(E&&R){if(L=w.length,L!==I.length)return!1;for(N=L;N--!==0;)if(!j(w[N],I[N]))return!1;return!0}if(E!==R)return!1;const te=g(w);if(L=te.length,L!==g(I).length)return!1;for(N=L;N--!==0;)if(!x.call(I,te[N]))return!1;for(N=L;N--!==0;)if(q=te[N],!j(w[q],I[q]))return!1;return!0}return w!==w&&I!==I},"isEqual"),O=r((w,I)=>(w=typeof w=="symbol"?w:`${w}`,I=typeof I=="symbol"?I:`${I}`,w===I),"isSegmentEqual");return $t}var er,ds;function ms(){if(ds)return er;ds=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(g,x)=>e(g,"name",{value:x,configurable:!0}),b=(g,x)=>{for(var P in x)e(g,P,{get:x[P],enumerable:!0})},v=(g,x,P,S)=>{if(x&&typeof x=="object"||typeof x=="function")for(let j of o(x))!f.call(g,j)&&j!==P&&e(g,j,{get:()=>x[j],enumerable:!(S=t(x,j))||S.enumerable});return g},F=g=>v(e({},"__esModule",{value:!0}),g),_={};b(_,{isArrayPattern:()=>m,isDestructorExpression:()=>p,isDotOperator:()=>s,isExpandOperator:()=>u,isGroupExpression:()=>i,isIdentifier:()=>c,isIgnoreExpression:()=>h,isObjectPattern:()=>d,isObjectPatternProperty:()=>y,isRangeExpression:()=>l,isType:()=>n,isWildcardOperator:()=>a}),er=F(_);const n=r(g=>x=>x&&x.type===g,"isType"),c=n("Identifier"),h=n("IgnoreExpression"),s=n("DotOperator"),a=n("WildcardOperator"),u=n("ExpandOperator"),i=n("GroupExpression"),l=n("RangeExpression"),p=n("DestructorExpression"),d=n("ObjectPattern"),y=n("ObjectPatternProperty"),m=n("ArrayPattern");return er}var tr,fs;function hs(){if(fs)return tr;fs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(m,g)=>e(m,"name",{value:g,configurable:!0}),b=(m,g)=>{for(var x in g)e(m,x,{get:g[x],enumerable:!0})},v=(m,g,x,P)=>{if(g&&typeof g=="object"||typeof g=="function")for(let S of o(g))!f.call(m,S)&&S!==x&&e(m,S,{get:()=>g[S],enumerable:!(P=t(g,S))||P.enumerable});return m},F=m=>v(e({},"__esModule",{value:!0}),m),_={};b(_,{deleteInByDestructor:()=>d,existInByDestructor:()=>y,getDestructor:()=>a,getInByDestructor:()=>p,parseDestructorRules:()=>i,setDestructor:()=>u,setInByDestructor:()=>l}),tr=F(_);var n=yt(),c=ms();const h=new Map,s=r(m=>m!=null,"isValid"),a=r(m=>h.get(m),"getDestructor"),u=r((m,g)=>{h.set(m,g)},"setDestructor"),i=r(m=>{const g=[];if((0,c.isObjectPattern)(m)){let x=0;return m.properties.forEach(P=>{g[x]={path:[]},g[x].key=P.key.value,g[x].path.push(P.key.value),(0,c.isIdentifier)(P.value)&&(g[x].key=P.value.value);const S=g[x].path,j=i(P.value);let O=x;j.forEach(w=>{g[O]?(g[O].key=w.key,g[O].path=S.concat(w.path)):g[O]={key:w.key,path:S.concat(w.path)},O++}),O>x?x=O:x++}),g}else if((0,c.isArrayPattern)(m)){let x=0;return m.elements.forEach((P,S)=>{g[x]={path:[]},g[x].key=S,g[x].path.push(S),(0,c.isIdentifier)(P)&&(g[x].key=P.value);const j=g[x].path,O=i(P);let w=x;O.forEach(I=>{g[w]?(g[w].key=I.key,g[w].path=j.concat(I.path)):g[w]={key:I.key,path:j.concat(I.path)},w++}),w>x?x=w:x++}),g}return(0,c.isDestructorExpression)(m)?i(m.value):g},"parseDestructorRules"),l=r((m,g,x,P)=>{g.forEach(({key:S,path:j})=>{P.setIn([S],m,P.getIn(j,x))})},"setInByDestructor"),p=r((m,g,x)=>{let P={};return g.length&&(0,n.isNum)(g[0].path[0])&&(P=[]),m=s(m)?m:{},g.forEach(({key:S,path:j})=>{x.setIn(j,P,m[S])}),P},"getInByDestructor"),d=r((m,g,x)=>{g.forEach(({key:P})=>{x.deleteIn([P],m)})},"deleteInByDestructor"),y=r((m,g,x,P)=>g.every(({key:S})=>P.existIn([S],m,x)),"existInByDestructor");return tr}var rr,bs;function Vl(){if(bs)return rr;bs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{Matcher:()=>s}),rr=F(_);var n=yt(),c=ms();const h=class{constructor(u,i){this.tree=u,this.stack=[],this.excluding=!1,this.wildcards=[],this.record=i}next(u,i){if(u.after)return this.matchNode(u.after,i);if((0,c.isWildcardOperator)(u)&&!u.filter)return this.excluding?!1:i===0||u.optional?!0:!!this.take(i);if(i===this.path.length-1)return!!this.take(i);{const p=this.wildcards.pop();if(p&&p.after)return this.next(p,i)}return!1}shot(){var u;((u=this.record)==null?void 0:u.score)>=0&&this.record.score++}take(u){var i;return String((i=this.path[u])!=null?i:"")}matchExcludeIdentifier(u,i,l){const p=l===this.path.length-1,d=l<this.path.length;if(i.after||(this.excluding=!1),u){if(i.after)return this.next(i,l);if(p)return!1}return p?!0:d}matchIdentifier(u,i){const l=this.take(i);let p=!1;return(0,c.isExpandOperator)(u.after)?(l.indexOf(u.value)===0&&(this.shot(),p=!0),this.excluding?this.matchExcludeIdentifier(p,u.after,i):p&&this.next(u.after,i)):(l===u.value&&(this.shot(),p=!0),this.excluding?this.matchExcludeIdentifier(p,u,i):p&&this.next(u,i))}matchIgnoreExpression(u,i){return(0,n.isEqual)(u.value,this.take(i))&&this.next(u,i)}matchDestructorExpression(u,i){return(0,n.isEqual)(u.source,this.take(i))&&this.next(u,i)}matchExpandOperator(u,i){return this.next(u,i)}matchWildcardOperator(u,i){let l=!1;return u.filter?(this.stack.push(u),l=this.matchNode(u.filter,i),this.stack.pop()):l=this.next(u,i),l}matchGroupExpression(u,i){let l=!1;return u.isExclude&&(l=!this.excluding),(0,n.toArr)(u.value)[l?"every":"some"](p=>(this.wildcards=this.stack.slice(),this.excluding=l,this.matchNode(p,i)))}matchRangeExpression(u,i){const l=Number(this.take(i));return u.start?u.end?l>=Number(u.start.value)&&l<=Number(u.end.value):l>=Number(u.start.value):u.end?l<=Number(u.end.value):(this.wildcards=this.stack.slice(),this.next(u,i))}matchNode(u,i=0){return(0,c.isDotOperator)(u)?this.next(u,i+1):(0,c.isIdentifier)(u)?this.matchIdentifier(u,i):(0,c.isIgnoreExpression)(u)?this.matchIgnoreExpression(u,i):(0,c.isDestructorExpression)(u)?this.matchDestructorExpression(u,i):(0,c.isExpandOperator)(u)?this.matchExpandOperator(u,i):(0,c.isWildcardOperator)(u)?this.matchWildcardOperator(u,i):(0,c.isGroupExpression)(u)?this.matchGroupExpression(u,i):(0,c.isRangeExpression)(u)?this.matchRangeExpression(u,i):!1}match(u){return this.path=u,{matched:this.matchNode(this.tree),record:this.record}}static matchSegments(u,i,l){if(u.length!==i.length)return{matched:!1,record:l};const p=r((d=0)=>{const y=(0,n.isSegmentEqual)(u[d],i[d]);return(l==null?void 0:l.score)>=0&&l.score++,y&&(d<u.length-1?p(d+1):!0)},"match");return{matched:p(),record:l}}};r(h,"Matcher");let s=h;return rr}var or,vs;function nr(){if(vs)return or;vs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(l,p)=>e(l,"name",{value:p,configurable:!0}),b=(l,p)=>{for(var d in p)e(l,d,{get:p[d],enumerable:!0})},v=(l,p,d,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let m of o(p))!f.call(l,m)&&m!==d&&e(l,m,{get:()=>p[m],enumerable:!(y=t(p,m))||y.enumerable});return l},F=l=>v(e({},"__esModule",{value:!0}),l),_={};b(_,{braceContext:()=>u,bracketArrayContext:()=>h,bracketContext:()=>c,bracketDContext:()=>s,destructorContext:()=>i,parenContext:()=>a}),or=F(_);const n=r((l,p)=>T({flag:l},p),"ContextType"),c=n("[]"),h=n("[\\d]"),s=n("[[]]"),a=n("()"),u=n("{}"),i=n("{x}");return or}var sr,ys;function _s(){if(ys)return sr;ys=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(E,R)=>e(E,"name",{value:R,configurable:!0}),b=(E,R)=>{for(var N in R)e(E,N,{get:R[N],enumerable:!0})},v=(E,R,N,L)=>{if(R&&typeof R=="object"||typeof R=="function")for(let q of o(R))!f.call(E,q)&&q!==N&&e(E,q,{get:()=>R[q],enumerable:!(L=t(R,q))||L.enumerable});return E},F=E=>v(e({},"__esModule",{value:!0}),E),_={};b(_,{bangTok:()=>i,braceLTok:()=>p,braceRTok:()=>d,bracketDLTok:()=>g,bracketDRTok:()=>x,bracketLTok:()=>y,bracketRTok:()=>m,colonTok:()=>l,commaTok:()=>j,dbStarTok:()=>a,dotTok:()=>u,eofTok:()=>I,expandTok:()=>w,ignoreTok:()=>O,nameTok:()=>h,parenLTok:()=>P,parenRTok:()=>S,starTok:()=>s}),sr=F(_);var n=nr();const c=r((E,R)=>T({flag:E},R),"TokenType"),h=c("name",{expectNext(E){return this.includesContext(n.destructorContext)?E===h||E===j||E===m||E===d||E===l:E===u||E===j||E===I||E===m||E===S||E===l||E===w||E===y}}),s=c("*",{expectNext(E){return E===u||E===P||E===y||E===I||E===j||E===S}}),a=c("**",{expectNext(E){return E===u||E===y||E===I||E===j||E===S}}),u=c(".",{expectNext(E){return E===u||E===h||E===g||E===s||E===a||E===y||E===p||E===I},expectPrev(E){return E===u||E===h||E===x||E===s||E===S||E===m||E===w||E===d}}),i=c("!",{expectNext(E){return E===h||E===g}}),l=c(":",{expectNext(E){return this.includesContext(n.destructorContext)?E===h||E===p||E===y:E===h||E===g||E===m}}),p=c("{",{expectNext(E){return E===h},expectPrev(E){return this.includesContext(n.destructorContext)?E===l||E===j||E===y:E===u||E===l||E===P},updateContext(){this.state.context.push(n.braceContext)}}),d=c("}",{expectNext(E){return this.includesContext(n.destructorContext)?E===j||E===d||E===I||E===m:E===u||E===I||E===j},expectPrev(E){return E===h||E===d||E===m},updateContext(){this.state.context.pop(n.braceContext)}}),y=c("[",{expectNext(E){return this.includesContext(n.destructorContext)?E===h||E===y||E===p||E===m:E===h||E===g||E===l||E===y||E===O||E===m},expectPrev(E){return this.includesContext(n.destructorContext)?E===l||E===j||E===y:E===s||E===y||E===u||E===h||E===P||E===j},updateContext(){this.state.context.push(n.bracketContext)}}),m=c("]",{expectNext(E){return this.includesContext(n.destructorContext)?E===j||E===d||E===m||E===I:E===u||E===I||E===j||E===S||E===m},updateContext(){if(!this.includesContext(n.bracketArrayContext)){if(!this.includesContext(n.bracketContext))throw this.unexpect();this.state.context.pop()}}}),g=c("[[",{updateContext(){this.state.context.push(n.bracketDContext)}}),x=c("]]",{updateContext(){if(this.curContext()!==n.bracketDContext)throw this.unexpect();this.state.context.pop()}}),P=c("(",{expectNext(E){return E===h||E===g||E===p||E===i||E===y},expectPrev(E){return E===s},updateContext(){this.state.context.push(n.parenContext)}}),S=c(")",{expectNext(E){return E===u||E===I||E===j||E===S},updateContext(){if(this.curContext()!==n.parenContext)throw this.unexpect();this.state.context.pop()}}),j=c(",",{expectNext(E){return E===h||E===g||E===y||E===p}}),O=c("ignore",{expectNext(E){return E===x},expectPrev(E){return E===g}}),w=c("expandTok",{expectNext(E){return E===u||E===I||E===j||E===S}}),I=c("eof");return sr}var ar,xs;function Bl(){if(xs)return ar;xs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(d,y)=>e(d,"name",{value:y,configurable:!0}),b=(d,y)=>{for(var m in y)e(d,m,{get:y[m],enumerable:!0})},v=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of o(y))!f.call(d,x)&&x!==m&&e(d,x,{get:()=>y[x],enumerable:!(g=t(y,x))||g.enumerable});return d},F=d=>v(e({},"__esModule",{value:!0}),d),_={};b(_,{Tokenizer:()=>p}),ar=F(_);var n=nr(),c=_s();const h=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,s=r((d,y)=>{if(String.fromCharCode)return d.codePointAt(y);const m=d.charCodeAt(y);if(m<=55295||m>=57344)return m;const g=d.charCodeAt(y+1);return(m<<10)+g-56613888},"fullCharCodeAtPos"),a=r(d=>d===42||d===46||d===33||d===91||d===93||d===40||d===41||d===44||d===58||d===126||d===123||d===125,"isRewordCode"),u=r((d,y)=>{const m=new Error(d);return Object.assign(m,y),m},"getError"),i=r((d,y,m)=>{let g="";for(let x=y;x<m;x++){const P=d.charAt(x);P!=="\\"&&(g+=P)}return g},"slice"),l=class{constructor(y){this.input=y,this.state={context:[],type:null,pos:0},this.type_=null}curContext(){return this.state.context[this.state.context.length-1]}includesContext(y){for(let m=this.state.context.length-1;m>=0;m--)if(this.state.context[m]===y)return!0;return!1}unexpect(y){return y=y||this.state.type,u(`Unexpect token "${y.flag}" in ${this.state.pos} char.`,{pos:this.state.pos})}expectNext(y,m){if(y&&y.expectNext&&m&&!y.expectNext.call(this,m))throw u(`Unexpect token "${m.flag}" token should not be behind "${y.flag}" token.(${this.state.pos}th char)`,{pos:this.state.pos})}expectPrev(y,m){if(y&&y.expectPrev&&m&&!y.expectPrev.call(this,m))throw u(`Unexpect token "${y.flag}" should not be behind "${m.flag}"(${this.state.pos}th char).`,{pos:this.state.pos})}match(y){return this.state.type===y}skipSpace(){if(this.curContext()!==n.bracketDContext)e:for(;this.state.pos<this.input.length;){const y=this.input.charCodeAt(this.state.pos);switch(y){case 32:case 160:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos;break;default:if(y>8&&y<14||y>=5760&&h.test(String.fromCharCode(y)))++this.state.pos;else break e}}}next(){if(this.type_=this.state.type,this.input.length<=this.state.pos)return this.finishToken(c.eofTok);this.skipSpace(),this.readToken(this.getCode(),this.state.pos>0?this.getCode(this.state.pos-1):-1/0)}getCode(y=this.state.pos){return s(this.input,y)}eat(y){return this.match(y)?(this.next(),!0):!1}readKeyWord(){let y=this.state.pos,m="";for(;;){const g=this.getCode(),x=this.getCode(this.state.pos-1);if(this.input.length===this.state.pos){m=i(this.input,y,this.state.pos+1);break}if(!a(g)||x===92){if(g===32||g===160||g===10||g===8232||g===8233){m=i(this.input,y,this.state.pos);break}if(g===13&&this.input.charCodeAt(this.state.pos+1)===10){m=i(this.input,y,this.state.pos);break}if(g>8&&g<14||g>=5760&&h.test(String.fromCharCode(g))){m=i(this.input,y,this.state.pos);break}this.state.pos++}else{m=i(this.input,y,this.state.pos);break}}this.finishToken(c.nameTok,m)}readIgnoreString(){let y=this.state.pos,m,g="";for(;;){const x=this.getCode();if(this.state.pos>=this.input.length)break;if((x===91||x===93)&&m===92)this.state.pos++,m="";else if(x===93&&m===93){g=this.input.slice(y,this.state.pos-1).replace(/\\([[\]])/g,"$1"),this.state.pos++;break}else this.state.pos++,m=x}this.finishToken(c.ignoreTok,g),this.finishToken(c.bracketDRTok)}finishToken(y,m){const g=this.state.type;this.state.type=y,m!==void 0&&(this.state.value=m),this.expectNext(g,y),this.expectPrev(y,g),y.updateContext&&y.updateContext.call(this,g)}readToken(y,m){if(m===92)return this.readKeyWord();if(this.input.length<=this.state.pos)this.finishToken(c.eofTok);else if(this.curContext()===n.bracketDContext)this.readIgnoreString();else if(y===123)this.state.pos++,this.finishToken(c.braceLTok);else if(y===125)this.state.pos++,this.finishToken(c.braceRTok);else if(y===42){if(this.state.pos++,this.getCode()===42)return this.state.pos++,this.finishToken(c.dbStarTok);this.finishToken(c.starTok)}else if(y===33)this.state.pos++,this.finishToken(c.bangTok);else if(y===46)this.state.pos++,this.finishToken(c.dotTok);else if(y===91){if(this.state.pos++,this.getCode()===91)return this.state.pos++,this.finishToken(c.bracketDLTok);this.finishToken(c.bracketLTok)}else y===126?(this.state.pos++,this.finishToken(c.expandTok)):y===93?(this.state.pos++,this.finishToken(c.bracketRTok)):y===40?(this.state.pos++,this.finishToken(c.parenLTok)):y===41?(this.state.pos++,this.finishToken(c.parenRTok)):y===44?(this.state.pos++,this.finishToken(c.commaTok)):y===58?(this.state.pos++,this.finishToken(c.colonTok)):this.readKeyWord()}};r(l,"Tokenizer");let p=l;return ar}var ir,gs;function Ll(){if(gs)return ir;gs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(d,y)=>e(d,"name",{value:y,configurable:!0}),b=(d,y)=>{for(var m in y)e(d,m,{get:y[m],enumerable:!0})},v=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of o(y))!f.call(d,x)&&x!==m&&e(d,x,{get:()=>y[x],enumerable:!(g=t(y,x))||g.enumerable});return d},F=d=>v(e({},"__esModule",{value:!0}),d),_={};b(_,{Parser:()=>p}),ir=F(_);var n=nr(),c=hs(),h=yt(),s=Bl(),a=_s();const u=r((d=[],y)=>{const m=d.length,g=r((x=0)=>{const P=x<m-1?g(x+1):y,S=P&&{type:"DotOperator",after:P};return{type:"Identifier",value:d[x],after:S}},"build");return g()},"createTreeBySegments"),i=r((d,y,m)=>{if((0,h.isNumberLike)(d)&&(0,h.isNumberLike)(y)){if(m==="+")return String(Number(d)+Number(y));if(m==="-")return String(Number(d)-Number(y));if(m==="*")return String(Number(d)*Number(y));if(m==="/")return String(Number(d)/Number(y))}else{if(m==="+")return String(d)+String(y);if(m==="-"||m==="*"||m==="/")return"NaN"}return String(Number(y))},"calculate"),l=class extends s.Tokenizer{constructor(y,m){super(y),this.isMatchPattern=!1,this.isWildMatchPattern=!1,this.haveExcludePattern=!1,this.haveRelativePattern=!1,this.base=m}parse(){let y;return this.data={segments:[]},this.eat(a.eofTok)||(this.next(),y=this.parseAtom(this.state.type)),this.data.tree=y,y}append(y,m){y&&m&&(y.after=m)}parseAtom(y){switch(y){case a.braceLTok:case a.bracketLTok:return this.includesContext(n.destructorContext)?y===a.braceLTok?this.parseObjectPattern():this.parseArrayPattern():this.parseDestructorExpression();case a.nameTok:return this.parseIdentifier();case a.expandTok:return this.parseExpandOperator();case a.dbStarTok:case a.starTok:return this.parseWildcardOperator();case a.bracketDLTok:return this.parseIgnoreExpression();case a.dotTok:return this.parseDotOperator()}}pushSegments(y){this.data.segments.push(y)}parseIdentifier(){const y={type:"Identifier",value:this.state.value},m=!this.includesContext(n.destructorContext)&&!this.isMatchPattern&&!this.isWildMatchPattern;if(this.next(),this.includesContext(n.bracketArrayContext)){if(this.state.type!==a.bracketRTok)throw this.unexpect();this.state.context.pop(),this.next()}else m&&this.pushSegments(y.value);if(this.state.type===a.bracketLTok){if(this.next(),this.state.type!==a.nameTok)throw this.unexpect();this.state.context.push(n.bracketArrayContext);let g=!1;/^\d+$/.test(this.state.value)&&(g=!0);const x=this.state.value;this.pushSegments(g?Number(x):x);const P=this.parseAtom(this.state.type);g&&(P.arrayIndex=!0),this.append(y,P)}else this.append(y,this.parseAtom(this.state.type));return y}parseExpandOperator(){const y={type:"ExpandOperator"};return this.isMatchPattern=!0,this.isWildMatchPattern=!0,this.data.segments=[],this.next(),this.append(y,this.parseAtom(this.state.type)),y}parseWildcardOperator(){const y={type:"WildcardOperator"};return this.state.type===a.dbStarTok&&(y.optional=!0),this.isMatchPattern=!0,this.isWildMatchPattern=!0,this.data.segments=[],this.next(),this.state.type===a.parenLTok?y.filter=this.parseGroupExpression(y):this.state.type===a.bracketLTok&&(y.filter=this.parseRangeExpression(y)),this.append(y,this.parseAtom(this.state.type)),y}parseDestructorExpression(){const y={type:"DestructorExpression"};this.state.context.push(n.destructorContext);const m=this.state.pos-1;y.value=this.state.type===a.braceLTok?this.parseObjectPattern():this.parseArrayPattern();const g=this.state.pos;return this.state.context.pop(),y.source=this.input.substring(m,g).replace(/\[\s*([+\-*/])?\s*([^,\]\s]*)\s*\]/,(x,P,S)=>this.relative!==void 0?P?S?i(this.relative,S,P):i(this.relative,1,P):S?i(this.relative,S,"+"):String(this.relative):x).replace(/\s*\.\s*/g,"").replace(/\s*/g,""),this.relative===void 0&&(0,c.setDestructor)(y.source,(0,c.parseDestructorRules)(y)),this.relative=void 0,this.pushSegments(y.source),this.next(),this.append(y,this.parseAtom(this.state.type)),y}parseArrayPattern(){const y={type:"ArrayPattern",elements:[]};return this.next(),y.elements=this.parseArrayPatternElements(),y}parseArrayPatternElements(){const y=[];for(;this.state.type!==a.bracketRTok&&this.state.type!==a.eofTok;){if(y.push(this.parseAtom(this.state.type)),this.state.type===a.bracketRTok)return this.includesContext(n.destructorContext)&&this.next(),y;this.next()}return y}parseObjectPattern(){const y={type:"ObjectPattern",properties:[]};return this.next(),y.properties=this.parseObjectProperties(),y}parseObjectProperties(){const y=[];for(;this.state.type!==a.braceRTok&&this.state.type!==a.eofTok;){const m={type:"ObjectPatternProperty",key:this.parseAtom(this.state.type)};if(y.push(m),this.state.type===a.colonTok&&(this.next(),m.value=this.parseAtom(this.state.type)),this.state.type===a.braceRTok)return this.includesContext(n.destructorContext)&&this.next(),y;this.next()}return y}parseDotOperator(){const y={type:"DotOperator"};if(!this.type_&&this.base){if(this.base.isMatchPattern)throw new Error("Base path must be an absolute path.");for(this.data.segments=this.base.toArr();this.state.type===a.dotTok;)this.relative=this.data.segments.pop(),this.haveRelativePattern=!0,this.next();return u(this.data.segments.slice(),this.parseAtom(this.state.type))}else this.next();return this.append(y,this.parseAtom(this.state.type)),y}parseIgnoreExpression(){this.next();const y=String(this.state.value).replace(/\s*/g,""),m={type:"IgnoreExpression",value:y};return this.pushSegments(y),this.next(),this.append(m,this.parseAtom(this.state.type)),this.next(),m}parseGroupExpression(y){const m={type:"GroupExpression",value:[]};this.isMatchPattern=!0,this.data.segments=[],this.next();e:for(;;)switch(this.state.type){case a.commaTok:this.next();break;case a.bangTok:m.isExclude=!0,this.haveExcludePattern=!0,this.next();break;case a.eofTok:break e;case a.parenRTok:break e;default:m.value.push(this.parseAtom(this.state.type))}return this.next(),this.append(y,this.parseAtom(this.state.type)),m}parseRangeExpression(y){const m={type:"RangeExpression"};this.next(),this.isMatchPattern=!0,this.data.segments=[];let g=!1,x=!1;e:for(;;)switch(this.state.type){case a.colonTok:x=!0,g=!0,this.next();break;case a.bracketRTok:!x&&!m.end&&(m.end=m.start);break e;case a.commaTok:throw this.unexpect();case a.eofTok:break e;default:g?m.end=this.parseAtom(this.state.type):m.start=this.parseAtom(this.state.type)}return this.next(),this.append(y,this.parseAtom(this.state.type)),m}};r(l,"Parser");let p=l;return ir}var cr,Fs;function Ul(){if(Fs)return cr;Fs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(I,E)=>e(I,"name",{value:E,configurable:!0}),b=(I,E)=>{for(var R in E)e(I,R,{get:E[R],enumerable:!0})},v=(I,E,R,N)=>{if(E&&typeof E=="object"||typeof E=="function")for(let L of o(E))!f.call(I,L)&&L!==R&&e(I,L,{get:()=>E[L],enumerable:!(N=t(E,L))||N.enumerable});return I},F=I=>v(e({},"__esModule",{value:!0}),I),_={};b(_,{Path:()=>w}),cr=F(_);var n=hs(),c=Vl(),h=Ll(),s=yt();const a=new Map,u=Symbol("PATH_MATCHER"),i=r(I=>I!=null,"isValid"),l=r(I=>I.indexOf("*")===-1&&I.indexOf("~")===-1&&I.indexOf("[")===-1&&I.indexOf("]")===-1&&I.indexOf(",")===-1&&I.indexOf(":")===-1&&I.indexOf(" ")===-1&&I[0]!==".","isSimplePath"),p=r(I=>typeof I=="object"||typeof I=="function","isAssignable"),d=r(I=>(0,s.isStr)(I)?/^\d+$/.test(I):(0,s.isNum)(I),"isNumberIndex"),y=r((I,E)=>{for(let R=0;R<I.length;R++){const N=I[R],L=(0,n.getDestructor)(N);if(L){E=(0,n.getInByDestructor)(E,L,{setIn:m,getIn:y});break}else{if(!i(E))return;E=E[N]}}return E},"getIn"),m=r((I,E,R)=>{for(let N=0;N<I.length;N++){const L=I[N],q=(0,n.getDestructor)(L);if(q){(0,n.setInByDestructor)(E,q,R,{setIn:m,getIn:y});break}else{if(!i(E)||!p(E)||(0,s.isArr)(E)&&!d(L))return;if(!i(E[L])){if(R===void 0){E[L]===null&&(E[L]=R);return}N<I.length-1&&(E[L]=(0,s.isNum)(I[N+1])?[]:{})}N===I.length-1&&(E[L]=R),E=E[L]}}},"setIn"),g=r((I,E)=>{for(let R=0;R<I.length;R++){const N=I[R],L=(0,n.getDestructor)(N);if(L){(0,n.deleteInByDestructor)(E,L,{setIn:m,getIn:y,deleteIn:g});break}else{if(R===I.length-1&&i(E)){delete E[N];return}if(!i(E)||!p(E)||(E=E[N],!(0,s.isObj)(E)))return}}},"deleteIn"),x=Object.prototype.hasOwnProperty,P=r((I,E,R)=>{R instanceof w&&(R=R.length);for(let N=R;N<I.length;N++){const L=I[N],q=(0,n.getDestructor)(L);if(q)return(0,n.existInByDestructor)(E,q,R,{setIn:m,getIn:y,deleteIn:g,existIn:P});if(N===I.length-1)return x.call(E,L);if(!i(E)||!p(E)||(E=E[L],!(0,s.isObj)(E)))return!1}},"existIn"),S=r((I,E)=>{if(I instanceof w)return{entire:I.entire,segments:I.segments.slice(),isRegExp:!1,haveRelativePattern:I.haveRelativePattern,isWildMatchPattern:I.isWildMatchPattern,isMatchPattern:I.isMatchPattern,haveExcludePattern:I.haveExcludePattern,tree:I.tree};if((0,s.isStr)(I)){if(!I)return{entire:"",segments:[],isRegExp:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1};if(l(I))return{entire:I,segments:I.split("."),isRegExp:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1};const R=new h.Parser(I,w.parse(E)),N=R.parse();if(R.isMatchPattern)return{entire:I,segments:[],isRegExp:!1,haveRelativePattern:!1,isWildMatchPattern:R.isWildMatchPattern,haveExcludePattern:R.haveExcludePattern,isMatchPattern:!0,tree:N};{const L=R.data.segments;return{entire:L.join("."),segments:L,tree:N,isRegExp:!1,haveRelativePattern:R.haveRelativePattern,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1}}}else return(0,s.isFn)(I)&&I[u]?S(I.path):(0,s.isArr)(I)?{entire:I.join("."),segments:I.reduce((R,N)=>R.concat(j(N)),[]),isRegExp:!1,haveRelativePattern:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1}:(0,s.isRegExp)(I)?{entire:I,segments:[],isRegExp:!0,haveRelativePattern:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!0}:{entire:"",isRegExp:!1,segments:I!==void 0?[I]:[],haveRelativePattern:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1}},"parse"),j=r(I=>{if((0,s.isStr)(I)){I=I.replace(/\s*/g,"");try{const{segments:E,isMatchPattern:R}=S(I);return R?I:E}catch(E){return I}}else if(I instanceof w)return I.segments;return I},"parseString"),O=class Se{constructor(E,R){this.concat=r((...B)=>{if(this.isMatchPattern||this.isRegExp)throw new Error(`${this.entire} cannot be concat`);const U=new Se("");return U.segments=this.segments.concat(...B.map(J=>j(J))),U.entire=U.segments.join("."),U},"concat"),this.slice=r((B,U)=>{if(this.isMatchPattern||this.isRegExp)throw new Error(`${this.entire} cannot be slice`);const J=new Se("");return J.segments=this.segments.slice(B,U),J.entire=J.segments.join("."),J},"slice"),this.push=r((...B)=>this.concat(...B),"push"),this.pop=r(()=>{if(this.isMatchPattern||this.isRegExp)throw new Error(`${this.entire} cannot be pop`);return new Se(this.segments.slice(0,this.segments.length-1))},"pop"),this.splice=r((B,U,...J)=>{if(this.isMatchPattern||this.isRegExp)throw new Error(`${this.entire} cannot be splice`);J=J.reduce((ee,ne)=>ee.concat(j(ne)),[]);const Q=this.segments.slice();return Q.splice(B,U,...J),new Se(Q)},"splice"),this.forEach=r(B=>{if(this.isMatchPattern||this.isRegExp)throw new Error(`${this.entire} cannot be each`);this.segments.forEach(B)},"forEach"),this.map=r(B=>{if(this.isMatchPattern||this.isRegExp)throw new Error(`${this.entire} cannot be map`);return this.segments.map(B)},"map"),this.reduce=r((B,U)=>{if(this.isMatchPattern||this.isRegExp)throw new Error(`${this.entire} cannot be reduce`);return this.segments.reduce(B,U)},"reduce"),this.parent=r(()=>this.slice(0,this.length-1),"parent"),this.includes=r(B=>{const{entire:U,segments:J,isMatchPattern:Q}=Se.parse(B),ee=this.includesCache.get(U);if(ee!==void 0)return ee;const ne=r(pe=>(this.includesCache.set(U,pe),pe),"cacheWith");if(this.isMatchPattern){if(Q)throw new Error(`${this.entire} cannot be used to match ${U}`);return ne(this.match(J))}if(Q)throw new Error(`${this.entire} cannot be used to match ${U}`);if(J.length>this.segments.length)return ne(!1);for(let pe=0;pe<J.length;pe++)if(!(0,s.isEqual)(String(J[pe]),String(this.segments[pe])))return ne(!1);return ne(!0)},"includes"),this.transform=r((B,U)=>{if(!(0,s.isFn)(U))return"";if(this.isMatchPattern)throw new Error(`${this.entire} cannot be transformed`);const J=new RegExp(B),Q=this.segments.filter(ee=>J.test(ee));return U(...Q)},"transform"),this.match=r(B=>{var U,J;const Q=Se.parse(B),ee=this.matchCache.get(Q.entire);if(ee!==void 0)return ee.record&&ee.record.score!==void 0&&(this.matchScore=ee.record.score),ee.matched;const ne=r(pe=>(this.matchCache.set(Q.entire,pe),pe),"cacheWith");if(Q.isMatchPattern){if(this.isMatchPattern)throw new Error(`${Q.entire} cannot match ${this.entire}`);return this.matchScore=0,ne(Q.match(this.segments))}else if(this.isMatchPattern){if(this.isRegExp)try{return(J=(U=this.entire)==null?void 0:U.test)==null?void 0:J.call(U,Q.entire)}finally{this.entire.lastIndex=0}const pe={score:0},Ce=ne(new c.Matcher(this.tree,pe).match(Q.segments));return this.matchScore=pe.score,Ce.matched}else{const pe={score:0},Ce=ne(c.Matcher.matchSegments(this.segments,Q.segments,pe));return this.matchScore=pe.score,Ce.matched}},"match"),this.matchAliasGroup=r((B,U)=>{const J=Se.parse(B),Q=Se.parse(U),ee=this.match(J),ne=this.matchScore,pe=this.match(Q),Ce=this.matchScore;return this.haveExcludePattern?ne>=Ce?ee:pe:ee||pe},"matchAliasGroup"),this.existIn=r((B,U=0)=>P(this.segments,B,U),"existIn"),this.getIn=r(B=>y(this.segments,B),"getIn"),this.setIn=r((B,U)=>(m(this.segments,B,U),B),"setIn"),this.deleteIn=r(B=>(g(this.segments,B),B),"deleteIn"),this.ensureIn=r((B,U)=>{const J=this.getIn(B);return J===void 0?(this.setIn(B,U),this.getIn(B)):J},"ensureIn");const{tree:N,segments:L,entire:q,isRegExp:te,isMatchPattern:Y,isWildMatchPattern:re,haveRelativePattern:ae,haveExcludePattern:z}=S(E,R);this.entire=q,this.segments=L,this.isMatchPattern=Y,this.isWildMatchPattern=re,this.haveRelativePattern=ae,this.isRegExp=te,this.haveExcludePattern=z,this.tree=N,this.matchCache=new Map,this.includesCache=new Map}toString(){var E;return(E=this.entire)==null?void 0:E.toString()}toArr(){var E;return(E=this.segments)==null?void 0:E.slice()}get length(){return this.segments.length}static match(E){const R=Se.parse(E),N=r(L=>R.match(L),"matcher");return N[u]=!0,N.path=R,N}static isPathPattern(E){return!!((0,s.isStr)(E)||(0,s.isArr)(E)||(0,s.isRegExp)(E)||(0,s.isFn)(E)&&E[u])}static transform(E,R,N){return Se.parse(E).transform(R,N)}static parse(E="",R){if(E instanceof Se){const N=a.get(E.entire);return N||(a.set(E.entire,E),E)}else{if(E&&E[u])return Se.parse(E.path);{const N=R?Se.parse(R):"",L=`${E}:${N}`,q=a.get(L);return q||(E=new Se(E,R),a.set(L,E),E)}}}};r(O,"Path"),O.getIn=r((I,E)=>O.parse(E).getIn(I),"getIn"),O.setIn=r((I,E,R)=>O.parse(E).setIn(I,R),"setIn"),O.deleteIn=r((I,E)=>O.parse(E).deleteIn(I),"deleteIn"),O.existIn=r((I,E,R)=>O.parse(E).existIn(I,R),"existIn"),O.ensureIn=r((I,E,R)=>O.parse(E).ensureIn(I,R),"ensureIn");let w=O;return cr}var lr,Ss;function Gl(){if(Ss)return lr;Ss=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(n,c)=>{for(var h in c)e(n,h,{get:c[h],enumerable:!0})},b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of o(c))!f.call(n,a)&&a!==h&&e(n,a,{get:()=>c[a],enumerable:!(s=t(c,a))||s.enumerable});return n},v=n=>b(e({},"__esModule",{value:!0}),n),F={};r(F,{FormPath:()=>_.Path}),lr=v(F);var _=Ul();return lr}var ur,Ps;function Hl(){if(Ps)return ur;Ps=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{deprecate:()=>h}),ur=F(_);var n=Le();const c={};function h(s,a,u){if((0,n.isFn)(s))return function(i,l,p,d,y){return h(a,u),s.apply(this,arguments)};(0,n.isStr)(s)&&!c[s]&&(c[s]=!0,console.warn(new Error(`${s} has been deprecated. Do not continue to use this api.${a||""}`)))}return r(h,"deprecate"),ur}var pr,Os;function zl(){if(Os)return pr;Os=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{Subscribable:()=>s}),pr=F(_);var n=Ut(),c=Le();const h=class{constructor(){this.subscribers={index:0},this.subscribe=r(u=>{if((0,c.isFn)(u)){const i=this.subscribers.index+1;return this.subscribers[i]=u,this.subscribers.index++,i}},"subscribe"),this.unsubscribe=r(u=>{this.subscribers[u]?delete this.subscribers[u]:u||(this.subscribers={index:0})},"unsubscribe"),this.notify=r((u,i)=>{if(this.subscription&&this.subscription&&(0,c.isFn)(this.subscription.notify)&&this.subscription.notify.call(this,u)===!1||i)return;const l=r(p=>this.subscription&&(0,c.isFn)(this.subscription.filter)?this.subscription.filter.call(this,p):p,"filter");(0,n.each)(this.subscribers,p=>{(0,c.isFn)(p)&&p(l(u))})},"notify")}};r(h,"Subscribable");let s=h;return pr}var dr,Cs;function Jl(){if(Cs)return dr;Cs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(c,h)=>e(c,"name",{value:h,configurable:!0}),b=(c,h)=>{for(var s in h)e(c,s,{get:h[s],enumerable:!0})},v=(c,h,s,a)=>{if(h&&typeof h=="object"||typeof h=="function")for(let u of o(h))!f.call(c,u)&&u!==s&&e(c,u,{get:()=>h[u],enumerable:!(a=t(h,u))||a.enumerable});return c},F=c=>v(e({},"__esModule",{value:!0}),c),_={};b(_,{applyMiddleware:()=>n}),dr=F(_);const n=r((c,h=[])=>{const s=r((a,u)=>{const i=a;return Promise.resolve(u[0](a,l=>s(l!=null?l:i,u.slice(1))))},"compose");return new Promise((a,u)=>{s(c,h.concat(i=>{a(i)})).catch(u)})},"applyMiddleware");return dr}var mr,ws;function Wl(){if(ws)return mr;ws=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(O,w)=>e(O,"name",{value:w,configurable:!0}),b=(O,w)=>{for(var I in w)e(O,I,{get:w[I],enumerable:!0})},v=(O,w,I,E)=>{if(w&&typeof w=="object"||typeof w=="function")for(let R of o(w))!f.call(O,R)&&R!==I&&e(O,R,{get:()=>w[R],enumerable:!(E=t(w,R))||E.enumerable});return O},F=O=>v(e({},"__esModule",{value:!0}),O),_={};b(_,{lazyMerge:()=>S,merge:()=>j}),mr=F(_);var n=Le(),c=qt();function h(O){return s(O)&&!a(O)}r(h,"defaultIsMergeableObject");function s(O){return!!O&&typeof O=="object"}r(s,"isNonNullObject");function a(O){return"$$typeof"in O&&"_owner"in O||O._isAMomentObject||O._isJSONSchemaObject||(0,n.isFn)(O.toJS)||(0,n.isFn)(O.toJSON)?!0:!(0,n.isPlainObj)(O)}r(a,"isSpecial");function u(O){return Array.isArray(O)?[]:{}}r(u,"emptyTarget");function i(O,w){var I;return w.clone!==!1&&((I=w.isMergeableObject)!=null&&I.call(w,O))?P(u(O),O,w):O}r(i,"cloneUnlessOtherwiseSpecified");function l(O,w,I){return O.concat(w).map(function(E){return i(E,I)})}r(l,"defaultArrayMerge");function p(O,w){if(!w.customMerge)return P;const I=w.customMerge(O);return typeof I=="function"?I:P}r(p,"getMergeFunction");function d(O){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(O).filter(function(w){return O.propertyIsEnumerable(w)}):[]}r(d,"getEnumerableOwnPropertySymbols");function y(O){return(0,c.isValid)(O)?Object.keys(O).concat(d(O)):[]}r(y,"getKeys");function m(O,w){try{return w in O}catch(I){return!1}}r(m,"propertyIsOnObject");function g(O,w){return m(O,w)&&!(Object.hasOwnProperty.call(O,w)&&Object.propertyIsEnumerable.call(O,w))}r(g,"propertyIsUnsafe");function x(O,w,I){const E=I.assign?O||{}:{};return I.isMergeableObject(O)?(I.assign||y(O).forEach(function(R){E[R]=i(O[R],I)}),y(w).forEach(function(R){g(O,R)||((0,c.isEmpty)(O[R])?E[R]=w[R]:m(O,R)&&I.isMergeableObject(w[R])?E[R]=p(R,I)(O[R],w[R],I):E[R]=i(w[R],I))}),E):O}r(x,"mergeObject");function P(O,w,I){I=I||{},I.arrayMerge=I.arrayMerge||l,I.isMergeableObject=I.isMergeableObject||h,I.cloneUnlessOtherwiseSpecified=i;const E=Array.isArray(w),R=Array.isArray(O);return E===R?E?I.arrayMerge(O,w,I):x(O,w,I):i(w,I)}r(P,"deepmerge");const S=r((O,...w)=>{const I=r((E,R)=>{if(!(0,c.isValid)(R))return E;if(!(0,c.isValid)(E))return R;const N=typeof E=="object",L=typeof R=="object",q=typeof E=="function",te=typeof R=="function";if(!N&&!q)return R;if(!L&&!te)return E;const Y=r(()=>q?E():E,"getTarget"),re=r(()=>te?R():R,"getSource"),ae=r((ee,ne,pe)=>{const Ce=re(),rt=Y();return ne in Ce?Ce[ne]=pe:ne in rt?rt[ne]=pe:Ce[ne]=pe,!0},"set"),z=r((ee,ne)=>{const pe=re();return ne in pe?pe[ne]:Y()[ne]},"get"),B=r(()=>{const ee=re(),ne=Y(),pe=Object.keys(ne);for(const Ce in ee)Ce in ne||pe.push(Ce);return pe},"ownKeys"),U=r((ee,ne)=>({value:z(ee,ne),enumerable:!0,configurable:!0}),"getOwnPropertyDescriptor"),J=r((ee,ne)=>ne in re()||ne in Y(),"has"),Q=r(()=>Object.getPrototypeOf({}),"getPrototypeOf");return new Proxy(Object.create(null),{set:ae,get:z,ownKeys:B,getPrototypeOf:Q,getOwnPropertyDescriptor:U,has:J})},"_lazyMerge");return w.reduce((E,R)=>I(E,R),O)},"lazyMerge"),j=P;return mr}var fr,Es;function Yl(){if(Es)return fr;Es=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{defaults:()=>u}),fr=F(_);var n=Ut(),c=Le(),h=qt();const s=r(i=>{if(i!=null&&i._owner&&(i!=null&&i.$$typeof)||i!=null&&i._isAMomentObject||i!=null&&i._isJSONSchemaObject||i!=null&&i.toJS||i!=null&&i.toJSON)return!0},"isUnNormalObject"),a=r(i=>s(i)?!1:typeof i=="object","isEnumerableObject"),u=r((i,l)=>{if((0,c.getType)(i)!==(0,c.getType)(l)||!a(i)||!a(l))return(0,h.isEmpty)(l)?i:l;{const p=(0,c.isArr)(i)?[]:(0,c.isPlainObj)(i)?{}:i;return(0,n.each)(l,(d,y)=>{p[y]=u(i[y],d)}),(0,n.each)(i,(d,y)=>{(0,h.isValid)(p[y])||(p[y]=d)}),p}},"defaults");return fr}var hr,js;function ql(){if(js)return hr;js=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{uid:()=>h}),hr=F(_);let n=36,c="";for(;n--;)c+=n.toString(36);function h(s){let a="",u=s||11;for(;u--;)a+=c[Math.random()*36|0];return a}return r(h,"uid"),hr}var Is;function ue(){return Is||(Is=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Ut(),e.exports),v(_,vl(),e.exports),v(_,Le(),e.exports),v(_,yl(),e.exports),v(_,qt(),e.exports),v(_,kl(),e.exports),v(_,Tl(),e.exports),v(_,$n(),e.exports),v(_,Gl(),e.exports),v(_,Hl(),e.exports),v(_,zl(),e.exports),v(_,Jl(),e.exports),v(_,Wl(),e.exports),v(_,zt(),e.exports),v(_,Yl(),e.exports),v(_,ql(),e.exports)}(Vt)),Vt.exports}var br={exports:{}},vr,As;function Ue(){if(As)return vr;As=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(m,g)=>e(m,"name",{value:g,configurable:!0}),b=(m,g)=>{for(var x in g)e(m,x,{get:g[x],enumerable:!0})},v=(m,g,x,P)=>{if(g&&typeof g=="object"||typeof g=="function")for(let S of o(g))!f.call(m,S)&&S!==x&&e(m,S,{get:()=>g[S],enumerable:!(P=t(g,S))||P.enumerable});return m},F=m=>v(e({},"__esModule",{value:!0}),m),_={};b(_,{isArr:()=>i,isCollectionType:()=>d,isFn:()=>u,isMap:()=>c,isNormalType:()=>y,isPlainObj:()=>l,isSet:()=>h,isValid:()=>p,isWeakMap:()=>s,isWeakSet:()=>a}),vr=F(_);const n=Object.prototype.toString,c=r(m=>m&&m instanceof Map,"isMap"),h=r(m=>m&&m instanceof Set,"isSet"),s=r(m=>m&&m instanceof WeakMap,"isWeakMap"),a=r(m=>m&&m instanceof WeakSet,"isWeakSet"),u=r(m=>typeof m=="function","isFn"),i=Array.isArray,l=r(m=>n.call(m)==="[object Object]","isPlainObj"),p=r(m=>m!=null,"isValid"),d=r(m=>c(m)||s(m)||h(m)||a(m),"isCollectionType"),y=r(m=>l(m)||i(m),"isNormalType");return vr}var yr,Ds;function _r(){if(Ds)return yr;Ds=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{ArraySet:()=>h,toArray:()=>n}),yr=F(_);const n=r(s=>Array.isArray(s)?s:s!=null?[s]:[],"toArray"),c=class{constructor(a=[]){this.forEachIndex=0,this.value=a}add(a){this.has(a)||this.value.push(a)}has(a){return this.value.indexOf(a)>-1}delete(a){const u=this.value.length;if(u===0)return;if(u===1&&this.value[0]===a){this.value=[];return}const i=this.value.indexOf(a);i>-1&&(this.value.splice(i,1),i<=this.forEachIndex&&(this.forEachIndex-=1))}forEach(a){if(this.value.length!==0)for(this.forEachIndex=0;this.forEachIndex<this.value.length;this.forEachIndex++)a(this.value[this.forEachIndex])}batchDelete(a){if(this.value.length!==0)for(this.forEachIndex=0;this.forEachIndex<this.value.length;this.forEachIndex++){const u=this.value[this.forEachIndex];this.value.splice(this.forEachIndex,1),this.forEachIndex--,a(u)}}clear(){this.value.length=0}};r(c,"ArraySet");let h=c;return yr}var xr,Ms;function Pe(){if(Ms)return xr;Ms=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(O,w)=>{for(var I in w)e(O,I,{get:w[I],enumerable:!0})},b=(O,w,I,E)=>{if(w&&typeof w=="object"||typeof w=="function")for(let R of o(w))!f.call(O,R)&&R!==I&&e(O,R,{get:()=>w[R],enumerable:!(E=t(w,R))||E.enumerable});return O},v=O=>b(e({},"__esModule",{value:!0}),O),F={};r(F,{BatchCount:()=>i,BatchEndpoints:()=>g,BatchScope:()=>p,DependencyCollected:()=>d,MakeObModelSymbol:()=>P,ObModelNodeSymbol:()=>j,ObModelSymbol:()=>S,ObserverListeners:()=>x,PendingReactions:()=>y,PendingScopeReactions:()=>m,ProxyRaw:()=>n,RawNode:()=>s,RawProxy:()=>c,RawReactionsMap:()=>a,RawShallowProxy:()=>h,ReactionStack:()=>u,UntrackCount:()=>l}),xr=v(F);var _=_r();const n=new WeakMap,c=new WeakMap,h=new WeakMap,s=new WeakMap,a=new WeakMap,u=[],i={value:0},l={value:0},p={value:!1},d={value:!1},y=new _.ArraySet,m=new _.ArraySet,g=new _.ArraySet,x=new _.ArraySet,P=Symbol("MakeObModelSymbol"),S=Symbol("ObModelSymbol"),j=Symbol("ObModelNodeSymbol");return xr}var gr,Rs;function We(){if(Rs)return gr;Rs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(d,y)=>e(d,"name",{value:y,configurable:!0}),b=(d,y)=>{for(var m in y)e(d,m,{get:y[m],enumerable:!0})},v=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of o(y))!f.call(d,x)&&x!==m&&e(d,x,{get:()=>y[x],enumerable:!(g=t(y,x))||g.enumerable});return d},F=d=>v(e({},"__esModule",{value:!0}),d),_={};b(_,{DataChange:()=>s,DataNode:()=>u,buildDataTree:()=>p,getDataNode:()=>i,setDataNode:()=>l}),gr=F(_);var n=Pe(),c=tt();const h=class{constructor(y,m){this.node=m,this.key=y.key,this.type=y.type,this.object=y.target,this.value=y.value,this.oldValue=y.oldValue}get path(){return this.node.path.concat(this.key)}};r(h,"DataChange");let s=h;const a=class{constructor(y,m,g){this.target=y,this.key=m,this.value=g}get path(){return this.parent?this.parent.path.concat(this.key):this.key?[this.key]:[]}get targetRaw(){return(0,c.raw)(this.target)}get parent(){if(this.target)return i(this.targetRaw)}isEqual(y){return this.key?y.targetRaw===this.targetRaw&&y.key===this.key:y.value===this.value}contains(y){if(y===this)return!0;let m=y.parent;for(;m;){if(this.isEqual(m))return!0;m=m.parent}return!1}};r(a,"DataNode");let u=a;const i=r(d=>d!=null&&d[n.ObModelNodeSymbol]?d[n.ObModelNodeSymbol]:n.RawNode.get(d),"getDataNode"),l=r((d,y)=>{if(d!=null&&d[n.ObModelSymbol]){d[n.ObModelNodeSymbol]=y;return}n.RawNode.set(d,y)},"setDataNode"),p=r((d,y,m)=>{const g=(0,c.raw)(m),x=i(g);if(x)return x;l(g,new u(d,y,m))},"buildDataTree");return gr}var Fr,Ns;function tt(){if(Ns)return Fr;Ns=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(S,j)=>e(S,"name",{value:j,configurable:!0}),b=(S,j)=>{for(var O in j)e(S,O,{get:j[O],enumerable:!0})},v=(S,j,O,w)=>{if(j&&typeof j=="object"||typeof j=="function")for(let I of o(j))!f.call(S,I)&&I!==O&&e(S,I,{get:()=>j[I],enumerable:!(w=t(j,I))||w.enumerable});return S},F=S=>v(e({},"__esModule",{value:!0}),S),_={};b(_,{contains:()=>x,hasCollected:()=>P,isAnnotation:()=>l,isObservable:()=>i,isSupportObservable:()=>p,markObservable:()=>y,markRaw:()=>d,raw:()=>m,toJS:()=>g}),Fr=F(_);var n=Ue(),c=Pe(),h=We();const s=Symbol("RAW_TYPE"),a=Symbol("OBSERVABLE_TYPE"),u=Object.prototype.hasOwnProperty,i=r(S=>c.ProxyRaw.has(S)||!!(S!=null&&S[c.ObModelSymbol]),"isObservable"),l=r(S=>S&&!!S[c.MakeObModelSymbol],"isAnnotation"),p=r(S=>(0,n.isValid)(S)?(0,n.isArr)(S)?!0:(0,n.isPlainObj)(S)?S[s]?!1:S[a]?!0:!("$$typeof"in S&&"_owner"in S||S._isAMomentObject||S._isJSONSchemaObject||(0,n.isFn)(S.toJS)||(0,n.isFn)(S.toJSON)):!!((0,n.isMap)(S)||(0,n.isWeakMap)(S)||(0,n.isSet)(S)||(0,n.isWeakSet)(S)):!1,"isSupportObservable"),d=r(S=>{if(S)return(0,n.isFn)(S)?S.prototype[s]=!0:S[s]=!0,S},"markRaw"),y=r(S=>{if(S)return(0,n.isFn)(S)?S.prototype[a]=!0:S[a]=!0,S},"markObservable"),m=r(S=>S!=null&&S[c.ObModelSymbol]?S[c.ObModelSymbol]:c.ProxyRaw.get(S)||S,"raw"),g=r(S=>{const j=new WeakSet,O=r(w=>{if(j.has(w)||w&&w[s])return w;if((0,n.isArr)(w)){if(i(w)){j.add(w);const I=[];return w.forEach(E=>{I.push(O(E))}),j.delete(w),I}}else if((0,n.isPlainObj)(w)&&i(w)){j.add(w);const I={};for(const E in w)u.call(w,E)&&(I[E]=O(w[E]));return j.delete(w),I}return w},"_toJS");return O(S)},"toJS"),x=r((S,j)=>{const O=m(S),w=m(j);if(O===w)return!0;const I=(0,h.getDataNode)(O),E=(0,h.getDataNode)(w);return!I||!E?!1:I.contains(E)},"contains"),P=r(S=>(c.DependencyCollected.value=!1,S==null||S(),c.DependencyCollected.value),"hasCollected");return Fr}var Sr,ks;function Te(){if(ks)return Sr;ks=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(z,B)=>e(z,"name",{value:B,configurable:!0}),b=(z,B)=>{for(var U in B)e(z,U,{get:B[U],enumerable:!0})},v=(z,B,U,J)=>{if(B&&typeof B=="object"||typeof B=="function")for(let Q of o(B))!f.call(z,Q)&&Q!==U&&e(z,Q,{get:()=>B[Q],enumerable:!(J=t(B,Q))||J.enumerable});return z},F=z=>v(e({},"__esModule",{value:!0}),z),_={};b(_,{batchEnd:()=>O,batchScopeEnd:()=>I,batchScopeStart:()=>w,batchStart:()=>j,bindComputedReactions:()=>y,bindTargetKeyWithCurrentReaction:()=>d,disposeBindingReactions:()=>S,disposeEffects:()=>ae,executeBatchEndpoints:()=>Y,executePendingReactions:()=>te,hasDepsChange:()=>re,hasRunningReaction:()=>g,isBatching:()=>N,isScopeBatching:()=>L,isUntracking:()=>q,releaseBindingReactions:()=>x,runReactionsFromTargetKey:()=>m,suspendComputedReactions:()=>P,untrackEnd:()=>R,untrackStart:()=>E}),Sr=F(_);var n=_r(),c=Ue(),h=Pe();const s=Symbol("iteration key"),a=r((z,B,U)=>{const J=h.RawReactionsMap.get(z);if(J){const Q=J.get(B);return Q?Q.add(U):J.set(B,new n.ArraySet([U])),J}else{const Q=new Map([[B,new n.ArraySet([U])]]);return h.RawReactionsMap.set(z,Q),Q}},"addRawReactionsMap"),u=r((z,B)=>{const U=z._reactionsSet;return U?U.add(B):z._reactionsSet=new n.ArraySet([B]),U},"addReactionsMapToReaction"),i=r((z,B)=>{const U=h.RawReactionsMap.get(z),J=[];if(U){const Q=U.get(B);Q&&Q.forEach(ee=>{J.indexOf(ee)===-1&&J.push(ee)})}return J},"getReactionsFromTargetKey"),l=r((z,B)=>{const U=i(z,B),J=h.UntrackCount.value;h.UntrackCount.value=0;for(let Q=0,ee=U.length;Q<ee;Q++){const ne=U[Q];ne._isComputed?ne._scheduler(ne):L()?h.PendingScopeReactions.add(ne):N()?h.PendingReactions.add(ne):(0,c.isFn)(ne._scheduler)?ne._scheduler(ne):ne()}h.UntrackCount.value=J},"runReactions"),p=r(z=>{h.ObserverListeners.forEach(B=>B(z))},"notifyObservers"),d=r(z=>{let{key:B,type:U,target:J}=z;U==="iterate"&&(B=s);const Q=h.ReactionStack.length;if(Q===0)return;const ee=h.ReactionStack[Q-1];q()||ee&&(h.DependencyCollected.value=!0,u(ee,a(J,B,ee)))},"bindTargetKeyWithCurrentReaction"),y=r(z=>{if((0,c.isFn)(z)){const B=h.ReactionStack[h.ReactionStack.length-1];if(B){const U=B._computesSet;U?U.add(z):B._computesSet=new n.ArraySet([z])}}},"bindComputedReactions"),m=r(z=>{let{key:B,type:U,target:J,oldTarget:Q}=z;if(j(),p(z),U==="clear"?Q.forEach((ee,ne)=>{l(J,ne)}):l(J,B),U==="add"||U==="delete"||U==="clear"){const ee=Array.isArray(J)?"length":s;l(J,ee)}O()},"runReactionsFromTargetKey"),g=r(()=>h.ReactionStack.length>0,"hasRunningReaction"),x=r(z=>{var B;(B=z._reactionsSet)==null||B.forEach(U=>{U.forEach(J=>{J.delete(z)})}),h.PendingReactions.delete(z),h.PendingScopeReactions.delete(z),delete z._reactionsSet},"releaseBindingReactions"),P=r(z=>{var B;(B=z._computesSet)==null||B.forEach(U=>{i(U._context,U._property).length===0&&(S(U),U._dirty=!0)})},"suspendComputedReactions"),S=r(z=>{z._disposed=!0,x(z),P(z)},"disposeBindingReactions"),j=r(()=>{h.BatchCount.value++},"batchStart"),O=r(()=>{if(h.BatchCount.value--,h.BatchCount.value===0){const z=h.UntrackCount.value;h.UntrackCount.value=0,te(),Y(),h.UntrackCount.value=z}},"batchEnd"),w=r(()=>{h.BatchScope.value=!0},"batchScopeStart"),I=r(()=>{const z=h.UntrackCount.value;h.BatchScope.value=!1,h.UntrackCount.value=0,h.PendingScopeReactions.batchDelete(B=>{(0,c.isFn)(B._scheduler)?B._scheduler(B):B()}),h.UntrackCount.value=z},"batchScopeEnd"),E=r(()=>{h.UntrackCount.value++},"untrackStart"),R=r(()=>{h.UntrackCount.value--},"untrackEnd"),N=r(()=>h.BatchCount.value>0,"isBatching"),L=r(()=>h.BatchScope.value,"isScopeBatching"),q=r(()=>h.UntrackCount.value>0,"isUntracking"),te=r(()=>{h.PendingReactions.batchDelete(z=>{(0,c.isFn)(z._scheduler)?z._scheduler(z):z()})},"executePendingReactions"),Y=r(()=>{h.BatchEndpoints.batchDelete(z=>{z()})},"executeBatchEndpoints"),re=r((z,B)=>z===B?!1:!!(z.length!==B.length||z.some((U,J)=>U!==B[J])),"hasDepsChange"),ae=r(z=>{if(z._effects)try{j(),z._effects.queue.forEach(B=>{!B||!B.dispose||B.dispose()})}finally{O()}},"disposeEffects");return Sr}var Pr,Ts;function Kl(){if(Ts)return Pr;Ts=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(m,g)=>e(m,"name",{value:g,configurable:!0}),b=(m,g)=>{for(var x in g)e(m,x,{get:g[x],enumerable:!0})},v=(m,g,x,P)=>{if(g&&typeof g=="object"||typeof g=="function")for(let S of o(g))!f.call(m,S)&&S!==x&&e(m,S,{get:()=>g[S],enumerable:!(P=t(g,S))||P.enumerable});return m},F=m=>v(e({},"__esModule",{value:!0}),m),_={};b(_,{baseHandlers:()=>y,collectionHandlers:()=>d}),Pr=F(_);var n=Pe(),c=tt(),h=Ve(),s=Te();const a=new Set(Object.getOwnPropertyNames(Symbol).reduce((m,g)=>{if(g==="arguments"||g==="caller")return m;const x=Symbol[g];return typeof x=="symbol"?m.concat(x):m},[])),u=Object.prototype.hasOwnProperty;function i(m,g,x){const P=n.RawProxy.get(x);return P||(!(0,c.isObservable)(x)&&(0,c.isSupportObservable)(x)?(0,h.createObservable)(m,g,x):x)}r(i,"findObservable");function l(m,g,x,P){const S=x.next;return x.next=()=>{let{done:j,value:O}=S.call(x);return j||(P?O[1]=i(m,g,O[1]):O=i(m,g,O)),{done:j,value:O}},x}r(l,"patchIterator");const p={has(m){const g=n.ProxyRaw.get(this),x=Reflect.getPrototypeOf(this);return(0,s.bindTargetKeyWithCurrentReaction)({target:g,key:m,type:"has"}),x.has.apply(g,arguments)},get(m){const g=n.ProxyRaw.get(this),x=Reflect.getPrototypeOf(this);return(0,s.bindTargetKeyWithCurrentReaction)({target:g,key:m,type:"get"}),i(g,m,x.get.apply(g,arguments))},add(m){const g=n.ProxyRaw.get(this),x=Reflect.getPrototypeOf(this),P=x.has.call(g,m),S=x.add.apply(g,arguments);return P||(0,s.runReactionsFromTargetKey)({target:g,key:m,value:m,type:"add"}),S},set(m,g){const x=n.ProxyRaw.get(this),P=Reflect.getPrototypeOf(this),S=P.has.call(x,m),j=P.get.call(x,m),O=P.set.apply(x,arguments);return S?g!==j&&(0,s.runReactionsFromTargetKey)({target:x,key:m,value:g,oldValue:j,type:"set"}):(0,s.runReactionsFromTargetKey)({target:x,key:m,value:g,type:"add"}),O},delete(m){const g=n.ProxyRaw.get(this),x=Reflect.getPrototypeOf(this),P=x.has.call(g,m),S=x.get?x.get.call(g,m):void 0,j=x.delete.apply(g,arguments);return P&&(0,s.runReactionsFromTargetKey)({target:g,key:m,oldValue:S,type:"delete"}),j},clear(){const m=n.ProxyRaw.get(this),g=Reflect.getPrototypeOf(this),x=m.size!==0,P=m instanceof Map?new Map(m):new Set(m),S=g.clear.apply(m,arguments);return x&&(0,s.runReactionsFromTargetKey)({target:m,oldTarget:P,type:"clear"}),S},forEach(m,...g){const x=n.ProxyRaw.get(this),P=Reflect.getPrototypeOf(this);(0,s.bindTargetKeyWithCurrentReaction)({target:x,type:"iterate"});const S=r((j,O,...w)=>m(i(x,O,j),O,...w),"wrappedCb");return P.forEach.call(x,S,...g)},keys(){const m=n.ProxyRaw.get(this),g=Reflect.getPrototypeOf(this);return(0,s.bindTargetKeyWithCurrentReaction)({target:m,type:"iterate"}),g.keys.apply(m,arguments)},values(){const m=n.ProxyRaw.get(this),g=Reflect.getPrototypeOf(this);(0,s.bindTargetKeyWithCurrentReaction)({target:m,type:"iterate"});const x=g.values.apply(m,arguments);return l(m,"",x,!1)},entries(){const m=n.ProxyRaw.get(this),g=Reflect.getPrototypeOf(this);(0,s.bindTargetKeyWithCurrentReaction)({target:m,type:"iterate"});const x=g.entries.apply(m,arguments);return l(m,"",x,!0)},[Symbol.iterator](){const m=n.ProxyRaw.get(this),g=Reflect.getPrototypeOf(this);(0,s.bindTargetKeyWithCurrentReaction)({target:m,type:"iterate"});const x=g[Symbol.iterator].apply(m,arguments);return l(m,"",x,m instanceof Map)},get size(){const m=n.ProxyRaw.get(this),g=Reflect.getPrototypeOf(this);return(0,s.bindTargetKeyWithCurrentReaction)({target:m,type:"iterate"}),Reflect.get(g,"size",m)}},d={get(m,g,x){return m=u.call(p,g)?p:m,Reflect.get(m,g,x)}},y={get(m,g,x){if(!g)return;const P=m[g];if(typeof g=="symbol"&&a.has(g))return P;(0,s.bindTargetKeyWithCurrentReaction)({target:m,key:g,receiver:x,type:"get"});const S=n.RawProxy.get(P);if(S)return S;if(!(0,c.isObservable)(P)&&(0,c.isSupportObservable)(P)){const j=Reflect.getOwnPropertyDescriptor(m,g);if(!j||!(j.writable===!1&&j.configurable===!1))return(0,h.createObservable)(m,g,P)}return P},has(m,g){const x=Reflect.has(m,g);return(0,s.bindTargetKeyWithCurrentReaction)({target:m,key:g,type:"has"}),x},ownKeys(m){const g=Reflect.ownKeys(m);return(0,s.bindTargetKeyWithCurrentReaction)({target:m,type:"iterate"}),g},set(m,g,x,P){if(g==="__proto__")return m[g]=x,!0;const S=u.call(m,g),j=(0,h.createObservable)(m,g,x),O=m[g];return m[g]=j,S?x!==O&&(0,s.runReactionsFromTargetKey)({target:m,key:g,value:j,oldValue:O,receiver:P,type:"set"}):(0,s.runReactionsFromTargetKey)({target:m,key:g,value:j,oldValue:O,receiver:P,type:"add"}),!0},deleteProperty(m,g){const x=m[g];return delete m[g],(0,s.runReactionsFromTargetKey)({target:m,key:g,oldValue:x,type:"delete"}),!0}};return Pr}var Or,Vs;function Ve(){if(Vs)return Or;Vs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(P,S)=>e(P,"name",{value:S,configurable:!0}),b=(P,S)=>{for(var j in S)e(P,j,{get:S[j],enumerable:!0})},v=(P,S,j,O)=>{if(S&&typeof S=="object"||typeof S=="function")for(let w of o(S))!f.call(P,w)&&w!==j&&e(P,w,{get:()=>S[w],enumerable:!(O=t(S,w))||O.enumerable});return P},F=P=>v(e({},"__esModule",{value:!0}),P),_={};b(_,{createAnnotation:()=>d,createBindFunction:()=>g,createBoundaryAnnotation:()=>x,createBoundaryFunction:()=>m,createObservable:()=>p,getObservableMaker:()=>y}),Or=F(_);var n=Ue(),c=Pe(),h=tt(),s=Kl(),a=We();const u=r((P,S)=>{const j=new Proxy(P,s.baseHandlers);return c.ProxyRaw.set(j,P),S?c.RawShallowProxy.set(P,j):c.RawProxy.set(P,j),j},"createNormalProxy"),i=r((P,S)=>{const j=new Proxy(P,s.collectionHandlers);return c.ProxyRaw.set(j,P),S?c.RawShallowProxy.set(P,j):c.RawProxy.set(P,j),j},"createCollectionProxy"),l=r(P=>(0,n.isNormalType)(P)?u(P,!0):(0,n.isCollectionType)(P)?i(P,!0):P,"createShallowProxy"),p=r((P,S,j,O)=>{if(typeof j!="object")return j;const w=c.ProxyRaw.get(j);if(w){const I=(0,a.getDataNode)(w);return I.target||(I.target=P),I.key=S,j}if(!(0,h.isSupportObservable)(j))return j;if(P){const I=c.ProxyRaw.get(P)||P;if(c.RawShallowProxy.get(I))return j}return(0,a.buildDataTree)(P,S,j),O?l(j):(0,n.isNormalType)(j)?u(j):(0,n.isCollectionType)(j)?i(j):j},"createObservable"),d=r(P=>{const S=r(j=>P({value:j}),"annotation");return(0,n.isFn)(P)&&(S[c.MakeObModelSymbol]=P),S},"createAnnotation"),y=r(P=>{if(P[c.MakeObModelSymbol])return P[c.MakeObModelSymbol][c.MakeObModelSymbol]?y(P[c.MakeObModelSymbol]):P[c.MakeObModelSymbol]},"getObservableMaker"),m=r((P,S)=>{function j(O){let w;try{P(),(0,n.isFn)(O)&&(w=O())}finally{S()}return w}return r(j,"boundary"),j.bound=g(j),j},"createBoundaryFunction"),g=r(P=>{function S(j,O){return(...w)=>P(()=>j.apply(O,w))}return r(S,"bind"),S},"createBindFunction"),x=r((P,S)=>{const j=m(P,S),O=d(({target:w,key:I})=>(w[I]=j.bound(w[I],w),w));return j[c.MakeObModelSymbol]=O,j.bound[c.MakeObModelSymbol]=O,j},"createBoundaryAnnotation");return Or}var Cr,Bs;function Zl(){if(Bs)return Cr;Bs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},b=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},v=a=>b(e({},"__esModule",{value:!0}),a),F={};r(F,{batch:()=>s}),Cr=v(F);var _=Ue(),n=Pe(),c=Ve(),h=Te();const s=(0,c.createBoundaryAnnotation)(h.batchStart,h.batchEnd);return s.scope=(0,c.createBoundaryAnnotation)(h.batchScopeStart,h.batchScopeEnd),s.endpoint=a=>{(0,_.isFn)(a)&&(n.BatchCount.value===0?a():n.BatchEndpoints.add(a))},Cr}var wr,Ls;function Us(){if(Ls)return wr;Ls=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(h,s)=>{for(var a in s)e(h,a,{get:s[a],enumerable:!0})},b=(h,s,a,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of o(s))!f.call(h,i)&&i!==a&&e(h,i,{get:()=>s[i],enumerable:!(u=t(s,i))||u.enumerable});return h},v=h=>b(e({},"__esModule",{value:!0}),h),F={};r(F,{action:()=>c}),wr=v(F);var _=Ve(),n=Te();const c=(0,_.createBoundaryAnnotation)(()=>{(0,n.batchStart)(),(0,n.untrackStart)()},()=>{(0,n.untrackEnd)(),(0,n.batchEnd)()});return c.scope=(0,_.createBoundaryAnnotation)(()=>{(0,n.batchScopeStart)(),(0,n.untrackStart)()},()=>{(0,n.untrackEnd)(),(0,n.batchScopeEnd)()}),wr}var Er,Gs;function Ql(){if(Gs)return Er;Gs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(h,s)=>{for(var a in s)e(h,a,{get:s[a],enumerable:!0})},b=(h,s,a,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of o(s))!f.call(h,i)&&i!==a&&e(h,i,{get:()=>s[i],enumerable:!(u=t(s,i))||u.enumerable});return h},v=h=>b(e({},"__esModule",{value:!0}),h),F={};r(F,{untracked:()=>c}),Er=v(F);var _=Ve(),n=Te();const c=(0,_.createBoundaryFunction)(n.untrackStart,n.untrackEnd);return Er}var jr={exports:{}},Ir,Hs;function Xl(){if(Hs)return Ir;Hs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{observable:()=>h}),Ir=F(_);var n=Ve(),c=Te();const h=(0,n.createAnnotation)(({target:s,key:a,value:u})=>{const i={value:(0,n.createObservable)(s,a,s?s[a]:u)};function l(){return(0,c.bindTargetKeyWithCurrentReaction)({target:s,key:a,type:"get"}),i.value}r(l,"get");function p(d){const y=i.value;d=(0,n.createObservable)(s,a,d),i.value=d,y!==d&&(0,c.runReactionsFromTargetKey)({target:s,key:a,type:"set",oldValue:y,value:d})}return r(p,"set"),s?(Object.defineProperty(s,a,{set:p,get:l,enumerable:!0,configurable:!1}),s):i.value});return Ir}var Ar,zs;function $l(){if(zs)return Ar;zs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{box:()=>a}),Ar=F(_);var n=Pe(),c=Ve(),h=Te(),s=We();const a=(0,c.createAnnotation)(({target:u,key:i,value:l})=>{const p={value:u?u[i]:l},d={set:m,get:y};n.ProxyRaw.set(d,p),n.RawProxy.set(p,d),(0,s.buildDataTree)(u,i,p);function y(){return(0,h.bindTargetKeyWithCurrentReaction)({target:p,key:i,type:"get"}),p.value}r(y,"get");function m(g){const x=p.value;p.value=g,x!==g&&(0,h.runReactionsFromTargetKey)({target:p,key:i,type:"set",oldValue:x,value:g})}return r(m,"set"),u?(Object.defineProperty(u,i,{value:d,enumerable:!0,configurable:!1,writable:!1}),u):d});return Ar}var Dr,Js;function eu(){if(Js)return Dr;Js=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{ref:()=>a}),Dr=F(_);var n=Pe(),c=Ve(),h=Te(),s=We();const a=(0,c.createAnnotation)(({target:u,key:i,value:l})=>{const p={value:u?u[i]:l},d={},y=u||p,m=u?i:"value";function g(){return(0,h.bindTargetKeyWithCurrentReaction)({target:y,key:m,type:"get"}),p.value}r(g,"get");function x(P){const S=p.value;p.value=P,S!==P&&(0,h.runReactionsFromTargetKey)({target:y,key:m,type:"set",oldValue:S,value:P})}return r(x,"set"),u?(Object.defineProperty(u,i,{get:g,set:x,enumerable:!0}),u):(Object.defineProperty(d,"value",{set:x,get:g}),(0,s.buildDataTree)(u,i,p),d[n.ObModelSymbol]=p,d)});return Dr}var Mr,Ws;function tu(){if(Ws)return Mr;Ws=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{shallow:()=>h}),Mr=F(_);var n=Ve(),c=Te();const h=(0,n.createAnnotation)(({target:s,key:a,value:u})=>{const i={value:(0,n.createObservable)(s,a,s?s[a]:u,!0)};function l(){return(0,c.bindTargetKeyWithCurrentReaction)({target:s,key:a,type:"get"}),i.value}r(l,"get");function p(d){const y=i.value;d=(0,n.createObservable)(s,a,d,!0),i.value=d,y!==d&&(0,c.runReactionsFromTargetKey)({target:s,key:a,type:"set",oldValue:y,value:d})}return r(p,"set"),s?(Object.defineProperty(s,a,{set:p,get:l,enumerable:!0,configurable:!1}),s):i.value});return Mr}var Rr,Ys;function ru(){if(Ys)return Rr;Ys=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(g,x)=>e(g,"name",{value:x,configurable:!0}),b=(g,x)=>{for(var P in x)e(g,P,{get:x[P],enumerable:!0})},v=(g,x,P,S)=>{if(x&&typeof x=="object"||typeof x=="function")for(let j of o(x))!f.call(g,j)&&j!==P&&e(g,j,{get:()=>x[j],enumerable:!(S=t(x,j))||S.enumerable});return g},F=g=>v(e({},"__esModule",{value:!0}),g),_={};b(_,{computed:()=>m}),Rr=F(_);var n=Ue(),c=Pe(),h=Ve(),s=Te(),a=We();const u=Object.getOwnPropertyDescriptor,i=Object.getPrototypeOf,l=Symbol("ClassDescriptorSymbol");function p(g,x){if(g)return u(g,x)||p(i(g),x)}r(p,"getPropertyDescriptor");function d(g,x){const P=g.constructor;if(P===Object||P===Array)return p(g,x);const S=P[l]||{},j=S[x];if(j)return j;const O=p(g,x);return P[l]=S,S[x]=O,O}r(d,"getPropertyDescriptorCache");function y(g,x,P){if(!g)return P?(0,n.isFn)(P)?{get:P}:P:{};const S=d(g,x);return S||{}}r(y,"getPrototypeDescriptor");const m=(0,h.createAnnotation)(({target:g,key:x,value:P})=>{const S={},j={},O=g||S,w=g?x:"value",I=y(g,w,P);function E(){var q;S.value=(q=I.get)==null?void 0:q.call(O)}r(E,"compute");function R(){if(c.ReactionStack.indexOf(R)===-1){(0,s.releaseBindingReactions)(R);try{c.ReactionStack.push(R),E()}finally{c.ReactionStack.pop()}}}r(R,"reaction"),R._name="ComputedReaction",R._scheduler=()=>{R._dirty=!0,(0,s.runReactionsFromTargetKey)({target:O,key:w,value:S.value,type:"set"})},R._isComputed=!0,R._dirty=!0,R._context=O,R._property=w;function N(){return(0,s.hasRunningReaction)()&&(0,s.bindComputedReactions)(R),(0,s.isUntracking)()?E():R._dirty&&(R(),R._dirty=!1),(0,s.bindTargetKeyWithCurrentReaction)({target:O,key:w,type:"get"}),S.value}r(N,"get");function L(q){var te;try{(0,s.batchStart)(),(te=I.set)==null||te.call(O,q)}finally{(0,s.batchEnd)()}}return r(L,"set"),g?(Object.defineProperty(g,x,{get:N,set:L,enumerable:!0}),g):(Object.defineProperty(j,"value",{set:L,get:N}),(0,a.buildDataTree)(g,x,S),j[c.ObModelSymbol]=S,j)});return Rr}var qs;function ou(){return qs||(qs=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Xl(),e.exports),v(_,$l(),e.exports),v(_,eu(),e.exports),v(_,tu(),e.exports),v(_,ru(),e.exports)}(jr)),jr.exports}var Nr,Ks;function Zs(){if(Ks)return Nr;Ks=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(l,p)=>t(l,"name",{value:p,configurable:!0}),F=(l,p)=>{for(var d in p)t(l,d,{get:p[d],enumerable:!0})},_=(l,p,d,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let m of f(p))!b.call(l,m)&&m!==d&&t(l,m,{get:()=>p[m],enumerable:!(y=o(p,m))||y.enumerable});return l},n=(l,p,d)=>(d=l!=null?e(r(l)):{},_(!l||!l.__esModule?t(d,"default",{value:l,enumerable:!0}):d,l)),c=l=>_(t({},"__esModule",{value:!0}),l),h={};F(h,{observable:()=>i}),Nr=c(h);var s=n(ou()),a=Pe(),u=Ve();function i(l){return(0,u.createObservable)(null,null,l)}return v(i,"observable"),i.box=s.box,i.ref=s.ref,i.deep=s.observable,i.shallow=s.shallow,i.computed=s.computed,i[a.MakeObModelSymbol]=s.observable,Nr}var kr,Qs;function nu(){if(Qs)return kr;Qs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(d,y)=>e(d,"name",{value:y,configurable:!0}),b=(d,y)=>{for(var m in y)e(d,m,{get:y[m],enumerable:!0})},v=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of o(y))!f.call(d,x)&&x!==m&&e(d,x,{get:()=>y[x],enumerable:!(g=t(y,x))||g.enumerable});return d},F=d=>v(e({},"__esModule",{value:!0}),d),_={};b(_,{define:()=>l,model:()=>p}),kr=F(_);var n=Us(),c=Ue(),h=Pe(),s=tt(),a=Ve(),u=Zs(),i=We();function l(d,y){if((0,s.isObservable)(d)||!(0,s.isSupportObservable)(d))return d;d[h.ObModelSymbol]=d,(0,i.buildDataTree)(void 0,void 0,d);for(const m in y){const g=y[m];(0,s.isAnnotation)(g)&&(0,a.getObservableMaker)(g)({target:d,key:m})}return d}r(l,"define");function p(d){const y=Object.keys(d||{}).reduce((m,g)=>{const x=Object.getOwnPropertyDescriptor(d,g);return x&&x.get?m[g]=u.observable.computed:(0,c.isFn)(d[g])?m[g]=n.action:m[g]=u.observable,m},{});return l(d,y)}return r(p,"model"),kr}var Tr,Xs;function su(){if(Xs)return Tr;Xs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{autorun:()=>a,reaction:()=>u}),Tr=F(_);var n=_r(),c=Ue(),h=Pe(),s=Te();const a=r((i,l="AutoRun")=>{const p=r(()=>{if((0,c.isFn)(i)&&!(p._boundary>0)&&h.ReactionStack.indexOf(p)===-1){(0,s.releaseBindingReactions)(p);try{(0,s.batchStart)(),h.ReactionStack.push(p),i()}finally{h.ReactionStack.pop(),p._boundary++,(0,s.batchEnd)(),p._boundary=0,p._memos.cursor=0,p._effects.cursor=0}}},"reaction"),d=r(()=>{p._memos={queue:[],cursor:0},p._effects={queue:[],cursor:0}},"cleanRefs");return p._boundary=0,p._name=l,d(),p(),()=>{(0,s.disposeBindingReactions)(p),(0,s.disposeEffects)(p),d()}},"autorun");a.memo=(i,l)=>{if(!(0,c.isFn)(i))return;const p=h.ReactionStack[h.ReactionStack.length-1];if(!p||!p._memos)throw new Error("autorun.memo must used in autorun function body.");const d=(0,n.toArray)(l||[]),y=p._memos.cursor++,m=p._memos.queue[y];if(!m||(0,s.hasDepsChange)(d,m.deps)){const g=i();return p._memos.queue[y]={value:g,deps:d},g}return m.value},a.effect=(i,l)=>{if(!(0,c.isFn)(i))return;const p=h.ReactionStack[h.ReactionStack.length-1];if(!p||!p._effects)throw new Error("autorun.effect must used in autorun function body.");const d=p._effects,y=(0,n.toArray)(l||[{}]),m=d.cursor++,g=d.queue[m];(!g||(0,s.hasDepsChange)(y,g.deps))&&(Promise.resolve(0).then(()=>{if(p._disposed)return;const x=i();(0,c.isFn)(x)&&(d.queue[m].dispose=x)}),d.queue[m]={deps:y})};const u=r((i,l,p)=>{const d=T({name:"Reaction"},p),y={},m=r(()=>(0,c.isFn)(d.equals)?!d.equals(y.oldValue,y.currentValue):y.oldValue!==y.currentValue,"dirtyCheck"),g=r(()=>{try{(0,s.batchStart)(),(0,c.isFn)(l)&&l(y.currentValue,y.oldValue)}finally{(0,s.batchEnd)()}},"fireAction"),x=r(()=>{if(h.ReactionStack.indexOf(x)===-1){(0,s.releaseBindingReactions)(x);try{h.ReactionStack.push(x),y.currentValue=i()}finally{h.ReactionStack.pop()}}},"reaction");return x._scheduler=P=>{P(),m()&&g(),y.oldValue=y.currentValue},x._name=d.name,x(),y.oldValue=y.currentValue,d.fireImmediately&&g(),()=>{(0,s.disposeBindingReactions)(x)}},"reaction");return Tr}var Vr,$s;function au(){if($s)return Vr;$s=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{Tracker:()=>a}),Vr=F(_);var n=Ue(),c=Pe(),h=Te();const s=class{constructor(i,l="TrackerReaction"){this.track=r(p=>{if(!(0,n.isFn)(p))return this.results;if(!(this.track._boundary>0)){if(c.ReactionStack.indexOf(this.track)===-1){(0,h.releaseBindingReactions)(this.track);try{(0,h.batchStart)(),c.ReactionStack.push(this.track),this.results=p()}finally{c.ReactionStack.pop(),this.track._boundary++,(0,h.batchEnd)(),this.track._boundary=0}}return this.results}},"track"),this.dispose=r(()=>{(0,h.disposeBindingReactions)(this.track)},"dispose"),this.track._scheduler=p=>{this.track._boundary===0&&this.dispose(),(0,n.isFn)(p)&&i(p)},this.track._name=l,this.track._boundary=0}};r(s,"Tracker");let a=s;return Vr}var Br,ea;function iu(){if(ea)return Br;ea=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{observe:()=>a}),Br=F(_);var n=Ue(),c=Pe(),h=tt(),s=We();const a=r((u,i,l=!0)=>{const p=r(d=>{const y=(0,h.raw)(d),m=(0,s.getDataNode)(y),g=r(x=>{const P=(0,h.raw)(x.target),S=(0,s.getDataNode)(P);if(l&&m.contains(S)){i(new s.DataChange(x,S));return}(m===S||m.targetRaw===P&&m.key===x.key)&&i(new s.DataChange(x,S))},"listener");return m&&(0,n.isFn)(i)&&c.ObserverListeners.add(g),()=>{c.ObserverListeners.delete(g)}},"addListener");if(u&&typeof u!="object")throw Error(`Can not observe ${typeof u} type.`);return p(u)},"observe");return Br}var Lr={exports:{}},ta;function cu(){return ta||(ta=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,We(),e.exports)}(Lr)),Lr.exports}var ra;function Oe(){return ra||(ra=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Zl(),e.exports),v(_,Us(),e.exports),v(_,Ql(),e.exports),v(_,Zs(),e.exports),v(_,nu(),e.exports),v(_,su(),e.exports),v(_,au(),e.exports),v(_,iu(),e.exports),v(_,tt(),e.exports),v(_,cu(),e.exports)}(br)),br.exports}var Ur,oa;function na(){if(oa)return Ur;oa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(S,j)=>e(S,"name",{value:j,configurable:!0}),b=(S,j)=>{for(var O in j)e(S,O,{get:j[O],enumerable:!0})},v=(S,j,O,w)=>{if(j&&typeof j=="object"||typeof j=="function")for(let I of o(j))!f.call(S,I)&&I!==O&&e(S,I,{get:()=>j[I],enumerable:!(w=t(j,I))||w.enumerable});return S},F=S=>v(e({},"__esModule",{value:!0}),S),_={};b(_,{SchemaNestedMap:()=>a,SchemaNormalKeys:()=>l,SchemaStateMap:()=>u,SchemaValidatorKeys:()=>p,SchemaValidatorMap:()=>i,createDataSource:()=>x,hasOwnProperty:()=>d,isNoNeedCompileObject:()=>g,patchStateFormSchema:()=>P,traverse:()=>y,traverseSchema:()=>m}),Ur=F(_);var n=Oe(),c=ue(),h=ti();const s=Symbol.for("__REVA_ACTIONS"),a={parent:!0,root:!0,properties:!0,patternProperties:!0,additionalProperties:!0,items:!0,additionalItems:!0,"x-linkages":!0,"x-reactions":!0},u={title:"title",description:"description",default:"initialValue",enum:"dataSource",readOnly:"readOnly",writeOnly:"editable","x-content":"content","x-data":"data","x-value":"value","x-editable":"editable","x-disabled":"disabled","x-read-pretty":"readPretty","x-read-only":"readOnly","x-visible":"visible","x-hidden":"hidden","x-display":"display","x-pattern":"pattern","x-validator":"validator","x-decorator":"decoratorType","x-component":"componentType","x-decorator-props":"decoratorProps","x-component-props":"componentProps"},i={required:!0,format:!0,maxItems:!0,minItems:!0,maxLength:!0,minLength:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,pattern:!0,const:!0,multipleOf:!0,maxProperties:!0,minProperties:!0,uniqueItems:!0},l=Object.keys(u),p=Object.keys(i),d=Object.prototype.hasOwnProperty,y=r((S,j)=>{const O=[],w=S,I=r((E,R=[])=>{if((0,c.isPlainObj)(E)){if(O.indexOf(E)>-1)return;const L=O.length;if(O.push(E),g(E)&&w!==E){j(E,R);return}(0,c.each)(E,(q,te)=>{I(q,R.concat(te))}),O.splice(L,1)}else j(E,R)},"traverse");I(S)},"traverse"),m=r((S,j)=>{var O;S["x-validator"]!==void 0&&j(S["x-validator"],["x-validator"],(O=S["x-compile-omitted"])==null?void 0:O.includes("x-validator"));const w=[],I=S,E=r((R,N=[])=>{var L;if(!(N[0]==="x-compile-omitted"||N[0]==="x-validator"||N[0]==="version"||N[0]==="_isJSONSchemaObject")&&!(String(N[0]).indexOf("x-")===-1&&(0,c.isFn)(R))&&!a[N[0]]){if(((L=S["x-compile-omitted"])==null?void 0:L.indexOf(N[0]))>-1){j(R,N,!0);return}if((0,c.isPlainObj)(R)){if(N[0]==="default"||N[0]==="x-value"){j(R,N);return}if(w.indexOf(R)>-1)return;const te=w.length;if(w.push(R),g(R)&&I!==R){j(R,N);return}(0,c.each)(R,(Y,re)=>{E(Y,N.concat(re))}),w.splice(te,1)}else j(R,N)}},"traverse");E(S)},"traverseSchema"),g=r(S=>!!("$$typeof"in S&&"_owner"in S||S._isAMomentObject||h.Schema.isSchemaInstance(S)||S[s]||(0,c.isFn)(S.toJS)||(0,c.isFn)(S.toJSON)||(0,n.isObservable)(S)),"isNoNeedCompileObject"),x=r(S=>(0,c.toArr)(S).map(j=>typeof j=="object"?j:{label:j,value:j}),"createDataSource"),P=r((S,j,O)=>{(0,n.untracked)(()=>{var w;const E=c.FormPath.parse(j).segments,R=E[0],N=R==="enum"&&(0,c.isArr)(O),L=u[R];L?c.FormPath.setIn(S,[L].concat(E.slice(1)),N?x(O):O):i[R]&&((w=S.setValidatorRule)==null||w.call(S,R,O))})},"patchStateFormSchema");return Ur}var Gr,sa;function aa(){if(sa)return Gr;sa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(m,g)=>e(m,"name",{value:g,configurable:!0}),b=(m,g)=>{for(var x in g)e(m,x,{get:g[x],enumerable:!0})},v=(m,g,x,P)=>{if(g&&typeof g=="object"||typeof g=="function")for(let S of o(g))!f.call(m,S)&&S!==x&&e(m,S,{get:()=>g[S],enumerable:!(P=t(g,S))||P.enumerable});return m},F=m=>v(e({},"__esModule",{value:!0}),m),_={};b(_,{compile:()=>p,patchCompile:()=>d,patchSchemaCompile:()=>y,registerCompiler:()=>i,shallowCompile:()=>l,silent:()=>u}),Gr=F(_);var n=Oe(),c=ue(),h=na();const s=/^\s*\{\{([\s\S]*)\}\}\s*$/,a={silent:!1,compile(m,g={}){if(a.silent)try{return new Function("$root",`with($root) { return (${m}); }`)(g)}catch(x){}else return new Function("$root",`with($root) { return (${m}); }`)(g)}},u=r((m=!0)=>{a.silent=!!m},"silent"),i=r(m=>{(0,c.isFn)(m)&&(a.compile=m)},"registerCompiler"),l=r((m,g)=>{if((0,c.isStr)(m)){const x=m.match(s);return x?a.compile(x[1],g):m}return m},"shallowCompile"),p=r((m,g)=>{const x=[],P=r(S=>{if((0,c.isStr)(S))return l(S,g);if((0,c.isArr)(S))return S.map(j=>P(j));if((0,c.isPlainObj)(S)){if((0,h.isNoNeedCompileObject)(S)||x.indexOf(S)>-1)return S;const O=x.length;x.push(S);const w=(0,c.reduce)(S,(I,E,R)=>(I[R]=P(E),I),{});return x.splice(O,1),w}return S},"compile");return P(m)},"compile"),d=r((m,g,x)=>{(0,h.traverse)(g,(P,S)=>{const j=p(P,x);if(j===void 0)return;const O=c.FormPath.parse(S),w=O.segments[0];h.hasOwnProperty.call(m,w)&&(0,n.untracked)(()=>c.FormPath.setIn(m,O,j))})},"patchCompile"),y=r((m,g,x,P=!1)=>{(0,h.traverseSchema)(g,(S,j,O)=>{let w=S,I=(0,n.hasCollected)(()=>{O||(w=p(S,x))});w!==void 0&&(P?(I||!m.initialized)&&(0,h.patchStateFormSchema)(m,j,w):(0,h.patchStateFormSchema)(m,j,w))})},"patchSchemaCompile");return Gr}var Hr,ia;function ca(){if(ia)return Hr;ia=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(l,p)=>e(l,"name",{value:p,configurable:!0}),b=(l,p)=>{for(var d in p)e(l,d,{get:p[d],enumerable:!0})},v=(l,p,d,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let m of o(p))!f.call(l,m)&&m!==d&&e(l,m,{get:()=>p[m],enumerable:!(y=t(p,m))||y.enumerable});return l},F=l=>v(e({},"__esModule",{value:!0}),l),_={};b(_,{enablePolyfills:()=>i,reducePatches:()=>s,registerPatches:()=>a,registerPolyfills:()=>u}),Hr=F(_);var n=ue();const c=[],h={},s=r(l=>c.reduce((p,d)=>d(p),T({},l)),"reducePatches"),a=r((...l)=>{l.forEach(p=>{(0,n.isFn)(p)&&c.push(p)})},"registerPatches"),u=r((l,p)=>{l&&(0,n.isFn)(p)&&(h[l]=h[l]||[],h[l].push(p))},"registerPolyfills"),i=r(l=>{(0,n.isArr)(l)&&l.forEach(p=>{(0,n.isArr)(h[p])&&h[p].forEach(d=>{a(d)})})},"enablePolyfills");return Hr}var zr={exports:{}},Jr,la;function lu(){if(la)return Jr;la=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(d,y)=>e(d,"name",{value:y,configurable:!0}),b=(d,y)=>{for(var m in y)e(d,m,{get:y[m],enumerable:!0})},v=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of o(y))!f.call(d,x)&&x!==m&&e(d,x,{get:()=>y[x],enumerable:!(g=t(y,x))||g.enumerable});return d},F=d=>v(e({},"__esModule",{value:!0}),d),_={};b(_,{registerTypeDefaultComponents:()=>p,registerVoidComponents:()=>l}),Jr=F(_);var n=ue(),c=ca();const h=["card","block","grid-col","grid-row","grid","layout","step","tab","text-box"],s={},a=r(d=>{if((0,n.isStr)(d))return d.replace(/\$value/,"$self.value")},"transformCondition"),u=r(d=>(0,n.isArr)(d)?d.reduce((y,m)=>{if(!m)return y;if(m.type==="value:visible")return y.concat({target:m.target,when:a(m.condition),fulfill:{state:{visible:!0}},otherwise:{state:{visible:!1}}});if(m.type==="value:schema")return y.concat({target:m.target,when:a(m.condition),fulfill:{schema:i(T({version:"1.0"},m.schema))},otherwise:{schema:i(T({version:"1.0"},m.otherwise))}});if(m.type==="value:state")return y.concat({target:m.target,when:a(m.condition),fulfill:{state:m.state},otherwise:{state:m.otherwise}})},[]):[],"transformXLinkage"),i=r(d=>((0,n.isValid)(d.editable)&&(d["x-editable"]=d["x-editable"]||d.editable,delete d.editable),(0,n.isValid)(d.visible)&&(d["x-visible"]=d["x-visible"]||d.visible,delete d.visible),(0,n.isValid)(d.display)&&(d["x-display"]=d["x-display"]||(d.display?"visible":"hidden"),delete d.display),(0,n.isValid)(d["x-props"])&&(d["x-decorator-props"]=d["x-decorator-props"]||d["x-props"],delete d.display),d["x-linkages"]&&(d["x-reactions"]=(0,n.toArr)(d["x-reactions"]).concat(u(d["x-linkages"])),delete d["x-linkages"]),d["x-component"]?h.some(y=>(0,n.lowerCase)(y)===(0,n.lowerCase)(d["x-component"]))&&(d.type="void"):s[d.type]&&(d["x-component"]=s[d.type]),!d["x-decorator"]&&d.type!=="void"&&d.type!=="object"&&(d["x-decorator"]=d["x-decorator"]||"FormItem"),d["x-rules"]&&(d["x-validator"]=[].concat(d["x-validator"]||[]).concat(d["x-rules"])),d),"SpecificationV1Polyfill");(0,c.registerPolyfills)("1.0",i);const l=r(d=>{h.push(...d)},"registerVoidComponents"),p=r(d=>{Object.assign(s,d)},"registerTypeDefaultComponents");return Jr}var ua;function uu(){return ua||(ua=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,lu(),e.exports)}(zr)),zr.exports}var Wr={exports:{}},Yr={exports:{}},qr,pa;function pu(){if(pa)return qr;pa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(n,c)=>{for(var h in c)e(n,h,{get:c[h],enumerable:!0})},b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of o(c))!f.call(n,a)&&a!==h&&e(n,a,{get:()=>c[a],enumerable:!(s=t(c,a))||s.enumerable});return n},v=n=>b(e({},"__esModule",{value:!0}),n),F={};r(F,{default:()=>_}),qr=v(F);var _={url:new RegExp("^(?:(?:(?:https?|ftp|rtmp):)?//)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:22[0-3]|2[01]\\d|[1-9]\\d?|1\\d\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1?\\d{1,2})){2}(?:\\.(?:25[0-4]|2[0-4]\\d|1\\d\\d|[1-9]\\d?))|(?:(?:[a-z\\u00a1-\\uffff0-9_]-*)*[a-z\\u00a1-\\uffff0-9_]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9_]-*)*[a-z\\u00a1-\\uffff0-9_]+)*(?:\\.(?:[a-z\\u00a1-\\uffff_]{2,})))(?::\\d{2,5})?(?:/?\\S*)?$"),email:/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,ipv4:/^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})$/,number:/^[+-]?\d+(\.\d+)?$/,integer:/^[+-]?\d+$/,qq:/^(\+?[1-9]\d*|0)$/,phone:/^\d{3}-\d{8}$|^\d{4}-\d{7}$|^\d{11}$/,idcard:/^\d{15}$|^\d{17}(\d|x|X)$/,money:/^([\u0024\u00A2\u00A3\u00A4\u20AC\u00A5\u20B1\u20B9\uFFE5]\s*)(\d+,?)+(\.\d+)?\s*$/,zh:/^[\u4e00-\u9fa5]+$/,date:/^[0-9]+[./-][0-9]+[./-][0-9]+\s*(?:[0-9]+\s*:\s*[0-9]+\s*:\s*[0-9]+)?$/,zip:/^[0-9]{6}$/};return qr}var Kr,da;function du(){if(da)return Kr;da=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(n,c)=>{for(var h in c)e(n,h,{get:c[h],enumerable:!0})},b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of o(c))!f.call(n,a)&&a!==h&&e(n,a,{get:()=>c[a],enumerable:!(s=t(c,a))||s.enumerable});return n},v=n=>b(e({},"__esModule",{value:!0}),n),F={};r(F,{default:()=>_}),Kr=v(F);var _={en:{pattern:"This field is invalid",invalid:"This field is invalid",required:"The field value is required",number:"The field value is not a number",integer:"The field value is not an integer number",url:"The field value is a invalid url",email:"The field value is not a email format",ipv6:"The field value is not a ipv6 format",ipv4:"The field value is not a ipv4 format",idcard:"The field value is not an idcard format",qq:"The field value is not a qq number format",phone:"The field value is not a phone number format",money:"The field value is not a currency format",zh:"The field value is not a chinese string",date:"The field value is not a valid date format",zip:"The field value is not a zip format",len:"The length or number of entries must be {{len}}",min:"The length or number of entries must be at least {{min}}",minLength:"The length or number of entries must be at least {{minLength}}",minItems:"The length or number of entries must be at least {{minItems}}",maximum:"The field value cannot be greater than {{maximum}}",exclusiveMaximum:"The field value must be less than {{exclusiveMaximum}}",minimum:"The field value cannot be less than {{minimum}}",exclusiveMinimum:"The field value must be greater than {{exclusiveMinimum}}",max:"The field length or number of entries must be at most {{max}}",maxLength:"The field length or number of entries must be at most {{maxLength}}",maxItems:"The field length or number of entries must be at most {{maxItems}}",whitespace:"This field value cannot be blank string.",enum:"The field value must be one of {{enum}}",const:"The field value must be equal to {{const}}",multipleOf:"The field value must be divisible by {{multipleOf}}",maxProperties:"The number of field properties cannot be greater than {{maxProperties}}",minProperties:"The number of field properties cannot be less than {{maxProperties}}",uniqueItems:"Array elements are not unique"},zh:{pattern:"该字段不是一个合法的字段",invalid:"该字段不是一个合法的字段",required:"该字段是必填字段",number:"该字段不是合法的数字",integer:"该字段不是合法的整型数字",url:"该字段不是合法的url",email:"该字段不是合法的邮箱格式",ipv6:"该字段不是合法的ipv6格式",ipv4:"该字段不是合法的ipv4格式",idcard:"该字段不是合法的身份证格式",qq:"该字段不符合QQ号格式",phone:"该字段不是有效的手机号",money:"该字段不是有效货币格式",zh:"该字段不是合法的中文字符串",date:"该字段不是合法的日期格式",zip:"该字段不是合法的邮编格式",len:"长度或条目数必须为{{len}}",min:"长度或条目数不能小于{{min}}",minLength:"长度或条目数不能小于{{minLength}}",minItems:"长度或条目数不能小于{{minItems}}",max:"长度或条目数不能大于{{max}}",maxLength:"长度或条目数不能大于{{maxLength}}",maxItems:"长度或条目数不能大于{{maxItems}}",maximum:"数值不能大于{{maximum}}",exclusiveMaximum:"数值必须小于{{exclusiveMaximum}}",minimum:"数值不能小于{{minimum}}",exclusiveMinimum:"数值必须大于{{exclusiveMinimum}}",whitespace:"不能为纯空白字符串",enum:"字段值必须为{{enum}}其中一个",const:"字段值必须等于{{const}}",multipleOf:"字段值不能被{{multipleOf}}整除",maxProperties:"字段属性数量不能大于{{maxProperties}}",minProperties:"字段属性数量不能小于{{minProperties}}",uniqueItems:"数组元素不唯一"},"en-US":{pattern:"This field is invalid",invalid:"This field is invalid",required:"The field value is required",number:"The field value is not a number",integer:"The field value is not an integer number",url:"The field value is a invalid url",email:"The field value is not a email format",ipv6:"The field value is not a ipv6 format",ipv4:"The field value is not a ipv4 format",idcard:"The field value is not an idcard format",qq:"The field value is not a qq number format",phone:"The field value is not a phone number format",money:"The field value is not a currency format",zh:"The field value is not a chinese string",date:"The field value is not a valid date format",zip:"The field value is not a zip format",len:"The length or number of entries must be {{len}}",min:"The length or number of entries must be at least {{min}}",minLength:"The length or number of entries must be at least {{minLength}}",minItems:"The length or number of entries must be at least {{minItems}}",maximum:"The field value cannot be greater than {{maximum}}",exclusiveMaximum:"The field value must be less than {{exclusiveMaximum}}",minimum:"The field value cannot be less than {{minimum}}",exclusiveMinimum:"The field value must be greater than {{exclusiveMinimum}}",max:"The field length or number of entries must be at most {{max}}",maxLength:"The field length or number of entries must be at most {{maxLength}}",maxItems:"The field length or number of entries must be at most {{maxItems}}",whitespace:"This field value cannot be blank string.",enum:"The field value must be one of {{enum}}",const:"The field value must be equal to {{const}}",multipleOf:"The field value must be divisible by {{multipleOf}}",maxProperties:"The number of field properties cannot be greater than {{maxProperties}}",minProperties:"The number of field properties cannot be less than {{maxProperties}}",uniqueItems:"Array elements are not unique"},"zh-CN":{pattern:"该字段不是一个合法的字段",invalid:"该字段不是一个合法的字段",required:"该字段是必填字段",number:"该字段不是合法的数字",integer:"该字段不是合法的整型数字",url:"该字段不是合法的url",email:"该字段不是合法的邮箱格式",ipv6:"该字段不是合法的ipv6格式",ipv4:"该字段不是合法的ipv4格式",idcard:"该字段不是合法的身份证格式",qq:"该字段不符合QQ号格式",phone:"该字段不是有效的手机号",money:"该字段不是有效货币格式",zh:"该字段不是合法的中文字符串",date:"该字段不是合法的日期格式",zip:"该字段不是合法的邮编格式",len:"长度或条目数必须为{{len}}",min:"长度或条目数不能小于{{min}}",minLength:"长度或条目数不能小于{{minLength}}",minItems:"长度或条目数不能小于{{minItems}}",maxLength:"长度或条目数不能大于{{maxLength}}",maxItems:"长度或条目数不能大于{{maxItems}}",max:"长度或条目数不能大于{{max}}",maximum:"数值不能大于{{maximum}}",exclusiveMaximum:"数值必须小于{{exclusiveMaximum}}",minimum:"数值不能小于{{minimum}}",exclusiveMinimum:"数值必须大于{{exclusiveMinimum}}",whitespace:"不能为纯空白字符串",enum:"字段值必须为{{enum}}其中一个",const:"字段值必须等于{{const}}",multipleOf:"字段值不能被{{multipleOf}}整除",maxProperties:"字段属性数量不能大于{{maxProperties}}",minProperties:"字段属性数量不能小于{{minProperties}}",uniqueItems:"数组元素不唯一"},"zh-TW":{pattern:"該字段不是一個合法的字段",invalid:"該字段不是一個合法的字段",required:"該字段是必填字段",number:"該字段不是合法的數字",integer:"該字段不是合法的整型數字",url:"該字段不是合法的url",email:"該字段不是合法的郵箱格式",ipv6:"該字段不是合法的ipv6格式",ipv4:"該字段不是合法的ipv4格式",idcard:"該字段不是合法的身份證格式",qq:"該字段不符合QQ號格式",phone:"該字段不是有效的手機號",money:"該字段不是有效貨幣格式",zh:"該字段不是合法的中文字符串",date:"該字段不是合法的日期格式",zip:"該字段不是合法的郵編格式",len:"長度或條目數必須為{{len}}",min:"長度或條目數不能小於{{min}}",minItems:"長度或條目數不能小於{{minItems}}",minLength:"長度或條目數不能小於{{minLength}}",max:"長度或條目數不能大於{{max}}",maxItems:"長度或條目數不能大於{{maxItems}}",maxLength:"長度或條目數不能大於{{maxLength}}",maximum:"數值不能大於{{maximum}}",exclusiveMaximum:"數值必須小於{{exclusiveMaximum}}",minimum:"數值不能小於{{minimum}}",exclusiveMinimum:"數值必須大於{{exclusiveMinimum}}",whitespace:"不能為純空白字符串",enum:"字段值必須為{{enum}}其中一個",const:"字段值必須等於{{const}}",multipleOf:"字段值不能被{{multipleOf}}整除",maxProperties:"字段屬性數量不能大於{{maxProperties}}",minProperties:"字段屬性數量不能小於{{minProperties}}",uniqueItems:"數組元素不唯一"},ja:{url:"このフィールドは無効なURLです",whitespace:"このフィールドを空の文字列にすることはできません。",zh:"このフィールドは中国語の文字列ではありません",zip:"このフィールドはzip形式ではありません",date:"このフィールドは有効な日付形式ではありません",email:"このフィールドはメール形式ではありません",exclusiveMaximum:"値は{{exclusiveMaximum}}未満である必要があります",exclusiveMinimum:"値は{{exclusiveMinimum}}より大きい必要があります",idcard:"このフィールドはIDカード形式ではありません",integer:"このフィールドは整数ではありません",ipv4:"このフィールドはIPv4形式ではありません",ipv6:"このフィールドはIPv6形式ではありません",len:"エントリの長さまたは数は{{len}}でなければなりません",max:"エントリの長さまたは数は最大{{max}}でなければなりません",maxItems:"エントリの長さまたは数は最大{{maxItems}}でなければなりません",maxLength:"エントリの長さまたは数は最大{{maxLength}}でなければなりません",maximum:"値は{{最大}}を超えることはできません",min:"エントリの長さまたは数は、少なくとも{{min}}である必要があります",minItems:"エントリの長さまたは数は、少なくとも{{minItems}}である必要があります",minLength:"エントリの長さまたは数は、少なくとも{{minLength}}である必要があります",minimum:"値は{{minimum}}以上にする必要があります",money:"このフィールドは通貨形式ではありません",number:"このフィールドは数値ではありません",pattern:"このフィールドはどのパターンとも一致しません",invalid:"このフィールドはどのパターンとも一致しません",phone:"このフィールドは電話番号の形式ではありません",qq:"このフィールドはqq数値形式ではありません",required:"この項目は必須です",enum:"フィールド値は{{enum}}のいずれかである必要があります",cons:"フィールド値は{{const}}と等しくなければなりません",multipleOf:"フィールド値を{{multipleOf}}で割り切れない",maxProperties:"フィールドプロパティの数は{{maxProperties}}を超えることはできません",minProperties:"フィールドプロパティの数は{{minProperties}}未満にすることはできません",uniqueItems:"配列要素は一意ではありません"}};return Kr}var Zr,ma;function at(){if(ma)return Zr;ma=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(I,E)=>e(I,"name",{value:E,configurable:!0}),b=(I,E)=>{for(var R in E)e(I,R,{get:E[R],enumerable:!0})},v=(I,E,R,N)=>{if(E&&typeof E=="object"||typeof E=="function")for(let L of o(E))!f.call(I,L)&&L!==R&&e(I,L,{get:()=>E[L],enumerable:!(N=t(E,L))||N.enumerable});return I},F=I=>v(e({},"__esModule",{value:!0}),I),_={};b(_,{getLocaleByPath:()=>y,getValidateFormats:()=>x,getValidateLanguage:()=>d,getValidateLocale:()=>m,getValidateLocaleIOSCode:()=>l,getValidateMessageTemplateEngine:()=>g,getValidateRules:()=>P,registerValidateFormats:()=>O,registerValidateLocale:()=>S,registerValidateMessageTemplateEngine:()=>w,registerValidateRules:()=>j,setValidateLanguage:()=>p}),Zr=F(_);var n=ue();const c=n.FormPath.getIn,h=n.globalThisPolyfill,s="en",u={locales:{messages:{},language:r(()=>h.navigator&&(h.navigator.browserlanguage||h.navigator.language)||s,"getBrowserlanguage")()},formats:{},rules:{},template:null},i=r(I=>{let E=u.locales.language;if(u.locales.messages[I])return I;const R=(0,n.lowerCase)(I);return(0,n.each)(u.locales.messages,(N,L)=>{const q=(0,n.lowerCase)(L);if(q.indexOf(R)>-1||R.indexOf(q)>-1)return E=L,!1}),E},"getISOCode"),l=i,p=r(I=>{u.locales.language=I||s},"setValidateLanguage"),d=r(()=>u.locales.language,"getValidateLanguage"),y=r((I,E=u.locales.language)=>c(u.locales.messages,`${i(E)}.${I}`),"getLocaleByPath"),m=r(I=>y(I)||y("pattern")||y("pattern",s),"getValidateLocale"),g=r(()=>u.template,"getValidateMessageTemplateEngine"),x=r(I=>I?u.formats[I]:u.formats,"getValidateFormats"),P=r(I=>I?u.rules[I]:u.rules,"getValidateRules"),S=r(I=>{u.locales.messages=(0,n.merge)(u.locales.messages,I)},"registerValidateLocale"),j=r(I=>{(0,n.each)(I,(E,R)=>{(0,n.isFn)(E)&&(u.rules[R]=E)})},"registerValidateRules"),O=r(I=>{(0,n.each)(I,(E,R)=>{((0,n.isStr)(E)||E instanceof RegExp)&&(u.formats[R]=new RegExp(E))})},"registerValidateFormats"),w=r(I=>{u.template=I},"registerValidateMessageTemplateEngine");return Zr}var Qr,fa;function mu(){if(fa)return Qr;fa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{render:()=>h}),Qr=F(_);var n=ue(),c=at();const h=r((s,a)=>{const{message:u}=s;if((0,n.isStr)(u)){const i=(0,c.getValidateMessageTemplateEngine)();(0,n.isFn)(i)&&(s.message=i(u,a)),s.message=s.message.replace(/\{\{\s*([\w.]+)\s*\}\}/g,(l,p)=>n.FormPath.getIn(a,p))}return s},"render");return Qr}var Xr,ha;function ba(){if(ha)return Xr;ha=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(c,h)=>e(c,"name",{value:h,configurable:!0}),b=(c,h)=>{for(var s in h)e(c,s,{get:h[s],enumerable:!0})},v=(c,h,s,a)=>{if(h&&typeof h=="object"||typeof h=="function")for(let u of o(h))!f.call(c,u)&&u!==s&&e(c,u,{get:()=>h[u],enumerable:!(a=t(h,u))||a.enumerable});return c},F=c=>v(e({},"__esModule",{value:!0}),c),_={};b(_,{isValidateResult:()=>n}),Xr=F(_);const n=r(c=>!!c.type&&!!c.message,"isValidateResult");return Xr}var $r,va;function ya(){if(va)return $r;va=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(d,y)=>e(d,"name",{value:y,configurable:!0}),b=(d,y)=>{for(var m in y)e(d,m,{get:y[m],enumerable:!0})},v=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of o(y))!f.call(d,x)&&x!==m&&e(d,x,{get:()=>y[x],enumerable:!(g=t(y,x))||g.enumerable});return d},F=d=>v(e({},"__esModule",{value:!0}),d),_={};b(_,{parseValidator:()=>p,parseValidatorDescription:()=>u,parseValidatorDescriptions:()=>i,parseValidatorRules:()=>l}),$r=F(_);var n=ue(),c=at(),h=mu(),s=ba();const a=r((d,y)=>d.format?d.message||(0,c.getValidateLocale)(d.format):d.message||(0,c.getValidateLocale)(y),"getRuleMessage"),u=r(d=>{if(!d)return{};let y={};return(0,n.isStr)(d)?y.format=d:(0,n.isFn)(d)?y.validator=d:y=Object.assign(y,d),y},"parseValidatorDescription"),i=r(d=>d?((0,n.isArr)(d)?d:[d]).map(m=>u(m)):[],"parseValidatorDescriptions"),l=r((d={})=>{const y=r(()=>{const x=[];"required"in d&&x.push("required");for(let P in d)P==="required"||P==="validator"||x.push(P);return"validator"in d&&x.push("validator"),x},"getRulesKeys"),m=r((x,P)=>W(T(T({},d),x),{value:P}),"getContext"),g=r((x,P)=>(S,j)=>ie(null,null,function*(){const O=m(j,S);try{const w=yield x(S,W(T({},d),{message:P}),O,(I,E)=>{var R;return(R=(0,h.render)({type:"error",message:I},Object.assign(O,E)))==null?void 0:R.message});return(0,n.isBool)(w)?w?{type:"error",message:void 0}:(0,h.render)({type:"error",message:P},O):w?(0,s.isValidateResult)(w)?(0,h.render)(w,O):(0,h.render)({type:"error",message:w},O):{type:"error",message:void 0}}catch(w){return{type:"error",message:(w==null?void 0:w.message)||w}}}),"createValidate");return y().reduce((x,P)=>{const S=(0,c.getValidateRules)(P);if(S){const j=g(S,a(d,P));return x.concat(j)}return x},[])},"parseValidatorRules"),p=r((d,y={})=>d?((0,n.isArr)(d)?d:[d]).reduce((g,x)=>{var j;const P=u(x),S=(j=P.triggerType)!=null?j:"onInput";return y!=null&&y.triggerType&&y.triggerType!==S?g:P?g.concat(l(P)):g},[]):[],"parseValidator");return $r}var eo,_a;function fu(){if(_a)return eo;_a=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(p,d)=>e(p,"name",{value:d,configurable:!0}),b=(p,d)=>{for(var y in d)e(p,y,{get:d[y],enumerable:!0})},v=(p,d,y,m)=>{if(d&&typeof d=="object"||typeof d=="function")for(let g of o(d))!f.call(p,g)&&g!==y&&e(p,g,{get:()=>d[g],enumerable:!(m=t(d,g))||m.enumerable});return p},F=p=>v(e({},"__esModule",{value:!0}),p),_={};b(_,{default:()=>i}),eo=F(_);var n=ue(),c=at();const h=r(p=>{var d;if((0,n.isArr)(p)){for(let y=0;y<p.length;y++)if((0,n.isValid)(p[y]))return!1;return!0}else return p!=null&&p.getCurrentContent?!((d=p.getCurrentContent())!=null&&d.hasText()):(0,n.isEmpty)(p)},"isValidateEmpty"),s=r(p=>(0,n.isStr)(p)?(0,n.stringLength)(p):p?p.length:0,"getLength"),a=r((p,d)=>{(0,n.each)(d,(y,m)=>{p[m]=(g,x,...P)=>p[y](g,W(T({},x),{[y]:x[m]}),...P)})},"extendSameRules"),u={format(p,d){if(h(p))return"";if(d.format){const y=(0,c.getValidateFormats)(d.format);if(y)return new RegExp(y).test(p)?"":d.message}return""},required(p,d){return d.required===!1?"":h(p)?d.message:""},max(p,d){if(h(p))return"";const y=(0,n.isNum)(p)?p:s(p),m=Number(d.max);return y>m?d.message:""},min(p,d){if(h(p))return"";const y=(0,n.isNum)(p)?p:s(p),m=Number(d.min);return y<m?d.message:""},exclusiveMaximum(p,d){if(h(p))return"";const y=(0,n.isNum)(p)?p:s(p),m=Number(d.exclusiveMaximum);return y>=m?d.message:""},exclusiveMinimum(p,d){if(h(p))return"";const y=(0,n.isNum)(p)?p:s(p),m=Number(d.exclusiveMinimum);return y<=m?d.message:""},len(p,d){if(h(p))return"";const y=s(p),m=Number(d.len);return y!==m?d.message:""},pattern(p,d){return h(p)||new RegExp(d.pattern).test(p)?"":d.message},validator(p,d,y,m){return ie(this,null,function*(){if((0,n.isFn)(d.validator)){const g=yield Promise.resolve(d.validator(p,d,y,m));return(0,n.isBool)(g)?g?"":d.message:g}throw new Error("The rule's validator property must be a function.")})},whitespace(p,d){if(h(p))return"";if(d.whitespace)return/^\s+$/.test(p)?d.message:""},enum(p,d){return h(p)?"":(0,n.toArr)(d.enum).indexOf(p)===-1?d.message:""},const(p,d){return h(p)?"":d.const!==p?d.message:""},multipleOf(p,d){return h(p)?"":Number(p)%Number(d.multipleOf)!==0?d.message:""},uniqueItems(p,d){return h(p)?"":(p=(0,n.toArr)(p),p.some((y,m)=>{for(let g=0;g<p.length;g++)if(g!==m&&!(0,n.isEqual)(p[g],y))return!1;return!0})?"":d.message)},maxProperties(p,d){return h(p)||Object.keys(p||{}).length<=Number(d.maxProperties)?"":d.message},minProperties(p,d){return h(p)||Object.keys(p||{}).length>=Number(d.minProperties)?"":d.message}};a(u,{maximum:"max",minimum:"min",maxItems:"max",minItems:"min",maxLength:"max",minLength:"min"});var i=u;return eo}var to,xa;function hu(){if(xa)return to;xa=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(d,y)=>t(d,"name",{value:y,configurable:!0}),F=(d,y)=>{for(var m in y)t(d,m,{get:y[m],enumerable:!0})},_=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of f(y))!b.call(d,x)&&x!==m&&t(d,x,{get:()=>y[x],enumerable:!(g=o(y,x))||g.enumerable});return d},n=(d,y,m)=>(m=d!=null?e(r(d)):{},_(!d||!d.__esModule?t(m,"default",{value:d,enumerable:!0}):m,d)),c=d=>_(t({},"__esModule",{value:!0}),d),h={};F(h,{validate:()=>p}),to=c(h);var s=n(pu()),a=n(du()),u=ya(),i=at(),l=n(fu());(0,i.registerValidateRules)(l.default),(0,i.registerValidateLocale)(a.default),(0,i.registerValidateFormats)(s.default);const p=v((d,y,m)=>ie(null,null,function*(){const g=(0,u.parseValidator)(y,m),x={error:[],success:[],warning:[]};for(let P=0;P<g.length;P++){const S=yield g[P](d,m==null?void 0:m.context),{type:j,message:O}=S;if(x[j]=x[j]||[],O&&(x[j].push(O),m!=null&&m.validateFirst))break}return x}),"validate");return to}var ga;function ro(){return ga||(ga=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,hu(),e.exports),v(_,ya(),e.exports),v(_,at(),e.exports),v(_,ba(),e.exports)}(Yr)),Yr.exports}var oo={exports:{}},no,Fa;function Sa(){if(Fa)return no;Fa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{LifeCycle:()=>h}),no=F(_);var n=ue();const c=class{constructor(...a){this.buildListener=r(u=>function(i,l){for(let p=0;p<u.length;p++){let d=u[p];(0,n.isFn)(d)?d.call(this,i,l):(0,n.isStr)(d)&&(0,n.isFn)(u[p+1])?(d===i.type&&u[p+1].call(this,i.payload,l),p++):(0,n.each)(d,(y,m)=>{if((0,n.isFn)(y)&&(0,n.isStr)(m)&&m===i.type)return y.call(this,i.payload,l),!1})}},"buildListener"),this.notify=r((u,i,l)=>{(0,n.isStr)(u)&&this.listener.call(l,{type:u,payload:i},l)},"notify"),this.listener=this.buildListener(a)}};r(c,"LifeCycle");let h=c;return no}var so,Pa;function Oa(){if(Pa)return so;Pa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{Heart:()=>s}),so=F(_);var n=ue(),c=Sa();const h=class extends n.Subscribable{constructor({lifecycles:u,context:i}={}){super(),this.lifecycles=[],this.outerLifecycles=new Map,this.buildLifeCycles=r(l=>l.reduce((p,d)=>d instanceof c.LifeCycle?p.concat(d):(0,n.isArr)(d)?this.buildLifeCycles(d):(typeof d=="object"&&(this.context=d),p),[]),"buildLifeCycles"),this.addLifeCycles=r((l,p=[])=>{const d=this.buildLifeCycles(p);d.length&&this.outerLifecycles.set(l,d)},"addLifeCycles"),this.hasLifeCycles=r(l=>this.outerLifecycles.has(l),"hasLifeCycles"),this.removeLifeCycles=r(l=>{this.outerLifecycles.delete(l)},"removeLifeCycles"),this.setLifeCycles=r((l=[])=>{this.lifecycles=this.buildLifeCycles(l)},"setLifeCycles"),this.publish=r((l,p,d)=>{(0,n.isStr)(l)&&(this.lifecycles.forEach(y=>{y.notify(l,p,d||this.context)}),this.outerLifecycles.forEach(y=>{y.forEach(m=>{m.notify(l,p,d||this.context)})}),this.notify({type:l,payload:p}))},"publish"),this.clear=r(()=>{this.lifecycles=[],this.outerLifecycles.clear(),this.unsubscribe()},"clear"),this.lifecycles=this.buildLifeCycles(u||[]),this.context=i}};r(h,"Heart");let s=h;return so}var ao,Ca;function _t(){if(Ca)return ao;Ca=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(O,w)=>e(O,"name",{value:w,configurable:!0}),b=(O,w)=>{for(var I in w)e(O,I,{get:w[I],enumerable:!0})},v=(O,w,I,E)=>{if(w&&typeof w=="object"||typeof w=="function")for(let R of o(w))!f.call(O,R)&&R!==I&&e(O,R,{get:()=>w[R],enumerable:!(E=t(w,R))||E.enumerable});return O},F=O=>v(e({},"__esModule",{value:!0}),O),_={};b(_,{isArrayField:()=>u,isArrayFieldState:()=>m,isDataField:()=>g,isDataFieldState:()=>x,isField:()=>a,isFieldState:()=>d,isForm:()=>h,isFormState:()=>p,isGeneralField:()=>s,isGeneralFieldState:()=>y,isObjectField:()=>i,isObjectFieldState:()=>P,isQuery:()=>j,isVoidField:()=>l,isVoidFieldState:()=>S}),ao=F(_);var n=ue(),c=go();const h=r(O=>O instanceof c.Form,"isForm"),s=r(O=>O instanceof c.Field||O instanceof c.VoidField,"isGeneralField"),a=r(O=>O instanceof c.Field,"isField"),u=r(O=>O instanceof c.ArrayField,"isArrayField"),i=r(O=>O instanceof c.ObjectField,"isObjectField"),l=r(O=>O instanceof c.VoidField,"isVoidField"),p=r(O=>(0,n.isFn)(O==null?void 0:O.initialize)?!1:(O==null?void 0:O.displayName)==="Form","isFormState"),d=r(O=>(0,n.isFn)(O==null?void 0:O.initialize)?!1:(O==null?void 0:O.displayName)==="Field","isFieldState"),y=r(O=>{var w;return(0,n.isFn)(O==null?void 0:O.initialize)?!1:((w=O==null?void 0:O.displayName)==null?void 0:w.indexOf("Field"))>-1},"isGeneralFieldState"),m=r(O=>(0,n.isFn)(O==null?void 0:O.initialize)?!1:(O==null?void 0:O.displayName)==="ArrayField","isArrayFieldState"),g=r(O=>a(O)||u(O)||i(O),"isDataField"),x=r(O=>d(O)||P(O)||m(O),"isDataFieldState"),P=r(O=>(0,n.isFn)(O==null?void 0:O.initialize)?!1:(O==null?void 0:O.displayName)==="ObjectField","isObjectFieldState"),S=r(O=>(0,n.isFn)(O==null?void 0:O.initialize)?!1:(O==null?void 0:O.displayName)==="VoidField","isVoidFieldState"),j=r(O=>O&&O instanceof c.Query,"isQuery");return ao}var io,wa;function Ea(){if(wa)return io;wa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{Graph:()=>a}),io=F(_);var n=Oe(),c=ue(),h=_t();const s=class{constructor(i){this.getGraph=r(()=>{const l={};return l[""]=this.form.getState(),(0,c.each)(this.form.fields,(p,d)=>{l[d]=p.getState()}),l},"getGraph"),this.setGraph=r(l=>{const p=this.form,d=r((y,m)=>{const g=c.FormPath.parse(y),x=g.segments[g.segments.length-1],P=g.parent();return(0,h.isFieldState)(m)?this.form.createField({name:x,basePath:P}):(0,h.isArrayFieldState)(m)?this.form.createArrayField({name:x,basePath:P}):(0,h.isObjectFieldState)(m)?this.form.createObjectField({name:x,basePath:P}):this.form.createVoidField({name:x,basePath:P})},"createField");(0,c.each)(l,(y,m)=>{if((0,h.isFormState)(y))p.setState(y);else{const g=p.fields[m];g?g.setState(y):d(m,y).setState(y)}})},"setGraph"),this.form=i,(0,n.define)(this,{setGraph:n.batch})}};r(s,"Graph");let a=s;return io}var co,ja;function Ke(){if(ja)return co;ja=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(n,c)=>{for(var h in c)e(n,h,{get:c[h],enumerable:!0})},b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of o(c))!f.call(n,a)&&a!==h&&e(n,a,{get:()=>c[a],enumerable:!(s=t(c,a))||s.enumerable});return n},v=n=>b(e({},"__esModule",{value:!0}),n),F={};r(F,{LifeCycleTypes:()=>_}),co=v(F);var _=(n=>(n.ON_FORM_INIT="onFormInit",n.ON_FORM_MOUNT="onFormMount",n.ON_FORM_UNMOUNT="onFormUnmount",n.ON_FORM_INPUT_CHANGE="onFormInputChange",n.ON_FORM_VALUES_CHANGE="onFormValuesChange",n.ON_FORM_INITIAL_VALUES_CHANGE="onFormInitialValuesChange",n.ON_FORM_SUBMIT="onFormSubmit",n.ON_FORM_RESET="onFormReset",n.ON_FORM_SUBMIT_START="onFormSubmitStart",n.ON_FORM_SUBMITTING="onFormSubmitting",n.ON_FORM_SUBMIT_END="onFormSubmitEnd",n.ON_FORM_SUBMIT_VALIDATE_START="onFormSubmitValidateStart",n.ON_FORM_SUBMIT_VALIDATE_SUCCESS="onFormSubmitValidateSuccess",n.ON_FORM_SUBMIT_VALIDATE_FAILED="onFormSubmitValidateFailed",n.ON_FORM_SUBMIT_VALIDATE_END="onFormSubmitValidateEnd",n.ON_FORM_SUBMIT_SUCCESS="onFormSubmitSuccess",n.ON_FORM_SUBMIT_FAILED="onFormSubmitFailed",n.ON_FORM_VALIDATE_START="onFormValidateStart",n.ON_FORM_VALIDATING="onFormValidating",n.ON_FORM_VALIDATE_SUCCESS="onFormValidateSuccess",n.ON_FORM_VALIDATE_FAILED="onFormValidateFailed",n.ON_FORM_VALIDATE_END="onFormValidateEnd",n.ON_FORM_GRAPH_CHANGE="onFormGraphChange",n.ON_FORM_LOADING="onFormLoading",n.ON_FIELD_INIT="onFieldInit",n.ON_FIELD_INPUT_VALUE_CHANGE="onFieldInputValueChange",n.ON_FIELD_VALUE_CHANGE="onFieldValueChange",n.ON_FIELD_INITIAL_VALUE_CHANGE="onFieldInitialValueChange",n.ON_FIELD_SUBMIT="onFieldSubmit",n.ON_FIELD_SUBMIT_START="onFieldSubmitStart",n.ON_FIELD_SUBMITTING="onFieldSubmitting",n.ON_FIELD_SUBMIT_END="onFieldSubmitEnd",n.ON_FIELD_SUBMIT_VALIDATE_START="onFieldSubmitValidateStart",n.ON_FIELD_SUBMIT_VALIDATE_SUCCESS="onFieldSubmitValidateSuccess",n.ON_FIELD_SUBMIT_VALIDATE_FAILED="onFieldSubmitValidateFailed",n.ON_FIELD_SUBMIT_VALIDATE_END="onFieldSubmitValidateEnd",n.ON_FIELD_SUBMIT_SUCCESS="onFieldSubmitSuccess",n.ON_FIELD_SUBMIT_FAILED="onFieldSubmitFailed",n.ON_FIELD_VALIDATE_START="onFieldValidateStart",n.ON_FIELD_VALIDATING="onFieldValidating",n.ON_FIELD_VALIDATE_SUCCESS="onFieldValidateSuccess",n.ON_FIELD_VALIDATE_FAILED="onFieldValidateFailed",n.ON_FIELD_VALIDATE_END="onFieldValidateEnd",n.ON_FIELD_LOADING="onFieldLoading",n.ON_FIELD_RESET="onFieldReset",n.ON_FIELD_MOUNT="onFieldMount",n.ON_FIELD_UNMOUNT="onFieldUnmount",n))(_||{});return co}var lo,Ia;function Aa(){if(Ia)return lo;Ia=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(l,p)=>{for(var d in p)e(l,d,{get:p[d],enumerable:!0})},b=(l,p,d,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let m of o(p))!f.call(l,m)&&m!==d&&e(l,m,{get:()=>p[m],enumerable:!(y=t(p,m))||y.enumerable});return l},v=l=>b(e({},"__esModule",{value:!0}),l),F={};r(F,{GlobalState:()=>u,MutuallyExclusiveProperties:()=>s,NumberIndexReg:()=>i,RESPONSE_REQUEST_DURATION:()=>a,ReadOnlyProperties:()=>n,ReservedProperties:()=>_}),lo=v(F);const _={form:!0,parent:!0,props:!0,caches:!0,requests:!0,disposers:!0,heart:!0,graph:!0,indexes:!0,fields:!0,lifecycles:!0,componentType:!0,componentProps:!0,decoratorType:!0,decoratorProps:!0},n={address:!0,path:!0,valid:!0,invalid:!0,selfValid:!0,selfInvalid:!0,errors:!0,successes:!0,warnings:!0,validateStatus:!0},c="selfDisplay",h="selfPattern",s={pattern:h,editable:h,readOnly:h,readPretty:h,disabled:h,display:c,hidden:c,visible:c},a=100,u={lifecycles:[],context:[],effectStart:!1,effectEnd:!1,initializing:!1},i=/^\.(\d+)/;return lo}var uo,Da;function Ze(){if(Da)return uo;Da=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(M,k)=>e(M,"name",{value:k,configurable:!0}),b=(M,k)=>{for(var G in k)e(M,G,{get:k[G],enumerable:!0})},v=(M,k,G,H)=>{if(k&&typeof k=="object"||typeof k=="function")for(let K of o(k))!f.call(M,K)&&K!==G&&e(M,K,{get:()=>k[K],enumerable:!(H=t(k,K))||H.enumerable});return M},F=M=>v(e({},"__esModule",{value:!0}),M),_={};b(_,{allowAssignDefaultValue:()=>En,batchReset:()=>Xp,batchSubmit:()=>Zp,batchValidate:()=>Qp,buildDataPath:()=>g,buildFieldPath:()=>m,cleanupArrayChildren:()=>te,cleanupObjectChildren:()=>Y,createBatchStateGetter:()=>ne,createBatchStateSetter:()=>ee,createChildrenFeedbackFilter:()=>U,createReaction:()=>od,createReactions:()=>rd,createStateGetter:()=>Q,createStateSetter:()=>J,deserialize:()=>z,destroy:()=>S,exchangeArrayState:()=>q,getArrayParent:()=>ad,getObjectParent:()=>id,getTypedDefaultValue:()=>y,getValidFieldDefaultValue:()=>td,getValidFormValues:()=>ed,getValuesFromEvent:()=>d,initFieldUpdate:()=>re,initializeEnd:()=>sd,initializeStart:()=>nd,isHTMLInputEvent:()=>p,locateNode:()=>x,matchFeedback:()=>O,modifySelf:()=>$p,patchFieldStates:()=>P,patchFormValues:()=>j,queryFeedbackMessages:()=>I,queryFeedbacks:()=>w,resetSelf:()=>_c,serialize:()=>B,setLoading:()=>Kp,setSubmitting:()=>qp,setValidating:()=>rt,setValidatorRule:()=>N,spliceArrayState:()=>L,subscribeUpdate:()=>ae,triggerFormInitialValuesChange:()=>pe,triggerFormValuesChange:()=>Ce,updateFeedback:()=>E,validateSelf:()=>wn,validateToFeedbacks:()=>R}),uo=F(_);var n=Oe(),c=ue(),h=ro(),s=Ke(),a=Aa(),u=Ya();const i=Object.prototype.hasOwnProperty,l=r((M,k,G)=>{(0,u.isForm)(M)?M.notify(k):M.notify(G)},"notify"),p=r((M,k=!0)=>{var G;if(M!=null&&M.target){if(typeof M.target=="object"&&("value"in M.target||"checked"in M.target))return!0;k&&((G=M.stopPropagation)==null||G.call(M))}return!1},"isHTMLInputEvent"),d=r(M=>M.map(k=>k!=null&&k.target?(0,c.isValid)(k.target.value)?k.target.value:(0,c.isValid)(k.target.checked)?k.target.checked:void 0:k),"getValuesFromEvent"),y=r(M=>{if((0,u.isArrayField)(M))return[];if((0,u.isObjectField)(M))return{}},"getTypedDefaultValue"),m=r(M=>g(M.form.fields,M.address),"buildFieldPath"),g=r((M,k)=>{let G=!1;const H=k.segments,K=H.reduce((X,$,ce)=>{const me=X.concat($),ye=H.slice(0,ce+1),Me=M[ye.join(".")];if(G)return(0,u.isVoidField)(Me)||(G=!1),X;if(ce>=H.length-1)return me;if((0,u.isVoidField)(Me)){const Re=H.slice(0,ce),lt=M[Re.join(".")];return(0,u.isArrayField)(lt)&&(0,c.isNumberLike)($)?(G=!0,me):X}else G=!1;return me},[]);return new c.FormPath(K)},"buildDataPath"),x=r((M,k)=>(M.address=c.FormPath.parse(k),M.path=m(M),M.form.indexes[M.path.toString()]=M.address.toString(),M),"locateNode"),P=r((M,k)=>{k.forEach(({type:G,address:H,oldAddress:K,payload:X})=>{G==="remove"?S(M,H,!1):G==="update"&&(X&&(M[H]=X,M[K]===X&&(M[K]=void 0)),H&&X&&x(X,H))})},"patchFieldStates"),S=r((M,k,G=!0)=>{const H=M[k];if(H==null||H.dispose(),(0,u.isDataField)(H)&&G){const K=H.form,X=H.path;K.deleteValuesIn(X),K.deleteInitialValuesIn(X)}delete M[k]},"destroy"),j=r((M,k,G)=>{const H=r((X,$)=>{X.length?M.setValuesIn(X,(0,c.clone)($)):Object.assign(M.values,(0,c.clone)($))},"update"),K=r((X,$=[])=>{const ce=M.getValuesIn($),me=M.query($).take(),ye=me&&!(0,u.isVoidField)(me);if(ye&&me.display==="none"){me.caches.value=(0,c.clone)(X);return}if(En(ce,X))H($,X);else{if((0,c.isEmpty)(X)||a.GlobalState.initializing)return;(0,c.isPlainObj)(ce)&&(0,c.isPlainObj)(X)?(0,c.each)(X,(Me,Re)=>{K(Me,$.concat(Re))}):me?ye&&!me.selfModified&&H($,X):M.initialized&&H($,X)}},"patch");K(G,k)},"patchFormValues"),O=r((M,k)=>!(!M||!k||M.type&&M.type!==k.type||M.code&&M.code!==k.code||M.path&&k.path&&!c.FormPath.parse(M.path).match(k.path)||M.address&&k.address&&!c.FormPath.parse(M.address).match(k.address)||M.triggerType&&M.triggerType!==k.triggerType),"matchFeedback"),w=r((M,k)=>M.feedbacks.filter(G=>{var H,K,X;return(H=G.messages)!=null&&H.length?O(k,W(T({},G),{address:(K=M.address)==null?void 0:K.toString(),path:(X=M.path)==null?void 0:X.toString()})):!1}),"queryFeedbacks"),I=r((M,k)=>M.feedbacks.length?w(M,k).reduce((G,H)=>(0,c.isEmpty)(H.messages)?G:G.concat(H.messages),[]):[],"queryFeedbackMessages"),E=r((M,k)=>{if(k)return(0,n.batch)(()=>{var G,H;if(M.feedbacks.length){const K=w(M,k);if(K.length){M.feedbacks=M.feedbacks.reduce((X,$)=>{var ce;return K.includes($)?(ce=k.messages)!=null&&ce.length?($.messages=k.messages,X.concat($)):X:X.concat($)},[]);return}else(H=k.messages)!=null&&H.length&&(M.feedbacks=M.feedbacks.concat(k))}else{if(!((G=k.messages)!=null&&G.length))return;M.feedbacks=[k]}})},"updateFeedback"),R=r((M,k="onInput")=>ie(null,null,function*(){var H;const G=yield(0,h.validate)(M.value,M.validator,{triggerType:k,validateFirst:(H=M.props.validateFirst)!=null?H:M.form.props.validateFirst,context:{field:M,form:M.form}});return(0,n.batch)(()=>{(0,c.each)(G,(K,X)=>{M.setFeedback({triggerType:k,type:X,code:(0,c.pascalCase)(`validate-${X}`),messages:K})})}),G}),"validateToFeedbacks"),N=r((M,k,G)=>{if(!(0,c.isValid)(G))return;const H=(0,h.parseValidatorDescriptions)(M.validator),K=H.some($=>k in $),X={[k]:G};K?M.validator=H.map($=>((0,c.isPlainObj)($)&&i.call($,k)&&($[k]=G),$)):k==="required"?M.validator=[X].concat(H):M.validator=H.concat(X)},"setValidatorRule"),L=r((M,k)=>{const{startIndex:G,deleteCount:H,insertCount:K}=T({startIndex:0,deleteCount:0,insertCount:0},k),X=M.address.toString(),$=X.length,me=M.form.fields,ye=[],Me=K-H,Re=r(be=>be.indexOf(X)===0&&be.length>$,"isArrayChildren"),lt=r(be=>{var fe;const Be=(fe=be.substring($).match(a.NumberIndexReg))==null?void 0:fe[1];return Be===void 0?!1:Number(Be)>G+H-1},"isAfterNode"),Ie=r(be=>{var fe;const Be=(fe=be.substring($).match(a.NumberIndexReg))==null?void 0:fe[1];if(Be===void 0)return!1;const ze=Number(Be);return ze>=G&&ze<G+K},"isInsertNode"),Fe=r(be=>{var fe;const Ne=be.substring(0,$),Be=be.substring($),ze=(fe=Be.match(a.NumberIndexReg))==null?void 0:fe[1];if(ze===void 0)return!1;const ut=Number(ze);return ut>G&&!me[`${Ne}${Be.replace(/^\.\d+/,`.${ut+H}`)}`]||ut===G},"isDeleteNode"),He=r(be=>{var fe;if(Me===0)return be;const Ne=be.substring(0,$),Be=be.substring($),ze=(fe=Be.match(a.NumberIndexReg))==null?void 0:fe[1];if(ze===void 0)return be;const ut=Number(ze)+Me;return`${Ne}${Be.replace(/^\.\d+/,`.${ut}`)}`},"moveIndex");(0,n.batch)(()=>{(0,c.each)(me,(be,fe)=>{if(Re(fe)){if(lt(fe)){const Ne=He(fe);ye.push({type:"update",address:Ne,oldAddress:fe,payload:be})}(Ie(fe)||Fe(fe))&&ye.push({type:"remove",address:fe})}}),P(me,ye)}),M.form.notify(s.LifeCycleTypes.ON_FORM_GRAPH_CHANGE)},"spliceArrayState"),q=r((M,k)=>{const{fromIndex:G,toIndex:H}=T({fromIndex:0,toIndex:0},k),K=M.address.toString(),X=M.form.fields,$=K.length,ce=[],me=r(Ie=>Ie.indexOf(K)===0&&Ie.length>$,"isArrayChildren"),ye=G<H,Me=r(Ie=>{var Fe;const be=(Fe=Ie.slice(K.length).match(a.NumberIndexReg))==null?void 0:Fe[1];if(be===void 0)return!1;const fe=Number(be);return ye?fe>G&&fe<=H:fe<G&&fe>=H},"isMoveNode"),Re=r(Ie=>{var Fe;const be=(Fe=Ie.substring($).match(a.NumberIndexReg))==null?void 0:Fe[1];return be===void 0?!1:Number(be)===G},"isFromNode"),lt=r(Ie=>{const Fe=Ie.substring(0,$),He=Ie.substring($),be=He.match(a.NumberIndexReg)[1];let Ne=Number(be);return Ne===G?Ne=H:Ne+=ye?-1:1,`${Fe}${He.replace(/^\.\d+/,`.${Ne}`)}`},"moveIndex");(0,n.batch)(()=>{(0,c.each)(X,(Ie,Fe)=>{if(me(Fe)&&(Me(Fe)||Re(Fe))){const He=lt(Fe);ce.push({type:"update",address:He,oldAddress:Fe,payload:Ie}),X[He]||ce.push({type:"remove",address:Fe})}}),P(X,ce)}),M.form.notify(s.LifeCycleTypes.ON_FORM_GRAPH_CHANGE)},"exchangeArrayState"),te=r((M,k)=>{const G=M.address.toString(),H=M.form.fields,K=r($=>$.indexOf(G)===0&&$.length>G.length,"isArrayChildren"),X=r($=>{var ce;const ye=(ce=$.slice(G.length).match(a.NumberIndexReg))==null?void 0:ce[1];return ye===void 0?!1:Number(ye)>=k},"isNeedCleanup");(0,n.batch)(()=>{(0,c.each)(H,($,ce)=>{K(ce)&&X(ce)&&$.destroy()})})},"cleanupArrayChildren"),Y=r((M,k)=>{if(k.length===0)return;const G=M.address.toString(),H=M.form.fields,K=r($=>$.indexOf(G)===0&&$.length>G.length,"isObjectChildren"),X=r($=>{var ce;const ye=(ce=$.slice(G.length).match(/^\.([^.]+)/))==null?void 0:ce[1];return ye===void 0?!1:k.includes(ye)},"isNeedCleanup");(0,n.batch)(()=>{(0,c.each)(H,($,ce)=>{K(ce)&&X(ce)&&$.destroy()})})},"cleanupObjectChildren"),re=n.batch.scope.bound(M=>{const k=M.form,G=c.FormPath.ensureIn(k,"requests.updates",[]),H=c.FormPath.ensureIn(k,"requests.updateIndexes",{});for(let K=0;K<G.length;K++){const{pattern:X,callbacks:$}=G[K];let ce=!1;M.match(X)&&($.forEach(me=>{M.setState(me)}),!X.isWildMatchPattern&&!X.isMatchPattern&&(G.splice(K--,1),ce=!0)),ce?delete H[X.toString()]:H[X.toString()]=K}}),ae=r((M,k,G)=>{const H=c.FormPath.ensureIn(M,"requests.updates",[]),K=c.FormPath.ensureIn(M,"requests.updateIndexes",{}),X=k.toString(),$=K[X];(0,c.isValid)($)?H[$]&&!H[$].callbacks.some(ce=>ce.toString()===G.toString()?ce===G:!1)&&H[$].callbacks.push(G):(K[X]=H.length,H.push({pattern:k,callbacks:[G]}))},"subscribeUpdate"),z=r((M,k)=>{if(M){if((0,c.isFn)(k))k(M);else for(let G in k){if(!i.call(k,G)||a.ReadOnlyProperties[G]||a.ReservedProperties[G])continue;const H=a.MutuallyExclusiveProperties[G];if(H&&i.call(k,H)&&!(0,c.isValid)(k[H]))continue;const K=k[G];(0,c.isFn)(K)||(M[G]=K)}return M}},"deserialize"),B=r((M,k)=>{if((0,c.isFn)(k))return k(M);{const G={};for(let H in M){if(!i.call(M,H)||a.ReservedProperties[H])continue;if(H==="address"||H==="path"){G[H]=M[H].toString();continue}const K=M[H];(0,c.isFn)(K)||(G[H]=(0,n.toJS)(K))}return G}},"serialize"),U=r(M=>{var k;const G=(k=M.address)==null?void 0:k.toString();return({address:H})=>H===G||H.indexOf(G+".")===0},"createChildrenFeedbackFilter"),J=r(M=>n.batch.bound(k=>z(M,k)),"createStateSetter"),Q=r(M=>k=>B(M,k),"createStateGetter"),ee=r(M=>n.batch.bound((k,G)=>{if((0,u.isQuery)(k))k.forEach(H=>{H.setState(G)});else if((0,u.isGeneralField)(k))k.setState(G);else{let H=0,K=c.FormPath.parse(k);M.query(K).forEach(X=>{X.setState(G),H++}),(H===0||K.isWildMatchPattern)&&ae(M,K,G)}}),"createBatchStateSetter"),ne=r(M=>(k,G)=>(0,u.isQuery)(k)?k.take(G):(0,u.isGeneralField)(k)?k.getState(G):M.query(k).take(H=>H.getState(G)),"createBatchStateGetter"),pe=r((M,k)=>{Array.isArray(k.object)&&k.key==="length"||((0,n.contains)(M.initialValues,k.object)||M.initialValues===k.value)&&((k.type==="add"||k.type==="set")&&j(M,k.path.slice(1),k.value),M.initialized&&M.notify(s.LifeCycleTypes.ON_FORM_INITIAL_VALUES_CHANGE))},"triggerFormInitialValuesChange"),Ce=r((M,k)=>{Array.isArray(k.object)&&k.key==="length"||((0,n.contains)(M.values,k.object)||M.values===k.value)&&M.initialized&&M.notify(s.LifeCycleTypes.ON_FORM_VALUES_CHANGE)},"triggerFormValuesChange"),rt=r((M,k)=>{clearTimeout(M.requests.validate),k?(M.requests.validate=setTimeout(()=>{(0,n.batch)(()=>{M.validating=k,l(M,s.LifeCycleTypes.ON_FORM_VALIDATING,s.LifeCycleTypes.ON_FIELD_VALIDATING)})},a.RESPONSE_REQUEST_DURATION),l(M,s.LifeCycleTypes.ON_FORM_VALIDATE_START,s.LifeCycleTypes.ON_FIELD_VALIDATE_START)):(M.validating!==k&&(M.validating=k),l(M,s.LifeCycleTypes.ON_FORM_VALIDATE_END,s.LifeCycleTypes.ON_FIELD_VALIDATE_END))},"setValidating"),qp=r((M,k)=>{clearTimeout(M.requests.submit),k?(M.requests.submit=setTimeout(()=>{(0,n.batch)(()=>{M.submitting=k,l(M,s.LifeCycleTypes.ON_FORM_SUBMITTING,s.LifeCycleTypes.ON_FIELD_SUBMITTING)})},a.RESPONSE_REQUEST_DURATION),l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_START,s.LifeCycleTypes.ON_FIELD_SUBMIT_START)):(M.submitting!==k&&(M.submitting=k),l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_END,s.LifeCycleTypes.ON_FIELD_SUBMIT_END))},"setSubmitting"),Kp=r((M,k)=>{clearTimeout(M.requests.loading),k?M.requests.loading=setTimeout(()=>{(0,n.batch)(()=>{M.loading=k,l(M,s.LifeCycleTypes.ON_FORM_LOADING,s.LifeCycleTypes.ON_FIELD_LOADING)})},a.RESPONSE_REQUEST_DURATION):M.loading!==k&&(M.loading=k)},"setLoading"),Zp=r((M,k)=>ie(null,null,function*(){const G=r(K=>(0,u.isForm)(K)?(0,n.toJS)(K.values):(0,n.toJS)(K.value),"getValues");M.setSubmitting(!0);try{l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_START,s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_START),yield M.validate(),l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_SUCCESS,s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_SUCCESS)}catch(K){l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_FAILED,s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_FAILED)}l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_END,s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_END);let H;try{if(M.invalid)throw M.errors;(0,c.isFn)(k)?H=yield k(G(M)):H=G(M),l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_SUCCESS,s.LifeCycleTypes.ON_FIELD_SUBMIT_SUCCESS)}catch(K){throw M.setSubmitting(!1),l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_FAILED,s.LifeCycleTypes.ON_FIELD_SUBMIT_FAILED),l(M,s.LifeCycleTypes.ON_FORM_SUBMIT,s.LifeCycleTypes.ON_FIELD_SUBMIT),K}return M.setSubmitting(!1),l(M,s.LifeCycleTypes.ON_FORM_SUBMIT,s.LifeCycleTypes.ON_FIELD_SUBMIT),H}),"batchSubmit"),yc=r(M=>{var H,K,X,$;const k=(K=(H=M.props.validatePattern)!=null?H:M.form.props.validatePattern)!=null?K:["editable"],G=($=(X=M.props.validateDisplay)!=null?X:M.form.props.validateDisplay)!=null?$:["visible"];return k.includes(M.pattern)&&G.includes(M.display)},"shouldValidate"),Qp=r((M,k,G)=>ie(null,null,function*(){if((0,u.isForm)(M))M.setValidating(!0);else if(!yc(M))return;const H=[];if(M.query(k).forEach(K=>{(0,u.isVoidField)(K)||H.push(wn(K,G,K===M))}),yield Promise.all(H),(0,u.isForm)(M)&&M.setValidating(!1),M.invalid)throw l(M,s.LifeCycleTypes.ON_FORM_VALIDATE_FAILED,s.LifeCycleTypes.ON_FIELD_VALIDATE_FAILED),M.errors;l(M,s.LifeCycleTypes.ON_FORM_VALIDATE_SUCCESS,s.LifeCycleTypes.ON_FIELD_VALIDATE_SUCCESS)}),"batchValidate"),Xp=r((M,k,G)=>ie(null,null,function*(){const H=[];M.query(k).forEach(K=>{(0,u.isVoidField)(K)||H.push(_c(K,G,M===K))}),(0,u.isForm)(M)&&(M.modified=!1),l(M,s.LifeCycleTypes.ON_FORM_RESET,s.LifeCycleTypes.ON_FIELD_RESET),yield Promise.all(H)}),"batchReset"),wn=n.batch.bound((M,k,G=!1)=>ie(null,null,function*(){const H=r(()=>{rt(M,!0)},"start"),K=r(()=>{rt(M,!1),!G&&(M.selfValid?M.notify(s.LifeCycleTypes.ON_FIELD_VALIDATE_SUCCESS):M.notify(s.LifeCycleTypes.ON_FIELD_VALIDATE_FAILED))},"end");if(!yc(M))return{};if(H(),!k){const $=(0,h.parseValidatorDescriptions)(M.validator).reduce((me,ye)=>me.indexOf(ye.triggerType)>-1?me:me.concat(ye.triggerType),[]),ce={};for(let me=0;me<$.length;me++){const ye=yield R(M,$[me]);(0,c.each)(ye,(Me,Re)=>{ce[Re]=ce[Re]||[],ce[Re]=ce[Re].concat(Me)})}return K(),ce}const X=yield R(M,k);return K(),X})),_c=n.batch.bound((M,k,G=!1)=>ie(null,null,function*(){const H=y(M);if(M.modified=!1,M.selfModified=!1,M.visited=!1,M.feedbacks=[],M.inputValue=H,M.inputValues=[],M.caches={},!(0,c.isUndef)(M.value))if(k!=null&&k.forceClear)M.value=H;else{const K=M.initialValue;M.value=(0,n.toJS)((0,c.isUndef)(K)?H:K)}if(G||M.notify(s.LifeCycleTypes.ON_FIELD_RESET),k!=null&&k.validate)return yield wn(M)})),$p=r(M=>{if(M.selfModified)return;M.selfModified=!0,M.modified=!0;let k=M.parent;for(;k;){if((0,u.isDataField)(k)){if(k.modified)return;k.modified=!0}k=k.parent}M.form.modified=!0},"modifySelf"),ed=r(M=>(0,n.isObservable)(M)?M:(0,c.clone)(M||{}),"getValidFormValues"),td=r((M,k)=>En(M,k)?(0,c.clone)(k):M,"getValidFieldDefaultValue"),En=r((M,k)=>{const G=!(0,c.isUndef)(M),H=!(0,c.isUndef)(k);if(!G)return H;if(typeof M==typeof k&&(M===""||M===0))return!1;const K=M!==null&&(0,c.isEmpty)(M,!0),X=k!==null&&(0,c.isEmpty)(k,!0);return K?!X:!1},"allowAssignDefaultValue"),rd=r(M=>{const k=(0,c.toArr)(M.props.reactions);M.form.addEffects(M,()=>{k.forEach(G=>{(0,c.isFn)(G)&&M.disposers.push((0,n.autorun)(n.batch.scope.bound(()=>{M.destroyed||G(M)})))})})},"createReactions"),od=r((M,k)=>(0,n.reaction)(M,n.untracked.bound(k)),"createReaction"),nd=r(()=>{a.GlobalState.initializing=!0},"initializeStart"),sd=r(()=>{n.batch.endpoint(()=>{a.GlobalState.initializing=!1})},"initializeEnd"),ad=r((M,k=M.index)=>{if(k>-1){let G=M.parent;for(;G;){if((0,u.isArrayField)(G))return G;if(G===M.form)return;G=G.parent}}},"getArrayParent"),id=r(M=>{let k=M.parent;for(;k;){if((0,u.isArrayField)(k))return;if((0,u.isObjectField)(k))return k;if(k===M.form)return;k=k.parent}},"getObjectParent");return uo}var po,Ma;function mo(){if(Ma)return po;Ma=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{Query:()=>u}),po=F(_);var n=ue(),c=Ze();const h=r((i,l)=>{if(i)return(0,n.isFn)(l)?l(i,i.address):i},"output"),s=r((i,l)=>{const p=l.toString(),d=i.indexes[p],y=i.fields[p],m=i.fields[d];if(y)return p;if(m)return d},"takeMatchPattern"),a=class{constructor(l){if(this.addresses=[],this.pattern=n.FormPath.parse(l.pattern,l.base),this.form=l.form,this.pattern.isMatchPattern)(0,n.each)(this.form.fields,(p,d)=>{if(!p){delete this.form.fields[d];return}p.match(this.pattern)&&this.addresses.push(d)});else{const p=s(this.form,this.pattern.haveRelativePattern?(0,c.buildDataPath)(l.form.fields,this.pattern):this.pattern);p&&(this.addresses=[p])}}take(l){return h(this.form.fields[this.addresses[0]],l)}map(l){return this.addresses.map(p=>h(this.form.fields[p],l))}forEach(l){return this.addresses.forEach(p=>h(this.form.fields[p],l))}reduce(l,p){return this.addresses.reduce((d,y)=>h(this.form.fields[y],(m,g)=>l(d,m,g)),p)}get(l){const p=this.take();if(p)return p[l]}getIn(l){return n.FormPath.getIn(this.take(),l)}value(){return this.get("value")}initialValue(){return this.get("initialValue")}};r(a,"Query");let u=a;return po}var fo,Ra;function xt(){if(Ra)return fo;Ra=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(d,y)=>e(d,"name",{value:y,configurable:!0}),b=(d,y)=>{for(var m in y)e(d,m,{get:y[m],enumerable:!0})},v=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of o(y))!f.call(d,x)&&x!==m&&e(d,x,{get:()=>y[x],enumerable:!(g=t(y,x))||g.enumerable});return d},F=d=>v(e({},"__esModule",{value:!0}),d),_={};b(_,{createEffectContext:()=>u,createEffectHook:()=>a,runEffects:()=>p,useEffectForm:()=>l}),fo=F(_);var n=ue(),c=go(),h=_t(),s=Aa();const a=r((d,y)=>(...m)=>{if(s.GlobalState.effectStart)s.GlobalState.lifecycles.push(new c.LifeCycle(d,(g,x)=>{(0,n.isFn)(y)&&y(g,x,...s.GlobalState.context)(...m)}));else throw new Error("Effect hooks cannot be used in asynchronous function body")},"createEffectHook"),u=r(d=>{let y;return{provide(m){if(s.GlobalState.effectStart)y=s.GlobalState.context.length,s.GlobalState.context[y]=(0,n.isValid)(m)?m:d;else throw new Error("Provide method cannot be used in asynchronous function body")},consume(){if(!s.GlobalState.effectStart)throw new Error("Consume method cannot be used in asynchronous function body");return s.GlobalState.context[y]}}},"createEffectContext"),i=u(),l=i.consume,p=r((d,...y)=>(s.GlobalState.lifecycles=[],s.GlobalState.context=[],s.GlobalState.effectStart=!0,s.GlobalState.effectEnd=!1,(0,h.isForm)(d)&&i.provide(d),y.forEach(m=>{(0,n.isFn)(m)&&m(d)}),s.GlobalState.context=[],s.GlobalState.effectStart=!1,s.GlobalState.effectEnd=!0,s.GlobalState.lifecycles),"runEffects");return fo}var ho,Na;function ka(){if(Na)return ho;Na=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{BaseField:()=>u}),ho=F(_);var n=ue(),c=Ze(),h=Ke(),s=mo();const a=class{constructor(){this.disposers=[],this.actions={},this.setTitle=r(l=>{this.title=l},"setTitle"),this.setDescription=r(l=>{this.description=l},"setDescription"),this.setDisplay=r(l=>{this.display=l},"setDisplay"),this.setPattern=r(l=>{this.pattern=l},"setPattern"),this.setComponent=r((l,p)=>{l&&(this.componentType=l),p&&(this.componentProps=this.componentProps||{},Object.assign(this.componentProps,p))},"setComponent"),this.setComponentProps=r(l=>{l&&(this.componentProps=this.componentProps||{},Object.assign(this.componentProps,l))},"setComponentProps"),this.setDecorator=r((l,p)=>{l&&(this.decoratorType=l),p&&(this.decoratorProps=this.decoratorProps||{},Object.assign(this.decoratorProps,p))},"setDecorator"),this.setDecoratorProps=r(l=>{l&&(this.decoratorProps=this.decoratorProps||{},Object.assign(this.decoratorProps,l))},"setDecoratorProps"),this.setData=r(l=>{this.data=l},"setData"),this.setContent=r(l=>{this.content=l},"setContent"),this.onInit=r(()=>{this.initialized=!0,(0,c.initFieldUpdate)(this),this.notify(h.LifeCycleTypes.ON_FIELD_INIT)},"onInit"),this.onMount=r(()=>{this.mounted=!0,this.unmounted=!1,this.notify(h.LifeCycleTypes.ON_FIELD_MOUNT)},"onMount"),this.onUnmount=r(()=>{this.mounted=!1,this.unmounted=!0,this.notify(h.LifeCycleTypes.ON_FIELD_UNMOUNT)},"onUnmount"),this.query=r(l=>new s.Query({pattern:l,base:this.address,form:this.form}),"query"),this.notify=r((l,p)=>this.form.notify(l,p!=null?p:this),"notify"),this.dispose=r(()=>{this.disposers.forEach(l=>{l()}),this.form.removeEffects(this)},"dispose"),this.destroy=r((l=!0)=>{(0,c.destroy)(this.form.fields,this.address.toString(),l)},"destroy"),this.match=r(l=>n.FormPath.parse(l).matchAliasGroup(this.address,this.path),"match"),this.inject=r(l=>{(0,n.each)(l,(p,d)=>{(0,n.isFn)(p)&&(this.actions[d]=p)})},"inject"),this.invoke=r((l,...p)=>{var d,y;return(y=(d=this.actions)[l])==null?void 0:y.call(d,...p)},"invoke")}locate(l){this.form.fields[l.toString()]=this,(0,c.locateNode)(this,l)}get indexes(){return this.path.transform(/^\d+$/,(...l)=>l.map(p=>Number(p)))}get index(){var l;return(l=this.indexes[this.indexes.length-1])!=null?l:-1}get records(){const l=(0,c.getArrayParent)(this);return l==null?void 0:l.value}get record(){var l;const p=(0,c.getObjectParent)(this);if(p)return p.value;const d=this.index,y=(0,c.getArrayParent)(this,d);return y?(l=y.value)==null?void 0:l[d]:this.form.values}get component(){return[this.componentType,this.componentProps]}set component(l){const p=(0,n.toArr)(l);this.componentType=p[0],this.componentProps=p[1]||{}}get decorator(){return[this.decoratorType,this.decoratorProps]}set decorator(l){const p=(0,n.toArr)(l);this.decoratorType=p[0],this.decoratorProps=p[1]||{}}get parent(){let l=this.address.parent(),p=l.toString();for(;!this.form.fields[p];)if(l=l.parent(),p=l.toString(),!p)return;return this.form.fields[p]}get display(){var l;const p=(l=this.parent)==null?void 0:l.display;return p&&p!=="visible"?this.selfDisplay&&this.selfDisplay!=="visible"?this.selfDisplay:p:(0,n.isValid)(this.selfDisplay)?this.selfDisplay:p||this.form.display||"visible"}get pattern(){var l;const p=((l=this.parent)==null?void 0:l.pattern)||this.form.pattern||"editable",d=this.selfPattern;return(0,n.isValid)(d)?p==="readPretty"&&d!=="editable"?p:d:p}get editable(){return this.pattern==="editable"}get disabled(){return this.pattern==="disabled"}get readOnly(){return this.pattern==="readOnly"}get readPretty(){return this.pattern==="readPretty"}get hidden(){return this.display==="hidden"}get visible(){return this.display==="visible"}get destroyed(){return!this.form.fields[this.address.toString()]}set hidden(l){(0,n.isValid)(l)&&(l?this.display="hidden":this.display="visible")}set visible(l){(0,n.isValid)(l)&&(l?this.display="visible":this.display="none")}set editable(l){(0,n.isValid)(l)&&(l?this.pattern="editable":this.pattern="readPretty")}set readOnly(l){(0,n.isValid)(l)&&(l?this.pattern="readOnly":this.pattern="editable")}set disabled(l){(0,n.isValid)(l)&&(l?this.pattern="disabled":this.pattern="editable")}set readPretty(l){(0,n.isValid)(l)&&(l?this.pattern="readPretty":this.pattern="editable")}set pattern(l){this.selfPattern=l}set display(l){this.selfDisplay=l}};r(a,"BaseField");let u=a;return ho}var bo,Ta;function gt(){if(Ta)return bo;Ta=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(p,d)=>e(p,"name",{value:d,configurable:!0}),b=(p,d)=>{for(var y in d)e(p,y,{get:d[y],enumerable:!0})},v=(p,d,y,m)=>{if(d&&typeof d=="object"||typeof d=="function")for(let g of o(d))!f.call(p,g)&&g!==y&&e(p,g,{get:()=>d[g],enumerable:!(m=t(d,g))||m.enumerable});return p},F=p=>v(e({},"__esModule",{value:!0}),p),_={};b(_,{Field:()=>l}),bo=F(_);var n=Oe(),c=ue(),h=ro(),s=Ze(),a=Ke(),u=ka();const i=class extends u.BaseField{constructor(d,y,m,g){super(),this.displayName="Field",this.caches={},this.requests={},this.setDataSource=r(x=>{this.dataSource=x},"setDataSource"),this.setFeedback=r(x=>{(0,s.updateFeedback)(this,x)},"setFeedback"),this.setSelfErrors=r(x=>{this.selfErrors=x},"setSelfErrors"),this.setSelfWarnings=r(x=>{this.selfWarnings=x},"setSelfWarnings"),this.setSelfSuccesses=r(x=>{this.selfSuccesses=x},"setSelfSuccesses"),this.setValidator=r(x=>{this.validator=x},"setValidator"),this.setValidatorRule=r((x,P)=>{(0,s.setValidatorRule)(this,x,P)},"setValidatorRule"),this.setRequired=r(x=>{this.required=x},"setRequired"),this.setValue=r(x=>{if(!this.destroyed){if(!this.initialized){if(this.display==="none"){this.caches.value=x;return}if(x=(0,s.getValidFieldDefaultValue)(x,this.initialValue),!(0,s.allowAssignDefaultValue)(this.value,x)&&!this.designable)return}this.form.setValuesIn(this.path,x)}},"setValue"),this.setInitialValue=r(x=>{this.destroyed||!this.initialized&&!(0,s.allowAssignDefaultValue)(this.initialValue,x)&&!this.designable||this.form.setInitialValuesIn(this.path,x)},"setInitialValue"),this.setLoading=r(x=>{(0,s.setLoading)(this,x)},"setLoading"),this.setValidating=r(x=>{(0,s.setValidating)(this,x)},"setValidating"),this.setSubmitting=r(x=>{(0,s.setSubmitting)(this,x)},"setSubmitting"),this.setState=(0,s.createStateSetter)(this),this.getState=(0,s.createStateGetter)(this),this.onInput=r((...x)=>ie(this,null,function*(){const P=r(w=>{var I,E;return(0,s.isHTMLInputEvent)(w[0])&&"currentTarget"in w[0]?((I=w[0])==null?void 0:I.target)===((E=w[0])==null?void 0:E.currentTarget):!0},"isHTMLInputEventFromSelf"),S=r(w=>{var I;return(I=w[0])!=null&&I.target&&!(0,s.isHTMLInputEvent)(w[0])?w:(0,s.getValuesFromEvent)(w)},"getValues");if(!P(x))return;const j=S(x),O=j[0];this.caches.inputting=!0,this.inputValue=O,this.inputValues=j,this.value=O,this.modify(),this.notify(a.LifeCycleTypes.ON_FIELD_INPUT_VALUE_CHANGE),this.notify(a.LifeCycleTypes.ON_FORM_INPUT_CHANGE,this.form),yield(0,s.validateSelf)(this,"onInput"),this.caches.inputting=!1}),"onInput"),this.onFocus=r((...x)=>ie(this,null,function*(){var P;(P=x[0])!=null&&P.target&&!(0,s.isHTMLInputEvent)(x[0],!1)||(this.active=!0,this.visited=!0,yield(0,s.validateSelf)(this,"onFocus"))}),"onFocus"),this.onBlur=r((...x)=>ie(this,null,function*(){var P;(P=x[0])!=null&&P.target&&!(0,s.isHTMLInputEvent)(x[0],!1)||(this.active=!1,yield(0,s.validateSelf)(this,"onBlur"))}),"onBlur"),this.validate=r(x=>(0,s.batchValidate)(this,`${this.address}.**`,x),"validate"),this.submit=r(x=>(0,s.batchSubmit)(this,x),"submit"),this.reset=r(x=>(0,s.batchReset)(this,`${this.address}.**`,x),"reset"),this.queryFeedbacks=r(x=>(0,s.queryFeedbacks)(this,x),"queryFeedbacks"),this.modify=r(()=>(0,s.modifySelf)(this),"modify"),this.form=m,this.props=y,this.designable=g,(0,s.initializeStart)(),this.locate(d),this.initialize(),this.makeObservable(),this.makeReactive(),this.onInit(),(0,s.initializeEnd)()}initialize(){this.initialized=!1,this.loading=!1,this.validating=!1,this.submitting=!1,this.selfModified=!1,this.active=!1,this.visited=!1,this.mounted=!1,this.unmounted=!1,this.inputValues=[],this.inputValue=null,this.feedbacks=[],this.title=this.props.title,this.description=this.props.description,this.display=this.props.display,this.pattern=this.props.pattern,this.editable=this.props.editable,this.disabled=this.props.disabled,this.readOnly=this.props.readOnly,this.readPretty=this.props.readPretty,this.visible=this.props.visible,this.hidden=this.props.hidden,this.dataSource=this.props.dataSource,this.validator=this.props.validator,this.required=this.props.required,this.content=this.props.content,this.initialValue=this.props.initialValue,this.value=this.props.value,this.data=this.props.data,this.decorator=(0,c.toArr)(this.props.decorator),this.component=(0,c.toArr)(this.props.component)}makeObservable(){this.designable||(0,n.define)(this,{path:n.observable.ref,title:n.observable.ref,description:n.observable.ref,dataSource:n.observable.ref,selfDisplay:n.observable.ref,selfPattern:n.observable.ref,loading:n.observable.ref,validating:n.observable.ref,submitting:n.observable.ref,selfModified:n.observable.ref,modified:n.observable.ref,active:n.observable.ref,visited:n.observable.ref,initialized:n.observable.ref,mounted:n.observable.ref,unmounted:n.observable.ref,inputValue:n.observable.ref,inputValues:n.observable.ref,decoratorType:n.observable.ref,componentType:n.observable.ref,content:n.observable.ref,feedbacks:n.observable.ref,decoratorProps:n.observable,componentProps:n.observable,validator:n.observable.shallow,data:n.observable.shallow,component:n.observable.computed,decorator:n.observable.computed,errors:n.observable.computed,warnings:n.observable.computed,successes:n.observable.computed,valid:n.observable.computed,invalid:n.observable.computed,selfErrors:n.observable.computed,selfWarnings:n.observable.computed,selfSuccesses:n.observable.computed,selfValid:n.observable.computed,selfInvalid:n.observable.computed,validateStatus:n.observable.computed,value:n.observable.computed,initialValue:n.observable.computed,display:n.observable.computed,pattern:n.observable.computed,required:n.observable.computed,hidden:n.observable.computed,visible:n.observable.computed,disabled:n.observable.computed,readOnly:n.observable.computed,readPretty:n.observable.computed,editable:n.observable.computed,indexes:n.observable.computed,setDisplay:n.action,setTitle:n.action,setDescription:n.action,setDataSource:n.action,setValue:n.action,setPattern:n.action,setInitialValue:n.action,setLoading:n.action,setValidating:n.action,setFeedback:n.action,setSelfErrors:n.action,setSelfWarnings:n.action,setSelfSuccesses:n.action,setValidator:n.action,setRequired:n.action,setComponent:n.action,setComponentProps:n.action,setDecorator:n.action,setDecoratorProps:n.action,setData:n.action,setContent:n.action,validate:n.action,reset:n.action,onInit:n.batch,onInput:n.batch,onMount:n.batch,onUnmount:n.batch,onFocus:n.batch,onBlur:n.batch})}makeReactive(){this.designable||(this.disposers.push((0,s.createReaction)(()=>this.value,d=>{this.notify(a.LifeCycleTypes.ON_FIELD_VALUE_CHANGE),(0,c.isValid)(d)&&(this.selfModified&&!this.caches.inputting&&(0,s.validateSelf)(this),!(0,c.isEmpty)(d)&&this.display==="none"&&(this.caches.value=(0,n.toJS)(d),this.form.deleteValuesIn(this.path)))}),(0,s.createReaction)(()=>this.initialValue,()=>{this.notify(a.LifeCycleTypes.ON_FIELD_INITIAL_VALUE_CHANGE)}),(0,s.createReaction)(()=>this.display,d=>{var m;const y=this.value;d!=="none"?y===void 0&&this.caches.value!==void 0&&(this.setValue(this.caches.value),this.caches.value=void 0):(this.caches.value=(m=(0,n.toJS)(y))!=null?m:(0,n.toJS)(this.initialValue),this.form.deleteValuesIn(this.path)),(d==="none"||d==="hidden")&&this.setFeedback({type:"error",messages:[]})}),(0,s.createReaction)(()=>this.pattern,d=>{d!=="editable"&&this.setFeedback({type:"error",messages:[]})})),(0,s.createReactions)(this))}get selfErrors(){return(0,s.queryFeedbackMessages)(this,{type:"error"})}get errors(){return this.form.errors.filter((0,s.createChildrenFeedbackFilter)(this))}get selfWarnings(){return(0,s.queryFeedbackMessages)(this,{type:"warning"})}get warnings(){return this.form.warnings.filter((0,s.createChildrenFeedbackFilter)(this))}get selfSuccesses(){return(0,s.queryFeedbackMessages)(this,{type:"success"})}get successes(){return this.form.successes.filter((0,s.createChildrenFeedbackFilter)(this))}get selfValid(){return!this.selfErrors.length}get valid(){return!this.errors.length}get selfInvalid(){return!this.selfValid}get invalid(){return!this.valid}get value(){return this.form.getValuesIn(this.path)}get initialValue(){return this.form.getInitialValuesIn(this.path)}get required(){return((0,c.isArr)(this.validator)?this.validator:(0,h.parseValidatorDescriptions)(this.validator)).some(y=>!!(y!=null&&y.required))}get validateStatus(){if(this.validating)return"validating";if(this.selfInvalid)return"error";if(this.selfWarnings.length)return"warning";if(this.selfSuccesses.length)return"success"}set required(d){this.required!==d&&this.setValidatorRule("required",d)}set value(d){this.setValue(d)}set initialValue(d){this.setInitialValue(d)}set selfErrors(d){this.setFeedback({type:"error",code:"EffectError",messages:d})}set selfWarnings(d){this.setFeedback({type:"warning",code:"EffectWarning",messages:d})}set selfSuccesses(d){this.setFeedback({type:"success",code:"EffectSuccess",messages:d})}};r(i,"Field");let l=i;return bo}var vo,Va;function Ba(){if(Va)return vo;Va=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{ArrayField:()=>u}),vo=F(_);var n=Oe(),c=ue(),h=Ze(),s=gt();const a=class extends s.Field{constructor(l,p,d,y){super(l,p,d,y),this.displayName="ArrayField",this.push=r((...m)=>(0,n.action)(()=>((0,c.isArr)(this.value)||(this.value=[]),this.value.push(...m),this.onInput(this.value))),"push"),this.pop=r(()=>{if((0,c.isArr)(this.value))return(0,n.action)(()=>{const m=this.value.length-1;return(0,h.spliceArrayState)(this,{startIndex:m,deleteCount:1}),this.value.pop(),this.onInput(this.value)})},"pop"),this.insert=r((m,...g)=>(0,n.action)(()=>{if((0,c.isArr)(this.value)||(this.value=[]),g.length!==0)return(0,h.spliceArrayState)(this,{startIndex:m,insertCount:g.length}),this.value.splice(m,0,...g),this.onInput(this.value)}),"insert"),this.remove=r(m=>{if((0,c.isArr)(this.value))return(0,n.action)(()=>((0,h.spliceArrayState)(this,{startIndex:m,deleteCount:1}),this.value.splice(m,1),this.onInput(this.value)))},"remove"),this.shift=r(()=>{if((0,c.isArr)(this.value))return(0,n.action)(()=>(this.value.shift(),this.onInput(this.value)))},"shift"),this.unshift=r((...m)=>(0,n.action)(()=>((0,c.isArr)(this.value)||(this.value=[]),(0,h.spliceArrayState)(this,{startIndex:0,insertCount:m.length}),this.value.unshift(...m),this.onInput(this.value))),"unshift"),this.move=r((m,g)=>{if((0,c.isArr)(this.value)&&m!==g)return(0,n.action)(()=>((0,c.move)(this.value,m,g),(0,h.exchangeArrayState)(this,{fromIndex:m,toIndex:g}),this.onInput(this.value)))},"move"),this.moveUp=r(m=>{if((0,c.isArr)(this.value))return this.move(m,m-1<0?this.value.length-1:m-1)},"moveUp"),this.moveDown=r(m=>{if((0,c.isArr)(this.value))return this.move(m,m+1>=this.value.length?0:m+1)},"moveDown"),this.makeAutoCleanable()}makeAutoCleanable(){this.disposers.push((0,n.reaction)(()=>{var l;return(l=this.value)==null?void 0:l.length},(l,p)=>{p&&!l?(0,h.cleanupArrayChildren)(this,0):l<p&&(0,h.cleanupArrayChildren)(this,l)}))}};r(a,"ArrayField");let u=a;return vo}var yo,La;function Ua(){if(La)return yo;La=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{ObjectField:()=>a}),yo=F(_);var n=Oe(),c=Ze(),h=gt();const s=class extends h.Field{constructor(i,l,p,d){super(i,l,p,d),this.displayName="ObjectField",this.additionalProperties=[],this.addProperty=r((y,m)=>(this.form.setValuesIn(this.path.concat(y),m),this.additionalProperties.push(y),this.onInput(this.value)),"addProperty"),this.removeProperty=r(y=>(this.form.deleteValuesIn(this.path.concat(y)),this.additionalProperties.splice(this.additionalProperties.indexOf(y),1),this.onInput(this.value)),"removeProperty"),this.existProperty=r(y=>this.form.existValuesIn(this.path.concat(y)),"existProperty"),this.makeAutoCleanable()}makeAutoCleanable(){this.disposers.push((0,n.reaction)(()=>Object.keys(this.value||{}),i=>{const l=this.additionalProperties.filter(p=>!i.includes(p));(0,c.cleanupObjectChildren)(this,l)}))}};r(s,"ObjectField");let a=s;return yo}var _o,Ga;function Ha(){if(Ga)return _o;Ga=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{VoidField:()=>u}),_o=F(_);var n=Oe(),c=ue(),h=Ze(),s=ka();const a=class extends s.BaseField{constructor(l,p,d,y){super(),this.displayName="VoidField",this.setState=(0,h.createStateSetter)(this),this.getState=(0,h.createStateGetter)(this),this.form=d,this.props=p,this.designable=y,(0,h.initializeStart)(),this.locate(l),this.initialize(),this.makeObservable(),this.makeReactive(),this.onInit(),(0,h.initializeEnd)()}initialize(){this.mounted=!1,this.unmounted=!1,this.initialized=!1,this.title=this.props.title,this.description=this.props.description,this.pattern=this.props.pattern,this.display=this.props.display,this.hidden=this.props.hidden,this.editable=this.props.editable,this.disabled=this.props.disabled,this.readOnly=this.props.readOnly,this.readPretty=this.props.readPretty,this.visible=this.props.visible,this.content=this.props.content,this.data=this.props.data,this.decorator=(0,c.toArr)(this.props.decorator),this.component=(0,c.toArr)(this.props.component)}makeObservable(){this.designable||(0,n.define)(this,{path:n.observable.ref,title:n.observable.ref,description:n.observable.ref,selfDisplay:n.observable.ref,selfPattern:n.observable.ref,initialized:n.observable.ref,mounted:n.observable.ref,unmounted:n.observable.ref,decoratorType:n.observable.ref,componentType:n.observable.ref,content:n.observable.ref,data:n.observable.shallow,decoratorProps:n.observable,componentProps:n.observable,display:n.observable.computed,pattern:n.observable.computed,hidden:n.observable.computed,visible:n.observable.computed,disabled:n.observable.computed,readOnly:n.observable.computed,readPretty:n.observable.computed,editable:n.observable.computed,component:n.observable.computed,decorator:n.observable.computed,indexes:n.observable.computed,setTitle:n.action,setDescription:n.action,setDisplay:n.action,setPattern:n.action,setComponent:n.action,setComponentProps:n.action,setDecorator:n.action,setDecoratorProps:n.action,setData:n.action,setContent:n.action,onInit:n.batch,onMount:n.batch,onUnmount:n.batch})}makeReactive(){this.designable||(0,h.createReactions)(this)}};r(a,"VoidField");let u=a;return _o}var xo,za;function bu(){if(za)return xo;za=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(j,O)=>e(j,"name",{value:O,configurable:!0}),b=(j,O)=>{for(var w in O)e(j,w,{get:O[w],enumerable:!0})},v=(j,O,w,I)=>{if(O&&typeof O=="object"||typeof O=="function")for(let E of o(O))!f.call(j,E)&&E!==w&&e(j,E,{get:()=>O[E],enumerable:!(I=t(O,E))||I.enumerable});return j},F=j=>v(e({},"__esModule",{value:!0}),j),_={};b(_,{Form:()=>S}),xo=F(_);var n=Oe(),c=ue(),h=_t(),s=xt(),a=Ze(),u=Ke(),i=Ba(),l=gt(),p=Ea(),d=Oa(),y=Ua(),m=mo(),g=Ha();const x="__FORMILY_DEV_TOOLS_HOOK__",P=class{constructor(O){this.displayName="Form",this.fields={},this.requests={},this.indexes={},this.disposers=[],this.createField=r(w=>{const I=c.FormPath.parse(w.basePath).concat(w.name),E=I.toString();if(E)return(!this.fields[E]||this.props.designable)&&((0,n.batch)(()=>{new l.Field(I,w,this,this.props.designable)}),this.notify(u.LifeCycleTypes.ON_FORM_GRAPH_CHANGE)),this.fields[E]},"createField"),this.createArrayField=r(w=>{const I=c.FormPath.parse(w.basePath).concat(w.name),E=I.toString();if(E)return(!this.fields[E]||this.props.designable)&&((0,n.batch)(()=>{new i.ArrayField(I,W(T({},w),{value:(0,c.isArr)(w.value)?w.value:[]}),this,this.props.designable)}),this.notify(u.LifeCycleTypes.ON_FORM_GRAPH_CHANGE)),this.fields[E]},"createArrayField"),this.createObjectField=r(w=>{const I=c.FormPath.parse(w.basePath).concat(w.name),E=I.toString();if(E)return(!this.fields[E]||this.props.designable)&&((0,n.batch)(()=>{new y.ObjectField(I,W(T({},w),{value:(0,c.isObj)(w.value)?w.value:{}}),this,this.props.designable)}),this.notify(u.LifeCycleTypes.ON_FORM_GRAPH_CHANGE)),this.fields[E]},"createObjectField"),this.createVoidField=r(w=>{const I=c.FormPath.parse(w.basePath).concat(w.name),E=I.toString();if(E)return(!this.fields[E]||this.props.designable)&&((0,n.batch)(()=>{new g.VoidField(I,w,this,this.props.designable)}),this.notify(u.LifeCycleTypes.ON_FORM_GRAPH_CHANGE)),this.fields[E]},"createVoidField"),this.setValues=r((w,I="merge")=>{(0,c.isPlainObj)(w)&&(I==="merge"||I==="deepMerge"?(0,c.merge)(this.values,w,{arrayMerge:r((E,R)=>R,"arrayMerge"),assign:!0}):I==="shallowMerge"?Object.assign(this.values,w):this.values=w)},"setValues"),this.setInitialValues=r((w,I="merge")=>{(0,c.isPlainObj)(w)&&(I==="merge"||I==="deepMerge"?(0,c.merge)(this.initialValues,w,{arrayMerge:r((E,R)=>R,"arrayMerge"),assign:!0}):I==="shallowMerge"?Object.assign(this.initialValues,w):this.initialValues=w)},"setInitialValues"),this.setValuesIn=r((w,I)=>{c.FormPath.setIn(this.values,w,I)},"setValuesIn"),this.deleteValuesIn=r(w=>{c.FormPath.deleteIn(this.values,w)},"deleteValuesIn"),this.existValuesIn=r(w=>c.FormPath.existIn(this.values,w),"existValuesIn"),this.getValuesIn=r(w=>c.FormPath.getIn(this.values,w),"getValuesIn"),this.setInitialValuesIn=r((w,I)=>{c.FormPath.setIn(this.initialValues,w,I)},"setInitialValuesIn"),this.deleteInitialValuesIn=r(w=>{c.FormPath.deleteIn(this.initialValues,w)},"deleteInitialValuesIn"),this.existInitialValuesIn=r(w=>c.FormPath.existIn(this.initialValues,w),"existInitialValuesIn"),this.getInitialValuesIn=r(w=>c.FormPath.getIn(this.initialValues,w),"getInitialValuesIn"),this.setLoading=r(w=>{(0,a.setLoading)(this,w)},"setLoading"),this.setSubmitting=r(w=>{(0,a.setSubmitting)(this,w)},"setSubmitting"),this.setValidating=r(w=>{(0,a.setValidating)(this,w)},"setValidating"),this.setDisplay=r(w=>{this.display=w},"setDisplay"),this.setPattern=r(w=>{this.pattern=w},"setPattern"),this.addEffects=r((w,I)=>{this.heart.hasLifeCycles(w)||this.heart.addLifeCycles(w,(0,s.runEffects)(this,I))},"addEffects"),this.removeEffects=r(w=>{this.heart.removeLifeCycles(w)},"removeEffects"),this.setEffects=r(w=>{this.heart.setLifeCycles((0,s.runEffects)(this,w))},"setEffects"),this.clearErrors=r((w="*")=>{this.query(w).forEach(I=>{(0,h.isVoidField)(I)||I.setFeedback({type:"error",messages:[]})})},"clearErrors"),this.clearWarnings=r((w="*")=>{this.query(w).forEach(I=>{(0,h.isVoidField)(I)||I.setFeedback({type:"warning",messages:[]})})},"clearWarnings"),this.clearSuccesses=r((w="*")=>{this.query(w).forEach(I=>{(0,h.isVoidField)(I)||I.setFeedback({type:"success",messages:[]})})},"clearSuccesses"),this.query=r(w=>new m.Query({pattern:w,base:"",form:this}),"query"),this.queryFeedbacks=r(w=>this.query(w.address||w.path||"*").reduce((I,E)=>(0,h.isVoidField)(E)?I:I.concat(E.queryFeedbacks(w).map(R=>W(T({},R),{address:E.address.toString(),path:E.path.toString()})).filter(R=>R.messages.length>0)),[]),"queryFeedbacks"),this.notify=r((w,I)=>{this.heart.publish(w,I!=null?I:this)},"notify"),this.subscribe=r(w=>this.heart.subscribe(w),"subscribe"),this.unsubscribe=r(w=>{this.heart.unsubscribe(w)},"unsubscribe"),this.onInit=r(()=>{this.initialized=!0,this.notify(u.LifeCycleTypes.ON_FORM_INIT)},"onInit"),this.onMount=r(()=>{this.mounted=!0,this.notify(u.LifeCycleTypes.ON_FORM_MOUNT),c.globalThisPolyfill[x]&&!this.props.designable&&c.globalThisPolyfill[x].inject(this.id,this)},"onMount"),this.onUnmount=r(()=>{this.notify(u.LifeCycleTypes.ON_FORM_UNMOUNT),this.query("*").forEach(w=>w.destroy(!1)),this.disposers.forEach(w=>w()),this.unmounted=!0,this.indexes={},this.heart.clear(),c.globalThisPolyfill[x]&&!this.props.designable&&c.globalThisPolyfill[x].unmount(this.id)},"onUnmount"),this.setState=(0,a.createStateSetter)(this),this.getState=(0,a.createStateGetter)(this),this.setFormState=(0,a.createStateSetter)(this),this.getFormState=(0,a.createStateGetter)(this),this.setFieldState=(0,a.createBatchStateSetter)(this),this.getFieldState=(0,a.createBatchStateGetter)(this),this.getFormGraph=r(()=>this.graph.getGraph(),"getFormGraph"),this.setFormGraph=r(w=>{this.graph.setGraph(w)},"setFormGraph"),this.clearFormGraph=r((w="*",I=!0)=>{this.query(w).forEach(E=>{E.destroy(I)})},"clearFormGraph"),this.validate=r((w="*")=>(0,a.batchValidate)(this,w),"validate"),this.submit=r(w=>(0,a.batchSubmit)(this,w),"submit"),this.reset=r((w="*",I)=>(0,a.batchReset)(this,w,I),"reset"),this.initialize(O),this.makeObservable(),this.makeReactive(),this.makeValues(),this.onInit()}initialize(O){this.id=(0,c.uid)(),this.props=T({},O),this.initialized=!1,this.submitting=!1,this.validating=!1,this.loading=!1,this.modified=!1,this.mounted=!1,this.unmounted=!1,this.display=this.props.display||"visible",this.pattern=this.props.pattern||"editable",this.editable=this.props.editable,this.disabled=this.props.disabled,this.readOnly=this.props.readOnly,this.readPretty=this.props.readPretty,this.visible=this.props.visible,this.hidden=this.props.hidden,this.graph=new p.Graph(this),this.heart=new d.Heart({lifecycles:this.lifecycles,context:this})}makeValues(){this.values=(0,a.getValidFormValues)(this.props.values),this.initialValues=(0,a.getValidFormValues)(this.props.initialValues)}makeObservable(){(0,n.define)(this,{fields:n.observable.shallow,indexes:n.observable.shallow,initialized:n.observable.ref,validating:n.observable.ref,submitting:n.observable.ref,loading:n.observable.ref,modified:n.observable.ref,pattern:n.observable.ref,display:n.observable.ref,mounted:n.observable.ref,unmounted:n.observable.ref,values:n.observable,initialValues:n.observable,valid:n.observable.computed,invalid:n.observable.computed,errors:n.observable.computed,warnings:n.observable.computed,successes:n.observable.computed,hidden:n.observable.computed,visible:n.observable.computed,editable:n.observable.computed,readOnly:n.observable.computed,readPretty:n.observable.computed,disabled:n.observable.computed,setValues:n.action,setValuesIn:n.action,setInitialValues:n.action,setInitialValuesIn:n.action,setPattern:n.action,setDisplay:n.action,setState:n.action,deleteInitialValuesIn:n.action,deleteValuesIn:n.action,setSubmitting:n.action,setValidating:n.action,reset:n.action,submit:n.action,validate:n.action,onMount:n.batch,onUnmount:n.batch,onInit:n.batch})}makeReactive(){this.disposers.push((0,n.observe)(this,O=>{(0,a.triggerFormInitialValuesChange)(this,O),(0,a.triggerFormValuesChange)(this,O)},!0))}get valid(){return!this.invalid}get invalid(){return this.errors.length>0}get errors(){return this.queryFeedbacks({type:"error"})}get warnings(){return this.queryFeedbacks({type:"warning"})}get successes(){return this.queryFeedbacks({type:"success"})}get lifecycles(){return(0,s.runEffects)(this,this.props.effects)}get hidden(){return this.display==="hidden"}get visible(){return this.display==="visible"}set hidden(O){(0,c.isValid)(O)&&(O?this.display="hidden":this.display="visible")}set visible(O){(0,c.isValid)(O)&&(O?this.display="visible":this.display="none")}get editable(){return this.pattern==="editable"}set editable(O){(0,c.isValid)(O)&&(O?this.pattern="editable":this.pattern="readPretty")}get readOnly(){return this.pattern==="readOnly"}set readOnly(O){(0,c.isValid)(O)&&(O?this.pattern="readOnly":this.pattern="editable")}get disabled(){return this.pattern==="disabled"}set disabled(O){(0,c.isValid)(O)&&(O?this.pattern="disabled":this.pattern="editable")}get readPretty(){return this.pattern==="readPretty"}set readPretty(O){(0,c.isValid)(O)&&(O?this.pattern="readPretty":this.pattern="editable")}};r(P,"Form");let S=P;return xo}var Ja;function go(){return Ja||(Ja=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Oa(),e.exports),v(_,Sa(),e.exports),v(_,Ea(),e.exports),v(_,mo(),e.exports),v(_,bu(),e.exports),v(_,gt(),e.exports),v(_,Ba(),e.exports),v(_,Ua(),e.exports),v(_,Ha(),e.exports)}(oo)),oo.exports}var Fo,Wa;function Ya(){if(Wa)return Fo;Wa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{FormPath:()=>n.FormPath,createEffectContext:()=>a.createEffectContext,createEffectHook:()=>a.createEffectHook,createForm:()=>u,getLocaleByPath:()=>c.getLocaleByPath,getValidateLocaleIOSCode:()=>c.getValidateLocaleIOSCode,isArrayField:()=>s.isArrayField,isArrayFieldState:()=>s.isArrayFieldState,isDataField:()=>s.isDataField,isDataFieldState:()=>s.isDataFieldState,isField:()=>s.isField,isFieldState:()=>s.isFieldState,isForm:()=>s.isForm,isFormState:()=>s.isFormState,isGeneralField:()=>s.isGeneralField,isGeneralFieldState:()=>s.isGeneralFieldState,isObjectField:()=>s.isObjectField,isObjectFieldState:()=>s.isObjectFieldState,isQuery:()=>s.isQuery,isVoidField:()=>s.isVoidField,isVoidFieldState:()=>s.isVoidFieldState,registerValidateFormats:()=>c.registerValidateFormats,registerValidateLocale:()=>c.registerValidateLocale,registerValidateMessageTemplateEngine:()=>c.registerValidateMessageTemplateEngine,registerValidateRules:()=>c.registerValidateRules,setValidateLanguage:()=>c.setValidateLanguage,useEffectForm:()=>a.useEffectForm}),Fo=F(_);var n=ue(),c=ro(),h=go(),s=_t(),a=xt();const u=r(i=>new h.Form(i),"createForm");return Fo}var So,qa;function vu(){if(qa)return So;qa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(F,_,n,c)=>{if(_&&typeof _=="object"||typeof _=="function")for(let h of o(_))!f.call(F,h)&&h!==n&&e(F,h,{get:()=>_[h],enumerable:!(c=t(_,h))||c.enumerable});return F},b=F=>r(e({},"__esModule",{value:!0}),F),v={};return So=b(v),So}var Po={exports:{}},Oo,Ka;function yu(){if(Ka)return Oo;Ka=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(ae,z)=>e(ae,"name",{value:z,configurable:!0}),b=(ae,z)=>{for(var B in z)e(ae,B,{get:z[B],enumerable:!0})},v=(ae,z,B,U)=>{if(z&&typeof z=="object"||typeof z=="function")for(let J of o(z))!f.call(ae,J)&&J!==B&&e(ae,J,{get:()=>z[J],enumerable:!(U=t(z,J))||U.enumerable});return ae},F=ae=>v(e({},"__esModule",{value:!0}),ae),_={};b(_,{onFormGraphChange:()=>te,onFormInit:()=>u,onFormInitialValuesChange:()=>d,onFormInputChange:()=>y,onFormLoading:()=>Y,onFormMount:()=>i,onFormReact:()=>re,onFormReset:()=>g,onFormSubmit:()=>m,onFormSubmitEnd:()=>P,onFormSubmitFailed:()=>j,onFormSubmitStart:()=>x,onFormSubmitSuccess:()=>S,onFormSubmitValidateEnd:()=>E,onFormSubmitValidateFailed:()=>I,onFormSubmitValidateStart:()=>O,onFormSubmitValidateSuccess:()=>w,onFormUnmount:()=>l,onFormValidateEnd:()=>q,onFormValidateFailed:()=>L,onFormValidateStart:()=>R,onFormValidateSuccess:()=>N,onFormValuesChange:()=>p}),Oo=F(_);var n=Oe(),c=ue(),h=xt(),s=Ke();function a(ae){return(0,h.createEffectHook)(ae,z=>B=>{(0,n.batch)(()=>{B(z)})})}r(a,"createFormEffect");const u=a(s.LifeCycleTypes.ON_FORM_INIT),i=a(s.LifeCycleTypes.ON_FORM_MOUNT),l=a(s.LifeCycleTypes.ON_FORM_UNMOUNT),p=a(s.LifeCycleTypes.ON_FORM_VALUES_CHANGE),d=a(s.LifeCycleTypes.ON_FORM_INITIAL_VALUES_CHANGE),y=a(s.LifeCycleTypes.ON_FORM_INPUT_CHANGE),m=a(s.LifeCycleTypes.ON_FORM_SUBMIT),g=a(s.LifeCycleTypes.ON_FORM_RESET),x=a(s.LifeCycleTypes.ON_FORM_SUBMIT_START),P=a(s.LifeCycleTypes.ON_FORM_SUBMIT_END),S=a(s.LifeCycleTypes.ON_FORM_SUBMIT_SUCCESS),j=a(s.LifeCycleTypes.ON_FORM_SUBMIT_FAILED),O=a(s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_START),w=a(s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_SUCCESS),I=a(s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_FAILED),E=a(s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_END),R=a(s.LifeCycleTypes.ON_FORM_VALIDATE_START),N=a(s.LifeCycleTypes.ON_FORM_VALIDATE_SUCCESS),L=a(s.LifeCycleTypes.ON_FORM_VALIDATE_FAILED),q=a(s.LifeCycleTypes.ON_FORM_VALIDATE_END),te=a(s.LifeCycleTypes.ON_FORM_GRAPH_CHANGE),Y=a(s.LifeCycleTypes.ON_FORM_LOADING);function re(ae){let z=null;u(B=>{z=(0,n.autorun)(()=>{(0,c.isFn)(ae)&&ae(B)})}),l(()=>{z()})}return r(re,"onFormReact"),Oo}var Co,Za;function _u(){if(Za)return Co;Za=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(B,U)=>e(B,"name",{value:U,configurable:!0}),b=(B,U)=>{for(var J in U)e(B,J,{get:U[J],enumerable:!0})},v=(B,U,J,Q)=>{if(U&&typeof U=="object"||typeof U=="function")for(let ee of o(U))!f.call(B,ee)&&ee!==J&&e(B,ee,{get:()=>U[ee],enumerable:!(Q=t(U,ee))||Q.enumerable});return B},F=B=>v(e({},"__esModule",{value:!0}),B),_={};b(_,{onFieldChange:()=>z,onFieldInit:()=>re,onFieldInitialValueChange:()=>d,onFieldInputValueChange:()=>y,onFieldLoading:()=>Y,onFieldMount:()=>i,onFieldReact:()=>ae,onFieldReset:()=>te,onFieldSubmit:()=>j,onFieldSubmitEnd:()=>w,onFieldSubmitFailed:()=>N,onFieldSubmitStart:()=>O,onFieldSubmitSuccess:()=>R,onFieldSubmitValidateEnd:()=>E,onFieldSubmitValidateFailed:()=>q,onFieldSubmitValidateStart:()=>I,onFieldSubmitValidateSuccess:()=>L,onFieldUnmount:()=>l,onFieldValidateEnd:()=>g,onFieldValidateFailed:()=>P,onFieldValidateStart:()=>m,onFieldValidateSuccess:()=>S,onFieldValidating:()=>x,onFieldValueChange:()=>p}),Co=F(_);var n=Oe(),c=ue(),h=xt(),s=Ke();function a(B){return(0,h.createEffectHook)(B,(U,J)=>(Q,ee)=>{c.FormPath.parse(Q).matchAliasGroup(U.address,U.path)&&(0,n.batch)(()=>{ee(U,J)})})}r(a,"createFieldEffect");const u=a(s.LifeCycleTypes.ON_FIELD_INIT),i=a(s.LifeCycleTypes.ON_FIELD_MOUNT),l=a(s.LifeCycleTypes.ON_FIELD_UNMOUNT),p=a(s.LifeCycleTypes.ON_FIELD_VALUE_CHANGE),d=a(s.LifeCycleTypes.ON_FIELD_INITIAL_VALUE_CHANGE),y=a(s.LifeCycleTypes.ON_FIELD_INPUT_VALUE_CHANGE),m=a(s.LifeCycleTypes.ON_FIELD_VALIDATE_START),g=a(s.LifeCycleTypes.ON_FIELD_VALIDATE_END),x=a(s.LifeCycleTypes.ON_FIELD_VALIDATING),P=a(s.LifeCycleTypes.ON_FIELD_VALIDATE_FAILED),S=a(s.LifeCycleTypes.ON_FIELD_VALIDATE_SUCCESS),j=a(s.LifeCycleTypes.ON_FIELD_SUBMIT),O=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_START),w=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_END),I=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_START),E=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_END),R=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_SUCCESS),N=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_FAILED),L=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_SUCCESS),q=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_FAILED),te=a(s.LifeCycleTypes.ON_FIELD_RESET),Y=a(s.LifeCycleTypes.ON_FIELD_LOADING);function re(B,U){const J=(0,h.useEffectForm)();J.query(B).reduce((ee,ne)=>(U(ne,J),ee+1),0)===0&&u(B,U)}r(re,"onFieldInit");function ae(B,U){re(B,(J,Q)=>{J.disposers.push((0,n.autorun)(()=>{(0,c.isFn)(U)&&U(J,Q)}))})}r(ae,"onFieldReact");function z(B,U,J){(0,c.isFn)(U)?(J=U,U=["value"]):U=U||["value"],re(B,(Q,ee)=>{(0,c.isFn)(J)&&J(Q,ee);const ne=(0,n.reaction)(()=>(0,c.toArr)(U).map(pe=>Q[pe]),()=>{(0,c.isFn)(J)&&J(Q,ee)});Q.disposers.push(ne)})}return r(z,"onFieldChange"),Co}var Qa;function xu(){return Qa||(Qa=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,yu(),e.exports),v(_,_u(),e.exports)}(Po)),Po.exports}var Xa;function Ft(){return Xa||(Xa=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Ya(),e.exports),v(_,vu(),e.exports),v(_,xu(),e.exports),v(_,Ke(),e.exports)}(Wr)),Wr.exports}var wo,$a;function gu(){if($a)return wo;$a=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(x,P)=>e(x,"name",{value:P,configurable:!0}),b=(x,P)=>{for(var S in P)e(x,S,{get:P[S],enumerable:!0})},v=(x,P,S,j)=>{if(P&&typeof P=="object"||typeof P=="function")for(let O of o(P))!f.call(x,O)&&O!==S&&e(x,O,{get:()=>P[O],enumerable:!(j=t(P,O))||j.enumerable});return x},F=x=>v(e({},"__esModule",{value:!0}),x),_={};b(_,{transformFieldProps:()=>g}),wo=F(_);var n=Ft(),c=Oe(),h=ue(),s=aa();const a={onFieldInit:n.onFieldInit,onFieldMount:n.onFieldMount,onFieldUnmount:n.onFieldUnmount,onFieldValueChange:n.onFieldValueChange,onFieldInputValueChange:n.onFieldInputValueChange,onFieldInitialValueChange:n.onFieldInitialValueChange,onFieldValidateStart:n.onFieldValidateStart,onFieldValidateEnd:n.onFieldValidateEnd,onFieldValidateFailed:n.onFieldValidateFailed,onFieldValidateSuccess:n.onFieldValidateSuccess},u=["onFieldInit","onFieldValueChange"],i=r((x,P,S)=>{const[j,O]=String(P).split(/\s*#\s*/);return x.query(j).getIn(O||S||"value")},"getDependencyValue"),l=r((x,P)=>{if((0,h.isArr)(P)){const S=[];return P.forEach(j=>{(0,h.isStr)(j)?S.push(i(x,j)):(0,h.isPlainObj)(j)&&j.name&&j.source&&(S[j.name]=i(x,j.source,j.property))}),S}else if((0,h.isPlainObj)(P))return(0,h.reduce)(P,(S,j,O)=>(S[O]=i(x,j),S),{});return[]},"getDependencies"),p=r((x,P=!1)=>{const{request:S,target:j,runner:O,field:w,scope:I}=x||{};S&&(j?(S.state&&w.form.setFieldState(j,E=>(0,s.patchCompile)(E,S.state,(0,h.lazyMerge)(I,{$target:E}))),S.schema&&w.form.setFieldState(j,E=>(0,s.patchSchemaCompile)(E,S.schema,(0,h.lazyMerge)(I,{$target:E}),P)),(0,h.isStr)(O)&&O&&w.form.setFieldState(j,E=>{(0,s.shallowCompile)(`{{function(){${O}}}}`,(0,h.lazyMerge)(I,{$target:E}))()})):(S.state&&w.setState(E=>(0,s.patchCompile)(E,S.state,I)),S.schema&&w.setState(E=>(0,s.patchSchemaCompile)(E,S.schema,I,P)),(0,h.isStr)(O)&&O&&(0,s.shallowCompile)(`{{function(){${O}}}}`,I)()))},"setSchemaFieldState"),d=r((x,P={})=>{const S=r((N,L)=>c.autorun.memo(()=>(0,c.observable)(N),L),"$observable"),j=r(N=>x.setComponentProps(N),"$props"),O=c.autorun.effect,w=c.autorun.memo,I=x,E=x.form,R=x.form.values;return(0,h.lazyMerge)({get $lookup(){var L;var N;return(L=(N=P==null?void 0:P.scope)==null?void 0:N.$record)!=null?L:R},get $records(){return x.records},get $record(){const N=x.record;return typeof N=="object"?(0,h.lazyMerge)(N,{get $lookup(){var q;var L;return(q=(L=P==null?void 0:P.scope)==null?void 0:L.$record)!=null?q:R},get $index(){return x.index}}):N},get $index(){return x.index}},P.scope,{$form:E,$self:I,$observable:S,$effect:O,$memo:w,$props:j,$values:R})},"getBaseScope"),y=r((x,P)=>S=>{p({field:S,request:{schema:x},scope:d(S,P)},!0)},"getBaseReactions"),m=r((x,P)=>(0,h.toArr)(x["x-reactions"]).map(j=>O=>{const w=d(O,P),I=(0,s.shallowCompile)(j,w);if(!I)return;if((0,h.isFn)(I))return I(O,w);const{when:E,fulfill:R,otherwise:N,target:L,effects:q}=I,te=r(()=>{const Y=l(O,I.dependencies),re=Y,ae=(0,h.lazyMerge)(w,{$target:null,$deps:Y,$dependencies:re}),z=(0,s.shallowCompile)(E,ae),U=(E?z:!0)?R:N,J=U==null?void 0:U.run;p({field:O,target:L,request:U,runner:J,scope:ae})},"run");L&&(I.effects=q!=null&&q.length?q:u),I.effects?c.autorun.memo(()=>{(0,c.untracked)(()=>{(0,h.each)(I.effects,Y=>{a[Y]&&a[Y](O.address,te)})})},[]):te()}),"getUserReactions"),g=r((x,P)=>({name:x.name,reactions:[y(x,P)].concat(m(x,P))}),"transformFieldProps");return wo}var Eo,ei;function ti(){if(ei)return Eo;ei=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(p,d)=>e(p,"name",{value:d,configurable:!0}),b=(p,d)=>{for(var y in d)e(p,y,{get:d[y],enumerable:!0})},v=(p,d,y,m)=>{if(d&&typeof d=="object"||typeof d=="function")for(let g of o(d))!f.call(p,g)&&g!==y&&e(p,g,{get:()=>d[g],enumerable:!(m=t(d,g))||m.enumerable});return p},F=p=>v(e({},"__esModule",{value:!0}),p),_={};b(_,{Schema:()=>l}),Eo=F(_);var n=ue(),c=aa(),h=ca(),s=uu(),a=na(),u=gu();const i=class Ae{constructor(d,y){return this._isJSONSchemaObject=!0,this.version="2.0",this.addProperty=r((m,g)=>(this.properties=this.properties||{},this.properties[m]=new Ae(g,this),this.properties[m].name=m,this.properties[m]),"addProperty"),this.removeProperty=r(m=>{const g=this.properties[m];return delete this.properties[m],g},"removeProperty"),this.setProperties=r(m=>{for(const g in m)this.addProperty(g,m[g]);return this},"setProperties"),this.addPatternProperty=r((m,g)=>{if(g)return this.patternProperties=this.patternProperties||{},this.patternProperties[m]=new Ae(g,this),this.patternProperties[m].name=m,this.patternProperties[m]},"addPatternProperty"),this.removePatternProperty=r(m=>{const g=this.patternProperties[m];return delete this.patternProperties[m],g},"removePatternProperty"),this.setPatternProperties=r(m=>{if(!m)return this;for(const g in m)this.addPatternProperty(g,m[g]);return this},"setPatternProperties"),this.setAdditionalProperties=r(m=>{if(m)return this.additionalProperties=new Ae(m),this.additionalProperties},"setAdditionalProperties"),this.setItems=r(m=>{if(m)return Array.isArray(m)?this.items=m.map(g=>new Ae(g,this)):this.items=new Ae(m,this),this.items},"setItems"),this.setAdditionalItems=r(m=>{if(m)return this.additionalItems=new Ae(m,this),this.additionalItems},"setAdditionalItems"),this.findDefinitions=r(m=>{if(!(!m||!this.root||!(0,n.isStr)(m))&&m.indexOf("#/")===0)return n.FormPath.getIn(this.root,m.substring(2).split("/"))},"findDefinitions"),this.mapProperties=r(m=>Ae.getOrderProperties(this).map(({schema:g,key:x},P)=>m(g,x,P)),"mapProperties"),this.mapPatternProperties=r(m=>Ae.getOrderProperties(this,"patternProperties").map(({schema:g,key:x},P)=>m(g,x,P)),"mapPatternProperties"),this.reduceProperties=r((m,g)=>{let x=g;return Ae.getOrderProperties(this,"properties").forEach(({schema:P,key:S},j)=>{x=m(x,P,S,j)}),x},"reduceProperties"),this.reducePatternProperties=r((m,g)=>{let x=g;return Ae.getOrderProperties(this,"patternProperties").forEach(({schema:P,key:S},j)=>{x=m(x,P,S,j)}),x},"reducePatternProperties"),this.compile=r(m=>{const g=new Ae({},this.parent);return(0,n.each)(this,(x,P)=>{(0,n.isFn)(x)&&!P.includes("x-")||P==="parent"||P==="root"||(a.SchemaNestedMap[P]?g[P]=x&&(0,c.shallowCompile)(x,m):g[P]=x&&(0,c.compile)(x,m))}),g},"compile"),this.fromJSON=r(m=>m?Ae.isSchemaInstance(m)?m:((0,n.each)((0,h.reducePatches)(m),(g,x)=>{(0,n.isFn)(g)&&!x.includes("x-")||(x==="properties"?this.setProperties(g):x==="patternProperties"?this.setPatternProperties(g):x==="additionalProperties"?this.setAdditionalProperties(g):x==="items"?this.setItems(g):x==="additionalItems"?this.setAdditionalItems(g):x==="$ref"?this.fromJSON(this.findDefinitions(g)):this[x]=g)}),this):this,"fromJSON"),this.toJSON=r((m=!0)=>{const g={};return(0,n.each)(this,(x,P)=>{var S,j;if(!((0,n.isFn)(x)&&!P.includes("x-")||P==="parent"||P==="root"))if(P==="properties"||P==="patternProperties"){if(!m)return;g[P]=(0,n.map)(x,O=>{var w;return(w=O==null?void 0:O.toJSON)==null?void 0:w.call(O)})}else if(P==="additionalProperties"||P==="additionalItems"){if(!m)return;g[P]=(S=x==null?void 0:x.toJSON)==null?void 0:S.call(x)}else if(P==="items"){if(!m)return;Array.isArray(x)?g[P]=x.map(O=>{var w;return(w=O==null?void 0:O.toJSON)==null?void 0:w.call(O)}):g[P]=(j=x==null?void 0:x.toJSON)==null?void 0:j.call(x)}else g[P]=x}),g},"toJSON"),this.toFieldProps=r(m=>(0,u.transformFieldProps)(this,m),"toFieldProps"),y?(this.parent=y,this.root=y.root):this.root=this,this.fromJSON(d)}};r(i,"Schema"),i.getOrderProperties=r((p={},d="properties")=>{const y=[],m=[];for(const g in p[d]){const x=p[d][g],P=x["x-index"];isNaN(P)?m.push({schema:x,key:g}):y[P]={schema:x,key:g}}return y.concat(m).filter(g=>!!g)},"getOrderProperties"),i.compile=r((p,d)=>(0,c.compile)(p,d),"compile"),i.shallowCompile=r((p,d)=>(0,c.shallowCompile)(p,d),"shallowCompile"),i.isSchemaInstance=r(p=>(0,n.instOf)(p,i),"isSchemaInstance"),i.registerCompiler=c.registerCompiler,i.registerPatches=h.registerPatches,i.registerVoidComponents=s.registerVoidComponents,i.registerTypeDefaultComponents=s.registerTypeDefaultComponents,i.registerPolyfills=h.registerPolyfills,i.enablePolyfills=h.enablePolyfills,i.silent=c.silent;let l=i;return Eo}var jo,ri;function Fu(){if(ri)return jo;ri=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(F,_,n,c)=>{if(_&&typeof _=="object"||typeof _=="function")for(let h of o(_))!f.call(F,h)&&h!==n&&e(F,h,{get:()=>_[h],enumerable:!(c=t(_,h))||c.enumerable});return F},b=F=>r(e({},"__esModule",{value:!0}),F),v={};return jo=b(v),jo}var oi;function Io(){return oi||(oi=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,ti(),e.exports),v(_,Fu(),e.exports)}(Tt)),Tt.exports}var Ao={exports:{}},Do={exports:{}},Mo={exports:{}},de={};/** @license React v16.13.1
|
|
70
|
-
* react-is.production.min.js
|
|
71
|
-
*
|
|
72
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the MIT license found in the
|
|
75
|
-
* LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/var ni;function Su(){if(ni)return de;ni=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,f=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,b=e?Symbol.for("react.profiler"):60114,v=e?Symbol.for("react.provider"):60109,F=e?Symbol.for("react.context"):60110,_=e?Symbol.for("react.async_mode"):60111,n=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,s=e?Symbol.for("react.suspense_list"):60120,a=e?Symbol.for("react.memo"):60115,u=e?Symbol.for("react.lazy"):60116,i=e?Symbol.for("react.block"):60121,l=e?Symbol.for("react.fundamental"):60117,p=e?Symbol.for("react.responder"):60118,d=e?Symbol.for("react.scope"):60119;function y(g){if(typeof g=="object"&&g!==null){var x=g.$$typeof;switch(x){case t:switch(g=g.type,g){case _:case n:case f:case b:case r:case h:return g;default:switch(g=g&&g.$$typeof,g){case F:case c:case u:case a:case v:return g;default:return x}}case o:return x}}}function m(g){return y(g)===n}return de.AsyncMode=_,de.ConcurrentMode=n,de.ContextConsumer=F,de.ContextProvider=v,de.Element=t,de.ForwardRef=c,de.Fragment=f,de.Lazy=u,de.Memo=a,de.Portal=o,de.Profiler=b,de.StrictMode=r,de.Suspense=h,de.isAsyncMode=function(g){return m(g)||y(g)===_},de.isConcurrentMode=m,de.isContextConsumer=function(g){return y(g)===F},de.isContextProvider=function(g){return y(g)===v},de.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},de.isForwardRef=function(g){return y(g)===c},de.isFragment=function(g){return y(g)===f},de.isLazy=function(g){return y(g)===u},de.isMemo=function(g){return y(g)===a},de.isPortal=function(g){return y(g)===o},de.isProfiler=function(g){return y(g)===b},de.isStrictMode=function(g){return y(g)===r},de.isSuspense=function(g){return y(g)===h},de.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===f||g===n||g===b||g===r||g===h||g===s||typeof g=="object"&&g!==null&&(g.$$typeof===u||g.$$typeof===a||g.$$typeof===v||g.$$typeof===F||g.$$typeof===c||g.$$typeof===l||g.$$typeof===p||g.$$typeof===d||g.$$typeof===i)},de.typeOf=y,de}var si;function Pu(){return si||(si=1,Mo.exports=Su()),Mo.exports}var Ro,ai;function ii(){if(ai)return Ro;ai=1;var e=Pu(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},f={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},b={};b[e.ForwardRef]=f,b[e.Memo]=r;function v(u){return e.isMemo(u)?r:b[u.$$typeof]||t}var F=Object.defineProperty,_=Object.getOwnPropertyNames,n=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,s=Object.prototype;function a(u,i,l){if(typeof i!="string"){if(s){var p=h(i);p&&p!==s&&a(u,p,l)}var d=_(i);n&&(d=d.concat(n(i)));for(var y=v(u),m=v(i),g=0;g<d.length;++g){var x=d[g];if(!o[x]&&!(l&&l[x])&&!(m&&m[x])&&!(y&&y[x])){var P=c(i,x);try{F(u,x,P)}catch(S){}}}}return u}return Ro=a,Ro}var No={exports:{}},ko,ci;function Ou(){if(ci)return ko;ci=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(h,s)=>e(h,"name",{value:s,configurable:!0}),b=(h,s)=>{for(var a in s)e(h,a,{get:s[a],enumerable:!0})},v=(h,s,a,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of o(s))!f.call(h,i)&&i!==a&&e(h,i,{get:()=>s[i],enumerable:!(u=t(s,i))||u.enumerable});return h},F=h=>v(e({},"__esModule",{value:!0}),h),_={};b(_,{globalThisPolyfill:()=>c}),ko=F(_);function n(){try{if(typeof self!="undefined")return self}catch(h){}try{if(typeof window!="undefined")return window}catch(h){}try{if(typeof bt!="undefined")return bt}catch(h){}return Function("return this")()}r(n,"globalSelf");const c=n();return ko}var To,li;function Cu(){if(li)return To;li=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{GarbageCollector:()=>s}),To=F(_);var n=Ou();const c=n.globalThisPolyfill.FinalizationRegistry&&new n.globalThisPolyfill.FinalizationRegistry(a=>{var u;return(u=a==null?void 0:a.clean)==null?void 0:u.call(a)}),h=class{constructor(u,i=1e4){this.token={clean:u},this.expireTime=i}open(u){c?c.register(u,this.token,this.token):this.request=setTimeout(()=>{var i,l;(l=(i=this.token)==null?void 0:i.clean)==null||l.call(i)},this.expireTime)}close(){c?c.unregister(this.token):clearTimeout(this.request)}};r(h,"GarbageCollector");let s=h;return To}var Vo,ui;function wu(){if(ui)return Vo;ui=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(c,h)=>e(c,"name",{value:h,configurable:!0}),b=(c,h)=>{for(var s in h)e(c,s,{get:h[s],enumerable:!0})},v=(c,h,s,a)=>{if(h&&typeof h=="object"||typeof h=="function")for(let u of o(h))!f.call(c,u)&&u!==s&&e(c,u,{get:()=>h[u],enumerable:!(a=t(h,u))||a.enumerable});return c},F=c=>v(e({},"__esModule",{value:!0}),c),_={};b(_,{immediate:()=>n}),Vo=F(_);const n=r(c=>{let h=!1;return Promise.resolve(0).then(()=>{if(h){h=!1;return}c()}),()=>{h=!0}},"immediate");return Vo}var pi;function Bo(){return pi||(pi=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Cu(),e.exports),v(_,wu(),e.exports)}(No)),No.exports}var Lo,di;function mi(){if(di)return Lo;di=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{useCompatEffect:()=>a}),Lo=F(_);var n=V,c=Bo();const h=Array.isArray,s=r((u,i)=>{const l=h(u),p=h(i);return l!==p?!1:l?u.length!==i.length?!1:u.every((d,y)=>d===i[y]):u===i},"isEqualDeps"),a=r((u,i)=>{const l=(0,n.useRef)(null),p=(0,n.useRef)(!1);(0,n.useEffect)(()=>{p.current=!0;const d=u();return()=>{if(p.current=!1,!s(l.current,i)){d&&d();return}(0,c.immediate)(()=>{p.current||d&&d()})}},i),l.current=i},"useCompatEffect");return Lo}var Uo,fi;function hi(){if(fi)return Uo;fi=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(y,m)=>t(y,"name",{value:m,configurable:!0}),F=(y,m)=>{for(var g in m)t(y,g,{get:m[g],enumerable:!0})},_=(y,m,g,x)=>{if(m&&typeof m=="object"||typeof m=="function")for(let P of f(m))!b.call(y,P)&&P!==g&&t(y,P,{get:()=>m[P],enumerable:!(x=o(m,P))||x.enumerable});return y},n=(y,m,g)=>(g=y!=null?e(r(y)):{},_(!y||!y.__esModule?t(g,"default",{value:y,enumerable:!0}):g,y)),c=y=>_(t({},"__esModule",{value:!0}),y),h={};F(h,{useCompatFactory:()=>d}),Uo=c(h);var s=n(V),a=Bo(),u=mi();const i=class{};v(i,"ObjectToBeRetainedByReact");let l=i;function p(){return new l}v(p,"objectToBeRetainedByReactFactory");const d=v(y=>{const m=s.default.useRef(null),g=s.default.useRef(),[x]=s.default.useState(p);return m.current||(m.current=y()),g.current||(g.current=new a.GarbageCollector(()=>{m.current&&m.current.dispose()}),g.current.open(x)),(0,u.useCompatEffect)(()=>(g.current.close(),()=>{m.current&&(m.current.dispose(),m.current=null)}),[]),m.current},"useCompatFactory");return Uo}var Go,bi;function Ho(){if(bi)return Go;bi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(c,h)=>{for(var s in h)e(c,s,{get:h[s],enumerable:!0})},b=(c,h,s,a)=>{if(h&&typeof h=="object"||typeof h=="function")for(let u of o(h))!f.call(c,u)&&u!==s&&e(c,u,{get:()=>h[u],enumerable:!(a=t(h,u))||a.enumerable});return c},v=c=>b(e({},"__esModule",{value:!0}),c),F={};r(F,{useLayoutEffect:()=>n}),Go=v(F);var _=V;const n=typeof document!="undefined"?_.useLayoutEffect:_.useEffect;return Go}var zo,vi;function yi(){if(vi)return zo;vi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{useDidUpdate:()=>s}),zo=F(_);var n=V,c=Bo(),h=Ho();const s=r(a=>{const u=(0,n.useRef)(null);u.current=(0,c.immediate)(a),(0,h.useLayoutEffect)(()=>{u.current(),a()})},"useDidUpdate");return zo}var Jo,_i;function xi(){if(_i)return Jo;_i=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(l,p)=>e(l,"name",{value:p,configurable:!0}),b=(l,p)=>{for(var d in p)e(l,d,{get:p[d],enumerable:!0})},v=(l,p,d,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let m of o(p))!f.call(l,m)&&m!==d&&e(l,m,{get:()=>p[m],enumerable:!(y=t(p,m))||y.enumerable});return l},F=l=>v(e({},"__esModule",{value:!0}),l),_={};b(_,{useForceUpdate:()=>i}),Jo=F(_);var n=V,c=yi(),h=Ho();const s=[],a={value:0},u=new Set;function i(){const[,l]=(0,n.useState)([]),p=(0,n.useRef)(!1),d=(0,n.useRef)(!1);(0,h.useLayoutEffect)(()=>(p.current=!0,d.current&&(l([]),d.current=!1),()=>{p.current=!1}),s);const y=(0,n.useCallback)(()=>{l([])},s),m=(0,n.useCallback)(()=>{if(!p.current){d.current=!0;return}a.value===0?y():u.add(y)},s);return a.value++,(0,c.useDidUpdate)(()=>{a.value>0&&a.value--,a.value===0&&u.forEach(g=>{u.delete(g),g()})}),m}return r(i,"useForceUpdate"),Jo}var Wo,gi;function Fi(){if(gi)return Wo;gi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{useObserver:()=>s}),Wo=F(_);var n=Oe(),c=hi(),h=xi();const s=r((a,u)=>{const i=(0,h.useForceUpdate)();return(0,c.useCompatFactory)(()=>new n.Tracker(()=>{typeof(u==null?void 0:u.scheduler)=="function"?u.scheduler(i):i()},u==null?void 0:u.displayName)).track(a)},"useObserver");return Wo}var Yo,Si;function Eu(){if(Si)return Yo;Si=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(p,d)=>t(p,"name",{value:d,configurable:!0}),F=(p,d)=>{for(var y in d)t(p,y,{get:d[y],enumerable:!0})},_=(p,d,y,m)=>{if(d&&typeof d=="object"||typeof d=="function")for(let g of f(d))!b.call(p,g)&&g!==y&&t(p,g,{get:()=>d[g],enumerable:!(m=o(d,g))||m.enumerable});return p},n=(p,d,y)=>(y=p!=null?e(r(p)):{},_(!p||!p.__esModule?t(y,"default",{value:p,enumerable:!0}):y,p)),c=p=>_(t({},"__esModule",{value:!0}),p),h={};F(h,{Observer:()=>l,observer:()=>i}),Yo=c(h);var s=n(V),a=n(ii()),u=Fi();function i(p,d){const y=T({forwardRef:!1},d),m=y.forwardRef?(0,s.forwardRef)((x,P)=>(0,u.useObserver)(()=>p(W(T({},x),{ref:P})),y)):x=>(0,u.useObserver)(()=>p(x),y),g=(0,s.memo)(m);return(0,a.default)(g,p),y.displayName&&(g.displayName=y.displayName),g}v(i,"observer");const l=i(p=>{const d=typeof p.children=="function"?p.children():p.children;return s.default.createElement(s.Fragment,{},d)});return Yo}var qo,Pi;function ju(){if(Pi)return qo;Pi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(m,g)=>{for(var x in g)e(m,x,{get:g[x],enumerable:!0})},b=(m,g,x,P)=>{if(g&&typeof g=="object"||typeof g=="function")for(let S of o(g))!f.call(m,S)&&S!==x&&e(m,S,{get:()=>g[S],enumerable:!(P=t(g,S))||P.enumerable});return m},v=m=>b(e({},"__esModule",{value:!0}),m),F={};r(F,{unstable_useCompatEffect:()=>i,unstable_useCompatFactory:()=>l,unstable_useDidUpdate:()=>p,unstable_useForceUpdate:()=>u,unstable_useLayoutEffect:()=>d,unstable_useObserver:()=>y}),qo=v(F);var _=mi(),n=hi(),c=yi(),h=xi(),s=Ho(),a=Fi();const u=h.useForceUpdate,i=_.useCompatEffect,l=n.useCompatFactory,p=c.useDidUpdate,d=s.useLayoutEffect,y=a.useObserver;return qo}var Ko,Oi;function Iu(){if(Oi)return Ko;Oi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(F,_,n,c)=>{if(_&&typeof _=="object"||typeof _=="function")for(let h of o(_))!f.call(F,h)&&h!==n&&e(F,h,{get:()=>_[h],enumerable:!(c=t(_,h))||c.enumerable});return F},b=F=>r(e({},"__esModule",{value:!0}),F),v={};return Ko=b(v),Ko}var Ci;function it(){return Ci||(Ci=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Eu(),e.exports),v(_,ju(),e.exports),v(_,Iu(),e.exports)}(Do)),Do.exports}var Zo,wi;function St(){if(wi)return Zo;wi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(h,s)=>e(h,"name",{value:s,configurable:!0}),b=(h,s)=>{for(var a in s)e(h,a,{get:s[a],enumerable:!0})},v=(h,s,a,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of o(s))!f.call(h,i)&&i!==a&&e(h,i,{get:()=>s[i],enumerable:!(u=t(s,i))||u.enumerable});return h},F=h=>v(e({},"__esModule",{value:!0}),h),_={};b(_,{useAttach:()=>c}),Zo=F(_);var n=it();const c=r(h=>((0,n.unstable_useCompatEffect)(()=>(h.onMount(),()=>h.onUnmount()),[h]),h),"useAttach");return Zo}var Qo={exports:{}},Xo,Ei;function ji(){if(Ei)return Xo;Ei=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(x,P)=>t(x,"name",{value:P,configurable:!0}),F=(x,P)=>{for(var S in P)t(x,S,{get:P[S],enumerable:!0})},_=(x,P,S,j)=>{if(P&&typeof P=="object"||typeof P=="function")for(let O of f(P))!b.call(x,O)&&O!==S&&t(x,O,{get:()=>P[O],enumerable:!(j=o(P,O))||j.enumerable});return x},n=(x,P,S)=>(S=x!=null?e(r(x)):{},_(!x||!x.__esModule?t(S,"default",{value:x,enumerable:!0}):S,x)),c=x=>_(t({},"__esModule",{value:!0}),x),h={};F(h,{ContextCleaner:()=>g,FieldContext:()=>i,FormContext:()=>u,SchemaComponentsContext:()=>y,SchemaContext:()=>p,SchemaExpressionScopeContext:()=>d,SchemaMarkupContext:()=>l,SchemaOptionsContext:()=>m}),Xo=c(h);var s=n(V);const a=v((...x)=>({children:P})=>x.reduce((S,j)=>s.default.createElement(j.Provider,{value:void 0},S),P),"createContextCleaner"),u=(0,s.createContext)(null),i=(0,s.createContext)(null),l=(0,s.createContext)(null),p=(0,s.createContext)(null),d=(0,s.createContext)(null),y=(0,s.createContext)(null),m=(0,s.createContext)(null),g=a(i,l,p,d,y,m);return Xo}var $o={exports:{}},en,Ii;function tn(){if(Ii)return en;Ii=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{useForm:()=>h}),en=F(_);var n=V,c=je();const h=r(()=>(0,n.useContext)(c.FormContext),"useForm");return en}var rn,Ai;function Di(){if(Ai)return rn;Ai=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{useField:()=>h}),rn=F(_);var n=V,c=je();const h=r(()=>(0,n.useContext)(c.FieldContext),"useField");return rn}var on,Mi;function Au(){if(Mi)return on;Mi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{useParentForm:()=>s}),on=F(_);var n=Ft(),c=Di(),h=tn();const s=r(()=>{const a=(0,c.useField)(),u=(0,h.useForm)(),i=r(l=>l?(0,n.isObjectField)(l)?l:i(l==null?void 0:l.parent):u,"findObjectParent");return i(a)},"useParentForm");return on}var nn,Ri;function Du(){if(Ri)return nn;Ri=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{useFieldSchema:()=>h}),nn=F(_);var n=V,c=je();const h=r(()=>(0,n.useContext)(c.SchemaContext),"useFieldSchema");return nn}var sn,Ni;function Mu(){if(Ni)return sn;Ni=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{useFormEffects:()=>s}),sn=F(_);var n=it(),c=ue(),h=tn();const s=r(a=>{const u=(0,h.useForm)();(0,n.unstable_useCompatFactory)(()=>{const i=(0,c.uid)();return u.addEffects(i,a),{dispose(){u.removeEffects(i)}}})},"useFormEffects");return sn}var an,ki;function Ru(){if(ki)return an;ki=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{useExpressionScope:()=>h}),an=F(_);var n=V,c=ji();const h=r(()=>(0,n.useContext)(c.SchemaExpressionScopeContext),"useExpressionScope");return an}var Ti;function Ge(){return Ti||(Ti=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,tn(),e.exports),v(_,Di(),e.exports),v(_,Au(),e.exports),v(_,Du(),e.exports),v(_,Mu(),e.exports),v(_,Ru(),e.exports)}($o)),$o.exports}var cn,Vi;function Nu(){if(Vi)return cn;Vi=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(g,x)=>t(g,"name",{value:x,configurable:!0}),F=(g,x)=>{for(var P in x)t(g,P,{get:x[P],enumerable:!0})},_=(g,x,P,S)=>{if(x&&typeof x=="object"||typeof x=="function")for(let j of f(x))!b.call(g,j)&&j!==P&&t(g,j,{get:()=>x[j],enumerable:!(S=o(x,j))||S.enumerable});return g},n=(g,x,P)=>(P=g!=null?e(r(g)):{},_(!g||!g.__esModule?t(P,"default",{value:g,enumerable:!0}):P,g)),c=g=>_(t({},"__esModule",{value:!0}),g),h={};F(h,{Observer:()=>i.Observer,connect:()=>m,mapProps:()=>d,mapReadPretty:()=>y,observer:()=>i.observer}),cn=c(h);var s=n(V),a=n(ii()),u=Ft(),i=it(),l=ue(),p=Ge();function d(...g){return x=>(0,i.observer)(P=>{const S=(0,p.useField)(),j=g.reduce((O,w)=>((0,l.isFn)(w)?O=Object.assign(O,w(O,S)):(0,l.each)(w,(I,E)=>{const R=l.FormPath.getIn(S,E),N=(0,l.isStr)(I)?I:E,L=l.FormPath.getIn(O,N);E==="value"&&I!==E&&delete O.value,!((0,l.isValid)(L)&&!(0,l.isValid)(R))&&l.FormPath.setIn(O,N,R)}),O),T({},P));return s.default.createElement(x,j)},{forwardRef:!0})}v(d,"mapProps");function y(g,x){return P=>(0,i.observer)(S=>{const j=(0,p.useField)();return!(0,u.isVoidField)(j)&&(j==null?void 0:j.pattern)==="readPretty"?s.default.createElement(g,T(T({},x),S)):s.default.createElement(P,S)},{forwardRef:!0})}v(y,"mapReadPretty");function m(g,...x){const P=x.reduce((j,O)=>O(j),g),S=s.default.forwardRef((j,O)=>s.default.createElement(P,W(T({},j),{ref:O})));return g&&(0,a.default)(S,g),S}return v(m,"connect"),cn}var Bi;function je(){return Bi||(Bi=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,ji(),e.exports),v(_,Nu(),e.exports)}(Qo)),Qo.exports}var ln,Li;function ku(){if(Li)return ln;Li=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{FormProvider:()=>s}),ln=F(_);var n=D,c=St(),h=je();const s=r(a=>{const u=(0,c.useAttach)(a.form);return(0,n.jsx)(h.ContextCleaner,{children:(0,n.jsx)(h.FormContext.Provider,{value:u,children:a.children})})},"FormProvider");return s.displayName="FormProvider",ln}var un,Ui;function Tu(){if(Ui)return un;Ui=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},b=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},v=u=>b(e({},"__esModule",{value:!0}),u),F={};r(F,{FormConsumer:()=>a}),un=v(F);var _=D,n=V,c=it(),h=ue(),s=Ge();const a=(0,c.observer)(u=>{const i=(0,h.isFn)(u.children)?u.children((0,s.useForm)()):null;return(0,_.jsx)(n.Fragment,{children:i})});return a.displayName="FormConsumer",un}var pn,Gi;function Pt(){if(Gi)return pn;Gi=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(S,j)=>t(S,"name",{value:j,configurable:!0}),F=(S,j)=>{for(var O in j)t(S,O,{get:j[O],enumerable:!0})},_=(S,j,O,w)=>{if(j&&typeof j=="object"||typeof j=="function")for(let I of f(j))!b.call(S,I)&&I!==O&&t(S,I,{get:()=>j[I],enumerable:!(w=o(j,I))||w.enumerable});return S},n=(S,j,O)=>(O=S!=null?e(r(S)):{},_(!S||!S.__esModule?t(O,"default",{value:S,enumerable:!0}):O,S)),c=S=>_(t({},"__esModule",{value:!0}),S),h={};F(h,{ReactiveField:()=>P}),pn=c(h);var s=D,a=n(V),u=Ft(),i=Oe(),l=it(),p=ue(),d=je();const y=v((S,j)=>{if(!(!S&&!j)&&!(0,p.isFn)(S))return(0,s.jsxs)(a.Fragment,{children:[S,j]})},"mergeChildren"),m=v(S=>S&&(typeof S=="object"||typeof S=="function"),"isValidComponent"),g=v((S,j,O)=>(0,p.isFn)(S)?S(j,O):S,"renderChildren"),x=v(S=>{var N;const j=(0,a.useContext)(d.SchemaComponentsContext);if(!S.field)return(0,s.jsx)(a.Fragment,{children:g(S.children)});const O=S.field,w=y(g(S.children,O,O.form),(N=O.content)!=null?N:O.componentProps.children);if(O.display!=="visible")return null;const I=v(L=>{var q;return m(L)?L:(q=p.FormPath.getIn(j,L))!=null?q:L},"getComponent");return v(L=>O.decoratorType?a.default.createElement(I(O.decoratorType),(0,i.toJS)(O.decoratorProps),L):(0,s.jsx)(a.Fragment,{children:L}),"renderDecorator")(v(()=>{var L,q,te;if(!O.componentType)return w;const Y=(0,u.isVoidField)(O)?void 0:O.value,re=(0,u.isVoidField)(O)?(L=O.componentProps)==null?void 0:L.onChange:(...J)=>{var Q,ee;O.onInput(...J),(ee=(Q=O.componentProps)==null?void 0:Q.onChange)==null||ee.call(Q,...J)},ae=(0,u.isVoidField)(O)?(q=O.componentProps)==null?void 0:q.onFocus:(...J)=>{var Q,ee;O.onFocus(...J),(ee=(Q=O.componentProps)==null?void 0:Q.onFocus)==null||ee.call(Q,...J)},z=(0,u.isVoidField)(O)?(te=O.componentProps)==null?void 0:te.onBlur:(...J)=>{var Q,ee;O.onBlur(...J),(ee=(Q=O.componentProps)==null?void 0:Q.onBlur)==null||ee.call(Q,...J)},B=(0,u.isVoidField)(O)?void 0:O.pattern==="disabled"||O.pattern==="readPretty",U=(0,u.isVoidField)(O)?void 0:O.pattern==="readOnly";return a.default.createElement(I(O.componentType),W(T({disabled:B,readOnly:U},(0,i.toJS)(O.componentProps)),{value:Y,onChange:re,onFocus:ae,onBlur:z}),w)},"renderComponent")())},"ReactiveInternal");x.displayName="ReactiveField";const P=(0,l.observer)(x,{forwardRef:!0});return pn}var dn,Hi;function zi(){if(Hi)return dn;Hi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{ArrayField:()=>u}),dn=F(_);var n=D,c=Ge(),h=St(),s=je(),a=Pt();const u=r(i=>{const l=(0,c.useForm)(),p=(0,c.useField)(),d=(0,h.useAttach)(l.createArrayField(T({basePath:p==null?void 0:p.address},i)));return(0,n.jsx)(s.FieldContext.Provider,{value:d,children:(0,n.jsx)(a.ReactiveField,{field:d,children:i.children})})},"ArrayField");return u.displayName="ArrayField",dn}var mn,Ji;function Wi(){if(Ji)return mn;Ji=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{ObjectField:()=>u}),mn=F(_);var n=D,c=Ge(),h=St(),s=je(),a=Pt();const u=r(i=>{const l=(0,c.useForm)(),p=(0,c.useField)(),d=(0,h.useAttach)(l.createObjectField(T({basePath:p==null?void 0:p.address},i)));return(0,n.jsx)(s.FieldContext.Provider,{value:d,children:(0,n.jsx)(a.ReactiveField,{field:d,children:i.children})})},"ObjectField");return u.displayName="ObjectField",mn}var fn,Yi;function qi(){if(Yi)return fn;Yi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{VoidField:()=>u}),fn=F(_);var n=D,c=Ge(),h=St(),s=je(),a=Pt();const u=r(i=>{const l=(0,c.useForm)(),p=(0,c.useField)(),d=(0,h.useAttach)(l.createVoidField(T({basePath:p==null?void 0:p.address},i)));return(0,n.jsx)(s.FieldContext.Provider,{value:d,children:(0,n.jsx)(a.ReactiveField,{field:d,children:i.children})})},"VoidField");return u.displayName="VoidField",fn}var hn,Ki;function Zi(){if(Ki)return hn;Ki=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{Field:()=>u}),hn=F(_);var n=D,c=V,h=Ge(),s=je(),a=Pt();const u=r(i=>{const l=(0,h.useForm)(),p=(0,h.useField)(),d=l.createField(T({basePath:p==null?void 0:p.address},i));return(0,c.useEffect)(()=>(d==null||d.onMount(),()=>{d==null||d.onUnmount()}),[d]),(0,n.jsx)(s.FieldContext.Provider,{value:d,children:(0,n.jsx)(a.ReactiveField,{field:d,children:i.children})})},"Field");return u.displayName="Field",hn}var bn,Qi;function Xi(){if(Qi)return bn;Qi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(x,P)=>e(x,"name",{value:P,configurable:!0}),b=(x,P)=>{for(var S in P)e(x,S,{get:P[S],enumerable:!0})},v=(x,P,S,j)=>{if(P&&typeof P=="object"||typeof P=="function")for(let O of o(P))!f.call(x,O)&&O!==S&&e(x,O,{get:()=>P[O],enumerable:!(j=t(P,O))||j.enumerable});return x},F=x=>v(e({},"__esModule",{value:!0}),x),_={};b(_,{RecursionField:()=>g}),bn=F(_);var n=D,c=V,h=Io(),s=ue(),a=Ge(),u=je(),i=zi(),l=Zi(),p=Wi(),d=qi();const y=r(x=>{const P=(0,a.useExpressionScope)();return x.toFieldProps({scope:P})},"useFieldProps"),m=r(x=>{const P=(0,a.useField)();return x.onlyRenderProperties?x.basePath||(P==null?void 0:P.address.concat(x.name)):x.basePath||(P==null?void 0:P.address)},"useBasePath"),g=r(x=>{const P=m(x),S=(0,c.useMemo)(()=>new h.Schema(x.schema),[x.schema]),j=y(S),O=r(I=>{if(x.onlyRenderSelf)return;const E=h.Schema.getOrderProperties(S);if(E.length)return(0,n.jsx)(c.Fragment,{children:E.map(({schema:R,key:N},L)=>{const q=(I==null?void 0:I.address)||P;let te=R;if((0,s.isFn)(x.mapProperties)){const Y=x.mapProperties(R,N);Y&&(te=Y)}return(0,s.isFn)(x.filterProperties)&&x.filterProperties(te,N)===!1?null:(0,s.isBool)(x.propsRecursion)&&x.propsRecursion?(0,n.jsx)(g,{propsRecursion:!0,filterProperties:x.filterProperties,mapProperties:x.mapProperties,schema:te,name:N,basePath:q},`${L}-${N}`):(0,n.jsx)(g,{schema:te,name:N,basePath:q},`${L}-${N}`)})})},"renderProperties"),w=r(()=>(0,s.isValid)(x.name)?S.type==="object"?x.onlyRenderProperties?O():(0,n.jsx)(p.ObjectField,W(T({},j),{name:x.name,basePath:P,children:O})):S.type==="array"?(0,n.jsx)(i.ArrayField,W(T({},j),{name:x.name,basePath:P})):S.type==="void"?x.onlyRenderProperties?O():(0,n.jsx)(d.VoidField,W(T({},j),{name:x.name,basePath:P,children:O})):(0,n.jsx)(l.Field,W(T({},j),{name:x.name,basePath:P})):O(),"render");return S?(0,n.jsx)(u.SchemaContext.Provider,{value:S,children:w()}):(0,n.jsx)(c.Fragment,{})},"RecursionField");return bn}var vn,$i;function Ot(){if($i)return vn;$i=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{ExpressionScope:()=>a}),vn=F(_);var n=D,c=V,h=ue(),s=je();const a=r(u=>{const i=(0,c.useContext)(s.SchemaExpressionScopeContext);return(0,n.jsx)(s.SchemaExpressionScopeContext.Provider,{value:(0,h.lazyMerge)(i,u.value),children:u.children})},"ExpressionScope");return vn}var yn,ec;function Vu(){if(ec)return yn;ec=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{RecordsScope:()=>h}),yn=F(_);var n=D,c=Ot();const h=r(s=>(0,n.jsx)(c.ExpressionScope,{value:{get $records(){var u;var a;return(u=(a=s.getRecords)==null?void 0:a.call(s))!=null?u:[]}},children:s.children}),"RecordsScope");return yn}var _n,tc;function Bu(){if(tc)return _n;tc=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{RecordScope:()=>a}),_n=F(_);var n=D,c=ue(),h=Ge(),s=Ot();const a=r(u=>{const i=(0,h.useExpressionScope)();return(0,n.jsx)(s.ExpressionScope,{value:{get $lookup(){return i==null?void 0:i.$record},get $record(){var l;const p=(l=u.getRecord)==null?void 0:l.call(u);return typeof p=="object"?(0,c.lazyMerge)(p,{get $lookup(){return i==null?void 0:i.$record},get $index(){var d;return(d=u.getIndex)==null?void 0:d.call(u)}}):p},get $index(){var l;return(l=u.getIndex)==null?void 0:l.call(u)}},children:u.children})},"RecordScope");return _n}var xn,rc;function Lu(){if(rc)return xn;rc=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(x,P)=>t(x,"name",{value:P,configurable:!0}),F=(x,P)=>{for(var S in P)t(x,S,{get:P[S],enumerable:!0})},_=(x,P,S,j)=>{if(P&&typeof P=="object"||typeof P=="function")for(let O of f(P))!b.call(x,O)&&O!==S&&t(x,O,{get:()=>P[O],enumerable:!(j=o(P,O))||j.enumerable});return x},n=(x,P,S)=>(S=x!=null?e(r(x)):{},_(!x||!x.__esModule?t(S,"default",{value:x,enumerable:!0}):S,x)),c=x=>_(t({},"__esModule",{value:!0}),x),h={};F(h,{render:()=>g}),xn=c(h);var s=n(V),a=ue(),u,i,l,p,d;const y={portalDOM:(l=(i=(u=a.globalThisPolyfill)==null?void 0:u.document)==null?void 0:i.createElement)==null?void 0:l.call(i,"div"),createPortal:(d=(p=a.globalThisPolyfill)==null?void 0:p.ReactDOM)==null?void 0:d.createPortal},m=v(()=>{var P;var x;if(!y.createPortal)try{(P=y.createPortal)!=null||(y.createPortal=(x=require("react-dom"))==null?void 0:x.createPortal)}catch(S){}if(!y.createPortal)try{import("react-dom").then(S=>{var j;return(j=y.createPortal)!=null?j:y.createPortal=S==null?void 0:S.createPortal}).catch(()=>{})}catch(S){}},"loadCreatePortal"),g=v(x=>{var P;return((P=a.globalThisPolyfill.navigator)==null?void 0:P.product)==="ReactNative"?null:y.portalDOM&&y.createPortal?y.createPortal(x,y.portalDOM):s.default.createElement("template",{},x)},"render");return m(),xn}var gn,oc;function Uu(){if(oc)return gn;oc=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(P,S)=>t(P,"name",{value:S,configurable:!0}),F=(P,S)=>{for(var j in S)t(P,j,{get:S[j],enumerable:!0})},_=(P,S,j,O)=>{if(S&&typeof S=="object"||typeof S=="function")for(let w of f(S))!b.call(P,w)&&w!==j&&t(P,w,{get:()=>S[w],enumerable:!(O=o(S,w))||O.enumerable});return P},n=(P,S,j)=>(j=P!=null?e(r(P)):{},_(!P||!P.__esModule?t(j,"default",{value:P,enumerable:!0}):j,P)),c=P=>_(t({},"__esModule",{value:!0}),P),h={};F(h,{createSchemaField:()=>x}),gn=c(h);var s=D,a=n(V),u=Io(),i=ue(),l=je(),p=Lu(),d=Ot(),y=Xi();const m={nonameId:0},g=v(()=>`NO_NAME_FIELD_$${m.nonameId++}`,"getRandomName");function x(P={}){function S(Y){const re=u.Schema.isSchemaInstance(Y.schema)?Y.schema:new u.Schema(T({type:"object"},Y.schema)),ae=v(()=>(m.nonameId=0,Y.schema?null:(0,p.render)((0,s.jsx)(l.SchemaMarkupContext.Provider,{value:re,children:Y.children}))),"renderMarkup"),z=v(()=>(0,s.jsx)(y.RecursionField,W(T({},Y),{schema:re})),"renderChildren");return(0,s.jsx)(l.SchemaOptionsContext.Provider,{value:P,children:(0,s.jsx)(l.SchemaComponentsContext.Provider,{value:(0,i.lazyMerge)(P.components,Y.components),children:(0,s.jsxs)(d.ExpressionScope,{value:(0,i.lazyMerge)(P.scope,Y.scope),children:[ae(),z()]})})})}v(S,"SchemaField"),S.displayName="SchemaField";function j(Y){const re=(0,a.useContext)(l.SchemaMarkupContext);if(!re)return(0,s.jsx)(a.Fragment,{});const ae=v(()=>(0,s.jsx)(a.default.Fragment,{children:Y.children}),"renderChildren"),z=v(B=>{const U=re.items;return U&&U.name!==Y.name?re.addProperty(Y.name,B):re.setItems(B)},"appendArraySchema");if(re.type==="object"||re.type==="void"){const B=re.addProperty(Y.name,Y);return(0,s.jsx)(l.SchemaMarkupContext.Provider,{value:B,children:ae()})}else if(re.type==="array"){const B=z(Y);return(0,s.jsx)(l.SchemaMarkupContext.Provider,{value:Array.isArray(B)?B[0]:B,children:Y.children})}else return ae()}v(j,"MarkupRender");function O(Y){return(0,s.jsx)(j,W(T({},Y),{name:Y.name||g()}))}v(O,"MarkupField"),O.displayName="MarkupField";function w(Y){return(0,s.jsx)(O,W(T({},Y),{type:"string"}))}v(w,"StringField"),w.displayName="StringField";function I(Y){return(0,s.jsx)(O,W(T({},Y),{type:"object"}))}v(I,"ObjectField"),I.displayName="ObjectField";function E(Y){return(0,s.jsx)(O,W(T({},Y),{type:"array"}))}v(E,"ArrayField"),E.displayName="ArrayField";function R(Y){return(0,s.jsx)(O,W(T({},Y),{type:"boolean"}))}v(R,"BooleanField"),R.displayName="BooleanField";function N(Y){return(0,s.jsx)(O,W(T({},Y),{type:"number"}))}v(N,"NumberField"),N.displayName="NumberField";function L(Y){return(0,s.jsx)(O,W(T({},Y),{type:"date"}))}v(L,"DateField"),L.displayName="DateField";function q(Y){return(0,s.jsx)(O,W(T({},Y),{type:"datetime"}))}v(q,"DateTimeField"),q.displayName="DateTimeField";function te(Y){return(0,s.jsx)(O,W(T({},Y),{type:"void"}))}return v(te,"VoidField"),te.displayName="VoidField",S.Markup=O,S.String=w,S.Object=I,S.Array=E,S.Boolean=R,S.Date=L,S.DateTime=q,S.Void=te,S.Number=N,S}return v(x,"createSchemaField"),gn}var nc;function Gu(){return nc||(nc=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,ku(),e.exports),v(_,Tu(),e.exports),v(_,zi(),e.exports),v(_,Wi(),e.exports),v(_,qi(),e.exports),v(_,Xi(),e.exports),v(_,Ot(),e.exports),v(_,Vu(),e.exports),v(_,Bu(),e.exports),v(_,Uu(),e.exports),v(_,Zi(),e.exports)}(Ao)),Ao.exports}var Fn,sc;function Hu(){if(sc)return Fn;sc=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(F,_,n,c)=>{if(_&&typeof _=="object"||typeof _=="function")for(let h of o(_))!f.call(F,h)&&h!==n&&e(F,h,{get:()=>_[h],enumerable:!(c=t(_,h))||c.enumerable});return F},b=F=>r(e({},"__esModule",{value:!0}),F),v={};return Fn=b(v),Fn}var ac;function zu(){return ac||(ac=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Io(),e.exports),v(_,Gu(),e.exports),v(_,je(),e.exports),v(_,Ge(),e.exports),v(_,Hu(),e.exports)}(kt)),kt.exports}var Qe=zu();const ic=V.createContext(null),Sn=({children:e})=>{const[t,o]=V.useState({field:null,fieldSchema:null,schemaMarkup:null,expressionScope:null,schemaComponents:null,schemaOptions:null,form:null,formBlockValue:null,highLightField:null}),f=r=>{o(b=>T(T({},b),r))};return D.jsx(ic.Provider,{value:W(T({},t),{setEditableField:f}),children:e})},Ct=()=>{const e=V.useContext(ic);if(!e)throw new Error("useEditableSelectedField must be used within EditableSelectedFieldProvider");return e},cc=V.createContext(null),Pn=({children:e})=>{const[t,o]=V.useState({field:null,fieldSchema:null,schemaMarkup:null,expressionScope:null,schemaComponents:null,schemaOptions:null,form:null,formBlockValue:null}),f=r=>{o(b=>T(T({},b),r))};return D.jsx(cc.Provider,{value:W(T({},t),{setEditableForm:f}),children:e})},lc=()=>{const e=V.useContext(cc);if(!e)throw new Error("useEditableSelectedForm must be used within EditableSelectedFormProvider");return e},Xe=Ye.createStyles(({css:e})=>({editModel:e`
|
|
69
|
+
`})),Rt=V.createContext({});Rt.displayName="EditableGridRowContext";const Un=V.createContext({});Un.displayName="EditableGridColContext";const Nt=V.createContext({});Nt.displayName="EditableGridContext";const Gn=e=>e["x-component"]==="EditableGrid",Hn=e=>e["x-component"]==="EditableGrid.Row",zn=V.memo(A.RecursionField);zn.displayName="MemorizedRecursionField";const Jn=e=>{var g,x,P;const{token:t}=C.useToken(),o=V.useRef(null),{cx:f}=nt(),{isOver:r,setNodeRef:b}=ge.useDroppable({id:e.id,data:e.data}),{designable:v}=C.useDesignable(),F=V.useRef(),_=V.useMemo(()=>r?{backgroundColor:new ve(t.colorSettings).setAlpha(.1).toHex8String()}:{},[r]),c=(P=(x=(g=ge.useDndContext().active)==null?void 0:g.data.current)==null?void 0:x.schema)==null?void 0:P.parent,h=c?Object.keys(c.properties).length:0;let s=!0;if(h===1)if(e.first)s=c!==e.cols[0];else{const S=e.cols[e.index],j=e.cols[e.index+1];s=c!==S&&j!==c}const a=e.cols[e.index],u=e.cols[e.index+1],{attributes:i,listeners:l,setNodeRef:p,isDragging:d}=ge.useDraggable({disabled:e.first||e.last||!v,id:e.id,data:{dividerRef:F,prevSchema:a,nextSchema:u}}),[y,m]=V.useState([0,0]);return ge.useDndMonitor({onDragStart(S){var I;if(((I=S.active.data.current.dividerRef)==null?void 0:I.current)!==F.current)return;o.current=S.active.id;const j=F.current,O=j.previousElementSibling,w=j.nextElementSibling;m([O.clientWidth,w.clientWidth])},onDragMove(S){if(!d)return;o.current===S.active.id&&(o.current=o.current+"_move");const j=F.current,O=j.previousElementSibling,w=j.nextElementSibling;O.style.width=`${y[0]+S.delta.x}px`,w.style.width=`${y[1]-S.delta.x}px`},onDragEnd(S){var N;if(!o.current||(N=o.current)!=null&&N.startsWith(S.active.id)&&!o.current.endsWith("_move")||y[0]<=0||y[1]<=0||(m([0,0]),!a||!u))return;const j=F.current,O=j.previousElementSibling,w=j.nextElementSibling;a["x-component-props"]=a["x-component-props"]||{},u["x-component-props"]=u["x-component-props"]||{};const I=j.clientWidth*(e.cols.length+1)/e.cols.length,E=(100*(O.getBoundingClientRect().width+I)/j.parentElement.clientWidth).toFixed(2),R=(100*(w.getBoundingClientRect().width+I)/j.parentElement.clientWidth).toFixed(2);se.set(a,"x-component-props.width",E),se.set(u,"x-component-props.width",R)}}),D.jsx("div",{ref:S=>{s&&(b(S),F.current=S)},className:f("tb-col-divider","ColDivider"),style:_,children:D.jsx("div",W(T(T({ref:p},l),i),{tabIndex:-1,className:e.first||e.last||!v?null:"DraggableNode"}))})},Wn=e=>{var a,u,i;const{token:t}=C.useToken(),{isOver:o,setNodeRef:f}=ge.useDroppable({id:e.id,data:e.data}),{cx:r}=nt(),[b,v]=V.useState(!1),F=V.useMemo(()=>o?{zIndex:b?1e3:-1,backgroundColor:new ve(t.colorSettings).setAlpha(.1).toHex8String()}:{zIndex:b?1e3:-1},[b,o]),_=ge.useDndContext(),n=e.rows[e.index],c=(i=(u=(a=_.active)==null?void 0:a.data.current)==null?void 0:u.schema)==null?void 0:i.parent.parent,h=c==null?void 0:c.mapProperties(l=>l["x-component"]==="EditableGrid.Col").filter(Boolean).length;let s=!0;if(h===1)if(e.first)s=c!==e.rows[0];else{const l=e.rows[e.index+1];s=c!==n&&l!==c}return ge.useDndMonitor({onDragStart(l){v(!0)},onDragMove(l){},onDragOver(l){},onDragEnd(l){v(!1)},onDragCancel(l){v(!1)}}),D.jsx("span",{ref:s?f:null,className:r("tb-row-divider","RowDivider"),style:F})},Yn=e=>{const t=new A.Schema({type:"void",name:`row_${A.uid()}`,"x-uid":A.uid(),"x-component":"EditableGrid.Row"}),o=t.addProperty(A.uid(),{type:"void","x-uid":A.uid(),"x-component":"EditableGrid.Col"});return A.Schema.isSchemaInstance(e)&&(e.parent=o),o.addProperty(e.name,e),t},qn=e=>{const t=new A.Schema({type:"void",name:`col_${A.uid()}`,"x-uid":A.uid(),"x-component":"EditableGrid.Col"});return A.Schema.isSchemaInstance(e)&&(e.parent=t),t.addProperty(e.name,e),t},ml=()=>{const e=A.useFieldSchema();return V.useMemo(()=>e.reduceProperties((t,o)=>(o["x-component"]==="EditableGrid.Row"&&!o["x-hidden"]&&t.push(o),t),[]),[Object.keys(e.properties||{}).join(",")])},fl=()=>{const e=A.useFieldSchema();return V.useMemo(()=>e.reduceProperties((t,o)=>(o["x-component"]==="EditableGrid.Col"&&!o["x-hidden"]&&t.push(o),t),[]),[Object.keys(e.properties||{}).join(",")])},hl=e=>e.dndContext===!1?D.jsx(D.Fragment,{children:e.children}):D.jsx(dl,W(T({},e.dndContext),{children:e.children})),Kn=()=>V.useContext(Nt),$e=A.observer(e=>{const{distributed:t,showDivider:o=!0}=e,f=V.useRef(null),r=A.useField(),b=A.useFieldSchema(),{render:v}=C.useSchemaInitializerRender(b["x-initializer"],b["x-initializer-props"]),F=u=>v(u),_=r.address.toString(),n=ml(),{setPrintContent:c}=C.useFormBlockContext(),{styles:h,cx:s}=nt(),a=t===void 0?(b==null?void 0:b.parent["x-component"])==="Page"||(b==null?void 0:b.parent["x-component"])==="Tabs.TabPane":t;return V.useEffect(()=>{f.current&&(c==null||c(f.current))},[f.current]),D.jsx(Nt.Provider,{value:{ref:f,fieldSchema:b,renderSchemaInitializer:v,InitializerComponent:F,showDivider:o},children:D.jsxs("div",{className:s("tb-grid",h.editableGrid),style:{position:"relative"},ref:f,children:[D.jsxs(hl,{dndContext:e.dndContext,children:[o?D.jsx(Wn,{rows:n,first:!0,id:`${_}_0`,data:{breakRemoveOn:Gn,wrapSchema:Yn,insertAdjacent:"afterBegin",schema:b}}):null,n.map((u,i)=>D.jsxs(V.Fragment,{children:[a?D.jsx(C.SchemaComponent,{name:u.name,schema:u,distributed:!0}):D.jsx(zn,{name:u.name,schema:u}),o?D.jsx(Wn,{rows:n,index:i,id:`${_}_${i+1}`,data:{breakRemoveOn:Gn,wrapSchema:Yn,insertAdjacent:"afterEnd",schema:u}}):null]},i))]}),v()]})})},{displayName:"EditableGrid"});$e.Row=A.observer(()=>{const e=A.useField(),t=A.useFieldSchema(),o=e.address.toString(),f=fl(),{showDivider:r}=Kn(),{type:b}=C.useFormBlockType(),{cx:v}=nt();return D.jsx(Rt.Provider,{value:{schema:t,cols:f},children:D.jsxs("div",{className:v("tb-grid-row","CardRow",{showDivider:r}),children:[r&&D.jsx(Jn,{cols:f,first:!0,id:`${o}_0`,data:{breakRemoveOn:Hn,wrapSchema:qn,insertAdjacent:"afterBegin",schema:t}}),f.map((F,_)=>D.jsxs(V.Fragment,{children:[D.jsx(A.RecursionField,{name:F.name,schema:F,mapProperties:n=>(b==="update"&&(n.default=null),n)}),r&&D.jsx(Jn,{cols:f,index:_,last:_===f.length-1,id:`${o}_${_+1}`,data:{breakRemoveOn:Hn,wrapSchema:qn,insertAdjacent:"afterEnd",schema:F}})]},_))]})})},{displayName:"EditableGrid.Row"}),$e.Col=A.observer(e=>{var a;const{cols:t=[]}=V.useContext(Rt),{showDivider:o}=Kn(),f=A.useFieldSchema(),r=A.useField(),{token:b}=C.useToken(),{cx:v}=nt(),F=V.useMemo(()=>{var i;let u="";return t!=null&&t.length&&(u=`calc(${((i=f==null?void 0:f["x-component-props"])==null?void 0:i.width)||100/t.length}% - ${b.marginLG}px * ${(o?t.length+1:0)/t.length})`),{width:u}},[t==null?void 0:t.length,(a=f==null?void 0:f["x-component-props"])==null?void 0:a.width]),{isOver:_,setNodeRef:n}=ge.useDroppable({id:r.address.toString(),data:{insertAdjacent:"beforeEnd",schema:f,wrapSchema:u=>u}}),[c,h]=V.useState(!1),s=V.useMemo(()=>_?{background:`linear-gradient(to top, ${new ve(b.colorSettings).setAlpha(.1).toHex8String()} 20%, transparent 20%)`,borderTopRightRadius:"10px",borderTopLeftRadius:"10px",height:"100%"}:{height:"100%"},[c,_]);return ge.useDndMonitor({onDragStart(u){h(!0)},onDragMove(u){},onDragOver(u){},onDragEnd(u){h(!1)},onDragCancel(u){h(!1)}}),D.jsx(Un.Provider,{value:{cols:t,schema:f},children:D.jsx("div",{ref:n,style:T(T({},F),s),className:v("tb-grid-col","CardCol"),children:e.children})})},{displayName:"EditableGrid.Col"}),$e.wrap=e=>({type:"void","x-component":"EditableGrid.Row",properties:{[A.uid()]:{type:"void","x-component":"EditableGrid.Col",properties:{[e.name||A.uid()]:e}}}});const bl=A.observer(({schema:e})=>{const t=C.findSchemaUtils(e,"x-component","EditableGrid")||{},{Content:o}=oe.Layout,{refreshKey:f}=It(),r=!t.properties;return D.jsx(o,{style:{padding:"5px",overflow:"auto"},children:r?D.jsx("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"10%"},children:D.jsx(C.Icon,{type:"add-fields",style:{width:"200px",height:"100%"}})}):D.jsx(C.SchemaComponent,{schema:e,components:{EditableGrid:$e}})},f)});var bt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function st(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var o=function f(){var r=!1;try{r=this instanceof f}catch(b){}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(f){var r=Object.getOwnPropertyDescriptor(e,f);Object.defineProperty(o,f,r.get?r:{enumerable:!0,get:function(){return e[f]}})}),o}var kt={exports:{}},Tt={exports:{}},Vt={exports:{}},Bt,Zn;function Le(){if(Zn)return Bt;Zn=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(w,I)=>e(w,"name",{value:I,configurable:!0}),b=(w,I)=>{for(var E in I)e(w,E,{get:I[E],enumerable:!0})},v=(w,I,E,R)=>{if(I&&typeof I=="object"||typeof I=="function")for(let N of o(I))!f.call(w,N)&&N!==E&&e(w,N,{get:()=>I[N],enumerable:!(R=t(I,N))||R.enumerable});return w},F=w=>v(e({},"__esModule",{value:!0}),w),_={};b(_,{getType:()=>h,isArr:()=>a,isBool:()=>l,isFn:()=>s,isHTMLElement:()=>O,isMap:()=>d,isNum:()=>p,isNumberLike:()=>x,isObj:()=>P,isPlainObj:()=>u,isReactElement:()=>j,isRegExp:()=>S,isSet:()=>y,isStr:()=>i,isWeakMap:()=>m,isWeakSet:()=>g}),Bt=F(_);const n=Object.prototype.toString,c=r(w=>I=>h(I)===`[object ${w}]`,"isType"),h=r(w=>n.call(w),"getType"),s=r(w=>typeof w=="function","isFn"),a=Array.isArray,u=c("Object"),i=c("String"),l=c("Boolean"),p=c("Number"),d=r(w=>w&&w instanceof Map,"isMap"),y=r(w=>w&&w instanceof Set,"isSet"),m=r(w=>w&&w instanceof WeakMap,"isWeakMap"),g=r(w=>w&&w instanceof WeakSet,"isWeakSet"),x=r(w=>p(w)||/^\d+$/.test(w),"isNumberLike"),P=r(w=>typeof w=="object","isObj"),S=c("RegExp"),j=r(w=>w&&w.$$typeof&&w._owner,"isReactElement"),O=r(w=>Object.prototype.toString.call(w).indexOf("HTML")>-1,"isHTMLElement");return Bt}var Lt,Qn;function Ut(){if(Qn)return Lt;Qn=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(m,g)=>e(m,"name",{value:g,configurable:!0}),b=(m,g)=>{for(var x in g)e(m,x,{get:g[x],enumerable:!0})},v=(m,g,x,P)=>{if(g&&typeof g=="object"||typeof g=="function")for(let S of o(g))!f.call(m,S)&&S!==x&&e(m,S,{get:()=>g[S],enumerable:!(P=t(g,S))||P.enumerable});return m},F=m=>v(e({},"__esModule",{value:!0}),m),_={};b(_,{each:()=>h,every:()=>u,find:()=>p,findIndex:()=>l,includes:()=>d,map:()=>s,move:()=>y,reduce:()=>a,some:()=>i,toArr:()=>c}),Lt=F(_);var n=Le();const c=r(m=>(0,n.isArr)(m)?m:m?[m]:[],"toArr");function h(m,g,x){if((0,n.isArr)(m)||(0,n.isStr)(m)){if(x){for(let P=m.length-1;P>=0;P--)if(g(m[P],P)===!1)return}else for(let P=0;P<m.length;P++)if(g(m[P],P)===!1)return}else if((0,n.isObj)(m)){let P;for(P in m)if(Object.hasOwnProperty.call(m,P)&&g(m[P],P)===!1)return}}r(h,"each");function s(m,g,x){const P=(0,n.isArr)(m)||(0,n.isStr)(m)?[]:{};return h(m,(S,j)=>{const O=g(S,j);(0,n.isArr)(P)?P.push(O):P[j]=O},x),P}r(s,"map");function a(m,g,x,P){let S=x;return h(m,(j,O)=>{S=g(S,j,O)},P),S}r(a,"reduce");function u(m,g,x){let P=!0;return h(m,(S,j)=>{if(!g(S,j))return P=!1,!1},x),P}r(u,"every");function i(m,g,x){let P=!1;return h(m,(S,j)=>{if(g(S,j))return P=!0,!1},x),P}r(i,"some");function l(m,g,x){let P=-1;return h(m,(S,j)=>{if(g(S,j))return P=j,!1},x),P}r(l,"findIndex");function p(m,g,x){let P;return h(m,(S,j)=>{if(g(S,j))return P=S,!1},x),P}r(p,"find");function d(m,g,x){return(0,n.isStr)(m)?m.includes(g):i(m,P=>P===g,x)}r(d,"includes");function y(m,g,x){if(g===x||x<0||g<0||x>m.length-1||g>m.length-1)return m;if(g<x){const P=m[g];for(let S=g;S<x;S++)m[S]=m[S+1];m[x]=P}else{const P=m[g];for(let S=g;S>x;S--)m[S]=m[S-1];m[x]=P}return m}return r(y,"move"),Lt}var Gt,Xn;function $n(){if(Xn)return Gt;Xn=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(h,s)=>e(h,"name",{value:s,configurable:!0}),b=(h,s)=>{for(var a in s)e(h,a,{get:s[a],enumerable:!0})},v=(h,s,a,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of o(s))!f.call(h,i)&&i!==a&&e(h,i,{get:()=>s[i],enumerable:!(u=t(s,i))||u.enumerable});return h},F=h=>v(e({},"__esModule",{value:!0}),h),_={};b(_,{globalThisPolyfill:()=>c}),Gt=F(_);function n(){try{if(typeof self!="undefined")return self}catch(h){}try{if(typeof window!="undefined")return window}catch(h){}try{if(typeof bt!="undefined")return bt}catch(h){}return Function("return this")()}r(n,"globalSelf");const c=n();return Gt}var Ht,es;function zt(){if(es)return Ht;es=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{instOf:()=>h}),Ht=F(_);var n=Le(),c=$n();const h=r((s,a)=>(0,n.isFn)(a)?s instanceof a:(0,n.isStr)(a)&&c.globalThisPolyfill[a]?s instanceof c.globalThisPolyfill[a]:!1,"instOf");return Ht}var Jt,ts;function vl(){if(ts)return Jt;ts=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(l,p)=>e(l,"name",{value:p,configurable:!0}),b=(l,p)=>{for(var d in p)e(l,d,{get:p[d],enumerable:!0})},v=(l,p,d,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let m of o(p))!f.call(l,m)&&m!==d&&e(l,m,{get:()=>p[m],enumerable:!(y=t(p,m))||y.enumerable});return l},F=l=>v(e({},"__esModule",{value:!0}),l),_={};b(_,{isEqual:()=>i}),Jt=F(_);var n=Le(),c=zt();const h=n.isArr,s=Object.keys,a=Object.prototype.hasOwnProperty;function u(l,p){if(l===p)return!0;if(l&&p&&typeof l=="object"&&typeof p=="object"){const d=h(l),y=h(p);let m,g,x;if(d&&y){if(g=l.length,g!==p.length)return!1;for(m=g;m--!==0;)if(!u(l[m],p[m]))return!1;return!0}if(d!==y)return!1;const P=l&&l._isAMomentObject,S=p&&p._isAMomentObject;if(P!==S)return!1;if(P&&S)return l.isSame(p);const j=l&&l.toJS,O=p&&p.toJS;if(j!==O)return!1;if(j)return l.is?l.is(p):l===p;const w=(0,c.instOf)(l,"Date"),I=(0,c.instOf)(p,"Date");if(w!==I)return!1;if(w&&I)return l.getTime()===p.getTime();const E=(0,c.instOf)(l,"RegExp"),R=(0,c.instOf)(p,"RegExp");if(E!==R)return!1;if(E&&R)return l.toString()===p.toString();const N=(0,c.instOf)(l,"URL"),L=(0,c.instOf)(p,"URL");if(N!==L)return!1;if(N&&L)return l.href===p.href;const q=l&&l.toJSON,te=p&&p.toJSON;if(q!==te)return!1;if(q&&te)return u(l.toJSON(),p.toJSON());const Y=s(l);if(g=Y.length,g!==s(p).length)return!1;for(m=g;m--!==0;)if(!a.call(p,Y[m]))return!1;for(m=g;m--!==0;)if(x=Y[m],!(x==="_owner"&&l.$$typeof)&&!u(l[x],p[x]))return!1;return!0}return l!==l&&p!==p}r(u,"equal");const i=r(function(p,d){try{return u(p,d)}catch(y){if(y.message&&y.message.match(/stack|recursion/i)||y.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",y.name,y.message),!1;throw y}},"exportedEqual");return Jt}var Wt,rs;function yl(){if(rs)return Wt;rs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{clone:()=>h,shallowClone:()=>c}),Wt=F(_);var n=Le();const c=r(s=>Array.isArray(s)?s.slice(0):(0,n.isPlainObj)(s)?"$$typeof"in s&&"_owner"in s||s._isBigNumber||s._isAMomentObject||s._isJSONSchemaObject||(0,n.isFn)(s.toJS)||(0,n.isFn)(s.toJSON)?s:T({},s):typeof s=="object"?new s.constructor(s):s,"shallowClone"),h=r(s=>{if(Array.isArray(s)){const a=[];return s.forEach(u=>{a.push(h(u))}),a}else if((0,n.isPlainObj)(s)){if("$$typeof"in s&&"_owner"in s||s._isBigNumber||s._isAMomentObject||s._isJSONSchemaObject)return s;if((0,n.isFn)(s.toJS))return s.toJS();if((0,n.isFn)(s.toJSON))return s.toJSON();const a={};for(const u in s)Object.hasOwnProperty.call(s,u)&&(a[u]=h(s[u]));return a}else return s},"clone");return Wt}var Yt,os;function qt(){if(os)return Yt;os=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{isEmpty:()=>u,isUndef:()=>s,isValid:()=>a}),Yt=F(_);var n=zt();const c=Object.prototype.hasOwnProperty,h=Object.prototype.toString,s=r(i=>i===void 0,"isUndef"),a=r(i=>i!=null,"isValid");function u(i,l=!1){if(i==null)return!0;if(typeof i=="boolean"||typeof i=="number")return!1;if(typeof i=="string"||typeof i=="function")return i.length===0;if(Array.isArray(i)){if(i.length===0)return!0;for(let p=0;p<i.length;p++)if(l){if(i[p]!==void 0&&i[p]!==null)return!1}else if(i[p]!==void 0&&i[p]!==null&&i[p]!==""&&i[p]!==0)return!1;return!0}if((0,n.instOf)(i,"Error"))return i.message==="";if(i.toString===h)switch(i.toString()){case"[object File]":case"[object Map]":case"[object Set]":return i.size===0;case"[object Object]":{for(const p in i)if(c.call(i,p))return!1;return!0}}return!1}return r(u,"isEmpty"),Yt}var et=function(){return et=Object.assign||function(t){for(var o,f=1,r=arguments.length;f<r;f++){o=arguments[f];for(var b in o)Object.prototype.hasOwnProperty.call(o,b)&&(t[b]=o[b])}return t},et.apply(this,arguments)};typeof SuppressedError=="function"&&SuppressedError;var _l={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{İ:"i",I:"ı",İ:"i"}},az:{regexp:/\u0130/g,map:{İ:"i",I:"ı",İ:"i"}},lt:{regexp:/\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,map:{I:"i̇",J:"j̇",Į:"į̇",Ì:"i̇̀",Í:"i̇́",Ĩ:"i̇̃"}}};function xl(e,t){var o=_l[t.toLowerCase()];return vt(o?e.replace(o.regexp,function(f){return o.map[f]}):e)}function vt(e){return e.toLowerCase()}const gl=Object.freeze(Object.defineProperty({__proto__:null,localeLowerCase:xl,lowerCase:vt},Symbol.toStringTag,{value:"Module"}));var Fl=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Sl=/[^A-Z0-9]+/gi;function ns(e,t){t===void 0&&(t={});for(var o=t.splitRegexp,f=o===void 0?Fl:o,r=t.stripRegexp,b=r===void 0?Sl:r,v=t.transform,F=v===void 0?vt:v,_=t.delimiter,n=_===void 0?" ":_,c=ss(ss(e,f,"$1\0$2"),b,"\0"),h=0,s=c.length;c.charAt(h)==="\0";)h++;for(;c.charAt(s-1)==="\0";)s--;return c.slice(h,s).split("\0").map(F).join(n)}function ss(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce(function(f,r){return f.replace(r,o)},e)}function Kt(e,t){var o=e.charAt(0),f=e.substr(1).toLowerCase();return t>0&&o>="0"&&o<="9"?"_"+o+f:""+o.toUpperCase()+f}function as(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function is(e,t){return t===void 0&&(t={}),ns(e,et({delimiter:"",transform:Kt},t))}const Pl=Object.freeze(Object.defineProperty({__proto__:null,pascalCase:is,pascalCaseTransform:Kt,pascalCaseTransformMerge:as},Symbol.toStringTag,{value:"Module"}));function cs(e,t){return t===0?e.toLowerCase():Kt(e,t)}function Ol(e,t){return t===0?e.toLowerCase():as(e)}function Cl(e,t){return t===void 0&&(t={}),is(e,et({transform:cs},t))}const wl=st(Object.freeze(Object.defineProperty({__proto__:null,camelCase:Cl,camelCaseTransform:cs,camelCaseTransformMerge:Ol},Symbol.toStringTag,{value:"Module"}))),El=st(gl);function jl(e,t){return t===void 0&&(t={}),ns(e,et({delimiter:"."},t))}function Il(e,t){return t===void 0&&(t={}),jl(e,et({delimiter:"-"},t))}const Al=st(Object.freeze(Object.defineProperty({__proto__:null,paramCase:Il},Symbol.toStringTag,{value:"Module"}))),Dl=st(Pl);var Ml={tr:{regexp:/[\u0069]/g,map:{i:"İ"}},az:{regexp:/[\u0069]/g,map:{i:"İ"}},lt:{regexp:/[\u0069\u006A\u012F]\u0307|\u0069\u0307[\u0300\u0301\u0303]/g,map:{i̇:"I",j̇:"J",į̇:"Į",i̇̀:"Ì",i̇́:"Í",i̇̃:"Ĩ"}}};function Rl(e,t){var o=Ml[t.toLowerCase()];return Zt(o?e.replace(o.regexp,function(f){return o.map[f]}):e)}function Zt(e){return e.toUpperCase()}const Nl=st(Object.freeze(Object.defineProperty({__proto__:null,localeUpperCase:Rl,upperCase:Zt},Symbol.toStringTag,{value:"Module"})));var Qt,ls;function kl(){if(ls)return Qt;ls=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},b=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},v=a=>b(e({},"__esModule",{value:!0}),a),F={};r(F,{camelCase:()=>_.camelCase,lowerCase:()=>n.lowerCase,paramCase:()=>c.paramCase,pascalCase:()=>h.pascalCase,upperCase:()=>s.upperCase}),Qt=v(F);var _=wl,n=El,c=Al,h=Dl,s=Nl;return Qt}var Xt,us;function Tl(){if(us)return Xt;us=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{stringLength:()=>a}),Xt=F(_);const n=r(()=>{const u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");return new RegExp(u,"g")},"ansiRegex"),c="[\uD800-\uDBFF][\uDC00-\uDFFF]",h=r(u=>u&&u.exact?new RegExp(`^${c}$`):new RegExp(c,"g"),"astralRegex"),s=r(u=>typeof u=="string"?u.replace(n(),""):u,"stripAnsi"),a=r(u=>s(u).replace(h()," ").length,"stringLength");return Xt}var $t,ps;function yt(){if(ps)return $t;ps=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(w,I)=>e(w,"name",{value:I,configurable:!0}),b=(w,I)=>{for(var E in I)e(w,E,{get:I[E],enumerable:!0})},v=(w,I,E,R)=>{if(I&&typeof I=="object"||typeof I=="function")for(let N of o(I))!f.call(w,N)&&N!==E&&e(w,N,{get:()=>I[N],enumerable:!(R=t(I,N))||R.enumerable});return w},F=w=>v(e({},"__esModule",{value:!0}),w),_={};b(_,{isArr:()=>s,isAssignable:()=>S,isBool:()=>i,isEqual:()=>j,isFn:()=>h,isNum:()=>l,isNumberLike:()=>y,isObj:()=>p,isPlainObj:()=>a,isRegExp:()=>d,isSegmentEqual:()=>O,isStr:()=>u,toArr:()=>P}),$t=F(_);const n=Object.prototype.toString,c=r(w=>I=>n.call(I)===`[object ${w}]`,"isType"),h=c("Function"),s=Array.isArray||c("Array"),a=c("Object"),u=c("String"),i=c("Boolean"),l=c("Number"),p=r(w=>typeof w=="object","isObj"),d=c("RegExp"),y=r(w=>l(w)||/^(\d+)(\.\d+)?$/.test(w),"isNumberLike"),m=s,g=Object.keys,x=Object.prototype.hasOwnProperty,P=r(w=>Array.isArray(w)?w:w!==void 0?[w]:[],"toArr"),S=r(w=>typeof w=="object"||typeof w=="function","isAssignable"),j=r((w,I)=>{if(w===I)return!0;if(w&&I&&typeof w=="object"&&typeof I=="object"){const E=m(w),R=m(I);let N,L,q;if(E&&R){if(L=w.length,L!==I.length)return!1;for(N=L;N--!==0;)if(!j(w[N],I[N]))return!1;return!0}if(E!==R)return!1;const te=g(w);if(L=te.length,L!==g(I).length)return!1;for(N=L;N--!==0;)if(!x.call(I,te[N]))return!1;for(N=L;N--!==0;)if(q=te[N],!j(w[q],I[q]))return!1;return!0}return w!==w&&I!==I},"isEqual"),O=r((w,I)=>(w=typeof w=="symbol"?w:`${w}`,I=typeof I=="symbol"?I:`${I}`,w===I),"isSegmentEqual");return $t}var er,ds;function ms(){if(ds)return er;ds=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(g,x)=>e(g,"name",{value:x,configurable:!0}),b=(g,x)=>{for(var P in x)e(g,P,{get:x[P],enumerable:!0})},v=(g,x,P,S)=>{if(x&&typeof x=="object"||typeof x=="function")for(let j of o(x))!f.call(g,j)&&j!==P&&e(g,j,{get:()=>x[j],enumerable:!(S=t(x,j))||S.enumerable});return g},F=g=>v(e({},"__esModule",{value:!0}),g),_={};b(_,{isArrayPattern:()=>m,isDestructorExpression:()=>p,isDotOperator:()=>s,isExpandOperator:()=>u,isGroupExpression:()=>i,isIdentifier:()=>c,isIgnoreExpression:()=>h,isObjectPattern:()=>d,isObjectPatternProperty:()=>y,isRangeExpression:()=>l,isType:()=>n,isWildcardOperator:()=>a}),er=F(_);const n=r(g=>x=>x&&x.type===g,"isType"),c=n("Identifier"),h=n("IgnoreExpression"),s=n("DotOperator"),a=n("WildcardOperator"),u=n("ExpandOperator"),i=n("GroupExpression"),l=n("RangeExpression"),p=n("DestructorExpression"),d=n("ObjectPattern"),y=n("ObjectPatternProperty"),m=n("ArrayPattern");return er}var tr,fs;function hs(){if(fs)return tr;fs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(m,g)=>e(m,"name",{value:g,configurable:!0}),b=(m,g)=>{for(var x in g)e(m,x,{get:g[x],enumerable:!0})},v=(m,g,x,P)=>{if(g&&typeof g=="object"||typeof g=="function")for(let S of o(g))!f.call(m,S)&&S!==x&&e(m,S,{get:()=>g[S],enumerable:!(P=t(g,S))||P.enumerable});return m},F=m=>v(e({},"__esModule",{value:!0}),m),_={};b(_,{deleteInByDestructor:()=>d,existInByDestructor:()=>y,getDestructor:()=>a,getInByDestructor:()=>p,parseDestructorRules:()=>i,setDestructor:()=>u,setInByDestructor:()=>l}),tr=F(_);var n=yt(),c=ms();const h=new Map,s=r(m=>m!=null,"isValid"),a=r(m=>h.get(m),"getDestructor"),u=r((m,g)=>{h.set(m,g)},"setDestructor"),i=r(m=>{const g=[];if((0,c.isObjectPattern)(m)){let x=0;return m.properties.forEach(P=>{g[x]={path:[]},g[x].key=P.key.value,g[x].path.push(P.key.value),(0,c.isIdentifier)(P.value)&&(g[x].key=P.value.value);const S=g[x].path,j=i(P.value);let O=x;j.forEach(w=>{g[O]?(g[O].key=w.key,g[O].path=S.concat(w.path)):g[O]={key:w.key,path:S.concat(w.path)},O++}),O>x?x=O:x++}),g}else if((0,c.isArrayPattern)(m)){let x=0;return m.elements.forEach((P,S)=>{g[x]={path:[]},g[x].key=S,g[x].path.push(S),(0,c.isIdentifier)(P)&&(g[x].key=P.value);const j=g[x].path,O=i(P);let w=x;O.forEach(I=>{g[w]?(g[w].key=I.key,g[w].path=j.concat(I.path)):g[w]={key:I.key,path:j.concat(I.path)},w++}),w>x?x=w:x++}),g}return(0,c.isDestructorExpression)(m)?i(m.value):g},"parseDestructorRules"),l=r((m,g,x,P)=>{g.forEach(({key:S,path:j})=>{P.setIn([S],m,P.getIn(j,x))})},"setInByDestructor"),p=r((m,g,x)=>{let P={};return g.length&&(0,n.isNum)(g[0].path[0])&&(P=[]),m=s(m)?m:{},g.forEach(({key:S,path:j})=>{x.setIn(j,P,m[S])}),P},"getInByDestructor"),d=r((m,g,x)=>{g.forEach(({key:P})=>{x.deleteIn([P],m)})},"deleteInByDestructor"),y=r((m,g,x,P)=>g.every(({key:S})=>P.existIn([S],m,x)),"existInByDestructor");return tr}var rr,bs;function Vl(){if(bs)return rr;bs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{Matcher:()=>s}),rr=F(_);var n=yt(),c=ms();const h=class{constructor(u,i){this.tree=u,this.stack=[],this.excluding=!1,this.wildcards=[],this.record=i}next(u,i){if(u.after)return this.matchNode(u.after,i);if((0,c.isWildcardOperator)(u)&&!u.filter)return this.excluding?!1:i===0||u.optional?!0:!!this.take(i);if(i===this.path.length-1)return!!this.take(i);{const p=this.wildcards.pop();if(p&&p.after)return this.next(p,i)}return!1}shot(){var u;((u=this.record)==null?void 0:u.score)>=0&&this.record.score++}take(u){var i;return String((i=this.path[u])!=null?i:"")}matchExcludeIdentifier(u,i,l){const p=l===this.path.length-1,d=l<this.path.length;if(i.after||(this.excluding=!1),u){if(i.after)return this.next(i,l);if(p)return!1}return p?!0:d}matchIdentifier(u,i){const l=this.take(i);let p=!1;return(0,c.isExpandOperator)(u.after)?(l.indexOf(u.value)===0&&(this.shot(),p=!0),this.excluding?this.matchExcludeIdentifier(p,u.after,i):p&&this.next(u.after,i)):(l===u.value&&(this.shot(),p=!0),this.excluding?this.matchExcludeIdentifier(p,u,i):p&&this.next(u,i))}matchIgnoreExpression(u,i){return(0,n.isEqual)(u.value,this.take(i))&&this.next(u,i)}matchDestructorExpression(u,i){return(0,n.isEqual)(u.source,this.take(i))&&this.next(u,i)}matchExpandOperator(u,i){return this.next(u,i)}matchWildcardOperator(u,i){let l=!1;return u.filter?(this.stack.push(u),l=this.matchNode(u.filter,i),this.stack.pop()):l=this.next(u,i),l}matchGroupExpression(u,i){let l=!1;return u.isExclude&&(l=!this.excluding),(0,n.toArr)(u.value)[l?"every":"some"](p=>(this.wildcards=this.stack.slice(),this.excluding=l,this.matchNode(p,i)))}matchRangeExpression(u,i){const l=Number(this.take(i));return u.start?u.end?l>=Number(u.start.value)&&l<=Number(u.end.value):l>=Number(u.start.value):u.end?l<=Number(u.end.value):(this.wildcards=this.stack.slice(),this.next(u,i))}matchNode(u,i=0){return(0,c.isDotOperator)(u)?this.next(u,i+1):(0,c.isIdentifier)(u)?this.matchIdentifier(u,i):(0,c.isIgnoreExpression)(u)?this.matchIgnoreExpression(u,i):(0,c.isDestructorExpression)(u)?this.matchDestructorExpression(u,i):(0,c.isExpandOperator)(u)?this.matchExpandOperator(u,i):(0,c.isWildcardOperator)(u)?this.matchWildcardOperator(u,i):(0,c.isGroupExpression)(u)?this.matchGroupExpression(u,i):(0,c.isRangeExpression)(u)?this.matchRangeExpression(u,i):!1}match(u){return this.path=u,{matched:this.matchNode(this.tree),record:this.record}}static matchSegments(u,i,l){if(u.length!==i.length)return{matched:!1,record:l};const p=r((d=0)=>{const y=(0,n.isSegmentEqual)(u[d],i[d]);return(l==null?void 0:l.score)>=0&&l.score++,y&&(d<u.length-1?p(d+1):!0)},"match");return{matched:p(),record:l}}};r(h,"Matcher");let s=h;return rr}var or,vs;function nr(){if(vs)return or;vs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(l,p)=>e(l,"name",{value:p,configurable:!0}),b=(l,p)=>{for(var d in p)e(l,d,{get:p[d],enumerable:!0})},v=(l,p,d,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let m of o(p))!f.call(l,m)&&m!==d&&e(l,m,{get:()=>p[m],enumerable:!(y=t(p,m))||y.enumerable});return l},F=l=>v(e({},"__esModule",{value:!0}),l),_={};b(_,{braceContext:()=>u,bracketArrayContext:()=>h,bracketContext:()=>c,bracketDContext:()=>s,destructorContext:()=>i,parenContext:()=>a}),or=F(_);const n=r((l,p)=>T({flag:l},p),"ContextType"),c=n("[]"),h=n("[\\d]"),s=n("[[]]"),a=n("()"),u=n("{}"),i=n("{x}");return or}var sr,ys;function _s(){if(ys)return sr;ys=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(E,R)=>e(E,"name",{value:R,configurable:!0}),b=(E,R)=>{for(var N in R)e(E,N,{get:R[N],enumerable:!0})},v=(E,R,N,L)=>{if(R&&typeof R=="object"||typeof R=="function")for(let q of o(R))!f.call(E,q)&&q!==N&&e(E,q,{get:()=>R[q],enumerable:!(L=t(R,q))||L.enumerable});return E},F=E=>v(e({},"__esModule",{value:!0}),E),_={};b(_,{bangTok:()=>i,braceLTok:()=>p,braceRTok:()=>d,bracketDLTok:()=>g,bracketDRTok:()=>x,bracketLTok:()=>y,bracketRTok:()=>m,colonTok:()=>l,commaTok:()=>j,dbStarTok:()=>a,dotTok:()=>u,eofTok:()=>I,expandTok:()=>w,ignoreTok:()=>O,nameTok:()=>h,parenLTok:()=>P,parenRTok:()=>S,starTok:()=>s}),sr=F(_);var n=nr();const c=r((E,R)=>T({flag:E},R),"TokenType"),h=c("name",{expectNext(E){return this.includesContext(n.destructorContext)?E===h||E===j||E===m||E===d||E===l:E===u||E===j||E===I||E===m||E===S||E===l||E===w||E===y}}),s=c("*",{expectNext(E){return E===u||E===P||E===y||E===I||E===j||E===S}}),a=c("**",{expectNext(E){return E===u||E===y||E===I||E===j||E===S}}),u=c(".",{expectNext(E){return E===u||E===h||E===g||E===s||E===a||E===y||E===p||E===I},expectPrev(E){return E===u||E===h||E===x||E===s||E===S||E===m||E===w||E===d}}),i=c("!",{expectNext(E){return E===h||E===g}}),l=c(":",{expectNext(E){return this.includesContext(n.destructorContext)?E===h||E===p||E===y:E===h||E===g||E===m}}),p=c("{",{expectNext(E){return E===h},expectPrev(E){return this.includesContext(n.destructorContext)?E===l||E===j||E===y:E===u||E===l||E===P},updateContext(){this.state.context.push(n.braceContext)}}),d=c("}",{expectNext(E){return this.includesContext(n.destructorContext)?E===j||E===d||E===I||E===m:E===u||E===I||E===j},expectPrev(E){return E===h||E===d||E===m},updateContext(){this.state.context.pop(n.braceContext)}}),y=c("[",{expectNext(E){return this.includesContext(n.destructorContext)?E===h||E===y||E===p||E===m:E===h||E===g||E===l||E===y||E===O||E===m},expectPrev(E){return this.includesContext(n.destructorContext)?E===l||E===j||E===y:E===s||E===y||E===u||E===h||E===P||E===j},updateContext(){this.state.context.push(n.bracketContext)}}),m=c("]",{expectNext(E){return this.includesContext(n.destructorContext)?E===j||E===d||E===m||E===I:E===u||E===I||E===j||E===S||E===m},updateContext(){if(!this.includesContext(n.bracketArrayContext)){if(!this.includesContext(n.bracketContext))throw this.unexpect();this.state.context.pop()}}}),g=c("[[",{updateContext(){this.state.context.push(n.bracketDContext)}}),x=c("]]",{updateContext(){if(this.curContext()!==n.bracketDContext)throw this.unexpect();this.state.context.pop()}}),P=c("(",{expectNext(E){return E===h||E===g||E===p||E===i||E===y},expectPrev(E){return E===s},updateContext(){this.state.context.push(n.parenContext)}}),S=c(")",{expectNext(E){return E===u||E===I||E===j||E===S},updateContext(){if(this.curContext()!==n.parenContext)throw this.unexpect();this.state.context.pop()}}),j=c(",",{expectNext(E){return E===h||E===g||E===y||E===p}}),O=c("ignore",{expectNext(E){return E===x},expectPrev(E){return E===g}}),w=c("expandTok",{expectNext(E){return E===u||E===I||E===j||E===S}}),I=c("eof");return sr}var ar,xs;function Bl(){if(xs)return ar;xs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(d,y)=>e(d,"name",{value:y,configurable:!0}),b=(d,y)=>{for(var m in y)e(d,m,{get:y[m],enumerable:!0})},v=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of o(y))!f.call(d,x)&&x!==m&&e(d,x,{get:()=>y[x],enumerable:!(g=t(y,x))||g.enumerable});return d},F=d=>v(e({},"__esModule",{value:!0}),d),_={};b(_,{Tokenizer:()=>p}),ar=F(_);var n=nr(),c=_s();const h=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,s=r((d,y)=>{if(String.fromCharCode)return d.codePointAt(y);const m=d.charCodeAt(y);if(m<=55295||m>=57344)return m;const g=d.charCodeAt(y+1);return(m<<10)+g-56613888},"fullCharCodeAtPos"),a=r(d=>d===42||d===46||d===33||d===91||d===93||d===40||d===41||d===44||d===58||d===126||d===123||d===125,"isRewordCode"),u=r((d,y)=>{const m=new Error(d);return Object.assign(m,y),m},"getError"),i=r((d,y,m)=>{let g="";for(let x=y;x<m;x++){const P=d.charAt(x);P!=="\\"&&(g+=P)}return g},"slice"),l=class{constructor(y){this.input=y,this.state={context:[],type:null,pos:0},this.type_=null}curContext(){return this.state.context[this.state.context.length-1]}includesContext(y){for(let m=this.state.context.length-1;m>=0;m--)if(this.state.context[m]===y)return!0;return!1}unexpect(y){return y=y||this.state.type,u(`Unexpect token "${y.flag}" in ${this.state.pos} char.`,{pos:this.state.pos})}expectNext(y,m){if(y&&y.expectNext&&m&&!y.expectNext.call(this,m))throw u(`Unexpect token "${m.flag}" token should not be behind "${y.flag}" token.(${this.state.pos}th char)`,{pos:this.state.pos})}expectPrev(y,m){if(y&&y.expectPrev&&m&&!y.expectPrev.call(this,m))throw u(`Unexpect token "${y.flag}" should not be behind "${m.flag}"(${this.state.pos}th char).`,{pos:this.state.pos})}match(y){return this.state.type===y}skipSpace(){if(this.curContext()!==n.bracketDContext)e:for(;this.state.pos<this.input.length;){const y=this.input.charCodeAt(this.state.pos);switch(y){case 32:case 160:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos;break;default:if(y>8&&y<14||y>=5760&&h.test(String.fromCharCode(y)))++this.state.pos;else break e}}}next(){if(this.type_=this.state.type,this.input.length<=this.state.pos)return this.finishToken(c.eofTok);this.skipSpace(),this.readToken(this.getCode(),this.state.pos>0?this.getCode(this.state.pos-1):-1/0)}getCode(y=this.state.pos){return s(this.input,y)}eat(y){return this.match(y)?(this.next(),!0):!1}readKeyWord(){let y=this.state.pos,m="";for(;;){const g=this.getCode(),x=this.getCode(this.state.pos-1);if(this.input.length===this.state.pos){m=i(this.input,y,this.state.pos+1);break}if(!a(g)||x===92){if(g===32||g===160||g===10||g===8232||g===8233){m=i(this.input,y,this.state.pos);break}if(g===13&&this.input.charCodeAt(this.state.pos+1)===10){m=i(this.input,y,this.state.pos);break}if(g>8&&g<14||g>=5760&&h.test(String.fromCharCode(g))){m=i(this.input,y,this.state.pos);break}this.state.pos++}else{m=i(this.input,y,this.state.pos);break}}this.finishToken(c.nameTok,m)}readIgnoreString(){let y=this.state.pos,m,g="";for(;;){const x=this.getCode();if(this.state.pos>=this.input.length)break;if((x===91||x===93)&&m===92)this.state.pos++,m="";else if(x===93&&m===93){g=this.input.slice(y,this.state.pos-1).replace(/\\([[\]])/g,"$1"),this.state.pos++;break}else this.state.pos++,m=x}this.finishToken(c.ignoreTok,g),this.finishToken(c.bracketDRTok)}finishToken(y,m){const g=this.state.type;this.state.type=y,m!==void 0&&(this.state.value=m),this.expectNext(g,y),this.expectPrev(y,g),y.updateContext&&y.updateContext.call(this,g)}readToken(y,m){if(m===92)return this.readKeyWord();if(this.input.length<=this.state.pos)this.finishToken(c.eofTok);else if(this.curContext()===n.bracketDContext)this.readIgnoreString();else if(y===123)this.state.pos++,this.finishToken(c.braceLTok);else if(y===125)this.state.pos++,this.finishToken(c.braceRTok);else if(y===42){if(this.state.pos++,this.getCode()===42)return this.state.pos++,this.finishToken(c.dbStarTok);this.finishToken(c.starTok)}else if(y===33)this.state.pos++,this.finishToken(c.bangTok);else if(y===46)this.state.pos++,this.finishToken(c.dotTok);else if(y===91){if(this.state.pos++,this.getCode()===91)return this.state.pos++,this.finishToken(c.bracketDLTok);this.finishToken(c.bracketLTok)}else y===126?(this.state.pos++,this.finishToken(c.expandTok)):y===93?(this.state.pos++,this.finishToken(c.bracketRTok)):y===40?(this.state.pos++,this.finishToken(c.parenLTok)):y===41?(this.state.pos++,this.finishToken(c.parenRTok)):y===44?(this.state.pos++,this.finishToken(c.commaTok)):y===58?(this.state.pos++,this.finishToken(c.colonTok)):this.readKeyWord()}};r(l,"Tokenizer");let p=l;return ar}var ir,gs;function Ll(){if(gs)return ir;gs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(d,y)=>e(d,"name",{value:y,configurable:!0}),b=(d,y)=>{for(var m in y)e(d,m,{get:y[m],enumerable:!0})},v=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of o(y))!f.call(d,x)&&x!==m&&e(d,x,{get:()=>y[x],enumerable:!(g=t(y,x))||g.enumerable});return d},F=d=>v(e({},"__esModule",{value:!0}),d),_={};b(_,{Parser:()=>p}),ir=F(_);var n=nr(),c=hs(),h=yt(),s=Bl(),a=_s();const u=r((d=[],y)=>{const m=d.length,g=r((x=0)=>{const P=x<m-1?g(x+1):y,S=P&&{type:"DotOperator",after:P};return{type:"Identifier",value:d[x],after:S}},"build");return g()},"createTreeBySegments"),i=r((d,y,m)=>{if((0,h.isNumberLike)(d)&&(0,h.isNumberLike)(y)){if(m==="+")return String(Number(d)+Number(y));if(m==="-")return String(Number(d)-Number(y));if(m==="*")return String(Number(d)*Number(y));if(m==="/")return String(Number(d)/Number(y))}else{if(m==="+")return String(d)+String(y);if(m==="-"||m==="*"||m==="/")return"NaN"}return String(Number(y))},"calculate"),l=class extends s.Tokenizer{constructor(y,m){super(y),this.isMatchPattern=!1,this.isWildMatchPattern=!1,this.haveExcludePattern=!1,this.haveRelativePattern=!1,this.base=m}parse(){let y;return this.data={segments:[]},this.eat(a.eofTok)||(this.next(),y=this.parseAtom(this.state.type)),this.data.tree=y,y}append(y,m){y&&m&&(y.after=m)}parseAtom(y){switch(y){case a.braceLTok:case a.bracketLTok:return this.includesContext(n.destructorContext)?y===a.braceLTok?this.parseObjectPattern():this.parseArrayPattern():this.parseDestructorExpression();case a.nameTok:return this.parseIdentifier();case a.expandTok:return this.parseExpandOperator();case a.dbStarTok:case a.starTok:return this.parseWildcardOperator();case a.bracketDLTok:return this.parseIgnoreExpression();case a.dotTok:return this.parseDotOperator()}}pushSegments(y){this.data.segments.push(y)}parseIdentifier(){const y={type:"Identifier",value:this.state.value},m=!this.includesContext(n.destructorContext)&&!this.isMatchPattern&&!this.isWildMatchPattern;if(this.next(),this.includesContext(n.bracketArrayContext)){if(this.state.type!==a.bracketRTok)throw this.unexpect();this.state.context.pop(),this.next()}else m&&this.pushSegments(y.value);if(this.state.type===a.bracketLTok){if(this.next(),this.state.type!==a.nameTok)throw this.unexpect();this.state.context.push(n.bracketArrayContext);let g=!1;/^\d+$/.test(this.state.value)&&(g=!0);const x=this.state.value;this.pushSegments(g?Number(x):x);const P=this.parseAtom(this.state.type);g&&(P.arrayIndex=!0),this.append(y,P)}else this.append(y,this.parseAtom(this.state.type));return y}parseExpandOperator(){const y={type:"ExpandOperator"};return this.isMatchPattern=!0,this.isWildMatchPattern=!0,this.data.segments=[],this.next(),this.append(y,this.parseAtom(this.state.type)),y}parseWildcardOperator(){const y={type:"WildcardOperator"};return this.state.type===a.dbStarTok&&(y.optional=!0),this.isMatchPattern=!0,this.isWildMatchPattern=!0,this.data.segments=[],this.next(),this.state.type===a.parenLTok?y.filter=this.parseGroupExpression(y):this.state.type===a.bracketLTok&&(y.filter=this.parseRangeExpression(y)),this.append(y,this.parseAtom(this.state.type)),y}parseDestructorExpression(){const y={type:"DestructorExpression"};this.state.context.push(n.destructorContext);const m=this.state.pos-1;y.value=this.state.type===a.braceLTok?this.parseObjectPattern():this.parseArrayPattern();const g=this.state.pos;return this.state.context.pop(),y.source=this.input.substring(m,g).replace(/\[\s*([+\-*/])?\s*([^,\]\s]*)\s*\]/,(x,P,S)=>this.relative!==void 0?P?S?i(this.relative,S,P):i(this.relative,1,P):S?i(this.relative,S,"+"):String(this.relative):x).replace(/\s*\.\s*/g,"").replace(/\s*/g,""),this.relative===void 0&&(0,c.setDestructor)(y.source,(0,c.parseDestructorRules)(y)),this.relative=void 0,this.pushSegments(y.source),this.next(),this.append(y,this.parseAtom(this.state.type)),y}parseArrayPattern(){const y={type:"ArrayPattern",elements:[]};return this.next(),y.elements=this.parseArrayPatternElements(),y}parseArrayPatternElements(){const y=[];for(;this.state.type!==a.bracketRTok&&this.state.type!==a.eofTok;){if(y.push(this.parseAtom(this.state.type)),this.state.type===a.bracketRTok)return this.includesContext(n.destructorContext)&&this.next(),y;this.next()}return y}parseObjectPattern(){const y={type:"ObjectPattern",properties:[]};return this.next(),y.properties=this.parseObjectProperties(),y}parseObjectProperties(){const y=[];for(;this.state.type!==a.braceRTok&&this.state.type!==a.eofTok;){const m={type:"ObjectPatternProperty",key:this.parseAtom(this.state.type)};if(y.push(m),this.state.type===a.colonTok&&(this.next(),m.value=this.parseAtom(this.state.type)),this.state.type===a.braceRTok)return this.includesContext(n.destructorContext)&&this.next(),y;this.next()}return y}parseDotOperator(){const y={type:"DotOperator"};if(!this.type_&&this.base){if(this.base.isMatchPattern)throw new Error("Base path must be an absolute path.");for(this.data.segments=this.base.toArr();this.state.type===a.dotTok;)this.relative=this.data.segments.pop(),this.haveRelativePattern=!0,this.next();return u(this.data.segments.slice(),this.parseAtom(this.state.type))}else this.next();return this.append(y,this.parseAtom(this.state.type)),y}parseIgnoreExpression(){this.next();const y=String(this.state.value).replace(/\s*/g,""),m={type:"IgnoreExpression",value:y};return this.pushSegments(y),this.next(),this.append(m,this.parseAtom(this.state.type)),this.next(),m}parseGroupExpression(y){const m={type:"GroupExpression",value:[]};this.isMatchPattern=!0,this.data.segments=[],this.next();e:for(;;)switch(this.state.type){case a.commaTok:this.next();break;case a.bangTok:m.isExclude=!0,this.haveExcludePattern=!0,this.next();break;case a.eofTok:break e;case a.parenRTok:break e;default:m.value.push(this.parseAtom(this.state.type))}return this.next(),this.append(y,this.parseAtom(this.state.type)),m}parseRangeExpression(y){const m={type:"RangeExpression"};this.next(),this.isMatchPattern=!0,this.data.segments=[];let g=!1,x=!1;e:for(;;)switch(this.state.type){case a.colonTok:x=!0,g=!0,this.next();break;case a.bracketRTok:!x&&!m.end&&(m.end=m.start);break e;case a.commaTok:throw this.unexpect();case a.eofTok:break e;default:g?m.end=this.parseAtom(this.state.type):m.start=this.parseAtom(this.state.type)}return this.next(),this.append(y,this.parseAtom(this.state.type)),m}};r(l,"Parser");let p=l;return ir}var cr,Fs;function Ul(){if(Fs)return cr;Fs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(I,E)=>e(I,"name",{value:E,configurable:!0}),b=(I,E)=>{for(var R in E)e(I,R,{get:E[R],enumerable:!0})},v=(I,E,R,N)=>{if(E&&typeof E=="object"||typeof E=="function")for(let L of o(E))!f.call(I,L)&&L!==R&&e(I,L,{get:()=>E[L],enumerable:!(N=t(E,L))||N.enumerable});return I},F=I=>v(e({},"__esModule",{value:!0}),I),_={};b(_,{Path:()=>w}),cr=F(_);var n=hs(),c=Vl(),h=Ll(),s=yt();const a=new Map,u=Symbol("PATH_MATCHER"),i=r(I=>I!=null,"isValid"),l=r(I=>I.indexOf("*")===-1&&I.indexOf("~")===-1&&I.indexOf("[")===-1&&I.indexOf("]")===-1&&I.indexOf(",")===-1&&I.indexOf(":")===-1&&I.indexOf(" ")===-1&&I[0]!==".","isSimplePath"),p=r(I=>typeof I=="object"||typeof I=="function","isAssignable"),d=r(I=>(0,s.isStr)(I)?/^\d+$/.test(I):(0,s.isNum)(I),"isNumberIndex"),y=r((I,E)=>{for(let R=0;R<I.length;R++){const N=I[R],L=(0,n.getDestructor)(N);if(L){E=(0,n.getInByDestructor)(E,L,{setIn:m,getIn:y});break}else{if(!i(E))return;E=E[N]}}return E},"getIn"),m=r((I,E,R)=>{for(let N=0;N<I.length;N++){const L=I[N],q=(0,n.getDestructor)(L);if(q){(0,n.setInByDestructor)(E,q,R,{setIn:m,getIn:y});break}else{if(!i(E)||!p(E)||(0,s.isArr)(E)&&!d(L))return;if(!i(E[L])){if(R===void 0){E[L]===null&&(E[L]=R);return}N<I.length-1&&(E[L]=(0,s.isNum)(I[N+1])?[]:{})}N===I.length-1&&(E[L]=R),E=E[L]}}},"setIn"),g=r((I,E)=>{for(let R=0;R<I.length;R++){const N=I[R],L=(0,n.getDestructor)(N);if(L){(0,n.deleteInByDestructor)(E,L,{setIn:m,getIn:y,deleteIn:g});break}else{if(R===I.length-1&&i(E)){delete E[N];return}if(!i(E)||!p(E)||(E=E[N],!(0,s.isObj)(E)))return}}},"deleteIn"),x=Object.prototype.hasOwnProperty,P=r((I,E,R)=>{R instanceof w&&(R=R.length);for(let N=R;N<I.length;N++){const L=I[N],q=(0,n.getDestructor)(L);if(q)return(0,n.existInByDestructor)(E,q,R,{setIn:m,getIn:y,deleteIn:g,existIn:P});if(N===I.length-1)return x.call(E,L);if(!i(E)||!p(E)||(E=E[L],!(0,s.isObj)(E)))return!1}},"existIn"),S=r((I,E)=>{if(I instanceof w)return{entire:I.entire,segments:I.segments.slice(),isRegExp:!1,haveRelativePattern:I.haveRelativePattern,isWildMatchPattern:I.isWildMatchPattern,isMatchPattern:I.isMatchPattern,haveExcludePattern:I.haveExcludePattern,tree:I.tree};if((0,s.isStr)(I)){if(!I)return{entire:"",segments:[],isRegExp:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1};if(l(I))return{entire:I,segments:I.split("."),isRegExp:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1};const R=new h.Parser(I,w.parse(E)),N=R.parse();if(R.isMatchPattern)return{entire:I,segments:[],isRegExp:!1,haveRelativePattern:!1,isWildMatchPattern:R.isWildMatchPattern,haveExcludePattern:R.haveExcludePattern,isMatchPattern:!0,tree:N};{const L=R.data.segments;return{entire:L.join("."),segments:L,tree:N,isRegExp:!1,haveRelativePattern:R.haveRelativePattern,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1}}}else return(0,s.isFn)(I)&&I[u]?S(I.path):(0,s.isArr)(I)?{entire:I.join("."),segments:I.reduce((R,N)=>R.concat(j(N)),[]),isRegExp:!1,haveRelativePattern:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1}:(0,s.isRegExp)(I)?{entire:I,segments:[],isRegExp:!0,haveRelativePattern:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!0}:{entire:"",isRegExp:!1,segments:I!==void 0?[I]:[],haveRelativePattern:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1}},"parse"),j=r(I=>{if((0,s.isStr)(I)){I=I.replace(/\s*/g,"");try{const{segments:E,isMatchPattern:R}=S(I);return R?I:E}catch(E){return I}}else if(I instanceof w)return I.segments;return I},"parseString"),O=class Se{constructor(E,R){this.concat=r((...B)=>{if(this.isMatchPattern||this.isRegExp)throw new Error(`${this.entire} cannot be concat`);const U=new Se("");return U.segments=this.segments.concat(...B.map(J=>j(J))),U.entire=U.segments.join("."),U},"concat"),this.slice=r((B,U)=>{if(this.isMatchPattern||this.isRegExp)throw new Error(`${this.entire} cannot be slice`);const J=new Se("");return J.segments=this.segments.slice(B,U),J.entire=J.segments.join("."),J},"slice"),this.push=r((...B)=>this.concat(...B),"push"),this.pop=r(()=>{if(this.isMatchPattern||this.isRegExp)throw new Error(`${this.entire} cannot be pop`);return new Se(this.segments.slice(0,this.segments.length-1))},"pop"),this.splice=r((B,U,...J)=>{if(this.isMatchPattern||this.isRegExp)throw new Error(`${this.entire} cannot be splice`);J=J.reduce((ee,ne)=>ee.concat(j(ne)),[]);const Q=this.segments.slice();return Q.splice(B,U,...J),new Se(Q)},"splice"),this.forEach=r(B=>{if(this.isMatchPattern||this.isRegExp)throw new Error(`${this.entire} cannot be each`);this.segments.forEach(B)},"forEach"),this.map=r(B=>{if(this.isMatchPattern||this.isRegExp)throw new Error(`${this.entire} cannot be map`);return this.segments.map(B)},"map"),this.reduce=r((B,U)=>{if(this.isMatchPattern||this.isRegExp)throw new Error(`${this.entire} cannot be reduce`);return this.segments.reduce(B,U)},"reduce"),this.parent=r(()=>this.slice(0,this.length-1),"parent"),this.includes=r(B=>{const{entire:U,segments:J,isMatchPattern:Q}=Se.parse(B),ee=this.includesCache.get(U);if(ee!==void 0)return ee;const ne=r(pe=>(this.includesCache.set(U,pe),pe),"cacheWith");if(this.isMatchPattern){if(Q)throw new Error(`${this.entire} cannot be used to match ${U}`);return ne(this.match(J))}if(Q)throw new Error(`${this.entire} cannot be used to match ${U}`);if(J.length>this.segments.length)return ne(!1);for(let pe=0;pe<J.length;pe++)if(!(0,s.isEqual)(String(J[pe]),String(this.segments[pe])))return ne(!1);return ne(!0)},"includes"),this.transform=r((B,U)=>{if(!(0,s.isFn)(U))return"";if(this.isMatchPattern)throw new Error(`${this.entire} cannot be transformed`);const J=new RegExp(B),Q=this.segments.filter(ee=>J.test(ee));return U(...Q)},"transform"),this.match=r(B=>{var U,J;const Q=Se.parse(B),ee=this.matchCache.get(Q.entire);if(ee!==void 0)return ee.record&&ee.record.score!==void 0&&(this.matchScore=ee.record.score),ee.matched;const ne=r(pe=>(this.matchCache.set(Q.entire,pe),pe),"cacheWith");if(Q.isMatchPattern){if(this.isMatchPattern)throw new Error(`${Q.entire} cannot match ${this.entire}`);return this.matchScore=0,ne(Q.match(this.segments))}else if(this.isMatchPattern){if(this.isRegExp)try{return(J=(U=this.entire)==null?void 0:U.test)==null?void 0:J.call(U,Q.entire)}finally{this.entire.lastIndex=0}const pe={score:0},Ce=ne(new c.Matcher(this.tree,pe).match(Q.segments));return this.matchScore=pe.score,Ce.matched}else{const pe={score:0},Ce=ne(c.Matcher.matchSegments(this.segments,Q.segments,pe));return this.matchScore=pe.score,Ce.matched}},"match"),this.matchAliasGroup=r((B,U)=>{const J=Se.parse(B),Q=Se.parse(U),ee=this.match(J),ne=this.matchScore,pe=this.match(Q),Ce=this.matchScore;return this.haveExcludePattern?ne>=Ce?ee:pe:ee||pe},"matchAliasGroup"),this.existIn=r((B,U=0)=>P(this.segments,B,U),"existIn"),this.getIn=r(B=>y(this.segments,B),"getIn"),this.setIn=r((B,U)=>(m(this.segments,B,U),B),"setIn"),this.deleteIn=r(B=>(g(this.segments,B),B),"deleteIn"),this.ensureIn=r((B,U)=>{const J=this.getIn(B);return J===void 0?(this.setIn(B,U),this.getIn(B)):J},"ensureIn");const{tree:N,segments:L,entire:q,isRegExp:te,isMatchPattern:Y,isWildMatchPattern:re,haveRelativePattern:ae,haveExcludePattern:z}=S(E,R);this.entire=q,this.segments=L,this.isMatchPattern=Y,this.isWildMatchPattern=re,this.haveRelativePattern=ae,this.isRegExp=te,this.haveExcludePattern=z,this.tree=N,this.matchCache=new Map,this.includesCache=new Map}toString(){var E;return(E=this.entire)==null?void 0:E.toString()}toArr(){var E;return(E=this.segments)==null?void 0:E.slice()}get length(){return this.segments.length}static match(E){const R=Se.parse(E),N=r(L=>R.match(L),"matcher");return N[u]=!0,N.path=R,N}static isPathPattern(E){return!!((0,s.isStr)(E)||(0,s.isArr)(E)||(0,s.isRegExp)(E)||(0,s.isFn)(E)&&E[u])}static transform(E,R,N){return Se.parse(E).transform(R,N)}static parse(E="",R){if(E instanceof Se){const N=a.get(E.entire);return N||(a.set(E.entire,E),E)}else{if(E&&E[u])return Se.parse(E.path);{const N=R?Se.parse(R):"",L=`${E}:${N}`,q=a.get(L);return q||(E=new Se(E,R),a.set(L,E),E)}}}};r(O,"Path"),O.getIn=r((I,E)=>O.parse(E).getIn(I),"getIn"),O.setIn=r((I,E,R)=>O.parse(E).setIn(I,R),"setIn"),O.deleteIn=r((I,E)=>O.parse(E).deleteIn(I),"deleteIn"),O.existIn=r((I,E,R)=>O.parse(E).existIn(I,R),"existIn"),O.ensureIn=r((I,E,R)=>O.parse(E).ensureIn(I,R),"ensureIn");let w=O;return cr}var lr,Ss;function Gl(){if(Ss)return lr;Ss=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(n,c)=>{for(var h in c)e(n,h,{get:c[h],enumerable:!0})},b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of o(c))!f.call(n,a)&&a!==h&&e(n,a,{get:()=>c[a],enumerable:!(s=t(c,a))||s.enumerable});return n},v=n=>b(e({},"__esModule",{value:!0}),n),F={};r(F,{FormPath:()=>_.Path}),lr=v(F);var _=Ul();return lr}var ur,Ps;function Hl(){if(Ps)return ur;Ps=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{deprecate:()=>h}),ur=F(_);var n=Le();const c={};function h(s,a,u){if((0,n.isFn)(s))return function(i,l,p,d,y){return h(a,u),s.apply(this,arguments)};(0,n.isStr)(s)&&!c[s]&&(c[s]=!0,console.warn(new Error(`${s} has been deprecated. Do not continue to use this api.${a||""}`)))}return r(h,"deprecate"),ur}var pr,Os;function zl(){if(Os)return pr;Os=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{Subscribable:()=>s}),pr=F(_);var n=Ut(),c=Le();const h=class{constructor(){this.subscribers={index:0},this.subscribe=r(u=>{if((0,c.isFn)(u)){const i=this.subscribers.index+1;return this.subscribers[i]=u,this.subscribers.index++,i}},"subscribe"),this.unsubscribe=r(u=>{this.subscribers[u]?delete this.subscribers[u]:u||(this.subscribers={index:0})},"unsubscribe"),this.notify=r((u,i)=>{if(this.subscription&&this.subscription&&(0,c.isFn)(this.subscription.notify)&&this.subscription.notify.call(this,u)===!1||i)return;const l=r(p=>this.subscription&&(0,c.isFn)(this.subscription.filter)?this.subscription.filter.call(this,p):p,"filter");(0,n.each)(this.subscribers,p=>{(0,c.isFn)(p)&&p(l(u))})},"notify")}};r(h,"Subscribable");let s=h;return pr}var dr,Cs;function Jl(){if(Cs)return dr;Cs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(c,h)=>e(c,"name",{value:h,configurable:!0}),b=(c,h)=>{for(var s in h)e(c,s,{get:h[s],enumerable:!0})},v=(c,h,s,a)=>{if(h&&typeof h=="object"||typeof h=="function")for(let u of o(h))!f.call(c,u)&&u!==s&&e(c,u,{get:()=>h[u],enumerable:!(a=t(h,u))||a.enumerable});return c},F=c=>v(e({},"__esModule",{value:!0}),c),_={};b(_,{applyMiddleware:()=>n}),dr=F(_);const n=r((c,h=[])=>{const s=r((a,u)=>{const i=a;return Promise.resolve(u[0](a,l=>s(l!=null?l:i,u.slice(1))))},"compose");return new Promise((a,u)=>{s(c,h.concat(i=>{a(i)})).catch(u)})},"applyMiddleware");return dr}var mr,ws;function Wl(){if(ws)return mr;ws=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(O,w)=>e(O,"name",{value:w,configurable:!0}),b=(O,w)=>{for(var I in w)e(O,I,{get:w[I],enumerable:!0})},v=(O,w,I,E)=>{if(w&&typeof w=="object"||typeof w=="function")for(let R of o(w))!f.call(O,R)&&R!==I&&e(O,R,{get:()=>w[R],enumerable:!(E=t(w,R))||E.enumerable});return O},F=O=>v(e({},"__esModule",{value:!0}),O),_={};b(_,{lazyMerge:()=>S,merge:()=>j}),mr=F(_);var n=Le(),c=qt();function h(O){return s(O)&&!a(O)}r(h,"defaultIsMergeableObject");function s(O){return!!O&&typeof O=="object"}r(s,"isNonNullObject");function a(O){return"$$typeof"in O&&"_owner"in O||O._isAMomentObject||O._isJSONSchemaObject||(0,n.isFn)(O.toJS)||(0,n.isFn)(O.toJSON)?!0:!(0,n.isPlainObj)(O)}r(a,"isSpecial");function u(O){return Array.isArray(O)?[]:{}}r(u,"emptyTarget");function i(O,w){var I;return w.clone!==!1&&((I=w.isMergeableObject)!=null&&I.call(w,O))?P(u(O),O,w):O}r(i,"cloneUnlessOtherwiseSpecified");function l(O,w,I){return O.concat(w).map(function(E){return i(E,I)})}r(l,"defaultArrayMerge");function p(O,w){if(!w.customMerge)return P;const I=w.customMerge(O);return typeof I=="function"?I:P}r(p,"getMergeFunction");function d(O){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(O).filter(function(w){return O.propertyIsEnumerable(w)}):[]}r(d,"getEnumerableOwnPropertySymbols");function y(O){return(0,c.isValid)(O)?Object.keys(O).concat(d(O)):[]}r(y,"getKeys");function m(O,w){try{return w in O}catch(I){return!1}}r(m,"propertyIsOnObject");function g(O,w){return m(O,w)&&!(Object.hasOwnProperty.call(O,w)&&Object.propertyIsEnumerable.call(O,w))}r(g,"propertyIsUnsafe");function x(O,w,I){const E=I.assign?O||{}:{};return I.isMergeableObject(O)?(I.assign||y(O).forEach(function(R){E[R]=i(O[R],I)}),y(w).forEach(function(R){g(O,R)||((0,c.isEmpty)(O[R])?E[R]=w[R]:m(O,R)&&I.isMergeableObject(w[R])?E[R]=p(R,I)(O[R],w[R],I):E[R]=i(w[R],I))}),E):O}r(x,"mergeObject");function P(O,w,I){I=I||{},I.arrayMerge=I.arrayMerge||l,I.isMergeableObject=I.isMergeableObject||h,I.cloneUnlessOtherwiseSpecified=i;const E=Array.isArray(w),R=Array.isArray(O);return E===R?E?I.arrayMerge(O,w,I):x(O,w,I):i(w,I)}r(P,"deepmerge");const S=r((O,...w)=>{const I=r((E,R)=>{if(!(0,c.isValid)(R))return E;if(!(0,c.isValid)(E))return R;const N=typeof E=="object",L=typeof R=="object",q=typeof E=="function",te=typeof R=="function";if(!N&&!q)return R;if(!L&&!te)return E;const Y=r(()=>q?E():E,"getTarget"),re=r(()=>te?R():R,"getSource"),ae=r((ee,ne,pe)=>{const Ce=re(),rt=Y();return ne in Ce?Ce[ne]=pe:ne in rt?rt[ne]=pe:Ce[ne]=pe,!0},"set"),z=r((ee,ne)=>{const pe=re();return ne in pe?pe[ne]:Y()[ne]},"get"),B=r(()=>{const ee=re(),ne=Y(),pe=Object.keys(ne);for(const Ce in ee)Ce in ne||pe.push(Ce);return pe},"ownKeys"),U=r((ee,ne)=>({value:z(ee,ne),enumerable:!0,configurable:!0}),"getOwnPropertyDescriptor"),J=r((ee,ne)=>ne in re()||ne in Y(),"has"),Q=r(()=>Object.getPrototypeOf({}),"getPrototypeOf");return new Proxy(Object.create(null),{set:ae,get:z,ownKeys:B,getPrototypeOf:Q,getOwnPropertyDescriptor:U,has:J})},"_lazyMerge");return w.reduce((E,R)=>I(E,R),O)},"lazyMerge"),j=P;return mr}var fr,Es;function Yl(){if(Es)return fr;Es=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{defaults:()=>u}),fr=F(_);var n=Ut(),c=Le(),h=qt();const s=r(i=>{if(i!=null&&i._owner&&(i!=null&&i.$$typeof)||i!=null&&i._isAMomentObject||i!=null&&i._isJSONSchemaObject||i!=null&&i.toJS||i!=null&&i.toJSON)return!0},"isUnNormalObject"),a=r(i=>s(i)?!1:typeof i=="object","isEnumerableObject"),u=r((i,l)=>{if((0,c.getType)(i)!==(0,c.getType)(l)||!a(i)||!a(l))return(0,h.isEmpty)(l)?i:l;{const p=(0,c.isArr)(i)?[]:(0,c.isPlainObj)(i)?{}:i;return(0,n.each)(l,(d,y)=>{p[y]=u(i[y],d)}),(0,n.each)(i,(d,y)=>{(0,h.isValid)(p[y])||(p[y]=d)}),p}},"defaults");return fr}var hr,js;function ql(){if(js)return hr;js=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{uid:()=>h}),hr=F(_);let n=36,c="";for(;n--;)c+=n.toString(36);function h(s){let a="",u=s||11;for(;u--;)a+=c[Math.random()*36|0];return a}return r(h,"uid"),hr}var Is;function ue(){return Is||(Is=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Ut(),e.exports),v(_,vl(),e.exports),v(_,Le(),e.exports),v(_,yl(),e.exports),v(_,qt(),e.exports),v(_,kl(),e.exports),v(_,Tl(),e.exports),v(_,$n(),e.exports),v(_,Gl(),e.exports),v(_,Hl(),e.exports),v(_,zl(),e.exports),v(_,Jl(),e.exports),v(_,Wl(),e.exports),v(_,zt(),e.exports),v(_,Yl(),e.exports),v(_,ql(),e.exports)}(Vt)),Vt.exports}var br={exports:{}},vr,As;function Ue(){if(As)return vr;As=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(m,g)=>e(m,"name",{value:g,configurable:!0}),b=(m,g)=>{for(var x in g)e(m,x,{get:g[x],enumerable:!0})},v=(m,g,x,P)=>{if(g&&typeof g=="object"||typeof g=="function")for(let S of o(g))!f.call(m,S)&&S!==x&&e(m,S,{get:()=>g[S],enumerable:!(P=t(g,S))||P.enumerable});return m},F=m=>v(e({},"__esModule",{value:!0}),m),_={};b(_,{isArr:()=>i,isCollectionType:()=>d,isFn:()=>u,isMap:()=>c,isNormalType:()=>y,isPlainObj:()=>l,isSet:()=>h,isValid:()=>p,isWeakMap:()=>s,isWeakSet:()=>a}),vr=F(_);const n=Object.prototype.toString,c=r(m=>m&&m instanceof Map,"isMap"),h=r(m=>m&&m instanceof Set,"isSet"),s=r(m=>m&&m instanceof WeakMap,"isWeakMap"),a=r(m=>m&&m instanceof WeakSet,"isWeakSet"),u=r(m=>typeof m=="function","isFn"),i=Array.isArray,l=r(m=>n.call(m)==="[object Object]","isPlainObj"),p=r(m=>m!=null,"isValid"),d=r(m=>c(m)||s(m)||h(m)||a(m),"isCollectionType"),y=r(m=>l(m)||i(m),"isNormalType");return vr}var yr,Ds;function _r(){if(Ds)return yr;Ds=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{ArraySet:()=>h,toArray:()=>n}),yr=F(_);const n=r(s=>Array.isArray(s)?s:s!=null?[s]:[],"toArray"),c=class{constructor(a=[]){this.forEachIndex=0,this.value=a}add(a){this.has(a)||this.value.push(a)}has(a){return this.value.indexOf(a)>-1}delete(a){const u=this.value.length;if(u===0)return;if(u===1&&this.value[0]===a){this.value=[];return}const i=this.value.indexOf(a);i>-1&&(this.value.splice(i,1),i<=this.forEachIndex&&(this.forEachIndex-=1))}forEach(a){if(this.value.length!==0)for(this.forEachIndex=0;this.forEachIndex<this.value.length;this.forEachIndex++)a(this.value[this.forEachIndex])}batchDelete(a){if(this.value.length!==0)for(this.forEachIndex=0;this.forEachIndex<this.value.length;this.forEachIndex++){const u=this.value[this.forEachIndex];this.value.splice(this.forEachIndex,1),this.forEachIndex--,a(u)}}clear(){this.value.length=0}};r(c,"ArraySet");let h=c;return yr}var xr,Ms;function Pe(){if(Ms)return xr;Ms=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(O,w)=>{for(var I in w)e(O,I,{get:w[I],enumerable:!0})},b=(O,w,I,E)=>{if(w&&typeof w=="object"||typeof w=="function")for(let R of o(w))!f.call(O,R)&&R!==I&&e(O,R,{get:()=>w[R],enumerable:!(E=t(w,R))||E.enumerable});return O},v=O=>b(e({},"__esModule",{value:!0}),O),F={};r(F,{BatchCount:()=>i,BatchEndpoints:()=>g,BatchScope:()=>p,DependencyCollected:()=>d,MakeObModelSymbol:()=>P,ObModelNodeSymbol:()=>j,ObModelSymbol:()=>S,ObserverListeners:()=>x,PendingReactions:()=>y,PendingScopeReactions:()=>m,ProxyRaw:()=>n,RawNode:()=>s,RawProxy:()=>c,RawReactionsMap:()=>a,RawShallowProxy:()=>h,ReactionStack:()=>u,UntrackCount:()=>l}),xr=v(F);var _=_r();const n=new WeakMap,c=new WeakMap,h=new WeakMap,s=new WeakMap,a=new WeakMap,u=[],i={value:0},l={value:0},p={value:!1},d={value:!1},y=new _.ArraySet,m=new _.ArraySet,g=new _.ArraySet,x=new _.ArraySet,P=Symbol("MakeObModelSymbol"),S=Symbol("ObModelSymbol"),j=Symbol("ObModelNodeSymbol");return xr}var gr,Rs;function We(){if(Rs)return gr;Rs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(d,y)=>e(d,"name",{value:y,configurable:!0}),b=(d,y)=>{for(var m in y)e(d,m,{get:y[m],enumerable:!0})},v=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of o(y))!f.call(d,x)&&x!==m&&e(d,x,{get:()=>y[x],enumerable:!(g=t(y,x))||g.enumerable});return d},F=d=>v(e({},"__esModule",{value:!0}),d),_={};b(_,{DataChange:()=>s,DataNode:()=>u,buildDataTree:()=>p,getDataNode:()=>i,setDataNode:()=>l}),gr=F(_);var n=Pe(),c=tt();const h=class{constructor(y,m){this.node=m,this.key=y.key,this.type=y.type,this.object=y.target,this.value=y.value,this.oldValue=y.oldValue}get path(){return this.node.path.concat(this.key)}};r(h,"DataChange");let s=h;const a=class{constructor(y,m,g){this.target=y,this.key=m,this.value=g}get path(){return this.parent?this.parent.path.concat(this.key):this.key?[this.key]:[]}get targetRaw(){return(0,c.raw)(this.target)}get parent(){if(this.target)return i(this.targetRaw)}isEqual(y){return this.key?y.targetRaw===this.targetRaw&&y.key===this.key:y.value===this.value}contains(y){if(y===this)return!0;let m=y.parent;for(;m;){if(this.isEqual(m))return!0;m=m.parent}return!1}};r(a,"DataNode");let u=a;const i=r(d=>d!=null&&d[n.ObModelNodeSymbol]?d[n.ObModelNodeSymbol]:n.RawNode.get(d),"getDataNode"),l=r((d,y)=>{if(d!=null&&d[n.ObModelSymbol]){d[n.ObModelNodeSymbol]=y;return}n.RawNode.set(d,y)},"setDataNode"),p=r((d,y,m)=>{const g=(0,c.raw)(m),x=i(g);if(x)return x;l(g,new u(d,y,m))},"buildDataTree");return gr}var Fr,Ns;function tt(){if(Ns)return Fr;Ns=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(S,j)=>e(S,"name",{value:j,configurable:!0}),b=(S,j)=>{for(var O in j)e(S,O,{get:j[O],enumerable:!0})},v=(S,j,O,w)=>{if(j&&typeof j=="object"||typeof j=="function")for(let I of o(j))!f.call(S,I)&&I!==O&&e(S,I,{get:()=>j[I],enumerable:!(w=t(j,I))||w.enumerable});return S},F=S=>v(e({},"__esModule",{value:!0}),S),_={};b(_,{contains:()=>x,hasCollected:()=>P,isAnnotation:()=>l,isObservable:()=>i,isSupportObservable:()=>p,markObservable:()=>y,markRaw:()=>d,raw:()=>m,toJS:()=>g}),Fr=F(_);var n=Ue(),c=Pe(),h=We();const s=Symbol("RAW_TYPE"),a=Symbol("OBSERVABLE_TYPE"),u=Object.prototype.hasOwnProperty,i=r(S=>c.ProxyRaw.has(S)||!!(S!=null&&S[c.ObModelSymbol]),"isObservable"),l=r(S=>S&&!!S[c.MakeObModelSymbol],"isAnnotation"),p=r(S=>(0,n.isValid)(S)?(0,n.isArr)(S)?!0:(0,n.isPlainObj)(S)?S[s]?!1:S[a]?!0:!("$$typeof"in S&&"_owner"in S||S._isAMomentObject||S._isJSONSchemaObject||(0,n.isFn)(S.toJS)||(0,n.isFn)(S.toJSON)):!!((0,n.isMap)(S)||(0,n.isWeakMap)(S)||(0,n.isSet)(S)||(0,n.isWeakSet)(S)):!1,"isSupportObservable"),d=r(S=>{if(S)return(0,n.isFn)(S)?S.prototype[s]=!0:S[s]=!0,S},"markRaw"),y=r(S=>{if(S)return(0,n.isFn)(S)?S.prototype[a]=!0:S[a]=!0,S},"markObservable"),m=r(S=>S!=null&&S[c.ObModelSymbol]?S[c.ObModelSymbol]:c.ProxyRaw.get(S)||S,"raw"),g=r(S=>{const j=new WeakSet,O=r(w=>{if(j.has(w)||w&&w[s])return w;if((0,n.isArr)(w)){if(i(w)){j.add(w);const I=[];return w.forEach(E=>{I.push(O(E))}),j.delete(w),I}}else if((0,n.isPlainObj)(w)&&i(w)){j.add(w);const I={};for(const E in w)u.call(w,E)&&(I[E]=O(w[E]));return j.delete(w),I}return w},"_toJS");return O(S)},"toJS"),x=r((S,j)=>{const O=m(S),w=m(j);if(O===w)return!0;const I=(0,h.getDataNode)(O),E=(0,h.getDataNode)(w);return!I||!E?!1:I.contains(E)},"contains"),P=r(S=>(c.DependencyCollected.value=!1,S==null||S(),c.DependencyCollected.value),"hasCollected");return Fr}var Sr,ks;function Te(){if(ks)return Sr;ks=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(z,B)=>e(z,"name",{value:B,configurable:!0}),b=(z,B)=>{for(var U in B)e(z,U,{get:B[U],enumerable:!0})},v=(z,B,U,J)=>{if(B&&typeof B=="object"||typeof B=="function")for(let Q of o(B))!f.call(z,Q)&&Q!==U&&e(z,Q,{get:()=>B[Q],enumerable:!(J=t(B,Q))||J.enumerable});return z},F=z=>v(e({},"__esModule",{value:!0}),z),_={};b(_,{batchEnd:()=>O,batchScopeEnd:()=>I,batchScopeStart:()=>w,batchStart:()=>j,bindComputedReactions:()=>y,bindTargetKeyWithCurrentReaction:()=>d,disposeBindingReactions:()=>S,disposeEffects:()=>ae,executeBatchEndpoints:()=>Y,executePendingReactions:()=>te,hasDepsChange:()=>re,hasRunningReaction:()=>g,isBatching:()=>N,isScopeBatching:()=>L,isUntracking:()=>q,releaseBindingReactions:()=>x,runReactionsFromTargetKey:()=>m,suspendComputedReactions:()=>P,untrackEnd:()=>R,untrackStart:()=>E}),Sr=F(_);var n=_r(),c=Ue(),h=Pe();const s=Symbol("iteration key"),a=r((z,B,U)=>{const J=h.RawReactionsMap.get(z);if(J){const Q=J.get(B);return Q?Q.add(U):J.set(B,new n.ArraySet([U])),J}else{const Q=new Map([[B,new n.ArraySet([U])]]);return h.RawReactionsMap.set(z,Q),Q}},"addRawReactionsMap"),u=r((z,B)=>{const U=z._reactionsSet;return U?U.add(B):z._reactionsSet=new n.ArraySet([B]),U},"addReactionsMapToReaction"),i=r((z,B)=>{const U=h.RawReactionsMap.get(z),J=[];if(U){const Q=U.get(B);Q&&Q.forEach(ee=>{J.indexOf(ee)===-1&&J.push(ee)})}return J},"getReactionsFromTargetKey"),l=r((z,B)=>{const U=i(z,B),J=h.UntrackCount.value;h.UntrackCount.value=0;for(let Q=0,ee=U.length;Q<ee;Q++){const ne=U[Q];ne._isComputed?ne._scheduler(ne):L()?h.PendingScopeReactions.add(ne):N()?h.PendingReactions.add(ne):(0,c.isFn)(ne._scheduler)?ne._scheduler(ne):ne()}h.UntrackCount.value=J},"runReactions"),p=r(z=>{h.ObserverListeners.forEach(B=>B(z))},"notifyObservers"),d=r(z=>{let{key:B,type:U,target:J}=z;U==="iterate"&&(B=s);const Q=h.ReactionStack.length;if(Q===0)return;const ee=h.ReactionStack[Q-1];q()||ee&&(h.DependencyCollected.value=!0,u(ee,a(J,B,ee)))},"bindTargetKeyWithCurrentReaction"),y=r(z=>{if((0,c.isFn)(z)){const B=h.ReactionStack[h.ReactionStack.length-1];if(B){const U=B._computesSet;U?U.add(z):B._computesSet=new n.ArraySet([z])}}},"bindComputedReactions"),m=r(z=>{let{key:B,type:U,target:J,oldTarget:Q}=z;if(j(),p(z),U==="clear"?Q.forEach((ee,ne)=>{l(J,ne)}):l(J,B),U==="add"||U==="delete"||U==="clear"){const ee=Array.isArray(J)?"length":s;l(J,ee)}O()},"runReactionsFromTargetKey"),g=r(()=>h.ReactionStack.length>0,"hasRunningReaction"),x=r(z=>{var B;(B=z._reactionsSet)==null||B.forEach(U=>{U.forEach(J=>{J.delete(z)})}),h.PendingReactions.delete(z),h.PendingScopeReactions.delete(z),delete z._reactionsSet},"releaseBindingReactions"),P=r(z=>{var B;(B=z._computesSet)==null||B.forEach(U=>{i(U._context,U._property).length===0&&(S(U),U._dirty=!0)})},"suspendComputedReactions"),S=r(z=>{z._disposed=!0,x(z),P(z)},"disposeBindingReactions"),j=r(()=>{h.BatchCount.value++},"batchStart"),O=r(()=>{if(h.BatchCount.value--,h.BatchCount.value===0){const z=h.UntrackCount.value;h.UntrackCount.value=0,te(),Y(),h.UntrackCount.value=z}},"batchEnd"),w=r(()=>{h.BatchScope.value=!0},"batchScopeStart"),I=r(()=>{const z=h.UntrackCount.value;h.BatchScope.value=!1,h.UntrackCount.value=0,h.PendingScopeReactions.batchDelete(B=>{(0,c.isFn)(B._scheduler)?B._scheduler(B):B()}),h.UntrackCount.value=z},"batchScopeEnd"),E=r(()=>{h.UntrackCount.value++},"untrackStart"),R=r(()=>{h.UntrackCount.value--},"untrackEnd"),N=r(()=>h.BatchCount.value>0,"isBatching"),L=r(()=>h.BatchScope.value,"isScopeBatching"),q=r(()=>h.UntrackCount.value>0,"isUntracking"),te=r(()=>{h.PendingReactions.batchDelete(z=>{(0,c.isFn)(z._scheduler)?z._scheduler(z):z()})},"executePendingReactions"),Y=r(()=>{h.BatchEndpoints.batchDelete(z=>{z()})},"executeBatchEndpoints"),re=r((z,B)=>z===B?!1:!!(z.length!==B.length||z.some((U,J)=>U!==B[J])),"hasDepsChange"),ae=r(z=>{if(z._effects)try{j(),z._effects.queue.forEach(B=>{!B||!B.dispose||B.dispose()})}finally{O()}},"disposeEffects");return Sr}var Pr,Ts;function Kl(){if(Ts)return Pr;Ts=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(m,g)=>e(m,"name",{value:g,configurable:!0}),b=(m,g)=>{for(var x in g)e(m,x,{get:g[x],enumerable:!0})},v=(m,g,x,P)=>{if(g&&typeof g=="object"||typeof g=="function")for(let S of o(g))!f.call(m,S)&&S!==x&&e(m,S,{get:()=>g[S],enumerable:!(P=t(g,S))||P.enumerable});return m},F=m=>v(e({},"__esModule",{value:!0}),m),_={};b(_,{baseHandlers:()=>y,collectionHandlers:()=>d}),Pr=F(_);var n=Pe(),c=tt(),h=Ve(),s=Te();const a=new Set(Object.getOwnPropertyNames(Symbol).reduce((m,g)=>{if(g==="arguments"||g==="caller")return m;const x=Symbol[g];return typeof x=="symbol"?m.concat(x):m},[])),u=Object.prototype.hasOwnProperty;function i(m,g,x){const P=n.RawProxy.get(x);return P||(!(0,c.isObservable)(x)&&(0,c.isSupportObservable)(x)?(0,h.createObservable)(m,g,x):x)}r(i,"findObservable");function l(m,g,x,P){const S=x.next;return x.next=()=>{let{done:j,value:O}=S.call(x);return j||(P?O[1]=i(m,g,O[1]):O=i(m,g,O)),{done:j,value:O}},x}r(l,"patchIterator");const p={has(m){const g=n.ProxyRaw.get(this),x=Reflect.getPrototypeOf(this);return(0,s.bindTargetKeyWithCurrentReaction)({target:g,key:m,type:"has"}),x.has.apply(g,arguments)},get(m){const g=n.ProxyRaw.get(this),x=Reflect.getPrototypeOf(this);return(0,s.bindTargetKeyWithCurrentReaction)({target:g,key:m,type:"get"}),i(g,m,x.get.apply(g,arguments))},add(m){const g=n.ProxyRaw.get(this),x=Reflect.getPrototypeOf(this),P=x.has.call(g,m),S=x.add.apply(g,arguments);return P||(0,s.runReactionsFromTargetKey)({target:g,key:m,value:m,type:"add"}),S},set(m,g){const x=n.ProxyRaw.get(this),P=Reflect.getPrototypeOf(this),S=P.has.call(x,m),j=P.get.call(x,m),O=P.set.apply(x,arguments);return S?g!==j&&(0,s.runReactionsFromTargetKey)({target:x,key:m,value:g,oldValue:j,type:"set"}):(0,s.runReactionsFromTargetKey)({target:x,key:m,value:g,type:"add"}),O},delete(m){const g=n.ProxyRaw.get(this),x=Reflect.getPrototypeOf(this),P=x.has.call(g,m),S=x.get?x.get.call(g,m):void 0,j=x.delete.apply(g,arguments);return P&&(0,s.runReactionsFromTargetKey)({target:g,key:m,oldValue:S,type:"delete"}),j},clear(){const m=n.ProxyRaw.get(this),g=Reflect.getPrototypeOf(this),x=m.size!==0,P=m instanceof Map?new Map(m):new Set(m),S=g.clear.apply(m,arguments);return x&&(0,s.runReactionsFromTargetKey)({target:m,oldTarget:P,type:"clear"}),S},forEach(m,...g){const x=n.ProxyRaw.get(this),P=Reflect.getPrototypeOf(this);(0,s.bindTargetKeyWithCurrentReaction)({target:x,type:"iterate"});const S=r((j,O,...w)=>m(i(x,O,j),O,...w),"wrappedCb");return P.forEach.call(x,S,...g)},keys(){const m=n.ProxyRaw.get(this),g=Reflect.getPrototypeOf(this);return(0,s.bindTargetKeyWithCurrentReaction)({target:m,type:"iterate"}),g.keys.apply(m,arguments)},values(){const m=n.ProxyRaw.get(this),g=Reflect.getPrototypeOf(this);(0,s.bindTargetKeyWithCurrentReaction)({target:m,type:"iterate"});const x=g.values.apply(m,arguments);return l(m,"",x,!1)},entries(){const m=n.ProxyRaw.get(this),g=Reflect.getPrototypeOf(this);(0,s.bindTargetKeyWithCurrentReaction)({target:m,type:"iterate"});const x=g.entries.apply(m,arguments);return l(m,"",x,!0)},[Symbol.iterator](){const m=n.ProxyRaw.get(this),g=Reflect.getPrototypeOf(this);(0,s.bindTargetKeyWithCurrentReaction)({target:m,type:"iterate"});const x=g[Symbol.iterator].apply(m,arguments);return l(m,"",x,m instanceof Map)},get size(){const m=n.ProxyRaw.get(this),g=Reflect.getPrototypeOf(this);return(0,s.bindTargetKeyWithCurrentReaction)({target:m,type:"iterate"}),Reflect.get(g,"size",m)}},d={get(m,g,x){return m=u.call(p,g)?p:m,Reflect.get(m,g,x)}},y={get(m,g,x){if(!g)return;const P=m[g];if(typeof g=="symbol"&&a.has(g))return P;(0,s.bindTargetKeyWithCurrentReaction)({target:m,key:g,receiver:x,type:"get"});const S=n.RawProxy.get(P);if(S)return S;if(!(0,c.isObservable)(P)&&(0,c.isSupportObservable)(P)){const j=Reflect.getOwnPropertyDescriptor(m,g);if(!j||!(j.writable===!1&&j.configurable===!1))return(0,h.createObservable)(m,g,P)}return P},has(m,g){const x=Reflect.has(m,g);return(0,s.bindTargetKeyWithCurrentReaction)({target:m,key:g,type:"has"}),x},ownKeys(m){const g=Reflect.ownKeys(m);return(0,s.bindTargetKeyWithCurrentReaction)({target:m,type:"iterate"}),g},set(m,g,x,P){if(g==="__proto__")return m[g]=x,!0;const S=u.call(m,g),j=(0,h.createObservable)(m,g,x),O=m[g];return m[g]=j,S?x!==O&&(0,s.runReactionsFromTargetKey)({target:m,key:g,value:j,oldValue:O,receiver:P,type:"set"}):(0,s.runReactionsFromTargetKey)({target:m,key:g,value:j,oldValue:O,receiver:P,type:"add"}),!0},deleteProperty(m,g){const x=m[g];return delete m[g],(0,s.runReactionsFromTargetKey)({target:m,key:g,oldValue:x,type:"delete"}),!0}};return Pr}var Or,Vs;function Ve(){if(Vs)return Or;Vs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(P,S)=>e(P,"name",{value:S,configurable:!0}),b=(P,S)=>{for(var j in S)e(P,j,{get:S[j],enumerable:!0})},v=(P,S,j,O)=>{if(S&&typeof S=="object"||typeof S=="function")for(let w of o(S))!f.call(P,w)&&w!==j&&e(P,w,{get:()=>S[w],enumerable:!(O=t(S,w))||O.enumerable});return P},F=P=>v(e({},"__esModule",{value:!0}),P),_={};b(_,{createAnnotation:()=>d,createBindFunction:()=>g,createBoundaryAnnotation:()=>x,createBoundaryFunction:()=>m,createObservable:()=>p,getObservableMaker:()=>y}),Or=F(_);var n=Ue(),c=Pe(),h=tt(),s=Kl(),a=We();const u=r((P,S)=>{const j=new Proxy(P,s.baseHandlers);return c.ProxyRaw.set(j,P),S?c.RawShallowProxy.set(P,j):c.RawProxy.set(P,j),j},"createNormalProxy"),i=r((P,S)=>{const j=new Proxy(P,s.collectionHandlers);return c.ProxyRaw.set(j,P),S?c.RawShallowProxy.set(P,j):c.RawProxy.set(P,j),j},"createCollectionProxy"),l=r(P=>(0,n.isNormalType)(P)?u(P,!0):(0,n.isCollectionType)(P)?i(P,!0):P,"createShallowProxy"),p=r((P,S,j,O)=>{if(typeof j!="object")return j;const w=c.ProxyRaw.get(j);if(w){const I=(0,a.getDataNode)(w);return I.target||(I.target=P),I.key=S,j}if(!(0,h.isSupportObservable)(j))return j;if(P){const I=c.ProxyRaw.get(P)||P;if(c.RawShallowProxy.get(I))return j}return(0,a.buildDataTree)(P,S,j),O?l(j):(0,n.isNormalType)(j)?u(j):(0,n.isCollectionType)(j)?i(j):j},"createObservable"),d=r(P=>{const S=r(j=>P({value:j}),"annotation");return(0,n.isFn)(P)&&(S[c.MakeObModelSymbol]=P),S},"createAnnotation"),y=r(P=>{if(P[c.MakeObModelSymbol])return P[c.MakeObModelSymbol][c.MakeObModelSymbol]?y(P[c.MakeObModelSymbol]):P[c.MakeObModelSymbol]},"getObservableMaker"),m=r((P,S)=>{function j(O){let w;try{P(),(0,n.isFn)(O)&&(w=O())}finally{S()}return w}return r(j,"boundary"),j.bound=g(j),j},"createBoundaryFunction"),g=r(P=>{function S(j,O){return(...w)=>P(()=>j.apply(O,w))}return r(S,"bind"),S},"createBindFunction"),x=r((P,S)=>{const j=m(P,S),O=d(({target:w,key:I})=>(w[I]=j.bound(w[I],w),w));return j[c.MakeObModelSymbol]=O,j.bound[c.MakeObModelSymbol]=O,j},"createBoundaryAnnotation");return Or}var Cr,Bs;function Zl(){if(Bs)return Cr;Bs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},b=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},v=a=>b(e({},"__esModule",{value:!0}),a),F={};r(F,{batch:()=>s}),Cr=v(F);var _=Ue(),n=Pe(),c=Ve(),h=Te();const s=(0,c.createBoundaryAnnotation)(h.batchStart,h.batchEnd);return s.scope=(0,c.createBoundaryAnnotation)(h.batchScopeStart,h.batchScopeEnd),s.endpoint=a=>{(0,_.isFn)(a)&&(n.BatchCount.value===0?a():n.BatchEndpoints.add(a))},Cr}var wr,Ls;function Us(){if(Ls)return wr;Ls=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(h,s)=>{for(var a in s)e(h,a,{get:s[a],enumerable:!0})},b=(h,s,a,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of o(s))!f.call(h,i)&&i!==a&&e(h,i,{get:()=>s[i],enumerable:!(u=t(s,i))||u.enumerable});return h},v=h=>b(e({},"__esModule",{value:!0}),h),F={};r(F,{action:()=>c}),wr=v(F);var _=Ve(),n=Te();const c=(0,_.createBoundaryAnnotation)(()=>{(0,n.batchStart)(),(0,n.untrackStart)()},()=>{(0,n.untrackEnd)(),(0,n.batchEnd)()});return c.scope=(0,_.createBoundaryAnnotation)(()=>{(0,n.batchScopeStart)(),(0,n.untrackStart)()},()=>{(0,n.untrackEnd)(),(0,n.batchScopeEnd)()}),wr}var Er,Gs;function Ql(){if(Gs)return Er;Gs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(h,s)=>{for(var a in s)e(h,a,{get:s[a],enumerable:!0})},b=(h,s,a,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of o(s))!f.call(h,i)&&i!==a&&e(h,i,{get:()=>s[i],enumerable:!(u=t(s,i))||u.enumerable});return h},v=h=>b(e({},"__esModule",{value:!0}),h),F={};r(F,{untracked:()=>c}),Er=v(F);var _=Ve(),n=Te();const c=(0,_.createBoundaryFunction)(n.untrackStart,n.untrackEnd);return Er}var jr={exports:{}},Ir,Hs;function Xl(){if(Hs)return Ir;Hs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{observable:()=>h}),Ir=F(_);var n=Ve(),c=Te();const h=(0,n.createAnnotation)(({target:s,key:a,value:u})=>{const i={value:(0,n.createObservable)(s,a,s?s[a]:u)};function l(){return(0,c.bindTargetKeyWithCurrentReaction)({target:s,key:a,type:"get"}),i.value}r(l,"get");function p(d){const y=i.value;d=(0,n.createObservable)(s,a,d),i.value=d,y!==d&&(0,c.runReactionsFromTargetKey)({target:s,key:a,type:"set",oldValue:y,value:d})}return r(p,"set"),s?(Object.defineProperty(s,a,{set:p,get:l,enumerable:!0,configurable:!1}),s):i.value});return Ir}var Ar,zs;function $l(){if(zs)return Ar;zs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{box:()=>a}),Ar=F(_);var n=Pe(),c=Ve(),h=Te(),s=We();const a=(0,c.createAnnotation)(({target:u,key:i,value:l})=>{const p={value:u?u[i]:l},d={set:m,get:y};n.ProxyRaw.set(d,p),n.RawProxy.set(p,d),(0,s.buildDataTree)(u,i,p);function y(){return(0,h.bindTargetKeyWithCurrentReaction)({target:p,key:i,type:"get"}),p.value}r(y,"get");function m(g){const x=p.value;p.value=g,x!==g&&(0,h.runReactionsFromTargetKey)({target:p,key:i,type:"set",oldValue:x,value:g})}return r(m,"set"),u?(Object.defineProperty(u,i,{value:d,enumerable:!0,configurable:!1,writable:!1}),u):d});return Ar}var Dr,Js;function eu(){if(Js)return Dr;Js=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{ref:()=>a}),Dr=F(_);var n=Pe(),c=Ve(),h=Te(),s=We();const a=(0,c.createAnnotation)(({target:u,key:i,value:l})=>{const p={value:u?u[i]:l},d={},y=u||p,m=u?i:"value";function g(){return(0,h.bindTargetKeyWithCurrentReaction)({target:y,key:m,type:"get"}),p.value}r(g,"get");function x(P){const S=p.value;p.value=P,S!==P&&(0,h.runReactionsFromTargetKey)({target:y,key:m,type:"set",oldValue:S,value:P})}return r(x,"set"),u?(Object.defineProperty(u,i,{get:g,set:x,enumerable:!0}),u):(Object.defineProperty(d,"value",{set:x,get:g}),(0,s.buildDataTree)(u,i,p),d[n.ObModelSymbol]=p,d)});return Dr}var Mr,Ws;function tu(){if(Ws)return Mr;Ws=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{shallow:()=>h}),Mr=F(_);var n=Ve(),c=Te();const h=(0,n.createAnnotation)(({target:s,key:a,value:u})=>{const i={value:(0,n.createObservable)(s,a,s?s[a]:u,!0)};function l(){return(0,c.bindTargetKeyWithCurrentReaction)({target:s,key:a,type:"get"}),i.value}r(l,"get");function p(d){const y=i.value;d=(0,n.createObservable)(s,a,d,!0),i.value=d,y!==d&&(0,c.runReactionsFromTargetKey)({target:s,key:a,type:"set",oldValue:y,value:d})}return r(p,"set"),s?(Object.defineProperty(s,a,{set:p,get:l,enumerable:!0,configurable:!1}),s):i.value});return Mr}var Rr,Ys;function ru(){if(Ys)return Rr;Ys=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(g,x)=>e(g,"name",{value:x,configurable:!0}),b=(g,x)=>{for(var P in x)e(g,P,{get:x[P],enumerable:!0})},v=(g,x,P,S)=>{if(x&&typeof x=="object"||typeof x=="function")for(let j of o(x))!f.call(g,j)&&j!==P&&e(g,j,{get:()=>x[j],enumerable:!(S=t(x,j))||S.enumerable});return g},F=g=>v(e({},"__esModule",{value:!0}),g),_={};b(_,{computed:()=>m}),Rr=F(_);var n=Ue(),c=Pe(),h=Ve(),s=Te(),a=We();const u=Object.getOwnPropertyDescriptor,i=Object.getPrototypeOf,l=Symbol("ClassDescriptorSymbol");function p(g,x){if(g)return u(g,x)||p(i(g),x)}r(p,"getPropertyDescriptor");function d(g,x){const P=g.constructor;if(P===Object||P===Array)return p(g,x);const S=P[l]||{},j=S[x];if(j)return j;const O=p(g,x);return P[l]=S,S[x]=O,O}r(d,"getPropertyDescriptorCache");function y(g,x,P){if(!g)return P?(0,n.isFn)(P)?{get:P}:P:{};const S=d(g,x);return S||{}}r(y,"getPrototypeDescriptor");const m=(0,h.createAnnotation)(({target:g,key:x,value:P})=>{const S={},j={},O=g||S,w=g?x:"value",I=y(g,w,P);function E(){var q;S.value=(q=I.get)==null?void 0:q.call(O)}r(E,"compute");function R(){if(c.ReactionStack.indexOf(R)===-1){(0,s.releaseBindingReactions)(R);try{c.ReactionStack.push(R),E()}finally{c.ReactionStack.pop()}}}r(R,"reaction"),R._name="ComputedReaction",R._scheduler=()=>{R._dirty=!0,(0,s.runReactionsFromTargetKey)({target:O,key:w,value:S.value,type:"set"})},R._isComputed=!0,R._dirty=!0,R._context=O,R._property=w;function N(){return(0,s.hasRunningReaction)()&&(0,s.bindComputedReactions)(R),(0,s.isUntracking)()?E():R._dirty&&(R(),R._dirty=!1),(0,s.bindTargetKeyWithCurrentReaction)({target:O,key:w,type:"get"}),S.value}r(N,"get");function L(q){var te;try{(0,s.batchStart)(),(te=I.set)==null||te.call(O,q)}finally{(0,s.batchEnd)()}}return r(L,"set"),g?(Object.defineProperty(g,x,{get:N,set:L,enumerable:!0}),g):(Object.defineProperty(j,"value",{set:L,get:N}),(0,a.buildDataTree)(g,x,S),j[c.ObModelSymbol]=S,j)});return Rr}var qs;function ou(){return qs||(qs=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Xl(),e.exports),v(_,$l(),e.exports),v(_,eu(),e.exports),v(_,tu(),e.exports),v(_,ru(),e.exports)}(jr)),jr.exports}var Nr,Ks;function Zs(){if(Ks)return Nr;Ks=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(l,p)=>t(l,"name",{value:p,configurable:!0}),F=(l,p)=>{for(var d in p)t(l,d,{get:p[d],enumerable:!0})},_=(l,p,d,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let m of f(p))!b.call(l,m)&&m!==d&&t(l,m,{get:()=>p[m],enumerable:!(y=o(p,m))||y.enumerable});return l},n=(l,p,d)=>(d=l!=null?e(r(l)):{},_(!l||!l.__esModule?t(d,"default",{value:l,enumerable:!0}):d,l)),c=l=>_(t({},"__esModule",{value:!0}),l),h={};F(h,{observable:()=>i}),Nr=c(h);var s=n(ou()),a=Pe(),u=Ve();function i(l){return(0,u.createObservable)(null,null,l)}return v(i,"observable"),i.box=s.box,i.ref=s.ref,i.deep=s.observable,i.shallow=s.shallow,i.computed=s.computed,i[a.MakeObModelSymbol]=s.observable,Nr}var kr,Qs;function nu(){if(Qs)return kr;Qs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(d,y)=>e(d,"name",{value:y,configurable:!0}),b=(d,y)=>{for(var m in y)e(d,m,{get:y[m],enumerable:!0})},v=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of o(y))!f.call(d,x)&&x!==m&&e(d,x,{get:()=>y[x],enumerable:!(g=t(y,x))||g.enumerable});return d},F=d=>v(e({},"__esModule",{value:!0}),d),_={};b(_,{define:()=>l,model:()=>p}),kr=F(_);var n=Us(),c=Ue(),h=Pe(),s=tt(),a=Ve(),u=Zs(),i=We();function l(d,y){if((0,s.isObservable)(d)||!(0,s.isSupportObservable)(d))return d;d[h.ObModelSymbol]=d,(0,i.buildDataTree)(void 0,void 0,d);for(const m in y){const g=y[m];(0,s.isAnnotation)(g)&&(0,a.getObservableMaker)(g)({target:d,key:m})}return d}r(l,"define");function p(d){const y=Object.keys(d||{}).reduce((m,g)=>{const x=Object.getOwnPropertyDescriptor(d,g);return x&&x.get?m[g]=u.observable.computed:(0,c.isFn)(d[g])?m[g]=n.action:m[g]=u.observable,m},{});return l(d,y)}return r(p,"model"),kr}var Tr,Xs;function su(){if(Xs)return Tr;Xs=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{autorun:()=>a,reaction:()=>u}),Tr=F(_);var n=_r(),c=Ue(),h=Pe(),s=Te();const a=r((i,l="AutoRun")=>{const p=r(()=>{if((0,c.isFn)(i)&&!(p._boundary>0)&&h.ReactionStack.indexOf(p)===-1){(0,s.releaseBindingReactions)(p);try{(0,s.batchStart)(),h.ReactionStack.push(p),i()}finally{h.ReactionStack.pop(),p._boundary++,(0,s.batchEnd)(),p._boundary=0,p._memos.cursor=0,p._effects.cursor=0}}},"reaction"),d=r(()=>{p._memos={queue:[],cursor:0},p._effects={queue:[],cursor:0}},"cleanRefs");return p._boundary=0,p._name=l,d(),p(),()=>{(0,s.disposeBindingReactions)(p),(0,s.disposeEffects)(p),d()}},"autorun");a.memo=(i,l)=>{if(!(0,c.isFn)(i))return;const p=h.ReactionStack[h.ReactionStack.length-1];if(!p||!p._memos)throw new Error("autorun.memo must used in autorun function body.");const d=(0,n.toArray)(l||[]),y=p._memos.cursor++,m=p._memos.queue[y];if(!m||(0,s.hasDepsChange)(d,m.deps)){const g=i();return p._memos.queue[y]={value:g,deps:d},g}return m.value},a.effect=(i,l)=>{if(!(0,c.isFn)(i))return;const p=h.ReactionStack[h.ReactionStack.length-1];if(!p||!p._effects)throw new Error("autorun.effect must used in autorun function body.");const d=p._effects,y=(0,n.toArray)(l||[{}]),m=d.cursor++,g=d.queue[m];(!g||(0,s.hasDepsChange)(y,g.deps))&&(Promise.resolve(0).then(()=>{if(p._disposed)return;const x=i();(0,c.isFn)(x)&&(d.queue[m].dispose=x)}),d.queue[m]={deps:y})};const u=r((i,l,p)=>{const d=T({name:"Reaction"},p),y={},m=r(()=>(0,c.isFn)(d.equals)?!d.equals(y.oldValue,y.currentValue):y.oldValue!==y.currentValue,"dirtyCheck"),g=r(()=>{try{(0,s.batchStart)(),(0,c.isFn)(l)&&l(y.currentValue,y.oldValue)}finally{(0,s.batchEnd)()}},"fireAction"),x=r(()=>{if(h.ReactionStack.indexOf(x)===-1){(0,s.releaseBindingReactions)(x);try{h.ReactionStack.push(x),y.currentValue=i()}finally{h.ReactionStack.pop()}}},"reaction");return x._scheduler=P=>{P(),m()&&g(),y.oldValue=y.currentValue},x._name=d.name,x(),y.oldValue=y.currentValue,d.fireImmediately&&g(),()=>{(0,s.disposeBindingReactions)(x)}},"reaction");return Tr}var Vr,$s;function au(){if($s)return Vr;$s=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{Tracker:()=>a}),Vr=F(_);var n=Ue(),c=Pe(),h=Te();const s=class{constructor(i,l="TrackerReaction"){this.track=r(p=>{if(!(0,n.isFn)(p))return this.results;if(!(this.track._boundary>0)){if(c.ReactionStack.indexOf(this.track)===-1){(0,h.releaseBindingReactions)(this.track);try{(0,h.batchStart)(),c.ReactionStack.push(this.track),this.results=p()}finally{c.ReactionStack.pop(),this.track._boundary++,(0,h.batchEnd)(),this.track._boundary=0}}return this.results}},"track"),this.dispose=r(()=>{(0,h.disposeBindingReactions)(this.track)},"dispose"),this.track._scheduler=p=>{this.track._boundary===0&&this.dispose(),(0,n.isFn)(p)&&i(p)},this.track._name=l,this.track._boundary=0}};r(s,"Tracker");let a=s;return Vr}var Br,ea;function iu(){if(ea)return Br;ea=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{observe:()=>a}),Br=F(_);var n=Ue(),c=Pe(),h=tt(),s=We();const a=r((u,i,l=!0)=>{const p=r(d=>{const y=(0,h.raw)(d),m=(0,s.getDataNode)(y),g=r(x=>{const P=(0,h.raw)(x.target),S=(0,s.getDataNode)(P);if(l&&m.contains(S)){i(new s.DataChange(x,S));return}(m===S||m.targetRaw===P&&m.key===x.key)&&i(new s.DataChange(x,S))},"listener");return m&&(0,n.isFn)(i)&&c.ObserverListeners.add(g),()=>{c.ObserverListeners.delete(g)}},"addListener");if(u&&typeof u!="object")throw Error(`Can not observe ${typeof u} type.`);return p(u)},"observe");return Br}var Lr={exports:{}},ta;function cu(){return ta||(ta=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,We(),e.exports)}(Lr)),Lr.exports}var ra;function Oe(){return ra||(ra=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Zl(),e.exports),v(_,Us(),e.exports),v(_,Ql(),e.exports),v(_,Zs(),e.exports),v(_,nu(),e.exports),v(_,su(),e.exports),v(_,au(),e.exports),v(_,iu(),e.exports),v(_,tt(),e.exports),v(_,cu(),e.exports)}(br)),br.exports}var Ur,oa;function na(){if(oa)return Ur;oa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(S,j)=>e(S,"name",{value:j,configurable:!0}),b=(S,j)=>{for(var O in j)e(S,O,{get:j[O],enumerable:!0})},v=(S,j,O,w)=>{if(j&&typeof j=="object"||typeof j=="function")for(let I of o(j))!f.call(S,I)&&I!==O&&e(S,I,{get:()=>j[I],enumerable:!(w=t(j,I))||w.enumerable});return S},F=S=>v(e({},"__esModule",{value:!0}),S),_={};b(_,{SchemaNestedMap:()=>a,SchemaNormalKeys:()=>l,SchemaStateMap:()=>u,SchemaValidatorKeys:()=>p,SchemaValidatorMap:()=>i,createDataSource:()=>x,hasOwnProperty:()=>d,isNoNeedCompileObject:()=>g,patchStateFormSchema:()=>P,traverse:()=>y,traverseSchema:()=>m}),Ur=F(_);var n=Oe(),c=ue(),h=ti();const s=Symbol.for("__REVA_ACTIONS"),a={parent:!0,root:!0,properties:!0,patternProperties:!0,additionalProperties:!0,items:!0,additionalItems:!0,"x-linkages":!0,"x-reactions":!0},u={title:"title",description:"description",default:"initialValue",enum:"dataSource",readOnly:"readOnly",writeOnly:"editable","x-content":"content","x-data":"data","x-value":"value","x-editable":"editable","x-disabled":"disabled","x-read-pretty":"readPretty","x-read-only":"readOnly","x-visible":"visible","x-hidden":"hidden","x-display":"display","x-pattern":"pattern","x-validator":"validator","x-decorator":"decoratorType","x-component":"componentType","x-decorator-props":"decoratorProps","x-component-props":"componentProps"},i={required:!0,format:!0,maxItems:!0,minItems:!0,maxLength:!0,minLength:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,pattern:!0,const:!0,multipleOf:!0,maxProperties:!0,minProperties:!0,uniqueItems:!0},l=Object.keys(u),p=Object.keys(i),d=Object.prototype.hasOwnProperty,y=r((S,j)=>{const O=[],w=S,I=r((E,R=[])=>{if((0,c.isPlainObj)(E)){if(O.indexOf(E)>-1)return;const L=O.length;if(O.push(E),g(E)&&w!==E){j(E,R);return}(0,c.each)(E,(q,te)=>{I(q,R.concat(te))}),O.splice(L,1)}else j(E,R)},"traverse");I(S)},"traverse"),m=r((S,j)=>{var O;S["x-validator"]!==void 0&&j(S["x-validator"],["x-validator"],(O=S["x-compile-omitted"])==null?void 0:O.includes("x-validator"));const w=[],I=S,E=r((R,N=[])=>{var L;if(!(N[0]==="x-compile-omitted"||N[0]==="x-validator"||N[0]==="version"||N[0]==="_isJSONSchemaObject")&&!(String(N[0]).indexOf("x-")===-1&&(0,c.isFn)(R))&&!a[N[0]]){if(((L=S["x-compile-omitted"])==null?void 0:L.indexOf(N[0]))>-1){j(R,N,!0);return}if((0,c.isPlainObj)(R)){if(N[0]==="default"||N[0]==="x-value"){j(R,N);return}if(w.indexOf(R)>-1)return;const te=w.length;if(w.push(R),g(R)&&I!==R){j(R,N);return}(0,c.each)(R,(Y,re)=>{E(Y,N.concat(re))}),w.splice(te,1)}else j(R,N)}},"traverse");E(S)},"traverseSchema"),g=r(S=>!!("$$typeof"in S&&"_owner"in S||S._isAMomentObject||h.Schema.isSchemaInstance(S)||S[s]||(0,c.isFn)(S.toJS)||(0,c.isFn)(S.toJSON)||(0,n.isObservable)(S)),"isNoNeedCompileObject"),x=r(S=>(0,c.toArr)(S).map(j=>typeof j=="object"?j:{label:j,value:j}),"createDataSource"),P=r((S,j,O)=>{(0,n.untracked)(()=>{var w;const E=c.FormPath.parse(j).segments,R=E[0],N=R==="enum"&&(0,c.isArr)(O),L=u[R];L?c.FormPath.setIn(S,[L].concat(E.slice(1)),N?x(O):O):i[R]&&((w=S.setValidatorRule)==null||w.call(S,R,O))})},"patchStateFormSchema");return Ur}var Gr,sa;function aa(){if(sa)return Gr;sa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(m,g)=>e(m,"name",{value:g,configurable:!0}),b=(m,g)=>{for(var x in g)e(m,x,{get:g[x],enumerable:!0})},v=(m,g,x,P)=>{if(g&&typeof g=="object"||typeof g=="function")for(let S of o(g))!f.call(m,S)&&S!==x&&e(m,S,{get:()=>g[S],enumerable:!(P=t(g,S))||P.enumerable});return m},F=m=>v(e({},"__esModule",{value:!0}),m),_={};b(_,{compile:()=>p,patchCompile:()=>d,patchSchemaCompile:()=>y,registerCompiler:()=>i,shallowCompile:()=>l,silent:()=>u}),Gr=F(_);var n=Oe(),c=ue(),h=na();const s=/^\s*\{\{([\s\S]*)\}\}\s*$/,a={silent:!1,compile(m,g={}){if(a.silent)try{return new Function("$root",`with($root) { return (${m}); }`)(g)}catch(x){}else return new Function("$root",`with($root) { return (${m}); }`)(g)}},u=r((m=!0)=>{a.silent=!!m},"silent"),i=r(m=>{(0,c.isFn)(m)&&(a.compile=m)},"registerCompiler"),l=r((m,g)=>{if((0,c.isStr)(m)){const x=m.match(s);return x?a.compile(x[1],g):m}return m},"shallowCompile"),p=r((m,g)=>{const x=[],P=r(S=>{if((0,c.isStr)(S))return l(S,g);if((0,c.isArr)(S))return S.map(j=>P(j));if((0,c.isPlainObj)(S)){if((0,h.isNoNeedCompileObject)(S)||x.indexOf(S)>-1)return S;const O=x.length;x.push(S);const w=(0,c.reduce)(S,(I,E,R)=>(I[R]=P(E),I),{});return x.splice(O,1),w}return S},"compile");return P(m)},"compile"),d=r((m,g,x)=>{(0,h.traverse)(g,(P,S)=>{const j=p(P,x);if(j===void 0)return;const O=c.FormPath.parse(S),w=O.segments[0];h.hasOwnProperty.call(m,w)&&(0,n.untracked)(()=>c.FormPath.setIn(m,O,j))})},"patchCompile"),y=r((m,g,x,P=!1)=>{(0,h.traverseSchema)(g,(S,j,O)=>{let w=S,I=(0,n.hasCollected)(()=>{O||(w=p(S,x))});w!==void 0&&(P?(I||!m.initialized)&&(0,h.patchStateFormSchema)(m,j,w):(0,h.patchStateFormSchema)(m,j,w))})},"patchSchemaCompile");return Gr}var Hr,ia;function ca(){if(ia)return Hr;ia=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(l,p)=>e(l,"name",{value:p,configurable:!0}),b=(l,p)=>{for(var d in p)e(l,d,{get:p[d],enumerable:!0})},v=(l,p,d,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let m of o(p))!f.call(l,m)&&m!==d&&e(l,m,{get:()=>p[m],enumerable:!(y=t(p,m))||y.enumerable});return l},F=l=>v(e({},"__esModule",{value:!0}),l),_={};b(_,{enablePolyfills:()=>i,reducePatches:()=>s,registerPatches:()=>a,registerPolyfills:()=>u}),Hr=F(_);var n=ue();const c=[],h={},s=r(l=>c.reduce((p,d)=>d(p),T({},l)),"reducePatches"),a=r((...l)=>{l.forEach(p=>{(0,n.isFn)(p)&&c.push(p)})},"registerPatches"),u=r((l,p)=>{l&&(0,n.isFn)(p)&&(h[l]=h[l]||[],h[l].push(p))},"registerPolyfills"),i=r(l=>{(0,n.isArr)(l)&&l.forEach(p=>{(0,n.isArr)(h[p])&&h[p].forEach(d=>{a(d)})})},"enablePolyfills");return Hr}var zr={exports:{}},Jr,la;function lu(){if(la)return Jr;la=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(d,y)=>e(d,"name",{value:y,configurable:!0}),b=(d,y)=>{for(var m in y)e(d,m,{get:y[m],enumerable:!0})},v=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of o(y))!f.call(d,x)&&x!==m&&e(d,x,{get:()=>y[x],enumerable:!(g=t(y,x))||g.enumerable});return d},F=d=>v(e({},"__esModule",{value:!0}),d),_={};b(_,{registerTypeDefaultComponents:()=>p,registerVoidComponents:()=>l}),Jr=F(_);var n=ue(),c=ca();const h=["card","block","grid-col","grid-row","grid","layout","step","tab","text-box"],s={},a=r(d=>{if((0,n.isStr)(d))return d.replace(/\$value/,"$self.value")},"transformCondition"),u=r(d=>(0,n.isArr)(d)?d.reduce((y,m)=>{if(!m)return y;if(m.type==="value:visible")return y.concat({target:m.target,when:a(m.condition),fulfill:{state:{visible:!0}},otherwise:{state:{visible:!1}}});if(m.type==="value:schema")return y.concat({target:m.target,when:a(m.condition),fulfill:{schema:i(T({version:"1.0"},m.schema))},otherwise:{schema:i(T({version:"1.0"},m.otherwise))}});if(m.type==="value:state")return y.concat({target:m.target,when:a(m.condition),fulfill:{state:m.state},otherwise:{state:m.otherwise}})},[]):[],"transformXLinkage"),i=r(d=>((0,n.isValid)(d.editable)&&(d["x-editable"]=d["x-editable"]||d.editable,delete d.editable),(0,n.isValid)(d.visible)&&(d["x-visible"]=d["x-visible"]||d.visible,delete d.visible),(0,n.isValid)(d.display)&&(d["x-display"]=d["x-display"]||(d.display?"visible":"hidden"),delete d.display),(0,n.isValid)(d["x-props"])&&(d["x-decorator-props"]=d["x-decorator-props"]||d["x-props"],delete d.display),d["x-linkages"]&&(d["x-reactions"]=(0,n.toArr)(d["x-reactions"]).concat(u(d["x-linkages"])),delete d["x-linkages"]),d["x-component"]?h.some(y=>(0,n.lowerCase)(y)===(0,n.lowerCase)(d["x-component"]))&&(d.type="void"):s[d.type]&&(d["x-component"]=s[d.type]),!d["x-decorator"]&&d.type!=="void"&&d.type!=="object"&&(d["x-decorator"]=d["x-decorator"]||"FormItem"),d["x-rules"]&&(d["x-validator"]=[].concat(d["x-validator"]||[]).concat(d["x-rules"])),d),"SpecificationV1Polyfill");(0,c.registerPolyfills)("1.0",i);const l=r(d=>{h.push(...d)},"registerVoidComponents"),p=r(d=>{Object.assign(s,d)},"registerTypeDefaultComponents");return Jr}var ua;function uu(){return ua||(ua=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,lu(),e.exports)}(zr)),zr.exports}var Wr={exports:{}},Yr={exports:{}},qr,pa;function pu(){if(pa)return qr;pa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(n,c)=>{for(var h in c)e(n,h,{get:c[h],enumerable:!0})},b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of o(c))!f.call(n,a)&&a!==h&&e(n,a,{get:()=>c[a],enumerable:!(s=t(c,a))||s.enumerable});return n},v=n=>b(e({},"__esModule",{value:!0}),n),F={};r(F,{default:()=>_}),qr=v(F);var _={url:new RegExp("^(?:(?:(?:https?|ftp|rtmp):)?//)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:22[0-3]|2[01]\\d|[1-9]\\d?|1\\d\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1?\\d{1,2})){2}(?:\\.(?:25[0-4]|2[0-4]\\d|1\\d\\d|[1-9]\\d?))|(?:(?:[a-z\\u00a1-\\uffff0-9_]-*)*[a-z\\u00a1-\\uffff0-9_]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9_]-*)*[a-z\\u00a1-\\uffff0-9_]+)*(?:\\.(?:[a-z\\u00a1-\\uffff_]{2,})))(?::\\d{2,5})?(?:/?\\S*)?$"),email:/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,ipv4:/^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})$/,number:/^[+-]?\d+(\.\d+)?$/,integer:/^[+-]?\d+$/,qq:/^(\+?[1-9]\d*|0)$/,phone:/^\d{3}-\d{8}$|^\d{4}-\d{7}$|^\d{11}$/,idcard:/^\d{15}$|^\d{17}(\d|x|X)$/,money:/^([\u0024\u00A2\u00A3\u00A4\u20AC\u00A5\u20B1\u20B9\uFFE5]\s*)(\d+,?)+(\.\d+)?\s*$/,zh:/^[\u4e00-\u9fa5]+$/,date:/^[0-9]+[./-][0-9]+[./-][0-9]+\s*(?:[0-9]+\s*:\s*[0-9]+\s*:\s*[0-9]+)?$/,zip:/^[0-9]{6}$/};return qr}var Kr,da;function du(){if(da)return Kr;da=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(n,c)=>{for(var h in c)e(n,h,{get:c[h],enumerable:!0})},b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of o(c))!f.call(n,a)&&a!==h&&e(n,a,{get:()=>c[a],enumerable:!(s=t(c,a))||s.enumerable});return n},v=n=>b(e({},"__esModule",{value:!0}),n),F={};r(F,{default:()=>_}),Kr=v(F);var _={en:{pattern:"This field is invalid",invalid:"This field is invalid",required:"The field value is required",number:"The field value is not a number",integer:"The field value is not an integer number",url:"The field value is a invalid url",email:"The field value is not a email format",ipv6:"The field value is not a ipv6 format",ipv4:"The field value is not a ipv4 format",idcard:"The field value is not an idcard format",qq:"The field value is not a qq number format",phone:"The field value is not a phone number format",money:"The field value is not a currency format",zh:"The field value is not a chinese string",date:"The field value is not a valid date format",zip:"The field value is not a zip format",len:"The length or number of entries must be {{len}}",min:"The length or number of entries must be at least {{min}}",minLength:"The length or number of entries must be at least {{minLength}}",minItems:"The length or number of entries must be at least {{minItems}}",maximum:"The field value cannot be greater than {{maximum}}",exclusiveMaximum:"The field value must be less than {{exclusiveMaximum}}",minimum:"The field value cannot be less than {{minimum}}",exclusiveMinimum:"The field value must be greater than {{exclusiveMinimum}}",max:"The field length or number of entries must be at most {{max}}",maxLength:"The field length or number of entries must be at most {{maxLength}}",maxItems:"The field length or number of entries must be at most {{maxItems}}",whitespace:"This field value cannot be blank string.",enum:"The field value must be one of {{enum}}",const:"The field value must be equal to {{const}}",multipleOf:"The field value must be divisible by {{multipleOf}}",maxProperties:"The number of field properties cannot be greater than {{maxProperties}}",minProperties:"The number of field properties cannot be less than {{maxProperties}}",uniqueItems:"Array elements are not unique"},zh:{pattern:"该字段不是一个合法的字段",invalid:"该字段不是一个合法的字段",required:"该字段是必填字段",number:"该字段不是合法的数字",integer:"该字段不是合法的整型数字",url:"该字段不是合法的url",email:"该字段不是合法的邮箱格式",ipv6:"该字段不是合法的ipv6格式",ipv4:"该字段不是合法的ipv4格式",idcard:"该字段不是合法的身份证格式",qq:"该字段不符合QQ号格式",phone:"该字段不是有效的手机号",money:"该字段不是有效货币格式",zh:"该字段不是合法的中文字符串",date:"该字段不是合法的日期格式",zip:"该字段不是合法的邮编格式",len:"长度或条目数必须为{{len}}",min:"长度或条目数不能小于{{min}}",minLength:"长度或条目数不能小于{{minLength}}",minItems:"长度或条目数不能小于{{minItems}}",max:"长度或条目数不能大于{{max}}",maxLength:"长度或条目数不能大于{{maxLength}}",maxItems:"长度或条目数不能大于{{maxItems}}",maximum:"数值不能大于{{maximum}}",exclusiveMaximum:"数值必须小于{{exclusiveMaximum}}",minimum:"数值不能小于{{minimum}}",exclusiveMinimum:"数值必须大于{{exclusiveMinimum}}",whitespace:"不能为纯空白字符串",enum:"字段值必须为{{enum}}其中一个",const:"字段值必须等于{{const}}",multipleOf:"字段值不能被{{multipleOf}}整除",maxProperties:"字段属性数量不能大于{{maxProperties}}",minProperties:"字段属性数量不能小于{{minProperties}}",uniqueItems:"数组元素不唯一"},"en-US":{pattern:"This field is invalid",invalid:"This field is invalid",required:"The field value is required",number:"The field value is not a number",integer:"The field value is not an integer number",url:"The field value is a invalid url",email:"The field value is not a email format",ipv6:"The field value is not a ipv6 format",ipv4:"The field value is not a ipv4 format",idcard:"The field value is not an idcard format",qq:"The field value is not a qq number format",phone:"The field value is not a phone number format",money:"The field value is not a currency format",zh:"The field value is not a chinese string",date:"The field value is not a valid date format",zip:"The field value is not a zip format",len:"The length or number of entries must be {{len}}",min:"The length or number of entries must be at least {{min}}",minLength:"The length or number of entries must be at least {{minLength}}",minItems:"The length or number of entries must be at least {{minItems}}",maximum:"The field value cannot be greater than {{maximum}}",exclusiveMaximum:"The field value must be less than {{exclusiveMaximum}}",minimum:"The field value cannot be less than {{minimum}}",exclusiveMinimum:"The field value must be greater than {{exclusiveMinimum}}",max:"The field length or number of entries must be at most {{max}}",maxLength:"The field length or number of entries must be at most {{maxLength}}",maxItems:"The field length or number of entries must be at most {{maxItems}}",whitespace:"This field value cannot be blank string.",enum:"The field value must be one of {{enum}}",const:"The field value must be equal to {{const}}",multipleOf:"The field value must be divisible by {{multipleOf}}",maxProperties:"The number of field properties cannot be greater than {{maxProperties}}",minProperties:"The number of field properties cannot be less than {{maxProperties}}",uniqueItems:"Array elements are not unique"},"zh-CN":{pattern:"该字段不是一个合法的字段",invalid:"该字段不是一个合法的字段",required:"该字段是必填字段",number:"该字段不是合法的数字",integer:"该字段不是合法的整型数字",url:"该字段不是合法的url",email:"该字段不是合法的邮箱格式",ipv6:"该字段不是合法的ipv6格式",ipv4:"该字段不是合法的ipv4格式",idcard:"该字段不是合法的身份证格式",qq:"该字段不符合QQ号格式",phone:"该字段不是有效的手机号",money:"该字段不是有效货币格式",zh:"该字段不是合法的中文字符串",date:"该字段不是合法的日期格式",zip:"该字段不是合法的邮编格式",len:"长度或条目数必须为{{len}}",min:"长度或条目数不能小于{{min}}",minLength:"长度或条目数不能小于{{minLength}}",minItems:"长度或条目数不能小于{{minItems}}",maxLength:"长度或条目数不能大于{{maxLength}}",maxItems:"长度或条目数不能大于{{maxItems}}",max:"长度或条目数不能大于{{max}}",maximum:"数值不能大于{{maximum}}",exclusiveMaximum:"数值必须小于{{exclusiveMaximum}}",minimum:"数值不能小于{{minimum}}",exclusiveMinimum:"数值必须大于{{exclusiveMinimum}}",whitespace:"不能为纯空白字符串",enum:"字段值必须为{{enum}}其中一个",const:"字段值必须等于{{const}}",multipleOf:"字段值不能被{{multipleOf}}整除",maxProperties:"字段属性数量不能大于{{maxProperties}}",minProperties:"字段属性数量不能小于{{minProperties}}",uniqueItems:"数组元素不唯一"},"zh-TW":{pattern:"該字段不是一個合法的字段",invalid:"該字段不是一個合法的字段",required:"該字段是必填字段",number:"該字段不是合法的數字",integer:"該字段不是合法的整型數字",url:"該字段不是合法的url",email:"該字段不是合法的郵箱格式",ipv6:"該字段不是合法的ipv6格式",ipv4:"該字段不是合法的ipv4格式",idcard:"該字段不是合法的身份證格式",qq:"該字段不符合QQ號格式",phone:"該字段不是有效的手機號",money:"該字段不是有效貨幣格式",zh:"該字段不是合法的中文字符串",date:"該字段不是合法的日期格式",zip:"該字段不是合法的郵編格式",len:"長度或條目數必須為{{len}}",min:"長度或條目數不能小於{{min}}",minItems:"長度或條目數不能小於{{minItems}}",minLength:"長度或條目數不能小於{{minLength}}",max:"長度或條目數不能大於{{max}}",maxItems:"長度或條目數不能大於{{maxItems}}",maxLength:"長度或條目數不能大於{{maxLength}}",maximum:"數值不能大於{{maximum}}",exclusiveMaximum:"數值必須小於{{exclusiveMaximum}}",minimum:"數值不能小於{{minimum}}",exclusiveMinimum:"數值必須大於{{exclusiveMinimum}}",whitespace:"不能為純空白字符串",enum:"字段值必須為{{enum}}其中一個",const:"字段值必須等於{{const}}",multipleOf:"字段值不能被{{multipleOf}}整除",maxProperties:"字段屬性數量不能大於{{maxProperties}}",minProperties:"字段屬性數量不能小於{{minProperties}}",uniqueItems:"數組元素不唯一"},ja:{url:"このフィールドは無効なURLです",whitespace:"このフィールドを空の文字列にすることはできません。",zh:"このフィールドは中国語の文字列ではありません",zip:"このフィールドはzip形式ではありません",date:"このフィールドは有効な日付形式ではありません",email:"このフィールドはメール形式ではありません",exclusiveMaximum:"値は{{exclusiveMaximum}}未満である必要があります",exclusiveMinimum:"値は{{exclusiveMinimum}}より大きい必要があります",idcard:"このフィールドはIDカード形式ではありません",integer:"このフィールドは整数ではありません",ipv4:"このフィールドはIPv4形式ではありません",ipv6:"このフィールドはIPv6形式ではありません",len:"エントリの長さまたは数は{{len}}でなければなりません",max:"エントリの長さまたは数は最大{{max}}でなければなりません",maxItems:"エントリの長さまたは数は最大{{maxItems}}でなければなりません",maxLength:"エントリの長さまたは数は最大{{maxLength}}でなければなりません",maximum:"値は{{最大}}を超えることはできません",min:"エントリの長さまたは数は、少なくとも{{min}}である必要があります",minItems:"エントリの長さまたは数は、少なくとも{{minItems}}である必要があります",minLength:"エントリの長さまたは数は、少なくとも{{minLength}}である必要があります",minimum:"値は{{minimum}}以上にする必要があります",money:"このフィールドは通貨形式ではありません",number:"このフィールドは数値ではありません",pattern:"このフィールドはどのパターンとも一致しません",invalid:"このフィールドはどのパターンとも一致しません",phone:"このフィールドは電話番号の形式ではありません",qq:"このフィールドはqq数値形式ではありません",required:"この項目は必須です",enum:"フィールド値は{{enum}}のいずれかである必要があります",cons:"フィールド値は{{const}}と等しくなければなりません",multipleOf:"フィールド値を{{multipleOf}}で割り切れない",maxProperties:"フィールドプロパティの数は{{maxProperties}}を超えることはできません",minProperties:"フィールドプロパティの数は{{minProperties}}未満にすることはできません",uniqueItems:"配列要素は一意ではありません"}};return Kr}var Zr,ma;function at(){if(ma)return Zr;ma=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(I,E)=>e(I,"name",{value:E,configurable:!0}),b=(I,E)=>{for(var R in E)e(I,R,{get:E[R],enumerable:!0})},v=(I,E,R,N)=>{if(E&&typeof E=="object"||typeof E=="function")for(let L of o(E))!f.call(I,L)&&L!==R&&e(I,L,{get:()=>E[L],enumerable:!(N=t(E,L))||N.enumerable});return I},F=I=>v(e({},"__esModule",{value:!0}),I),_={};b(_,{getLocaleByPath:()=>y,getValidateFormats:()=>x,getValidateLanguage:()=>d,getValidateLocale:()=>m,getValidateLocaleIOSCode:()=>l,getValidateMessageTemplateEngine:()=>g,getValidateRules:()=>P,registerValidateFormats:()=>O,registerValidateLocale:()=>S,registerValidateMessageTemplateEngine:()=>w,registerValidateRules:()=>j,setValidateLanguage:()=>p}),Zr=F(_);var n=ue();const c=n.FormPath.getIn,h=n.globalThisPolyfill,s="en",u={locales:{messages:{},language:r(()=>h.navigator&&(h.navigator.browserlanguage||h.navigator.language)||s,"getBrowserlanguage")()},formats:{},rules:{},template:null},i=r(I=>{let E=u.locales.language;if(u.locales.messages[I])return I;const R=(0,n.lowerCase)(I);return(0,n.each)(u.locales.messages,(N,L)=>{const q=(0,n.lowerCase)(L);if(q.indexOf(R)>-1||R.indexOf(q)>-1)return E=L,!1}),E},"getISOCode"),l=i,p=r(I=>{u.locales.language=I||s},"setValidateLanguage"),d=r(()=>u.locales.language,"getValidateLanguage"),y=r((I,E=u.locales.language)=>c(u.locales.messages,`${i(E)}.${I}`),"getLocaleByPath"),m=r(I=>y(I)||y("pattern")||y("pattern",s),"getValidateLocale"),g=r(()=>u.template,"getValidateMessageTemplateEngine"),x=r(I=>I?u.formats[I]:u.formats,"getValidateFormats"),P=r(I=>I?u.rules[I]:u.rules,"getValidateRules"),S=r(I=>{u.locales.messages=(0,n.merge)(u.locales.messages,I)},"registerValidateLocale"),j=r(I=>{(0,n.each)(I,(E,R)=>{(0,n.isFn)(E)&&(u.rules[R]=E)})},"registerValidateRules"),O=r(I=>{(0,n.each)(I,(E,R)=>{((0,n.isStr)(E)||E instanceof RegExp)&&(u.formats[R]=new RegExp(E))})},"registerValidateFormats"),w=r(I=>{u.template=I},"registerValidateMessageTemplateEngine");return Zr}var Qr,fa;function mu(){if(fa)return Qr;fa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{render:()=>h}),Qr=F(_);var n=ue(),c=at();const h=r((s,a)=>{const{message:u}=s;if((0,n.isStr)(u)){const i=(0,c.getValidateMessageTemplateEngine)();(0,n.isFn)(i)&&(s.message=i(u,a)),s.message=s.message.replace(/\{\{\s*([\w.]+)\s*\}\}/g,(l,p)=>n.FormPath.getIn(a,p))}return s},"render");return Qr}var Xr,ha;function ba(){if(ha)return Xr;ha=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(c,h)=>e(c,"name",{value:h,configurable:!0}),b=(c,h)=>{for(var s in h)e(c,s,{get:h[s],enumerable:!0})},v=(c,h,s,a)=>{if(h&&typeof h=="object"||typeof h=="function")for(let u of o(h))!f.call(c,u)&&u!==s&&e(c,u,{get:()=>h[u],enumerable:!(a=t(h,u))||a.enumerable});return c},F=c=>v(e({},"__esModule",{value:!0}),c),_={};b(_,{isValidateResult:()=>n}),Xr=F(_);const n=r(c=>!!c.type&&!!c.message,"isValidateResult");return Xr}var $r,va;function ya(){if(va)return $r;va=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(d,y)=>e(d,"name",{value:y,configurable:!0}),b=(d,y)=>{for(var m in y)e(d,m,{get:y[m],enumerable:!0})},v=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of o(y))!f.call(d,x)&&x!==m&&e(d,x,{get:()=>y[x],enumerable:!(g=t(y,x))||g.enumerable});return d},F=d=>v(e({},"__esModule",{value:!0}),d),_={};b(_,{parseValidator:()=>p,parseValidatorDescription:()=>u,parseValidatorDescriptions:()=>i,parseValidatorRules:()=>l}),$r=F(_);var n=ue(),c=at(),h=mu(),s=ba();const a=r((d,y)=>d.format?d.message||(0,c.getValidateLocale)(d.format):d.message||(0,c.getValidateLocale)(y),"getRuleMessage"),u=r(d=>{if(!d)return{};let y={};return(0,n.isStr)(d)?y.format=d:(0,n.isFn)(d)?y.validator=d:y=Object.assign(y,d),y},"parseValidatorDescription"),i=r(d=>d?((0,n.isArr)(d)?d:[d]).map(m=>u(m)):[],"parseValidatorDescriptions"),l=r((d={})=>{const y=r(()=>{const x=[];"required"in d&&x.push("required");for(let P in d)P==="required"||P==="validator"||x.push(P);return"validator"in d&&x.push("validator"),x},"getRulesKeys"),m=r((x,P)=>W(T(T({},d),x),{value:P}),"getContext"),g=r((x,P)=>(S,j)=>ie(null,null,function*(){const O=m(j,S);try{const w=yield x(S,W(T({},d),{message:P}),O,(I,E)=>{var R;return(R=(0,h.render)({type:"error",message:I},Object.assign(O,E)))==null?void 0:R.message});return(0,n.isBool)(w)?w?{type:"error",message:void 0}:(0,h.render)({type:"error",message:P},O):w?(0,s.isValidateResult)(w)?(0,h.render)(w,O):(0,h.render)({type:"error",message:w},O):{type:"error",message:void 0}}catch(w){return{type:"error",message:(w==null?void 0:w.message)||w}}}),"createValidate");return y().reduce((x,P)=>{const S=(0,c.getValidateRules)(P);if(S){const j=g(S,a(d,P));return x.concat(j)}return x},[])},"parseValidatorRules"),p=r((d,y={})=>d?((0,n.isArr)(d)?d:[d]).reduce((g,x)=>{var j;const P=u(x),S=(j=P.triggerType)!=null?j:"onInput";return y!=null&&y.triggerType&&y.triggerType!==S?g:P?g.concat(l(P)):g},[]):[],"parseValidator");return $r}var eo,_a;function fu(){if(_a)return eo;_a=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(p,d)=>e(p,"name",{value:d,configurable:!0}),b=(p,d)=>{for(var y in d)e(p,y,{get:d[y],enumerable:!0})},v=(p,d,y,m)=>{if(d&&typeof d=="object"||typeof d=="function")for(let g of o(d))!f.call(p,g)&&g!==y&&e(p,g,{get:()=>d[g],enumerable:!(m=t(d,g))||m.enumerable});return p},F=p=>v(e({},"__esModule",{value:!0}),p),_={};b(_,{default:()=>i}),eo=F(_);var n=ue(),c=at();const h=r(p=>{var d;if((0,n.isArr)(p)){for(let y=0;y<p.length;y++)if((0,n.isValid)(p[y]))return!1;return!0}else return p!=null&&p.getCurrentContent?!((d=p.getCurrentContent())!=null&&d.hasText()):(0,n.isEmpty)(p)},"isValidateEmpty"),s=r(p=>(0,n.isStr)(p)?(0,n.stringLength)(p):p?p.length:0,"getLength"),a=r((p,d)=>{(0,n.each)(d,(y,m)=>{p[m]=(g,x,...P)=>p[y](g,W(T({},x),{[y]:x[m]}),...P)})},"extendSameRules"),u={format(p,d){if(h(p))return"";if(d.format){const y=(0,c.getValidateFormats)(d.format);if(y)return new RegExp(y).test(p)?"":d.message}return""},required(p,d){return d.required===!1?"":h(p)?d.message:""},max(p,d){if(h(p))return"";const y=(0,n.isNum)(p)?p:s(p),m=Number(d.max);return y>m?d.message:""},min(p,d){if(h(p))return"";const y=(0,n.isNum)(p)?p:s(p),m=Number(d.min);return y<m?d.message:""},exclusiveMaximum(p,d){if(h(p))return"";const y=(0,n.isNum)(p)?p:s(p),m=Number(d.exclusiveMaximum);return y>=m?d.message:""},exclusiveMinimum(p,d){if(h(p))return"";const y=(0,n.isNum)(p)?p:s(p),m=Number(d.exclusiveMinimum);return y<=m?d.message:""},len(p,d){if(h(p))return"";const y=s(p),m=Number(d.len);return y!==m?d.message:""},pattern(p,d){return h(p)||new RegExp(d.pattern).test(p)?"":d.message},validator(p,d,y,m){return ie(this,null,function*(){if((0,n.isFn)(d.validator)){const g=yield Promise.resolve(d.validator(p,d,y,m));return(0,n.isBool)(g)?g?"":d.message:g}throw new Error("The rule's validator property must be a function.")})},whitespace(p,d){if(h(p))return"";if(d.whitespace)return/^\s+$/.test(p)?d.message:""},enum(p,d){return h(p)?"":(0,n.toArr)(d.enum).indexOf(p)===-1?d.message:""},const(p,d){return h(p)?"":d.const!==p?d.message:""},multipleOf(p,d){return h(p)?"":Number(p)%Number(d.multipleOf)!==0?d.message:""},uniqueItems(p,d){return h(p)?"":(p=(0,n.toArr)(p),p.some((y,m)=>{for(let g=0;g<p.length;g++)if(g!==m&&!(0,n.isEqual)(p[g],y))return!1;return!0})?"":d.message)},maxProperties(p,d){return h(p)||Object.keys(p||{}).length<=Number(d.maxProperties)?"":d.message},minProperties(p,d){return h(p)||Object.keys(p||{}).length>=Number(d.minProperties)?"":d.message}};a(u,{maximum:"max",minimum:"min",maxItems:"max",minItems:"min",maxLength:"max",minLength:"min"});var i=u;return eo}var to,xa;function hu(){if(xa)return to;xa=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(d,y)=>t(d,"name",{value:y,configurable:!0}),F=(d,y)=>{for(var m in y)t(d,m,{get:y[m],enumerable:!0})},_=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of f(y))!b.call(d,x)&&x!==m&&t(d,x,{get:()=>y[x],enumerable:!(g=o(y,x))||g.enumerable});return d},n=(d,y,m)=>(m=d!=null?e(r(d)):{},_(!d||!d.__esModule?t(m,"default",{value:d,enumerable:!0}):m,d)),c=d=>_(t({},"__esModule",{value:!0}),d),h={};F(h,{validate:()=>p}),to=c(h);var s=n(pu()),a=n(du()),u=ya(),i=at(),l=n(fu());(0,i.registerValidateRules)(l.default),(0,i.registerValidateLocale)(a.default),(0,i.registerValidateFormats)(s.default);const p=v((d,y,m)=>ie(null,null,function*(){const g=(0,u.parseValidator)(y,m),x={error:[],success:[],warning:[]};for(let P=0;P<g.length;P++){const S=yield g[P](d,m==null?void 0:m.context),{type:j,message:O}=S;if(x[j]=x[j]||[],O&&(x[j].push(O),m!=null&&m.validateFirst))break}return x}),"validate");return to}var ga;function ro(){return ga||(ga=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,hu(),e.exports),v(_,ya(),e.exports),v(_,at(),e.exports),v(_,ba(),e.exports)}(Yr)),Yr.exports}var oo={exports:{}},no,Fa;function Sa(){if(Fa)return no;Fa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{LifeCycle:()=>h}),no=F(_);var n=ue();const c=class{constructor(...a){this.buildListener=r(u=>function(i,l){for(let p=0;p<u.length;p++){let d=u[p];(0,n.isFn)(d)?d.call(this,i,l):(0,n.isStr)(d)&&(0,n.isFn)(u[p+1])?(d===i.type&&u[p+1].call(this,i.payload,l),p++):(0,n.each)(d,(y,m)=>{if((0,n.isFn)(y)&&(0,n.isStr)(m)&&m===i.type)return y.call(this,i.payload,l),!1})}},"buildListener"),this.notify=r((u,i,l)=>{(0,n.isStr)(u)&&this.listener.call(l,{type:u,payload:i},l)},"notify"),this.listener=this.buildListener(a)}};r(c,"LifeCycle");let h=c;return no}var so,Pa;function Oa(){if(Pa)return so;Pa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{Heart:()=>s}),so=F(_);var n=ue(),c=Sa();const h=class extends n.Subscribable{constructor({lifecycles:u,context:i}={}){super(),this.lifecycles=[],this.outerLifecycles=new Map,this.buildLifeCycles=r(l=>l.reduce((p,d)=>d instanceof c.LifeCycle?p.concat(d):(0,n.isArr)(d)?this.buildLifeCycles(d):(typeof d=="object"&&(this.context=d),p),[]),"buildLifeCycles"),this.addLifeCycles=r((l,p=[])=>{const d=this.buildLifeCycles(p);d.length&&this.outerLifecycles.set(l,d)},"addLifeCycles"),this.hasLifeCycles=r(l=>this.outerLifecycles.has(l),"hasLifeCycles"),this.removeLifeCycles=r(l=>{this.outerLifecycles.delete(l)},"removeLifeCycles"),this.setLifeCycles=r((l=[])=>{this.lifecycles=this.buildLifeCycles(l)},"setLifeCycles"),this.publish=r((l,p,d)=>{(0,n.isStr)(l)&&(this.lifecycles.forEach(y=>{y.notify(l,p,d||this.context)}),this.outerLifecycles.forEach(y=>{y.forEach(m=>{m.notify(l,p,d||this.context)})}),this.notify({type:l,payload:p}))},"publish"),this.clear=r(()=>{this.lifecycles=[],this.outerLifecycles.clear(),this.unsubscribe()},"clear"),this.lifecycles=this.buildLifeCycles(u||[]),this.context=i}};r(h,"Heart");let s=h;return so}var ao,Ca;function _t(){if(Ca)return ao;Ca=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(O,w)=>e(O,"name",{value:w,configurable:!0}),b=(O,w)=>{for(var I in w)e(O,I,{get:w[I],enumerable:!0})},v=(O,w,I,E)=>{if(w&&typeof w=="object"||typeof w=="function")for(let R of o(w))!f.call(O,R)&&R!==I&&e(O,R,{get:()=>w[R],enumerable:!(E=t(w,R))||E.enumerable});return O},F=O=>v(e({},"__esModule",{value:!0}),O),_={};b(_,{isArrayField:()=>u,isArrayFieldState:()=>m,isDataField:()=>g,isDataFieldState:()=>x,isField:()=>a,isFieldState:()=>d,isForm:()=>h,isFormState:()=>p,isGeneralField:()=>s,isGeneralFieldState:()=>y,isObjectField:()=>i,isObjectFieldState:()=>P,isQuery:()=>j,isVoidField:()=>l,isVoidFieldState:()=>S}),ao=F(_);var n=ue(),c=go();const h=r(O=>O instanceof c.Form,"isForm"),s=r(O=>O instanceof c.Field||O instanceof c.VoidField,"isGeneralField"),a=r(O=>O instanceof c.Field,"isField"),u=r(O=>O instanceof c.ArrayField,"isArrayField"),i=r(O=>O instanceof c.ObjectField,"isObjectField"),l=r(O=>O instanceof c.VoidField,"isVoidField"),p=r(O=>(0,n.isFn)(O==null?void 0:O.initialize)?!1:(O==null?void 0:O.displayName)==="Form","isFormState"),d=r(O=>(0,n.isFn)(O==null?void 0:O.initialize)?!1:(O==null?void 0:O.displayName)==="Field","isFieldState"),y=r(O=>{var w;return(0,n.isFn)(O==null?void 0:O.initialize)?!1:((w=O==null?void 0:O.displayName)==null?void 0:w.indexOf("Field"))>-1},"isGeneralFieldState"),m=r(O=>(0,n.isFn)(O==null?void 0:O.initialize)?!1:(O==null?void 0:O.displayName)==="ArrayField","isArrayFieldState"),g=r(O=>a(O)||u(O)||i(O),"isDataField"),x=r(O=>d(O)||P(O)||m(O),"isDataFieldState"),P=r(O=>(0,n.isFn)(O==null?void 0:O.initialize)?!1:(O==null?void 0:O.displayName)==="ObjectField","isObjectFieldState"),S=r(O=>(0,n.isFn)(O==null?void 0:O.initialize)?!1:(O==null?void 0:O.displayName)==="VoidField","isVoidFieldState"),j=r(O=>O&&O instanceof c.Query,"isQuery");return ao}var io,wa;function Ea(){if(wa)return io;wa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{Graph:()=>a}),io=F(_);var n=Oe(),c=ue(),h=_t();const s=class{constructor(i){this.getGraph=r(()=>{const l={};return l[""]=this.form.getState(),(0,c.each)(this.form.fields,(p,d)=>{l[d]=p.getState()}),l},"getGraph"),this.setGraph=r(l=>{const p=this.form,d=r((y,m)=>{const g=c.FormPath.parse(y),x=g.segments[g.segments.length-1],P=g.parent();return(0,h.isFieldState)(m)?this.form.createField({name:x,basePath:P}):(0,h.isArrayFieldState)(m)?this.form.createArrayField({name:x,basePath:P}):(0,h.isObjectFieldState)(m)?this.form.createObjectField({name:x,basePath:P}):this.form.createVoidField({name:x,basePath:P})},"createField");(0,c.each)(l,(y,m)=>{if((0,h.isFormState)(y))p.setState(y);else{const g=p.fields[m];g?g.setState(y):d(m,y).setState(y)}})},"setGraph"),this.form=i,(0,n.define)(this,{setGraph:n.batch})}};r(s,"Graph");let a=s;return io}var co,ja;function Ke(){if(ja)return co;ja=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(n,c)=>{for(var h in c)e(n,h,{get:c[h],enumerable:!0})},b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of o(c))!f.call(n,a)&&a!==h&&e(n,a,{get:()=>c[a],enumerable:!(s=t(c,a))||s.enumerable});return n},v=n=>b(e({},"__esModule",{value:!0}),n),F={};r(F,{LifeCycleTypes:()=>_}),co=v(F);var _=(n=>(n.ON_FORM_INIT="onFormInit",n.ON_FORM_MOUNT="onFormMount",n.ON_FORM_UNMOUNT="onFormUnmount",n.ON_FORM_INPUT_CHANGE="onFormInputChange",n.ON_FORM_VALUES_CHANGE="onFormValuesChange",n.ON_FORM_INITIAL_VALUES_CHANGE="onFormInitialValuesChange",n.ON_FORM_SUBMIT="onFormSubmit",n.ON_FORM_RESET="onFormReset",n.ON_FORM_SUBMIT_START="onFormSubmitStart",n.ON_FORM_SUBMITTING="onFormSubmitting",n.ON_FORM_SUBMIT_END="onFormSubmitEnd",n.ON_FORM_SUBMIT_VALIDATE_START="onFormSubmitValidateStart",n.ON_FORM_SUBMIT_VALIDATE_SUCCESS="onFormSubmitValidateSuccess",n.ON_FORM_SUBMIT_VALIDATE_FAILED="onFormSubmitValidateFailed",n.ON_FORM_SUBMIT_VALIDATE_END="onFormSubmitValidateEnd",n.ON_FORM_SUBMIT_SUCCESS="onFormSubmitSuccess",n.ON_FORM_SUBMIT_FAILED="onFormSubmitFailed",n.ON_FORM_VALIDATE_START="onFormValidateStart",n.ON_FORM_VALIDATING="onFormValidating",n.ON_FORM_VALIDATE_SUCCESS="onFormValidateSuccess",n.ON_FORM_VALIDATE_FAILED="onFormValidateFailed",n.ON_FORM_VALIDATE_END="onFormValidateEnd",n.ON_FORM_GRAPH_CHANGE="onFormGraphChange",n.ON_FORM_LOADING="onFormLoading",n.ON_FIELD_INIT="onFieldInit",n.ON_FIELD_INPUT_VALUE_CHANGE="onFieldInputValueChange",n.ON_FIELD_VALUE_CHANGE="onFieldValueChange",n.ON_FIELD_INITIAL_VALUE_CHANGE="onFieldInitialValueChange",n.ON_FIELD_SUBMIT="onFieldSubmit",n.ON_FIELD_SUBMIT_START="onFieldSubmitStart",n.ON_FIELD_SUBMITTING="onFieldSubmitting",n.ON_FIELD_SUBMIT_END="onFieldSubmitEnd",n.ON_FIELD_SUBMIT_VALIDATE_START="onFieldSubmitValidateStart",n.ON_FIELD_SUBMIT_VALIDATE_SUCCESS="onFieldSubmitValidateSuccess",n.ON_FIELD_SUBMIT_VALIDATE_FAILED="onFieldSubmitValidateFailed",n.ON_FIELD_SUBMIT_VALIDATE_END="onFieldSubmitValidateEnd",n.ON_FIELD_SUBMIT_SUCCESS="onFieldSubmitSuccess",n.ON_FIELD_SUBMIT_FAILED="onFieldSubmitFailed",n.ON_FIELD_VALIDATE_START="onFieldValidateStart",n.ON_FIELD_VALIDATING="onFieldValidating",n.ON_FIELD_VALIDATE_SUCCESS="onFieldValidateSuccess",n.ON_FIELD_VALIDATE_FAILED="onFieldValidateFailed",n.ON_FIELD_VALIDATE_END="onFieldValidateEnd",n.ON_FIELD_LOADING="onFieldLoading",n.ON_FIELD_RESET="onFieldReset",n.ON_FIELD_MOUNT="onFieldMount",n.ON_FIELD_UNMOUNT="onFieldUnmount",n))(_||{});return co}var lo,Ia;function Aa(){if(Ia)return lo;Ia=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(l,p)=>{for(var d in p)e(l,d,{get:p[d],enumerable:!0})},b=(l,p,d,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let m of o(p))!f.call(l,m)&&m!==d&&e(l,m,{get:()=>p[m],enumerable:!(y=t(p,m))||y.enumerable});return l},v=l=>b(e({},"__esModule",{value:!0}),l),F={};r(F,{GlobalState:()=>u,MutuallyExclusiveProperties:()=>s,NumberIndexReg:()=>i,RESPONSE_REQUEST_DURATION:()=>a,ReadOnlyProperties:()=>n,ReservedProperties:()=>_}),lo=v(F);const _={form:!0,parent:!0,props:!0,caches:!0,requests:!0,disposers:!0,heart:!0,graph:!0,indexes:!0,fields:!0,lifecycles:!0,componentType:!0,componentProps:!0,decoratorType:!0,decoratorProps:!0},n={address:!0,path:!0,valid:!0,invalid:!0,selfValid:!0,selfInvalid:!0,errors:!0,successes:!0,warnings:!0,validateStatus:!0},c="selfDisplay",h="selfPattern",s={pattern:h,editable:h,readOnly:h,readPretty:h,disabled:h,display:c,hidden:c,visible:c},a=100,u={lifecycles:[],context:[],effectStart:!1,effectEnd:!1,initializing:!1},i=/^\.(\d+)/;return lo}var uo,Da;function Ze(){if(Da)return uo;Da=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(M,k)=>e(M,"name",{value:k,configurable:!0}),b=(M,k)=>{for(var G in k)e(M,G,{get:k[G],enumerable:!0})},v=(M,k,G,H)=>{if(k&&typeof k=="object"||typeof k=="function")for(let K of o(k))!f.call(M,K)&&K!==G&&e(M,K,{get:()=>k[K],enumerable:!(H=t(k,K))||H.enumerable});return M},F=M=>v(e({},"__esModule",{value:!0}),M),_={};b(_,{allowAssignDefaultValue:()=>En,batchReset:()=>Xp,batchSubmit:()=>Zp,batchValidate:()=>Qp,buildDataPath:()=>g,buildFieldPath:()=>m,cleanupArrayChildren:()=>te,cleanupObjectChildren:()=>Y,createBatchStateGetter:()=>ne,createBatchStateSetter:()=>ee,createChildrenFeedbackFilter:()=>U,createReaction:()=>od,createReactions:()=>rd,createStateGetter:()=>Q,createStateSetter:()=>J,deserialize:()=>z,destroy:()=>S,exchangeArrayState:()=>q,getArrayParent:()=>ad,getObjectParent:()=>id,getTypedDefaultValue:()=>y,getValidFieldDefaultValue:()=>td,getValidFormValues:()=>ed,getValuesFromEvent:()=>d,initFieldUpdate:()=>re,initializeEnd:()=>sd,initializeStart:()=>nd,isHTMLInputEvent:()=>p,locateNode:()=>x,matchFeedback:()=>O,modifySelf:()=>$p,patchFieldStates:()=>P,patchFormValues:()=>j,queryFeedbackMessages:()=>I,queryFeedbacks:()=>w,resetSelf:()=>_c,serialize:()=>B,setLoading:()=>Kp,setSubmitting:()=>qp,setValidating:()=>rt,setValidatorRule:()=>N,spliceArrayState:()=>L,subscribeUpdate:()=>ae,triggerFormInitialValuesChange:()=>pe,triggerFormValuesChange:()=>Ce,updateFeedback:()=>E,validateSelf:()=>wn,validateToFeedbacks:()=>R}),uo=F(_);var n=Oe(),c=ue(),h=ro(),s=Ke(),a=Aa(),u=Ya();const i=Object.prototype.hasOwnProperty,l=r((M,k,G)=>{(0,u.isForm)(M)?M.notify(k):M.notify(G)},"notify"),p=r((M,k=!0)=>{var G;if(M!=null&&M.target){if(typeof M.target=="object"&&("value"in M.target||"checked"in M.target))return!0;k&&((G=M.stopPropagation)==null||G.call(M))}return!1},"isHTMLInputEvent"),d=r(M=>M.map(k=>k!=null&&k.target?(0,c.isValid)(k.target.value)?k.target.value:(0,c.isValid)(k.target.checked)?k.target.checked:void 0:k),"getValuesFromEvent"),y=r(M=>{if((0,u.isArrayField)(M))return[];if((0,u.isObjectField)(M))return{}},"getTypedDefaultValue"),m=r(M=>g(M.form.fields,M.address),"buildFieldPath"),g=r((M,k)=>{let G=!1;const H=k.segments,K=H.reduce((X,$,ce)=>{const me=X.concat($),ye=H.slice(0,ce+1),Me=M[ye.join(".")];if(G)return(0,u.isVoidField)(Me)||(G=!1),X;if(ce>=H.length-1)return me;if((0,u.isVoidField)(Me)){const Re=H.slice(0,ce),lt=M[Re.join(".")];return(0,u.isArrayField)(lt)&&(0,c.isNumberLike)($)?(G=!0,me):X}else G=!1;return me},[]);return new c.FormPath(K)},"buildDataPath"),x=r((M,k)=>(M.address=c.FormPath.parse(k),M.path=m(M),M.form.indexes[M.path.toString()]=M.address.toString(),M),"locateNode"),P=r((M,k)=>{k.forEach(({type:G,address:H,oldAddress:K,payload:X})=>{G==="remove"?S(M,H,!1):G==="update"&&(X&&(M[H]=X,M[K]===X&&(M[K]=void 0)),H&&X&&x(X,H))})},"patchFieldStates"),S=r((M,k,G=!0)=>{const H=M[k];if(H==null||H.dispose(),(0,u.isDataField)(H)&&G){const K=H.form,X=H.path;K.deleteValuesIn(X),K.deleteInitialValuesIn(X)}delete M[k]},"destroy"),j=r((M,k,G)=>{const H=r((X,$)=>{X.length?M.setValuesIn(X,(0,c.clone)($)):Object.assign(M.values,(0,c.clone)($))},"update"),K=r((X,$=[])=>{const ce=M.getValuesIn($),me=M.query($).take(),ye=me&&!(0,u.isVoidField)(me);if(ye&&me.display==="none"){me.caches.value=(0,c.clone)(X);return}if(En(ce,X))H($,X);else{if((0,c.isEmpty)(X)||a.GlobalState.initializing)return;(0,c.isPlainObj)(ce)&&(0,c.isPlainObj)(X)?(0,c.each)(X,(Me,Re)=>{K(Me,$.concat(Re))}):me?ye&&!me.selfModified&&H($,X):M.initialized&&H($,X)}},"patch");K(G,k)},"patchFormValues"),O=r((M,k)=>!(!M||!k||M.type&&M.type!==k.type||M.code&&M.code!==k.code||M.path&&k.path&&!c.FormPath.parse(M.path).match(k.path)||M.address&&k.address&&!c.FormPath.parse(M.address).match(k.address)||M.triggerType&&M.triggerType!==k.triggerType),"matchFeedback"),w=r((M,k)=>M.feedbacks.filter(G=>{var H,K,X;return(H=G.messages)!=null&&H.length?O(k,W(T({},G),{address:(K=M.address)==null?void 0:K.toString(),path:(X=M.path)==null?void 0:X.toString()})):!1}),"queryFeedbacks"),I=r((M,k)=>M.feedbacks.length?w(M,k).reduce((G,H)=>(0,c.isEmpty)(H.messages)?G:G.concat(H.messages),[]):[],"queryFeedbackMessages"),E=r((M,k)=>{if(k)return(0,n.batch)(()=>{var G,H;if(M.feedbacks.length){const K=w(M,k);if(K.length){M.feedbacks=M.feedbacks.reduce((X,$)=>{var ce;return K.includes($)?(ce=k.messages)!=null&&ce.length?($.messages=k.messages,X.concat($)):X:X.concat($)},[]);return}else(H=k.messages)!=null&&H.length&&(M.feedbacks=M.feedbacks.concat(k))}else{if(!((G=k.messages)!=null&&G.length))return;M.feedbacks=[k]}})},"updateFeedback"),R=r((M,k="onInput")=>ie(null,null,function*(){var H;const G=yield(0,h.validate)(M.value,M.validator,{triggerType:k,validateFirst:(H=M.props.validateFirst)!=null?H:M.form.props.validateFirst,context:{field:M,form:M.form}});return(0,n.batch)(()=>{(0,c.each)(G,(K,X)=>{M.setFeedback({triggerType:k,type:X,code:(0,c.pascalCase)(`validate-${X}`),messages:K})})}),G}),"validateToFeedbacks"),N=r((M,k,G)=>{if(!(0,c.isValid)(G))return;const H=(0,h.parseValidatorDescriptions)(M.validator),K=H.some($=>k in $),X={[k]:G};K?M.validator=H.map($=>((0,c.isPlainObj)($)&&i.call($,k)&&($[k]=G),$)):k==="required"?M.validator=[X].concat(H):M.validator=H.concat(X)},"setValidatorRule"),L=r((M,k)=>{const{startIndex:G,deleteCount:H,insertCount:K}=T({startIndex:0,deleteCount:0,insertCount:0},k),X=M.address.toString(),$=X.length,me=M.form.fields,ye=[],Me=K-H,Re=r(be=>be.indexOf(X)===0&&be.length>$,"isArrayChildren"),lt=r(be=>{var fe;const Be=(fe=be.substring($).match(a.NumberIndexReg))==null?void 0:fe[1];return Be===void 0?!1:Number(Be)>G+H-1},"isAfterNode"),Ie=r(be=>{var fe;const Be=(fe=be.substring($).match(a.NumberIndexReg))==null?void 0:fe[1];if(Be===void 0)return!1;const ze=Number(Be);return ze>=G&&ze<G+K},"isInsertNode"),Fe=r(be=>{var fe;const Ne=be.substring(0,$),Be=be.substring($),ze=(fe=Be.match(a.NumberIndexReg))==null?void 0:fe[1];if(ze===void 0)return!1;const ut=Number(ze);return ut>G&&!me[`${Ne}${Be.replace(/^\.\d+/,`.${ut+H}`)}`]||ut===G},"isDeleteNode"),He=r(be=>{var fe;if(Me===0)return be;const Ne=be.substring(0,$),Be=be.substring($),ze=(fe=Be.match(a.NumberIndexReg))==null?void 0:fe[1];if(ze===void 0)return be;const ut=Number(ze)+Me;return`${Ne}${Be.replace(/^\.\d+/,`.${ut}`)}`},"moveIndex");(0,n.batch)(()=>{(0,c.each)(me,(be,fe)=>{if(Re(fe)){if(lt(fe)){const Ne=He(fe);ye.push({type:"update",address:Ne,oldAddress:fe,payload:be})}(Ie(fe)||Fe(fe))&&ye.push({type:"remove",address:fe})}}),P(me,ye)}),M.form.notify(s.LifeCycleTypes.ON_FORM_GRAPH_CHANGE)},"spliceArrayState"),q=r((M,k)=>{const{fromIndex:G,toIndex:H}=T({fromIndex:0,toIndex:0},k),K=M.address.toString(),X=M.form.fields,$=K.length,ce=[],me=r(Ie=>Ie.indexOf(K)===0&&Ie.length>$,"isArrayChildren"),ye=G<H,Me=r(Ie=>{var Fe;const be=(Fe=Ie.slice(K.length).match(a.NumberIndexReg))==null?void 0:Fe[1];if(be===void 0)return!1;const fe=Number(be);return ye?fe>G&&fe<=H:fe<G&&fe>=H},"isMoveNode"),Re=r(Ie=>{var Fe;const be=(Fe=Ie.substring($).match(a.NumberIndexReg))==null?void 0:Fe[1];return be===void 0?!1:Number(be)===G},"isFromNode"),lt=r(Ie=>{const Fe=Ie.substring(0,$),He=Ie.substring($),be=He.match(a.NumberIndexReg)[1];let Ne=Number(be);return Ne===G?Ne=H:Ne+=ye?-1:1,`${Fe}${He.replace(/^\.\d+/,`.${Ne}`)}`},"moveIndex");(0,n.batch)(()=>{(0,c.each)(X,(Ie,Fe)=>{if(me(Fe)&&(Me(Fe)||Re(Fe))){const He=lt(Fe);ce.push({type:"update",address:He,oldAddress:Fe,payload:Ie}),X[He]||ce.push({type:"remove",address:Fe})}}),P(X,ce)}),M.form.notify(s.LifeCycleTypes.ON_FORM_GRAPH_CHANGE)},"exchangeArrayState"),te=r((M,k)=>{const G=M.address.toString(),H=M.form.fields,K=r($=>$.indexOf(G)===0&&$.length>G.length,"isArrayChildren"),X=r($=>{var ce;const ye=(ce=$.slice(G.length).match(a.NumberIndexReg))==null?void 0:ce[1];return ye===void 0?!1:Number(ye)>=k},"isNeedCleanup");(0,n.batch)(()=>{(0,c.each)(H,($,ce)=>{K(ce)&&X(ce)&&$.destroy()})})},"cleanupArrayChildren"),Y=r((M,k)=>{if(k.length===0)return;const G=M.address.toString(),H=M.form.fields,K=r($=>$.indexOf(G)===0&&$.length>G.length,"isObjectChildren"),X=r($=>{var ce;const ye=(ce=$.slice(G.length).match(/^\.([^.]+)/))==null?void 0:ce[1];return ye===void 0?!1:k.includes(ye)},"isNeedCleanup");(0,n.batch)(()=>{(0,c.each)(H,($,ce)=>{K(ce)&&X(ce)&&$.destroy()})})},"cleanupObjectChildren"),re=n.batch.scope.bound(M=>{const k=M.form,G=c.FormPath.ensureIn(k,"requests.updates",[]),H=c.FormPath.ensureIn(k,"requests.updateIndexes",{});for(let K=0;K<G.length;K++){const{pattern:X,callbacks:$}=G[K];let ce=!1;M.match(X)&&($.forEach(me=>{M.setState(me)}),!X.isWildMatchPattern&&!X.isMatchPattern&&(G.splice(K--,1),ce=!0)),ce?delete H[X.toString()]:H[X.toString()]=K}}),ae=r((M,k,G)=>{const H=c.FormPath.ensureIn(M,"requests.updates",[]),K=c.FormPath.ensureIn(M,"requests.updateIndexes",{}),X=k.toString(),$=K[X];(0,c.isValid)($)?H[$]&&!H[$].callbacks.some(ce=>ce.toString()===G.toString()?ce===G:!1)&&H[$].callbacks.push(G):(K[X]=H.length,H.push({pattern:k,callbacks:[G]}))},"subscribeUpdate"),z=r((M,k)=>{if(M){if((0,c.isFn)(k))k(M);else for(let G in k){if(!i.call(k,G)||a.ReadOnlyProperties[G]||a.ReservedProperties[G])continue;const H=a.MutuallyExclusiveProperties[G];if(H&&i.call(k,H)&&!(0,c.isValid)(k[H]))continue;const K=k[G];(0,c.isFn)(K)||(M[G]=K)}return M}},"deserialize"),B=r((M,k)=>{if((0,c.isFn)(k))return k(M);{const G={};for(let H in M){if(!i.call(M,H)||a.ReservedProperties[H])continue;if(H==="address"||H==="path"){G[H]=M[H].toString();continue}const K=M[H];(0,c.isFn)(K)||(G[H]=(0,n.toJS)(K))}return G}},"serialize"),U=r(M=>{var k;const G=(k=M.address)==null?void 0:k.toString();return({address:H})=>H===G||H.indexOf(G+".")===0},"createChildrenFeedbackFilter"),J=r(M=>n.batch.bound(k=>z(M,k)),"createStateSetter"),Q=r(M=>k=>B(M,k),"createStateGetter"),ee=r(M=>n.batch.bound((k,G)=>{if((0,u.isQuery)(k))k.forEach(H=>{H.setState(G)});else if((0,u.isGeneralField)(k))k.setState(G);else{let H=0,K=c.FormPath.parse(k);M.query(K).forEach(X=>{X.setState(G),H++}),(H===0||K.isWildMatchPattern)&&ae(M,K,G)}}),"createBatchStateSetter"),ne=r(M=>(k,G)=>(0,u.isQuery)(k)?k.take(G):(0,u.isGeneralField)(k)?k.getState(G):M.query(k).take(H=>H.getState(G)),"createBatchStateGetter"),pe=r((M,k)=>{Array.isArray(k.object)&&k.key==="length"||((0,n.contains)(M.initialValues,k.object)||M.initialValues===k.value)&&((k.type==="add"||k.type==="set")&&j(M,k.path.slice(1),k.value),M.initialized&&M.notify(s.LifeCycleTypes.ON_FORM_INITIAL_VALUES_CHANGE))},"triggerFormInitialValuesChange"),Ce=r((M,k)=>{Array.isArray(k.object)&&k.key==="length"||((0,n.contains)(M.values,k.object)||M.values===k.value)&&M.initialized&&M.notify(s.LifeCycleTypes.ON_FORM_VALUES_CHANGE)},"triggerFormValuesChange"),rt=r((M,k)=>{clearTimeout(M.requests.validate),k?(M.requests.validate=setTimeout(()=>{(0,n.batch)(()=>{M.validating=k,l(M,s.LifeCycleTypes.ON_FORM_VALIDATING,s.LifeCycleTypes.ON_FIELD_VALIDATING)})},a.RESPONSE_REQUEST_DURATION),l(M,s.LifeCycleTypes.ON_FORM_VALIDATE_START,s.LifeCycleTypes.ON_FIELD_VALIDATE_START)):(M.validating!==k&&(M.validating=k),l(M,s.LifeCycleTypes.ON_FORM_VALIDATE_END,s.LifeCycleTypes.ON_FIELD_VALIDATE_END))},"setValidating"),qp=r((M,k)=>{clearTimeout(M.requests.submit),k?(M.requests.submit=setTimeout(()=>{(0,n.batch)(()=>{M.submitting=k,l(M,s.LifeCycleTypes.ON_FORM_SUBMITTING,s.LifeCycleTypes.ON_FIELD_SUBMITTING)})},a.RESPONSE_REQUEST_DURATION),l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_START,s.LifeCycleTypes.ON_FIELD_SUBMIT_START)):(M.submitting!==k&&(M.submitting=k),l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_END,s.LifeCycleTypes.ON_FIELD_SUBMIT_END))},"setSubmitting"),Kp=r((M,k)=>{clearTimeout(M.requests.loading),k?M.requests.loading=setTimeout(()=>{(0,n.batch)(()=>{M.loading=k,l(M,s.LifeCycleTypes.ON_FORM_LOADING,s.LifeCycleTypes.ON_FIELD_LOADING)})},a.RESPONSE_REQUEST_DURATION):M.loading!==k&&(M.loading=k)},"setLoading"),Zp=r((M,k)=>ie(null,null,function*(){const G=r(K=>(0,u.isForm)(K)?(0,n.toJS)(K.values):(0,n.toJS)(K.value),"getValues");M.setSubmitting(!0);try{l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_START,s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_START),yield M.validate(),l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_SUCCESS,s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_SUCCESS)}catch(K){l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_FAILED,s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_FAILED)}l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_END,s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_END);let H;try{if(M.invalid)throw M.errors;(0,c.isFn)(k)?H=yield k(G(M)):H=G(M),l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_SUCCESS,s.LifeCycleTypes.ON_FIELD_SUBMIT_SUCCESS)}catch(K){throw M.setSubmitting(!1),l(M,s.LifeCycleTypes.ON_FORM_SUBMIT_FAILED,s.LifeCycleTypes.ON_FIELD_SUBMIT_FAILED),l(M,s.LifeCycleTypes.ON_FORM_SUBMIT,s.LifeCycleTypes.ON_FIELD_SUBMIT),K}return M.setSubmitting(!1),l(M,s.LifeCycleTypes.ON_FORM_SUBMIT,s.LifeCycleTypes.ON_FIELD_SUBMIT),H}),"batchSubmit"),yc=r(M=>{var H,K,X,$;const k=(K=(H=M.props.validatePattern)!=null?H:M.form.props.validatePattern)!=null?K:["editable"],G=($=(X=M.props.validateDisplay)!=null?X:M.form.props.validateDisplay)!=null?$:["visible"];return k.includes(M.pattern)&&G.includes(M.display)},"shouldValidate"),Qp=r((M,k,G)=>ie(null,null,function*(){if((0,u.isForm)(M))M.setValidating(!0);else if(!yc(M))return;const H=[];if(M.query(k).forEach(K=>{(0,u.isVoidField)(K)||H.push(wn(K,G,K===M))}),yield Promise.all(H),(0,u.isForm)(M)&&M.setValidating(!1),M.invalid)throw l(M,s.LifeCycleTypes.ON_FORM_VALIDATE_FAILED,s.LifeCycleTypes.ON_FIELD_VALIDATE_FAILED),M.errors;l(M,s.LifeCycleTypes.ON_FORM_VALIDATE_SUCCESS,s.LifeCycleTypes.ON_FIELD_VALIDATE_SUCCESS)}),"batchValidate"),Xp=r((M,k,G)=>ie(null,null,function*(){const H=[];M.query(k).forEach(K=>{(0,u.isVoidField)(K)||H.push(_c(K,G,M===K))}),(0,u.isForm)(M)&&(M.modified=!1),l(M,s.LifeCycleTypes.ON_FORM_RESET,s.LifeCycleTypes.ON_FIELD_RESET),yield Promise.all(H)}),"batchReset"),wn=n.batch.bound((M,k,G=!1)=>ie(null,null,function*(){const H=r(()=>{rt(M,!0)},"start"),K=r(()=>{rt(M,!1),!G&&(M.selfValid?M.notify(s.LifeCycleTypes.ON_FIELD_VALIDATE_SUCCESS):M.notify(s.LifeCycleTypes.ON_FIELD_VALIDATE_FAILED))},"end");if(!yc(M))return{};if(H(),!k){const $=(0,h.parseValidatorDescriptions)(M.validator).reduce((me,ye)=>me.indexOf(ye.triggerType)>-1?me:me.concat(ye.triggerType),[]),ce={};for(let me=0;me<$.length;me++){const ye=yield R(M,$[me]);(0,c.each)(ye,(Me,Re)=>{ce[Re]=ce[Re]||[],ce[Re]=ce[Re].concat(Me)})}return K(),ce}const X=yield R(M,k);return K(),X})),_c=n.batch.bound((M,k,G=!1)=>ie(null,null,function*(){const H=y(M);if(M.modified=!1,M.selfModified=!1,M.visited=!1,M.feedbacks=[],M.inputValue=H,M.inputValues=[],M.caches={},!(0,c.isUndef)(M.value))if(k!=null&&k.forceClear)M.value=H;else{const K=M.initialValue;M.value=(0,n.toJS)((0,c.isUndef)(K)?H:K)}if(G||M.notify(s.LifeCycleTypes.ON_FIELD_RESET),k!=null&&k.validate)return yield wn(M)})),$p=r(M=>{if(M.selfModified)return;M.selfModified=!0,M.modified=!0;let k=M.parent;for(;k;){if((0,u.isDataField)(k)){if(k.modified)return;k.modified=!0}k=k.parent}M.form.modified=!0},"modifySelf"),ed=r(M=>(0,n.isObservable)(M)?M:(0,c.clone)(M||{}),"getValidFormValues"),td=r((M,k)=>En(M,k)?(0,c.clone)(k):M,"getValidFieldDefaultValue"),En=r((M,k)=>{const G=!(0,c.isUndef)(M),H=!(0,c.isUndef)(k);if(!G)return H;if(typeof M==typeof k&&(M===""||M===0))return!1;const K=M!==null&&(0,c.isEmpty)(M,!0),X=k!==null&&(0,c.isEmpty)(k,!0);return K?!X:!1},"allowAssignDefaultValue"),rd=r(M=>{const k=(0,c.toArr)(M.props.reactions);M.form.addEffects(M,()=>{k.forEach(G=>{(0,c.isFn)(G)&&M.disposers.push((0,n.autorun)(n.batch.scope.bound(()=>{M.destroyed||G(M)})))})})},"createReactions"),od=r((M,k)=>(0,n.reaction)(M,n.untracked.bound(k)),"createReaction"),nd=r(()=>{a.GlobalState.initializing=!0},"initializeStart"),sd=r(()=>{n.batch.endpoint(()=>{a.GlobalState.initializing=!1})},"initializeEnd"),ad=r((M,k=M.index)=>{if(k>-1){let G=M.parent;for(;G;){if((0,u.isArrayField)(G))return G;if(G===M.form)return;G=G.parent}}},"getArrayParent"),id=r(M=>{let k=M.parent;for(;k;){if((0,u.isArrayField)(k))return;if((0,u.isObjectField)(k))return k;if(k===M.form)return;k=k.parent}},"getObjectParent");return uo}var po,Ma;function mo(){if(Ma)return po;Ma=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{Query:()=>u}),po=F(_);var n=ue(),c=Ze();const h=r((i,l)=>{if(i)return(0,n.isFn)(l)?l(i,i.address):i},"output"),s=r((i,l)=>{const p=l.toString(),d=i.indexes[p],y=i.fields[p],m=i.fields[d];if(y)return p;if(m)return d},"takeMatchPattern"),a=class{constructor(l){if(this.addresses=[],this.pattern=n.FormPath.parse(l.pattern,l.base),this.form=l.form,this.pattern.isMatchPattern)(0,n.each)(this.form.fields,(p,d)=>{if(!p){delete this.form.fields[d];return}p.match(this.pattern)&&this.addresses.push(d)});else{const p=s(this.form,this.pattern.haveRelativePattern?(0,c.buildDataPath)(l.form.fields,this.pattern):this.pattern);p&&(this.addresses=[p])}}take(l){return h(this.form.fields[this.addresses[0]],l)}map(l){return this.addresses.map(p=>h(this.form.fields[p],l))}forEach(l){return this.addresses.forEach(p=>h(this.form.fields[p],l))}reduce(l,p){return this.addresses.reduce((d,y)=>h(this.form.fields[y],(m,g)=>l(d,m,g)),p)}get(l){const p=this.take();if(p)return p[l]}getIn(l){return n.FormPath.getIn(this.take(),l)}value(){return this.get("value")}initialValue(){return this.get("initialValue")}};r(a,"Query");let u=a;return po}var fo,Ra;function xt(){if(Ra)return fo;Ra=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(d,y)=>e(d,"name",{value:y,configurable:!0}),b=(d,y)=>{for(var m in y)e(d,m,{get:y[m],enumerable:!0})},v=(d,y,m,g)=>{if(y&&typeof y=="object"||typeof y=="function")for(let x of o(y))!f.call(d,x)&&x!==m&&e(d,x,{get:()=>y[x],enumerable:!(g=t(y,x))||g.enumerable});return d},F=d=>v(e({},"__esModule",{value:!0}),d),_={};b(_,{createEffectContext:()=>u,createEffectHook:()=>a,runEffects:()=>p,useEffectForm:()=>l}),fo=F(_);var n=ue(),c=go(),h=_t(),s=Aa();const a=r((d,y)=>(...m)=>{if(s.GlobalState.effectStart)s.GlobalState.lifecycles.push(new c.LifeCycle(d,(g,x)=>{(0,n.isFn)(y)&&y(g,x,...s.GlobalState.context)(...m)}));else throw new Error("Effect hooks cannot be used in asynchronous function body")},"createEffectHook"),u=r(d=>{let y;return{provide(m){if(s.GlobalState.effectStart)y=s.GlobalState.context.length,s.GlobalState.context[y]=(0,n.isValid)(m)?m:d;else throw new Error("Provide method cannot be used in asynchronous function body")},consume(){if(!s.GlobalState.effectStart)throw new Error("Consume method cannot be used in asynchronous function body");return s.GlobalState.context[y]}}},"createEffectContext"),i=u(),l=i.consume,p=r((d,...y)=>(s.GlobalState.lifecycles=[],s.GlobalState.context=[],s.GlobalState.effectStart=!0,s.GlobalState.effectEnd=!1,(0,h.isForm)(d)&&i.provide(d),y.forEach(m=>{(0,n.isFn)(m)&&m(d)}),s.GlobalState.context=[],s.GlobalState.effectStart=!1,s.GlobalState.effectEnd=!0,s.GlobalState.lifecycles),"runEffects");return fo}var ho,Na;function ka(){if(Na)return ho;Na=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{BaseField:()=>u}),ho=F(_);var n=ue(),c=Ze(),h=Ke(),s=mo();const a=class{constructor(){this.disposers=[],this.actions={},this.setTitle=r(l=>{this.title=l},"setTitle"),this.setDescription=r(l=>{this.description=l},"setDescription"),this.setDisplay=r(l=>{this.display=l},"setDisplay"),this.setPattern=r(l=>{this.pattern=l},"setPattern"),this.setComponent=r((l,p)=>{l&&(this.componentType=l),p&&(this.componentProps=this.componentProps||{},Object.assign(this.componentProps,p))},"setComponent"),this.setComponentProps=r(l=>{l&&(this.componentProps=this.componentProps||{},Object.assign(this.componentProps,l))},"setComponentProps"),this.setDecorator=r((l,p)=>{l&&(this.decoratorType=l),p&&(this.decoratorProps=this.decoratorProps||{},Object.assign(this.decoratorProps,p))},"setDecorator"),this.setDecoratorProps=r(l=>{l&&(this.decoratorProps=this.decoratorProps||{},Object.assign(this.decoratorProps,l))},"setDecoratorProps"),this.setData=r(l=>{this.data=l},"setData"),this.setContent=r(l=>{this.content=l},"setContent"),this.onInit=r(()=>{this.initialized=!0,(0,c.initFieldUpdate)(this),this.notify(h.LifeCycleTypes.ON_FIELD_INIT)},"onInit"),this.onMount=r(()=>{this.mounted=!0,this.unmounted=!1,this.notify(h.LifeCycleTypes.ON_FIELD_MOUNT)},"onMount"),this.onUnmount=r(()=>{this.mounted=!1,this.unmounted=!0,this.notify(h.LifeCycleTypes.ON_FIELD_UNMOUNT)},"onUnmount"),this.query=r(l=>new s.Query({pattern:l,base:this.address,form:this.form}),"query"),this.notify=r((l,p)=>this.form.notify(l,p!=null?p:this),"notify"),this.dispose=r(()=>{this.disposers.forEach(l=>{l()}),this.form.removeEffects(this)},"dispose"),this.destroy=r((l=!0)=>{(0,c.destroy)(this.form.fields,this.address.toString(),l)},"destroy"),this.match=r(l=>n.FormPath.parse(l).matchAliasGroup(this.address,this.path),"match"),this.inject=r(l=>{(0,n.each)(l,(p,d)=>{(0,n.isFn)(p)&&(this.actions[d]=p)})},"inject"),this.invoke=r((l,...p)=>{var d,y;return(y=(d=this.actions)[l])==null?void 0:y.call(d,...p)},"invoke")}locate(l){this.form.fields[l.toString()]=this,(0,c.locateNode)(this,l)}get indexes(){return this.path.transform(/^\d+$/,(...l)=>l.map(p=>Number(p)))}get index(){var l;return(l=this.indexes[this.indexes.length-1])!=null?l:-1}get records(){const l=(0,c.getArrayParent)(this);return l==null?void 0:l.value}get record(){var l;const p=(0,c.getObjectParent)(this);if(p)return p.value;const d=this.index,y=(0,c.getArrayParent)(this,d);return y?(l=y.value)==null?void 0:l[d]:this.form.values}get component(){return[this.componentType,this.componentProps]}set component(l){const p=(0,n.toArr)(l);this.componentType=p[0],this.componentProps=p[1]||{}}get decorator(){return[this.decoratorType,this.decoratorProps]}set decorator(l){const p=(0,n.toArr)(l);this.decoratorType=p[0],this.decoratorProps=p[1]||{}}get parent(){let l=this.address.parent(),p=l.toString();for(;!this.form.fields[p];)if(l=l.parent(),p=l.toString(),!p)return;return this.form.fields[p]}get display(){var l;const p=(l=this.parent)==null?void 0:l.display;return p&&p!=="visible"?this.selfDisplay&&this.selfDisplay!=="visible"?this.selfDisplay:p:(0,n.isValid)(this.selfDisplay)?this.selfDisplay:p||this.form.display||"visible"}get pattern(){var l;const p=((l=this.parent)==null?void 0:l.pattern)||this.form.pattern||"editable",d=this.selfPattern;return(0,n.isValid)(d)?p==="readPretty"&&d!=="editable"?p:d:p}get editable(){return this.pattern==="editable"}get disabled(){return this.pattern==="disabled"}get readOnly(){return this.pattern==="readOnly"}get readPretty(){return this.pattern==="readPretty"}get hidden(){return this.display==="hidden"}get visible(){return this.display==="visible"}get destroyed(){return!this.form.fields[this.address.toString()]}set hidden(l){(0,n.isValid)(l)&&(l?this.display="hidden":this.display="visible")}set visible(l){(0,n.isValid)(l)&&(l?this.display="visible":this.display="none")}set editable(l){(0,n.isValid)(l)&&(l?this.pattern="editable":this.pattern="readPretty")}set readOnly(l){(0,n.isValid)(l)&&(l?this.pattern="readOnly":this.pattern="editable")}set disabled(l){(0,n.isValid)(l)&&(l?this.pattern="disabled":this.pattern="editable")}set readPretty(l){(0,n.isValid)(l)&&(l?this.pattern="readPretty":this.pattern="editable")}set pattern(l){this.selfPattern=l}set display(l){this.selfDisplay=l}};r(a,"BaseField");let u=a;return ho}var bo,Ta;function gt(){if(Ta)return bo;Ta=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(p,d)=>e(p,"name",{value:d,configurable:!0}),b=(p,d)=>{for(var y in d)e(p,y,{get:d[y],enumerable:!0})},v=(p,d,y,m)=>{if(d&&typeof d=="object"||typeof d=="function")for(let g of o(d))!f.call(p,g)&&g!==y&&e(p,g,{get:()=>d[g],enumerable:!(m=t(d,g))||m.enumerable});return p},F=p=>v(e({},"__esModule",{value:!0}),p),_={};b(_,{Field:()=>l}),bo=F(_);var n=Oe(),c=ue(),h=ro(),s=Ze(),a=Ke(),u=ka();const i=class extends u.BaseField{constructor(d,y,m,g){super(),this.displayName="Field",this.caches={},this.requests={},this.setDataSource=r(x=>{this.dataSource=x},"setDataSource"),this.setFeedback=r(x=>{(0,s.updateFeedback)(this,x)},"setFeedback"),this.setSelfErrors=r(x=>{this.selfErrors=x},"setSelfErrors"),this.setSelfWarnings=r(x=>{this.selfWarnings=x},"setSelfWarnings"),this.setSelfSuccesses=r(x=>{this.selfSuccesses=x},"setSelfSuccesses"),this.setValidator=r(x=>{this.validator=x},"setValidator"),this.setValidatorRule=r((x,P)=>{(0,s.setValidatorRule)(this,x,P)},"setValidatorRule"),this.setRequired=r(x=>{this.required=x},"setRequired"),this.setValue=r(x=>{if(!this.destroyed){if(!this.initialized){if(this.display==="none"){this.caches.value=x;return}if(x=(0,s.getValidFieldDefaultValue)(x,this.initialValue),!(0,s.allowAssignDefaultValue)(this.value,x)&&!this.designable)return}this.form.setValuesIn(this.path,x)}},"setValue"),this.setInitialValue=r(x=>{this.destroyed||!this.initialized&&!(0,s.allowAssignDefaultValue)(this.initialValue,x)&&!this.designable||this.form.setInitialValuesIn(this.path,x)},"setInitialValue"),this.setLoading=r(x=>{(0,s.setLoading)(this,x)},"setLoading"),this.setValidating=r(x=>{(0,s.setValidating)(this,x)},"setValidating"),this.setSubmitting=r(x=>{(0,s.setSubmitting)(this,x)},"setSubmitting"),this.setState=(0,s.createStateSetter)(this),this.getState=(0,s.createStateGetter)(this),this.onInput=r((...x)=>ie(this,null,function*(){const P=r(w=>{var I,E;return(0,s.isHTMLInputEvent)(w[0])&&"currentTarget"in w[0]?((I=w[0])==null?void 0:I.target)===((E=w[0])==null?void 0:E.currentTarget):!0},"isHTMLInputEventFromSelf"),S=r(w=>{var I;return(I=w[0])!=null&&I.target&&!(0,s.isHTMLInputEvent)(w[0])?w:(0,s.getValuesFromEvent)(w)},"getValues");if(!P(x))return;const j=S(x),O=j[0];this.caches.inputting=!0,this.inputValue=O,this.inputValues=j,this.value=O,this.modify(),this.notify(a.LifeCycleTypes.ON_FIELD_INPUT_VALUE_CHANGE),this.notify(a.LifeCycleTypes.ON_FORM_INPUT_CHANGE,this.form),yield(0,s.validateSelf)(this,"onInput"),this.caches.inputting=!1}),"onInput"),this.onFocus=r((...x)=>ie(this,null,function*(){var P;(P=x[0])!=null&&P.target&&!(0,s.isHTMLInputEvent)(x[0],!1)||(this.active=!0,this.visited=!0,yield(0,s.validateSelf)(this,"onFocus"))}),"onFocus"),this.onBlur=r((...x)=>ie(this,null,function*(){var P;(P=x[0])!=null&&P.target&&!(0,s.isHTMLInputEvent)(x[0],!1)||(this.active=!1,yield(0,s.validateSelf)(this,"onBlur"))}),"onBlur"),this.validate=r(x=>(0,s.batchValidate)(this,`${this.address}.**`,x),"validate"),this.submit=r(x=>(0,s.batchSubmit)(this,x),"submit"),this.reset=r(x=>(0,s.batchReset)(this,`${this.address}.**`,x),"reset"),this.queryFeedbacks=r(x=>(0,s.queryFeedbacks)(this,x),"queryFeedbacks"),this.modify=r(()=>(0,s.modifySelf)(this),"modify"),this.form=m,this.props=y,this.designable=g,(0,s.initializeStart)(),this.locate(d),this.initialize(),this.makeObservable(),this.makeReactive(),this.onInit(),(0,s.initializeEnd)()}initialize(){this.initialized=!1,this.loading=!1,this.validating=!1,this.submitting=!1,this.selfModified=!1,this.active=!1,this.visited=!1,this.mounted=!1,this.unmounted=!1,this.inputValues=[],this.inputValue=null,this.feedbacks=[],this.title=this.props.title,this.description=this.props.description,this.display=this.props.display,this.pattern=this.props.pattern,this.editable=this.props.editable,this.disabled=this.props.disabled,this.readOnly=this.props.readOnly,this.readPretty=this.props.readPretty,this.visible=this.props.visible,this.hidden=this.props.hidden,this.dataSource=this.props.dataSource,this.validator=this.props.validator,this.required=this.props.required,this.content=this.props.content,this.initialValue=this.props.initialValue,this.value=this.props.value,this.data=this.props.data,this.decorator=(0,c.toArr)(this.props.decorator),this.component=(0,c.toArr)(this.props.component)}makeObservable(){this.designable||(0,n.define)(this,{path:n.observable.ref,title:n.observable.ref,description:n.observable.ref,dataSource:n.observable.ref,selfDisplay:n.observable.ref,selfPattern:n.observable.ref,loading:n.observable.ref,validating:n.observable.ref,submitting:n.observable.ref,selfModified:n.observable.ref,modified:n.observable.ref,active:n.observable.ref,visited:n.observable.ref,initialized:n.observable.ref,mounted:n.observable.ref,unmounted:n.observable.ref,inputValue:n.observable.ref,inputValues:n.observable.ref,decoratorType:n.observable.ref,componentType:n.observable.ref,content:n.observable.ref,feedbacks:n.observable.ref,decoratorProps:n.observable,componentProps:n.observable,validator:n.observable.shallow,data:n.observable.shallow,component:n.observable.computed,decorator:n.observable.computed,errors:n.observable.computed,warnings:n.observable.computed,successes:n.observable.computed,valid:n.observable.computed,invalid:n.observable.computed,selfErrors:n.observable.computed,selfWarnings:n.observable.computed,selfSuccesses:n.observable.computed,selfValid:n.observable.computed,selfInvalid:n.observable.computed,validateStatus:n.observable.computed,value:n.observable.computed,initialValue:n.observable.computed,display:n.observable.computed,pattern:n.observable.computed,required:n.observable.computed,hidden:n.observable.computed,visible:n.observable.computed,disabled:n.observable.computed,readOnly:n.observable.computed,readPretty:n.observable.computed,editable:n.observable.computed,indexes:n.observable.computed,setDisplay:n.action,setTitle:n.action,setDescription:n.action,setDataSource:n.action,setValue:n.action,setPattern:n.action,setInitialValue:n.action,setLoading:n.action,setValidating:n.action,setFeedback:n.action,setSelfErrors:n.action,setSelfWarnings:n.action,setSelfSuccesses:n.action,setValidator:n.action,setRequired:n.action,setComponent:n.action,setComponentProps:n.action,setDecorator:n.action,setDecoratorProps:n.action,setData:n.action,setContent:n.action,validate:n.action,reset:n.action,onInit:n.batch,onInput:n.batch,onMount:n.batch,onUnmount:n.batch,onFocus:n.batch,onBlur:n.batch})}makeReactive(){this.designable||(this.disposers.push((0,s.createReaction)(()=>this.value,d=>{this.notify(a.LifeCycleTypes.ON_FIELD_VALUE_CHANGE),(0,c.isValid)(d)&&(this.selfModified&&!this.caches.inputting&&(0,s.validateSelf)(this),!(0,c.isEmpty)(d)&&this.display==="none"&&(this.caches.value=(0,n.toJS)(d),this.form.deleteValuesIn(this.path)))}),(0,s.createReaction)(()=>this.initialValue,()=>{this.notify(a.LifeCycleTypes.ON_FIELD_INITIAL_VALUE_CHANGE)}),(0,s.createReaction)(()=>this.display,d=>{var m;const y=this.value;d!=="none"?y===void 0&&this.caches.value!==void 0&&(this.setValue(this.caches.value),this.caches.value=void 0):(this.caches.value=(m=(0,n.toJS)(y))!=null?m:(0,n.toJS)(this.initialValue),this.form.deleteValuesIn(this.path)),(d==="none"||d==="hidden")&&this.setFeedback({type:"error",messages:[]})}),(0,s.createReaction)(()=>this.pattern,d=>{d!=="editable"&&this.setFeedback({type:"error",messages:[]})})),(0,s.createReactions)(this))}get selfErrors(){return(0,s.queryFeedbackMessages)(this,{type:"error"})}get errors(){return this.form.errors.filter((0,s.createChildrenFeedbackFilter)(this))}get selfWarnings(){return(0,s.queryFeedbackMessages)(this,{type:"warning"})}get warnings(){return this.form.warnings.filter((0,s.createChildrenFeedbackFilter)(this))}get selfSuccesses(){return(0,s.queryFeedbackMessages)(this,{type:"success"})}get successes(){return this.form.successes.filter((0,s.createChildrenFeedbackFilter)(this))}get selfValid(){return!this.selfErrors.length}get valid(){return!this.errors.length}get selfInvalid(){return!this.selfValid}get invalid(){return!this.valid}get value(){return this.form.getValuesIn(this.path)}get initialValue(){return this.form.getInitialValuesIn(this.path)}get required(){return((0,c.isArr)(this.validator)?this.validator:(0,h.parseValidatorDescriptions)(this.validator)).some(y=>!!(y!=null&&y.required))}get validateStatus(){if(this.validating)return"validating";if(this.selfInvalid)return"error";if(this.selfWarnings.length)return"warning";if(this.selfSuccesses.length)return"success"}set required(d){this.required!==d&&this.setValidatorRule("required",d)}set value(d){this.setValue(d)}set initialValue(d){this.setInitialValue(d)}set selfErrors(d){this.setFeedback({type:"error",code:"EffectError",messages:d})}set selfWarnings(d){this.setFeedback({type:"warning",code:"EffectWarning",messages:d})}set selfSuccesses(d){this.setFeedback({type:"success",code:"EffectSuccess",messages:d})}};r(i,"Field");let l=i;return bo}var vo,Va;function Ba(){if(Va)return vo;Va=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{ArrayField:()=>u}),vo=F(_);var n=Oe(),c=ue(),h=Ze(),s=gt();const a=class extends s.Field{constructor(l,p,d,y){super(l,p,d,y),this.displayName="ArrayField",this.push=r((...m)=>(0,n.action)(()=>((0,c.isArr)(this.value)||(this.value=[]),this.value.push(...m),this.onInput(this.value))),"push"),this.pop=r(()=>{if((0,c.isArr)(this.value))return(0,n.action)(()=>{const m=this.value.length-1;return(0,h.spliceArrayState)(this,{startIndex:m,deleteCount:1}),this.value.pop(),this.onInput(this.value)})},"pop"),this.insert=r((m,...g)=>(0,n.action)(()=>{if((0,c.isArr)(this.value)||(this.value=[]),g.length!==0)return(0,h.spliceArrayState)(this,{startIndex:m,insertCount:g.length}),this.value.splice(m,0,...g),this.onInput(this.value)}),"insert"),this.remove=r(m=>{if((0,c.isArr)(this.value))return(0,n.action)(()=>((0,h.spliceArrayState)(this,{startIndex:m,deleteCount:1}),this.value.splice(m,1),this.onInput(this.value)))},"remove"),this.shift=r(()=>{if((0,c.isArr)(this.value))return(0,n.action)(()=>(this.value.shift(),this.onInput(this.value)))},"shift"),this.unshift=r((...m)=>(0,n.action)(()=>((0,c.isArr)(this.value)||(this.value=[]),(0,h.spliceArrayState)(this,{startIndex:0,insertCount:m.length}),this.value.unshift(...m),this.onInput(this.value))),"unshift"),this.move=r((m,g)=>{if((0,c.isArr)(this.value)&&m!==g)return(0,n.action)(()=>((0,c.move)(this.value,m,g),(0,h.exchangeArrayState)(this,{fromIndex:m,toIndex:g}),this.onInput(this.value)))},"move"),this.moveUp=r(m=>{if((0,c.isArr)(this.value))return this.move(m,m-1<0?this.value.length-1:m-1)},"moveUp"),this.moveDown=r(m=>{if((0,c.isArr)(this.value))return this.move(m,m+1>=this.value.length?0:m+1)},"moveDown"),this.makeAutoCleanable()}makeAutoCleanable(){this.disposers.push((0,n.reaction)(()=>{var l;return(l=this.value)==null?void 0:l.length},(l,p)=>{p&&!l?(0,h.cleanupArrayChildren)(this,0):l<p&&(0,h.cleanupArrayChildren)(this,l)}))}};r(a,"ArrayField");let u=a;return vo}var yo,La;function Ua(){if(La)return yo;La=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{ObjectField:()=>a}),yo=F(_);var n=Oe(),c=Ze(),h=gt();const s=class extends h.Field{constructor(i,l,p,d){super(i,l,p,d),this.displayName="ObjectField",this.additionalProperties=[],this.addProperty=r((y,m)=>(this.form.setValuesIn(this.path.concat(y),m),this.additionalProperties.push(y),this.onInput(this.value)),"addProperty"),this.removeProperty=r(y=>(this.form.deleteValuesIn(this.path.concat(y)),this.additionalProperties.splice(this.additionalProperties.indexOf(y),1),this.onInput(this.value)),"removeProperty"),this.existProperty=r(y=>this.form.existValuesIn(this.path.concat(y)),"existProperty"),this.makeAutoCleanable()}makeAutoCleanable(){this.disposers.push((0,n.reaction)(()=>Object.keys(this.value||{}),i=>{const l=this.additionalProperties.filter(p=>!i.includes(p));(0,c.cleanupObjectChildren)(this,l)}))}};r(s,"ObjectField");let a=s;return yo}var _o,Ga;function Ha(){if(Ga)return _o;Ga=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{VoidField:()=>u}),_o=F(_);var n=Oe(),c=ue(),h=Ze(),s=ka();const a=class extends s.BaseField{constructor(l,p,d,y){super(),this.displayName="VoidField",this.setState=(0,h.createStateSetter)(this),this.getState=(0,h.createStateGetter)(this),this.form=d,this.props=p,this.designable=y,(0,h.initializeStart)(),this.locate(l),this.initialize(),this.makeObservable(),this.makeReactive(),this.onInit(),(0,h.initializeEnd)()}initialize(){this.mounted=!1,this.unmounted=!1,this.initialized=!1,this.title=this.props.title,this.description=this.props.description,this.pattern=this.props.pattern,this.display=this.props.display,this.hidden=this.props.hidden,this.editable=this.props.editable,this.disabled=this.props.disabled,this.readOnly=this.props.readOnly,this.readPretty=this.props.readPretty,this.visible=this.props.visible,this.content=this.props.content,this.data=this.props.data,this.decorator=(0,c.toArr)(this.props.decorator),this.component=(0,c.toArr)(this.props.component)}makeObservable(){this.designable||(0,n.define)(this,{path:n.observable.ref,title:n.observable.ref,description:n.observable.ref,selfDisplay:n.observable.ref,selfPattern:n.observable.ref,initialized:n.observable.ref,mounted:n.observable.ref,unmounted:n.observable.ref,decoratorType:n.observable.ref,componentType:n.observable.ref,content:n.observable.ref,data:n.observable.shallow,decoratorProps:n.observable,componentProps:n.observable,display:n.observable.computed,pattern:n.observable.computed,hidden:n.observable.computed,visible:n.observable.computed,disabled:n.observable.computed,readOnly:n.observable.computed,readPretty:n.observable.computed,editable:n.observable.computed,component:n.observable.computed,decorator:n.observable.computed,indexes:n.observable.computed,setTitle:n.action,setDescription:n.action,setDisplay:n.action,setPattern:n.action,setComponent:n.action,setComponentProps:n.action,setDecorator:n.action,setDecoratorProps:n.action,setData:n.action,setContent:n.action,onInit:n.batch,onMount:n.batch,onUnmount:n.batch})}makeReactive(){this.designable||(0,h.createReactions)(this)}};r(a,"VoidField");let u=a;return _o}var xo,za;function bu(){if(za)return xo;za=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(j,O)=>e(j,"name",{value:O,configurable:!0}),b=(j,O)=>{for(var w in O)e(j,w,{get:O[w],enumerable:!0})},v=(j,O,w,I)=>{if(O&&typeof O=="object"||typeof O=="function")for(let E of o(O))!f.call(j,E)&&E!==w&&e(j,E,{get:()=>O[E],enumerable:!(I=t(O,E))||I.enumerable});return j},F=j=>v(e({},"__esModule",{value:!0}),j),_={};b(_,{Form:()=>S}),xo=F(_);var n=Oe(),c=ue(),h=_t(),s=xt(),a=Ze(),u=Ke(),i=Ba(),l=gt(),p=Ea(),d=Oa(),y=Ua(),m=mo(),g=Ha();const x="__FORMILY_DEV_TOOLS_HOOK__",P=class{constructor(O){this.displayName="Form",this.fields={},this.requests={},this.indexes={},this.disposers=[],this.createField=r(w=>{const I=c.FormPath.parse(w.basePath).concat(w.name),E=I.toString();if(E)return(!this.fields[E]||this.props.designable)&&((0,n.batch)(()=>{new l.Field(I,w,this,this.props.designable)}),this.notify(u.LifeCycleTypes.ON_FORM_GRAPH_CHANGE)),this.fields[E]},"createField"),this.createArrayField=r(w=>{const I=c.FormPath.parse(w.basePath).concat(w.name),E=I.toString();if(E)return(!this.fields[E]||this.props.designable)&&((0,n.batch)(()=>{new i.ArrayField(I,W(T({},w),{value:(0,c.isArr)(w.value)?w.value:[]}),this,this.props.designable)}),this.notify(u.LifeCycleTypes.ON_FORM_GRAPH_CHANGE)),this.fields[E]},"createArrayField"),this.createObjectField=r(w=>{const I=c.FormPath.parse(w.basePath).concat(w.name),E=I.toString();if(E)return(!this.fields[E]||this.props.designable)&&((0,n.batch)(()=>{new y.ObjectField(I,W(T({},w),{value:(0,c.isObj)(w.value)?w.value:{}}),this,this.props.designable)}),this.notify(u.LifeCycleTypes.ON_FORM_GRAPH_CHANGE)),this.fields[E]},"createObjectField"),this.createVoidField=r(w=>{const I=c.FormPath.parse(w.basePath).concat(w.name),E=I.toString();if(E)return(!this.fields[E]||this.props.designable)&&((0,n.batch)(()=>{new g.VoidField(I,w,this,this.props.designable)}),this.notify(u.LifeCycleTypes.ON_FORM_GRAPH_CHANGE)),this.fields[E]},"createVoidField"),this.setValues=r((w,I="merge")=>{(0,c.isPlainObj)(w)&&(I==="merge"||I==="deepMerge"?(0,c.merge)(this.values,w,{arrayMerge:r((E,R)=>R,"arrayMerge"),assign:!0}):I==="shallowMerge"?Object.assign(this.values,w):this.values=w)},"setValues"),this.setInitialValues=r((w,I="merge")=>{(0,c.isPlainObj)(w)&&(I==="merge"||I==="deepMerge"?(0,c.merge)(this.initialValues,w,{arrayMerge:r((E,R)=>R,"arrayMerge"),assign:!0}):I==="shallowMerge"?Object.assign(this.initialValues,w):this.initialValues=w)},"setInitialValues"),this.setValuesIn=r((w,I)=>{c.FormPath.setIn(this.values,w,I)},"setValuesIn"),this.deleteValuesIn=r(w=>{c.FormPath.deleteIn(this.values,w)},"deleteValuesIn"),this.existValuesIn=r(w=>c.FormPath.existIn(this.values,w),"existValuesIn"),this.getValuesIn=r(w=>c.FormPath.getIn(this.values,w),"getValuesIn"),this.setInitialValuesIn=r((w,I)=>{c.FormPath.setIn(this.initialValues,w,I)},"setInitialValuesIn"),this.deleteInitialValuesIn=r(w=>{c.FormPath.deleteIn(this.initialValues,w)},"deleteInitialValuesIn"),this.existInitialValuesIn=r(w=>c.FormPath.existIn(this.initialValues,w),"existInitialValuesIn"),this.getInitialValuesIn=r(w=>c.FormPath.getIn(this.initialValues,w),"getInitialValuesIn"),this.setLoading=r(w=>{(0,a.setLoading)(this,w)},"setLoading"),this.setSubmitting=r(w=>{(0,a.setSubmitting)(this,w)},"setSubmitting"),this.setValidating=r(w=>{(0,a.setValidating)(this,w)},"setValidating"),this.setDisplay=r(w=>{this.display=w},"setDisplay"),this.setPattern=r(w=>{this.pattern=w},"setPattern"),this.addEffects=r((w,I)=>{this.heart.hasLifeCycles(w)||this.heart.addLifeCycles(w,(0,s.runEffects)(this,I))},"addEffects"),this.removeEffects=r(w=>{this.heart.removeLifeCycles(w)},"removeEffects"),this.setEffects=r(w=>{this.heart.setLifeCycles((0,s.runEffects)(this,w))},"setEffects"),this.clearErrors=r((w="*")=>{this.query(w).forEach(I=>{(0,h.isVoidField)(I)||I.setFeedback({type:"error",messages:[]})})},"clearErrors"),this.clearWarnings=r((w="*")=>{this.query(w).forEach(I=>{(0,h.isVoidField)(I)||I.setFeedback({type:"warning",messages:[]})})},"clearWarnings"),this.clearSuccesses=r((w="*")=>{this.query(w).forEach(I=>{(0,h.isVoidField)(I)||I.setFeedback({type:"success",messages:[]})})},"clearSuccesses"),this.query=r(w=>new m.Query({pattern:w,base:"",form:this}),"query"),this.queryFeedbacks=r(w=>this.query(w.address||w.path||"*").reduce((I,E)=>(0,h.isVoidField)(E)?I:I.concat(E.queryFeedbacks(w).map(R=>W(T({},R),{address:E.address.toString(),path:E.path.toString()})).filter(R=>R.messages.length>0)),[]),"queryFeedbacks"),this.notify=r((w,I)=>{this.heart.publish(w,I!=null?I:this)},"notify"),this.subscribe=r(w=>this.heart.subscribe(w),"subscribe"),this.unsubscribe=r(w=>{this.heart.unsubscribe(w)},"unsubscribe"),this.onInit=r(()=>{this.initialized=!0,this.notify(u.LifeCycleTypes.ON_FORM_INIT)},"onInit"),this.onMount=r(()=>{this.mounted=!0,this.notify(u.LifeCycleTypes.ON_FORM_MOUNT),c.globalThisPolyfill[x]&&!this.props.designable&&c.globalThisPolyfill[x].inject(this.id,this)},"onMount"),this.onUnmount=r(()=>{this.notify(u.LifeCycleTypes.ON_FORM_UNMOUNT),this.query("*").forEach(w=>w.destroy(!1)),this.disposers.forEach(w=>w()),this.unmounted=!0,this.indexes={},this.heart.clear(),c.globalThisPolyfill[x]&&!this.props.designable&&c.globalThisPolyfill[x].unmount(this.id)},"onUnmount"),this.setState=(0,a.createStateSetter)(this),this.getState=(0,a.createStateGetter)(this),this.setFormState=(0,a.createStateSetter)(this),this.getFormState=(0,a.createStateGetter)(this),this.setFieldState=(0,a.createBatchStateSetter)(this),this.getFieldState=(0,a.createBatchStateGetter)(this),this.getFormGraph=r(()=>this.graph.getGraph(),"getFormGraph"),this.setFormGraph=r(w=>{this.graph.setGraph(w)},"setFormGraph"),this.clearFormGraph=r((w="*",I=!0)=>{this.query(w).forEach(E=>{E.destroy(I)})},"clearFormGraph"),this.validate=r((w="*")=>(0,a.batchValidate)(this,w),"validate"),this.submit=r(w=>(0,a.batchSubmit)(this,w),"submit"),this.reset=r((w="*",I)=>(0,a.batchReset)(this,w,I),"reset"),this.initialize(O),this.makeObservable(),this.makeReactive(),this.makeValues(),this.onInit()}initialize(O){this.id=(0,c.uid)(),this.props=T({},O),this.initialized=!1,this.submitting=!1,this.validating=!1,this.loading=!1,this.modified=!1,this.mounted=!1,this.unmounted=!1,this.display=this.props.display||"visible",this.pattern=this.props.pattern||"editable",this.editable=this.props.editable,this.disabled=this.props.disabled,this.readOnly=this.props.readOnly,this.readPretty=this.props.readPretty,this.visible=this.props.visible,this.hidden=this.props.hidden,this.graph=new p.Graph(this),this.heart=new d.Heart({lifecycles:this.lifecycles,context:this})}makeValues(){this.values=(0,a.getValidFormValues)(this.props.values),this.initialValues=(0,a.getValidFormValues)(this.props.initialValues)}makeObservable(){(0,n.define)(this,{fields:n.observable.shallow,indexes:n.observable.shallow,initialized:n.observable.ref,validating:n.observable.ref,submitting:n.observable.ref,loading:n.observable.ref,modified:n.observable.ref,pattern:n.observable.ref,display:n.observable.ref,mounted:n.observable.ref,unmounted:n.observable.ref,values:n.observable,initialValues:n.observable,valid:n.observable.computed,invalid:n.observable.computed,errors:n.observable.computed,warnings:n.observable.computed,successes:n.observable.computed,hidden:n.observable.computed,visible:n.observable.computed,editable:n.observable.computed,readOnly:n.observable.computed,readPretty:n.observable.computed,disabled:n.observable.computed,setValues:n.action,setValuesIn:n.action,setInitialValues:n.action,setInitialValuesIn:n.action,setPattern:n.action,setDisplay:n.action,setState:n.action,deleteInitialValuesIn:n.action,deleteValuesIn:n.action,setSubmitting:n.action,setValidating:n.action,reset:n.action,submit:n.action,validate:n.action,onMount:n.batch,onUnmount:n.batch,onInit:n.batch})}makeReactive(){this.disposers.push((0,n.observe)(this,O=>{(0,a.triggerFormInitialValuesChange)(this,O),(0,a.triggerFormValuesChange)(this,O)},!0))}get valid(){return!this.invalid}get invalid(){return this.errors.length>0}get errors(){return this.queryFeedbacks({type:"error"})}get warnings(){return this.queryFeedbacks({type:"warning"})}get successes(){return this.queryFeedbacks({type:"success"})}get lifecycles(){return(0,s.runEffects)(this,this.props.effects)}get hidden(){return this.display==="hidden"}get visible(){return this.display==="visible"}set hidden(O){(0,c.isValid)(O)&&(O?this.display="hidden":this.display="visible")}set visible(O){(0,c.isValid)(O)&&(O?this.display="visible":this.display="none")}get editable(){return this.pattern==="editable"}set editable(O){(0,c.isValid)(O)&&(O?this.pattern="editable":this.pattern="readPretty")}get readOnly(){return this.pattern==="readOnly"}set readOnly(O){(0,c.isValid)(O)&&(O?this.pattern="readOnly":this.pattern="editable")}get disabled(){return this.pattern==="disabled"}set disabled(O){(0,c.isValid)(O)&&(O?this.pattern="disabled":this.pattern="editable")}get readPretty(){return this.pattern==="readPretty"}set readPretty(O){(0,c.isValid)(O)&&(O?this.pattern="readPretty":this.pattern="editable")}};r(P,"Form");let S=P;return xo}var Ja;function go(){return Ja||(Ja=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Oa(),e.exports),v(_,Sa(),e.exports),v(_,Ea(),e.exports),v(_,mo(),e.exports),v(_,bu(),e.exports),v(_,gt(),e.exports),v(_,Ba(),e.exports),v(_,Ua(),e.exports),v(_,Ha(),e.exports)}(oo)),oo.exports}var Fo,Wa;function Ya(){if(Wa)return Fo;Wa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{FormPath:()=>n.FormPath,createEffectContext:()=>a.createEffectContext,createEffectHook:()=>a.createEffectHook,createForm:()=>u,getLocaleByPath:()=>c.getLocaleByPath,getValidateLocaleIOSCode:()=>c.getValidateLocaleIOSCode,isArrayField:()=>s.isArrayField,isArrayFieldState:()=>s.isArrayFieldState,isDataField:()=>s.isDataField,isDataFieldState:()=>s.isDataFieldState,isField:()=>s.isField,isFieldState:()=>s.isFieldState,isForm:()=>s.isForm,isFormState:()=>s.isFormState,isGeneralField:()=>s.isGeneralField,isGeneralFieldState:()=>s.isGeneralFieldState,isObjectField:()=>s.isObjectField,isObjectFieldState:()=>s.isObjectFieldState,isQuery:()=>s.isQuery,isVoidField:()=>s.isVoidField,isVoidFieldState:()=>s.isVoidFieldState,registerValidateFormats:()=>c.registerValidateFormats,registerValidateLocale:()=>c.registerValidateLocale,registerValidateMessageTemplateEngine:()=>c.registerValidateMessageTemplateEngine,registerValidateRules:()=>c.registerValidateRules,setValidateLanguage:()=>c.setValidateLanguage,useEffectForm:()=>a.useEffectForm}),Fo=F(_);var n=ue(),c=ro(),h=go(),s=_t(),a=xt();const u=r(i=>new h.Form(i),"createForm");return Fo}var So,qa;function vu(){if(qa)return So;qa=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(F,_,n,c)=>{if(_&&typeof _=="object"||typeof _=="function")for(let h of o(_))!f.call(F,h)&&h!==n&&e(F,h,{get:()=>_[h],enumerable:!(c=t(_,h))||c.enumerable});return F},b=F=>r(e({},"__esModule",{value:!0}),F),v={};return So=b(v),So}var Po={exports:{}},Oo,Ka;function yu(){if(Ka)return Oo;Ka=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(ae,z)=>e(ae,"name",{value:z,configurable:!0}),b=(ae,z)=>{for(var B in z)e(ae,B,{get:z[B],enumerable:!0})},v=(ae,z,B,U)=>{if(z&&typeof z=="object"||typeof z=="function")for(let J of o(z))!f.call(ae,J)&&J!==B&&e(ae,J,{get:()=>z[J],enumerable:!(U=t(z,J))||U.enumerable});return ae},F=ae=>v(e({},"__esModule",{value:!0}),ae),_={};b(_,{onFormGraphChange:()=>te,onFormInit:()=>u,onFormInitialValuesChange:()=>d,onFormInputChange:()=>y,onFormLoading:()=>Y,onFormMount:()=>i,onFormReact:()=>re,onFormReset:()=>g,onFormSubmit:()=>m,onFormSubmitEnd:()=>P,onFormSubmitFailed:()=>j,onFormSubmitStart:()=>x,onFormSubmitSuccess:()=>S,onFormSubmitValidateEnd:()=>E,onFormSubmitValidateFailed:()=>I,onFormSubmitValidateStart:()=>O,onFormSubmitValidateSuccess:()=>w,onFormUnmount:()=>l,onFormValidateEnd:()=>q,onFormValidateFailed:()=>L,onFormValidateStart:()=>R,onFormValidateSuccess:()=>N,onFormValuesChange:()=>p}),Oo=F(_);var n=Oe(),c=ue(),h=xt(),s=Ke();function a(ae){return(0,h.createEffectHook)(ae,z=>B=>{(0,n.batch)(()=>{B(z)})})}r(a,"createFormEffect");const u=a(s.LifeCycleTypes.ON_FORM_INIT),i=a(s.LifeCycleTypes.ON_FORM_MOUNT),l=a(s.LifeCycleTypes.ON_FORM_UNMOUNT),p=a(s.LifeCycleTypes.ON_FORM_VALUES_CHANGE),d=a(s.LifeCycleTypes.ON_FORM_INITIAL_VALUES_CHANGE),y=a(s.LifeCycleTypes.ON_FORM_INPUT_CHANGE),m=a(s.LifeCycleTypes.ON_FORM_SUBMIT),g=a(s.LifeCycleTypes.ON_FORM_RESET),x=a(s.LifeCycleTypes.ON_FORM_SUBMIT_START),P=a(s.LifeCycleTypes.ON_FORM_SUBMIT_END),S=a(s.LifeCycleTypes.ON_FORM_SUBMIT_SUCCESS),j=a(s.LifeCycleTypes.ON_FORM_SUBMIT_FAILED),O=a(s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_START),w=a(s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_SUCCESS),I=a(s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_FAILED),E=a(s.LifeCycleTypes.ON_FORM_SUBMIT_VALIDATE_END),R=a(s.LifeCycleTypes.ON_FORM_VALIDATE_START),N=a(s.LifeCycleTypes.ON_FORM_VALIDATE_SUCCESS),L=a(s.LifeCycleTypes.ON_FORM_VALIDATE_FAILED),q=a(s.LifeCycleTypes.ON_FORM_VALIDATE_END),te=a(s.LifeCycleTypes.ON_FORM_GRAPH_CHANGE),Y=a(s.LifeCycleTypes.ON_FORM_LOADING);function re(ae){let z=null;u(B=>{z=(0,n.autorun)(()=>{(0,c.isFn)(ae)&&ae(B)})}),l(()=>{z()})}return r(re,"onFormReact"),Oo}var Co,Za;function _u(){if(Za)return Co;Za=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(B,U)=>e(B,"name",{value:U,configurable:!0}),b=(B,U)=>{for(var J in U)e(B,J,{get:U[J],enumerable:!0})},v=(B,U,J,Q)=>{if(U&&typeof U=="object"||typeof U=="function")for(let ee of o(U))!f.call(B,ee)&&ee!==J&&e(B,ee,{get:()=>U[ee],enumerable:!(Q=t(U,ee))||Q.enumerable});return B},F=B=>v(e({},"__esModule",{value:!0}),B),_={};b(_,{onFieldChange:()=>z,onFieldInit:()=>re,onFieldInitialValueChange:()=>d,onFieldInputValueChange:()=>y,onFieldLoading:()=>Y,onFieldMount:()=>i,onFieldReact:()=>ae,onFieldReset:()=>te,onFieldSubmit:()=>j,onFieldSubmitEnd:()=>w,onFieldSubmitFailed:()=>N,onFieldSubmitStart:()=>O,onFieldSubmitSuccess:()=>R,onFieldSubmitValidateEnd:()=>E,onFieldSubmitValidateFailed:()=>q,onFieldSubmitValidateStart:()=>I,onFieldSubmitValidateSuccess:()=>L,onFieldUnmount:()=>l,onFieldValidateEnd:()=>g,onFieldValidateFailed:()=>P,onFieldValidateStart:()=>m,onFieldValidateSuccess:()=>S,onFieldValidating:()=>x,onFieldValueChange:()=>p}),Co=F(_);var n=Oe(),c=ue(),h=xt(),s=Ke();function a(B){return(0,h.createEffectHook)(B,(U,J)=>(Q,ee)=>{c.FormPath.parse(Q).matchAliasGroup(U.address,U.path)&&(0,n.batch)(()=>{ee(U,J)})})}r(a,"createFieldEffect");const u=a(s.LifeCycleTypes.ON_FIELD_INIT),i=a(s.LifeCycleTypes.ON_FIELD_MOUNT),l=a(s.LifeCycleTypes.ON_FIELD_UNMOUNT),p=a(s.LifeCycleTypes.ON_FIELD_VALUE_CHANGE),d=a(s.LifeCycleTypes.ON_FIELD_INITIAL_VALUE_CHANGE),y=a(s.LifeCycleTypes.ON_FIELD_INPUT_VALUE_CHANGE),m=a(s.LifeCycleTypes.ON_FIELD_VALIDATE_START),g=a(s.LifeCycleTypes.ON_FIELD_VALIDATE_END),x=a(s.LifeCycleTypes.ON_FIELD_VALIDATING),P=a(s.LifeCycleTypes.ON_FIELD_VALIDATE_FAILED),S=a(s.LifeCycleTypes.ON_FIELD_VALIDATE_SUCCESS),j=a(s.LifeCycleTypes.ON_FIELD_SUBMIT),O=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_START),w=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_END),I=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_START),E=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_END),R=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_SUCCESS),N=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_FAILED),L=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_SUCCESS),q=a(s.LifeCycleTypes.ON_FIELD_SUBMIT_VALIDATE_FAILED),te=a(s.LifeCycleTypes.ON_FIELD_RESET),Y=a(s.LifeCycleTypes.ON_FIELD_LOADING);function re(B,U){const J=(0,h.useEffectForm)();J.query(B).reduce((ee,ne)=>(U(ne,J),ee+1),0)===0&&u(B,U)}r(re,"onFieldInit");function ae(B,U){re(B,(J,Q)=>{J.disposers.push((0,n.autorun)(()=>{(0,c.isFn)(U)&&U(J,Q)}))})}r(ae,"onFieldReact");function z(B,U,J){(0,c.isFn)(U)?(J=U,U=["value"]):U=U||["value"],re(B,(Q,ee)=>{(0,c.isFn)(J)&&J(Q,ee);const ne=(0,n.reaction)(()=>(0,c.toArr)(U).map(pe=>Q[pe]),()=>{(0,c.isFn)(J)&&J(Q,ee)});Q.disposers.push(ne)})}return r(z,"onFieldChange"),Co}var Qa;function xu(){return Qa||(Qa=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,yu(),e.exports),v(_,_u(),e.exports)}(Po)),Po.exports}var Xa;function Ft(){return Xa||(Xa=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Ya(),e.exports),v(_,vu(),e.exports),v(_,xu(),e.exports),v(_,Ke(),e.exports)}(Wr)),Wr.exports}var wo,$a;function gu(){if($a)return wo;$a=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(x,P)=>e(x,"name",{value:P,configurable:!0}),b=(x,P)=>{for(var S in P)e(x,S,{get:P[S],enumerable:!0})},v=(x,P,S,j)=>{if(P&&typeof P=="object"||typeof P=="function")for(let O of o(P))!f.call(x,O)&&O!==S&&e(x,O,{get:()=>P[O],enumerable:!(j=t(P,O))||j.enumerable});return x},F=x=>v(e({},"__esModule",{value:!0}),x),_={};b(_,{transformFieldProps:()=>g}),wo=F(_);var n=Ft(),c=Oe(),h=ue(),s=aa();const a={onFieldInit:n.onFieldInit,onFieldMount:n.onFieldMount,onFieldUnmount:n.onFieldUnmount,onFieldValueChange:n.onFieldValueChange,onFieldInputValueChange:n.onFieldInputValueChange,onFieldInitialValueChange:n.onFieldInitialValueChange,onFieldValidateStart:n.onFieldValidateStart,onFieldValidateEnd:n.onFieldValidateEnd,onFieldValidateFailed:n.onFieldValidateFailed,onFieldValidateSuccess:n.onFieldValidateSuccess},u=["onFieldInit","onFieldValueChange"],i=r((x,P,S)=>{const[j,O]=String(P).split(/\s*#\s*/);return x.query(j).getIn(O||S||"value")},"getDependencyValue"),l=r((x,P)=>{if((0,h.isArr)(P)){const S=[];return P.forEach(j=>{(0,h.isStr)(j)?S.push(i(x,j)):(0,h.isPlainObj)(j)&&j.name&&j.source&&(S[j.name]=i(x,j.source,j.property))}),S}else if((0,h.isPlainObj)(P))return(0,h.reduce)(P,(S,j,O)=>(S[O]=i(x,j),S),{});return[]},"getDependencies"),p=r((x,P=!1)=>{const{request:S,target:j,runner:O,field:w,scope:I}=x||{};S&&(j?(S.state&&w.form.setFieldState(j,E=>(0,s.patchCompile)(E,S.state,(0,h.lazyMerge)(I,{$target:E}))),S.schema&&w.form.setFieldState(j,E=>(0,s.patchSchemaCompile)(E,S.schema,(0,h.lazyMerge)(I,{$target:E}),P)),(0,h.isStr)(O)&&O&&w.form.setFieldState(j,E=>{(0,s.shallowCompile)(`{{function(){${O}}}}`,(0,h.lazyMerge)(I,{$target:E}))()})):(S.state&&w.setState(E=>(0,s.patchCompile)(E,S.state,I)),S.schema&&w.setState(E=>(0,s.patchSchemaCompile)(E,S.schema,I,P)),(0,h.isStr)(O)&&O&&(0,s.shallowCompile)(`{{function(){${O}}}}`,I)()))},"setSchemaFieldState"),d=r((x,P={})=>{const S=r((N,L)=>c.autorun.memo(()=>(0,c.observable)(N),L),"$observable"),j=r(N=>x.setComponentProps(N),"$props"),O=c.autorun.effect,w=c.autorun.memo,I=x,E=x.form,R=x.form.values;return(0,h.lazyMerge)({get $lookup(){var L;var N;return(L=(N=P==null?void 0:P.scope)==null?void 0:N.$record)!=null?L:R},get $records(){return x.records},get $record(){const N=x.record;return typeof N=="object"?(0,h.lazyMerge)(N,{get $lookup(){var q;var L;return(q=(L=P==null?void 0:P.scope)==null?void 0:L.$record)!=null?q:R},get $index(){return x.index}}):N},get $index(){return x.index}},P.scope,{$form:E,$self:I,$observable:S,$effect:O,$memo:w,$props:j,$values:R})},"getBaseScope"),y=r((x,P)=>S=>{p({field:S,request:{schema:x},scope:d(S,P)},!0)},"getBaseReactions"),m=r((x,P)=>(0,h.toArr)(x["x-reactions"]).map(j=>O=>{const w=d(O,P),I=(0,s.shallowCompile)(j,w);if(!I)return;if((0,h.isFn)(I))return I(O,w);const{when:E,fulfill:R,otherwise:N,target:L,effects:q}=I,te=r(()=>{const Y=l(O,I.dependencies),re=Y,ae=(0,h.lazyMerge)(w,{$target:null,$deps:Y,$dependencies:re}),z=(0,s.shallowCompile)(E,ae),U=(E?z:!0)?R:N,J=U==null?void 0:U.run;p({field:O,target:L,request:U,runner:J,scope:ae})},"run");L&&(I.effects=q!=null&&q.length?q:u),I.effects?c.autorun.memo(()=>{(0,c.untracked)(()=>{(0,h.each)(I.effects,Y=>{a[Y]&&a[Y](O.address,te)})})},[]):te()}),"getUserReactions"),g=r((x,P)=>({name:x.name,reactions:[y(x,P)].concat(m(x,P))}),"transformFieldProps");return wo}var Eo,ei;function ti(){if(ei)return Eo;ei=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(p,d)=>e(p,"name",{value:d,configurable:!0}),b=(p,d)=>{for(var y in d)e(p,y,{get:d[y],enumerable:!0})},v=(p,d,y,m)=>{if(d&&typeof d=="object"||typeof d=="function")for(let g of o(d))!f.call(p,g)&&g!==y&&e(p,g,{get:()=>d[g],enumerable:!(m=t(d,g))||m.enumerable});return p},F=p=>v(e({},"__esModule",{value:!0}),p),_={};b(_,{Schema:()=>l}),Eo=F(_);var n=ue(),c=aa(),h=ca(),s=uu(),a=na(),u=gu();const i=class Ae{constructor(d,y){return this._isJSONSchemaObject=!0,this.version="2.0",this.addProperty=r((m,g)=>(this.properties=this.properties||{},this.properties[m]=new Ae(g,this),this.properties[m].name=m,this.properties[m]),"addProperty"),this.removeProperty=r(m=>{const g=this.properties[m];return delete this.properties[m],g},"removeProperty"),this.setProperties=r(m=>{for(const g in m)this.addProperty(g,m[g]);return this},"setProperties"),this.addPatternProperty=r((m,g)=>{if(g)return this.patternProperties=this.patternProperties||{},this.patternProperties[m]=new Ae(g,this),this.patternProperties[m].name=m,this.patternProperties[m]},"addPatternProperty"),this.removePatternProperty=r(m=>{const g=this.patternProperties[m];return delete this.patternProperties[m],g},"removePatternProperty"),this.setPatternProperties=r(m=>{if(!m)return this;for(const g in m)this.addPatternProperty(g,m[g]);return this},"setPatternProperties"),this.setAdditionalProperties=r(m=>{if(m)return this.additionalProperties=new Ae(m),this.additionalProperties},"setAdditionalProperties"),this.setItems=r(m=>{if(m)return Array.isArray(m)?this.items=m.map(g=>new Ae(g,this)):this.items=new Ae(m,this),this.items},"setItems"),this.setAdditionalItems=r(m=>{if(m)return this.additionalItems=new Ae(m,this),this.additionalItems},"setAdditionalItems"),this.findDefinitions=r(m=>{if(!(!m||!this.root||!(0,n.isStr)(m))&&m.indexOf("#/")===0)return n.FormPath.getIn(this.root,m.substring(2).split("/"))},"findDefinitions"),this.mapProperties=r(m=>Ae.getOrderProperties(this).map(({schema:g,key:x},P)=>m(g,x,P)),"mapProperties"),this.mapPatternProperties=r(m=>Ae.getOrderProperties(this,"patternProperties").map(({schema:g,key:x},P)=>m(g,x,P)),"mapPatternProperties"),this.reduceProperties=r((m,g)=>{let x=g;return Ae.getOrderProperties(this,"properties").forEach(({schema:P,key:S},j)=>{x=m(x,P,S,j)}),x},"reduceProperties"),this.reducePatternProperties=r((m,g)=>{let x=g;return Ae.getOrderProperties(this,"patternProperties").forEach(({schema:P,key:S},j)=>{x=m(x,P,S,j)}),x},"reducePatternProperties"),this.compile=r(m=>{const g=new Ae({},this.parent);return(0,n.each)(this,(x,P)=>{(0,n.isFn)(x)&&!P.includes("x-")||P==="parent"||P==="root"||(a.SchemaNestedMap[P]?g[P]=x&&(0,c.shallowCompile)(x,m):g[P]=x&&(0,c.compile)(x,m))}),g},"compile"),this.fromJSON=r(m=>m?Ae.isSchemaInstance(m)?m:((0,n.each)((0,h.reducePatches)(m),(g,x)=>{(0,n.isFn)(g)&&!x.includes("x-")||(x==="properties"?this.setProperties(g):x==="patternProperties"?this.setPatternProperties(g):x==="additionalProperties"?this.setAdditionalProperties(g):x==="items"?this.setItems(g):x==="additionalItems"?this.setAdditionalItems(g):x==="$ref"?this.fromJSON(this.findDefinitions(g)):this[x]=g)}),this):this,"fromJSON"),this.toJSON=r((m=!0)=>{const g={};return(0,n.each)(this,(x,P)=>{var S,j;if(!((0,n.isFn)(x)&&!P.includes("x-")||P==="parent"||P==="root"))if(P==="properties"||P==="patternProperties"){if(!m)return;g[P]=(0,n.map)(x,O=>{var w;return(w=O==null?void 0:O.toJSON)==null?void 0:w.call(O)})}else if(P==="additionalProperties"||P==="additionalItems"){if(!m)return;g[P]=(S=x==null?void 0:x.toJSON)==null?void 0:S.call(x)}else if(P==="items"){if(!m)return;Array.isArray(x)?g[P]=x.map(O=>{var w;return(w=O==null?void 0:O.toJSON)==null?void 0:w.call(O)}):g[P]=(j=x==null?void 0:x.toJSON)==null?void 0:j.call(x)}else g[P]=x}),g},"toJSON"),this.toFieldProps=r(m=>(0,u.transformFieldProps)(this,m),"toFieldProps"),y?(this.parent=y,this.root=y.root):this.root=this,this.fromJSON(d)}};r(i,"Schema"),i.getOrderProperties=r((p={},d="properties")=>{const y=[],m=[];for(const g in p[d]){const x=p[d][g],P=x["x-index"];isNaN(P)?m.push({schema:x,key:g}):y[P]={schema:x,key:g}}return y.concat(m).filter(g=>!!g)},"getOrderProperties"),i.compile=r((p,d)=>(0,c.compile)(p,d),"compile"),i.shallowCompile=r((p,d)=>(0,c.shallowCompile)(p,d),"shallowCompile"),i.isSchemaInstance=r(p=>(0,n.instOf)(p,i),"isSchemaInstance"),i.registerCompiler=c.registerCompiler,i.registerPatches=h.registerPatches,i.registerVoidComponents=s.registerVoidComponents,i.registerTypeDefaultComponents=s.registerTypeDefaultComponents,i.registerPolyfills=h.registerPolyfills,i.enablePolyfills=h.enablePolyfills,i.silent=c.silent;let l=i;return Eo}var jo,ri;function Fu(){if(ri)return jo;ri=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(F,_,n,c)=>{if(_&&typeof _=="object"||typeof _=="function")for(let h of o(_))!f.call(F,h)&&h!==n&&e(F,h,{get:()=>_[h],enumerable:!(c=t(_,h))||c.enumerable});return F},b=F=>r(e({},"__esModule",{value:!0}),F),v={};return jo=b(v),jo}var oi;function Io(){return oi||(oi=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,ti(),e.exports),v(_,Fu(),e.exports)}(Tt)),Tt.exports}var Ao={exports:{}},Do={exports:{}},Mo={exports:{}},de={};var ni;function Su(){if(ni)return de;ni=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,f=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,b=e?Symbol.for("react.profiler"):60114,v=e?Symbol.for("react.provider"):60109,F=e?Symbol.for("react.context"):60110,_=e?Symbol.for("react.async_mode"):60111,n=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,s=e?Symbol.for("react.suspense_list"):60120,a=e?Symbol.for("react.memo"):60115,u=e?Symbol.for("react.lazy"):60116,i=e?Symbol.for("react.block"):60121,l=e?Symbol.for("react.fundamental"):60117,p=e?Symbol.for("react.responder"):60118,d=e?Symbol.for("react.scope"):60119;function y(g){if(typeof g=="object"&&g!==null){var x=g.$$typeof;switch(x){case t:switch(g=g.type,g){case _:case n:case f:case b:case r:case h:return g;default:switch(g=g&&g.$$typeof,g){case F:case c:case u:case a:case v:return g;default:return x}}case o:return x}}}function m(g){return y(g)===n}return de.AsyncMode=_,de.ConcurrentMode=n,de.ContextConsumer=F,de.ContextProvider=v,de.Element=t,de.ForwardRef=c,de.Fragment=f,de.Lazy=u,de.Memo=a,de.Portal=o,de.Profiler=b,de.StrictMode=r,de.Suspense=h,de.isAsyncMode=function(g){return m(g)||y(g)===_},de.isConcurrentMode=m,de.isContextConsumer=function(g){return y(g)===F},de.isContextProvider=function(g){return y(g)===v},de.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},de.isForwardRef=function(g){return y(g)===c},de.isFragment=function(g){return y(g)===f},de.isLazy=function(g){return y(g)===u},de.isMemo=function(g){return y(g)===a},de.isPortal=function(g){return y(g)===o},de.isProfiler=function(g){return y(g)===b},de.isStrictMode=function(g){return y(g)===r},de.isSuspense=function(g){return y(g)===h},de.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===f||g===n||g===b||g===r||g===h||g===s||typeof g=="object"&&g!==null&&(g.$$typeof===u||g.$$typeof===a||g.$$typeof===v||g.$$typeof===F||g.$$typeof===c||g.$$typeof===l||g.$$typeof===p||g.$$typeof===d||g.$$typeof===i)},de.typeOf=y,de}var si;function Pu(){return si||(si=1,Mo.exports=Su()),Mo.exports}var Ro,ai;function ii(){if(ai)return Ro;ai=1;var e=Pu(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},f={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},b={};b[e.ForwardRef]=f,b[e.Memo]=r;function v(u){return e.isMemo(u)?r:b[u.$$typeof]||t}var F=Object.defineProperty,_=Object.getOwnPropertyNames,n=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,s=Object.prototype;function a(u,i,l){if(typeof i!="string"){if(s){var p=h(i);p&&p!==s&&a(u,p,l)}var d=_(i);n&&(d=d.concat(n(i)));for(var y=v(u),m=v(i),g=0;g<d.length;++g){var x=d[g];if(!o[x]&&!(l&&l[x])&&!(m&&m[x])&&!(y&&y[x])){var P=c(i,x);try{F(u,x,P)}catch(S){}}}}return u}return Ro=a,Ro}var No={exports:{}},ko,ci;function Ou(){if(ci)return ko;ci=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(h,s)=>e(h,"name",{value:s,configurable:!0}),b=(h,s)=>{for(var a in s)e(h,a,{get:s[a],enumerable:!0})},v=(h,s,a,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of o(s))!f.call(h,i)&&i!==a&&e(h,i,{get:()=>s[i],enumerable:!(u=t(s,i))||u.enumerable});return h},F=h=>v(e({},"__esModule",{value:!0}),h),_={};b(_,{globalThisPolyfill:()=>c}),ko=F(_);function n(){try{if(typeof self!="undefined")return self}catch(h){}try{if(typeof window!="undefined")return window}catch(h){}try{if(typeof bt!="undefined")return bt}catch(h){}return Function("return this")()}r(n,"globalSelf");const c=n();return ko}var To,li;function Cu(){if(li)return To;li=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{GarbageCollector:()=>s}),To=F(_);var n=Ou();const c=n.globalThisPolyfill.FinalizationRegistry&&new n.globalThisPolyfill.FinalizationRegistry(a=>{var u;return(u=a==null?void 0:a.clean)==null?void 0:u.call(a)}),h=class{constructor(u,i=1e4){this.token={clean:u},this.expireTime=i}open(u){c?c.register(u,this.token,this.token):this.request=setTimeout(()=>{var i,l;(l=(i=this.token)==null?void 0:i.clean)==null||l.call(i)},this.expireTime)}close(){c?c.unregister(this.token):clearTimeout(this.request)}};r(h,"GarbageCollector");let s=h;return To}var Vo,ui;function wu(){if(ui)return Vo;ui=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(c,h)=>e(c,"name",{value:h,configurable:!0}),b=(c,h)=>{for(var s in h)e(c,s,{get:h[s],enumerable:!0})},v=(c,h,s,a)=>{if(h&&typeof h=="object"||typeof h=="function")for(let u of o(h))!f.call(c,u)&&u!==s&&e(c,u,{get:()=>h[u],enumerable:!(a=t(h,u))||a.enumerable});return c},F=c=>v(e({},"__esModule",{value:!0}),c),_={};b(_,{immediate:()=>n}),Vo=F(_);const n=r(c=>{let h=!1;return Promise.resolve(0).then(()=>{if(h){h=!1;return}c()}),()=>{h=!0}},"immediate");return Vo}var pi;function Bo(){return pi||(pi=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Cu(),e.exports),v(_,wu(),e.exports)}(No)),No.exports}var Lo,di;function mi(){if(di)return Lo;di=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{useCompatEffect:()=>a}),Lo=F(_);var n=V,c=Bo();const h=Array.isArray,s=r((u,i)=>{const l=h(u),p=h(i);return l!==p?!1:l?u.length!==i.length?!1:u.every((d,y)=>d===i[y]):u===i},"isEqualDeps"),a=r((u,i)=>{const l=(0,n.useRef)(null),p=(0,n.useRef)(!1);(0,n.useEffect)(()=>{p.current=!0;const d=u();return()=>{if(p.current=!1,!s(l.current,i)){d&&d();return}(0,c.immediate)(()=>{p.current||d&&d()})}},i),l.current=i},"useCompatEffect");return Lo}var Uo,fi;function hi(){if(fi)return Uo;fi=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(y,m)=>t(y,"name",{value:m,configurable:!0}),F=(y,m)=>{for(var g in m)t(y,g,{get:m[g],enumerable:!0})},_=(y,m,g,x)=>{if(m&&typeof m=="object"||typeof m=="function")for(let P of f(m))!b.call(y,P)&&P!==g&&t(y,P,{get:()=>m[P],enumerable:!(x=o(m,P))||x.enumerable});return y},n=(y,m,g)=>(g=y!=null?e(r(y)):{},_(!y||!y.__esModule?t(g,"default",{value:y,enumerable:!0}):g,y)),c=y=>_(t({},"__esModule",{value:!0}),y),h={};F(h,{useCompatFactory:()=>d}),Uo=c(h);var s=n(V),a=Bo(),u=mi();const i=class{};v(i,"ObjectToBeRetainedByReact");let l=i;function p(){return new l}v(p,"objectToBeRetainedByReactFactory");const d=v(y=>{const m=s.default.useRef(null),g=s.default.useRef(),[x]=s.default.useState(p);return m.current||(m.current=y()),g.current||(g.current=new a.GarbageCollector(()=>{m.current&&m.current.dispose()}),g.current.open(x)),(0,u.useCompatEffect)(()=>(g.current.close(),()=>{m.current&&(m.current.dispose(),m.current=null)}),[]),m.current},"useCompatFactory");return Uo}var Go,bi;function Ho(){if(bi)return Go;bi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(c,h)=>{for(var s in h)e(c,s,{get:h[s],enumerable:!0})},b=(c,h,s,a)=>{if(h&&typeof h=="object"||typeof h=="function")for(let u of o(h))!f.call(c,u)&&u!==s&&e(c,u,{get:()=>h[u],enumerable:!(a=t(h,u))||a.enumerable});return c},v=c=>b(e({},"__esModule",{value:!0}),c),F={};r(F,{useLayoutEffect:()=>n}),Go=v(F);var _=V;const n=typeof document!="undefined"?_.useLayoutEffect:_.useEffect;return Go}var zo,vi;function yi(){if(vi)return zo;vi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{useDidUpdate:()=>s}),zo=F(_);var n=V,c=Bo(),h=Ho();const s=r(a=>{const u=(0,n.useRef)(null);u.current=(0,c.immediate)(a),(0,h.useLayoutEffect)(()=>{u.current(),a()})},"useDidUpdate");return zo}var Jo,_i;function xi(){if(_i)return Jo;_i=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(l,p)=>e(l,"name",{value:p,configurable:!0}),b=(l,p)=>{for(var d in p)e(l,d,{get:p[d],enumerable:!0})},v=(l,p,d,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let m of o(p))!f.call(l,m)&&m!==d&&e(l,m,{get:()=>p[m],enumerable:!(y=t(p,m))||y.enumerable});return l},F=l=>v(e({},"__esModule",{value:!0}),l),_={};b(_,{useForceUpdate:()=>i}),Jo=F(_);var n=V,c=yi(),h=Ho();const s=[],a={value:0},u=new Set;function i(){const[,l]=(0,n.useState)([]),p=(0,n.useRef)(!1),d=(0,n.useRef)(!1);(0,h.useLayoutEffect)(()=>(p.current=!0,d.current&&(l([]),d.current=!1),()=>{p.current=!1}),s);const y=(0,n.useCallback)(()=>{l([])},s),m=(0,n.useCallback)(()=>{if(!p.current){d.current=!0;return}a.value===0?y():u.add(y)},s);return a.value++,(0,c.useDidUpdate)(()=>{a.value>0&&a.value--,a.value===0&&u.forEach(g=>{u.delete(g),g()})}),m}return r(i,"useForceUpdate"),Jo}var Wo,gi;function Fi(){if(gi)return Wo;gi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{useObserver:()=>s}),Wo=F(_);var n=Oe(),c=hi(),h=xi();const s=r((a,u)=>{const i=(0,h.useForceUpdate)();return(0,c.useCompatFactory)(()=>new n.Tracker(()=>{typeof(u==null?void 0:u.scheduler)=="function"?u.scheduler(i):i()},u==null?void 0:u.displayName)).track(a)},"useObserver");return Wo}var Yo,Si;function Eu(){if(Si)return Yo;Si=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(p,d)=>t(p,"name",{value:d,configurable:!0}),F=(p,d)=>{for(var y in d)t(p,y,{get:d[y],enumerable:!0})},_=(p,d,y,m)=>{if(d&&typeof d=="object"||typeof d=="function")for(let g of f(d))!b.call(p,g)&&g!==y&&t(p,g,{get:()=>d[g],enumerable:!(m=o(d,g))||m.enumerable});return p},n=(p,d,y)=>(y=p!=null?e(r(p)):{},_(!p||!p.__esModule?t(y,"default",{value:p,enumerable:!0}):y,p)),c=p=>_(t({},"__esModule",{value:!0}),p),h={};F(h,{Observer:()=>l,observer:()=>i}),Yo=c(h);var s=n(V),a=n(ii()),u=Fi();function i(p,d){const y=T({forwardRef:!1},d),m=y.forwardRef?(0,s.forwardRef)((x,P)=>(0,u.useObserver)(()=>p(W(T({},x),{ref:P})),y)):x=>(0,u.useObserver)(()=>p(x),y),g=(0,s.memo)(m);return(0,a.default)(g,p),y.displayName&&(g.displayName=y.displayName),g}v(i,"observer");const l=i(p=>{const d=typeof p.children=="function"?p.children():p.children;return s.default.createElement(s.Fragment,{},d)});return Yo}var qo,Pi;function ju(){if(Pi)return qo;Pi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(m,g)=>{for(var x in g)e(m,x,{get:g[x],enumerable:!0})},b=(m,g,x,P)=>{if(g&&typeof g=="object"||typeof g=="function")for(let S of o(g))!f.call(m,S)&&S!==x&&e(m,S,{get:()=>g[S],enumerable:!(P=t(g,S))||P.enumerable});return m},v=m=>b(e({},"__esModule",{value:!0}),m),F={};r(F,{unstable_useCompatEffect:()=>i,unstable_useCompatFactory:()=>l,unstable_useDidUpdate:()=>p,unstable_useForceUpdate:()=>u,unstable_useLayoutEffect:()=>d,unstable_useObserver:()=>y}),qo=v(F);var _=mi(),n=hi(),c=yi(),h=xi(),s=Ho(),a=Fi();const u=h.useForceUpdate,i=_.useCompatEffect,l=n.useCompatFactory,p=c.useDidUpdate,d=s.useLayoutEffect,y=a.useObserver;return qo}var Ko,Oi;function Iu(){if(Oi)return Ko;Oi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(F,_,n,c)=>{if(_&&typeof _=="object"||typeof _=="function")for(let h of o(_))!f.call(F,h)&&h!==n&&e(F,h,{get:()=>_[h],enumerable:!(c=t(_,h))||c.enumerable});return F},b=F=>r(e({},"__esModule",{value:!0}),F),v={};return Ko=b(v),Ko}var Ci;function it(){return Ci||(Ci=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Eu(),e.exports),v(_,ju(),e.exports),v(_,Iu(),e.exports)}(Do)),Do.exports}var Zo,wi;function St(){if(wi)return Zo;wi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(h,s)=>e(h,"name",{value:s,configurable:!0}),b=(h,s)=>{for(var a in s)e(h,a,{get:s[a],enumerable:!0})},v=(h,s,a,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of o(s))!f.call(h,i)&&i!==a&&e(h,i,{get:()=>s[i],enumerable:!(u=t(s,i))||u.enumerable});return h},F=h=>v(e({},"__esModule",{value:!0}),h),_={};b(_,{useAttach:()=>c}),Zo=F(_);var n=it();const c=r(h=>((0,n.unstable_useCompatEffect)(()=>(h.onMount(),()=>h.onUnmount()),[h]),h),"useAttach");return Zo}var Qo={exports:{}},Xo,Ei;function ji(){if(Ei)return Xo;Ei=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(x,P)=>t(x,"name",{value:P,configurable:!0}),F=(x,P)=>{for(var S in P)t(x,S,{get:P[S],enumerable:!0})},_=(x,P,S,j)=>{if(P&&typeof P=="object"||typeof P=="function")for(let O of f(P))!b.call(x,O)&&O!==S&&t(x,O,{get:()=>P[O],enumerable:!(j=o(P,O))||j.enumerable});return x},n=(x,P,S)=>(S=x!=null?e(r(x)):{},_(!x||!x.__esModule?t(S,"default",{value:x,enumerable:!0}):S,x)),c=x=>_(t({},"__esModule",{value:!0}),x),h={};F(h,{ContextCleaner:()=>g,FieldContext:()=>i,FormContext:()=>u,SchemaComponentsContext:()=>y,SchemaContext:()=>p,SchemaExpressionScopeContext:()=>d,SchemaMarkupContext:()=>l,SchemaOptionsContext:()=>m}),Xo=c(h);var s=n(V);const a=v((...x)=>({children:P})=>x.reduce((S,j)=>s.default.createElement(j.Provider,{value:void 0},S),P),"createContextCleaner"),u=(0,s.createContext)(null),i=(0,s.createContext)(null),l=(0,s.createContext)(null),p=(0,s.createContext)(null),d=(0,s.createContext)(null),y=(0,s.createContext)(null),m=(0,s.createContext)(null),g=a(i,l,p,d,y,m);return Xo}var $o={exports:{}},en,Ii;function tn(){if(Ii)return en;Ii=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{useForm:()=>h}),en=F(_);var n=V,c=je();const h=r(()=>(0,n.useContext)(c.FormContext),"useForm");return en}var rn,Ai;function Di(){if(Ai)return rn;Ai=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{useField:()=>h}),rn=F(_);var n=V,c=je();const h=r(()=>(0,n.useContext)(c.FieldContext),"useField");return rn}var on,Mi;function Au(){if(Mi)return on;Mi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{useParentForm:()=>s}),on=F(_);var n=Ft(),c=Di(),h=tn();const s=r(()=>{const a=(0,c.useField)(),u=(0,h.useForm)(),i=r(l=>l?(0,n.isObjectField)(l)?l:i(l==null?void 0:l.parent):u,"findObjectParent");return i(a)},"useParentForm");return on}var nn,Ri;function Du(){if(Ri)return nn;Ri=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{useFieldSchema:()=>h}),nn=F(_);var n=V,c=je();const h=r(()=>(0,n.useContext)(c.SchemaContext),"useFieldSchema");return nn}var sn,Ni;function Mu(){if(Ni)return sn;Ni=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{useFormEffects:()=>s}),sn=F(_);var n=it(),c=ue(),h=tn();const s=r(a=>{const u=(0,h.useForm)();(0,n.unstable_useCompatFactory)(()=>{const i=(0,c.uid)();return u.addEffects(i,a),{dispose(){u.removeEffects(i)}}})},"useFormEffects");return sn}var an,ki;function Ru(){if(ki)return an;ki=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{useExpressionScope:()=>h}),an=F(_);var n=V,c=ji();const h=r(()=>(0,n.useContext)(c.SchemaExpressionScopeContext),"useExpressionScope");return an}var Ti;function Ge(){return Ti||(Ti=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,tn(),e.exports),v(_,Di(),e.exports),v(_,Au(),e.exports),v(_,Du(),e.exports),v(_,Mu(),e.exports),v(_,Ru(),e.exports)}($o)),$o.exports}var cn,Vi;function Nu(){if(Vi)return cn;Vi=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(g,x)=>t(g,"name",{value:x,configurable:!0}),F=(g,x)=>{for(var P in x)t(g,P,{get:x[P],enumerable:!0})},_=(g,x,P,S)=>{if(x&&typeof x=="object"||typeof x=="function")for(let j of f(x))!b.call(g,j)&&j!==P&&t(g,j,{get:()=>x[j],enumerable:!(S=o(x,j))||S.enumerable});return g},n=(g,x,P)=>(P=g!=null?e(r(g)):{},_(!g||!g.__esModule?t(P,"default",{value:g,enumerable:!0}):P,g)),c=g=>_(t({},"__esModule",{value:!0}),g),h={};F(h,{Observer:()=>i.Observer,connect:()=>m,mapProps:()=>d,mapReadPretty:()=>y,observer:()=>i.observer}),cn=c(h);var s=n(V),a=n(ii()),u=Ft(),i=it(),l=ue(),p=Ge();function d(...g){return x=>(0,i.observer)(P=>{const S=(0,p.useField)(),j=g.reduce((O,w)=>((0,l.isFn)(w)?O=Object.assign(O,w(O,S)):(0,l.each)(w,(I,E)=>{const R=l.FormPath.getIn(S,E),N=(0,l.isStr)(I)?I:E,L=l.FormPath.getIn(O,N);E==="value"&&I!==E&&delete O.value,!((0,l.isValid)(L)&&!(0,l.isValid)(R))&&l.FormPath.setIn(O,N,R)}),O),T({},P));return s.default.createElement(x,j)},{forwardRef:!0})}v(d,"mapProps");function y(g,x){return P=>(0,i.observer)(S=>{const j=(0,p.useField)();return!(0,u.isVoidField)(j)&&(j==null?void 0:j.pattern)==="readPretty"?s.default.createElement(g,T(T({},x),S)):s.default.createElement(P,S)},{forwardRef:!0})}v(y,"mapReadPretty");function m(g,...x){const P=x.reduce((j,O)=>O(j),g),S=s.default.forwardRef((j,O)=>s.default.createElement(P,W(T({},j),{ref:O})));return g&&(0,a.default)(S,g),S}return v(m,"connect"),cn}var Bi;function je(){return Bi||(Bi=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,ji(),e.exports),v(_,Nu(),e.exports)}(Qo)),Qo.exports}var ln,Li;function ku(){if(Li)return ln;Li=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(a,u)=>e(a,"name",{value:u,configurable:!0}),b=(a,u)=>{for(var i in u)e(a,i,{get:u[i],enumerable:!0})},v=(a,u,i,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let p of o(u))!f.call(a,p)&&p!==i&&e(a,p,{get:()=>u[p],enumerable:!(l=t(u,p))||l.enumerable});return a},F=a=>v(e({},"__esModule",{value:!0}),a),_={};b(_,{FormProvider:()=>s}),ln=F(_);var n=D,c=St(),h=je();const s=r(a=>{const u=(0,c.useAttach)(a.form);return(0,n.jsx)(h.ContextCleaner,{children:(0,n.jsx)(h.FormContext.Provider,{value:u,children:a.children})})},"FormProvider");return s.displayName="FormProvider",ln}var un,Ui;function Tu(){if(Ui)return un;Ui=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},b=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},v=u=>b(e({},"__esModule",{value:!0}),u),F={};r(F,{FormConsumer:()=>a}),un=v(F);var _=D,n=V,c=it(),h=ue(),s=Ge();const a=(0,c.observer)(u=>{const i=(0,h.isFn)(u.children)?u.children((0,s.useForm)()):null;return(0,_.jsx)(n.Fragment,{children:i})});return a.displayName="FormConsumer",un}var pn,Gi;function Pt(){if(Gi)return pn;Gi=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(S,j)=>t(S,"name",{value:j,configurable:!0}),F=(S,j)=>{for(var O in j)t(S,O,{get:j[O],enumerable:!0})},_=(S,j,O,w)=>{if(j&&typeof j=="object"||typeof j=="function")for(let I of f(j))!b.call(S,I)&&I!==O&&t(S,I,{get:()=>j[I],enumerable:!(w=o(j,I))||w.enumerable});return S},n=(S,j,O)=>(O=S!=null?e(r(S)):{},_(!S||!S.__esModule?t(O,"default",{value:S,enumerable:!0}):O,S)),c=S=>_(t({},"__esModule",{value:!0}),S),h={};F(h,{ReactiveField:()=>P}),pn=c(h);var s=D,a=n(V),u=Ft(),i=Oe(),l=it(),p=ue(),d=je();const y=v((S,j)=>{if(!(!S&&!j)&&!(0,p.isFn)(S))return(0,s.jsxs)(a.Fragment,{children:[S,j]})},"mergeChildren"),m=v(S=>S&&(typeof S=="object"||typeof S=="function"),"isValidComponent"),g=v((S,j,O)=>(0,p.isFn)(S)?S(j,O):S,"renderChildren"),x=v(S=>{var N;const j=(0,a.useContext)(d.SchemaComponentsContext);if(!S.field)return(0,s.jsx)(a.Fragment,{children:g(S.children)});const O=S.field,w=y(g(S.children,O,O.form),(N=O.content)!=null?N:O.componentProps.children);if(O.display!=="visible")return null;const I=v(L=>{var q;return m(L)?L:(q=p.FormPath.getIn(j,L))!=null?q:L},"getComponent");return v(L=>O.decoratorType?a.default.createElement(I(O.decoratorType),(0,i.toJS)(O.decoratorProps),L):(0,s.jsx)(a.Fragment,{children:L}),"renderDecorator")(v(()=>{var L,q,te;if(!O.componentType)return w;const Y=(0,u.isVoidField)(O)?void 0:O.value,re=(0,u.isVoidField)(O)?(L=O.componentProps)==null?void 0:L.onChange:(...J)=>{var Q,ee;O.onInput(...J),(ee=(Q=O.componentProps)==null?void 0:Q.onChange)==null||ee.call(Q,...J)},ae=(0,u.isVoidField)(O)?(q=O.componentProps)==null?void 0:q.onFocus:(...J)=>{var Q,ee;O.onFocus(...J),(ee=(Q=O.componentProps)==null?void 0:Q.onFocus)==null||ee.call(Q,...J)},z=(0,u.isVoidField)(O)?(te=O.componentProps)==null?void 0:te.onBlur:(...J)=>{var Q,ee;O.onBlur(...J),(ee=(Q=O.componentProps)==null?void 0:Q.onBlur)==null||ee.call(Q,...J)},B=(0,u.isVoidField)(O)?void 0:O.pattern==="disabled"||O.pattern==="readPretty",U=(0,u.isVoidField)(O)?void 0:O.pattern==="readOnly";return a.default.createElement(I(O.componentType),W(T({disabled:B,readOnly:U},(0,i.toJS)(O.componentProps)),{value:Y,onChange:re,onFocus:ae,onBlur:z}),w)},"renderComponent")())},"ReactiveInternal");x.displayName="ReactiveField";const P=(0,l.observer)(x,{forwardRef:!0});return pn}var dn,Hi;function zi(){if(Hi)return dn;Hi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{ArrayField:()=>u}),dn=F(_);var n=D,c=Ge(),h=St(),s=je(),a=Pt();const u=r(i=>{const l=(0,c.useForm)(),p=(0,c.useField)(),d=(0,h.useAttach)(l.createArrayField(T({basePath:p==null?void 0:p.address},i)));return(0,n.jsx)(s.FieldContext.Provider,{value:d,children:(0,n.jsx)(a.ReactiveField,{field:d,children:i.children})})},"ArrayField");return u.displayName="ArrayField",dn}var mn,Ji;function Wi(){if(Ji)return mn;Ji=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{ObjectField:()=>u}),mn=F(_);var n=D,c=Ge(),h=St(),s=je(),a=Pt();const u=r(i=>{const l=(0,c.useForm)(),p=(0,c.useField)(),d=(0,h.useAttach)(l.createObjectField(T({basePath:p==null?void 0:p.address},i)));return(0,n.jsx)(s.FieldContext.Provider,{value:d,children:(0,n.jsx)(a.ReactiveField,{field:d,children:i.children})})},"ObjectField");return u.displayName="ObjectField",mn}var fn,Yi;function qi(){if(Yi)return fn;Yi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{VoidField:()=>u}),fn=F(_);var n=D,c=Ge(),h=St(),s=je(),a=Pt();const u=r(i=>{const l=(0,c.useForm)(),p=(0,c.useField)(),d=(0,h.useAttach)(l.createVoidField(T({basePath:p==null?void 0:p.address},i)));return(0,n.jsx)(s.FieldContext.Provider,{value:d,children:(0,n.jsx)(a.ReactiveField,{field:d,children:i.children})})},"VoidField");return u.displayName="VoidField",fn}var hn,Ki;function Zi(){if(Ki)return hn;Ki=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(i,l)=>e(i,"name",{value:l,configurable:!0}),b=(i,l)=>{for(var p in l)e(i,p,{get:l[p],enumerable:!0})},v=(i,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let y of o(l))!f.call(i,y)&&y!==p&&e(i,y,{get:()=>l[y],enumerable:!(d=t(l,y))||d.enumerable});return i},F=i=>v(e({},"__esModule",{value:!0}),i),_={};b(_,{Field:()=>u}),hn=F(_);var n=D,c=V,h=Ge(),s=je(),a=Pt();const u=r(i=>{const l=(0,h.useForm)(),p=(0,h.useField)(),d=l.createField(T({basePath:p==null?void 0:p.address},i));return(0,c.useEffect)(()=>(d==null||d.onMount(),()=>{d==null||d.onUnmount()}),[d]),(0,n.jsx)(s.FieldContext.Provider,{value:d,children:(0,n.jsx)(a.ReactiveField,{field:d,children:i.children})})},"Field");return u.displayName="Field",hn}var bn,Qi;function Xi(){if(Qi)return bn;Qi=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(x,P)=>e(x,"name",{value:P,configurable:!0}),b=(x,P)=>{for(var S in P)e(x,S,{get:P[S],enumerable:!0})},v=(x,P,S,j)=>{if(P&&typeof P=="object"||typeof P=="function")for(let O of o(P))!f.call(x,O)&&O!==S&&e(x,O,{get:()=>P[O],enumerable:!(j=t(P,O))||j.enumerable});return x},F=x=>v(e({},"__esModule",{value:!0}),x),_={};b(_,{RecursionField:()=>g}),bn=F(_);var n=D,c=V,h=Io(),s=ue(),a=Ge(),u=je(),i=zi(),l=Zi(),p=Wi(),d=qi();const y=r(x=>{const P=(0,a.useExpressionScope)();return x.toFieldProps({scope:P})},"useFieldProps"),m=r(x=>{const P=(0,a.useField)();return x.onlyRenderProperties?x.basePath||(P==null?void 0:P.address.concat(x.name)):x.basePath||(P==null?void 0:P.address)},"useBasePath"),g=r(x=>{const P=m(x),S=(0,c.useMemo)(()=>new h.Schema(x.schema),[x.schema]),j=y(S),O=r(I=>{if(x.onlyRenderSelf)return;const E=h.Schema.getOrderProperties(S);if(E.length)return(0,n.jsx)(c.Fragment,{children:E.map(({schema:R,key:N},L)=>{const q=(I==null?void 0:I.address)||P;let te=R;if((0,s.isFn)(x.mapProperties)){const Y=x.mapProperties(R,N);Y&&(te=Y)}return(0,s.isFn)(x.filterProperties)&&x.filterProperties(te,N)===!1?null:(0,s.isBool)(x.propsRecursion)&&x.propsRecursion?(0,n.jsx)(g,{propsRecursion:!0,filterProperties:x.filterProperties,mapProperties:x.mapProperties,schema:te,name:N,basePath:q},`${L}-${N}`):(0,n.jsx)(g,{schema:te,name:N,basePath:q},`${L}-${N}`)})})},"renderProperties"),w=r(()=>(0,s.isValid)(x.name)?S.type==="object"?x.onlyRenderProperties?O():(0,n.jsx)(p.ObjectField,W(T({},j),{name:x.name,basePath:P,children:O})):S.type==="array"?(0,n.jsx)(i.ArrayField,W(T({},j),{name:x.name,basePath:P})):S.type==="void"?x.onlyRenderProperties?O():(0,n.jsx)(d.VoidField,W(T({},j),{name:x.name,basePath:P,children:O})):(0,n.jsx)(l.Field,W(T({},j),{name:x.name,basePath:P})):O(),"render");return S?(0,n.jsx)(u.SchemaContext.Provider,{value:S,children:w()}):(0,n.jsx)(c.Fragment,{})},"RecursionField");return bn}var vn,$i;function Ot(){if($i)return vn;$i=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{ExpressionScope:()=>a}),vn=F(_);var n=D,c=V,h=ue(),s=je();const a=r(u=>{const i=(0,c.useContext)(s.SchemaExpressionScopeContext);return(0,n.jsx)(s.SchemaExpressionScopeContext.Provider,{value:(0,h.lazyMerge)(i,u.value),children:u.children})},"ExpressionScope");return vn}var yn,ec;function Vu(){if(ec)return yn;ec=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(s,a)=>e(s,"name",{value:a,configurable:!0}),b=(s,a)=>{for(var u in a)e(s,u,{get:a[u],enumerable:!0})},v=(s,a,u,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of o(a))!f.call(s,l)&&l!==u&&e(s,l,{get:()=>a[l],enumerable:!(i=t(a,l))||i.enumerable});return s},F=s=>v(e({},"__esModule",{value:!0}),s),_={};b(_,{RecordsScope:()=>h}),yn=F(_);var n=D,c=Ot();const h=r(s=>(0,n.jsx)(c.ExpressionScope,{value:{get $records(){var u;var a;return(u=(a=s.getRecords)==null?void 0:a.call(s))!=null?u:[]}},children:s.children}),"RecordsScope");return yn}var _n,tc;function Bu(){if(tc)return _n;tc=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(u,i)=>e(u,"name",{value:i,configurable:!0}),b=(u,i)=>{for(var l in i)e(u,l,{get:i[l],enumerable:!0})},v=(u,i,l,p)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of o(i))!f.call(u,d)&&d!==l&&e(u,d,{get:()=>i[d],enumerable:!(p=t(i,d))||p.enumerable});return u},F=u=>v(e({},"__esModule",{value:!0}),u),_={};b(_,{RecordScope:()=>a}),_n=F(_);var n=D,c=ue(),h=Ge(),s=Ot();const a=r(u=>{const i=(0,h.useExpressionScope)();return(0,n.jsx)(s.ExpressionScope,{value:{get $lookup(){return i==null?void 0:i.$record},get $record(){var l;const p=(l=u.getRecord)==null?void 0:l.call(u);return typeof p=="object"?(0,c.lazyMerge)(p,{get $lookup(){return i==null?void 0:i.$record},get $index(){var d;return(d=u.getIndex)==null?void 0:d.call(u)}}):p},get $index(){var l;return(l=u.getIndex)==null?void 0:l.call(u)}},children:u.children})},"RecordScope");return _n}var xn,rc;function Lu(){if(rc)return xn;rc=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(x,P)=>t(x,"name",{value:P,configurable:!0}),F=(x,P)=>{for(var S in P)t(x,S,{get:P[S],enumerable:!0})},_=(x,P,S,j)=>{if(P&&typeof P=="object"||typeof P=="function")for(let O of f(P))!b.call(x,O)&&O!==S&&t(x,O,{get:()=>P[O],enumerable:!(j=o(P,O))||j.enumerable});return x},n=(x,P,S)=>(S=x!=null?e(r(x)):{},_(!x||!x.__esModule?t(S,"default",{value:x,enumerable:!0}):S,x)),c=x=>_(t({},"__esModule",{value:!0}),x),h={};F(h,{render:()=>g}),xn=c(h);var s=n(V),a=ue(),u,i,l,p,d;const y={portalDOM:(l=(i=(u=a.globalThisPolyfill)==null?void 0:u.document)==null?void 0:i.createElement)==null?void 0:l.call(i,"div"),createPortal:(d=(p=a.globalThisPolyfill)==null?void 0:p.ReactDOM)==null?void 0:d.createPortal},m=v(()=>{var P;var x;if(!y.createPortal)try{(P=y.createPortal)!=null||(y.createPortal=(x=require("react-dom"))==null?void 0:x.createPortal)}catch(S){}if(!y.createPortal)try{import("react-dom").then(S=>{var j;return(j=y.createPortal)!=null?j:y.createPortal=S==null?void 0:S.createPortal}).catch(()=>{})}catch(S){}},"loadCreatePortal"),g=v(x=>{var P;return((P=a.globalThisPolyfill.navigator)==null?void 0:P.product)==="ReactNative"?null:y.portalDOM&&y.createPortal?y.createPortal(x,y.portalDOM):s.default.createElement("template",{},x)},"render");return m(),xn}var gn,oc;function Uu(){if(oc)return gn;oc=1;var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=(P,S)=>t(P,"name",{value:S,configurable:!0}),F=(P,S)=>{for(var j in S)t(P,j,{get:S[j],enumerable:!0})},_=(P,S,j,O)=>{if(S&&typeof S=="object"||typeof S=="function")for(let w of f(S))!b.call(P,w)&&w!==j&&t(P,w,{get:()=>S[w],enumerable:!(O=o(S,w))||O.enumerable});return P},n=(P,S,j)=>(j=P!=null?e(r(P)):{},_(!P||!P.__esModule?t(j,"default",{value:P,enumerable:!0}):j,P)),c=P=>_(t({},"__esModule",{value:!0}),P),h={};F(h,{createSchemaField:()=>x}),gn=c(h);var s=D,a=n(V),u=Io(),i=ue(),l=je(),p=Lu(),d=Ot(),y=Xi();const m={nonameId:0},g=v(()=>`NO_NAME_FIELD_$${m.nonameId++}`,"getRandomName");function x(P={}){function S(Y){const re=u.Schema.isSchemaInstance(Y.schema)?Y.schema:new u.Schema(T({type:"object"},Y.schema)),ae=v(()=>(m.nonameId=0,Y.schema?null:(0,p.render)((0,s.jsx)(l.SchemaMarkupContext.Provider,{value:re,children:Y.children}))),"renderMarkup"),z=v(()=>(0,s.jsx)(y.RecursionField,W(T({},Y),{schema:re})),"renderChildren");return(0,s.jsx)(l.SchemaOptionsContext.Provider,{value:P,children:(0,s.jsx)(l.SchemaComponentsContext.Provider,{value:(0,i.lazyMerge)(P.components,Y.components),children:(0,s.jsxs)(d.ExpressionScope,{value:(0,i.lazyMerge)(P.scope,Y.scope),children:[ae(),z()]})})})}v(S,"SchemaField"),S.displayName="SchemaField";function j(Y){const re=(0,a.useContext)(l.SchemaMarkupContext);if(!re)return(0,s.jsx)(a.Fragment,{});const ae=v(()=>(0,s.jsx)(a.default.Fragment,{children:Y.children}),"renderChildren"),z=v(B=>{const U=re.items;return U&&U.name!==Y.name?re.addProperty(Y.name,B):re.setItems(B)},"appendArraySchema");if(re.type==="object"||re.type==="void"){const B=re.addProperty(Y.name,Y);return(0,s.jsx)(l.SchemaMarkupContext.Provider,{value:B,children:ae()})}else if(re.type==="array"){const B=z(Y);return(0,s.jsx)(l.SchemaMarkupContext.Provider,{value:Array.isArray(B)?B[0]:B,children:Y.children})}else return ae()}v(j,"MarkupRender");function O(Y){return(0,s.jsx)(j,W(T({},Y),{name:Y.name||g()}))}v(O,"MarkupField"),O.displayName="MarkupField";function w(Y){return(0,s.jsx)(O,W(T({},Y),{type:"string"}))}v(w,"StringField"),w.displayName="StringField";function I(Y){return(0,s.jsx)(O,W(T({},Y),{type:"object"}))}v(I,"ObjectField"),I.displayName="ObjectField";function E(Y){return(0,s.jsx)(O,W(T({},Y),{type:"array"}))}v(E,"ArrayField"),E.displayName="ArrayField";function R(Y){return(0,s.jsx)(O,W(T({},Y),{type:"boolean"}))}v(R,"BooleanField"),R.displayName="BooleanField";function N(Y){return(0,s.jsx)(O,W(T({},Y),{type:"number"}))}v(N,"NumberField"),N.displayName="NumberField";function L(Y){return(0,s.jsx)(O,W(T({},Y),{type:"date"}))}v(L,"DateField"),L.displayName="DateField";function q(Y){return(0,s.jsx)(O,W(T({},Y),{type:"datetime"}))}v(q,"DateTimeField"),q.displayName="DateTimeField";function te(Y){return(0,s.jsx)(O,W(T({},Y),{type:"void"}))}return v(te,"VoidField"),te.displayName="VoidField",S.Markup=O,S.String=w,S.Object=I,S.Array=E,S.Boolean=R,S.Date=L,S.DateTime=q,S.Void=te,S.Number=N,S}return v(x,"createSchemaField"),gn}var nc;function Gu(){return nc||(nc=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,ku(),e.exports),v(_,Tu(),e.exports),v(_,zi(),e.exports),v(_,Wi(),e.exports),v(_,qi(),e.exports),v(_,Xi(),e.exports),v(_,Ot(),e.exports),v(_,Vu(),e.exports),v(_,Bu(),e.exports),v(_,Uu(),e.exports),v(_,Zi(),e.exports)}(Ao)),Ao.exports}var Fn,sc;function Hu(){if(sc)return Fn;sc=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,r=(F,_,n,c)=>{if(_&&typeof _=="object"||typeof _=="function")for(let h of o(_))!f.call(F,h)&&h!==n&&e(F,h,{get:()=>_[h],enumerable:!(c=t(_,h))||c.enumerable});return F},b=F=>r(e({},"__esModule",{value:!0}),F),v={};return Fn=b(v),Fn}var ac;function zu(){return ac||(ac=1,function(e){var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,b=(n,c,h,s)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of f(c))!r.call(n,a)&&a!==h&&t(n,a,{get:()=>c[a],enumerable:!(s=o(c,a))||s.enumerable});return n},v=(n,c,h)=>(b(n,c,"default"),h&&b(h,c,"default")),F=n=>b(t({},"__esModule",{value:!0}),n),_={};e.exports=F(_),v(_,Io(),e.exports),v(_,Gu(),e.exports),v(_,je(),e.exports),v(_,Ge(),e.exports),v(_,Hu(),e.exports)}(kt)),kt.exports}var Qe=zu();const ic=V.createContext(null),Sn=({children:e})=>{const[t,o]=V.useState({field:null,fieldSchema:null,schemaMarkup:null,expressionScope:null,schemaComponents:null,schemaOptions:null,form:null,formBlockValue:null,highLightField:null}),f=r=>{o(b=>T(T({},b),r))};return D.jsx(ic.Provider,{value:W(T({},t),{setEditableField:f}),children:e})},Ct=()=>{const e=V.useContext(ic);if(!e)throw new Error("useEditableSelectedField must be used within EditableSelectedFieldProvider");return e},cc=V.createContext(null),Pn=({children:e})=>{const[t,o]=V.useState({field:null,fieldSchema:null,schemaMarkup:null,expressionScope:null,schemaComponents:null,schemaOptions:null,form:null,formBlockValue:null}),f=r=>{o(b=>T(T({},b),r))};return D.jsx(cc.Provider,{value:W(T({},t),{setEditableForm:f}),children:e})},lc=()=>{const e=V.useContext(cc);if(!e)throw new Error("useEditableSelectedForm must be used within EditableSelectedFormProvider");return e},Xe=Ye.createStyles(({css:e})=>({editModel:e`
|
|
77
70
|
height: 100vh;
|
|
78
71
|
top: auto !important;
|
|
79
72
|
max-width: 100vw;
|