@platforma-sdk/ui-vue 1.13.10 → 1.13.11

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.13.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 925afdd: added docs
8
+
3
9
  ## 1.13.10
4
10
 
5
11
  ### Patch Changes
package/dist/lib.js CHANGED
@@ -21985,7 +21985,7 @@ const Kg = Ux(), tG = ["onClick"], nG = /* @__PURE__ */ le({
21985
21985
  }, null, 8, ["theme", "grid-options"]))
21986
21986
  ]));
21987
21987
  }
21988
- }), TV = /* @__PURE__ */ bl(oG, [["__scopeId", "data-v-57cd8612"]]), aG = {
21988
+ }), TV = /* @__PURE__ */ bl(oG, [["__scopeId", "data-v-330ddc9a"]]), aG = {
21989
21989
  key: 0,
21990
21990
  class: "d-flex gap-10 flex-column"
21991
21991
  }, lG = { key: 0 }, uG = /* @__PURE__ */ le({
package/dist/lib.umd.cjs CHANGED
@@ -88,4 +88,4 @@ __p += '`),Me&&(J+=`' +
88
88
  function print() { __p += __j.call(arguments, '') }
89
89
  `:`;
90
90
  `)+J+`return __p
91
- }`;var Pe=rm(function(){return Ze(v,ue+"return "+J).apply(n,E)});if(Pe.source=J,jc(Pe))throw Pe;return Pe}function WF(i){return We(i).toLowerCase()}function HF(i){return We(i).toUpperCase()}function jF(i,a,d){if(i=We(i),i&&(d||a===n))return uh(i);if(!i||!(a=Wt(a)))return i;var h=xn(i),g=xn(a),v=ph(h,g),E=hh(h,g)+1;return Dr(h,v,E).join("")}function qF(i,a,d){if(i=We(i),i&&(d||a===n))return i.slice(0,mh(i)+1);if(!i||!(a=Wt(a)))return i;var h=xn(i),g=hh(h,xn(a))+1;return Dr(h,0,g).join("")}function KF(i,a,d){if(i=We(i),i&&(d||a===n))return i.replace(jl,"");if(!i||!(a=Wt(a)))return i;var h=xn(i),g=ph(h,xn(a));return Dr(h,g).join("")}function YF(i,a){var d=U,h=X;if(tt(a)){var g="separator"in a?a.separator:g;d="length"in a?Ve(a.length):d,h="omission"in a?Wt(a.omission):h}i=We(i);var v=i.length;if(Po(i)){var E=xn(i);v=E.length}if(d>=v)return i;var V=d-Do(h);if(V<1)return h;var D=E?Dr(E,0,V).join(""):i.slice(0,V);if(g===n)return D+h;if(E&&(V+=D.length-V),qc(g)){if(i.slice(V).search(g)){var q,K=D;for(g.global||(g=dc(g.source,We(Dp.exec(g))+"g")),g.lastIndex=0;q=g.exec(K);)var J=q.index;D=D.slice(0,J===n?V:J)}}else if(i.indexOf(Wt(g),V)!=V){var oe=D.lastIndexOf(g);oe>-1&&(D=D.slice(0,oe))}return D+h}function JF(i){return i=We(i),i&&lB.test(i)?i.replace(Np,EV):i}var XF=Go(function(i,a,d){return i+(d?" ":"")+a.toUpperCase()}),Jc=rf("toUpperCase");function nm(i,a,d){return i=We(i),a=d?n:a,a===n?wV(i)?VV(i):pV(i):i.match(a)||[]}var rm=De(function(i,a){try{return Zt(i,n,a)}catch(d){return jc(d)?d:new ke(d)}}),QF=Xn(function(i,a){return Jt(a,function(d){d=On(d),Yn(i,d,Wc(i[d],i))}),i});function eR(i){var a=i==null?0:i.length,d=fe();return i=a?Xe(i,function(h){if(typeof h[1]!="function")throw new Xt(c);return[d(h[0]),h[1]]}):[],De(function(h){for(var g=-1;++g<a;){var v=i[g];if(Zt(v[0],this,h))return Zt(v[1],this,h)}})}function tR(i){return EN(en(i,y))}function Xc(i){return function(){return i}}function nR(i,a){return i==null||i!==i?a:i}var rR=sf(),oR=sf(!0);function Mt(i){return i}function Qc(i){return Rh(typeof i=="function"?i:en(i,y))}function iR(i){return Ih(en(i,y))}function sR(i,a){return Lh(i,en(a,y))}var aR=De(function(i,a){return function(d){return Ki(d,i,a)}}),lR=De(function(i,a){return function(d){return Ki(i,d,a)}});function ed(i,a,d){var h=mt(a),g=sa(a,h);d==null&&!(tt(a)&&(g.length||!h.length))&&(d=a,a=i,i=this,g=sa(a,mt(a)));var v=!(tt(d)&&"chain"in d)||!!d.chain,E=er(i);return Jt(g,function(V){var D=a[V];i[V]=D,E&&(i.prototype[V]=function(){var q=this.__chain__;if(v||q){var K=i(this.__wrapped__),J=K.__actions__=Dt(this.__actions__);return J.push({func:D,args:arguments,thisArg:i}),K.__chain__=q,K}return D.apply(i,Tr([this.value()],arguments))})}),i}function cR(){return gt._===this&&(gt._=RV),this}function td(){}function dR(i){return i=Ve(i),De(function(a){return Oh(a,i)})}var uR=Pc(Xe),pR=Pc(sh),hR=Pc(rc);function om(i){return Oc(i)?oc(On(i)):ZN(i)}function fR(i){return function(a){return i==null?n:ro(i,a)}}var mR=lf(),gR=lf(!0);function nd(){return[]}function rd(){return!1}function yR(){return{}}function _R(){return""}function vR(){return!0}function CR(i,a){if(i=Ve(i),i<1||i>ne)return[];var d=ot,h=xt(i,ot);a=fe(a),i-=ot;for(var g=ac(h,a);++d<i;)a(d);return g}function wR(i){return Ee(i)?Xe(i,On):Ht(i)?[i]:Dt(kf(We(i)))}function bR(i){var a=++DV;return We(i)+a}var xR=pa(function(i,a){return i+a},0),kR=Dc("ceil"),SR=pa(function(i,a){return i/a},1),ER=Dc("floor");function TR(i){return i&&i.length?ia(i,Mt,_c):n}function BR(i,a){return i&&i.length?ia(i,fe(a,2),_c):n}function VR(i){return ch(i,Mt)}function NR(i,a){return ch(i,fe(a,2))}function AR(i){return i&&i.length?ia(i,Mt,bc):n}function PR(i,a){return i&&i.length?ia(i,fe(a,2),bc):n}var DR=pa(function(i,a){return i*a},1),FR=Dc("round"),RR=pa(function(i,a){return i-a},0);function MR(i){return i&&i.length?sc(i,Mt):0}function IR(i,a){return i&&i.length?sc(i,fe(a,2)):0}return _.after=iD,_.ary=Rf,_.assign=HD,_.assignIn=Kf,_.assignInWith=Sa,_.assignWith=jD,_.at=qD,_.before=Mf,_.bind=Wc,_.bindAll=QF,_.bindKey=If,_.castArray=yD,_.chain=Pf,_.chunk=EA,_.compact=TA,_.concat=BA,_.cond=eR,_.conforms=tR,_.constant=Xc,_.countBy=MP,_.create=KD,_.curry=Lf,_.curryRight=Of,_.debounce=Gf,_.defaults=YD,_.defaultsDeep=JD,_.defer=sD,_.delay=aD,_.difference=VA,_.differenceBy=NA,_.differenceWith=AA,_.drop=PA,_.dropRight=DA,_.dropRightWhile=FA,_.dropWhile=RA,_.fill=MA,_.filter=LP,_.flatMap=zP,_.flatMapDeep=$P,_.flatMapDepth=ZP,_.flatten=Bf,_.flattenDeep=IA,_.flattenDepth=LA,_.flip=lD,_.flow=rR,_.flowRight=oR,_.fromPairs=OA,_.functions=oF,_.functionsIn=iF,_.groupBy=UP,_.initial=zA,_.intersection=$A,_.intersectionBy=ZA,_.intersectionWith=UA,_.invert=aF,_.invertBy=lF,_.invokeMap=HP,_.iteratee=Qc,_.keyBy=jP,_.keys=mt,_.keysIn=Rt,_.map=va,_.mapKeys=dF,_.mapValues=uF,_.matches=iR,_.matchesProperty=sR,_.memoize=wa,_.merge=pF,_.mergeWith=Yf,_.method=aR,_.methodOf=lR,_.mixin=ed,_.negate=ba,_.nthArg=dR,_.omit=hF,_.omitBy=fF,_.once=cD,_.orderBy=qP,_.over=uR,_.overArgs=dD,_.overEvery=pR,_.overSome=hR,_.partial=Hc,_.partialRight=zf,_.partition=KP,_.pick=mF,_.pickBy=Jf,_.property=om,_.propertyOf=fR,_.pull=qA,_.pullAll=Nf,_.pullAllBy=KA,_.pullAllWith=YA,_.pullAt=JA,_.range=mR,_.rangeRight=gR,_.rearg=uD,_.reject=XP,_.remove=XA,_.rest=pD,_.reverse=Zc,_.sampleSize=eD,_.set=yF,_.setWith=_F,_.shuffle=tD,_.slice=QA,_.sortBy=oD,_.sortedUniq=sP,_.sortedUniqBy=aP,_.split=zF,_.spread=hD,_.tail=lP,_.take=cP,_.takeRight=dP,_.takeRightWhile=uP,_.takeWhile=pP,_.tap=TP,_.throttle=fD,_.thru=_a,_.toArray=Hf,_.toPairs=Xf,_.toPairsIn=Qf,_.toPath=wR,_.toPlainObject=qf,_.transform=vF,_.unary=mD,_.union=hP,_.unionBy=fP,_.unionWith=mP,_.uniq=gP,_.uniqBy=yP,_.uniqWith=_P,_.unset=CF,_.unzip=Uc,_.unzipWith=Af,_.update=wF,_.updateWith=bF,_.values=Zo,_.valuesIn=xF,_.without=vP,_.words=nm,_.wrap=gD,_.xor=CP,_.xorBy=wP,_.xorWith=bP,_.zip=xP,_.zipObject=kP,_.zipObjectDeep=SP,_.zipWith=EP,_.entries=Xf,_.entriesIn=Qf,_.extend=Kf,_.extendWith=Sa,ed(_,_),_.add=xR,_.attempt=rm,_.camelCase=TF,_.capitalize=em,_.ceil=kR,_.clamp=kF,_.clone=_D,_.cloneDeep=CD,_.cloneDeepWith=wD,_.cloneWith=vD,_.conformsTo=bD,_.deburr=tm,_.defaultTo=nR,_.divide=SR,_.endsWith=BF,_.eq=Sn,_.escape=VF,_.escapeRegExp=NF,_.every=IP,_.find=OP,_.findIndex=Ef,_.findKey=XD,_.findLast=GP,_.findLastIndex=Tf,_.findLastKey=QD,_.floor=ER,_.forEach=Df,_.forEachRight=Ff,_.forIn=eF,_.forInRight=tF,_.forOwn=nF,_.forOwnRight=rF,_.get=Kc,_.gt=xD,_.gte=kD,_.has=sF,_.hasIn=Yc,_.head=Vf,_.identity=Mt,_.includes=WP,_.indexOf=GA,_.inRange=SF,_.invoke=cF,_.isArguments=so,_.isArray=Ee,_.isArrayBuffer=SD,_.isArrayLike=Ft,_.isArrayLikeObject=it,_.isBoolean=ED,_.isBuffer=Fr,_.isDate=TD,_.isElement=BD,_.isEmpty=VD,_.isEqual=ND,_.isEqualWith=AD,_.isError=jc,_.isFinite=PD,_.isFunction=er,_.isInteger=$f,_.isLength=xa,_.isMap=Zf,_.isMatch=DD,_.isMatchWith=FD,_.isNaN=RD,_.isNative=MD,_.isNil=LD,_.isNull=ID,_.isNumber=Uf,_.isObject=tt,_.isObjectLike=nt,_.isPlainObject=ts,_.isRegExp=qc,_.isSafeInteger=OD,_.isSet=Wf,_.isString=ka,_.isSymbol=Ht,_.isTypedArray=$o,_.isUndefined=GD,_.isWeakMap=zD,_.isWeakSet=$D,_.join=WA,_.kebabCase=AF,_.last=nn,_.lastIndexOf=HA,_.lowerCase=PF,_.lowerFirst=DF,_.lt=ZD,_.lte=UD,_.max=TR,_.maxBy=BR,_.mean=VR,_.meanBy=NR,_.min=AR,_.minBy=PR,_.stubArray=nd,_.stubFalse=rd,_.stubObject=yR,_.stubString=_R,_.stubTrue=vR,_.multiply=DR,_.nth=jA,_.noConflict=cR,_.noop=td,_.now=Ca,_.pad=FF,_.padEnd=RF,_.padStart=MF,_.parseInt=IF,_.random=EF,_.reduce=YP,_.reduceRight=JP,_.repeat=LF,_.replace=OF,_.result=gF,_.round=FR,_.runInContext=A,_.sample=QP,_.size=nD,_.snakeCase=GF,_.some=rD,_.sortedIndex=eP,_.sortedIndexBy=tP,_.sortedIndexOf=nP,_.sortedLastIndex=rP,_.sortedLastIndexBy=oP,_.sortedLastIndexOf=iP,_.startCase=$F,_.startsWith=ZF,_.subtract=RR,_.sum=MR,_.sumBy=IR,_.template=UF,_.times=CR,_.toFinite=tr,_.toInteger=Ve,_.toLength=jf,_.toLower=WF,_.toNumber=rn,_.toSafeInteger=WD,_.toString=We,_.toUpper=HF,_.trim=jF,_.trimEnd=qF,_.trimStart=KF,_.truncate=YF,_.unescape=JF,_.uniqueId=bR,_.upperCase=XF,_.upperFirst=Jc,_.each=Df,_.eachRight=Ff,_.first=Vf,ed(_,function(){var i={};return In(_,function(a,d){He.call(_.prototype,d)||(i[d]=a)}),i}(),{chain:!1}),_.VERSION=o,Jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){_[i].placeholder=_}),Jt(["drop","take"],function(i,a){Re.prototype[i]=function(d){d=d===n?1:ut(Ve(d),0);var h=this.__filtered__&&!a?new Re(this):this.clone();return h.__filtered__?h.__takeCount__=xt(d,h.__takeCount__):h.__views__.push({size:xt(d,ot),type:i+(h.__dir__<0?"Right":"")}),h},Re.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),Jt(["filter","map","takeWhile"],function(i,a){var d=a+1,h=d==w||d==$;Re.prototype[i]=function(g){var v=this.clone();return v.__iteratees__.push({iteratee:fe(g,3),type:d}),v.__filtered__=v.__filtered__||h,v}}),Jt(["head","last"],function(i,a){var d="take"+(a?"Right":"");Re.prototype[i]=function(){return this[d](1).value()[0]}}),Jt(["initial","tail"],function(i,a){var d="drop"+(a?"":"Right");Re.prototype[i]=function(){return this.__filtered__?new Re(this):this[d](1)}}),Re.prototype.compact=function(){return this.filter(Mt)},Re.prototype.find=function(i){return this.filter(i).head()},Re.prototype.findLast=function(i){return this.reverse().find(i)},Re.prototype.invokeMap=De(function(i,a){return typeof i=="function"?new Re(this):this.map(function(d){return Ki(d,i,a)})}),Re.prototype.reject=function(i){return this.filter(ba(fe(i)))},Re.prototype.slice=function(i,a){i=Ve(i);var d=this;return d.__filtered__&&(i>0||a<0)?new Re(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),a!==n&&(a=Ve(a),d=a<0?d.dropRight(-a):d.take(a-i)),d)},Re.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Re.prototype.toArray=function(){return this.take(ot)},In(Re.prototype,function(i,a){var d=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),g=_[h?"take"+(a=="last"?"Right":""):a],v=h||/^find/.test(a);g&&(_.prototype[a]=function(){var E=this.__wrapped__,V=h?[1]:arguments,D=E instanceof Re,q=V[0],K=D||Ee(E),J=function(Fe){var Me=g.apply(_,Tr([Fe],V));return h&&oe?Me[0]:Me};K&&d&&typeof q=="function"&&q.length!=1&&(D=K=!1);var oe=this.__chain__,ue=!!this.__actions__.length,ge=v&&!oe,Pe=D&&!ue;if(!v&&K){E=Pe?E:new Re(this);var ye=i.apply(E,V);return ye.__actions__.push({func:_a,args:[J],thisArg:n}),new Qt(ye,oe)}return ge&&Pe?i.apply(this,V):(ye=this.thru(J),ge?h?ye.value()[0]:ye.value():ye)})}),Jt(["pop","push","shift","sort","splice","unshift"],function(i){var a=Us[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",h=/^(?:pop|shift)$/.test(i);_.prototype[i]=function(){var g=arguments;if(h&&!this.__chain__){var v=this.value();return a.apply(Ee(v)?v:[],g)}return this[d](function(E){return a.apply(Ee(E)?E:[],g)})}}),In(Re.prototype,function(i,a){var d=_[a];if(d){var h=d.name+"";He.call(Io,h)||(Io[h]=[]),Io[h].push({name:a,func:d})}}),Io[ua(n,C).name]=[{name:"wrapper",func:n}],Re.prototype.clone=JV,Re.prototype.reverse=XV,Re.prototype.value=QV,_.prototype.at=BP,_.prototype.chain=VP,_.prototype.commit=NP,_.prototype.next=AP,_.prototype.plant=DP,_.prototype.reverse=FP,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=RP,_.prototype.first=_.prototype.head,$i&&(_.prototype[$i]=PP),_},Fo=NV();Xr?((Xr.exports=Fo)._=Fo,Ql._=Fo):gt._=Fo}).call(Uo)}(As,As.exports);var Ge=As.exports;const mT={class:"grid-overlay-container"},up=r.defineComponent({__name:"PlAgOverlayLoading",props:{params:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",mT,[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))]))}}),gT={},yT={class:"grid-overlay-container"};function _T(t,e){return r.openBlock(),r.createElementBlock("div",yT,e[0]||(e[0]=[r.createElementVNode("div",{class:"grid-icon-sad-cat"},null,-1),r.createElementVNode("span",{class:"text-subtitle-m"},"Empty",-1)]))}const pp=Ns(gT,[["render",_T]]);async function vT(t,e){throw Error("not implemented")}function CT(t){return t.axesSpec.filter(e=>{var n;return((n=e.annotations)==null?void 0:n["pl7.app/axisNature"])==="heterogeneous"})}function wT(t,e){const n=[];for(const o of e)if(t[o].type==="column"){const s=CT(t[o].spec);for(const l of s){if(l.type!=="String"){console.warn("heterogeneous axis with string type expected, got",l,"skipping");continue}const c=Ua(l),u=t.findIndex(p=>Ge.isEqual(p.id,c));if(u===-1)throw console.error("axis not found",o,c,t),Error("axis not found");n.push({columnIdx:o,axisIdx:u})}}return n}const hp=(t,e)=>(t+e).toString();function bT(t,e,n,o,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 B=o[u].data.filter(T=>T!==null);return Array.from(new Set(B))})();f.sort(),p>u?(n.splice(p,1),n.splice(u,1)):(n.splice(u,1),n.splice(p,1));const m=xT(s,o,u,p,f,e.rows);for(let y=0;y<f.length;++y){const B=f[y],T=Lr(B+"@"+y);n.push({colId:T,field:hp(o.length,y),headerName:B,valueFormatter:mp})}return{rowModelType:"clientSide",columnDefs:n,rowData:m}}function xT(t,e,n,o,s,l){const c=new Map;let u=0;for(let f=0;f<l;f++){const m={};for(let M=0;M<e.length;++M){if(M===n||M===o)continue;const G=t[M].toString();m[G]=e[M].data[f]}let y;const B=Lr(Object.values(m))??"";c.has(B)?y=c.get(B):(c.set(B,m),y=m,y.id=u.toString(),u++);const T=s.indexOf(e[n].data[f]);if(T===-1)throw Error("index not found");const N=hp(e.length,T);y[N]=e[o].data[f]}return Array.from(c.values())}function kT(t){return Lr(t)}function fp(t){return JSON.parse(t)}const mp=t=>t?t.value===void 0?"NULL":t.value===null?"NA":t.value.toString():"ERROR";function ST(t,e,n){var s,l,c;const o=kT(e);return{colId:o,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(o))??((c=e.spec.annotations)==null?void 0:c["pl7.app/table/visibility"])==="optional",valueFormatter:mp,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 gp(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 yp(t){const e=[];return ps(t,n=>(e.push(n),n)),e}async function ET(t,e,n){return n.length?(await t.findColumns(e,{columnFilter:{name:["pl7.app/label"]},compatibleWith:Ge.uniqWith(n.map(s=>Pd(s.spec.axesSpec).map(Ge.cloneDeep)).flat(),Ge.isEqual),strictlyCompatible:!0})).hits.filter(s=>s.spec.axesSpec.length===1):[]}async function TT(t,e,n){const o=yp(n),l=(await ET(t,e,o)).filter(c=>!Ge.find(o,u=>c.columnId===u.columnId));return l.length===0?n:{type:"outer",primary:n,secondary:l.map(c=>({type:"column",column:c}))}}async function BT(t,e,n,o){const s=n.filter(m=>m.type!=="Bytes"),l=yp(o),c=s.map(m=>[]),u=s.map(m=>null);for(let m=0;m<l.length;++m){const y=Pd(l[m].spec.axesSpec);for(let B=0;B<y.length;++B){const T=Ge.findIndex(s,N=>Ge.isEqual(N,y[B]));T===-1||u[T]||(y.length===1&&l[m].spec.name==="pl7.app/label"?(c[T]=[[m,B]],u[T]=l[m].columnId):c[T].push([m,B]))}}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,B]of c[m]){const T=await t.getUniqueValues(e,{columnId:l[y].columnId,...!u[m]&&{axis:Ge.cloneDeep(s[m])},filters:[],limit:p});if(T.overflow){u.splice(m,1),c.splice(m,1),s.splice(m,1);continue e}const N=T.values.type;for(const M of T.values.data)if(!(Ad(M,N)||M===null)&&(f[m].add(gp(M,N)),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 B=[...f[y]].map(N=>({value:N,label:N.toString()})),T=B[0].value;return{axis:Ge.cloneDeep(m),...u[y]&&{column:u[y]},options:B,defaultValue:T}})}function VT(t,e,n,o){const s=t.length,l=[];for(let c=0;c<e[0].data.length;++c){const u=[],p=(o++).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(),B=e[m].data[c],T=e[m].type;Pg(e[m].absent,c)?f[y]=void 0:Ad(B,T)||B===null?f[y]=null:f[y]=gp(B,T)}l.push(f)}return l}const NT=t=>t.type==="column"&&t.spec.axesSpec.length===1&&t.spec.name==="pl7.app/label";async function AT(t,e,n,o){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=>!Ge.find(n,F=>Ge.isEqual(F.axis,s[C].id)||Ge.isEqual(F.column,s[C].id))).sort((C,F)=>{var I,Y;if(s[C].type!==s[F].type)return s[C].type==="axis"?-1:1;const O=(I=s[C].spec.annotations)==null?void 0:I["pl7.app/table/orderPriority"],Z=(Y=s[F].spec.annotations)==null?void 0:Y["pl7.app/table/orderPriority"];return O===void 0?Z===void 0?0:1:Z===void 0?-1:Number(Z)-Number(O)}),u=Ge.cloneDeep(c),p=wT(s,c);for(let C=c.length-1;C>=0;--C){const F=c[C];if(!NT(s[F]))continue;const O=Ua(s[F].spec.axesSpec[0]),Z=Ge.findIndex(c,I=>Ge.isEqual(s[I].id,O));if(Z===-1&&Ge.findIndex(n,Y=>Ge.isEqual(Y.axis,O))===-1){console.warn(`added label column, but the axis is not in the data; axisId: ${O}`);continue}c[Z]=F;for(const I of p)I.axisIdx===F&&(I.axisIdx=Z);c.splice(C,1),u.splice(C,1)}const f=await t.getShape(e),m=f.rows,y=u.map(C=>ST(C,s[C],o));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 bT(p,f,y,await t.getData(e,c),u,c);const B=[...c],T=new Map;for(let C=0;C<l;++C)T.set(C,-1);for(let C=0;C<B.length;++C){const F=B[C];T.has(F)&&T.set(F,C)}for(const[C,F]of T)F===-1&&(T.set(C,B.length),B.push(C));const N=[];for(let C=0;C<l;++C){const F=T.get(C);if(F===void 0||F===-1)throw new Error("assertion exception");N.push(F)}let M;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(M&&!Ge.isEqual(M.request.sortModel,C.request.sortModel)){M=void 0,C.api.setGridOption("loading",!0),C.success({rowData:[],rowCount:0});return}M=C;let F=0,O=[];if(m>0&&C.request.startRow!==void 0&&C.request.endRow!==void 0&&(F=Math.min(m,C.request.endRow)-C.request.startRow,F>0)){const Z=await t.getData(e,B,{offset:C.request.startRow,length:F});O=VT(u,Z,N,C.request.startRow)}C.success({rowData:O,rowCount:m}),C.api.autoSizeAllColumns(),C.api.setGridOption("loading",!1)}catch(F){C.api.setGridOption("loading",!0),C.fail(),console.trace(F)}}}}}const _p=_m(),PT=["onClick"],vp=r.defineComponent({__name:"PlAgGridColumnManager",props:{api:{}},setup(t){const e=t,{api:n}=r.toRefs(e),o=r.ref([]),s=r.ref(),l=r.ref(!1),c=r.ref(0);dp(s,{handle:".handle",onChange(p){n.value.moveColumns(p.map(f=>o.value[f]),0)}});function u(p){n.value.setColumnsVisible([p],!p.isVisible())}return r.onMounted(()=>{n.value.addEventListener("displayedColumnsChanged",()=>{o.value=[...n.value.getAllGridColumns()??[]],c.value++}),o.value=n.value.getAllGridColumns()??[]}),(p,f)=>(r.openBlock(),r.createElementBlock("div",null,[(r.openBlock(),r.createBlock(r.Teleport,{to:`#${r.unref(_p)}`},[r.createVNode(r.unref(ys),{onClick:f[0]||(f[0]=r.withModifiers(m=>l.value=!l.value,["stop"]))},{append:r.withCtx(()=>[r.createVNode(r.unref(ln),{name:"columns"})]),default:r.withCtx(()=>[f[2]||(f[2]=r.createTextVNode(" Columns "))]),_:1})],8,["to"])),r.createVNode(r.unref(Ou),{modelValue:l.value,"onUpdate:modelValue":f[1]||(f[1]=m=>l.value=m),shadow:!0,width:"368px","close-on-outside-click":""},{title:r.withCtx(()=>f[3]||(f[3]=[r.createTextVNode("Columns")])),default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("div",{ref_key:"listRef",ref:s,key:c.value,class:"pl-ag-columns"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,m=>(r.openBlock(),r.createElementBlock("div",{key:m.getId(),class:"pl-ag-columns__item"},[r.createElementVNode("div",{class:r.normalizeClass([{handle:!m.getColDef().lockPosition},"pl-ag-columns__drag"])},[r.createVNode(r.unref($n),{name:"drag-dots"})],2),r.createElementVNode("div",{class:r.normalizeClass([{visible:m.isVisible()},"pl-ag-columns__title"])},r.toDisplayString(m.getColDef().headerName),3),r.createElementVNode("div",{class:"pl-ag-columns__visibility",onClick:y=>u(m)},[r.createVNode(r.unref(vt),{"close-delay":500,position:"top"},{tooltip:r.withCtx(()=>f[4]||(f[4]=[r.createTextVNode("Show/Hide")])),default:r.withCtx(()=>[r.createVNode(r.unref(ln),{name:m.isVisible()?"view-show":"view-hide"},null,8,["name"])]),_:2},1024)],8,PT)]))),128))]))]),_:1},8,["modelValue"])]))}}),DT=["id"],FT=r.defineComponent({__name:"PlAgDataTableToolsPanel",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{id:r.unref(_p),class:"d-flex gap-6"},[r.renderSlot(e.$slots,"default")],8,DT))}}),RT={class:"ap-ag-data-table-container"},MT={key:1,class:"ap-ag-data-table-sheets"},IT=Ns(r.defineComponent({__name:"PlAgDataTable",props:r.mergeModels({settings:{},showColumnsPanel:{type:Boolean}},{modelValue:{default:{gridState:{}}},modelModifiers:{}}),emits:r.mergeModels(["onRowDoubleClicked","columnsChanged"],["update:modelValue"]),setup(t,{expose:e,emit:n}){x.ModuleRegistry.registerModules([rs.ClientSideRowModelModule,dd.ClipboardModule,cd.ServerSideRowModelModule,ud.RangeSelectionModule,qa,eu]);const o=r.useModel(t,"modelValue"),s=t,{settings:l}=r.toRefs(s),c=n;r.watch(()=>l.value,async(S,w)=>{if(S.sourceType!=="pframe"||!S.pFrame||!S.join||w&&w.sourceType==="pframe"&&Ge.isEqual(S.pFrame,w.pFrame)&&Ge.isEqual(S.join,w.join))return;const k=window.platforma;if(!k)throw Error("platforma not set");const $=k.pFrameDriver;if(!$)throw Error("platforma.pFrameDriver not set");const te=await TT($,S.pFrame,S.join),ne=o.value;ne.pTableParams||(ne.pTableParams={sorting:[],filters:[]}),ne.pTableParams.join=te,o.value=ne});const u=Cp(()=>l.value.sourceType,async S=>{var k;const w=l.value.sourceType;switch(w){case"pframe":{const $=window.platforma;if(!$)throw Error("platforma not set");const te=$.pFrameDriver;if(!te)throw Error("platforma.pFrameDriver not set");if(!l.value.pFrame)return[];const ne=l.value.pFrame,be=(k=o.value.pTableParams)==null?void 0:k.join;return be?await BT(te,ne,l.value.sheetAxes,be):[]}case"ptable":return l.value.sheets??[];case"xsv":return[];default:throw Error(`unsupported source type: ${w}`)}});function p(S){if(!(l.value.sourceType!=="ptable"&&l.value.sourceType!=="pframe"))return(S==null?void 0:S.sortModel.map(w=>{const{spec:k,...$}=fp(w.colId);return{column:$,ascending:w.sort==="asc",naAndAbsentAreLeastValues:!0}}))??[]}const f=r.computed({get:()=>{const S=o.value;return{columnOrder:S.gridState.columnOrder,sort:S.gridState.sort,columnVisibility:S.gridState.columnVisibility}},set:S=>{const w=o.value,k=N.value.rowModelType==="clientSide"?void 0:p(S.sort);w.gridState={...w.gridState,...S},(l.value.sourceType==="ptable"||l.value.sourceType==="pframe")&&(w.pTableParams||(w.pTableParams={sorting:[],filters:[]}),w.pTableParams.sorting=k),o.value=w}}),m=S=>Lr(S);function y(S){var w;if(!(l.value.sourceType!=="ptable"&&l.value.sourceType!=="pframe"))return((w=u.value)==null?void 0:w.map(k=>({type:"bySingleColumn",column:k.column?{type:"column",id:k.column}:{type:"axis",id:k.axis},predicate:{operator:"Equal",reference:S[m(k.axis)]}})))??[]}const B=r.computed({get:()=>o.value.gridState.sheets??{},set:S=>{const w=y(S),k=o.value;k.gridState.sheets=S,(l.value.sourceType==="ptable"||l.value.sourceType==="pframe")&&(k.pTableParams||(k.pTableParams={sorting:[],filters:[]}),k.pTableParams.filters=w),o.value=k}});r.watch(()=>[l.value,u.value],(S,w)=>{const[k,$]=S;if(!$)return;if(w){const[ne,be]=w;if((k.sourceType==="ptable"||k.sourceType==="pframe")&&k.sourceType===(ne==null?void 0:ne.sourceType)&&Ge.isEqual($,be))return}if(k.sourceType!=="ptable"&&k.sourceType!=="pframe"){B.value={};return}const te=B.value;for(const ne of $){const be=m(ne.axis);te[be]||(te[be]=ne.defaultValue??ne.options[0].value)}B.value=te},{immediate:!0});const T=r.shallowRef(),N=r.shallowRef({animateRows:!1,suppressColumnMoveAnimation:!0,cellSelection:!0,initialState:f.value,autoSizeStrategy:{type:"fitCellContents"},onRowDataUpdated:S=>{S.api.autoSizeAllColumns()},onRowDoubleClicked:S=>{S.data&&c("onRowDoubleClicked",S.data.key)},defaultColDef:{suppressHeaderMenuButton:!0},maintainColumnOrder:!0,localeText:{loadingError:"..."},rowModelType:"clientSide",maxBlocksInCache:1e3,cacheBlockSize:100,blockLoadDebounceMillis:500,serverSideSortAllLevels:!0,suppressServerSideFullWidthLoadingRow:!0,getRowId:S=>S.data.id,loading:!0,loadingOverlayComponentParams:{notReady:!0},loadingOverlayComponent:up,noRowsOverlayComponent:pp,sideBar:{},defaultCsvExportParams:{allColumns:!0,suppressQuotes:!0,fileName:"table.csv"}}),M=S=>{const w=S.api;T.value=new Proxy(w,{get(k,$,te){switch($){case"setGridOption":return(ne,be)=>{const $e=N.value;$e[ne]=be,N.value=$e,w.setGridOption(ne,be)};case"updateGridOptions":return ne=>{N.value={...N.value,...ne},w.updateGridOptions(ne)};default:return Reflect.get(k,$,te)}}})},G=S=>({columnOrder:S.columnOrder,sort:S.sort,columnVisibility:S.columnVisibility??(S.columnOrder?{hiddenColIds:[]}:void 0)}),C=S=>{N.value.initialState=f.value=G(S.state),S.api.autoSizeAllColumns()},F=()=>{N.value.initialState=f.value=G(T.value.getState()),T.value=void 0};let O=!1;const Z=()=>{if(!O)return;const S=T.value;S!==void 0&&(S.exportDataAsCsv(),O=!1,S.setGridOption("cacheBlockSize",100))},I=()=>{if(!O)return;const S=T.value;if(S===void 0)return;const w=S.getServerSideGroupLevelState()[0];w.cacheBlockSize===w.rowCount&&S.refreshServerSide({route:w.route,purge:!1})};e({exportCsv:async()=>{const S=T.value;if(S!==void 0){if(N.value.rowModelType==="clientSide"){S.exportDataAsCsv();return}if(N.value.rowModelType==="serverSide"){const w=S.getServerSideGroupLevelState()[0];if(w.rowCount<=w.cacheBlockSize){S.exportDataAsCsv();return}O||(O=!0,S.setGridOption("cacheBlockSize",w.rowCount))}}}});const W=r.ref(0);r.watch(()=>[T.value,f.value],(S,w)=>{if(Ge.isEqual(S,w))return;const[k,$]=S;if(!k)return;const te=G(k.getState());Ge.isEqual($,te)||(N.value.initialState=$,++W.value)}),r.watch(()=>N.value,(S,w)=>{var k;if(w&&(S.rowModelType!=w.rowModelType&&++W.value,!Ge.isEqual(S.columnDefs,w.columnDefs)&&S.columnDefs)){const $=be=>!("children"in be),te=(k=S.columnDefs)==null?void 0:k.filter($),ne=te==null?void 0:te.map(be=>be.colId).filter(be=>be!==void 0).map(be=>fp(be));c("columnsChanged",ne??[])}});const P=(S,w)=>{var $;const k=B.value;k[S]!==w&&(k[S]=w,B.value=k,($=T.value)==null||$.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1}}))},j=window.platforma;if(!j)throw Error("platforma not set");const U=j.pFrameDriver;if(!U)throw Error("platforma.pFrameDriver not set");const X=j.blobDriver;if(!X)throw Error("platforma.blobDriver not set");let L;return r.watch(()=>[T.value,l.value,u.value],async S=>{var ne,be;const[w,k,$]=S;if(!w||Ge.isEqual(k,L))return;L=k;const te=k.sourceType;switch(te){case"pframe":case"ptable":{const $e=k.pTable;if(!$e||!$)return w.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const ot=(be=(ne=f.value)==null?void 0:ne.columnVisibility)==null?void 0:be.hiddenColIds,Cn=await AT(U,$e,$,ot);return w.updateGridOptions({loading:Cn.rowModelType!=="clientSide",loadingOverlayComponentParams:{notReady:!1},...Cn})}case"xsv":{const $e=k.xsvFile;if(!($e!=null&&$e.ok)||!$e.value)return w.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const ot=await vT(X,$e.value);return w.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1},...ot})}default:throw Error(`unsupported source type: ${te}`)}}),(S,w)=>(r.openBlock(),r.createElementBlock("div",RT,[T.value&&S.showColumnsPanel?(r.openBlock(),r.createBlock(r.unref(vp),{key:0,api:T.value},null,8,["api"])):r.createCommentVNode("",!0),r.unref(u).value&&r.unref(u).value.length>0?(r.openBlock(),r.createElementBlock("div",MT,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u).value,(k,$)=>(r.openBlock(),r.createBlock(r.unref(Iu),{key:$,"model-value":B.value[m(k.axis)],options:k.options,"onUpdate:modelValue":te=>P(m(k.axis),te)},null,8,["model-value","options","onUpdate:modelValue"]))),128))])):r.createCommentVNode("",!0),(r.openBlock(),r.createBlock(r.unref(fm.AgGridVue),{key:W.value,theme:r.unref(nu),class:"ap-ag-data-table-grid","grid-options":N.value,onGridReady:M,onStateUpdated:C,onGridPreDestroyed:F,onStoreRefreshed:Z,onModelUpdated:I},null,8,["theme","grid-options"]))]))}}),[["__scopeId","data-v-57cd8612"]]),LT={key:0,class:"d-flex gap-10 flex-column"},OT={key:0},GT=Ns(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:o,restrictions:s,defaults:l}=r.toRefs(n),c=L=>Lr(L.id),u=r.computed(()=>o.value.filter(L=>{const S=L.type;switch(S){case"axis":return L.spec.type!=="Bytes";case"column":return L.spec.valueType!=="Bytes";default:throw Error(`unsupported data type: ${S}`)}}).map(L=>({column:L,id:c(L)}))),p=r.computed(()=>{const L=s.value??[],S={};for(const{column:w,id:k}of u.value){const $=Ge.find(L,te=>Ge.isEqual(te.column.id,w.id));$!==void 0&&(S[k]=$.allowedFilterTypes)}return S}),f=r.computed(()=>{const L=l.value??[],S={};for(const{column:w,id:k}of u.value){const $=Ge.find(L,te=>Ge.isEqual(te.column.id,w.id));$!==void 0&&(S[k]=$.default)}return S}),m=L=>L!==void 0?L:f.value,y=r.reactive({state:m(e.value.state)});r.watch(()=>e.value,L=>{Ge.isEqual(y.state,L.state)||(y.state=m(L.state))}),r.watch(()=>u.value,L=>{if(y.state!==void 0&&L.length===0)return;const S=y.state??{},w={};for(const{id:k}of L)S[k]!==void 0&&(w[k]=S[k]);y.state=w},{immediate:!0});const B=L=>{switch(L){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: ${L}`)}},T=["isNotNA","isNA","number_equals","number_notEquals","number_greaterThan","number_greaterThanOrEqualTo","number_lessThan","number_lessThanOrEqualTo","number_between"],N=["isNotNA","isNA","string_equals","string_notEquals","string_contains","string_doesNotContain","string_matches","string_doesNotMatch","string_containsFuzzyMatch"],M=r.computed(()=>{const L=p.value,S={};for(const{column:w,id:k}of u.value){let te=(w.type==="column"?w.spec.valueType:w.spec.type)==="String"?N:T;const ne=L[k];ne!==void 0&&(te=te.filter(be=>ne.includes(be))),S[k]=te.map(be=>({value:be,text:B(be)}))}return S}),G=r.computed(()=>Ge.some(Object.values(M.value),L=>L.length>0)),C=L=>{const S=L.type;switch(S){case"isNotNA":case"isNA":return;case"number_equals":case"number_notEquals":case"number_greaterThan":case"number_greaterThanOrEqualTo":case"number_lessThan":case"number_lessThanOrEqualTo":return L.reference;case"number_between":return L.lowerBound;case"string_equals":case"string_notEquals":case"string_contains":case"string_doesNotContain":case"string_matches":case"string_doesNotMatch":case"string_containsFuzzyMatch":return L.reference;default:throw Error(`unsupported filter type: ${S}`)}},F=(L,S)=>{switch(L){case"isNotNA":case"isNA":return{type:L};case"number_equals":case"number_notEquals":case"number_greaterThan":case"number_greaterThanOrEqualTo":case"number_lessThan":case"number_lessThanOrEqualTo":return{type:L,reference:typeof S=="number"?S:0};case"number_between":return{type:L,lowerBound:typeof S=="number"?S: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:L,reference:typeof S=="string"?S:""};case"string_containsFuzzyMatch":return{type:L,reference:typeof S=="string"?S:"",maxEdits:2,substitutionsOnly:!1,wildcard:void 0};default:throw Error(`unsupported filter type: ${L}`)}},O=(L,S)=>{const w=y.state[L];y.state[L]=F(S,C(w))},Z=L=>{y.state[L]=f.value[L]??F(M.value[L][0].value)},I=(L,S)=>{S?Z(L):delete y.state[L]},Y=(L,S)=>{var ne,be;const w=Number(S);if(!Number.isFinite(w))throw Error("Model value is not a number.");const k=L.type==="column"?L.spec.valueType:L.spec.type;if((k==="Int"||k==="Long")&&!Number.isInteger(w))throw Error("Model value is not an integer.");const $=(ne=L.spec.annotations)==null?void 0:ne["pl7.app/min"];if($!==void 0){const $e=Number($);if(Number.isFinite($e)&&w<Number($))throw Error("Model value is too low.")}const te=(be=L.spec.annotations)==null?void 0:be["pl7.app/max"];if(te!==void 0){const $e=Number(te);if(Number.isFinite($e)&&w>Number(te))throw Error("Model value is too high.")}return w},W=(L,S)=>{var k,$;const w=((k=L.spec.domain)==null?void 0:k["pl7.app/alphabet"])??(($=L.spec.annotations)==null?void 0:$["pl7.app/alphabet"]);if(w==="nucleotide"&&!/^[AaTtGgCcNn]+$/.test(S))throw Error("Model value is not a nucleotide.");if(w==="aminoacid"&&!/^[AaCcDdEeFfGgHhIiKkLlMmNnPpQqRrSsTtVvWwYyXx]+$/.test(S))throw Error("Model value is not an aminoacid.");return S},P=L=>{try{return new RegExp(L),L}catch(S){throw S instanceof SyntaxError?Error("Model value is not a regexp."):S}},j=(L,S)=>{var $,te;const w=(($=L.spec.domain)==null?void 0:$["pl7.app/alphabet"])??((te=L.spec.annotations)==null?void 0:te["pl7.app/alphabet"]);if(w==="nucleotide")return[{value:"N",text:"N"}];if(w==="aminoacid")return[{value:"X",text:"X"}];const k=Ge.uniq(S);return k.sort(),k.map(ne=>({value:ne,text:ne}))},U=L=>{const S=L.type;switch(S){case"isNotNA":return{operator:"Not",operand:{operator:"IsNA"}};case"isNA":return{operator:"IsNA"};case"number_equals":case"string_equals":return{operator:"Equal",reference:L.reference};case"number_notEquals":case"string_notEquals":return{operator:"Not",operand:{operator:"Equal",reference:L.reference}};case"number_greaterThan":return{operator:"Greater",reference:L.reference};case"number_greaterThanOrEqualTo":return{operator:"GreaterOrEqual",reference:L.reference};case"number_lessThan":return{operator:"Less",reference:L.reference};case"number_lessThanOrEqualTo":return{operator:"LessOrEqual",reference:L.reference};case"number_between":return{operator:"And",operands:[{operator:L.includeLowerBound?"GreaterOrEqual":"Greater",reference:L.lowerBound},{operator:L.includeUpperBound?"LessOrEqual":"Less",reference:L.upperBound}]};case"string_contains":return{operator:"StringContains",substring:L.reference};case"string_doesNotContain":return{operator:"Not",operand:{operator:"StringContains",substring:L.reference}};case"string_matches":return{operator:"Matches",regex:L.reference};case"string_doesNotMatch":return{operator:"Not",operand:{operator:"Matches",regex:L.reference}};case"string_containsFuzzyMatch":return{operator:"StringContainsFuzzy",reference:L.reference,maxEdits:L.maxEdits,substitutionsOnly:L.substitutionsOnly,wildcard:L.wildcard};default:throw Error(`unsupported filter type: ${S}`)}},X=L=>u.value.map(({column:S,id:w})=>{if(!(w in L))return;const k=U(L[w]),{spec:$,...te}=S;return{type:"bySingleColumn",column:te,predicate:k}}).filter(S=>S!==void 0);return r.watch(()=>y,L=>{Ge.isEqual(L.state,e.value.state)||(e.value={state:Ge.cloneDeep(L.state),filters:X(L.state)})},{immediate:!0,deep:!0}),(L,S)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,({column:w,id:k},$)=>{var te,ne,be,$e,ot,Cn,Mn,xr,Hn,Yr,Rs,kr,Sr,Ms;return r.openBlock(),r.createElementBlock("div",{key:k},[M.value[k].length>0?(r.openBlock(),r.createElementBlock("form",LT,[r.createVNode(r.unref(Lu),{"model-value":!!y.state[k],"onUpdate:modelValue":Se=>I(k,Se)},{default:r.withCtx(()=>{var Se,Jr;return[r.createTextVNode(r.toDisplayString(((Jr=(Se=w.spec.annotations)==null?void 0:Se["pl7.app/label"])==null?void 0:Jr.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[k]}])},[y.state[k]?(r.openBlock(),r.createBlock(r.unref(mi),{key:0,"model-value":y.state[k].type,options:M.value[k],label:"Predicate","onUpdate:modelValue":Se=>O(k,Se)},null,8,["model-value","options","onUpdate:modelValue"])):r.createCommentVNode("",!0),((te=y.state[k])==null?void 0:te.type)==="number_equals"||((ne=y.state[k])==null?void 0:ne.type)==="number_notEquals"||((be=y.state[k])==null?void 0:be.type)==="number_lessThan"||(($e=y.state[k])==null?void 0:$e.type)==="number_lessThanOrEqualTo"||((ot=y.state[k])==null?void 0:ot.type)==="number_greaterThan"||((Cn=y.state[k])==null?void 0:Cn.type)==="number_greaterThanOrEqualTo"?(r.openBlock(),r.createBlock(r.unref(hr),{key:1,modelValue:y.state[k].reference,"onUpdate:modelValue":Se=>y.state[k].reference=Se,parse:Se=>Y(w,Se),label:"Reference value"},null,8,["modelValue","onUpdate:modelValue","parse"])):r.createCommentVNode("",!0),((Mn=y.state[k])==null?void 0:Mn.type)==="number_between"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[r.createVNode(r.unref(hr),{modelValue:y.state[k].lowerBound,"onUpdate:modelValue":Se=>y.state[k].lowerBound=Se,parse:Se=>Y(w,Se),label:"Lower bound"},null,8,["modelValue","onUpdate:modelValue","parse"]),r.createVNode(r.unref(Cs),{modelValue:y.state[k].includeLowerBound,"onUpdate:modelValue":Se=>y.state[k].includeLowerBound=Se,label:"Include lower bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(hr),{modelValue:y.state[k].upperBound,"onUpdate:modelValue":Se=>y.state[k].upperBound=Se,parse:Se=>Y(w,Se),label:"Upper bound"},null,8,["modelValue","onUpdate:modelValue","parse"]),r.createVNode(r.unref(Cs),{modelValue:y.state[k].includeUpperBound,"onUpdate:modelValue":Se=>y.state[k].includeUpperBound=Se,label:"Include upper bound"},null,8,["modelValue","onUpdate:modelValue"])],64)):r.createCommentVNode("",!0),((xr=y.state[k])==null?void 0:xr.type)==="string_equals"||((Hn=y.state[k])==null?void 0:Hn.type)==="string_notEquals"||((Yr=y.state[k])==null?void 0:Yr.type)==="string_contains"||((Rs=y.state[k])==null?void 0:Rs.type)==="string_doesNotContain"?(r.openBlock(),r.createBlock(r.unref(hr),{key:3,modelValue:y.state[k].reference,"onUpdate:modelValue":Se=>y.state[k].reference=Se,parse:Se=>W(w,Se),label:"Reference value"},null,8,["modelValue","onUpdate:modelValue","parse"])):r.createCommentVNode("",!0),((kr=y.state[k])==null?void 0:kr.type)==="string_matches"||((Sr=y.state[k])==null?void 0:Sr.type)==="string_doesNotMatch"?(r.openBlock(),r.createBlock(r.unref(hr),{key:4,modelValue:y.state[k].reference,"onUpdate:modelValue":Se=>y.state[k].reference=Se,parse:P,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"])):r.createCommentVNode("",!0),((Ms=y.state[k])==null?void 0:Ms.type)==="string_containsFuzzyMatch"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:5},[r.createVNode(r.unref(hr),{modelValue:y.state[k].reference,"onUpdate:modelValue":Se=>y.state[k].reference=Se,parse:Se=>W(w,Se),label:"Reference value"},null,8,["modelValue","onUpdate:modelValue","parse"]),r.createVNode(r.unref(ap),{modelValue:y.state[k].maxEdits,"onUpdate:modelValue":Se=>y.state[k].maxEdits=Se,max:5,breakpoints:"",label:"Maximum nuber of substitutions and indels"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(Cs),{modelValue:y.state[k].substitutionsOnly,"onUpdate:modelValue":Se=>y.state[k].substitutionsOnly=Se,label:"Substitutions only"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(mi),{modelValue:y.state[k].wildcard,"onUpdate:modelValue":Se=>y.state[k].wildcard=Se,options:j(w,y.state[k].reference),clearable:"",label:"Wildcard symbol"},null,8,["modelValue","onUpdate:modelValue","options"])],64)):r.createCommentVNode("",!0)],2)])):r.createCommentVNode("",!0)])}),128)),G.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",OT,"No filters applicable"))],64))}}),[["__scopeId","data-v-6cb52299"]]),zT={key:1,class:"alert-error"},$T={key:2},ZT=r.defineComponent({__name:"ValueOrErrorsComponent",props:{valueOrError:{}},setup(t){const e=t,n=r.computed(()=>e.valueOrError&&e.valueOrError.ok?e.valueOrError.value:void 0),o=r.computed(()=>e.valueOrError&&!e.valueOrError.ok?e.valueOrError.errors:void 0),s=r.computed(()=>n.value===void 0&&o.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),o.value?(r.openBlock(),r.createElementBlock("div",zT,r.toDisplayString(o.value),1)):r.createCommentVNode("",!0),s.value?(r.openBlock(),r.createElementBlock("div",$T,"Unresolved")):r.createCommentVNode("",!0)]))}}),UT={style:{height:"100%"}},WT=r.defineComponent({__name:"PlAgCellFile",props:{params:{}},setup(t){const e=t,n=r.computed(()=>e.params.extensions),o=r.computed(()=>e.params.value);function s(c){e.params.setValue(c)}const l=r.computed(()=>e.params.resolveProgress?e.params.resolveProgress(o.value):void 0);return(c,u)=>(r.openBlock(),r.createElementBlock("div",UT,[r.createVNode(r.unref(ip),{"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":o.value,progress:l.value,"onUpdate:modelValue":s},null,8,["placeholder","extensions","model-value","progress"])]))}}),HT={class:"pl-ag-grid-open-cell d-flex"},jT={class:"pl-ag-grid-open-cell__value"},qT=r.defineComponent({__name:"PlAgTextAndButtonCell",props:{params:{}},setup(t){const e=t;function n(){if(e.params.invokeRowsOnDoubleClick){const o=e.params.api,s={rowPinned:e.params.node.rowPinned,api:o,rowIndex:e.params.node.rowIndex,context:o,type:"rowDoubleClicked",node:e.params.node,data:e.params.data,event:null};o.dispatchEvent(s)}else e.params.onClick&&e.params.onClick(e.params)}return(o,s)=>(r.openBlock(),r.createElementBlock("div",HT,[r.createElementVNode("div",jT,r.toDisplayString(o.params.value),1),r.createElementVNode("div",{class:"pl-ag-grid-open-cell__activator text-caps11 align-center",onClick:r.withModifiers(n,["stop"])},[r.createVNode(r.unref($n),{name:o.params.icon??"maximize"},null,8,["name"]),r.createTextVNode(" "+r.toDisplayString(o.params.btnLabel??"Open"),1)])]))}}),Ps=new Map;function KT(t,e){const n=r.getCurrentScope()??r.effectScope(),o=n.run(()=>(r.onScopeDispose(()=>{Ps.delete(t)}),r.reactive(e())));return o[Symbol.dispose]=()=>{n.stop()},o}function YT(t){const e=Symbol();return()=>(Ps.has(e)||Ps.set(e,KT(e,t)),Ps.get(e))}function JT(t){return r.computed(()=>{try{return yd(t())}catch(e){return{errors:[String(e)],value:void 0}}})}function Cp(t,e,n){const o=r.ref(0),s=r.reactive({loading:r.computed(()=>o.value>0),loadingRef:o,value:void 0,error:void 0}),l=Cm(e);return r.watch(t,async c=>{s.error=void 0,o.value++,l(c).then(u=>{u.ok&&(s.value=u.value)}).catch(u=>{s.value=void 0,s.error=u}).finally(()=>{o.value--})},Object.assign({immediate:!0,deep:!0},n??{})),s}const ko=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,wp=new Set,Pl=typeof process=="object"&&process?process:{},bp=(t,e,n,o)=>{typeof Pl.emitWarning=="function"?Pl.emitWarning(t,e,n,o):console.error(`[${n}] ${e}: ${t}`)};let Ds=globalThis.AbortController,xp=globalThis.AbortSignal;if(typeof Ds>"u"){xp=class{constructor(){Ue(this,"onabort");Ue(this,"_onabort",[]);Ue(this,"reason");Ue(this,"aborted",!1)}addEventListener(o,s){this._onabort.push(s)}},Ds=class{constructor(){Ue(this,"signal",new xp);e()}abort(o){var s,l;if(!this.signal.aborted){this.signal.reason=o,this.signal.aborted=!0;for(const c of this.signal._onabort)c(o);(l=(s=this.signal).onabort)==null||l.call(s,o)}}};let t=((Sp=Pl.env)==null?void 0:Sp.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{t&&(t=!1,bp("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 XT=t=>!wp.has(t),wr=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),kp=t=>wr(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Fs:null:null;class Fs extends Array{constructor(e){super(e),this.fill(0)}}const Hr=class Hr{constructor(e,n){Ue(this,"heap");Ue(this,"length");if(!b(Hr,So))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}static create(e){const n=kp(e);if(!n)return[];me(Hr,So,!0);const o=new Hr(e,n);return me(Hr,So,!1),o}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};So=new WeakMap,ze(Hr,So,!1);let Dl=Hr;const Ml=class Ml{constructor(e){ze(this,re);ze(this,pn);ze(this,Ot);ze(this,hn);ze(this,fn);ze(this,Eo);ze(this,To);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");ze(this,ct);ze(this,mn);ze(this,at);ze(this,Ke);ze(this,xe);ze(this,Tt);ze(this,Gt);ze(this,bt);ze(this,ht);ze(this,gn);ze(this,ft);ze(this,yn);ze(this,_n);ze(this,zt);ze(this,vn);ze(this,br);ze(this,Bt);ze(this,jr,()=>{});ze(this,Wn,()=>{});ze(this,Fi,()=>{});ze(this,$t,()=>!1);ze(this,qr,e=>{});ze(this,Bo,(e,n,o)=>{});ze(this,Ri,(e,n,o,s)=>{if(o||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Ue(this,Ep,"LRUCache");const{max:n=0,ttl:o,ttlResolution:s=1,ttlAutopurge:l,updateAgeOnGet:c,updateAgeOnHas:u,allowStale:p,dispose:f,disposeAfter:m,noDisposeOnSet:y,noUpdateTTL:B,maxSize:T=0,maxEntrySize:N=0,sizeCalculation:M,fetchMethod:G,memoMethod:C,noDeleteOnFetchRejection:F,noDeleteOnStaleGet:O,allowStaleOnFetchRejection:Z,allowStaleOnFetchAbort:I,ignoreFetchAbort:Y}=e;if(n!==0&&!wr(n))throw new TypeError("max option must be a nonnegative integer");const W=n?kp(n):Array;if(!W)throw new Error("invalid max value: "+n);if(me(this,pn,n),me(this,Ot,T),this.maxEntrySize=N||b(this,Ot),this.sizeCalculation=M,this.sizeCalculation){if(!b(this,Ot)&&!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(me(this,To,C),G!==void 0&&typeof G!="function")throw new TypeError("fetchMethod must be a function if specified");if(me(this,Eo,G),me(this,br,!!G),me(this,at,new Map),me(this,Ke,new Array(n).fill(void 0)),me(this,xe,new Array(n).fill(void 0)),me(this,Tt,new W(n)),me(this,Gt,new W(n)),me(this,bt,0),me(this,ht,0),me(this,gn,Dl.create(n)),me(this,ct,0),me(this,mn,0),typeof f=="function"&&me(this,hn,f),typeof m=="function"?(me(this,fn,m),me(this,ft,[])):(me(this,fn,void 0),me(this,ft,void 0)),me(this,vn,!!b(this,hn)),me(this,Bt,!!b(this,fn)),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!B,this.noDeleteOnFetchRejection=!!F,this.allowStaleOnFetchRejection=!!Z,this.allowStaleOnFetchAbort=!!I,this.ignoreFetchAbort=!!Y,this.maxEntrySize!==0){if(b(this,Ot)!==0&&!wr(b(this,Ot)))throw new TypeError("maxSize must be a positive integer if specified");if(!wr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");de(this,re,lm).call(this)}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!O,this.updateAgeOnGet=!!c,this.updateAgeOnHas=!!u,this.ttlResolution=wr(s)||s===0?s:1,this.ttlAutopurge=!!l,this.ttl=o||0,this.ttl){if(!wr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");de(this,re,id).call(this)}if(b(this,pn)===0&&this.ttl===0&&b(this,Ot)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!b(this,pn)&&!b(this,Ot)){const P="LRU_CACHE_UNBOUNDED";XT(P)&&(wp.add(P),bp("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",P,Ml))}}static unsafeExposeInternals(e){return{starts:b(e,_n),ttls:b(e,zt),sizes:b(e,yn),keyMap:b(e,at),keyList:b(e,Ke),valList:b(e,xe),next:b(e,Tt),prev:b(e,Gt),get head(){return b(e,bt)},get tail(){return b(e,ht)},free:b(e,gn),isBackgroundFetch:n=>{var o;return de(o=e,re,Je).call(o,n)},backgroundFetch:(n,o,s,l)=>{var c;return de(c=e,re,Ba).call(c,n,o,s,l)},moveToTail:n=>{var o;return de(o=e,re,ns).call(o,n)},indexes:n=>{var o;return de(o=e,re,Rr).call(o,n)},rindexes:n=>{var o;return de(o=e,re,Mr).call(o,n)},isStale:n=>{var o;return b(o=e,$t).call(o,n)}}}get max(){return b(this,pn)}get maxSize(){return b(this,Ot)}get calculatedSize(){return b(this,mn)}get size(){return b(this,ct)}get fetchMethod(){return b(this,Eo)}get memoMethod(){return b(this,To)}get dispose(){return b(this,hn)}get disposeAfter(){return b(this,fn)}getRemainingTTL(e){return b(this,at).has(e)?1/0:0}*entries(){for(const e of de(this,re,Rr).call(this))b(this,xe)[e]!==void 0&&b(this,Ke)[e]!==void 0&&!de(this,re,Je).call(this,b(this,xe)[e])&&(yield[b(this,Ke)[e],b(this,xe)[e]])}*rentries(){for(const e of de(this,re,Mr).call(this))b(this,xe)[e]!==void 0&&b(this,Ke)[e]!==void 0&&!de(this,re,Je).call(this,b(this,xe)[e])&&(yield[b(this,Ke)[e],b(this,xe)[e]])}*keys(){for(const e of de(this,re,Rr).call(this)){const n=b(this,Ke)[e];n!==void 0&&!de(this,re,Je).call(this,b(this,xe)[e])&&(yield n)}}*rkeys(){for(const e of de(this,re,Mr).call(this)){const n=b(this,Ke)[e];n!==void 0&&!de(this,re,Je).call(this,b(this,xe)[e])&&(yield n)}}*values(){for(const e of de(this,re,Rr).call(this))b(this,xe)[e]!==void 0&&!de(this,re,Je).call(this,b(this,xe)[e])&&(yield b(this,xe)[e])}*rvalues(){for(const e of de(this,re,Mr).call(this))b(this,xe)[e]!==void 0&&!de(this,re,Je).call(this,b(this,xe)[e])&&(yield b(this,xe)[e])}[(Tp=Symbol.iterator,Ep=Symbol.toStringTag,Tp)](){return this.entries()}find(e,n={}){for(const o of de(this,re,Rr).call(this)){const s=b(this,xe)[o],l=de(this,re,Je).call(this,s)?s.__staleWhileFetching:s;if(l!==void 0&&e(l,b(this,Ke)[o],this))return this.get(b(this,Ke)[o],n)}}forEach(e,n=this){for(const o of de(this,re,Rr).call(this)){const s=b(this,xe)[o],l=de(this,re,Je).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,b(this,Ke)[o],this)}}rforEach(e,n=this){for(const o of de(this,re,Mr).call(this)){const s=b(this,xe)[o],l=de(this,re,Je).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,b(this,Ke)[o],this)}}purgeStale(){let e=!1;for(const n of de(this,re,Mr).call(this,{allowStale:!0}))b(this,$t).call(this,n)&&(de(this,re,Ir).call(this,b(this,Ke)[n],"expire"),e=!0);return e}info(e){const n=b(this,at).get(e);if(n===void 0)return;const o=b(this,xe)[n],s=de(this,re,Je).call(this,o)?o.__staleWhileFetching:o;if(s===void 0)return;const l={value:s};if(b(this,zt)&&b(this,_n)){const c=b(this,zt)[n],u=b(this,_n)[n];if(c&&u){const p=c-(ko.now()-u);l.ttl=p,l.start=Date.now()}}return b(this,yn)&&(l.size=b(this,yn)[n]),l}dump(){const e=[];for(const n of de(this,re,Rr).call(this,{allowStale:!0})){const o=b(this,Ke)[n],s=b(this,xe)[n],l=de(this,re,Je).call(this,s)?s.__staleWhileFetching:s;if(l===void 0||o===void 0)continue;const c={value:l};if(b(this,zt)&&b(this,_n)){c.ttl=b(this,zt)[n];const u=ko.now()-b(this,_n)[n];c.start=Math.floor(Date.now()-u)}b(this,yn)&&(c.size=b(this,yn)[n]),e.unshift([o,c])}return e}load(e){this.clear();for(const[n,o]of e){if(o.start){const s=Date.now()-o.start;o.start=ko.now()-s}this.set(n,o.value,o)}}set(e,n,o={}){var B,T,N,M,G;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}=o;let{noUpdateTTL:f=this.noUpdateTTL}=o;const m=b(this,Ri).call(this,e,n,o.size||0,u);if(this.maxEntrySize&&m>this.maxEntrySize)return p&&(p.set="miss",p.maxEntrySizeExceeded=!0),de(this,re,Ir).call(this,e,"set"),this;let y=b(this,ct)===0?void 0:b(this,at).get(e);if(y===void 0)y=b(this,ct)===0?b(this,ht):b(this,gn).length!==0?b(this,gn).pop():b(this,ct)===b(this,pn)?de(this,re,Ta).call(this,!1):b(this,ct),b(this,Ke)[y]=e,b(this,xe)[y]=n,b(this,at).set(e,y),b(this,Tt)[b(this,ht)]=y,b(this,Gt)[y]=b(this,ht),me(this,ht,y),Ea(this,ct)._++,b(this,Bo).call(this,y,m,p),p&&(p.set="add"),f=!1;else{de(this,re,ns).call(this,y);const C=b(this,xe)[y];if(n!==C){if(b(this,br)&&de(this,re,Je).call(this,C)){C.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:F}=C;F!==void 0&&!c&&(b(this,vn)&&((B=b(this,hn))==null||B.call(this,F,e,"set")),b(this,Bt)&&((T=b(this,ft))==null||T.push([F,e,"set"])))}else c||(b(this,vn)&&((N=b(this,hn))==null||N.call(this,C,e,"set")),b(this,Bt)&&((M=b(this,ft))==null||M.push([C,e,"set"])));if(b(this,qr).call(this,y),b(this,Bo).call(this,y,m,p),b(this,xe)[y]=n,p){p.set="replace";const F=C&&de(this,re,Je).call(this,C)?C.__staleWhileFetching:C;F!==void 0&&(p.oldValue=F)}}else p&&(p.set="update")}if(s!==0&&!b(this,zt)&&de(this,re,id).call(this),b(this,zt)&&(f||b(this,Fi).call(this,y,s,l),p&&b(this,Wn).call(this,p,y)),!c&&b(this,Bt)&&b(this,ft)){const C=b(this,ft);let F;for(;F=C==null?void 0:C.shift();)(G=b(this,fn))==null||G.call(this,...F)}return this}pop(){var e;try{for(;b(this,ct);){const n=b(this,xe)[b(this,bt)];if(de(this,re,Ta).call(this,!0),de(this,re,Je).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(b(this,Bt)&&b(this,ft)){const n=b(this,ft);let o;for(;o=n==null?void 0:n.shift();)(e=b(this,fn))==null||e.call(this,...o)}}}has(e,n={}){const{updateAgeOnHas:o=this.updateAgeOnHas,status:s}=n,l=b(this,at).get(e);if(l!==void 0){const c=b(this,xe)[l];if(de(this,re,Je).call(this,c)&&c.__staleWhileFetching===void 0)return!1;if(b(this,$t).call(this,l))s&&(s.has="stale",b(this,Wn).call(this,s,l));else return o&&b(this,jr).call(this,l),s&&(s.has="hit",b(this,Wn).call(this,s,l)),!0}else s&&(s.has="miss");return!1}peek(e,n={}){const{allowStale:o=this.allowStale}=n,s=b(this,at).get(e);if(s===void 0||!o&&b(this,$t).call(this,s))return;const l=b(this,xe)[s];return de(this,re,Je).call(this,l)?l.__staleWhileFetching:l}async fetch(e,n={}){const{allowStale:o=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:B=this.allowStaleOnFetchRejection,ignoreFetchAbort:T=this.ignoreFetchAbort,allowStaleOnFetchAbort:N=this.allowStaleOnFetchAbort,context:M,forceRefresh:G=!1,status:C,signal:F}=n;if(!b(this,br))return C&&(C.fetch="get"),this.get(e,{allowStale:o,updateAgeOnGet:s,noDeleteOnStaleGet:l,status:C});const O={allowStale:o,updateAgeOnGet:s,noDeleteOnStaleGet:l,ttl:c,noDisposeOnSet:u,size:p,sizeCalculation:f,noUpdateTTL:m,noDeleteOnFetchRejection:y,allowStaleOnFetchRejection:B,allowStaleOnFetchAbort:N,ignoreFetchAbort:T,status:C,signal:F};let Z=b(this,at).get(e);if(Z===void 0){C&&(C.fetch="miss");const I=de(this,re,Ba).call(this,e,Z,O,M);return I.__returned=I}else{const I=b(this,xe)[Z];if(de(this,re,Je).call(this,I)){const U=o&&I.__staleWhileFetching!==void 0;return C&&(C.fetch="inflight",U&&(C.returnedStale=!0)),U?I.__staleWhileFetching:I.__returned=I}const Y=b(this,$t).call(this,Z);if(!G&&!Y)return C&&(C.fetch="hit"),de(this,re,ns).call(this,Z),s&&b(this,jr).call(this,Z),C&&b(this,Wn).call(this,C,Z),I;const W=de(this,re,Ba).call(this,e,Z,O,M),j=W.__staleWhileFetching!==void 0&&o;return C&&(C.fetch=Y?"stale":"refresh",j&&Y&&(C.returnedStale=!0)),j?W.__staleWhileFetching:W.__returned=W}}async forceFetch(e,n={}){const o=await this.fetch(e,n);if(o===void 0)throw new Error("fetch() returned undefined");return o}memo(e,n={}){const o=b(this,To);if(!o)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=o(e,u,{options:c,context:s});return this.set(e,p,c),p}get(e,n={}){const{allowStale:o=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,status:c}=n,u=b(this,at).get(e);if(u!==void 0){const p=b(this,xe)[u],f=de(this,re,Je).call(this,p);return c&&b(this,Wn).call(this,c,u),b(this,$t).call(this,u)?(c&&(c.get="stale"),f?(c&&o&&p.__staleWhileFetching!==void 0&&(c.returnedStale=!0),o?p.__staleWhileFetching:void 0):(l||de(this,re,Ir).call(this,e,"expire"),c&&o&&(c.returnedStale=!0),o?p:void 0)):(c&&(c.get="hit"),f?p.__staleWhileFetching:(de(this,re,ns).call(this,u),s&&b(this,jr).call(this,u),p))}else c&&(c.get="miss")}delete(e){return de(this,re,Ir).call(this,e,"delete")}clear(){return de(this,re,ld).call(this,"delete")}};pn=new WeakMap,Ot=new WeakMap,hn=new WeakMap,fn=new WeakMap,Eo=new WeakMap,To=new WeakMap,ct=new WeakMap,mn=new WeakMap,at=new WeakMap,Ke=new WeakMap,xe=new WeakMap,Tt=new WeakMap,Gt=new WeakMap,bt=new WeakMap,ht=new WeakMap,gn=new WeakMap,ft=new WeakMap,yn=new WeakMap,_n=new WeakMap,zt=new WeakMap,vn=new WeakMap,br=new WeakMap,Bt=new WeakMap,re=new WeakSet,id=function(){const e=new Fs(b(this,pn)),n=new Fs(b(this,pn));me(this,zt,e),me(this,_n,n),me(this,Fi,(l,c,u=ko.now())=>{if(n[l]=c!==0?u:0,e[l]=c,c!==0&&this.ttlAutopurge){const p=setTimeout(()=>{b(this,$t).call(this,l)&&de(this,re,Ir).call(this,b(this,Ke)[l],"expire")},c+1);p.unref&&p.unref()}}),me(this,jr,l=>{n[l]=e[l]!==0?ko.now():0}),me(this,Wn,(l,c)=>{if(e[c]){const u=e[c],p=n[c];if(!u||!p)return;l.ttl=u,l.start=p,l.now=o||s();const f=l.now-p;l.remainingTTL=u-f}});let o=0;const s=()=>{const l=ko.now();if(this.ttlResolution>0){o=l;const c=setTimeout(()=>o=0,this.ttlResolution);c.unref&&c.unref()}return l};this.getRemainingTTL=l=>{const c=b(this,at).get(l);if(c===void 0)return 0;const u=e[c],p=n[c];if(!u||!p)return 1/0;const f=(o||s())-p;return u-f},me(this,$t,l=>{const c=n[l],u=e[l];return!!u&&!!c&&(o||s())-c>u})},jr=new WeakMap,Wn=new WeakMap,Fi=new WeakMap,$t=new WeakMap,lm=function(){const e=new Fs(b(this,pn));me(this,mn,0),me(this,yn,e),me(this,qr,n=>{me(this,mn,b(this,mn)-e[n]),e[n]=0}),me(this,Ri,(n,o,s,l)=>{if(de(this,re,Je).call(this,o))return 0;if(!wr(s))if(l){if(typeof l!="function")throw new TypeError("sizeCalculation must be a function");if(s=l(o,n),!wr(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}),me(this,Bo,(n,o,s)=>{if(e[n]=o,b(this,Ot)){const l=b(this,Ot)-e[n];for(;b(this,mn)>l;)de(this,re,Ta).call(this,!0)}me(this,mn,b(this,mn)+e[n]),s&&(s.entrySize=o,s.totalCalculatedSize=b(this,mn))})},qr=new WeakMap,Bo=new WeakMap,Ri=new WeakMap,Rr=function*({allowStale:e=this.allowStale}={}){if(b(this,ct))for(let n=b(this,ht);!(!de(this,re,sd).call(this,n)||((e||!b(this,$t).call(this,n))&&(yield n),n===b(this,bt)));)n=b(this,Gt)[n]},Mr=function*({allowStale:e=this.allowStale}={}){if(b(this,ct))for(let n=b(this,bt);!(!de(this,re,sd).call(this,n)||((e||!b(this,$t).call(this,n))&&(yield n),n===b(this,ht)));)n=b(this,Tt)[n]},sd=function(e){return e!==void 0&&b(this,at).get(b(this,Ke)[e])===e},Ta=function(e){var l,c;const n=b(this,bt),o=b(this,Ke)[n],s=b(this,xe)[n];return b(this,br)&&de(this,re,Je).call(this,s)?s.__abortController.abort(new Error("evicted")):(b(this,vn)||b(this,Bt))&&(b(this,vn)&&((l=b(this,hn))==null||l.call(this,s,o,"evict")),b(this,Bt)&&((c=b(this,ft))==null||c.push([s,o,"evict"]))),b(this,qr).call(this,n),e&&(b(this,Ke)[n]=void 0,b(this,xe)[n]=void 0,b(this,gn).push(n)),b(this,ct)===1?(me(this,bt,me(this,ht,0)),b(this,gn).length=0):me(this,bt,b(this,Tt)[n]),b(this,at).delete(o),Ea(this,ct)._--,n},Ba=function(e,n,o,s){const l=n===void 0?void 0:b(this,xe)[n];if(de(this,re,Je).call(this,l))return l;const c=new Ds,{signal:u}=o;u==null||u.addEventListener("abort",()=>c.abort(u.reason),{signal:c.signal});const p={signal:c.signal,options:o,context:s},f=(M,G=!1)=>{const{aborted:C}=c.signal,F=o.ignoreFetchAbort&&M!==void 0;if(o.status&&(C&&!G?(o.status.fetchAborted=!0,o.status.fetchError=c.signal.reason,F&&(o.status.fetchAbortIgnored=!0)):o.status.fetchResolved=!0),C&&!F&&!G)return y(c.signal.reason);const O=T;return b(this,xe)[n]===T&&(M===void 0?O.__staleWhileFetching?b(this,xe)[n]=O.__staleWhileFetching:de(this,re,Ir).call(this,e,"fetch"):(o.status&&(o.status.fetchUpdated=!0),this.set(e,M,p.options))),M},m=M=>(o.status&&(o.status.fetchRejected=!0,o.status.fetchError=M),y(M)),y=M=>{const{aborted:G}=c.signal,C=G&&o.allowStaleOnFetchAbort,F=C||o.allowStaleOnFetchRejection,O=F||o.noDeleteOnFetchRejection,Z=T;if(b(this,xe)[n]===T&&(!O||Z.__staleWhileFetching===void 0?de(this,re,Ir).call(this,e,"fetch"):C||(b(this,xe)[n]=Z.__staleWhileFetching)),F)return o.status&&Z.__staleWhileFetching!==void 0&&(o.status.returnedStale=!0),Z.__staleWhileFetching;if(Z.__returned===Z)throw M},B=(M,G)=>{var F;const C=(F=b(this,Eo))==null?void 0:F.call(this,e,l,p);C&&C instanceof Promise&&C.then(O=>M(O===void 0?void 0:O),G),c.signal.addEventListener("abort",()=>{(!o.ignoreFetchAbort||o.allowStaleOnFetchAbort)&&(M(void 0),o.allowStaleOnFetchAbort&&(M=O=>f(O,!0)))})};o.status&&(o.status.fetchDispatched=!0);const T=new Promise(B).then(f,m),N=Object.assign(T,{__abortController:c,__staleWhileFetching:l,__returned:void 0});return n===void 0?(this.set(e,N,{...p.options,status:void 0}),n=b(this,at).get(e)):b(this,xe)[n]=N,N},Je=function(e){if(!b(this,br))return!1;const n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof Ds},ad=function(e,n){b(this,Gt)[n]=e,b(this,Tt)[e]=n},ns=function(e){e!==b(this,ht)&&(e===b(this,bt)?me(this,bt,b(this,Tt)[e]):de(this,re,ad).call(this,b(this,Gt)[e],b(this,Tt)[e]),de(this,re,ad).call(this,b(this,ht),e),me(this,ht,e))},Ir=function(e,n){var s,l,c,u;let o=!1;if(b(this,ct)!==0){const p=b(this,at).get(e);if(p!==void 0)if(o=!0,b(this,ct)===1)de(this,re,ld).call(this,n);else{b(this,qr).call(this,p);const f=b(this,xe)[p];if(de(this,re,Je).call(this,f)?f.__abortController.abort(new Error("deleted")):(b(this,vn)||b(this,Bt))&&(b(this,vn)&&((s=b(this,hn))==null||s.call(this,f,e,n)),b(this,Bt)&&((l=b(this,ft))==null||l.push([f,e,n]))),b(this,at).delete(e),b(this,Ke)[p]=void 0,b(this,xe)[p]=void 0,p===b(this,ht))me(this,ht,b(this,Gt)[p]);else if(p===b(this,bt))me(this,bt,b(this,Tt)[p]);else{const m=b(this,Gt)[p];b(this,Tt)[m]=b(this,Tt)[p];const y=b(this,Tt)[p];b(this,Gt)[y]=b(this,Gt)[p]}Ea(this,ct)._--,b(this,gn).push(p)}}if(b(this,Bt)&&((c=b(this,ft))!=null&&c.length)){const p=b(this,ft);let f;for(;f=p==null?void 0:p.shift();)(u=b(this,fn))==null||u.call(this,...f)}return o},ld=function(e){var n,o,s;for(const l of de(this,re,Mr).call(this,{allowStale:!0})){const c=b(this,xe)[l];if(de(this,re,Je).call(this,c))c.__abortController.abort(new Error("deleted"));else{const u=b(this,Ke)[l];b(this,vn)&&((n=b(this,hn))==null||n.call(this,c,u,e)),b(this,Bt)&&((o=b(this,ft))==null||o.push([c,u,e]))}}if(b(this,at).clear(),b(this,xe).fill(void 0),b(this,Ke).fill(void 0),b(this,zt)&&b(this,_n)&&(b(this,zt).fill(0),b(this,_n).fill(0)),b(this,yn)&&b(this,yn).fill(0),me(this,bt,0),me(this,ht,0),b(this,gn).length=0,me(this,mn,0),me(this,ct,0),b(this,Bt)&&b(this,ft)){const l=b(this,ft);let c;for(;c=l==null?void 0:l.shift();)(s=b(this,fn))==null||s.call(this,...c)}};let Fl=Ml;const QT={cacheSize:15e6};class eB{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 Kr=class Kr{constructor(e){Ue(this,"fileDataCache");Ue(this,"fileDataRefs",new Map);const n={...QT,...e??{}};this.fileDataCache=new Fl({maxSize:n.cacheSize,fetchMethod:async o=>new eB(await Mg().blobDriver.getContent(o)),sizeCalculation:o=>o.bytes.length,dispose:(o,s)=>{this.fileDataRefs.delete(s)}})}getDataRef(e){const n=this.fileDataRefs.get(e);if(n!==void 0)return n;const o=r.shallowRef();return this.fileDataRefs.set(e,o),(async()=>{try{const s=await this.fileDataCache.fetch(e);o.value=s}catch(s){console.error(s)}})(),o}getContentBytes(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var o;return(o=n.value)==null?void 0:o.bytes})}getContentString(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var o;return(o=n==null?void 0:n.value)==null?void 0:o.str})}getContentJson(e,n){if(e===void 0)return;const o=this.getDataRef(e);return r.computed(()=>{var s,l;return n===void 0?(s=o==null?void 0:o.value)==null?void 0:s.rawJson:(l=o==null?void 0:o.value)==null?void 0:l.validatedJson(n)})}static getContentBytes(e){return Kr.globalInstance.getContentBytes(e)}static getContentString(e){return Kr.globalInstance.getContentString(e)}static getContentJson(e,n){return Kr.globalInstance.getContentJson(e,n)}};Ue(Kr,"globalInstance",new Kr);let Rl=Kr;R.AgGridTheme=nu,R.BlockLayout=fT,R.ContextProvider=Qk,R.DataTable=Xv,R.DemoData=QE,R.DropdownListItem=go,R.LongText=wl,R.MultiError=Aa,R.PlAccordion=ux,R.PlAccordionSection=Cx,R.PlAgCellFile=WT,R.PlAgDataTable=IT,R.PlAgDataTableToolsPanel=FT,R.PlAgGridColumnManager=vp,R.PlAgOverlayLoading=up,R.PlAgOverlayNoRows=pp,R.PlAgTextAndButtonCell=qT,R.PlAlert=VC,R.PlBlockPage=mC,R.PlBtnAccent=jC,R.PlBtnDanger=KC,R.PlBtnGhost=ys,R.PlBtnGroup=y0,R.PlBtnLink=QC,R.PlBtnPrimary=hl,R.PlBtnSecondary=fl,R.PlBtnSplit=$C,R.PlCheckbox=Lu,R.PlCheckboxGroup=kb,R.PlChip=bl,R.PlContainer=yC,R.PlDialogModal=kl,R.PlDropdown=mi,R.PlDropdownLegacy=Hw,R.PlDropdownLine=Iu,R.PlDropdownMulti=vb,R.PlDropdownRef=ww,R.PlEditableTitle=k0,R.PlFileDialog=Zu,R.PlFileInput=ip,R.PlGrid=xC,R.PlIcon16=vs,R.PlIcon24=Du,R.PlLogView=zu,R.PlMaskIcon16=$n,R.PlMaskIcon24=ln,R.PlNotificationAlert=sp,R.PlNumberField=ob,R.PlProgressBar=Jw,R.PlRow=vC,R.PlSectionSeparator=$u,R.PlSlideModal=Ou,R.PlSpacer=Eu,R.PlTableFilters=GT,R.PlTabs=ix,R.PlTextArea=tw,R.PlTextField=hr,R.PlToggleSwitch=Cs,R.PlTooltip=vt,R.ReactiveFileContent=Rl,R.Scrollable=$S,R.Slider=ap,R.SliderRange=LS,R.SliderRangeTriple=ES,R.ThemeSwitcher=lC,R.UnresolvedError=Na,R.ValueOrErrorsComponent=ZT,R.activateAgGrid=tu,R.animate=Cu,R.animateInfinite=rC,R.call=mu,R.computedResult=JT,R.createModel=Ia,R.debounce=wu,R.defineApp=B_,R.defineStore=YT,R.delay=gu,R.detectOutside=nw,R.ensureError=Fa,R.eventListener=vl,R.formatZodError=Ma,R.getElementScrollPosition=Ru,R.identity=Da,R.isDefined=Sm,R.isElementVisible=Fu,R.isJsonEqual=Pa,R.isZodError=Ra,R.listToOptions=oC,R.makeEaseInOut=nC,R.makeEaseOut=vu,R.maskIcons16=JE,R.maskIcons24=XE,R.normalizeListOptions=ur,R.notEmpty=ll,R.randomInt=_u,R.randomString=tC,R.requestTick=cl,R.scrollIntoView=fi,R.showContextMenu=il,R.throttle=bu,R.timeout=yu,R.unwrapOptionalResult=km,R.unwrapValueOrErrors=gd,R.useClickOutside=_s,R.useDraggable=mS,R.useEventListener=rt,R.useFormState=hS,R.useHover=hu,R.useInterval=pS,R.useLabelNotch=Zn,R.useLocalStorage=xu,R.useMouse=pu,R.useMouseCapture=dr,R.usePosition=yo,R.useQuery=fS,R.useResizeObserver=lp,R.useScroll=dS,R.useSdkPlugin=el,R.useSortable=dp,R.useTheme=Su,R.useWatchFetch=Cp,R.wrapOptionalResult=yd,R.wrapValueOrErrors=xm,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
91
+ }`;var Pe=rm(function(){return Ze(v,ue+"return "+J).apply(n,E)});if(Pe.source=J,jc(Pe))throw Pe;return Pe}function WF(i){return We(i).toLowerCase()}function HF(i){return We(i).toUpperCase()}function jF(i,a,d){if(i=We(i),i&&(d||a===n))return uh(i);if(!i||!(a=Wt(a)))return i;var h=xn(i),g=xn(a),v=ph(h,g),E=hh(h,g)+1;return Dr(h,v,E).join("")}function qF(i,a,d){if(i=We(i),i&&(d||a===n))return i.slice(0,mh(i)+1);if(!i||!(a=Wt(a)))return i;var h=xn(i),g=hh(h,xn(a))+1;return Dr(h,0,g).join("")}function KF(i,a,d){if(i=We(i),i&&(d||a===n))return i.replace(jl,"");if(!i||!(a=Wt(a)))return i;var h=xn(i),g=ph(h,xn(a));return Dr(h,g).join("")}function YF(i,a){var d=U,h=X;if(tt(a)){var g="separator"in a?a.separator:g;d="length"in a?Ve(a.length):d,h="omission"in a?Wt(a.omission):h}i=We(i);var v=i.length;if(Po(i)){var E=xn(i);v=E.length}if(d>=v)return i;var V=d-Do(h);if(V<1)return h;var D=E?Dr(E,0,V).join(""):i.slice(0,V);if(g===n)return D+h;if(E&&(V+=D.length-V),qc(g)){if(i.slice(V).search(g)){var q,K=D;for(g.global||(g=dc(g.source,We(Dp.exec(g))+"g")),g.lastIndex=0;q=g.exec(K);)var J=q.index;D=D.slice(0,J===n?V:J)}}else if(i.indexOf(Wt(g),V)!=V){var oe=D.lastIndexOf(g);oe>-1&&(D=D.slice(0,oe))}return D+h}function JF(i){return i=We(i),i&&lB.test(i)?i.replace(Np,EV):i}var XF=Go(function(i,a,d){return i+(d?" ":"")+a.toUpperCase()}),Jc=rf("toUpperCase");function nm(i,a,d){return i=We(i),a=d?n:a,a===n?wV(i)?VV(i):pV(i):i.match(a)||[]}var rm=De(function(i,a){try{return Zt(i,n,a)}catch(d){return jc(d)?d:new ke(d)}}),QF=Xn(function(i,a){return Jt(a,function(d){d=On(d),Yn(i,d,Wc(i[d],i))}),i});function eR(i){var a=i==null?0:i.length,d=fe();return i=a?Xe(i,function(h){if(typeof h[1]!="function")throw new Xt(c);return[d(h[0]),h[1]]}):[],De(function(h){for(var g=-1;++g<a;){var v=i[g];if(Zt(v[0],this,h))return Zt(v[1],this,h)}})}function tR(i){return EN(en(i,y))}function Xc(i){return function(){return i}}function nR(i,a){return i==null||i!==i?a:i}var rR=sf(),oR=sf(!0);function Mt(i){return i}function Qc(i){return Rh(typeof i=="function"?i:en(i,y))}function iR(i){return Ih(en(i,y))}function sR(i,a){return Lh(i,en(a,y))}var aR=De(function(i,a){return function(d){return Ki(d,i,a)}}),lR=De(function(i,a){return function(d){return Ki(i,d,a)}});function ed(i,a,d){var h=mt(a),g=sa(a,h);d==null&&!(tt(a)&&(g.length||!h.length))&&(d=a,a=i,i=this,g=sa(a,mt(a)));var v=!(tt(d)&&"chain"in d)||!!d.chain,E=er(i);return Jt(g,function(V){var D=a[V];i[V]=D,E&&(i.prototype[V]=function(){var q=this.__chain__;if(v||q){var K=i(this.__wrapped__),J=K.__actions__=Dt(this.__actions__);return J.push({func:D,args:arguments,thisArg:i}),K.__chain__=q,K}return D.apply(i,Tr([this.value()],arguments))})}),i}function cR(){return gt._===this&&(gt._=RV),this}function td(){}function dR(i){return i=Ve(i),De(function(a){return Oh(a,i)})}var uR=Pc(Xe),pR=Pc(sh),hR=Pc(rc);function om(i){return Oc(i)?oc(On(i)):ZN(i)}function fR(i){return function(a){return i==null?n:ro(i,a)}}var mR=lf(),gR=lf(!0);function nd(){return[]}function rd(){return!1}function yR(){return{}}function _R(){return""}function vR(){return!0}function CR(i,a){if(i=Ve(i),i<1||i>ne)return[];var d=ot,h=xt(i,ot);a=fe(a),i-=ot;for(var g=ac(h,a);++d<i;)a(d);return g}function wR(i){return Ee(i)?Xe(i,On):Ht(i)?[i]:Dt(kf(We(i)))}function bR(i){var a=++DV;return We(i)+a}var xR=pa(function(i,a){return i+a},0),kR=Dc("ceil"),SR=pa(function(i,a){return i/a},1),ER=Dc("floor");function TR(i){return i&&i.length?ia(i,Mt,_c):n}function BR(i,a){return i&&i.length?ia(i,fe(a,2),_c):n}function VR(i){return ch(i,Mt)}function NR(i,a){return ch(i,fe(a,2))}function AR(i){return i&&i.length?ia(i,Mt,bc):n}function PR(i,a){return i&&i.length?ia(i,fe(a,2),bc):n}var DR=pa(function(i,a){return i*a},1),FR=Dc("round"),RR=pa(function(i,a){return i-a},0);function MR(i){return i&&i.length?sc(i,Mt):0}function IR(i,a){return i&&i.length?sc(i,fe(a,2)):0}return _.after=iD,_.ary=Rf,_.assign=HD,_.assignIn=Kf,_.assignInWith=Sa,_.assignWith=jD,_.at=qD,_.before=Mf,_.bind=Wc,_.bindAll=QF,_.bindKey=If,_.castArray=yD,_.chain=Pf,_.chunk=EA,_.compact=TA,_.concat=BA,_.cond=eR,_.conforms=tR,_.constant=Xc,_.countBy=MP,_.create=KD,_.curry=Lf,_.curryRight=Of,_.debounce=Gf,_.defaults=YD,_.defaultsDeep=JD,_.defer=sD,_.delay=aD,_.difference=VA,_.differenceBy=NA,_.differenceWith=AA,_.drop=PA,_.dropRight=DA,_.dropRightWhile=FA,_.dropWhile=RA,_.fill=MA,_.filter=LP,_.flatMap=zP,_.flatMapDeep=$P,_.flatMapDepth=ZP,_.flatten=Bf,_.flattenDeep=IA,_.flattenDepth=LA,_.flip=lD,_.flow=rR,_.flowRight=oR,_.fromPairs=OA,_.functions=oF,_.functionsIn=iF,_.groupBy=UP,_.initial=zA,_.intersection=$A,_.intersectionBy=ZA,_.intersectionWith=UA,_.invert=aF,_.invertBy=lF,_.invokeMap=HP,_.iteratee=Qc,_.keyBy=jP,_.keys=mt,_.keysIn=Rt,_.map=va,_.mapKeys=dF,_.mapValues=uF,_.matches=iR,_.matchesProperty=sR,_.memoize=wa,_.merge=pF,_.mergeWith=Yf,_.method=aR,_.methodOf=lR,_.mixin=ed,_.negate=ba,_.nthArg=dR,_.omit=hF,_.omitBy=fF,_.once=cD,_.orderBy=qP,_.over=uR,_.overArgs=dD,_.overEvery=pR,_.overSome=hR,_.partial=Hc,_.partialRight=zf,_.partition=KP,_.pick=mF,_.pickBy=Jf,_.property=om,_.propertyOf=fR,_.pull=qA,_.pullAll=Nf,_.pullAllBy=KA,_.pullAllWith=YA,_.pullAt=JA,_.range=mR,_.rangeRight=gR,_.rearg=uD,_.reject=XP,_.remove=XA,_.rest=pD,_.reverse=Zc,_.sampleSize=eD,_.set=yF,_.setWith=_F,_.shuffle=tD,_.slice=QA,_.sortBy=oD,_.sortedUniq=sP,_.sortedUniqBy=aP,_.split=zF,_.spread=hD,_.tail=lP,_.take=cP,_.takeRight=dP,_.takeRightWhile=uP,_.takeWhile=pP,_.tap=TP,_.throttle=fD,_.thru=_a,_.toArray=Hf,_.toPairs=Xf,_.toPairsIn=Qf,_.toPath=wR,_.toPlainObject=qf,_.transform=vF,_.unary=mD,_.union=hP,_.unionBy=fP,_.unionWith=mP,_.uniq=gP,_.uniqBy=yP,_.uniqWith=_P,_.unset=CF,_.unzip=Uc,_.unzipWith=Af,_.update=wF,_.updateWith=bF,_.values=Zo,_.valuesIn=xF,_.without=vP,_.words=nm,_.wrap=gD,_.xor=CP,_.xorBy=wP,_.xorWith=bP,_.zip=xP,_.zipObject=kP,_.zipObjectDeep=SP,_.zipWith=EP,_.entries=Xf,_.entriesIn=Qf,_.extend=Kf,_.extendWith=Sa,ed(_,_),_.add=xR,_.attempt=rm,_.camelCase=TF,_.capitalize=em,_.ceil=kR,_.clamp=kF,_.clone=_D,_.cloneDeep=CD,_.cloneDeepWith=wD,_.cloneWith=vD,_.conformsTo=bD,_.deburr=tm,_.defaultTo=nR,_.divide=SR,_.endsWith=BF,_.eq=Sn,_.escape=VF,_.escapeRegExp=NF,_.every=IP,_.find=OP,_.findIndex=Ef,_.findKey=XD,_.findLast=GP,_.findLastIndex=Tf,_.findLastKey=QD,_.floor=ER,_.forEach=Df,_.forEachRight=Ff,_.forIn=eF,_.forInRight=tF,_.forOwn=nF,_.forOwnRight=rF,_.get=Kc,_.gt=xD,_.gte=kD,_.has=sF,_.hasIn=Yc,_.head=Vf,_.identity=Mt,_.includes=WP,_.indexOf=GA,_.inRange=SF,_.invoke=cF,_.isArguments=so,_.isArray=Ee,_.isArrayBuffer=SD,_.isArrayLike=Ft,_.isArrayLikeObject=it,_.isBoolean=ED,_.isBuffer=Fr,_.isDate=TD,_.isElement=BD,_.isEmpty=VD,_.isEqual=ND,_.isEqualWith=AD,_.isError=jc,_.isFinite=PD,_.isFunction=er,_.isInteger=$f,_.isLength=xa,_.isMap=Zf,_.isMatch=DD,_.isMatchWith=FD,_.isNaN=RD,_.isNative=MD,_.isNil=LD,_.isNull=ID,_.isNumber=Uf,_.isObject=tt,_.isObjectLike=nt,_.isPlainObject=ts,_.isRegExp=qc,_.isSafeInteger=OD,_.isSet=Wf,_.isString=ka,_.isSymbol=Ht,_.isTypedArray=$o,_.isUndefined=GD,_.isWeakMap=zD,_.isWeakSet=$D,_.join=WA,_.kebabCase=AF,_.last=nn,_.lastIndexOf=HA,_.lowerCase=PF,_.lowerFirst=DF,_.lt=ZD,_.lte=UD,_.max=TR,_.maxBy=BR,_.mean=VR,_.meanBy=NR,_.min=AR,_.minBy=PR,_.stubArray=nd,_.stubFalse=rd,_.stubObject=yR,_.stubString=_R,_.stubTrue=vR,_.multiply=DR,_.nth=jA,_.noConflict=cR,_.noop=td,_.now=Ca,_.pad=FF,_.padEnd=RF,_.padStart=MF,_.parseInt=IF,_.random=EF,_.reduce=YP,_.reduceRight=JP,_.repeat=LF,_.replace=OF,_.result=gF,_.round=FR,_.runInContext=A,_.sample=QP,_.size=nD,_.snakeCase=GF,_.some=rD,_.sortedIndex=eP,_.sortedIndexBy=tP,_.sortedIndexOf=nP,_.sortedLastIndex=rP,_.sortedLastIndexBy=oP,_.sortedLastIndexOf=iP,_.startCase=$F,_.startsWith=ZF,_.subtract=RR,_.sum=MR,_.sumBy=IR,_.template=UF,_.times=CR,_.toFinite=tr,_.toInteger=Ve,_.toLength=jf,_.toLower=WF,_.toNumber=rn,_.toSafeInteger=WD,_.toString=We,_.toUpper=HF,_.trim=jF,_.trimEnd=qF,_.trimStart=KF,_.truncate=YF,_.unescape=JF,_.uniqueId=bR,_.upperCase=XF,_.upperFirst=Jc,_.each=Df,_.eachRight=Ff,_.first=Vf,ed(_,function(){var i={};return In(_,function(a,d){He.call(_.prototype,d)||(i[d]=a)}),i}(),{chain:!1}),_.VERSION=o,Jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){_[i].placeholder=_}),Jt(["drop","take"],function(i,a){Re.prototype[i]=function(d){d=d===n?1:ut(Ve(d),0);var h=this.__filtered__&&!a?new Re(this):this.clone();return h.__filtered__?h.__takeCount__=xt(d,h.__takeCount__):h.__views__.push({size:xt(d,ot),type:i+(h.__dir__<0?"Right":"")}),h},Re.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),Jt(["filter","map","takeWhile"],function(i,a){var d=a+1,h=d==w||d==$;Re.prototype[i]=function(g){var v=this.clone();return v.__iteratees__.push({iteratee:fe(g,3),type:d}),v.__filtered__=v.__filtered__||h,v}}),Jt(["head","last"],function(i,a){var d="take"+(a?"Right":"");Re.prototype[i]=function(){return this[d](1).value()[0]}}),Jt(["initial","tail"],function(i,a){var d="drop"+(a?"":"Right");Re.prototype[i]=function(){return this.__filtered__?new Re(this):this[d](1)}}),Re.prototype.compact=function(){return this.filter(Mt)},Re.prototype.find=function(i){return this.filter(i).head()},Re.prototype.findLast=function(i){return this.reverse().find(i)},Re.prototype.invokeMap=De(function(i,a){return typeof i=="function"?new Re(this):this.map(function(d){return Ki(d,i,a)})}),Re.prototype.reject=function(i){return this.filter(ba(fe(i)))},Re.prototype.slice=function(i,a){i=Ve(i);var d=this;return d.__filtered__&&(i>0||a<0)?new Re(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),a!==n&&(a=Ve(a),d=a<0?d.dropRight(-a):d.take(a-i)),d)},Re.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Re.prototype.toArray=function(){return this.take(ot)},In(Re.prototype,function(i,a){var d=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),g=_[h?"take"+(a=="last"?"Right":""):a],v=h||/^find/.test(a);g&&(_.prototype[a]=function(){var E=this.__wrapped__,V=h?[1]:arguments,D=E instanceof Re,q=V[0],K=D||Ee(E),J=function(Fe){var Me=g.apply(_,Tr([Fe],V));return h&&oe?Me[0]:Me};K&&d&&typeof q=="function"&&q.length!=1&&(D=K=!1);var oe=this.__chain__,ue=!!this.__actions__.length,ge=v&&!oe,Pe=D&&!ue;if(!v&&K){E=Pe?E:new Re(this);var ye=i.apply(E,V);return ye.__actions__.push({func:_a,args:[J],thisArg:n}),new Qt(ye,oe)}return ge&&Pe?i.apply(this,V):(ye=this.thru(J),ge?h?ye.value()[0]:ye.value():ye)})}),Jt(["pop","push","shift","sort","splice","unshift"],function(i){var a=Us[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",h=/^(?:pop|shift)$/.test(i);_.prototype[i]=function(){var g=arguments;if(h&&!this.__chain__){var v=this.value();return a.apply(Ee(v)?v:[],g)}return this[d](function(E){return a.apply(Ee(E)?E:[],g)})}}),In(Re.prototype,function(i,a){var d=_[a];if(d){var h=d.name+"";He.call(Io,h)||(Io[h]=[]),Io[h].push({name:a,func:d})}}),Io[ua(n,C).name]=[{name:"wrapper",func:n}],Re.prototype.clone=JV,Re.prototype.reverse=XV,Re.prototype.value=QV,_.prototype.at=BP,_.prototype.chain=VP,_.prototype.commit=NP,_.prototype.next=AP,_.prototype.plant=DP,_.prototype.reverse=FP,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=RP,_.prototype.first=_.prototype.head,$i&&(_.prototype[$i]=PP),_},Fo=NV();Xr?((Xr.exports=Fo)._=Fo,Ql._=Fo):gt._=Fo}).call(Uo)}(As,As.exports);var Ge=As.exports;const mT={class:"grid-overlay-container"},up=r.defineComponent({__name:"PlAgOverlayLoading",props:{params:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",mT,[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))]))}}),gT={},yT={class:"grid-overlay-container"};function _T(t,e){return r.openBlock(),r.createElementBlock("div",yT,e[0]||(e[0]=[r.createElementVNode("div",{class:"grid-icon-sad-cat"},null,-1),r.createElementVNode("span",{class:"text-subtitle-m"},"Empty",-1)]))}const pp=Ns(gT,[["render",_T]]);async function vT(t,e){throw Error("not implemented")}function CT(t){return t.axesSpec.filter(e=>{var n;return((n=e.annotations)==null?void 0:n["pl7.app/axisNature"])==="heterogeneous"})}function wT(t,e){const n=[];for(const o of e)if(t[o].type==="column"){const s=CT(t[o].spec);for(const l of s){if(l.type!=="String"){console.warn("heterogeneous axis with string type expected, got",l,"skipping");continue}const c=Ua(l),u=t.findIndex(p=>Ge.isEqual(p.id,c));if(u===-1)throw console.error("axis not found",o,c,t),Error("axis not found");n.push({columnIdx:o,axisIdx:u})}}return n}const hp=(t,e)=>(t+e).toString();function bT(t,e,n,o,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 B=o[u].data.filter(T=>T!==null);return Array.from(new Set(B))})();f.sort(),p>u?(n.splice(p,1),n.splice(u,1)):(n.splice(u,1),n.splice(p,1));const m=xT(s,o,u,p,f,e.rows);for(let y=0;y<f.length;++y){const B=f[y],T=Lr(B+"@"+y);n.push({colId:T,field:hp(o.length,y),headerName:B,valueFormatter:mp})}return{rowModelType:"clientSide",columnDefs:n,rowData:m}}function xT(t,e,n,o,s,l){const c=new Map;let u=0;for(let f=0;f<l;f++){const m={};for(let M=0;M<e.length;++M){if(M===n||M===o)continue;const G=t[M].toString();m[G]=e[M].data[f]}let y;const B=Lr(Object.values(m))??"";c.has(B)?y=c.get(B):(c.set(B,m),y=m,y.id=u.toString(),u++);const T=s.indexOf(e[n].data[f]);if(T===-1)throw Error("index not found");const N=hp(e.length,T);y[N]=e[o].data[f]}return Array.from(c.values())}function kT(t){return Lr(t)}function fp(t){return JSON.parse(t)}const mp=t=>t?t.value===void 0?"NULL":t.value===null?"NA":t.value.toString():"ERROR";function ST(t,e,n){var s,l,c;const o=kT(e);return{colId:o,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(o))??((c=e.spec.annotations)==null?void 0:c["pl7.app/table/visibility"])==="optional",valueFormatter:mp,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 gp(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 yp(t){const e=[];return ps(t,n=>(e.push(n),n)),e}async function ET(t,e,n){return n.length?(await t.findColumns(e,{columnFilter:{name:["pl7.app/label"]},compatibleWith:Ge.uniqWith(n.map(s=>Pd(s.spec.axesSpec).map(Ge.cloneDeep)).flat(),Ge.isEqual),strictlyCompatible:!0})).hits.filter(s=>s.spec.axesSpec.length===1):[]}async function TT(t,e,n){const o=yp(n),l=(await ET(t,e,o)).filter(c=>!Ge.find(o,u=>c.columnId===u.columnId));return l.length===0?n:{type:"outer",primary:n,secondary:l.map(c=>({type:"column",column:c}))}}async function BT(t,e,n,o){const s=n.filter(m=>m.type!=="Bytes"),l=yp(o),c=s.map(m=>[]),u=s.map(m=>null);for(let m=0;m<l.length;++m){const y=Pd(l[m].spec.axesSpec);for(let B=0;B<y.length;++B){const T=Ge.findIndex(s,N=>Ge.isEqual(N,y[B]));T===-1||u[T]||(y.length===1&&l[m].spec.name==="pl7.app/label"?(c[T]=[[m,B]],u[T]=l[m].columnId):c[T].push([m,B]))}}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,B]of c[m]){const T=await t.getUniqueValues(e,{columnId:l[y].columnId,...!u[m]&&{axis:Ge.cloneDeep(s[m])},filters:[],limit:p});if(T.overflow){u.splice(m,1),c.splice(m,1),s.splice(m,1);continue e}const N=T.values.type;for(const M of T.values.data)if(!(Ad(M,N)||M===null)&&(f[m].add(gp(M,N)),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 B=[...f[y]].map(N=>({value:N,label:N.toString()})),T=B[0].value;return{axis:Ge.cloneDeep(m),...u[y]&&{column:u[y]},options:B,defaultValue:T}})}function VT(t,e,n,o){const s=t.length,l=[];for(let c=0;c<e[0].data.length;++c){const u=[],p=(o++).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(),B=e[m].data[c],T=e[m].type;Pg(e[m].absent,c)?f[y]=void 0:Ad(B,T)||B===null?f[y]=null:f[y]=gp(B,T)}l.push(f)}return l}const NT=t=>t.type==="column"&&t.spec.axesSpec.length===1&&t.spec.name==="pl7.app/label";async function AT(t,e,n,o){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=>!Ge.find(n,F=>Ge.isEqual(F.axis,s[C].id)||Ge.isEqual(F.column,s[C].id))).sort((C,F)=>{var I,Y;if(s[C].type!==s[F].type)return s[C].type==="axis"?-1:1;const O=(I=s[C].spec.annotations)==null?void 0:I["pl7.app/table/orderPriority"],Z=(Y=s[F].spec.annotations)==null?void 0:Y["pl7.app/table/orderPriority"];return O===void 0?Z===void 0?0:1:Z===void 0?-1:Number(Z)-Number(O)}),u=Ge.cloneDeep(c),p=wT(s,c);for(let C=c.length-1;C>=0;--C){const F=c[C];if(!NT(s[F]))continue;const O=Ua(s[F].spec.axesSpec[0]),Z=Ge.findIndex(c,I=>Ge.isEqual(s[I].id,O));if(Z===-1&&Ge.findIndex(n,Y=>Ge.isEqual(Y.axis,O))===-1){console.warn(`added label column, but the axis is not in the data; axisId: ${O}`);continue}c[Z]=F;for(const I of p)I.axisIdx===F&&(I.axisIdx=Z);c.splice(C,1),u.splice(C,1)}const f=await t.getShape(e),m=f.rows,y=u.map(C=>ST(C,s[C],o));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 bT(p,f,y,await t.getData(e,c),u,c);const B=[...c],T=new Map;for(let C=0;C<l;++C)T.set(C,-1);for(let C=0;C<B.length;++C){const F=B[C];T.has(F)&&T.set(F,C)}for(const[C,F]of T)F===-1&&(T.set(C,B.length),B.push(C));const N=[];for(let C=0;C<l;++C){const F=T.get(C);if(F===void 0||F===-1)throw new Error("assertion exception");N.push(F)}let M;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(M&&!Ge.isEqual(M.request.sortModel,C.request.sortModel)){M=void 0,C.api.setGridOption("loading",!0),C.success({rowData:[],rowCount:0});return}M=C;let F=0,O=[];if(m>0&&C.request.startRow!==void 0&&C.request.endRow!==void 0&&(F=Math.min(m,C.request.endRow)-C.request.startRow,F>0)){const Z=await t.getData(e,B,{offset:C.request.startRow,length:F});O=VT(u,Z,N,C.request.startRow)}C.success({rowData:O,rowCount:m}),C.api.autoSizeAllColumns(),C.api.setGridOption("loading",!1)}catch(F){C.api.setGridOption("loading",!0),C.fail(),console.trace(F)}}}}}const _p=_m(),PT=["onClick"],vp=r.defineComponent({__name:"PlAgGridColumnManager",props:{api:{}},setup(t){const e=t,{api:n}=r.toRefs(e),o=r.ref([]),s=r.ref(),l=r.ref(!1),c=r.ref(0);dp(s,{handle:".handle",onChange(p){n.value.moveColumns(p.map(f=>o.value[f]),0)}});function u(p){n.value.setColumnsVisible([p],!p.isVisible())}return r.onMounted(()=>{n.value.addEventListener("displayedColumnsChanged",()=>{o.value=[...n.value.getAllGridColumns()??[]],c.value++}),o.value=n.value.getAllGridColumns()??[]}),(p,f)=>(r.openBlock(),r.createElementBlock("div",null,[(r.openBlock(),r.createBlock(r.Teleport,{to:`#${r.unref(_p)}`},[r.createVNode(r.unref(ys),{onClick:f[0]||(f[0]=r.withModifiers(m=>l.value=!l.value,["stop"]))},{append:r.withCtx(()=>[r.createVNode(r.unref(ln),{name:"columns"})]),default:r.withCtx(()=>[f[2]||(f[2]=r.createTextVNode(" Columns "))]),_:1})],8,["to"])),r.createVNode(r.unref(Ou),{modelValue:l.value,"onUpdate:modelValue":f[1]||(f[1]=m=>l.value=m),shadow:!0,width:"368px","close-on-outside-click":""},{title:r.withCtx(()=>f[3]||(f[3]=[r.createTextVNode("Columns")])),default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("div",{ref_key:"listRef",ref:s,key:c.value,class:"pl-ag-columns"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,m=>(r.openBlock(),r.createElementBlock("div",{key:m.getId(),class:"pl-ag-columns__item"},[r.createElementVNode("div",{class:r.normalizeClass([{handle:!m.getColDef().lockPosition},"pl-ag-columns__drag"])},[r.createVNode(r.unref($n),{name:"drag-dots"})],2),r.createElementVNode("div",{class:r.normalizeClass([{visible:m.isVisible()},"pl-ag-columns__title"])},r.toDisplayString(m.getColDef().headerName),3),r.createElementVNode("div",{class:"pl-ag-columns__visibility",onClick:y=>u(m)},[r.createVNode(r.unref(vt),{"close-delay":500,position:"top"},{tooltip:r.withCtx(()=>f[4]||(f[4]=[r.createTextVNode("Show/Hide")])),default:r.withCtx(()=>[r.createVNode(r.unref(ln),{name:m.isVisible()?"view-show":"view-hide"},null,8,["name"])]),_:2},1024)],8,PT)]))),128))]))]),_:1},8,["modelValue"])]))}}),DT=["id"],FT=r.defineComponent({__name:"PlAgDataTableToolsPanel",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{id:r.unref(_p),class:"d-flex gap-6"},[r.renderSlot(e.$slots,"default")],8,DT))}}),RT={class:"ap-ag-data-table-container"},MT={key:1,class:"ap-ag-data-table-sheets"},IT=Ns(r.defineComponent({__name:"PlAgDataTable",props:r.mergeModels({settings:{},showColumnsPanel:{type:Boolean}},{modelValue:{default:{gridState:{}}},modelModifiers:{}}),emits:r.mergeModels(["onRowDoubleClicked","columnsChanged"],["update:modelValue"]),setup(t,{expose:e,emit:n}){x.ModuleRegistry.registerModules([rs.ClientSideRowModelModule,dd.ClipboardModule,cd.ServerSideRowModelModule,ud.RangeSelectionModule,qa,eu]);const o=r.useModel(t,"modelValue"),s=t,{settings:l}=r.toRefs(s),c=n;r.watch(()=>l.value,async(S,w)=>{if(S.sourceType!=="pframe"||!S.pFrame||!S.join||w&&w.sourceType==="pframe"&&Ge.isEqual(S.pFrame,w.pFrame)&&Ge.isEqual(S.join,w.join))return;const k=window.platforma;if(!k)throw Error("platforma not set");const $=k.pFrameDriver;if(!$)throw Error("platforma.pFrameDriver not set");const te=await TT($,S.pFrame,S.join),ne=o.value;ne.pTableParams||(ne.pTableParams={sorting:[],filters:[]}),ne.pTableParams.join=te,o.value=ne});const u=Cp(()=>l.value.sourceType,async S=>{var k;const w=l.value.sourceType;switch(w){case"pframe":{const $=window.platforma;if(!$)throw Error("platforma not set");const te=$.pFrameDriver;if(!te)throw Error("platforma.pFrameDriver not set");if(!l.value.pFrame)return[];const ne=l.value.pFrame,be=(k=o.value.pTableParams)==null?void 0:k.join;return be?await BT(te,ne,l.value.sheetAxes,be):[]}case"ptable":return l.value.sheets??[];case"xsv":return[];default:throw Error(`unsupported source type: ${w}`)}});function p(S){if(!(l.value.sourceType!=="ptable"&&l.value.sourceType!=="pframe"))return(S==null?void 0:S.sortModel.map(w=>{const{spec:k,...$}=fp(w.colId);return{column:$,ascending:w.sort==="asc",naAndAbsentAreLeastValues:!0}}))??[]}const f=r.computed({get:()=>{const S=o.value;return{columnOrder:S.gridState.columnOrder,sort:S.gridState.sort,columnVisibility:S.gridState.columnVisibility}},set:S=>{const w=o.value,k=N.value.rowModelType==="clientSide"?void 0:p(S.sort);w.gridState={...w.gridState,...S},(l.value.sourceType==="ptable"||l.value.sourceType==="pframe")&&(w.pTableParams||(w.pTableParams={sorting:[],filters:[]}),w.pTableParams.sorting=k),o.value=w}}),m=S=>Lr(S);function y(S){var w;if(!(l.value.sourceType!=="ptable"&&l.value.sourceType!=="pframe"))return((w=u.value)==null?void 0:w.map(k=>({type:"bySingleColumn",column:k.column?{type:"column",id:k.column}:{type:"axis",id:k.axis},predicate:{operator:"Equal",reference:S[m(k.axis)]}})))??[]}const B=r.computed({get:()=>o.value.gridState.sheets??{},set:S=>{const w=y(S),k=o.value;k.gridState.sheets=S,(l.value.sourceType==="ptable"||l.value.sourceType==="pframe")&&(k.pTableParams||(k.pTableParams={sorting:[],filters:[]}),k.pTableParams.filters=w),o.value=k}});r.watch(()=>[l.value,u.value],(S,w)=>{const[k,$]=S;if(!$)return;if(w){const[ne,be]=w;if((k.sourceType==="ptable"||k.sourceType==="pframe")&&k.sourceType===(ne==null?void 0:ne.sourceType)&&Ge.isEqual($,be))return}if(k.sourceType!=="ptable"&&k.sourceType!=="pframe"){B.value={};return}const te=B.value;for(const ne of $){const be=m(ne.axis);te[be]||(te[be]=ne.defaultValue??ne.options[0].value)}B.value=te},{immediate:!0});const T=r.shallowRef(),N=r.shallowRef({animateRows:!1,suppressColumnMoveAnimation:!0,cellSelection:!0,initialState:f.value,autoSizeStrategy:{type:"fitCellContents"},onRowDataUpdated:S=>{S.api.autoSizeAllColumns()},onRowDoubleClicked:S=>{S.data&&c("onRowDoubleClicked",S.data.key)},defaultColDef:{suppressHeaderMenuButton:!0},maintainColumnOrder:!0,localeText:{loadingError:"..."},rowModelType:"clientSide",maxBlocksInCache:1e3,cacheBlockSize:100,blockLoadDebounceMillis:500,serverSideSortAllLevels:!0,suppressServerSideFullWidthLoadingRow:!0,getRowId:S=>S.data.id,loading:!0,loadingOverlayComponentParams:{notReady:!0},loadingOverlayComponent:up,noRowsOverlayComponent:pp,sideBar:{},defaultCsvExportParams:{allColumns:!0,suppressQuotes:!0,fileName:"table.csv"}}),M=S=>{const w=S.api;T.value=new Proxy(w,{get(k,$,te){switch($){case"setGridOption":return(ne,be)=>{const $e=N.value;$e[ne]=be,N.value=$e,w.setGridOption(ne,be)};case"updateGridOptions":return ne=>{N.value={...N.value,...ne},w.updateGridOptions(ne)};default:return Reflect.get(k,$,te)}}})},G=S=>({columnOrder:S.columnOrder,sort:S.sort,columnVisibility:S.columnVisibility??(S.columnOrder?{hiddenColIds:[]}:void 0)}),C=S=>{N.value.initialState=f.value=G(S.state),S.api.autoSizeAllColumns()},F=()=>{N.value.initialState=f.value=G(T.value.getState()),T.value=void 0};let O=!1;const Z=()=>{if(!O)return;const S=T.value;S!==void 0&&(S.exportDataAsCsv(),O=!1,S.setGridOption("cacheBlockSize",100))},I=()=>{if(!O)return;const S=T.value;if(S===void 0)return;const w=S.getServerSideGroupLevelState()[0];w.cacheBlockSize===w.rowCount&&S.refreshServerSide({route:w.route,purge:!1})};e({exportCsv:async()=>{const S=T.value;if(S!==void 0){if(N.value.rowModelType==="clientSide"){S.exportDataAsCsv();return}if(N.value.rowModelType==="serverSide"){const w=S.getServerSideGroupLevelState()[0];if(w.rowCount<=w.cacheBlockSize){S.exportDataAsCsv();return}O||(O=!0,S.setGridOption("cacheBlockSize",w.rowCount))}}}});const W=r.ref(0);r.watch(()=>[T.value,f.value],(S,w)=>{if(Ge.isEqual(S,w))return;const[k,$]=S;if(!k)return;const te=G(k.getState());Ge.isEqual($,te)||(N.value.initialState=$,++W.value)}),r.watch(()=>N.value,(S,w)=>{var k;if(w&&(S.rowModelType!=w.rowModelType&&++W.value,!Ge.isEqual(S.columnDefs,w.columnDefs)&&S.columnDefs)){const $=be=>!("children"in be),te=(k=S.columnDefs)==null?void 0:k.filter($),ne=te==null?void 0:te.map(be=>be.colId).filter(be=>be!==void 0).map(be=>fp(be));c("columnsChanged",ne??[])}});const P=(S,w)=>{var $;const k=B.value;k[S]!==w&&(k[S]=w,B.value=k,($=T.value)==null||$.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1}}))},j=window.platforma;if(!j)throw Error("platforma not set");const U=j.pFrameDriver;if(!U)throw Error("platforma.pFrameDriver not set");const X=j.blobDriver;if(!X)throw Error("platforma.blobDriver not set");let L;return r.watch(()=>[T.value,l.value,u.value],async S=>{var ne,be;const[w,k,$]=S;if(!w||Ge.isEqual(k,L))return;L=k;const te=k.sourceType;switch(te){case"pframe":case"ptable":{const $e=k.pTable;if(!$e||!$)return w.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const ot=(be=(ne=f.value)==null?void 0:ne.columnVisibility)==null?void 0:be.hiddenColIds,Cn=await AT(U,$e,$,ot);return w.updateGridOptions({loading:Cn.rowModelType!=="clientSide",loadingOverlayComponentParams:{notReady:!1},...Cn})}case"xsv":{const $e=k.xsvFile;if(!($e!=null&&$e.ok)||!$e.value)return w.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const ot=await vT(X,$e.value);return w.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1},...ot})}default:throw Error(`unsupported source type: ${te}`)}}),(S,w)=>(r.openBlock(),r.createElementBlock("div",RT,[T.value&&S.showColumnsPanel?(r.openBlock(),r.createBlock(r.unref(vp),{key:0,api:T.value},null,8,["api"])):r.createCommentVNode("",!0),r.unref(u).value&&r.unref(u).value.length>0?(r.openBlock(),r.createElementBlock("div",MT,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u).value,(k,$)=>(r.openBlock(),r.createBlock(r.unref(Iu),{key:$,"model-value":B.value[m(k.axis)],options:k.options,"onUpdate:modelValue":te=>P(m(k.axis),te)},null,8,["model-value","options","onUpdate:modelValue"]))),128))])):r.createCommentVNode("",!0),(r.openBlock(),r.createBlock(r.unref(fm.AgGridVue),{key:W.value,theme:r.unref(nu),class:"ap-ag-data-table-grid","grid-options":N.value,onGridReady:M,onStateUpdated:C,onGridPreDestroyed:F,onStoreRefreshed:Z,onModelUpdated:I},null,8,["theme","grid-options"]))]))}}),[["__scopeId","data-v-330ddc9a"]]),LT={key:0,class:"d-flex gap-10 flex-column"},OT={key:0},GT=Ns(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:o,restrictions:s,defaults:l}=r.toRefs(n),c=L=>Lr(L.id),u=r.computed(()=>o.value.filter(L=>{const S=L.type;switch(S){case"axis":return L.spec.type!=="Bytes";case"column":return L.spec.valueType!=="Bytes";default:throw Error(`unsupported data type: ${S}`)}}).map(L=>({column:L,id:c(L)}))),p=r.computed(()=>{const L=s.value??[],S={};for(const{column:w,id:k}of u.value){const $=Ge.find(L,te=>Ge.isEqual(te.column.id,w.id));$!==void 0&&(S[k]=$.allowedFilterTypes)}return S}),f=r.computed(()=>{const L=l.value??[],S={};for(const{column:w,id:k}of u.value){const $=Ge.find(L,te=>Ge.isEqual(te.column.id,w.id));$!==void 0&&(S[k]=$.default)}return S}),m=L=>L!==void 0?L:f.value,y=r.reactive({state:m(e.value.state)});r.watch(()=>e.value,L=>{Ge.isEqual(y.state,L.state)||(y.state=m(L.state))}),r.watch(()=>u.value,L=>{if(y.state!==void 0&&L.length===0)return;const S=y.state??{},w={};for(const{id:k}of L)S[k]!==void 0&&(w[k]=S[k]);y.state=w},{immediate:!0});const B=L=>{switch(L){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: ${L}`)}},T=["isNotNA","isNA","number_equals","number_notEquals","number_greaterThan","number_greaterThanOrEqualTo","number_lessThan","number_lessThanOrEqualTo","number_between"],N=["isNotNA","isNA","string_equals","string_notEquals","string_contains","string_doesNotContain","string_matches","string_doesNotMatch","string_containsFuzzyMatch"],M=r.computed(()=>{const L=p.value,S={};for(const{column:w,id:k}of u.value){let te=(w.type==="column"?w.spec.valueType:w.spec.type)==="String"?N:T;const ne=L[k];ne!==void 0&&(te=te.filter(be=>ne.includes(be))),S[k]=te.map(be=>({value:be,text:B(be)}))}return S}),G=r.computed(()=>Ge.some(Object.values(M.value),L=>L.length>0)),C=L=>{const S=L.type;switch(S){case"isNotNA":case"isNA":return;case"number_equals":case"number_notEquals":case"number_greaterThan":case"number_greaterThanOrEqualTo":case"number_lessThan":case"number_lessThanOrEqualTo":return L.reference;case"number_between":return L.lowerBound;case"string_equals":case"string_notEquals":case"string_contains":case"string_doesNotContain":case"string_matches":case"string_doesNotMatch":case"string_containsFuzzyMatch":return L.reference;default:throw Error(`unsupported filter type: ${S}`)}},F=(L,S)=>{switch(L){case"isNotNA":case"isNA":return{type:L};case"number_equals":case"number_notEquals":case"number_greaterThan":case"number_greaterThanOrEqualTo":case"number_lessThan":case"number_lessThanOrEqualTo":return{type:L,reference:typeof S=="number"?S:0};case"number_between":return{type:L,lowerBound:typeof S=="number"?S: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:L,reference:typeof S=="string"?S:""};case"string_containsFuzzyMatch":return{type:L,reference:typeof S=="string"?S:"",maxEdits:2,substitutionsOnly:!1,wildcard:void 0};default:throw Error(`unsupported filter type: ${L}`)}},O=(L,S)=>{const w=y.state[L];y.state[L]=F(S,C(w))},Z=L=>{y.state[L]=f.value[L]??F(M.value[L][0].value)},I=(L,S)=>{S?Z(L):delete y.state[L]},Y=(L,S)=>{var ne,be;const w=Number(S);if(!Number.isFinite(w))throw Error("Model value is not a number.");const k=L.type==="column"?L.spec.valueType:L.spec.type;if((k==="Int"||k==="Long")&&!Number.isInteger(w))throw Error("Model value is not an integer.");const $=(ne=L.spec.annotations)==null?void 0:ne["pl7.app/min"];if($!==void 0){const $e=Number($);if(Number.isFinite($e)&&w<Number($))throw Error("Model value is too low.")}const te=(be=L.spec.annotations)==null?void 0:be["pl7.app/max"];if(te!==void 0){const $e=Number(te);if(Number.isFinite($e)&&w>Number(te))throw Error("Model value is too high.")}return w},W=(L,S)=>{var k,$;const w=((k=L.spec.domain)==null?void 0:k["pl7.app/alphabet"])??(($=L.spec.annotations)==null?void 0:$["pl7.app/alphabet"]);if(w==="nucleotide"&&!/^[AaTtGgCcNn]+$/.test(S))throw Error("Model value is not a nucleotide.");if(w==="aminoacid"&&!/^[AaCcDdEeFfGgHhIiKkLlMmNnPpQqRrSsTtVvWwYyXx]+$/.test(S))throw Error("Model value is not an aminoacid.");return S},P=L=>{try{return new RegExp(L),L}catch(S){throw S instanceof SyntaxError?Error("Model value is not a regexp."):S}},j=(L,S)=>{var $,te;const w=(($=L.spec.domain)==null?void 0:$["pl7.app/alphabet"])??((te=L.spec.annotations)==null?void 0:te["pl7.app/alphabet"]);if(w==="nucleotide")return[{value:"N",text:"N"}];if(w==="aminoacid")return[{value:"X",text:"X"}];const k=Ge.uniq(S);return k.sort(),k.map(ne=>({value:ne,text:ne}))},U=L=>{const S=L.type;switch(S){case"isNotNA":return{operator:"Not",operand:{operator:"IsNA"}};case"isNA":return{operator:"IsNA"};case"number_equals":case"string_equals":return{operator:"Equal",reference:L.reference};case"number_notEquals":case"string_notEquals":return{operator:"Not",operand:{operator:"Equal",reference:L.reference}};case"number_greaterThan":return{operator:"Greater",reference:L.reference};case"number_greaterThanOrEqualTo":return{operator:"GreaterOrEqual",reference:L.reference};case"number_lessThan":return{operator:"Less",reference:L.reference};case"number_lessThanOrEqualTo":return{operator:"LessOrEqual",reference:L.reference};case"number_between":return{operator:"And",operands:[{operator:L.includeLowerBound?"GreaterOrEqual":"Greater",reference:L.lowerBound},{operator:L.includeUpperBound?"LessOrEqual":"Less",reference:L.upperBound}]};case"string_contains":return{operator:"StringContains",substring:L.reference};case"string_doesNotContain":return{operator:"Not",operand:{operator:"StringContains",substring:L.reference}};case"string_matches":return{operator:"Matches",regex:L.reference};case"string_doesNotMatch":return{operator:"Not",operand:{operator:"Matches",regex:L.reference}};case"string_containsFuzzyMatch":return{operator:"StringContainsFuzzy",reference:L.reference,maxEdits:L.maxEdits,substitutionsOnly:L.substitutionsOnly,wildcard:L.wildcard};default:throw Error(`unsupported filter type: ${S}`)}},X=L=>u.value.map(({column:S,id:w})=>{if(!(w in L))return;const k=U(L[w]),{spec:$,...te}=S;return{type:"bySingleColumn",column:te,predicate:k}}).filter(S=>S!==void 0);return r.watch(()=>y,L=>{Ge.isEqual(L.state,e.value.state)||(e.value={state:Ge.cloneDeep(L.state),filters:X(L.state)})},{immediate:!0,deep:!0}),(L,S)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,({column:w,id:k},$)=>{var te,ne,be,$e,ot,Cn,Mn,xr,Hn,Yr,Rs,kr,Sr,Ms;return r.openBlock(),r.createElementBlock("div",{key:k},[M.value[k].length>0?(r.openBlock(),r.createElementBlock("form",LT,[r.createVNode(r.unref(Lu),{"model-value":!!y.state[k],"onUpdate:modelValue":Se=>I(k,Se)},{default:r.withCtx(()=>{var Se,Jr;return[r.createTextVNode(r.toDisplayString(((Jr=(Se=w.spec.annotations)==null?void 0:Se["pl7.app/label"])==null?void 0:Jr.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[k]}])},[y.state[k]?(r.openBlock(),r.createBlock(r.unref(mi),{key:0,"model-value":y.state[k].type,options:M.value[k],label:"Predicate","onUpdate:modelValue":Se=>O(k,Se)},null,8,["model-value","options","onUpdate:modelValue"])):r.createCommentVNode("",!0),((te=y.state[k])==null?void 0:te.type)==="number_equals"||((ne=y.state[k])==null?void 0:ne.type)==="number_notEquals"||((be=y.state[k])==null?void 0:be.type)==="number_lessThan"||(($e=y.state[k])==null?void 0:$e.type)==="number_lessThanOrEqualTo"||((ot=y.state[k])==null?void 0:ot.type)==="number_greaterThan"||((Cn=y.state[k])==null?void 0:Cn.type)==="number_greaterThanOrEqualTo"?(r.openBlock(),r.createBlock(r.unref(hr),{key:1,modelValue:y.state[k].reference,"onUpdate:modelValue":Se=>y.state[k].reference=Se,parse:Se=>Y(w,Se),label:"Reference value"},null,8,["modelValue","onUpdate:modelValue","parse"])):r.createCommentVNode("",!0),((Mn=y.state[k])==null?void 0:Mn.type)==="number_between"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[r.createVNode(r.unref(hr),{modelValue:y.state[k].lowerBound,"onUpdate:modelValue":Se=>y.state[k].lowerBound=Se,parse:Se=>Y(w,Se),label:"Lower bound"},null,8,["modelValue","onUpdate:modelValue","parse"]),r.createVNode(r.unref(Cs),{modelValue:y.state[k].includeLowerBound,"onUpdate:modelValue":Se=>y.state[k].includeLowerBound=Se,label:"Include lower bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(hr),{modelValue:y.state[k].upperBound,"onUpdate:modelValue":Se=>y.state[k].upperBound=Se,parse:Se=>Y(w,Se),label:"Upper bound"},null,8,["modelValue","onUpdate:modelValue","parse"]),r.createVNode(r.unref(Cs),{modelValue:y.state[k].includeUpperBound,"onUpdate:modelValue":Se=>y.state[k].includeUpperBound=Se,label:"Include upper bound"},null,8,["modelValue","onUpdate:modelValue"])],64)):r.createCommentVNode("",!0),((xr=y.state[k])==null?void 0:xr.type)==="string_equals"||((Hn=y.state[k])==null?void 0:Hn.type)==="string_notEquals"||((Yr=y.state[k])==null?void 0:Yr.type)==="string_contains"||((Rs=y.state[k])==null?void 0:Rs.type)==="string_doesNotContain"?(r.openBlock(),r.createBlock(r.unref(hr),{key:3,modelValue:y.state[k].reference,"onUpdate:modelValue":Se=>y.state[k].reference=Se,parse:Se=>W(w,Se),label:"Reference value"},null,8,["modelValue","onUpdate:modelValue","parse"])):r.createCommentVNode("",!0),((kr=y.state[k])==null?void 0:kr.type)==="string_matches"||((Sr=y.state[k])==null?void 0:Sr.type)==="string_doesNotMatch"?(r.openBlock(),r.createBlock(r.unref(hr),{key:4,modelValue:y.state[k].reference,"onUpdate:modelValue":Se=>y.state[k].reference=Se,parse:P,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"])):r.createCommentVNode("",!0),((Ms=y.state[k])==null?void 0:Ms.type)==="string_containsFuzzyMatch"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:5},[r.createVNode(r.unref(hr),{modelValue:y.state[k].reference,"onUpdate:modelValue":Se=>y.state[k].reference=Se,parse:Se=>W(w,Se),label:"Reference value"},null,8,["modelValue","onUpdate:modelValue","parse"]),r.createVNode(r.unref(ap),{modelValue:y.state[k].maxEdits,"onUpdate:modelValue":Se=>y.state[k].maxEdits=Se,max:5,breakpoints:"",label:"Maximum nuber of substitutions and indels"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(Cs),{modelValue:y.state[k].substitutionsOnly,"onUpdate:modelValue":Se=>y.state[k].substitutionsOnly=Se,label:"Substitutions only"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(mi),{modelValue:y.state[k].wildcard,"onUpdate:modelValue":Se=>y.state[k].wildcard=Se,options:j(w,y.state[k].reference),clearable:"",label:"Wildcard symbol"},null,8,["modelValue","onUpdate:modelValue","options"])],64)):r.createCommentVNode("",!0)],2)])):r.createCommentVNode("",!0)])}),128)),G.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",OT,"No filters applicable"))],64))}}),[["__scopeId","data-v-6cb52299"]]),zT={key:1,class:"alert-error"},$T={key:2},ZT=r.defineComponent({__name:"ValueOrErrorsComponent",props:{valueOrError:{}},setup(t){const e=t,n=r.computed(()=>e.valueOrError&&e.valueOrError.ok?e.valueOrError.value:void 0),o=r.computed(()=>e.valueOrError&&!e.valueOrError.ok?e.valueOrError.errors:void 0),s=r.computed(()=>n.value===void 0&&o.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),o.value?(r.openBlock(),r.createElementBlock("div",zT,r.toDisplayString(o.value),1)):r.createCommentVNode("",!0),s.value?(r.openBlock(),r.createElementBlock("div",$T,"Unresolved")):r.createCommentVNode("",!0)]))}}),UT={style:{height:"100%"}},WT=r.defineComponent({__name:"PlAgCellFile",props:{params:{}},setup(t){const e=t,n=r.computed(()=>e.params.extensions),o=r.computed(()=>e.params.value);function s(c){e.params.setValue(c)}const l=r.computed(()=>e.params.resolveProgress?e.params.resolveProgress(o.value):void 0);return(c,u)=>(r.openBlock(),r.createElementBlock("div",UT,[r.createVNode(r.unref(ip),{"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":o.value,progress:l.value,"onUpdate:modelValue":s},null,8,["placeholder","extensions","model-value","progress"])]))}}),HT={class:"pl-ag-grid-open-cell d-flex"},jT={class:"pl-ag-grid-open-cell__value"},qT=r.defineComponent({__name:"PlAgTextAndButtonCell",props:{params:{}},setup(t){const e=t;function n(){if(e.params.invokeRowsOnDoubleClick){const o=e.params.api,s={rowPinned:e.params.node.rowPinned,api:o,rowIndex:e.params.node.rowIndex,context:o,type:"rowDoubleClicked",node:e.params.node,data:e.params.data,event:null};o.dispatchEvent(s)}else e.params.onClick&&e.params.onClick(e.params)}return(o,s)=>(r.openBlock(),r.createElementBlock("div",HT,[r.createElementVNode("div",jT,r.toDisplayString(o.params.value),1),r.createElementVNode("div",{class:"pl-ag-grid-open-cell__activator text-caps11 align-center",onClick:r.withModifiers(n,["stop"])},[r.createVNode(r.unref($n),{name:o.params.icon??"maximize"},null,8,["name"]),r.createTextVNode(" "+r.toDisplayString(o.params.btnLabel??"Open"),1)])]))}}),Ps=new Map;function KT(t,e){const n=r.getCurrentScope()??r.effectScope(),o=n.run(()=>(r.onScopeDispose(()=>{Ps.delete(t)}),r.reactive(e())));return o[Symbol.dispose]=()=>{n.stop()},o}function YT(t){const e=Symbol();return()=>(Ps.has(e)||Ps.set(e,KT(e,t)),Ps.get(e))}function JT(t){return r.computed(()=>{try{return yd(t())}catch(e){return{errors:[String(e)],value:void 0}}})}function Cp(t,e,n){const o=r.ref(0),s=r.reactive({loading:r.computed(()=>o.value>0),loadingRef:o,value:void 0,error:void 0}),l=Cm(e);return r.watch(t,async c=>{s.error=void 0,o.value++,l(c).then(u=>{u.ok&&(s.value=u.value)}).catch(u=>{s.value=void 0,s.error=u}).finally(()=>{o.value--})},Object.assign({immediate:!0,deep:!0},n??{})),s}const ko=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,wp=new Set,Pl=typeof process=="object"&&process?process:{},bp=(t,e,n,o)=>{typeof Pl.emitWarning=="function"?Pl.emitWarning(t,e,n,o):console.error(`[${n}] ${e}: ${t}`)};let Ds=globalThis.AbortController,xp=globalThis.AbortSignal;if(typeof Ds>"u"){xp=class{constructor(){Ue(this,"onabort");Ue(this,"_onabort",[]);Ue(this,"reason");Ue(this,"aborted",!1)}addEventListener(o,s){this._onabort.push(s)}},Ds=class{constructor(){Ue(this,"signal",new xp);e()}abort(o){var s,l;if(!this.signal.aborted){this.signal.reason=o,this.signal.aborted=!0;for(const c of this.signal._onabort)c(o);(l=(s=this.signal).onabort)==null||l.call(s,o)}}};let t=((Sp=Pl.env)==null?void 0:Sp.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{t&&(t=!1,bp("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 XT=t=>!wp.has(t),wr=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),kp=t=>wr(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Fs:null:null;class Fs extends Array{constructor(e){super(e),this.fill(0)}}const Hr=class Hr{constructor(e,n){Ue(this,"heap");Ue(this,"length");if(!b(Hr,So))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}static create(e){const n=kp(e);if(!n)return[];me(Hr,So,!0);const o=new Hr(e,n);return me(Hr,So,!1),o}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};So=new WeakMap,ze(Hr,So,!1);let Dl=Hr;const Ml=class Ml{constructor(e){ze(this,re);ze(this,pn);ze(this,Ot);ze(this,hn);ze(this,fn);ze(this,Eo);ze(this,To);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");ze(this,ct);ze(this,mn);ze(this,at);ze(this,Ke);ze(this,xe);ze(this,Tt);ze(this,Gt);ze(this,bt);ze(this,ht);ze(this,gn);ze(this,ft);ze(this,yn);ze(this,_n);ze(this,zt);ze(this,vn);ze(this,br);ze(this,Bt);ze(this,jr,()=>{});ze(this,Wn,()=>{});ze(this,Fi,()=>{});ze(this,$t,()=>!1);ze(this,qr,e=>{});ze(this,Bo,(e,n,o)=>{});ze(this,Ri,(e,n,o,s)=>{if(o||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Ue(this,Ep,"LRUCache");const{max:n=0,ttl:o,ttlResolution:s=1,ttlAutopurge:l,updateAgeOnGet:c,updateAgeOnHas:u,allowStale:p,dispose:f,disposeAfter:m,noDisposeOnSet:y,noUpdateTTL:B,maxSize:T=0,maxEntrySize:N=0,sizeCalculation:M,fetchMethod:G,memoMethod:C,noDeleteOnFetchRejection:F,noDeleteOnStaleGet:O,allowStaleOnFetchRejection:Z,allowStaleOnFetchAbort:I,ignoreFetchAbort:Y}=e;if(n!==0&&!wr(n))throw new TypeError("max option must be a nonnegative integer");const W=n?kp(n):Array;if(!W)throw new Error("invalid max value: "+n);if(me(this,pn,n),me(this,Ot,T),this.maxEntrySize=N||b(this,Ot),this.sizeCalculation=M,this.sizeCalculation){if(!b(this,Ot)&&!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(me(this,To,C),G!==void 0&&typeof G!="function")throw new TypeError("fetchMethod must be a function if specified");if(me(this,Eo,G),me(this,br,!!G),me(this,at,new Map),me(this,Ke,new Array(n).fill(void 0)),me(this,xe,new Array(n).fill(void 0)),me(this,Tt,new W(n)),me(this,Gt,new W(n)),me(this,bt,0),me(this,ht,0),me(this,gn,Dl.create(n)),me(this,ct,0),me(this,mn,0),typeof f=="function"&&me(this,hn,f),typeof m=="function"?(me(this,fn,m),me(this,ft,[])):(me(this,fn,void 0),me(this,ft,void 0)),me(this,vn,!!b(this,hn)),me(this,Bt,!!b(this,fn)),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!B,this.noDeleteOnFetchRejection=!!F,this.allowStaleOnFetchRejection=!!Z,this.allowStaleOnFetchAbort=!!I,this.ignoreFetchAbort=!!Y,this.maxEntrySize!==0){if(b(this,Ot)!==0&&!wr(b(this,Ot)))throw new TypeError("maxSize must be a positive integer if specified");if(!wr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");de(this,re,lm).call(this)}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!O,this.updateAgeOnGet=!!c,this.updateAgeOnHas=!!u,this.ttlResolution=wr(s)||s===0?s:1,this.ttlAutopurge=!!l,this.ttl=o||0,this.ttl){if(!wr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");de(this,re,id).call(this)}if(b(this,pn)===0&&this.ttl===0&&b(this,Ot)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!b(this,pn)&&!b(this,Ot)){const P="LRU_CACHE_UNBOUNDED";XT(P)&&(wp.add(P),bp("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",P,Ml))}}static unsafeExposeInternals(e){return{starts:b(e,_n),ttls:b(e,zt),sizes:b(e,yn),keyMap:b(e,at),keyList:b(e,Ke),valList:b(e,xe),next:b(e,Tt),prev:b(e,Gt),get head(){return b(e,bt)},get tail(){return b(e,ht)},free:b(e,gn),isBackgroundFetch:n=>{var o;return de(o=e,re,Je).call(o,n)},backgroundFetch:(n,o,s,l)=>{var c;return de(c=e,re,Ba).call(c,n,o,s,l)},moveToTail:n=>{var o;return de(o=e,re,ns).call(o,n)},indexes:n=>{var o;return de(o=e,re,Rr).call(o,n)},rindexes:n=>{var o;return de(o=e,re,Mr).call(o,n)},isStale:n=>{var o;return b(o=e,$t).call(o,n)}}}get max(){return b(this,pn)}get maxSize(){return b(this,Ot)}get calculatedSize(){return b(this,mn)}get size(){return b(this,ct)}get fetchMethod(){return b(this,Eo)}get memoMethod(){return b(this,To)}get dispose(){return b(this,hn)}get disposeAfter(){return b(this,fn)}getRemainingTTL(e){return b(this,at).has(e)?1/0:0}*entries(){for(const e of de(this,re,Rr).call(this))b(this,xe)[e]!==void 0&&b(this,Ke)[e]!==void 0&&!de(this,re,Je).call(this,b(this,xe)[e])&&(yield[b(this,Ke)[e],b(this,xe)[e]])}*rentries(){for(const e of de(this,re,Mr).call(this))b(this,xe)[e]!==void 0&&b(this,Ke)[e]!==void 0&&!de(this,re,Je).call(this,b(this,xe)[e])&&(yield[b(this,Ke)[e],b(this,xe)[e]])}*keys(){for(const e of de(this,re,Rr).call(this)){const n=b(this,Ke)[e];n!==void 0&&!de(this,re,Je).call(this,b(this,xe)[e])&&(yield n)}}*rkeys(){for(const e of de(this,re,Mr).call(this)){const n=b(this,Ke)[e];n!==void 0&&!de(this,re,Je).call(this,b(this,xe)[e])&&(yield n)}}*values(){for(const e of de(this,re,Rr).call(this))b(this,xe)[e]!==void 0&&!de(this,re,Je).call(this,b(this,xe)[e])&&(yield b(this,xe)[e])}*rvalues(){for(const e of de(this,re,Mr).call(this))b(this,xe)[e]!==void 0&&!de(this,re,Je).call(this,b(this,xe)[e])&&(yield b(this,xe)[e])}[(Tp=Symbol.iterator,Ep=Symbol.toStringTag,Tp)](){return this.entries()}find(e,n={}){for(const o of de(this,re,Rr).call(this)){const s=b(this,xe)[o],l=de(this,re,Je).call(this,s)?s.__staleWhileFetching:s;if(l!==void 0&&e(l,b(this,Ke)[o],this))return this.get(b(this,Ke)[o],n)}}forEach(e,n=this){for(const o of de(this,re,Rr).call(this)){const s=b(this,xe)[o],l=de(this,re,Je).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,b(this,Ke)[o],this)}}rforEach(e,n=this){for(const o of de(this,re,Mr).call(this)){const s=b(this,xe)[o],l=de(this,re,Je).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,b(this,Ke)[o],this)}}purgeStale(){let e=!1;for(const n of de(this,re,Mr).call(this,{allowStale:!0}))b(this,$t).call(this,n)&&(de(this,re,Ir).call(this,b(this,Ke)[n],"expire"),e=!0);return e}info(e){const n=b(this,at).get(e);if(n===void 0)return;const o=b(this,xe)[n],s=de(this,re,Je).call(this,o)?o.__staleWhileFetching:o;if(s===void 0)return;const l={value:s};if(b(this,zt)&&b(this,_n)){const c=b(this,zt)[n],u=b(this,_n)[n];if(c&&u){const p=c-(ko.now()-u);l.ttl=p,l.start=Date.now()}}return b(this,yn)&&(l.size=b(this,yn)[n]),l}dump(){const e=[];for(const n of de(this,re,Rr).call(this,{allowStale:!0})){const o=b(this,Ke)[n],s=b(this,xe)[n],l=de(this,re,Je).call(this,s)?s.__staleWhileFetching:s;if(l===void 0||o===void 0)continue;const c={value:l};if(b(this,zt)&&b(this,_n)){c.ttl=b(this,zt)[n];const u=ko.now()-b(this,_n)[n];c.start=Math.floor(Date.now()-u)}b(this,yn)&&(c.size=b(this,yn)[n]),e.unshift([o,c])}return e}load(e){this.clear();for(const[n,o]of e){if(o.start){const s=Date.now()-o.start;o.start=ko.now()-s}this.set(n,o.value,o)}}set(e,n,o={}){var B,T,N,M,G;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}=o;let{noUpdateTTL:f=this.noUpdateTTL}=o;const m=b(this,Ri).call(this,e,n,o.size||0,u);if(this.maxEntrySize&&m>this.maxEntrySize)return p&&(p.set="miss",p.maxEntrySizeExceeded=!0),de(this,re,Ir).call(this,e,"set"),this;let y=b(this,ct)===0?void 0:b(this,at).get(e);if(y===void 0)y=b(this,ct)===0?b(this,ht):b(this,gn).length!==0?b(this,gn).pop():b(this,ct)===b(this,pn)?de(this,re,Ta).call(this,!1):b(this,ct),b(this,Ke)[y]=e,b(this,xe)[y]=n,b(this,at).set(e,y),b(this,Tt)[b(this,ht)]=y,b(this,Gt)[y]=b(this,ht),me(this,ht,y),Ea(this,ct)._++,b(this,Bo).call(this,y,m,p),p&&(p.set="add"),f=!1;else{de(this,re,ns).call(this,y);const C=b(this,xe)[y];if(n!==C){if(b(this,br)&&de(this,re,Je).call(this,C)){C.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:F}=C;F!==void 0&&!c&&(b(this,vn)&&((B=b(this,hn))==null||B.call(this,F,e,"set")),b(this,Bt)&&((T=b(this,ft))==null||T.push([F,e,"set"])))}else c||(b(this,vn)&&((N=b(this,hn))==null||N.call(this,C,e,"set")),b(this,Bt)&&((M=b(this,ft))==null||M.push([C,e,"set"])));if(b(this,qr).call(this,y),b(this,Bo).call(this,y,m,p),b(this,xe)[y]=n,p){p.set="replace";const F=C&&de(this,re,Je).call(this,C)?C.__staleWhileFetching:C;F!==void 0&&(p.oldValue=F)}}else p&&(p.set="update")}if(s!==0&&!b(this,zt)&&de(this,re,id).call(this),b(this,zt)&&(f||b(this,Fi).call(this,y,s,l),p&&b(this,Wn).call(this,p,y)),!c&&b(this,Bt)&&b(this,ft)){const C=b(this,ft);let F;for(;F=C==null?void 0:C.shift();)(G=b(this,fn))==null||G.call(this,...F)}return this}pop(){var e;try{for(;b(this,ct);){const n=b(this,xe)[b(this,bt)];if(de(this,re,Ta).call(this,!0),de(this,re,Je).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(b(this,Bt)&&b(this,ft)){const n=b(this,ft);let o;for(;o=n==null?void 0:n.shift();)(e=b(this,fn))==null||e.call(this,...o)}}}has(e,n={}){const{updateAgeOnHas:o=this.updateAgeOnHas,status:s}=n,l=b(this,at).get(e);if(l!==void 0){const c=b(this,xe)[l];if(de(this,re,Je).call(this,c)&&c.__staleWhileFetching===void 0)return!1;if(b(this,$t).call(this,l))s&&(s.has="stale",b(this,Wn).call(this,s,l));else return o&&b(this,jr).call(this,l),s&&(s.has="hit",b(this,Wn).call(this,s,l)),!0}else s&&(s.has="miss");return!1}peek(e,n={}){const{allowStale:o=this.allowStale}=n,s=b(this,at).get(e);if(s===void 0||!o&&b(this,$t).call(this,s))return;const l=b(this,xe)[s];return de(this,re,Je).call(this,l)?l.__staleWhileFetching:l}async fetch(e,n={}){const{allowStale:o=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:B=this.allowStaleOnFetchRejection,ignoreFetchAbort:T=this.ignoreFetchAbort,allowStaleOnFetchAbort:N=this.allowStaleOnFetchAbort,context:M,forceRefresh:G=!1,status:C,signal:F}=n;if(!b(this,br))return C&&(C.fetch="get"),this.get(e,{allowStale:o,updateAgeOnGet:s,noDeleteOnStaleGet:l,status:C});const O={allowStale:o,updateAgeOnGet:s,noDeleteOnStaleGet:l,ttl:c,noDisposeOnSet:u,size:p,sizeCalculation:f,noUpdateTTL:m,noDeleteOnFetchRejection:y,allowStaleOnFetchRejection:B,allowStaleOnFetchAbort:N,ignoreFetchAbort:T,status:C,signal:F};let Z=b(this,at).get(e);if(Z===void 0){C&&(C.fetch="miss");const I=de(this,re,Ba).call(this,e,Z,O,M);return I.__returned=I}else{const I=b(this,xe)[Z];if(de(this,re,Je).call(this,I)){const U=o&&I.__staleWhileFetching!==void 0;return C&&(C.fetch="inflight",U&&(C.returnedStale=!0)),U?I.__staleWhileFetching:I.__returned=I}const Y=b(this,$t).call(this,Z);if(!G&&!Y)return C&&(C.fetch="hit"),de(this,re,ns).call(this,Z),s&&b(this,jr).call(this,Z),C&&b(this,Wn).call(this,C,Z),I;const W=de(this,re,Ba).call(this,e,Z,O,M),j=W.__staleWhileFetching!==void 0&&o;return C&&(C.fetch=Y?"stale":"refresh",j&&Y&&(C.returnedStale=!0)),j?W.__staleWhileFetching:W.__returned=W}}async forceFetch(e,n={}){const o=await this.fetch(e,n);if(o===void 0)throw new Error("fetch() returned undefined");return o}memo(e,n={}){const o=b(this,To);if(!o)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=o(e,u,{options:c,context:s});return this.set(e,p,c),p}get(e,n={}){const{allowStale:o=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,status:c}=n,u=b(this,at).get(e);if(u!==void 0){const p=b(this,xe)[u],f=de(this,re,Je).call(this,p);return c&&b(this,Wn).call(this,c,u),b(this,$t).call(this,u)?(c&&(c.get="stale"),f?(c&&o&&p.__staleWhileFetching!==void 0&&(c.returnedStale=!0),o?p.__staleWhileFetching:void 0):(l||de(this,re,Ir).call(this,e,"expire"),c&&o&&(c.returnedStale=!0),o?p:void 0)):(c&&(c.get="hit"),f?p.__staleWhileFetching:(de(this,re,ns).call(this,u),s&&b(this,jr).call(this,u),p))}else c&&(c.get="miss")}delete(e){return de(this,re,Ir).call(this,e,"delete")}clear(){return de(this,re,ld).call(this,"delete")}};pn=new WeakMap,Ot=new WeakMap,hn=new WeakMap,fn=new WeakMap,Eo=new WeakMap,To=new WeakMap,ct=new WeakMap,mn=new WeakMap,at=new WeakMap,Ke=new WeakMap,xe=new WeakMap,Tt=new WeakMap,Gt=new WeakMap,bt=new WeakMap,ht=new WeakMap,gn=new WeakMap,ft=new WeakMap,yn=new WeakMap,_n=new WeakMap,zt=new WeakMap,vn=new WeakMap,br=new WeakMap,Bt=new WeakMap,re=new WeakSet,id=function(){const e=new Fs(b(this,pn)),n=new Fs(b(this,pn));me(this,zt,e),me(this,_n,n),me(this,Fi,(l,c,u=ko.now())=>{if(n[l]=c!==0?u:0,e[l]=c,c!==0&&this.ttlAutopurge){const p=setTimeout(()=>{b(this,$t).call(this,l)&&de(this,re,Ir).call(this,b(this,Ke)[l],"expire")},c+1);p.unref&&p.unref()}}),me(this,jr,l=>{n[l]=e[l]!==0?ko.now():0}),me(this,Wn,(l,c)=>{if(e[c]){const u=e[c],p=n[c];if(!u||!p)return;l.ttl=u,l.start=p,l.now=o||s();const f=l.now-p;l.remainingTTL=u-f}});let o=0;const s=()=>{const l=ko.now();if(this.ttlResolution>0){o=l;const c=setTimeout(()=>o=0,this.ttlResolution);c.unref&&c.unref()}return l};this.getRemainingTTL=l=>{const c=b(this,at).get(l);if(c===void 0)return 0;const u=e[c],p=n[c];if(!u||!p)return 1/0;const f=(o||s())-p;return u-f},me(this,$t,l=>{const c=n[l],u=e[l];return!!u&&!!c&&(o||s())-c>u})},jr=new WeakMap,Wn=new WeakMap,Fi=new WeakMap,$t=new WeakMap,lm=function(){const e=new Fs(b(this,pn));me(this,mn,0),me(this,yn,e),me(this,qr,n=>{me(this,mn,b(this,mn)-e[n]),e[n]=0}),me(this,Ri,(n,o,s,l)=>{if(de(this,re,Je).call(this,o))return 0;if(!wr(s))if(l){if(typeof l!="function")throw new TypeError("sizeCalculation must be a function");if(s=l(o,n),!wr(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}),me(this,Bo,(n,o,s)=>{if(e[n]=o,b(this,Ot)){const l=b(this,Ot)-e[n];for(;b(this,mn)>l;)de(this,re,Ta).call(this,!0)}me(this,mn,b(this,mn)+e[n]),s&&(s.entrySize=o,s.totalCalculatedSize=b(this,mn))})},qr=new WeakMap,Bo=new WeakMap,Ri=new WeakMap,Rr=function*({allowStale:e=this.allowStale}={}){if(b(this,ct))for(let n=b(this,ht);!(!de(this,re,sd).call(this,n)||((e||!b(this,$t).call(this,n))&&(yield n),n===b(this,bt)));)n=b(this,Gt)[n]},Mr=function*({allowStale:e=this.allowStale}={}){if(b(this,ct))for(let n=b(this,bt);!(!de(this,re,sd).call(this,n)||((e||!b(this,$t).call(this,n))&&(yield n),n===b(this,ht)));)n=b(this,Tt)[n]},sd=function(e){return e!==void 0&&b(this,at).get(b(this,Ke)[e])===e},Ta=function(e){var l,c;const n=b(this,bt),o=b(this,Ke)[n],s=b(this,xe)[n];return b(this,br)&&de(this,re,Je).call(this,s)?s.__abortController.abort(new Error("evicted")):(b(this,vn)||b(this,Bt))&&(b(this,vn)&&((l=b(this,hn))==null||l.call(this,s,o,"evict")),b(this,Bt)&&((c=b(this,ft))==null||c.push([s,o,"evict"]))),b(this,qr).call(this,n),e&&(b(this,Ke)[n]=void 0,b(this,xe)[n]=void 0,b(this,gn).push(n)),b(this,ct)===1?(me(this,bt,me(this,ht,0)),b(this,gn).length=0):me(this,bt,b(this,Tt)[n]),b(this,at).delete(o),Ea(this,ct)._--,n},Ba=function(e,n,o,s){const l=n===void 0?void 0:b(this,xe)[n];if(de(this,re,Je).call(this,l))return l;const c=new Ds,{signal:u}=o;u==null||u.addEventListener("abort",()=>c.abort(u.reason),{signal:c.signal});const p={signal:c.signal,options:o,context:s},f=(M,G=!1)=>{const{aborted:C}=c.signal,F=o.ignoreFetchAbort&&M!==void 0;if(o.status&&(C&&!G?(o.status.fetchAborted=!0,o.status.fetchError=c.signal.reason,F&&(o.status.fetchAbortIgnored=!0)):o.status.fetchResolved=!0),C&&!F&&!G)return y(c.signal.reason);const O=T;return b(this,xe)[n]===T&&(M===void 0?O.__staleWhileFetching?b(this,xe)[n]=O.__staleWhileFetching:de(this,re,Ir).call(this,e,"fetch"):(o.status&&(o.status.fetchUpdated=!0),this.set(e,M,p.options))),M},m=M=>(o.status&&(o.status.fetchRejected=!0,o.status.fetchError=M),y(M)),y=M=>{const{aborted:G}=c.signal,C=G&&o.allowStaleOnFetchAbort,F=C||o.allowStaleOnFetchRejection,O=F||o.noDeleteOnFetchRejection,Z=T;if(b(this,xe)[n]===T&&(!O||Z.__staleWhileFetching===void 0?de(this,re,Ir).call(this,e,"fetch"):C||(b(this,xe)[n]=Z.__staleWhileFetching)),F)return o.status&&Z.__staleWhileFetching!==void 0&&(o.status.returnedStale=!0),Z.__staleWhileFetching;if(Z.__returned===Z)throw M},B=(M,G)=>{var F;const C=(F=b(this,Eo))==null?void 0:F.call(this,e,l,p);C&&C instanceof Promise&&C.then(O=>M(O===void 0?void 0:O),G),c.signal.addEventListener("abort",()=>{(!o.ignoreFetchAbort||o.allowStaleOnFetchAbort)&&(M(void 0),o.allowStaleOnFetchAbort&&(M=O=>f(O,!0)))})};o.status&&(o.status.fetchDispatched=!0);const T=new Promise(B).then(f,m),N=Object.assign(T,{__abortController:c,__staleWhileFetching:l,__returned:void 0});return n===void 0?(this.set(e,N,{...p.options,status:void 0}),n=b(this,at).get(e)):b(this,xe)[n]=N,N},Je=function(e){if(!b(this,br))return!1;const n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof Ds},ad=function(e,n){b(this,Gt)[n]=e,b(this,Tt)[e]=n},ns=function(e){e!==b(this,ht)&&(e===b(this,bt)?me(this,bt,b(this,Tt)[e]):de(this,re,ad).call(this,b(this,Gt)[e],b(this,Tt)[e]),de(this,re,ad).call(this,b(this,ht),e),me(this,ht,e))},Ir=function(e,n){var s,l,c,u;let o=!1;if(b(this,ct)!==0){const p=b(this,at).get(e);if(p!==void 0)if(o=!0,b(this,ct)===1)de(this,re,ld).call(this,n);else{b(this,qr).call(this,p);const f=b(this,xe)[p];if(de(this,re,Je).call(this,f)?f.__abortController.abort(new Error("deleted")):(b(this,vn)||b(this,Bt))&&(b(this,vn)&&((s=b(this,hn))==null||s.call(this,f,e,n)),b(this,Bt)&&((l=b(this,ft))==null||l.push([f,e,n]))),b(this,at).delete(e),b(this,Ke)[p]=void 0,b(this,xe)[p]=void 0,p===b(this,ht))me(this,ht,b(this,Gt)[p]);else if(p===b(this,bt))me(this,bt,b(this,Tt)[p]);else{const m=b(this,Gt)[p];b(this,Tt)[m]=b(this,Tt)[p];const y=b(this,Tt)[p];b(this,Gt)[y]=b(this,Gt)[p]}Ea(this,ct)._--,b(this,gn).push(p)}}if(b(this,Bt)&&((c=b(this,ft))!=null&&c.length)){const p=b(this,ft);let f;for(;f=p==null?void 0:p.shift();)(u=b(this,fn))==null||u.call(this,...f)}return o},ld=function(e){var n,o,s;for(const l of de(this,re,Mr).call(this,{allowStale:!0})){const c=b(this,xe)[l];if(de(this,re,Je).call(this,c))c.__abortController.abort(new Error("deleted"));else{const u=b(this,Ke)[l];b(this,vn)&&((n=b(this,hn))==null||n.call(this,c,u,e)),b(this,Bt)&&((o=b(this,ft))==null||o.push([c,u,e]))}}if(b(this,at).clear(),b(this,xe).fill(void 0),b(this,Ke).fill(void 0),b(this,zt)&&b(this,_n)&&(b(this,zt).fill(0),b(this,_n).fill(0)),b(this,yn)&&b(this,yn).fill(0),me(this,bt,0),me(this,ht,0),b(this,gn).length=0,me(this,mn,0),me(this,ct,0),b(this,Bt)&&b(this,ft)){const l=b(this,ft);let c;for(;c=l==null?void 0:l.shift();)(s=b(this,fn))==null||s.call(this,...c)}};let Fl=Ml;const QT={cacheSize:15e6};class eB{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 Kr=class Kr{constructor(e){Ue(this,"fileDataCache");Ue(this,"fileDataRefs",new Map);const n={...QT,...e??{}};this.fileDataCache=new Fl({maxSize:n.cacheSize,fetchMethod:async o=>new eB(await Mg().blobDriver.getContent(o)),sizeCalculation:o=>o.bytes.length,dispose:(o,s)=>{this.fileDataRefs.delete(s)}})}getDataRef(e){const n=this.fileDataRefs.get(e);if(n!==void 0)return n;const o=r.shallowRef();return this.fileDataRefs.set(e,o),(async()=>{try{const s=await this.fileDataCache.fetch(e);o.value=s}catch(s){console.error(s)}})(),o}getContentBytes(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var o;return(o=n.value)==null?void 0:o.bytes})}getContentString(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var o;return(o=n==null?void 0:n.value)==null?void 0:o.str})}getContentJson(e,n){if(e===void 0)return;const o=this.getDataRef(e);return r.computed(()=>{var s,l;return n===void 0?(s=o==null?void 0:o.value)==null?void 0:s.rawJson:(l=o==null?void 0:o.value)==null?void 0:l.validatedJson(n)})}static getContentBytes(e){return Kr.globalInstance.getContentBytes(e)}static getContentString(e){return Kr.globalInstance.getContentString(e)}static getContentJson(e,n){return Kr.globalInstance.getContentJson(e,n)}};Ue(Kr,"globalInstance",new Kr);let Rl=Kr;R.AgGridTheme=nu,R.BlockLayout=fT,R.ContextProvider=Qk,R.DataTable=Xv,R.DemoData=QE,R.DropdownListItem=go,R.LongText=wl,R.MultiError=Aa,R.PlAccordion=ux,R.PlAccordionSection=Cx,R.PlAgCellFile=WT,R.PlAgDataTable=IT,R.PlAgDataTableToolsPanel=FT,R.PlAgGridColumnManager=vp,R.PlAgOverlayLoading=up,R.PlAgOverlayNoRows=pp,R.PlAgTextAndButtonCell=qT,R.PlAlert=VC,R.PlBlockPage=mC,R.PlBtnAccent=jC,R.PlBtnDanger=KC,R.PlBtnGhost=ys,R.PlBtnGroup=y0,R.PlBtnLink=QC,R.PlBtnPrimary=hl,R.PlBtnSecondary=fl,R.PlBtnSplit=$C,R.PlCheckbox=Lu,R.PlCheckboxGroup=kb,R.PlChip=bl,R.PlContainer=yC,R.PlDialogModal=kl,R.PlDropdown=mi,R.PlDropdownLegacy=Hw,R.PlDropdownLine=Iu,R.PlDropdownMulti=vb,R.PlDropdownRef=ww,R.PlEditableTitle=k0,R.PlFileDialog=Zu,R.PlFileInput=ip,R.PlGrid=xC,R.PlIcon16=vs,R.PlIcon24=Du,R.PlLogView=zu,R.PlMaskIcon16=$n,R.PlMaskIcon24=ln,R.PlNotificationAlert=sp,R.PlNumberField=ob,R.PlProgressBar=Jw,R.PlRow=vC,R.PlSectionSeparator=$u,R.PlSlideModal=Ou,R.PlSpacer=Eu,R.PlTableFilters=GT,R.PlTabs=ix,R.PlTextArea=tw,R.PlTextField=hr,R.PlToggleSwitch=Cs,R.PlTooltip=vt,R.ReactiveFileContent=Rl,R.Scrollable=$S,R.Slider=ap,R.SliderRange=LS,R.SliderRangeTriple=ES,R.ThemeSwitcher=lC,R.UnresolvedError=Na,R.ValueOrErrorsComponent=ZT,R.activateAgGrid=tu,R.animate=Cu,R.animateInfinite=rC,R.call=mu,R.computedResult=JT,R.createModel=Ia,R.debounce=wu,R.defineApp=B_,R.defineStore=YT,R.delay=gu,R.detectOutside=nw,R.ensureError=Fa,R.eventListener=vl,R.formatZodError=Ma,R.getElementScrollPosition=Ru,R.identity=Da,R.isDefined=Sm,R.isElementVisible=Fu,R.isJsonEqual=Pa,R.isZodError=Ra,R.listToOptions=oC,R.makeEaseInOut=nC,R.makeEaseOut=vu,R.maskIcons16=JE,R.maskIcons24=XE,R.normalizeListOptions=ur,R.notEmpty=ll,R.randomInt=_u,R.randomString=tC,R.requestTick=cl,R.scrollIntoView=fi,R.showContextMenu=il,R.throttle=bu,R.timeout=yu,R.unwrapOptionalResult=km,R.unwrapValueOrErrors=gd,R.useClickOutside=_s,R.useDraggable=mS,R.useEventListener=rt,R.useFormState=hS,R.useHover=hu,R.useInterval=pS,R.useLabelNotch=Zn,R.useLocalStorage=xu,R.useMouse=pu,R.useMouseCapture=dr,R.usePosition=yo,R.useQuery=fS,R.useResizeObserver=lp,R.useScroll=dS,R.useSdkPlugin=el,R.useSortable=dp,R.useTheme=Su,R.useWatchFetch=Cp,R.wrapOptionalResult=yd,R.wrapValueOrErrors=xm,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
@@ -2,6 +2,12 @@ import type { PlDataTableState, PTableColumnSpec } from '@platforma-sdk/model';
2
2
  import type { PlDataTableSettings } from './types';
3
3
  declare let __VLS_typeProps: {
4
4
  settings: Readonly<PlDataTableSettings>;
5
+ /**
6
+ * The showColumnsPanel prop controls the display of a button that activates
7
+ * the columns management panel in the table. To make the button functional
8
+ * and visible, you must also include the PlAgDataTableToolsPanel component in your layout.
9
+ * This component serves as the target for teleporting the button.
10
+ */
5
11
  showColumnsPanel?: boolean;
6
12
  };
7
13
  type __VLS_PublicProps = {
@@ -1 +1 @@
1
- {"version":3,"file":"PlAgDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTable/PlAgDataTable.vue"],"names":[],"mappings":"AA+jBA,OAAO,KAAK,EAA4B,gBAAgB,EAAE,gBAAgB,EAAqC,MAAM,sBAAsB,CAAC;AAU5I,OAAO,KAAK,EAA2B,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAe5E,QAAA,IAAI,eAAe,EAAG;IACpB,QAAQ,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IACxC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAqdF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC7B,GAAG,OAAO,eAAe,CAAC;;;;;;;;;;;;AA4M3B,wBAWG"}
1
+ {"version":3,"file":"PlAgDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTable/PlAgDataTable.vue"],"names":[],"mappings":"AAqkBA,OAAO,KAAK,EAA4B,gBAAgB,EAAE,gBAAgB,EAAqC,MAAM,sBAAsB,CAAC;AAU5I,OAAO,KAAK,EAA2B,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAe5E,QAAA,IAAI,eAAe,EAAG;IACpB,QAAQ,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IACxC;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAqdF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC7B,GAAG,OAAO,eAAe,CAAC;;;;;;;;;;;;AA4M3B,wBAWG"}
@@ -1 +1 @@
1
- {"version":3,"file":"PlAgDataTableToolsPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTableToolsPanel/PlAgDataTableToolsPanel.vue"],"names":[],"mappings":"AAmBA,iBAAS,cAAc;;yBA4BM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"PlAgDataTableToolsPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTableToolsPanel/PlAgDataTableToolsPanel.vue"],"names":[],"mappings":"AA+BA,iBAAS,cAAc;;yBA4BM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,8 +1,20 @@
1
1
  import type { GridApi } from '@ag-grid-community/core';
2
2
  import './pl-ag-grid-column-manager.scss';
3
3
  declare const _default: import("vue").DefineComponent<{
4
+ /**
5
+ * The GridApi is an API interface provided by the table/grid component
6
+ * for interacting programmatically with the grid's features and functionality.
7
+ * It allows you to control and manipulate grid behavior, access data, and
8
+ * trigger specific actions.
9
+ */
4
10
  api: GridApi;
5
11
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
12
+ /**
13
+ * The GridApi is an API interface provided by the table/grid component
14
+ * for interacting programmatically with the grid's features and functionality.
15
+ * It allows you to control and manipulate grid behavior, access data, and
16
+ * trigger specific actions.
17
+ */
6
18
  api: GridApi;
7
19
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
20
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"PlAgGridColumnManager.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgGridColumnManager/PlAgGridColumnManager.vue"],"names":[],"mappings":"AAAA,OAwEO,KAAK,EAAU,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAG/D,OAAO,kCAAkC,CAAC;;SAKb,OAAO;;SAAP,OAAO;;AAwLpC,wBAMG"}
1
+ {"version":3,"file":"PlAgGridColumnManager.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgGridColumnManager/PlAgGridColumnManager.vue"],"names":[],"mappings":"AAAA,OAgFO,KAAK,EAAU,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAG/D,OAAO,kCAAkC,CAAC;;IAMxC;;;;;OAKG;SACE,OAAO;;IANZ;;;;;OAKG;SACE,OAAO;;AAyLd,wBAMG"}