mig-schema-table 4.2.17 → 4.2.18
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-
|
|
1
|
+
import { c as $t, l as Ve } from "./index-NVZFGKQx.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
|
}
|
|
@@ -9150,7 +9150,7 @@ const ka = () => {
|
|
|
9150
9150
|
return;
|
|
9151
9151
|
const t = e.split("=");
|
|
9152
9152
|
t.length === 2 && (a[decodeURIComponent(t[0])] = Tp(
|
|
9153
|
-
|
|
9153
|
+
JSON.parse(decodeURIComponent(t[1]))
|
|
9154
9154
|
));
|
|
9155
9155
|
}), a;
|
|
9156
9156
|
}, Ep = (r) => r instanceof Object ? r instanceof Date ? {
|
|
@@ -15056,7 +15056,7 @@ const YS = ({
|
|
|
15056
15056
|
async (se) => {
|
|
15057
15057
|
if (se.preventDefault(), se.stopPropagation(), !tt)
|
|
15058
15058
|
return;
|
|
15059
|
-
const { renderDataToExcel: ye } = await import("./index-
|
|
15059
|
+
const { renderDataToExcel: ye } = await import("./index-B4jp_fI1.js");
|
|
15060
15060
|
ye(tt);
|
|
15061
15061
|
},
|
|
15062
15062
|
[tt]
|
|
@@ -53,7 +53,7 @@ __p += '`),Vt&&(Be+=`' +
|
|
|
53
53
|
function print() { __p += __j.call(arguments, '') }
|
|
54
54
|
`:`;
|
|
55
55
|
`)+Be+`return __p
|
|
56
|
-
}`;var jt=mp(function(){return er(se,ft+"return "+Be).apply(e,fe)});if(jt.source=Be,ju(jt))throw jt;return jt}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),fe=Md(X,G)+1;return Ci(X,se,fe).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?Pt(M.length):j,X="omission"in M?Jr(M.omission):X}g=tr(g);var se=g.length;if(gs(g)){var fe=vn(g);se=fe.length}if(j>=se)return g;var ge=j-bs(X);if(ge<1)return X;var xe=fe?Ci(fe,0,ge).join(""):g.slice(0,ge);if(G===e)return xe+X;if(fe&&(ge+=xe.length-ge),Lu(G)){if(g.slice(ge).search(G)){var Pe,je=xe;for(G.global||(G=Jl(G.source,tr(Ne.exec(G))+"g")),G.lastIndex=0;Pe=G.exec(je);)var Be=Pe.index;xe=xe.slice(0,Be===e?ge:Be)}}else if(g.indexOf(Jr(G),ge)!=ge){var et=xe.lastIndexOf(G);et>-1&&(xe=xe.slice(0,et))}return xe+X}function Y4(g){return g=tr(g),g&&dt.test(g)?g.replace(wt,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=bt();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=ka(M,X);j==null&&!(hr(M)&&(G.length||!X.length))&&(j=M,M=g,g=this,G=ka(M,Er(M)));var se=!(hr(j)&&"chain"in j)||!!j.chain,fe=ti(g);return an(G,function(ge){var xe=M[ge];g[ge]=xe,fe&&(g.prototype[ge]=function(){var Pe=this.__chain__;if(se||Pe){var je=g(this.__wrapped__),Be=je.__actions__=Yr(this.__actions__);return Be.push({func:xe,args:arguments,thisArg:g}),je.__chain__=Pe,je}return xe.apply(g,vi([this.value()],arguments))})}),g}function n6(){return Ir._===this&&(Ir._=Dv),this}function Hu(){}function i6(g){return g=Pt(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=Pt(g),g<1||g>w)return[];var j=P,X=Pr(g,P);M=bt(M),g-=P;for(var G=Zl(X,M);++j<g;)M(j);return G}function m6(g){return At(g)?fr(g,Fn):en(g)?[g]:Yr(jh(tr(g)))}function g6(g){var M=++Tv;return tr(g)+M}var b6=Oa(function(g,M){return g+M},0),y6=xu("ceil"),v6=Oa(function(g,M){return g/M},1),w6=xu("floor");function _6(g){return g&&g.length?Sa(g,Xr,au):e}function x6(g,M){return g&&g.length?Sa(g,bt(M,2),au):e}function S6(g){return xd(g,Xr)}function k6(g,M){return xd(g,bt(M,2))}function C6(g){return g&&g.length?Sa(g,Xr,fu):e}function M6(g,M){return g&&g.length?Sa(g,bt(M,2),fu):e}var T6=Oa(function(g,M){return g*M},1),E6=xu("round"),D6=Oa(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,bt(M,2)):0}return re.after=J3,re.ary=qh,re.assign=z_,re.assignIn=ap,re.assignInWith=Ua,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=La,re.mapKeys=i4,re.mapValues=s4,re.matches=J4,re.matchesProperty=e6,re.memoize=Ba,re.merge=o4,re.mergeWith=lp,re.method=t6,re.methodOf=r6,re.mixin=Uu,re.negate=za,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=ja,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=Ua,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=At,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=Wa,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=$a,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=Fa,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=ve,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=Pt,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(Pt(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:bt(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(za(bt(g)))},Yt.prototype.slice=function(g,M){g=Pt(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=Pt(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 fe=this.__wrapped__,ge=X?[1]:arguments,xe=fe instanceof Yt,Pe=ge[0],je=xe||At(fe),Be=function(Ut){var Vt=G.apply(re,vi([Ut],ge));return X&&et?Vt[0]:Vt};je&&j&&typeof Pe=="function"&&Pe.length!=1&&(xe=je=!1);var et=this.__chain__,ft=!!this.__actions__.length,yt=se&&!et,jt=xe&&!ft;if(!se&&je){fe=jt?fe:new Yt(this);var vt=g.apply(fe,ge);return vt.__actions__.push({func:ja,args:[Be],thisArg:e}),new un(vt,et)}return yt&&jt?g.apply(this,ge):(vt=this.thru(Be),yt?X?vt.value()[0]:vt.value():vt)})}),an(["pop","push","shift","sort","splice","unshift"],function(g){var M=la[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(At(se)?se:[],G)}return this[j](function(fe){return M.apply(At(fe)?fe:[],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[Da(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(kt)}(Po,Po.exports);var jo=Po.exports;function Xc(x){return!!x.match(/[A-Z]/)}function rg(x){return jo.upperFirst(x.replaceAll(/[A-Z]/g,(k,e)=>{const t=x[e-1],f=t?Xc(t):!1,u=x[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(x,...k){let e=ng[x]||rg(x);return k.forEach((t,f)=>{e=e.replace(`{${f}}`,`${t}`)}),e}const mn="SELECT_ALL_COLUMN_NAME",Zc=40,hl="dd MMM yyyy",Lo="dd MMM yyyy HH:mm",pl=25,Gc=3;var Un=(x=>(x.GT="GT",x.LT="LT",x.EQ="EQ",x))(Un||{}),rs=(x=>(x.UNAVAILABLE="UNAVAILABLE",x.AVAILABLE="AVAILABLE",x.ACTIVE="ACTIVE",x))(rs||{});const ns=()=>{throw Error("SchemaTableContext not constructed")},Ns=xt.createContext({columnFilterMap:{},columnNames:[],columnWidths:[],dropTargetIndex:-1,properties:{},required:[],isItemLoaded:()=>!1,setCustomColumnNames:ns,setCustomColumnWidths:ns,setMenuConfig:ns,setDropTargetIndex:ns,setFilterSortColumn:ns,checkedIndexes:[],config:{},disabledCheckedIndexes:[],isColumnFilterable:!1,isSortable:!1,translate:ns}),ig=({columnIndex:x,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}=ue.useContext(Ns),b=f[x],m=b===mn?{type:"boolean"}:i[b],_=r?r[b]:void 0,T=ue.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=ue.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=ue.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=ue.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":x,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,x,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=ue.memo(ig),Jc=x=>x instanceof Object?x.$Date?new Date(x.$Date):Object.entries(x).reduce((k,[e,t])=>(k[e]=Jc(t),k),{}):x,ef=x=>{if(!x.length)return null;const k={};return x.substring(1).split("&").forEach(e=>{if(!e)return;const t=e.split("=");t.length===2&&(k[decodeURIComponent(t[0])]=Jc(typeof t[1]=="string"?decodeURIComponent(t[1]):JSON.parse(decodeURIComponent(t[1]))))}),k},tf=x=>x instanceof Object?x instanceof Date?{$Date:x.toISOString()}:Object.entries(x).reduce((k,[e,t])=>(k[e]=tf(t),k),{}):x,Fo=x=>`${Object.entries(x).map(([k,e])=>`${encodeURIComponent(k)}=${encodeURIComponent(typeof e=="string"?e:JSON.stringify(tf(e)))}`).join("&")}`;function sg(){const{checkedIndexes:x,disabledCheckedIndexes:k,sortedRenderData:e}=ue.useContext(Ns);return ue.useMemo(()=>{const t=[...e||[]].filter(f=>(x?x.includes(f._index):!0)||(k?!k.includes(f._index):!0));return(x==null?void 0:x.length)!==0&&t.length===(x==null?void 0:x.length)},[x,k,e])}function rf(x,k,e){return!!(x&&(e==null?void 0:e.isSortable)!==!1&&(k||e!=null&&e.renderData||e!=null&&e.sort))}function nf(){const{setCustomColumnWidths:x,settingsStorageKey:k}=ue.useContext(Ns);return ue.useCallback(e=>{k&&localStorage.setItem(`${k}.columnWidths`,JSON.stringify(e)),x(e)},[x,k])}const og=({index:x,style:k})=>{const{checkedIndexes:e,columnFilterMap:t,columnNames:f,columnWidths:u,config:i,disabledCheckedIndexes:o,dropTargetIndex:n,isColumnFilterable:r,isSortable:s,onCheckedIndexesChange:c,properties:a,required:l,setCustomColumnNames:p,setDropTargetIndex:h,setFilterSortColumn:d,setMenuConfig:b,settingsStorageKey:m,sortAsc:_,sortColumn:T,sortedRenderData:O,translate:L}=ue.useContext(Ns),[W,N]=ue.useState(!1),z=x===n,U=nf(),Y=f[x],$=Y===mn?{type:"boolean"}:a[Y],E=T===Y?_:void 0,A=i?i[Y]:void 0;let C=r&&($||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(s,$,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"),W&&v.push("mig-schema-table__th--dragging"),z&&v.push("mig-schema-table__th--drop-target");const{format:w}=$||{},{align:S,defaultSortDesc:D,showTimezones:P,title:F}=A||{},V=ue.useCallback(()=>{if(y){if(E===void 0){d(Y,!D);return}d(Y,!E)}},[y,D,Y,d,E]),q=l.includes(Y),ee=ue.useCallback(ne=>{const de=ne.currentTarget;b(he=>{if((he==null?void 0:he.propName)!==Y)return{propConfig:A,propIsRequired:q,propName:Y,referenceElement:de}})},[A,q,Y,b]),B=ue.useMemo(()=>F!==void 0?F:w==="date-time"&&P!==!1?`${L(Y)} (${L(qc)})`:L(Y),[F,w,P,L,Y]),K=ue.useCallback((ne,de)=>{if(!f||!u)return;const he=f.indexOf(ne),J=[...f];J.splice(he,1);const ce=J.indexOf(de);J.splice(ce+1,0,ne),p(J);const le=[...u],ye=le[he];le.splice(he,1),le.splice(ce+1,0,ye),U(le),m&&localStorage.setItem(`${m}.columnNames`,JSON.stringify(J))},[f,u,U,m,p]),R=ue.useCallback(ne=>{K&&(N(!0),ne.dataTransfer.effectAllowed="move",ne.dataTransfer.dropEffect="move",ne.dataTransfer.setData("text/plain",Y))},[K,Y]),I=ue.useCallback(()=>{K&&(N(!1),h(-1))},[K,h]),H=ue.useCallback(ne=>{K&&(ne.preventDefault(),h(x))},[x,K,h]),Z=ue.useCallback(ne=>{if(h(-1),!K||!Y)return;const de=ne.dataTransfer.getData("text/plain");!de||de===Y||K(de,Y)},[K,Y,h]),ie=sg(),Q=ue.useCallback(()=>{!c||!O||c(ie?[]:O.map(ne=>ne._index).filter(ne=>!(o!=null&&o.includes(ne))))},[c,O,ie,o]);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:ie,onChange:Q})})});switch($==null?void 0:$.type){case"boolean":v.push(`text-${S||"center"}`,`justify-content-${S||"center"}`);break;case"integer":case"number":v.push(`text-${S||"end"}`,`justify-content-${S||"end"}`);break;default:S&&v.push(`text-${S}`)}return qe.jsxs("div",{className:v.join(" "),style:k,title:typeof B=="string"?B:void 0,draggable:!0,onDragStart:R,onDragEnd:I,onDragOver:H,onDrop:Z,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=ue.memo(og);function of(x){var k,e,t="";if(typeof x=="string"||typeof x=="number")t+=x;else if(typeof x=="object")if(Array.isArray(x)){var f=x.length;for(k=0;k<f;k++)x[k]&&(e=of(x[k]))&&(t&&(t+=" "),t+=e)}else for(e in x)x[e]&&(t&&(t+=" "),t+=e);return t}function Dr(){for(var x,k,e=0,t="",f=arguments.length;e<f;e++)(x=arguments[e])&&(k=of(x))&&(t&&(t+=" "),t+=k);return t}function ag(x,k){x.prototype=Object.create(k.prototype),x.prototype.constructor=x,ml(x,k)}function ml(x,k){return ml=Object.setPrototypeOf||function(t,f){return t.__proto__=f,t},ml(x,k)}function lg(x,k){if(x==null)return{};var e={},t=Object.keys(x),f,u;for(u=0;u<t.length;u++)f=t[u],!(k.indexOf(f)>=0)&&(e[f]=x[f]);return e}function af(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function ug(x,k,e){return x===k?!0:x.correspondingElement?x.correspondingElement.classList.contains(e):x.classList.contains(e)}function cg(x,k,e){if(x===k)return!0;for(;x.parentNode||x.host;){if(x.parentNode&&ug(x,k,e))return!0;x=x.parentNode||x.host}return x}function fg(x){return document.documentElement.clientWidth<=x.clientX||document.documentElement.clientHeight<=x.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(x){return x===void 0&&(x=0),function(){return++x}}var pg=hg(),gl,Bo={},bl={},mg=["touchstart","touchmove"],gg="ignore-react-onclickoutside";function lf(x,k){var e={},t=mg.indexOf(k)!==-1;return t&&gl&&(e.passive=!x.props.preventDefault),e}function zo(x,k){var e,t,f=x.displayName||x.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]),Bo[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,Bo[r._uid],lf(af(r),c))})}},r.disableOnClickOutside=function(){delete bl[r._uid];var s=Bo[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 Bo[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(x.prototype&&!x.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 x.prototype&&x.prototype.isReactComponent?s.ref=this.getRef:s.wrappedRef=this.getRef,s.disableOnClickOutside=this.disableOnClickOutside,s.enableOnClickOutside=this.enableOnClickOutside,ue.createElement(x,s)},i}(ue.Component),e.displayName="OnClickOutside("+f+")",e.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:gg,preventDefault:!1,stopPropagation:!1},e.getClass=function(){return x.getClass?x.getClass():x},t}function is(x){return uf(x)?(x.nodeName||"").toLowerCase():"#document"}function Kr(x){var k;return(x==null||(k=x.ownerDocument)==null?void 0:k.defaultView)||window}function Hn(x){var k;return(k=(uf(x)?x.ownerDocument:x.document)||window.document)==null?void 0:k.documentElement}function uf(x){return x instanceof Node||x instanceof Kr(x).Node}function zr(x){return x instanceof Element||x instanceof Kr(x).Element}function In(x){return x instanceof HTMLElement||x instanceof Kr(x).HTMLElement}function cf(x){return typeof ShadowRoot>"u"?!1:x instanceof ShadowRoot||x instanceof Kr(x).ShadowRoot}function Ps(x){const{overflow:k,overflowX:e,overflowY:t,display:f}=gn(x);return/auto|scroll|overlay|hidden|clip/.test(k+t+e)&&!["inline","contents"].includes(f)}function bg(x){return["table","td","th"].includes(is(x))}function yl(x){const k=vl(),e=gn(x);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(x){let k=ai(x);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(x){return["html","body","#document"].includes(is(x))}function gn(x){return Kr(x).getComputedStyle(x)}function Wo(x){return zr(x)?{scrollLeft:x.scrollLeft,scrollTop:x.scrollTop}:{scrollLeft:x.pageXOffset,scrollTop:x.pageYOffset}}function ai(x){if(is(x)==="html")return x;const k=x.assignedSlot||x.parentNode||cf(x)&&x.host||Hn(x);return cf(k)?k.host:k}function ff(x){const k=ai(x);return ss(k)?x.ownerDocument?x.ownerDocument.body:x.body:In(k)&&Ps(k)?k:ff(k)}function js(x,k,e){var t;k===void 0&&(k=[]),e===void 0&&(e=!0);const f=ff(x),u=f===((t=x.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,$o=Math.round,Uo=Math.floor,li=x=>({x,y:x}),vg={left:"right",right:"left",bottom:"top",top:"bottom"},wg={start:"end",end:"start"};function _g(x,k,e){return Ii(x,os(k,e))}function Ho(x,k){return typeof x=="function"?x(k):x}function as(x){return x.split("-")[0]}function Ls(x){return x.split("-")[1]}function xg(x){return x==="x"?"y":"x"}function wl(x){return x==="y"?"height":"width"}function _l(x){return["top","bottom"].includes(as(x))?"y":"x"}function xl(x){return xg(_l(x))}function Sg(x,k,e){e===void 0&&(e=!1);const t=Ls(x),f=xl(x),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=Yo(i)),[i,Yo(i)]}function kg(x){const k=Yo(x);return[Sl(x),k,Sl(k)]}function Sl(x){return x.replace(/start|end/g,k=>wg[k])}function Cg(x,k,e){const t=["left","right"],f=["right","left"],u=["top","bottom"],i=["bottom","top"];switch(x){case"top":case"bottom":return e?k?f:t:k?t:f;case"left":case"right":return k?u:i;default:return[]}}function Mg(x,k,e,t){const f=Ls(x);let u=Cg(as(x),e==="start",t);return f&&(u=u.map(i=>i+"-"+f),k&&(u=u.concat(u.map(Sl)))),u}function Yo(x){return x.replace(/left|right|bottom|top/g,k=>vg[k])}function Tg(x){return{top:0,right:0,bottom:0,left:0,...x}}function df(x){return typeof x!="number"?Tg(x):{top:x,right:x,bottom:x,left:x}}function Vo(x){const{x:k,y:e,width:t,height:f}=x;return{width:t,height:f,top:e,left:k,right:k+t,bottom:e+f,x:k,y:e}}function hf(x,k,e){let{reference:t,floating:f}=x;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(x,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:x,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:x,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:x,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(x,k){var e;k===void 0&&(k={});const{x:t,y:f,platform:u,rects:i,elements:o,strategy:n}=x,{boundary:r="clippingAncestors",rootBoundary:s="viewport",elementContext:c="floating",altBoundary:a=!1,padding:l=0}=Ho(k,x),p=df(l),d=o[a?c==="floating"?"reference":"floating":c],b=Vo(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=Vo(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=x=>({name:"arrow",options:x,async fn(k){const{x:e,y:t,placement:f,rects:u,platform:i,elements:o,middlewareData:n}=k,{element:r,padding:s=0}=Ho(x,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(x){return x===void 0&&(x={}),{name:"flip",options:x,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}=Ho(x,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?[Yo(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(x,k){const{placement:e,platform:t,elements:f}=x,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=Ho(k,x);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(x){return x===void 0&&(x=0),{name:"offset",options:x,async fn(k){var e,t;const{x:f,y:u,placement:i,middlewareData:o}=k,n=await Ig(k,x);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(x){const k=gn(x);let e=parseFloat(k.width)||0,t=parseFloat(k.height)||0;const f=In(x),u=f?x.offsetWidth:e,i=f?x.offsetHeight:t,o=$o(e)!==u||$o(t)!==i;return o&&(e=u,t=i),{width:e,height:t,$:o}}function kl(x){return zr(x)?x:x.contextElement}function ls(x){const k=kl(x);if(!In(k))return li(1);const e=k.getBoundingClientRect(),{width:t,height:f,$:u}=pf(k);let i=(u?$o(e.width):e.width)/t,o=(u?$o(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(x){const k=Kr(x);return!vl()||!k.visualViewport?Ng:{x:k.visualViewport.offsetLeft,y:k.visualViewport.offsetTop}}function Pg(x,k,e){return k===void 0&&(k=!1),!e||k&&e!==Kr(x)?!1:k}function Ri(x,k,e,t){k===void 0&&(k=!1),e===void 0&&(e=!1);const f=x.getBoundingClientRect(),u=kl(x);let i=li(1);k&&(t?zr(t)&&(i=ls(t)):i=ls(x));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 Vo({width:s,height:c,x:n,y:r})}const jg=[":popover-open",":modal"];function Cl(x){return jg.some(k=>{try{return x.matches(k)}catch{return!1}})}function Lg(x){let{elements:k,rect:e,offsetParent:t,strategy:f}=x;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=Wo(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(x){return Array.from(x.getClientRects())}function gf(x){return Ri(Hn(x)).left+Wo(x).scrollLeft}function Bg(x){const k=Hn(x),e=Wo(x),t=x.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(x);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(x,k){const e=Kr(x),t=Hn(x),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(x,k){const e=Ri(x,!0,k==="fixed"),t=e.top+x.clientTop,f=e.left+x.clientLeft,u=In(x)?ls(x):li(1),i=x.clientWidth*u.x,o=x.clientHeight*u.y,n=f*u.x,r=t*u.y;return{width:i,height:o,x:n,y:r}}function bf(x,k,e){let t;if(k==="viewport")t=zg(x,e);else if(k==="document")t=Bg(Hn(x));else if(zr(k))t=Wg(k,e);else{const f=mf(x);t={...k,x:k.x-f.x,y:k.y-f.y}}return Vo(t)}function yf(x,k){const e=ai(x);return e===k||!zr(e)||ss(e)?!1:gn(e).position==="fixed"||yf(e,k)}function $g(x,k){const e=k.get(x);if(e)return e;let t=js(x,[],!1).filter(o=>zr(o)&&is(o)!=="body"),f=null;const u=gn(x).position==="fixed";let i=u?ai(x):x;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(x,i))?t=t.filter(s=>s!==i):f=o,i=ai(i)}return k.set(x,t),t}function Ug(x){let{element:k,boundary:e,rootBoundary:t,strategy:f}=x;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(x){const{width:k,height:e}=pf(x);return{width:k,height:e}}function Yg(x,k,e){const t=In(k),f=Hn(k),u=e==="fixed",i=Ri(x,!0,u,k);let o={scrollLeft:0,scrollTop:0};const n=li(0);if(t||!t&&!u)if((is(k)!=="body"||Ps(f))&&(o=Wo(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(x){return gn(x).position==="static"}function vf(x,k){return!In(x)||gn(x).position==="fixed"?null:k?k(x):x.offsetParent}function wf(x,k){const e=Kr(x);if(Cl(x))return e;if(!In(x)){let f=ai(x);for(;f&&!ss(f);){if(zr(f)&&!Ml(f))return f;f=ai(f)}return e}let t=vf(x,k);for(;t&&bg(t)&&Ml(t);)t=vf(t,k);return t&&ss(t)&&Ml(t)&&!yl(t)?e:t||yg(x)||e}const Vg=async function(x){const k=this.getOffsetParent||wf,e=this.getDimensions,t=await e(x.floating);return{reference:Yg(x.reference,await k(x.floating),x.strategy),floating:{x:0,y:0,width:t.width,height:t.height}}};function qg(x){return gn(x).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(x,k){let e=null,t;const f=Hn(x);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}=x.getBoundingClientRect();if(o||k(),!c||!a)return;const l=Uo(s),p=Uo(f.clientWidth-(r+c)),h=Uo(f.clientHeight-(s+a)),d=Uo(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(x)}return i(!0),u}function Kg(x,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(x),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(x):null;n&&d();function d(){const b=Ri(x);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=(x,k,e)=>{const t=new Map,f={platform:_f,...e},u={...f.platform,_c:t};return Eg(x,k,{...f,platform:u})};var qo=typeof document<"u"?ue.useLayoutEffect:ue.useEffect;function Xo(x,k){if(x===k)return!0;if(typeof x!=typeof k)return!1;if(typeof x=="function"&&x.toString()===k.toString())return!0;let e,t,f;if(x&&k&&typeof x=="object"){if(Array.isArray(x)){if(e=x.length,e!==k.length)return!1;for(t=e;t--!==0;)if(!Xo(x[t],k[t]))return!1;return!0}if(f=Object.keys(x),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"&&x.$$typeof)&&!Xo(x[u],k[u]))return!1}return!0}return x!==x&&k!==k}function Sf(x){return typeof window>"u"?1:(x.ownerDocument.defaultView||window).devicePixelRatio||1}function kf(x,k){const e=Sf(x);return Math.round(k*e)/e}function Cf(x){const k=xt.useRef(x);return qo(()=>{k.current=x}),k}function Tl(x){x===void 0&&(x={});const{placement:k="bottom",strategy:e="absolute",middleware:t=[],platform:f,elements:{reference:u,floating:i}={},transform:o=!0,whileElementsMounted:n,open:r}=x,[s,c]=xt.useState({x:0,y:0,strategy:e,placement:k,middlewareData:{},isPositioned:!1}),[a,l]=xt.useState(t);Xo(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 S={...w,isPositioned:!0};E.current&&!Xo(N.current,S)&&(N.current=S,yp.flushSync(()=>{c(S)}))})},[a,k,e,Y]);qo(()=>{r===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,c(v=>({...v,isPositioned:!1})))},[r]);const E=xt.useRef(!1);qo(()=>(E.current=!0,()=>{E.current=!1}),[]),qo(()=>{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),S=kf(C.floating,s.y);return o?{...v,transform:"translate("+w+"px, "+S+"px)",...Sf(C.floating)>=1.5&&{willChange:"transform"}}:{position:e,left:w,top:S}},[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=x=>{function k(e){return{}.hasOwnProperty.call(e,"current")}return{name:"arrow",options:x,fn(e){const{element:t,padding:f}=typeof x=="function"?x(e):x;return t&&k(t)?t.current!=null?xf({element:t.current,padding:f}).fn(e):{}:t?xf({element:t,padding:f}).fn(e):{}}}},eb=(x,k)=>({...Zg(x),options:[x,k]}),El=(x,k)=>({...Gg(x),options:[x,k]}),tb=(x,k)=>({...Jg(x),options:[x,k]}),Mf={...xt},rb=Mf.useInsertionEffect||(x=>x());function nb(x){const k=xt.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return rb(()=>{k.current=x}),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"?ue.useLayoutEffect:ue.useEffect;function Ol(){return Ol=Object.assign?Object.assign.bind():function(x){for(var k=1;k<arguments.length;k++){var e=arguments[k];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(x[t]=e[t])}return x},Ol.apply(this,arguments)}let Tf=!1,ib=0;const Ef=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ib++;function sb(){const[x,k]=xt.useState(()=>Tf?Ef():void 0);return Dl(()=>{x==null&&k(Ef())},[]),xt.useEffect(()=>{Tf=!0},[]),x}const Df=Mf.useId||sb;let Fs;process.env.NODE_ENV!=="production"&&(Fs=new Set);function ob(){for(var x,k=arguments.length,e=new Array(k),t=0;t<k;t++)e[t]=arguments[t];const f="Floating UI: "+e.join(" ");if(!((x=Fs)!=null&&x.has(f))){var u;(u=Fs)==null||u.add(f),console.warn(f)}}function ab(){for(var x,k=arguments.length,e=new Array(k),t=0;t<k;t++)e[t]=arguments[t];const f="Floating UI: "+e.join(" ");if(!((x=Fs)!=null&&x.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 x=new Map;return{emit(k,e){var t;(t=x.get(k))==null||t.forEach(f=>f(e))},on(k,e){x.set(k,[...x.get(k)||[],e])},off(k,e){var t;x.set(k,((t=x.get(k))==null?void 0:t.filter(f=>f!==e))||[])}}}const cb=xt.createContext(null),fb=xt.createContext(null),db=()=>{var x;return((x=xt.useContext(cb))==null?void 0:x.id)||null},hb=()=>xt.useContext(fb);function pb(x){const{open:k=!1,onOpenChange:e,elements:t}=x,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(x){x===void 0&&(x={});const{nodeId:k}=x,e=pb({...x,elements:{reference:null,floating:null,...x.elements}}),t=x.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({...x,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 jt=mp(function(){return er(se,ft+"return "+Be).apply(e,fe)});if(jt.source=Be,ju(jt))throw jt;return jt}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),fe=Md(X,G)+1;return Ci(X,se,fe).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?Pt(M.length):j,X="omission"in M?Jr(M.omission):X}g=tr(g);var se=g.length;if(gs(g)){var fe=vn(g);se=fe.length}if(j>=se)return g;var ge=j-bs(X);if(ge<1)return X;var xe=fe?Ci(fe,0,ge).join(""):g.slice(0,ge);if(G===e)return xe+X;if(fe&&(ge+=xe.length-ge),Lu(G)){if(g.slice(ge).search(G)){var Pe,je=xe;for(G.global||(G=Jl(G.source,tr(Ne.exec(G))+"g")),G.lastIndex=0;Pe=G.exec(je);)var Be=Pe.index;xe=xe.slice(0,Be===e?ge:Be)}}else if(g.indexOf(Jr(G),ge)!=ge){var et=xe.lastIndexOf(G);et>-1&&(xe=xe.slice(0,et))}return xe+X}function Y4(g){return g=tr(g),g&&dt.test(g)?g.replace(wt,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=bt();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=ka(M,X);j==null&&!(hr(M)&&(G.length||!X.length))&&(j=M,M=g,g=this,G=ka(M,Er(M)));var se=!(hr(j)&&"chain"in j)||!!j.chain,fe=ti(g);return an(G,function(ge){var xe=M[ge];g[ge]=xe,fe&&(g.prototype[ge]=function(){var Pe=this.__chain__;if(se||Pe){var je=g(this.__wrapped__),Be=je.__actions__=Yr(this.__actions__);return Be.push({func:xe,args:arguments,thisArg:g}),je.__chain__=Pe,je}return xe.apply(g,vi([this.value()],arguments))})}),g}function n6(){return Ir._===this&&(Ir._=Dv),this}function Hu(){}function i6(g){return g=Pt(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=Pt(g),g<1||g>w)return[];var j=P,X=Pr(g,P);M=bt(M),g-=P;for(var G=Zl(X,M);++j<g;)M(j);return G}function m6(g){return At(g)?fr(g,Fn):en(g)?[g]:Yr(jh(tr(g)))}function g6(g){var M=++Tv;return tr(g)+M}var b6=Oa(function(g,M){return g+M},0),y6=xu("ceil"),v6=Oa(function(g,M){return g/M},1),w6=xu("floor");function _6(g){return g&&g.length?Sa(g,Xr,au):e}function x6(g,M){return g&&g.length?Sa(g,bt(M,2),au):e}function S6(g){return xd(g,Xr)}function k6(g,M){return xd(g,bt(M,2))}function C6(g){return g&&g.length?Sa(g,Xr,fu):e}function M6(g,M){return g&&g.length?Sa(g,bt(M,2),fu):e}var T6=Oa(function(g,M){return g*M},1),E6=xu("round"),D6=Oa(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,bt(M,2)):0}return re.after=J3,re.ary=qh,re.assign=z_,re.assignIn=ap,re.assignInWith=Ua,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=La,re.mapKeys=i4,re.mapValues=s4,re.matches=J4,re.matchesProperty=e6,re.memoize=Ba,re.merge=o4,re.mergeWith=lp,re.method=t6,re.methodOf=r6,re.mixin=Uu,re.negate=za,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=ja,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=Ua,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=At,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=Wa,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=$a,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=Fa,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=ve,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=Pt,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(Pt(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:bt(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(za(bt(g)))},Yt.prototype.slice=function(g,M){g=Pt(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=Pt(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 fe=this.__wrapped__,ge=X?[1]:arguments,xe=fe instanceof Yt,Pe=ge[0],je=xe||At(fe),Be=function(Ut){var Vt=G.apply(re,vi([Ut],ge));return X&&et?Vt[0]:Vt};je&&j&&typeof Pe=="function"&&Pe.length!=1&&(xe=je=!1);var et=this.__chain__,ft=!!this.__actions__.length,yt=se&&!et,jt=xe&&!ft;if(!se&&je){fe=jt?fe:new Yt(this);var vt=g.apply(fe,ge);return vt.__actions__.push({func:ja,args:[Be],thisArg:e}),new un(vt,et)}return yt&&jt?g.apply(this,ge):(vt=this.thru(Be),yt?X?vt.value()[0]:vt.value():vt)})}),an(["pop","push","shift","sort","splice","unshift"],function(g){var M=la[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(At(se)?se:[],G)}return this[j](function(fe){return M.apply(At(fe)?fe:[],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[Da(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(kt)}(Po,Po.exports);var jo=Po.exports;function Xc(x){return!!x.match(/[A-Z]/)}function rg(x){return jo.upperFirst(x.replaceAll(/[A-Z]/g,(k,e)=>{const t=x[e-1],f=t?Xc(t):!1,u=x[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(x,...k){let e=ng[x]||rg(x);return k.forEach((t,f)=>{e=e.replace(`{${f}}`,`${t}`)}),e}const mn="SELECT_ALL_COLUMN_NAME",Zc=40,hl="dd MMM yyyy",Lo="dd MMM yyyy HH:mm",pl=25,Gc=3;var Un=(x=>(x.GT="GT",x.LT="LT",x.EQ="EQ",x))(Un||{}),rs=(x=>(x.UNAVAILABLE="UNAVAILABLE",x.AVAILABLE="AVAILABLE",x.ACTIVE="ACTIVE",x))(rs||{});const ns=()=>{throw Error("SchemaTableContext not constructed")},Ns=xt.createContext({columnFilterMap:{},columnNames:[],columnWidths:[],dropTargetIndex:-1,properties:{},required:[],isItemLoaded:()=>!1,setCustomColumnNames:ns,setCustomColumnWidths:ns,setMenuConfig:ns,setDropTargetIndex:ns,setFilterSortColumn:ns,checkedIndexes:[],config:{},disabledCheckedIndexes:[],isColumnFilterable:!1,isSortable:!1,translate:ns}),ig=({columnIndex:x,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}=ue.useContext(Ns),b=f[x],m=b===mn?{type:"boolean"}:i[b],_=r?r[b]:void 0,T=ue.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=ue.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=ue.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=ue.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":x,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,x,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=ue.memo(ig),Jc=x=>x instanceof Object?x.$Date?new Date(x.$Date):Object.entries(x).reduce((k,[e,t])=>(k[e]=Jc(t),k),{}):x,ef=x=>{if(!x.length)return null;const k={};return x.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=x=>x instanceof Object?x instanceof Date?{$Date:x.toISOString()}:Object.entries(x).reduce((k,[e,t])=>(k[e]=tf(t),k),{}):x,Fo=x=>`${Object.entries(x).map(([k,e])=>`${encodeURIComponent(k)}=${encodeURIComponent(typeof e=="string"?e:JSON.stringify(tf(e)))}`).join("&")}`;function sg(){const{checkedIndexes:x,disabledCheckedIndexes:k,sortedRenderData:e}=ue.useContext(Ns);return ue.useMemo(()=>{const t=[...e||[]].filter(f=>(x?x.includes(f._index):!0)||(k?!k.includes(f._index):!0));return(x==null?void 0:x.length)!==0&&t.length===(x==null?void 0:x.length)},[x,k,e])}function rf(x,k,e){return!!(x&&(e==null?void 0:e.isSortable)!==!1&&(k||e!=null&&e.renderData||e!=null&&e.sort))}function nf(){const{setCustomColumnWidths:x,settingsStorageKey:k}=ue.useContext(Ns);return ue.useCallback(e=>{k&&localStorage.setItem(`${k}.columnWidths`,JSON.stringify(e)),x(e)},[x,k])}const og=({index:x,style:k})=>{const{checkedIndexes:e,columnFilterMap:t,columnNames:f,columnWidths:u,config:i,disabledCheckedIndexes:o,dropTargetIndex:n,isColumnFilterable:r,isSortable:s,onCheckedIndexesChange:c,properties:a,required:l,setCustomColumnNames:p,setDropTargetIndex:h,setFilterSortColumn:d,setMenuConfig:b,settingsStorageKey:m,sortAsc:_,sortColumn:T,sortedRenderData:O,translate:L}=ue.useContext(Ns),[W,N]=ue.useState(!1),z=x===n,U=nf(),Y=f[x],$=Y===mn?{type:"boolean"}:a[Y],E=T===Y?_:void 0,A=i?i[Y]:void 0;let C=r&&($||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(s,$,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"),W&&v.push("mig-schema-table__th--dragging"),z&&v.push("mig-schema-table__th--drop-target");const{format:w}=$||{},{align:S,defaultSortDesc:D,showTimezones:P,title:F}=A||{},V=ue.useCallback(()=>{if(y){if(E===void 0){d(Y,!D);return}d(Y,!E)}},[y,D,Y,d,E]),q=l.includes(Y),ee=ue.useCallback(ne=>{const de=ne.currentTarget;b(he=>{if((he==null?void 0:he.propName)!==Y)return{propConfig:A,propIsRequired:q,propName:Y,referenceElement:de}})},[A,q,Y,b]),B=ue.useMemo(()=>F!==void 0?F:w==="date-time"&&P!==!1?`${L(Y)} (${L(qc)})`:L(Y),[F,w,P,L,Y]),K=ue.useCallback((ne,de)=>{if(!f||!u)return;const he=f.indexOf(ne),J=[...f];J.splice(he,1);const ce=J.indexOf(de);J.splice(ce+1,0,ne),p(J);const le=[...u],ye=le[he];le.splice(he,1),le.splice(ce+1,0,ye),U(le),m&&localStorage.setItem(`${m}.columnNames`,JSON.stringify(J))},[f,u,U,m,p]),R=ue.useCallback(ne=>{K&&(N(!0),ne.dataTransfer.effectAllowed="move",ne.dataTransfer.dropEffect="move",ne.dataTransfer.setData("text/plain",Y))},[K,Y]),I=ue.useCallback(()=>{K&&(N(!1),h(-1))},[K,h]),H=ue.useCallback(ne=>{K&&(ne.preventDefault(),h(x))},[x,K,h]),Z=ue.useCallback(ne=>{if(h(-1),!K||!Y)return;const de=ne.dataTransfer.getData("text/plain");!de||de===Y||K(de,Y)},[K,Y,h]),ie=sg(),Q=ue.useCallback(()=>{!c||!O||c(ie?[]:O.map(ne=>ne._index).filter(ne=>!(o!=null&&o.includes(ne))))},[c,O,ie,o]);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:ie,onChange:Q})})});switch($==null?void 0:$.type){case"boolean":v.push(`text-${S||"center"}`,`justify-content-${S||"center"}`);break;case"integer":case"number":v.push(`text-${S||"end"}`,`justify-content-${S||"end"}`);break;default:S&&v.push(`text-${S}`)}return qe.jsxs("div",{className:v.join(" "),style:k,title:typeof B=="string"?B:void 0,draggable:!0,onDragStart:R,onDragEnd:I,onDragOver:H,onDrop:Z,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=ue.memo(og);function of(x){var k,e,t="";if(typeof x=="string"||typeof x=="number")t+=x;else if(typeof x=="object")if(Array.isArray(x)){var f=x.length;for(k=0;k<f;k++)x[k]&&(e=of(x[k]))&&(t&&(t+=" "),t+=e)}else for(e in x)x[e]&&(t&&(t+=" "),t+=e);return t}function Dr(){for(var x,k,e=0,t="",f=arguments.length;e<f;e++)(x=arguments[e])&&(k=of(x))&&(t&&(t+=" "),t+=k);return t}function ag(x,k){x.prototype=Object.create(k.prototype),x.prototype.constructor=x,ml(x,k)}function ml(x,k){return ml=Object.setPrototypeOf||function(t,f){return t.__proto__=f,t},ml(x,k)}function lg(x,k){if(x==null)return{};var e={},t=Object.keys(x),f,u;for(u=0;u<t.length;u++)f=t[u],!(k.indexOf(f)>=0)&&(e[f]=x[f]);return e}function af(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function ug(x,k,e){return x===k?!0:x.correspondingElement?x.correspondingElement.classList.contains(e):x.classList.contains(e)}function cg(x,k,e){if(x===k)return!0;for(;x.parentNode||x.host;){if(x.parentNode&&ug(x,k,e))return!0;x=x.parentNode||x.host}return x}function fg(x){return document.documentElement.clientWidth<=x.clientX||document.documentElement.clientHeight<=x.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(x){return x===void 0&&(x=0),function(){return++x}}var pg=hg(),gl,Bo={},bl={},mg=["touchstart","touchmove"],gg="ignore-react-onclickoutside";function lf(x,k){var e={},t=mg.indexOf(k)!==-1;return t&&gl&&(e.passive=!x.props.preventDefault),e}function zo(x,k){var e,t,f=x.displayName||x.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]),Bo[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,Bo[r._uid],lf(af(r),c))})}},r.disableOnClickOutside=function(){delete bl[r._uid];var s=Bo[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 Bo[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(x.prototype&&!x.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 x.prototype&&x.prototype.isReactComponent?s.ref=this.getRef:s.wrappedRef=this.getRef,s.disableOnClickOutside=this.disableOnClickOutside,s.enableOnClickOutside=this.enableOnClickOutside,ue.createElement(x,s)},i}(ue.Component),e.displayName="OnClickOutside("+f+")",e.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:gg,preventDefault:!1,stopPropagation:!1},e.getClass=function(){return x.getClass?x.getClass():x},t}function is(x){return uf(x)?(x.nodeName||"").toLowerCase():"#document"}function Kr(x){var k;return(x==null||(k=x.ownerDocument)==null?void 0:k.defaultView)||window}function Hn(x){var k;return(k=(uf(x)?x.ownerDocument:x.document)||window.document)==null?void 0:k.documentElement}function uf(x){return x instanceof Node||x instanceof Kr(x).Node}function zr(x){return x instanceof Element||x instanceof Kr(x).Element}function In(x){return x instanceof HTMLElement||x instanceof Kr(x).HTMLElement}function cf(x){return typeof ShadowRoot>"u"?!1:x instanceof ShadowRoot||x instanceof Kr(x).ShadowRoot}function Ps(x){const{overflow:k,overflowX:e,overflowY:t,display:f}=gn(x);return/auto|scroll|overlay|hidden|clip/.test(k+t+e)&&!["inline","contents"].includes(f)}function bg(x){return["table","td","th"].includes(is(x))}function yl(x){const k=vl(),e=gn(x);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(x){let k=ai(x);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(x){return["html","body","#document"].includes(is(x))}function gn(x){return Kr(x).getComputedStyle(x)}function Wo(x){return zr(x)?{scrollLeft:x.scrollLeft,scrollTop:x.scrollTop}:{scrollLeft:x.pageXOffset,scrollTop:x.pageYOffset}}function ai(x){if(is(x)==="html")return x;const k=x.assignedSlot||x.parentNode||cf(x)&&x.host||Hn(x);return cf(k)?k.host:k}function ff(x){const k=ai(x);return ss(k)?x.ownerDocument?x.ownerDocument.body:x.body:In(k)&&Ps(k)?k:ff(k)}function js(x,k,e){var t;k===void 0&&(k=[]),e===void 0&&(e=!0);const f=ff(x),u=f===((t=x.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,$o=Math.round,Uo=Math.floor,li=x=>({x,y:x}),vg={left:"right",right:"left",bottom:"top",top:"bottom"},wg={start:"end",end:"start"};function _g(x,k,e){return Ii(x,os(k,e))}function Ho(x,k){return typeof x=="function"?x(k):x}function as(x){return x.split("-")[0]}function Ls(x){return x.split("-")[1]}function xg(x){return x==="x"?"y":"x"}function wl(x){return x==="y"?"height":"width"}function _l(x){return["top","bottom"].includes(as(x))?"y":"x"}function xl(x){return xg(_l(x))}function Sg(x,k,e){e===void 0&&(e=!1);const t=Ls(x),f=xl(x),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=Yo(i)),[i,Yo(i)]}function kg(x){const k=Yo(x);return[Sl(x),k,Sl(k)]}function Sl(x){return x.replace(/start|end/g,k=>wg[k])}function Cg(x,k,e){const t=["left","right"],f=["right","left"],u=["top","bottom"],i=["bottom","top"];switch(x){case"top":case"bottom":return e?k?f:t:k?t:f;case"left":case"right":return k?u:i;default:return[]}}function Mg(x,k,e,t){const f=Ls(x);let u=Cg(as(x),e==="start",t);return f&&(u=u.map(i=>i+"-"+f),k&&(u=u.concat(u.map(Sl)))),u}function Yo(x){return x.replace(/left|right|bottom|top/g,k=>vg[k])}function Tg(x){return{top:0,right:0,bottom:0,left:0,...x}}function df(x){return typeof x!="number"?Tg(x):{top:x,right:x,bottom:x,left:x}}function Vo(x){const{x:k,y:e,width:t,height:f}=x;return{width:t,height:f,top:e,left:k,right:k+t,bottom:e+f,x:k,y:e}}function hf(x,k,e){let{reference:t,floating:f}=x;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(x,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:x,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:x,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:x,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(x,k){var e;k===void 0&&(k={});const{x:t,y:f,platform:u,rects:i,elements:o,strategy:n}=x,{boundary:r="clippingAncestors",rootBoundary:s="viewport",elementContext:c="floating",altBoundary:a=!1,padding:l=0}=Ho(k,x),p=df(l),d=o[a?c==="floating"?"reference":"floating":c],b=Vo(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=Vo(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=x=>({name:"arrow",options:x,async fn(k){const{x:e,y:t,placement:f,rects:u,platform:i,elements:o,middlewareData:n}=k,{element:r,padding:s=0}=Ho(x,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(x){return x===void 0&&(x={}),{name:"flip",options:x,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}=Ho(x,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?[Yo(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(x,k){const{placement:e,platform:t,elements:f}=x,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=Ho(k,x);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(x){return x===void 0&&(x=0),{name:"offset",options:x,async fn(k){var e,t;const{x:f,y:u,placement:i,middlewareData:o}=k,n=await Ig(k,x);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(x){const k=gn(x);let e=parseFloat(k.width)||0,t=parseFloat(k.height)||0;const f=In(x),u=f?x.offsetWidth:e,i=f?x.offsetHeight:t,o=$o(e)!==u||$o(t)!==i;return o&&(e=u,t=i),{width:e,height:t,$:o}}function kl(x){return zr(x)?x:x.contextElement}function ls(x){const k=kl(x);if(!In(k))return li(1);const e=k.getBoundingClientRect(),{width:t,height:f,$:u}=pf(k);let i=(u?$o(e.width):e.width)/t,o=(u?$o(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(x){const k=Kr(x);return!vl()||!k.visualViewport?Ng:{x:k.visualViewport.offsetLeft,y:k.visualViewport.offsetTop}}function Pg(x,k,e){return k===void 0&&(k=!1),!e||k&&e!==Kr(x)?!1:k}function Ri(x,k,e,t){k===void 0&&(k=!1),e===void 0&&(e=!1);const f=x.getBoundingClientRect(),u=kl(x);let i=li(1);k&&(t?zr(t)&&(i=ls(t)):i=ls(x));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 Vo({width:s,height:c,x:n,y:r})}const jg=[":popover-open",":modal"];function Cl(x){return jg.some(k=>{try{return x.matches(k)}catch{return!1}})}function Lg(x){let{elements:k,rect:e,offsetParent:t,strategy:f}=x;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=Wo(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(x){return Array.from(x.getClientRects())}function gf(x){return Ri(Hn(x)).left+Wo(x).scrollLeft}function Bg(x){const k=Hn(x),e=Wo(x),t=x.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(x);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(x,k){const e=Kr(x),t=Hn(x),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(x,k){const e=Ri(x,!0,k==="fixed"),t=e.top+x.clientTop,f=e.left+x.clientLeft,u=In(x)?ls(x):li(1),i=x.clientWidth*u.x,o=x.clientHeight*u.y,n=f*u.x,r=t*u.y;return{width:i,height:o,x:n,y:r}}function bf(x,k,e){let t;if(k==="viewport")t=zg(x,e);else if(k==="document")t=Bg(Hn(x));else if(zr(k))t=Wg(k,e);else{const f=mf(x);t={...k,x:k.x-f.x,y:k.y-f.y}}return Vo(t)}function yf(x,k){const e=ai(x);return e===k||!zr(e)||ss(e)?!1:gn(e).position==="fixed"||yf(e,k)}function $g(x,k){const e=k.get(x);if(e)return e;let t=js(x,[],!1).filter(o=>zr(o)&&is(o)!=="body"),f=null;const u=gn(x).position==="fixed";let i=u?ai(x):x;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(x,i))?t=t.filter(s=>s!==i):f=o,i=ai(i)}return k.set(x,t),t}function Ug(x){let{element:k,boundary:e,rootBoundary:t,strategy:f}=x;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(x){const{width:k,height:e}=pf(x);return{width:k,height:e}}function Yg(x,k,e){const t=In(k),f=Hn(k),u=e==="fixed",i=Ri(x,!0,u,k);let o={scrollLeft:0,scrollTop:0};const n=li(0);if(t||!t&&!u)if((is(k)!=="body"||Ps(f))&&(o=Wo(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(x){return gn(x).position==="static"}function vf(x,k){return!In(x)||gn(x).position==="fixed"?null:k?k(x):x.offsetParent}function wf(x,k){const e=Kr(x);if(Cl(x))return e;if(!In(x)){let f=ai(x);for(;f&&!ss(f);){if(zr(f)&&!Ml(f))return f;f=ai(f)}return e}let t=vf(x,k);for(;t&&bg(t)&&Ml(t);)t=vf(t,k);return t&&ss(t)&&Ml(t)&&!yl(t)?e:t||yg(x)||e}const Vg=async function(x){const k=this.getOffsetParent||wf,e=this.getDimensions,t=await e(x.floating);return{reference:Yg(x.reference,await k(x.floating),x.strategy),floating:{x:0,y:0,width:t.width,height:t.height}}};function qg(x){return gn(x).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(x,k){let e=null,t;const f=Hn(x);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}=x.getBoundingClientRect();if(o||k(),!c||!a)return;const l=Uo(s),p=Uo(f.clientWidth-(r+c)),h=Uo(f.clientHeight-(s+a)),d=Uo(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(x)}return i(!0),u}function Kg(x,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(x),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(x):null;n&&d();function d(){const b=Ri(x);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=(x,k,e)=>{const t=new Map,f={platform:_f,...e},u={...f.platform,_c:t};return Eg(x,k,{...f,platform:u})};var qo=typeof document<"u"?ue.useLayoutEffect:ue.useEffect;function Xo(x,k){if(x===k)return!0;if(typeof x!=typeof k)return!1;if(typeof x=="function"&&x.toString()===k.toString())return!0;let e,t,f;if(x&&k&&typeof x=="object"){if(Array.isArray(x)){if(e=x.length,e!==k.length)return!1;for(t=e;t--!==0;)if(!Xo(x[t],k[t]))return!1;return!0}if(f=Object.keys(x),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"&&x.$$typeof)&&!Xo(x[u],k[u]))return!1}return!0}return x!==x&&k!==k}function Sf(x){return typeof window>"u"?1:(x.ownerDocument.defaultView||window).devicePixelRatio||1}function kf(x,k){const e=Sf(x);return Math.round(k*e)/e}function Cf(x){const k=xt.useRef(x);return qo(()=>{k.current=x}),k}function Tl(x){x===void 0&&(x={});const{placement:k="bottom",strategy:e="absolute",middleware:t=[],platform:f,elements:{reference:u,floating:i}={},transform:o=!0,whileElementsMounted:n,open:r}=x,[s,c]=xt.useState({x:0,y:0,strategy:e,placement:k,middlewareData:{},isPositioned:!1}),[a,l]=xt.useState(t);Xo(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 S={...w,isPositioned:!0};E.current&&!Xo(N.current,S)&&(N.current=S,yp.flushSync(()=>{c(S)}))})},[a,k,e,Y]);qo(()=>{r===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,c(v=>({...v,isPositioned:!1})))},[r]);const E=xt.useRef(!1);qo(()=>(E.current=!0,()=>{E.current=!1}),[]),qo(()=>{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),S=kf(C.floating,s.y);return o?{...v,transform:"translate("+w+"px, "+S+"px)",...Sf(C.floating)>=1.5&&{willChange:"transform"}}:{position:e,left:w,top:S}},[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=x=>{function k(e){return{}.hasOwnProperty.call(e,"current")}return{name:"arrow",options:x,fn(e){const{element:t,padding:f}=typeof x=="function"?x(e):x;return t&&k(t)?t.current!=null?xf({element:t.current,padding:f}).fn(e):{}:t?xf({element:t,padding:f}).fn(e):{}}}},eb=(x,k)=>({...Zg(x),options:[x,k]}),El=(x,k)=>({...Gg(x),options:[x,k]}),tb=(x,k)=>({...Jg(x),options:[x,k]}),Mf={...xt},rb=Mf.useInsertionEffect||(x=>x());function nb(x){const k=xt.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return rb(()=>{k.current=x}),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"?ue.useLayoutEffect:ue.useEffect;function Ol(){return Ol=Object.assign?Object.assign.bind():function(x){for(var k=1;k<arguments.length;k++){var e=arguments[k];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(x[t]=e[t])}return x},Ol.apply(this,arguments)}let Tf=!1,ib=0;const Ef=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ib++;function sb(){const[x,k]=xt.useState(()=>Tf?Ef():void 0);return Dl(()=>{x==null&&k(Ef())},[]),xt.useEffect(()=>{Tf=!0},[]),x}const Df=Mf.useId||sb;let Fs;process.env.NODE_ENV!=="production"&&(Fs=new Set);function ob(){for(var x,k=arguments.length,e=new Array(k),t=0;t<k;t++)e[t]=arguments[t];const f="Floating UI: "+e.join(" ");if(!((x=Fs)!=null&&x.has(f))){var u;(u=Fs)==null||u.add(f),console.warn(f)}}function ab(){for(var x,k=arguments.length,e=new Array(k),t=0;t<k;t++)e[t]=arguments[t];const f="Floating UI: "+e.join(" ");if(!((x=Fs)!=null&&x.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 x=new Map;return{emit(k,e){var t;(t=x.get(k))==null||t.forEach(f=>f(e))},on(k,e){x.set(k,[...x.get(k)||[],e])},off(k,e){var t;x.set(k,((t=x.get(k))==null?void 0:t.filter(f=>f!==e))||[])}}}const cb=xt.createContext(null),fb=xt.createContext(null),db=()=>{var x;return((x=xt.useContext(cb))==null?void 0:x.id)||null},hb=()=>xt.useContext(fb);function pb(x){const{open:k=!1,onOpenChange:e,elements:t}=x,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(x){x===void 0&&(x={});const{nodeId:k}=x,e=pb({...x,elements:{reference:null,floating:null,...x.elements}}),t=x.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({...x,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.
|