mig-schema-table 4.2.12 → 4.2.13

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.
@@ -1,4 +1,4 @@
1
- import { c as $t, l as Ve } from "./index-DpYrNP7x.js";
1
+ import { c as $t, l as Ve } from "./index-DEk0Yp8-.js";
2
2
  function Fe(ye) {
3
3
  throw new Error('Could not dynamically require "' + ye + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -9254,17 +9254,17 @@ const a1 = ({ index: r, style: a }) => {
9254
9254
  [K, gt, V, m]
9255
9255
  ), Ne = S.useMemo(() => ht !== void 0 ? ht : ve === "date-time" && Ke !== !1 ? `${k(V)} (${k(Sp)})` : k(V), [ht, ve, Ke, k, V]), tt = S.useCallback(
9256
9256
  (pe, Tt) => {
9257
- if (!i || !l || !x)
9257
+ if (!i || !l)
9258
9258
  return;
9259
9259
  const Me = i.indexOf(pe), $t = [...i];
9260
9260
  $t.splice(Me, 1);
9261
9261
  const ut = $t.indexOf(Tt);
9262
- $t.splice(ut + 1, 0, pe), localStorage.setItem(
9262
+ $t.splice(ut + 1, 0, pe), p($t);
9263
+ const Et = [...l], lt = Et[Me];
9264
+ Et.splice(Me, 1), Et.splice(ut + 1, 0, lt), te(Et), x && localStorage.setItem(
9263
9265
  `${x}.columnNames`,
9264
9266
  JSON.stringify($t)
9265
- ), p($t);
9266
- const Et = [...l], lt = Et[Me];
9267
- Et.splice(Me, 1), Et.splice(ut + 1, 0, lt), te(Et);
9267
+ );
9268
9268
  },
9269
9269
  [
9270
9270
  i,
@@ -15056,7 +15056,7 @@ const YS = ({
15056
15056
  async (ie) => {
15057
15057
  if (ie.preventDefault(), ie.stopPropagation(), !Je)
15058
15058
  return;
15059
- const { renderDataToExcel: xe } = await import("./index-HBuUJuu6.js");
15059
+ const { renderDataToExcel: xe } = await import("./index-B-mm7Fh5.js");
15060
15060
  xe(Je);
15061
15061
  },
15062
15062
  [Je]
@@ -1,4 +1,4 @@
1
- import { D as E, a as s, E as M, M as _, R as D, b as A, d as I } from "./index-DpYrNP7x.js";
1
+ import { D as E, a as s, E as M, M as _, R as D, b as A, d as I } from "./index-DEk0Yp8-.js";
2
2
  export {
3
3
  E as DEFAULT_DATE_FORMAT,
4
4
  s as DEFAULT_DATE_TIME_FORMAT,
@@ -53,7 +53,7 @@ __p += '`),Vt&&(ze+=`' +
53
53
  function print() { __p += __j.call(arguments, '') }
54
54
  `:`;
55
55
  `)+ze+`return __p
56
- }`;var Nt=mp(function(){return er(se,ft+"return "+ze).apply(e,de)});if(Nt.source=ze,ju(Nt))throw Nt;return Nt}function B4(g){return tr(g).toLowerCase()}function z4(g){return tr(g).toUpperCase()}function W4(g,M,j){if(g=tr(g),g&&(j||M===e))return kd(g);if(!g||!(M=Jr(M)))return g;var X=vn(g),G=vn(M),se=Cd(X,G),de=Md(X,G)+1;return Ci(X,se,de).join("")}function $4(g,M,j){if(g=tr(g),g&&(j||M===e))return g.slice(0,Ed(g)+1);if(!g||!(M=Jr(M)))return g;var X=vn(g),G=Md(X,vn(M))+1;return Ci(X,0,G).join("")}function U4(g,M,j){if(g=tr(g),g&&(j||M===e))return g.replace(pe,"");if(!g||!(M=Jr(M)))return g;var X=vn(g),G=Cd(X,vn(M));return Ci(X,G).join("")}function H4(g,M){var j=U,X=Y;if(hr(M)){var G="separator"in M?M.separator:G;j="length"in M?Rt(M.length):j,X="omission"in M?Jr(M.omission):X}g=tr(g);var se=g.length;if(gs(g)){var de=vn(g);se=de.length}if(j>=se)return g;var me=j-bs(X);if(me<1)return X;var Se=de?Ci(de,0,me).join(""):g.slice(0,me);if(G===e)return Se+X;if(de&&(me+=Se.length-me),Lu(G)){if(g.slice(me).search(G)){var Ne,Pe=Se;for(G.global||(G=Jl(G.source,tr(Be.exec(G))+"g")),G.lastIndex=0;Ne=G.exec(Pe);)var ze=Ne.index;Se=Se.slice(0,ze===e?me:ze)}}else if(g.indexOf(Jr(G),me)!=me){var Qe=Se.lastIndexOf(G);Qe>-1&&(Se=Se.slice(0,Qe))}return Se+X}function Y4(g){return g=tr(g),g&&ct.test(g)?g.replace(kt,wv):g}var V4=ks(function(g,M,j){return g+(j?" ":"")+M.toUpperCase()}),zu=gh("toUpperCase");function pp(g,M,j){return g=tr(g),M=j?e:M,M===e?mv(g)?Sv(g):ov(g):g.match(M)||[]}var mp=Ft(function(g,M){try{return Gr(g,e,M)}catch(j){return ju(j)?j:new Et(j)}}),q4=Jn(function(g,M){return an(M,function(j){j=Fn(j),Gn(g,j,Nu(g[j],g))}),g});function X4(g){var M=g==null?0:g.length,j=gt();return g=M?fr(g,function(X){if(typeof X[1]!="function")throw new ln(i);return[j(X[0]),X[1]]}):[],Ft(function(X){for(var G=-1;++G<M;){var se=g[G];if(Gr(se[0],this,X))return Gr(se[1],this,X)}})}function K4(g){return w2(cn(g,c))}function Wu(g){return function(){return g}}function Z4(g,M){return g==null||g!==g?M:g}var G4=yh(),Q4=yh(!0);function Xr(g){return g}function $u(g){return Xd(typeof g=="function"?g:cn(g,c))}function J4(g){return Zd(cn(g,c))}function e6(g,M){return Gd(g,cn(M,c))}var t6=Ft(function(g,M){return function(j){return eo(j,g,M)}}),r6=Ft(function(g,M){return function(j){return eo(g,j,M)}});function Uu(g,M,j){var X=Er(M),G=Sa(M,X);j==null&&!(hr(M)&&(G.length||!X.length))&&(j=M,M=g,g=this,G=Sa(M,Er(M)));var se=!(hr(j)&&"chain"in j)||!!j.chain,de=ti(g);return an(G,function(me){var Se=M[me];g[me]=Se,de&&(g.prototype[me]=function(){var Ne=this.__chain__;if(se||Ne){var Pe=g(this.__wrapped__),ze=Pe.__actions__=Yr(this.__actions__);return ze.push({func:Se,args:arguments,thisArg:g}),Pe.__chain__=Ne,Pe}return Se.apply(g,vi([this.value()],arguments))})}),g}function n6(){return Ir._===this&&(Ir._=Dv),this}function Hu(){}function i6(g){return g=Rt(g),Ft(function(M){return Qd(M,g)})}var s6=_u(fr),o6=_u(vd),a6=_u(Vl);function gp(g){return Eu(g)?ql(Fn(g)):L2(g)}function l6(g){return function(M){return g==null?e:$i(g,M)}}var u6=wh(),c6=wh(!0);function Yu(){return[]}function Vu(){return!1}function f6(){return{}}function d6(){return""}function h6(){return!0}function p6(g,M){if(g=Rt(g),g<1||g>w)return[];var j=P,X=Pr(g,P);M=gt(M),g-=P;for(var G=Zl(X,M);++j<g;)M(j);return G}function m6(g){return Dt(g)?fr(g,Fn):en(g)?[g]:Yr(jh(tr(g)))}function g6(g){var M=++Tv;return tr(g)+M}var b6=Da(function(g,M){return g+M},0),y6=xu("ceil"),v6=Da(function(g,M){return g/M},1),w6=xu("floor");function _6(g){return g&&g.length?xa(g,Xr,au):e}function x6(g,M){return g&&g.length?xa(g,gt(M,2),au):e}function S6(g){return xd(g,Xr)}function k6(g,M){return xd(g,gt(M,2))}function C6(g){return g&&g.length?xa(g,Xr,fu):e}function M6(g,M){return g&&g.length?xa(g,gt(M,2),fu):e}var T6=Da(function(g,M){return g*M},1),E6=xu("round"),D6=Da(function(g,M){return g-M},0);function O6(g){return g&&g.length?Kl(g,Xr):0}function A6(g,M){return g&&g.length?Kl(g,gt(M,2)):0}return re.after=J3,re.ary=qh,re.assign=z_,re.assignIn=ap,re.assignInWith=$a,re.assignWith=W_,re.at=$_,re.before=Xh,re.bind=Nu,re.bindAll=q4,re.bindKey=Kh,re.castArray=f_,re.chain=Hh,re.chunk=ww,re.compact=_w,re.concat=xw,re.cond=X4,re.conforms=K4,re.constant=Wu,re.countBy=O3,re.create=U_,re.curry=Zh,re.curryRight=Gh,re.debounce=Qh,re.defaults=H_,re.defaultsDeep=Y_,re.defer=e_,re.delay=t_,re.difference=Sw,re.differenceBy=kw,re.differenceWith=Cw,re.drop=Mw,re.dropRight=Tw,re.dropRightWhile=Ew,re.dropWhile=Dw,re.fill=Ow,re.filter=I3,re.flatMap=P3,re.flatMapDeep=j3,re.flatMapDepth=L3,re.flatten=zh,re.flattenDeep=Aw,re.flattenDepth=Iw,re.flip=r_,re.flow=G4,re.flowRight=Q4,re.fromPairs=Rw,re.functions=Q_,re.functionsIn=J_,re.groupBy=F3,re.initial=Pw,re.intersection=jw,re.intersectionBy=Lw,re.intersectionWith=Fw,re.invert=t4,re.invertBy=r4,re.invokeMap=z3,re.iteratee=$u,re.keyBy=W3,re.keys=Er,re.keysIn=qr,re.map=ja,re.mapKeys=i4,re.mapValues=s4,re.matches=J4,re.matchesProperty=e6,re.memoize=Fa,re.merge=o4,re.mergeWith=lp,re.method=t6,re.methodOf=r6,re.mixin=Uu,re.negate=Ba,re.nthArg=i6,re.omit=a4,re.omitBy=l4,re.once=n_,re.orderBy=$3,re.over=s6,re.overArgs=i_,re.overEvery=o6,re.overSome=a6,re.partial=Pu,re.partialRight=Jh,re.partition=U3,re.pick=u4,re.pickBy=up,re.property=gp,re.propertyOf=l6,re.pull=$w,re.pullAll=$h,re.pullAllBy=Uw,re.pullAllWith=Hw,re.pullAt=Yw,re.range=u6,re.rangeRight=c6,re.rearg=s_,re.reject=V3,re.remove=Vw,re.rest=o_,re.reverse=Iu,re.sampleSize=X3,re.set=f4,re.setWith=d4,re.shuffle=K3,re.slice=qw,re.sortBy=Q3,re.sortedUniq=e3,re.sortedUniqBy=t3,re.split=P4,re.spread=a_,re.tail=r3,re.take=n3,re.takeRight=i3,re.takeRightWhile=s3,re.takeWhile=o3,re.tap=_3,re.throttle=l_,re.thru=Pa,re.toArray=ip,re.toPairs=cp,re.toPairsIn=fp,re.toPath=m6,re.toPlainObject=op,re.transform=h4,re.unary=u_,re.union=a3,re.unionBy=l3,re.unionWith=u3,re.uniq=c3,re.uniqBy=f3,re.uniqWith=d3,re.unset=p4,re.unzip=Ru,re.unzipWith=Uh,re.update=m4,re.updateWith=g4,re.values=Ts,re.valuesIn=b4,re.without=h3,re.words=pp,re.wrap=c_,re.xor=p3,re.xorBy=m3,re.xorWith=g3,re.zip=b3,re.zipObject=y3,re.zipObjectDeep=v3,re.zipWith=w3,re.entries=cp,re.entriesIn=fp,re.extend=ap,re.extendWith=$a,Uu(re,re),re.add=b6,re.attempt=mp,re.camelCase=_4,re.capitalize=dp,re.ceil=y6,re.clamp=y4,re.clone=d_,re.cloneDeep=p_,re.cloneDeepWith=m_,re.cloneWith=h_,re.conformsTo=g_,re.deburr=hp,re.defaultTo=Z4,re.divide=v6,re.endsWith=x4,re.eq=_n,re.escape=S4,re.escapeRegExp=k4,re.every=A3,re.find=R3,re.findIndex=Fh,re.findKey=V_,re.findLast=N3,re.findLastIndex=Bh,re.findLastKey=q_,re.floor=w6,re.forEach=Yh,re.forEachRight=Vh,re.forIn=X_,re.forInRight=K_,re.forOwn=Z_,re.forOwnRight=G_,re.get=Fu,re.gt=b_,re.gte=y_,re.has=e4,re.hasIn=Bu,re.head=Wh,re.identity=Xr,re.includes=B3,re.indexOf=Nw,re.inRange=v4,re.invoke=n4,re.isArguments=Yi,re.isArray=Dt,re.isArrayBuffer=v_,re.isArrayLike=Vr,re.isArrayLikeObject=vr,re.isBoolean=w_,re.isBuffer=Mi,re.isDate=__,re.isElement=x_,re.isEmpty=S_,re.isEqual=k_,re.isEqualWith=C_,re.isError=ju,re.isFinite=M_,re.isFunction=ti,re.isInteger=ep,re.isLength=za,re.isMap=tp,re.isMatch=T_,re.isMatchWith=E_,re.isNaN=D_,re.isNative=O_,re.isNil=I_,re.isNull=A_,re.isNumber=rp,re.isObject=hr,re.isObjectLike=gr,re.isPlainObject=oo,re.isRegExp=Lu,re.isSafeInteger=R_,re.isSet=np,re.isString=Wa,re.isSymbol=en,re.isTypedArray=Ms,re.isUndefined=N_,re.isWeakMap=P_,re.isWeakSet=j_,re.join=Bw,re.kebabCase=C4,re.last=dn,re.lastIndexOf=zw,re.lowerCase=M4,re.lowerFirst=T4,re.lt=L_,re.lte=F_,re.max=_6,re.maxBy=x6,re.mean=S6,re.meanBy=k6,re.min=C6,re.minBy=M6,re.stubArray=Yu,re.stubFalse=Vu,re.stubObject=f6,re.stubString=d6,re.stubTrue=h6,re.multiply=T6,re.nth=Ww,re.noConflict=n6,re.noop=Hu,re.now=La,re.pad=E4,re.padEnd=D4,re.padStart=O4,re.parseInt=A4,re.random=w4,re.reduce=H3,re.reduceRight=Y3,re.repeat=I4,re.replace=R4,re.result=c4,re.round=E6,re.runInContext=_e,re.sample=q3,re.size=Z3,re.snakeCase=N4,re.some=G3,re.sortedIndex=Xw,re.sortedIndexBy=Kw,re.sortedIndexOf=Zw,re.sortedLastIndex=Gw,re.sortedLastIndexBy=Qw,re.sortedLastIndexOf=Jw,re.startCase=j4,re.startsWith=L4,re.subtract=D6,re.sum=O6,re.sumBy=A6,re.template=F4,re.times=p6,re.toFinite=ri,re.toInteger=Rt,re.toLength=sp,re.toLower=B4,re.toNumber=hn,re.toSafeInteger=B_,re.toString=tr,re.toUpper=z4,re.trim=W4,re.trimEnd=$4,re.trimStart=U4,re.truncate=H4,re.unescape=Y4,re.uniqueId=g6,re.upperCase=V4,re.upperFirst=zu,re.each=Yh,re.eachRight=Vh,re.first=Wh,Uu(re,function(){var g={};return jn(re,function(M,j){sr.call(re.prototype,j)||(g[j]=M)}),g}(),{chain:!1}),re.VERSION=t,an(["bind","bindKey","curry","curryRight","partial","partialRight"],function(g){re[g].placeholder=re}),an(["drop","take"],function(g,M){Yt.prototype[g]=function(j){j=j===e?1:Sr(Rt(j),0);var X=this.__filtered__&&!M?new Yt(this):this.clone();return X.__filtered__?X.__takeCount__=Pr(j,X.__takeCount__):X.__views__.push({size:Pr(j,P),type:g+(X.__dir__<0?"Right":"")}),X},Yt.prototype[g+"Right"]=function(j){return this.reverse()[g](j).reverse()}}),an(["filter","map","takeWhile"],function(g,M){var j=M+1,X=j==A||j==y;Yt.prototype[g]=function(G){var se=this.clone();return se.__iteratees__.push({iteratee:gt(G,3),type:j}),se.__filtered__=se.__filtered__||X,se}}),an(["head","last"],function(g,M){var j="take"+(M?"Right":"");Yt.prototype[g]=function(){return this[j](1).value()[0]}}),an(["initial","tail"],function(g,M){var j="drop"+(M?"":"Right");Yt.prototype[g]=function(){return this.__filtered__?new Yt(this):this[j](1)}}),Yt.prototype.compact=function(){return this.filter(Xr)},Yt.prototype.find=function(g){return this.filter(g).head()},Yt.prototype.findLast=function(g){return this.reverse().find(g)},Yt.prototype.invokeMap=Ft(function(g,M){return typeof g=="function"?new Yt(this):this.map(function(j){return eo(j,g,M)})}),Yt.prototype.reject=function(g){return this.filter(Ba(gt(g)))},Yt.prototype.slice=function(g,M){g=Rt(g);var j=this;return j.__filtered__&&(g>0||M<0)?new Yt(j):(g<0?j=j.takeRight(-g):g&&(j=j.drop(g)),M!==e&&(M=Rt(M),j=M<0?j.dropRight(-M):j.take(M-g)),j)},Yt.prototype.takeRightWhile=function(g){return this.reverse().takeWhile(g).reverse()},Yt.prototype.toArray=function(){return this.take(P)},jn(Yt.prototype,function(g,M){var j=/^(?:filter|find|map|reject)|While$/.test(M),X=/^(?:head|last)$/.test(M),G=re[X?"take"+(M=="last"?"Right":""):M],se=X||/^find/.test(M);G&&(re.prototype[M]=function(){var de=this.__wrapped__,me=X?[1]:arguments,Se=de instanceof Yt,Ne=me[0],Pe=Se||Dt(de),ze=function(Ut){var Vt=G.apply(re,vi([Ut],me));return X&&Qe?Vt[0]:Vt};Pe&&j&&typeof Ne=="function"&&Ne.length!=1&&(Se=Pe=!1);var Qe=this.__chain__,ft=!!this.__actions__.length,bt=se&&!Qe,Nt=Se&&!ft;if(!se&&Pe){de=Nt?de:new Yt(this);var yt=g.apply(de,me);return yt.__actions__.push({func:Pa,args:[ze],thisArg:e}),new un(yt,Qe)}return bt&&Nt?g.apply(this,me):(yt=this.thru(ze),bt?X?yt.value()[0]:yt.value():yt)})}),an(["pop","push","shift","sort","splice","unshift"],function(g){var M=aa[g],j=/^(?:push|sort|unshift)$/.test(g)?"tap":"thru",X=/^(?:pop|shift)$/.test(g);re.prototype[g]=function(){var G=arguments;if(X&&!this.__chain__){var se=this.value();return M.apply(Dt(se)?se:[],G)}return this[j](function(de){return M.apply(Dt(de)?de:[],G)})}}),jn(Yt.prototype,function(g,M){var j=re[M];if(j){var X=j.name+"";sr.call(_s,X)||(_s[X]=[]),_s[X].push({name:M,func:j})}}),_s[Ea(e,b).name]=[{name:"wrapper",func:e}],Yt.prototype.clone=Yv,Yt.prototype.reverse=Vv,Yt.prototype.value=qv,re.prototype.at=x3,re.prototype.chain=S3,re.prototype.commit=k3,re.prototype.next=C3,re.prototype.plant=T3,re.prototype.reverse=E3,re.prototype.toJSON=re.prototype.valueOf=re.prototype.value=D3,re.prototype.first=re.prototype.head,qs&&(re.prototype[qs]=M3),re},ys=kv();Li?((Li.exports=ys)._=ys,$l._=ys):Ir._=ys}).call(St)}(Po,Po.exports);var jo=Po.exports;function Xc(S){return!!S.match(/[A-Z]/)}function rg(S){return jo.upperFirst(S.replaceAll(/[A-Z]/g,(k,e)=>{const t=S[e-1],f=t?Xc(t):!1,u=S[e+1],i=u?Xc(u):!1;return e===0||f&&(!u||i)?k:` ${i?k:k.toLowerCase()}`}))}const ng={"Europe/Amsterdam":"AMS","Europe/Berlin":"AMS","Asia/Jakarta":"JKT","Asia/Bangkok":"JKT",showingFilteredCountOfTotalCount:"Showing {0} of {1}"};function Kc(S,...k){let e=ng[S]||rg(S);return k.forEach((t,f)=>{e=e.replace(`{${f}}`,`${t}`)}),e}const mn="SELECT_ALL_COLUMN_NAME",Zc=40,dl="dd MMM yyyy",Lo="dd MMM yyyy HH:mm",hl=25,Gc=3;var Un=(S=>(S.GT="GT",S.LT="LT",S.EQ="EQ",S))(Un||{}),rs=(S=>(S.UNAVAILABLE="UNAVAILABLE",S.AVAILABLE="AVAILABLE",S.ACTIVE="ACTIVE",S))(rs||{});const ns=()=>{throw Error("SchemaTableContext not constructed")},Ns=xt.createContext({columnFilterMap:{},columnNames:[],columnWidths:[],properties:{},required:[],isItemLoaded:()=>!1,setCustomColumnNames:ns,setCustomColumnWidths:ns,setMenuConfig:ns,setSortColumn:ns,setSortAsc:ns,checkedIndexes:[],config:{},disabledCheckedIndexes:[],isColumnFilterable:!1,isSortable:!1,translate:ns}),ig=({columnIndex:S,rowIndex:k,style:e})=>{const{checkedIndexes:t,columnNames:f,isItemLoaded:u,properties:i,sortedRenderData:o,sourceData:n,config:r,disabledCheckedIndexes:s,getRowClassName:c,getRowSelected:a,onCheckedIndexesChange:l,onRowClick:p,onRowDoubleClick:h,translate:d}=ce.useContext(Ns),b=f[S],m=b===mn?{type:"boolean"}:i[b],_=r?r[b]:void 0,T=ce.useCallback(E=>{if(!l)return;const A=t&&t.includes(E);l(A?t.filter(C=>C!==E):t?[...t,E]:[E])},[t,l]),O=u(k),L=ce.useCallback(E=>{if(!n||!o||!p||!O)return;const{rowIndex:A}=E.currentTarget.dataset;if(!A)return;const C=o[parseInt(A,10)];p(n[C._index],C._index,E)},[O,p,o,n]),W=ce.useCallback(E=>{if(!n||!o||!h||!u)return;const{rowIndex:A}=E.currentTarget.dataset;if(!A)return;const C=o[parseInt(A,10)];h(n[C._index],C._index,E)},[u,h,o,n]),N=o?o[k]:void 0,{showTimezones:z,TdBody:U}=_||{},Y=ce.useMemo(()=>{if(!N||!o)return;let E=b===mn?void 0:N[b];if(m!=null&&m.format&&m.format==="date-time"&&z!==!1){const C=n?n[N._index]:void 0,y=C?C[b]:void 0,v=y?new Date(y):void 0,w=qc.startsWith("Europe/")?"Asia/Jakarta":"Europe/Amsterdam";v&&(E=`${tg(v,w,Lo)} (${d(w)})`)}const A=["mig-schema-table__td",`mig-schema-table__td--${k%2?"odd":"even"}`,`mig-schema-table__td--prop-${b}`];return n&&a&&a(n[N._index],N._index)&&A.push("mig-schema-table__td--selected"),n&&c&&A.push(c(n[N._index],N._index,o)),{"data-row-index":k,"data-column-index":S,style:e,onClick:L,onDoubleClick:W,className:A.join(" "),title:E}},[N,o,b,m==null?void 0:m.format,z,k,a,n,c,S,e,L,W,d]);if(!N||!Y)return null;if(!u||n&&!n[N._index])return qe.jsx("div",{...Y,children:"loading"});if(U&&n)return qe.jsx("div",{...Y,children:qe.jsx(U,{dataIndex:N._index,rowData:n[N._index],rowIndex:k,..._==null?void 0:_.tdBodyProps})});if(b===mn){const E=()=>{T&&T(N._index)};return qe.jsx("div",{...Y,children:qe.jsx("div",{style:{textAlign:"center"},children:qe.jsx("input",{"data-key":"row-checkbox",type:"checkbox",onChange:E,checked:t==null?void 0:t.includes(N._index),disabled:s==null?void 0:s.includes(N._index)})})})}const $=N[b];switch(m==null?void 0:m.type){case"boolean":Y.className+=` text-${(_==null?void 0:_.align)||"center"}`;break;case"number":case"integer":Y.className+=` text-${(_==null?void 0:_.align)||"end"}`;break;default:if(_!=null&&_.align&&(Y.className+=` text-${_.align}`),(m==null?void 0:m.format)==="url"&&$)return qe.jsx("a",{href:$,target:"_blank",rel:"noopener noreferrer",...Y,children:$})}return qe.jsx("div",{...Y,children:$})},Qc=ce.memo(ig),Jc=S=>S instanceof Object?S.$Date?new Date(S.$Date):Object.entries(S).reduce((k,[e,t])=>(k[e]=Jc(t),k),{}):S,ef=S=>{if(!S.length)return null;const k={};return S.substring(1).split("&").forEach(e=>{if(!e)return;const t=e.split("=");t.length===2&&(k[decodeURIComponent(t[0])]=Jc(JSON.parse(decodeURIComponent(t[1]))))}),k},tf=S=>S instanceof Object?S instanceof Date?{$Date:S.toISOString()}:Object.entries(S).reduce((k,[e,t])=>(k[e]=tf(t),k),{}):S,pl=S=>`${Object.entries(S).map(([k,e])=>`${encodeURIComponent(k)}=${encodeURIComponent(JSON.stringify(tf(e)))}`).join("&")}`;function sg(){const{checkedIndexes:S,disabledCheckedIndexes:k,sortedRenderData:e}=ce.useContext(Ns);return ce.useMemo(()=>{const t=[...e||[]].filter(f=>(S?S.includes(f._index):!0)||(k?!k.includes(f._index):!0));return(S==null?void 0:S.length)!==0&&t.length===(S==null?void 0:S.length)},[S,k,e])}function rf(S,k,e){return!!(S&&(e==null?void 0:e.isSortable)!==!1&&(k||e!=null&&e.renderData||e!=null&&e.sort))}function nf(){const{setCustomColumnWidths:S,settingsStorageKey:k}=ce.useContext(Ns);return ce.useCallback(e=>{k&&localStorage.setItem(`${k}.columnWidths`,JSON.stringify(e)),S(e)},[S,k])}const og=({index:S,style:k})=>{const{checkedIndexes:e,columnFilterMap:t,columnNames:f,columnWidths:u,properties:i,isSortable:o,required:n,setCustomColumnNames:r,setMenuConfig:s,setSortAsc:c,setSortColumn:a,settingsStorageKey:l,sortAsc:p,sortColumn:h,sortedRenderData:d,config:b,disabledCheckedIndexes:m,isColumnFilterable:_,onCheckedIndexesChange:T,translate:O}=ce.useContext(Ns),[L,W]=ce.useState(!1),[N,z]=ce.useState(!1),U=nf(),Y=f[S],$=Y===mn?{type:"boolean"}:i[Y],E=h===Y?p:void 0,A=b?b[Y]:void 0;let C=_&&($||A!=null&&A.FilterMenu)&&(A==null?void 0:A.isFilterable)!==!1?rs.AVAILABLE:rs.UNAVAILABLE;t[Y]!==void 0&&(C=rs.ACTIVE);const y=rf(o,$,A),v=["mig-schema-table__th",`mig-schema-table__th--filter-${C}`,`mig-schema-table__th--prop-${Y}`];v.push(y?"mig-schema-table__th--sortable":"mig-schema-table__th--unsortable"),E!==void 0&&v.push("mig-schema-table__th--sorted"),L&&v.push("mig-schema-table__th--dragging"),N&&v.push("mig-schema-table__th--drop-target");const{format:w}=$||{},{align:x,defaultSortDesc:D,showTimezones:P,title:F}=A||{},V=ce.useCallback(()=>{if(y){if(E===void 0){a(Y),c(!D);return}c(ue=>!ue)}},[y,D,Y,c,a,E]),q=n.includes(Y),ee=ce.useCallback(ue=>{const he=ue.currentTarget;s(J=>{if((J==null?void 0:J.propName)!==Y)return{propConfig:A,propIsRequired:q,propName:Y,referenceElement:he}})},[A,q,Y,s]),B=ce.useMemo(()=>F!==void 0?F:w==="date-time"&&P!==!1?`${O(Y)} (${O(qc)})`:O(Y),[F,w,P,O,Y]),K=ce.useCallback((ue,he)=>{if(!f||!u||!l)return;const J=f.indexOf(ue),fe=[...f];fe.splice(J,1);const le=fe.indexOf(he);fe.splice(le+1,0,ue),localStorage.setItem(`${l}.columnNames`,JSON.stringify(fe)),r(fe);const be=[...u],ge=be[J];be.splice(J,1),be.splice(le+1,0,ge),U(be)},[f,u,U,l,r]),R=ce.useCallback(ue=>{K&&(W(!0),ue.dataTransfer.effectAllowed="move",ue.dataTransfer.dropEffect="move",ue.dataTransfer.setData("text/plain",Y))},[K,Y]),I=ce.useCallback(()=>{K&&W(!1)},[K]),H=ce.useCallback(ue=>{K&&(ue.preventDefault(),z(!0))},[K]),Z=ce.useCallback(()=>{K&&z(!1)},[K]),ne=ce.useCallback(ue=>{if(!K||!Y)return;const he=ue.dataTransfer.getData("text/plain");!he||he===Y||K(he,Y)},[K,Y]),Q=sg(),ie=ce.useCallback(()=>{!T||!d||T(Q?[]:d.map(ue=>ue._index).filter(ue=>!(m!=null&&m.includes(ue))))},[T,d,Q,m]);if(Y===mn)return qe.jsx("div",{style:k,className:v.join(" "),children:qe.jsx("div",{style:{width:"100%",textAlign:"center"},title:`${(e==null?void 0:e.length)||0} selected`,children:qe.jsx("input",{type:"checkbox",name:"selectAll",checked:Q,onChange:ie})})});switch($==null?void 0:$.type){case"boolean":v.push(`text-${x||"center"}`,`justify-content-${x||"center"}`);break;case"integer":case"number":v.push(`text-${x||"end"}`,`justify-content-${x||"end"}`);break;default:x&&v.push(`text-${x}`)}return qe.jsxs("div",{className:v.join(" "),style:k,title:typeof B=="string"?B:void 0,draggable:!0,onDragStart:R,onDragEnd:I,onDragOver:H,onDragLeave:Z,onDrop:ne,children:[qe.jsxs("div",{className:"mig-schema-table__th__label-body",style:{lineHeight:"44px"},onClick:V,children:[qe.jsx("span",{className:"mig-schema-table__th__label-body-text",children:B}),E===void 0?null:qe.jsx("span",{className:"mig-schema-table__th__sort-icon",children:E?"↓":"↑"})]}),y||C!==rs.UNAVAILABLE?qe.jsx("button",{className:"mig-schema-table__th__trigger-el",onClick:ee,children:qe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#404040",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:qe.jsx("polyline",{points:"6 9 12 15 18 9"})})}):null]})},sf=ce.memo(og);function of(S){var k,e,t="";if(typeof S=="string"||typeof S=="number")t+=S;else if(typeof S=="object")if(Array.isArray(S)){var f=S.length;for(k=0;k<f;k++)S[k]&&(e=of(S[k]))&&(t&&(t+=" "),t+=e)}else for(e in S)S[e]&&(t&&(t+=" "),t+=e);return t}function Dr(){for(var S,k,e=0,t="",f=arguments.length;e<f;e++)(S=arguments[e])&&(k=of(S))&&(t&&(t+=" "),t+=k);return t}function ag(S,k){S.prototype=Object.create(k.prototype),S.prototype.constructor=S,ml(S,k)}function ml(S,k){return ml=Object.setPrototypeOf||function(t,f){return t.__proto__=f,t},ml(S,k)}function lg(S,k){if(S==null)return{};var e={},t=Object.keys(S),f,u;for(u=0;u<t.length;u++)f=t[u],!(k.indexOf(f)>=0)&&(e[f]=S[f]);return e}function af(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function ug(S,k,e){return S===k?!0:S.correspondingElement?S.correspondingElement.classList.contains(e):S.classList.contains(e)}function cg(S,k,e){if(S===k)return!0;for(;S.parentNode||S.host;){if(S.parentNode&&ug(S,k,e))return!0;S=S.parentNode||S.host}return S}function fg(S){return document.documentElement.clientWidth<=S.clientX||document.documentElement.clientHeight<=S.clientY}var dg=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var k=!1,e=Object.defineProperty({},"passive",{get:function(){k=!0}}),t=function(){};return window.addEventListener("testPassiveEventSupport",t,e),window.removeEventListener("testPassiveEventSupport",t,e),k}};function hg(S){return S===void 0&&(S=0),function(){return++S}}var pg=hg(),gl,Fo={},bl={},mg=["touchstart","touchmove"],gg="ignore-react-onclickoutside";function lf(S,k){var e={},t=mg.indexOf(k)!==-1;return t&&gl&&(e.passive=!S.props.preventDefault),e}function Bo(S,k){var e,t,f=S.displayName||S.name||"Component";return t=e=function(u){ag(i,u);function i(n){var r;return r=u.call(this,n)||this,r.__outsideClickHandler=function(s){if(typeof r.__clickOutsideHandlerProp=="function"){r.__clickOutsideHandlerProp(s);return}var c=r.getInstance();if(typeof c.props.handleClickOutside=="function"){c.props.handleClickOutside(s);return}if(typeof c.handleClickOutside=="function"){c.handleClickOutside(s);return}throw new Error("WrappedComponent: "+f+" lacks a handleClickOutside(event) function for processing outside click events.")},r.__getComponentNode=function(){var s=r.getInstance();return typeof s.setClickOutsideRef=="function"?s.setClickOutsideRef():Sn.findDOMNode(s)},r.enableOnClickOutside=function(){if(!(typeof document>"u"||bl[r._uid])){typeof gl>"u"&&(gl=dg()),bl[r._uid]=!0;var s=r.props.eventTypes;s.forEach||(s=[s]),Fo[r._uid]=function(c){if(r.componentNode!==null&&!(r.initTimeStamp>c.timeStamp)&&(r.props.preventDefault&&c.preventDefault(),r.props.stopPropagation&&c.stopPropagation(),!(r.props.excludeScrollbar&&fg(c)))){var a=c.composed&&c.composedPath&&c.composedPath().shift()||c.target;cg(a,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(c)}},s.forEach(function(c){document.addEventListener(c,Fo[r._uid],lf(af(r),c))})}},r.disableOnClickOutside=function(){delete bl[r._uid];var s=Fo[r._uid];if(s&&typeof document<"u"){var c=r.props.eventTypes;c.forEach||(c=[c]),c.forEach(function(a){return document.removeEventListener(a,s,lf(af(r),a))}),delete Fo[r._uid]}},r.getRef=function(s){return r.instanceRef=s},r._uid=pg(),r.initTimeStamp=performance.now(),r}var o=i.prototype;return o.getInstance=function(){if(S.prototype&&!S.prototype.isReactComponent)return this;var r=this.instanceRef;return r.getInstance?r.getInstance():r},o.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},o.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},o.componentWillUnmount=function(){this.disableOnClickOutside()},o.render=function(){var r=this.props;r.excludeScrollbar;var s=lg(r,["excludeScrollbar"]);return S.prototype&&S.prototype.isReactComponent?s.ref=this.getRef:s.wrappedRef=this.getRef,s.disableOnClickOutside=this.disableOnClickOutside,s.enableOnClickOutside=this.enableOnClickOutside,ce.createElement(S,s)},i}(ce.Component),e.displayName="OnClickOutside("+f+")",e.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:gg,preventDefault:!1,stopPropagation:!1},e.getClass=function(){return S.getClass?S.getClass():S},t}function is(S){return uf(S)?(S.nodeName||"").toLowerCase():"#document"}function Kr(S){var k;return(S==null||(k=S.ownerDocument)==null?void 0:k.defaultView)||window}function Hn(S){var k;return(k=(uf(S)?S.ownerDocument:S.document)||window.document)==null?void 0:k.documentElement}function uf(S){return S instanceof Node||S instanceof Kr(S).Node}function zr(S){return S instanceof Element||S instanceof Kr(S).Element}function In(S){return S instanceof HTMLElement||S instanceof Kr(S).HTMLElement}function cf(S){return typeof ShadowRoot>"u"?!1:S instanceof ShadowRoot||S instanceof Kr(S).ShadowRoot}function Ps(S){const{overflow:k,overflowX:e,overflowY:t,display:f}=gn(S);return/auto|scroll|overlay|hidden|clip/.test(k+t+e)&&!["inline","contents"].includes(f)}function bg(S){return["table","td","th"].includes(is(S))}function yl(S){const k=vl(),e=gn(S);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!k&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!k&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(t=>(e.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(e.contain||"").includes(t))}function yg(S){let k=ai(S);for(;In(k)&&!ss(k);){if(yl(k))return k;k=ai(k)}return null}function vl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ss(S){return["html","body","#document"].includes(is(S))}function gn(S){return Kr(S).getComputedStyle(S)}function zo(S){return zr(S)?{scrollLeft:S.scrollLeft,scrollTop:S.scrollTop}:{scrollLeft:S.pageXOffset,scrollTop:S.pageYOffset}}function ai(S){if(is(S)==="html")return S;const k=S.assignedSlot||S.parentNode||cf(S)&&S.host||Hn(S);return cf(k)?k.host:k}function ff(S){const k=ai(S);return ss(k)?S.ownerDocument?S.ownerDocument.body:S.body:In(k)&&Ps(k)?k:ff(k)}function js(S,k,e){var t;k===void 0&&(k=[]),e===void 0&&(e=!0);const f=ff(S),u=f===((t=S.ownerDocument)==null?void 0:t.body),i=Kr(f);return u?k.concat(i,i.visualViewport||[],Ps(f)?f:[],i.frameElement&&e?js(i.frameElement):[]):k.concat(f,js(f,[],e))}const os=Math.min,Ii=Math.max,Wo=Math.round,$o=Math.floor,li=S=>({x:S,y:S}),vg={left:"right",right:"left",bottom:"top",top:"bottom"},wg={start:"end",end:"start"};function _g(S,k,e){return Ii(S,os(k,e))}function Uo(S,k){return typeof S=="function"?S(k):S}function as(S){return S.split("-")[0]}function Ls(S){return S.split("-")[1]}function xg(S){return S==="x"?"y":"x"}function wl(S){return S==="y"?"height":"width"}function _l(S){return["top","bottom"].includes(as(S))?"y":"x"}function xl(S){return xg(_l(S))}function Sg(S,k,e){e===void 0&&(e=!1);const t=Ls(S),f=xl(S),u=wl(f);let i=f==="x"?t===(e?"end":"start")?"right":"left":t==="start"?"bottom":"top";return k.reference[u]>k.floating[u]&&(i=Ho(i)),[i,Ho(i)]}function kg(S){const k=Ho(S);return[Sl(S),k,Sl(k)]}function Sl(S){return S.replace(/start|end/g,k=>wg[k])}function Cg(S,k,e){const t=["left","right"],f=["right","left"],u=["top","bottom"],i=["bottom","top"];switch(S){case"top":case"bottom":return e?k?f:t:k?t:f;case"left":case"right":return k?u:i;default:return[]}}function Mg(S,k,e,t){const f=Ls(S);let u=Cg(as(S),e==="start",t);return f&&(u=u.map(i=>i+"-"+f),k&&(u=u.concat(u.map(Sl)))),u}function Ho(S){return S.replace(/left|right|bottom|top/g,k=>vg[k])}function Tg(S){return{top:0,right:0,bottom:0,left:0,...S}}function df(S){return typeof S!="number"?Tg(S):{top:S,right:S,bottom:S,left:S}}function Yo(S){const{x:k,y:e,width:t,height:f}=S;return{width:t,height:f,top:e,left:k,right:k+t,bottom:e+f,x:k,y:e}}function hf(S,k,e){let{reference:t,floating:f}=S;const u=_l(k),i=xl(k),o=wl(i),n=as(k),r=u==="y",s=t.x+t.width/2-f.width/2,c=t.y+t.height/2-f.height/2,a=t[o]/2-f[o]/2;let l;switch(n){case"top":l={x:s,y:t.y-f.height};break;case"bottom":l={x:s,y:t.y+t.height};break;case"right":l={x:t.x+t.width,y:c};break;case"left":l={x:t.x-f.width,y:c};break;default:l={x:t.x,y:t.y}}switch(Ls(k)){case"start":l[i]-=a*(e&&r?-1:1);break;case"end":l[i]+=a*(e&&r?-1:1);break}return l}const Eg=async(S,k,e)=>{const{placement:t="bottom",strategy:f="absolute",middleware:u=[],platform:i}=e,o=u.filter(Boolean),n=await(i.isRTL==null?void 0:i.isRTL(k));let r=await i.getElementRects({reference:S,floating:k,strategy:f}),{x:s,y:c}=hf(r,t,n),a=t,l={},p=0;for(let h=0;h<o.length;h++){const{name:d,fn:b}=o[h],{x:m,y:_,data:T,reset:O}=await b({x:s,y:c,initialPlacement:t,placement:a,strategy:f,middlewareData:l,rects:r,platform:i,elements:{reference:S,floating:k}});s=m??s,c=_??c,l={...l,[d]:{...l[d],...T}},O&&p<=50&&(p++,typeof O=="object"&&(O.placement&&(a=O.placement),O.rects&&(r=O.rects===!0?await i.getElementRects({reference:S,floating:k,strategy:f}):O.rects),{x:s,y:c}=hf(r,a,n)),h=-1)}return{x:s,y:c,placement:a,strategy:f,middlewareData:l}};async function Dg(S,k){var e;k===void 0&&(k={});const{x:t,y:f,platform:u,rects:i,elements:o,strategy:n}=S,{boundary:r="clippingAncestors",rootBoundary:s="viewport",elementContext:c="floating",altBoundary:a=!1,padding:l=0}=Uo(k,S),p=df(l),d=o[a?c==="floating"?"reference":"floating":c],b=Yo(await u.getClippingRect({element:(e=await(u.isElement==null?void 0:u.isElement(d)))==null||e?d:d.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(o.floating)),boundary:r,rootBoundary:s,strategy:n})),m=c==="floating"?{x:t,y:f,width:i.floating.width,height:i.floating.height}:i.reference,_=await(u.getOffsetParent==null?void 0:u.getOffsetParent(o.floating)),T=await(u.isElement==null?void 0:u.isElement(_))?await(u.getScale==null?void 0:u.getScale(_))||{x:1,y:1}:{x:1,y:1},O=Yo(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:m,offsetParent:_,strategy:n}):m);return{top:(b.top-O.top+p.top)/T.y,bottom:(O.bottom-b.bottom+p.bottom)/T.y,left:(b.left-O.left+p.left)/T.x,right:(O.right-b.right+p.right)/T.x}}const Og=S=>({name:"arrow",options:S,async fn(k){const{x:e,y:t,placement:f,rects:u,platform:i,elements:o,middlewareData:n}=k,{element:r,padding:s=0}=Uo(S,k)||{};if(r==null)return{};const c=df(s),a={x:e,y:t},l=xl(f),p=wl(l),h=await i.getDimensions(r),d=l==="y",b=d?"top":"left",m=d?"bottom":"right",_=d?"clientHeight":"clientWidth",T=u.reference[p]+u.reference[l]-a[l]-u.floating[p],O=a[l]-u.reference[l],L=await(i.getOffsetParent==null?void 0:i.getOffsetParent(r));let W=L?L[_]:0;(!W||!await(i.isElement==null?void 0:i.isElement(L)))&&(W=o.floating[_]||u.floating[p]);const N=T/2-O/2,z=W/2-h[p]/2-1,U=os(c[b],z),Y=os(c[m],z),$=U,E=W-h[p]-Y,A=W/2-h[p]/2+N,C=_g($,A,E),y=!n.arrow&&Ls(f)!=null&&A!==C&&u.reference[p]/2-(A<$?U:Y)-h[p]/2<0,v=y?A<$?A-$:A-E:0;return{[l]:a[l]+v,data:{[l]:C,centerOffset:A-C-v,...y&&{alignmentOffset:v}},reset:y}}}),Ag=function(S){return S===void 0&&(S={}),{name:"flip",options:S,async fn(k){var e,t;const{placement:f,middlewareData:u,rects:i,initialPlacement:o,platform:n,elements:r}=k,{mainAxis:s=!0,crossAxis:c=!0,fallbackPlacements:a,fallbackStrategy:l="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...d}=Uo(S,k);if((e=u.arrow)!=null&&e.alignmentOffset)return{};const b=as(f),m=as(o)===o,_=await(n.isRTL==null?void 0:n.isRTL(r.floating)),T=a||(m||!h?[Ho(o)]:kg(o));!a&&p!=="none"&&T.push(...Mg(o,h,p,_));const O=[o,...T],L=await Dg(k,d),W=[];let N=((t=u.flip)==null?void 0:t.overflows)||[];if(s&&W.push(L[b]),c){const $=Sg(f,i,_);W.push(L[$[0]],L[$[1]])}if(N=[...N,{placement:f,overflows:W}],!W.every($=>$<=0)){var z,U;const $=(((z=u.flip)==null?void 0:z.index)||0)+1,E=O[$];if(E)return{data:{index:$,overflows:N},reset:{placement:E}};let A=(U=N.filter(C=>C.overflows[0]<=0).sort((C,y)=>C.overflows[1]-y.overflows[1])[0])==null?void 0:U.placement;if(!A)switch(l){case"bestFit":{var Y;const C=(Y=N.map(y=>[y.placement,y.overflows.filter(v=>v>0).reduce((v,w)=>v+w,0)]).sort((y,v)=>y[1]-v[1])[0])==null?void 0:Y[0];C&&(A=C);break}case"initialPlacement":A=o;break}if(f!==A)return{reset:{placement:A}}}return{}}}};async function Ig(S,k){const{placement:e,platform:t,elements:f}=S,u=await(t.isRTL==null?void 0:t.isRTL(f.floating)),i=as(e),o=Ls(e),n=_l(e)==="y",r=["left","top"].includes(i)?-1:1,s=u&&n?-1:1,c=Uo(k,S);let{mainAxis:a,crossAxis:l,alignmentAxis:p}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return o&&typeof p=="number"&&(l=o==="end"?p*-1:p),n?{x:l*s,y:a*r}:{x:a*r,y:l*s}}const Rg=function(S){return S===void 0&&(S=0),{name:"offset",options:S,async fn(k){var e,t;const{x:f,y:u,placement:i,middlewareData:o}=k,n=await Ig(k,S);return i===((e=o.offset)==null?void 0:e.placement)&&(t=o.arrow)!=null&&t.alignmentOffset?{}:{x:f+n.x,y:u+n.y,data:{...n,placement:i}}}}};function pf(S){const k=gn(S);let e=parseFloat(k.width)||0,t=parseFloat(k.height)||0;const f=In(S),u=f?S.offsetWidth:e,i=f?S.offsetHeight:t,o=Wo(e)!==u||Wo(t)!==i;return o&&(e=u,t=i),{width:e,height:t,$:o}}function kl(S){return zr(S)?S:S.contextElement}function ls(S){const k=kl(S);if(!In(k))return li(1);const e=k.getBoundingClientRect(),{width:t,height:f,$:u}=pf(k);let i=(u?Wo(e.width):e.width)/t,o=(u?Wo(e.height):e.height)/f;return(!i||!Number.isFinite(i))&&(i=1),(!o||!Number.isFinite(o))&&(o=1),{x:i,y:o}}const Ng=li(0);function mf(S){const k=Kr(S);return!vl()||!k.visualViewport?Ng:{x:k.visualViewport.offsetLeft,y:k.visualViewport.offsetTop}}function Pg(S,k,e){return k===void 0&&(k=!1),!e||k&&e!==Kr(S)?!1:k}function Ri(S,k,e,t){k===void 0&&(k=!1),e===void 0&&(e=!1);const f=S.getBoundingClientRect(),u=kl(S);let i=li(1);k&&(t?zr(t)&&(i=ls(t)):i=ls(S));const o=Pg(u,e,t)?mf(u):li(0);let n=(f.left+o.x)/i.x,r=(f.top+o.y)/i.y,s=f.width/i.x,c=f.height/i.y;if(u){const a=Kr(u),l=t&&zr(t)?Kr(t):t;let p=a,h=p.frameElement;for(;h&&t&&l!==p;){const d=ls(h),b=h.getBoundingClientRect(),m=gn(h),_=b.left+(h.clientLeft+parseFloat(m.paddingLeft))*d.x,T=b.top+(h.clientTop+parseFloat(m.paddingTop))*d.y;n*=d.x,r*=d.y,s*=d.x,c*=d.y,n+=_,r+=T,p=Kr(h),h=p.frameElement}}return Yo({width:s,height:c,x:n,y:r})}const jg=[":popover-open",":modal"];function Cl(S){return jg.some(k=>{try{return S.matches(k)}catch{return!1}})}function Lg(S){let{elements:k,rect:e,offsetParent:t,strategy:f}=S;const u=f==="fixed",i=Hn(t),o=k?Cl(k.floating):!1;if(t===i||o&&u)return e;let n={scrollLeft:0,scrollTop:0},r=li(1);const s=li(0),c=In(t);if((c||!c&&!u)&&((is(t)!=="body"||Ps(i))&&(n=zo(t)),In(t))){const a=Ri(t);r=ls(t),s.x=a.x+t.clientLeft,s.y=a.y+t.clientTop}return{width:e.width*r.x,height:e.height*r.y,x:e.x*r.x-n.scrollLeft*r.x+s.x,y:e.y*r.y-n.scrollTop*r.y+s.y}}function Fg(S){return Array.from(S.getClientRects())}function gf(S){return Ri(Hn(S)).left+zo(S).scrollLeft}function Bg(S){const k=Hn(S),e=zo(S),t=S.ownerDocument.body,f=Ii(k.scrollWidth,k.clientWidth,t.scrollWidth,t.clientWidth),u=Ii(k.scrollHeight,k.clientHeight,t.scrollHeight,t.clientHeight);let i=-e.scrollLeft+gf(S);const o=-e.scrollTop;return gn(t).direction==="rtl"&&(i+=Ii(k.clientWidth,t.clientWidth)-f),{width:f,height:u,x:i,y:o}}function zg(S,k){const e=Kr(S),t=Hn(S),f=e.visualViewport;let u=t.clientWidth,i=t.clientHeight,o=0,n=0;if(f){u=f.width,i=f.height;const r=vl();(!r||r&&k==="fixed")&&(o=f.offsetLeft,n=f.offsetTop)}return{width:u,height:i,x:o,y:n}}function Wg(S,k){const e=Ri(S,!0,k==="fixed"),t=e.top+S.clientTop,f=e.left+S.clientLeft,u=In(S)?ls(S):li(1),i=S.clientWidth*u.x,o=S.clientHeight*u.y,n=f*u.x,r=t*u.y;return{width:i,height:o,x:n,y:r}}function bf(S,k,e){let t;if(k==="viewport")t=zg(S,e);else if(k==="document")t=Bg(Hn(S));else if(zr(k))t=Wg(k,e);else{const f=mf(S);t={...k,x:k.x-f.x,y:k.y-f.y}}return Yo(t)}function yf(S,k){const e=ai(S);return e===k||!zr(e)||ss(e)?!1:gn(e).position==="fixed"||yf(e,k)}function $g(S,k){const e=k.get(S);if(e)return e;let t=js(S,[],!1).filter(o=>zr(o)&&is(o)!=="body"),f=null;const u=gn(S).position==="fixed";let i=u?ai(S):S;for(;zr(i)&&!ss(i);){const o=gn(i),n=yl(i);!n&&o.position==="fixed"&&(f=null),(u?!n&&!f:!n&&o.position==="static"&&!!f&&["absolute","fixed"].includes(f.position)||Ps(i)&&!n&&yf(S,i))?t=t.filter(s=>s!==i):f=o,i=ai(i)}return k.set(S,t),t}function Ug(S){let{element:k,boundary:e,rootBoundary:t,strategy:f}=S;const i=[...e==="clippingAncestors"?Cl(k)?[]:$g(k,this._c):[].concat(e),t],o=i[0],n=i.reduce((r,s)=>{const c=bf(k,s,f);return r.top=Ii(c.top,r.top),r.right=os(c.right,r.right),r.bottom=os(c.bottom,r.bottom),r.left=Ii(c.left,r.left),r},bf(k,o,f));return{width:n.right-n.left,height:n.bottom-n.top,x:n.left,y:n.top}}function Hg(S){const{width:k,height:e}=pf(S);return{width:k,height:e}}function Yg(S,k,e){const t=In(k),f=Hn(k),u=e==="fixed",i=Ri(S,!0,u,k);let o={scrollLeft:0,scrollTop:0};const n=li(0);if(t||!t&&!u)if((is(k)!=="body"||Ps(f))&&(o=zo(k)),t){const c=Ri(k,!0,u,k);n.x=c.x+k.clientLeft,n.y=c.y+k.clientTop}else f&&(n.x=gf(f));const r=i.left+o.scrollLeft-n.x,s=i.top+o.scrollTop-n.y;return{x:r,y:s,width:i.width,height:i.height}}function Ml(S){return gn(S).position==="static"}function vf(S,k){return!In(S)||gn(S).position==="fixed"?null:k?k(S):S.offsetParent}function wf(S,k){const e=Kr(S);if(Cl(S))return e;if(!In(S)){let f=ai(S);for(;f&&!ss(f);){if(zr(f)&&!Ml(f))return f;f=ai(f)}return e}let t=vf(S,k);for(;t&&bg(t)&&Ml(t);)t=vf(t,k);return t&&ss(t)&&Ml(t)&&!yl(t)?e:t||yg(S)||e}const Vg=async function(S){const k=this.getOffsetParent||wf,e=this.getDimensions,t=await e(S.floating);return{reference:Yg(S.reference,await k(S.floating),S.strategy),floating:{x:0,y:0,width:t.width,height:t.height}}};function qg(S){return gn(S).direction==="rtl"}const _f={convertOffsetParentRelativeRectToViewportRelativeRect:Lg,getDocumentElement:Hn,getClippingRect:Ug,getOffsetParent:wf,getElementRects:Vg,getClientRects:Fg,getDimensions:Hg,getScale:ls,isElement:zr,isRTL:qg};function Xg(S,k){let e=null,t;const f=Hn(S);function u(){var o;clearTimeout(t),(o=e)==null||o.disconnect(),e=null}function i(o,n){o===void 0&&(o=!1),n===void 0&&(n=1),u();const{left:r,top:s,width:c,height:a}=S.getBoundingClientRect();if(o||k(),!c||!a)return;const l=$o(s),p=$o(f.clientWidth-(r+c)),h=$o(f.clientHeight-(s+a)),d=$o(r),m={rootMargin:-l+"px "+-p+"px "+-h+"px "+-d+"px",threshold:Ii(0,os(1,n))||1};let _=!0;function T(O){const L=O[0].intersectionRatio;if(L!==n){if(!_)return i();L?i(!1,L):t=setTimeout(()=>{i(!1,1e-7)},1e3)}_=!1}try{e=new IntersectionObserver(T,{...m,root:f.ownerDocument})}catch{e=new IntersectionObserver(T,m)}e.observe(S)}return i(!0),u}function Kg(S,k,e,t){t===void 0&&(t={});const{ancestorScroll:f=!0,ancestorResize:u=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:n=!1}=t,r=kl(S),s=f||u?[...r?js(r):[],...js(k)]:[];s.forEach(b=>{f&&b.addEventListener("scroll",e,{passive:!0}),u&&b.addEventListener("resize",e)});const c=r&&o?Xg(r,e):null;let a=-1,l=null;i&&(l=new ResizeObserver(b=>{let[m]=b;m&&m.target===r&&l&&(l.unobserve(k),cancelAnimationFrame(a),a=requestAnimationFrame(()=>{var _;(_=l)==null||_.observe(k)})),e()}),r&&!n&&l.observe(r),l.observe(k));let p,h=n?Ri(S):null;n&&d();function d(){const b=Ri(S);h&&(b.x!==h.x||b.y!==h.y||b.width!==h.width||b.height!==h.height)&&e(),h=b,p=requestAnimationFrame(d)}return e(),()=>{var b;s.forEach(m=>{f&&m.removeEventListener("scroll",e),u&&m.removeEventListener("resize",e)}),c==null||c(),(b=l)==null||b.disconnect(),l=null,n&&cancelAnimationFrame(p)}}const Zg=Rg,Gg=Ag,xf=Og,Qg=(S,k,e)=>{const t=new Map,f={platform:_f,...e},u={...f.platform,_c:t};return Eg(S,k,{...f,platform:u})};var Vo=typeof document<"u"?ce.useLayoutEffect:ce.useEffect;function qo(S,k){if(S===k)return!0;if(typeof S!=typeof k)return!1;if(typeof S=="function"&&S.toString()===k.toString())return!0;let e,t,f;if(S&&k&&typeof S=="object"){if(Array.isArray(S)){if(e=S.length,e!==k.length)return!1;for(t=e;t--!==0;)if(!qo(S[t],k[t]))return!1;return!0}if(f=Object.keys(S),e=f.length,e!==Object.keys(k).length)return!1;for(t=e;t--!==0;)if(!{}.hasOwnProperty.call(k,f[t]))return!1;for(t=e;t--!==0;){const u=f[t];if(!(u==="_owner"&&S.$$typeof)&&!qo(S[u],k[u]))return!1}return!0}return S!==S&&k!==k}function Sf(S){return typeof window>"u"?1:(S.ownerDocument.defaultView||window).devicePixelRatio||1}function kf(S,k){const e=Sf(S);return Math.round(k*e)/e}function Cf(S){const k=xt.useRef(S);return Vo(()=>{k.current=S}),k}function Tl(S){S===void 0&&(S={});const{placement:k="bottom",strategy:e="absolute",middleware:t=[],platform:f,elements:{reference:u,floating:i}={},transform:o=!0,whileElementsMounted:n,open:r}=S,[s,c]=xt.useState({x:0,y:0,strategy:e,placement:k,middlewareData:{},isPositioned:!1}),[a,l]=xt.useState(t);qo(a,t)||l(t);const[p,h]=xt.useState(null),[d,b]=xt.useState(null),m=xt.useCallback(v=>{v!==L.current&&(L.current=v,h(v))},[]),_=xt.useCallback(v=>{v!==W.current&&(W.current=v,b(v))},[]),T=u||p,O=i||d,L=xt.useRef(null),W=xt.useRef(null),N=xt.useRef(s),z=n!=null,U=Cf(n),Y=Cf(f),$=xt.useCallback(()=>{if(!L.current||!W.current)return;const v={placement:k,strategy:e,middleware:a};Y.current&&(v.platform=Y.current),Qg(L.current,W.current,v).then(w=>{const x={...w,isPositioned:!0};E.current&&!qo(N.current,x)&&(N.current=x,yp.flushSync(()=>{c(x)}))})},[a,k,e,Y]);Vo(()=>{r===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,c(v=>({...v,isPositioned:!1})))},[r]);const E=xt.useRef(!1);Vo(()=>(E.current=!0,()=>{E.current=!1}),[]),Vo(()=>{if(T&&(L.current=T),O&&(W.current=O),T&&O){if(U.current)return U.current(T,O,$);$()}},[T,O,$,U,z]);const A=xt.useMemo(()=>({reference:L,floating:W,setReference:m,setFloating:_}),[m,_]),C=xt.useMemo(()=>({reference:T,floating:O}),[T,O]),y=xt.useMemo(()=>{const v={position:e,left:0,top:0};if(!C.floating)return v;const w=kf(C.floating,s.x),x=kf(C.floating,s.y);return o?{...v,transform:"translate("+w+"px, "+x+"px)",...Sf(C.floating)>=1.5&&{willChange:"transform"}}:{position:e,left:w,top:x}},[e,o,C.floating,s.x,s.y]);return xt.useMemo(()=>({...s,update:$,refs:A,elements:C,floatingStyles:y}),[s,$,A,C,y])}const Jg=S=>{function k(e){return{}.hasOwnProperty.call(e,"current")}return{name:"arrow",options:S,fn(e){const{element:t,padding:f}=typeof S=="function"?S(e):S;return t&&k(t)?t.current!=null?xf({element:t.current,padding:f}).fn(e):{}:t?xf({element:t,padding:f}).fn(e):{}}}},eb=(S,k)=>({...Zg(S),options:[S,k]}),El=(S,k)=>({...Gg(S),options:[S,k]}),tb=(S,k)=>({...Jg(S),options:[S,k]}),Mf={...xt},rb=Mf.useInsertionEffect||(S=>S());function nb(S){const k=xt.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return rb(()=>{k.current=S}),xt.useCallback(function(){for(var e=arguments.length,t=new Array(e),f=0;f<e;f++)t[f]=arguments[f];return k.current==null?void 0:k.current(...t)},[])}var Dl=typeof document<"u"?ce.useLayoutEffect:ce.useEffect;function Ol(){return Ol=Object.assign?Object.assign.bind():function(S){for(var k=1;k<arguments.length;k++){var e=arguments[k];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(S[t]=e[t])}return S},Ol.apply(this,arguments)}let Tf=!1,ib=0;const Ef=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ib++;function sb(){const[S,k]=xt.useState(()=>Tf?Ef():void 0);return Dl(()=>{S==null&&k(Ef())},[]),xt.useEffect(()=>{Tf=!0},[]),S}const Df=Mf.useId||sb;let Fs;process.env.NODE_ENV!=="production"&&(Fs=new Set);function ob(){for(var S,k=arguments.length,e=new Array(k),t=0;t<k;t++)e[t]=arguments[t];const f="Floating UI: "+e.join(" ");if(!((S=Fs)!=null&&S.has(f))){var u;(u=Fs)==null||u.add(f),console.warn(f)}}function ab(){for(var S,k=arguments.length,e=new Array(k),t=0;t<k;t++)e[t]=arguments[t];const f="Floating UI: "+e.join(" ");if(!((S=Fs)!=null&&S.has(f))){var u;(u=Fs)==null||u.add(f),console.error(f)}}const lb=xt.forwardRef(function(k,e){const{context:{placement:t,elements:{floating:f},middlewareData:{arrow:u}},width:i=14,height:o=7,tipRadius:n=0,strokeWidth:r=0,staticOffset:s,stroke:c,d:a,style:{transform:l,...p}={},...h}=k;process.env.NODE_ENV!=="production"&&(e||ob("The `ref` prop is required for `FloatingArrow`."));const d=Df();if(!f)return null;const b=r*2,m=b/2,_=i/2*(n/-8+1),T=o/2*n/4,[O,L]=t.split("-"),W=_f.isRTL(f),N=!!a,z=O==="top"||O==="bottom",U=s&&L==="end"?"bottom":"top";let Y=s&&L==="end"?"right":"left";s&&W&&(Y=L==="end"?"left":"right");const $=(u==null?void 0:u.x)!=null?s||u.x:"",E=(u==null?void 0:u.y)!=null?s||u.y:"",A=a||"M0,0"+(" H"+i)+(" L"+(i-_)+","+(o-T))+(" Q"+i/2+","+o+" "+_+","+(o-T))+" Z",C={top:N?"rotate(180deg)":"",left:N?"rotate(90deg)":"rotate(-90deg)",bottom:N?"":"rotate(180deg)",right:N?"rotate(-90deg)":"rotate(90deg)"}[O];return xt.createElement("svg",Ol({},h,{"aria-hidden":!0,ref:e,width:N?i:i+b,height:i,viewBox:"0 0 "+i+" "+(o>i?o:i),style:{position:"absolute",pointerEvents:"none",[Y]:$,[U]:E,[O]:z||N?"100%":"calc(100% - "+b/2+"px)",transform:""+C+(l??""),...p}}),b>0&&xt.createElement("path",{clipPath:"url(#"+d+")",fill:"none",stroke:c,strokeWidth:b+(a?0:1),d:A}),xt.createElement("path",{stroke:b&&!a?h.fill:"none",d:A}),xt.createElement("clipPath",{id:d},xt.createElement("rect",{x:-m,y:m*(N?-1:1),width:i+b,height:i})))});function ub(){const S=new Map;return{emit(k,e){var t;(t=S.get(k))==null||t.forEach(f=>f(e))},on(k,e){S.set(k,[...S.get(k)||[],e])},off(k,e){var t;S.set(k,((t=S.get(k))==null?void 0:t.filter(f=>f!==e))||[])}}}const cb=xt.createContext(null),fb=xt.createContext(null),db=()=>{var S;return((S=xt.useContext(cb))==null?void 0:S.id)||null},hb=()=>xt.useContext(fb);function pb(S){const{open:k=!1,onOpenChange:e,elements:t}=S,f=Df(),u=xt.useRef({}),[i]=xt.useState(()=>ub()),o=db()!=null;if(process.env.NODE_ENV!=="production"){const l=t.reference;l&&!zr(l)&&ab("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[n,r]=xt.useState(t.reference),s=nb((l,p,h)=>{u.current.openEvent=l?p:void 0,i.emit("openchange",{open:l,event:p,reason:h,nested:o}),e==null||e(l,p,h)}),c=xt.useMemo(()=>({setPositionReference:r}),[]),a=xt.useMemo(()=>({reference:n||t.reference||null,floating:t.floating||null,domReference:t.reference}),[n,t.reference,t.floating]);return xt.useMemo(()=>({dataRef:u,open:k,onOpenChange:s,elements:a,events:i,floatingId:f,refs:c}),[k,s,a,i,f,c])}function mb(S){S===void 0&&(S={});const{nodeId:k}=S,e=pb({...S,elements:{reference:null,floating:null,...S.elements}}),t=S.rootContext||e,f=t.elements,[u,i]=xt.useState(null),[o,n]=xt.useState(null),s=(f==null?void 0:f.reference)||u,c=xt.useRef(null),a=hb();Dl(()=>{s&&(c.current=s)},[s]);const l=Tl({...S,elements:{...f,...o&&{reference:o}}}),p=xt.useCallback(_=>{const T=zr(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),contextElement:_}:_;n(T),l.refs.setReference(T)},[l.refs]),h=xt.useCallback(_=>{(zr(_)||_===null)&&(c.current=_,i(_)),(zr(l.refs.reference.current)||l.refs.reference.current===null||_!==null&&!zr(_))&&l.refs.setReference(_)},[l.refs]),d=xt.useMemo(()=>({...l.refs,setReference:h,setPositionReference:p,domReference:c}),[l.refs,h,p]),b=xt.useMemo(()=>({...l.elements,domReference:s}),[l.elements,s]),m=xt.useMemo(()=>({...l,...t,refs:d,elements:b,nodeId:k}),[l,d,b,k,t]);return Dl(()=>{t.dataRef.current.floatingContext=m;const _=a==null?void 0:a.nodesRef.current.find(T=>T.id===k);_&&(_.context=m)}),xt.useMemo(()=>({...l,context:m,refs:d,elements:b}),[l,d,b,m])}/*!
56
+ }`;var Nt=mp(function(){return er(se,ft+"return "+ze).apply(e,de)});if(Nt.source=ze,ju(Nt))throw Nt;return Nt}function B4(g){return tr(g).toLowerCase()}function z4(g){return tr(g).toUpperCase()}function W4(g,M,j){if(g=tr(g),g&&(j||M===e))return kd(g);if(!g||!(M=Jr(M)))return g;var X=vn(g),G=vn(M),se=Cd(X,G),de=Md(X,G)+1;return Ci(X,se,de).join("")}function $4(g,M,j){if(g=tr(g),g&&(j||M===e))return g.slice(0,Ed(g)+1);if(!g||!(M=Jr(M)))return g;var X=vn(g),G=Md(X,vn(M))+1;return Ci(X,0,G).join("")}function U4(g,M,j){if(g=tr(g),g&&(j||M===e))return g.replace(pe,"");if(!g||!(M=Jr(M)))return g;var X=vn(g),G=Cd(X,vn(M));return Ci(X,G).join("")}function H4(g,M){var j=U,X=Y;if(hr(M)){var G="separator"in M?M.separator:G;j="length"in M?Rt(M.length):j,X="omission"in M?Jr(M.omission):X}g=tr(g);var se=g.length;if(gs(g)){var de=vn(g);se=de.length}if(j>=se)return g;var me=j-bs(X);if(me<1)return X;var Se=de?Ci(de,0,me).join(""):g.slice(0,me);if(G===e)return Se+X;if(de&&(me+=Se.length-me),Lu(G)){if(g.slice(me).search(G)){var Ne,Pe=Se;for(G.global||(G=Jl(G.source,tr(Be.exec(G))+"g")),G.lastIndex=0;Ne=G.exec(Pe);)var ze=Ne.index;Se=Se.slice(0,ze===e?me:ze)}}else if(g.indexOf(Jr(G),me)!=me){var Qe=Se.lastIndexOf(G);Qe>-1&&(Se=Se.slice(0,Qe))}return Se+X}function Y4(g){return g=tr(g),g&&ct.test(g)?g.replace(kt,wv):g}var V4=ks(function(g,M,j){return g+(j?" ":"")+M.toUpperCase()}),zu=gh("toUpperCase");function pp(g,M,j){return g=tr(g),M=j?e:M,M===e?mv(g)?Sv(g):ov(g):g.match(M)||[]}var mp=Ft(function(g,M){try{return Gr(g,e,M)}catch(j){return ju(j)?j:new Et(j)}}),q4=Jn(function(g,M){return an(M,function(j){j=Fn(j),Gn(g,j,Nu(g[j],g))}),g});function X4(g){var M=g==null?0:g.length,j=gt();return g=M?fr(g,function(X){if(typeof X[1]!="function")throw new ln(i);return[j(X[0]),X[1]]}):[],Ft(function(X){for(var G=-1;++G<M;){var se=g[G];if(Gr(se[0],this,X))return Gr(se[1],this,X)}})}function K4(g){return w2(cn(g,c))}function Wu(g){return function(){return g}}function Z4(g,M){return g==null||g!==g?M:g}var G4=yh(),Q4=yh(!0);function Xr(g){return g}function $u(g){return Xd(typeof g=="function"?g:cn(g,c))}function J4(g){return Zd(cn(g,c))}function e6(g,M){return Gd(g,cn(M,c))}var t6=Ft(function(g,M){return function(j){return eo(j,g,M)}}),r6=Ft(function(g,M){return function(j){return eo(g,j,M)}});function Uu(g,M,j){var X=Er(M),G=Sa(M,X);j==null&&!(hr(M)&&(G.length||!X.length))&&(j=M,M=g,g=this,G=Sa(M,Er(M)));var se=!(hr(j)&&"chain"in j)||!!j.chain,de=ti(g);return an(G,function(me){var Se=M[me];g[me]=Se,de&&(g.prototype[me]=function(){var Ne=this.__chain__;if(se||Ne){var Pe=g(this.__wrapped__),ze=Pe.__actions__=Yr(this.__actions__);return ze.push({func:Se,args:arguments,thisArg:g}),Pe.__chain__=Ne,Pe}return Se.apply(g,vi([this.value()],arguments))})}),g}function n6(){return Ir._===this&&(Ir._=Dv),this}function Hu(){}function i6(g){return g=Rt(g),Ft(function(M){return Qd(M,g)})}var s6=_u(fr),o6=_u(vd),a6=_u(Vl);function gp(g){return Eu(g)?ql(Fn(g)):L2(g)}function l6(g){return function(M){return g==null?e:$i(g,M)}}var u6=wh(),c6=wh(!0);function Yu(){return[]}function Vu(){return!1}function f6(){return{}}function d6(){return""}function h6(){return!0}function p6(g,M){if(g=Rt(g),g<1||g>w)return[];var j=P,X=Pr(g,P);M=gt(M),g-=P;for(var G=Zl(X,M);++j<g;)M(j);return G}function m6(g){return Dt(g)?fr(g,Fn):en(g)?[g]:Yr(jh(tr(g)))}function g6(g){var M=++Tv;return tr(g)+M}var b6=Da(function(g,M){return g+M},0),y6=xu("ceil"),v6=Da(function(g,M){return g/M},1),w6=xu("floor");function _6(g){return g&&g.length?xa(g,Xr,au):e}function x6(g,M){return g&&g.length?xa(g,gt(M,2),au):e}function S6(g){return xd(g,Xr)}function k6(g,M){return xd(g,gt(M,2))}function C6(g){return g&&g.length?xa(g,Xr,fu):e}function M6(g,M){return g&&g.length?xa(g,gt(M,2),fu):e}var T6=Da(function(g,M){return g*M},1),E6=xu("round"),D6=Da(function(g,M){return g-M},0);function O6(g){return g&&g.length?Kl(g,Xr):0}function A6(g,M){return g&&g.length?Kl(g,gt(M,2)):0}return re.after=J3,re.ary=qh,re.assign=z_,re.assignIn=ap,re.assignInWith=$a,re.assignWith=W_,re.at=$_,re.before=Xh,re.bind=Nu,re.bindAll=q4,re.bindKey=Kh,re.castArray=f_,re.chain=Hh,re.chunk=ww,re.compact=_w,re.concat=xw,re.cond=X4,re.conforms=K4,re.constant=Wu,re.countBy=O3,re.create=U_,re.curry=Zh,re.curryRight=Gh,re.debounce=Qh,re.defaults=H_,re.defaultsDeep=Y_,re.defer=e_,re.delay=t_,re.difference=Sw,re.differenceBy=kw,re.differenceWith=Cw,re.drop=Mw,re.dropRight=Tw,re.dropRightWhile=Ew,re.dropWhile=Dw,re.fill=Ow,re.filter=I3,re.flatMap=P3,re.flatMapDeep=j3,re.flatMapDepth=L3,re.flatten=zh,re.flattenDeep=Aw,re.flattenDepth=Iw,re.flip=r_,re.flow=G4,re.flowRight=Q4,re.fromPairs=Rw,re.functions=Q_,re.functionsIn=J_,re.groupBy=F3,re.initial=Pw,re.intersection=jw,re.intersectionBy=Lw,re.intersectionWith=Fw,re.invert=t4,re.invertBy=r4,re.invokeMap=z3,re.iteratee=$u,re.keyBy=W3,re.keys=Er,re.keysIn=qr,re.map=ja,re.mapKeys=i4,re.mapValues=s4,re.matches=J4,re.matchesProperty=e6,re.memoize=Fa,re.merge=o4,re.mergeWith=lp,re.method=t6,re.methodOf=r6,re.mixin=Uu,re.negate=Ba,re.nthArg=i6,re.omit=a4,re.omitBy=l4,re.once=n_,re.orderBy=$3,re.over=s6,re.overArgs=i_,re.overEvery=o6,re.overSome=a6,re.partial=Pu,re.partialRight=Jh,re.partition=U3,re.pick=u4,re.pickBy=up,re.property=gp,re.propertyOf=l6,re.pull=$w,re.pullAll=$h,re.pullAllBy=Uw,re.pullAllWith=Hw,re.pullAt=Yw,re.range=u6,re.rangeRight=c6,re.rearg=s_,re.reject=V3,re.remove=Vw,re.rest=o_,re.reverse=Iu,re.sampleSize=X3,re.set=f4,re.setWith=d4,re.shuffle=K3,re.slice=qw,re.sortBy=Q3,re.sortedUniq=e3,re.sortedUniqBy=t3,re.split=P4,re.spread=a_,re.tail=r3,re.take=n3,re.takeRight=i3,re.takeRightWhile=s3,re.takeWhile=o3,re.tap=_3,re.throttle=l_,re.thru=Pa,re.toArray=ip,re.toPairs=cp,re.toPairsIn=fp,re.toPath=m6,re.toPlainObject=op,re.transform=h4,re.unary=u_,re.union=a3,re.unionBy=l3,re.unionWith=u3,re.uniq=c3,re.uniqBy=f3,re.uniqWith=d3,re.unset=p4,re.unzip=Ru,re.unzipWith=Uh,re.update=m4,re.updateWith=g4,re.values=Ts,re.valuesIn=b4,re.without=h3,re.words=pp,re.wrap=c_,re.xor=p3,re.xorBy=m3,re.xorWith=g3,re.zip=b3,re.zipObject=y3,re.zipObjectDeep=v3,re.zipWith=w3,re.entries=cp,re.entriesIn=fp,re.extend=ap,re.extendWith=$a,Uu(re,re),re.add=b6,re.attempt=mp,re.camelCase=_4,re.capitalize=dp,re.ceil=y6,re.clamp=y4,re.clone=d_,re.cloneDeep=p_,re.cloneDeepWith=m_,re.cloneWith=h_,re.conformsTo=g_,re.deburr=hp,re.defaultTo=Z4,re.divide=v6,re.endsWith=x4,re.eq=_n,re.escape=S4,re.escapeRegExp=k4,re.every=A3,re.find=R3,re.findIndex=Fh,re.findKey=V_,re.findLast=N3,re.findLastIndex=Bh,re.findLastKey=q_,re.floor=w6,re.forEach=Yh,re.forEachRight=Vh,re.forIn=X_,re.forInRight=K_,re.forOwn=Z_,re.forOwnRight=G_,re.get=Fu,re.gt=b_,re.gte=y_,re.has=e4,re.hasIn=Bu,re.head=Wh,re.identity=Xr,re.includes=B3,re.indexOf=Nw,re.inRange=v4,re.invoke=n4,re.isArguments=Yi,re.isArray=Dt,re.isArrayBuffer=v_,re.isArrayLike=Vr,re.isArrayLikeObject=vr,re.isBoolean=w_,re.isBuffer=Mi,re.isDate=__,re.isElement=x_,re.isEmpty=S_,re.isEqual=k_,re.isEqualWith=C_,re.isError=ju,re.isFinite=M_,re.isFunction=ti,re.isInteger=ep,re.isLength=za,re.isMap=tp,re.isMatch=T_,re.isMatchWith=E_,re.isNaN=D_,re.isNative=O_,re.isNil=I_,re.isNull=A_,re.isNumber=rp,re.isObject=hr,re.isObjectLike=gr,re.isPlainObject=oo,re.isRegExp=Lu,re.isSafeInteger=R_,re.isSet=np,re.isString=Wa,re.isSymbol=en,re.isTypedArray=Ms,re.isUndefined=N_,re.isWeakMap=P_,re.isWeakSet=j_,re.join=Bw,re.kebabCase=C4,re.last=dn,re.lastIndexOf=zw,re.lowerCase=M4,re.lowerFirst=T4,re.lt=L_,re.lte=F_,re.max=_6,re.maxBy=x6,re.mean=S6,re.meanBy=k6,re.min=C6,re.minBy=M6,re.stubArray=Yu,re.stubFalse=Vu,re.stubObject=f6,re.stubString=d6,re.stubTrue=h6,re.multiply=T6,re.nth=Ww,re.noConflict=n6,re.noop=Hu,re.now=La,re.pad=E4,re.padEnd=D4,re.padStart=O4,re.parseInt=A4,re.random=w4,re.reduce=H3,re.reduceRight=Y3,re.repeat=I4,re.replace=R4,re.result=c4,re.round=E6,re.runInContext=_e,re.sample=q3,re.size=Z3,re.snakeCase=N4,re.some=G3,re.sortedIndex=Xw,re.sortedIndexBy=Kw,re.sortedIndexOf=Zw,re.sortedLastIndex=Gw,re.sortedLastIndexBy=Qw,re.sortedLastIndexOf=Jw,re.startCase=j4,re.startsWith=L4,re.subtract=D6,re.sum=O6,re.sumBy=A6,re.template=F4,re.times=p6,re.toFinite=ri,re.toInteger=Rt,re.toLength=sp,re.toLower=B4,re.toNumber=hn,re.toSafeInteger=B_,re.toString=tr,re.toUpper=z4,re.trim=W4,re.trimEnd=$4,re.trimStart=U4,re.truncate=H4,re.unescape=Y4,re.uniqueId=g6,re.upperCase=V4,re.upperFirst=zu,re.each=Yh,re.eachRight=Vh,re.first=Wh,Uu(re,function(){var g={};return jn(re,function(M,j){sr.call(re.prototype,j)||(g[j]=M)}),g}(),{chain:!1}),re.VERSION=t,an(["bind","bindKey","curry","curryRight","partial","partialRight"],function(g){re[g].placeholder=re}),an(["drop","take"],function(g,M){Yt.prototype[g]=function(j){j=j===e?1:Sr(Rt(j),0);var X=this.__filtered__&&!M?new Yt(this):this.clone();return X.__filtered__?X.__takeCount__=Pr(j,X.__takeCount__):X.__views__.push({size:Pr(j,P),type:g+(X.__dir__<0?"Right":"")}),X},Yt.prototype[g+"Right"]=function(j){return this.reverse()[g](j).reverse()}}),an(["filter","map","takeWhile"],function(g,M){var j=M+1,X=j==A||j==y;Yt.prototype[g]=function(G){var se=this.clone();return se.__iteratees__.push({iteratee:gt(G,3),type:j}),se.__filtered__=se.__filtered__||X,se}}),an(["head","last"],function(g,M){var j="take"+(M?"Right":"");Yt.prototype[g]=function(){return this[j](1).value()[0]}}),an(["initial","tail"],function(g,M){var j="drop"+(M?"":"Right");Yt.prototype[g]=function(){return this.__filtered__?new Yt(this):this[j](1)}}),Yt.prototype.compact=function(){return this.filter(Xr)},Yt.prototype.find=function(g){return this.filter(g).head()},Yt.prototype.findLast=function(g){return this.reverse().find(g)},Yt.prototype.invokeMap=Ft(function(g,M){return typeof g=="function"?new Yt(this):this.map(function(j){return eo(j,g,M)})}),Yt.prototype.reject=function(g){return this.filter(Ba(gt(g)))},Yt.prototype.slice=function(g,M){g=Rt(g);var j=this;return j.__filtered__&&(g>0||M<0)?new Yt(j):(g<0?j=j.takeRight(-g):g&&(j=j.drop(g)),M!==e&&(M=Rt(M),j=M<0?j.dropRight(-M):j.take(M-g)),j)},Yt.prototype.takeRightWhile=function(g){return this.reverse().takeWhile(g).reverse()},Yt.prototype.toArray=function(){return this.take(P)},jn(Yt.prototype,function(g,M){var j=/^(?:filter|find|map|reject)|While$/.test(M),X=/^(?:head|last)$/.test(M),G=re[X?"take"+(M=="last"?"Right":""):M],se=X||/^find/.test(M);G&&(re.prototype[M]=function(){var de=this.__wrapped__,me=X?[1]:arguments,Se=de instanceof Yt,Ne=me[0],Pe=Se||Dt(de),ze=function(Ut){var Vt=G.apply(re,vi([Ut],me));return X&&Qe?Vt[0]:Vt};Pe&&j&&typeof Ne=="function"&&Ne.length!=1&&(Se=Pe=!1);var Qe=this.__chain__,ft=!!this.__actions__.length,bt=se&&!Qe,Nt=Se&&!ft;if(!se&&Pe){de=Nt?de:new Yt(this);var yt=g.apply(de,me);return yt.__actions__.push({func:Pa,args:[ze],thisArg:e}),new un(yt,Qe)}return bt&&Nt?g.apply(this,me):(yt=this.thru(ze),bt?X?yt.value()[0]:yt.value():yt)})}),an(["pop","push","shift","sort","splice","unshift"],function(g){var M=aa[g],j=/^(?:push|sort|unshift)$/.test(g)?"tap":"thru",X=/^(?:pop|shift)$/.test(g);re.prototype[g]=function(){var G=arguments;if(X&&!this.__chain__){var se=this.value();return M.apply(Dt(se)?se:[],G)}return this[j](function(de){return M.apply(Dt(de)?de:[],G)})}}),jn(Yt.prototype,function(g,M){var j=re[M];if(j){var X=j.name+"";sr.call(_s,X)||(_s[X]=[]),_s[X].push({name:M,func:j})}}),_s[Ea(e,b).name]=[{name:"wrapper",func:e}],Yt.prototype.clone=Yv,Yt.prototype.reverse=Vv,Yt.prototype.value=qv,re.prototype.at=x3,re.prototype.chain=S3,re.prototype.commit=k3,re.prototype.next=C3,re.prototype.plant=T3,re.prototype.reverse=E3,re.prototype.toJSON=re.prototype.valueOf=re.prototype.value=D3,re.prototype.first=re.prototype.head,qs&&(re.prototype[qs]=M3),re},ys=kv();Li?((Li.exports=ys)._=ys,$l._=ys):Ir._=ys}).call(St)}(Po,Po.exports);var jo=Po.exports;function Xc(S){return!!S.match(/[A-Z]/)}function rg(S){return jo.upperFirst(S.replaceAll(/[A-Z]/g,(k,e)=>{const t=S[e-1],f=t?Xc(t):!1,u=S[e+1],i=u?Xc(u):!1;return e===0||f&&(!u||i)?k:` ${i?k:k.toLowerCase()}`}))}const ng={"Europe/Amsterdam":"AMS","Europe/Berlin":"AMS","Asia/Jakarta":"JKT","Asia/Bangkok":"JKT",showingFilteredCountOfTotalCount:"Showing {0} of {1}"};function Kc(S,...k){let e=ng[S]||rg(S);return k.forEach((t,f)=>{e=e.replace(`{${f}}`,`${t}`)}),e}const mn="SELECT_ALL_COLUMN_NAME",Zc=40,dl="dd MMM yyyy",Lo="dd MMM yyyy HH:mm",hl=25,Gc=3;var Un=(S=>(S.GT="GT",S.LT="LT",S.EQ="EQ",S))(Un||{}),rs=(S=>(S.UNAVAILABLE="UNAVAILABLE",S.AVAILABLE="AVAILABLE",S.ACTIVE="ACTIVE",S))(rs||{});const ns=()=>{throw Error("SchemaTableContext not constructed")},Ns=xt.createContext({columnFilterMap:{},columnNames:[],columnWidths:[],properties:{},required:[],isItemLoaded:()=>!1,setCustomColumnNames:ns,setCustomColumnWidths:ns,setMenuConfig:ns,setSortColumn:ns,setSortAsc:ns,checkedIndexes:[],config:{},disabledCheckedIndexes:[],isColumnFilterable:!1,isSortable:!1,translate:ns}),ig=({columnIndex:S,rowIndex:k,style:e})=>{const{checkedIndexes:t,columnNames:f,isItemLoaded:u,properties:i,sortedRenderData:o,sourceData:n,config:r,disabledCheckedIndexes:s,getRowClassName:c,getRowSelected:a,onCheckedIndexesChange:l,onRowClick:p,onRowDoubleClick:h,translate:d}=ce.useContext(Ns),b=f[S],m=b===mn?{type:"boolean"}:i[b],_=r?r[b]:void 0,T=ce.useCallback(E=>{if(!l)return;const A=t&&t.includes(E);l(A?t.filter(C=>C!==E):t?[...t,E]:[E])},[t,l]),O=u(k),L=ce.useCallback(E=>{if(!n||!o||!p||!O)return;const{rowIndex:A}=E.currentTarget.dataset;if(!A)return;const C=o[parseInt(A,10)];p(n[C._index],C._index,E)},[O,p,o,n]),W=ce.useCallback(E=>{if(!n||!o||!h||!u)return;const{rowIndex:A}=E.currentTarget.dataset;if(!A)return;const C=o[parseInt(A,10)];h(n[C._index],C._index,E)},[u,h,o,n]),N=o?o[k]:void 0,{showTimezones:z,TdBody:U}=_||{},Y=ce.useMemo(()=>{if(!N||!o)return;let E=b===mn?void 0:N[b];if(m!=null&&m.format&&m.format==="date-time"&&z!==!1){const C=n?n[N._index]:void 0,y=C?C[b]:void 0,v=y?new Date(y):void 0,w=qc.startsWith("Europe/")?"Asia/Jakarta":"Europe/Amsterdam";v&&(E=`${tg(v,w,Lo)} (${d(w)})`)}const A=["mig-schema-table__td",`mig-schema-table__td--${k%2?"odd":"even"}`,`mig-schema-table__td--prop-${b}`];return n&&a&&a(n[N._index],N._index)&&A.push("mig-schema-table__td--selected"),n&&c&&A.push(c(n[N._index],N._index,o)),{"data-row-index":k,"data-column-index":S,style:e,onClick:L,onDoubleClick:W,className:A.join(" "),title:E}},[N,o,b,m==null?void 0:m.format,z,k,a,n,c,S,e,L,W,d]);if(!N||!Y)return null;if(!u||n&&!n[N._index])return qe.jsx("div",{...Y,children:"loading"});if(U&&n)return qe.jsx("div",{...Y,children:qe.jsx(U,{dataIndex:N._index,rowData:n[N._index],rowIndex:k,..._==null?void 0:_.tdBodyProps})});if(b===mn){const E=()=>{T&&T(N._index)};return qe.jsx("div",{...Y,children:qe.jsx("div",{style:{textAlign:"center"},children:qe.jsx("input",{"data-key":"row-checkbox",type:"checkbox",onChange:E,checked:t==null?void 0:t.includes(N._index),disabled:s==null?void 0:s.includes(N._index)})})})}const $=N[b];switch(m==null?void 0:m.type){case"boolean":Y.className+=` text-${(_==null?void 0:_.align)||"center"}`;break;case"number":case"integer":Y.className+=` text-${(_==null?void 0:_.align)||"end"}`;break;default:if(_!=null&&_.align&&(Y.className+=` text-${_.align}`),(m==null?void 0:m.format)==="url"&&$)return qe.jsx("a",{href:$,target:"_blank",rel:"noopener noreferrer",...Y,children:$})}return qe.jsx("div",{...Y,children:$})},Qc=ce.memo(ig),Jc=S=>S instanceof Object?S.$Date?new Date(S.$Date):Object.entries(S).reduce((k,[e,t])=>(k[e]=Jc(t),k),{}):S,ef=S=>{if(!S.length)return null;const k={};return S.substring(1).split("&").forEach(e=>{if(!e)return;const t=e.split("=");t.length===2&&(k[decodeURIComponent(t[0])]=Jc(JSON.parse(decodeURIComponent(t[1]))))}),k},tf=S=>S instanceof Object?S instanceof Date?{$Date:S.toISOString()}:Object.entries(S).reduce((k,[e,t])=>(k[e]=tf(t),k),{}):S,pl=S=>`${Object.entries(S).map(([k,e])=>`${encodeURIComponent(k)}=${encodeURIComponent(JSON.stringify(tf(e)))}`).join("&")}`;function sg(){const{checkedIndexes:S,disabledCheckedIndexes:k,sortedRenderData:e}=ce.useContext(Ns);return ce.useMemo(()=>{const t=[...e||[]].filter(f=>(S?S.includes(f._index):!0)||(k?!k.includes(f._index):!0));return(S==null?void 0:S.length)!==0&&t.length===(S==null?void 0:S.length)},[S,k,e])}function rf(S,k,e){return!!(S&&(e==null?void 0:e.isSortable)!==!1&&(k||e!=null&&e.renderData||e!=null&&e.sort))}function nf(){const{setCustomColumnWidths:S,settingsStorageKey:k}=ce.useContext(Ns);return ce.useCallback(e=>{k&&localStorage.setItem(`${k}.columnWidths`,JSON.stringify(e)),S(e)},[S,k])}const og=({index:S,style:k})=>{const{checkedIndexes:e,columnFilterMap:t,columnNames:f,columnWidths:u,properties:i,isSortable:o,required:n,setCustomColumnNames:r,setMenuConfig:s,setSortAsc:c,setSortColumn:a,settingsStorageKey:l,sortAsc:p,sortColumn:h,sortedRenderData:d,config:b,disabledCheckedIndexes:m,isColumnFilterable:_,onCheckedIndexesChange:T,translate:O}=ce.useContext(Ns),[L,W]=ce.useState(!1),[N,z]=ce.useState(!1),U=nf(),Y=f[S],$=Y===mn?{type:"boolean"}:i[Y],E=h===Y?p:void 0,A=b?b[Y]:void 0;let C=_&&($||A!=null&&A.FilterMenu)&&(A==null?void 0:A.isFilterable)!==!1?rs.AVAILABLE:rs.UNAVAILABLE;t[Y]!==void 0&&(C=rs.ACTIVE);const y=rf(o,$,A),v=["mig-schema-table__th",`mig-schema-table__th--filter-${C}`,`mig-schema-table__th--prop-${Y}`];v.push(y?"mig-schema-table__th--sortable":"mig-schema-table__th--unsortable"),E!==void 0&&v.push("mig-schema-table__th--sorted"),L&&v.push("mig-schema-table__th--dragging"),N&&v.push("mig-schema-table__th--drop-target");const{format:w}=$||{},{align:x,defaultSortDesc:D,showTimezones:P,title:F}=A||{},V=ce.useCallback(()=>{if(y){if(E===void 0){a(Y),c(!D);return}c(ue=>!ue)}},[y,D,Y,c,a,E]),q=n.includes(Y),ee=ce.useCallback(ue=>{const he=ue.currentTarget;s(J=>{if((J==null?void 0:J.propName)!==Y)return{propConfig:A,propIsRequired:q,propName:Y,referenceElement:he}})},[A,q,Y,s]),B=ce.useMemo(()=>F!==void 0?F:w==="date-time"&&P!==!1?`${O(Y)} (${O(qc)})`:O(Y),[F,w,P,O,Y]),K=ce.useCallback((ue,he)=>{if(!f||!u)return;const J=f.indexOf(ue),fe=[...f];fe.splice(J,1);const le=fe.indexOf(he);fe.splice(le+1,0,ue),r(fe);const be=[...u],ge=be[J];be.splice(J,1),be.splice(le+1,0,ge),U(be),l&&localStorage.setItem(`${l}.columnNames`,JSON.stringify(fe))},[f,u,U,l,r]),R=ce.useCallback(ue=>{K&&(W(!0),ue.dataTransfer.effectAllowed="move",ue.dataTransfer.dropEffect="move",ue.dataTransfer.setData("text/plain",Y))},[K,Y]),I=ce.useCallback(()=>{K&&W(!1)},[K]),H=ce.useCallback(ue=>{K&&(ue.preventDefault(),z(!0))},[K]),Z=ce.useCallback(()=>{K&&z(!1)},[K]),ne=ce.useCallback(ue=>{if(!K||!Y)return;const he=ue.dataTransfer.getData("text/plain");!he||he===Y||K(he,Y)},[K,Y]),Q=sg(),ie=ce.useCallback(()=>{!T||!d||T(Q?[]:d.map(ue=>ue._index).filter(ue=>!(m!=null&&m.includes(ue))))},[T,d,Q,m]);if(Y===mn)return qe.jsx("div",{style:k,className:v.join(" "),children:qe.jsx("div",{style:{width:"100%",textAlign:"center"},title:`${(e==null?void 0:e.length)||0} selected`,children:qe.jsx("input",{type:"checkbox",name:"selectAll",checked:Q,onChange:ie})})});switch($==null?void 0:$.type){case"boolean":v.push(`text-${x||"center"}`,`justify-content-${x||"center"}`);break;case"integer":case"number":v.push(`text-${x||"end"}`,`justify-content-${x||"end"}`);break;default:x&&v.push(`text-${x}`)}return qe.jsxs("div",{className:v.join(" "),style:k,title:typeof B=="string"?B:void 0,draggable:!0,onDragStart:R,onDragEnd:I,onDragOver:H,onDragLeave:Z,onDrop:ne,children:[qe.jsxs("div",{className:"mig-schema-table__th__label-body",style:{lineHeight:"44px"},onClick:V,children:[qe.jsx("span",{className:"mig-schema-table__th__label-body-text",children:B}),E===void 0?null:qe.jsx("span",{className:"mig-schema-table__th__sort-icon",children:E?"↓":"↑"})]}),y||C!==rs.UNAVAILABLE?qe.jsx("button",{className:"mig-schema-table__th__trigger-el",onClick:ee,children:qe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#404040",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:qe.jsx("polyline",{points:"6 9 12 15 18 9"})})}):null]})},sf=ce.memo(og);function of(S){var k,e,t="";if(typeof S=="string"||typeof S=="number")t+=S;else if(typeof S=="object")if(Array.isArray(S)){var f=S.length;for(k=0;k<f;k++)S[k]&&(e=of(S[k]))&&(t&&(t+=" "),t+=e)}else for(e in S)S[e]&&(t&&(t+=" "),t+=e);return t}function Dr(){for(var S,k,e=0,t="",f=arguments.length;e<f;e++)(S=arguments[e])&&(k=of(S))&&(t&&(t+=" "),t+=k);return t}function ag(S,k){S.prototype=Object.create(k.prototype),S.prototype.constructor=S,ml(S,k)}function ml(S,k){return ml=Object.setPrototypeOf||function(t,f){return t.__proto__=f,t},ml(S,k)}function lg(S,k){if(S==null)return{};var e={},t=Object.keys(S),f,u;for(u=0;u<t.length;u++)f=t[u],!(k.indexOf(f)>=0)&&(e[f]=S[f]);return e}function af(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function ug(S,k,e){return S===k?!0:S.correspondingElement?S.correspondingElement.classList.contains(e):S.classList.contains(e)}function cg(S,k,e){if(S===k)return!0;for(;S.parentNode||S.host;){if(S.parentNode&&ug(S,k,e))return!0;S=S.parentNode||S.host}return S}function fg(S){return document.documentElement.clientWidth<=S.clientX||document.documentElement.clientHeight<=S.clientY}var dg=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var k=!1,e=Object.defineProperty({},"passive",{get:function(){k=!0}}),t=function(){};return window.addEventListener("testPassiveEventSupport",t,e),window.removeEventListener("testPassiveEventSupport",t,e),k}};function hg(S){return S===void 0&&(S=0),function(){return++S}}var pg=hg(),gl,Fo={},bl={},mg=["touchstart","touchmove"],gg="ignore-react-onclickoutside";function lf(S,k){var e={},t=mg.indexOf(k)!==-1;return t&&gl&&(e.passive=!S.props.preventDefault),e}function Bo(S,k){var e,t,f=S.displayName||S.name||"Component";return t=e=function(u){ag(i,u);function i(n){var r;return r=u.call(this,n)||this,r.__outsideClickHandler=function(s){if(typeof r.__clickOutsideHandlerProp=="function"){r.__clickOutsideHandlerProp(s);return}var c=r.getInstance();if(typeof c.props.handleClickOutside=="function"){c.props.handleClickOutside(s);return}if(typeof c.handleClickOutside=="function"){c.handleClickOutside(s);return}throw new Error("WrappedComponent: "+f+" lacks a handleClickOutside(event) function for processing outside click events.")},r.__getComponentNode=function(){var s=r.getInstance();return typeof s.setClickOutsideRef=="function"?s.setClickOutsideRef():Sn.findDOMNode(s)},r.enableOnClickOutside=function(){if(!(typeof document>"u"||bl[r._uid])){typeof gl>"u"&&(gl=dg()),bl[r._uid]=!0;var s=r.props.eventTypes;s.forEach||(s=[s]),Fo[r._uid]=function(c){if(r.componentNode!==null&&!(r.initTimeStamp>c.timeStamp)&&(r.props.preventDefault&&c.preventDefault(),r.props.stopPropagation&&c.stopPropagation(),!(r.props.excludeScrollbar&&fg(c)))){var a=c.composed&&c.composedPath&&c.composedPath().shift()||c.target;cg(a,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(c)}},s.forEach(function(c){document.addEventListener(c,Fo[r._uid],lf(af(r),c))})}},r.disableOnClickOutside=function(){delete bl[r._uid];var s=Fo[r._uid];if(s&&typeof document<"u"){var c=r.props.eventTypes;c.forEach||(c=[c]),c.forEach(function(a){return document.removeEventListener(a,s,lf(af(r),a))}),delete Fo[r._uid]}},r.getRef=function(s){return r.instanceRef=s},r._uid=pg(),r.initTimeStamp=performance.now(),r}var o=i.prototype;return o.getInstance=function(){if(S.prototype&&!S.prototype.isReactComponent)return this;var r=this.instanceRef;return r.getInstance?r.getInstance():r},o.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},o.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},o.componentWillUnmount=function(){this.disableOnClickOutside()},o.render=function(){var r=this.props;r.excludeScrollbar;var s=lg(r,["excludeScrollbar"]);return S.prototype&&S.prototype.isReactComponent?s.ref=this.getRef:s.wrappedRef=this.getRef,s.disableOnClickOutside=this.disableOnClickOutside,s.enableOnClickOutside=this.enableOnClickOutside,ce.createElement(S,s)},i}(ce.Component),e.displayName="OnClickOutside("+f+")",e.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:gg,preventDefault:!1,stopPropagation:!1},e.getClass=function(){return S.getClass?S.getClass():S},t}function is(S){return uf(S)?(S.nodeName||"").toLowerCase():"#document"}function Kr(S){var k;return(S==null||(k=S.ownerDocument)==null?void 0:k.defaultView)||window}function Hn(S){var k;return(k=(uf(S)?S.ownerDocument:S.document)||window.document)==null?void 0:k.documentElement}function uf(S){return S instanceof Node||S instanceof Kr(S).Node}function zr(S){return S instanceof Element||S instanceof Kr(S).Element}function In(S){return S instanceof HTMLElement||S instanceof Kr(S).HTMLElement}function cf(S){return typeof ShadowRoot>"u"?!1:S instanceof ShadowRoot||S instanceof Kr(S).ShadowRoot}function Ps(S){const{overflow:k,overflowX:e,overflowY:t,display:f}=gn(S);return/auto|scroll|overlay|hidden|clip/.test(k+t+e)&&!["inline","contents"].includes(f)}function bg(S){return["table","td","th"].includes(is(S))}function yl(S){const k=vl(),e=gn(S);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!k&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!k&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(t=>(e.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(e.contain||"").includes(t))}function yg(S){let k=ai(S);for(;In(k)&&!ss(k);){if(yl(k))return k;k=ai(k)}return null}function vl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ss(S){return["html","body","#document"].includes(is(S))}function gn(S){return Kr(S).getComputedStyle(S)}function zo(S){return zr(S)?{scrollLeft:S.scrollLeft,scrollTop:S.scrollTop}:{scrollLeft:S.pageXOffset,scrollTop:S.pageYOffset}}function ai(S){if(is(S)==="html")return S;const k=S.assignedSlot||S.parentNode||cf(S)&&S.host||Hn(S);return cf(k)?k.host:k}function ff(S){const k=ai(S);return ss(k)?S.ownerDocument?S.ownerDocument.body:S.body:In(k)&&Ps(k)?k:ff(k)}function js(S,k,e){var t;k===void 0&&(k=[]),e===void 0&&(e=!0);const f=ff(S),u=f===((t=S.ownerDocument)==null?void 0:t.body),i=Kr(f);return u?k.concat(i,i.visualViewport||[],Ps(f)?f:[],i.frameElement&&e?js(i.frameElement):[]):k.concat(f,js(f,[],e))}const os=Math.min,Ii=Math.max,Wo=Math.round,$o=Math.floor,li=S=>({x:S,y:S}),vg={left:"right",right:"left",bottom:"top",top:"bottom"},wg={start:"end",end:"start"};function _g(S,k,e){return Ii(S,os(k,e))}function Uo(S,k){return typeof S=="function"?S(k):S}function as(S){return S.split("-")[0]}function Ls(S){return S.split("-")[1]}function xg(S){return S==="x"?"y":"x"}function wl(S){return S==="y"?"height":"width"}function _l(S){return["top","bottom"].includes(as(S))?"y":"x"}function xl(S){return xg(_l(S))}function Sg(S,k,e){e===void 0&&(e=!1);const t=Ls(S),f=xl(S),u=wl(f);let i=f==="x"?t===(e?"end":"start")?"right":"left":t==="start"?"bottom":"top";return k.reference[u]>k.floating[u]&&(i=Ho(i)),[i,Ho(i)]}function kg(S){const k=Ho(S);return[Sl(S),k,Sl(k)]}function Sl(S){return S.replace(/start|end/g,k=>wg[k])}function Cg(S,k,e){const t=["left","right"],f=["right","left"],u=["top","bottom"],i=["bottom","top"];switch(S){case"top":case"bottom":return e?k?f:t:k?t:f;case"left":case"right":return k?u:i;default:return[]}}function Mg(S,k,e,t){const f=Ls(S);let u=Cg(as(S),e==="start",t);return f&&(u=u.map(i=>i+"-"+f),k&&(u=u.concat(u.map(Sl)))),u}function Ho(S){return S.replace(/left|right|bottom|top/g,k=>vg[k])}function Tg(S){return{top:0,right:0,bottom:0,left:0,...S}}function df(S){return typeof S!="number"?Tg(S):{top:S,right:S,bottom:S,left:S}}function Yo(S){const{x:k,y:e,width:t,height:f}=S;return{width:t,height:f,top:e,left:k,right:k+t,bottom:e+f,x:k,y:e}}function hf(S,k,e){let{reference:t,floating:f}=S;const u=_l(k),i=xl(k),o=wl(i),n=as(k),r=u==="y",s=t.x+t.width/2-f.width/2,c=t.y+t.height/2-f.height/2,a=t[o]/2-f[o]/2;let l;switch(n){case"top":l={x:s,y:t.y-f.height};break;case"bottom":l={x:s,y:t.y+t.height};break;case"right":l={x:t.x+t.width,y:c};break;case"left":l={x:t.x-f.width,y:c};break;default:l={x:t.x,y:t.y}}switch(Ls(k)){case"start":l[i]-=a*(e&&r?-1:1);break;case"end":l[i]+=a*(e&&r?-1:1);break}return l}const Eg=async(S,k,e)=>{const{placement:t="bottom",strategy:f="absolute",middleware:u=[],platform:i}=e,o=u.filter(Boolean),n=await(i.isRTL==null?void 0:i.isRTL(k));let r=await i.getElementRects({reference:S,floating:k,strategy:f}),{x:s,y:c}=hf(r,t,n),a=t,l={},p=0;for(let h=0;h<o.length;h++){const{name:d,fn:b}=o[h],{x:m,y:_,data:T,reset:O}=await b({x:s,y:c,initialPlacement:t,placement:a,strategy:f,middlewareData:l,rects:r,platform:i,elements:{reference:S,floating:k}});s=m??s,c=_??c,l={...l,[d]:{...l[d],...T}},O&&p<=50&&(p++,typeof O=="object"&&(O.placement&&(a=O.placement),O.rects&&(r=O.rects===!0?await i.getElementRects({reference:S,floating:k,strategy:f}):O.rects),{x:s,y:c}=hf(r,a,n)),h=-1)}return{x:s,y:c,placement:a,strategy:f,middlewareData:l}};async function Dg(S,k){var e;k===void 0&&(k={});const{x:t,y:f,platform:u,rects:i,elements:o,strategy:n}=S,{boundary:r="clippingAncestors",rootBoundary:s="viewport",elementContext:c="floating",altBoundary:a=!1,padding:l=0}=Uo(k,S),p=df(l),d=o[a?c==="floating"?"reference":"floating":c],b=Yo(await u.getClippingRect({element:(e=await(u.isElement==null?void 0:u.isElement(d)))==null||e?d:d.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(o.floating)),boundary:r,rootBoundary:s,strategy:n})),m=c==="floating"?{x:t,y:f,width:i.floating.width,height:i.floating.height}:i.reference,_=await(u.getOffsetParent==null?void 0:u.getOffsetParent(o.floating)),T=await(u.isElement==null?void 0:u.isElement(_))?await(u.getScale==null?void 0:u.getScale(_))||{x:1,y:1}:{x:1,y:1},O=Yo(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:m,offsetParent:_,strategy:n}):m);return{top:(b.top-O.top+p.top)/T.y,bottom:(O.bottom-b.bottom+p.bottom)/T.y,left:(b.left-O.left+p.left)/T.x,right:(O.right-b.right+p.right)/T.x}}const Og=S=>({name:"arrow",options:S,async fn(k){const{x:e,y:t,placement:f,rects:u,platform:i,elements:o,middlewareData:n}=k,{element:r,padding:s=0}=Uo(S,k)||{};if(r==null)return{};const c=df(s),a={x:e,y:t},l=xl(f),p=wl(l),h=await i.getDimensions(r),d=l==="y",b=d?"top":"left",m=d?"bottom":"right",_=d?"clientHeight":"clientWidth",T=u.reference[p]+u.reference[l]-a[l]-u.floating[p],O=a[l]-u.reference[l],L=await(i.getOffsetParent==null?void 0:i.getOffsetParent(r));let W=L?L[_]:0;(!W||!await(i.isElement==null?void 0:i.isElement(L)))&&(W=o.floating[_]||u.floating[p]);const N=T/2-O/2,z=W/2-h[p]/2-1,U=os(c[b],z),Y=os(c[m],z),$=U,E=W-h[p]-Y,A=W/2-h[p]/2+N,C=_g($,A,E),y=!n.arrow&&Ls(f)!=null&&A!==C&&u.reference[p]/2-(A<$?U:Y)-h[p]/2<0,v=y?A<$?A-$:A-E:0;return{[l]:a[l]+v,data:{[l]:C,centerOffset:A-C-v,...y&&{alignmentOffset:v}},reset:y}}}),Ag=function(S){return S===void 0&&(S={}),{name:"flip",options:S,async fn(k){var e,t;const{placement:f,middlewareData:u,rects:i,initialPlacement:o,platform:n,elements:r}=k,{mainAxis:s=!0,crossAxis:c=!0,fallbackPlacements:a,fallbackStrategy:l="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...d}=Uo(S,k);if((e=u.arrow)!=null&&e.alignmentOffset)return{};const b=as(f),m=as(o)===o,_=await(n.isRTL==null?void 0:n.isRTL(r.floating)),T=a||(m||!h?[Ho(o)]:kg(o));!a&&p!=="none"&&T.push(...Mg(o,h,p,_));const O=[o,...T],L=await Dg(k,d),W=[];let N=((t=u.flip)==null?void 0:t.overflows)||[];if(s&&W.push(L[b]),c){const $=Sg(f,i,_);W.push(L[$[0]],L[$[1]])}if(N=[...N,{placement:f,overflows:W}],!W.every($=>$<=0)){var z,U;const $=(((z=u.flip)==null?void 0:z.index)||0)+1,E=O[$];if(E)return{data:{index:$,overflows:N},reset:{placement:E}};let A=(U=N.filter(C=>C.overflows[0]<=0).sort((C,y)=>C.overflows[1]-y.overflows[1])[0])==null?void 0:U.placement;if(!A)switch(l){case"bestFit":{var Y;const C=(Y=N.map(y=>[y.placement,y.overflows.filter(v=>v>0).reduce((v,w)=>v+w,0)]).sort((y,v)=>y[1]-v[1])[0])==null?void 0:Y[0];C&&(A=C);break}case"initialPlacement":A=o;break}if(f!==A)return{reset:{placement:A}}}return{}}}};async function Ig(S,k){const{placement:e,platform:t,elements:f}=S,u=await(t.isRTL==null?void 0:t.isRTL(f.floating)),i=as(e),o=Ls(e),n=_l(e)==="y",r=["left","top"].includes(i)?-1:1,s=u&&n?-1:1,c=Uo(k,S);let{mainAxis:a,crossAxis:l,alignmentAxis:p}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return o&&typeof p=="number"&&(l=o==="end"?p*-1:p),n?{x:l*s,y:a*r}:{x:a*r,y:l*s}}const Rg=function(S){return S===void 0&&(S=0),{name:"offset",options:S,async fn(k){var e,t;const{x:f,y:u,placement:i,middlewareData:o}=k,n=await Ig(k,S);return i===((e=o.offset)==null?void 0:e.placement)&&(t=o.arrow)!=null&&t.alignmentOffset?{}:{x:f+n.x,y:u+n.y,data:{...n,placement:i}}}}};function pf(S){const k=gn(S);let e=parseFloat(k.width)||0,t=parseFloat(k.height)||0;const f=In(S),u=f?S.offsetWidth:e,i=f?S.offsetHeight:t,o=Wo(e)!==u||Wo(t)!==i;return o&&(e=u,t=i),{width:e,height:t,$:o}}function kl(S){return zr(S)?S:S.contextElement}function ls(S){const k=kl(S);if(!In(k))return li(1);const e=k.getBoundingClientRect(),{width:t,height:f,$:u}=pf(k);let i=(u?Wo(e.width):e.width)/t,o=(u?Wo(e.height):e.height)/f;return(!i||!Number.isFinite(i))&&(i=1),(!o||!Number.isFinite(o))&&(o=1),{x:i,y:o}}const Ng=li(0);function mf(S){const k=Kr(S);return!vl()||!k.visualViewport?Ng:{x:k.visualViewport.offsetLeft,y:k.visualViewport.offsetTop}}function Pg(S,k,e){return k===void 0&&(k=!1),!e||k&&e!==Kr(S)?!1:k}function Ri(S,k,e,t){k===void 0&&(k=!1),e===void 0&&(e=!1);const f=S.getBoundingClientRect(),u=kl(S);let i=li(1);k&&(t?zr(t)&&(i=ls(t)):i=ls(S));const o=Pg(u,e,t)?mf(u):li(0);let n=(f.left+o.x)/i.x,r=(f.top+o.y)/i.y,s=f.width/i.x,c=f.height/i.y;if(u){const a=Kr(u),l=t&&zr(t)?Kr(t):t;let p=a,h=p.frameElement;for(;h&&t&&l!==p;){const d=ls(h),b=h.getBoundingClientRect(),m=gn(h),_=b.left+(h.clientLeft+parseFloat(m.paddingLeft))*d.x,T=b.top+(h.clientTop+parseFloat(m.paddingTop))*d.y;n*=d.x,r*=d.y,s*=d.x,c*=d.y,n+=_,r+=T,p=Kr(h),h=p.frameElement}}return Yo({width:s,height:c,x:n,y:r})}const jg=[":popover-open",":modal"];function Cl(S){return jg.some(k=>{try{return S.matches(k)}catch{return!1}})}function Lg(S){let{elements:k,rect:e,offsetParent:t,strategy:f}=S;const u=f==="fixed",i=Hn(t),o=k?Cl(k.floating):!1;if(t===i||o&&u)return e;let n={scrollLeft:0,scrollTop:0},r=li(1);const s=li(0),c=In(t);if((c||!c&&!u)&&((is(t)!=="body"||Ps(i))&&(n=zo(t)),In(t))){const a=Ri(t);r=ls(t),s.x=a.x+t.clientLeft,s.y=a.y+t.clientTop}return{width:e.width*r.x,height:e.height*r.y,x:e.x*r.x-n.scrollLeft*r.x+s.x,y:e.y*r.y-n.scrollTop*r.y+s.y}}function Fg(S){return Array.from(S.getClientRects())}function gf(S){return Ri(Hn(S)).left+zo(S).scrollLeft}function Bg(S){const k=Hn(S),e=zo(S),t=S.ownerDocument.body,f=Ii(k.scrollWidth,k.clientWidth,t.scrollWidth,t.clientWidth),u=Ii(k.scrollHeight,k.clientHeight,t.scrollHeight,t.clientHeight);let i=-e.scrollLeft+gf(S);const o=-e.scrollTop;return gn(t).direction==="rtl"&&(i+=Ii(k.clientWidth,t.clientWidth)-f),{width:f,height:u,x:i,y:o}}function zg(S,k){const e=Kr(S),t=Hn(S),f=e.visualViewport;let u=t.clientWidth,i=t.clientHeight,o=0,n=0;if(f){u=f.width,i=f.height;const r=vl();(!r||r&&k==="fixed")&&(o=f.offsetLeft,n=f.offsetTop)}return{width:u,height:i,x:o,y:n}}function Wg(S,k){const e=Ri(S,!0,k==="fixed"),t=e.top+S.clientTop,f=e.left+S.clientLeft,u=In(S)?ls(S):li(1),i=S.clientWidth*u.x,o=S.clientHeight*u.y,n=f*u.x,r=t*u.y;return{width:i,height:o,x:n,y:r}}function bf(S,k,e){let t;if(k==="viewport")t=zg(S,e);else if(k==="document")t=Bg(Hn(S));else if(zr(k))t=Wg(k,e);else{const f=mf(S);t={...k,x:k.x-f.x,y:k.y-f.y}}return Yo(t)}function yf(S,k){const e=ai(S);return e===k||!zr(e)||ss(e)?!1:gn(e).position==="fixed"||yf(e,k)}function $g(S,k){const e=k.get(S);if(e)return e;let t=js(S,[],!1).filter(o=>zr(o)&&is(o)!=="body"),f=null;const u=gn(S).position==="fixed";let i=u?ai(S):S;for(;zr(i)&&!ss(i);){const o=gn(i),n=yl(i);!n&&o.position==="fixed"&&(f=null),(u?!n&&!f:!n&&o.position==="static"&&!!f&&["absolute","fixed"].includes(f.position)||Ps(i)&&!n&&yf(S,i))?t=t.filter(s=>s!==i):f=o,i=ai(i)}return k.set(S,t),t}function Ug(S){let{element:k,boundary:e,rootBoundary:t,strategy:f}=S;const i=[...e==="clippingAncestors"?Cl(k)?[]:$g(k,this._c):[].concat(e),t],o=i[0],n=i.reduce((r,s)=>{const c=bf(k,s,f);return r.top=Ii(c.top,r.top),r.right=os(c.right,r.right),r.bottom=os(c.bottom,r.bottom),r.left=Ii(c.left,r.left),r},bf(k,o,f));return{width:n.right-n.left,height:n.bottom-n.top,x:n.left,y:n.top}}function Hg(S){const{width:k,height:e}=pf(S);return{width:k,height:e}}function Yg(S,k,e){const t=In(k),f=Hn(k),u=e==="fixed",i=Ri(S,!0,u,k);let o={scrollLeft:0,scrollTop:0};const n=li(0);if(t||!t&&!u)if((is(k)!=="body"||Ps(f))&&(o=zo(k)),t){const c=Ri(k,!0,u,k);n.x=c.x+k.clientLeft,n.y=c.y+k.clientTop}else f&&(n.x=gf(f));const r=i.left+o.scrollLeft-n.x,s=i.top+o.scrollTop-n.y;return{x:r,y:s,width:i.width,height:i.height}}function Ml(S){return gn(S).position==="static"}function vf(S,k){return!In(S)||gn(S).position==="fixed"?null:k?k(S):S.offsetParent}function wf(S,k){const e=Kr(S);if(Cl(S))return e;if(!In(S)){let f=ai(S);for(;f&&!ss(f);){if(zr(f)&&!Ml(f))return f;f=ai(f)}return e}let t=vf(S,k);for(;t&&bg(t)&&Ml(t);)t=vf(t,k);return t&&ss(t)&&Ml(t)&&!yl(t)?e:t||yg(S)||e}const Vg=async function(S){const k=this.getOffsetParent||wf,e=this.getDimensions,t=await e(S.floating);return{reference:Yg(S.reference,await k(S.floating),S.strategy),floating:{x:0,y:0,width:t.width,height:t.height}}};function qg(S){return gn(S).direction==="rtl"}const _f={convertOffsetParentRelativeRectToViewportRelativeRect:Lg,getDocumentElement:Hn,getClippingRect:Ug,getOffsetParent:wf,getElementRects:Vg,getClientRects:Fg,getDimensions:Hg,getScale:ls,isElement:zr,isRTL:qg};function Xg(S,k){let e=null,t;const f=Hn(S);function u(){var o;clearTimeout(t),(o=e)==null||o.disconnect(),e=null}function i(o,n){o===void 0&&(o=!1),n===void 0&&(n=1),u();const{left:r,top:s,width:c,height:a}=S.getBoundingClientRect();if(o||k(),!c||!a)return;const l=$o(s),p=$o(f.clientWidth-(r+c)),h=$o(f.clientHeight-(s+a)),d=$o(r),m={rootMargin:-l+"px "+-p+"px "+-h+"px "+-d+"px",threshold:Ii(0,os(1,n))||1};let _=!0;function T(O){const L=O[0].intersectionRatio;if(L!==n){if(!_)return i();L?i(!1,L):t=setTimeout(()=>{i(!1,1e-7)},1e3)}_=!1}try{e=new IntersectionObserver(T,{...m,root:f.ownerDocument})}catch{e=new IntersectionObserver(T,m)}e.observe(S)}return i(!0),u}function Kg(S,k,e,t){t===void 0&&(t={});const{ancestorScroll:f=!0,ancestorResize:u=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:n=!1}=t,r=kl(S),s=f||u?[...r?js(r):[],...js(k)]:[];s.forEach(b=>{f&&b.addEventListener("scroll",e,{passive:!0}),u&&b.addEventListener("resize",e)});const c=r&&o?Xg(r,e):null;let a=-1,l=null;i&&(l=new ResizeObserver(b=>{let[m]=b;m&&m.target===r&&l&&(l.unobserve(k),cancelAnimationFrame(a),a=requestAnimationFrame(()=>{var _;(_=l)==null||_.observe(k)})),e()}),r&&!n&&l.observe(r),l.observe(k));let p,h=n?Ri(S):null;n&&d();function d(){const b=Ri(S);h&&(b.x!==h.x||b.y!==h.y||b.width!==h.width||b.height!==h.height)&&e(),h=b,p=requestAnimationFrame(d)}return e(),()=>{var b;s.forEach(m=>{f&&m.removeEventListener("scroll",e),u&&m.removeEventListener("resize",e)}),c==null||c(),(b=l)==null||b.disconnect(),l=null,n&&cancelAnimationFrame(p)}}const Zg=Rg,Gg=Ag,xf=Og,Qg=(S,k,e)=>{const t=new Map,f={platform:_f,...e},u={...f.platform,_c:t};return Eg(S,k,{...f,platform:u})};var Vo=typeof document<"u"?ce.useLayoutEffect:ce.useEffect;function qo(S,k){if(S===k)return!0;if(typeof S!=typeof k)return!1;if(typeof S=="function"&&S.toString()===k.toString())return!0;let e,t,f;if(S&&k&&typeof S=="object"){if(Array.isArray(S)){if(e=S.length,e!==k.length)return!1;for(t=e;t--!==0;)if(!qo(S[t],k[t]))return!1;return!0}if(f=Object.keys(S),e=f.length,e!==Object.keys(k).length)return!1;for(t=e;t--!==0;)if(!{}.hasOwnProperty.call(k,f[t]))return!1;for(t=e;t--!==0;){const u=f[t];if(!(u==="_owner"&&S.$$typeof)&&!qo(S[u],k[u]))return!1}return!0}return S!==S&&k!==k}function Sf(S){return typeof window>"u"?1:(S.ownerDocument.defaultView||window).devicePixelRatio||1}function kf(S,k){const e=Sf(S);return Math.round(k*e)/e}function Cf(S){const k=xt.useRef(S);return Vo(()=>{k.current=S}),k}function Tl(S){S===void 0&&(S={});const{placement:k="bottom",strategy:e="absolute",middleware:t=[],platform:f,elements:{reference:u,floating:i}={},transform:o=!0,whileElementsMounted:n,open:r}=S,[s,c]=xt.useState({x:0,y:0,strategy:e,placement:k,middlewareData:{},isPositioned:!1}),[a,l]=xt.useState(t);qo(a,t)||l(t);const[p,h]=xt.useState(null),[d,b]=xt.useState(null),m=xt.useCallback(v=>{v!==L.current&&(L.current=v,h(v))},[]),_=xt.useCallback(v=>{v!==W.current&&(W.current=v,b(v))},[]),T=u||p,O=i||d,L=xt.useRef(null),W=xt.useRef(null),N=xt.useRef(s),z=n!=null,U=Cf(n),Y=Cf(f),$=xt.useCallback(()=>{if(!L.current||!W.current)return;const v={placement:k,strategy:e,middleware:a};Y.current&&(v.platform=Y.current),Qg(L.current,W.current,v).then(w=>{const x={...w,isPositioned:!0};E.current&&!qo(N.current,x)&&(N.current=x,yp.flushSync(()=>{c(x)}))})},[a,k,e,Y]);Vo(()=>{r===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,c(v=>({...v,isPositioned:!1})))},[r]);const E=xt.useRef(!1);Vo(()=>(E.current=!0,()=>{E.current=!1}),[]),Vo(()=>{if(T&&(L.current=T),O&&(W.current=O),T&&O){if(U.current)return U.current(T,O,$);$()}},[T,O,$,U,z]);const A=xt.useMemo(()=>({reference:L,floating:W,setReference:m,setFloating:_}),[m,_]),C=xt.useMemo(()=>({reference:T,floating:O}),[T,O]),y=xt.useMemo(()=>{const v={position:e,left:0,top:0};if(!C.floating)return v;const w=kf(C.floating,s.x),x=kf(C.floating,s.y);return o?{...v,transform:"translate("+w+"px, "+x+"px)",...Sf(C.floating)>=1.5&&{willChange:"transform"}}:{position:e,left:w,top:x}},[e,o,C.floating,s.x,s.y]);return xt.useMemo(()=>({...s,update:$,refs:A,elements:C,floatingStyles:y}),[s,$,A,C,y])}const Jg=S=>{function k(e){return{}.hasOwnProperty.call(e,"current")}return{name:"arrow",options:S,fn(e){const{element:t,padding:f}=typeof S=="function"?S(e):S;return t&&k(t)?t.current!=null?xf({element:t.current,padding:f}).fn(e):{}:t?xf({element:t,padding:f}).fn(e):{}}}},eb=(S,k)=>({...Zg(S),options:[S,k]}),El=(S,k)=>({...Gg(S),options:[S,k]}),tb=(S,k)=>({...Jg(S),options:[S,k]}),Mf={...xt},rb=Mf.useInsertionEffect||(S=>S());function nb(S){const k=xt.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return rb(()=>{k.current=S}),xt.useCallback(function(){for(var e=arguments.length,t=new Array(e),f=0;f<e;f++)t[f]=arguments[f];return k.current==null?void 0:k.current(...t)},[])}var Dl=typeof document<"u"?ce.useLayoutEffect:ce.useEffect;function Ol(){return Ol=Object.assign?Object.assign.bind():function(S){for(var k=1;k<arguments.length;k++){var e=arguments[k];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(S[t]=e[t])}return S},Ol.apply(this,arguments)}let Tf=!1,ib=0;const Ef=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ib++;function sb(){const[S,k]=xt.useState(()=>Tf?Ef():void 0);return Dl(()=>{S==null&&k(Ef())},[]),xt.useEffect(()=>{Tf=!0},[]),S}const Df=Mf.useId||sb;let Fs;process.env.NODE_ENV!=="production"&&(Fs=new Set);function ob(){for(var S,k=arguments.length,e=new Array(k),t=0;t<k;t++)e[t]=arguments[t];const f="Floating UI: "+e.join(" ");if(!((S=Fs)!=null&&S.has(f))){var u;(u=Fs)==null||u.add(f),console.warn(f)}}function ab(){for(var S,k=arguments.length,e=new Array(k),t=0;t<k;t++)e[t]=arguments[t];const f="Floating UI: "+e.join(" ");if(!((S=Fs)!=null&&S.has(f))){var u;(u=Fs)==null||u.add(f),console.error(f)}}const lb=xt.forwardRef(function(k,e){const{context:{placement:t,elements:{floating:f},middlewareData:{arrow:u}},width:i=14,height:o=7,tipRadius:n=0,strokeWidth:r=0,staticOffset:s,stroke:c,d:a,style:{transform:l,...p}={},...h}=k;process.env.NODE_ENV!=="production"&&(e||ob("The `ref` prop is required for `FloatingArrow`."));const d=Df();if(!f)return null;const b=r*2,m=b/2,_=i/2*(n/-8+1),T=o/2*n/4,[O,L]=t.split("-"),W=_f.isRTL(f),N=!!a,z=O==="top"||O==="bottom",U=s&&L==="end"?"bottom":"top";let Y=s&&L==="end"?"right":"left";s&&W&&(Y=L==="end"?"left":"right");const $=(u==null?void 0:u.x)!=null?s||u.x:"",E=(u==null?void 0:u.y)!=null?s||u.y:"",A=a||"M0,0"+(" H"+i)+(" L"+(i-_)+","+(o-T))+(" Q"+i/2+","+o+" "+_+","+(o-T))+" Z",C={top:N?"rotate(180deg)":"",left:N?"rotate(90deg)":"rotate(-90deg)",bottom:N?"":"rotate(180deg)",right:N?"rotate(-90deg)":"rotate(90deg)"}[O];return xt.createElement("svg",Ol({},h,{"aria-hidden":!0,ref:e,width:N?i:i+b,height:i,viewBox:"0 0 "+i+" "+(o>i?o:i),style:{position:"absolute",pointerEvents:"none",[Y]:$,[U]:E,[O]:z||N?"100%":"calc(100% - "+b/2+"px)",transform:""+C+(l??""),...p}}),b>0&&xt.createElement("path",{clipPath:"url(#"+d+")",fill:"none",stroke:c,strokeWidth:b+(a?0:1),d:A}),xt.createElement("path",{stroke:b&&!a?h.fill:"none",d:A}),xt.createElement("clipPath",{id:d},xt.createElement("rect",{x:-m,y:m*(N?-1:1),width:i+b,height:i})))});function ub(){const S=new Map;return{emit(k,e){var t;(t=S.get(k))==null||t.forEach(f=>f(e))},on(k,e){S.set(k,[...S.get(k)||[],e])},off(k,e){var t;S.set(k,((t=S.get(k))==null?void 0:t.filter(f=>f!==e))||[])}}}const cb=xt.createContext(null),fb=xt.createContext(null),db=()=>{var S;return((S=xt.useContext(cb))==null?void 0:S.id)||null},hb=()=>xt.useContext(fb);function pb(S){const{open:k=!1,onOpenChange:e,elements:t}=S,f=Df(),u=xt.useRef({}),[i]=xt.useState(()=>ub()),o=db()!=null;if(process.env.NODE_ENV!=="production"){const l=t.reference;l&&!zr(l)&&ab("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[n,r]=xt.useState(t.reference),s=nb((l,p,h)=>{u.current.openEvent=l?p:void 0,i.emit("openchange",{open:l,event:p,reason:h,nested:o}),e==null||e(l,p,h)}),c=xt.useMemo(()=>({setPositionReference:r}),[]),a=xt.useMemo(()=>({reference:n||t.reference||null,floating:t.floating||null,domReference:t.reference}),[n,t.reference,t.floating]);return xt.useMemo(()=>({dataRef:u,open:k,onOpenChange:s,elements:a,events:i,floatingId:f,refs:c}),[k,s,a,i,f,c])}function mb(S){S===void 0&&(S={});const{nodeId:k}=S,e=pb({...S,elements:{reference:null,floating:null,...S.elements}}),t=S.rootContext||e,f=t.elements,[u,i]=xt.useState(null),[o,n]=xt.useState(null),s=(f==null?void 0:f.reference)||u,c=xt.useRef(null),a=hb();Dl(()=>{s&&(c.current=s)},[s]);const l=Tl({...S,elements:{...f,...o&&{reference:o}}}),p=xt.useCallback(_=>{const T=zr(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),contextElement:_}:_;n(T),l.refs.setReference(T)},[l.refs]),h=xt.useCallback(_=>{(zr(_)||_===null)&&(c.current=_,i(_)),(zr(l.refs.reference.current)||l.refs.reference.current===null||_!==null&&!zr(_))&&l.refs.setReference(_)},[l.refs]),d=xt.useMemo(()=>({...l.refs,setReference:h,setPositionReference:p,domReference:c}),[l.refs,h,p]),b=xt.useMemo(()=>({...l.elements,domReference:s}),[l.elements,s]),m=xt.useMemo(()=>({...l,...t,refs:d,elements:b,nodeId:k}),[l,d,b,k,t]);return Dl(()=>{t.dataRef.current.floatingContext=m;const _=a==null?void 0:a.nodesRef.current.find(T=>T.id===k);_&&(_.context=m)}),xt.useMemo(()=>({...l,context:m,refs:d,elements:b}),[l,d,b,m])}/*!
57
57
  react-datepicker v6.9.0
58
58
  https://github.com/Hacker0x01/react-datepicker
59
59
  Released under the MIT License.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mig-schema-table",
3
- "version": "4.2.12",
3
+ "version": "4.2.13",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"