@platforma-sdk/ui-vue 1.10.12 → 1.10.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @platforma-sdk/ui-vue
2
2
 
3
+ ## 1.10.13
4
+
5
+ ### Patch Changes
6
+
7
+ - 449209f: fix: no rows overlay
8
+
3
9
  ## 1.10.12
4
10
 
5
11
  ### Patch Changes
package/dist/lib.js CHANGED
@@ -21176,7 +21176,7 @@ async function fL(t, e, n, i) {
21176
21176
  getRows: async (w) => {
21177
21177
  try {
21178
21178
  if (f == 0) {
21179
- w.success({ rowData: [], rowCount: f }), w.api.showNoRowsOverlay(), w.api.setGridOption("loading", !1);
21179
+ w.success({ rowData: [], rowCount: f }), w.api.setGridOption("loading", !1), w.api.showNoRowsOverlay();
21180
21180
  return;
21181
21181
  }
21182
21182
  if (P && !nt.isEqual(P.request.sortModel, w.request.sortModel)) {
package/dist/lib.umd.cjs CHANGED
@@ -86,4 +86,4 @@ __p += '`),Fe&&(Y+=`' +
86
86
  function print() { __p += __j.call(arguments, '') }
87
87
  `:`;
88
88
  `)+Y+`return __p
89
- }`;var Ne=Uf(function(){return ze(_,ce+"return "+Y).apply(n,x)});if(Ne.source=Y,Zc(Ne))throw Ne;return Ne}function QD(o){return Ze(o).toLowerCase()}function eF(o){return Ze(o).toUpperCase()}function tF(o,a,d){if(o=Ze(o),o&&(d||a===n))return Yp(o);if(!o||!(a=Wt(a)))return o;var h=Cn(o),g=Cn(a),_=Jp(h,g),x=Xp(h,g)+1;return Br(h,_,x).join("")}function nF(o,a,d){if(o=Ze(o),o&&(d||a===n))return o.slice(0,eh(o)+1);if(!o||!(a=Wt(a)))return o;var h=Cn(o),g=Xp(h,Cn(a))+1;return Br(h,0,g).join("")}function rF(o,a,d){if(o=Ze(o),o&&(d||a===n))return o.replace(Zl,"");if(!o||!(a=Wt(a)))return o;var h=Cn(o),g=Jp(h,Cn(a));return Br(h,g).join("")}function iF(o,a){var d=V,h=W;if(Qe(a)){var g="separator"in a?a.separator:g;d="length"in a?Te(a.length):d,h="omission"in a?Wt(a.omission):h}o=Ze(o);var _=o.length;if(Ti(o)){var x=Cn(o);_=x.length}if(d>=_)return o;var B=d-Bi(h);if(B<1)return h;var F=x?Br(x,0,B).join(""):o.slice(0,B);if(g===n)return F+h;if(x&&(B+=F.length-B),$c(g)){if(o.slice(B).search(g)){var j,K=F;for(g.global||(g=sc(g.source,Ze(vp.exec(g))+"g")),g.lastIndex=0;j=g.exec(K);)var Y=j.index;F=F.slice(0,Y===n?B:Y)}}else if(o.indexOf(Wt(g),B)!=B){var ne=F.lastIndexOf(g);ne>-1&&(F=F.slice(0,ne))}return F+h}function oF(o){return o=Ze(o),o&&gT.test(o)?o.replace(mp,FB):o}var sF=Ri(function(o,a,d){return o+(d?" ":"")+a.toUpperCase()}),jc=Uh("toUpperCase");function zf(o,a,d){return o=Ze(o),a=d?n:a,a===n?AB(o)?IB(o):CB(o):o.match(a)||[]}var Uf=Ve(function(o,a){try{return Zt(o,n,a)}catch(d){return Zc(d)?d:new xe(d)}}),aF=qn(function(o,a){return Yt(a,function(d){d=Fn(d),Hn(o,d,zc(o[d],o))}),o});function lF(o){var a=o==null?0:o.length,d=he();return o=a?Ye(o,function(h){if(typeof h[1]!="function")throw new Jt(c);return[d(h[0]),h[1]]}):[],Ve(function(h){for(var g=-1;++g<a;){var _=o[g];if(Zt(_[0],this,h))return Zt(_[1],this,h)}})}function cF(o){return FA(Qt(o,y))}function qc(o){return function(){return o}}function dF(o,a){return o==null||o!==o?a:o}var uF=$h(),pF=$h(!0);function Mt(o){return o}function Kc(o){return Ch(typeof o=="function"?o:Qt(o,y))}function hF(o){return bh(Qt(o,y))}function fF(o,a){return xh(o,Qt(a,y))}var mF=Ve(function(o,a){return function(d){return Wo(d,o,a)}}),gF=Ve(function(o,a){return function(d){return Wo(o,d,a)}});function Yc(o,a,d){var h=pt(a),g=ia(a,h);d==null&&!(Qe(a)&&(g.length||!h.length))&&(d=a,a=o,o=this,g=ia(a,pt(a)));var _=!(Qe(d)&&"chain"in d)||!!d.chain,x=Yn(o);return Yt(g,function(B){var F=a[B];o[B]=F,x&&(o.prototype[B]=function(){var j=this.__chain__;if(_||j){var K=o(this.__wrapped__),Y=K.__actions__=Dt(this.__actions__);return Y.push({func:F,args:arguments,thisArg:o}),K.__chain__=j,K}return F.apply(o,br([this.value()],arguments))})}),o}function yF(){return ft._===this&&(ft._=ZB),this}function Jc(){}function vF(o){return o=Te(o),Ve(function(a){return kh(a,o)})}var _F=Bc(Ye),CF=Bc(Wp),wF=Bc(Ql);function Zf(o){return Rc(o)?ec(Fn(o)):JA(o)}function bF(o){return function(a){return o==null?n:Jr(o,a)}}var xF=Hh(),kF=Hh(!0);function Xc(){return[]}function Qc(){return!1}function SF(){return{}}function EF(){return""}function TF(){return!0}function BF(o,a){if(o=Te(o),o<1||o>we)return[];var d=ht,h=wt(o,ht);a=he(a),o-=ht;for(var g=rc(h,a);++d<o;)a(d);return g}function AF(o){return ke(o)?Ye(o,Fn):Ht(o)?[o]:Dt(cf(Ze(o)))}function NF(o){var a=++zB;return Ze(o)+a}var VF=da(function(o,a){return o+a},0),PF=Ac("ceil"),DF=da(function(o,a){return o/a},1),FF=Ac("floor");function RF(o){return o&&o.length?ra(o,Mt,fc):n}function MF(o,a){return o&&o.length?ra(o,he(a,2),fc):n}function IF(o){return qp(o,Mt)}function OF(o,a){return qp(o,he(a,2))}function LF(o){return o&&o.length?ra(o,Mt,vc):n}function GF(o,a){return o&&o.length?ra(o,he(a,2),vc):n}var zF=da(function(o,a){return o*a},1),UF=Ac("round"),ZF=da(function(o,a){return o-a},0);function $F(o){return o&&o.length?nc(o,Mt):0}function WF(o,a){return o&&o.length?nc(o,he(a,2)):0}return v.after=hP,v.ary=Cf,v.assign=eD,v.assignIn=Ff,v.assignInWith=xa,v.assignWith=tD,v.at=nD,v.before=wf,v.bind=zc,v.bindAll=aF,v.bindKey=bf,v.castArray=SP,v.chain=yf,v.chunk=FN,v.compact=RN,v.concat=MN,v.cond=lF,v.conforms=cF,v.constant=qc,v.countBy=$V,v.create=rD,v.curry=xf,v.curryRight=kf,v.debounce=Sf,v.defaults=iD,v.defaultsDeep=oD,v.defer=fP,v.delay=mP,v.difference=IN,v.differenceBy=ON,v.differenceWith=LN,v.drop=GN,v.dropRight=zN,v.dropRightWhile=UN,v.dropWhile=ZN,v.fill=$N,v.filter=HV,v.flatMap=KV,v.flatMapDeep=YV,v.flatMapDepth=JV,v.flatten=hf,v.flattenDeep=WN,v.flattenDepth=HN,v.flip=gP,v.flow=uF,v.flowRight=pF,v.fromPairs=jN,v.functions=pD,v.functionsIn=hD,v.groupBy=XV,v.initial=KN,v.intersection=YN,v.intersectionBy=JN,v.intersectionWith=XN,v.invert=mD,v.invertBy=gD,v.invokeMap=eP,v.iteratee=Kc,v.keyBy=tP,v.keys=pt,v.keysIn=Rt,v.map=ya,v.mapKeys=vD,v.mapValues=_D,v.matches=hF,v.matchesProperty=fF,v.memoize=_a,v.merge=CD,v.mergeWith=Rf,v.method=mF,v.methodOf=gF,v.mixin=Yc,v.negate=Ca,v.nthArg=vF,v.omit=wD,v.omitBy=bD,v.once=yP,v.orderBy=nP,v.over=_F,v.overArgs=vP,v.overEvery=CF,v.overSome=wF,v.partial=Uc,v.partialRight=Ef,v.partition=rP,v.pick=xD,v.pickBy=Mf,v.property=Zf,v.propertyOf=bF,v.pull=nV,v.pullAll=mf,v.pullAllBy=rV,v.pullAllWith=iV,v.pullAt=oV,v.range=xF,v.rangeRight=kF,v.rearg=_P,v.reject=sP,v.remove=sV,v.rest=CP,v.reverse=Lc,v.sampleSize=lP,v.set=SD,v.setWith=ED,v.shuffle=cP,v.slice=aV,v.sortBy=pP,v.sortedUniq=fV,v.sortedUniqBy=mV,v.split=KD,v.spread=wP,v.tail=gV,v.take=yV,v.takeRight=vV,v.takeRightWhile=_V,v.takeWhile=CV,v.tap=RV,v.throttle=bP,v.thru=ga,v.toArray=Vf,v.toPairs=If,v.toPairsIn=Of,v.toPath=AF,v.toPlainObject=Df,v.transform=TD,v.unary=xP,v.union=wV,v.unionBy=bV,v.unionWith=xV,v.uniq=kV,v.uniqBy=SV,v.uniqWith=EV,v.unset=BD,v.unzip=Gc,v.unzipWith=gf,v.update=AD,v.updateWith=ND,v.values=Oi,v.valuesIn=VD,v.without=TV,v.words=zf,v.wrap=kP,v.xor=BV,v.xorBy=AV,v.xorWith=NV,v.zip=VV,v.zipObject=PV,v.zipObjectDeep=DV,v.zipWith=FV,v.entries=If,v.entriesIn=Of,v.extend=Ff,v.extendWith=xa,Yc(v,v),v.add=VF,v.attempt=Uf,v.camelCase=RD,v.capitalize=Lf,v.ceil=PF,v.clamp=PD,v.clone=EP,v.cloneDeep=BP,v.cloneDeepWith=AP,v.cloneWith=TP,v.conformsTo=NP,v.deburr=Gf,v.defaultTo=dF,v.divide=DF,v.endsWith=MD,v.eq=bn,v.escape=ID,v.escapeRegExp=OD,v.every=WV,v.find=jV,v.findIndex=uf,v.findKey=sD,v.findLast=qV,v.findLastIndex=pf,v.findLastKey=aD,v.floor=FF,v.forEach=vf,v.forEachRight=_f,v.forIn=lD,v.forInRight=cD,v.forOwn=dD,v.forOwnRight=uD,v.get=Wc,v.gt=VP,v.gte=PP,v.has=fD,v.hasIn=Hc,v.head=ff,v.identity=Mt,v.includes=QV,v.indexOf=qN,v.inRange=DD,v.invoke=yD,v.isArguments=ei,v.isArray=ke,v.isArrayBuffer=DP,v.isArrayLike=Ft,v.isArrayLikeObject=nt,v.isBoolean=FP,v.isBuffer=Ar,v.isDate=RP,v.isElement=MP,v.isEmpty=IP,v.isEqual=OP,v.isEqualWith=LP,v.isError=Zc,v.isFinite=GP,v.isFunction=Yn,v.isInteger=Tf,v.isLength=wa,v.isMap=Bf,v.isMatch=zP,v.isMatchWith=UP,v.isNaN=ZP,v.isNative=$P,v.isNil=HP,v.isNull=WP,v.isNumber=Af,v.isObject=Qe,v.isObjectLike=et,v.isPlainObject=Jo,v.isRegExp=$c,v.isSafeInteger=jP,v.isSet=Nf,v.isString=ba,v.isSymbol=Ht,v.isTypedArray=Ii,v.isUndefined=qP,v.isWeakMap=KP,v.isWeakSet=YP,v.join=QN,v.kebabCase=LD,v.last=tn,v.lastIndexOf=eV,v.lowerCase=GD,v.lowerFirst=zD,v.lt=JP,v.lte=XP,v.max=RF,v.maxBy=MF,v.mean=IF,v.meanBy=OF,v.min=LF,v.minBy=GF,v.stubArray=Xc,v.stubFalse=Qc,v.stubObject=SF,v.stubString=EF,v.stubTrue=TF,v.multiply=zF,v.nth=tV,v.noConflict=yF,v.noop=Jc,v.now=va,v.pad=UD,v.padEnd=ZD,v.padStart=$D,v.parseInt=WD,v.random=FD,v.reduce=iP,v.reduceRight=oP,v.repeat=HD,v.replace=jD,v.result=kD,v.round=UF,v.runInContext=D,v.sample=aP,v.size=dP,v.snakeCase=qD,v.some=uP,v.sortedIndex=lV,v.sortedIndexBy=cV,v.sortedIndexOf=dV,v.sortedLastIndex=uV,v.sortedLastIndexBy=pV,v.sortedLastIndexOf=hV,v.startCase=YD,v.startsWith=JD,v.subtract=ZF,v.sum=$F,v.sumBy=WF,v.template=XD,v.times=BF,v.toFinite=Jn,v.toInteger=Te,v.toLength=Pf,v.toLower=QD,v.toNumber=nn,v.toSafeInteger=QP,v.toString=Ze,v.toUpper=eF,v.trim=tF,v.trimEnd=nF,v.trimStart=rF,v.truncate=iF,v.unescape=oF,v.uniqueId=NF,v.upperCase=sF,v.upperFirst=jc,v.each=vf,v.eachRight=_f,v.first=ff,Yc(v,function(){var o={};return Pn(v,function(a,d){$e.call(v.prototype,d)||(o[d]=a)}),o}(),{chain:!1}),v.VERSION=i,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){v[o].placeholder=v}),Yt(["drop","take"],function(o,a){De.prototype[o]=function(d){d=d===n?1:lt(Te(d),0);var h=this.__filtered__&&!a?new De(this):this.clone();return h.__filtered__?h.__takeCount__=wt(d,h.__takeCount__):h.__views__.push({size:wt(d,ht),type:o+(h.__dir__<0?"Right":"")}),h},De.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),Yt(["filter","map","takeWhile"],function(o,a){var d=a+1,h=d==A||d==J;De.prototype[o]=function(g){var _=this.clone();return _.__iteratees__.push({iteratee:he(g,3),type:d}),_.__filtered__=_.__filtered__||h,_}}),Yt(["head","last"],function(o,a){var d="take"+(a?"Right":"");De.prototype[o]=function(){return this[d](1).value()[0]}}),Yt(["initial","tail"],function(o,a){var d="drop"+(a?"":"Right");De.prototype[o]=function(){return this.__filtered__?new De(this):this[d](1)}}),De.prototype.compact=function(){return this.filter(Mt)},De.prototype.find=function(o){return this.filter(o).head()},De.prototype.findLast=function(o){return this.reverse().find(o)},De.prototype.invokeMap=Ve(function(o,a){return typeof o=="function"?new De(this):this.map(function(d){return Wo(d,o,a)})}),De.prototype.reject=function(o){return this.filter(Ca(he(o)))},De.prototype.slice=function(o,a){o=Te(o);var d=this;return d.__filtered__&&(o>0||a<0)?new De(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),a!==n&&(a=Te(a),d=a<0?d.dropRight(-a):d.take(a-o)),d)},De.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},De.prototype.toArray=function(){return this.take(ht)},Pn(De.prototype,function(o,a){var d=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),g=v[h?"take"+(a=="last"?"Right":""):a],_=h||/^find/.test(a);g&&(v.prototype[a]=function(){var x=this.__wrapped__,B=h?[1]:arguments,F=x instanceof De,j=B[0],K=F||ke(x),Y=function(Pe){var Fe=g.apply(v,br([Pe],B));return h&&ne?Fe[0]:Fe};K&&d&&typeof j=="function"&&j.length!=1&&(F=K=!1);var ne=this.__chain__,ce=!!this.__actions__.length,me=_&&!ne,Ne=F&&!ce;if(!_&&K){x=Ne?x:new De(this);var ge=o.apply(x,B);return ge.__actions__.push({func:ga,args:[Y],thisArg:n}),new Xt(ge,ne)}return me&&Ne?o.apply(this,B):(ge=this.thru(Y),me?h?ge.value()[0]:ge.value():ge)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(o){var a=Us[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",h=/^(?:pop|shift)$/.test(o);v.prototype[o]=function(){var g=arguments;if(h&&!this.__chain__){var _=this.value();return a.apply(ke(_)?_:[],g)}return this[d](function(x){return a.apply(ke(x)?x:[],g)})}}),Pn(De.prototype,function(o,a){var d=v[a];if(d){var h=d.name+"";$e.call(Pi,h)||(Pi[h]=[]),Pi[h].push({name:a,func:d})}}),Pi[ca(n,C).name]=[{name:"wrapper",func:n}],De.prototype.clone=oA,De.prototype.reverse=sA,De.prototype.value=aA,v.prototype.at=MV,v.prototype.chain=IV,v.prototype.commit=OV,v.prototype.next=LV,v.prototype.plant=zV,v.prototype.reverse=UV,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=ZV,v.prototype.first=v.prototype.head,Oo&&(v.prototype[Oo]=GV),v},Ai=OB();Hr?((Hr.exports=Ai)._=Ai,Kl._=Ai):ft._=Ai}).call(Li)}(Bs,Bs.exports);var Le=Bs.exports;const BE={class:"grid-overlay-container"},Xu=r.defineComponent({__name:"PlAgOverlayLoading",props:{params:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",BE,[e.params.notReady?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n[0]||(n[0]=r.createElementVNode("div",{class:"grid-icon-cat-in-bag"},null,-1)),n[1]||(n[1]=r.createElementVNode("span",{class:"text-subtitle-m"},"Not calculated",-1))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[n[2]||(n[2]=r.createElementVNode("div",{class:"mask-24 mask-loading grid-mask-loading"},null,-1)),n[3]||(n[3]=r.createElementVNode("span",{class:"text-subtitle-m"},"Loading",-1))],64))]))}}),AE={},NE={class:"grid-overlay-container"};function VE(t,e){return r.openBlock(),r.createElementBlock("div",NE,e[0]||(e[0]=[r.createElementVNode("div",{class:"grid-icon-sad-cat"},null,-1),r.createElementVNode("span",{class:"text-subtitle-m"},"Empty",-1)]))}const Qu=Ts(AE,[["render",VE]]);async function PE(t,e){throw Error("not implemented")}function DE(t){return t.axesSpec.filter(e=>{var n;return((n=e.annotations)==null?void 0:n["pl7.app/axisNature"])==="heterogeneous"})}function FE(t,e){const n=[];for(const i of e)if(t[i].type==="column"){const s=DE(t[i].spec);for(const l of s){if(l.type!=="String"){console.warn("heterogeneous axis with string type expected, got",l,"skipping");continue}const c=kd(l),u=t.findIndex(p=>Le.isEqual(p.id,c));if(u===-1)throw console.error("axis not found",i,c,t),Error("axis not found");n.push({columnIdx:i,axisIdx:u})}}return n}const ep=(t,e)=>(t+e).toString();function RE(t,e,n,i,s,l){if(t.length>1)throw Error("hColumns.length > 1 is not supported");const c=t[0];let u=-1,p=-1;for(let y=0;y<l.length;++y)l[y]===c.axisIdx&&(u=y),l[y]===c.columnIdx&&(p=y);const f=(()=>{const k=i[u].data.filter(S=>S!==null);return Array.from(new Set(k))})();f.sort(),p>u?(n.splice(p,1),n.splice(u,1)):(n.splice(u,1),n.splice(p,1));const m=ME(s,i,u,p,f,e.rows);for(let y=0;y<f.length;++y){const k=f[y],S=k+"@"+y;n.push({colId:S,field:ep(i.length,y),headerName:k,valueFormatter:np})}return{rowModelType:"clientSide",columnDefs:n,rowData:m}}function ME(t,e,n,i,s,l){const c=new Map;let u=0;for(let f=0;f<l;f++){const m={};for(let T=0;T<e.length;++T){if(T===n||T===i)continue;const R=t[T].toString();m[R]=e[T].data[f]}let y;const k=ti(Object.values(m))??"";c.has(k)?y=c.get(k):(c.set(k,m),y=m,y.id=u.toString(),u++);const S=s.indexOf(e[n].data[f]);if(S===-1)throw Error("index not found");const M=ep(e.length,S);y[M]=e[i].data[f]}return Array.from(c.values())}function IE(t){return ti(t)}function tp(t){return JSON.parse(t)}const np=t=>t?t.value===void 0?"NULL":t.value===null?"NA":t.value.toString():"ERROR";function OE(t,e,n){var s,l,c;const i=IE(e);return{colId:i,field:t.toString(),headerName:((l=(s=e.spec.annotations)==null?void 0:s["pl7.app/label"])==null?void 0:l.trim())??"Unlabeled "+e.type+" "+t.toString(),lockPosition:e.type==="axis",hide:(n==null?void 0:n.includes(i))??((c=e.spec.annotations)==null?void 0:c["pl7.app/table/visibility"])==="optional",valueFormatter:np,cellDataType:(u=>{switch(u){case"Int":case"Long":case"Float":case"Double":return"number";case"String":case"Bytes":return"text";default:throw Error(`unsupported data type: ${u}`)}})(e.type==="axis"?e.spec.type:e.spec.valueType)}}function rp(t,e){switch(e){case"Int":return t;case"Long":return typeof t=="bigint"?Number(t):t;case"Float":return t;case"Double":return t;case"String":return t;case"Bytes":return Buffer.from(t).toString("hex");default:throw Error(`unsupported data type: ${e}`)}}function ip(t){const e=[];return cs(t,n=>(e.push(n),n)),e}async function LE(t,e,n){return n.length?(await t.findColumns(e,{columnFilter:{name:["pl7.app/label"]},compatibleWith:Le.uniqWith(n.map(s=>Ua(s.spec.axesSpec).map(Le.cloneDeep)).flat(),Le.isEqual),strictlyCompatible:!0})).hits.filter(s=>s.spec.axesSpec.length===1):[]}async function GE(t,e,n){const i=ip(n),l=(await LE(t,e,i)).filter(c=>!Le.find(i,u=>c.columnId===u.columnId));return l.length===0?n:{type:"outer",primary:n,secondary:l.map(c=>({type:"column",column:c}))}}async function zE(t,e,n,i){const s=n.filter(m=>m.type!=="Bytes"),l=ip(i),c=s.map(m=>[]),u=s.map(m=>null);for(let m=0;m<l.length;++m){const y=Ua(l[m].spec.axesSpec);for(let k=0;k<y.length;++k){const S=Le.findIndex(s,M=>Le.isEqual(M,y[k]));S===-1||u[S]||(y.length===1&&l[m].spec.name==="pl7.app/label"?(c[S]=[[m,k]],u[S]=l[m].columnId):c[S].push([m,k]))}}for(let m=s.length-1;m>=0;--m)c[m].length||(u.splice(m,1),c.splice(m,1),s.splice(m,1));const p=100,f=s.map(m=>new Set);e:for(let m=s.length-1;m>=0;--m){for(const[y,k]of c[m]){const S=await t.getUniqueValues(e,{columnId:l[y].columnId,...!u[m]&&{axis:Le.cloneDeep(s[m])},filters:[],limit:p});if(S.overflow){u.splice(m,1),c.splice(m,1),s.splice(m,1);continue e}const M=S.values.type;for(const T of S.values.data)if(!(xd(T,M)||T===null)&&(f[m].add(rp(T,M)),f[m].size===p)){u.splice(m,1),c.splice(m,1),s.splice(m,1);continue e}}if(!f[m].size){u.splice(m,1),c.splice(m,1),s.splice(m,1);continue e}}return s.map((m,y)=>{const k=[...f[y]].map(M=>({value:M,text:M.toString()})),S=k[0].value;return{axis:Le.cloneDeep(m),...u[y]&&{column:u[y]},options:k,defaultValue:S}})}function UE(t,e,n,i){const s=t.length,l=[];for(let c=0;c<e[0].data.length;++c){const u=[],p=(i++).toString();for(const m of n)u.push(e[m].data[c]);const f={key:u,id:p};for(let m=0;m<s;++m){const y=t[m].toString(),k=e[m].data[c],S=e[m].type;mg(e[m].absent,c)?f[y]=void 0:xd(k,S)||k===null?f[y]=null:f[y]=rp(k,S)}l.push(f)}return l}const ZE=t=>t.type==="column"&&t.spec.axesSpec.length===1&&t.spec.name==="pl7.app/label";async function $E(t,e,n,i){const s=await t.getSpec(e);let l=s.findIndex(C=>C.type==="column");l===-1&&(l=s.length);const c=[...s.keys()].filter(C=>!Le.find(n,G=>Le.isEqual(G.axis,s[C].id)||Le.isEqual(G.column,s[C].id))).sort((C,G)=>{var P,O;if(s[C].type!==s[G].type)return s[C].type==="axis"?-1:1;const X=(P=s[C].spec.annotations)==null?void 0:P["pl7.app/table/orderPriority"],L=(O=s[G].spec.annotations)==null?void 0:O["pl7.app/table/orderPriority"];return X===void 0?L===void 0?0:1:L===void 0?-1:Number(L)-Number(X)}),u=Le.cloneDeep(c),p=FE(s,c);for(let C=c.length-1;C>=0;--C){const G=c[C];if(!ZE(s[G]))continue;const X=Ua(s[G].spec.axesSpec)[0],L=Le.findIndex(c,P=>Le.isEqual(s[P].id,X));if(L!==-1){c[L]=G;for(const P of p)P.axisIdx===G&&(P.axisIdx=L);c.splice(C,1),u.splice(C,1)}}const f=await t.getShape(e),m=f.rows,y=u.map(C=>OE(C,s[C],i));if(p.length>1&&console.warn("Currently, only one heterogeneous axis is supported in the table, got",p.length," transposition will not be applied."),p.length===1)return RE(p,f,y,await t.getData(e,c),u,c);const k=[...c],S=new Map;for(let C=0;C<l;++C)S.set(C,-1);for(let C=0;C<k.length;++C){const G=k[C];S.has(G)&&S.set(G,C)}for(const[C,G]of S)G===-1&&(S.set(C,k.length),k.push(C));const M=[];for(let C=0;C<l;++C){const G=S.get(C);if(G===void 0||G===-1)throw new Error("assertion exception");M.push(G)}let T;return{rowModelType:"serverSide",columnDefs:y,serverSideDatasource:{getRows:async C=>{try{if(m==0){C.success({rowData:[],rowCount:m}),C.api.showNoRowsOverlay(),C.api.setGridOption("loading",!1);return}if(T&&!Le.isEqual(T.request.sortModel,C.request.sortModel)){T=void 0,C.api.setGridOption("loading",!0),C.success({rowData:[],rowCount:0});return}T=C;let G=0,X=[];if(m>0&&C.request.startRow!==void 0&&C.request.endRow!==void 0&&(G=Math.min(m,C.request.endRow)-C.request.startRow,G>0)){const L=await t.getData(e,k,{offset:C.request.startRow,length:G});X=UE(u,L,M,C.request.startRow)}C.success({rowData:X,rowCount:m}),C.api.autoSizeAllColumns(),C.api.setGridOption("loading",!1)}catch(G){C.api.setGridOption("loading",!0),C.fail(),console.trace(G)}}}}}const WE={class:"ap-ag-data-table-container"},HE={key:0,class:"ap-ag-data-table-sheets"},jE=Ts(r.defineComponent({__name:"PlAgDataTable",props:r.mergeModels({settings:{}},{modelValue:{default:{gridState:{}}},modelModifiers:{}}),emits:r.mergeModels(["onRowDoubleClicked","columnsChanged"],["update:modelValue"]),setup(t,{emit:e}){b.ModuleRegistry.registerModules([Qo.ClientSideRowModelModule,sd.ClipboardModule,od.ServerSideRowModelModule,ad.RangeSelectionModule,Ha,Hd]);const n=r.useModel(t,"modelValue"),i=t,{settings:s}=r.toRefs(i),l=e;r.watch(()=>s.value,async(L,P)=>{if(L.sourceType!=="pframe"||!L.pFrame||!L.join||P&&P.sourceType==="pframe"&&Le.isEqual(L.pFrame,P.pFrame)&&Le.isEqual(L.join,P.join))return;const O=window.platforma;if(!O)throw Error("platforma not set");const z=O.pFrameDriver;if(!z)throw Error("platforma.pFrameDriver not set");const N=await GE(z,L.pFrame,L.join),E=n.value;E.pTableParams||(E.pTableParams={sorting:[],filters:[]}),E.pTableParams.join=N,n.value=E});const c=op(()=>s.value.sourceType,async L=>{var O;const P=s.value.sourceType;switch(P){case"pframe":{const z=window.platforma;if(!z)throw Error("platforma not set");const N=z.pFrameDriver;if(!N)throw Error("platforma.pFrameDriver not set");if(!s.value.pFrame)return[];const E=s.value.pFrame,V=(O=n.value.pTableParams)==null?void 0:O.join;return V?await zE(N,E,s.value.sheetAxes,V):[]}case"ptable":return s.value.sheets??[];case"xsv":return[];default:throw Error(`unsupported source type: ${P}`)}});function u(L){if(!(s.value.sourceType!=="ptable"&&s.value.sourceType!=="pframe"))return(L==null?void 0:L.sortModel.map(P=>{const{spec:O,...z}=tp(P.colId);return{column:z,ascending:P.sort==="asc",naAndAbsentAreLeastValues:!0}}))??[]}const p=r.computed({get:()=>{const L=n.value;return{columnOrder:L.gridState.columnOrder,sort:L.gridState.sort,columnVisibility:L.gridState.columnVisibility}},set:L=>{const P=n.value,O=S.value.rowModelType==="clientSide"?void 0:u(L.sort);P.gridState={...P.gridState,...L},(s.value.sourceType==="ptable"||s.value.sourceType==="pframe")&&(P.pTableParams||(P.pTableParams={sorting:[],filters:[]}),P.pTableParams.sorting=O),n.value=P}}),f=L=>ti(L);function m(L){var P;if(!(s.value.sourceType!=="ptable"&&s.value.sourceType!=="pframe"))return((P=c.value)==null?void 0:P.map(O=>({type:"bySingleColumn",column:O.column?{type:"column",id:O.column}:{type:"axis",id:O.axis},predicate:{operator:"Equal",reference:L[f(O.axis)]}})))??[]}const y=r.computed({get:()=>n.value.gridState.sheets??{},set:L=>{const P=m(L),O=n.value;O.gridState.sheets=L,(s.value.sourceType==="ptable"||s.value.sourceType==="pframe")&&(O.pTableParams||(O.pTableParams={sorting:[],filters:[]}),O.pTableParams.filters=P),n.value=O}});r.watch(()=>[s.value,c.value],(L,P)=>{const[O,z]=L;if(!z)return;if(P){const[E,V]=P;if((O.sourceType==="ptable"||O.sourceType==="pframe")&&O.sourceType===(E==null?void 0:E.sourceType)&&Le.isEqual(z,V))return}if(O.sourceType!=="ptable"&&O.sourceType!=="pframe"){y.value={};return}const N=y.value;for(const E of z){const V=f(E.axis);N[V]||(N[V]=E.defaultValue??E.options[0].value)}y.value=N},{immediate:!0});const k=r.shallowRef(),S=r.ref({animateRows:!1,suppressColumnMoveAnimation:!0,cellSelection:!0,initialState:p.value,autoSizeStrategy:{type:"fitCellContents"},onRowDataUpdated:L=>{L.api.autoSizeAllColumns()},onRowDoubleClicked:L=>{L.data&&l("onRowDoubleClicked",L.data.key)},defaultColDef:{suppressHeaderMenuButton:!0},maintainColumnOrder:!0,localeText:{loadingError:"..."},rowModelType:"clientSide",maxBlocksInCache:1e3,cacheBlockSize:100,blockLoadDebounceMillis:500,serverSideSortAllLevels:!0,suppressServerSideFullWidthLoadingRow:!0,getRowId:L=>L.data.id,loading:!0,loadingOverlayComponentParams:{notReady:!0},loadingOverlayComponent:Xu,noRowsOverlayComponent:Qu,sideBar:{toolPanels:[{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",toolPanelParams:{suppressRowGroups:!0,suppressValues:!0,suppressPivots:!0,suppressPivotMode:!0,suppressColumnFilter:!0,suppressColumnSelectAll:!0,suppressColumnExpandAll:!0}}],defaultToolPanel:"columns"}}),M=L=>{const P=L.api;k.value=new Proxy(P,{get(O,z,N){switch(z){case"setGridOption":return(E,V)=>{const W=S.value;W[E]=V,S.value=W,P.updateGridOptions(W)};case"updateGridOptions":return E=>{S.value={...S.value,...E},P.updateGridOptions(E)};default:return Reflect.get(O,z,N)}}})},T=L=>({columnOrder:L.columnOrder,sort:L.sort,columnVisibility:L.columnVisibility??(L.columnOrder?{hiddenColIds:[]}:void 0)}),R=L=>{S.value.initialState=p.value=T(L.state),L.api.autoSizeAllColumns()},C=()=>{S.value.initialState=p.value=T(k.value.getState()),k.value=void 0},G=r.ref(0);r.watch(()=>[k.value,p.value],(L,P)=>{if(Le.isEqual(L,P))return;const[O,z]=L;if(!O)return;const N=T(O.getState());Le.isEqual(z,N)||(S.value.initialState=z,++G.value)}),r.watch(()=>S.value,(L,P)=>{var O;if(P&&(L.rowModelType!=P.rowModelType&&++G.value,!Le.isEqual(L.columnDefs,P.columnDefs)&&L.columnDefs)){const z=V=>!("children"in V),N=(O=L.columnDefs)==null?void 0:O.filter(z),E=N==null?void 0:N.map(V=>V.colId).filter(V=>V!==void 0).map(V=>tp(V));l("columnsChanged",E??[])}});const X=(L,P)=>{var z;const O=y.value;O[L]!==P&&(O[L]=P,y.value=O,(z=k.value)==null||z.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1}}))};return r.watch(()=>[k.value,s.value,c.value],async(L,P)=>{var W,q;if(Le.isEqual(L,P))return;const[O,z,N]=L;if(!O)return;const E=window.platforma;if(!E)throw Error("platforma not set");const V=z.sourceType;switch(V){case"pframe":case"ptable":{const $=E.pFrameDriver;if(!$)throw Error("platforma.pFrameDriver not set");const A=z.pTable;if(!A||!N)return O.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const Z=(q=(W=p.value)==null?void 0:W.columnVisibility)==null?void 0:q.hiddenColIds,J=await $E($,A,N,Z);return O.updateGridOptions({loading:J.rowModelType!=="clientSide",loadingOverlayComponentParams:{notReady:!1},...J})}case"xsv":{const $=E.blobDriver;if(!$)throw Error("platforma.blobDriver not set");const A=z.xsvFile;if(!(A!=null&&A.ok)||!A.value)return O.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const Z=await PE($,A.value);return O.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1},...Z})}default:throw Error(`unsupported source type: ${V}`)}}),(L,P)=>(r.openBlock(),r.createElementBlock("div",WE,[r.createVNode(r.Transition,{name:"ap-ag-data-table-sheets-transition"},{default:r.withCtx(()=>[r.unref(c).value&&r.unref(c).value.length>0?(r.openBlock(),r.createElementBlock("div",HE,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).value,(O,z)=>(r.openBlock(),r.createBlock(r.unref(Bu),{key:z,"model-value":y.value[f(O.axis)],options:O.options,"onUpdate:modelValue":N=>X(f(O.axis),N)},null,8,["model-value","options","onUpdate:modelValue"]))),128))])):r.createCommentVNode("",!0)]),_:1}),(r.openBlock(),r.createBlock(r.unref(em.AgGridVue),{key:G.value,theme:r.unref(qd),class:"ap-ag-data-table-grid","grid-options":S.value,onGridReady:M,onStateUpdated:R,onGridPreDestroyed:C},null,8,["theme","grid-options"]))]))}}),[["__scopeId","data-v-278d42fe"]]),qE={key:0,class:"d-flex gap-10 flex-column"},KE={key:0},YE=Ts(r.defineComponent({__name:"PlTableFilters",props:r.mergeModels({columns:{},restrictions:{},defaults:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=r.useModel(t,"modelValue"),n=t,{columns:i,restrictions:s,defaults:l}=r.toRefs(n),c=E=>ti(E.id),u=r.computed(()=>i.value.filter(E=>{const V=E.type;switch(V){case"axis":return E.spec.type!=="Bytes";case"column":return E.spec.valueType!=="Bytes";default:throw Error(`unsupported data type: ${V}`)}}).map(E=>({column:E,id:c(E)}))),p=r.computed(()=>{const E=s.value??[],V={};for(const{column:W,id:q}of u.value){const $=Le.find(E,A=>Le.isEqual(A.column.id,W.id));$!==void 0&&(V[q]=$.allowedFilterTypes)}return V}),f=r.computed(()=>{const E=l.value??[],V={};for(const{column:W,id:q}of u.value){const $=Le.find(E,A=>Le.isEqual(A.column.id,W.id));$!==void 0&&(V[q]=$.default)}return V}),m=E=>E!==void 0?E:f.value,y=r.reactive({state:m(e.value.state)});r.watch(()=>e.value,E=>{Le.isEqual(y.state,E.state)||(y.state=m(E.state))}),r.watch(()=>u.value,E=>{if(y.state!==void 0&&E.length===0)return;const V=y.state??{},W={};for(const{id:q}of E)V[q]!==void 0&&(W[q]=V[q]);y.state=W},{immediate:!0});const k=E=>{switch(E){case"isNotNA":return"Is not NA";case"isNA":return"Is NA";case"number_equals":case"string_equals":return"Equals";case"number_notEquals":case"string_notEquals":return"Not equals";case"number_greaterThan":return"Greater than";case"number_greaterThanOrEqualTo":return"Greater than or equal to";case"number_lessThan":return"Less than";case"number_lessThanOrEqualTo":return"Less than or equal to";case"number_between":return"Between";case"string_contains":return"Contains";case"string_doesNotContain":return"Does not contain";case"string_matches":return"Matches";case"string_doesNotMatch":return"Does not match";case"string_containsFuzzyMatch":return"Contains fuzzy match";default:throw Error(`unsupported filter type: ${E}`)}},S=["isNotNA","isNA","number_equals","number_notEquals","number_greaterThan","number_greaterThanOrEqualTo","number_lessThan","number_lessThanOrEqualTo","number_between"],M=["isNotNA","isNA","string_equals","string_notEquals","string_contains","string_doesNotContain","string_matches","string_doesNotMatch","string_containsFuzzyMatch"],T=r.computed(()=>{const E=p.value,V={};for(const{column:W,id:q}of u.value){let A=(W.type==="column"?W.spec.valueType:W.spec.type)==="String"?M:S;const Z=E[q];Z!==void 0&&(A=A.filter(J=>Z.includes(J))),V[q]=A.map(J=>({value:J,text:k(J)}))}return V}),R=r.computed(()=>Le.some(Object.values(T.value),E=>E.length>0)),C=E=>{const V=E.type;switch(V){case"isNotNA":case"isNA":return;case"number_equals":case"number_notEquals":case"number_greaterThan":case"number_greaterThanOrEqualTo":case"number_lessThan":case"number_lessThanOrEqualTo":return E.reference;case"number_between":return E.lowerBound;case"string_equals":case"string_notEquals":case"string_contains":case"string_doesNotContain":case"string_matches":case"string_doesNotMatch":case"string_containsFuzzyMatch":return E.reference;default:throw Error(`unsupported filter type: ${V}`)}},G=(E,V)=>{switch(E){case"isNotNA":case"isNA":return{type:E};case"number_equals":case"number_notEquals":case"number_greaterThan":case"number_greaterThanOrEqualTo":case"number_lessThan":case"number_lessThanOrEqualTo":return{type:E,reference:typeof V=="number"?V:0};case"number_between":return{type:E,lowerBound:typeof V=="number"?V:0,includeLowerBound:!0,upperBound:100,includeUpperBound:!1};case"string_equals":case"string_notEquals":case"string_contains":case"string_doesNotContain":case"string_matches":case"string_doesNotMatch":return{type:E,reference:typeof V=="string"?V:""};case"string_containsFuzzyMatch":return{type:E,reference:typeof V=="string"?V:"",maxEdits:2,substitutionsOnly:!1,wildcard:void 0};default:throw Error(`unsupported filter type: ${E}`)}},X=(E,V)=>{const W=y.state[E];y.state[E]=G(V,C(W))},L=(E,V)=>{V?y.state[E]=f.value[E]??G(T.value[E][0].value):delete y.state[E]},P=E=>{const V=Le.uniq(E);return V.sort(),V.map(W=>({value:W,text:W}))},O=E=>{const V=Number(E);if(!Number.isFinite(V))throw Error("Model value is not a number.");return V},z=E=>{const V=E.type;switch(V){case"isNotNA":return{operator:"Not",operand:{operator:"IsNA"}};case"isNA":return{operator:"IsNA"};case"number_equals":case"string_equals":return{operator:"Equal",reference:E.reference};case"number_notEquals":case"string_notEquals":return{operator:"Not",operand:{operator:"Equal",reference:E.reference}};case"number_greaterThan":return{operator:"Greater",reference:E.reference};case"number_greaterThanOrEqualTo":return{operator:"GreaterOrEqual",reference:E.reference};case"number_lessThan":return{operator:"Less",reference:E.reference};case"number_lessThanOrEqualTo":return{operator:"LessOrEqual",reference:E.reference};case"number_between":return{operator:"And",operands:[{operator:E.includeLowerBound?"GreaterOrEqual":"Greater",reference:E.lowerBound},{operator:E.includeUpperBound?"LessOrEqual":"Less",reference:E.upperBound}]};case"string_contains":return{operator:"StringContains",substring:E.reference};case"string_doesNotContain":return{operator:"Not",operand:{operator:"StringContains",substring:E.reference}};case"string_matches":return{operator:"Matches",regex:E.reference};case"string_doesNotMatch":return{operator:"Not",operand:{operator:"Matches",regex:E.reference}};case"string_containsFuzzyMatch":return{operator:"StringContainsFuzzy",reference:E.reference,maxEdits:E.maxEdits,substitutionsOnly:E.substitutionsOnly,wildcard:E.wildcard};default:throw Error(`unsupported filter type: ${V}`)}},N=E=>u.value.map(({column:V,id:W})=>{if(!(W in E))return;const q=z(E[W]),{spec:$,...A}=V;return{type:"bySingleColumn",column:A,predicate:q}}).filter(V=>V!==void 0);return r.watch(()=>y,E=>{Le.isEqual(E.state,e.value.state)||(e.value={state:Le.cloneDeep(E.state),filters:N(E.state)})},{immediate:!0,deep:!0}),(E,V)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,({column:W,id:q},$)=>{var A,Z,J,pe,we,Ct,Tt,ht,vr,Vn,_r,Un,Wr,Ps;return r.openBlock(),r.createElementBlock("div",{key:q},[T.value[q].length>0?(r.openBlock(),r.createElementBlock("form",qE,[r.createVNode(r.unref(Au),{"model-value":!!y.state[q],"onUpdate:modelValue":Ge=>L(q,Ge)},{default:r.withCtx(()=>{var Ge,Cr;return[r.createTextVNode(r.toDisplayString(((Cr=(Ge=W.spec.annotations)==null?void 0:Ge["pl7.app/label"])==null?void 0:Cr.trim())??"Unlabeled "+W.type+" "+$.toString()),1)]}),_:2},1032,["model-value","onUpdate:modelValue"]),r.createElementVNode("div",{class:r.normalizeClass(["controls d-flex gap-10 flex-column",{open:!!y.state[q]}])},[y.state[q]?(r.openBlock(),r.createBlock(r.unref(uo),{key:0,"model-value":y.state[q].type,options:T.value[q],label:"Predicate","onUpdate:modelValue":Ge=>X(q,Ge)},null,8,["model-value","options","onUpdate:modelValue"])):r.createCommentVNode("",!0),((A=y.state[q])==null?void 0:A.type)==="number_equals"||((Z=y.state[q])==null?void 0:Z.type)==="number_notEquals"||((J=y.state[q])==null?void 0:J.type)==="number_lessThan"||((pe=y.state[q])==null?void 0:pe.type)==="number_lessThanOrEqualTo"||((we=y.state[q])==null?void 0:we.type)==="number_greaterThan"||((Ct=y.state[q])==null?void 0:Ct.type)==="number_greaterThanOrEqualTo"?(r.openBlock(),r.createBlock(r.unref(Ir),{key:1,modelValue:y.state[q].reference,"onUpdate:modelValue":Ge=>y.state[q].reference=Ge,parse:O,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"])):r.createCommentVNode("",!0),((Tt=y.state[q])==null?void 0:Tt.type)==="number_between"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[r.createVNode(r.unref(Ir),{modelValue:y.state[q].lowerBound,"onUpdate:modelValue":Ge=>y.state[q].lowerBound=Ge,parse:O,label:"Lower bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[q].includeLowerBound,"onUpdate:modelValue":Ge=>y.state[q].includeLowerBound=Ge,label:"Include lower bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(Ir),{modelValue:y.state[q].upperBound,"onUpdate:modelValue":Ge=>y.state[q].upperBound=Ge,parse:O,label:"Upper bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[q].includeUpperBound,"onUpdate:modelValue":Ge=>y.state[q].includeUpperBound=Ge,label:"Include upper bound"},null,8,["modelValue","onUpdate:modelValue"])],64)):r.createCommentVNode("",!0),((ht=y.state[q])==null?void 0:ht.type)==="string_equals"||((vr=y.state[q])==null?void 0:vr.type)==="string_notEquals"||((Vn=y.state[q])==null?void 0:Vn.type)==="string_contains"||((_r=y.state[q])==null?void 0:_r.type)==="string_doesNotContain"||((Un=y.state[q])==null?void 0:Un.type)==="string_matches"||((Wr=y.state[q])==null?void 0:Wr.type)==="string_doesNotMatch"?(r.openBlock(),r.createBlock(r.unref(Ir),{key:3,modelValue:y.state[q].reference,"onUpdate:modelValue":Ge=>y.state[q].reference=Ge,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"])):r.createCommentVNode("",!0),((Ps=y.state[q])==null?void 0:Ps.type)==="string_containsFuzzyMatch"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:4},[r.createVNode(r.unref(Ir),{modelValue:y.state[q].reference,"onUpdate:modelValue":Ge=>y.state[q].reference=Ge,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(Ku),{modelValue:y.state[q].maxEdits,"onUpdate:modelValue":Ge=>y.state[q].maxEdits=Ge,max:5,breakpoints:"",label:"Maximum nuber of substitutions and indels"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[q].substitutionsOnly,"onUpdate:modelValue":Ge=>y.state[q].substitutionsOnly=Ge,label:"Substitutions only"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(uo),{modelValue:y.state[q].wildcard,"onUpdate:modelValue":Ge=>y.state[q].wildcard=Ge,options:P(y.state[q].reference),clearable:"",label:"Wildcard symbol"},null,8,["modelValue","onUpdate:modelValue","options"])],64)):r.createCommentVNode("",!0)],2)])):r.createCommentVNode("",!0)])}),128)),R.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",KE,"No filters applicable"))],64))}}),[["__scopeId","data-v-b30bf5ef"]]),JE={key:1,class:"alert-error"},XE={key:2},QE=r.defineComponent({__name:"ValueOrErrorsComponent",props:{valueOrError:{}},setup(t){const e=t,n=r.computed(()=>e.valueOrError&&e.valueOrError.ok?e.valueOrError.value:void 0),i=r.computed(()=>e.valueOrError&&!e.valueOrError.ok?e.valueOrError.errors:void 0),s=r.computed(()=>n.value===void 0&&i.value===void 0);return(l,c)=>(r.openBlock(),r.createElementBlock("div",null,[n.value!==void 0?r.renderSlot(l.$slots,"default",r.normalizeProps(r.mergeProps({key:0},{value:n.value}))):r.createCommentVNode("",!0),i.value?(r.openBlock(),r.createElementBlock("div",JE,r.toDisplayString(i.value),1)):r.createCommentVNode("",!0),s.value?(r.openBlock(),r.createElementBlock("div",XE,"Unresolved")):r.createCommentVNode("",!0)]))}}),eT={style:{height:"100%"}},tT=r.defineComponent({__name:"PlAgCellFile",props:{params:{}},setup(t){const e=t,n=r.computed(()=>e.params.extensions),i=r.computed(()=>e.params.value);function s(c){e.params.setValue(c)}const l=r.computed(()=>e.params.resolveProgress?e.params.resolveProgress(i.value):void 0);return(c,u)=>(r.openBlock(),r.createElementBlock("div",eT,[r.createVNode(r.unref(Hu),{"show-filename-only":"",clearable:"","cell-style":"","file-dialog-title":"Select any file",placeholder:`Choose file ${n.value?n.value[0]:""}`,extensions:n.value,"model-value":i.value,progress:l.value,"onUpdate:modelValue":s},null,8,["placeholder","extensions","model-value","progress"])]))}}),As=new Map;function nT(t,e){const n=r.getCurrentScope()??r.effectScope(),i=n.run(()=>(r.onScopeDispose(()=>{As.delete(t)}),r.reactive(e())));return i[Symbol.dispose]=()=>{n.stop()},i}function rT(t){const e=Symbol();return()=>(As.has(e)||As.set(e,nT(e,t)),As.get(e))}function iT(t){return r.computed(()=>{try{return cd(t())}catch(e){return{errors:[String(e)],value:void 0}}})}function op(t,e,n){const i=r.ref(0),s=r.reactive({loading:r.computed(()=>i.value>0),loadingRef:i,value:void 0,error:void 0}),l=rm(e);return r.watch(t,async c=>{s.error=void 0,i.value++,l(c).then(u=>{u.ok&&(s.value=u.value)}).catch(u=>{s.value=void 0,s.error=u}).finally(()=>{i.value--})},Object.assign({immediate:!0,deep:!0},n??{})),s}const _i=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,sp=new Set,Bl=typeof process=="object"&&process?process:{},ap=(t,e,n,i)=>{typeof Bl.emitWarning=="function"?Bl.emitWarning(t,e,n,i):console.error(`[${n}] ${e}: ${t}`)};let Ns=globalThis.AbortController,lp=globalThis.AbortSignal;if(typeof Ns>"u"){lp=class{constructor(){Ue(this,"onabort");Ue(this,"_onabort",[]);Ue(this,"reason");Ue(this,"aborted",!1)}addEventListener(i,s){this._onabort.push(s)}},Ns=class{constructor(){Ue(this,"signal",new lp);e()}abort(i){var s,l;if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(const c of this.signal._onabort)c(i);(l=(s=this.signal).onabort)==null||l.call(s,i)}}};let t=((dp=Bl.env)==null?void 0:dp.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{t&&(t=!1,ap("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}const oT=t=>!sp.has(t),gr=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),cp=t=>gr(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Vs:null:null;class Vs extends Array{constructor(e){super(e),this.fill(0)}}const zr=class zr{constructor(e,n){Ue(this,"heap");Ue(this,"length");if(!w(zr,Ci))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}static create(e){const n=cp(e);if(!n)return[];fe(zr,Ci,!0);const i=new zr(e,n);return fe(zr,Ci,!1),i}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};Ci=new WeakMap,Oe(zr,Ci,!1);let Al=zr;const Pl=class Pl{constructor(e){Oe(this,te);Oe(this,dn);Oe(this,Lt);Oe(this,un);Oe(this,pn);Oe(this,wi);Oe(this,bi);Ue(this,"ttl");Ue(this,"ttlResolution");Ue(this,"ttlAutopurge");Ue(this,"updateAgeOnGet");Ue(this,"updateAgeOnHas");Ue(this,"allowStale");Ue(this,"noDisposeOnSet");Ue(this,"noUpdateTTL");Ue(this,"maxEntrySize");Ue(this,"sizeCalculation");Ue(this,"noDeleteOnFetchRejection");Ue(this,"noDeleteOnStaleGet");Ue(this,"allowStaleOnFetchAbort");Ue(this,"allowStaleOnFetchRejection");Ue(this,"ignoreFetchAbort");Oe(this,st);Oe(this,hn);Oe(this,it);Oe(this,je);Oe(this,be);Oe(this,St);Oe(this,Gt);Oe(this,_t);Oe(this,dt);Oe(this,fn);Oe(this,ut);Oe(this,mn);Oe(this,gn);Oe(this,zt);Oe(this,yn);Oe(this,yr);Oe(this,Et);Oe(this,Ur,()=>{});Oe(this,zn,()=>{});Oe(this,No,()=>{});Oe(this,Ut,()=>!1);Oe(this,Zr,e=>{});Oe(this,xi,(e,n,i)=>{});Oe(this,Vo,(e,n,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Ue(this,up,"LRUCache");const{max:n=0,ttl:i,ttlResolution:s=1,ttlAutopurge:l,updateAgeOnGet:c,updateAgeOnHas:u,allowStale:p,dispose:f,disposeAfter:m,noDisposeOnSet:y,noUpdateTTL:k,maxSize:S=0,maxEntrySize:M=0,sizeCalculation:T,fetchMethod:R,memoMethod:C,noDeleteOnFetchRejection:G,noDeleteOnStaleGet:X,allowStaleOnFetchRejection:L,allowStaleOnFetchAbort:P,ignoreFetchAbort:O}=e;if(n!==0&&!gr(n))throw new TypeError("max option must be a nonnegative integer");const z=n?cp(n):Array;if(!z)throw new Error("invalid max value: "+n);if(fe(this,dn,n),fe(this,Lt,S),this.maxEntrySize=M||w(this,Lt),this.sizeCalculation=T,this.sizeCalculation){if(!w(this,Lt)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(C!==void 0&&typeof C!="function")throw new TypeError("memoMethod must be a function if defined");if(fe(this,bi,C),R!==void 0&&typeof R!="function")throw new TypeError("fetchMethod must be a function if specified");if(fe(this,wi,R),fe(this,yr,!!R),fe(this,it,new Map),fe(this,je,new Array(n).fill(void 0)),fe(this,be,new Array(n).fill(void 0)),fe(this,St,new z(n)),fe(this,Gt,new z(n)),fe(this,_t,0),fe(this,dt,0),fe(this,fn,Al.create(n)),fe(this,st,0),fe(this,hn,0),typeof f=="function"&&fe(this,un,f),typeof m=="function"?(fe(this,pn,m),fe(this,ut,[])):(fe(this,pn,void 0),fe(this,ut,void 0)),fe(this,yn,!!w(this,un)),fe(this,Et,!!w(this,pn)),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!k,this.noDeleteOnFetchRejection=!!G,this.allowStaleOnFetchRejection=!!L,this.allowStaleOnFetchAbort=!!P,this.ignoreFetchAbort=!!O,this.maxEntrySize!==0){if(w(this,Lt)!==0&&!gr(w(this,Lt)))throw new TypeError("maxSize must be a positive integer if specified");if(!gr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");le(this,te,jf).call(this)}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!X,this.updateAgeOnGet=!!c,this.updateAgeOnHas=!!u,this.ttlResolution=gr(s)||s===0?s:1,this.ttlAutopurge=!!l,this.ttl=i||0,this.ttl){if(!gr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");le(this,te,td).call(this)}if(w(this,dn)===0&&this.ttl===0&&w(this,Lt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!w(this,dn)&&!w(this,Lt)){const N="LRU_CACHE_UNBOUNDED";oT(N)&&(sp.add(N),ap("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",N,Pl))}}static unsafeExposeInternals(e){return{starts:w(e,gn),ttls:w(e,zt),sizes:w(e,mn),keyMap:w(e,it),keyList:w(e,je),valList:w(e,be),next:w(e,St),prev:w(e,Gt),get head(){return w(e,_t)},get tail(){return w(e,dt)},free:w(e,fn),isBackgroundFetch:n=>{var i;return le(i=e,te,Ke).call(i,n)},backgroundFetch:(n,i,s,l)=>{var c;return le(c=e,te,Ea).call(c,n,i,s,l)},moveToTail:n=>{var i;return le(i=e,te,Xo).call(i,n)},indexes:n=>{var i;return le(i=e,te,Nr).call(i,n)},rindexes:n=>{var i;return le(i=e,te,Vr).call(i,n)},isStale:n=>{var i;return w(i=e,Ut).call(i,n)}}}get max(){return w(this,dn)}get maxSize(){return w(this,Lt)}get calculatedSize(){return w(this,hn)}get size(){return w(this,st)}get fetchMethod(){return w(this,wi)}get memoMethod(){return w(this,bi)}get dispose(){return w(this,un)}get disposeAfter(){return w(this,pn)}getRemainingTTL(e){return w(this,it).has(e)?1/0:0}*entries(){for(const e of le(this,te,Nr).call(this))w(this,be)[e]!==void 0&&w(this,je)[e]!==void 0&&!le(this,te,Ke).call(this,w(this,be)[e])&&(yield[w(this,je)[e],w(this,be)[e]])}*rentries(){for(const e of le(this,te,Vr).call(this))w(this,be)[e]!==void 0&&w(this,je)[e]!==void 0&&!le(this,te,Ke).call(this,w(this,be)[e])&&(yield[w(this,je)[e],w(this,be)[e]])}*keys(){for(const e of le(this,te,Nr).call(this)){const n=w(this,je)[e];n!==void 0&&!le(this,te,Ke).call(this,w(this,be)[e])&&(yield n)}}*rkeys(){for(const e of le(this,te,Vr).call(this)){const n=w(this,je)[e];n!==void 0&&!le(this,te,Ke).call(this,w(this,be)[e])&&(yield n)}}*values(){for(const e of le(this,te,Nr).call(this))w(this,be)[e]!==void 0&&!le(this,te,Ke).call(this,w(this,be)[e])&&(yield w(this,be)[e])}*rvalues(){for(const e of le(this,te,Vr).call(this))w(this,be)[e]!==void 0&&!le(this,te,Ke).call(this,w(this,be)[e])&&(yield w(this,be)[e])}[(pp=Symbol.iterator,up=Symbol.toStringTag,pp)](){return this.entries()}find(e,n={}){for(const i of le(this,te,Nr).call(this)){const s=w(this,be)[i],l=le(this,te,Ke).call(this,s)?s.__staleWhileFetching:s;if(l!==void 0&&e(l,w(this,je)[i],this))return this.get(w(this,je)[i],n)}}forEach(e,n=this){for(const i of le(this,te,Nr).call(this)){const s=w(this,be)[i],l=le(this,te,Ke).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,w(this,je)[i],this)}}rforEach(e,n=this){for(const i of le(this,te,Vr).call(this)){const s=w(this,be)[i],l=le(this,te,Ke).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,w(this,je)[i],this)}}purgeStale(){let e=!1;for(const n of le(this,te,Vr).call(this,{allowStale:!0}))w(this,Ut).call(this,n)&&(le(this,te,Pr).call(this,w(this,je)[n],"expire"),e=!0);return e}info(e){const n=w(this,it).get(e);if(n===void 0)return;const i=w(this,be)[n],s=le(this,te,Ke).call(this,i)?i.__staleWhileFetching:i;if(s===void 0)return;const l={value:s};if(w(this,zt)&&w(this,gn)){const c=w(this,zt)[n],u=w(this,gn)[n];if(c&&u){const p=c-(_i.now()-u);l.ttl=p,l.start=Date.now()}}return w(this,mn)&&(l.size=w(this,mn)[n]),l}dump(){const e=[];for(const n of le(this,te,Nr).call(this,{allowStale:!0})){const i=w(this,je)[n],s=w(this,be)[n],l=le(this,te,Ke).call(this,s)?s.__staleWhileFetching:s;if(l===void 0||i===void 0)continue;const c={value:l};if(w(this,zt)&&w(this,gn)){c.ttl=w(this,zt)[n];const u=_i.now()-w(this,gn)[n];c.start=Math.floor(Date.now()-u)}w(this,mn)&&(c.size=w(this,mn)[n]),e.unshift([i,c])}return e}load(e){this.clear();for(const[n,i]of e){if(i.start){const s=Date.now()-i.start;i.start=_i.now()-s}this.set(n,i.value,i)}}set(e,n,i={}){var k,S,M,T,R;if(n===void 0)return this.delete(e),this;const{ttl:s=this.ttl,start:l,noDisposeOnSet:c=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:p}=i;let{noUpdateTTL:f=this.noUpdateTTL}=i;const m=w(this,Vo).call(this,e,n,i.size||0,u);if(this.maxEntrySize&&m>this.maxEntrySize)return p&&(p.set="miss",p.maxEntrySizeExceeded=!0),le(this,te,Pr).call(this,e,"set"),this;let y=w(this,st)===0?void 0:w(this,it).get(e);if(y===void 0)y=w(this,st)===0?w(this,dt):w(this,fn).length!==0?w(this,fn).pop():w(this,st)===w(this,dn)?le(this,te,Sa).call(this,!1):w(this,st),w(this,je)[y]=e,w(this,be)[y]=n,w(this,it).set(e,y),w(this,St)[w(this,dt)]=y,w(this,Gt)[y]=w(this,dt),fe(this,dt,y),ka(this,st)._++,w(this,xi).call(this,y,m,p),p&&(p.set="add"),f=!1;else{le(this,te,Xo).call(this,y);const C=w(this,be)[y];if(n!==C){if(w(this,yr)&&le(this,te,Ke).call(this,C)){C.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:G}=C;G!==void 0&&!c&&(w(this,yn)&&((k=w(this,un))==null||k.call(this,G,e,"set")),w(this,Et)&&((S=w(this,ut))==null||S.push([G,e,"set"])))}else c||(w(this,yn)&&((M=w(this,un))==null||M.call(this,C,e,"set")),w(this,Et)&&((T=w(this,ut))==null||T.push([C,e,"set"])));if(w(this,Zr).call(this,y),w(this,xi).call(this,y,m,p),w(this,be)[y]=n,p){p.set="replace";const G=C&&le(this,te,Ke).call(this,C)?C.__staleWhileFetching:C;G!==void 0&&(p.oldValue=G)}}else p&&(p.set="update")}if(s!==0&&!w(this,zt)&&le(this,te,td).call(this),w(this,zt)&&(f||w(this,No).call(this,y,s,l),p&&w(this,zn).call(this,p,y)),!c&&w(this,Et)&&w(this,ut)){const C=w(this,ut);let G;for(;G=C==null?void 0:C.shift();)(R=w(this,pn))==null||R.call(this,...G)}return this}pop(){var e;try{for(;w(this,st);){const n=w(this,be)[w(this,_t)];if(le(this,te,Sa).call(this,!0),le(this,te,Ke).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(w(this,Et)&&w(this,ut)){const n=w(this,ut);let i;for(;i=n==null?void 0:n.shift();)(e=w(this,pn))==null||e.call(this,...i)}}}has(e,n={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=n,l=w(this,it).get(e);if(l!==void 0){const c=w(this,be)[l];if(le(this,te,Ke).call(this,c)&&c.__staleWhileFetching===void 0)return!1;if(w(this,Ut).call(this,l))s&&(s.has="stale",w(this,zn).call(this,s,l));else return i&&w(this,Ur).call(this,l),s&&(s.has="hit",w(this,zn).call(this,s,l)),!0}else s&&(s.has="miss");return!1}peek(e,n={}){const{allowStale:i=this.allowStale}=n,s=w(this,it).get(e);if(s===void 0||!i&&w(this,Ut).call(this,s))return;const l=w(this,be)[s];return le(this,te,Ke).call(this,l)?l.__staleWhileFetching:l}async fetch(e,n={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,ttl:c=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:p=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:m=this.noUpdateTTL,noDeleteOnFetchRejection:y=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:k=this.allowStaleOnFetchRejection,ignoreFetchAbort:S=this.ignoreFetchAbort,allowStaleOnFetchAbort:M=this.allowStaleOnFetchAbort,context:T,forceRefresh:R=!1,status:C,signal:G}=n;if(!w(this,yr))return C&&(C.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:l,status:C});const X={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:l,ttl:c,noDisposeOnSet:u,size:p,sizeCalculation:f,noUpdateTTL:m,noDeleteOnFetchRejection:y,allowStaleOnFetchRejection:k,allowStaleOnFetchAbort:M,ignoreFetchAbort:S,status:C,signal:G};let L=w(this,it).get(e);if(L===void 0){C&&(C.fetch="miss");const P=le(this,te,Ea).call(this,e,L,X,T);return P.__returned=P}else{const P=w(this,be)[L];if(le(this,te,Ke).call(this,P)){const V=i&&P.__staleWhileFetching!==void 0;return C&&(C.fetch="inflight",V&&(C.returnedStale=!0)),V?P.__staleWhileFetching:P.__returned=P}const O=w(this,Ut).call(this,L);if(!R&&!O)return C&&(C.fetch="hit"),le(this,te,Xo).call(this,L),s&&w(this,Ur).call(this,L),C&&w(this,zn).call(this,C,L),P;const z=le(this,te,Ea).call(this,e,L,X,T),E=z.__staleWhileFetching!==void 0&&i;return C&&(C.fetch=O?"stale":"refresh",E&&O&&(C.returnedStale=!0)),E?z.__staleWhileFetching:z.__returned=z}}async forceFetch(e,n={}){const i=await this.fetch(e,n);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,n={}){const i=w(this,bi);if(!i)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:l,...c}=n,u=this.get(e,c);if(!l&&u!==void 0)return u;const p=i(e,u,{options:c,context:s});return this.set(e,p,c),p}get(e,n={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,status:c}=n,u=w(this,it).get(e);if(u!==void 0){const p=w(this,be)[u],f=le(this,te,Ke).call(this,p);return c&&w(this,zn).call(this,c,u),w(this,Ut).call(this,u)?(c&&(c.get="stale"),f?(c&&i&&p.__staleWhileFetching!==void 0&&(c.returnedStale=!0),i?p.__staleWhileFetching:void 0):(l||le(this,te,Pr).call(this,e,"expire"),c&&i&&(c.returnedStale=!0),i?p:void 0)):(c&&(c.get="hit"),f?p.__staleWhileFetching:(le(this,te,Xo).call(this,u),s&&w(this,Ur).call(this,u),p))}else c&&(c.get="miss")}delete(e){return le(this,te,Pr).call(this,e,"delete")}clear(){return le(this,te,id).call(this,"delete")}};dn=new WeakMap,Lt=new WeakMap,un=new WeakMap,pn=new WeakMap,wi=new WeakMap,bi=new WeakMap,st=new WeakMap,hn=new WeakMap,it=new WeakMap,je=new WeakMap,be=new WeakMap,St=new WeakMap,Gt=new WeakMap,_t=new WeakMap,dt=new WeakMap,fn=new WeakMap,ut=new WeakMap,mn=new WeakMap,gn=new WeakMap,zt=new WeakMap,yn=new WeakMap,yr=new WeakMap,Et=new WeakMap,te=new WeakSet,td=function(){const e=new Vs(w(this,dn)),n=new Vs(w(this,dn));fe(this,zt,e),fe(this,gn,n),fe(this,No,(l,c,u=_i.now())=>{if(n[l]=c!==0?u:0,e[l]=c,c!==0&&this.ttlAutopurge){const p=setTimeout(()=>{w(this,Ut).call(this,l)&&le(this,te,Pr).call(this,w(this,je)[l],"expire")},c+1);p.unref&&p.unref()}}),fe(this,Ur,l=>{n[l]=e[l]!==0?_i.now():0}),fe(this,zn,(l,c)=>{if(e[c]){const u=e[c],p=n[c];if(!u||!p)return;l.ttl=u,l.start=p,l.now=i||s();const f=l.now-p;l.remainingTTL=u-f}});let i=0;const s=()=>{const l=_i.now();if(this.ttlResolution>0){i=l;const c=setTimeout(()=>i=0,this.ttlResolution);c.unref&&c.unref()}return l};this.getRemainingTTL=l=>{const c=w(this,it).get(l);if(c===void 0)return 0;const u=e[c],p=n[c];if(!u||!p)return 1/0;const f=(i||s())-p;return u-f},fe(this,Ut,l=>{const c=n[l],u=e[l];return!!u&&!!c&&(i||s())-c>u})},Ur=new WeakMap,zn=new WeakMap,No=new WeakMap,Ut=new WeakMap,jf=function(){const e=new Vs(w(this,dn));fe(this,hn,0),fe(this,mn,e),fe(this,Zr,n=>{fe(this,hn,w(this,hn)-e[n]),e[n]=0}),fe(this,Vo,(n,i,s,l)=>{if(le(this,te,Ke).call(this,i))return 0;if(!gr(s))if(l){if(typeof l!="function")throw new TypeError("sizeCalculation must be a function");if(s=l(i,n),!gr(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s}),fe(this,xi,(n,i,s)=>{if(e[n]=i,w(this,Lt)){const l=w(this,Lt)-e[n];for(;w(this,hn)>l;)le(this,te,Sa).call(this,!0)}fe(this,hn,w(this,hn)+e[n]),s&&(s.entrySize=i,s.totalCalculatedSize=w(this,hn))})},Zr=new WeakMap,xi=new WeakMap,Vo=new WeakMap,Nr=function*({allowStale:e=this.allowStale}={}){if(w(this,st))for(let n=w(this,dt);!(!le(this,te,nd).call(this,n)||((e||!w(this,Ut).call(this,n))&&(yield n),n===w(this,_t)));)n=w(this,Gt)[n]},Vr=function*({allowStale:e=this.allowStale}={}){if(w(this,st))for(let n=w(this,_t);!(!le(this,te,nd).call(this,n)||((e||!w(this,Ut).call(this,n))&&(yield n),n===w(this,dt)));)n=w(this,St)[n]},nd=function(e){return e!==void 0&&w(this,it).get(w(this,je)[e])===e},Sa=function(e){var l,c;const n=w(this,_t),i=w(this,je)[n],s=w(this,be)[n];return w(this,yr)&&le(this,te,Ke).call(this,s)?s.__abortController.abort(new Error("evicted")):(w(this,yn)||w(this,Et))&&(w(this,yn)&&((l=w(this,un))==null||l.call(this,s,i,"evict")),w(this,Et)&&((c=w(this,ut))==null||c.push([s,i,"evict"]))),w(this,Zr).call(this,n),e&&(w(this,je)[n]=void 0,w(this,be)[n]=void 0,w(this,fn).push(n)),w(this,st)===1?(fe(this,_t,fe(this,dt,0)),w(this,fn).length=0):fe(this,_t,w(this,St)[n]),w(this,it).delete(i),ka(this,st)._--,n},Ea=function(e,n,i,s){const l=n===void 0?void 0:w(this,be)[n];if(le(this,te,Ke).call(this,l))return l;const c=new Ns,{signal:u}=i;u==null||u.addEventListener("abort",()=>c.abort(u.reason),{signal:c.signal});const p={signal:c.signal,options:i,context:s},f=(T,R=!1)=>{const{aborted:C}=c.signal,G=i.ignoreFetchAbort&&T!==void 0;if(i.status&&(C&&!R?(i.status.fetchAborted=!0,i.status.fetchError=c.signal.reason,G&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),C&&!G&&!R)return y(c.signal.reason);const X=S;return w(this,be)[n]===S&&(T===void 0?X.__staleWhileFetching?w(this,be)[n]=X.__staleWhileFetching:le(this,te,Pr).call(this,e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,T,p.options))),T},m=T=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=T),y(T)),y=T=>{const{aborted:R}=c.signal,C=R&&i.allowStaleOnFetchAbort,G=C||i.allowStaleOnFetchRejection,X=G||i.noDeleteOnFetchRejection,L=S;if(w(this,be)[n]===S&&(!X||L.__staleWhileFetching===void 0?le(this,te,Pr).call(this,e,"fetch"):C||(w(this,be)[n]=L.__staleWhileFetching)),G)return i.status&&L.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),L.__staleWhileFetching;if(L.__returned===L)throw T},k=(T,R)=>{var G;const C=(G=w(this,wi))==null?void 0:G.call(this,e,l,p);C&&C instanceof Promise&&C.then(X=>T(X===void 0?void 0:X),R),c.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(T(void 0),i.allowStaleOnFetchAbort&&(T=X=>f(X,!0)))})};i.status&&(i.status.fetchDispatched=!0);const S=new Promise(k).then(f,m),M=Object.assign(S,{__abortController:c,__staleWhileFetching:l,__returned:void 0});return n===void 0?(this.set(e,M,{...p.options,status:void 0}),n=w(this,it).get(e)):w(this,be)[n]=M,M},Ke=function(e){if(!w(this,yr))return!1;const n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof Ns},rd=function(e,n){w(this,Gt)[n]=e,w(this,St)[e]=n},Xo=function(e){e!==w(this,dt)&&(e===w(this,_t)?fe(this,_t,w(this,St)[e]):le(this,te,rd).call(this,w(this,Gt)[e],w(this,St)[e]),le(this,te,rd).call(this,w(this,dt),e),fe(this,dt,e))},Pr=function(e,n){var s,l,c,u;let i=!1;if(w(this,st)!==0){const p=w(this,it).get(e);if(p!==void 0)if(i=!0,w(this,st)===1)le(this,te,id).call(this,n);else{w(this,Zr).call(this,p);const f=w(this,be)[p];if(le(this,te,Ke).call(this,f)?f.__abortController.abort(new Error("deleted")):(w(this,yn)||w(this,Et))&&(w(this,yn)&&((s=w(this,un))==null||s.call(this,f,e,n)),w(this,Et)&&((l=w(this,ut))==null||l.push([f,e,n]))),w(this,it).delete(e),w(this,je)[p]=void 0,w(this,be)[p]=void 0,p===w(this,dt))fe(this,dt,w(this,Gt)[p]);else if(p===w(this,_t))fe(this,_t,w(this,St)[p]);else{const m=w(this,Gt)[p];w(this,St)[m]=w(this,St)[p];const y=w(this,St)[p];w(this,Gt)[y]=w(this,Gt)[p]}ka(this,st)._--,w(this,fn).push(p)}}if(w(this,Et)&&((c=w(this,ut))!=null&&c.length)){const p=w(this,ut);let f;for(;f=p==null?void 0:p.shift();)(u=w(this,pn))==null||u.call(this,...f)}return i},id=function(e){var n,i,s;for(const l of le(this,te,Vr).call(this,{allowStale:!0})){const c=w(this,be)[l];if(le(this,te,Ke).call(this,c))c.__abortController.abort(new Error("deleted"));else{const u=w(this,je)[l];w(this,yn)&&((n=w(this,un))==null||n.call(this,c,u,e)),w(this,Et)&&((i=w(this,ut))==null||i.push([c,u,e]))}}if(w(this,it).clear(),w(this,be).fill(void 0),w(this,je).fill(void 0),w(this,zt)&&w(this,gn)&&(w(this,zt).fill(0),w(this,gn).fill(0)),w(this,mn)&&w(this,mn).fill(0),fe(this,_t,0),fe(this,dt,0),w(this,fn).length=0,fe(this,hn,0),fe(this,st,0),w(this,Et)&&w(this,ut)){const l=w(this,ut);let c;for(;c=l==null?void 0:l.shift();)(s=w(this,pn))==null||s.call(this,...c)}};let Nl=Pl;const sT={cacheSize:15e6};class aT{constructor(e){Ue(this,"_str");Ue(this,"_rawJson");Ue(this,"_zodSchema");Ue(this,"_validatedJson");this.bytes=e}get str(){return this._str===void 0&&(this._str=new TextDecoder().decode(this.bytes)),this._str}get rawJson(){return this._rawJson===void 0&&(this._rawJson=JSON.parse(this.str)),this._rawJson}validatedJson(e){return this._zodSchema!==e&&(this._validatedJson=e.parse(this.rawJson),this._zodSchema=e),this._validatedJson}}const $r=class $r{constructor(e){Ue(this,"fileDataCache");Ue(this,"fileDataRefs",new Map);const n={...sT,...e??{}};this.fileDataCache=new Nl({maxSize:n.cacheSize,fetchMethod:async i=>new aT(await vg().blobDriver.getContent(i)),sizeCalculation:i=>i.bytes.length,dispose:(i,s)=>{this.fileDataRefs.delete(s)}})}getDataRef(e){const n=this.fileDataRefs.get(e);if(n!==void 0)return n;const i=r.shallowRef();return this.fileDataRefs.set(e,i),(async()=>{try{const s=await this.fileDataCache.fetch(e);i.value=s}catch(s){console.error(s)}})(),i}getContentBytes(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var i;return(i=n.value)==null?void 0:i.bytes})}getContentString(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var i;return(i=n==null?void 0:n.value)==null?void 0:i.str})}getContentJson(e,n){if(e===void 0)return;const i=this.getDataRef(e);return r.computed(()=>{var s,l;return n===void 0?(s=i==null?void 0:i.value)==null?void 0:s.rawJson:(l=i==null?void 0:i.value)==null?void 0:l.validatedJson(n)})}static getContentBytes(e){return $r.globalInstance.getContentBytes(e)}static getContentString(e){return $r.globalInstance.getContentString(e)}static getContentJson(e,n){return $r.globalInstance.getContentJson(e,n)}};Ue($r,"globalInstance",new $r);let Vl=$r;I.AgGridTheme=qd,I.BlockLayout=TE,I.ContextProvider=pk,I.DataTable=D_,I.DemoData=hE,I.DropdownListItem=di,I.LongText=yl,I.MultiError=Aa,I.PlAgCellFile=tT,I.PlAgDataTable=jE,I.PlAgOverlayLoading=Xu,I.PlAgOverlayNoRows=Qu,I.PlAlert=dC,I.PlBlockPage=Y_,I.PlBtnAccent=BC,I.PlBtnDanger=NC,I.PlBtnGhost=ul,I.PlBtnGroup=XC,I.PlBtnLink=FC,I.PlBtnPrimary=cl,I.PlBtnSecondary=dl,I.PlBtnSplit=xC,I.PlCheckbox=Au,I.PlCheckboxGroup=Xw,I.PlChip=vl,I.PlContainer=X_,I.PlCopyData=qu,I.PlDialogModal=Cl,I.PlDropdown=uo,I.PlDropdownLegacy=Cw,I.PlDropdownLine=Bu,I.PlDropdownMulti=jw,I.PlDropdownRef=K0,I.PlFileDialog=Vu,I.PlFileInput=Hu,I.PlGrid=iC,I.PlIcon16=ms,I.PlIcon24=ku,I.PlLogView=Eb,I.PlMaskIcon16=pi,I.PlMaskIcon24=Ln,I.PlNotificationAlert=ju,I.PlNumberField=Pw,I.PlProgressBar=Sw,I.PlRow=eC,I.PlSlideModal=pb,I.PlSpacer=yu,I.PlTableFilters=YE,I.PlTabs=Fb,I.PlTextArea=A0,I.PlTextField=Ir,I.PlToggleSwitch=gs,I.PlTooltip=Vt,I.ReactiveFileContent=Vl,I.Scrollable=nS,I.Slider=Ku,I.SliderRange=Xk,I.SliderRangeTriple=Gk,I.ThemeSwitcher=Z_,I.UnresolvedError=Ba,I.ValueOrErrorsComponent=QE,I.activateAgGrid=jd,I.animate=uu,I.animateInfinite=O_,I.call=su,I.computedResult=iT,I.createModel=Ra,I.debounce=pu,I.defineApp=lv,I.defineStore=rT,I.delay=au,I.detectOutside=N0,I.ensureError=Pa,I.eventListener=ml,I.formatZodError=Fa,I.getElementScrollPosition=Eu,I.identity=Va,I.isDefined=lm,I.isElementVisible=Su,I.isJsonEqual=Na,I.isZodError=Da,I.listToOptions=L_,I.makeEaseInOut=I_,I.makeEaseOut=du,I.maskIcons16=uE,I.maskIcons24=pE,I.normalizeListOptions=ar,I.notEmpty=il,I.randomInt=cu,I.randomString=M_,I.requestTick=ol,I.scrollIntoView=co,I.showContextMenu=tl,I.throttle=hu,I.timeout=lu,I.unwrapOptionalResult=am,I.unwrapValueOrErrors=ld,I.useClickOutside=fs,I.useDraggable=Ak,I.useEventListener=tt,I.useFormState=Tk,I.useHover=iu,I.useInterval=Ek,I.useLabelNotch=On,I.useLocalStorage=fu,I.useMouse=ru,I.useMouseCapture=sr,I.usePosition=ui,I.useQuery=Bk,I.useResizeObserver=Yu,I.useScroll=xk,I.useSdkPlugin=Xa,I.useSortable=Sk,I.useTheme=gu,I.useWatchFetch=op,I.wrapOptionalResult=cd,I.wrapValueOrErrors=sm,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
89
+ }`;var Ne=Uf(function(){return ze(_,ce+"return "+Y).apply(n,x)});if(Ne.source=Y,Zc(Ne))throw Ne;return Ne}function QD(o){return Ze(o).toLowerCase()}function eF(o){return Ze(o).toUpperCase()}function tF(o,a,d){if(o=Ze(o),o&&(d||a===n))return Yp(o);if(!o||!(a=Wt(a)))return o;var h=Cn(o),g=Cn(a),_=Jp(h,g),x=Xp(h,g)+1;return Br(h,_,x).join("")}function nF(o,a,d){if(o=Ze(o),o&&(d||a===n))return o.slice(0,eh(o)+1);if(!o||!(a=Wt(a)))return o;var h=Cn(o),g=Xp(h,Cn(a))+1;return Br(h,0,g).join("")}function rF(o,a,d){if(o=Ze(o),o&&(d||a===n))return o.replace(Zl,"");if(!o||!(a=Wt(a)))return o;var h=Cn(o),g=Jp(h,Cn(a));return Br(h,g).join("")}function iF(o,a){var d=V,h=W;if(Qe(a)){var g="separator"in a?a.separator:g;d="length"in a?Te(a.length):d,h="omission"in a?Wt(a.omission):h}o=Ze(o);var _=o.length;if(Ti(o)){var x=Cn(o);_=x.length}if(d>=_)return o;var B=d-Bi(h);if(B<1)return h;var F=x?Br(x,0,B).join(""):o.slice(0,B);if(g===n)return F+h;if(x&&(B+=F.length-B),$c(g)){if(o.slice(B).search(g)){var j,K=F;for(g.global||(g=sc(g.source,Ze(vp.exec(g))+"g")),g.lastIndex=0;j=g.exec(K);)var Y=j.index;F=F.slice(0,Y===n?B:Y)}}else if(o.indexOf(Wt(g),B)!=B){var ne=F.lastIndexOf(g);ne>-1&&(F=F.slice(0,ne))}return F+h}function oF(o){return o=Ze(o),o&&gT.test(o)?o.replace(mp,FB):o}var sF=Ri(function(o,a,d){return o+(d?" ":"")+a.toUpperCase()}),jc=Uh("toUpperCase");function zf(o,a,d){return o=Ze(o),a=d?n:a,a===n?AB(o)?IB(o):CB(o):o.match(a)||[]}var Uf=Ve(function(o,a){try{return Zt(o,n,a)}catch(d){return Zc(d)?d:new xe(d)}}),aF=qn(function(o,a){return Yt(a,function(d){d=Fn(d),Hn(o,d,zc(o[d],o))}),o});function lF(o){var a=o==null?0:o.length,d=he();return o=a?Ye(o,function(h){if(typeof h[1]!="function")throw new Jt(c);return[d(h[0]),h[1]]}):[],Ve(function(h){for(var g=-1;++g<a;){var _=o[g];if(Zt(_[0],this,h))return Zt(_[1],this,h)}})}function cF(o){return FA(Qt(o,y))}function qc(o){return function(){return o}}function dF(o,a){return o==null||o!==o?a:o}var uF=$h(),pF=$h(!0);function Mt(o){return o}function Kc(o){return Ch(typeof o=="function"?o:Qt(o,y))}function hF(o){return bh(Qt(o,y))}function fF(o,a){return xh(o,Qt(a,y))}var mF=Ve(function(o,a){return function(d){return Wo(d,o,a)}}),gF=Ve(function(o,a){return function(d){return Wo(o,d,a)}});function Yc(o,a,d){var h=pt(a),g=ia(a,h);d==null&&!(Qe(a)&&(g.length||!h.length))&&(d=a,a=o,o=this,g=ia(a,pt(a)));var _=!(Qe(d)&&"chain"in d)||!!d.chain,x=Yn(o);return Yt(g,function(B){var F=a[B];o[B]=F,x&&(o.prototype[B]=function(){var j=this.__chain__;if(_||j){var K=o(this.__wrapped__),Y=K.__actions__=Dt(this.__actions__);return Y.push({func:F,args:arguments,thisArg:o}),K.__chain__=j,K}return F.apply(o,br([this.value()],arguments))})}),o}function yF(){return ft._===this&&(ft._=ZB),this}function Jc(){}function vF(o){return o=Te(o),Ve(function(a){return kh(a,o)})}var _F=Bc(Ye),CF=Bc(Wp),wF=Bc(Ql);function Zf(o){return Rc(o)?ec(Fn(o)):JA(o)}function bF(o){return function(a){return o==null?n:Jr(o,a)}}var xF=Hh(),kF=Hh(!0);function Xc(){return[]}function Qc(){return!1}function SF(){return{}}function EF(){return""}function TF(){return!0}function BF(o,a){if(o=Te(o),o<1||o>we)return[];var d=ht,h=wt(o,ht);a=he(a),o-=ht;for(var g=rc(h,a);++d<o;)a(d);return g}function AF(o){return ke(o)?Ye(o,Fn):Ht(o)?[o]:Dt(cf(Ze(o)))}function NF(o){var a=++zB;return Ze(o)+a}var VF=da(function(o,a){return o+a},0),PF=Ac("ceil"),DF=da(function(o,a){return o/a},1),FF=Ac("floor");function RF(o){return o&&o.length?ra(o,Mt,fc):n}function MF(o,a){return o&&o.length?ra(o,he(a,2),fc):n}function IF(o){return qp(o,Mt)}function OF(o,a){return qp(o,he(a,2))}function LF(o){return o&&o.length?ra(o,Mt,vc):n}function GF(o,a){return o&&o.length?ra(o,he(a,2),vc):n}var zF=da(function(o,a){return o*a},1),UF=Ac("round"),ZF=da(function(o,a){return o-a},0);function $F(o){return o&&o.length?nc(o,Mt):0}function WF(o,a){return o&&o.length?nc(o,he(a,2)):0}return v.after=hP,v.ary=Cf,v.assign=eD,v.assignIn=Ff,v.assignInWith=xa,v.assignWith=tD,v.at=nD,v.before=wf,v.bind=zc,v.bindAll=aF,v.bindKey=bf,v.castArray=SP,v.chain=yf,v.chunk=FN,v.compact=RN,v.concat=MN,v.cond=lF,v.conforms=cF,v.constant=qc,v.countBy=$V,v.create=rD,v.curry=xf,v.curryRight=kf,v.debounce=Sf,v.defaults=iD,v.defaultsDeep=oD,v.defer=fP,v.delay=mP,v.difference=IN,v.differenceBy=ON,v.differenceWith=LN,v.drop=GN,v.dropRight=zN,v.dropRightWhile=UN,v.dropWhile=ZN,v.fill=$N,v.filter=HV,v.flatMap=KV,v.flatMapDeep=YV,v.flatMapDepth=JV,v.flatten=hf,v.flattenDeep=WN,v.flattenDepth=HN,v.flip=gP,v.flow=uF,v.flowRight=pF,v.fromPairs=jN,v.functions=pD,v.functionsIn=hD,v.groupBy=XV,v.initial=KN,v.intersection=YN,v.intersectionBy=JN,v.intersectionWith=XN,v.invert=mD,v.invertBy=gD,v.invokeMap=eP,v.iteratee=Kc,v.keyBy=tP,v.keys=pt,v.keysIn=Rt,v.map=ya,v.mapKeys=vD,v.mapValues=_D,v.matches=hF,v.matchesProperty=fF,v.memoize=_a,v.merge=CD,v.mergeWith=Rf,v.method=mF,v.methodOf=gF,v.mixin=Yc,v.negate=Ca,v.nthArg=vF,v.omit=wD,v.omitBy=bD,v.once=yP,v.orderBy=nP,v.over=_F,v.overArgs=vP,v.overEvery=CF,v.overSome=wF,v.partial=Uc,v.partialRight=Ef,v.partition=rP,v.pick=xD,v.pickBy=Mf,v.property=Zf,v.propertyOf=bF,v.pull=nV,v.pullAll=mf,v.pullAllBy=rV,v.pullAllWith=iV,v.pullAt=oV,v.range=xF,v.rangeRight=kF,v.rearg=_P,v.reject=sP,v.remove=sV,v.rest=CP,v.reverse=Lc,v.sampleSize=lP,v.set=SD,v.setWith=ED,v.shuffle=cP,v.slice=aV,v.sortBy=pP,v.sortedUniq=fV,v.sortedUniqBy=mV,v.split=KD,v.spread=wP,v.tail=gV,v.take=yV,v.takeRight=vV,v.takeRightWhile=_V,v.takeWhile=CV,v.tap=RV,v.throttle=bP,v.thru=ga,v.toArray=Vf,v.toPairs=If,v.toPairsIn=Of,v.toPath=AF,v.toPlainObject=Df,v.transform=TD,v.unary=xP,v.union=wV,v.unionBy=bV,v.unionWith=xV,v.uniq=kV,v.uniqBy=SV,v.uniqWith=EV,v.unset=BD,v.unzip=Gc,v.unzipWith=gf,v.update=AD,v.updateWith=ND,v.values=Oi,v.valuesIn=VD,v.without=TV,v.words=zf,v.wrap=kP,v.xor=BV,v.xorBy=AV,v.xorWith=NV,v.zip=VV,v.zipObject=PV,v.zipObjectDeep=DV,v.zipWith=FV,v.entries=If,v.entriesIn=Of,v.extend=Ff,v.extendWith=xa,Yc(v,v),v.add=VF,v.attempt=Uf,v.camelCase=RD,v.capitalize=Lf,v.ceil=PF,v.clamp=PD,v.clone=EP,v.cloneDeep=BP,v.cloneDeepWith=AP,v.cloneWith=TP,v.conformsTo=NP,v.deburr=Gf,v.defaultTo=dF,v.divide=DF,v.endsWith=MD,v.eq=bn,v.escape=ID,v.escapeRegExp=OD,v.every=WV,v.find=jV,v.findIndex=uf,v.findKey=sD,v.findLast=qV,v.findLastIndex=pf,v.findLastKey=aD,v.floor=FF,v.forEach=vf,v.forEachRight=_f,v.forIn=lD,v.forInRight=cD,v.forOwn=dD,v.forOwnRight=uD,v.get=Wc,v.gt=VP,v.gte=PP,v.has=fD,v.hasIn=Hc,v.head=ff,v.identity=Mt,v.includes=QV,v.indexOf=qN,v.inRange=DD,v.invoke=yD,v.isArguments=ei,v.isArray=ke,v.isArrayBuffer=DP,v.isArrayLike=Ft,v.isArrayLikeObject=nt,v.isBoolean=FP,v.isBuffer=Ar,v.isDate=RP,v.isElement=MP,v.isEmpty=IP,v.isEqual=OP,v.isEqualWith=LP,v.isError=Zc,v.isFinite=GP,v.isFunction=Yn,v.isInteger=Tf,v.isLength=wa,v.isMap=Bf,v.isMatch=zP,v.isMatchWith=UP,v.isNaN=ZP,v.isNative=$P,v.isNil=HP,v.isNull=WP,v.isNumber=Af,v.isObject=Qe,v.isObjectLike=et,v.isPlainObject=Jo,v.isRegExp=$c,v.isSafeInteger=jP,v.isSet=Nf,v.isString=ba,v.isSymbol=Ht,v.isTypedArray=Ii,v.isUndefined=qP,v.isWeakMap=KP,v.isWeakSet=YP,v.join=QN,v.kebabCase=LD,v.last=tn,v.lastIndexOf=eV,v.lowerCase=GD,v.lowerFirst=zD,v.lt=JP,v.lte=XP,v.max=RF,v.maxBy=MF,v.mean=IF,v.meanBy=OF,v.min=LF,v.minBy=GF,v.stubArray=Xc,v.stubFalse=Qc,v.stubObject=SF,v.stubString=EF,v.stubTrue=TF,v.multiply=zF,v.nth=tV,v.noConflict=yF,v.noop=Jc,v.now=va,v.pad=UD,v.padEnd=ZD,v.padStart=$D,v.parseInt=WD,v.random=FD,v.reduce=iP,v.reduceRight=oP,v.repeat=HD,v.replace=jD,v.result=kD,v.round=UF,v.runInContext=D,v.sample=aP,v.size=dP,v.snakeCase=qD,v.some=uP,v.sortedIndex=lV,v.sortedIndexBy=cV,v.sortedIndexOf=dV,v.sortedLastIndex=uV,v.sortedLastIndexBy=pV,v.sortedLastIndexOf=hV,v.startCase=YD,v.startsWith=JD,v.subtract=ZF,v.sum=$F,v.sumBy=WF,v.template=XD,v.times=BF,v.toFinite=Jn,v.toInteger=Te,v.toLength=Pf,v.toLower=QD,v.toNumber=nn,v.toSafeInteger=QP,v.toString=Ze,v.toUpper=eF,v.trim=tF,v.trimEnd=nF,v.trimStart=rF,v.truncate=iF,v.unescape=oF,v.uniqueId=NF,v.upperCase=sF,v.upperFirst=jc,v.each=vf,v.eachRight=_f,v.first=ff,Yc(v,function(){var o={};return Pn(v,function(a,d){$e.call(v.prototype,d)||(o[d]=a)}),o}(),{chain:!1}),v.VERSION=i,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){v[o].placeholder=v}),Yt(["drop","take"],function(o,a){De.prototype[o]=function(d){d=d===n?1:lt(Te(d),0);var h=this.__filtered__&&!a?new De(this):this.clone();return h.__filtered__?h.__takeCount__=wt(d,h.__takeCount__):h.__views__.push({size:wt(d,ht),type:o+(h.__dir__<0?"Right":"")}),h},De.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),Yt(["filter","map","takeWhile"],function(o,a){var d=a+1,h=d==A||d==J;De.prototype[o]=function(g){var _=this.clone();return _.__iteratees__.push({iteratee:he(g,3),type:d}),_.__filtered__=_.__filtered__||h,_}}),Yt(["head","last"],function(o,a){var d="take"+(a?"Right":"");De.prototype[o]=function(){return this[d](1).value()[0]}}),Yt(["initial","tail"],function(o,a){var d="drop"+(a?"":"Right");De.prototype[o]=function(){return this.__filtered__?new De(this):this[d](1)}}),De.prototype.compact=function(){return this.filter(Mt)},De.prototype.find=function(o){return this.filter(o).head()},De.prototype.findLast=function(o){return this.reverse().find(o)},De.prototype.invokeMap=Ve(function(o,a){return typeof o=="function"?new De(this):this.map(function(d){return Wo(d,o,a)})}),De.prototype.reject=function(o){return this.filter(Ca(he(o)))},De.prototype.slice=function(o,a){o=Te(o);var d=this;return d.__filtered__&&(o>0||a<0)?new De(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),a!==n&&(a=Te(a),d=a<0?d.dropRight(-a):d.take(a-o)),d)},De.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},De.prototype.toArray=function(){return this.take(ht)},Pn(De.prototype,function(o,a){var d=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),g=v[h?"take"+(a=="last"?"Right":""):a],_=h||/^find/.test(a);g&&(v.prototype[a]=function(){var x=this.__wrapped__,B=h?[1]:arguments,F=x instanceof De,j=B[0],K=F||ke(x),Y=function(Pe){var Fe=g.apply(v,br([Pe],B));return h&&ne?Fe[0]:Fe};K&&d&&typeof j=="function"&&j.length!=1&&(F=K=!1);var ne=this.__chain__,ce=!!this.__actions__.length,me=_&&!ne,Ne=F&&!ce;if(!_&&K){x=Ne?x:new De(this);var ge=o.apply(x,B);return ge.__actions__.push({func:ga,args:[Y],thisArg:n}),new Xt(ge,ne)}return me&&Ne?o.apply(this,B):(ge=this.thru(Y),me?h?ge.value()[0]:ge.value():ge)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(o){var a=Us[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",h=/^(?:pop|shift)$/.test(o);v.prototype[o]=function(){var g=arguments;if(h&&!this.__chain__){var _=this.value();return a.apply(ke(_)?_:[],g)}return this[d](function(x){return a.apply(ke(x)?x:[],g)})}}),Pn(De.prototype,function(o,a){var d=v[a];if(d){var h=d.name+"";$e.call(Pi,h)||(Pi[h]=[]),Pi[h].push({name:a,func:d})}}),Pi[ca(n,C).name]=[{name:"wrapper",func:n}],De.prototype.clone=oA,De.prototype.reverse=sA,De.prototype.value=aA,v.prototype.at=MV,v.prototype.chain=IV,v.prototype.commit=OV,v.prototype.next=LV,v.prototype.plant=zV,v.prototype.reverse=UV,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=ZV,v.prototype.first=v.prototype.head,Oo&&(v.prototype[Oo]=GV),v},Ai=OB();Hr?((Hr.exports=Ai)._=Ai,Kl._=Ai):ft._=Ai}).call(Li)}(Bs,Bs.exports);var Le=Bs.exports;const BE={class:"grid-overlay-container"},Xu=r.defineComponent({__name:"PlAgOverlayLoading",props:{params:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",BE,[e.params.notReady?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n[0]||(n[0]=r.createElementVNode("div",{class:"grid-icon-cat-in-bag"},null,-1)),n[1]||(n[1]=r.createElementVNode("span",{class:"text-subtitle-m"},"Not calculated",-1))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[n[2]||(n[2]=r.createElementVNode("div",{class:"mask-24 mask-loading grid-mask-loading"},null,-1)),n[3]||(n[3]=r.createElementVNode("span",{class:"text-subtitle-m"},"Loading",-1))],64))]))}}),AE={},NE={class:"grid-overlay-container"};function VE(t,e){return r.openBlock(),r.createElementBlock("div",NE,e[0]||(e[0]=[r.createElementVNode("div",{class:"grid-icon-sad-cat"},null,-1),r.createElementVNode("span",{class:"text-subtitle-m"},"Empty",-1)]))}const Qu=Ts(AE,[["render",VE]]);async function PE(t,e){throw Error("not implemented")}function DE(t){return t.axesSpec.filter(e=>{var n;return((n=e.annotations)==null?void 0:n["pl7.app/axisNature"])==="heterogeneous"})}function FE(t,e){const n=[];for(const i of e)if(t[i].type==="column"){const s=DE(t[i].spec);for(const l of s){if(l.type!=="String"){console.warn("heterogeneous axis with string type expected, got",l,"skipping");continue}const c=kd(l),u=t.findIndex(p=>Le.isEqual(p.id,c));if(u===-1)throw console.error("axis not found",i,c,t),Error("axis not found");n.push({columnIdx:i,axisIdx:u})}}return n}const ep=(t,e)=>(t+e).toString();function RE(t,e,n,i,s,l){if(t.length>1)throw Error("hColumns.length > 1 is not supported");const c=t[0];let u=-1,p=-1;for(let y=0;y<l.length;++y)l[y]===c.axisIdx&&(u=y),l[y]===c.columnIdx&&(p=y);const f=(()=>{const k=i[u].data.filter(S=>S!==null);return Array.from(new Set(k))})();f.sort(),p>u?(n.splice(p,1),n.splice(u,1)):(n.splice(u,1),n.splice(p,1));const m=ME(s,i,u,p,f,e.rows);for(let y=0;y<f.length;++y){const k=f[y],S=k+"@"+y;n.push({colId:S,field:ep(i.length,y),headerName:k,valueFormatter:np})}return{rowModelType:"clientSide",columnDefs:n,rowData:m}}function ME(t,e,n,i,s,l){const c=new Map;let u=0;for(let f=0;f<l;f++){const m={};for(let T=0;T<e.length;++T){if(T===n||T===i)continue;const R=t[T].toString();m[R]=e[T].data[f]}let y;const k=ti(Object.values(m))??"";c.has(k)?y=c.get(k):(c.set(k,m),y=m,y.id=u.toString(),u++);const S=s.indexOf(e[n].data[f]);if(S===-1)throw Error("index not found");const M=ep(e.length,S);y[M]=e[i].data[f]}return Array.from(c.values())}function IE(t){return ti(t)}function tp(t){return JSON.parse(t)}const np=t=>t?t.value===void 0?"NULL":t.value===null?"NA":t.value.toString():"ERROR";function OE(t,e,n){var s,l,c;const i=IE(e);return{colId:i,field:t.toString(),headerName:((l=(s=e.spec.annotations)==null?void 0:s["pl7.app/label"])==null?void 0:l.trim())??"Unlabeled "+e.type+" "+t.toString(),lockPosition:e.type==="axis",hide:(n==null?void 0:n.includes(i))??((c=e.spec.annotations)==null?void 0:c["pl7.app/table/visibility"])==="optional",valueFormatter:np,cellDataType:(u=>{switch(u){case"Int":case"Long":case"Float":case"Double":return"number";case"String":case"Bytes":return"text";default:throw Error(`unsupported data type: ${u}`)}})(e.type==="axis"?e.spec.type:e.spec.valueType)}}function rp(t,e){switch(e){case"Int":return t;case"Long":return typeof t=="bigint"?Number(t):t;case"Float":return t;case"Double":return t;case"String":return t;case"Bytes":return Buffer.from(t).toString("hex");default:throw Error(`unsupported data type: ${e}`)}}function ip(t){const e=[];return cs(t,n=>(e.push(n),n)),e}async function LE(t,e,n){return n.length?(await t.findColumns(e,{columnFilter:{name:["pl7.app/label"]},compatibleWith:Le.uniqWith(n.map(s=>Ua(s.spec.axesSpec).map(Le.cloneDeep)).flat(),Le.isEqual),strictlyCompatible:!0})).hits.filter(s=>s.spec.axesSpec.length===1):[]}async function GE(t,e,n){const i=ip(n),l=(await LE(t,e,i)).filter(c=>!Le.find(i,u=>c.columnId===u.columnId));return l.length===0?n:{type:"outer",primary:n,secondary:l.map(c=>({type:"column",column:c}))}}async function zE(t,e,n,i){const s=n.filter(m=>m.type!=="Bytes"),l=ip(i),c=s.map(m=>[]),u=s.map(m=>null);for(let m=0;m<l.length;++m){const y=Ua(l[m].spec.axesSpec);for(let k=0;k<y.length;++k){const S=Le.findIndex(s,M=>Le.isEqual(M,y[k]));S===-1||u[S]||(y.length===1&&l[m].spec.name==="pl7.app/label"?(c[S]=[[m,k]],u[S]=l[m].columnId):c[S].push([m,k]))}}for(let m=s.length-1;m>=0;--m)c[m].length||(u.splice(m,1),c.splice(m,1),s.splice(m,1));const p=100,f=s.map(m=>new Set);e:for(let m=s.length-1;m>=0;--m){for(const[y,k]of c[m]){const S=await t.getUniqueValues(e,{columnId:l[y].columnId,...!u[m]&&{axis:Le.cloneDeep(s[m])},filters:[],limit:p});if(S.overflow){u.splice(m,1),c.splice(m,1),s.splice(m,1);continue e}const M=S.values.type;for(const T of S.values.data)if(!(xd(T,M)||T===null)&&(f[m].add(rp(T,M)),f[m].size===p)){u.splice(m,1),c.splice(m,1),s.splice(m,1);continue e}}if(!f[m].size){u.splice(m,1),c.splice(m,1),s.splice(m,1);continue e}}return s.map((m,y)=>{const k=[...f[y]].map(M=>({value:M,text:M.toString()})),S=k[0].value;return{axis:Le.cloneDeep(m),...u[y]&&{column:u[y]},options:k,defaultValue:S}})}function UE(t,e,n,i){const s=t.length,l=[];for(let c=0;c<e[0].data.length;++c){const u=[],p=(i++).toString();for(const m of n)u.push(e[m].data[c]);const f={key:u,id:p};for(let m=0;m<s;++m){const y=t[m].toString(),k=e[m].data[c],S=e[m].type;mg(e[m].absent,c)?f[y]=void 0:xd(k,S)||k===null?f[y]=null:f[y]=rp(k,S)}l.push(f)}return l}const ZE=t=>t.type==="column"&&t.spec.axesSpec.length===1&&t.spec.name==="pl7.app/label";async function $E(t,e,n,i){const s=await t.getSpec(e);let l=s.findIndex(C=>C.type==="column");l===-1&&(l=s.length);const c=[...s.keys()].filter(C=>!Le.find(n,G=>Le.isEqual(G.axis,s[C].id)||Le.isEqual(G.column,s[C].id))).sort((C,G)=>{var P,O;if(s[C].type!==s[G].type)return s[C].type==="axis"?-1:1;const X=(P=s[C].spec.annotations)==null?void 0:P["pl7.app/table/orderPriority"],L=(O=s[G].spec.annotations)==null?void 0:O["pl7.app/table/orderPriority"];return X===void 0?L===void 0?0:1:L===void 0?-1:Number(L)-Number(X)}),u=Le.cloneDeep(c),p=FE(s,c);for(let C=c.length-1;C>=0;--C){const G=c[C];if(!ZE(s[G]))continue;const X=Ua(s[G].spec.axesSpec)[0],L=Le.findIndex(c,P=>Le.isEqual(s[P].id,X));if(L!==-1){c[L]=G;for(const P of p)P.axisIdx===G&&(P.axisIdx=L);c.splice(C,1),u.splice(C,1)}}const f=await t.getShape(e),m=f.rows,y=u.map(C=>OE(C,s[C],i));if(p.length>1&&console.warn("Currently, only one heterogeneous axis is supported in the table, got",p.length," transposition will not be applied."),p.length===1)return RE(p,f,y,await t.getData(e,c),u,c);const k=[...c],S=new Map;for(let C=0;C<l;++C)S.set(C,-1);for(let C=0;C<k.length;++C){const G=k[C];S.has(G)&&S.set(G,C)}for(const[C,G]of S)G===-1&&(S.set(C,k.length),k.push(C));const M=[];for(let C=0;C<l;++C){const G=S.get(C);if(G===void 0||G===-1)throw new Error("assertion exception");M.push(G)}let T;return{rowModelType:"serverSide",columnDefs:y,serverSideDatasource:{getRows:async C=>{try{if(m==0){C.success({rowData:[],rowCount:m}),C.api.setGridOption("loading",!1),C.api.showNoRowsOverlay();return}if(T&&!Le.isEqual(T.request.sortModel,C.request.sortModel)){T=void 0,C.api.setGridOption("loading",!0),C.success({rowData:[],rowCount:0});return}T=C;let G=0,X=[];if(m>0&&C.request.startRow!==void 0&&C.request.endRow!==void 0&&(G=Math.min(m,C.request.endRow)-C.request.startRow,G>0)){const L=await t.getData(e,k,{offset:C.request.startRow,length:G});X=UE(u,L,M,C.request.startRow)}C.success({rowData:X,rowCount:m}),C.api.autoSizeAllColumns(),C.api.setGridOption("loading",!1)}catch(G){C.api.setGridOption("loading",!0),C.fail(),console.trace(G)}}}}}const WE={class:"ap-ag-data-table-container"},HE={key:0,class:"ap-ag-data-table-sheets"},jE=Ts(r.defineComponent({__name:"PlAgDataTable",props:r.mergeModels({settings:{}},{modelValue:{default:{gridState:{}}},modelModifiers:{}}),emits:r.mergeModels(["onRowDoubleClicked","columnsChanged"],["update:modelValue"]),setup(t,{emit:e}){b.ModuleRegistry.registerModules([Qo.ClientSideRowModelModule,sd.ClipboardModule,od.ServerSideRowModelModule,ad.RangeSelectionModule,Ha,Hd]);const n=r.useModel(t,"modelValue"),i=t,{settings:s}=r.toRefs(i),l=e;r.watch(()=>s.value,async(L,P)=>{if(L.sourceType!=="pframe"||!L.pFrame||!L.join||P&&P.sourceType==="pframe"&&Le.isEqual(L.pFrame,P.pFrame)&&Le.isEqual(L.join,P.join))return;const O=window.platforma;if(!O)throw Error("platforma not set");const z=O.pFrameDriver;if(!z)throw Error("platforma.pFrameDriver not set");const N=await GE(z,L.pFrame,L.join),E=n.value;E.pTableParams||(E.pTableParams={sorting:[],filters:[]}),E.pTableParams.join=N,n.value=E});const c=op(()=>s.value.sourceType,async L=>{var O;const P=s.value.sourceType;switch(P){case"pframe":{const z=window.platforma;if(!z)throw Error("platforma not set");const N=z.pFrameDriver;if(!N)throw Error("platforma.pFrameDriver not set");if(!s.value.pFrame)return[];const E=s.value.pFrame,V=(O=n.value.pTableParams)==null?void 0:O.join;return V?await zE(N,E,s.value.sheetAxes,V):[]}case"ptable":return s.value.sheets??[];case"xsv":return[];default:throw Error(`unsupported source type: ${P}`)}});function u(L){if(!(s.value.sourceType!=="ptable"&&s.value.sourceType!=="pframe"))return(L==null?void 0:L.sortModel.map(P=>{const{spec:O,...z}=tp(P.colId);return{column:z,ascending:P.sort==="asc",naAndAbsentAreLeastValues:!0}}))??[]}const p=r.computed({get:()=>{const L=n.value;return{columnOrder:L.gridState.columnOrder,sort:L.gridState.sort,columnVisibility:L.gridState.columnVisibility}},set:L=>{const P=n.value,O=S.value.rowModelType==="clientSide"?void 0:u(L.sort);P.gridState={...P.gridState,...L},(s.value.sourceType==="ptable"||s.value.sourceType==="pframe")&&(P.pTableParams||(P.pTableParams={sorting:[],filters:[]}),P.pTableParams.sorting=O),n.value=P}}),f=L=>ti(L);function m(L){var P;if(!(s.value.sourceType!=="ptable"&&s.value.sourceType!=="pframe"))return((P=c.value)==null?void 0:P.map(O=>({type:"bySingleColumn",column:O.column?{type:"column",id:O.column}:{type:"axis",id:O.axis},predicate:{operator:"Equal",reference:L[f(O.axis)]}})))??[]}const y=r.computed({get:()=>n.value.gridState.sheets??{},set:L=>{const P=m(L),O=n.value;O.gridState.sheets=L,(s.value.sourceType==="ptable"||s.value.sourceType==="pframe")&&(O.pTableParams||(O.pTableParams={sorting:[],filters:[]}),O.pTableParams.filters=P),n.value=O}});r.watch(()=>[s.value,c.value],(L,P)=>{const[O,z]=L;if(!z)return;if(P){const[E,V]=P;if((O.sourceType==="ptable"||O.sourceType==="pframe")&&O.sourceType===(E==null?void 0:E.sourceType)&&Le.isEqual(z,V))return}if(O.sourceType!=="ptable"&&O.sourceType!=="pframe"){y.value={};return}const N=y.value;for(const E of z){const V=f(E.axis);N[V]||(N[V]=E.defaultValue??E.options[0].value)}y.value=N},{immediate:!0});const k=r.shallowRef(),S=r.ref({animateRows:!1,suppressColumnMoveAnimation:!0,cellSelection:!0,initialState:p.value,autoSizeStrategy:{type:"fitCellContents"},onRowDataUpdated:L=>{L.api.autoSizeAllColumns()},onRowDoubleClicked:L=>{L.data&&l("onRowDoubleClicked",L.data.key)},defaultColDef:{suppressHeaderMenuButton:!0},maintainColumnOrder:!0,localeText:{loadingError:"..."},rowModelType:"clientSide",maxBlocksInCache:1e3,cacheBlockSize:100,blockLoadDebounceMillis:500,serverSideSortAllLevels:!0,suppressServerSideFullWidthLoadingRow:!0,getRowId:L=>L.data.id,loading:!0,loadingOverlayComponentParams:{notReady:!0},loadingOverlayComponent:Xu,noRowsOverlayComponent:Qu,sideBar:{toolPanels:[{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",toolPanelParams:{suppressRowGroups:!0,suppressValues:!0,suppressPivots:!0,suppressPivotMode:!0,suppressColumnFilter:!0,suppressColumnSelectAll:!0,suppressColumnExpandAll:!0}}],defaultToolPanel:"columns"}}),M=L=>{const P=L.api;k.value=new Proxy(P,{get(O,z,N){switch(z){case"setGridOption":return(E,V)=>{const W=S.value;W[E]=V,S.value=W,P.updateGridOptions(W)};case"updateGridOptions":return E=>{S.value={...S.value,...E},P.updateGridOptions(E)};default:return Reflect.get(O,z,N)}}})},T=L=>({columnOrder:L.columnOrder,sort:L.sort,columnVisibility:L.columnVisibility??(L.columnOrder?{hiddenColIds:[]}:void 0)}),R=L=>{S.value.initialState=p.value=T(L.state),L.api.autoSizeAllColumns()},C=()=>{S.value.initialState=p.value=T(k.value.getState()),k.value=void 0},G=r.ref(0);r.watch(()=>[k.value,p.value],(L,P)=>{if(Le.isEqual(L,P))return;const[O,z]=L;if(!O)return;const N=T(O.getState());Le.isEqual(z,N)||(S.value.initialState=z,++G.value)}),r.watch(()=>S.value,(L,P)=>{var O;if(P&&(L.rowModelType!=P.rowModelType&&++G.value,!Le.isEqual(L.columnDefs,P.columnDefs)&&L.columnDefs)){const z=V=>!("children"in V),N=(O=L.columnDefs)==null?void 0:O.filter(z),E=N==null?void 0:N.map(V=>V.colId).filter(V=>V!==void 0).map(V=>tp(V));l("columnsChanged",E??[])}});const X=(L,P)=>{var z;const O=y.value;O[L]!==P&&(O[L]=P,y.value=O,(z=k.value)==null||z.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1}}))};return r.watch(()=>[k.value,s.value,c.value],async(L,P)=>{var W,q;if(Le.isEqual(L,P))return;const[O,z,N]=L;if(!O)return;const E=window.platforma;if(!E)throw Error("platforma not set");const V=z.sourceType;switch(V){case"pframe":case"ptable":{const $=E.pFrameDriver;if(!$)throw Error("platforma.pFrameDriver not set");const A=z.pTable;if(!A||!N)return O.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const Z=(q=(W=p.value)==null?void 0:W.columnVisibility)==null?void 0:q.hiddenColIds,J=await $E($,A,N,Z);return O.updateGridOptions({loading:J.rowModelType!=="clientSide",loadingOverlayComponentParams:{notReady:!1},...J})}case"xsv":{const $=E.blobDriver;if(!$)throw Error("platforma.blobDriver not set");const A=z.xsvFile;if(!(A!=null&&A.ok)||!A.value)return O.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const Z=await PE($,A.value);return O.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1},...Z})}default:throw Error(`unsupported source type: ${V}`)}}),(L,P)=>(r.openBlock(),r.createElementBlock("div",WE,[r.createVNode(r.Transition,{name:"ap-ag-data-table-sheets-transition"},{default:r.withCtx(()=>[r.unref(c).value&&r.unref(c).value.length>0?(r.openBlock(),r.createElementBlock("div",HE,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).value,(O,z)=>(r.openBlock(),r.createBlock(r.unref(Bu),{key:z,"model-value":y.value[f(O.axis)],options:O.options,"onUpdate:modelValue":N=>X(f(O.axis),N)},null,8,["model-value","options","onUpdate:modelValue"]))),128))])):r.createCommentVNode("",!0)]),_:1}),(r.openBlock(),r.createBlock(r.unref(em.AgGridVue),{key:G.value,theme:r.unref(qd),class:"ap-ag-data-table-grid","grid-options":S.value,onGridReady:M,onStateUpdated:R,onGridPreDestroyed:C},null,8,["theme","grid-options"]))]))}}),[["__scopeId","data-v-278d42fe"]]),qE={key:0,class:"d-flex gap-10 flex-column"},KE={key:0},YE=Ts(r.defineComponent({__name:"PlTableFilters",props:r.mergeModels({columns:{},restrictions:{},defaults:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=r.useModel(t,"modelValue"),n=t,{columns:i,restrictions:s,defaults:l}=r.toRefs(n),c=E=>ti(E.id),u=r.computed(()=>i.value.filter(E=>{const V=E.type;switch(V){case"axis":return E.spec.type!=="Bytes";case"column":return E.spec.valueType!=="Bytes";default:throw Error(`unsupported data type: ${V}`)}}).map(E=>({column:E,id:c(E)}))),p=r.computed(()=>{const E=s.value??[],V={};for(const{column:W,id:q}of u.value){const $=Le.find(E,A=>Le.isEqual(A.column.id,W.id));$!==void 0&&(V[q]=$.allowedFilterTypes)}return V}),f=r.computed(()=>{const E=l.value??[],V={};for(const{column:W,id:q}of u.value){const $=Le.find(E,A=>Le.isEqual(A.column.id,W.id));$!==void 0&&(V[q]=$.default)}return V}),m=E=>E!==void 0?E:f.value,y=r.reactive({state:m(e.value.state)});r.watch(()=>e.value,E=>{Le.isEqual(y.state,E.state)||(y.state=m(E.state))}),r.watch(()=>u.value,E=>{if(y.state!==void 0&&E.length===0)return;const V=y.state??{},W={};for(const{id:q}of E)V[q]!==void 0&&(W[q]=V[q]);y.state=W},{immediate:!0});const k=E=>{switch(E){case"isNotNA":return"Is not NA";case"isNA":return"Is NA";case"number_equals":case"string_equals":return"Equals";case"number_notEquals":case"string_notEquals":return"Not equals";case"number_greaterThan":return"Greater than";case"number_greaterThanOrEqualTo":return"Greater than or equal to";case"number_lessThan":return"Less than";case"number_lessThanOrEqualTo":return"Less than or equal to";case"number_between":return"Between";case"string_contains":return"Contains";case"string_doesNotContain":return"Does not contain";case"string_matches":return"Matches";case"string_doesNotMatch":return"Does not match";case"string_containsFuzzyMatch":return"Contains fuzzy match";default:throw Error(`unsupported filter type: ${E}`)}},S=["isNotNA","isNA","number_equals","number_notEquals","number_greaterThan","number_greaterThanOrEqualTo","number_lessThan","number_lessThanOrEqualTo","number_between"],M=["isNotNA","isNA","string_equals","string_notEquals","string_contains","string_doesNotContain","string_matches","string_doesNotMatch","string_containsFuzzyMatch"],T=r.computed(()=>{const E=p.value,V={};for(const{column:W,id:q}of u.value){let A=(W.type==="column"?W.spec.valueType:W.spec.type)==="String"?M:S;const Z=E[q];Z!==void 0&&(A=A.filter(J=>Z.includes(J))),V[q]=A.map(J=>({value:J,text:k(J)}))}return V}),R=r.computed(()=>Le.some(Object.values(T.value),E=>E.length>0)),C=E=>{const V=E.type;switch(V){case"isNotNA":case"isNA":return;case"number_equals":case"number_notEquals":case"number_greaterThan":case"number_greaterThanOrEqualTo":case"number_lessThan":case"number_lessThanOrEqualTo":return E.reference;case"number_between":return E.lowerBound;case"string_equals":case"string_notEquals":case"string_contains":case"string_doesNotContain":case"string_matches":case"string_doesNotMatch":case"string_containsFuzzyMatch":return E.reference;default:throw Error(`unsupported filter type: ${V}`)}},G=(E,V)=>{switch(E){case"isNotNA":case"isNA":return{type:E};case"number_equals":case"number_notEquals":case"number_greaterThan":case"number_greaterThanOrEqualTo":case"number_lessThan":case"number_lessThanOrEqualTo":return{type:E,reference:typeof V=="number"?V:0};case"number_between":return{type:E,lowerBound:typeof V=="number"?V:0,includeLowerBound:!0,upperBound:100,includeUpperBound:!1};case"string_equals":case"string_notEquals":case"string_contains":case"string_doesNotContain":case"string_matches":case"string_doesNotMatch":return{type:E,reference:typeof V=="string"?V:""};case"string_containsFuzzyMatch":return{type:E,reference:typeof V=="string"?V:"",maxEdits:2,substitutionsOnly:!1,wildcard:void 0};default:throw Error(`unsupported filter type: ${E}`)}},X=(E,V)=>{const W=y.state[E];y.state[E]=G(V,C(W))},L=(E,V)=>{V?y.state[E]=f.value[E]??G(T.value[E][0].value):delete y.state[E]},P=E=>{const V=Le.uniq(E);return V.sort(),V.map(W=>({value:W,text:W}))},O=E=>{const V=Number(E);if(!Number.isFinite(V))throw Error("Model value is not a number.");return V},z=E=>{const V=E.type;switch(V){case"isNotNA":return{operator:"Not",operand:{operator:"IsNA"}};case"isNA":return{operator:"IsNA"};case"number_equals":case"string_equals":return{operator:"Equal",reference:E.reference};case"number_notEquals":case"string_notEquals":return{operator:"Not",operand:{operator:"Equal",reference:E.reference}};case"number_greaterThan":return{operator:"Greater",reference:E.reference};case"number_greaterThanOrEqualTo":return{operator:"GreaterOrEqual",reference:E.reference};case"number_lessThan":return{operator:"Less",reference:E.reference};case"number_lessThanOrEqualTo":return{operator:"LessOrEqual",reference:E.reference};case"number_between":return{operator:"And",operands:[{operator:E.includeLowerBound?"GreaterOrEqual":"Greater",reference:E.lowerBound},{operator:E.includeUpperBound?"LessOrEqual":"Less",reference:E.upperBound}]};case"string_contains":return{operator:"StringContains",substring:E.reference};case"string_doesNotContain":return{operator:"Not",operand:{operator:"StringContains",substring:E.reference}};case"string_matches":return{operator:"Matches",regex:E.reference};case"string_doesNotMatch":return{operator:"Not",operand:{operator:"Matches",regex:E.reference}};case"string_containsFuzzyMatch":return{operator:"StringContainsFuzzy",reference:E.reference,maxEdits:E.maxEdits,substitutionsOnly:E.substitutionsOnly,wildcard:E.wildcard};default:throw Error(`unsupported filter type: ${V}`)}},N=E=>u.value.map(({column:V,id:W})=>{if(!(W in E))return;const q=z(E[W]),{spec:$,...A}=V;return{type:"bySingleColumn",column:A,predicate:q}}).filter(V=>V!==void 0);return r.watch(()=>y,E=>{Le.isEqual(E.state,e.value.state)||(e.value={state:Le.cloneDeep(E.state),filters:N(E.state)})},{immediate:!0,deep:!0}),(E,V)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,({column:W,id:q},$)=>{var A,Z,J,pe,we,Ct,Tt,ht,vr,Vn,_r,Un,Wr,Ps;return r.openBlock(),r.createElementBlock("div",{key:q},[T.value[q].length>0?(r.openBlock(),r.createElementBlock("form",qE,[r.createVNode(r.unref(Au),{"model-value":!!y.state[q],"onUpdate:modelValue":Ge=>L(q,Ge)},{default:r.withCtx(()=>{var Ge,Cr;return[r.createTextVNode(r.toDisplayString(((Cr=(Ge=W.spec.annotations)==null?void 0:Ge["pl7.app/label"])==null?void 0:Cr.trim())??"Unlabeled "+W.type+" "+$.toString()),1)]}),_:2},1032,["model-value","onUpdate:modelValue"]),r.createElementVNode("div",{class:r.normalizeClass(["controls d-flex gap-10 flex-column",{open:!!y.state[q]}])},[y.state[q]?(r.openBlock(),r.createBlock(r.unref(uo),{key:0,"model-value":y.state[q].type,options:T.value[q],label:"Predicate","onUpdate:modelValue":Ge=>X(q,Ge)},null,8,["model-value","options","onUpdate:modelValue"])):r.createCommentVNode("",!0),((A=y.state[q])==null?void 0:A.type)==="number_equals"||((Z=y.state[q])==null?void 0:Z.type)==="number_notEquals"||((J=y.state[q])==null?void 0:J.type)==="number_lessThan"||((pe=y.state[q])==null?void 0:pe.type)==="number_lessThanOrEqualTo"||((we=y.state[q])==null?void 0:we.type)==="number_greaterThan"||((Ct=y.state[q])==null?void 0:Ct.type)==="number_greaterThanOrEqualTo"?(r.openBlock(),r.createBlock(r.unref(Ir),{key:1,modelValue:y.state[q].reference,"onUpdate:modelValue":Ge=>y.state[q].reference=Ge,parse:O,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"])):r.createCommentVNode("",!0),((Tt=y.state[q])==null?void 0:Tt.type)==="number_between"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[r.createVNode(r.unref(Ir),{modelValue:y.state[q].lowerBound,"onUpdate:modelValue":Ge=>y.state[q].lowerBound=Ge,parse:O,label:"Lower bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[q].includeLowerBound,"onUpdate:modelValue":Ge=>y.state[q].includeLowerBound=Ge,label:"Include lower bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(Ir),{modelValue:y.state[q].upperBound,"onUpdate:modelValue":Ge=>y.state[q].upperBound=Ge,parse:O,label:"Upper bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[q].includeUpperBound,"onUpdate:modelValue":Ge=>y.state[q].includeUpperBound=Ge,label:"Include upper bound"},null,8,["modelValue","onUpdate:modelValue"])],64)):r.createCommentVNode("",!0),((ht=y.state[q])==null?void 0:ht.type)==="string_equals"||((vr=y.state[q])==null?void 0:vr.type)==="string_notEquals"||((Vn=y.state[q])==null?void 0:Vn.type)==="string_contains"||((_r=y.state[q])==null?void 0:_r.type)==="string_doesNotContain"||((Un=y.state[q])==null?void 0:Un.type)==="string_matches"||((Wr=y.state[q])==null?void 0:Wr.type)==="string_doesNotMatch"?(r.openBlock(),r.createBlock(r.unref(Ir),{key:3,modelValue:y.state[q].reference,"onUpdate:modelValue":Ge=>y.state[q].reference=Ge,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"])):r.createCommentVNode("",!0),((Ps=y.state[q])==null?void 0:Ps.type)==="string_containsFuzzyMatch"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:4},[r.createVNode(r.unref(Ir),{modelValue:y.state[q].reference,"onUpdate:modelValue":Ge=>y.state[q].reference=Ge,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(Ku),{modelValue:y.state[q].maxEdits,"onUpdate:modelValue":Ge=>y.state[q].maxEdits=Ge,max:5,breakpoints:"",label:"Maximum nuber of substitutions and indels"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[q].substitutionsOnly,"onUpdate:modelValue":Ge=>y.state[q].substitutionsOnly=Ge,label:"Substitutions only"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(uo),{modelValue:y.state[q].wildcard,"onUpdate:modelValue":Ge=>y.state[q].wildcard=Ge,options:P(y.state[q].reference),clearable:"",label:"Wildcard symbol"},null,8,["modelValue","onUpdate:modelValue","options"])],64)):r.createCommentVNode("",!0)],2)])):r.createCommentVNode("",!0)])}),128)),R.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",KE,"No filters applicable"))],64))}}),[["__scopeId","data-v-b30bf5ef"]]),JE={key:1,class:"alert-error"},XE={key:2},QE=r.defineComponent({__name:"ValueOrErrorsComponent",props:{valueOrError:{}},setup(t){const e=t,n=r.computed(()=>e.valueOrError&&e.valueOrError.ok?e.valueOrError.value:void 0),i=r.computed(()=>e.valueOrError&&!e.valueOrError.ok?e.valueOrError.errors:void 0),s=r.computed(()=>n.value===void 0&&i.value===void 0);return(l,c)=>(r.openBlock(),r.createElementBlock("div",null,[n.value!==void 0?r.renderSlot(l.$slots,"default",r.normalizeProps(r.mergeProps({key:0},{value:n.value}))):r.createCommentVNode("",!0),i.value?(r.openBlock(),r.createElementBlock("div",JE,r.toDisplayString(i.value),1)):r.createCommentVNode("",!0),s.value?(r.openBlock(),r.createElementBlock("div",XE,"Unresolved")):r.createCommentVNode("",!0)]))}}),eT={style:{height:"100%"}},tT=r.defineComponent({__name:"PlAgCellFile",props:{params:{}},setup(t){const e=t,n=r.computed(()=>e.params.extensions),i=r.computed(()=>e.params.value);function s(c){e.params.setValue(c)}const l=r.computed(()=>e.params.resolveProgress?e.params.resolveProgress(i.value):void 0);return(c,u)=>(r.openBlock(),r.createElementBlock("div",eT,[r.createVNode(r.unref(Hu),{"show-filename-only":"",clearable:"","cell-style":"","file-dialog-title":"Select any file",placeholder:`Choose file ${n.value?n.value[0]:""}`,extensions:n.value,"model-value":i.value,progress:l.value,"onUpdate:modelValue":s},null,8,["placeholder","extensions","model-value","progress"])]))}}),As=new Map;function nT(t,e){const n=r.getCurrentScope()??r.effectScope(),i=n.run(()=>(r.onScopeDispose(()=>{As.delete(t)}),r.reactive(e())));return i[Symbol.dispose]=()=>{n.stop()},i}function rT(t){const e=Symbol();return()=>(As.has(e)||As.set(e,nT(e,t)),As.get(e))}function iT(t){return r.computed(()=>{try{return cd(t())}catch(e){return{errors:[String(e)],value:void 0}}})}function op(t,e,n){const i=r.ref(0),s=r.reactive({loading:r.computed(()=>i.value>0),loadingRef:i,value:void 0,error:void 0}),l=rm(e);return r.watch(t,async c=>{s.error=void 0,i.value++,l(c).then(u=>{u.ok&&(s.value=u.value)}).catch(u=>{s.value=void 0,s.error=u}).finally(()=>{i.value--})},Object.assign({immediate:!0,deep:!0},n??{})),s}const _i=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,sp=new Set,Bl=typeof process=="object"&&process?process:{},ap=(t,e,n,i)=>{typeof Bl.emitWarning=="function"?Bl.emitWarning(t,e,n,i):console.error(`[${n}] ${e}: ${t}`)};let Ns=globalThis.AbortController,lp=globalThis.AbortSignal;if(typeof Ns>"u"){lp=class{constructor(){Ue(this,"onabort");Ue(this,"_onabort",[]);Ue(this,"reason");Ue(this,"aborted",!1)}addEventListener(i,s){this._onabort.push(s)}},Ns=class{constructor(){Ue(this,"signal",new lp);e()}abort(i){var s,l;if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(const c of this.signal._onabort)c(i);(l=(s=this.signal).onabort)==null||l.call(s,i)}}};let t=((dp=Bl.env)==null?void 0:dp.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{t&&(t=!1,ap("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}const oT=t=>!sp.has(t),gr=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),cp=t=>gr(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Vs:null:null;class Vs extends Array{constructor(e){super(e),this.fill(0)}}const zr=class zr{constructor(e,n){Ue(this,"heap");Ue(this,"length");if(!w(zr,Ci))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}static create(e){const n=cp(e);if(!n)return[];fe(zr,Ci,!0);const i=new zr(e,n);return fe(zr,Ci,!1),i}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};Ci=new WeakMap,Oe(zr,Ci,!1);let Al=zr;const Pl=class Pl{constructor(e){Oe(this,te);Oe(this,dn);Oe(this,Lt);Oe(this,un);Oe(this,pn);Oe(this,wi);Oe(this,bi);Ue(this,"ttl");Ue(this,"ttlResolution");Ue(this,"ttlAutopurge");Ue(this,"updateAgeOnGet");Ue(this,"updateAgeOnHas");Ue(this,"allowStale");Ue(this,"noDisposeOnSet");Ue(this,"noUpdateTTL");Ue(this,"maxEntrySize");Ue(this,"sizeCalculation");Ue(this,"noDeleteOnFetchRejection");Ue(this,"noDeleteOnStaleGet");Ue(this,"allowStaleOnFetchAbort");Ue(this,"allowStaleOnFetchRejection");Ue(this,"ignoreFetchAbort");Oe(this,st);Oe(this,hn);Oe(this,it);Oe(this,je);Oe(this,be);Oe(this,St);Oe(this,Gt);Oe(this,_t);Oe(this,dt);Oe(this,fn);Oe(this,ut);Oe(this,mn);Oe(this,gn);Oe(this,zt);Oe(this,yn);Oe(this,yr);Oe(this,Et);Oe(this,Ur,()=>{});Oe(this,zn,()=>{});Oe(this,No,()=>{});Oe(this,Ut,()=>!1);Oe(this,Zr,e=>{});Oe(this,xi,(e,n,i)=>{});Oe(this,Vo,(e,n,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Ue(this,up,"LRUCache");const{max:n=0,ttl:i,ttlResolution:s=1,ttlAutopurge:l,updateAgeOnGet:c,updateAgeOnHas:u,allowStale:p,dispose:f,disposeAfter:m,noDisposeOnSet:y,noUpdateTTL:k,maxSize:S=0,maxEntrySize:M=0,sizeCalculation:T,fetchMethod:R,memoMethod:C,noDeleteOnFetchRejection:G,noDeleteOnStaleGet:X,allowStaleOnFetchRejection:L,allowStaleOnFetchAbort:P,ignoreFetchAbort:O}=e;if(n!==0&&!gr(n))throw new TypeError("max option must be a nonnegative integer");const z=n?cp(n):Array;if(!z)throw new Error("invalid max value: "+n);if(fe(this,dn,n),fe(this,Lt,S),this.maxEntrySize=M||w(this,Lt),this.sizeCalculation=T,this.sizeCalculation){if(!w(this,Lt)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(C!==void 0&&typeof C!="function")throw new TypeError("memoMethod must be a function if defined");if(fe(this,bi,C),R!==void 0&&typeof R!="function")throw new TypeError("fetchMethod must be a function if specified");if(fe(this,wi,R),fe(this,yr,!!R),fe(this,it,new Map),fe(this,je,new Array(n).fill(void 0)),fe(this,be,new Array(n).fill(void 0)),fe(this,St,new z(n)),fe(this,Gt,new z(n)),fe(this,_t,0),fe(this,dt,0),fe(this,fn,Al.create(n)),fe(this,st,0),fe(this,hn,0),typeof f=="function"&&fe(this,un,f),typeof m=="function"?(fe(this,pn,m),fe(this,ut,[])):(fe(this,pn,void 0),fe(this,ut,void 0)),fe(this,yn,!!w(this,un)),fe(this,Et,!!w(this,pn)),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!k,this.noDeleteOnFetchRejection=!!G,this.allowStaleOnFetchRejection=!!L,this.allowStaleOnFetchAbort=!!P,this.ignoreFetchAbort=!!O,this.maxEntrySize!==0){if(w(this,Lt)!==0&&!gr(w(this,Lt)))throw new TypeError("maxSize must be a positive integer if specified");if(!gr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");le(this,te,jf).call(this)}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!X,this.updateAgeOnGet=!!c,this.updateAgeOnHas=!!u,this.ttlResolution=gr(s)||s===0?s:1,this.ttlAutopurge=!!l,this.ttl=i||0,this.ttl){if(!gr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");le(this,te,td).call(this)}if(w(this,dn)===0&&this.ttl===0&&w(this,Lt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!w(this,dn)&&!w(this,Lt)){const N="LRU_CACHE_UNBOUNDED";oT(N)&&(sp.add(N),ap("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",N,Pl))}}static unsafeExposeInternals(e){return{starts:w(e,gn),ttls:w(e,zt),sizes:w(e,mn),keyMap:w(e,it),keyList:w(e,je),valList:w(e,be),next:w(e,St),prev:w(e,Gt),get head(){return w(e,_t)},get tail(){return w(e,dt)},free:w(e,fn),isBackgroundFetch:n=>{var i;return le(i=e,te,Ke).call(i,n)},backgroundFetch:(n,i,s,l)=>{var c;return le(c=e,te,Ea).call(c,n,i,s,l)},moveToTail:n=>{var i;return le(i=e,te,Xo).call(i,n)},indexes:n=>{var i;return le(i=e,te,Nr).call(i,n)},rindexes:n=>{var i;return le(i=e,te,Vr).call(i,n)},isStale:n=>{var i;return w(i=e,Ut).call(i,n)}}}get max(){return w(this,dn)}get maxSize(){return w(this,Lt)}get calculatedSize(){return w(this,hn)}get size(){return w(this,st)}get fetchMethod(){return w(this,wi)}get memoMethod(){return w(this,bi)}get dispose(){return w(this,un)}get disposeAfter(){return w(this,pn)}getRemainingTTL(e){return w(this,it).has(e)?1/0:0}*entries(){for(const e of le(this,te,Nr).call(this))w(this,be)[e]!==void 0&&w(this,je)[e]!==void 0&&!le(this,te,Ke).call(this,w(this,be)[e])&&(yield[w(this,je)[e],w(this,be)[e]])}*rentries(){for(const e of le(this,te,Vr).call(this))w(this,be)[e]!==void 0&&w(this,je)[e]!==void 0&&!le(this,te,Ke).call(this,w(this,be)[e])&&(yield[w(this,je)[e],w(this,be)[e]])}*keys(){for(const e of le(this,te,Nr).call(this)){const n=w(this,je)[e];n!==void 0&&!le(this,te,Ke).call(this,w(this,be)[e])&&(yield n)}}*rkeys(){for(const e of le(this,te,Vr).call(this)){const n=w(this,je)[e];n!==void 0&&!le(this,te,Ke).call(this,w(this,be)[e])&&(yield n)}}*values(){for(const e of le(this,te,Nr).call(this))w(this,be)[e]!==void 0&&!le(this,te,Ke).call(this,w(this,be)[e])&&(yield w(this,be)[e])}*rvalues(){for(const e of le(this,te,Vr).call(this))w(this,be)[e]!==void 0&&!le(this,te,Ke).call(this,w(this,be)[e])&&(yield w(this,be)[e])}[(pp=Symbol.iterator,up=Symbol.toStringTag,pp)](){return this.entries()}find(e,n={}){for(const i of le(this,te,Nr).call(this)){const s=w(this,be)[i],l=le(this,te,Ke).call(this,s)?s.__staleWhileFetching:s;if(l!==void 0&&e(l,w(this,je)[i],this))return this.get(w(this,je)[i],n)}}forEach(e,n=this){for(const i of le(this,te,Nr).call(this)){const s=w(this,be)[i],l=le(this,te,Ke).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,w(this,je)[i],this)}}rforEach(e,n=this){for(const i of le(this,te,Vr).call(this)){const s=w(this,be)[i],l=le(this,te,Ke).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,w(this,je)[i],this)}}purgeStale(){let e=!1;for(const n of le(this,te,Vr).call(this,{allowStale:!0}))w(this,Ut).call(this,n)&&(le(this,te,Pr).call(this,w(this,je)[n],"expire"),e=!0);return e}info(e){const n=w(this,it).get(e);if(n===void 0)return;const i=w(this,be)[n],s=le(this,te,Ke).call(this,i)?i.__staleWhileFetching:i;if(s===void 0)return;const l={value:s};if(w(this,zt)&&w(this,gn)){const c=w(this,zt)[n],u=w(this,gn)[n];if(c&&u){const p=c-(_i.now()-u);l.ttl=p,l.start=Date.now()}}return w(this,mn)&&(l.size=w(this,mn)[n]),l}dump(){const e=[];for(const n of le(this,te,Nr).call(this,{allowStale:!0})){const i=w(this,je)[n],s=w(this,be)[n],l=le(this,te,Ke).call(this,s)?s.__staleWhileFetching:s;if(l===void 0||i===void 0)continue;const c={value:l};if(w(this,zt)&&w(this,gn)){c.ttl=w(this,zt)[n];const u=_i.now()-w(this,gn)[n];c.start=Math.floor(Date.now()-u)}w(this,mn)&&(c.size=w(this,mn)[n]),e.unshift([i,c])}return e}load(e){this.clear();for(const[n,i]of e){if(i.start){const s=Date.now()-i.start;i.start=_i.now()-s}this.set(n,i.value,i)}}set(e,n,i={}){var k,S,M,T,R;if(n===void 0)return this.delete(e),this;const{ttl:s=this.ttl,start:l,noDisposeOnSet:c=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:p}=i;let{noUpdateTTL:f=this.noUpdateTTL}=i;const m=w(this,Vo).call(this,e,n,i.size||0,u);if(this.maxEntrySize&&m>this.maxEntrySize)return p&&(p.set="miss",p.maxEntrySizeExceeded=!0),le(this,te,Pr).call(this,e,"set"),this;let y=w(this,st)===0?void 0:w(this,it).get(e);if(y===void 0)y=w(this,st)===0?w(this,dt):w(this,fn).length!==0?w(this,fn).pop():w(this,st)===w(this,dn)?le(this,te,Sa).call(this,!1):w(this,st),w(this,je)[y]=e,w(this,be)[y]=n,w(this,it).set(e,y),w(this,St)[w(this,dt)]=y,w(this,Gt)[y]=w(this,dt),fe(this,dt,y),ka(this,st)._++,w(this,xi).call(this,y,m,p),p&&(p.set="add"),f=!1;else{le(this,te,Xo).call(this,y);const C=w(this,be)[y];if(n!==C){if(w(this,yr)&&le(this,te,Ke).call(this,C)){C.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:G}=C;G!==void 0&&!c&&(w(this,yn)&&((k=w(this,un))==null||k.call(this,G,e,"set")),w(this,Et)&&((S=w(this,ut))==null||S.push([G,e,"set"])))}else c||(w(this,yn)&&((M=w(this,un))==null||M.call(this,C,e,"set")),w(this,Et)&&((T=w(this,ut))==null||T.push([C,e,"set"])));if(w(this,Zr).call(this,y),w(this,xi).call(this,y,m,p),w(this,be)[y]=n,p){p.set="replace";const G=C&&le(this,te,Ke).call(this,C)?C.__staleWhileFetching:C;G!==void 0&&(p.oldValue=G)}}else p&&(p.set="update")}if(s!==0&&!w(this,zt)&&le(this,te,td).call(this),w(this,zt)&&(f||w(this,No).call(this,y,s,l),p&&w(this,zn).call(this,p,y)),!c&&w(this,Et)&&w(this,ut)){const C=w(this,ut);let G;for(;G=C==null?void 0:C.shift();)(R=w(this,pn))==null||R.call(this,...G)}return this}pop(){var e;try{for(;w(this,st);){const n=w(this,be)[w(this,_t)];if(le(this,te,Sa).call(this,!0),le(this,te,Ke).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(w(this,Et)&&w(this,ut)){const n=w(this,ut);let i;for(;i=n==null?void 0:n.shift();)(e=w(this,pn))==null||e.call(this,...i)}}}has(e,n={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=n,l=w(this,it).get(e);if(l!==void 0){const c=w(this,be)[l];if(le(this,te,Ke).call(this,c)&&c.__staleWhileFetching===void 0)return!1;if(w(this,Ut).call(this,l))s&&(s.has="stale",w(this,zn).call(this,s,l));else return i&&w(this,Ur).call(this,l),s&&(s.has="hit",w(this,zn).call(this,s,l)),!0}else s&&(s.has="miss");return!1}peek(e,n={}){const{allowStale:i=this.allowStale}=n,s=w(this,it).get(e);if(s===void 0||!i&&w(this,Ut).call(this,s))return;const l=w(this,be)[s];return le(this,te,Ke).call(this,l)?l.__staleWhileFetching:l}async fetch(e,n={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,ttl:c=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:p=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:m=this.noUpdateTTL,noDeleteOnFetchRejection:y=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:k=this.allowStaleOnFetchRejection,ignoreFetchAbort:S=this.ignoreFetchAbort,allowStaleOnFetchAbort:M=this.allowStaleOnFetchAbort,context:T,forceRefresh:R=!1,status:C,signal:G}=n;if(!w(this,yr))return C&&(C.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:l,status:C});const X={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:l,ttl:c,noDisposeOnSet:u,size:p,sizeCalculation:f,noUpdateTTL:m,noDeleteOnFetchRejection:y,allowStaleOnFetchRejection:k,allowStaleOnFetchAbort:M,ignoreFetchAbort:S,status:C,signal:G};let L=w(this,it).get(e);if(L===void 0){C&&(C.fetch="miss");const P=le(this,te,Ea).call(this,e,L,X,T);return P.__returned=P}else{const P=w(this,be)[L];if(le(this,te,Ke).call(this,P)){const V=i&&P.__staleWhileFetching!==void 0;return C&&(C.fetch="inflight",V&&(C.returnedStale=!0)),V?P.__staleWhileFetching:P.__returned=P}const O=w(this,Ut).call(this,L);if(!R&&!O)return C&&(C.fetch="hit"),le(this,te,Xo).call(this,L),s&&w(this,Ur).call(this,L),C&&w(this,zn).call(this,C,L),P;const z=le(this,te,Ea).call(this,e,L,X,T),E=z.__staleWhileFetching!==void 0&&i;return C&&(C.fetch=O?"stale":"refresh",E&&O&&(C.returnedStale=!0)),E?z.__staleWhileFetching:z.__returned=z}}async forceFetch(e,n={}){const i=await this.fetch(e,n);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,n={}){const i=w(this,bi);if(!i)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:l,...c}=n,u=this.get(e,c);if(!l&&u!==void 0)return u;const p=i(e,u,{options:c,context:s});return this.set(e,p,c),p}get(e,n={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,status:c}=n,u=w(this,it).get(e);if(u!==void 0){const p=w(this,be)[u],f=le(this,te,Ke).call(this,p);return c&&w(this,zn).call(this,c,u),w(this,Ut).call(this,u)?(c&&(c.get="stale"),f?(c&&i&&p.__staleWhileFetching!==void 0&&(c.returnedStale=!0),i?p.__staleWhileFetching:void 0):(l||le(this,te,Pr).call(this,e,"expire"),c&&i&&(c.returnedStale=!0),i?p:void 0)):(c&&(c.get="hit"),f?p.__staleWhileFetching:(le(this,te,Xo).call(this,u),s&&w(this,Ur).call(this,u),p))}else c&&(c.get="miss")}delete(e){return le(this,te,Pr).call(this,e,"delete")}clear(){return le(this,te,id).call(this,"delete")}};dn=new WeakMap,Lt=new WeakMap,un=new WeakMap,pn=new WeakMap,wi=new WeakMap,bi=new WeakMap,st=new WeakMap,hn=new WeakMap,it=new WeakMap,je=new WeakMap,be=new WeakMap,St=new WeakMap,Gt=new WeakMap,_t=new WeakMap,dt=new WeakMap,fn=new WeakMap,ut=new WeakMap,mn=new WeakMap,gn=new WeakMap,zt=new WeakMap,yn=new WeakMap,yr=new WeakMap,Et=new WeakMap,te=new WeakSet,td=function(){const e=new Vs(w(this,dn)),n=new Vs(w(this,dn));fe(this,zt,e),fe(this,gn,n),fe(this,No,(l,c,u=_i.now())=>{if(n[l]=c!==0?u:0,e[l]=c,c!==0&&this.ttlAutopurge){const p=setTimeout(()=>{w(this,Ut).call(this,l)&&le(this,te,Pr).call(this,w(this,je)[l],"expire")},c+1);p.unref&&p.unref()}}),fe(this,Ur,l=>{n[l]=e[l]!==0?_i.now():0}),fe(this,zn,(l,c)=>{if(e[c]){const u=e[c],p=n[c];if(!u||!p)return;l.ttl=u,l.start=p,l.now=i||s();const f=l.now-p;l.remainingTTL=u-f}});let i=0;const s=()=>{const l=_i.now();if(this.ttlResolution>0){i=l;const c=setTimeout(()=>i=0,this.ttlResolution);c.unref&&c.unref()}return l};this.getRemainingTTL=l=>{const c=w(this,it).get(l);if(c===void 0)return 0;const u=e[c],p=n[c];if(!u||!p)return 1/0;const f=(i||s())-p;return u-f},fe(this,Ut,l=>{const c=n[l],u=e[l];return!!u&&!!c&&(i||s())-c>u})},Ur=new WeakMap,zn=new WeakMap,No=new WeakMap,Ut=new WeakMap,jf=function(){const e=new Vs(w(this,dn));fe(this,hn,0),fe(this,mn,e),fe(this,Zr,n=>{fe(this,hn,w(this,hn)-e[n]),e[n]=0}),fe(this,Vo,(n,i,s,l)=>{if(le(this,te,Ke).call(this,i))return 0;if(!gr(s))if(l){if(typeof l!="function")throw new TypeError("sizeCalculation must be a function");if(s=l(i,n),!gr(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s}),fe(this,xi,(n,i,s)=>{if(e[n]=i,w(this,Lt)){const l=w(this,Lt)-e[n];for(;w(this,hn)>l;)le(this,te,Sa).call(this,!0)}fe(this,hn,w(this,hn)+e[n]),s&&(s.entrySize=i,s.totalCalculatedSize=w(this,hn))})},Zr=new WeakMap,xi=new WeakMap,Vo=new WeakMap,Nr=function*({allowStale:e=this.allowStale}={}){if(w(this,st))for(let n=w(this,dt);!(!le(this,te,nd).call(this,n)||((e||!w(this,Ut).call(this,n))&&(yield n),n===w(this,_t)));)n=w(this,Gt)[n]},Vr=function*({allowStale:e=this.allowStale}={}){if(w(this,st))for(let n=w(this,_t);!(!le(this,te,nd).call(this,n)||((e||!w(this,Ut).call(this,n))&&(yield n),n===w(this,dt)));)n=w(this,St)[n]},nd=function(e){return e!==void 0&&w(this,it).get(w(this,je)[e])===e},Sa=function(e){var l,c;const n=w(this,_t),i=w(this,je)[n],s=w(this,be)[n];return w(this,yr)&&le(this,te,Ke).call(this,s)?s.__abortController.abort(new Error("evicted")):(w(this,yn)||w(this,Et))&&(w(this,yn)&&((l=w(this,un))==null||l.call(this,s,i,"evict")),w(this,Et)&&((c=w(this,ut))==null||c.push([s,i,"evict"]))),w(this,Zr).call(this,n),e&&(w(this,je)[n]=void 0,w(this,be)[n]=void 0,w(this,fn).push(n)),w(this,st)===1?(fe(this,_t,fe(this,dt,0)),w(this,fn).length=0):fe(this,_t,w(this,St)[n]),w(this,it).delete(i),ka(this,st)._--,n},Ea=function(e,n,i,s){const l=n===void 0?void 0:w(this,be)[n];if(le(this,te,Ke).call(this,l))return l;const c=new Ns,{signal:u}=i;u==null||u.addEventListener("abort",()=>c.abort(u.reason),{signal:c.signal});const p={signal:c.signal,options:i,context:s},f=(T,R=!1)=>{const{aborted:C}=c.signal,G=i.ignoreFetchAbort&&T!==void 0;if(i.status&&(C&&!R?(i.status.fetchAborted=!0,i.status.fetchError=c.signal.reason,G&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),C&&!G&&!R)return y(c.signal.reason);const X=S;return w(this,be)[n]===S&&(T===void 0?X.__staleWhileFetching?w(this,be)[n]=X.__staleWhileFetching:le(this,te,Pr).call(this,e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,T,p.options))),T},m=T=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=T),y(T)),y=T=>{const{aborted:R}=c.signal,C=R&&i.allowStaleOnFetchAbort,G=C||i.allowStaleOnFetchRejection,X=G||i.noDeleteOnFetchRejection,L=S;if(w(this,be)[n]===S&&(!X||L.__staleWhileFetching===void 0?le(this,te,Pr).call(this,e,"fetch"):C||(w(this,be)[n]=L.__staleWhileFetching)),G)return i.status&&L.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),L.__staleWhileFetching;if(L.__returned===L)throw T},k=(T,R)=>{var G;const C=(G=w(this,wi))==null?void 0:G.call(this,e,l,p);C&&C instanceof Promise&&C.then(X=>T(X===void 0?void 0:X),R),c.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(T(void 0),i.allowStaleOnFetchAbort&&(T=X=>f(X,!0)))})};i.status&&(i.status.fetchDispatched=!0);const S=new Promise(k).then(f,m),M=Object.assign(S,{__abortController:c,__staleWhileFetching:l,__returned:void 0});return n===void 0?(this.set(e,M,{...p.options,status:void 0}),n=w(this,it).get(e)):w(this,be)[n]=M,M},Ke=function(e){if(!w(this,yr))return!1;const n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof Ns},rd=function(e,n){w(this,Gt)[n]=e,w(this,St)[e]=n},Xo=function(e){e!==w(this,dt)&&(e===w(this,_t)?fe(this,_t,w(this,St)[e]):le(this,te,rd).call(this,w(this,Gt)[e],w(this,St)[e]),le(this,te,rd).call(this,w(this,dt),e),fe(this,dt,e))},Pr=function(e,n){var s,l,c,u;let i=!1;if(w(this,st)!==0){const p=w(this,it).get(e);if(p!==void 0)if(i=!0,w(this,st)===1)le(this,te,id).call(this,n);else{w(this,Zr).call(this,p);const f=w(this,be)[p];if(le(this,te,Ke).call(this,f)?f.__abortController.abort(new Error("deleted")):(w(this,yn)||w(this,Et))&&(w(this,yn)&&((s=w(this,un))==null||s.call(this,f,e,n)),w(this,Et)&&((l=w(this,ut))==null||l.push([f,e,n]))),w(this,it).delete(e),w(this,je)[p]=void 0,w(this,be)[p]=void 0,p===w(this,dt))fe(this,dt,w(this,Gt)[p]);else if(p===w(this,_t))fe(this,_t,w(this,St)[p]);else{const m=w(this,Gt)[p];w(this,St)[m]=w(this,St)[p];const y=w(this,St)[p];w(this,Gt)[y]=w(this,Gt)[p]}ka(this,st)._--,w(this,fn).push(p)}}if(w(this,Et)&&((c=w(this,ut))!=null&&c.length)){const p=w(this,ut);let f;for(;f=p==null?void 0:p.shift();)(u=w(this,pn))==null||u.call(this,...f)}return i},id=function(e){var n,i,s;for(const l of le(this,te,Vr).call(this,{allowStale:!0})){const c=w(this,be)[l];if(le(this,te,Ke).call(this,c))c.__abortController.abort(new Error("deleted"));else{const u=w(this,je)[l];w(this,yn)&&((n=w(this,un))==null||n.call(this,c,u,e)),w(this,Et)&&((i=w(this,ut))==null||i.push([c,u,e]))}}if(w(this,it).clear(),w(this,be).fill(void 0),w(this,je).fill(void 0),w(this,zt)&&w(this,gn)&&(w(this,zt).fill(0),w(this,gn).fill(0)),w(this,mn)&&w(this,mn).fill(0),fe(this,_t,0),fe(this,dt,0),w(this,fn).length=0,fe(this,hn,0),fe(this,st,0),w(this,Et)&&w(this,ut)){const l=w(this,ut);let c;for(;c=l==null?void 0:l.shift();)(s=w(this,pn))==null||s.call(this,...c)}};let Nl=Pl;const sT={cacheSize:15e6};class aT{constructor(e){Ue(this,"_str");Ue(this,"_rawJson");Ue(this,"_zodSchema");Ue(this,"_validatedJson");this.bytes=e}get str(){return this._str===void 0&&(this._str=new TextDecoder().decode(this.bytes)),this._str}get rawJson(){return this._rawJson===void 0&&(this._rawJson=JSON.parse(this.str)),this._rawJson}validatedJson(e){return this._zodSchema!==e&&(this._validatedJson=e.parse(this.rawJson),this._zodSchema=e),this._validatedJson}}const $r=class $r{constructor(e){Ue(this,"fileDataCache");Ue(this,"fileDataRefs",new Map);const n={...sT,...e??{}};this.fileDataCache=new Nl({maxSize:n.cacheSize,fetchMethod:async i=>new aT(await vg().blobDriver.getContent(i)),sizeCalculation:i=>i.bytes.length,dispose:(i,s)=>{this.fileDataRefs.delete(s)}})}getDataRef(e){const n=this.fileDataRefs.get(e);if(n!==void 0)return n;const i=r.shallowRef();return this.fileDataRefs.set(e,i),(async()=>{try{const s=await this.fileDataCache.fetch(e);i.value=s}catch(s){console.error(s)}})(),i}getContentBytes(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var i;return(i=n.value)==null?void 0:i.bytes})}getContentString(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var i;return(i=n==null?void 0:n.value)==null?void 0:i.str})}getContentJson(e,n){if(e===void 0)return;const i=this.getDataRef(e);return r.computed(()=>{var s,l;return n===void 0?(s=i==null?void 0:i.value)==null?void 0:s.rawJson:(l=i==null?void 0:i.value)==null?void 0:l.validatedJson(n)})}static getContentBytes(e){return $r.globalInstance.getContentBytes(e)}static getContentString(e){return $r.globalInstance.getContentString(e)}static getContentJson(e,n){return $r.globalInstance.getContentJson(e,n)}};Ue($r,"globalInstance",new $r);let Vl=$r;I.AgGridTheme=qd,I.BlockLayout=TE,I.ContextProvider=pk,I.DataTable=D_,I.DemoData=hE,I.DropdownListItem=di,I.LongText=yl,I.MultiError=Aa,I.PlAgCellFile=tT,I.PlAgDataTable=jE,I.PlAgOverlayLoading=Xu,I.PlAgOverlayNoRows=Qu,I.PlAlert=dC,I.PlBlockPage=Y_,I.PlBtnAccent=BC,I.PlBtnDanger=NC,I.PlBtnGhost=ul,I.PlBtnGroup=XC,I.PlBtnLink=FC,I.PlBtnPrimary=cl,I.PlBtnSecondary=dl,I.PlBtnSplit=xC,I.PlCheckbox=Au,I.PlCheckboxGroup=Xw,I.PlChip=vl,I.PlContainer=X_,I.PlCopyData=qu,I.PlDialogModal=Cl,I.PlDropdown=uo,I.PlDropdownLegacy=Cw,I.PlDropdownLine=Bu,I.PlDropdownMulti=jw,I.PlDropdownRef=K0,I.PlFileDialog=Vu,I.PlFileInput=Hu,I.PlGrid=iC,I.PlIcon16=ms,I.PlIcon24=ku,I.PlLogView=Eb,I.PlMaskIcon16=pi,I.PlMaskIcon24=Ln,I.PlNotificationAlert=ju,I.PlNumberField=Pw,I.PlProgressBar=Sw,I.PlRow=eC,I.PlSlideModal=pb,I.PlSpacer=yu,I.PlTableFilters=YE,I.PlTabs=Fb,I.PlTextArea=A0,I.PlTextField=Ir,I.PlToggleSwitch=gs,I.PlTooltip=Vt,I.ReactiveFileContent=Vl,I.Scrollable=nS,I.Slider=Ku,I.SliderRange=Xk,I.SliderRangeTriple=Gk,I.ThemeSwitcher=Z_,I.UnresolvedError=Ba,I.ValueOrErrorsComponent=QE,I.activateAgGrid=jd,I.animate=uu,I.animateInfinite=O_,I.call=su,I.computedResult=iT,I.createModel=Ra,I.debounce=pu,I.defineApp=lv,I.defineStore=rT,I.delay=au,I.detectOutside=N0,I.ensureError=Pa,I.eventListener=ml,I.formatZodError=Fa,I.getElementScrollPosition=Eu,I.identity=Va,I.isDefined=lm,I.isElementVisible=Su,I.isJsonEqual=Na,I.isZodError=Da,I.listToOptions=L_,I.makeEaseInOut=I_,I.makeEaseOut=du,I.maskIcons16=uE,I.maskIcons24=pE,I.normalizeListOptions=ar,I.notEmpty=il,I.randomInt=cu,I.randomString=M_,I.requestTick=ol,I.scrollIntoView=co,I.showContextMenu=tl,I.throttle=hu,I.timeout=lu,I.unwrapOptionalResult=am,I.unwrapValueOrErrors=ld,I.useClickOutside=fs,I.useDraggable=Ak,I.useEventListener=tt,I.useFormState=Tk,I.useHover=iu,I.useInterval=Ek,I.useLabelNotch=On,I.useLocalStorage=fu,I.useMouse=ru,I.useMouseCapture=sr,I.usePosition=ui,I.useQuery=Bk,I.useResizeObserver=Yu,I.useScroll=xk,I.useSdkPlugin=Xa,I.useSortable=Sk,I.useTheme=gu,I.useWatchFetch=op,I.wrapOptionalResult=cd,I.wrapValueOrErrors=sm,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});